@costrict/csc 4.2.30 → 4.2.32
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/README.md +0 -11
- package/dist/cli.js +71485 -22214
- package/dist/services/rawDump/batchWorker.js +1328 -383
- package/package.json +15 -6
|
@@ -736,8 +736,8 @@ function getClientVersion() {
|
|
|
736
736
|
if (cached)
|
|
737
737
|
return cached;
|
|
738
738
|
try {
|
|
739
|
-
if ("4.2.
|
|
740
|
-
cached = "4.2.
|
|
739
|
+
if ("4.2.32") {
|
|
740
|
+
cached = "4.2.32";
|
|
741
741
|
return cached;
|
|
742
742
|
}
|
|
743
743
|
} catch {}
|
|
@@ -2411,9 +2411,6 @@ function generateMachineId() {
|
|
|
2411
2411
|
async function loadCoStrictCredentials() {
|
|
2412
2412
|
return defaultStore.load();
|
|
2413
2413
|
}
|
|
2414
|
-
async function saveCoStrictCredentials(credentials) {
|
|
2415
|
-
return defaultStore.save(credentials);
|
|
2416
|
-
}
|
|
2417
2414
|
async function updateCredentialsAtomically(updater) {
|
|
2418
2415
|
return defaultStore.updateAtomically(updater);
|
|
2419
2416
|
}
|
|
@@ -2462,25 +2459,43 @@ function extractExpiryFromJWT(token) {
|
|
|
2462
2459
|
return 0;
|
|
2463
2460
|
}
|
|
2464
2461
|
}
|
|
2462
|
+
function isRecord(value) {
|
|
2463
|
+
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
2464
|
+
}
|
|
2465
2465
|
function isCoStrictTokenValid(credentials) {
|
|
2466
2466
|
const now = Date.now();
|
|
2467
|
-
const
|
|
2468
|
-
if (
|
|
2469
|
-
return
|
|
2467
|
+
const accessExp = credentials.expiry_date || extractExpiryFromJWT(credentials.access_token);
|
|
2468
|
+
if (!accessExp)
|
|
2469
|
+
return false;
|
|
2470
|
+
return now < accessExp - ACCESS_TOKEN_REFRESH_BUFFER_MS;
|
|
2471
|
+
}
|
|
2472
|
+
function unwrapCoStrictRefreshResponse(parsed) {
|
|
2473
|
+
if (!isRecord(parsed))
|
|
2474
|
+
return null;
|
|
2475
|
+
const nested = parsed.data;
|
|
2476
|
+
const source = isRecord(nested) ? nested : parsed;
|
|
2477
|
+
const accessToken = source.access_token;
|
|
2478
|
+
const refreshToken = source.refresh_token;
|
|
2479
|
+
if (typeof accessToken !== "string" || accessToken === "" || typeof refreshToken !== "string" || refreshToken === "") {
|
|
2480
|
+
return null;
|
|
2470
2481
|
}
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2482
|
+
const state = source.state;
|
|
2483
|
+
return {
|
|
2484
|
+
access_token: accessToken,
|
|
2485
|
+
refresh_token: refreshToken,
|
|
2486
|
+
...typeof state === "string" && state !== "" ? { state } : {}
|
|
2487
|
+
};
|
|
2488
|
+
}
|
|
2489
|
+
function formatRefreshError(status, parsed, raw) {
|
|
2490
|
+
const prefix = status === 400 || status === 401 ? `Refresh token is invalid or expired (${status})` : `Token refresh failed with status ${status}`;
|
|
2491
|
+
if (isRecord(parsed)) {
|
|
2492
|
+
const code = parsed.code;
|
|
2493
|
+
const message = parsed.message;
|
|
2494
|
+
const details = [code, message].filter((value) => typeof value === "string" && value !== "").join(": ");
|
|
2495
|
+
if (details)
|
|
2496
|
+
return `${prefix}: ${details}`;
|
|
2477
2497
|
}
|
|
2478
|
-
|
|
2479
|
-
const payload = parseJWT(credentials.access_token);
|
|
2480
|
-
if (payload.exp)
|
|
2481
|
-
return now < payload.exp * 1000 - bufferMs;
|
|
2482
|
-
} catch {}
|
|
2483
|
-
return false;
|
|
2498
|
+
return `${prefix}: ${raw}`;
|
|
2484
2499
|
}
|
|
2485
2500
|
async function refreshCoStrictToken(params) {
|
|
2486
2501
|
const queryParams = buildOAuthParams(false, undefined, params.state);
|
|
@@ -2493,18 +2508,27 @@ async function refreshCoStrictToken(params) {
|
|
|
2493
2508
|
Accept: "application/json"
|
|
2494
2509
|
}
|
|
2495
2510
|
});
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2511
|
+
const raw = await response.text();
|
|
2512
|
+
let parsed;
|
|
2513
|
+
try {
|
|
2514
|
+
parsed = JSON.parse(raw);
|
|
2515
|
+
} catch {
|
|
2516
|
+
throw new Error(formatRefreshError(response.status, null, raw));
|
|
2499
2517
|
}
|
|
2500
|
-
const
|
|
2501
|
-
if (!
|
|
2502
|
-
|
|
2518
|
+
const tokens = unwrapCoStrictRefreshResponse(parsed);
|
|
2519
|
+
if (!tokens) {
|
|
2520
|
+
const serverFailed = isRecord(parsed) && parsed.success === false;
|
|
2521
|
+
throw new Error(formatRefreshError(response.status, parsed, raw) + (serverFailed ? "" : ": Token refresh response is missing required fields"));
|
|
2503
2522
|
}
|
|
2504
|
-
|
|
2523
|
+
if (!response.ok) {
|
|
2524
|
+
throw new Error(formatRefreshError(response.status, parsed, raw));
|
|
2525
|
+
}
|
|
2526
|
+
return tokens;
|
|
2505
2527
|
}
|
|
2528
|
+
var ACCESS_TOKEN_REFRESH_BUFFER_MS;
|
|
2506
2529
|
var init_token = __esm(() => {
|
|
2507
2530
|
init_oauth_params();
|
|
2531
|
+
ACCESS_TOKEN_REFRESH_BUFFER_MS = 30 * 60 * 1000;
|
|
2508
2532
|
});
|
|
2509
2533
|
|
|
2510
2534
|
// locales/en/ui.permissions.ts
|
|
@@ -21433,14 +21457,14 @@ var init_debug = __esm(() => {
|
|
|
21433
21457
|
});
|
|
21434
21458
|
});
|
|
21435
21459
|
|
|
21436
|
-
// node_modules/.bun/axios@1.
|
|
21460
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/helpers/bind.js
|
|
21437
21461
|
function bind(fn, thisArg) {
|
|
21438
21462
|
return function wrap() {
|
|
21439
21463
|
return fn.apply(thisArg, arguments);
|
|
21440
21464
|
};
|
|
21441
21465
|
}
|
|
21442
21466
|
|
|
21443
|
-
// node_modules/.bun/axios@1.
|
|
21467
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/utils.js
|
|
21444
21468
|
function isBuffer2(val) {
|
|
21445
21469
|
return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction2(val.constructor.isBuffer) && val.constructor.isBuffer(val);
|
|
21446
21470
|
}
|
|
@@ -21547,15 +21571,85 @@ function merge(...objs) {
|
|
|
21547
21571
|
function isSpecCompliantForm(thing) {
|
|
21548
21572
|
return !!(thing && isFunction2(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]);
|
|
21549
21573
|
}
|
|
21550
|
-
var toString3, getPrototypeOf, iterator, toStringTag,
|
|
21574
|
+
var toString3, getPrototypeOf, iterator, toStringTag, hasOwnProperty12, isUnsafeObjectKey = (prop) => typeof prop === "string" && (prop === "__proto__" || prop === "constructor" || prop === "prototype"), isPrototypeBoundary = (obj, prototype, source) => obj === Object.prototype || !source && prototype === null, isSafeAndFullyMutable = (obj) => {
|
|
21575
|
+
if (!Object.isExtensible(obj)) {
|
|
21576
|
+
return false;
|
|
21577
|
+
}
|
|
21578
|
+
const props = Object.getOwnPropertyNames(obj);
|
|
21579
|
+
if (Object.getOwnPropertySymbols) {
|
|
21580
|
+
props.push(...Object.getOwnPropertySymbols(obj));
|
|
21581
|
+
}
|
|
21582
|
+
return props.every((prop) => {
|
|
21583
|
+
if (isUnsafeObjectKey(prop)) {
|
|
21584
|
+
return false;
|
|
21585
|
+
}
|
|
21586
|
+
const descriptor = Object.getOwnPropertyDescriptor(obj, prop);
|
|
21587
|
+
return !!descriptor && descriptor.configurable && descriptor.writable === true;
|
|
21588
|
+
});
|
|
21589
|
+
}, hasOwnInPrototypeChain = (thing, prop) => {
|
|
21590
|
+
let obj = thing;
|
|
21591
|
+
const seen = [];
|
|
21592
|
+
while (obj != null) {
|
|
21593
|
+
if (seen.indexOf(obj) !== -1) {
|
|
21594
|
+
return false;
|
|
21595
|
+
}
|
|
21596
|
+
seen.push(obj);
|
|
21597
|
+
const prototype = getPrototypeOf(obj);
|
|
21598
|
+
if (isPrototypeBoundary(obj, prototype, obj === thing)) {
|
|
21599
|
+
return false;
|
|
21600
|
+
}
|
|
21601
|
+
if (hasOwnProperty12(obj, prop)) {
|
|
21602
|
+
return true;
|
|
21603
|
+
}
|
|
21604
|
+
obj = prototype;
|
|
21605
|
+
}
|
|
21606
|
+
return false;
|
|
21607
|
+
}, getSafeProp = (obj, prop) => obj != null && hasOwnInPrototypeChain(obj, prop) ? obj[prop] : undefined, toSafeFlatObject = (thing) => {
|
|
21608
|
+
if (thing == null || typeof thing !== "object" && typeof thing !== "function") {
|
|
21609
|
+
return thing;
|
|
21610
|
+
}
|
|
21611
|
+
const sourcePrototype = getPrototypeOf(thing);
|
|
21612
|
+
if (sourcePrototype === null && isSafeAndFullyMutable(thing)) {
|
|
21613
|
+
return thing;
|
|
21614
|
+
}
|
|
21615
|
+
const result = Object.create(null);
|
|
21616
|
+
const merged = Object.create(null);
|
|
21617
|
+
const seen = [];
|
|
21618
|
+
let current = thing;
|
|
21619
|
+
while (current != null) {
|
|
21620
|
+
if (seen.indexOf(current) !== -1) {
|
|
21621
|
+
break;
|
|
21622
|
+
}
|
|
21623
|
+
seen.push(current);
|
|
21624
|
+
const prototype = current === thing ? sourcePrototype : getPrototypeOf(current);
|
|
21625
|
+
if (isPrototypeBoundary(current, prototype, current === thing)) {
|
|
21626
|
+
break;
|
|
21627
|
+
}
|
|
21628
|
+
const props = Object.getOwnPropertyNames(current);
|
|
21629
|
+
if (Object.getOwnPropertySymbols) {
|
|
21630
|
+
props.push(...Object.getOwnPropertySymbols(current));
|
|
21631
|
+
}
|
|
21632
|
+
for (const prop of props) {
|
|
21633
|
+
if (isUnsafeObjectKey(prop)) {
|
|
21634
|
+
continue;
|
|
21635
|
+
}
|
|
21636
|
+
if (!hasOwnProperty12(merged, prop)) {
|
|
21637
|
+
result[prop] = thing[prop];
|
|
21638
|
+
merged[prop] = true;
|
|
21639
|
+
}
|
|
21640
|
+
}
|
|
21641
|
+
current = prototype;
|
|
21642
|
+
}
|
|
21643
|
+
return result;
|
|
21644
|
+
}, kindOf, kindOfTest = (type) => {
|
|
21551
21645
|
type = type.toLowerCase();
|
|
21552
21646
|
return (thing) => kindOf(thing) === type;
|
|
21553
21647
|
}, typeOfTest = (type) => (thing) => typeof thing === type, isArray3, isUndefined, isArrayBuffer, isString, isFunction2, isNumber, isObject2 = (thing) => thing !== null && typeof thing === "object", isBoolean = (thing) => thing === true || thing === false, isPlainObject = (val) => {
|
|
21554
|
-
if (
|
|
21648
|
+
if (!isObject2(val)) {
|
|
21555
21649
|
return false;
|
|
21556
21650
|
}
|
|
21557
21651
|
const prototype = getPrototypeOf(val);
|
|
21558
|
-
return (prototype === null || prototype === Object.prototype ||
|
|
21652
|
+
return (prototype === null || prototype === Object.prototype || getPrototypeOf(prototype) === null) && !hasOwnInPrototypeChain(val, toStringTag) && !hasOwnInPrototypeChain(val, iterator);
|
|
21559
21653
|
}, isEmptyObject = (val) => {
|
|
21560
21654
|
if (!isObject2(val) || isBuffer2(val)) {
|
|
21561
21655
|
return false;
|
|
@@ -21567,7 +21661,7 @@ var toString3, getPrototypeOf, iterator, toStringTag, kindOf, kindOfTest = (type
|
|
|
21567
21661
|
}
|
|
21568
21662
|
}, isDate, isFile, isReactNativeBlob = (value) => {
|
|
21569
21663
|
return !!(value && typeof value.uri !== "undefined");
|
|
21570
|
-
}, isReactNative = (formData) => formData && typeof formData.getParts !== "undefined", isBlob, isFileList, isStream = (val) => isObject2(val) && isFunction2(val.pipe), G, FormDataCtor, isFormData = (thing) => {
|
|
21664
|
+
}, isReactNative = (formData) => formData && typeof formData.getParts !== "undefined", isBlob, isFileList, isSet, isStream = (val) => isObject2(val) && isFunction2(val.pipe), G, FormDataCtor, isFormData = (thing) => {
|
|
21571
21665
|
if (!thing)
|
|
21572
21666
|
return false;
|
|
21573
21667
|
if (FormDataCtor && thing instanceof FormDataCtor)
|
|
@@ -21682,7 +21776,7 @@ var toString3, getPrototypeOf, iterator, toStringTag, kindOf, kindOfTest = (type
|
|
|
21682
21776
|
return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
|
|
21683
21777
|
return p1.toUpperCase() + p2;
|
|
21684
21778
|
});
|
|
21685
|
-
},
|
|
21779
|
+
}, propertyIsEnumerable3, isRegExp, reduceDescriptors = (obj, reducer) => {
|
|
21686
21780
|
const descriptors = Object.getOwnPropertyDescriptors(obj);
|
|
21687
21781
|
const reducedDescriptors = {};
|
|
21688
21782
|
forEach(descriptors, (descriptor, name) => {
|
|
@@ -21734,11 +21828,20 @@ var toString3, getPrototypeOf, iterator, toStringTag, kindOf, kindOfTest = (type
|
|
|
21734
21828
|
}
|
|
21735
21829
|
if (!("toJSON" in source)) {
|
|
21736
21830
|
visited.add(source);
|
|
21737
|
-
|
|
21738
|
-
|
|
21739
|
-
|
|
21740
|
-
|
|
21741
|
-
|
|
21831
|
+
let target;
|
|
21832
|
+
if (isSet(source)) {
|
|
21833
|
+
target = [];
|
|
21834
|
+
for (const value of source) {
|
|
21835
|
+
const reducedValue = visit(value);
|
|
21836
|
+
!isUndefined(reducedValue) && target.push(reducedValue);
|
|
21837
|
+
}
|
|
21838
|
+
} else {
|
|
21839
|
+
target = isArray3(source) ? [] : {};
|
|
21840
|
+
forEach(source, (value, key) => {
|
|
21841
|
+
const reducedValue = visit(value);
|
|
21842
|
+
!isUndefined(reducedValue) && (target[key] = reducedValue);
|
|
21843
|
+
});
|
|
21844
|
+
}
|
|
21742
21845
|
visited.delete(source);
|
|
21743
21846
|
return target;
|
|
21744
21847
|
}
|
|
@@ -21746,11 +21849,12 @@ var toString3, getPrototypeOf, iterator, toStringTag, kindOf, kindOfTest = (type
|
|
|
21746
21849
|
return source;
|
|
21747
21850
|
};
|
|
21748
21851
|
return visit(obj);
|
|
21749
|
-
}, isAsyncFn, isThenable = (thing) => thing && (isObject2(thing) || isFunction2(thing)) && isFunction2(thing.then) && isFunction2(thing.catch), _setImmediate, asap, isIterable = (thing) => thing != null && isFunction2(thing[iterator]), utils_default;
|
|
21852
|
+
}, isAsyncFn, isThenable = (thing) => thing && (isObject2(thing) || isFunction2(thing)) && isFunction2(thing.then) && isFunction2(thing.catch), _setImmediate, asap, isIterable = (thing) => thing != null && isFunction2(thing[iterator]), isSafeIterable = (thing) => thing != null && hasOwnInPrototypeChain(thing, iterator) && isIterable(thing), utils_default;
|
|
21750
21853
|
var init_utils = __esm(() => {
|
|
21751
21854
|
({ toString: toString3 } = Object.prototype);
|
|
21752
21855
|
({ getPrototypeOf } = Object);
|
|
21753
21856
|
({ iterator, toStringTag } = Symbol);
|
|
21857
|
+
hasOwnProperty12 = (({ hasOwnProperty: hasOwnProperty13 }) => (obj, prop) => hasOwnProperty13.call(obj, prop))(Object.prototype);
|
|
21754
21858
|
kindOf = ((cache2) => (thing) => {
|
|
21755
21859
|
const str = toString3.call(thing);
|
|
21756
21860
|
return cache2[str] || (cache2[str] = str.slice(8, -1).toLowerCase());
|
|
@@ -21765,6 +21869,7 @@ var init_utils = __esm(() => {
|
|
|
21765
21869
|
isFile = kindOfTest("File");
|
|
21766
21870
|
isBlob = kindOfTest("Blob");
|
|
21767
21871
|
isFileList = kindOfTest("FileList");
|
|
21872
|
+
isSet = kindOfTest("Set");
|
|
21768
21873
|
G = getGlobal();
|
|
21769
21874
|
FormDataCtor = typeof G.FormData !== "undefined" ? G.FormData : undefined;
|
|
21770
21875
|
isURLSearchParams = kindOfTest("URLSearchParams");
|
|
@@ -21785,7 +21890,6 @@ var init_utils = __esm(() => {
|
|
|
21785
21890
|
};
|
|
21786
21891
|
})(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
|
|
21787
21892
|
isHTMLForm = kindOfTest("HTMLFormElement");
|
|
21788
|
-
hasOwnProperty12 = (({ hasOwnProperty: hasOwnProperty13 }) => (obj, prop) => hasOwnProperty13.call(obj, prop))(Object.prototype);
|
|
21789
21893
|
({ propertyIsEnumerable: propertyIsEnumerable3 } = Object.prototype);
|
|
21790
21894
|
isRegExp = kindOfTest("RegExp");
|
|
21791
21895
|
isAsyncFn = kindOfTest("AsyncFunction");
|
|
@@ -21850,6 +21954,9 @@ var init_utils = __esm(() => {
|
|
|
21850
21954
|
isHTMLForm,
|
|
21851
21955
|
hasOwnProperty: hasOwnProperty12,
|
|
21852
21956
|
hasOwnProp: hasOwnProperty12,
|
|
21957
|
+
hasOwnInPrototypeChain,
|
|
21958
|
+
getSafeProp,
|
|
21959
|
+
toSafeFlatObject,
|
|
21853
21960
|
reduceDescriptors,
|
|
21854
21961
|
freezeMethods,
|
|
21855
21962
|
toObjectSet,
|
|
@@ -21865,11 +21972,12 @@ var init_utils = __esm(() => {
|
|
|
21865
21972
|
isThenable,
|
|
21866
21973
|
setImmediate: _setImmediate,
|
|
21867
21974
|
asap,
|
|
21868
|
-
isIterable
|
|
21975
|
+
isIterable,
|
|
21976
|
+
isSafeIterable
|
|
21869
21977
|
};
|
|
21870
21978
|
});
|
|
21871
21979
|
|
|
21872
|
-
// node_modules/.bun/axios@1.
|
|
21980
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/helpers/parseHeaders.js
|
|
21873
21981
|
var ignoreDuplicateOf, parseHeaders_default = (rawHeaders) => {
|
|
21874
21982
|
const parsed = {};
|
|
21875
21983
|
let key;
|
|
@@ -21880,17 +21988,18 @@ var ignoreDuplicateOf, parseHeaders_default = (rawHeaders) => {
|
|
|
21880
21988
|
i = line.indexOf(":");
|
|
21881
21989
|
key = line.substring(0, i).trim().toLowerCase();
|
|
21882
21990
|
val = line.substring(i + 1).trim();
|
|
21883
|
-
|
|
21991
|
+
const hasKey = utils_default.hasOwnProp(parsed, key);
|
|
21992
|
+
if (!key || hasKey && utils_default.hasOwnProp(ignoreDuplicateOf, key)) {
|
|
21884
21993
|
return;
|
|
21885
21994
|
}
|
|
21886
21995
|
if (key === "set-cookie") {
|
|
21887
|
-
if (
|
|
21996
|
+
if (hasKey) {
|
|
21888
21997
|
parsed[key].push(val);
|
|
21889
21998
|
} else {
|
|
21890
21999
|
parsed[key] = [val];
|
|
21891
22000
|
}
|
|
21892
22001
|
} else {
|
|
21893
|
-
parsed[key] =
|
|
22002
|
+
parsed[key] = hasKey ? parsed[key] + ", " + val : val;
|
|
21894
22003
|
}
|
|
21895
22004
|
});
|
|
21896
22005
|
return parsed;
|
|
@@ -21918,7 +22027,7 @@ var init_parseHeaders = __esm(() => {
|
|
|
21918
22027
|
]);
|
|
21919
22028
|
});
|
|
21920
22029
|
|
|
21921
|
-
// node_modules/.bun/axios@1.
|
|
22030
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
|
|
21922
22031
|
function trimSPorHTAB(str) {
|
|
21923
22032
|
let start = 0;
|
|
21924
22033
|
let end = str.length;
|
|
@@ -21958,7 +22067,7 @@ var init_sanitizeHeaderValue = __esm(() => {
|
|
|
21958
22067
|
INVALID_BYTE_STRING_HEADER_VALUE_CHARS = new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+", "g");
|
|
21959
22068
|
});
|
|
21960
22069
|
|
|
21961
|
-
// node_modules/.bun/axios@1.
|
|
22070
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/core/AxiosHeaders.js
|
|
21962
22071
|
function normalizeHeader(header) {
|
|
21963
22072
|
return header && String(header).trim().toLowerCase();
|
|
21964
22073
|
}
|
|
@@ -21977,6 +22086,89 @@ function parseTokens(str) {
|
|
|
21977
22086
|
}
|
|
21978
22087
|
return tokens;
|
|
21979
22088
|
}
|
|
22089
|
+
function trimOWS(value) {
|
|
22090
|
+
let start = 0;
|
|
22091
|
+
let end = value.length;
|
|
22092
|
+
while (start < end) {
|
|
22093
|
+
const code = value.charCodeAt(start);
|
|
22094
|
+
if (code !== 9 && code !== 32) {
|
|
22095
|
+
break;
|
|
22096
|
+
}
|
|
22097
|
+
start += 1;
|
|
22098
|
+
}
|
|
22099
|
+
while (end > start) {
|
|
22100
|
+
const code = value.charCodeAt(end - 1);
|
|
22101
|
+
if (code !== 9 && code !== 32) {
|
|
22102
|
+
break;
|
|
22103
|
+
}
|
|
22104
|
+
end -= 1;
|
|
22105
|
+
}
|
|
22106
|
+
return start === 0 && end === value.length ? value : value.slice(start, end);
|
|
22107
|
+
}
|
|
22108
|
+
function decodeQuotedString(value) {
|
|
22109
|
+
const last = value.length - 1;
|
|
22110
|
+
if (last < 1 || value.charCodeAt(0) !== 34 || value.charCodeAt(last) !== 34) {
|
|
22111
|
+
return value;
|
|
22112
|
+
}
|
|
22113
|
+
let decoded = "";
|
|
22114
|
+
for (let i = 1;i < last; i++) {
|
|
22115
|
+
const code = value.charCodeAt(i);
|
|
22116
|
+
if (code === 34) {
|
|
22117
|
+
return value;
|
|
22118
|
+
}
|
|
22119
|
+
if (code === 92) {
|
|
22120
|
+
i += 1;
|
|
22121
|
+
if (i >= last) {
|
|
22122
|
+
return value;
|
|
22123
|
+
}
|
|
22124
|
+
}
|
|
22125
|
+
decoded += value[i];
|
|
22126
|
+
}
|
|
22127
|
+
return decoded;
|
|
22128
|
+
}
|
|
22129
|
+
function parseParameters(value) {
|
|
22130
|
+
const parameters = Object.create(null);
|
|
22131
|
+
const str = String(value);
|
|
22132
|
+
let start = 0;
|
|
22133
|
+
let quoted = false;
|
|
22134
|
+
let escaped = false;
|
|
22135
|
+
function parseParameter(end) {
|
|
22136
|
+
const part = trimOWS(str.slice(start, end));
|
|
22137
|
+
const equals = part.indexOf("=");
|
|
22138
|
+
if (equals < 1) {
|
|
22139
|
+
return;
|
|
22140
|
+
}
|
|
22141
|
+
const name = trimOWS(part.slice(0, equals));
|
|
22142
|
+
if (!parameterNameRE.test(name)) {
|
|
22143
|
+
return;
|
|
22144
|
+
}
|
|
22145
|
+
const normalizedName = name.toLowerCase();
|
|
22146
|
+
if (normalizedName === "__proto__" || normalizedName === "constructor" || normalizedName === "prototype") {
|
|
22147
|
+
return;
|
|
22148
|
+
}
|
|
22149
|
+
const parameterValue = trimOWS(part.slice(equals + 1));
|
|
22150
|
+
parameters[normalizedName] = decodeQuotedString(parameterValue);
|
|
22151
|
+
}
|
|
22152
|
+
for (let i = 0;i < str.length; i++) {
|
|
22153
|
+
const code = str.charCodeAt(i);
|
|
22154
|
+
if (quoted) {
|
|
22155
|
+
if (escaped) {
|
|
22156
|
+
escaped = false;
|
|
22157
|
+
} else if (code === 92) {
|
|
22158
|
+
escaped = true;
|
|
22159
|
+
} else if (code === 34) {
|
|
22160
|
+
quoted = false;
|
|
22161
|
+
}
|
|
22162
|
+
} else if (code === 34) {
|
|
22163
|
+
quoted = true;
|
|
22164
|
+
} else if (code === 44 || code === 59) {
|
|
22165
|
+
parseParameter(i);
|
|
22166
|
+
start = i + 1;
|
|
22167
|
+
}
|
|
22168
|
+
}
|
|
22169
|
+
parseParameter(str.length);
|
|
22170
|
+
return parameters;
|
|
22171
|
+
}
|
|
21980
22172
|
function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
|
|
21981
22173
|
if (utils_default.isFunction(filter)) {
|
|
21982
22174
|
return filter.call(this, value, header);
|
|
@@ -22010,12 +22202,13 @@ function buildAccessors(obj, header) {
|
|
|
22010
22202
|
});
|
|
22011
22203
|
});
|
|
22012
22204
|
}
|
|
22013
|
-
var $internals, isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim()), AxiosHeaders, AxiosHeaders_default;
|
|
22205
|
+
var $internals, parameterNameRE, isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim()), AxiosHeaders, AxiosHeaders_default;
|
|
22014
22206
|
var init_AxiosHeaders = __esm(() => {
|
|
22015
22207
|
init_utils();
|
|
22016
22208
|
init_parseHeaders();
|
|
22017
22209
|
init_sanitizeHeaderValue();
|
|
22018
22210
|
$internals = Symbol("internals");
|
|
22211
|
+
parameterNameRE = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
|
|
22019
22212
|
AxiosHeaders = class AxiosHeaders {
|
|
22020
22213
|
constructor(headers) {
|
|
22021
22214
|
headers && this.set(headers);
|
|
@@ -22037,13 +22230,19 @@ var init_AxiosHeaders = __esm(() => {
|
|
|
22037
22230
|
setHeaders(header, valueOrRewrite);
|
|
22038
22231
|
} else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
22039
22232
|
setHeaders(parseHeaders_default(header), valueOrRewrite);
|
|
22040
|
-
} else if (utils_default.isObject(header) && utils_default.
|
|
22041
|
-
let obj =
|
|
22233
|
+
} else if (utils_default.isObject(header) && utils_default.isSafeIterable(header)) {
|
|
22234
|
+
let obj = Object.create(null), dest, key;
|
|
22042
22235
|
for (const entry of header) {
|
|
22043
22236
|
if (!utils_default.isArray(entry)) {
|
|
22044
22237
|
throw new TypeError("Object iterator must return a key-value pair");
|
|
22045
22238
|
}
|
|
22046
|
-
|
|
22239
|
+
key = entry[0];
|
|
22240
|
+
if (utils_default.hasOwnProp(obj, key)) {
|
|
22241
|
+
dest = obj[key];
|
|
22242
|
+
obj[key] = utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]];
|
|
22243
|
+
} else {
|
|
22244
|
+
obj[key] = entry[1];
|
|
22245
|
+
}
|
|
22047
22246
|
}
|
|
22048
22247
|
setHeaders(obj, valueOrRewrite);
|
|
22049
22248
|
} else {
|
|
@@ -22151,7 +22350,8 @@ var init_AxiosHeaders = __esm(() => {
|
|
|
22151
22350
|
`);
|
|
22152
22351
|
}
|
|
22153
22352
|
getSetCookie() {
|
|
22154
|
-
|
|
22353
|
+
const value = this.get("set-cookie");
|
|
22354
|
+
return utils_default.isArray(value) ? value : value == null || value === false ? [] : [value];
|
|
22155
22355
|
}
|
|
22156
22356
|
get [Symbol.toStringTag]() {
|
|
22157
22357
|
return "AxiosHeaders";
|
|
@@ -22159,6 +22359,9 @@ var init_AxiosHeaders = __esm(() => {
|
|
|
22159
22359
|
static from(thing) {
|
|
22160
22360
|
return thing instanceof this ? thing : new this(thing);
|
|
22161
22361
|
}
|
|
22362
|
+
static parseParameters(value) {
|
|
22363
|
+
return parseParameters(value);
|
|
22364
|
+
}
|
|
22162
22365
|
static concat(first, ...targets) {
|
|
22163
22366
|
const computed = new this(first);
|
|
22164
22367
|
targets.forEach((target) => computed.set(target));
|
|
@@ -22202,7 +22405,7 @@ var init_AxiosHeaders = __esm(() => {
|
|
|
22202
22405
|
AxiosHeaders_default = AxiosHeaders;
|
|
22203
22406
|
});
|
|
22204
22407
|
|
|
22205
|
-
// node_modules/.bun/axios@1.
|
|
22408
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/core/AxiosError.js
|
|
22206
22409
|
function hasOwnOrPrototypeToJSON(source) {
|
|
22207
22410
|
if (utils_default.hasOwnProp(source, "toJSON")) {
|
|
22208
22411
|
return true;
|
|
@@ -22257,14 +22460,41 @@ function redactConfig(config, redactKeys) {
|
|
|
22257
22460
|
};
|
|
22258
22461
|
return visit(config);
|
|
22259
22462
|
}
|
|
22463
|
+
function stringifySafely(value) {
|
|
22464
|
+
try {
|
|
22465
|
+
return String(value);
|
|
22466
|
+
} catch (err) {
|
|
22467
|
+
return "";
|
|
22468
|
+
}
|
|
22469
|
+
}
|
|
22470
|
+
function aggregateErrorMessage(error2) {
|
|
22471
|
+
const message = error2.errors.map((entry) => {
|
|
22472
|
+
try {
|
|
22473
|
+
return entry && entry.message ? stringifySafely(entry.message) : stringifySafely(entry);
|
|
22474
|
+
} catch (err) {
|
|
22475
|
+
return "";
|
|
22476
|
+
}
|
|
22477
|
+
}).filter(Boolean).join("; ");
|
|
22478
|
+
return message || error2.name || "AggregateError";
|
|
22479
|
+
}
|
|
22260
22480
|
var REDACTED = "[REDACTED ****]", AxiosError, AxiosError_default;
|
|
22261
22481
|
var init_AxiosError = __esm(() => {
|
|
22262
22482
|
init_utils();
|
|
22263
22483
|
init_AxiosHeaders();
|
|
22264
22484
|
AxiosError = class AxiosError extends Error {
|
|
22265
22485
|
static from(error2, code, config, request, response, customProps) {
|
|
22266
|
-
|
|
22267
|
-
|
|
22486
|
+
let message = error2.message;
|
|
22487
|
+
if (!message && utils_default.isArray(error2.errors) && error2.errors.length) {
|
|
22488
|
+
message = aggregateErrorMessage(error2);
|
|
22489
|
+
}
|
|
22490
|
+
const axiosError = new AxiosError(message, code || error2.code, config, request, response);
|
|
22491
|
+
Object.defineProperty(axiosError, "cause", {
|
|
22492
|
+
__proto__: null,
|
|
22493
|
+
value: error2,
|
|
22494
|
+
writable: true,
|
|
22495
|
+
enumerable: false,
|
|
22496
|
+
configurable: true
|
|
22497
|
+
});
|
|
22268
22498
|
axiosError.name = error2.name;
|
|
22269
22499
|
if (error2.status != null && axiosError.status == null) {
|
|
22270
22500
|
axiosError.status = error2.status;
|
|
@@ -32444,14 +32674,27 @@ var require_form_data = __commonJS((exports, module) => {
|
|
|
32444
32674
|
module.exports = FormData2;
|
|
32445
32675
|
});
|
|
32446
32676
|
|
|
32447
|
-
// node_modules/.bun/axios@1.
|
|
32677
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/platform/node/classes/FormData.js
|
|
32448
32678
|
var import_form_data, FormData_default;
|
|
32449
32679
|
var init_FormData = __esm(() => {
|
|
32450
32680
|
import_form_data = __toESM(require_form_data(), 1);
|
|
32451
32681
|
FormData_default = import_form_data.default;
|
|
32452
32682
|
});
|
|
32453
32683
|
|
|
32454
|
-
// node_modules/.bun/axios@1.
|
|
32684
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/platform/node/classes/Buffer.js
|
|
32685
|
+
var Buffer_default;
|
|
32686
|
+
var init_Buffer = __esm(() => {
|
|
32687
|
+
Buffer_default = {
|
|
32688
|
+
isBufferAvailable() {
|
|
32689
|
+
return typeof Buffer !== "undefined";
|
|
32690
|
+
},
|
|
32691
|
+
from(value) {
|
|
32692
|
+
return Buffer.from(value);
|
|
32693
|
+
}
|
|
32694
|
+
};
|
|
32695
|
+
});
|
|
32696
|
+
|
|
32697
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/helpers/toFormData.js
|
|
32455
32698
|
function isVisitable(thing) {
|
|
32456
32699
|
return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
|
|
32457
32700
|
}
|
|
@@ -32474,20 +32717,18 @@ function toFormData(obj, formData, options) {
|
|
|
32474
32717
|
throw new TypeError("target must be an object");
|
|
32475
32718
|
}
|
|
32476
32719
|
formData = formData || new (FormData_default || FormData);
|
|
32477
|
-
|
|
32478
|
-
|
|
32479
|
-
|
|
32480
|
-
|
|
32481
|
-
|
|
32482
|
-
|
|
32483
|
-
|
|
32484
|
-
const
|
|
32485
|
-
const
|
|
32486
|
-
const
|
|
32487
|
-
const indexes = options.indexes;
|
|
32488
|
-
const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
|
|
32489
|
-
const maxDepth = options.maxDepth === undefined ? 100 : options.maxDepth;
|
|
32720
|
+
const option = (name, fallback) => {
|
|
32721
|
+
const value = utils_default.getSafeProp(options, name);
|
|
32722
|
+
return utils_default.isUndefined(value) ? fallback : value;
|
|
32723
|
+
};
|
|
32724
|
+
const metaTokens = option("metaTokens", true);
|
|
32725
|
+
const visitor = option("visitor") || defaultVisitor;
|
|
32726
|
+
const dots = option("dots", false);
|
|
32727
|
+
const indexes = option("indexes", false);
|
|
32728
|
+
const _Blob = option("Blob") || typeof Blob !== "undefined" && Blob;
|
|
32729
|
+
const maxDepth = option("maxDepth", DEFAULT_FORM_DATA_MAX_DEPTH);
|
|
32490
32730
|
const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
|
|
32731
|
+
const stack = [];
|
|
32491
32732
|
if (!utils_default.isFunction(visitor)) {
|
|
32492
32733
|
throw new TypeError("visitor must be a function");
|
|
32493
32734
|
}
|
|
@@ -32504,10 +32745,38 @@ function toFormData(obj, formData, options) {
|
|
|
32504
32745
|
throw new AxiosError_default("Blob is not supported. Use a Buffer instead.");
|
|
32505
32746
|
}
|
|
32506
32747
|
if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value)) {
|
|
32507
|
-
|
|
32748
|
+
if (useBlob && typeof _Blob === "function") {
|
|
32749
|
+
return new _Blob([value]);
|
|
32750
|
+
}
|
|
32751
|
+
if (Buffer_default && Buffer_default.isBufferAvailable()) {
|
|
32752
|
+
return Buffer_default.from(value);
|
|
32753
|
+
}
|
|
32754
|
+
throw new AxiosError_default("Blob is not supported. Use a Buffer instead.", AxiosError_default.ERR_NOT_SUPPORT);
|
|
32508
32755
|
}
|
|
32509
32756
|
return value;
|
|
32510
32757
|
}
|
|
32758
|
+
function throwIfMaxDepthExceeded(depth) {
|
|
32759
|
+
if (depth > maxDepth) {
|
|
32760
|
+
throw new AxiosError_default("Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth, AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED);
|
|
32761
|
+
}
|
|
32762
|
+
}
|
|
32763
|
+
function stringifyWithDepthLimit(value, depth) {
|
|
32764
|
+
if (maxDepth === Infinity) {
|
|
32765
|
+
return JSON.stringify(value);
|
|
32766
|
+
}
|
|
32767
|
+
const ancestors = [];
|
|
32768
|
+
return JSON.stringify(value, function limitDepth(_key, currentValue) {
|
|
32769
|
+
if (!utils_default.isObject(currentValue)) {
|
|
32770
|
+
return currentValue;
|
|
32771
|
+
}
|
|
32772
|
+
while (ancestors.length && ancestors[ancestors.length - 1] !== this) {
|
|
32773
|
+
ancestors.pop();
|
|
32774
|
+
}
|
|
32775
|
+
ancestors.push(currentValue);
|
|
32776
|
+
throwIfMaxDepthExceeded(depth + ancestors.length - 1);
|
|
32777
|
+
return currentValue;
|
|
32778
|
+
});
|
|
32779
|
+
}
|
|
32511
32780
|
function defaultVisitor(value, key, path6) {
|
|
32512
32781
|
let arr = value;
|
|
32513
32782
|
if (utils_default.isReactNative(formData) && utils_default.isReactNativeBlob(value)) {
|
|
@@ -32517,7 +32786,7 @@ function toFormData(obj, formData, options) {
|
|
|
32517
32786
|
if (value && !path6 && typeof value === "object") {
|
|
32518
32787
|
if (utils_default.endsWith(key, "{}")) {
|
|
32519
32788
|
key = metaTokens ? key : key.slice(0, -2);
|
|
32520
|
-
value =
|
|
32789
|
+
value = stringifyWithDepthLimit(value, 1);
|
|
32521
32790
|
} else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]")) && (arr = utils_default.toArray(value))) {
|
|
32522
32791
|
key = removeBrackets(key);
|
|
32523
32792
|
arr.forEach(function each(el, index2) {
|
|
@@ -32532,7 +32801,6 @@ function toFormData(obj, formData, options) {
|
|
|
32532
32801
|
formData.append(renderKey(path6, key, dots), convertValue(value));
|
|
32533
32802
|
return false;
|
|
32534
32803
|
}
|
|
32535
|
-
const stack = [];
|
|
32536
32804
|
const exposedHelpers = Object.assign(predicates, {
|
|
32537
32805
|
defaultVisitor,
|
|
32538
32806
|
convertValue,
|
|
@@ -32541,9 +32809,7 @@ function toFormData(obj, formData, options) {
|
|
|
32541
32809
|
function build(value, path6, depth = 0) {
|
|
32542
32810
|
if (utils_default.isUndefined(value))
|
|
32543
32811
|
return;
|
|
32544
|
-
|
|
32545
|
-
throw new AxiosError_default("Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth, AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED);
|
|
32546
|
-
}
|
|
32812
|
+
throwIfMaxDepthExceeded(depth);
|
|
32547
32813
|
if (stack.indexOf(value) !== -1) {
|
|
32548
32814
|
throw new Error("Circular reference detected in " + path6.join("."));
|
|
32549
32815
|
}
|
|
@@ -32562,18 +32828,19 @@ function toFormData(obj, formData, options) {
|
|
|
32562
32828
|
build(obj);
|
|
32563
32829
|
return formData;
|
|
32564
32830
|
}
|
|
32565
|
-
var predicates, toFormData_default;
|
|
32831
|
+
var DEFAULT_FORM_DATA_MAX_DEPTH = 100, predicates, toFormData_default;
|
|
32566
32832
|
var init_toFormData = __esm(() => {
|
|
32567
32833
|
init_utils();
|
|
32568
32834
|
init_AxiosError();
|
|
32569
32835
|
init_FormData();
|
|
32836
|
+
init_Buffer();
|
|
32570
32837
|
predicates = utils_default.toFlatObject(utils_default, {}, null, function filter(prop) {
|
|
32571
32838
|
return /^is[A-Z]/.test(prop);
|
|
32572
32839
|
});
|
|
32573
32840
|
toFormData_default = toFormData;
|
|
32574
32841
|
});
|
|
32575
32842
|
|
|
32576
|
-
// node_modules/.bun/axios@1.
|
|
32843
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
|
|
32577
32844
|
function encode(str) {
|
|
32578
32845
|
const charMap = {
|
|
32579
32846
|
"!": "%21",
|
|
@@ -32599,9 +32866,7 @@ var init_AxiosURLSearchParams = __esm(() => {
|
|
|
32599
32866
|
this._pairs.push([name, value]);
|
|
32600
32867
|
};
|
|
32601
32868
|
prototype.toString = function toString4(encoder) {
|
|
32602
|
-
const _encode = encoder ?
|
|
32603
|
-
return encoder.call(this, value, encode);
|
|
32604
|
-
} : encode;
|
|
32869
|
+
const _encode = encoder ? (value) => encoder.call(this, value, encode) : encode;
|
|
32605
32870
|
return this._pairs.map(function each(pair) {
|
|
32606
32871
|
return _encode(pair[0]) + "=" + _encode(pair[1]);
|
|
32607
32872
|
}, "").join("&");
|
|
@@ -32609,7 +32874,7 @@ var init_AxiosURLSearchParams = __esm(() => {
|
|
|
32609
32874
|
AxiosURLSearchParams_default = AxiosURLSearchParams;
|
|
32610
32875
|
});
|
|
32611
32876
|
|
|
32612
|
-
// node_modules/.bun/axios@1.
|
|
32877
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/helpers/buildURL.js
|
|
32613
32878
|
function encode2(val) {
|
|
32614
32879
|
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
32615
32880
|
}
|
|
@@ -32617,11 +32882,12 @@ function buildURL(url, params, options) {
|
|
|
32617
32882
|
if (!params) {
|
|
32618
32883
|
return url;
|
|
32619
32884
|
}
|
|
32620
|
-
|
|
32885
|
+
url = url || "";
|
|
32621
32886
|
const _options = utils_default.isFunction(options) ? {
|
|
32622
32887
|
serialize: options
|
|
32623
32888
|
} : options;
|
|
32624
|
-
const
|
|
32889
|
+
const _encode = utils_default.getSafeProp(_options, "encode") || encode2;
|
|
32890
|
+
const serializeFn = utils_default.getSafeProp(_options, "serialize");
|
|
32625
32891
|
let serializedParams;
|
|
32626
32892
|
if (serializeFn) {
|
|
32627
32893
|
serializedParams = serializeFn(params, _options);
|
|
@@ -32642,45 +32908,119 @@ var init_buildURL = __esm(() => {
|
|
|
32642
32908
|
init_AxiosURLSearchParams();
|
|
32643
32909
|
});
|
|
32644
32910
|
|
|
32645
|
-
// node_modules/.bun/axios@1.
|
|
32911
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/core/InterceptorManager.js
|
|
32912
|
+
function countHandlers(handlers) {
|
|
32913
|
+
return handlers ? handlers.length : 0;
|
|
32914
|
+
}
|
|
32915
|
+
function trimHandlers(handlers) {
|
|
32916
|
+
if (!handlers) {
|
|
32917
|
+
return;
|
|
32918
|
+
}
|
|
32919
|
+
while (handlers.length && handlers[handlers.length - 1] === null) {
|
|
32920
|
+
handlers.pop();
|
|
32921
|
+
}
|
|
32922
|
+
}
|
|
32923
|
+
function syncHandlerEntries(manager, internals) {
|
|
32924
|
+
const handlers = manager.handlers;
|
|
32925
|
+
const length = countHandlers(handlers);
|
|
32926
|
+
if (handlers !== internals.handlersRef) {
|
|
32927
|
+
internals.handlersRef = handlers;
|
|
32928
|
+
internals.handlerEntries.clear();
|
|
32929
|
+
} else if (length !== internals.handlersLength) {
|
|
32930
|
+
if (!length) {
|
|
32931
|
+
internals.handlerEntries.clear();
|
|
32932
|
+
} else {
|
|
32933
|
+
internals.handlerEntries.forEach(function removeStaleEntry(entry, id) {
|
|
32934
|
+
if (handlers[entry.index] !== entry.handler) {
|
|
32935
|
+
internals.handlerEntries.delete(id);
|
|
32936
|
+
}
|
|
32937
|
+
});
|
|
32938
|
+
}
|
|
32939
|
+
}
|
|
32940
|
+
internals.handlersLength = length;
|
|
32941
|
+
}
|
|
32942
|
+
|
|
32646
32943
|
class InterceptorManager {
|
|
32647
32944
|
constructor() {
|
|
32648
32945
|
this.handlers = [];
|
|
32946
|
+
this[$internals2] = {
|
|
32947
|
+
handlersRef: this.handlers,
|
|
32948
|
+
handlersLength: this.handlers.length,
|
|
32949
|
+
handlerEntries: new Map,
|
|
32950
|
+
iterationDepth: 0,
|
|
32951
|
+
nextId: 0
|
|
32952
|
+
};
|
|
32649
32953
|
}
|
|
32650
32954
|
use(fulfilled, rejected, options) {
|
|
32651
|
-
|
|
32955
|
+
const handler = {
|
|
32652
32956
|
fulfilled,
|
|
32653
32957
|
rejected,
|
|
32654
32958
|
synchronous: options ? options.synchronous : false,
|
|
32655
32959
|
runWhen: options ? options.runWhen : null
|
|
32960
|
+
};
|
|
32961
|
+
const internals = this[$internals2];
|
|
32962
|
+
if (this.handlers == null) {
|
|
32963
|
+
this.handlers = [];
|
|
32964
|
+
}
|
|
32965
|
+
syncHandlerEntries(this, internals);
|
|
32966
|
+
const id = internals.nextId++;
|
|
32967
|
+
this.handlers.push(handler);
|
|
32968
|
+
internals.handlerEntries.set(id, {
|
|
32969
|
+
handler,
|
|
32970
|
+
index: this.handlers.length - 1
|
|
32656
32971
|
});
|
|
32657
|
-
|
|
32972
|
+
internals.handlersLength = this.handlers.length;
|
|
32973
|
+
return id;
|
|
32658
32974
|
}
|
|
32659
32975
|
eject(id) {
|
|
32660
|
-
|
|
32661
|
-
|
|
32976
|
+
const internals = this[$internals2];
|
|
32977
|
+
syncHandlerEntries(this, internals);
|
|
32978
|
+
const entry = internals.handlerEntries.get(id);
|
|
32979
|
+
if (entry) {
|
|
32980
|
+
internals.handlerEntries.delete(id);
|
|
32981
|
+
if (this.handlers[entry.index] !== entry.handler) {
|
|
32982
|
+
return;
|
|
32983
|
+
}
|
|
32984
|
+
this.handlers[entry.index] = null;
|
|
32985
|
+
if (!internals.iterationDepth) {
|
|
32986
|
+
trimHandlers(this.handlers);
|
|
32987
|
+
internals.handlersLength = this.handlers.length;
|
|
32988
|
+
}
|
|
32662
32989
|
}
|
|
32663
32990
|
}
|
|
32664
32991
|
clear() {
|
|
32665
32992
|
if (this.handlers) {
|
|
32666
32993
|
this.handlers = [];
|
|
32994
|
+
syncHandlerEntries(this, this[$internals2]);
|
|
32667
32995
|
}
|
|
32668
32996
|
}
|
|
32669
32997
|
forEach(fn) {
|
|
32670
|
-
|
|
32671
|
-
|
|
32672
|
-
|
|
32998
|
+
const internals = this[$internals2];
|
|
32999
|
+
syncHandlerEntries(this, internals);
|
|
33000
|
+
internals.iterationDepth++;
|
|
33001
|
+
try {
|
|
33002
|
+
utils_default.forEach(this.handlers, function forEachHandler(h) {
|
|
33003
|
+
if (h !== null) {
|
|
33004
|
+
fn(h);
|
|
33005
|
+
}
|
|
33006
|
+
});
|
|
33007
|
+
} finally {
|
|
33008
|
+
if (!--internals.iterationDepth) {
|
|
33009
|
+
syncHandlerEntries(this, internals);
|
|
33010
|
+
trimHandlers(this.handlers);
|
|
33011
|
+
internals.handlersLength = countHandlers(this.handlers);
|
|
32673
33012
|
}
|
|
32674
|
-
}
|
|
33013
|
+
}
|
|
32675
33014
|
}
|
|
32676
33015
|
}
|
|
32677
|
-
var InterceptorManager_default;
|
|
33016
|
+
var $internals2, InterceptorManager_default;
|
|
32678
33017
|
var init_InterceptorManager = __esm(() => {
|
|
32679
33018
|
init_utils();
|
|
33019
|
+
$internals2 = Symbol("internals");
|
|
32680
33020
|
InterceptorManager_default = InterceptorManager;
|
|
32681
33021
|
});
|
|
32682
33022
|
|
|
32683
|
-
// node_modules/.bun/axios@1.
|
|
33023
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/defaults/transitional.js
|
|
32684
33024
|
var transitional_default;
|
|
32685
33025
|
var init_transitional = __esm(() => {
|
|
32686
33026
|
transitional_default = {
|
|
@@ -32688,18 +33028,19 @@ var init_transitional = __esm(() => {
|
|
|
32688
33028
|
forcedJSONParsing: true,
|
|
32689
33029
|
clarifyTimeoutError: false,
|
|
32690
33030
|
legacyInterceptorReqResOrdering: true,
|
|
32691
|
-
advertiseZstdAcceptEncoding: false
|
|
33031
|
+
advertiseZstdAcceptEncoding: false,
|
|
33032
|
+
validateStatusUndefinedResolves: true
|
|
32692
33033
|
};
|
|
32693
33034
|
});
|
|
32694
33035
|
|
|
32695
|
-
// node_modules/.bun/axios@1.
|
|
33036
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
|
|
32696
33037
|
import url from "url";
|
|
32697
33038
|
var URLSearchParams_default;
|
|
32698
33039
|
var init_URLSearchParams = __esm(() => {
|
|
32699
33040
|
URLSearchParams_default = url.URLSearchParams;
|
|
32700
33041
|
});
|
|
32701
33042
|
|
|
32702
|
-
// node_modules/.bun/axios@1.
|
|
33043
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/platform/node/index.js
|
|
32703
33044
|
import crypto2 from "crypto";
|
|
32704
33045
|
var ALPHA = "abcdefghijklmnopqrstuvwxyz", DIGIT = "0123456789", ALPHABET, generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
|
|
32705
33046
|
let str = "";
|
|
@@ -32732,7 +33073,7 @@ var init_node = __esm(() => {
|
|
|
32732
33073
|
};
|
|
32733
33074
|
});
|
|
32734
33075
|
|
|
32735
|
-
// node_modules/.bun/axios@1.
|
|
33076
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/platform/common/utils.js
|
|
32736
33077
|
var exports_utils = {};
|
|
32737
33078
|
__export(exports_utils, {
|
|
32738
33079
|
origin: () => origin,
|
|
@@ -32752,7 +33093,7 @@ var init_utils2 = __esm(() => {
|
|
|
32752
33093
|
origin = hasBrowserEnv && window.location.href || "http://localhost";
|
|
32753
33094
|
});
|
|
32754
33095
|
|
|
32755
|
-
// node_modules/.bun/axios@1.
|
|
33096
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/platform/index.js
|
|
32756
33097
|
var platform_default;
|
|
32757
33098
|
var init_platform = __esm(() => {
|
|
32758
33099
|
init_node();
|
|
@@ -32763,7 +33104,7 @@ var init_platform = __esm(() => {
|
|
|
32763
33104
|
};
|
|
32764
33105
|
});
|
|
32765
33106
|
|
|
32766
|
-
// node_modules/.bun/axios@1.
|
|
33107
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
32767
33108
|
function toURLEncodedForm(data, options) {
|
|
32768
33109
|
return toFormData_default(data, new platform_default.classes.URLSearchParams, {
|
|
32769
33110
|
visitor: function(value, key, path6, helpers3) {
|
|
@@ -32782,11 +33123,21 @@ var init_toURLEncodedForm = __esm(() => {
|
|
|
32782
33123
|
init_platform();
|
|
32783
33124
|
});
|
|
32784
33125
|
|
|
32785
|
-
// node_modules/.bun/axios@1.
|
|
33126
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/helpers/formDataToJSON.js
|
|
33127
|
+
function throwIfDepthExceeded(index2) {
|
|
33128
|
+
if (index2 > MAX_DEPTH) {
|
|
33129
|
+
throw new AxiosError_default("FormData field is too deeply nested (" + index2 + " levels). Max depth: " + MAX_DEPTH, AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED);
|
|
33130
|
+
}
|
|
33131
|
+
}
|
|
32786
33132
|
function parsePropPath(name) {
|
|
32787
|
-
|
|
32788
|
-
|
|
32789
|
-
|
|
33133
|
+
const path6 = [];
|
|
33134
|
+
const pattern = /[^.[\]]+|\[([^.[\]]*)]/g;
|
|
33135
|
+
let match;
|
|
33136
|
+
while ((match = pattern.exec(name)) !== null) {
|
|
33137
|
+
throwIfDepthExceeded(path6.length);
|
|
33138
|
+
path6.push(match[0] === "[]" ? "" : match[1] || match[0]);
|
|
33139
|
+
}
|
|
33140
|
+
return path6;
|
|
32790
33141
|
}
|
|
32791
33142
|
function arrayToObject(arr) {
|
|
32792
33143
|
const obj = {};
|
|
@@ -32802,6 +33153,7 @@ function arrayToObject(arr) {
|
|
|
32802
33153
|
}
|
|
32803
33154
|
function formDataToJSON(formData) {
|
|
32804
33155
|
function buildPath(path6, value, target, index2) {
|
|
33156
|
+
throwIfDepthExceeded(index2);
|
|
32805
33157
|
let name = path6[index2++];
|
|
32806
33158
|
if (name === "__proto__")
|
|
32807
33159
|
return true;
|
|
@@ -32834,14 +33186,36 @@ function formDataToJSON(formData) {
|
|
|
32834
33186
|
}
|
|
32835
33187
|
return null;
|
|
32836
33188
|
}
|
|
32837
|
-
var formDataToJSON_default;
|
|
33189
|
+
var MAX_DEPTH, formDataToJSON_default;
|
|
32838
33190
|
var init_formDataToJSON = __esm(() => {
|
|
32839
33191
|
init_utils();
|
|
33192
|
+
init_AxiosError();
|
|
33193
|
+
init_toFormData();
|
|
33194
|
+
MAX_DEPTH = DEFAULT_FORM_DATA_MAX_DEPTH;
|
|
32840
33195
|
formDataToJSON_default = formDataToJSON;
|
|
32841
33196
|
});
|
|
32842
33197
|
|
|
32843
|
-
// node_modules/.bun/axios@1.
|
|
32844
|
-
|
|
33198
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/core/methodList.js
|
|
33199
|
+
var methodList, methodList_default;
|
|
33200
|
+
var init_methodList = __esm(() => {
|
|
33201
|
+
methodList = Object.freeze([
|
|
33202
|
+
"get",
|
|
33203
|
+
"delete",
|
|
33204
|
+
"head",
|
|
33205
|
+
"options",
|
|
33206
|
+
"post",
|
|
33207
|
+
"put",
|
|
33208
|
+
"patch",
|
|
33209
|
+
"purge",
|
|
33210
|
+
"link",
|
|
33211
|
+
"unlink",
|
|
33212
|
+
"query"
|
|
33213
|
+
]);
|
|
33214
|
+
methodList_default = methodList;
|
|
33215
|
+
});
|
|
33216
|
+
|
|
33217
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/defaults/index.js
|
|
33218
|
+
function stringifySafely2(rawValue, parser, encoder) {
|
|
32845
33219
|
if (utils_default.isString(rawValue)) {
|
|
32846
33220
|
try {
|
|
32847
33221
|
(parser || JSON.parse)(rawValue);
|
|
@@ -32863,6 +33237,7 @@ var init_defaults = __esm(() => {
|
|
|
32863
33237
|
init_toURLEncodedForm();
|
|
32864
33238
|
init_platform();
|
|
32865
33239
|
init_formDataToJSON();
|
|
33240
|
+
init_methodList();
|
|
32866
33241
|
defaults = {
|
|
32867
33242
|
transitional: transitional_default,
|
|
32868
33243
|
adapter: ["xhr", "http", "fetch"],
|
|
@@ -32902,7 +33277,7 @@ var init_defaults = __esm(() => {
|
|
|
32902
33277
|
}
|
|
32903
33278
|
if (isObjectPayload || hasJSONContentType) {
|
|
32904
33279
|
headers.setContentType("application/json", false);
|
|
32905
|
-
return
|
|
33280
|
+
return stringifySafely2(data);
|
|
32906
33281
|
}
|
|
32907
33282
|
return data;
|
|
32908
33283
|
}
|
|
@@ -32952,13 +33327,13 @@ var init_defaults = __esm(() => {
|
|
|
32952
33327
|
}
|
|
32953
33328
|
}
|
|
32954
33329
|
};
|
|
32955
|
-
utils_default.forEach(
|
|
33330
|
+
utils_default.forEach(methodList_default, (method) => {
|
|
32956
33331
|
defaults.headers[method] = {};
|
|
32957
33332
|
});
|
|
32958
33333
|
defaults_default = defaults;
|
|
32959
33334
|
});
|
|
32960
33335
|
|
|
32961
|
-
// node_modules/.bun/axios@1.
|
|
33336
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/core/transformData.js
|
|
32962
33337
|
function transformData(fns, response) {
|
|
32963
33338
|
const config = this || defaults_default;
|
|
32964
33339
|
const context = response || config;
|
|
@@ -32976,12 +33351,12 @@ var init_transformData = __esm(() => {
|
|
|
32976
33351
|
init_AxiosHeaders();
|
|
32977
33352
|
});
|
|
32978
33353
|
|
|
32979
|
-
// node_modules/.bun/axios@1.
|
|
33354
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/cancel/isCancel.js
|
|
32980
33355
|
function isCancel(value) {
|
|
32981
33356
|
return !!(value && value.__CANCEL__);
|
|
32982
33357
|
}
|
|
32983
33358
|
|
|
32984
|
-
// node_modules/.bun/axios@1.
|
|
33359
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/cancel/CanceledError.js
|
|
32985
33360
|
var CanceledError, CanceledError_default;
|
|
32986
33361
|
var init_CanceledError = __esm(() => {
|
|
32987
33362
|
init_AxiosError();
|
|
@@ -32995,7 +33370,7 @@ var init_CanceledError = __esm(() => {
|
|
|
32995
33370
|
CanceledError_default = CanceledError;
|
|
32996
33371
|
});
|
|
32997
33372
|
|
|
32998
|
-
// node_modules/.bun/axios@1.
|
|
33373
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/core/settle.js
|
|
32999
33374
|
function settle(resolve, reject, response) {
|
|
33000
33375
|
const validateStatus2 = response.config.validateStatus;
|
|
33001
33376
|
if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
|
|
@@ -33008,7 +33383,7 @@ var init_settle = __esm(() => {
|
|
|
33008
33383
|
init_AxiosError();
|
|
33009
33384
|
});
|
|
33010
33385
|
|
|
33011
|
-
// node_modules/.bun/axios@1.
|
|
33386
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
33012
33387
|
function isAbsoluteURL2(url2) {
|
|
33013
33388
|
if (typeof url2 !== "string") {
|
|
33014
33389
|
return false;
|
|
@@ -33016,20 +33391,76 @@ function isAbsoluteURL2(url2) {
|
|
|
33016
33391
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
|
|
33017
33392
|
}
|
|
33018
33393
|
|
|
33019
|
-
// node_modules/.bun/axios@1.
|
|
33394
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/helpers/combineURLs.js
|
|
33020
33395
|
function combineURLs(baseURL, relativeURL) {
|
|
33021
|
-
|
|
33396
|
+
if (!relativeURL) {
|
|
33397
|
+
return baseURL;
|
|
33398
|
+
}
|
|
33399
|
+
let end = baseURL.length;
|
|
33400
|
+
while (end > 0 && baseURL.charCodeAt(end - 1) === 47) {
|
|
33401
|
+
end--;
|
|
33402
|
+
}
|
|
33403
|
+
return baseURL.slice(0, end) + "/" + relativeURL.replace(/^\/+/, "");
|
|
33022
33404
|
}
|
|
33023
33405
|
|
|
33024
|
-
// node_modules/.bun/axios@1.
|
|
33025
|
-
function
|
|
33406
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js
|
|
33407
|
+
function normalizeURLForProtocolCheck(url2) {
|
|
33408
|
+
if (typeof url2 !== "string") {
|
|
33409
|
+
return url2;
|
|
33410
|
+
}
|
|
33411
|
+
let start = 0;
|
|
33412
|
+
while (start < url2.length && url2.charCodeAt(start) <= 32) {
|
|
33413
|
+
start++;
|
|
33414
|
+
}
|
|
33415
|
+
return url2.slice(start).replace(urlParserControlCharacters, "");
|
|
33416
|
+
}
|
|
33417
|
+
var urlParserControlCharacters;
|
|
33418
|
+
var init_normalizeURLForProtocolCheck = __esm(() => {
|
|
33419
|
+
urlParserControlCharacters = /[\t\n\r]/g;
|
|
33420
|
+
});
|
|
33421
|
+
|
|
33422
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/core/buildFullPath.js
|
|
33423
|
+
function redactFragment(fragment) {
|
|
33424
|
+
if (!fragment) {
|
|
33425
|
+
return fragment;
|
|
33426
|
+
}
|
|
33427
|
+
return fragment.replace(/(^|&)([^=&]*=)?[^&]+/g, (match, separator, parameterName = "") => {
|
|
33428
|
+
return `${separator}${parameterName}${REDACTED}`;
|
|
33429
|
+
});
|
|
33430
|
+
}
|
|
33431
|
+
function redactSensitiveURLParts(url2) {
|
|
33432
|
+
const redactedURL = url2.replace(/^(https?:\/{0,2})[^/?#]*@/i, `$1${REDACTED}@`);
|
|
33433
|
+
const fragmentIndex = redactedURL.indexOf("#");
|
|
33434
|
+
const urlWithoutFragment = fragmentIndex === -1 ? redactedURL : redactedURL.slice(0, fragmentIndex);
|
|
33435
|
+
const redactedURLWithoutFragment = urlWithoutFragment.replace(/([?&][^=&#]*=)[^&#]*/g, `$1${REDACTED}`);
|
|
33436
|
+
if (fragmentIndex === -1) {
|
|
33437
|
+
return redactedURLWithoutFragment;
|
|
33438
|
+
}
|
|
33439
|
+
return `${redactedURLWithoutFragment}#${redactFragment(redactedURL.slice(fragmentIndex + 1))}`;
|
|
33440
|
+
}
|
|
33441
|
+
function assertValidHttpProtocolURL(url2, config) {
|
|
33442
|
+
if (typeof url2 === "string") {
|
|
33443
|
+
const normalizedURL = normalizeURLForProtocolCheck(url2);
|
|
33444
|
+
if (malformedHttpProtocol.test(normalizedURL)) {
|
|
33445
|
+
throw new AxiosError_default(`Invalid URL ${JSON.stringify(redactSensitiveURLParts(normalizedURL))}: missing "//" after protocol`, AxiosError_default.ERR_INVALID_URL, config);
|
|
33446
|
+
}
|
|
33447
|
+
}
|
|
33448
|
+
}
|
|
33449
|
+
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls, config) {
|
|
33450
|
+
assertValidHttpProtocolURL(requestedURL, config);
|
|
33026
33451
|
let isRelativeUrl = !isAbsoluteURL2(requestedURL);
|
|
33027
33452
|
if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) {
|
|
33453
|
+
assertValidHttpProtocolURL(baseURL, config);
|
|
33028
33454
|
return combineURLs(baseURL, requestedURL);
|
|
33029
33455
|
}
|
|
33030
33456
|
return requestedURL;
|
|
33031
33457
|
}
|
|
33032
|
-
var
|
|
33458
|
+
var malformedHttpProtocol;
|
|
33459
|
+
var init_buildFullPath = __esm(() => {
|
|
33460
|
+
init_AxiosError();
|
|
33461
|
+
init_normalizeURLForProtocolCheck();
|
|
33462
|
+
malformedHttpProtocol = /^https?:(?!\/\/)/i;
|
|
33463
|
+
});
|
|
33033
33464
|
|
|
33034
33465
|
// node_modules/.bun/proxy-from-env@2.1.0/node_modules/proxy-from-env/index.js
|
|
33035
33466
|
function parseUrl(urlString) {
|
|
@@ -34800,16 +35231,16 @@ var require_follow_redirects = __commonJS((exports, module) => {
|
|
|
34800
35231
|
module.exports.wrap = wrap;
|
|
34801
35232
|
});
|
|
34802
35233
|
|
|
34803
|
-
// node_modules/.bun/axios@1.
|
|
34804
|
-
var VERSION2 = "1.
|
|
35234
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/env/data.js
|
|
35235
|
+
var VERSION2 = "1.20.0";
|
|
34805
35236
|
|
|
34806
|
-
// node_modules/.bun/axios@1.
|
|
35237
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/helpers/parseProtocol.js
|
|
34807
35238
|
function parseProtocol(url2) {
|
|
34808
35239
|
const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url2);
|
|
34809
35240
|
return match && match[1] || "";
|
|
34810
35241
|
}
|
|
34811
35242
|
|
|
34812
|
-
// node_modules/.bun/axios@1.
|
|
35243
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/helpers/fromDataURI.js
|
|
34813
35244
|
function fromDataURI(uri, asBlob, options) {
|
|
34814
35245
|
const _Blob = options && options.Blob || platform_default.classes.Blob;
|
|
34815
35246
|
const protocol = parseProtocol(uri);
|
|
@@ -34826,13 +35257,13 @@ function fromDataURI(uri, asBlob, options) {
|
|
|
34826
35257
|
const params = match[2];
|
|
34827
35258
|
const encoding = match[3] ? "base64" : "utf8";
|
|
34828
35259
|
const body = match[4];
|
|
34829
|
-
let mime;
|
|
35260
|
+
let mime = "";
|
|
34830
35261
|
if (type) {
|
|
34831
35262
|
mime = params ? type + params : type;
|
|
34832
35263
|
} else if (params) {
|
|
34833
35264
|
mime = "text/plain" + params;
|
|
34834
35265
|
}
|
|
34835
|
-
const buffer = Buffer.from(decodeURIComponent(body), encoding);
|
|
35266
|
+
const buffer = encoding === "base64" ? Buffer.from(body, "base64") : Buffer.from(decodeURIComponent(body), encoding);
|
|
34836
35267
|
if (asBlob) {
|
|
34837
35268
|
if (!_Blob) {
|
|
34838
35269
|
throw new AxiosError_default("Blob is not supported", AxiosError_default.ERR_NOT_SUPPORT);
|
|
@@ -34847,10 +35278,27 @@ var DATA_URL_PATTERN;
|
|
|
34847
35278
|
var init_fromDataURI = __esm(() => {
|
|
34848
35279
|
init_AxiosError();
|
|
34849
35280
|
init_platform();
|
|
34850
|
-
DATA_URL_PATTERN = /^([
|
|
35281
|
+
DATA_URL_PATTERN = /^([^,;/]+\/[^,;/]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;
|
|
34851
35282
|
});
|
|
34852
35283
|
|
|
34853
|
-
// node_modules/.bun/axios@1.
|
|
35284
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/core/setFormDataHeaders.js
|
|
35285
|
+
function setFormDataHeaders(headers, formHeaders, policy) {
|
|
35286
|
+
if (policy !== "content-only") {
|
|
35287
|
+
headers.set(formHeaders);
|
|
35288
|
+
return;
|
|
35289
|
+
}
|
|
35290
|
+
Object.entries(formHeaders || {}).forEach(([key, val]) => {
|
|
35291
|
+
if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
|
|
35292
|
+
headers.set(key, val);
|
|
35293
|
+
}
|
|
35294
|
+
});
|
|
35295
|
+
}
|
|
35296
|
+
var FORM_DATA_CONTENT_HEADERS;
|
|
35297
|
+
var init_setFormDataHeaders = __esm(() => {
|
|
35298
|
+
FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
|
|
35299
|
+
});
|
|
35300
|
+
|
|
35301
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/helpers/AxiosTransformStream.js
|
|
34854
35302
|
import stream from "stream";
|
|
34855
35303
|
var kInternals, AxiosTransformStream, AxiosTransformStream_default;
|
|
34856
35304
|
var init_AxiosTransformStream = __esm(() => {
|
|
@@ -34969,7 +35417,7 @@ var init_AxiosTransformStream = __esm(() => {
|
|
|
34969
35417
|
AxiosTransformStream_default = AxiosTransformStream;
|
|
34970
35418
|
});
|
|
34971
35419
|
|
|
34972
|
-
// node_modules/.bun/axios@1.
|
|
35420
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/helpers/readBlob.js
|
|
34973
35421
|
var asyncIterator, readBlob = async function* (blob) {
|
|
34974
35422
|
if (blob.stream) {
|
|
34975
35423
|
yield* blob.stream();
|
|
@@ -34986,7 +35434,7 @@ var init_readBlob = __esm(() => {
|
|
|
34986
35434
|
readBlob_default = readBlob;
|
|
34987
35435
|
});
|
|
34988
35436
|
|
|
34989
|
-
// node_modules/.bun/axios@1.
|
|
35437
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/helpers/formDataToStream.js
|
|
34990
35438
|
import util from "util";
|
|
34991
35439
|
import { Readable } from "stream";
|
|
34992
35440
|
|
|
@@ -35073,7 +35521,7 @@ var init_formDataToStream = __esm(() => {
|
|
|
35073
35521
|
formDataToStream_default = formDataToStream;
|
|
35074
35522
|
});
|
|
35075
35523
|
|
|
35076
|
-
// node_modules/.bun/axios@1.
|
|
35524
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
|
|
35077
35525
|
import stream2 from "stream";
|
|
35078
35526
|
var ZlibHeaderTransformStream, ZlibHeaderTransformStream_default;
|
|
35079
35527
|
var init_ZlibHeaderTransformStream = __esm(() => {
|
|
@@ -35098,7 +35546,7 @@ var init_ZlibHeaderTransformStream = __esm(() => {
|
|
|
35098
35546
|
ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
|
|
35099
35547
|
});
|
|
35100
35548
|
|
|
35101
|
-
// node_modules/.bun/axios@1.
|
|
35549
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/helpers/Http2Sessions.js
|
|
35102
35550
|
import http2 from "http2";
|
|
35103
35551
|
import util2 from "util";
|
|
35104
35552
|
|
|
@@ -35107,7 +35555,7 @@ class Http2Sessions {
|
|
|
35107
35555
|
this.sessions = Object.create(null);
|
|
35108
35556
|
}
|
|
35109
35557
|
getSession(authority, options) {
|
|
35110
|
-
options = Object.assign({
|
|
35558
|
+
options = Object.assign(Object.create(null), {
|
|
35111
35559
|
sessionTimeout: 1000
|
|
35112
35560
|
}, options);
|
|
35113
35561
|
let authoritySessions = this.sessions[authority];
|
|
@@ -35170,6 +35618,7 @@ class Http2Sessions {
|
|
|
35170
35618
|
};
|
|
35171
35619
|
}
|
|
35172
35620
|
session.once("close", removeSession);
|
|
35621
|
+
session.once("error", removeSession);
|
|
35173
35622
|
let entry = [session, options];
|
|
35174
35623
|
authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
|
|
35175
35624
|
return session;
|
|
@@ -35180,7 +35629,7 @@ var init_Http2Sessions = __esm(() => {
|
|
|
35180
35629
|
Http2Sessions_default = Http2Sessions;
|
|
35181
35630
|
});
|
|
35182
35631
|
|
|
35183
|
-
// node_modules/.bun/axios@1.
|
|
35632
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/helpers/callbackify.js
|
|
35184
35633
|
var callbackify = (fn, reducer) => {
|
|
35185
35634
|
return utils_default.isAsyncFn(fn) ? function(...args) {
|
|
35186
35635
|
const cb = args.pop();
|
|
@@ -35198,7 +35647,7 @@ var init_callbackify = __esm(() => {
|
|
|
35198
35647
|
callbackify_default = callbackify;
|
|
35199
35648
|
});
|
|
35200
35649
|
|
|
35201
|
-
// node_modules/.bun/axios@1.
|
|
35650
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/helpers/shouldBypassProxy.js
|
|
35202
35651
|
function shouldBypassProxy(location) {
|
|
35203
35652
|
let parsed;
|
|
35204
35653
|
try {
|
|
@@ -35215,10 +35664,18 @@ function shouldBypassProxy(location) {
|
|
|
35215
35664
|
}
|
|
35216
35665
|
const port = Number.parseInt(parsed.port, 10) || DEFAULT_PORTS2[parsed.protocol.split(":", 1)[0]] || 0;
|
|
35217
35666
|
const hostname = normalizeNoProxyHost(parsed.hostname.toLowerCase());
|
|
35667
|
+
const hostnameBytes = ipToBytes(hostname);
|
|
35218
35668
|
return noProxy.split(/[\s,]+/).some((entry) => {
|
|
35219
35669
|
if (!entry) {
|
|
35220
35670
|
return false;
|
|
35221
35671
|
}
|
|
35672
|
+
if (entry === "*") {
|
|
35673
|
+
return true;
|
|
35674
|
+
}
|
|
35675
|
+
const cidr = parseCidrEntry(entry);
|
|
35676
|
+
if (cidr !== undefined) {
|
|
35677
|
+
return cidr !== null && !!hostnameBytes && hostnameBytes.length === cidr.bytes.length && isInSubnet(hostnameBytes, cidr.bytes, cidr.prefix);
|
|
35678
|
+
}
|
|
35222
35679
|
let [entryHost, entryPort] = parseNoProxyEntry(entry);
|
|
35223
35680
|
entryHost = normalizeNoProxyHost(entryHost);
|
|
35224
35681
|
if (!entryHost) {
|
|
@@ -35236,13 +35693,94 @@ function shouldBypassProxy(location) {
|
|
|
35236
35693
|
return hostname === entryHost || isLoopback(hostname) && isLoopback(entryHost);
|
|
35237
35694
|
});
|
|
35238
35695
|
}
|
|
35239
|
-
var LOOPBACK_HOSTNAMES,
|
|
35696
|
+
var LOOPBACK_HOSTNAMES, trimTrailingDots = (value) => {
|
|
35697
|
+
let end = value.length;
|
|
35698
|
+
while (end && value.charCodeAt(end - 1) === 46) {
|
|
35699
|
+
end--;
|
|
35700
|
+
}
|
|
35701
|
+
return end === value.length ? value : value.slice(0, end);
|
|
35702
|
+
}, isIPv4Loopback = (host) => {
|
|
35240
35703
|
const parts = host.split(".");
|
|
35241
35704
|
if (parts.length !== 4)
|
|
35242
35705
|
return false;
|
|
35243
35706
|
if (parts[0] !== "127")
|
|
35244
35707
|
return false;
|
|
35245
35708
|
return parts.every((p) => /^\d+$/.test(p) && Number(p) >= 0 && Number(p) <= 255);
|
|
35709
|
+
}, parseIPv4Octet = (text) => {
|
|
35710
|
+
if (/^0[xX][0-9a-fA-F]+$/.test(text)) {
|
|
35711
|
+
const n = parseInt(text.slice(2), 16);
|
|
35712
|
+
return Number.isFinite(n) ? n : null;
|
|
35713
|
+
}
|
|
35714
|
+
if (text.length > 1 && /^0[0-7]+$/.test(text)) {
|
|
35715
|
+
const n = parseInt(text, 8);
|
|
35716
|
+
return Number.isFinite(n) ? n : null;
|
|
35717
|
+
}
|
|
35718
|
+
if (text.length > 1 && /^0[0-9]+$/.test(text)) {
|
|
35719
|
+
return null;
|
|
35720
|
+
}
|
|
35721
|
+
if (/^[0-9]+$/.test(text)) {
|
|
35722
|
+
const n = parseInt(text, 10);
|
|
35723
|
+
return Number.isFinite(n) ? n : null;
|
|
35724
|
+
}
|
|
35725
|
+
return null;
|
|
35726
|
+
}, normalizeIPAddress = (host) => {
|
|
35727
|
+
if (typeof host !== "string" || !host || host.indexOf(":") !== -1) {
|
|
35728
|
+
return host;
|
|
35729
|
+
}
|
|
35730
|
+
let h = host;
|
|
35731
|
+
if (h.charAt(0) === "[" && h.charAt(h.length - 1) === "]") {
|
|
35732
|
+
h = h.slice(1, -1);
|
|
35733
|
+
}
|
|
35734
|
+
h = trimTrailingDots(h);
|
|
35735
|
+
if (!/^[0-9.xXa-fA-F]+$/.test(h))
|
|
35736
|
+
return host;
|
|
35737
|
+
const parts = h.split(".");
|
|
35738
|
+
if (parts.some((p) => p === ""))
|
|
35739
|
+
return host;
|
|
35740
|
+
if (parts.length === 4) {
|
|
35741
|
+
const octets = parts.map(parseIPv4Octet);
|
|
35742
|
+
if (octets.some((n) => n === null || n < 0 || n > 255))
|
|
35743
|
+
return host;
|
|
35744
|
+
return octets.join(".");
|
|
35745
|
+
}
|
|
35746
|
+
if (parts.length > 4) {
|
|
35747
|
+
return host;
|
|
35748
|
+
}
|
|
35749
|
+
if (parts.length === 1)
|
|
35750
|
+
return host;
|
|
35751
|
+
const literalOctets = parts.slice(0, -1);
|
|
35752
|
+
const tail = parts[parts.length - 1];
|
|
35753
|
+
const tailSlots = 4 - literalOctets.length;
|
|
35754
|
+
const tailValue = parseIPv4Octet(tail);
|
|
35755
|
+
if (tailValue === null)
|
|
35756
|
+
return host;
|
|
35757
|
+
const maxTail = (1 << 8 * tailSlots) - 1;
|
|
35758
|
+
if (tailValue < 0 || tailValue > maxTail)
|
|
35759
|
+
return host;
|
|
35760
|
+
const tailOctets = new Array(tailSlots).fill(0);
|
|
35761
|
+
for (let i = tailSlots - 1, v = tailValue;i >= 0; i--, v >>= 8) {
|
|
35762
|
+
tailOctets[i] = v & 255;
|
|
35763
|
+
}
|
|
35764
|
+
const literal = literalOctets.map(parseIPv4Octet);
|
|
35765
|
+
if (literal.some((n) => n === null || n < 0 || n > 255))
|
|
35766
|
+
return host;
|
|
35767
|
+
return [...literal, ...tailOctets].join(".");
|
|
35768
|
+
}, isIPv6ZeroGroup = (group) => /^0{1,4}$/.test(group), isIPv6Unspecified = (host) => {
|
|
35769
|
+
if (host === "::")
|
|
35770
|
+
return true;
|
|
35771
|
+
const compressionIndex = host.indexOf("::");
|
|
35772
|
+
if (compressionIndex !== -1) {
|
|
35773
|
+
if (compressionIndex !== host.lastIndexOf("::"))
|
|
35774
|
+
return false;
|
|
35775
|
+
const left = host.slice(0, compressionIndex);
|
|
35776
|
+
const right = host.slice(compressionIndex + 2);
|
|
35777
|
+
const leftGroups = left ? left.split(":") : [];
|
|
35778
|
+
const rightGroups = right ? right.split(":") : [];
|
|
35779
|
+
const explicitGroups = leftGroups.length + rightGroups.length;
|
|
35780
|
+
return explicitGroups < 8 && leftGroups.every(isIPv6ZeroGroup) && rightGroups.every(isIPv6ZeroGroup);
|
|
35781
|
+
}
|
|
35782
|
+
const groups = host.split(":");
|
|
35783
|
+
return groups.length === 8 && groups.every(isIPv6ZeroGroup);
|
|
35246
35784
|
}, isIPv6Loopback = (host) => {
|
|
35247
35785
|
if (host === "::1")
|
|
35248
35786
|
return true;
|
|
@@ -35270,6 +35808,8 @@ var LOOPBACK_HOSTNAMES, isIPv4Loopback = (host) => {
|
|
|
35270
35808
|
return true;
|
|
35271
35809
|
if (isIPv4Loopback(host))
|
|
35272
35810
|
return true;
|
|
35811
|
+
if (isIPv6Unspecified(host))
|
|
35812
|
+
return true;
|
|
35273
35813
|
return isIPv6Loopback(host);
|
|
35274
35814
|
}, DEFAULT_PORTS2, parseNoProxyEntry = (entry) => {
|
|
35275
35815
|
let entryHost = entry;
|
|
@@ -35305,6 +35845,35 @@ var LOOPBACK_HOSTNAMES, isIPv4Loopback = (host) => {
|
|
|
35305
35845
|
return `${high >> 8}.${high & 255}.${low >> 8}.${low & 255}`;
|
|
35306
35846
|
}
|
|
35307
35847
|
return host;
|
|
35848
|
+
}, IPV4_OCTET_RE, ipv4ToBytes = (host) => {
|
|
35849
|
+
const parts = host.split(".");
|
|
35850
|
+
return parts.length === 4 && parts.every((part) => IPV4_OCTET_RE.test(part) && Number(part) <= 255) ? parts.map(Number) : null;
|
|
35851
|
+
}, IPV6_GROUP_RE, ipv6ToBytes = (host) => {
|
|
35852
|
+
const halves = host.split("::");
|
|
35853
|
+
if (halves.length > 2) {
|
|
35854
|
+
return null;
|
|
35855
|
+
}
|
|
35856
|
+
const groups = halves[0] ? halves[0].split(":") : [];
|
|
35857
|
+
if (halves.length === 2) {
|
|
35858
|
+
const rear = halves[1] ? halves[1].split(":") : [];
|
|
35859
|
+
const missing = 8 - groups.length - rear.length;
|
|
35860
|
+
if (missing < 1) {
|
|
35861
|
+
return null;
|
|
35862
|
+
}
|
|
35863
|
+
groups.push(...new Array(missing).fill("0"), ...rear);
|
|
35864
|
+
}
|
|
35865
|
+
if (groups.length !== 8 || groups.some((group) => !IPV6_GROUP_RE.test(group))) {
|
|
35866
|
+
return null;
|
|
35867
|
+
}
|
|
35868
|
+
return groups.flatMap((group) => {
|
|
35869
|
+
const value = Number.parseInt(group, 16);
|
|
35870
|
+
return [value >> 8 & 255, value & 255];
|
|
35871
|
+
});
|
|
35872
|
+
}, ipToBytes = (host) => {
|
|
35873
|
+
if (typeof host !== "string" || !host) {
|
|
35874
|
+
return null;
|
|
35875
|
+
}
|
|
35876
|
+
return host.indexOf(":") !== -1 ? ipv6ToBytes(host) : ipv4ToBytes(host);
|
|
35308
35877
|
}, normalizeNoProxyHost = (hostname) => {
|
|
35309
35878
|
if (!hostname) {
|
|
35310
35879
|
return hostname;
|
|
@@ -35312,10 +35881,88 @@ var LOOPBACK_HOSTNAMES, isIPv4Loopback = (host) => {
|
|
|
35312
35881
|
if (hostname.charAt(0) === "[" && hostname.charAt(hostname.length - 1) === "]") {
|
|
35313
35882
|
hostname = hostname.slice(1, -1);
|
|
35314
35883
|
}
|
|
35315
|
-
|
|
35884
|
+
const trimmed = trimTrailingDots(hostname);
|
|
35885
|
+
const ipv4 = normalizeIPAddress(trimmed);
|
|
35886
|
+
if (ipv4 !== trimmed) {
|
|
35887
|
+
return ipv4;
|
|
35888
|
+
}
|
|
35889
|
+
return unmapIPv4MappedIPv6(trimmed);
|
|
35890
|
+
}, normalizeCidrBase = (input) => {
|
|
35891
|
+
let base = input;
|
|
35892
|
+
const startsBracket = base.charAt(0) === "[";
|
|
35893
|
+
const endsBracket = base.charAt(base.length - 1) === "]";
|
|
35894
|
+
const hasBracket = base.includes("[") || base.includes("]");
|
|
35895
|
+
if (startsBracket || endsBracket) {
|
|
35896
|
+
if (!startsBracket || !endsBracket) {
|
|
35897
|
+
return null;
|
|
35898
|
+
}
|
|
35899
|
+
base = base.slice(1, -1);
|
|
35900
|
+
if (base.indexOf(":") === -1 || base.includes("[") || base.includes("]")) {
|
|
35901
|
+
return null;
|
|
35902
|
+
}
|
|
35903
|
+
} else if (hasBracket) {
|
|
35904
|
+
return null;
|
|
35905
|
+
}
|
|
35906
|
+
if (!base || base.charAt(base.length - 1) === ".") {
|
|
35907
|
+
return null;
|
|
35908
|
+
}
|
|
35909
|
+
const wasIPv6 = base.indexOf(":") !== -1;
|
|
35910
|
+
if (wasIPv6) {
|
|
35911
|
+
try {
|
|
35912
|
+
base = new URL(`http://[${base}]/`).hostname.slice(1, -1);
|
|
35913
|
+
} catch (_err) {
|
|
35914
|
+
return null;
|
|
35915
|
+
}
|
|
35916
|
+
} else {
|
|
35917
|
+
base = normalizeIPAddress(base);
|
|
35918
|
+
if (!ipv4ToBytes(base)) {
|
|
35919
|
+
return null;
|
|
35920
|
+
}
|
|
35921
|
+
}
|
|
35922
|
+
return { normalized: unmapIPv4MappedIPv6(base), wasIPv6 };
|
|
35923
|
+
}, CIDR_ENTRY_RE, parseCidrEntry = (entry) => {
|
|
35924
|
+
if (entry.indexOf("/") === -1) {
|
|
35925
|
+
return;
|
|
35926
|
+
}
|
|
35927
|
+
const match = CIDR_ENTRY_RE.exec(entry);
|
|
35928
|
+
if (!match) {
|
|
35929
|
+
return null;
|
|
35930
|
+
}
|
|
35931
|
+
let prefix = Number(match[2]);
|
|
35932
|
+
const parsedBase = normalizeCidrBase(match[1]);
|
|
35933
|
+
if (!parsedBase) {
|
|
35934
|
+
return null;
|
|
35935
|
+
}
|
|
35936
|
+
const { normalized, wasIPv6 } = parsedBase;
|
|
35937
|
+
if (wasIPv6 && normalized.indexOf(":") === -1) {
|
|
35938
|
+
if (prefix < 96) {
|
|
35939
|
+
return null;
|
|
35940
|
+
}
|
|
35941
|
+
prefix -= 96;
|
|
35942
|
+
}
|
|
35943
|
+
const bytes = ipToBytes(normalized);
|
|
35944
|
+
if (!bytes || prefix > bytes.length * 8) {
|
|
35945
|
+
return null;
|
|
35946
|
+
}
|
|
35947
|
+
return { bytes, prefix };
|
|
35948
|
+
}, isInSubnet = (addressBytes, networkBytes, prefix) => {
|
|
35949
|
+
const fullBytes = prefix >> 3;
|
|
35950
|
+
for (let i = 0;i < fullBytes; i++) {
|
|
35951
|
+
if (addressBytes[i] !== networkBytes[i]) {
|
|
35952
|
+
return false;
|
|
35953
|
+
}
|
|
35954
|
+
}
|
|
35955
|
+
const remainingBits = prefix & 7;
|
|
35956
|
+
if (remainingBits) {
|
|
35957
|
+
const mask = 255 << 8 - remainingBits & 255;
|
|
35958
|
+
if ((addressBytes[fullBytes] & mask) !== (networkBytes[fullBytes] & mask)) {
|
|
35959
|
+
return false;
|
|
35960
|
+
}
|
|
35961
|
+
}
|
|
35962
|
+
return true;
|
|
35316
35963
|
};
|
|
35317
35964
|
var init_shouldBypassProxy = __esm(() => {
|
|
35318
|
-
LOOPBACK_HOSTNAMES = new Set(["localhost"]);
|
|
35965
|
+
LOOPBACK_HOSTNAMES = new Set(["localhost", "0.0.0.0"]);
|
|
35319
35966
|
DEFAULT_PORTS2 = {
|
|
35320
35967
|
http: 80,
|
|
35321
35968
|
https: 443,
|
|
@@ -35325,9 +35972,12 @@ var init_shouldBypassProxy = __esm(() => {
|
|
|
35325
35972
|
};
|
|
35326
35973
|
IPV4_MAPPED_DOTTED_RE = /^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i;
|
|
35327
35974
|
IPV4_MAPPED_HEX_RE = /^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i;
|
|
35975
|
+
IPV4_OCTET_RE = /^(?:0|[1-9]\d{0,2})$/;
|
|
35976
|
+
IPV6_GROUP_RE = /^[0-9a-f]{1,4}$/i;
|
|
35977
|
+
CIDR_ENTRY_RE = /^(.+)\/(0|[1-9]\d{0,2})$/;
|
|
35328
35978
|
});
|
|
35329
35979
|
|
|
35330
|
-
// node_modules/.bun/axios@1.
|
|
35980
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/helpers/speedometer.js
|
|
35331
35981
|
function speedometer(samplesCount, min) {
|
|
35332
35982
|
samplesCount = samplesCount || 10;
|
|
35333
35983
|
const bytes = new Array(samplesCount);
|
|
@@ -35366,7 +36016,7 @@ var init_speedometer = __esm(() => {
|
|
|
35366
36016
|
speedometer_default = speedometer;
|
|
35367
36017
|
});
|
|
35368
36018
|
|
|
35369
|
-
// node_modules/.bun/axios@1.
|
|
36019
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/helpers/throttle.js
|
|
35370
36020
|
function throttle(fn, freq) {
|
|
35371
36021
|
let timestamp = 0;
|
|
35372
36022
|
let threshold = 1000 / freq;
|
|
@@ -35397,24 +36047,25 @@ function throttle(fn, freq) {
|
|
|
35397
36047
|
}
|
|
35398
36048
|
};
|
|
35399
36049
|
const flush = () => lastArgs && invoke(lastArgs);
|
|
35400
|
-
|
|
36050
|
+
const flushWith = (...args) => invoke(args);
|
|
36051
|
+
return [throttled, flush, flushWith];
|
|
35401
36052
|
}
|
|
35402
36053
|
var throttle_default;
|
|
35403
36054
|
var init_throttle = __esm(() => {
|
|
35404
36055
|
throttle_default = throttle;
|
|
35405
36056
|
});
|
|
35406
36057
|
|
|
35407
|
-
// node_modules/.bun/axios@1.
|
|
36058
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/helpers/progressEventReducer.js
|
|
35408
36059
|
var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
35409
36060
|
let bytesNotified = 0;
|
|
35410
36061
|
const _speedometer = speedometer_default(50, 250);
|
|
35411
36062
|
return throttle_default((e) => {
|
|
35412
|
-
if (!e ||
|
|
36063
|
+
if (!e || !utils_default.isNumber(e.loaded)) {
|
|
35413
36064
|
return;
|
|
35414
36065
|
}
|
|
35415
36066
|
const rawLoaded = e.loaded;
|
|
35416
36067
|
const total = e.lengthComputable ? e.total : undefined;
|
|
35417
|
-
const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
|
|
36068
|
+
const loaded = Math.max(0, total != null ? Math.min(rawLoaded, total) : rawLoaded);
|
|
35418
36069
|
const progressBytes = Math.max(0, loaded - bytesNotified);
|
|
35419
36070
|
const rate = _speedometer(progressBytes);
|
|
35420
36071
|
bytesNotified = Math.max(bytesNotified, loaded);
|
|
@@ -35441,15 +36092,64 @@ var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
|
35441
36092
|
}),
|
|
35442
36093
|
throttled[1]
|
|
35443
36094
|
];
|
|
35444
|
-
}, asyncDecorator = (fn) => (...args) =>
|
|
36095
|
+
}, asyncDecorator = (fn, scheduler = utils_default.asap) => (...args) => scheduler(() => fn(...args));
|
|
35445
36096
|
var init_progressEventReducer = __esm(() => {
|
|
35446
36097
|
init_speedometer();
|
|
35447
36098
|
init_throttle();
|
|
35448
36099
|
init_utils();
|
|
35449
36100
|
});
|
|
35450
36101
|
|
|
35451
|
-
// node_modules/.bun/axios@1.
|
|
36102
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
|
|
35452
36103
|
function estimateDataURLDecodedBytes(url2) {
|
|
36104
|
+
const fragmentIndex = typeof url2 === "string" ? url2.indexOf("#") : -1;
|
|
36105
|
+
return estimateDataURLBytes(fragmentIndex === -1 ? url2 : url2.slice(0, fragmentIndex), estimatePercentDecodedBase64Bytes);
|
|
36106
|
+
}
|
|
36107
|
+
function estimateDataURLBufferAllocation(url2) {
|
|
36108
|
+
return estimateDataURLBytes(url2, estimateBase64BufferAllocation);
|
|
36109
|
+
}
|
|
36110
|
+
var isHexDigit = (charCode) => charCode >= 48 && charCode <= 57 || charCode >= 65 && charCode <= 70 || charCode >= 97 && charCode <= 102, isPercentEncodedByte = (str, i, len) => i + 2 < len && isHexDigit(str.charCodeAt(i + 1)) && isHexDigit(str.charCodeAt(i + 2)), hexValue = (charCode) => charCode <= 57 ? charCode - 48 : (charCode & 223) - 55, isBase64Char = (charCode) => charCode >= 65 && charCode <= 90 || charCode >= 97 && charCode <= 122 || charCode >= 48 && charCode <= 57 || charCode === 43 || charCode === 47 || charCode === 45 || charCode === 95, isBase64Whitespace = (charCode) => charCode === 9 || charCode === 10 || charCode === 12 || charCode === 13 || charCode === 32, base64Bytes = (significant) => {
|
|
36111
|
+
const groups = Math.floor(significant / 4);
|
|
36112
|
+
const remainder = significant % 4;
|
|
36113
|
+
return groups * 3 + (remainder === 2 ? 1 : remainder === 3 ? 2 : 0);
|
|
36114
|
+
}, estimateBase64BufferAllocation = (body) => {
|
|
36115
|
+
const len = body.length;
|
|
36116
|
+
let padding = 0;
|
|
36117
|
+
if (len > 0 && body.charCodeAt(len - 1) === 61) {
|
|
36118
|
+
padding++;
|
|
36119
|
+
if (len > 1 && body.charCodeAt(len - 2) === 61) {
|
|
36120
|
+
padding++;
|
|
36121
|
+
}
|
|
36122
|
+
}
|
|
36123
|
+
return Math.floor((len - padding) * 3 / 4);
|
|
36124
|
+
}, estimatePercentDecodedBase64Bytes = (body) => {
|
|
36125
|
+
const len = body.length;
|
|
36126
|
+
let significant = 0;
|
|
36127
|
+
let padding = 0;
|
|
36128
|
+
let invalid = false;
|
|
36129
|
+
for (let i = 0;i < len; i++) {
|
|
36130
|
+
let code = body.charCodeAt(i);
|
|
36131
|
+
if (code === 37 && isPercentEncodedByte(body, i, len)) {
|
|
36132
|
+
code = hexValue(body.charCodeAt(i + 1)) * 16 + hexValue(body.charCodeAt(i + 2));
|
|
36133
|
+
i += 2;
|
|
36134
|
+
}
|
|
36135
|
+
if (isBase64Whitespace(code)) {
|
|
36136
|
+
continue;
|
|
36137
|
+
}
|
|
36138
|
+
if (code === 61) {
|
|
36139
|
+
padding++;
|
|
36140
|
+
continue;
|
|
36141
|
+
}
|
|
36142
|
+
if (!isBase64Char(code) || padding > 0) {
|
|
36143
|
+
invalid = true;
|
|
36144
|
+
continue;
|
|
36145
|
+
}
|
|
36146
|
+
significant++;
|
|
36147
|
+
}
|
|
36148
|
+
if (invalid || padding > 2 || padding > 0 && (significant + padding) % 4 !== 0 || significant % 4 === 1) {
|
|
36149
|
+
return estimateBase64BufferAllocation(body);
|
|
36150
|
+
}
|
|
36151
|
+
return base64Bytes(significant);
|
|
36152
|
+
}, estimateDataURLBytes = (url2, estimateBase64) => {
|
|
35453
36153
|
if (!url2 || typeof url2 !== "string")
|
|
35454
36154
|
return 0;
|
|
35455
36155
|
if (!url2.startsWith("data:"))
|
|
@@ -35461,49 +36161,15 @@ function estimateDataURLDecodedBytes(url2) {
|
|
|
35461
36161
|
const body = url2.slice(comma + 1);
|
|
35462
36162
|
const isBase64 = /;base64/i.test(meta);
|
|
35463
36163
|
if (isBase64) {
|
|
35464
|
-
|
|
35465
|
-
const len = body.length;
|
|
35466
|
-
for (let i = 0;i < len; i++) {
|
|
35467
|
-
if (body.charCodeAt(i) === 37 && i + 2 < len) {
|
|
35468
|
-
const a = body.charCodeAt(i + 1);
|
|
35469
|
-
const b = body.charCodeAt(i + 2);
|
|
35470
|
-
const isHex = (a >= 48 && a <= 57 || a >= 65 && a <= 70 || a >= 97 && a <= 102) && (b >= 48 && b <= 57 || b >= 65 && b <= 70 || b >= 97 && b <= 102);
|
|
35471
|
-
if (isHex) {
|
|
35472
|
-
effectiveLen -= 2;
|
|
35473
|
-
i += 2;
|
|
35474
|
-
}
|
|
35475
|
-
}
|
|
35476
|
-
}
|
|
35477
|
-
let pad = 0;
|
|
35478
|
-
let idx = len - 1;
|
|
35479
|
-
const tailIsPct3D = (j) => j >= 2 && body.charCodeAt(j - 2) === 37 && body.charCodeAt(j - 1) === 51 && (body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100);
|
|
35480
|
-
if (idx >= 0) {
|
|
35481
|
-
if (body.charCodeAt(idx) === 61) {
|
|
35482
|
-
pad++;
|
|
35483
|
-
idx--;
|
|
35484
|
-
} else if (tailIsPct3D(idx)) {
|
|
35485
|
-
pad++;
|
|
35486
|
-
idx -= 3;
|
|
35487
|
-
}
|
|
35488
|
-
}
|
|
35489
|
-
if (pad === 1 && idx >= 0) {
|
|
35490
|
-
if (body.charCodeAt(idx) === 61) {
|
|
35491
|
-
pad++;
|
|
35492
|
-
} else if (tailIsPct3D(idx)) {
|
|
35493
|
-
pad++;
|
|
35494
|
-
}
|
|
35495
|
-
}
|
|
35496
|
-
const groups = Math.floor(effectiveLen / 4);
|
|
35497
|
-
const bytes2 = groups * 3 - (pad || 0);
|
|
35498
|
-
return bytes2 > 0 ? bytes2 : 0;
|
|
35499
|
-
}
|
|
35500
|
-
if (typeof Buffer !== "undefined" && typeof Buffer.byteLength === "function") {
|
|
35501
|
-
return Buffer.byteLength(body, "utf8");
|
|
36164
|
+
return estimateBase64(body);
|
|
35502
36165
|
}
|
|
35503
36166
|
let bytes = 0;
|
|
35504
36167
|
for (let i = 0, len = body.length;i < len; i++) {
|
|
35505
36168
|
const c = body.charCodeAt(i);
|
|
35506
|
-
if (c
|
|
36169
|
+
if (c === 37 && isPercentEncodedByte(body, i, len)) {
|
|
36170
|
+
bytes += 1;
|
|
36171
|
+
i += 2;
|
|
36172
|
+
} else if (c < 128) {
|
|
35507
36173
|
bytes += 1;
|
|
35508
36174
|
} else if (c < 2048) {
|
|
35509
36175
|
bytes += 2;
|
|
@@ -35520,9 +36186,9 @@ function estimateDataURLDecodedBytes(url2) {
|
|
|
35520
36186
|
}
|
|
35521
36187
|
}
|
|
35522
36188
|
return bytes;
|
|
35523
|
-
}
|
|
36189
|
+
};
|
|
35524
36190
|
|
|
35525
|
-
// node_modules/.bun/axios@1.
|
|
36191
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/adapters/http.js
|
|
35526
36192
|
import http from "http";
|
|
35527
36193
|
import https from "https";
|
|
35528
36194
|
import http22 from "http2";
|
|
@@ -35531,16 +36197,34 @@ import { resolve as resolvePath } from "path";
|
|
|
35531
36197
|
import zlib from "zlib";
|
|
35532
36198
|
import stream3 from "stream";
|
|
35533
36199
|
import { EventEmitter } from "events";
|
|
35534
|
-
function
|
|
35535
|
-
|
|
35536
|
-
|
|
35537
|
-
|
|
36200
|
+
function handleSocketError(err) {
|
|
36201
|
+
const current = this[kAxiosCurrentReq];
|
|
36202
|
+
if (current && !current.destroyed) {
|
|
36203
|
+
current.destroy(err);
|
|
35538
36204
|
}
|
|
35539
|
-
|
|
35540
|
-
|
|
35541
|
-
|
|
35542
|
-
|
|
35543
|
-
}
|
|
36205
|
+
}
|
|
36206
|
+
function isNodeNativeEnvProxySupported(nodeVersion = process.versions && process.versions.node) {
|
|
36207
|
+
if (!nodeVersion) {
|
|
36208
|
+
return false;
|
|
36209
|
+
}
|
|
36210
|
+
const [major, minor] = nodeVersion.split(".").map((part) => Number(part));
|
|
36211
|
+
if (!Number.isInteger(major) || !Number.isInteger(minor)) {
|
|
36212
|
+
return false;
|
|
36213
|
+
}
|
|
36214
|
+
if (major > 24) {
|
|
36215
|
+
return true;
|
|
36216
|
+
}
|
|
36217
|
+
return NODE_NATIVE_ENV_PROXY_SUPPORT[major] != null && minor >= NODE_NATIVE_ENV_PROXY_SUPPORT[major];
|
|
36218
|
+
}
|
|
36219
|
+
function isNodeEnvProxyEnabled(agent, nodeVersion = process.versions && process.versions.node) {
|
|
36220
|
+
if (!isNodeNativeEnvProxySupported(nodeVersion)) {
|
|
36221
|
+
return false;
|
|
36222
|
+
}
|
|
36223
|
+
const agentOptions = agent && agent.options;
|
|
36224
|
+
return Boolean(agentOptions && utils_default.hasOwnProp(agentOptions, "proxyEnv") && agentOptions.proxyEnv != null);
|
|
36225
|
+
}
|
|
36226
|
+
function getProxyEnvAgent(options, configHttpAgent, configHttpsAgent) {
|
|
36227
|
+
return isHttps.test(options.protocol) ? configHttpsAgent || https.globalAgent : configHttpAgent || http.globalAgent;
|
|
35544
36228
|
}
|
|
35545
36229
|
function getTunnelingAgent(agentOptions, userHttpsAgent) {
|
|
35546
36230
|
const key = agentOptions.protocol + "//" + agentOptions.hostname + ":" + (agentOptions.port || "") + "#" + (agentOptions.auth || "");
|
|
@@ -35568,13 +36252,37 @@ function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
|
|
|
35568
36252
|
if (options.beforeRedirects.auth) {
|
|
35569
36253
|
options.beforeRedirects.auth(options);
|
|
35570
36254
|
}
|
|
36255
|
+
if (options.beforeRedirects.sensitiveHeaders) {
|
|
36256
|
+
options.beforeRedirects.sensitiveHeaders(options, requestDetails);
|
|
36257
|
+
}
|
|
35571
36258
|
if (options.beforeRedirects.config) {
|
|
35572
36259
|
options.beforeRedirects.config(options, responseDetails, requestDetails);
|
|
35573
36260
|
}
|
|
35574
36261
|
}
|
|
35575
|
-
function
|
|
36262
|
+
function stripMatchingHeaders(headers, sensitiveSet) {
|
|
36263
|
+
if (!headers) {
|
|
36264
|
+
return;
|
|
36265
|
+
}
|
|
36266
|
+
Object.keys(headers).forEach((header) => {
|
|
36267
|
+
if (sensitiveSet.has(header.toLowerCase())) {
|
|
36268
|
+
delete headers[header];
|
|
36269
|
+
}
|
|
36270
|
+
});
|
|
36271
|
+
}
|
|
36272
|
+
function isSameOriginRedirect(redirectOptions, requestDetails) {
|
|
36273
|
+
if (!requestDetails) {
|
|
36274
|
+
return false;
|
|
36275
|
+
}
|
|
36276
|
+
try {
|
|
36277
|
+
return new URL(requestDetails.url).origin === new URL(redirectOptions.href).origin;
|
|
36278
|
+
} catch (e) {
|
|
36279
|
+
return false;
|
|
36280
|
+
}
|
|
36281
|
+
}
|
|
36282
|
+
function setProxy(options, configProxy, location, isRedirect, configHttpsAgent, configHttpAgent, allowEnvProxy = true) {
|
|
35576
36283
|
let proxy = configProxy;
|
|
35577
|
-
|
|
36284
|
+
const proxyEnvAgent = getProxyEnvAgent(options, configHttpAgent, configHttpsAgent);
|
|
36285
|
+
if (!proxy && proxy !== false && allowEnvProxy && !isNodeEnvProxyEnabled(proxyEnvAgent)) {
|
|
35578
36286
|
const proxyUrl = getProxyForUrl(location);
|
|
35579
36287
|
if (proxyUrl) {
|
|
35580
36288
|
if (!shouldBypassProxy(location)) {
|
|
@@ -35663,10 +36371,11 @@ function setProxy(options, configProxy, location, isRedirect, configHttpsAgent)
|
|
|
35663
36371
|
}
|
|
35664
36372
|
}
|
|
35665
36373
|
options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {
|
|
35666
|
-
setProxy(redirectOptions, configProxy, redirectOptions.href, true, configHttpsAgent);
|
|
36374
|
+
setProxy(redirectOptions, configProxy, redirectOptions.href, true, configHttpsAgent, configHttpAgent, allowEnvProxy);
|
|
35667
36375
|
};
|
|
36376
|
+
return Boolean(proxy || configProxy !== false && allowEnvProxy && isNodeEnvProxyEnabled(proxyEnvAgent));
|
|
35668
36377
|
}
|
|
35669
|
-
var import_https_proxy_agent, import_follow_redirects, zlibOptions, brotliOptions, zstdOptions, isBrotliSupported, isZstdSupported, ACCEPT_ENCODING, ACCEPT_ENCODING_WITH_ZSTD, httpFollow, httpsFollow, isHttps,
|
|
36378
|
+
var import_https_proxy_agent, import_follow_redirects, zlibOptions, brotliOptions, zstdOptions, isBrotliSupported, isZstdSupported, ACCEPT_ENCODING, ACCEPT_ENCODING_WITH_ZSTD, scheduleProgress, httpFollow, httpsFollow, isHttps, kAxiosSocketListener, kAxiosCurrentReq, kAxiosInstalledTunnel, tunnelingAgentCache, tunnelingAgentCacheUser, NODE_NATIVE_ENV_PROXY_SUPPORT, supportedProtocols, decodeURIComponentSafe = (value) => {
|
|
35670
36379
|
if (!utils_default.isString(value)) {
|
|
35671
36380
|
return value;
|
|
35672
36381
|
}
|
|
@@ -35700,13 +36409,35 @@ var import_https_proxy_agent, import_follow_redirects, zlibOptions, brotliOption
|
|
|
35700
36409
|
});
|
|
35701
36410
|
}, resolveFamily = ({ address, family }) => {
|
|
35702
36411
|
if (!utils_default.isString(address)) {
|
|
35703
|
-
throw
|
|
36412
|
+
throw new AxiosError_default("address must be a string", AxiosError_default.ERR_BAD_OPTION_VALUE);
|
|
35704
36413
|
}
|
|
35705
36414
|
return {
|
|
35706
36415
|
address,
|
|
35707
36416
|
family: family || (address.indexOf(".") < 0 ? 6 : 4)
|
|
35708
36417
|
};
|
|
35709
|
-
}, buildAddressEntry = (address, family) => resolveFamily(utils_default.isObject(address) ? address : { address, family }),
|
|
36418
|
+
}, buildAddressEntry = (address, family) => resolveFamily(utils_default.isObject(address) ? address : { address, family }), normalizedLookupCache, normalizeLookup = (lookup) => {
|
|
36419
|
+
let normalized = normalizedLookupCache.get(lookup);
|
|
36420
|
+
if (normalized) {
|
|
36421
|
+
return normalized;
|
|
36422
|
+
}
|
|
36423
|
+
const callbackLookup = callbackify_default(lookup, (value) => utils_default.isArray(value) ? value : [value]);
|
|
36424
|
+
normalized = (hostname, opt, cb) => {
|
|
36425
|
+
callbackLookup(hostname, opt, (err, arg0, arg1) => {
|
|
36426
|
+
if (err) {
|
|
36427
|
+
return cb(err);
|
|
36428
|
+
}
|
|
36429
|
+
let addresses;
|
|
36430
|
+
try {
|
|
36431
|
+
addresses = utils_default.isArray(arg0) ? arg0.map((addr) => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];
|
|
36432
|
+
} catch (error2) {
|
|
36433
|
+
return cb(error2);
|
|
36434
|
+
}
|
|
36435
|
+
opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);
|
|
36436
|
+
});
|
|
36437
|
+
};
|
|
36438
|
+
normalizedLookupCache.set(lookup, normalized);
|
|
36439
|
+
return normalized;
|
|
36440
|
+
}, http2Transport, http_default;
|
|
35710
36441
|
var init_http = __esm(() => {
|
|
35711
36442
|
init_utils();
|
|
35712
36443
|
init_settle();
|
|
@@ -35719,6 +36450,7 @@ var init_http = __esm(() => {
|
|
|
35719
36450
|
init_platform();
|
|
35720
36451
|
init_fromDataURI();
|
|
35721
36452
|
init_AxiosHeaders();
|
|
36453
|
+
init_setFormDataHeaders();
|
|
35722
36454
|
init_AxiosTransformStream();
|
|
35723
36455
|
init_formDataToStream();
|
|
35724
36456
|
init_readBlob();
|
|
@@ -35746,19 +36478,24 @@ var init_http = __esm(() => {
|
|
|
35746
36478
|
isZstdSupported = utils_default.isFunction(zlib.createZstdDecompress);
|
|
35747
36479
|
ACCEPT_ENCODING = "gzip, compress, deflate" + (isBrotliSupported ? ", br" : "");
|
|
35748
36480
|
ACCEPT_ENCODING_WITH_ZSTD = ACCEPT_ENCODING + (isZstdSupported ? ", zstd" : "");
|
|
36481
|
+
scheduleProgress = typeof process !== "undefined" && process.nextTick ? process.nextTick.bind(process) : utils_default.asap;
|
|
35749
36482
|
({ http: httpFollow, https: httpsFollow } = import_follow_redirects.default);
|
|
35750
36483
|
isHttps = /https:?/;
|
|
35751
|
-
FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
|
|
35752
36484
|
kAxiosSocketListener = Symbol("axios.http.socketListener");
|
|
35753
36485
|
kAxiosCurrentReq = Symbol("axios.http.currentReq");
|
|
35754
36486
|
kAxiosInstalledTunnel = Symbol("axios.http.installedTunnel");
|
|
35755
36487
|
tunnelingAgentCache = new Map;
|
|
35756
36488
|
tunnelingAgentCacheUser = new WeakMap;
|
|
36489
|
+
NODE_NATIVE_ENV_PROXY_SUPPORT = {
|
|
36490
|
+
22: 21,
|
|
36491
|
+
24: 5
|
|
36492
|
+
};
|
|
35757
36493
|
supportedProtocols = platform_default.protocols.map((protocol) => {
|
|
35758
36494
|
return protocol + ":";
|
|
35759
36495
|
});
|
|
35760
36496
|
http2Sessions = new Http2Sessions_default;
|
|
35761
36497
|
isHttpAdapterSupported = typeof process !== "undefined" && utils_default.kindOf(process) === "process";
|
|
36498
|
+
normalizedLookupCache = new WeakMap;
|
|
35762
36499
|
http2Transport = {
|
|
35763
36500
|
request(options, cb) {
|
|
35764
36501
|
const authority = options.protocol + "//" + options.hostname + ":" + (options.port || (options.protocol === "https:" ? 443 : 80));
|
|
@@ -35788,7 +36525,7 @@ var init_http = __esm(() => {
|
|
|
35788
36525
|
};
|
|
35789
36526
|
http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
35790
36527
|
return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {
|
|
35791
|
-
const own2 = (key) => utils_default.
|
|
36528
|
+
const own2 = (key) => utils_default.getSafeProp(config, key);
|
|
35792
36529
|
const transitional = own2("transitional") || transitional_default;
|
|
35793
36530
|
let data = own2("data");
|
|
35794
36531
|
let lookup = own2("lookup");
|
|
@@ -35796,33 +36533,37 @@ var init_http = __esm(() => {
|
|
|
35796
36533
|
let httpVersion = own2("httpVersion");
|
|
35797
36534
|
if (httpVersion === undefined)
|
|
35798
36535
|
httpVersion = 1;
|
|
36536
|
+
const rawHttpVersion = httpVersion;
|
|
35799
36537
|
let http2Options = own2("http2Options");
|
|
36538
|
+
const httpAgent = own2("httpAgent");
|
|
36539
|
+
const httpsAgent = own2("httpsAgent");
|
|
36540
|
+
const configProxy = own2("proxy");
|
|
35800
36541
|
const responseType = own2("responseType");
|
|
35801
36542
|
const responseEncoding = own2("responseEncoding");
|
|
35802
|
-
const
|
|
36543
|
+
const socketPath = own2("socketPath");
|
|
36544
|
+
const method = own2("method").toUpperCase();
|
|
36545
|
+
const maxRedirects = own2("maxRedirects");
|
|
36546
|
+
const maxBodyLength = own2("maxBodyLength");
|
|
36547
|
+
const maxContentLength = own2("maxContentLength");
|
|
36548
|
+
const decompress = own2("decompress");
|
|
35803
36549
|
let isDone;
|
|
35804
36550
|
let rejected = false;
|
|
35805
36551
|
let req;
|
|
35806
36552
|
let connectPhaseTimer;
|
|
35807
|
-
|
|
36553
|
+
try {
|
|
36554
|
+
httpVersion = +httpVersion;
|
|
36555
|
+
} catch (err) {
|
|
36556
|
+
throw new AxiosError_default("Invalid protocol version: value is not a number", AxiosError_default.ERR_BAD_OPTION_VALUE, config);
|
|
36557
|
+
}
|
|
35808
36558
|
if (Number.isNaN(httpVersion)) {
|
|
35809
|
-
throw
|
|
36559
|
+
throw new AxiosError_default(`Invalid protocol version: '${rawHttpVersion}' is not a number`, AxiosError_default.ERR_BAD_OPTION_VALUE, config);
|
|
35810
36560
|
}
|
|
35811
36561
|
if (httpVersion !== 1 && httpVersion !== 2) {
|
|
35812
|
-
throw
|
|
36562
|
+
throw new AxiosError_default(`Unsupported protocol version '${httpVersion}'`, AxiosError_default.ERR_BAD_OPTION_VALUE, config);
|
|
35813
36563
|
}
|
|
35814
36564
|
const isHttp2 = httpVersion === 2;
|
|
35815
36565
|
if (lookup) {
|
|
35816
|
-
|
|
35817
|
-
lookup = (hostname, opt, cb) => {
|
|
35818
|
-
_lookup(hostname, opt, (err, arg0, arg1) => {
|
|
35819
|
-
if (err) {
|
|
35820
|
-
return cb(err);
|
|
35821
|
-
}
|
|
35822
|
-
const addresses = utils_default.isArray(arg0) ? arg0.map((addr) => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];
|
|
35823
|
-
opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);
|
|
35824
|
-
});
|
|
35825
|
-
};
|
|
36566
|
+
lookup = normalizeLookup(lookup);
|
|
35826
36567
|
}
|
|
35827
36568
|
const abortEmitter = new EventEmitter;
|
|
35828
36569
|
function abort(reason) {
|
|
@@ -35837,9 +36578,11 @@ var init_http = __esm(() => {
|
|
|
35837
36578
|
}
|
|
35838
36579
|
}
|
|
35839
36580
|
function createTimeoutError() {
|
|
35840
|
-
|
|
35841
|
-
|
|
35842
|
-
|
|
36581
|
+
const configTimeout = own2("timeout");
|
|
36582
|
+
let timeoutErrorMessage = configTimeout ? "timeout of " + configTimeout + "ms exceeded" : "timeout exceeded";
|
|
36583
|
+
const configTimeoutErrorMessage = own2("timeoutErrorMessage");
|
|
36584
|
+
if (configTimeoutErrorMessage) {
|
|
36585
|
+
timeoutErrorMessage = configTimeoutErrorMessage;
|
|
35843
36586
|
}
|
|
35844
36587
|
return new AxiosError_default(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED, config, req);
|
|
35845
36588
|
}
|
|
@@ -35878,15 +36621,16 @@ var init_http = __esm(() => {
|
|
|
35878
36621
|
onFinished();
|
|
35879
36622
|
}
|
|
35880
36623
|
});
|
|
35881
|
-
const fullPath = buildFullPath(
|
|
35882
|
-
const
|
|
36624
|
+
const fullPath = buildFullPath(own2("baseURL"), own2("url"), own2("allowAbsoluteUrls"), config);
|
|
36625
|
+
const urlBase = socketPath ? "http://localhost" : platform_default.hasBrowserEnv ? platform_default.origin : undefined;
|
|
36626
|
+
const parsed = new URL(fullPath, urlBase);
|
|
35883
36627
|
const protocol = parsed.protocol || supportedProtocols[0];
|
|
35884
36628
|
if (protocol === "data:") {
|
|
35885
|
-
if (
|
|
35886
|
-
const dataUrl = String(
|
|
35887
|
-
const estimated =
|
|
35888
|
-
if (estimated >
|
|
35889
|
-
return reject(new AxiosError_default("maxContentLength size of " +
|
|
36629
|
+
if (maxContentLength > -1) {
|
|
36630
|
+
const dataUrl = String(own2("url") || fullPath || "");
|
|
36631
|
+
const estimated = estimateDataURLBufferAllocation(dataUrl);
|
|
36632
|
+
if (estimated > maxContentLength) {
|
|
36633
|
+
return reject(new AxiosError_default("maxContentLength size of " + maxContentLength + " exceeded", AxiosError_default.ERR_BAD_RESPONSE, config));
|
|
35890
36634
|
}
|
|
35891
36635
|
}
|
|
35892
36636
|
let convertedData;
|
|
@@ -35899,7 +36643,7 @@ var init_http = __esm(() => {
|
|
|
35899
36643
|
});
|
|
35900
36644
|
}
|
|
35901
36645
|
try {
|
|
35902
|
-
convertedData = fromDataURI(
|
|
36646
|
+
convertedData = fromDataURI(own2("url"), responseType === "blob", {
|
|
35903
36647
|
Blob: config.env && config.env.Blob
|
|
35904
36648
|
});
|
|
35905
36649
|
} catch (err) {
|
|
@@ -35959,7 +36703,7 @@ var init_http = __esm(() => {
|
|
|
35959
36703
|
return reject(new AxiosError_default("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream", AxiosError_default.ERR_BAD_REQUEST, config));
|
|
35960
36704
|
}
|
|
35961
36705
|
headers.setContentLength(data.length, false);
|
|
35962
|
-
if (
|
|
36706
|
+
if (maxBodyLength > -1 && data.length > maxBodyLength) {
|
|
35963
36707
|
return reject(new AxiosError_default("Request body larger than maxBodyLength limit", AxiosError_default.ERR_BAD_REQUEST, config));
|
|
35964
36708
|
}
|
|
35965
36709
|
}
|
|
@@ -35980,13 +36724,13 @@ var init_http = __esm(() => {
|
|
|
35980
36724
|
maxRate: utils_default.toFiniteNumber(maxUploadRate)
|
|
35981
36725
|
})
|
|
35982
36726
|
], utils_default.noop);
|
|
35983
|
-
onUploadProgress && data.on("progress", flushOnFinish(data, progressEventDecorator(contentLength, progressEventReducer(asyncDecorator(onUploadProgress), false, 3))));
|
|
36727
|
+
onUploadProgress && data.on("progress", flushOnFinish(data, progressEventDecorator(contentLength, progressEventReducer(asyncDecorator(onUploadProgress, scheduleProgress), false, 3))));
|
|
35984
36728
|
}
|
|
35985
36729
|
let auth = undefined;
|
|
35986
36730
|
const configAuth = own2("auth");
|
|
35987
36731
|
if (configAuth) {
|
|
35988
|
-
const username = configAuth
|
|
35989
|
-
const password = configAuth
|
|
36732
|
+
const username = utils_default.getSafeProp(configAuth, "username") || "";
|
|
36733
|
+
const password = utils_default.getSafeProp(configAuth, "password") || "";
|
|
35990
36734
|
auth = username + ":" + password;
|
|
35991
36735
|
}
|
|
35992
36736
|
if (!auth && (parsed.username || parsed.password)) {
|
|
@@ -35997,29 +36741,32 @@ var init_http = __esm(() => {
|
|
|
35997
36741
|
auth && headers.delete("authorization");
|
|
35998
36742
|
let path6;
|
|
35999
36743
|
try {
|
|
36000
|
-
path6 = buildURL(parsed.pathname + parsed.search,
|
|
36744
|
+
path6 = buildURL(parsed.pathname + parsed.search, own2("params"), own2("paramsSerializer")).replace(/^\?/, "");
|
|
36001
36745
|
} catch (err) {
|
|
36002
|
-
|
|
36003
|
-
|
|
36004
|
-
|
|
36005
|
-
|
|
36006
|
-
return reject(customErr);
|
|
36746
|
+
return reject(AxiosError_default.from(err, AxiosError_default.ERR_BAD_REQUEST, config, null, null, {
|
|
36747
|
+
url: own2("url"),
|
|
36748
|
+
exists: true
|
|
36749
|
+
}));
|
|
36007
36750
|
}
|
|
36008
36751
|
headers.set("Accept-Encoding", utils_default.hasOwnProp(transitional, "advertiseZstdAcceptEncoding") && transitional.advertiseZstdAcceptEncoding === true ? ACCEPT_ENCODING_WITH_ZSTD : ACCEPT_ENCODING, false);
|
|
36752
|
+
if (isHttp2 && lookup) {
|
|
36753
|
+
http2Options = Object.assign(Object.create(null), http2Options, { lookup });
|
|
36754
|
+
}
|
|
36009
36755
|
const options = Object.assign(Object.create(null), {
|
|
36010
36756
|
path: path6,
|
|
36011
36757
|
method,
|
|
36012
36758
|
headers: toByteStringHeaderObject(headers),
|
|
36013
|
-
agents: { http:
|
|
36759
|
+
agents: { http: httpAgent, https: httpsAgent },
|
|
36014
36760
|
auth,
|
|
36015
36761
|
protocol,
|
|
36016
36762
|
family,
|
|
36017
36763
|
beforeRedirect: dispatchBeforeRedirect,
|
|
36018
36764
|
beforeRedirects: Object.create(null),
|
|
36019
|
-
http2Options
|
|
36765
|
+
http2Options,
|
|
36766
|
+
createConnection: undefined
|
|
36020
36767
|
});
|
|
36021
36768
|
!utils_default.isUndefined(lookup) && (options.lookup = lookup);
|
|
36022
|
-
|
|
36769
|
+
let proxyApplied = false;
|
|
36023
36770
|
if (socketPath) {
|
|
36024
36771
|
if (typeof socketPath !== "string") {
|
|
36025
36772
|
return reject(new AxiosError_default("socketPath must be a string", AxiosError_default.ERR_BAD_OPTION_VALUE, config));
|
|
@@ -36037,26 +36784,32 @@ var init_http = __esm(() => {
|
|
|
36037
36784
|
} else {
|
|
36038
36785
|
options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
|
|
36039
36786
|
options.port = parsed.port;
|
|
36040
|
-
setProxy(options,
|
|
36787
|
+
proxyApplied = setProxy(options, configProxy, protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path, false, httpsAgent, httpAgent, !isHttp2);
|
|
36041
36788
|
}
|
|
36042
36789
|
let transport;
|
|
36043
36790
|
let isNativeTransport = false;
|
|
36791
|
+
let transportEnforcesMaxBodyLength = false;
|
|
36044
36792
|
const isHttpsRequest = isHttps.test(options.protocol);
|
|
36045
36793
|
if (options.agent == null) {
|
|
36046
|
-
options.agent = isHttpsRequest ?
|
|
36794
|
+
options.agent = isHttpsRequest ? httpsAgent : httpAgent;
|
|
36047
36795
|
}
|
|
36048
36796
|
if (isHttp2) {
|
|
36797
|
+
if (proxyApplied) {
|
|
36798
|
+
return reject(new AxiosError_default("HTTP/2 requests with a proxy are not supported", AxiosError_default.ERR_NOT_SUPPORT, config));
|
|
36799
|
+
}
|
|
36049
36800
|
transport = http2Transport;
|
|
36050
36801
|
} else {
|
|
36051
36802
|
const configTransport = own2("transport");
|
|
36052
36803
|
if (configTransport) {
|
|
36053
36804
|
transport = configTransport;
|
|
36054
|
-
} else if (
|
|
36805
|
+
} else if (maxRedirects === 0) {
|
|
36055
36806
|
transport = isHttpsRequest ? https : http;
|
|
36056
36807
|
isNativeTransport = true;
|
|
36057
36808
|
} else {
|
|
36058
|
-
|
|
36059
|
-
|
|
36809
|
+
transportEnforcesMaxBodyLength = true;
|
|
36810
|
+
options.sensitiveHeaders = [];
|
|
36811
|
+
if (maxRedirects) {
|
|
36812
|
+
options.maxRedirects = maxRedirects;
|
|
36060
36813
|
}
|
|
36061
36814
|
const configBeforeRedirect = own2("beforeRedirect");
|
|
36062
36815
|
if (configBeforeRedirect) {
|
|
@@ -36073,11 +36826,32 @@ var init_http = __esm(() => {
|
|
|
36073
36826
|
} catch (e) {}
|
|
36074
36827
|
};
|
|
36075
36828
|
}
|
|
36829
|
+
const sensitiveHeaders = own2("sensitiveHeaders");
|
|
36830
|
+
if (sensitiveHeaders != null) {
|
|
36831
|
+
if (!utils_default.isArray(sensitiveHeaders)) {
|
|
36832
|
+
return reject(new AxiosError_default("sensitiveHeaders must be an array of strings", AxiosError_default.ERR_BAD_OPTION_VALUE, config));
|
|
36833
|
+
}
|
|
36834
|
+
const sensitiveSet = new Set;
|
|
36835
|
+
for (const header of sensitiveHeaders) {
|
|
36836
|
+
if (!utils_default.isString(header)) {
|
|
36837
|
+
return reject(new AxiosError_default("sensitiveHeaders must be an array of strings", AxiosError_default.ERR_BAD_OPTION_VALUE, config));
|
|
36838
|
+
}
|
|
36839
|
+
sensitiveSet.add(header.toLowerCase());
|
|
36840
|
+
}
|
|
36841
|
+
if (sensitiveSet.size) {
|
|
36842
|
+
options.sensitiveHeaders = Array.from(sensitiveSet);
|
|
36843
|
+
options.beforeRedirects.sensitiveHeaders = function beforeRedirectSensitiveHeaders(redirectOptions, requestDetails) {
|
|
36844
|
+
if (!isSameOriginRedirect(redirectOptions, requestDetails)) {
|
|
36845
|
+
stripMatchingHeaders(redirectOptions.headers, sensitiveSet);
|
|
36846
|
+
}
|
|
36847
|
+
};
|
|
36848
|
+
}
|
|
36849
|
+
}
|
|
36076
36850
|
transport = isHttpsRequest ? httpsFollow : httpFollow;
|
|
36077
36851
|
}
|
|
36078
36852
|
}
|
|
36079
|
-
if (
|
|
36080
|
-
options.maxBodyLength =
|
|
36853
|
+
if (maxBodyLength > -1) {
|
|
36854
|
+
options.maxBodyLength = maxBodyLength;
|
|
36081
36855
|
} else {
|
|
36082
36856
|
options.maxBodyLength = Infinity;
|
|
36083
36857
|
}
|
|
@@ -36092,12 +36866,12 @@ var init_http = __esm(() => {
|
|
|
36092
36866
|
const transformStream = new AxiosTransformStream_default({
|
|
36093
36867
|
maxRate: utils_default.toFiniteNumber(maxDownloadRate)
|
|
36094
36868
|
});
|
|
36095
|
-
onDownloadProgress && transformStream.on("progress", flushOnFinish(transformStream, progressEventDecorator(responseLength, progressEventReducer(asyncDecorator(onDownloadProgress), true, 3))));
|
|
36869
|
+
onDownloadProgress && transformStream.on("progress", flushOnFinish(transformStream, progressEventDecorator(responseLength, progressEventReducer(asyncDecorator(onDownloadProgress, scheduleProgress), true, 3))));
|
|
36096
36870
|
streams2.push(transformStream);
|
|
36097
36871
|
}
|
|
36098
36872
|
let responseStream = res;
|
|
36099
36873
|
const lastRequest = res.req || req;
|
|
36100
|
-
if (
|
|
36874
|
+
if (decompress !== false && res.headers["content-encoding"]) {
|
|
36101
36875
|
if (method === "HEAD" || res.statusCode === 204) {
|
|
36102
36876
|
delete res.headers["content-encoding"];
|
|
36103
36877
|
}
|
|
@@ -36137,8 +36911,8 @@ var init_http = __esm(() => {
|
|
|
36137
36911
|
request: lastRequest
|
|
36138
36912
|
};
|
|
36139
36913
|
if (responseType === "stream") {
|
|
36140
|
-
if (
|
|
36141
|
-
const limit =
|
|
36914
|
+
if (maxContentLength > -1) {
|
|
36915
|
+
const limit = maxContentLength;
|
|
36142
36916
|
const source = responseStream;
|
|
36143
36917
|
async function* enforceMaxContentLength() {
|
|
36144
36918
|
let totalResponseBytes = 0;
|
|
@@ -36162,10 +36936,10 @@ var init_http = __esm(() => {
|
|
|
36162
36936
|
responseStream.on("data", function handleStreamData(chunk) {
|
|
36163
36937
|
responseBuffer.push(chunk);
|
|
36164
36938
|
totalResponseBytes += chunk.length;
|
|
36165
|
-
if (
|
|
36939
|
+
if (maxContentLength > -1 && totalResponseBytes > maxContentLength) {
|
|
36166
36940
|
rejected = true;
|
|
36167
36941
|
responseStream.destroy();
|
|
36168
|
-
abort(new AxiosError_default("maxContentLength size of " +
|
|
36942
|
+
abort(new AxiosError_default("maxContentLength size of " + maxContentLength + " exceeded", AxiosError_default.ERR_BAD_RESPONSE, config, lastRequest));
|
|
36169
36943
|
}
|
|
36170
36944
|
});
|
|
36171
36945
|
responseStream.on("aborted", function handlerStreamAborted() {
|
|
@@ -36216,14 +36990,11 @@ var init_http = __esm(() => {
|
|
|
36216
36990
|
});
|
|
36217
36991
|
const boundSockets = new Set;
|
|
36218
36992
|
req.on("socket", function handleRequestSocket(socket) {
|
|
36219
|
-
socket.setKeepAlive
|
|
36993
|
+
if (typeof socket.setKeepAlive === "function") {
|
|
36994
|
+
socket.setKeepAlive(true, 1000 * 60);
|
|
36995
|
+
}
|
|
36220
36996
|
if (!socket[kAxiosSocketListener]) {
|
|
36221
|
-
socket.on("error",
|
|
36222
|
-
const current = socket[kAxiosCurrentReq];
|
|
36223
|
-
if (current && !current.destroyed) {
|
|
36224
|
-
current.destroy(err);
|
|
36225
|
-
}
|
|
36226
|
-
});
|
|
36997
|
+
socket.on("error", handleSocketError);
|
|
36227
36998
|
socket[kAxiosSocketListener] = true;
|
|
36228
36999
|
}
|
|
36229
37000
|
socket[kAxiosCurrentReq] = req;
|
|
@@ -36238,8 +37009,8 @@ var init_http = __esm(() => {
|
|
|
36238
37009
|
}
|
|
36239
37010
|
boundSockets.clear();
|
|
36240
37011
|
});
|
|
36241
|
-
if (
|
|
36242
|
-
const timeout = parseInt(
|
|
37012
|
+
if (own2("timeout")) {
|
|
37013
|
+
const timeout = parseInt(own2("timeout"), 10);
|
|
36243
37014
|
if (Number.isNaN(timeout)) {
|
|
36244
37015
|
abort(new AxiosError_default("error trying to parse `config.timeout` to int", AxiosError_default.ERR_BAD_OPTION_VALUE, config, req));
|
|
36245
37016
|
return;
|
|
@@ -36272,8 +37043,8 @@ var init_http = __esm(() => {
|
|
|
36272
37043
|
}
|
|
36273
37044
|
});
|
|
36274
37045
|
let uploadStream = data;
|
|
36275
|
-
if (
|
|
36276
|
-
const limit =
|
|
37046
|
+
if (maxBodyLength > -1 && !transportEnforcesMaxBodyLength) {
|
|
37047
|
+
const limit = maxBodyLength;
|
|
36277
37048
|
let bytesSent = 0;
|
|
36278
37049
|
uploadStream = stream3.pipeline([
|
|
36279
37050
|
data,
|
|
@@ -36301,7 +37072,7 @@ var init_http = __esm(() => {
|
|
|
36301
37072
|
};
|
|
36302
37073
|
});
|
|
36303
37074
|
|
|
36304
|
-
// node_modules/.bun/axios@1.
|
|
37075
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/helpers/isURLSameOrigin.js
|
|
36305
37076
|
var isURLSameOrigin_default;
|
|
36306
37077
|
var init_isURLSameOrigin = __esm(() => {
|
|
36307
37078
|
init_platform();
|
|
@@ -36311,7 +37082,7 @@ var init_isURLSameOrigin = __esm(() => {
|
|
|
36311
37082
|
})(new URL(platform_default.origin), platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)) : () => true;
|
|
36312
37083
|
});
|
|
36313
37084
|
|
|
36314
|
-
// node_modules/.bun/axios@1.
|
|
37085
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/helpers/cookies.js
|
|
36315
37086
|
var cookies_default;
|
|
36316
37087
|
var init_cookies = __esm(() => {
|
|
36317
37088
|
init_utils();
|
|
@@ -36346,7 +37117,11 @@ var init_cookies = __esm(() => {
|
|
|
36346
37117
|
const cookie = cookies[i].replace(/^\s+/, "");
|
|
36347
37118
|
const eq2 = cookie.indexOf("=");
|
|
36348
37119
|
if (eq2 !== -1 && cookie.slice(0, eq2) === name) {
|
|
36349
|
-
|
|
37120
|
+
try {
|
|
37121
|
+
return decodeURIComponent(cookie.slice(eq2 + 1));
|
|
37122
|
+
} catch (e) {
|
|
37123
|
+
return cookie.slice(eq2 + 1);
|
|
37124
|
+
}
|
|
36350
37125
|
}
|
|
36351
37126
|
}
|
|
36352
37127
|
return null;
|
|
@@ -36363,8 +37138,9 @@ var init_cookies = __esm(() => {
|
|
|
36363
37138
|
};
|
|
36364
37139
|
});
|
|
36365
37140
|
|
|
36366
|
-
// node_modules/.bun/axios@1.
|
|
37141
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/core/mergeConfig.js
|
|
36367
37142
|
function mergeConfig(config1, config2) {
|
|
37143
|
+
config1 = config1 || {};
|
|
36368
37144
|
config2 = config2 || {};
|
|
36369
37145
|
const config = Object.create(null);
|
|
36370
37146
|
Object.defineProperty(config, "hasOwnProperty", {
|
|
@@ -36403,6 +37179,23 @@ function mergeConfig(config1, config2) {
|
|
|
36403
37179
|
return getMergedValue(undefined, a);
|
|
36404
37180
|
}
|
|
36405
37181
|
}
|
|
37182
|
+
function getMergedTransitionalOption(prop) {
|
|
37183
|
+
const transitional2 = utils_default.hasOwnProp(config2, "transitional") ? config2.transitional : undefined;
|
|
37184
|
+
if (!utils_default.isUndefined(transitional2)) {
|
|
37185
|
+
if (utils_default.isPlainObject(transitional2)) {
|
|
37186
|
+
if (utils_default.hasOwnProp(transitional2, prop)) {
|
|
37187
|
+
return transitional2[prop];
|
|
37188
|
+
}
|
|
37189
|
+
} else {
|
|
37190
|
+
return;
|
|
37191
|
+
}
|
|
37192
|
+
}
|
|
37193
|
+
const transitional1 = utils_default.hasOwnProp(config1, "transitional") ? config1.transitional : undefined;
|
|
37194
|
+
if (utils_default.isPlainObject(transitional1) && utils_default.hasOwnProp(transitional1, prop)) {
|
|
37195
|
+
return transitional1[prop];
|
|
37196
|
+
}
|
|
37197
|
+
return;
|
|
37198
|
+
}
|
|
36406
37199
|
function mergeDirectKeys(a, b, prop) {
|
|
36407
37200
|
if (utils_default.hasOwnProp(config2, prop)) {
|
|
36408
37201
|
return getMergedValue(a, b);
|
|
@@ -36419,7 +37212,7 @@ function mergeConfig(config1, config2) {
|
|
|
36419
37212
|
transformResponse: defaultToConfig2,
|
|
36420
37213
|
paramsSerializer: defaultToConfig2,
|
|
36421
37214
|
timeout: defaultToConfig2,
|
|
36422
|
-
|
|
37215
|
+
timeoutErrorMessage: defaultToConfig2,
|
|
36423
37216
|
withCredentials: defaultToConfig2,
|
|
36424
37217
|
withXSRFToken: defaultToConfig2,
|
|
36425
37218
|
adapter: defaultToConfig2,
|
|
@@ -36442,7 +37235,7 @@ function mergeConfig(config1, config2) {
|
|
|
36442
37235
|
validateStatus: mergeDirectKeys,
|
|
36443
37236
|
headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
|
|
36444
37237
|
};
|
|
36445
|
-
utils_default.forEach(
|
|
37238
|
+
utils_default.forEach(ownEnumerableKeys({ ...config1, ...config2 }), function computeConfigValue(prop) {
|
|
36446
37239
|
if (prop === "__proto__" || prop === "constructor" || prop === "prototype")
|
|
36447
37240
|
return;
|
|
36448
37241
|
const merge2 = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
|
|
@@ -36451,26 +37244,27 @@ function mergeConfig(config1, config2) {
|
|
|
36451
37244
|
const configValue = merge2(a, b, prop);
|
|
36452
37245
|
utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
|
|
36453
37246
|
});
|
|
37247
|
+
if (utils_default.hasOwnProp(config2, "validateStatus") && utils_default.isUndefined(config2.validateStatus) && getMergedTransitionalOption("validateStatusUndefinedResolves") === false) {
|
|
37248
|
+
if (utils_default.hasOwnProp(config1, "validateStatus")) {
|
|
37249
|
+
config.validateStatus = getMergedValue(undefined, config1.validateStatus);
|
|
37250
|
+
} else {
|
|
37251
|
+
delete config.validateStatus;
|
|
37252
|
+
}
|
|
37253
|
+
}
|
|
36454
37254
|
return config;
|
|
36455
37255
|
}
|
|
36456
|
-
var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing
|
|
37256
|
+
var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing, ownEnumerableKeys = (thing) => {
|
|
37257
|
+
if (Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor) {
|
|
37258
|
+
return Object.keys(thing).concat(Object.getOwnPropertySymbols(thing).filter((symbol) => Object.getOwnPropertyDescriptor(thing, symbol).enumerable));
|
|
37259
|
+
}
|
|
37260
|
+
return Object.keys(thing);
|
|
37261
|
+
};
|
|
36457
37262
|
var init_mergeConfig = __esm(() => {
|
|
36458
37263
|
init_utils();
|
|
36459
37264
|
init_AxiosHeaders();
|
|
36460
37265
|
});
|
|
36461
37266
|
|
|
36462
|
-
// node_modules/.bun/axios@1.
|
|
36463
|
-
function setFormDataHeaders2(headers, formHeaders, policy) {
|
|
36464
|
-
if (policy !== "content-only") {
|
|
36465
|
-
headers.set(formHeaders);
|
|
36466
|
-
return;
|
|
36467
|
-
}
|
|
36468
|
-
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
36469
|
-
if (FORM_DATA_CONTENT_HEADERS2.includes(key.toLowerCase())) {
|
|
36470
|
-
headers.set(key, val);
|
|
36471
|
-
}
|
|
36472
|
-
});
|
|
36473
|
-
}
|
|
37267
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/helpers/resolveConfig.js
|
|
36474
37268
|
function resolveConfig(config) {
|
|
36475
37269
|
const newConfig = mergeConfig({}, config);
|
|
36476
37270
|
const own2 = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : undefined;
|
|
@@ -36484,15 +37278,22 @@ function resolveConfig(config) {
|
|
|
36484
37278
|
const allowAbsoluteUrls = own2("allowAbsoluteUrls");
|
|
36485
37279
|
const url2 = own2("url");
|
|
36486
37280
|
newConfig.headers = headers = AxiosHeaders_default.from(headers);
|
|
36487
|
-
newConfig.url = buildURL(buildFullPath(baseURL, url2, allowAbsoluteUrls), own2("params"), own2("paramsSerializer"));
|
|
37281
|
+
newConfig.url = buildURL(buildFullPath(baseURL, url2, allowAbsoluteUrls, newConfig), own2("params"), own2("paramsSerializer"));
|
|
36488
37282
|
if (auth) {
|
|
36489
|
-
|
|
37283
|
+
const username = utils_default.getSafeProp(auth, "username") || "";
|
|
37284
|
+
const password = utils_default.getSafeProp(auth, "password") || "";
|
|
37285
|
+
try {
|
|
37286
|
+
headers.set("Authorization", "Basic " + btoa(username + ":" + (password ? encodeUTF82(password) : "")));
|
|
37287
|
+
} catch (e) {
|
|
37288
|
+
throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_OPTION_VALUE, config);
|
|
37289
|
+
}
|
|
36490
37290
|
}
|
|
36491
37291
|
if (utils_default.isFormData(data)) {
|
|
37292
|
+
const getHeaders = utils_default.getSafeProp(data, "getHeaders");
|
|
36492
37293
|
if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv || utils_default.isReactNative(data)) {
|
|
36493
37294
|
headers.setContentType(undefined);
|
|
36494
|
-
} else if (utils_default.isFunction(
|
|
36495
|
-
|
|
37295
|
+
} else if (utils_default.isFunction(getHeaders)) {
|
|
37296
|
+
setFormDataHeaders(headers, getHeaders.call(data), own2("formDataHeaderPolicy"));
|
|
36496
37297
|
}
|
|
36497
37298
|
}
|
|
36498
37299
|
if (platform_default.hasStandardBrowserEnv) {
|
|
@@ -36509,21 +37310,22 @@ function resolveConfig(config) {
|
|
|
36509
37310
|
}
|
|
36510
37311
|
return newConfig;
|
|
36511
37312
|
}
|
|
36512
|
-
var
|
|
37313
|
+
var encodeUTF82 = (str) => encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16))), resolveConfig_default;
|
|
36513
37314
|
var init_resolveConfig = __esm(() => {
|
|
36514
37315
|
init_platform();
|
|
36515
37316
|
init_utils();
|
|
37317
|
+
init_AxiosError();
|
|
36516
37318
|
init_isURLSameOrigin();
|
|
36517
37319
|
init_cookies();
|
|
36518
37320
|
init_buildFullPath();
|
|
36519
37321
|
init_mergeConfig();
|
|
36520
37322
|
init_AxiosHeaders();
|
|
37323
|
+
init_setFormDataHeaders();
|
|
36521
37324
|
init_buildURL();
|
|
36522
|
-
FORM_DATA_CONTENT_HEADERS2 = ["content-type", "content-length"];
|
|
36523
37325
|
resolveConfig_default = resolveConfig;
|
|
36524
37326
|
});
|
|
36525
37327
|
|
|
36526
|
-
// node_modules/.bun/axios@1.
|
|
37328
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/adapters/xhr.js
|
|
36527
37329
|
var isXHRAdapterSupported, xhr_default;
|
|
36528
37330
|
var init_xhr = __esm(() => {
|
|
36529
37331
|
init_utils();
|
|
@@ -36531,6 +37333,7 @@ var init_xhr = __esm(() => {
|
|
|
36531
37333
|
init_transitional();
|
|
36532
37334
|
init_AxiosError();
|
|
36533
37335
|
init_CanceledError();
|
|
37336
|
+
init_normalizeURLForProtocolCheck();
|
|
36534
37337
|
init_platform();
|
|
36535
37338
|
init_AxiosHeaders();
|
|
36536
37339
|
init_progressEventReducer();
|
|
@@ -36545,7 +37348,7 @@ var init_xhr = __esm(() => {
|
|
|
36545
37348
|
let { responseType, onUploadProgress, onDownloadProgress } = _config;
|
|
36546
37349
|
let onCanceled;
|
|
36547
37350
|
let uploadThrottled, downloadThrottled;
|
|
36548
|
-
let flushUpload, flushDownload;
|
|
37351
|
+
let flushUpload, flushDownload, flushDownloadWithEvent;
|
|
36549
37352
|
function done() {
|
|
36550
37353
|
flushUpload && flushUpload();
|
|
36551
37354
|
flushDownload && flushDownload();
|
|
@@ -36555,7 +37358,27 @@ var init_xhr = __esm(() => {
|
|
|
36555
37358
|
let request = new XMLHttpRequest;
|
|
36556
37359
|
request.open(_config.method.toUpperCase(), _config.url, true);
|
|
36557
37360
|
request.timeout = _config.timeout;
|
|
36558
|
-
function onloadend() {
|
|
37361
|
+
function onloadend(event) {
|
|
37362
|
+
if (!request) {
|
|
37363
|
+
return;
|
|
37364
|
+
}
|
|
37365
|
+
if (request.status === 0 && (parseProtocol(normalizeURLForProtocolCheck(_config.url)) || parseProtocol(platform_default.origin)) !== "file" && !(request.responseURL && request.responseURL.startsWith("file:"))) {
|
|
37366
|
+
reject(new AxiosError_default("Request aborted", AxiosError_default.ECONNABORTED, config, request));
|
|
37367
|
+
done();
|
|
37368
|
+
request = null;
|
|
37369
|
+
return;
|
|
37370
|
+
}
|
|
37371
|
+
try {
|
|
37372
|
+
if (event) {
|
|
37373
|
+
flushDownloadWithEvent && flushDownloadWithEvent(event);
|
|
37374
|
+
} else {
|
|
37375
|
+
flushDownload && flushDownload();
|
|
37376
|
+
}
|
|
37377
|
+
} catch (err) {
|
|
37378
|
+
setTimeout(() => {
|
|
37379
|
+
throw err;
|
|
37380
|
+
});
|
|
37381
|
+
}
|
|
36559
37382
|
if (!request) {
|
|
36560
37383
|
return;
|
|
36561
37384
|
}
|
|
@@ -36630,7 +37453,7 @@ var init_xhr = __esm(() => {
|
|
|
36630
37453
|
request.responseType = _config.responseType;
|
|
36631
37454
|
}
|
|
36632
37455
|
if (onDownloadProgress) {
|
|
36633
|
-
[downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true);
|
|
37456
|
+
[downloadThrottled, flushDownload, flushDownloadWithEvent] = progressEventReducer(onDownloadProgress, true);
|
|
36634
37457
|
request.addEventListener("progress", downloadThrottled);
|
|
36635
37458
|
}
|
|
36636
37459
|
if (onUploadProgress && request.upload) {
|
|
@@ -36656,6 +37479,7 @@ var init_xhr = __esm(() => {
|
|
|
36656
37479
|
const protocol = parseProtocol(_config.url);
|
|
36657
37480
|
if (protocol && !platform_default.protocols.includes(protocol)) {
|
|
36658
37481
|
reject(new AxiosError_default("Unsupported protocol " + protocol + ":", AxiosError_default.ERR_BAD_REQUEST, config));
|
|
37482
|
+
done();
|
|
36659
37483
|
return;
|
|
36660
37484
|
}
|
|
36661
37485
|
request.send(requestData || null);
|
|
@@ -36663,7 +37487,7 @@ var init_xhr = __esm(() => {
|
|
|
36663
37487
|
};
|
|
36664
37488
|
});
|
|
36665
37489
|
|
|
36666
|
-
// node_modules/.bun/axios@1.
|
|
37490
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/helpers/composeSignals.js
|
|
36667
37491
|
var composeSignals = (signals, timeout) => {
|
|
36668
37492
|
signals = signals ? signals.filter(Boolean) : [];
|
|
36669
37493
|
if (!timeout && !signals.length) {
|
|
@@ -36694,7 +37518,16 @@ var composeSignals = (signals, timeout) => {
|
|
|
36694
37518
|
});
|
|
36695
37519
|
signals = null;
|
|
36696
37520
|
};
|
|
36697
|
-
signals.forEach((signal2) =>
|
|
37521
|
+
signals.forEach((signal2) => {
|
|
37522
|
+
if (aborted) {
|
|
37523
|
+
return;
|
|
37524
|
+
}
|
|
37525
|
+
if (signal2.aborted) {
|
|
37526
|
+
onabort.call(signal2);
|
|
37527
|
+
return;
|
|
37528
|
+
}
|
|
37529
|
+
signal2.addEventListener("abort", onabort, { once: true });
|
|
37530
|
+
});
|
|
36698
37531
|
const { signal } = controller;
|
|
36699
37532
|
signal.unsubscribe = () => utils_default.asap(unsubscribe2);
|
|
36700
37533
|
return signal;
|
|
@@ -36706,7 +37539,7 @@ var init_composeSignals = __esm(() => {
|
|
|
36706
37539
|
composeSignals_default = composeSignals;
|
|
36707
37540
|
});
|
|
36708
37541
|
|
|
36709
|
-
// node_modules/.bun/axios@1.
|
|
37542
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/helpers/trackStream.js
|
|
36710
37543
|
var streamChunk = function* (chunk, chunkSize) {
|
|
36711
37544
|
let len = chunk.byteLength;
|
|
36712
37545
|
if (!chunkSize || len < chunkSize) {
|
|
@@ -36780,8 +37613,8 @@ var streamChunk = function* (chunk, chunkSize) {
|
|
|
36780
37613
|
});
|
|
36781
37614
|
};
|
|
36782
37615
|
|
|
36783
|
-
// node_modules/.bun/axios@1.
|
|
36784
|
-
var DEFAULT_CHUNK_SIZE, isFunction3, encodeUTF83 = (str) => encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16))), decodeURIComponentSafe2 = (value) => {
|
|
37616
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/adapters/fetch.js
|
|
37617
|
+
var DEFAULT_CHUNK_SIZE, DEFAULT_REQUEST_OPTIONS, isFunction3, encodeUTF83 = (str) => encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16))), decodeURIComponentSafe2 = (value) => {
|
|
36785
37618
|
if (!utils_default.isString(value)) {
|
|
36786
37619
|
return value;
|
|
36787
37620
|
}
|
|
@@ -36895,7 +37728,8 @@ var DEFAULT_CHUNK_SIZE, isFunction3, encodeUTF83 = (str) => encodeURIComponent(s
|
|
|
36895
37728
|
withCredentials = "same-origin",
|
|
36896
37729
|
fetchOptions,
|
|
36897
37730
|
maxContentLength,
|
|
36898
|
-
maxBodyLength
|
|
37731
|
+
maxBodyLength,
|
|
37732
|
+
maxRedirects
|
|
36899
37733
|
} = resolveConfig_default(config);
|
|
36900
37734
|
const hasMaxContentLength = utils_default.isNumber(maxContentLength) && maxContentLength > -1;
|
|
36901
37735
|
const hasMaxBodyLength = utils_default.isNumber(maxBodyLength) && maxBodyLength > -1;
|
|
@@ -36908,12 +37742,14 @@ var DEFAULT_CHUNK_SIZE, isFunction3, encodeUTF83 = (str) => encodeURIComponent(s
|
|
|
36908
37742
|
composedSignal.unsubscribe();
|
|
36909
37743
|
});
|
|
36910
37744
|
let requestContentLength;
|
|
37745
|
+
let pendingBodyError = null;
|
|
37746
|
+
const maxBodyLengthError = () => new AxiosError_default("Request body larger than maxBodyLength limit", AxiosError_default.ERR_BAD_REQUEST, config, request);
|
|
36911
37747
|
try {
|
|
36912
37748
|
let auth = undefined;
|
|
36913
37749
|
const configAuth = own2("auth");
|
|
36914
37750
|
if (configAuth) {
|
|
36915
|
-
const username = configAuth
|
|
36916
|
-
const password = configAuth
|
|
37751
|
+
const username = utils_default.getSafeProp(configAuth, "username") || "";
|
|
37752
|
+
const password = utils_default.getSafeProp(configAuth, "password") || "";
|
|
36917
37753
|
auth = {
|
|
36918
37754
|
username,
|
|
36919
37755
|
password
|
|
@@ -36946,25 +37782,42 @@ var DEFAULT_CHUNK_SIZE, isFunction3, encodeUTF83 = (str) => encodeURIComponent(s
|
|
|
36946
37782
|
}
|
|
36947
37783
|
}
|
|
36948
37784
|
if (hasMaxBodyLength && method !== "get" && method !== "head") {
|
|
36949
|
-
const outboundLength = await
|
|
36950
|
-
if (typeof outboundLength === "number" && isFinite(outboundLength)
|
|
36951
|
-
|
|
36952
|
-
|
|
36953
|
-
|
|
36954
|
-
|
|
36955
|
-
|
|
36956
|
-
|
|
36957
|
-
|
|
36958
|
-
|
|
36959
|
-
|
|
36960
|
-
|
|
36961
|
-
|
|
36962
|
-
|
|
36963
|
-
|
|
36964
|
-
|
|
36965
|
-
|
|
36966
|
-
|
|
37785
|
+
const outboundLength = await getBodyLength(data);
|
|
37786
|
+
if (typeof outboundLength === "number" && isFinite(outboundLength)) {
|
|
37787
|
+
requestContentLength = outboundLength;
|
|
37788
|
+
if (outboundLength > maxBodyLength) {
|
|
37789
|
+
throw maxBodyLengthError();
|
|
37790
|
+
}
|
|
37791
|
+
}
|
|
37792
|
+
}
|
|
37793
|
+
const mustEnforceStreamBody = hasMaxBodyLength && (utils_default.isReadableStream(data) || utils_default.isStream(data));
|
|
37794
|
+
const trackRequestStream = (stream4, onProgress, flush) => trackStream(stream4, DEFAULT_CHUNK_SIZE, (loadedBytes) => {
|
|
37795
|
+
if (hasMaxBodyLength && loadedBytes > maxBodyLength) {
|
|
37796
|
+
throw pendingBodyError = maxBodyLengthError();
|
|
37797
|
+
}
|
|
37798
|
+
onProgress && onProgress(loadedBytes);
|
|
37799
|
+
}, flush);
|
|
37800
|
+
if (supportsRequestStream && method !== "get" && method !== "head" && (onUploadProgress || mustEnforceStreamBody)) {
|
|
37801
|
+
requestContentLength = requestContentLength == null ? await resolveBodyLength(headers, data) : requestContentLength;
|
|
37802
|
+
if (requestContentLength !== 0 || mustEnforceStreamBody) {
|
|
37803
|
+
let _request = new Request2(url2, {
|
|
37804
|
+
method: "POST",
|
|
37805
|
+
body: data,
|
|
37806
|
+
duplex: "half"
|
|
37807
|
+
});
|
|
37808
|
+
let contentTypeHeader;
|
|
37809
|
+
if (utils_default.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
|
|
37810
|
+
headers.setContentType(contentTypeHeader);
|
|
37811
|
+
}
|
|
37812
|
+
if (_request.body) {
|
|
37813
|
+
const [onProgress, flush] = onUploadProgress && progressEventDecorator(requestContentLength, progressEventReducer(asyncDecorator(onUploadProgress))) || [];
|
|
37814
|
+
data = trackRequestStream(_request.body, onProgress, flush);
|
|
37815
|
+
}
|
|
36967
37816
|
}
|
|
37817
|
+
} else if (mustEnforceStreamBody && !isRequestSupported && isReadableStreamSupported && method !== "get" && method !== "head") {
|
|
37818
|
+
data = trackRequestStream(data);
|
|
37819
|
+
} else if (mustEnforceStreamBody && isRequestSupported && !supportsRequestStream && method !== "get" && method !== "head") {
|
|
37820
|
+
throw new AxiosError_default("Stream request bodies are not supported by the current fetch implementation", AxiosError_default.ERR_NOT_SUPPORT, config, request);
|
|
36968
37821
|
}
|
|
36969
37822
|
if (!utils_default.isString(withCredentials)) {
|
|
36970
37823
|
withCredentials = withCredentials ? "include" : "omit";
|
|
@@ -36977,19 +37830,47 @@ var DEFAULT_CHUNK_SIZE, isFunction3, encodeUTF83 = (str) => encodeURIComponent(s
|
|
|
36977
37830
|
}
|
|
36978
37831
|
}
|
|
36979
37832
|
headers.set("User-Agent", "axios/" + VERSION2, false);
|
|
36980
|
-
const
|
|
36981
|
-
|
|
37833
|
+
const safeFetchOptions = fetchOptions == null ? fetchOptions : Object.assign(Object.create(null), fetchOptions);
|
|
37834
|
+
if (safeFetchOptions) {
|
|
37835
|
+
delete safeFetchOptions.body;
|
|
37836
|
+
delete safeFetchOptions.headers;
|
|
37837
|
+
delete safeFetchOptions.method;
|
|
37838
|
+
delete safeFetchOptions.signal;
|
|
37839
|
+
delete safeFetchOptions.duplex;
|
|
37840
|
+
delete safeFetchOptions.credentials;
|
|
37841
|
+
}
|
|
37842
|
+
const resolvedOptions = Object.assign(Object.create(null), safeFetchOptions, {
|
|
36982
37843
|
signal: composedSignal,
|
|
36983
37844
|
method: method.toUpperCase(),
|
|
36984
37845
|
headers: toByteStringHeaderObject(headers.normalize()),
|
|
36985
37846
|
body: data,
|
|
36986
37847
|
duplex: "half",
|
|
36987
37848
|
credentials: isCredentialsSupported ? withCredentials : undefined
|
|
36988
|
-
};
|
|
37849
|
+
});
|
|
37850
|
+
if (isRequestSupported) {
|
|
37851
|
+
utils_default.forEach(DEFAULT_REQUEST_OPTIONS, (value, key) => {
|
|
37852
|
+
if (resolvedOptions[key] === undefined) {
|
|
37853
|
+
resolvedOptions[key] = value;
|
|
37854
|
+
}
|
|
37855
|
+
});
|
|
37856
|
+
if (resolvedOptions.signal === undefined) {
|
|
37857
|
+
resolvedOptions.signal = null;
|
|
37858
|
+
}
|
|
37859
|
+
if (resolvedOptions.body === undefined) {
|
|
37860
|
+
resolvedOptions.body = null;
|
|
37861
|
+
}
|
|
37862
|
+
}
|
|
37863
|
+
if (maxRedirects === 0) {
|
|
37864
|
+
resolvedOptions.redirect = "manual";
|
|
37865
|
+
if (safeFetchOptions) {
|
|
37866
|
+
safeFetchOptions.redirect = "manual";
|
|
37867
|
+
}
|
|
37868
|
+
}
|
|
36989
37869
|
request = isRequestSupported && new Request2(url2, resolvedOptions);
|
|
36990
|
-
let response = await (isRequestSupported ? _fetch(request,
|
|
37870
|
+
let response = await (isRequestSupported ? _fetch(request, safeFetchOptions) : _fetch(url2, resolvedOptions));
|
|
37871
|
+
const responseHeaders = AxiosHeaders_default.from(response.headers);
|
|
36991
37872
|
if (hasMaxContentLength) {
|
|
36992
|
-
const declaredLength = utils_default.toFiniteNumber(
|
|
37873
|
+
const declaredLength = utils_default.toFiniteNumber(responseHeaders.getContentLength());
|
|
36993
37874
|
if (declaredLength != null && declaredLength > maxContentLength) {
|
|
36994
37875
|
throw new AxiosError_default("maxContentLength size of " + maxContentLength + " exceeded", AxiosError_default.ERR_BAD_RESPONSE, config, request);
|
|
36995
37876
|
}
|
|
@@ -37000,7 +37881,7 @@ var DEFAULT_CHUNK_SIZE, isFunction3, encodeUTF83 = (str) => encodeURIComponent(s
|
|
|
37000
37881
|
["status", "statusText", "headers"].forEach((prop) => {
|
|
37001
37882
|
options[prop] = response[prop];
|
|
37002
37883
|
});
|
|
37003
|
-
const responseContentLength = utils_default.toFiniteNumber(
|
|
37884
|
+
const responseContentLength = utils_default.toFiniteNumber(responseHeaders.getContentLength());
|
|
37004
37885
|
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(responseContentLength, progressEventReducer(asyncDecorator(onDownloadProgress), true)) || [];
|
|
37005
37886
|
let bytesRead = 0;
|
|
37006
37887
|
const onChunkProgress = (loadedBytes) => {
|
|
@@ -37051,13 +37932,35 @@ var DEFAULT_CHUNK_SIZE, isFunction3, encodeUTF83 = (str) => encodeURIComponent(s
|
|
|
37051
37932
|
const canceledError = composedSignal.reason;
|
|
37052
37933
|
canceledError.config = config;
|
|
37053
37934
|
request && (canceledError.request = request);
|
|
37054
|
-
err !== canceledError
|
|
37935
|
+
if (err !== canceledError) {
|
|
37936
|
+
Object.defineProperty(canceledError, "cause", {
|
|
37937
|
+
__proto__: null,
|
|
37938
|
+
value: err,
|
|
37939
|
+
writable: true,
|
|
37940
|
+
enumerable: false,
|
|
37941
|
+
configurable: true
|
|
37942
|
+
});
|
|
37943
|
+
}
|
|
37055
37944
|
throw canceledError;
|
|
37056
37945
|
}
|
|
37946
|
+
if (pendingBodyError) {
|
|
37947
|
+
request && !pendingBodyError.request && (pendingBodyError.request = request);
|
|
37948
|
+
throw pendingBodyError;
|
|
37949
|
+
}
|
|
37950
|
+
if (err instanceof AxiosError_default) {
|
|
37951
|
+
request && !err.request && (err.request = request);
|
|
37952
|
+
throw err;
|
|
37953
|
+
}
|
|
37057
37954
|
if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
|
|
37058
|
-
|
|
37059
|
-
|
|
37955
|
+
const networkError = new AxiosError_default("Network Error", AxiosError_default.ERR_NETWORK, config, request, err && err.response);
|
|
37956
|
+
Object.defineProperty(networkError, "cause", {
|
|
37957
|
+
__proto__: null,
|
|
37958
|
+
value: err.cause || err,
|
|
37959
|
+
writable: true,
|
|
37960
|
+
enumerable: false,
|
|
37961
|
+
configurable: true
|
|
37060
37962
|
});
|
|
37963
|
+
throw networkError;
|
|
37061
37964
|
}
|
|
37062
37965
|
throw AxiosError_default.from(err, err && err.code, config, request, err && err.response);
|
|
37063
37966
|
}
|
|
@@ -37086,12 +37989,23 @@ var init_fetch = __esm(() => {
|
|
|
37086
37989
|
init_settle();
|
|
37087
37990
|
init_sanitizeHeaderValue();
|
|
37088
37991
|
DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
37992
|
+
DEFAULT_REQUEST_OPTIONS = {
|
|
37993
|
+
cache: "default",
|
|
37994
|
+
redirect: "follow",
|
|
37995
|
+
referrer: "about:client",
|
|
37996
|
+
referrerPolicy: "",
|
|
37997
|
+
mode: "cors",
|
|
37998
|
+
integrity: "",
|
|
37999
|
+
keepalive: false,
|
|
38000
|
+
priority: "auto",
|
|
38001
|
+
window: null
|
|
38002
|
+
};
|
|
37089
38003
|
({ isFunction: isFunction3 } = utils_default);
|
|
37090
38004
|
seedCache = new Map;
|
|
37091
38005
|
adapter = getFetch();
|
|
37092
38006
|
});
|
|
37093
38007
|
|
|
37094
|
-
// node_modules/.bun/axios@1.
|
|
38008
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/adapters/adapters.js
|
|
37095
38009
|
function getAdapter(adapters, config) {
|
|
37096
38010
|
adapters = utils_default.isArray(adapters) ? adapters : [adapters];
|
|
37097
38011
|
const { length } = adapters;
|
|
@@ -37118,7 +38032,7 @@ function getAdapter(adapters, config) {
|
|
|
37118
38032
|
let s = length ? reasons.length > 1 ? `since :
|
|
37119
38033
|
` + reasons.map(renderReason).join(`
|
|
37120
38034
|
`) : " " + renderReason(reasons[0]) : "as no adapter specified";
|
|
37121
|
-
throw new AxiosError_default(`There is no suitable adapter to dispatch the request ` + s,
|
|
38035
|
+
throw new AxiosError_default(`There is no suitable adapter to dispatch the request ` + s, AxiosError_default.ERR_NOT_SUPPORT);
|
|
37122
38036
|
}
|
|
37123
38037
|
return adapter2;
|
|
37124
38038
|
}
|
|
@@ -37150,7 +38064,7 @@ var init_adapters = __esm(() => {
|
|
|
37150
38064
|
};
|
|
37151
38065
|
});
|
|
37152
38066
|
|
|
37153
|
-
// node_modules/.bun/axios@1.
|
|
38067
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/core/dispatchRequest.js
|
|
37154
38068
|
function throwIfCancellationRequested(config) {
|
|
37155
38069
|
if (config.cancelToken) {
|
|
37156
38070
|
config.cancelToken.throwIfRequested();
|
|
@@ -37159,9 +38073,10 @@ function throwIfCancellationRequested(config) {
|
|
|
37159
38073
|
throw new CanceledError_default(null, config);
|
|
37160
38074
|
}
|
|
37161
38075
|
}
|
|
37162
|
-
function dispatchRequest(
|
|
38076
|
+
function dispatchRequest(_config) {
|
|
38077
|
+
const config = utils_default.toSafeFlatObject(_config);
|
|
37163
38078
|
throwIfCancellationRequested(config);
|
|
37164
|
-
config.headers = AxiosHeaders_default.from(config
|
|
38079
|
+
config.headers = AxiosHeaders_default.from(utils_default.getSafeProp(config, "headers"));
|
|
37165
38080
|
config.data = transformData.call(config, config.transformRequest);
|
|
37166
38081
|
if (["post", "put", "patch"].indexOf(config.method) !== -1) {
|
|
37167
38082
|
config.headers.setContentType("application/x-www-form-urlencoded", false);
|
|
@@ -37199,11 +38114,12 @@ var init_dispatchRequest = __esm(() => {
|
|
|
37199
38114
|
init_CanceledError();
|
|
37200
38115
|
init_AxiosHeaders();
|
|
37201
38116
|
init_adapters();
|
|
38117
|
+
init_utils();
|
|
37202
38118
|
});
|
|
37203
38119
|
|
|
37204
|
-
// node_modules/.bun/axios@1.
|
|
38120
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/helpers/validator.js
|
|
37205
38121
|
function assertOptions(options, schema, allowUnknown) {
|
|
37206
|
-
if (typeof options !== "object") {
|
|
38122
|
+
if (typeof options !== "object" || options === null) {
|
|
37207
38123
|
throw new AxiosError_default("options must be an object", AxiosError_default.ERR_BAD_OPTION_VALUE);
|
|
37208
38124
|
}
|
|
37209
38125
|
const keys2 = Object.keys(options);
|
|
@@ -37261,7 +38177,7 @@ var init_validator = __esm(() => {
|
|
|
37261
38177
|
};
|
|
37262
38178
|
});
|
|
37263
38179
|
|
|
37264
|
-
// node_modules/.bun/axios@1.
|
|
38180
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/core/Axios.js
|
|
37265
38181
|
class Axios {
|
|
37266
38182
|
constructor(instanceConfig) {
|
|
37267
38183
|
this.defaults = instanceConfig || {};
|
|
@@ -37275,17 +38191,16 @@ class Axios {
|
|
|
37275
38191
|
return await this._request(configOrUrl, config);
|
|
37276
38192
|
} catch (err) {
|
|
37277
38193
|
if (err instanceof Error) {
|
|
37278
|
-
let dummy = {};
|
|
37279
|
-
Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error;
|
|
37280
|
-
const stack = (() => {
|
|
37281
|
-
if (!dummy.stack) {
|
|
37282
|
-
return "";
|
|
37283
|
-
}
|
|
37284
|
-
const firstNewlineIndex = dummy.stack.indexOf(`
|
|
37285
|
-
`);
|
|
37286
|
-
return firstNewlineIndex === -1 ? "" : dummy.stack.slice(firstNewlineIndex + 1);
|
|
37287
|
-
})();
|
|
37288
38194
|
try {
|
|
38195
|
+
let dummy = {};
|
|
38196
|
+
Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error;
|
|
38197
|
+
const dummyStack = dummy.stack;
|
|
38198
|
+
let stack = "";
|
|
38199
|
+
if (typeof dummyStack === "string") {
|
|
38200
|
+
const firstNewlineIndex = dummyStack.indexOf(`
|
|
38201
|
+
`);
|
|
38202
|
+
stack = firstNewlineIndex === -1 ? "" : dummyStack.slice(firstNewlineIndex + 1);
|
|
38203
|
+
}
|
|
37289
38204
|
if (!err.stack) {
|
|
37290
38205
|
err.stack = stack;
|
|
37291
38206
|
} else if (stack) {
|
|
@@ -37319,7 +38234,8 @@ class Axios {
|
|
|
37319
38234
|
forcedJSONParsing: validators2.transitional(validators2.boolean),
|
|
37320
38235
|
clarifyTimeoutError: validators2.transitional(validators2.boolean),
|
|
37321
38236
|
legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean),
|
|
37322
|
-
advertiseZstdAcceptEncoding: validators2.transitional(validators2.boolean)
|
|
38237
|
+
advertiseZstdAcceptEncoding: validators2.transitional(validators2.boolean),
|
|
38238
|
+
validateStatusUndefinedResolves: validators2.transitional(validators2.boolean)
|
|
37323
38239
|
}, false);
|
|
37324
38240
|
}
|
|
37325
38241
|
if (paramsSerializer != null) {
|
|
@@ -37343,9 +38259,9 @@ class Axios {
|
|
|
37343
38259
|
baseUrl: validators2.spelling("baseURL"),
|
|
37344
38260
|
withXsrfToken: validators2.spelling("withXSRFToken")
|
|
37345
38261
|
}, true);
|
|
37346
|
-
config.method = (config
|
|
38262
|
+
config.method = (utils_default.getSafeProp(config, "method") || utils_default.getSafeProp(this.defaults, "method") || "get").toLowerCase();
|
|
37347
38263
|
let contextHeaders = headers && utils_default.merge(headers.common, headers[config.method]);
|
|
37348
|
-
headers && utils_default.forEach(
|
|
38264
|
+
headers && utils_default.forEach(methodList_default.concat("common"), (method) => {
|
|
37349
38265
|
delete headers[method];
|
|
37350
38266
|
});
|
|
37351
38267
|
config.headers = AxiosHeaders_default.concat(contextHeaders, headers);
|
|
@@ -37388,16 +38304,29 @@ class Axios {
|
|
|
37388
38304
|
const onFulfilled = requestInterceptorChain[i++];
|
|
37389
38305
|
const onRejected = requestInterceptorChain[i++];
|
|
37390
38306
|
try {
|
|
37391
|
-
newConfig = onFulfilled(newConfig);
|
|
38307
|
+
newConfig = onFulfilled ? onFulfilled(newConfig) : newConfig;
|
|
37392
38308
|
} catch (error2) {
|
|
37393
|
-
onRejected
|
|
38309
|
+
if (!onRejected) {
|
|
38310
|
+
promise = Promise.reject(error2);
|
|
38311
|
+
break;
|
|
38312
|
+
}
|
|
38313
|
+
try {
|
|
38314
|
+
const rejectedResult = onRejected.call(this, error2);
|
|
38315
|
+
if (utils_default.isThenable(rejectedResult)) {
|
|
38316
|
+
promise = Promise.resolve(rejectedResult).then(() => dispatchRequest.call(this, newConfig));
|
|
38317
|
+
}
|
|
38318
|
+
} catch (rejectedError) {
|
|
38319
|
+
promise = Promise.reject(rejectedError);
|
|
38320
|
+
}
|
|
37394
38321
|
break;
|
|
37395
38322
|
}
|
|
37396
38323
|
}
|
|
37397
|
-
|
|
37398
|
-
|
|
37399
|
-
|
|
37400
|
-
|
|
38324
|
+
if (!promise) {
|
|
38325
|
+
try {
|
|
38326
|
+
promise = dispatchRequest.call(this, newConfig);
|
|
38327
|
+
} catch (error2) {
|
|
38328
|
+
promise = Promise.reject(error2);
|
|
38329
|
+
}
|
|
37401
38330
|
}
|
|
37402
38331
|
i = 0;
|
|
37403
38332
|
len = responseInterceptorChain.length;
|
|
@@ -37408,7 +38337,7 @@ class Axios {
|
|
|
37408
38337
|
}
|
|
37409
38338
|
getUri(config) {
|
|
37410
38339
|
config = mergeConfig(this.defaults, config);
|
|
37411
|
-
const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
|
|
38340
|
+
const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls, config);
|
|
37412
38341
|
return buildURL(fullPath, config.params, config.paramsSerializer);
|
|
37413
38342
|
}
|
|
37414
38343
|
}
|
|
@@ -37420,6 +38349,7 @@ var init_Axios = __esm(() => {
|
|
|
37420
38349
|
init_dispatchRequest();
|
|
37421
38350
|
init_mergeConfig();
|
|
37422
38351
|
init_buildFullPath();
|
|
38352
|
+
init_methodList();
|
|
37423
38353
|
init_validator();
|
|
37424
38354
|
init_AxiosHeaders();
|
|
37425
38355
|
init_transitional();
|
|
@@ -37429,7 +38359,7 @@ var init_Axios = __esm(() => {
|
|
|
37429
38359
|
return this.request(mergeConfig(config || {}, {
|
|
37430
38360
|
method,
|
|
37431
38361
|
url: url2,
|
|
37432
|
-
data: (config
|
|
38362
|
+
data: config && utils_default.hasOwnProp(config, "data") ? config.data : undefined
|
|
37433
38363
|
}));
|
|
37434
38364
|
};
|
|
37435
38365
|
});
|
|
@@ -37454,7 +38384,7 @@ var init_Axios = __esm(() => {
|
|
|
37454
38384
|
Axios_default = Axios;
|
|
37455
38385
|
});
|
|
37456
38386
|
|
|
37457
|
-
// node_modules/.bun/axios@1.
|
|
38387
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/cancel/CancelToken.js
|
|
37458
38388
|
class CancelToken {
|
|
37459
38389
|
constructor(executor) {
|
|
37460
38390
|
if (typeof executor !== "function") {
|
|
@@ -37544,14 +38474,14 @@ var init_CancelToken = __esm(() => {
|
|
|
37544
38474
|
CancelToken_default = CancelToken;
|
|
37545
38475
|
});
|
|
37546
38476
|
|
|
37547
|
-
// node_modules/.bun/axios@1.
|
|
38477
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/helpers/spread.js
|
|
37548
38478
|
function spread(callback) {
|
|
37549
38479
|
return function wrap(arr) {
|
|
37550
38480
|
return callback.apply(null, arr);
|
|
37551
38481
|
};
|
|
37552
38482
|
}
|
|
37553
38483
|
|
|
37554
|
-
// node_modules/.bun/axios@1.
|
|
38484
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/helpers/isAxiosError.js
|
|
37555
38485
|
function isAxiosError(payload) {
|
|
37556
38486
|
return utils_default.isObject(payload) && payload.isAxiosError === true;
|
|
37557
38487
|
}
|
|
@@ -37559,7 +38489,7 @@ var init_isAxiosError = __esm(() => {
|
|
|
37559
38489
|
init_utils();
|
|
37560
38490
|
});
|
|
37561
38491
|
|
|
37562
|
-
// node_modules/.bun/axios@1.
|
|
38492
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/helpers/HttpStatusCode.js
|
|
37563
38493
|
var HttpStatusCode, HttpStatusCode_default;
|
|
37564
38494
|
var init_HttpStatusCode = __esm(() => {
|
|
37565
38495
|
HttpStatusCode = {
|
|
@@ -37600,6 +38530,7 @@ var init_HttpStatusCode = __esm(() => {
|
|
|
37600
38530
|
LengthRequired: 411,
|
|
37601
38531
|
PreconditionFailed: 412,
|
|
37602
38532
|
PayloadTooLarge: 413,
|
|
38533
|
+
ContentTooLarge: 413,
|
|
37603
38534
|
UriTooLong: 414,
|
|
37604
38535
|
UnsupportedMediaType: 415,
|
|
37605
38536
|
RangeNotSatisfiable: 416,
|
|
@@ -37607,6 +38538,7 @@ var init_HttpStatusCode = __esm(() => {
|
|
|
37607
38538
|
ImATeapot: 418,
|
|
37608
38539
|
MisdirectedRequest: 421,
|
|
37609
38540
|
UnprocessableEntity: 422,
|
|
38541
|
+
UnprocessableContent: 422,
|
|
37610
38542
|
Locked: 423,
|
|
37611
38543
|
FailedDependency: 424,
|
|
37612
38544
|
TooEarly: 425,
|
|
@@ -37626,6 +38558,7 @@ var init_HttpStatusCode = __esm(() => {
|
|
|
37626
38558
|
LoopDetected: 508,
|
|
37627
38559
|
NotExtended: 510,
|
|
37628
38560
|
NetworkAuthenticationRequired: 511,
|
|
38561
|
+
WebServerReturnsAnUnknownError: 520,
|
|
37629
38562
|
WebServerIsDown: 521,
|
|
37630
38563
|
ConnectionTimedOut: 522,
|
|
37631
38564
|
OriginIsUnreachable: 523,
|
|
@@ -37634,12 +38567,14 @@ var init_HttpStatusCode = __esm(() => {
|
|
|
37634
38567
|
InvalidSslCertificate: 526
|
|
37635
38568
|
};
|
|
37636
38569
|
Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
37637
|
-
HttpStatusCode[value]
|
|
38570
|
+
if (HttpStatusCode[value] === undefined) {
|
|
38571
|
+
HttpStatusCode[value] = key;
|
|
38572
|
+
}
|
|
37638
38573
|
});
|
|
37639
38574
|
HttpStatusCode_default = HttpStatusCode;
|
|
37640
38575
|
});
|
|
37641
38576
|
|
|
37642
|
-
// node_modules/.bun/axios@1.
|
|
38577
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/lib/axios.js
|
|
37643
38578
|
function createInstance(defaultConfig) {
|
|
37644
38579
|
const context = new Axios_default(defaultConfig);
|
|
37645
38580
|
const instance = bind(Axios_default.prototype.request, context);
|
|
@@ -37688,7 +38623,7 @@ var init_axios = __esm(() => {
|
|
|
37688
38623
|
axios_default = axios;
|
|
37689
38624
|
});
|
|
37690
38625
|
|
|
37691
|
-
// node_modules/.bun/axios@1.
|
|
38626
|
+
// node_modules/.bun/axios@1.20.0/node_modules/axios/index.js
|
|
37692
38627
|
var exports_axios = {};
|
|
37693
38628
|
__export(exports_axios, {
|
|
37694
38629
|
toFormData: () => toFormData2,
|
|
@@ -82298,7 +83233,7 @@ function bidiFactory() {
|
|
|
82298
83233
|
var TYPE_FSI = TYPES.FSI;
|
|
82299
83234
|
var TYPE_PDI = TYPES.PDI;
|
|
82300
83235
|
function getEmbeddingLevels(string4, baseDirection) {
|
|
82301
|
-
var
|
|
83236
|
+
var MAX_DEPTH2 = 125;
|
|
82302
83237
|
var charTypes = new Uint32Array(string4.length);
|
|
82303
83238
|
for (var i2 = 0;i2 < string4.length; i2++) {
|
|
82304
83239
|
charTypes[i2] = getBidiCharType(string4[i2]);
|
|
@@ -82363,7 +83298,7 @@ function bidiFactory() {
|
|
|
82363
83298
|
if (charType & (TYPE_RLE | TYPE_LRE)) {
|
|
82364
83299
|
embedLevels[i$2] = stackTop._level;
|
|
82365
83300
|
var level = (charType === TYPE_RLE ? nextOdd : nextEven)(stackTop._level);
|
|
82366
|
-
if (level <=
|
|
83301
|
+
if (level <= MAX_DEPTH2 && !overflowIsolateCount && !overflowEmbeddingCount) {
|
|
82367
83302
|
statusStack.push({
|
|
82368
83303
|
_level: level,
|
|
82369
83304
|
_override: 0,
|
|
@@ -82375,7 +83310,7 @@ function bidiFactory() {
|
|
|
82375
83310
|
} else if (charType & (TYPE_RLO | TYPE_LRO)) {
|
|
82376
83311
|
embedLevels[i$2] = stackTop._level;
|
|
82377
83312
|
var level$1 = (charType === TYPE_RLO ? nextOdd : nextEven)(stackTop._level);
|
|
82378
|
-
if (level$1 <=
|
|
83313
|
+
if (level$1 <= MAX_DEPTH2 && !overflowIsolateCount && !overflowEmbeddingCount) {
|
|
82379
83314
|
statusStack.push({
|
|
82380
83315
|
_level: level$1,
|
|
82381
83316
|
_override: charType & TYPE_RLO ? TYPE_R : TYPE_L,
|
|
@@ -82393,7 +83328,7 @@ function bidiFactory() {
|
|
|
82393
83328
|
changeCharType(i$2, stackTop._override);
|
|
82394
83329
|
}
|
|
82395
83330
|
var level$2 = (charType === TYPE_RLI ? nextOdd : nextEven)(stackTop._level);
|
|
82396
|
-
if (level$2 <=
|
|
83331
|
+
if (level$2 <= MAX_DEPTH2 && overflowIsolateCount === 0 && overflowEmbeddingCount === 0) {
|
|
82397
83332
|
validIsolateCount++;
|
|
82398
83333
|
statusStack.push({
|
|
82399
83334
|
_level: level$2,
|
|
@@ -93077,7 +94012,7 @@ var require_endpoints = __commonJS((exports) => {
|
|
|
93077
94012
|
}
|
|
93078
94013
|
return acc[index2];
|
|
93079
94014
|
}, value);
|
|
93080
|
-
var
|
|
94015
|
+
var isSet2 = (value) => value != null;
|
|
93081
94016
|
function ite(condition, trueValue, falseValue) {
|
|
93082
94017
|
return condition ? trueValue : falseValue;
|
|
93083
94018
|
}
|
|
@@ -93157,7 +94092,7 @@ var require_endpoints = __commonJS((exports) => {
|
|
|
93157
94092
|
booleanEquals,
|
|
93158
94093
|
coalesce,
|
|
93159
94094
|
getAttr,
|
|
93160
|
-
isSet,
|
|
94095
|
+
isSet: isSet2,
|
|
93161
94096
|
isValidHostLabel: transport.isValidHostLabel,
|
|
93162
94097
|
ite,
|
|
93163
94098
|
not,
|
|
@@ -128405,8 +129340,8 @@ var init_macOsKeychainStorage = __esm(() => {
|
|
|
128405
129340
|
const storageServiceName = getMacOsKeychainStorageServiceName(CREDENTIALS_SERVICE_SUFFIX);
|
|
128406
129341
|
const username = getUsername();
|
|
128407
129342
|
const jsonString = jsonStringify(data);
|
|
128408
|
-
const
|
|
128409
|
-
const command = `add-generic-password -U -a "${username}" -s "${storageServiceName}" -X "${
|
|
129343
|
+
const hexValue2 = Buffer.from(jsonString, "utf-8").toString("hex");
|
|
129344
|
+
const command = `add-generic-password -U -a "${username}" -s "${storageServiceName}" -X "${hexValue2}"
|
|
128410
129345
|
`;
|
|
128411
129346
|
let result;
|
|
128412
129347
|
if (command.length <= SECURITY_STDIN_LINE_LIMIT) {
|
|
@@ -128425,7 +129360,7 @@ var init_macOsKeychainStorage = __esm(() => {
|
|
|
128425
129360
|
"-s",
|
|
128426
129361
|
storageServiceName,
|
|
128427
129362
|
"-X",
|
|
128428
|
-
|
|
129363
|
+
hexValue2
|
|
128429
129364
|
], { stdio: ["ignore", "pipe", "pipe"], reject: false });
|
|
128430
129365
|
}
|
|
128431
129366
|
if (result.exitCode !== 0) {
|
|
@@ -138860,7 +139795,7 @@ var init_user = __esm(() => {
|
|
|
138860
139795
|
deviceId,
|
|
138861
139796
|
sessionId: getSessionId(),
|
|
138862
139797
|
email: getEmail(),
|
|
138863
|
-
appVersion: "4.2.
|
|
139798
|
+
appVersion: "4.2.32",
|
|
138864
139799
|
platform: getHostPlatformForAnalytics(),
|
|
138865
139800
|
organizationUuid,
|
|
138866
139801
|
accountUuid,
|
|
@@ -139147,7 +140082,7 @@ var init_metadata = __esm(() => {
|
|
|
139147
140082
|
"sed"
|
|
139148
140083
|
]);
|
|
139149
140084
|
getVersionBase = memoize_default(() => {
|
|
139150
|
-
const match = "4.2.
|
|
140085
|
+
const match = "4.2.32".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
|
|
139151
140086
|
return match ? match[0] : undefined;
|
|
139152
140087
|
});
|
|
139153
140088
|
buildEnvContext = memoize_default(async () => {
|
|
@@ -139187,9 +140122,9 @@ var init_metadata = __esm(() => {
|
|
|
139187
140122
|
isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
|
|
139188
140123
|
isClaudeCodeAction: isEnvTruthy(process.env.CLAUDE_CODE_ACTION),
|
|
139189
140124
|
isClaudeAiAuth: isClaudeAISubscriber(),
|
|
139190
|
-
version: "4.2.
|
|
140125
|
+
version: "4.2.32",
|
|
139191
140126
|
versionBase: getVersionBase(),
|
|
139192
|
-
buildTime: "2026-
|
|
140127
|
+
buildTime: "2026-09-01T08:57:02.652Z",
|
|
139193
140128
|
deploymentEnvironment: env4.detectDeploymentEnvironment(),
|
|
139194
140129
|
...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
|
|
139195
140130
|
githubEventName: process.env.GITHUB_EVENT_NAME,
|
|
@@ -141144,12 +142079,18 @@ async function doRefresh(forceRefresh = false) {
|
|
|
141144
142079
|
...decision,
|
|
141145
142080
|
access_token: refreshed2.access_token,
|
|
141146
142081
|
refresh_token: refreshed2.refresh_token,
|
|
142082
|
+
state: refreshed2.state || decision.state,
|
|
141147
142083
|
expiry_date: expiryMs,
|
|
141148
142084
|
updated_at: new Date().toISOString(),
|
|
141149
142085
|
expired_at: new Date(expiryMs).toISOString()
|
|
141150
142086
|
};
|
|
141151
|
-
await
|
|
141152
|
-
|
|
142087
|
+
const saved = await updateCredentialsAtomically((current) => {
|
|
142088
|
+
if (current && current.access_token !== decision.access_token && isCoStrictTokenValid(current)) {
|
|
142089
|
+
return null;
|
|
142090
|
+
}
|
|
142091
|
+
return updated;
|
|
142092
|
+
});
|
|
142093
|
+
return { credentials: saved ?? updated, refreshed: true };
|
|
141153
142094
|
}
|
|
141154
142095
|
async function recoverFrom401(staleAccessToken) {
|
|
141155
142096
|
const latestCreds = await loadCoStrictCredentials();
|
|
@@ -141163,6 +142104,10 @@ async function recoverFrom401(staleAccessToken) {
|
|
|
141163
142104
|
return result.credentials;
|
|
141164
142105
|
} catch (error52) {
|
|
141165
142106
|
logError2(error52);
|
|
142107
|
+
const afterFailure = await loadCoStrictCredentials();
|
|
142108
|
+
if (afterFailure && afterFailure.access_token !== staleAccessToken && isCoStrictTokenValid(afterFailure)) {
|
|
142109
|
+
return afterFailure;
|
|
142110
|
+
}
|
|
141166
142111
|
return null;
|
|
141167
142112
|
}
|
|
141168
142113
|
}
|
|
@@ -143533,5 +144478,5 @@ export {
|
|
|
143533
144478
|
isParentHeartbeatValid
|
|
143534
144479
|
};
|
|
143535
144480
|
|
|
143536
|
-
//# debugId=
|
|
144481
|
+
//# debugId=1CE3DB7F7D473C2264756E2164756E21
|
|
143537
144482
|
|