gitframes 1.2.35
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/LICENCE +202 -0
- package/README.md +77 -0
- package/dist/audio/index.d.mts +2 -0
- package/dist/audio/index.mjs +6 -0
- package/dist/audio-C0YslYEG.d.mts +32 -0
- package/dist/audio-C0YslYEG.d.mts.map +1 -0
- package/dist/audio-C4kiPbrV.mjs +1866 -0
- package/dist/audio-C4kiPbrV.mjs.map +1 -0
- package/dist/audio-CiXUMGyk.mjs +578 -0
- package/dist/audio-CiXUMGyk.mjs.map +1 -0
- package/dist/chunk-GMkBE123.mjs +47 -0
- package/dist/client-Dyypr8tt.mjs +66 -0
- package/dist/client-Dyypr8tt.mjs.map +1 -0
- package/dist/dist-C37594c6.mjs +27195 -0
- package/dist/dist-C37594c6.mjs.map +1 -0
- package/dist/dist-CMF9eNLB.mjs +4062 -0
- package/dist/dist-CMF9eNLB.mjs.map +1 -0
- package/dist/dist-cjs--KIl7Gqy.mjs +6 -0
- package/dist/dist-cjs-B-_4TVjP.mjs +66 -0
- package/dist/dist-cjs-B-_4TVjP.mjs.map +1 -0
- package/dist/dist-cjs-B3TIyZ3K.mjs +437 -0
- package/dist/dist-cjs-B3TIyZ3K.mjs.map +1 -0
- package/dist/dist-cjs-Bsz2eGzl.mjs +9069 -0
- package/dist/dist-cjs-Bsz2eGzl.mjs.map +1 -0
- package/dist/dist-cjs-BuJ2FXob.mjs +181 -0
- package/dist/dist-cjs-BuJ2FXob.mjs.map +1 -0
- package/dist/dist-cjs-C-FMsqmo.mjs +1091 -0
- package/dist/dist-cjs-C-FMsqmo.mjs.map +1 -0
- package/dist/dist-cjs-C4b9TCXd.mjs +48 -0
- package/dist/dist-cjs-C4b9TCXd.mjs.map +1 -0
- package/dist/dist-cjs-C817PNLc.mjs +51 -0
- package/dist/dist-cjs-C817PNLc.mjs.map +1 -0
- package/dist/dist-cjs-CBnnS4k8.mjs +43 -0
- package/dist/dist-cjs-CBnnS4k8.mjs.map +1 -0
- package/dist/dist-cjs-CWbeD0Mu.mjs +64 -0
- package/dist/dist-cjs-CWbeD0Mu.mjs.map +1 -0
- package/dist/dist-cjs-ChXEJ1ro.mjs +85 -0
- package/dist/dist-cjs-ChXEJ1ro.mjs.map +1 -0
- package/dist/dist-cjs-CslF8Dju.mjs +153 -0
- package/dist/dist-cjs-CslF8Dju.mjs.map +1 -0
- package/dist/dist-cjs-D52jYyEm.mjs +98 -0
- package/dist/dist-cjs-D52jYyEm.mjs.map +1 -0
- package/dist/dist-cjs-DhWYgNfa.mjs +209 -0
- package/dist/dist-cjs-DhWYgNfa.mjs.map +1 -0
- package/dist/dist-cjs-DssYqayv.mjs +5015 -0
- package/dist/dist-cjs-DssYqayv.mjs.map +1 -0
- package/dist/dist-cjs-Du6DnSjo.mjs +137 -0
- package/dist/dist-cjs-Du6DnSjo.mjs.map +1 -0
- package/dist/dist-cjs-b-oBQaxe.mjs +323 -0
- package/dist/dist-cjs-b-oBQaxe.mjs.map +1 -0
- package/dist/effects/index.d.mts +2 -0
- package/dist/effects/index.mjs +4 -0
- package/dist/effects-4t4qk-BR.mjs +21130 -0
- package/dist/effects-4t4qk-BR.mjs.map +1 -0
- package/dist/event-streams-B0YUBtyM.mjs +204 -0
- package/dist/event-streams-B0YUBtyM.mjs.map +1 -0
- package/dist/fonts/index.d.mts +2 -0
- package/dist/fonts/index.mjs +3 -0
- package/dist/fonts-Dn18r_ST.mjs +188 -0
- package/dist/fonts-Dn18r_ST.mjs.map +1 -0
- package/dist/index-B1557AUi.d.mts +928 -0
- package/dist/index-B1557AUi.d.mts.map +1 -0
- package/dist/index-DSaMXGoA.d.mts +65 -0
- package/dist/index-DSaMXGoA.d.mts.map +1 -0
- package/dist/index-FICUHo4P.d.mts +69 -0
- package/dist/index-FICUHo4P.d.mts.map +1 -0
- package/dist/index-YZsTjqut.d.mts +147 -0
- package/dist/index-YZsTjqut.d.mts.map +1 -0
- package/dist/index.d.mts +736 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +7135 -0
- package/dist/index.mjs.map +1 -0
- package/dist/package-5RsA21g-.mjs +6 -0
- package/dist/package-5RsA21g-.mjs.map +1 -0
- package/dist/react/index.d.mts +3 -0
- package/dist/react/index.mjs +4 -0
- package/dist/renderer/index.d.mts +2 -0
- package/dist/renderer/index.mjs +6 -0
- package/dist/renderer-DVi31fSv.mjs +23274 -0
- package/dist/renderer-DVi31fSv.mjs.map +1 -0
- package/dist/renderers-CLJQRPVU-CMZnHNK0.mjs +49 -0
- package/dist/renderers-CLJQRPVU-CMZnHNK0.mjs.map +1 -0
- package/dist/signals/index.d.mts +9 -0
- package/dist/signals/index.mjs +8 -0
- package/dist/signals-BB_kdndF.mjs +227 -0
- package/dist/signals-BB_kdndF.mjs.map +1 -0
- package/dist/signin-CVUAIuED.mjs +865 -0
- package/dist/signin-CVUAIuED.mjs.map +1 -0
- package/dist/sso-oidc-D1GnNQYW.mjs +1051 -0
- package/dist/sso-oidc-D1GnNQYW.mjs.map +1 -0
- package/dist/sts-Bz-e3kNW.mjs +6 -0
- package/dist/sts-I4KhuCBs.mjs +1395 -0
- package/dist/sts-I4KhuCBs.mjs.map +1 -0
- package/package.json +174 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dist-cjs-C-FMsqmo.mjs","names":["e","EndpointCache","awsEndpointFunctions","__ServiceException","__BaseException","getRuntimeConfig","fromBase64","toBase64","NoOpLogger","parseUrl","fromUtf8","toUtf8","loadConfigsForDefaultMode","getSharedRuntimeConfig","calculateBodyLength","packageInfo.version","NODE_MAX_ATTEMPT_CONFIG_OPTIONS","NODE_REGION_CONFIG_OPTIONS","NODE_REGION_CONFIG_FILE_OPTIONS","RequestHandler","NODE_RETRY_MODE_CONFIG_OPTIONS","DEFAULT_RETRY_MODE","Hash","streamCollector","NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS","NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS","NODE_APP_ID_CONFIG_OPTIONS","__Client","__getRuntimeConfig","$Command","e","SSOClient","GetRoleCredentialsCommand"],"sources":["../../../node_modules/.pnpm/@aws-sdk+token-providers@3.1009.0/node_modules/@aws-sdk/token-providers/dist-cjs/index.js","../../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthSchemeProvider.js","../../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/EndpointParameters.js","../../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/ruleset.js","../../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/endpointResolver.js","../../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/SSOServiceException.js","../../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/errors.js","../../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/schemas/schemas_0.js","../../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.shared.js","../../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js","../../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthExtensionConfiguration.js","../../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeExtensions.js","../../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/SSOClient.js","../../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commands/GetRoleCredentialsCommand.js","../../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/SSO.js","../../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commands/index.js","../../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/models_0.js","../../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/index.js","../../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.972.20/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BKDNrsal.js","../../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.972.20/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js"],"sourcesContent":["'use strict';\n\nvar client = require('@aws-sdk/core/client');\nvar httpAuthSchemes = require('@aws-sdk/core/httpAuthSchemes');\nvar propertyProvider = require('@smithy/property-provider');\nvar sharedIniFileLoader = require('@smithy/shared-ini-file-loader');\nvar node_fs = require('node:fs');\n\nconst fromEnvSigningName = ({ logger, signingName } = {}) => async () => {\n logger?.debug?.(\"@aws-sdk/token-providers - fromEnvSigningName\");\n if (!signingName) {\n throw new propertyProvider.TokenProviderError(\"Please pass 'signingName' to compute environment variable key\", { logger });\n }\n const bearerTokenKey = httpAuthSchemes.getBearerTokenEnvKey(signingName);\n if (!(bearerTokenKey in process.env)) {\n throw new propertyProvider.TokenProviderError(`Token not present in '${bearerTokenKey}' environment variable`, { logger });\n }\n const token = { token: process.env[bearerTokenKey] };\n client.setTokenFeature(token, \"BEARER_SERVICE_ENV_VARS\", \"3\");\n return token;\n};\n\nconst EXPIRE_WINDOW_MS = 5 * 60 * 1000;\nconst REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`;\n\nconst getSsoOidcClient = async (ssoRegion, init = {}, callerClientConfig) => {\n const { SSOOIDCClient } = await import('@aws-sdk/nested-clients/sso-oidc');\n const coalesce = (prop) => init.clientConfig?.[prop] ?? init.parentClientConfig?.[prop] ?? callerClientConfig?.[prop];\n const ssoOidcClient = new SSOOIDCClient(Object.assign({}, init.clientConfig ?? {}, {\n region: ssoRegion ?? init.clientConfig?.region,\n logger: coalesce(\"logger\"),\n userAgentAppId: coalesce(\"userAgentAppId\"),\n }));\n return ssoOidcClient;\n};\n\nconst getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}, callerClientConfig) => {\n const { CreateTokenCommand } = await import('@aws-sdk/nested-clients/sso-oidc');\n const ssoOidcClient = await getSsoOidcClient(ssoRegion, init, callerClientConfig);\n return ssoOidcClient.send(new CreateTokenCommand({\n clientId: ssoToken.clientId,\n clientSecret: ssoToken.clientSecret,\n refreshToken: ssoToken.refreshToken,\n grantType: \"refresh_token\",\n }));\n};\n\nconst validateTokenExpiry = (token) => {\n if (token.expiration && token.expiration.getTime() < Date.now()) {\n throw new propertyProvider.TokenProviderError(`Token is expired. ${REFRESH_MESSAGE}`, false);\n }\n};\n\nconst validateTokenKey = (key, value, forRefresh = false) => {\n if (typeof value === \"undefined\") {\n throw new propertyProvider.TokenProviderError(`Value not present for '${key}' in SSO Token${forRefresh ? \". Cannot refresh\" : \"\"}. ${REFRESH_MESSAGE}`, false);\n }\n};\n\nconst { writeFile } = node_fs.promises;\nconst writeSSOTokenToFile = (id, ssoToken) => {\n const tokenFilepath = sharedIniFileLoader.getSSOTokenFilepath(id);\n const tokenString = JSON.stringify(ssoToken, null, 2);\n return writeFile(tokenFilepath, tokenString);\n};\n\nconst lastRefreshAttemptTime = new Date(0);\nconst fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {\n init.logger?.debug(\"@aws-sdk/token-providers - fromSso\");\n const profiles = await sharedIniFileLoader.parseKnownFiles(init);\n const profileName = sharedIniFileLoader.getProfileName({\n profile: init.profile ?? callerClientConfig?.profile,\n });\n const profile = profiles[profileName];\n if (!profile) {\n throw new propertyProvider.TokenProviderError(`Profile '${profileName}' could not be found in shared credentials file.`, false);\n }\n else if (!profile[\"sso_session\"]) {\n throw new propertyProvider.TokenProviderError(`Profile '${profileName}' is missing required property 'sso_session'.`);\n }\n const ssoSessionName = profile[\"sso_session\"];\n const ssoSessions = await sharedIniFileLoader.loadSsoSessionData(init);\n const ssoSession = ssoSessions[ssoSessionName];\n if (!ssoSession) {\n throw new propertyProvider.TokenProviderError(`Sso session '${ssoSessionName}' could not be found in shared credentials file.`, false);\n }\n for (const ssoSessionRequiredKey of [\"sso_start_url\", \"sso_region\"]) {\n if (!ssoSession[ssoSessionRequiredKey]) {\n throw new propertyProvider.TokenProviderError(`Sso session '${ssoSessionName}' is missing required property '${ssoSessionRequiredKey}'.`, false);\n }\n }\n ssoSession[\"sso_start_url\"];\n const ssoRegion = ssoSession[\"sso_region\"];\n let ssoToken;\n try {\n ssoToken = await sharedIniFileLoader.getSSOTokenFromFile(ssoSessionName);\n }\n catch (e) {\n throw new propertyProvider.TokenProviderError(`The SSO session token associated with profile=${profileName} was not found or is invalid. ${REFRESH_MESSAGE}`, false);\n }\n validateTokenKey(\"accessToken\", ssoToken.accessToken);\n validateTokenKey(\"expiresAt\", ssoToken.expiresAt);\n const { accessToken, expiresAt } = ssoToken;\n const existingToken = { token: accessToken, expiration: new Date(expiresAt) };\n if (existingToken.expiration.getTime() - Date.now() > EXPIRE_WINDOW_MS) {\n return existingToken;\n }\n if (Date.now() - lastRefreshAttemptTime.getTime() < 30 * 1000) {\n validateTokenExpiry(existingToken);\n return existingToken;\n }\n validateTokenKey(\"clientId\", ssoToken.clientId, true);\n validateTokenKey(\"clientSecret\", ssoToken.clientSecret, true);\n validateTokenKey(\"refreshToken\", ssoToken.refreshToken, true);\n try {\n lastRefreshAttemptTime.setTime(Date.now());\n const newSsoOidcToken = await getNewSsoOidcToken(ssoToken, ssoRegion, init, callerClientConfig);\n validateTokenKey(\"accessToken\", newSsoOidcToken.accessToken);\n validateTokenKey(\"expiresIn\", newSsoOidcToken.expiresIn);\n const newTokenExpiration = new Date(Date.now() + newSsoOidcToken.expiresIn * 1000);\n try {\n await writeSSOTokenToFile(ssoSessionName, {\n ...ssoToken,\n accessToken: newSsoOidcToken.accessToken,\n expiresAt: newTokenExpiration.toISOString(),\n refreshToken: newSsoOidcToken.refreshToken,\n });\n }\n catch (error) {\n }\n return {\n token: newSsoOidcToken.accessToken,\n expiration: newTokenExpiration,\n };\n }\n catch (error) {\n validateTokenExpiry(existingToken);\n return existingToken;\n }\n};\n\nconst fromStatic = ({ token, logger }) => async () => {\n logger?.debug(\"@aws-sdk/token-providers - fromStatic\");\n if (!token || !token.token) {\n throw new propertyProvider.TokenProviderError(`Please pass a valid token to fromStatic`, false);\n }\n return token;\n};\n\nconst nodeProvider = (init = {}) => propertyProvider.memoize(propertyProvider.chain(fromSso(init), async () => {\n throw new propertyProvider.TokenProviderError(\"Could not load token from any providers\", false);\n}), (token) => token.expiration !== undefined && token.expiration.getTime() - Date.now() < 300000, (token) => token.expiration !== undefined);\n\nexports.fromEnvSigningName = fromEnvSigningName;\nexports.fromSso = fromSso;\nexports.fromStatic = fromStatic;\nexports.nodeProvider = nodeProvider;\n","import { resolveAwsSdkSigV4Config } from \"@aws-sdk/core\";\nimport { getSmithyContext, normalizeProvider } from \"@smithy/util-middleware\";\nexport const defaultSSOHttpAuthSchemeParametersProvider = async (config, context, input) => {\n return {\n operation: getSmithyContext(context).operation,\n region: (await normalizeProvider(config.region)()) ||\n (() => {\n throw new Error(\"expected `region` to be configured for `aws.auth#sigv4`\");\n })(),\n };\n};\nfunction createAwsAuthSigv4HttpAuthOption(authParameters) {\n return {\n schemeId: \"aws.auth#sigv4\",\n signingProperties: {\n name: \"awsssoportal\",\n region: authParameters.region,\n },\n propertiesExtractor: (config, context) => ({\n signingProperties: {\n config,\n context,\n },\n }),\n };\n}\nfunction createSmithyApiNoAuthHttpAuthOption(authParameters) {\n return {\n schemeId: \"smithy.api#noAuth\",\n };\n}\nexport const defaultSSOHttpAuthSchemeProvider = (authParameters) => {\n const options = [];\n switch (authParameters.operation) {\n case \"GetRoleCredentials\": {\n options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));\n break;\n }\n default: {\n options.push(createAwsAuthSigv4HttpAuthOption(authParameters));\n }\n }\n return options;\n};\nexport const resolveHttpAuthSchemeConfig = (config) => {\n const config_0 = resolveAwsSdkSigV4Config(config);\n return Object.assign(config_0, {\n authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),\n });\n};\n","export const resolveClientEndpointParameters = (options) => {\n return Object.assign(options, {\n useDualstackEndpoint: options.useDualstackEndpoint ?? false,\n useFipsEndpoint: options.useFipsEndpoint ?? false,\n defaultSigningName: \"awsssoportal\",\n });\n};\nexport const commonParams = {\n UseFIPS: { type: \"builtInParams\", name: \"useFipsEndpoint\" },\n Endpoint: { type: \"builtInParams\", name: \"endpoint\" },\n Region: { type: \"builtInParams\", name: \"region\" },\n UseDualStack: { type: \"builtInParams\", name: \"useDualstackEndpoint\" },\n};\n","const u = \"required\", v = \"fn\", w = \"argv\", x = \"ref\";\nconst a = true, b = \"isSet\", c = \"booleanEquals\", d = \"error\", e = \"endpoint\", f = \"tree\", g = \"PartitionResult\", h = \"getAttr\", i = { [u]: false, type: \"string\" }, j = { [u]: true, default: false, type: \"boolean\" }, k = { [x]: \"Endpoint\" }, l = { [v]: c, [w]: [{ [x]: \"UseFIPS\" }, true] }, m = { [v]: c, [w]: [{ [x]: \"UseDualStack\" }, true] }, n = {}, o = { [v]: h, [w]: [{ [x]: g }, \"supportsFIPS\"] }, p = { [x]: g }, q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, \"supportsDualStack\"] }] }, r = [l], s = [m], t = [{ [x]: \"Region\" }];\nconst _data = {\n version: \"1.0\",\n parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i },\n rules: [\n {\n conditions: [{ [v]: b, [w]: [k] }],\n rules: [\n { conditions: r, error: \"Invalid Configuration: FIPS and custom endpoint are not supported\", type: d },\n { conditions: s, error: \"Invalid Configuration: Dualstack and custom endpoint are not supported\", type: d },\n { endpoint: { url: k, properties: n, headers: n }, type: e },\n ],\n type: f,\n },\n {\n conditions: [{ [v]: b, [w]: t }],\n rules: [\n {\n conditions: [{ [v]: \"aws.partition\", [w]: t, assign: g }],\n rules: [\n {\n conditions: [l, m],\n rules: [\n {\n conditions: [{ [v]: c, [w]: [a, o] }, q],\n rules: [\n {\n endpoint: {\n url: \"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}\",\n properties: n,\n headers: n,\n },\n type: e,\n },\n ],\n type: f,\n },\n { error: \"FIPS and DualStack are enabled, but this partition does not support one or both\", type: d },\n ],\n type: f,\n },\n {\n conditions: r,\n rules: [\n {\n conditions: [{ [v]: c, [w]: [o, a] }],\n rules: [\n {\n conditions: [{ [v]: \"stringEquals\", [w]: [{ [v]: h, [w]: [p, \"name\"] }, \"aws-us-gov\"] }],\n endpoint: { url: \"https://portal.sso.{Region}.amazonaws.com\", properties: n, headers: n },\n type: e,\n },\n {\n endpoint: {\n url: \"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}\",\n properties: n,\n headers: n,\n },\n type: e,\n },\n ],\n type: f,\n },\n { error: \"FIPS is enabled but this partition does not support FIPS\", type: d },\n ],\n type: f,\n },\n {\n conditions: s,\n rules: [\n {\n conditions: [q],\n rules: [\n {\n endpoint: {\n url: \"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}\",\n properties: n,\n headers: n,\n },\n type: e,\n },\n ],\n type: f,\n },\n { error: \"DualStack is enabled but this partition does not support DualStack\", type: d },\n ],\n type: f,\n },\n {\n endpoint: { url: \"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}\", properties: n, headers: n },\n type: e,\n },\n ],\n type: f,\n },\n ],\n type: f,\n },\n { error: \"Invalid Configuration: Missing Region\", type: d },\n ],\n};\nexport const ruleSet = _data;\n","import { awsEndpointFunctions } from \"@aws-sdk/util-endpoints\";\nimport { customEndpointFunctions, EndpointCache, resolveEndpoint } from \"@smithy/util-endpoints\";\nimport { ruleSet } from \"./ruleset\";\nconst cache = new EndpointCache({\n size: 50,\n params: [\"Endpoint\", \"Region\", \"UseDualStack\", \"UseFIPS\"],\n});\nexport const defaultEndpointResolver = (endpointParams, context = {}) => {\n return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {\n endpointParams: endpointParams,\n logger: context.logger,\n }));\n};\ncustomEndpointFunctions.aws = awsEndpointFunctions;\n","import { ServiceException as __ServiceException, } from \"@smithy/smithy-client\";\nexport { __ServiceException };\nexport class SSOServiceException extends __ServiceException {\n constructor(options) {\n super(options);\n Object.setPrototypeOf(this, SSOServiceException.prototype);\n }\n}\n","import { SSOServiceException as __BaseException } from \"./SSOServiceException\";\nexport class InvalidRequestException extends __BaseException {\n name = \"InvalidRequestException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"InvalidRequestException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, InvalidRequestException.prototype);\n }\n}\nexport class ResourceNotFoundException extends __BaseException {\n name = \"ResourceNotFoundException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"ResourceNotFoundException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, ResourceNotFoundException.prototype);\n }\n}\nexport class TooManyRequestsException extends __BaseException {\n name = \"TooManyRequestsException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"TooManyRequestsException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, TooManyRequestsException.prototype);\n }\n}\nexport class UnauthorizedException extends __BaseException {\n name = \"UnauthorizedException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"UnauthorizedException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, UnauthorizedException.prototype);\n }\n}\n","const _ATT = \"AccessTokenType\";\nconst _GRC = \"GetRoleCredentials\";\nconst _GRCR = \"GetRoleCredentialsRequest\";\nconst _GRCRe = \"GetRoleCredentialsResponse\";\nconst _IRE = \"InvalidRequestException\";\nconst _RC = \"RoleCredentials\";\nconst _RNFE = \"ResourceNotFoundException\";\nconst _SAKT = \"SecretAccessKeyType\";\nconst _STT = \"SessionTokenType\";\nconst _TMRE = \"TooManyRequestsException\";\nconst _UE = \"UnauthorizedException\";\nconst _aI = \"accountId\";\nconst _aKI = \"accessKeyId\";\nconst _aT = \"accessToken\";\nconst _ai = \"account_id\";\nconst _c = \"client\";\nconst _e = \"error\";\nconst _ex = \"expiration\";\nconst _h = \"http\";\nconst _hE = \"httpError\";\nconst _hH = \"httpHeader\";\nconst _hQ = \"httpQuery\";\nconst _m = \"message\";\nconst _rC = \"roleCredentials\";\nconst _rN = \"roleName\";\nconst _rn = \"role_name\";\nconst _s = \"smithy.ts.sdk.synthetic.com.amazonaws.sso\";\nconst _sAK = \"secretAccessKey\";\nconst _sT = \"sessionToken\";\nconst _xasbt = \"x-amz-sso_bearer_token\";\nconst n0 = \"com.amazonaws.sso\";\nimport { TypeRegistry } from \"@smithy/core/schema\";\nimport { InvalidRequestException, ResourceNotFoundException, TooManyRequestsException, UnauthorizedException, } from \"../models/errors\";\nimport { SSOServiceException } from \"../models/SSOServiceException\";\nconst _s_registry = TypeRegistry.for(_s);\nexport var SSOServiceException$ = [-3, _s, \"SSOServiceException\", 0, [], []];\n_s_registry.registerError(SSOServiceException$, SSOServiceException);\nconst n0_registry = TypeRegistry.for(n0);\nexport var InvalidRequestException$ = [-3, n0, _IRE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];\nn0_registry.registerError(InvalidRequestException$, InvalidRequestException);\nexport var ResourceNotFoundException$ = [-3, n0, _RNFE, { [_e]: _c, [_hE]: 404 }, [_m], [0]];\nn0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);\nexport var TooManyRequestsException$ = [-3, n0, _TMRE, { [_e]: _c, [_hE]: 429 }, [_m], [0]];\nn0_registry.registerError(TooManyRequestsException$, TooManyRequestsException);\nexport var UnauthorizedException$ = [-3, n0, _UE, { [_e]: _c, [_hE]: 401 }, [_m], [0]];\nn0_registry.registerError(UnauthorizedException$, UnauthorizedException);\nexport const errorTypeRegistries = [_s_registry, n0_registry];\nvar AccessTokenType = [0, n0, _ATT, 8, 0];\nvar SecretAccessKeyType = [0, n0, _SAKT, 8, 0];\nvar SessionTokenType = [0, n0, _STT, 8, 0];\nexport var GetRoleCredentialsRequest$ = [\n 3,\n n0,\n _GRCR,\n 0,\n [_rN, _aI, _aT],\n [\n [0, { [_hQ]: _rn }],\n [0, { [_hQ]: _ai }],\n [() => AccessTokenType, { [_hH]: _xasbt }],\n ],\n 3,\n];\nexport var GetRoleCredentialsResponse$ = [\n 3,\n n0,\n _GRCRe,\n 0,\n [_rC],\n [[() => RoleCredentials$, 0]],\n];\nexport var RoleCredentials$ = [\n 3,\n n0,\n _RC,\n 0,\n [_aKI, _sAK, _sT, _ex],\n [0, [() => SecretAccessKeyType, 0], [() => SessionTokenType, 0], 1],\n];\nexport var GetRoleCredentials$ = [\n 9,\n n0,\n _GRC,\n { [_h]: [\"GET\", \"/federation/credentials\", 200] },\n () => GetRoleCredentialsRequest$,\n () => GetRoleCredentialsResponse$,\n];\n","import { AwsSdkSigV4Signer } from \"@aws-sdk/core\";\nimport { AwsRestJsonProtocol } from \"@aws-sdk/core/protocols\";\nimport { NoAuthSigner } from \"@smithy/core\";\nimport { NoOpLogger } from \"@smithy/smithy-client\";\nimport { parseUrl } from \"@smithy/url-parser\";\nimport { fromBase64, toBase64 } from \"@smithy/util-base64\";\nimport { fromUtf8, toUtf8 } from \"@smithy/util-utf8\";\nimport { defaultSSOHttpAuthSchemeProvider } from \"./auth/httpAuthSchemeProvider\";\nimport { defaultEndpointResolver } from \"./endpoint/endpointResolver\";\nimport { errorTypeRegistries } from \"./schemas/schemas_0\";\nexport const getRuntimeConfig = (config) => {\n return {\n apiVersion: \"2019-06-10\",\n base64Decoder: config?.base64Decoder ?? fromBase64,\n base64Encoder: config?.base64Encoder ?? toBase64,\n disableHostPrefix: config?.disableHostPrefix ?? false,\n endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,\n extensions: config?.extensions ?? [],\n httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSSOHttpAuthSchemeProvider,\n httpAuthSchemes: config?.httpAuthSchemes ?? [\n {\n schemeId: \"aws.auth#sigv4\",\n identityProvider: (ipc) => ipc.getIdentityProvider(\"aws.auth#sigv4\"),\n signer: new AwsSdkSigV4Signer(),\n },\n {\n schemeId: \"smithy.api#noAuth\",\n identityProvider: (ipc) => ipc.getIdentityProvider(\"smithy.api#noAuth\") || (async () => ({})),\n signer: new NoAuthSigner(),\n },\n ],\n logger: config?.logger ?? new NoOpLogger(),\n protocol: config?.protocol ?? AwsRestJsonProtocol,\n protocolSettings: config?.protocolSettings ?? {\n defaultNamespace: \"com.amazonaws.sso\",\n errorTypeRegistries,\n version: \"2019-06-10\",\n serviceTarget: \"SWBPortalService\",\n },\n serviceId: config?.serviceId ?? \"SSO\",\n urlParser: config?.urlParser ?? parseUrl,\n utf8Decoder: config?.utf8Decoder ?? fromUtf8,\n utf8Encoder: config?.utf8Encoder ?? toUtf8,\n };\n};\n","import packageInfo from \"../../../package.json\";\nimport { emitWarningIfUnsupportedVersion as awsCheckVersion, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from \"@aws-sdk/core\";\nimport { createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS } from \"@aws-sdk/util-user-agent-node\";\nimport { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from \"@smithy/config-resolver\";\nimport { Hash } from \"@smithy/hash-node\";\nimport { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from \"@smithy/middleware-retry\";\nimport { loadConfig as loadNodeConfig } from \"@smithy/node-config-provider\";\nimport { NodeHttpHandler as RequestHandler, streamCollector } from \"@smithy/node-http-handler\";\nimport { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from \"@smithy/smithy-client\";\nimport { calculateBodyLength } from \"@smithy/util-body-length-node\";\nimport { resolveDefaultsModeConfig } from \"@smithy/util-defaults-mode-node\";\nimport { DEFAULT_RETRY_MODE } from \"@smithy/util-retry\";\nimport { getRuntimeConfig as getSharedRuntimeConfig } from \"./runtimeConfig.shared\";\nexport const getRuntimeConfig = (config) => {\n emitWarningIfUnsupportedVersion(process.version);\n const defaultsMode = resolveDefaultsModeConfig(config);\n const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);\n const clientSharedValues = getSharedRuntimeConfig(config);\n awsCheckVersion(process.version);\n const loaderConfig = {\n profile: config?.profile,\n logger: clientSharedValues.logger,\n };\n return {\n ...clientSharedValues,\n ...config,\n runtime: \"node\",\n defaultsMode,\n authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),\n bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,\n defaultUserAgentProvider: config?.defaultUserAgentProvider ??\n createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),\n maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),\n region: config?.region ??\n loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),\n requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),\n retryMode: config?.retryMode ??\n loadNodeConfig({\n ...NODE_RETRY_MODE_CONFIG_OPTIONS,\n default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,\n }, config),\n sha256: config?.sha256 ?? Hash.bind(null, \"sha256\"),\n streamCollector: config?.streamCollector ?? streamCollector,\n useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),\n useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),\n userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),\n };\n};\n","export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {\n const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;\n let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;\n let _credentials = runtimeConfig.credentials;\n return {\n setHttpAuthScheme(httpAuthScheme) {\n const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);\n if (index === -1) {\n _httpAuthSchemes.push(httpAuthScheme);\n }\n else {\n _httpAuthSchemes.splice(index, 1, httpAuthScheme);\n }\n },\n httpAuthSchemes() {\n return _httpAuthSchemes;\n },\n setHttpAuthSchemeProvider(httpAuthSchemeProvider) {\n _httpAuthSchemeProvider = httpAuthSchemeProvider;\n },\n httpAuthSchemeProvider() {\n return _httpAuthSchemeProvider;\n },\n setCredentials(credentials) {\n _credentials = credentials;\n },\n credentials() {\n return _credentials;\n },\n };\n};\nexport const resolveHttpAuthRuntimeConfig = (config) => {\n return {\n httpAuthSchemes: config.httpAuthSchemes(),\n httpAuthSchemeProvider: config.httpAuthSchemeProvider(),\n credentials: config.credentials(),\n };\n};\n","import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from \"@aws-sdk/region-config-resolver\";\nimport { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from \"@smithy/protocol-http\";\nimport { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from \"@smithy/smithy-client\";\nimport { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from \"./auth/httpAuthExtensionConfiguration\";\nexport const resolveRuntimeExtensions = (runtimeConfig, extensions) => {\n const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));\n extensions.forEach((extension) => extension.configure(extensionConfiguration));\n return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));\n};\n","import { getHostHeaderPlugin, resolveHostHeaderConfig, } from \"@aws-sdk/middleware-host-header\";\nimport { getLoggerPlugin } from \"@aws-sdk/middleware-logger\";\nimport { getRecursionDetectionPlugin } from \"@aws-sdk/middleware-recursion-detection\";\nimport { getUserAgentPlugin, resolveUserAgentConfig, } from \"@aws-sdk/middleware-user-agent\";\nimport { resolveRegionConfig } from \"@smithy/config-resolver\";\nimport { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from \"@smithy/core\";\nimport { getSchemaSerdePlugin } from \"@smithy/core/schema\";\nimport { getContentLengthPlugin } from \"@smithy/middleware-content-length\";\nimport { resolveEndpointConfig, } from \"@smithy/middleware-endpoint\";\nimport { getRetryPlugin, resolveRetryConfig, } from \"@smithy/middleware-retry\";\nimport { Client as __Client, } from \"@smithy/smithy-client\";\nimport { defaultSSOHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from \"./auth/httpAuthSchemeProvider\";\nimport { resolveClientEndpointParameters } from \"./endpoint/EndpointParameters\";\nimport { getRuntimeConfig as __getRuntimeConfig } from \"./runtimeConfig\";\nimport { resolveRuntimeExtensions } from \"./runtimeExtensions\";\nexport { __Client };\nexport class SSOClient extends __Client {\n config;\n constructor(...[configuration]) {\n const _config_0 = __getRuntimeConfig(configuration || {});\n super(_config_0);\n this.initConfig = _config_0;\n const _config_1 = resolveClientEndpointParameters(_config_0);\n const _config_2 = resolveUserAgentConfig(_config_1);\n const _config_3 = resolveRetryConfig(_config_2);\n const _config_4 = resolveRegionConfig(_config_3);\n const _config_5 = resolveHostHeaderConfig(_config_4);\n const _config_6 = resolveEndpointConfig(_config_5);\n const _config_7 = resolveHttpAuthSchemeConfig(_config_6);\n const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);\n this.config = _config_8;\n this.middlewareStack.use(getSchemaSerdePlugin(this.config));\n this.middlewareStack.use(getUserAgentPlugin(this.config));\n this.middlewareStack.use(getRetryPlugin(this.config));\n this.middlewareStack.use(getContentLengthPlugin(this.config));\n this.middlewareStack.use(getHostHeaderPlugin(this.config));\n this.middlewareStack.use(getLoggerPlugin(this.config));\n this.middlewareStack.use(getRecursionDetectionPlugin(this.config));\n this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {\n httpAuthSchemeParametersProvider: defaultSSOHttpAuthSchemeParametersProvider,\n identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({\n \"aws.auth#sigv4\": config.credentials,\n }),\n }));\n this.middlewareStack.use(getHttpSigningPlugin(this.config));\n }\n destroy() {\n super.destroy();\n }\n}\n","import { getEndpointPlugin } from \"@smithy/middleware-endpoint\";\nimport { Command as $Command } from \"@smithy/smithy-client\";\nimport { commonParams } from \"../endpoint/EndpointParameters\";\nimport { GetRoleCredentials$ } from \"../schemas/schemas_0\";\nexport { $Command };\nexport class GetRoleCredentialsCommand extends $Command\n .classBuilder()\n .ep(commonParams)\n .m(function (Command, cs, config, o) {\n return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];\n})\n .s(\"SWBPortalService\", \"GetRoleCredentials\", {})\n .n(\"SSOClient\", \"GetRoleCredentialsCommand\")\n .sc(GetRoleCredentials$)\n .build() {\n}\n","import { createAggregatedClient } from \"@smithy/smithy-client\";\nimport { GetRoleCredentialsCommand } from \"./commands/GetRoleCredentialsCommand\";\nimport { SSOClient } from \"./SSOClient\";\nconst commands = {\n GetRoleCredentialsCommand,\n};\nexport class SSO extends SSOClient {\n}\ncreateAggregatedClient(commands, SSO);\n","export * from \"./GetRoleCredentialsCommand\";\n","export {};\n","export * from \"./SSOClient\";\nexport * from \"./SSO\";\nexport * from \"./commands\";\nexport * from \"./schemas/schemas_0\";\nexport * from \"./models/errors\";\nexport * from \"./models/models_0\";\nexport { SSOServiceException } from \"./models/SSOServiceException\";\n","'use strict';\n\nvar sso = require('@aws-sdk/nested-clients/sso');\n\n\n\nexports.GetRoleCredentialsCommand = sso.GetRoleCredentialsCommand;\nexports.SSOClient = sso.SSOClient;\n","'use strict';\n\nvar propertyProvider = require('@smithy/property-provider');\nvar sharedIniFileLoader = require('@smithy/shared-ini-file-loader');\nvar client = require('@aws-sdk/core/client');\nvar tokenProviders = require('@aws-sdk/token-providers');\n\nconst isSsoProfile = (arg) => arg &&\n (typeof arg.sso_start_url === \"string\" ||\n typeof arg.sso_account_id === \"string\" ||\n typeof arg.sso_session === \"string\" ||\n typeof arg.sso_region === \"string\" ||\n typeof arg.sso_role_name === \"string\");\n\nconst SHOULD_FAIL_CREDENTIAL_CHAIN = false;\nconst resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, clientConfig, parentClientConfig, callerClientConfig, profile, filepath, configFilepath, ignoreCache, logger, }) => {\n let token;\n const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`;\n if (ssoSession) {\n try {\n const _token = await tokenProviders.fromSso({\n profile,\n filepath,\n configFilepath,\n ignoreCache,\n })();\n token = {\n accessToken: _token.token,\n expiresAt: new Date(_token.expiration).toISOString(),\n };\n }\n catch (e) {\n throw new propertyProvider.CredentialsProviderError(e.message, {\n tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,\n logger,\n });\n }\n }\n else {\n try {\n token = await sharedIniFileLoader.getSSOTokenFromFile(ssoStartUrl);\n }\n catch (e) {\n throw new propertyProvider.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${refreshMessage}`, {\n tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,\n logger,\n });\n }\n }\n if (new Date(token.expiresAt).getTime() - Date.now() <= 0) {\n throw new propertyProvider.CredentialsProviderError(`The SSO session associated with this profile has expired. ${refreshMessage}`, {\n tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,\n logger,\n });\n }\n const { accessToken } = token;\n const { SSOClient, GetRoleCredentialsCommand } = await Promise.resolve().then(function () { return require('./loadSso-BKDNrsal.js'); });\n const sso = ssoClient ||\n new SSOClient(Object.assign({}, clientConfig ?? {}, {\n logger: clientConfig?.logger ?? callerClientConfig?.logger ?? parentClientConfig?.logger,\n region: clientConfig?.region ?? ssoRegion,\n userAgentAppId: clientConfig?.userAgentAppId ?? callerClientConfig?.userAgentAppId ?? parentClientConfig?.userAgentAppId,\n }));\n let ssoResp;\n try {\n ssoResp = await sso.send(new GetRoleCredentialsCommand({\n accountId: ssoAccountId,\n roleName: ssoRoleName,\n accessToken,\n }));\n }\n catch (e) {\n throw new propertyProvider.CredentialsProviderError(e, {\n tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,\n logger,\n });\n }\n const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration, credentialScope, accountId } = {}, } = ssoResp;\n if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) {\n throw new propertyProvider.CredentialsProviderError(\"SSO returns an invalid temporary credential.\", {\n tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,\n logger,\n });\n }\n const credentials = {\n accessKeyId,\n secretAccessKey,\n sessionToken,\n expiration: new Date(expiration),\n ...(credentialScope && { credentialScope }),\n ...(accountId && { accountId }),\n };\n if (ssoSession) {\n client.setCredentialFeature(credentials, \"CREDENTIALS_SSO\", \"s\");\n }\n else {\n client.setCredentialFeature(credentials, \"CREDENTIALS_SSO_LEGACY\", \"u\");\n }\n return credentials;\n};\n\nconst validateSsoProfile = (profile, logger) => {\n const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile;\n if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) {\n throw new propertyProvider.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters \"sso_account_id\", ` +\n `\"sso_region\", \"sso_role_name\", \"sso_start_url\". Got ${Object.keys(profile).join(\", \")}\\nReference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`, { tryNextLink: false, logger });\n }\n return profile;\n};\n\nconst fromSSO = (init = {}) => async ({ callerClientConfig } = {}) => {\n init.logger?.debug(\"@aws-sdk/credential-provider-sso - fromSSO\");\n const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;\n const { ssoClient } = init;\n const profileName = sharedIniFileLoader.getProfileName({\n profile: init.profile ?? callerClientConfig?.profile,\n });\n if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {\n const profiles = await sharedIniFileLoader.parseKnownFiles(init);\n const profile = profiles[profileName];\n if (!profile) {\n throw new propertyProvider.CredentialsProviderError(`Profile ${profileName} was not found.`, { logger: init.logger });\n }\n if (!isSsoProfile(profile)) {\n throw new propertyProvider.CredentialsProviderError(`Profile ${profileName} is not configured with SSO credentials.`, {\n logger: init.logger,\n });\n }\n if (profile?.sso_session) {\n const ssoSessions = await sharedIniFileLoader.loadSsoSessionData(init);\n const session = ssoSessions[profile.sso_session];\n const conflictMsg = ` configurations in profile ${profileName} and sso-session ${profile.sso_session}`;\n if (ssoRegion && ssoRegion !== session.sso_region) {\n throw new propertyProvider.CredentialsProviderError(`Conflicting SSO region` + conflictMsg, {\n tryNextLink: false,\n logger: init.logger,\n });\n }\n if (ssoStartUrl && ssoStartUrl !== session.sso_start_url) {\n throw new propertyProvider.CredentialsProviderError(`Conflicting SSO start_url` + conflictMsg, {\n tryNextLink: false,\n logger: init.logger,\n });\n }\n profile.sso_region = session.sso_region;\n profile.sso_start_url = session.sso_start_url;\n }\n const { sso_start_url, sso_account_id, sso_region, sso_role_name, sso_session } = validateSsoProfile(profile, init.logger);\n return resolveSSOCredentials({\n ssoStartUrl: sso_start_url,\n ssoSession: sso_session,\n ssoAccountId: sso_account_id,\n ssoRegion: sso_region,\n ssoRoleName: sso_role_name,\n ssoClient: ssoClient,\n clientConfig: init.clientConfig,\n parentClientConfig: init.parentClientConfig,\n callerClientConfig: init.callerClientConfig,\n profile: profileName,\n filepath: init.filepath,\n configFilepath: init.configFilepath,\n ignoreCache: init.ignoreCache,\n logger: init.logger,\n });\n }\n else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) {\n throw new propertyProvider.CredentialsProviderError(\"Incomplete configuration. The fromSSO() argument hash must include \" +\n '\"ssoStartUrl\", \"ssoAccountId\", \"ssoRegion\", \"ssoRoleName\"', { tryNextLink: false, logger: init.logger });\n }\n else {\n return resolveSSOCredentials({\n ssoStartUrl,\n ssoSession,\n ssoAccountId,\n ssoRegion,\n ssoRoleName,\n ssoClient,\n clientConfig: init.clientConfig,\n parentClientConfig: init.parentClientConfig,\n callerClientConfig: init.callerClientConfig,\n profile: profileName,\n filepath: init.filepath,\n configFilepath: init.configFilepath,\n ignoreCache: init.ignoreCache,\n logger: init.logger,\n });\n }\n};\n\nexports.fromSSO = fromSSO;\nexports.isSsoProfile = isSsoProfile;\nexports.validateSsoProfile = validateSsoProfile;\n"],"x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],"mappings":";;;;;;;;;;;;;;CAEA,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI,oBAAkB,UAAU;CAEhC,MAAM,sBAAsB,EAAE,QAAQ,gBAAgB,EAAE,KAAK,YAAY;AACrE,UAAQ,QAAQ,gDAAgD;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48 @@
|
|
|
1
|
+
import { a as __toCommonJS, t as __commonJSMin } from "./chunk-GMkBE123.mjs";
|
|
2
|
+
import { n as init_client, t as client_exports } from "./client-Dyypr8tt.mjs";
|
|
3
|
+
import { t as require_dist_cjs$1 } from "./dist-cjs-D52jYyEm.mjs";
|
|
4
|
+
|
|
5
|
+
//#region ../../node_modules/.pnpm/@aws-sdk+credential-provider-env@3.972.18/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js
|
|
6
|
+
var require_dist_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
7
|
+
var client = (init_client(), __toCommonJS(client_exports));
|
|
8
|
+
var propertyProvider = require_dist_cjs$1();
|
|
9
|
+
const ENV_KEY = "AWS_ACCESS_KEY_ID";
|
|
10
|
+
const ENV_SECRET = "AWS_SECRET_ACCESS_KEY";
|
|
11
|
+
const ENV_SESSION = "AWS_SESSION_TOKEN";
|
|
12
|
+
const ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION";
|
|
13
|
+
const ENV_CREDENTIAL_SCOPE = "AWS_CREDENTIAL_SCOPE";
|
|
14
|
+
const ENV_ACCOUNT_ID = "AWS_ACCOUNT_ID";
|
|
15
|
+
const fromEnv = (init) => async () => {
|
|
16
|
+
init?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");
|
|
17
|
+
const accessKeyId = process.env[ENV_KEY];
|
|
18
|
+
const secretAccessKey = process.env[ENV_SECRET];
|
|
19
|
+
const sessionToken = process.env[ENV_SESSION];
|
|
20
|
+
const expiry = process.env[ENV_EXPIRATION];
|
|
21
|
+
const credentialScope = process.env[ENV_CREDENTIAL_SCOPE];
|
|
22
|
+
const accountId = process.env[ENV_ACCOUNT_ID];
|
|
23
|
+
if (accessKeyId && secretAccessKey) {
|
|
24
|
+
const credentials = {
|
|
25
|
+
accessKeyId,
|
|
26
|
+
secretAccessKey,
|
|
27
|
+
...sessionToken && { sessionToken },
|
|
28
|
+
...expiry && { expiration: new Date(expiry) },
|
|
29
|
+
...credentialScope && { credentialScope },
|
|
30
|
+
...accountId && { accountId }
|
|
31
|
+
};
|
|
32
|
+
client.setCredentialFeature(credentials, "CREDENTIALS_ENV_VARS", "g");
|
|
33
|
+
return credentials;
|
|
34
|
+
}
|
|
35
|
+
throw new propertyProvider.CredentialsProviderError("Unable to find environment variable credentials.", { logger: init?.logger });
|
|
36
|
+
};
|
|
37
|
+
exports.ENV_ACCOUNT_ID = ENV_ACCOUNT_ID;
|
|
38
|
+
exports.ENV_CREDENTIAL_SCOPE = ENV_CREDENTIAL_SCOPE;
|
|
39
|
+
exports.ENV_EXPIRATION = ENV_EXPIRATION;
|
|
40
|
+
exports.ENV_KEY = ENV_KEY;
|
|
41
|
+
exports.ENV_SECRET = ENV_SECRET;
|
|
42
|
+
exports.ENV_SESSION = ENV_SESSION;
|
|
43
|
+
exports.fromEnv = fromEnv;
|
|
44
|
+
}));
|
|
45
|
+
|
|
46
|
+
//#endregion
|
|
47
|
+
export { require_dist_cjs as t };
|
|
48
|
+
//# sourceMappingURL=dist-cjs-C4b9TCXd.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dist-cjs-C4b9TCXd.mjs","names":[],"sources":["../../../node_modules/.pnpm/@aws-sdk+credential-provider-env@3.972.18/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js"],"sourcesContent":["'use strict';\n\nvar client = require('@aws-sdk/core/client');\nvar propertyProvider = require('@smithy/property-provider');\n\nconst ENV_KEY = \"AWS_ACCESS_KEY_ID\";\nconst ENV_SECRET = \"AWS_SECRET_ACCESS_KEY\";\nconst ENV_SESSION = \"AWS_SESSION_TOKEN\";\nconst ENV_EXPIRATION = \"AWS_CREDENTIAL_EXPIRATION\";\nconst ENV_CREDENTIAL_SCOPE = \"AWS_CREDENTIAL_SCOPE\";\nconst ENV_ACCOUNT_ID = \"AWS_ACCOUNT_ID\";\nconst fromEnv = (init) => async () => {\n init?.logger?.debug(\"@aws-sdk/credential-provider-env - fromEnv\");\n const accessKeyId = process.env[ENV_KEY];\n const secretAccessKey = process.env[ENV_SECRET];\n const sessionToken = process.env[ENV_SESSION];\n const expiry = process.env[ENV_EXPIRATION];\n const credentialScope = process.env[ENV_CREDENTIAL_SCOPE];\n const accountId = process.env[ENV_ACCOUNT_ID];\n if (accessKeyId && secretAccessKey) {\n const credentials = {\n accessKeyId,\n secretAccessKey,\n ...(sessionToken && { sessionToken }),\n ...(expiry && { expiration: new Date(expiry) }),\n ...(credentialScope && { credentialScope }),\n ...(accountId && { accountId }),\n };\n client.setCredentialFeature(credentials, \"CREDENTIALS_ENV_VARS\", \"g\");\n return credentials;\n }\n throw new propertyProvider.CredentialsProviderError(\"Unable to find environment variable credentials.\", { logger: init?.logger });\n};\n\nexports.ENV_ACCOUNT_ID = ENV_ACCOUNT_ID;\nexports.ENV_CREDENTIAL_SCOPE = ENV_CREDENTIAL_SCOPE;\nexports.ENV_EXPIRATION = ENV_EXPIRATION;\nexports.ENV_KEY = ENV_KEY;\nexports.ENV_SECRET = ENV_SECRET;\nexports.ENV_SESSION = ENV_SESSION;\nexports.fromEnv = fromEnv;\n"],"x_google_ignoreList":[0],"mappings":";;;;;;CAEA,IAAI;CACJ,IAAI;CAEJ,MAAM,UAAU;CAChB,MAAM,aAAa;CACnB,MAAM,cAAc;CACpB,MAAM,iBAAiB;CACvB,MAAM,uBAAuB;CAC7B,MAAM,iBAAiB;CACvB,MAAM,WAAW,SAAS,YAAY;AAClC,QAAM,QAAQ,MAAM,6CAA6C;EACjE,MAAM,cAAc,QAAQ,IAAI;EAChC,MAAM,kBAAkB,QAAQ,IAAI;EACpC,MAAM,eAAe,QAAQ,IAAI;EACjC,MAAM,SAAS,QAAQ,IAAI;EAC3B,MAAM,kBAAkB,QAAQ,IAAI;EACpC,MAAM,YAAY,QAAQ,IAAI;AAC9B,MAAI,eAAe,iBAAiB;GAChC,MAAM,cAAc;IAChB;IACA;IACA,GAAI,gBAAgB,EAAE,cAAc;IACpC,GAAI,UAAU,EAAE,YAAY,IAAI,KAAK,OAAO,EAAE;IAC9C,GAAI,mBAAmB,EAAE,iBAAiB;IAC1C,GAAI,aAAa,EAAE,WAAW;IACjC;AACD,UAAO,qBAAqB,aAAa,wBAAwB,IAAI;AACrE,UAAO;;AAEX,QAAM,IAAI,iBAAiB,yBAAyB,oDAAoD,EAAE,QAAQ,MAAM,QAAQ,CAAC;;AAGrI,SAAQ,iBAAiB;AACzB,SAAQ,uBAAuB;AAC/B,SAAQ,iBAAiB;AACzB,SAAQ,UAAU;AAClB,SAAQ,aAAa;AACrB,SAAQ,cAAc;AACtB,SAAQ,UAAU"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { i as __require, t as __commonJSMin } from "./chunk-GMkBE123.mjs";
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/@smithy+is-array-buffer@4.2.2/node_modules/@smithy/is-array-buffer/dist-cjs/index.js
|
|
4
|
+
var require_dist_cjs$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
|
+
const isArrayBuffer = (arg) => typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer || Object.prototype.toString.call(arg) === "[object ArrayBuffer]";
|
|
6
|
+
exports.isArrayBuffer = isArrayBuffer;
|
|
7
|
+
}));
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region ../../node_modules/.pnpm/@smithy+util-buffer-from@4.2.2/node_modules/@smithy/util-buffer-from/dist-cjs/index.js
|
|
11
|
+
var require_dist_cjs$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
12
|
+
var isArrayBuffer = require_dist_cjs$2();
|
|
13
|
+
var buffer = __require("buffer");
|
|
14
|
+
const fromArrayBuffer = (input, offset = 0, length = input.byteLength - offset) => {
|
|
15
|
+
if (!isArrayBuffer.isArrayBuffer(input)) throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof input} (${input})`);
|
|
16
|
+
return buffer.Buffer.from(input, offset, length);
|
|
17
|
+
};
|
|
18
|
+
const fromString = (input, encoding) => {
|
|
19
|
+
if (typeof input !== "string") throw new TypeError(`The "input" argument must be of type string. Received type ${typeof input} (${input})`);
|
|
20
|
+
return encoding ? buffer.Buffer.from(input, encoding) : buffer.Buffer.from(input);
|
|
21
|
+
};
|
|
22
|
+
exports.fromArrayBuffer = fromArrayBuffer;
|
|
23
|
+
exports.fromString = fromString;
|
|
24
|
+
}));
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region ../../node_modules/.pnpm/@smithy+util-utf8@4.2.2/node_modules/@smithy/util-utf8/dist-cjs/index.js
|
|
28
|
+
var require_dist_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
29
|
+
var utilBufferFrom = require_dist_cjs$1();
|
|
30
|
+
const fromUtf8 = (input) => {
|
|
31
|
+
const buf = utilBufferFrom.fromString(input, "utf8");
|
|
32
|
+
return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT);
|
|
33
|
+
};
|
|
34
|
+
const toUint8Array = (data) => {
|
|
35
|
+
if (typeof data === "string") return fromUtf8(data);
|
|
36
|
+
if (ArrayBuffer.isView(data)) return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT);
|
|
37
|
+
return new Uint8Array(data);
|
|
38
|
+
};
|
|
39
|
+
const toUtf8 = (input) => {
|
|
40
|
+
if (typeof input === "string") return input;
|
|
41
|
+
if (typeof input !== "object" || typeof input.byteOffset !== "number" || typeof input.byteLength !== "number") throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");
|
|
42
|
+
return utilBufferFrom.fromArrayBuffer(input.buffer, input.byteOffset, input.byteLength).toString("utf8");
|
|
43
|
+
};
|
|
44
|
+
exports.fromUtf8 = fromUtf8;
|
|
45
|
+
exports.toUint8Array = toUint8Array;
|
|
46
|
+
exports.toUtf8 = toUtf8;
|
|
47
|
+
}));
|
|
48
|
+
|
|
49
|
+
//#endregion
|
|
50
|
+
export { require_dist_cjs$1 as n, require_dist_cjs$2 as r, require_dist_cjs as t };
|
|
51
|
+
//# sourceMappingURL=dist-cjs-C817PNLc.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dist-cjs-C817PNLc.mjs","names":[],"sources":["../../../node_modules/.pnpm/@smithy+is-array-buffer@4.2.2/node_modules/@smithy/is-array-buffer/dist-cjs/index.js","../../../node_modules/.pnpm/@smithy+util-buffer-from@4.2.2/node_modules/@smithy/util-buffer-from/dist-cjs/index.js","../../../node_modules/.pnpm/@smithy+util-utf8@4.2.2/node_modules/@smithy/util-utf8/dist-cjs/index.js"],"sourcesContent":["'use strict';\n\nconst isArrayBuffer = (arg) => (typeof ArrayBuffer === \"function\" && arg instanceof ArrayBuffer) ||\n Object.prototype.toString.call(arg) === \"[object ArrayBuffer]\";\n\nexports.isArrayBuffer = isArrayBuffer;\n","'use strict';\n\nvar isArrayBuffer = require('@smithy/is-array-buffer');\nvar buffer = require('buffer');\n\nconst fromArrayBuffer = (input, offset = 0, length = input.byteLength - offset) => {\n if (!isArrayBuffer.isArrayBuffer(input)) {\n throw new TypeError(`The \"input\" argument must be ArrayBuffer. Received type ${typeof input} (${input})`);\n }\n return buffer.Buffer.from(input, offset, length);\n};\nconst fromString = (input, encoding) => {\n if (typeof input !== \"string\") {\n throw new TypeError(`The \"input\" argument must be of type string. Received type ${typeof input} (${input})`);\n }\n return encoding ? buffer.Buffer.from(input, encoding) : buffer.Buffer.from(input);\n};\n\nexports.fromArrayBuffer = fromArrayBuffer;\nexports.fromString = fromString;\n","'use strict';\n\nvar utilBufferFrom = require('@smithy/util-buffer-from');\n\nconst fromUtf8 = (input) => {\n const buf = utilBufferFrom.fromString(input, \"utf8\");\n return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT);\n};\n\nconst toUint8Array = (data) => {\n if (typeof data === \"string\") {\n return fromUtf8(data);\n }\n if (ArrayBuffer.isView(data)) {\n return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT);\n }\n return new Uint8Array(data);\n};\n\nconst toUtf8 = (input) => {\n if (typeof input === \"string\") {\n return input;\n }\n if (typeof input !== \"object\" || typeof input.byteOffset !== \"number\" || typeof input.byteLength !== \"number\") {\n throw new Error(\"@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.\");\n }\n return utilBufferFrom.fromArrayBuffer(input.buffer, input.byteOffset, input.byteLength).toString(\"utf8\");\n};\n\nexports.fromUtf8 = fromUtf8;\nexports.toUint8Array = toUint8Array;\nexports.toUtf8 = toUtf8;\n"],"x_google_ignoreList":[0,1,2],"mappings":";;;;CAEA,MAAM,iBAAiB,QAAS,OAAO,gBAAgB,cAAc,eAAe,eAChF,OAAO,UAAU,SAAS,KAAK,IAAI,KAAK;AAE5C,SAAQ,gBAAgB;;;;;;CCHxB,IAAI;CACJ,IAAI,mBAAiB,SAAS;CAE9B,MAAM,mBAAmB,OAAO,SAAS,GAAG,SAAS,MAAM,aAAa,WAAW;AAC/E,MAAI,CAAC,cAAc,cAAc,MAAM,CACnC,OAAM,IAAI,UAAU,2DAA2D,OAAO,MAAM,IAAI,MAAM,GAAG;AAE7G,SAAO,OAAO,OAAO,KAAK,OAAO,QAAQ,OAAO;;CAEpD,MAAM,cAAc,OAAO,aAAa;AACpC,MAAI,OAAO,UAAU,SACjB,OAAM,IAAI,UAAU,8DAA8D,OAAO,MAAM,IAAI,MAAM,GAAG;AAEhH,SAAO,WAAW,OAAO,OAAO,KAAK,OAAO,SAAS,GAAG,OAAO,OAAO,KAAK,MAAM;;AAGrF,SAAQ,kBAAkB;AAC1B,SAAQ,aAAa;;;;;;CCjBrB,IAAI;CAEJ,MAAM,YAAY,UAAU;EACxB,MAAM,MAAM,eAAe,WAAW,OAAO,OAAO;AACpD,SAAO,IAAI,WAAW,IAAI,QAAQ,IAAI,YAAY,IAAI,aAAa,WAAW,kBAAkB;;CAGpG,MAAM,gBAAgB,SAAS;AAC3B,MAAI,OAAO,SAAS,SAChB,QAAO,SAAS,KAAK;AAEzB,MAAI,YAAY,OAAO,KAAK,CACxB,QAAO,IAAI,WAAW,KAAK,QAAQ,KAAK,YAAY,KAAK,aAAa,WAAW,kBAAkB;AAEvG,SAAO,IAAI,WAAW,KAAK;;CAG/B,MAAM,UAAU,UAAU;AACtB,MAAI,OAAO,UAAU,SACjB,QAAO;AAEX,MAAI,OAAO,UAAU,YAAY,OAAO,MAAM,eAAe,YAAY,OAAO,MAAM,eAAe,SACjG,OAAM,IAAI,MAAM,+EAA+E;AAEnG,SAAO,eAAe,gBAAgB,MAAM,QAAQ,MAAM,YAAY,MAAM,WAAW,CAAC,SAAS,OAAO;;AAG5G,SAAQ,WAAW;AACnB,SAAQ,eAAe;AACvB,SAAQ,SAAS"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { t as __commonJSMin } from "./chunk-GMkBE123.mjs";
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/@smithy+querystring-parser@4.2.12/node_modules/@smithy/querystring-parser/dist-cjs/index.js
|
|
4
|
+
var require_dist_cjs$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
|
+
function parseQueryString(querystring) {
|
|
6
|
+
const query = {};
|
|
7
|
+
querystring = querystring.replace(/^\?/, "");
|
|
8
|
+
if (querystring) for (const pair of querystring.split("&")) {
|
|
9
|
+
let [key, value = null] = pair.split("=");
|
|
10
|
+
key = decodeURIComponent(key);
|
|
11
|
+
if (value) value = decodeURIComponent(value);
|
|
12
|
+
if (!(key in query)) query[key] = value;
|
|
13
|
+
else if (Array.isArray(query[key])) query[key].push(value);
|
|
14
|
+
else query[key] = [query[key], value];
|
|
15
|
+
}
|
|
16
|
+
return query;
|
|
17
|
+
}
|
|
18
|
+
exports.parseQueryString = parseQueryString;
|
|
19
|
+
}));
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region ../../node_modules/.pnpm/@smithy+url-parser@4.2.12/node_modules/@smithy/url-parser/dist-cjs/index.js
|
|
23
|
+
var require_dist_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
24
|
+
var querystringParser = require_dist_cjs$1();
|
|
25
|
+
const parseUrl = (url) => {
|
|
26
|
+
if (typeof url === "string") return parseUrl(new URL(url));
|
|
27
|
+
const { hostname, pathname, port, protocol, search } = url;
|
|
28
|
+
let query;
|
|
29
|
+
if (search) query = querystringParser.parseQueryString(search);
|
|
30
|
+
return {
|
|
31
|
+
hostname,
|
|
32
|
+
port: port ? parseInt(port) : void 0,
|
|
33
|
+
protocol,
|
|
34
|
+
path: pathname,
|
|
35
|
+
query
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
exports.parseUrl = parseUrl;
|
|
39
|
+
}));
|
|
40
|
+
|
|
41
|
+
//#endregion
|
|
42
|
+
export { require_dist_cjs as t };
|
|
43
|
+
//# sourceMappingURL=dist-cjs-CBnnS4k8.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dist-cjs-CBnnS4k8.mjs","names":[],"sources":["../../../node_modules/.pnpm/@smithy+querystring-parser@4.2.12/node_modules/@smithy/querystring-parser/dist-cjs/index.js","../../../node_modules/.pnpm/@smithy+url-parser@4.2.12/node_modules/@smithy/url-parser/dist-cjs/index.js"],"sourcesContent":["'use strict';\n\nfunction parseQueryString(querystring) {\n const query = {};\n querystring = querystring.replace(/^\\?/, \"\");\n if (querystring) {\n for (const pair of querystring.split(\"&\")) {\n let [key, value = null] = pair.split(\"=\");\n key = decodeURIComponent(key);\n if (value) {\n value = decodeURIComponent(value);\n }\n if (!(key in query)) {\n query[key] = value;\n }\n else if (Array.isArray(query[key])) {\n query[key].push(value);\n }\n else {\n query[key] = [query[key], value];\n }\n }\n }\n return query;\n}\n\nexports.parseQueryString = parseQueryString;\n","'use strict';\n\nvar querystringParser = require('@smithy/querystring-parser');\n\nconst parseUrl = (url) => {\n if (typeof url === \"string\") {\n return parseUrl(new URL(url));\n }\n const { hostname, pathname, port, protocol, search } = url;\n let query;\n if (search) {\n query = querystringParser.parseQueryString(search);\n }\n return {\n hostname,\n port: port ? parseInt(port) : undefined,\n protocol,\n path: pathname,\n query,\n };\n};\n\nexports.parseUrl = parseUrl;\n"],"x_google_ignoreList":[0,1],"mappings":";;;;CAEA,SAAS,iBAAiB,aAAa;EACnC,MAAM,QAAQ,EAAE;AAChB,gBAAc,YAAY,QAAQ,OAAO,GAAG;AAC5C,MAAI,YACA,MAAK,MAAM,QAAQ,YAAY,MAAM,IAAI,EAAE;GACvC,IAAI,CAAC,KAAK,QAAQ,QAAQ,KAAK,MAAM,IAAI;AACzC,SAAM,mBAAmB,IAAI;AAC7B,OAAI,MACA,SAAQ,mBAAmB,MAAM;AAErC,OAAI,EAAE,OAAO,OACT,OAAM,OAAO;YAER,MAAM,QAAQ,MAAM,KAAK,CAC9B,OAAM,KAAK,KAAK,MAAM;OAGtB,OAAM,OAAO,CAAC,MAAM,MAAM,MAAM;;AAI5C,SAAO;;AAGX,SAAQ,mBAAmB;;;;;;CCxB3B,IAAI;CAEJ,MAAM,YAAY,QAAQ;AACtB,MAAI,OAAO,QAAQ,SACf,QAAO,SAAS,IAAI,IAAI,IAAI,CAAC;EAEjC,MAAM,EAAE,UAAU,UAAU,MAAM,UAAU,WAAW;EACvD,IAAI;AACJ,MAAI,OACA,SAAQ,kBAAkB,iBAAiB,OAAO;AAEtD,SAAO;GACH;GACA,MAAM,OAAO,SAAS,KAAK,GAAG;GAC9B;GACA,MAAM;GACN;GACH;;AAGL,SAAQ,WAAW"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { t as __commonJSMin } from "./chunk-GMkBE123.mjs";
|
|
2
|
+
import { t as require_dist_cjs$1 } from "./dist-cjs-D52jYyEm.mjs";
|
|
3
|
+
import { t as require_dist_cjs$2 } from "./dist-cjs-DhWYgNfa.mjs";
|
|
4
|
+
|
|
5
|
+
//#region ../../node_modules/.pnpm/@smithy+node-config-provider@4.3.12/node_modules/@smithy/node-config-provider/dist-cjs/index.js
|
|
6
|
+
var require_dist_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
7
|
+
var propertyProvider = require_dist_cjs$1();
|
|
8
|
+
var sharedIniFileLoader = require_dist_cjs$2();
|
|
9
|
+
function getSelectorName(functionString) {
|
|
10
|
+
try {
|
|
11
|
+
const constants = new Set(Array.from(functionString.match(/([A-Z_]){3,}/g) ?? []));
|
|
12
|
+
constants.delete("CONFIG");
|
|
13
|
+
constants.delete("CONFIG_PREFIX_SEPARATOR");
|
|
14
|
+
constants.delete("ENV");
|
|
15
|
+
return [...constants].join(", ");
|
|
16
|
+
} catch (e) {
|
|
17
|
+
return functionString;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
const fromEnv = (envVarSelector, options) => async () => {
|
|
21
|
+
try {
|
|
22
|
+
const config = envVarSelector(process.env, options);
|
|
23
|
+
if (config === void 0) throw new Error();
|
|
24
|
+
return config;
|
|
25
|
+
} catch (e) {
|
|
26
|
+
throw new propertyProvider.CredentialsProviderError(e.message || `Not found in ENV: ${getSelectorName(envVarSelector.toString())}`, { logger: options?.logger });
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
const fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init } = {}) => async () => {
|
|
30
|
+
const profile = sharedIniFileLoader.getProfileName(init);
|
|
31
|
+
const { configFile, credentialsFile } = await sharedIniFileLoader.loadSharedConfigFiles(init);
|
|
32
|
+
const profileFromCredentials = credentialsFile[profile] || {};
|
|
33
|
+
const profileFromConfig = configFile[profile] || {};
|
|
34
|
+
const mergedProfile = preferredFile === "config" ? {
|
|
35
|
+
...profileFromCredentials,
|
|
36
|
+
...profileFromConfig
|
|
37
|
+
} : {
|
|
38
|
+
...profileFromConfig,
|
|
39
|
+
...profileFromCredentials
|
|
40
|
+
};
|
|
41
|
+
try {
|
|
42
|
+
const configValue = configSelector(mergedProfile, preferredFile === "config" ? configFile : credentialsFile);
|
|
43
|
+
if (configValue === void 0) throw new Error();
|
|
44
|
+
return configValue;
|
|
45
|
+
} catch (e) {
|
|
46
|
+
throw new propertyProvider.CredentialsProviderError(e.message || `Not found in config files w/ profile [${profile}]: ${getSelectorName(configSelector.toString())}`, { logger: init.logger });
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
const isFunction = (func) => typeof func === "function";
|
|
50
|
+
const fromStatic = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : propertyProvider.fromStatic(defaultValue);
|
|
51
|
+
const loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => {
|
|
52
|
+
const { signingName, logger } = configuration;
|
|
53
|
+
const envOptions = {
|
|
54
|
+
signingName,
|
|
55
|
+
logger
|
|
56
|
+
};
|
|
57
|
+
return propertyProvider.memoize(propertyProvider.chain(fromEnv(environmentVariableSelector, envOptions), fromSharedConfigFiles(configFileSelector, configuration), fromStatic(defaultValue)));
|
|
58
|
+
};
|
|
59
|
+
exports.loadConfig = loadConfig;
|
|
60
|
+
}));
|
|
61
|
+
|
|
62
|
+
//#endregion
|
|
63
|
+
export { require_dist_cjs as t };
|
|
64
|
+
//# sourceMappingURL=dist-cjs-CWbeD0Mu.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dist-cjs-CWbeD0Mu.mjs","names":[],"sources":["../../../node_modules/.pnpm/@smithy+node-config-provider@4.3.12/node_modules/@smithy/node-config-provider/dist-cjs/index.js"],"sourcesContent":["'use strict';\n\nvar propertyProvider = require('@smithy/property-provider');\nvar sharedIniFileLoader = require('@smithy/shared-ini-file-loader');\n\nfunction getSelectorName(functionString) {\n try {\n const constants = new Set(Array.from(functionString.match(/([A-Z_]){3,}/g) ?? []));\n constants.delete(\"CONFIG\");\n constants.delete(\"CONFIG_PREFIX_SEPARATOR\");\n constants.delete(\"ENV\");\n return [...constants].join(\", \");\n }\n catch (e) {\n return functionString;\n }\n}\n\nconst fromEnv = (envVarSelector, options) => async () => {\n try {\n const config = envVarSelector(process.env, options);\n if (config === undefined) {\n throw new Error();\n }\n return config;\n }\n catch (e) {\n throw new propertyProvider.CredentialsProviderError(e.message || `Not found in ENV: ${getSelectorName(envVarSelector.toString())}`, { logger: options?.logger });\n }\n};\n\nconst fromSharedConfigFiles = (configSelector, { preferredFile = \"config\", ...init } = {}) => async () => {\n const profile = sharedIniFileLoader.getProfileName(init);\n const { configFile, credentialsFile } = await sharedIniFileLoader.loadSharedConfigFiles(init);\n const profileFromCredentials = credentialsFile[profile] || {};\n const profileFromConfig = configFile[profile] || {};\n const mergedProfile = preferredFile === \"config\"\n ? { ...profileFromCredentials, ...profileFromConfig }\n : { ...profileFromConfig, ...profileFromCredentials };\n try {\n const cfgFile = preferredFile === \"config\" ? configFile : credentialsFile;\n const configValue = configSelector(mergedProfile, cfgFile);\n if (configValue === undefined) {\n throw new Error();\n }\n return configValue;\n }\n catch (e) {\n throw new propertyProvider.CredentialsProviderError(e.message || `Not found in config files w/ profile [${profile}]: ${getSelectorName(configSelector.toString())}`, { logger: init.logger });\n }\n};\n\nconst isFunction = (func) => typeof func === \"function\";\nconst fromStatic = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : propertyProvider.fromStatic(defaultValue);\n\nconst loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => {\n const { signingName, logger } = configuration;\n const envOptions = { signingName, logger };\n return propertyProvider.memoize(propertyProvider.chain(fromEnv(environmentVariableSelector, envOptions), fromSharedConfigFiles(configFileSelector, configuration), fromStatic(defaultValue)));\n};\n\nexports.loadConfig = loadConfig;\n"],"x_google_ignoreList":[0],"mappings":";;;;;;CAEA,IAAI;CACJ,IAAI;CAEJ,SAAS,gBAAgB,gBAAgB;AACrC,MAAI;GACA,MAAM,YAAY,IAAI,IAAI,MAAM,KAAK,eAAe,MAAM,gBAAgB,IAAI,EAAE,CAAC,CAAC;AAClF,a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AAoB,SAAS,gBAAgB,gBAAgB,EAAE,KAAK;EACnH,MAAM,EAAE,aAAa,WAAW;EAChC,MAAM,aAAa;GAAE;GAAa;GAAQ;AAC1C,SAAO,iBAAiB,QAAQ,iBAAiB,MAAM,QAAQ,6BAA6B,WAAW,EAAE,sBAAsB,oBAAoB,cAAc,EAAE,WAAW,aAAa,CAAC,CAAC;;AAGjM,SAAQ,aAAa"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { t as __commonJSMin } from "./chunk-GMkBE123.mjs";
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/@smithy+types@4.13.1/node_modules/@smithy/types/dist-cjs/index.js
|
|
4
|
+
var require_dist_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
|
+
exports.HttpAuthLocation = void 0;
|
|
6
|
+
(function(HttpAuthLocation) {
|
|
7
|
+
HttpAuthLocation["HEADER"] = "header";
|
|
8
|
+
HttpAuthLocation["QUERY"] = "query";
|
|
9
|
+
})(exports.HttpAuthLocation || (exports.HttpAuthLocation = {}));
|
|
10
|
+
exports.HttpApiKeyAuthLocation = void 0;
|
|
11
|
+
(function(HttpApiKeyAuthLocation) {
|
|
12
|
+
HttpApiKeyAuthLocation["HEADER"] = "header";
|
|
13
|
+
HttpApiKeyAuthLocation["QUERY"] = "query";
|
|
14
|
+
})(exports.HttpApiKeyAuthLocation || (exports.HttpApiKeyAuthLocation = {}));
|
|
15
|
+
exports.EndpointURLScheme = void 0;
|
|
16
|
+
(function(EndpointURLScheme) {
|
|
17
|
+
EndpointURLScheme["HTTP"] = "http";
|
|
18
|
+
EndpointURLScheme["HTTPS"] = "https";
|
|
19
|
+
})(exports.EndpointURLScheme || (exports.EndpointURLScheme = {}));
|
|
20
|
+
exports.AlgorithmId = void 0;
|
|
21
|
+
(function(AlgorithmId) {
|
|
22
|
+
AlgorithmId["MD5"] = "md5";
|
|
23
|
+
AlgorithmId["CRC32"] = "crc32";
|
|
24
|
+
AlgorithmId["CRC32C"] = "crc32c";
|
|
25
|
+
AlgorithmId["SHA1"] = "sha1";
|
|
26
|
+
AlgorithmId["SHA256"] = "sha256";
|
|
27
|
+
})(exports.AlgorithmId || (exports.AlgorithmId = {}));
|
|
28
|
+
const getChecksumConfiguration = (runtimeConfig) => {
|
|
29
|
+
const checksumAlgorithms = [];
|
|
30
|
+
if (runtimeConfig.sha256 !== void 0) checksumAlgorithms.push({
|
|
31
|
+
algorithmId: () => exports.AlgorithmId.SHA256,
|
|
32
|
+
checksumConstructor: () => runtimeConfig.sha256
|
|
33
|
+
});
|
|
34
|
+
if (runtimeConfig.md5 != void 0) checksumAlgorithms.push({
|
|
35
|
+
algorithmId: () => exports.AlgorithmId.MD5,
|
|
36
|
+
checksumConstructor: () => runtimeConfig.md5
|
|
37
|
+
});
|
|
38
|
+
return {
|
|
39
|
+
addChecksumAlgorithm(algo) {
|
|
40
|
+
checksumAlgorithms.push(algo);
|
|
41
|
+
},
|
|
42
|
+
checksumAlgorithms() {
|
|
43
|
+
return checksumAlgorithms;
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
const resolveChecksumRuntimeConfig = (clientConfig) => {
|
|
48
|
+
const runtimeConfig = {};
|
|
49
|
+
clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => {
|
|
50
|
+
runtimeConfig[checksumAlgorithm.algorithmId()] = checksumAlgorithm.checksumConstructor();
|
|
51
|
+
});
|
|
52
|
+
return runtimeConfig;
|
|
53
|
+
};
|
|
54
|
+
const getDefaultClientConfiguration = (runtimeConfig) => {
|
|
55
|
+
return getChecksumConfiguration(runtimeConfig);
|
|
56
|
+
};
|
|
57
|
+
const resolveDefaultRuntimeConfig = (config) => {
|
|
58
|
+
return resolveChecksumRuntimeConfig(config);
|
|
59
|
+
};
|
|
60
|
+
exports.FieldPosition = void 0;
|
|
61
|
+
(function(FieldPosition) {
|
|
62
|
+
FieldPosition[FieldPosition["HEADER"] = 0] = "HEADER";
|
|
63
|
+
FieldPosition[FieldPosition["TRAILER"] = 1] = "TRAILER";
|
|
64
|
+
})(exports.FieldPosition || (exports.FieldPosition = {}));
|
|
65
|
+
const SMITHY_CONTEXT_KEY = "__smithy_context";
|
|
66
|
+
exports.IniSectionType = void 0;
|
|
67
|
+
(function(IniSectionType) {
|
|
68
|
+
IniSectionType["PROFILE"] = "profile";
|
|
69
|
+
IniSectionType["SSO_SESSION"] = "sso-session";
|
|
70
|
+
IniSectionType["SERVICES"] = "services";
|
|
71
|
+
})(exports.IniSectionType || (exports.IniSectionType = {}));
|
|
72
|
+
exports.RequestHandlerProtocol = void 0;
|
|
73
|
+
(function(RequestHandlerProtocol) {
|
|
74
|
+
RequestHandlerProtocol["HTTP_0_9"] = "http/0.9";
|
|
75
|
+
RequestHandlerProtocol["HTTP_1_0"] = "http/1.0";
|
|
76
|
+
RequestHandlerProtocol["TDS_8_0"] = "tds/8.0";
|
|
77
|
+
})(exports.RequestHandlerProtocol || (exports.RequestHandlerProtocol = {}));
|
|
78
|
+
exports.SMITHY_CONTEXT_KEY = SMITHY_CONTEXT_KEY;
|
|
79
|
+
exports.getDefaultClientConfiguration = getDefaultClientConfiguration;
|
|
80
|
+
exports.resolveDefaultRuntimeConfig = resolveDefaultRuntimeConfig;
|
|
81
|
+
}));
|
|
82
|
+
|
|
83
|
+
//#endregion
|
|
84
|
+
export { require_dist_cjs as t };
|
|
85
|
+
//# sourceMappingURL=dist-cjs-ChXEJ1ro.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dist-cjs-ChXEJ1ro.mjs","names":[],"sources":["../../../node_modules/.pnpm/@smithy+types@4.13.1/node_modules/@smithy/types/dist-cjs/index.js"],"sourcesContent":["'use strict';\n\nexports.HttpAuthLocation = void 0;\n(function (HttpAuthLocation) {\n HttpAuthLocation[\"HEADER\"] = \"header\";\n HttpAuthLocation[\"QUERY\"] = \"query\";\n})(exports.HttpAuthLocation || (exports.HttpAuthLocation = {}));\n\nexports.HttpApiKeyAuthLocation = void 0;\n(function (HttpApiKeyAuthLocation) {\n HttpApiKeyAuthLocation[\"HEADER\"] = \"header\";\n HttpApiKeyAuthLocation[\"QUERY\"] = \"query\";\n})(exports.HttpApiKeyAuthLocation || (exports.HttpApiKeyAuthLocation = {}));\n\nexports.EndpointURLScheme = void 0;\n(function (EndpointURLScheme) {\n EndpointURLScheme[\"HTTP\"] = \"http\";\n EndpointURLScheme[\"HTTPS\"] = \"https\";\n})(exports.EndpointURLScheme || (exports.EndpointURLScheme = {}));\n\nexports.AlgorithmId = void 0;\n(function (AlgorithmId) {\n AlgorithmId[\"MD5\"] = \"md5\";\n AlgorithmId[\"CRC32\"] = \"crc32\";\n AlgorithmId[\"CRC32C\"] = \"crc32c\";\n AlgorithmId[\"SHA1\"] = \"sha1\";\n AlgorithmId[\"SHA256\"] = \"sha256\";\n})(exports.AlgorithmId || (exports.AlgorithmId = {}));\nconst getChecksumConfiguration = (runtimeConfig) => {\n const checksumAlgorithms = [];\n if (runtimeConfig.sha256 !== undefined) {\n checksumAlgorithms.push({\n algorithmId: () => exports.AlgorithmId.SHA256,\n checksumConstructor: () => runtimeConfig.sha256,\n });\n }\n if (runtimeConfig.md5 != undefined) {\n checksumAlgorithms.push({\n algorithmId: () => exports.AlgorithmId.MD5,\n checksumConstructor: () => runtimeConfig.md5,\n });\n }\n return {\n addChecksumAlgorithm(algo) {\n checksumAlgorithms.push(algo);\n },\n checksumAlgorithms() {\n return checksumAlgorithms;\n },\n };\n};\nconst resolveChecksumRuntimeConfig = (clientConfig) => {\n const runtimeConfig = {};\n clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => {\n runtimeConfig[checksumAlgorithm.algorithmId()] = checksumAlgorithm.checksumConstructor();\n });\n return runtimeConfig;\n};\n\nconst getDefaultClientConfiguration = (runtimeConfig) => {\n return getChecksumConfiguration(runtimeConfig);\n};\nconst resolveDefaultRuntimeConfig = (config) => {\n return resolveChecksumRuntimeConfig(config);\n};\n\nexports.FieldPosition = void 0;\n(function (FieldPosition) {\n FieldPosition[FieldPosition[\"HEADER\"] = 0] = \"HEADER\";\n FieldPosition[FieldPosition[\"TRAILER\"] = 1] = \"TRAILER\";\n})(exports.FieldPosition || (exports.FieldPosition = {}));\n\nconst SMITHY_CONTEXT_KEY = \"__smithy_context\";\n\nexports.IniSectionType = void 0;\n(function (IniSectionType) {\n IniSectionType[\"PROFILE\"] = \"profile\";\n IniSectionType[\"SSO_SESSION\"] = \"sso-session\";\n IniSectionType[\"SERVICES\"] = \"services\";\n})(exports.IniSectionType || (exports.IniSectionType = {}));\n\nexports.RequestHandlerProtocol = void 0;\n(function (RequestHandlerProtocol) {\n RequestHandlerProtocol[\"HTTP_0_9\"] = \"http/0.9\";\n RequestHandlerProtocol[\"HTTP_1_0\"] = \"http/1.0\";\n RequestHandlerProtocol[\"TDS_8_0\"] = \"tds/8.0\";\n})(exports.RequestHandlerProtocol || (exports.RequestHandlerProtocol = {}));\n\nexports.SMITHY_CONTEXT_KEY = SMITHY_CONTEXT_KEY;\nexports.getDefaultClientConfiguration = getDefaultClientConfiguration;\nexports.resolveDefaultRuntimeConfig = resolveDefaultRuntimeConfig;\n"],"x_google_ignoreList":[0],"mappings":";;;;AAEA,SAAQ,mBAAmB,KAAK;AAChC,EAAC,SAAU,kBAAkB;AACzB,mBAAiB,YAAY;AAC7B,mBAAiB,WAAW;IAC7B,QAAQ,qBAAqB,QAAQ,mBAAmB,EAAE,EAAE;AAE/D,SAAQ,yBAAyB,KAAK;AACtC,EAAC,SAAU,wBAAwB;AAC/B,yBAAuB,YAAY;AACnC,yBAAuB,WAAW;IACnC,QAAQ,2BAA2B,QAAQ,yBAAyB,EAAE,EAAE;AAE3E,SAAQ,oBAAoB,KAAK;AACjC,EAAC,SAAU,mBAAmB;AAC1B,oBAAkB,UAAU;AAC5B,oBAAkB,WAAW;IAC9B,QAAQ,sBAAsB,QAAQ,oBAAoB,EAAE,EAAE;AAEjE,SAAQ,cAAc,KAAK;AAC3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