auth0-deploy-cli 7.17.3 → 7.17.5
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/.nyc_output/2ecb3d38-b430-4323-9cc5-9b21c23e2080.json +1 -0
- package/.nyc_output/processinfo/1e8407e3-69dd-42c2-9b3d-00b8b19e4e32.json +1 -0
- package/.nyc_output/processinfo/{4931ff4a-8b09-4a9b-899c-ce541c2f6b8a.json → 2ecb3d38-b430-4323-9cc5-9b21c23e2080.json} +1 -1
- package/.nyc_output/processinfo/b270210e-f652-46a6-abe9-c486465b0f74.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -1
- package/CHANGELOG.md +19 -1
- package/coverage/lcov-report/index.html +14 -14
- package/coverage/lcov-report/src/args.ts.html +1 -1
- package/coverage/lcov-report/src/commands/export.ts.html +1 -1
- package/coverage/lcov-report/src/commands/import.ts.html +1 -1
- package/coverage/lcov-report/src/commands/index.html +1 -1
- package/coverage/lcov-report/src/configFactory.ts.html +1 -1
- package/coverage/lcov-report/src/context/defaults.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/actions.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/attackProtection.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/branding.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/clientGrants.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/clients.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/connections.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/customDomains.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/databases.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/emailProvider.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/emailTemplates.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/guardianFactorProviders.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/guardianFactorTemplates.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/guardianFactors.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/guardianPhoneFactorMessageTypes.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/guardianPhoneFactorSelectedProvider.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/guardianPolicies.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/hooks.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/index.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/index.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/logStreams.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/migrations.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/organizations.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/pages.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/prompts.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/resourceServers.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/roles.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/rules.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/rulesConfigs.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/tenant.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/themes.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/triggers.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/index.html +1 -1
- package/coverage/lcov-report/src/context/directory/index.ts.html +1 -1
- package/coverage/lcov-report/src/context/index.html +1 -1
- package/coverage/lcov-report/src/context/index.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/actions.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/attackProtection.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/branding.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/clientGrants.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/clients.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/connections.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/customDomains.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/databases.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/emailProvider.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/emailTemplates.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/guardianFactorProviders.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/guardianFactorTemplates.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/guardianFactors.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/guardianPhoneFactorMessageTypes.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/guardianPhoneFactorSelectedProvider.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/guardianPolicies.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/hooks.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/index.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/index.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/logStreams.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/migrations.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/organizations.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/pages.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/prompts.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/resourceServers.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/roles.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/rules.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/rulesConfigs.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/tenant.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/themes.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/triggers.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/index.html +1 -1
- package/coverage/lcov-report/src/context/yaml/index.ts.html +1 -1
- package/coverage/lcov-report/src/index.html +1 -1
- package/coverage/lcov-report/src/index.ts.html +1 -1
- package/coverage/lcov-report/src/keywordPreservation.ts.html +1 -1
- package/coverage/lcov-report/src/logger.ts.html +2 -2
- package/coverage/lcov-report/src/readonly.ts.html +1 -1
- package/coverage/lcov-report/src/sessionDurationsToMinutes.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/client.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/actions.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/attackProtection.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/branding.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/clientGrants.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/clients.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/connections.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/customDomains.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/databases.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/default.ts.html +27 -27
- package/coverage/lcov-report/src/tools/auth0/handlers/emailProvider.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/emailTemplates.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/guardianFactorProviders.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/guardianFactorTemplates.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/guardianFactors.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/guardianPhoneFactorMessageTypes.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/guardianPhoneFactorSelectedProvider.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/guardianPolicies.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/hooks.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/index.html +14 -14
- package/coverage/lcov-report/src/tools/auth0/handlers/index.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/logStreams.ts.html +21 -9
- package/coverage/lcov-report/src/tools/auth0/handlers/migrations.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/organizations.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/pages.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/prompts.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/resourceServers.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/roles.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/rules.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/rulesConfigs.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/tenant.ts.html +154 -73
- package/coverage/lcov-report/src/tools/auth0/handlers/themes.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/triggers.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/index.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/index.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/schema.ts.html +1 -1
- package/coverage/lcov-report/src/tools/calculateChanges.ts.html +20 -20
- package/coverage/lcov-report/src/tools/constants.ts.html +1 -1
- package/coverage/lcov-report/src/tools/deploy.ts.html +1 -1
- package/coverage/lcov-report/src/tools/index.html +1 -1
- package/coverage/lcov-report/src/tools/index.ts.html +1 -1
- package/coverage/lcov-report/src/tools/utils.ts.html +26 -26
- package/coverage/lcov-report/src/tools/validationError.ts.html +1 -1
- package/coverage/lcov-report/src/types.ts.html +1 -1
- package/coverage/lcov-report/src/utils.ts.html +2 -2
- package/coverage/lcov.info +261 -251
- package/lib/tools/auth0/handlers/logStreams.js +5 -1
- package/lib/tools/auth0/handlers/logStreams.js.map +1 -1
- package/lib/tools/auth0/handlers/tenant.d.ts +2 -4
- package/lib/tools/auth0/handlers/tenant.js +59 -30
- package/lib/tools/auth0/handlers/tenant.js.map +1 -1
- package/package.json +1 -1
- package/.nyc_output/4931ff4a-8b09-4a9b-899c-ce541c2f6b8a.json +0 -1
- package/.nyc_output/processinfo/760b21c1-74f0-47a2-bacb-55b1796d1d84.json +0 -1
- package/.nyc_output/processinfo/f8a6012a-6f3c-46cf-8693-1687738e001c.json +0 -1
- /package/.nyc_output/{760b21c1-74f0-47a2-bacb-55b1796d1d84.json → 1e8407e3-69dd-42c2-9b3d-00b8b19e4e32.json} +0 -0
- /package/.nyc_output/{f8a6012a-6f3c-46cf-8693-1687738e001c.json → b270210e-f652-46a6-abe9-c486465b0f74.json} +0 -0
|
@@ -36,7 +36,11 @@ exports.schema = {
|
|
|
36
36
|
};
|
|
37
37
|
class LogStreamsHandler extends default_1.default {
|
|
38
38
|
constructor(config) {
|
|
39
|
-
super(Object.assign(Object.assign({}, config), { type: 'logStreams', stripUpdateFields: ['type'], stripCreateFields: ['status', 'sink.awsPartnerEventSource'], sensitiveFieldsToObfuscate: [
|
|
39
|
+
super(Object.assign(Object.assign({}, config), { type: 'logStreams', stripUpdateFields: ['type'], stripCreateFields: ['status', 'sink.awsPartnerEventSource'], sensitiveFieldsToObfuscate: [
|
|
40
|
+
'sink.httpAuthorization',
|
|
41
|
+
'sink.splunkToken',
|
|
42
|
+
'sink.datadogApiKey',
|
|
43
|
+
] }));
|
|
40
44
|
}
|
|
41
45
|
objString(item) {
|
|
42
46
|
return super.objString(item.name);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logStreams.js","sourceRoot":"","sources":["../../../../src/tools/auth0/handlers/logStreams.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,wDAA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U,EAAE,GAAG,MAAM,CAAC;YAE9B,IAAI,CAAC,UAAU;gBAAE,OAAO;YAExB,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE;gBAC9D,uCACK,OAAO,KACV,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,MAAiB,EAAE,EAAE;wBAC/C,IAAI,MAAM,CAAC,IAAI,KAAK,aAAa,IAAI,MAAM,CAAC,IAAI,KAAK,WAAW,EAAE;4BAChE,OAAO,MAAM,CAAC,IAAI,CAAC;yBACpB;wBACD,IAAI,MAAM,CAAC,MAAM,KAAK,WAAW,EAAE;4BACjC,kGAAkG;4BAClG,yFAAyF;4BACzF,oEAAoE;4BACpE,OAAO,MAAM,CAAC,MAAM,CAAC;yBACtB;wBACD,OAAO,MAAM,CAAC;oBAChB,CAAC,CAAC,IACF;YACJ,CAAC,CAAC,CAAC;YAEH,MAAM,OAAM,cAAc,YAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAC9C,CAAC;KAAA;CACF;AA/DD,oCA+DC"}
|
|
@@ -16,7 +16,5 @@ export default class TenantHandler extends DefaultHandler {
|
|
|
16
16
|
validate(assets: Assets): Promise<void>;
|
|
17
17
|
processChanges(assets: Assets): Promise<void>;
|
|
18
18
|
}
|
|
19
|
-
export declare const
|
|
20
|
-
|
|
21
|
-
proposedFlags: Tenant['flags'];
|
|
22
|
-
}) => Tenant['flags'];
|
|
19
|
+
export declare const allowedTenantFlags: string[];
|
|
20
|
+
export declare const removeUnallowedTenantFlags: (proposedFlags: Tenant['flags'] | undefined) => Tenant['flags'];
|
|
@@ -41,11 +41,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
41
41
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
42
42
|
};
|
|
43
43
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44
|
-
exports.
|
|
44
|
+
exports.removeUnallowedTenantFlags = exports.allowedTenantFlags = exports.schema = void 0;
|
|
45
45
|
const validationError_1 = __importDefault(require("../../validationError"));
|
|
46
46
|
const default_1 = __importStar(require("./default"));
|
|
47
47
|
const pages_1 = require("./pages");
|
|
48
48
|
const utils_1 = require("../../utils");
|
|
49
|
+
const logger_1 = __importDefault(require("../../../logger"));
|
|
49
50
|
exports.schema = {
|
|
50
51
|
type: 'object',
|
|
51
52
|
};
|
|
@@ -61,6 +62,7 @@ class TenantHandler extends default_1.default {
|
|
|
61
62
|
getType() {
|
|
62
63
|
return __awaiter(this, void 0, void 0, function* () {
|
|
63
64
|
const tenant = yield this.client.tenant.getSettings();
|
|
65
|
+
tenant.flags = (0, exports.removeUnallowedTenantFlags)(tenant.flags);
|
|
64
66
|
this.existing = tenant;
|
|
65
67
|
blockPageKeys.forEach((key) => {
|
|
66
68
|
if (tenant[key])
|
|
@@ -88,13 +90,12 @@ class TenantHandler extends default_1.default {
|
|
|
88
90
|
// Do nothing if not set
|
|
89
91
|
if (!tenant)
|
|
90
92
|
return;
|
|
91
|
-
const existingTenant = this.existing || (yield this.getType());
|
|
92
93
|
const updatedTenant = Object.assign({}, tenant);
|
|
93
94
|
if ('flags' in updatedTenant) {
|
|
94
|
-
updatedTenant.flags = (0, exports.
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}
|
|
95
|
+
updatedTenant.flags = (0, exports.removeUnallowedTenantFlags)(tenant.flags);
|
|
96
|
+
if (Object.keys(updatedTenant.flags).length === 0) {
|
|
97
|
+
delete updatedTenant.flags;
|
|
98
|
+
}
|
|
98
99
|
}
|
|
99
100
|
if (updatedTenant && Object.keys(updatedTenant).length > 0) {
|
|
100
101
|
yield this.client.tenant.updateSettings(updatedTenant);
|
|
@@ -108,30 +109,58 @@ __decorate([
|
|
|
108
109
|
(0, default_1.order)('100')
|
|
109
110
|
], TenantHandler.prototype, "processChanges", null);
|
|
110
111
|
exports.default = TenantHandler;
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
112
|
+
/*
|
|
113
|
+
Tenant flags are used to facilitate a number of functionalities, some
|
|
114
|
+
public, some internal. The subset of flags that are allowed to be updated
|
|
115
|
+
in the context of the Deploy CLI is based on wether they're publicly exposed
|
|
116
|
+
in the Auth0 API docs:
|
|
117
|
+
|
|
118
|
+
https://auth0.com/docs/api/management/v2#!/Tenants/patch_settings
|
|
119
|
+
*/
|
|
120
|
+
exports.allowedTenantFlags = [
|
|
121
|
+
'change_pwd_flow_v1',
|
|
122
|
+
'enable_client_connections',
|
|
123
|
+
'enable_apis_section',
|
|
124
|
+
'enable_pipeline2',
|
|
125
|
+
'enable_dynamic_client_registration',
|
|
126
|
+
'enable_custom_domain_in_emails',
|
|
127
|
+
'allow_legacy_tokeninfo_endpoint',
|
|
128
|
+
'enable_legacy_profile',
|
|
129
|
+
'enable_idtoken_api2',
|
|
130
|
+
'enable_public_signup_user_exists_error',
|
|
131
|
+
'allow_legacy_delegation_grant_types',
|
|
132
|
+
'allow_legacy_ro_grant_types',
|
|
133
|
+
'enable_sso',
|
|
134
|
+
'disable_clickjack_protection_headers',
|
|
135
|
+
'no_disclose_enterprise_connections',
|
|
136
|
+
'disable_management_api_sms_obfuscation',
|
|
137
|
+
'enforce_client_authentication_on_passwordless_start',
|
|
138
|
+
'trust_azure_adfs_email_verified_connection_property',
|
|
139
|
+
'enable_adfs_waad_email_verification',
|
|
140
|
+
'revoke_refresh_token_grant',
|
|
141
|
+
'dashboard_log_streams_next',
|
|
142
|
+
'dashboard_insights_view',
|
|
143
|
+
'disable_fields_map_fix',
|
|
144
|
+
'require_pushed_authorization_requests',
|
|
145
|
+
'mfa_show_factor_list_on_enrollment',
|
|
146
|
+
];
|
|
147
|
+
const removeUnallowedTenantFlags = (proposedFlags) => {
|
|
148
|
+
if (proposedFlags === undefined)
|
|
149
|
+
return {};
|
|
150
|
+
const removedFlags = [];
|
|
151
|
+
const filteredFlags = Object.keys(proposedFlags).reduce((acc, proposedKey) => {
|
|
152
|
+
const isAllowedFlag = exports.allowedTenantFlags.includes(proposedKey);
|
|
153
|
+
if (!isAllowedFlag) {
|
|
154
|
+
removedFlags.push(proposedKey);
|
|
155
|
+
return acc;
|
|
156
|
+
}
|
|
157
|
+
return Object.assign(Object.assign({}, acc), { [proposedKey]: proposedFlags[proposedKey] });
|
|
134
158
|
}, {});
|
|
159
|
+
if (removedFlags.length > 0) {
|
|
160
|
+
logger_1.default.warn(`The following tenant flag${removedFlags.length > 1 ? 's have not been' : ' has not been'} updated because deemed incompatible with the target tenant: ${removedFlags.join(', ')}
|
|
161
|
+
${removedFlags.length > 1 ? 'These flags' : 'This flag'} can likely be removed from the tenant definition file. If you believe this removal is an error, please report via a Github issue.`);
|
|
162
|
+
}
|
|
163
|
+
return filteredFlags;
|
|
135
164
|
};
|
|
136
|
-
exports.
|
|
165
|
+
exports.removeUnallowedTenantFlags = removeUnallowedTenantFlags;
|
|
137
166
|
//# sourceMappingURL=tenant.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tenant.js","sourceRoot":"","sources":["../../../../src/tools/auth0/handlers/tenant.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4EAAoD;AAEpD,qDAAkD;AAClD,mCAAsD;AACtD,uCAAkD;
|
|
1
|
+
{"version":3,"file":"tenant.js","sourceRoot":"","sources":["../../../../src/tools/auth0/handlers/tenant.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4EAAoD;AAEpD,q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