-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathconfig.js
505 lines (423 loc) · 17.6 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
var config = require("./conf.js");
var CONSTANTS = require("./constants.js");
var util = require("./util.js");
var refThis = null;
refThis = this;
refThis[CONSTANTS.COMMON.OWVERSION] = config[CONSTANTS.CONFIG.COMMON][CONSTANTS.COMMON.OWVERSION];
refThis[CONSTANTS.COMMON.PBVERSION] = config[CONSTANTS.CONFIG.COMMON][CONSTANTS.COMMON.PBVERSION];
exports.getPublisherId = function () {
return util.trim(config.pwt.pubid) || "0";
};
// removeIf(removeLegacyAnalyticsRelatedCode)
exports.getMataDataPattern = function(){
if(util.isString(config[CONSTANTS.CONFIG.COMMON][CONSTANTS.CONFIG.META_DATA_PATTERN])){
return config[CONSTANTS.CONFIG.COMMON][CONSTANTS.CONFIG.META_DATA_PATTERN];
}
return null;
};
// endRemoveIf(removeLegacyAnalyticsRelatedCode)
exports.getSendAllBidsStatus = function () {
return window.parseInt(config[CONSTANTS.CONFIG.COMMON][CONSTANTS.CONFIG.SEND_ALL_BIDS]) || 0;
};
exports.getTimeout = function () {
return window.parseInt(config.pwt.t) || 1000;
};
exports.getDisableAjaxTimeout = function () {
var pwt = config.pwt;
if (util.isOwnProperty(pwt, CONSTANTS.CONFIG.DISABLE_AJAX_TIMEOUT)) {
return true == config.pwt.disableAjaxTimeout;
}
return true;
};
exports.getAdapterRevShare = function (adapterID) {
var adapterConfig = config.adapters;
if (util.isOwnProperty(adapterConfig[adapterID], CONSTANTS.CONFIG.REV_SHARE)) {
return (1 - window.parseFloat(adapterConfig[adapterID][CONSTANTS.CONFIG.REV_SHARE]) / 100);
}
return 1;
};
exports.getAdapterThrottle = function (adapterID) {
var adapterConfig = config.adapters;
if (util.isOwnProperty(adapterConfig[adapterID], CONSTANTS.CONFIG.THROTTLE)) {
return 100 - window.parseFloat(adapterConfig[adapterID][CONSTANTS.CONFIG.THROTTLE]);
}
return 0;
};
exports.isServerSideAdapter = function (adapterID) {
var adapterConfig = config.adapters;
/* istanbul ignore else */
if (adapterConfig[adapterID] && util.isOwnProperty(adapterConfig[adapterID], CONSTANTS.CONFIG.SERVER_SIDE_ENABLED)) {
return window.parseInt(adapterConfig[adapterID][CONSTANTS.CONFIG.SERVER_SIDE_ENABLED]) === 1;
}
return false;
};
// removeIf(removeLegacyAnalyticsRelatedCode)
exports.getAdapterMaskBidsStatus = function(adapterID){
var adapterConfig = config.adapters;
var tempSettings = {
'audienceNetwork': 1
};
if (util.isOwnProperty(tempSettings, adapterID)) {
return tempSettings[adapterID];
}
if (util.isOwnProperty(adapterConfig[adapterID], CONSTANTS.CONFIG.MASK_BIDS)) {
return window.parseInt(adapterConfig[adapterID][CONSTANTS.CONFIG.MASK_BIDS]) || 0;
}
return 0;
}
// endRemoveIf(removeLegacyAnalyticsRelatedCode)
// TODO: do we need this feature?
exports.getBidPassThroughStatus = function(adapterID){
var adapterConfig = config.adapters;
if (util.isOwnProperty(adapterConfig[adapterID], CONSTANTS.CONFIG.BID_PASS_THROUGH)) {
return window.parseInt(adapterConfig[adapterID][CONSTANTS.CONFIG.BID_PASS_THROUGH]);
}
return 0;
};
exports.getProfileID = function () {
return util.trim(config.pwt[CONSTANTS.CONFIG.PROFILE_ID]) || "0";
};
exports.getProfileDisplayVersionID = function () {
return util.trim(config.pwt[CONSTANTS.CONFIG.PROFILE_VERSION_ID]) || "0";
};
// removeIf(removeLegacyAnalyticsRelatedCode)
exports.getAnalyticsPixelURL = function(){
return config.pwt[CONSTANTS.CONFIG.LOGGER_URL] || false;
};
// endRemoveIf(removeLegacyAnalyticsRelatedCode)
// removeIf(removeLegacyAnalyticsRelatedCode)
exports.getMonetizationPixelURL = function(){
return config.pwt[CONSTANTS.CONFIG.TRACKER_URL] || false;
};
// endRemoveIf(removeLegacyAnalyticsRelatedCode)
exports.forEachAdapter = function (callback) {
util.forEachOnObject(config.adapters, callback);
};
function addPrebidAdapter() {
var preBidAdapter = CONSTANTS.COMMON.PARENT_ADAPTER_PREBID;
if (!util.isOwnProperty(config.adapters, preBidAdapter)) {
var adapterConfig = {};
adapterConfig[CONSTANTS.CONFIG.REV_SHARE] = "0.0";
adapterConfig[CONSTANTS.CONFIG.THROTTLE] = "100";
adapterConfig[CONSTANTS.CONFIG.KEY_GENERATION_PATTERN] = "_DIV_";
adapterConfig[CONSTANTS.CONFIG.KEY_LOOKUP_MAP] = {};
config.adapters[preBidAdapter] = adapterConfig;
}
}
exports.getGdpr = function () {
var gdpr = config[CONSTANTS.CONFIG.COMMON][CONSTANTS.CONFIG.GDPR_CONSENT] || CONSTANTS.CONFIG.DEFAULT_GDPR_CONSENT;
return gdpr === "1";
};
exports.getCmpApi = function () {
return config[CONSTANTS.CONFIG.COMMON][CONSTANTS.CONFIG.GDPR_CMPAPI] || CONSTANTS.CONFIG.DEFAULT_GDPR_CMPAPI;
};
exports.getGdprTimeout = function () {
var gdprTimeout = config[CONSTANTS.CONFIG.COMMON][CONSTANTS.CONFIG.GDPR_TIMEOUT];
return gdprTimeout ? window.parseInt(gdprTimeout) : CONSTANTS.CONFIG.DEFAULT_GDPR_TIMEOUT;
};
exports.getAwc = function () {
var awc = config[CONSTANTS.CONFIG.COMMON][CONSTANTS.CONFIG.GDPR_AWC] || CONSTANTS.CONFIG.DEFAULT_GDPR_AWC;
return awc === "1";
};
exports.getOverrideNamespace = function(configKey, defaultName, returnValueInCaseMissingNamespace) {
var pbNamespace = config[CONSTANTS.CONFIG.COMMON][configKey];
if (pbNamespace) {
return pbNamespace === defaultName ? returnValueInCaseMissingNamespace : pbNamespace;
} else {
return returnValueInCaseMissingNamespace;
}
}
/* start-test-block */
exports.addPrebidAdapter = addPrebidAdapter;
/* end-test-block */
exports.initConfig = function () {
refThis.updateABTestConfig();
refThis.addPrebidAdapter();
var ignoreAdapterLevelParams = {};
util.forEachOnObject(CONSTANTS.CONFIG, function (key, value) {
ignoreAdapterLevelParams[value] = "";
});
util.forEachOnObject(config.adapters, function (adapterID, adapterConfig) {
var adapterLevelParams = {};
util.forEachOnObject(adapterConfig, function (key, value) {
if (!util.isOwnProperty(ignoreAdapterLevelParams, key)) {
adapterLevelParams[key] = value;
}
});
util.forEachOnObject(adapterConfig[CONSTANTS.CONFIG.KEY_LOOKUP_MAP], function (kgpv, slotLevelParams) {
util.forEachOnObject(adapterLevelParams, function (key, value) {
slotLevelParams[key] = value;
});
});
if (adapterID != "pubmatic" && adapterID != "pubmatic2") {
util.forEachOnObject(adapterConfig[CONSTANTS.CONFIG.REGEX_KEY_LOOKUP_MAP], function (kgpv, slotLevelParams) {
util.forEachOnObject(adapterLevelParams, function (key, value) {
if (util.isOwnProperty(slotLevelParams, "rx_config")) {
slotLevelParams["rx_config"][key] = value;
}
});
});
}
});
};
/* Native Configuration */
exports.getNativeConfiguration = function () {
return config[CONSTANTS.COMMON.NATIVE_MEDIA_TYPE_CONFIG];
};
exports.getAdServerCurrency = function () {
return config[CONSTANTS.CONFIG.COMMON][CONSTANTS.COMMON.AD_SERVER_CURRENCY];
};
exports.isSingleImpressionSettingEnabled = function () {
return parseInt(config[CONSTANTS.CONFIG.COMMON][CONSTANTS.COMMON.SINGLE_IMPRESSION] || CONSTANTS.CONFIG.DEFAULT_SINGLE_IMPRESSION);
};
exports.isUserIdModuleEnabled = function () {
return parseInt(config[CONSTANTS.CONFIG.COMMON][CONSTANTS.COMMON.ENABLE_USER_ID] || CONSTANTS.CONFIG.DEFAULT_USER_ID_MODULE);
};
exports.getIdentityPartners = function () {
return config[CONSTANTS.COMMON.IDENTITY_PARTNERS];
};
exports.isIdentityOnly = function () {
return parseInt(config[CONSTANTS.CONFIG.COMMON][CONSTANTS.COMMON.IDENTITY_ONLY] || CONSTANTS.CONFIG.DEFAULT_IDENTITY_ONLY);
};
exports.getIdentityConsumers = function () {
return (config[CONSTANTS.CONFIG.COMMON][CONSTANTS.COMMON.IDENTITY_CONSUMERS] || "").toLowerCase();
};
exports.getSlotConfiguration = function () {
return config[CONSTANTS.COMMON.SLOT_CONFIG];
};
exports.getAdServer = function () {
return config[CONSTANTS.COMMON.ADSERVER];
};
exports.getCCPA = function () {
var ccpa = config[CONSTANTS.CONFIG.COMMON][CONSTANTS.CONFIG.CCPA_CONSENT] || CONSTANTS.CONFIG.DEFAULT_CCPA_CONSENT;
return ccpa === "1";
};
exports.getCCPACmpApi = function () {
return config[CONSTANTS.CONFIG.COMMON][CONSTANTS.CONFIG.CCPA_CMPAPI] || CONSTANTS.CONFIG.DEFAULT_CCPA_CMPAPI;
};
exports.getCCPATimeout = function () {
var ccpaTimeout = config[CONSTANTS.CONFIG.COMMON][CONSTANTS.CONFIG.CCPA_TIMEOUT];
return ccpaTimeout ? window.parseInt(ccpaTimeout) : CONSTANTS.CONFIG.DEFAULT_CCPA_TIMEOUT;
};
exports.getSchainObject = function () {
return config[CONSTANTS.CONFIG.COMMON][CONSTANTS.COMMON.SCHAINOBJECT] || {};
};
exports.isSchainEnabled = function () {
return window.parseInt(config[CONSTANTS.CONFIG.COMMON][CONSTANTS.COMMON.SCHAIN]) || 0;
};
exports.isFloorPriceModuleEnabled = function(){
return window.parseInt(config[CONSTANTS.CONFIG.COMMON][CONSTANTS.CONFIG.FLOOR_PRICE_MODULE_ENABLED]) === 1;
}
exports.getFloorSource = function(){
return config[CONSTANTS.CONFIG.COMMON][CONSTANTS.CONFIG.FLOOR_SOURCE];
}
exports.getFloorJsonUrl = function(){
return config[CONSTANTS.CONFIG.COMMON][CONSTANTS.CONFIG.FLOOR_JSON_URL];
}
// It will return the auctionDelay specified in conf.js or else default is 100
exports.getFloorAuctionDelay = function(){
var auctionDelay = config[CONSTANTS.CONFIG.COMMON][CONSTANTS.CONFIG.FLOOR_AUCTION_DELAY];
return auctionDelay ? window.parseInt(auctionDelay) : CONSTANTS.CONFIG.DEFAULT_FLOOR_AUCTION_DELAY;
}
// It will return the floorType specified in conf.js or else default is true
exports.getFloorType = function(){
return config[CONSTANTS.CONFIG.COMMON][CONSTANTS.CONFIG.FLOOR_ENFORCE_JS] && (config[CONSTANTS.CONFIG.COMMON][CONSTANTS.CONFIG.FLOOR_ENFORCE_JS]).toLowerCase() === CONSTANTS.COMMON.HARD_FLOOR ? true : false;
}
exports.isPrebidPubMaticAnalyticsEnabled = function () {
// note: not using window.parseInt as this function is also used in build.sh that runs in NodeJS environment
return parseInt(config[CONSTANTS.CONFIG.COMMON][CONSTANTS.CONFIG.ENABLE_PB_PM_ANALYTICS]) === 1;
};
exports.isUsePrebidKeysEnabled = function () {
// note: not using window.parseInt as this function is also used in build.sh that runs in NodeJS environment
return parseInt(config[CONSTANTS.CONFIG.COMMON][CONSTANTS.CONFIG.USE_PREBID_KEYS]) === 1;
};
exports.PBJS_NAMESPACE = config[CONSTANTS.CONFIG.COMMON][CONSTANTS.COMMON.PBJS_NAMESPACE] || "pbjs";
// removeIf(removeAlways)
exports.isReduceCodeSizeFeatureEnabled = function(){
// note: not using window.parseInt as this function is also used in build.sh that runs in NodeJS environment
return parseInt(config[CONSTANTS.CONFIG.COMMON][CONSTANTS.COMMON.REDUCE_CODE_SIZE]) === 1;
};
// endRemoveIf(removeAlways)
exports.getPriceGranularity = function(){
var priceGranularity = config[CONSTANTS.CONFIG.COMMON][CONSTANTS.COMMON.PRICE_GRANULARITY] || null;
if (priceGranularity === CONSTANTS.COMMON.PRICE_GRANULARITY_CUSTOM) {
var bucketsValue = refThis.getPriceGranularityBuckets();
if(bucketsValue !== null) {
return bucketsValue;
} else {
util.logWarning(CONSTANTS.MESSAGES.M36);
return null;
}
}
else {
return priceGranularity;
}
};
exports.getPriceGranularityBuckets = function () {
var pgBuckets = config[CONSTANTS.CONFIG.COMMON][CONSTANTS.COMMON.PRICE_GRANULARITY_BUCKETS] || null;
if(pgBuckets === null)
return null;
// API would be providing us with ranges as keyword, we need to raplace it by buckets before processing
var transformedBuckets = {};
delete Object.assign(transformedBuckets, pgBuckets, {['buckets']: pgBuckets['ranges'] })['ranges'];
return transformedBuckets;
};
exports.getGranularityMultiplier = function(){
return parseFloat(config[CONSTANTS.CONFIG.COMMON][CONSTANTS.COMMON.GRANULARITY_MULTIPLIER]) || 1;
};
exports.isAbTestEnabled = function () {
return parseInt(config[CONSTANTS.CONFIG.COMMON][CONSTANTS.CONFIG.AB_TEST_ENABLED]) === 1;
};
exports.getTestPWTConfig = function () {
return config[CONSTANTS.COMMON.TEST_PWT] || {};
};
exports.getTestGroupDetails = function () {
return config[CONSTANTS.COMMON.TEST_GROUP_DETAILS] || {};
};
exports.getTestPartnerConfig = function () {
return config[CONSTANTS.COMMON.TEST_PARTNER] || {};
};
exports.getTestIdentityPartners = function () {
return config[CONSTANTS.COMMON.TEST_IDENTITY_PARTNER] || {};
};
exports.updateABTestConfig = function () {
if (refThis.isAbTestEnabled()) {
var randomNumberBelow100 = util.getRandomNumberBelow100();
var testGroupDetails = refThis.getTestGroupDetails();
// if Random number is smaller than the test group size then test config will be applied
if (testGroupDetails && testGroupDetails.testGroupSize && randomNumberBelow100 < testGroupDetails.testGroupSize) {
refThis.updatePWTConfig();
config.adapters = refThis.updatePartnerConfig(refThis.getTestPartnerConfig(), config.adapters);
if(refThis.getTestIdentityPartners() && refThis.getIdentityPartners()){
if(Object.keys(refThis.getTestIdentityPartners()).length > 0 && Object.keys(refThis.getIdentityPartners()).length == 0){
util.log(CONSTANTS.MESSAGES.M31, JSON.stringify(refThis.getTestIdentityPartners()));
config.identityPartners = refThis.getTestIdentityPartners();
} else if(Object.keys(refThis.getTestIdentityPartners()).length == 0 && Object.keys(refThis.getIdentityPartners()).length > 0){
util.log(CONSTANTS.MESSAGES.M31, JSON.stringify({}));
config.identityPartners = {};
}
else{
config.identityPartners = refThis.updatePartnerConfig(refThis.getTestIdentityPartners(), refThis.getIdentityPartners());
}
}
window.PWT.testGroupId = 1;
}
}
};
exports.updatePWTConfig = function () {
var testConfig = refThis.getTestPWTConfig();
if (testConfig && Object.keys(testConfig).length > 0) {
util.log(CONSTANTS.MESSAGES.M30, JSON.stringify(testConfig));
for (var key in testConfig) {
if (config[CONSTANTS.CONFIG.COMMON][key]) {
config[CONSTANTS.CONFIG.COMMON][key] = testConfig[key];
}
}
//TODO: Uncomment Below code after updating phatomjs or using chrome headless
// Object.assign(config[CONSTANTS.CONFIG.COMMON], testConfig);
}
};
exports.updatePartnerConfig = function (testConfig, controlConfig) {
if (testConfig && controlConfig && Object.keys(testConfig).length > 0 && Object.keys(controlConfig).length > 0) {
util.log(CONSTANTS.MESSAGES.M31, JSON.stringify(testConfig));
for (var key in testConfig) {
if (util.isOwnProperty(testConfig, key) && util.isObject(testConfig[key])) {
if (Object.keys(testConfig[key]).length == 0 && controlConfig[key] && Object.keys(controlConfig[key]).length > 0) {
testConfig[key] = controlConfig[key];
} else if (Object.keys(testConfig[key]).length > 0 && controlConfig[key] && Object.keys(controlConfig[key]).length > 0) {
testConfig[key] = refThis.getMergedConfig(testConfig[key], controlConfig[key]);
}
}
}
window.PWT.testGroupId = 1;
return testConfig;
} else{
// since only one test type can be enabled other type of test config will be empty if other test config is enabled and hence return control config
return controlConfig;
}
};
exports.getTestGroupDetails = function () {
return config[CONSTANTS.COMMON.TEST_GROUP_DETAILS] || {};
};
// This will keep toObject config as is and only merge objects common in both from and toobject
exports.getMergedConfig = function(toObject, fromObject){
for(var key in fromObject){
if(!Object.prototype.hasOwnProperty.call(toObject, key)) {
if(util.isObject(fromObject[key]) || util.isArray(fromObject[key])) {
toObject[key] = JSON.parse(JSON.stringify(fromObject[key]));
}else{
toObject[key] = fromObject[key];
}
}
}
return toObject;
};
exports.forEachBidderAlias = function (callback) {
util.forEachOnObject(config.alias, callback);
};
exports.getAdapterNameForAlias = function(aliasName){
if(config.alias && config.alias[aliasName]){
return config.alias[aliasName] && config.alias[aliasName].name ? config.alias[aliasName].name : config.alias[aliasName];
}
return aliasName;
};
exports.isSSOEnabled = function() {
return parseInt(config[CONSTANTS.CONFIG.COMMON][CONSTANTS.CONFIG.SSO_ENABLED]) === 1;
}
exports.getServerEnabledAdaptars = function() {
var s2sBidders = Object.keys(config.adapters).filter(function(adapter){
if(config.adapters[adapter]["serverSideEnabled"] == "1") {
return adapter;
}
});
return s2sBidders;
}
exports.getTimeoutForPBSRequest = function() {
var ssTimeOut = parseInt(config.pwt.ssTimeout);
var maxTimeout = CONSTANTS.TIMEOUT_CONFIG.MaxTimeout;
var minTimeout = CONSTANTS.TIMEOUT_CONFIG.MinTimeout;
if(ssTimeOut >= minTimeout && ssTimeOut <= maxTimeout) {
return ssTimeOut;
} else if(ssTimeOut >= minTimeout) {
return maxTimeout;
}
return minTimeout;
}
exports.getPubMaticAndAlias = function(s2sBidders) {
var pubMaticaliases = s2sBidders.filter(function(adapter) {
if(config.alias && config.alias[adapter] && ( config.alias[adapter].name ? config.alias[adapter].name.includes("pubmatic") : config.alias[adapter].includes("pubmatic") )|| adapter.includes("pubmatic")) {
return adapter;
}
});
return pubMaticaliases;
}
exports.usePBSAdapter = function() {
if(config.pwt.usePBSAdapter == "1") {
return true;
}
return false;
}
exports.createMacros = function() {
return {
"[PLATFORM]": util.getDevicePlatform().toString(),
"[PROFILE_ID]": refThis.getProfileID().toString(),
"[PROFILE_VERSION]": refThis.getProfileDisplayVersionID().toString()
}
}
exports.getMarketplaceBidders = function(){
return config.pwt.marketplaceBidders ? config.pwt.marketplaceBidders.split(',') : false;
}
exports.getGppConsent = function () {
var gpp = config[CONSTANTS.CONFIG.COMMON][CONSTANTS.CONFIG.GPP_CONSENT] || CONSTANTS.CONFIG.DEFAULT_GPP_CONSENT;
return gpp === "1";
};
exports.getGppCmpApi = function () {
return config[CONSTANTS.CONFIG.COMMON][CONSTANTS.CONFIG.GPP_CMPAPI] || CONSTANTS.CONFIG.DEFAULT_GPP_CMPAPI;
};
exports.getGppTimeout = function () {
var gppTimeout = config[CONSTANTS.CONFIG.COMMON][CONSTANTS.CONFIG.GPP_TIMEOUT];
return gppTimeout ? window.parseInt(gppTimeout) : CONSTANTS.CONFIG.DEFAULT_GPP_TIMEOUT;
}
exports.shouldClearTargeting = function () {
return window.PWT.shouldClearTargeting !== undefined ? Boolean(window.PWT.shouldClearTargeting) : true;
};