diff --git a/THIRD-PARTY b/THIRD-PARTY
index 144e6e0..02710f0 100644
--- a/THIRD-PARTY
+++ b/THIRD-PARTY
@@ -644,7 +644,7 @@ Apache License
The following npm package may be included in this product:
- - @aws-sdk/client-sts@3.1064.0
+ - @aws-sdk/client-sts@3.1069.0
This package contains the following license:
@@ -854,7 +854,7 @@ Apache License
The following npm packages may be included in this product:
- - @aws-sdk/signature-v4-multi-region@3.996.33
+ - @aws-sdk/signature-v4-multi-region@3.996.35
- @smithy/core@3.25.0
- @smithy/types@4.15.0
@@ -1675,14 +1675,14 @@ Apache License
The following npm packages may be included in this product:
- @aws-sdk/credential-provider-env@3.972.47
- - @aws-sdk/credential-provider-ini@3.972.51
- - @aws-sdk/credential-provider-node@3.972.53
- - @aws-sdk/token-providers@3.1064.0
+ - @aws-sdk/credential-provider-ini@3.972.54
+ - @aws-sdk/credential-provider-node@3.972.56
+ - @aws-sdk/token-providers@3.1069.0
- @aws-sdk/types@3.973.13
- - @aws-sdk/util-locate-window@3.965.7
+ - @aws-sdk/util-locate-window@3.965.8
- @aws-sdk/xml-builder@3.972.30
- - @smithy/credential-provider-imds@4.3.8
- - @smithy/fetch-http-handler@5.4.6
+ - @smithy/credential-provider-imds@4.4.0
+ - @smithy/fetch-http-handler@5.5.0
- @smithy/is-array-buffer@2.2.0
- @smithy/node-http-handler@4.8.0
- @smithy/signature-v4@5.4.6
@@ -1897,9 +1897,9 @@ Apache License
The following npm packages may be included in this product:
- - @aws-sdk/credential-provider-process@3.972.45
- - @aws-sdk/credential-provider-sso@3.972.50
- - @aws-sdk/credential-provider-web-identity@3.972.50
+ - @aws-sdk/credential-provider-process@3.972.47
+ - @aws-sdk/credential-provider-sso@3.972.53
+ - @aws-sdk/credential-provider-web-identity@3.972.53
These packages each contain the following license:
@@ -2109,9 +2109,9 @@ Apache License
The following npm packages may be included in this product:
- - @aws-sdk/credential-provider-http@3.972.47
- - @aws-sdk/credential-provider-login@3.972.50
- - @aws-sdk/nested-clients@3.997.18
+ - @aws-sdk/credential-provider-http@3.972.49
+ - @aws-sdk/credential-provider-login@3.972.53
+ - @aws-sdk/nested-clients@3.997.21
These packages each contain the following license:
diff --git a/dist/index.js b/dist/index.js
index 96de6f1..23c35af 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -1210,19 +1210,19 @@ var require_util = __commonJS({
let key;
let val;
let kLen = 0;
- for (let n3 = 0; n3 < headers.length; n3 += 2) {
- key = headers[n3];
- val = headers[n3 + 1];
+ for (let n4 = 0; n4 < headers.length; n4 += 2) {
+ key = headers[n4];
+ val = headers[n4 + 1];
typeof key !== "string" && (key = key.toString());
typeof val !== "string" && (val = val.toString("utf8"));
kLen = key.length;
if (kLen === 14 && key[7] === "-" && (key === "content-length" || key.toLowerCase() === "content-length")) {
hasContentLength = true;
} else if (kLen === 19 && key[7] === "-" && (key === "content-disposition" || key.toLowerCase() === "content-disposition")) {
- contentDispositionIdx = n3 + 1;
+ contentDispositionIdx = n4 + 1;
}
- ret[n3] = key;
- ret[n3 + 1] = val;
+ ret[n4] = key;
+ ret[n4 + 1] = val;
}
if (hasContentLength && contentDispositionIdx !== -1) {
ret[contentDispositionIdx] = Buffer.from(ret[contentDispositionIdx]).toString("latin1");
@@ -3726,9 +3726,9 @@ var require_webidl = __commonJS({
}
return x;
};
- webidl.util.IntegerPart = function(n3) {
- const r5 = Math.floor(Math.abs(n3));
- if (n3 < 0) {
+ webidl.util.IntegerPart = function(n4) {
+ const r5 = Math.floor(Math.abs(n4));
+ if (n4 < 0) {
return -1 * r5;
}
return r5;
@@ -4900,12 +4900,12 @@ var require_file = __commonJS({
var { webidl } = require_webidl();
var FileLike = class _FileLike {
constructor(blobLike, fileName, options = {}) {
- const n3 = fileName;
+ const n4 = fileName;
const t = options.type;
const d5 = options.lastModified ?? Date.now();
this[kState] = {
blobLike,
- name: n3,
+ name: n4,
type: t,
lastModified: d5
};
@@ -5736,39 +5736,39 @@ var require_client_h1 = __commonJS({
return await WebAssembly.instantiate(mod, {
env: {
/* eslint-disable camelcase */
- wasm_on_url: (p2, at, len) => {
+ wasm_on_url: (p3, at, len) => {
return 0;
},
- wasm_on_status: (p2, at, len) => {
- assert4(currentParser.ptr === p2);
+ wasm_on_status: (p3, at, len) => {
+ assert4(currentParser.ptr === p3);
const start = at - currentBufferPtr + currentBufferRef.byteOffset;
return currentParser.onStatus(new FastBuffer(currentBufferRef.buffer, start, len)) || 0;
},
- wasm_on_message_begin: (p2) => {
- assert4(currentParser.ptr === p2);
+ wasm_on_message_begin: (p3) => {
+ assert4(currentParser.ptr === p3);
return currentParser.onMessageBegin() || 0;
},
- wasm_on_header_field: (p2, at, len) => {
- assert4(currentParser.ptr === p2);
+ wasm_on_header_field: (p3, at, len) => {
+ assert4(currentParser.ptr === p3);
const start = at - currentBufferPtr + currentBufferRef.byteOffset;
return currentParser.onHeaderField(new FastBuffer(currentBufferRef.buffer, start, len)) || 0;
},
- wasm_on_header_value: (p2, at, len) => {
- assert4(currentParser.ptr === p2);
+ wasm_on_header_value: (p3, at, len) => {
+ assert4(currentParser.ptr === p3);
const start = at - currentBufferPtr + currentBufferRef.byteOffset;
return currentParser.onHeaderValue(new FastBuffer(currentBufferRef.buffer, start, len)) || 0;
},
- wasm_on_headers_complete: (p2, statusCode, upgrade, shouldKeepAlive) => {
- assert4(currentParser.ptr === p2);
+ wasm_on_headers_complete: (p3, statusCode, upgrade, shouldKeepAlive) => {
+ assert4(currentParser.ptr === p3);
return currentParser.onHeadersComplete(statusCode, Boolean(upgrade), Boolean(shouldKeepAlive)) || 0;
},
- wasm_on_body: (p2, at, len) => {
- assert4(currentParser.ptr === p2);
+ wasm_on_body: (p3, at, len) => {
+ assert4(currentParser.ptr === p3);
const start = at - currentBufferPtr + currentBufferRef.byteOffset;
return currentParser.onBody(new FastBuffer(currentBufferRef.buffer, start, len)) || 0;
},
- wasm_on_message_complete: (p2) => {
- assert4(currentParser.ptr === p2);
+ wasm_on_message_complete: (p3) => {
+ assert4(currentParser.ptr === p3);
return currentParser.onMessageComplete() || 0;
}
/* eslint-enable camelcase */
@@ -6380,9 +6380,9 @@ upgrade: ${upgrade}\r
header += "connection: close\r\n";
}
if (Array.isArray(headers)) {
- for (let n3 = 0; n3 < headers.length; n3 += 2) {
- const key = headers[n3 + 0];
- const val = headers[n3 + 1];
+ for (let n4 = 0; n4 < headers.length; n4 += 2) {
+ const key = headers[n4 + 0];
+ const val = headers[n4 + 1];
if (Array.isArray(val)) {
for (let i5 = 0; i5 < val.length; i5++) {
header += `${key}: ${val[i5]}\r
@@ -6895,9 +6895,9 @@ var require_client_h2 = __commonJS({
return false;
}
const headers = {};
- for (let n3 = 0; n3 < reqHeaders.length; n3 += 2) {
- const key = reqHeaders[n3 + 0];
- const val = reqHeaders[n3 + 1];
+ for (let n4 = 0; n4 < reqHeaders.length; n4 += 2) {
+ const key = reqHeaders[n4 + 0];
+ const val = reqHeaders[n4 + 1];
if (Array.isArray(val)) {
for (let i5 = 0; i5 < val.length; i5++) {
if (headers[key]) {
@@ -8347,7 +8347,7 @@ var require_balanced_pool = __commonJS({
return this;
}
get upstreams() {
- return this[kClients].filter((dispatcher) => dispatcher.closed !== true && dispatcher.destroyed !== true).map((p2) => p2[kUrl].origin);
+ return this[kClients].filter((dispatcher) => dispatcher.closed !== true && dispatcher.destroyed !== true).map((p3) => p3[kUrl].origin);
}
[kGetDispatcher]() {
if (this[kClients].length === 0) {
@@ -9383,8 +9383,8 @@ var require_readable = __commonJS({
if (state2.bufferIndex) {
const start = state2.bufferIndex;
const end = state2.buffer.length;
- for (let n3 = start; n3 < end; n3++) {
- consumePush(consume2, state2.buffer[n3]);
+ for (let n4 = start; n4 < end; n4++) {
+ consumePush(consume2, state2.buffer[n4]);
}
} else {
for (const chunk of state2.buffer) {
@@ -12038,17 +12038,17 @@ var require_headers = __commonJS({
options.depth ??= depth;
return `Headers ${util.formatWithOptions(options, this.#headersList.entries)}`;
}
- static getHeadersGuard(o2) {
- return o2.#guard;
+ static getHeadersGuard(o3) {
+ return o3.#guard;
}
- static setHeadersGuard(o2, guard) {
- o2.#guard = guard;
+ static setHeadersGuard(o3, guard) {
+ o3.#guard = guard;
}
- static getHeadersList(o2) {
- return o2.#headersList;
+ static getHeadersList(o3) {
+ return o3.#headersList;
}
- static setHeadersList(o2, list2) {
- o2.#headersList = list2;
+ static setHeadersList(o3, list2) {
+ o3.#headersList = list2;
}
};
var { getHeadersGuard, setHeadersGuard, getHeadersList, setHeadersList } = Headers2;
@@ -12353,12 +12353,12 @@ var require_response = __commonJS({
...state2
};
return new Proxy(response, {
- get(target, p2) {
- return p2 in state2 ? state2[p2] : target[p2];
+ get(target, p3) {
+ return p3 in state2 ? state2[p3] : target[p3];
},
- set(target, p2, value) {
- assert4(!(p2 in state2));
- target[p2] = value;
+ set(target, p3, value) {
+ assert4(!(p3 in state2));
+ target[p3] = value;
return true;
}
});
@@ -13346,18 +13346,18 @@ var require_fetch = __commonJS({
}
function fetch(input, init = void 0) {
webidl.argumentLengthCheck(arguments, 1, "globalThis.fetch");
- let p2 = createDeferredPromise();
+ let p3 = createDeferredPromise();
let requestObject;
try {
requestObject = new Request(input, init);
} catch (e5) {
- p2.reject(e5);
- return p2.promise;
+ p3.reject(e5);
+ return p3.promise;
}
const request = requestObject[kState];
if (requestObject.signal.aborted) {
- abortFetch(p2, request, null, requestObject.signal.reason);
- return p2.promise;
+ abortFetch(p3, request, null, requestObject.signal.reason);
+ return p3.promise;
}
const globalObject = request.client.globalObject;
if (globalObject?.constructor?.name === "ServiceWorkerGlobalScope") {
@@ -13373,7 +13373,7 @@ var require_fetch = __commonJS({
assert4(controller != null);
controller.abort(requestObject.signal.reason);
const realResponse = responseObject?.deref();
- abortFetch(p2, request, realResponse, requestObject.signal.reason);
+ abortFetch(p3, request, realResponse, requestObject.signal.reason);
}
);
const processResponse = (response) => {
@@ -13381,16 +13381,16 @@ var require_fetch = __commonJS({
return;
}
if (response.aborted) {
- abortFetch(p2, request, responseObject, controller.serializedAbortReason);
+ abortFetch(p3, request, responseObject, controller.serializedAbortReason);
return;
}
if (response.type === "error") {
- p2.reject(new TypeError("fetch failed", { cause: response.error }));
+ p3.reject(new TypeError("fetch failed", { cause: response.error }));
return;
}
responseObject = new WeakRef(fromInnerResponse(response, "immutable"));
- p2.resolve(responseObject.deref());
- p2 = null;
+ p3.resolve(responseObject.deref());
+ p3 = null;
};
controller = fetching({
request,
@@ -13399,7 +13399,7 @@ var require_fetch = __commonJS({
dispatcher: requestObject[kDispatcher]
// undici
});
- return p2.promise;
+ return p3.promise;
}
function finalizeAndReportTiming(response, initiatorType = "other") {
if (response.type === "error" && response.aborted) {
@@ -13434,9 +13434,9 @@ var require_fetch = __commonJS({
);
}
var markResourceTiming = performance.markResourceTiming;
- function abortFetch(p2, request, responseObject, error3) {
- if (p2) {
- p2.reject(error3);
+ function abortFetch(p3, request, responseObject, error3) {
+ if (p3) {
+ p3.reject(error3);
}
if (request.body != null && isReadable(request.body?.stream)) {
request.body.stream.cancel(error3).catch((err) => {
@@ -15195,11 +15195,11 @@ var require_cache = __commonJS({
webidl.argumentLengthCheck(arguments, 1, prefix);
request = webidl.converters.RequestInfo(request, prefix, "request");
options = webidl.converters.CacheQueryOptions(options, prefix, "options");
- const p2 = this.#internalMatchAll(request, options, 1);
- if (p2.length === 0) {
+ const p3 = this.#internalMatchAll(request, options, 1);
+ if (p3.length === 0) {
return;
}
- return p2[0];
+ return p3[0];
}
async matchAll(request = void 0, options = {}) {
webidl.brandCheck(this, _Cache);
@@ -15290,8 +15290,8 @@ var require_cache = __commonJS({
}));
responsePromises.push(responsePromise.promise);
}
- const p2 = Promise.all(responsePromises);
- const responses = await p2;
+ const p3 = Promise.all(responsePromises);
+ const responses = await p3;
const operations = [];
let index = 0;
for (const response of responses) {
@@ -17349,34 +17349,34 @@ var require_receiver = __commonJS({
* @param {number} n
* @returns {Buffer}
*/
- consume(n3) {
- if (n3 > this.#byteOffset) {
+ consume(n4) {
+ if (n4 > this.#byteOffset) {
throw new Error("Called consume() before buffers satiated.");
- } else if (n3 === 0) {
+ } else if (n4 === 0) {
return emptyBuffer;
}
- if (this.#buffers[0].length === n3) {
+ if (this.#buffers[0].length === n4) {
this.#byteOffset -= this.#buffers[0].length;
return this.#buffers.shift();
}
- const buffer = Buffer.allocUnsafe(n3);
+ const buffer = Buffer.allocUnsafe(n4);
let offset = 0;
- while (offset !== n3) {
+ while (offset !== n4) {
const next = this.#buffers[0];
const { length } = next;
- if (length + offset === n3) {
+ if (length + offset === n4) {
buffer.set(this.#buffers.shift(), offset);
break;
- } else if (length + offset > n3) {
- buffer.set(next.subarray(0, n3 - offset), offset);
- this.#buffers[0] = next.subarray(n3 - offset);
+ } else if (length + offset > n4) {
+ buffer.set(next.subarray(0, n4 - offset), offset);
+ this.#buffers[0] = next.subarray(n4 - offset);
break;
} else {
buffer.set(this.#buffers.shift(), offset);
offset += next.length;
}
}
- this.#byteOffset -= n3;
+ this.#byteOffset -= n4;
return buffer;
}
writeFragments(fragment) {
@@ -17641,10 +17641,10 @@ var require_websocket = __commonJS({
if (typeof protocols2 === "string") {
protocols2 = [protocols2];
}
- if (protocols2.length !== new Set(protocols2.map((p2) => p2.toLowerCase())).size) {
+ if (protocols2.length !== new Set(protocols2.map((p3) => p3.toLowerCase())).size) {
throw new DOMException("Invalid Sec-WebSocket-Protocol value", "SyntaxError");
}
- if (protocols2.length > 0 && !protocols2.every((p2) => isValidSubprotocol(p2))) {
+ if (protocols2.length > 0 && !protocols2.every((p3) => isValidSubprotocol(p3))) {
throw new DOMException("Invalid Sec-WebSocket-Protocol value", "SyntaxError");
}
this[kWebSocketURL] = new URL(urlRecord.href);
@@ -19448,10 +19448,10 @@ var init_poller = __esm({
let maxCount = 0;
let count403 = 0;
for (const response of orderedErrors) {
- const n3 = observedResponses[response] | 0;
- maxCount = Math.max(n3, maxCount);
+ const n4 = observedResponses[response] | 0;
+ maxCount = Math.max(n4, maxCount);
if (response.startsWith("403:")) {
- count403 += n3;
+ count403 += n4;
}
}
const clientLogger = client?.config?.logger;
@@ -19655,9 +19655,9 @@ var init_schemaDeserializationMiddleware = __esm({
schemaDeserializationMiddleware = (config) => (next, context) => async (args) => {
const { response } = await next(args);
const { operationSchema } = getSmithyContext(context);
- const [, ns, n3, t, i5, o2] = operationSchema ?? [];
+ const [, ns, n4, t, i5, o3] = operationSchema ?? [];
try {
- const parsed = await config.protocol.deserializeResponse(operation(ns, n3, t, i5, o2), {
+ const parsed = await config.protocol.deserializeResponse(operation(ns, n4, t, i5, o3), {
...config,
...context
}, response);
@@ -19721,9 +19721,9 @@ var init_schemaSerializationMiddleware = __esm({
init_operation();
schemaSerializationMiddleware = (config) => (next, context) => async (args) => {
const { operationSchema } = getSmithyContext(context);
- const [, ns, n3, t, i5, o2] = operationSchema ?? [];
+ const [, ns, n4, t, i5, o3] = operationSchema ?? [];
const endpoint = context.endpointV2 ? async () => toEndpointV1(context.endpointV2) : config.endpoint;
- const request = await config.protocol.serializeRequest(operation(ns, n3, t, i5, o2), args.input, {
+ const request = await config.protocol.serializeRequest(operation(ns, n4, t, i5, o3), args.input, {
...config,
...context,
endpoint
@@ -25673,12 +25673,12 @@ function __extends(d5, b6) {
}
function __rest(s, e5) {
var t = {};
- for (var p2 in s) if (Object.prototype.hasOwnProperty.call(s, p2) && e5.indexOf(p2) < 0)
- t[p2] = s[p2];
+ for (var p3 in s) if (Object.prototype.hasOwnProperty.call(s, p3) && e5.indexOf(p3) < 0)
+ t[p3] = s[p3];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
- for (var i5 = 0, p2 = Object.getOwnPropertySymbols(s); i5 < p2.length; i5++) {
- if (e5.indexOf(p2[i5]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p2[i5]))
- t[p2[i5]] = s[p2[i5]];
+ for (var i5 = 0, p3 = Object.getOwnPropertySymbols(s); i5 < p3.length; i5++) {
+ if (e5.indexOf(p3[i5]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p3[i5]))
+ t[p3[i5]] = s[p3[i5]];
}
return t;
}
@@ -25704,8 +25704,8 @@ function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, e
var _, done = false;
for (var i5 = decorators.length - 1; i5 >= 0; i5--) {
var context = {};
- for (var p2 in contextIn) context[p2] = p2 === "access" ? {} : contextIn[p2];
- for (var p2 in contextIn.access) context.access[p2] = contextIn.access[p2];
+ for (var p3 in contextIn) context[p3] = p3 === "access" ? {} : contextIn[p3];
+ for (var p3 in contextIn.access) context.access[p3] = contextIn.access[p3];
context.addInitializer = function(f5) {
if (done) throw new TypeError("Cannot add initializers after decoration has completed");
extraInitializers.push(accept(f5 || null));
@@ -25777,9 +25777,9 @@ function __generator(thisArg, body) {
return g5.next = verb(0), g5["throw"] = verb(1), g5["return"] = verb(2), typeof Symbol === "function" && (g5[Symbol.iterator] = function() {
return this;
}), g5;
- function verb(n3) {
+ function verb(n4) {
return function(v) {
- return step([n3, v]);
+ return step([n4, v]);
};
}
function step(op2) {
@@ -25838,26 +25838,26 @@ function __generator(thisArg, body) {
return { value: op2[0] ? op2[1] : void 0, done: true };
}
}
-function __exportStar(m3, o2) {
- for (var p2 in m3) if (p2 !== "default" && !Object.prototype.hasOwnProperty.call(o2, p2)) __createBinding(o2, m3, p2);
+function __exportStar(m3, o3) {
+ for (var p3 in m3) if (p3 !== "default" && !Object.prototype.hasOwnProperty.call(o3, p3)) __createBinding(o3, m3, p3);
}
-function __values(o2) {
- var s = typeof Symbol === "function" && Symbol.iterator, m3 = s && o2[s], i5 = 0;
- if (m3) return m3.call(o2);
- if (o2 && typeof o2.length === "number") return {
+function __values(o3) {
+ var s = typeof Symbol === "function" && Symbol.iterator, m3 = s && o3[s], i5 = 0;
+ if (m3) return m3.call(o3);
+ if (o3 && typeof o3.length === "number") return {
next: function() {
- if (o2 && i5 >= o2.length) o2 = void 0;
- return { value: o2 && o2[i5++], done: !o2 };
+ if (o3 && i5 >= o3.length) o3 = void 0;
+ return { value: o3 && o3[i5++], done: !o3 };
}
};
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
}
-function __read(o2, n3) {
- var m3 = typeof Symbol === "function" && o2[Symbol.iterator];
- if (!m3) return o2;
- var i5 = m3.call(o2), r5, ar = [], e5;
+function __read(o3, n4) {
+ var m3 = typeof Symbol === "function" && o3[Symbol.iterator];
+ if (!m3) return o3;
+ var i5 = m3.call(o3), r5, ar = [], e5;
try {
- while ((n3 === void 0 || n3-- > 0) && !(r5 = i5.next()).done) ar.push(r5.value);
+ while ((n4 === void 0 || n4-- > 0) && !(r5 = i5.next()).done) ar.push(r5.value);
} catch (error3) {
e5 = { error: error3 };
} finally {
@@ -25904,19 +25904,19 @@ function __asyncGenerator(thisArg, _arguments, generator) {
return Promise.resolve(v).then(f5, reject);
};
}
- function verb(n3, f5) {
- if (g5[n3]) {
- i5[n3] = function(v) {
+ function verb(n4, f5) {
+ if (g5[n4]) {
+ i5[n4] = function(v) {
return new Promise(function(a5, b6) {
- q2.push([n3, v, a5, b6]) > 1 || resume3(n3, v);
+ q2.push([n4, v, a5, b6]) > 1 || resume3(n4, v);
});
};
- if (f5) i5[n3] = f5(i5[n3]);
+ if (f5) i5[n4] = f5(i5[n4]);
}
}
- function resume3(n3, v) {
+ function resume3(n4, v) {
try {
- step(g5[n3](v));
+ step(g5[n4](v));
} catch (e5) {
settle(q2[0][3], e5);
}
@@ -25934,29 +25934,29 @@ function __asyncGenerator(thisArg, _arguments, generator) {
if (f5(v), q2.shift(), q2.length) resume3(q2[0][0], q2[0][1]);
}
}
-function __asyncDelegator(o2) {
- var i5, p2;
+function __asyncDelegator(o3) {
+ var i5, p3;
return i5 = {}, verb("next"), verb("throw", function(e5) {
throw e5;
}), verb("return"), i5[Symbol.iterator] = function() {
return this;
}, i5;
- function verb(n3, f5) {
- i5[n3] = o2[n3] ? function(v) {
- return (p2 = !p2) ? { value: __await(o2[n3](v)), done: false } : f5 ? f5(v) : v;
+ function verb(n4, f5) {
+ i5[n4] = o3[n4] ? function(v) {
+ return (p3 = !p3) ? { value: __await(o3[n4](v)), done: false } : f5 ? f5(v) : v;
} : f5;
}
}
-function __asyncValues(o2) {
+function __asyncValues(o3) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
- var m3 = o2[Symbol.asyncIterator], i5;
- return m3 ? m3.call(o2) : (o2 = typeof __values === "function" ? __values(o2) : o2[Symbol.iterator](), i5 = {}, verb("next"), verb("throw"), verb("return"), i5[Symbol.asyncIterator] = function() {
+ var m3 = o3[Symbol.asyncIterator], i5;
+ return m3 ? m3.call(o3) : (o3 = typeof __values === "function" ? __values(o3) : o3[Symbol.iterator](), i5 = {}, verb("next"), verb("throw"), verb("return"), i5[Symbol.asyncIterator] = function() {
return this;
}, i5);
- function verb(n3) {
- i5[n3] = o2[n3] && function(v) {
+ function verb(n4) {
+ i5[n4] = o3[n4] && function(v) {
return new Promise(function(resolve, reject) {
- v = o2[n3](v), settle(resolve, reject, v.done, v.value);
+ v = o3[n4](v), settle(resolve, reject, v.done, v.value);
});
};
}
@@ -26069,21 +26069,21 @@ var init_tslib_es6 = __esm({
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d6, b7) {
d6.__proto__ = b7;
} || function(d6, b7) {
- for (var p2 in b7) if (Object.prototype.hasOwnProperty.call(b7, p2)) d6[p2] = b7[p2];
+ for (var p3 in b7) if (Object.prototype.hasOwnProperty.call(b7, p3)) d6[p3] = b7[p3];
};
return extendStatics(d5, b6);
};
__assign = function() {
__assign = Object.assign || function __assign2(t) {
- for (var s, i5 = 1, n3 = arguments.length; i5 < n3; i5++) {
+ for (var s, i5 = 1, n4 = arguments.length; i5 < n4; i5++) {
s = arguments[i5];
- for (var p2 in s) if (Object.prototype.hasOwnProperty.call(s, p2)) t[p2] = s[p2];
+ for (var p3 in s) if (Object.prototype.hasOwnProperty.call(s, p3)) t[p3] = s[p3];
}
return t;
};
return __assign.apply(this, arguments);
};
- __createBinding = Object.create ? (function(o2, m3, k5, k22) {
+ __createBinding = Object.create ? (function(o3, m3, k5, k22) {
if (k22 === void 0) k22 = k5;
var desc = Object.getOwnPropertyDescriptor(m3, k5);
if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) {
@@ -26091,23 +26091,23 @@ var init_tslib_es6 = __esm({
return m3[k5];
} };
}
- Object.defineProperty(o2, k22, desc);
- }) : (function(o2, m3, k5, k22) {
+ Object.defineProperty(o3, k22, desc);
+ }) : (function(o3, m3, k5, k22) {
if (k22 === void 0) k22 = k5;
- o2[k22] = m3[k5];
+ o3[k22] = m3[k5];
});
- __setModuleDefault = Object.create ? (function(o2, v) {
- Object.defineProperty(o2, "default", { enumerable: true, value: v });
- }) : function(o2, v) {
- o2["default"] = v;
+ __setModuleDefault = Object.create ? (function(o3, v) {
+ Object.defineProperty(o3, "default", { enumerable: true, value: v });
+ }) : function(o3, v) {
+ o3["default"] = v;
};
- ownKeys = function(o2) {
- ownKeys = Object.getOwnPropertyNames || function(o3) {
+ ownKeys = function(o3) {
+ ownKeys = Object.getOwnPropertyNames || function(o4) {
var ar = [];
- for (var k5 in o3) if (Object.prototype.hasOwnProperty.call(o3, k5)) ar[ar.length] = k5;
+ for (var k5 in o4) if (Object.prototype.hasOwnProperty.call(o4, k5)) ar[ar.length] = k5;
return ar;
};
- return ownKeys(o2);
+ return ownKeys(o3);
};
_SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function(error3, suppressed, message) {
var e5 = new Error(message);
@@ -30937,7 +30937,7 @@ var init_getSanitizedDevTypeScriptVersion = __esm({
if (ALLOWED_DIST_TAGS.includes(version)) {
return version;
}
- const prefix = ALLOWED_PREFIXES.find((p2) => version.startsWith(p2)) ?? "";
+ const prefix = ALLOWED_PREFIXES.find((p3) => version.startsWith(p3)) ?? "";
const sanitizedTypeScriptVersion = getSanitizedTypeScriptVersion(version.slice(prefix.length));
if (!sanitizedTypeScriptVersion) {
return void 0;
@@ -31117,8 +31117,8 @@ var require_es5 = __commonJS({
var t = {};
function r5(i5) {
if (t[i5]) return t[i5].exports;
- var n3 = t[i5] = { i: i5, l: false, exports: {} };
- return e5[i5].call(n3.exports, n3, n3.exports, r5), n3.l = true, n3.exports;
+ var n4 = t[i5] = { i: i5, l: false, exports: {} };
+ return e5[i5].call(n4.exports, n4, n4.exports, r5), n4.l = true, n4.exports;
}
return r5.m = e5, r5.c = t, r5.d = function(e6, t2, i5) {
r5.o(e6, t2) || Object.defineProperty(e6, t2, { enumerable: true, get: i5 });
@@ -31128,9 +31128,9 @@ var require_es5 = __commonJS({
if (1 & t2 && (e6 = r5(e6)), 8 & t2) return e6;
if (4 & t2 && "object" == typeof e6 && e6 && e6.__esModule) return e6;
var i5 = /* @__PURE__ */ Object.create(null);
- if (r5.r(i5), Object.defineProperty(i5, "default", { enumerable: true, value: e6 }), 2 & t2 && "string" != typeof e6) for (var n3 in e6) r5.d(i5, n3, function(t3) {
+ if (r5.r(i5), Object.defineProperty(i5, "default", { enumerable: true, value: e6 }), 2 & t2 && "string" != typeof e6) for (var n4 in e6) r5.d(i5, n4, function(t3) {
return e6[t3];
- }.bind(null, n3));
+ }.bind(null, n4));
return i5;
}, r5.n = function(e6) {
var t2 = e6 && e6.__esModule ? function() {
@@ -31145,7 +31145,7 @@ var require_es5 = __commonJS({
})({ 17: function(e5, t, r5) {
"use strict";
t.__esModule = true, t.default = void 0;
- var i5 = r5(18), n3 = (function() {
+ var i5 = r5(18), n4 = (function() {
function e6() {
}
return e6.getFirstMatch = function(e7, t2) {
@@ -31236,18 +31236,18 @@ var require_es5 = __commonJS({
return e7.split(".").length;
}, e6.compareVersions = function(t2, r6, i6) {
void 0 === i6 && (i6 = false);
- var n4 = e6.getVersionPrecision(t2), a5 = e6.getVersionPrecision(r6), o2 = Math.max(n4, a5), s = 0, u = e6.map([t2, r6], (function(t3) {
- var r7 = o2 - e6.getVersionPrecision(t3), i7 = t3 + new Array(r7 + 1).join(".0");
+ var n5 = e6.getVersionPrecision(t2), a5 = e6.getVersionPrecision(r6), o3 = Math.max(n5, a5), s = 0, u = e6.map([t2, r6], (function(t3) {
+ var r7 = o3 - e6.getVersionPrecision(t3), i7 = t3 + new Array(r7 + 1).join(".0");
return e6.map(i7.split("."), (function(e7) {
return new Array(20 - e7.length).join("0") + e7;
})).reverse();
}));
- for (i6 && (s = o2 - Math.min(n4, a5)), o2 -= 1; o2 >= s; ) {
- if (u[0][o2] > u[1][o2]) return 1;
- if (u[0][o2] === u[1][o2]) {
- if (o2 === s) return 0;
- o2 -= 1;
- } else if (u[0][o2] < u[1][o2]) return -1;
+ for (i6 && (s = o3 - Math.min(n5, a5)), o3 -= 1; o3 >= s; ) {
+ if (u[0][o3] > u[1][o3]) return 1;
+ if (u[0][o3] === u[1][o3]) {
+ if (o3 === s) return 0;
+ o3 -= 1;
+ } else if (u[0][o3] < u[1][o3]) return -1;
}
}, e6.map = function(e7, t2) {
var r6, i6 = [];
@@ -31258,11 +31258,11 @@ var require_es5 = __commonJS({
var r6, i6;
if (Array.prototype.find) return Array.prototype.find.call(e7, t2);
for (r6 = 0, i6 = e7.length; r6 < i6; r6 += 1) {
- var n4 = e7[r6];
- if (t2(n4, r6)) return n4;
+ var n5 = e7[r6];
+ if (t2(n5, r6)) return n5;
}
}, e6.assign = function(e7) {
- for (var t2, r6, i6 = e7, n4 = arguments.length, a5 = new Array(n4 > 1 ? n4 - 1 : 0), o2 = 1; o2 < n4; o2++) a5[o2 - 1] = arguments[o2];
+ for (var t2, r6, i6 = e7, n5 = arguments.length, a5 = new Array(n5 > 1 ? n5 - 1 : 0), o3 = 1; o3 < n5; o3++) a5[o3 - 1] = arguments[o3];
if (Object.assign) return Object.assign.apply(Object, [e7].concat(a5));
var s = function() {
var e8 = a5[t2];
@@ -31278,7 +31278,7 @@ var require_es5 = __commonJS({
return i5.BROWSER_MAP[e7] || "";
}, e6;
})();
- t.default = n3, e5.exports = t.default;
+ t.default = n4, e5.exports = t.default;
}, 18: function(e5, t, r5) {
"use strict";
t.__esModule = true, t.ENGINE_MAP = t.OS_MAP = t.PLATFORMS_MAP = t.BROWSER_MAP = t.BROWSER_ALIASES_MAP = void 0;
@@ -31290,8 +31290,8 @@ var require_es5 = __commonJS({
}, 90: function(e5, t, r5) {
"use strict";
t.__esModule = true, t.default = void 0;
- var i5, n3 = (i5 = r5(91)) && i5.__esModule ? i5 : { default: i5 }, a5 = r5(18);
- function o2(e6, t2) {
+ var i5, n4 = (i5 = r5(91)) && i5.__esModule ? i5 : { default: i5 }, a5 = r5(18);
+ function o3(e6, t2) {
for (var r6 = 0; r6 < t2.length; r6++) {
var i6 = t2[r6];
i6.enumerable = i6.enumerable || false, i6.configurable = true, "value" in i6 && (i6.writable = true), Object.defineProperty(e6, i6.key, i6);
@@ -31303,9 +31303,9 @@ var require_es5 = __commonJS({
var t2, r6, i6;
return e6.getParser = function(e7, t3, r7) {
if (void 0 === t3 && (t3 = false), void 0 === r7 && (r7 = null), "string" != typeof e7) throw new Error("UserAgent should be a string");
- return new n3.default(e7, t3, r7);
+ return new n4.default(e7, t3, r7);
}, e6.parse = function(e7, t3) {
- return void 0 === t3 && (t3 = null), new n3.default(e7, t3).getResult();
+ return void 0 === t3 && (t3 = null), new n4.default(e7, t3).getResult();
}, t2 = e6, i6 = [{ key: "BROWSER_MAP", get: function() {
return a5.BROWSER_MAP;
} }, { key: "ENGINE_MAP", get: function() {
@@ -31314,13 +31314,13 @@ var require_es5 = __commonJS({
return a5.OS_MAP;
} }, { key: "PLATFORMS_MAP", get: function() {
return a5.PLATFORMS_MAP;
- } }], (r6 = null) && o2(t2.prototype, r6), i6 && o2(t2, i6), e6;
+ } }], (r6 = null) && o3(t2.prototype, r6), i6 && o3(t2, i6), e6;
})();
t.default = s, e5.exports = t.default;
}, 91: function(e5, t, r5) {
"use strict";
t.__esModule = true, t.default = void 0;
- var i5 = u(r5(92)), n3 = u(r5(93)), a5 = u(r5(94)), o2 = u(r5(95)), s = u(r5(17));
+ var i5 = u(r5(92)), n4 = u(r5(93)), a5 = u(r5(94)), o3 = u(r5(95)), s = u(r5(17));
function u(e6) {
return e6 && e6.__esModule ? e6 : { default: e6 };
}
@@ -31373,7 +31373,7 @@ var require_es5 = __commonJS({
}, t2.parseOS = function() {
var e7 = this;
this.parsedResult.os = {};
- var t3 = s.default.find(n3.default, (function(t4) {
+ var t3 = s.default.find(n4.default, (function(t4) {
if ("function" == typeof t4.test) return t4.test(e7);
if (Array.isArray(t4.test)) return t4.test.some((function(t5) {
return e7.test(t5);
@@ -31410,7 +31410,7 @@ var require_es5 = __commonJS({
}, t2.parseEngine = function() {
var e7 = this;
this.parsedResult.engine = {};
- var t3 = s.default.find(o2.default, (function(t4) {
+ var t3 = s.default.find(o3.default, (function(t4) {
if ("function" == typeof t4.test) return t4.test(e7);
if (Array.isArray(t4.test)) return t4.test.some((function(t5) {
return e7.test(t5);
@@ -31423,19 +31423,19 @@ var require_es5 = __commonJS({
}, t2.getResult = function() {
return s.default.assign({}, this.parsedResult);
}, t2.satisfies = function(e7) {
- var t3 = this, r6 = {}, i6 = 0, n4 = {}, a6 = 0;
+ var t3 = this, r6 = {}, i6 = 0, n5 = {}, a6 = 0;
if (Object.keys(e7).forEach((function(t4) {
- var o4 = e7[t4];
- "string" == typeof o4 ? (n4[t4] = o4, a6 += 1) : "object" == typeof o4 && (r6[t4] = o4, i6 += 1);
+ var o5 = e7[t4];
+ "string" == typeof o5 ? (n5[t4] = o5, a6 += 1) : "object" == typeof o5 && (r6[t4] = o5, i6 += 1);
})), i6 > 0) {
- var o3 = Object.keys(r6), u2 = s.default.find(o3, (function(e8) {
+ var o4 = Object.keys(r6), u2 = s.default.find(o4, (function(e8) {
return t3.isOS(e8);
}));
if (u2) {
var d6 = this.satisfies(r6[u2]);
if (void 0 !== d6) return d6;
}
- var c5 = s.default.find(o3, (function(e8) {
+ var c5 = s.default.find(o4, (function(e8) {
return t3.isPlatform(e8);
}));
if (c5) {
@@ -31444,18 +31444,18 @@ var require_es5 = __commonJS({
}
}
if (a6 > 0) {
- var l3 = Object.keys(n4), b6 = s.default.find(l3, (function(e8) {
+ var l3 = Object.keys(n5), b6 = s.default.find(l3, (function(e8) {
return t3.isBrowser(e8, true);
}));
- if (void 0 !== b6) return this.compareVersion(n4[b6]);
+ if (void 0 !== b6) return this.compareVersion(n5[b6]);
}
}, t2.isBrowser = function(e7, t3) {
void 0 === t3 && (t3 = false);
- var r6 = this.getBrowserName().toLowerCase(), i6 = e7.toLowerCase(), n4 = s.default.getBrowserTypeByAlias(i6);
- return t3 && n4 && (i6 = n4.toLowerCase()), i6 === r6;
+ var r6 = this.getBrowserName().toLowerCase(), i6 = e7.toLowerCase(), n5 = s.default.getBrowserTypeByAlias(i6);
+ return t3 && n5 && (i6 = n5.toLowerCase()), i6 === r6;
}, t2.compareVersion = function(e7) {
- var t3 = [0], r6 = e7, i6 = false, n4 = this.getBrowserVersion();
- if ("string" == typeof n4) return ">" === e7[0] || "<" === e7[0] ? (r6 = e7.substr(1), "=" === e7[1] ? (i6 = true, r6 = e7.substr(2)) : t3 = [], ">" === e7[0] ? t3.push(1) : t3.push(-1)) : "=" === e7[0] ? r6 = e7.substr(1) : "~" === e7[0] && (i6 = true, r6 = e7.substr(1)), t3.indexOf(s.default.compareVersions(n4, r6, i6)) > -1;
+ var t3 = [0], r6 = e7, i6 = false, n5 = this.getBrowserVersion();
+ if ("string" == typeof n5) return ">" === e7[0] || "<" === e7[0] ? (r6 = e7.substr(1), "=" === e7[1] ? (i6 = true, r6 = e7.substr(2)) : t3 = [], ">" === e7[0] ? t3.push(1) : t3.push(-1)) : "=" === e7[0] ? r6 = e7.substr(1) : "~" === e7[0] && (i6 = true, r6 = e7.substr(1)), t3.indexOf(s.default.compareVersions(n5, r6, i6)) > -1;
}, t2.isOS = function(e7) {
return this.getOSName(true) === String(e7).toLowerCase();
}, t2.isPlatform = function(e7) {
@@ -31475,71 +31475,71 @@ var require_es5 = __commonJS({
}, 92: function(e5, t, r5) {
"use strict";
t.__esModule = true, t.default = void 0;
- var i5, n3 = (i5 = r5(17)) && i5.__esModule ? i5 : { default: i5 };
- var a5 = /version\/(\d+(\.?_?\d+)+)/i, o2 = [{ test: [/gptbot/i], describe: function(e6) {
- var t2 = { name: "GPTBot" }, r6 = n3.default.getFirstMatch(/gptbot\/(\d+(\.\d+)+)/i, e6) || n3.default.getFirstMatch(a5, e6);
+ var i5, n4 = (i5 = r5(17)) && i5.__esModule ? i5 : { default: i5 };
+ var a5 = /version\/(\d+(\.?_?\d+)+)/i, o3 = [{ test: [/gptbot/i], describe: function(e6) {
+ var t2 = { name: "GPTBot" }, r6 = n4.default.getFirstMatch(/gptbot\/(\d+(\.\d+)+)/i, e6) || n4.default.getFirstMatch(a5, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/chatgpt-user/i], describe: function(e6) {
- var t2 = { name: "ChatGPT-User" }, r6 = n3.default.getFirstMatch(/chatgpt-user\/(\d+(\.\d+)+)/i, e6) || n3.default.getFirstMatch(a5, e6);
+ var t2 = { name: "ChatGPT-User" }, r6 = n4.default.getFirstMatch(/chatgpt-user\/(\d+(\.\d+)+)/i, e6) || n4.default.getFirstMatch(a5, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/oai-searchbot/i], describe: function(e6) {
- var t2 = { name: "OAI-SearchBot" }, r6 = n3.default.getFirstMatch(/oai-searchbot\/(\d+(\.\d+)+)/i, e6) || n3.default.getFirstMatch(a5, e6);
+ var t2 = { name: "OAI-SearchBot" }, r6 = n4.default.getFirstMatch(/oai-searchbot\/(\d+(\.\d+)+)/i, e6) || n4.default.getFirstMatch(a5, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/claudebot/i, /claude-web/i, /claude-user/i, /claude-searchbot/i], describe: function(e6) {
- var t2 = { name: "ClaudeBot" }, r6 = n3.default.getFirstMatch(/(?:claudebot|claude-web|claude-user|claude-searchbot)\/(\d+(\.\d+)+)/i, e6) || n3.default.getFirstMatch(a5, e6);
+ var t2 = { name: "ClaudeBot" }, r6 = n4.default.getFirstMatch(/(?:claudebot|claude-web|claude-user|claude-searchbot)\/(\d+(\.\d+)+)/i, e6) || n4.default.getFirstMatch(a5, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/omgilibot/i, /webzio-extended/i], describe: function(e6) {
- var t2 = { name: "Omgilibot" }, r6 = n3.default.getFirstMatch(/(?:omgilibot|webzio-extended)\/(\d+(\.\d+)+)/i, e6) || n3.default.getFirstMatch(a5, e6);
+ var t2 = { name: "Omgilibot" }, r6 = n4.default.getFirstMatch(/(?:omgilibot|webzio-extended)\/(\d+(\.\d+)+)/i, e6) || n4.default.getFirstMatch(a5, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/diffbot/i], describe: function(e6) {
- var t2 = { name: "Diffbot" }, r6 = n3.default.getFirstMatch(/diffbot\/(\d+(\.\d+)+)/i, e6) || n3.default.getFirstMatch(a5, e6);
+ var t2 = { name: "Diffbot" }, r6 = n4.default.getFirstMatch(/diffbot\/(\d+(\.\d+)+)/i, e6) || n4.default.getFirstMatch(a5, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/perplexitybot/i], describe: function(e6) {
- var t2 = { name: "PerplexityBot" }, r6 = n3.default.getFirstMatch(/perplexitybot\/(\d+(\.\d+)+)/i, e6) || n3.default.getFirstMatch(a5, e6);
+ var t2 = { name: "PerplexityBot" }, r6 = n4.default.getFirstMatch(/perplexitybot\/(\d+(\.\d+)+)/i, e6) || n4.default.getFirstMatch(a5, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/perplexity-user/i], describe: function(e6) {
- var t2 = { name: "Perplexity-User" }, r6 = n3.default.getFirstMatch(/perplexity-user\/(\d+(\.\d+)+)/i, e6) || n3.default.getFirstMatch(a5, e6);
+ var t2 = { name: "Perplexity-User" }, r6 = n4.default.getFirstMatch(/perplexity-user\/(\d+(\.\d+)+)/i, e6) || n4.default.getFirstMatch(a5, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/youbot/i], describe: function(e6) {
- var t2 = { name: "YouBot" }, r6 = n3.default.getFirstMatch(/youbot\/(\d+(\.\d+)+)/i, e6) || n3.default.getFirstMatch(a5, e6);
+ var t2 = { name: "YouBot" }, r6 = n4.default.getFirstMatch(/youbot\/(\d+(\.\d+)+)/i, e6) || n4.default.getFirstMatch(a5, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/meta-webindexer/i], describe: function(e6) {
- var t2 = { name: "Meta-WebIndexer" }, r6 = n3.default.getFirstMatch(/meta-webindexer\/(\d+(\.\d+)+)/i, e6) || n3.default.getFirstMatch(a5, e6);
+ var t2 = { name: "Meta-WebIndexer" }, r6 = n4.default.getFirstMatch(/meta-webindexer\/(\d+(\.\d+)+)/i, e6) || n4.default.getFirstMatch(a5, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/meta-externalads/i], describe: function(e6) {
- var t2 = { name: "Meta-ExternalAds" }, r6 = n3.default.getFirstMatch(/meta-externalads\/(\d+(\.\d+)+)/i, e6) || n3.default.getFirstMatch(a5, e6);
+ var t2 = { name: "Meta-ExternalAds" }, r6 = n4.default.getFirstMatch(/meta-externalads\/(\d+(\.\d+)+)/i, e6) || n4.default.getFirstMatch(a5, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/meta-externalagent/i], describe: function(e6) {
- var t2 = { name: "Meta-ExternalAgent" }, r6 = n3.default.getFirstMatch(/meta-externalagent\/(\d+(\.\d+)+)/i, e6) || n3.default.getFirstMatch(a5, e6);
+ var t2 = { name: "Meta-ExternalAgent" }, r6 = n4.default.getFirstMatch(/meta-externalagent\/(\d+(\.\d+)+)/i, e6) || n4.default.getFirstMatch(a5, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/meta-externalfetcher/i], describe: function(e6) {
- var t2 = { name: "Meta-ExternalFetcher" }, r6 = n3.default.getFirstMatch(/meta-externalfetcher\/(\d+(\.\d+)+)/i, e6) || n3.default.getFirstMatch(a5, e6);
+ var t2 = { name: "Meta-ExternalFetcher" }, r6 = n4.default.getFirstMatch(/meta-externalfetcher\/(\d+(\.\d+)+)/i, e6) || n4.default.getFirstMatch(a5, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/googlebot/i], describe: function(e6) {
- var t2 = { name: "Googlebot" }, r6 = n3.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i, e6) || n3.default.getFirstMatch(a5, e6);
+ var t2 = { name: "Googlebot" }, r6 = n4.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i, e6) || n4.default.getFirstMatch(a5, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/linespider/i], describe: function(e6) {
- var t2 = { name: "Linespider" }, r6 = n3.default.getFirstMatch(/(?:linespider)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i, e6) || n3.default.getFirstMatch(a5, e6);
+ var t2 = { name: "Linespider" }, r6 = n4.default.getFirstMatch(/(?:linespider)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i, e6) || n4.default.getFirstMatch(a5, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/amazonbot/i], describe: function(e6) {
- var t2 = { name: "AmazonBot" }, r6 = n3.default.getFirstMatch(/amazonbot\/(\d+(\.\d+)+)/i, e6) || n3.default.getFirstMatch(a5, e6);
+ var t2 = { name: "AmazonBot" }, r6 = n4.default.getFirstMatch(/amazonbot\/(\d+(\.\d+)+)/i, e6) || n4.default.getFirstMatch(a5, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/bingbot/i], describe: function(e6) {
- var t2 = { name: "BingCrawler" }, r6 = n3.default.getFirstMatch(/bingbot\/(\d+(\.\d+)+)/i, e6) || n3.default.getFirstMatch(a5, e6);
+ var t2 = { name: "BingCrawler" }, r6 = n4.default.getFirstMatch(/bingbot\/(\d+(\.\d+)+)/i, e6) || n4.default.getFirstMatch(a5, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/baiduspider/i], describe: function(e6) {
- var t2 = { name: "BaiduSpider" }, r6 = n3.default.getFirstMatch(/baiduspider\/(\d+(\.\d+)+)/i, e6) || n3.default.getFirstMatch(a5, e6);
+ var t2 = { name: "BaiduSpider" }, r6 = n4.default.getFirstMatch(/baiduspider\/(\d+(\.\d+)+)/i, e6) || n4.default.getFirstMatch(a5, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/duckduckbot/i], describe: function(e6) {
- var t2 = { name: "DuckDuckBot" }, r6 = n3.default.getFirstMatch(/duckduckbot\/(\d+(\.\d+)+)/i, e6) || n3.default.getFirstMatch(a5, e6);
+ var t2 = { name: "DuckDuckBot" }, r6 = n4.default.getFirstMatch(/duckduckbot\/(\d+(\.\d+)+)/i, e6) || n4.default.getFirstMatch(a5, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/ia_archiver/i], describe: function(e6) {
- var t2 = { name: "InternetArchiveCrawler" }, r6 = n3.default.getFirstMatch(/ia_archiver\/(\d+(\.\d+)+)/i, e6) || n3.default.getFirstMatch(a5, e6);
+ var t2 = { name: "InternetArchiveCrawler" }, r6 = n4.default.getFirstMatch(/ia_archiver\/(\d+(\.\d+)+)/i, e6) || n4.default.getFirstMatch(a5, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/facebookexternalhit/i, /facebookcatalog/i], describe: function() {
return { name: "FacebookExternalHit" };
} }, { test: [/slackbot/i, /slack-imgProxy/i], describe: function(e6) {
- var t2 = { name: "SlackBot" }, r6 = n3.default.getFirstMatch(/(?:slackbot|slack-imgproxy)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i, e6) || n3.default.getFirstMatch(a5, e6);
+ var t2 = { name: "SlackBot" }, r6 = n4.default.getFirstMatch(/(?:slackbot|slack-imgproxy)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i, e6) || n4.default.getFirstMatch(a5, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/yahoo!?[\s/]*slurp/i], describe: function() {
return { name: "YahooSlurp" };
@@ -31548,118 +31548,118 @@ var require_es5 = __commonJS({
} }, { test: [/pingdom/i], describe: function() {
return { name: "PingdomBot" };
} }, { test: [/opera/i], describe: function(e6) {
- var t2 = { name: "Opera" }, r6 = n3.default.getFirstMatch(a5, e6) || n3.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i, e6);
+ var t2 = { name: "Opera" }, r6 = n4.default.getFirstMatch(a5, e6) || n4.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/opr\/|opios/i], describe: function(e6) {
- var t2 = { name: "Opera" }, r6 = n3.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i, e6) || n3.default.getFirstMatch(a5, e6);
+ var t2 = { name: "Opera" }, r6 = n4.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i, e6) || n4.default.getFirstMatch(a5, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/SamsungBrowser/i], describe: function(e6) {
- var t2 = { name: "Samsung Internet for Android" }, r6 = n3.default.getFirstMatch(a5, e6) || n3.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i, e6);
+ var t2 = { name: "Samsung Internet for Android" }, r6 = n4.default.getFirstMatch(a5, e6) || n4.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/Whale/i], describe: function(e6) {
- var t2 = { name: "NAVER Whale Browser" }, r6 = n3.default.getFirstMatch(a5, e6) || n3.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i, e6);
+ var t2 = { name: "NAVER Whale Browser" }, r6 = n4.default.getFirstMatch(a5, e6) || n4.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/PaleMoon/i], describe: function(e6) {
- var t2 = { name: "Pale Moon" }, r6 = n3.default.getFirstMatch(a5, e6) || n3.default.getFirstMatch(/(?:PaleMoon)[\s/](\d+(?:\.\d+)+)/i, e6);
+ var t2 = { name: "Pale Moon" }, r6 = n4.default.getFirstMatch(a5, e6) || n4.default.getFirstMatch(/(?:PaleMoon)[\s/](\d+(?:\.\d+)+)/i, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/MZBrowser/i], describe: function(e6) {
- var t2 = { name: "MZ Browser" }, r6 = n3.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i, e6) || n3.default.getFirstMatch(a5, e6);
+ var t2 = { name: "MZ Browser" }, r6 = n4.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i, e6) || n4.default.getFirstMatch(a5, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/focus/i], describe: function(e6) {
- var t2 = { name: "Focus" }, r6 = n3.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i, e6) || n3.default.getFirstMatch(a5, e6);
+ var t2 = { name: "Focus" }, r6 = n4.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i, e6) || n4.default.getFirstMatch(a5, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/swing/i], describe: function(e6) {
- var t2 = { name: "Swing" }, r6 = n3.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i, e6) || n3.default.getFirstMatch(a5, e6);
+ var t2 = { name: "Swing" }, r6 = n4.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i, e6) || n4.default.getFirstMatch(a5, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/coast/i], describe: function(e6) {
- var t2 = { name: "Opera Coast" }, r6 = n3.default.getFirstMatch(a5, e6) || n3.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i, e6);
+ var t2 = { name: "Opera Coast" }, r6 = n4.default.getFirstMatch(a5, e6) || n4.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/opt\/\d+(?:.?_?\d+)+/i], describe: function(e6) {
- var t2 = { name: "Opera Touch" }, r6 = n3.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i, e6) || n3.default.getFirstMatch(a5, e6);
+ var t2 = { name: "Opera Touch" }, r6 = n4.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i, e6) || n4.default.getFirstMatch(a5, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/yabrowser/i], describe: function(e6) {
- var t2 = { name: "Yandex Browser" }, r6 = n3.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i, e6) || n3.default.getFirstMatch(a5, e6);
+ var t2 = { name: "Yandex Browser" }, r6 = n4.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i, e6) || n4.default.getFirstMatch(a5, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/ucbrowser/i], describe: function(e6) {
- var t2 = { name: "UC Browser" }, r6 = n3.default.getFirstMatch(a5, e6) || n3.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i, e6);
+ var t2 = { name: "UC Browser" }, r6 = n4.default.getFirstMatch(a5, e6) || n4.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/Maxthon|mxios/i], describe: function(e6) {
- var t2 = { name: "Maxthon" }, r6 = n3.default.getFirstMatch(a5, e6) || n3.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i, e6);
+ var t2 = { name: "Maxthon" }, r6 = n4.default.getFirstMatch(a5, e6) || n4.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/epiphany/i], describe: function(e6) {
- var t2 = { name: "Epiphany" }, r6 = n3.default.getFirstMatch(a5, e6) || n3.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i, e6);
+ var t2 = { name: "Epiphany" }, r6 = n4.default.getFirstMatch(a5, e6) || n4.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/puffin/i], describe: function(e6) {
- var t2 = { name: "Puffin" }, r6 = n3.default.getFirstMatch(a5, e6) || n3.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i, e6);
+ var t2 = { name: "Puffin" }, r6 = n4.default.getFirstMatch(a5, e6) || n4.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/sleipnir/i], describe: function(e6) {
- var t2 = { name: "Sleipnir" }, r6 = n3.default.getFirstMatch(a5, e6) || n3.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i, e6);
+ var t2 = { name: "Sleipnir" }, r6 = n4.default.getFirstMatch(a5, e6) || n4.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/k-meleon/i], describe: function(e6) {
- var t2 = { name: "K-Meleon" }, r6 = n3.default.getFirstMatch(a5, e6) || n3.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i, e6);
+ var t2 = { name: "K-Meleon" }, r6 = n4.default.getFirstMatch(a5, e6) || n4.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/micromessenger/i], describe: function(e6) {
- var t2 = { name: "WeChat" }, r6 = n3.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i, e6) || n3.default.getFirstMatch(a5, e6);
+ var t2 = { name: "WeChat" }, r6 = n4.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i, e6) || n4.default.getFirstMatch(a5, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/qqbrowser/i], describe: function(e6) {
- var t2 = { name: /qqbrowserlite/i.test(e6) ? "QQ Browser Lite" : "QQ Browser" }, r6 = n3.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i, e6) || n3.default.getFirstMatch(a5, e6);
+ var t2 = { name: /qqbrowserlite/i.test(e6) ? "QQ Browser Lite" : "QQ Browser" }, r6 = n4.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i, e6) || n4.default.getFirstMatch(a5, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/msie|trident/i], describe: function(e6) {
- var t2 = { name: "Internet Explorer" }, r6 = n3.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i, e6);
+ var t2 = { name: "Internet Explorer" }, r6 = n4.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/\sedg\//i], describe: function(e6) {
- var t2 = { name: "Microsoft Edge" }, r6 = n3.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i, e6);
+ var t2 = { name: "Microsoft Edge" }, r6 = n4.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/edg([ea]|ios)/i], describe: function(e6) {
- var t2 = { name: "Microsoft Edge" }, r6 = n3.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i, e6);
+ var t2 = { name: "Microsoft Edge" }, r6 = n4.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/vivaldi/i], describe: function(e6) {
- var t2 = { name: "Vivaldi" }, r6 = n3.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i, e6);
+ var t2 = { name: "Vivaldi" }, r6 = n4.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/seamonkey/i], describe: function(e6) {
- var t2 = { name: "SeaMonkey" }, r6 = n3.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i, e6);
+ var t2 = { name: "SeaMonkey" }, r6 = n4.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/sailfish/i], describe: function(e6) {
- var t2 = { name: "Sailfish" }, r6 = n3.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i, e6);
+ var t2 = { name: "Sailfish" }, r6 = n4.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/silk/i], describe: function(e6) {
- var t2 = { name: "Amazon Silk" }, r6 = n3.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i, e6);
+ var t2 = { name: "Amazon Silk" }, r6 = n4.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/phantom/i], describe: function(e6) {
- var t2 = { name: "PhantomJS" }, r6 = n3.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i, e6);
+ var t2 = { name: "PhantomJS" }, r6 = n4.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/slimerjs/i], describe: function(e6) {
- var t2 = { name: "SlimerJS" }, r6 = n3.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i, e6);
+ var t2 = { name: "SlimerJS" }, r6 = n4.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/blackberry|\bbb\d+/i, /rim\stablet/i], describe: function(e6) {
- var t2 = { name: "BlackBerry" }, r6 = n3.default.getFirstMatch(a5, e6) || n3.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i, e6);
+ var t2 = { name: "BlackBerry" }, r6 = n4.default.getFirstMatch(a5, e6) || n4.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/(web|hpw)[o0]s/i], describe: function(e6) {
- var t2 = { name: "WebOS Browser" }, r6 = n3.default.getFirstMatch(a5, e6) || n3.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i, e6);
+ var t2 = { name: "WebOS Browser" }, r6 = n4.default.getFirstMatch(a5, e6) || n4.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/bada/i], describe: function(e6) {
- var t2 = { name: "Bada" }, r6 = n3.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i, e6);
+ var t2 = { name: "Bada" }, r6 = n4.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/tizen/i], describe: function(e6) {
- var t2 = { name: "Tizen" }, r6 = n3.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i, e6) || n3.default.getFirstMatch(a5, e6);
+ var t2 = { name: "Tizen" }, r6 = n4.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i, e6) || n4.default.getFirstMatch(a5, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/qupzilla/i], describe: function(e6) {
- var t2 = { name: "QupZilla" }, r6 = n3.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i, e6) || n3.default.getFirstMatch(a5, e6);
+ var t2 = { name: "QupZilla" }, r6 = n4.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i, e6) || n4.default.getFirstMatch(a5, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/librewolf/i], describe: function(e6) {
- var t2 = { name: "LibreWolf" }, r6 = n3.default.getFirstMatch(/(?:librewolf)[\s/](\d+(\.?_?\d+)+)/i, e6);
+ var t2 = { name: "LibreWolf" }, r6 = n4.default.getFirstMatch(/(?:librewolf)[\s/](\d+(\.?_?\d+)+)/i, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/firefox|iceweasel|fxios/i], describe: function(e6) {
- var t2 = { name: "Firefox" }, r6 = n3.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i, e6);
+ var t2 = { name: "Firefox" }, r6 = n4.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/electron/i], describe: function(e6) {
- var t2 = { name: "Electron" }, r6 = n3.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i, e6);
+ var t2 = { name: "Electron" }, r6 = n4.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/sogoumobilebrowser/i, /metasr/i, /se 2\.[x]/i], describe: function(e6) {
- var t2 = { name: "Sogou Browser" }, r6 = n3.default.getFirstMatch(/(?:sogoumobilebrowser)[\s/](\d+(\.?_?\d+)+)/i, e6), i6 = n3.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i, e6), a6 = n3.default.getFirstMatch(/se ([\d.]+)x/i, e6), o3 = r6 || i6 || a6;
- return o3 && (t2.version = o3), t2;
+ var t2 = { name: "Sogou Browser" }, r6 = n4.default.getFirstMatch(/(?:sogoumobilebrowser)[\s/](\d+(\.?_?\d+)+)/i, e6), i6 = n4.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i, e6), a6 = n4.default.getFirstMatch(/se ([\d.]+)x/i, e6), o4 = r6 || i6 || a6;
+ return o4 && (t2.version = o4), t2;
} }, { test: [/MiuiBrowser/i], describe: function(e6) {
- var t2 = { name: "Miui" }, r6 = n3.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i, e6);
+ var t2 = { name: "Miui" }, r6 = n4.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i, e6);
return r6 && (t2.version = r6), t2;
} }, { test: function(e6) {
return !!e6.hasBrand("DuckDuckGo") || e6.test(/\sDdg\/[\d.]+$/i);
@@ -31669,7 +31669,7 @@ var require_es5 = __commonJS({
var i6 = t2.getBrandVersion("DuckDuckGo");
if (i6) return r6.version = i6, r6;
}
- var a6 = n3.default.getFirstMatch(/\sDdg\/([\d.]+)$/i, e6);
+ var a6 = n4.default.getFirstMatch(/\sDdg\/([\d.]+)$/i, e6);
return a6 && (r6.version = a6), r6;
} }, { test: function(e6) {
return e6.hasBrand("Brave");
@@ -31681,88 +31681,88 @@ var require_es5 = __commonJS({
}
return r6;
} }, { test: [/chromium/i], describe: function(e6) {
- var t2 = { name: "Chromium" }, r6 = n3.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i, e6) || n3.default.getFirstMatch(a5, e6);
+ var t2 = { name: "Chromium" }, r6 = n4.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i, e6) || n4.default.getFirstMatch(a5, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/chrome|crios|crmo/i], describe: function(e6) {
- var t2 = { name: "Chrome" }, r6 = n3.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i, e6);
+ var t2 = { name: "Chrome" }, r6 = n4.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/GSA/i], describe: function(e6) {
- var t2 = { name: "Google Search" }, r6 = n3.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i, e6);
+ var t2 = { name: "Google Search" }, r6 = n4.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i, e6);
return r6 && (t2.version = r6), t2;
} }, { test: function(e6) {
var t2 = !e6.test(/like android/i), r6 = e6.test(/android/i);
return t2 && r6;
}, describe: function(e6) {
- var t2 = { name: "Android Browser" }, r6 = n3.default.getFirstMatch(a5, e6);
+ var t2 = { name: "Android Browser" }, r6 = n4.default.getFirstMatch(a5, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/playstation 4/i], describe: function(e6) {
- var t2 = { name: "PlayStation 4" }, r6 = n3.default.getFirstMatch(a5, e6);
+ var t2 = { name: "PlayStation 4" }, r6 = n4.default.getFirstMatch(a5, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/safari|applewebkit/i], describe: function(e6) {
- var t2 = { name: "Safari" }, r6 = n3.default.getFirstMatch(a5, e6);
+ var t2 = { name: "Safari" }, r6 = n4.default.getFirstMatch(a5, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/.*/i], describe: function(e6) {
var t2 = -1 !== e6.search("\\(") ? /^(.*)\/(.*)[ \t]\((.*)/ : /^(.*)\/(.*) /;
- return { name: n3.default.getFirstMatch(t2, e6), version: n3.default.getSecondMatch(t2, e6) };
+ return { name: n4.default.getFirstMatch(t2, e6), version: n4.default.getSecondMatch(t2, e6) };
} }];
- t.default = o2, e5.exports = t.default;
+ t.default = o3, e5.exports = t.default;
}, 93: function(e5, t, r5) {
"use strict";
t.__esModule = true, t.default = void 0;
- var i5, n3 = (i5 = r5(17)) && i5.__esModule ? i5 : { default: i5 }, a5 = r5(18);
- var o2 = [{ test: [/Roku\/DVP/], describe: function(e6) {
- var t2 = n3.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i, e6);
+ var i5, n4 = (i5 = r5(17)) && i5.__esModule ? i5 : { default: i5 }, a5 = r5(18);
+ var o3 = [{ test: [/Roku\/DVP/], describe: function(e6) {
+ var t2 = n4.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i, e6);
return { name: a5.OS_MAP.Roku, version: t2 };
} }, { test: [/windows phone/i], describe: function(e6) {
- var t2 = n3.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i, e6);
+ var t2 = n4.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i, e6);
return { name: a5.OS_MAP.WindowsPhone, version: t2 };
} }, { test: [/windows /i], describe: function(e6) {
- var t2 = n3.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i, e6), r6 = n3.default.getWindowsVersionName(t2);
+ var t2 = n4.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i, e6), r6 = n4.default.getWindowsVersionName(t2);
return { name: a5.OS_MAP.Windows, version: t2, versionName: r6 };
} }, { test: [/Macintosh(.*?) FxiOS(.*?)\//], describe: function(e6) {
- var t2 = { name: a5.OS_MAP.iOS }, r6 = n3.default.getSecondMatch(/(Version\/)(\d[\d.]+)/, e6);
+ var t2 = { name: a5.OS_MAP.iOS }, r6 = n4.default.getSecondMatch(/(Version\/)(\d[\d.]+)/, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/macintosh/i], describe: function(e6) {
- var t2 = n3.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i, e6).replace(/[_\s]/g, "."), r6 = n3.default.getMacOSVersionName(t2), i6 = { name: a5.OS_MAP.MacOS, version: t2 };
+ var t2 = n4.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i, e6).replace(/[_\s]/g, "."), r6 = n4.default.getMacOSVersionName(t2), i6 = { name: a5.OS_MAP.MacOS, version: t2 };
return r6 && (i6.versionName = r6), i6;
} }, { test: [/(ipod|iphone|ipad)/i], describe: function(e6) {
- var t2 = n3.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i, e6).replace(/[_\s]/g, ".");
+ var t2 = n4.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i, e6).replace(/[_\s]/g, ".");
return { name: a5.OS_MAP.iOS, version: t2 };
} }, { test: [/OpenHarmony/i], describe: function(e6) {
- var t2 = n3.default.getFirstMatch(/OpenHarmony\s+(\d+(\.\d+)*)/i, e6);
+ var t2 = n4.default.getFirstMatch(/OpenHarmony\s+(\d+(\.\d+)*)/i, e6);
return { name: a5.OS_MAP.HarmonyOS, version: t2 };
} }, { test: function(e6) {
var t2 = !e6.test(/like android/i), r6 = e6.test(/android/i);
return t2 && r6;
}, describe: function(e6) {
- var t2 = n3.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i, e6), r6 = n3.default.getAndroidVersionName(t2), i6 = { name: a5.OS_MAP.Android, version: t2 };
+ var t2 = n4.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i, e6), r6 = n4.default.getAndroidVersionName(t2), i6 = { name: a5.OS_MAP.Android, version: t2 };
return r6 && (i6.versionName = r6), i6;
} }, { test: [/(web|hpw)[o0]s/i], describe: function(e6) {
- var t2 = n3.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i, e6), r6 = { name: a5.OS_MAP.WebOS };
+ var t2 = n4.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i, e6), r6 = { name: a5.OS_MAP.WebOS };
return t2 && t2.length && (r6.version = t2), r6;
} }, { test: [/blackberry|\bbb\d+/i, /rim\stablet/i], describe: function(e6) {
- var t2 = n3.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i, e6) || n3.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i, e6) || n3.default.getFirstMatch(/\bbb(\d+)/i, e6);
+ var t2 = n4.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i, e6) || n4.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i, e6) || n4.default.getFirstMatch(/\bbb(\d+)/i, e6);
return { name: a5.OS_MAP.BlackBerry, version: t2 };
} }, { test: [/bada/i], describe: function(e6) {
- var t2 = n3.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i, e6);
+ var t2 = n4.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i, e6);
return { name: a5.OS_MAP.Bada, version: t2 };
} }, { test: [/tizen/i], describe: function(e6) {
- var t2 = n3.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i, e6);
+ var t2 = n4.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i, e6);
return { name: a5.OS_MAP.Tizen, version: t2 };
} }, { test: [/linux/i], describe: function() {
return { name: a5.OS_MAP.Linux };
} }, { test: [/CrOS/], describe: function() {
return { name: a5.OS_MAP.ChromeOS };
} }, { test: [/PlayStation 4/], describe: function(e6) {
- var t2 = n3.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i, e6);
+ var t2 = n4.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i, e6);
return { name: a5.OS_MAP.PlayStation4, version: t2 };
} }];
- t.default = o2, e5.exports = t.default;
+ t.default = o3, e5.exports = t.default;
}, 94: function(e5, t, r5) {
"use strict";
t.__esModule = true, t.default = void 0;
- var i5, n3 = (i5 = r5(17)) && i5.__esModule ? i5 : { default: i5 }, a5 = r5(18);
- var o2 = [{ test: [/googlebot/i], describe: function() {
+ var i5, n4 = (i5 = r5(17)) && i5.__esModule ? i5 : { default: i5 }, a5 = r5(18);
+ var o3 = [{ test: [/googlebot/i], describe: function() {
return { type: a5.PLATFORMS_MAP.bot, vendor: "Google" };
} }, { test: [/linespider/i], describe: function() {
return { type: a5.PLATFORMS_MAP.bot, vendor: "Line" };
@@ -31813,7 +31813,7 @@ var require_es5 = __commonJS({
} }, { test: [/pingdom/i], describe: function() {
return { type: a5.PLATFORMS_MAP.bot, vendor: "Pingdom" };
} }, { test: [/huawei/i], describe: function(e6) {
- var t2 = n3.default.getFirstMatch(/(can-l01)/i, e6) && "Nova", r6 = { type: a5.PLATFORMS_MAP.mobile, vendor: "Huawei" };
+ var t2 = n4.default.getFirstMatch(/(can-l01)/i, e6) && "Nova", r6 = { type: a5.PLATFORMS_MAP.mobile, vendor: "Huawei" };
return t2 && (r6.model = t2), r6;
} }, { test: [/nexus\s*(?:7|8|9|10).*/i], describe: function() {
return { type: a5.PLATFORMS_MAP.tablet, vendor: "Nexus" };
@@ -31831,12 +31831,12 @@ var require_es5 = __commonJS({
var t2 = e6.test(/ipod|iphone/i), r6 = e6.test(/like (ipod|iphone)/i);
return t2 && !r6;
}, describe: function(e6) {
- var t2 = n3.default.getFirstMatch(/(ipod|iphone)/i, e6);
+ var t2 = n4.default.getFirstMatch(/(ipod|iphone)/i, e6);
return { type: a5.PLATFORMS_MAP.mobile, vendor: "Apple", model: t2 };
} }, { test: [/nexus\s*[0-6].*/i, /galaxy nexus/i], describe: function() {
return { type: a5.PLATFORMS_MAP.mobile, vendor: "Nexus" };
} }, { test: [/Nokia/i], describe: function(e6) {
- var t2 = n3.default.getFirstMatch(/Nokia\s+([0-9]+(\.[0-9]+)?)/i, e6), r6 = { type: a5.PLATFORMS_MAP.mobile, vendor: "Nokia" };
+ var t2 = n4.default.getFirstMatch(/Nokia\s+([0-9]+(\.[0-9]+)?)/i, e6), r6 = { type: a5.PLATFORMS_MAP.mobile, vendor: "Nokia" };
return t2 && (r6.model = t2), r6;
} }, { test: [/[^-]mobi/i], describe: function() {
return { type: a5.PLATFORMS_MAP.mobile };
@@ -31886,38 +31886,38 @@ var require_es5 = __commonJS({
}, describe: function() {
return { type: a5.PLATFORMS_MAP.tv };
} }];
- t.default = o2, e5.exports = t.default;
+ t.default = o3, e5.exports = t.default;
}, 95: function(e5, t, r5) {
"use strict";
t.__esModule = true, t.default = void 0;
- var i5, n3 = (i5 = r5(17)) && i5.__esModule ? i5 : { default: i5 }, a5 = r5(18);
- var o2 = [{ test: function(e6) {
+ var i5, n4 = (i5 = r5(17)) && i5.__esModule ? i5 : { default: i5 }, a5 = r5(18);
+ var o3 = [{ test: function(e6) {
return "microsoft edge" === e6.getBrowserName(true);
}, describe: function(e6) {
if (/\sedg\//i.test(e6)) return { name: a5.ENGINE_MAP.Blink };
- var t2 = n3.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i, e6);
+ var t2 = n4.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i, e6);
return { name: a5.ENGINE_MAP.EdgeHTML, version: t2 };
} }, { test: [/trident/i], describe: function(e6) {
- var t2 = { name: a5.ENGINE_MAP.Trident }, r6 = n3.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i, e6);
+ var t2 = { name: a5.ENGINE_MAP.Trident }, r6 = n4.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i, e6);
return r6 && (t2.version = r6), t2;
} }, { test: function(e6) {
return e6.test(/presto/i);
}, describe: function(e6) {
- var t2 = { name: a5.ENGINE_MAP.Presto }, r6 = n3.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i, e6);
+ var t2 = { name: a5.ENGINE_MAP.Presto }, r6 = n4.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i, e6);
return r6 && (t2.version = r6), t2;
} }, { test: function(e6) {
var t2 = e6.test(/gecko/i), r6 = e6.test(/like gecko/i);
return t2 && !r6;
}, describe: function(e6) {
- var t2 = { name: a5.ENGINE_MAP.Gecko }, r6 = n3.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i, e6);
+ var t2 = { name: a5.ENGINE_MAP.Gecko }, r6 = n4.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i, e6);
return r6 && (t2.version = r6), t2;
} }, { test: [/(apple)?webkit\/537\.36/i], describe: function() {
return { name: a5.ENGINE_MAP.Blink };
} }, { test: [/(apple)?webkit/i], describe: function(e6) {
- var t2 = { name: a5.ENGINE_MAP.WebKit }, r6 = n3.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i, e6);
+ var t2 = { name: a5.ENGINE_MAP.WebKit }, r6 = n4.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i, e6);
return r6 && (t2.version = r6), t2;
} }];
- t.default = o2, e5.exports = t.default;
+ t.default = o3, e5.exports = t.default;
} });
}));
}
@@ -33190,14 +33190,13 @@ var init_httpAuthSchemes2 = __esm({
// node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js
var require_dist_cjs6 = __commonJS({
"node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js"(exports2) {
- "use strict";
- var signatureV4 = require_dist_cjs5();
+ var { SignatureV4: SignatureV42, signatureV4aContainer } = require_dist_cjs5();
var signatureV4CrtContainer = {
CrtSignerV4: null
};
var SESSION_TOKEN_QUERY_PARAM = "X-Amz-S3session-Token";
var SESSION_TOKEN_HEADER = SESSION_TOKEN_QUERY_PARAM.toLowerCase();
- var SignatureV4SignWithCredentials = class extends signatureV4.SignatureV4 {
+ var SignatureV4SignWithCredentials = class extends SignatureV42 {
async signWithCredentials(requestToSign, credentials, options) {
const credentialsWithoutSessionToken = getCredentialsWithoutSessionToken(credentials);
requestToSign.headers[SESSION_TOKEN_HEADER] = credentials.sessionToken;
@@ -33237,7 +33236,7 @@ var require_dist_cjs6 = __commonJS({
static sigv4aDependency() {
if (typeof signatureV4CrtContainer.CrtSignerV4 === "function") {
return "crt";
- } else if (typeof signatureV4.signatureV4aContainer.SignatureV4a === "function") {
+ } else if (typeof signatureV4aContainer.SignatureV4a === "function") {
return "js";
}
return "none";
@@ -33285,7 +33284,7 @@ var require_dist_cjs6 = __commonJS({
getSigv4aSigner() {
if (!this.sigv4aSigner) {
const CrtSignerV4 = signatureV4CrtContainer.CrtSignerV4;
- const JsSigV4aSigner = signatureV4.signatureV4aContainer.SignatureV4a;
+ const JsSigV4aSigner = signatureV4aContainer.SignatureV4a;
if (this.signerOptions.runtime === "node") {
if (!CrtSignerV4 && !JsSigV4aSigner) {
throw new Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");
@@ -33323,10 +33322,7 @@ var require_dist_cjs6 = __commonJS({
// node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/bdd.js
var require_bdd = __commonJS({
"node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/bdd.js"(exports2) {
- "use strict";
- Object.defineProperty(exports2, "__esModule", { value: true });
- exports2.bdd = void 0;
- var endpoints_1 = (init_endpoints(), __toCommonJS(endpoints_exports));
+ var { BinaryDecisionDiagram: BinaryDecisionDiagram2 } = (init_endpoints(), __toCommonJS(endpoints_exports));
var q2 = "ref";
var a5 = -1;
var b6 = true;
@@ -33341,21 +33337,21 @@ var require_bdd = __commonJS({
var k5 = "https://sts.{Region}.{PartitionResult#dnsSuffix}";
var l3 = { [q2]: "Endpoint" };
var m3 = { [q2]: "Region" };
- var n3 = { [q2]: d5 };
- var o2 = {};
- var p2 = [m3];
+ var n4 = { [q2]: d5 };
+ var o3 = {};
+ var p3 = [m3];
var _data5 = {
conditions: [
[c5, [l3]],
- [c5, p2],
- ["aws.partition", p2, d5],
+ [c5, p3],
+ ["aws.partition", p3, d5],
[e5, [{ [q2]: "UseFIPS" }, b6]],
[e5, [{ [q2]: "UseDualStack" }, b6]],
[f5, [m3, "aws-global"]],
[e5, [{ [q2]: "UseGlobalEndpoint" }, b6]],
[f5, [m3, "eu-central-1"]],
- [e5, [{ fn: g5, argv: [n3, "supportsDualStack"] }, b6]],
- [e5, [{ fn: g5, argv: [n3, "supportsFIPS"] }, b6]],
+ [e5, [{ fn: g5, argv: [n4, "supportsDualStack"] }, b6]],
+ [e5, [{ fn: g5, argv: [n4, "supportsFIPS"] }, b6]],
[f5, [m3, "ap-south-1"]],
[f5, [m3, "eu-north-1"]],
[f5, [m3, "eu-west-1"]],
@@ -33370,7 +33366,7 @@ var require_bdd = __commonJS({
[f5, [m3, "ap-southeast-1"]],
[f5, [m3, "ap-northeast-1"]],
[f5, [m3, "ap-southeast-2"]],
- [f5, [{ fn: g5, argv: [n3, "name"] }, "aws-us-gov"]]
+ [f5, [{ fn: g5, argv: [n4, "name"] }, "aws-us-gov"]]
],
results: [
[a5],
@@ -33378,15 +33374,15 @@ var require_bdd = __commonJS({
[k5, { authSchemes: [{ name: i5, signingName: j5, signingRegion: "{Region}" }] }],
[a5, "Invalid Configuration: FIPS and custom endpoint are not supported"],
[a5, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
- [l3, o2],
- ["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", o2],
+ [l3, o3],
+ ["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", o3],
[a5, "FIPS and DualStack are enabled, but this partition does not support one or both"],
- ["https://sts.{Region}.amazonaws.com", o2],
- ["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", o2],
+ ["https://sts.{Region}.amazonaws.com", o3],
+ ["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", o3],
[a5, "FIPS is enabled but this partition does not support FIPS"],
- ["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", o2],
+ ["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", o3],
[a5, "DualStack is enabled but this partition does not support DualStack"],
- [k5, o2],
+ [k5, o3],
[a5, "Invalid Configuration: Missing Region"]
]
};
@@ -33487,61 +33483,54 @@ var require_bdd = __commonJS({
r5 + 4,
r5 + 5
]);
- exports2.bdd = endpoints_1.BinaryDecisionDiagram.from(nodes5, root5, _data5.conditions, _data5.results);
+ exports2.bdd = BinaryDecisionDiagram2.from(nodes5, root5, _data5.conditions, _data5.results);
}
});
// node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js
var require_endpointResolver = __commonJS({
"node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js"(exports2) {
- "use strict";
- Object.defineProperty(exports2, "__esModule", { value: true });
- exports2.defaultEndpointResolver = void 0;
- var client_1 = (init_client3(), __toCommonJS(client_exports2));
- var endpoints_1 = (init_endpoints(), __toCommonJS(endpoints_exports));
- var bdd_1 = require_bdd();
- var cache5 = new endpoints_1.EndpointCache({
+ var { awsEndpointFunctions: awsEndpointFunctions2 } = (init_client3(), __toCommonJS(client_exports2));
+ var { customEndpointFunctions: customEndpointFunctions2, decideEndpoint: decideEndpoint2, EndpointCache: EndpointCache2 } = (init_endpoints(), __toCommonJS(endpoints_exports));
+ var { bdd: bdd5 } = require_bdd();
+ var cache5 = new EndpointCache2({
size: 50,
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS", "UseGlobalEndpoint"]
});
- var defaultEndpointResolver5 = (endpointParams, context = {}) => {
- return cache5.get(endpointParams, () => (0, endpoints_1.decideEndpoint)(bdd_1.bdd, {
+ exports2.defaultEndpointResolver = (endpointParams, context = {}) => {
+ return cache5.get(endpointParams, () => decideEndpoint2(bdd5, {
endpointParams,
logger: context.logger
}));
};
- exports2.defaultEndpointResolver = defaultEndpointResolver5;
- endpoints_1.customEndpointFunctions.aws = client_1.awsEndpointFunctions;
+ customEndpointFunctions2.aws = awsEndpointFunctions2;
}
});
// node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthSchemeProvider.js
var require_httpAuthSchemeProvider = __commonJS({
"node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) {
- "use strict";
- Object.defineProperty(exports2, "__esModule", { value: true });
- exports2.resolveHttpAuthSchemeConfig = exports2.defaultSTSHttpAuthSchemeProvider = exports2.defaultSTSHttpAuthSchemeParametersProvider = void 0;
- var httpAuthSchemes_1 = (init_httpAuthSchemes2(), __toCommonJS(httpAuthSchemes_exports));
- var signature_v4_multi_region_1 = require_dist_cjs6();
- var client_1 = (init_client2(), __toCommonJS(client_exports));
- var endpoints_1 = (init_endpoints(), __toCommonJS(endpoints_exports));
- var endpointResolver_1 = require_endpointResolver();
+ var { resolveAwsSdkSigV4AConfig: resolveAwsSdkSigV4AConfig2, resolveAwsSdkSigV4Config: resolveAwsSdkSigV4Config2 } = (init_httpAuthSchemes2(), __toCommonJS(httpAuthSchemes_exports));
+ var { SignatureV4MultiRegion: SignatureV4MultiRegion3 } = require_dist_cjs6();
+ var { getSmithyContext: getSmithyContext2, normalizeProvider: normalizeProvider3 } = (init_client2(), __toCommonJS(client_exports));
+ var { resolveParams: resolveParams2 } = (init_endpoints(), __toCommonJS(endpoints_exports));
+ var { defaultEndpointResolver: defaultEndpointResolver5 } = require_endpointResolver();
var createEndpointRuleSetHttpAuthSchemeParametersProvider2 = (defaultHttpAuthSchemeParametersProvider) => async (config, context, input) => {
if (!input) {
throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");
}
const defaultParameters = await defaultHttpAuthSchemeParametersProvider(config, context, input);
- const instructionsFn = (0, client_1.getSmithyContext)(context)?.commandInstance?.constructor?.getEndpointParameterInstructions;
+ const instructionsFn = getSmithyContext2(context)?.commandInstance?.constructor?.getEndpointParameterInstructions;
if (!instructionsFn) {
throw new Error(`getEndpointParameterInstructions() is not defined on '${context.commandName}'`);
}
- const endpointParameters = await (0, endpoints_1.resolveParams)(input, { getEndpointParameterInstructions: instructionsFn }, config);
+ const endpointParameters = await resolveParams2(input, { getEndpointParameterInstructions: instructionsFn }, config);
return Object.assign(defaultParameters, endpointParameters);
};
var _defaultSTSHttpAuthSchemeParametersProvider2 = async (config, context, input) => {
return {
- operation: (0, client_1.getSmithyContext)(context).operation,
- region: await (0, client_1.normalizeProvider)(config.region)() || (() => {
+ operation: getSmithyContext2(context).operation,
+ region: await normalizeProvider3(config.region)() || (() => {
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
})()
};
@@ -33582,9 +33571,9 @@ var require_httpAuthSchemeProvider = __commonJS({
schemeId: "smithy.api#noAuth"
};
}
- var createEndpointRuleSetHttpAuthSchemeProvider2 = (defaultEndpointResolver5, defaultHttpAuthSchemeResolver, createHttpAuthOptionFunctions) => {
+ var createEndpointRuleSetHttpAuthSchemeProvider2 = (defaultEndpointResolver6, defaultHttpAuthSchemeResolver, createHttpAuthOptionFunctions) => {
const endpointRuleSetHttpAuthSchemeProvider = (authParameters) => {
- const endpoint = defaultEndpointResolver5(authParameters);
+ const endpoint = defaultEndpointResolver6(authParameters);
const authSchemes = endpoint.properties?.authSchemes;
if (!authSchemes) {
return defaultHttpAuthSchemeResolver(authParameters);
@@ -33603,7 +33592,7 @@ var require_httpAuthSchemeProvider = __commonJS({
const name2 = s.name.toLowerCase();
return name2 !== "sigv4a" && name2.startsWith("sigv4");
});
- if (signature_v4_multi_region_1.SignatureV4MultiRegion.sigv4aDependency() === "none" && sigv4Present) {
+ if (SignatureV4MultiRegion3.sigv4aDependency() === "none" && sigv4Present) {
continue;
}
} else if (name.startsWith("sigv4")) {
@@ -33644,19 +33633,18 @@ var require_httpAuthSchemeProvider = __commonJS({
}
return options;
};
- exports2.defaultSTSHttpAuthSchemeProvider = createEndpointRuleSetHttpAuthSchemeProvider2(endpointResolver_1.defaultEndpointResolver, _defaultSTSHttpAuthSchemeProvider2, {
+ exports2.defaultSTSHttpAuthSchemeProvider = createEndpointRuleSetHttpAuthSchemeProvider2(defaultEndpointResolver5, _defaultSTSHttpAuthSchemeProvider2, {
"aws.auth#sigv4": createAwsAuthSigv4HttpAuthOption5,
"aws.auth#sigv4a": createAwsAuthSigv4aHttpAuthOption2,
"smithy.api#noAuth": createSmithyApiNoAuthHttpAuthOption5
});
- var resolveHttpAuthSchemeConfig5 = (config) => {
- const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
- const config_1 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4AConfig)(config_0);
+ exports2.resolveHttpAuthSchemeConfig = (config) => {
+ const config_0 = resolveAwsSdkSigV4Config2(config);
+ const config_1 = resolveAwsSdkSigV4AConfig2(config_0);
return Object.assign(config_1, {
- authSchemePreference: (0, client_1.normalizeProvider)(config.authSchemePreference ?? [])
+ authSchemePreference: normalizeProvider3(config.authSchemePreference ?? [])
});
};
- exports2.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig5;
}
});
@@ -33666,24 +33654,24 @@ var require_package = __commonJS({
module2.exports = {
name: "@aws-sdk/client-sts",
description: "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
- version: "3.1064.0",
+ version: "3.1069.0",
scripts: {
build: "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
"build:cjs": "node ../../scripts/compilation/inline",
- "build:es": "tsc -p tsconfig.es.json",
+ "build:es": "premove dist-es && tsc -p tsconfig.es.json",
"build:include:deps": 'yarn g:turbo run build -F="$npm_package_name"',
- "build:types": "premove ./dist-types tsconfig.types.tsbuildinfo && tsc -p tsconfig.types.json",
+ "build:types": "premove dist-types && tsc -p tsconfig.types.json",
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
- clean: "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
+ clean: "premove dist-cjs dist-es dist-types",
"extract:docs": "api-extractor run --local",
- "generate:client": "node ../../scripts/generate-clients/single-service --solo sts",
- test: "yarn g:vitest run",
- "test:e2e": "yarn g:vitest run -c vitest.config.e2e.mts --mode development",
- "test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.mts",
- "test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs",
+ "generate:client": "node ../../scripts/generate-clients/single-service",
+ test: "yarn g:vitest run --passWithNoTests",
+ "test:watch": "yarn g:vitest watch --passWithNoTests",
"test:integration": "yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts",
- "test:integration:watch": "yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts",
- "test:watch": "yarn g:vitest watch"
+ "test:integration:watch": "yarn g:vitest watch --passWithNoTests -c vitest.config.integ.mts",
+ "test:e2e": "yarn g:vitest run -c vitest.config.e2e.mts",
+ "test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.mts",
+ "test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"
},
main: "./dist-cjs/index.js",
types: "./dist-types/index.d.ts",
@@ -33692,10 +33680,10 @@ var require_package = __commonJS({
dependencies: {
"@aws-crypto/sha256-browser": "5.2.0",
"@aws-crypto/sha256-js": "5.2.0",
- "@aws-sdk/core": "^3.974.19",
- "@aws-sdk/credential-provider-node": "^3.972.53",
- "@aws-sdk/signature-v4-multi-region": "^3.996.33",
- "@aws-sdk/types": "^3.973.12",
+ "@aws-sdk/core": "^3.974.21",
+ "@aws-sdk/credential-provider-node": "^3.972.56",
+ "@aws-sdk/signature-v4-multi-region": "^3.996.35",
+ "@aws-sdk/types": "^3.973.13",
"@smithy/core": "^3.24.6",
"@smithy/fetch-http-handler": "^5.4.6",
"@smithy/node-http-handler": "^4.7.6",
@@ -33792,10 +33780,9 @@ var require_dist_cjs7 = __commonJS({
// node_modules/@smithy/credential-provider-imds/dist-cjs/index.js
var require_dist_cjs8 = __commonJS({
"node_modules/@smithy/credential-provider-imds/dist-cjs/index.js"(exports2) {
- "use strict";
- var config = (init_config2(), __toCommonJS(config_exports));
+ var { ProviderError: ProviderError2, CredentialsProviderError: CredentialsProviderError2, loadConfig: loadConfig2 } = (init_config2(), __toCommonJS(config_exports));
var node_http = require("node:http");
- var protocols2 = (init_protocols(), __toCommonJS(protocols_exports));
+ var { parseUrl: parseUrl3 } = (init_protocols(), __toCommonJS(protocols_exports));
var isImdsCredentials = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.AccessKeyId === "string" && typeof arg.SecretAccessKey === "string" && typeof arg.Token === "string" && typeof arg.Expiration === "string";
var fromImdsCredentials = (creds) => ({
accessKeyId: creds.AccessKeyId,
@@ -33815,17 +33802,17 @@ var require_dist_cjs8 = __commonJS({
hostname: options.hostname?.replace(/^\[(.+)\]$/, "$1")
});
req.on("error", (err) => {
- reject(Object.assign(new config.ProviderError("Unable to connect to instance metadata service"), err));
+ reject(Object.assign(new ProviderError2("Unable to connect to instance metadata service"), err));
req.destroy();
});
req.on("timeout", () => {
- reject(new config.ProviderError("TimeoutError from instance metadata service"));
+ reject(new ProviderError2("TimeoutError from instance metadata service"));
req.destroy();
});
req.on("response", (res) => {
const { statusCode = 400 } = res;
if (statusCode < 200 || 300 <= statusCode) {
- reject(Object.assign(new config.ProviderError("Error response received from instance metadata service"), { statusCode }));
+ reject(Object.assign(new ProviderError2("Error response received from instance metadata service"), { statusCode }));
req.destroy();
}
const chunks = [];
@@ -33856,7 +33843,7 @@ var require_dist_cjs8 = __commonJS({
const requestOptions = await getCmdsUri({ logger: init.logger });
const credsResponse = JSON.parse(await requestFromEcsImds(timeout, requestOptions));
if (!isImdsCredentials(credsResponse)) {
- throw new config.CredentialsProviderError("Invalid response received from instance metadata service.", {
+ throw new CredentialsProviderError2("Invalid response received from instance metadata service.", {
logger: init.logger
});
}
@@ -33891,16 +33878,16 @@ var require_dist_cjs8 = __commonJS({
try {
parsed = new URL(process.env[ENV_CMDS_FULL_URI]);
} catch {
- throw new config.CredentialsProviderError(`${process.env[ENV_CMDS_FULL_URI]} is not a valid container metadata service URL`, { tryNextLink: false, logger: logger2 });
+ throw new CredentialsProviderError2(`${process.env[ENV_CMDS_FULL_URI]} is not a valid container metadata service URL`, { tryNextLink: false, logger: logger2 });
}
if (!parsed.hostname || !GREENGRASS_HOSTS.has(parsed.hostname)) {
- throw new config.CredentialsProviderError(`${parsed.hostname} is not a valid container metadata service hostname`, {
+ throw new CredentialsProviderError2(`${parsed.hostname} is not a valid container metadata service hostname`, {
tryNextLink: false,
logger: logger2
});
}
if (!parsed.protocol || !GREENGRASS_PROTOCOLS.has(parsed.protocol)) {
- throw new config.CredentialsProviderError(`${parsed.protocol} is not a valid container metadata service protocol`, {
+ throw new CredentialsProviderError2(`${parsed.protocol} is not a valid container metadata service protocol`, {
tryNextLink: false,
logger: logger2
});
@@ -33912,12 +33899,12 @@ var require_dist_cjs8 = __commonJS({
port: parsed.port ? parseInt(parsed.port, 10) : void 0
};
}
- throw new config.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${ENV_CMDS_RELATIVE_URI} or ${ENV_CMDS_FULL_URI} environment variable is set`, {
+ throw new CredentialsProviderError2(`The container metadata credential provider cannot be used unless the ${ENV_CMDS_RELATIVE_URI} or ${ENV_CMDS_FULL_URI} environment variable is set`, {
tryNextLink: false,
logger: logger2
});
};
- var InstanceMetadataV1FallbackError = class _InstanceMetadataV1FallbackError extends config.CredentialsProviderError {
+ var InstanceMetadataV1FallbackError = class _InstanceMetadataV1FallbackError extends CredentialsProviderError2 {
tryNextLink;
name = "InstanceMetadataV1FallbackError";
constructor(message, tryNextLink = true) {
@@ -33926,11 +33913,11 @@ var require_dist_cjs8 = __commonJS({
Object.setPrototypeOf(this, _InstanceMetadataV1FallbackError.prototype);
}
};
- exports2.Endpoint = void 0;
- (function(Endpoint) {
- Endpoint["IPv4"] = "http://169.254.169.254";
- Endpoint["IPv6"] = "http://[fd00:ec2::254]";
- })(exports2.Endpoint || (exports2.Endpoint = {}));
+ var Endpoint;
+ (function(Endpoint2) {
+ Endpoint2["IPv4"] = "http://169.254.169.254";
+ Endpoint2["IPv6"] = "http://[fd00:ec2::254]";
+ })(Endpoint || (Endpoint = {}));
var ENV_ENDPOINT_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT";
var CONFIG_ENDPOINT_NAME = "ec2_metadata_service_endpoint";
var ENDPOINT_CONFIG_OPTIONS = {
@@ -33950,15 +33937,15 @@ var require_dist_cjs8 = __commonJS({
configFileSelector: (profile) => profile[CONFIG_ENDPOINT_MODE_NAME],
default: EndpointMode.IPv4
};
- var getInstanceMetadataEndpoint = async () => protocols2.parseUrl(await getFromEndpointConfig() || await getFromEndpointModeConfig());
- var getFromEndpointConfig = async () => config.loadConfig(ENDPOINT_CONFIG_OPTIONS)();
+ var getInstanceMetadataEndpoint = async () => parseUrl3(await getFromEndpointConfig() || await getFromEndpointModeConfig());
+ var getFromEndpointConfig = async () => loadConfig2(ENDPOINT_CONFIG_OPTIONS)();
var getFromEndpointModeConfig = async () => {
- const endpointMode = await config.loadConfig(ENDPOINT_MODE_CONFIG_OPTIONS)();
+ const endpointMode = await loadConfig2(ENDPOINT_MODE_CONFIG_OPTIONS)();
switch (endpointMode) {
case EndpointMode.IPv4:
- return exports2.Endpoint.IPv4;
+ return Endpoint.IPv4;
case EndpointMode.IPv6:
- return exports2.Endpoint.IPv6;
+ return Endpoint.IPv6;
default:
throw new Error(`Unsupported endpoint mode: ${endpointMode}. Select from ${Object.values(EndpointMode)}`);
}
@@ -34015,12 +34002,12 @@ For more information, please visit: ` + STATIC_STABILITY_DOC_URL);
if (isImdsV1Fallback) {
let fallbackBlockedFromProfile = false;
let fallbackBlockedFromProcessEnv = false;
- const configValue = await config.loadConfig({
+ const configValue = await loadConfig2({
environmentVariableSelector: (env2) => {
const envValue = env2[AWS_EC2_METADATA_V1_DISABLED];
fallbackBlockedFromProcessEnv = !!envValue && envValue !== "false";
if (envValue === void 0) {
- throw new config.CredentialsProviderError(`${AWS_EC2_METADATA_V1_DISABLED} not set in env, checking config file next.`, { logger: init.logger });
+ throw new CredentialsProviderError2(`${AWS_EC2_METADATA_V1_DISABLED} not set in env, checking config file next.`, { logger: init.logger });
}
return fallbackBlockedFromProcessEnv;
},
@@ -34114,7 +34101,7 @@ For more information, please visit: ` + STATIC_STABILITY_DOC_URL);
path: IMDS_PATH + profile
})).toString());
if (!isImdsCredentials(credentialsResponse)) {
- throw new config.CredentialsProviderError("Invalid response received from instance metadata service.", {
+ throw new CredentialsProviderError2("Invalid response received from instance metadata service.", {
logger: init.logger
});
}
@@ -34125,6 +34112,7 @@ For more information, please visit: ` + STATIC_STABILITY_DOC_URL);
exports2.ENV_CMDS_AUTH_TOKEN = ENV_CMDS_AUTH_TOKEN;
exports2.ENV_CMDS_FULL_URI = ENV_CMDS_FULL_URI;
exports2.ENV_CMDS_RELATIVE_URI = ENV_CMDS_RELATIVE_URI;
+ exports2.Endpoint = Endpoint;
exports2.fromContainerMetadata = fromContainerMetadata;
exports2.fromInstanceMetadata = fromInstanceMetadata;
exports2.getInstanceMetadataEndpoint = getInstanceMetadataEndpoint;
@@ -34986,14 +34974,11 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
// node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js
var require_checkUrl = __commonJS({
"node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js"(exports2) {
- "use strict";
- Object.defineProperty(exports2, "__esModule", { value: true });
- exports2.checkUrl = void 0;
- var config_1 = (init_config2(), __toCommonJS(config_exports));
+ var { CredentialsProviderError: CredentialsProviderError2 } = (init_config2(), __toCommonJS(config_exports));
var ECS_CONTAINER_HOST = "169.254.170.2";
var EKS_CONTAINER_HOST_IPv4 = "169.254.170.23";
var EKS_CONTAINER_HOST_IPv6 = "[fd00:ec2::23]";
- var checkUrl = (url, logger2) => {
+ exports2.checkUrl = (url, logger2) => {
if (url.protocol === "https:") {
return;
}
@@ -35017,28 +35002,23 @@ var require_checkUrl = __commonJS({
return;
}
}
- throw new config_1.CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:
+ throw new CredentialsProviderError2(`URL not accepted. It must either be HTTPS or match one of the following:
- loopback CIDR 127.0.0.0/8 or [::1/128]
- ECS container host 169.254.170.2
- EKS container host 169.254.170.23 or [fd00:ec2::23]`, { logger: logger2 });
};
- exports2.checkUrl = checkUrl;
}
});
// node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js
var require_requestHelpers = __commonJS({
"node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js"(exports2) {
- "use strict";
- Object.defineProperty(exports2, "__esModule", { value: true });
- exports2.createGetRequest = createGetRequest;
- exports2.getCredentials = getCredentials;
- var config_1 = (init_config2(), __toCommonJS(config_exports));
- var protocols_1 = (init_protocols(), __toCommonJS(protocols_exports));
- var serde_1 = (init_serde(), __toCommonJS(serde_exports));
- var serde_2 = (init_serde(), __toCommonJS(serde_exports));
- function createGetRequest(url) {
- return new protocols_1.HttpRequest({
+ var { CredentialsProviderError: CredentialsProviderError2 } = (init_config2(), __toCommonJS(config_exports));
+ var { HttpRequest: HttpRequest2 } = (init_protocols(), __toCommonJS(protocols_exports));
+ var { parseRfc3339DateTime: parseRfc3339DateTime2 } = (init_serde(), __toCommonJS(serde_exports));
+ var { sdkStreamMixin: sdkStreamMixin3 } = (init_serde(), __toCommonJS(serde_exports));
+ exports2.createGetRequest = function createGetRequest(url) {
+ return new HttpRequest2({
protocol: url.protocol,
hostname: url.hostname,
port: Number(url.port),
@@ -35049,20 +35029,20 @@ var require_requestHelpers = __commonJS({
}, {}),
fragment: url.hash
});
- }
- async function getCredentials(response, logger2) {
- const stream = (0, serde_2.sdkStreamMixin)(response.body);
+ };
+ exports2.getCredentials = async function getCredentials(response, logger2) {
+ const stream = sdkStreamMixin3(response.body);
const str = await stream.transformToString();
if (response.statusCode === 200) {
const parsed = JSON.parse(str);
if (typeof parsed.AccessKeyId !== "string" || typeof parsed.SecretAccessKey !== "string" || typeof parsed.Token !== "string" || typeof parsed.Expiration !== "string") {
- throw new config_1.CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }", { logger: logger2 });
+ throw new CredentialsProviderError2("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }", { logger: logger2 });
}
return {
accessKeyId: parsed.AccessKeyId,
secretAccessKey: parsed.SecretAccessKey,
sessionToken: parsed.Token,
- expiration: (0, serde_1.parseRfc3339DateTime)(parsed.Expiration)
+ expiration: parseRfc3339DateTime2(parsed.Expiration)
};
}
if (response.statusCode >= 400 && response.statusCode < 500) {
@@ -35071,23 +35051,20 @@ var require_requestHelpers = __commonJS({
parsedBody = JSON.parse(str);
} catch (e5) {
}
- throw Object.assign(new config_1.CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger: logger2 }), {
+ throw Object.assign(new CredentialsProviderError2(`Server responded with status: ${response.statusCode}`, { logger: logger2 }), {
Code: parsedBody.Code,
Message: parsedBody.Message
});
}
- throw new config_1.CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger: logger2 });
- }
+ throw new CredentialsProviderError2(`Server responded with status: ${response.statusCode}`, { logger: logger2 });
+ };
}
});
// node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/retry-wrapper.js
var require_retry_wrapper = __commonJS({
"node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/retry-wrapper.js"(exports2) {
- "use strict";
- Object.defineProperty(exports2, "__esModule", { value: true });
- exports2.retryWrapper = void 0;
- var retryWrapper = (toRetry, maxRetries, delayMs) => {
+ exports2.retryWrapper = (toRetry, maxRetries, delayMs) => {
return async () => {
for (let i5 = 0; i5 < maxRetries; ++i5) {
try {
@@ -35099,30 +35076,25 @@ var require_retry_wrapper = __commonJS({
return await toRetry();
};
};
- exports2.retryWrapper = retryWrapper;
}
});
// node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js
var require_fromHttp = __commonJS({
"node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js"(exports2) {
- "use strict";
- Object.defineProperty(exports2, "__esModule", { value: true });
- exports2.fromHttp = void 0;
- var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
- var client_1 = (init_client3(), __toCommonJS(client_exports2));
- var config_1 = (init_config2(), __toCommonJS(config_exports));
- var node_http_handler_1 = require_dist_cjs9();
- var promises_1 = tslib_1.__importDefault(require("node:fs/promises"));
- var checkUrl_1 = require_checkUrl();
- var requestHelpers_1 = require_requestHelpers();
- var retry_wrapper_1 = require_retry_wrapper();
+ var { setCredentialFeature: setCredentialFeature2 } = (init_client3(), __toCommonJS(client_exports2));
+ var { CredentialsProviderError: CredentialsProviderError2 } = (init_config2(), __toCommonJS(config_exports));
+ var { NodeHttpHandler: NodeHttpHandler2 } = require_dist_cjs9();
+ var fs4 = require("node:fs/promises");
+ var { checkUrl } = require_checkUrl();
+ var { createGetRequest, getCredentials } = require_requestHelpers();
+ var { retryWrapper } = require_retry_wrapper();
var AWS_CONTAINER_CREDENTIALS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";
var DEFAULT_LINK_LOCAL_HOST = "http://169.254.170.2";
var AWS_CONTAINER_CREDENTIALS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI";
var AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE = "AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE";
var AWS_CONTAINER_AUTHORIZATION_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN";
- var fromHttp = (options = {}) => {
+ exports2.fromHttp = (options = {}) => {
options.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");
let host;
const relative = options.awsContainerCredentialsRelativeUri ?? process.env[AWS_CONTAINER_CREDENTIALS_RELATIVE_URI];
@@ -35143,25 +35115,25 @@ var require_fromHttp = __commonJS({
} else if (relative) {
host = `${DEFAULT_LINK_LOCAL_HOST}${relative}`;
} else {
- throw new config_1.CredentialsProviderError(`No HTTP credential provider host provided.
+ throw new CredentialsProviderError2(`No HTTP credential provider host provided.
Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`, { logger: options.logger });
}
const url = new URL(host);
- (0, checkUrl_1.checkUrl)(url, options.logger);
- const requestHandler = node_http_handler_1.NodeHttpHandler.create({ connectionTimeout: options.timeout ?? 1e3 });
+ checkUrl(url, options.logger);
+ const requestHandler = NodeHttpHandler2.create({ connectionTimeout: options.timeout ?? 1e3 });
const requestTimeout = options.timeout ?? 1e3;
- const provider = (0, retry_wrapper_1.retryWrapper)(async () => {
- const request = (0, requestHelpers_1.createGetRequest)(url);
+ const provider = retryWrapper(async () => {
+ const request = createGetRequest(url);
if (token) {
request.headers.Authorization = token;
} else if (tokenFile) {
- request.headers.Authorization = (await promises_1.default.readFile(tokenFile)).toString();
+ request.headers.Authorization = (await fs4.readFile(tokenFile)).toString();
}
try {
const result = await requestHandler.handle(request, { requestTimeout });
- return (0, requestHelpers_1.getCredentials)(result.response).then((creds) => (0, client_1.setCredentialFeature)(creds, "CREDENTIALS_HTTP", "z"));
+ return getCredentials(result.response).then((creds) => setCredentialFeature2(creds, "CREDENTIALS_HTTP", "z"));
} catch (e5) {
- throw new config_1.CredentialsProviderError(String(e5), { logger: options.logger });
+ throw new CredentialsProviderError2(String(e5), { logger: options.logger });
}
}, options.maxRetries ?? 3, options.timeout ?? 1e3);
return async () => {
@@ -35172,16 +35144,14 @@ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
}
};
};
- exports2.fromHttp = fromHttp;
}
});
// node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js
var require_dist_cjs10 = __commonJS({
"node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js"(exports2) {
- "use strict";
- var fromHttp = require_fromHttp();
- exports2.fromHttp = fromHttp.fromHttp;
+ var { fromHttp } = require_fromHttp();
+ exports2.fromHttp = fromHttp;
}
});
@@ -35267,20 +35237,21 @@ var init_package = __esm({
"node_modules/@aws-sdk/nested-clients/package.json"() {
package_default = {
name: "@aws-sdk/nested-clients",
- version: "3.997.18",
+ version: "3.997.21",
description: "Nested clients for AWS SDK packages.",
main: "./dist-cjs/index.js",
module: "./dist-es/index.js",
types: "./dist-types/index.d.ts",
scripts: {
- build: "yarn lint && concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
+ build: "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
"build:cjs": "node ../../scripts/compilation/inline",
- "build:es": "tsc -p tsconfig.es.json",
+ "build:es": "premove dist-es && tsc -p tsconfig.es.json",
"build:include:deps": 'yarn g:turbo run build -F="$npm_package_name"',
- "build:types": "tsc -p tsconfig.types.json",
+ "build:types": "premove dist-types && tsc -p tsconfig.types.json",
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
- clean: "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
+ clean: "premove dist-cjs dist-es dist-types",
lint: "node ../../scripts/validation/submodules-linter.js",
+ prebuild: "yarn lint",
test: "yarn g:vitest run",
"test:watch": "yarn g:vitest watch"
},
@@ -35296,9 +35267,9 @@ var init_package = __esm({
dependencies: {
"@aws-crypto/sha256-browser": "5.2.0",
"@aws-crypto/sha256-js": "5.2.0",
- "@aws-sdk/core": "^3.974.19",
- "@aws-sdk/signature-v4-multi-region": "^3.996.33",
- "@aws-sdk/types": "^3.973.12",
+ "@aws-sdk/core": "^3.974.21",
+ "@aws-sdk/signature-v4-multi-region": "^3.996.35",
+ "@aws-sdk/types": "^3.973.13",
"@smithy/core": "^3.24.6",
"@smithy/fetch-http-handler": "^5.4.6",
"@smithy/node-http-handler": "^4.7.6",
@@ -35711,8 +35682,8 @@ function decodeListIndefinite(at, to) {
return list2;
}
const item = decode(at, to);
- const n3 = _offset;
- at += n3;
+ const n4 = _offset;
+ at += n4;
list2.push(item);
}
throw new Error("expected break marker.");
@@ -35927,19 +35898,19 @@ function encode(_input) {
const nonNegative = input >= 0;
const major = nonNegative ? majorUint64 : majorNegativeInt64;
const value = nonNegative ? input : -input - BigInt(1);
- const n3 = Number(value);
- if (n3 < 24) {
- data[cursor++] = major << 5 | n3;
- } else if (n3 < 256) {
+ const n4 = Number(value);
+ if (n4 < 24) {
+ data[cursor++] = major << 5 | n4;
+ } else if (n4 < 256) {
data[cursor++] = major << 5 | 24;
- data[cursor++] = n3;
- } else if (n3 < 65536) {
+ data[cursor++] = n4;
+ } else if (n4 < 65536) {
data[cursor++] = major << 5 | extendedFloat16;
- data[cursor++] = n3 >> 8;
- data[cursor++] = n3 & 255;
- } else if (n3 < 4294967296) {
+ data[cursor++] = n4 >> 8;
+ data[cursor++] = n4 & 255;
+ } else if (n4 < 4294967296) {
data[cursor++] = major << 5 | extendedFloat32;
- dataView2.setUint32(cursor, n3);
+ dataView2.setUint32(cursor, n4);
cursor += 4;
} else if (value < BigInt("18446744073709551616")) {
data[cursor++] = major << 5 | extendedFloat64;
@@ -37507,42 +37478,42 @@ var require_fxp = __commonJS({
"node_modules/fast-xml-parser/lib/fxp.cjs"(exports2, module2) {
(() => {
"use strict";
- var t = { d: (e6, n4) => {
- for (var i6 in n4) t.o(n4, i6) && !t.o(e6, i6) && Object.defineProperty(e6, i6, { enumerable: true, get: n4[i6] });
+ var t = { d: (e6, n5) => {
+ for (var i6 in n5) t.o(n5, i6) && !t.o(e6, i6) && Object.defineProperty(e6, i6, { enumerable: true, get: n5[i6] });
}, o: (t2, e6) => Object.prototype.hasOwnProperty.call(t2, e6), r: (t2) => {
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t2, "__esModule", { value: true });
} }, e5 = {};
t.r(e5), t.d(e5, { XMLBuilder: () => Xt, XMLParser: () => Tt, XMLValidator: () => Yt });
- const n3 = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", i5 = new RegExp("^[" + n3 + "][" + n3 + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");
+ const n4 = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", i5 = new RegExp("^[" + n4 + "][" + n4 + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");
function s(t2, e6) {
- const n4 = [];
+ const n5 = [];
let i6 = e6.exec(t2);
for (; i6; ) {
const s2 = [];
s2.startIndex = e6.lastIndex - i6[0].length;
const r6 = i6.length;
for (let t3 = 0; t3 < r6; t3++) s2.push(i6[t3]);
- n4.push(s2), i6 = e6.exec(t2);
+ n5.push(s2), i6 = e6.exec(t2);
}
- return n4;
+ return n5;
}
const r5 = function(t2) {
return !(null == i5.exec(t2));
- }, o2 = ["hasOwnProperty", "toString", "valueOf", "__defineGetter__", "__defineSetter__", "__lookupGetter__", "__lookupSetter__"], a5 = ["__proto__", "constructor", "prototype"], h5 = { allowBooleanAttributes: false, unpairedTags: [] };
+ }, o3 = ["hasOwnProperty", "toString", "valueOf", "__defineGetter__", "__defineSetter__", "__lookupGetter__", "__lookupSetter__"], a5 = ["__proto__", "constructor", "prototype"], h5 = { allowBooleanAttributes: false, unpairedTags: [] };
function l3(t2, e6) {
e6 = Object.assign({}, h5, e6);
- const n4 = [];
+ const n5 = [];
let i6 = false, s2 = false;
"\uFEFF" === t2[0] && (t2 = t2.substr(1));
for (let r6 = 0; r6 < t2.length; r6++) if ("<" === t2[r6] && "?" === t2[r6 + 1]) {
- if (r6 += 2, r6 = p2(t2, r6), r6.err) return r6;
+ if (r6 += 2, r6 = p3(t2, r6), r6.err) return r6;
} else {
if ("<" !== t2[r6]) {
if (u(t2[r6])) continue;
return b6("InvalidChar", "char '" + t2[r6] + "' is not expected.", w(t2, r6));
}
{
- let o3 = r6;
+ let o4 = r6;
if (r6++, "!" === t2[r6]) {
r6 = c5(t2, r6);
continue;
@@ -37560,28 +37531,28 @@ var require_fxp = __commonJS({
if (false === l4) return b6("InvalidAttr", "Attributes for '" + h6 + "' have open quote.", w(t2, r6));
let d6 = l4.value;
if (r6 = l4.index, "/" === d6[d6.length - 1]) {
- const n5 = r6 - d6.length;
+ const n6 = r6 - d6.length;
d6 = d6.substring(0, d6.length - 1);
const s3 = x(d6, e6);
- if (true !== s3) return b6(s3.err.code, s3.err.msg, w(t2, n5 + s3.err.line));
+ if (true !== s3) return b6(s3.err.code, s3.err.msg, w(t2, n6 + s3.err.line));
i6 = true;
} else if (a6) {
if (!l4.tagClosed) return b6("InvalidTag", "Closing tag '" + h6 + "' doesn't have proper closing.", w(t2, r6));
- if (d6.trim().length > 0) return b6("InvalidTag", "Closing tag '" + h6 + "' can't have attributes or invalid starting.", w(t2, o3));
- if (0 === n4.length) return b6("InvalidTag", "Closing tag '" + h6 + "' has not been opened.", w(t2, o3));
+ if (d6.trim().length > 0) return b6("InvalidTag", "Closing tag '" + h6 + "' can't have attributes or invalid starting.", w(t2, o4));
+ if (0 === n5.length) return b6("InvalidTag", "Closing tag '" + h6 + "' has not been opened.", w(t2, o4));
{
- const e7 = n4.pop();
+ const e7 = n5.pop();
if (h6 !== e7.tagName) {
- let n5 = w(t2, e7.tagStartPos);
- return b6("InvalidTag", "Expected closing tag '" + e7.tagName + "' (opened in line " + n5.line + ", col " + n5.col + ") instead of closing tag '" + h6 + "'.", w(t2, o3));
+ let n6 = w(t2, e7.tagStartPos);
+ return b6("InvalidTag", "Expected closing tag '" + e7.tagName + "' (opened in line " + n6.line + ", col " + n6.col + ") instead of closing tag '" + h6 + "'.", w(t2, o4));
}
- 0 == n4.length && (s2 = true);
+ 0 == n5.length && (s2 = true);
}
} else {
const a7 = x(d6, e6);
if (true !== a7) return b6(a7.err.code, a7.err.msg, w(t2, r6 - d6.length + a7.err.line));
if (true === s2) return b6("InvalidXml", "Multiple possible root nodes found.", w(t2, r6));
- -1 !== e6.unpairedTags.indexOf(h6) || n4.push({ tagName: h6, tagStartPos: o3 }), i6 = true;
+ -1 !== e6.unpairedTags.indexOf(h6) || n5.push({ tagName: h6, tagStartPos: o4 }), i6 = true;
}
for (r6++; r6 < t2.length; r6++) if ("<" === t2[r6]) {
if ("!" === t2[r6 + 1]) {
@@ -37589,7 +37560,7 @@ var require_fxp = __commonJS({
continue;
}
if ("?" !== t2[r6 + 1]) break;
- if (r6 = p2(t2, ++r6), r6.err) return r6;
+ if (r6 = p3(t2, ++r6), r6.err) return r6;
} else if ("&" === t2[r6]) {
const e7 = N(t2, r6);
if (-1 == e7) return b6("InvalidChar", "char '&' is not expected.", w(t2, r6));
@@ -37599,15 +37570,15 @@ var require_fxp = __commonJS({
}
}
}
- return i6 ? 1 == n4.length ? b6("InvalidTag", "Unclosed tag '" + n4[0].tagName + "'.", w(t2, n4[0].tagStartPos)) : !(n4.length > 0) || b6("InvalidXml", "Invalid '" + JSON.stringify(n4.map((t3) => t3.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", { line: 1, col: 1 }) : b6("InvalidXml", "Start tag expected.", 1);
+ return i6 ? 1 == n5.length ? b6("InvalidTag", "Unclosed tag '" + n5[0].tagName + "'.", w(t2, n5[0].tagStartPos)) : !(n5.length > 0) || b6("InvalidXml", "Invalid '" + JSON.stringify(n5.map((t3) => t3.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", { line: 1, col: 1 }) : b6("InvalidXml", "Start tag expected.", 1);
}
function u(t2) {
return " " === t2 || " " === t2 || "\n" === t2 || "\r" === t2;
}
- function p2(t2, e6) {
- const n4 = e6;
+ function p3(t2, e6) {
+ const n5 = e6;
for (; e6 < t2.length; e6++) if ("?" == t2[e6] || " " == t2[e6]) {
- const i6 = t2.substr(n4, e6 - n4);
+ const i6 = t2.substr(n5, e6 - n5);
if (e6 > 5 && "xml" === i6) return b6("InvalidXml", "XML declaration allowed only at the start of the document.", w(t2, e6));
if ("?" == t2[e6] && ">" == t2[e6 + 1]) {
e6++;
@@ -37624,9 +37595,9 @@ var require_fxp = __commonJS({
break;
}
} else if (t2.length > e6 + 8 && "D" === t2[e6 + 1] && "O" === t2[e6 + 2] && "C" === t2[e6 + 3] && "T" === t2[e6 + 4] && "Y" === t2[e6 + 5] && "P" === t2[e6 + 6] && "E" === t2[e6 + 7]) {
- let n4 = 1;
- for (e6 += 8; e6 < t2.length; e6++) if ("<" === t2[e6]) n4++;
- else if (">" === t2[e6] && (n4--, 0 === n4)) break;
+ let n5 = 1;
+ for (e6 += 8; e6 < t2.length; e6++) if ("<" === t2[e6]) n5++;
+ else if (">" === t2[e6] && (n5--, 0 === n5)) break;
} else if (t2.length > e6 + 9 && "[" === t2[e6 + 1] && "C" === t2[e6 + 2] && "D" === t2[e6 + 3] && "A" === t2[e6 + 4] && "T" === t2[e6 + 5] && "A" === t2[e6 + 6] && "[" === t2[e6 + 7]) {
for (e6 += 8; e6 < t2.length; e6++) if ("]" === t2[e6] && "]" === t2[e6 + 1] && ">" === t2[e6 + 2]) {
e6 += 2;
@@ -37637,27 +37608,27 @@ var require_fxp = __commonJS({
}
const d5 = '"', f5 = "'";
function g5(t2, e6) {
- let n4 = "", i6 = "", s2 = false;
+ let n5 = "", i6 = "", s2 = false;
for (; e6 < t2.length; e6++) {
if (t2[e6] === d5 || t2[e6] === f5) "" === i6 ? i6 = t2[e6] : i6 !== t2[e6] || (i6 = "");
else if (">" === t2[e6] && "" === i6) {
s2 = true;
break;
}
- n4 += t2[e6];
+ n5 += t2[e6];
}
- return "" === i6 && { value: n4, index: e6, tagClosed: s2 };
+ return "" === i6 && { value: n5, index: e6, tagClosed: s2 };
}
const m3 = new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`, "g");
function x(t2, e6) {
- const n4 = s(t2, m3), i6 = {};
- for (let t3 = 0; t3 < n4.length; t3++) {
- if (0 === n4[t3][1].length) return b6("InvalidAttr", "Attribute '" + n4[t3][2] + "' has no space in starting.", v(n4[t3]));
- if (void 0 !== n4[t3][3] && void 0 === n4[t3][4]) return b6("InvalidAttr", "Attribute '" + n4[t3][2] + "' is without value.", v(n4[t3]));
- if (void 0 === n4[t3][3] && !e6.allowBooleanAttributes) return b6("InvalidAttr", "boolean attribute '" + n4[t3][2] + "' is not allowed.", v(n4[t3]));
- const s2 = n4[t3][2];
- if (!y(s2)) return b6("InvalidAttr", "Attribute '" + s2 + "' is an invalid name.", v(n4[t3]));
- if (Object.prototype.hasOwnProperty.call(i6, s2)) return b6("InvalidAttr", "Attribute '" + s2 + "' is repeated.", v(n4[t3]));
+ const n5 = s(t2, m3), i6 = {};
+ for (let t3 = 0; t3 < n5.length; t3++) {
+ if (0 === n5[t3][1].length) return b6("InvalidAttr", "Attribute '" + n5[t3][2] + "' has no space in starting.", v(n5[t3]));
+ if (void 0 !== n5[t3][3] && void 0 === n5[t3][4]) return b6("InvalidAttr", "Attribute '" + n5[t3][2] + "' is without value.", v(n5[t3]));
+ if (void 0 === n5[t3][3] && !e6.allowBooleanAttributes) return b6("InvalidAttr", "boolean attribute '" + n5[t3][2] + "' is not allowed.", v(n5[t3]));
+ const s2 = n5[t3][2];
+ if (!y(s2)) return b6("InvalidAttr", "Attribute '" + s2 + "' is an invalid name.", v(n5[t3]));
+ if (Object.prototype.hasOwnProperty.call(i6, s2)) return b6("InvalidAttr", "Attribute '" + s2 + "' is repeated.", v(n5[t3]));
i6[s2] = 1;
}
return true;
@@ -37665,22 +37636,22 @@ var require_fxp = __commonJS({
function N(t2, e6) {
if (";" === t2[++e6]) return -1;
if ("#" === t2[e6]) return (function(t3, e7) {
- let n5 = /\d/;
- for ("x" === t3[e7] && (e7++, n5 = /[\da-fA-F]/); e7 < t3.length; e7++) {
+ let n6 = /\d/;
+ for ("x" === t3[e7] && (e7++, n6 = /[\da-fA-F]/); e7 < t3.length; e7++) {
if (";" === t3[e7]) return e7;
- if (!t3[e7].match(n5)) break;
+ if (!t3[e7].match(n6)) break;
}
return -1;
})(t2, ++e6);
- let n4 = 0;
- for (; e6 < t2.length; e6++, n4++) if (!(t2[e6].match(/\w/) && n4 < 20)) {
+ let n5 = 0;
+ for (; e6 < t2.length; e6++, n5++) if (!(t2[e6].match(/\w/) && n5 < 20)) {
if (";" === t2[e6]) break;
return -1;
}
return e6;
}
- function b6(t2, e6, n4) {
- return { err: { code: t2, msg: e6, line: n4.line || n4, col: n4.col } };
+ function b6(t2, e6, n5) {
+ return { err: { code: t2, msg: e6, line: n5.line || n5, col: n5.col } };
}
function y(t2) {
return r5(t2);
@@ -37689,31 +37660,31 @@ var require_fxp = __commonJS({
return r5(t2);
}
function w(t2, e6) {
- const n4 = t2.substring(0, e6).split(/\r?\n/);
- return { line: n4.length, col: n4[n4.length - 1].length + 1 };
+ const n5 = t2.substring(0, e6).split(/\r?\n/);
+ return { line: n5.length, col: n5[n5.length - 1].length + 1 };
}
function v(t2) {
return t2.startIndex + t2[1].length;
}
- const S = (t2) => o2.includes(t2) ? "__" + t2 : t2, _ = { preserveOrder: false, attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, removeNSPrefix: false, allowBooleanAttributes: false, parseTagValue: true, parseAttributeValue: false, trimValues: true, cdataPropName: false, numberParseOptions: { hex: true, leadingZeros: true, eNotation: true }, tagValueProcessor: function(t2, e6) {
+ const S = (t2) => o3.includes(t2) ? "__" + t2 : t2, _ = { preserveOrder: false, attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, removeNSPrefix: false, allowBooleanAttributes: false, parseTagValue: true, parseAttributeValue: false, trimValues: true, cdataPropName: false, numberParseOptions: { hex: true, leadingZeros: true, eNotation: true }, tagValueProcessor: function(t2, e6) {
return e6;
}, attributeValueProcessor: function(t2, e6) {
return e6;
- }, stopNodes: [], alwaysCreateTextNode: false, isArray: () => false, commentPropName: false, unpairedTags: [], processEntities: true, htmlEntities: false, entityDecoder: null, ignoreDeclaration: false, ignorePiTags: false, transformTagName: false, transformAttributeName: false, updateTag: function(t2, e6, n4) {
+ }, stopNodes: [], alwaysCreateTextNode: false, isArray: () => false, commentPropName: false, unpairedTags: [], processEntities: true, htmlEntities: false, entityDecoder: null, ignoreDeclaration: false, ignorePiTags: false, transformTagName: false, transformAttributeName: false, updateTag: function(t2, e6, n5) {
return t2;
}, captureMetaData: false, maxNestedTags: 100, strictReservedNames: true, jPath: true, onDangerousProperty: S };
function A(t2, e6) {
if ("string" != typeof t2) return;
- const n4 = t2.toLowerCase();
- if (o2.some((t3) => n4 === t3.toLowerCase())) throw new Error(`[SECURITY] Invalid ${e6}: "${t2}" is a reserved JavaScript keyword that could cause prototype pollution`);
- if (a5.some((t3) => n4 === t3.toLowerCase())) throw new Error(`[SECURITY] Invalid ${e6}: "${t2}" is a reserved JavaScript keyword that could cause prototype pollution`);
+ const n5 = t2.toLowerCase();
+ if (o3.some((t3) => n5 === t3.toLowerCase())) throw new Error(`[SECURITY] Invalid ${e6}: "${t2}" is a reserved JavaScript keyword that could cause prototype pollution`);
+ if (a5.some((t3) => n5 === t3.toLowerCase())) throw new Error(`[SECURITY] Invalid ${e6}: "${t2}" is a reserved JavaScript keyword that could cause prototype pollution`);
}
function T(t2, e6) {
return "boolean" == typeof t2 ? { enabled: t2, maxEntitySize: 1e4, maxExpansionDepth: 1e4, maxTotalExpansions: 1 / 0, maxExpandedLength: 1e5, maxEntityCount: 1e3, allowedTags: null, tagFilter: null, appliesTo: "all" } : "object" == typeof t2 && null !== t2 ? { enabled: false !== t2.enabled, maxEntitySize: Math.max(1, t2.maxEntitySize ?? 1e4), maxExpansionDepth: Math.max(1, t2.maxExpansionDepth ?? 1e4), maxTotalExpansions: Math.max(1, t2.maxTotalExpansions ?? 1 / 0), maxExpandedLength: Math.max(1, t2.maxExpandedLength ?? 1e5), maxEntityCount: Math.max(1, t2.maxEntityCount ?? 1e3), allowedTags: t2.allowedTags ?? null, tagFilter: t2.tagFilter ?? null, appliesTo: t2.appliesTo ?? "all" } : T(true);
}
const C = function(t2) {
- const e6 = Object.assign({}, _, t2), n4 = [{ value: e6.attributeNamePrefix, name: "attributeNamePrefix" }, { value: e6.attributesGroupName, name: "attributesGroupName" }, { value: e6.textNodeName, name: "textNodeName" }, { value: e6.cdataPropName, name: "cdataPropName" }, { value: e6.commentPropName, name: "commentPropName" }];
- for (const { value: t3, name: e7 } of n4) t3 && A(t3, e7);
+ const e6 = Object.assign({}, _, t2), n5 = [{ value: e6.attributeNamePrefix, name: "attributeNamePrefix" }, { value: e6.attributesGroupName, name: "attributesGroupName" }, { value: e6.textNodeName, name: "textNodeName" }, { value: e6.cdataPropName, name: "cdataPropName" }, { value: e6.commentPropName, name: "commentPropName" }];
+ for (const { value: t3, name: e7 } of n5) t3 && A(t3, e7);
return null === e6.onDangerousProperty && (e6.onDangerousProperty = S), e6.processEntities = T(e6.processEntities, e6.htmlEntities), e6.unpairedTagsSet = new Set(e6.unpairedTags), e6.stopNodes && Array.isArray(e6.stopNodes) && (e6.stopNodes = e6.stopNodes.map((t3) => "string" == typeof t3 && t3.startsWith("*.") ? ".." + t3.substring(2) : t3)), e6;
};
let P;
@@ -37737,45 +37708,45 @@ var require_fxp = __commonJS({
this.suppressValidationErr = !t2, this.options = t2;
}
readDocType(t2, e6) {
- const n4 = /* @__PURE__ */ Object.create(null);
+ const n5 = /* @__PURE__ */ Object.create(null);
let i6 = 0;
if ("O" !== t2[e6 + 3] || "C" !== t2[e6 + 4] || "T" !== t2[e6 + 5] || "Y" !== t2[e6 + 6] || "P" !== t2[e6 + 7] || "E" !== t2[e6 + 8]) throw new Error("Invalid Tag instead of DOCTYPE");
{
e6 += 9;
- let s2 = 1, r6 = false, o3 = false, a6 = "";
- for (; e6 < t2.length; e6++) if ("<" !== t2[e6] || o3) if (">" === t2[e6]) {
- if (o3 ? "-" === t2[e6 - 1] && "-" === t2[e6 - 2] && (o3 = false, s2--) : s2--, 0 === s2) break;
+ let s2 = 1, r6 = false, o4 = false, a6 = "";
+ for (; e6 < t2.length; e6++) if ("<" !== t2[e6] || o4) if (">" === t2[e6]) {
+ if (o4 ? "-" === t2[e6 - 1] && "-" === t2[e6 - 2] && (o4 = false, s2--) : s2--, 0 === s2) break;
} else "[" === t2[e6] ? r6 = true : a6 += t2[e6];
else {
if (r6 && D(t2, "!ENTITY", e6)) {
let s3, r7;
if (e6 += 7, [s3, r7, e6] = this.readEntityExp(t2, e6 + 1, this.suppressValidationErr), -1 === r7.indexOf("&")) {
if (false !== this.options.enabled && null != this.options.maxEntityCount && i6 >= this.options.maxEntityCount) throw new Error(`Entity count (${i6 + 1}) exceeds maximum allowed (${this.options.maxEntityCount})`);
- n4[s3] = r7, i6++;
+ n5[s3] = r7, i6++;
}
} else if (r6 && D(t2, "!ELEMENT", e6)) {
e6 += 8;
- const { index: n5 } = this.readElementExp(t2, e6 + 1);
- e6 = n5;
+ const { index: n6 } = this.readElementExp(t2, e6 + 1);
+ e6 = n6;
} else if (r6 && D(t2, "!ATTLIST", e6)) e6 += 8;
else if (r6 && D(t2, "!NOTATION", e6)) {
e6 += 9;
- const { index: n5 } = this.readNotationExp(t2, e6 + 1, this.suppressValidationErr);
- e6 = n5;
+ const { index: n6 } = this.readNotationExp(t2, e6 + 1, this.suppressValidationErr);
+ e6 = n6;
} else {
if (!D(t2, "!--", e6)) throw new Error("Invalid DOCTYPE");
- o3 = true;
+ o4 = true;
}
s2++, a6 = "";
}
if (0 !== s2) throw new Error("Unclosed DOCTYPE");
}
- return { entities: n4, i: e6 };
+ return { entities: n5, i: e6 };
}
readEntityExp(t2, e6) {
- const n4 = e6 = I(t2, e6);
+ const n5 = e6 = I(t2, e6);
for (; e6 < t2.length && !/\s/.test(t2[e6]) && '"' !== t2[e6] && "'" !== t2[e6]; ) e6++;
- let i6 = t2.substring(n4, e6);
+ let i6 = t2.substring(n5, e6);
if (M(i6), e6 = I(t2, e6), !this.suppressValidationErr) {
if ("SYSTEM" === t2.substring(e6, e6 + 6).toUpperCase()) throw new Error("External entities are not supported");
if ("%" === t2[e6]) throw new Error("Parameter entities are not supported");
@@ -37785,82 +37756,82 @@ var require_fxp = __commonJS({
return [i6, s2, --e6];
}
readNotationExp(t2, e6) {
- const n4 = e6 = I(t2, e6);
+ const n5 = e6 = I(t2, e6);
for (; e6 < t2.length && !/\s/.test(t2[e6]); ) e6++;
- let i6 = t2.substring(n4, e6);
+ let i6 = t2.substring(n5, e6);
!this.suppressValidationErr && M(i6), e6 = I(t2, e6);
const s2 = t2.substring(e6, e6 + 6).toUpperCase();
if (!this.suppressValidationErr && "SYSTEM" !== s2 && "PUBLIC" !== s2) throw new Error(`Expected SYSTEM or PUBLIC, found "${s2}"`);
e6 += s2.length, e6 = I(t2, e6);
- let r6 = null, o3 = null;
- if ("PUBLIC" === s2) [e6, r6] = this.readIdentifierVal(t2, e6, "publicIdentifier"), '"' !== t2[e6 = I(t2, e6)] && "'" !== t2[e6] || ([e6, o3] = this.readIdentifierVal(t2, e6, "systemIdentifier"));
- else if ("SYSTEM" === s2 && ([e6, o3] = this.readIdentifierVal(t2, e6, "systemIdentifier"), !this.suppressValidationErr && !o3)) throw new Error("Missing mandatory system identifier for SYSTEM notation");
- return { notationName: i6, publicIdentifier: r6, systemIdentifier: o3, index: --e6 };
+ let r6 = null, o4 = null;
+ if ("PUBLIC" === s2) [e6, r6] = this.readIdentifierVal(t2, e6, "publicIdentifier"), '"' !== t2[e6 = I(t2, e6)] && "'" !== t2[e6] || ([e6, o4] = this.readIdentifierVal(t2, e6, "systemIdentifier"));
+ else if ("SYSTEM" === s2 && ([e6, o4] = this.readIdentifierVal(t2, e6, "systemIdentifier"), !this.suppressValidationErr && !o4)) throw new Error("Missing mandatory system identifier for SYSTEM notation");
+ return { notationName: i6, publicIdentifier: r6, systemIdentifier: o4, index: --e6 };
}
- readIdentifierVal(t2, e6, n4) {
+ readIdentifierVal(t2, e6, n5) {
let i6 = "";
const s2 = t2[e6];
if ('"' !== s2 && "'" !== s2) throw new Error(`Expected quoted string, found "${s2}"`);
const r6 = ++e6;
for (; e6 < t2.length && t2[e6] !== s2; ) e6++;
- if (i6 = t2.substring(r6, e6), t2[e6] !== s2) throw new Error(`Unterminated ${n4} value`);
+ if (i6 = t2.substring(r6, e6), t2[e6] !== s2) throw new Error(`Unterminated ${n5} value`);
return [++e6, i6];
}
readElementExp(t2, e6) {
- const n4 = e6 = I(t2, e6);
+ const n5 = e6 = I(t2, e6);
for (; e6 < t2.length && !/\s/.test(t2[e6]); ) e6++;
- let i6 = t2.substring(n4, e6);
+ let i6 = t2.substring(n5, e6);
if (!this.suppressValidationErr && !r5(i6)) throw new Error(`Invalid element name: "${i6}"`);
let s2 = "";
if ("E" === t2[e6 = I(t2, e6)] && D(t2, "MPTY", e6)) e6 += 4;
else if ("A" === t2[e6] && D(t2, "NY", e6)) e6 += 2;
else if ("(" === t2[e6]) {
- const n5 = ++e6;
+ const n6 = ++e6;
for (; e6 < t2.length && ")" !== t2[e6]; ) e6++;
- if (s2 = t2.substring(n5, e6), ")" !== t2[e6]) throw new Error("Unterminated content model");
+ if (s2 = t2.substring(n6, e6), ")" !== t2[e6]) throw new Error("Unterminated content model");
} else if (!this.suppressValidationErr) throw new Error(`Invalid Element Expression, found "${t2[e6]}"`);
return { elementName: i6, contentModel: s2.trim(), index: e6 };
}
readAttlistExp(t2, e6) {
- let n4 = e6 = I(t2, e6);
+ let n5 = e6 = I(t2, e6);
for (; e6 < t2.length && !/\s/.test(t2[e6]); ) e6++;
- let i6 = t2.substring(n4, e6);
- for (M(i6), n4 = e6 = I(t2, e6); e6 < t2.length && !/\s/.test(t2[e6]); ) e6++;
- let s2 = t2.substring(n4, e6);
+ let i6 = t2.substring(n5, e6);
+ for (M(i6), n5 = e6 = I(t2, e6); e6 < t2.length && !/\s/.test(t2[e6]); ) e6++;
+ let s2 = t2.substring(n5, e6);
if (!M(s2)) throw new Error(`Invalid attribute name: "${s2}"`);
e6 = I(t2, e6);
let r6 = "";
if ("NOTATION" === t2.substring(e6, e6 + 8).toUpperCase()) {
if (r6 = "NOTATION", "(" !== t2[e6 = I(t2, e6 += 8)]) throw new Error(`Expected '(', found "${t2[e6]}"`);
e6++;
- let n5 = [];
+ let n6 = [];
for (; e6 < t2.length && ")" !== t2[e6]; ) {
const i7 = e6;
for (; e6 < t2.length && "|" !== t2[e6] && ")" !== t2[e6]; ) e6++;
let s3 = t2.substring(i7, e6);
if (s3 = s3.trim(), !M(s3)) throw new Error(`Invalid notation name: "${s3}"`);
- n5.push(s3), "|" === t2[e6] && (e6++, e6 = I(t2, e6));
+ n6.push(s3), "|" === t2[e6] && (e6++, e6 = I(t2, e6));
}
if (")" !== t2[e6]) throw new Error("Unterminated list of notations");
- e6++, r6 += " (" + n5.join("|") + ")";
+ e6++, r6 += " (" + n6.join("|") + ")";
} else {
- const n5 = e6;
+ const n6 = e6;
for (; e6 < t2.length && !/\s/.test(t2[e6]); ) e6++;
- r6 += t2.substring(n5, e6);
+ r6 += t2.substring(n6, e6);
const i7 = ["CDATA", "ID", "IDREF", "IDREFS", "ENTITY", "ENTITIES", "NMTOKEN", "NMTOKENS"];
if (!this.suppressValidationErr && !i7.includes(r6.toUpperCase())) throw new Error(`Invalid attribute type: "${r6}"`);
}
e6 = I(t2, e6);
- let o3 = "";
- return "#REQUIRED" === t2.substring(e6, e6 + 8).toUpperCase() ? (o3 = "#REQUIRED", e6 += 8) : "#IMPLIED" === t2.substring(e6, e6 + 7).toUpperCase() ? (o3 = "#IMPLIED", e6 += 7) : [e6, o3] = this.readIdentifierVal(t2, e6, "ATTLIST"), { elementName: i6, attributeName: s2, attributeType: r6, defaultValue: o3, index: e6 };
+ let o4 = "";
+ return "#REQUIRED" === t2.substring(e6, e6 + 8).toUpperCase() ? (o4 = "#REQUIRED", e6 += 8) : "#IMPLIED" === t2.substring(e6, e6 + 7).toUpperCase() ? (o4 = "#IMPLIED", e6 += 7) : [e6, o4] = this.readIdentifierVal(t2, e6, "ATTLIST"), { elementName: i6, attributeName: s2, attributeType: r6, defaultValue: o4, index: e6 };
}
}
const I = (t2, e6) => {
for (; e6 < t2.length && /\s/.test(t2[e6]); ) e6++;
return e6;
};
- function D(t2, e6, n4) {
- for (let i6 = 0; i6 < e6.length; i6++) if (e6[i6] !== t2[n4 + i6 + 1]) return false;
+ function D(t2, e6, n5) {
+ for (let i6 = 0; i6 < e6.length; i6++) if (e6[i6] !== t2[n5 + i6 + 1]) return false;
return true;
}
function M(t2) {
@@ -37891,8 +37862,8 @@ var require_fxp = __commonJS({
hasAttr(t2) {
const e6 = this._matcher.path;
if (0 === e6.length) return false;
- const n4 = e6[e6.length - 1];
- return void 0 !== n4.values && t2 in n4.values;
+ const n5 = e6[e6.length - 1];
+ return void 0 !== n5.values && t2 in n5.values;
}
getPosition() {
const t2 = this._matcher.path;
@@ -37925,16 +37896,16 @@ var require_fxp = __commonJS({
constructor(t2 = {}) {
this.separator = t2.separator || ".", this.path = [], this.siblingStacks = [], this._pathStringCache = null, this._view = new F(this);
}
- push(t2, e6 = null, n4 = null) {
+ push(t2, e6 = null, n5 = null) {
this._pathStringCache = null, this.path.length > 0 && (this.path[this.path.length - 1].values = void 0);
const i6 = this.path.length;
this.siblingStacks[i6] || (this.siblingStacks[i6] = /* @__PURE__ */ new Map());
- const s2 = this.siblingStacks[i6], r6 = n4 ? `${n4}:${t2}` : t2, o3 = s2.get(r6) || 0;
+ const s2 = this.siblingStacks[i6], r6 = n5 ? `${n5}:${t2}` : t2, o4 = s2.get(r6) || 0;
let a6 = 0;
for (const t3 of s2.values()) a6 += t3;
- s2.set(r6, o3 + 1);
- const h6 = { tag: t2, position: a6, counter: o3 };
- null != n4 && (h6.namespace = n4), null != e6 && (h6.values = e6), this.path.push(h6);
+ s2.set(r6, o4 + 1);
+ const h6 = { tag: t2, position: a6, counter: o4 };
+ null != n5 && (h6.namespace = n5), null != e6 && (h6.values = e6), this.path.push(h6);
}
pop() {
if (0 === this.path.length) return;
@@ -37975,13 +37946,13 @@ var require_fxp = __commonJS({
return this.path.length;
}
toString(t2, e6 = true) {
- const n4 = t2 || this.separator;
- if (n4 === this.separator && true === e6) {
+ const n5 = t2 || this.separator;
+ if (n5 === this.separator && true === e6) {
if (null !== this._pathStringCache) return this._pathStringCache;
- const t3 = this.path.map((t4) => t4.namespace ? `${t4.namespace}:${t4.tag}` : t4.tag).join(n4);
+ const t3 = this.path.map((t4) => t4.namespace ? `${t4.namespace}:${t4.tag}` : t4.tag).join(n5);
return this._pathStringCache = t3, t3;
}
- return this.path.map((t3) => e6 && t3.namespace ? `${t3.namespace}:${t3.tag}` : t3.tag).join(n4);
+ return this.path.map((t3) => e6 && t3.namespace ? `${t3.namespace}:${t3.tag}` : t3.tag).join(n5);
}
toArray() {
return this.path.map((t2) => t2.tag);
@@ -37999,35 +37970,35 @@ var require_fxp = __commonJS({
return true;
}
_matchWithDeepWildcard(t2) {
- let e6 = this.path.length - 1, n4 = t2.length - 1;
- for (; n4 >= 0 && e6 >= 0; ) {
- const i6 = t2[n4];
+ let e6 = this.path.length - 1, n5 = t2.length - 1;
+ for (; n5 >= 0 && e6 >= 0; ) {
+ const i6 = t2[n5];
if ("deep-wildcard" === i6.type) {
- if (n4--, n4 < 0) return true;
- const i7 = t2[n4];
+ if (n5--, n5 < 0) return true;
+ const i7 = t2[n5];
let s2 = false;
for (let t3 = e6; t3 >= 0; t3--) if (this._matchSegment(i7, this.path[t3], t3 === this.path.length - 1)) {
- e6 = t3 - 1, n4--, s2 = true;
+ e6 = t3 - 1, n5--, s2 = true;
break;
}
if (!s2) return false;
} else {
if (!this._matchSegment(i6, this.path[e6], e6 === this.path.length - 1)) return false;
- e6--, n4--;
+ e6--, n5--;
}
}
- return n4 < 0;
+ return n5 < 0;
}
- _matchSegment(t2, e6, n4) {
+ _matchSegment(t2, e6, n5) {
if ("*" !== t2.tag && t2.tag !== e6.tag) return false;
if (void 0 !== t2.namespace && "*" !== t2.namespace && t2.namespace !== e6.namespace) return false;
if (void 0 !== t2.attrName) {
- if (!n4) return false;
+ if (!n5) return false;
if (!e6.values || !(t2.attrName in e6.values)) return false;
if (void 0 !== t2.attrValue && String(e6.values[t2.attrName]) !== String(t2.attrValue)) return false;
}
if (void 0 !== t2.position) {
- if (!n4) return false;
+ if (!n5) return false;
const i6 = e6.counter ?? 0;
if ("first" === t2.position && 0 !== i6) return false;
if ("odd" === t2.position && i6 % 2 != 1) return false;
@@ -38050,38 +38021,38 @@ var require_fxp = __commonJS({
}
}
class G {
- constructor(t2, e6 = {}, n4) {
- this.pattern = t2, this.separator = e6.separator || ".", this.segments = this._parse(t2), this.data = n4, this._hasDeepWildcard = this.segments.some((t3) => "deep-wildcard" === t3.type), this._hasAttributeCondition = this.segments.some((t3) => void 0 !== t3.attrName), this._hasPositionSelector = this.segments.some((t3) => void 0 !== t3.position);
+ constructor(t2, e6 = {}, n5) {
+ this.pattern = t2, this.separator = e6.separator || ".", this.segments = this._parse(t2), this.data = n5, this._hasDeepWildcard = this.segments.some((t3) => "deep-wildcard" === t3.type), this._hasAttributeCondition = this.segments.some((t3) => void 0 !== t3.attrName), this._hasPositionSelector = this.segments.some((t3) => void 0 !== t3.position);
}
_parse(t2) {
const e6 = [];
- let n4 = 0, i6 = "";
- for (; n4 < t2.length; ) t2[n4] === this.separator ? n4 + 1 < t2.length && t2[n4 + 1] === this.separator ? (i6.trim() && (e6.push(this._parseSegment(i6.trim())), i6 = ""), e6.push({ type: "deep-wildcard" }), n4 += 2) : (i6.trim() && e6.push(this._parseSegment(i6.trim())), i6 = "", n4++) : (i6 += t2[n4], n4++);
+ let n5 = 0, i6 = "";
+ for (; n5 < t2.length; ) t2[n5] === this.separator ? n5 + 1 < t2.length && t2[n5 + 1] === this.separator ? (i6.trim() && (e6.push(this._parseSegment(i6.trim())), i6 = ""), e6.push({ type: "deep-wildcard" }), n5 += 2) : (i6.trim() && e6.push(this._parseSegment(i6.trim())), i6 = "", n5++) : (i6 += t2[n5], n5++);
return i6.trim() && e6.push(this._parseSegment(i6.trim())), e6;
}
_parseSegment(t2) {
const e6 = { type: "tag" };
- let n4 = null, i6 = t2;
+ let n5 = null, i6 = t2;
const s2 = t2.match(/^([^\[]+)(\[[^\]]*\])(.*)$/);
if (s2 && (i6 = s2[1] + s2[3], s2[2])) {
const t3 = s2[2].slice(1, -1);
- t3 && (n4 = t3);
+ t3 && (n5 = t3);
}
- let r6, o3, a6 = i6;
+ let r6, o4, a6 = i6;
if (i6.includes("::")) {
const e7 = i6.indexOf("::");
if (r6 = i6.substring(0, e7).trim(), a6 = i6.substring(e7 + 2).trim(), !r6) throw new Error(`Invalid namespace in pattern: ${t2}`);
}
let h6 = null;
if (a6.includes(":")) {
- const t3 = a6.lastIndexOf(":"), e7 = a6.substring(0, t3).trim(), n5 = a6.substring(t3 + 1).trim();
- ["first", "last", "odd", "even"].includes(n5) || /^nth\(\d+\)$/.test(n5) ? (o3 = e7, h6 = n5) : o3 = a6;
- } else o3 = a6;
- if (!o3) throw new Error(`Invalid segment pattern: ${t2}`);
- if (e6.tag = o3, r6 && (e6.namespace = r6), n4) if (n4.includes("=")) {
- const t3 = n4.indexOf("=");
- e6.attrName = n4.substring(0, t3).trim(), e6.attrValue = n4.substring(t3 + 1).trim();
- } else e6.attrName = n4.trim();
+ const t3 = a6.lastIndexOf(":"), e7 = a6.substring(0, t3).trim(), n6 = a6.substring(t3 + 1).trim();
+ ["first", "last", "odd", "even"].includes(n6) || /^nth\(\d+\)$/.test(n6) ? (o4 = e7, h6 = n6) : o4 = a6;
+ } else o4 = a6;
+ if (!o4) throw new Error(`Invalid segment pattern: ${t2}`);
+ if (e6.tag = o4, r6 && (e6.namespace = r6), n5) if (n5.includes("=")) {
+ const t3 = n5.indexOf("=");
+ e6.attrName = n5.substring(0, t3).trim(), e6.attrValue = n5.substring(t3 + 1).trim();
+ } else e6.attrName = n5.trim();
if (h6) {
const t3 = h6.match(/^nth\((\d+)\)$/);
t3 ? (e6.position = "nth", e6.positionValue = parseInt(t3[1], 10)) : e6.position = h6;
@@ -38112,10 +38083,10 @@ var require_fxp = __commonJS({
if (this._sealed) throw new TypeError("ExpressionSet is sealed. Create a new ExpressionSet to add more expressions.");
if (this._patterns.has(t2.pattern)) return this;
if (this._patterns.add(t2.pattern), t2.hasDeepWildcard()) return this._deepWildcards.push(t2), this;
- const e6 = t2.length, n4 = t2.segments[t2.segments.length - 1], i6 = n4?.tag;
+ const e6 = t2.length, n5 = t2.segments[t2.segments.length - 1], i6 = n5?.tag;
if (i6 && "*" !== i6) {
- const n5 = `${e6}:${i6}`;
- this._byDepthAndTag.has(n5) || this._byDepthAndTag.set(n5, []), this._byDepthAndTag.get(n5).push(t2);
+ const n6 = `${e6}:${i6}`;
+ this._byDepthAndTag.has(n6) || this._byDepthAndTag.set(n6, []), this._byDepthAndTag.get(n6).push(t2);
} else this._wildcardByDepth.has(e6) || this._wildcardByDepth.set(e6, []), this._wildcardByDepth.get(e6).push(t2);
return this;
}
@@ -38139,7 +38110,7 @@ var require_fxp = __commonJS({
return null !== this.findMatch(t2);
}
findMatch(t2) {
- const e6 = t2.getDepth(), n4 = `${e6}:${t2.getCurrentTag()}`, i6 = this._byDepthAndTag.get(n4);
+ const e6 = t2.getDepth(), n5 = `${e6}:${t2.getCurrentTag()}`, i6 = this._byDepthAndTag.get(n5);
if (i6) {
for (let e7 = 0; e7 < i6.length; e7++) if (t2.matches(i6[e7])) return i6[e7];
}
@@ -38159,12 +38130,12 @@ var require_fxp = __commonJS({
}
function q2(...t2) {
const e6 = /* @__PURE__ */ Object.create(null);
- for (const n4 of t2) if (n4) for (const t3 of Object.keys(n4)) {
- const i6 = n4[t3];
+ for (const n5 of t2) if (n5) for (const t3 of Object.keys(n5)) {
+ const i6 = n5[t3];
if ("string" == typeof i6) e6[t3] = i6;
else if (i6 && "object" == typeof i6 && void 0 !== i6.val) {
- const n5 = i6.val;
- "string" == typeof n5 && (e6[t3] = n5);
+ const n6 = i6.val;
+ "string" == typeof n6 && (e6[t3] = n6);
}
}
return e6;
@@ -38174,12 +38145,12 @@ var require_fxp = __commonJS({
constructor(t2 = {}) {
var e6;
this._limit = t2.limit || {}, this._maxTotalExpansions = this._limit.maxTotalExpansions || 0, this._maxExpandedLength = this._limit.maxExpandedLength || 0, this._postCheck = "function" == typeof t2.postCheck ? t2.postCheck : (t3) => t3, this._limitTiers = (e6 = this._limit.applyLimitsTo ?? Z) && e6 !== Z ? e6 === K ? /* @__PURE__ */ new Set([K]) : e6 === J ? /* @__PURE__ */ new Set([J]) : Array.isArray(e6) ? new Set(e6) : /* @__PURE__ */ new Set([Z]) : /* @__PURE__ */ new Set([Z]), this._numericAllowed = t2.numericAllowed ?? true, this._baseMap = q2(W, t2.namedEntities || null), this._externalMap = /* @__PURE__ */ Object.create(null), this._inputMap = /* @__PURE__ */ Object.create(null), this._totalExpansions = 0, this._expandedLength = 0, this._removeSet = new Set(t2.remove && Array.isArray(t2.remove) ? t2.remove : []), this._leaveSet = new Set(t2.leave && Array.isArray(t2.leave) ? t2.leave : []);
- const n4 = (function(t3) {
+ const n5 = (function(t3) {
if (!t3) return { xmlVersion: 1, onLevel: Q.allow, nullLevel: Q.remove };
- const e7 = 1.1 === t3.xmlVersion ? 1.1 : 1, n5 = Q[t3.onNCR] ?? Q.allow, i6 = Q[t3.nullNCR] ?? Q.remove;
- return { xmlVersion: e7, onLevel: n5, nullLevel: Math.max(i6, Q.remove) };
+ const e7 = 1.1 === t3.xmlVersion ? 1.1 : 1, n6 = Q[t3.onNCR] ?? Q.allow, i6 = Q[t3.nullNCR] ?? Q.remove;
+ return { xmlVersion: e7, onLevel: n6, nullLevel: Math.max(i6, Q.remove) };
})(t2.ncr);
- this._ncrXmlVersion = n4.xmlVersion, this._ncrOnLevel = n4.onLevel, this._ncrNullLevel = n4.nullLevel;
+ this._ncrXmlVersion = n5.xmlVersion, this._ncrOnLevel = n5.onLevel, this._ncrNullLevel = n5.nullLevel;
}
setExternalEntities(t2) {
if (t2) for (const e6 of Object.keys(t2)) z(e6);
@@ -38199,9 +38170,9 @@ var require_fxp = __commonJS({
}
decode(t2) {
if ("string" != typeof t2 || 0 === t2.length) return t2;
- const e6 = t2, n4 = [], i6 = t2.length;
+ const e6 = t2, n5 = [], i6 = t2.length;
let s2 = 0, r6 = 0;
- const o3 = this._maxTotalExpansions > 0, a6 = this._maxExpandedLength > 0, h6 = o3 || a6;
+ const o4 = this._maxTotalExpansions > 0, a6 = this._maxExpandedLength > 0, h6 = o4 || a6;
for (; r6 < i6; ) {
if (38 !== t2.charCodeAt(r6)) {
r6++;
@@ -38218,8 +38189,8 @@ var require_fxp = __commonJS({
r6++;
continue;
}
- let u2, p3;
- if (this._removeSet.has(l5)) u2 = "", void 0 === p3 && (p3 = Z);
+ let u2, p4;
+ if (this._removeSet.has(l5)) u2 = "", void 0 === p4 && (p4 = Z);
else {
if (this._leaveSet.has(l5)) {
r6++;
@@ -38231,15 +38202,15 @@ var require_fxp = __commonJS({
r6++;
continue;
}
- u2 = t3, p3 = J;
+ u2 = t3, p4 = J;
} else {
const t3 = this._resolveName(l5);
- u2 = t3?.value, p3 = t3?.tier;
+ u2 = t3?.value, p4 = t3?.tier;
}
}
if (void 0 !== u2) {
- if (r6 > s2 && n4.push(t2.slice(s2, r6)), n4.push(u2), s2 = e7 + 1, r6 = s2, h6 && this._tierCounts(p3)) {
- if (o3 && (this._totalExpansions++, this._totalExpansions > this._maxTotalExpansions)) throw new Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);
+ if (r6 > s2 && n5.push(t2.slice(s2, r6)), n5.push(u2), s2 = e7 + 1, r6 = s2, h6 && this._tierCounts(p4)) {
+ if (o4 && (this._totalExpansions++, this._totalExpansions > this._maxTotalExpansions)) throw new Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);
if (a6) {
const t3 = u2.length - (l5.length + 2);
if (t3 > 0 && (this._expandedLength += t3, this._expandedLength > this._maxExpandedLength)) throw new Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`);
@@ -38247,8 +38218,8 @@ var require_fxp = __commonJS({
}
} else r6++;
}
- s2 < i6 && n4.push(t2.slice(s2));
- const l4 = 0 === n4.length ? t2 : n4.join("");
+ s2 < i6 && n5.push(t2.slice(s2));
+ const l4 = 0 === n5.length ? t2 : n5.join("");
return this._postCheck(l4, e6);
}
_tierCounts(t2) {
@@ -38260,51 +38231,51 @@ var require_fxp = __commonJS({
_classifyNCR(t2) {
return 0 === t2 ? this._ncrNullLevel : t2 >= 55296 && t2 <= 57343 || 1 === this._ncrXmlVersion && t2 >= 1 && t2 <= 31 && !H.has(t2) ? Q.remove : -1;
}
- _applyNCRAction(t2, e6, n4) {
+ _applyNCRAction(t2, e6, n5) {
switch (t2) {
case Q.allow:
- return String.fromCodePoint(n4);
+ return String.fromCodePoint(n5);
case Q.remove:
return "";
case Q.leave:
return;
case Q.throw:
- throw new Error(`[EntityDecoder] Prohibited numeric character reference &${e6}; (U+${n4.toString(16).toUpperCase().padStart(4, "0")})`);
+ throw new Error(`[EntityDecoder] Prohibited numeric character reference &${e6}; (U+${n5.toString(16).toUpperCase().padStart(4, "0")})`);
default:
- return String.fromCodePoint(n4);
+ return String.fromCodePoint(n5);
}
}
_resolveNCR(t2) {
const e6 = t2.charCodeAt(1);
- let n4;
- if (n4 = 120 === e6 || 88 === e6 ? parseInt(t2.slice(2), 16) : parseInt(t2.slice(1), 10), Number.isNaN(n4) || n4 < 0 || n4 > 1114111) return;
- const i6 = this._classifyNCR(n4);
+ let n5;
+ if (n5 = 120 === e6 || 88 === e6 ? parseInt(t2.slice(2), 16) : parseInt(t2.slice(1), 10), Number.isNaN(n5) || n5 < 0 || n5 > 1114111) return;
+ const i6 = this._classifyNCR(n5);
if (!this._numericAllowed && i6 < Q.remove) return;
const s2 = -1 === i6 ? this._ncrOnLevel : Math.max(this._ncrOnLevel, i6);
- return this._applyNCRAction(s2, t2, n4);
+ return this._applyNCRAction(s2, t2, n5);
}
}
function et(t2, e6) {
if (!t2) return {};
- const n4 = e6.attributesGroupName ? t2[e6.attributesGroupName] : t2;
- if (!n4) return {};
+ const n5 = e6.attributesGroupName ? t2[e6.attributesGroupName] : t2;
+ if (!n5) return {};
const i6 = {};
- for (const t3 in n4) t3.startsWith(e6.attributeNamePrefix) ? i6[t3.substring(e6.attributeNamePrefix.length)] = n4[t3] : i6[t3] = n4[t3];
+ for (const t3 in n5) t3.startsWith(e6.attributeNamePrefix) ? i6[t3.substring(e6.attributeNamePrefix.length)] = n5[t3] : i6[t3] = n5[t3];
return i6;
}
function nt(t2) {
if (!t2 || "string" != typeof t2) return;
const e6 = t2.indexOf(":");
if (-1 !== e6 && e6 > 0) {
- const n4 = t2.substring(0, e6);
- if ("xmlns" !== n4) return n4;
+ const n5 = t2.substring(0, e6);
+ if ("xmlns" !== n5) return n5;
}
}
class it {
constructor(t2, e6) {
- var n4;
- this.options = t2, this.currentNode = null, this.tagsNodeStack = [], this.parseXml = ht, this.parseTextData = st, this.resolveNameSpace = rt, this.buildAttributesMap = at, this.isItStopNode = ct, this.replaceEntitiesValue = ut, this.readStopNodeData = mt, this.saveTextToParentTag = pt, this.addChild = lt, this.ignoreAttributesFn = "function" == typeof (n4 = this.options.ignoreAttributes) ? n4 : Array.isArray(n4) ? (t3) => {
- for (const e7 of n4) {
+ var n5;
+ this.options = t2, this.currentNode = null, this.tagsNodeStack = [], this.parseXml = ht, this.parseTextData = st, this.resolveNameSpace = rt, this.buildAttributesMap = at, this.isItStopNode = ct, this.replaceEntitiesValue = ut, this.readStopNodeData = mt, this.saveTextToParentTag = pt, this.addChild = lt, this.ignoreAttributesFn = "function" == typeof (n5 = this.options.ignoreAttributes) ? n5 : Array.isArray(n5) ? (t3) => {
+ for (const e7 of n5) {
if ("string" == typeof e7 && t3 === e7) return true;
if (e7 instanceof RegExp && e7.test(t3)) return true;
}
@@ -38321,47 +38292,47 @@ var require_fxp = __commonJS({
}
}
}
- function st(t2, e6, n4, i6, s2, r6, o3) {
+ function st(t2, e6, n5, i6, s2, r6, o4) {
const a6 = this.options;
if (void 0 !== t2 && (a6.trimValues && !i6 && (t2 = t2.trim()), t2.length > 0)) {
- o3 || (t2 = this.replaceEntitiesValue(t2, e6, n4));
- const i7 = a6.jPath ? n4.toString() : n4, h6 = a6.tagValueProcessor(e6, t2, i7, s2, r6);
+ o4 || (t2 = this.replaceEntitiesValue(t2, e6, n5));
+ const i7 = a6.jPath ? n5.toString() : n5, h6 = a6.tagValueProcessor(e6, t2, i7, s2, r6);
return null == h6 ? t2 : typeof h6 != typeof t2 || h6 !== t2 ? h6 : a6.trimValues || t2.trim() === t2 ? xt(t2, a6.parseTagValue, a6.numberParseOptions) : t2;
}
}
function rt(t2) {
if (this.options.removeNSPrefix) {
- const e6 = t2.split(":"), n4 = "/" === t2.charAt(0) ? "/" : "";
+ const e6 = t2.split(":"), n5 = "/" === t2.charAt(0) ? "/" : "";
if ("xmlns" === e6[0]) return "";
- 2 === e6.length && (t2 = n4 + e6[1]);
+ 2 === e6.length && (t2 = n5 + e6[1]);
}
return t2;
}
const ot = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
- function at(t2, e6, n4, i6 = false) {
+ function at(t2, e6, n5, i6 = false) {
const r6 = this.options;
if (true === i6 || true !== r6.ignoreAttributes && "string" == typeof t2) {
- const i7 = s(t2, ot), o3 = i7.length, a6 = {}, h6 = new Array(o3);
+ const i7 = s(t2, ot), o4 = i7.length, a6 = {}, h6 = new Array(o4);
let l4 = false;
const u2 = {};
- for (let t3 = 0; t3 < o3; t3++) {
+ for (let t3 = 0; t3 < o4; t3++) {
const e7 = this.resolveNameSpace(i7[t3][1]), s2 = i7[t3][4];
if (e7.length && void 0 !== s2) {
let i8 = s2;
- r6.trimValues && (i8 = i8.trim()), i8 = this.replaceEntitiesValue(i8, n4, this.readonlyMatcher), h6[t3] = i8, u2[e7] = i8, l4 = true;
+ r6.trimValues && (i8 = i8.trim()), i8 = this.replaceEntitiesValue(i8, n5, this.readonlyMatcher), h6[t3] = i8, u2[e7] = i8, l4 = true;
}
}
l4 && "object" == typeof e6 && e6.updateCurrent && e6.updateCurrent(u2);
- const p3 = r6.jPath ? e6.toString() : this.readonlyMatcher;
+ const p4 = r6.jPath ? e6.toString() : this.readonlyMatcher;
let c6 = false;
- for (let t3 = 0; t3 < o3; t3++) {
+ for (let t3 = 0; t3 < o4; t3++) {
const e7 = this.resolveNameSpace(i7[t3][1]);
- if (this.ignoreAttributesFn(e7, p3)) continue;
- let n5 = r6.attributeNamePrefix + e7;
- if (e7.length) if (r6.transformAttributeName && (n5 = r6.transformAttributeName(n5)), n5 = bt(n5, r6), void 0 !== i7[t3][4]) {
- const i8 = h6[t3], s2 = r6.attributeValueProcessor(e7, i8, p3);
- a6[n5] = null == s2 ? i8 : typeof s2 != typeof i8 || s2 !== i8 ? s2 : xt(i8, r6.parseAttributeValue, r6.numberParseOptions), c6 = true;
- } else r6.allowBooleanAttributes && (a6[n5] = true, c6 = true);
+ if (this.ignoreAttributesFn(e7, p4)) continue;
+ let n6 = r6.attributeNamePrefix + e7;
+ if (e7.length) if (r6.transformAttributeName && (n6 = r6.transformAttributeName(n6)), n6 = bt(n6, r6), void 0 !== i7[t3][4]) {
+ const i8 = h6[t3], s2 = r6.attributeValueProcessor(e7, i8, p4);
+ a6[n6] = null == s2 ? i8 : typeof s2 != typeof i8 || s2 !== i8 ? s2 : xt(i8, r6.parseAttributeValue, r6.numberParseOptions), c6 = true;
+ } else r6.allowBooleanAttributes && (a6[n6] = true, c6 = true);
}
if (!c6) return;
if (r6.attributesGroupName && !r6.preserveOrder) {
@@ -38374,10 +38345,10 @@ var require_fxp = __commonJS({
const ht = function(t2) {
t2 = t2.replace(/\r\n?/g, "\n");
const e6 = new O("!xml");
- let n4 = e6, i6 = "";
+ let n5 = e6, i6 = "";
this.matcher.reset(), this.entityDecoder.reset(), this.entityExpansionCount = 0, this.currentExpandedLength = 0;
- const s2 = this.options, r6 = new $(s2.processEntities), o3 = t2.length;
- for (let a6 = 0; a6 < o3; a6++) if ("<" === t2[a6]) {
+ const s2 = this.options, r6 = new $(s2.processEntities), o4 = t2.length;
+ for (let a6 = 0; a6 < o4; a6++) if ("<" === t2[a6]) {
const h6 = t2.charCodeAt(a6 + 1);
if (47 === h6) {
const e7 = dt(t2, ">", a6, "Closing Tag is not closed.");
@@ -38386,14 +38357,14 @@ var require_fxp = __commonJS({
const t3 = r7.indexOf(":");
-1 !== t3 && (r7 = r7.substr(t3 + 1));
}
- r7 = Nt(s2.transformTagName, r7, "", s2).tagName, n4 && (i6 = this.saveTextToParentTag(i6, n4, this.readonlyMatcher));
- const o4 = this.matcher.getCurrentTag();
+ r7 = Nt(s2.transformTagName, r7, "", s2).tagName, n5 && (i6 = this.saveTextToParentTag(i6, n5, this.readonlyMatcher));
+ const o5 = this.matcher.getCurrentTag();
if (r7 && s2.unpairedTagsSet.has(r7)) throw new Error(`Unpaired tag can not be used as closing tag: ${r7}>`);
- o4 && s2.unpairedTagsSet.has(o4) && (this.matcher.pop(), this.tagsNodeStack.pop()), this.matcher.pop(), this.isCurrentNodeStopNode = false, n4 = this.tagsNodeStack.pop(), i6 = "", a6 = e7;
+ o5 && s2.unpairedTagsSet.has(o5) && (this.matcher.pop(), this.tagsNodeStack.pop()), this.matcher.pop(), this.isCurrentNodeStopNode = false, n5 = this.tagsNodeStack.pop(), i6 = "", a6 = e7;
} else if (63 === h6) {
let e7 = gt(t2, a6, false, "?>");
if (!e7) throw new Error("Pi Tag is not closed.");
- i6 = this.saveTextToParentTag(i6, n4, this.readonlyMatcher);
+ i6 = this.saveTextToParentTag(i6, n5, this.readonlyMatcher);
const r7 = this.buildAttributesMap(e7.tagExp, this.matcher, e7.tagName, true);
if (r7) {
const t3 = r7[this.options.attributeNamePrefix + "version"];
@@ -38402,14 +38373,14 @@ var require_fxp = __commonJS({
if (s2.ignoreDeclaration && "?xml" === e7.tagName || s2.ignorePiTags) ;
else {
const t3 = new O(e7.tagName);
- t3.add(s2.textNodeName, ""), e7.tagName !== e7.tagExp && e7.attrExpPresent && true !== s2.ignoreAttributes && (t3[":@"] = r7), this.addChild(n4, t3, this.readonlyMatcher, a6);
+ t3.add(s2.textNodeName, ""), e7.tagName !== e7.tagExp && e7.attrExpPresent && true !== s2.ignoreAttributes && (t3[":@"] = r7), this.addChild(n5, t3, this.readonlyMatcher, a6);
}
a6 = e7.closeIndex + 1;
} else if (33 === h6 && 45 === t2.charCodeAt(a6 + 2) && 45 === t2.charCodeAt(a6 + 3)) {
const e7 = dt(t2, "-->", a6 + 4, "Comment is not closed.");
if (s2.commentPropName) {
const r7 = t2.substring(a6 + 4, e7 - 2);
- i6 = this.saveTextToParentTag(i6, n4, this.readonlyMatcher), n4.add(s2.commentPropName, [{ [s2.textNodeName]: r7 }]);
+ i6 = this.saveTextToParentTag(i6, n5, this.readonlyMatcher), n5.add(s2.commentPropName, [{ [s2.textNodeName]: r7 }]);
}
a6 = e7;
} else if (33 === h6 && 68 === t2.charCodeAt(a6 + 2)) {
@@ -38417,53 +38388,53 @@ var require_fxp = __commonJS({
this.entityDecoder.addInputEntities(e7.entities), a6 = e7.i;
} else if (33 === h6 && 91 === t2.charCodeAt(a6 + 2)) {
const e7 = dt(t2, "]]>", a6, "CDATA is not closed.") - 2, r7 = t2.substring(a6 + 9, e7);
- i6 = this.saveTextToParentTag(i6, n4, this.readonlyMatcher);
- let o4 = this.parseTextData(r7, n4.tagname, this.readonlyMatcher, true, false, true, true);
- null == o4 && (o4 = ""), s2.cdataPropName ? n4.add(s2.cdataPropName, [{ [s2.textNodeName]: r7 }]) : n4.add(s2.textNodeName, o4), a6 = e7 + 2;
+ i6 = this.saveTextToParentTag(i6, n5, this.readonlyMatcher);
+ let o5 = this.parseTextData(r7, n5.tagname, this.readonlyMatcher, true, false, true, true);
+ null == o5 && (o5 = ""), s2.cdataPropName ? n5.add(s2.cdataPropName, [{ [s2.textNodeName]: r7 }]) : n5.add(s2.textNodeName, o5), a6 = e7 + 2;
} else {
let r7 = gt(t2, a6, s2.removeNSPrefix);
if (!r7) {
- const e7 = t2.substring(Math.max(0, a6 - 50), Math.min(o3, a6 + 50));
+ const e7 = t2.substring(Math.max(0, a6 - 50), Math.min(o4, a6 + 50));
throw new Error(`readTagExp returned undefined at position ${a6}. Context: "${e7}"`);
}
let h7 = r7.tagName;
const l4 = r7.rawTagName;
- let u2 = r7.tagExp, p3 = r7.attrExpPresent, c6 = r7.closeIndex;
+ let u2 = r7.tagExp, p4 = r7.attrExpPresent, c6 = r7.closeIndex;
if ({ tagName: h7, tagExp: u2 } = Nt(s2.transformTagName, h7, u2, s2), s2.strictReservedNames && (h7 === s2.commentPropName || h7 === s2.cdataPropName || h7 === s2.textNodeName || h7 === s2.attributesGroupName)) throw new Error(`Invalid tag name: ${h7}`);
- n4 && i6 && "!xml" !== n4.tagname && (i6 = this.saveTextToParentTag(i6, n4, this.readonlyMatcher, false));
- const d6 = n4;
- d6 && s2.unpairedTagsSet.has(d6.tagname) && (n4 = this.tagsNodeStack.pop(), this.matcher.pop());
+ n5 && i6 && "!xml" !== n5.tagname && (i6 = this.saveTextToParentTag(i6, n5, this.readonlyMatcher, false));
+ const d6 = n5;
+ d6 && s2.unpairedTagsSet.has(d6.tagname) && (n5 = this.tagsNodeStack.pop(), this.matcher.pop());
let f6 = false;
- u2.length > 0 && u2.lastIndexOf("/") === u2.length - 1 && (f6 = true, "/" === h7[h7.length - 1] ? (h7 = h7.substr(0, h7.length - 1), u2 = h7) : u2 = u2.substr(0, u2.length - 1), p3 = h7 !== u2);
+ u2.length > 0 && u2.lastIndexOf("/") === u2.length - 1 && (f6 = true, "/" === h7[h7.length - 1] ? (h7 = h7.substr(0, h7.length - 1), u2 = h7) : u2 = u2.substr(0, u2.length - 1), p4 = h7 !== u2);
let g6, m4 = null, x2 = {};
- g6 = nt(l4), h7 !== e6.tagname && this.matcher.push(h7, {}, g6), h7 !== u2 && p3 && (m4 = this.buildAttributesMap(u2, this.matcher, h7), m4 && (x2 = et(m4, s2))), h7 !== e6.tagname && (this.isCurrentNodeStopNode = this.isItStopNode());
+ g6 = nt(l4), h7 !== e6.tagname && this.matcher.push(h7, {}, g6), h7 !== u2 && p4 && (m4 = this.buildAttributesMap(u2, this.matcher, h7), m4 && (x2 = et(m4, s2))), h7 !== e6.tagname && (this.isCurrentNodeStopNode = this.isItStopNode());
const N2 = a6;
if (this.isCurrentNodeStopNode) {
let e7 = "";
if (f6) a6 = r7.closeIndex;
else if (s2.unpairedTagsSet.has(h7)) a6 = r7.closeIndex;
else {
- const n5 = this.readStopNodeData(t2, l4, c6 + 1);
- if (!n5) throw new Error(`Unexpected end of ${l4}`);
- a6 = n5.i, e7 = n5.tagContent;
+ const n6 = this.readStopNodeData(t2, l4, c6 + 1);
+ if (!n6) throw new Error(`Unexpected end of ${l4}`);
+ a6 = n6.i, e7 = n6.tagContent;
}
const i7 = new O(h7);
- m4 && (i7[":@"] = m4), i7.add(s2.textNodeName, e7), this.matcher.pop(), this.isCurrentNodeStopNode = false, this.addChild(n4, i7, this.readonlyMatcher, N2);
+ m4 && (i7[":@"] = m4), i7.add(s2.textNodeName, e7), this.matcher.pop(), this.isCurrentNodeStopNode = false, this.addChild(n5, i7, this.readonlyMatcher, N2);
} else {
if (f6) {
({ tagName: h7, tagExp: u2 } = Nt(s2.transformTagName, h7, u2, s2));
const t3 = new O(h7);
- m4 && (t3[":@"] = m4), this.addChild(n4, t3, this.readonlyMatcher, N2), this.matcher.pop(), this.isCurrentNodeStopNode = false;
+ m4 && (t3[":@"] = m4), this.addChild(n5, t3, this.readonlyMatcher, N2), this.matcher.pop(), this.isCurrentNodeStopNode = false;
} else {
if (s2.unpairedTagsSet.has(h7)) {
const t3 = new O(h7);
- m4 && (t3[":@"] = m4), this.addChild(n4, t3, this.readonlyMatcher, N2), this.matcher.pop(), this.isCurrentNodeStopNode = false, a6 = r7.closeIndex;
+ m4 && (t3[":@"] = m4), this.addChild(n5, t3, this.readonlyMatcher, N2), this.matcher.pop(), this.isCurrentNodeStopNode = false, a6 = r7.closeIndex;
continue;
}
{
const t3 = new O(h7);
if (this.tagsNodeStack.length > s2.maxNestedTags) throw new Error("Maximum nested tags exceeded");
- this.tagsNodeStack.push(n4), m4 && (t3[":@"] = m4), this.addChild(n4, t3, this.readonlyMatcher, N2), n4 = t3;
+ this.tagsNodeStack.push(n5), m4 && (t3[":@"] = m4), this.addChild(n5, t3, this.readonlyMatcher, N2), n5 = t3;
}
}
i6 = "", a6 = c6;
@@ -38472,135 +38443,135 @@ var require_fxp = __commonJS({
} else i6 += t2[a6];
return e6.child;
};
- function lt(t2, e6, n4, i6) {
+ function lt(t2, e6, n5, i6) {
this.options.captureMetaData || (i6 = void 0);
- const s2 = this.options.jPath ? n4.toString() : n4, r6 = this.options.updateTag(e6.tagname, s2, e6[":@"]);
+ const s2 = this.options.jPath ? n5.toString() : n5, r6 = this.options.updateTag(e6.tagname, s2, e6[":@"]);
false === r6 || ("string" == typeof r6 ? (e6.tagname = r6, t2.addChild(e6, i6)) : t2.addChild(e6, i6));
}
- function ut(t2, e6, n4) {
+ function ut(t2, e6, n5) {
const i6 = this.options.processEntities;
if (!i6 || !i6.enabled) return t2;
if (i6.allowedTags) {
- const s2 = this.options.jPath ? n4.toString() : n4;
+ const s2 = this.options.jPath ? n5.toString() : n5;
if (!(Array.isArray(i6.allowedTags) ? i6.allowedTags.includes(e6) : i6.allowedTags(e6, s2))) return t2;
}
if (i6.tagFilter) {
- const s2 = this.options.jPath ? n4.toString() : n4;
+ const s2 = this.options.jPath ? n5.toString() : n5;
if (!i6.tagFilter(e6, s2)) return t2;
}
return this.entityDecoder.decode(t2);
}
- function pt(t2, e6, n4, i6) {
- return t2 && (void 0 === i6 && (i6 = 0 === e6.child.length), void 0 !== (t2 = this.parseTextData(t2, e6.tagname, n4, false, !!e6[":@"] && 0 !== Object.keys(e6[":@"]).length, i6)) && "" !== t2 && e6.add(this.options.textNodeName, t2), t2 = ""), t2;
+ function pt(t2, e6, n5, i6) {
+ return t2 && (void 0 === i6 && (i6 = 0 === e6.child.length), void 0 !== (t2 = this.parseTextData(t2, e6.tagname, n5, false, !!e6[":@"] && 0 !== Object.keys(e6[":@"]).length, i6)) && "" !== t2 && e6.add(this.options.textNodeName, t2), t2 = ""), t2;
}
function ct() {
return 0 !== this.stopNodeExpressionsSet.size && this.matcher.matchesAny(this.stopNodeExpressionsSet);
}
- function dt(t2, e6, n4, i6) {
- const s2 = t2.indexOf(e6, n4);
+ function dt(t2, e6, n5, i6) {
+ const s2 = t2.indexOf(e6, n5);
if (-1 === s2) throw new Error(i6);
return s2 + e6.length - 1;
}
- function ft(t2, e6, n4, i6) {
- const s2 = t2.indexOf(e6, n4);
+ function ft(t2, e6, n5, i6) {
+ const s2 = t2.indexOf(e6, n5);
if (-1 === s2) throw new Error(i6);
return s2;
}
- function gt(t2, e6, n4, i6 = ">") {
- const s2 = (function(t3, e7, n5 = ">") {
+ function gt(t2, e6, n5, i6 = ">") {
+ const s2 = (function(t3, e7, n6 = ">") {
let i7 = 0;
- const s3 = t3.length, r7 = n5.charCodeAt(0), o4 = n5.length > 1 ? n5.charCodeAt(1) : -1;
+ const s3 = t3.length, r7 = n6.charCodeAt(0), o5 = n6.length > 1 ? n6.charCodeAt(1) : -1;
let a7 = "", h7 = e7;
- for (let n6 = e7; n6 < s3; n6++) {
- const e8 = t3.charCodeAt(n6);
+ for (let n7 = e7; n7 < s3; n7++) {
+ const e8 = t3.charCodeAt(n7);
if (i7) e8 === i7 && (i7 = 0);
else if (34 === e8 || 39 === e8) i7 = e8;
else if (e8 === r7) {
- if (-1 === o4) return a7 += t3.substring(h7, n6), { data: a7, index: n6 };
- if (t3.charCodeAt(n6 + 1) === o4) return a7 += t3.substring(h7, n6), { data: a7, index: n6 };
- } else 9 !== e8 || i7 || (a7 += t3.substring(h7, n6) + " ", h7 = n6 + 1);
+ if (-1 === o5) return a7 += t3.substring(h7, n7), { data: a7, index: n7 };
+ if (t3.charCodeAt(n7 + 1) === o5) return a7 += t3.substring(h7, n7), { data: a7, index: n7 };
+ } else 9 !== e8 || i7 || (a7 += t3.substring(h7, n7) + " ", h7 = n7 + 1);
}
})(t2, e6 + 1, i6);
if (!s2) return;
let r6 = s2.data;
- const o3 = s2.index, a6 = r6.search(/\s/);
+ const o4 = s2.index, a6 = r6.search(/\s/);
let h6 = r6, l4 = true;
-1 !== a6 && (h6 = r6.substring(0, a6), r6 = r6.substring(a6 + 1).trimStart());
const u2 = h6;
- if (n4) {
+ if (n5) {
const t3 = h6.indexOf(":");
-1 !== t3 && (h6 = h6.substr(t3 + 1), l4 = h6 !== s2.data.substr(t3 + 1));
}
- return { tagName: h6, tagExp: r6, closeIndex: o3, attrExpPresent: l4, rawTagName: u2 };
+ return { tagName: h6, tagExp: r6, closeIndex: o4, attrExpPresent: l4, rawTagName: u2 };
}
- function mt(t2, e6, n4) {
- const i6 = n4;
+ function mt(t2, e6, n5) {
+ const i6 = n5;
let s2 = 1;
const r6 = t2.length;
- for (; n4 < r6; n4++) if ("<" === t2[n4]) {
- const r7 = t2.charCodeAt(n4 + 1);
+ for (; n5 < r6; n5++) if ("<" === t2[n5]) {
+ const r7 = t2.charCodeAt(n5 + 1);
if (47 === r7) {
- const r8 = ft(t2, ">", n4, `${e6} is not closed`);
- if (t2.substring(n4 + 2, r8).trim() === e6 && (s2--, 0 === s2)) return { tagContent: t2.substring(i6, n4), i: r8 };
- n4 = r8;
- } else if (63 === r7) n4 = dt(t2, "?>", n4 + 1, "StopNode is not closed.");
- else if (33 === r7 && 45 === t2.charCodeAt(n4 + 2) && 45 === t2.charCodeAt(n4 + 3)) n4 = dt(t2, "-->", n4 + 3, "StopNode is not closed.");
- else if (33 === r7 && 91 === t2.charCodeAt(n4 + 2)) n4 = dt(t2, "]]>", n4, "StopNode is not closed.") - 2;
+ const r8 = ft(t2, ">", n5, `${e6} is not closed`);
+ if (t2.substring(n5 + 2, r8).trim() === e6 && (s2--, 0 === s2)) return { tagContent: t2.substring(i6, n5), i: r8 };
+ n5 = r8;
+ } else if (63 === r7) n5 = dt(t2, "?>", n5 + 1, "StopNode is not closed.");
+ else if (33 === r7 && 45 === t2.charCodeAt(n5 + 2) && 45 === t2.charCodeAt(n5 + 3)) n5 = dt(t2, "-->", n5 + 3, "StopNode is not closed.");
+ else if (33 === r7 && 91 === t2.charCodeAt(n5 + 2)) n5 = dt(t2, "]]>", n5, "StopNode is not closed.") - 2;
else {
- const i7 = gt(t2, n4, false);
- i7 && ((i7 && i7.tagName) === e6 && "/" !== i7.tagExp[i7.tagExp.length - 1] && s2++, n4 = i7.closeIndex);
+ const i7 = gt(t2, n5, false);
+ i7 && ((i7 && i7.tagName) === e6 && "/" !== i7.tagExp[i7.tagExp.length - 1] && s2++, n5 = i7.closeIndex);
}
}
}
- function xt(t2, e6, n4) {
+ function xt(t2, e6, n5) {
if (e6 && "string" == typeof t2) {
const e7 = t2.trim();
return "true" === e7 || "false" !== e7 && (function(t3, e8 = {}) {
if (e8 = Object.assign({}, L, e8), !t3 || "string" != typeof t3) return t3;
- let n5 = t3.trim();
- if (0 === n5.length) return t3;
- if (void 0 !== e8.skipLike && e8.skipLike.test(n5)) return t3;
- if ("0" === n5) return 0;
- if (e8.hex && j5.test(n5)) return (function(t4) {
+ let n6 = t3.trim();
+ if (0 === n6.length) return t3;
+ if (void 0 !== e8.skipLike && e8.skipLike.test(n6)) return t3;
+ if ("0" === n6) return 0;
+ if (e8.hex && j5.test(n6)) return (function(t4) {
if (parseInt) return parseInt(t4, 16);
if (Number.parseInt) return Number.parseInt(t4, 16);
if (window && window.parseInt) return window.parseInt(t4, 16);
throw new Error("parseInt, Number.parseInt, window.parseInt are not supported");
- })(n5);
- if (isFinite(n5)) {
- if (n5.includes("e") || n5.includes("E")) return (function(t4, e9, n6) {
- if (!n6.eNotation) return t4;
+ })(n6);
+ if (isFinite(n6)) {
+ if (n6.includes("e") || n6.includes("E")) return (function(t4, e9, n7) {
+ if (!n7.eNotation) return t4;
const i7 = e9.match(k5);
if (i7) {
let s2 = i7[1] || "";
- const r6 = -1 === i7[3].indexOf("e") ? "E" : "e", o3 = i7[2], a6 = s2 ? t4[o3.length + 1] === r6 : t4[o3.length] === r6;
- return o3.length > 1 && a6 ? t4 : (1 !== o3.length || !i7[3].startsWith(`.${r6}`) && i7[3][0] !== r6) && o3.length > 0 ? n6.leadingZeros && !a6 ? (e9 = (i7[1] || "") + i7[3], Number(e9)) : t4 : Number(e9);
+ const r6 = -1 === i7[3].indexOf("e") ? "E" : "e", o4 = i7[2], a6 = s2 ? t4[o4.length + 1] === r6 : t4[o4.length] === r6;
+ return o4.length > 1 && a6 ? t4 : (1 !== o4.length || !i7[3].startsWith(`.${r6}`) && i7[3][0] !== r6) && o4.length > 0 ? n7.leadingZeros && !a6 ? (e9 = (i7[1] || "") + i7[3], Number(e9)) : t4 : Number(e9);
}
return t4;
- })(t3, n5, e8);
+ })(t3, n6, e8);
{
- const s2 = V.exec(n5);
+ const s2 = V.exec(n6);
if (s2) {
- const r6 = s2[1] || "", o3 = s2[2];
+ const r6 = s2[1] || "", o4 = s2[2];
let a6 = (i6 = s2[3]) && -1 !== i6.indexOf(".") ? ("." === (i6 = i6.replace(/0+$/, "")) ? i6 = "0" : "." === i6[0] ? i6 = "0" + i6 : "." === i6[i6.length - 1] && (i6 = i6.substring(0, i6.length - 1)), i6) : i6;
- const h6 = r6 ? "." === t3[o3.length + 1] : "." === t3[o3.length];
- if (!e8.leadingZeros && (o3.length > 1 || 1 === o3.length && !h6)) return t3;
+ const h6 = r6 ? "." === t3[o4.length + 1] : "." === t3[o4.length];
+ if (!e8.leadingZeros && (o4.length > 1 || 1 === o4.length && !h6)) return t3;
{
- const i7 = Number(n5), s3 = String(i7);
+ const i7 = Number(n6), s3 = String(i7);
if (0 === i7) return i7;
if (-1 !== s3.search(/[eE]/)) return e8.eNotation ? i7 : t3;
- if (-1 !== n5.indexOf(".")) return "0" === s3 || s3 === a6 || s3 === `${r6}${a6}` ? i7 : t3;
- let h7 = o3 ? a6 : n5;
- return o3 ? h7 === s3 || r6 + h7 === s3 ? i7 : t3 : h7 === s3 || h7 === r6 + s3 ? i7 : t3;
+ if (-1 !== n6.indexOf(".")) return "0" === s3 || s3 === a6 || s3 === `${r6}${a6}` ? i7 : t3;
+ let h7 = o4 ? a6 : n6;
+ return o4 ? h7 === s3 || r6 + h7 === s3 ? i7 : t3 : h7 === s3 || h7 === r6 + s3 ? i7 : t3;
}
}
return t3;
}
}
var i6;
- return (function(t4, e9, n6) {
+ return (function(t4, e9, n7) {
const i7 = e9 === 1 / 0;
- switch (n6.infinity.toLowerCase()) {
+ switch (n7.infinity.toLowerCase()) {
case "null":
return null;
case "infinity":
@@ -38610,54 +38581,54 @@ var require_fxp = __commonJS({
default:
return t4;
}
- })(t3, Number(n5), e8);
- })(t2, n4);
+ })(t3, Number(n6), e8);
+ })(t2, n5);
}
return void 0 !== t2 ? t2 : "";
}
- function Nt(t2, e6, n4, i6) {
+ function Nt(t2, e6, n5, i6) {
if (t2) {
const i7 = t2(e6);
- n4 === e6 && (n4 = i7), e6 = i7;
+ n5 === e6 && (n5 = i7), e6 = i7;
}
- return { tagName: e6 = bt(e6, i6), tagExp: n4 };
+ return { tagName: e6 = bt(e6, i6), tagExp: n5 };
}
function bt(t2, e6) {
if (a5.includes(t2)) throw new Error(`[SECURITY] Invalid name: "${t2}" is a reserved JavaScript keyword that could cause prototype pollution`);
- return o2.includes(t2) ? e6.onDangerousProperty(t2) : t2;
+ return o3.includes(t2) ? e6.onDangerousProperty(t2) : t2;
}
const yt = O.getMetaDataSymbol();
function Et(t2, e6) {
if (!t2 || "object" != typeof t2) return {};
if (!e6) return t2;
- const n4 = {};
- for (const i6 in t2) i6.startsWith(e6) ? n4[i6.substring(e6.length)] = t2[i6] : n4[i6] = t2[i6];
- return n4;
+ const n5 = {};
+ for (const i6 in t2) i6.startsWith(e6) ? n5[i6.substring(e6.length)] = t2[i6] : n5[i6] = t2[i6];
+ return n5;
}
- function wt(t2, e6, n4, i6) {
- return vt(t2, e6, n4, i6);
+ function wt(t2, e6, n5, i6) {
+ return vt(t2, e6, n5, i6);
}
- function vt(t2, e6, n4, i6) {
+ function vt(t2, e6, n5, i6) {
let s2;
const r6 = {};
- for (let o3 = 0; o3 < t2.length; o3++) {
- const a6 = t2[o3], h6 = St(a6);
+ for (let o4 = 0; o4 < t2.length; o4++) {
+ const a6 = t2[o4], h6 = St(a6);
if (void 0 !== h6 && h6 !== e6.textNodeName) {
const t3 = Et(a6[":@"] || {}, e6.attributeNamePrefix);
- n4.push(h6, t3);
+ n5.push(h6, t3);
}
if (h6 === e6.textNodeName) void 0 === s2 ? s2 = a6[h6] : s2 += "" + a6[h6];
else {
if (void 0 === h6) continue;
if (a6[h6]) {
- let t3 = vt(a6[h6], e6, n4, i6);
+ let t3 = vt(a6[h6], e6, n5, i6);
const s3 = At(t3, e6);
if (0 === Object.keys(t3).length && e6.alwaysCreateTextNode && (t3[e6.textNodeName] = ""), a6[":@"] ? _t(t3, a6[":@"], i6, e6) : 1 !== Object.keys(t3).length || void 0 === t3[e6.textNodeName] || e6.alwaysCreateTextNode ? 0 === Object.keys(t3).length && (e6.alwaysCreateTextNode ? t3[e6.textNodeName] = "" : t3 = "") : t3 = t3[e6.textNodeName], void 0 !== a6[yt] && "object" == typeof t3 && null !== t3 && (t3[yt] = a6[yt]), void 0 !== r6[h6] && Object.prototype.hasOwnProperty.call(r6, h6)) Array.isArray(r6[h6]) || (r6[h6] = [r6[h6]]), r6[h6].push(t3);
else {
- const n5 = e6.jPath ? i6.toString() : i6;
- e6.isArray(h6, n5, s3) ? r6[h6] = [t3] : r6[h6] = t3;
+ const n6 = e6.jPath ? i6.toString() : i6;
+ e6.isArray(h6, n6, s3) ? r6[h6] = [t3] : r6[h6] = t3;
}
- void 0 !== h6 && h6 !== e6.textNodeName && n4.pop();
+ void 0 !== h6 && h6 !== e6.textNodeName && n5.pop();
}
}
}
@@ -38666,22 +38637,22 @@ var require_fxp = __commonJS({
function St(t2) {
const e6 = Object.keys(t2);
for (let t3 = 0; t3 < e6.length; t3++) {
- const n4 = e6[t3];
- if (":@" !== n4) return n4;
+ const n5 = e6[t3];
+ if (":@" !== n5) return n5;
}
}
- function _t(t2, e6, n4, i6) {
+ function _t(t2, e6, n5, i6) {
if (e6) {
const s2 = Object.keys(e6), r6 = s2.length;
- for (let o3 = 0; o3 < r6; o3++) {
- const r7 = s2[o3], a6 = r7.startsWith(i6.attributeNamePrefix) ? r7.substring(i6.attributeNamePrefix.length) : r7, h6 = i6.jPath ? n4.toString() + "." + a6 : n4;
+ for (let o4 = 0; o4 < r6; o4++) {
+ const r7 = s2[o4], a6 = r7.startsWith(i6.attributeNamePrefix) ? r7.substring(i6.attributeNamePrefix.length) : r7, h6 = i6.jPath ? n5.toString() + "." + a6 : n5;
i6.isArray(r7, h6, true, true) ? t2[r7] = [e6[r7]] : t2[r7] = e6[r7];
}
}
}
function At(t2, e6) {
- const { textNodeName: n4 } = e6, i6 = Object.keys(t2).length;
- return 0 === i6 || !(1 !== i6 || !t2[n4] && "boolean" != typeof t2[n4] && 0 !== t2[n4]);
+ const { textNodeName: n5 } = e6, i6 = Object.keys(t2).length;
+ return 0 === i6 || !(1 !== i6 || !t2[n5] && "boolean" != typeof t2[n5] && 0 !== t2[n5]);
}
class Tt {
constructor(t2) {
@@ -38692,11 +38663,11 @@ var require_fxp = __commonJS({
else if ("string" != typeof t2) throw new Error("XML data is accepted in String or Bytes[] form.");
if (e6) {
true === e6 && (e6 = {});
- const n5 = l3(t2, e6);
- if (true !== n5) throw Error(`${n5.err.msg}:${n5.err.line}:${n5.err.col}`);
+ const n6 = l3(t2, e6);
+ if (true !== n6) throw Error(`${n6.err.msg}:${n6.err.line}:${n6.err.col}`);
}
- const n4 = new it(this.options, this.externalEntities), i6 = n4.parseXml(t2);
- return this.options.preserveOrder || void 0 === i6 ? i6 : wt(i6, this.options, n4.matcher, n4.readonlyMatcher);
+ const n5 = new it(this.options, this.externalEntities), i6 = n5.parseXml(t2);
+ return this.options.preserveOrder || void 0 === i6 ? i6 : wt(i6, this.options, n5.matcher, n5.readonlyMatcher);
}
addEntity(t2, e6) {
if (-1 !== e6.indexOf("&")) throw new Error("Entity value can't have '&'");
@@ -38718,22 +38689,22 @@ var require_fxp = __commonJS({
return String(t2).replace(/"/g, """).replace(/'/g, "'");
}
function $t(t2, e6) {
- let n4 = "";
- e6.format && e6.indentBy.length > 0 && (n4 = "\n");
+ let n5 = "";
+ e6.format && e6.indentBy.length > 0 && (n5 = "\n");
const i6 = [];
if (e6.stopNodes && Array.isArray(e6.stopNodes)) for (let t3 = 0; t3 < e6.stopNodes.length; t3++) {
- const n5 = e6.stopNodes[t3];
- "string" == typeof n5 ? i6.push(new G(n5)) : n5 instanceof G && i6.push(n5);
+ const n6 = e6.stopNodes[t3];
+ "string" == typeof n6 ? i6.push(new G(n6)) : n6 instanceof G && i6.push(n6);
}
- return It(t2, e6, n4, new R(), i6);
+ return It(t2, e6, n5, new R(), i6);
}
- function It(t2, e6, n4, i6, s2) {
- let r6 = "", o3 = false;
+ function It(t2, e6, n5, i6, s2) {
+ let r6 = "", o4 = false;
if (e6.maxNestedTags && i6.getDepth() > e6.maxNestedTags) throw new Error("Maximum nested tags exceeded");
if (!Array.isArray(t2)) {
if (null != t2) {
- let n5 = t2.toString();
- return n5 = Ft(n5, e6), n5;
+ let n6 = t2.toString();
+ return n6 = Ft(n6, e6), n6;
}
return "";
}
@@ -38742,92 +38713,92 @@ var require_fxp = __commonJS({
if (void 0 === l4) continue;
const u2 = Dt(h6[":@"], e6);
i6.push(l4, u2);
- const p3 = kt(i6, s2);
+ const p4 = kt(i6, s2);
if (l4 === e6.textNodeName) {
let t3 = h6[l4];
- p3 || (t3 = e6.tagValueProcessor(l4, t3), t3 = Ft(t3, e6)), o3 && (r6 += n4), r6 += t3, o3 = false, i6.pop();
+ p4 || (t3 = e6.tagValueProcessor(l4, t3), t3 = Ft(t3, e6)), o4 && (r6 += n5), r6 += t3, o4 = false, i6.pop();
continue;
}
if (l4 === e6.cdataPropName) {
- o3 && (r6 += n4), r6 += ``, o3 = false, i6.pop();
+ o4 && (r6 += n5), r6 += ``, o4 = false, i6.pop();
continue;
}
if (l4 === e6.commentPropName) {
- r6 += n4 + ``, o3 = true, i6.pop();
+ r6 += n5 + ``, o4 = true, i6.pop();
continue;
}
if ("?" === l4[0]) {
- const t3 = Lt(h6[":@"], e6, p3), s3 = "?xml" === l4 ? "" : n4;
+ const t3 = Lt(h6[":@"], e6, p4), s3 = "?xml" === l4 ? "" : n5;
let a7 = h6[l4][0][e6.textNodeName];
- a7 = 0 !== a7.length ? " " + a7 : "", r6 += s3 + `<${l4}${a7}${t3}?>`, o3 = true, i6.pop();
+ a7 = 0 !== a7.length ? " " + a7 : "", r6 += s3 + `<${l4}${a7}${t3}?>`, o4 = true, i6.pop();
continue;
}
- let c6 = n4;
+ let c6 = n5;
"" !== c6 && (c6 += e6.indentBy);
- const d6 = n4 + `<${l4}${Lt(h6[":@"], e6, p3)}`;
+ const d6 = n5 + `<${l4}${Lt(h6[":@"], e6, p4)}`;
let f6;
- f6 = p3 ? Mt(h6[l4], e6) : It(h6[l4], e6, c6, i6, s2), -1 !== e6.unpairedTags.indexOf(l4) ? e6.suppressUnpairedNode ? r6 += d6 + ">" : r6 += d6 + "/>" : f6 && 0 !== f6.length || !e6.suppressEmptyNode ? f6 && f6.endsWith(">") ? r6 += d6 + `>${f6}${n4}${l4}>` : (r6 += d6 + ">", f6 && "" !== n4 && (f6.includes("/>") || f6.includes("")) ? r6 += n4 + e6.indentBy + f6 + n4 : r6 += f6, r6 += `${l4}>`) : r6 += d6 + "/>", o3 = true, i6.pop();
+ f6 = p4 ? Mt(h6[l4], e6) : It(h6[l4], e6, c6, i6, s2), -1 !== e6.unpairedTags.indexOf(l4) ? e6.suppressUnpairedNode ? r6 += d6 + ">" : r6 += d6 + "/>" : f6 && 0 !== f6.length || !e6.suppressEmptyNode ? f6 && f6.endsWith(">") ? r6 += d6 + `>${f6}${n5}${l4}>` : (r6 += d6 + ">", f6 && "" !== n5 && (f6.includes("/>") || f6.includes("")) ? r6 += n5 + e6.indentBy + f6 + n5 : r6 += f6, r6 += `${l4}>`) : r6 += d6 + "/>", o4 = true, i6.pop();
}
return r6;
}
function Dt(t2, e6) {
if (!t2 || e6.ignoreAttributes) return null;
- const n4 = {};
+ const n5 = {};
let i6 = false;
- for (let s2 in t2) Object.prototype.hasOwnProperty.call(t2, s2) && (n4[s2.startsWith(e6.attributeNamePrefix) ? s2.substr(e6.attributeNamePrefix.length) : s2] = Ot(t2[s2]), i6 = true);
- return i6 ? n4 : null;
+ for (let s2 in t2) Object.prototype.hasOwnProperty.call(t2, s2) && (n5[s2.startsWith(e6.attributeNamePrefix) ? s2.substr(e6.attributeNamePrefix.length) : s2] = Ot(t2[s2]), i6 = true);
+ return i6 ? n5 : null;
}
function Mt(t2, e6) {
if (!Array.isArray(t2)) return null != t2 ? t2.toString() : "";
- let n4 = "";
+ let n5 = "";
for (let i6 = 0; i6 < t2.length; i6++) {
const s2 = t2[i6], r6 = Vt(s2);
- if (r6 === e6.textNodeName) n4 += s2[r6];
- else if (r6 === e6.cdataPropName) n4 += s2[r6][0][e6.textNodeName];
- else if (r6 === e6.commentPropName) n4 += s2[r6][0][e6.textNodeName];
+ if (r6 === e6.textNodeName) n5 += s2[r6];
+ else if (r6 === e6.cdataPropName) n5 += s2[r6][0][e6.textNodeName];
+ else if (r6 === e6.commentPropName) n5 += s2[r6][0][e6.textNodeName];
else {
if (r6 && "?" === r6[0]) continue;
if (r6) {
const t3 = jt(s2[":@"], e6), i7 = Mt(s2[r6], e6);
- i7 && 0 !== i7.length ? n4 += `<${r6}${t3}>${i7}${r6}>` : n4 += `<${r6}${t3}/>`;
+ i7 && 0 !== i7.length ? n5 += `<${r6}${t3}>${i7}${r6}>` : n5 += `<${r6}${t3}/>`;
}
}
}
- return n4;
+ return n5;
}
function jt(t2, e6) {
- let n4 = "";
+ let n5 = "";
if (t2 && !e6.ignoreAttributes) for (let i6 in t2) {
if (!Object.prototype.hasOwnProperty.call(t2, i6)) continue;
let s2 = t2[i6];
- true === s2 && e6.suppressBooleanAttributes ? n4 += ` ${i6.substr(e6.attributeNamePrefix.length)}` : n4 += ` ${i6.substr(e6.attributeNamePrefix.length)}="${Ot(s2)}"`;
+ true === s2 && e6.suppressBooleanAttributes ? n5 += ` ${i6.substr(e6.attributeNamePrefix.length)}` : n5 += ` ${i6.substr(e6.attributeNamePrefix.length)}="${Ot(s2)}"`;
}
- return n4;
+ return n5;
}
function Vt(t2) {
const e6 = Object.keys(t2);
- for (let n4 = 0; n4 < e6.length; n4++) {
- const i6 = e6[n4];
+ for (let n5 = 0; n5 < e6.length; n5++) {
+ const i6 = e6[n5];
if (Object.prototype.hasOwnProperty.call(t2, i6) && ":@" !== i6) return i6;
}
}
- function Lt(t2, e6, n4) {
+ function Lt(t2, e6, n5) {
let i6 = "";
if (t2 && !e6.ignoreAttributes) for (let s2 in t2) {
if (!Object.prototype.hasOwnProperty.call(t2, s2)) continue;
let r6;
- n4 ? r6 = t2[s2] : (r6 = e6.attributeValueProcessor(s2, t2[s2]), r6 = Ft(r6, e6)), true === r6 && e6.suppressBooleanAttributes ? i6 += ` ${s2.substr(e6.attributeNamePrefix.length)}` : i6 += ` ${s2.substr(e6.attributeNamePrefix.length)}="${Ot(r6)}"`;
+ n5 ? r6 = t2[s2] : (r6 = e6.attributeValueProcessor(s2, t2[s2]), r6 = Ft(r6, e6)), true === r6 && e6.suppressBooleanAttributes ? i6 += ` ${s2.substr(e6.attributeNamePrefix.length)}` : i6 += ` ${s2.substr(e6.attributeNamePrefix.length)}="${Ot(r6)}"`;
}
return i6;
}
function kt(t2, e6) {
if (!e6 || 0 === e6.length) return false;
- for (let n4 = 0; n4 < e6.length; n4++) if (t2.matches(e6[n4])) return true;
+ for (let n5 = 0; n5 < e6.length; n5++) if (t2.matches(e6[n5])) return true;
return false;
}
function Ft(t2, e6) {
- if (t2 && t2.length > 0 && e6.processEntities) for (let n4 = 0; n4 < e6.entities.length; n4++) {
- const i6 = e6.entities[n4];
+ if (t2 && t2.length > 0 && e6.processEntities) for (let n5 = 0; n5 < e6.entities.length; n5++) {
+ const i6 = e6.entities[n5];
t2 = t2.replace(i6.regex, i6.val);
}
return t2;
@@ -38846,22 +38817,22 @@ var require_fxp = __commonJS({
true === this.options.ignoreAttributes || this.options.attributesGroupName ? this.isAttribute = function() {
return false;
} : (this.ignoreAttributesFn = "function" == typeof (e6 = this.options.ignoreAttributes) ? e6 : Array.isArray(e6) ? (t3) => {
- for (const n4 of e6) {
- if ("string" == typeof n4 && t3 === n4) return true;
- if (n4 instanceof RegExp && n4.test(t3)) return true;
+ for (const n5 of e6) {
+ if ("string" == typeof n5 && t3 === n5) return true;
+ if (n5 instanceof RegExp && n5.test(t3)) return true;
}
} : () => false, this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = Wt), this.processTextOrObjNode = Bt, this.options.format ? (this.indentate = Ut, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
return "";
}, this.tagEndChar = ">", this.newLine = "");
}
- function Bt(t2, e6, n4, i6) {
+ function Bt(t2, e6, n5, i6) {
const s2 = this.extractAttributes(t2);
if (i6.push(e6, s2), this.checkStopNode(i6)) {
const s3 = this.buildRawContent(t2), r7 = this.buildAttributesForStopNode(t2);
- return i6.pop(), this.buildObjectNode(s3, e6, r7, n4);
+ return i6.pop(), this.buildObjectNode(s3, e6, r7, n5);
}
- const r6 = this.j2x(t2, n4 + 1, i6);
- return i6.pop(), void 0 !== t2[this.options.textNodeName] && 1 === Object.keys(t2).length ? this.buildTextValNode(t2[this.options.textNodeName], e6, r6.attrStr, n4, i6) : this.buildObjectNode(r6.val, e6, r6.attrStr, n4);
+ const r6 = this.j2x(t2, n5 + 1, i6);
+ return i6.pop(), void 0 !== t2[this.options.textNodeName] && 1 === Object.keys(t2).length ? this.buildTextValNode(t2[this.options.textNodeName], e6, r6.attrStr, n5, i6) : this.buildObjectNode(r6.val, e6, r6.attrStr, n5);
}
function Ut(t2) {
return this.options.indentBy.repeat(t2);
@@ -38876,119 +38847,119 @@ var require_fxp = __commonJS({
const e6 = new R();
return this.j2x(t2, 0, e6).val;
}
- }, Gt.prototype.j2x = function(t2, e6, n4) {
+ }, Gt.prototype.j2x = function(t2, e6, n5) {
let i6 = "", s2 = "";
- if (this.options.maxNestedTags && n4.getDepth() >= this.options.maxNestedTags) throw new Error("Maximum nested tags exceeded");
- const r6 = this.options.jPath ? n4.toString() : n4, o3 = this.checkStopNode(n4);
+ if (this.options.maxNestedTags && n5.getDepth() >= this.options.maxNestedTags) throw new Error("Maximum nested tags exceeded");
+ const r6 = this.options.jPath ? n5.toString() : n5, o4 = this.checkStopNode(n5);
for (let a6 in t2) if (Object.prototype.hasOwnProperty.call(t2, a6)) if (void 0 === t2[a6]) this.isAttribute(a6) && (s2 += "");
else if (null === t2[a6]) this.isAttribute(a6) || a6 === this.options.cdataPropName || a6 === this.options.commentPropName ? s2 += "" : "?" === a6[0] ? s2 += this.indentate(e6) + "<" + a6 + "?" + this.tagEndChar : s2 += this.indentate(e6) + "<" + a6 + "/" + this.tagEndChar;
- else if (t2[a6] instanceof Date) s2 += this.buildTextValNode(t2[a6], a6, "", e6, n4);
+ else if (t2[a6] instanceof Date) s2 += this.buildTextValNode(t2[a6], a6, "", e6, n5);
else if ("object" != typeof t2[a6]) {
const h6 = this.isAttribute(a6);
- if (h6 && !this.ignoreAttributesFn(h6, r6)) i6 += this.buildAttrPairStr(h6, "" + t2[a6], o3);
+ if (h6 && !this.ignoreAttributesFn(h6, r6)) i6 += this.buildAttrPairStr(h6, "" + t2[a6], o4);
else if (!h6) if (a6 === this.options.textNodeName) {
let e7 = this.options.tagValueProcessor(a6, "" + t2[a6]);
s2 += this.replaceEntitiesValue(e7);
} else {
- n4.push(a6);
- const i7 = this.checkStopNode(n4);
- if (n4.pop(), i7) {
- const n5 = "" + t2[a6];
- s2 += "" === n5 ? this.indentate(e6) + "<" + a6 + this.closeTag(a6) + this.tagEndChar : this.indentate(e6) + "<" + a6 + ">" + n5 + "" + a6 + this.tagEndChar;
- } else s2 += this.buildTextValNode(t2[a6], a6, "", e6, n4);
+ n5.push(a6);
+ const i7 = this.checkStopNode(n5);
+ if (n5.pop(), i7) {
+ const n6 = "" + t2[a6];
+ s2 += "" === n6 ? this.indentate(e6) + "<" + a6 + this.closeTag(a6) + this.tagEndChar : this.indentate(e6) + "<" + a6 + ">" + n6 + "" + a6 + this.tagEndChar;
+ } else s2 += this.buildTextValNode(t2[a6], a6, "", e6, n5);
}
} else if (Array.isArray(t2[a6])) {
const i7 = t2[a6].length;
- let r7 = "", o4 = "";
+ let r7 = "", o5 = "";
for (let h6 = 0; h6 < i7; h6++) {
const i8 = t2[a6][h6];
if (void 0 === i8) ;
else if (null === i8) "?" === a6[0] ? s2 += this.indentate(e6) + "<" + a6 + "?" + this.tagEndChar : s2 += this.indentate(e6) + "<" + a6 + "/" + this.tagEndChar;
else if ("object" == typeof i8) if (this.options.oneListGroup) {
- n4.push(a6);
- const t3 = this.j2x(i8, e6 + 1, n4);
- n4.pop(), r7 += t3.val, this.options.attributesGroupName && i8.hasOwnProperty(this.options.attributesGroupName) && (o4 += t3.attrStr);
- } else r7 += this.processTextOrObjNode(i8, a6, e6, n4);
+ n5.push(a6);
+ const t3 = this.j2x(i8, e6 + 1, n5);
+ n5.pop(), r7 += t3.val, this.options.attributesGroupName && i8.hasOwnProperty(this.options.attributesGroupName) && (o5 += t3.attrStr);
+ } else r7 += this.processTextOrObjNode(i8, a6, e6, n5);
else if (this.options.oneListGroup) {
let t3 = this.options.tagValueProcessor(a6, i8);
t3 = this.replaceEntitiesValue(t3), r7 += t3;
} else {
- n4.push(a6);
- const t3 = this.checkStopNode(n4);
- if (n4.pop(), t3) {
+ n5.push(a6);
+ const t3 = this.checkStopNode(n5);
+ if (n5.pop(), t3) {
const t4 = "" + i8;
r7 += "" === t4 ? this.indentate(e6) + "<" + a6 + this.closeTag(a6) + this.tagEndChar : this.indentate(e6) + "<" + a6 + ">" + t4 + "" + a6 + this.tagEndChar;
- } else r7 += this.buildTextValNode(i8, a6, "", e6, n4);
+ } else r7 += this.buildTextValNode(i8, a6, "", e6, n5);
}
}
- this.options.oneListGroup && (r7 = this.buildObjectNode(r7, a6, o4, e6)), s2 += r7;
+ this.options.oneListGroup && (r7 = this.buildObjectNode(r7, a6, o5, e6)), s2 += r7;
} else if (this.options.attributesGroupName && a6 === this.options.attributesGroupName) {
- const e7 = Object.keys(t2[a6]), n5 = e7.length;
- for (let s3 = 0; s3 < n5; s3++) i6 += this.buildAttrPairStr(e7[s3], "" + t2[a6][e7[s3]], o3);
- } else s2 += this.processTextOrObjNode(t2[a6], a6, e6, n4);
+ const e7 = Object.keys(t2[a6]), n6 = e7.length;
+ for (let s3 = 0; s3 < n6; s3++) i6 += this.buildAttrPairStr(e7[s3], "" + t2[a6][e7[s3]], o4);
+ } else s2 += this.processTextOrObjNode(t2[a6], a6, e6, n5);
return { attrStr: i6, val: s2 };
- }, Gt.prototype.buildAttrPairStr = function(t2, e6, n4) {
- return n4 || (e6 = this.options.attributeValueProcessor(t2, "" + e6), e6 = this.replaceEntitiesValue(e6)), this.options.suppressBooleanAttributes && "true" === e6 ? " " + t2 : " " + t2 + '="' + Ot(e6) + '"';
+ }, Gt.prototype.buildAttrPairStr = function(t2, e6, n5) {
+ return n5 || (e6 = this.options.attributeValueProcessor(t2, "" + e6), e6 = this.replaceEntitiesValue(e6)), this.options.suppressBooleanAttributes && "true" === e6 ? " " + t2 : " " + t2 + '="' + Ot(e6) + '"';
}, Gt.prototype.extractAttributes = function(t2) {
if (!t2 || "object" != typeof t2) return null;
const e6 = {};
- let n4 = false;
+ let n5 = false;
if (this.options.attributesGroupName && t2[this.options.attributesGroupName]) {
const i6 = t2[this.options.attributesGroupName];
- for (let t3 in i6) Object.prototype.hasOwnProperty.call(i6, t3) && (e6[t3.startsWith(this.options.attributeNamePrefix) ? t3.substring(this.options.attributeNamePrefix.length) : t3] = Ot(i6[t3]), n4 = true);
+ for (let t3 in i6) Object.prototype.hasOwnProperty.call(i6, t3) && (e6[t3.startsWith(this.options.attributeNamePrefix) ? t3.substring(this.options.attributeNamePrefix.length) : t3] = Ot(i6[t3]), n5 = true);
} else for (let i6 in t2) {
if (!Object.prototype.hasOwnProperty.call(t2, i6)) continue;
const s2 = this.isAttribute(i6);
- s2 && (e6[s2] = Ot(t2[i6]), n4 = true);
+ s2 && (e6[s2] = Ot(t2[i6]), n5 = true);
}
- return n4 ? e6 : null;
+ return n5 ? e6 : null;
}, Gt.prototype.buildRawContent = function(t2) {
if ("string" == typeof t2) return t2;
if ("object" != typeof t2 || null === t2) return String(t2);
if (void 0 !== t2[this.options.textNodeName]) return t2[this.options.textNodeName];
let e6 = "";
- for (let n4 in t2) {
- if (!Object.prototype.hasOwnProperty.call(t2, n4)) continue;
- if (this.isAttribute(n4)) continue;
- if (this.options.attributesGroupName && n4 === this.options.attributesGroupName) continue;
- const i6 = t2[n4];
- if (n4 === this.options.textNodeName) e6 += i6;
+ for (let n5 in t2) {
+ if (!Object.prototype.hasOwnProperty.call(t2, n5)) continue;
+ if (this.isAttribute(n5)) continue;
+ if (this.options.attributesGroupName && n5 === this.options.attributesGroupName) continue;
+ const i6 = t2[n5];
+ if (n5 === this.options.textNodeName) e6 += i6;
else if (Array.isArray(i6)) {
- for (let t3 of i6) if ("string" == typeof t3 || "number" == typeof t3) e6 += `<${n4}>${t3}${n4}>`;
+ for (let t3 of i6) if ("string" == typeof t3 || "number" == typeof t3) e6 += `<${n5}>${t3}${n5}>`;
else if ("object" == typeof t3 && null !== t3) {
const i7 = this.buildRawContent(t3), s2 = this.buildAttributesForStopNode(t3);
- e6 += "" === i7 ? `<${n4}${s2}/>` : `<${n4}${s2}>${i7}${n4}>`;
+ e6 += "" === i7 ? `<${n5}${s2}/>` : `<${n5}${s2}>${i7}${n5}>`;
}
} else if ("object" == typeof i6 && null !== i6) {
const t3 = this.buildRawContent(i6), s2 = this.buildAttributesForStopNode(i6);
- e6 += "" === t3 ? `<${n4}${s2}/>` : `<${n4}${s2}>${t3}${n4}>`;
- } else e6 += `<${n4}>${i6}${n4}>`;
+ e6 += "" === t3 ? `<${n5}${s2}/>` : `<${n5}${s2}>${t3}${n5}>`;
+ } else e6 += `<${n5}>${i6}${n5}>`;
}
return e6;
}, Gt.prototype.buildAttributesForStopNode = function(t2) {
if (!t2 || "object" != typeof t2) return "";
let e6 = "";
if (this.options.attributesGroupName && t2[this.options.attributesGroupName]) {
- const n4 = t2[this.options.attributesGroupName];
- for (let t3 in n4) {
- if (!Object.prototype.hasOwnProperty.call(n4, t3)) continue;
- const i6 = t3.startsWith(this.options.attributeNamePrefix) ? t3.substring(this.options.attributeNamePrefix.length) : t3, s2 = n4[t3];
+ const n5 = t2[this.options.attributesGroupName];
+ for (let t3 in n5) {
+ if (!Object.prototype.hasOwnProperty.call(n5, t3)) continue;
+ const i6 = t3.startsWith(this.options.attributeNamePrefix) ? t3.substring(this.options.attributeNamePrefix.length) : t3, s2 = n5[t3];
true === s2 && this.options.suppressBooleanAttributes ? e6 += " " + i6 : e6 += " " + i6 + '="' + s2 + '"';
}
- } else for (let n4 in t2) {
- if (!Object.prototype.hasOwnProperty.call(t2, n4)) continue;
- const i6 = this.isAttribute(n4);
+ } else for (let n5 in t2) {
+ if (!Object.prototype.hasOwnProperty.call(t2, n5)) continue;
+ const i6 = this.isAttribute(n5);
if (i6) {
- const s2 = t2[n4];
+ const s2 = t2[n5];
true === s2 && this.options.suppressBooleanAttributes ? e6 += " " + i6 : e6 += " " + i6 + '="' + s2 + '"';
}
}
return e6;
- }, Gt.prototype.buildObjectNode = function(t2, e6, n4, i6) {
- if ("" === t2) return "?" === e6[0] ? this.indentate(i6) + "<" + e6 + n4 + "?" + this.tagEndChar : this.indentate(i6) + "<" + e6 + n4 + this.closeTag(e6) + this.tagEndChar;
+ }, Gt.prototype.buildObjectNode = function(t2, e6, n5, i6) {
+ if ("" === t2) return "?" === e6[0] ? this.indentate(i6) + "<" + e6 + n5 + "?" + this.tagEndChar : this.indentate(i6) + "<" + e6 + n5 + this.closeTag(e6) + this.tagEndChar;
{
let s2 = "" + e6 + this.tagEndChar, r6 = "";
- return "?" === e6[0] && (r6 = "?", s2 = ""), !n4 && "" !== n4 || -1 !== t2.indexOf("<") ? false !== this.options.commentPropName && e6 === this.options.commentPropName && 0 === r6.length ? this.indentate(i6) + `` + this.newLine : this.indentate(i6) + "<" + e6 + n4 + r6 + this.tagEndChar + t2 + this.indentate(i6) + s2 : this.indentate(i6) + "<" + e6 + n4 + r6 + ">" + t2 + s2;
+ return "?" === e6[0] && (r6 = "?", s2 = ""), !n5 && "" !== n5 || -1 !== t2.indexOf("<") ? false !== this.options.commentPropName && e6 === this.options.commentPropName && 0 === r6.length ? this.indentate(i6) + `` + this.newLine : this.indentate(i6) + "<" + e6 + n5 + r6 + this.tagEndChar + t2 + this.indentate(i6) + s2 : this.indentate(i6) + "<" + e6 + n5 + r6 + ">" + t2 + s2;
}
}, Gt.prototype.closeTag = function(t2) {
let e6 = "";
@@ -38997,7 +38968,7 @@ var require_fxp = __commonJS({
if (!this.stopNodeExpressions || 0 === this.stopNodeExpressions.length) return false;
for (let e6 = 0; e6 < this.stopNodeExpressions.length; e6++) if (t2.matches(this.stopNodeExpressions[e6])) return true;
return false;
- }, Gt.prototype.buildTextValNode = function(t2, e6, n4, i6, s2) {
+ }, Gt.prototype.buildTextValNode = function(t2, e6, n5, i6, s2) {
if (false !== this.options.cdataPropName && e6 === this.options.cdataPropName) {
const e7 = Pt(t2);
return this.indentate(i6) + `` + this.newLine;
@@ -39006,15 +38977,15 @@ var require_fxp = __commonJS({
const e7 = Ct(t2);
return this.indentate(i6) + `` + this.newLine;
}
- if ("?" === e6[0]) return this.indentate(i6) + "<" + e6 + n4 + "?" + this.tagEndChar;
+ if ("?" === e6[0]) return this.indentate(i6) + "<" + e6 + n5 + "?" + this.tagEndChar;
{
let s3 = this.options.tagValueProcessor(e6, t2);
- return s3 = this.replaceEntitiesValue(s3), "" === s3 ? this.indentate(i6) + "<" + e6 + n4 + this.closeTag(e6) + this.tagEndChar : this.indentate(i6) + "<" + e6 + n4 + ">" + s3 + "" + e6 + this.tagEndChar;
+ return s3 = this.replaceEntitiesValue(s3), "" === s3 ? this.indentate(i6) + "<" + e6 + n5 + this.closeTag(e6) + this.tagEndChar : this.indentate(i6) + "<" + e6 + n5 + ">" + s3 + "" + e6 + this.tagEndChar;
}
}, Gt.prototype.replaceEntitiesValue = function(t2) {
if (t2 && t2.length > 0 && this.options.processEntities) for (let e6 = 0; e6 < this.options.entities.length; e6++) {
- const n4 = this.options.entities[e6];
- t2 = t2.replace(n4.regex, n4.val);
+ const n5 = this.options.entities[e6];
+ t2 = t2.replace(n5.regex, n5.val);
}
return t2;
};
@@ -41278,7 +41249,7 @@ var init_CreateTokenCommand = __esm({
init_endpoints();
init_EndpointParameters();
init_schemas_0();
- CreateTokenCommand = class extends Command2.classBuilder().ep(commonParams).m(function(Command3, cs, config, o2) {
+ CreateTokenCommand = class extends Command2.classBuilder().ep(commonParams).m(function(Command3, cs, config, o3) {
return [getEndpointPlugin(config, Command3.getEndpointParameterInstructions())];
}).s("AWSSSOOIDCService", "CreateToken", {}).n("SSOOIDCClient", "CreateTokenCommand").sc(CreateToken$).build() {
};
@@ -41385,28 +41356,27 @@ var init_sso_oidc = __esm({
// node_modules/@aws-sdk/token-providers/dist-cjs/index.js
var require_dist_cjs12 = __commonJS({
"node_modules/@aws-sdk/token-providers/dist-cjs/index.js"(exports2) {
- "use strict";
- var client = (init_client3(), __toCommonJS(client_exports2));
- var httpAuthSchemes = (init_httpAuthSchemes2(), __toCommonJS(httpAuthSchemes_exports));
- var config = (init_config2(), __toCommonJS(config_exports));
- var node_fs = require("node:fs");
+ var { setTokenFeature: setTokenFeature2 } = (init_client3(), __toCommonJS(client_exports2));
+ var { getBearerTokenEnvKey: getBearerTokenEnvKey2 } = (init_httpAuthSchemes2(), __toCommonJS(httpAuthSchemes_exports));
+ var { TokenProviderError: TokenProviderError2, getSSOTokenFilepath: getSSOTokenFilepath2, parseKnownFiles: parseKnownFiles2, getProfileName: getProfileName2, loadSsoSessionData: loadSsoSessionData2, getSSOTokenFromFile: getSSOTokenFromFile2, memoize: memoize2, chain: chain2 } = (init_config2(), __toCommonJS(config_exports));
+ var { promises: promises3 } = require("node:fs");
var fromEnvSigningName = ({ logger: logger2, signingName } = {}) => async () => {
logger2?.debug?.("@aws-sdk/token-providers - fromEnvSigningName");
if (!signingName) {
- throw new config.TokenProviderError("Please pass 'signingName' to compute environment variable key", { logger: logger2 });
+ throw new TokenProviderError2("Please pass 'signingName' to compute environment variable key", { logger: logger2 });
}
- const bearerTokenKey = httpAuthSchemes.getBearerTokenEnvKey(signingName);
+ const bearerTokenKey = getBearerTokenEnvKey2(signingName);
if (!(bearerTokenKey in process.env)) {
- throw new config.TokenProviderError(`Token not present in '${bearerTokenKey}' environment variable`, { logger: logger2 });
+ throw new TokenProviderError2(`Token not present in '${bearerTokenKey}' environment variable`, { logger: logger2 });
}
const token = { token: process.env[bearerTokenKey] };
- client.setTokenFeature(token, "BEARER_SERVICE_ENV_VARS", "3");
+ setTokenFeature2(token, "BEARER_SERVICE_ENV_VARS", "3");
return token;
};
var EXPIRE_WINDOW_MS = 5 * 60 * 1e3;
var REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`;
var getSsoOidcClient = async (ssoRegion, init = {}, callerClientConfig) => {
- const { SSOOIDCClient: SSOOIDCClient2 } = await Promise.resolve().then(() => (init_sso_oidc(), sso_oidc_exports));
+ const { SSOOIDCClient: SSOOIDCClient2 } = (init_sso_oidc(), __toCommonJS(sso_oidc_exports));
const coalesce2 = (prop) => init.clientConfig?.[prop] ?? init.parentClientConfig?.[prop] ?? callerClientConfig?.[prop];
const ssoOidcClient = new SSOOIDCClient2(Object.assign({}, init.clientConfig ?? {}, {
region: ssoRegion ?? init.clientConfig?.region,
@@ -41416,7 +41386,7 @@ var require_dist_cjs12 = __commonJS({
return ssoOidcClient;
};
var getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}, callerClientConfig) => {
- const { CreateTokenCommand: CreateTokenCommand2 } = await Promise.resolve().then(() => (init_sso_oidc(), sso_oidc_exports));
+ const { CreateTokenCommand: CreateTokenCommand2 } = (init_sso_oidc(), __toCommonJS(sso_oidc_exports));
const ssoOidcClient = await getSsoOidcClient(ssoRegion, init, callerClientConfig);
return ssoOidcClient.send(new CreateTokenCommand2({
clientId: ssoToken.clientId,
@@ -41427,51 +41397,51 @@ var require_dist_cjs12 = __commonJS({
};
var validateTokenExpiry = (token) => {
if (token.expiration && token.expiration.getTime() < Date.now()) {
- throw new config.TokenProviderError(`Token is expired. ${REFRESH_MESSAGE}`, false);
+ throw new TokenProviderError2(`Token is expired. ${REFRESH_MESSAGE}`, false);
}
};
var validateTokenKey = (key, value, forRefresh = false) => {
if (typeof value === "undefined") {
- throw new config.TokenProviderError(`Value not present for '${key}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${REFRESH_MESSAGE}`, false);
+ throw new TokenProviderError2(`Value not present for '${key}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${REFRESH_MESSAGE}`, false);
}
};
- var { writeFile: writeFile2 } = node_fs.promises;
+ var { writeFile: writeFile2 } = promises3;
var writeSSOTokenToFile = (id, ssoToken) => {
- const tokenFilepath = config.getSSOTokenFilepath(id);
+ const tokenFilepath = getSSOTokenFilepath2(id);
const tokenString = JSON.stringify(ssoToken, null, 2);
return writeFile2(tokenFilepath, tokenString);
};
var lastRefreshAttemptTime = /* @__PURE__ */ new Date(0);
var fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
init.logger?.debug("@aws-sdk/token-providers - fromSso");
- const profiles = await config.parseKnownFiles(init);
- const profileName = config.getProfileName({
+ const profiles = await parseKnownFiles2(init);
+ const profileName = getProfileName2({
profile: init.profile ?? callerClientConfig?.profile
});
const profile = profiles[profileName];
if (!profile) {
- throw new config.TokenProviderError(`Profile '${profileName}' could not be found in shared credentials file.`, false);
+ throw new TokenProviderError2(`Profile '${profileName}' could not be found in shared credentials file.`, false);
} else if (!profile["sso_session"]) {
- throw new config.TokenProviderError(`Profile '${profileName}' is missing required property 'sso_session'.`);
+ throw new TokenProviderError2(`Profile '${profileName}' is missing required property 'sso_session'.`);
}
const ssoSessionName = profile["sso_session"];
- const ssoSessions = await config.loadSsoSessionData(init);
+ const ssoSessions = await loadSsoSessionData2(init);
const ssoSession = ssoSessions[ssoSessionName];
if (!ssoSession) {
- throw new config.TokenProviderError(`Sso session '${ssoSessionName}' could not be found in shared credentials file.`, false);
+ throw new TokenProviderError2(`Sso session '${ssoSessionName}' could not be found in shared credentials file.`, false);
}
for (const ssoSessionRequiredKey of ["sso_start_url", "sso_region"]) {
if (!ssoSession[ssoSessionRequiredKey]) {
- throw new config.TokenProviderError(`Sso session '${ssoSessionName}' is missing required property '${ssoSessionRequiredKey}'.`, false);
+ throw new TokenProviderError2(`Sso session '${ssoSessionName}' is missing required property '${ssoSessionRequiredKey}'.`, false);
}
}
ssoSession["sso_start_url"];
const ssoRegion = ssoSession["sso_region"];
let ssoToken;
try {
- ssoToken = await config.getSSOTokenFromFile(ssoSessionName);
+ ssoToken = await getSSOTokenFromFile2(ssoSessionName);
} catch (e5) {
- throw new config.TokenProviderError(`The SSO session token associated with profile=${profileName} was not found or is invalid. ${REFRESH_MESSAGE}`, false);
+ throw new TokenProviderError2(`The SSO session token associated with profile=${profileName} was not found or is invalid. ${REFRESH_MESSAGE}`, false);
}
validateTokenKey("accessToken", ssoToken.accessToken);
validateTokenKey("expiresAt", ssoToken.expiresAt);
@@ -41514,12 +41484,12 @@ var require_dist_cjs12 = __commonJS({
var fromStatic2 = ({ token, logger: logger2 }) => async () => {
logger2?.debug("@aws-sdk/token-providers - fromStatic");
if (!token || !token.token) {
- throw new config.TokenProviderError(`Please pass a valid token to fromStatic`, false);
+ throw new TokenProviderError2(`Please pass a valid token to fromStatic`, false);
}
return token;
};
- var nodeProvider = (init = {}) => config.memoize(config.chain(fromSso(init), async () => {
- throw new config.TokenProviderError("Could not load token from any providers", false);
+ var nodeProvider = (init = {}) => memoize2(chain2(fromSso(init), async () => {
+ throw new TokenProviderError2("Could not load token from any providers", false);
}), (token) => token.expiration !== void 0 && token.expiration.getTime() - Date.now() < 3e5, (token) => token.expiration !== void 0);
exports2.fromEnvSigningName = fromEnvSigningName;
exports2.fromSso = fromSso;
@@ -42129,7 +42099,7 @@ var init_GetRoleCredentialsCommand = __esm({
init_endpoints();
init_EndpointParameters2();
init_schemas_02();
- GetRoleCredentialsCommand = class extends Command2.classBuilder().ep(commonParams2).m(function(Command3, cs, config, o2) {
+ GetRoleCredentialsCommand = class extends Command2.classBuilder().ep(commonParams2).m(function(Command3, cs, config, o3) {
return [getEndpointPlugin(config, Command3.getEndpointParameterInstructions())];
}).s("SWBPortalService", "GetRoleCredentials", {}).n("SSOClient", "GetRoleCredentialsCommand").sc(GetRoleCredentials$).build() {
};
@@ -42201,23 +42171,21 @@ var init_sso = __esm({
}
});
-// node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BKDNrsal.js
-var require_loadSso_BKDNrsal = __commonJS({
- "node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BKDNrsal.js"(exports2) {
- "use strict";
- var sso = (init_sso(), __toCommonJS(sso_exports));
- exports2.GetRoleCredentialsCommand = sso.GetRoleCredentialsCommand;
- exports2.SSOClient = sso.SSOClient;
+// node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BGYXHf8s.js
+var require_loadSso_BGYXHf8s = __commonJS({
+ "node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BGYXHf8s.js"(exports2) {
+ var { GetRoleCredentialsCommand: GetRoleCredentialsCommand2, SSOClient: SSOClient2 } = (init_sso(), __toCommonJS(sso_exports));
+ exports2.GetRoleCredentialsCommand = GetRoleCredentialsCommand2;
+ exports2.SSOClient = SSOClient2;
}
});
// node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js
var require_dist_cjs13 = __commonJS({
"node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js"(exports2) {
- "use strict";
- var config = (init_config2(), __toCommonJS(config_exports));
- var client = (init_client3(), __toCommonJS(client_exports2));
- var tokenProviders = require_dist_cjs12();
+ var { CredentialsProviderError: CredentialsProviderError2, getSSOTokenFromFile: getSSOTokenFromFile2, getProfileName: getProfileName2, parseKnownFiles: parseKnownFiles2, loadSsoSessionData: loadSsoSessionData2 } = (init_config2(), __toCommonJS(config_exports));
+ var { setCredentialFeature: setCredentialFeature2 } = (init_client3(), __toCommonJS(client_exports2));
+ var { fromSso } = require_dist_cjs12();
var isSsoProfile = (arg) => arg && (typeof arg.sso_start_url === "string" || typeof arg.sso_account_id === "string" || typeof arg.sso_session === "string" || typeof arg.sso_region === "string" || typeof arg.sso_role_name === "string");
var SHOULD_FAIL_CREDENTIAL_CHAIN = false;
var resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, clientConfig, parentClientConfig, callerClientConfig, profile, filepath, configFilepath, ignoreCache, logger: logger2 }) => {
@@ -42225,42 +42193,43 @@ var require_dist_cjs13 = __commonJS({
const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`;
if (ssoSession) {
try {
- const _token = await tokenProviders.fromSso({
+ const _token = await fromSso({
profile,
filepath,
configFilepath,
- ignoreCache
- })();
+ ignoreCache,
+ clientConfig,
+ parentClientConfig,
+ logger: logger2
+ })({ callerClientConfig });
token = {
accessToken: _token.token,
expiresAt: new Date(_token.expiration).toISOString()
};
} catch (e5) {
- throw new config.CredentialsProviderError(e5.message, {
+ throw new CredentialsProviderError2(e5.message, {
tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
logger: logger2
});
}
} else {
try {
- token = await config.getSSOTokenFromFile(ssoStartUrl);
+ token = await getSSOTokenFromFile2(ssoStartUrl);
} catch (e5) {
- throw new config.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${refreshMessage}`, {
+ throw new CredentialsProviderError2(`The SSO session associated with this profile is invalid. ${refreshMessage}`, {
tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
logger: logger2
});
}
}
if (new Date(token.expiresAt).getTime() - Date.now() <= 0) {
- throw new config.CredentialsProviderError(`The SSO session associated with this profile has expired. ${refreshMessage}`, {
+ throw new CredentialsProviderError2(`The SSO session associated with this profile has expired. ${refreshMessage}`, {
tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
logger: logger2
});
}
const { accessToken } = token;
- const { SSOClient: SSOClient2, GetRoleCredentialsCommand: GetRoleCredentialsCommand2 } = await Promise.resolve().then(function() {
- return require_loadSso_BKDNrsal();
- });
+ const { SSOClient: SSOClient2, GetRoleCredentialsCommand: GetRoleCredentialsCommand2 } = require_loadSso_BGYXHf8s();
const sso = ssoClient || new SSOClient2(Object.assign({}, clientConfig ?? {}, {
logger: clientConfig?.logger ?? callerClientConfig?.logger ?? parentClientConfig?.logger,
region: clientConfig?.region ?? ssoRegion,
@@ -42274,14 +42243,14 @@ var require_dist_cjs13 = __commonJS({
accessToken
}));
} catch (e5) {
- throw new config.CredentialsProviderError(e5, {
+ throw new CredentialsProviderError2(e5, {
tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
logger: logger2
});
}
const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration, credentialScope, accountId } = {} } = ssoResp;
if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) {
- throw new config.CredentialsProviderError("SSO returns an invalid temporary credential.", {
+ throw new CredentialsProviderError2("SSO returns an invalid temporary credential.", {
tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
logger: logger2
});
@@ -42295,16 +42264,16 @@ var require_dist_cjs13 = __commonJS({
...accountId && { accountId }
};
if (ssoSession) {
- client.setCredentialFeature(credentials, "CREDENTIALS_SSO", "s");
+ setCredentialFeature2(credentials, "CREDENTIALS_SSO", "s");
} else {
- client.setCredentialFeature(credentials, "CREDENTIALS_SSO_LEGACY", "u");
+ setCredentialFeature2(credentials, "CREDENTIALS_SSO_LEGACY", "u");
}
return credentials;
};
var validateSsoProfile = (profile, logger2) => {
const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile;
if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) {
- throw new config.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(profile).join(", ")}
+ throw new CredentialsProviderError2(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(profile).join(", ")}
Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`, { tryNextLink: false, logger: logger2 });
}
return profile;
@@ -42313,32 +42282,32 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht
init.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");
const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;
const { ssoClient } = init;
- const profileName = config.getProfileName({
+ const profileName = getProfileName2({
profile: init.profile ?? callerClientConfig?.profile
});
if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
- const profiles = await config.parseKnownFiles(init);
+ const profiles = await parseKnownFiles2(init);
const profile = profiles[profileName];
if (!profile) {
- throw new config.CredentialsProviderError(`Profile ${profileName} was not found.`, { logger: init.logger });
+ throw new CredentialsProviderError2(`Profile ${profileName} was not found.`, { logger: init.logger });
}
if (!isSsoProfile(profile)) {
- throw new config.CredentialsProviderError(`Profile ${profileName} is not configured with SSO credentials.`, {
+ throw new CredentialsProviderError2(`Profile ${profileName} is not configured with SSO credentials.`, {
logger: init.logger
});
}
if (profile?.sso_session) {
- const ssoSessions = await config.loadSsoSessionData(init);
+ const ssoSessions = await loadSsoSessionData2(init);
const session = ssoSessions[profile.sso_session];
const conflictMsg = ` configurations in profile ${profileName} and sso-session ${profile.sso_session}`;
if (ssoRegion && ssoRegion !== session.sso_region) {
- throw new config.CredentialsProviderError(`Conflicting SSO region` + conflictMsg, {
+ throw new CredentialsProviderError2(`Conflicting SSO region` + conflictMsg, {
tryNextLink: false,
logger: init.logger
});
}
if (ssoStartUrl && ssoStartUrl !== session.sso_start_url) {
- throw new config.CredentialsProviderError(`Conflicting SSO start_url` + conflictMsg, {
+ throw new CredentialsProviderError2(`Conflicting SSO start_url` + conflictMsg, {
tryNextLink: false,
logger: init.logger
});
@@ -42364,7 +42333,7 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht
logger: init.logger
});
} else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) {
- throw new config.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"', { tryNextLink: false, logger: init.logger });
+ throw new CredentialsProviderError2('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"', { tryNextLink: false, logger: init.logger });
} else {
return resolveSSOCredentials({
ssoStartUrl,
@@ -42467,51 +42436,72 @@ var init_EndpointParameters3 = __esm({
});
// node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/bdd.js
-var m, a3, b3, c3, d3, e3, f3, g3, h3, i3, j3, k3, l, _data3, root3, r3, nodes3, bdd3;
+var p, a3, b3, c3, d3, e3, f3, g3, h3, i3, j3, k3, l, m, n, o, _data3, root3, r3, nodes3, bdd3;
var init_bdd3 = __esm({
"node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/bdd.js"() {
init_endpoints();
- m = "ref";
+ p = "ref";
a3 = -1;
b3 = true;
c3 = "isSet";
- d3 = "PartitionResult";
- e3 = "booleanEquals";
- f3 = "getAttr";
- g3 = "stringEquals";
- h3 = { [m]: "Endpoint" };
- i3 = { [m]: d3 };
- j3 = { "fn": f3, "argv": [i3, "name"] };
- k3 = {};
- l = [{ [m]: "Region" }];
+ d3 = "booleanEquals";
+ e3 = "PartitionResult";
+ f3 = "stringEquals";
+ g3 = "getAttr";
+ h3 = "https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}";
+ i3 = { [p]: "Endpoint" };
+ j3 = { "fn": g3, "argv": [{ [p]: e3 }, "name"] };
+ k3 = { [p]: e3 };
+ l = { [p]: "Region" };
+ m = { "authSchemes": [{ "name": "sigv4", "signingName": "signin", "signingRegion": "{Region}" }] };
+ n = {};
+ o = [l];
_data3 = {
conditions: [
- [c3, [h3]],
- [c3, l],
- ["aws.partition", l, d3],
- [e3, [{ [m]: "UseFIPS" }, b3]],
- [e3, [{ [m]: "UseDualStack" }, b3]],
- [e3, [{ fn: f3, argv: [i3, "supportsDualStack"] }, b3]],
- [e3, [{ fn: f3, argv: [i3, "supportsFIPS"] }, b3]],
- [g3, [j3, "aws"]],
- [g3, [j3, "aws-cn"]],
- [g3, [j3, "aws-us-gov"]]
+ [c3, o],
+ [d3, [{ fn: "coalesce", argv: [{ [p]: "IsControlPlane" }, false] }, b3]],
+ [c3, [i3]],
+ ["aws.partition", o, e3],
+ [d3, [{ [p]: "UseFIPS" }, b3]],
+ [d3, [{ [p]: "UseDualStack" }, b3]],
+ [f3, [j3, "aws"]],
+ [f3, [j3, "aws-cn"]],
+ [d3, [{ fn: g3, argv: [k3, "supportsDualStack"] }, b3]],
+ [f3, [l, "us-gov-west-1"]],
+ [f3, [j3, "aws-us-gov"]],
+ [d3, [{ fn: g3, argv: [k3, "supportsFIPS"] }, b3]],
+ [f3, [j3, "aws-iso"]],
+ [f3, [j3, "aws-iso-b"]],
+ [f3, [j3, "aws-iso-f"]],
+ [f3, [j3, "aws-iso-e"]],
+ [f3, [j3, "aws-eusc"]]
],
results: [
[a3],
+ ["https://signin.{Region}.api.aws", m],
+ ["https://signin.{Region}.api.amazonwebservices.com.cn", m],
+ [h3, m],
+ ["https://{Region}.signin.aws.amazon.com", n],
+ ["https://{Region}.signin.amazonaws.cn", n],
+ ["https://{Region}.signin.amazonaws-us-gov.com", n],
+ ["https://{Region}.signin.c2shome.ic.gov", n],
+ ["https://{Region}.signin.sc2shome.sgov.gov", n],
+ ["https://{Region}.signin.csphome.hci.ic.gov", n],
+ ["https://{Region}.signin.csphome.adc-e.uk", n],
+ ["https://{Region}.signin.amazonaws-eusc.eu", n],
+ ["https://signin-fips.amazonaws-us-gov.com", n],
+ ["https://{Region}.signin-fips.amazonaws-us-gov.com", n],
+ ["https://{Region}.signin.{PartitionResult#dnsSuffix}", n],
[a3, "Invalid Configuration: FIPS and custom endpoint are not supported"],
[a3, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
- [h3, k3],
- ["https://{Region}.signin.aws.amazon.com", k3],
- ["https://{Region}.signin.amazonaws.cn", k3],
- ["https://{Region}.signin.amazonaws-us-gov.com", k3],
- ["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k3],
+ [i3, n],
+ ["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", n],
[a3, "FIPS and DualStack are enabled, but this partition does not support one or both"],
- ["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}", k3],
+ ["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}", n],
[a3, "FIPS is enabled but this partition does not support FIPS"],
- ["https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}", k3],
+ [h3, n],
[a3, "DualStack is enabled but this partition does not support DualStack"],
- ["https://signin.{Region}.{PartitionResult#dnsSuffix}", k3],
+ ["https://signin.{Region}.{PartitionResult#dnsSuffix}", n],
[a3, "Invalid Configuration: Missing Region"]
]
};
@@ -42522,48 +42512,99 @@ var init_bdd3 = __esm({
1,
-1,
0,
- 15,
- 3,
- 1,
4,
- r3 + 14,
+ 3,
2,
+ 30,
+ r3 + 25,
+ 1,
+ 24,
5,
- r3 + 14,
- 3,
- 11,
+ 2,
+ 30,
6,
+ 3,
+ 7,
+ 26,
4,
+ 18,
+ 8,
+ 5,
+ 17,
+ 9,
+ 6,
+ r3 + 4,
10,
7,
- 7,
- r3 + 4,
- 8,
- 8,
r3 + 5,
- 9,
- 9,
+ 11,
+ 10,
r3 + 6,
- r3 + 13,
- 5,
- r3 + 11,
- r3 + 12,
- 4,
- 13,
12,
- 6,
- r3 + 9,
- r3 + 10,
- 5,
- 14,
- r3 + 8,
- 6,
+ 12,
r3 + 7,
+ 13,
+ 13,
r3 + 8,
- 3,
- r3 + 1,
+ 14,
+ 14,
+ r3 + 9,
+ 15,
+ 15,
+ r3 + 10,
16,
+ 16,
+ r3 + 11,
+ r3 + 14,
+ 8,
+ r3 + 22,
+ r3 + 23,
+ 5,
+ 22,
+ 19,
+ 9,
+ r3 + 12,
+ 20,
+ 10,
+ r3 + 13,
+ 21,
+ 11,
+ r3 + 20,
+ r3 + 21,
+ 8,
+ 23,
+ r3 + 19,
+ 11,
+ r3 + 18,
+ r3 + 19,
+ 2,
+ 29,
+ 25,
+ 3,
+ 32,
+ 26,
4,
+ 27,
+ r3 + 25,
+ 5,
+ r3 + 25,
+ 28,
+ 9,
+ r3 + 12,
+ r3 + 25,
+ 3,
+ 32,
+ 30,
+ 4,
+ r3 + 15,
+ 31,
+ 5,
+ r3 + 16,
+ r3 + 17,
+ 6,
+ r3 + 1,
+ 33,
+ 7,
r3 + 2,
r3 + 3
]);
@@ -42580,7 +42621,7 @@ var init_endpointResolver3 = __esm({
init_bdd3();
cache3 = new EndpointCache({
size: 50,
- params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
+ params: ["Endpoint", "IsControlPlane", "Region", "UseDualStack", "UseFIPS"]
});
defaultEndpointResolver3 = (endpointParams, context = {}) => {
return cache3.get(endpointParams, () => decideEndpoint(bdd3, {
@@ -43037,7 +43078,10 @@ var init_CreateOAuth2TokenCommand = __esm({
init_endpoints();
init_EndpointParameters3();
init_schemas_03();
- CreateOAuth2TokenCommand = class extends Command2.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o2) {
+ CreateOAuth2TokenCommand = class extends Command2.classBuilder().ep({
+ ...commonParams3,
+ IsControlPlane: { type: "staticContextParams", value: false }
+ }).m(function(Command3, cs, config, o3) {
return [getEndpointPlugin(config, Command3.getEndpointParameterInstructions())];
}).s("Signin", "CreateOAuth2Token", {}).n("SigninClient", "CreateOAuth2TokenCommand").sc(CreateOAuth2Token$).build() {
};
@@ -43073,9 +43117,12 @@ var init_enums2 = __esm({
"node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/enums.js"() {
OAuth2ErrorCode = {
AUTHCODE_EXPIRED: "AUTHCODE_EXPIRED",
+ CONFLICT: "CONFLICT",
INSUFFICIENT_PERMISSIONS: "INSUFFICIENT_PERMISSIONS",
INVALID_REQUEST: "INVALID_REQUEST",
+ RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND",
SERVER_ERROR: "server_error",
+ SERVICE_QUOTA_EXCEEDED: "SERVICE_QUOTA_EXCEEDED",
TOKEN_EXPIRED: "TOKEN_EXPIRED",
USER_CREDENTIALS_CHANGED: "USER_CREDENTIALS_CHANGED"
};
@@ -43131,14 +43178,13 @@ var init_signin = __esm({
// node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js
var require_dist_cjs14 = __commonJS({
"node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js"(exports2) {
- "use strict";
- var client = (init_client3(), __toCommonJS(client_exports2));
- var config = (init_config2(), __toCommonJS(config_exports));
- var protocols2 = (init_protocols(), __toCommonJS(protocols_exports));
- var node_crypto = require("node:crypto");
- var node_fs = require("node:fs");
- var node_os = require("node:os");
- var node_path = require("node:path");
+ var { setCredentialFeature: setCredentialFeature2 } = (init_client3(), __toCommonJS(client_exports2));
+ var { CredentialsProviderError: CredentialsProviderError2, readFile: readFile4, parseKnownFiles: parseKnownFiles2, getProfileName: getProfileName2 } = (init_config2(), __toCommonJS(config_exports));
+ var { HttpRequest: HttpRequest2 } = (init_protocols(), __toCommonJS(protocols_exports));
+ var { createHash: createHash5, createPrivateKey, createPublicKey, sign } = require("node:crypto");
+ var { promises: promises3 } = require("node:fs");
+ var { homedir: homedir3 } = require("node:os");
+ var { dirname: dirname4, join: join7 } = require("node:path");
var LoginCredentialsFetcher = class _LoginCredentialsFetcher {
profileData;
init;
@@ -43152,7 +43198,7 @@ var require_dist_cjs14 = __commonJS({
async loadCredentials() {
const token = await this.loadToken();
if (!token) {
- throw new config.CredentialsProviderError(`Failed to load a token for session ${this.loginSession}, please re-authenticate using aws login`, { tryNextLink: false, logger: this.logger });
+ throw new CredentialsProviderError2(`Failed to load a token for session ${this.loginSession}, please re-authenticate using aws login`, { tryNextLink: false, logger: this.logger });
}
const accessToken = token.accessToken;
const now = Date.now();
@@ -43176,14 +43222,14 @@ var require_dist_cjs14 = __commonJS({
return this.profileData.login_session;
}
async refresh(token) {
- const { SigninClient: SigninClient2, CreateOAuth2TokenCommand: CreateOAuth2TokenCommand2 } = await Promise.resolve().then(() => (init_signin(), signin_exports));
+ const { SigninClient: SigninClient2, CreateOAuth2TokenCommand: CreateOAuth2TokenCommand2 } = (init_signin(), __toCommonJS(signin_exports));
const { logger: logger2, userAgentAppId } = this.callerClientConfig ?? {};
const isH22 = (requestHandler2) => {
return requestHandler2?.metadata?.handlerProtocol === "h2";
};
const requestHandler = isH22(this.callerClientConfig?.requestHandler) ? void 0 : this.callerClientConfig?.requestHandler;
const region = this.profileData.region ?? await this.callerClientConfig?.region?.() ?? process.env.AWS_REGION;
- const client2 = new SigninClient2({
+ const client = new SigninClient2({
credentials: {
accessKeyId: "",
secretAccessKey: ""
@@ -43194,7 +43240,7 @@ var require_dist_cjs14 = __commonJS({
userAgentAppId,
...this.init?.clientConfig
});
- this.createDPoPInterceptor(client2.middlewareStack);
+ this.createDPoPInterceptor(client.middlewareStack);
const commandInput = {
tokenInput: {
clientId: token.clientId,
@@ -43203,11 +43249,11 @@ var require_dist_cjs14 = __commonJS({
}
};
try {
- const response = await client2.send(new CreateOAuth2TokenCommand2(commandInput));
+ const response = await client.send(new CreateOAuth2TokenCommand2(commandInput));
const { accessKeyId, secretAccessKey, sessionToken } = response.tokenOutput?.accessToken ?? {};
const { refreshToken, expiresIn } = response.tokenOutput ?? {};
if (!accessKeyId || !secretAccessKey || !sessionToken || !refreshToken) {
- throw new config.CredentialsProviderError("Token refresh response missing required fields", {
+ throw new CredentialsProviderError2("Token refresh response missing required fields", {
logger: this.logger,
tryNextLink: false
});
@@ -43251,9 +43297,9 @@ var require_dist_cjs14 = __commonJS({
default:
message = `Failed to refresh token: ${String(error3)}. Please re-authenticate using \`aws login\``;
}
- throw new config.CredentialsProviderError(message, { logger: this.logger, tryNextLink: false });
+ throw new CredentialsProviderError2(message, { logger: this.logger, tryNextLink: false });
}
- throw new config.CredentialsProviderError(`Failed to refresh token: ${String(error3)}. Please re-authenticate using aws login`, { logger: this.logger });
+ throw new CredentialsProviderError2(`Failed to refresh token: ${String(error3)}. Please re-authenticate using aws login`, { logger: this.logger });
}
}
async loadToken() {
@@ -43261,9 +43307,9 @@ var require_dist_cjs14 = __commonJS({
try {
let tokenData;
try {
- tokenData = await config.readFile(tokenFilePath, { ignoreCache: this.init?.ignoreCache });
+ tokenData = await readFile4(tokenFilePath, { ignoreCache: this.init?.ignoreCache });
} catch {
- tokenData = await node_fs.promises.readFile(tokenFilePath, "utf8");
+ tokenData = await promises3.readFile(tokenFilePath, "utf8");
}
const token = JSON.parse(tokenData);
const missingFields = ["accessToken", "clientId", "refreshToken", "dpopKey"].filter((k5) => !token[k5]);
@@ -43271,14 +43317,14 @@ var require_dist_cjs14 = __commonJS({
missingFields.push("accountId");
}
if (missingFields.length > 0) {
- throw new config.CredentialsProviderError(`Token validation failed, missing fields: ${missingFields.join(", ")}`, {
+ throw new CredentialsProviderError2(`Token validation failed, missing fields: ${missingFields.join(", ")}`, {
logger: this.logger,
tryNextLink: false
});
}
return token;
} catch (error3) {
- throw new config.CredentialsProviderError(`Failed to load token from ${tokenFilePath}: ${String(error3)}`, {
+ throw new CredentialsProviderError2(`Failed to load token from ${tokenFilePath}: ${String(error3)}`, {
logger: this.logger,
tryNextLink: false
});
@@ -43286,18 +43332,18 @@ var require_dist_cjs14 = __commonJS({
}
async saveToken(token) {
const tokenFilePath = this.getTokenFilePath();
- const directory = node_path.dirname(tokenFilePath);
+ const directory = dirname4(tokenFilePath);
try {
- await node_fs.promises.mkdir(directory, { recursive: true });
+ await promises3.mkdir(directory, { recursive: true });
} catch (error3) {
}
- await node_fs.promises.writeFile(tokenFilePath, JSON.stringify(token, null, 2), "utf8");
+ await promises3.writeFile(tokenFilePath, JSON.stringify(token, null, 2), "utf8");
}
getTokenFilePath() {
- const directory = process.env.AWS_LOGIN_CACHE_DIRECTORY ?? node_path.join(node_os.homedir(), ".aws", "login", "cache");
+ const directory = process.env.AWS_LOGIN_CACHE_DIRECTORY ?? join7(homedir3(), ".aws", "login", "cache");
const loginSessionBytes = Buffer.from(this.loginSession, "utf8");
- const loginSessionSha256 = node_crypto.createHash("sha256").update(loginSessionBytes).digest("hex");
- return node_path.join(directory, `${loginSessionSha256}.json`);
+ const loginSessionSha256 = createHash5("sha256").update(loginSessionBytes).digest("hex");
+ return join7(directory, `${loginSessionSha256}.json`);
}
derToRawSignature(derSignature) {
let offset = 2;
@@ -43322,7 +43368,7 @@ var require_dist_cjs14 = __commonJS({
}
createDPoPInterceptor(middlewareStack) {
middlewareStack.add((next) => async (args) => {
- if (protocols2.HttpRequest.isInstance(args.request)) {
+ if (HttpRequest2.isInstance(args.request)) {
const request = args.request;
const actualEndpoint = `${request.protocol}//${request.hostname}${request.port ? `:${request.port}` : ""}${request.path}`;
const dpop = await this.generateDpop(request.method, actualEndpoint);
@@ -43341,12 +43387,12 @@ var require_dist_cjs14 = __commonJS({
async generateDpop(method = "POST", endpoint) {
const token = await this.loadToken();
try {
- const privateKey = node_crypto.createPrivateKey({
+ const privateKey = createPrivateKey({
key: token.dpopKey,
format: "pem",
type: "sec1"
});
- const publicKey = node_crypto.createPublicKey(privateKey);
+ const publicKey = createPublicKey(privateKey);
const publicDer = publicKey.export({ format: "der", type: "spki" });
let pointStart = -1;
for (let i5 = 0; i5 < publicDer.length; i5++) {
@@ -43376,38 +43422,38 @@ var require_dist_cjs14 = __commonJS({
const headerB64 = Buffer.from(JSON.stringify(header)).toString("base64url");
const payloadB64 = Buffer.from(JSON.stringify(payload2)).toString("base64url");
const message = `${headerB64}.${payloadB64}`;
- const asn1Signature = node_crypto.sign("sha256", Buffer.from(message), privateKey);
+ const asn1Signature = sign("sha256", Buffer.from(message), privateKey);
const rawSignature = this.derToRawSignature(asn1Signature);
const signatureB64 = rawSignature.toString("base64url");
return `${message}.${signatureB64}`;
} catch (error3) {
- throw new config.CredentialsProviderError(`Failed to generate Dpop proof: ${error3 instanceof Error ? error3.message : String(error3)}`, { logger: this.logger, tryNextLink: false });
+ throw new CredentialsProviderError2(`Failed to generate Dpop proof: ${error3 instanceof Error ? error3.message : String(error3)}`, { logger: this.logger, tryNextLink: false });
}
}
};
var fromLoginCredentials = (init) => async ({ callerClientConfig } = {}) => {
init?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");
- const profiles = await config.parseKnownFiles(init || {});
- const profileName = config.getProfileName({
+ const profiles = await parseKnownFiles2(init || {});
+ const profileName = getProfileName2({
profile: init?.profile ?? callerClientConfig?.profile
});
const profile = profiles[profileName];
if (!profile?.login_session) {
- throw new config.CredentialsProviderError(`Profile ${profileName} does not contain login_session.`, {
+ throw new CredentialsProviderError2(`Profile ${profileName} does not contain login_session.`, {
tryNextLink: true,
logger: init?.logger
});
}
const fetcher = new LoginCredentialsFetcher(profile, init, callerClientConfig);
const credentials = await fetcher.loadCredentials();
- return client.setCredentialFeature(credentials, "CREDENTIALS_LOGIN", "AD");
+ return setCredentialFeature2(credentials, "CREDENTIALS_LOGIN", "AD");
};
exports2.fromLoginCredentials = fromLoginCredentials;
}
});
// node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/bdd.js
-var q, a4, b4, c4, d4, e4, f4, g4, h4, i4, j4, k4, l2, m2, n, o, p, _data4, root4, r4, nodes4, bdd4;
+var q, a4, b4, c4, d4, e4, f4, g4, h4, i4, j4, k4, l2, m2, n2, o2, p2, _data4, root4, r4, nodes4, bdd4;
var init_bdd4 = __esm({
"node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/bdd.js"() {
init_endpoints();
@@ -43425,21 +43471,21 @@ var init_bdd4 = __esm({
k4 = "https://sts.{Region}.{PartitionResult#dnsSuffix}";
l2 = { [q]: "Endpoint" };
m2 = { [q]: "Region" };
- n = { [q]: d4 };
- o = {};
- p = [m2];
+ n2 = { [q]: d4 };
+ o2 = {};
+ p2 = [m2];
_data4 = {
conditions: [
[c4, [l2]],
- [c4, p],
- ["aws.partition", p, d4],
+ [c4, p2],
+ ["aws.partition", p2, d4],
[e4, [{ [q]: "UseFIPS" }, b4]],
[e4, [{ [q]: "UseDualStack" }, b4]],
[f4, [m2, "aws-global"]],
[e4, [{ [q]: "UseGlobalEndpoint" }, b4]],
[f4, [m2, "eu-central-1"]],
- [e4, [{ fn: g4, argv: [n, "supportsDualStack"] }, b4]],
- [e4, [{ fn: g4, argv: [n, "supportsFIPS"] }, b4]],
+ [e4, [{ fn: g4, argv: [n2, "supportsDualStack"] }, b4]],
+ [e4, [{ fn: g4, argv: [n2, "supportsFIPS"] }, b4]],
[f4, [m2, "ap-south-1"]],
[f4, [m2, "eu-north-1"]],
[f4, [m2, "eu-west-1"]],
@@ -43454,7 +43500,7 @@ var init_bdd4 = __esm({
[f4, [m2, "ap-southeast-1"]],
[f4, [m2, "ap-northeast-1"]],
[f4, [m2, "ap-southeast-2"]],
- [f4, [{ fn: g4, argv: [n, "name"] }, "aws-us-gov"]]
+ [f4, [{ fn: g4, argv: [n2, "name"] }, "aws-us-gov"]]
],
results: [
[a4],
@@ -43462,15 +43508,15 @@ var init_bdd4 = __esm({
[k4, { authSchemes: [{ name: i4, signingName: j4, signingRegion: "{Region}" }] }],
[a4, "Invalid Configuration: FIPS and custom endpoint are not supported"],
[a4, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
- [l2, o],
- ["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", o],
+ [l2, o2],
+ ["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", o2],
[a4, "FIPS and DualStack are enabled, but this partition does not support one or both"],
- ["https://sts.{Region}.amazonaws.com", o],
- ["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", o],
+ ["https://sts.{Region}.amazonaws.com", o2],
+ ["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", o2],
[a4, "FIPS is enabled but this partition does not support FIPS"],
- ["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", o],
+ ["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", o2],
[a4, "DualStack is enabled but this partition does not support DualStack"],
- [k4, o],
+ [k4, o2],
[a4, "Invalid Configuration: Missing Region"]
]
};
@@ -44367,7 +44413,7 @@ var init_AssumeRoleCommand = __esm({
init_endpoints();
init_EndpointParameters4();
init_schemas_04();
- AssumeRoleCommand = class extends Command2.classBuilder().ep(commonParams4).m(function(Command3, cs, config, o2) {
+ AssumeRoleCommand = class extends Command2.classBuilder().ep(commonParams4).m(function(Command3, cs, config, o3) {
return [getEndpointPlugin(config, Command3.getEndpointParameterInstructions())];
}).s("AWSSecurityTokenServiceV20110615", "AssumeRole", {}).n("STSClient", "AssumeRoleCommand").sc(AssumeRole$).build() {
};
@@ -44382,7 +44428,7 @@ var init_AssumeRoleWithWebIdentityCommand = __esm({
init_endpoints();
init_EndpointParameters4();
init_schemas_04();
- AssumeRoleWithWebIdentityCommand = class extends Command2.classBuilder().ep(commonParams4).m(function(Command3, cs, config, o2) {
+ AssumeRoleWithWebIdentityCommand = class extends Command2.classBuilder().ep(commonParams4).m(function(Command3, cs, config, o3) {
return [getEndpointPlugin(config, Command3.getEndpointParameterInstructions())];
}).s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithWebIdentity", {}).n("STSClient", "AssumeRoleWithWebIdentityCommand").sc(AssumeRoleWithWebIdentity$).build() {
};
@@ -44615,11 +44661,10 @@ var init_sts = __esm({
// node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js
var require_dist_cjs15 = __commonJS({
"node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js"(exports2) {
- "use strict";
- var config = (init_config2(), __toCommonJS(config_exports));
- var node_child_process = require("node:child_process");
- var node_util = require("node:util");
- var client = (init_client3(), __toCommonJS(client_exports2));
+ var { externalDataInterceptor: externalDataInterceptor2, CredentialsProviderError: CredentialsProviderError2, parseKnownFiles: parseKnownFiles2, getProfileName: getProfileName2 } = (init_config2(), __toCommonJS(config_exports));
+ var { exec } = require("node:child_process");
+ var { promisify } = require("node:util");
+ var { setCredentialFeature: setCredentialFeature2 } = (init_client3(), __toCommonJS(client_exports2));
var getValidatedProcessCredentials = (profileName, data3, profiles) => {
if (data3.Version !== 1) {
throw Error(`Profile ${profileName} credential_process did not return Version 1.`);
@@ -44646,7 +44691,7 @@ var require_dist_cjs15 = __commonJS({
...data3.CredentialScope && { credentialScope: data3.CredentialScope },
...accountId && { accountId }
};
- client.setCredentialFeature(credentials, "CREDENTIALS_PROCESS", "w");
+ setCredentialFeature2(credentials, "CREDENTIALS_PROCESS", "w");
return credentials;
};
var resolveProcessCredentials = async (profileName, profiles, logger2) => {
@@ -44654,7 +44699,7 @@ var require_dist_cjs15 = __commonJS({
if (profiles[profileName]) {
const credentialProcess = profile["credential_process"];
if (credentialProcess !== void 0) {
- const execPromise = node_util.promisify(config.externalDataInterceptor?.getTokenRecord?.().exec ?? node_child_process.exec);
+ const execPromise = promisify(externalDataInterceptor2?.getTokenRecord?.().exec ?? exec);
try {
const { stdout } = await execPromise(credentialProcess);
let data3;
@@ -44665,21 +44710,21 @@ var require_dist_cjs15 = __commonJS({
}
return getValidatedProcessCredentials(profileName, data3, profiles);
} catch (error3) {
- throw new config.CredentialsProviderError(error3.message, { logger: logger2 });
+ throw new CredentialsProviderError2(error3.message, { logger: logger2 });
}
} else {
- throw new config.CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`, { logger: logger2 });
+ throw new CredentialsProviderError2(`Profile ${profileName} did not contain credential_process.`, { logger: logger2 });
}
} else {
- throw new config.CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`, {
+ throw new CredentialsProviderError2(`Profile ${profileName} could not be found in shared credentials file.`, {
logger: logger2
});
}
};
var fromProcess = (init = {}) => async ({ callerClientConfig } = {}) => {
init.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");
- const profiles = await config.parseKnownFiles(init);
- return resolveProcessCredentials(config.getProfileName({
+ const profiles = await parseKnownFiles2(init);
+ return resolveProcessCredentials(getProfileName2({
profile: init.profile ?? callerClientConfig?.profile
}), profiles, init.logger);
};
@@ -44690,15 +44735,12 @@ var require_dist_cjs15 = __commonJS({
// node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js
var require_fromWebToken = __commonJS({
"node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js"(exports2) {
- "use strict";
- Object.defineProperty(exports2, "__esModule", { value: true });
- exports2.fromWebToken = void 0;
- var fromWebToken = (init) => async (awsIdentityProperties) => {
+ exports2.fromWebToken = (init) => async (awsIdentityProperties) => {
init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");
const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;
let { roleAssumerWithWebIdentity } = init;
if (!roleAssumerWithWebIdentity) {
- const { getDefaultRoleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity3 } = await Promise.resolve().then(() => (init_sts(), sts_exports));
+ const { getDefaultRoleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity3 } = (init_sts(), __toCommonJS(sts_exports));
roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity3({
...init.clientConfig,
credentialProviderLogger: init.logger,
@@ -44718,104 +44760,86 @@ var require_fromWebToken = __commonJS({
DurationSeconds: durationSeconds
});
};
- exports2.fromWebToken = fromWebToken;
}
});
// node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js
var require_fromTokenFile = __commonJS({
"node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js"(exports2) {
- "use strict";
- Object.defineProperty(exports2, "__esModule", { value: true });
- exports2.fromTokenFile = void 0;
- var client_1 = (init_client3(), __toCommonJS(client_exports2));
- var config_1 = (init_config2(), __toCommonJS(config_exports));
- var node_fs_1 = require("node:fs");
- var fromWebToken_1 = require_fromWebToken();
+ var { setCredentialFeature: setCredentialFeature2 } = (init_client3(), __toCommonJS(client_exports2));
+ var { CredentialsProviderError: CredentialsProviderError2, externalDataInterceptor: externalDataInterceptor2 } = (init_config2(), __toCommonJS(config_exports));
+ var { readFileSync: readFileSync2 } = require("node:fs");
+ var { fromWebToken } = require_fromWebToken();
var ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE";
var ENV_ROLE_ARN = "AWS_ROLE_ARN";
var ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME";
- var fromTokenFile = (init = {}) => async (awsIdentityProperties) => {
+ exports2.fromTokenFile = (init = {}) => async (awsIdentityProperties) => {
init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");
const webIdentityTokenFile = init?.webIdentityTokenFile ?? process.env[ENV_TOKEN_FILE];
const roleArn = init?.roleArn ?? process.env[ENV_ROLE_ARN];
const roleSessionName = init?.roleSessionName ?? process.env[ENV_ROLE_SESSION_NAME];
if (!webIdentityTokenFile || !roleArn) {
- throw new config_1.CredentialsProviderError("Web identity configuration not specified", {
+ throw new CredentialsProviderError2("Web identity configuration not specified", {
logger: init.logger
});
}
- const credentials = await (0, fromWebToken_1.fromWebToken)({
+ const credentials = await fromWebToken({
...init,
- webIdentityToken: config_1.externalDataInterceptor?.getTokenRecord?.()[webIdentityTokenFile] ?? (0, node_fs_1.readFileSync)(webIdentityTokenFile, { encoding: "ascii" }),
+ webIdentityToken: externalDataInterceptor2?.getTokenRecord?.()[webIdentityTokenFile] ?? readFileSync2(webIdentityTokenFile, { encoding: "ascii" }),
roleArn,
roleSessionName
})(awsIdentityProperties);
if (webIdentityTokenFile === process.env[ENV_TOKEN_FILE]) {
- (0, client_1.setCredentialFeature)(credentials, "CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN", "h");
+ setCredentialFeature2(credentials, "CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN", "h");
}
return credentials;
};
- exports2.fromTokenFile = fromTokenFile;
}
});
// node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js
var require_dist_cjs16 = __commonJS({
"node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js"(exports2) {
- "use strict";
- var fromTokenFile = require_fromTokenFile();
- var fromWebToken = require_fromWebToken();
- Object.prototype.hasOwnProperty.call(fromTokenFile, "__proto__") && !Object.prototype.hasOwnProperty.call(exports2, "__proto__") && Object.defineProperty(exports2, "__proto__", {
- enumerable: true,
- value: fromTokenFile["__proto__"]
- });
- Object.keys(fromTokenFile).forEach(function(k5) {
- if (k5 !== "default" && !Object.prototype.hasOwnProperty.call(exports2, k5)) exports2[k5] = fromTokenFile[k5];
- });
- Object.prototype.hasOwnProperty.call(fromWebToken, "__proto__") && !Object.prototype.hasOwnProperty.call(exports2, "__proto__") && Object.defineProperty(exports2, "__proto__", {
- enumerable: true,
- value: fromWebToken["__proto__"]
- });
- Object.keys(fromWebToken).forEach(function(k5) {
- if (k5 !== "default" && !Object.prototype.hasOwnProperty.call(exports2, k5)) exports2[k5] = fromWebToken[k5];
- });
+ var __exportStar2 = (m3, e5) => {
+ Object.assign(e5, m3);
+ };
+ __exportStar2(require_fromTokenFile(), exports2);
+ __exportStar2(require_fromWebToken(), exports2);
}
});
// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js
var require_dist_cjs17 = __commonJS({
"node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js"(exports2) {
- "use strict";
- var config = (init_config2(), __toCommonJS(config_exports));
- var client = (init_client3(), __toCommonJS(client_exports2));
- var credentialProviderLogin = require_dist_cjs14();
+ var { CredentialsProviderError: CredentialsProviderError2, chain: chain2, getProfileName: getProfileName2, parseKnownFiles: parseKnownFiles2 } = (init_config2(), __toCommonJS(config_exports));
+ var { setCredentialFeature: setCredentialFeature2 } = (init_client3(), __toCommonJS(client_exports2));
+ var { fromLoginCredentials } = require_dist_cjs14();
var resolveCredentialSource = (credentialSource, profileName, logger2) => {
const sourceProvidersMap = {
EcsContainer: async (options) => {
- const { fromHttp } = await Promise.resolve().then(() => __toESM(require_dist_cjs10()));
- const { fromContainerMetadata } = await Promise.resolve().then(() => __toESM(require_dist_cjs8()));
+ const { fromHttp } = require_dist_cjs10();
+ const { fromContainerMetadata } = require_dist_cjs8();
logger2?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer");
- return async () => config.chain(fromHttp(options ?? {}), fromContainerMetadata(options))().then(setNamedProvider);
+ return async () => chain2(fromHttp(options ?? {}), fromContainerMetadata(options))().then(setNamedProvider);
},
Ec2InstanceMetadata: async (options) => {
logger2?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");
- const { fromInstanceMetadata } = await Promise.resolve().then(() => __toESM(require_dist_cjs8()));
+ const { fromInstanceMetadata } = require_dist_cjs8();
return async () => fromInstanceMetadata(options)().then(setNamedProvider);
},
Environment: async (options) => {
logger2?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");
- const { fromEnv: fromEnv2 } = await Promise.resolve().then(() => __toESM(require_dist_cjs7()));
+ const { fromEnv: fromEnv2 } = require_dist_cjs7();
return async () => fromEnv2(options)().then(setNamedProvider);
}
};
if (credentialSource in sourceProvidersMap) {
return sourceProvidersMap[credentialSource];
} else {
- throw new config.CredentialsProviderError(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, expected EcsContainer or Ec2InstanceMetadata or Environment.`, { logger: logger2 });
+ throw new CredentialsProviderError2(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, expected EcsContainer or Ec2InstanceMetadata or Environment.`, { logger: logger2 });
}
};
- var setNamedProvider = (creds) => client.setCredentialFeature(creds, "CREDENTIALS_PROFILE_NAMED_PROVIDER", "p");
+ var setNamedProvider = (creds) => setCredentialFeature2(creds, "CREDENTIALS_PROFILE_NAMED_PROVIDER", "p");
var isAssumeRoleProfile = (arg, { profile = "default", logger: logger2 } = {}) => {
return Boolean(arg) && typeof arg === "object" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1 && ["undefined", "string"].indexOf(typeof arg.external_id) > -1 && ["undefined", "string"].indexOf(typeof arg.mfa_serial) > -1 && (isAssumeRoleWithSourceProfile(arg, { profile, logger: logger2 }) || isCredentialSourceProfile(arg, { profile, logger: logger2 }));
};
@@ -44838,7 +44862,7 @@ var require_dist_cjs17 = __commonJS({
const profileData = profiles[profileName];
const { source_profile, region } = profileData;
if (!options.roleAssumer) {
- const { getDefaultRoleAssumer: getDefaultRoleAssumer3 } = await Promise.resolve().then(() => (init_sts(), sts_exports));
+ const { getDefaultRoleAssumer: getDefaultRoleAssumer3 } = (init_sts(), __toCommonJS(sts_exports));
options.roleAssumer = getDefaultRoleAssumer3({
...options.clientConfig,
credentialProviderLogger: options.logger,
@@ -44850,7 +44874,7 @@ var require_dist_cjs17 = __commonJS({
}, options.clientPlugins);
}
if (source_profile && source_profile in visitedProfiles) {
- throw new config.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${config.getProfileName(options)}. Profiles visited: ` + Object.keys(visitedProfiles).join(", "), { logger: options.logger });
+ throw new CredentialsProviderError2(`Detected a cycle attempting to resolve credentials for profile ${getProfileName2(options)}. Profiles visited: ` + Object.keys(visitedProfiles).join(", "), { logger: options.logger });
}
options.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${source_profile ? `source_profile=[${source_profile}]` : `profile=[${profileName}]`}`);
const sourceCredsProvider = source_profile ? resolveProfileData2(source_profile, profiles, options, callerClientConfig, {
@@ -44858,7 +44882,7 @@ var require_dist_cjs17 = __commonJS({
[source_profile]: true
}, isCredentialSourceWithoutRoleArn(profiles[source_profile] ?? {})) : (await resolveCredentialSource(profileData.credential_source, profileName, options.logger)(options))();
if (isCredentialSourceWithoutRoleArn(profileData)) {
- return sourceCredsProvider.then((creds) => client.setCredentialFeature(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o"));
+ return sourceCredsProvider.then((creds) => setCredentialFeature2(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o"));
} else {
const params = {
RoleArn: profileData.role_arn,
@@ -44869,13 +44893,13 @@ var require_dist_cjs17 = __commonJS({
const { mfa_serial } = profileData;
if (mfa_serial) {
if (!options.mfaCodeProvider) {
- throw new config.CredentialsProviderError(`Profile ${profileName} requires multi-factor authentication, but no MFA code callback was provided.`, { logger: options.logger, tryNextLink: false });
+ throw new CredentialsProviderError2(`Profile ${profileName} requires multi-factor authentication, but no MFA code callback was provided.`, { logger: options.logger, tryNextLink: false });
}
params.SerialNumber = mfa_serial;
params.TokenCode = await options.mfaCodeProvider(mfa_serial);
}
const sourceCreds = await sourceCredsProvider;
- return options.roleAssumer(sourceCreds, params).then((creds) => client.setCredentialFeature(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o"));
+ return options.roleAssumer(sourceCreds, params).then((creds) => setCredentialFeature2(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o"));
}
};
var isCredentialSourceWithoutRoleArn = (section) => {
@@ -44885,19 +44909,23 @@ var require_dist_cjs17 = __commonJS({
return Boolean(data3 && data3.login_session);
};
var resolveLoginCredentials = async (profileName, options, callerClientConfig) => {
- const credentials = await credentialProviderLogin.fromLoginCredentials({
+ const credentials = await fromLoginCredentials({
...options,
profile: profileName
})({ callerClientConfig });
- return client.setCredentialFeature(credentials, "CREDENTIALS_PROFILE_LOGIN", "AC");
+ return setCredentialFeature2(credentials, "CREDENTIALS_PROFILE_LOGIN", "AC");
};
var isProcessProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string";
- var resolveProcessCredentials = async (options, profile) => Promise.resolve().then(() => __toESM(require_dist_cjs15())).then(({ fromProcess }) => fromProcess({
- ...options,
- profile
- })().then((creds) => client.setCredentialFeature(creds, "CREDENTIALS_PROFILE_PROCESS", "v")));
+ var resolveProcessCredentials = async (options, profile) => {
+ const { fromProcess } = require_dist_cjs15();
+ const credentials = await fromProcess({
+ ...options,
+ profile
+ })();
+ return setCredentialFeature2(credentials, "CREDENTIALS_PROFILE_PROCESS", "v");
+ };
var resolveSsoCredentials = async (profile, profileData, options = {}, callerClientConfig) => {
- const { fromSSO } = await Promise.resolve().then(() => __toESM(require_dist_cjs13()));
+ const { fromSSO } = require_dist_cjs13();
return fromSSO({
profile,
logger: options.logger,
@@ -44907,9 +44935,9 @@ var require_dist_cjs17 = __commonJS({
callerClientConfig
}).then((creds) => {
if (profileData.sso_session) {
- return client.setCredentialFeature(creds, "CREDENTIALS_PROFILE_SSO", "r");
+ return setCredentialFeature2(creds, "CREDENTIALS_PROFILE_SSO", "r");
} else {
- return client.setCredentialFeature(creds, "CREDENTIALS_PROFILE_SSO_LEGACY", "t");
+ return setCredentialFeature2(creds, "CREDENTIALS_PROFILE_SSO_LEGACY", "t");
}
});
};
@@ -44924,19 +44952,23 @@ var require_dist_cjs17 = __commonJS({
...profile.aws_credential_scope && { credentialScope: profile.aws_credential_scope },
...profile.aws_account_id && { accountId: profile.aws_account_id }
};
- return client.setCredentialFeature(credentials, "CREDENTIALS_PROFILE", "n");
+ return setCredentialFeature2(credentials, "CREDENTIALS_PROFILE", "n");
};
var isWebIdentityProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.web_identity_token_file === "string" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1;
- var resolveWebIdentityCredentials = async (profile, options, callerClientConfig) => Promise.resolve().then(() => __toESM(require_dist_cjs16())).then(({ fromTokenFile }) => fromTokenFile({
- webIdentityTokenFile: profile.web_identity_token_file,
- roleArn: profile.role_arn,
- roleSessionName: profile.role_session_name,
- roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity,
- logger: options.logger,
- parentClientConfig: options.parentClientConfig
- })({
- callerClientConfig
- }).then((creds) => client.setCredentialFeature(creds, "CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN", "q")));
+ var resolveWebIdentityCredentials = async (profile, options, callerClientConfig) => {
+ const { fromTokenFile } = require_dist_cjs16();
+ const credentials = await fromTokenFile({
+ webIdentityTokenFile: profile.web_identity_token_file,
+ roleArn: profile.role_arn,
+ roleSessionName: profile.role_session_name,
+ roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity,
+ logger: options.logger,
+ parentClientConfig: options.parentClientConfig
+ })({
+ callerClientConfig
+ });
+ return setCredentialFeature2(credentials, "CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN", "q");
+ };
var resolveProfileData = async (profileName, profiles, options, callerClientConfig, visitedProfiles = {}, isAssumeRoleRecursiveCall = false) => {
const data3 = profiles[profileName];
if (Object.keys(visitedProfiles).length > 0 && isStaticCredsProfile(data3)) {
@@ -44960,12 +44992,12 @@ var require_dist_cjs17 = __commonJS({
if (isLoginProfile(data3)) {
return resolveLoginCredentials(profileName, options, callerClientConfig);
}
- throw new config.CredentialsProviderError(`Could not resolve credentials using profile: [${profileName}] in configuration/credentials file(s).`, { logger: options.logger });
+ throw new CredentialsProviderError2(`Could not resolve credentials using profile: [${profileName}] in configuration/credentials file(s).`, { logger: options.logger });
};
var fromIni = (init = {}) => async ({ callerClientConfig } = {}) => {
init.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");
- const profiles = await config.parseKnownFiles(init);
- return resolveProfileData(config.getProfileName({
+ const profiles = await parseKnownFiles2(init);
+ return resolveProfileData(getProfileName2({
profile: init.profile ?? callerClientConfig?.profile
}), profiles, init, callerClientConfig);
};
@@ -44976,27 +45008,26 @@ var require_dist_cjs17 = __commonJS({
// node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js
var require_dist_cjs18 = __commonJS({
"node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js"(exports2) {
- "use strict";
- var credentialProviderEnv = require_dist_cjs7();
- var config = (init_config2(), __toCommonJS(config_exports));
+ var { ENV_KEY, ENV_SECRET, fromEnv: fromEnv2 } = require_dist_cjs7();
+ var { chain: chain2, CredentialsProviderError: CredentialsProviderError2, ENV_PROFILE: ENV_PROFILE2 } = (init_config2(), __toCommonJS(config_exports));
var ENV_IMDS_DISABLED2 = "AWS_EC2_METADATA_DISABLED";
var remoteProvider = async (init) => {
- const { ENV_CMDS_FULL_URI, ENV_CMDS_RELATIVE_URI, fromContainerMetadata, fromInstanceMetadata } = await Promise.resolve().then(() => __toESM(require_dist_cjs8()));
+ const { ENV_CMDS_FULL_URI, ENV_CMDS_RELATIVE_URI, fromContainerMetadata, fromInstanceMetadata } = require_dist_cjs8();
if (process.env[ENV_CMDS_RELATIVE_URI] || process.env[ENV_CMDS_FULL_URI]) {
init.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");
- const { fromHttp } = await Promise.resolve().then(() => __toESM(require_dist_cjs10()));
- return config.chain(fromHttp(init), fromContainerMetadata(init));
+ const { fromHttp } = require_dist_cjs10();
+ return chain2(fromHttp(init), fromContainerMetadata(init));
}
if (process.env[ENV_IMDS_DISABLED2] && process.env[ENV_IMDS_DISABLED2] !== "false") {
return async () => {
- throw new config.CredentialsProviderError("EC2 Instance Metadata Service access disabled", { logger: init.logger });
+ throw new CredentialsProviderError2("EC2 Instance Metadata Service access disabled", { logger: init.logger });
};
}
init.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata");
return fromInstanceMetadata(init);
};
function memoizeChain(providers, treatAsExpired) {
- const chain2 = internalCreateChain(providers);
+ const chain3 = internalCreateChain(providers);
let activeLock;
let passiveLock;
let credentials;
@@ -45004,7 +45035,7 @@ var require_dist_cjs18 = __commonJS({
const provider = async (options) => {
if (options?.forceRefresh) {
if (!forceRefreshLock) {
- forceRefreshLock = chain2(options).then((c5) => {
+ forceRefreshLock = chain3(options).then((c5) => {
credentials = c5;
}).finally(() => {
forceRefreshLock = void 0;
@@ -45023,14 +45054,14 @@ var require_dist_cjs18 = __commonJS({
} else if (!credentials || treatAsExpired?.(credentials)) {
if (credentials) {
if (!passiveLock) {
- passiveLock = chain2(options).then((c5) => {
+ passiveLock = chain3(options).then((c5) => {
credentials = c5;
}).finally(() => {
passiveLock = void 0;
});
}
} else {
- activeLock = chain2(options).then((c5) => {
+ activeLock = chain3(options).then((c5) => {
credentials = c5;
}).finally(() => {
activeLock = void 0;
@@ -45060,9 +45091,9 @@ var require_dist_cjs18 = __commonJS({
var multipleCredentialSourceWarningEmitted = false;
var defaultProvider = (init = {}) => memoizeChain([
async () => {
- const profile = init.profile ?? process.env[config.ENV_PROFILE];
+ const profile = init.profile ?? process.env[ENV_PROFILE2];
if (profile) {
- const envStaticCredentialsAreSet = process.env[credentialProviderEnv.ENV_KEY] && process.env[credentialProviderEnv.ENV_SECRET];
+ const envStaticCredentialsAreSet = process.env[ENV_KEY] && process.env[ENV_SECRET];
if (envStaticCredentialsAreSet) {
if (!multipleCredentialSourceWarningEmitted) {
const warnFn = init.logger?.warn && init.logger?.constructor?.name !== "NoOpLogger" ? init.logger.warn.bind(init.logger) : console.warn;
@@ -45078,36 +45109,36 @@ var require_dist_cjs18 = __commonJS({
multipleCredentialSourceWarningEmitted = true;
}
}
- throw new config.CredentialsProviderError("AWS_PROFILE is set, skipping fromEnv provider.", {
+ throw new CredentialsProviderError2("AWS_PROFILE is set, skipping fromEnv provider.", {
logger: init.logger,
tryNextLink: true
});
}
init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv");
- return credentialProviderEnv.fromEnv(init)();
+ return fromEnv2(init)();
},
async (awsIdentityProperties) => {
init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");
const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;
if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
- throw new config.CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).", { logger: init.logger });
+ throw new CredentialsProviderError2("Skipping SSO provider in default chain (inputs do not include SSO fields).", { logger: init.logger });
}
- const { fromSSO } = await Promise.resolve().then(() => __toESM(require_dist_cjs13()));
+ const { fromSSO } = require_dist_cjs13();
return fromSSO(init)(awsIdentityProperties);
},
async (awsIdentityProperties) => {
init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");
- const { fromIni } = await Promise.resolve().then(() => __toESM(require_dist_cjs17()));
+ const { fromIni } = require_dist_cjs17();
return fromIni(init)(awsIdentityProperties);
},
async (awsIdentityProperties) => {
init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");
- const { fromProcess } = await Promise.resolve().then(() => __toESM(require_dist_cjs15()));
+ const { fromProcess } = require_dist_cjs15();
return fromProcess(init)(awsIdentityProperties);
},
async (awsIdentityProperties) => {
init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");
- const { fromTokenFile } = await Promise.resolve().then(() => __toESM(require_dist_cjs16()));
+ const { fromTokenFile } = require_dist_cjs16();
return fromTokenFile(init)(awsIdentityProperties);
},
async () => {
@@ -45115,7 +45146,7 @@ var require_dist_cjs18 = __commonJS({
return (await remoteProvider(init))();
},
async () => {
- throw new config.CredentialsProviderError("Could not load credentials from any providers", {
+ throw new CredentialsProviderError2("Could not load credentials from any providers", {
tryNextLink: false,
logger: init.logger
});
@@ -45132,31 +45163,22 @@ var require_dist_cjs18 = __commonJS({
// node_modules/@aws-sdk/client-sts/dist-cjs/models/STSServiceException.js
var require_STSServiceException = __commonJS({
"node_modules/@aws-sdk/client-sts/dist-cjs/models/STSServiceException.js"(exports2) {
- "use strict";
- Object.defineProperty(exports2, "__esModule", { value: true });
- exports2.STSServiceException = exports2.__ServiceException = void 0;
- var client_1 = (init_client2(), __toCommonJS(client_exports));
- Object.defineProperty(exports2, "__ServiceException", { enumerable: true, get: function() {
- return client_1.ServiceException;
- } });
- var STSServiceException2 = class _STSServiceException extends client_1.ServiceException {
+ var { ServiceException: __ServiceException } = (init_client2(), __toCommonJS(client_exports));
+ exports2.__ServiceException = __ServiceException;
+ exports2.STSServiceException = class STSServiceException2 extends __ServiceException {
constructor(options) {
super(options);
- Object.setPrototypeOf(this, _STSServiceException.prototype);
+ Object.setPrototypeOf(this, STSServiceException2.prototype);
}
};
- exports2.STSServiceException = STSServiceException2;
}
});
// node_modules/@aws-sdk/client-sts/dist-cjs/models/errors.js
var require_errors2 = __commonJS({
"node_modules/@aws-sdk/client-sts/dist-cjs/models/errors.js"(exports2) {
- "use strict";
- Object.defineProperty(exports2, "__esModule", { value: true });
- exports2.SessionDurationEscalationException = exports2.OutboundWebIdentityFederationDisabledException = exports2.JWTPayloadSizeExceededException = exports2.ExpiredTradeInTokenException = exports2.InvalidAuthorizationMessageException = exports2.IDPCommunicationErrorException = exports2.InvalidIdentityTokenException = exports2.IDPRejectedClaimException = exports2.RegionDisabledException = exports2.PackedPolicyTooLargeException = exports2.MalformedPolicyDocumentException = exports2.ExpiredTokenException = void 0;
- var STSServiceException_1 = require_STSServiceException();
- var ExpiredTokenException3 = class _ExpiredTokenException extends STSServiceException_1.STSServiceException {
+ var { STSServiceException: __BaseException } = require_STSServiceException();
+ exports2.ExpiredTokenException = class ExpiredTokenException3 extends __BaseException {
name = "ExpiredTokenException";
$fault = "client";
constructor(opts) {
@@ -45165,11 +45187,10 @@ var require_errors2 = __commonJS({
$fault: "client",
...opts
});
- Object.setPrototypeOf(this, _ExpiredTokenException.prototype);
+ Object.setPrototypeOf(this, ExpiredTokenException3.prototype);
}
};
- exports2.ExpiredTokenException = ExpiredTokenException3;
- var MalformedPolicyDocumentException2 = class _MalformedPolicyDocumentException extends STSServiceException_1.STSServiceException {
+ exports2.MalformedPolicyDocumentException = class MalformedPolicyDocumentException2 extends __BaseException {
name = "MalformedPolicyDocumentException";
$fault = "client";
constructor(opts) {
@@ -45178,11 +45199,10 @@ var require_errors2 = __commonJS({
$fault: "client",
...opts
});
- Object.setPrototypeOf(this, _MalformedPolicyDocumentException.prototype);
+ Object.setPrototypeOf(this, MalformedPolicyDocumentException2.prototype);
}
};
- exports2.MalformedPolicyDocumentException = MalformedPolicyDocumentException2;
- var PackedPolicyTooLargeException3 = class _PackedPolicyTooLargeException extends STSServiceException_1.STSServiceException {
+ exports2.PackedPolicyTooLargeException = class PackedPolicyTooLargeException3 extends __BaseException {
name = "PackedPolicyTooLargeException";
$fault = "client";
constructor(opts) {
@@ -45191,11 +45211,10 @@ var require_errors2 = __commonJS({
$fault: "client",
...opts
});
- Object.setPrototypeOf(this, _PackedPolicyTooLargeException.prototype);
+ Object.setPrototypeOf(this, PackedPolicyTooLargeException3.prototype);
}
};
- exports2.PackedPolicyTooLargeException = PackedPolicyTooLargeException3;
- var RegionDisabledException2 = class _RegionDisabledException extends STSServiceException_1.STSServiceException {
+ exports2.RegionDisabledException = class RegionDisabledException2 extends __BaseException {
name = "RegionDisabledException";
$fault = "client";
constructor(opts) {
@@ -45204,11 +45223,10 @@ var require_errors2 = __commonJS({
$fault: "client",
...opts
});
- Object.setPrototypeOf(this, _RegionDisabledException.prototype);
+ Object.setPrototypeOf(this, RegionDisabledException2.prototype);
}
};
- exports2.RegionDisabledException = RegionDisabledException2;
- var IDPRejectedClaimException2 = class _IDPRejectedClaimException extends STSServiceException_1.STSServiceException {
+ exports2.IDPRejectedClaimException = class IDPRejectedClaimException2 extends __BaseException {
name = "IDPRejectedClaimException";
$fault = "client";
constructor(opts) {
@@ -45217,11 +45235,10 @@ var require_errors2 = __commonJS({
$fault: "client",
...opts
});
- Object.setPrototypeOf(this, _IDPRejectedClaimException.prototype);
+ Object.setPrototypeOf(this, IDPRejectedClaimException2.prototype);
}
};
- exports2.IDPRejectedClaimException = IDPRejectedClaimException2;
- var InvalidIdentityTokenException2 = class _InvalidIdentityTokenException extends STSServiceException_1.STSServiceException {
+ exports2.InvalidIdentityTokenException = class InvalidIdentityTokenException2 extends __BaseException {
name = "InvalidIdentityTokenException";
$fault = "client";
constructor(opts) {
@@ -45230,11 +45247,10 @@ var require_errors2 = __commonJS({
$fault: "client",
...opts
});
- Object.setPrototypeOf(this, _InvalidIdentityTokenException.prototype);
+ Object.setPrototypeOf(this, InvalidIdentityTokenException2.prototype);
}
};
- exports2.InvalidIdentityTokenException = InvalidIdentityTokenException2;
- var IDPCommunicationErrorException2 = class _IDPCommunicationErrorException extends STSServiceException_1.STSServiceException {
+ exports2.IDPCommunicationErrorException = class IDPCommunicationErrorException2 extends __BaseException {
name = "IDPCommunicationErrorException";
$fault = "client";
$retryable = {};
@@ -45244,11 +45260,10 @@ var require_errors2 = __commonJS({
$fault: "client",
...opts
});
- Object.setPrototypeOf(this, _IDPCommunicationErrorException.prototype);
+ Object.setPrototypeOf(this, IDPCommunicationErrorException2.prototype);
}
};
- exports2.IDPCommunicationErrorException = IDPCommunicationErrorException2;
- var InvalidAuthorizationMessageException = class _InvalidAuthorizationMessageException extends STSServiceException_1.STSServiceException {
+ exports2.InvalidAuthorizationMessageException = class InvalidAuthorizationMessageException extends __BaseException {
name = "InvalidAuthorizationMessageException";
$fault = "client";
constructor(opts) {
@@ -45257,11 +45272,10 @@ var require_errors2 = __commonJS({
$fault: "client",
...opts
});
- Object.setPrototypeOf(this, _InvalidAuthorizationMessageException.prototype);
+ Object.setPrototypeOf(this, InvalidAuthorizationMessageException.prototype);
}
};
- exports2.InvalidAuthorizationMessageException = InvalidAuthorizationMessageException;
- var ExpiredTradeInTokenException = class _ExpiredTradeInTokenException extends STSServiceException_1.STSServiceException {
+ exports2.ExpiredTradeInTokenException = class ExpiredTradeInTokenException extends __BaseException {
name = "ExpiredTradeInTokenException";
$fault = "client";
constructor(opts) {
@@ -45270,11 +45284,10 @@ var require_errors2 = __commonJS({
$fault: "client",
...opts
});
- Object.setPrototypeOf(this, _ExpiredTradeInTokenException.prototype);
+ Object.setPrototypeOf(this, ExpiredTradeInTokenException.prototype);
}
};
- exports2.ExpiredTradeInTokenException = ExpiredTradeInTokenException;
- var JWTPayloadSizeExceededException = class _JWTPayloadSizeExceededException extends STSServiceException_1.STSServiceException {
+ exports2.JWTPayloadSizeExceededException = class JWTPayloadSizeExceededException extends __BaseException {
name = "JWTPayloadSizeExceededException";
$fault = "client";
constructor(opts) {
@@ -45283,11 +45296,10 @@ var require_errors2 = __commonJS({
$fault: "client",
...opts
});
- Object.setPrototypeOf(this, _JWTPayloadSizeExceededException.prototype);
+ Object.setPrototypeOf(this, JWTPayloadSizeExceededException.prototype);
}
};
- exports2.JWTPayloadSizeExceededException = JWTPayloadSizeExceededException;
- var OutboundWebIdentityFederationDisabledException = class _OutboundWebIdentityFederationDisabledException extends STSServiceException_1.STSServiceException {
+ exports2.OutboundWebIdentityFederationDisabledException = class OutboundWebIdentityFederationDisabledException extends __BaseException {
name = "OutboundWebIdentityFederationDisabledException";
$fault = "client";
constructor(opts) {
@@ -45296,11 +45308,10 @@ var require_errors2 = __commonJS({
$fault: "client",
...opts
});
- Object.setPrototypeOf(this, _OutboundWebIdentityFederationDisabledException.prototype);
+ Object.setPrototypeOf(this, OutboundWebIdentityFederationDisabledException.prototype);
}
};
- exports2.OutboundWebIdentityFederationDisabledException = OutboundWebIdentityFederationDisabledException;
- var SessionDurationEscalationException = class _SessionDurationEscalationException extends STSServiceException_1.STSServiceException {
+ exports2.SessionDurationEscalationException = class SessionDurationEscalationException extends __BaseException {
name = "SessionDurationEscalationException";
$fault = "client";
constructor(opts) {
@@ -45309,20 +45320,15 @@ var require_errors2 = __commonJS({
$fault: "client",
...opts
});
- Object.setPrototypeOf(this, _SessionDurationEscalationException.prototype);
+ Object.setPrototypeOf(this, SessionDurationEscalationException.prototype);
}
};
- exports2.SessionDurationEscalationException = SessionDurationEscalationException;
}
});
// node_modules/@aws-sdk/client-sts/dist-cjs/schemas/schemas_0.js
var require_schemas_0 = __commonJS({
"node_modules/@aws-sdk/client-sts/dist-cjs/schemas/schemas_0.js"(exports2) {
- "use strict";
- Object.defineProperty(exports2, "__esModule", { value: true });
- exports2.GetDelegatedAccessToken$ = exports2.GetCallerIdentity$ = exports2.GetAccessKeyInfo$ = exports2.DecodeAuthorizationMessage$ = exports2.AssumeRoot$ = exports2.AssumeRoleWithWebIdentity$ = exports2.AssumeRoleWithSAML$ = exports2.AssumeRole$ = exports2.Tag$ = exports2.ProvidedContext$ = exports2.PolicyDescriptorType$ = exports2.GetWebIdentityTokenResponse$ = exports2.GetWebIdentityTokenRequest$ = exports2.GetSessionTokenResponse$ = exports2.GetSessionTokenRequest$ = exports2.GetFederationTokenResponse$ = exports2.GetFederationTokenRequest$ = exports2.GetDelegatedAccessTokenResponse$ = exports2.GetDelegatedAccessTokenRequest$ = exports2.GetCallerIdentityResponse$ = exports2.GetCallerIdentityRequest$ = exports2.GetAccessKeyInfoResponse$ = exports2.GetAccessKeyInfoRequest$ = exports2.FederatedUser$ = exports2.DecodeAuthorizationMessageResponse$ = exports2.DecodeAuthorizationMessageRequest$ = exports2.Credentials$ = exports2.AssumeRootResponse$ = exports2.AssumeRootRequest$ = exports2.AssumeRoleWithWebIdentityResponse$ = exports2.AssumeRoleWithWebIdentityRequest$ = exports2.AssumeRoleWithSAMLResponse$ = exports2.AssumeRoleWithSAMLRequest$ = exports2.AssumeRoleResponse$ = exports2.AssumeRoleRequest$ = exports2.AssumedRoleUser$ = exports2.errorTypeRegistries = exports2.SessionDurationEscalationException$ = exports2.RegionDisabledException$ = exports2.PackedPolicyTooLargeException$ = exports2.OutboundWebIdentityFederationDisabledException$ = exports2.MalformedPolicyDocumentException$ = exports2.JWTPayloadSizeExceededException$ = exports2.InvalidIdentityTokenException$ = exports2.InvalidAuthorizationMessageException$ = exports2.IDPRejectedClaimException$ = exports2.IDPCommunicationErrorException$ = exports2.ExpiredTradeInTokenException$ = exports2.ExpiredTokenException$ = exports2.STSServiceException$ = void 0;
- exports2.GetWebIdentityToken$ = exports2.GetSessionToken$ = exports2.GetFederationToken$ = void 0;
var _A2 = "Arn";
var _AKI2 = "AccessKeyId";
var _AP = "AssumedPrincipal";
@@ -45435,14 +45441,15 @@ var require_schemas_0 = __commonJS({
var _tLT2 = "tagListType";
var _wITT = "webIdentityTokenType";
var n05 = "com.amazonaws.sts";
- var schema_1 = (init_schema(), __toCommonJS(schema_exports));
- var errors_1 = require_errors2();
- var STSServiceException_1 = require_STSServiceException();
- var _s_registry5 = schema_1.TypeRegistry.for(_s5);
- exports2.STSServiceException$ = [-3, _s5, "STSServiceException", 0, [], []];
- _s_registry5.registerError(exports2.STSServiceException$, STSServiceException_1.STSServiceException);
- var n0_registry5 = schema_1.TypeRegistry.for(n05);
- exports2.ExpiredTokenException$ = [
+ var { TypeRegistry: TypeRegistry2 } = (init_schema(), __toCommonJS(schema_exports));
+ var { ExpiredTokenException: ExpiredTokenException3, ExpiredTradeInTokenException, IDPCommunicationErrorException: IDPCommunicationErrorException2, IDPRejectedClaimException: IDPRejectedClaimException2, InvalidAuthorizationMessageException, InvalidIdentityTokenException: InvalidIdentityTokenException2, JWTPayloadSizeExceededException, MalformedPolicyDocumentException: MalformedPolicyDocumentException2, OutboundWebIdentityFederationDisabledException, PackedPolicyTooLargeException: PackedPolicyTooLargeException3, RegionDisabledException: RegionDisabledException2, SessionDurationEscalationException } = require_errors2();
+ var { STSServiceException: STSServiceException2 } = require_STSServiceException();
+ var _s_registry5 = TypeRegistry2.for(_s5);
+ var STSServiceException$2 = [-3, _s5, "STSServiceException", 0, [], []];
+ exports2.STSServiceException$ = STSServiceException$2;
+ _s_registry5.registerError(STSServiceException$2, STSServiceException2);
+ var n0_registry5 = TypeRegistry2.for(n05);
+ var ExpiredTokenException$3 = [
-3,
n05,
_ETE3,
@@ -45450,8 +45457,9 @@ var require_schemas_0 = __commonJS({
[_m4],
[0]
];
- n0_registry5.registerError(exports2.ExpiredTokenException$, errors_1.ExpiredTokenException);
- exports2.ExpiredTradeInTokenException$ = [
+ exports2.ExpiredTokenException$ = ExpiredTokenException$3;
+ n0_registry5.registerError(ExpiredTokenException$3, ExpiredTokenException3);
+ var ExpiredTradeInTokenException$ = [
-3,
n05,
_ETITE,
@@ -45459,8 +45467,9 @@ var require_schemas_0 = __commonJS({
[_m4],
[0]
];
- n0_registry5.registerError(exports2.ExpiredTradeInTokenException$, errors_1.ExpiredTradeInTokenException);
- exports2.IDPCommunicationErrorException$ = [
+ exports2.ExpiredTradeInTokenException$ = ExpiredTradeInTokenException$;
+ n0_registry5.registerError(ExpiredTradeInTokenException$, ExpiredTradeInTokenException);
+ var IDPCommunicationErrorException$2 = [
-3,
n05,
_IDPCEE2,
@@ -45468,8 +45477,9 @@ var require_schemas_0 = __commonJS({
[_m4],
[0]
];
- n0_registry5.registerError(exports2.IDPCommunicationErrorException$, errors_1.IDPCommunicationErrorException);
- exports2.IDPRejectedClaimException$ = [
+ exports2.IDPCommunicationErrorException$ = IDPCommunicationErrorException$2;
+ n0_registry5.registerError(IDPCommunicationErrorException$2, IDPCommunicationErrorException2);
+ var IDPRejectedClaimException$2 = [
-3,
n05,
_IDPRCE2,
@@ -45477,8 +45487,9 @@ var require_schemas_0 = __commonJS({
[_m4],
[0]
];
- n0_registry5.registerError(exports2.IDPRejectedClaimException$, errors_1.IDPRejectedClaimException);
- exports2.InvalidAuthorizationMessageException$ = [
+ exports2.IDPRejectedClaimException$ = IDPRejectedClaimException$2;
+ n0_registry5.registerError(IDPRejectedClaimException$2, IDPRejectedClaimException2);
+ var InvalidAuthorizationMessageException$ = [
-3,
n05,
_IAME,
@@ -45486,8 +45497,9 @@ var require_schemas_0 = __commonJS({
[_m4],
[0]
];
- n0_registry5.registerError(exports2.InvalidAuthorizationMessageException$, errors_1.InvalidAuthorizationMessageException);
- exports2.InvalidIdentityTokenException$ = [
+ exports2.InvalidAuthorizationMessageException$ = InvalidAuthorizationMessageException$;
+ n0_registry5.registerError(InvalidAuthorizationMessageException$, InvalidAuthorizationMessageException);
+ var InvalidIdentityTokenException$2 = [
-3,
n05,
_IITE2,
@@ -45495,8 +45507,9 @@ var require_schemas_0 = __commonJS({
[_m4],
[0]
];
- n0_registry5.registerError(exports2.InvalidIdentityTokenException$, errors_1.InvalidIdentityTokenException);
- exports2.JWTPayloadSizeExceededException$ = [
+ exports2.InvalidIdentityTokenException$ = InvalidIdentityTokenException$2;
+ n0_registry5.registerError(InvalidIdentityTokenException$2, InvalidIdentityTokenException2);
+ var JWTPayloadSizeExceededException$ = [
-3,
n05,
_JWTPSEE,
@@ -45504,8 +45517,9 @@ var require_schemas_0 = __commonJS({
[_m4],
[0]
];
- n0_registry5.registerError(exports2.JWTPayloadSizeExceededException$, errors_1.JWTPayloadSizeExceededException);
- exports2.MalformedPolicyDocumentException$ = [
+ exports2.JWTPayloadSizeExceededException$ = JWTPayloadSizeExceededException$;
+ n0_registry5.registerError(JWTPayloadSizeExceededException$, JWTPayloadSizeExceededException);
+ var MalformedPolicyDocumentException$2 = [
-3,
n05,
_MPDE2,
@@ -45513,8 +45527,9 @@ var require_schemas_0 = __commonJS({
[_m4],
[0]
];
- n0_registry5.registerError(exports2.MalformedPolicyDocumentException$, errors_1.MalformedPolicyDocumentException);
- exports2.OutboundWebIdentityFederationDisabledException$ = [
+ exports2.MalformedPolicyDocumentException$ = MalformedPolicyDocumentException$2;
+ n0_registry5.registerError(MalformedPolicyDocumentException$2, MalformedPolicyDocumentException2);
+ var OutboundWebIdentityFederationDisabledException$ = [
-3,
n05,
_OWIFDE,
@@ -45522,8 +45537,9 @@ var require_schemas_0 = __commonJS({
[_m4],
[0]
];
- n0_registry5.registerError(exports2.OutboundWebIdentityFederationDisabledException$, errors_1.OutboundWebIdentityFederationDisabledException);
- exports2.PackedPolicyTooLargeException$ = [
+ exports2.OutboundWebIdentityFederationDisabledException$ = OutboundWebIdentityFederationDisabledException$;
+ n0_registry5.registerError(OutboundWebIdentityFederationDisabledException$, OutboundWebIdentityFederationDisabledException);
+ var PackedPolicyTooLargeException$2 = [
-3,
n05,
_PPTLE2,
@@ -45531,8 +45547,9 @@ var require_schemas_0 = __commonJS({
[_m4],
[0]
];
- n0_registry5.registerError(exports2.PackedPolicyTooLargeException$, errors_1.PackedPolicyTooLargeException);
- exports2.RegionDisabledException$ = [
+ exports2.PackedPolicyTooLargeException$ = PackedPolicyTooLargeException$2;
+ n0_registry5.registerError(PackedPolicyTooLargeException$2, PackedPolicyTooLargeException3);
+ var RegionDisabledException$2 = [
-3,
n05,
_RDE2,
@@ -45540,8 +45557,9 @@ var require_schemas_0 = __commonJS({
[_m4],
[0]
];
- n0_registry5.registerError(exports2.RegionDisabledException$, errors_1.RegionDisabledException);
- exports2.SessionDurationEscalationException$ = [
+ exports2.RegionDisabledException$ = RegionDisabledException$2;
+ n0_registry5.registerError(RegionDisabledException$2, RegionDisabledException2);
+ var SessionDurationEscalationException$ = [
-3,
n05,
_SDEE,
@@ -45549,7 +45567,8 @@ var require_schemas_0 = __commonJS({
[_m4],
[0]
];
- n0_registry5.registerError(exports2.SessionDurationEscalationException$, errors_1.SessionDurationEscalationException);
+ exports2.SessionDurationEscalationException$ = SessionDurationEscalationException$;
+ n0_registry5.registerError(SessionDurationEscalationException$, SessionDurationEscalationException);
exports2.errorTypeRegistries = [
_s_registry5,
n0_registry5
@@ -45559,7 +45578,7 @@ var require_schemas_0 = __commonJS({
var SAMLAssertionType = [0, n05, _SAMLAT, 8, 0];
var tradeInTokenType = [0, n05, _tITT, 8, 0];
var webIdentityTokenType = [0, n05, _wITT, 8, 0];
- exports2.AssumedRoleUser$ = [
+ var AssumedRoleUser$2 = [
3,
n05,
_ARU2,
@@ -45568,7 +45587,8 @@ var require_schemas_0 = __commonJS({
[0, 0],
2
];
- exports2.AssumeRoleRequest$ = [
+ exports2.AssumedRoleUser$ = AssumedRoleUser$2;
+ var AssumeRoleRequest$2 = [
3,
n05,
_ARR2,
@@ -45577,15 +45597,17 @@ var require_schemas_0 = __commonJS({
[0, 0, () => policyDescriptorListType2, 0, 1, () => tagListType2, 64 | 0, 0, 0, 0, 0, () => ProvidedContextsListType2],
2
];
- exports2.AssumeRoleResponse$ = [
+ exports2.AssumeRoleRequest$ = AssumeRoleRequest$2;
+ var AssumeRoleResponse$2 = [
3,
n05,
_ARRs2,
0,
[_C2, _ARU2, _PPS2, _SI2],
- [[() => exports2.Credentials$, 0], () => exports2.AssumedRoleUser$, 1, 0]
+ [[() => Credentials$2, 0], () => AssumedRoleUser$2, 1, 0]
];
- exports2.AssumeRoleWithSAMLRequest$ = [
+ exports2.AssumeRoleResponse$ = AssumeRoleResponse$2;
+ var AssumeRoleWithSAMLRequest$ = [
3,
n05,
_ARWSAMLR,
@@ -45594,15 +45616,17 @@ var require_schemas_0 = __commonJS({
[0, 0, [() => SAMLAssertionType, 0], () => policyDescriptorListType2, 0, 1],
3
];
- exports2.AssumeRoleWithSAMLResponse$ = [
+ exports2.AssumeRoleWithSAMLRequest$ = AssumeRoleWithSAMLRequest$;
+ var AssumeRoleWithSAMLResponse$ = [
3,
n05,
_ARWSAMLRs,
0,
[_C2, _ARU2, _PPS2, _S, _ST2, _I, _Au2, _NQ, _SI2],
- [[() => exports2.Credentials$, 0], () => exports2.AssumedRoleUser$, 1, 0, 0, 0, 0, 0, 0]
+ [[() => Credentials$2, 0], () => AssumedRoleUser$2, 1, 0, 0, 0, 0, 0, 0]
];
- exports2.AssumeRoleWithWebIdentityRequest$ = [
+ exports2.AssumeRoleWithSAMLResponse$ = AssumeRoleWithSAMLResponse$;
+ var AssumeRoleWithWebIdentityRequest$2 = [
3,
n05,
_ARWWIR2,
@@ -45611,32 +45635,36 @@ var require_schemas_0 = __commonJS({
[0, 0, [() => clientTokenType2, 0], 0, () => policyDescriptorListType2, 0, 1],
3
];
- exports2.AssumeRoleWithWebIdentityResponse$ = [
+ exports2.AssumeRoleWithWebIdentityRequest$ = AssumeRoleWithWebIdentityRequest$2;
+ var AssumeRoleWithWebIdentityResponse$2 = [
3,
n05,
_ARWWIRs2,
0,
[_C2, _SFWIT2, _ARU2, _PPS2, _Pr2, _Au2, _SI2],
- [[() => exports2.Credentials$, 0], 0, () => exports2.AssumedRoleUser$, 1, 0, 0, 0]
+ [[() => Credentials$2, 0], 0, () => AssumedRoleUser$2, 1, 0, 0, 0]
];
- exports2.AssumeRootRequest$ = [
+ exports2.AssumeRoleWithWebIdentityResponse$ = AssumeRoleWithWebIdentityResponse$2;
+ var AssumeRootRequest$ = [
3,
n05,
_ARRss,
0,
[_TP, _TPA, _DS2],
- [0, () => exports2.PolicyDescriptorType$, 1],
+ [0, () => PolicyDescriptorType$2, 1],
2
];
- exports2.AssumeRootResponse$ = [
+ exports2.AssumeRootRequest$ = AssumeRootRequest$;
+ var AssumeRootResponse$ = [
3,
n05,
_ARRssu,
0,
[_C2, _SI2],
- [[() => exports2.Credentials$, 0], 0]
+ [[() => Credentials$2, 0], 0]
];
- exports2.Credentials$ = [
+ exports2.AssumeRootResponse$ = AssumeRootResponse$;
+ var Credentials$2 = [
3,
n05,
_C2,
@@ -45645,7 +45673,8 @@ var require_schemas_0 = __commonJS({
[0, [() => accessKeySecretType2, 0], 0, 4],
4
];
- exports2.DecodeAuthorizationMessageRequest$ = [
+ exports2.Credentials$ = Credentials$2;
+ var DecodeAuthorizationMessageRequest$ = [
3,
n05,
_DAMR,
@@ -45654,7 +45683,8 @@ var require_schemas_0 = __commonJS({
[0],
1
];
- exports2.DecodeAuthorizationMessageResponse$ = [
+ exports2.DecodeAuthorizationMessageRequest$ = DecodeAuthorizationMessageRequest$;
+ var DecodeAuthorizationMessageResponse$ = [
3,
n05,
_DAMRe,
@@ -45662,7 +45692,8 @@ var require_schemas_0 = __commonJS({
[_DM],
[0]
];
- exports2.FederatedUser$ = [
+ exports2.DecodeAuthorizationMessageResponse$ = DecodeAuthorizationMessageResponse$;
+ var FederatedUser$ = [
3,
n05,
_FU,
@@ -45671,7 +45702,8 @@ var require_schemas_0 = __commonJS({
[0, 0],
2
];
- exports2.GetAccessKeyInfoRequest$ = [
+ exports2.FederatedUser$ = FederatedUser$;
+ var GetAccessKeyInfoRequest$ = [
3,
n05,
_GAKIR,
@@ -45680,7 +45712,8 @@ var require_schemas_0 = __commonJS({
[0],
1
];
- exports2.GetAccessKeyInfoResponse$ = [
+ exports2.GetAccessKeyInfoRequest$ = GetAccessKeyInfoRequest$;
+ var GetAccessKeyInfoResponse$ = [
3,
n05,
_GAKIRe,
@@ -45688,7 +45721,8 @@ var require_schemas_0 = __commonJS({
[_Ac],
[0]
];
- exports2.GetCallerIdentityRequest$ = [
+ exports2.GetAccessKeyInfoResponse$ = GetAccessKeyInfoResponse$;
+ var GetCallerIdentityRequest$ = [
3,
n05,
_GCIR,
@@ -45696,7 +45730,8 @@ var require_schemas_0 = __commonJS({
[],
[]
];
- exports2.GetCallerIdentityResponse$ = [
+ exports2.GetCallerIdentityRequest$ = GetCallerIdentityRequest$;
+ var GetCallerIdentityResponse$ = [
3,
n05,
_GCIRe,
@@ -45704,7 +45739,8 @@ var require_schemas_0 = __commonJS({
[_UI, _Ac, _A2],
[0, 0, 0]
];
- exports2.GetDelegatedAccessTokenRequest$ = [
+ exports2.GetCallerIdentityResponse$ = GetCallerIdentityResponse$;
+ var GetDelegatedAccessTokenRequest$ = [
3,
n05,
_GDATR,
@@ -45713,15 +45749,17 @@ var require_schemas_0 = __commonJS({
[[() => tradeInTokenType, 0]],
1
];
- exports2.GetDelegatedAccessTokenResponse$ = [
+ exports2.GetDelegatedAccessTokenRequest$ = GetDelegatedAccessTokenRequest$;
+ var GetDelegatedAccessTokenResponse$ = [
3,
n05,
_GDATRe,
0,
[_C2, _PPS2, _AP],
- [[() => exports2.Credentials$, 0], 1, 0]
+ [[() => Credentials$2, 0], 1, 0]
];
- exports2.GetFederationTokenRequest$ = [
+ exports2.GetDelegatedAccessTokenResponse$ = GetDelegatedAccessTokenResponse$;
+ var GetFederationTokenRequest$ = [
3,
n05,
_GFTR,
@@ -45730,15 +45768,17 @@ var require_schemas_0 = __commonJS({
[0, 0, () => policyDescriptorListType2, 1, () => tagListType2],
1
];
- exports2.GetFederationTokenResponse$ = [
+ exports2.GetFederationTokenRequest$ = GetFederationTokenRequest$;
+ var GetFederationTokenResponse$ = [
3,
n05,
_GFTRe,
0,
[_C2, _FU, _PPS2],
- [[() => exports2.Credentials$, 0], () => exports2.FederatedUser$, 1]
+ [[() => Credentials$2, 0], () => FederatedUser$, 1]
];
- exports2.GetSessionTokenRequest$ = [
+ exports2.GetFederationTokenResponse$ = GetFederationTokenResponse$;
+ var GetSessionTokenRequest$ = [
3,
n05,
_GSTR,
@@ -45746,15 +45786,17 @@ var require_schemas_0 = __commonJS({
[_DS2, _SN2, _TC2],
[1, 0, 0]
];
- exports2.GetSessionTokenResponse$ = [
+ exports2.GetSessionTokenRequest$ = GetSessionTokenRequest$;
+ var GetSessionTokenResponse$ = [
3,
n05,
_GSTRe,
0,
[_C2],
- [[() => exports2.Credentials$, 0]]
+ [[() => Credentials$2, 0]]
];
- exports2.GetWebIdentityTokenRequest$ = [
+ exports2.GetSessionTokenResponse$ = GetSessionTokenResponse$;
+ var GetWebIdentityTokenRequest$ = [
3,
n05,
_GWITR,
@@ -45763,7 +45805,8 @@ var require_schemas_0 = __commonJS({
[64 | 0, 0, 1, () => tagListType2],
2
];
- exports2.GetWebIdentityTokenResponse$ = [
+ exports2.GetWebIdentityTokenRequest$ = GetWebIdentityTokenRequest$;
+ var GetWebIdentityTokenResponse$ = [
3,
n05,
_GWITRe,
@@ -45771,7 +45814,8 @@ var require_schemas_0 = __commonJS({
[_WIT2, _E2],
[[() => webIdentityTokenType, 0], 4]
];
- exports2.PolicyDescriptorType$ = [
+ exports2.GetWebIdentityTokenResponse$ = GetWebIdentityTokenResponse$;
+ var PolicyDescriptorType$2 = [
3,
n05,
_PDT2,
@@ -45779,7 +45823,8 @@ var require_schemas_0 = __commonJS({
[_a2],
[0]
];
- exports2.ProvidedContext$ = [
+ exports2.PolicyDescriptorType$ = PolicyDescriptorType$2;
+ var ProvidedContext$2 = [
3,
n05,
_PCr2,
@@ -45787,7 +45832,8 @@ var require_schemas_0 = __commonJS({
[_PAro, _CA2],
[0, 0]
];
- exports2.Tag$ = [
+ exports2.ProvidedContext$ = ProvidedContext$2;
+ var Tag$2 = [
3,
n05,
_Ta2,
@@ -45796,19 +45842,20 @@ var require_schemas_0 = __commonJS({
[0, 0],
2
];
+ exports2.Tag$ = Tag$2;
var policyDescriptorListType2 = [
1,
n05,
_pDLT2,
0,
- () => exports2.PolicyDescriptorType$
+ () => PolicyDescriptorType$2
];
var ProvidedContextsListType2 = [
1,
n05,
_PCLT2,
0,
- () => exports2.ProvidedContext$
+ () => ProvidedContext$2
];
var tagKeyListType2 = 64 | 0;
var tagListType2 = [
@@ -45816,7 +45863,7 @@ var require_schemas_0 = __commonJS({
n05,
_tLT2,
0,
- () => exports2.Tag$
+ () => Tag$2
];
var webIdentityTokenAudienceListType = 64 | 0;
exports2.AssumeRole$ = [
@@ -45824,88 +45871,88 @@ var require_schemas_0 = __commonJS({
n05,
_AR2,
0,
- () => exports2.AssumeRoleRequest$,
- () => exports2.AssumeRoleResponse$
+ () => AssumeRoleRequest$2,
+ () => AssumeRoleResponse$2
];
exports2.AssumeRoleWithSAML$ = [
9,
n05,
_ARWSAML,
0,
- () => exports2.AssumeRoleWithSAMLRequest$,
- () => exports2.AssumeRoleWithSAMLResponse$
+ () => AssumeRoleWithSAMLRequest$,
+ () => AssumeRoleWithSAMLResponse$
];
exports2.AssumeRoleWithWebIdentity$ = [
9,
n05,
_ARWWI2,
0,
- () => exports2.AssumeRoleWithWebIdentityRequest$,
- () => exports2.AssumeRoleWithWebIdentityResponse$
+ () => AssumeRoleWithWebIdentityRequest$2,
+ () => AssumeRoleWithWebIdentityResponse$2
];
exports2.AssumeRoot$ = [
9,
n05,
_ARs,
0,
- () => exports2.AssumeRootRequest$,
- () => exports2.AssumeRootResponse$
+ () => AssumeRootRequest$,
+ () => AssumeRootResponse$
];
exports2.DecodeAuthorizationMessage$ = [
9,
n05,
_DAM,
0,
- () => exports2.DecodeAuthorizationMessageRequest$,
- () => exports2.DecodeAuthorizationMessageResponse$
+ () => DecodeAuthorizationMessageRequest$,
+ () => DecodeAuthorizationMessageResponse$
];
exports2.GetAccessKeyInfo$ = [
9,
n05,
_GAKI,
0,
- () => exports2.GetAccessKeyInfoRequest$,
- () => exports2.GetAccessKeyInfoResponse$
+ () => GetAccessKeyInfoRequest$,
+ () => GetAccessKeyInfoResponse$
];
exports2.GetCallerIdentity$ = [
9,
n05,
_GCI,
0,
- () => exports2.GetCallerIdentityRequest$,
- () => exports2.GetCallerIdentityResponse$
+ () => GetCallerIdentityRequest$,
+ () => GetCallerIdentityResponse$
];
exports2.GetDelegatedAccessToken$ = [
9,
n05,
_GDAT,
0,
- () => exports2.GetDelegatedAccessTokenRequest$,
- () => exports2.GetDelegatedAccessTokenResponse$
+ () => GetDelegatedAccessTokenRequest$,
+ () => GetDelegatedAccessTokenResponse$
];
exports2.GetFederationToken$ = [
9,
n05,
_GFT,
0,
- () => exports2.GetFederationTokenRequest$,
- () => exports2.GetFederationTokenResponse$
+ () => GetFederationTokenRequest$,
+ () => GetFederationTokenResponse$
];
exports2.GetSessionToken$ = [
9,
n05,
_GST,
0,
- () => exports2.GetSessionTokenRequest$,
- () => exports2.GetSessionTokenResponse$
+ () => GetSessionTokenRequest$,
+ () => GetSessionTokenResponse$
];
exports2.GetWebIdentityToken$ = [
9,
n05,
_GWIT,
0,
- () => exports2.GetWebIdentityTokenRequest$,
- () => exports2.GetWebIdentityTokenResponse$
+ () => GetWebIdentityTokenRequest$,
+ () => GetWebIdentityTokenResponse$
];
}
});
@@ -45913,89 +45960,81 @@ var require_schemas_0 = __commonJS({
// node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js
var require_runtimeConfig_shared = __commonJS({
"node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js"(exports2) {
- "use strict";
- Object.defineProperty(exports2, "__esModule", { value: true });
- exports2.getRuntimeConfig = void 0;
- var httpAuthSchemes_1 = (init_httpAuthSchemes2(), __toCommonJS(httpAuthSchemes_exports));
- var protocols_1 = (init_protocols2(), __toCommonJS(protocols_exports2));
- var signature_v4_multi_region_1 = require_dist_cjs6();
- var core_1 = (init_dist_es(), __toCommonJS(dist_es_exports));
- var client_1 = (init_client2(), __toCommonJS(client_exports));
- var protocols_2 = (init_protocols(), __toCommonJS(protocols_exports));
- var serde_1 = (init_serde(), __toCommonJS(serde_exports));
- var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider();
- var endpointResolver_1 = require_endpointResolver();
- var schemas_0_1 = require_schemas_0();
- var getRuntimeConfig9 = (config) => {
+ var { AwsSdkSigV4ASigner: AwsSdkSigV4ASigner2, AwsSdkSigV4Signer: AwsSdkSigV4Signer2 } = (init_httpAuthSchemes2(), __toCommonJS(httpAuthSchemes_exports));
+ var { AwsQueryProtocol: AwsQueryProtocol2 } = (init_protocols2(), __toCommonJS(protocols_exports2));
+ var { SignatureV4MultiRegion: SignatureV4MultiRegion3 } = require_dist_cjs6();
+ var { NoAuthSigner: NoAuthSigner2 } = (init_dist_es(), __toCommonJS(dist_es_exports));
+ var { NoOpLogger: NoOpLogger2 } = (init_client2(), __toCommonJS(client_exports));
+ var { parseUrl: parseUrl3 } = (init_protocols(), __toCommonJS(protocols_exports));
+ var { fromBase64: fromBase643, fromUtf8: fromUtf83, toBase64: toBase643, toUtf8: toUtf83 } = (init_serde(), __toCommonJS(serde_exports));
+ var { defaultSTSHttpAuthSchemeProvider: defaultSTSHttpAuthSchemeProvider2 } = require_httpAuthSchemeProvider();
+ var { defaultEndpointResolver: defaultEndpointResolver5 } = require_endpointResolver();
+ var { errorTypeRegistries: errorTypeRegistries5 } = require_schemas_0();
+ exports2.getRuntimeConfig = (config) => {
return {
apiVersion: "2011-06-15",
- base64Decoder: config?.base64Decoder ?? serde_1.fromBase64,
- base64Encoder: config?.base64Encoder ?? serde_1.toBase64,
+ base64Decoder: config?.base64Decoder ?? fromBase643,
+ base64Encoder: config?.base64Encoder ?? toBase643,
disableHostPrefix: config?.disableHostPrefix ?? false,
- endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver5,
extensions: config?.extensions ?? [],
- httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSTSHttpAuthSchemeProvider,
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSTSHttpAuthSchemeProvider2,
httpAuthSchemes: config?.httpAuthSchemes ?? [
{
schemeId: "aws.auth#sigv4",
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
- signer: new httpAuthSchemes_1.AwsSdkSigV4Signer()
+ signer: new AwsSdkSigV4Signer2()
},
{
schemeId: "aws.auth#sigv4a",
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4a"),
- signer: new httpAuthSchemes_1.AwsSdkSigV4ASigner()
+ signer: new AwsSdkSigV4ASigner2()
},
{
schemeId: "smithy.api#noAuth",
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
- signer: new core_1.NoAuthSigner()
+ signer: new NoAuthSigner2()
}
],
- logger: config?.logger ?? new client_1.NoOpLogger(),
- protocol: config?.protocol ?? protocols_1.AwsQueryProtocol,
+ logger: config?.logger ?? new NoOpLogger2(),
+ protocol: config?.protocol ?? AwsQueryProtocol2,
protocolSettings: config?.protocolSettings ?? {
defaultNamespace: "com.amazonaws.sts",
- errorTypeRegistries: schemas_0_1.errorTypeRegistries,
+ errorTypeRegistries: errorTypeRegistries5,
xmlNamespace: "https://sts.amazonaws.com/doc/2011-06-15/",
version: "2011-06-15",
serviceTarget: "AWSSecurityTokenServiceV20110615"
},
serviceId: config?.serviceId ?? "STS",
- signerConstructor: config?.signerConstructor ?? signature_v4_multi_region_1.SignatureV4MultiRegion,
- urlParser: config?.urlParser ?? protocols_2.parseUrl,
- utf8Decoder: config?.utf8Decoder ?? serde_1.fromUtf8,
- utf8Encoder: config?.utf8Encoder ?? serde_1.toUtf8
+ signerConstructor: config?.signerConstructor ?? SignatureV4MultiRegion3,
+ urlParser: config?.urlParser ?? parseUrl3,
+ utf8Decoder: config?.utf8Decoder ?? fromUtf83,
+ utf8Encoder: config?.utf8Encoder ?? toUtf83
};
};
- exports2.getRuntimeConfig = getRuntimeConfig9;
}
});
// node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js
var require_runtimeConfig = __commonJS({
"node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js"(exports2) {
- "use strict";
- Object.defineProperty(exports2, "__esModule", { value: true });
- exports2.getRuntimeConfig = void 0;
- var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
- var package_json_1 = tslib_1.__importDefault(require_package());
- var client_1 = (init_client3(), __toCommonJS(client_exports2));
- var httpAuthSchemes_1 = (init_httpAuthSchemes2(), __toCommonJS(httpAuthSchemes_exports));
- var credential_provider_node_1 = require_dist_cjs18();
- var core_1 = (init_dist_es(), __toCommonJS(dist_es_exports));
- var client_2 = (init_client2(), __toCommonJS(client_exports));
- var config_1 = (init_config2(), __toCommonJS(config_exports));
- var retry_1 = (init_retry2(), __toCommonJS(retry_exports));
- var serde_1 = (init_serde(), __toCommonJS(serde_exports));
- var node_http_handler_1 = require_dist_cjs9();
- var runtimeConfig_shared_1 = require_runtimeConfig_shared();
+ var packageInfo = require_package();
+ var { createDefaultUserAgentProvider: createDefaultUserAgentProvider2, emitWarningIfUnsupportedVersion: awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS: NODE_APP_ID_CONFIG_OPTIONS2 } = (init_client3(), __toCommonJS(client_exports2));
+ var { AwsSdkSigV4ASigner: AwsSdkSigV4ASigner2, AwsSdkSigV4Signer: AwsSdkSigV4Signer2, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS: NODE_AUTH_SCHEME_PREFERENCE_OPTIONS2, NODE_SIGV4A_CONFIG_OPTIONS: NODE_SIGV4A_CONFIG_OPTIONS2 } = (init_httpAuthSchemes2(), __toCommonJS(httpAuthSchemes_exports));
+ var { defaultProvider: credentialDefaultProvider } = require_dist_cjs18();
+ var { NoAuthSigner: NoAuthSigner2 } = (init_dist_es(), __toCommonJS(dist_es_exports));
+ var { emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion3, loadConfigsForDefaultMode: loadConfigsForDefaultMode2 } = (init_client2(), __toCommonJS(client_exports));
+ var { loadConfig: loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS: NODE_REGION_CONFIG_FILE_OPTIONS2, NODE_REGION_CONFIG_OPTIONS: NODE_REGION_CONFIG_OPTIONS2, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS: NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS2, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS: NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS2, resolveDefaultsModeConfig: resolveDefaultsModeConfig2 } = (init_config2(), __toCommonJS(config_exports));
+ var { DEFAULT_RETRY_MODE: DEFAULT_RETRY_MODE2, NODE_MAX_ATTEMPT_CONFIG_OPTIONS: NODE_MAX_ATTEMPT_CONFIG_OPTIONS2, NODE_RETRY_MODE_CONFIG_OPTIONS: NODE_RETRY_MODE_CONFIG_OPTIONS2 } = (init_retry2(), __toCommonJS(retry_exports));
+ var { calculateBodyLength: calculateBodyLength2, Hash: Hash2 } = (init_serde(), __toCommonJS(serde_exports));
+ var { NodeHttpHandler: RequestHandler5, streamCollector: streamCollector7 } = require_dist_cjs9();
+ var { getRuntimeConfig: getSharedRuntimeConfig } = require_runtimeConfig_shared();
var getRuntimeConfig9 = (config) => {
- (0, client_2.emitWarningIfUnsupportedVersion)(process.version);
- const defaultsMode = (0, config_1.resolveDefaultsModeConfig)(config);
- const defaultConfigProvider = () => defaultsMode().then(client_2.loadConfigsForDefaultMode);
- const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
- (0, client_1.emitWarningIfUnsupportedVersion)(process.version);
+ emitWarningIfUnsupportedVersion3(process.version);
+ const defaultsMode = resolveDefaultsModeConfig2(config);
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode2);
+ const clientSharedValues = getSharedRuntimeConfig(config);
+ awsCheckVersion(process.version);
const loaderConfig = {
profile: config?.profile,
logger: clientSharedValues.logger
@@ -46005,40 +46044,40 @@ var require_runtimeConfig = __commonJS({
...config,
runtime: "node",
defaultsMode,
- authSchemePreference: config?.authSchemePreference ?? (0, config_1.loadConfig)(httpAuthSchemes_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
- bodyLengthChecker: config?.bodyLengthChecker ?? serde_1.calculateBodyLength,
- credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, client_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
+ authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS2, loaderConfig),
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength2,
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider2({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
httpAuthSchemes: config?.httpAuthSchemes ?? [
{
schemeId: "aws.auth#sigv4",
- identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4") || (async (idProps) => await (0, credential_provider_node_1.defaultProvider)(idProps?.__config || {})()),
- signer: new httpAuthSchemes_1.AwsSdkSigV4Signer()
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4") || (async (idProps) => await credentialDefaultProvider(idProps?.__config || {})()),
+ signer: new AwsSdkSigV4Signer2()
},
{
schemeId: "aws.auth#sigv4a",
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4a"),
- signer: new httpAuthSchemes_1.AwsSdkSigV4ASigner()
+ signer: new AwsSdkSigV4ASigner2()
},
{
schemeId: "smithy.api#noAuth",
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
- signer: new core_1.NoAuthSigner()
+ signer: new NoAuthSigner2()
}
],
- maxAttempts: config?.maxAttempts ?? (0, config_1.loadConfig)(retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
- region: config?.region ?? (0, config_1.loadConfig)(config_1.NODE_REGION_CONFIG_OPTIONS, { ...config_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
- requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
- retryMode: config?.retryMode ?? (0, config_1.loadConfig)({
- ...retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
- default: async () => (await defaultConfigProvider()).retryMode || retry_1.DEFAULT_RETRY_MODE
+ maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS2, config),
+ region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS2, { ...NODE_REGION_CONFIG_FILE_OPTIONS2, ...loaderConfig }),
+ requestHandler: RequestHandler5.create(config?.requestHandler ?? defaultConfigProvider),
+ retryMode: config?.retryMode ?? loadNodeConfig({
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS2,
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE2
}, config),
- sha256: config?.sha256 ?? serde_1.Hash.bind(null, "sha256"),
- sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? (0, config_1.loadConfig)(httpAuthSchemes_1.NODE_SIGV4A_CONFIG_OPTIONS, loaderConfig),
- streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, config_1.loadConfig)(config_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
- useFipsEndpoint: config?.useFipsEndpoint ?? (0, config_1.loadConfig)(config_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
- userAgentAppId: config?.userAgentAppId ?? (0, config_1.loadConfig)(client_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
+ sha256: config?.sha256 ?? Hash2.bind(null, "sha256"),
+ sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? loadNodeConfig(NODE_SIGV4A_CONFIG_OPTIONS2, loaderConfig),
+ streamCollector: config?.streamCollector ?? streamCollector7,
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS2, loaderConfig),
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS2, loaderConfig),
+ userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS2, loaderConfig)
};
};
exports2.getRuntimeConfig = getRuntimeConfig9;
@@ -46048,20 +46087,26 @@ var require_runtimeConfig = __commonJS({
// node_modules/@aws-sdk/client-sts/dist-cjs/index.js
var require_dist_cjs19 = __commonJS({
"node_modules/@aws-sdk/client-sts/dist-cjs/index.js"(exports2) {
- "use strict";
- var client$1 = (init_client3(), __toCommonJS(client_exports2));
- var core = (init_dist_es(), __toCommonJS(dist_es_exports));
- var client = (init_client2(), __toCommonJS(client_exports));
- var config = (init_config2(), __toCommonJS(config_exports));
- var endpoints = (init_endpoints(), __toCommonJS(endpoints_exports));
- var protocols2 = (init_protocols(), __toCommonJS(protocols_exports));
- var retry = (init_retry2(), __toCommonJS(retry_exports));
- var schema = (init_schema(), __toCommonJS(schema_exports));
- var httpAuthSchemeProvider = require_httpAuthSchemeProvider();
- var runtimeConfig = require_runtimeConfig();
- var schemas_0 = require_schemas_0();
- var errors = require_errors2();
- var STSServiceException2 = require_STSServiceException();
+ var __exportStar2 = (m3, e5) => {
+ Object.assign(e5, m3);
+ };
+ var { getAwsRegionExtensionConfiguration: getAwsRegionExtensionConfiguration2, resolveAwsRegionExtensionConfiguration: resolveAwsRegionExtensionConfiguration2, resolveUserAgentConfig: resolveUserAgentConfig2, resolveHostHeaderConfig: resolveHostHeaderConfig2, getUserAgentPlugin: getUserAgentPlugin2, getHostHeaderPlugin: getHostHeaderPlugin2, getLoggerPlugin: getLoggerPlugin2, getRecursionDetectionPlugin: getRecursionDetectionPlugin2, setCredentialFeature: setCredentialFeature2, stsRegionDefaultResolver: stsRegionDefaultResolver2 } = (init_client3(), __toCommonJS(client_exports2));
+ var { getHttpAuthSchemeEndpointRuleSetPlugin: getHttpAuthSchemeEndpointRuleSetPlugin2, DefaultIdentityProviderConfig: DefaultIdentityProviderConfig2, getHttpSigningPlugin: getHttpSigningPlugin2 } = (init_dist_es(), __toCommonJS(dist_es_exports));
+ var { getDefaultExtensionConfiguration: getDefaultExtensionConfiguration2, resolveDefaultRuntimeConfig: resolveDefaultRuntimeConfig2, Client: Client3, Command: Command3, createAggregatedClient: createAggregatedClient2 } = (init_client2(), __toCommonJS(client_exports));
+ exports2.$Command = Command3;
+ exports2.__Client = Client3;
+ var { resolveRegionConfig: resolveRegionConfig2 } = (init_config2(), __toCommonJS(config_exports));
+ var { resolveEndpointConfig: resolveEndpointConfig2, getEndpointPlugin: getEndpointPlugin2 } = (init_endpoints(), __toCommonJS(endpoints_exports));
+ var { getHttpHandlerExtensionConfiguration: getHttpHandlerExtensionConfiguration2, resolveHttpHandlerRuntimeConfig: resolveHttpHandlerRuntimeConfig2, getContentLengthPlugin: getContentLengthPlugin2 } = (init_protocols(), __toCommonJS(protocols_exports));
+ var { resolveRetryConfig: resolveRetryConfig2, getRetryPlugin: getRetryPlugin2 } = (init_retry2(), __toCommonJS(retry_exports));
+ var { getSchemaSerdePlugin: getSchemaSerdePlugin2 } = (init_schema(), __toCommonJS(schema_exports));
+ var { resolveHttpAuthSchemeConfig: resolveHttpAuthSchemeConfig5, defaultSTSHttpAuthSchemeParametersProvider: defaultSTSHttpAuthSchemeParametersProvider2 } = require_httpAuthSchemeProvider();
+ var { getRuntimeConfig: getRuntimeConfig9 } = require_runtimeConfig();
+ var { AssumeRole$: AssumeRole$2, AssumeRoleWithSAML$, AssumeRoleWithWebIdentity$: AssumeRoleWithWebIdentity$2, AssumeRoot$, DecodeAuthorizationMessage$, GetAccessKeyInfo$, GetCallerIdentity$, GetDelegatedAccessToken$, GetFederationToken$, GetSessionToken$, GetWebIdentityToken$ } = require_schemas_0();
+ __exportStar2(require_schemas_0(), exports2);
+ __exportStar2(require_errors2(), exports2);
+ var { STSServiceException: STSServiceException2 } = require_STSServiceException();
+ exports2.STSServiceException = STSServiceException2;
var resolveClientEndpointParameters5 = (options) => {
return Object.assign(options, {
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
@@ -46077,10 +46122,10 @@ var require_dist_cjs19 = __commonJS({
Region: { type: "builtInParams", name: "region" },
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
};
- var getHttpAuthExtensionConfiguration5 = (runtimeConfig2) => {
- const _httpAuthSchemes = runtimeConfig2.httpAuthSchemes;
- let _httpAuthSchemeProvider = runtimeConfig2.httpAuthSchemeProvider;
- let _credentials = runtimeConfig2.credentials;
+ var getHttpAuthExtensionConfiguration5 = (runtimeConfig) => {
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
+ let _credentials = runtimeConfig.credentials;
return {
setHttpAuthScheme(httpAuthScheme) {
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
@@ -46093,8 +46138,8 @@ var require_dist_cjs19 = __commonJS({
httpAuthSchemes() {
return _httpAuthSchemes;
},
- setHttpAuthSchemeProvider(httpAuthSchemeProvider2) {
- _httpAuthSchemeProvider = httpAuthSchemeProvider2;
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
},
httpAuthSchemeProvider() {
return _httpAuthSchemeProvider;
@@ -46107,96 +46152,96 @@ var require_dist_cjs19 = __commonJS({
}
};
};
- var resolveHttpAuthRuntimeConfig5 = (config2) => {
+ var resolveHttpAuthRuntimeConfig5 = (config) => {
return {
- httpAuthSchemes: config2.httpAuthSchemes(),
- httpAuthSchemeProvider: config2.httpAuthSchemeProvider(),
- credentials: config2.credentials()
+ httpAuthSchemes: config.httpAuthSchemes(),
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
+ credentials: config.credentials()
};
};
- var resolveRuntimeExtensions5 = (runtimeConfig2, extensions) => {
- const extensionConfiguration = Object.assign(client$1.getAwsRegionExtensionConfiguration(runtimeConfig2), client.getDefaultExtensionConfiguration(runtimeConfig2), protocols2.getHttpHandlerExtensionConfiguration(runtimeConfig2), getHttpAuthExtensionConfiguration5(runtimeConfig2));
+ var resolveRuntimeExtensions5 = (runtimeConfig, extensions) => {
+ const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration2(runtimeConfig), getDefaultExtensionConfiguration2(runtimeConfig), getHttpHandlerExtensionConfiguration2(runtimeConfig), getHttpAuthExtensionConfiguration5(runtimeConfig));
extensions.forEach((extension) => extension.configure(extensionConfiguration));
- return Object.assign(runtimeConfig2, client$1.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols2.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig5(extensionConfiguration));
+ return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration2(extensionConfiguration), resolveDefaultRuntimeConfig2(extensionConfiguration), resolveHttpHandlerRuntimeConfig2(extensionConfiguration), resolveHttpAuthRuntimeConfig5(extensionConfiguration));
};
- var STSClient3 = class extends client.Client {
+ var STSClient3 = class extends Client3 {
config;
constructor(...[configuration]) {
- const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
+ const _config_0 = getRuntimeConfig9(configuration || {});
super(_config_0);
this.initConfig = _config_0;
const _config_1 = resolveClientEndpointParameters5(_config_0);
- const _config_2 = client$1.resolveUserAgentConfig(_config_1);
- const _config_3 = retry.resolveRetryConfig(_config_2);
- const _config_4 = config.resolveRegionConfig(_config_3);
- const _config_5 = client$1.resolveHostHeaderConfig(_config_4);
- const _config_6 = endpoints.resolveEndpointConfig(_config_5);
- const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
+ const _config_2 = resolveUserAgentConfig2(_config_1);
+ const _config_3 = resolveRetryConfig2(_config_2);
+ const _config_4 = resolveRegionConfig2(_config_3);
+ const _config_5 = resolveHostHeaderConfig2(_config_4);
+ const _config_6 = resolveEndpointConfig2(_config_5);
+ const _config_7 = resolveHttpAuthSchemeConfig5(_config_6);
const _config_8 = resolveRuntimeExtensions5(_config_7, configuration?.extensions || []);
this.config = _config_8;
- this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
- this.middlewareStack.use(client$1.getUserAgentPlugin(this.config));
- this.middlewareStack.use(retry.getRetryPlugin(this.config));
- this.middlewareStack.use(protocols2.getContentLengthPlugin(this.config));
- this.middlewareStack.use(client$1.getHostHeaderPlugin(this.config));
- this.middlewareStack.use(client$1.getLoggerPlugin(this.config));
- this.middlewareStack.use(client$1.getRecursionDetectionPlugin(this.config));
- this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
- httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultSTSHttpAuthSchemeParametersProvider,
- identityProviderConfigProvider: async (config2) => new core.DefaultIdentityProviderConfig({
- "aws.auth#sigv4": config2.credentials,
- "aws.auth#sigv4a": config2.credentials
+ this.middlewareStack.use(getSchemaSerdePlugin2(this.config));
+ this.middlewareStack.use(getUserAgentPlugin2(this.config));
+ this.middlewareStack.use(getRetryPlugin2(this.config));
+ this.middlewareStack.use(getContentLengthPlugin2(this.config));
+ this.middlewareStack.use(getHostHeaderPlugin2(this.config));
+ this.middlewareStack.use(getLoggerPlugin2(this.config));
+ this.middlewareStack.use(getRecursionDetectionPlugin2(this.config));
+ this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin2(this.config, {
+ httpAuthSchemeParametersProvider: defaultSTSHttpAuthSchemeParametersProvider2,
+ identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig2({
+ "aws.auth#sigv4": config.credentials,
+ "aws.auth#sigv4a": config.credentials
})
}));
- this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
+ this.middlewareStack.use(getHttpSigningPlugin2(this.config));
}
destroy() {
super.destroy();
}
};
- var AssumeRoleCommand3 = class extends client.Command.classBuilder().ep(commonParams5).m(function(Command3, cs, config2, o2) {
- return [endpoints.getEndpointPlugin(config2, Command3.getEndpointParameterInstructions())];
- }).s("AWSSecurityTokenServiceV20110615", "AssumeRole", {}).n("STSClient", "AssumeRoleCommand").sc(schemas_0.AssumeRole$).build() {
+ var AssumeRoleCommand3 = class extends Command3.classBuilder().ep(commonParams5).m(function(Command4, cs, config, o3) {
+ return [getEndpointPlugin2(config, Command4.getEndpointParameterInstructions())];
+ }).s("AWSSecurityTokenServiceV20110615", "AssumeRole", {}).n("STSClient", "AssumeRoleCommand").sc(AssumeRole$2).build() {
};
- var AssumeRoleWithSAMLCommand = class extends client.Command.classBuilder().ep(commonParams5).m(function(Command3, cs, config2, o2) {
- return [endpoints.getEndpointPlugin(config2, Command3.getEndpointParameterInstructions())];
- }).s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithSAML", {}).n("STSClient", "AssumeRoleWithSAMLCommand").sc(schemas_0.AssumeRoleWithSAML$).build() {
+ var AssumeRoleWithSAMLCommand = class extends Command3.classBuilder().ep(commonParams5).m(function(Command4, cs, config, o3) {
+ return [getEndpointPlugin2(config, Command4.getEndpointParameterInstructions())];
+ }).s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithSAML", {}).n("STSClient", "AssumeRoleWithSAMLCommand").sc(AssumeRoleWithSAML$).build() {
};
- var AssumeRoleWithWebIdentityCommand3 = class extends client.Command.classBuilder().ep(commonParams5).m(function(Command3, cs, config2, o2) {
- return [endpoints.getEndpointPlugin(config2, Command3.getEndpointParameterInstructions())];
- }).s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithWebIdentity", {}).n("STSClient", "AssumeRoleWithWebIdentityCommand").sc(schemas_0.AssumeRoleWithWebIdentity$).build() {
+ var AssumeRoleWithWebIdentityCommand3 = class extends Command3.classBuilder().ep(commonParams5).m(function(Command4, cs, config, o3) {
+ return [getEndpointPlugin2(config, Command4.getEndpointParameterInstructions())];
+ }).s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithWebIdentity", {}).n("STSClient", "AssumeRoleWithWebIdentityCommand").sc(AssumeRoleWithWebIdentity$2).build() {
};
- var AssumeRootCommand = class extends client.Command.classBuilder().ep(commonParams5).m(function(Command3, cs, config2, o2) {
- return [endpoints.getEndpointPlugin(config2, Command3.getEndpointParameterInstructions())];
- }).s("AWSSecurityTokenServiceV20110615", "AssumeRoot", {}).n("STSClient", "AssumeRootCommand").sc(schemas_0.AssumeRoot$).build() {
+ var AssumeRootCommand = class extends Command3.classBuilder().ep(commonParams5).m(function(Command4, cs, config, o3) {
+ return [getEndpointPlugin2(config, Command4.getEndpointParameterInstructions())];
+ }).s("AWSSecurityTokenServiceV20110615", "AssumeRoot", {}).n("STSClient", "AssumeRootCommand").sc(AssumeRoot$).build() {
};
- var DecodeAuthorizationMessageCommand = class extends client.Command.classBuilder().ep(commonParams5).m(function(Command3, cs, config2, o2) {
- return [endpoints.getEndpointPlugin(config2, Command3.getEndpointParameterInstructions())];
- }).s("AWSSecurityTokenServiceV20110615", "DecodeAuthorizationMessage", {}).n("STSClient", "DecodeAuthorizationMessageCommand").sc(schemas_0.DecodeAuthorizationMessage$).build() {
+ var DecodeAuthorizationMessageCommand = class extends Command3.classBuilder().ep(commonParams5).m(function(Command4, cs, config, o3) {
+ return [getEndpointPlugin2(config, Command4.getEndpointParameterInstructions())];
+ }).s("AWSSecurityTokenServiceV20110615", "DecodeAuthorizationMessage", {}).n("STSClient", "DecodeAuthorizationMessageCommand").sc(DecodeAuthorizationMessage$).build() {
};
- var GetAccessKeyInfoCommand = class extends client.Command.classBuilder().ep(commonParams5).m(function(Command3, cs, config2, o2) {
- return [endpoints.getEndpointPlugin(config2, Command3.getEndpointParameterInstructions())];
- }).s("AWSSecurityTokenServiceV20110615", "GetAccessKeyInfo", {}).n("STSClient", "GetAccessKeyInfoCommand").sc(schemas_0.GetAccessKeyInfo$).build() {
+ var GetAccessKeyInfoCommand = class extends Command3.classBuilder().ep(commonParams5).m(function(Command4, cs, config, o3) {
+ return [getEndpointPlugin2(config, Command4.getEndpointParameterInstructions())];
+ }).s("AWSSecurityTokenServiceV20110615", "GetAccessKeyInfo", {}).n("STSClient", "GetAccessKeyInfoCommand").sc(GetAccessKeyInfo$).build() {
};
- var GetCallerIdentityCommand2 = class extends client.Command.classBuilder().ep(commonParams5).m(function(Command3, cs, config2, o2) {
- return [endpoints.getEndpointPlugin(config2, Command3.getEndpointParameterInstructions())];
- }).s("AWSSecurityTokenServiceV20110615", "GetCallerIdentity", {}).n("STSClient", "GetCallerIdentityCommand").sc(schemas_0.GetCallerIdentity$).build() {
+ var GetCallerIdentityCommand2 = class extends Command3.classBuilder().ep(commonParams5).m(function(Command4, cs, config, o3) {
+ return [getEndpointPlugin2(config, Command4.getEndpointParameterInstructions())];
+ }).s("AWSSecurityTokenServiceV20110615", "GetCallerIdentity", {}).n("STSClient", "GetCallerIdentityCommand").sc(GetCallerIdentity$).build() {
};
- var GetDelegatedAccessTokenCommand = class extends client.Command.classBuilder().ep(commonParams5).m(function(Command3, cs, config2, o2) {
- return [endpoints.getEndpointPlugin(config2, Command3.getEndpointParameterInstructions())];
- }).s("AWSSecurityTokenServiceV20110615", "GetDelegatedAccessToken", {}).n("STSClient", "GetDelegatedAccessTokenCommand").sc(schemas_0.GetDelegatedAccessToken$).build() {
+ var GetDelegatedAccessTokenCommand = class extends Command3.classBuilder().ep(commonParams5).m(function(Command4, cs, config, o3) {
+ return [getEndpointPlugin2(config, Command4.getEndpointParameterInstructions())];
+ }).s("AWSSecurityTokenServiceV20110615", "GetDelegatedAccessToken", {}).n("STSClient", "GetDelegatedAccessTokenCommand").sc(GetDelegatedAccessToken$).build() {
};
- var GetFederationTokenCommand = class extends client.Command.classBuilder().ep(commonParams5).m(function(Command3, cs, config2, o2) {
- return [endpoints.getEndpointPlugin(config2, Command3.getEndpointParameterInstructions())];
- }).s("AWSSecurityTokenServiceV20110615", "GetFederationToken", {}).n("STSClient", "GetFederationTokenCommand").sc(schemas_0.GetFederationToken$).build() {
+ var GetFederationTokenCommand = class extends Command3.classBuilder().ep(commonParams5).m(function(Command4, cs, config, o3) {
+ return [getEndpointPlugin2(config, Command4.getEndpointParameterInstructions())];
+ }).s("AWSSecurityTokenServiceV20110615", "GetFederationToken", {}).n("STSClient", "GetFederationTokenCommand").sc(GetFederationToken$).build() {
};
- var GetSessionTokenCommand = class extends client.Command.classBuilder().ep(commonParams5).m(function(Command3, cs, config2, o2) {
- return [endpoints.getEndpointPlugin(config2, Command3.getEndpointParameterInstructions())];
- }).s("AWSSecurityTokenServiceV20110615", "GetSessionToken", {}).n("STSClient", "GetSessionTokenCommand").sc(schemas_0.GetSessionToken$).build() {
+ var GetSessionTokenCommand = class extends Command3.classBuilder().ep(commonParams5).m(function(Command4, cs, config, o3) {
+ return [getEndpointPlugin2(config, Command4.getEndpointParameterInstructions())];
+ }).s("AWSSecurityTokenServiceV20110615", "GetSessionToken", {}).n("STSClient", "GetSessionTokenCommand").sc(GetSessionToken$).build() {
};
- var GetWebIdentityTokenCommand = class extends client.Command.classBuilder().ep(commonParams5).m(function(Command3, cs, config2, o2) {
- return [endpoints.getEndpointPlugin(config2, Command3.getEndpointParameterInstructions())];
- }).s("AWSSecurityTokenServiceV20110615", "GetWebIdentityToken", {}).n("STSClient", "GetWebIdentityTokenCommand").sc(schemas_0.GetWebIdentityToken$).build() {
+ var GetWebIdentityTokenCommand = class extends Command3.classBuilder().ep(commonParams5).m(function(Command4, cs, config, o3) {
+ return [getEndpointPlugin2(config, Command4.getEndpointParameterInstructions())];
+ }).s("AWSSecurityTokenServiceV20110615", "GetWebIdentityToken", {}).n("STSClient", "GetWebIdentityTokenCommand").sc(GetWebIdentityToken$).build() {
};
var commands5 = {
AssumeRoleCommand: AssumeRoleCommand3,
@@ -46213,7 +46258,7 @@ var require_dist_cjs19 = __commonJS({
};
var STS2 = class extends STSClient3 {
};
- client.createAggregatedClient(commands5, STS2);
+ createAggregatedClient2(commands5, STS2);
var getAccountIdFromAssumedRoleUser2 = (assumedRoleUser) => {
if (typeof assumedRoleUser?.Arn === "string") {
const arnComponents = assumedRoleUser.Arn.split(":");
@@ -46227,7 +46272,7 @@ var require_dist_cjs19 = __commonJS({
const region = typeof _region === "function" ? await _region() : _region;
const parentRegion = typeof _parentRegion === "function" ? await _parentRegion() : _parentRegion;
let stsDefaultRegion = "";
- const resolvedRegion = region ?? parentRegion ?? (stsDefaultRegion = await client$1.stsRegionDefaultResolver(loaderConfig)());
+ const resolvedRegion = region ?? parentRegion ?? (stsDefaultRegion = await stsRegionDefaultResolver2(loaderConfig)());
credentialProviderLogger?.debug?.("@aws-sdk/client-sts::resolveRegion", "accepting first of:", `${region} (credential provider clientConfig)`, `${parentRegion} (contextual client)`, `${stsDefaultRegion} (STS default: AWS_REGION, profile region, or us-east-1)`);
return resolvedRegion;
};
@@ -46266,7 +46311,7 @@ var require_dist_cjs19 = __commonJS({
...Credentials.CredentialScope && { credentialScope: Credentials.CredentialScope },
...accountId && { accountId }
};
- client$1.setCredentialFeature(credentials, "CREDENTIALS_STS_ASSUME_ROLE", "i");
+ setCredentialFeature2(credentials, "CREDENTIALS_STS_ASSUME_ROLE", "i");
return credentials;
};
};
@@ -46303,9 +46348,9 @@ var require_dist_cjs19 = __commonJS({
...accountId && { accountId }
};
if (accountId) {
- client$1.setCredentialFeature(credentials, "RESOLVED_ACCOUNT_ID", "T");
+ setCredentialFeature2(credentials, "RESOLVED_ACCOUNT_ID", "T");
}
- client$1.setCredentialFeature(credentials, "CREDENTIALS_STS_ASSUME_ROLE_WEB_ID", "k");
+ setCredentialFeature2(credentials, "CREDENTIALS_STS_ASSUME_ROLE_WEB_ID", "k");
return credentials;
};
};
@@ -46317,8 +46362,8 @@ var require_dist_cjs19 = __commonJS({
return baseCtor;
else
return class CustomizableSTSClient extends baseCtor {
- constructor(config2) {
- super(config2);
+ constructor(config) {
+ super(config);
for (const customization of customizations) {
this.middlewareStack.use(customization);
}
@@ -46332,9 +46377,6 @@ var require_dist_cjs19 = __commonJS({
roleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity3(input),
...input
});
- exports2.$Command = client.Command;
- exports2.__Client = client.Client;
- exports2.STSServiceException = STSServiceException2.STSServiceException;
exports2.AssumeRoleCommand = AssumeRoleCommand3;
exports2.AssumeRoleWithSAMLCommand = AssumeRoleWithSAMLCommand;
exports2.AssumeRoleWithWebIdentityCommand = AssumeRoleWithWebIdentityCommand3;
@@ -46351,20 +46393,6 @@ var require_dist_cjs19 = __commonJS({
exports2.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider2;
exports2.getDefaultRoleAssumer = getDefaultRoleAssumer3;
exports2.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity3;
- Object.prototype.hasOwnProperty.call(schemas_0, "__proto__") && !Object.prototype.hasOwnProperty.call(exports2, "__proto__") && Object.defineProperty(exports2, "__proto__", {
- enumerable: true,
- value: schemas_0["__proto__"]
- });
- Object.keys(schemas_0).forEach(function(k5) {
- if (k5 !== "default" && !Object.prototype.hasOwnProperty.call(exports2, k5)) exports2[k5] = schemas_0[k5];
- });
- Object.prototype.hasOwnProperty.call(errors, "__proto__") && !Object.prototype.hasOwnProperty.call(exports2, "__proto__") && Object.defineProperty(exports2, "__proto__", {
- enumerable: true,
- value: errors["__proto__"]
- });
- Object.keys(errors).forEach(function(k5) {
- if (k5 !== "default" && !Object.prototype.hasOwnProperty.call(exports2, k5)) exports2[k5] = errors[k5];
- });
}
});
@@ -46529,7 +46557,7 @@ var require_ms = __commonJS({
if (!match) {
return;
}
- var n3 = parseFloat(match[1]);
+ var n4 = parseFloat(match[1]);
var type = (match[2] || "ms").toLowerCase();
switch (type) {
case "years":
@@ -46537,39 +46565,39 @@ var require_ms = __commonJS({
case "yrs":
case "yr":
case "y":
- return n3 * y;
+ return n4 * y;
case "weeks":
case "week":
case "w":
- return n3 * w;
+ return n4 * w;
case "days":
case "day":
case "d":
- return n3 * d5;
+ return n4 * d5;
case "hours":
case "hour":
case "hrs":
case "hr":
case "h":
- return n3 * h5;
+ return n4 * h5;
case "minutes":
case "minute":
case "mins":
case "min":
case "m":
- return n3 * m3;
+ return n4 * m3;
case "seconds":
case "second":
case "secs":
case "sec":
case "s":
- return n3 * s;
+ return n4 * s;
case "milliseconds":
case "millisecond":
case "msecs":
case "msec":
case "ms":
- return n3;
+ return n4;
default:
return void 0;
}
@@ -46606,9 +46634,9 @@ var require_ms = __commonJS({
}
return ms + " ms";
}
- function plural(ms, msAbs, n3, name) {
- var isPlural = msAbs >= n3 * 1.5;
- return Math.round(ms / n3) + " " + name + (isPlural ? "s" : "");
+ function plural(ms, msAbs, n4, name) {
+ var isPlural = msAbs >= n4 * 1.5;
+ return Math.round(ms / n4) + " " + name + (isPlural ? "s" : "");
}
}
});
@@ -49148,7 +49176,7 @@ var require_constants7 = __commonJS({
var require_ipv4 = __commonJS({
"node_modules/ip-address/dist/ipv4.js"(exports2) {
"use strict";
- var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? (function(o2, m3, k5, k22) {
+ var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? (function(o3, m3, k5, k22) {
if (k22 === void 0) k22 = k5;
var desc = Object.getOwnPropertyDescriptor(m3, k5);
if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) {
@@ -49156,15 +49184,15 @@ var require_ipv4 = __commonJS({
return m3[k5];
} };
}
- Object.defineProperty(o2, k22, desc);
- }) : (function(o2, m3, k5, k22) {
+ Object.defineProperty(o3, k22, desc);
+ }) : (function(o3, m3, k5, k22) {
if (k22 === void 0) k22 = k5;
- o2[k22] = m3[k5];
+ o3[k22] = m3[k5];
}));
- var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o2, v) {
- Object.defineProperty(o2, "default", { enumerable: true, value: v });
- }) : function(o2, v) {
- o2["default"] = v;
+ var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o3, v) {
+ Object.defineProperty(o3, "default", { enumerable: true, value: v });
+ }) : function(o3, v) {
+ o3["default"] = v;
});
var __importStar2 = exports2 && exports2.__importStar || function(mod) {
if (mod && mod.__esModule) return mod;
@@ -49380,7 +49408,7 @@ var require_ipv4 = __commonJS({
* @returns {bigint}
*/
bigInt() {
- return BigInt(`0x${this.parsedAddress.map((n3) => common.stringToPaddedHex(n3)).join("")}`);
+ return BigInt(`0x${this.parsedAddress.map((n4) => common.stringToPaddedHex(n4)).join("")}`);
}
/**
* Helper function getting start address.
@@ -49689,7 +49717,7 @@ var require_helpers = __commonJS({
}
function spanAll(s, offset = 0) {
const letters = s.split("");
- return letters.map((n3, i5) => `${spanAllZeroes(n3)}`).join("");
+ return letters.map((n4, i5) => `${spanAllZeroes(n4)}`).join("");
}
function spanLeadingZeroesSimple(group4) {
return escapeHtml(group4).replace(/^(0+)/, '$1');
@@ -49714,7 +49742,7 @@ var require_helpers = __commonJS({
var require_regular_expressions = __commonJS({
"node_modules/ip-address/dist/v6/regular-expressions.js"(exports2) {
"use strict";
- var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? (function(o2, m3, k5, k22) {
+ var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? (function(o3, m3, k5, k22) {
if (k22 === void 0) k22 = k5;
var desc = Object.getOwnPropertyDescriptor(m3, k5);
if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) {
@@ -49722,15 +49750,15 @@ var require_regular_expressions = __commonJS({
return m3[k5];
} };
}
- Object.defineProperty(o2, k22, desc);
- }) : (function(o2, m3, k5, k22) {
+ Object.defineProperty(o3, k22, desc);
+ }) : (function(o3, m3, k5, k22) {
if (k22 === void 0) k22 = k5;
- o2[k22] = m3[k5];
+ o3[k22] = m3[k5];
}));
- var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o2, v) {
- Object.defineProperty(o2, "default", { enumerable: true, value: v });
- }) : function(o2, v) {
- o2["default"] = v;
+ var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o3, v) {
+ Object.defineProperty(o3, "default", { enumerable: true, value: v });
+ }) : function(o3, v) {
+ o3["default"] = v;
});
var __importStar2 = exports2 && exports2.__importStar || function(mod) {
if (mod && mod.__esModule) return mod;
@@ -49806,7 +49834,7 @@ var require_regular_expressions = __commonJS({
var require_ipv6 = __commonJS({
"node_modules/ip-address/dist/ipv6.js"(exports2) {
"use strict";
- var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? (function(o2, m3, k5, k22) {
+ var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? (function(o3, m3, k5, k22) {
if (k22 === void 0) k22 = k5;
var desc = Object.getOwnPropertyDescriptor(m3, k5);
if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) {
@@ -49814,15 +49842,15 @@ var require_ipv6 = __commonJS({
return m3[k5];
} };
}
- Object.defineProperty(o2, k22, desc);
- }) : (function(o2, m3, k5, k22) {
+ Object.defineProperty(o3, k22, desc);
+ }) : (function(o3, m3, k5, k22) {
if (k22 === void 0) k22 = k5;
- o2[k22] = m3[k5];
+ o3[k22] = m3[k5];
}));
- var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o2, v) {
- Object.defineProperty(o2, "default", { enumerable: true, value: v });
- }) : function(o2, v) {
- o2["default"] = v;
+ var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o3, v) {
+ Object.defineProperty(o3, "default", { enumerable: true, value: v });
+ }) : function(o3, v) {
+ o3["default"] = v;
});
var __importStar2 = exports2 && exports2.__importStar || function(mod) {
if (mod && mod.__esModule) return mod;
@@ -49856,10 +49884,10 @@ var require_ipv6 = __commonJS({
}
return number;
}
- function spanLeadingZeroes4(n3) {
- n3 = n3.replace(/^(0{1,})([1-9]+)$/, '$1$2');
- n3 = n3.replace(/^(0{1,})(0)$/, '$1$2');
- return n3;
+ function spanLeadingZeroes4(n4) {
+ n4 = n4.replace(/^(0{1,})([1-9]+)$/, '$1$2');
+ n4 = n4.replace(/^(0{1,})(0)$/, '$1$2');
+ return n4;
}
function compact(address, slice) {
const s1 = [];
@@ -50342,7 +50370,7 @@ var require_ipv6 = __commonJS({
if (zeroCounter > 1) {
zeroes.push([this.parsedAddress.length - zeroCounter, this.parsedAddress.length - 1]);
}
- const zeroLengths = zeroes.map((n3) => n3[1] - n3[0] + 1);
+ const zeroLengths = zeroes.map((n4) => n4[1] - n4[0] + 1);
if (zeroes.length > 0) {
const index = zeroLengths.indexOf(Math.max(...zeroLengths));
groups = compact(this.parsedAddress, zeroes[index]);
@@ -50473,7 +50501,7 @@ var require_ipv6 = __commonJS({
* @returns {String}
*/
decimal() {
- return this.parsedAddress.map((n3) => parseInt(n3, 16).toString(10).padStart(5, "0")).join(":");
+ return this.parsedAddress.map((n4) => parseInt(n4, 16).toString(10).padStart(5, "0")).join(":");
}
/**
* Return the address as a BigInt
@@ -50923,7 +50951,7 @@ var require_ipv6 = __commonJS({
var require_ip_address = __commonJS({
"node_modules/ip-address/dist/ip-address.js"(exports2) {
"use strict";
- var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? (function(o2, m3, k5, k22) {
+ var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? (function(o3, m3, k5, k22) {
if (k22 === void 0) k22 = k5;
var desc = Object.getOwnPropertyDescriptor(m3, k5);
if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) {
@@ -50931,15 +50959,15 @@ var require_ip_address = __commonJS({
return m3[k5];
} };
}
- Object.defineProperty(o2, k22, desc);
- }) : (function(o2, m3, k5, k22) {
+ Object.defineProperty(o3, k22, desc);
+ }) : (function(o3, m3, k5, k22) {
if (k22 === void 0) k22 = k5;
- o2[k22] = m3[k5];
+ o3[k22] = m3[k5];
}));
- var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o2, v) {
- Object.defineProperty(o2, "default", { enumerable: true, value: v });
- }) : function(o2, v) {
- o2["default"] = v;
+ var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o3, v) {
+ Object.defineProperty(o3, "default", { enumerable: true, value: v });
+ }) : function(o3, v) {
+ o3["default"] = v;
});
var __importStar2 = exports2 && exports2.__importStar || function(mod) {
if (mod && mod.__esModule) return mod;
@@ -51807,7 +51835,7 @@ var require_socksclient = __commonJS({
var require_build = __commonJS({
"node_modules/socks/build/index.js"(exports2) {
"use strict";
- var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? (function(o2, m3, k5, k22) {
+ var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? (function(o3, m3, k5, k22) {
if (k22 === void 0) k22 = k5;
var desc = Object.getOwnPropertyDescriptor(m3, k5);
if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) {
@@ -51815,13 +51843,13 @@ var require_build = __commonJS({
return m3[k5];
} };
}
- Object.defineProperty(o2, k22, desc);
- }) : (function(o2, m3, k5, k22) {
+ Object.defineProperty(o3, k22, desc);
+ }) : (function(o3, m3, k5, k22) {
if (k22 === void 0) k22 = k5;
- o2[k22] = m3[k5];
+ o3[k22] = m3[k5];
}));
var __exportStar2 = exports2 && exports2.__exportStar || function(m3, exports3) {
- for (var p2 in m3) if (p2 !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p2)) __createBinding2(exports3, m3, p2);
+ for (var p3 in m3) if (p3 !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p3)) __createBinding2(exports3, m3, p3);
};
Object.defineProperty(exports2, "__esModule", { value: true });
__exportStar2(require_socksclient(), exports2);
@@ -52733,7 +52761,7 @@ var require_netUtils = __commonJS({
if (ip2.startsWith("::ffff:")) {
ip2 = ip2.substr(7);
}
- const octets = ip2.split(".").map((o2) => parseInt(o2, 10));
+ const octets = ip2.split(".").map((o3) => parseInt(o3, 10));
return octets[0] === 10 || octets[0] === 172 && octets[1] >= 16 && octets[1] <= 31 || octets[0] === 192 && octets[1] === 168 || ip2 === "127.0.0.1";
}
}
@@ -53094,7 +53122,7 @@ var require_parseListMLSD = __commonJS({
var require_parseList = __commonJS({
"node_modules/basic-ftp/dist/parseList.js"(exports2) {
"use strict";
- var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? (function(o2, m3, k5, k22) {
+ var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? (function(o3, m3, k5, k22) {
if (k22 === void 0) k22 = k5;
var desc = Object.getOwnPropertyDescriptor(m3, k5);
if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) {
@@ -53102,24 +53130,24 @@ var require_parseList = __commonJS({
return m3[k5];
} };
}
- Object.defineProperty(o2, k22, desc);
- }) : (function(o2, m3, k5, k22) {
+ Object.defineProperty(o3, k22, desc);
+ }) : (function(o3, m3, k5, k22) {
if (k22 === void 0) k22 = k5;
- o2[k22] = m3[k5];
+ o3[k22] = m3[k5];
}));
- var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o2, v) {
- Object.defineProperty(o2, "default", { enumerable: true, value: v });
- }) : function(o2, v) {
- o2["default"] = v;
+ var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o3, v) {
+ Object.defineProperty(o3, "default", { enumerable: true, value: v });
+ }) : function(o3, v) {
+ o3["default"] = v;
});
var __importStar2 = exports2 && exports2.__importStar || /* @__PURE__ */ (function() {
- var ownKeys2 = function(o2) {
- ownKeys2 = Object.getOwnPropertyNames || function(o3) {
+ var ownKeys2 = function(o3) {
+ ownKeys2 = Object.getOwnPropertyNames || function(o4) {
var ar = [];
- for (var k5 in o3) if (Object.prototype.hasOwnProperty.call(o3, k5)) ar[ar.length] = k5;
+ for (var k5 in o4) if (Object.prototype.hasOwnProperty.call(o4, k5)) ar[ar.length] = k5;
return ar;
};
- return ownKeys2(o2);
+ return ownKeys2(o3);
};
return function(mod) {
if (mod && mod.__esModule) return mod;
@@ -54274,7 +54302,7 @@ var require_StringEncoding = __commonJS({
var require_dist = __commonJS({
"node_modules/basic-ftp/dist/index.js"(exports2) {
"use strict";
- var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? (function(o2, m3, k5, k22) {
+ var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? (function(o3, m3, k5, k22) {
if (k22 === void 0) k22 = k5;
var desc = Object.getOwnPropertyDescriptor(m3, k5);
if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) {
@@ -54282,13 +54310,13 @@ var require_dist = __commonJS({
return m3[k5];
} };
}
- Object.defineProperty(o2, k22, desc);
- }) : (function(o2, m3, k5, k22) {
+ Object.defineProperty(o3, k22, desc);
+ }) : (function(o3, m3, k5, k22) {
if (k22 === void 0) k22 = k5;
- o2[k22] = m3[k5];
+ o3[k22] = m3[k5];
}));
var __exportStar2 = exports2 && exports2.__exportStar || function(m3, exports3) {
- for (var p2 in m3) if (p2 !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p2)) __createBinding2(exports3, m3, p2);
+ for (var p3 in m3) if (p3 !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p3)) __createBinding2(exports3, m3, p3);
};
Object.defineProperty(exports2, "__esModule", { value: true });
exports2.enterPassiveModeIPv6 = exports2.enterPassiveModeIPv4 = void 0;
@@ -54560,8 +54588,8 @@ var init_https = __esm({
});
// node_modules/get-uri/dist/index.js
-function isValidProtocol(p2) {
- return VALID_PROTOCOLS.has(p2);
+function isValidProtocol(p3) {
+ return VALID_PROTOCOLS.has(p3);
}
async function getUri(uri, opts) {
debug10("getUri(%o)", uri);
@@ -56422,13 +56450,13 @@ var require_quick_sort = __commonJS({
function randomIntInRange(low, high) {
return Math.round(low + Math.random() * (high - low));
}
- function doQuickSort(ary, comparator, p2, r5) {
- if (p2 < r5) {
- var pivotIndex = randomIntInRange(p2, r5);
- var i5 = p2 - 1;
+ function doQuickSort(ary, comparator, p3, r5) {
+ if (p3 < r5) {
+ var pivotIndex = randomIntInRange(p3, r5);
+ var i5 = p3 - 1;
swap(ary, pivotIndex, r5);
var pivot = ary[r5];
- for (var j5 = p2; j5 < r5; j5++) {
+ for (var j5 = p3; j5 < r5; j5++) {
if (comparator(ary[j5], pivot) <= 0) {
i5 += 1;
swap(ary, i5, j5);
@@ -56436,7 +56464,7 @@ var require_quick_sort = __commonJS({
}
swap(ary, i5 + 1, j5);
var q2 = i5 + 1;
- doQuickSort(ary, comparator, p2, q2 - 1);
+ doQuickSort(ary, comparator, p3, q2 - 1);
doQuickSort(ary, comparator, q2 + 1, r5);
}
}
@@ -59837,7 +59865,7 @@ var require_esprima = __commonJS({
var extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d5, b6) {
d5.__proto__ = b6;
} || function(d5, b6) {
- for (var p2 in b6) if (b6.hasOwnProperty(p2)) d5[p2] = b6[p2];
+ for (var p3 in b6) if (b6.hasOwnProperty(p3)) d5[p3] = b6[p3];
};
return function(d5, b6) {
extendStatics2(d5, b6);
@@ -66971,7 +66999,7 @@ var require_node_path = __commonJS({
var scope_1 = tslib_1.__importDefault(require_scope());
function nodePathPlugin(fork) {
var types3 = fork.use(types_1.default);
- var n3 = types3.namedTypes;
+ var n4 = types3.namedTypes;
var b6 = types3.builders;
var isNumber = types3.builtInTypes.number;
var isArray = types3.builtInTypes.array;
@@ -67033,7 +67061,7 @@ var require_node_path = __commonJS({
};
NPp._computeNode = function() {
var value = this.value;
- if (n3.Node.check(value)) {
+ if (n4.Node.check(value)) {
return value;
}
var pp = this.parentPath;
@@ -67042,15 +67070,15 @@ var require_node_path = __commonJS({
NPp._computeParent = function() {
var value = this.value;
var pp = this.parentPath;
- if (!n3.Node.check(value)) {
- while (pp && !n3.Node.check(pp.value)) {
+ if (!n4.Node.check(value)) {
+ while (pp && !n4.Node.check(pp.value)) {
pp = pp.parentPath;
}
if (pp) {
pp = pp.parentPath;
}
}
- while (pp && !n3.Node.check(pp.value)) {
+ while (pp && !n4.Node.check(pp.value)) {
pp = pp.parentPath;
}
return pp || null;
@@ -67059,7 +67087,7 @@ var require_node_path = __commonJS({
var value = this.value;
var pp = this.parentPath;
var scope = pp && pp.scope;
- if (n3.Node.check(value) && Scope.isEstablishedBy(value)) {
+ if (n4.Node.check(value) && Scope.isEstablishedBy(value)) {
scope = new Scope(this, scope);
}
return scope || null;
@@ -67073,13 +67101,13 @@ var require_node_path = __commonJS({
return false;
}
var node = this.value;
- if (!n3.Expression.check(node)) {
+ if (!n4.Expression.check(node)) {
return false;
}
if (node.type === "Identifier") {
return false;
}
- while (!n3.Node.check(pp.value)) {
+ while (!n4.Node.check(pp.value)) {
pp = pp.parentPath;
if (!pp) {
return false;
@@ -67177,10 +67205,10 @@ var require_node_path = __commonJS({
return false;
};
function isBinary(node) {
- return n3.BinaryExpression.check(node) || n3.LogicalExpression.check(node);
+ return n4.BinaryExpression.check(node) || n4.LogicalExpression.check(node);
}
function isUnaryLike(node) {
- return n3.UnaryExpression.check(node) || n3.SpreadElement && n3.SpreadElement.check(node) || n3.SpreadProperty && n3.SpreadProperty.check(node);
+ return n4.UnaryExpression.check(node) || n4.SpreadElement && n4.SpreadElement.check(node) || n4.SpreadProperty && n4.SpreadProperty.check(node);
}
var PRECEDENCE = {};
[
@@ -67200,13 +67228,13 @@ var require_node_path = __commonJS({
});
});
function containsCallExpression(node) {
- if (n3.CallExpression.check(node)) {
+ if (n4.CallExpression.check(node)) {
return true;
}
if (isArray.check(node)) {
return node.some(containsCallExpression);
}
- if (n3.Node.check(node)) {
+ if (n4.Node.check(node)) {
return types3.someField(node, function(_name, child) {
return containsCallExpression(child);
});
@@ -67215,7 +67243,7 @@ var require_node_path = __commonJS({
}
NPp.canBeFirstInStatement = function() {
var node = this.node;
- return !n3.FunctionExpression.check(node) && !n3.ObjectExpression.check(node);
+ return !n4.FunctionExpression.check(node) && !n4.ObjectExpression.check(node);
};
NPp.firstInStatement = function() {
return firstInStatement(this);
@@ -67224,37 +67252,37 @@ var require_node_path = __commonJS({
for (var node, parent; path4.parent; path4 = path4.parent) {
node = path4.node;
parent = path4.parent.node;
- if (n3.BlockStatement.check(parent) && path4.parent.name === "body" && path4.name === 0) {
+ if (n4.BlockStatement.check(parent) && path4.parent.name === "body" && path4.name === 0) {
if (parent.body[0] !== node) {
throw new Error("Nodes must be equal");
}
return true;
}
- if (n3.ExpressionStatement.check(parent) && path4.name === "expression") {
+ if (n4.ExpressionStatement.check(parent) && path4.name === "expression") {
if (parent.expression !== node) {
throw new Error("Nodes must be equal");
}
return true;
}
- if (n3.SequenceExpression.check(parent) && path4.parent.name === "expressions" && path4.name === 0) {
+ if (n4.SequenceExpression.check(parent) && path4.parent.name === "expressions" && path4.name === 0) {
if (parent.expressions[0] !== node) {
throw new Error("Nodes must be equal");
}
continue;
}
- if (n3.CallExpression.check(parent) && path4.name === "callee") {
+ if (n4.CallExpression.check(parent) && path4.name === "callee") {
if (parent.callee !== node) {
throw new Error("Nodes must be equal");
}
continue;
}
- if (n3.MemberExpression.check(parent) && path4.name === "object") {
+ if (n4.MemberExpression.check(parent) && path4.name === "object") {
if (parent.object !== node) {
throw new Error("Nodes must be equal");
}
continue;
}
- if (n3.ConditionalExpression.check(parent) && path4.name === "test") {
+ if (n4.ConditionalExpression.check(parent) && path4.name === "test") {
if (parent.test !== node) {
throw new Error("Nodes must be equal");
}
@@ -67266,7 +67294,7 @@ var require_node_path = __commonJS({
}
continue;
}
- if (n3.UnaryExpression.check(parent) && !parent.prefix && path4.name === "argument") {
+ if (n4.UnaryExpression.check(parent) && !parent.prefix && path4.name === "argument") {
if (parent.argument !== node) {
throw new Error("Nodes must be equal");
}
@@ -67277,16 +67305,16 @@ var require_node_path = __commonJS({
return true;
}
function cleanUpNodesAfterPrune(remainingNodePath) {
- if (n3.VariableDeclaration.check(remainingNodePath.node)) {
+ if (n4.VariableDeclaration.check(remainingNodePath.node)) {
var declarations = remainingNodePath.get("declarations").value;
if (!declarations || declarations.length === 0) {
return remainingNodePath.prune();
}
- } else if (n3.ExpressionStatement.check(remainingNodePath.node)) {
+ } else if (n4.ExpressionStatement.check(remainingNodePath.node)) {
if (!remainingNodePath.get("expression").value) {
return remainingNodePath.prune();
}
- } else if (n3.IfStatement.check(remainingNodePath.node)) {
+ } else if (n4.IfStatement.check(remainingNodePath.node)) {
cleanUpIfStatementAfterPrune(remainingNodePath);
}
return remainingNodePath;
@@ -67300,7 +67328,7 @@ var require_node_path = __commonJS({
ifStatement.replace(testExpressionStatement);
} else if (!consequent && alternate) {
var negatedTestExpression = b6.unaryExpression("!", testExpression, true);
- if (n3.UnaryExpression.check(testExpression) && testExpression.operator === "!") {
+ if (n4.UnaryExpression.check(testExpression) && testExpression.operator === "!") {
negatedTestExpression = testExpression.argument;
}
ifStatement.get("test").replace(negatedTestExpression);
@@ -68526,15 +68554,15 @@ var require_typescript = __commonJS({
fork.use(babel_core_1.default);
fork.use(type_annotations_1.default);
var types3 = fork.use(types_1.default);
- var n3 = types3.namedTypes;
+ var n4 = types3.namedTypes;
var def = types3.Type.def;
var or = types3.Type.or;
var defaults = fork.use(shared_1.default).defaults;
var StringLiteral = types3.Type.from(function(value, deep) {
- if (n3.StringLiteral && n3.StringLiteral.check(value, deep)) {
+ if (n4.StringLiteral && n4.StringLiteral.check(value, deep)) {
return true;
}
- if (n3.Literal && n3.Literal.check(value, deep) && typeof value.value === "string") {
+ if (n4.Literal && n4.Literal.check(value, deep) && typeof value.value === "string") {
return true;
}
return false;
@@ -68758,7 +68786,7 @@ var require_main3 = __commonJS({
var getFieldNames = _a2.getFieldNames;
var getFieldValue = _a2.getFieldValue;
var getSupertypeNames = _a2.getSupertypeNames;
- var n3 = _a2.namedTypes;
+ var n4 = _a2.namedTypes;
var NodePath = _a2.NodePath;
var Path = _a2.Path;
var PathVisitor = _a2.PathVisitor;
@@ -68783,7 +68811,7 @@ var require_main3 = __commonJS({
exports2.Type = Type;
exports2.use = use;
exports2.visit = visit2;
- Object.assign(namedTypes_1.namedTypes, n3);
+ Object.assign(namedTypes_1.namedTypes, n4);
}
});
@@ -68878,12 +68906,12 @@ function checkNames({ callee }, names) {
}
function checkName(name, names) {
for (let i5 = 0; i5 < names.length; i5++) {
- const n3 = names[i5];
- if (import_util3.types.isRegExp(n3)) {
- if (n3.test(name)) {
+ const n4 = names[i5];
+ if (import_util3.types.isRegExp(n4)) {
+ if (n4.test(name)) {
return true;
}
- } else if (name === n3) {
+ } else if (name === n4) {
return true;
}
}
@@ -69125,7 +69153,7 @@ var require_netmask4 = __commonJS({
var chra = "a".charCodeAt(0);
var chrA = "A".charCodeAt(0);
function parseNum(s) {
- let n3 = 0;
+ let n4 = 0;
let base = 10;
let dmax = "9";
let i5 = 0;
@@ -69142,19 +69170,19 @@ var require_netmask4 = __commonJS({
const start = i5;
while (i5 < s.length) {
if ("0" <= s[i5] && s[i5] <= dmax) {
- n3 = n3 * base + (s.charCodeAt(i5) - chr0) >>> 0;
+ n4 = n4 * base + (s.charCodeAt(i5) - chr0) >>> 0;
} else if (base === 16) {
if ("a" <= s[i5] && s[i5] <= "f") {
- n3 = n3 * base + (10 + s.charCodeAt(i5) - chra) >>> 0;
+ n4 = n4 * base + (10 + s.charCodeAt(i5) - chra) >>> 0;
} else if ("A" <= s[i5] && s[i5] <= "F") {
- n3 = n3 * base + (10 + s.charCodeAt(i5) - chrA) >>> 0;
+ n4 = n4 * base + (10 + s.charCodeAt(i5) - chrA) >>> 0;
} else {
break;
}
} else {
break;
}
- if (n3 > 4294967295) {
+ if (n4 > 4294967295) {
throw new Error("too large");
}
i5++;
@@ -69162,7 +69190,7 @@ var require_netmask4 = __commonJS({
if (i5 === start) {
throw new Error("empty octet");
}
- return [n3, i5];
+ return [n4, i5];
}
function ip2long(ip2) {
const b6 = [];
@@ -69176,9 +69204,9 @@ var require_netmask4 = __commonJS({
}
ip2 = ip2.substring(1);
}
- const [n3, c5] = parseNum(ip2);
+ const [n4, c5] = parseNum(ip2);
ip2 = ip2.substring(c5);
- b6.push(n3);
+ b6.push(n4);
}
if (ip2.length !== 0) {
throw new Error("Invalid IP");
@@ -69349,14 +69377,14 @@ var require_netmask6 = __commonJS({
}
return result;
}
- function bigint2ip6(n3) {
- if (n3 < 0n || n3 > MAX_IPV6) {
+ function bigint2ip6(n4) {
+ if (n4 < 0n || n4 > MAX_IPV6) {
throw new Error("Invalid IPv6 address value");
}
const groups = [];
for (let i5 = 0; i5 < 8; i5++) {
- groups.unshift(Number(n3 & 0xffffn));
- n3 >>= 16n;
+ groups.unshift(Number(n4 & 0xffffn));
+ n4 >>= 16n;
}
let bestStart = -1;
let bestLen = 0;
@@ -69705,7 +69733,7 @@ function timeRange() {
}
let result = false;
const noOfArgs = args.length;
- const numericArgs = args.map((n3) => parseInt(n3, 10));
+ const numericArgs = args.map((n4) => parseInt(n4, 10));
if (noOfArgs === 1) {
result = getCurrentHour(useGMTzone, currentDate) === numericArgs[0];
} else if (noOfArgs === 2) {
@@ -71755,9 +71783,9 @@ var init_dist10 = __esm({
*/
get length() {
const h5 = this.getProp("length");
- const n3 = h5.toNumber();
+ const n4 = h5.toNumber();
h5.dispose();
- return n3;
+ return n4;
}
/**
* Get the constructor name of this object, or undefined if unavailable.
@@ -74728,7 +74756,7 @@ var warn = (code, what, instead, fn) => {
const msg = `The ${what} is deprecated. Please use ${instead} instead.`;
emitWarning(msg, "DeprecationWarning", code, fn);
};
-var isPosInt = (n3) => n3 && n3 === Math.floor(n3) && n3 > 0 && isFinite(n3);
+var isPosInt = (n4) => n4 && n4 === Math.floor(n4) && n4 > 0 && isFinite(n4);
var getUintArray = (max) => !isPosInt(max) ? null : max <= Math.pow(2, 8) ? Uint8Array : max <= Math.pow(2, 16) ? Uint16Array : max <= Math.pow(2, 32) ? Uint32Array : max <= Number.MAX_SAFE_INTEGER ? ZeroArray : null;
var ZeroArray = class extends Array {
constructor(size) {
@@ -74745,8 +74773,8 @@ var Stack = class {
this.heap = new UintArray(max);
this.length = 0;
}
- push(n3) {
- this.heap[this.length++] = n3;
+ push(n4) {
+ this.heap[this.length++] = n4;
}
pop() {
return this.heap[--this.length];
@@ -74923,9 +74951,9 @@ var LRUCache = class _LRUCache {
};
let cachedNow = 0;
const getNow = () => {
- const n3 = perf.now();
+ const n4 = perf.now();
if (this.ttlResolution > 0) {
- cachedNow = n3;
+ cachedNow = n4;
const t = setTimeout(
() => cachedNow = 0,
this.ttlResolution
@@ -74934,7 +74962,7 @@ var LRUCache = class _LRUCache {
t.unref();
}
}
- return n3;
+ return n4;
};
this.getRemainingTTL = (key) => {
const index = this.keyMap.get(key);
@@ -75340,10 +75368,10 @@ var LRUCache = class _LRUCache {
if (aborted && !ignoreAbort && !updateCache) {
return fetchFail(ac.signal.reason);
}
- if (this.valList[index] === p2) {
+ if (this.valList[index] === p3) {
if (v2 === void 0) {
- if (p2.__staleWhileFetching) {
- this.valList[index] = p2.__staleWhileFetching;
+ if (p3.__staleWhileFetching) {
+ this.valList[index] = p3.__staleWhileFetching;
} else {
this.delete(k5);
}
@@ -75366,20 +75394,20 @@ var LRUCache = class _LRUCache {
const allowStaleAborted = aborted && options.allowStaleOnFetchAbort;
const allowStale = allowStaleAborted || options.allowStaleOnFetchRejection;
const noDelete = allowStale || options.noDeleteOnFetchRejection;
- if (this.valList[index] === p2) {
- const del = !noDelete || p2.__staleWhileFetching === void 0;
+ if (this.valList[index] === p3) {
+ const del = !noDelete || p3.__staleWhileFetching === void 0;
if (del) {
this.delete(k5);
} else if (!allowStaleAborted) {
- this.valList[index] = p2.__staleWhileFetching;
+ this.valList[index] = p3.__staleWhileFetching;
}
}
if (allowStale) {
- if (options.status && p2.__staleWhileFetching !== void 0) {
+ if (options.status && p3.__staleWhileFetching !== void 0) {
options.status.returnedStale = true;
}
- return p2.__staleWhileFetching;
- } else if (p2.__returned === p2) {
+ return p3.__staleWhileFetching;
+ } else if (p3.__returned === p3) {
throw er;
}
};
@@ -75395,23 +75423,23 @@ var LRUCache = class _LRUCache {
});
};
if (options.status) options.status.fetchDispatched = true;
- const p2 = new Promise(pcall).then(cb, eb);
- p2.__abortController = ac;
- p2.__staleWhileFetching = v;
- p2.__returned = null;
+ const p3 = new Promise(pcall).then(cb, eb);
+ p3.__abortController = ac;
+ p3.__staleWhileFetching = v;
+ p3.__returned = null;
if (index === void 0) {
- this.set(k5, p2, { ...fetchOpts.options, status: void 0 });
+ this.set(k5, p3, { ...fetchOpts.options, status: void 0 });
index = this.keyMap.get(k5);
} else {
- this.valList[index] = p2;
+ this.valList[index] = p3;
}
- return p2;
+ return p3;
}
- isBackgroundFetch(p2) {
- return p2 && typeof p2 === "object" && typeof p2.then === "function" && Object.prototype.hasOwnProperty.call(
- p2,
+ isBackgroundFetch(p3) {
+ return p3 && typeof p3 === "object" && typeof p3.then === "function" && Object.prototype.hasOwnProperty.call(
+ p3,
"__staleWhileFetching"
- ) && Object.prototype.hasOwnProperty.call(p2, "__returned") && (p2.__returned === p2 || p2.__returned === null);
+ ) && Object.prototype.hasOwnProperty.call(p3, "__returned") && (p3.__returned === p3 || p3.__returned === null);
}
// this takes the union of get() and set() opts, because it does both
async fetch(k5, {
@@ -75463,8 +75491,8 @@ var LRUCache = class _LRUCache {
let index = this.keyMap.get(k5);
if (index === void 0) {
if (status) status.fetch = "miss";
- const p2 = this.backgroundFetch(k5, index, options, fetchContext);
- return p2.__returned = p2;
+ const p3 = this.backgroundFetch(k5, index, options, fetchContext);
+ return p3.__returned = p3;
} else {
const v = this.valList[index];
if (this.isBackgroundFetch(v)) {
@@ -75485,14 +75513,14 @@ var LRUCache = class _LRUCache {
this.statusTTL(status, index);
return v;
}
- const p2 = this.backgroundFetch(k5, index, options, fetchContext);
- const hasStale = p2.__staleWhileFetching !== void 0;
+ const p3 = this.backgroundFetch(k5, index, options, fetchContext);
+ const hasStale = p3.__staleWhileFetching !== void 0;
const staleVal = hasStale && allowStale;
if (status) {
status.fetch = hasStale && isStale ? "stale" : "refresh";
if (staleVal && isStale) status.returnedStale = true;
}
- return staleVal ? p2.__staleWhileFetching : p2.__returned = p2;
+ return staleVal ? p3.__staleWhileFetching : p3.__returned = p3;
}
}
get(k5, {
@@ -75535,9 +75563,9 @@ var LRUCache = class _LRUCache {
status.get = "miss";
}
}
- connect(p2, n3) {
- this.prev[n3] = p2;
- this.next[p2] = n3;
+ connect(p3, n4) {
+ this.prev[n4] = p3;
+ this.next[p3] = n4;
}
moveToTail(index) {
if (index !== this.tail) {
@@ -76074,8 +76102,8 @@ async function run() {
const proxyServer = getInput("http-proxy", { required: false }) || process.env.HTTP_PROXY;
const customTags = getInput("custom-tags", { required: false });
const inlineSessionPolicy = getInput("inline-session-policy", { required: false });
- const managedSessionPolicies = getMultilineInput("managed-session-policies", { required: false }).map((p2) => {
- return { arn: p2 };
+ const managedSessionPolicies = getMultilineInput("managed-session-policies", { required: false }).map((p3) => {
+ return { arn: p3 };
});
const roleChaining = getBooleanInput("role-chaining", { required: false });
const outputCredentials = getBooleanInput("output-credentials", { required: false });