@jerome-benoit/sap-ai-provider 4.4.18 → 4.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -9
- package/dist/{chunk-4CAVT2YC.js → chunk-3VLXFYCM.js} +153 -140
- package/dist/chunk-3VLXFYCM.js.map +1 -0
- package/dist/{chunk-3M6NFVCS.js → chunk-NRLDO6VY.js} +8 -4
- package/dist/chunk-NRLDO6VY.js.map +1 -0
- package/dist/{chunk-BBWFNLML.js → chunk-SC6SVJGO.js} +3 -3
- package/dist/{chunk-O6ASHXPO.js → chunk-T2KXS7WW.js} +445 -321
- package/dist/{chunk-O6ASHXPO.js.map → chunk-T2KXS7WW.js.map} +1 -1
- package/dist/{foundation-models-embedding-model-strategy-XJV5REFR.js → foundation-models-embedding-model-strategy-FO5RWBZ2.js} +4 -4
- package/dist/{foundation-models-language-model-strategy-X6VNJZFG.js → foundation-models-language-model-strategy-COZPNAJ3.js} +11 -6
- package/dist/foundation-models-language-model-strategy-COZPNAJ3.js.map +1 -0
- package/dist/index.cjs +619 -461
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -2
- package/dist/index.d.ts +19 -2
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/{orchestration-embedding-model-strategy-3GIX5HAR.js → orchestration-embedding-model-strategy-GEONA32Q.js} +4 -4
- package/dist/{orchestration-language-model-strategy-GYBTFP2F.js → orchestration-language-model-strategy-PZBP7G5O.js} +18 -5
- package/dist/orchestration-language-model-strategy-PZBP7G5O.js.map +1 -0
- package/package.json +15 -15
- package/dist/chunk-3M6NFVCS.js.map +0 -1
- package/dist/chunk-4CAVT2YC.js.map +0 -1
- package/dist/foundation-models-language-model-strategy-X6VNJZFG.js.map +0 -1
- package/dist/orchestration-language-model-strategy-GYBTFP2F.js.map +0 -1
- /package/dist/{chunk-BBWFNLML.js.map → chunk-SC6SVJGO.js.map} +0 -0
- /package/dist/{foundation-models-embedding-model-strategy-XJV5REFR.js.map → foundation-models-embedding-model-strategy-FO5RWBZ2.js.map} +0 -0
- /package/dist/{orchestration-embedding-model-strategy-3GIX5HAR.js.map → orchestration-embedding-model-strategy-GEONA32Q.js.map} +0 -0
|
@@ -26289,12 +26289,25 @@ var require_axios = __commonJS({
|
|
|
26289
26289
|
};
|
|
26290
26290
|
var isDate = kindOfTest("Date");
|
|
26291
26291
|
var isFile = kindOfTest("File");
|
|
26292
|
+
var isReactNativeBlob = (value) => {
|
|
26293
|
+
return !!(value && typeof value.uri !== "undefined");
|
|
26294
|
+
};
|
|
26295
|
+
var isReactNative = (formData) => formData && typeof formData.getParts !== "undefined";
|
|
26292
26296
|
var isBlob = kindOfTest("Blob");
|
|
26293
26297
|
var isFileList = kindOfTest("FileList");
|
|
26294
26298
|
var isStream = (val) => isObject(val) && isFunction$1(val.pipe);
|
|
26299
|
+
function getGlobal() {
|
|
26300
|
+
if (typeof globalThis !== "undefined") return globalThis;
|
|
26301
|
+
if (typeof self !== "undefined") return self;
|
|
26302
|
+
if (typeof window !== "undefined") return window;
|
|
26303
|
+
if (typeof global !== "undefined") return global;
|
|
26304
|
+
return {};
|
|
26305
|
+
}
|
|
26306
|
+
var G = getGlobal();
|
|
26307
|
+
var FormDataCtor = typeof G.FormData !== "undefined" ? G.FormData : void 0;
|
|
26295
26308
|
var isFormData = (thing) => {
|
|
26296
26309
|
let kind;
|
|
26297
|
-
return thing && (
|
|
26310
|
+
return thing && (FormDataCtor && thing instanceof FormDataCtor || isFunction$1(thing.append) && ((kind = kindOf(thing)) === "formdata" || // detect form-data instance
|
|
26298
26311
|
kind === "object" && isFunction$1(thing.toString) && thing.toString() === "[object FormData]"));
|
|
26299
26312
|
};
|
|
26300
26313
|
var isURLSearchParams = kindOfTest("URLSearchParams");
|
|
@@ -26304,7 +26317,9 @@ var require_axios = __commonJS({
|
|
|
26304
26317
|
"Response",
|
|
26305
26318
|
"Headers"
|
|
26306
26319
|
].map(kindOfTest);
|
|
26307
|
-
var trim2 = (str) =>
|
|
26320
|
+
var trim2 = (str) => {
|
|
26321
|
+
return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
26322
|
+
};
|
|
26308
26323
|
function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
26309
26324
|
if (obj === null || typeof obj === "undefined") {
|
|
26310
26325
|
return;
|
|
@@ -26406,10 +26421,7 @@ var require_axios = __commonJS({
|
|
|
26406
26421
|
return content;
|
|
26407
26422
|
};
|
|
26408
26423
|
var inherits = (constructor, superConstructor, props, descriptors) => {
|
|
26409
|
-
constructor.prototype = Object.create(
|
|
26410
|
-
superConstructor.prototype,
|
|
26411
|
-
descriptors
|
|
26412
|
-
);
|
|
26424
|
+
constructor.prototype = Object.create(superConstructor.prototype, descriptors);
|
|
26413
26425
|
Object.defineProperty(constructor.prototype, "constructor", {
|
|
26414
26426
|
value: constructor,
|
|
26415
26427
|
writable: true,
|
|
@@ -26608,6 +26620,8 @@ var require_axios = __commonJS({
|
|
|
26608
26620
|
isUndefined,
|
|
26609
26621
|
isDate,
|
|
26610
26622
|
isFile,
|
|
26623
|
+
isReactNativeBlob,
|
|
26624
|
+
isReactNative,
|
|
26611
26625
|
isBlob,
|
|
26612
26626
|
isRegExp,
|
|
26613
26627
|
isFunction: isFunction$1,
|
|
@@ -26654,6 +26668,9 @@ var require_axios = __commonJS({
|
|
|
26654
26668
|
const axiosError = new _AxiosError(error.message, code || error.code, config, request, response);
|
|
26655
26669
|
axiosError.cause = error;
|
|
26656
26670
|
axiosError.name = error.name;
|
|
26671
|
+
if (error.status != null && axiosError.status == null) {
|
|
26672
|
+
axiosError.status = error.status;
|
|
26673
|
+
}
|
|
26657
26674
|
customProps && Object.assign(axiosError, customProps);
|
|
26658
26675
|
return axiosError;
|
|
26659
26676
|
}
|
|
@@ -26670,6 +26687,12 @@ var require_axios = __commonJS({
|
|
|
26670
26687
|
*/
|
|
26671
26688
|
constructor(message, code, config, request, response) {
|
|
26672
26689
|
super(message);
|
|
26690
|
+
Object.defineProperty(this, "message", {
|
|
26691
|
+
value: message,
|
|
26692
|
+
enumerable: true,
|
|
26693
|
+
writable: true,
|
|
26694
|
+
configurable: true
|
|
26695
|
+
});
|
|
26673
26696
|
this.name = "AxiosError";
|
|
26674
26697
|
this.isAxiosError = true;
|
|
26675
26698
|
code && (this.code = code);
|
|
@@ -26737,13 +26760,18 @@ var require_axios = __commonJS({
|
|
|
26737
26760
|
throw new TypeError("target must be an object");
|
|
26738
26761
|
}
|
|
26739
26762
|
formData = formData || new (FormData__default["default"] || FormData)();
|
|
26740
|
-
options = utils$1.toFlatObject(
|
|
26741
|
-
|
|
26742
|
-
|
|
26743
|
-
|
|
26744
|
-
|
|
26745
|
-
|
|
26746
|
-
|
|
26763
|
+
options = utils$1.toFlatObject(
|
|
26764
|
+
options,
|
|
26765
|
+
{
|
|
26766
|
+
metaTokens: true,
|
|
26767
|
+
dots: false,
|
|
26768
|
+
indexes: false
|
|
26769
|
+
},
|
|
26770
|
+
false,
|
|
26771
|
+
function defined(option, source) {
|
|
26772
|
+
return !utils$1.isUndefined(source[option]);
|
|
26773
|
+
}
|
|
26774
|
+
);
|
|
26747
26775
|
const metaTokens = options.metaTokens;
|
|
26748
26776
|
const visitor = options.visitor || defaultVisitor;
|
|
26749
26777
|
const dots = options.dots;
|
|
@@ -26771,6 +26799,10 @@ var require_axios = __commonJS({
|
|
|
26771
26799
|
}
|
|
26772
26800
|
function defaultVisitor(value, key, path) {
|
|
26773
26801
|
let arr = value;
|
|
26802
|
+
if (utils$1.isReactNative(formData) && utils$1.isReactNativeBlob(value)) {
|
|
26803
|
+
formData.append(renderKey(path, key, dots), convertValue(value));
|
|
26804
|
+
return false;
|
|
26805
|
+
}
|
|
26774
26806
|
if (value && !path && typeof value === "object") {
|
|
26775
26807
|
if (utils$1.endsWith(key, "{}")) {
|
|
26776
26808
|
key = metaTokens ? key : key.slice(0, -2);
|
|
@@ -26806,13 +26838,7 @@ var require_axios = __commonJS({
|
|
|
26806
26838
|
}
|
|
26807
26839
|
stack.push(value);
|
|
26808
26840
|
utils$1.forEach(value, function each(el, key) {
|
|
26809
|
-
const result = !(utils$1.isUndefined(el) || el === null) && visitor.call(
|
|
26810
|
-
formData,
|
|
26811
|
-
el,
|
|
26812
|
-
utils$1.isString(key) ? key.trim() : key,
|
|
26813
|
-
path,
|
|
26814
|
-
exposedHelpers
|
|
26815
|
-
);
|
|
26841
|
+
const result = !(utils$1.isUndefined(el) || el === null) && visitor.call(formData, el, utils$1.isString(key) ? key.trim() : key, path, exposedHelpers);
|
|
26816
26842
|
if (result === true) {
|
|
26817
26843
|
build(el, path ? path.concat(key) : [key]);
|
|
26818
26844
|
}
|
|
@@ -27078,70 +27104,74 @@ var require_axios = __commonJS({
|
|
|
27078
27104
|
var defaults = {
|
|
27079
27105
|
transitional: transitionalDefaults,
|
|
27080
27106
|
adapter: ["xhr", "http", "fetch"],
|
|
27081
|
-
transformRequest: [
|
|
27082
|
-
|
|
27083
|
-
|
|
27084
|
-
|
|
27085
|
-
|
|
27086
|
-
|
|
27087
|
-
|
|
27088
|
-
const isFormData2 = utils$1.isFormData(data);
|
|
27089
|
-
if (isFormData2) {
|
|
27090
|
-
return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
|
|
27091
|
-
}
|
|
27092
|
-
if (utils$1.isArrayBuffer(data) || utils$1.isBuffer(data) || utils$1.isStream(data) || utils$1.isFile(data) || utils$1.isBlob(data) || utils$1.isReadableStream(data)) {
|
|
27093
|
-
return data;
|
|
27094
|
-
}
|
|
27095
|
-
if (utils$1.isArrayBufferView(data)) {
|
|
27096
|
-
return data.buffer;
|
|
27097
|
-
}
|
|
27098
|
-
if (utils$1.isURLSearchParams(data)) {
|
|
27099
|
-
headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
|
|
27100
|
-
return data.toString();
|
|
27101
|
-
}
|
|
27102
|
-
let isFileList2;
|
|
27103
|
-
if (isObjectPayload) {
|
|
27104
|
-
if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
|
|
27105
|
-
return toURLEncodedForm(data, this.formSerializer).toString();
|
|
27107
|
+
transformRequest: [
|
|
27108
|
+
function transformRequest(data, headers) {
|
|
27109
|
+
const contentType = headers.getContentType() || "";
|
|
27110
|
+
const hasJSONContentType = contentType.indexOf("application/json") > -1;
|
|
27111
|
+
const isObjectPayload = utils$1.isObject(data);
|
|
27112
|
+
if (isObjectPayload && utils$1.isHTMLForm(data)) {
|
|
27113
|
+
data = new FormData(data);
|
|
27106
27114
|
}
|
|
27107
|
-
|
|
27108
|
-
|
|
27109
|
-
return
|
|
27110
|
-
|
|
27111
|
-
|
|
27112
|
-
|
|
27113
|
-
|
|
27115
|
+
const isFormData2 = utils$1.isFormData(data);
|
|
27116
|
+
if (isFormData2) {
|
|
27117
|
+
return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
|
|
27118
|
+
}
|
|
27119
|
+
if (utils$1.isArrayBuffer(data) || utils$1.isBuffer(data) || utils$1.isStream(data) || utils$1.isFile(data) || utils$1.isBlob(data) || utils$1.isReadableStream(data)) {
|
|
27120
|
+
return data;
|
|
27121
|
+
}
|
|
27122
|
+
if (utils$1.isArrayBufferView(data)) {
|
|
27123
|
+
return data.buffer;
|
|
27124
|
+
}
|
|
27125
|
+
if (utils$1.isURLSearchParams(data)) {
|
|
27126
|
+
headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
|
|
27127
|
+
return data.toString();
|
|
27128
|
+
}
|
|
27129
|
+
let isFileList2;
|
|
27130
|
+
if (isObjectPayload) {
|
|
27131
|
+
if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
|
|
27132
|
+
return toURLEncodedForm(data, this.formSerializer).toString();
|
|
27133
|
+
}
|
|
27134
|
+
if ((isFileList2 = utils$1.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
|
|
27135
|
+
const _FormData = this.env && this.env.FormData;
|
|
27136
|
+
return toFormData(
|
|
27137
|
+
isFileList2 ? { "files[]": data } : data,
|
|
27138
|
+
_FormData && new _FormData(),
|
|
27139
|
+
this.formSerializer
|
|
27140
|
+
);
|
|
27141
|
+
}
|
|
27142
|
+
}
|
|
27143
|
+
if (isObjectPayload || hasJSONContentType) {
|
|
27144
|
+
headers.setContentType("application/json", false);
|
|
27145
|
+
return stringifySafely(data);
|
|
27114
27146
|
}
|
|
27115
|
-
}
|
|
27116
|
-
if (isObjectPayload || hasJSONContentType) {
|
|
27117
|
-
headers.setContentType("application/json", false);
|
|
27118
|
-
return stringifySafely(data);
|
|
27119
|
-
}
|
|
27120
|
-
return data;
|
|
27121
|
-
}],
|
|
27122
|
-
transformResponse: [function transformResponse(data) {
|
|
27123
|
-
const transitional = this.transitional || defaults.transitional;
|
|
27124
|
-
const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
|
|
27125
|
-
const JSONRequested = this.responseType === "json";
|
|
27126
|
-
if (utils$1.isResponse(data) || utils$1.isReadableStream(data)) {
|
|
27127
27147
|
return data;
|
|
27128
27148
|
}
|
|
27129
|
-
|
|
27130
|
-
|
|
27131
|
-
|
|
27132
|
-
|
|
27133
|
-
|
|
27134
|
-
|
|
27135
|
-
|
|
27136
|
-
|
|
27137
|
-
|
|
27149
|
+
],
|
|
27150
|
+
transformResponse: [
|
|
27151
|
+
function transformResponse(data) {
|
|
27152
|
+
const transitional = this.transitional || defaults.transitional;
|
|
27153
|
+
const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
|
|
27154
|
+
const JSONRequested = this.responseType === "json";
|
|
27155
|
+
if (utils$1.isResponse(data) || utils$1.isReadableStream(data)) {
|
|
27156
|
+
return data;
|
|
27157
|
+
}
|
|
27158
|
+
if (data && utils$1.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
|
|
27159
|
+
const silentJSONParsing = transitional && transitional.silentJSONParsing;
|
|
27160
|
+
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
27161
|
+
try {
|
|
27162
|
+
return JSON.parse(data, this.parseReviver);
|
|
27163
|
+
} catch (e) {
|
|
27164
|
+
if (strictJSONParsing) {
|
|
27165
|
+
if (e.name === "SyntaxError") {
|
|
27166
|
+
throw AxiosError$1.from(e, AxiosError$1.ERR_BAD_RESPONSE, this, null, this.response);
|
|
27167
|
+
}
|
|
27168
|
+
throw e;
|
|
27138
27169
|
}
|
|
27139
|
-
throw e;
|
|
27140
27170
|
}
|
|
27141
27171
|
}
|
|
27172
|
+
return data;
|
|
27142
27173
|
}
|
|
27143
|
-
|
|
27144
|
-
}],
|
|
27174
|
+
],
|
|
27145
27175
|
/**
|
|
27146
27176
|
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
27147
27177
|
* timeout is not created.
|
|
@@ -27160,7 +27190,7 @@ var require_axios = __commonJS({
|
|
|
27160
27190
|
},
|
|
27161
27191
|
headers: {
|
|
27162
27192
|
common: {
|
|
27163
|
-
|
|
27193
|
+
Accept: "application/json, text/plain, */*",
|
|
27164
27194
|
"Content-Type": void 0
|
|
27165
27195
|
}
|
|
27166
27196
|
}
|
|
@@ -27427,7 +27457,14 @@ var require_axios = __commonJS({
|
|
|
27427
27457
|
return this;
|
|
27428
27458
|
}
|
|
27429
27459
|
};
|
|
27430
|
-
AxiosHeaders.accessor([
|
|
27460
|
+
AxiosHeaders.accessor([
|
|
27461
|
+
"Content-Type",
|
|
27462
|
+
"Content-Length",
|
|
27463
|
+
"Accept",
|
|
27464
|
+
"Accept-Encoding",
|
|
27465
|
+
"User-Agent",
|
|
27466
|
+
"Authorization"
|
|
27467
|
+
]);
|
|
27431
27468
|
utils$1.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
27432
27469
|
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
27433
27470
|
return {
|
|
@@ -27475,13 +27512,15 @@ var require_axios = __commonJS({
|
|
|
27475
27512
|
if (!response.status || !validateStatus || validateStatus(response.status)) {
|
|
27476
27513
|
resolve(response);
|
|
27477
27514
|
} else {
|
|
27478
|
-
reject(
|
|
27479
|
-
|
|
27480
|
-
|
|
27481
|
-
|
|
27482
|
-
|
|
27483
|
-
|
|
27484
|
-
|
|
27515
|
+
reject(
|
|
27516
|
+
new AxiosError$1(
|
|
27517
|
+
"Request failed with status code " + response.status,
|
|
27518
|
+
[AxiosError$1.ERR_BAD_REQUEST, AxiosError$1.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
|
|
27519
|
+
response.config,
|
|
27520
|
+
response.request,
|
|
27521
|
+
response
|
|
27522
|
+
)
|
|
27523
|
+
);
|
|
27485
27524
|
}
|
|
27486
27525
|
}
|
|
27487
27526
|
function isAbsoluteURL(url2) {
|
|
@@ -27500,7 +27539,7 @@ var require_axios = __commonJS({
|
|
|
27500
27539
|
}
|
|
27501
27540
|
return requestedURL;
|
|
27502
27541
|
}
|
|
27503
|
-
var VERSION2 = "1.13.
|
|
27542
|
+
var VERSION2 = "1.13.6";
|
|
27504
27543
|
function parseProtocol(url2) {
|
|
27505
27544
|
const match2 = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2);
|
|
27506
27545
|
return match2 && match2[1] || "";
|
|
@@ -27535,16 +27574,21 @@ var require_axios = __commonJS({
|
|
|
27535
27574
|
var kInternals = /* @__PURE__ */ Symbol("internals");
|
|
27536
27575
|
var AxiosTransformStream = class extends stream__default["default"].Transform {
|
|
27537
27576
|
constructor(options) {
|
|
27538
|
-
options = utils$1.toFlatObject(
|
|
27539
|
-
|
|
27540
|
-
|
|
27541
|
-
|
|
27542
|
-
|
|
27543
|
-
|
|
27544
|
-
|
|
27545
|
-
|
|
27546
|
-
|
|
27547
|
-
|
|
27577
|
+
options = utils$1.toFlatObject(
|
|
27578
|
+
options,
|
|
27579
|
+
{
|
|
27580
|
+
maxRate: 0,
|
|
27581
|
+
chunkSize: 64 * 1024,
|
|
27582
|
+
minChunkSize: 100,
|
|
27583
|
+
timeWindow: 500,
|
|
27584
|
+
ticksRate: 2,
|
|
27585
|
+
samplesCount: 15
|
|
27586
|
+
},
|
|
27587
|
+
null,
|
|
27588
|
+
(prop, source) => {
|
|
27589
|
+
return !utils$1.isUndefined(source[prop]);
|
|
27590
|
+
}
|
|
27591
|
+
);
|
|
27548
27592
|
super({
|
|
27549
27593
|
readableHighWaterMark: options.chunkSize
|
|
27550
27594
|
});
|
|
@@ -27627,9 +27671,12 @@ var require_axios = __commonJS({
|
|
|
27627
27671
|
chunkRemainder = _chunk.subarray(maxChunkSize);
|
|
27628
27672
|
_chunk = _chunk.subarray(0, maxChunkSize);
|
|
27629
27673
|
}
|
|
27630
|
-
pushChunk(
|
|
27631
|
-
|
|
27632
|
-
|
|
27674
|
+
pushChunk(
|
|
27675
|
+
_chunk,
|
|
27676
|
+
chunkRemainder ? () => {
|
|
27677
|
+
process.nextTick(_callback, null, chunkRemainder);
|
|
27678
|
+
} : _callback
|
|
27679
|
+
);
|
|
27633
27680
|
};
|
|
27634
27681
|
transformChunk(chunk, function transformNextChunk(err, _chunk) {
|
|
27635
27682
|
if (err) {
|
|
@@ -27689,11 +27736,14 @@ var require_axios = __commonJS({
|
|
|
27689
27736
|
yield CRLF_BYTES;
|
|
27690
27737
|
}
|
|
27691
27738
|
static escapeName(name) {
|
|
27692
|
-
return String(name).replace(
|
|
27693
|
-
|
|
27694
|
-
|
|
27695
|
-
|
|
27696
|
-
|
|
27739
|
+
return String(name).replace(
|
|
27740
|
+
/[\r\n"]/g,
|
|
27741
|
+
(match2) => ({
|
|
27742
|
+
"\r": "%0D",
|
|
27743
|
+
"\n": "%0A",
|
|
27744
|
+
'"': "%22"
|
|
27745
|
+
})[match2]
|
|
27746
|
+
);
|
|
27697
27747
|
}
|
|
27698
27748
|
};
|
|
27699
27749
|
var formDataToStream = (form, headersHandler, options) => {
|
|
@@ -27725,13 +27775,15 @@ var require_axios = __commonJS({
|
|
|
27725
27775
|
computedHeaders["Content-Length"] = contentLength;
|
|
27726
27776
|
}
|
|
27727
27777
|
headersHandler && headersHandler(computedHeaders);
|
|
27728
|
-
return stream.Readable.from(
|
|
27729
|
-
|
|
27730
|
-
|
|
27731
|
-
|
|
27732
|
-
|
|
27733
|
-
|
|
27734
|
-
|
|
27778
|
+
return stream.Readable.from(
|
|
27779
|
+
(async function* () {
|
|
27780
|
+
for (const part of parts) {
|
|
27781
|
+
yield boundaryBytes;
|
|
27782
|
+
yield* part.encode();
|
|
27783
|
+
}
|
|
27784
|
+
yield footerBytes;
|
|
27785
|
+
})()
|
|
27786
|
+
);
|
|
27735
27787
|
};
|
|
27736
27788
|
var formDataToStream$1 = formDataToStream;
|
|
27737
27789
|
var ZlibHeaderTransformStream = class extends stream__default["default"].Transform {
|
|
@@ -27857,11 +27909,14 @@ var require_axios = __commonJS({
|
|
|
27857
27909
|
};
|
|
27858
27910
|
var progressEventDecorator = (total, throttled) => {
|
|
27859
27911
|
const lengthComputable = total != null;
|
|
27860
|
-
return [
|
|
27861
|
-
|
|
27862
|
-
|
|
27863
|
-
|
|
27864
|
-
|
|
27912
|
+
return [
|
|
27913
|
+
(loaded) => throttled[0]({
|
|
27914
|
+
lengthComputable,
|
|
27915
|
+
total,
|
|
27916
|
+
loaded
|
|
27917
|
+
}),
|
|
27918
|
+
throttled[1]
|
|
27919
|
+
];
|
|
27865
27920
|
};
|
|
27866
27921
|
var asyncDecorator = (fn) => (...args) => utils$1.asap(() => fn(...args));
|
|
27867
27922
|
function estimateDataURLDecodedBytes(url2) {
|
|
@@ -27936,9 +27991,12 @@ var require_axios = __commonJS({
|
|
|
27936
27991
|
this.sessions = /* @__PURE__ */ Object.create(null);
|
|
27937
27992
|
}
|
|
27938
27993
|
getSession(authority, options) {
|
|
27939
|
-
options = Object.assign(
|
|
27940
|
-
|
|
27941
|
-
|
|
27994
|
+
options = Object.assign(
|
|
27995
|
+
{
|
|
27996
|
+
sessionTimeout: 1e3
|
|
27997
|
+
},
|
|
27998
|
+
options
|
|
27999
|
+
);
|
|
27942
28000
|
let authoritySessions = this.sessions[authority];
|
|
27943
28001
|
if (authoritySessions) {
|
|
27944
28002
|
let len = authoritySessions.length;
|
|
@@ -27992,10 +28050,7 @@ var require_axios = __commonJS({
|
|
|
27992
28050
|
};
|
|
27993
28051
|
}
|
|
27994
28052
|
session.once("close", removeSession);
|
|
27995
|
-
let entry = [
|
|
27996
|
-
session,
|
|
27997
|
-
options
|
|
27998
|
-
];
|
|
28053
|
+
let entry = [session, options];
|
|
27999
28054
|
authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
|
|
28000
28055
|
return session;
|
|
28001
28056
|
}
|
|
@@ -28081,12 +28136,7 @@ var require_axios = __commonJS({
|
|
|
28081
28136
|
const authority = options.protocol + "//" + options.hostname + ":" + (options.port || (options.protocol === "https:" ? 443 : 80));
|
|
28082
28137
|
const { http2Options, headers } = options;
|
|
28083
28138
|
const session = http2Sessions.getSession(authority, http2Options);
|
|
28084
|
-
const {
|
|
28085
|
-
HTTP2_HEADER_SCHEME,
|
|
28086
|
-
HTTP2_HEADER_METHOD,
|
|
28087
|
-
HTTP2_HEADER_PATH,
|
|
28088
|
-
HTTP2_HEADER_STATUS
|
|
28089
|
-
} = http2__default["default"].constants;
|
|
28139
|
+
const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } = http2__default["default"].constants;
|
|
28090
28140
|
const http2Headers = {
|
|
28091
28141
|
[HTTP2_HEADER_SCHEME]: options.protocol.replace(":", ""),
|
|
28092
28142
|
[HTTP2_HEADER_METHOD]: options.method,
|
|
@@ -28139,7 +28189,10 @@ var require_axios = __commonJS({
|
|
|
28139
28189
|
const abortEmitter = new events.EventEmitter();
|
|
28140
28190
|
function abort(reason) {
|
|
28141
28191
|
try {
|
|
28142
|
-
abortEmitter.emit(
|
|
28192
|
+
abortEmitter.emit(
|
|
28193
|
+
"abort",
|
|
28194
|
+
!reason || reason.type ? new CanceledError$1(null, config, req) : reason
|
|
28195
|
+
);
|
|
28143
28196
|
} catch (err) {
|
|
28144
28197
|
console.warn("emit error", err);
|
|
28145
28198
|
}
|
|
@@ -28185,11 +28238,13 @@ var require_axios = __commonJS({
|
|
|
28185
28238
|
const dataUrl = String(config.url || fullPath || "");
|
|
28186
28239
|
const estimated = estimateDataURLDecodedBytes(dataUrl);
|
|
28187
28240
|
if (estimated > config.maxContentLength) {
|
|
28188
|
-
return reject(
|
|
28189
|
-
|
|
28190
|
-
|
|
28191
|
-
|
|
28192
|
-
|
|
28241
|
+
return reject(
|
|
28242
|
+
new AxiosError$1(
|
|
28243
|
+
"maxContentLength size of " + config.maxContentLength + " exceeded",
|
|
28244
|
+
AxiosError$1.ERR_BAD_RESPONSE,
|
|
28245
|
+
config
|
|
28246
|
+
)
|
|
28247
|
+
);
|
|
28193
28248
|
}
|
|
28194
28249
|
}
|
|
28195
28250
|
let convertedData;
|
|
@@ -28225,11 +28280,9 @@ var require_axios = __commonJS({
|
|
|
28225
28280
|
});
|
|
28226
28281
|
}
|
|
28227
28282
|
if (supportedProtocols.indexOf(protocol) === -1) {
|
|
28228
|
-
return reject(
|
|
28229
|
-
"Unsupported protocol " + protocol,
|
|
28230
|
-
|
|
28231
|
-
config
|
|
28232
|
-
));
|
|
28283
|
+
return reject(
|
|
28284
|
+
new AxiosError$1("Unsupported protocol " + protocol, AxiosError$1.ERR_BAD_REQUEST, config)
|
|
28285
|
+
);
|
|
28233
28286
|
}
|
|
28234
28287
|
const headers = AxiosHeaders$1.from(config.headers).normalize();
|
|
28235
28288
|
headers.set("User-Agent", "axios/" + VERSION2, false);
|
|
@@ -28239,12 +28292,16 @@ var require_axios = __commonJS({
|
|
|
28239
28292
|
let maxDownloadRate = void 0;
|
|
28240
28293
|
if (utils$1.isSpecCompliantForm(data)) {
|
|
28241
28294
|
const userBoundary = headers.getContentType(/boundary=([-_\w\d]{10,70})/i);
|
|
28242
|
-
data = formDataToStream$1(
|
|
28243
|
-
|
|
28244
|
-
|
|
28245
|
-
|
|
28246
|
-
|
|
28247
|
-
|
|
28295
|
+
data = formDataToStream$1(
|
|
28296
|
+
data,
|
|
28297
|
+
(formHeaders) => {
|
|
28298
|
+
headers.set(formHeaders);
|
|
28299
|
+
},
|
|
28300
|
+
{
|
|
28301
|
+
tag: `axios-${VERSION2}-boundary`,
|
|
28302
|
+
boundary: userBoundary && userBoundary[1] || void 0
|
|
28303
|
+
}
|
|
28304
|
+
);
|
|
28248
28305
|
} else if (utils$1.isFormData(data) && utils$1.isFunction(data.getHeaders)) {
|
|
28249
28306
|
headers.set(data.getHeaders());
|
|
28250
28307
|
if (!headers.hasContentLength()) {
|
|
@@ -28265,19 +28322,23 @@ var require_axios = __commonJS({
|
|
|
28265
28322
|
} else if (utils$1.isString(data)) {
|
|
28266
28323
|
data = Buffer.from(data, "utf-8");
|
|
28267
28324
|
} else {
|
|
28268
|
-
return reject(
|
|
28269
|
-
|
|
28270
|
-
|
|
28271
|
-
|
|
28272
|
-
|
|
28325
|
+
return reject(
|
|
28326
|
+
new AxiosError$1(
|
|
28327
|
+
"Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",
|
|
28328
|
+
AxiosError$1.ERR_BAD_REQUEST,
|
|
28329
|
+
config
|
|
28330
|
+
)
|
|
28331
|
+
);
|
|
28273
28332
|
}
|
|
28274
28333
|
headers.setContentLength(data.length, false);
|
|
28275
28334
|
if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {
|
|
28276
|
-
return reject(
|
|
28277
|
-
|
|
28278
|
-
|
|
28279
|
-
|
|
28280
|
-
|
|
28335
|
+
return reject(
|
|
28336
|
+
new AxiosError$1(
|
|
28337
|
+
"Request body larger than maxBodyLength limit",
|
|
28338
|
+
AxiosError$1.ERR_BAD_REQUEST,
|
|
28339
|
+
config
|
|
28340
|
+
)
|
|
28341
|
+
);
|
|
28281
28342
|
}
|
|
28282
28343
|
}
|
|
28283
28344
|
const contentLength = utils$1.toFiniteNumber(headers.getContentLength());
|
|
@@ -28291,16 +28352,25 @@ var require_axios = __commonJS({
|
|
|
28291
28352
|
if (!utils$1.isStream(data)) {
|
|
28292
28353
|
data = stream__default["default"].Readable.from(data, { objectMode: false });
|
|
28293
28354
|
}
|
|
28294
|
-
data = stream__default["default"].pipeline(
|
|
28295
|
-
|
|
28296
|
-
|
|
28297
|
-
|
|
28298
|
-
|
|
28299
|
-
|
|
28300
|
-
|
|
28301
|
-
|
|
28355
|
+
data = stream__default["default"].pipeline(
|
|
28356
|
+
[
|
|
28357
|
+
data,
|
|
28358
|
+
new AxiosTransformStream$1({
|
|
28359
|
+
maxRate: utils$1.toFiniteNumber(maxUploadRate)
|
|
28360
|
+
})
|
|
28361
|
+
],
|
|
28362
|
+
utils$1.noop
|
|
28363
|
+
);
|
|
28364
|
+
onUploadProgress && data.on(
|
|
28365
|
+
"progress",
|
|
28366
|
+
flushOnFinish(
|
|
28367
|
+
data,
|
|
28368
|
+
progressEventDecorator(
|
|
28369
|
+
contentLength,
|
|
28370
|
+
progressEventReducer(asyncDecorator(onUploadProgress), false, 3)
|
|
28371
|
+
)
|
|
28302
28372
|
)
|
|
28303
|
-
)
|
|
28373
|
+
);
|
|
28304
28374
|
}
|
|
28305
28375
|
let auth = void 0;
|
|
28306
28376
|
if (config.auth) {
|
|
@@ -28351,7 +28421,11 @@ var require_axios = __commonJS({
|
|
|
28351
28421
|
} else {
|
|
28352
28422
|
options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
|
|
28353
28423
|
options.port = parsed.port;
|
|
28354
|
-
setProxy(
|
|
28424
|
+
setProxy(
|
|
28425
|
+
options,
|
|
28426
|
+
config.proxy,
|
|
28427
|
+
protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path
|
|
28428
|
+
);
|
|
28355
28429
|
}
|
|
28356
28430
|
let transport;
|
|
28357
28431
|
const isHttpsRequest = isHttps.test(options.protocol);
|
|
@@ -28389,13 +28463,16 @@ var require_axios = __commonJS({
|
|
|
28389
28463
|
const transformStream = new AxiosTransformStream$1({
|
|
28390
28464
|
maxRate: utils$1.toFiniteNumber(maxDownloadRate)
|
|
28391
28465
|
});
|
|
28392
|
-
onDownloadProgress && transformStream.on(
|
|
28393
|
-
|
|
28394
|
-
|
|
28395
|
-
|
|
28396
|
-
|
|
28466
|
+
onDownloadProgress && transformStream.on(
|
|
28467
|
+
"progress",
|
|
28468
|
+
flushOnFinish(
|
|
28469
|
+
transformStream,
|
|
28470
|
+
progressEventDecorator(
|
|
28471
|
+
responseLength,
|
|
28472
|
+
progressEventReducer(asyncDecorator(onDownloadProgress), true, 3)
|
|
28473
|
+
)
|
|
28397
28474
|
)
|
|
28398
|
-
)
|
|
28475
|
+
);
|
|
28399
28476
|
streams.push(transformStream);
|
|
28400
28477
|
}
|
|
28401
28478
|
let responseStream = res;
|
|
@@ -28445,12 +28522,14 @@ var require_axios = __commonJS({
|
|
|
28445
28522
|
if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {
|
|
28446
28523
|
rejected = true;
|
|
28447
28524
|
responseStream.destroy();
|
|
28448
|
-
abort(
|
|
28449
|
-
|
|
28450
|
-
|
|
28451
|
-
|
|
28452
|
-
|
|
28453
|
-
|
|
28525
|
+
abort(
|
|
28526
|
+
new AxiosError$1(
|
|
28527
|
+
"maxContentLength size of " + config.maxContentLength + " exceeded",
|
|
28528
|
+
AxiosError$1.ERR_BAD_RESPONSE,
|
|
28529
|
+
config,
|
|
28530
|
+
lastRequest
|
|
28531
|
+
)
|
|
28532
|
+
);
|
|
28454
28533
|
}
|
|
28455
28534
|
});
|
|
28456
28535
|
responseStream.on("aborted", function handlerStreamAborted() {
|
|
@@ -28509,12 +28588,14 @@ var require_axios = __commonJS({
|
|
|
28509
28588
|
if (config.timeout) {
|
|
28510
28589
|
const timeout = parseInt(config.timeout, 10);
|
|
28511
28590
|
if (Number.isNaN(timeout)) {
|
|
28512
|
-
abort(
|
|
28513
|
-
|
|
28514
|
-
|
|
28515
|
-
|
|
28516
|
-
|
|
28517
|
-
|
|
28591
|
+
abort(
|
|
28592
|
+
new AxiosError$1(
|
|
28593
|
+
"error trying to parse `config.timeout` to int",
|
|
28594
|
+
AxiosError$1.ERR_BAD_OPTION_VALUE,
|
|
28595
|
+
config,
|
|
28596
|
+
req
|
|
28597
|
+
)
|
|
28598
|
+
);
|
|
28518
28599
|
return;
|
|
28519
28600
|
}
|
|
28520
28601
|
req.setTimeout(timeout, function handleRequestTimeout() {
|
|
@@ -28524,12 +28605,14 @@ var require_axios = __commonJS({
|
|
|
28524
28605
|
if (config.timeoutErrorMessage) {
|
|
28525
28606
|
timeoutErrorMessage = config.timeoutErrorMessage;
|
|
28526
28607
|
}
|
|
28527
|
-
abort(
|
|
28528
|
-
|
|
28529
|
-
|
|
28530
|
-
|
|
28531
|
-
|
|
28532
|
-
|
|
28608
|
+
abort(
|
|
28609
|
+
new AxiosError$1(
|
|
28610
|
+
timeoutErrorMessage,
|
|
28611
|
+
transitional.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
|
|
28612
|
+
config,
|
|
28613
|
+
req
|
|
28614
|
+
)
|
|
28615
|
+
);
|
|
28533
28616
|
});
|
|
28534
28617
|
} else {
|
|
28535
28618
|
req.setTimeout(0);
|
|
@@ -28678,27 +28761,29 @@ var require_axios = __commonJS({
|
|
|
28678
28761
|
validateStatus: mergeDirectKeys,
|
|
28679
28762
|
headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
|
|
28680
28763
|
};
|
|
28681
|
-
utils$1.forEach(
|
|
28682
|
-
|
|
28683
|
-
|
|
28684
|
-
|
|
28685
|
-
|
|
28686
|
-
|
|
28687
|
-
const configValue = merge2(config1[prop], config2[prop], prop);
|
|
28688
|
-
utils$1.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
|
|
28689
|
-
}
|
|
28690
|
-
);
|
|
28764
|
+
utils$1.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
|
|
28765
|
+
if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
|
|
28766
|
+
const merge2 = utils$1.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
|
|
28767
|
+
const configValue = merge2(config1[prop], config2[prop], prop);
|
|
28768
|
+
utils$1.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
|
|
28769
|
+
});
|
|
28691
28770
|
return config;
|
|
28692
28771
|
}
|
|
28693
28772
|
var resolveConfig = (config) => {
|
|
28694
28773
|
const newConfig = mergeConfig({}, config);
|
|
28695
28774
|
let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
|
|
28696
28775
|
newConfig.headers = headers = AxiosHeaders$1.from(headers);
|
|
28697
|
-
newConfig.url = buildURL(
|
|
28776
|
+
newConfig.url = buildURL(
|
|
28777
|
+
buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls),
|
|
28778
|
+
config.params,
|
|
28779
|
+
config.paramsSerializer
|
|
28780
|
+
);
|
|
28698
28781
|
if (auth) {
|
|
28699
28782
|
headers.set(
|
|
28700
28783
|
"Authorization",
|
|
28701
|
-
"Basic " + btoa(
|
|
28784
|
+
"Basic " + btoa(
|
|
28785
|
+
(auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : "")
|
|
28786
|
+
)
|
|
28702
28787
|
);
|
|
28703
28788
|
}
|
|
28704
28789
|
if (utils$1.isFormData(data)) {
|
|
@@ -28760,13 +28845,17 @@ var require_axios = __commonJS({
|
|
|
28760
28845
|
config,
|
|
28761
28846
|
request
|
|
28762
28847
|
};
|
|
28763
|
-
settle(
|
|
28764
|
-
|
|
28765
|
-
|
|
28766
|
-
|
|
28767
|
-
|
|
28768
|
-
|
|
28769
|
-
|
|
28848
|
+
settle(
|
|
28849
|
+
function _resolve(value) {
|
|
28850
|
+
resolve(value);
|
|
28851
|
+
done();
|
|
28852
|
+
},
|
|
28853
|
+
function _reject(err) {
|
|
28854
|
+
reject(err);
|
|
28855
|
+
done();
|
|
28856
|
+
},
|
|
28857
|
+
response
|
|
28858
|
+
);
|
|
28770
28859
|
request = null;
|
|
28771
28860
|
}
|
|
28772
28861
|
if ("onloadend" in request) {
|
|
@@ -28802,12 +28891,14 @@ var require_axios = __commonJS({
|
|
|
28802
28891
|
if (_config.timeoutErrorMessage) {
|
|
28803
28892
|
timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
28804
28893
|
}
|
|
28805
|
-
reject(
|
|
28806
|
-
|
|
28807
|
-
|
|
28808
|
-
|
|
28809
|
-
|
|
28810
|
-
|
|
28894
|
+
reject(
|
|
28895
|
+
new AxiosError$1(
|
|
28896
|
+
timeoutErrorMessage,
|
|
28897
|
+
transitional.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
|
|
28898
|
+
config,
|
|
28899
|
+
request
|
|
28900
|
+
)
|
|
28901
|
+
);
|
|
28811
28902
|
request = null;
|
|
28812
28903
|
};
|
|
28813
28904
|
requestData === void 0 && requestHeaders.setContentType(null);
|
|
@@ -28847,7 +28938,13 @@ var require_axios = __commonJS({
|
|
|
28847
28938
|
}
|
|
28848
28939
|
const protocol = parseProtocol(_config.url);
|
|
28849
28940
|
if (protocol && platform.protocols.indexOf(protocol) === -1) {
|
|
28850
|
-
reject(
|
|
28941
|
+
reject(
|
|
28942
|
+
new AxiosError$1(
|
|
28943
|
+
"Unsupported protocol " + protocol + ":",
|
|
28944
|
+
AxiosError$1.ERR_BAD_REQUEST,
|
|
28945
|
+
config
|
|
28946
|
+
)
|
|
28947
|
+
);
|
|
28851
28948
|
return;
|
|
28852
28949
|
}
|
|
28853
28950
|
request.send(requestData || null);
|
|
@@ -28863,7 +28960,9 @@ var require_axios = __commonJS({
|
|
|
28863
28960
|
aborted = true;
|
|
28864
28961
|
unsubscribe();
|
|
28865
28962
|
const err = reason instanceof Error ? reason : this.reason;
|
|
28866
|
-
controller.abort(
|
|
28963
|
+
controller.abort(
|
|
28964
|
+
err instanceof AxiosError$1 ? err : new CanceledError$1(err instanceof Error ? err.message : err)
|
|
28965
|
+
);
|
|
28867
28966
|
}
|
|
28868
28967
|
};
|
|
28869
28968
|
let timer = timeout && setTimeout(() => {
|
|
@@ -28934,33 +29033,36 @@ var require_axios = __commonJS({
|
|
|
28934
29033
|
onFinish && onFinish(e);
|
|
28935
29034
|
}
|
|
28936
29035
|
};
|
|
28937
|
-
return new ReadableStream(
|
|
28938
|
-
|
|
28939
|
-
|
|
28940
|
-
|
|
28941
|
-
|
|
28942
|
-
|
|
28943
|
-
|
|
28944
|
-
|
|
28945
|
-
|
|
28946
|
-
|
|
28947
|
-
|
|
28948
|
-
|
|
28949
|
-
|
|
29036
|
+
return new ReadableStream(
|
|
29037
|
+
{
|
|
29038
|
+
async pull(controller) {
|
|
29039
|
+
try {
|
|
29040
|
+
const { done: done2, value } = await iterator2.next();
|
|
29041
|
+
if (done2) {
|
|
29042
|
+
_onFinish();
|
|
29043
|
+
controller.close();
|
|
29044
|
+
return;
|
|
29045
|
+
}
|
|
29046
|
+
let len = value.byteLength;
|
|
29047
|
+
if (onProgress) {
|
|
29048
|
+
let loadedBytes = bytes += len;
|
|
29049
|
+
onProgress(loadedBytes);
|
|
29050
|
+
}
|
|
29051
|
+
controller.enqueue(new Uint8Array(value));
|
|
29052
|
+
} catch (err) {
|
|
29053
|
+
_onFinish(err);
|
|
29054
|
+
throw err;
|
|
28950
29055
|
}
|
|
28951
|
-
|
|
28952
|
-
|
|
28953
|
-
_onFinish(
|
|
28954
|
-
|
|
29056
|
+
},
|
|
29057
|
+
cancel(reason) {
|
|
29058
|
+
_onFinish(reason);
|
|
29059
|
+
return iterator2.return();
|
|
28955
29060
|
}
|
|
28956
29061
|
},
|
|
28957
|
-
|
|
28958
|
-
|
|
28959
|
-
return iterator2.return();
|
|
29062
|
+
{
|
|
29063
|
+
highWaterMark: 2
|
|
28960
29064
|
}
|
|
28961
|
-
|
|
28962
|
-
highWaterMark: 2
|
|
28963
|
-
});
|
|
29065
|
+
);
|
|
28964
29066
|
};
|
|
28965
29067
|
var DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
28966
29068
|
var { isFunction } = utils$1;
|
|
@@ -28968,10 +29070,7 @@ var require_axios = __commonJS({
|
|
|
28968
29070
|
Request,
|
|
28969
29071
|
Response
|
|
28970
29072
|
}))(utils$1.global);
|
|
28971
|
-
var {
|
|
28972
|
-
ReadableStream: ReadableStream$1,
|
|
28973
|
-
TextEncoder: TextEncoder$1
|
|
28974
|
-
} = utils$1.global;
|
|
29073
|
+
var { ReadableStream: ReadableStream$1, TextEncoder: TextEncoder$1 } = utils$1.global;
|
|
28975
29074
|
var test = (fn, ...args) => {
|
|
28976
29075
|
try {
|
|
28977
29076
|
return !!fn(...args);
|
|
@@ -28980,9 +29079,13 @@ var require_axios = __commonJS({
|
|
|
28980
29079
|
}
|
|
28981
29080
|
};
|
|
28982
29081
|
var factory = (env) => {
|
|
28983
|
-
env = utils$1.merge.call(
|
|
28984
|
-
|
|
28985
|
-
|
|
29082
|
+
env = utils$1.merge.call(
|
|
29083
|
+
{
|
|
29084
|
+
skipUndefined: true
|
|
29085
|
+
},
|
|
29086
|
+
globalFetchAPI,
|
|
29087
|
+
env
|
|
29088
|
+
);
|
|
28986
29089
|
const { fetch: envFetch, Request, Response } = env;
|
|
28987
29090
|
const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === "function";
|
|
28988
29091
|
const isRequestSupported = isFunction(Request);
|
|
@@ -29015,7 +29118,11 @@ var require_axios = __commonJS({
|
|
|
29015
29118
|
if (method) {
|
|
29016
29119
|
return method.call(res);
|
|
29017
29120
|
}
|
|
29018
|
-
throw new AxiosError$1(
|
|
29121
|
+
throw new AxiosError$1(
|
|
29122
|
+
`Response type '${type}' is not supported`,
|
|
29123
|
+
AxiosError$1.ERR_NOT_SUPPORT,
|
|
29124
|
+
config
|
|
29125
|
+
);
|
|
29019
29126
|
});
|
|
29020
29127
|
});
|
|
29021
29128
|
})();
|
|
@@ -29064,7 +29171,10 @@ var require_axios = __commonJS({
|
|
|
29064
29171
|
} = resolveConfig(config);
|
|
29065
29172
|
let _fetch = envFetch || fetch;
|
|
29066
29173
|
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
29067
|
-
let composedSignal = composeSignals$1(
|
|
29174
|
+
let composedSignal = composeSignals$1(
|
|
29175
|
+
[signal, cancelToken && cancelToken.toAbortSignal()],
|
|
29176
|
+
timeout
|
|
29177
|
+
);
|
|
29068
29178
|
let request = null;
|
|
29069
29179
|
const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
|
|
29070
29180
|
composedSignal.unsubscribe();
|
|
@@ -29124,7 +29234,10 @@ var require_axios = __commonJS({
|
|
|
29124
29234
|
);
|
|
29125
29235
|
}
|
|
29126
29236
|
responseType = responseType || "text";
|
|
29127
|
-
let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || "text"](
|
|
29237
|
+
let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || "text"](
|
|
29238
|
+
response,
|
|
29239
|
+
config
|
|
29240
|
+
);
|
|
29128
29241
|
!isStreamResponse && unsubscribe && unsubscribe();
|
|
29129
29242
|
return await new Promise((resolve, reject) => {
|
|
29130
29243
|
settle(resolve, reject, {
|
|
@@ -29140,7 +29253,13 @@ var require_axios = __commonJS({
|
|
|
29140
29253
|
unsubscribe && unsubscribe();
|
|
29141
29254
|
if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
|
|
29142
29255
|
throw Object.assign(
|
|
29143
|
-
new AxiosError$1(
|
|
29256
|
+
new AxiosError$1(
|
|
29257
|
+
"Network Error",
|
|
29258
|
+
AxiosError$1.ERR_NETWORK,
|
|
29259
|
+
config,
|
|
29260
|
+
request,
|
|
29261
|
+
err && err.response
|
|
29262
|
+
),
|
|
29144
29263
|
{
|
|
29145
29264
|
cause: err.cause || err
|
|
29146
29265
|
}
|
|
@@ -29154,11 +29273,7 @@ var require_axios = __commonJS({
|
|
|
29154
29273
|
var getFetch = (config) => {
|
|
29155
29274
|
let env = config && config.env || {};
|
|
29156
29275
|
const { fetch: fetch2, Request, Response } = env;
|
|
29157
|
-
const seeds = [
|
|
29158
|
-
Request,
|
|
29159
|
-
Response,
|
|
29160
|
-
fetch2
|
|
29161
|
-
];
|
|
29276
|
+
const seeds = [Request, Response, fetch2];
|
|
29162
29277
|
let len = seeds.length, i = len, seed, target, map = seedCache;
|
|
29163
29278
|
while (i--) {
|
|
29164
29279
|
seed = seeds[i];
|
|
@@ -29243,37 +29358,33 @@ var require_axios = __commonJS({
|
|
|
29243
29358
|
function dispatchRequest(config) {
|
|
29244
29359
|
throwIfCancellationRequested(config);
|
|
29245
29360
|
config.headers = AxiosHeaders$1.from(config.headers);
|
|
29246
|
-
config.data = transformData.call(
|
|
29247
|
-
config,
|
|
29248
|
-
config.transformRequest
|
|
29249
|
-
);
|
|
29361
|
+
config.data = transformData.call(config, config.transformRequest);
|
|
29250
29362
|
if (["post", "put", "patch"].indexOf(config.method) !== -1) {
|
|
29251
29363
|
config.headers.setContentType("application/x-www-form-urlencoded", false);
|
|
29252
29364
|
}
|
|
29253
29365
|
const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter, config);
|
|
29254
|
-
return adapter(config).then(
|
|
29255
|
-
|
|
29256
|
-
response.data = transformData.call(
|
|
29257
|
-
config,
|
|
29258
|
-
config.transformResponse,
|
|
29259
|
-
response
|
|
29260
|
-
);
|
|
29261
|
-
response.headers = AxiosHeaders$1.from(response.headers);
|
|
29262
|
-
return response;
|
|
29263
|
-
}, function onAdapterRejection(reason) {
|
|
29264
|
-
if (!isCancel(reason)) {
|
|
29366
|
+
return adapter(config).then(
|
|
29367
|
+
function onAdapterResolution(response) {
|
|
29265
29368
|
throwIfCancellationRequested(config);
|
|
29266
|
-
|
|
29267
|
-
|
|
29268
|
-
|
|
29269
|
-
|
|
29270
|
-
|
|
29271
|
-
|
|
29272
|
-
|
|
29369
|
+
response.data = transformData.call(config, config.transformResponse, response);
|
|
29370
|
+
response.headers = AxiosHeaders$1.from(response.headers);
|
|
29371
|
+
return response;
|
|
29372
|
+
},
|
|
29373
|
+
function onAdapterRejection(reason) {
|
|
29374
|
+
if (!isCancel(reason)) {
|
|
29375
|
+
throwIfCancellationRequested(config);
|
|
29376
|
+
if (reason && reason.response) {
|
|
29377
|
+
reason.response.data = transformData.call(
|
|
29378
|
+
config,
|
|
29379
|
+
config.transformResponse,
|
|
29380
|
+
reason.response
|
|
29381
|
+
);
|
|
29382
|
+
reason.response.headers = AxiosHeaders$1.from(reason.response.headers);
|
|
29383
|
+
}
|
|
29273
29384
|
}
|
|
29385
|
+
return Promise.reject(reason);
|
|
29274
29386
|
}
|
|
29275
|
-
|
|
29276
|
-
});
|
|
29387
|
+
);
|
|
29277
29388
|
}
|
|
29278
29389
|
var validators$1 = {};
|
|
29279
29390
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
|
|
@@ -29324,7 +29435,10 @@ var require_axios = __commonJS({
|
|
|
29324
29435
|
const value = options[opt];
|
|
29325
29436
|
const result = value === void 0 || validator2(value, opt, options);
|
|
29326
29437
|
if (result !== true) {
|
|
29327
|
-
throw new AxiosError$1(
|
|
29438
|
+
throw new AxiosError$1(
|
|
29439
|
+
"option " + opt + " must be " + result,
|
|
29440
|
+
AxiosError$1.ERR_BAD_OPTION_VALUE
|
|
29441
|
+
);
|
|
29328
29442
|
}
|
|
29329
29443
|
continue;
|
|
29330
29444
|
}
|
|
@@ -29384,12 +29498,16 @@ var require_axios = __commonJS({
|
|
|
29384
29498
|
config = mergeConfig(this.defaults, config);
|
|
29385
29499
|
const { transitional, paramsSerializer, headers } = config;
|
|
29386
29500
|
if (transitional !== void 0) {
|
|
29387
|
-
validator.assertOptions(
|
|
29388
|
-
|
|
29389
|
-
|
|
29390
|
-
|
|
29391
|
-
|
|
29392
|
-
|
|
29501
|
+
validator.assertOptions(
|
|
29502
|
+
transitional,
|
|
29503
|
+
{
|
|
29504
|
+
silentJSONParsing: validators.transitional(validators.boolean),
|
|
29505
|
+
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
29506
|
+
clarifyTimeoutError: validators.transitional(validators.boolean),
|
|
29507
|
+
legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
|
|
29508
|
+
},
|
|
29509
|
+
false
|
|
29510
|
+
);
|
|
29393
29511
|
}
|
|
29394
29512
|
if (paramsSerializer != null) {
|
|
29395
29513
|
if (utils$1.isFunction(paramsSerializer)) {
|
|
@@ -29397,10 +29515,14 @@ var require_axios = __commonJS({
|
|
|
29397
29515
|
serialize: paramsSerializer
|
|
29398
29516
|
};
|
|
29399
29517
|
} else {
|
|
29400
|
-
validator.assertOptions(
|
|
29401
|
-
|
|
29402
|
-
|
|
29403
|
-
|
|
29518
|
+
validator.assertOptions(
|
|
29519
|
+
paramsSerializer,
|
|
29520
|
+
{
|
|
29521
|
+
encode: validators.function,
|
|
29522
|
+
serialize: validators.function
|
|
29523
|
+
},
|
|
29524
|
+
true
|
|
29525
|
+
);
|
|
29404
29526
|
}
|
|
29405
29527
|
}
|
|
29406
29528
|
if (config.allowAbsoluteUrls !== void 0) ;
|
|
@@ -29409,21 +29531,19 @@ var require_axios = __commonJS({
|
|
|
29409
29531
|
} else {
|
|
29410
29532
|
config.allowAbsoluteUrls = true;
|
|
29411
29533
|
}
|
|
29412
|
-
validator.assertOptions(
|
|
29413
|
-
|
|
29414
|
-
|
|
29415
|
-
|
|
29416
|
-
|
|
29417
|
-
|
|
29418
|
-
|
|
29419
|
-
headers[config.method]
|
|
29420
|
-
);
|
|
29421
|
-
headers && utils$1.forEach(
|
|
29422
|
-
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
29423
|
-
(method) => {
|
|
29424
|
-
delete headers[method];
|
|
29425
|
-
}
|
|
29534
|
+
validator.assertOptions(
|
|
29535
|
+
config,
|
|
29536
|
+
{
|
|
29537
|
+
baseUrl: validators.spelling("baseURL"),
|
|
29538
|
+
withXsrfToken: validators.spelling("withXSRFToken")
|
|
29539
|
+
},
|
|
29540
|
+
true
|
|
29426
29541
|
);
|
|
29542
|
+
config.method = (config.method || this.defaults.method || "get").toLowerCase();
|
|
29543
|
+
let contextHeaders = headers && utils$1.merge(headers.common, headers[config.method]);
|
|
29544
|
+
headers && utils$1.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (method) => {
|
|
29545
|
+
delete headers[method];
|
|
29546
|
+
});
|
|
29427
29547
|
config.headers = AxiosHeaders$1.concat(contextHeaders, headers);
|
|
29428
29548
|
const requestInterceptorChain = [];
|
|
29429
29549
|
let synchronousRequestInterceptors = true;
|
|
@@ -29490,24 +29610,28 @@ var require_axios = __commonJS({
|
|
|
29490
29610
|
};
|
|
29491
29611
|
utils$1.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
|
|
29492
29612
|
Axios.prototype[method] = function(url2, config) {
|
|
29493
|
-
return this.request(
|
|
29494
|
-
|
|
29495
|
-
|
|
29496
|
-
|
|
29497
|
-
|
|
29613
|
+
return this.request(
|
|
29614
|
+
mergeConfig(config || {}, {
|
|
29615
|
+
method,
|
|
29616
|
+
url: url2,
|
|
29617
|
+
data: (config || {}).data
|
|
29618
|
+
})
|
|
29619
|
+
);
|
|
29498
29620
|
};
|
|
29499
29621
|
});
|
|
29500
29622
|
utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
|
|
29501
29623
|
function generateHTTPMethod(isForm) {
|
|
29502
29624
|
return function httpMethod(url2, data, config) {
|
|
29503
|
-
return this.request(
|
|
29504
|
-
|
|
29505
|
-
|
|
29506
|
-
|
|
29507
|
-
|
|
29508
|
-
|
|
29509
|
-
|
|
29510
|
-
|
|
29625
|
+
return this.request(
|
|
29626
|
+
mergeConfig(config || {}, {
|
|
29627
|
+
method,
|
|
29628
|
+
headers: isForm ? {
|
|
29629
|
+
"Content-Type": "multipart/form-data"
|
|
29630
|
+
} : {},
|
|
29631
|
+
url: url2,
|
|
29632
|
+
data
|
|
29633
|
+
})
|
|
29634
|
+
);
|
|
29511
29635
|
};
|
|
29512
29636
|
}
|
|
29513
29637
|
Axios.prototype[method] = generateHTTPMethod();
|
|
@@ -30426,7 +30550,7 @@ function mergeTwo(target, source, ancestors, depth) {
|
|
|
30426
30550
|
}
|
|
30427
30551
|
|
|
30428
30552
|
// src/version.ts
|
|
30429
|
-
var VERSION = true ? "4.
|
|
30553
|
+
var VERSION = true ? "4.5.0" : "0.0.0-test";
|
|
30430
30554
|
|
|
30431
30555
|
export {
|
|
30432
30556
|
__toESM,
|
|
@@ -30477,6 +30601,6 @@ mime-types/index.js:
|
|
|
30477
30601
|
*)
|
|
30478
30602
|
|
|
30479
30603
|
axios/dist/node/axios.cjs:
|
|
30480
|
-
(*! Axios v1.13.
|
|
30604
|
+
(*! Axios v1.13.6 Copyright (c) 2026 Matt Zabriskie and contributors *)
|
|
30481
30605
|
*/
|
|
30482
|
-
//# sourceMappingURL=chunk-
|
|
30606
|
+
//# sourceMappingURL=chunk-T2KXS7WW.js.map
|