@strkfarm/sdk 2.0.0-dev.19 → 2.0.0-dev.20
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.browser.global.js +222 -198
- package/dist/index.browser.mjs +59 -45
- package/dist/index.d.ts +8 -4
- package/dist/index.js +59 -45
- package/dist/index.mjs +59 -45
- package/package.json +1 -1
- package/src/modules/ExtendedWrapperSDk/wrapper.ts +7 -3
- package/src/strategies/universal-adapters/extended-adapter.ts +63 -49
- package/src/strategies/vesu-extended-strategy/vesu-extended-strategy.tsx +9 -9
|
@@ -1418,8 +1418,8 @@ var strkfarm_risk_engine = (() => {
|
|
|
1418
1418
|
const base2 = (_a21 = nearestCommonProto(...ingredients)) !== null && _a21 !== void 0 ? _a21 : Object.prototype;
|
|
1419
1419
|
const mixedProto = Object.create(base2);
|
|
1420
1420
|
const visitedProtos = protoChain(base2);
|
|
1421
|
-
for (let
|
|
1422
|
-
let protos = protoChain(
|
|
1421
|
+
for (let prototype3 of ingredients) {
|
|
1422
|
+
let protos = protoChain(prototype3);
|
|
1423
1423
|
for (let i = protos.length - 1; i >= 0; i--) {
|
|
1424
1424
|
let newProto = protos[i];
|
|
1425
1425
|
if (visitedProtos.indexOf(newProto) === -1) {
|
|
@@ -1451,9 +1451,9 @@ var strkfarm_risk_engine = (() => {
|
|
|
1451
1451
|
}
|
|
1452
1452
|
return void 0;
|
|
1453
1453
|
};
|
|
1454
|
-
proxyMix = (ingredients,
|
|
1454
|
+
proxyMix = (ingredients, prototype3 = Object.prototype) => new Proxy({}, {
|
|
1455
1455
|
getPrototypeOf() {
|
|
1456
|
-
return
|
|
1456
|
+
return prototype3;
|
|
1457
1457
|
},
|
|
1458
1458
|
setPrototypeOf() {
|
|
1459
1459
|
throw Error("Cannot set prototype of Proxies created by ts-mixer");
|
|
@@ -1465,10 +1465,10 @@ var strkfarm_risk_engine = (() => {
|
|
|
1465
1465
|
throw new Error("Cannot define new properties on Proxies created by ts-mixer");
|
|
1466
1466
|
},
|
|
1467
1467
|
has(_, prop) {
|
|
1468
|
-
return getIngredientWithProp(prop, ingredients) !== void 0 ||
|
|
1468
|
+
return getIngredientWithProp(prop, ingredients) !== void 0 || prototype3[prop] !== void 0;
|
|
1469
1469
|
},
|
|
1470
1470
|
get(_, prop) {
|
|
1471
|
-
return (getIngredientWithProp(prop, ingredients) ||
|
|
1471
|
+
return (getIngredientWithProp(prop, ingredients) || prototype3)[prop];
|
|
1472
1472
|
},
|
|
1473
1473
|
set(_, prop, val) {
|
|
1474
1474
|
const ingredientWithProp = getIngredientWithProp(prop, ingredients);
|
|
@@ -15048,9 +15048,9 @@ ${r2}}` : "}", l2;
|
|
|
15048
15048
|
function isObject4(data) {
|
|
15049
15049
|
return toString6.call(data) === "[object Object]";
|
|
15050
15050
|
}
|
|
15051
|
-
function isInstanceStrict(data,
|
|
15051
|
+
function isInstanceStrict(data, prototype3) {
|
|
15052
15052
|
try {
|
|
15053
|
-
return data instanceof
|
|
15053
|
+
return data instanceof prototype3;
|
|
15054
15054
|
} catch (error2) {
|
|
15055
15055
|
return false;
|
|
15056
15056
|
}
|
|
@@ -17640,9 +17640,9 @@ ${r2}}` : "}", l2;
|
|
|
17640
17640
|
const { captureStackTrace } = Error;
|
|
17641
17641
|
captureStackTrace && captureStackTrace(target, fn);
|
|
17642
17642
|
}
|
|
17643
|
-
function fixProto2(target,
|
|
17643
|
+
function fixProto2(target, prototype3) {
|
|
17644
17644
|
const { setPrototypeOf: setPrototypeOf2 } = Object;
|
|
17645
|
-
setPrototypeOf2 ? setPrototypeOf2(target,
|
|
17645
|
+
setPrototypeOf2 ? setPrototypeOf2(target, prototype3) : target.__proto__ = prototype3;
|
|
17646
17646
|
}
|
|
17647
17647
|
var CustomError2 = class extends Error {
|
|
17648
17648
|
constructor(message) {
|
|
@@ -17784,7 +17784,7 @@ ${r2}}` : "}", l2;
|
|
|
17784
17784
|
toHexString: () => toHexString2,
|
|
17785
17785
|
toStorageKey: () => toStorageKey2
|
|
17786
17786
|
});
|
|
17787
|
-
var
|
|
17787
|
+
var import_utils72 = require_utils();
|
|
17788
17788
|
function isHex3(hex) {
|
|
17789
17789
|
return /^0x[0-9a-f]*$/i.test(hex);
|
|
17790
17790
|
}
|
|
@@ -17857,7 +17857,7 @@ ${r2}}` : "}", l2;
|
|
|
17857
17857
|
if (adaptedValue.length % 2 !== 0) {
|
|
17858
17858
|
adaptedValue = `0${adaptedValue}`;
|
|
17859
17859
|
}
|
|
17860
|
-
return (0,
|
|
17860
|
+
return (0, import_utils72.hexToBytes)(adaptedValue);
|
|
17861
17861
|
}
|
|
17862
17862
|
function addPercent2(number2, percent) {
|
|
17863
17863
|
const bigIntNum = BigInt(number2);
|
|
@@ -38830,9 +38830,9 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
38830
38830
|
const { captureStackTrace } = Error;
|
|
38831
38831
|
captureStackTrace && captureStackTrace(target, fn);
|
|
38832
38832
|
}
|
|
38833
|
-
function fixProto(target,
|
|
38833
|
+
function fixProto(target, prototype3) {
|
|
38834
38834
|
const { setPrototypeOf: setPrototypeOf2 } = Object;
|
|
38835
|
-
setPrototypeOf2 ? setPrototypeOf2(target,
|
|
38835
|
+
setPrototypeOf2 ? setPrototypeOf2(target, prototype3) : target.__proto__ = prototype3;
|
|
38836
38836
|
}
|
|
38837
38837
|
var CustomError = class extends Error {
|
|
38838
38838
|
constructor(message) {
|
|
@@ -46575,14 +46575,14 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
46575
46575
|
}
|
|
46576
46576
|
};
|
|
46577
46577
|
|
|
46578
|
-
// node_modules/.pnpm/axios@1.13.
|
|
46578
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/helpers/bind.js
|
|
46579
46579
|
function bind(fn, thisArg) {
|
|
46580
46580
|
return function wrap4() {
|
|
46581
46581
|
return fn.apply(thisArg, arguments);
|
|
46582
46582
|
};
|
|
46583
46583
|
}
|
|
46584
46584
|
|
|
46585
|
-
// node_modules/.pnpm/axios@1.13.
|
|
46585
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/utils.js
|
|
46586
46586
|
var { toString: toString2 } = Object.prototype;
|
|
46587
46587
|
var { getPrototypeOf } = Object;
|
|
46588
46588
|
var { iterator, toStringTag } = Symbol;
|
|
@@ -46619,8 +46619,8 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
46619
46619
|
if (kindOf(val) !== "object") {
|
|
46620
46620
|
return false;
|
|
46621
46621
|
}
|
|
46622
|
-
const
|
|
46623
|
-
return (
|
|
46622
|
+
const prototype3 = getPrototypeOf(val);
|
|
46623
|
+
return (prototype3 === null || prototype3 === Object.prototype || Object.getPrototypeOf(prototype3) === null) && !(toStringTag in val) && !(iterator in val);
|
|
46624
46624
|
};
|
|
46625
46625
|
var isEmptyObject = (val) => {
|
|
46626
46626
|
if (!isObject3(val) || isBuffer2(val)) {
|
|
@@ -46715,9 +46715,19 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
46715
46715
|
var extend = (a, b, thisArg, { allOwnKeys } = {}) => {
|
|
46716
46716
|
forEach(b, (val, key) => {
|
|
46717
46717
|
if (thisArg && isFunction(val)) {
|
|
46718
|
-
a
|
|
46718
|
+
Object.defineProperty(a, key, {
|
|
46719
|
+
value: bind(val, thisArg),
|
|
46720
|
+
writable: true,
|
|
46721
|
+
enumerable: true,
|
|
46722
|
+
configurable: true
|
|
46723
|
+
});
|
|
46719
46724
|
} else {
|
|
46720
|
-
a
|
|
46725
|
+
Object.defineProperty(a, key, {
|
|
46726
|
+
value: val,
|
|
46727
|
+
writable: true,
|
|
46728
|
+
enumerable: true,
|
|
46729
|
+
configurable: true
|
|
46730
|
+
});
|
|
46721
46731
|
}
|
|
46722
46732
|
}, { allOwnKeys });
|
|
46723
46733
|
return a;
|
|
@@ -46728,9 +46738,14 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
46728
46738
|
}
|
|
46729
46739
|
return content;
|
|
46730
46740
|
};
|
|
46731
|
-
var inherits = (constructor, superConstructor, props,
|
|
46732
|
-
constructor.prototype = Object.create(superConstructor.prototype,
|
|
46733
|
-
constructor.prototype
|
|
46741
|
+
var inherits = (constructor, superConstructor, props, descriptors) => {
|
|
46742
|
+
constructor.prototype = Object.create(superConstructor.prototype, descriptors);
|
|
46743
|
+
Object.defineProperty(constructor.prototype, "constructor", {
|
|
46744
|
+
value: constructor,
|
|
46745
|
+
writable: true,
|
|
46746
|
+
enumerable: false,
|
|
46747
|
+
configurable: true
|
|
46748
|
+
});
|
|
46734
46749
|
Object.defineProperty(constructor, "super", {
|
|
46735
46750
|
value: superConstructor.prototype
|
|
46736
46751
|
});
|
|
@@ -46811,9 +46826,9 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
46811
46826
|
var hasOwnProperty = (({ hasOwnProperty: hasOwnProperty9 }) => (obj, prop) => hasOwnProperty9.call(obj, prop))(Object.prototype);
|
|
46812
46827
|
var isRegExp = kindOfTest("RegExp");
|
|
46813
46828
|
var reduceDescriptors = (obj, reducer) => {
|
|
46814
|
-
const
|
|
46829
|
+
const descriptors = Object.getOwnPropertyDescriptors(obj);
|
|
46815
46830
|
const reducedDescriptors = {};
|
|
46816
|
-
forEach(
|
|
46831
|
+
forEach(descriptors, (descriptor, name) => {
|
|
46817
46832
|
let ret;
|
|
46818
46833
|
if ((ret = reducer(descriptor, name, obj)) !== false) {
|
|
46819
46834
|
reducedDescriptors[name] = ret || descriptor;
|
|
@@ -46967,26 +46982,39 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
46967
46982
|
isIterable
|
|
46968
46983
|
};
|
|
46969
46984
|
|
|
46970
|
-
// node_modules/.pnpm/axios@1.13.
|
|
46971
|
-
|
|
46972
|
-
|
|
46973
|
-
|
|
46974
|
-
|
|
46975
|
-
|
|
46976
|
-
|
|
46985
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/core/AxiosError.js
|
|
46986
|
+
var AxiosError = class _AxiosError extends Error {
|
|
46987
|
+
static from(error2, code, config3, request, response, customProps) {
|
|
46988
|
+
const axiosError = new _AxiosError(error2.message, code || error2.code, config3, request, response);
|
|
46989
|
+
axiosError.cause = error2;
|
|
46990
|
+
axiosError.name = error2.name;
|
|
46991
|
+
customProps && Object.assign(axiosError, customProps);
|
|
46992
|
+
return axiosError;
|
|
46977
46993
|
}
|
|
46978
|
-
|
|
46979
|
-
|
|
46980
|
-
|
|
46981
|
-
|
|
46982
|
-
|
|
46983
|
-
|
|
46984
|
-
|
|
46985
|
-
|
|
46994
|
+
/**
|
|
46995
|
+
* Create an Error with the specified message, config, error code, request and response.
|
|
46996
|
+
*
|
|
46997
|
+
* @param {string} message The error message.
|
|
46998
|
+
* @param {string} [code] The error code (for example, 'ECONNABORTED').
|
|
46999
|
+
* @param {Object} [config] The config.
|
|
47000
|
+
* @param {Object} [request] The request.
|
|
47001
|
+
* @param {Object} [response] The response.
|
|
47002
|
+
*
|
|
47003
|
+
* @returns {Error} The created error.
|
|
47004
|
+
*/
|
|
47005
|
+
constructor(message, code, config3, request, response) {
|
|
47006
|
+
super(message);
|
|
47007
|
+
this.name = "AxiosError";
|
|
47008
|
+
this.isAxiosError = true;
|
|
47009
|
+
code && (this.code = code);
|
|
47010
|
+
config3 && (this.config = config3);
|
|
47011
|
+
request && (this.request = request);
|
|
47012
|
+
if (response) {
|
|
47013
|
+
this.response = response;
|
|
47014
|
+
this.status = response.status;
|
|
47015
|
+
}
|
|
46986
47016
|
}
|
|
46987
|
-
|
|
46988
|
-
utils_default.inherits(AxiosError, Error, {
|
|
46989
|
-
toJSON: function toJSON() {
|
|
47017
|
+
toJSON() {
|
|
46990
47018
|
return {
|
|
46991
47019
|
// Standard
|
|
46992
47020
|
message: this.message,
|
|
@@ -47005,51 +47033,25 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
47005
47033
|
status: this.status
|
|
47006
47034
|
};
|
|
47007
47035
|
}
|
|
47008
|
-
});
|
|
47009
|
-
var prototype = AxiosError.prototype;
|
|
47010
|
-
var descriptors = {};
|
|
47011
|
-
[
|
|
47012
|
-
"ERR_BAD_OPTION_VALUE",
|
|
47013
|
-
"ERR_BAD_OPTION",
|
|
47014
|
-
"ECONNABORTED",
|
|
47015
|
-
"ETIMEDOUT",
|
|
47016
|
-
"ERR_NETWORK",
|
|
47017
|
-
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
47018
|
-
"ERR_DEPRECATED",
|
|
47019
|
-
"ERR_BAD_RESPONSE",
|
|
47020
|
-
"ERR_BAD_REQUEST",
|
|
47021
|
-
"ERR_CANCELED",
|
|
47022
|
-
"ERR_NOT_SUPPORT",
|
|
47023
|
-
"ERR_INVALID_URL"
|
|
47024
|
-
// eslint-disable-next-line func-names
|
|
47025
|
-
].forEach((code) => {
|
|
47026
|
-
descriptors[code] = { value: code };
|
|
47027
|
-
});
|
|
47028
|
-
Object.defineProperties(AxiosError, descriptors);
|
|
47029
|
-
Object.defineProperty(prototype, "isAxiosError", { value: true });
|
|
47030
|
-
AxiosError.from = (error2, code, config3, request, response, customProps) => {
|
|
47031
|
-
const axiosError = Object.create(prototype);
|
|
47032
|
-
utils_default.toFlatObject(error2, axiosError, function filter2(obj) {
|
|
47033
|
-
return obj !== Error.prototype;
|
|
47034
|
-
}, (prop) => {
|
|
47035
|
-
return prop !== "isAxiosError";
|
|
47036
|
-
});
|
|
47037
|
-
const msg = error2 && error2.message ? error2.message : "Error";
|
|
47038
|
-
const errCode = code == null && error2 ? error2.code : code;
|
|
47039
|
-
AxiosError.call(axiosError, msg, errCode, config3, request, response);
|
|
47040
|
-
if (error2 && axiosError.cause == null) {
|
|
47041
|
-
Object.defineProperty(axiosError, "cause", { value: error2, configurable: true });
|
|
47042
|
-
}
|
|
47043
|
-
axiosError.name = error2 && error2.name || "Error";
|
|
47044
|
-
customProps && Object.assign(axiosError, customProps);
|
|
47045
|
-
return axiosError;
|
|
47046
47036
|
};
|
|
47037
|
+
AxiosError.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
|
|
47038
|
+
AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
|
|
47039
|
+
AxiosError.ECONNABORTED = "ECONNABORTED";
|
|
47040
|
+
AxiosError.ETIMEDOUT = "ETIMEDOUT";
|
|
47041
|
+
AxiosError.ERR_NETWORK = "ERR_NETWORK";
|
|
47042
|
+
AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
|
|
47043
|
+
AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
|
|
47044
|
+
AxiosError.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
|
|
47045
|
+
AxiosError.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
|
|
47046
|
+
AxiosError.ERR_CANCELED = "ERR_CANCELED";
|
|
47047
|
+
AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
47048
|
+
AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
47047
47049
|
var AxiosError_default = AxiosError;
|
|
47048
47050
|
|
|
47049
|
-
// node_modules/.pnpm/axios@1.13.
|
|
47051
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/helpers/null.js
|
|
47050
47052
|
var null_default = null;
|
|
47051
47053
|
|
|
47052
|
-
// node_modules/.pnpm/axios@1.13.
|
|
47054
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/helpers/toFormData.js
|
|
47053
47055
|
function isVisitable(thing) {
|
|
47054
47056
|
return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
|
|
47055
47057
|
}
|
|
@@ -47164,7 +47166,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
47164
47166
|
}
|
|
47165
47167
|
var toFormData_default = toFormData;
|
|
47166
47168
|
|
|
47167
|
-
// node_modules/.pnpm/axios@1.13.
|
|
47169
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
|
|
47168
47170
|
function encode2(str) {
|
|
47169
47171
|
const charMap = {
|
|
47170
47172
|
"!": "%21",
|
|
@@ -47183,11 +47185,11 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
47183
47185
|
this._pairs = [];
|
|
47184
47186
|
params && toFormData_default(params, this, options);
|
|
47185
47187
|
}
|
|
47186
|
-
var
|
|
47187
|
-
|
|
47188
|
+
var prototype = AxiosURLSearchParams.prototype;
|
|
47189
|
+
prototype.append = function append(name, value) {
|
|
47188
47190
|
this._pairs.push([name, value]);
|
|
47189
47191
|
};
|
|
47190
|
-
|
|
47192
|
+
prototype.toString = function toString3(encoder) {
|
|
47191
47193
|
const _encode = encoder ? function(value) {
|
|
47192
47194
|
return encoder.call(this, value, encode2);
|
|
47193
47195
|
} : encode2;
|
|
@@ -47197,7 +47199,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
47197
47199
|
};
|
|
47198
47200
|
var AxiosURLSearchParams_default = AxiosURLSearchParams;
|
|
47199
47201
|
|
|
47200
|
-
// node_modules/.pnpm/axios@1.13.
|
|
47202
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/helpers/buildURL.js
|
|
47201
47203
|
function encode3(val) {
|
|
47202
47204
|
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
47203
47205
|
}
|
|
@@ -47206,17 +47208,15 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
47206
47208
|
return url;
|
|
47207
47209
|
}
|
|
47208
47210
|
const _encode = options && options.encode || encode3;
|
|
47209
|
-
|
|
47210
|
-
options
|
|
47211
|
-
|
|
47212
|
-
|
|
47213
|
-
}
|
|
47214
|
-
const serializeFn = options && options.serialize;
|
|
47211
|
+
const _options = utils_default.isFunction(options) ? {
|
|
47212
|
+
serialize: options
|
|
47213
|
+
} : options;
|
|
47214
|
+
const serializeFn = _options && _options.serialize;
|
|
47215
47215
|
let serializedParams;
|
|
47216
47216
|
if (serializeFn) {
|
|
47217
|
-
serializedParams = serializeFn(params,
|
|
47217
|
+
serializedParams = serializeFn(params, _options);
|
|
47218
47218
|
} else {
|
|
47219
|
-
serializedParams = utils_default.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams_default(params,
|
|
47219
|
+
serializedParams = utils_default.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams_default(params, _options).toString(_encode);
|
|
47220
47220
|
}
|
|
47221
47221
|
if (serializedParams) {
|
|
47222
47222
|
const hashmarkIndex = url.indexOf("#");
|
|
@@ -47228,7 +47228,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
47228
47228
|
return url;
|
|
47229
47229
|
}
|
|
47230
47230
|
|
|
47231
|
-
// node_modules/.pnpm/axios@1.13.
|
|
47231
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/core/InterceptorManager.js
|
|
47232
47232
|
var InterceptorManager = class {
|
|
47233
47233
|
constructor() {
|
|
47234
47234
|
this.handlers = [];
|
|
@@ -47238,6 +47238,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
47238
47238
|
*
|
|
47239
47239
|
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
47240
47240
|
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
47241
|
+
* @param {Object} options The options for the interceptor, synchronous and runWhen
|
|
47241
47242
|
*
|
|
47242
47243
|
* @return {Number} An ID used to remove interceptor later
|
|
47243
47244
|
*/
|
|
@@ -47292,23 +47293,23 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
47292
47293
|
};
|
|
47293
47294
|
var InterceptorManager_default = InterceptorManager;
|
|
47294
47295
|
|
|
47295
|
-
// node_modules/.pnpm/axios@1.13.
|
|
47296
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/defaults/transitional.js
|
|
47296
47297
|
var transitional_default = {
|
|
47297
47298
|
silentJSONParsing: true,
|
|
47298
47299
|
forcedJSONParsing: true,
|
|
47299
47300
|
clarifyTimeoutError: false
|
|
47300
47301
|
};
|
|
47301
47302
|
|
|
47302
|
-
// node_modules/.pnpm/axios@1.13.
|
|
47303
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js
|
|
47303
47304
|
var URLSearchParams_default = typeof URLSearchParams !== "undefined" ? URLSearchParams : AxiosURLSearchParams_default;
|
|
47304
47305
|
|
|
47305
|
-
// node_modules/.pnpm/axios@1.13.
|
|
47306
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/platform/browser/classes/FormData.js
|
|
47306
47307
|
var FormData_default = typeof FormData !== "undefined" ? FormData : null;
|
|
47307
47308
|
|
|
47308
|
-
// node_modules/.pnpm/axios@1.13.
|
|
47309
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/platform/browser/classes/Blob.js
|
|
47309
47310
|
var Blob_default = typeof Blob !== "undefined" ? Blob : null;
|
|
47310
47311
|
|
|
47311
|
-
// node_modules/.pnpm/axios@1.13.
|
|
47312
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/platform/browser/index.js
|
|
47312
47313
|
var browser_default = {
|
|
47313
47314
|
isBrowser: true,
|
|
47314
47315
|
classes: {
|
|
@@ -47319,7 +47320,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
47319
47320
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
47320
47321
|
};
|
|
47321
47322
|
|
|
47322
|
-
// node_modules/.pnpm/axios@1.13.
|
|
47323
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/platform/common/utils.js
|
|
47323
47324
|
var utils_exports2 = {};
|
|
47324
47325
|
__export(utils_exports2, {
|
|
47325
47326
|
hasBrowserEnv: () => hasBrowserEnv,
|
|
@@ -47337,13 +47338,13 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
47337
47338
|
})();
|
|
47338
47339
|
var origin = hasBrowserEnv && window.location.href || "http://localhost";
|
|
47339
47340
|
|
|
47340
|
-
// node_modules/.pnpm/axios@1.13.
|
|
47341
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/platform/index.js
|
|
47341
47342
|
var platform_default = {
|
|
47342
47343
|
...utils_exports2,
|
|
47343
47344
|
...browser_default
|
|
47344
47345
|
};
|
|
47345
47346
|
|
|
47346
|
-
// node_modules/.pnpm/axios@1.13.
|
|
47347
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
47347
47348
|
function toURLEncodedForm(data, options) {
|
|
47348
47349
|
return toFormData_default(data, new platform_default.classes.URLSearchParams(), {
|
|
47349
47350
|
visitor: function(value, key, path, helpers) {
|
|
@@ -47357,7 +47358,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
47357
47358
|
});
|
|
47358
47359
|
}
|
|
47359
47360
|
|
|
47360
|
-
// node_modules/.pnpm/axios@1.13.
|
|
47361
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/helpers/formDataToJSON.js
|
|
47361
47362
|
function parsePropPath(name) {
|
|
47362
47363
|
return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
|
|
47363
47364
|
return match[0] === "[]" ? "" : match[1] || match[0];
|
|
@@ -47410,7 +47411,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
47410
47411
|
}
|
|
47411
47412
|
var formDataToJSON_default = formDataToJSON;
|
|
47412
47413
|
|
|
47413
|
-
// node_modules/.pnpm/axios@1.13.
|
|
47414
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/defaults/index.js
|
|
47414
47415
|
function stringifySafely(rawValue, parser, encoder) {
|
|
47415
47416
|
if (utils_default.isString(rawValue)) {
|
|
47416
47417
|
try {
|
|
@@ -47519,7 +47520,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
47519
47520
|
});
|
|
47520
47521
|
var defaults_default = defaults;
|
|
47521
47522
|
|
|
47522
|
-
// node_modules/.pnpm/axios@1.13.
|
|
47523
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/helpers/parseHeaders.js
|
|
47523
47524
|
var ignoreDuplicateOf = utils_default.toObjectSet([
|
|
47524
47525
|
"age",
|
|
47525
47526
|
"authorization",
|
|
@@ -47564,7 +47565,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
47564
47565
|
return parsed;
|
|
47565
47566
|
};
|
|
47566
47567
|
|
|
47567
|
-
// node_modules/.pnpm/axios@1.13.
|
|
47568
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/core/AxiosHeaders.js
|
|
47568
47569
|
var $internals = Symbol("internals");
|
|
47569
47570
|
function normalizeHeader(header) {
|
|
47570
47571
|
return header && String(header).trim().toLowerCase();
|
|
@@ -47768,11 +47769,11 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
47768
47769
|
accessors: {}
|
|
47769
47770
|
};
|
|
47770
47771
|
const accessors = internals.accessors;
|
|
47771
|
-
const
|
|
47772
|
+
const prototype3 = this.prototype;
|
|
47772
47773
|
function defineAccessor(_header) {
|
|
47773
47774
|
const lHeader = normalizeHeader(_header);
|
|
47774
47775
|
if (!accessors[lHeader]) {
|
|
47775
|
-
buildAccessors(
|
|
47776
|
+
buildAccessors(prototype3, _header);
|
|
47776
47777
|
accessors[lHeader] = true;
|
|
47777
47778
|
}
|
|
47778
47779
|
}
|
|
@@ -47793,7 +47794,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
47793
47794
|
utils_default.freezeMethods(AxiosHeaders);
|
|
47794
47795
|
var AxiosHeaders_default = AxiosHeaders;
|
|
47795
47796
|
|
|
47796
|
-
// node_modules/.pnpm/axios@1.13.
|
|
47797
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/core/transformData.js
|
|
47797
47798
|
function transformData(fns, response) {
|
|
47798
47799
|
const config3 = this || defaults_default;
|
|
47799
47800
|
const context = response || config3;
|
|
@@ -47806,22 +47807,31 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
47806
47807
|
return data;
|
|
47807
47808
|
}
|
|
47808
47809
|
|
|
47809
|
-
// node_modules/.pnpm/axios@1.13.
|
|
47810
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/cancel/isCancel.js
|
|
47810
47811
|
function isCancel(value) {
|
|
47811
47812
|
return !!(value && value.__CANCEL__);
|
|
47812
47813
|
}
|
|
47813
47814
|
|
|
47814
|
-
// node_modules/.pnpm/axios@1.13.
|
|
47815
|
-
|
|
47816
|
-
|
|
47817
|
-
|
|
47818
|
-
|
|
47819
|
-
|
|
47820
|
-
|
|
47821
|
-
|
|
47815
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/cancel/CanceledError.js
|
|
47816
|
+
var CanceledError = class extends AxiosError_default {
|
|
47817
|
+
/**
|
|
47818
|
+
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
47819
|
+
*
|
|
47820
|
+
* @param {string=} message The message.
|
|
47821
|
+
* @param {Object=} config The config.
|
|
47822
|
+
* @param {Object=} request The request.
|
|
47823
|
+
*
|
|
47824
|
+
* @returns {CanceledError} The created error.
|
|
47825
|
+
*/
|
|
47826
|
+
constructor(message, config3, request) {
|
|
47827
|
+
super(message == null ? "canceled" : message, AxiosError_default.ERR_CANCELED, config3, request);
|
|
47828
|
+
this.name = "CanceledError";
|
|
47829
|
+
this.__CANCEL__ = true;
|
|
47830
|
+
}
|
|
47831
|
+
};
|
|
47822
47832
|
var CanceledError_default = CanceledError;
|
|
47823
47833
|
|
|
47824
|
-
// node_modules/.pnpm/axios@1.13.
|
|
47834
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/core/settle.js
|
|
47825
47835
|
function settle(resolve, reject, response) {
|
|
47826
47836
|
const validateStatus2 = response.config.validateStatus;
|
|
47827
47837
|
if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
|
|
@@ -47837,13 +47847,13 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
47837
47847
|
}
|
|
47838
47848
|
}
|
|
47839
47849
|
|
|
47840
|
-
// node_modules/.pnpm/axios@1.13.
|
|
47850
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/helpers/parseProtocol.js
|
|
47841
47851
|
function parseProtocol(url) {
|
|
47842
47852
|
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
|
|
47843
47853
|
return match && match[1] || "";
|
|
47844
47854
|
}
|
|
47845
47855
|
|
|
47846
|
-
// node_modules/.pnpm/axios@1.13.
|
|
47856
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/helpers/speedometer.js
|
|
47847
47857
|
function speedometer(samplesCount, min) {
|
|
47848
47858
|
samplesCount = samplesCount || 10;
|
|
47849
47859
|
const bytes = new Array(samplesCount);
|
|
@@ -47879,7 +47889,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
47879
47889
|
}
|
|
47880
47890
|
var speedometer_default = speedometer;
|
|
47881
47891
|
|
|
47882
|
-
// node_modules/.pnpm/axios@1.13.
|
|
47892
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/helpers/throttle.js
|
|
47883
47893
|
function throttle(fn, freq) {
|
|
47884
47894
|
let timestamp = 0;
|
|
47885
47895
|
let threshold = 1e3 / freq;
|
|
@@ -47914,7 +47924,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
47914
47924
|
}
|
|
47915
47925
|
var throttle_default = throttle;
|
|
47916
47926
|
|
|
47917
|
-
// node_modules/.pnpm/axios@1.13.
|
|
47927
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/helpers/progressEventReducer.js
|
|
47918
47928
|
var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
47919
47929
|
let bytesNotified = 0;
|
|
47920
47930
|
const _speedometer = speedometer_default(50, 250);
|
|
@@ -47949,7 +47959,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
47949
47959
|
};
|
|
47950
47960
|
var asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
|
|
47951
47961
|
|
|
47952
|
-
// node_modules/.pnpm/axios@1.13.
|
|
47962
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/helpers/isURLSameOrigin.js
|
|
47953
47963
|
var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url) => {
|
|
47954
47964
|
url = new URL(url, platform_default.origin);
|
|
47955
47965
|
return origin2.protocol === url.protocol && origin2.host === url.host && (isMSIE || origin2.port === url.port);
|
|
@@ -47958,7 +47968,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
47958
47968
|
platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)
|
|
47959
47969
|
) : () => true;
|
|
47960
47970
|
|
|
47961
|
-
// node_modules/.pnpm/axios@1.13.
|
|
47971
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/helpers/cookies.js
|
|
47962
47972
|
var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
47963
47973
|
// Standard browser envs support document.cookie
|
|
47964
47974
|
{
|
|
@@ -48004,17 +48014,17 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
48004
48014
|
}
|
|
48005
48015
|
);
|
|
48006
48016
|
|
|
48007
|
-
// node_modules/.pnpm/axios@1.13.
|
|
48017
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
48008
48018
|
function isAbsoluteURL(url) {
|
|
48009
48019
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
|
|
48010
48020
|
}
|
|
48011
48021
|
|
|
48012
|
-
// node_modules/.pnpm/axios@1.13.
|
|
48022
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/helpers/combineURLs.js
|
|
48013
48023
|
function combineURLs(baseURL, relativeURL) {
|
|
48014
48024
|
return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
|
|
48015
48025
|
}
|
|
48016
48026
|
|
|
48017
|
-
// node_modules/.pnpm/axios@1.13.
|
|
48027
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/core/buildFullPath.js
|
|
48018
48028
|
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
48019
48029
|
let isRelativeUrl = !isAbsoluteURL(requestedURL);
|
|
48020
48030
|
if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
|
|
@@ -48023,7 +48033,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
48023
48033
|
return requestedURL;
|
|
48024
48034
|
}
|
|
48025
48035
|
|
|
48026
|
-
// node_modules/.pnpm/axios@1.13.
|
|
48036
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/core/mergeConfig.js
|
|
48027
48037
|
var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
|
|
48028
48038
|
function mergeConfig(config1, config22) {
|
|
48029
48039
|
config22 = config22 || {};
|
|
@@ -48103,7 +48113,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
48103
48113
|
return config3;
|
|
48104
48114
|
}
|
|
48105
48115
|
|
|
48106
|
-
// node_modules/.pnpm/axios@1.13.
|
|
48116
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/helpers/resolveConfig.js
|
|
48107
48117
|
var resolveConfig_default = (config3) => {
|
|
48108
48118
|
const newConfig = mergeConfig({}, config3);
|
|
48109
48119
|
let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
|
|
@@ -48140,7 +48150,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
48140
48150
|
return newConfig;
|
|
48141
48151
|
};
|
|
48142
48152
|
|
|
48143
|
-
// node_modules/.pnpm/axios@1.13.
|
|
48153
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/adapters/xhr.js
|
|
48144
48154
|
var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
|
|
48145
48155
|
var xhr_default = isXHRAdapterSupported && function(config3) {
|
|
48146
48156
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
@@ -48270,7 +48280,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
48270
48280
|
});
|
|
48271
48281
|
};
|
|
48272
48282
|
|
|
48273
|
-
// node_modules/.pnpm/axios@1.13.
|
|
48283
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/helpers/composeSignals.js
|
|
48274
48284
|
var composeSignals = (signals, timeout) => {
|
|
48275
48285
|
const { length } = signals = signals ? signals.filter(Boolean) : [];
|
|
48276
48286
|
if (timeout || length) {
|
|
@@ -48286,7 +48296,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
48286
48296
|
};
|
|
48287
48297
|
let timer = timeout && setTimeout(() => {
|
|
48288
48298
|
timer = null;
|
|
48289
|
-
onabort(new AxiosError_default(`timeout ${timeout}
|
|
48299
|
+
onabort(new AxiosError_default(`timeout of ${timeout}ms exceeded`, AxiosError_default.ETIMEDOUT));
|
|
48290
48300
|
}, timeout);
|
|
48291
48301
|
const unsubscribe = () => {
|
|
48292
48302
|
if (signals) {
|
|
@@ -48306,7 +48316,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
48306
48316
|
};
|
|
48307
48317
|
var composeSignals_default = composeSignals;
|
|
48308
48318
|
|
|
48309
|
-
// node_modules/.pnpm/axios@1.13.
|
|
48319
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/helpers/trackStream.js
|
|
48310
48320
|
var streamChunk = function* (chunk, chunkSize) {
|
|
48311
48321
|
let len = chunk.byteLength;
|
|
48312
48322
|
if (!chunkSize || len < chunkSize) {
|
|
@@ -48383,7 +48393,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
48383
48393
|
});
|
|
48384
48394
|
};
|
|
48385
48395
|
|
|
48386
|
-
// node_modules/.pnpm/axios@1.13.
|
|
48396
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/adapters/fetch.js
|
|
48387
48397
|
var DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
48388
48398
|
var { isFunction: isFunction2 } = utils_default;
|
|
48389
48399
|
var globalFetchAPI = (({ Request: Request2, Response: Response2 }) => ({
|
|
@@ -48592,7 +48602,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
48592
48602
|
};
|
|
48593
48603
|
var adapter = getFetch();
|
|
48594
48604
|
|
|
48595
|
-
// node_modules/.pnpm/axios@1.13.
|
|
48605
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/adapters/adapters.js
|
|
48596
48606
|
var knownAdapters = {
|
|
48597
48607
|
http: null_default,
|
|
48598
48608
|
xhr: xhr_default,
|
|
@@ -48657,7 +48667,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
48657
48667
|
adapters: knownAdapters
|
|
48658
48668
|
};
|
|
48659
48669
|
|
|
48660
|
-
// node_modules/.pnpm/axios@1.13.
|
|
48670
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/core/dispatchRequest.js
|
|
48661
48671
|
function throwIfCancellationRequested(config3) {
|
|
48662
48672
|
if (config3.cancelToken) {
|
|
48663
48673
|
config3.cancelToken.throwIfRequested();
|
|
@@ -48702,10 +48712,10 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
48702
48712
|
});
|
|
48703
48713
|
}
|
|
48704
48714
|
|
|
48705
|
-
// node_modules/.pnpm/axios@1.13.
|
|
48706
|
-
var VERSION = "1.13.
|
|
48715
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/env/data.js
|
|
48716
|
+
var VERSION = "1.13.4";
|
|
48707
48717
|
|
|
48708
|
-
// node_modules/.pnpm/axios@1.13.
|
|
48718
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/helpers/validator.js
|
|
48709
48719
|
var validators = {};
|
|
48710
48720
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
|
|
48711
48721
|
validators[type] = function validator(thing) {
|
|
@@ -48769,7 +48779,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
48769
48779
|
validators
|
|
48770
48780
|
};
|
|
48771
48781
|
|
|
48772
|
-
// node_modules/.pnpm/axios@1.13.
|
|
48782
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/core/Axios.js
|
|
48773
48783
|
var validators2 = validator_default.validators;
|
|
48774
48784
|
var Axios = class {
|
|
48775
48785
|
constructor(instanceConfig) {
|
|
@@ -48941,7 +48951,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
48941
48951
|
});
|
|
48942
48952
|
var Axios_default = Axios;
|
|
48943
48953
|
|
|
48944
|
-
// node_modules/.pnpm/axios@1.13.
|
|
48954
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/cancel/CancelToken.js
|
|
48945
48955
|
var CancelToken = class _CancelToken {
|
|
48946
48956
|
constructor(executor) {
|
|
48947
48957
|
if (typeof executor !== "function") {
|
|
@@ -49039,19 +49049,19 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
49039
49049
|
};
|
|
49040
49050
|
var CancelToken_default = CancelToken;
|
|
49041
49051
|
|
|
49042
|
-
// node_modules/.pnpm/axios@1.13.
|
|
49052
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/helpers/spread.js
|
|
49043
49053
|
function spread(callback) {
|
|
49044
49054
|
return function wrap4(arr) {
|
|
49045
49055
|
return callback.apply(null, arr);
|
|
49046
49056
|
};
|
|
49047
49057
|
}
|
|
49048
49058
|
|
|
49049
|
-
// node_modules/.pnpm/axios@1.13.
|
|
49059
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/helpers/isAxiosError.js
|
|
49050
49060
|
function isAxiosError(payload) {
|
|
49051
49061
|
return utils_default.isObject(payload) && payload.isAxiosError === true;
|
|
49052
49062
|
}
|
|
49053
49063
|
|
|
49054
|
-
// node_modules/.pnpm/axios@1.13.
|
|
49064
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/helpers/HttpStatusCode.js
|
|
49055
49065
|
var HttpStatusCode = {
|
|
49056
49066
|
Continue: 100,
|
|
49057
49067
|
SwitchingProtocols: 101,
|
|
@@ -49128,7 +49138,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
49128
49138
|
});
|
|
49129
49139
|
var HttpStatusCode_default = HttpStatusCode;
|
|
49130
49140
|
|
|
49131
|
-
// node_modules/.pnpm/axios@1.13.
|
|
49141
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/axios.js
|
|
49132
49142
|
function createInstance(defaultConfig2) {
|
|
49133
49143
|
const context = new Axios_default(defaultConfig2);
|
|
49134
49144
|
const instance = bind(Axios_default.prototype.request, context);
|
|
@@ -49161,7 +49171,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
49161
49171
|
axios.default = axios;
|
|
49162
49172
|
var axios_default = axios;
|
|
49163
49173
|
|
|
49164
|
-
// node_modules/.pnpm/axios@1.13.
|
|
49174
|
+
// node_modules/.pnpm/axios@1.13.4/node_modules/axios/index.js
|
|
49165
49175
|
var {
|
|
49166
49176
|
Axios: Axios2,
|
|
49167
49177
|
AxiosError: AxiosError2,
|
|
@@ -56475,11 +56485,13 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
56475
56485
|
* @param marketName - The name of the market to get funding rates for
|
|
56476
56486
|
* @returns The funding rates for the specified market
|
|
56477
56487
|
*/
|
|
56478
|
-
async getFundingRates(marketName, side) {
|
|
56488
|
+
async getFundingRates(marketName, side, startTime, endTime) {
|
|
56489
|
+
const endTimeParam = endTime !== void 0 ? `&end_time=${endTime}` : "";
|
|
56490
|
+
const startTimeParam = startTime !== void 0 ? `&start_time=${startTime}` : "";
|
|
56479
56491
|
return this.makeRequest(
|
|
56480
56492
|
`/api/v1/markets/funding-rates?market_name=${encodeURIComponent(
|
|
56481
56493
|
marketName
|
|
56482
|
-
)}&side=${encodeURIComponent(side)}`
|
|
56494
|
+
)}&side=${encodeURIComponent(side)}${startTimeParam}${endTimeParam}`
|
|
56483
56495
|
);
|
|
56484
56496
|
}
|
|
56485
56497
|
};
|
|
@@ -73790,10 +73802,10 @@ spurious results.`);
|
|
|
73790
73802
|
var result = symbolObservablePonyfill(root);
|
|
73791
73803
|
|
|
73792
73804
|
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/utilities/observables/Observable.js
|
|
73793
|
-
var
|
|
73805
|
+
var prototype2 = Observable.prototype;
|
|
73794
73806
|
var fakeObsSymbol = "@@observable";
|
|
73795
|
-
if (!
|
|
73796
|
-
|
|
73807
|
+
if (!prototype2[fakeObsSymbol]) {
|
|
73808
|
+
prototype2[fakeObsSymbol] = function() {
|
|
73797
73809
|
return this;
|
|
73798
73810
|
};
|
|
73799
73811
|
}
|
|
@@ -93668,8 +93680,8 @@ spurious results.`);
|
|
|
93668
93680
|
super(config3, _ExtendedAdapter.name, Protocols.EXTENDED);
|
|
93669
93681
|
this.config = config3;
|
|
93670
93682
|
const client = new wrapper_default({
|
|
93671
|
-
baseUrl: this.config.
|
|
93672
|
-
apiKey:
|
|
93683
|
+
baseUrl: this.config.extendedBackendWriteUrl,
|
|
93684
|
+
apiKey: "",
|
|
93673
93685
|
timeout: this.config.extendedTimeout,
|
|
93674
93686
|
retries: this.config.extendedRetries
|
|
93675
93687
|
});
|
|
@@ -93680,11 +93692,8 @@ spurious results.`);
|
|
|
93680
93692
|
//abstract means the method has no implementation in this class; instead, child classes must implement it.
|
|
93681
93693
|
async getAPY(supportedPosition) {
|
|
93682
93694
|
const side = supportedPosition.isDebt ? "LONG" : "SHORT";
|
|
93683
|
-
const fundingRates = await this.
|
|
93684
|
-
|
|
93685
|
-
side
|
|
93686
|
-
);
|
|
93687
|
-
if (fundingRates.status !== "OK") {
|
|
93695
|
+
const fundingRates = await this.getFundingRates(side);
|
|
93696
|
+
if (!fundingRates.success) {
|
|
93688
93697
|
logger2.error("error getting funding rates", fundingRates);
|
|
93689
93698
|
return { apy: 0, type: "base" /* BASE */ };
|
|
93690
93699
|
}
|
|
@@ -93692,10 +93701,26 @@ spurious results.`);
|
|
|
93692
93701
|
const apy = Number(fundingRate.f) * 365 * 24;
|
|
93693
93702
|
return { apy, type: "base" /* BASE */ };
|
|
93694
93703
|
}
|
|
93695
|
-
async
|
|
93696
|
-
|
|
93697
|
-
|
|
93704
|
+
async getFundingRates(side, startTime, endTime) {
|
|
93705
|
+
try {
|
|
93706
|
+
const response = await axios_default.get(`${this.config.extendedBackendReadUrl}/fundingRates/${this.config.extendedMarketName}/${side}`, {
|
|
93707
|
+
params: {
|
|
93708
|
+
startTime: startTime ? startTime.toString() : void 0,
|
|
93709
|
+
endTime: endTime ? endTime.toString() : void 0
|
|
93710
|
+
}
|
|
93711
|
+
});
|
|
93712
|
+
if (!response.data.success) {
|
|
93713
|
+
logger2.error("error getting funding rates", response.data);
|
|
93714
|
+
return { success: false, data: [] };
|
|
93715
|
+
}
|
|
93716
|
+
logger2.info("success getting funding rates", response.data.data);
|
|
93717
|
+
return { success: true, data: response.data.data };
|
|
93718
|
+
} catch (err2) {
|
|
93719
|
+
logger2.error("error getting funding rates", err2);
|
|
93720
|
+
return { success: false, data: [] };
|
|
93698
93721
|
}
|
|
93722
|
+
}
|
|
93723
|
+
async getPosition(supportedPosition) {
|
|
93699
93724
|
const holdings = await this.getExtendedDepositAmount();
|
|
93700
93725
|
if (!holdings) {
|
|
93701
93726
|
throw new Error("No position found");
|
|
@@ -94065,22 +94090,18 @@ spurious results.`);
|
|
|
94065
94090
|
}
|
|
94066
94091
|
async getExtendedDepositAmount() {
|
|
94067
94092
|
try {
|
|
94068
|
-
|
|
94069
|
-
|
|
94070
|
-
return void 0;
|
|
94071
|
-
}
|
|
94072
|
-
const result2 = await this.client.getHoldings();
|
|
94073
|
-
if (!result2) {
|
|
94093
|
+
const result2 = await axios_default.get(`${this.config.extendedBackendReadUrl}/holdings`);
|
|
94094
|
+
if (!result2.data) {
|
|
94074
94095
|
logger2.error("error getting holdings - API returned null/undefined");
|
|
94075
94096
|
return void 0;
|
|
94076
94097
|
}
|
|
94077
|
-
if (result2.
|
|
94098
|
+
if (!result2.data.success) {
|
|
94078
94099
|
logger2.error(
|
|
94079
94100
|
`error getting holdings - API returned status: ${result2.status}`
|
|
94080
94101
|
);
|
|
94081
94102
|
return void 0;
|
|
94082
94103
|
}
|
|
94083
|
-
const holdings = result2.data;
|
|
94104
|
+
const holdings = result2.data.data;
|
|
94084
94105
|
if (!holdings) {
|
|
94085
94106
|
logger2.warn(
|
|
94086
94107
|
"holdings data is null/undefined - treating as zero balance"
|
|
@@ -94118,29 +94139,32 @@ spurious results.`);
|
|
|
94118
94139
|
return false;
|
|
94119
94140
|
}
|
|
94120
94141
|
async getAllOpenPositions() {
|
|
94121
|
-
|
|
94122
|
-
|
|
94123
|
-
|
|
94124
|
-
|
|
94125
|
-
|
|
94126
|
-
|
|
94127
|
-
|
|
94128
|
-
|
|
94129
|
-
if (response.data.length === 0) {
|
|
94130
|
-
return [];
|
|
94131
|
-
} else {
|
|
94132
|
-
return response.data;
|
|
94142
|
+
try {
|
|
94143
|
+
const response = await axios_default.get(`${this.config.extendedBackendReadUrl}/positions`);
|
|
94144
|
+
if (response.data.success) {
|
|
94145
|
+
if (response.data.data.length === 0) {
|
|
94146
|
+
return [];
|
|
94147
|
+
} else {
|
|
94148
|
+
return response.data.data;
|
|
94149
|
+
}
|
|
94133
94150
|
}
|
|
94151
|
+
return null;
|
|
94152
|
+
} catch (err2) {
|
|
94153
|
+
logger2.error("error getting all open positions", err2);
|
|
94154
|
+
return null;
|
|
94134
94155
|
}
|
|
94135
|
-
return null;
|
|
94136
94156
|
}
|
|
94137
94157
|
async getOrderHistory(marketName) {
|
|
94138
|
-
|
|
94139
|
-
|
|
94158
|
+
try {
|
|
94159
|
+
const result2 = await axios_default.get(`${this.config.extendedBackendReadUrl}/marketOrders/${marketName}`);
|
|
94160
|
+
if (!result2.data.success) {
|
|
94161
|
+
return null;
|
|
94162
|
+
}
|
|
94163
|
+
return result2.data.data;
|
|
94164
|
+
} catch (err2) {
|
|
94165
|
+
logger2.error("error getting order history", err2);
|
|
94140
94166
|
return null;
|
|
94141
94167
|
}
|
|
94142
|
-
const result2 = await this.client.getOrderHistory(marketName);
|
|
94143
|
-
return result2.data;
|
|
94144
94168
|
}
|
|
94145
94169
|
async getOrderStatus(orderId, marketName) {
|
|
94146
94170
|
try {
|
|
@@ -98404,7 +98428,7 @@ spurious results.`);
|
|
|
98404
98428
|
WALLET_ADDRESS,
|
|
98405
98429
|
usdceToken.decimals
|
|
98406
98430
|
);
|
|
98407
|
-
logger2.info(`${_VesuExtendedMultiplierStrategy.name}::moveAssetsToVaultAllocator walletBalance: ${walletBalance
|
|
98431
|
+
logger2.info(`${_VesuExtendedMultiplierStrategy.name}::moveAssetsToVaultAllocator walletBalance: ${walletBalance}`);
|
|
98408
98432
|
const amountToBeTransferred = amount.minimum(walletBalance);
|
|
98409
98433
|
logger2.info(`${_VesuExtendedMultiplierStrategy.name}::moveAssetsToVaultAllocator amountToBeTransferred: ${amountToBeTransferred.toNumber()}`);
|
|
98410
98434
|
if (amountToBeTransferred.lessThan(0)) {
|
|
@@ -99424,7 +99448,7 @@ spurious results.`);
|
|
|
99424
99448
|
];
|
|
99425
99449
|
}
|
|
99426
99450
|
};
|
|
99427
|
-
function getLooperSettings2(lstSymbol, underlyingSymbol, vaultSettings, pool1,
|
|
99451
|
+
function getLooperSettings2(lstSymbol, underlyingSymbol, vaultSettings, pool1, extendedBackendReadUrl, extendedBackendWriteUrl, vaultIdExtended, minimumExtendedMovementAmount, minimumVesuMovementAmount, minimumExtendedRetriesDelayForOrderStatus, minimumExtendedPriceDifferenceForSwapOpen, maximumExtendedPriceDifferenceForSwapClosing) {
|
|
99428
99452
|
vaultSettings.leafAdapters = [];
|
|
99429
99453
|
const wbtcToken = Global.getDefaultTokens().find(
|
|
99430
99454
|
(token) => token.symbol === lstSymbol
|
|
@@ -99459,8 +99483,8 @@ spurious results.`);
|
|
|
99459
99483
|
],
|
|
99460
99484
|
vaultIdExtended,
|
|
99461
99485
|
extendedContract: EXTENDED_CONTRACT,
|
|
99462
|
-
|
|
99463
|
-
|
|
99486
|
+
extendedBackendWriteUrl,
|
|
99487
|
+
extendedBackendReadUrl,
|
|
99464
99488
|
extendedTimeout: 3e4,
|
|
99465
99489
|
extendedRetries: 3,
|
|
99466
99490
|
extendedBaseUrl: "https://api.starknet.extended.exchange",
|
|
@@ -99600,12 +99624,12 @@ spurious results.`);
|
|
|
99600
99624
|
minimumWBTCDifferenceForAvnuSwap: MINIMUM_WBTC_DIFFERENCE_FOR_AVNU_SWAP,
|
|
99601
99625
|
walletAddress: WALLET_ADDRESS
|
|
99602
99626
|
};
|
|
99603
|
-
var VesuExtendedTestStrategies = (
|
|
99627
|
+
var VesuExtendedTestStrategies = (extendedBackendReadUrl, extendedBackendWriteUrl, vaultIdExtended, minimumExtendedMovementAmount, minimumVesuMovementAmount, minimumExtendedRetriesDelayForOrderStatus, minimumExtendedPriceDifferenceForSwapOpen, maximumExtendedPriceDifferenceForSwapClosing) => {
|
|
99604
99628
|
return [
|
|
99605
|
-
getStrategySettingsVesuExtended("WBTC", "USDC", re7UsdcPrimeDevansh, false, false,
|
|
99629
|
+
getStrategySettingsVesuExtended("WBTC", "USDC", re7UsdcPrimeDevansh, false, false, extendedBackendReadUrl, extendedBackendWriteUrl, vaultIdExtended, minimumExtendedMovementAmount, minimumVesuMovementAmount, minimumExtendedRetriesDelayForOrderStatus, minimumExtendedPriceDifferenceForSwapOpen, maximumExtendedPriceDifferenceForSwapClosing)
|
|
99606
99630
|
];
|
|
99607
99631
|
};
|
|
99608
|
-
function getStrategySettingsVesuExtended(lstSymbol, underlyingSymbol, addresses, isPreview = false, isLST,
|
|
99632
|
+
function getStrategySettingsVesuExtended(lstSymbol, underlyingSymbol, addresses, isPreview = false, isLST, extendedBackendReadUrl, extendedBackendWriteUrl, vaultIdExtended, minimumExtendedMovementAmount, minimumVesuMovementAmount, minimumExtendedRetriesDelayForOrderStatus, minimumExtendedPriceDifferenceForSwapOpen, maximumExtendedPriceDifferenceForSwapClosing) {
|
|
99609
99633
|
return {
|
|
99610
99634
|
name: `Extended Test ${underlyingSymbol}`,
|
|
99611
99635
|
description: getDescription2(lstSymbol, underlyingSymbol),
|
|
@@ -99613,7 +99637,7 @@ spurious results.`);
|
|
|
99613
99637
|
launchBlock: 0,
|
|
99614
99638
|
type: "Other",
|
|
99615
99639
|
depositTokens: [Global.getDefaultTokens().find((token) => token.symbol === underlyingSymbol)],
|
|
99616
|
-
additionalInfo: getLooperSettings2(lstSymbol, underlyingSymbol, addresses, VesuPools.Re7USDCPrime,
|
|
99640
|
+
additionalInfo: getLooperSettings2(lstSymbol, underlyingSymbol, addresses, VesuPools.Re7USDCPrime, extendedBackendReadUrl, extendedBackendWriteUrl, vaultIdExtended, minimumExtendedMovementAmount, minimumVesuMovementAmount, minimumExtendedRetriesDelayForOrderStatus, minimumExtendedPriceDifferenceForSwapOpen, maximumExtendedPriceDifferenceForSwapClosing),
|
|
99617
99641
|
risk: {
|
|
99618
99642
|
riskFactor: _riskFactor3,
|
|
99619
99643
|
netRisk: _riskFactor3.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / _riskFactor3.reduce((acc, curr) => acc + curr.weight, 0),
|