@layerzerolabs/vm-tooling 0.2.22 → 0.2.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +23 -0
- package/dist/4JD7YXQE.js +47 -0
- package/dist/4JD7YXQE.js.map +1 -0
- package/dist/{BEHAXLXQ.js → 5FQEEZQ7.js} +4 -4
- package/dist/{BEHAXLXQ.js.map → 5FQEEZQ7.js.map} +1 -1
- package/dist/C75WADM5.js +15 -0
- package/dist/C75WADM5.js.map +1 -0
- package/dist/{EP2ZMEJO.js → GNUGNPEQ.js} +47 -13
- package/dist/GNUGNPEQ.js.map +1 -0
- package/dist/{UGOYXDC2.js → I4UV4L75.js} +9 -15
- package/dist/I4UV4L75.js.map +1 -0
- package/dist/ICMHRFCX.cjs +78 -0
- package/dist/ICMHRFCX.cjs.map +1 -0
- package/dist/{OMZA67EH.js → J2675KOZ.js} +5 -5
- package/dist/J2675KOZ.js.map +1 -0
- package/dist/{Y7XA7YWK.cjs → M7FR43QL.cjs} +5 -5
- package/dist/M7FR43QL.cjs.map +1 -0
- package/dist/{GG2ZAAIE.cjs → UHRRIDQ3.cjs} +6 -6
- package/dist/{GG2ZAAIE.cjs.map → UHRRIDQ3.cjs.map} +1 -1
- package/dist/{VH4UXRKG.cjs → VAGPJO44.cjs} +49 -15
- package/dist/VAGPJO44.cjs.map +1 -0
- package/dist/{GEZ3XVTG.cjs → X53USKD4.cjs} +10 -16
- package/dist/X53USKD4.cjs.map +1 -0
- package/dist/Y6ZP4DWX.cjs +49 -0
- package/dist/Y6ZP4DWX.cjs.map +1 -0
- package/dist/YI63OKDP.js +53 -0
- package/dist/YI63OKDP.js.map +1 -0
- package/dist/Z55JUIO3.cjs +17 -0
- package/dist/Z55JUIO3.cjs.map +1 -0
- package/dist/cli.cjs +5 -5
- package/dist/cli.js +4 -4
- package/dist/config.cjs +8 -12
- package/dist/config.d.ts +6 -4
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +1 -1
- package/dist/core/index.cjs +4 -4
- package/dist/core/index.js +3 -3
- package/dist/core/tool-executor.cjs +4 -4
- package/dist/core/tool-executor.d.ts.map +1 -1
- package/dist/core/tool-executor.js +3 -3
- package/dist/github/index.cjs +5 -16
- package/dist/github/index.d.ts.map +1 -1
- package/dist/github/index.js +4 -15
- package/dist/github/matrix.cjs +4 -15
- package/dist/github/matrix.d.ts +13 -3
- package/dist/github/matrix.d.ts.map +1 -1
- package/dist/github/matrix.js +3 -14
- package/dist/index.cjs +15 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -18
- package/dist/index.js.map +1 -1
- package/dist/test.cjs +4 -4
- package/dist/test.d.ts +1 -1
- package/dist/test.d.ts.map +1 -1
- package/dist/test.js +3 -3
- package/dist/utils/docker.cjs +6 -6
- package/dist/utils/docker.d.ts +2 -2
- package/dist/utils/docker.d.ts.map +1 -1
- package/dist/utils/docker.js +2 -2
- package/package.json +10 -5
- package/dist/3NXVR3DC.cjs +0 -18
- package/dist/3NXVR3DC.cjs.map +0 -1
- package/dist/3TIEGVTO.cjs +0 -431
- package/dist/3TIEGVTO.cjs.map +0 -1
- package/dist/3V7HWCTZ.js +0 -190
- package/dist/3V7HWCTZ.js.map +0 -1
- package/dist/3YN24Z7J.js +0 -261
- package/dist/3YN24Z7J.js.map +0 -1
- package/dist/427QOV7V.js +0 -348
- package/dist/427QOV7V.js.map +0 -1
- package/dist/4DNHANRV.cjs +0 -39
- package/dist/4DNHANRV.cjs.map +0 -1
- package/dist/5IOOBAVX.cjs +0 -832
- package/dist/5IOOBAVX.cjs.map +0 -1
- package/dist/5QZDX45Q.js +0 -1975
- package/dist/5QZDX45Q.js.map +0 -1
- package/dist/634Q3MUX.cjs +0 -1128
- package/dist/634Q3MUX.cjs.map +0 -1
- package/dist/77LS3AZK.cjs +0 -1977
- package/dist/77LS3AZK.cjs.map +0 -1
- package/dist/7AUJV34E.cjs +0 -144
- package/dist/7AUJV34E.cjs.map +0 -1
- package/dist/7HA6JSWY.cjs +0 -103
- package/dist/7HA6JSWY.cjs.map +0 -1
- package/dist/7JWBGU62.js +0 -141
- package/dist/7JWBGU62.js.map +0 -1
- package/dist/7O5SJUXT.cjs +0 -354
- package/dist/7O5SJUXT.cjs.map +0 -1
- package/dist/7R4LC2OX.js +0 -3246
- package/dist/7R4LC2OX.js.map +0 -1
- package/dist/DDKMZ6EE.js +0 -6
- package/dist/DDKMZ6EE.js.map +0 -1
- package/dist/DS4LZJHX.cjs +0 -252
- package/dist/DS4LZJHX.cjs.map +0 -1
- package/dist/EP2ZMEJO.js.map +0 -1
- package/dist/ERGNNQ6N.js +0 -16
- package/dist/ERGNNQ6N.js.map +0 -1
- package/dist/EXBTG2GQ.js +0 -4823
- package/dist/EXBTG2GQ.js.map +0 -1
- package/dist/FBKCEQT5.cjs +0 -263
- package/dist/FBKCEQT5.cjs.map +0 -1
- package/dist/FC7UGQEI.cjs +0 -19
- package/dist/FC7UGQEI.cjs.map +0 -1
- package/dist/FDH37YWR.cjs +0 -52
- package/dist/FDH37YWR.cjs.map +0 -1
- package/dist/FQPOYRQJ.cjs +0 -59
- package/dist/FQPOYRQJ.cjs.map +0 -1
- package/dist/GEZ3XVTG.cjs.map +0 -1
- package/dist/GHQS37WK.js +0 -251
- package/dist/GHQS37WK.js.map +0 -1
- package/dist/GVS7FGYI.cjs +0 -49
- package/dist/GVS7FGYI.cjs.map +0 -1
- package/dist/HVDH52K5.cjs +0 -3273
- package/dist/HVDH52K5.cjs.map +0 -1
- package/dist/HVR3WYCV.js +0 -70
- package/dist/HVR3WYCV.js.map +0 -1
- package/dist/I24EDDRD.cjs +0 -30
- package/dist/I24EDDRD.cjs.map +0 -1
- package/dist/IYIFH7LC.js +0 -29
- package/dist/IYIFH7LC.js.map +0 -1
- package/dist/J2A64VZU.js +0 -143
- package/dist/J2A64VZU.js.map +0 -1
- package/dist/JXS7ZGGU.js +0 -350
- package/dist/JXS7ZGGU.js.map +0 -1
- package/dist/MDE37STN.cjs +0 -146
- package/dist/MDE37STN.cjs.map +0 -1
- package/dist/OBHJ2FSI.cjs +0 -103
- package/dist/OBHJ2FSI.cjs.map +0 -1
- package/dist/OLCI6QQA.cjs +0 -73
- package/dist/OLCI6QQA.cjs.map +0 -1
- package/dist/OMZA67EH.js.map +0 -1
- package/dist/PFRT6NBP.js +0 -30
- package/dist/PFRT6NBP.js.map +0 -1
- package/dist/PQ4H7UWU.js +0 -51
- package/dist/PQ4H7UWU.js.map +0 -1
- package/dist/Q5L3QIKZ.cjs +0 -825
- package/dist/Q5L3QIKZ.cjs.map +0 -1
- package/dist/QDUIE3K3.js +0 -829
- package/dist/QDUIE3K3.js.map +0 -1
- package/dist/QEUMSA6O.cjs +0 -260
- package/dist/QEUMSA6O.cjs.map +0 -1
- package/dist/QHFDWPE3.js +0 -28
- package/dist/QHFDWPE3.js.map +0 -1
- package/dist/TQHAG73D.js +0 -46
- package/dist/TQHAG73D.js.map +0 -1
- package/dist/UFZOOGMQ.js +0 -46
- package/dist/UFZOOGMQ.js.map +0 -1
- package/dist/UGOYXDC2.js.map +0 -1
- package/dist/UOMNLT53.cjs +0 -33
- package/dist/UOMNLT53.cjs.map +0 -1
- package/dist/UUMDUUBJ.cjs +0 -194
- package/dist/UUMDUUBJ.cjs.map +0 -1
- package/dist/VEHBRPVG.js +0 -175
- package/dist/VEHBRPVG.js.map +0 -1
- package/dist/VH4UXRKG.cjs.map +0 -1
- package/dist/VM366GYK.js +0 -101
- package/dist/VM366GYK.js.map +0 -1
- package/dist/W3F4RJVY.js +0 -1103
- package/dist/W3F4RJVY.js.map +0 -1
- package/dist/W4QDYLOA.js +0 -17
- package/dist/W4QDYLOA.js.map +0 -1
- package/dist/WSDEGNMI.cjs +0 -56
- package/dist/WSDEGNMI.cjs.map +0 -1
- package/dist/WSES6SE2.js +0 -420
- package/dist/WSES6SE2.js.map +0 -1
- package/dist/XCUEIITH.js +0 -101
- package/dist/XCUEIITH.js.map +0 -1
- package/dist/XVWZAEKK.js +0 -807
- package/dist/XVWZAEKK.js.map +0 -1
- package/dist/Y7XA7YWK.cjs.map +0 -1
- package/dist/YHGTF22I.cjs +0 -4881
- package/dist/YHGTF22I.cjs.map +0 -1
- package/dist/Z7SRDY43.js +0 -250
- package/dist/Z7SRDY43.js.map +0 -1
- package/dist/ZGCH6KFP.cjs +0 -354
- package/dist/ZGCH6KFP.cjs.map +0 -1
- package/dist/ZTSEHGET.cjs +0 -182
- package/dist/ZTSEHGET.cjs.map +0 -1
package/dist/HVDH52K5.cjs
DELETED
|
@@ -1,3273 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var MDE37STN_cjs = require('./MDE37STN.cjs');
|
|
4
|
-
var UOMNLT53_cjs = require('./UOMNLT53.cjs');
|
|
5
|
-
var _7AUJV34E_cjs = require('./7AUJV34E.cjs');
|
|
6
|
-
var YHGTF22I_cjs = require('./YHGTF22I.cjs');
|
|
7
|
-
var UUMDUUBJ_cjs = require('./UUMDUUBJ.cjs');
|
|
8
|
-
require('./I24EDDRD.cjs');
|
|
9
|
-
require('./QEUMSA6O.cjs');
|
|
10
|
-
var Q5L3QIKZ_cjs = require('./Q5L3QIKZ.cjs');
|
|
11
|
-
var FDH37YWR_cjs = require('./FDH37YWR.cjs');
|
|
12
|
-
var _3NXVR3DC_cjs = require('./3NXVR3DC.cjs');
|
|
13
|
-
require('./GVS7FGYI.cjs');
|
|
14
|
-
var _24WEKBY3_cjs = require('./24WEKBY3.cjs');
|
|
15
|
-
|
|
16
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.879.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/index.js
|
|
17
|
-
_24WEKBY3_cjs.init_cjs_shims();
|
|
18
|
-
|
|
19
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.879.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STSClient.js
|
|
20
|
-
_24WEKBY3_cjs.init_cjs_shims();
|
|
21
|
-
|
|
22
|
-
// ../../node_modules/.pnpm/@smithy+smithy-client@4.9.8/node_modules/@smithy/smithy-client/dist-es/extended-encode-uri-component.js
|
|
23
|
-
_24WEKBY3_cjs.init_cjs_shims();
|
|
24
|
-
|
|
25
|
-
// ../../node_modules/.pnpm/@smithy+smithy-client@4.9.8/node_modules/@smithy/smithy-client/dist-es/get-value-from-text-node.js
|
|
26
|
-
_24WEKBY3_cjs.init_cjs_shims();
|
|
27
|
-
var getValueFromTextNode = /* @__PURE__ */ _24WEKBY3_cjs.__name((obj) => {
|
|
28
|
-
const textNodeName = "#text";
|
|
29
|
-
for (const key in obj) {
|
|
30
|
-
if (obj.hasOwnProperty(key) && obj[key][textNodeName] !== void 0) {
|
|
31
|
-
obj[key] = obj[key][textNodeName];
|
|
32
|
-
} else if (typeof obj[key] === "object" && obj[key] !== null) {
|
|
33
|
-
obj[key] = getValueFromTextNode(obj[key]);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
return obj;
|
|
37
|
-
}, "getValueFromTextNode");
|
|
38
|
-
|
|
39
|
-
// ../../node_modules/.pnpm/fast-xml-parser@5.2.5/node_modules/fast-xml-parser/src/fxp.js
|
|
40
|
-
_24WEKBY3_cjs.init_cjs_shims();
|
|
41
|
-
|
|
42
|
-
// ../../node_modules/.pnpm/fast-xml-parser@5.2.5/node_modules/fast-xml-parser/src/validator.js
|
|
43
|
-
_24WEKBY3_cjs.init_cjs_shims();
|
|
44
|
-
|
|
45
|
-
// ../../node_modules/.pnpm/fast-xml-parser@5.2.5/node_modules/fast-xml-parser/src/util.js
|
|
46
|
-
_24WEKBY3_cjs.init_cjs_shims();
|
|
47
|
-
var nameStartChar = ":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";
|
|
48
|
-
var nameChar = nameStartChar + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040";
|
|
49
|
-
var nameRegexp = "[" + nameStartChar + "][" + nameChar + "]*";
|
|
50
|
-
var regexName = new RegExp("^" + nameRegexp + "$");
|
|
51
|
-
function getAllMatches(string, regex) {
|
|
52
|
-
const matches = [];
|
|
53
|
-
let match = regex.exec(string);
|
|
54
|
-
while (match) {
|
|
55
|
-
const allmatches = [];
|
|
56
|
-
allmatches.startIndex = regex.lastIndex - match[0].length;
|
|
57
|
-
const len = match.length;
|
|
58
|
-
for (let index = 0; index < len; index++) {
|
|
59
|
-
allmatches.push(match[index]);
|
|
60
|
-
}
|
|
61
|
-
matches.push(allmatches);
|
|
62
|
-
match = regex.exec(string);
|
|
63
|
-
}
|
|
64
|
-
return matches;
|
|
65
|
-
}
|
|
66
|
-
_24WEKBY3_cjs.__name(getAllMatches, "getAllMatches");
|
|
67
|
-
var isName = /* @__PURE__ */ _24WEKBY3_cjs.__name(function(string) {
|
|
68
|
-
const match = regexName.exec(string);
|
|
69
|
-
return !(match === null || typeof match === "undefined");
|
|
70
|
-
}, "isName");
|
|
71
|
-
function isExist(v2) {
|
|
72
|
-
return typeof v2 !== "undefined";
|
|
73
|
-
}
|
|
74
|
-
_24WEKBY3_cjs.__name(isExist, "isExist");
|
|
75
|
-
|
|
76
|
-
// ../../node_modules/.pnpm/fast-xml-parser@5.2.5/node_modules/fast-xml-parser/src/validator.js
|
|
77
|
-
var defaultOptions = {
|
|
78
|
-
allowBooleanAttributes: false,
|
|
79
|
-
unpairedTags: []
|
|
80
|
-
};
|
|
81
|
-
function validate(xmlData, options) {
|
|
82
|
-
options = Object.assign({}, defaultOptions, options);
|
|
83
|
-
const tags = [];
|
|
84
|
-
let tagFound = false;
|
|
85
|
-
let reachedRoot = false;
|
|
86
|
-
if (xmlData[0] === "\uFEFF") {
|
|
87
|
-
xmlData = xmlData.substr(1);
|
|
88
|
-
}
|
|
89
|
-
for (let i2 = 0; i2 < xmlData.length; i2++) {
|
|
90
|
-
if (xmlData[i2] === "<" && xmlData[i2 + 1] === "?") {
|
|
91
|
-
i2 += 2;
|
|
92
|
-
i2 = readPI(xmlData, i2);
|
|
93
|
-
if (i2.err) return i2;
|
|
94
|
-
} else if (xmlData[i2] === "<") {
|
|
95
|
-
let tagStartPos = i2;
|
|
96
|
-
i2++;
|
|
97
|
-
if (xmlData[i2] === "!") {
|
|
98
|
-
i2 = readCommentAndCDATA(xmlData, i2);
|
|
99
|
-
continue;
|
|
100
|
-
} else {
|
|
101
|
-
let closingTag = false;
|
|
102
|
-
if (xmlData[i2] === "/") {
|
|
103
|
-
closingTag = true;
|
|
104
|
-
i2++;
|
|
105
|
-
}
|
|
106
|
-
let tagName = "";
|
|
107
|
-
for (; i2 < xmlData.length && xmlData[i2] !== ">" && xmlData[i2] !== " " && xmlData[i2] !== " " && xmlData[i2] !== "\n" && xmlData[i2] !== "\r"; i2++) {
|
|
108
|
-
tagName += xmlData[i2];
|
|
109
|
-
}
|
|
110
|
-
tagName = tagName.trim();
|
|
111
|
-
if (tagName[tagName.length - 1] === "/") {
|
|
112
|
-
tagName = tagName.substring(0, tagName.length - 1);
|
|
113
|
-
i2--;
|
|
114
|
-
}
|
|
115
|
-
if (!validateTagName(tagName)) {
|
|
116
|
-
let msg;
|
|
117
|
-
if (tagName.trim().length === 0) {
|
|
118
|
-
msg = "Invalid space after '<'.";
|
|
119
|
-
} else {
|
|
120
|
-
msg = "Tag '" + tagName + "' is an invalid name.";
|
|
121
|
-
}
|
|
122
|
-
return getErrorObject("InvalidTag", msg, getLineNumberForPosition(xmlData, i2));
|
|
123
|
-
}
|
|
124
|
-
const result = readAttributeStr(xmlData, i2);
|
|
125
|
-
if (result === false) {
|
|
126
|
-
return getErrorObject("InvalidAttr", "Attributes for '" + tagName + "' have open quote.", getLineNumberForPosition(xmlData, i2));
|
|
127
|
-
}
|
|
128
|
-
let attrStr = result.value;
|
|
129
|
-
i2 = result.index;
|
|
130
|
-
if (attrStr[attrStr.length - 1] === "/") {
|
|
131
|
-
const attrStrStart = i2 - attrStr.length;
|
|
132
|
-
attrStr = attrStr.substring(0, attrStr.length - 1);
|
|
133
|
-
const isValid = validateAttributeString(attrStr, options);
|
|
134
|
-
if (isValid === true) {
|
|
135
|
-
tagFound = true;
|
|
136
|
-
} else {
|
|
137
|
-
return getErrorObject(isValid.err.code, isValid.err.msg, getLineNumberForPosition(xmlData, attrStrStart + isValid.err.line));
|
|
138
|
-
}
|
|
139
|
-
} else if (closingTag) {
|
|
140
|
-
if (!result.tagClosed) {
|
|
141
|
-
return getErrorObject("InvalidTag", "Closing tag '" + tagName + "' doesn't have proper closing.", getLineNumberForPosition(xmlData, i2));
|
|
142
|
-
} else if (attrStr.trim().length > 0) {
|
|
143
|
-
return getErrorObject("InvalidTag", "Closing tag '" + tagName + "' can't have attributes or invalid starting.", getLineNumberForPosition(xmlData, tagStartPos));
|
|
144
|
-
} else if (tags.length === 0) {
|
|
145
|
-
return getErrorObject("InvalidTag", "Closing tag '" + tagName + "' has not been opened.", getLineNumberForPosition(xmlData, tagStartPos));
|
|
146
|
-
} else {
|
|
147
|
-
const otg = tags.pop();
|
|
148
|
-
if (tagName !== otg.tagName) {
|
|
149
|
-
let openPos = getLineNumberForPosition(xmlData, otg.tagStartPos);
|
|
150
|
-
return getErrorObject("InvalidTag", "Expected closing tag '" + otg.tagName + "' (opened in line " + openPos.line + ", col " + openPos.col + ") instead of closing tag '" + tagName + "'.", getLineNumberForPosition(xmlData, tagStartPos));
|
|
151
|
-
}
|
|
152
|
-
if (tags.length == 0) {
|
|
153
|
-
reachedRoot = true;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
} else {
|
|
157
|
-
const isValid = validateAttributeString(attrStr, options);
|
|
158
|
-
if (isValid !== true) {
|
|
159
|
-
return getErrorObject(isValid.err.code, isValid.err.msg, getLineNumberForPosition(xmlData, i2 - attrStr.length + isValid.err.line));
|
|
160
|
-
}
|
|
161
|
-
if (reachedRoot === true) {
|
|
162
|
-
return getErrorObject("InvalidXml", "Multiple possible root nodes found.", getLineNumberForPosition(xmlData, i2));
|
|
163
|
-
} else if (options.unpairedTags.indexOf(tagName) !== -1) ; else {
|
|
164
|
-
tags.push({
|
|
165
|
-
tagName,
|
|
166
|
-
tagStartPos
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
|
-
tagFound = true;
|
|
170
|
-
}
|
|
171
|
-
for (i2++; i2 < xmlData.length; i2++) {
|
|
172
|
-
if (xmlData[i2] === "<") {
|
|
173
|
-
if (xmlData[i2 + 1] === "!") {
|
|
174
|
-
i2++;
|
|
175
|
-
i2 = readCommentAndCDATA(xmlData, i2);
|
|
176
|
-
continue;
|
|
177
|
-
} else if (xmlData[i2 + 1] === "?") {
|
|
178
|
-
i2 = readPI(xmlData, ++i2);
|
|
179
|
-
if (i2.err) return i2;
|
|
180
|
-
} else {
|
|
181
|
-
break;
|
|
182
|
-
}
|
|
183
|
-
} else if (xmlData[i2] === "&") {
|
|
184
|
-
const afterAmp = validateAmpersand(xmlData, i2);
|
|
185
|
-
if (afterAmp == -1) return getErrorObject("InvalidChar", "char '&' is not expected.", getLineNumberForPosition(xmlData, i2));
|
|
186
|
-
i2 = afterAmp;
|
|
187
|
-
} else {
|
|
188
|
-
if (reachedRoot === true && !isWhiteSpace(xmlData[i2])) {
|
|
189
|
-
return getErrorObject("InvalidXml", "Extra text at the end", getLineNumberForPosition(xmlData, i2));
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
if (xmlData[i2] === "<") {
|
|
194
|
-
i2--;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
} else {
|
|
198
|
-
if (isWhiteSpace(xmlData[i2])) {
|
|
199
|
-
continue;
|
|
200
|
-
}
|
|
201
|
-
return getErrorObject("InvalidChar", "char '" + xmlData[i2] + "' is not expected.", getLineNumberForPosition(xmlData, i2));
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
if (!tagFound) {
|
|
205
|
-
return getErrorObject("InvalidXml", "Start tag expected.", 1);
|
|
206
|
-
} else if (tags.length == 1) {
|
|
207
|
-
return getErrorObject("InvalidTag", "Unclosed tag '" + tags[0].tagName + "'.", getLineNumberForPosition(xmlData, tags[0].tagStartPos));
|
|
208
|
-
} else if (tags.length > 0) {
|
|
209
|
-
return getErrorObject("InvalidXml", "Invalid '" + JSON.stringify(tags.map((t2) => t2.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", {
|
|
210
|
-
line: 1,
|
|
211
|
-
col: 1
|
|
212
|
-
});
|
|
213
|
-
}
|
|
214
|
-
return true;
|
|
215
|
-
}
|
|
216
|
-
_24WEKBY3_cjs.__name(validate, "validate");
|
|
217
|
-
function isWhiteSpace(char) {
|
|
218
|
-
return char === " " || char === " " || char === "\n" || char === "\r";
|
|
219
|
-
}
|
|
220
|
-
_24WEKBY3_cjs.__name(isWhiteSpace, "isWhiteSpace");
|
|
221
|
-
function readPI(xmlData, i2) {
|
|
222
|
-
const start = i2;
|
|
223
|
-
for (; i2 < xmlData.length; i2++) {
|
|
224
|
-
if (xmlData[i2] == "?" || xmlData[i2] == " ") {
|
|
225
|
-
const tagname = xmlData.substr(start, i2 - start);
|
|
226
|
-
if (i2 > 5 && tagname === "xml") {
|
|
227
|
-
return getErrorObject("InvalidXml", "XML declaration allowed only at the start of the document.", getLineNumberForPosition(xmlData, i2));
|
|
228
|
-
} else if (xmlData[i2] == "?" && xmlData[i2 + 1] == ">") {
|
|
229
|
-
i2++;
|
|
230
|
-
break;
|
|
231
|
-
} else {
|
|
232
|
-
continue;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
return i2;
|
|
237
|
-
}
|
|
238
|
-
_24WEKBY3_cjs.__name(readPI, "readPI");
|
|
239
|
-
function readCommentAndCDATA(xmlData, i2) {
|
|
240
|
-
if (xmlData.length > i2 + 5 && xmlData[i2 + 1] === "-" && xmlData[i2 + 2] === "-") {
|
|
241
|
-
for (i2 += 3; i2 < xmlData.length; i2++) {
|
|
242
|
-
if (xmlData[i2] === "-" && xmlData[i2 + 1] === "-" && xmlData[i2 + 2] === ">") {
|
|
243
|
-
i2 += 2;
|
|
244
|
-
break;
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
} else if (xmlData.length > i2 + 8 && xmlData[i2 + 1] === "D" && xmlData[i2 + 2] === "O" && xmlData[i2 + 3] === "C" && xmlData[i2 + 4] === "T" && xmlData[i2 + 5] === "Y" && xmlData[i2 + 6] === "P" && xmlData[i2 + 7] === "E") {
|
|
248
|
-
let angleBracketsCount = 1;
|
|
249
|
-
for (i2 += 8; i2 < xmlData.length; i2++) {
|
|
250
|
-
if (xmlData[i2] === "<") {
|
|
251
|
-
angleBracketsCount++;
|
|
252
|
-
} else if (xmlData[i2] === ">") {
|
|
253
|
-
angleBracketsCount--;
|
|
254
|
-
if (angleBracketsCount === 0) {
|
|
255
|
-
break;
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
} else if (xmlData.length > i2 + 9 && xmlData[i2 + 1] === "[" && xmlData[i2 + 2] === "C" && xmlData[i2 + 3] === "D" && xmlData[i2 + 4] === "A" && xmlData[i2 + 5] === "T" && xmlData[i2 + 6] === "A" && xmlData[i2 + 7] === "[") {
|
|
260
|
-
for (i2 += 8; i2 < xmlData.length; i2++) {
|
|
261
|
-
if (xmlData[i2] === "]" && xmlData[i2 + 1] === "]" && xmlData[i2 + 2] === ">") {
|
|
262
|
-
i2 += 2;
|
|
263
|
-
break;
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
return i2;
|
|
268
|
-
}
|
|
269
|
-
_24WEKBY3_cjs.__name(readCommentAndCDATA, "readCommentAndCDATA");
|
|
270
|
-
var doubleQuote = '"';
|
|
271
|
-
var singleQuote = "'";
|
|
272
|
-
function readAttributeStr(xmlData, i2) {
|
|
273
|
-
let attrStr = "";
|
|
274
|
-
let startChar = "";
|
|
275
|
-
let tagClosed = false;
|
|
276
|
-
for (; i2 < xmlData.length; i2++) {
|
|
277
|
-
if (xmlData[i2] === doubleQuote || xmlData[i2] === singleQuote) {
|
|
278
|
-
if (startChar === "") {
|
|
279
|
-
startChar = xmlData[i2];
|
|
280
|
-
} else if (startChar !== xmlData[i2]) ; else {
|
|
281
|
-
startChar = "";
|
|
282
|
-
}
|
|
283
|
-
} else if (xmlData[i2] === ">") {
|
|
284
|
-
if (startChar === "") {
|
|
285
|
-
tagClosed = true;
|
|
286
|
-
break;
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
attrStr += xmlData[i2];
|
|
290
|
-
}
|
|
291
|
-
if (startChar !== "") {
|
|
292
|
-
return false;
|
|
293
|
-
}
|
|
294
|
-
return {
|
|
295
|
-
value: attrStr,
|
|
296
|
-
index: i2,
|
|
297
|
-
tagClosed
|
|
298
|
-
};
|
|
299
|
-
}
|
|
300
|
-
_24WEKBY3_cjs.__name(readAttributeStr, "readAttributeStr");
|
|
301
|
-
var validAttrStrRegxp = new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`, "g");
|
|
302
|
-
function validateAttributeString(attrStr, options) {
|
|
303
|
-
const matches = getAllMatches(attrStr, validAttrStrRegxp);
|
|
304
|
-
const attrNames = {};
|
|
305
|
-
for (let i2 = 0; i2 < matches.length; i2++) {
|
|
306
|
-
if (matches[i2][1].length === 0) {
|
|
307
|
-
return getErrorObject("InvalidAttr", "Attribute '" + matches[i2][2] + "' has no space in starting.", getPositionFromMatch(matches[i2]));
|
|
308
|
-
} else if (matches[i2][3] !== void 0 && matches[i2][4] === void 0) {
|
|
309
|
-
return getErrorObject("InvalidAttr", "Attribute '" + matches[i2][2] + "' is without value.", getPositionFromMatch(matches[i2]));
|
|
310
|
-
} else if (matches[i2][3] === void 0 && !options.allowBooleanAttributes) {
|
|
311
|
-
return getErrorObject("InvalidAttr", "boolean attribute '" + matches[i2][2] + "' is not allowed.", getPositionFromMatch(matches[i2]));
|
|
312
|
-
}
|
|
313
|
-
const attrName = matches[i2][2];
|
|
314
|
-
if (!validateAttrName(attrName)) {
|
|
315
|
-
return getErrorObject("InvalidAttr", "Attribute '" + attrName + "' is an invalid name.", getPositionFromMatch(matches[i2]));
|
|
316
|
-
}
|
|
317
|
-
if (!attrNames.hasOwnProperty(attrName)) {
|
|
318
|
-
attrNames[attrName] = 1;
|
|
319
|
-
} else {
|
|
320
|
-
return getErrorObject("InvalidAttr", "Attribute '" + attrName + "' is repeated.", getPositionFromMatch(matches[i2]));
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
return true;
|
|
324
|
-
}
|
|
325
|
-
_24WEKBY3_cjs.__name(validateAttributeString, "validateAttributeString");
|
|
326
|
-
function validateNumberAmpersand(xmlData, i2) {
|
|
327
|
-
let re = /\d/;
|
|
328
|
-
if (xmlData[i2] === "x") {
|
|
329
|
-
i2++;
|
|
330
|
-
re = /[\da-fA-F]/;
|
|
331
|
-
}
|
|
332
|
-
for (; i2 < xmlData.length; i2++) {
|
|
333
|
-
if (xmlData[i2] === ";") return i2;
|
|
334
|
-
if (!xmlData[i2].match(re)) break;
|
|
335
|
-
}
|
|
336
|
-
return -1;
|
|
337
|
-
}
|
|
338
|
-
_24WEKBY3_cjs.__name(validateNumberAmpersand, "validateNumberAmpersand");
|
|
339
|
-
function validateAmpersand(xmlData, i2) {
|
|
340
|
-
i2++;
|
|
341
|
-
if (xmlData[i2] === ";") return -1;
|
|
342
|
-
if (xmlData[i2] === "#") {
|
|
343
|
-
i2++;
|
|
344
|
-
return validateNumberAmpersand(xmlData, i2);
|
|
345
|
-
}
|
|
346
|
-
let count = 0;
|
|
347
|
-
for (; i2 < xmlData.length; i2++, count++) {
|
|
348
|
-
if (xmlData[i2].match(/\w/) && count < 20) continue;
|
|
349
|
-
if (xmlData[i2] === ";") break;
|
|
350
|
-
return -1;
|
|
351
|
-
}
|
|
352
|
-
return i2;
|
|
353
|
-
}
|
|
354
|
-
_24WEKBY3_cjs.__name(validateAmpersand, "validateAmpersand");
|
|
355
|
-
function getErrorObject(code, message, lineNumber) {
|
|
356
|
-
return {
|
|
357
|
-
err: {
|
|
358
|
-
code,
|
|
359
|
-
msg: message,
|
|
360
|
-
line: lineNumber.line || lineNumber,
|
|
361
|
-
col: lineNumber.col
|
|
362
|
-
}
|
|
363
|
-
};
|
|
364
|
-
}
|
|
365
|
-
_24WEKBY3_cjs.__name(getErrorObject, "getErrorObject");
|
|
366
|
-
function validateAttrName(attrName) {
|
|
367
|
-
return isName(attrName);
|
|
368
|
-
}
|
|
369
|
-
_24WEKBY3_cjs.__name(validateAttrName, "validateAttrName");
|
|
370
|
-
function validateTagName(tagname) {
|
|
371
|
-
return isName(tagname);
|
|
372
|
-
}
|
|
373
|
-
_24WEKBY3_cjs.__name(validateTagName, "validateTagName");
|
|
374
|
-
function getLineNumberForPosition(xmlData, index) {
|
|
375
|
-
const lines = xmlData.substring(0, index).split(/\r?\n/);
|
|
376
|
-
return {
|
|
377
|
-
line: lines.length,
|
|
378
|
-
// column number is last line's length + 1, because column numbering starts at 1:
|
|
379
|
-
col: lines[lines.length - 1].length + 1
|
|
380
|
-
};
|
|
381
|
-
}
|
|
382
|
-
_24WEKBY3_cjs.__name(getLineNumberForPosition, "getLineNumberForPosition");
|
|
383
|
-
function getPositionFromMatch(match) {
|
|
384
|
-
return match.startIndex + match[1].length;
|
|
385
|
-
}
|
|
386
|
-
_24WEKBY3_cjs.__name(getPositionFromMatch, "getPositionFromMatch");
|
|
387
|
-
|
|
388
|
-
// ../../node_modules/.pnpm/fast-xml-parser@5.2.5/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js
|
|
389
|
-
_24WEKBY3_cjs.init_cjs_shims();
|
|
390
|
-
|
|
391
|
-
// ../../node_modules/.pnpm/fast-xml-parser@5.2.5/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js
|
|
392
|
-
_24WEKBY3_cjs.init_cjs_shims();
|
|
393
|
-
var defaultOptions2 = {
|
|
394
|
-
preserveOrder: false,
|
|
395
|
-
attributeNamePrefix: "@_",
|
|
396
|
-
attributesGroupName: false,
|
|
397
|
-
textNodeName: "#text",
|
|
398
|
-
ignoreAttributes: true,
|
|
399
|
-
removeNSPrefix: false,
|
|
400
|
-
allowBooleanAttributes: false,
|
|
401
|
-
//ignoreRootElement : false,
|
|
402
|
-
parseTagValue: true,
|
|
403
|
-
parseAttributeValue: false,
|
|
404
|
-
trimValues: true,
|
|
405
|
-
cdataPropName: false,
|
|
406
|
-
numberParseOptions: {
|
|
407
|
-
hex: true,
|
|
408
|
-
leadingZeros: true,
|
|
409
|
-
eNotation: true
|
|
410
|
-
},
|
|
411
|
-
tagValueProcessor: /* @__PURE__ */ _24WEKBY3_cjs.__name(function(tagName, val) {
|
|
412
|
-
return val;
|
|
413
|
-
}, "tagValueProcessor"),
|
|
414
|
-
attributeValueProcessor: /* @__PURE__ */ _24WEKBY3_cjs.__name(function(attrName, val) {
|
|
415
|
-
return val;
|
|
416
|
-
}, "attributeValueProcessor"),
|
|
417
|
-
stopNodes: [],
|
|
418
|
-
alwaysCreateTextNode: false,
|
|
419
|
-
isArray: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => false, "isArray"),
|
|
420
|
-
commentPropName: false,
|
|
421
|
-
unpairedTags: [],
|
|
422
|
-
processEntities: true,
|
|
423
|
-
htmlEntities: false,
|
|
424
|
-
ignoreDeclaration: false,
|
|
425
|
-
ignorePiTags: false,
|
|
426
|
-
transformTagName: false,
|
|
427
|
-
transformAttributeName: false,
|
|
428
|
-
updateTag: /* @__PURE__ */ _24WEKBY3_cjs.__name(function(tagName, jPath, attrs) {
|
|
429
|
-
return tagName;
|
|
430
|
-
}, "updateTag"),
|
|
431
|
-
// skipEmptyListItem: false
|
|
432
|
-
captureMetaData: false
|
|
433
|
-
};
|
|
434
|
-
var buildOptions = /* @__PURE__ */ _24WEKBY3_cjs.__name(function(options) {
|
|
435
|
-
return Object.assign({}, defaultOptions2, options);
|
|
436
|
-
}, "buildOptions");
|
|
437
|
-
|
|
438
|
-
// ../../node_modules/.pnpm/fast-xml-parser@5.2.5/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js
|
|
439
|
-
_24WEKBY3_cjs.init_cjs_shims();
|
|
440
|
-
|
|
441
|
-
// ../../node_modules/.pnpm/fast-xml-parser@5.2.5/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js
|
|
442
|
-
_24WEKBY3_cjs.init_cjs_shims();
|
|
443
|
-
var METADATA_SYMBOL;
|
|
444
|
-
if (typeof Symbol !== "function") {
|
|
445
|
-
METADATA_SYMBOL = "@@xmlMetadata";
|
|
446
|
-
} else {
|
|
447
|
-
METADATA_SYMBOL = Symbol("XML Node Metadata");
|
|
448
|
-
}
|
|
449
|
-
var XmlNode = class {
|
|
450
|
-
static {
|
|
451
|
-
_24WEKBY3_cjs.__name(this, "XmlNode");
|
|
452
|
-
}
|
|
453
|
-
constructor(tagname) {
|
|
454
|
-
this.tagname = tagname;
|
|
455
|
-
this.child = [];
|
|
456
|
-
this[":@"] = {};
|
|
457
|
-
}
|
|
458
|
-
add(key, val) {
|
|
459
|
-
if (key === "__proto__") key = "#__proto__";
|
|
460
|
-
this.child.push({
|
|
461
|
-
[key]: val
|
|
462
|
-
});
|
|
463
|
-
}
|
|
464
|
-
addChild(node, startIndex) {
|
|
465
|
-
if (node.tagname === "__proto__") node.tagname = "#__proto__";
|
|
466
|
-
if (node[":@"] && Object.keys(node[":@"]).length > 0) {
|
|
467
|
-
this.child.push({
|
|
468
|
-
[node.tagname]: node.child,
|
|
469
|
-
[":@"]: node[":@"]
|
|
470
|
-
});
|
|
471
|
-
} else {
|
|
472
|
-
this.child.push({
|
|
473
|
-
[node.tagname]: node.child
|
|
474
|
-
});
|
|
475
|
-
}
|
|
476
|
-
if (startIndex !== void 0) {
|
|
477
|
-
this.child[this.child.length - 1][METADATA_SYMBOL] = {
|
|
478
|
-
startIndex
|
|
479
|
-
};
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
/** symbol used for metadata */
|
|
483
|
-
static getMetaDataSymbol() {
|
|
484
|
-
return METADATA_SYMBOL;
|
|
485
|
-
}
|
|
486
|
-
};
|
|
487
|
-
|
|
488
|
-
// ../../node_modules/.pnpm/fast-xml-parser@5.2.5/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js
|
|
489
|
-
_24WEKBY3_cjs.init_cjs_shims();
|
|
490
|
-
function readDocType(xmlData, i2) {
|
|
491
|
-
const entities = {};
|
|
492
|
-
if (xmlData[i2 + 3] === "O" && xmlData[i2 + 4] === "C" && xmlData[i2 + 5] === "T" && xmlData[i2 + 6] === "Y" && xmlData[i2 + 7] === "P" && xmlData[i2 + 8] === "E") {
|
|
493
|
-
i2 = i2 + 9;
|
|
494
|
-
let angleBracketsCount = 1;
|
|
495
|
-
let hasBody = false, comment = false;
|
|
496
|
-
let exp = "";
|
|
497
|
-
for (; i2 < xmlData.length; i2++) {
|
|
498
|
-
if (xmlData[i2] === "<" && !comment) {
|
|
499
|
-
if (hasBody && hasSeq(xmlData, "!ENTITY", i2)) {
|
|
500
|
-
i2 += 7;
|
|
501
|
-
let entityName, val;
|
|
502
|
-
[entityName, val, i2] = readEntityExp(xmlData, i2 + 1);
|
|
503
|
-
if (val.indexOf("&") === -1) entities[entityName] = {
|
|
504
|
-
regx: RegExp(`&${entityName};`, "g"),
|
|
505
|
-
val
|
|
506
|
-
};
|
|
507
|
-
} else if (hasBody && hasSeq(xmlData, "!ELEMENT", i2)) {
|
|
508
|
-
i2 += 8;
|
|
509
|
-
const { index } = readElementExp(xmlData, i2 + 1);
|
|
510
|
-
i2 = index;
|
|
511
|
-
} else if (hasBody && hasSeq(xmlData, "!ATTLIST", i2)) {
|
|
512
|
-
i2 += 8;
|
|
513
|
-
} else if (hasBody && hasSeq(xmlData, "!NOTATION", i2)) {
|
|
514
|
-
i2 += 9;
|
|
515
|
-
const { index } = readNotationExp(xmlData, i2 + 1);
|
|
516
|
-
i2 = index;
|
|
517
|
-
} else if (hasSeq(xmlData, "!--", i2)) comment = true;
|
|
518
|
-
else throw new Error(`Invalid DOCTYPE`);
|
|
519
|
-
angleBracketsCount++;
|
|
520
|
-
exp = "";
|
|
521
|
-
} else if (xmlData[i2] === ">") {
|
|
522
|
-
if (comment) {
|
|
523
|
-
if (xmlData[i2 - 1] === "-" && xmlData[i2 - 2] === "-") {
|
|
524
|
-
comment = false;
|
|
525
|
-
angleBracketsCount--;
|
|
526
|
-
}
|
|
527
|
-
} else {
|
|
528
|
-
angleBracketsCount--;
|
|
529
|
-
}
|
|
530
|
-
if (angleBracketsCount === 0) {
|
|
531
|
-
break;
|
|
532
|
-
}
|
|
533
|
-
} else if (xmlData[i2] === "[") {
|
|
534
|
-
hasBody = true;
|
|
535
|
-
} else {
|
|
536
|
-
exp += xmlData[i2];
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
if (angleBracketsCount !== 0) {
|
|
540
|
-
throw new Error(`Unclosed DOCTYPE`);
|
|
541
|
-
}
|
|
542
|
-
} else {
|
|
543
|
-
throw new Error(`Invalid Tag instead of DOCTYPE`);
|
|
544
|
-
}
|
|
545
|
-
return {
|
|
546
|
-
entities,
|
|
547
|
-
i: i2
|
|
548
|
-
};
|
|
549
|
-
}
|
|
550
|
-
_24WEKBY3_cjs.__name(readDocType, "readDocType");
|
|
551
|
-
var skipWhitespace = /* @__PURE__ */ _24WEKBY3_cjs.__name((data, index) => {
|
|
552
|
-
while (index < data.length && /\s/.test(data[index])) {
|
|
553
|
-
index++;
|
|
554
|
-
}
|
|
555
|
-
return index;
|
|
556
|
-
}, "skipWhitespace");
|
|
557
|
-
function readEntityExp(xmlData, i2) {
|
|
558
|
-
i2 = skipWhitespace(xmlData, i2);
|
|
559
|
-
let entityName = "";
|
|
560
|
-
while (i2 < xmlData.length && !/\s/.test(xmlData[i2]) && xmlData[i2] !== '"' && xmlData[i2] !== "'") {
|
|
561
|
-
entityName += xmlData[i2];
|
|
562
|
-
i2++;
|
|
563
|
-
}
|
|
564
|
-
validateEntityName(entityName);
|
|
565
|
-
i2 = skipWhitespace(xmlData, i2);
|
|
566
|
-
if (xmlData.substring(i2, i2 + 6).toUpperCase() === "SYSTEM") {
|
|
567
|
-
throw new Error("External entities are not supported");
|
|
568
|
-
} else if (xmlData[i2] === "%") {
|
|
569
|
-
throw new Error("Parameter entities are not supported");
|
|
570
|
-
}
|
|
571
|
-
let entityValue = "";
|
|
572
|
-
[i2, entityValue] = readIdentifierVal(xmlData, i2, "entity");
|
|
573
|
-
i2--;
|
|
574
|
-
return [
|
|
575
|
-
entityName,
|
|
576
|
-
entityValue,
|
|
577
|
-
i2
|
|
578
|
-
];
|
|
579
|
-
}
|
|
580
|
-
_24WEKBY3_cjs.__name(readEntityExp, "readEntityExp");
|
|
581
|
-
function readNotationExp(xmlData, i2) {
|
|
582
|
-
i2 = skipWhitespace(xmlData, i2);
|
|
583
|
-
let notationName = "";
|
|
584
|
-
while (i2 < xmlData.length && !/\s/.test(xmlData[i2])) {
|
|
585
|
-
notationName += xmlData[i2];
|
|
586
|
-
i2++;
|
|
587
|
-
}
|
|
588
|
-
validateEntityName(notationName);
|
|
589
|
-
i2 = skipWhitespace(xmlData, i2);
|
|
590
|
-
const identifierType = xmlData.substring(i2, i2 + 6).toUpperCase();
|
|
591
|
-
if (identifierType !== "SYSTEM" && identifierType !== "PUBLIC") {
|
|
592
|
-
throw new Error(`Expected SYSTEM or PUBLIC, found "${identifierType}"`);
|
|
593
|
-
}
|
|
594
|
-
i2 += identifierType.length;
|
|
595
|
-
i2 = skipWhitespace(xmlData, i2);
|
|
596
|
-
let publicIdentifier = null;
|
|
597
|
-
let systemIdentifier = null;
|
|
598
|
-
if (identifierType === "PUBLIC") {
|
|
599
|
-
[i2, publicIdentifier] = readIdentifierVal(xmlData, i2, "publicIdentifier");
|
|
600
|
-
i2 = skipWhitespace(xmlData, i2);
|
|
601
|
-
if (xmlData[i2] === '"' || xmlData[i2] === "'") {
|
|
602
|
-
[i2, systemIdentifier] = readIdentifierVal(xmlData, i2, "systemIdentifier");
|
|
603
|
-
}
|
|
604
|
-
} else if (identifierType === "SYSTEM") {
|
|
605
|
-
[i2, systemIdentifier] = readIdentifierVal(xmlData, i2, "systemIdentifier");
|
|
606
|
-
if (!systemIdentifier) {
|
|
607
|
-
throw new Error("Missing mandatory system identifier for SYSTEM notation");
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
return {
|
|
611
|
-
notationName,
|
|
612
|
-
publicIdentifier,
|
|
613
|
-
systemIdentifier,
|
|
614
|
-
index: --i2
|
|
615
|
-
};
|
|
616
|
-
}
|
|
617
|
-
_24WEKBY3_cjs.__name(readNotationExp, "readNotationExp");
|
|
618
|
-
function readIdentifierVal(xmlData, i2, type) {
|
|
619
|
-
let identifierVal = "";
|
|
620
|
-
const startChar = xmlData[i2];
|
|
621
|
-
if (startChar !== '"' && startChar !== "'") {
|
|
622
|
-
throw new Error(`Expected quoted string, found "${startChar}"`);
|
|
623
|
-
}
|
|
624
|
-
i2++;
|
|
625
|
-
while (i2 < xmlData.length && xmlData[i2] !== startChar) {
|
|
626
|
-
identifierVal += xmlData[i2];
|
|
627
|
-
i2++;
|
|
628
|
-
}
|
|
629
|
-
if (xmlData[i2] !== startChar) {
|
|
630
|
-
throw new Error(`Unterminated ${type} value`);
|
|
631
|
-
}
|
|
632
|
-
i2++;
|
|
633
|
-
return [
|
|
634
|
-
i2,
|
|
635
|
-
identifierVal
|
|
636
|
-
];
|
|
637
|
-
}
|
|
638
|
-
_24WEKBY3_cjs.__name(readIdentifierVal, "readIdentifierVal");
|
|
639
|
-
function readElementExp(xmlData, i2) {
|
|
640
|
-
i2 = skipWhitespace(xmlData, i2);
|
|
641
|
-
let elementName = "";
|
|
642
|
-
while (i2 < xmlData.length && !/\s/.test(xmlData[i2])) {
|
|
643
|
-
elementName += xmlData[i2];
|
|
644
|
-
i2++;
|
|
645
|
-
}
|
|
646
|
-
if (!validateEntityName(elementName)) {
|
|
647
|
-
throw new Error(`Invalid element name: "${elementName}"`);
|
|
648
|
-
}
|
|
649
|
-
i2 = skipWhitespace(xmlData, i2);
|
|
650
|
-
let contentModel = "";
|
|
651
|
-
if (xmlData[i2] === "E" && hasSeq(xmlData, "MPTY", i2)) i2 += 4;
|
|
652
|
-
else if (xmlData[i2] === "A" && hasSeq(xmlData, "NY", i2)) i2 += 2;
|
|
653
|
-
else if (xmlData[i2] === "(") {
|
|
654
|
-
i2++;
|
|
655
|
-
while (i2 < xmlData.length && xmlData[i2] !== ")") {
|
|
656
|
-
contentModel += xmlData[i2];
|
|
657
|
-
i2++;
|
|
658
|
-
}
|
|
659
|
-
if (xmlData[i2] !== ")") {
|
|
660
|
-
throw new Error("Unterminated content model");
|
|
661
|
-
}
|
|
662
|
-
} else {
|
|
663
|
-
throw new Error(`Invalid Element Expression, found "${xmlData[i2]}"`);
|
|
664
|
-
}
|
|
665
|
-
return {
|
|
666
|
-
elementName,
|
|
667
|
-
contentModel: contentModel.trim(),
|
|
668
|
-
index: i2
|
|
669
|
-
};
|
|
670
|
-
}
|
|
671
|
-
_24WEKBY3_cjs.__name(readElementExp, "readElementExp");
|
|
672
|
-
function hasSeq(data, seq, i2) {
|
|
673
|
-
for (let j2 = 0; j2 < seq.length; j2++) {
|
|
674
|
-
if (seq[j2] !== data[i2 + j2 + 1]) return false;
|
|
675
|
-
}
|
|
676
|
-
return true;
|
|
677
|
-
}
|
|
678
|
-
_24WEKBY3_cjs.__name(hasSeq, "hasSeq");
|
|
679
|
-
function validateEntityName(name) {
|
|
680
|
-
if (isName(name)) return name;
|
|
681
|
-
else throw new Error(`Invalid entity name ${name}`);
|
|
682
|
-
}
|
|
683
|
-
_24WEKBY3_cjs.__name(validateEntityName, "validateEntityName");
|
|
684
|
-
|
|
685
|
-
// ../../node_modules/.pnpm/strnum@2.1.1/node_modules/strnum/strnum.js
|
|
686
|
-
_24WEKBY3_cjs.init_cjs_shims();
|
|
687
|
-
var hexRegex = /^[-+]?0x[a-fA-F0-9]+$/;
|
|
688
|
-
var numRegex = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/;
|
|
689
|
-
var consider = {
|
|
690
|
-
hex: true,
|
|
691
|
-
// oct: false,
|
|
692
|
-
leadingZeros: true,
|
|
693
|
-
decimalPoint: ".",
|
|
694
|
-
eNotation: true
|
|
695
|
-
};
|
|
696
|
-
function toNumber(str, options = {}) {
|
|
697
|
-
options = Object.assign({}, consider, options);
|
|
698
|
-
if (!str || typeof str !== "string") return str;
|
|
699
|
-
let trimmedStr = str.trim();
|
|
700
|
-
if (options.skipLike !== void 0 && options.skipLike.test(trimmedStr)) return str;
|
|
701
|
-
else if (str === "0") return 0;
|
|
702
|
-
else if (options.hex && hexRegex.test(trimmedStr)) {
|
|
703
|
-
return parse_int(trimmedStr, 16);
|
|
704
|
-
} else if (trimmedStr.search(/.+[eE].+/) !== -1) {
|
|
705
|
-
return resolveEnotation(str, trimmedStr, options);
|
|
706
|
-
} else {
|
|
707
|
-
const match = numRegex.exec(trimmedStr);
|
|
708
|
-
if (match) {
|
|
709
|
-
const sign = match[1] || "";
|
|
710
|
-
const leadingZeros = match[2];
|
|
711
|
-
let numTrimmedByZeros = trimZeros(match[3]);
|
|
712
|
-
const decimalAdjacentToLeadingZeros = sign ? str[leadingZeros.length + 1] === "." : str[leadingZeros.length] === ".";
|
|
713
|
-
if (!options.leadingZeros && (leadingZeros.length > 1 || leadingZeros.length === 1 && !decimalAdjacentToLeadingZeros)) {
|
|
714
|
-
return str;
|
|
715
|
-
} else {
|
|
716
|
-
const num = Number(trimmedStr);
|
|
717
|
-
const parsedStr = String(num);
|
|
718
|
-
if (num === 0) return num;
|
|
719
|
-
if (parsedStr.search(/[eE]/) !== -1) {
|
|
720
|
-
if (options.eNotation) return num;
|
|
721
|
-
else return str;
|
|
722
|
-
} else if (trimmedStr.indexOf(".") !== -1) {
|
|
723
|
-
if (parsedStr === "0") return num;
|
|
724
|
-
else if (parsedStr === numTrimmedByZeros) return num;
|
|
725
|
-
else if (parsedStr === `${sign}${numTrimmedByZeros}`) return num;
|
|
726
|
-
else return str;
|
|
727
|
-
}
|
|
728
|
-
let n2 = leadingZeros ? numTrimmedByZeros : trimmedStr;
|
|
729
|
-
if (leadingZeros) {
|
|
730
|
-
return n2 === parsedStr || sign + n2 === parsedStr ? num : str;
|
|
731
|
-
} else {
|
|
732
|
-
return n2 === parsedStr || n2 === sign + parsedStr ? num : str;
|
|
733
|
-
}
|
|
734
|
-
}
|
|
735
|
-
} else {
|
|
736
|
-
return str;
|
|
737
|
-
}
|
|
738
|
-
}
|
|
739
|
-
}
|
|
740
|
-
_24WEKBY3_cjs.__name(toNumber, "toNumber");
|
|
741
|
-
var eNotationRegx = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
|
|
742
|
-
function resolveEnotation(str, trimmedStr, options) {
|
|
743
|
-
if (!options.eNotation) return str;
|
|
744
|
-
const notation = trimmedStr.match(eNotationRegx);
|
|
745
|
-
if (notation) {
|
|
746
|
-
let sign = notation[1] || "";
|
|
747
|
-
const eChar = notation[3].indexOf("e") === -1 ? "E" : "e";
|
|
748
|
-
const leadingZeros = notation[2];
|
|
749
|
-
const eAdjacentToLeadingZeros = sign ? str[leadingZeros.length + 1] === eChar : str[leadingZeros.length] === eChar;
|
|
750
|
-
if (leadingZeros.length > 1 && eAdjacentToLeadingZeros) return str;
|
|
751
|
-
else if (leadingZeros.length === 1 && (notation[3].startsWith(`.${eChar}`) || notation[3][0] === eChar)) {
|
|
752
|
-
return Number(trimmedStr);
|
|
753
|
-
} else if (options.leadingZeros && !eAdjacentToLeadingZeros) {
|
|
754
|
-
trimmedStr = (notation[1] || "") + notation[3];
|
|
755
|
-
return Number(trimmedStr);
|
|
756
|
-
} else return str;
|
|
757
|
-
} else {
|
|
758
|
-
return str;
|
|
759
|
-
}
|
|
760
|
-
}
|
|
761
|
-
_24WEKBY3_cjs.__name(resolveEnotation, "resolveEnotation");
|
|
762
|
-
function trimZeros(numStr) {
|
|
763
|
-
if (numStr && numStr.indexOf(".") !== -1) {
|
|
764
|
-
numStr = numStr.replace(/0+$/, "");
|
|
765
|
-
if (numStr === ".") numStr = "0";
|
|
766
|
-
else if (numStr[0] === ".") numStr = "0" + numStr;
|
|
767
|
-
else if (numStr[numStr.length - 1] === ".") numStr = numStr.substring(0, numStr.length - 1);
|
|
768
|
-
return numStr;
|
|
769
|
-
}
|
|
770
|
-
return numStr;
|
|
771
|
-
}
|
|
772
|
-
_24WEKBY3_cjs.__name(trimZeros, "trimZeros");
|
|
773
|
-
function parse_int(numStr, base) {
|
|
774
|
-
if (parseInt) return parseInt(numStr, base);
|
|
775
|
-
else if (Number.parseInt) return Number.parseInt(numStr, base);
|
|
776
|
-
else if (window && window.parseInt) return window.parseInt(numStr, base);
|
|
777
|
-
else throw new Error("parseInt, Number.parseInt, window.parseInt are not supported");
|
|
778
|
-
}
|
|
779
|
-
_24WEKBY3_cjs.__name(parse_int, "parse_int");
|
|
780
|
-
|
|
781
|
-
// ../../node_modules/.pnpm/fast-xml-parser@5.2.5/node_modules/fast-xml-parser/src/ignoreAttributes.js
|
|
782
|
-
_24WEKBY3_cjs.init_cjs_shims();
|
|
783
|
-
function getIgnoreAttributesFn(ignoreAttributes) {
|
|
784
|
-
if (typeof ignoreAttributes === "function") {
|
|
785
|
-
return ignoreAttributes;
|
|
786
|
-
}
|
|
787
|
-
if (Array.isArray(ignoreAttributes)) {
|
|
788
|
-
return (attrName) => {
|
|
789
|
-
for (const pattern of ignoreAttributes) {
|
|
790
|
-
if (typeof pattern === "string" && attrName === pattern) {
|
|
791
|
-
return true;
|
|
792
|
-
}
|
|
793
|
-
if (pattern instanceof RegExp && pattern.test(attrName)) {
|
|
794
|
-
return true;
|
|
795
|
-
}
|
|
796
|
-
}
|
|
797
|
-
};
|
|
798
|
-
}
|
|
799
|
-
return () => false;
|
|
800
|
-
}
|
|
801
|
-
_24WEKBY3_cjs.__name(getIgnoreAttributesFn, "getIgnoreAttributesFn");
|
|
802
|
-
|
|
803
|
-
// ../../node_modules/.pnpm/fast-xml-parser@5.2.5/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js
|
|
804
|
-
var OrderedObjParser = class {
|
|
805
|
-
static {
|
|
806
|
-
_24WEKBY3_cjs.__name(this, "OrderedObjParser");
|
|
807
|
-
}
|
|
808
|
-
constructor(options) {
|
|
809
|
-
this.options = options;
|
|
810
|
-
this.currentNode = null;
|
|
811
|
-
this.tagsNodeStack = [];
|
|
812
|
-
this.docTypeEntities = {};
|
|
813
|
-
this.lastEntities = {
|
|
814
|
-
"apos": {
|
|
815
|
-
regex: /&(apos|#39|#x27);/g,
|
|
816
|
-
val: "'"
|
|
817
|
-
},
|
|
818
|
-
"gt": {
|
|
819
|
-
regex: /&(gt|#62|#x3E);/g,
|
|
820
|
-
val: ">"
|
|
821
|
-
},
|
|
822
|
-
"lt": {
|
|
823
|
-
regex: /&(lt|#60|#x3C);/g,
|
|
824
|
-
val: "<"
|
|
825
|
-
},
|
|
826
|
-
"quot": {
|
|
827
|
-
regex: /&(quot|#34|#x22);/g,
|
|
828
|
-
val: '"'
|
|
829
|
-
}
|
|
830
|
-
};
|
|
831
|
-
this.ampEntity = {
|
|
832
|
-
regex: /&(amp|#38|#x26);/g,
|
|
833
|
-
val: "&"
|
|
834
|
-
};
|
|
835
|
-
this.htmlEntities = {
|
|
836
|
-
"space": {
|
|
837
|
-
regex: /&(nbsp|#160);/g,
|
|
838
|
-
val: " "
|
|
839
|
-
},
|
|
840
|
-
// "lt" : { regex: /&(lt|#60);/g, val: "<" },
|
|
841
|
-
// "gt" : { regex: /&(gt|#62);/g, val: ">" },
|
|
842
|
-
// "amp" : { regex: /&(amp|#38);/g, val: "&" },
|
|
843
|
-
// "quot" : { regex: /&(quot|#34);/g, val: "\"" },
|
|
844
|
-
// "apos" : { regex: /&(apos|#39);/g, val: "'" },
|
|
845
|
-
"cent": {
|
|
846
|
-
regex: /&(cent|#162);/g,
|
|
847
|
-
val: "\xA2"
|
|
848
|
-
},
|
|
849
|
-
"pound": {
|
|
850
|
-
regex: /&(pound|#163);/g,
|
|
851
|
-
val: "\xA3"
|
|
852
|
-
},
|
|
853
|
-
"yen": {
|
|
854
|
-
regex: /&(yen|#165);/g,
|
|
855
|
-
val: "\xA5"
|
|
856
|
-
},
|
|
857
|
-
"euro": {
|
|
858
|
-
regex: /&(euro|#8364);/g,
|
|
859
|
-
val: "\u20AC"
|
|
860
|
-
},
|
|
861
|
-
"copyright": {
|
|
862
|
-
regex: /&(copy|#169);/g,
|
|
863
|
-
val: "\xA9"
|
|
864
|
-
},
|
|
865
|
-
"reg": {
|
|
866
|
-
regex: /&(reg|#174);/g,
|
|
867
|
-
val: "\xAE"
|
|
868
|
-
},
|
|
869
|
-
"inr": {
|
|
870
|
-
regex: /&(inr|#8377);/g,
|
|
871
|
-
val: "\u20B9"
|
|
872
|
-
},
|
|
873
|
-
"num_dec": {
|
|
874
|
-
regex: /&#([0-9]{1,7});/g,
|
|
875
|
-
val: /* @__PURE__ */ _24WEKBY3_cjs.__name((_2, str) => String.fromCodePoint(Number.parseInt(str, 10)), "val")
|
|
876
|
-
},
|
|
877
|
-
"num_hex": {
|
|
878
|
-
regex: /&#x([0-9a-fA-F]{1,6});/g,
|
|
879
|
-
val: /* @__PURE__ */ _24WEKBY3_cjs.__name((_2, str) => String.fromCodePoint(Number.parseInt(str, 16)), "val")
|
|
880
|
-
}
|
|
881
|
-
};
|
|
882
|
-
this.addExternalEntities = addExternalEntities;
|
|
883
|
-
this.parseXml = parseXml;
|
|
884
|
-
this.parseTextData = parseTextData;
|
|
885
|
-
this.resolveNameSpace = resolveNameSpace;
|
|
886
|
-
this.buildAttributesMap = buildAttributesMap;
|
|
887
|
-
this.isItStopNode = isItStopNode;
|
|
888
|
-
this.replaceEntitiesValue = replaceEntitiesValue;
|
|
889
|
-
this.readStopNodeData = readStopNodeData;
|
|
890
|
-
this.saveTextToParentTag = saveTextToParentTag;
|
|
891
|
-
this.addChild = addChild;
|
|
892
|
-
this.ignoreAttributesFn = getIgnoreAttributesFn(this.options.ignoreAttributes);
|
|
893
|
-
}
|
|
894
|
-
};
|
|
895
|
-
function addExternalEntities(externalEntities) {
|
|
896
|
-
const entKeys = Object.keys(externalEntities);
|
|
897
|
-
for (let i2 = 0; i2 < entKeys.length; i2++) {
|
|
898
|
-
const ent = entKeys[i2];
|
|
899
|
-
this.lastEntities[ent] = {
|
|
900
|
-
regex: new RegExp("&" + ent + ";", "g"),
|
|
901
|
-
val: externalEntities[ent]
|
|
902
|
-
};
|
|
903
|
-
}
|
|
904
|
-
}
|
|
905
|
-
_24WEKBY3_cjs.__name(addExternalEntities, "addExternalEntities");
|
|
906
|
-
function parseTextData(val, tagName, jPath, dontTrim, hasAttributes, isLeafNode, escapeEntities) {
|
|
907
|
-
if (val !== void 0) {
|
|
908
|
-
if (this.options.trimValues && !dontTrim) {
|
|
909
|
-
val = val.trim();
|
|
910
|
-
}
|
|
911
|
-
if (val.length > 0) {
|
|
912
|
-
if (!escapeEntities) val = this.replaceEntitiesValue(val);
|
|
913
|
-
const newval = this.options.tagValueProcessor(tagName, val, jPath, hasAttributes, isLeafNode);
|
|
914
|
-
if (newval === null || newval === void 0) {
|
|
915
|
-
return val;
|
|
916
|
-
} else if (typeof newval !== typeof val || newval !== val) {
|
|
917
|
-
return newval;
|
|
918
|
-
} else if (this.options.trimValues) {
|
|
919
|
-
return parseValue(val, this.options.parseTagValue, this.options.numberParseOptions);
|
|
920
|
-
} else {
|
|
921
|
-
const trimmedVal = val.trim();
|
|
922
|
-
if (trimmedVal === val) {
|
|
923
|
-
return parseValue(val, this.options.parseTagValue, this.options.numberParseOptions);
|
|
924
|
-
} else {
|
|
925
|
-
return val;
|
|
926
|
-
}
|
|
927
|
-
}
|
|
928
|
-
}
|
|
929
|
-
}
|
|
930
|
-
}
|
|
931
|
-
_24WEKBY3_cjs.__name(parseTextData, "parseTextData");
|
|
932
|
-
function resolveNameSpace(tagname) {
|
|
933
|
-
if (this.options.removeNSPrefix) {
|
|
934
|
-
const tags = tagname.split(":");
|
|
935
|
-
const prefix = tagname.charAt(0) === "/" ? "/" : "";
|
|
936
|
-
if (tags[0] === "xmlns") {
|
|
937
|
-
return "";
|
|
938
|
-
}
|
|
939
|
-
if (tags.length === 2) {
|
|
940
|
-
tagname = prefix + tags[1];
|
|
941
|
-
}
|
|
942
|
-
}
|
|
943
|
-
return tagname;
|
|
944
|
-
}
|
|
945
|
-
_24WEKBY3_cjs.__name(resolveNameSpace, "resolveNameSpace");
|
|
946
|
-
var attrsRegx = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
|
|
947
|
-
function buildAttributesMap(attrStr, jPath, tagName) {
|
|
948
|
-
if (this.options.ignoreAttributes !== true && typeof attrStr === "string") {
|
|
949
|
-
const matches = getAllMatches(attrStr, attrsRegx);
|
|
950
|
-
const len = matches.length;
|
|
951
|
-
const attrs = {};
|
|
952
|
-
for (let i2 = 0; i2 < len; i2++) {
|
|
953
|
-
const attrName = this.resolveNameSpace(matches[i2][1]);
|
|
954
|
-
if (this.ignoreAttributesFn(attrName, jPath)) {
|
|
955
|
-
continue;
|
|
956
|
-
}
|
|
957
|
-
let oldVal = matches[i2][4];
|
|
958
|
-
let aName = this.options.attributeNamePrefix + attrName;
|
|
959
|
-
if (attrName.length) {
|
|
960
|
-
if (this.options.transformAttributeName) {
|
|
961
|
-
aName = this.options.transformAttributeName(aName);
|
|
962
|
-
}
|
|
963
|
-
if (aName === "__proto__") aName = "#__proto__";
|
|
964
|
-
if (oldVal !== void 0) {
|
|
965
|
-
if (this.options.trimValues) {
|
|
966
|
-
oldVal = oldVal.trim();
|
|
967
|
-
}
|
|
968
|
-
oldVal = this.replaceEntitiesValue(oldVal);
|
|
969
|
-
const newVal = this.options.attributeValueProcessor(attrName, oldVal, jPath);
|
|
970
|
-
if (newVal === null || newVal === void 0) {
|
|
971
|
-
attrs[aName] = oldVal;
|
|
972
|
-
} else if (typeof newVal !== typeof oldVal || newVal !== oldVal) {
|
|
973
|
-
attrs[aName] = newVal;
|
|
974
|
-
} else {
|
|
975
|
-
attrs[aName] = parseValue(oldVal, this.options.parseAttributeValue, this.options.numberParseOptions);
|
|
976
|
-
}
|
|
977
|
-
} else if (this.options.allowBooleanAttributes) {
|
|
978
|
-
attrs[aName] = true;
|
|
979
|
-
}
|
|
980
|
-
}
|
|
981
|
-
}
|
|
982
|
-
if (!Object.keys(attrs).length) {
|
|
983
|
-
return;
|
|
984
|
-
}
|
|
985
|
-
if (this.options.attributesGroupName) {
|
|
986
|
-
const attrCollection = {};
|
|
987
|
-
attrCollection[this.options.attributesGroupName] = attrs;
|
|
988
|
-
return attrCollection;
|
|
989
|
-
}
|
|
990
|
-
return attrs;
|
|
991
|
-
}
|
|
992
|
-
}
|
|
993
|
-
_24WEKBY3_cjs.__name(buildAttributesMap, "buildAttributesMap");
|
|
994
|
-
var parseXml = /* @__PURE__ */ _24WEKBY3_cjs.__name(function(xmlData) {
|
|
995
|
-
xmlData = xmlData.replace(/\r\n?/g, "\n");
|
|
996
|
-
const xmlObj = new XmlNode("!xml");
|
|
997
|
-
let currentNode = xmlObj;
|
|
998
|
-
let textData = "";
|
|
999
|
-
let jPath = "";
|
|
1000
|
-
for (let i2 = 0; i2 < xmlData.length; i2++) {
|
|
1001
|
-
const ch = xmlData[i2];
|
|
1002
|
-
if (ch === "<") {
|
|
1003
|
-
if (xmlData[i2 + 1] === "/") {
|
|
1004
|
-
const closeIndex = findClosingIndex(xmlData, ">", i2, "Closing Tag is not closed.");
|
|
1005
|
-
let tagName = xmlData.substring(i2 + 2, closeIndex).trim();
|
|
1006
|
-
if (this.options.removeNSPrefix) {
|
|
1007
|
-
const colonIndex = tagName.indexOf(":");
|
|
1008
|
-
if (colonIndex !== -1) {
|
|
1009
|
-
tagName = tagName.substr(colonIndex + 1);
|
|
1010
|
-
}
|
|
1011
|
-
}
|
|
1012
|
-
if (this.options.transformTagName) {
|
|
1013
|
-
tagName = this.options.transformTagName(tagName);
|
|
1014
|
-
}
|
|
1015
|
-
if (currentNode) {
|
|
1016
|
-
textData = this.saveTextToParentTag(textData, currentNode, jPath);
|
|
1017
|
-
}
|
|
1018
|
-
const lastTagName = jPath.substring(jPath.lastIndexOf(".") + 1);
|
|
1019
|
-
if (tagName && this.options.unpairedTags.indexOf(tagName) !== -1) {
|
|
1020
|
-
throw new Error(`Unpaired tag can not be used as closing tag: </${tagName}>`);
|
|
1021
|
-
}
|
|
1022
|
-
let propIndex = 0;
|
|
1023
|
-
if (lastTagName && this.options.unpairedTags.indexOf(lastTagName) !== -1) {
|
|
1024
|
-
propIndex = jPath.lastIndexOf(".", jPath.lastIndexOf(".") - 1);
|
|
1025
|
-
this.tagsNodeStack.pop();
|
|
1026
|
-
} else {
|
|
1027
|
-
propIndex = jPath.lastIndexOf(".");
|
|
1028
|
-
}
|
|
1029
|
-
jPath = jPath.substring(0, propIndex);
|
|
1030
|
-
currentNode = this.tagsNodeStack.pop();
|
|
1031
|
-
textData = "";
|
|
1032
|
-
i2 = closeIndex;
|
|
1033
|
-
} else if (xmlData[i2 + 1] === "?") {
|
|
1034
|
-
let tagData = readTagExp(xmlData, i2, false, "?>");
|
|
1035
|
-
if (!tagData) throw new Error("Pi Tag is not closed.");
|
|
1036
|
-
textData = this.saveTextToParentTag(textData, currentNode, jPath);
|
|
1037
|
-
if (this.options.ignoreDeclaration && tagData.tagName === "?xml" || this.options.ignorePiTags) ; else {
|
|
1038
|
-
const childNode = new XmlNode(tagData.tagName);
|
|
1039
|
-
childNode.add(this.options.textNodeName, "");
|
|
1040
|
-
if (tagData.tagName !== tagData.tagExp && tagData.attrExpPresent) {
|
|
1041
|
-
childNode[":@"] = this.buildAttributesMap(tagData.tagExp, jPath, tagData.tagName);
|
|
1042
|
-
}
|
|
1043
|
-
this.addChild(currentNode, childNode, jPath, i2);
|
|
1044
|
-
}
|
|
1045
|
-
i2 = tagData.closeIndex + 1;
|
|
1046
|
-
} else if (xmlData.substr(i2 + 1, 3) === "!--") {
|
|
1047
|
-
const endIndex = findClosingIndex(xmlData, "-->", i2 + 4, "Comment is not closed.");
|
|
1048
|
-
if (this.options.commentPropName) {
|
|
1049
|
-
const comment = xmlData.substring(i2 + 4, endIndex - 2);
|
|
1050
|
-
textData = this.saveTextToParentTag(textData, currentNode, jPath);
|
|
1051
|
-
currentNode.add(this.options.commentPropName, [
|
|
1052
|
-
{
|
|
1053
|
-
[this.options.textNodeName]: comment
|
|
1054
|
-
}
|
|
1055
|
-
]);
|
|
1056
|
-
}
|
|
1057
|
-
i2 = endIndex;
|
|
1058
|
-
} else if (xmlData.substr(i2 + 1, 2) === "!D") {
|
|
1059
|
-
const result = readDocType(xmlData, i2);
|
|
1060
|
-
this.docTypeEntities = result.entities;
|
|
1061
|
-
i2 = result.i;
|
|
1062
|
-
} else if (xmlData.substr(i2 + 1, 2) === "![") {
|
|
1063
|
-
const closeIndex = findClosingIndex(xmlData, "]]>", i2, "CDATA is not closed.") - 2;
|
|
1064
|
-
const tagExp = xmlData.substring(i2 + 9, closeIndex);
|
|
1065
|
-
textData = this.saveTextToParentTag(textData, currentNode, jPath);
|
|
1066
|
-
let val = this.parseTextData(tagExp, currentNode.tagname, jPath, true, false, true, true);
|
|
1067
|
-
if (val == void 0) val = "";
|
|
1068
|
-
if (this.options.cdataPropName) {
|
|
1069
|
-
currentNode.add(this.options.cdataPropName, [
|
|
1070
|
-
{
|
|
1071
|
-
[this.options.textNodeName]: tagExp
|
|
1072
|
-
}
|
|
1073
|
-
]);
|
|
1074
|
-
} else {
|
|
1075
|
-
currentNode.add(this.options.textNodeName, val);
|
|
1076
|
-
}
|
|
1077
|
-
i2 = closeIndex + 2;
|
|
1078
|
-
} else {
|
|
1079
|
-
let result = readTagExp(xmlData, i2, this.options.removeNSPrefix);
|
|
1080
|
-
let tagName = result.tagName;
|
|
1081
|
-
const rawTagName = result.rawTagName;
|
|
1082
|
-
let tagExp = result.tagExp;
|
|
1083
|
-
let attrExpPresent = result.attrExpPresent;
|
|
1084
|
-
let closeIndex = result.closeIndex;
|
|
1085
|
-
if (this.options.transformTagName) {
|
|
1086
|
-
tagName = this.options.transformTagName(tagName);
|
|
1087
|
-
}
|
|
1088
|
-
if (currentNode && textData) {
|
|
1089
|
-
if (currentNode.tagname !== "!xml") {
|
|
1090
|
-
textData = this.saveTextToParentTag(textData, currentNode, jPath, false);
|
|
1091
|
-
}
|
|
1092
|
-
}
|
|
1093
|
-
const lastTag = currentNode;
|
|
1094
|
-
if (lastTag && this.options.unpairedTags.indexOf(lastTag.tagname) !== -1) {
|
|
1095
|
-
currentNode = this.tagsNodeStack.pop();
|
|
1096
|
-
jPath = jPath.substring(0, jPath.lastIndexOf("."));
|
|
1097
|
-
}
|
|
1098
|
-
if (tagName !== xmlObj.tagname) {
|
|
1099
|
-
jPath += jPath ? "." + tagName : tagName;
|
|
1100
|
-
}
|
|
1101
|
-
const startIndex = i2;
|
|
1102
|
-
if (this.isItStopNode(this.options.stopNodes, jPath, tagName)) {
|
|
1103
|
-
let tagContent = "";
|
|
1104
|
-
if (tagExp.length > 0 && tagExp.lastIndexOf("/") === tagExp.length - 1) {
|
|
1105
|
-
if (tagName[tagName.length - 1] === "/") {
|
|
1106
|
-
tagName = tagName.substr(0, tagName.length - 1);
|
|
1107
|
-
jPath = jPath.substr(0, jPath.length - 1);
|
|
1108
|
-
tagExp = tagName;
|
|
1109
|
-
} else {
|
|
1110
|
-
tagExp = tagExp.substr(0, tagExp.length - 1);
|
|
1111
|
-
}
|
|
1112
|
-
i2 = result.closeIndex;
|
|
1113
|
-
} else if (this.options.unpairedTags.indexOf(tagName) !== -1) {
|
|
1114
|
-
i2 = result.closeIndex;
|
|
1115
|
-
} else {
|
|
1116
|
-
const result2 = this.readStopNodeData(xmlData, rawTagName, closeIndex + 1);
|
|
1117
|
-
if (!result2) throw new Error(`Unexpected end of ${rawTagName}`);
|
|
1118
|
-
i2 = result2.i;
|
|
1119
|
-
tagContent = result2.tagContent;
|
|
1120
|
-
}
|
|
1121
|
-
const childNode = new XmlNode(tagName);
|
|
1122
|
-
if (tagName !== tagExp && attrExpPresent) {
|
|
1123
|
-
childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName);
|
|
1124
|
-
}
|
|
1125
|
-
if (tagContent) {
|
|
1126
|
-
tagContent = this.parseTextData(tagContent, tagName, jPath, true, attrExpPresent, true, true);
|
|
1127
|
-
}
|
|
1128
|
-
jPath = jPath.substr(0, jPath.lastIndexOf("."));
|
|
1129
|
-
childNode.add(this.options.textNodeName, tagContent);
|
|
1130
|
-
this.addChild(currentNode, childNode, jPath, startIndex);
|
|
1131
|
-
} else {
|
|
1132
|
-
if (tagExp.length > 0 && tagExp.lastIndexOf("/") === tagExp.length - 1) {
|
|
1133
|
-
if (tagName[tagName.length - 1] === "/") {
|
|
1134
|
-
tagName = tagName.substr(0, tagName.length - 1);
|
|
1135
|
-
jPath = jPath.substr(0, jPath.length - 1);
|
|
1136
|
-
tagExp = tagName;
|
|
1137
|
-
} else {
|
|
1138
|
-
tagExp = tagExp.substr(0, tagExp.length - 1);
|
|
1139
|
-
}
|
|
1140
|
-
if (this.options.transformTagName) {
|
|
1141
|
-
tagName = this.options.transformTagName(tagName);
|
|
1142
|
-
}
|
|
1143
|
-
const childNode = new XmlNode(tagName);
|
|
1144
|
-
if (tagName !== tagExp && attrExpPresent) {
|
|
1145
|
-
childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName);
|
|
1146
|
-
}
|
|
1147
|
-
this.addChild(currentNode, childNode, jPath, startIndex);
|
|
1148
|
-
jPath = jPath.substr(0, jPath.lastIndexOf("."));
|
|
1149
|
-
} else {
|
|
1150
|
-
const childNode = new XmlNode(tagName);
|
|
1151
|
-
this.tagsNodeStack.push(currentNode);
|
|
1152
|
-
if (tagName !== tagExp && attrExpPresent) {
|
|
1153
|
-
childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName);
|
|
1154
|
-
}
|
|
1155
|
-
this.addChild(currentNode, childNode, jPath, startIndex);
|
|
1156
|
-
currentNode = childNode;
|
|
1157
|
-
}
|
|
1158
|
-
textData = "";
|
|
1159
|
-
i2 = closeIndex;
|
|
1160
|
-
}
|
|
1161
|
-
}
|
|
1162
|
-
} else {
|
|
1163
|
-
textData += xmlData[i2];
|
|
1164
|
-
}
|
|
1165
|
-
}
|
|
1166
|
-
return xmlObj.child;
|
|
1167
|
-
}, "parseXml");
|
|
1168
|
-
function addChild(currentNode, childNode, jPath, startIndex) {
|
|
1169
|
-
if (!this.options.captureMetaData) startIndex = void 0;
|
|
1170
|
-
const result = this.options.updateTag(childNode.tagname, jPath, childNode[":@"]);
|
|
1171
|
-
if (result === false) ; else if (typeof result === "string") {
|
|
1172
|
-
childNode.tagname = result;
|
|
1173
|
-
currentNode.addChild(childNode, startIndex);
|
|
1174
|
-
} else {
|
|
1175
|
-
currentNode.addChild(childNode, startIndex);
|
|
1176
|
-
}
|
|
1177
|
-
}
|
|
1178
|
-
_24WEKBY3_cjs.__name(addChild, "addChild");
|
|
1179
|
-
var replaceEntitiesValue = /* @__PURE__ */ _24WEKBY3_cjs.__name(function(val) {
|
|
1180
|
-
if (this.options.processEntities) {
|
|
1181
|
-
for (let entityName in this.docTypeEntities) {
|
|
1182
|
-
const entity = this.docTypeEntities[entityName];
|
|
1183
|
-
val = val.replace(entity.regx, entity.val);
|
|
1184
|
-
}
|
|
1185
|
-
for (let entityName in this.lastEntities) {
|
|
1186
|
-
const entity = this.lastEntities[entityName];
|
|
1187
|
-
val = val.replace(entity.regex, entity.val);
|
|
1188
|
-
}
|
|
1189
|
-
if (this.options.htmlEntities) {
|
|
1190
|
-
for (let entityName in this.htmlEntities) {
|
|
1191
|
-
const entity = this.htmlEntities[entityName];
|
|
1192
|
-
val = val.replace(entity.regex, entity.val);
|
|
1193
|
-
}
|
|
1194
|
-
}
|
|
1195
|
-
val = val.replace(this.ampEntity.regex, this.ampEntity.val);
|
|
1196
|
-
}
|
|
1197
|
-
return val;
|
|
1198
|
-
}, "replaceEntitiesValue");
|
|
1199
|
-
function saveTextToParentTag(textData, currentNode, jPath, isLeafNode) {
|
|
1200
|
-
if (textData) {
|
|
1201
|
-
if (isLeafNode === void 0) isLeafNode = currentNode.child.length === 0;
|
|
1202
|
-
textData = this.parseTextData(textData, currentNode.tagname, jPath, false, currentNode[":@"] ? Object.keys(currentNode[":@"]).length !== 0 : false, isLeafNode);
|
|
1203
|
-
if (textData !== void 0 && textData !== "") currentNode.add(this.options.textNodeName, textData);
|
|
1204
|
-
textData = "";
|
|
1205
|
-
}
|
|
1206
|
-
return textData;
|
|
1207
|
-
}
|
|
1208
|
-
_24WEKBY3_cjs.__name(saveTextToParentTag, "saveTextToParentTag");
|
|
1209
|
-
function isItStopNode(stopNodes, jPath, currentTagName) {
|
|
1210
|
-
const allNodesExp = "*." + currentTagName;
|
|
1211
|
-
for (const stopNodePath in stopNodes) {
|
|
1212
|
-
const stopNodeExp = stopNodes[stopNodePath];
|
|
1213
|
-
if (allNodesExp === stopNodeExp || jPath === stopNodeExp) return true;
|
|
1214
|
-
}
|
|
1215
|
-
return false;
|
|
1216
|
-
}
|
|
1217
|
-
_24WEKBY3_cjs.__name(isItStopNode, "isItStopNode");
|
|
1218
|
-
function tagExpWithClosingIndex(xmlData, i2, closingChar = ">") {
|
|
1219
|
-
let attrBoundary;
|
|
1220
|
-
let tagExp = "";
|
|
1221
|
-
for (let index = i2; index < xmlData.length; index++) {
|
|
1222
|
-
let ch = xmlData[index];
|
|
1223
|
-
if (attrBoundary) {
|
|
1224
|
-
if (ch === attrBoundary) attrBoundary = "";
|
|
1225
|
-
} else if (ch === '"' || ch === "'") {
|
|
1226
|
-
attrBoundary = ch;
|
|
1227
|
-
} else if (ch === closingChar[0]) {
|
|
1228
|
-
if (closingChar[1]) {
|
|
1229
|
-
if (xmlData[index + 1] === closingChar[1]) {
|
|
1230
|
-
return {
|
|
1231
|
-
data: tagExp,
|
|
1232
|
-
index
|
|
1233
|
-
};
|
|
1234
|
-
}
|
|
1235
|
-
} else {
|
|
1236
|
-
return {
|
|
1237
|
-
data: tagExp,
|
|
1238
|
-
index
|
|
1239
|
-
};
|
|
1240
|
-
}
|
|
1241
|
-
} else if (ch === " ") {
|
|
1242
|
-
ch = " ";
|
|
1243
|
-
}
|
|
1244
|
-
tagExp += ch;
|
|
1245
|
-
}
|
|
1246
|
-
}
|
|
1247
|
-
_24WEKBY3_cjs.__name(tagExpWithClosingIndex, "tagExpWithClosingIndex");
|
|
1248
|
-
function findClosingIndex(xmlData, str, i2, errMsg) {
|
|
1249
|
-
const closingIndex = xmlData.indexOf(str, i2);
|
|
1250
|
-
if (closingIndex === -1) {
|
|
1251
|
-
throw new Error(errMsg);
|
|
1252
|
-
} else {
|
|
1253
|
-
return closingIndex + str.length - 1;
|
|
1254
|
-
}
|
|
1255
|
-
}
|
|
1256
|
-
_24WEKBY3_cjs.__name(findClosingIndex, "findClosingIndex");
|
|
1257
|
-
function readTagExp(xmlData, i2, removeNSPrefix, closingChar = ">") {
|
|
1258
|
-
const result = tagExpWithClosingIndex(xmlData, i2 + 1, closingChar);
|
|
1259
|
-
if (!result) return;
|
|
1260
|
-
let tagExp = result.data;
|
|
1261
|
-
const closeIndex = result.index;
|
|
1262
|
-
const separatorIndex = tagExp.search(/\s/);
|
|
1263
|
-
let tagName = tagExp;
|
|
1264
|
-
let attrExpPresent = true;
|
|
1265
|
-
if (separatorIndex !== -1) {
|
|
1266
|
-
tagName = tagExp.substring(0, separatorIndex);
|
|
1267
|
-
tagExp = tagExp.substring(separatorIndex + 1).trimStart();
|
|
1268
|
-
}
|
|
1269
|
-
const rawTagName = tagName;
|
|
1270
|
-
if (removeNSPrefix) {
|
|
1271
|
-
const colonIndex = tagName.indexOf(":");
|
|
1272
|
-
if (colonIndex !== -1) {
|
|
1273
|
-
tagName = tagName.substr(colonIndex + 1);
|
|
1274
|
-
attrExpPresent = tagName !== result.data.substr(colonIndex + 1);
|
|
1275
|
-
}
|
|
1276
|
-
}
|
|
1277
|
-
return {
|
|
1278
|
-
tagName,
|
|
1279
|
-
tagExp,
|
|
1280
|
-
closeIndex,
|
|
1281
|
-
attrExpPresent,
|
|
1282
|
-
rawTagName
|
|
1283
|
-
};
|
|
1284
|
-
}
|
|
1285
|
-
_24WEKBY3_cjs.__name(readTagExp, "readTagExp");
|
|
1286
|
-
function readStopNodeData(xmlData, tagName, i2) {
|
|
1287
|
-
const startIndex = i2;
|
|
1288
|
-
let openTagCount = 1;
|
|
1289
|
-
for (; i2 < xmlData.length; i2++) {
|
|
1290
|
-
if (xmlData[i2] === "<") {
|
|
1291
|
-
if (xmlData[i2 + 1] === "/") {
|
|
1292
|
-
const closeIndex = findClosingIndex(xmlData, ">", i2, `${tagName} is not closed`);
|
|
1293
|
-
let closeTagName = xmlData.substring(i2 + 2, closeIndex).trim();
|
|
1294
|
-
if (closeTagName === tagName) {
|
|
1295
|
-
openTagCount--;
|
|
1296
|
-
if (openTagCount === 0) {
|
|
1297
|
-
return {
|
|
1298
|
-
tagContent: xmlData.substring(startIndex, i2),
|
|
1299
|
-
i: closeIndex
|
|
1300
|
-
};
|
|
1301
|
-
}
|
|
1302
|
-
}
|
|
1303
|
-
i2 = closeIndex;
|
|
1304
|
-
} else if (xmlData[i2 + 1] === "?") {
|
|
1305
|
-
const closeIndex = findClosingIndex(xmlData, "?>", i2 + 1, "StopNode is not closed.");
|
|
1306
|
-
i2 = closeIndex;
|
|
1307
|
-
} else if (xmlData.substr(i2 + 1, 3) === "!--") {
|
|
1308
|
-
const closeIndex = findClosingIndex(xmlData, "-->", i2 + 3, "StopNode is not closed.");
|
|
1309
|
-
i2 = closeIndex;
|
|
1310
|
-
} else if (xmlData.substr(i2 + 1, 2) === "![") {
|
|
1311
|
-
const closeIndex = findClosingIndex(xmlData, "]]>", i2, "StopNode is not closed.") - 2;
|
|
1312
|
-
i2 = closeIndex;
|
|
1313
|
-
} else {
|
|
1314
|
-
const tagData = readTagExp(xmlData, i2, ">");
|
|
1315
|
-
if (tagData) {
|
|
1316
|
-
const openTagName = tagData && tagData.tagName;
|
|
1317
|
-
if (openTagName === tagName && tagData.tagExp[tagData.tagExp.length - 1] !== "/") {
|
|
1318
|
-
openTagCount++;
|
|
1319
|
-
}
|
|
1320
|
-
i2 = tagData.closeIndex;
|
|
1321
|
-
}
|
|
1322
|
-
}
|
|
1323
|
-
}
|
|
1324
|
-
}
|
|
1325
|
-
}
|
|
1326
|
-
_24WEKBY3_cjs.__name(readStopNodeData, "readStopNodeData");
|
|
1327
|
-
function parseValue(val, shouldParse, options) {
|
|
1328
|
-
if (shouldParse && typeof val === "string") {
|
|
1329
|
-
const newval = val.trim();
|
|
1330
|
-
if (newval === "true") return true;
|
|
1331
|
-
else if (newval === "false") return false;
|
|
1332
|
-
else return toNumber(val, options);
|
|
1333
|
-
} else {
|
|
1334
|
-
if (isExist(val)) {
|
|
1335
|
-
return val;
|
|
1336
|
-
} else {
|
|
1337
|
-
return "";
|
|
1338
|
-
}
|
|
1339
|
-
}
|
|
1340
|
-
}
|
|
1341
|
-
_24WEKBY3_cjs.__name(parseValue, "parseValue");
|
|
1342
|
-
|
|
1343
|
-
// ../../node_modules/.pnpm/fast-xml-parser@5.2.5/node_modules/fast-xml-parser/src/xmlparser/node2json.js
|
|
1344
|
-
_24WEKBY3_cjs.init_cjs_shims();
|
|
1345
|
-
var METADATA_SYMBOL2 = XmlNode.getMetaDataSymbol();
|
|
1346
|
-
function prettify(node, options) {
|
|
1347
|
-
return compress(node, options);
|
|
1348
|
-
}
|
|
1349
|
-
_24WEKBY3_cjs.__name(prettify, "prettify");
|
|
1350
|
-
function compress(arr, options, jPath) {
|
|
1351
|
-
let text;
|
|
1352
|
-
const compressedObj = {};
|
|
1353
|
-
for (let i2 = 0; i2 < arr.length; i2++) {
|
|
1354
|
-
const tagObj = arr[i2];
|
|
1355
|
-
const property = propName(tagObj);
|
|
1356
|
-
let newJpath = "";
|
|
1357
|
-
if (jPath === void 0) newJpath = property;
|
|
1358
|
-
else newJpath = jPath + "." + property;
|
|
1359
|
-
if (property === options.textNodeName) {
|
|
1360
|
-
if (text === void 0) text = tagObj[property];
|
|
1361
|
-
else text += "" + tagObj[property];
|
|
1362
|
-
} else if (property === void 0) {
|
|
1363
|
-
continue;
|
|
1364
|
-
} else if (tagObj[property]) {
|
|
1365
|
-
let val = compress(tagObj[property], options, newJpath);
|
|
1366
|
-
const isLeaf = isLeafTag(val, options);
|
|
1367
|
-
if (tagObj[METADATA_SYMBOL2] !== void 0) {
|
|
1368
|
-
val[METADATA_SYMBOL2] = tagObj[METADATA_SYMBOL2];
|
|
1369
|
-
}
|
|
1370
|
-
if (tagObj[":@"]) {
|
|
1371
|
-
assignAttributes(val, tagObj[":@"], newJpath, options);
|
|
1372
|
-
} else if (Object.keys(val).length === 1 && val[options.textNodeName] !== void 0 && !options.alwaysCreateTextNode) {
|
|
1373
|
-
val = val[options.textNodeName];
|
|
1374
|
-
} else if (Object.keys(val).length === 0) {
|
|
1375
|
-
if (options.alwaysCreateTextNode) val[options.textNodeName] = "";
|
|
1376
|
-
else val = "";
|
|
1377
|
-
}
|
|
1378
|
-
if (compressedObj[property] !== void 0 && compressedObj.hasOwnProperty(property)) {
|
|
1379
|
-
if (!Array.isArray(compressedObj[property])) {
|
|
1380
|
-
compressedObj[property] = [
|
|
1381
|
-
compressedObj[property]
|
|
1382
|
-
];
|
|
1383
|
-
}
|
|
1384
|
-
compressedObj[property].push(val);
|
|
1385
|
-
} else {
|
|
1386
|
-
if (options.isArray(property, newJpath, isLeaf)) {
|
|
1387
|
-
compressedObj[property] = [
|
|
1388
|
-
val
|
|
1389
|
-
];
|
|
1390
|
-
} else {
|
|
1391
|
-
compressedObj[property] = val;
|
|
1392
|
-
}
|
|
1393
|
-
}
|
|
1394
|
-
}
|
|
1395
|
-
}
|
|
1396
|
-
if (typeof text === "string") {
|
|
1397
|
-
if (text.length > 0) compressedObj[options.textNodeName] = text;
|
|
1398
|
-
} else if (text !== void 0) compressedObj[options.textNodeName] = text;
|
|
1399
|
-
return compressedObj;
|
|
1400
|
-
}
|
|
1401
|
-
_24WEKBY3_cjs.__name(compress, "compress");
|
|
1402
|
-
function propName(obj) {
|
|
1403
|
-
const keys = Object.keys(obj);
|
|
1404
|
-
for (let i2 = 0; i2 < keys.length; i2++) {
|
|
1405
|
-
const key = keys[i2];
|
|
1406
|
-
if (key !== ":@") return key;
|
|
1407
|
-
}
|
|
1408
|
-
}
|
|
1409
|
-
_24WEKBY3_cjs.__name(propName, "propName");
|
|
1410
|
-
function assignAttributes(obj, attrMap, jpath, options) {
|
|
1411
|
-
if (attrMap) {
|
|
1412
|
-
const keys = Object.keys(attrMap);
|
|
1413
|
-
const len = keys.length;
|
|
1414
|
-
for (let i2 = 0; i2 < len; i2++) {
|
|
1415
|
-
const atrrName = keys[i2];
|
|
1416
|
-
if (options.isArray(atrrName, jpath + "." + atrrName, true, true)) {
|
|
1417
|
-
obj[atrrName] = [
|
|
1418
|
-
attrMap[atrrName]
|
|
1419
|
-
];
|
|
1420
|
-
} else {
|
|
1421
|
-
obj[atrrName] = attrMap[atrrName];
|
|
1422
|
-
}
|
|
1423
|
-
}
|
|
1424
|
-
}
|
|
1425
|
-
}
|
|
1426
|
-
_24WEKBY3_cjs.__name(assignAttributes, "assignAttributes");
|
|
1427
|
-
function isLeafTag(obj, options) {
|
|
1428
|
-
const { textNodeName } = options;
|
|
1429
|
-
const propCount = Object.keys(obj).length;
|
|
1430
|
-
if (propCount === 0) {
|
|
1431
|
-
return true;
|
|
1432
|
-
}
|
|
1433
|
-
if (propCount === 1 && (obj[textNodeName] || typeof obj[textNodeName] === "boolean" || obj[textNodeName] === 0)) {
|
|
1434
|
-
return true;
|
|
1435
|
-
}
|
|
1436
|
-
return false;
|
|
1437
|
-
}
|
|
1438
|
-
_24WEKBY3_cjs.__name(isLeafTag, "isLeafTag");
|
|
1439
|
-
|
|
1440
|
-
// ../../node_modules/.pnpm/fast-xml-parser@5.2.5/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js
|
|
1441
|
-
var XMLParser = class {
|
|
1442
|
-
static {
|
|
1443
|
-
_24WEKBY3_cjs.__name(this, "XMLParser");
|
|
1444
|
-
}
|
|
1445
|
-
constructor(options) {
|
|
1446
|
-
this.externalEntities = {};
|
|
1447
|
-
this.options = buildOptions(options);
|
|
1448
|
-
}
|
|
1449
|
-
/**
|
|
1450
|
-
* Parse XML dats to JS object
|
|
1451
|
-
* @param {string|Buffer} xmlData
|
|
1452
|
-
* @param {boolean|Object} validationOption
|
|
1453
|
-
*/
|
|
1454
|
-
parse(xmlData, validationOption) {
|
|
1455
|
-
if (typeof xmlData === "string") ; else if (xmlData.toString) {
|
|
1456
|
-
xmlData = xmlData.toString();
|
|
1457
|
-
} else {
|
|
1458
|
-
throw new Error("XML data is accepted in String or Bytes[] form.");
|
|
1459
|
-
}
|
|
1460
|
-
if (validationOption) {
|
|
1461
|
-
if (validationOption === true) validationOption = {};
|
|
1462
|
-
const result = validate(xmlData, validationOption);
|
|
1463
|
-
if (result !== true) {
|
|
1464
|
-
throw Error(`${result.err.msg}:${result.err.line}:${result.err.col}`);
|
|
1465
|
-
}
|
|
1466
|
-
}
|
|
1467
|
-
const orderedObjParser = new OrderedObjParser(this.options);
|
|
1468
|
-
orderedObjParser.addExternalEntities(this.externalEntities);
|
|
1469
|
-
const orderedResult = orderedObjParser.parseXml(xmlData);
|
|
1470
|
-
if (this.options.preserveOrder || orderedResult === void 0) return orderedResult;
|
|
1471
|
-
else return prettify(orderedResult, this.options);
|
|
1472
|
-
}
|
|
1473
|
-
/**
|
|
1474
|
-
* Add Entity which is not by default supported by this library
|
|
1475
|
-
* @param {string} key
|
|
1476
|
-
* @param {string} value
|
|
1477
|
-
*/
|
|
1478
|
-
addEntity(key, value) {
|
|
1479
|
-
if (value.indexOf("&") !== -1) {
|
|
1480
|
-
throw new Error("Entity value can't have '&'");
|
|
1481
|
-
} else if (key.indexOf("&") !== -1 || key.indexOf(";") !== -1) {
|
|
1482
|
-
throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");
|
|
1483
|
-
} else if (value === "&") {
|
|
1484
|
-
throw new Error("An entity with value '&' is not permitted");
|
|
1485
|
-
} else {
|
|
1486
|
-
this.externalEntities[key] = value;
|
|
1487
|
-
}
|
|
1488
|
-
}
|
|
1489
|
-
/**
|
|
1490
|
-
* Returns a Symbol that can be used to access the metadata
|
|
1491
|
-
* property on a node.
|
|
1492
|
-
*
|
|
1493
|
-
* If Symbol is not available in the environment, an ordinary property is used
|
|
1494
|
-
* and the name of the property is here returned.
|
|
1495
|
-
*
|
|
1496
|
-
* The XMLMetaData property is only present when `captureMetaData`
|
|
1497
|
-
* is true in the options.
|
|
1498
|
-
*/
|
|
1499
|
-
static getMetaDataSymbol() {
|
|
1500
|
-
return XmlNode.getMetaDataSymbol();
|
|
1501
|
-
}
|
|
1502
|
-
};
|
|
1503
|
-
|
|
1504
|
-
// ../../node_modules/.pnpm/@aws-sdk+core@3.879.0/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/parseXmlBody.js
|
|
1505
|
-
_24WEKBY3_cjs.init_cjs_shims();
|
|
1506
|
-
var parseXmlBody = /* @__PURE__ */ _24WEKBY3_cjs.__name((streamBody, context) => YHGTF22I_cjs.collectBodyString(streamBody, context).then((encoded) => {
|
|
1507
|
-
if (encoded.length) {
|
|
1508
|
-
const parser = new XMLParser({
|
|
1509
|
-
attributeNamePrefix: "",
|
|
1510
|
-
htmlEntities: true,
|
|
1511
|
-
ignoreAttributes: false,
|
|
1512
|
-
ignoreDeclaration: true,
|
|
1513
|
-
parseTagValue: false,
|
|
1514
|
-
trimValues: false,
|
|
1515
|
-
tagValueProcessor: /* @__PURE__ */ _24WEKBY3_cjs.__name((_2, val) => val.trim() === "" && val.includes("\n") ? "" : void 0, "tagValueProcessor")
|
|
1516
|
-
});
|
|
1517
|
-
parser.addEntity("#xD", "\r");
|
|
1518
|
-
parser.addEntity("#10", "\n");
|
|
1519
|
-
let parsedObj;
|
|
1520
|
-
try {
|
|
1521
|
-
parsedObj = parser.parse(encoded, true);
|
|
1522
|
-
} catch (e2) {
|
|
1523
|
-
if (e2 && typeof e2 === "object") {
|
|
1524
|
-
Object.defineProperty(e2, "$responseBodyText", {
|
|
1525
|
-
value: encoded
|
|
1526
|
-
});
|
|
1527
|
-
}
|
|
1528
|
-
throw e2;
|
|
1529
|
-
}
|
|
1530
|
-
const textNodeName = "#text";
|
|
1531
|
-
const key = Object.keys(parsedObj)[0];
|
|
1532
|
-
const parsedObjToReturn = parsedObj[key];
|
|
1533
|
-
if (parsedObjToReturn[textNodeName]) {
|
|
1534
|
-
parsedObjToReturn[key] = parsedObjToReturn[textNodeName];
|
|
1535
|
-
delete parsedObjToReturn[textNodeName];
|
|
1536
|
-
}
|
|
1537
|
-
return getValueFromTextNode(parsedObjToReturn);
|
|
1538
|
-
}
|
|
1539
|
-
return {};
|
|
1540
|
-
}), "parseXmlBody");
|
|
1541
|
-
var parseXmlErrorBody = /* @__PURE__ */ _24WEKBY3_cjs.__name(async (errorBody, context) => {
|
|
1542
|
-
const value = await parseXmlBody(errorBody, context);
|
|
1543
|
-
if (value.Error) {
|
|
1544
|
-
value.Error.message = value.Error.message ?? value.Error.Message;
|
|
1545
|
-
}
|
|
1546
|
-
return value;
|
|
1547
|
-
}, "parseXmlErrorBody");
|
|
1548
|
-
|
|
1549
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.879.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js
|
|
1550
|
-
_24WEKBY3_cjs.init_cjs_shims();
|
|
1551
|
-
var defaultSTSHttpAuthSchemeParametersProvider = /* @__PURE__ */ _24WEKBY3_cjs.__name(async (config, context, input) => {
|
|
1552
|
-
return {
|
|
1553
|
-
operation: YHGTF22I_cjs.getSmithyContext(context).operation,
|
|
1554
|
-
region: await YHGTF22I_cjs.normalizeProvider(config.region)() || (() => {
|
|
1555
|
-
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
1556
|
-
})()
|
|
1557
|
-
};
|
|
1558
|
-
}, "defaultSTSHttpAuthSchemeParametersProvider");
|
|
1559
|
-
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
1560
|
-
return {
|
|
1561
|
-
schemeId: "aws.auth#sigv4",
|
|
1562
|
-
signingProperties: {
|
|
1563
|
-
name: "sts",
|
|
1564
|
-
region: authParameters.region
|
|
1565
|
-
},
|
|
1566
|
-
propertiesExtractor: /* @__PURE__ */ _24WEKBY3_cjs.__name((config, context) => ({
|
|
1567
|
-
signingProperties: {
|
|
1568
|
-
config,
|
|
1569
|
-
context
|
|
1570
|
-
}
|
|
1571
|
-
}), "propertiesExtractor")
|
|
1572
|
-
};
|
|
1573
|
-
}
|
|
1574
|
-
_24WEKBY3_cjs.__name(createAwsAuthSigv4HttpAuthOption, "createAwsAuthSigv4HttpAuthOption");
|
|
1575
|
-
function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
1576
|
-
return {
|
|
1577
|
-
schemeId: "smithy.api#noAuth"
|
|
1578
|
-
};
|
|
1579
|
-
}
|
|
1580
|
-
_24WEKBY3_cjs.__name(createSmithyApiNoAuthHttpAuthOption, "createSmithyApiNoAuthHttpAuthOption");
|
|
1581
|
-
var defaultSTSHttpAuthSchemeProvider = /* @__PURE__ */ _24WEKBY3_cjs.__name((authParameters) => {
|
|
1582
|
-
const options = [];
|
|
1583
|
-
switch (authParameters.operation) {
|
|
1584
|
-
case "AssumeRoleWithWebIdentity": {
|
|
1585
|
-
options.push(createSmithyApiNoAuthHttpAuthOption());
|
|
1586
|
-
break;
|
|
1587
|
-
}
|
|
1588
|
-
default: {
|
|
1589
|
-
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
1590
|
-
}
|
|
1591
|
-
}
|
|
1592
|
-
return options;
|
|
1593
|
-
}, "defaultSTSHttpAuthSchemeProvider");
|
|
1594
|
-
var resolveStsAuthConfig = /* @__PURE__ */ _24WEKBY3_cjs.__name((input) => Object.assign(input, {
|
|
1595
|
-
stsClientCtor: STSClient
|
|
1596
|
-
}), "resolveStsAuthConfig");
|
|
1597
|
-
var resolveHttpAuthSchemeConfig = /* @__PURE__ */ _24WEKBY3_cjs.__name((config) => {
|
|
1598
|
-
const config_0 = resolveStsAuthConfig(config);
|
|
1599
|
-
const config_1 = YHGTF22I_cjs.resolveAwsSdkSigV4Config(config_0);
|
|
1600
|
-
return Object.assign(config_1, {
|
|
1601
|
-
authSchemePreference: YHGTF22I_cjs.normalizeProvider(config.authSchemePreference ?? [])
|
|
1602
|
-
});
|
|
1603
|
-
}, "resolveHttpAuthSchemeConfig");
|
|
1604
|
-
|
|
1605
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.879.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/EndpointParameters.js
|
|
1606
|
-
_24WEKBY3_cjs.init_cjs_shims();
|
|
1607
|
-
var resolveClientEndpointParameters = /* @__PURE__ */ _24WEKBY3_cjs.__name((options) => {
|
|
1608
|
-
return Object.assign(options, {
|
|
1609
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
1610
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
1611
|
-
useGlobalEndpoint: options.useGlobalEndpoint ?? false,
|
|
1612
|
-
defaultSigningName: "sts"
|
|
1613
|
-
});
|
|
1614
|
-
}, "resolveClientEndpointParameters");
|
|
1615
|
-
var commonParams = {
|
|
1616
|
-
UseGlobalEndpoint: {
|
|
1617
|
-
type: "builtInParams",
|
|
1618
|
-
name: "useGlobalEndpoint"
|
|
1619
|
-
},
|
|
1620
|
-
UseFIPS: {
|
|
1621
|
-
type: "builtInParams",
|
|
1622
|
-
name: "useFipsEndpoint"
|
|
1623
|
-
},
|
|
1624
|
-
Endpoint: {
|
|
1625
|
-
type: "builtInParams",
|
|
1626
|
-
name: "endpoint"
|
|
1627
|
-
},
|
|
1628
|
-
Region: {
|
|
1629
|
-
type: "builtInParams",
|
|
1630
|
-
name: "region"
|
|
1631
|
-
},
|
|
1632
|
-
UseDualStack: {
|
|
1633
|
-
type: "builtInParams",
|
|
1634
|
-
name: "useDualstackEndpoint"
|
|
1635
|
-
}
|
|
1636
|
-
};
|
|
1637
|
-
|
|
1638
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.879.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js
|
|
1639
|
-
_24WEKBY3_cjs.init_cjs_shims();
|
|
1640
|
-
|
|
1641
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.879.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js
|
|
1642
|
-
_24WEKBY3_cjs.init_cjs_shims();
|
|
1643
|
-
|
|
1644
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.879.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/endpointResolver.js
|
|
1645
|
-
_24WEKBY3_cjs.init_cjs_shims();
|
|
1646
|
-
|
|
1647
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.879.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/ruleset.js
|
|
1648
|
-
_24WEKBY3_cjs.init_cjs_shims();
|
|
1649
|
-
var F = "required";
|
|
1650
|
-
var G = "type";
|
|
1651
|
-
var H = "fn";
|
|
1652
|
-
var I = "argv";
|
|
1653
|
-
var J = "ref";
|
|
1654
|
-
var a = false;
|
|
1655
|
-
var b = true;
|
|
1656
|
-
var c = "booleanEquals";
|
|
1657
|
-
var d = "stringEquals";
|
|
1658
|
-
var e = "sigv4";
|
|
1659
|
-
var f = "sts";
|
|
1660
|
-
var g = "us-east-1";
|
|
1661
|
-
var h = "endpoint";
|
|
1662
|
-
var i = "https://sts.{Region}.{PartitionResult#dnsSuffix}";
|
|
1663
|
-
var j = "tree";
|
|
1664
|
-
var k = "error";
|
|
1665
|
-
var l = "getAttr";
|
|
1666
|
-
var m = {
|
|
1667
|
-
[F]: false,
|
|
1668
|
-
[G]: "String"
|
|
1669
|
-
};
|
|
1670
|
-
var n = {
|
|
1671
|
-
[F]: true,
|
|
1672
|
-
"default": false,
|
|
1673
|
-
[G]: "Boolean"
|
|
1674
|
-
};
|
|
1675
|
-
var o = {
|
|
1676
|
-
[J]: "Endpoint"
|
|
1677
|
-
};
|
|
1678
|
-
var p = {
|
|
1679
|
-
[H]: "isSet",
|
|
1680
|
-
[I]: [
|
|
1681
|
-
{
|
|
1682
|
-
[J]: "Region"
|
|
1683
|
-
}
|
|
1684
|
-
]
|
|
1685
|
-
};
|
|
1686
|
-
var q = {
|
|
1687
|
-
[J]: "Region"
|
|
1688
|
-
};
|
|
1689
|
-
var r = {
|
|
1690
|
-
[H]: "aws.partition",
|
|
1691
|
-
[I]: [
|
|
1692
|
-
q
|
|
1693
|
-
],
|
|
1694
|
-
"assign": "PartitionResult"
|
|
1695
|
-
};
|
|
1696
|
-
var s = {
|
|
1697
|
-
[J]: "UseFIPS"
|
|
1698
|
-
};
|
|
1699
|
-
var t = {
|
|
1700
|
-
[J]: "UseDualStack"
|
|
1701
|
-
};
|
|
1702
|
-
var u = {
|
|
1703
|
-
"url": "https://sts.amazonaws.com",
|
|
1704
|
-
"properties": {
|
|
1705
|
-
"authSchemes": [
|
|
1706
|
-
{
|
|
1707
|
-
"name": e,
|
|
1708
|
-
"signingName": f,
|
|
1709
|
-
"signingRegion": g
|
|
1710
|
-
}
|
|
1711
|
-
]
|
|
1712
|
-
},
|
|
1713
|
-
"headers": {}
|
|
1714
|
-
};
|
|
1715
|
-
var v = {};
|
|
1716
|
-
var w = {
|
|
1717
|
-
"conditions": [
|
|
1718
|
-
{
|
|
1719
|
-
[H]: d,
|
|
1720
|
-
[I]: [
|
|
1721
|
-
q,
|
|
1722
|
-
"aws-global"
|
|
1723
|
-
]
|
|
1724
|
-
}
|
|
1725
|
-
],
|
|
1726
|
-
[h]: u,
|
|
1727
|
-
[G]: h
|
|
1728
|
-
};
|
|
1729
|
-
var x = {
|
|
1730
|
-
[H]: c,
|
|
1731
|
-
[I]: [
|
|
1732
|
-
s,
|
|
1733
|
-
true
|
|
1734
|
-
]
|
|
1735
|
-
};
|
|
1736
|
-
var y = {
|
|
1737
|
-
[H]: c,
|
|
1738
|
-
[I]: [
|
|
1739
|
-
t,
|
|
1740
|
-
true
|
|
1741
|
-
]
|
|
1742
|
-
};
|
|
1743
|
-
var z = {
|
|
1744
|
-
[H]: l,
|
|
1745
|
-
[I]: [
|
|
1746
|
-
{
|
|
1747
|
-
[J]: "PartitionResult"
|
|
1748
|
-
},
|
|
1749
|
-
"supportsFIPS"
|
|
1750
|
-
]
|
|
1751
|
-
};
|
|
1752
|
-
var A = {
|
|
1753
|
-
[J]: "PartitionResult"
|
|
1754
|
-
};
|
|
1755
|
-
var B = {
|
|
1756
|
-
[H]: c,
|
|
1757
|
-
[I]: [
|
|
1758
|
-
true,
|
|
1759
|
-
{
|
|
1760
|
-
[H]: l,
|
|
1761
|
-
[I]: [
|
|
1762
|
-
A,
|
|
1763
|
-
"supportsDualStack"
|
|
1764
|
-
]
|
|
1765
|
-
}
|
|
1766
|
-
]
|
|
1767
|
-
};
|
|
1768
|
-
var C = [
|
|
1769
|
-
{
|
|
1770
|
-
[H]: "isSet",
|
|
1771
|
-
[I]: [
|
|
1772
|
-
o
|
|
1773
|
-
]
|
|
1774
|
-
}
|
|
1775
|
-
];
|
|
1776
|
-
var D = [
|
|
1777
|
-
x
|
|
1778
|
-
];
|
|
1779
|
-
var E = [
|
|
1780
|
-
y
|
|
1781
|
-
];
|
|
1782
|
-
var _data = {
|
|
1783
|
-
version: "1.0",
|
|
1784
|
-
parameters: {
|
|
1785
|
-
Region: m,
|
|
1786
|
-
UseDualStack: n,
|
|
1787
|
-
UseFIPS: n,
|
|
1788
|
-
Endpoint: m,
|
|
1789
|
-
UseGlobalEndpoint: n
|
|
1790
|
-
},
|
|
1791
|
-
rules: [
|
|
1792
|
-
{
|
|
1793
|
-
conditions: [
|
|
1794
|
-
{
|
|
1795
|
-
[H]: c,
|
|
1796
|
-
[I]: [
|
|
1797
|
-
{
|
|
1798
|
-
[J]: "UseGlobalEndpoint"
|
|
1799
|
-
},
|
|
1800
|
-
b
|
|
1801
|
-
]
|
|
1802
|
-
},
|
|
1803
|
-
{
|
|
1804
|
-
[H]: "not",
|
|
1805
|
-
[I]: C
|
|
1806
|
-
},
|
|
1807
|
-
p,
|
|
1808
|
-
r,
|
|
1809
|
-
{
|
|
1810
|
-
[H]: c,
|
|
1811
|
-
[I]: [
|
|
1812
|
-
s,
|
|
1813
|
-
a
|
|
1814
|
-
]
|
|
1815
|
-
},
|
|
1816
|
-
{
|
|
1817
|
-
[H]: c,
|
|
1818
|
-
[I]: [
|
|
1819
|
-
t,
|
|
1820
|
-
a
|
|
1821
|
-
]
|
|
1822
|
-
}
|
|
1823
|
-
],
|
|
1824
|
-
rules: [
|
|
1825
|
-
{
|
|
1826
|
-
conditions: [
|
|
1827
|
-
{
|
|
1828
|
-
[H]: d,
|
|
1829
|
-
[I]: [
|
|
1830
|
-
q,
|
|
1831
|
-
"ap-northeast-1"
|
|
1832
|
-
]
|
|
1833
|
-
}
|
|
1834
|
-
],
|
|
1835
|
-
endpoint: u,
|
|
1836
|
-
[G]: h
|
|
1837
|
-
},
|
|
1838
|
-
{
|
|
1839
|
-
conditions: [
|
|
1840
|
-
{
|
|
1841
|
-
[H]: d,
|
|
1842
|
-
[I]: [
|
|
1843
|
-
q,
|
|
1844
|
-
"ap-south-1"
|
|
1845
|
-
]
|
|
1846
|
-
}
|
|
1847
|
-
],
|
|
1848
|
-
endpoint: u,
|
|
1849
|
-
[G]: h
|
|
1850
|
-
},
|
|
1851
|
-
{
|
|
1852
|
-
conditions: [
|
|
1853
|
-
{
|
|
1854
|
-
[H]: d,
|
|
1855
|
-
[I]: [
|
|
1856
|
-
q,
|
|
1857
|
-
"ap-southeast-1"
|
|
1858
|
-
]
|
|
1859
|
-
}
|
|
1860
|
-
],
|
|
1861
|
-
endpoint: u,
|
|
1862
|
-
[G]: h
|
|
1863
|
-
},
|
|
1864
|
-
{
|
|
1865
|
-
conditions: [
|
|
1866
|
-
{
|
|
1867
|
-
[H]: d,
|
|
1868
|
-
[I]: [
|
|
1869
|
-
q,
|
|
1870
|
-
"ap-southeast-2"
|
|
1871
|
-
]
|
|
1872
|
-
}
|
|
1873
|
-
],
|
|
1874
|
-
endpoint: u,
|
|
1875
|
-
[G]: h
|
|
1876
|
-
},
|
|
1877
|
-
w,
|
|
1878
|
-
{
|
|
1879
|
-
conditions: [
|
|
1880
|
-
{
|
|
1881
|
-
[H]: d,
|
|
1882
|
-
[I]: [
|
|
1883
|
-
q,
|
|
1884
|
-
"ca-central-1"
|
|
1885
|
-
]
|
|
1886
|
-
}
|
|
1887
|
-
],
|
|
1888
|
-
endpoint: u,
|
|
1889
|
-
[G]: h
|
|
1890
|
-
},
|
|
1891
|
-
{
|
|
1892
|
-
conditions: [
|
|
1893
|
-
{
|
|
1894
|
-
[H]: d,
|
|
1895
|
-
[I]: [
|
|
1896
|
-
q,
|
|
1897
|
-
"eu-central-1"
|
|
1898
|
-
]
|
|
1899
|
-
}
|
|
1900
|
-
],
|
|
1901
|
-
endpoint: u,
|
|
1902
|
-
[G]: h
|
|
1903
|
-
},
|
|
1904
|
-
{
|
|
1905
|
-
conditions: [
|
|
1906
|
-
{
|
|
1907
|
-
[H]: d,
|
|
1908
|
-
[I]: [
|
|
1909
|
-
q,
|
|
1910
|
-
"eu-north-1"
|
|
1911
|
-
]
|
|
1912
|
-
}
|
|
1913
|
-
],
|
|
1914
|
-
endpoint: u,
|
|
1915
|
-
[G]: h
|
|
1916
|
-
},
|
|
1917
|
-
{
|
|
1918
|
-
conditions: [
|
|
1919
|
-
{
|
|
1920
|
-
[H]: d,
|
|
1921
|
-
[I]: [
|
|
1922
|
-
q,
|
|
1923
|
-
"eu-west-1"
|
|
1924
|
-
]
|
|
1925
|
-
}
|
|
1926
|
-
],
|
|
1927
|
-
endpoint: u,
|
|
1928
|
-
[G]: h
|
|
1929
|
-
},
|
|
1930
|
-
{
|
|
1931
|
-
conditions: [
|
|
1932
|
-
{
|
|
1933
|
-
[H]: d,
|
|
1934
|
-
[I]: [
|
|
1935
|
-
q,
|
|
1936
|
-
"eu-west-2"
|
|
1937
|
-
]
|
|
1938
|
-
}
|
|
1939
|
-
],
|
|
1940
|
-
endpoint: u,
|
|
1941
|
-
[G]: h
|
|
1942
|
-
},
|
|
1943
|
-
{
|
|
1944
|
-
conditions: [
|
|
1945
|
-
{
|
|
1946
|
-
[H]: d,
|
|
1947
|
-
[I]: [
|
|
1948
|
-
q,
|
|
1949
|
-
"eu-west-3"
|
|
1950
|
-
]
|
|
1951
|
-
}
|
|
1952
|
-
],
|
|
1953
|
-
endpoint: u,
|
|
1954
|
-
[G]: h
|
|
1955
|
-
},
|
|
1956
|
-
{
|
|
1957
|
-
conditions: [
|
|
1958
|
-
{
|
|
1959
|
-
[H]: d,
|
|
1960
|
-
[I]: [
|
|
1961
|
-
q,
|
|
1962
|
-
"sa-east-1"
|
|
1963
|
-
]
|
|
1964
|
-
}
|
|
1965
|
-
],
|
|
1966
|
-
endpoint: u,
|
|
1967
|
-
[G]: h
|
|
1968
|
-
},
|
|
1969
|
-
{
|
|
1970
|
-
conditions: [
|
|
1971
|
-
{
|
|
1972
|
-
[H]: d,
|
|
1973
|
-
[I]: [
|
|
1974
|
-
q,
|
|
1975
|
-
g
|
|
1976
|
-
]
|
|
1977
|
-
}
|
|
1978
|
-
],
|
|
1979
|
-
endpoint: u,
|
|
1980
|
-
[G]: h
|
|
1981
|
-
},
|
|
1982
|
-
{
|
|
1983
|
-
conditions: [
|
|
1984
|
-
{
|
|
1985
|
-
[H]: d,
|
|
1986
|
-
[I]: [
|
|
1987
|
-
q,
|
|
1988
|
-
"us-east-2"
|
|
1989
|
-
]
|
|
1990
|
-
}
|
|
1991
|
-
],
|
|
1992
|
-
endpoint: u,
|
|
1993
|
-
[G]: h
|
|
1994
|
-
},
|
|
1995
|
-
{
|
|
1996
|
-
conditions: [
|
|
1997
|
-
{
|
|
1998
|
-
[H]: d,
|
|
1999
|
-
[I]: [
|
|
2000
|
-
q,
|
|
2001
|
-
"us-west-1"
|
|
2002
|
-
]
|
|
2003
|
-
}
|
|
2004
|
-
],
|
|
2005
|
-
endpoint: u,
|
|
2006
|
-
[G]: h
|
|
2007
|
-
},
|
|
2008
|
-
{
|
|
2009
|
-
conditions: [
|
|
2010
|
-
{
|
|
2011
|
-
[H]: d,
|
|
2012
|
-
[I]: [
|
|
2013
|
-
q,
|
|
2014
|
-
"us-west-2"
|
|
2015
|
-
]
|
|
2016
|
-
}
|
|
2017
|
-
],
|
|
2018
|
-
endpoint: u,
|
|
2019
|
-
[G]: h
|
|
2020
|
-
},
|
|
2021
|
-
{
|
|
2022
|
-
endpoint: {
|
|
2023
|
-
url: i,
|
|
2024
|
-
properties: {
|
|
2025
|
-
authSchemes: [
|
|
2026
|
-
{
|
|
2027
|
-
name: e,
|
|
2028
|
-
signingName: f,
|
|
2029
|
-
signingRegion: "{Region}"
|
|
2030
|
-
}
|
|
2031
|
-
]
|
|
2032
|
-
},
|
|
2033
|
-
headers: v
|
|
2034
|
-
},
|
|
2035
|
-
[G]: h
|
|
2036
|
-
}
|
|
2037
|
-
],
|
|
2038
|
-
[G]: j
|
|
2039
|
-
},
|
|
2040
|
-
{
|
|
2041
|
-
conditions: C,
|
|
2042
|
-
rules: [
|
|
2043
|
-
{
|
|
2044
|
-
conditions: D,
|
|
2045
|
-
error: "Invalid Configuration: FIPS and custom endpoint are not supported",
|
|
2046
|
-
[G]: k
|
|
2047
|
-
},
|
|
2048
|
-
{
|
|
2049
|
-
conditions: E,
|
|
2050
|
-
error: "Invalid Configuration: Dualstack and custom endpoint are not supported",
|
|
2051
|
-
[G]: k
|
|
2052
|
-
},
|
|
2053
|
-
{
|
|
2054
|
-
endpoint: {
|
|
2055
|
-
url: o,
|
|
2056
|
-
properties: v,
|
|
2057
|
-
headers: v
|
|
2058
|
-
},
|
|
2059
|
-
[G]: h
|
|
2060
|
-
}
|
|
2061
|
-
],
|
|
2062
|
-
[G]: j
|
|
2063
|
-
},
|
|
2064
|
-
{
|
|
2065
|
-
conditions: [
|
|
2066
|
-
p
|
|
2067
|
-
],
|
|
2068
|
-
rules: [
|
|
2069
|
-
{
|
|
2070
|
-
conditions: [
|
|
2071
|
-
r
|
|
2072
|
-
],
|
|
2073
|
-
rules: [
|
|
2074
|
-
{
|
|
2075
|
-
conditions: [
|
|
2076
|
-
x,
|
|
2077
|
-
y
|
|
2078
|
-
],
|
|
2079
|
-
rules: [
|
|
2080
|
-
{
|
|
2081
|
-
conditions: [
|
|
2082
|
-
{
|
|
2083
|
-
[H]: c,
|
|
2084
|
-
[I]: [
|
|
2085
|
-
b,
|
|
2086
|
-
z
|
|
2087
|
-
]
|
|
2088
|
-
},
|
|
2089
|
-
B
|
|
2090
|
-
],
|
|
2091
|
-
rules: [
|
|
2092
|
-
{
|
|
2093
|
-
endpoint: {
|
|
2094
|
-
url: "https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
2095
|
-
properties: v,
|
|
2096
|
-
headers: v
|
|
2097
|
-
},
|
|
2098
|
-
[G]: h
|
|
2099
|
-
}
|
|
2100
|
-
],
|
|
2101
|
-
[G]: j
|
|
2102
|
-
},
|
|
2103
|
-
{
|
|
2104
|
-
error: "FIPS and DualStack are enabled, but this partition does not support one or both",
|
|
2105
|
-
[G]: k
|
|
2106
|
-
}
|
|
2107
|
-
],
|
|
2108
|
-
[G]: j
|
|
2109
|
-
},
|
|
2110
|
-
{
|
|
2111
|
-
conditions: D,
|
|
2112
|
-
rules: [
|
|
2113
|
-
{
|
|
2114
|
-
conditions: [
|
|
2115
|
-
{
|
|
2116
|
-
[H]: c,
|
|
2117
|
-
[I]: [
|
|
2118
|
-
z,
|
|
2119
|
-
b
|
|
2120
|
-
]
|
|
2121
|
-
}
|
|
2122
|
-
],
|
|
2123
|
-
rules: [
|
|
2124
|
-
{
|
|
2125
|
-
conditions: [
|
|
2126
|
-
{
|
|
2127
|
-
[H]: d,
|
|
2128
|
-
[I]: [
|
|
2129
|
-
{
|
|
2130
|
-
[H]: l,
|
|
2131
|
-
[I]: [
|
|
2132
|
-
A,
|
|
2133
|
-
"name"
|
|
2134
|
-
]
|
|
2135
|
-
},
|
|
2136
|
-
"aws-us-gov"
|
|
2137
|
-
]
|
|
2138
|
-
}
|
|
2139
|
-
],
|
|
2140
|
-
endpoint: {
|
|
2141
|
-
url: "https://sts.{Region}.amazonaws.com",
|
|
2142
|
-
properties: v,
|
|
2143
|
-
headers: v
|
|
2144
|
-
},
|
|
2145
|
-
[G]: h
|
|
2146
|
-
},
|
|
2147
|
-
{
|
|
2148
|
-
endpoint: {
|
|
2149
|
-
url: "https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",
|
|
2150
|
-
properties: v,
|
|
2151
|
-
headers: v
|
|
2152
|
-
},
|
|
2153
|
-
[G]: h
|
|
2154
|
-
}
|
|
2155
|
-
],
|
|
2156
|
-
[G]: j
|
|
2157
|
-
},
|
|
2158
|
-
{
|
|
2159
|
-
error: "FIPS is enabled but this partition does not support FIPS",
|
|
2160
|
-
[G]: k
|
|
2161
|
-
}
|
|
2162
|
-
],
|
|
2163
|
-
[G]: j
|
|
2164
|
-
},
|
|
2165
|
-
{
|
|
2166
|
-
conditions: E,
|
|
2167
|
-
rules: [
|
|
2168
|
-
{
|
|
2169
|
-
conditions: [
|
|
2170
|
-
B
|
|
2171
|
-
],
|
|
2172
|
-
rules: [
|
|
2173
|
-
{
|
|
2174
|
-
endpoint: {
|
|
2175
|
-
url: "https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
2176
|
-
properties: v,
|
|
2177
|
-
headers: v
|
|
2178
|
-
},
|
|
2179
|
-
[G]: h
|
|
2180
|
-
}
|
|
2181
|
-
],
|
|
2182
|
-
[G]: j
|
|
2183
|
-
},
|
|
2184
|
-
{
|
|
2185
|
-
error: "DualStack is enabled but this partition does not support DualStack",
|
|
2186
|
-
[G]: k
|
|
2187
|
-
}
|
|
2188
|
-
],
|
|
2189
|
-
[G]: j
|
|
2190
|
-
},
|
|
2191
|
-
w,
|
|
2192
|
-
{
|
|
2193
|
-
endpoint: {
|
|
2194
|
-
url: i,
|
|
2195
|
-
properties: v,
|
|
2196
|
-
headers: v
|
|
2197
|
-
},
|
|
2198
|
-
[G]: h
|
|
2199
|
-
}
|
|
2200
|
-
],
|
|
2201
|
-
[G]: j
|
|
2202
|
-
}
|
|
2203
|
-
],
|
|
2204
|
-
[G]: j
|
|
2205
|
-
},
|
|
2206
|
-
{
|
|
2207
|
-
error: "Invalid Configuration: Missing Region",
|
|
2208
|
-
[G]: k
|
|
2209
|
-
}
|
|
2210
|
-
]
|
|
2211
|
-
};
|
|
2212
|
-
var ruleSet = _data;
|
|
2213
|
-
|
|
2214
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.879.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/endpointResolver.js
|
|
2215
|
-
var cache = new YHGTF22I_cjs.EndpointCache({
|
|
2216
|
-
size: 50,
|
|
2217
|
-
params: [
|
|
2218
|
-
"Endpoint",
|
|
2219
|
-
"Region",
|
|
2220
|
-
"UseDualStack",
|
|
2221
|
-
"UseFIPS",
|
|
2222
|
-
"UseGlobalEndpoint"
|
|
2223
|
-
]
|
|
2224
|
-
});
|
|
2225
|
-
var defaultEndpointResolver = /* @__PURE__ */ _24WEKBY3_cjs.__name((endpointParams, context = {}) => {
|
|
2226
|
-
return cache.get(endpointParams, () => YHGTF22I_cjs.resolveEndpoint(ruleSet, {
|
|
2227
|
-
endpointParams,
|
|
2228
|
-
logger: context.logger
|
|
2229
|
-
}));
|
|
2230
|
-
}, "defaultEndpointResolver");
|
|
2231
|
-
YHGTF22I_cjs.customEndpointFunctions.aws = YHGTF22I_cjs.awsEndpointFunctions;
|
|
2232
|
-
|
|
2233
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.879.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js
|
|
2234
|
-
var getRuntimeConfig = /* @__PURE__ */ _24WEKBY3_cjs.__name((config) => {
|
|
2235
|
-
return {
|
|
2236
|
-
apiVersion: "2011-06-15",
|
|
2237
|
-
base64Decoder: config?.base64Decoder ?? Q5L3QIKZ_cjs.fromBase64,
|
|
2238
|
-
base64Encoder: config?.base64Encoder ?? Q5L3QIKZ_cjs.toBase64,
|
|
2239
|
-
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
2240
|
-
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
2241
|
-
extensions: config?.extensions ?? [],
|
|
2242
|
-
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSTSHttpAuthSchemeProvider,
|
|
2243
|
-
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
2244
|
-
{
|
|
2245
|
-
schemeId: "aws.auth#sigv4",
|
|
2246
|
-
identityProvider: /* @__PURE__ */ _24WEKBY3_cjs.__name((ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), "identityProvider"),
|
|
2247
|
-
signer: new YHGTF22I_cjs.AwsSdkSigV4Signer()
|
|
2248
|
-
},
|
|
2249
|
-
{
|
|
2250
|
-
schemeId: "smithy.api#noAuth",
|
|
2251
|
-
identityProvider: /* @__PURE__ */ _24WEKBY3_cjs.__name((ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})), "identityProvider"),
|
|
2252
|
-
signer: new UOMNLT53_cjs.NoAuthSigner()
|
|
2253
|
-
}
|
|
2254
|
-
],
|
|
2255
|
-
logger: config?.logger ?? new YHGTF22I_cjs.NoOpLogger(),
|
|
2256
|
-
serviceId: config?.serviceId ?? "STS",
|
|
2257
|
-
urlParser: config?.urlParser ?? UUMDUUBJ_cjs.parseUrl,
|
|
2258
|
-
utf8Decoder: config?.utf8Decoder ?? FDH37YWR_cjs.fromUtf8,
|
|
2259
|
-
utf8Encoder: config?.utf8Encoder ?? FDH37YWR_cjs.toUtf8
|
|
2260
|
-
};
|
|
2261
|
-
}, "getRuntimeConfig");
|
|
2262
|
-
|
|
2263
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.879.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js
|
|
2264
|
-
var getRuntimeConfig2 = /* @__PURE__ */ _24WEKBY3_cjs.__name((config) => {
|
|
2265
|
-
YHGTF22I_cjs.emitWarningIfUnsupportedVersion2(process.version);
|
|
2266
|
-
const defaultsMode = YHGTF22I_cjs.resolveDefaultsModeConfig(config);
|
|
2267
|
-
const defaultConfigProvider = /* @__PURE__ */ _24WEKBY3_cjs.__name(() => defaultsMode().then(YHGTF22I_cjs.loadConfigsForDefaultMode), "defaultConfigProvider");
|
|
2268
|
-
const clientSharedValues = getRuntimeConfig(config);
|
|
2269
|
-
YHGTF22I_cjs.emitWarningIfUnsupportedVersion(process.version);
|
|
2270
|
-
const loaderConfig = {
|
|
2271
|
-
profile: config?.profile,
|
|
2272
|
-
logger: clientSharedValues.logger
|
|
2273
|
-
};
|
|
2274
|
-
return {
|
|
2275
|
-
...clientSharedValues,
|
|
2276
|
-
...config,
|
|
2277
|
-
runtime: "node",
|
|
2278
|
-
defaultsMode,
|
|
2279
|
-
authSchemePreference: config?.authSchemePreference ?? UUMDUUBJ_cjs.loadConfig(YHGTF22I_cjs.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
2280
|
-
bodyLengthChecker: config?.bodyLengthChecker ?? YHGTF22I_cjs.calculateBodyLength,
|
|
2281
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? YHGTF22I_cjs.createDefaultUserAgentProvider({
|
|
2282
|
-
serviceId: clientSharedValues.serviceId,
|
|
2283
|
-
clientVersion: MDE37STN_cjs.package_default.version
|
|
2284
|
-
}),
|
|
2285
|
-
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
2286
|
-
{
|
|
2287
|
-
schemeId: "aws.auth#sigv4",
|
|
2288
|
-
identityProvider: /* @__PURE__ */ _24WEKBY3_cjs.__name((ipc) => ipc.getIdentityProvider("aws.auth#sigv4") || (async (idProps) => await config.credentialDefaultProvider(idProps?.__config || {})()), "identityProvider"),
|
|
2289
|
-
signer: new YHGTF22I_cjs.AwsSdkSigV4Signer()
|
|
2290
|
-
},
|
|
2291
|
-
{
|
|
2292
|
-
schemeId: "smithy.api#noAuth",
|
|
2293
|
-
identityProvider: /* @__PURE__ */ _24WEKBY3_cjs.__name((ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})), "identityProvider"),
|
|
2294
|
-
signer: new UOMNLT53_cjs.NoAuthSigner()
|
|
2295
|
-
}
|
|
2296
|
-
],
|
|
2297
|
-
maxAttempts: config?.maxAttempts ?? UUMDUUBJ_cjs.loadConfig(YHGTF22I_cjs.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
2298
|
-
region: config?.region ?? UUMDUUBJ_cjs.loadConfig(YHGTF22I_cjs.NODE_REGION_CONFIG_OPTIONS, {
|
|
2299
|
-
...YHGTF22I_cjs.NODE_REGION_CONFIG_FILE_OPTIONS,
|
|
2300
|
-
...loaderConfig
|
|
2301
|
-
}),
|
|
2302
|
-
requestHandler: Q5L3QIKZ_cjs.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
2303
|
-
retryMode: config?.retryMode ?? UUMDUUBJ_cjs.loadConfig({
|
|
2304
|
-
...YHGTF22I_cjs.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
2305
|
-
default: /* @__PURE__ */ _24WEKBY3_cjs.__name(async () => (await defaultConfigProvider()).retryMode || YHGTF22I_cjs.DEFAULT_RETRY_MODE, "default")
|
|
2306
|
-
}, config),
|
|
2307
|
-
sha256: config?.sha256 ?? YHGTF22I_cjs.Hash.bind(null, "sha256"),
|
|
2308
|
-
streamCollector: config?.streamCollector ?? Q5L3QIKZ_cjs.streamCollector,
|
|
2309
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? UUMDUUBJ_cjs.loadConfig(YHGTF22I_cjs.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
2310
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? UUMDUUBJ_cjs.loadConfig(YHGTF22I_cjs.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
2311
|
-
userAgentAppId: config?.userAgentAppId ?? UUMDUUBJ_cjs.loadConfig(YHGTF22I_cjs.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
|
|
2312
|
-
};
|
|
2313
|
-
}, "getRuntimeConfig");
|
|
2314
|
-
|
|
2315
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.879.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeExtensions.js
|
|
2316
|
-
_24WEKBY3_cjs.init_cjs_shims();
|
|
2317
|
-
|
|
2318
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.879.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthExtensionConfiguration.js
|
|
2319
|
-
_24WEKBY3_cjs.init_cjs_shims();
|
|
2320
|
-
var getHttpAuthExtensionConfiguration = /* @__PURE__ */ _24WEKBY3_cjs.__name((runtimeConfig) => {
|
|
2321
|
-
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
2322
|
-
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
2323
|
-
let _credentials = runtimeConfig.credentials;
|
|
2324
|
-
return {
|
|
2325
|
-
setHttpAuthScheme(httpAuthScheme) {
|
|
2326
|
-
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
2327
|
-
if (index === -1) {
|
|
2328
|
-
_httpAuthSchemes.push(httpAuthScheme);
|
|
2329
|
-
} else {
|
|
2330
|
-
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
2331
|
-
}
|
|
2332
|
-
},
|
|
2333
|
-
httpAuthSchemes() {
|
|
2334
|
-
return _httpAuthSchemes;
|
|
2335
|
-
},
|
|
2336
|
-
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
2337
|
-
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
2338
|
-
},
|
|
2339
|
-
httpAuthSchemeProvider() {
|
|
2340
|
-
return _httpAuthSchemeProvider;
|
|
2341
|
-
},
|
|
2342
|
-
setCredentials(credentials) {
|
|
2343
|
-
_credentials = credentials;
|
|
2344
|
-
},
|
|
2345
|
-
credentials() {
|
|
2346
|
-
return _credentials;
|
|
2347
|
-
}
|
|
2348
|
-
};
|
|
2349
|
-
}, "getHttpAuthExtensionConfiguration");
|
|
2350
|
-
var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ _24WEKBY3_cjs.__name((config) => {
|
|
2351
|
-
return {
|
|
2352
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
2353
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
2354
|
-
credentials: config.credentials()
|
|
2355
|
-
};
|
|
2356
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
2357
|
-
|
|
2358
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.879.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeExtensions.js
|
|
2359
|
-
var resolveRuntimeExtensions = /* @__PURE__ */ _24WEKBY3_cjs.__name((runtimeConfig, extensions) => {
|
|
2360
|
-
const extensionConfiguration = Object.assign(YHGTF22I_cjs.getAwsRegionExtensionConfiguration(runtimeConfig), YHGTF22I_cjs.getDefaultExtensionConfiguration(runtimeConfig), YHGTF22I_cjs.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
2361
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
2362
|
-
return Object.assign(runtimeConfig, YHGTF22I_cjs.resolveAwsRegionExtensionConfiguration(extensionConfiguration), YHGTF22I_cjs.resolveDefaultRuntimeConfig(extensionConfiguration), YHGTF22I_cjs.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
2363
|
-
}, "resolveRuntimeExtensions");
|
|
2364
|
-
|
|
2365
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.879.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STSClient.js
|
|
2366
|
-
var STSClient = class extends YHGTF22I_cjs.Client {
|
|
2367
|
-
static {
|
|
2368
|
-
_24WEKBY3_cjs.__name(this, "STSClient");
|
|
2369
|
-
}
|
|
2370
|
-
config;
|
|
2371
|
-
constructor(...[configuration]) {
|
|
2372
|
-
const _config_0 = getRuntimeConfig2(configuration || {});
|
|
2373
|
-
super(_config_0);
|
|
2374
|
-
this.initConfig = _config_0;
|
|
2375
|
-
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
2376
|
-
const _config_2 = YHGTF22I_cjs.resolveUserAgentConfig(_config_1);
|
|
2377
|
-
const _config_3 = YHGTF22I_cjs.resolveRetryConfig(_config_2);
|
|
2378
|
-
const _config_4 = YHGTF22I_cjs.resolveRegionConfig(_config_3);
|
|
2379
|
-
const _config_5 = YHGTF22I_cjs.resolveHostHeaderConfig(_config_4);
|
|
2380
|
-
const _config_6 = YHGTF22I_cjs.resolveEndpointConfig(_config_5);
|
|
2381
|
-
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
2382
|
-
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
2383
|
-
this.config = _config_8;
|
|
2384
|
-
this.middlewareStack.use(YHGTF22I_cjs.getUserAgentPlugin(this.config));
|
|
2385
|
-
this.middlewareStack.use(YHGTF22I_cjs.getRetryPlugin(this.config));
|
|
2386
|
-
this.middlewareStack.use(YHGTF22I_cjs.getContentLengthPlugin(this.config));
|
|
2387
|
-
this.middlewareStack.use(YHGTF22I_cjs.getHostHeaderPlugin(this.config));
|
|
2388
|
-
this.middlewareStack.use(YHGTF22I_cjs.getLoggerPlugin(this.config));
|
|
2389
|
-
this.middlewareStack.use(YHGTF22I_cjs.getRecursionDetectionPlugin(this.config));
|
|
2390
|
-
this.middlewareStack.use(YHGTF22I_cjs.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
2391
|
-
httpAuthSchemeParametersProvider: defaultSTSHttpAuthSchemeParametersProvider,
|
|
2392
|
-
identityProviderConfigProvider: /* @__PURE__ */ _24WEKBY3_cjs.__name(async (config) => new YHGTF22I_cjs.DefaultIdentityProviderConfig({
|
|
2393
|
-
"aws.auth#sigv4": config.credentials
|
|
2394
|
-
}), "identityProviderConfigProvider")
|
|
2395
|
-
}));
|
|
2396
|
-
this.middlewareStack.use(YHGTF22I_cjs.getHttpSigningPlugin(this.config));
|
|
2397
|
-
}
|
|
2398
|
-
destroy() {
|
|
2399
|
-
super.destroy();
|
|
2400
|
-
}
|
|
2401
|
-
};
|
|
2402
|
-
|
|
2403
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.879.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STS.js
|
|
2404
|
-
_24WEKBY3_cjs.init_cjs_shims();
|
|
2405
|
-
|
|
2406
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.879.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleCommand.js
|
|
2407
|
-
_24WEKBY3_cjs.init_cjs_shims();
|
|
2408
|
-
|
|
2409
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.879.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/models_0.js
|
|
2410
|
-
_24WEKBY3_cjs.init_cjs_shims();
|
|
2411
|
-
|
|
2412
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.879.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/STSServiceException.js
|
|
2413
|
-
_24WEKBY3_cjs.init_cjs_shims();
|
|
2414
|
-
var STSServiceException = class _STSServiceException extends YHGTF22I_cjs.ServiceException {
|
|
2415
|
-
static {
|
|
2416
|
-
_24WEKBY3_cjs.__name(this, "STSServiceException");
|
|
2417
|
-
}
|
|
2418
|
-
constructor(options) {
|
|
2419
|
-
super(options);
|
|
2420
|
-
Object.setPrototypeOf(this, _STSServiceException.prototype);
|
|
2421
|
-
}
|
|
2422
|
-
};
|
|
2423
|
-
|
|
2424
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.879.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/models_0.js
|
|
2425
|
-
var CredentialsFilterSensitiveLog = /* @__PURE__ */ _24WEKBY3_cjs.__name((obj) => ({
|
|
2426
|
-
...obj,
|
|
2427
|
-
...obj.SecretAccessKey && {
|
|
2428
|
-
SecretAccessKey: UOMNLT53_cjs.SENSITIVE_STRING
|
|
2429
|
-
}
|
|
2430
|
-
}), "CredentialsFilterSensitiveLog");
|
|
2431
|
-
var AssumeRoleResponseFilterSensitiveLog = /* @__PURE__ */ _24WEKBY3_cjs.__name((obj) => ({
|
|
2432
|
-
...obj,
|
|
2433
|
-
...obj.Credentials && {
|
|
2434
|
-
Credentials: CredentialsFilterSensitiveLog(obj.Credentials)
|
|
2435
|
-
}
|
|
2436
|
-
}), "AssumeRoleResponseFilterSensitiveLog");
|
|
2437
|
-
var ExpiredTokenException = class _ExpiredTokenException extends STSServiceException {
|
|
2438
|
-
static {
|
|
2439
|
-
_24WEKBY3_cjs.__name(this, "ExpiredTokenException");
|
|
2440
|
-
}
|
|
2441
|
-
name = "ExpiredTokenException";
|
|
2442
|
-
$fault = "client";
|
|
2443
|
-
constructor(opts) {
|
|
2444
|
-
super({
|
|
2445
|
-
name: "ExpiredTokenException",
|
|
2446
|
-
$fault: "client",
|
|
2447
|
-
...opts
|
|
2448
|
-
});
|
|
2449
|
-
Object.setPrototypeOf(this, _ExpiredTokenException.prototype);
|
|
2450
|
-
}
|
|
2451
|
-
};
|
|
2452
|
-
var MalformedPolicyDocumentException = class _MalformedPolicyDocumentException extends STSServiceException {
|
|
2453
|
-
static {
|
|
2454
|
-
_24WEKBY3_cjs.__name(this, "MalformedPolicyDocumentException");
|
|
2455
|
-
}
|
|
2456
|
-
name = "MalformedPolicyDocumentException";
|
|
2457
|
-
$fault = "client";
|
|
2458
|
-
constructor(opts) {
|
|
2459
|
-
super({
|
|
2460
|
-
name: "MalformedPolicyDocumentException",
|
|
2461
|
-
$fault: "client",
|
|
2462
|
-
...opts
|
|
2463
|
-
});
|
|
2464
|
-
Object.setPrototypeOf(this, _MalformedPolicyDocumentException.prototype);
|
|
2465
|
-
}
|
|
2466
|
-
};
|
|
2467
|
-
var PackedPolicyTooLargeException = class _PackedPolicyTooLargeException extends STSServiceException {
|
|
2468
|
-
static {
|
|
2469
|
-
_24WEKBY3_cjs.__name(this, "PackedPolicyTooLargeException");
|
|
2470
|
-
}
|
|
2471
|
-
name = "PackedPolicyTooLargeException";
|
|
2472
|
-
$fault = "client";
|
|
2473
|
-
constructor(opts) {
|
|
2474
|
-
super({
|
|
2475
|
-
name: "PackedPolicyTooLargeException",
|
|
2476
|
-
$fault: "client",
|
|
2477
|
-
...opts
|
|
2478
|
-
});
|
|
2479
|
-
Object.setPrototypeOf(this, _PackedPolicyTooLargeException.prototype);
|
|
2480
|
-
}
|
|
2481
|
-
};
|
|
2482
|
-
var RegionDisabledException = class _RegionDisabledException extends STSServiceException {
|
|
2483
|
-
static {
|
|
2484
|
-
_24WEKBY3_cjs.__name(this, "RegionDisabledException");
|
|
2485
|
-
}
|
|
2486
|
-
name = "RegionDisabledException";
|
|
2487
|
-
$fault = "client";
|
|
2488
|
-
constructor(opts) {
|
|
2489
|
-
super({
|
|
2490
|
-
name: "RegionDisabledException",
|
|
2491
|
-
$fault: "client",
|
|
2492
|
-
...opts
|
|
2493
|
-
});
|
|
2494
|
-
Object.setPrototypeOf(this, _RegionDisabledException.prototype);
|
|
2495
|
-
}
|
|
2496
|
-
};
|
|
2497
|
-
var IDPRejectedClaimException = class _IDPRejectedClaimException extends STSServiceException {
|
|
2498
|
-
static {
|
|
2499
|
-
_24WEKBY3_cjs.__name(this, "IDPRejectedClaimException");
|
|
2500
|
-
}
|
|
2501
|
-
name = "IDPRejectedClaimException";
|
|
2502
|
-
$fault = "client";
|
|
2503
|
-
constructor(opts) {
|
|
2504
|
-
super({
|
|
2505
|
-
name: "IDPRejectedClaimException",
|
|
2506
|
-
$fault: "client",
|
|
2507
|
-
...opts
|
|
2508
|
-
});
|
|
2509
|
-
Object.setPrototypeOf(this, _IDPRejectedClaimException.prototype);
|
|
2510
|
-
}
|
|
2511
|
-
};
|
|
2512
|
-
var InvalidIdentityTokenException = class _InvalidIdentityTokenException extends STSServiceException {
|
|
2513
|
-
static {
|
|
2514
|
-
_24WEKBY3_cjs.__name(this, "InvalidIdentityTokenException");
|
|
2515
|
-
}
|
|
2516
|
-
name = "InvalidIdentityTokenException";
|
|
2517
|
-
$fault = "client";
|
|
2518
|
-
constructor(opts) {
|
|
2519
|
-
super({
|
|
2520
|
-
name: "InvalidIdentityTokenException",
|
|
2521
|
-
$fault: "client",
|
|
2522
|
-
...opts
|
|
2523
|
-
});
|
|
2524
|
-
Object.setPrototypeOf(this, _InvalidIdentityTokenException.prototype);
|
|
2525
|
-
}
|
|
2526
|
-
};
|
|
2527
|
-
var AssumeRoleWithWebIdentityRequestFilterSensitiveLog = /* @__PURE__ */ _24WEKBY3_cjs.__name((obj) => ({
|
|
2528
|
-
...obj,
|
|
2529
|
-
...obj.WebIdentityToken && {
|
|
2530
|
-
WebIdentityToken: UOMNLT53_cjs.SENSITIVE_STRING
|
|
2531
|
-
}
|
|
2532
|
-
}), "AssumeRoleWithWebIdentityRequestFilterSensitiveLog");
|
|
2533
|
-
var AssumeRoleWithWebIdentityResponseFilterSensitiveLog = /* @__PURE__ */ _24WEKBY3_cjs.__name((obj) => ({
|
|
2534
|
-
...obj,
|
|
2535
|
-
...obj.Credentials && {
|
|
2536
|
-
Credentials: CredentialsFilterSensitiveLog(obj.Credentials)
|
|
2537
|
-
}
|
|
2538
|
-
}), "AssumeRoleWithWebIdentityResponseFilterSensitiveLog");
|
|
2539
|
-
var IDPCommunicationErrorException = class _IDPCommunicationErrorException extends STSServiceException {
|
|
2540
|
-
static {
|
|
2541
|
-
_24WEKBY3_cjs.__name(this, "IDPCommunicationErrorException");
|
|
2542
|
-
}
|
|
2543
|
-
name = "IDPCommunicationErrorException";
|
|
2544
|
-
$fault = "client";
|
|
2545
|
-
constructor(opts) {
|
|
2546
|
-
super({
|
|
2547
|
-
name: "IDPCommunicationErrorException",
|
|
2548
|
-
$fault: "client",
|
|
2549
|
-
...opts
|
|
2550
|
-
});
|
|
2551
|
-
Object.setPrototypeOf(this, _IDPCommunicationErrorException.prototype);
|
|
2552
|
-
}
|
|
2553
|
-
};
|
|
2554
|
-
|
|
2555
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.879.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/protocols/Aws_query.js
|
|
2556
|
-
_24WEKBY3_cjs.init_cjs_shims();
|
|
2557
|
-
var se_AssumeRoleCommand = /* @__PURE__ */ _24WEKBY3_cjs.__name(async (input, context) => {
|
|
2558
|
-
const headers = SHARED_HEADERS;
|
|
2559
|
-
let body;
|
|
2560
|
-
body = buildFormUrlencodedString({
|
|
2561
|
-
...se_AssumeRoleRequest(input, context),
|
|
2562
|
-
[_A]: _AR,
|
|
2563
|
-
[_V]: _
|
|
2564
|
-
});
|
|
2565
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
2566
|
-
}, "se_AssumeRoleCommand");
|
|
2567
|
-
var se_AssumeRoleWithWebIdentityCommand = /* @__PURE__ */ _24WEKBY3_cjs.__name(async (input, context) => {
|
|
2568
|
-
const headers = SHARED_HEADERS;
|
|
2569
|
-
let body;
|
|
2570
|
-
body = buildFormUrlencodedString({
|
|
2571
|
-
...se_AssumeRoleWithWebIdentityRequest(input, context),
|
|
2572
|
-
[_A]: _ARWWI,
|
|
2573
|
-
[_V]: _
|
|
2574
|
-
});
|
|
2575
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
2576
|
-
}, "se_AssumeRoleWithWebIdentityCommand");
|
|
2577
|
-
var de_AssumeRoleCommand = /* @__PURE__ */ _24WEKBY3_cjs.__name(async (output, context) => {
|
|
2578
|
-
if (output.statusCode >= 300) {
|
|
2579
|
-
return de_CommandError(output, context);
|
|
2580
|
-
}
|
|
2581
|
-
const data = await parseXmlBody(output.body, context);
|
|
2582
|
-
let contents = {};
|
|
2583
|
-
contents = de_AssumeRoleResponse(data.AssumeRoleResult, context);
|
|
2584
|
-
const response = {
|
|
2585
|
-
$metadata: deserializeMetadata(output),
|
|
2586
|
-
...contents
|
|
2587
|
-
};
|
|
2588
|
-
return response;
|
|
2589
|
-
}, "de_AssumeRoleCommand");
|
|
2590
|
-
var de_AssumeRoleWithWebIdentityCommand = /* @__PURE__ */ _24WEKBY3_cjs.__name(async (output, context) => {
|
|
2591
|
-
if (output.statusCode >= 300) {
|
|
2592
|
-
return de_CommandError(output, context);
|
|
2593
|
-
}
|
|
2594
|
-
const data = await parseXmlBody(output.body, context);
|
|
2595
|
-
let contents = {};
|
|
2596
|
-
contents = de_AssumeRoleWithWebIdentityResponse(data.AssumeRoleWithWebIdentityResult, context);
|
|
2597
|
-
const response = {
|
|
2598
|
-
$metadata: deserializeMetadata(output),
|
|
2599
|
-
...contents
|
|
2600
|
-
};
|
|
2601
|
-
return response;
|
|
2602
|
-
}, "de_AssumeRoleWithWebIdentityCommand");
|
|
2603
|
-
var de_CommandError = /* @__PURE__ */ _24WEKBY3_cjs.__name(async (output, context) => {
|
|
2604
|
-
const parsedOutput = {
|
|
2605
|
-
...output,
|
|
2606
|
-
body: await parseXmlErrorBody(output.body, context)
|
|
2607
|
-
};
|
|
2608
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2609
|
-
switch (errorCode) {
|
|
2610
|
-
case "ExpiredTokenException":
|
|
2611
|
-
case "com.amazonaws.sts#ExpiredTokenException":
|
|
2612
|
-
throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
|
|
2613
|
-
case "MalformedPolicyDocument":
|
|
2614
|
-
case "com.amazonaws.sts#MalformedPolicyDocumentException":
|
|
2615
|
-
throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
|
|
2616
|
-
case "PackedPolicyTooLarge":
|
|
2617
|
-
case "com.amazonaws.sts#PackedPolicyTooLargeException":
|
|
2618
|
-
throw await de_PackedPolicyTooLargeExceptionRes(parsedOutput, context);
|
|
2619
|
-
case "RegionDisabledException":
|
|
2620
|
-
case "com.amazonaws.sts#RegionDisabledException":
|
|
2621
|
-
throw await de_RegionDisabledExceptionRes(parsedOutput, context);
|
|
2622
|
-
case "IDPCommunicationError":
|
|
2623
|
-
case "com.amazonaws.sts#IDPCommunicationErrorException":
|
|
2624
|
-
throw await de_IDPCommunicationErrorExceptionRes(parsedOutput, context);
|
|
2625
|
-
case "IDPRejectedClaim":
|
|
2626
|
-
case "com.amazonaws.sts#IDPRejectedClaimException":
|
|
2627
|
-
throw await de_IDPRejectedClaimExceptionRes(parsedOutput, context);
|
|
2628
|
-
case "InvalidIdentityToken":
|
|
2629
|
-
case "com.amazonaws.sts#InvalidIdentityTokenException":
|
|
2630
|
-
throw await de_InvalidIdentityTokenExceptionRes(parsedOutput, context);
|
|
2631
|
-
default:
|
|
2632
|
-
const parsedBody = parsedOutput.body;
|
|
2633
|
-
return throwDefaultError({
|
|
2634
|
-
output,
|
|
2635
|
-
parsedBody: parsedBody.Error,
|
|
2636
|
-
errorCode
|
|
2637
|
-
});
|
|
2638
|
-
}
|
|
2639
|
-
}, "de_CommandError");
|
|
2640
|
-
var de_ExpiredTokenExceptionRes = /* @__PURE__ */ _24WEKBY3_cjs.__name(async (parsedOutput, context) => {
|
|
2641
|
-
const body = parsedOutput.body;
|
|
2642
|
-
const deserialized = de_ExpiredTokenException(body.Error, context);
|
|
2643
|
-
const exception = new ExpiredTokenException({
|
|
2644
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2645
|
-
...deserialized
|
|
2646
|
-
});
|
|
2647
|
-
return YHGTF22I_cjs.decorateServiceException(exception, body);
|
|
2648
|
-
}, "de_ExpiredTokenExceptionRes");
|
|
2649
|
-
var de_IDPCommunicationErrorExceptionRes = /* @__PURE__ */ _24WEKBY3_cjs.__name(async (parsedOutput, context) => {
|
|
2650
|
-
const body = parsedOutput.body;
|
|
2651
|
-
const deserialized = de_IDPCommunicationErrorException(body.Error, context);
|
|
2652
|
-
const exception = new IDPCommunicationErrorException({
|
|
2653
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2654
|
-
...deserialized
|
|
2655
|
-
});
|
|
2656
|
-
return YHGTF22I_cjs.decorateServiceException(exception, body);
|
|
2657
|
-
}, "de_IDPCommunicationErrorExceptionRes");
|
|
2658
|
-
var de_IDPRejectedClaimExceptionRes = /* @__PURE__ */ _24WEKBY3_cjs.__name(async (parsedOutput, context) => {
|
|
2659
|
-
const body = parsedOutput.body;
|
|
2660
|
-
const deserialized = de_IDPRejectedClaimException(body.Error, context);
|
|
2661
|
-
const exception = new IDPRejectedClaimException({
|
|
2662
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2663
|
-
...deserialized
|
|
2664
|
-
});
|
|
2665
|
-
return YHGTF22I_cjs.decorateServiceException(exception, body);
|
|
2666
|
-
}, "de_IDPRejectedClaimExceptionRes");
|
|
2667
|
-
var de_InvalidIdentityTokenExceptionRes = /* @__PURE__ */ _24WEKBY3_cjs.__name(async (parsedOutput, context) => {
|
|
2668
|
-
const body = parsedOutput.body;
|
|
2669
|
-
const deserialized = de_InvalidIdentityTokenException(body.Error, context);
|
|
2670
|
-
const exception = new InvalidIdentityTokenException({
|
|
2671
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2672
|
-
...deserialized
|
|
2673
|
-
});
|
|
2674
|
-
return YHGTF22I_cjs.decorateServiceException(exception, body);
|
|
2675
|
-
}, "de_InvalidIdentityTokenExceptionRes");
|
|
2676
|
-
var de_MalformedPolicyDocumentExceptionRes = /* @__PURE__ */ _24WEKBY3_cjs.__name(async (parsedOutput, context) => {
|
|
2677
|
-
const body = parsedOutput.body;
|
|
2678
|
-
const deserialized = de_MalformedPolicyDocumentException(body.Error, context);
|
|
2679
|
-
const exception = new MalformedPolicyDocumentException({
|
|
2680
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2681
|
-
...deserialized
|
|
2682
|
-
});
|
|
2683
|
-
return YHGTF22I_cjs.decorateServiceException(exception, body);
|
|
2684
|
-
}, "de_MalformedPolicyDocumentExceptionRes");
|
|
2685
|
-
var de_PackedPolicyTooLargeExceptionRes = /* @__PURE__ */ _24WEKBY3_cjs.__name(async (parsedOutput, context) => {
|
|
2686
|
-
const body = parsedOutput.body;
|
|
2687
|
-
const deserialized = de_PackedPolicyTooLargeException(body.Error, context);
|
|
2688
|
-
const exception = new PackedPolicyTooLargeException({
|
|
2689
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2690
|
-
...deserialized
|
|
2691
|
-
});
|
|
2692
|
-
return YHGTF22I_cjs.decorateServiceException(exception, body);
|
|
2693
|
-
}, "de_PackedPolicyTooLargeExceptionRes");
|
|
2694
|
-
var de_RegionDisabledExceptionRes = /* @__PURE__ */ _24WEKBY3_cjs.__name(async (parsedOutput, context) => {
|
|
2695
|
-
const body = parsedOutput.body;
|
|
2696
|
-
const deserialized = de_RegionDisabledException(body.Error, context);
|
|
2697
|
-
const exception = new RegionDisabledException({
|
|
2698
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2699
|
-
...deserialized
|
|
2700
|
-
});
|
|
2701
|
-
return YHGTF22I_cjs.decorateServiceException(exception, body);
|
|
2702
|
-
}, "de_RegionDisabledExceptionRes");
|
|
2703
|
-
var se_AssumeRoleRequest = /* @__PURE__ */ _24WEKBY3_cjs.__name((input, context) => {
|
|
2704
|
-
const entries = {};
|
|
2705
|
-
if (input[_RA] != null) {
|
|
2706
|
-
entries[_RA] = input[_RA];
|
|
2707
|
-
}
|
|
2708
|
-
if (input[_RSN] != null) {
|
|
2709
|
-
entries[_RSN] = input[_RSN];
|
|
2710
|
-
}
|
|
2711
|
-
if (input[_PA] != null) {
|
|
2712
|
-
const memberEntries = se_policyDescriptorListType(input[_PA], context);
|
|
2713
|
-
if (input[_PA]?.length === 0) {
|
|
2714
|
-
entries.PolicyArns = [];
|
|
2715
|
-
}
|
|
2716
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
2717
|
-
const loc = `PolicyArns.${key}`;
|
|
2718
|
-
entries[loc] = value;
|
|
2719
|
-
});
|
|
2720
|
-
}
|
|
2721
|
-
if (input[_P] != null) {
|
|
2722
|
-
entries[_P] = input[_P];
|
|
2723
|
-
}
|
|
2724
|
-
if (input[_DS] != null) {
|
|
2725
|
-
entries[_DS] = input[_DS];
|
|
2726
|
-
}
|
|
2727
|
-
if (input[_T] != null) {
|
|
2728
|
-
const memberEntries = se_tagListType(input[_T], context);
|
|
2729
|
-
if (input[_T]?.length === 0) {
|
|
2730
|
-
entries.Tags = [];
|
|
2731
|
-
}
|
|
2732
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
2733
|
-
const loc = `Tags.${key}`;
|
|
2734
|
-
entries[loc] = value;
|
|
2735
|
-
});
|
|
2736
|
-
}
|
|
2737
|
-
if (input[_TTK] != null) {
|
|
2738
|
-
const memberEntries = se_tagKeyListType(input[_TTK], context);
|
|
2739
|
-
if (input[_TTK]?.length === 0) {
|
|
2740
|
-
entries.TransitiveTagKeys = [];
|
|
2741
|
-
}
|
|
2742
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
2743
|
-
const loc = `TransitiveTagKeys.${key}`;
|
|
2744
|
-
entries[loc] = value;
|
|
2745
|
-
});
|
|
2746
|
-
}
|
|
2747
|
-
if (input[_EI] != null) {
|
|
2748
|
-
entries[_EI] = input[_EI];
|
|
2749
|
-
}
|
|
2750
|
-
if (input[_SN] != null) {
|
|
2751
|
-
entries[_SN] = input[_SN];
|
|
2752
|
-
}
|
|
2753
|
-
if (input[_TC] != null) {
|
|
2754
|
-
entries[_TC] = input[_TC];
|
|
2755
|
-
}
|
|
2756
|
-
if (input[_SI] != null) {
|
|
2757
|
-
entries[_SI] = input[_SI];
|
|
2758
|
-
}
|
|
2759
|
-
if (input[_PC] != null) {
|
|
2760
|
-
const memberEntries = se_ProvidedContextsListType(input[_PC], context);
|
|
2761
|
-
if (input[_PC]?.length === 0) {
|
|
2762
|
-
entries.ProvidedContexts = [];
|
|
2763
|
-
}
|
|
2764
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
2765
|
-
const loc = `ProvidedContexts.${key}`;
|
|
2766
|
-
entries[loc] = value;
|
|
2767
|
-
});
|
|
2768
|
-
}
|
|
2769
|
-
return entries;
|
|
2770
|
-
}, "se_AssumeRoleRequest");
|
|
2771
|
-
var se_AssumeRoleWithWebIdentityRequest = /* @__PURE__ */ _24WEKBY3_cjs.__name((input, context) => {
|
|
2772
|
-
const entries = {};
|
|
2773
|
-
if (input[_RA] != null) {
|
|
2774
|
-
entries[_RA] = input[_RA];
|
|
2775
|
-
}
|
|
2776
|
-
if (input[_RSN] != null) {
|
|
2777
|
-
entries[_RSN] = input[_RSN];
|
|
2778
|
-
}
|
|
2779
|
-
if (input[_WIT] != null) {
|
|
2780
|
-
entries[_WIT] = input[_WIT];
|
|
2781
|
-
}
|
|
2782
|
-
if (input[_PI] != null) {
|
|
2783
|
-
entries[_PI] = input[_PI];
|
|
2784
|
-
}
|
|
2785
|
-
if (input[_PA] != null) {
|
|
2786
|
-
const memberEntries = se_policyDescriptorListType(input[_PA], context);
|
|
2787
|
-
if (input[_PA]?.length === 0) {
|
|
2788
|
-
entries.PolicyArns = [];
|
|
2789
|
-
}
|
|
2790
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
2791
|
-
const loc = `PolicyArns.${key}`;
|
|
2792
|
-
entries[loc] = value;
|
|
2793
|
-
});
|
|
2794
|
-
}
|
|
2795
|
-
if (input[_P] != null) {
|
|
2796
|
-
entries[_P] = input[_P];
|
|
2797
|
-
}
|
|
2798
|
-
if (input[_DS] != null) {
|
|
2799
|
-
entries[_DS] = input[_DS];
|
|
2800
|
-
}
|
|
2801
|
-
return entries;
|
|
2802
|
-
}, "se_AssumeRoleWithWebIdentityRequest");
|
|
2803
|
-
var se_policyDescriptorListType = /* @__PURE__ */ _24WEKBY3_cjs.__name((input, context) => {
|
|
2804
|
-
const entries = {};
|
|
2805
|
-
let counter = 1;
|
|
2806
|
-
for (const entry of input) {
|
|
2807
|
-
if (entry === null) {
|
|
2808
|
-
continue;
|
|
2809
|
-
}
|
|
2810
|
-
const memberEntries = se_PolicyDescriptorType(entry, context);
|
|
2811
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
2812
|
-
entries[`member.${counter}.${key}`] = value;
|
|
2813
|
-
});
|
|
2814
|
-
counter++;
|
|
2815
|
-
}
|
|
2816
|
-
return entries;
|
|
2817
|
-
}, "se_policyDescriptorListType");
|
|
2818
|
-
var se_PolicyDescriptorType = /* @__PURE__ */ _24WEKBY3_cjs.__name((input, context) => {
|
|
2819
|
-
const entries = {};
|
|
2820
|
-
if (input[_a] != null) {
|
|
2821
|
-
entries[_a] = input[_a];
|
|
2822
|
-
}
|
|
2823
|
-
return entries;
|
|
2824
|
-
}, "se_PolicyDescriptorType");
|
|
2825
|
-
var se_ProvidedContext = /* @__PURE__ */ _24WEKBY3_cjs.__name((input, context) => {
|
|
2826
|
-
const entries = {};
|
|
2827
|
-
if (input[_PAr] != null) {
|
|
2828
|
-
entries[_PAr] = input[_PAr];
|
|
2829
|
-
}
|
|
2830
|
-
if (input[_CA] != null) {
|
|
2831
|
-
entries[_CA] = input[_CA];
|
|
2832
|
-
}
|
|
2833
|
-
return entries;
|
|
2834
|
-
}, "se_ProvidedContext");
|
|
2835
|
-
var se_ProvidedContextsListType = /* @__PURE__ */ _24WEKBY3_cjs.__name((input, context) => {
|
|
2836
|
-
const entries = {};
|
|
2837
|
-
let counter = 1;
|
|
2838
|
-
for (const entry of input) {
|
|
2839
|
-
if (entry === null) {
|
|
2840
|
-
continue;
|
|
2841
|
-
}
|
|
2842
|
-
const memberEntries = se_ProvidedContext(entry, context);
|
|
2843
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
2844
|
-
entries[`member.${counter}.${key}`] = value;
|
|
2845
|
-
});
|
|
2846
|
-
counter++;
|
|
2847
|
-
}
|
|
2848
|
-
return entries;
|
|
2849
|
-
}, "se_ProvidedContextsListType");
|
|
2850
|
-
var se_Tag = /* @__PURE__ */ _24WEKBY3_cjs.__name((input, context) => {
|
|
2851
|
-
const entries = {};
|
|
2852
|
-
if (input[_K] != null) {
|
|
2853
|
-
entries[_K] = input[_K];
|
|
2854
|
-
}
|
|
2855
|
-
if (input[_Va] != null) {
|
|
2856
|
-
entries[_Va] = input[_Va];
|
|
2857
|
-
}
|
|
2858
|
-
return entries;
|
|
2859
|
-
}, "se_Tag");
|
|
2860
|
-
var se_tagKeyListType = /* @__PURE__ */ _24WEKBY3_cjs.__name((input, context) => {
|
|
2861
|
-
const entries = {};
|
|
2862
|
-
let counter = 1;
|
|
2863
|
-
for (const entry of input) {
|
|
2864
|
-
if (entry === null) {
|
|
2865
|
-
continue;
|
|
2866
|
-
}
|
|
2867
|
-
entries[`member.${counter}`] = entry;
|
|
2868
|
-
counter++;
|
|
2869
|
-
}
|
|
2870
|
-
return entries;
|
|
2871
|
-
}, "se_tagKeyListType");
|
|
2872
|
-
var se_tagListType = /* @__PURE__ */ _24WEKBY3_cjs.__name((input, context) => {
|
|
2873
|
-
const entries = {};
|
|
2874
|
-
let counter = 1;
|
|
2875
|
-
for (const entry of input) {
|
|
2876
|
-
if (entry === null) {
|
|
2877
|
-
continue;
|
|
2878
|
-
}
|
|
2879
|
-
const memberEntries = se_Tag(entry, context);
|
|
2880
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
2881
|
-
entries[`member.${counter}.${key}`] = value;
|
|
2882
|
-
});
|
|
2883
|
-
counter++;
|
|
2884
|
-
}
|
|
2885
|
-
return entries;
|
|
2886
|
-
}, "se_tagListType");
|
|
2887
|
-
var de_AssumedRoleUser = /* @__PURE__ */ _24WEKBY3_cjs.__name((output, context) => {
|
|
2888
|
-
const contents = {};
|
|
2889
|
-
if (output[_ARI] != null) {
|
|
2890
|
-
contents[_ARI] = Q5L3QIKZ_cjs.expectString(output[_ARI]);
|
|
2891
|
-
}
|
|
2892
|
-
if (output[_Ar] != null) {
|
|
2893
|
-
contents[_Ar] = Q5L3QIKZ_cjs.expectString(output[_Ar]);
|
|
2894
|
-
}
|
|
2895
|
-
return contents;
|
|
2896
|
-
}, "de_AssumedRoleUser");
|
|
2897
|
-
var de_AssumeRoleResponse = /* @__PURE__ */ _24WEKBY3_cjs.__name((output, context) => {
|
|
2898
|
-
const contents = {};
|
|
2899
|
-
if (output[_C] != null) {
|
|
2900
|
-
contents[_C] = de_Credentials(output[_C], context);
|
|
2901
|
-
}
|
|
2902
|
-
if (output[_ARU] != null) {
|
|
2903
|
-
contents[_ARU] = de_AssumedRoleUser(output[_ARU], context);
|
|
2904
|
-
}
|
|
2905
|
-
if (output[_PPS] != null) {
|
|
2906
|
-
contents[_PPS] = Q5L3QIKZ_cjs.strictParseInt32(output[_PPS]);
|
|
2907
|
-
}
|
|
2908
|
-
if (output[_SI] != null) {
|
|
2909
|
-
contents[_SI] = Q5L3QIKZ_cjs.expectString(output[_SI]);
|
|
2910
|
-
}
|
|
2911
|
-
return contents;
|
|
2912
|
-
}, "de_AssumeRoleResponse");
|
|
2913
|
-
var de_AssumeRoleWithWebIdentityResponse = /* @__PURE__ */ _24WEKBY3_cjs.__name((output, context) => {
|
|
2914
|
-
const contents = {};
|
|
2915
|
-
if (output[_C] != null) {
|
|
2916
|
-
contents[_C] = de_Credentials(output[_C], context);
|
|
2917
|
-
}
|
|
2918
|
-
if (output[_SFWIT] != null) {
|
|
2919
|
-
contents[_SFWIT] = Q5L3QIKZ_cjs.expectString(output[_SFWIT]);
|
|
2920
|
-
}
|
|
2921
|
-
if (output[_ARU] != null) {
|
|
2922
|
-
contents[_ARU] = de_AssumedRoleUser(output[_ARU], context);
|
|
2923
|
-
}
|
|
2924
|
-
if (output[_PPS] != null) {
|
|
2925
|
-
contents[_PPS] = Q5L3QIKZ_cjs.strictParseInt32(output[_PPS]);
|
|
2926
|
-
}
|
|
2927
|
-
if (output[_Pr] != null) {
|
|
2928
|
-
contents[_Pr] = Q5L3QIKZ_cjs.expectString(output[_Pr]);
|
|
2929
|
-
}
|
|
2930
|
-
if (output[_Au] != null) {
|
|
2931
|
-
contents[_Au] = Q5L3QIKZ_cjs.expectString(output[_Au]);
|
|
2932
|
-
}
|
|
2933
|
-
if (output[_SI] != null) {
|
|
2934
|
-
contents[_SI] = Q5L3QIKZ_cjs.expectString(output[_SI]);
|
|
2935
|
-
}
|
|
2936
|
-
return contents;
|
|
2937
|
-
}, "de_AssumeRoleWithWebIdentityResponse");
|
|
2938
|
-
var de_Credentials = /* @__PURE__ */ _24WEKBY3_cjs.__name((output, context) => {
|
|
2939
|
-
const contents = {};
|
|
2940
|
-
if (output[_AKI] != null) {
|
|
2941
|
-
contents[_AKI] = Q5L3QIKZ_cjs.expectString(output[_AKI]);
|
|
2942
|
-
}
|
|
2943
|
-
if (output[_SAK] != null) {
|
|
2944
|
-
contents[_SAK] = Q5L3QIKZ_cjs.expectString(output[_SAK]);
|
|
2945
|
-
}
|
|
2946
|
-
if (output[_ST] != null) {
|
|
2947
|
-
contents[_ST] = Q5L3QIKZ_cjs.expectString(output[_ST]);
|
|
2948
|
-
}
|
|
2949
|
-
if (output[_E] != null) {
|
|
2950
|
-
contents[_E] = Q5L3QIKZ_cjs.expectNonNull(_7AUJV34E_cjs.parseRfc3339DateTimeWithOffset(output[_E]));
|
|
2951
|
-
}
|
|
2952
|
-
return contents;
|
|
2953
|
-
}, "de_Credentials");
|
|
2954
|
-
var de_ExpiredTokenException = /* @__PURE__ */ _24WEKBY3_cjs.__name((output, context) => {
|
|
2955
|
-
const contents = {};
|
|
2956
|
-
if (output[_m] != null) {
|
|
2957
|
-
contents[_m] = Q5L3QIKZ_cjs.expectString(output[_m]);
|
|
2958
|
-
}
|
|
2959
|
-
return contents;
|
|
2960
|
-
}, "de_ExpiredTokenException");
|
|
2961
|
-
var de_IDPCommunicationErrorException = /* @__PURE__ */ _24WEKBY3_cjs.__name((output, context) => {
|
|
2962
|
-
const contents = {};
|
|
2963
|
-
if (output[_m] != null) {
|
|
2964
|
-
contents[_m] = Q5L3QIKZ_cjs.expectString(output[_m]);
|
|
2965
|
-
}
|
|
2966
|
-
return contents;
|
|
2967
|
-
}, "de_IDPCommunicationErrorException");
|
|
2968
|
-
var de_IDPRejectedClaimException = /* @__PURE__ */ _24WEKBY3_cjs.__name((output, context) => {
|
|
2969
|
-
const contents = {};
|
|
2970
|
-
if (output[_m] != null) {
|
|
2971
|
-
contents[_m] = Q5L3QIKZ_cjs.expectString(output[_m]);
|
|
2972
|
-
}
|
|
2973
|
-
return contents;
|
|
2974
|
-
}, "de_IDPRejectedClaimException");
|
|
2975
|
-
var de_InvalidIdentityTokenException = /* @__PURE__ */ _24WEKBY3_cjs.__name((output, context) => {
|
|
2976
|
-
const contents = {};
|
|
2977
|
-
if (output[_m] != null) {
|
|
2978
|
-
contents[_m] = Q5L3QIKZ_cjs.expectString(output[_m]);
|
|
2979
|
-
}
|
|
2980
|
-
return contents;
|
|
2981
|
-
}, "de_InvalidIdentityTokenException");
|
|
2982
|
-
var de_MalformedPolicyDocumentException = /* @__PURE__ */ _24WEKBY3_cjs.__name((output, context) => {
|
|
2983
|
-
const contents = {};
|
|
2984
|
-
if (output[_m] != null) {
|
|
2985
|
-
contents[_m] = Q5L3QIKZ_cjs.expectString(output[_m]);
|
|
2986
|
-
}
|
|
2987
|
-
return contents;
|
|
2988
|
-
}, "de_MalformedPolicyDocumentException");
|
|
2989
|
-
var de_PackedPolicyTooLargeException = /* @__PURE__ */ _24WEKBY3_cjs.__name((output, context) => {
|
|
2990
|
-
const contents = {};
|
|
2991
|
-
if (output[_m] != null) {
|
|
2992
|
-
contents[_m] = Q5L3QIKZ_cjs.expectString(output[_m]);
|
|
2993
|
-
}
|
|
2994
|
-
return contents;
|
|
2995
|
-
}, "de_PackedPolicyTooLargeException");
|
|
2996
|
-
var de_RegionDisabledException = /* @__PURE__ */ _24WEKBY3_cjs.__name((output, context) => {
|
|
2997
|
-
const contents = {};
|
|
2998
|
-
if (output[_m] != null) {
|
|
2999
|
-
contents[_m] = Q5L3QIKZ_cjs.expectString(output[_m]);
|
|
3000
|
-
}
|
|
3001
|
-
return contents;
|
|
3002
|
-
}, "de_RegionDisabledException");
|
|
3003
|
-
var deserializeMetadata = /* @__PURE__ */ _24WEKBY3_cjs.__name((output) => ({
|
|
3004
|
-
httpStatusCode: output.statusCode,
|
|
3005
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
3006
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3007
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
3008
|
-
}), "deserializeMetadata");
|
|
3009
|
-
var throwDefaultError = YHGTF22I_cjs.withBaseException(STSServiceException);
|
|
3010
|
-
var buildHttpRpcRequest = /* @__PURE__ */ _24WEKBY3_cjs.__name(async (context, headers, path, resolvedHostname, body) => {
|
|
3011
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3012
|
-
const contents = {
|
|
3013
|
-
protocol,
|
|
3014
|
-
hostname,
|
|
3015
|
-
port,
|
|
3016
|
-
method: "POST",
|
|
3017
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
3018
|
-
headers
|
|
3019
|
-
};
|
|
3020
|
-
if (resolvedHostname !== void 0) {
|
|
3021
|
-
contents.hostname = resolvedHostname;
|
|
3022
|
-
}
|
|
3023
|
-
if (body !== void 0) {
|
|
3024
|
-
contents.body = body;
|
|
3025
|
-
}
|
|
3026
|
-
return new Q5L3QIKZ_cjs.HttpRequest(contents);
|
|
3027
|
-
}, "buildHttpRpcRequest");
|
|
3028
|
-
var SHARED_HEADERS = {
|
|
3029
|
-
"content-type": "application/x-www-form-urlencoded"
|
|
3030
|
-
};
|
|
3031
|
-
var _ = "2011-06-15";
|
|
3032
|
-
var _A = "Action";
|
|
3033
|
-
var _AKI = "AccessKeyId";
|
|
3034
|
-
var _AR = "AssumeRole";
|
|
3035
|
-
var _ARI = "AssumedRoleId";
|
|
3036
|
-
var _ARU = "AssumedRoleUser";
|
|
3037
|
-
var _ARWWI = "AssumeRoleWithWebIdentity";
|
|
3038
|
-
var _Ar = "Arn";
|
|
3039
|
-
var _Au = "Audience";
|
|
3040
|
-
var _C = "Credentials";
|
|
3041
|
-
var _CA = "ContextAssertion";
|
|
3042
|
-
var _DS = "DurationSeconds";
|
|
3043
|
-
var _E = "Expiration";
|
|
3044
|
-
var _EI = "ExternalId";
|
|
3045
|
-
var _K = "Key";
|
|
3046
|
-
var _P = "Policy";
|
|
3047
|
-
var _PA = "PolicyArns";
|
|
3048
|
-
var _PAr = "ProviderArn";
|
|
3049
|
-
var _PC = "ProvidedContexts";
|
|
3050
|
-
var _PI = "ProviderId";
|
|
3051
|
-
var _PPS = "PackedPolicySize";
|
|
3052
|
-
var _Pr = "Provider";
|
|
3053
|
-
var _RA = "RoleArn";
|
|
3054
|
-
var _RSN = "RoleSessionName";
|
|
3055
|
-
var _SAK = "SecretAccessKey";
|
|
3056
|
-
var _SFWIT = "SubjectFromWebIdentityToken";
|
|
3057
|
-
var _SI = "SourceIdentity";
|
|
3058
|
-
var _SN = "SerialNumber";
|
|
3059
|
-
var _ST = "SessionToken";
|
|
3060
|
-
var _T = "Tags";
|
|
3061
|
-
var _TC = "TokenCode";
|
|
3062
|
-
var _TTK = "TransitiveTagKeys";
|
|
3063
|
-
var _V = "Version";
|
|
3064
|
-
var _Va = "Value";
|
|
3065
|
-
var _WIT = "WebIdentityToken";
|
|
3066
|
-
var _a = "arn";
|
|
3067
|
-
var _m = "message";
|
|
3068
|
-
var buildFormUrlencodedString = /* @__PURE__ */ _24WEKBY3_cjs.__name((formEntries) => Object.entries(formEntries).map(([key, value]) => UOMNLT53_cjs.extendedEncodeURIComponent(key) + "=" + UOMNLT53_cjs.extendedEncodeURIComponent(value)).join("&"), "buildFormUrlencodedString");
|
|
3069
|
-
var loadQueryErrorCode = /* @__PURE__ */ _24WEKBY3_cjs.__name((output, data) => {
|
|
3070
|
-
if (data.Error?.Code !== void 0) {
|
|
3071
|
-
return data.Error.Code;
|
|
3072
|
-
}
|
|
3073
|
-
if (output.statusCode == 404) {
|
|
3074
|
-
return "NotFound";
|
|
3075
|
-
}
|
|
3076
|
-
}, "loadQueryErrorCode");
|
|
3077
|
-
|
|
3078
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.879.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleCommand.js
|
|
3079
|
-
var AssumeRoleCommand = class extends YHGTF22I_cjs.Command.classBuilder().ep(commonParams).m(function(Command2, cs, config, o2) {
|
|
3080
|
-
return [
|
|
3081
|
-
YHGTF22I_cjs.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
3082
|
-
YHGTF22I_cjs.getEndpointPlugin(config, Command2.getEndpointParameterInstructions())
|
|
3083
|
-
];
|
|
3084
|
-
}).s("AWSSecurityTokenServiceV20110615", "AssumeRole", {}).n("STSClient", "AssumeRoleCommand").f(void 0, AssumeRoleResponseFilterSensitiveLog).ser(se_AssumeRoleCommand).de(de_AssumeRoleCommand).build() {
|
|
3085
|
-
static {
|
|
3086
|
-
_24WEKBY3_cjs.__name(this, "AssumeRoleCommand");
|
|
3087
|
-
}
|
|
3088
|
-
};
|
|
3089
|
-
|
|
3090
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.879.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.js
|
|
3091
|
-
_24WEKBY3_cjs.init_cjs_shims();
|
|
3092
|
-
var AssumeRoleWithWebIdentityCommand = class extends YHGTF22I_cjs.Command.classBuilder().ep(commonParams).m(function(Command2, cs, config, o2) {
|
|
3093
|
-
return [
|
|
3094
|
-
YHGTF22I_cjs.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
3095
|
-
YHGTF22I_cjs.getEndpointPlugin(config, Command2.getEndpointParameterInstructions())
|
|
3096
|
-
];
|
|
3097
|
-
}).s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithWebIdentity", {}).n("STSClient", "AssumeRoleWithWebIdentityCommand").f(AssumeRoleWithWebIdentityRequestFilterSensitiveLog, AssumeRoleWithWebIdentityResponseFilterSensitiveLog).ser(se_AssumeRoleWithWebIdentityCommand).de(de_AssumeRoleWithWebIdentityCommand).build() {
|
|
3098
|
-
static {
|
|
3099
|
-
_24WEKBY3_cjs.__name(this, "AssumeRoleWithWebIdentityCommand");
|
|
3100
|
-
}
|
|
3101
|
-
};
|
|
3102
|
-
|
|
3103
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.879.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STS.js
|
|
3104
|
-
var commands = {
|
|
3105
|
-
AssumeRoleCommand,
|
|
3106
|
-
AssumeRoleWithWebIdentityCommand
|
|
3107
|
-
};
|
|
3108
|
-
var STS = class extends STSClient {
|
|
3109
|
-
static {
|
|
3110
|
-
_24WEKBY3_cjs.__name(this, "STS");
|
|
3111
|
-
}
|
|
3112
|
-
};
|
|
3113
|
-
MDE37STN_cjs.createAggregatedClient(commands, STS);
|
|
3114
|
-
|
|
3115
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.879.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/index.js
|
|
3116
|
-
_24WEKBY3_cjs.init_cjs_shims();
|
|
3117
|
-
|
|
3118
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.879.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/index.js
|
|
3119
|
-
_24WEKBY3_cjs.init_cjs_shims();
|
|
3120
|
-
|
|
3121
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.879.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultRoleAssumers.js
|
|
3122
|
-
_24WEKBY3_cjs.init_cjs_shims();
|
|
3123
|
-
|
|
3124
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.879.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultStsRoleAssumers.js
|
|
3125
|
-
_24WEKBY3_cjs.init_cjs_shims();
|
|
3126
|
-
var ASSUME_ROLE_DEFAULT_REGION = "us-east-1";
|
|
3127
|
-
var getAccountIdFromAssumedRoleUser = /* @__PURE__ */ _24WEKBY3_cjs.__name((assumedRoleUser) => {
|
|
3128
|
-
if (typeof assumedRoleUser?.Arn === "string") {
|
|
3129
|
-
const arnComponents = assumedRoleUser.Arn.split(":");
|
|
3130
|
-
if (arnComponents.length > 4 && arnComponents[4] !== "") {
|
|
3131
|
-
return arnComponents[4];
|
|
3132
|
-
}
|
|
3133
|
-
}
|
|
3134
|
-
return void 0;
|
|
3135
|
-
}, "getAccountIdFromAssumedRoleUser");
|
|
3136
|
-
var resolveRegion = /* @__PURE__ */ _24WEKBY3_cjs.__name(async (_region, _parentRegion, credentialProviderLogger) => {
|
|
3137
|
-
const region = typeof _region === "function" ? await _region() : _region;
|
|
3138
|
-
const parentRegion = typeof _parentRegion === "function" ? await _parentRegion() : _parentRegion;
|
|
3139
|
-
credentialProviderLogger?.debug?.("@aws-sdk/client-sts::resolveRegion", "accepting first of:", `${region} (provider)`, `${parentRegion} (parent client)`, `${ASSUME_ROLE_DEFAULT_REGION} (STS default)`);
|
|
3140
|
-
return region ?? parentRegion ?? ASSUME_ROLE_DEFAULT_REGION;
|
|
3141
|
-
}, "resolveRegion");
|
|
3142
|
-
var getDefaultRoleAssumer = /* @__PURE__ */ _24WEKBY3_cjs.__name((stsOptions, STSClient2) => {
|
|
3143
|
-
let stsClient;
|
|
3144
|
-
let closureSourceCreds;
|
|
3145
|
-
return async (sourceCreds, params) => {
|
|
3146
|
-
closureSourceCreds = sourceCreds;
|
|
3147
|
-
if (!stsClient) {
|
|
3148
|
-
const { logger = stsOptions?.parentClientConfig?.logger, region, requestHandler = stsOptions?.parentClientConfig?.requestHandler, credentialProviderLogger } = stsOptions;
|
|
3149
|
-
const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger);
|
|
3150
|
-
const isCompatibleRequestHandler = !isH2(requestHandler);
|
|
3151
|
-
stsClient = new STSClient2({
|
|
3152
|
-
profile: stsOptions?.parentClientConfig?.profile,
|
|
3153
|
-
credentialDefaultProvider: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => async () => closureSourceCreds, "credentialDefaultProvider"),
|
|
3154
|
-
region: resolvedRegion,
|
|
3155
|
-
requestHandler: isCompatibleRequestHandler ? requestHandler : void 0,
|
|
3156
|
-
logger
|
|
3157
|
-
});
|
|
3158
|
-
}
|
|
3159
|
-
const { Credentials, AssumedRoleUser } = await stsClient.send(new AssumeRoleCommand(params));
|
|
3160
|
-
if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) {
|
|
3161
|
-
throw new Error(`Invalid response from STS.assumeRole call with role ${params.RoleArn}`);
|
|
3162
|
-
}
|
|
3163
|
-
const accountId = getAccountIdFromAssumedRoleUser(AssumedRoleUser);
|
|
3164
|
-
const credentials = {
|
|
3165
|
-
accessKeyId: Credentials.AccessKeyId,
|
|
3166
|
-
secretAccessKey: Credentials.SecretAccessKey,
|
|
3167
|
-
sessionToken: Credentials.SessionToken,
|
|
3168
|
-
expiration: Credentials.Expiration,
|
|
3169
|
-
...Credentials.CredentialScope && {
|
|
3170
|
-
credentialScope: Credentials.CredentialScope
|
|
3171
|
-
},
|
|
3172
|
-
...accountId && {
|
|
3173
|
-
accountId
|
|
3174
|
-
}
|
|
3175
|
-
};
|
|
3176
|
-
_3NXVR3DC_cjs.setCredentialFeature(credentials, "CREDENTIALS_STS_ASSUME_ROLE", "i");
|
|
3177
|
-
return credentials;
|
|
3178
|
-
};
|
|
3179
|
-
}, "getDefaultRoleAssumer");
|
|
3180
|
-
var getDefaultRoleAssumerWithWebIdentity = /* @__PURE__ */ _24WEKBY3_cjs.__name((stsOptions, STSClient2) => {
|
|
3181
|
-
let stsClient;
|
|
3182
|
-
return async (params) => {
|
|
3183
|
-
if (!stsClient) {
|
|
3184
|
-
const { logger = stsOptions?.parentClientConfig?.logger, region, requestHandler = stsOptions?.parentClientConfig?.requestHandler, credentialProviderLogger } = stsOptions;
|
|
3185
|
-
const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger);
|
|
3186
|
-
const isCompatibleRequestHandler = !isH2(requestHandler);
|
|
3187
|
-
stsClient = new STSClient2({
|
|
3188
|
-
profile: stsOptions?.parentClientConfig?.profile,
|
|
3189
|
-
region: resolvedRegion,
|
|
3190
|
-
requestHandler: isCompatibleRequestHandler ? requestHandler : void 0,
|
|
3191
|
-
logger
|
|
3192
|
-
});
|
|
3193
|
-
}
|
|
3194
|
-
const { Credentials, AssumedRoleUser } = await stsClient.send(new AssumeRoleWithWebIdentityCommand(params));
|
|
3195
|
-
if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) {
|
|
3196
|
-
throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${params.RoleArn}`);
|
|
3197
|
-
}
|
|
3198
|
-
const accountId = getAccountIdFromAssumedRoleUser(AssumedRoleUser);
|
|
3199
|
-
const credentials = {
|
|
3200
|
-
accessKeyId: Credentials.AccessKeyId,
|
|
3201
|
-
secretAccessKey: Credentials.SecretAccessKey,
|
|
3202
|
-
sessionToken: Credentials.SessionToken,
|
|
3203
|
-
expiration: Credentials.Expiration,
|
|
3204
|
-
...Credentials.CredentialScope && {
|
|
3205
|
-
credentialScope: Credentials.CredentialScope
|
|
3206
|
-
},
|
|
3207
|
-
...accountId && {
|
|
3208
|
-
accountId
|
|
3209
|
-
}
|
|
3210
|
-
};
|
|
3211
|
-
if (accountId) {
|
|
3212
|
-
_3NXVR3DC_cjs.setCredentialFeature(credentials, "RESOLVED_ACCOUNT_ID", "T");
|
|
3213
|
-
}
|
|
3214
|
-
_3NXVR3DC_cjs.setCredentialFeature(credentials, "CREDENTIALS_STS_ASSUME_ROLE_WEB_ID", "k");
|
|
3215
|
-
return credentials;
|
|
3216
|
-
};
|
|
3217
|
-
}, "getDefaultRoleAssumerWithWebIdentity");
|
|
3218
|
-
var isH2 = /* @__PURE__ */ _24WEKBY3_cjs.__name((requestHandler) => {
|
|
3219
|
-
return requestHandler?.metadata?.handlerProtocol === "h2";
|
|
3220
|
-
}, "isH2");
|
|
3221
|
-
|
|
3222
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.879.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultRoleAssumers.js
|
|
3223
|
-
var getCustomizableStsClientCtor = /* @__PURE__ */ _24WEKBY3_cjs.__name((baseCtor, customizations) => {
|
|
3224
|
-
if (!customizations) return baseCtor;
|
|
3225
|
-
else return class CustomizableSTSClient extends baseCtor {
|
|
3226
|
-
static {
|
|
3227
|
-
_24WEKBY3_cjs.__name(this, "CustomizableSTSClient");
|
|
3228
|
-
}
|
|
3229
|
-
constructor(config) {
|
|
3230
|
-
super(config);
|
|
3231
|
-
for (const customization of customizations) {
|
|
3232
|
-
this.middlewareStack.use(customization);
|
|
3233
|
-
}
|
|
3234
|
-
}
|
|
3235
|
-
};
|
|
3236
|
-
}, "getCustomizableStsClientCtor");
|
|
3237
|
-
var getDefaultRoleAssumer2 = /* @__PURE__ */ _24WEKBY3_cjs.__name((stsOptions = {}, stsPlugins) => getDefaultRoleAssumer(stsOptions, getCustomizableStsClientCtor(STSClient, stsPlugins)), "getDefaultRoleAssumer");
|
|
3238
|
-
var getDefaultRoleAssumerWithWebIdentity2 = /* @__PURE__ */ _24WEKBY3_cjs.__name((stsOptions = {}, stsPlugins) => getDefaultRoleAssumerWithWebIdentity(stsOptions, getCustomizableStsClientCtor(STSClient, stsPlugins)), "getDefaultRoleAssumerWithWebIdentity");
|
|
3239
|
-
var decorateDefaultCredentialProvider = /* @__PURE__ */ _24WEKBY3_cjs.__name((provider) => (input) => provider({
|
|
3240
|
-
roleAssumer: getDefaultRoleAssumer2(input),
|
|
3241
|
-
roleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity2(input),
|
|
3242
|
-
...input
|
|
3243
|
-
}), "decorateDefaultCredentialProvider");
|
|
3244
|
-
|
|
3245
|
-
Object.defineProperty(exports, "$Command", {
|
|
3246
|
-
enumerable: true,
|
|
3247
|
-
get: function () { return YHGTF22I_cjs.Command; }
|
|
3248
|
-
});
|
|
3249
|
-
Object.defineProperty(exports, "__Client", {
|
|
3250
|
-
enumerable: true,
|
|
3251
|
-
get: function () { return YHGTF22I_cjs.Client; }
|
|
3252
|
-
});
|
|
3253
|
-
exports.AssumeRoleCommand = AssumeRoleCommand;
|
|
3254
|
-
exports.AssumeRoleResponseFilterSensitiveLog = AssumeRoleResponseFilterSensitiveLog;
|
|
3255
|
-
exports.AssumeRoleWithWebIdentityCommand = AssumeRoleWithWebIdentityCommand;
|
|
3256
|
-
exports.AssumeRoleWithWebIdentityRequestFilterSensitiveLog = AssumeRoleWithWebIdentityRequestFilterSensitiveLog;
|
|
3257
|
-
exports.AssumeRoleWithWebIdentityResponseFilterSensitiveLog = AssumeRoleWithWebIdentityResponseFilterSensitiveLog;
|
|
3258
|
-
exports.CredentialsFilterSensitiveLog = CredentialsFilterSensitiveLog;
|
|
3259
|
-
exports.ExpiredTokenException = ExpiredTokenException;
|
|
3260
|
-
exports.IDPCommunicationErrorException = IDPCommunicationErrorException;
|
|
3261
|
-
exports.IDPRejectedClaimException = IDPRejectedClaimException;
|
|
3262
|
-
exports.InvalidIdentityTokenException = InvalidIdentityTokenException;
|
|
3263
|
-
exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException;
|
|
3264
|
-
exports.PackedPolicyTooLargeException = PackedPolicyTooLargeException;
|
|
3265
|
-
exports.RegionDisabledException = RegionDisabledException;
|
|
3266
|
-
exports.STS = STS;
|
|
3267
|
-
exports.STSClient = STSClient;
|
|
3268
|
-
exports.STSServiceException = STSServiceException;
|
|
3269
|
-
exports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider;
|
|
3270
|
-
exports.getDefaultRoleAssumer = getDefaultRoleAssumer2;
|
|
3271
|
-
exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity2;
|
|
3272
|
-
//# sourceMappingURL=HVDH52K5.cjs.map
|
|
3273
|
-
//# sourceMappingURL=HVDH52K5.cjs.map
|