browserstack-node-sdk 1.66.3 → 1.66.4
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/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/detox/a11ySetup.js +1 -1
- package/src/bin/detox/command.js +1 -1
- package/src/bin/detox/modifyDetoxConf.js +1 -1
- package/src/bin/detox/traEmitter.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
- package/src/bin/jasmine/command.js +1 -1
- package/src/bin/jasmine/test.setup.js +1 -1
- package/src/bin/jasmine/testRunMap.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadErrors.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/node-generic/client.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/reporterArgs.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/testcafe/a11y-runner.js +1 -1
- package/src/bin/testcafe/command.js +1 -1
- package/src/bin/testcafe/reporter/index.js +1 -1
- package/src/bin/testcafe/reporter/tcUtils.js +1 -1
- package/src/bin/testcafe/session-registry.js +1 -1
- package/src/bin/testcafe/stdout-interceptor.js +1 -1
- package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
- package/src/bin/testcafe/w3c-driver.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/nodeGenericTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/sdkErrorHandler.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/caCertHelper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/driverInitErrorReporter.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/stackFrameUtils.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a163_0x47cf9f=a163_0x1b0d;(function(_0x242328,_0x1b81b7){const _0x18d9cf=a163_0x1b0d,_0x552273=_0x242328();while(!![]){try{const _0x272d13=-parseInt(_0x18d9cf(0xca))/0x1+parseInt(_0x18d9cf(0xed))/0x2+-parseInt(_0x18d9cf(0xb3))/0x3+-parseInt(_0x18d9cf(0x9a))/0x4+parseInt(_0x18d9cf(0xbd))/0x5+-parseInt(_0x18d9cf(0xc0))/0x6*(parseInt(_0x18d9cf(0xde))/0x7)+parseInt(_0x18d9cf(0xac))/0x8;if(_0x272d13===_0x1b81b7)break;else _0x552273['push'](_0x552273['shift']());}catch(_0x36de47){_0x552273['push'](_0x552273['shift']());}}}(a163_0x4e5c,0xcce66));function a163_0x1b0d(_0x16368d,_0x1e771f){const _0x4e5cab=a163_0x4e5c();return a163_0x1b0d=function(_0x1b0deb,_0x2105c0){_0x1b0deb=_0x1b0deb-0x7d;let _0xd2194=_0x4e5cab[_0x1b0deb];return _0xd2194;},a163_0x1b0d(_0x16368d,_0x1e771f);}const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require(a163_0x47cf9f(0xa0)),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require(a163_0x47cf9f(0xc3)),{nestedKeyValue}=require(a163_0x47cf9f(0xd1)),util=require(a163_0x47cf9f(0x9e)),constants=require(a163_0x47cf9f(0x8d));class RequestQueueHandler{static [a163_0x47cf9f(0x97)];[a163_0x47cf9f(0x90)]=0x0;[a163_0x47cf9f(0x80)]=0x0;constructor(){const _0x1186e8=a163_0x47cf9f,_0xe1fb72={};_0xe1fb72[_0x1186e8(0x7d)]=_0x1186e8(0xc6),_0xe1fb72[_0x1186e8(0xbb)]=_0x1186e8(0x9c),_0xe1fb72['CiHOk']=_0x1186e8(0xd4),_0xe1fb72['fQKsy']=_0x1186e8(0x91),_0xe1fb72[_0x1186e8(0xa6)]=_0x1186e8(0xbc),_0xe1fb72[_0x1186e8(0xe7)]=_0x1186e8(0xc1),_0xe1fb72['tmgLh']=_0x1186e8(0xab),_0xe1fb72['snQxE']=_0x1186e8(0x94),_0xe1fb72[_0x1186e8(0xef)]='TestRunStarted',_0xe1fb72[_0x1186e8(0x9b)]='HookRunStarted',_0xe1fb72[_0x1186e8(0xbe)]=_0x1186e8(0xb8);const _0x34ed41=_0xe1fb72,_0x3f6d80=_0x34ed41[_0x1186e8(0x7d)]['split']('|');let _0x296377=0x0;while(!![]){switch(_0x3f6d80[_0x296377++]){case'0':this[_0x1186e8(0xae)]=_0x34ed41[_0x1186e8(0xbb)];continue;case'1':this[_0x1186e8(0x9d)]=_0x34ed41[_0x1186e8(0xec)];continue;case'2':this[_0x1186e8(0x88)]=null;continue;case'3':this['BATCH_EVENT_TYPES']=[_0x34ed41['fQKsy'],_0x34ed41[_0x1186e8(0xa6)],_0x34ed41['Vazva'],_0x34ed41['tmgLh'],_0x34ed41[_0x1186e8(0xdc)],_0x34ed41[_0x1186e8(0xef)],_0x34ed41[_0x1186e8(0x9b)]];continue;case'4':this['queue']=[];continue;case'5':this['screenshotEventUrl']=_0x34ed41[_0x1186e8(0xbe)];continue;case'6':this[_0x1186e8(0x99)]=![];continue;}break;}}static[a163_0x47cf9f(0xdf)](){const _0x2bcc81=a163_0x47cf9f;return!RequestQueueHandler[_0x2bcc81(0x97)]&&(RequestQueueHandler[_0x2bcc81(0x97)]=new RequestQueueHandler()),RequestQueueHandler['instance'];}[a163_0x47cf9f(0xea)]=()=>{const _0x102205=a163_0x47cf9f;!this[_0x102205(0x99)]&&(this[_0x102205(0x99)]=!![],this[_0x102205(0xcd)]());};[a163_0x47cf9f(0x87)]=_0x57764d=>{const _0x89409f=a163_0x47cf9f,_0x2f2a2f={'xjTsL':function(_0x2e1d04,_0x477d38){return _0x2e1d04===_0x477d38;},'mOYpK':_0x89409f(0xe9),'FbAzr':function(_0x57cc41,_0x4fcf51){return _0x57cc41>_0x4fcf51;},'RYDWh':function(_0x2bd120,_0x43bb7b){return _0x2bd120===_0x43bb7b;},'Cyxgb':'TEST_ATTACHMENT','wWxFk':function(_0x3fc2a2,_0x53e621){return _0x3fc2a2!==_0x53e621;},'fCkfk':_0x89409f(0xc1),'vncbr':function(_0x58d37f,_0x4df8bf){return _0x58d37f(_0x4df8bf);},'scyPJ':_0x89409f(0x8c)};if(this['BATCH_EVENT_TYPES'][_0x89409f(0xa1)](_0x57764d[_0x89409f(0xd6)])){if(_0x57764d[_0x89409f(0x8f)]&&_0x57764d['logs'][0x0]&&_0x2f2a2f['xjTsL'](_0x57764d['logs'][0x0][_0x89409f(0x8a)],_0x2f2a2f[_0x89409f(0xf1)])){const _0x3417b4={};return _0x3417b4[_0x89409f(0xe5)]=!![],_0x3417b4['proceedWithData']=[_0x57764d],_0x3417b4['proceedWithUrl']=this[_0x89409f(0x84)],_0x3417b4;}if(_0x57764d[_0x89409f(0x8f)]&&_0x2f2a2f[_0x89409f(0x95)](_0x57764d[_0x89409f(0x8f)]['length'],0x0)&&_0x2f2a2f[_0x89409f(0xb5)](_0x57764d[_0x89409f(0x8f)][0x0][_0x89409f(0x8a)],_0x2f2a2f[_0x89409f(0xeb)])&&_0x2f2a2f[_0x89409f(0xa4)](_0x57764d['event_type'],_0x2f2a2f[_0x89409f(0x83)])){const _0x119764={};return _0x119764[_0x89409f(0xe5)]=!![],_0x119764[_0x89409f(0x85)]=[_0x57764d],_0x119764['proceedWithUrl']=this[_0x89409f(0xae)],_0x119764;}this['queue'][_0x89409f(0x86)](_0x57764d);let _0x5114c9=null;const _0x4386a5=this[_0x89409f(0xe5)]();_0x4386a5&&(_0x2f2a2f['vncbr'](trace,_0x2f2a2f[_0x89409f(0xa9)]),_0x5114c9=this[_0x89409f(0xb1)][_0x89409f(0xcf)](0x0,BATCH_SIZE),this[_0x89409f(0xb1)]['splice'](0x0,BATCH_SIZE),this[_0x89409f(0xe6)]());const _0x467a81={};return _0x467a81[_0x89409f(0xe5)]=_0x4386a5,_0x467a81[_0x89409f(0x85)]=_0x5114c9,_0x467a81[_0x89409f(0xd2)]=this[_0x89409f(0x9d)],_0x467a81;}const _0x2cf74e={};return _0x2cf74e[_0x89409f(0xe5)]=!![],_0x2cf74e;};['shutdown']=async()=>{const _0x5b25a9=a163_0x47cf9f,_0xcc5714={'zxreR':_0x5b25a9(0xc8),'payFJ':function(_0x24d898,_0x2270e4){return _0x24d898>_0x2270e4;},'fNgRY':function(_0x22ae28,_0x4c7521){return _0x22ae28>_0x4c7521;},'IkStB':function(_0x5b73f9,_0x48bf0c){return _0x5b73f9===_0x48bf0c;},'HJAES':function(_0x4b4a53,_0x134ce6){return _0x4b4a53(_0x134ce6);},'SeMip':_0x5b25a9(0x96),'SkSNp':function(_0x173292,_0x237cdc){return _0x173292-_0x237cdc;},'lKGVI':function(_0x4ed978,_0x2be9cc){return _0x4ed978(_0x2be9cc);}};await this[_0x5b25a9(0xd9)](),this['removeEventBatchPolling'](_0xcc5714[_0x5b25a9(0x98)]);while(_0xcc5714[_0x5b25a9(0xe3)](this['queue'][_0x5b25a9(0xa7)],0x0)||_0xcc5714[_0x5b25a9(0xd3)](this[_0x5b25a9(0x80)],0x0)){if(_0xcc5714[_0x5b25a9(0x7e)](this[_0x5b25a9(0xb1)][_0x5b25a9(0xa7)],0x0)){await _0xcc5714['HJAES'](sleep,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS);continue;}const _0xd735c6=this[_0x5b25a9(0xb1)][_0x5b25a9(0xcf)](0x0,BATCH_SIZE);this[_0x5b25a9(0xb1)][_0x5b25a9(0xdd)](0x0,BATCH_SIZE),this[_0x5b25a9(0x80)]+=0x1;try{await this[_0x5b25a9(0xce)](this[_0x5b25a9(0x9d)],_0xcc5714[_0x5b25a9(0xda)],_0xd735c6);}finally{this[_0x5b25a9(0x80)]=Math[_0x5b25a9(0xb2)](0x0,_0xcc5714[_0x5b25a9(0xd0)](this[_0x5b25a9(0x80)],0x1));}}_0xcc5714['fNgRY'](this[_0x5b25a9(0x90)],0x0)&&_0xcc5714[_0x5b25a9(0xd8)](debug,_0x5b25a9(0xa5)+this[_0x5b25a9(0x90)]);};['batchAndPostEvents']=async(_0x5c0c0c,_0x1828f6,_0x14456c)=>{const _0x4ed236=a163_0x47cf9f,_0x54379d={'uEEXS':function(_0x28265b,_0x2156cc){return _0x28265b(_0x2156cc);},'OxIXz':'utf8','MJptr':function(_0x44a339,_0x716659){return _0x44a339(_0x716659);},'zZdxv':function(_0x35400e){return _0x35400e();},'LhOtv':function(_0x46dedd,_0x391832,_0x324d78,_0x1134c3,_0xa6ae79){return _0x46dedd(_0x391832,_0x324d78,_0x1134c3,_0xa6ae79);},'WOhDT':_0x4ed236(0xb9),'Zpegk':function(_0x374cf3,_0x481daa){return _0x374cf3(_0x481daa);},'muUBP':function(_0x26ef7d,_0x313177){return _0x26ef7d-_0x313177;},'xrCtg':function(_0x350163,_0x2a20b6){return _0x350163-_0x2a20b6;}};let _0x4507bd='';try{_0x4507bd=_0x14456c[_0x4ed236(0x89)](_0x3553ae=>'\x27'+_0x3553ae[_0x4ed236(0xd6)]+'\x27:'+(nestedKeyValue(_0x3553ae,['test_run',_0x4ed236(0xbf)])||nestedKeyValue(_0x3553ae,[_0x4ed236(0x93),_0x4ed236(0xbf)])))['join'](','),_0x54379d[_0x4ed236(0xdb)](debug,'Processing\x20batch\x20events\x20for\x20'+_0x1828f6+_0x4ed236(0xc5)+Buffer[_0x4ed236(0xe4)](util[_0x4ed236(0xb6)]('%j',_0x14456c),_0x54379d['OxIXz'])+_0x4ed236(0xc4)+_0x4507bd);}catch(_0x5c8e83){_0x54379d[_0x4ed236(0x92)](debug,_0x4ed236(0xe0)+util[_0x4ed236(0xb6)](_0x5c8e83)+'}');}const _0x5c552c={'headers':_0x54379d['zZdxv'](getDefaultHeaders)};try{const _0x4a3fed=await _0x54379d[_0x4ed236(0xd7)](nodeRequest,_0x54379d[_0x4ed236(0xe1)],_0x5c0c0c,_0x14456c,_0x5c552c);if(_0x4a3fed[_0x4ed236(0xaf)][_0x4ed236(0xad)]){const _0x416ec9={};_0x416ec9[_0x4ed236(0xcc)]=_0x4a3fed['data'][_0x4ed236(0xad)];throw _0x416ec9;}else _0x54379d[_0x4ed236(0xe8)](debug,_0x1828f6+_0x4ed236(0x82)+_0x4507bd+_0x4ed236(0x9f)+util['format']('%j',_0x4a3fed[_0x4ed236(0xaf)])),this[_0x4ed236(0x90)]=Math[_0x4ed236(0xb2)](0x0,_0x54379d['muUBP'](this[_0x4ed236(0x90)],_0x14456c[_0x4ed236(0xa7)]));}catch(_0x1db48e){_0x1db48e[_0x4ed236(0xa3)]?_0x54379d['Zpegk'](debug,'EXCEPTION\x20IN\x20'+_0x1828f6+_0x4ed236(0x81)+constants[_0x4ed236(0xc9)]+_0x4ed236(0xa8)+_0x1db48e['response'][_0x4ed236(0xd5)]+'\x20'+_0x1db48e[_0x4ed236(0xa3)][_0x4ed236(0xba)]+'\x20'+util[_0x4ed236(0xb6)]('%j',_0x1db48e['response'])):_0x54379d[_0x4ed236(0xe8)](debug,'EXCEPTION\x20IN\x20'+_0x1828f6+_0x4ed236(0x81)+constants[_0x4ed236(0xc9)]+'\x20:\x20'+(_0x1db48e['message']||_0x1db48e)),this[_0x4ed236(0x90)]=Math[_0x4ed236(0xb2)](0x0,_0x54379d[_0x4ed236(0xb0)](this[_0x4ed236(0x90)],_0x14456c['length']));}};['startEventBatchPolling']=()=>{const _0xbbb38c=a163_0x47cf9f,_0x309898={'JRcLR':function(_0x2d3c47,_0x91def4){return _0x2d3c47>_0x91def4;},'IPrAx':function(_0xa89cbb,_0x12a618){return _0xa89cbb(_0x12a618);},'XYvyK':_0xbbb38c(0xcb),'GwtZP':function(_0x5e62fc,_0x15eccb,_0x32da72){return _0x5e62fc(_0x15eccb,_0x32da72);}};this[_0xbbb38c(0x88)]=_0x309898['GwtZP'](setInterval,async()=>{const _0x14615f=_0xbbb38c;if(_0x309898[_0x14615f(0xa2)](this['queue'][_0x14615f(0xa7)],0x0)){_0x309898[_0x14615f(0xf0)](trace,_0x14615f(0xc7)+this[_0x14615f(0xb1)][_0x14615f(0xa7)]);const _0x1d20c9=this['queue'][_0x14615f(0xcf)](0x0,BATCH_SIZE);this[_0x14615f(0xb1)][_0x14615f(0xdd)](0x0,BATCH_SIZE),await this['batchAndPostEvents'](this[_0x14615f(0x9d)],_0x309898['XYvyK'],_0x1d20c9),_0x309898[_0x14615f(0xf0)](trace,_0x14615f(0x8b)+this['queue'][_0x14615f(0xa7)]);}},BATCH_INTERVAL);};[a163_0x47cf9f(0xe6)]=()=>{const _0x19745f=a163_0x47cf9f,_0x2f003e={};_0x2f003e['CeuWn']='RESETTING';const _0x2b6bfc=_0x2f003e;this['removeEventBatchPolling'](_0x2b6bfc[_0x19745f(0xee)]),this[_0x19745f(0xcd)]();};['removeEventBatchPolling']=_0x389969=>{const _0xb09965=a163_0x47cf9f,_0x6a386c={'FzBTw':function(_0x224d1e,_0x104cc8){return _0x224d1e(_0x104cc8);},'Tevvx':function(_0x57a63e,_0x5ed115){return _0x57a63e===_0x5ed115;},'JTxJZ':_0xb09965(0xc8)};this[_0xb09965(0x88)]&&(_0x6a386c[_0xb09965(0x8e)](clearInterval,this[_0xb09965(0x88)]),this[_0xb09965(0x88)]=null,_0x6a386c[_0xb09965(0xb7)](_0x389969,_0x6a386c['JTxJZ'])&&(this[_0xb09965(0x99)]=![]));};[a163_0x47cf9f(0xe5)]=()=>{const _0x5c3f0d=a163_0x47cf9f,_0x286d0d={};_0x286d0d[_0x5c3f0d(0xe2)]=function(_0x5b2e0a,_0x3a1640){return _0x5b2e0a>=_0x3a1640;};const _0x31439f=_0x286d0d;return _0x31439f['Qojbc'](this['queue'][_0x5c3f0d(0xa7)],BATCH_SIZE);};async['uploadPending'](_0x4ef19a=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x30cab1=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x5d240e=a163_0x47cf9f,_0x5893a1={'JFfcE':function(_0x44a09b,_0x753e45){return _0x44a09b<=_0x753e45;},'cszTD':function(_0x13f58c,_0x4673dd){return _0x13f58c(_0x4673dd);},'TlgsH':function(_0x4cad3d,_0x16aba3){return _0x4cad3d-_0x16aba3;}};if(_0x5893a1[_0x5d240e(0xc2)](this[_0x5d240e(0x90)],0x0)||_0x5893a1[_0x5d240e(0xc2)](_0x4ef19a,0x0))return;return await _0x5893a1[_0x5d240e(0xaa)](sleep,_0x30cab1),this[_0x5d240e(0xd9)](_0x5893a1[_0x5d240e(0x7f)](_0x4ef19a,_0x30cab1));}}function a163_0x4e5c(){const _0x50e84a=['getInstance','Exception\x20in\x20logging\x20batch\x20events\x20--\x20','WOhDT','Qojbc','payFJ','byteLength','shouldProceed','resetEventBatchPolling','Vazva','Zpegk','TEST_SCREENSHOT','start','Cyxgb','CiHOk','3072812hclxSR','CeuWn','BmHjd','IPrAx','mOYpK','tTubB','IkStB','TlgsH','inFlightDrains','\x20REQUEST\x20TO\x20','\x20event\x20successful\x20for\x20events\x20','fCkfk','screenshotEventUrl','proceedWithData','push','add','pollEventBatchInterval','map','kind','Remaining\x20Queue\x20Length\x20-\x20','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','../../bin/utils/constants','FzBTw','logs','pendingUploads','LogCreated','MJptr','hook_run','HookRunFinished','FbAzr','Shutdown-Queue','instance','zxreR','started','5517032ugQsNQ','JWtcI','upload-attachments','eventUrl','util','\x20--\x20','./constants','includes','JRcLR','response','wWxFk','Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20','RFGdZ','length','\x20:\x20','scyPJ','cszTD','TestRunSkipped','33947288YUxiRU','error','uploadAttachmentUrl','data','xrCtg','queue','max','2060898tqZUUU','exports','RYDWh','format','Tevvx','api/v1/screenshots','POST','statusText','hdhLZ','CBTSessionCreated','1042185cCHGbQ','qUCuo','uuid','8904648LXUAUf','TestRunFinished','JFfcE','./utils','\x20bytes.\x20Events\x20are\x20','.\x20Request\x20Size\x20-\x20','4|6|1|5|0|3|2','Processing\x20events.\x20Queue\x20Length\x20-\x20','REMOVING','TEST_REPORTING_ANALYTICS','1598652ICWUfR','Interval-Queue','message','startEventBatchPolling','batchAndPostEvents','slice','SkSNp','../helper','proceedWithUrl','fNgRY','api/v1/batch','status','event_type','LhOtv','lKGVI','uploadPending','SeMip','uEEXS','snQxE','splice','7KrMtRe'];a163_0x4e5c=function(){return _0x50e84a;};return a163_0x4e5c();}module[a163_0x47cf9f(0xb4)]=RequestQueueHandler;
|
|
1
|
+
const a163_0x722206=a163_0x5340;function a163_0x18de(){const _0x507078=['UlOcq','removeEventBatchPolling','ZmdWg','format','TElcT','uploadAttachmentUrl','REMOVING','uuid','HjqIR','eventUrl','TEST_SCREENSHOT','started','batchAndPostEvents','start','XALMT','3lDZNKf','WUnvu','iMlON','EXCEPTION\x20IN\x20','\x20:\x20','startEventBatchPolling','4253336UPiDUm','cfrIM','\x20REQUEST\x20TO\x20','33038GcXWcY','KWnMi','pollEventBatchInterval','uploadPending','HNRzB','../helper','add','GTjsy','../../bin/utils/constants','acdZb','Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20','event_type','shouldProceed','BvouW','BATCH_EVENT_TYPES','YCZSF','proceedWithUrl','Shutdown-Queue','zFfKe','NUYDb','xyLbm','shutdown','XvCbZ','Processing\x20events.\x20Queue\x20Length\x20-\x20','NcuMw','queue','slice','Fycnb','TEST_ATTACHMENT','data','XuXlM','api/v1/batch','message','cotcZ','byteLength','Aafuf','kind','FQgWw','egAZt','proceedWithData','363364zWfTGv','TestRunSkipped','splice','fOEgl','CBTSessionCreated','upload-attachments','nAawX','2560680pEmmiU','Processing\x20batch\x20events\x20for\x20','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','4717083IoDaOr','map','719602aKjvIy','LogCreated','LkZzd','./constants','TEST_REPORTING_ANALYTICS','Remaining\x20Queue\x20Length\x20-\x20','TestRunFinished','inFlightDrains','exports','XDROt','GMYmL','EPqjs','716232wlHqIS','.\x20Request\x20Size\x20-\x20','instance','test_run','join','POST','TestRunStarted','ALuCt','DHEKQ','includes','screenshotEventUrl','RLkcu','KwfoY','nApUl','pendingUploads','utf8','length','hBLMK','error','\x20bytes.\x20Events\x20are\x20','\x20event\x20successful\x20for\x20events\x20','max','TLHJa','HookRunStarted','3|6|2|1|0|5|4','PRPgE','response','iZDdM','logs','mByja','split','hook_run','waeFA','getInstance','zAmUN','resetEventBatchPolling'];a163_0x18de=function(){return _0x507078;};return a163_0x18de();}(function(_0x31534e,_0x4bdc75){const _0x2a508b=a163_0x5340,_0x58b464=_0x31534e();while(!![]){try{const _0x332444=parseInt(_0x2a508b(0xce))/0x1+-parseInt(_0x2a508b(0x86))/0x2+-parseInt(_0x2a508b(0xc5))/0x3*(-parseInt(_0x2a508b(0xf6))/0x4)+-parseInt(_0x2a508b(0x81))/0x5+-parseInt(_0x2a508b(0x92))/0x6+parseInt(_0x2a508b(0x84))/0x7+parseInt(_0x2a508b(0xcb))/0x8;if(_0x332444===_0x4bdc75)break;else _0x58b464['push'](_0x58b464['shift']());}catch(_0x558f1e){_0x58b464['push'](_0x58b464['shift']());}}}(a163_0x18de,0x528ba));const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require(a163_0x722206(0x89)),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require('./utils'),{nestedKeyValue}=require(a163_0x722206(0xd3)),util=require('util'),constants=require(a163_0x722206(0xd6));class RequestQueueHandler{static [a163_0x722206(0x94)];['pendingUploads']=0x0;[a163_0x722206(0x8d)]=0x0;constructor(){const _0x35f6c4=a163_0x722206,_0x41b996={};_0x41b996[_0x35f6c4(0xf1)]=_0x35f6c4(0xaa),_0x41b996[_0x35f6c4(0xdb)]=_0x35f6c4(0x7f),_0x41b996[_0x35f6c4(0xef)]='api/v1/screenshots',_0x41b996[_0x35f6c4(0xba)]=_0x35f6c4(0xed),_0x41b996[_0x35f6c4(0xc4)]=_0x35f6c4(0x87),_0x41b996[_0x35f6c4(0xaf)]=_0x35f6c4(0xfa),_0x41b996[_0x35f6c4(0xf3)]=_0x35f6c4(0x8c),_0x41b996[_0x35f6c4(0xad)]=_0x35f6c4(0xf7),_0x41b996[_0x35f6c4(0xf4)]='HookRunFinished',_0x41b996[_0x35f6c4(0x91)]=_0x35f6c4(0x98),_0x41b996[_0x35f6c4(0xbe)]=_0x35f6c4(0xa9);const _0x1e6764=_0x41b996,_0xb25ccd=_0x1e6764['Aafuf'][_0x35f6c4(0xb0)]('|');let _0x4bbd97=0x0;while(!![]){switch(_0xb25ccd[_0x4bbd97++]){case'0':this[_0x35f6c4(0xbb)]=_0x1e6764[_0x35f6c4(0xdb)];continue;case'1':this[_0x35f6c4(0x9c)]=_0x1e6764[_0x35f6c4(0xef)];continue;case'2':this[_0x35f6c4(0xbf)]=_0x1e6764['TElcT'];continue;case'3':this['queue']=[];continue;case'4':this['pollEventBatchInterval']=null;continue;case'5':this[_0x35f6c4(0xdc)]=[_0x1e6764[_0x35f6c4(0xc4)],_0x1e6764[_0x35f6c4(0xaf)],_0x1e6764[_0x35f6c4(0xf3)],_0x1e6764[_0x35f6c4(0xad)],_0x1e6764['egAZt'],_0x1e6764['EPqjs'],_0x1e6764[_0x35f6c4(0xbe)]];continue;case'6':this['started']=![];continue;}break;}}static[a163_0x722206(0xb3)](){const _0x44086c=a163_0x722206;return!RequestQueueHandler['instance']&&(RequestQueueHandler[_0x44086c(0x94)]=new RequestQueueHandler()),RequestQueueHandler[_0x44086c(0x94)];}[a163_0x722206(0xc3)]=()=>{const _0x557ce2=a163_0x722206;!this[_0x557ce2(0xc1)]&&(this[_0x557ce2(0xc1)]=!![],this[_0x557ce2(0xca)]());};[a163_0x722206(0xd4)]=_0x40f4f8=>{const _0x3b44ba=a163_0x722206,_0x465bc5={'nApUl':function(_0x2e22d9,_0x1d6e99){return _0x2e22d9===_0x1d6e99;},'iMlON':_0x3b44ba(0xc0),'zFfKe':function(_0x952501,_0x501c1b){return _0x952501>_0x501c1b;},'SEOMa':function(_0x190bfc,_0xd7938a){return _0x190bfc===_0xd7938a;},'ALuCt':_0x3b44ba(0xea),'rXQAG':function(_0x240557,_0x4b5353){return _0x240557!==_0x4b5353;},'BzOSl':_0x3b44ba(0x8c),'waeFA':function(_0xe6f5c9,_0x473ff2){return _0xe6f5c9(_0x473ff2);},'iRtXM':_0x3b44ba(0x83)};if(this[_0x3b44ba(0xdc)][_0x3b44ba(0x9b)](_0x40f4f8[_0x3b44ba(0xd9)])){if(_0x40f4f8[_0x3b44ba(0xae)]&&_0x40f4f8[_0x3b44ba(0xae)][0x0]&&_0x465bc5[_0x3b44ba(0x9f)](_0x40f4f8[_0x3b44ba(0xae)][0x0][_0x3b44ba(0xf2)],_0x465bc5[_0x3b44ba(0xc7)])){const _0x1d0946={};return _0x1d0946['shouldProceed']=!![],_0x1d0946['proceedWithData']=[_0x40f4f8],_0x1d0946[_0x3b44ba(0xde)]=this[_0x3b44ba(0x9c)],_0x1d0946;}if(_0x40f4f8[_0x3b44ba(0xae)]&&_0x465bc5[_0x3b44ba(0xe0)](_0x40f4f8['logs'][_0x3b44ba(0xa2)],0x0)&&_0x465bc5['SEOMa'](_0x40f4f8['logs'][0x0]['kind'],_0x465bc5[_0x3b44ba(0x99)])&&_0x465bc5['rXQAG'](_0x40f4f8[_0x3b44ba(0xd9)],_0x465bc5['BzOSl'])){const _0xd32121={};return _0xd32121[_0x3b44ba(0xda)]=!![],_0xd32121[_0x3b44ba(0xf5)]=[_0x40f4f8],_0xd32121[_0x3b44ba(0xde)]=this[_0x3b44ba(0xbb)],_0xd32121;}this['queue']['push'](_0x40f4f8);let _0x1b65a9=null;const _0x1de135=this[_0x3b44ba(0xda)]();_0x1de135&&(_0x465bc5[_0x3b44ba(0xb2)](trace,_0x465bc5['iRtXM']),_0x1b65a9=this[_0x3b44ba(0xe7)][_0x3b44ba(0xe8)](0x0,BATCH_SIZE),this[_0x3b44ba(0xe7)][_0x3b44ba(0xf8)](0x0,BATCH_SIZE),this[_0x3b44ba(0xb5)]());const _0x557eaf={};return _0x557eaf['shouldProceed']=_0x1de135,_0x557eaf[_0x3b44ba(0xf5)]=_0x1b65a9,_0x557eaf['proceedWithUrl']=this[_0x3b44ba(0xbf)],_0x557eaf;}const _0x5596c7={};return _0x5596c7[_0x3b44ba(0xda)]=!![],_0x5596c7;};[a163_0x722206(0xe3)]=async()=>{const _0x125a36=a163_0x722206,_0x1d6a53={'fOEgl':_0x125a36(0xbc),'UlOcq':function(_0x470d48,_0x1fb956){return _0x470d48>_0x1fb956;},'NUYDb':function(_0x4c1223,_0x4b9a9a){return _0x4c1223>_0x4b9a9a;},'hBLMK':function(_0x5b7600,_0xeecfda){return _0x5b7600===_0xeecfda;},'PRPgE':function(_0x324aaf,_0x18e8b9){return _0x324aaf(_0x18e8b9);},'nAawX':_0x125a36(0xdf),'XvCbZ':function(_0x7b96a5,_0x35bbd1){return _0x7b96a5-_0x35bbd1;}};await this[_0x125a36(0xd1)](),this[_0x125a36(0xb7)](_0x1d6a53[_0x125a36(0xf9)]);while(_0x1d6a53[_0x125a36(0xb6)](this['queue'][_0x125a36(0xa2)],0x0)||_0x1d6a53[_0x125a36(0xe1)](this[_0x125a36(0x8d)],0x0)){if(_0x1d6a53[_0x125a36(0xa3)](this[_0x125a36(0xe7)]['length'],0x0)){await _0x1d6a53[_0x125a36(0xab)](sleep,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS);continue;}const _0x4c8c05=this[_0x125a36(0xe7)]['slice'](0x0,BATCH_SIZE);this['queue'][_0x125a36(0xf8)](0x0,BATCH_SIZE),this['inFlightDrains']+=0x1;try{await this[_0x125a36(0xc2)](this[_0x125a36(0xbf)],_0x1d6a53[_0x125a36(0x80)],_0x4c8c05);}finally{this[_0x125a36(0x8d)]=Math[_0x125a36(0xa7)](0x0,_0x1d6a53[_0x125a36(0xe4)](this[_0x125a36(0x8d)],0x1));}}_0x1d6a53[_0x125a36(0xb6)](this[_0x125a36(0xa0)],0x0)&&_0x1d6a53[_0x125a36(0xab)](debug,_0x125a36(0xd8)+this[_0x125a36(0xa0)]);};[a163_0x722206(0xc2)]=async(_0x48fcab,_0xa0ec44,_0x1bea23)=>{const _0x2ff829=a163_0x722206,_0x2d4a8d={'cfrIM':function(_0x358ee2,_0xa6baad){return _0x358ee2(_0xa6baad);},'RLkcu':_0x2ff829(0xa1),'XuXlM':function(_0x5d8002){return _0x5d8002();},'KWnMi':function(_0x20d877,_0x3696e8,_0x116e68,_0x2907ee,_0x1d586b){return _0x20d877(_0x3696e8,_0x116e68,_0x2907ee,_0x1d586b);},'YCZSF':_0x2ff829(0x97),'nBbUM':function(_0x31093e,_0x17ec2e){return _0x31093e-_0x17ec2e;},'acdZb':function(_0x5220b2,_0x2635ca){return _0x5220b2(_0x2635ca);},'ZmdWg':function(_0x29d428,_0x35874e){return _0x29d428-_0x35874e;}};let _0x460d53='';try{_0x460d53=_0x1bea23[_0x2ff829(0x85)](_0xf5de46=>'\x27'+_0xf5de46['event_type']+'\x27:'+(nestedKeyValue(_0xf5de46,[_0x2ff829(0x95),_0x2ff829(0xbd)])||nestedKeyValue(_0xf5de46,[_0x2ff829(0xb1),'uuid'])))[_0x2ff829(0x96)](','),_0x2d4a8d[_0x2ff829(0xcc)](debug,_0x2ff829(0x82)+_0xa0ec44+_0x2ff829(0x93)+Buffer[_0x2ff829(0xf0)](util[_0x2ff829(0xb9)]('%j',_0x1bea23),_0x2d4a8d[_0x2ff829(0x9d)])+_0x2ff829(0xa5)+_0x460d53);}catch(_0x209a7a){_0x2d4a8d[_0x2ff829(0xcc)](debug,'Exception\x20in\x20logging\x20batch\x20events\x20--\x20'+util['format'](_0x209a7a)+'}');}const _0x59cd6c={'headers':_0x2d4a8d[_0x2ff829(0xec)](getDefaultHeaders)};try{const _0x27f087=await _0x2d4a8d[_0x2ff829(0xcf)](nodeRequest,_0x2d4a8d[_0x2ff829(0xdd)],_0x48fcab,_0x1bea23,_0x59cd6c);if(_0x27f087[_0x2ff829(0xeb)][_0x2ff829(0xa4)]){const _0x3e144d={};_0x3e144d[_0x2ff829(0xee)]=_0x27f087[_0x2ff829(0xeb)][_0x2ff829(0xa4)];throw _0x3e144d;}else _0x2d4a8d[_0x2ff829(0xcc)](debug,_0xa0ec44+_0x2ff829(0xa6)+_0x460d53+'\x20--\x20'+util[_0x2ff829(0xb9)]('%j',_0x27f087[_0x2ff829(0xeb)])),this[_0x2ff829(0xa0)]=Math[_0x2ff829(0xa7)](0x0,_0x2d4a8d['nBbUM'](this[_0x2ff829(0xa0)],_0x1bea23['length']));}catch(_0x57cfde){_0x57cfde[_0x2ff829(0xac)]?_0x2d4a8d[_0x2ff829(0xcc)](debug,_0x2ff829(0xc8)+_0xa0ec44+'\x20REQUEST\x20TO\x20'+constants[_0x2ff829(0x8a)]+_0x2ff829(0xc9)+_0x57cfde[_0x2ff829(0xac)]['status']+'\x20'+_0x57cfde[_0x2ff829(0xac)]['statusText']+'\x20'+util['format']('%j',_0x57cfde[_0x2ff829(0xac)])):_0x2d4a8d[_0x2ff829(0xd7)](debug,_0x2ff829(0xc8)+_0xa0ec44+_0x2ff829(0xcd)+constants[_0x2ff829(0x8a)]+_0x2ff829(0xc9)+(_0x57cfde[_0x2ff829(0xee)]||_0x57cfde)),this['pendingUploads']=Math[_0x2ff829(0xa7)](0x0,_0x2d4a8d[_0x2ff829(0xb8)](this['pendingUploads'],_0x1bea23[_0x2ff829(0xa2)]));}};['startEventBatchPolling']=()=>{const _0x34dfec=a163_0x722206,_0xd3458c={'KwfoY':function(_0x3e97f0,_0x4675ad){return _0x3e97f0>_0x4675ad;},'GMYmL':function(_0x549caa,_0x34b0fb){return _0x549caa(_0x34b0fb);},'HNRzB':'Interval-Queue','DHEKQ':function(_0x332d53,_0x2342c8,_0x3b1d8d){return _0x332d53(_0x2342c8,_0x3b1d8d);}};this[_0x34dfec(0xd0)]=_0xd3458c[_0x34dfec(0x9a)](setInterval,async()=>{const _0x34e980=_0x34dfec;if(_0xd3458c[_0x34e980(0x9e)](this['queue']['length'],0x0)){_0xd3458c[_0x34e980(0x90)](trace,_0x34e980(0xe5)+this[_0x34e980(0xe7)][_0x34e980(0xa2)]);const _0x1b222f=this[_0x34e980(0xe7)][_0x34e980(0xe8)](0x0,BATCH_SIZE);this[_0x34e980(0xe7)]['splice'](0x0,BATCH_SIZE),await this['batchAndPostEvents'](this[_0x34e980(0xbf)],_0xd3458c[_0x34e980(0xd2)],_0x1b222f),_0xd3458c[_0x34e980(0x90)](trace,_0x34e980(0x8b)+this[_0x34e980(0xe7)][_0x34e980(0xa2)]);}},BATCH_INTERVAL);};[a163_0x722206(0xb5)]=()=>{const _0x38e0a7=a163_0x722206,_0x2af6ac={};_0x2af6ac[_0x38e0a7(0x8f)]='RESETTING';const _0x130a39=_0x2af6ac;this[_0x38e0a7(0xb7)](_0x130a39[_0x38e0a7(0x8f)]),this['startEventBatchPolling']();};['removeEventBatchPolling']=_0x2eb40b=>{const _0x513736=a163_0x722206,_0xb7dc76={'LkZzd':function(_0x52d552,_0x43ff90){return _0x52d552(_0x43ff90);},'WUnvu':function(_0xa172d2,_0x46c893){return _0xa172d2===_0x46c893;},'Fycnb':_0x513736(0xbc)};this[_0x513736(0xd0)]&&(_0xb7dc76[_0x513736(0x88)](clearInterval,this['pollEventBatchInterval']),this[_0x513736(0xd0)]=null,_0xb7dc76[_0x513736(0xc6)](_0x2eb40b,_0xb7dc76[_0x513736(0xe9)])&&(this[_0x513736(0xc1)]=![]));};['shouldProceed']=()=>{const _0x787833=a163_0x722206,_0x39edc4={};_0x39edc4[_0x787833(0xe6)]=function(_0x312f70,_0x25cd5b){return _0x312f70>=_0x25cd5b;};const _0x4da9f0=_0x39edc4;return _0x4da9f0[_0x787833(0xe6)](this[_0x787833(0xe7)][_0x787833(0xa2)],BATCH_SIZE);};async[a163_0x722206(0xd1)](_0x11e7c8=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0xf0f90d=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x4f3cf6=a163_0x722206,_0x3d1d0a={'zAmUN':function(_0x568018,_0x3f4829){return _0x568018<=_0x3f4829;},'TLHJa':function(_0x24098f,_0x6fb36a){return _0x24098f<=_0x6fb36a;},'GTjsy':function(_0x3a6961,_0x381402){return _0x3a6961(_0x381402);},'xyLbm':function(_0x2f7af2,_0x4eafc8){return _0x2f7af2-_0x4eafc8;}};if(_0x3d1d0a[_0x4f3cf6(0xb4)](this[_0x4f3cf6(0xa0)],0x0)||_0x3d1d0a[_0x4f3cf6(0xa8)](_0x11e7c8,0x0))return;return await _0x3d1d0a[_0x4f3cf6(0xd5)](sleep,_0xf0f90d),this[_0x4f3cf6(0xd1)](_0x3d1d0a[_0x4f3cf6(0xe2)](_0x11e7c8,_0xf0f90d));}}function a163_0x5340(_0x3447cc,_0x170de6){const _0x18decc=a163_0x18de();return a163_0x5340=function(_0x5340da,_0x415098){_0x5340da=_0x5340da-0x7f;let _0x386013=_0x18decc[_0x5340da];return _0x386013;},a163_0x5340(_0x3447cc,_0x170de6);}module[a163_0x722206(0x8e)]=RequestQueueHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a164_0x1375(_0x2afd69,_0x7a5380){const _0x2d7e53=a164_0x2d7e();return a164_0x1375=function(_0x13756b,_0x59fdc1){_0x13756b=_0x13756b-0x18f;let _0x400928=_0x2d7e53[_0x13756b];return _0x400928;},a164_0x1375(_0x2afd69,_0x7a5380);}const a164_0x1e589c=a164_0x1375;(function(_0x599bfe,_0x118d5b){const _0x362c0b=a164_0x1375,_0x22e50d=_0x599bfe();while(!![]){try{const _0x3a50a4=parseInt(_0x362c0b(0x1b3))/0x1+parseInt(_0x362c0b(0x1ae))/0x2+-parseInt(_0x362c0b(0x1b6))/0x3+-parseInt(_0x362c0b(0x1f6))/0x4*(parseInt(_0x362c0b(0x1ad))/0x5)+-parseInt(_0x362c0b(0x1f2))/0x6*(parseInt(_0x362c0b(0x1ee))/0x7)+-parseInt(_0x362c0b(0x221))/0x8+-parseInt(_0x362c0b(0x1d0))/0x9*(-parseInt(_0x362c0b(0x206))/0xa);if(_0x3a50a4===_0x118d5b)break;else _0x22e50d['push'](_0x22e50d['shift']());}catch(_0x401d86){_0x22e50d['push'](_0x22e50d['shift']());}}}(a164_0x2d7e,0x60988));const bsSetupHelper=require('../helper'),path=require('path'),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require(a164_0x1e589c(0x1d1)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require('./constants'),RequestQueueHandler=require(a164_0x1e589c(0x237)),logger=require(a164_0x1e589c(0x1cf))['winstonLogger'],{shouldProcessEventForTesthub,isPercyBuild,getProductMap,getTestOrchestrationBuildStartData}=require(a164_0x1e589c(0x223)),util=require(a164_0x1e589c(0x216)),constants=require(a164_0x1e589c(0x212));class SessionHandler{static [a164_0x1e589c(0x1d8)]=RequestQueueHandler[a164_0x1e589c(0x1b1)]();static async[a164_0x1e589c(0x192)](_0xb0c6f7,_0x5f32cb){const _0x2ba591=a164_0x1e589c,_0xb00dc9={'PTrxG':function(_0x54d6bb,_0x10c498){return _0x54d6bb||_0x10c498;},'CSijF':function(_0x2f322d,_0x10a2f2){return _0x2f322d===_0x10a2f2;},'gowDb':function(_0x3f59a1,_0x373ecb){return _0x3f59a1(_0x373ecb);},'phAmE':_0x2ba591(0x1ce),'iScTj':_0x2ba591(0x1bf),'WQVdG':'json','CRfTn':function(_0x1ce9f4,_0x344fe8){return _0x1ce9f4(_0x344fe8);},'YBDLD':function(_0x12490c,_0x427337,_0x4e97c2,_0x39f731,_0x39dc6b){return _0x12490c(_0x427337,_0x4e97c2,_0x39f731,_0x39dc6b);},'XYAcE':'POST','RpBNS':'api/v1/builds','chlSm':_0x2ba591(0x1af),'gUcSS':function(_0x2a3326){return _0x2a3326();},'mzczs':_0x2ba591(0x1bc),'KRyOG':_0x2ba591(0x230),'pfWVR':function(_0x195793,_0x47b59f){return _0x195793(_0x47b59f);},'xRcBn':_0x2ba591(0x204),'bKdWn':_0x2ba591(0x1c9),'fBEhu':_0x2ba591(0x19b)};logger['info'](_0x2ba591(0x1b5)+util[_0x2ba591(0x23e)](bsSetupHelper[_0x2ba591(0x190)](_0xb0c6f7)));const _0x17f2f4=bsSetupHelper[_0x2ba591(0x196)](_0xb0c6f7),_0x365053=bsSetupHelper[_0x2ba591(0x1b8)](_0xb0c6f7),_0x471207=_0xb00dc9[_0x2ba591(0x1fe)](_0x17f2f4,'')+':'+_0xb00dc9['PTrxG'](_0x365053,'');if(_0xb00dc9[_0x2ba591(0x213)](_0x471207,':'))return _0xb00dc9[_0x2ba591(0x219)](debug,_0xb00dc9[_0x2ba591(0x20d)]),process[_0x2ba591(0x19a)]['BS_TESTOPS_BUILD_COMPLETED']=_0xb00dc9[_0x2ba591(0x1c3)],[null,null];let _0x567964=![],_0x45a29c=![];if(_0xb0c6f7['browserstackAutomation']&&bsSetupHelper[_0x2ba591(0x1e6)](_0xb0c6f7))_0x45a29c=!![];else _0xb0c6f7['browserstackAutomation']&&(_0x567964=!![]);try{const _0x4e6a91={'format':_0xb00dc9['WQVdG'],'project_name':_0xb0c6f7[_0x2ba591(0x1a9)]||'','name':_0xb0c6f7[_0x2ba591(0x1c4)]||path[_0x2ba591(0x1f5)](path[_0x2ba591(0x23b)](process[_0x2ba591(0x195)]())),'build_identifier':_0xb0c6f7[_0x2ba591(0x22a)],'description':_0xb0c6f7[_0x2ba591(0x1df)]||'','start_time':new Date()['toISOString'](),'tags':_0xb00dc9[_0x2ba591(0x219)](getCustomTags,_0xb0c6f7),'host_info':bsSetupHelper[_0x2ba591(0x228)](),'ci_info':bsSetupHelper[_0x2ba591(0x1aa)](),'build_run_identifier':process[_0x2ba591(0x19a)][_0x2ba591(0x1c1)],'failed_tests_rerun':process[_0x2ba591(0x19a)][_0x2ba591(0x1e7)]||![],'version_control':await bsSetupHelper[_0x2ba591(0x229)](),'observability_version':{'frameworkName':_0x5f32cb[_0x2ba591(0x208)],'frameworkVersion':_0x5f32cb[_0x2ba591(0x1f4)],'sdkVersion':bsSetupHelper[_0x2ba591(0x239)]()},'product_map':_0xb00dc9[_0x2ba591(0x219)](getProductMap,_0xb0c6f7),'test_orchestration':_0xb00dc9[_0x2ba591(0x219)](getTestOrchestrationBuildStartData,_0xb0c6f7)},_0x3f7ec7={};_0x3f7ec7[_0x2ba591(0x20a)]=_0x17f2f4,_0x3f7ec7[_0x2ba591(0x211)]=_0x365053;const _0x47e2d2={'auth':_0x3f7ec7,'headers':_0xb00dc9[_0x2ba591(0x19e)](getDefaultHeaders,![])},_0x3bec30=await _0xb00dc9['YBDLD'](nodeRequest,_0xb00dc9[_0x2ba591(0x1c8)],_0xb00dc9[_0x2ba591(0x200)],_0x4e6a91,_0x47e2d2);_0xb00dc9[_0x2ba591(0x19e)](debug,_0xb00dc9['chlSm']);const _0x215b56=_0x3bec30['data'];_0x215b56['build_hashed_id']&&(process['env'][_0x2ba591(0x236)]=_0x215b56[_0x2ba591(0x22d)]);if(_0xb00dc9[_0x2ba591(0x193)](isTestObservabilitySession)){process[_0x2ba591(0x19a)][_0x2ba591(0x215)]=_0xb00dc9[_0x2ba591(0x19c)];if(_0x215b56[_0x2ba591(0x1e8)]){process['env'][_0x2ba591(0x1c7)]=_0x215b56[_0x2ba591(0x1e8)];const _0x148bf0={};_0x148bf0[_0x2ba591(0x20a)]=_0x17f2f4,_0x148bf0['password']=_0x365053,process['env'][_0x2ba591(0x1dd)]=JSON[_0x2ba591(0x1d3)](_0x148bf0);}_0x215b56[_0x2ba591(0x22d)]&&(process[_0x2ba591(0x19a)]['BS_TESTOPS_BUILD_HASHED_ID']=_0x215b56['build_hashed_id']),_0x215b56[_0x2ba591(0x20c)]&&(process[_0x2ba591(0x19a)][_0x2ba591(0x1f0)]=_0x215b56[_0x2ba591(0x20c)][_0x2ba591(0x1d7)]());}return[_0x3bec30[_0x2ba591(0x1ed)]['jwt'],_0x3bec30['data'][_0x2ba591(0x22d)],_0x3bec30['data'][_0x2ba591(0x20c)]];}catch(_0x320fb1){process[_0x2ba591(0x19a)]['BROWSERSTACK_TESTHUB_UUID']=_0xb00dc9['KRyOG'],process[_0x2ba591(0x19a)][_0x2ba591(0x215)]=_0xb00dc9[_0x2ba591(0x1c3)],process['env'][_0x2ba591(0x1c7)]=_0xb00dc9['KRyOG'],process[_0x2ba591(0x19a)]['BS_TESTOPS_BUILD_HASHED_ID']=_0xb00dc9['KRyOG'],process['env'][_0x2ba591(0x1f0)]=_0xb00dc9['KRyOG'];_0x320fb1['response']?_0xb00dc9[_0x2ba591(0x19e)](debug,_0x2ba591(0x1b4)+_0x320fb1[_0x2ba591(0x199)][_0x2ba591(0x22b)]+'\x20'+_0x320fb1[_0x2ba591(0x199)]['statusText']+'\x20'+JSON[_0x2ba591(0x1d3)](_0x320fb1[_0x2ba591(0x199)][_0x2ba591(0x1ed)])):_0xb00dc9[_0x2ba591(0x205)](debug,_0x2ba591(0x1b4)+(_0x320fb1[_0x2ba591(0x1ba)]||_0x320fb1));if(_0x320fb1&&_0x320fb1[_0x2ba591(0x1ba)]){const _0x1bf2c6=_0x320fb1['message'];switch(_0x320fb1[_0x2ba591(0x1e3)]){case _0xb00dc9[_0x2ba591(0x1e4)]:logger['error'](_0x1bf2c6);break;case _0xb00dc9[_0x2ba591(0x1e1)]:logger[_0x2ba591(0x1eb)](_0x1bf2c6);break;case _0xb00dc9[_0x2ba591(0x225)]:logger[_0x2ba591(0x21f)](_0x1bf2c6);break;default:logger['error'](_0x1bf2c6);}}else console['info'](_0x2ba591(0x1f9)+constants['TEST_REPORTING_ANALYTICS']+_0x2ba591(0x19d)+_0x320fb1);return[null,null,null];}}static async[a164_0x1e589c(0x1f1)](){const _0x3a3377=a164_0x1e589c,_0x2bdb53={'NbAcZ':_0x3a3377(0x1bc),'qFTmy':_0x3a3377(0x1bf),'jFWdk':function(_0x441e01,_0x5291f0){return _0x441e01(_0x5291f0);}},_0x13286f=process['env'][_0x3a3377(0x215)];if([_0x2bdb53[_0x3a3377(0x197)],_0x2bdb53[_0x3a3377(0x18f)]][_0x3a3377(0x1a1)](_0x13286f))return;while([_0x2bdb53['NbAcZ'],_0x2bdb53[_0x3a3377(0x18f)]][_0x3a3377(0x1a1)](_0x13286f)){await _0x2bdb53[_0x3a3377(0x1de)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static[a164_0x1e589c(0x23a)](_0x3ae604){const _0x1010a4=a164_0x1e589c,_0x23efc6={};_0x23efc6['xceht']=_0x1010a4(0x1e9),_0x23efc6[_0x1010a4(0x203)]='Test_End_Upload',_0x23efc6[_0x1010a4(0x232)]='Test_Skipped_Upload',_0x23efc6[_0x1010a4(0x22e)]=_0x1010a4(0x1b9),_0x23efc6['IyMbb']='Hook_Start_Upload',_0x23efc6[_0x1010a4(0x1b7)]=_0x1010a4(0x1e0),_0x23efc6[_0x1010a4(0x1e2)]='CBT_Upload';const _0x122f6a=_0x23efc6,_0x209f74={};return _0x209f74[_0x1010a4(0x235)]=_0x122f6a['xceht'],_0x209f74[_0x1010a4(0x1fc)]=_0x122f6a[_0x1010a4(0x203)],_0x209f74[_0x1010a4(0x1c0)]=_0x122f6a[_0x1010a4(0x232)],_0x209f74[_0x1010a4(0x1d2)]=_0x122f6a[_0x1010a4(0x22e)],_0x209f74[_0x1010a4(0x201)]=_0x122f6a[_0x1010a4(0x1a0)],_0x209f74[_0x1010a4(0x1c6)]=_0x122f6a[_0x1010a4(0x1b7)],_0x209f74[_0x1010a4(0x1d4)]=_0x122f6a[_0x1010a4(0x1e2)],_0x209f74[_0x3ae604[_0x1010a4(0x1bb)]];}static async[a164_0x1e589c(0x1d9)](_0x2169c3,_0x30464d=0x0,_0x3e46b8=null){const _0x129b3b=a164_0x1e589c,_0x339cc7={'EuNkP':function(_0x412a84,_0x4e7e2d){return _0x412a84===_0x4e7e2d;},'hYTQL':_0x129b3b(0x1a2),'yxdcf':function(_0x35f24c,_0x23b10d){return _0x35f24c!==_0x23b10d;},'AysJg':_0x129b3b(0x1cc),'skNCq':'true','fYXIv':function(_0x76e866,_0x2bfd87,_0x137fec,_0x3f0f8c,_0x44bdb7){return _0x76e866(_0x2bfd87,_0x137fec,_0x3f0f8c,_0x44bdb7);},'cBMHw':_0x129b3b(0x1be),'HBVQV':function(_0x4befed,_0x2bd37e,_0x429e69,_0x330132,_0x1cf116){return _0x4befed(_0x2bd37e,_0x429e69,_0x330132,_0x1cf116);},'WpNJV':function(_0x4d1855,_0x3e00f9){return _0x4d1855(_0x3e00f9);},'AIUmM':function(_0x1ded23,_0x49061d){return _0x1ded23!==_0x49061d;},'RWgAz':'Batch-Queue','vuQoj':function(_0x16e98b,_0x384eda){return _0x16e98b-_0x384eda;},'jyMeq':'api/v1/event','LyNwy':'success','poYDt':function(_0x1cd55c,_0x5c5244){return _0x1cd55c!==_0x5c5244;},'LLeGv':function(_0x3ad984,_0x260240){return _0x3ad984(_0x260240);},'ZAohL':_0x129b3b(0x21f)};_0x339cc7[_0x129b3b(0x1a4)](_0x3e46b8,_0x339cc7[_0x129b3b(0x23c)])&&logger[_0x129b3b(0x1cd)](_0x129b3b(0x218)+_0x2169c3['logs'][0x0][_0x129b3b(0x194)]);const _0xa7ed8a=await this[_0x129b3b(0x23a)](_0x2169c3);let _0xe022b3=_0x2169c3,_0x200ad9=EVENT_ENDPOINT;_0x339cc7['yxdcf'](_0x3e46b8,_0x339cc7['hYTQL'])&&this[_0x129b3b(0x1d8)][_0x129b3b(0x1a3)]();const {shouldProceed:_0x5b0c38,proceedWithData:_0x54d442,proceedWithUrl:_0x9cbea2}=this[_0x129b3b(0x1d8)]['add'](_0x2169c3);if(!_0x5b0c38)return;else _0x54d442&&(_0xe022b3=_0x54d442,_0x200ad9=_0x9cbea2);const _0x34c817={};_0x34c817[_0x129b3b(0x19f)]=_0x129b3b(0x233)+process[_0x129b3b(0x19a)][_0x129b3b(0x1a6)],_0x34c817[_0x129b3b(0x20b)]=_0x339cc7[_0x129b3b(0x1b2)],_0x34c817[_0x129b3b(0x214)]=_0x339cc7[_0x129b3b(0x1bd)];const _0xbff526={};_0xbff526[_0x129b3b(0x1ea)]=_0x34c817;const _0x205871=_0xbff526;let _0x2b0634;try{_0x339cc7[_0x129b3b(0x1a4)](_0x3e46b8,_0x339cc7[_0x129b3b(0x23c)])?(logger[_0x129b3b(0x1cd)](_0x129b3b(0x210)+_0x2169c3?.[_0x129b3b(0x1ca)][0x0]?.['test_run_uuid']),_0x2b0634=await _0x339cc7[_0x129b3b(0x1a5)](asyncAwaitNodeReq,_0x339cc7[_0x129b3b(0x1d6)],_0x200ad9,_0xe022b3,_0x205871),logger['debug'](_0x129b3b(0x1c2)+_0x2169c3?.[_0x129b3b(0x1ca)][0x0]?.[_0x129b3b(0x194)])):_0x2b0634=await _0x339cc7['HBVQV'](nodeRequest,_0x339cc7[_0x129b3b(0x1d6)],_0x200ad9,_0xe022b3,_0x205871);if(_0x2b0634[_0x129b3b(0x1ed)][_0x129b3b(0x21f)]){const _0x27391f={};_0x27391f[_0x129b3b(0x1ba)]=_0x2b0634[_0x129b3b(0x1ed)]['error'];throw _0x27391f;}else{_0x339cc7[_0x129b3b(0x222)](debug,(_0x339cc7['AIUmM'](_0x200ad9,this[_0x129b3b(0x1d8)]['eventUrl'])?_0xa7ed8a:_0x339cc7[_0x129b3b(0x1a7)])+'['+_0x30464d+']\x20event\x20successful!'),this[_0x129b3b(0x1d8)]['pendingUploads']=Math[_0x129b3b(0x224)](0x0,_0x339cc7[_0x129b3b(0x20e)](this[_0x129b3b(0x1d8)][_0x129b3b(0x21b)],_0x339cc7['EuNkP'](_0x200ad9,_0x339cc7[_0x129b3b(0x1e5)])?0x1:_0xe022b3[_0x129b3b(0x1f8)]));const _0x16b958={};return _0x16b958['status']=_0x339cc7[_0x129b3b(0x1f7)],_0x16b958[_0x129b3b(0x1ba)]='',_0x16b958;}}catch(_0x4c1d7a){_0x4c1d7a[_0x129b3b(0x199)]?_0x339cc7[_0x129b3b(0x222)](debug,_0x129b3b(0x1ff)+(_0x339cc7[_0x129b3b(0x1dc)](_0x200ad9,this[_0x129b3b(0x1d8)][_0x129b3b(0x209)])?_0xa7ed8a:_0x339cc7[_0x129b3b(0x1a7)])+_0x129b3b(0x23d)+constants[_0x129b3b(0x21d)]+'\x20:\x20'+_0x4c1d7a[_0x129b3b(0x199)][_0x129b3b(0x22b)]+'\x20'+_0x4c1d7a[_0x129b3b(0x199)]['statusText']+'\x20'+util[_0x129b3b(0x21c)](_0x4c1d7a[_0x129b3b(0x199)]['data'])):_0x339cc7[_0x129b3b(0x202)](debug,_0x129b3b(0x1ff)+(_0x339cc7['yxdcf'](_0x200ad9,this[_0x129b3b(0x1d8)][_0x129b3b(0x209)])?_0xa7ed8a:_0x339cc7[_0x129b3b(0x1a7)])+'\x20REQUEST\x20TO\x20'+constants[_0x129b3b(0x21d)]+'\x20:\x20'+util['format'](_0x4c1d7a));this[_0x129b3b(0x1d8)][_0x129b3b(0x21b)]=Math[_0x129b3b(0x224)](0x0,_0x339cc7['vuQoj'](this[_0x129b3b(0x1d8)]['pendingUploads'],_0x339cc7[_0x129b3b(0x1a4)](_0x200ad9,_0x339cc7[_0x129b3b(0x1e5)])?0x1:_0xe022b3[_0x129b3b(0x1f8)]));const _0x32e31c={};return _0x32e31c[_0x129b3b(0x22b)]=_0x339cc7[_0x129b3b(0x21a)],_0x32e31c['message']=_0x4c1d7a[_0x129b3b(0x1ba)]||(_0x4c1d7a[_0x129b3b(0x199)]?_0x4c1d7a[_0x129b3b(0x199)][_0x129b3b(0x22b)]+':'+_0x4c1d7a[_0x129b3b(0x199)][_0x129b3b(0x207)]:_0x4c1d7a),_0x32e31c;}}static async[a164_0x1e589c(0x1b0)](_0x4d6619,_0x402f03=0x0){const _0x291db9=a164_0x1e589c,_0x5bbb4a={'cJdnO':function(_0x524eb5,_0x3484d9){return _0x524eb5+_0x3484d9;},'VTKQc':function(_0x45d403,_0x3f6a03){return _0x45d403(_0x3f6a03);},'UVPpW':_0x291db9(0x191),'CYhed':_0x291db9(0x1da),'zyrUx':_0x291db9(0x21e),'bGvbg':function(_0x3796c4,_0x24174c,_0x13b452){return _0x3796c4(_0x24174c,_0x13b452);},'APUsL':'uploadEventData','eencq':function(_0x5c87d7,_0x72a3c4){return _0x5c87d7===_0x72a3c4;},'ccNsX':function(_0xef3d5f,_0x186b1d){return _0xef3d5f!==_0x186b1d;},'BCGkM':_0x291db9(0x230),'xVkwT':'true','jRSgm':function(_0x1ea946){return _0x1ea946();},'hRaup':function(_0x1ae637,_0x1f68f5){return _0x1ae637===_0x1f68f5;},'haEdd':function(_0x46dc75,_0x1dbde4){return _0x46dc75-_0x1dbde4;},'hFXND':_0x291db9(0x21f),'CHVFV':_0x291db9(0x1db),'EnnDu':function(_0x3fc974,_0xc9bca5){return _0x3fc974>=_0xc9bca5;},'YPqwi':function(_0x377b03,_0x9d1061){return _0x377b03(_0x9d1061);},'YPXZA':_0x291db9(0x20f),'VbHjJ':function(_0x5dcc5a,_0x99a874){return _0x5dcc5a!==_0x99a874;},'UUsze':_0x291db9(0x1bf),'icAFy':function(_0xdcadb,_0x4ff800,_0x5761d3){return _0xdcadb(_0x4ff800,_0x5761d3);}},_0x282b61=this[_0x291db9(0x23a)](_0x4d6619);_0x5bbb4a['VTKQc'](trace,'Processing\x20event\x20-\x20\x27'+_0x4d6619[_0x291db9(0x1bb)]+'\x27\x20'+(bsSetupHelper[_0x291db9(0x231)](_0x4d6619,[_0x5bbb4a['UVPpW'],_0x5bbb4a[_0x291db9(0x1ef)]])||bsSetupHelper[_0x291db9(0x231)](_0x4d6619,[_0x5bbb4a[_0x291db9(0x22c)],_0x5bbb4a[_0x291db9(0x1ef)]])));if(!_0x5bbb4a[_0x291db9(0x23f)](shouldProcessEventForTesthub,_0x4d6619['event_type'],_0x5bbb4a['APUsL']))return;_0x5bbb4a[_0x291db9(0x217)](_0x402f03,0x0)&&process[_0x291db9(0x19a)][_0x291db9(0x1a6)]&&_0x5bbb4a[_0x291db9(0x234)](process[_0x291db9(0x19a)]['BROWSERSTACK_TESTHUB_JWT'],_0x5bbb4a['BCGkM'])&&(this[_0x291db9(0x1d8)][_0x291db9(0x21b)]+=0x1);if(_0x5bbb4a['eencq'](process[_0x291db9(0x19a)][_0x291db9(0x215)],_0x5bbb4a['xVkwT'])||process[_0x291db9(0x19a)][_0x291db9(0x1ac)]||_0x5bbb4a[_0x291db9(0x1a8)](isPercyBuild)){if(_0x5bbb4a[_0x291db9(0x1c5)](process['env']['BROWSERSTACK_TESTHUB_JWT'],_0x5bbb4a[_0x291db9(0x1fd)])){_0x5bbb4a[_0x291db9(0x227)](debug,_0x291db9(0x1ff)+_0x282b61+'\x20REQUEST\x20TO\x20'+constants[_0x291db9(0x21d)]+_0x291db9(0x238)),this['requestQueueHandler'][_0x291db9(0x21b)]=Math['max'](0x0,_0x5bbb4a[_0x291db9(0x226)](this[_0x291db9(0x1d8)][_0x291db9(0x21b)],0x1));const _0x3389d2={};return _0x3389d2[_0x291db9(0x22b)]=_0x5bbb4a[_0x291db9(0x1f3)],_0x3389d2['message']=_0x5bbb4a[_0x291db9(0x1fa)],_0x3389d2;}return await this[_0x291db9(0x1d9)](_0x4d6619,_0x402f03);}else{if(_0x5bbb4a[_0x291db9(0x198)](_0x402f03,0x5)){_0x5bbb4a[_0x291db9(0x22f)](debug,_0x291db9(0x1ff)+_0x282b61+_0x291db9(0x23d)+constants[_0x291db9(0x21d)]+_0x291db9(0x1ec)+_0x282b61+_0x291db9(0x1d5));_0x5bbb4a[_0x291db9(0x234)](process[_0x291db9(0x19a)][_0x291db9(0x1a6)],_0x5bbb4a[_0x291db9(0x1fd)])&&(this[_0x291db9(0x1d8)][_0x291db9(0x21b)]=Math[_0x291db9(0x224)](0x0,_0x5bbb4a['haEdd'](this[_0x291db9(0x1d8)][_0x291db9(0x21b)],0x1)));const _0x685b24={};return _0x685b24['status']=_0x5bbb4a[_0x291db9(0x1f3)],_0x685b24[_0x291db9(0x1ba)]=_0x5bbb4a['YPXZA'],_0x685b24;}else _0x5bbb4a[_0x291db9(0x1fb)](process[_0x291db9(0x19a)][_0x291db9(0x215)],_0x5bbb4a['UUsze'])&&_0x5bbb4a[_0x291db9(0x1ab)](setTimeout,()=>{const _0x519db2=_0x291db9;this['uploadEventData'](_0x4d6619,_0x5bbb4a[_0x519db2(0x220)](_0x402f03,0x1));},0x3e8);}}}module[a164_0x1e589c(0x1cb)]=SessionHandler;function a164_0x2d7e(){const _0xe8d631=['300545iQIbgU','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','Launching\x20build\x20for\x20BrowserStack\x20Test\x20Observability\x20with\x20config:\x20','314586idPLVD','OCokd','getAccessKey','Log_Upload','message','event_type','true','skNCq','POST','false','TestRunSkipped','BROWSERSTACK_BUILD_RUN_IDENTIFIER','Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20','iScTj','buildName','hRaup','HookRunFinished','BS_TESTOPS_JWT','XYAcE','ERROR_ACCESS_DENIED','logs','exports','application/json','debug','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','../logger','954szGFcP','./utils','LogCreated','stringify','CBTSessionCreated','\x20retry\x20runs\x20exceeded','cBMHw','toString','requestQueueHandler','sendEventData','uuid','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','poYDt','CREDENTIALS_FOR_CRASH_REPORTING','jFWdk','buildDescription','Hook_End_Upload','bKdWn','nBFeE','errorType','xRcBn','jyMeq','isAppAutomateSession','BROWSERSTACK_RERUN','jwt','Test_Start_Upload','headers','info','\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','data','74361JfnhhN','CYhed','BS_TESTOPS_ALLOW_SCREENSHOTS','waitForBuildStatus','132RHkrdo','hFXND','frameworkVersion','basename','6428xtkjdq','LyNwy','length','Data\x20upload\x20to\x20BrowserStack\x20','CHVFV','VbHjJ','TestRunFinished','BCGkM','PTrxG','EXCEPTION\x20IN\x20','RpBNS','HookRunStarted','LLeGv','ytDrP','ERROR_INVALID_CREDENTIALS','pfWVR','40360BHfOeq','statusText','frameworkName','eventUrl','username','Content-Type','allow_screenshots','phAmE','vuQoj','Retry\x20runs\x20exceeded','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20','password','../../bin/utils/constants','CSijF','X-BSTACK-TESTOPS','BS_TESTOPS_BUILD_COMPLETED','util','eencq','Sending\x20trace\x20zip\x20for\x20test:\x20','gowDb','ZAohL','pendingUploads','format','TEST_REPORTING_ANALYTICS','hook_run','error','cJdnO','134048XMKbgY','WpNJV','../../helpers/testhub/utils','max','fBEhu','haEdd','VTKQc','getHostInfo','getGitMetaData','buildIdentifier','status','zyrUx','build_hashed_id','LEiZu','YPqwi','null','nestedKeyValue','GYNjM','Bearer\x20','ccNsX','TestRunStarted','BROWSERSTACK_TESTHUB_UUID','./requestQueueHandler','\x20:\x20missing\x20authentication\x20token','getAgentVersion','getLogTag','resolve','hYTQL','\x20REQUEST\x20TO\x20','inspect','bGvbg','qFTmy','maskSecretsInObject','test_run','launch','gUcSS','test_run_uuid','cwd','getUserName','NbAcZ','EnnDu','response','env','ERROR_SDK_DEPRECATED','mzczs','\x20failed\x20due\x20to\x20','CRfTn','Authorization','IyMbb','includes','sendTraceZip','start','EuNkP','fYXIv','BROWSERSTACK_TESTHUB_JWT','RWgAz','jRSgm','projectName','getCiInfo','icAFy','BS_A11Y_JWT','205ooYVND','177012HjceDg','Build\x20creation\x20successful!','uploadEventData','getInstance','AysJg'];a164_0x2d7e=function(){return _0xe8d631;};return a164_0x2d7e();}
|
|
1
|
+
const a164_0x2a460f=a164_0x4793;(function(_0x57664b,_0x97cab1){const _0x4e7186=a164_0x4793,_0x4fbd55=_0x57664b();while(!![]){try{const _0x168657=parseInt(_0x4e7186(0x20e))/0x1+-parseInt(_0x4e7186(0x217))/0x2*(-parseInt(_0x4e7186(0x219))/0x3)+parseInt(_0x4e7186(0x183))/0x4+parseInt(_0x4e7186(0x204))/0x5*(parseInt(_0x4e7186(0x1ce))/0x6)+-parseInt(_0x4e7186(0x220))/0x7+-parseInt(_0x4e7186(0x1a9))/0x8*(parseInt(_0x4e7186(0x211))/0x9)+-parseInt(_0x4e7186(0x1e1))/0xa*(parseInt(_0x4e7186(0x178))/0xb);if(_0x168657===_0x97cab1)break;else _0x4fbd55['push'](_0x4fbd55['shift']());}catch(_0x3396cd){_0x4fbd55['push'](_0x4fbd55['shift']());}}}(a164_0x4d5c,0xb4f2f));const bsSetupHelper=require('../helper'),path=require('path'),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require(a164_0x2a460f(0x1ea)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require(a164_0x2a460f(0x201)),RequestQueueHandler=require('./requestQueueHandler'),logger=require(a164_0x2a460f(0x1b1))[a164_0x2a460f(0x1d1)],{shouldProcessEventForTesthub,isPercyBuild,getProductMap,getTestOrchestrationBuildStartData}=require(a164_0x2a460f(0x1e0)),util=require('util'),constants=require('../../bin/utils/constants');class SessionHandler{static ['requestQueueHandler']=RequestQueueHandler['getInstance']();static async[a164_0x2a460f(0x1f6)](_0x651bc3,_0x17736a){const _0x34bebe=a164_0x2a460f,_0x23f45c={'XhLwN':function(_0x31aca3,_0x5afa86){return _0x31aca3||_0x5afa86;},'zJEds':function(_0x5b0873,_0x4173ff){return _0x5b0873||_0x4173ff;},'kZniJ':function(_0x5d35ce,_0x12d045){return _0x5d35ce===_0x12d045;},'OQGyJ':function(_0x242ec5,_0x34b41f){return _0x242ec5(_0x34b41f);},'jgIDy':_0x34bebe(0x20f),'HEDwo':'false','igUFl':_0x34bebe(0x1fe),'xUJLi':function(_0x14350a,_0x52f289){return _0x14350a(_0x52f289);},'KCFPI':function(_0x3acb57,_0x34fa7d){return _0x3acb57(_0x34fa7d);},'KdKDU':function(_0x43e43f,_0x458931){return _0x43e43f(_0x458931);},'AFqpo':function(_0x47bbf7,_0xed506){return _0x47bbf7(_0xed506);},'XTnKf':function(_0x478fab,_0x3d3168,_0x72d143,_0x556b0a,_0x4bec4e){return _0x478fab(_0x3d3168,_0x72d143,_0x556b0a,_0x4bec4e);},'anaMd':_0x34bebe(0x1ab),'kALrV':_0x34bebe(0x1f2),'SOXTD':function(_0x57001f,_0x5176e4){return _0x57001f(_0x5176e4);},'kIXSx':'Build\x20creation\x20successful!','umhrd':function(_0x5bc23b){return _0x5bc23b();},'SQuHL':_0x34bebe(0x19d),'aTdEV':_0x34bebe(0x1ba),'vdGVa':function(_0x4d5dd4,_0x3ed75e){return _0x4d5dd4(_0x3ed75e);},'edXXM':_0x34bebe(0x1bf),'ROIoq':'ERROR_ACCESS_DENIED','UaAqG':_0x34bebe(0x20d)};logger[_0x34bebe(0x185)](_0x34bebe(0x1d3)+util[_0x34bebe(0x1a2)](bsSetupHelper[_0x34bebe(0x1b9)](_0x651bc3)));const _0x6b638e=bsSetupHelper['getUserName'](_0x651bc3),_0x380b5=bsSetupHelper[_0x34bebe(0x1db)](_0x651bc3),_0x593167=_0x23f45c['XhLwN'](_0x6b638e,'')+':'+_0x23f45c[_0x34bebe(0x21c)](_0x380b5,'');if(_0x23f45c['kZniJ'](_0x593167,':'))return _0x23f45c[_0x34bebe(0x191)](debug,_0x23f45c[_0x34bebe(0x214)]),process['env'][_0x34bebe(0x1ee)]=_0x23f45c[_0x34bebe(0x1c1)],[null,null];let _0x316868=![],_0x5e7415=![];if(_0x651bc3[_0x34bebe(0x175)]&&bsSetupHelper['isAppAutomateSession'](_0x651bc3))_0x5e7415=!![];else _0x651bc3['browserstackAutomation']&&(_0x316868=!![]);try{const _0x5e0583={'format':_0x23f45c[_0x34bebe(0x1ae)],'project_name':_0x651bc3[_0x34bebe(0x1f5)]||'','name':_0x651bc3[_0x34bebe(0x200)]||path['basename'](path[_0x34bebe(0x19c)](process[_0x34bebe(0x1a5)]())),'build_identifier':_0x651bc3[_0x34bebe(0x1b8)],'description':_0x651bc3[_0x34bebe(0x1d5)]||'','start_time':new Date()[_0x34bebe(0x208)](),'tags':_0x23f45c['xUJLi'](getCustomTags,_0x651bc3),'host_info':bsSetupHelper[_0x34bebe(0x196)](),'ci_info':bsSetupHelper[_0x34bebe(0x1c8)](),'build_run_identifier':process[_0x34bebe(0x21b)][_0x34bebe(0x18f)],'failed_tests_rerun':process[_0x34bebe(0x21b)][_0x34bebe(0x1cf)]||![],'version_control':await bsSetupHelper['getGitMetaData'](),'observability_version':{'frameworkName':_0x17736a[_0x34bebe(0x1c5)],'frameworkVersion':_0x17736a['frameworkVersion'],'sdkVersion':bsSetupHelper[_0x34bebe(0x17f)]()},'product_map':_0x23f45c[_0x34bebe(0x221)](getProductMap,_0x651bc3),'test_orchestration':_0x23f45c[_0x34bebe(0x184)](getTestOrchestrationBuildStartData,_0x651bc3)},_0x23e1c1={};_0x23e1c1['username']=_0x6b638e,_0x23e1c1[_0x34bebe(0x1c3)]=_0x380b5;const _0x9d0c5f={'auth':_0x23e1c1,'headers':_0x23f45c['AFqpo'](getDefaultHeaders,![])},_0xef6e99=await _0x23f45c['XTnKf'](nodeRequest,_0x23f45c[_0x34bebe(0x1dd)],_0x23f45c['kALrV'],_0x5e0583,_0x9d0c5f);_0x23f45c[_0x34bebe(0x189)](debug,_0x23f45c[_0x34bebe(0x17a)]);const _0x236f82=_0xef6e99[_0x34bebe(0x182)];_0x236f82[_0x34bebe(0x1f7)]&&(process[_0x34bebe(0x21b)][_0x34bebe(0x1c4)]=_0x236f82[_0x34bebe(0x1f7)]);if(_0x23f45c['umhrd'](isTestObservabilitySession)){process[_0x34bebe(0x21b)][_0x34bebe(0x1ee)]=_0x23f45c[_0x34bebe(0x1ec)];if(_0x236f82[_0x34bebe(0x223)]){process[_0x34bebe(0x21b)]['BS_TESTOPS_JWT']=_0x236f82['jwt'];const _0x434a8d={};_0x434a8d[_0x34bebe(0x1e6)]=_0x6b638e,_0x434a8d[_0x34bebe(0x1c3)]=_0x380b5,process[_0x34bebe(0x21b)][_0x34bebe(0x1e9)]=JSON[_0x34bebe(0x1c0)](_0x434a8d);}_0x236f82[_0x34bebe(0x1f7)]&&(process[_0x34bebe(0x21b)]['BS_TESTOPS_BUILD_HASHED_ID']=_0x236f82['build_hashed_id']),_0x236f82[_0x34bebe(0x1b7)]&&(process[_0x34bebe(0x21b)][_0x34bebe(0x209)]=_0x236f82[_0x34bebe(0x1b7)][_0x34bebe(0x1bd)]());}return[_0xef6e99[_0x34bebe(0x182)][_0x34bebe(0x223)],_0xef6e99['data'][_0x34bebe(0x1f7)],_0xef6e99['data'][_0x34bebe(0x1b7)]];}catch(_0x1bba7a){process[_0x34bebe(0x21b)][_0x34bebe(0x1c4)]=_0x23f45c[_0x34bebe(0x1a0)],process[_0x34bebe(0x21b)][_0x34bebe(0x1ee)]=_0x23f45c[_0x34bebe(0x1c1)],process[_0x34bebe(0x21b)][_0x34bebe(0x216)]=_0x23f45c[_0x34bebe(0x1a0)],process[_0x34bebe(0x21b)][_0x34bebe(0x21f)]=_0x23f45c[_0x34bebe(0x1a0)],process[_0x34bebe(0x21b)]['BS_TESTOPS_ALLOW_SCREENSHOTS']=_0x23f45c['aTdEV'];_0x1bba7a['response']?_0x23f45c[_0x34bebe(0x184)](debug,_0x34bebe(0x20c)+_0x1bba7a[_0x34bebe(0x202)]['status']+'\x20'+_0x1bba7a['response'][_0x34bebe(0x1d2)]+'\x20'+JSON[_0x34bebe(0x1c0)](_0x1bba7a['response'][_0x34bebe(0x182)])):_0x23f45c['vdGVa'](debug,_0x34bebe(0x20c)+(_0x1bba7a[_0x34bebe(0x193)]||_0x1bba7a));if(_0x1bba7a&&_0x1bba7a[_0x34bebe(0x193)]){const _0x4ae9d0=_0x1bba7a[_0x34bebe(0x193)];switch(_0x1bba7a[_0x34bebe(0x212)]){case _0x23f45c[_0x34bebe(0x177)]:logger[_0x34bebe(0x1ed)](_0x4ae9d0);break;case _0x23f45c[_0x34bebe(0x1de)]:logger[_0x34bebe(0x185)](_0x4ae9d0);break;case _0x23f45c['UaAqG']:logger[_0x34bebe(0x1ed)](_0x4ae9d0);break;default:logger[_0x34bebe(0x1ed)](_0x4ae9d0);}}else console[_0x34bebe(0x185)](_0x34bebe(0x215)+constants[_0x34bebe(0x199)]+_0x34bebe(0x1e8)+_0x1bba7a);return[null,null,null];}}static async[a164_0x2a460f(0x1e7)](){const _0x28e547=a164_0x2a460f,_0x42c3b7={'psFUh':_0x28e547(0x19d),'KpZmB':_0x28e547(0x1b6),'DcGXr':function(_0x3171ff,_0x1f0990){return _0x3171ff(_0x1f0990);}},_0x5be001=process[_0x28e547(0x21b)][_0x28e547(0x1ee)];if([_0x42c3b7[_0x28e547(0x20b)],_0x42c3b7['KpZmB']][_0x28e547(0x17c)](_0x5be001))return;while([_0x42c3b7[_0x28e547(0x20b)],_0x42c3b7[_0x28e547(0x17d)]][_0x28e547(0x17c)](_0x5be001)){await _0x42c3b7[_0x28e547(0x1fa)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static['getLogTag'](_0x12ab20){const _0xd4b4b4=a164_0x2a460f,_0x930543={};_0x930543[_0xd4b4b4(0x181)]='Test_Start_Upload',_0x930543[_0xd4b4b4(0x1f9)]=_0xd4b4b4(0x1f0),_0x930543[_0xd4b4b4(0x1a8)]=_0xd4b4b4(0x188),_0x930543[_0xd4b4b4(0x1a7)]=_0xd4b4b4(0x1d9),_0x930543[_0xd4b4b4(0x1e3)]='Hook_Start_Upload',_0x930543[_0xd4b4b4(0x1a6)]=_0xd4b4b4(0x19e),_0x930543[_0xd4b4b4(0x18e)]=_0xd4b4b4(0x222);const _0x4e2f1c=_0x930543,_0x39acdf={};return _0x39acdf[_0xd4b4b4(0x1b5)]=_0x4e2f1c[_0xd4b4b4(0x181)],_0x39acdf[_0xd4b4b4(0x218)]=_0x4e2f1c['VsIuL'],_0x39acdf[_0xd4b4b4(0x197)]=_0x4e2f1c['NzuZT'],_0x39acdf[_0xd4b4b4(0x18b)]=_0x4e2f1c[_0xd4b4b4(0x1a7)],_0x39acdf[_0xd4b4b4(0x1d4)]=_0x4e2f1c[_0xd4b4b4(0x1e3)],_0x39acdf[_0xd4b4b4(0x17b)]=_0x4e2f1c[_0xd4b4b4(0x1a6)],_0x39acdf[_0xd4b4b4(0x1ef)]=_0x4e2f1c['ulSqS'],_0x39acdf[_0x12ab20[_0xd4b4b4(0x19b)]];}static async[a164_0x2a460f(0x190)](_0x97714e,_0x2f8e31=0x0,_0x29a0fe=null){const _0x29fc39=a164_0x2a460f,_0x593a15={'QpISA':function(_0x56650a,_0x25eea9){return _0x56650a===_0x25eea9;},'yDExo':'sendTraceZip','tqrwX':function(_0x1b0cda,_0x3b2a6c){return _0x1b0cda!==_0x3b2a6c;},'QMXum':'application/json','Wzrwl':_0x29fc39(0x19d),'NyvXY':function(_0xc8ef8d,_0x407733,_0x445e7e,_0x488f24,_0x2c67bc){return _0xc8ef8d(_0x407733,_0x445e7e,_0x488f24,_0x2c67bc);},'SKoeL':_0x29fc39(0x1ab),'KtqRF':function(_0x2f883b,_0x23d284){return _0x2f883b(_0x23d284);},'fPPsX':_0x29fc39(0x1c9),'zoPIP':function(_0x59d871,_0x4394cf){return _0x59d871-_0x4394cf;},'pGfLv':function(_0x122222,_0x3ff632){return _0x122222===_0x3ff632;},'OYyCL':_0x29fc39(0x1f4),'ERfBN':_0x29fc39(0x20a),'UpWpg':function(_0x2148a5,_0x45cc08){return _0x2148a5(_0x45cc08);},'gwFJQ':function(_0x14cd40,_0xc9898a){return _0x14cd40!==_0xc9898a;},'sGUIh':function(_0x5cff8f,_0x28d413){return _0x5cff8f!==_0x28d413;},'cRZPu':_0x29fc39(0x1ed)};_0x593a15['QpISA'](_0x29a0fe,_0x593a15['yDExo'])&&logger['debug'](_0x29fc39(0x1fc)+_0x97714e[_0x29fc39(0x1a3)][0x0][_0x29fc39(0x18d)]);const _0x1b96d0=await this['getLogTag'](_0x97714e);let _0x4acdd2=_0x97714e,_0x2e3feb=EVENT_ENDPOINT;_0x593a15[_0x29fc39(0x1bc)](_0x29a0fe,_0x593a15['yDExo'])&&this[_0x29fc39(0x1fb)]['start']();const {shouldProceed:_0x5edb03,proceedWithData:_0x5c0651,proceedWithUrl:_0xf4eb86}=this['requestQueueHandler'][_0x29fc39(0x1cd)](_0x97714e);if(!_0x5edb03)return;else _0x5c0651&&(_0x4acdd2=_0x5c0651,_0x2e3feb=_0xf4eb86);const _0x57c2cb={};_0x57c2cb[_0x29fc39(0x19f)]=_0x29fc39(0x1da)+process[_0x29fc39(0x21b)]['BROWSERSTACK_TESTHUB_JWT'],_0x57c2cb['Content-Type']=_0x593a15['QMXum'],_0x57c2cb['X-BSTACK-TESTOPS']=_0x593a15[_0x29fc39(0x1f8)];const _0xfa4e51={};_0xfa4e51[_0x29fc39(0x1a4)]=_0x57c2cb;const _0x486a95=_0xfa4e51;let _0x2e1996;try{_0x593a15[_0x29fc39(0x1ac)](_0x29a0fe,_0x593a15['yDExo'])?(logger[_0x29fc39(0x180)]('Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20'+_0x97714e?.[_0x29fc39(0x1a3)][0x0]?.[_0x29fc39(0x18d)]),_0x2e1996=await _0x593a15[_0x29fc39(0x21a)](asyncAwaitNodeReq,_0x593a15[_0x29fc39(0x19a)],_0x2e3feb,_0x4acdd2,_0x486a95),logger[_0x29fc39(0x180)](_0x29fc39(0x179)+_0x97714e?.[_0x29fc39(0x1a3)][0x0]?.['test_run_uuid'])):_0x2e1996=await _0x593a15[_0x29fc39(0x21a)](nodeRequest,_0x593a15[_0x29fc39(0x19a)],_0x2e3feb,_0x4acdd2,_0x486a95);if(_0x2e1996['data'][_0x29fc39(0x1ed)]){const _0x4d42cc={};_0x4d42cc['message']=_0x2e1996[_0x29fc39(0x182)][_0x29fc39(0x1ed)];throw _0x4d42cc;}else{_0x593a15['KtqRF'](debug,(_0x593a15['tqrwX'](_0x2e3feb,this[_0x29fc39(0x1fb)][_0x29fc39(0x195)])?_0x1b96d0:_0x593a15[_0x29fc39(0x1eb)])+'['+_0x2f8e31+_0x29fc39(0x18c)),this['requestQueueHandler']['pendingUploads']=Math[_0x29fc39(0x192)](0x0,_0x593a15[_0x29fc39(0x1e2)](this[_0x29fc39(0x1fb)][_0x29fc39(0x1cb)],_0x593a15[_0x29fc39(0x1e4)](_0x2e3feb,_0x593a15[_0x29fc39(0x207)])?0x1:_0x4acdd2[_0x29fc39(0x1df)]));const _0x257eef={};return _0x257eef['status']=_0x593a15['ERfBN'],_0x257eef['message']='',_0x257eef;}}catch(_0x3d8947){_0x3d8947[_0x29fc39(0x202)]?_0x593a15[_0x29fc39(0x1e5)](debug,_0x29fc39(0x186)+(_0x593a15[_0x29fc39(0x1d6)](_0x2e3feb,this[_0x29fc39(0x1fb)][_0x29fc39(0x195)])?_0x1b96d0:_0x593a15[_0x29fc39(0x1eb)])+_0x29fc39(0x1b2)+constants[_0x29fc39(0x199)]+_0x29fc39(0x1af)+_0x3d8947[_0x29fc39(0x202)]['status']+'\x20'+_0x3d8947[_0x29fc39(0x202)][_0x29fc39(0x1d2)]+'\x20'+util[_0x29fc39(0x1d7)](_0x3d8947[_0x29fc39(0x202)][_0x29fc39(0x182)])):_0x593a15['KtqRF'](debug,_0x29fc39(0x186)+(_0x593a15[_0x29fc39(0x21d)](_0x2e3feb,this[_0x29fc39(0x1fb)][_0x29fc39(0x195)])?_0x1b96d0:_0x593a15[_0x29fc39(0x1eb)])+'\x20REQUEST\x20TO\x20'+constants[_0x29fc39(0x199)]+_0x29fc39(0x1af)+util[_0x29fc39(0x1d7)](_0x3d8947));this['requestQueueHandler']['pendingUploads']=Math[_0x29fc39(0x192)](0x0,_0x593a15[_0x29fc39(0x1e2)](this[_0x29fc39(0x1fb)][_0x29fc39(0x1cb)],_0x593a15[_0x29fc39(0x1ac)](_0x2e3feb,_0x593a15[_0x29fc39(0x207)])?0x1:_0x4acdd2[_0x29fc39(0x1df)]));const _0x1b5c6d={};return _0x1b5c6d[_0x29fc39(0x1d8)]=_0x593a15[_0x29fc39(0x206)],_0x1b5c6d[_0x29fc39(0x193)]=_0x3d8947[_0x29fc39(0x193)]||(_0x3d8947[_0x29fc39(0x202)]?_0x3d8947[_0x29fc39(0x202)][_0x29fc39(0x1d8)]+':'+_0x3d8947[_0x29fc39(0x202)][_0x29fc39(0x1d2)]:_0x3d8947),_0x1b5c6d;}}static async[a164_0x2a460f(0x1c7)](_0x44a11d,_0x468d33=0x0){const _0x1e575e=a164_0x2a460f,_0x5643e0={'OdmoW':function(_0x1c6f49,_0x5b8f6d){return _0x1c6f49+_0x5b8f6d;},'IfUfu':function(_0xe549aa,_0x186810){return _0xe549aa(_0x186810);},'TPCIg':'test_run','IEXtK':_0x1e575e(0x1bb),'fElwS':_0x1e575e(0x210),'SLaLQ':function(_0x362e08,_0x2ef7e7,_0x21b07d){return _0x362e08(_0x2ef7e7,_0x21b07d);},'IEfEr':_0x1e575e(0x1c7),'yiGuY':function(_0x259a3f,_0x2c8a12){return _0x259a3f===_0x2c8a12;},'KWFbm':function(_0x1abadc,_0x5a2d29){return _0x1abadc!==_0x5a2d29;},'paDwJ':_0x1e575e(0x1ba),'oaEUJ':_0x1e575e(0x19d),'BPSxL':function(_0x578c07){return _0x578c07();},'cERTk':function(_0x5602e1,_0x2fd7cc){return _0x5602e1===_0x2fd7cc;},'aMIqA':function(_0xae2f29,_0x394065){return _0xae2f29(_0x394065);},'vcoWz':function(_0x25709d,_0x15bec2){return _0x25709d-_0x15bec2;},'yGNeV':_0x1e575e(0x1ed),'rxxzs':_0x1e575e(0x1aa),'KRWaj':function(_0x55ca76,_0x4c567f){return _0x55ca76>=_0x4c567f;},'BjUxD':function(_0x28bb8d,_0x278dd9){return _0x28bb8d!==_0x278dd9;},'NHKaP':function(_0x16d77f,_0x44bb29){return _0x16d77f-_0x44bb29;},'WIVqe':_0x1e575e(0x1f3),'TUZYj':_0x1e575e(0x1b6),'trQtu':function(_0x3fcd40,_0xcc37cf,_0x90a11e){return _0x3fcd40(_0xcc37cf,_0x90a11e);}},_0x572304=this[_0x1e575e(0x176)](_0x44a11d);_0x5643e0[_0x1e575e(0x1b4)](trace,_0x1e575e(0x1c2)+_0x44a11d[_0x1e575e(0x19b)]+'\x27\x20'+(bsSetupHelper[_0x1e575e(0x18a)](_0x44a11d,[_0x5643e0[_0x1e575e(0x1be)],_0x5643e0['IEXtK']])||bsSetupHelper[_0x1e575e(0x18a)](_0x44a11d,[_0x5643e0['fElwS'],_0x5643e0[_0x1e575e(0x203)]])));if(!_0x5643e0[_0x1e575e(0x1a1)](shouldProcessEventForTesthub,_0x44a11d['event_type'],_0x5643e0[_0x1e575e(0x187)]))return;_0x5643e0[_0x1e575e(0x1c6)](_0x468d33,0x0)&&process[_0x1e575e(0x21b)]['BROWSERSTACK_TESTHUB_JWT']&&_0x5643e0[_0x1e575e(0x21e)](process[_0x1e575e(0x21b)]['BROWSERSTACK_TESTHUB_JWT'],_0x5643e0['paDwJ'])&&(this[_0x1e575e(0x1fb)][_0x1e575e(0x1cb)]+=0x1);if(_0x5643e0[_0x1e575e(0x1c6)](process[_0x1e575e(0x21b)][_0x1e575e(0x1ee)],_0x5643e0['oaEUJ'])||process[_0x1e575e(0x21b)][_0x1e575e(0x205)]||_0x5643e0[_0x1e575e(0x194)](isPercyBuild)){if(_0x5643e0['cERTk'](process[_0x1e575e(0x21b)][_0x1e575e(0x1d0)],_0x5643e0['paDwJ'])){_0x5643e0[_0x1e575e(0x17e)](debug,_0x1e575e(0x186)+_0x572304+_0x1e575e(0x1b2)+constants[_0x1e575e(0x199)]+_0x1e575e(0x1f1)),this['requestQueueHandler'][_0x1e575e(0x1cb)]=Math[_0x1e575e(0x192)](0x0,_0x5643e0[_0x1e575e(0x1cc)](this[_0x1e575e(0x1fb)][_0x1e575e(0x1cb)],0x1));const _0x5150b4={};return _0x5150b4[_0x1e575e(0x1d8)]=_0x5643e0['yGNeV'],_0x5150b4[_0x1e575e(0x193)]=_0x5643e0[_0x1e575e(0x213)],_0x5150b4;}return await this[_0x1e575e(0x190)](_0x44a11d,_0x468d33);}else{if(_0x5643e0[_0x1e575e(0x1b0)](_0x468d33,0x5)){_0x5643e0[_0x1e575e(0x1b4)](debug,_0x1e575e(0x186)+_0x572304+_0x1e575e(0x1b2)+constants[_0x1e575e(0x199)]+'\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20'+_0x572304+_0x1e575e(0x1ca));_0x5643e0[_0x1e575e(0x1ff)](process[_0x1e575e(0x21b)]['BROWSERSTACK_TESTHUB_JWT'],_0x5643e0[_0x1e575e(0x1ad)])&&(this[_0x1e575e(0x1fb)][_0x1e575e(0x1cb)]=Math[_0x1e575e(0x192)](0x0,_0x5643e0[_0x1e575e(0x1dc)](this[_0x1e575e(0x1fb)]['pendingUploads'],0x1)));const _0x82f50f={};return _0x82f50f[_0x1e575e(0x1d8)]=_0x5643e0[_0x1e575e(0x198)],_0x82f50f['message']=_0x5643e0['WIVqe'],_0x82f50f;}else _0x5643e0[_0x1e575e(0x21e)](process['env'][_0x1e575e(0x1ee)],_0x5643e0[_0x1e575e(0x1fd)])&&_0x5643e0[_0x1e575e(0x1b3)](setTimeout,()=>{this['uploadEventData'](_0x44a11d,_0x5643e0['OdmoW'](_0x468d33,0x1));},0x3e8);}}}function a164_0x4793(_0x16151f,_0x6dd65e){const _0x4d5c90=a164_0x4d5c();return a164_0x4793=function(_0x4793e8,_0x2b8a3e){_0x4793e8=_0x4793e8-0x175;let _0x293983=_0x4d5c90[_0x4793e8];return _0x293983;},a164_0x4793(_0x16151f,_0x6dd65e);}function a164_0x4d5c(){const _0x15dbaa=['SKoeL','event_type','resolve','true','Hook_End_Upload','Authorization','aTdEV','SLaLQ','inspect','logs','headers','cwd','MtwSs','rEfPW','NzuZT','3344hgAYVb','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','POST','QpISA','paDwJ','igUFl','\x20:\x20','KRWaj','../logger','\x20REQUEST\x20TO\x20','trQtu','IfUfu','TestRunStarted','false','allow_screenshots','buildIdentifier','maskSecretsInObject','null','uuid','tqrwX','toString','TPCIg','ERROR_INVALID_CREDENTIALS','stringify','HEDwo','Processing\x20event\x20-\x20\x27','password','BROWSERSTACK_TESTHUB_UUID','frameworkName','yiGuY','uploadEventData','getCiInfo','Batch-Queue','\x20retry\x20runs\x20exceeded','pendingUploads','vcoWz','add','516942Egoerd','BROWSERSTACK_RERUN','BROWSERSTACK_TESTHUB_JWT','winstonLogger','statusText','Launching\x20build\x20for\x20BrowserStack\x20Test\x20Observability\x20with\x20config:\x20','HookRunStarted','buildDescription','gwFJQ','format','status','Log_Upload','Bearer\x20','getAccessKey','NHKaP','anaMd','ROIoq','length','../../helpers/testhub/utils','690ccQIvG','zoPIP','UkBcx','pGfLv','UpWpg','username','waitForBuildStatus','\x20failed\x20due\x20to\x20','CREDENTIALS_FOR_CRASH_REPORTING','./utils','fPPsX','SQuHL','error','BS_TESTOPS_BUILD_COMPLETED','CBTSessionCreated','Test_End_Upload','\x20:\x20missing\x20authentication\x20token','api/v1/builds','Retry\x20runs\x20exceeded','api/v1/event','projectName','launch','build_hashed_id','Wzrwl','VsIuL','DcGXr','requestQueueHandler','Sending\x20trace\x20zip\x20for\x20test:\x20','TUZYj','json','BjUxD','buildName','./constants','response','IEXtK','5CMiKww','BS_A11Y_JWT','cRZPu','OYyCL','toISOString','BS_TESTOPS_ALLOW_SCREENSHOTS','success','psFUh','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','ERROR_SDK_DEPRECATED','614110CXYZwp','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','hook_run','14211oHvdMZ','errorType','rxxzs','jgIDy','Data\x20upload\x20to\x20BrowserStack\x20','BS_TESTOPS_JWT','2yaRhEM','TestRunFinished','933546iRFFGF','NyvXY','env','zJEds','sGUIh','KWFbm','BS_TESTOPS_BUILD_HASHED_ID','2063929vAiOBY','KCFPI','CBT_Upload','jwt','browserstackAutomation','getLogTag','edXXM','102223YfHzWU','Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20','kIXSx','HookRunFinished','includes','KpZmB','aMIqA','getAgentVersion','debug','qpmrz','data','5303216ybOhSS','KdKDU','info','EXCEPTION\x20IN\x20','IEfEr','Test_Skipped_Upload','SOXTD','nestedKeyValue','LogCreated',']\x20event\x20successful!','test_run_uuid','ulSqS','BROWSERSTACK_BUILD_RUN_IDENTIFIER','sendEventData','OQGyJ','max','message','BPSxL','eventUrl','getHostInfo','TestRunSkipped','yGNeV','TEST_REPORTING_ANALYTICS'];a164_0x4d5c=function(){return _0x15dbaa;};return a164_0x4d5c();}module['exports']=SessionHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a165_0x4d15(_0xea33cd,_0x566b05){const _0x373bd7=a165_0x373b();return a165_0x4d15=function(_0x4d155e,_0xc1a59a){_0x4d155e=_0x4d155e-0xb6;let _0x452068=_0x373bd7[_0x4d155e];return _0x452068;},a165_0x4d15(_0xea33cd,_0x566b05);}const a165_0x30ae5c=a165_0x4d15;(function(_0x4707ba,_0x34d6c1){const _0x16cdf9=a165_0x4d15,_0x5be9d0=_0x4707ba();while(!![]){try{const _0x4c4a1f=-parseInt(_0x16cdf9(0x15d))/0x1*(parseInt(_0x16cdf9(0x1b9))/0x2)+parseInt(_0x16cdf9(0xc5))/0x3*(-parseInt(_0x16cdf9(0x181))/0x4)+parseInt(_0x16cdf9(0xdd))/0x5+-parseInt(_0x16cdf9(0x130))/0x6+-parseInt(_0x16cdf9(0x195))/0x7*(-parseInt(_0x16cdf9(0xc8))/0x8)+parseInt(_0x16cdf9(0xe1))/0x9+parseInt(_0x16cdf9(0xff))/0xa;if(_0x4c4a1f===_0x34d6c1)break;else _0x5be9d0['push'](_0x5be9d0['shift']());}catch(_0x56ddaf){_0x5be9d0['push'](_0x5be9d0['shift']());}}}(a165_0x373b,0x42bc2));const fs=require('fs'),path=require(a165_0x30ae5c(0x111)),gitLastCommit=require(a165_0x30ae5c(0x150)),getRepoInfo=require(a165_0x30ae5c(0x194)),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require(a165_0x30ae5c(0x1c0)),http=require(a165_0x30ae5c(0x10e)),https=require(a165_0x30ae5c(0xb6)),child_process=require('child_process'),getos=require(a165_0x30ae5c(0x14e)),os=require('os'),logger=require('../logger')[a165_0x30ae5c(0xf0)],buildLogger=require(a165_0x30ae5c(0xbc))[a165_0x30ae5c(0x1a8)],bsSetupHelper=require(a165_0x30ae5c(0x171)),requestSpy=require(a165_0x30ae5c(0x133)),constants=require('../../bin/utils/constants'),logPatcher=require('../../bin/utils/logPatcher'),util=require(a165_0x30ae5c(0x1bb)),{fileLogger}=require(a165_0x30ae5c(0xbc)),PerformanceTester=require('../performance/performance-tester'),{isFunction}=require(a165_0x30ae5c(0x1ce)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require(a165_0x30ae5c(0x12d)),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require(a165_0x30ae5c(0x1d2)),{v4:uuidv4,v5:uuidv5}=require(a165_0x30ae5c(0x173)),TEST_UUID_NAME_PREFIX=a165_0x30ae5c(0x14a);exports['deterministicTestUUID']=(_0x266cfc,_0x407836=process[a165_0x30ae5c(0xe2)][a165_0x30ae5c(0x12b)])=>{const _0x2a0049=a165_0x30ae5c,_0x428c5f={'wCGEw':function(_0xba3190){return _0xba3190();},'lNHlo':function(_0x3d141a,_0xebff21,_0x82d361){return _0x3d141a(_0xebff21,_0x82d361);}};if(!bsSetupHelper[_0x2a0049(0x1c1)](_0x407836))return logger[_0x2a0049(0x146)](_0x2a0049(0x164)+_0x407836+');\x20falling\x20back\x20to\x20a\x20random\x20uuid.\x20Callers\x20should\x20gate\x20on\x20the\x20seed\x20before\x20calling\x20this.'),_0x428c5f['wCGEw'](uuidv4);return _0x428c5f['lNHlo'](uuidv5,TEST_UUID_NAME_PREFIX+'/'+_0x407836+'/'+_0x266cfc,uuidv5[_0x2a0049(0x1e6)]);},exports['trace']=_0x1edf00=>{const _0x16f0f6=a165_0x30ae5c;fileLogger[_0x16f0f6(0x118)]('['+new Date()[_0x16f0f6(0x144)]()+_0x16f0f6(0x105)+constants[_0x16f0f6(0x112)]+_0x16f0f6(0xce)+_0x1edf00);},exports['debug']=_0x57b23e=>{const _0x1dc7b5=a165_0x30ae5c,_0x4c5358={};_0x4c5358[_0x1dc7b5(0x1c5)]=function(_0x2cdbf8,_0x27298e){return _0x2cdbf8===_0x27298e;},_0x4c5358['VxDSM']=_0x1dc7b5(0xd7),_0x4c5358[_0x1dc7b5(0x1ea)]=function(_0x5d9f02,_0x52557e){return _0x5d9f02===_0x52557e;},_0x4c5358['lvGkq']=function(_0x245f83,_0x14d4fe){return _0x245f83===_0x14d4fe;};const _0x4daf7b=_0x4c5358;fileLogger['debug']('['+new Date()[_0x1dc7b5(0x144)]()+_0x1dc7b5(0x105)+constants[_0x1dc7b5(0x112)]+_0x1dc7b5(0xce)+_0x57b23e),(_0x4daf7b[_0x1dc7b5(0x1c5)](process[_0x1dc7b5(0xe2)][_0x1dc7b5(0x1f3)],_0x4daf7b[_0x1dc7b5(0x177)])||_0x4daf7b['QzRWx'](process[_0x1dc7b5(0xe2)][_0x1dc7b5(0x1f3)],'1')||_0x4daf7b[_0x1dc7b5(0x1a4)](process['env'][_0x1dc7b5(0x124)],_0x4daf7b[_0x1dc7b5(0x177)])||_0x4daf7b[_0x1dc7b5(0x1ea)](process['env'][_0x1dc7b5(0x124)],'1'))&&consoleHolder['log']('\x0a['+new Date()[_0x1dc7b5(0x144)]()+_0x1dc7b5(0x105)+constants[_0x1dc7b5(0x112)]+_0x1dc7b5(0xce)+_0x57b23e+'\x0a');};const a165_0x551ca5={};a165_0x551ca5[a165_0x30ae5c(0x1e3)]=!![],a165_0x551ca5[a165_0x30ae5c(0xec)]=0xea60,a165_0x551ca5[a165_0x30ae5c(0x19d)]=0x2,a165_0x551ca5[a165_0x30ae5c(0x1d0)]=0x2;const httpKeepAliveAgent=new http[(a165_0x30ae5c(0x199))](a165_0x551ca5),a165_0x561ee4={};a165_0x561ee4[a165_0x30ae5c(0x1e3)]=!![],a165_0x561ee4[a165_0x30ae5c(0xec)]=0xea60,a165_0x561ee4[a165_0x30ae5c(0x19d)]=0x2,a165_0x561ee4[a165_0x30ae5c(0x1d0)]=0x2;const httpsKeepAliveAgent=new https[(a165_0x30ae5c(0x199))](a165_0x561ee4),a165_0x583e52={};a165_0x583e52['keepAlive']=!![],a165_0x583e52[a165_0x30ae5c(0xec)]=0xea60,a165_0x583e52['maxSockets']=0x2,a165_0x583e52[a165_0x30ae5c(0x1d0)]=0x2;const httpScreenshotsKeepAliveAgent=new http[(a165_0x30ae5c(0x199))](a165_0x583e52),a165_0x3df2d0={};a165_0x3df2d0['keepAlive']=!![],a165_0x3df2d0[a165_0x30ae5c(0xec)]=0xea60,a165_0x3df2d0['maxSockets']=0x2,a165_0x3df2d0[a165_0x30ae5c(0x1d0)]=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a165_0x30ae5c(0x199))](a165_0x3df2d0);exports[a165_0x30ae5c(0xfe)]=()=>{const _0x4f51fa=a165_0x30ae5c,_0x4caacf={};_0x4caacf[_0x4f51fa(0xf3)]=function(_0x53fc3f,_0x4ca3f5){return _0x53fc3f!==_0x4ca3f5;},_0x4caacf[_0x4f51fa(0x1be)]='null';const _0x2ff884=_0x4caacf;return process['env'][_0x4f51fa(0x1ee)]&&_0x2ff884[_0x4f51fa(0xf3)](process[_0x4f51fa(0xe2)][_0x4f51fa(0x1ee)],_0x2ff884[_0x4f51fa(0x1be)])?!![]:![];},exports[a165_0x30ae5c(0x123)]=()=>{const _0x3ce672=a165_0x30ae5c,_0x12bfe3={};_0x12bfe3[_0x3ce672(0x1d6)]=function(_0x22d9ea,_0x82fb6a){return _0x22d9ea===_0x82fb6a;},_0x12bfe3['NHNIy']=_0x3ce672(0xd7),_0x12bfe3[_0x3ce672(0x197)]=function(_0x39c70f,_0x32c618){return _0x39c70f===_0x32c618;};const _0x215e4e=_0x12bfe3;let _0x35f5ed=!![];return process[_0x3ce672(0xe2)]['BROWSERSTACK_TEST_OBSERVABILITY_YML']&&(_0x35f5ed=_0x215e4e[_0x3ce672(0x1d6)](process[_0x3ce672(0xe2)][_0x3ce672(0xd4)],_0x215e4e['NHNIy'])),process[_0x3ce672(0xe2)]['BROWSERSTACK_TEST_OBSERVABILITY']&&(_0x35f5ed=_0x215e4e[_0x3ce672(0x1d6)](process['env']['BROWSERSTACK_TEST_OBSERVABILITY'],_0x215e4e[_0x3ce672(0x19c)])),process[_0x3ce672(0xe2)][_0x3ce672(0xc0)]&&(_0x35f5ed=_0x215e4e[_0x3ce672(0x197)](process[_0x3ce672(0xe2)]['BROWSERSTACK_TEST_REPORTING'],_0x215e4e[_0x3ce672(0x19c)])),_0x35f5ed;},exports[a165_0x30ae5c(0x13d)]=_0x4e3b9d=>{const _0x39ef73=a165_0x30ae5c;if(bsSetupHelper[_0x39ef73(0xeb)](_0x4e3b9d))return undefined;try{return _0x4e3b9d[_0x39ef73(0xc7)]()[_0x39ef73(0xee)](',');}catch(_0xec7a32){return undefined;}},exports[a165_0x30ae5c(0x11d)]=()=>{const _0x37e2c3=a165_0x30ae5c,_0x2d2a1e={'EAWLq':function(_0x594316,_0x4dc23e){return _0x594316(_0x4dc23e);},'uKOEC':_0x37e2c3(0x134),'GIqJK':function(_0xe906f8,_0x402a83){return _0xe906f8!==_0x402a83;},'Ksyxy':'null','zwwMY':_0x37e2c3(0x141),'JcJUA':function(_0x381bdc,_0x20c8eb){return _0x381bdc===_0x20c8eb;},'WcqcE':_0x37e2c3(0xd7),'NaKvx':function(_0xa81c93,_0x1e9181){return _0xa81c93===_0x1e9181;},'SiFac':function(_0x353907,_0x47a8a5){return _0x353907&&_0x47a8a5;},'xrAHx':function(_0x2ea678,_0x10f807){return _0x2ea678!==_0x10f807;},'AJFLh':function(_0x3c1140,_0x2bd15c){return _0x3c1140&&_0x2bd15c;}};return PerformanceTester[_0x37e2c3(0x16f)](PerformanceO11yEvents[_0x37e2c3(0xd1)],async()=>{const _0x2ed31d=_0x37e2c3;try{const _0x39e00a=_0x2d2a1e[_0x2ed31d(0x1ae)](require,_0x2d2a1e[_0x2ed31d(0x176)]);if(_0x39e00a[_0x2ed31d(0xc9)]){const _0x163c76='Visit\x20'+O11Y_URL+_0x2ed31d(0x122)+_0x39e00a[_0x2ed31d(0xc9)]+_0x2ed31d(0x1c3);buildLogger[_0x2ed31d(0x152)](_0x163c76),exports[_0x2ed31d(0xbd)](_0x39e00a[_0x2ed31d(0xc9)],_0x39e00a[_0x2ed31d(0x1b7)]);return;}if(process[_0x2ed31d(0xe2)][_0x2ed31d(0x14d)]&&_0x2d2a1e['GIqJK'](process['env'][_0x2ed31d(0x14d)],_0x2d2a1e['Ksyxy'])&&_0x2d2a1e[_0x2ed31d(0x157)](process[_0x2ed31d(0xe2)]['BS_TESTOPS_BUILD_HASHED_ID'],_0x2d2a1e['zwwMY'])){const _0x45e91f=_0x2ed31d(0x17d)+constants['O11Y_URL']+_0x2ed31d(0x122)+process[_0x2ed31d(0xe2)][_0x2ed31d(0x14d)]+_0x2ed31d(0x1c3);buildLogger[_0x2ed31d(0x152)](_0x45e91f);const _0xe05464=_0x2d2a1e[_0x2ed31d(0x132)](process[_0x2ed31d(0xe2)][_0x2ed31d(0x109)],_0x2d2a1e['WcqcE']);let _0x2f4754=![];try{const _0x6d04e4=JSON[_0x2ed31d(0x156)](process['env'][_0x2ed31d(0xe8)]||'{}');_0x2f4754=_0x2d2a1e['NaKvx'](_0x6d04e4[_0x2ed31d(0x1c8)],!![]);}catch(_0x1c8707){}exports[_0x2ed31d(0xbd)](process['env'][_0x2ed31d(0x14d)],_0x2d2a1e[_0x2ed31d(0x1d3)](_0xe05464,!_0x2f4754));return;}if(process[_0x2ed31d(0xe2)][_0x2ed31d(0x11e)]&&_0x2d2a1e[_0x2ed31d(0x184)](process[_0x2ed31d(0xe2)][_0x2ed31d(0x11e)],_0x2d2a1e[_0x2ed31d(0x106)])&&_0x2d2a1e[_0x2ed31d(0x184)](process[_0x2ed31d(0xe2)]['BROWSERSTACK_TESTHUB_UUID'],_0x2d2a1e['zwwMY'])){const _0x1a3aba=_0x2ed31d(0x17d)+constants[_0x2ed31d(0x1ab)]+_0x2ed31d(0x122)+process[_0x2ed31d(0xe2)]['BROWSERSTACK_TESTHUB_UUID']+_0x2ed31d(0x1c3);buildLogger['info'](_0x1a3aba);const _0x18eb51=_0x2d2a1e[_0x2ed31d(0x12e)](process[_0x2ed31d(0xe2)][_0x2ed31d(0x109)],_0x2d2a1e[_0x2ed31d(0x1ef)]);let _0x31c649=![];try{const _0x112acc=JSON[_0x2ed31d(0x156)](process[_0x2ed31d(0xe2)]['BROWSERSTACK_PRODUCT_MAP']||'{}');_0x31c649=_0x2d2a1e['NaKvx'](_0x112acc[_0x2ed31d(0x1c8)],!![]);}catch(_0x411ec1){}exports[_0x2ed31d(0xbd)](process['env'][_0x2ed31d(0x11e)],_0x2d2a1e['AJFLh'](_0x18eb51,!_0x31c649));}}catch(_0x4b6987){logger[_0x2ed31d(0x146)](util[_0x2ed31d(0x1ad)]('[%s][\x20'+constants[_0x2ed31d(0x112)]+_0x2ed31d(0x13e),new Date()[_0x2ed31d(0x144)](),_0x4b6987[_0x2ed31d(0x1ec)]||_0x4b6987[_0x2ed31d(0x174)]||_0x4b6987));}})();},exports[a165_0x30ae5c(0xbd)]=(_0x2d6a55,_0x53b5dc)=>{const _0x4d6d9c=a165_0x30ae5c,_0x2ac346={};_0x2ac346[_0x4d6d9c(0xf9)]=function(_0x2bcc14,_0x18ef11){return _0x2bcc14&&_0x18ef11;},_0x2ac346[_0x4d6d9c(0xd6)]=_0x4d6d9c(0xba);const _0x18cf6b=_0x2ac346;try{if(_0x18cf6b[_0x4d6d9c(0xf9)](_0x53b5dc,_0x2d6a55)){const _0x245159=_0x4d6d9c(0x15c)+_0x2d6a55,_0x245b72='Visit\x20'+_0x245159+'\x20to\x20view\x20accessibility\x20report.\x0a';buildLogger[_0x4d6d9c(0x152)](_0x245b72);}}catch(_0x1d78b2){logger['error'](util[_0x4d6d9c(0x1ad)](_0x18cf6b['AymaL'],new Date()[_0x4d6d9c(0x144)](),_0x1d78b2[_0x4d6d9c(0x1ec)]||_0x1d78b2[_0x4d6d9c(0x174)]||_0x1d78b2));}},exports['getFailureType']=_0x22a68f=>{const _0x34fac6=a165_0x30ae5c,_0x45fff1={};_0x45fff1['fkGYG']='AssertionError',_0x45fff1[_0x34fac6(0x1aa)]=_0x34fac6(0x1c6),_0x45fff1[_0x34fac6(0x1d8)]=_0x34fac6(0x115),_0x45fff1['vOTZd']='UnhandledError';const _0x499ac8=_0x45fff1;if(!_0x22a68f)return null;const _0x2e2552=_0x22a68f[_0x34fac6(0x196)]();if(_0x2e2552['match'](/AssertionError/))return _0x499ac8['fkGYG'];if(_0x2e2552[_0x34fac6(0x1c9)](/TimeoutError/)||_0x2e2552[_0x34fac6(0x147)](_0x499ac8[_0x34fac6(0x1aa)])||_0x2e2552[_0x34fac6(0x1c9)](/Timeout.*exceeded/i))return _0x499ac8[_0x34fac6(0x1d8)];return _0x499ac8[_0x34fac6(0x131)];},exports['getFrameworkVersion']=_0x1912dc=>{const _0xb54548=a165_0x30ae5c,_0x353ba6={};_0x353ba6[_0xb54548(0x1d1)]='mocha',_0x353ba6[_0xb54548(0x19e)]=_0xb54548(0xd3),_0x353ba6[_0xb54548(0x1f1)]=_0xb54548(0x187),_0x353ba6[_0xb54548(0xe7)]='jest',_0x353ba6[_0xb54548(0x14f)]=_0xb54548(0xf4),_0x353ba6['QdOjq']=_0xb54548(0x172),_0x353ba6[_0xb54548(0x145)]=_0xb54548(0x192),_0x353ba6[_0xb54548(0xf2)]=_0xb54548(0x18c),_0x353ba6[_0xb54548(0x1eb)]=_0xb54548(0x1b8),_0x353ba6[_0xb54548(0x125)]='testcafe',_0x353ba6[_0xb54548(0x113)]=_0xb54548(0x1e5),_0x353ba6['OlAuI']='detox';const _0x1337d3=_0x353ba6;let _0x579de3=null;switch(_0x1912dc){case FRAMEWORKS[_0xb54548(0x1a1)]:_0x579de3=bsSetupHelper[_0xb54548(0x19b)](_0x1337d3[_0xb54548(0x1d1)]);break;case FRAMEWORKS['PLAYWRIGHT']:_0x579de3=bsSetupHelper[_0xb54548(0x19b)](_0x1337d3[_0xb54548(0x19e)]);break;case FRAMEWORKS[_0xb54548(0xfc)]:case FRAMEWORKS[_0xb54548(0xf7)]:_0x579de3=bsSetupHelper[_0xb54548(0x19b)](_0x1337d3[_0xb54548(0x1f1)]);break;case FRAMEWORKS[_0xb54548(0x137)]:_0x579de3=bsSetupHelper['getPackageVersion'](_0x1337d3['yWLmW']);break;case FRAMEWORKS[_0xb54548(0xcf)]:_0x579de3=bsSetupHelper['getPackageVersion'](_0x1337d3[_0xb54548(0x14f)])||bsSetupHelper['getPackageVersion'](_0x1337d3[_0xb54548(0x191)]);break;case FRAMEWORKS[_0xb54548(0x13c)]:_0x579de3=bsSetupHelper[_0xb54548(0x19b)](_0x1337d3[_0xb54548(0x145)]);break;case FRAMEWORKS[_0xb54548(0x136)]:_0x579de3=bsSetupHelper[_0xb54548(0x19b)](_0x1337d3[_0xb54548(0xf2)])||bsSetupHelper[_0xb54548(0x19b)](_0x1337d3['yJEFh']);break;case FRAMEWORKS[_0xb54548(0xc1)]:_0x579de3=bsSetupHelper[_0xb54548(0x19b)](_0x1337d3[_0xb54548(0x125)]);break;case FRAMEWORKS[_0xb54548(0x127)]:_0x579de3=bsSetupHelper[_0xb54548(0x19b)](_0x1337d3['lKecp']);break;case FRAMEWORKS[_0xb54548(0x1ba)]:_0x579de3=bsSetupHelper['getPackageVersion'](_0x1337d3[_0xb54548(0x17c)]);break;default:break;}return _0x579de3;},exports['getBrowserStackConfig']=_0x2c31af=>{const _0xc6d09f=a165_0x30ae5c;let _0x43f0e9=null;switch(_0x2c31af){case FRAMEWORKS[_0xc6d09f(0xe0)]:_0x43f0e9=process[_0xc6d09f(0xe2)]['BROWSERSTACK_CONFIG_FILE_PATH'];break;}if(!_0x43f0e9)return;return bsSetupHelper[_0xc6d09f(0xe6)](_0x43f0e9,![]);},exports[a165_0x30ae5c(0x160)]=_0x48bb6d=>{const _0x4a985b=a165_0x30ae5c;return{'username':bsSetupHelper[_0x4a985b(0x1a7)](_0x48bb6d),'accessKey':bsSetupHelper[_0x4a985b(0x183)](_0x48bb6d)};},exports[a165_0x30ae5c(0x1cb)]=(_0x76a468,_0x2af994)=>{const _0x376e2d=a165_0x30ae5c,_0x62a89c={};_0x62a89c[_0x376e2d(0xde)]=_0x376e2d(0x18a),_0x62a89c[_0x376e2d(0x159)]=_0x376e2d(0x162),_0x62a89c['tjnma']=_0x376e2d(0x155);const _0x52c65c=_0x62a89c,_0x178812=_0x52c65c[_0x376e2d(0xde)][_0x376e2d(0xee)]('|');let _0x444c84=0x0;while(!![]){switch(_0x178812[_0x444c84++]){case'0':if(!_0x76a468[_0x376e2d(0x189)]||!Array['isArray'](_0x76a468[_0x376e2d(0x189)]))return;continue;case'1':if(!_0x76a468[_0x376e2d(0x189)][0x0]||!_0x76a468['body'][0x0][_0x376e2d(0x10a)]||!_0x76a468[_0x376e2d(0x189)][0x0]['logs'][_0x376e2d(0x10b)])return;continue;case'2':delete _0x76a468[_0x376e2d(0xe4)];continue;case'3':_0x76a468[_0x376e2d(0x1bf)]={'data':_0x76a468[_0x376e2d(0x189)][0x0][_0x376e2d(0x10a)][0x0][_0x376e2d(0xbf)],'test_run_uuid':_0x76a468[_0x376e2d(0x189)][0x0][_0x376e2d(0x10a)][0x0]['test_run_uuid'],'event_type':_0x52c65c[_0x376e2d(0x159)],'kind':_0x52c65c[_0x376e2d(0x142)],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x376e2d(0x144)](),'fileName':_0x76a468[_0x376e2d(0x189)][0x0][_0x376e2d(0x10a)][0x0]['fileName']};continue;case'4':delete _0x76a468[_0x376e2d(0x189)];continue;case'5':delete _0x2af994['headers'];continue;}break;}},exports[a165_0x30ae5c(0x14c)]=async(_0x50779d,_0x44729a,_0x492c2e,_0x3523df,_0x2c1ed4=!![])=>{const _0x146474=a165_0x30ae5c,_0x16b24e={};_0x16b24e[_0x146474(0x10c)]=function(_0x2e5c22,_0x1adbd6){return _0x2e5c22===_0x1adbd6;},_0x16b24e[_0x146474(0x18b)]=_0x146474(0xcd),_0x16b24e['tDGjN']=_0x146474(0x13b),_0x16b24e[_0x146474(0xf5)]=_0x146474(0xb6),_0x16b24e[_0x146474(0x185)]=function(_0xc195f6,_0x2cb50d){return _0xc195f6!==_0x2cb50d;},_0x16b24e[_0x146474(0x16d)]=_0x146474(0x1b0),_0x16b24e[_0x146474(0x15b)]=_0x146474(0x153);const _0x10fafc=_0x16b24e,_0x39f889={..._0x3523df,...{'method':_0x50779d,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x44729a,'body':_0x492c2e,'json':_0x10fafc[_0x146474(0x10c)](_0x3523df[_0x146474(0x193)][_0x10fafc[_0x146474(0x18b)]],_0x10fafc[_0x146474(0x1e4)]),'agent':API_URL['includes'](_0x10fafc[_0x146474(0xf5)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x10fafc[_0x146474(0x10c)](_0x44729a,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x39f889['agent']=API_URL[_0x146474(0x1d4)](_0x10fafc[_0x146474(0xf5)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports[_0x146474(0x1cb)](_0x39f889,_0x3523df),logger[_0x146474(0x1e8)](_0x146474(0x16b)+_0x39f889['url']));try{const {statusCode:_0x5e21f2,body:_0x2091e2}=await bsSetupHelper[_0x146474(0x1b1)](_0x50779d,_0x44729a,_0x39f889,_0x3523df,_0x39f889[_0x146474(0x148)]);if(_0x10fafc['OzVsK'](_0x5e21f2,0xc8))return _0x2091e2?_0x2091e2:_0x146474(0xf6)+_0x5e21f2;let _0x3dc0c7=_0x2091e2;if(_0x2c1ed4)try{_0x10fafc['OzVsK'](typeof _0x2091e2,_0x10fafc[_0x146474(0x16d)])&&(_0x3dc0c7=JSON[_0x146474(0x156)](_0x2091e2));}catch(_0x2af946){logger[_0x146474(0x146)](_0x10fafc[_0x146474(0x15b)],_0x2091e2,util[_0x146474(0x1ad)](_0x2af946));}const _0x28e2d1={};return _0x28e2d1['data']=_0x3dc0c7,_0x28e2d1;}catch(_0x3d8435){logger[_0x146474(0x146)](_0x146474(0xfa)+util[_0x146474(0x1ad)](_0x3d8435));throw _0x3d8435;}},exports['nodeRequest']=(_0x20a0b2,_0x49814d,_0x308292,_0x1593d1,_0xf846f3=!![])=>{const _0x31db45=a165_0x30ae5c,_0x2b91d5={'ELGGI':function(_0x5c34a9,_0x188521){return _0x5c34a9!==_0x188521;},'JzEyR':function(_0x13957c,_0x54d6b1){return _0x13957c(_0x54d6b1);},'HnFbv':_0x31db45(0x1b0),'btOaC':_0x31db45(0xef),'bBFCZ':function(_0x149745,_0x3db9c3){return _0x149745===_0x3db9c3;},'JpBJZ':_0x31db45(0xcd),'XnQwb':_0x31db45(0x13b),'AttNG':_0x31db45(0xb6)};return new Promise((_0x1e0669,_0xbaa797)=>{const _0x3ba30a=_0x31db45,_0x18ee10={'kddQu':function(_0x4c0e83,_0x347fc2){return _0x2b91d5['ELGGI'](_0x4c0e83,_0x347fc2);},'XmAzv':function(_0x20b8ac,_0x236b3f){const _0x8d7d18=a165_0x4d15;return _0x2b91d5[_0x8d7d18(0x10f)](_0x20b8ac,_0x236b3f);},'jrkJe':_0x2b91d5['HnFbv'],'HQYhd':function(_0x3d3adb,_0x1b73a9){const _0x31b125=a165_0x4d15;return _0x2b91d5[_0x31b125(0x10f)](_0x3d3adb,_0x1b73a9);},'rpEvt':_0x2b91d5[_0x3ba30a(0x15a)],'XXxYI':function(_0x2a85e9,_0x1124d6){return _0x2b91d5['JzEyR'](_0x2a85e9,_0x1124d6);}},_0x2c5f={..._0x1593d1,...{'method':_0x20a0b2,'url':API_URL+'/'+_0x49814d,'body':_0x308292,'json':_0x2b91d5[_0x3ba30a(0x16e)](_0x1593d1['headers'][_0x2b91d5[_0x3ba30a(0x188)]],_0x2b91d5[_0x3ba30a(0x13a)]),'agent':API_URL[_0x3ba30a(0x1d4)](_0x2b91d5[_0x3ba30a(0x108)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x2b91d5[_0x3ba30a(0x16e)](_0x49814d,SCREENSHOT_ENDPOINT)&&(_0x2c5f['agent']=API_URL[_0x3ba30a(0x1d4)](_0x2b91d5[_0x3ba30a(0x108)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper[_0x3ba30a(0x1b1)](_0x20a0b2,_0x49814d,_0x2c5f,_0x1593d1,API_URL)['then'](({statusCode:_0x3518bd,body:_0x1f91f8})=>{const _0x2f3365=_0x3ba30a;if(_0x18ee10['kddQu'](_0x3518bd,0xc8))_0x18ee10[_0x2f3365(0xf8)](_0xbaa797,_0x1f91f8?_0x1f91f8:_0x2f3365(0xf6)+_0x3518bd);else{if(_0xf846f3)try{_0x18ee10[_0x2f3365(0x16c)](typeof _0x1f91f8,_0x18ee10[_0x2f3365(0xed)])&&(_0x1f91f8=JSON[_0x2f3365(0x156)](_0x1f91f8));}catch(_0x4fc117){_0x18ee10['HQYhd'](_0xbaa797,_0x18ee10['rpEvt']);return;}const _0x4e17e0={};_0x4e17e0[_0x2f3365(0xbf)]=_0x1f91f8,_0x18ee10['HQYhd'](_0x1e0669,_0x4e17e0);}})[_0x3ba30a(0x11b)](_0x351d65=>{const _0x13901e=_0x3ba30a;_0x351d65&&_0x18ee10[_0x13901e(0xdf)](_0xbaa797,_0x351d65);});});},exports[a165_0x30ae5c(0x110)]=_0x124bf0=>{const _0x3026a0=a165_0x30ae5c;if(process[_0x3026a0(0xe2)][_0x3026a0(0x104)])return process[_0x3026a0(0xe2)][_0x3026a0(0x104)]['split'](',');if(process[_0x3026a0(0xe2)]['TEST_OBSERVABILITY_BUILD_TAG'])return process[_0x3026a0(0xe2)][_0x3026a0(0x1dc)][_0x3026a0(0xee)](',');if(_0x124bf0[_0x3026a0(0x1a2)])return _0x124bf0[_0x3026a0(0x1a2)];return[];},exports['getDefaultHeaders']=(_0x36f84c=!![])=>{const _0x59245b=a165_0x30ae5c,_0x240e81={};_0x240e81[_0x59245b(0x135)]=_0x59245b(0x13b),_0x240e81[_0x59245b(0x158)]=_0x59245b(0xd7),_0x240e81[_0x59245b(0x1e2)]=_0x59245b(0xd0);const _0x1cc12a=_0x240e81,_0x293e7f={};_0x293e7f[_0x59245b(0xcd)]=_0x1cc12a[_0x59245b(0x135)],_0x293e7f['X-BSTACK-TESTOPS']=_0x1cc12a[_0x59245b(0x158)];const _0x1ba096=_0x293e7f;return _0x36f84c&&process[_0x59245b(0xe2)][_0x59245b(0x1f2)]&&(_0x1ba096[_0x1cc12a[_0x59245b(0x1e2)]]=_0x59245b(0x1d5)+process[_0x59245b(0xe2)][_0x59245b(0x1f2)]),_0x1ba096;},exports[a165_0x30ae5c(0x186)]=_0x44a5e6=>{const _0x13b116=a165_0x30ae5c,_0x292482={};_0x292482[_0x13b116(0x190)]=_0x13b116(0x166);const _0x139726=_0x292482,_0x5e206a=[],_0x450139=new RegExp(_0x139726[_0x13b116(0x190)],'i');return Object[_0x13b116(0x116)](_0x44a5e6)[_0x13b116(0x140)](_0xd6a2d5=>_0x450139[_0x13b116(0x182)](_0xd6a2d5))[_0x13b116(0x151)](_0x51e86b=>_0x5e206a[_0x13b116(0x1f0)](_0x44a5e6[_0x51e86b])),_0x5e206a;},exports[a165_0x30ae5c(0x1cd)]=_0x261dec=>{const _0x351d3c=a165_0x30ae5c,_0x12f754=[],_0x23cea3=_0x261dec[_0x351d3c(0x10d)]||process['env'][_0x351d3c(0x179)];return _0x23cea3&&_0x12f754[_0x351d3c(0x1f0)](_0x23cea3),_0x12f754['push'](...exports['extractValuesWithRegexKeyMatch'](process['env'])),_0x12f754[_0x351d3c(0x1f0)](...exports[_0x351d3c(0x186)](_0x261dec)),_0x12f754;},exports[a165_0x30ae5c(0xb7)]=_0x36e572=>{if(!_0x36e572)return'';return _0x36e572['replace'](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports[a165_0x30ae5c(0x128)]=(_0xd44d8f=0x64)=>new Promise(_0xcbc5d9=>setTimeout(_0xcbc5d9,_0xd44d8f));const getPlatformName=()=>{const _0x4de046=a165_0x30ae5c,_0x354e33={};_0x354e33[_0x4de046(0xea)]=function(_0x41d66d,_0x2397a8){return _0x41d66d===_0x2397a8;},_0x354e33[_0x4de046(0x11f)]='win32',_0x354e33[_0x4de046(0x14b)]=_0x4de046(0x1a5),_0x354e33[_0x4de046(0x1bc)]=function(_0x546e06,_0xd37bb6){return _0x546e06===_0xd37bb6;},_0x354e33[_0x4de046(0x180)]=_0x4de046(0x1a9),_0x354e33[_0x4de046(0xd8)]='OS\x20X',_0x354e33[_0x4de046(0x1e1)]=_0x4de046(0xc6),_0x354e33[_0x4de046(0x15e)]=_0x4de046(0x101),_0x354e33[_0x4de046(0x12c)]=_0x4de046(0x139);const _0x43966d=_0x354e33;if(_0x43966d[_0x4de046(0xea)](process[_0x4de046(0x1b4)],_0x43966d[_0x4de046(0x11f)]))return _0x43966d[_0x4de046(0x14b)];if(_0x43966d[_0x4de046(0x1bc)](process['platform'],_0x43966d[_0x4de046(0x180)]))return _0x43966d[_0x4de046(0xd8)];if(_0x43966d['uESxF'](process[_0x4de046(0x1b4)],_0x43966d[_0x4de046(0x1e1)]))return _0x43966d[_0x4de046(0x15e)];return _0x43966d[_0x4de046(0x12c)];},getMacOSVersion=()=>{const _0x2a14b2=a165_0x30ae5c,_0x176065={};_0x176065[_0x2a14b2(0xe5)]=_0x2a14b2(0x1a0);const _0x3d5653=_0x176065;return child_process[_0x2a14b2(0x1e9)](_0x3d5653['rFoqQ'])[_0x2a14b2(0x196)]()[_0x2a14b2(0xc7)]();},getLinuxDetails=()=>{const _0x579516={'gAZbK':function(_0x1b1ba3,_0x4501ed){return _0x1b1ba3(_0x4501ed);},'AxlZL':function(_0x33a9fc,_0x5d56db){return _0x33a9fc(_0x5d56db);}};return new Promise((_0x157c1b,_0x4660c3)=>{const _0x4baf28=a165_0x4d15,_0x400824={'VNsxQ':function(_0xa023b6,_0x3516cd){const _0x3b8d80=a165_0x4d15;return _0x579516[_0x3b8d80(0x1cc)](_0xa023b6,_0x3516cd);}};_0x579516[_0x4baf28(0x18e)](getos,(_0x3cd54f,_0x23515c)=>{const _0x529f4b=_0x4baf28;if(_0x3cd54f)return _0x400824[_0x529f4b(0xfd)](_0x4660c3,_0x3cd54f);_0x400824[_0x529f4b(0xfd)](_0x157c1b,_0x23515c);});});};exports[a165_0x30ae5c(0xc4)]=async()=>{const _0xe47162=a165_0x30ae5c,_0x2dd0fe={'PCdhI':function(_0x577cfe){return _0x577cfe();},'hyORc':_0xe47162(0x11a),'nDNGz':_0xe47162(0x1a5),'HTFJP':'windows-release','PWpVf':function(_0xe172cb){return _0xe172cb();},'KTDun':'Linux','raqbA':function(_0x573f75){return _0x573f75();},'dzLeS':'Error\x20in\x20getting\x20Linux\x20Details'};let _0x32f459=_0x2dd0fe[_0xe47162(0x12a)](getPlatformName),_0x42e16c=os[_0xe47162(0xe9)]()[_0xe47162(0x196)]();switch(_0x32f459){case _0x2dd0fe['hyORc']:_0x42e16c=_0x2dd0fe['PCdhI'](getMacOSVersion);break;case _0x2dd0fe[_0xe47162(0x17f)]:try{const _0x1281ff=(await import(_0x2dd0fe['HTFJP']))[_0xe47162(0x19a)];_0x42e16c=_0x2dd0fe[_0xe47162(0x121)](_0x1281ff);}catch(_0x390fcc){exports[_0xe47162(0x1e8)]('Error\x20in\x20importing\x20windows-release\x20'+_0x390fcc[_0xe47162(0x196)]());}break;case _0x2dd0fe[_0xe47162(0x198)]:try{const _0x4a6962=await _0x2dd0fe['raqbA'](getLinuxDetails);_0x4a6962['dist']&&(_0x32f459=_0x4a6962[_0xe47162(0x114)]),_0x4a6962[_0xe47162(0xe9)]&&(_0x42e16c=_0x4a6962[_0xe47162(0xe9)][_0xe47162(0x196)]());}catch(_0x29a37a){exports[_0xe47162(0x1e8)](_0x2dd0fe['dzLeS']);}break;default:break;}const _0x4306ff={};return _0x4306ff[_0xe47162(0x17e)]=_0x32f459,_0x4306ff['platformVersion']=_0x42e16c,_0x4306ff;},exports['failureData']=(_0x5b3a8c,_0x558746)=>{const _0xfc3eec=a165_0x30ae5c,_0x2afc28={};_0x2afc28[_0xfc3eec(0xb9)]=function(_0x2e7295,_0x5e12fe){return _0x2e7295===_0x5e12fe;},_0x2afc28['faGUL']=_0xfc3eec(0x182),_0x2afc28['RYsKt']=function(_0x163aac,_0x305b9b){return _0x163aac===_0x305b9b;},_0x2afc28[_0xfc3eec(0x1b6)]=_0xfc3eec(0x102);const _0x263169=_0x2afc28;if(!_0x5b3a8c)return[];try{if(_0x263169[_0xfc3eec(0xb9)](_0x558746,_0x263169[_0xfc3eec(0x17a)]))return!Array[_0xfc3eec(0x1c2)](_0x5b3a8c)&&(_0x5b3a8c=[_0x5b3a8c]),_0x5b3a8c[_0xfc3eec(0x1b2)](_0x10c475=>{const _0x2afcf4=_0xfc3eec,{stack:_0x5bad54,..._0x9f545e}=_0x10c475,_0x8f0547=Object[_0x2afcf4(0x116)](_0x9f545e)[_0x2afcf4(0x1b2)](_0x1efbd2=>{return _0x1efbd2+':\x20'+_0x9f545e[_0x1efbd2];}),_0x53dc7e=_0x5bad54?exports['removeAnsiColors'](_0x5bad54)[_0x2afcf4(0xee)](/\r?\n/):[exports[_0x2afcf4(0xb7)](_0x10c475['message'])],_0x378240={};return _0x378240[_0x2afcf4(0x143)]=_0x53dc7e,_0x378240[_0x2afcf4(0x126)]=_0x8f0547,_0x378240;});else{if(_0x263169['RYsKt'](_0x558746,_0x263169[_0xfc3eec(0x1b6)])){const _0x48984b=[],_0x2c6f49=[];return Object[_0xfc3eec(0x116)](_0x5b3a8c)['forEach'](_0x5ab305=>{const _0x4cfe21=_0xfc3eec;try{_0x2c6f49[_0x4cfe21(0x1f0)](_0x5ab305+':\x20'+_0x5b3a8c[_0x5ab305]);}catch(_0xddbc27){exports[_0x4cfe21(0x1e8)](_0x4cfe21(0x167)+_0xddbc27['message']+_0x4cfe21(0xb8)+_0xddbc27[_0x4cfe21(0x143)]);}}),_0x48984b[_0xfc3eec(0x1f0)]({'backtrace':exports[_0xfc3eec(0xb7)](_0x5b3a8c[_0xfc3eec(0x1ec)])[_0xfc3eec(0xee)](/\r?\n/),'expanded':_0x2c6f49}),_0x48984b;}}return[];}catch(_0x123bd3){exports[_0xfc3eec(0x1e8)](_0xfc3eec(0x167)+_0x123bd3[_0xfc3eec(0x174)]+_0xfc3eec(0xb8)+_0x123bd3['backtrace']);}return[];};class PathHelper{constructor(_0x5e98a1,_0x1551f5){const _0xf02d7=a165_0x30ae5c;this['config']=_0x5e98a1,this[_0xf02d7(0x13f)]=_0x1551f5;}['relativeTestFilePath'](_0x594f52){const _0x401b06=a165_0x30ae5c,_0x1fa429=this['config'][_0x401b06(0x1ca)]||this[_0x401b06(0x1df)][_0x401b06(0x170)];return path[_0x401b06(0xcc)](_0x1fa429,_0x594f52);}[a165_0x30ae5c(0x163)](_0x1252b7){const _0x26f324=a165_0x30ae5c,_0xcdf31a=this[_0x26f324(0xd5)](_0x1252b7);return this[_0x26f324(0x13f)]?path[_0x26f324(0x1a3)](this[_0x26f324(0x13f)],_0xcdf31a):_0xcdf31a;}}exports[a165_0x30ae5c(0x17b)]=PathHelper,exports[a165_0x30ae5c(0x19f)]=(_0xe3445d=!![])=>{const _0x149de6=a165_0x30ae5c,_0x40629b={};_0x40629b['pPtYG']=function(_0x17edc2,_0x208958){return _0x17edc2===_0x208958;},_0x40629b[_0x149de6(0xf1)]=_0x149de6(0xbb),_0x40629b[_0x149de6(0x103)]=_0x149de6(0xd7),_0x40629b[_0x149de6(0x149)]=_0x149de6(0x1bd),_0x40629b[_0x149de6(0x1e0)]=_0x149de6(0x129),_0x40629b[_0x149de6(0x169)]=_0x149de6(0x12f);const _0x14463f=_0x40629b;requestSpy[_0x149de6(0x120)]((_0xe5c738,_0x44401e)=>{const _0x7abacb=_0x149de6;_0x44401e&&!(_0x44401e[_0x7abacb(0x193)]&&_0x14463f[_0x7abacb(0x1c4)](_0x44401e[_0x7abacb(0x193)][_0x14463f[_0x7abacb(0xf1)]],_0x14463f['bpdVU']))&&(_0x44401e[_0x7abacb(0xca)]=_0x44401e[_0x7abacb(0xd2)],delete _0x44401e[_0x7abacb(0xd2)],_0xe3445d&&process[_0x7abacb(0xfb)](_0x7abacb(0x107)+process[_0x7abacb(0x1e7)],{'timestamp':new Date()['toISOString'](),'level':null,'message':null,'kind':_0x14463f[_0x7abacb(0x149)],'http_response':_0x44401e})),_0x44401e&&(constants['HUB_URL_REGEX'][_0x7abacb(0x182)](_0x44401e[_0x7abacb(0xca)])||constants[_0x7abacb(0x1af)][_0x7abacb(0x182)](_0x44401e[_0x7abacb(0xca)]))?global['__cloud_provider___']=_0x14463f[_0x7abacb(0x1e0)]:global['__cloud_provider___']=_0x14463f['ZNmKr'];});},exports[a165_0x30ae5c(0x1ed)]=()=>{const _0x50f17a=a165_0x30ae5c,_0x173fa2={'mtEBV':function(_0x38403d,_0x1cb1ae){return _0x38403d(_0x1cb1ae);}};console={},Object[_0x50f17a(0x116)](consoleHolder)[_0x50f17a(0x151)](_0x1909a8=>{const _0x4e1167=_0x50f17a;_0x173fa2[_0x4e1167(0xda)](isFunction,consoleHolder[_0x1909a8])?console[_0x1909a8]=(..._0x591509)=>{const _0x32c154=_0x4e1167;try{!Object[_0x32c154(0x116)](BSTestOpsPatcher)[_0x32c154(0x1d4)](_0x1909a8)?consoleHolder[_0x1909a8](..._0x591509):BSTestOpsPatcher[_0x1909a8](..._0x591509);}catch(_0x2b9d27){consoleHolder[_0x1909a8](..._0x591509);}}:console[_0x1909a8]=consoleHolder[_0x1909a8];});},exports[a165_0x30ae5c(0xdc)]=()=>'browserstack_executor:\x20'+JSON[a165_0x30ae5c(0x16a)]({'action':'annotate','arguments':{'data':a165_0x30ae5c(0x117)+Date[a165_0x30ae5c(0x1ac)](),'level':a165_0x30ae5c(0x1e8)}}),exports['getObservabilityLinkedProductName']=(_0x4343f4,_0x5a9052=global[a165_0x30ae5c(0xc2)])=>{const _0x1c9981=a165_0x30ae5c,_0x275152={};_0x275152[_0x1c9981(0x1a6)]=function(_0x457604,_0xaf1d5f){return _0x457604===_0xaf1d5f;},_0x275152[_0x1c9981(0x168)]='browserstack',_0x275152[_0x1c9981(0x1f4)]=_0x1c9981(0x100),_0x275152[_0x1c9981(0xdb)]='app',_0x275152[_0x1c9981(0x1cf)]=function(_0xc92107,_0x3e7603){return _0xc92107>_0x3e7603;},_0x275152['WaGnG']=_0x1c9981(0xcb),_0x275152[_0x1c9981(0x1da)]=_0x1c9981(0x138),_0x275152[_0x1c9981(0x119)]=_0x1c9981(0x1dd),_0x275152[_0x1c9981(0x1de)]=_0x1c9981(0x1db),_0x275152[_0x1c9981(0xbe)]=_0x1c9981(0xd9);const _0x344aa7=_0x275152;let _0x26709e=null;try{if(_0x344aa7[_0x1c9981(0x1a6)](_0x5a9052,_0x344aa7['nqWCz'])){if(_0x4343f4[_0x344aa7[_0x1c9981(0x1f4)]]||_0x4343f4[_0x344aa7[_0x1c9981(0xdb)]]||!bsSetupHelper[_0x1c9981(0xeb)](global[_0x1c9981(0x1b3)])&&_0x344aa7[_0x1c9981(0x1cf)](global['capabilities'][_0x1c9981(0x10b)],0x0)&&(global[_0x1c9981(0x1b3)][0x0][_0x344aa7[_0x1c9981(0xdb)]]||global['capabilities'][0x0][_0x344aa7[_0x1c9981(0x1f4)]]))_0x26709e=_0x344aa7['WaGnG'];else _0x4343f4[_0x344aa7[_0x1c9981(0x1da)]]&&_0x4343f4[_0x344aa7[_0x1c9981(0x1da)]][_0x344aa7[_0x1c9981(0x119)]]?_0x26709e=_0x344aa7[_0x1c9981(0x1de)]:_0x26709e=_0x344aa7[_0x1c9981(0xbe)];}}catch(_0x154402){exports['debug']('Failed\x20to\x20determine\x20product\x20linked\x20to\x20'+constants[_0x1c9981(0x112)]+_0x1c9981(0x1d7)+_0x154402);}return _0x26709e;},exports[a165_0x30ae5c(0x1d9)]=async(_0x534203,_0x3665d3,_0x2c1576=![],_0x5d7cab=![])=>{const _0x4600c8=a165_0x30ae5c,_0x54c604={};_0x54c604[_0x4600c8(0x18f)]=_0x4600c8(0x129),_0x54c604['KmIrE']=function(_0x21aa72,_0x1f0e78){return _0x21aa72===_0x1f0e78;},_0x54c604[_0x4600c8(0x178)]=_0x4600c8(0x1c7),_0x54c604['wiFlg']='TEST_PLATFORM';const _0x544390=_0x54c604;try{const _0x27c65d=await _0x534203[_0x4600c8(0x11c)](),_0x4e2eb8=await _0x534203[_0x4600c8(0x175)](),_0x19dfe3={},_0xda4ce0=Object[_0x4600c8(0xc3)](_0x4e2eb8[_0x4600c8(0x11c)]()['map_']),_0x653858=_0x5d7cab&&bsSetupHelper['isBrowserstackInfra']()?_0x544390[_0x4600c8(0x18f)]:global[_0x4600c8(0xc2)],_0x1fae04={'product':exports[_0x4600c8(0x165)](_0xda4ce0,_0x653858),'capabilities':_0xda4ce0,'platform':_0x27c65d['getPlatform'](),'platform_version':bsSetupHelper[_0x4600c8(0x15f)](_0x544390[_0x4600c8(0x18d)](_0x653858,_0x544390['vlpcH'])),'browser':_0x27c65d[_0x4600c8(0x161)](),'browser_version':_0x27c65d['getBrowserVersion'](),'session_id':_0x4e2eb8[_0x4600c8(0x1b5)]()};_0x653858?_0x19dfe3[_0x653858]=_0x1fae04:_0x19dfe3[_0x544390[_0x4600c8(0x178)]]=_0x1fae04;if(_0x2c1576)return _0x19dfe3;process['emit'](_0x4600c8(0x154)+process[_0x4600c8(0x1e7)],{'timestamp':new Date()[_0x4600c8(0x144)](),'level':null,'message':null,'kind':_0x544390['wiFlg'],'http_response':_0x19dfe3,'uuid':_0x3665d3});}catch(_0x9f72a9){exports['debug']('Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20'+_0x9f72a9);}},exports[a165_0x30ae5c(0xe3)]=_0x2529bd=>{const _0x5d4666=a165_0x30ae5c;return _0x2529bd&&_0x2529bd['toString']()[_0x5d4666(0x1c9)](/browserstack internal helper hook/);};function a165_0x373b(){const _0x427097=['shouldReRunObservabilityTests','2181820PcAVOt','appium:app','Linux','err','bpdVU','TEST_REPORTING_BUILD_TAG','][\x20','Ksyxy','bs:addLog:','AttNG','BROWSERSTACK_ACCESSIBILITY','logs','length','VoVJZ','customTag','http','JzEyR','getBuildTags','path','TEST_REPORTING_ANALYTICS','lKecp','dist','TimeoutError','keys','ObservabilitySync:','silly','oxmtE','OS\x20X','catch','getCapabilities','printBuildLink','BROWSERSTACK_TESTHUB_UUID','iwYVS','spy','PWpVf','/builds/','isTestObservabilitySession','BROWSERSTACK_OBSERVABILITY_DEBUG','ffdAj','expanded','NEWMAN','sleep','browserstack','PCdhI','BROWSERSTACK_TESTHUB_UUID_SEED','LXVmc','../performance/constants','NaKvx','local_grid','901872VCUcrE','vOTZd','JcJUA','../../helpers/request-spy','../../bin/v2/browserstackCLI','wBpdm','PUPPETEER','JEST','bstack:options','Unknown','XnQwb','application/json','CUCUMBER','parseFileNames','\x20]\x20Build\x20Not\x20Found\x20%s','prefix','filter','undefined','tjnma','backtrace','toISOString','ouUMw','error','startsWith','url','NLvlH','browserstack.com/testhub/test-run','fkHKB','asyncAwaitNodeReq','BS_TESTOPS_BUILD_HASHED_ID','getos','zSlmW','git-last-commit','forEach','info','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','bs:addPlatformDetails:','TEST_ATTACHMENT','parse','GIqJK','sUABn','KTdJw','btOaC','wEDpA','https://accessibility.browserstack.com/automated-tests/projects/p/builds/b/1?thBuildId=','3DVqIyf','PPPjv','getPlatformVersion','getUserCredentials','getBrowserName','LogCreated','prefixTestPath','deterministicTestUUID\x20called\x20without\x20a\x20valid\x20BROWSERSTACK_TESTHUB_UUID_SEED\x20(got:\x20','getObservabilityLinkedProductName','^CUSTOM_TAG_\x5cd+$','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','nqWCz','ZNmKr','stringify','Uploading\x20trace\x20logs\x20to:\x20','kddQu','ntYRs','bBFCZ','measureWrapper','rootDir','../helper','jasmine','uuid','message','getSession','uKOEC','VxDSM','WYTnW','CUSTOM_TAG','faGUL','PathHelper','OlAuI','Visit\x20','platformName','nDNGz','mKRGR','268DKnjIj','test','getAccessKey','xrAHx','OzVsK','extractValuesWithRegexKeyMatch','codeceptjs','JpBJZ','body','0|1|3|4|2|5','KBvPG','puppeteer-core','KmIrE','AxlZL','vlpcH','oKScA','QdOjq','@cucumber/cucumber','headers','git-repo-info','7rEqjqC','toString','amFVU','KTDun','Agent','default','getPackageVersion','NHNIy','maxSockets','qMXKg','addRequestSpy','awk\x20\x27/SOFTWARE\x20LICENSE\x20AGREEMENT\x20FOR\x20macOS/\x27\x20\x27/System/Library/CoreServices/Setup\x20Assistant.app/Contents/Resources/en.lproj/OSXSoftwareLicense.rtf\x27\x20|\x20awk\x20-F\x20\x27macOS\x20\x27\x20\x27{print\x20$NF}\x27\x20|\x20awk\x20\x27{print\x20substr($0,\x200,\x20length($0)-1)}\x27','MOCHA','buildTag','join','lvGkq','Windows','Clpug','getUserName','buildLogger','darwin','ZUYdt','O11Y_URL','now','format','EAWLq','ATS_HUB_URL_REGEX','object','nodeRequest','map','capabilities','platform','toJSON','TQTxR','A11yEnabled','puppeteer','3628lrAqAm','DETOX','util','UeJnJ','HTTP','PevIm','formData','./constants','isValidEnvValue','isArray','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','pPtYG','ciFng','Test\x20timeout\x20of','unknown_grid','app_automate','match','cwd','modifyReqForTraceUpload','gAZbK','getCustomTags','lodash','IBumx','maxTotalSockets','CXHVT','../../../src/bin/utils/constants','SiFac','includes','Bearer\x20','KulYw','\x20test\x20instance\x20:\x20','FoazC','sendPlatformDetails','rhBvy','turboscale','TEST_OBSERVABILITY_BUILD_TAG','turboScaleGridDetails','JDqVh','config','AgKKY','DNWtG','hWWDO','keepAlive','tDGjN','newman','URL','pid','debug','execSync','QzRWx','yJEFh','stack','patchConsoleLogger','BROWSERSTACK_RERUN_TESTS','WcqcE','push','NGzur','BROWSERSTACK_TESTHUB_JWT','BROWSERSTACK_TEST_REPORTING_DEBUG','BqpPE','https','removeAnsiColors','\x20:\x20','iJJEp','[%s][\x20Accessibility\x20]\x20Error\x20printing\x20accessibility\x20build\x20link\x20%s','X-BSTACK-TESTOPS','../logger','printA11yBuildLink','Cqjcr','data','BROWSERSTACK_TEST_REPORTING','TESTCAFE','__cloud_provider___','fromEntries','getPlatformDetails','17517YjTSAB','linux','trim','655736aoCYeJ','O11yHashedID','host','app-automate','relative','Content-Type','\x20]\x20','JASMINE','Authorization','PRINT_BUILDLINK','hostname','@playwright/test','BROWSERSTACK_TEST_OBSERVABILITY_YML','relativeTestFilePath','AymaL','true','BAjRo','automate','mtEBV','tjGfB','getSyncScript','2592930ZAbgya','JDACA','XXxYI','PLAYWRIGHT','14202Bqjfrg','env','isInternalHook','json','rFoqQ','readConfig','yWLmW','BROWSERSTACK_PRODUCT_MAP','release','uESxF','isUndefined','timeout','jrkJe','split','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','winstonLogger','YyJUH','ClmYF','ODhaF','jasmine-core','edpIV','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','CODECEPT_CUCUMBER','XmAzv','eZHxy','Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20','emit','CODECEPT','VNsxQ'];a165_0x373b=function(){return _0x427097;};return a165_0x373b();}
|
|
1
|
+
const a165_0xc50d98=a165_0x55a6;(function(_0x24ba0a,_0x12270f){const _0x1082bc=a165_0x55a6,_0x207cf6=_0x24ba0a();while(!![]){try{const _0x6b5616=parseInt(_0x1082bc(0x199))/0x1*(-parseInt(_0x1082bc(0x128))/0x2)+parseInt(_0x1082bc(0xec))/0x3+parseInt(_0x1082bc(0xf9))/0x4*(parseInt(_0x1082bc(0x12c))/0x5)+parseInt(_0x1082bc(0x151))/0x6*(-parseInt(_0x1082bc(0x1b4))/0x7)+-parseInt(_0x1082bc(0x133))/0x8*(-parseInt(_0x1082bc(0x124))/0x9)+parseInt(_0x1082bc(0x1a0))/0xa+parseInt(_0x1082bc(0xe6))/0xb*(-parseInt(_0x1082bc(0x206))/0xc);if(_0x6b5616===_0x12270f)break;else _0x207cf6['push'](_0x207cf6['shift']());}catch(_0xe4fecb){_0x207cf6['push'](_0x207cf6['shift']());}}}(a165_0x4da2,0x31837));const fs=require('fs'),path=require(a165_0xc50d98(0x185)),gitLastCommit=require(a165_0xc50d98(0xf0)),getRepoInfo=require(a165_0xc50d98(0x1c3)),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require(a165_0xc50d98(0x1a7)),http=require(a165_0xc50d98(0x215)),https=require(a165_0xc50d98(0x17b)),child_process=require(a165_0xc50d98(0x217)),getos=require(a165_0xc50d98(0x147)),os=require('os'),logger=require('../logger')[a165_0xc50d98(0x1d5)],buildLogger=require('../logger')[a165_0xc50d98(0x111)],bsSetupHelper=require(a165_0xc50d98(0x1de)),requestSpy=require(a165_0xc50d98(0x107)),constants=require(a165_0xc50d98(0xfd)),logPatcher=require(a165_0xc50d98(0x220)),util=require(a165_0xc50d98(0x13d)),{fileLogger}=require(a165_0xc50d98(0x162)),PerformanceTester=require('../performance/performance-tester'),{isFunction}=require(a165_0xc50d98(0x115)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require('../performance/constants'),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require(a165_0xc50d98(0x1be)),{v4:uuidv4,v5:uuidv5}=require('uuid'),TEST_UUID_NAME_PREFIX=a165_0xc50d98(0x1b6);exports[a165_0xc50d98(0x18a)]=(_0x3fd177,_0x236e01=process['env'][a165_0xc50d98(0x1fd)])=>{const _0xf9ae21=a165_0xc50d98,_0xe35f3e={'oPSqu':function(_0x5e7768){return _0x5e7768();},'ZYKFz':function(_0x56b000,_0xa76e2,_0x3bf70e){return _0x56b000(_0xa76e2,_0x3bf70e);}};if(!bsSetupHelper['isValidEnvValue'](_0x236e01))return logger[_0xf9ae21(0x1c5)](_0xf9ae21(0x13c)+_0x236e01+_0xf9ae21(0x15c)),_0xe35f3e[_0xf9ae21(0x1a8)](uuidv4);return _0xe35f3e[_0xf9ae21(0x16b)](uuidv5,TEST_UUID_NAME_PREFIX+'/'+_0x236e01+'/'+_0x3fd177,uuidv5[_0xf9ae21(0x177)]);},exports[a165_0xc50d98(0x196)]=_0x29b710=>{const _0x59e1b6=a165_0xc50d98;fileLogger['silly']('['+new Date()[_0x59e1b6(0x10f)]()+_0x59e1b6(0x181)+constants[_0x59e1b6(0x142)]+_0x59e1b6(0x180)+_0x29b710);},exports['debug']=_0x4b31ff=>{const _0x233b44=a165_0xc50d98,_0x5644de={};_0x5644de[_0x233b44(0x1d3)]=function(_0xedec96,_0x2de2c3){return _0xedec96===_0x2de2c3;},_0x5644de[_0x233b44(0x1ad)]=_0x233b44(0x21a),_0x5644de[_0x233b44(0x120)]=function(_0x5e995f,_0x5f3aa3){return _0x5e995f===_0x5f3aa3;};const _0x1e0ba2=_0x5644de;fileLogger['debug']('['+new Date()[_0x233b44(0x10f)]()+_0x233b44(0x181)+constants[_0x233b44(0x142)]+_0x233b44(0x180)+_0x4b31ff),(_0x1e0ba2['xfleq'](process[_0x233b44(0xf8)][_0x233b44(0x219)],_0x1e0ba2[_0x233b44(0x1ad)])||_0x1e0ba2[_0x233b44(0x120)](process[_0x233b44(0xf8)][_0x233b44(0x219)],'1')||_0x1e0ba2[_0x233b44(0x1d3)](process['env']['BROWSERSTACK_OBSERVABILITY_DEBUG'],_0x1e0ba2[_0x233b44(0x1ad)])||_0x1e0ba2[_0x233b44(0x1d3)](process[_0x233b44(0xf8)]['BROWSERSTACK_OBSERVABILITY_DEBUG'],'1'))&&consoleHolder['log']('\x0a['+new Date()[_0x233b44(0x10f)]()+_0x233b44(0x181)+constants['TEST_REPORTING_ANALYTICS']+_0x233b44(0x180)+_0x4b31ff+'\x0a');};const a165_0x8d8b60={};a165_0x8d8b60[a165_0xc50d98(0x14d)]=!![],a165_0x8d8b60['timeout']=0xea60,a165_0x8d8b60['maxSockets']=0x2,a165_0x8d8b60[a165_0xc50d98(0x126)]=0x2;const httpKeepAliveAgent=new http[(a165_0xc50d98(0x106))](a165_0x8d8b60),a165_0x38ee6b={};function a165_0x55a6(_0x48dad9,_0x2d857f){const _0x4da21b=a165_0x4da2();return a165_0x55a6=function(_0x55a6ad,_0x552ef2){_0x55a6ad=_0x55a6ad-0xe3;let _0x3e7b48=_0x4da21b[_0x55a6ad];return _0x3e7b48;},a165_0x55a6(_0x48dad9,_0x2d857f);}a165_0x38ee6b[a165_0xc50d98(0x14d)]=!![],a165_0x38ee6b[a165_0xc50d98(0x110)]=0xea60,a165_0x38ee6b['maxSockets']=0x2,a165_0x38ee6b[a165_0xc50d98(0x126)]=0x2;const httpsKeepAliveAgent=new https[(a165_0xc50d98(0x106))](a165_0x38ee6b),a165_0x15dce3={};a165_0x15dce3[a165_0xc50d98(0x14d)]=!![],a165_0x15dce3['timeout']=0xea60,a165_0x15dce3['maxSockets']=0x2,a165_0x15dce3[a165_0xc50d98(0x126)]=0x2;const httpScreenshotsKeepAliveAgent=new http['Agent'](a165_0x15dce3),a165_0x597cc5={};a165_0x597cc5[a165_0xc50d98(0x14d)]=!![],a165_0x597cc5[a165_0xc50d98(0x110)]=0xea60,a165_0x597cc5[a165_0xc50d98(0x17a)]=0x2,a165_0x597cc5[a165_0xc50d98(0x126)]=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a165_0xc50d98(0x106))](a165_0x597cc5);exports[a165_0xc50d98(0xed)]=()=>{const _0x2397ef=a165_0xc50d98,_0x31540f={};_0x31540f[_0x2397ef(0x156)]=function(_0x486a5c,_0x4d9bd4){return _0x486a5c!==_0x4d9bd4;},_0x31540f[_0x2397ef(0x148)]=_0x2397ef(0x20b);const _0x5cd20b=_0x31540f;return process[_0x2397ef(0xf8)]['BROWSERSTACK_RERUN_TESTS']&&_0x5cd20b[_0x2397ef(0x156)](process['env'][_0x2397ef(0x12a)],_0x5cd20b[_0x2397ef(0x148)])?!![]:![];},exports['isTestObservabilitySession']=()=>{const _0x5561fa=a165_0xc50d98,_0x3e112c={};_0x3e112c[_0x5561fa(0x1d9)]=function(_0x1ba9ae,_0x5524a2){return _0x1ba9ae===_0x5524a2;},_0x3e112c[_0x5561fa(0x18e)]='true';const _0x34e7a0=_0x3e112c;let _0x55820e=!![];return process[_0x5561fa(0xf8)]['BROWSERSTACK_TEST_OBSERVABILITY_YML']&&(_0x55820e=_0x34e7a0['uJitJ'](process['env']['BROWSERSTACK_TEST_OBSERVABILITY_YML'],_0x34e7a0[_0x5561fa(0x18e)])),process[_0x5561fa(0xf8)][_0x5561fa(0x17f)]&&(_0x55820e=_0x34e7a0[_0x5561fa(0x1d9)](process[_0x5561fa(0xf8)]['BROWSERSTACK_TEST_OBSERVABILITY'],_0x34e7a0[_0x5561fa(0x18e)])),process[_0x5561fa(0xf8)]['BROWSERSTACK_TEST_REPORTING']&&(_0x55820e=_0x34e7a0[_0x5561fa(0x1d9)](process[_0x5561fa(0xf8)]['BROWSERSTACK_TEST_REPORTING'],_0x34e7a0['JnFJY'])),_0x55820e;},exports['parseFileNames']=_0x16c277=>{const _0x5c2144=a165_0xc50d98;if(bsSetupHelper[_0x5c2144(0x14e)](_0x16c277))return undefined;try{return _0x16c277[_0x5c2144(0xe7)]()[_0x5c2144(0x20a)](',');}catch(_0x295b11){return undefined;}},exports[a165_0xc50d98(0xf6)]=()=>{const _0x10839a=a165_0xc50d98,_0x4d211f={'jzDhm':function(_0x387b4d,_0x2235d1){return _0x387b4d(_0x2235d1);},'YVjCu':_0x10839a(0x1ed),'NWCNZ':function(_0x4e47a0,_0x28f276){return _0x4e47a0!==_0x28f276;},'yEoyX':'null','MMQqt':_0x10839a(0x1ab),'rtuuY':function(_0x11432a,_0x3e61c5){return _0x11432a===_0x3e61c5;},'LWiHH':_0x10839a(0x21a),'oCxBu':function(_0x554b46,_0x1c7873){return _0x554b46===_0x1c7873;},'QklfV':function(_0x57c982,_0x1f95fe){return _0x57c982&&_0x1f95fe;},'rJQLr':function(_0x290ce6,_0xda750d){return _0x290ce6!==_0xda750d;},'vhQBM':function(_0x43be40,_0x39eb39){return _0x43be40!==_0x39eb39;},'EmsnL':function(_0x248bc0,_0x313e26){return _0x248bc0&&_0x313e26;}};return PerformanceTester[_0x10839a(0x119)](PerformanceO11yEvents[_0x10839a(0x178)],async()=>{const _0x5b12f5=_0x10839a;try{const _0x1cba93=_0x4d211f[_0x5b12f5(0x1c8)](require,_0x4d211f[_0x5b12f5(0x154)]);if(_0x1cba93[_0x5b12f5(0x1b2)]){const _0xd5ff5=_0x5b12f5(0x211)+O11Y_URL+_0x5b12f5(0x114)+_0x1cba93['O11yHashedID']+_0x5b12f5(0x131);buildLogger['info'](_0xd5ff5),exports[_0x5b12f5(0xfc)](_0x1cba93['O11yHashedID'],_0x1cba93[_0x5b12f5(0x1b8)]);return;}if(process['env'][_0x5b12f5(0x21e)]&&_0x4d211f[_0x5b12f5(0x1b9)](process[_0x5b12f5(0xf8)][_0x5b12f5(0x21e)],_0x4d211f[_0x5b12f5(0x17c)])&&_0x4d211f[_0x5b12f5(0x1b9)](process['env'][_0x5b12f5(0x21e)],_0x4d211f[_0x5b12f5(0x19c)])){const _0x1f5442=_0x5b12f5(0x211)+constants[_0x5b12f5(0x1c7)]+_0x5b12f5(0x114)+process[_0x5b12f5(0xf8)]['BS_TESTOPS_BUILD_HASHED_ID']+_0x5b12f5(0x131);buildLogger['info'](_0x1f5442);const _0x147869=_0x4d211f[_0x5b12f5(0x146)](process[_0x5b12f5(0xf8)][_0x5b12f5(0x161)],_0x4d211f[_0x5b12f5(0x158)]);let _0x2c5f67=![];try{const _0x23fddc=JSON[_0x5b12f5(0x15d)](process[_0x5b12f5(0xf8)]['BROWSERSTACK_PRODUCT_MAP']||'{}');_0x2c5f67=_0x4d211f['oCxBu'](_0x23fddc[_0x5b12f5(0x1dd)],!![]);}catch(_0x2111d1){}exports['printA11yBuildLink'](process[_0x5b12f5(0xf8)]['BS_TESTOPS_BUILD_HASHED_ID'],_0x4d211f['QklfV'](_0x147869,!_0x2c5f67));return;}if(process[_0x5b12f5(0xf8)][_0x5b12f5(0x1f1)]&&_0x4d211f['rJQLr'](process[_0x5b12f5(0xf8)]['BROWSERSTACK_TESTHUB_UUID'],_0x4d211f['yEoyX'])&&_0x4d211f[_0x5b12f5(0x10b)](process[_0x5b12f5(0xf8)]['BROWSERSTACK_TESTHUB_UUID'],_0x4d211f[_0x5b12f5(0x19c)])){const _0x2610c0=_0x5b12f5(0x211)+constants[_0x5b12f5(0x1c7)]+_0x5b12f5(0x114)+process[_0x5b12f5(0xf8)][_0x5b12f5(0x1f1)]+'\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a';buildLogger[_0x5b12f5(0x205)](_0x2610c0);const _0x5ebee6=_0x4d211f['rtuuY'](process['env'][_0x5b12f5(0x161)],_0x4d211f[_0x5b12f5(0x158)]);let _0x1d137b=![];try{const _0xd73b0=JSON[_0x5b12f5(0x15d)](process['env'][_0x5b12f5(0x1f3)]||'{}');_0x1d137b=_0x4d211f[_0x5b12f5(0x1b5)](_0xd73b0[_0x5b12f5(0x1dd)],!![]);}catch(_0x298658){}exports['printA11yBuildLink'](process[_0x5b12f5(0xf8)][_0x5b12f5(0x1f1)],_0x4d211f[_0x5b12f5(0x152)](_0x5ebee6,!_0x1d137b));}}catch(_0x333d67){logger['error'](util[_0x5b12f5(0x145)]('[%s][\x20'+constants[_0x5b12f5(0x142)]+_0x5b12f5(0x1e3),new Date()[_0x5b12f5(0x10f)](),_0x333d67[_0x5b12f5(0x21b)]||_0x333d67[_0x5b12f5(0x183)]||_0x333d67));}})();},exports['printA11yBuildLink']=(_0x10bf72,_0x4e4901)=>{const _0x242856=a165_0xc50d98,_0x18fe9d={};_0x18fe9d[_0x242856(0x125)]=function(_0xa01402,_0x43fce4){return _0xa01402&&_0x43fce4;},_0x18fe9d[_0x242856(0xe3)]='[%s][\x20Accessibility\x20]\x20Error\x20printing\x20accessibility\x20build\x20link\x20%s';const _0x46ae5b=_0x18fe9d;try{if(_0x46ae5b['mFMHN'](_0x4e4901,_0x10bf72)){const _0x1250dd=_0x242856(0x168)+_0x10bf72,_0x577b91=_0x242856(0x211)+_0x1250dd+_0x242856(0x139);buildLogger['info'](_0x577b91);}}catch(_0x161c29){logger['error'](util[_0x242856(0x145)](_0x46ae5b[_0x242856(0xe3)],new Date()[_0x242856(0x10f)](),_0x161c29[_0x242856(0x21b)]||_0x161c29[_0x242856(0x183)]||_0x161c29));}},exports[a165_0xc50d98(0x141)]=_0x241192=>{const _0x507550=a165_0xc50d98,_0x171048={};_0x171048['rHqpH']=_0x507550(0x1f5),_0x171048[_0x507550(0x1da)]=_0x507550(0x193),_0x171048[_0x507550(0x194)]=_0x507550(0x19f),_0x171048['gylVv']='UnhandledError';const _0x8f6df4=_0x171048;if(!_0x241192)return null;const _0x5d7d71=_0x241192[_0x507550(0x1bc)]();if(_0x5d7d71[_0x507550(0x203)](/AssertionError/))return _0x8f6df4[_0x507550(0x16a)];if(_0x5d7d71['match'](/TimeoutError/)||_0x5d7d71['startsWith'](_0x8f6df4[_0x507550(0x1da)])||_0x5d7d71['match'](/Timeout.*exceeded/i))return _0x8f6df4[_0x507550(0x194)];return _0x8f6df4['gylVv'];},exports[a165_0xc50d98(0x201)]=_0x11e67c=>{const _0x29faa9=a165_0xc50d98,_0x122ee6={};_0x122ee6[_0x29faa9(0x1b1)]=_0x29faa9(0x1eb),_0x122ee6['JOnaO']=_0x29faa9(0x1cc),_0x122ee6[_0x29faa9(0x1a1)]=_0x29faa9(0x1fc),_0x122ee6[_0x29faa9(0x189)]='jest',_0x122ee6[_0x29faa9(0x1bf)]=_0x29faa9(0x1f8),_0x122ee6['HMjJK']=_0x29faa9(0x18d),_0x122ee6[_0x29faa9(0xff)]=_0x29faa9(0x137),_0x122ee6[_0x29faa9(0x1a5)]='puppeteer-core',_0x122ee6[_0x29faa9(0x1f6)]=_0x29faa9(0x14f),_0x122ee6[_0x29faa9(0x209)]=_0x29faa9(0x1fa),_0x122ee6[_0x29faa9(0x134)]=_0x29faa9(0x132),_0x122ee6['oXsfR']=_0x29faa9(0x1fe);const _0x2d8a53=_0x122ee6;let _0x156d4e=null;switch(_0x11e67c){case FRAMEWORKS[_0x29faa9(0x122)]:_0x156d4e=bsSetupHelper[_0x29faa9(0x1bd)](_0x2d8a53[_0x29faa9(0x1b1)]);break;case FRAMEWORKS[_0x29faa9(0x121)]:_0x156d4e=bsSetupHelper[_0x29faa9(0x1bd)](_0x2d8a53['JOnaO']);break;case FRAMEWORKS['CODECEPT']:case FRAMEWORKS['CODECEPT_CUCUMBER']:_0x156d4e=bsSetupHelper[_0x29faa9(0x1bd)](_0x2d8a53[_0x29faa9(0x1a1)]);break;case FRAMEWORKS['JEST']:_0x156d4e=bsSetupHelper[_0x29faa9(0x1bd)](_0x2d8a53[_0x29faa9(0x189)]);break;case FRAMEWORKS['JASMINE']:_0x156d4e=bsSetupHelper[_0x29faa9(0x1bd)](_0x2d8a53[_0x29faa9(0x1bf)])||bsSetupHelper[_0x29faa9(0x1bd)](_0x2d8a53[_0x29faa9(0x204)]);break;case FRAMEWORKS[_0x29faa9(0x1a9)]:_0x156d4e=bsSetupHelper[_0x29faa9(0x1bd)](_0x2d8a53['SJkkj']);break;case FRAMEWORKS[_0x29faa9(0xe9)]:_0x156d4e=bsSetupHelper['getPackageVersion'](_0x2d8a53[_0x29faa9(0x1a5)])||bsSetupHelper['getPackageVersion'](_0x2d8a53['yYQtU']);break;case FRAMEWORKS[_0x29faa9(0x1af)]:_0x156d4e=bsSetupHelper['getPackageVersion'](_0x2d8a53[_0x29faa9(0x209)]);break;case FRAMEWORKS[_0x29faa9(0x16d)]:_0x156d4e=bsSetupHelper[_0x29faa9(0x1bd)](_0x2d8a53[_0x29faa9(0x134)]);break;case FRAMEWORKS[_0x29faa9(0xea)]:_0x156d4e=bsSetupHelper[_0x29faa9(0x1bd)](_0x2d8a53['oXsfR']);break;default:break;}return _0x156d4e;},exports[a165_0xc50d98(0x1f7)]=_0x44c179=>{const _0x176bde=a165_0xc50d98;let _0x4e6ea7=null;switch(_0x44c179){case FRAMEWORKS[_0x176bde(0x121)]:_0x4e6ea7=process[_0x176bde(0xf8)][_0x176bde(0x195)];break;}if(!_0x4e6ea7)return;return bsSetupHelper['readConfig'](_0x4e6ea7,![]);},exports[a165_0xc50d98(0x1c4)]=_0x4fbfb1=>{const _0x298edb=a165_0xc50d98;return{'username':bsSetupHelper['getUserName'](_0x4fbfb1),'accessKey':bsSetupHelper[_0x298edb(0x20f)](_0x4fbfb1)};},exports[a165_0xc50d98(0x136)]=(_0x2452ac,_0x1c2349)=>{const _0x1f8189=a165_0xc50d98,_0x231edc={};_0x231edc[_0x1f8189(0x108)]=_0x1f8189(0x166),_0x231edc[_0x1f8189(0x1ca)]=_0x1f8189(0x1cb),_0x231edc[_0x1f8189(0x172)]='TEST_ATTACHMENT';const _0x154cd0=_0x231edc,_0x32f396=_0x154cd0[_0x1f8189(0x108)][_0x1f8189(0x20a)]('|');let _0x423bb9=0x0;while(!![]){switch(_0x32f396[_0x423bb9++]){case'0':if(!_0x2452ac[_0x1f8189(0x12d)]||!Array['isArray'](_0x2452ac[_0x1f8189(0x12d)]))return;continue;case'1':delete _0x2452ac[_0x1f8189(0x12d)];continue;case'2':delete _0x1c2349[_0x1f8189(0x1b7)];continue;case'3':_0x2452ac[_0x1f8189(0x1a4)]={'data':_0x2452ac[_0x1f8189(0x12d)][0x0][_0x1f8189(0x16e)][0x0][_0x1f8189(0x15f)],'test_run_uuid':_0x2452ac['body'][0x0][_0x1f8189(0x16e)][0x0][_0x1f8189(0x176)],'event_type':_0x154cd0[_0x1f8189(0x1ca)],'kind':_0x154cd0[_0x1f8189(0x172)],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x1f8189(0x10f)](),'fileName':_0x2452ac['body'][0x0][_0x1f8189(0x16e)][0x0]['fileName']};continue;case'4':if(!_0x2452ac[_0x1f8189(0x12d)][0x0]||!_0x2452ac[_0x1f8189(0x12d)][0x0][_0x1f8189(0x16e)]||!_0x2452ac[_0x1f8189(0x12d)][0x0]['logs'][_0x1f8189(0xee)])return;continue;case'5':delete _0x2452ac[_0x1f8189(0x11a)];continue;}break;}},exports[a165_0xc50d98(0x1ef)]=async(_0x58ae27,_0x17ebcd,_0x1b403e,_0x121a1d,_0x5eb099=!![])=>{const _0x18554c=a165_0xc50d98,_0x4c80c7={};_0x4c80c7[_0x18554c(0x140)]=function(_0x3e0b07,_0x33ae65){return _0x3e0b07===_0x33ae65;},_0x4c80c7[_0x18554c(0x216)]='Content-Type',_0x4c80c7[_0x18554c(0x10e)]=_0x18554c(0x1d1),_0x4c80c7['hzdRB']='https',_0x4c80c7[_0x18554c(0x200)]=function(_0x420642,_0x52b5f2){return _0x420642!==_0x52b5f2;},_0x4c80c7[_0x18554c(0x13b)]=_0x18554c(0x21f),_0x4c80c7[_0x18554c(0x213)]=_0x18554c(0x174);const _0x502c14=_0x4c80c7,_0xa46832={..._0x121a1d,...{'method':_0x58ae27,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x17ebcd,'body':_0x1b403e,'json':_0x502c14[_0x18554c(0x140)](_0x121a1d[_0x18554c(0x1b7)][_0x502c14['PVljz']],_0x502c14[_0x18554c(0x10e)]),'agent':API_URL[_0x18554c(0xf1)](_0x502c14[_0x18554c(0x1e4)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x502c14['nlLlB'](_0x17ebcd,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0xa46832[_0x18554c(0x127)]=API_URL[_0x18554c(0xf1)](_0x502c14[_0x18554c(0x1e4)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports[_0x18554c(0x136)](_0xa46832,_0x121a1d),logger[_0x18554c(0xf2)](_0x18554c(0x10d)+_0xa46832['url']));try{const {statusCode:_0x1678bd,body:_0x26cd30}=await bsSetupHelper[_0x18554c(0x191)](_0x58ae27,_0x17ebcd,_0xa46832,_0x121a1d,_0xa46832[_0x18554c(0x1c6)]);if(_0x502c14[_0x18554c(0x200)](_0x1678bd,0xc8))return _0x26cd30?_0x26cd30:_0x18554c(0x1ba)+_0x1678bd;let _0x4527e0=_0x26cd30;if(_0x5eb099)try{_0x502c14[_0x18554c(0x200)](typeof _0x26cd30,_0x502c14[_0x18554c(0x13b)])&&(_0x4527e0=JSON[_0x18554c(0x15d)](_0x26cd30));}catch(_0x238043){logger[_0x18554c(0x1c5)](_0x502c14[_0x18554c(0x213)],_0x26cd30,util['format'](_0x238043));}const _0x2ca8bf={};return _0x2ca8bf['data']=_0x4527e0,_0x2ca8bf;}catch(_0x3a73b2){logger[_0x18554c(0x1c5)](_0x18554c(0x101)+util[_0x18554c(0x145)](_0x3a73b2));throw _0x3a73b2;}},exports[a165_0xc50d98(0x191)]=(_0x11754b,_0x2678e2,_0x106599,_0x2cbd01,_0x51da0c=!![])=>{const _0x3a9bf6=a165_0xc50d98,_0x30aa02={'ezBfE':function(_0x3348dc,_0x15b5e7){return _0x3348dc!==_0x15b5e7;},'swrxa':function(_0x168888,_0x476bde){return _0x168888(_0x476bde);},'rmrAf':_0x3a9bf6(0x21f),'xxkIf':function(_0x4a3eaf,_0x1ed581){return _0x4a3eaf(_0x1ed581);},'XvrgD':_0x3a9bf6(0x163),'yboac':function(_0x2dffb3,_0x4708f0){return _0x2dffb3===_0x4708f0;},'GEeTD':'Content-Type','bAtSj':_0x3a9bf6(0x1d1),'DOABB':_0x3a9bf6(0x17b)};return new Promise((_0x49fd58,_0x38319b)=>{const _0x54a36c=_0x3a9bf6,_0x49fa09={..._0x2cbd01,...{'method':_0x11754b,'url':API_URL+'/'+_0x2678e2,'body':_0x106599,'json':_0x30aa02['yboac'](_0x2cbd01[_0x54a36c(0x1b7)][_0x30aa02['GEeTD']],_0x30aa02[_0x54a36c(0x11f)]),'agent':API_URL[_0x54a36c(0xf1)](_0x30aa02[_0x54a36c(0x19d)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x30aa02[_0x54a36c(0x184)](_0x2678e2,SCREENSHOT_ENDPOINT)&&(_0x49fa09[_0x54a36c(0x127)]=API_URL[_0x54a36c(0xf1)](_0x30aa02['DOABB'])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper[_0x54a36c(0x191)](_0x11754b,_0x2678e2,_0x49fa09,_0x2cbd01,API_URL)['then'](({statusCode:_0x431ec4,body:_0x28a17d})=>{const _0x18a619=_0x54a36c;if(_0x30aa02[_0x18a619(0x14b)](_0x431ec4,0xc8))_0x30aa02[_0x18a619(0x160)](_0x38319b,_0x28a17d?_0x28a17d:'Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20'+_0x431ec4);else{if(_0x51da0c)try{_0x30aa02[_0x18a619(0x14b)](typeof _0x28a17d,_0x30aa02['rmrAf'])&&(_0x28a17d=JSON['parse'](_0x28a17d));}catch(_0x4f2bfc){_0x30aa02['xxkIf'](_0x38319b,_0x30aa02[_0x18a619(0x11b)]);return;}const _0x156c5e={};_0x156c5e[_0x18a619(0x15f)]=_0x28a17d,_0x30aa02[_0x18a619(0x160)](_0x49fd58,_0x156c5e);}})[_0x54a36c(0x149)](_0x9bb0f7=>{const _0x4af2bd=_0x54a36c;_0x9bb0f7&&_0x30aa02[_0x4af2bd(0x190)](_0x38319b,_0x9bb0f7);});});},exports[a165_0xc50d98(0xfa)]=_0x851cdb=>{const _0x52dc4f=a165_0xc50d98;if(process[_0x52dc4f(0xf8)][_0x52dc4f(0x208)])return process['env'][_0x52dc4f(0x208)][_0x52dc4f(0x20a)](',');if(process['env'][_0x52dc4f(0x116)])return process[_0x52dc4f(0xf8)]['TEST_OBSERVABILITY_BUILD_TAG'][_0x52dc4f(0x20a)](',');if(_0x851cdb[_0x52dc4f(0x21d)])return _0x851cdb['buildTag'];return[];},exports[a165_0xc50d98(0x1c9)]=(_0x2ee510=!![])=>{const _0x3a07a6=a165_0xc50d98,_0x499141={};_0x499141[_0x3a07a6(0x135)]=_0x3a07a6(0x1d1),_0x499141[_0x3a07a6(0x1cf)]=_0x3a07a6(0x21a),_0x499141[_0x3a07a6(0x1c0)]=_0x3a07a6(0x175);const _0x522982=_0x499141,_0x47e337={};_0x47e337['Content-Type']=_0x522982['KDvYm'],_0x47e337[_0x3a07a6(0x144)]=_0x522982[_0x3a07a6(0x1cf)];const _0x3657e0=_0x47e337;return _0x2ee510&&process[_0x3a07a6(0xf8)][_0x3a07a6(0x1e2)]&&(_0x3657e0[_0x522982[_0x3a07a6(0x1c0)]]=_0x3a07a6(0x1d8)+process[_0x3a07a6(0xf8)][_0x3a07a6(0x1e2)]),_0x3657e0;},exports['extractValuesWithRegexKeyMatch']=_0x3085a6=>{const _0x3fb2a5=a165_0xc50d98,_0x178d34={};_0x178d34[_0x3fb2a5(0x164)]=_0x3fb2a5(0x11e);const _0x3f08b0=_0x178d34,_0x3e6436=[],_0x12676b=new RegExp(_0x3f08b0[_0x3fb2a5(0x164)],'i');return Object[_0x3fb2a5(0x12f)](_0x3085a6)['filter'](_0x4bc8d5=>_0x12676b[_0x3fb2a5(0x192)](_0x4bc8d5))['forEach'](_0x406800=>_0x3e6436[_0x3fb2a5(0x118)](_0x3085a6[_0x406800])),_0x3e6436;},exports['getCustomTags']=_0x5a26f6=>{const _0x438c52=a165_0xc50d98,_0x2f01ea=[],_0x5e6d3c=_0x5a26f6[_0x438c52(0x12b)]||process['env'][_0x438c52(0x143)];return _0x5e6d3c&&_0x2f01ea[_0x438c52(0x118)](_0x5e6d3c),_0x2f01ea['push'](...exports[_0x438c52(0x113)](process['env'])),_0x2f01ea[_0x438c52(0x118)](...exports[_0x438c52(0x113)](_0x5a26f6)),_0x2f01ea;},exports[a165_0xc50d98(0x155)]=_0x4a3b8a=>{const _0xdbcd39=a165_0xc50d98;if(!_0x4a3b8a)return'';return _0x4a3b8a[_0xdbcd39(0x15e)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports[a165_0xc50d98(0x109)]=(_0xa37724=0x64)=>new Promise(_0x37f874=>setTimeout(_0x37f874,_0xa37724));const getPlatformName=()=>{const _0x24cd09=a165_0xc50d98,_0x1303ce={};_0x1303ce[_0x24cd09(0x15a)]=function(_0x2bf12e,_0x1f0ff4){return _0x2bf12e===_0x1f0ff4;},_0x1303ce['XgzaB']=_0x24cd09(0x1b3),_0x1303ce['WhKxN']='Windows',_0x1303ce['QzYpF']=function(_0x2fdd84,_0x584485){return _0x2fdd84===_0x584485;},_0x1303ce[_0x24cd09(0x18f)]=_0x24cd09(0x1a3),_0x1303ce[_0x24cd09(0x1a2)]=_0x24cd09(0x1e7),_0x1303ce['drYnp']=function(_0x417278,_0x23ff77){return _0x417278===_0x23ff77;},_0x1303ce['gLkvN']=_0x24cd09(0x165),_0x1303ce[_0x24cd09(0x1d6)]=_0x24cd09(0x167),_0x1303ce[_0x24cd09(0x19b)]='Unknown';const _0x508f88=_0x1303ce;if(_0x508f88[_0x24cd09(0x15a)](process['platform'],_0x508f88[_0x24cd09(0x16f)]))return _0x508f88[_0x24cd09(0x12e)];if(_0x508f88[_0x24cd09(0x202)](process[_0x24cd09(0xe8)],_0x508f88[_0x24cd09(0x18f)]))return _0x508f88['klEsc'];if(_0x508f88['drYnp'](process[_0x24cd09(0xe8)],_0x508f88[_0x24cd09(0x103)]))return _0x508f88[_0x24cd09(0x1d6)];return _0x508f88[_0x24cd09(0x19b)];},getMacOSVersion=()=>{const _0x14f44a=a165_0xc50d98,_0x15bc70={};_0x15bc70['CRCTW']=_0x14f44a(0x20c);const _0x498428=_0x15bc70;return child_process['execSync'](_0x498428[_0x14f44a(0x171)])[_0x14f44a(0x1bc)]()[_0x14f44a(0xe7)]();},getLinuxDetails=()=>{const _0x276d94={'WuHus':function(_0x1f6b59,_0x2f7b52){return _0x1f6b59(_0x2f7b52);},'yLQIS':function(_0x3339ee,_0x33fe9){return _0x3339ee(_0x33fe9);}};return new Promise((_0x24b20b,_0x11ab27)=>{const _0x3f379f={'UVYIf':function(_0xc6059e,_0x42d624){return _0x276d94['WuHus'](_0xc6059e,_0x42d624);}};_0x276d94['yLQIS'](getos,(_0xb2f27a,_0x2cbcaa)=>{const _0x2e30f2=a165_0x55a6;if(_0xb2f27a)return _0x3f379f[_0x2e30f2(0x1d7)](_0x11ab27,_0xb2f27a);_0x3f379f[_0x2e30f2(0x1d7)](_0x24b20b,_0x2cbcaa);});});};exports[a165_0xc50d98(0xf7)]=async()=>{const _0x247ac7=a165_0xc50d98,_0x45700e={'gsCQo':function(_0x58fcd7){return _0x58fcd7();},'BLcBH':_0x247ac7(0x1e7),'LTjhp':_0x247ac7(0x150),'JvoGD':_0x247ac7(0x188),'AriZM':_0x247ac7(0x167),'xerPg':function(_0x135762){return _0x135762();},'wwbCV':'Error\x20in\x20getting\x20Linux\x20Details'};let _0x55e9a6=_0x45700e['gsCQo'](getPlatformName),_0x2c6d7f=os[_0x247ac7(0x169)]()[_0x247ac7(0x1bc)]();switch(_0x55e9a6){case _0x45700e[_0x247ac7(0xef)]:_0x2c6d7f=_0x45700e[_0x247ac7(0x1cd)](getMacOSVersion);break;case _0x45700e[_0x247ac7(0x198)]:try{const _0x38f0b2=(await import(_0x45700e['JvoGD']))[_0x247ac7(0x105)];_0x2c6d7f=_0x45700e[_0x247ac7(0x1cd)](_0x38f0b2);}catch(_0x4004b7){exports[_0x247ac7(0xf2)](_0x247ac7(0x21c)+_0x4004b7[_0x247ac7(0x1bc)]());}break;case _0x45700e[_0x247ac7(0x11d)]:try{const _0x2aabea=await _0x45700e[_0x247ac7(0x17e)](getLinuxDetails);_0x2aabea['dist']&&(_0x55e9a6=_0x2aabea['dist']),_0x2aabea[_0x247ac7(0x169)]&&(_0x2c6d7f=_0x2aabea['release'][_0x247ac7(0x1bc)]());}catch(_0x4b0a2c){exports[_0x247ac7(0xf2)](_0x45700e[_0x247ac7(0xf3)]);}break;default:break;}const _0x1e6ba4={};return _0x1e6ba4[_0x247ac7(0xf5)]=_0x55e9a6,_0x1e6ba4['platformVersion']=_0x2c6d7f,_0x1e6ba4;},exports['failureData']=(_0x5d072f,_0x38d295)=>{const _0x32e899=a165_0xc50d98,_0x2753dd={};_0x2753dd['zenEc']=function(_0x4fb24a,_0x3fa3bc){return _0x4fb24a===_0x3fa3bc;},_0x2753dd[_0x32e899(0x1ff)]=_0x32e899(0x192),_0x2753dd[_0x32e899(0xe4)]=function(_0x1fb6e9,_0x5bbdf0){return _0x1fb6e9===_0x5bbdf0;},_0x2753dd[_0x32e899(0x1dc)]=_0x32e899(0x1db);const _0xe250a3=_0x2753dd;if(!_0x5d072f)return[];try{if(_0xe250a3[_0x32e899(0x1df)](_0x38d295,_0xe250a3['Wrbrt']))return!Array[_0x32e899(0x1c2)](_0x5d072f)&&(_0x5d072f=[_0x5d072f]),_0x5d072f['map'](_0x29d23e=>{const _0x4019c9=_0x32e899,{stack:_0x3398a9,..._0x574242}=_0x29d23e,_0x3e792a=Object[_0x4019c9(0x12f)](_0x574242)[_0x4019c9(0x1e9)](_0x4cb58f=>{return _0x4cb58f+':\x20'+_0x574242[_0x4cb58f];}),_0x2fc145=_0x3398a9?exports['removeAnsiColors'](_0x3398a9)[_0x4019c9(0x20a)](/\r?\n/):[exports[_0x4019c9(0x155)](_0x29d23e[_0x4019c9(0x183)])],_0x4c2b46={};return _0x4c2b46[_0x4019c9(0x207)]=_0x2fc145,_0x4c2b46[_0x4019c9(0x13a)]=_0x3e792a,_0x4c2b46;});else{if(_0xe250a3[_0x32e899(0xe4)](_0x38d295,_0xe250a3[_0x32e899(0x1dc)])){const _0x35c4a1=[],_0x71649=[];return Object[_0x32e899(0x12f)](_0x5d072f)['forEach'](_0x2d95f6=>{const _0x2a4ccb=_0x32e899;try{_0x71649['push'](_0x2d95f6+':\x20'+_0x5d072f[_0x2d95f6]);}catch(_0x3db044){exports[_0x2a4ccb(0xf2)](_0x2a4ccb(0x1ea)+_0x3db044[_0x2a4ccb(0x183)]+'\x20:\x20'+_0x3db044[_0x2a4ccb(0x207)]);}}),_0x35c4a1[_0x32e899(0x118)]({'backtrace':exports[_0x32e899(0x155)](_0x5d072f[_0x32e899(0x21b)])[_0x32e899(0x20a)](/\r?\n/),'expanded':_0x71649}),_0x35c4a1;}}return[];}catch(_0x36fa32){exports[_0x32e899(0xf2)](_0x32e899(0x1ea)+_0x36fa32[_0x32e899(0x183)]+_0x32e899(0x123)+_0x36fa32[_0x32e899(0x207)]);}return[];};class PathHelper{constructor(_0x1ec06e,_0x596a72){const _0x257fa7=a165_0xc50d98;this[_0x257fa7(0x104)]=_0x1ec06e,this[_0x257fa7(0x159)]=_0x596a72;}['relativeTestFilePath'](_0x40891f){const _0x30172d=a165_0xc50d98,_0x28114e=this[_0x30172d(0x104)][_0x30172d(0x1ee)]||this[_0x30172d(0x104)][_0x30172d(0x117)];return path[_0x30172d(0x179)](_0x28114e,_0x40891f);}[a165_0xc50d98(0x182)](_0x1b111d){const _0x37868c=a165_0xc50d98,_0x5f4f89=this['relativeTestFilePath'](_0x1b111d);return this[_0x37868c(0x159)]?path[_0x37868c(0x1d2)](this[_0x37868c(0x159)],_0x5f4f89):_0x5f4f89;}}exports[a165_0xc50d98(0x210)]=PathHelper,exports['addRequestSpy']=(_0x2e80cf=!![])=>{const _0x34cd9b=a165_0xc50d98,_0x5c2757={};_0x5c2757[_0x34cd9b(0x1b0)]=function(_0x96034f,_0xa8677f){return _0x96034f===_0xa8677f;},_0x5c2757[_0x34cd9b(0x1d0)]=_0x34cd9b(0x144),_0x5c2757[_0x34cd9b(0x1fb)]=_0x34cd9b(0x21a),_0x5c2757[_0x34cd9b(0x153)]=_0x34cd9b(0x13e),_0x5c2757[_0x34cd9b(0x157)]=_0x34cd9b(0xeb),_0x5c2757['bguqo']=_0x34cd9b(0x10a);const _0x3fed3e=_0x5c2757;requestSpy['spy']((_0x36e4c3,_0x24475e)=>{const _0x18a81a=_0x34cd9b;_0x24475e&&!(_0x24475e[_0x18a81a(0x1b7)]&&_0x3fed3e[_0x18a81a(0x1b0)](_0x24475e[_0x18a81a(0x1b7)][_0x3fed3e[_0x18a81a(0x1d0)]],_0x3fed3e[_0x18a81a(0x1fb)]))&&(_0x24475e[_0x18a81a(0x1c1)]=_0x24475e[_0x18a81a(0x138)],delete _0x24475e[_0x18a81a(0x138)],_0x2e80cf&&process[_0x18a81a(0x1e1)](_0x18a81a(0x1f9)+process[_0x18a81a(0x1e0)],{'timestamp':new Date()[_0x18a81a(0x10f)](),'level':null,'message':null,'kind':_0x3fed3e[_0x18a81a(0x153)],'http_response':_0x24475e})),_0x24475e&&(constants['HUB_URL_REGEX'][_0x18a81a(0x192)](_0x24475e[_0x18a81a(0x1c1)])||constants[_0x18a81a(0x187)][_0x18a81a(0x192)](_0x24475e[_0x18a81a(0x1c1)]))?global['__cloud_provider___']=_0x3fed3e[_0x18a81a(0x157)]:global[_0x18a81a(0x18b)]=_0x3fed3e[_0x18a81a(0x13f)];});},exports[a165_0xc50d98(0xfe)]=()=>{const _0x1242f9=a165_0xc50d98,_0x5dcd63={'UTAtW':function(_0x3fe488,_0xef6822){return _0x3fe488(_0xef6822);}};console={},Object[_0x1242f9(0x12f)](consoleHolder)[_0x1242f9(0xe5)](_0x5a92b1=>{const _0x5223b0=_0x1242f9;_0x5dcd63[_0x5223b0(0x18c)](isFunction,consoleHolder[_0x5a92b1])?console[_0x5a92b1]=(..._0x1a84d7)=>{const _0x43e124=_0x5223b0;try{!Object[_0x43e124(0x12f)](BSTestOpsPatcher)['includes'](_0x5a92b1)?consoleHolder[_0x5a92b1](..._0x1a84d7):BSTestOpsPatcher[_0x5a92b1](..._0x1a84d7);}catch(_0x4c0d05){consoleHolder[_0x5a92b1](..._0x1a84d7);}}:console[_0x5a92b1]=consoleHolder[_0x5a92b1];});},exports['getSyncScript']=()=>a165_0xc50d98(0x130)+JSON[a165_0xc50d98(0x173)]({'action':a165_0xc50d98(0xf4),'arguments':{'data':'ObservabilitySync:'+Date['now'](),'level':a165_0xc50d98(0xf2)}}),exports[a165_0xc50d98(0x16c)]=(_0x1ed4a8,_0x591f04=global['__cloud_provider___'])=>{const _0x441b0e=a165_0xc50d98,_0x53a64b={};_0x53a64b['cDkIU']=function(_0x35da59,_0x2fe1ab){return _0x35da59===_0x2fe1ab;},_0x53a64b[_0x441b0e(0x170)]=_0x441b0e(0xeb),_0x53a64b[_0x441b0e(0x1f2)]='appium:app',_0x53a64b[_0x441b0e(0x15b)]=_0x441b0e(0x10c),_0x53a64b[_0x441b0e(0x129)]=function(_0x9383b1,_0x3335e6){return _0x9383b1>_0x3335e6;},_0x53a64b[_0x441b0e(0x1f0)]=_0x441b0e(0x1e5),_0x53a64b['XnRSC']=_0x441b0e(0x1bb),_0x53a64b[_0x441b0e(0x1ce)]=_0x441b0e(0x20d),_0x53a64b[_0x441b0e(0x1ec)]=_0x441b0e(0x1a6),_0x53a64b['KslcD']='automate';const _0xc5e31c=_0x53a64b;let _0x1e66db=null;try{if(_0xc5e31c[_0x441b0e(0x1f4)](_0x591f04,_0xc5e31c['wPDmS'])){if(_0x1ed4a8[_0xc5e31c['WQOUp']]||_0x1ed4a8[_0xc5e31c[_0x441b0e(0x15b)]]||!bsSetupHelper[_0x441b0e(0x14e)](global['capabilities'])&&_0xc5e31c[_0x441b0e(0x129)](global[_0x441b0e(0x212)]['length'],0x0)&&(global[_0x441b0e(0x212)][0x0][_0xc5e31c[_0x441b0e(0x15b)]]||global[_0x441b0e(0x212)][0x0][_0xc5e31c[_0x441b0e(0x1f2)]]))_0x1e66db=_0xc5e31c[_0x441b0e(0x1f0)];else _0x1ed4a8[_0xc5e31c[_0x441b0e(0x11c)]]&&_0x1ed4a8[_0xc5e31c[_0x441b0e(0x11c)]][_0xc5e31c['AhDHW']]?_0x1e66db=_0xc5e31c[_0x441b0e(0x1ec)]:_0x1e66db=_0xc5e31c[_0x441b0e(0x1d4)];}}catch(_0x5d8450){exports[_0x441b0e(0xf2)](_0x441b0e(0x1ae)+constants[_0x441b0e(0x142)]+_0x441b0e(0x112)+_0x5d8450);}return _0x1e66db;},exports['sendPlatformDetails']=async(_0x1e065e,_0x33ac6e,_0x3de581=![],_0x256ce2=![])=>{const _0x5c4123=a165_0xc50d98,_0x52cd9c={};_0x52cd9c[_0x5c4123(0x214)]=_0x5c4123(0xeb),_0x52cd9c['XeEOH']=function(_0x35c8a4,_0x444398){return _0x35c8a4===_0x444398;},_0x52cd9c[_0x5c4123(0x14a)]=_0x5c4123(0x20e),_0x52cd9c['zcMel']=_0x5c4123(0x1e6);const _0x5f2d65=_0x52cd9c;try{const _0x52fa74=await _0x1e065e['getCapabilities'](),_0x30fb89=await _0x1e065e[_0x5c4123(0x14c)](),_0x483920={},_0x45923a=Object[_0x5c4123(0x1aa)](_0x30fb89[_0x5c4123(0x1e8)]()['map_']),_0x252dab=_0x256ce2&&bsSetupHelper[_0x5c4123(0x17d)]()?_0x5f2d65['jdhrF']:global[_0x5c4123(0x18b)],_0x80c2b8={'product':exports['getObservabilityLinkedProductName'](_0x45923a,_0x252dab),'capabilities':_0x45923a,'platform':_0x52fa74['getPlatform'](),'platform_version':bsSetupHelper[_0x5c4123(0x1ac)](_0x5f2d65[_0x5c4123(0x19a)](_0x252dab,_0x5f2d65[_0x5c4123(0x214)])),'browser':_0x52fa74[_0x5c4123(0xfb)](),'browser_version':_0x52fa74[_0x5c4123(0x19e)](),'session_id':_0x30fb89[_0x5c4123(0x102)]()};_0x252dab?_0x483920[_0x252dab]=_0x80c2b8:_0x483920[_0x5f2d65[_0x5c4123(0x14a)]]=_0x80c2b8;if(_0x3de581)return _0x483920;process['emit'](_0x5c4123(0x218)+process[_0x5c4123(0x1e0)],{'timestamp':new Date()['toISOString'](),'level':null,'message':null,'kind':_0x5f2d65[_0x5c4123(0x197)],'http_response':_0x483920,'uuid':_0x33ac6e});}catch(_0xc78093){exports[_0x5c4123(0xf2)](_0x5c4123(0x100)+_0xc78093);}},exports[a165_0xc50d98(0x186)]=_0x266f20=>{const _0x32cdbc=a165_0xc50d98;return _0x266f20&&_0x266f20['toString']()[_0x32cdbc(0x203)](/browserstack internal helper hook/);};function a165_0x4da2(){const _0x525c99=['NEWMAN','logs','XgzaB','wPDmS','CRCTW','RuWZj','stringify','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','Authorization','test_run_uuid','URL','PRINT_BUILDLINK','relative','maxSockets','https','yEoyX','isBrowserstackInfra','xerPg','BROWSERSTACK_TEST_OBSERVABILITY','\x20]\x20','][\x20','prefixTestPath','message','yboac','path','isInternalHook','ATS_HUB_URL_REGEX','windows-release','hYGwZ','deterministicTestUUID','__cloud_provider___','UTAtW','jasmine','JnFJY','UOgrL','xxkIf','nodeRequest','test','Test\x20timeout\x20of','qywZc','BROWSERSTACK_CONFIG_FILE_PATH','trace','zcMel','LTjhp','1tTzoCG','XeEOH','TgsdG','MMQqt','DOABB','getBrowserVersion','TimeoutError','2624250PfDMUX','DxKbc','klEsc','darwin','formData','jiBph','turboscale','./constants','oPSqu','CUCUMBER','fromEntries','undefined','getPlatformVersion','bLsMI','Failed\x20to\x20determine\x20product\x20linked\x20to\x20','TESTCAFE','rjNRT','ETJef','O11yHashedID','win32','100359pcabQO','oCxBu','browserstack.com/testhub/test-run','headers','A11yEnabled','NWCNZ','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','bstack:options','toString','getPackageVersion','../../../src/bin/utils/constants','qwgSF','bzViC','host','isArray','git-repo-info','getUserCredentials','error','url','O11Y_URL','jzDhm','getDefaultHeaders','OasDs','LogCreated','@playwright/test','gsCQo','AhDHW','TEJhI','WTYex','application/json','join','xfleq','KslcD','winstonLogger','sOXXt','UVYIf','Bearer\x20','uJitJ','RzKRX','err','iZpwv','app_automate','../helper','zenEc','pid','emit','BROWSERSTACK_TESTHUB_JWT','\x20]\x20Build\x20Not\x20Found\x20%s','hzdRB','app-automate','TEST_PLATFORM','OS\x20X','getCapabilities','map','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','mocha','wNjkl','../../bin/v2/browserstackCLI','cwd','asyncAwaitNodeReq','ROerO','BROWSERSTACK_TESTHUB_UUID','WQOUp','BROWSERSTACK_PRODUCT_MAP','cDkIU','AssertionError','yYQtU','getBrowserStackConfig','jasmine-core','bs:addLog:','testcafe','EvhEN','codeceptjs','BROWSERSTACK_TESTHUB_UUID_SEED','detox','Wrbrt','edhSh','getFrameworkVersion','QzYpF','match','HMjJK','info','8112CAPzoW','backtrace','TEST_REPORTING_BUILD_TAG','naTyN','split','null','awk\x20\x27/SOFTWARE\x20LICENSE\x20AGREEMENT\x20FOR\x20macOS/\x27\x20\x27/System/Library/CoreServices/Setup\x20Assistant.app/Contents/Resources/en.lproj/OSXSoftwareLicense.rtf\x27\x20|\x20awk\x20-F\x20\x27macOS\x20\x27\x20\x27{print\x20$NF}\x27\x20|\x20awk\x20\x27{print\x20substr($0,\x200,\x20length($0)-1)}\x27','turboScaleGridDetails','unknown_grid','getAccessKey','PathHelper','Visit\x20','capabilities','oNUaV','jdhrF','http','PVljz','child_process','bs:addPlatformDetails:','BROWSERSTACK_TEST_REPORTING_DEBUG','true','stack','Error\x20in\x20importing\x20windows-release\x20','buildTag','BS_TESTOPS_BUILD_HASHED_ID','object','../../bin/utils/logPatcher','eDYEx','bySUF','forEach','4191HMrYuf','trim','platform','PUPPETEER','DETOX','browserstack','754188QRsStv','shouldReRunObservabilityTests','length','BLcBH','git-last-commit','includes','debug','wwbCV','annotate','platformName','printBuildLink','getPlatformDetails','env','1428572ZKyhhy','getBuildTags','getBrowserName','printA11yBuildLink','../../bin/utils/constants','patchConsoleLogger','SJkkj','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20','toJSON','gLkvN','config','default','Agent','../../helpers/request-spy','xwbwU','sleep','local_grid','vhQBM','app','Uploading\x20trace\x20logs\x20to:\x20','hNfNi','toISOString','timeout','buildLogger','\x20test\x20instance\x20:\x20','extractValuesWithRegexKeyMatch','/builds/','lodash','TEST_OBSERVABILITY_BUILD_TAG','rootDir','push','measureWrapper','json','XvrgD','XnRSC','AriZM','^CUSTOM_TAG_\x5cd+$','bAtSj','SKSzY','PLAYWRIGHT','MOCHA','\x20:\x20','9WeUmox','mFMHN','maxTotalSockets','agent','712658WPJpGo','dmXlH','BROWSERSTACK_RERUN_TESTS','customTag','5iiRuTL','body','WhKxN','keys','browserstack_executor:\x20','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','newman','1630352nEoaKS','iwtif','KDvYm','modifyReqForTraceUpload','@cucumber/cucumber','hostname','\x20to\x20view\x20accessibility\x20report.\x0a','expanded','PihPH','deterministicTestUUID\x20called\x20without\x20a\x20valid\x20BROWSERSTACK_TESTHUB_UUID_SEED\x20(got:\x20','util','HTTP','bguqo','nlLlB','getFailureType','TEST_REPORTING_ANALYTICS','CUSTOM_TAG','X-BSTACK-TESTOPS','format','rtuuY','getos','buRAI','catch','XWmvr','ezBfE','getSession','keepAlive','isUndefined','puppeteer','Windows','108oClxBm','EmsnL','iAdOO','YVjCu','removeAnsiColors','EKINx','qTyVf','LWiHH','prefix','WGvWS','IKbtb',');\x20falling\x20back\x20to\x20a\x20random\x20uuid.\x20Callers\x20should\x20gate\x20on\x20the\x20seed\x20before\x20calling\x20this.','parse','replace','data','swrxa','BROWSERSTACK_ACCESSIBILITY','../logger','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','jHrVm','linux','0|4|3|1|5|2','Linux','https://accessibility.browserstack.com/automated-tests/projects/p/builds/b/1?thBuildId=','release','rHqpH','ZYKFz','getObservabilityLinkedProductName'];a165_0x4da2=function(){return _0x525c99;};return a165_0x4da2();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a166_0x26bc(){var _0x846b2=['SPLIT_TESTS_ENDPOINT','ORCHESTRATION_API_URL','4277920QNySno','4yFrGhL','874204ykuMFL','5NNlfiA','6180894XcRFZw','17810500dXdvXL','27YaXUup','7VbTowR','testorchestration/api/v1/split-tests','exports','testorchestration/api/v1/failed-tests','https://collector-observability.browserstack.com','13276809QJzlQs','40911959KiFJsv','123764yxTADV'];a166_0x26bc=function(){return _0x846b2;};return a166_0x26bc();}var a166_0x226648=a166_0x3637;(function(_0x187500,_0x207684){var _0x109e7d=a166_0x3637,_0x129fa9=_0x187500();while(!![]){try{var _0x2ea9d0=parseInt(_0x109e7d(0x16a))/0x1*(parseInt(_0x109e7d(0x16b))/0x2)+-parseInt(_0x109e7d(0x16f))/0x3*(-parseInt(_0x109e7d(0x166))/0x4)+parseInt(_0x109e7d(0x16c))/0x5*(-parseInt(_0x109e7d(0x16d))/0x6)+-parseInt(_0x109e7d(0x170))/0x7*(parseInt(_0x109e7d(0x169))/0x8)+-parseInt(_0x109e7d(0x164))/0x9+-parseInt(_0x109e7d(0x16e))/0xa+parseInt(_0x109e7d(0x165))/0xb;if(_0x2ea9d0===_0x207684)break;else _0x129fa9['push'](_0x129fa9['shift']());}catch(_0x206614){_0x129fa9['push'](_0x129fa9['shift']());}}}(a166_0x26bc,0xe1d4e));var a166_0x2c3802={};function a166_0x3637(_0x3acaf0,_0x104712){var _0x26bc73=a166_0x26bc();return a166_0x3637=function(_0x36374f,_0x2fee90){_0x36374f=_0x36374f-0x162;var _0x224ac1=_0x26bc73[_0x36374f];return _0x224ac1;},a166_0x3637(_0x3acaf0,_0x104712);}a166_0x2c3802[a166_0x226648(0x168)]=a166_0x226648(0x163),a166_0x2c3802['FAILED_TESTS_ENDPOINT']=a166_0x226648(0x162),a166_0x2c3802[a166_0x226648(0x167)]=a166_0x226648(0x171),module[a166_0x226648(0x172)]=a166_0x2c3802;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a167_0x9e2e27=a167_0xbf5f;function a167_0xbf5f(_0x3aa032,_0x2c7ad0){const _0x50552e=a167_0x5055();return a167_0xbf5f=function(_0xbf5ff,_0x469b99){_0xbf5ff=_0xbf5ff-0x1ac;let _0x472cfc=_0x50552e[_0xbf5ff];return _0x472cfc;},a167_0xbf5f(_0x3aa032,_0x2c7ad0);}(function(_0x305d58,_0x1b180d){const _0x2278f7=a167_0xbf5f,_0x5a3643=_0x305d58();while(!![]){try{const _0x529ca2=-parseInt(_0x2278f7(0x1b2))/0x1+parseInt(_0x2278f7(0x1d3))/0x2+parseInt(_0x2278f7(0x1ad))/0x3+parseInt(_0x2278f7(0x1dd))/0x4+parseInt(_0x2278f7(0x1fb))/0x5*(parseInt(_0x2278f7(0x1bd))/0x6)+-parseInt(_0x2278f7(0x1b5))/0x7+-parseInt(_0x2278f7(0x1c2))/0x8*(parseInt(_0x2278f7(0x1bf))/0x9);if(_0x529ca2===_0x1b180d)break;else _0x5a3643['push'](_0x5a3643['shift']());}catch(_0x5736a7){_0x5a3643['push'](_0x5a3643['shift']());}}}(a167_0x5055,0x90ee9));const fs=require('fs'),path=require('path'),FileHelper=require(a167_0x9e2e27(0x1d2)),RequestUtils=require('./requestUtils'),logger=require(a167_0x9e2e27(0x1c5))['winstonLogger'],POLLING_INTERVAL=0x2710,TAG=a167_0x9e2e27(0x219);function a167_0x5055(){const _0x5b0629=[']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.','2216516sQhEqt','WsXGL','writeState','buildName','wzONG','_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.','failedTests','\x0aStack:\x20','zaHKa','failFast.active','isCIMode','totalTests','_pollFailedTests','_CI]\x20Polling\x20started\x20with\x20interval:\x20','_CI]\x20Error\x20during\x20polling\x20logic:\x20','cleanup','from','TIyWq','dpkrC','has',']\x20Polling\x20stopped.','failFastConfig','BSLJF','env','_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20','join','RWnXD','catch','nNfcQ','failFastActive','5SmZcIc','LvjGU','EIGmf','_Local]\x20State\x20initialized\x20from\x20file.','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.','bHepK','_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20','hGQdf','toISOString','_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20','uniqueFailedTests','zLXIo','_initializeStateFromFile','GntaM','mKAYb','JICli',',\x20threshold:\x20','KJekP','error','startPolling','aUMUA','UAQRk','_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.',']\x20Critical\x20error\x20during\x20async\x20initialization:\x20','size','FNdGN','Xuaqu','lastAPIFailedCount','failed','_fetchAPIFailedCount','FailFastManager','YUceF','sbSlI','state','failFastState.json','\x20(was\x20','\x20to\x20API:\x20','getFailedTestsCount','_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.','length','VjBjX','lockFilePath','ylcrR','readState','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20','_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20','_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20','McfaY','WFnNx','XpQvo','stateFilePath','failureThresholdCount','_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20','2584716nuZGvA','exports','reportedFailuresToAPI','message','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','50109hOnMoT','_sendFailedTestsToAPI','MJhYv','5636155iBImHK','DTXoz','_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.','Ylvbs','debug','BROWSERSTACK_BUILD_RUN_IDENTIFIER','_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20',',\x20CI\x20Mode:\x20','7065558vByHSa','stack','16791021OYALpH','pollingInterval','oguOT','8OllcYf','_getDefaultState','_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','../logger','lQDtJ','_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20','warn','existsSync','failFastActiveMarkerPath','projectName','_CI]\x20API\x20failed\x20count\x20updated:\x20','newState','add','_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','VrbAf','buildRunIdentifier','./fileHelper','1442580sYghQk','iIAII','BROWSERSTACK_NODE_INDEX','_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20','RQyqt','fileHelper','BKhYf','ropSD','stopPolling'];a167_0x5055=function(){return _0x5b0629;};return a167_0x5055();}class FailFastManager{constructor(_0x2d8b08,_0x3dab43,_0x219626){const _0x4ff41c=a167_0x9e2e27,_0x5389be={};_0x5389be['bHepK']=function(_0x156a92,_0x1f2a63){return _0x156a92+_0x1f2a63;},_0x5389be[_0x4ff41c(0x225)]=_0x4ff41c(0x1e4),_0x5389be['oduqH']=function(_0x499341,_0x5e0366){return _0x499341||_0x5e0366;},_0x5389be[_0x4ff41c(0x21b)]=_0x4ff41c(0x21d),_0x5389be[_0x4ff41c(0x22a)]='failFastState.lock',_0x5389be[_0x4ff41c(0x214)]=_0x4ff41c(0x1e6);const _0x1f3bbd=_0x5389be;this[_0x4ff41c(0x1f2)]=_0x1f3bbd['oduqH'](_0x2d8b08,{}),this[_0x4ff41c(0x1e0)]=_0x3dab43,this[_0x4ff41c(0x1cb)]=_0x219626,this[_0x4ff41c(0x1e7)]=!!(process[_0x4ff41c(0x1f4)][_0x4ff41c(0x1ba)]&&process[_0x4ff41c(0x1f4)][_0x4ff41c(0x1d5)]&&process[_0x4ff41c(0x1f4)]['BROWSERSTACK_TOTAL_NODE_COUNT']);const _0x4ca63c=this['failFastConfig']['workingDir'];this[_0x4ff41c(0x22d)]=path[_0x4ff41c(0x1f6)](_0x4ca63c,_0x1f3bbd[_0x4ff41c(0x21b)]),this[_0x4ff41c(0x224)]=path[_0x4ff41c(0x1f6)](_0x4ca63c,_0x1f3bbd[_0x4ff41c(0x22a)]),this[_0x4ff41c(0x1ca)]=path['join'](_0x4ca63c,_0x1f3bbd[_0x4ff41c(0x214)]),this[_0x4ff41c(0x1d8)]=new FileHelper(this['failFastConfig'],this[_0x4ff41c(0x22d)],this['lockFilePath'],this[_0x4ff41c(0x1c3)]()),this[_0x4ff41c(0x21c)]=this[_0x4ff41c(0x1c3)](),this[_0x4ff41c(0x1c0)]=null,this[_0x4ff41c(0x1e7)]&&(this[_0x4ff41c(0x1af)]=new Set()),this[_0x4ff41c(0x207)]()[_0x4ff41c(0x1f8)](_0x4eed90=>{const _0xe1475b=_0x4ff41c;logger[_0xe1475b(0x20d)]('['+TAG+_0xe1475b(0x212)+_0x4eed90[_0xe1475b(0x1b0)]+(_0x4eed90['stack']?_0x1f3bbd[_0xe1475b(0x200)](_0x1f3bbd[_0xe1475b(0x225)],_0x4eed90[_0xe1475b(0x1be)]):'')),this[_0xe1475b(0x21c)]=this[_0xe1475b(0x1c3)]();}),this['isCIMode']&&this[_0x4ff41c(0x20e)](),logger[_0x4ff41c(0x1b9)]('['+TAG+']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20'+this[_0x4ff41c(0x1f2)][_0x4ff41c(0x22e)]+_0x4ff41c(0x1bc)+this['isCIMode']);}[a167_0x9e2e27(0x1c3)](){const _0x3ca645={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x3ca645;}async[a167_0x9e2e27(0x207)](){const _0x31e446=a167_0x9e2e27,_0xdb3e92={};_0xdb3e92[_0x31e446(0x1f7)]=function(_0x21273c,_0x59ae3b){return _0x21273c+_0x59ae3b;},_0xdb3e92[_0x31e446(0x1fc)]='\x0aStack:\x20',_0xdb3e92['YUceF']=function(_0x27d568,_0x276790){return _0x27d568+_0x276790;};const _0x2e3ac2=_0xdb3e92;if(this[_0x31e446(0x1e7)])try{fs[_0x31e446(0x1c9)](this[_0x31e446(0x1ca)])&&(this[_0x31e446(0x21c)][_0x31e446(0x1fa)]=!![],logger[_0x31e446(0x1b9)]('['+TAG+'_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.'));}catch(_0x516eba){logger[_0x31e446(0x20d)]('['+TAG+_0x31e446(0x1b1)+_0x516eba[_0x31e446(0x1b0)]+(_0x516eba[_0x31e446(0x1be)]?_0x2e3ac2[_0x31e446(0x1f7)](_0x2e3ac2[_0x31e446(0x1fc)],_0x516eba[_0x31e446(0x1be)]):''));}else try{const _0x24f395=await this[_0x31e446(0x1d8)]['readState']();if(_0x24f395)this[_0x31e446(0x21c)]={...this['_getDefaultState'](),..._0x24f395,'uniqueFailedTests':new Set(_0x24f395[_0x31e446(0x205)]||[])},logger['debug']('['+TAG+_0x31e446(0x1fe));else{logger[_0x31e446(0x1b9)]('['+TAG+_0x31e446(0x211));const _0x207231=this['_getDefaultState'](),_0x4b181f={..._0x207231,'uniqueFailedTests':Array[_0x31e446(0x1ed)](_0x207231[_0x31e446(0x205)])};await this['fileHelper'][_0x31e446(0x1df)](_0x4b181f),this['state']=_0x207231;}}catch(_0x5ee8a4){logger[_0x31e446(0x1b9)]('['+TAG+_0x31e446(0x229)+_0x5ee8a4[_0x31e446(0x1b0)]+(_0x5ee8a4[_0x31e446(0x1be)]?_0x2e3ac2[_0x31e446(0x21a)](_0x2e3ac2[_0x31e446(0x1fc)],_0x5ee8a4[_0x31e446(0x1be)]):'')),this[_0x31e446(0x21c)]=this[_0x31e446(0x1c3)]();}}async['onTestDone'](_0xc349b,_0x119f76){const _0x25f2a3=a167_0x9e2e27,_0x39358e={};_0x39358e['BKhYf']=function(_0x55c3cb,_0xb43c93){return _0x55c3cb>_0xb43c93;},_0x39358e[_0x25f2a3(0x1b4)]=_0x25f2a3(0x217),_0x39358e[_0x25f2a3(0x1f9)]='passed',_0x39358e['BSLJF']=function(_0x3ccd06,_0x551e81){return _0x3ccd06+_0x551e81;},_0x39358e['VrbAf']=_0x25f2a3(0x1e4),_0x39358e['iIAII']=function(_0x989d43,_0x2d1602){return _0x989d43||_0x2d1602;},_0x39358e['wzONG']=function(_0x1b939d,_0x3bf36a){return _0x1b939d+_0x3bf36a;};const _0x22740e=_0x39358e;if(this[_0x25f2a3(0x1e7)])this['state'][_0x25f2a3(0x1e8)]+=0x1,_0x119f76&&_0x22740e['BKhYf'](_0x119f76[_0x25f2a3(0x222)],0x0)&&(!this['reportedFailuresToAPI'][_0x25f2a3(0x1f0)](_0xc349b)&&(await this[_0x25f2a3(0x1b3)](_0xc349b),this['reportedFailuresToAPI'][_0x25f2a3(0x1ce)](_0xc349b)));else try{const _0x55ab15={'fullName':_0xc349b,'status':_0x119f76&&_0x22740e[_0x25f2a3(0x1d9)](_0x119f76[_0x25f2a3(0x222)],0x0)?_0x22740e[_0x25f2a3(0x1b4)]:_0x22740e[_0x25f2a3(0x1f9)]},_0x32fff7=await this[_0x25f2a3(0x1d8)]['recordTestResult'](_0x55ab15);this[_0x25f2a3(0x21c)]={...this[_0x25f2a3(0x1c3)](),..._0x32fff7['newState'],'uniqueFailedTests':new Set(_0x32fff7[_0x25f2a3(0x1cd)][_0x25f2a3(0x205)]||[])};}catch(_0x2be10e){logger[_0x25f2a3(0x20d)]('['+TAG+_0x25f2a3(0x204)+_0x2be10e[_0x25f2a3(0x1b0)]+(_0x2be10e[_0x25f2a3(0x1be)]?_0x22740e[_0x25f2a3(0x1f3)](_0x22740e[_0x25f2a3(0x1d0)],_0x2be10e[_0x25f2a3(0x1be)]):''));try{const _0xcc299=await this[_0x25f2a3(0x1d8)]['readState']();this[_0x25f2a3(0x21c)]={...this[_0x25f2a3(0x1c3)](),..._0x22740e[_0x25f2a3(0x1d4)](_0xcc299,{}),'uniqueFailedTests':new Set(_0xcc299?_0xcc299['uniqueFailedTests']||[]:[])},logger[_0x25f2a3(0x1b9)]('['+TAG+'_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.');}catch(_0x4dd90b){logger[_0x25f2a3(0x20d)]('['+TAG+_0x25f2a3(0x1bb)+_0x4dd90b[_0x25f2a3(0x1b0)]+(_0x4dd90b[_0x25f2a3(0x1be)]?_0x22740e[_0x25f2a3(0x1e1)](_0x22740e[_0x25f2a3(0x1d0)],_0x4dd90b[_0x25f2a3(0x1be)]):'')),this['state']=this['_getDefaultState']();}}}async[a167_0x9e2e27(0x1b3)](_0x5e59a2){const _0x1e6d2c=a167_0x9e2e27,_0x2148ad={};_0x2148ad[_0x1e6d2c(0x210)]=function(_0xaee82c,_0x1dee57){return _0xaee82c+_0x1dee57;},_0x2148ad[_0x1e6d2c(0x22b)]=_0x1e6d2c(0x1e4);const _0x3d36c4=_0x2148ad;if(!this['isCIMode']||!_0x5e59a2)return;try{logger[_0x1e6d2c(0x1b9)]('['+TAG+'_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20'+_0x5e59a2);const _0x553d84={};_0x553d84['buildName']=this['buildName'],_0x553d84[_0x1e6d2c(0x1cb)]=this[_0x1e6d2c(0x1cb)],_0x553d84[_0x1e6d2c(0x1e3)]=[_0x5e59a2],_0x553d84[_0x1e6d2c(0x1d1)]=process[_0x1e6d2c(0x1f4)][_0x1e6d2c(0x1ba)],await RequestUtils['putFailedTests'](_0x553d84);}catch(_0xa1b64e){logger[_0x1e6d2c(0x20d)]('['+TAG+'_CI]\x20Error\x20sending\x20failed\x20test\x20'+_0x5e59a2+_0x1e6d2c(0x21f)+_0xa1b64e[_0x1e6d2c(0x1b0)]+(_0xa1b64e[_0x1e6d2c(0x1be)]?_0x3d36c4[_0x1e6d2c(0x210)](_0x3d36c4[_0x1e6d2c(0x22b)],_0xa1b64e[_0x1e6d2c(0x1be)]):''));}}async[a167_0x9e2e27(0x218)](){const _0x563bc8=a167_0x9e2e27,_0xb76127={};_0xb76127['mKAYb']=function(_0x17a1f1,_0x21aad6){return _0x17a1f1===_0x21aad6;},_0xb76127[_0x563bc8(0x1de)]='number',_0xb76127[_0x563bc8(0x1fd)]=function(_0x58d82c,_0x55493b){return _0x58d82c+_0x55493b;},_0xb76127[_0x563bc8(0x1c6)]=_0x563bc8(0x1e4),_0xb76127[_0x563bc8(0x20a)]=function(_0x1dcc9c,_0x76c5cb){return _0x1dcc9c!==_0x76c5cb;};const _0x5c997b=_0xb76127;if(!this[_0x563bc8(0x1e7)])return 0x0;try{const _0x3c2db0={};_0x3c2db0[_0x563bc8(0x1e0)]=this[_0x563bc8(0x1e0)],_0x3c2db0[_0x563bc8(0x1cb)]=this[_0x563bc8(0x1cb)],_0x3c2db0[_0x563bc8(0x1d1)]=process['env'][_0x563bc8(0x1ba)];const _0xc352ce=await RequestUtils[_0x563bc8(0x220)](_0x3c2db0);return logger[_0x563bc8(0x1b9)]('['+TAG+_0x563bc8(0x227)+_0xc352ce),_0x5c997b[_0x563bc8(0x209)](typeof _0xc352ce,_0x5c997b[_0x563bc8(0x1de)])?_0xc352ce:0x0;}catch(_0x59c02a){return logger['error']('['+TAG+_0x563bc8(0x1d6)+_0x59c02a[_0x563bc8(0x1b0)]+(_0x59c02a['stack']?_0x5c997b['EIGmf'](_0x5c997b[_0x563bc8(0x1c6)],_0x59c02a[_0x563bc8(0x1be)]):'')),_0x5c997b[_0x563bc8(0x20a)](this[_0x563bc8(0x21c)][_0x563bc8(0x216)],undefined)?this[_0x563bc8(0x21c)][_0x563bc8(0x216)]:0x0;}}async[a167_0x9e2e27(0x1e9)](){const _0x24a543=a167_0x9e2e27,_0x1a4c30={};_0x1a4c30[_0x24a543(0x22c)]=function(_0x38631b,_0x2fb360){return _0x38631b!==_0x2fb360;},_0x1a4c30[_0x24a543(0x1d7)]=function(_0x226322,_0x240ae9){return _0x226322+_0x240ae9;},_0x1a4c30[_0x24a543(0x20c)]=_0x24a543(0x1e4);const _0x371fde=_0x1a4c30;if(!this[_0x24a543(0x1e7)])return;try{const _0x20411c=await this[_0x24a543(0x218)]();_0x371fde[_0x24a543(0x22c)](_0x20411c,this[_0x24a543(0x21c)][_0x24a543(0x216)])&&(logger[_0x24a543(0x1b9)]('['+TAG+_0x24a543(0x1cc)+_0x20411c+_0x24a543(0x21e)+this[_0x24a543(0x21c)][_0x24a543(0x216)]+')'),this[_0x24a543(0x21c)]['lastAPIFailedCount']=_0x20411c);}catch(_0xef17a){logger[_0x24a543(0x20d)]('['+TAG+_0x24a543(0x1eb)+_0xef17a[_0x24a543(0x1b0)]+(_0xef17a[_0x24a543(0x1be)]?_0x371fde['RQyqt'](_0x371fde[_0x24a543(0x20c)],_0xef17a[_0x24a543(0x1be)]):''));}}async[a167_0x9e2e27(0x20e)](){const _0x25e9d9=a167_0x9e2e27,_0xf5dd6b={'zaHKa':function(_0x5b1e43,_0x5e3599,_0x205620){return _0x5b1e43(_0x5e3599,_0x205620);}};this[_0x25e9d9(0x1c0)]&&this['stopPolling'](),this[_0x25e9d9(0x1e7)]&&(await this[_0x25e9d9(0x1e9)](),this[_0x25e9d9(0x1c0)]=_0xf5dd6b[_0x25e9d9(0x1e5)](setInterval,async()=>{const _0x1234f4=_0x25e9d9;await this[_0x1234f4(0x1e9)]();},POLLING_INTERVAL),logger[_0x25e9d9(0x1b9)]('['+TAG+_0x25e9d9(0x1ea)+POLLING_INTERVAL+'ms.'));}[a167_0x9e2e27(0x1db)](){const _0x444063=a167_0x9e2e27,_0x4df556={'AqrfJ':function(_0x381f49,_0x5ec3cf){return _0x381f49(_0x5ec3cf);}};this[_0x444063(0x1c0)]&&(_0x4df556['AqrfJ'](clearInterval,this['pollingInterval']),this[_0x444063(0x1c0)]=null,logger[_0x444063(0x1b9)]('['+TAG+_0x444063(0x1f1)));}async['shouldFailFast'](){const _0x32036e=a167_0x9e2e27,_0x147141={};_0x147141[_0x32036e(0x223)]=function(_0x422c54,_0x1e40eb){return _0x422c54===_0x1e40eb;},_0x147141[_0x32036e(0x202)]=function(_0x22e4d4,_0x443d08){return _0x22e4d4<=_0x443d08;},_0x147141[_0x32036e(0x215)]=function(_0x5a8963,_0x139307){return _0x5a8963+_0x139307;},_0x147141[_0x32036e(0x1da)]=_0x32036e(0x1e4),_0x147141['TIyWq']=function(_0x17ba16,_0x527ebd){return _0x17ba16!==_0x527ebd;},_0x147141[_0x32036e(0x20f)]=function(_0x38f882,_0x686ffa){return _0x38f882>=_0x686ffa;},_0x147141[_0x32036e(0x1c1)]=function(_0x1375db,_0x2e1385){return _0x1375db+_0x2e1385;},_0x147141['DTXoz']=function(_0x53ca39,_0x3cf472){return _0x53ca39+_0x3cf472;},_0x147141['dpkrC']=function(_0x443fdb,_0x3eeef9){return _0x443fdb>=_0x3eeef9;},_0x147141[_0x32036e(0x208)]=function(_0x5b2243,_0x54f767){return _0x5b2243+_0x54f767;};const _0x4c2c78=_0x147141,{failureThresholdCount:_0x117648}=this[_0x32036e(0x1f2)];if(_0x4c2c78[_0x32036e(0x223)](_0x117648,null)||_0x4c2c78['VjBjX'](_0x117648,undefined)||_0x4c2c78[_0x32036e(0x202)](_0x117648,0x0))return logger['debug']('['+TAG+_0x32036e(0x1dc)),![];if(this[_0x32036e(0x1e7)]){try{if(fs['existsSync'](this[_0x32036e(0x1ca)]))return logger[_0x32036e(0x1b9)]('['+TAG+'_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.'),!this[_0x32036e(0x21c)][_0x32036e(0x1fa)]&&(this[_0x32036e(0x21c)][_0x32036e(0x1fa)]=!![]),this[_0x32036e(0x1db)](),!![];}catch(_0x245504){logger['error']('['+TAG+_0x32036e(0x1b1)+_0x245504[_0x32036e(0x1b0)]+(_0x245504['stack']?_0x4c2c78[_0x32036e(0x215)](_0x4c2c78[_0x32036e(0x1da)],_0x245504[_0x32036e(0x1be)]):''));}const _0x2848fa=_0x4c2c78[_0x32036e(0x1ee)](this['state'][_0x32036e(0x216)],undefined)?this[_0x32036e(0x21c)][_0x32036e(0x216)]:0x0;if(_0x4c2c78[_0x32036e(0x20f)](_0x2848fa,_0x117648)){logger['info']('['+TAG+_0x32036e(0x1cf)+_0x2848fa+',\x20threshold:\x20'+_0x117648+'.');try{fs['writeFileSync'](this['failFastActiveMarkerPath'],new Date()[_0x32036e(0x203)]()),logger[_0x32036e(0x1b9)]('['+TAG+_0x32036e(0x201)+this['failFastActiveMarkerPath']),this[_0x32036e(0x21c)][_0x32036e(0x1fa)]=!![];}catch(_0x418ff9){logger['error']('['+TAG+_0x32036e(0x1ac)+_0x418ff9['message']+(_0x418ff9[_0x32036e(0x1be)]?_0x4c2c78['oguOT'](_0x4c2c78[_0x32036e(0x1da)],_0x418ff9[_0x32036e(0x1be)]):''));}return this[_0x32036e(0x1db)](),!![];}}else{let _0x585b7d;try{_0x585b7d=await this['fileHelper'][_0x32036e(0x226)]();if(!_0x585b7d)return logger[_0x32036e(0x1c8)]('['+TAG+_0x32036e(0x1e2)),![];}catch(_0x476beb){return logger['error']('['+TAG+_0x32036e(0x1f5)+_0x476beb[_0x32036e(0x1b0)]+(_0x476beb[_0x32036e(0x1be)]?_0x4c2c78[_0x32036e(0x1b6)](_0x4c2c78[_0x32036e(0x1da)],_0x476beb['stack']):'')),![];}this[_0x32036e(0x21c)]={...this['_getDefaultState'](),..._0x585b7d,'uniqueFailedTests':new Set(_0x585b7d['uniqueFailedTests']||[])};if(this[_0x32036e(0x21c)][_0x32036e(0x1fa)])return logger[_0x32036e(0x1b9)]('['+TAG+_0x32036e(0x221)),!![];const _0x3f9097=this['state'][_0x32036e(0x205)],_0x429735=_0x3f9097[_0x32036e(0x213)];if(_0x4c2c78[_0x32036e(0x1ef)](_0x429735,_0x117648)){try{logger['info']('['+TAG+_0x32036e(0x1c4)+_0x429735+_0x32036e(0x20b)+_0x117648+'.'),this[_0x32036e(0x21c)][_0x32036e(0x1fa)]=!![];}catch(_0x3e98a9){logger[_0x32036e(0x20d)]('['+TAG+_0x32036e(0x1c7)+_0x3e98a9['message']+(_0x3e98a9[_0x32036e(0x1be)]?_0x4c2c78[_0x32036e(0x208)](_0x4c2c78['ropSD'],_0x3e98a9['stack']):''));}return!![];}}return![];}async[a167_0x9e2e27(0x1ec)](){const _0x237082=a167_0x9e2e27,_0x3fee98={};_0x3fee98[_0x237082(0x206)]=function(_0x47bc87,_0x4cd418){return _0x47bc87+_0x4cd418;},_0x3fee98['Ylvbs']=_0x237082(0x1e4);const _0x292e1a=_0x3fee98;this[_0x237082(0x1db)]();if(this[_0x237082(0x1e7)])logger[_0x237082(0x1b9)]('['+TAG+_0x237082(0x1b7));else try{const _0x2f6c80={...this[_0x237082(0x21c)],'uniqueFailedTests':Array[_0x237082(0x1ed)](this['state'][_0x237082(0x205)]||new Set())};await this[_0x237082(0x1d8)][_0x237082(0x1df)](_0x2f6c80),logger[_0x237082(0x1b9)]('['+TAG+_0x237082(0x1ff));}catch(_0x5bec37){logger['error']('['+TAG+_0x237082(0x228)+_0x5bec37['message']+(_0x5bec37[_0x237082(0x1be)]?_0x292e1a[_0x237082(0x206)](_0x292e1a[_0x237082(0x1b8)],_0x5bec37[_0x237082(0x1be)]):''));}}}module[a167_0x9e2e27(0x1ae)]=FailFastManager;
|
|
1
|
+
const a167_0x3c90d8=a167_0x1ac1;(function(_0x119f69,_0x2efa57){const _0x811ace=a167_0x1ac1,_0x2e6213=_0x119f69();while(!![]){try{const _0x1ebffc=parseInt(_0x811ace(0x1d4))/0x1*(-parseInt(_0x811ace(0x1cd))/0x2)+parseInt(_0x811ace(0x213))/0x3+parseInt(_0x811ace(0x21b))/0x4*(parseInt(_0x811ace(0x1f3))/0x5)+parseInt(_0x811ace(0x1e7))/0x6*(-parseInt(_0x811ace(0x21a))/0x7)+-parseInt(_0x811ace(0x205))/0x8+parseInt(_0x811ace(0x1c2))/0x9*(parseInt(_0x811ace(0x1c7))/0xa)+-parseInt(_0x811ace(0x1bd))/0xb;if(_0x1ebffc===_0x2efa57)break;else _0x2e6213['push'](_0x2e6213['shift']());}catch(_0x22fce0){_0x2e6213['push'](_0x2e6213['shift']());}}}(a167_0x3c45,0x974f8));function a167_0x1ac1(_0x36c578,_0x51b763){const _0x3c4516=a167_0x3c45();return a167_0x1ac1=function(_0x1ac16c,_0xa1e2fc){_0x1ac16c=_0x1ac16c-0x1ad;let _0x48e6d7=_0x3c4516[_0x1ac16c];return _0x48e6d7;},a167_0x1ac1(_0x36c578,_0x51b763);}function a167_0x3c45(){const _0x5325aa=['xRgHf','add','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.','number',']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.','buildName','catch','ElpEA','3570060scxGOI','bBHbr','failFastState.lock','LGVlw','eYDDd','QnEhp','state','2312779wbeAYr','67988DjxmKy','_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.','\x0aStack:\x20','error','pZpKG','totalTests','_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20','_getDefaultState','\x20(was\x20','lastAPIFailedCount','passed','fileHelper','BMNmK','join',',\x20threshold:\x20','Taawv','KjAEU','uaumg','_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20','failFast.active','zHfPo','stack','fpfzi','env','_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','readState','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','_CI]\x20Polling\x20started\x20with\x20interval:\x20','vhYuz','from','YxwLG','isCIMode','oFtay','../logger','LgWYJ','stateFilePath','onTestDone','QOrhb','length','pollingInterval','existsSync','putFailedTests','shouldFailFast','_CI]\x20Error\x20during\x20polling\x20logic:\x20','VuIvK','1358082ocoeNG','_CI]\x20API\x20failed\x20count\x20updated:\x20','info','jceNK','./fileHelper','9eGYfTT','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20','_pollFailedTests','fGWnA','VAOmu','590710URlSit','failedTests','jewMQ','_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.','_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20','failFastState.json','24kgqtmP','sjsZv','PMRzQ','lDEzH','_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.',',\x20CI\x20Mode:\x20','newState','32033vlYPRx','cleanup','_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.','./requestUtils','SxzdQ','startPolling','_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20','_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20','SdZxo','BROWSERSTACK_BUILD_RUN_IDENTIFIER','warn','failFastConfig','_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20','failFastActive','_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20','failureThresholdCount','BdtyS',']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20','uniqueFailedTests','6KuujoA','stopPolling','failFastActiveMarkerPath','lockFilePath','debug','writeState','getFailedTestsCount','coucE','IqxqT','nvyqF','projectName','has','305FwFIOH','_sendFailedTestsToAPI','QhyJX','toISOString','NqztQ','elNcv','_initializeStateFromFile','reportedFailuresToAPI','buildRunIdentifier','exports','\x20to\x20API:\x20','_Local]\x20State\x20initialized\x20from\x20file.','_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20','_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20','_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','utJrc','winstonLogger','_CI]\x20Error\x20sending\x20failed\x20test\x20','6623080kzJQlN','FailFastManager','_fetchAPIFailedCount','RxSdM','message','HtrTA'];a167_0x3c45=function(){return _0x5325aa;};return a167_0x3c45();}const fs=require('fs'),path=require('path'),FileHelper=require(a167_0x3c90d8(0x1c1)),RequestUtils=require(a167_0x3c90d8(0x1d7)),logger=require(a167_0x3c90d8(0x1b1))[a167_0x3c90d8(0x203)],POLLING_INTERVAL=0x2710,TAG=a167_0x3c90d8(0x206);class FailFastManager{constructor(_0x391691,_0x4736f4,_0xaceac5){const _0x420e33=a167_0x3c90d8,_0x3bef75={};_0x3bef75[_0x420e33(0x1c5)]=function(_0x13d926,_0x27fa86){return _0x13d926+_0x27fa86;},_0x3bef75[_0x420e33(0x22c)]=_0x420e33(0x21d),_0x3bef75[_0x420e33(0x1b5)]=function(_0x5a19f4,_0x10d02e){return _0x5a19f4||_0x10d02e;},_0x3bef75[_0x420e33(0x1bc)]=_0x420e33(0x1cc),_0x3bef75[_0x420e33(0x1f5)]=_0x420e33(0x215),_0x3bef75[_0x420e33(0x1f7)]=_0x420e33(0x22e);const _0x2ae17a=_0x3bef75;this[_0x420e33(0x1df)]=_0x2ae17a[_0x420e33(0x1b5)](_0x391691,{}),this[_0x420e33(0x210)]=_0x4736f4,this['projectName']=_0xaceac5,this[_0x420e33(0x1af)]=!!(process[_0x420e33(0x232)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER']&&process[_0x420e33(0x232)]['BROWSERSTACK_NODE_INDEX']&&process[_0x420e33(0x232)]['BROWSERSTACK_TOTAL_NODE_COUNT']);const _0x59f1d7=this[_0x420e33(0x1df)]['workingDir'];this[_0x420e33(0x1b3)]=path[_0x420e33(0x228)](_0x59f1d7,_0x2ae17a[_0x420e33(0x1bc)]),this[_0x420e33(0x1ea)]=path[_0x420e33(0x228)](_0x59f1d7,_0x2ae17a['QhyJX']),this[_0x420e33(0x1e9)]=path[_0x420e33(0x228)](_0x59f1d7,_0x2ae17a['NqztQ']),this[_0x420e33(0x226)]=new FileHelper(this[_0x420e33(0x1df)],this['stateFilePath'],this[_0x420e33(0x1ea)],this[_0x420e33(0x222)]()),this['state']=this[_0x420e33(0x222)](),this[_0x420e33(0x1b7)]=null,this[_0x420e33(0x1af)]&&(this['reportedFailuresToAPI']=new Set()),this[_0x420e33(0x1f9)]()[_0x420e33(0x211)](_0x119747=>{const _0x204fd1=_0x420e33;logger[_0x204fd1(0x21e)]('['+TAG+']\x20Critical\x20error\x20during\x20async\x20initialization:\x20'+_0x119747[_0x204fd1(0x209)]+(_0x119747['stack']?_0x2ae17a['fGWnA'](_0x2ae17a['uaumg'],_0x119747[_0x204fd1(0x230)]):'')),this[_0x204fd1(0x219)]=this[_0x204fd1(0x222)]();}),this[_0x420e33(0x1af)]&&this[_0x420e33(0x1d9)](),logger[_0x420e33(0x1eb)]('['+TAG+_0x420e33(0x1e5)+this[_0x420e33(0x1df)][_0x420e33(0x1e3)]+_0x420e33(0x1d2)+this[_0x420e33(0x1af)]);}['_getDefaultState'](){const _0x1dd467={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x1dd467;}async[a167_0x3c90d8(0x1f9)](){const _0x5ccdeb=a167_0x3c90d8,_0x285d2f={};_0x285d2f[_0x5ccdeb(0x22b)]=function(_0x164ed7,_0x14b205){return _0x164ed7+_0x14b205;},_0x285d2f[_0x5ccdeb(0x1dc)]='\x0aStack:\x20';const _0x30ae98=_0x285d2f;if(this[_0x5ccdeb(0x1af)])try{fs['existsSync'](this['failFastActiveMarkerPath'])&&(this[_0x5ccdeb(0x219)][_0x5ccdeb(0x1e1)]=!![],logger[_0x5ccdeb(0x1eb)]('['+TAG+'_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.'));}catch(_0x2875a0){logger[_0x5ccdeb(0x21e)]('['+TAG+'_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20'+_0x2875a0[_0x5ccdeb(0x209)]+(_0x2875a0[_0x5ccdeb(0x230)]?_0x30ae98['KjAEU'](_0x30ae98[_0x5ccdeb(0x1dc)],_0x2875a0[_0x5ccdeb(0x230)]):''));}else try{const _0x4d90f4=await this[_0x5ccdeb(0x226)][_0x5ccdeb(0x234)]();if(_0x4d90f4)this['state']={...this['_getDefaultState'](),..._0x4d90f4,'uniqueFailedTests':new Set(_0x4d90f4['uniqueFailedTests']||[])},logger[_0x5ccdeb(0x1eb)]('['+TAG+_0x5ccdeb(0x1fe));else{logger['debug']('['+TAG+_0x5ccdeb(0x21c));const _0x7130e2=this[_0x5ccdeb(0x222)](),_0x17a200={..._0x7130e2,'uniqueFailedTests':Array[_0x5ccdeb(0x1ad)](_0x7130e2['uniqueFailedTests'])};await this[_0x5ccdeb(0x226)][_0x5ccdeb(0x1ec)](_0x17a200),this[_0x5ccdeb(0x219)]=_0x7130e2;}}catch(_0x1987f8){logger[_0x5ccdeb(0x1eb)]('['+TAG+'_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20'+_0x1987f8[_0x5ccdeb(0x209)]+(_0x1987f8[_0x5ccdeb(0x230)]?_0x30ae98[_0x5ccdeb(0x22b)](_0x30ae98[_0x5ccdeb(0x1dc)],_0x1987f8['stack']):'')),this[_0x5ccdeb(0x219)]=this[_0x5ccdeb(0x222)]();}}async[a167_0x3c90d8(0x1b4)](_0x9f0cb9,_0x4e414d){const _0x51ac39=a167_0x3c90d8,_0x64c8aa={};_0x64c8aa[_0x51ac39(0x227)]=function(_0x3b287c,_0x187c6e){return _0x3b287c>_0x187c6e;},_0x64c8aa['BdtyS']=function(_0x39b06f,_0x20c93c){return _0x39b06f>_0x20c93c;},_0x64c8aa[_0x51ac39(0x1ee)]='failed',_0x64c8aa['IqxqT']=_0x51ac39(0x225),_0x64c8aa['lDEzH']=function(_0x48dfc4,_0x122e7b){return _0x48dfc4+_0x122e7b;},_0x64c8aa[_0x51ac39(0x22f)]=_0x51ac39(0x21d),_0x64c8aa['Taawv']=function(_0x3cd034,_0x4dba73){return _0x3cd034||_0x4dba73;};const _0x1007f6=_0x64c8aa;if(this[_0x51ac39(0x1af)])this[_0x51ac39(0x219)][_0x51ac39(0x220)]+=0x1,_0x4e414d&&_0x1007f6['BMNmK'](_0x4e414d[_0x51ac39(0x1b6)],0x0)&&(!this[_0x51ac39(0x1fa)][_0x51ac39(0x1f2)](_0x9f0cb9)&&(await this[_0x51ac39(0x1f4)](_0x9f0cb9),this['reportedFailuresToAPI'][_0x51ac39(0x20c)](_0x9f0cb9)));else try{const _0x295505={'fullName':_0x9f0cb9,'status':_0x4e414d&&_0x1007f6[_0x51ac39(0x1e4)](_0x4e414d['length'],0x0)?_0x1007f6['coucE']:_0x1007f6[_0x51ac39(0x1ef)]},_0x118d2c=await this['fileHelper']['recordTestResult'](_0x295505);this[_0x51ac39(0x219)]={...this['_getDefaultState'](),..._0x118d2c[_0x51ac39(0x1d3)],'uniqueFailedTests':new Set(_0x118d2c[_0x51ac39(0x1d3)]['uniqueFailedTests']||[])};}catch(_0x38022c){logger[_0x51ac39(0x21e)]('['+TAG+_0x51ac39(0x1da)+_0x38022c[_0x51ac39(0x209)]+(_0x38022c[_0x51ac39(0x230)]?_0x1007f6[_0x51ac39(0x1d0)](_0x1007f6[_0x51ac39(0x22f)],_0x38022c[_0x51ac39(0x230)]):''));try{const _0x79d4e0=await this[_0x51ac39(0x226)][_0x51ac39(0x234)]();this[_0x51ac39(0x219)]={...this[_0x51ac39(0x222)](),..._0x1007f6[_0x51ac39(0x22a)](_0x79d4e0,{}),'uniqueFailedTests':new Set(_0x79d4e0?_0x79d4e0[_0x51ac39(0x1e6)]||[]:[])},logger[_0x51ac39(0x1eb)]('['+TAG+_0x51ac39(0x1d1));}catch(_0xcee533){logger[_0x51ac39(0x21e)]('['+TAG+_0x51ac39(0x22d)+_0xcee533[_0x51ac39(0x209)]+(_0xcee533[_0x51ac39(0x230)]?_0x1007f6['lDEzH'](_0x1007f6[_0x51ac39(0x22f)],_0xcee533[_0x51ac39(0x230)]):'')),this[_0x51ac39(0x219)]=this[_0x51ac39(0x222)]();}}}async['_sendFailedTestsToAPI'](_0x30e51a){const _0x15d0ff=a167_0x3c90d8,_0x36182e={};_0x36182e[_0x15d0ff(0x212)]=function(_0xff74a2,_0x281c4a){return _0xff74a2+_0x281c4a;},_0x36182e[_0x15d0ff(0x1b2)]=_0x15d0ff(0x21d);const _0x446955=_0x36182e;if(!this[_0x15d0ff(0x1af)]||!_0x30e51a)return;try{logger[_0x15d0ff(0x1eb)]('['+TAG+_0x15d0ff(0x1e2)+_0x30e51a);const _0x4e2e18={};_0x4e2e18[_0x15d0ff(0x210)]=this[_0x15d0ff(0x210)],_0x4e2e18[_0x15d0ff(0x1f1)]=this[_0x15d0ff(0x1f1)],_0x4e2e18[_0x15d0ff(0x1c8)]=[_0x30e51a],_0x4e2e18['buildRunIdentifier']=process[_0x15d0ff(0x232)][_0x15d0ff(0x1dd)],await RequestUtils[_0x15d0ff(0x1b9)](_0x4e2e18);}catch(_0x514906){logger[_0x15d0ff(0x21e)]('['+TAG+_0x15d0ff(0x204)+_0x30e51a+_0x15d0ff(0x1fd)+_0x514906[_0x15d0ff(0x209)]+(_0x514906[_0x15d0ff(0x230)]?_0x446955['ElpEA'](_0x446955['LgWYJ'],_0x514906[_0x15d0ff(0x230)]):''));}}async['_fetchAPIFailedCount'](){const _0x5a7214=a167_0x3c90d8,_0xcd4973={};_0xcd4973['bBHbr']=function(_0x3eea69,_0x46dfb6){return _0x3eea69===_0x46dfb6;},_0xcd4973[_0x5a7214(0x231)]=_0x5a7214(0x20e),_0xcd4973[_0x5a7214(0x1c9)]=function(_0x271751,_0x58e5e8){return _0x271751+_0x58e5e8;},_0xcd4973[_0x5a7214(0x1cf)]=_0x5a7214(0x21d),_0xcd4973[_0x5a7214(0x21f)]=function(_0x422274,_0x3ecfbf){return _0x422274!==_0x3ecfbf;};const _0x45b4c7=_0xcd4973;if(!this[_0x5a7214(0x1af)])return 0x0;try{const _0x456c1b={};_0x456c1b['buildName']=this[_0x5a7214(0x210)],_0x456c1b[_0x5a7214(0x1f1)]=this[_0x5a7214(0x1f1)],_0x456c1b[_0x5a7214(0x1fb)]=process[_0x5a7214(0x232)][_0x5a7214(0x1dd)];const _0x3b34a1=await RequestUtils[_0x5a7214(0x1ed)](_0x456c1b);return logger[_0x5a7214(0x1eb)]('['+TAG+_0x5a7214(0x1c3)+_0x3b34a1),_0x45b4c7[_0x5a7214(0x214)](typeof _0x3b34a1,_0x45b4c7[_0x5a7214(0x231)])?_0x3b34a1:0x0;}catch(_0x332457){return logger['error']('['+TAG+_0x5a7214(0x221)+_0x332457[_0x5a7214(0x209)]+(_0x332457['stack']?_0x45b4c7[_0x5a7214(0x1c9)](_0x45b4c7[_0x5a7214(0x1cf)],_0x332457[_0x5a7214(0x230)]):'')),_0x45b4c7[_0x5a7214(0x21f)](this[_0x5a7214(0x219)][_0x5a7214(0x224)],undefined)?this[_0x5a7214(0x219)][_0x5a7214(0x224)]:0x0;}}async[a167_0x3c90d8(0x1c4)](){const _0x43e025=a167_0x3c90d8,_0x42a851={};_0x42a851[_0x43e025(0x1c6)]=function(_0x8b97e2,_0x209bc2){return _0x8b97e2!==_0x209bc2;},_0x42a851[_0x43e025(0x202)]=function(_0x10be5c,_0x384e81){return _0x10be5c+_0x384e81;},_0x42a851['FBttf']='\x0aStack:\x20';const _0x2d7fa1=_0x42a851;if(!this[_0x43e025(0x1af)])return;try{const _0x3aa706=await this[_0x43e025(0x207)]();_0x2d7fa1[_0x43e025(0x1c6)](_0x3aa706,this[_0x43e025(0x219)]['lastAPIFailedCount'])&&(logger[_0x43e025(0x1eb)]('['+TAG+_0x43e025(0x1be)+_0x3aa706+_0x43e025(0x223)+this[_0x43e025(0x219)][_0x43e025(0x224)]+')'),this['state']['lastAPIFailedCount']=_0x3aa706);}catch(_0x5972dc){logger[_0x43e025(0x21e)]('['+TAG+_0x43e025(0x1bb)+_0x5972dc[_0x43e025(0x209)]+(_0x5972dc[_0x43e025(0x230)]?_0x2d7fa1['utJrc'](_0x2d7fa1['FBttf'],_0x5972dc[_0x43e025(0x230)]):''));}}async[a167_0x3c90d8(0x1d9)](){const _0xd061b0=a167_0x3c90d8,_0x270fe8={'YxwLG':function(_0x39372e,_0x2dd5ec,_0xe1bca7){return _0x39372e(_0x2dd5ec,_0xe1bca7);}};this['pollingInterval']&&this['stopPolling'](),this['isCIMode']&&(await this['_pollFailedTests'](),this[_0xd061b0(0x1b7)]=_0x270fe8[_0xd061b0(0x1ae)](setInterval,async()=>{await this['_pollFailedTests']();},POLLING_INTERVAL),logger[_0xd061b0(0x1eb)]('['+TAG+_0xd061b0(0x236)+POLLING_INTERVAL+'ms.'));}[a167_0x3c90d8(0x1e8)](){const _0x1fc331=a167_0x3c90d8,_0x164cdf={'HtrTA':function(_0x127463,_0x4ac3de){return _0x127463(_0x4ac3de);}};this[_0x1fc331(0x1b7)]&&(_0x164cdf[_0x1fc331(0x20a)](clearInterval,this[_0x1fc331(0x1b7)]),this[_0x1fc331(0x1b7)]=null,logger[_0x1fc331(0x1eb)]('['+TAG+']\x20Polling\x20stopped.'));}async[a167_0x3c90d8(0x1ba)](){const _0x19c1c0=a167_0x3c90d8,_0x168d24={};_0x168d24['SxzdQ']=function(_0x415008,_0x3f452b){return _0x415008===_0x3f452b;},_0x168d24[_0x19c1c0(0x1c0)]=function(_0x48c642,_0x276caf){return _0x48c642<=_0x276caf;},_0x168d24[_0x19c1c0(0x1ce)]=function(_0x926faf,_0x5e0c7e){return _0x926faf+_0x5e0c7e;},_0x168d24[_0x19c1c0(0x1f8)]='\x0aStack:\x20',_0x168d24[_0x19c1c0(0x218)]=function(_0x1443fb,_0x4b0be9){return _0x1443fb!==_0x4b0be9;},_0x168d24[_0x19c1c0(0x217)]=function(_0x3db6e5,_0x528245){return _0x3db6e5>=_0x528245;},_0x168d24[_0x19c1c0(0x216)]=function(_0x27ea51,_0x945c24){return _0x27ea51+_0x945c24;},_0x168d24[_0x19c1c0(0x237)]=function(_0x21fca8,_0x39c8c3){return _0x21fca8+_0x39c8c3;},_0x168d24[_0x19c1c0(0x1f0)]=function(_0x50c4d4,_0x2965ee){return _0x50c4d4>=_0x2965ee;},_0x168d24[_0x19c1c0(0x1b0)]=function(_0x2bb5bf,_0x3a2ddf){return _0x2bb5bf+_0x3a2ddf;};const _0xf100dc=_0x168d24,{failureThresholdCount:_0x1bd874}=this['failFastConfig'];if(_0xf100dc['SxzdQ'](_0x1bd874,null)||_0xf100dc[_0x19c1c0(0x1d8)](_0x1bd874,undefined)||_0xf100dc[_0x19c1c0(0x1c0)](_0x1bd874,0x0))return logger[_0x19c1c0(0x1eb)]('['+TAG+_0x19c1c0(0x20f)),![];if(this['isCIMode']){try{if(fs[_0x19c1c0(0x1b8)](this[_0x19c1c0(0x1e9)]))return logger['debug']('['+TAG+_0x19c1c0(0x1d6)),!this[_0x19c1c0(0x219)][_0x19c1c0(0x1e1)]&&(this[_0x19c1c0(0x219)]['failFastActive']=!![]),this['stopPolling'](),!![];}catch(_0xdf8dc7){logger[_0x19c1c0(0x21e)]('['+TAG+_0x19c1c0(0x235)+_0xdf8dc7[_0x19c1c0(0x209)]+(_0xdf8dc7[_0x19c1c0(0x230)]?_0xf100dc[_0x19c1c0(0x1ce)](_0xf100dc[_0x19c1c0(0x1f8)],_0xdf8dc7['stack']):''));}const _0x4caa47=_0xf100dc[_0x19c1c0(0x218)](this[_0x19c1c0(0x219)][_0x19c1c0(0x224)],undefined)?this[_0x19c1c0(0x219)][_0x19c1c0(0x224)]:0x0;if(_0xf100dc[_0x19c1c0(0x217)](_0x4caa47,_0x1bd874)){logger[_0x19c1c0(0x1bf)]('['+TAG+_0x19c1c0(0x201)+_0x4caa47+_0x19c1c0(0x229)+_0x1bd874+'.');try{fs['writeFileSync'](this[_0x19c1c0(0x1e9)],new Date()[_0x19c1c0(0x1f6)]()),logger[_0x19c1c0(0x1eb)]('['+TAG+_0x19c1c0(0x1cb)+this[_0x19c1c0(0x1e9)]),this['state']['failFastActive']=!![];}catch(_0x175690){logger[_0x19c1c0(0x21e)]('['+TAG+_0x19c1c0(0x1ff)+_0x175690[_0x19c1c0(0x209)]+(_0x175690[_0x19c1c0(0x230)]?_0xf100dc[_0x19c1c0(0x216)](_0xf100dc[_0x19c1c0(0x1f8)],_0x175690[_0x19c1c0(0x230)]):''));}return this[_0x19c1c0(0x1e8)](),!![];}}else{let _0x4cf6fe;try{_0x4cf6fe=await this[_0x19c1c0(0x226)]['readState']();if(!_0x4cf6fe)return logger[_0x19c1c0(0x1de)]('['+TAG+'_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.'),![];}catch(_0x32063e){return logger[_0x19c1c0(0x21e)]('['+TAG+_0x19c1c0(0x1e0)+_0x32063e['message']+(_0x32063e[_0x19c1c0(0x230)]?_0xf100dc[_0x19c1c0(0x237)](_0xf100dc[_0x19c1c0(0x1f8)],_0x32063e[_0x19c1c0(0x230)]):'')),![];}this['state']={...this['_getDefaultState'](),..._0x4cf6fe,'uniqueFailedTests':new Set(_0x4cf6fe[_0x19c1c0(0x1e6)]||[])};if(this[_0x19c1c0(0x219)][_0x19c1c0(0x1e1)])return logger[_0x19c1c0(0x1eb)]('['+TAG+_0x19c1c0(0x1ca)),!![];const _0x55567b=this[_0x19c1c0(0x219)][_0x19c1c0(0x1e6)],_0x24c279=_0x55567b['size'];if(_0xf100dc[_0x19c1c0(0x1f0)](_0x24c279,_0x1bd874)){try{logger['info']('['+TAG+_0x19c1c0(0x233)+_0x24c279+_0x19c1c0(0x229)+_0x1bd874+'.'),this['state'][_0x19c1c0(0x1e1)]=!![];}catch(_0x233a34){logger[_0x19c1c0(0x21e)]('['+TAG+_0x19c1c0(0x1db)+_0x233a34[_0x19c1c0(0x209)]+(_0x233a34[_0x19c1c0(0x230)]?_0xf100dc[_0x19c1c0(0x1b0)](_0xf100dc['elNcv'],_0x233a34[_0x19c1c0(0x230)]):''));}return!![];}}return![];}async[a167_0x3c90d8(0x1d5)](){const _0xeaf461=a167_0x3c90d8,_0x74561={};_0x74561[_0xeaf461(0x20b)]=function(_0x2aa5ab,_0xc465f9){return _0x2aa5ab+_0xc465f9;},_0x74561[_0xeaf461(0x208)]='\x0aStack:\x20';const _0x1f9f78=_0x74561;this['stopPolling']();if(this[_0xeaf461(0x1af)])logger[_0xeaf461(0x1eb)]('['+TAG+'_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.');else try{const _0x548812={...this[_0xeaf461(0x219)],'uniqueFailedTests':Array[_0xeaf461(0x1ad)](this[_0xeaf461(0x219)][_0xeaf461(0x1e6)]||new Set())};await this[_0xeaf461(0x226)][_0xeaf461(0x1ec)](_0x548812),logger[_0xeaf461(0x1eb)]('['+TAG+_0xeaf461(0x20d));}catch(_0x31a3ae){logger[_0xeaf461(0x21e)]('['+TAG+_0xeaf461(0x200)+_0x31a3ae['message']+(_0x31a3ae[_0xeaf461(0x230)]?_0x1f9f78['xRgHf'](_0x1f9f78[_0xeaf461(0x208)],_0x31a3ae['stack']):''));}}}module[a167_0x3c90d8(0x1fc)]=FailFastManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a168_0x513ff3=a168_0xc1ef;function a168_0x2942(){const _0x36b05f=['28KSQNtQ','openSync','message','acquireLock','readFileSync','632707ByGXqB','hKvkQ','split','1122656GCpQDR','VLijo','isNewFailure','468342LlVGnn','lastAPIFailedCount','add',']\x20Error\x20creating\x20state\x20file:\x20','utf8',']\x20Error\x20writing\x20state\x20file:\x20','function','recordTestResult','yzglJ','status',']\x20Could\x20not\x20acquire\x20lock\x20to\x20update\x20API\x20failed\x20count.\x20State\x20may\x20be\x20stale.','stateFilePath','HNCWB','readState','EEXIST','unlinkSync','12684168aFztku','has','error','failed','warn','2rcWQKs','totalTests','1278036ZeEWHH','parse','VUXPG','code','FailFastFileHelper','exports',']\x20Error\x20releasing\x20lock:\x20','stack','stringify','uniqueFailedTests','PFybo','failedTests','isArray','../logger','from','1995832koKXox','2|4|0|1|3','failFastConfig','writeState','mxqzu','1536840lSdelU','fullName','writeFileSync','lockFilePath','updateAPIFailedCount','releaseLock','defaultState'];a168_0x2942=function(){return _0x36b05f;};return a168_0x2942();}(function(_0x5b4827,_0x2867b1){const _0x2019de=a168_0xc1ef,_0x285a72=_0x5b4827();while(!![]){try{const _0x4a1a15=parseInt(_0x2019de(0xee))/0x1*(parseInt(_0x2019de(0xcc))/0x2)+parseInt(_0x2019de(0xce))/0x3+parseInt(_0x2019de(0xdd))/0x4+-parseInt(_0x2019de(0xe2))/0x5+-parseInt(_0x2019de(0xb7))/0x6+-parseInt(_0x2019de(0xe9))/0x7*(-parseInt(_0x2019de(0xf1))/0x8)+-parseInt(_0x2019de(0xc7))/0x9;if(_0x4a1a15===_0x2867b1)break;else _0x285a72['push'](_0x285a72['shift']());}catch(_0x1c0a0c){_0x285a72['push'](_0x285a72['shift']());}}}(a168_0x2942,0x4f284));const fs=require('fs'),logger=require(a168_0x513ff3(0xdb))['winstonLogger'],TAG=a168_0x513ff3(0xd2);class FileHelper{constructor(_0x3560cd,_0x18cca5,_0x14385c,_0x40baf9){const _0x560e74=a168_0x513ff3,_0x2dbf03={};_0x2dbf03[_0x560e74(0xbf)]=_0x560e74(0xde),_0x2dbf03['hKvkQ']=_0x560e74(0xbb);const _0x25cbbe=_0x2dbf03,_0x120df7=_0x25cbbe[_0x560e74(0xbf)][_0x560e74(0xf0)]('|');let _0x376451=0x0;while(!![]){switch(_0x120df7[_0x376451++]){case'0':this[_0x560e74(0xe5)]=_0x14385c;continue;case'1':this[_0x560e74(0xe8)]=_0x40baf9;continue;case'2':this[_0x560e74(0xdf)]=_0x3560cd;continue;case'3':if(!fs['existsSync'](this['stateFilePath']))try{fs['writeFileSync'](this[_0x560e74(0xc2)],'{}',_0x25cbbe[_0x560e74(0xef)]);}catch(_0x9913a5){logger[_0x560e74(0xc9)]('['+TAG+_0x560e74(0xba)+_0x9913a5[_0x560e74(0xeb)]+'\x20'+_0x9913a5[_0x560e74(0xd5)]);}continue;case'4':this[_0x560e74(0xc2)]=_0x18cca5;continue;}break;}}async[a168_0x513ff3(0xec)](){const _0x56fd58=a168_0x513ff3,_0x10b8b7={};_0x10b8b7[_0x56fd58(0xc3)]=function(_0x3a86e0,_0x43c498){return _0x3a86e0===_0x43c498;},_0x10b8b7[_0x56fd58(0xd0)]=_0x56fd58(0xc5);const _0x3db557=_0x10b8b7;let _0x2be6d9;try{return _0x2be6d9=fs[_0x56fd58(0xea)](this['lockFilePath'],'wx'),_0x2be6d9;}catch(_0x1cad28){if(_0x3db557[_0x56fd58(0xc3)](_0x1cad28[_0x56fd58(0xd1)],_0x3db557[_0x56fd58(0xd0)]))return null;throw _0x1cad28;}}async[a168_0x513ff3(0xe7)](_0x3401fe){const _0x263e67=a168_0x513ff3;if(_0x3401fe)try{fs['closeSync'](_0x3401fe),fs[_0x263e67(0xc6)](this[_0x263e67(0xe5)]);}catch(_0x383310){logger[_0x263e67(0xc9)]('['+TAG+_0x263e67(0xd4)+_0x383310[_0x263e67(0xeb)]+'\x20'+_0x383310[_0x263e67(0xd5)]);}}[a168_0x513ff3(0xc4)](){const _0x3bf315=a168_0x513ff3,_0x2a6cfe={};_0x2a6cfe['RYZco']='utf8';const _0x2a7f25=_0x2a6cfe;try{const _0x338101=fs[_0x3bf315(0xed)](this[_0x3bf315(0xc2)],_0x2a7f25['RYZco']);return JSON[_0x3bf315(0xcf)](_0x338101);}catch(_0x1aa618){return logger[_0x3bf315(0xc9)]('['+TAG+']\x20Error\x20reading\x20state\x20file:\x20'+_0x1aa618[_0x3bf315(0xeb)]+'\x20'+_0x1aa618[_0x3bf315(0xd5)]),null;}}async[a168_0x513ff3(0xe0)](_0x231026){const _0x1a82b0=a168_0x513ff3,_0x1082ce={..._0x231026,'uniqueFailedTests':Array[_0x1a82b0(0xda)](_0x231026[_0x1a82b0(0xd7)])?_0x231026[_0x1a82b0(0xd7)]:Array[_0x1a82b0(0xdc)](_0x231026[_0x1a82b0(0xd7)]||[])};try{fs[_0x1a82b0(0xe4)](this[_0x1a82b0(0xc2)],JSON[_0x1a82b0(0xd6)](_0x1082ce,null,0x2));}catch(_0xe24b7b){logger['error']('['+TAG+_0x1a82b0(0xbc)+_0xe24b7b[_0x1a82b0(0xeb)]+'\x20'+_0xe24b7b['stack']);throw _0xe24b7b;}}async[a168_0x513ff3(0xbe)](_0x4c9031,_0x28bc9a){const _0x2fc59e=a168_0x513ff3,_0x5b2ab5={};_0x5b2ab5[_0x2fc59e(0xe1)]=function(_0x1cb8c5,_0x113ad0){return _0x1cb8c5!==_0x113ad0;},_0x5b2ab5['VTsnm']=_0x2fc59e(0xbd),_0x5b2ab5['PFybo']=function(_0xadc09c,_0x5eb88f){return _0xadc09c===_0x5eb88f;},_0x5b2ab5[_0x2fc59e(0xf2)]=_0x2fc59e(0xca);const _0xb711e=_0x5b2ab5,_0x11ba2d=await this[_0x2fc59e(0xec)]();if(!_0x11ba2d)return logger[_0x2fc59e(0xcb)]('['+TAG+']\x20Could\x20not\x20acquire\x20lock\x20to\x20record\x20test\x20result.\x20State\x20may\x20be\x20stale.'),{'newState':this[_0x2fc59e(0xc4)]()||this[_0x2fc59e(0xe8)],'isNewFailure':![]};try{let _0x1adc2f=this[_0x2fc59e(0xc4)]();!_0x1adc2f&&(_0x1adc2f=JSON[_0x2fc59e(0xcf)](JSON[_0x2fc59e(0xd6)](this[_0x2fc59e(0xe8)])));if(!_0x1adc2f['uniqueFailedTests']||_0xb711e[_0x2fc59e(0xe1)](typeof _0x1adc2f[_0x2fc59e(0xd7)][Symbol['iterator']],_0xb711e['VTsnm']))_0x1adc2f['uniqueFailedTests']=new Set();else Array['isArray'](_0x1adc2f[_0x2fc59e(0xd7)])&&(_0x1adc2f[_0x2fc59e(0xd7)]=new Set(_0x1adc2f['uniqueFailedTests']));_0x1adc2f[_0x2fc59e(0xcd)]=_0x28bc9a;let _0x38742d=![];_0xb711e[_0x2fc59e(0xd8)](_0x4c9031[_0x2fc59e(0xc0)],_0xb711e[_0x2fc59e(0xf2)])&&(_0x1adc2f[_0x2fc59e(0xd9)]+=0x1,!_0x1adc2f[_0x2fc59e(0xd7)][_0x2fc59e(0xc8)](_0x4c9031[_0x2fc59e(0xe3)])&&(_0x1adc2f['uniqueFailedTests'][_0x2fc59e(0xb9)](_0x4c9031['fullName']),_0x38742d=!![]));await this['writeState'](_0x1adc2f);const _0x84a260={};return _0x84a260['newState']=_0x1adc2f,_0x84a260[_0x2fc59e(0xb6)]=_0x38742d,_0x84a260;}finally{await this[_0x2fc59e(0xe7)](_0x11ba2d);}}async[a168_0x513ff3(0xe6)](_0x1ec1de){const _0x1779e7=a168_0x513ff3,_0x23ece4=await this['acquireLock']();if(!_0x23ece4)return logger[_0x1779e7(0xcb)]('['+TAG+_0x1779e7(0xc1)),this[_0x1779e7(0xc4)]()||this['defaultState'];try{let _0x4ba8d0=this[_0x1779e7(0xc4)]();return!_0x4ba8d0&&(_0x4ba8d0=JSON[_0x1779e7(0xcf)](JSON[_0x1779e7(0xd6)](this[_0x1779e7(0xe8)]))),_0x4ba8d0[_0x1779e7(0xb8)]=_0x1ec1de,await this[_0x1779e7(0xe0)](_0x4ba8d0),_0x4ba8d0;}finally{await this['releaseLock'](_0x23ece4);}}}function a168_0xc1ef(_0x42bf1a,_0x28fbe5){const _0x29422a=a168_0x2942();return a168_0xc1ef=function(_0xc1efbb,_0x45d6b3){_0xc1efbb=_0xc1efbb-0xb6;let _0x526cef=_0x29422a[_0xc1efbb];return _0x526cef;},a168_0xc1ef(_0x42bf1a,_0x28fbe5);}module[a168_0x513ff3(0xd3)]=FileHelper;
|