diff --git a/dist/index.js b/dist/index.js index 884dda64..75ace2b0 100644 --- a/dist/index.js +++ b/dist/index.js @@ -51296,76 +51296,6 @@ var require_adapter = __commonJS({ } }); -// node_modules/proxy-from-env/index.js -var require_proxy_from_env = __commonJS({ - "node_modules/proxy-from-env/index.js"(exports2) { - "use strict"; - var parseUrl = require("url").parse; - var DEFAULT_PORTS = { - ftp: 21, - gopher: 70, - http: 80, - https: 443, - ws: 80, - wss: 443 - }; - var stringEndsWith = String.prototype.endsWith || function(s) { - return s.length <= this.length && this.indexOf(s, this.length - s.length) !== -1; - }; - function getProxyForUrl(url) { - var parsedUrl = typeof url === "string" ? parseUrl(url) : url || {}; - var proto = parsedUrl.protocol; - var hostname = parsedUrl.host; - var port = parsedUrl.port; - if (typeof hostname !== "string" || !hostname || typeof proto !== "string") { - return ""; - } - proto = proto.split(":", 1)[0]; - hostname = hostname.replace(/:\d*$/, ""); - port = parseInt(port) || DEFAULT_PORTS[proto] || 0; - if (!shouldProxy(hostname, port)) { - return ""; - } - var proxy = getEnv("npm_config_" + proto + "_proxy") || getEnv(proto + "_proxy") || getEnv("npm_config_proxy") || getEnv("all_proxy"); - if (proxy && proxy.indexOf("://") === -1) { - proxy = proto + "://" + proxy; - } - return proxy; - } - function shouldProxy(hostname, port) { - var NO_PROXY = (getEnv("npm_config_no_proxy") || getEnv("no_proxy")).toLowerCase(); - if (!NO_PROXY) { - return true; - } - if (NO_PROXY === "*") { - return false; - } - return NO_PROXY.split(/[,\s]/).every(function(proxy) { - if (!proxy) { - return true; - } - var parsedProxy = proxy.match(/^(.+):(\d+)$/); - var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy; - var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0; - if (parsedProxyPort && parsedProxyPort !== port) { - return true; - } - if (!/^[.*]/.test(parsedProxyHostname)) { - return hostname !== parsedProxyHostname; - } - if (parsedProxyHostname.charAt(0) === "*") { - parsedProxyHostname = parsedProxyHostname.slice(1); - } - return !stringEndsWith.call(hostname, parsedProxyHostname); - }); - } - function getEnv(key) { - return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || ""; - } - exports2.getProxyForUrl = getProxyForUrl; - } -}); - // node_modules/ms/index.js var require_ms = __commonJS({ "node_modules/ms/index.js"(exports2, module2) { @@ -52652,7 +52582,6 @@ var require_axios = __commonJS({ var FormData$1 = require_form_data(); var crypto2 = require("crypto"); var url = require("url"); - var proxyFromEnv = require_proxy_from_env(); var http = require("http"); var https = require("https"); var http2 = require("http2"); @@ -52661,28 +52590,21 @@ var require_axios = __commonJS({ var zlib = require("zlib"); var stream = require("stream"); var events = require("events"); - function _interopDefaultLegacy(e) { - return e && typeof e === "object" && "default" in e ? e : { "default": e }; - } - var FormData__default = /* @__PURE__ */ _interopDefaultLegacy(FormData$1); - var crypto__default = /* @__PURE__ */ _interopDefaultLegacy(crypto2); - var url__default = /* @__PURE__ */ _interopDefaultLegacy(url); - var proxyFromEnv__default = /* @__PURE__ */ _interopDefaultLegacy(proxyFromEnv); - var http__default = /* @__PURE__ */ _interopDefaultLegacy(http); - var https__default = /* @__PURE__ */ _interopDefaultLegacy(https); - var http2__default = /* @__PURE__ */ _interopDefaultLegacy(http2); - var util__default = /* @__PURE__ */ _interopDefaultLegacy(util); - var followRedirects__default = /* @__PURE__ */ _interopDefaultLegacy(followRedirects); - var zlib__default = /* @__PURE__ */ _interopDefaultLegacy(zlib); - var stream__default = /* @__PURE__ */ _interopDefaultLegacy(stream); function bind(fn, thisArg) { return function wrap() { return fn.apply(thisArg, arguments); }; } - var { toString } = Object.prototype; - var { getPrototypeOf } = Object; - var { iterator, toStringTag } = Symbol; + var { + toString + } = Object.prototype; + var { + getPrototypeOf + } = Object; + var { + iterator, + toStringTag + } = Symbol; var kindOf = /* @__PURE__ */ ((cache) => (thing) => { const str = toString.call(thing); return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase()); @@ -52692,7 +52614,9 @@ var require_axios = __commonJS({ return (thing) => kindOf(thing) === type; }; var typeOfTest = (type) => (thing) => typeof thing === type; - var { isArray } = Array; + var { + isArray + } = Array; var isUndefined = typeOfTest("undefined"); function isBuffer(val) { return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction$1(val.constructor.isBuffer) && val.constructor.isBuffer(val); @@ -52731,23 +52655,35 @@ var require_axios = __commonJS({ }; var isDate = kindOfTest("Date"); var isFile = kindOfTest("File"); + var isReactNativeBlob = (value) => { + return !!(value && typeof value.uri !== "undefined"); + }; + var isReactNative = (formData) => formData && typeof formData.getParts !== "undefined"; var isBlob = kindOfTest("Blob"); var isFileList = kindOfTest("FileList"); var isStream = (val) => isObject(val) && isFunction$1(val.pipe); + function getGlobal() { + if (typeof globalThis !== "undefined") return globalThis; + if (typeof self !== "undefined") return self; + if (typeof window !== "undefined") return window; + if (typeof global !== "undefined") return global; + return {}; + } + var G = getGlobal(); + var FormDataCtor = typeof G.FormData !== "undefined" ? G.FormData : void 0; var isFormData = (thing) => { let kind; - return thing && (typeof FormData === "function" && thing instanceof FormData || isFunction$1(thing.append) && ((kind = kindOf(thing)) === "formdata" || // detect form-data instance + return thing && (FormDataCtor && thing instanceof FormDataCtor || isFunction$1(thing.append) && ((kind = kindOf(thing)) === "formdata" || // detect form-data instance kind === "object" && isFunction$1(thing.toString) && thing.toString() === "[object FormData]")); }; var isURLSearchParams = kindOfTest("URLSearchParams"); - var [isReadableStream, isRequest, isResponse, isHeaders] = [ - "ReadableStream", - "Request", - "Response", - "Headers" - ].map(kindOfTest); - var trim = (str) => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ""); - function forEach(obj, fn, { allOwnKeys = false } = {}) { + var [isReadableStream, isRequest, isResponse, isHeaders] = ["ReadableStream", "Request", "Response", "Headers"].map(kindOfTest); + var trim = (str) => { + return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ""); + }; + function forEach(obj, fn, { + allOwnKeys = false + } = {}) { if (obj === null || typeof obj === "undefined") { return; } @@ -52795,7 +52731,10 @@ var require_axios = __commonJS({ })(); var isContextDefined = (context) => !isUndefined(context) && context !== _global; function merge() { - const { caseless, skipUndefined } = isContextDefined(this) && this || {}; + const { + caseless, + skipUndefined + } = isContextDefined(this) && this || {}; const result = {}; const assignValue = (val, key) => { if (key === "__proto__" || key === "constructor" || key === "prototype") { @@ -52817,28 +52756,28 @@ var require_axios = __commonJS({ } return result; } - var extend = (a, b, thisArg, { allOwnKeys } = {}) => { - forEach( - b, - (val, key) => { - if (thisArg && isFunction$1(val)) { - Object.defineProperty(a, key, { - value: bind(val, thisArg), - writable: true, - enumerable: true, - configurable: true - }); - } else { - Object.defineProperty(a, key, { - value: val, - writable: true, - enumerable: true, - configurable: true - }); - } - }, - { allOwnKeys } - ); + var extend = (a, b, thisArg, { + allOwnKeys + } = {}) => { + forEach(b, (val, key) => { + if (thisArg && isFunction$1(val)) { + Object.defineProperty(a, key, { + value: bind(val, thisArg), + writable: true, + enumerable: true, + configurable: true + }); + } else { + Object.defineProperty(a, key, { + value: val, + writable: true, + enumerable: true, + configurable: true + }); + } + }, { + allOwnKeys + }); return a; }; var stripBOM = (content) => { @@ -52848,10 +52787,7 @@ var require_axios = __commonJS({ return content; }; var inherits = (constructor, superConstructor, props, descriptors) => { - constructor.prototype = Object.create( - superConstructor.prototype, - descriptors - ); + constructor.prototype = Object.create(superConstructor.prototype, descriptors); Object.defineProperty(constructor.prototype, "constructor", { value: constructor, writable: true, @@ -52932,7 +52868,9 @@ var require_axios = __commonJS({ return p1.toUpperCase() + p2; }); }; - var hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype); + var hasOwnProperty = (({ + hasOwnProperty: hasOwnProperty2 + }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype); var isRegExp = kindOfTest("RegExp"); var reduceDescriptors = (obj, reducer) => { const descriptors = Object.getOwnPropertyDescriptors(obj); @@ -53014,15 +52952,14 @@ var require_axios = __commonJS({ return setImmediate; } return postMessageSupported ? ((token, callbacks) => { - _global.addEventListener( - "message", - ({ source, data }) => { - if (source === _global && data === token) { - callbacks.length && callbacks.shift()(); - } - }, - false - ); + _global.addEventListener("message", ({ + source, + data + }) => { + if (source === _global && data === token) { + callbacks.length && callbacks.shift()(); + } + }, false); return (cb) => { callbacks.push(cb); _global.postMessage(token, "*"); @@ -53050,6 +52987,8 @@ var require_axios = __commonJS({ isUndefined, isDate, isFile, + isReactNativeBlob, + isReactNative, isBlob, isRegExp, isFunction: isFunction$1, @@ -53096,6 +53035,9 @@ var require_axios = __commonJS({ const axiosError = new _AxiosError(error2.message, code || error2.code, config, request, response); axiosError.cause = error2; axiosError.name = error2.name; + if (error2.status != null && axiosError.status == null) { + axiosError.status = error2.status; + } customProps && Object.assign(axiosError, customProps); return axiosError; } @@ -53112,6 +53054,12 @@ var require_axios = __commonJS({ */ constructor(message, code, config, request, response) { super(message); + Object.defineProperty(this, "message", { + value: message, + enumerable: true, + writable: true, + configurable: true + }); this.name = "AxiosError"; this.isAxiosError = true; code && (this.code = code); @@ -53154,7 +53102,6 @@ var require_axios = __commonJS({ AxiosError.ERR_CANCELED = "ERR_CANCELED"; AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT"; AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL"; - var AxiosError$1 = AxiosError; function isVisitable(thing) { return utils$1.isPlainObject(thing) || utils$1.isArray(thing); } @@ -53178,7 +53125,7 @@ var require_axios = __commonJS({ if (!utils$1.isObject(obj)) { throw new TypeError("target must be an object"); } - formData = formData || new (FormData__default["default"] || FormData)(); + formData = formData || new (FormData$1 || FormData)(); options = utils$1.toFlatObject(options, { metaTokens: true, dots: false, @@ -53204,7 +53151,7 @@ var require_axios = __commonJS({ return value.toString(); } if (!useBlob && utils$1.isBlob(value)) { - throw new AxiosError$1("Blob is not supported. Use a Buffer instead."); + throw new AxiosError("Blob is not supported. Use a Buffer instead."); } if (utils$1.isArrayBuffer(value) || utils$1.isTypedArray(value)) { return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value); @@ -53213,6 +53160,10 @@ var require_axios = __commonJS({ } function defaultVisitor(value, key, path) { let arr = value; + if (utils$1.isReactNative(formData) && utils$1.isReactNativeBlob(value)) { + formData.append(renderKey(path, key, dots), convertValue(value)); + return false; + } if (value && !path && typeof value === "object") { if (utils$1.endsWith(key, "{}")) { key = metaTokens ? key : key.slice(0, -2); @@ -53248,13 +53199,7 @@ var require_axios = __commonJS({ } stack.push(value); utils$1.forEach(value, function each(el, key) { - const result = !(utils$1.isUndefined(el) || el === null) && visitor.call( - formData, - el, - utils$1.isString(key) ? key.trim() : key, - path, - exposedHelpers - ); + const result = !(utils$1.isUndefined(el) || el === null) && visitor.call(formData, el, utils$1.isString(key) ? key.trim() : key, path, exposedHelpers); if (result === true) { build(el, path ? path.concat(key) : [key]); } @@ -53386,14 +53331,13 @@ var require_axios = __commonJS({ }); } }; - var InterceptorManager$1 = InterceptorManager; var transitionalDefaults = { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false, legacyInterceptorReqResOrdering: true }; - var URLSearchParams2 = url__default["default"].URLSearchParams; + var URLSearchParams2 = url.URLSearchParams; var ALPHA = "abcdefghijklmnopqrstuvwxyz"; var DIGIT = "0123456789"; var ALPHABET = { @@ -53403,9 +53347,11 @@ var require_axios = __commonJS({ }; var generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => { let str = ""; - const { length } = alphabet; + const { + length + } = alphabet; const randomValues = new Uint32Array(size); - crypto__default["default"].randomFillSync(randomValues); + crypto2.randomFillSync(randomValues); for (let i = 0; i < size; i++) { str += alphabet[randomValues[i] % length]; } @@ -53415,7 +53361,7 @@ var require_axios = __commonJS({ isNode: true, classes: { URLSearchParams: URLSearchParams2, - FormData: FormData__default["default"], + FormData: FormData$1, Blob: typeof Blob !== "undefined" && Blob || null }, ALPHABET, @@ -53433,8 +53379,8 @@ var require_axios = __commonJS({ var utils = /* @__PURE__ */ Object.freeze({ __proto__: null, hasBrowserEnv, - hasStandardBrowserWebWorkerEnv, hasStandardBrowserEnv, + hasStandardBrowserWebWorkerEnv, navigator: _navigator, origin }); @@ -53548,11 +53494,9 @@ var require_axios = __commonJS({ } if ((isFileList2 = utils$1.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) { const _FormData = this.env && this.env.FormData; - return toFormData( - isFileList2 ? { "files[]": data } : data, - _FormData && new _FormData(), - this.formSerializer - ); + return toFormData(isFileList2 ? { + "files[]": data + } : data, _FormData && new _FormData(), this.formSerializer); } } if (isObjectPayload || hasJSONContentType) { @@ -53576,7 +53520,7 @@ var require_axios = __commonJS({ } catch (e) { if (strictJSONParsing) { if (e.name === "SyntaxError") { - throw AxiosError$1.from(e, AxiosError$1.ERR_BAD_RESPONSE, this, null, this.response); + throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response); } throw e; } @@ -53602,7 +53546,7 @@ var require_axios = __commonJS({ }, headers: { common: { - "Accept": "application/json, text/plain, */*", + Accept: "application/json, text/plain, */*", "Content-Type": void 0 } } @@ -53610,26 +53554,7 @@ var require_axios = __commonJS({ utils$1.forEach(["delete", "get", "head", "post", "put", "patch"], (method) => { defaults.headers[method] = {}; }); - var defaults$1 = defaults; - var ignoreDuplicateOf = utils$1.toObjectSet([ - "age", - "authorization", - "content-length", - "content-type", - "etag", - "expires", - "from", - "host", - "if-modified-since", - "if-unmodified-since", - "last-modified", - "location", - "max-forwards", - "proxy-authorization", - "referer", - "retry-after", - "user-agent" - ]); + var ignoreDuplicateOf = utils$1.toObjectSet(["age", "authorization", "content-length", "content-type", "etag", "expires", "from", "host", "if-modified-since", "if-unmodified-since", "last-modified", "location", "max-forwards", "proxy-authorization", "referer", "retry-after", "user-agent"]); var parseHeaders = (rawHeaders) => { const parsed = {}; let key; @@ -53655,14 +53580,38 @@ var require_axios = __commonJS({ return parsed; }; var $internals = Symbol("internals"); + var isValidHeaderValue = (value) => !/[\r\n]/.test(value); + function assertValidHeaderValue(value, header) { + if (value === false || value == null) { + return; + } + if (utils$1.isArray(value)) { + value.forEach((v) => assertValidHeaderValue(v, header)); + return; + } + if (!isValidHeaderValue(String(value))) { + throw new Error(`Invalid character in header content ["${header}"]`); + } + } function normalizeHeader(header) { return header && String(header).trim().toLowerCase(); } + function stripTrailingCRLF(str) { + let end = str.length; + while (end > 0) { + const charCode = str.charCodeAt(end - 1); + if (charCode !== 10 && charCode !== 13) { + break; + } + end -= 1; + } + return end === str.length ? str : str.slice(0, end); + } function normalizeValue(value) { if (value === false || value == null) { return value; } - return utils$1.isArray(value) ? value.map(normalizeValue) : String(value); + return utils$1.isArray(value) ? value.map(normalizeValue) : stripTrailingCRLF(String(value)); } function parseTokens(str) { const tokens = /* @__PURE__ */ Object.create(null); @@ -53718,6 +53667,7 @@ var require_axios = __commonJS({ } const key = utils$1.findKey(self2, lHeader); if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) { + assertValidHeaderValue(_value, _header); self2[key || _header] = normalizeValue(_value); } } @@ -53870,7 +53820,9 @@ var require_axios = __commonJS({ } }; AxiosHeaders.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]); - utils$1.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => { + utils$1.reduceDescriptors(AxiosHeaders.prototype, ({ + value + }, key) => { let mapped = key[0].toUpperCase() + key.slice(1); return { get: () => value, @@ -53880,11 +53832,10 @@ var require_axios = __commonJS({ }; }); utils$1.freezeMethods(AxiosHeaders); - var AxiosHeaders$1 = AxiosHeaders; function transformData(fns, response) { - const config = this || defaults$1; + const config = this || defaults; const context = response || config; - const headers = AxiosHeaders$1.from(context.headers); + const headers = AxiosHeaders.from(context.headers); let data = context.data; utils$1.forEach(fns, function transform(fn) { data = fn.call(config, data, headers.normalize(), response ? response.status : void 0); @@ -53895,7 +53846,7 @@ var require_axios = __commonJS({ function isCancel(value) { return !!(value && value.__CANCEL__); } - var CanceledError = class extends AxiosError$1 { + var CanceledError = class extends AxiosError { /** * A `CanceledError` is an object that is thrown when an operation is canceled. * @@ -53906,24 +53857,17 @@ var require_axios = __commonJS({ * @returns {CanceledError} The created error. */ constructor(message, config, request) { - super(message == null ? "canceled" : message, AxiosError$1.ERR_CANCELED, config, request); + super(message == null ? "canceled" : message, AxiosError.ERR_CANCELED, config, request); this.name = "CanceledError"; this.__CANCEL__ = true; } }; - var CanceledError$1 = CanceledError; function settle(resolve, reject, response) { const validateStatus = response.config.validateStatus; if (!response.status || !validateStatus || validateStatus(response.status)) { resolve(response); } else { - reject(new AxiosError$1( - "Request failed with status code " + response.status, - [AxiosError$1.ERR_BAD_REQUEST, AxiosError$1.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4], - response.config, - response.request, - response - )); + reject(new AxiosError("Request failed with status code " + response.status, [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4], response.config, response.request, response)); } } function isAbsoluteURL(url2) { @@ -53942,7 +53886,72 @@ var require_axios = __commonJS({ } return requestedURL; } - var VERSION = "1.13.5"; + var DEFAULT_PORTS$1 = { + ftp: 21, + gopher: 70, + http: 80, + https: 443, + ws: 80, + wss: 443 + }; + function parseUrl(urlString) { + try { + return new URL(urlString); + } catch { + return null; + } + } + function getProxyForUrl(url2) { + var parsedUrl = (typeof url2 === "string" ? parseUrl(url2) : url2) || {}; + var proto = parsedUrl.protocol; + var hostname = parsedUrl.host; + var port = parsedUrl.port; + if (typeof hostname !== "string" || !hostname || typeof proto !== "string") { + return ""; + } + proto = proto.split(":", 1)[0]; + hostname = hostname.replace(/:\d*$/, ""); + port = parseInt(port) || DEFAULT_PORTS$1[proto] || 0; + if (!shouldProxy(hostname, port)) { + return ""; + } + var proxy = getEnv(proto + "_proxy") || getEnv("all_proxy"); + if (proxy && proxy.indexOf("://") === -1) { + proxy = proto + "://" + proxy; + } + return proxy; + } + function shouldProxy(hostname, port) { + var NO_PROXY = getEnv("no_proxy").toLowerCase(); + if (!NO_PROXY) { + return true; + } + if (NO_PROXY === "*") { + return false; + } + return NO_PROXY.split(/[,\s]/).every(function(proxy) { + if (!proxy) { + return true; + } + var parsedProxy = proxy.match(/^(.+):(\d+)$/); + var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy; + var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0; + if (parsedProxyPort && parsedProxyPort !== port) { + return true; + } + if (!/^[.*]/.test(parsedProxyHostname)) { + return hostname !== parsedProxyHostname; + } + if (parsedProxyHostname.charAt(0) === "*") { + parsedProxyHostname = parsedProxyHostname.slice(1); + } + return !hostname.endsWith(parsedProxyHostname); + }); + } + function getEnv(key) { + return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || ""; + } + var VERSION = "1.15.0"; function parseProtocol(url2) { const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2); return match && match[1] || ""; @@ -53958,7 +53967,7 @@ var require_axios = __commonJS({ uri = protocol.length ? uri.slice(protocol.length + 1) : uri; const match = DATA_URL_PATTERN.exec(uri); if (!match) { - throw new AxiosError$1("Invalid URL", AxiosError$1.ERR_INVALID_URL); + throw new AxiosError("Invalid URL", AxiosError.ERR_INVALID_URL); } const mime = match[1]; const isBase64 = match[2]; @@ -53966,16 +53975,18 @@ var require_axios = __commonJS({ const buffer = Buffer.from(decodeURIComponent(body), isBase64 ? "base64" : "utf8"); if (asBlob) { if (!_Blob) { - throw new AxiosError$1("Blob is not supported", AxiosError$1.ERR_NOT_SUPPORT); + throw new AxiosError("Blob is not supported", AxiosError.ERR_NOT_SUPPORT); } - return new _Blob([buffer], { type: mime }); + return new _Blob([buffer], { + type: mime + }); } return buffer; } - throw new AxiosError$1("Unsupported protocol " + protocol, AxiosError$1.ERR_NOT_SUPPORT); + throw new AxiosError("Unsupported protocol " + protocol, AxiosError.ERR_NOT_SUPPORT); } var kInternals = Symbol("internals"); - var AxiosTransformStream = class extends stream__default["default"].Transform { + var AxiosTransformStream = class extends stream.Transform { constructor(options) { options = utils$1.toFlatObject(options, { maxRate: 0, @@ -54085,8 +54096,9 @@ var require_axios = __commonJS({ }); } }; - var AxiosTransformStream$1 = AxiosTransformStream; - var { asyncIterator } = Symbol; + var { + asyncIterator + } = Symbol; var readBlob = async function* (blob) { if (blob.stream) { yield* blob.stream(); @@ -54098,15 +54110,16 @@ var require_axios = __commonJS({ yield blob; } }; - var readBlob$1 = readBlob; var BOUNDARY_ALPHABET = platform2.ALPHABET.ALPHA_DIGIT + "-_"; - var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new util__default["default"].TextEncoder(); + var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new util.TextEncoder(); var CRLF = "\r\n"; var CRLF_BYTES = textEncoder.encode(CRLF); var CRLF_BYTES_COUNT = 2; var FormDataPart = class { constructor(name, value) { - const { escapeName } = this.constructor; + const { + escapeName + } = this.constructor; const isStringValue = utils$1.isString(value); let headers = `Content-Disposition: form-data; name="${escapeName(name)}"${!isStringValue && value.name ? `; filename="${escapeName(value.name)}"` : ""}${CRLF}`; if (isStringValue) { @@ -54122,11 +54135,13 @@ var require_axios = __commonJS({ } async *encode() { yield this.headers; - const { value } = this; + const { + value + } = this; if (utils$1.isTypedArray(value)) { yield value; } else { - yield* readBlob$1(value); + yield* readBlob(value); } yield CRLF_BYTES; } @@ -54175,8 +54190,7 @@ var require_axios = __commonJS({ yield footerBytes; }()); }; - var formDataToStream$1 = formDataToStream; - var ZlibHeaderTransformStream = class extends stream__default["default"].Transform { + var ZlibHeaderTransformStream = class extends stream.Transform { __transform(chunk, encoding, callback) { this.push(chunk); callback(); @@ -54194,7 +54208,6 @@ var require_axios = __commonJS({ this.__transform(chunk, encoding, callback); } }; - var ZlibHeaderTransformStream$1 = ZlibHeaderTransformStream; var callbackify = (fn, reducer) => { return utils$1.isAsyncFn(fn) ? function(...args) { const cb = args.pop(); @@ -54207,7 +54220,81 @@ var require_axios = __commonJS({ }, cb); } : fn; }; - var callbackify$1 = callbackify; + var DEFAULT_PORTS = { + http: 80, + https: 443, + ws: 80, + wss: 443, + ftp: 21 + }; + var parseNoProxyEntry = (entry) => { + let entryHost = entry; + let entryPort = 0; + if (entryHost.charAt(0) === "[") { + const bracketIndex = entryHost.indexOf("]"); + if (bracketIndex !== -1) { + const host = entryHost.slice(1, bracketIndex); + const rest = entryHost.slice(bracketIndex + 1); + if (rest.charAt(0) === ":" && /^\d+$/.test(rest.slice(1))) { + entryPort = Number.parseInt(rest.slice(1), 10); + } + return [host, entryPort]; + } + } + const firstColon = entryHost.indexOf(":"); + const lastColon = entryHost.lastIndexOf(":"); + if (firstColon !== -1 && firstColon === lastColon && /^\d+$/.test(entryHost.slice(lastColon + 1))) { + entryPort = Number.parseInt(entryHost.slice(lastColon + 1), 10); + entryHost = entryHost.slice(0, lastColon); + } + return [entryHost, entryPort]; + }; + var normalizeNoProxyHost = (hostname) => { + if (!hostname) { + return hostname; + } + if (hostname.charAt(0) === "[" && hostname.charAt(hostname.length - 1) === "]") { + hostname = hostname.slice(1, -1); + } + return hostname.replace(/\.+$/, ""); + }; + function shouldBypassProxy(location2) { + let parsed; + try { + parsed = new URL(location2); + } catch (_err) { + return false; + } + const noProxy = (process.env.no_proxy || process.env.NO_PROXY || "").toLowerCase(); + if (!noProxy) { + return false; + } + if (noProxy === "*") { + return true; + } + const port = Number.parseInt(parsed.port, 10) || DEFAULT_PORTS[parsed.protocol.split(":", 1)[0]] || 0; + const hostname = normalizeNoProxyHost(parsed.hostname.toLowerCase()); + return noProxy.split(/[\s,]+/).some((entry) => { + if (!entry) { + return false; + } + let [entryHost, entryPort] = parseNoProxyEntry(entry); + entryHost = normalizeNoProxyHost(entryHost); + if (!entryHost) { + return false; + } + if (entryPort && entryPort !== port) { + return false; + } + if (entryHost.charAt(0) === "*") { + entryHost = entryHost.slice(1); + } + if (entryHost.charAt(0) === ".") { + return hostname.endsWith(entryHost); + } + return hostname === entryHost; + }); + } function speedometer(samplesCount, min) { samplesCount = samplesCount || 10; const bytes = new Array(samplesCount); @@ -54356,15 +54443,18 @@ var require_axios = __commonJS({ return Buffer.byteLength(body, "utf8"); } var zlibOptions = { - flush: zlib__default["default"].constants.Z_SYNC_FLUSH, - finishFlush: zlib__default["default"].constants.Z_SYNC_FLUSH + flush: zlib.constants.Z_SYNC_FLUSH, + finishFlush: zlib.constants.Z_SYNC_FLUSH }; var brotliOptions = { - flush: zlib__default["default"].constants.BROTLI_OPERATION_FLUSH, - finishFlush: zlib__default["default"].constants.BROTLI_OPERATION_FLUSH + flush: zlib.constants.BROTLI_OPERATION_FLUSH, + finishFlush: zlib.constants.BROTLI_OPERATION_FLUSH }; - var isBrotliSupported = utils$1.isFunction(zlib__default["default"].createBrotliDecompress); - var { http: httpFollow, https: httpsFollow } = followRedirects__default["default"]; + var isBrotliSupported = utils$1.isFunction(zlib.createBrotliDecompress); + var { + http: httpFollow, + https: httpsFollow + } = followRedirects; var isHttps = /https:?/; var supportedProtocols = platform2.protocols.map((protocol) => { return protocol + ":"; @@ -54386,12 +54476,12 @@ var require_axios = __commonJS({ let len = authoritySessions.length; for (let i = 0; i < len; i++) { const [sessionHandle, sessionOptions] = authoritySessions[i]; - if (!sessionHandle.destroyed && !sessionHandle.closed && util__default["default"].isDeepStrictEqual(sessionOptions, options)) { + if (!sessionHandle.destroyed && !sessionHandle.closed && util.isDeepStrictEqual(sessionOptions, options)) { return sessionHandle; } } } - const session = http2__default["default"].connect(authority, options); + const session = http2.connect(authority, options); let removed; const removeSession = () => { if (removed) { @@ -54406,12 +54496,17 @@ var require_axios = __commonJS({ } else { entries.splice(i, 1); } + if (!session.closed) { + session.close(); + } return; } } }; const originalRequestFn = session.request; - const { sessionTimeout } = options; + const { + sessionTimeout + } = options; if (sessionTimeout != null) { let timer; let streamsCount = 0; @@ -54434,10 +54529,7 @@ var require_axios = __commonJS({ }; } session.once("close", removeSession); - let entry = [ - session, - options - ]; + let entry = [session, options]; authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry]; return session; } @@ -54454,9 +54546,11 @@ var require_axios = __commonJS({ function setProxy(options, configProxy, location2) { let proxy = configProxy; if (!proxy && proxy !== false) { - const proxyUrl = proxyFromEnv__default["default"].getProxyForUrl(location2); + const proxyUrl = getProxyForUrl(location2); if (proxyUrl) { - proxy = new URL(proxyUrl); + if (!shouldBypassProxy(location2)) { + proxy = new URL(proxyUrl); + } } } if (proxy) { @@ -54468,7 +54562,9 @@ var require_axios = __commonJS({ if (validProxyAuth) { proxy.auth = (proxy.auth.username || "") + ":" + (proxy.auth.password || ""); } else if (typeof proxy.auth === "object") { - throw new AxiosError$1("Invalid proxy authorization", AxiosError$1.ERR_BAD_OPTION, { proxy }); + throw new AxiosError("Invalid proxy authorization", AxiosError.ERR_BAD_OPTION, { + proxy + }); } const base64 = Buffer.from(proxy.auth, "utf8").toString("base64"); options.headers["Proxy-Authorization"] = "Basic " + base64; @@ -54508,7 +54604,10 @@ var require_axios = __commonJS({ asyncExecutor(_resolve, _reject, (onDoneHandler) => onDone = onDoneHandler).catch(_reject); }); }; - var resolveFamily = ({ address, family }) => { + var resolveFamily = ({ + address, + family + }) => { if (!utils$1.isString(address)) { throw TypeError("address must be a string"); } @@ -54517,18 +54616,24 @@ var require_axios = __commonJS({ family: family || (address.indexOf(".") < 0 ? 6 : 4) }; }; - var buildAddressEntry = (address, family) => resolveFamily(utils$1.isObject(address) ? address : { address, family }); + var buildAddressEntry = (address, family) => resolveFamily(utils$1.isObject(address) ? address : { + address, + family + }); var http2Transport = { request(options, cb) { const authority = options.protocol + "//" + options.hostname + ":" + (options.port || (options.protocol === "https:" ? 443 : 80)); - const { http2Options, headers } = options; + const { + http2Options, + headers + } = options; const session = http2Sessions.getSession(authority, http2Options); const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS - } = http2__default["default"].constants; + } = http2.constants; const http2Headers = { [HTTP2_HEADER_SCHEME]: options.protocol.replace(":", ""), [HTTP2_HEADER_METHOD]: options.method, @@ -54552,8 +54657,17 @@ var require_axios = __commonJS({ }; var httpAdapter = isHttpAdapterSupported && function httpAdapter2(config) { return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) { - let { data, lookup, family, httpVersion = 1, http2Options } = config; - const { responseType, responseEncoding } = config; + let { + data, + lookup, + family, + httpVersion = 1, + http2Options + } = config; + const { + responseType, + responseEncoding + } = config; const method = config.method.toUpperCase(); let isDone; let rejected = false; @@ -54567,7 +54681,7 @@ var require_axios = __commonJS({ } const isHttp2 = httpVersion === 2; if (lookup) { - const _lookup = callbackify$1(lookup, (value) => utils$1.isArray(value) ? value : [value]); + const _lookup = callbackify(lookup, (value) => utils$1.isArray(value) ? value : [value]); lookup = (hostname, opt, cb) => { _lookup(hostname, opt, (err, arg0, arg1) => { if (err) { @@ -54581,7 +54695,7 @@ var require_axios = __commonJS({ const abortEmitter = new events.EventEmitter(); function abort(reason) { try { - abortEmitter.emit("abort", !reason || reason.type ? new CanceledError$1(null, config, req) : reason); + abortEmitter.emit("abort", !reason || reason.type ? new CanceledError(null, config, req) : reason); } catch (err) { console.warn("emit error", err); } @@ -54609,9 +54723,11 @@ var require_axios = __commonJS({ onFinished(); return; } - const { data: data2 } = response; - if (data2 instanceof stream__default["default"].Readable || data2 instanceof stream__default["default"].Duplex) { - const offListeners = stream__default["default"].finished(data2, () => { + const { + data: data2 + } = response; + if (data2 instanceof stream.Readable || data2 instanceof stream.Duplex) { + const offListeners = stream.finished(data2, () => { offListeners(); onFinished(); }); @@ -54627,11 +54743,7 @@ var require_axios = __commonJS({ const dataUrl = String(config.url || fullPath || ""); const estimated = estimateDataURLDecodedBytes(dataUrl); if (estimated > config.maxContentLength) { - return reject(new AxiosError$1( - "maxContentLength size of " + config.maxContentLength + " exceeded", - AxiosError$1.ERR_BAD_RESPONSE, - config - )); + return reject(new AxiosError("maxContentLength size of " + config.maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config)); } } let convertedData; @@ -54648,7 +54760,7 @@ var require_axios = __commonJS({ Blob: config.env && config.env.Blob }); } catch (err) { - throw AxiosError$1.from(err, AxiosError$1.ERR_BAD_REQUEST, config); + throw AxiosError.from(err, AxiosError.ERR_BAD_REQUEST, config); } if (responseType === "text") { convertedData = convertedData.toString(responseEncoding); @@ -54656,32 +54768,31 @@ var require_axios = __commonJS({ convertedData = utils$1.stripBOM(convertedData); } } else if (responseType === "stream") { - convertedData = stream__default["default"].Readable.from(convertedData); + convertedData = stream.Readable.from(convertedData); } return settle(resolve, reject, { data: convertedData, status: 200, statusText: "OK", - headers: new AxiosHeaders$1(), + headers: new AxiosHeaders(), config }); } if (supportedProtocols.indexOf(protocol) === -1) { - return reject(new AxiosError$1( - "Unsupported protocol " + protocol, - AxiosError$1.ERR_BAD_REQUEST, - config - )); + return reject(new AxiosError("Unsupported protocol " + protocol, AxiosError.ERR_BAD_REQUEST, config)); } - const headers = AxiosHeaders$1.from(config.headers).normalize(); + const headers = AxiosHeaders.from(config.headers).normalize(); headers.set("User-Agent", "axios/" + VERSION, false); - const { onUploadProgress, onDownloadProgress } = config; + const { + onUploadProgress, + onDownloadProgress + } = config; const maxRate = config.maxRate; let maxUploadRate = void 0; let maxDownloadRate = void 0; if (utils$1.isSpecCompliantForm(data)) { const userBoundary = headers.getContentType(/boundary=([-_\w\d]{10,70})/i); - data = formDataToStream$1(data, (formHeaders) => { + data = formDataToStream(data, (formHeaders) => { headers.set(formHeaders); }, { tag: `axios-${VERSION}-boundary`, @@ -54691,7 +54802,7 @@ var require_axios = __commonJS({ headers.set(data.getHeaders()); if (!headers.hasContentLength()) { try { - const knownLength = await util__default["default"].promisify(data.getLength).call(data); + const knownLength = await util.promisify(data.getLength).call(data); Number.isFinite(knownLength) && knownLength >= 0 && headers.setContentLength(knownLength); } catch (e) { } @@ -54699,7 +54810,7 @@ var require_axios = __commonJS({ } else if (utils$1.isBlob(data) || utils$1.isFile(data)) { data.size && headers.setContentType(data.type || "application/octet-stream"); headers.setContentLength(data.size || 0); - data = stream__default["default"].Readable.from(readBlob$1(data)); + data = stream.Readable.from(readBlob(data)); } else if (data && !utils$1.isStream(data)) { if (Buffer.isBuffer(data)) ; else if (utils$1.isArrayBuffer(data)) { @@ -54707,19 +54818,11 @@ var require_axios = __commonJS({ } else if (utils$1.isString(data)) { data = Buffer.from(data, "utf-8"); } else { - return reject(new AxiosError$1( - "Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream", - AxiosError$1.ERR_BAD_REQUEST, - config - )); + return reject(new AxiosError("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream", AxiosError.ERR_BAD_REQUEST, config)); } headers.setContentLength(data.length, false); if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) { - return reject(new AxiosError$1( - "Request body larger than maxBodyLength limit", - AxiosError$1.ERR_BAD_REQUEST, - config - )); + return reject(new AxiosError("Request body larger than maxBodyLength limit", AxiosError.ERR_BAD_REQUEST, config)); } } const contentLength = utils$1.toFiniteNumber(headers.getContentLength()); @@ -54731,18 +54834,14 @@ var require_axios = __commonJS({ } if (data && (onUploadProgress || maxUploadRate)) { if (!utils$1.isStream(data)) { - data = stream__default["default"].Readable.from(data, { objectMode: false }); + data = stream.Readable.from(data, { + objectMode: false + }); } - data = stream__default["default"].pipeline([data, new AxiosTransformStream$1({ + data = stream.pipeline([data, new AxiosTransformStream({ maxRate: utils$1.toFiniteNumber(maxUploadRate) })], utils$1.noop); - onUploadProgress && data.on("progress", flushOnFinish( - data, - progressEventDecorator( - contentLength, - progressEventReducer(asyncDecorator(onUploadProgress), false, 3) - ) - )); + onUploadProgress && data.on("progress", flushOnFinish(data, progressEventDecorator(contentLength, progressEventReducer(asyncDecorator(onUploadProgress), false, 3)))); } let auth = void 0; if (config.auth) { @@ -54758,11 +54857,7 @@ var require_axios = __commonJS({ auth && headers.delete("authorization"); let path; try { - path = buildURL( - parsed.pathname + parsed.search, - config.params, - config.paramsSerializer - ).replace(/^\?/, ""); + path = buildURL(parsed.pathname + parsed.search, config.params, config.paramsSerializer).replace(/^\?/, ""); } catch (err) { const customErr = new Error(err.message); customErr.config = config; @@ -54770,16 +54865,15 @@ var require_axios = __commonJS({ customErr.exists = true; return reject(customErr); } - headers.set( - "Accept-Encoding", - "gzip, compress, deflate" + (isBrotliSupported ? ", br" : ""), - false - ); + headers.set("Accept-Encoding", "gzip, compress, deflate" + (isBrotliSupported ? ", br" : ""), false); const options = { path, method, headers: headers.toJSON(), - agents: { http: config.httpAgent, https: config.httpsAgent }, + agents: { + http: config.httpAgent, + https: config.httpsAgent + }, auth, protocol, family, @@ -54804,7 +54898,7 @@ var require_axios = __commonJS({ if (config.transport) { transport = config.transport; } else if (config.maxRedirects === 0) { - transport = isHttpsRequest ? https__default["default"] : http__default["default"]; + transport = isHttpsRequest ? https : http; } else { if (config.maxRedirects) { options.maxRedirects = config.maxRedirects; @@ -54828,16 +54922,10 @@ var require_axios = __commonJS({ const streams = [res]; const responseLength = utils$1.toFiniteNumber(res.headers["content-length"]); if (onDownloadProgress || maxDownloadRate) { - const transformStream = new AxiosTransformStream$1({ + const transformStream = new AxiosTransformStream({ maxRate: utils$1.toFiniteNumber(maxDownloadRate) }); - onDownloadProgress && transformStream.on("progress", flushOnFinish( - transformStream, - progressEventDecorator( - responseLength, - progressEventReducer(asyncDecorator(onDownloadProgress), true, 3) - ) - )); + onDownloadProgress && transformStream.on("progress", flushOnFinish(transformStream, progressEventDecorator(responseLength, progressEventReducer(asyncDecorator(onDownloadProgress), true, 3)))); streams.push(transformStream); } let responseStream = res; @@ -54852,26 +54940,26 @@ var require_axios = __commonJS({ case "x-gzip": case "compress": case "x-compress": - streams.push(zlib__default["default"].createUnzip(zlibOptions)); + streams.push(zlib.createUnzip(zlibOptions)); delete res.headers["content-encoding"]; break; case "deflate": - streams.push(new ZlibHeaderTransformStream$1()); - streams.push(zlib__default["default"].createUnzip(zlibOptions)); + streams.push(new ZlibHeaderTransformStream()); + streams.push(zlib.createUnzip(zlibOptions)); delete res.headers["content-encoding"]; break; case "br": if (isBrotliSupported) { - streams.push(zlib__default["default"].createBrotliDecompress(brotliOptions)); + streams.push(zlib.createBrotliDecompress(brotliOptions)); delete res.headers["content-encoding"]; } } } - responseStream = streams.length > 1 ? stream__default["default"].pipeline(streams, utils$1.noop) : streams[0]; + responseStream = streams.length > 1 ? stream.pipeline(streams, utils$1.noop) : streams[0]; const response = { status: res.statusCode, statusText: res.statusMessage, - headers: new AxiosHeaders$1(res.headers), + headers: new AxiosHeaders(res.headers), config, request: lastRequest }; @@ -54887,30 +54975,20 @@ var require_axios = __commonJS({ if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) { rejected = true; responseStream.destroy(); - abort(new AxiosError$1( - "maxContentLength size of " + config.maxContentLength + " exceeded", - AxiosError$1.ERR_BAD_RESPONSE, - config, - lastRequest - )); + abort(new AxiosError("maxContentLength size of " + config.maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config, lastRequest)); } }); responseStream.on("aborted", function handlerStreamAborted() { if (rejected) { return; } - const err = new AxiosError$1( - "stream has been aborted", - AxiosError$1.ERR_BAD_RESPONSE, - config, - lastRequest - ); + const err = new AxiosError("stream has been aborted", AxiosError.ERR_BAD_RESPONSE, config, lastRequest); responseStream.destroy(err); reject(err); }); responseStream.on("error", function handleStreamError(err) { if (req.destroyed) return; - reject(AxiosError$1.from(err, null, config, lastRequest)); + reject(AxiosError.from(err, null, config, lastRequest)); }); responseStream.on("end", function handleStreamEnd() { try { @@ -54923,7 +55001,7 @@ var require_axios = __commonJS({ } response.data = responseData; } catch (err) { - return reject(AxiosError$1.from(err, null, config, response.request, response)); + return reject(AxiosError.from(err, null, config, response.request, response)); } settle(resolve, reject, response); }); @@ -54943,7 +55021,7 @@ var require_axios = __commonJS({ } }); req.on("error", function handleRequestError(err) { - reject(AxiosError$1.from(err, null, config, req)); + reject(AxiosError.from(err, null, config, req)); }); req.on("socket", function handleRequestSocket(socket) { socket.setKeepAlive(true, 1e3 * 60); @@ -54951,12 +55029,7 @@ var require_axios = __commonJS({ if (config.timeout) { const timeout = parseInt(config.timeout, 10); if (Number.isNaN(timeout)) { - abort(new AxiosError$1( - "error trying to parse `config.timeout` to int", - AxiosError$1.ERR_BAD_OPTION_VALUE, - config, - req - )); + abort(new AxiosError("error trying to parse `config.timeout` to int", AxiosError.ERR_BAD_OPTION_VALUE, config, req)); return; } req.setTimeout(timeout, function handleRequestTimeout() { @@ -54966,12 +55039,7 @@ var require_axios = __commonJS({ if (config.timeoutErrorMessage) { timeoutErrorMessage = config.timeoutErrorMessage; } - abort(new AxiosError$1( - timeoutErrorMessage, - transitional.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED, - config, - req - )); + abort(new AxiosError(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, config, req)); }); } else { req.setTimeout(0); @@ -54988,7 +55056,7 @@ var require_axios = __commonJS({ }); data.on("close", () => { if (!ended && !errored) { - abort(new CanceledError$1("Request stream has been aborted", config, req)); + abort(new CanceledError("Request stream has been aborted", config, req)); } }); data.pipe(req); @@ -55001,10 +55069,7 @@ var require_axios = __commonJS({ var isURLSameOrigin = platform2.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url2) => { url2 = new URL(url2, platform2.origin); return origin2.protocol === url2.protocol && origin2.host === url2.host && (isMSIE || origin2.port === url2.port); - })( - new URL(platform2.origin), - platform2.navigator && /(msie|trident)/i.test(platform2.navigator.userAgent) - ) : () => true; + })(new URL(platform2.origin), platform2.navigator && /(msie|trident)/i.test(platform2.navigator.userAgent)) : () => true; var cookies = platform2.hasStandardBrowserEnv ? ( // Standard browser envs support document.cookie { @@ -55049,13 +55114,17 @@ var require_axios = __commonJS({ } } ); - var headersToObject = (thing) => thing instanceof AxiosHeaders$1 ? { ...thing } : thing; + var headersToObject = (thing) => thing instanceof AxiosHeaders ? { + ...thing + } : thing; function mergeConfig(config1, config2) { config2 = config2 || {}; const config = {}; function getMergedValue(target, source, prop, caseless) { if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) { - return utils$1.merge.call({ caseless }, target, source); + return utils$1.merge.call({ + caseless + }, target, source); } else if (utils$1.isPlainObject(source)) { return utils$1.merge({}, source); } else if (utils$1.isArray(source)) { @@ -55120,28 +55189,31 @@ var require_axios = __commonJS({ validateStatus: mergeDirectKeys, headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true) }; - utils$1.forEach( - Object.keys({ ...config1, ...config2 }), - function computeConfigValue(prop) { - if (prop === "__proto__" || prop === "constructor" || prop === "prototype") - return; - const merge2 = utils$1.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties; - const configValue = merge2(config1[prop], config2[prop], prop); - utils$1.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue); - } - ); + utils$1.forEach(Object.keys({ + ...config1, + ...config2 + }), function computeConfigValue(prop) { + if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return; + const merge2 = utils$1.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties; + const configValue = merge2(config1[prop], config2[prop], prop); + utils$1.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue); + }); return config; } var resolveConfig = (config) => { const newConfig = mergeConfig({}, config); - let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig; - newConfig.headers = headers = AxiosHeaders$1.from(headers); + let { + data, + withXSRFToken, + xsrfHeaderName, + xsrfCookieName, + headers, + auth + } = newConfig; + newConfig.headers = headers = AxiosHeaders.from(headers); newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer); if (auth) { - headers.set( - "Authorization", - "Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : "")) - ); + headers.set("Authorization", "Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : ""))); } if (utils$1.isFormData(data)) { if (platform2.hasStandardBrowserEnv || platform2.hasStandardBrowserWebWorkerEnv) { @@ -55172,8 +55244,12 @@ var require_axios = __commonJS({ return new Promise(function dispatchXhrRequest(resolve, reject) { const _config = resolveConfig(config); let requestData = _config.data; - const requestHeaders = AxiosHeaders$1.from(_config.headers).normalize(); - let { responseType, onUploadProgress, onDownloadProgress } = _config; + const requestHeaders = AxiosHeaders.from(_config.headers).normalize(); + let { + responseType, + onUploadProgress, + onDownloadProgress + } = _config; let onCanceled; let uploadThrottled, downloadThrottled; let flushUpload, flushDownload; @@ -55190,9 +55266,7 @@ var require_axios = __commonJS({ if (!request) { return; } - const responseHeaders = AxiosHeaders$1.from( - "getAllResponseHeaders" in request && request.getAllResponseHeaders() - ); + const responseHeaders = AxiosHeaders.from("getAllResponseHeaders" in request && request.getAllResponseHeaders()); const responseData = !responseType || responseType === "text" || responseType === "json" ? request.responseText : request.response; const response = { data: responseData, @@ -55228,12 +55302,12 @@ var require_axios = __commonJS({ if (!request) { return; } - reject(new AxiosError$1("Request aborted", AxiosError$1.ECONNABORTED, config, request)); + reject(new AxiosError("Request aborted", AxiosError.ECONNABORTED, config, request)); request = null; }; request.onerror = function handleError(event) { const msg = event && event.message ? event.message : "Network Error"; - const err = new AxiosError$1(msg, AxiosError$1.ERR_NETWORK, config, request); + const err = new AxiosError(msg, AxiosError.ERR_NETWORK, config, request); err.event = event || null; reject(err); request = null; @@ -55244,12 +55318,7 @@ var require_axios = __commonJS({ if (_config.timeoutErrorMessage) { timeoutErrorMessage = _config.timeoutErrorMessage; } - reject(new AxiosError$1( - timeoutErrorMessage, - transitional.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED, - config, - request - )); + reject(new AxiosError(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, config, request)); request = null; }; requestData === void 0 && requestHeaders.setContentType(null); @@ -55278,7 +55347,7 @@ var require_axios = __commonJS({ if (!request) { return; } - reject(!cancel || cancel.type ? new CanceledError$1(null, config, request) : cancel); + reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel); request.abort(); request = null; }; @@ -55289,14 +55358,16 @@ var require_axios = __commonJS({ } const protocol = parseProtocol(_config.url); if (protocol && platform2.protocols.indexOf(protocol) === -1) { - reject(new AxiosError$1("Unsupported protocol " + protocol + ":", AxiosError$1.ERR_BAD_REQUEST, config)); + reject(new AxiosError("Unsupported protocol " + protocol + ":", AxiosError.ERR_BAD_REQUEST, config)); return; } request.send(requestData || null); }); }; var composeSignals = (signals, timeout) => { - const { length } = signals = signals ? signals.filter(Boolean) : []; + const { + length + } = signals = signals ? signals.filter(Boolean) : []; if (timeout || length) { let controller = new AbortController(); let aborted; @@ -55305,12 +55376,12 @@ var require_axios = __commonJS({ aborted = true; unsubscribe(); const err = reason instanceof Error ? reason : this.reason; - controller.abort(err instanceof AxiosError$1 ? err : new CanceledError$1(err instanceof Error ? err.message : err)); + controller.abort(err instanceof AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err)); } }; let timer = timeout && setTimeout(() => { timer = null; - onabort(new AxiosError$1(`timeout of ${timeout}ms exceeded`, AxiosError$1.ETIMEDOUT)); + onabort(new AxiosError(`timeout of ${timeout}ms exceeded`, AxiosError.ETIMEDOUT)); }, timeout); const unsubscribe = () => { if (signals) { @@ -55323,15 +55394,16 @@ var require_axios = __commonJS({ } }; signals.forEach((signal2) => signal2.addEventListener("abort", onabort)); - const { signal } = controller; + const { + signal + } = controller; signal.unsubscribe = () => utils$1.asap(unsubscribe); return signal; } }; - var composeSignals$1 = composeSignals; var streamChunk = function* (chunk, chunkSize) { let len = chunk.byteLength; - if (!chunkSize || len < chunkSize) { + if (len < chunkSize) { yield chunk; return; } @@ -55356,7 +55428,10 @@ var require_axios = __commonJS({ const reader = stream2.getReader(); try { for (; ; ) { - const { done, value } = await reader.read(); + const { + done, + value + } = await reader.read(); if (done) { break; } @@ -55379,7 +55454,10 @@ var require_axios = __commonJS({ return new ReadableStream({ async pull(controller) { try { - const { done: done2, value } = await iterator2.next(); + const { + done: done2, + value + } = await iterator2.next(); if (done2) { _onFinish(); controller.close(); @@ -55405,8 +55483,13 @@ var require_axios = __commonJS({ }); }; var DEFAULT_CHUNK_SIZE = 64 * 1024; - var { isFunction } = utils$1; - var globalFetchAPI = (({ Request, Response }) => ({ + var { + isFunction + } = utils$1; + var globalFetchAPI = (({ + Request, + Response + }) => ({ Request, Response }))(utils$1.global); @@ -55425,7 +55508,11 @@ var require_axios = __commonJS({ env = utils$1.merge.call({ skipUndefined: true }, globalFetchAPI, env); - const { fetch: envFetch, Request, Response } = env; + const { + fetch: envFetch, + Request, + Response + } = env; const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === "function"; const isRequestSupported = isFunction(Request); const isResponseSupported = isFunction(Response); @@ -55436,14 +55523,16 @@ var require_axios = __commonJS({ const encodeText = isFetchSupported && (typeof TextEncoder$1 === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder$1()) : async (str) => new Uint8Array(await new Request(str).arrayBuffer())); const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => { let duplexAccessed = false; + const body = new ReadableStream$1(); const hasContentType = new Request(platform2.origin, { - body: new ReadableStream$1(), + body, method: "POST", get duplex() { duplexAccessed = true; return "half"; } }).headers.has("Content-Type"); + body.cancel(); return duplexAccessed && !hasContentType; }); const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils$1.isReadableStream(new Response("").body)); @@ -55457,7 +55546,7 @@ var require_axios = __commonJS({ if (method) { return method.call(res); } - throw new AxiosError$1(`Response type '${type}' is not supported`, AxiosError$1.ERR_NOT_SUPPORT, config); + throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config); }); }); })(); @@ -55506,7 +55595,7 @@ var require_axios = __commonJS({ } = resolveConfig(config); let _fetch = envFetch || fetch; responseType = responseType ? (responseType + "").toLowerCase() : "text"; - let composedSignal = composeSignals$1([signal, cancelToken && cancelToken.toAbortSignal()], timeout); + let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout); let request = null; const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => { composedSignal.unsubscribe(); @@ -55524,10 +55613,7 @@ var require_axios = __commonJS({ headers.setContentType(contentTypeHeader); } if (_request.body) { - const [onProgress, flush] = progressEventDecorator( - requestContentLength, - progressEventReducer(asyncDecorator(onUploadProgress)) - ); + const [onProgress, flush] = progressEventDecorator(requestContentLength, progressEventReducer(asyncDecorator(onUploadProgress))); data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush); } } @@ -55553,17 +55639,11 @@ var require_axios = __commonJS({ options[prop] = response[prop]; }); const responseContentLength = utils$1.toFiniteNumber(response.headers.get("content-length")); - const [onProgress, flush] = onDownloadProgress && progressEventDecorator( - responseContentLength, - progressEventReducer(asyncDecorator(onDownloadProgress), true) - ) || []; - response = new Response( - trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => { - flush && flush(); - unsubscribe && unsubscribe(); - }), - options - ); + const [onProgress, flush] = onDownloadProgress && progressEventDecorator(responseContentLength, progressEventReducer(asyncDecorator(onDownloadProgress), true)) || []; + response = new Response(trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => { + flush && flush(); + unsubscribe && unsubscribe(); + }), options); } responseType = responseType || "text"; let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || "text"](response, config); @@ -55571,7 +55651,7 @@ var require_axios = __commonJS({ return await new Promise((resolve, reject) => { settle(resolve, reject, { data: responseData, - headers: AxiosHeaders$1.from(response.headers), + headers: AxiosHeaders.from(response.headers), status: response.status, statusText: response.statusText, config, @@ -55581,26 +55661,23 @@ var require_axios = __commonJS({ } catch (err) { unsubscribe && unsubscribe(); if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) { - throw Object.assign( - new AxiosError$1("Network Error", AxiosError$1.ERR_NETWORK, config, request, err && err.response), - { - cause: err.cause || err - } - ); + throw Object.assign(new AxiosError("Network Error", AxiosError.ERR_NETWORK, config, request, err && err.response), { + cause: err.cause || err + }); } - throw AxiosError$1.from(err, err && err.code, config, request, err && err.response); + throw AxiosError.from(err, err && err.code, config, request, err && err.response); } }; }; var seedCache = /* @__PURE__ */ new Map(); var getFetch = (config) => { let env = config && config.env || {}; - const { fetch: fetch2, Request, Response } = env; - const seeds = [ + const { + fetch: fetch2, Request, - Response, - fetch2 - ]; + Response + } = env; + const seeds = [Request, Response, fetch2]; let len = seeds.length, i = len, seed, target, map = seedCache; while (i--) { seed = seeds[i]; @@ -55621,17 +55698,23 @@ var require_axios = __commonJS({ utils$1.forEach(knownAdapters, (fn, value) => { if (fn) { try { - Object.defineProperty(fn, "name", { value }); + Object.defineProperty(fn, "name", { + value + }); } catch (e) { } - Object.defineProperty(fn, "adapterName", { value }); + Object.defineProperty(fn, "adapterName", { + value + }); } }); var renderReason = (reason) => `- ${reason}`; var isResolvedHandle = (adapter) => utils$1.isFunction(adapter) || adapter === null || adapter === false; function getAdapter(adapters2, config) { adapters2 = utils$1.isArray(adapters2) ? adapters2 : [adapters2]; - const { length } = adapters2; + const { + length + } = adapters2; let nameOrAdapter; let adapter; const rejectedReasons = {}; @@ -55642,7 +55725,7 @@ var require_axios = __commonJS({ if (!isResolvedHandle(nameOrAdapter)) { adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()]; if (adapter === void 0) { - throw new AxiosError$1(`Unknown adapter '${id}'`); + throw new AxiosError(`Unknown adapter '${id}'`); } } if (adapter && (utils$1.isFunction(adapter) || (adapter = adapter.get(config)))) { @@ -55651,14 +55734,9 @@ var require_axios = __commonJS({ rejectedReasons[id || "#" + i] = adapter; } if (!adapter) { - const reasons = Object.entries(rejectedReasons).map( - ([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build") - ); + const reasons = Object.entries(rejectedReasons).map(([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build")); let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified"; - throw new AxiosError$1( - `There is no suitable adapter to dispatch the request ` + s, - "ERR_NOT_SUPPORT" - ); + throw new AxiosError(`There is no suitable adapter to dispatch the request ` + s, "ERR_NOT_SUPPORT"); } return adapter; } @@ -55679,39 +55757,28 @@ var require_axios = __commonJS({ config.cancelToken.throwIfRequested(); } if (config.signal && config.signal.aborted) { - throw new CanceledError$1(null, config); + throw new CanceledError(null, config); } } function dispatchRequest(config) { throwIfCancellationRequested(config); - config.headers = AxiosHeaders$1.from(config.headers); - config.data = transformData.call( - config, - config.transformRequest - ); + config.headers = AxiosHeaders.from(config.headers); + config.data = transformData.call(config, config.transformRequest); if (["post", "put", "patch"].indexOf(config.method) !== -1) { config.headers.setContentType("application/x-www-form-urlencoded", false); } - const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter, config); + const adapter = adapters.getAdapter(config.adapter || defaults.adapter, config); return adapter(config).then(function onAdapterResolution(response) { throwIfCancellationRequested(config); - response.data = transformData.call( - config, - config.transformResponse, - response - ); - response.headers = AxiosHeaders$1.from(response.headers); + response.data = transformData.call(config, config.transformResponse, response); + response.headers = AxiosHeaders.from(response.headers); return response; }, function onAdapterRejection(reason) { if (!isCancel(reason)) { throwIfCancellationRequested(config); if (reason && reason.response) { - reason.response.data = transformData.call( - config, - config.transformResponse, - reason.response - ); - reason.response.headers = AxiosHeaders$1.from(reason.response.headers); + reason.response.data = transformData.call(config, config.transformResponse, reason.response); + reason.response.headers = AxiosHeaders.from(reason.response.headers); } } return Promise.reject(reason); @@ -55730,19 +55797,11 @@ var require_axios = __commonJS({ } return (value, opt, opts) => { if (validator2 === false) { - throw new AxiosError$1( - formatMessage(opt, " has been removed" + (version ? " in " + version : "")), - AxiosError$1.ERR_DEPRECATED - ); + throw new AxiosError(formatMessage(opt, " has been removed" + (version ? " in " + version : "")), AxiosError.ERR_DEPRECATED); } if (version && !deprecatedWarnings[opt]) { deprecatedWarnings[opt] = true; - console.warn( - formatMessage( - opt, - " has been deprecated since v" + version + " and will be removed in the near future" - ) - ); + console.warn(formatMessage(opt, " has been deprecated since v" + version + " and will be removed in the near future")); } return validator2 ? validator2(value, opt, opts) : true; }; @@ -55755,7 +55814,7 @@ var require_axios = __commonJS({ }; function assertOptions(options, schema, allowUnknown) { if (typeof options !== "object") { - throw new AxiosError$1("options must be an object", AxiosError$1.ERR_BAD_OPTION_VALUE); + throw new AxiosError("options must be an object", AxiosError.ERR_BAD_OPTION_VALUE); } const keys = Object.keys(options); let i = keys.length; @@ -55766,12 +55825,12 @@ var require_axios = __commonJS({ const value = options[opt]; const result = value === void 0 || validator2(value, opt, options); if (result !== true) { - throw new AxiosError$1("option " + opt + " must be " + result, AxiosError$1.ERR_BAD_OPTION_VALUE); + throw new AxiosError("option " + opt + " must be " + result, AxiosError.ERR_BAD_OPTION_VALUE); } continue; } if (allowUnknown !== true) { - throw new AxiosError$1("Unknown option " + opt, AxiosError$1.ERR_BAD_OPTION); + throw new AxiosError("Unknown option " + opt, AxiosError.ERR_BAD_OPTION); } } } @@ -55784,8 +55843,8 @@ var require_axios = __commonJS({ constructor(instanceConfig) { this.defaults = instanceConfig || {}; this.interceptors = { - request: new InterceptorManager$1(), - response: new InterceptorManager$1() + request: new InterceptorManager(), + response: new InterceptorManager() }; } /** @@ -55803,12 +55862,23 @@ var require_axios = __commonJS({ if (err instanceof Error) { let dummy = {}; Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error(); - const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, "") : ""; + const stack = (() => { + if (!dummy.stack) { + return ""; + } + const firstNewlineIndex = dummy.stack.indexOf("\n"); + return firstNewlineIndex === -1 ? "" : dummy.stack.slice(firstNewlineIndex + 1); + })(); try { if (!err.stack) { err.stack = stack; - } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ""))) { - err.stack += "\n" + stack; + } else if (stack) { + const firstNewlineIndex = stack.indexOf("\n"); + const secondNewlineIndex = firstNewlineIndex === -1 ? -1 : stack.indexOf("\n", firstNewlineIndex + 1); + const stackWithoutTwoTopLines = secondNewlineIndex === -1 ? "" : stack.slice(secondNewlineIndex + 1); + if (!String(err.stack).endsWith(stackWithoutTwoTopLines)) { + err.stack += "\n" + stack; + } } } catch (e) { } @@ -55824,7 +55894,11 @@ var require_axios = __commonJS({ config = configOrUrl || {}; } config = mergeConfig(this.defaults, config); - const { transitional, paramsSerializer, headers } = config; + const { + transitional, + paramsSerializer, + headers + } = config; if (transitional !== void 0) { validator.assertOptions(transitional, { silentJSONParsing: validators.transitional(validators.boolean), @@ -55856,17 +55930,11 @@ var require_axios = __commonJS({ withXsrfToken: validators.spelling("withXSRFToken") }, true); config.method = (config.method || this.defaults.method || "get").toLowerCase(); - let contextHeaders = headers && utils$1.merge( - headers.common, - headers[config.method] - ); - headers && utils$1.forEach( - ["delete", "get", "head", "post", "put", "patch", "common"], - (method) => { - delete headers[method]; - } - ); - config.headers = AxiosHeaders$1.concat(contextHeaders, headers); + let contextHeaders = headers && utils$1.merge(headers.common, headers[config.method]); + headers && utils$1.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (method) => { + delete headers[method]; + }); + config.headers = AxiosHeaders.concat(contextHeaders, headers); const requestInterceptorChain = []; let synchronousRequestInterceptors = true; this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) { @@ -55955,7 +56023,6 @@ var require_axios = __commonJS({ Axios.prototype[method] = generateHTTPMethod(); Axios.prototype[method + "Form"] = generateHTTPMethod(true); }); - var Axios$1 = Axios; var CancelToken = class _CancelToken { constructor(executor) { if (typeof executor !== "function") { @@ -55989,7 +56056,7 @@ var require_axios = __commonJS({ if (token.reason) { return; } - token.reason = new CanceledError$1(message, config, request); + token.reason = new CanceledError(message, config, request); resolvePromise(token.reason); }); } @@ -56051,7 +56118,6 @@ var require_axios = __commonJS({ }; } }; - var CancelToken$1 = CancelToken; function spread(callback) { return function wrap(arr) { return callback.apply(null, arr); @@ -56134,25 +56200,28 @@ var require_axios = __commonJS({ Object.entries(HttpStatusCode).forEach(([key, value]) => { HttpStatusCode[value] = key; }); - var HttpStatusCode$1 = HttpStatusCode; function createInstance(defaultConfig) { - const context = new Axios$1(defaultConfig); - const instance = bind(Axios$1.prototype.request, context); - utils$1.extend(instance, Axios$1.prototype, context, { allOwnKeys: true }); - utils$1.extend(instance, context, null, { allOwnKeys: true }); + const context = new Axios(defaultConfig); + const instance = bind(Axios.prototype.request, context); + utils$1.extend(instance, Axios.prototype, context, { + allOwnKeys: true + }); + utils$1.extend(instance, context, null, { + allOwnKeys: true + }); instance.create = function create(instanceConfig) { return createInstance(mergeConfig(defaultConfig, instanceConfig)); }; return instance; } - var axios = createInstance(defaults$1); - axios.Axios = Axios$1; - axios.CanceledError = CanceledError$1; - axios.CancelToken = CancelToken$1; + var axios = createInstance(defaults); + axios.Axios = Axios; + axios.CanceledError = CanceledError; + axios.CancelToken = CancelToken; axios.isCancel = isCancel; axios.VERSION = VERSION; axios.toFormData = toFormData; - axios.AxiosError = AxiosError$1; + axios.AxiosError = AxiosError; axios.Cancel = axios.CanceledError; axios.all = function all(promises3) { return Promise.all(promises3); @@ -56160,10 +56229,10 @@ var require_axios = __commonJS({ axios.spread = spread; axios.isAxiosError = isAxiosError; axios.mergeConfig = mergeConfig; - axios.AxiosHeaders = AxiosHeaders$1; + axios.AxiosHeaders = AxiosHeaders; axios.formToJSON = (thing) => formDataToJSON(utils$1.isHTMLForm(thing) ? new FormData(thing) : thing); axios.getAdapter = adapters.getAdapter; - axios.HttpStatusCode = HttpStatusCode$1; + axios.HttpStatusCode = HttpStatusCode; axios.default = axios; module2.exports = axios; } @@ -58181,5 +58250,5 @@ urijs/src/URITemplate.js: *) axios/dist/node/axios.cjs: - (*! Axios v1.13.5 Copyright (c) 2026 Matt Zabriskie and contributors *) + (*! Axios v1.15.0 Copyright (c) 2026 Matt Zabriskie and contributors *) */ diff --git a/package-lock.json b/package-lock.json index fd7ea4d6..4164c2db 100644 --- a/package-lock.json +++ b/package-lock.json @@ -106,6 +106,7 @@ "integrity": "sha512-e7jT4DxYvIDLk1ZHmU/m/mB19rex9sv0c2ftBtjSBv+kVM/902eh0fINUzD7UwLLNR+jU585GxUJ8/EBfAM5fw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/code-frame": "^7.27.1", "@babel/generator": "^7.28.5", @@ -2142,6 +2143,7 @@ "integrity": "sha512-/NbVmcGTP+lj5oa4yiYxxeBjRivKQ5Ns1eSZeB99ExsEQ6rX5XYU1Zy/gGxY/ilqtD4Etx9mKyrPxZRetiahhA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "undici-types": "~7.14.0" } @@ -3014,6 +3016,7 @@ "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", "dev": true, "license": "MIT", + "peer": true, "bin": { "acorn": "bin/acorn" }, @@ -3302,14 +3305,14 @@ } }, "node_modules/axios": { - "version": "1.13.5", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.13.5.tgz", - "integrity": "sha512-cz4ur7Vb0xS4/KUN0tPWe44eqxrIu31me+fbang3ijiNscE129POzipJJA6zniq2C/Z6sJCjMimjS8Lc/GAs8Q==", + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.15.0.tgz", + "integrity": "sha512-wWyJDlAatxk30ZJer+GeCWS209sA42X+N5jU2jy6oHTp7ufw8uzUTVFBX9+wTfAlhiJXGS0Bq7X6efruWjuK9Q==", "license": "MIT", "dependencies": { "follow-redirects": "^1.15.11", "form-data": "^4.0.5", - "proxy-from-env": "^1.1.0" + "proxy-from-env": "^2.1.0" } }, "node_modules/axobject-query": { @@ -3508,6 +3511,7 @@ } ], "license": "MIT", + "peer": true, "dependencies": { "baseline-browser-mapping": "^2.9.0", "caniuse-lite": "^1.0.30001759", @@ -4305,6 +4309,7 @@ "integrity": "sha512-XoMjdBOwe/esVgEvLmNsD3IRHkm7fbKIUGvrleloJXUZgDHig2IPWNniv+GwjyJXzuNqVjlr5+4yVUZjycJwfQ==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@eslint-community/eslint-utils": "^4.8.0", "@eslint-community/regexpp": "^4.12.1", @@ -4365,6 +4370,7 @@ "integrity": "sha512-82GZUjRS0p/jganf6q1rEO25VSoHH0hKPCTrgillPjdI/3bgBhAE1QzHrHTizjpRvy6pGAvKjDJtk2pF9NDq8w==", "dev": true, "license": "MIT", + "peer": true, "bin": { "eslint-config-prettier": "bin/cli.js" }, @@ -4559,6 +4565,7 @@ "integrity": "sha512-v6UNi1+3hSlVvv8fSaoUbggEM5VErKmmpGA7Pl3HF8V6uKY7rvClBOJlH6yNwQtfTueNkGVpOv/mtWL9L4bgRA==", "dev": true, "license": "MIT", + "peer": true, "bin": { "prettier": "bin/prettier.cjs" }, @@ -6089,6 +6096,7 @@ "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/core": "^29.7.0", "@jest/types": "^29.6.3", @@ -7694,10 +7702,13 @@ } }, "node_modules/proxy-from-env": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", - "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", - "license": "MIT" + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-2.1.0.tgz", + "integrity": "sha512-cJ+oHTW1VAEa8cJslgmUZrc+sjRKgAKl3Zyse6+PV38hZe/V6Z14TbCuXcan9F9ghlz4QrFr2c92TNF82UkYHA==", + "license": "MIT", + "engines": { + "node": ">=10" + } }, "node_modules/punycode": { "version": "2.3.1", @@ -8479,6 +8490,7 @@ "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=12" }, @@ -8793,6 +8805,7 @@ "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", "dev": true, "license": "Apache-2.0", + "peer": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -8860,6 +8873,7 @@ "integrity": "sha512-N9lBGA9o9aqb1hVMc9hzySbhKibHmB+N3IpoShyV6HyQYRGIhlrO5rQgttypi+yEeKsKI4idxC8Jw6gXKD4THA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@typescript-eslint/scope-manager": "8.49.0", "@typescript-eslint/types": "8.49.0",