@modern-js/create 2.68.11 → 2.68.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +518 -359
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -10927,7 +10927,7 @@ var require_async_iterator = __commonJS({
|
|
|
10927
10927
|
}), _Object$setPrototypeO), AsyncIteratorPrototype);
|
|
10928
10928
|
var createReadableStreamAsyncIterator = function createReadableStreamAsyncIterator2(stream4) {
|
|
10929
10929
|
var _Object$create;
|
|
10930
|
-
var
|
|
10930
|
+
var iterator2 = Object.create(ReadableStreamAsyncIteratorPrototype, (_Object$create = {}, _defineProperty(_Object$create, kStream, {
|
|
10931
10931
|
value: stream4,
|
|
10932
10932
|
writable: true
|
|
10933
10933
|
}), _defineProperty(_Object$create, kLastResolve, {
|
|
@@ -10944,43 +10944,43 @@ var require_async_iterator = __commonJS({
|
|
|
10944
10944
|
writable: true
|
|
10945
10945
|
}), _defineProperty(_Object$create, kHandlePromise, {
|
|
10946
10946
|
value: function value(resolve, reject) {
|
|
10947
|
-
var data =
|
|
10947
|
+
var data = iterator2[kStream].read();
|
|
10948
10948
|
if (data) {
|
|
10949
|
-
|
|
10950
|
-
|
|
10951
|
-
|
|
10949
|
+
iterator2[kLastPromise] = null;
|
|
10950
|
+
iterator2[kLastResolve] = null;
|
|
10951
|
+
iterator2[kLastReject] = null;
|
|
10952
10952
|
resolve(createIterResult(data, false));
|
|
10953
10953
|
} else {
|
|
10954
|
-
|
|
10955
|
-
|
|
10954
|
+
iterator2[kLastResolve] = resolve;
|
|
10955
|
+
iterator2[kLastReject] = reject;
|
|
10956
10956
|
}
|
|
10957
10957
|
},
|
|
10958
10958
|
writable: true
|
|
10959
10959
|
}), _Object$create));
|
|
10960
|
-
|
|
10960
|
+
iterator2[kLastPromise] = null;
|
|
10961
10961
|
finished(stream4, function(err) {
|
|
10962
10962
|
if (err && err.code !== "ERR_STREAM_PREMATURE_CLOSE") {
|
|
10963
|
-
var reject =
|
|
10963
|
+
var reject = iterator2[kLastReject];
|
|
10964
10964
|
if (reject !== null) {
|
|
10965
|
-
|
|
10966
|
-
|
|
10967
|
-
|
|
10965
|
+
iterator2[kLastPromise] = null;
|
|
10966
|
+
iterator2[kLastResolve] = null;
|
|
10967
|
+
iterator2[kLastReject] = null;
|
|
10968
10968
|
reject(err);
|
|
10969
10969
|
}
|
|
10970
|
-
|
|
10970
|
+
iterator2[kError] = err;
|
|
10971
10971
|
return;
|
|
10972
10972
|
}
|
|
10973
|
-
var resolve =
|
|
10973
|
+
var resolve = iterator2[kLastResolve];
|
|
10974
10974
|
if (resolve !== null) {
|
|
10975
|
-
|
|
10976
|
-
|
|
10977
|
-
|
|
10975
|
+
iterator2[kLastPromise] = null;
|
|
10976
|
+
iterator2[kLastResolve] = null;
|
|
10977
|
+
iterator2[kLastReject] = null;
|
|
10978
10978
|
resolve(createIterResult(void 0, true));
|
|
10979
10979
|
}
|
|
10980
|
-
|
|
10980
|
+
iterator2[kEnded] = true;
|
|
10981
10981
|
});
|
|
10982
|
-
stream4.on("readable", onReadable.bind(null,
|
|
10983
|
-
return
|
|
10982
|
+
stream4.on("readable", onReadable.bind(null, iterator2));
|
|
10983
|
+
return iterator2;
|
|
10984
10984
|
};
|
|
10985
10985
|
module2.exports = createReadableStreamAsyncIterator;
|
|
10986
10986
|
}
|
|
@@ -11067,13 +11067,13 @@ var require_from = __commonJS({
|
|
|
11067
11067
|
}
|
|
11068
11068
|
var ERR_INVALID_ARG_TYPE = require_errors().codes.ERR_INVALID_ARG_TYPE;
|
|
11069
11069
|
function from(Readable2, iterable, opts) {
|
|
11070
|
-
var
|
|
11070
|
+
var iterator2;
|
|
11071
11071
|
if (iterable && typeof iterable.next === "function") {
|
|
11072
|
-
|
|
11072
|
+
iterator2 = iterable;
|
|
11073
11073
|
} else if (iterable && iterable[Symbol.asyncIterator])
|
|
11074
|
-
|
|
11074
|
+
iterator2 = iterable[Symbol.asyncIterator]();
|
|
11075
11075
|
else if (iterable && iterable[Symbol.iterator])
|
|
11076
|
-
|
|
11076
|
+
iterator2 = iterable[Symbol.iterator]();
|
|
11077
11077
|
else
|
|
11078
11078
|
throw new ERR_INVALID_ARG_TYPE("iterable", ["Iterable"], iterable);
|
|
11079
11079
|
var readable = new Readable2(_objectSpread({
|
|
@@ -11092,7 +11092,7 @@ var require_from = __commonJS({
|
|
|
11092
11092
|
function _next2() {
|
|
11093
11093
|
_next2 = _asyncToGenerator(function* () {
|
|
11094
11094
|
try {
|
|
11095
|
-
var _yield$iterator$next = yield
|
|
11095
|
+
var _yield$iterator$next = yield iterator2.next(), value = _yield$iterator$next.value, done = _yield$iterator$next.done;
|
|
11096
11096
|
if (done) {
|
|
11097
11097
|
readable.push(null);
|
|
11098
11098
|
} else if (readable.push(yield value)) {
|
|
@@ -13457,9 +13457,9 @@ var require_lodash = __commonJS({
|
|
|
13457
13457
|
function hasUnicodeWord(string) {
|
|
13458
13458
|
return reHasUnicodeWord.test(string);
|
|
13459
13459
|
}
|
|
13460
|
-
function iteratorToArray(
|
|
13460
|
+
function iteratorToArray(iterator2) {
|
|
13461
13461
|
var data, result = [];
|
|
13462
|
-
while (!(data =
|
|
13462
|
+
while (!(data = iterator2.next()).done) {
|
|
13463
13463
|
result.push(data.value);
|
|
13464
13464
|
}
|
|
13465
13465
|
return result;
|
|
@@ -14183,7 +14183,7 @@ var require_lodash = __commonJS({
|
|
|
14183
14183
|
}
|
|
14184
14184
|
function baseFunctions(object, props) {
|
|
14185
14185
|
return arrayFilter(props, function(key) {
|
|
14186
|
-
return
|
|
14186
|
+
return isFunction3(object[key]);
|
|
14187
14187
|
});
|
|
14188
14188
|
}
|
|
14189
14189
|
function baseGet(object, path12) {
|
|
@@ -14346,7 +14346,7 @@ var require_lodash = __commonJS({
|
|
|
14346
14346
|
if (!isObject3(value) || isMasked(value)) {
|
|
14347
14347
|
return false;
|
|
14348
14348
|
}
|
|
14349
|
-
var pattern =
|
|
14349
|
+
var pattern = isFunction3(value) ? reIsNative : reIsHostCtor;
|
|
14350
14350
|
return pattern.test(toSource(value));
|
|
14351
14351
|
}
|
|
14352
14352
|
function baseIsRegExp(value) {
|
|
@@ -14468,7 +14468,7 @@ var require_lodash = __commonJS({
|
|
|
14468
14468
|
newValue = objValue;
|
|
14469
14469
|
if (isArguments(objValue)) {
|
|
14470
14470
|
newValue = toPlainObject(objValue);
|
|
14471
|
-
} else if (!isObject3(objValue) ||
|
|
14471
|
+
} else if (!isObject3(objValue) || isFunction3(objValue)) {
|
|
14472
14472
|
newValue = initCloneObject(srcValue);
|
|
14473
14473
|
}
|
|
14474
14474
|
} else {
|
|
@@ -15792,7 +15792,7 @@ var require_lodash = __commonJS({
|
|
|
15792
15792
|
function isMasked(func) {
|
|
15793
15793
|
return !!maskSrcKey && maskSrcKey in func;
|
|
15794
15794
|
}
|
|
15795
|
-
var isMaskable = coreJsData ?
|
|
15795
|
+
var isMaskable = coreJsData ? isFunction3 : stubFalse;
|
|
15796
15796
|
function isPrototype(value) {
|
|
15797
15797
|
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto;
|
|
15798
15798
|
return value === proto;
|
|
@@ -16905,7 +16905,7 @@ var require_lodash = __commonJS({
|
|
|
16905
16905
|
var isArray2 = Array2.isArray;
|
|
16906
16906
|
var isArrayBuffer2 = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer;
|
|
16907
16907
|
function isArrayLike(value) {
|
|
16908
|
-
return value != null && isLength(value.length) && !
|
|
16908
|
+
return value != null && isLength(value.length) && !isFunction3(value);
|
|
16909
16909
|
}
|
|
16910
16910
|
function isArrayLikeObject(value) {
|
|
16911
16911
|
return isObjectLike(value) && isArrayLike(value);
|
|
@@ -16957,7 +16957,7 @@ var require_lodash = __commonJS({
|
|
|
16957
16957
|
function isFinite2(value) {
|
|
16958
16958
|
return typeof value == "number" && nativeIsFinite(value);
|
|
16959
16959
|
}
|
|
16960
|
-
function
|
|
16960
|
+
function isFunction3(value) {
|
|
16961
16961
|
if (!isObject3(value)) {
|
|
16962
16962
|
return false;
|
|
16963
16963
|
}
|
|
@@ -17280,7 +17280,7 @@ var require_lodash = __commonJS({
|
|
|
17280
17280
|
index = length;
|
|
17281
17281
|
value = defaultValue;
|
|
17282
17282
|
}
|
|
17283
|
-
object =
|
|
17283
|
+
object = isFunction3(value) ? value.call(object) : value;
|
|
17284
17284
|
}
|
|
17285
17285
|
return object;
|
|
17286
17286
|
}
|
|
@@ -17301,7 +17301,7 @@ var require_lodash = __commonJS({
|
|
|
17301
17301
|
if (isArrLike) {
|
|
17302
17302
|
accumulator = isArr ? new Ctor() : [];
|
|
17303
17303
|
} else if (isObject3(object)) {
|
|
17304
|
-
accumulator =
|
|
17304
|
+
accumulator = isFunction3(Ctor) ? baseCreate(getPrototype(object)) : {};
|
|
17305
17305
|
} else {
|
|
17306
17306
|
accumulator = {};
|
|
17307
17307
|
}
|
|
@@ -17721,7 +17721,7 @@ var require_lodash = __commonJS({
|
|
|
17721
17721
|
object = this;
|
|
17722
17722
|
methodNames = baseFunctions(source, keys(source));
|
|
17723
17723
|
}
|
|
17724
|
-
var chain2 = !(isObject3(options) && "chain" in options) || !!options.chain, isFunc =
|
|
17724
|
+
var chain2 = !(isObject3(options) && "chain" in options) || !!options.chain, isFunc = isFunction3(object);
|
|
17725
17725
|
arrayEach(methodNames, function(methodName) {
|
|
17726
17726
|
var func = source[methodName];
|
|
17727
17727
|
object[methodName] = func;
|
|
@@ -18056,7 +18056,7 @@ var require_lodash = __commonJS({
|
|
|
18056
18056
|
lodash.isEqualWith = isEqualWith;
|
|
18057
18057
|
lodash.isError = isError;
|
|
18058
18058
|
lodash.isFinite = isFinite2;
|
|
18059
|
-
lodash.isFunction =
|
|
18059
|
+
lodash.isFunction = isFunction3;
|
|
18060
18060
|
lodash.isInteger = isInteger;
|
|
18061
18061
|
lodash.isLength = isLength;
|
|
18062
18062
|
lodash.isMap = isMap;
|
|
@@ -34572,9 +34572,9 @@ var require_iterate = __commonJS({
|
|
|
34572
34572
|
var async = require_async();
|
|
34573
34573
|
var abort = require_abort();
|
|
34574
34574
|
module2.exports = iterate;
|
|
34575
|
-
function iterate(list,
|
|
34575
|
+
function iterate(list, iterator2, state, callback) {
|
|
34576
34576
|
var key = state["keyedList"] ? state["keyedList"][state.index] : state.index;
|
|
34577
|
-
state.jobs[key] = runJob(
|
|
34577
|
+
state.jobs[key] = runJob(iterator2, key, list[key], function(error, output) {
|
|
34578
34578
|
if (!(key in state.jobs)) {
|
|
34579
34579
|
return;
|
|
34580
34580
|
}
|
|
@@ -34587,12 +34587,12 @@ var require_iterate = __commonJS({
|
|
|
34587
34587
|
callback(error, state.results);
|
|
34588
34588
|
});
|
|
34589
34589
|
}
|
|
34590
|
-
function runJob(
|
|
34590
|
+
function runJob(iterator2, key, item, callback) {
|
|
34591
34591
|
var aborter;
|
|
34592
|
-
if (
|
|
34593
|
-
aborter =
|
|
34592
|
+
if (iterator2.length == 2) {
|
|
34593
|
+
aborter = iterator2(item, async(callback));
|
|
34594
34594
|
} else {
|
|
34595
|
-
aborter =
|
|
34595
|
+
aborter = iterator2(item, key, async(callback));
|
|
34596
34596
|
}
|
|
34597
34597
|
return aborter;
|
|
34598
34598
|
}
|
|
@@ -34648,10 +34648,10 @@ var require_parallel = __commonJS({
|
|
|
34648
34648
|
var initState = require_state2();
|
|
34649
34649
|
var terminator = require_terminator();
|
|
34650
34650
|
module2.exports = parallel;
|
|
34651
|
-
function parallel(list,
|
|
34651
|
+
function parallel(list, iterator2, callback) {
|
|
34652
34652
|
var state = initState(list);
|
|
34653
34653
|
while (state.index < (state["keyedList"] || list).length) {
|
|
34654
|
-
iterate(list,
|
|
34654
|
+
iterate(list, iterator2, state, function(error, result) {
|
|
34655
34655
|
if (error) {
|
|
34656
34656
|
callback(error, result);
|
|
34657
34657
|
return;
|
|
@@ -34678,16 +34678,16 @@ var require_serialOrdered = __commonJS({
|
|
|
34678
34678
|
module2.exports = serialOrdered;
|
|
34679
34679
|
module2.exports.ascending = ascending;
|
|
34680
34680
|
module2.exports.descending = descending;
|
|
34681
|
-
function serialOrdered(list,
|
|
34681
|
+
function serialOrdered(list, iterator2, sortMethod, callback) {
|
|
34682
34682
|
var state = initState(list, sortMethod);
|
|
34683
|
-
iterate(list,
|
|
34683
|
+
iterate(list, iterator2, state, function iteratorHandler(error, result) {
|
|
34684
34684
|
if (error) {
|
|
34685
34685
|
callback(error, result);
|
|
34686
34686
|
return;
|
|
34687
34687
|
}
|
|
34688
34688
|
state.index++;
|
|
34689
34689
|
if (state.index < (state["keyedList"] || list).length) {
|
|
34690
|
-
iterate(list,
|
|
34690
|
+
iterate(list, iterator2, state, iteratorHandler);
|
|
34691
34691
|
return;
|
|
34692
34692
|
}
|
|
34693
34693
|
callback(null, state.results);
|
|
@@ -34709,8 +34709,8 @@ var require_serial = __commonJS({
|
|
|
34709
34709
|
"use strict";
|
|
34710
34710
|
var serialOrdered = require_serialOrdered();
|
|
34711
34711
|
module2.exports = serial;
|
|
34712
|
-
function serial(list,
|
|
34713
|
-
return serialOrdered(list,
|
|
34712
|
+
function serial(list, iterator2, callback) {
|
|
34713
|
+
return serialOrdered(list, iterator2, null, callback);
|
|
34714
34714
|
}
|
|
34715
34715
|
}
|
|
34716
34716
|
});
|
|
@@ -35550,32 +35550,32 @@ var require_es_set_tostringtag = __commonJS({
|
|
|
35550
35550
|
var hasToStringTag = require_shams2()();
|
|
35551
35551
|
var hasOwn = require_hasown();
|
|
35552
35552
|
var $TypeError = require_type();
|
|
35553
|
-
var
|
|
35553
|
+
var toStringTag2 = hasToStringTag ? Symbol.toStringTag : null;
|
|
35554
35554
|
module2.exports = function setToStringTag(object, value) {
|
|
35555
35555
|
var overrideIfSet = arguments.length > 2 && !!arguments[2] && arguments[2].force;
|
|
35556
35556
|
var nonConfigurable = arguments.length > 2 && !!arguments[2] && arguments[2].nonConfigurable;
|
|
35557
35557
|
if (typeof overrideIfSet !== "undefined" && typeof overrideIfSet !== "boolean" || typeof nonConfigurable !== "undefined" && typeof nonConfigurable !== "boolean") {
|
|
35558
35558
|
throw new $TypeError("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");
|
|
35559
35559
|
}
|
|
35560
|
-
if (
|
|
35560
|
+
if (toStringTag2 && (overrideIfSet || !hasOwn(object, toStringTag2))) {
|
|
35561
35561
|
if ($defineProperty) {
|
|
35562
|
-
$defineProperty(object,
|
|
35562
|
+
$defineProperty(object, toStringTag2, {
|
|
35563
35563
|
configurable: !nonConfigurable,
|
|
35564
35564
|
enumerable: false,
|
|
35565
35565
|
value,
|
|
35566
35566
|
writable: false
|
|
35567
35567
|
});
|
|
35568
35568
|
} else {
|
|
35569
|
-
object[
|
|
35569
|
+
object[toStringTag2] = value;
|
|
35570
35570
|
}
|
|
35571
35571
|
}
|
|
35572
35572
|
};
|
|
35573
35573
|
}
|
|
35574
35574
|
});
|
|
35575
35575
|
|
|
35576
|
-
// ../../../node_modules/.pnpm/form-data@4.0.
|
|
35576
|
+
// ../../../node_modules/.pnpm/form-data@4.0.4/node_modules/form-data/lib/populate.js
|
|
35577
35577
|
var require_populate = __commonJS({
|
|
35578
|
-
"../../../node_modules/.pnpm/form-data@4.0.
|
|
35578
|
+
"../../../node_modules/.pnpm/form-data@4.0.4/node_modules/form-data/lib/populate.js"(exports, module2) {
|
|
35579
35579
|
"use strict";
|
|
35580
35580
|
module2.exports = function(dst, src) {
|
|
35581
35581
|
Object.keys(src).forEach(function(prop) {
|
|
@@ -35586,9 +35586,9 @@ var require_populate = __commonJS({
|
|
|
35586
35586
|
}
|
|
35587
35587
|
});
|
|
35588
35588
|
|
|
35589
|
-
// ../../../node_modules/.pnpm/form-data@4.0.
|
|
35589
|
+
// ../../../node_modules/.pnpm/form-data@4.0.4/node_modules/form-data/lib/form_data.js
|
|
35590
35590
|
var require_form_data = __commonJS({
|
|
35591
|
-
"../../../node_modules/.pnpm/form-data@4.0.
|
|
35591
|
+
"../../../node_modules/.pnpm/form-data@4.0.4/node_modules/form-data/lib/form_data.js"(exports, module2) {
|
|
35592
35592
|
"use strict";
|
|
35593
35593
|
var CombinedStream = require_combined_stream();
|
|
35594
35594
|
var util3 = require("util");
|
|
@@ -35598,12 +35598,12 @@ var require_form_data = __commonJS({
|
|
|
35598
35598
|
var parseUrl = require("url").parse;
|
|
35599
35599
|
var fs2 = require("fs");
|
|
35600
35600
|
var Stream = require("stream").Stream;
|
|
35601
|
+
var crypto2 = require("crypto");
|
|
35601
35602
|
var mime = require_mime_types();
|
|
35602
35603
|
var asynckit = require_asynckit();
|
|
35603
35604
|
var setToStringTag = require_es_set_tostringtag();
|
|
35605
|
+
var hasOwn = require_hasown();
|
|
35604
35606
|
var populate = require_populate();
|
|
35605
|
-
module2.exports = FormData3;
|
|
35606
|
-
util3.inherits(FormData3, CombinedStream);
|
|
35607
35607
|
function FormData3(options) {
|
|
35608
35608
|
if (!(this instanceof FormData3)) {
|
|
35609
35609
|
return new FormData3(options);
|
|
@@ -35617,16 +35617,17 @@ var require_form_data = __commonJS({
|
|
|
35617
35617
|
this[option] = options[option];
|
|
35618
35618
|
}
|
|
35619
35619
|
}
|
|
35620
|
+
util3.inherits(FormData3, CombinedStream);
|
|
35620
35621
|
FormData3.LINE_BREAK = "\r\n";
|
|
35621
35622
|
FormData3.DEFAULT_CONTENT_TYPE = "application/octet-stream";
|
|
35622
35623
|
FormData3.prototype.append = function(field, value, options) {
|
|
35623
35624
|
options = options || {};
|
|
35624
|
-
if (typeof options
|
|
35625
|
+
if (typeof options === "string") {
|
|
35625
35626
|
options = { filename: options };
|
|
35626
35627
|
}
|
|
35627
35628
|
var append2 = CombinedStream.prototype.append.bind(this);
|
|
35628
|
-
if (typeof value
|
|
35629
|
-
value =
|
|
35629
|
+
if (typeof value === "number" || value == null) {
|
|
35630
|
+
value = String(value);
|
|
35630
35631
|
}
|
|
35631
35632
|
if (Array.isArray(value)) {
|
|
35632
35633
|
this._error(new Error("Arrays are not supported."));
|
|
@@ -35642,7 +35643,7 @@ var require_form_data = __commonJS({
|
|
|
35642
35643
|
FormData3.prototype._trackLength = function(header, value, options) {
|
|
35643
35644
|
var valueLength = 0;
|
|
35644
35645
|
if (options.knownLength != null) {
|
|
35645
|
-
valueLength +=
|
|
35646
|
+
valueLength += Number(options.knownLength);
|
|
35646
35647
|
} else if (Buffer.isBuffer(value)) {
|
|
35647
35648
|
valueLength = value.length;
|
|
35648
35649
|
} else if (typeof value === "string") {
|
|
@@ -35650,7 +35651,7 @@ var require_form_data = __commonJS({
|
|
|
35650
35651
|
}
|
|
35651
35652
|
this._valueLength += valueLength;
|
|
35652
35653
|
this._overheadLength += Buffer.byteLength(header) + FormData3.LINE_BREAK.length;
|
|
35653
|
-
if (!value || !value.path && !(value.readable &&
|
|
35654
|
+
if (!value || !value.path && !(value.readable && hasOwn(value, "httpVersion")) && !(value instanceof Stream)) {
|
|
35654
35655
|
return;
|
|
35655
35656
|
}
|
|
35656
35657
|
if (!options.knownLength) {
|
|
@@ -35658,26 +35659,25 @@ var require_form_data = __commonJS({
|
|
|
35658
35659
|
}
|
|
35659
35660
|
};
|
|
35660
35661
|
FormData3.prototype._lengthRetriever = function(value, callback) {
|
|
35661
|
-
if (
|
|
35662
|
+
if (hasOwn(value, "fd")) {
|
|
35662
35663
|
if (value.end != void 0 && value.end != Infinity && value.start != void 0) {
|
|
35663
35664
|
callback(null, value.end + 1 - (value.start ? value.start : 0));
|
|
35664
35665
|
} else {
|
|
35665
35666
|
fs2.stat(value.path, function(err, stat) {
|
|
35666
|
-
var fileSize;
|
|
35667
35667
|
if (err) {
|
|
35668
35668
|
callback(err);
|
|
35669
35669
|
return;
|
|
35670
35670
|
}
|
|
35671
|
-
fileSize = stat.size - (value.start ? value.start : 0);
|
|
35671
|
+
var fileSize = stat.size - (value.start ? value.start : 0);
|
|
35672
35672
|
callback(null, fileSize);
|
|
35673
35673
|
});
|
|
35674
35674
|
}
|
|
35675
|
-
} else if (
|
|
35676
|
-
callback(null,
|
|
35677
|
-
} else if (
|
|
35675
|
+
} else if (hasOwn(value, "httpVersion")) {
|
|
35676
|
+
callback(null, Number(value.headers["content-length"]));
|
|
35677
|
+
} else if (hasOwn(value, "httpModule")) {
|
|
35678
35678
|
value.on("response", function(response) {
|
|
35679
35679
|
value.pause();
|
|
35680
|
-
callback(null,
|
|
35680
|
+
callback(null, Number(response.headers["content-length"]));
|
|
35681
35681
|
});
|
|
35682
35682
|
value.resume();
|
|
35683
35683
|
} else {
|
|
@@ -35685,7 +35685,7 @@ var require_form_data = __commonJS({
|
|
|
35685
35685
|
}
|
|
35686
35686
|
};
|
|
35687
35687
|
FormData3.prototype._multiPartHeader = function(field, value, options) {
|
|
35688
|
-
if (typeof options.header
|
|
35688
|
+
if (typeof options.header === "string") {
|
|
35689
35689
|
return options.header;
|
|
35690
35690
|
}
|
|
35691
35691
|
var contentDisposition = this._getContentDisposition(value, options);
|
|
@@ -35697,12 +35697,12 @@ var require_form_data = __commonJS({
|
|
|
35697
35697
|
// if no content type. allow it to be empty array
|
|
35698
35698
|
"Content-Type": [].concat(contentType || [])
|
|
35699
35699
|
};
|
|
35700
|
-
if (typeof options.header
|
|
35700
|
+
if (typeof options.header === "object") {
|
|
35701
35701
|
populate(headers, options.header);
|
|
35702
35702
|
}
|
|
35703
35703
|
var header;
|
|
35704
35704
|
for (var prop in headers) {
|
|
35705
|
-
if (
|
|
35705
|
+
if (hasOwn(headers, prop)) {
|
|
35706
35706
|
header = headers[prop];
|
|
35707
35707
|
if (header == null) {
|
|
35708
35708
|
continue;
|
|
@@ -35718,34 +35718,33 @@ var require_form_data = __commonJS({
|
|
|
35718
35718
|
return "--" + this.getBoundary() + FormData3.LINE_BREAK + contents + FormData3.LINE_BREAK;
|
|
35719
35719
|
};
|
|
35720
35720
|
FormData3.prototype._getContentDisposition = function(value, options) {
|
|
35721
|
-
var filename
|
|
35721
|
+
var filename;
|
|
35722
35722
|
if (typeof options.filepath === "string") {
|
|
35723
35723
|
filename = path12.normalize(options.filepath).replace(/\\/g, "/");
|
|
35724
|
-
} else if (options.filename || value.name || value.path) {
|
|
35725
|
-
filename = path12.basename(options.filename || value.name || value.path);
|
|
35726
|
-
} else if (value.readable &&
|
|
35724
|
+
} else if (options.filename || value && (value.name || value.path)) {
|
|
35725
|
+
filename = path12.basename(options.filename || value && (value.name || value.path));
|
|
35726
|
+
} else if (value && value.readable && hasOwn(value, "httpVersion")) {
|
|
35727
35727
|
filename = path12.basename(value.client._httpMessage.path || "");
|
|
35728
35728
|
}
|
|
35729
35729
|
if (filename) {
|
|
35730
|
-
|
|
35730
|
+
return 'filename="' + filename + '"';
|
|
35731
35731
|
}
|
|
35732
|
-
return contentDisposition;
|
|
35733
35732
|
};
|
|
35734
35733
|
FormData3.prototype._getContentType = function(value, options) {
|
|
35735
35734
|
var contentType = options.contentType;
|
|
35736
|
-
if (!contentType && value.name) {
|
|
35735
|
+
if (!contentType && value && value.name) {
|
|
35737
35736
|
contentType = mime.lookup(value.name);
|
|
35738
35737
|
}
|
|
35739
|
-
if (!contentType && value.path) {
|
|
35738
|
+
if (!contentType && value && value.path) {
|
|
35740
35739
|
contentType = mime.lookup(value.path);
|
|
35741
35740
|
}
|
|
35742
|
-
if (!contentType && value.readable &&
|
|
35741
|
+
if (!contentType && value && value.readable && hasOwn(value, "httpVersion")) {
|
|
35743
35742
|
contentType = value.headers["content-type"];
|
|
35744
35743
|
}
|
|
35745
35744
|
if (!contentType && (options.filepath || options.filename)) {
|
|
35746
35745
|
contentType = mime.lookup(options.filepath || options.filename);
|
|
35747
35746
|
}
|
|
35748
|
-
if (!contentType && typeof value
|
|
35747
|
+
if (!contentType && value && typeof value === "object") {
|
|
35749
35748
|
contentType = FormData3.DEFAULT_CONTENT_TYPE;
|
|
35750
35749
|
}
|
|
35751
35750
|
return contentType;
|
|
@@ -35769,13 +35768,16 @@ var require_form_data = __commonJS({
|
|
|
35769
35768
|
"content-type": "multipart/form-data; boundary=" + this.getBoundary()
|
|
35770
35769
|
};
|
|
35771
35770
|
for (header in userHeaders) {
|
|
35772
|
-
if (
|
|
35771
|
+
if (hasOwn(userHeaders, header)) {
|
|
35773
35772
|
formHeaders[header.toLowerCase()] = userHeaders[header];
|
|
35774
35773
|
}
|
|
35775
35774
|
}
|
|
35776
35775
|
return formHeaders;
|
|
35777
35776
|
};
|
|
35778
35777
|
FormData3.prototype.setBoundary = function(boundary) {
|
|
35778
|
+
if (typeof boundary !== "string") {
|
|
35779
|
+
throw new TypeError("FormData boundary must be a string");
|
|
35780
|
+
}
|
|
35779
35781
|
this._boundary = boundary;
|
|
35780
35782
|
};
|
|
35781
35783
|
FormData3.prototype.getBoundary = function() {
|
|
@@ -35802,11 +35804,7 @@ var require_form_data = __commonJS({
|
|
|
35802
35804
|
return Buffer.concat([dataBuffer, Buffer.from(this._lastBoundary())]);
|
|
35803
35805
|
};
|
|
35804
35806
|
FormData3.prototype._generateBoundary = function() {
|
|
35805
|
-
|
|
35806
|
-
for (var i = 0; i < 24; i++) {
|
|
35807
|
-
boundary += Math.floor(Math.random() * 10).toString(16);
|
|
35808
|
-
}
|
|
35809
|
-
this._boundary = boundary;
|
|
35807
|
+
this._boundary = "--------------------------" + crypto2.randomBytes(12).toString("hex");
|
|
35810
35808
|
};
|
|
35811
35809
|
FormData3.prototype.getLengthSync = function() {
|
|
35812
35810
|
var knownLength = this._overheadLength + this._valueLength;
|
|
@@ -35846,8 +35844,10 @@ var require_form_data = __commonJS({
|
|
|
35846
35844
|
});
|
|
35847
35845
|
};
|
|
35848
35846
|
FormData3.prototype.submit = function(params, cb) {
|
|
35849
|
-
var request
|
|
35850
|
-
|
|
35847
|
+
var request;
|
|
35848
|
+
var options;
|
|
35849
|
+
var defaults2 = { method: "post" };
|
|
35850
|
+
if (typeof params === "string") {
|
|
35851
35851
|
params = parseUrl(params);
|
|
35852
35852
|
options = populate({
|
|
35853
35853
|
port: params.port,
|
|
@@ -35858,11 +35858,11 @@ var require_form_data = __commonJS({
|
|
|
35858
35858
|
} else {
|
|
35859
35859
|
options = populate(params, defaults2);
|
|
35860
35860
|
if (!options.port) {
|
|
35861
|
-
options.port = options.protocol
|
|
35861
|
+
options.port = options.protocol === "https:" ? 443 : 80;
|
|
35862
35862
|
}
|
|
35863
35863
|
}
|
|
35864
35864
|
options.headers = this.getHeaders(params.headers);
|
|
35865
|
-
if (options.protocol
|
|
35865
|
+
if (options.protocol === "https:") {
|
|
35866
35866
|
request = https2.request(options);
|
|
35867
35867
|
} else {
|
|
35868
35868
|
request = http2.request(options);
|
|
@@ -35901,6 +35901,7 @@ var require_form_data = __commonJS({
|
|
|
35901
35901
|
return "[object FormData]";
|
|
35902
35902
|
};
|
|
35903
35903
|
setToStringTag(FormData3, "FormData");
|
|
35904
|
+
module2.exports = FormData3;
|
|
35904
35905
|
}
|
|
35905
35906
|
});
|
|
35906
35907
|
|
|
@@ -35974,9 +35975,9 @@ var require_proxy_from_env = __commonJS({
|
|
|
35974
35975
|
}
|
|
35975
35976
|
});
|
|
35976
35977
|
|
|
35977
|
-
// ../../../node_modules/.pnpm/follow-redirects@1.15.
|
|
35978
|
+
// ../../../node_modules/.pnpm/follow-redirects@1.15.11_debug@4.3.7/node_modules/follow-redirects/debug.js
|
|
35978
35979
|
var require_debug2 = __commonJS({
|
|
35979
|
-
"../../../node_modules/.pnpm/follow-redirects@1.15.
|
|
35980
|
+
"../../../node_modules/.pnpm/follow-redirects@1.15.11_debug@4.3.7/node_modules/follow-redirects/debug.js"(exports, module2) {
|
|
35980
35981
|
"use strict";
|
|
35981
35982
|
var debug2;
|
|
35982
35983
|
module2.exports = function() {
|
|
@@ -35995,9 +35996,9 @@ var require_debug2 = __commonJS({
|
|
|
35995
35996
|
}
|
|
35996
35997
|
});
|
|
35997
35998
|
|
|
35998
|
-
// ../../../node_modules/.pnpm/follow-redirects@1.15.
|
|
35999
|
+
// ../../../node_modules/.pnpm/follow-redirects@1.15.11_debug@4.3.7/node_modules/follow-redirects/index.js
|
|
35999
36000
|
var require_follow_redirects = __commonJS({
|
|
36000
|
-
"../../../node_modules/.pnpm/follow-redirects@1.15.
|
|
36001
|
+
"../../../node_modules/.pnpm/follow-redirects@1.15.11_debug@4.3.7/node_modules/follow-redirects/index.js"(exports, module2) {
|
|
36001
36002
|
"use strict";
|
|
36002
36003
|
var url2 = require("url");
|
|
36003
36004
|
var URL2 = url2.URL;
|
|
@@ -36009,7 +36010,7 @@ var require_follow_redirects = __commonJS({
|
|
|
36009
36010
|
(function detectUnsupportedEnvironment() {
|
|
36010
36011
|
var looksLikeNode = typeof process !== "undefined";
|
|
36011
36012
|
var looksLikeBrowser = typeof window !== "undefined" && typeof document !== "undefined";
|
|
36012
|
-
var looksLikeV8 =
|
|
36013
|
+
var looksLikeV8 = isFunction3(Error.captureStackTrace);
|
|
36013
36014
|
if (!looksLikeNode && (looksLikeBrowser || !looksLikeV8)) {
|
|
36014
36015
|
console.warn("The follow-redirects package should be excluded from browser builds.");
|
|
36015
36016
|
}
|
|
@@ -36104,7 +36105,7 @@ var require_follow_redirects = __commonJS({
|
|
|
36104
36105
|
if (!isString3(data) && !isBuffer2(data)) {
|
|
36105
36106
|
throw new TypeError("data should be a string, Buffer or Uint8Array");
|
|
36106
36107
|
}
|
|
36107
|
-
if (
|
|
36108
|
+
if (isFunction3(encoding)) {
|
|
36108
36109
|
callback = encoding;
|
|
36109
36110
|
encoding = null;
|
|
36110
36111
|
}
|
|
@@ -36124,10 +36125,10 @@ var require_follow_redirects = __commonJS({
|
|
|
36124
36125
|
}
|
|
36125
36126
|
};
|
|
36126
36127
|
RedirectableRequest.prototype.end = function(data, encoding, callback) {
|
|
36127
|
-
if (
|
|
36128
|
+
if (isFunction3(data)) {
|
|
36128
36129
|
callback = data;
|
|
36129
36130
|
data = encoding = null;
|
|
36130
|
-
} else if (
|
|
36131
|
+
} else if (isFunction3(encoding)) {
|
|
36131
36132
|
callback = encoding;
|
|
36132
36133
|
encoding = null;
|
|
36133
36134
|
}
|
|
@@ -36328,7 +36329,7 @@ var require_follow_redirects = __commonJS({
|
|
|
36328
36329
|
if (redirectUrl.protocol !== currentUrlParts.protocol && redirectUrl.protocol !== "https:" || redirectUrl.host !== currentHost && !isSubdomain(redirectUrl.host, currentHost)) {
|
|
36329
36330
|
removeMatchingHeaders(/^(?:(?:proxy-)?authorization|cookie)$/i, this._options.headers);
|
|
36330
36331
|
}
|
|
36331
|
-
if (
|
|
36332
|
+
if (isFunction3(beforeRedirect)) {
|
|
36332
36333
|
var responseDetails = {
|
|
36333
36334
|
headers: response.headers,
|
|
36334
36335
|
statusCode
|
|
@@ -36363,7 +36364,7 @@ var require_follow_redirects = __commonJS({
|
|
|
36363
36364
|
options = validateUrl(input);
|
|
36364
36365
|
input = { protocol };
|
|
36365
36366
|
}
|
|
36366
|
-
if (
|
|
36367
|
+
if (isFunction3(options)) {
|
|
36367
36368
|
callback = options;
|
|
36368
36369
|
options = null;
|
|
36369
36370
|
}
|
|
@@ -36443,7 +36444,7 @@ var require_follow_redirects = __commonJS({
|
|
|
36443
36444
|
}
|
|
36444
36445
|
function createErrorType(code, message, baseClass) {
|
|
36445
36446
|
function CustomError(properties) {
|
|
36446
|
-
if (
|
|
36447
|
+
if (isFunction3(Error.captureStackTrace)) {
|
|
36447
36448
|
Error.captureStackTrace(this, this.constructor);
|
|
36448
36449
|
}
|
|
36449
36450
|
Object.assign(this, properties || {});
|
|
@@ -36478,7 +36479,7 @@ var require_follow_redirects = __commonJS({
|
|
|
36478
36479
|
function isString3(value) {
|
|
36479
36480
|
return typeof value === "string" || value instanceof String;
|
|
36480
36481
|
}
|
|
36481
|
-
function
|
|
36482
|
+
function isFunction3(value) {
|
|
36482
36483
|
return typeof value === "function";
|
|
36483
36484
|
}
|
|
36484
36485
|
function isBuffer2(value) {
|
|
@@ -42799,16 +42800,17 @@ var CATCHE_VALIDITY_PREIOD = 7 * 24 * 3600 * 1e3;
|
|
|
42799
42800
|
// ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.8/node_modules/@modern-js/codesmith-utils/dist/esm/semver.js
|
|
42800
42801
|
var import_semver = __toESM(require_semver2());
|
|
42801
42802
|
|
|
42802
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
42803
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/helpers/bind.js
|
|
42803
42804
|
function bind(fn, thisArg) {
|
|
42804
42805
|
return function wrap() {
|
|
42805
42806
|
return fn.apply(thisArg, arguments);
|
|
42806
42807
|
};
|
|
42807
42808
|
}
|
|
42808
42809
|
|
|
42809
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
42810
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/utils.js
|
|
42810
42811
|
var { toString } = Object.prototype;
|
|
42811
42812
|
var { getPrototypeOf } = Object;
|
|
42813
|
+
var { iterator, toStringTag } = Symbol;
|
|
42812
42814
|
var kindOf = ((cache) => (thing) => {
|
|
42813
42815
|
const str = toString.call(thing);
|
|
42814
42816
|
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
@@ -42843,7 +42845,17 @@ var isPlainObject = (val) => {
|
|
|
42843
42845
|
return false;
|
|
42844
42846
|
}
|
|
42845
42847
|
const prototype3 = getPrototypeOf(val);
|
|
42846
|
-
return (prototype3 === null || prototype3 === Object.prototype || Object.getPrototypeOf(prototype3) === null) && !(
|
|
42848
|
+
return (prototype3 === null || prototype3 === Object.prototype || Object.getPrototypeOf(prototype3) === null) && !(toStringTag in val) && !(iterator in val);
|
|
42849
|
+
};
|
|
42850
|
+
var isEmptyObject = (val) => {
|
|
42851
|
+
if (!isObject2(val) || isBuffer(val)) {
|
|
42852
|
+
return false;
|
|
42853
|
+
}
|
|
42854
|
+
try {
|
|
42855
|
+
return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;
|
|
42856
|
+
} catch (e) {
|
|
42857
|
+
return false;
|
|
42858
|
+
}
|
|
42847
42859
|
};
|
|
42848
42860
|
var isDate = kindOfTest("Date");
|
|
42849
42861
|
var isFile = kindOfTest("File");
|
|
@@ -42872,6 +42884,9 @@ function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
|
42872
42884
|
fn.call(null, obj[i], i, obj);
|
|
42873
42885
|
}
|
|
42874
42886
|
} else {
|
|
42887
|
+
if (isBuffer(obj)) {
|
|
42888
|
+
return;
|
|
42889
|
+
}
|
|
42875
42890
|
const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
|
|
42876
42891
|
const len = keys.length;
|
|
42877
42892
|
let key;
|
|
@@ -42882,6 +42897,9 @@ function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
|
42882
42897
|
}
|
|
42883
42898
|
}
|
|
42884
42899
|
function findKey(obj, key) {
|
|
42900
|
+
if (isBuffer(obj)) {
|
|
42901
|
+
return null;
|
|
42902
|
+
}
|
|
42885
42903
|
key = key.toLowerCase();
|
|
42886
42904
|
const keys = Object.keys(obj);
|
|
42887
42905
|
let i = keys.length;
|
|
@@ -42901,7 +42919,7 @@ var _global = (() => {
|
|
|
42901
42919
|
})();
|
|
42902
42920
|
var isContextDefined = (context) => !isUndefined(context) && context !== _global;
|
|
42903
42921
|
function merge() {
|
|
42904
|
-
const { caseless } = isContextDefined(this) && this || {};
|
|
42922
|
+
const { caseless, skipUndefined } = isContextDefined(this) && this || {};
|
|
42905
42923
|
const result = {};
|
|
42906
42924
|
const assignValue = (val, key) => {
|
|
42907
42925
|
const targetKey = caseless && findKey(result, key) || key;
|
|
@@ -42912,7 +42930,9 @@ function merge() {
|
|
|
42912
42930
|
} else if (isArray(val)) {
|
|
42913
42931
|
result[targetKey] = val.slice();
|
|
42914
42932
|
} else {
|
|
42915
|
-
|
|
42933
|
+
if (!skipUndefined || !isUndefined(val)) {
|
|
42934
|
+
result[targetKey] = val;
|
|
42935
|
+
}
|
|
42916
42936
|
}
|
|
42917
42937
|
};
|
|
42918
42938
|
for (let i = 0, l = arguments.length; i < l; i++) {
|
|
@@ -42995,10 +43015,10 @@ var isTypedArray = ((TypedArray) => {
|
|
|
42995
43015
|
};
|
|
42996
43016
|
})(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
|
|
42997
43017
|
var forEachEntry = (obj, fn) => {
|
|
42998
|
-
const generator = obj && obj[
|
|
42999
|
-
const
|
|
43018
|
+
const generator = obj && obj[iterator];
|
|
43019
|
+
const _iterator = generator.call(obj);
|
|
43000
43020
|
let result;
|
|
43001
|
-
while ((result =
|
|
43021
|
+
while ((result = _iterator.next()) && !result.done) {
|
|
43002
43022
|
const pair = result.value;
|
|
43003
43023
|
fn.call(obj, pair[0], pair[1]);
|
|
43004
43024
|
}
|
|
@@ -43069,7 +43089,7 @@ var toFiniteNumber = (value, defaultValue) => {
|
|
|
43069
43089
|
return value != null && Number.isFinite(value = +value) ? value : defaultValue;
|
|
43070
43090
|
};
|
|
43071
43091
|
function isSpecCompliantForm(thing) {
|
|
43072
|
-
return !!(thing && isFunction(thing.append) && thing[
|
|
43092
|
+
return !!(thing && isFunction(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]);
|
|
43073
43093
|
}
|
|
43074
43094
|
var toJSONObject = (obj) => {
|
|
43075
43095
|
const stack = new Array(10);
|
|
@@ -43078,6 +43098,9 @@ var toJSONObject = (obj) => {
|
|
|
43078
43098
|
if (stack.indexOf(source) >= 0) {
|
|
43079
43099
|
return;
|
|
43080
43100
|
}
|
|
43101
|
+
if (isBuffer(source)) {
|
|
43102
|
+
return source;
|
|
43103
|
+
}
|
|
43081
43104
|
if (!("toJSON" in source)) {
|
|
43082
43105
|
stack[i] = source;
|
|
43083
43106
|
const target = isArray(source) ? [] : {};
|
|
@@ -43115,6 +43138,7 @@ var _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
|
43115
43138
|
isFunction(_global.postMessage)
|
|
43116
43139
|
);
|
|
43117
43140
|
var asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
|
|
43141
|
+
var isIterable = (thing) => thing != null && isFunction(thing[iterator]);
|
|
43118
43142
|
var utils_default = {
|
|
43119
43143
|
isArray,
|
|
43120
43144
|
isArrayBuffer,
|
|
@@ -43126,6 +43150,7 @@ var utils_default = {
|
|
|
43126
43150
|
isBoolean,
|
|
43127
43151
|
isObject: isObject2,
|
|
43128
43152
|
isPlainObject,
|
|
43153
|
+
isEmptyObject,
|
|
43129
43154
|
isReadableStream,
|
|
43130
43155
|
isRequest,
|
|
43131
43156
|
isResponse,
|
|
@@ -43171,10 +43196,11 @@ var utils_default = {
|
|
|
43171
43196
|
isAsyncFn,
|
|
43172
43197
|
isThenable,
|
|
43173
43198
|
setImmediate: _setImmediate,
|
|
43174
|
-
asap
|
|
43199
|
+
asap,
|
|
43200
|
+
isIterable
|
|
43175
43201
|
};
|
|
43176
43202
|
|
|
43177
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
43203
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/core/AxiosError.js
|
|
43178
43204
|
function AxiosError(message, code, config, request, response) {
|
|
43179
43205
|
Error.call(this);
|
|
43180
43206
|
if (Error.captureStackTrace) {
|
|
@@ -43241,19 +43267,23 @@ AxiosError.from = (error, code, config, request, response, customProps) => {
|
|
|
43241
43267
|
}, (prop) => {
|
|
43242
43268
|
return prop !== "isAxiosError";
|
|
43243
43269
|
});
|
|
43244
|
-
|
|
43245
|
-
|
|
43246
|
-
axiosError
|
|
43270
|
+
const msg = error && error.message ? error.message : "Error";
|
|
43271
|
+
const errCode = code == null && error ? error.code : code;
|
|
43272
|
+
AxiosError.call(axiosError, msg, errCode, config, request, response);
|
|
43273
|
+
if (error && axiosError.cause == null) {
|
|
43274
|
+
Object.defineProperty(axiosError, "cause", { value: error, configurable: true });
|
|
43275
|
+
}
|
|
43276
|
+
axiosError.name = error && error.name || "Error";
|
|
43247
43277
|
customProps && Object.assign(axiosError, customProps);
|
|
43248
43278
|
return axiosError;
|
|
43249
43279
|
};
|
|
43250
43280
|
var AxiosError_default = AxiosError;
|
|
43251
43281
|
|
|
43252
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
43282
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/platform/node/classes/FormData.js
|
|
43253
43283
|
var import_form_data = __toESM(require_form_data());
|
|
43254
43284
|
var FormData_default = import_form_data.default;
|
|
43255
43285
|
|
|
43256
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
43286
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/helpers/toFormData.js
|
|
43257
43287
|
function isVisitable(thing) {
|
|
43258
43288
|
return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
|
|
43259
43289
|
}
|
|
@@ -43301,6 +43331,9 @@ function toFormData(obj, formData, options) {
|
|
|
43301
43331
|
if (utils_default.isDate(value)) {
|
|
43302
43332
|
return value.toISOString();
|
|
43303
43333
|
}
|
|
43334
|
+
if (utils_default.isBoolean(value)) {
|
|
43335
|
+
return value.toString();
|
|
43336
|
+
}
|
|
43304
43337
|
if (!useBlob && utils_default.isBlob(value)) {
|
|
43305
43338
|
throw new AxiosError_default("Blob is not supported. Use a Buffer instead.");
|
|
43306
43339
|
}
|
|
@@ -43368,7 +43401,7 @@ function toFormData(obj, formData, options) {
|
|
|
43368
43401
|
}
|
|
43369
43402
|
var toFormData_default = toFormData;
|
|
43370
43403
|
|
|
43371
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
43404
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
|
|
43372
43405
|
function encode(str) {
|
|
43373
43406
|
const charMap = {
|
|
43374
43407
|
"!": "%21",
|
|
@@ -43401,9 +43434,9 @@ prototype2.toString = function toString2(encoder) {
|
|
|
43401
43434
|
};
|
|
43402
43435
|
var AxiosURLSearchParams_default = AxiosURLSearchParams;
|
|
43403
43436
|
|
|
43404
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
43437
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/helpers/buildURL.js
|
|
43405
43438
|
function encode2(val) {
|
|
43406
|
-
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+")
|
|
43439
|
+
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
43407
43440
|
}
|
|
43408
43441
|
function buildURL(url2, params, options) {
|
|
43409
43442
|
if (!params) {
|
|
@@ -43432,7 +43465,7 @@ function buildURL(url2, params, options) {
|
|
|
43432
43465
|
return url2;
|
|
43433
43466
|
}
|
|
43434
43467
|
|
|
43435
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
43468
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/core/InterceptorManager.js
|
|
43436
43469
|
var InterceptorManager = class {
|
|
43437
43470
|
constructor() {
|
|
43438
43471
|
this.handlers = [];
|
|
@@ -43496,21 +43529,21 @@ var InterceptorManager = class {
|
|
|
43496
43529
|
};
|
|
43497
43530
|
var InterceptorManager_default = InterceptorManager;
|
|
43498
43531
|
|
|
43499
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
43532
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/defaults/transitional.js
|
|
43500
43533
|
var transitional_default = {
|
|
43501
43534
|
silentJSONParsing: true,
|
|
43502
43535
|
forcedJSONParsing: true,
|
|
43503
43536
|
clarifyTimeoutError: false
|
|
43504
43537
|
};
|
|
43505
43538
|
|
|
43506
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
43539
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/platform/node/index.js
|
|
43507
43540
|
var import_crypto = __toESM(require("crypto"));
|
|
43508
43541
|
|
|
43509
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
43542
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
|
|
43510
43543
|
var import_url = __toESM(require("url"));
|
|
43511
43544
|
var URLSearchParams_default = import_url.default.URLSearchParams;
|
|
43512
43545
|
|
|
43513
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
43546
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/platform/node/index.js
|
|
43514
43547
|
var ALPHA = "abcdefghijklmnopqrstuvwxyz";
|
|
43515
43548
|
var DIGIT = "0123456789";
|
|
43516
43549
|
var ALPHABET = {
|
|
@@ -43540,7 +43573,7 @@ var node_default = {
|
|
|
43540
43573
|
protocols: ["http", "https", "file", "data"]
|
|
43541
43574
|
};
|
|
43542
43575
|
|
|
43543
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
43576
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/platform/common/utils.js
|
|
43544
43577
|
var utils_exports = {};
|
|
43545
43578
|
__export(utils_exports, {
|
|
43546
43579
|
hasBrowserEnv: () => hasBrowserEnv,
|
|
@@ -43558,12 +43591,12 @@ var hasStandardBrowserWebWorkerEnv = (() => {
|
|
|
43558
43591
|
})();
|
|
43559
43592
|
var origin = hasBrowserEnv && window.location.href || "http://localhost";
|
|
43560
43593
|
|
|
43561
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
43594
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/platform/index.js
|
|
43562
43595
|
var platform_default = __spreadValues(__spreadValues({}, utils_exports), node_default);
|
|
43563
43596
|
|
|
43564
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
43597
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
43565
43598
|
function toURLEncodedForm(data, options) {
|
|
43566
|
-
return toFormData_default(data, new platform_default.classes.URLSearchParams(),
|
|
43599
|
+
return toFormData_default(data, new platform_default.classes.URLSearchParams(), __spreadValues({
|
|
43567
43600
|
visitor: function(value, key, path12, helpers) {
|
|
43568
43601
|
if (platform_default.isNode && utils_default.isBuffer(value)) {
|
|
43569
43602
|
this.append(key, value.toString("base64"));
|
|
@@ -43574,7 +43607,7 @@ function toURLEncodedForm(data, options) {
|
|
|
43574
43607
|
}, options));
|
|
43575
43608
|
}
|
|
43576
43609
|
|
|
43577
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
43610
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/helpers/formDataToJSON.js
|
|
43578
43611
|
function parsePropPath(name) {
|
|
43579
43612
|
return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
|
|
43580
43613
|
return match[0] === "[]" ? "" : match[1] || match[0];
|
|
@@ -43628,7 +43661,7 @@ function formDataToJSON(formData) {
|
|
|
43628
43661
|
}
|
|
43629
43662
|
var formDataToJSON_default = formDataToJSON;
|
|
43630
43663
|
|
|
43631
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
43664
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/defaults/index.js
|
|
43632
43665
|
function stringifySafely(rawValue, parser, encoder) {
|
|
43633
43666
|
if (utils_default.isString(rawValue)) {
|
|
43634
43667
|
try {
|
|
@@ -43697,7 +43730,7 @@ var defaults = {
|
|
|
43697
43730
|
const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
|
|
43698
43731
|
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
43699
43732
|
try {
|
|
43700
|
-
return JSON.parse(data);
|
|
43733
|
+
return JSON.parse(data, this.parseReviver);
|
|
43701
43734
|
} catch (e) {
|
|
43702
43735
|
if (strictJSONParsing) {
|
|
43703
43736
|
if (e.name === "SyntaxError") {
|
|
@@ -43737,7 +43770,7 @@ utils_default.forEach(["delete", "get", "head", "post", "put", "patch"], (method
|
|
|
43737
43770
|
});
|
|
43738
43771
|
var defaults_default = defaults;
|
|
43739
43772
|
|
|
43740
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
43773
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/helpers/parseHeaders.js
|
|
43741
43774
|
var ignoreDuplicateOf = utils_default.toObjectSet([
|
|
43742
43775
|
"age",
|
|
43743
43776
|
"authorization",
|
|
@@ -43782,7 +43815,7 @@ var parseHeaders_default = (rawHeaders) => {
|
|
|
43782
43815
|
return parsed;
|
|
43783
43816
|
};
|
|
43784
43817
|
|
|
43785
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
43818
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/core/AxiosHeaders.js
|
|
43786
43819
|
var $internals = Symbol("internals");
|
|
43787
43820
|
function normalizeHeader(header) {
|
|
43788
43821
|
return header && String(header).trim().toLowerCase();
|
|
@@ -43856,10 +43889,15 @@ var AxiosHeaders = class {
|
|
|
43856
43889
|
setHeaders(header, valueOrRewrite);
|
|
43857
43890
|
} else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
43858
43891
|
setHeaders(parseHeaders_default(header), valueOrRewrite);
|
|
43859
|
-
} else if (utils_default.
|
|
43860
|
-
|
|
43861
|
-
|
|
43892
|
+
} else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
|
|
43893
|
+
let obj = {}, dest, key;
|
|
43894
|
+
for (const entry of header) {
|
|
43895
|
+
if (!utils_default.isArray(entry)) {
|
|
43896
|
+
throw TypeError("Object iterator must return a key-value pair");
|
|
43897
|
+
}
|
|
43898
|
+
obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
|
|
43862
43899
|
}
|
|
43900
|
+
setHeaders(obj, valueOrRewrite);
|
|
43863
43901
|
} else {
|
|
43864
43902
|
header != null && setHeader(valueOrRewrite, header, rewrite);
|
|
43865
43903
|
}
|
|
@@ -43963,6 +44001,9 @@ var AxiosHeaders = class {
|
|
|
43963
44001
|
toString() {
|
|
43964
44002
|
return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
|
|
43965
44003
|
}
|
|
44004
|
+
getSetCookie() {
|
|
44005
|
+
return this.get("set-cookie") || [];
|
|
44006
|
+
}
|
|
43966
44007
|
get [Symbol.toStringTag]() {
|
|
43967
44008
|
return "AxiosHeaders";
|
|
43968
44009
|
}
|
|
@@ -44004,7 +44045,7 @@ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
|
44004
44045
|
utils_default.freezeMethods(AxiosHeaders);
|
|
44005
44046
|
var AxiosHeaders_default = AxiosHeaders;
|
|
44006
44047
|
|
|
44007
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
44048
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/core/transformData.js
|
|
44008
44049
|
function transformData(fns, response) {
|
|
44009
44050
|
const config = this || defaults_default;
|
|
44010
44051
|
const context = response || config;
|
|
@@ -44017,12 +44058,12 @@ function transformData(fns, response) {
|
|
|
44017
44058
|
return data;
|
|
44018
44059
|
}
|
|
44019
44060
|
|
|
44020
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
44061
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/cancel/isCancel.js
|
|
44021
44062
|
function isCancel(value) {
|
|
44022
44063
|
return !!(value && value.__CANCEL__);
|
|
44023
44064
|
}
|
|
44024
44065
|
|
|
44025
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
44066
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/cancel/CanceledError.js
|
|
44026
44067
|
function CanceledError(message, config, request) {
|
|
44027
44068
|
AxiosError_default.call(this, message == null ? "canceled" : message, AxiosError_default.ERR_CANCELED, config, request);
|
|
44028
44069
|
this.name = "CanceledError";
|
|
@@ -44032,7 +44073,7 @@ utils_default.inherits(CanceledError, AxiosError_default, {
|
|
|
44032
44073
|
});
|
|
44033
44074
|
var CanceledError_default = CanceledError;
|
|
44034
44075
|
|
|
44035
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
44076
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/core/settle.js
|
|
44036
44077
|
function settle(resolve, reject, response) {
|
|
44037
44078
|
const validateStatus2 = response.config.validateStatus;
|
|
44038
44079
|
if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
|
|
@@ -44048,17 +44089,17 @@ function settle(resolve, reject, response) {
|
|
|
44048
44089
|
}
|
|
44049
44090
|
}
|
|
44050
44091
|
|
|
44051
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
44092
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
44052
44093
|
function isAbsoluteURL(url2) {
|
|
44053
44094
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
|
|
44054
44095
|
}
|
|
44055
44096
|
|
|
44056
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
44097
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/helpers/combineURLs.js
|
|
44057
44098
|
function combineURLs(baseURL, relativeURL) {
|
|
44058
44099
|
return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
|
|
44059
44100
|
}
|
|
44060
44101
|
|
|
44061
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
44102
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/core/buildFullPath.js
|
|
44062
44103
|
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
44063
44104
|
let isRelativeUrl = !isAbsoluteURL(requestedURL);
|
|
44064
44105
|
if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
|
|
@@ -44067,7 +44108,7 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
|
44067
44108
|
return requestedURL;
|
|
44068
44109
|
}
|
|
44069
44110
|
|
|
44070
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
44111
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/adapters/http.js
|
|
44071
44112
|
var import_proxy_from_env = __toESM(require_proxy_from_env());
|
|
44072
44113
|
var import_http = __toESM(require("http"));
|
|
44073
44114
|
var import_https = __toESM(require("https"));
|
|
@@ -44075,16 +44116,16 @@ var import_util2 = __toESM(require("util"));
|
|
|
44075
44116
|
var import_follow_redirects = __toESM(require_follow_redirects());
|
|
44076
44117
|
var import_zlib = __toESM(require("zlib"));
|
|
44077
44118
|
|
|
44078
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
44079
|
-
var VERSION = "1.
|
|
44119
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/env/data.js
|
|
44120
|
+
var VERSION = "1.12.0";
|
|
44080
44121
|
|
|
44081
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
44122
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/helpers/parseProtocol.js
|
|
44082
44123
|
function parseProtocol(url2) {
|
|
44083
44124
|
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2);
|
|
44084
44125
|
return match && match[1] || "";
|
|
44085
44126
|
}
|
|
44086
44127
|
|
|
44087
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
44128
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/helpers/fromDataURI.js
|
|
44088
44129
|
var DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;
|
|
44089
44130
|
function fromDataURI(uri, asBlob, options) {
|
|
44090
44131
|
const _Blob = options && options.Blob || platform_default.classes.Blob;
|
|
@@ -44113,10 +44154,10 @@ function fromDataURI(uri, asBlob, options) {
|
|
|
44113
44154
|
throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
|
|
44114
44155
|
}
|
|
44115
44156
|
|
|
44116
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
44157
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/adapters/http.js
|
|
44117
44158
|
var import_stream4 = __toESM(require("stream"));
|
|
44118
44159
|
|
|
44119
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
44160
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/helpers/AxiosTransformStream.js
|
|
44120
44161
|
var import_stream = __toESM(require("stream"));
|
|
44121
44162
|
var kInternals = Symbol("internals");
|
|
44122
44163
|
var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
@@ -44231,14 +44272,14 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
|
44231
44272
|
};
|
|
44232
44273
|
var AxiosTransformStream_default = AxiosTransformStream;
|
|
44233
44274
|
|
|
44234
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
44275
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/adapters/http.js
|
|
44235
44276
|
var import_events = require("events");
|
|
44236
44277
|
|
|
44237
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
44278
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/helpers/formDataToStream.js
|
|
44238
44279
|
var import_util = __toESM(require("util"));
|
|
44239
44280
|
var import_stream2 = require("stream");
|
|
44240
44281
|
|
|
44241
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
44282
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/helpers/readBlob.js
|
|
44242
44283
|
var { asyncIterator } = Symbol;
|
|
44243
44284
|
var readBlob = function(blob) {
|
|
44244
44285
|
return __asyncGenerator(this, null, function* () {
|
|
@@ -44255,7 +44296,7 @@ var readBlob = function(blob) {
|
|
|
44255
44296
|
};
|
|
44256
44297
|
var readBlob_default = readBlob;
|
|
44257
44298
|
|
|
44258
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
44299
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/helpers/formDataToStream.js
|
|
44259
44300
|
var BOUNDARY_ALPHABET = platform_default.ALPHABET.ALPHA_DIGIT + "-_";
|
|
44260
44301
|
var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new import_util.default.TextEncoder();
|
|
44261
44302
|
var CRLF = "\r\n";
|
|
@@ -44310,7 +44351,7 @@ var formDataToStream = (form, headersHandler, options) => {
|
|
|
44310
44351
|
throw Error("boundary must be 10-70 characters long");
|
|
44311
44352
|
}
|
|
44312
44353
|
const boundaryBytes = textEncoder.encode("--" + boundary + CRLF);
|
|
44313
|
-
const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF
|
|
44354
|
+
const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF);
|
|
44314
44355
|
let contentLength = footerBytes.byteLength;
|
|
44315
44356
|
const parts = Array.from(form.entries()).map(([name, value]) => {
|
|
44316
44357
|
const part = new FormDataPart(name, value);
|
|
@@ -44338,7 +44379,7 @@ var formDataToStream = (form, headersHandler, options) => {
|
|
|
44338
44379
|
};
|
|
44339
44380
|
var formDataToStream_default = formDataToStream;
|
|
44340
44381
|
|
|
44341
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
44382
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
|
|
44342
44383
|
var import_stream3 = __toESM(require("stream"));
|
|
44343
44384
|
var ZlibHeaderTransformStream = class extends import_stream3.default.Transform {
|
|
44344
44385
|
__transform(chunk, encoding, callback) {
|
|
@@ -44360,7 +44401,7 @@ var ZlibHeaderTransformStream = class extends import_stream3.default.Transform {
|
|
|
44360
44401
|
};
|
|
44361
44402
|
var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
|
|
44362
44403
|
|
|
44363
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
44404
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/helpers/callbackify.js
|
|
44364
44405
|
var callbackify = (fn, reducer) => {
|
|
44365
44406
|
return utils_default.isAsyncFn(fn) ? function(...args) {
|
|
44366
44407
|
const cb = args.pop();
|
|
@@ -44375,7 +44416,7 @@ var callbackify = (fn, reducer) => {
|
|
|
44375
44416
|
};
|
|
44376
44417
|
var callbackify_default = callbackify;
|
|
44377
44418
|
|
|
44378
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
44419
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/helpers/speedometer.js
|
|
44379
44420
|
function speedometer(samplesCount, min) {
|
|
44380
44421
|
samplesCount = samplesCount || 10;
|
|
44381
44422
|
const bytes = new Array(samplesCount);
|
|
@@ -44411,7 +44452,7 @@ function speedometer(samplesCount, min) {
|
|
|
44411
44452
|
}
|
|
44412
44453
|
var speedometer_default = speedometer;
|
|
44413
44454
|
|
|
44414
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
44455
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/helpers/throttle.js
|
|
44415
44456
|
function throttle(fn, freq) {
|
|
44416
44457
|
let timestamp = 0;
|
|
44417
44458
|
let threshold = 1e3 / freq;
|
|
@@ -44424,7 +44465,7 @@ function throttle(fn, freq) {
|
|
|
44424
44465
|
clearTimeout(timer);
|
|
44425
44466
|
timer = null;
|
|
44426
44467
|
}
|
|
44427
|
-
fn
|
|
44468
|
+
fn(...args);
|
|
44428
44469
|
};
|
|
44429
44470
|
const throttled = (...args) => {
|
|
44430
44471
|
const now = Date.now();
|
|
@@ -44446,7 +44487,7 @@ function throttle(fn, freq) {
|
|
|
44446
44487
|
}
|
|
44447
44488
|
var throttle_default = throttle;
|
|
44448
44489
|
|
|
44449
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
44490
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/helpers/progressEventReducer.js
|
|
44450
44491
|
var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
44451
44492
|
let bytesNotified = 0;
|
|
44452
44493
|
const _speedometer = speedometer_default(50, 250);
|
|
@@ -44481,7 +44522,61 @@ var progressEventDecorator = (total, throttled) => {
|
|
|
44481
44522
|
};
|
|
44482
44523
|
var asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
|
|
44483
44524
|
|
|
44484
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
44525
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
|
|
44526
|
+
function estimateDataURLDecodedBytes(url2) {
|
|
44527
|
+
if (!url2 || typeof url2 !== "string")
|
|
44528
|
+
return 0;
|
|
44529
|
+
if (!url2.startsWith("data:"))
|
|
44530
|
+
return 0;
|
|
44531
|
+
const comma = url2.indexOf(",");
|
|
44532
|
+
if (comma < 0)
|
|
44533
|
+
return 0;
|
|
44534
|
+
const meta = url2.slice(5, comma);
|
|
44535
|
+
const body = url2.slice(comma + 1);
|
|
44536
|
+
const isBase64 = /;base64/i.test(meta);
|
|
44537
|
+
if (isBase64) {
|
|
44538
|
+
let effectiveLen = body.length;
|
|
44539
|
+
const len = body.length;
|
|
44540
|
+
for (let i = 0; i < len; i++) {
|
|
44541
|
+
if (body.charCodeAt(i) === 37 && i + 2 < len) {
|
|
44542
|
+
const a = body.charCodeAt(i + 1);
|
|
44543
|
+
const b = body.charCodeAt(i + 2);
|
|
44544
|
+
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);
|
|
44545
|
+
if (isHex) {
|
|
44546
|
+
effectiveLen -= 2;
|
|
44547
|
+
i += 2;
|
|
44548
|
+
}
|
|
44549
|
+
}
|
|
44550
|
+
}
|
|
44551
|
+
let pad = 0;
|
|
44552
|
+
let idx = len - 1;
|
|
44553
|
+
const tailIsPct3D = (j) => j >= 2 && body.charCodeAt(j - 2) === 37 && // '%'
|
|
44554
|
+
body.charCodeAt(j - 1) === 51 && // '3'
|
|
44555
|
+
(body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100);
|
|
44556
|
+
if (idx >= 0) {
|
|
44557
|
+
if (body.charCodeAt(idx) === 61) {
|
|
44558
|
+
pad++;
|
|
44559
|
+
idx--;
|
|
44560
|
+
} else if (tailIsPct3D(idx)) {
|
|
44561
|
+
pad++;
|
|
44562
|
+
idx -= 3;
|
|
44563
|
+
}
|
|
44564
|
+
}
|
|
44565
|
+
if (pad === 1 && idx >= 0) {
|
|
44566
|
+
if (body.charCodeAt(idx) === 61) {
|
|
44567
|
+
pad++;
|
|
44568
|
+
} else if (tailIsPct3D(idx)) {
|
|
44569
|
+
pad++;
|
|
44570
|
+
}
|
|
44571
|
+
}
|
|
44572
|
+
const groups = Math.floor(effectiveLen / 4);
|
|
44573
|
+
const bytes = groups * 3 - (pad || 0);
|
|
44574
|
+
return bytes > 0 ? bytes : 0;
|
|
44575
|
+
}
|
|
44576
|
+
return Buffer.byteLength(body, "utf8");
|
|
44577
|
+
}
|
|
44578
|
+
|
|
44579
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/adapters/http.js
|
|
44485
44580
|
var zlibOptions = {
|
|
44486
44581
|
flush: import_zlib.default.constants.Z_SYNC_FLUSH,
|
|
44487
44582
|
finishFlush: import_zlib.default.constants.Z_SYNC_FLUSH
|
|
@@ -44625,6 +44720,17 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
44625
44720
|
const parsed = new URL(fullPath, platform_default.hasBrowserEnv ? platform_default.origin : void 0);
|
|
44626
44721
|
const protocol = parsed.protocol || supportedProtocols[0];
|
|
44627
44722
|
if (protocol === "data:") {
|
|
44723
|
+
if (config.maxContentLength > -1) {
|
|
44724
|
+
const dataUrl = String(config.url || fullPath || "");
|
|
44725
|
+
const estimated = estimateDataURLDecodedBytes(dataUrl);
|
|
44726
|
+
if (estimated > config.maxContentLength) {
|
|
44727
|
+
return reject(new AxiosError_default(
|
|
44728
|
+
"maxContentLength size of " + config.maxContentLength + " exceeded",
|
|
44729
|
+
AxiosError_default.ERR_BAD_RESPONSE,
|
|
44730
|
+
config
|
|
44731
|
+
));
|
|
44732
|
+
}
|
|
44733
|
+
}
|
|
44628
44734
|
let convertedData;
|
|
44629
44735
|
if (method !== "GET") {
|
|
44630
44736
|
return settle(resolve, reject, {
|
|
@@ -44987,7 +45093,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
44987
45093
|
});
|
|
44988
45094
|
};
|
|
44989
45095
|
|
|
44990
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
45096
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/helpers/isURLSameOrigin.js
|
|
44991
45097
|
var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? ((origin2, isMSIE) => (url2) => {
|
|
44992
45098
|
url2 = new URL(url2, platform_default.origin);
|
|
44993
45099
|
return origin2.protocol === url2.protocol && origin2.host === url2.host && (isMSIE || origin2.port === url2.port);
|
|
@@ -44996,7 +45102,7 @@ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? ((origin2
|
|
|
44996
45102
|
platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)
|
|
44997
45103
|
) : () => true;
|
|
44998
45104
|
|
|
44999
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
45105
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/helpers/cookies.js
|
|
45000
45106
|
var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
45001
45107
|
// Standard browser envs support document.cookie
|
|
45002
45108
|
{
|
|
@@ -45029,7 +45135,7 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
|
45029
45135
|
}
|
|
45030
45136
|
);
|
|
45031
45137
|
|
|
45032
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
45138
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/core/mergeConfig.js
|
|
45033
45139
|
var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? __spreadValues({}, thing) : thing;
|
|
45034
45140
|
function mergeConfig(config1, config2) {
|
|
45035
45141
|
config2 = config2 || {};
|
|
@@ -45101,7 +45207,7 @@ function mergeConfig(config1, config2) {
|
|
|
45101
45207
|
validateStatus: mergeDirectKeys,
|
|
45102
45208
|
headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
|
|
45103
45209
|
};
|
|
45104
|
-
utils_default.forEach(Object.keys(
|
|
45210
|
+
utils_default.forEach(Object.keys(__spreadValues(__spreadValues({}, config1), config2)), function computeConfigValue(prop) {
|
|
45105
45211
|
const merge2 = mergeMap[prop] || mergeDeepProperties;
|
|
45106
45212
|
const configValue = merge2(config1[prop], config2[prop], prop);
|
|
45107
45213
|
utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
|
|
@@ -45109,7 +45215,7 @@ function mergeConfig(config1, config2) {
|
|
|
45109
45215
|
return config;
|
|
45110
45216
|
}
|
|
45111
45217
|
|
|
45112
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
45218
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/helpers/resolveConfig.js
|
|
45113
45219
|
var resolveConfig_default = (config) => {
|
|
45114
45220
|
const newConfig = mergeConfig({}, config);
|
|
45115
45221
|
let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
|
|
@@ -45121,13 +45227,17 @@ var resolveConfig_default = (config) => {
|
|
|
45121
45227
|
"Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : ""))
|
|
45122
45228
|
);
|
|
45123
45229
|
}
|
|
45124
|
-
let contentType;
|
|
45125
45230
|
if (utils_default.isFormData(data)) {
|
|
45126
45231
|
if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
|
|
45127
45232
|
headers.setContentType(void 0);
|
|
45128
|
-
} else if ((
|
|
45129
|
-
const
|
|
45130
|
-
|
|
45233
|
+
} else if (utils_default.isFunction(data.getHeaders)) {
|
|
45234
|
+
const formHeaders = data.getHeaders();
|
|
45235
|
+
const allowedHeaders = ["content-type", "content-length"];
|
|
45236
|
+
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
45237
|
+
if (allowedHeaders.includes(key.toLowerCase())) {
|
|
45238
|
+
headers.set(key, val);
|
|
45239
|
+
}
|
|
45240
|
+
});
|
|
45131
45241
|
}
|
|
45132
45242
|
}
|
|
45133
45243
|
if (platform_default.hasStandardBrowserEnv) {
|
|
@@ -45142,7 +45252,7 @@ var resolveConfig_default = (config) => {
|
|
|
45142
45252
|
return newConfig;
|
|
45143
45253
|
};
|
|
45144
45254
|
|
|
45145
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
45255
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/adapters/xhr.js
|
|
45146
45256
|
var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
|
|
45147
45257
|
var xhr_default = isXHRAdapterSupported && function(config) {
|
|
45148
45258
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
@@ -45207,8 +45317,11 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
45207
45317
|
reject(new AxiosError_default("Request aborted", AxiosError_default.ECONNABORTED, config, request));
|
|
45208
45318
|
request = null;
|
|
45209
45319
|
};
|
|
45210
|
-
request.onerror = function handleError() {
|
|
45211
|
-
|
|
45320
|
+
request.onerror = function handleError(event) {
|
|
45321
|
+
const msg = event && event.message ? event.message : "Network Error";
|
|
45322
|
+
const err = new AxiosError_default(msg, AxiosError_default.ERR_NETWORK, config, request);
|
|
45323
|
+
err.event = event || null;
|
|
45324
|
+
reject(err);
|
|
45212
45325
|
request = null;
|
|
45213
45326
|
};
|
|
45214
45327
|
request.ontimeout = function handleTimeout() {
|
|
@@ -45269,7 +45382,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
45269
45382
|
});
|
|
45270
45383
|
};
|
|
45271
45384
|
|
|
45272
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
45385
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/helpers/composeSignals.js
|
|
45273
45386
|
var composeSignals = (signals, timeout) => {
|
|
45274
45387
|
const { length } = signals = signals ? signals.filter(Boolean) : [];
|
|
45275
45388
|
if (timeout || length) {
|
|
@@ -45305,7 +45418,7 @@ var composeSignals = (signals, timeout) => {
|
|
|
45305
45418
|
};
|
|
45306
45419
|
var composeSignals_default = composeSignals;
|
|
45307
45420
|
|
|
45308
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
45421
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/helpers/trackStream.js
|
|
45309
45422
|
var streamChunk = function* (chunk, chunkSize) {
|
|
45310
45423
|
let len = chunk.byteLength;
|
|
45311
45424
|
if (!chunkSize || len < chunkSize) {
|
|
@@ -45360,7 +45473,7 @@ var readStream = function(stream4) {
|
|
|
45360
45473
|
});
|
|
45361
45474
|
};
|
|
45362
45475
|
var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
|
|
45363
|
-
const
|
|
45476
|
+
const iterator2 = readBytes(stream4, chunkSize);
|
|
45364
45477
|
let bytes = 0;
|
|
45365
45478
|
let done;
|
|
45366
45479
|
let _onFinish = (e) => {
|
|
@@ -45373,7 +45486,7 @@ var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
|
|
|
45373
45486
|
pull(controller) {
|
|
45374
45487
|
return __async(this, null, function* () {
|
|
45375
45488
|
try {
|
|
45376
|
-
const { done: done2, value } = yield
|
|
45489
|
+
const { done: done2, value } = yield iterator2.next();
|
|
45377
45490
|
if (done2) {
|
|
45378
45491
|
_onFinish();
|
|
45379
45492
|
controller.close();
|
|
@@ -45393,19 +45506,25 @@ var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
|
|
|
45393
45506
|
},
|
|
45394
45507
|
cancel(reason) {
|
|
45395
45508
|
_onFinish(reason);
|
|
45396
|
-
return
|
|
45509
|
+
return iterator2.return();
|
|
45397
45510
|
}
|
|
45398
45511
|
}, {
|
|
45399
45512
|
highWaterMark: 2
|
|
45400
45513
|
});
|
|
45401
45514
|
};
|
|
45402
45515
|
|
|
45403
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
45404
|
-
var
|
|
45405
|
-
var
|
|
45406
|
-
var
|
|
45407
|
-
|
|
45408
|
-
|
|
45516
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/adapters/fetch.js
|
|
45517
|
+
var DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
45518
|
+
var { isFunction: isFunction2 } = utils_default;
|
|
45519
|
+
var globalFetchAPI = (({ fetch, Request, Response }) => ({
|
|
45520
|
+
fetch,
|
|
45521
|
+
Request,
|
|
45522
|
+
Response
|
|
45523
|
+
}))(utils_default.global);
|
|
45524
|
+
var {
|
|
45525
|
+
ReadableStream: ReadableStream2,
|
|
45526
|
+
TextEncoder: TextEncoder2
|
|
45527
|
+
} = utils_default.global;
|
|
45409
45528
|
var test = (fn, ...args) => {
|
|
45410
45529
|
try {
|
|
45411
45530
|
return !!fn(...args);
|
|
@@ -45413,163 +45532,203 @@ var test = (fn, ...args) => {
|
|
|
45413
45532
|
return false;
|
|
45414
45533
|
}
|
|
45415
45534
|
};
|
|
45416
|
-
var
|
|
45417
|
-
|
|
45418
|
-
const
|
|
45419
|
-
|
|
45420
|
-
|
|
45421
|
-
|
|
45422
|
-
|
|
45423
|
-
return "half";
|
|
45424
|
-
}
|
|
45425
|
-
}).headers.has("Content-Type");
|
|
45426
|
-
return duplexAccessed && !hasContentType;
|
|
45427
|
-
});
|
|
45428
|
-
var DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
45429
|
-
var supportsResponseStream = isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
|
|
45430
|
-
var resolvers = {
|
|
45431
|
-
stream: supportsResponseStream && ((res) => res.body)
|
|
45432
|
-
};
|
|
45433
|
-
isFetchSupported && ((res) => {
|
|
45434
|
-
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type) => {
|
|
45435
|
-
!resolvers[type] && (resolvers[type] = utils_default.isFunction(res[type]) ? (res2) => res2[type]() : (_, config) => {
|
|
45436
|
-
throw new AxiosError_default(`Response type '${type}' is not supported`, AxiosError_default.ERR_NOT_SUPPORT, config);
|
|
45437
|
-
});
|
|
45438
|
-
});
|
|
45439
|
-
})(new Response());
|
|
45440
|
-
var getBodyLength = (body) => __async(void 0, null, function* () {
|
|
45441
|
-
if (body == null) {
|
|
45442
|
-
return 0;
|
|
45443
|
-
}
|
|
45444
|
-
if (utils_default.isBlob(body)) {
|
|
45445
|
-
return body.size;
|
|
45535
|
+
var factory = (env) => {
|
|
45536
|
+
const { fetch, Request, Response } = Object.assign({}, globalFetchAPI, env);
|
|
45537
|
+
const isFetchSupported = isFunction2(fetch);
|
|
45538
|
+
const isRequestSupported = isFunction2(Request);
|
|
45539
|
+
const isResponseSupported = isFunction2(Response);
|
|
45540
|
+
if (!isFetchSupported) {
|
|
45541
|
+
return false;
|
|
45446
45542
|
}
|
|
45447
|
-
|
|
45448
|
-
|
|
45543
|
+
const isReadableStreamSupported = isFetchSupported && isFunction2(ReadableStream2);
|
|
45544
|
+
const encodeText = isFetchSupported && (typeof TextEncoder2 === "function" ? ((encoder) => (str) => encoder.encode(str))(new TextEncoder2()) : (str) => __async(void 0, null, function* () {
|
|
45545
|
+
return new Uint8Array(yield new Request(str).arrayBuffer());
|
|
45546
|
+
}));
|
|
45547
|
+
const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
|
|
45548
|
+
let duplexAccessed = false;
|
|
45549
|
+
const hasContentType = new Request(platform_default.origin, {
|
|
45550
|
+
body: new ReadableStream2(),
|
|
45449
45551
|
method: "POST",
|
|
45450
|
-
|
|
45451
|
-
|
|
45452
|
-
|
|
45453
|
-
|
|
45454
|
-
|
|
45455
|
-
return
|
|
45456
|
-
}
|
|
45457
|
-
if (utils_default.isURLSearchParams(body)) {
|
|
45458
|
-
body = body + "";
|
|
45459
|
-
}
|
|
45460
|
-
if (utils_default.isString(body)) {
|
|
45461
|
-
return (yield encodeText(body)).byteLength;
|
|
45462
|
-
}
|
|
45463
|
-
});
|
|
45464
|
-
var resolveBodyLength = (headers, body) => __async(void 0, null, function* () {
|
|
45465
|
-
const length = utils_default.toFiniteNumber(headers.getContentLength());
|
|
45466
|
-
return length == null ? getBodyLength(body) : length;
|
|
45467
|
-
});
|
|
45468
|
-
var fetch_default = isFetchSupported && ((config) => __async(void 0, null, function* () {
|
|
45469
|
-
let {
|
|
45470
|
-
url: url2,
|
|
45471
|
-
method,
|
|
45472
|
-
data,
|
|
45473
|
-
signal,
|
|
45474
|
-
cancelToken,
|
|
45475
|
-
timeout,
|
|
45476
|
-
onDownloadProgress,
|
|
45477
|
-
onUploadProgress,
|
|
45478
|
-
responseType,
|
|
45479
|
-
headers,
|
|
45480
|
-
withCredentials = "same-origin",
|
|
45481
|
-
fetchOptions
|
|
45482
|
-
} = resolveConfig_default(config);
|
|
45483
|
-
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
45484
|
-
let composedSignal = composeSignals_default([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
|
45485
|
-
let request;
|
|
45486
|
-
const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
|
|
45487
|
-
composedSignal.unsubscribe();
|
|
45552
|
+
get duplex() {
|
|
45553
|
+
duplexAccessed = true;
|
|
45554
|
+
return "half";
|
|
45555
|
+
}
|
|
45556
|
+
}).headers.has("Content-Type");
|
|
45557
|
+
return duplexAccessed && !hasContentType;
|
|
45488
45558
|
});
|
|
45489
|
-
|
|
45490
|
-
|
|
45491
|
-
|
|
45492
|
-
|
|
45493
|
-
|
|
45494
|
-
|
|
45495
|
-
|
|
45559
|
+
const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
|
|
45560
|
+
const resolvers = {
|
|
45561
|
+
stream: supportsResponseStream && ((res) => res.body)
|
|
45562
|
+
};
|
|
45563
|
+
isFetchSupported && (() => {
|
|
45564
|
+
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type) => {
|
|
45565
|
+
!resolvers[type] && (resolvers[type] = (res, config) => {
|
|
45566
|
+
let method = res && res[type];
|
|
45567
|
+
if (method) {
|
|
45568
|
+
return method.call(res);
|
|
45569
|
+
}
|
|
45570
|
+
throw new AxiosError_default(`Response type '${type}' is not supported`, AxiosError_default.ERR_NOT_SUPPORT, config);
|
|
45496
45571
|
});
|
|
45497
|
-
|
|
45498
|
-
|
|
45499
|
-
|
|
45500
|
-
|
|
45501
|
-
|
|
45502
|
-
const [onProgress, flush] = progressEventDecorator(
|
|
45503
|
-
requestContentLength,
|
|
45504
|
-
progressEventReducer(asyncDecorator(onUploadProgress))
|
|
45505
|
-
);
|
|
45506
|
-
data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
|
45507
|
-
}
|
|
45572
|
+
});
|
|
45573
|
+
})();
|
|
45574
|
+
const getBodyLength = (body) => __async(void 0, null, function* () {
|
|
45575
|
+
if (body == null) {
|
|
45576
|
+
return 0;
|
|
45508
45577
|
}
|
|
45509
|
-
if (
|
|
45510
|
-
|
|
45578
|
+
if (utils_default.isBlob(body)) {
|
|
45579
|
+
return body.size;
|
|
45511
45580
|
}
|
|
45512
|
-
|
|
45513
|
-
|
|
45514
|
-
|
|
45515
|
-
|
|
45516
|
-
headers: headers.normalize().toJSON(),
|
|
45517
|
-
body: data,
|
|
45518
|
-
duplex: "half",
|
|
45519
|
-
credentials: isCredentialsSupported ? withCredentials : void 0
|
|
45520
|
-
}));
|
|
45521
|
-
let response = yield fetch(request);
|
|
45522
|
-
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
45523
|
-
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
|
45524
|
-
const options = {};
|
|
45525
|
-
["status", "statusText", "headers"].forEach((prop) => {
|
|
45526
|
-
options[prop] = response[prop];
|
|
45581
|
+
if (utils_default.isSpecCompliantForm(body)) {
|
|
45582
|
+
const _request = new Request(platform_default.origin, {
|
|
45583
|
+
method: "POST",
|
|
45584
|
+
body
|
|
45527
45585
|
});
|
|
45528
|
-
|
|
45529
|
-
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
|
|
45530
|
-
responseContentLength,
|
|
45531
|
-
progressEventReducer(asyncDecorator(onDownloadProgress), true)
|
|
45532
|
-
) || [];
|
|
45533
|
-
response = new Response(
|
|
45534
|
-
trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
|
45535
|
-
flush && flush();
|
|
45536
|
-
unsubscribe && unsubscribe();
|
|
45537
|
-
}),
|
|
45538
|
-
options
|
|
45539
|
-
);
|
|
45586
|
+
return (yield _request.arrayBuffer()).byteLength;
|
|
45540
45587
|
}
|
|
45541
|
-
|
|
45542
|
-
|
|
45543
|
-
|
|
45544
|
-
|
|
45545
|
-
|
|
45546
|
-
|
|
45547
|
-
|
|
45548
|
-
|
|
45549
|
-
|
|
45550
|
-
|
|
45551
|
-
|
|
45552
|
-
|
|
45588
|
+
if (utils_default.isArrayBufferView(body) || utils_default.isArrayBuffer(body)) {
|
|
45589
|
+
return body.byteLength;
|
|
45590
|
+
}
|
|
45591
|
+
if (utils_default.isURLSearchParams(body)) {
|
|
45592
|
+
body = body + "";
|
|
45593
|
+
}
|
|
45594
|
+
if (utils_default.isString(body)) {
|
|
45595
|
+
return (yield encodeText(body)).byteLength;
|
|
45596
|
+
}
|
|
45597
|
+
});
|
|
45598
|
+
const resolveBodyLength = (headers, body) => __async(void 0, null, function* () {
|
|
45599
|
+
const length = utils_default.toFiniteNumber(headers.getContentLength());
|
|
45600
|
+
return length == null ? getBodyLength(body) : length;
|
|
45601
|
+
});
|
|
45602
|
+
return (config) => __async(void 0, null, function* () {
|
|
45603
|
+
let {
|
|
45604
|
+
url: url2,
|
|
45605
|
+
method,
|
|
45606
|
+
data,
|
|
45607
|
+
signal,
|
|
45608
|
+
cancelToken,
|
|
45609
|
+
timeout,
|
|
45610
|
+
onDownloadProgress,
|
|
45611
|
+
onUploadProgress,
|
|
45612
|
+
responseType,
|
|
45613
|
+
headers,
|
|
45614
|
+
withCredentials = "same-origin",
|
|
45615
|
+
fetchOptions
|
|
45616
|
+
} = resolveConfig_default(config);
|
|
45617
|
+
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
45618
|
+
let composedSignal = composeSignals_default([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
|
45619
|
+
let request = null;
|
|
45620
|
+
const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
|
|
45621
|
+
composedSignal.unsubscribe();
|
|
45553
45622
|
});
|
|
45554
|
-
|
|
45555
|
-
|
|
45556
|
-
|
|
45557
|
-
|
|
45558
|
-
|
|
45559
|
-
|
|
45560
|
-
|
|
45623
|
+
let requestContentLength;
|
|
45624
|
+
try {
|
|
45625
|
+
if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = yield resolveBodyLength(headers, data)) !== 0) {
|
|
45626
|
+
let _request = new Request(url2, {
|
|
45627
|
+
method: "POST",
|
|
45628
|
+
body: data,
|
|
45629
|
+
duplex: "half"
|
|
45630
|
+
});
|
|
45631
|
+
let contentTypeHeader;
|
|
45632
|
+
if (utils_default.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
|
|
45633
|
+
headers.setContentType(contentTypeHeader);
|
|
45634
|
+
}
|
|
45635
|
+
if (_request.body) {
|
|
45636
|
+
const [onProgress, flush] = progressEventDecorator(
|
|
45637
|
+
requestContentLength,
|
|
45638
|
+
progressEventReducer(asyncDecorator(onUploadProgress))
|
|
45639
|
+
);
|
|
45640
|
+
data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
|
45561
45641
|
}
|
|
45562
|
-
|
|
45642
|
+
}
|
|
45643
|
+
if (!utils_default.isString(withCredentials)) {
|
|
45644
|
+
withCredentials = withCredentials ? "include" : "omit";
|
|
45645
|
+
}
|
|
45646
|
+
const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
|
|
45647
|
+
const resolvedOptions = __spreadProps(__spreadValues({}, fetchOptions), {
|
|
45648
|
+
signal: composedSignal,
|
|
45649
|
+
method: method.toUpperCase(),
|
|
45650
|
+
headers: headers.normalize().toJSON(),
|
|
45651
|
+
body: data,
|
|
45652
|
+
duplex: "half",
|
|
45653
|
+
credentials: isCredentialsSupported ? withCredentials : void 0
|
|
45654
|
+
});
|
|
45655
|
+
request = isRequestSupported && new Request(url2, resolvedOptions);
|
|
45656
|
+
let response = yield isRequestSupported ? fetch(request, fetchOptions) : fetch(url2, resolvedOptions);
|
|
45657
|
+
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
45658
|
+
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
|
45659
|
+
const options = {};
|
|
45660
|
+
["status", "statusText", "headers"].forEach((prop) => {
|
|
45661
|
+
options[prop] = response[prop];
|
|
45662
|
+
});
|
|
45663
|
+
const responseContentLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
|
|
45664
|
+
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
|
|
45665
|
+
responseContentLength,
|
|
45666
|
+
progressEventReducer(asyncDecorator(onDownloadProgress), true)
|
|
45667
|
+
) || [];
|
|
45668
|
+
response = new Response(
|
|
45669
|
+
trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
|
45670
|
+
flush && flush();
|
|
45671
|
+
unsubscribe && unsubscribe();
|
|
45672
|
+
}),
|
|
45673
|
+
options
|
|
45674
|
+
);
|
|
45675
|
+
}
|
|
45676
|
+
responseType = responseType || "text";
|
|
45677
|
+
let responseData = yield resolvers[utils_default.findKey(resolvers, responseType) || "text"](response, config);
|
|
45678
|
+
!isStreamResponse && unsubscribe && unsubscribe();
|
|
45679
|
+
return yield new Promise((resolve, reject) => {
|
|
45680
|
+
settle(resolve, reject, {
|
|
45681
|
+
data: responseData,
|
|
45682
|
+
headers: AxiosHeaders_default.from(response.headers),
|
|
45683
|
+
status: response.status,
|
|
45684
|
+
statusText: response.statusText,
|
|
45685
|
+
config,
|
|
45686
|
+
request
|
|
45687
|
+
});
|
|
45688
|
+
});
|
|
45689
|
+
} catch (err) {
|
|
45690
|
+
unsubscribe && unsubscribe();
|
|
45691
|
+
if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
|
|
45692
|
+
throw Object.assign(
|
|
45693
|
+
new AxiosError_default("Network Error", AxiosError_default.ERR_NETWORK, config, request),
|
|
45694
|
+
{
|
|
45695
|
+
cause: err.cause || err
|
|
45696
|
+
}
|
|
45697
|
+
);
|
|
45698
|
+
}
|
|
45699
|
+
throw AxiosError_default.from(err, err && err.code, config, request);
|
|
45563
45700
|
}
|
|
45564
|
-
|
|
45565
|
-
|
|
45566
|
-
|
|
45701
|
+
});
|
|
45702
|
+
};
|
|
45703
|
+
var seedCache = /* @__PURE__ */ new Map();
|
|
45704
|
+
var getFetch = (config) => {
|
|
45705
|
+
let env = utils_default.merge.call({
|
|
45706
|
+
skipUndefined: true
|
|
45707
|
+
}, globalFetchAPI, config ? config.env : null);
|
|
45708
|
+
const { fetch, Request, Response } = env;
|
|
45709
|
+
const seeds = [
|
|
45710
|
+
Request,
|
|
45711
|
+
Response,
|
|
45712
|
+
fetch
|
|
45713
|
+
];
|
|
45714
|
+
let len = seeds.length, i = len, seed, target, map = seedCache;
|
|
45715
|
+
while (i--) {
|
|
45716
|
+
seed = seeds[i];
|
|
45717
|
+
target = map.get(seed);
|
|
45718
|
+
target === void 0 && map.set(seed, target = i ? /* @__PURE__ */ new Map() : factory(env));
|
|
45719
|
+
map = target;
|
|
45720
|
+
}
|
|
45721
|
+
return target;
|
|
45722
|
+
};
|
|
45723
|
+
var adapter = getFetch();
|
|
45567
45724
|
|
|
45568
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
45725
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/adapters/adapters.js
|
|
45569
45726
|
var knownAdapters = {
|
|
45570
45727
|
http: http_default,
|
|
45571
45728
|
xhr: xhr_default,
|
|
45572
|
-
fetch:
|
|
45729
|
+
fetch: {
|
|
45730
|
+
get: getFetch
|
|
45731
|
+
}
|
|
45573
45732
|
};
|
|
45574
45733
|
utils_default.forEach(knownAdapters, (fn, value) => {
|
|
45575
45734
|
if (fn) {
|
|
@@ -45581,30 +45740,30 @@ utils_default.forEach(knownAdapters, (fn, value) => {
|
|
|
45581
45740
|
}
|
|
45582
45741
|
});
|
|
45583
45742
|
var renderReason = (reason) => `- ${reason}`;
|
|
45584
|
-
var isResolvedHandle = (
|
|
45743
|
+
var isResolvedHandle = (adapter2) => utils_default.isFunction(adapter2) || adapter2 === null || adapter2 === false;
|
|
45585
45744
|
var adapters_default = {
|
|
45586
|
-
getAdapter: (adapters) => {
|
|
45745
|
+
getAdapter: (adapters, config) => {
|
|
45587
45746
|
adapters = utils_default.isArray(adapters) ? adapters : [adapters];
|
|
45588
45747
|
const { length } = adapters;
|
|
45589
45748
|
let nameOrAdapter;
|
|
45590
|
-
let
|
|
45749
|
+
let adapter2;
|
|
45591
45750
|
const rejectedReasons = {};
|
|
45592
45751
|
for (let i = 0; i < length; i++) {
|
|
45593
45752
|
nameOrAdapter = adapters[i];
|
|
45594
45753
|
let id;
|
|
45595
|
-
|
|
45754
|
+
adapter2 = nameOrAdapter;
|
|
45596
45755
|
if (!isResolvedHandle(nameOrAdapter)) {
|
|
45597
|
-
|
|
45598
|
-
if (
|
|
45756
|
+
adapter2 = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
45757
|
+
if (adapter2 === void 0) {
|
|
45599
45758
|
throw new AxiosError_default(`Unknown adapter '${id}'`);
|
|
45600
45759
|
}
|
|
45601
45760
|
}
|
|
45602
|
-
if (
|
|
45761
|
+
if (adapter2 && (utils_default.isFunction(adapter2) || (adapter2 = adapter2.get(config)))) {
|
|
45603
45762
|
break;
|
|
45604
45763
|
}
|
|
45605
|
-
rejectedReasons[id || "#" + i] =
|
|
45764
|
+
rejectedReasons[id || "#" + i] = adapter2;
|
|
45606
45765
|
}
|
|
45607
|
-
if (!
|
|
45766
|
+
if (!adapter2) {
|
|
45608
45767
|
const reasons = Object.entries(rejectedReasons).map(
|
|
45609
45768
|
([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build")
|
|
45610
45769
|
);
|
|
@@ -45614,12 +45773,12 @@ var adapters_default = {
|
|
|
45614
45773
|
"ERR_NOT_SUPPORT"
|
|
45615
45774
|
);
|
|
45616
45775
|
}
|
|
45617
|
-
return
|
|
45776
|
+
return adapter2;
|
|
45618
45777
|
},
|
|
45619
45778
|
adapters: knownAdapters
|
|
45620
45779
|
};
|
|
45621
45780
|
|
|
45622
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
45781
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/core/dispatchRequest.js
|
|
45623
45782
|
function throwIfCancellationRequested(config) {
|
|
45624
45783
|
if (config.cancelToken) {
|
|
45625
45784
|
config.cancelToken.throwIfRequested();
|
|
@@ -45638,8 +45797,8 @@ function dispatchRequest(config) {
|
|
|
45638
45797
|
if (["post", "put", "patch"].indexOf(config.method) !== -1) {
|
|
45639
45798
|
config.headers.setContentType("application/x-www-form-urlencoded", false);
|
|
45640
45799
|
}
|
|
45641
|
-
const
|
|
45642
|
-
return
|
|
45800
|
+
const adapter2 = adapters_default.getAdapter(config.adapter || defaults_default.adapter, config);
|
|
45801
|
+
return adapter2(config).then(function onAdapterResolution(response) {
|
|
45643
45802
|
throwIfCancellationRequested(config);
|
|
45644
45803
|
response.data = transformData.call(
|
|
45645
45804
|
config,
|
|
@@ -45664,7 +45823,7 @@ function dispatchRequest(config) {
|
|
|
45664
45823
|
});
|
|
45665
45824
|
}
|
|
45666
45825
|
|
|
45667
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
45826
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/helpers/validator.js
|
|
45668
45827
|
var validators = {};
|
|
45669
45828
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
|
|
45670
45829
|
validators[type] = function validator(thing) {
|
|
@@ -45728,11 +45887,11 @@ var validator_default = {
|
|
|
45728
45887
|
validators
|
|
45729
45888
|
};
|
|
45730
45889
|
|
|
45731
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
45890
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/core/Axios.js
|
|
45732
45891
|
var validators2 = validator_default.validators;
|
|
45733
45892
|
var Axios = class {
|
|
45734
45893
|
constructor(instanceConfig) {
|
|
45735
|
-
this.defaults = instanceConfig;
|
|
45894
|
+
this.defaults = instanceConfig || {};
|
|
45736
45895
|
this.interceptors = {
|
|
45737
45896
|
request: new InterceptorManager_default(),
|
|
45738
45897
|
response: new InterceptorManager_default()
|
|
@@ -45836,8 +45995,8 @@ var Axios = class {
|
|
|
45836
45995
|
let len;
|
|
45837
45996
|
if (!synchronousRequestInterceptors) {
|
|
45838
45997
|
const chain = [dispatchRequest.bind(this), void 0];
|
|
45839
|
-
chain.unshift
|
|
45840
|
-
chain.push
|
|
45998
|
+
chain.unshift(...requestInterceptorChain);
|
|
45999
|
+
chain.push(...responseInterceptorChain);
|
|
45841
46000
|
len = chain.length;
|
|
45842
46001
|
promise = Promise.resolve(config);
|
|
45843
46002
|
while (i < len) {
|
|
@@ -45903,7 +46062,7 @@ utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(m
|
|
|
45903
46062
|
});
|
|
45904
46063
|
var Axios_default = Axios;
|
|
45905
46064
|
|
|
45906
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
46065
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/cancel/CancelToken.js
|
|
45907
46066
|
var CancelToken = class _CancelToken {
|
|
45908
46067
|
constructor(executor) {
|
|
45909
46068
|
if (typeof executor !== "function") {
|
|
@@ -46002,19 +46161,19 @@ var CancelToken = class _CancelToken {
|
|
|
46002
46161
|
};
|
|
46003
46162
|
var CancelToken_default = CancelToken;
|
|
46004
46163
|
|
|
46005
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
46164
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/helpers/spread.js
|
|
46006
46165
|
function spread(callback) {
|
|
46007
46166
|
return function wrap(arr) {
|
|
46008
46167
|
return callback.apply(null, arr);
|
|
46009
46168
|
};
|
|
46010
46169
|
}
|
|
46011
46170
|
|
|
46012
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
46171
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/helpers/isAxiosError.js
|
|
46013
46172
|
function isAxiosError(payload) {
|
|
46014
46173
|
return utils_default.isObject(payload) && payload.isAxiosError === true;
|
|
46015
46174
|
}
|
|
46016
46175
|
|
|
46017
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
46176
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/helpers/HttpStatusCode.js
|
|
46018
46177
|
var HttpStatusCode = {
|
|
46019
46178
|
Continue: 100,
|
|
46020
46179
|
SwitchingProtocols: 101,
|
|
@@ -46085,7 +46244,7 @@ Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
|
46085
46244
|
});
|
|
46086
46245
|
var HttpStatusCode_default = HttpStatusCode;
|
|
46087
46246
|
|
|
46088
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
46247
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/lib/axios.js
|
|
46089
46248
|
function createInstance(defaultConfig) {
|
|
46090
46249
|
const context = new Axios_default(defaultConfig);
|
|
46091
46250
|
const instance = bind(Axios_default.prototype.request, context);
|
|
@@ -46118,7 +46277,7 @@ axios.HttpStatusCode = HttpStatusCode_default;
|
|
|
46118
46277
|
axios.default = axios;
|
|
46119
46278
|
var axios_default = axios;
|
|
46120
46279
|
|
|
46121
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
46280
|
+
// ../../../node_modules/.pnpm/axios@1.12.0_debug@4.3.7/node_modules/axios/index.js
|
|
46122
46281
|
var {
|
|
46123
46282
|
Axios: Axios2,
|
|
46124
46283
|
AxiosError: AxiosError2,
|
|
@@ -46811,7 +46970,7 @@ var CodeSmith = class {
|
|
|
46811
46970
|
};
|
|
46812
46971
|
|
|
46813
46972
|
// package.json
|
|
46814
|
-
var version = "2.68.
|
|
46973
|
+
var version = "2.68.13";
|
|
46815
46974
|
|
|
46816
46975
|
// src/utils/index.ts
|
|
46817
46976
|
var import_path10 = __toESM(require("path"));
|