browserstack-node-sdk 1.55.2 → 1.55.3
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/ai-sdk-node/bundle.js +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/integrations/command.js +1 -1
- package/src/bin/integrations/constants.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/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/builderPatch.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/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/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/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/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/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/testhubModule.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/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.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/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/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/timeoutPromise.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 a101_0x3d63d4=a101_0x5406;(function(_0x3a51a7,_0x3eac2f){const _0xbf48a=a101_0x5406,_0x353bf1=_0x3a51a7();while(!![]){try{const _0x3701d6=parseInt(_0xbf48a(0x16d))/0x1*(-parseInt(_0xbf48a(0x101))/0x2)+parseInt(_0xbf48a(0xf6))/0x3+-parseInt(_0xbf48a(0x108))/0x4*(parseInt(_0xbf48a(0xe7))/0x5)+parseInt(_0xbf48a(0x167))/0x6*(parseInt(_0xbf48a(0x170))/0x7)+parseInt(_0xbf48a(0x14b))/0x8*(parseInt(_0xbf48a(0x133))/0x9)+-parseInt(_0xbf48a(0x100))/0xa*(parseInt(_0xbf48a(0x154))/0xb)+-parseInt(_0xbf48a(0x122))/0xc*(-parseInt(_0xbf48a(0x11c))/0xd);if(_0x3701d6===_0x3eac2f)break;else _0x353bf1['push'](_0x353bf1['shift']());}catch(_0x2ac877){_0x353bf1['push'](_0x353bf1['shift']());}}}(a101_0x33b7,0xad374));const path=require('path'),util=require(a101_0x3d63d4(0x123)),{getGitMetaData,isUndefined,nestedKeyValue}=require(a101_0x3d63d4(0xec)),logger=require(a101_0x3d63d4(0x161))['winstonLogger'],{o11yClassErrorHandler}=require(a101_0x3d63d4(0x10f)),TestInfo=require(a101_0x3d63d4(0xf0)),hooksMap={};function a101_0x33b7(){const _0x25a23f=['examples','AssertionError','vRDQN','../../../helpers/test-observability/error-handler.js','configureGit','hookId','sendTestRunEventForCucumber','failure_reason','cells','tableBody','getScenarioExamples','hook','finishedAt','nxBKn','failure_data','uri','26aKsEaa','pending','vCMkA','yvNrj','OAyeT','failure_type','1229532LoPUKM','util','finished_at','Umjpx','LGVAR','VEWAU','ImKaM','createHookData','includes','javascript','exception','toString','filter','rule','message','cdlWp','TADFN','1035NZxBuR','failure','PaQsa','qgNCH','gQUCG','every','debug','_gitConfigured','uuid','relative','HookRunFinished','FAILED','_gitConfigPath','QVopd','cucumber','QUDCs','status','toLowerCase','HqLjT','forEach','length','HQqHi','izuUb','sourceReference','61736PRJwkZ','NRjoT','xuoNL','Exception\x20in\x20getHookRunEventData:\x20','XhntR','test','FNfUD','testStepResult','RUqpk','4274589ejbvdc','timestamp','scenario','tags','browserstack-node-agent/src/bin/cucumber-js/test.setup.js','FkirJ','find','FJEWP','OGMcZ','backtrace','value','failureData','testCaseFinished','../../../helpers/logger.js','QolkR','dBnnh','getCucumberHookType','flatMap','hooks','18738qsjfod','failureType','OCxAj','bcZgJ','sendHook','failed','1846BGzzsG','JxJbt','getHookResult','1057VYZUoY','PPWrX','1195WpqqSz','Exception\x20in\x20createHookData:\x20','map','createTestFrameworkData','LWPBD','../../../helpers/helper.js','WJDLB','skipped','bstack','../TestInfo.js','duration_in_ms','result','pickleStepId','split','name','692019szxZmi','OHwjP','EpzKv','children','tagExpression','KxSwV','astNodeIds','format','nanos','PXiJp','20mqpWSw','178sgVGJF','getHookRunEventData','toISOString','bTAPZ','wkUQd','SKIPPED','push','2404GPFKZo','match','MuuJl','feature'];a101_0x33b7=function(){return _0x25a23f;};return a101_0x33b7();}function a101_0x5406(_0x4d3f1b,_0x8d5d71){const _0x33b7c1=a101_0x33b7();return a101_0x5406=function(_0x5406b1,_0x3ba1bf){_0x5406b1=_0x5406b1-0xe7;let _0x106ab4=_0x33b7c1[_0x5406b1];return _0x106ab4;},a101_0x5406(_0x4d3f1b,_0x8d5d71);}class CucumberUtils{constructor(){const _0xded8b4=a101_0x3d63d4;this[_0xded8b4(0x13a)]=![],this[_0xded8b4(0x13f)]=null;}async[a101_0x3d63d4(0xea)](_0x493e16,_0x573538,_0x3c55c7,_0x2741ea,_0x2f94a0,_0x6bac5){const _0x42bbfc=a101_0x3d63d4,_0x41acc7={'TADFN':function(_0x501720,_0x315bfb){return _0x501720===_0x315bfb;},'qgNCH':_0x42bbfc(0x13e),'FNfUD':_0x42bbfc(0x16c),'OHwjP':_0x42bbfc(0x106),'WJDLB':_0x42bbfc(0xee),'LWPBD':function(_0x116050,_0x335e5b){return _0x116050||_0x335e5b;},'vCMkA':function(_0x2ccfe1,_0x8502d7){return _0x2ccfe1+_0x8502d7;},'NRjoT':function(_0x5a50ed,_0x1dc655){return _0x5a50ed+_0x1dc655;},'KxSwV':_0x42bbfc(0x150),'PaQsa':'javascript','HSxUV':_0x42bbfc(0x141),'EpzKv':_0x42bbfc(0x11d),'PXiJp':'passed','OGMcZ':function(_0x16ccfd,_0x19b193){return _0x16ccfd!==_0x19b193;},'PPWrX':function(_0x391f95,_0x2bdf63){return _0x391f95/_0x2bdf63;},'yvNrj':'strip-ansi','bcZgJ':function(_0x2ae61f,_0x512480){return _0x2ae61f(_0x512480);},'CsMGl':'unknown','vRDQN':_0x42bbfc(0x10d),'ASAAj':'UnhandledError'},{feature:_0x4cedd3,scenario:_0x17573c,steps:_0xb7753a,uuid:_0x4ced09,startedAt:_0x8807e0,finishedAt:_0x140451}=_0x41acc7[_0x42bbfc(0xeb)](_0x493e16,{}),_0x24c151=this['getScenarioExamples'](_0x2741ea,_0x573538);await this['configureGit']();const _0x14a748=_0x24c151?_0x41acc7[_0x42bbfc(0x11e)](_0x41acc7[_0x42bbfc(0x14c)](_0x41acc7[_0x42bbfc(0x14c)](_0x573538[_0x42bbfc(0xf5)],'\x20('),_0x24c151['join'](',\x20')),')'):_0x573538['name'],_0x19cf89={'id':_0x2f94a0,'uuid':_0x2f94a0,'startedAt':_0x8807e0,'finishedAt':_0x140451,'type':_0x41acc7[_0x42bbfc(0xfb)],'body':{'lang':_0x41acc7[_0x42bbfc(0x135)],'code':null},'name':_0x14a748,'scopes':[_0x4cedd3&&_0x4cedd3[_0x42bbfc(0xf5)]?_0x4cedd3[_0x42bbfc(0xf5)]:''],'tags':_0x573538['tags']?_0x573538[_0x42bbfc(0x157)][_0x42bbfc(0xe9)](({name:_0x209778})=>_0x209778):[],'file_name':_0x573538[_0x42bbfc(0x11b)],'location':_0x573538['uri'],'vc_filepath':this[_0x42bbfc(0x13f)]&&_0x573538['uri']?path[_0x42bbfc(0x13c)](this[_0x42bbfc(0x13f)],_0x573538[_0x42bbfc(0x11b)]):null,'framework':_0x41acc7['HSxUV'],'result':_0x41acc7[_0x42bbfc(0xf8)],'meta':{'feature':_0x4cedd3,'scenario':_0x17573c,'steps':_0xb7753a,'examples':_0x24c151},'customRerunParam':{'rerun_name':_0x14a748}};if(_0x3c55c7[_0x42bbfc(0x160)]&&_0xb7753a){const _0x20cea3=_0x3c55c7[_0x42bbfc(0x160)];let _0x1f2823=_0x41acc7[_0x42bbfc(0xff)];_0xb7753a[_0x42bbfc(0x138)](_0x12d32e=>{const _0x4d2d8e=_0x42bbfc;if(_0x41acc7[_0x4d2d8e(0x132)](_0x12d32e[_0x4d2d8e(0xf2)],_0x41acc7[_0x4d2d8e(0x136)]))return _0x1f2823=_0x41acc7['FNfUD'],_0x20cea3['failure']=_0x12d32e[_0x4d2d8e(0x134)],_0x20cea3['failureType']=_0x12d32e['failureType'],![];else{if(_0x41acc7['TADFN'](_0x12d32e[_0x4d2d8e(0xf2)],_0x41acc7[_0x4d2d8e(0xf7)]))return _0x1f2823=_0x41acc7[_0x4d2d8e(0xed)],![];}return!![];}),_0x19cf89[_0x42bbfc(0x118)]=new Date()[_0x42bbfc(0x103)](),_0x19cf89[_0x42bbfc(0xf2)]=_0x1f2823;_0x20cea3['timestamp']&&_0x41acc7[_0x42bbfc(0x15c)](_0x20cea3[_0x42bbfc(0x155)][_0x42bbfc(0xfe)],undefined)?_0x19cf89['duration_in_ms']=_0x41acc7[_0x42bbfc(0x171)](_0x20cea3[_0x42bbfc(0x155)][_0x42bbfc(0xfe)],0xf4240):_0x19cf89[_0x42bbfc(0xf1)]=undefined;if(_0x41acc7[_0x42bbfc(0x132)](_0x1f2823,_0x41acc7[_0x42bbfc(0x151)])){const {default:_0x2d56fb}=await import(_0x41acc7[_0x42bbfc(0x11f)]);_0x19cf89[_0x42bbfc(0x134)]=[{'backtrace':[_0x20cea3[_0x42bbfc(0x134)]?_0x41acc7[_0x42bbfc(0x16a)](_0x2d56fb,_0x20cea3[_0x42bbfc(0x134)]):_0x41acc7['CsMGl']]}],_0x19cf89[_0x42bbfc(0x113)]=_0x20cea3[_0x42bbfc(0x134)]?_0x41acc7[_0x42bbfc(0x16a)](_0x2d56fb,_0x20cea3['failure']):_0x20cea3[_0x42bbfc(0x130)],_0x20cea3[_0x42bbfc(0x168)]&&(_0x19cf89[_0x42bbfc(0x121)]=_0x20cea3['failureType'][_0x42bbfc(0x109)](/AssertError/)?_0x41acc7[_0x42bbfc(0x10e)]:_0x41acc7['ASAAj']);}}return _0x19cf89;}[a101_0x3d63d4(0x102)](_0x1bd452,_0x3a5545,_0x36216e,_0x664069,_0x6dcc55,_0x523a20){const _0x3a8ee6=a101_0x3d63d4,_0xe51b47={'HqLjT':function(_0x45cb0d,_0x194f85){return _0x45cb0d===_0x194f85;},'cdlWp':_0x3a8ee6(0x13d),'nxBKn':function(_0xa09c67,_0x19eb79,_0x352ef3){return _0xa09c67(_0x19eb79,_0x352ef3);},'MuuJl':_0x3a8ee6(0x14a),'LGVAR':_0x3a8ee6(0x11b),'FkirJ':_0x3a8ee6(0x11d),'hyUfh':_0x3a8ee6(0x117),'VEWAU':_0x3a8ee6(0x12b),'xuoNL':function(_0x45359b,_0x2fb571,_0x4f7eb2){return _0x45359b(_0x2fb571,_0x4f7eb2);},'XhntR':_0x3a8ee6(0x10b),'yiiFo':_0x3a8ee6(0xf5),'hflup':_0x3a8ee6(0x141)};try{if(_0xe51b47[_0x3a8ee6(0x145)](_0x36216e,_0xe51b47[_0x3a8ee6(0x131)])){const _0x527b3c=new Date()[_0x3a8ee6(0x103)](),_0x564505=hooksMap[_0x3a5545];if(!_0x564505)return;const _0x29a411=_0x564505[_0x3a8ee6(0x15a)](_0x40129b=>_0x40129b[_0x3a8ee6(0x13b)]===_0x664069['id']);if(!_0x29a411)return;const _0x314fc6=this[_0x3a8ee6(0x16f)](_0x1bd452,_0x3a5545);_0x29a411['result']=_0x314fc6['status'],_0x29a411[_0x3a8ee6(0x124)]=_0x527b3c,_0x29a411['failure_type']=_0x314fc6['failureType'];const _0x20ee33={};return _0x20ee33[_0x3a8ee6(0x15d)]=_0x314fc6[_0x3a8ee6(0x15f)],_0x29a411[_0x3a8ee6(0x11a)]=[_0x20ee33],_0x29a411;}const _0x4bc491=TestInfo['getTestUUID'](_0x3a5545),_0x4af92c=_0x1bd452[_0x3a8ee6(0x166)][_0x3a8ee6(0x15a)](_0x255cf2=>_0x255cf2['id']===_0x664069[_0x3a8ee6(0x111)]),_0x3eb79d=_0xe51b47[_0x3a8ee6(0x119)](nestedKeyValue,_0x4af92c,[_0xe51b47[_0x3a8ee6(0x10a)],_0xe51b47[_0x3a8ee6(0x126)]]),_0x2cd632=new Date()[_0x3a8ee6(0x103)](),_0x109fec=_0xe51b47[_0x3a8ee6(0x159)],_0xb804fc=_0x4af92c[_0x3a8ee6(0xfa)]?_0x4af92c[_0x3a8ee6(0xfa)][_0x3a8ee6(0xf4)]('\x20')[_0x3a8ee6(0x12e)](_0x5f6b05=>_0x5f6b05['includes']('@')):[],_0x37b1b4={'uuid':_0x664069['id'],'type':_0xe51b47['hyUfh'],'hook_type':_0x523a20,'name':_0x4af92c[_0x3a8ee6(0xf5)],'body':{'lang':_0xe51b47[_0x3a8ee6(0x127)],'code':null},'tags':_0xb804fc,'test_run_id':_0x4bc491,'scope':_0xe51b47[_0x3a8ee6(0x14d)](nestedKeyValue,_0x6dcc55,[_0xe51b47['XhntR'],_0xe51b47['yiiFo']]),'scopes':[_0xe51b47[_0x3a8ee6(0x119)](nestedKeyValue,_0x6dcc55,[_0xe51b47[_0x3a8ee6(0x14f)],_0xe51b47['yiiFo']])||''],'file_name':_0x3eb79d,'location':_0x3eb79d,'vc_filepath':this['_gitConfigPath']?path['relative'](this[_0x3a8ee6(0x13f)],_0x3eb79d):null,'result':_0x109fec,'started_at':_0x2cd632,'framework':_0xe51b47['hflup']};return _0x37b1b4;}catch(_0x4b6a3f){logger[_0x3a8ee6(0x139)](_0x3a8ee6(0x14e)+util[_0x3a8ee6(0xfd)](_0x4b6a3f)+'\x20');}}async[a101_0x3d63d4(0x129)](_0x1b39d8,_0x232eea,_0x8efe2,_0x4c30ea,_0x33fdd4,_0x2e5ed5){const _0x3f9100=a101_0x3d63d4,_0x3a9394={'kxqWl':function(_0x4abf16,_0x1fb437){return _0x4abf16===_0x1fb437;},'OAyeT':'HookRunStarted','zfUFU':function(_0x401369,_0x2dde27,_0x5946ad){return _0x401369(_0x2dde27,_0x5946ad);},'LMxrp':_0x3f9100(0x14a),'fiCwz':_0x3f9100(0x11b),'QVopd':_0x3f9100(0x158),'JxJbt':_0x3f9100(0xef)};try{const _0x25860b=_0x4c30ea[_0x3f9100(0x15a)](_0x401719=>_0x401719['id']===_0x33fdd4);if(!_0x25860b['hookId'])return;const _0x1120e1=this[_0x3f9100(0x164)](_0x4c30ea,_0x25860b),_0x1230ef=this[_0x3f9100(0x102)](_0x1b39d8,_0x232eea,_0x8efe2,_0x25860b,_0x2e5ed5,_0x1120e1);if(!_0x1230ef)return;_0x3a9394['kxqWl'](_0x8efe2,_0x3a9394[_0x3f9100(0x120)])&&(hooksMap[_0x232eea]?hooksMap[_0x232eea][_0x3f9100(0x107)](_0x1230ef):hooksMap[_0x232eea]=[_0x1230ef]);const _0x5c75f9=_0x1b39d8[_0x3f9100(0x166)][_0x3f9100(0x15a)](_0x503fc9=>_0x503fc9['id']===_0x25860b[_0x3f9100(0x111)]),_0x2598d8=_0x3a9394['zfUFU'](nestedKeyValue,_0x5c75f9,[_0x3a9394['LMxrp'],_0x3a9394['fiCwz']]);if(!_0x2598d8)return;else{if(_0x2598d8[_0x3f9100(0x12a)](_0x3a9394[_0x3f9100(0x140)]))return;}if(_0x3a9394['kxqWl'](_0x1230ef[_0x3f9100(0xf5)],_0x3a9394[_0x3f9100(0x16e)]))return;return _0x1230ef;}catch(_0x1003a5){logger[_0x3f9100(0x139)](_0x3f9100(0xe8)+util[_0x3f9100(0xfd)](_0x1003a5)+'\x20');}}[a101_0x3d63d4(0x16f)](_0xb74f87,_0x5b5b96){const _0x4c0463=a101_0x3d63d4,_0xb796ce={};_0xb796ce[_0x4c0463(0x15b)]=function(_0x5d0c5a,_0x5b9a68){return _0x5d0c5a===_0x5b9a68;},_0xb796ce['izuUb']=_0x4c0463(0x16c),_0xb796ce[_0x4c0463(0x162)]=function(_0x17e536,_0x1aef1b){return _0x17e536===_0x1aef1b;},_0xb796ce[_0x4c0463(0x104)]='UnhandledError',_0xb796ce[_0x4c0463(0x148)]=_0x4c0463(0x10d),_0xb796ce['OCxAj']=function(_0xe7d0e4,_0x1c50cf){return _0xe7d0e4||_0x1c50cf;};const _0x2e46bf=_0xb796ce,_0x4520b4=_0xb74f87['testStepFinished'][_0x5b5b96][_0x4c0463(0x152)];let _0x5b58dc,_0x58f69;return _0x4520b4&&_0x2e46bf[_0x4c0463(0x15b)](_0x4520b4[_0x4c0463(0x143)][_0x4c0463(0x12d)]()['toLowerCase'](),_0x2e46bf[_0x4c0463(0x149)])&&(_0x5b58dc=_0x2e46bf[_0x4c0463(0x162)](_0x4520b4[_0x4c0463(0x12c)],undefined)?_0x4520b4['message']:_0x4520b4[_0x4c0463(0x12c)][_0x4c0463(0x130)],_0x58f69=_0x2e46bf[_0x4c0463(0x162)](_0x4520b4[_0x4c0463(0x12c)],undefined)?_0x2e46bf[_0x4c0463(0x104)]:_0x4520b4[_0x4c0463(0x130)][_0x4c0463(0x109)](/Assert/)?_0x2e46bf[_0x4c0463(0x148)]:_0x2e46bf[_0x4c0463(0x104)]),{'status':_0x4520b4[_0x4c0463(0x143)][_0x4c0463(0x144)](),'failureType':_0x2e46bf[_0x4c0463(0x169)](_0x58f69,null),'failureData':!_0x5b58dc?null:[_0x5b58dc]};}['getCucumberHookType'](_0x24d9fa,_0x3e50d6){const _0x204b69=a101_0x3d63d4,_0x43fab1={};_0x43fab1[_0x204b69(0x153)]=function(_0x3cb4cd,_0x51635b){return _0x3cb4cd===_0x51635b;},_0x43fab1[_0x204b69(0x125)]='AFTER_EACH',_0x43fab1[_0x204b69(0x128)]='BEFORE_EACH';const _0x4accd2=_0x43fab1;let _0x600c48=![];for(const _0x2b4235 of _0x24d9fa){_0x2b4235[_0x204b69(0xf3)]&&(_0x600c48=!![]);if(_0x4accd2[_0x204b69(0x153)](_0x3e50d6['id'],_0x2b4235['id']))return _0x600c48?_0x4accd2[_0x204b69(0x125)]:_0x4accd2[_0x204b69(0x128)];}}['getScenarioExamples']=(_0x4ad014,_0x402efc)=>{const _0x4cb11a=a101_0x3d63d4,_0x517439={};_0x517439[_0x4cb11a(0x142)]=function(_0x24fe33,_0xb0458c){return _0x24fe33===_0xb0458c;},_0x517439[_0x4cb11a(0x163)]=function(_0x13188b,_0x30a466){return _0x13188b===_0x30a466;},_0x517439[_0x4cb11a(0x137)]=function(_0x27ceef,_0x5adcea){return _0x27ceef>_0x5adcea;};const _0x4351d5=_0x517439;if(!(_0x402efc['astNodeIds']&&_0x4351d5['gQUCG'](_0x402efc['astNodeIds'][_0x4cb11a(0x147)],0x1)))return;const _0x1f3f62=_0x402efc[_0x4cb11a(0xfc)][0x0],_0xa748f1=_0x402efc[_0x4cb11a(0xfc)][0x1],_0x25ddc9=_0x4ad014[_0x4cb11a(0x10b)]&&_0x4ad014[_0x4cb11a(0x10b)][_0x4cb11a(0xf9)]?_0x4ad014[_0x4cb11a(0x10b)]['children']:undefined;let _0xb80e4b=[];_0x25ddc9&&_0x25ddc9[_0x4cb11a(0x146)](_0x306cd0=>{const _0x257b3c=_0x4cb11a;if(_0x306cd0['rule'])_0x306cd0[_0x257b3c(0x12f)]['children'][_0x257b3c(0x146)](_0x452fb4=>{const _0x35c766=_0x257b3c;if(_0x452fb4[_0x35c766(0x156)]&&_0x4351d5['QUDCs'](_0x452fb4[_0x35c766(0x156)]['id'],_0x1f3f62)&&_0x452fb4['scenario'][_0x35c766(0x10c)]){const _0x333113=_0x452fb4[_0x35c766(0x156)]['examples']['flatMap'](_0x2a2940=>_0x2a2940[_0x35c766(0x115)])[_0x35c766(0x15a)](_0xd8493=>_0xd8493['id']===_0xa748f1);let _0x13a711;_0x333113&&_0x333113[_0x35c766(0x114)]?_0x13a711=_0x333113['cells'][_0x35c766(0xe9)](_0x26562e=>_0x26562e[_0x35c766(0x15e)]):_0x13a711=[],_0x13a711&&(_0xb80e4b=_0x13a711);}});else{if(_0x306cd0[_0x257b3c(0x156)]&&_0x4351d5[_0x257b3c(0x163)](_0x306cd0['scenario']['id'],_0x1f3f62)&&_0x306cd0['scenario'][_0x257b3c(0x10c)]){const _0x5cc7fe=_0x306cd0[_0x257b3c(0x156)][_0x257b3c(0x10c)][_0x257b3c(0x165)](_0x20ede0=>_0x20ede0[_0x257b3c(0x115)])[_0x257b3c(0x15a)](_0x571f94=>_0x571f94['id']===_0xa748f1);let _0x207dee;_0x5cc7fe&&_0x5cc7fe['cells']?_0x207dee=_0x5cc7fe['cells'][_0x257b3c(0xe9)](_0x12914c=>_0x12914c[_0x257b3c(0x15e)]):_0x207dee=[],_0x207dee&&(_0xb80e4b=_0x207dee);}}});if(_0xb80e4b[_0x4cb11a(0x147)])return _0xb80e4b;return;};async[a101_0x3d63d4(0x110)](){const _0x536d5c=a101_0x3d63d4,_0x2b9bf9={'wkUQd':function(_0x167b2b){return _0x167b2b();}};if(this[_0x536d5c(0x13a)])return this[_0x536d5c(0x13f)];const _0xcdba3c=await _0x2b9bf9[_0x536d5c(0x105)](getGitMetaData);_0xcdba3c&&(this[_0x536d5c(0x13f)]=_0xcdba3c['root']),this[_0x536d5c(0x13a)]=!![];}}module['exports']=o11yClassErrorHandler(CucumberUtils,[a101_0x3d63d4(0x110),a101_0x3d63d4(0x116),a101_0x3d63d4(0x164),a101_0x3d63d4(0x16f),a101_0x3d63d4(0x16b),a101_0x3d63d4(0x102),a101_0x3d63d4(0x112),'createTestFrameworkData']);
|
|
1
|
+
function a101_0x5494(){const _0xdddb4e=['bstack','BSdaN','62085RhioUY','jwjGY','skipped','yxkjQ','failureData','javascript','filter','root','98291sodxMH','oVTab','ctpMh','Exception\x20in\x20createHookData:\x20','status','getHookResult','412xqoRZr','length','BtppR','CnTTk','../../../helpers/logger.js','tagExpression','rule','PQFWV','DJdoW','configureGit','pickleStepId','FAILED','failed','OUPhR','60UPNQrX','feature','_gitConfigured','Jwfrs','NMBVO','wLguj','PybkC','sendHook','zpxKB','tableBody','uvTOP','9454081JHVlJb','../TestInfo.js','AFTER_EACH','getHookRunEventData','sendTestRunEventForCucumber','exception','uuid','browserstack-node-agent/src/bin/cucumber-js/test.setup.js','exports','examples','WUdQw','createHookData','rzwyE','failure','vdkuF','testCaseFinished','every','push','includes','LsSfC','36459ADOKdJ','failure_type','split','BhuJY','KwJmQ','flatMap','VqYcR','6969457jBsBEu','finished_at','kVzdG','syYql','timestamp','zpTuq','backtrace','getTestUUID','value','sourceReference','scenario','nanos','cells','RaWcC','testStepResult','PFzxf','strip-ansi','1515468NlDncr','toString','hooks','winstonLogger','../../../helpers/helper.js','map','format','ObjVk','toLowerCase','SjUuV','4364466NsMtfr','hook','path','debug','astNodeIds','bgnhX','scQCx','createTestFrameworkData','result','HookRunStarted','pending','match','pGcpx','Exception\x20in\x20getHookRunEventData:\x20','duration_in_ms','tags','cxRAd','passed','Flsuu','name','1648LwYKJn','teYXd','getCucumberHookType','cucumber','lJknE','SKIPPED','4cBHkSn','JAPyv','message','forEach','testStepFinished','XUNNq','relative','AssertionError','children','failureType','../../../helpers/test-observability/error-handler.js','FNKnT','hookId','join','util','XAHrO','uri','getScenarioExamples','toISOString','UnhandledError','BEFORE_EACH','_gitConfigPath','test','find'];a101_0x5494=function(){return _0xdddb4e;};return a101_0x5494();}const a101_0x54f40f=a101_0x1be9;(function(_0x6d2b3d,_0x4a34fb){const _0x15b102=a101_0x1be9,_0x403ba6=_0x6d2b3d();while(!![]){try{const _0x14f482=-parseInt(_0x15b102(0x221))/0x1*(parseInt(_0x15b102(0x1ff))/0x2)+parseInt(_0x15b102(0x26c))/0x3+parseInt(_0x15b102(0x227))/0x4*(parseInt(_0x15b102(0x219))/0x5)+parseInt(_0x15b102(0x1e5))/0x6+parseInt(_0x15b102(0x240))/0x7+-parseInt(_0x15b102(0x1f9))/0x8*(-parseInt(_0x15b102(0x254))/0x9)+-parseInt(_0x15b102(0x235))/0xa*(parseInt(_0x15b102(0x25b))/0xb);if(_0x14f482===_0x4a34fb)break;else _0x403ba6['push'](_0x403ba6['shift']());}catch(_0x52c7a4){_0x403ba6['push'](_0x403ba6['shift']());}}}(a101_0x5494,0xaa887));const path=require(a101_0x54f40f(0x1e7)),util=require(a101_0x54f40f(0x20d)),{getGitMetaData,isUndefined,nestedKeyValue}=require(a101_0x54f40f(0x1df)),logger=require(a101_0x54f40f(0x22b))[a101_0x54f40f(0x1de)],{o11yClassErrorHandler}=require(a101_0x54f40f(0x209)),TestInfo=require(a101_0x54f40f(0x241)),hooksMap={};function a101_0x1be9(_0x1037c7,_0x45af28){const _0x5494fa=a101_0x5494();return a101_0x1be9=function(_0x1be958,_0x30aaf4){_0x1be958=_0x1be958-0x1dc;let _0x1cbc15=_0x5494fa[_0x1be958];return _0x1cbc15;},a101_0x1be9(_0x1037c7,_0x45af28);}class CucumberUtils{constructor(){const _0x3d86ae=a101_0x54f40f;this['_gitConfigured']=![],this[_0x3d86ae(0x214)]=null;}async[a101_0x54f40f(0x1ec)](_0x4a8386,_0x1b060b,_0xd81f7c,_0x4b4d88,_0x14a19e,_0x302607){const _0x1cdd57=a101_0x54f40f,_0xe9c029={'kVzdG':function(_0x2e8438,_0x30d925){return _0x2e8438===_0x30d925;},'pGcpx':_0x1cdd57(0x232),'WUdQw':'failed','DJdoW':function(_0x1e13d5,_0x38e8ae){return _0x1e13d5===_0x38e8ae;},'RXwNb':_0x1cdd57(0x1fe),'yxkjQ':_0x1cdd57(0x21b),'oVTab':function(_0x4ebeab,_0x46f8d4){return _0x4ebeab||_0x46f8d4;},'ObjVk':function(_0x3c626e,_0x135e25){return _0x3c626e+_0x135e25;},'lOnOj':function(_0x40262e,_0x3f244f){return _0x40262e+_0x3f244f;},'jqUCm':function(_0x2125f5,_0x5ec448){return _0x2125f5+_0x5ec448;},'bgnhX':_0x1cdd57(0x215),'wICQQ':_0x1cdd57(0x21e),'BSdaN':_0x1cdd57(0x1fc),'VqYcR':_0x1cdd57(0x1ef),'Flsuu':_0x1cdd57(0x1f6),'Jwfrs':function(_0x46b4ed,_0x18ff81){return _0x46b4ed!==_0x18ff81;},'BtppR':function(_0x27b137,_0x1e6bf0){return _0x27b137/_0x1e6bf0;},'BhuJY':_0x1cdd57(0x26b),'CnTTk':function(_0x5817c5,_0x1d975a){return _0x5817c5(_0x1d975a);},'MpTSV':'unknown','NMBVO':_0x1cdd57(0x206),'uvTOP':_0x1cdd57(0x212)},{feature:_0x56067f,scenario:_0x3be1f7,steps:_0x55888c,uuid:_0x7668c,startedAt:_0x556fec,finishedAt:_0x34cca4}=_0xe9c029[_0x1cdd57(0x222)](_0x4a8386,{}),_0x193bd4=this[_0x1cdd57(0x210)](_0x4b4d88,_0x1b060b);await this['configureGit']();const _0x281db0=_0x193bd4?_0xe9c029[_0x1cdd57(0x1e2)](_0xe9c029['lOnOj'](_0xe9c029['jqUCm'](_0x1b060b[_0x1cdd57(0x1f8)],'\x20('),_0x193bd4[_0x1cdd57(0x20c)](',\x20')),')'):_0x1b060b[_0x1cdd57(0x1f8)],_0x303e92={'id':_0x14a19e,'uuid':_0x14a19e,'startedAt':_0x556fec,'finishedAt':_0x34cca4,'type':_0xe9c029[_0x1cdd57(0x1ea)],'body':{'lang':_0xe9c029['wICQQ'],'code':null},'name':_0x281db0,'scopes':[_0x56067f&&_0x56067f['name']?_0x56067f['name']:''],'tags':_0x1b060b['tags']?_0x1b060b[_0x1cdd57(0x1f4)]['map'](({name:_0x5ea72c})=>_0x5ea72c):[],'file_name':_0x1b060b[_0x1cdd57(0x20f)],'location':_0x1b060b[_0x1cdd57(0x20f)],'vc_filepath':this['_gitConfigPath']&&_0x1b060b[_0x1cdd57(0x20f)]?path[_0x1cdd57(0x205)](this['_gitConfigPath'],_0x1b060b[_0x1cdd57(0x20f)]):null,'framework':_0xe9c029[_0x1cdd57(0x218)],'result':_0xe9c029[_0x1cdd57(0x25a)],'meta':{'feature':_0x56067f,'scenario':_0x3be1f7,'steps':_0x55888c,'examples':_0x193bd4},'customRerunParam':{'rerun_name':_0x281db0}};if(_0xd81f7c['testCaseFinished']&&_0x55888c){const _0xb1c003=_0xd81f7c[_0x1cdd57(0x24f)];let _0x1a978=_0xe9c029[_0x1cdd57(0x1f7)];_0x55888c[_0x1cdd57(0x250)](_0x994444=>{const _0x9880f0=_0x1cdd57;if(_0xe9c029[_0x9880f0(0x25d)](_0x994444['result'],_0xe9c029[_0x9880f0(0x1f1)]))return _0x1a978=_0xe9c029[_0x9880f0(0x24a)],_0xb1c003[_0x9880f0(0x24d)]=_0x994444[_0x9880f0(0x24d)],_0xb1c003['failureType']=_0x994444[_0x9880f0(0x208)],![];else{if(_0xe9c029[_0x9880f0(0x22f)](_0x994444['result'],_0xe9c029['RXwNb']))return _0x1a978=_0xe9c029[_0x9880f0(0x21c)],![];}return!![];}),_0x303e92['finishedAt']=new Date()[_0x1cdd57(0x211)](),_0x303e92[_0x1cdd57(0x1ed)]=_0x1a978;_0xb1c003['timestamp']&&_0xe9c029[_0x1cdd57(0x238)](_0xb1c003[_0x1cdd57(0x25f)][_0x1cdd57(0x266)],undefined)?_0x303e92[_0x1cdd57(0x1f3)]=_0xe9c029[_0x1cdd57(0x229)](_0xb1c003['timestamp'][_0x1cdd57(0x266)],0xf4240):_0x303e92[_0x1cdd57(0x1f3)]=undefined;if(_0xe9c029['kVzdG'](_0x1a978,_0xe9c029[_0x1cdd57(0x24a)])){const {default:_0x3da873}=await import(_0xe9c029[_0x1cdd57(0x257)]);_0x303e92[_0x1cdd57(0x24d)]=[{'backtrace':[_0xb1c003[_0x1cdd57(0x24d)]?_0xe9c029[_0x1cdd57(0x22a)](_0x3da873,_0xb1c003[_0x1cdd57(0x24d)]):_0xe9c029['MpTSV']]}],_0x303e92['failure_reason']=_0xb1c003[_0x1cdd57(0x24d)]?_0xe9c029[_0x1cdd57(0x22a)](_0x3da873,_0xb1c003[_0x1cdd57(0x24d)]):_0xb1c003['message'],_0xb1c003['failureType']&&(_0x303e92[_0x1cdd57(0x255)]=_0xb1c003['failureType'][_0x1cdd57(0x1f0)](/AssertError/)?_0xe9c029[_0x1cdd57(0x239)]:_0xe9c029[_0x1cdd57(0x23f)]);}}return _0x303e92;}[a101_0x54f40f(0x243)](_0x50708d,_0x32a79e,_0x130fe9,_0x24670d,_0x4b1deb,_0x15e39d){const _0x58cb75=a101_0x54f40f,_0x5b4fe0={'OUPhR':function(_0x51abc8,_0x351102){return _0x51abc8===_0x351102;},'zpTuq':'HookRunFinished','rzwyE':function(_0x4069d2,_0x126846,_0x130500){return _0x4069d2(_0x126846,_0x130500);},'cxRAd':_0x58cb75(0x264),'XUNNq':_0x58cb75(0x20f),'bdzAH':_0x58cb75(0x1ef),'lJknE':_0x58cb75(0x1e6),'FNKnT':_0x58cb75(0x21e),'scQCx':function(_0x10f8ed,_0x298832,_0x5c9018){return _0x10f8ed(_0x298832,_0x5c9018);},'vdkuF':_0x58cb75(0x236),'LsSfC':_0x58cb75(0x1f8),'tZEEa':'cucumber'};try{if(_0x5b4fe0[_0x58cb75(0x234)](_0x130fe9,_0x5b4fe0[_0x58cb75(0x260)])){const _0x1ef8ea=new Date()[_0x58cb75(0x211)](),_0x5727bd=hooksMap[_0x32a79e];if(!_0x5727bd)return;const _0x24b05e=_0x5727bd[_0x58cb75(0x216)](_0x4a20f2=>_0x4a20f2[_0x58cb75(0x246)]===_0x24670d['id']);if(!_0x24b05e)return;const _0x114f41=this['getHookResult'](_0x50708d,_0x32a79e);_0x24b05e['result']=_0x114f41[_0x58cb75(0x225)],_0x24b05e[_0x58cb75(0x25c)]=_0x1ef8ea,_0x24b05e['failure_type']=_0x114f41[_0x58cb75(0x208)];const _0x87c7ab={};return _0x87c7ab[_0x58cb75(0x261)]=_0x114f41[_0x58cb75(0x21d)],_0x24b05e['failure_data']=[_0x87c7ab],_0x24b05e;}const _0x152df9=TestInfo[_0x58cb75(0x262)](_0x32a79e),_0x2308a3=_0x50708d['hooks']['find'](_0xffad43=>_0xffad43['id']===_0x24670d['hookId']),_0xb8eaa8=_0x5b4fe0[_0x58cb75(0x24c)](nestedKeyValue,_0x2308a3,[_0x5b4fe0[_0x58cb75(0x1f5)],_0x5b4fe0[_0x58cb75(0x204)]]),_0x4cb006=new Date()[_0x58cb75(0x211)](),_0x4c7be8=_0x5b4fe0['bdzAH'],_0x12f8c7=_0x2308a3[_0x58cb75(0x22c)]?_0x2308a3[_0x58cb75(0x22c)][_0x58cb75(0x256)]('\x20')[_0x58cb75(0x21f)](_0x57b6db=>_0x57b6db[_0x58cb75(0x252)]('@')):[],_0x3ccd0d={'uuid':_0x24670d['id'],'type':_0x5b4fe0[_0x58cb75(0x1fd)],'hook_type':_0x15e39d,'name':_0x2308a3[_0x58cb75(0x1f8)],'body':{'lang':_0x5b4fe0[_0x58cb75(0x20a)],'code':null},'tags':_0x12f8c7,'test_run_id':_0x152df9,'scope':_0x5b4fe0[_0x58cb75(0x1eb)](nestedKeyValue,_0x4b1deb,[_0x5b4fe0[_0x58cb75(0x24e)],_0x5b4fe0['LsSfC']]),'scopes':[_0x5b4fe0[_0x58cb75(0x1eb)](nestedKeyValue,_0x4b1deb,[_0x5b4fe0[_0x58cb75(0x24e)],_0x5b4fe0[_0x58cb75(0x253)]])||''],'file_name':_0xb8eaa8,'location':_0xb8eaa8,'vc_filepath':this[_0x58cb75(0x214)]?path['relative'](this[_0x58cb75(0x214)],_0xb8eaa8):null,'result':_0x4c7be8,'started_at':_0x4cb006,'framework':_0x5b4fe0['tZEEa']};return _0x3ccd0d;}catch(_0x2838ba){logger[_0x58cb75(0x1e8)](_0x58cb75(0x1f2)+util[_0x58cb75(0x1e1)](_0x2838ba)+'\x20');}}async[a101_0x54f40f(0x24b)](_0x4c4c5e,_0x5f411f,_0x4a2290,_0x49e984,_0x152931,_0x284f43){const _0x2b107d=a101_0x54f40f,_0xfc0cc={'syYql':function(_0x36d634,_0x29095a){return _0x36d634===_0x29095a;},'sRwxz':_0x2b107d(0x1ee),'GaxmN':function(_0x447292,_0x542040,_0x145f90){return _0x447292(_0x542040,_0x145f90);},'wLguj':_0x2b107d(0x264),'XAHrO':_0x2b107d(0x20f),'lFNtw':_0x2b107d(0x247),'puLOh':_0x2b107d(0x217)};try{const _0x240372=_0x49e984[_0x2b107d(0x216)](_0x2c5fbb=>_0x2c5fbb['id']===_0x152931);if(!_0x240372['hookId'])return;const _0x518811=this[_0x2b107d(0x1fb)](_0x49e984,_0x240372),_0x5ad80d=this[_0x2b107d(0x243)](_0x4c4c5e,_0x5f411f,_0x4a2290,_0x240372,_0x284f43,_0x518811);if(!_0x5ad80d)return;_0xfc0cc['syYql'](_0x4a2290,_0xfc0cc['sRwxz'])&&(hooksMap[_0x5f411f]?hooksMap[_0x5f411f][_0x2b107d(0x251)](_0x5ad80d):hooksMap[_0x5f411f]=[_0x5ad80d]);const _0x20cb83=_0x4c4c5e[_0x2b107d(0x1dd)][_0x2b107d(0x216)](_0x2ce32d=>_0x2ce32d['id']===_0x240372[_0x2b107d(0x20b)]),_0x4896a4=_0xfc0cc['GaxmN'](nestedKeyValue,_0x20cb83,[_0xfc0cc[_0x2b107d(0x23a)],_0xfc0cc[_0x2b107d(0x20e)]]);if(!_0x4896a4)return;else{if(_0x4896a4[_0x2b107d(0x252)](_0xfc0cc['lFNtw']))return;}if(_0xfc0cc[_0x2b107d(0x25e)](_0x5ad80d['name'],_0xfc0cc['puLOh']))return;return _0x5ad80d;}catch(_0x523656){logger[_0x2b107d(0x1e8)](_0x2b107d(0x224)+util[_0x2b107d(0x1e1)](_0x523656)+'\x20');}}[a101_0x54f40f(0x226)](_0x459b45,_0x2b4c6f){const _0x2b8fa7=a101_0x54f40f,_0x5811c8={};_0x5811c8[_0x2b8fa7(0x26a)]=function(_0x1fbd96,_0x59255a){return _0x1fbd96===_0x59255a;},_0x5811c8[_0x2b8fa7(0x22e)]=_0x2b8fa7(0x233),_0x5811c8['SjUuV']=_0x2b8fa7(0x212),_0x5811c8[_0x2b8fa7(0x23b)]=_0x2b8fa7(0x206),_0x5811c8[_0x2b8fa7(0x268)]=function(_0x3477df,_0x9ef6a9){return _0x3477df||_0x9ef6a9;};const _0x44f310=_0x5811c8,_0x27e641=_0x459b45[_0x2b8fa7(0x203)][_0x2b4c6f][_0x2b8fa7(0x269)];let _0x13af0c,_0x56ba3d;return _0x27e641&&_0x44f310[_0x2b8fa7(0x26a)](_0x27e641[_0x2b8fa7(0x225)][_0x2b8fa7(0x1dc)]()[_0x2b8fa7(0x1e3)](),_0x44f310['PQFWV'])&&(_0x13af0c=_0x44f310[_0x2b8fa7(0x26a)](_0x27e641[_0x2b8fa7(0x245)],undefined)?_0x27e641[_0x2b8fa7(0x201)]:_0x27e641['exception'][_0x2b8fa7(0x201)],_0x56ba3d=_0x44f310['PFzxf'](_0x27e641[_0x2b8fa7(0x245)],undefined)?_0x44f310['SjUuV']:_0x27e641[_0x2b8fa7(0x201)][_0x2b8fa7(0x1f0)](/Assert/)?_0x44f310[_0x2b8fa7(0x23b)]:_0x44f310[_0x2b8fa7(0x1e4)]),{'status':_0x27e641['status'][_0x2b8fa7(0x1e3)](),'failureType':_0x44f310['RaWcC'](_0x56ba3d,null),'failureData':!_0x13af0c?null:[_0x13af0c]};}[a101_0x54f40f(0x1fb)](_0xae217e,_0x4cfc94){const _0x34ab28=a101_0x54f40f,_0x278d28={};_0x278d28[_0x34ab28(0x23d)]=function(_0x2e8bb5,_0xa37a96){return _0x2e8bb5===_0xa37a96;},_0x278d28[_0x34ab28(0x21a)]=_0x34ab28(0x242),_0x278d28['ctpMh']=_0x34ab28(0x213);const _0x7bb71a=_0x278d28;let _0x30f65b=![];for(const _0x5cff96 of _0xae217e){_0x5cff96[_0x34ab28(0x231)]&&(_0x30f65b=!![]);if(_0x7bb71a[_0x34ab28(0x23d)](_0x4cfc94['id'],_0x5cff96['id']))return _0x30f65b?_0x7bb71a[_0x34ab28(0x21a)]:_0x7bb71a[_0x34ab28(0x223)];}}['getScenarioExamples']=(_0x5bb8e9,_0x5a80de)=>{const _0x2385b5=a101_0x54f40f,_0x57fe4f={};_0x57fe4f[_0x2385b5(0x200)]=function(_0x2cc8a3,_0x32990a){return _0x2cc8a3===_0x32990a;},_0x57fe4f['GZLaK']=function(_0x244da0,_0x22fe81){return _0x244da0>_0x22fe81;};const _0x78b80a=_0x57fe4f;if(!(_0x5a80de[_0x2385b5(0x1e9)]&&_0x78b80a['GZLaK'](_0x5a80de[_0x2385b5(0x1e9)][_0x2385b5(0x228)],0x1)))return;const _0x5dcffb=_0x5a80de[_0x2385b5(0x1e9)][0x0],_0x13cd66=_0x5a80de[_0x2385b5(0x1e9)][0x1],_0x26c904=_0x5bb8e9[_0x2385b5(0x236)]&&_0x5bb8e9['feature'][_0x2385b5(0x207)]?_0x5bb8e9[_0x2385b5(0x236)][_0x2385b5(0x207)]:undefined;let _0xd07a8=[];_0x26c904&&_0x26c904[_0x2385b5(0x202)](_0x54455a=>{const _0x29008c=_0x2385b5,_0x296354={'teYXd':function(_0x3bb120,_0x184c6f){const _0x435936=a101_0x1be9;return _0x78b80a[_0x435936(0x200)](_0x3bb120,_0x184c6f);}};if(_0x54455a[_0x29008c(0x22d)])_0x54455a[_0x29008c(0x22d)]['children'][_0x29008c(0x202)](_0x25b81b=>{const _0x26b5cc=_0x29008c;if(_0x25b81b[_0x26b5cc(0x265)]&&_0x296354[_0x26b5cc(0x1fa)](_0x25b81b[_0x26b5cc(0x265)]['id'],_0x5dcffb)&&_0x25b81b[_0x26b5cc(0x265)][_0x26b5cc(0x249)]){const _0x31443e=_0x25b81b[_0x26b5cc(0x265)][_0x26b5cc(0x249)][_0x26b5cc(0x259)](_0x1bb17f=>_0x1bb17f[_0x26b5cc(0x23e)])[_0x26b5cc(0x216)](_0x19faf9=>_0x19faf9['id']===_0x13cd66);let _0x1a1633;_0x31443e&&_0x31443e['cells']?_0x1a1633=_0x31443e[_0x26b5cc(0x267)][_0x26b5cc(0x1e0)](_0x21500d=>_0x21500d[_0x26b5cc(0x263)]):_0x1a1633=[],_0x1a1633&&(_0xd07a8=_0x1a1633);}});else{if(_0x54455a[_0x29008c(0x265)]&&_0x78b80a['JAPyv'](_0x54455a[_0x29008c(0x265)]['id'],_0x5dcffb)&&_0x54455a[_0x29008c(0x265)][_0x29008c(0x249)]){const _0x3e328f=_0x54455a[_0x29008c(0x265)][_0x29008c(0x249)][_0x29008c(0x259)](_0x8e069b=>_0x8e069b[_0x29008c(0x23e)])[_0x29008c(0x216)](_0x211233=>_0x211233['id']===_0x13cd66);let _0x55693a;_0x3e328f&&_0x3e328f[_0x29008c(0x267)]?_0x55693a=_0x3e328f[_0x29008c(0x267)][_0x29008c(0x1e0)](_0x4501ac=>_0x4501ac['value']):_0x55693a=[],_0x55693a&&(_0xd07a8=_0x55693a);}}});if(_0xd07a8['length'])return _0xd07a8;return;};async[a101_0x54f40f(0x230)](){const _0x55995a=a101_0x54f40f,_0x1c7a0f={'KwJmQ':function(_0x487d48){return _0x487d48();}};if(this[_0x55995a(0x237)])return this[_0x55995a(0x214)];const _0x5b112b=await _0x1c7a0f[_0x55995a(0x258)](getGitMetaData);_0x5b112b&&(this[_0x55995a(0x214)]=_0x5b112b[_0x55995a(0x220)]),this['_gitConfigured']=!![];}}module[a101_0x54f40f(0x248)]=o11yClassErrorHandler(CucumberUtils,['configureGit',a101_0x54f40f(0x210),a101_0x54f40f(0x1fb),'getHookResult',a101_0x54f40f(0x23c),a101_0x54f40f(0x243),a101_0x54f40f(0x244),'createTestFrameworkData']);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a102_0x4a4967=a102_0x3ad4;(function(_0x21c323,_0x326c7f){const _0x13ac9e=a102_0x3ad4,_0x5f4a22=_0x21c323();while(!![]){try{const _0x52ad81=-parseInt(_0x13ac9e(0x102))/0x1+parseInt(_0x13ac9e(0x180))/0x2+parseInt(_0x13ac9e(0x12c))/0x3+-parseInt(_0x13ac9e(0x18f))/0x4+parseInt(_0x13ac9e(0x140))/0x5+-parseInt(_0x13ac9e(0x10f))/0x6*(parseInt(_0x13ac9e(0x10e))/0x7)+parseInt(_0x13ac9e(0x131))/0x8*(parseInt(_0x13ac9e(0x13d))/0x9);if(_0x52ad81===_0x326c7f)break;else _0x5f4a22['push'](_0x5f4a22['shift']());}catch(_0x1633e3){_0x5f4a22['push'](_0x5f4a22['shift']());}}}(a102_0x5166,0xd940d));const path=require(a102_0x4a4967(0x160)),util=require(a102_0x4a4967(0x179)),crypto=require(a102_0x4a4967(0x18c)),{getGitMetaData,isUndefined,nestedKeyValue}=require(a102_0x4a4967(0x155)),logger=require(a102_0x4a4967(0x14b))[a102_0x4a4967(0x12e)],{o11yClassErrorHandler}=require(a102_0x4a4967(0x1ae)),TestInfo=require(a102_0x4a4967(0x177)),{failureData,getFailureType}=require('../../../helpers/test-observability/utils'),stackTrace=require('stack-trace'),a102_0x17a554={};function a102_0x3ad4(_0x3110a5,_0x28a7f9){const _0x51664d=a102_0x5166();return a102_0x3ad4=function(_0x3ad477,_0x2b4d1b){_0x3ad477=_0x3ad477-0xfe;let _0x3d07da=_0x51664d[_0x3ad477];return _0x3d07da;},a102_0x3ad4(_0x3110a5,_0x28a7f9);}a102_0x17a554[a102_0x4a4967(0x134)]=a102_0x4a4967(0x17f),a102_0x17a554[a102_0x4a4967(0x176)]=a102_0x4a4967(0x1b0),a102_0x17a554['beforeEach']='BEFORE_EACH',a102_0x17a554[a102_0x4a4967(0x19f)]='AFTER_EACH';const HOOK_TYPES_MAP=a102_0x17a554,hooksMap={};class JestUtils{constructor(){const _0x23252e=a102_0x4a4967;this[_0x23252e(0x181)]=![],this[_0x23252e(0x11e)]=null;}async[a102_0x4a4967(0x10c)](_0x2cb894,_0xe4542e,_0x3275ac=a102_0x4a4967(0x16a),_0x336532=undefined){const _0x5a7425=a102_0x4a4967,_0x2d7231={'VSghA':_0x5a7425(0x1b2),'ncdWX':_0x5a7425(0x146),'buiGs':function(_0x18181d,_0x255c4e){return _0x18181d||_0x255c4e;},'hjKlv':_0x5a7425(0x15a),'jSIpd':function(_0x49526f,_0x597804){return _0x49526f!==_0x597804;},'vxhjX':_0x5a7425(0x137),'CDKKt':'err','Fyxxc':_0x5a7425(0x1ab),'NvDVC':function(_0x166054,_0x223580){return _0x166054===_0x223580;},'vwlrP':_0x5a7425(0x149),'vAFUi':_0x5a7425(0x174),'dkMUv':function(_0x657889,_0x1adf2d){return _0x657889>_0x1adf2d;},'VZwAu':_0x5a7425(0x197),'HSLIj':_0x5a7425(0x195),'eGSjI':function(_0x49b304,_0x3a555e){return _0x49b304!==_0x3a555e;},'UxQVS':function(_0x437d04,_0x5caaa6){return _0x437d04-_0x5caaa6;},'VxSlu':_0x5a7425(0x1a5),'KdXUX':function(_0x55e752,_0x585ba0){return _0x55e752>_0x585ba0;},'IXZgf':'jest','edwJC':function(_0x35b96b,_0x263509){return _0x35b96b(_0x263509);},'sbpVj':'TestRunFinished','TFuin':function(_0x59443d,_0x27aa98){return _0x59443d===_0x27aa98;}};logger['debug'](_0x5a7425(0x13b)+_0x3275ac+',\x20testIdentifier:\x20'+_0xe4542e);try{if(!_0x2cb894)return logger[_0x5a7425(0x1ba)](_0x2d7231[_0x5a7425(0x157)]),null;if(_0x2cb894['fn']&&_0x2cb894['fn'][_0x5a7425(0x173)]()['match'](/browserstack internal helper hook/))return null;await this['configureGit']();let _0x2bde03;try{_0x2bde03=this[_0x5a7425(0x191)](_0x2cb894);if(_0x2bde03&&_0x2bde03[_0x5a7425(0x153)](_0x2d7231[_0x5a7425(0x129)]))return null;}catch(_0x3102db){logger[_0x5a7425(0x1ba)]('Failed\x20to\x20get\x20root\x20parent\x20file:\x20'+util[_0x5a7425(0x17c)](_0x3102db)),_0x2bde03=null;}const _0x2fa502=this['getHierarchy'](_0x2cb894),_0x4c3e3e=this['getName'](_0x2cb894),_0x4d0fed=_0x2d7231[_0x5a7425(0x19b)](_0x2bde03,_0x2d7231[_0x5a7425(0x1b9)]);let _0x5a6d72=[];const _0x88936d=_0x2cb894[_0x5a7425(0x139)]||_0x2cb894[_0x5a7425(0x1ac)];if(_0x2d7231[_0x5a7425(0x119)](_0x88936d,undefined))_0x5a6d72=[_0x88936d,_0x2d7231[_0x5a7425(0x189)]];else _0x2d7231[_0x5a7425(0x119)](_0x336532,undefined)&&(_0x5a6d72=[_0x336532,_0x2d7231[_0x5a7425(0x144)]]);const _0x323267=_0x2d7231[_0x5a7425(0x119)](_0x88936d,undefined)?util[_0x5a7425(0x1bb)](_0x88936d[0x0]):_0x2d7231['jSIpd'](_0x336532,undefined)?_0x336532[_0x5a7425(0x173)]():undefined;let _0x281261=_0x2d7231[_0x5a7425(0x19d)];if(_0x2d7231['NvDVC'](_0x3275ac,_0x2d7231[_0x5a7425(0x12d)]))_0x281261=_0x2d7231[_0x5a7425(0x112)];else _0x88936d&&_0x2d7231[_0x5a7425(0x175)](_0x88936d['length'],0x0)?_0x281261=_0x2d7231[_0x5a7425(0x16b)]:_0x281261=_0x2d7231[_0x5a7425(0x104)];let _0x3cab16=null;if(_0x2d7231[_0x5a7425(0x14f)](_0x2cb894['duration'],undefined))_0x3cab16=_0x2cb894[_0x5a7425(0x194)];else(_0x3275ac[_0x5a7425(0x1a6)](/Finished/)||_0x3275ac['match'](/Skipped/))&&(_0x2cb894['started_at']&&(_0x3cab16=_0x2d7231['UxQVS'](Date[_0x5a7425(0x13c)](),new Date(_0x2cb894[_0x5a7425(0x1bc)])[_0x5a7425(0x18b)]())));const _0x39345a=_0x2cb894['fn']?_0x2cb894['fn']['toString']():null,_0x4f45b9={'id':_0xe4542e,'uuid':_0xe4542e,'startedAt':_0x2cb894[_0x5a7425(0x1bc)]||new Date()[_0x5a7425(0x170)](),'finishedAt':_0x3275ac[_0x5a7425(0x1a6)](/Finished/)||_0x3275ac['match'](/Skipped/)?new Date()['toISOString']():null,'type':_0x2d7231['vxhjX'],'body':{'lang':_0x2d7231['VxSlu'],'code':_0x39345a},'name':_0x4c3e3e,'errorsDetailed':_0x2d7231[_0x5a7425(0x109)](_0x88936d?.[_0x5a7425(0x105)],0x0)?_0x88936d[0x0]:_0x88936d?_0x88936d:undefined,'scopes':_0x2fa502,'file_name':_0x4d0fed,'location':_0x4d0fed,'vc_filepath':this[_0x5a7425(0x11e)]&&_0x2bde03?path[_0x5a7425(0x152)](this[_0x5a7425(0x11e)],_0x2bde03):null,'framework':_0x2d7231[_0x5a7425(0x10d)],'result':_0x281261,'failure_reason':_0x323267,'duration_in_ms':_0x3cab16,'failure':failureData[_0x5a7425(0x165)](null,_0x5a6d72),'failure_type':!_0x323267?null:_0x2d7231[_0x5a7425(0x17d)](getFailureType,_0x323267),'retry_of':_0x2cb894[_0x5a7425(0x151)]||null,'customRerunParam':{'rerun_name':_0x4c3e3e}};_0x2d7231[_0x5a7425(0x12a)](_0x3275ac,_0x2d7231[_0x5a7425(0x12d)])&&!_0x4f45b9[_0x5a7425(0x17a)]&&(_0x4f45b9[_0x5a7425(0x17a)]=_0x4f45b9['finishedAt']);const _0x1f4966=_0x4f45b9[_0x5a7425(0x124)]&&_0x4f45b9[_0x5a7425(0x124)][0x0];return _0x1f4966&&(_0x4f45b9[_0x5a7425(0x15f)]=_0x1f4966[_0x5a7425(0x13a)],_0x4f45b9['failure_reason_expanded']=_0x1f4966[_0x5a7425(0x16c)]),(_0x2d7231[_0x5a7425(0x12a)](_0x3275ac,_0x2d7231[_0x5a7425(0x154)])||_0x2d7231['TFuin'](_0x3275ac,_0x2d7231[_0x5a7425(0x12d)]))&&(_0x2cb894[_0x5a7425(0x178)]&&(_0x4f45b9[_0x5a7425(0x178)]=_0x2cb894[_0x5a7425(0x178)])),_0x4f45b9;}catch(_0xc63daf){return logger[_0x5a7425(0x1ba)](_0x5a7425(0x11c)+util['format'](_0xc63daf)),null;}}async[a102_0x4a4967(0x1b7)](_0x16c57d,_0x5ca1ef,_0x3094f7,_0x4c6450){const _0x22d394=a102_0x4a4967,_0x3e36b7={'YrowD':_0x22d394(0x16f),'Hkxau':'jest-circus','vwBRQ':_0x22d394(0x128),'NqnZH':_0x22d394(0x1b3),'xAZIw':_0x22d394(0x1ab),'fjjbY':function(_0x53bb12,_0xd4b8dc){return _0x53bb12===_0xd4b8dc;},'CgmAZ':_0x22d394(0x11b),'CKaHx':function(_0x3bc2d6,_0x5a8fca){return _0x3bc2d6>_0x5a8fca;},'iLBBf':_0x22d394(0x197),'uXUcg':function(_0x23b18a,_0x2b7bea){return _0x23b18a(_0x2b7bea);},'yZorq':'test','nXxox':_0x22d394(0x195),'zlYpF':_0x22d394(0x19c),'uVsJW':_0x22d394(0x1a5),'iMvfx':'jest','SIGRb':_0x22d394(0x13f)};logger[_0x22d394(0x1ba)](_0x22d394(0x156)+_0x3094f7+',\x20hookUUID:\x20'+_0x5ca1ef+_0x22d394(0x1ad)+_0x4c6450);try{if(!_0x16c57d)return logger[_0x22d394(0x1ba)](_0x3e36b7[_0x22d394(0x1b6)]),null;if(this['isJestInternalHook'](_0x16c57d))return null;await this[_0x22d394(0x18d)]();let _0x332734=null;try{_0x332734=this['getRootParentFile'](_0x16c57d);if(_0x332734&&_0x332734[_0x22d394(0x153)](_0x3e36b7[_0x22d394(0x111)]))return null;if(_0x332734&&_0x332734[_0x22d394(0x153)](_0x3e36b7[_0x22d394(0x1b4)]))return null;}catch(_0x59a1d4){logger[_0x22d394(0x1ba)](_0x22d394(0x190)+util['format'](_0x59a1d4));}const _0x41ec11=this['getName'](_0x16c57d),_0x1579eb=_0x16c57d[_0x22d394(0x108)]||_0x3e36b7[_0x22d394(0x18e)],_0x5d8032=HOOK_TYPES_MAP[_0x1579eb]||_0x1579eb[_0x22d394(0x12b)](),_0x54b37f=_0x16c57d[_0x22d394(0x169)]&&_0x16c57d[_0x22d394(0x169)][_0x22d394(0x1b8)]?_0x16c57d['parent']['name']:'';let _0x248090=_0x3e36b7[_0x22d394(0x150)],_0x53d65a=null,_0x6d9081=null,_0x3f3b73=null,_0x3e86a6=null;_0x3e36b7['fjjbY'](_0x3094f7,_0x3e36b7[_0x22d394(0x117)])&&(_0x3e86a6=new Date()[_0x22d394(0x170)](),_0x16c57d[_0x22d394(0x139)]&&_0x3e36b7['CKaHx'](_0x16c57d[_0x22d394(0x139)][_0x22d394(0x105)],0x0)?(_0x248090=_0x3e36b7['iLBBf'],_0x6d9081=util[_0x22d394(0x1bb)](_0x16c57d['errorsDetailed'][0x0]),_0x53d65a=_0x3e36b7[_0x22d394(0x136)](getFailureType,_0x6d9081),_0x3f3b73=failureData['apply'](null,[_0x16c57d[_0x22d394(0x139)],_0x3e36b7[_0x22d394(0xfe)]])):_0x248090=_0x3e36b7[_0x22d394(0x158)]);const _0xf74f16={'uuid':_0x5ca1ef,'type':_0x3e36b7[_0x22d394(0x188)],'hook_type':_0x5d8032,'name':_0x41ec11,'body':{'lang':_0x3e36b7[_0x22d394(0x1a4)],'code':_0x16c57d['fn']?_0x16c57d['fn'][_0x22d394(0x173)]():null},'tags':[],'test_run_id':_0x4c6450,'scope':_0x54b37f,'scopes':[_0x54b37f],'file_name':_0x332734,'location':_0x332734,'vc_filepath':this[_0x22d394(0x11e)]&&_0x332734?path[_0x22d394(0x152)](this[_0x22d394(0x11e)],_0x332734):null,'result':_0x248090,'started_at':_0x16c57d[_0x22d394(0x1bc)]||new Date()[_0x22d394(0x170)](),'finished_at':_0x3e86a6,'failure_type':_0x53d65a,'failure_reason':_0x6d9081,'failure_data':_0x3f3b73,'framework':_0x3e36b7[_0x22d394(0x11a)]};return _0x3e36b7['fjjbY'](_0x3094f7,_0x3e36b7[_0x22d394(0x198)])&&(hooksMap[_0x4c6450]?hooksMap[_0x4c6450]['push'](_0xf74f16):hooksMap[_0x4c6450]=[_0xf74f16]),_0xf74f16;}catch(_0x2f55eb){return logger['debug'](_0x22d394(0x193)+util[_0x22d394(0x17c)](_0x2f55eb)),null;}}[a102_0x4a4967(0x1a1)](_0x50fe3a,_0x41c53c,_0x22f391){const _0x44369c=a102_0x4a4967,_0x10019c={'nuGmC':function(_0x477ae2,_0x32a209){return _0x477ae2>_0x32a209;},'LbSSX':_0x44369c(0x197),'wxvGq':function(_0x4ed05c,_0x11255d){return _0x4ed05c(_0x11255d);},'CTZPv':_0x44369c(0x137),'HicKv':_0x44369c(0x195)};try{const _0xd44d9c=hooksMap[_0x50fe3a];if(!_0xd44d9c)return null;const _0x39194a=_0xd44d9c[_0x44369c(0x185)](_0x3602ea=>_0x3602ea[_0x44369c(0x196)]===_0x41c53c);if(!_0x39194a)return null;return _0x39194a[_0x44369c(0x17e)]=new Date()[_0x44369c(0x170)](),_0x22f391[_0x44369c(0x139)]&&_0x10019c[_0x44369c(0x1a3)](_0x22f391[_0x44369c(0x139)]['length'],0x0)?(_0x39194a[_0x44369c(0x11f)]=_0x10019c[_0x44369c(0x186)],_0x39194a[_0x44369c(0x16e)]=util['inspect'](_0x22f391[_0x44369c(0x139)][0x0]),_0x39194a[_0x44369c(0x141)]=_0x10019c['wxvGq'](getFailureType,_0x39194a[_0x44369c(0x16e)]),_0x39194a[_0x44369c(0x1b5)]=failureData[_0x44369c(0x165)](null,[_0x22f391[_0x44369c(0x139)],_0x10019c[_0x44369c(0x17b)]])):_0x39194a['result']=_0x10019c['HicKv'],_0x39194a;}catch(_0x3d21a2){return logger[_0x44369c(0x1ba)](_0x44369c(0x19a)+util[_0x44369c(0x17c)](_0x3d21a2)),null;}}['getName'](_0x4d1d21){const _0xc3a564=a102_0x4a4967,_0x4019f3={};_0x4019f3[_0xc3a564(0x130)]=function(_0x201b2c,_0x12e72b){return _0x201b2c!==_0x12e72b;},_0x4019f3[_0xc3a564(0x123)]='test',_0x4019f3[_0xc3a564(0x10a)]=_0xc3a564(0x187);const _0x55ae77=_0x4019f3;if(_0x55ae77[_0xc3a564(0x130)](_0x4d1d21[_0xc3a564(0x108)],_0x55ae77['SIQkl']))return'\x22'+_0x4d1d21[_0xc3a564(0x108)]+_0xc3a564(0x163)+(_0x4d1d21[_0xc3a564(0x169)]&&_0x4d1d21['parent'][_0xc3a564(0x1b8)])+'\x22';return _0x4d1d21[_0xc3a564(0x1b8)]||_0x55ae77['poFhX'];}[a102_0x4a4967(0x1a8)](_0x2d067b){const _0xdfa17f=a102_0x4a4967,_0x3c7706={};_0x3c7706[_0xdfa17f(0x14d)]=function(_0x1711f1,_0x10f9df){return _0x1711f1!==_0x10f9df;},_0x3c7706[_0xdfa17f(0x114)]=function(_0x438a41,_0x391e8f){return _0x438a41!==_0x391e8f;},_0x3c7706['CkxyF']=_0xdfa17f(0x147);const _0x5b8ea3=_0x3c7706,_0x1c7f25=[];if(_0x2d067b&&_0x2d067b[_0xdfa17f(0x169)]){let _0x3353ab=_0x2d067b[_0xdfa17f(0x169)];while(_0x3353ab&&_0x3353ab[_0xdfa17f(0x1b8)]&&_0x5b8ea3[_0xdfa17f(0x14d)](_0x3353ab['name'],'')&&_0x5b8ea3[_0xdfa17f(0x114)](_0x3353ab['name'],_0x5b8ea3[_0xdfa17f(0x166)])){_0x1c7f25['push'](_0x3353ab[_0xdfa17f(0x1b8)]),_0x3353ab=_0x3353ab[_0xdfa17f(0x169)];}}return _0x1c7f25[_0xdfa17f(0x168)](),_0x1c7f25;}[a102_0x4a4967(0x191)](_0x9b8753){const _0x194511=a102_0x4a4967;if(_0x9b8753[_0x194511(0x103)])try{const _0x420dc7=stackTrace[_0x194511(0x192)][_0x194511(0x132)](stackTrace,_0x9b8753[_0x194511(0x103)]);if(_0x420dc7[0x0]&&_0x420dc7[0x0][_0x194511(0x15d)])return _0x420dc7[0x0][_0x194511(0x15d)]();}catch(_0x4fcbeb){logger[_0x194511(0x1ba)](_0x194511(0x1aa)+util[_0x194511(0x17c)](_0x4fcbeb));}if(_0x9b8753[_0x194511(0x16d)])return _0x9b8753[_0x194511(0x16d)];return null;}[a102_0x4a4967(0x18a)](_0x557dca){const _0x5a8dd5=a102_0x4a4967,_0x23c079={};_0x23c079[_0x5a8dd5(0x162)]='jest-circus',_0x23c079['kQXbN']=function(_0x10ffdc,_0x280407){return _0x10ffdc===_0x280407;},_0x23c079['kCtdq']='ROOT_DESCRIBE_BLOCK';const _0x2a193f=_0x23c079;try{const _0x5cd57f=this[_0x5a8dd5(0x191)](_0x557dca);if(_0x5cd57f&&_0x5cd57f['includes'](_0x2a193f['yERMh']))return!![];if(!_0x5cd57f){const _0x3ee2dd=_0x557dca[_0x5a8dd5(0x169)]&&_0x557dca['parent'][_0x5a8dd5(0x1b8)];if(_0x2a193f[_0x5a8dd5(0x1a9)](_0x3ee2dd,_0x2a193f[_0x5a8dd5(0x10b)]))return!![];}}catch(_0x36c72b){logger[_0x5a8dd5(0x1ba)]('Exception\x20in\x20checking\x20if\x20hook\x20is\x20internal:\x20'+util['format'](_0x36c72b));}return![];}[a102_0x4a4967(0x15e)](_0x4fb19f=null){const _0x432127=a102_0x4a4967;try{const _0x1a5315=_0x4fb19f||global[_0x432127(0x15b)]||{};if(global[_0x432127(0x14a)])return global[_0x432127(0x14a)];if(_0x1a5315?.[_0x432127(0x15c)]?.['testAnalyticsId'])return _0x1a5315[_0x432127(0x15c)][_0x432127(0x126)];if(_0x1a5315?.[_0x432127(0x15c)]?.['id'])return _0x1a5315['currentTest']['id'];return null;}catch(_0x12f44b){return logger[_0x432127(0x1ba)](_0x432127(0x182)+util[_0x432127(0x17c)](_0x12f44b)),null;}}async['configureGit'](){const _0x33090a=a102_0x4a4967,_0x179a92={'uVpkD':function(_0x3b71d0){return _0x3b71d0();}};if(this[_0x33090a(0x181)])return this[_0x33090a(0x11e)];const _0x91be8c=await _0x179a92[_0x33090a(0x161)](getGitMetaData);_0x91be8c&&(this['_gitConfigPath']=_0x91be8c['root']),this[_0x33090a(0x181)]=!![];}[a102_0x4a4967(0x135)](_0x526584){hooksMap[_0x526584]&&delete hooksMap[_0x526584];}['extractTestFilePath'](_0x1a99ec){const _0x52fa3d=a102_0x4a4967,_0x1994fd={'UsZUB':_0x52fa3d(0x146),'PLrLJ':function(_0x1e2b4a,_0x287e77){return _0x1e2b4a(_0x287e77);},'FZDBl':_0x52fa3d(0x159)};if(_0x1a99ec[_0x52fa3d(0x16d)])return _0x1a99ec[_0x52fa3d(0x16d)];if(_0x1a99ec[_0x52fa3d(0x103)]){try{const _0x5b3878=stackTrace[_0x52fa3d(0x192)](_0x1a99ec[_0x52fa3d(0x103)]);if(_0x5b3878[0x0]&&_0x5b3878[0x0][_0x52fa3d(0x15d)]){const _0x480625=_0x5b3878[0x0][_0x52fa3d(0x15d)]();if(_0x480625&&!_0x480625[_0x52fa3d(0x153)](_0x1994fd['UsZUB']))return _0x480625;}}catch(_0x316a69){logger[_0x52fa3d(0x1ba)](_0x52fa3d(0x164)+util['format'](_0x316a69));}if(_0x1a99ec[_0x52fa3d(0x103)][_0x52fa3d(0x121)]){const _0x3e4615=_0x1a99ec[_0x52fa3d(0x103)]['stack']['split']('\x0a');for(const _0x7e508 of _0x3e4615){const _0x4df002=_0x7e508['match'](/at (.+?):\d+:\d+/);if(_0x4df002&&_0x4df002[0x1]&&!_0x4df002[0x1]['includes'](_0x1994fd['UsZUB']))return _0x4df002[0x1];}}}let _0x41e3cd=_0x1a99ec[_0x52fa3d(0x169)];while(_0x41e3cd){if(_0x41e3cd[_0x52fa3d(0x16d)])return _0x41e3cd[_0x52fa3d(0x16d)];if(_0x41e3cd[_0x52fa3d(0x103)])try{const _0x449402=stackTrace[_0x52fa3d(0x192)](_0x41e3cd[_0x52fa3d(0x103)]);if(_0x449402[0x0]&&_0x449402[0x0][_0x52fa3d(0x15d)]){const _0x1ae11c=_0x449402[0x0][_0x52fa3d(0x15d)]();if(_0x1ae11c&&!_0x1ae11c[_0x52fa3d(0x153)](_0x1994fd['UsZUB']))return _0x1ae11c;}}catch(_0x17890c){}_0x41e3cd=_0x41e3cd[_0x52fa3d(0x169)];}try{const _0x2bc072=_0x1994fd[_0x52fa3d(0x199)](require,_0x1994fd['FZDBl']);if(_0x2bc072&&_0x2bc072[_0x52fa3d(0x118)]){const _0x491dcf=_0x2bc072[_0x52fa3d(0x118)]();if(_0x491dcf&&_0x491dcf[_0x52fa3d(0x115)])return _0x491dcf[_0x52fa3d(0x115)];}}catch(_0x5aa872){logger[_0x52fa3d(0x1ba)](_0x52fa3d(0x1a2)+util[_0x52fa3d(0x17c)](_0x5aa872));}return null;}[a102_0x4a4967(0x110)](_0x440fe2){const _0x12547f=a102_0x4a4967,_0x45bc73={};_0x45bc73[_0x12547f(0x14e)]=_0x12547f(0x106),_0x45bc73[_0x12547f(0x1a7)]=function(_0x3feec4,_0x46073e){return _0x3feec4!==_0x46073e;},_0x45bc73[_0x12547f(0x14c)]=_0x12547f(0x147),_0x45bc73[_0x12547f(0x172)]='jest-circus',_0x45bc73[_0x12547f(0x125)]=_0x12547f(0x127),_0x45bc73['UpKbO']=_0x12547f(0x101);const _0x41e85=_0x45bc73;try{if(!_0x440fe2)return logger[_0x12547f(0x183)](_0x41e85[_0x12547f(0x14e)]),null;const _0x13c0f0=_0x440fe2[_0x12547f(0x113)]||_0x440fe2[_0x12547f(0x1b8)]||_0x440fe2['title']||_0x440fe2[_0x12547f(0x12f)];let _0x41eb4c=_0x13c0f0;if(_0x440fe2[_0x12547f(0x169)]&&_0x440fe2['parent'][_0x12547f(0x1b8)]&&_0x41e85[_0x12547f(0x1a7)](_0x440fe2[_0x12547f(0x169)][_0x12547f(0x1b8)],_0x41e85['DPJgw'])){const _0x4372ed=_0x440fe2[_0x12547f(0x1b8)]||_0x440fe2[_0x12547f(0x19e)];_0x4372ed&&(_0x41eb4c=_0x440fe2[_0x12547f(0x169)][_0x12547f(0x1b8)]+'\x20'+_0x4372ed);}let _0x51db85=_0x440fe2[_0x12547f(0x115)];if(!_0x51db85&&_0x440fe2[_0x12547f(0x103)]){try{const _0x924ac1=stackTrace['parse'](_0x440fe2['asyncError']);if(_0x924ac1[0x0]&&_0x924ac1[0x0][_0x12547f(0x15d)]){const _0x55e9a3=_0x924ac1[0x0][_0x12547f(0x15d)]();_0x55e9a3&&!_0x55e9a3[_0x12547f(0x153)](_0x41e85['riYdl'])&&(_0x51db85=_0x55e9a3);}}catch(_0x3309a2){logger['debug'](_0x12547f(0x164)+util[_0x12547f(0x17c)](_0x3309a2));}if(!_0x51db85&&_0x440fe2[_0x12547f(0x103)]['stack']){const _0x235d6a=_0x440fe2['asyncError']['stack'][_0x12547f(0x167)]('\x0a');for(const _0x5324ec of _0x235d6a){const _0x531f8d=_0x5324ec[_0x12547f(0x1a6)](/at (.+?):\d+:\d+/);if(_0x531f8d&&_0x531f8d[0x1]&&!_0x531f8d[0x1][_0x12547f(0x153)](_0x41e85[_0x12547f(0x172)])){_0x51db85=_0x531f8d[0x1];break;}}}}const _0x17f5d3=_0x51db85+'::'+_0x41eb4c,_0x2f357b=crypto['createHash'](_0x41e85[_0x12547f(0x125)])[_0x12547f(0x133)](_0x17f5d3)[_0x12547f(0x138)](_0x41e85[_0x12547f(0x11d)])[_0x12547f(0x116)](0x0,0x8),_0xde70a2=process[_0x12547f(0x148)]+_0x12547f(0x1a0)+_0x2f357b;return logger[_0x12547f(0x1ba)](_0x12547f(0xff)+_0xde70a2+_0x12547f(0x13e)+_0x17f5d3),_0xde70a2;}catch(_0x405cfa){return logger[_0x12547f(0x183)](_0x12547f(0x100)+util[_0x12547f(0x17c)](_0x405cfa)),null;}}[a102_0x4a4967(0x171)](_0x2aed64){const _0x50eb8e=a102_0x4a4967,_0x241d47={};_0x241d47[_0x50eb8e(0x122)]='[jestUtils]\x20No\x20test\x20object\x20provided';const _0x215391=_0x241d47;if(!_0x2aed64)return logger[_0x50eb8e(0x1ba)](_0x215391['tLkvi']),null;const _0x4a9b53=this[_0x50eb8e(0x142)](_0x2aed64),_0x8b8f59={};_0x8b8f59[_0x50eb8e(0x1b8)]=_0x2aed64['name']||_0x2aed64[_0x50eb8e(0x19e)],_0x8b8f59[_0x50eb8e(0x169)]=_0x2aed64[_0x50eb8e(0x169)],_0x8b8f59[_0x50eb8e(0x115)]=_0x4a9b53,_0x8b8f59[_0x50eb8e(0x103)]=_0x2aed64[_0x50eb8e(0x103)];const _0x3637d2=_0x8b8f59;return this['createJestTestIdentifier'](_0x3637d2);}[a102_0x4a4967(0x1b1)](_0x5bd198,_0x490f56=null){const _0x5729b3=a102_0x4a4967,_0x13ff52={};_0x13ff52[_0x5729b3(0x120)]=_0x5729b3(0x184);const _0x1b0cad=_0x13ff52;if(!_0x5bd198)return logger[_0x5729b3(0x1ba)](_0x1b0cad[_0x5729b3(0x120)]),_0x490f56;if(_0x5bd198[_0x5729b3(0x1af)])return logger[_0x5729b3(0x1ba)](_0x5729b3(0x143)+_0x5bd198['testIdentifier']),_0x5bd198[_0x5729b3(0x1af)];return this[_0x5729b3(0x110)](_0x5bd198)||_0x490f56;}}function a102_0x5166(){const _0x1efbe4=['zlYpF','vxhjX','isJestInternalHook','getTime','crypto','configureGit','NqnZH','1084164VJgbxi','Failed\x20to\x20get\x20hook\x20file\x20path:\x20','getRootParentFile','parse','Exception\x20in\x20createHookData:\x20','duration','passed','uuid','failed','SIGRb','PLrLJ','Exception\x20in\x20getHookRunEventData:\x20','buiGs','hook','Fyxxc','title','afterEach',':jest-','getHookRunEventData','[jestUtils]\x20expect.getState()\x20not\x20available:\x20','nuGmC','uVsJW','javascript','match','Ubcun','getHierarchy','kQXbN','Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','pending','errors',',\x20testRunId:\x20','../../../helpers/test-observability/error-handler.js','testIdentifier','AFTER_ALL','recreateIdentifierFromTestInfo','No\x20test\x20data\x20provided\x20for\x20jest\x20test\x20event','unknown','vwBRQ','failure_data','YrowD','createHookData','name','hjKlv','debug','inspect','started_at','yZorq','[jestUtils]\x20Created\x20identifier:\x20','[jestUtils]\x20Error\x20creating\x20identifier:\x20','hex','1394434iSMwxc','asyncError','HSLIj','length','[jestUtils]\x20No\x20testInfo\x20provided,\x20cannot\x20create\x20identifier','exports','type','KdXUX','poFhX','kCtdq','createTestFrameworkData','IXZgf','112UfOrBd','654894twVwbB','createJestTestIdentifier','Hkxau','vAFUi','fullName','WOWKm','testPath','substring','CgmAZ','getState','jSIpd','iMvfx','HookRunFinished','Exception\x20in\x20createTestFrameworkData:\x20','UpKbO','_gitConfigPath','result','LSAIC','stack','tLkvi','SIQkl','failure','xcpff','testAnalyticsId','md5','browserstack-node-agent/src/bin/jest','ncdWX','NvDVC','toUpperCase','2573466SNDYWZ','vwlrP','winstonLogger','displayName','xtqRD','4240aJrnzX','call','update','beforeAll','clearHooksMap','uXUcg','test','digest','errorsDetailed','backtrace','Creating\x20test\x20framework\x20data\x20for\x20eventType:\x20','now','29349xEibDv','\x20from\x20compositeKey:\x20','HookRunStarted','4420010vsbuNd','failure_type','extractTestFilePath','[jestUtils]\x20Using\x20stored\x20testIdentifier:\x20','CDKKt','getName','jest-circus','ROOT_DESCRIBE_BLOCK','pid','TestRunSkipped','__jestCurrentTestIdentifier','../../../helpers/logger.js','DPJgw','IudIz','GtaYF','eGSjI','xAZIw','retryOf','relative','includes','sbpVj','../../../helpers/helper.js','Creating\x20hook\x20data\x20for\x20eventType:\x20','VSghA','nXxox','expect','File\x20path\x20could\x20not\x20be\x20found','__workerDetails','currentTest','getFileName','getTestIdentifier','failure_backtrace','path','uVpkD','yERMh','\x22\x20hook\x20for\x20\x22','[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','apply','CkxyF','split','reverse','parent','TestRunFinished','VZwAu','expanded','file','failure_reason','No\x20hook\x20data\x20provided\x20for\x20jest\x20hook\x20event','toISOString','createIdentifierFromJestTest','riYdl','toString','skipped','dkMUv','afterAll','../TestInfo.js','hooks','util','startedAt','CTZPv','format','edwJC','finished_at','BEFORE_ALL','1663148sGSYCW','_gitConfigured','[jestUtils]\x20Error\x20getting\x20test\x20identifier:\x20','error','[jestUtils]\x20No\x20testInfo\x20provided\x20for\x20recreation','find','LbSSX','Unknown\x20Test'];a102_0x5166=function(){return _0x1efbe4;};return a102_0x5166();}module[a102_0x4a4967(0x107)]=o11yClassErrorHandler(JestUtils,[a102_0x4a4967(0x18d),'getHierarchy',a102_0x4a4967(0x191),a102_0x4a4967(0x145),a102_0x4a4967(0x18a),a102_0x4a4967(0x15e),a102_0x4a4967(0x10c),'createHookData','getHookRunEventData',a102_0x4a4967(0x135),'extractTestFilePath',a102_0x4a4967(0x110),a102_0x4a4967(0x171),a102_0x4a4967(0x1b1)]);
|
|
1
|
+
const a102_0x4c8002=a102_0x2420;(function(_0x1fca4e,_0x28634e){const _0x5361ef=a102_0x2420,_0x360c68=_0x1fca4e();while(!![]){try{const _0x475f7d=-parseInt(_0x5361ef(0x188))/0x1*(-parseInt(_0x5361ef(0x17a))/0x2)+parseInt(_0x5361ef(0x1cf))/0x3*(-parseInt(_0x5361ef(0x1c4))/0x4)+parseInt(_0x5361ef(0x1ff))/0x5*(parseInt(_0x5361ef(0x1e5))/0x6)+parseInt(_0x5361ef(0x1ce))/0x7+-parseInt(_0x5361ef(0x19f))/0x8+parseInt(_0x5361ef(0x17c))/0x9*(-parseInt(_0x5361ef(0x1fc))/0xa)+-parseInt(_0x5361ef(0x1ad))/0xb;if(_0x475f7d===_0x28634e)break;else _0x360c68['push'](_0x360c68['shift']());}catch(_0x311373){_0x360c68['push'](_0x360c68['shift']());}}}(a102_0x20b1,0x28462));const path=require(a102_0x4c8002(0x1d8)),util=require(a102_0x4c8002(0x179)),crypto=require(a102_0x4c8002(0x1bf)),{getGitMetaData,isUndefined,nestedKeyValue}=require(a102_0x4c8002(0x19d)),logger=require(a102_0x4c8002(0x176))[a102_0x4c8002(0x1ed)],{o11yClassErrorHandler}=require(a102_0x4c8002(0x14f)),TestInfo=require(a102_0x4c8002(0x1d2)),{failureData,getFailureType}=require(a102_0x4c8002(0x17b)),stackTrace=require(a102_0x4c8002(0x1f4)),a102_0x208ce4={};function a102_0x2420(_0x2b0f2e,_0x19452c){const _0x20b1ef=a102_0x20b1();return a102_0x2420=function(_0x2420c4,_0x2eeb4e){_0x2420c4=_0x2420c4-0x14d;let _0x30bc42=_0x20b1ef[_0x2420c4];return _0x30bc42;},a102_0x2420(_0x2b0f2e,_0x19452c);}a102_0x208ce4[a102_0x4c8002(0x17d)]=a102_0x4c8002(0x1b7),a102_0x208ce4[a102_0x4c8002(0x1b4)]='AFTER_ALL',a102_0x208ce4[a102_0x4c8002(0x1a2)]=a102_0x4c8002(0x1e7),a102_0x208ce4[a102_0x4c8002(0x1d5)]='AFTER_EACH';const HOOK_TYPES_MAP=a102_0x208ce4,hooksMap={};function a102_0x20b1(){const _0x3f1613=['getRootParentFile','IUaDO','getHierarchy','name',',\x20testIdentifier:\x20','createIdentifierFromJestTest','12dmeOyO','wYloT','BEFORE_EACH','expect','match','PHqaZ','DKQeZ','failure_type','winstonLogger','RvPRZ','duration','PvrzO','jest','failure_backtrace','VkoJJ','stack-trace','RQsSt','QweMl','[jestUtils]\x20Error\x20creating\x20identifier:\x20','createHash','cfYeE','eAFll','startedAt','350OPRFbu','svzhb','displayName','164075VwcCro','TTOuv','finishedAt','dXzzZ','failed','title','iGavf','parent','../../../helpers/test-observability/error-handler.js',',\x20hookUUID:\x20','No\x20test\x20data\x20provided\x20for\x20jest\x20test\x20event','failure_reason','lpRpt','SywyZ','length','kiSXM','test','_gitConfigPath','hooks','toISOString','getState','isJestInternalHook','[jestUtils]\x20expect.getState()\x20not\x20available:\x20','asyncError','MDoZr','File\x20path\x20could\x20not\x20be\x20found','split','\x20from\x20compositeKey:\x20','[jestUtils]\x20No\x20test\x20object\x20provided','WzXqu','SUIHj','parse','testIdentifier','apply','KIIII','[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','format','gzQyc','getHookRunEventData','ROOT_DESCRIBE_BLOCK','call','HookRunFinished','failure_reason_expanded','YBqxU','[jestUtils]\x20No\x20testInfo\x20provided\x20for\x20recreation','LLtqs','now','../../../helpers/logger.js','getTestIdentifier','TestRunFinished','util','34wyqwxk','../../../helpers/test-observability/utils','7551Rvacdo','beforeAll','XnKtX','errorsDetailed','[jestUtils]\x20Using\x20stored\x20testIdentifier:\x20','md5','RRACZ','finished_at','currentTest','ZJsZB','testAnalyticsId','IfmwJ','18030ZBaUgz','hastO','failure','relative','Exception\x20in\x20createTestFrameworkData:\x20','getTime','errors','toString','javascript','recreateIdentifierFromTestInfo','cXoXX','getName','includes','IVfRc','kkpQx','No\x20hook\x20data\x20provided\x20for\x20jest\x20hook\x20event','stack','result','createTestFrameworkData','_gitConfigured','debug','../../../helpers/helper.js','erAXc','1126384MlqDgt','error','getFileName','beforeEach','nHPrW','Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','find','YbALr','Exception\x20in\x20getHookRunEventData:\x20','MHvLc','fullName','gOEKA','pid','aNoQl','1633698KLBFLh','zStbO','Failed\x20to\x20get\x20hook\x20file\x20path:\x20','hex','zfsbi','digest','hook','afterAll','inspect','createJestTestIdentifier','BEFORE_ALL','skipped','tCiUV','root','dnAXA','jest-circus','type','started_at','crypto',',\x20testRunId:\x20','\x22\x20hook\x20for\x20\x22','pHJnZ','Creating\x20hook\x20data\x20for\x20eventType:\x20','12FOBlRt','pending','StdJZ','UfIab','err','UHgdg','backtrace','MrBZw','omzbF','testPath','2244032pvfCNu','209073tTLlEo','STngl','expanded','../TestInfo.js','extractTestFilePath','createHookData','afterEach','substring','configureGit','path','passed','ZoCaK','push','file','OMRIs','__jestCurrentTestIdentifier'];a102_0x20b1=function(){return _0x3f1613;};return a102_0x20b1();}class JestUtils{constructor(){const _0x2b0317=a102_0x4c8002;this['_gitConfigured']=![],this[_0x2b0317(0x158)]=null;}async[a102_0x4c8002(0x19a)](_0x3c686b,_0x2d2aaa,_0x208b35='TestRunFinished',_0x594f2a=undefined){const _0x34b568=a102_0x4c8002,_0x17a1ed={'MDoZr':_0x34b568(0x151),'JfkRE':_0x34b568(0x1bc),'zfsbi':function(_0x507375,_0x43c3cc){return _0x507375||_0x43c3cc;},'jpoPr':_0x34b568(0x160),'iGavf':function(_0x45d82c,_0x5cab6e){return _0x45d82c!==_0x5cab6e;},'OMRIs':_0x34b568(0x157),'PvrzO':_0x34b568(0x1c8),'StdJZ':_0x34b568(0x1c5),'nHPrW':function(_0x16b959,_0x543c35){return _0x16b959===_0x543c35;},'RvPRZ':'TestRunSkipped','eAFll':_0x34b568(0x1b8),'kiSXM':function(_0x5128c8,_0x51dffd){return _0x5128c8>_0x51dffd;},'LLtqs':_0x34b568(0x203),'wYloT':_0x34b568(0x1d9),'SywyZ':function(_0x11106f,_0x21e9ba){return _0x11106f-_0x21e9ba;},'hastO':_0x34b568(0x190),'VkoJJ':_0x34b568(0x1f1),'PHqaZ':function(_0x376591,_0x258382){return _0x376591(_0x258382);},'DKQeZ':_0x34b568(0x178),'IVfRc':function(_0x2ec973,_0x35f9bb){return _0x2ec973===_0x35f9bb;}};logger['debug']('Creating\x20test\x20framework\x20data\x20for\x20eventType:\x20'+_0x208b35+_0x34b568(0x1e3)+_0x2d2aaa);try{if(!_0x3c686b)return logger[_0x34b568(0x19c)](_0x17a1ed[_0x34b568(0x15f)]),null;if(_0x3c686b['fn']&&_0x3c686b['fn'][_0x34b568(0x18f)]()[_0x34b568(0x1e9)](/browserstack internal helper hook/))return null;await this[_0x34b568(0x1d7)]();let _0x316b26;try{_0x316b26=this['getRootParentFile'](_0x3c686b);if(_0x316b26&&_0x316b26['includes'](_0x17a1ed['JfkRE']))return null;}catch(_0x49f0df){logger[_0x34b568(0x19c)]('Failed\x20to\x20get\x20root\x20parent\x20file:\x20'+util[_0x34b568(0x16b)](_0x49f0df)),_0x316b26=null;}const _0x116965=this['getHierarchy'](_0x3c686b),_0xcf8652=this[_0x34b568(0x193)](_0x3c686b),_0x281525=_0x17a1ed[_0x34b568(0x1b1)](_0x316b26,_0x17a1ed['jpoPr']);let _0x3b4bad=[];const _0x4373f3=_0x3c686b['errorsDetailed']||_0x3c686b[_0x34b568(0x18e)];if(_0x17a1ed['iGavf'](_0x4373f3,undefined))_0x3b4bad=[_0x4373f3,_0x17a1ed[_0x34b568(0x1dd)]];else _0x17a1ed[_0x34b568(0x14d)](_0x594f2a,undefined)&&(_0x3b4bad=[_0x594f2a,_0x17a1ed[_0x34b568(0x1f0)]]);const _0x59d8d3=_0x17a1ed[_0x34b568(0x14d)](_0x4373f3,undefined)?util[_0x34b568(0x1b5)](_0x4373f3[0x0]):_0x17a1ed[_0x34b568(0x14d)](_0x594f2a,undefined)?_0x594f2a[_0x34b568(0x18f)]():undefined;let _0x368bae=_0x17a1ed[_0x34b568(0x1c6)];if(_0x17a1ed[_0x34b568(0x1a3)](_0x208b35,_0x17a1ed[_0x34b568(0x1ee)]))_0x368bae=_0x17a1ed[_0x34b568(0x1fa)];else _0x4373f3&&_0x17a1ed[_0x34b568(0x156)](_0x4373f3['length'],0x0)?_0x368bae=_0x17a1ed[_0x34b568(0x174)]:_0x368bae=_0x17a1ed[_0x34b568(0x1e6)];let _0x5a7720=null;if(_0x17a1ed[_0x34b568(0x14d)](_0x3c686b[_0x34b568(0x1ef)],undefined))_0x5a7720=_0x3c686b['duration'];else(_0x208b35['match'](/Finished/)||_0x208b35[_0x34b568(0x1e9)](/Skipped/))&&(_0x3c686b['started_at']&&(_0x5a7720=_0x17a1ed[_0x34b568(0x154)](Date[_0x34b568(0x175)](),new Date(_0x3c686b['started_at'])[_0x34b568(0x18d)]())));const _0x49087a=_0x3c686b['fn']?_0x3c686b['fn'][_0x34b568(0x18f)]():null,_0x480e84={'id':_0x2d2aaa,'uuid':_0x2d2aaa,'startedAt':_0x3c686b['started_at']||new Date()[_0x34b568(0x15a)](),'finishedAt':_0x208b35[_0x34b568(0x1e9)](/Finished/)||_0x208b35[_0x34b568(0x1e9)](/Skipped/)?new Date()[_0x34b568(0x15a)]():null,'type':_0x17a1ed['OMRIs'],'body':{'lang':_0x17a1ed[_0x34b568(0x189)],'code':_0x49087a},'name':_0xcf8652,'errorsDetailed':_0x17a1ed[_0x34b568(0x156)](_0x4373f3?.[_0x34b568(0x155)],0x0)?_0x4373f3[0x0]:_0x4373f3?_0x4373f3:undefined,'scopes':_0x116965,'file_name':_0x281525,'location':_0x281525,'vc_filepath':this['_gitConfigPath']&&_0x316b26?path['relative'](this[_0x34b568(0x158)],_0x316b26):null,'framework':_0x17a1ed[_0x34b568(0x1f3)],'result':_0x368bae,'failure_reason':_0x59d8d3,'duration_in_ms':_0x5a7720,'failure':failureData[_0x34b568(0x168)](null,_0x3b4bad),'failure_type':!_0x59d8d3?null:_0x17a1ed[_0x34b568(0x1ea)](getFailureType,_0x59d8d3),'retry_of':_0x3c686b['retryOf']||null,'customRerunParam':{'rerun_name':_0xcf8652}};_0x17a1ed[_0x34b568(0x1a3)](_0x208b35,_0x17a1ed['RvPRZ'])&&!_0x480e84[_0x34b568(0x1fb)]&&(_0x480e84[_0x34b568(0x1fb)]=_0x480e84[_0x34b568(0x201)]);const _0x5511e2=_0x480e84[_0x34b568(0x18a)]&&_0x480e84[_0x34b568(0x18a)][0x0];return _0x5511e2&&(_0x480e84[_0x34b568(0x1f2)]=_0x5511e2[_0x34b568(0x1ca)],_0x480e84[_0x34b568(0x171)]=_0x5511e2[_0x34b568(0x1d1)]),(_0x17a1ed['nHPrW'](_0x208b35,_0x17a1ed[_0x34b568(0x1eb)])||_0x17a1ed[_0x34b568(0x195)](_0x208b35,_0x17a1ed[_0x34b568(0x1ee)]))&&(_0x3c686b[_0x34b568(0x159)]&&(_0x480e84[_0x34b568(0x159)]=_0x3c686b[_0x34b568(0x159)])),_0x480e84;}catch(_0x3415c0){return logger[_0x34b568(0x19c)](_0x34b568(0x18c)+util[_0x34b568(0x16b)](_0x3415c0)),null;}}async[a102_0x4c8002(0x1d4)](_0x21ff41,_0x3c50c6,_0x4ccfcc,_0x7e0de3){const _0x558a74=a102_0x4c8002,_0x5750bb={'oYozw':_0x558a74(0x197),'gOEKA':_0x558a74(0x1bc),'aNoQl':'browserstack-node-agent/src/bin/jest','lnuKQ':'unknown','drsVl':_0x558a74(0x1c5),'WzXqu':function(_0x3f60ec,_0x14649b){return _0x3f60ec===_0x14649b;},'ZxkWA':_0x558a74(0x170),'GVYzA':function(_0x55b22e,_0x26634a){return _0x55b22e>_0x26634a;},'MHvLc':_0x558a74(0x203),'RQsSt':function(_0x4a6425,_0x4db911){return _0x4a6425(_0x4db911);},'seFUd':_0x558a74(0x157),'SUIHj':'passed','lpRpt':_0x558a74(0x1b3),'MjRRi':_0x558a74(0x190),'dnAXA':_0x558a74(0x1f1),'erAXc':function(_0x4e98a9,_0x605157){return _0x4e98a9===_0x605157;},'dXzzZ':'HookRunStarted'};logger[_0x558a74(0x19c)](_0x558a74(0x1c3)+_0x4ccfcc+_0x558a74(0x150)+_0x3c50c6+_0x558a74(0x1c0)+_0x7e0de3);try{if(!_0x21ff41)return logger[_0x558a74(0x19c)](_0x5750bb['oYozw']),null;if(this[_0x558a74(0x15c)](_0x21ff41))return null;await this[_0x558a74(0x1d7)]();let _0x1b9c13=null;try{_0x1b9c13=this[_0x558a74(0x1df)](_0x21ff41);if(_0x1b9c13&&_0x1b9c13[_0x558a74(0x194)](_0x5750bb[_0x558a74(0x1aa)]))return null;if(_0x1b9c13&&_0x1b9c13['includes'](_0x5750bb[_0x558a74(0x1ac)]))return null;}catch(_0x289989){logger[_0x558a74(0x19c)](_0x558a74(0x1af)+util[_0x558a74(0x16b)](_0x289989));}const _0x570342=this[_0x558a74(0x193)](_0x21ff41),_0x31d8fe=_0x21ff41[_0x558a74(0x1bd)]||_0x5750bb['lnuKQ'],_0x2d7756=HOOK_TYPES_MAP[_0x31d8fe]||_0x31d8fe['toUpperCase'](),_0x96a0ec=_0x21ff41[_0x558a74(0x14e)]&&_0x21ff41[_0x558a74(0x14e)]['name']?_0x21ff41['parent'][_0x558a74(0x1e2)]:'';let _0x58545d=_0x5750bb['drsVl'],_0x4cc9e6=null,_0x28d7c9=null,_0x5def69=null,_0x5c0922=null;_0x5750bb[_0x558a74(0x164)](_0x4ccfcc,_0x5750bb['ZxkWA'])&&(_0x5c0922=new Date()[_0x558a74(0x15a)](),_0x21ff41['errorsDetailed']&&_0x5750bb['GVYzA'](_0x21ff41[_0x558a74(0x17f)]['length'],0x0)?(_0x58545d=_0x5750bb[_0x558a74(0x1a8)],_0x28d7c9=util[_0x558a74(0x1b5)](_0x21ff41[_0x558a74(0x17f)][0x0]),_0x4cc9e6=_0x5750bb[_0x558a74(0x1f5)](getFailureType,_0x28d7c9),_0x5def69=failureData[_0x558a74(0x168)](null,[_0x21ff41[_0x558a74(0x17f)],_0x5750bb['seFUd']])):_0x58545d=_0x5750bb[_0x558a74(0x165)]);const _0xfeb3ab={'uuid':_0x3c50c6,'type':_0x5750bb[_0x558a74(0x153)],'hook_type':_0x2d7756,'name':_0x570342,'body':{'lang':_0x5750bb['MjRRi'],'code':_0x21ff41['fn']?_0x21ff41['fn'][_0x558a74(0x18f)]():null},'tags':[],'test_run_id':_0x7e0de3,'scope':_0x96a0ec,'scopes':[_0x96a0ec],'file_name':_0x1b9c13,'location':_0x1b9c13,'vc_filepath':this[_0x558a74(0x158)]&&_0x1b9c13?path[_0x558a74(0x18b)](this[_0x558a74(0x158)],_0x1b9c13):null,'result':_0x58545d,'started_at':_0x21ff41[_0x558a74(0x1be)]||new Date()[_0x558a74(0x15a)](),'finished_at':_0x5c0922,'failure_type':_0x4cc9e6,'failure_reason':_0x28d7c9,'failure_data':_0x5def69,'framework':_0x5750bb[_0x558a74(0x1bb)]};return _0x5750bb[_0x558a74(0x19e)](_0x4ccfcc,_0x5750bb[_0x558a74(0x202)])&&(hooksMap[_0x7e0de3]?hooksMap[_0x7e0de3]['push'](_0xfeb3ab):hooksMap[_0x7e0de3]=[_0xfeb3ab]),_0xfeb3ab;}catch(_0x25c74f){return logger[_0x558a74(0x19c)]('Exception\x20in\x20createHookData:\x20'+util[_0x558a74(0x16b)](_0x25c74f)),null;}}['getHookRunEventData'](_0x1b8e74,_0x55f4ad,_0x1c3324){const _0x30e9a6=a102_0x4c8002,_0x2c6451={'XnKtX':function(_0x14449b,_0xdbe909){return _0x14449b>_0xdbe909;},'UfIab':_0x30e9a6(0x203),'omzbF':function(_0x5ac004,_0x502b1b){return _0x5ac004(_0x502b1b);},'RRACZ':_0x30e9a6(0x157),'UHgdg':_0x30e9a6(0x1d9)};try{const _0x26d216=hooksMap[_0x1b8e74];if(!_0x26d216)return null;const _0x53bb9f=_0x26d216[_0x30e9a6(0x1a5)](_0x21bb83=>_0x21bb83['uuid']===_0x55f4ad);if(!_0x53bb9f)return null;return _0x53bb9f[_0x30e9a6(0x183)]=new Date()[_0x30e9a6(0x15a)](),_0x1c3324[_0x30e9a6(0x17f)]&&_0x2c6451[_0x30e9a6(0x17e)](_0x1c3324[_0x30e9a6(0x17f)][_0x30e9a6(0x155)],0x0)?(_0x53bb9f[_0x30e9a6(0x199)]=_0x2c6451[_0x30e9a6(0x1c7)],_0x53bb9f[_0x30e9a6(0x152)]=util[_0x30e9a6(0x1b5)](_0x1c3324[_0x30e9a6(0x17f)][0x0]),_0x53bb9f[_0x30e9a6(0x1ec)]=_0x2c6451[_0x30e9a6(0x1cc)](getFailureType,_0x53bb9f[_0x30e9a6(0x152)]),_0x53bb9f['failure_data']=failureData['apply'](null,[_0x1c3324[_0x30e9a6(0x17f)],_0x2c6451[_0x30e9a6(0x182)]])):_0x53bb9f[_0x30e9a6(0x199)]=_0x2c6451[_0x30e9a6(0x1c9)],_0x53bb9f;}catch(_0x338c53){return logger[_0x30e9a6(0x19c)](_0x30e9a6(0x1a7)+util[_0x30e9a6(0x16b)](_0x338c53)),null;}}[a102_0x4c8002(0x193)](_0x32b9c3){const _0x259b0d=a102_0x4c8002,_0x9822b2={};_0x9822b2[_0x259b0d(0x1a6)]=function(_0x26524f,_0x23c9e0){return _0x26524f!==_0x23c9e0;},_0x9822b2[_0x259b0d(0x172)]='test',_0x9822b2[_0x259b0d(0x16c)]='Unknown\x20Test';const _0x200178=_0x9822b2;if(_0x200178[_0x259b0d(0x1a6)](_0x32b9c3['type'],_0x200178['YBqxU']))return'\x22'+_0x32b9c3[_0x259b0d(0x1bd)]+_0x259b0d(0x1c1)+(_0x32b9c3[_0x259b0d(0x14e)]&&_0x32b9c3[_0x259b0d(0x14e)][_0x259b0d(0x1e2)])+'\x22';return _0x32b9c3[_0x259b0d(0x1e2)]||_0x200178['gzQyc'];}[a102_0x4c8002(0x1e1)](_0x352a66){const _0x26ac4a=a102_0x4c8002,_0xadb4ff={};_0xadb4ff['OAhmu']=function(_0x3e54e6,_0xa756bf){return _0x3e54e6!==_0xa756bf;},_0xadb4ff['STngl']=function(_0x52e2fd,_0x3fc5ee){return _0x52e2fd!==_0x3fc5ee;},_0xadb4ff[_0x26ac4a(0x1f6)]=_0x26ac4a(0x16e);const _0xbe4897=_0xadb4ff,_0x4bdd3b=[];if(_0x352a66&&_0x352a66['parent']){let _0x447b02=_0x352a66['parent'];while(_0x447b02&&_0x447b02[_0x26ac4a(0x1e2)]&&_0xbe4897['OAhmu'](_0x447b02[_0x26ac4a(0x1e2)],'')&&_0xbe4897[_0x26ac4a(0x1d0)](_0x447b02[_0x26ac4a(0x1e2)],_0xbe4897[_0x26ac4a(0x1f6)])){_0x4bdd3b[_0x26ac4a(0x1db)](_0x447b02['name']),_0x447b02=_0x447b02['parent'];}}return _0x4bdd3b['reverse'](),_0x4bdd3b;}[a102_0x4c8002(0x1df)](_0x4f7505){const _0x57d62f=a102_0x4c8002;if(_0x4f7505[_0x57d62f(0x15e)])try{const _0x3de187=stackTrace[_0x57d62f(0x166)][_0x57d62f(0x16f)](stackTrace,_0x4f7505[_0x57d62f(0x15e)]);if(_0x3de187[0x0]&&_0x3de187[0x0]['getFileName'])return _0x3de187[0x0][_0x57d62f(0x1a1)]();}catch(_0x17c202){logger[_0x57d62f(0x19c)](_0x57d62f(0x1a4)+util[_0x57d62f(0x16b)](_0x17c202));}if(_0x4f7505[_0x57d62f(0x1dc)])return _0x4f7505['file'];return null;}[a102_0x4c8002(0x15c)](_0x3f8d6b){const _0x179182=a102_0x4c8002,_0x3df4e3={};_0x3df4e3['kUTnm']=_0x179182(0x1bc),_0x3df4e3[_0x179182(0x1fd)]=function(_0x41839a,_0x5d1fd9){return _0x41839a===_0x5d1fd9;},_0x3df4e3[_0x179182(0x196)]=_0x179182(0x16e);const _0x43bfca=_0x3df4e3;try{const _0x6ed36e=this[_0x179182(0x1df)](_0x3f8d6b);if(_0x6ed36e&&_0x6ed36e[_0x179182(0x194)](_0x43bfca['kUTnm']))return!![];if(!_0x6ed36e){const _0x5b0edb=_0x3f8d6b[_0x179182(0x14e)]&&_0x3f8d6b[_0x179182(0x14e)][_0x179182(0x1e2)];if(_0x43bfca[_0x179182(0x1fd)](_0x5b0edb,_0x43bfca[_0x179182(0x196)]))return!![];}}catch(_0x2264cb){logger[_0x179182(0x19c)]('Exception\x20in\x20checking\x20if\x20hook\x20is\x20internal:\x20'+util[_0x179182(0x16b)](_0x2264cb));}return![];}['getTestIdentifier'](_0xc5aae9=null){const _0x295929=a102_0x4c8002;try{const _0x43c905=_0xc5aae9||global['__workerDetails']||{};if(global['__jestCurrentTestIdentifier'])return global[_0x295929(0x1de)];if(_0x43c905?.[_0x295929(0x184)]?.[_0x295929(0x186)])return _0x43c905[_0x295929(0x184)][_0x295929(0x186)];if(_0x43c905?.['currentTest']?.['id'])return _0x43c905[_0x295929(0x184)]['id'];return null;}catch(_0x315781){return logger[_0x295929(0x19c)]('[jestUtils]\x20Error\x20getting\x20test\x20identifier:\x20'+util[_0x295929(0x16b)](_0x315781)),null;}}async['configureGit'](){const _0x1e1397=a102_0x4c8002,_0x4cdd7f={'ZoCaK':function(_0x3532ec){return _0x3532ec();}};if(this[_0x1e1397(0x19b)])return this[_0x1e1397(0x158)];const _0x2b3e08=await _0x4cdd7f[_0x1e1397(0x1da)](getGitMetaData);_0x2b3e08&&(this[_0x1e1397(0x158)]=_0x2b3e08[_0x1e1397(0x1ba)]),this[_0x1e1397(0x19b)]=!![];}['clearHooksMap'](_0x347892){hooksMap[_0x347892]&&delete hooksMap[_0x347892];}[a102_0x4c8002(0x1d3)](_0x5723b1){const _0x478109=a102_0x4c8002,_0x52476f={'IUaDO':'jest-circus','TTOuv':function(_0xc5e783,_0x34fdb3){return _0xc5e783(_0x34fdb3);},'tCiUV':_0x478109(0x1e8)};if(_0x5723b1['file'])return _0x5723b1[_0x478109(0x1dc)];if(_0x5723b1[_0x478109(0x15e)]){try{const _0x7725f8=stackTrace[_0x478109(0x166)](_0x5723b1[_0x478109(0x15e)]);if(_0x7725f8[0x0]&&_0x7725f8[0x0][_0x478109(0x1a1)]){const _0x38353e=_0x7725f8[0x0][_0x478109(0x1a1)]();if(_0x38353e&&!_0x38353e[_0x478109(0x194)](_0x52476f[_0x478109(0x1e0)]))return _0x38353e;}}catch(_0x59f758){logger[_0x478109(0x19c)](_0x478109(0x16a)+util['format'](_0x59f758));}if(_0x5723b1[_0x478109(0x15e)][_0x478109(0x198)]){const _0x3ec660=_0x5723b1[_0x478109(0x15e)][_0x478109(0x198)][_0x478109(0x161)]('\x0a');for(const _0x1accd1 of _0x3ec660){const _0x23351f=_0x1accd1[_0x478109(0x1e9)](/at (.+?):\d+:\d+/);if(_0x23351f&&_0x23351f[0x1]&&!_0x23351f[0x1][_0x478109(0x194)](_0x52476f[_0x478109(0x1e0)]))return _0x23351f[0x1];}}}let _0x390462=_0x5723b1[_0x478109(0x14e)];while(_0x390462){if(_0x390462[_0x478109(0x1dc)])return _0x390462['file'];if(_0x390462['asyncError'])try{const _0xb12fa4=stackTrace[_0x478109(0x166)](_0x390462[_0x478109(0x15e)]);if(_0xb12fa4[0x0]&&_0xb12fa4[0x0][_0x478109(0x1a1)]){const _0x40f2f9=_0xb12fa4[0x0][_0x478109(0x1a1)]();if(_0x40f2f9&&!_0x40f2f9[_0x478109(0x194)](_0x52476f[_0x478109(0x1e0)]))return _0x40f2f9;}}catch(_0x5dc5d5){}_0x390462=_0x390462['parent'];}try{const _0x20910=_0x52476f[_0x478109(0x200)](require,_0x52476f[_0x478109(0x1b9)]);if(_0x20910&&_0x20910[_0x478109(0x15b)]){const _0x4d1e40=_0x20910[_0x478109(0x15b)]();if(_0x4d1e40&&_0x4d1e40[_0x478109(0x1cd)])return _0x4d1e40[_0x478109(0x1cd)];}}catch(_0x4f9d21){logger[_0x478109(0x19c)](_0x478109(0x15d)+util['format'](_0x4f9d21));}return null;}[a102_0x4c8002(0x1b6)](_0xd8cd31){const _0x96cefd=a102_0x4c8002,_0x15334d={};_0x15334d[_0x96cefd(0x1c2)]='[jestUtils]\x20No\x20testInfo\x20provided,\x20cannot\x20create\x20identifier',_0x15334d['zStbO']=function(_0x95a90f,_0x254ae1){return _0x95a90f!==_0x254ae1;},_0x15334d[_0x96cefd(0x169)]='ROOT_DESCRIBE_BLOCK',_0x15334d[_0x96cefd(0x185)]=_0x96cefd(0x1bc),_0x15334d[_0x96cefd(0x1cb)]=_0x96cefd(0x181),_0x15334d[_0x96cefd(0x1f9)]=_0x96cefd(0x1b0);const _0x18db21=_0x15334d;try{if(!_0xd8cd31)return logger[_0x96cefd(0x1a0)](_0x18db21[_0x96cefd(0x1c2)]),null;const _0x32941a=_0xd8cd31[_0x96cefd(0x1a9)]||_0xd8cd31[_0x96cefd(0x1e2)]||_0xd8cd31[_0x96cefd(0x204)]||_0xd8cd31[_0x96cefd(0x1fe)];let _0x595f22=_0x32941a;if(_0xd8cd31['parent']&&_0xd8cd31[_0x96cefd(0x14e)][_0x96cefd(0x1e2)]&&_0x18db21[_0x96cefd(0x1ae)](_0xd8cd31[_0x96cefd(0x14e)]['name'],_0x18db21['KIIII'])){const _0x227892=_0xd8cd31['name']||_0xd8cd31[_0x96cefd(0x204)];_0x227892&&(_0x595f22=_0xd8cd31[_0x96cefd(0x14e)][_0x96cefd(0x1e2)]+'\x20'+_0x227892);}let _0xa826be=_0xd8cd31[_0x96cefd(0x1cd)];if(!_0xa826be&&_0xd8cd31[_0x96cefd(0x15e)]){try{const _0xff0e9=stackTrace[_0x96cefd(0x166)](_0xd8cd31[_0x96cefd(0x15e)]);if(_0xff0e9[0x0]&&_0xff0e9[0x0][_0x96cefd(0x1a1)]){const _0x28b3c9=_0xff0e9[0x0][_0x96cefd(0x1a1)]();_0x28b3c9&&!_0x28b3c9[_0x96cefd(0x194)](_0x18db21['ZJsZB'])&&(_0xa826be=_0x28b3c9);}}catch(_0x3940d2){logger[_0x96cefd(0x19c)](_0x96cefd(0x16a)+util['format'](_0x3940d2));}if(!_0xa826be&&_0xd8cd31[_0x96cefd(0x15e)][_0x96cefd(0x198)]){const _0x5c5586=_0xd8cd31['asyncError'][_0x96cefd(0x198)][_0x96cefd(0x161)]('\x0a');for(const _0x4b18af of _0x5c5586){const _0x55f7d0=_0x4b18af[_0x96cefd(0x1e9)](/at (.+?):\d+:\d+/);if(_0x55f7d0&&_0x55f7d0[0x1]&&!_0x55f7d0[0x1][_0x96cefd(0x194)](_0x18db21[_0x96cefd(0x185)])){_0xa826be=_0x55f7d0[0x1];break;}}}}const _0x57a763=_0xa826be+'::'+_0x595f22,_0x578718=crypto[_0x96cefd(0x1f8)](_0x18db21[_0x96cefd(0x1cb)])['update'](_0x57a763)[_0x96cefd(0x1b2)](_0x18db21[_0x96cefd(0x1f9)])[_0x96cefd(0x1d6)](0x0,0x8),_0x23b5fa=process[_0x96cefd(0x1ab)]+':jest-'+_0x578718;return logger['debug']('[jestUtils]\x20Created\x20identifier:\x20'+_0x23b5fa+_0x96cefd(0x162)+_0x57a763),_0x23b5fa;}catch(_0xed3bf9){return logger[_0x96cefd(0x1a0)](_0x96cefd(0x1f7)+util[_0x96cefd(0x16b)](_0xed3bf9)),null;}}[a102_0x4c8002(0x1e4)](_0x177b8b){const _0x240496=a102_0x4c8002,_0x567c63={};_0x567c63[_0x240496(0x192)]=_0x240496(0x163);const _0x1594b9=_0x567c63;if(!_0x177b8b)return logger['debug'](_0x1594b9[_0x240496(0x192)]),null;const _0x374689=this['extractTestFilePath'](_0x177b8b),_0xa490a0={};_0xa490a0[_0x240496(0x1e2)]=_0x177b8b[_0x240496(0x1e2)]||_0x177b8b['title'],_0xa490a0[_0x240496(0x14e)]=_0x177b8b[_0x240496(0x14e)],_0xa490a0[_0x240496(0x1cd)]=_0x374689,_0xa490a0[_0x240496(0x15e)]=_0x177b8b[_0x240496(0x15e)];const _0x3001e6=_0xa490a0;return this[_0x240496(0x1b6)](_0x3001e6);}[a102_0x4c8002(0x191)](_0x830a36,_0xccc2ed=null){const _0x494a6d=a102_0x4c8002,_0x53ec77={};_0x53ec77['IfmwJ']=_0x494a6d(0x173);const _0x23bebc=_0x53ec77;if(!_0x830a36)return logger[_0x494a6d(0x19c)](_0x23bebc[_0x494a6d(0x187)]),_0xccc2ed;if(_0x830a36[_0x494a6d(0x167)])return logger[_0x494a6d(0x19c)](_0x494a6d(0x180)+_0x830a36[_0x494a6d(0x167)]),_0x830a36[_0x494a6d(0x167)];return this[_0x494a6d(0x1b6)](_0x830a36)||_0xccc2ed;}}module['exports']=o11yClassErrorHandler(JestUtils,['configureGit',a102_0x4c8002(0x1e1),a102_0x4c8002(0x1df),a102_0x4c8002(0x193),'isJestInternalHook',a102_0x4c8002(0x177),'createTestFrameworkData',a102_0x4c8002(0x1d4),a102_0x4c8002(0x16d),'clearHooksMap',a102_0x4c8002(0x1d3),'createJestTestIdentifier',a102_0x4c8002(0x1e4),'recreateIdentifierFromTestInfo']);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';
|
|
2
|
+
'use strict';const a103_0x553618=a103_0x482b;(function(_0x37874a,_0x3f7e8d){const _0x59a69f=a103_0x482b,_0x411a36=_0x37874a();while(!![]){try{const _0x1e2354=-parseInt(_0x59a69f(0x9d))/0x1+parseInt(_0x59a69f(0x9f))/0x2+parseInt(_0x59a69f(0xbd))/0x3+parseInt(_0x59a69f(0xc5))/0x4+-parseInt(_0x59a69f(0xbb))/0x5+parseInt(_0x59a69f(0xad))/0x6*(-parseInt(_0x59a69f(0xa1))/0x7)+parseInt(_0x59a69f(0xb2))/0x8*(parseInt(_0x59a69f(0xab))/0x9);if(_0x1e2354===_0x3f7e8d)break;else _0x411a36['push'](_0x411a36['shift']());}catch(_0x1380b7){_0x411a36['push'](_0x411a36['shift']());}}}(a103_0x988e,0x2e4b9));function a103_0x482b(_0x13f449,_0x265976){const _0x988e4d=a103_0x988e();return a103_0x482b=function(_0x482bc7,_0x2ad2ff){_0x482bc7=_0x482bc7-0x9b;let _0x8c062a=_0x988e4d[_0x482bc7];return _0x8c062a;},a103_0x482b(_0x13f449,_0x265976);}const fs=require('fs'),path=require(a103_0x553618(0xc2)),{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a103_0x553618(0xc8)),PerformanceTester=require('../../helpers/performance/performance-tester'),PerformanceEvents=require(a103_0x553618(0xae))['EVENTS'],utilities=require('../../helpers/utilities'),{parallelVanillaRun}=require(a103_0x553618(0xaa)),TestHubHandler=require('../../helpers/testhub/testhubHandler');async function run(_0x154e6e,_0x458873,_0x35261c){const _0x200cfa=a103_0x553618,_0x5844df={'sGChu':_0x200cfa(0x9b),'tYMDA':function(_0x18d984,_0x2359e5){return _0x18d984(_0x2359e5);},'yQjIP':_0x200cfa(0xc3),'TlpyV':_0x200cfa(0xb0),'rJNsT':function(_0x5712d3,_0x23fa95){return _0x5712d3>_0x23fa95;},'pnLgO':function(_0x36b5c9,_0x4ec7a5){return _0x36b5c9>_0x4ec7a5;},'pJMzT':function(_0x40efb2,_0xdea9f5){return _0x40efb2*_0xdea9f5;},'LHJrm':function(_0x479708,_0x3e14da,_0x3598bd){return _0x479708(_0x3e14da,_0x3598bd);}};await _0x35261c[_0x200cfa(0xb3)](_0x154e6e),await helper[_0x200cfa(0xb8)](_0x35261c[_0x200cfa(0xaf)]);const _0x2baccf=[];if(helper[_0x200cfa(0xb5)](_0x154e6e['_'][0x1]))throw _0x5844df[_0x200cfa(0xc4)](Error,_0x5844df['yQjIP']);const _0x131034=path[_0x200cfa(0xc6)](process['cwd'](),_0x154e6e['_'][0x1]);if(!fs[_0x200cfa(0x9c)](_0x131034))throw _0x5844df[_0x200cfa(0xc4)](Error,'File\x20'+_0x154e6e['_'][0x1]+'\x20doesn\x27t\x20exist');if(!_0x35261c[_0x200cfa(0xaf)])throw _0x5844df['tYMDA'](Error,_0x5844df['TlpyV']);const _0x47297d=helper['useW3C'](_0x35261c[_0x200cfa(0xaf)]);_0x35261c[_0x200cfa(0xaf)][_0x200cfa(0xa8)]&&_0x5844df['rJNsT'](_0x35261c['config'][_0x200cfa(0xa8)][_0x200cfa(0xa0)],0x0)&&_0x35261c['config']['platforms'][_0x200cfa(0xa4)]((_0x5a423b,_0x186dc3)=>{const _0x30fcce=_0x200cfa;_0x47297d?_0x2baccf['push'](helper[_0x30fcce(0xa6)](_0x35261c[_0x30fcce(0xaf)],_0x5844df[_0x30fcce(0xb6)],_0x186dc3)):_0x2baccf[_0x30fcce(0xac)](helper['modifyBrowserStackCaps'](_0x35261c[_0x30fcce(0xaf)],_0x5844df[_0x30fcce(0xb6)],_0x186dc3));});let _0x535e4c,_0x239ecf;const _0x1c32b8=[];if(_0x5844df['pnLgO'](_0x2baccf['length'],0x0))_0x2baccf[_0x200cfa(0xa4)]((_0x25cae1,_0x461840)=>{const _0x2e3655=_0x200cfa,_0xd543d7={};_0xd543d7[_0x2e3655(0xa2)]=_0x461840,_0x535e4c={'server':helper['getHubUrl'](_0x35261c[_0x2e3655(0xaf)]),'proxySettings':_0x35261c['config'][_0x2e3655(0xb7)],'platform':helper['getPlatformName'](_0x25cae1),'platformCaps':Object[_0x2e3655(0xc0)](_0xd543d7,_0x35261c[_0x2e3655(0xaf)]['platforms'][_0x461840])};const _0x20511f={'capability':_0x25cae1,..._0x535e4c};_0x20511f[_0x2e3655(0xbc)]=_0x131034,_0x20511f[_0x2e3655(0xa3)]=_0x458873;const _0x5776f8={};_0x5776f8[_0x2e3655(0xb1)]=_0x20511f,_0x239ecf=_0x5776f8,_0x1c32b8[_0x2e3655(0xac)](_0x239ecf);});else{let _0x4a7cbb;_0x47297d?_0x4a7cbb=helper[_0x200cfa(0xa6)](_0x35261c[_0x200cfa(0xaf)],_0x5844df[_0x200cfa(0xb6)],0x0):_0x4a7cbb=helper[_0x200cfa(0xa5)](_0x35261c[_0x200cfa(0xaf)],_0x5844df['sGChu'],0x0);_0x535e4c={'server':helper[_0x200cfa(0x9e)](_0x35261c['config']),'proxySettings':_0x35261c[_0x200cfa(0xaf)][_0x200cfa(0xb7)]};const _0x19466c={'capability':_0x4a7cbb,..._0x535e4c};_0x19466c['file']=_0x131034,_0x19466c[_0x200cfa(0xa3)]=_0x458873;const _0x459c97={};_0x459c97['configuration']=_0x19466c,_0x239ecf=_0x459c97,_0x1c32b8['push'](_0x239ecf);}const _0x3afd54=await TestHubHandler['launchBuild'](_0x5844df[_0x200cfa(0xb6)],_0x35261c),_0x39ad16=_0x5844df[_0x200cfa(0xb9)](_0x35261c['config'][_0x200cfa(0xa8)]['length']||0x1,_0x35261c['config'][_0x200cfa(0xbf)]||0x1);PerformanceTester['end'](PerformanceEvents[_0x200cfa(0xa7)]),_0x5844df[_0x200cfa(0xb4)](parallelVanillaRun,_0x1c32b8,_0x39ad16)[_0x200cfa(0xc7)](_0x766235=>{})[_0x200cfa(0xba)](async()=>{const _0x4af5f0=_0x200cfa;PerformanceTester[_0x4af5f0(0xc1)](PerformanceEvents[_0x4af5f0(0xbe)]),await utilities[_0x4af5f0(0xa9)](_0x35261c);});}function a103_0x988e(){const _0x2cdcbb=['index','args','forEach','modifyBrowserStackCaps','modifyBrowserStackW3CCaps','SDK_SETUP','platforms','finalExecution','../test-runner','9XmmCNq','push','65466vgLYbG','../../helpers/performance/constants','config','Config\x20yml\x20is\x20required','configuration','764776afdJFW','initialize','LHJrm','isUndefined','sGChu','proxySettings','handleApp','pJMzT','finally','1573475VcxPmc','file','53100IcplFF','SDK_CLEANUP','parallelsPerPlatform','assign','start','path','File\x20path\x20is\x20required','tYMDA','1344140eHsVoN','join','then','../../helpers/helper','vanilla','existsSync','184935lxTIYm','getHubUrl','523490qAXlay','length','14KLwTaZ'];a103_0x988e=function(){return _0x2cdcbb;};return a103_0x988e();}module['exports']=run;
|
package/src/browserStackSdk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a104_0x464d52=a104_0x488a;function a104_0x1595(){const _0x292630=['tMtjf','platform','platformName','setTestMetadata','set','138QCuxSy','294292PHRXew','browserName','device','1542355iYnrrc','exports','zZfMW','2337021lpGcNo','SAuop','platform_version','getCurrentPlatform','MhWxt','browser','2865464ZCEmZp','YWRdc','deviceName','./helpers/metadata','LMZoH','6YDiqcb','116709JsUXhG','__platformCaps','nosQf','zyJnu','102739OGyqwL','aGQUv','628408HCyqem','JzFCZ','uFGYG','os_version'];a104_0x1595=function(){return _0x292630;};return a104_0x1595();}(function(_0x2b3e35,_0x1d2907){const _0x416c88=a104_0x488a,_0x50986e=_0x2b3e35();while(!![]){try{const _0x2b5679=parseInt(_0x416c88(0x1af))/0x1+-parseInt(_0x416c88(0x19d))/0x2*(parseInt(_0x416c88(0x1ae))/0x3)+-parseInt(_0x416c88(0x193))/0x4+parseInt(_0x416c88(0x1a0))/0x5+-parseInt(_0x416c88(0x19c))/0x6*(-parseInt(_0x416c88(0x1b3))/0x7)+-parseInt(_0x416c88(0x1a9))/0x8+parseInt(_0x416c88(0x1a3))/0x9;if(_0x2b5679===_0x1d2907)break;else _0x50986e['push'](_0x50986e['shift']());}catch(_0x2deb64){_0x50986e['push'](_0x50986e['shift']());}}}(a104_0x1595,0x33f6b));const TestMetadata=require(a104_0x464d52(0x1ac));class BrowserStackSdk{static[a104_0x464d52(0x1a6)](){const _0xdffaa4=a104_0x464d52,_0x517aef={};_0x517aef['vLFAc']=_0xdffaa4(0x196),_0x517aef['JzFCZ']='osVersion',_0x517aef[_0xdffaa4(0x1aa)]=_0xdffaa4(0x1a8),_0x517aef[_0xdffaa4(0x1a7)]=_0xdffaa4(0x19e),_0x517aef['tMtjf']='browser_version',_0x517aef[_0xdffaa4(0x1b1)]='browserVersion',_0x517aef[_0xdffaa4(0x1a4)]=_0xdffaa4(0x19f),_0x517aef[_0xdffaa4(0x1ad)]=_0xdffaa4(0x1ab),_0x517aef['RxLUS']=_0xdffaa4(0x198),_0x517aef[_0xdffaa4(0x192)]=_0xdffaa4(0x199),_0x517aef[_0xdffaa4(0x1a2)]=_0xdffaa4(0x1a5),_0x517aef['uFGYG']='platformVersion',_0x517aef[_0xdffaa4(0x1b2)]='customVariables';const _0x451191=_0x517aef,_0x54f53c={};if(global[_0xdffaa4(0x1b0)]){const _0x5d266e=global[_0xdffaa4(0x1b0)],_0x592e78=_0x5d266e[_0x451191['vLFAc']]||_0x5d266e[_0x451191['JzFCZ']],_0x49cc12=_0x5d266e[_0x451191[_0xdffaa4(0x1aa)]]||_0x5d266e[_0x451191[_0xdffaa4(0x1a7)]],_0x368688=_0x5d266e[_0x451191[_0xdffaa4(0x197)]]||_0x5d266e[_0x451191[_0xdffaa4(0x1b1)]],_0xe2bb5b=_0x5d266e[_0x451191[_0xdffaa4(0x1a4)]]||_0x5d266e[_0x451191[_0xdffaa4(0x1ad)]],_0x347498=_0x5d266e[_0x451191['RxLUS']]||_0x5d266e[_0x451191[_0xdffaa4(0x192)]],_0x138530=_0x5d266e[_0x451191[_0xdffaa4(0x1a2)]]||_0x5d266e[_0x451191[_0xdffaa4(0x195)]];_0x5d266e['os']&&(_0x54f53c['os']=_0x5d266e['os']),_0x592e78&&(_0x54f53c[_0x451191[_0xdffaa4(0x194)]]=_0x592e78),_0x49cc12&&(_0x54f53c[_0x451191[_0xdffaa4(0x1a7)]]=_0x49cc12),_0x368688&&(_0x54f53c[_0x451191['nosQf']]=_0x368688),_0xe2bb5b&&(_0x54f53c[_0x451191[_0xdffaa4(0x1ad)]]=_0xe2bb5b),_0x347498&&(_0x54f53c[_0x451191[_0xdffaa4(0x192)]]=_0x347498),_0x138530&&(_0x54f53c[_0x451191[_0xdffaa4(0x195)]]=_0x138530),_0x5d266e[_0x451191[_0xdffaa4(0x1b2)]]&&(_0x54f53c[_0x451191[_0xdffaa4(0x1b2)]]=_0x5d266e[_0x451191[_0xdffaa4(0x1b2)]]);}return _0x54f53c;}static[a104_0x464d52(0x19a)](_0x50085d={}){const _0x184047=a104_0x464d52;TestMetadata[_0x184047(0x19b)](_0x50085d);}}function a104_0x488a(_0x1ce07f,_0x235471){const _0x159544=a104_0x1595();return a104_0x488a=function(_0x488a87,_0x32d1ea){_0x488a87=_0x488a87-0x192;let _0x50661a=_0x159544[_0x488a87];return _0x50661a;},a104_0x488a(_0x1ce07f,_0x235471);}module[a104_0x464d52(0x1a1)]=BrowserStackSdk;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a105_0x1e399f=a105_0x24ad;(function(_0x2ad4e5,_0x59fddc){const _0x490484=a105_0x24ad,_0x44efee=_0x2ad4e5();while(!![]){try{const _0x2c38f9=parseInt(_0x490484(0x1d6))/0x1*(-parseInt(_0x490484(0x144))/0x2)+-parseInt(_0x490484(0x1a5))/0x3+parseInt(_0x490484(0x1ba))/0x4*(parseInt(_0x490484(0x11e))/0x5)+parseInt(_0x490484(0x19a))/0x6*(-parseInt(_0x490484(0x117))/0x7)+parseInt(_0x490484(0x13d))/0x8+-parseInt(_0x490484(0x14d))/0x9+parseInt(_0x490484(0x141))/0xa;if(_0x2c38f9===_0x59fddc)break;else _0x44efee['push'](_0x44efee['shift']());}catch(_0x323293){_0x44efee['push'](_0x44efee['shift']());}}}(a105_0x30cf,0xce2e1));const util=require(a105_0x1e399f(0x1b9)),os=require('os'),path=require(a105_0x1e399f(0x1c4)),{v4:uuidv4}=require('uuid'),fs=require('fs'),constants=require(a105_0x1e399f(0x11d)),logger=require(a105_0x1e399f(0x19b))[a105_0x1e399f(0x1ed)],fileLogger=require(a105_0x1e399f(0x19b))[a105_0x1e399f(0x204)],{getLogDir}=require(a105_0x1e399f(0x19b)),helper=require(a105_0x1e399f(0x114)),utilities=require('./utilities'),percyHelper=require(a105_0x1e399f(0x195)),hubAllocator=require(a105_0x1e399f(0x1dd)),PerformanceTester=require('./performance/performance-tester'),{EVENTS:PerformanceEvents,AUTOMATE_EVENTS:PerformanceAutEvents}=require('./performance/constants'),{setPercyFlag}=require(a105_0x1e399f(0x1df)),TestHubHandler=require('./testhub/testhubHandler'),timeoutPromise=require(a105_0x1e399f(0xfb)),BrowserstackCLI=require(a105_0x1e399f(0x158)),LoadTestModule=require(a105_0x1e399f(0x1af)),{getEdsInstrumentationAPIUrl}=require(a105_0x1e399f(0x19e)),ClientTroubleShootingService=require(a105_0x1e399f(0x1d0));function a105_0x24ad(_0x5471bb,_0x512cc9){const _0x30cfad=a105_0x30cf();return a105_0x24ad=function(_0x24adfd,_0x57cb9f){_0x24adfd=_0x24adfd-0xf8;let _0x3ea886=_0x30cfad[_0x24adfd];return _0x3ea886;},a105_0x24ad(_0x5471bb,_0x512cc9);}class BrowserStackSetup{constructor(_0x3aab9d,_0x3d48bc){const _0xb9b9c2=a105_0x1e399f,_0x50b684={'LhXTE':_0xb9b9c2(0x17e),'imkvp':'No\x20config\x20provided.','Jmwpj':function(_0xd4d79f){return _0xd4d79f();}},_0x8e09e7=_0x50b684[_0xb9b9c2(0x143)]['split']('|');let _0x4bd318=0x0;while(!![]){switch(_0x8e09e7[_0x4bd318++]){case'0':this[_0xb9b9c2(0x152)]=_0x3d48bc;continue;case'1':this['config'][_0xb9b9c2(0x17a)]=this[_0xb9b9c2(0x12b)]['testContextOptions']||{};continue;case'2':global[_0xb9b9c2(0x152)]=_0x3d48bc;continue;case'3':this[_0xb9b9c2(0x12b)][_0xb9b9c2(0x17a)]['skipSessionStatus']=!helper[_0xb9b9c2(0x1a9)]()||helper[_0xb9b9c2(0x109)](this['config']['testContextOptions']['skipSessionStatus']);continue;case'4':this[_0xb9b9c2(0x1ac)]=null;continue;case'5':helper[_0xb9b9c2(0x106)](this[_0xb9b9c2(0x12b)],this[_0xb9b9c2(0x1f9)]);continue;case'6':this[_0xb9b9c2(0x133)]=helper[_0xb9b9c2(0x208)](_0x3aab9d);continue;case'7':this[_0xb9b9c2(0x12b)][_0xb9b9c2(0x17a)][_0xb9b9c2(0x10d)]=!helper['isBrowserstackInfra']()||helper[_0xb9b9c2(0x109)](this[_0xb9b9c2(0x12b)][_0xb9b9c2(0x17a)][_0xb9b9c2(0x10d)]);continue;case'8':this[_0xb9b9c2(0x12b)][_0xb9b9c2(0x107)]=this[_0xb9b9c2(0x12b)][_0xb9b9c2(0x107)]||[];continue;case'9':if(this[_0xb9b9c2(0x12b)][_0xb9b9c2(0x1ae)])throw new Error(this[_0xb9b9c2(0x12b)]['error']);continue;case'10':this[_0xb9b9c2(0x12b)]=helper[_0xb9b9c2(0x13f)](this['configPath']);continue;case'11':if(helper[_0xb9b9c2(0x1d3)](this[_0xb9b9c2(0x12b)]))throw new Error(_0x50b684[_0xb9b9c2(0x1ef)]);continue;case'12':helper[_0xb9b9c2(0x12c)]();continue;case'13':this[_0xb9b9c2(0x148)]=[];continue;case'14':helper['getFinalCaps'](this[_0xb9b9c2(0x12b)],this['cliConfig'],this[_0xb9b9c2(0x110)]);continue;case'15':helper['setCredentialsFromYmlConfig'](this[_0xb9b9c2(0x12b)]);continue;case'16':PerformanceTester[_0xb9b9c2(0x182)]();continue;case'17':this['sdkRunId']=_0x50b684[_0xb9b9c2(0x139)](uuidv4);continue;case'18':helper['setLogDir'](this[_0xb9b9c2(0x12b)]);continue;case'19':this[_0xb9b9c2(0x150)]={};continue;case'20':this[_0xb9b9c2(0x110)]=helper[_0xb9b9c2(0xfc)]();continue;case'21':helper[_0xb9b9c2(0x14f)](this[_0xb9b9c2(0x12b)],this[_0xb9b9c2(0x1f9)],this[_0xb9b9c2(0x110)]);continue;case'22':this[_0xb9b9c2(0x1f9)]=helper['setCLICaps'](_0x3aab9d);continue;case'23':this[_0xb9b9c2(0x197)]=null;continue;}break;}}[a105_0x1e399f(0x1a1)](_0x542754){const _0x3ec3e0=a105_0x1e399f,_0x7340c4={'zcvqI':_0x3ec3e0(0x104),'uxUCG':function(_0x106bfb,_0x2a40cd){return _0x106bfb===_0x2a40cd;},'xrrtq':_0x3ec3e0(0x11a),'tLUDD':'SDKTestAttempted','LLebf':function(_0x4cece3,_0xc19cbb){return _0x4cece3<_0xc19cbb;},'uoSTW':function(_0x41e65a,_0x839b8e){return _0x41e65a(_0x839b8e);},'HiHPr':_0x3ec3e0(0x118),'BxCRG':_0x3ec3e0(0x173),'kjFWp':_0x3ec3e0(0x172),'jgEMC':_0x3ec3e0(0x14e),'hbxZq':_0x3ec3e0(0x200),'PZQbJ':_0x3ec3e0(0x176),'eGKop':_0x3ec3e0(0x169),'WfCWP':function(_0x598523,_0x29dd7c){return _0x598523!==_0x29dd7c;},'GMbMM':_0x3ec3e0(0x124),'pMsft':_0x3ec3e0(0x15c),'YLOvC':_0x3ec3e0(0x156),'jsHNy':_0x3ec3e0(0x1f8),'pkuxU':_0x3ec3e0(0x1ee)},_0x127216=this[_0x3ec3e0(0x152)];global['config']=this['config'],helper['sanitizeCaps'](this[_0x3ec3e0(0x12b)]),this[_0x3ec3e0(0x125)]=null,global[_0x3ec3e0(0x189)]=this[_0x3ec3e0(0x189)],logger[_0x3ec3e0(0x149)](_0x3ec3e0(0x135)+this['sdkRunId']),!this[_0x3ec3e0(0x12b)]['browserStackLocalOptions']&&(this[_0x3ec3e0(0x12b)][_0x3ec3e0(0x1c6)]=this[_0x3ec3e0(0x12b)][_0x3ec3e0(0x179)]||{});if(helper[_0x3ec3e0(0x1d3)](helper[_0x3ec3e0(0x1be)](this[_0x3ec3e0(0x12b)]))||helper[_0x3ec3e0(0x1d3)](helper[_0x3ec3e0(0x188)](this[_0x3ec3e0(0x12b)])))throw new Error(_0x7340c4[_0x3ec3e0(0x105)]);helper[_0x3ec3e0(0xfe)](this[_0x3ec3e0(0x12b)])&&helper[_0x3ec3e0(0x1d3)](helper[_0x3ec3e0(0x146)](this['config']))&&(!helper[_0x3ec3e0(0x1d3)](this['config']['browserStackLocalOptions'])&&_0x7340c4['uxUCG'](this[_0x3ec3e0(0x12b)][_0x3ec3e0(0x1c6)][_0x3ec3e0(0x196)],Object)?!helper[_0x3ec3e0(0x109)](this[_0x3ec3e0(0x12b)][_0x3ec3e0(0x1c6)][_0x3ec3e0(0x20b)])&&(this[_0x3ec3e0(0x12b)]['browserStackLocalOptions']['localIdentifier']=helper[_0x3ec3e0(0x1fe)]()):this['config'][_0x3ec3e0(0x1c6)]={'localIdentifier':helper[_0x3ec3e0(0x1fe)]()});this[_0x3ec3e0(0x12b)][_0x3ec3e0(0x1c6)][_0x3ec3e0(0x20b)]=helper['isTrue'](this[_0x3ec3e0(0x12b)]['browserStackLocalOptions'][_0x3ec3e0(0x20b)]),helper[_0x3ec3e0(0x16a)](this[_0x3ec3e0(0x12b)]);if(_0x7340c4[_0x3ec3e0(0x193)](_0x127216,_0x7340c4[_0x3ec3e0(0x191)]))return;this[_0x3ec3e0(0x1a3)]();process[_0x3ec3e0(0x145)][_0x3ec3e0(0x103)]&&(this[_0x3ec3e0(0x12b)][_0x3ec3e0(0x136)]=helper[_0x3ec3e0(0x109)](process['env'][_0x3ec3e0(0x103)]),this[_0x3ec3e0(0x12b)][_0x3ec3e0(0x1c0)]=this[_0x3ec3e0(0x12b)][_0x3ec3e0(0x1c0)]||{});helper[_0x3ec3e0(0x20d)](this[_0x3ec3e0(0x12b)])&&(process[_0x3ec3e0(0x145)]['BROWSERSTACK_TURBOSCALE']=!![]);LoadTestModule[_0x3ec3e0(0x16b)](this[_0x3ec3e0(0x12b)])&&logger[_0x3ec3e0(0xfa)]('LTS\x20session\x20enabled\x20for\x20this\x20run.\x20SDK\x20run\x20id:\x20'+this['sdkRunId']);if(!helper[_0x3ec3e0(0x1a9)]()){try{process[_0x3ec3e0(0x145)][_0x3ec3e0(0x16f)]=_0x127216,utilities[_0x3ec3e0(0x17f)](_0x7340c4[_0x3ec3e0(0x112)],{},this[_0x3ec3e0(0x12b)],this[_0x3ec3e0(0x152)]);}catch(_0x4794c3){logger['debug'](_0x3ec3e0(0x1b7)+_0x4794c3);}return;}if(helper[_0x3ec3e0(0x10c)](_0x127216)){if(global[_0x3ec3e0(0x15a)]||global[_0x3ec3e0(0x111)])return;_0x7340c4['LLebf'](_0x7340c4['uoSTW'](parseInt,helper[_0x3ec3e0(0x184)](_0x7340c4[_0x3ec3e0(0x1f1)])),0x3)&&(this[_0x3ec3e0(0x12b)][_0x3ec3e0(0x1cc)]=![]),_0x7340c4['uxUCG'](helper[_0x3ec3e0(0x137)](helper['getPackageVersion'](_0x7340c4[_0x3ec3e0(0x1f1)]),_0x7340c4[_0x3ec3e0(0x209)]),0x1)&&(this[_0x3ec3e0(0x12b)][_0x3ec3e0(0x1cc)]=!![]);}(helper[_0x3ec3e0(0x1d3)](this['config'][_0x3ec3e0(0x107)])||helper['isUndefined'](this[_0x3ec3e0(0x12b)][_0x3ec3e0(0x107)][_0x3ec3e0(0x1ff)]))&&(helper[_0x3ec3e0(0x1d3)](this['config'][_0x3ec3e0(0x1fa)])?logger[_0x3ec3e0(0x149)](_0x7340c4['kjFWp']):logger[_0x3ec3e0(0x12e)](_0x7340c4['jgEMC']),this[_0x3ec3e0(0x12b)][_0x3ec3e0(0x107)]=[]);!this['config']['testContextOptions']&&(this[_0x3ec3e0(0x12b)][_0x3ec3e0(0x17a)]={});try{process['env'][_0x3ec3e0(0x16f)]=_0x542754['_'][0x0],utilities[_0x3ec3e0(0x17f)](_0x7340c4['tLUDD'],{},this[_0x3ec3e0(0x12b)],this[_0x3ec3e0(0x152)]);}catch(_0x215364){logger[_0x3ec3e0(0xfa)]('Error\x20in\x20Fire\x20SDKTestAttempted.\x20Stacktrace:\x20'+_0x215364);}!this[_0x3ec3e0(0x12b)]['disableAutoCaptureLogs']&&logger[_0x3ec3e0(0x149)](constants[_0x3ec3e0(0x132)]),this['intExitHandler']=this['intExitHandler'][_0x3ec3e0(0x130)](this),process['on'](_0x7340c4[_0x3ec3e0(0x1b8)],this['intExitHandler']),process['on'](_0x7340c4[_0x3ec3e0(0x1de)],this['intExitHandler']),process['on'](_0x7340c4['eGKop'],this[_0x3ec3e0(0x1dc)]),_0x7340c4[_0x3ec3e0(0x100)](process[_0x3ec3e0(0x14a)],_0x7340c4[_0x3ec3e0(0x1bb)])?(process['on'](_0x7340c4[_0x3ec3e0(0x1f6)],this['intExitHandler']),process['on'](_0x7340c4[_0x3ec3e0(0x126)],this['intExitHandler'])):process['on'](_0x7340c4[_0x3ec3e0(0x159)],this[_0x3ec3e0(0x1dc)]),process['on'](_0x7340c4[_0x3ec3e0(0x12d)],this[_0x3ec3e0(0x16c)]());}async[a105_0x1e399f(0x1a2)](_0x2b8278){const _0x3c9445=a105_0x1e399f,_0x4ed22b={'sarxO':'ats-repeater','fGGSw':_0x3c9445(0x1ce),'vAnWX':'true','NKwwy':function(_0x5840a8,_0x399268){return _0x5840a8===_0x399268;},'kpcIm':_0x3c9445(0x1a6),'NAPwc':function(_0x3e0f44,_0x1863c8){return _0x3e0f44+_0x1863c8;},'VhOEl':'?caps=','aLzNV':function(_0x583e61,_0x24eacc){return _0x583e61(_0x24eacc);},'XumnF':_0x3c9445(0x206)};this['preInitialize'](_0x2b8278);if(helper[_0x3c9445(0x20d)](this[_0x3c9445(0x12b)])){const _0x3d0611=await helper[_0x3c9445(0x123)](this[_0x3c9445(0x12b)]);this['config'][_0x3c9445(0x1b2)]=_0x3d0611,_0x3d0611[_0x3c9445(0x1b5)]&&helper[_0x3c9445(0x119)](this[_0x3c9445(0x12b)][_0x3c9445(0x197)])&&helper[_0x3c9445(0x109)](this[_0x3c9445(0x12b)][_0x3c9445(0x197)])&&(this[_0x3c9445(0x12b)][_0x3c9445(0x1c6)]['localIdentifier']=_0x4ed22b[_0x3c9445(0x1d5)],this['config'][_0x3c9445(0x1c6)][_0x4ed22b['fGGSw']]=_0x3d0611['customRepeaters'][_0x3c9445(0x203)](','),this[_0x3c9445(0x12b)][_0x3c9445(0x1c6)][_0x3c9445(0x1e0)]=_0x4ed22b[_0x3c9445(0x163)]),this[_0x3c9445(0x12b)][_0x3c9445(0x1da)]=_0x3d0611[_0x3c9445(0x1c7)],this['framework']&&_0x4ed22b[_0x3c9445(0x131)](this[_0x3c9445(0x152)][_0x3c9445(0x1c1)](),_0x4ed22b[_0x3c9445(0x115)])?this['config'][_0x3c9445(0x1da)]=_0x4ed22b[_0x3c9445(0x198)](_0x3d0611['playwrightUrl'],_0x4ed22b[_0x3c9445(0x1fb)]):constants[_0x3c9445(0x1e8)]=helper['getHubUrl'](this[_0x3c9445(0x12b)]),logger[_0x3c9445(0xfa)](_0x3c9445(0x19f)+constants['hubUrl']);}helper[_0x3c9445(0x153)](this[_0x3c9445(0x12b)]),this[_0x3c9445(0x205)](),_0x4ed22b[_0x3c9445(0x128)](setPercyFlag,this),await this['setupBrowserstackLocal'](),![_0x4ed22b['XumnF'],_0x4ed22b['kpcIm']][_0x3c9445(0x1cf)](this[_0x3c9445(0x152)])&&!helper[_0x3c9445(0x20d)](this[_0x3c9445(0x12b)])&&!helper[_0x3c9445(0x113)]()[_0x3c9445(0x14b)]&&await this[_0x3c9445(0x10e)]();}async['setupPercy'](){const _0x49c750=a105_0x1e399f,_0x4406b5={};_0x4406b5[_0x49c750(0xff)]=function(_0x5efbb7,_0x847ac0){return _0x5efbb7===_0x847ac0;},_0x4406b5[_0x49c750(0x194)]=_0x49c750(0x1ea),_0x4406b5['DzHfl']=_0x49c750(0x19d),_0x4406b5[_0x49c750(0x1ab)]=_0x49c750(0x18c),_0x4406b5[_0x49c750(0x1fc)]=_0x49c750(0x1f0),_0x4406b5['fOFve']=_0x49c750(0x1ee);const _0x911d0c=_0x4406b5;if(helper[_0x49c750(0x109)](this[_0x49c750(0x12b)]['percy'])&&(!this['percy']||!this['percy'][_0x49c750(0x1aa)]()))try{this[_0x49c750(0x1ac)]=await percyHelper['startPercy'](this[_0x49c750(0x12b)]);if(!this[_0x49c750(0x1ac)]){process[_0x49c750(0x145)]['BROWSERSTACK_PERCY']=_0x911d0c['jWbFh'];throw new Error(_0x911d0c[_0x49c750(0x1eb)]);}logger['info'](_0x911d0c[_0x49c750(0x1ab)]),process['env']['BROWSERSTACK_PERCY']=_0x911d0c[_0x49c750(0x1fc)];let _0x1544ce=0x0;const _0x36a632=async()=>{const _0x8d4d6=_0x49c750;_0x1544ce++,_0x911d0c[_0x8d4d6(0xff)](_0x1544ce,0x1)&&await this[_0x8d4d6(0x14c)]();};process['on'](_0x911d0c[_0x49c750(0x13e)],_0x36a632);}catch(_0x2e3578){process[_0x49c750(0x145)][_0x49c750(0x1bd)]=_0x911d0c[_0x49c750(0x194)],logger[_0x49c750(0xfa)]('Error\x20in\x20percy\x20setup\x20'+_0x2e3578);throw new Error(_0x2e3578[_0x49c750(0x1b6)]());}}async[a105_0x1e399f(0x14c)](){const _0x254bca=a105_0x1e399f,_0x4ca2cc={};_0x4ca2cc[_0x254bca(0x13c)]=_0x254bca(0xf9),_0x4ca2cc['gZzVN']=_0x254bca(0x140);const _0x2d27b6=_0x4ca2cc;if(this[_0x254bca(0x1ac)]&&this[_0x254bca(0x1ac)][_0x254bca(0x1aa)]())try{await percyHelper['stopPercy'](this[_0x254bca(0x1ac)]),logger['info'](_0x2d27b6[_0x254bca(0x13c)]);}catch(_0x31f1bf){logger[_0x254bca(0x1ae)](_0x2d27b6[_0x254bca(0x20c)],_0x31f1bf[_0x254bca(0x1d7)]);}}async['setupBrowserstackLocal'](){const _0x49287d=a105_0x1e399f,_0x19996c={};_0x19996c[_0x49287d(0x1d4)]='Local\x20binary\x20not\x20started\x20as\x20skipBinaryInitialisation\x20is\x20enabled',_0x19996c[_0x49287d(0x127)]=_0x49287d(0x160);const _0x50f8d5=_0x19996c;if(helper[_0x49287d(0x1a9)]()&&helper['isTrue'](this[_0x49287d(0x12b)]['browserstackLocal'])&&(!this[_0x49287d(0x197)]||!this[_0x49287d(0x197)]['isRunning']()))try{if(this[_0x49287d(0x12b)][_0x49287d(0x1c6)][_0x49287d(0x20b)]){logger[_0x49287d(0xfa)](_0x50f8d5[_0x49287d(0x1d4)]);return;}this['browserstackLocal']=await helper[_0x49287d(0x168)](this[_0x49287d(0x12b)]),logger['info'](_0x50f8d5[_0x49287d(0x127)]);}catch(_0x44ec4e){logger[_0x49287d(0xfa)](_0x44ec4e);throw new Error(_0x44ec4e[_0x49287d(0x1b6)]());}}async[a105_0x1e399f(0x175)](){const _0x1457d3=a105_0x1e399f,_0x48000d={};_0x48000d['DaSQO']=_0x1457d3(0x201),_0x48000d[_0x1457d3(0x17d)]=_0x1457d3(0x1ca);const _0x184f7d=_0x48000d;if(this[_0x1457d3(0x197)]&&this[_0x1457d3(0x197)][_0x1457d3(0x1aa)]())try{await helper[_0x1457d3(0x1b0)](this[_0x1457d3(0x197)]),logger[_0x1457d3(0x149)](_0x184f7d[_0x1457d3(0x178)]);}catch(_0x237aec){logger[_0x1457d3(0x1ae)](_0x184f7d[_0x1457d3(0x17d)],_0x237aec['message']);}}async['setUpHubUrl'](){const _0x1a4c5f=a105_0x1e399f;return PerformanceTester[_0x1a4c5f(0x101)](PerformanceAutEvents[_0x1a4c5f(0x1e2)],async()=>{const _0x8e7da3=_0x1a4c5f;await hubAllocator[_0x8e7da3(0x1d1)](this['config']);})();}async[a105_0x1e399f(0x186)](){const _0x3c7b29=a105_0x1e399f,_0x1f082d={'YqEsj':function(_0x36d306,_0x2b78e7){return _0x36d306(_0x2b78e7);},'UUDML':_0x3c7b29(0x1ad),'xqQOT':function(_0x578882,_0x31f85b,_0x2febed,_0x5a7cea,_0x3130e2,_0x4590b5,_0x3e23ee){return _0x578882(_0x31f85b,_0x2febed,_0x5a7cea,_0x3130e2,_0x4590b5,_0x3e23ee);},'EYgUM':_0x3c7b29(0x1e4),'sbrQA':_0x3c7b29(0x1e6),'hAuMV':'../../package.json','rtaSS':_0x3c7b29(0x1c8),'RTmPH':function(_0x416aab,_0x5f3e6d){return _0x416aab(_0x5f3e6d);},'bDznS':function(_0x3b9399,_0x167e46){return _0x3b9399===_0x167e46;},'vyVBs':_0x3c7b29(0x1f0),'bXzqZ':function(_0x65d5a9,_0x22a633){return _0x65d5a9===_0x22a633;},'IIQfi':function(_0x5ab65e,_0x54c31a){return _0x5ab65e===_0x54c31a;},'XZPQH':function(_0x17ada4,_0x41bc78){return _0x17ada4===_0x41bc78;},'yDIUm':_0x3c7b29(0x187),'ckBPu':function(_0x4a1bb6,_0x2e60b6){return _0x4a1bb6===_0x2e60b6;},'ywvEz':_0x3c7b29(0x1cb),'jcAPk':'Authentication\x20Failed.\x20Disabling\x20Healing\x20for\x20this\x20session.','eXeCT':'Healing\x20is\x20not\x20enabled\x20for\x20your\x20group,\x20please\x20contact\x20the\x20admin','PMRxT':function(_0xa922a1,_0x2d0d69){return _0xa922a1>=_0x2d0d69;},'QaZOV':function(_0x38b2e9,_0x346e84){return _0x38b2e9<_0x346e84;},'mBLHi':_0x3c7b29(0x1b4),'yHmJk':_0x3c7b29(0x10b),'sSGJq':function(_0x422fa1){return _0x422fa1();}},_0x67aa94=PerformanceTester[_0x3c7b29(0x101)](_0x1f082d[_0x3c7b29(0x15d)],async()=>{const _0x576a89=_0x3c7b29;try{const _0x53dccf=new Date(),_0x4938b4=helper[_0x576a89(0x171)](this[_0x576a89(0x12b)]),_0x3e63aa=_0x1f082d[_0x576a89(0x116)](require,path[_0x576a89(0x203)](__dirname,_0x1f082d[_0x576a89(0x13a)])),_0x448521=_0x1f082d['xqQOT'](timeoutPromise,constants[_0x576a89(0x16e)],_0x1f082d['EYgUM'],_0x1f082d['sbrQA'],_0x53dccf,this['config'],this['framework']),_0x313ab1={'tcgUrl':constants[_0x576a89(0x12a)],'sdkVersion':_0x1f082d[_0x576a89(0x116)](require,_0x1f082d['hAuMV'])[_0x576a89(0x1bf)],'methodUsed':_0x1f082d[_0x576a89(0x1e3)],'proxyConfig':_0x4938b4,'os':os[_0x576a89(0x14a)]()};if(_0x4938b4&&_0x4938b4[_0x576a89(0x174)]){utilities[_0x576a89(0x17f)](constants[_0x576a89(0x1f4)],_0x313ab1,this[_0x576a89(0x12b)],this[_0x576a89(0x152)]);return;}const _0x42ccad={};_0x42ccad[_0x576a89(0x15b)]=_0x4938b4;const _0x1a802a=await Promise[_0x576a89(0x11f)]([_0x3e63aa[_0x576a89(0x15e)](this[_0x576a89(0x12b)][_0x576a89(0x10a)],this['config'][_0x576a89(0x1f3)],constants['TCG_URL'],_0x1f082d[_0x576a89(0x1f5)](require,_0x1f082d[_0x576a89(0x1c9)])['version'],_0x42ccad)[_0x576a89(0x18d)](_0x470e89=>{const _0x1b8c5a=_0x576a89;return _0x448521[_0x1b8c5a(0x1a8)](),_0x470e89;}),_0x448521]);_0x1a802a[_0x576a89(0x121)]=_0x1f082d[_0x576a89(0x18f)](_0x1a802a[_0x576a89(0x121)],_0x1f082d[_0x576a89(0x1a4)])||_0x1f082d['bXzqZ'](_0x1a802a['isHealingEnabled'],!![]);const _0x30f2e8=_0x1f082d[_0x576a89(0x177)](this[_0x576a89(0x12b)][_0x576a89(0x16d)],!![])||_0x1f082d[_0x576a89(0x18f)](this[_0x576a89(0x12b)][_0x576a89(0x16d)],_0x1f082d[_0x576a89(0x1a4)]);if(_0x1f082d[_0x576a89(0x1a0)](_0x1a802a['message'],constants['UPGRADE_REQUIRED'])&&_0x30f2e8)logger['info'](_0x1f082d['yDIUm']);else{if(!_0x1a802a[_0x576a89(0x164)]&&_0x1f082d[_0x576a89(0x17b)](_0x1a802a[_0x576a89(0x1e1)],0x1f7)&&_0x30f2e8)logger['info'](_0x1f082d[_0x576a89(0x1c3)]),utilities['fireFunnelTestEvent'](constants[_0x576a89(0x1e5)],_0x313ab1,this[_0x576a89(0x12b)],this[_0x576a89(0x152)]);else{if(!_0x1a802a[_0x576a89(0x164)]&&_0x30f2e8){logger[_0x576a89(0x149)](_0x1f082d[_0x576a89(0x151)]);const _0x3f4739={'tcgUrl':constants[_0x576a89(0x12a)],'sdkVersion':_0x1f082d[_0x576a89(0x116)](require,_0x1f082d['hAuMV'])[_0x576a89(0x1bf)],'methodUsed':_0x1f082d[_0x576a89(0x1e3)],'proxyConfig':_0x4938b4,'os':os[_0x576a89(0x14a)]()};utilities[_0x576a89(0x17f)](constants[_0x576a89(0x108)],_0x3f4739,this[_0x576a89(0x12b)],this[_0x576a89(0x152)]);}else{if(_0x1a802a[_0x576a89(0x164)]&&!_0x1a802a[_0x576a89(0x121)]&&_0x30f2e8)logger['info'](_0x1f082d[_0x576a89(0x165)]);else{if(_0x1f082d[_0x576a89(0x1ec)](_0x1a802a['status'],0xc8)&&_0x1f082d[_0x576a89(0x134)](_0x1a802a['status'],0x12c))utilities['fireFunnelTestEvent'](constants[_0x576a89(0x166)],_0x313ab1,this['config'],this[_0x576a89(0x152)]);else{if(_0x1f082d[_0x576a89(0x1ec)](_0x1a802a[_0x576a89(0x1e1)],0x190))_0x313ab1['status']=_0x1a802a[_0x576a89(0x1e1)],utilities['fireFunnelTestEvent'](constants[_0x576a89(0x120)],_0x313ab1,this['config'],this[_0x576a89(0x152)]);else!_0x1a802a[_0x576a89(0x1e1)]&&utilities[_0x576a89(0x17f)](constants[_0x576a89(0x138)],_0x313ab1,this['config'],this['framework']);}}}}}if(_0x1a802a[_0x576a89(0x164)]&&_0x1a802a[_0x576a89(0x121)]){const _0x124c98={};_0x124c98['tcgAuthConfig']=_0x1a802a;const _0x100e5e=_0x124c98;_0x4938b4&&(_0x100e5e[_0x576a89(0x1bc)]=_0x4938b4),_0x100e5e[_0x576a89(0x152)]=this['framework'],_0x100e5e[_0x576a89(0x129)]=this['config'],helper['setupTcgConfigFile'](_0x100e5e),logger[_0x576a89(0xfa)](_0x1f082d[_0x576a89(0x10f)]);}}catch(_0x1b924e){logger[_0x576a89(0xfa)]('Error\x20in\x20setting\x20up\x20tcg\x20authconfig.\x20Error:\x20'+(_0x1b924e['message']?_0x1b924e[_0x576a89(0x1d7)]:''));}});await _0x1f082d[_0x3c7b29(0x142)](_0x67aa94);}[a105_0x1e399f(0x205)](){const _0x376879=a105_0x1e399f,_0x2d5e79={'pAJJk':function(_0xaad74f,_0x545da4){return _0xaad74f(_0x545da4);},'HuoxW':_0x376879(0x1d8)};_0x2d5e79[_0x376879(0x102)](require,_0x2d5e79[_0x376879(0x1f2)])();}[a105_0x1e399f(0x1a3)](){const _0x1abb94=a105_0x1e399f,_0x14a0bc={};_0x14a0bc[_0x1abb94(0x18a)]=_0x1abb94(0x122),_0x14a0bc['zalCf']=_0x1abb94(0x1e7),_0x14a0bc[_0x1abb94(0x1b1)]=_0x1abb94(0x11c);const _0x50c51e=_0x14a0bc,_0x6b1b32=_0x196b06=>{const _0x4f2a50=_0x1abb94,_0x27d87e=_0x50c51e[_0x4f2a50(0x18a)]['split']('|');let _0x59798f=0x0;while(!![]){switch(_0x27d87e[_0x59798f++]){case'0':PerformanceTester['captureError'](_0x196b06);continue;case'1':logger[_0x4f2a50(0xfa)](util[_0x4f2a50(0x1d2)](_0x196b06));continue;case'2':logger['error'](_0x196b06[_0x4f2a50(0x1d7)]);continue;case'3':this['unhandledErrors']['push'](util[_0x4f2a50(0x1d2)]('%j',_0x196b06));continue;case'4':ClientTroubleShootingService[_0x4f2a50(0xfd)]();continue;}break;}};process['on'](_0x50c51e[_0x1abb94(0x18b)],_0x6b1b32),process['on'](_0x50c51e[_0x1abb94(0x1b1)],_0x6b1b32);}async[a105_0x1e399f(0x1dc)](_0x2ef936){const _0x56ba99=a105_0x1e399f,_0x1e949f={};_0x1e949f['qovOG']=_0x56ba99(0x20e),_0x1e949f[_0x56ba99(0x192)]=function(_0x2134ac,_0x1ba029){return _0x2134ac+_0x1ba029;},_0x1e949f[_0x56ba99(0x19c)]=_0x56ba99(0x15f),_0x1e949f[_0x56ba99(0x183)]=function(_0x1d1f45,_0x28fea3){return _0x1d1f45+_0x28fea3;},_0x1e949f[_0x56ba99(0x1fd)]=_0x56ba99(0x155);const _0x518bad=_0x1e949f,_0xc5d14a=_0x518bad[_0x56ba99(0x1a7)][_0x56ba99(0x154)]('|');let _0x5ef3df=0x0;while(!![]){switch(_0xc5d14a[_0x5ef3df++]){case'0':this[_0x518bad[_0x56ba99(0x192)](_0x518bad['QgfZs'],_0x2ef936)]=!![];continue;case'1':await TestHubHandler['stop'](_0x2ef936);continue;case'2':logger['info'](_0x518bad[_0x56ba99(0x183)](_0x518bad['EERxu'],_0x2ef936));continue;case'3':await ClientTroubleShootingService[_0x56ba99(0x17c)](_0x2ef936);continue;case'4':await BrowserstackCLI['getInstance']()[_0x56ba99(0x181)]();continue;case'5':this['killSignal']=_0x2ef936;continue;case'6':if(this[_0x518bad['kMtaK'](_0x518bad[_0x56ba99(0x19c)],_0x2ef936)])return;continue;case'7':await ClientTroubleShootingService['reportFinalDetectionState']();continue;}break;}}[a105_0x1e399f(0x16c)](){const _0x2c36bc=a105_0x1e399f,_0x5bc23f={'iHEJK':function(_0x176b11,_0x3f5faa){return _0x176b11===_0x3f5faa;},'kDhNM':_0x2c36bc(0x190),'YGLjq':function(_0x1372d4,_0x2aae30){return _0x1372d4>_0x2aae30;},'AnvNE':function(_0x122e47,_0x470190){return _0x122e47(_0x470190);},'gdOxj':function(_0x240c42,_0x416b1d){return _0x240c42(_0x416b1d);},'cDTFY':function(_0xcee83){return _0xcee83();},'seXAG':_0x2c36bc(0x1c2)};let _0x946e69=0x0;return async()=>{const _0x5ced36=_0x2c36bc;_0x946e69++;if(_0x5bc23f['iHEJK'](_0x946e69,0x1)){helper[_0x5ced36(0x1c5)](this[_0x5ced36(0x152)])&&await this[_0x5ced36(0x175)]();try{logger['debug'](_0x5bc23f[_0x5ced36(0x1cd)]),await TestHubHandler[_0x5ced36(0x181)](_0x946e69),await ClientTroubleShootingService[_0x5ced36(0xfd)](),await BrowserstackCLI[_0x5ced36(0x12f)]()[_0x5ced36(0x181)]('1');}catch(_0x18566d){logger[_0x5ced36(0xfa)](_0x5ced36(0x202)+util[_0x5ced36(0x1d2)](_0x18566d));}PerformanceTester['end'](PerformanceEvents[_0x5ced36(0x13b)]);if(PerformanceTester[_0x5ced36(0x1e9)]()){const {measures:_0x2bc6ce,errors:_0x258083}=await PerformanceTester[_0x5ced36(0x1d9)](),_0xd7d98e={};if(_0x2bc6ce&&_0x5bc23f[_0x5ced36(0x185)](_0x2bc6ce[_0x5ced36(0x1ff)],0x0)||_0x258083&&_0x5bc23f[_0x5ced36(0x185)](_0x258083[_0x5ced36(0x1ff)],0x0)){const _0x53712a={};_0x53712a[_0x5ced36(0x167)]=_0x2bc6ce,_0x53712a[_0x5ced36(0x162)]=_0x258083,Object[_0x5ced36(0x11b)](_0xd7d98e,_0x53712a);}try{const _0xdbc37b=await helper[_0x5ced36(0x20a)](_0xd7d98e,this['config']);logger[_0x5ced36(0xfa)](_0x5ced36(0x157)+_0x5bc23f[_0x5ced36(0x170)](getEdsInstrumentationAPIUrl,'')+_0x5ced36(0xf8)+_0xdbc37b['statusCode']);}catch(_0x42cc90){logger[_0x5ced36(0xfa)](_0x5ced36(0x161)+_0x5bc23f[_0x5ced36(0x207)](getEdsInstrumentationAPIUrl,'')+_0x5ced36(0x1db)+util['format'](_0x42cc90));}try{fs[_0x5ced36(0x1b3)](path[_0x5ced36(0x203)](_0x5bc23f[_0x5ced36(0x1f7)](getLogDir),_0x5bc23f['seXAG']),JSON[_0x5ced36(0x180)](_0xd7d98e));}catch(_0x4fdf9a){logger[_0x5ced36(0xfa)](_0x5ced36(0x18e)+_0x4fdf9a);}}}logger&&logger[_0x5ced36(0x199)](),fileLogger&&fileLogger[_0x5ced36(0x199)]();};}}function a105_0x30cf(){const _0x295d7b=['HUB_MANAGEMENT','rtaSS','BrowserstackHealing.init\x20method\x20timed\x20out','TCG_DOWN','BrowserstackHealingInitFailed','unhandledRejection','hubUrl','isEnabled','false','DzHfl','PMRxT','winstonLogger','beforeExit','imkvp','true','HiHPr','HuoxW','userName','AI_PROXY_FAILURE','RTmPH','pMsft','cDTFY','SIGBREAK','cliConfig','parallelsPerPlatform','VhOEl','KzrzX','EERxu','generateLocalIdentifier','length','SIGTERM','Local\x20binary\x20stopped','Error\x20in\x20sending\x20testhub\x20stop:\x20','join','fileLogger','setupKeepAlive','codeceptjs','gdOxj','getConfigPath','BxCRG','sendToEDS','skipBinaryInitialisation','gZzVN','isTurboScaleSession','6|0|2|5|3|1|7|4','\x20with\x20response\x20','Percy\x20stopped','debug','./timeoutPromise','setEnvCaps','reportFinalDetectionState','getLocalConfig','aemCH','WfCWP','measureWrapper','pAJJk','BROWSERSTACK_TURBOSCALE','userName\x20or\x20accessKey\x20is\x20not\x20defined','zcvqI','setBrowserstackInfraFromConfig','platforms','TCG_AUTH_FAILURE','isTrue','accessKey','aiHeal:tcgAuth','requireSeleniumWebdriverCheck','skipSessionName','setUpHubUrl','mBLHi','envConfig','__isPuppeteerInstalled','tLUDD','getCentralUser','./helper','kpcIm','YqEsj','203RwjAqK','selenium-webdriver','isNotUndefined','integrations','assign','uncaughtException','../bin/utils/constants','1335FYMqeA','race','AI_INIT_FAILURE','isHealingEnabled','2|1|3|0|4','getTurboScaleGridDetails','win32','killSignal','YLOvC','IUrCT','aLzNV','bstackConfig','TCG_URL','config','normalizeTestReportingEnvVars','pkuxU','warn','getInstance','bind','NKwwy','AUTOLOGCAPTURE_NOTIFICATION','configPath','QaZOV','SDK\x20run\x20started\x20with\x20id:\x20','turboScale','compareVersions','INVALID_INIT_RESP_WITH_USER_IMPACT','Jmwpj','UUDML','SDK_CLEANUP','CpMEJ','3638280riPcZi','fOFve','readConfig','Error\x20occured\x20while\x20stopping\x20percy','36422340uYkKgh','sSGJq','LhXTE','218iivndR','env','getLocalIdentifier','default','unhandledErrors','info','platform','central_scanner','stopPercy','3939228tgnZwZ','parallelsPerPlatform\x20was\x20ignored\x20as\x20platforms\x20object\x20was\x20not\x20defined','setLogLevel','errorMessage','jcAPk','framework','setProxySettings','split','Shutdown\x20triggered\x20by\x20','SIGQUIT','Data\x20sent\x20successfully\x20to\x20','../bin/v2/browserstackCLI','jsHNy','__isPlaywrightInstalled','proxy','SIGABRT','yHmJk','init','handled','Local\x20binary\x20started\x20successfully','Failed\x20to\x20send\x20data\x20to\x20','exceptions','vAnWX','isAuthenticated','eXeCT','AI_INIT_SUCCESSFUL','measures','startLocalBinary','SIGHUP','setHandlePWError','isLTSSession','exitHandler','selfHeal','TCG_AUTH_TIMEOUT','FRAMEWORK','AnvNE','getProxyConfigForTcg','Few\x20SDK\x20features\x20were\x20not\x20activated\x20as\x20platforms\x20object\x20was\x20not\x20defined','4.5.0','proxyUrl','stopBrowserstackLocal','SIGINT','IIQfi','DaSQO','localOptions','testContextOptions','ckBPu','reportProcessInterruptionSituation','CZRbF','13|12|20|23|4|6|10|22|8|1|19|17|0|2|11|9|5|15|3|7|14|18|21|16','fireFunnelTestEvent','stringify','stop','startMonitoring','kMtaK','getPackageVersion','YGLjq','setupTCGAuth','Please\x20upgrade\x20Browserstack\x20SDK\x20to\x20the\x20latest\x20version\x20to\x20use\x20the\x20self-healing\x20feature.','getAccessKey','sdkRunId','QDwNE','zalCf','Percy\x20started\x20successfully','then','Error\x20in\x20writing\x20events\x20to\x20file\x20','bDznS','Calling\x20Build\x20Stop\x20from\x20ExitHandler','xrrtq','rNLuL','uxUCG','jWbFh','./percy/utils','constructor','browserstackLocal','NAPwc','close','101298WIBAys','./logger','QgfZs','Could\x20not\x20start\x20percy,\x20check\x20percy\x20logs\x20for\x20info.','../bin/utils/apiUtilityMethods','HUB\x20URL\x20SET\x20TO\x20TurboScale\x20HUB\x20-\x20','XZPQH','preInitialize','initialize','handleExceptions','vyVBs','3978783zjWRAV','playwright','qovOG','cancel','isBrowserstackInfra','isRunning','PewZa','percy','../ai-sdk-node/bundle','error','../bin/v2/modules/loadTestModule','stopLocalBinary','TQjRT','turboScaleGridDetails','writeFileSync','tcg\x20config\x20setup\x20successful.','isTrialGrid','toString','Error\x20in\x20Fire\x20SDKTestAttempted.\x20Stacktrace:\x20','hbxZq','util','6036pnqXLT','GMbMM','proxyConfig','BROWSERSTACK_PERCY','getUserName','version','turboScaleOptions','toLowerCase','events.json','ywvEz','path','checkStopLocalBinaryOnExit','browserStackLocalOptions','url','BrowserstackHealing.init','hAuMV','Error\x20occured\x20while\x20stopping\x20local\x20binary','Something\x20went\x20wrong.\x20Disabling\x20healing\x20for\x20this\x20session.\x20Please\x20try\x20again\x20later.','useW3C','kDhNM','custom-repeater','includes','../bin/utils/clientTroubleshootingService','allocateHub','format','isUndefined','jGmtq','sarxO','12861GsrBSg','message','./setKeepAlive','finalize','turboScaleUrl','\x20with\x20error\x20','intExitHandler','../hubAllocationMethods','PZQbJ','./testhub/utils','forceLocal','status'];a105_0x30cf=function(){return _0x295d7b;};return a105_0x30cf();}exports[a105_0x1e399f(0x147)]=BrowserStackSetup;
|
|
1
|
+
const a105_0x368dd3=a105_0x13e2;function a105_0x13e2(_0x9c32ef,_0x2a43e5){const _0x5967bc=a105_0x5967();return a105_0x13e2=function(_0x13e27f,_0x3b4dd9){_0x13e27f=_0x13e27f-0x12d;let _0x2cfa92=_0x5967bc[_0x13e27f];return _0x2cfa92;},a105_0x13e2(_0x9c32ef,_0x2a43e5);}(function(_0x52f394,_0x4730f7){const _0x20b866=a105_0x13e2,_0x2cddb9=_0x52f394();while(!![]){try{const _0xb85e33=-parseInt(_0x20b866(0x213))/0x1*(-parseInt(_0x20b866(0x201))/0x2)+parseInt(_0x20b866(0x1a7))/0x3+-parseInt(_0x20b866(0x14d))/0x4+parseInt(_0x20b866(0x153))/0x5+parseInt(_0x20b866(0x21d))/0x6+-parseInt(_0x20b866(0x227))/0x7*(-parseInt(_0x20b866(0x1d9))/0x8)+-parseInt(_0x20b866(0x18a))/0x9*(parseInt(_0x20b866(0x15f))/0xa);if(_0xb85e33===_0x4730f7)break;else _0x2cddb9['push'](_0x2cddb9['shift']());}catch(_0x2c6625){_0x2cddb9['push'](_0x2cddb9['shift']());}}}(a105_0x5967,0x5b655));const util=require('util'),os=require('os'),path=require(a105_0x368dd3(0x14f)),{v4:uuidv4}=require('uuid'),fs=require('fs'),constants=require(a105_0x368dd3(0x1e4)),logger=require('./logger')[a105_0x368dd3(0x1c0)],fileLogger=require(a105_0x368dd3(0x174))[a105_0x368dd3(0x13e)],{getLogDir}=require(a105_0x368dd3(0x174)),helper=require(a105_0x368dd3(0x16e)),utilities=require(a105_0x368dd3(0x1dd)),percyHelper=require(a105_0x368dd3(0x184)),hubAllocator=require('../hubAllocationMethods'),PerformanceTester=require(a105_0x368dd3(0x1f8)),{EVENTS:PerformanceEvents,AUTOMATE_EVENTS:PerformanceAutEvents}=require('./performance/constants'),{setPercyFlag}=require('./testhub/utils'),TestHubHandler=require(a105_0x368dd3(0x1c2)),timeoutPromise=require(a105_0x368dd3(0x20a)),BrowserstackCLI=require(a105_0x368dd3(0x231)),LoadTestModule=require(a105_0x368dd3(0x132)),{getEdsInstrumentationAPIUrl}=require('../bin/utils/apiUtilityMethods'),ClientTroubleShootingService=require(a105_0x368dd3(0x181));function a105_0x5967(){const _0x498ada=['NatIr','vvykI','info','turboScaleOptions','intExitHandler','setLogLevel','framework','startLocalBinary','SOLaX','cHTEm','killSignal','isBrowserstackInfra','INVALID_INIT_RESP_WITH_USER_IMPACT','handleExceptions','NKsqJ','winstonLogger','fwlLy','./testhub/testhubHandler','isLTSSession','aiHeal:tcgAuth','custom-repeater','bstackConfig','GyoVF','startPercy','Percy\x20started\x20successfully','setBrowserstackInfraFromConfig','isEnabled','OpexP','lwZkf','BrowserstackHealingInitFailed','status','swdHa','BrowserstackHealing.init\x20method\x20timed\x20out','getPackageVersion','SZBJF','close','false','RQJpV','preInitialize','config','21824FwXSUM','Healing\x20is\x20not\x20enabled\x20for\x20your\x20group,\x20please\x20contact\x20the\x20admin','BROWSERSTACK_TURBOSCALE','IvvHO','./utilities','plApB','SDK\x20run\x20started\x20with\x20id:\x20','forceLocal','generateLocalIdentifier','debug','tQdcw','../bin/utils/constants','beforeExit','startMonitoring','selfHeal','localOptions','ijURp','RBYqh','chRdL','parallelsPerPlatform','mLLIl','getAccessKey','unhandledErrors','initialize','stopBrowserstackLocal','qcfLQ','events.json','isAuthenticated','Error\x20in\x20setting\x20up\x20tcg\x20authconfig.\x20Error:\x20','No\x20config\x20provided.','playwright','./performance/performance-tester','setupBrowserstackLocal','parallelsPerPlatform\x20was\x20ignored\x20as\x20platforms\x20object\x20was\x20not\x20defined','true','percy','push','setupTCGAuth','envConfig','tpuET','68xxhDqs','default','stopLocalBinary','YtZRj','SIGTERM','browserStackLocalOptions','Error\x20in\x20writing\x20events\x20to\x20file\x20','SeMOe','setUpHubUrl','./timeoutPromise','yrIzV','rFbzo','KACsJ','\x20with\x20response\x20','gfQQG','Something\x20went\x20wrong.\x20Disabling\x20healing\x20for\x20this\x20session.\x20Please\x20try\x20again\x20later.','uEIJb','init','14824tnQuDP','codeceptjs','fireFunnelTestEvent','getInstance','getLocalConfig','FRAMEWORK','KCEfI','tcgAuthConfig','twluV','uBKzR','3574374hYNMpY','reportFinalDetectionState','isHealingEnabled','captureError','HUB\x20URL\x20SET\x20TO\x20TurboScale\x20HUB\x20-\x20','readConfig','Calling\x20Build\x20Stop\x20from\x20ExitHandler','stop','tcg\x20config\x20setup\x20successful.','AI_INIT_SUCCESSFUL','154GnUQxA','cancel','skipSessionName','testContextOptions','BwEjI','useW3C','platform','lnxli','includes','getUserName','../bin/v2/browserstackCLI','length','1|0|4|3|2','qcOnA','url','Error\x20in\x20sending\x20testhub\x20stop:\x20','version','qNrZx','VJeHj','mFDUK','../bin/v2/modules/loadTestModule','isTrue','warn','AUTOLOGCAPTURE_NOTIFICATION','qRcsg','gNATm','DSEGa','message','skipBinaryInitialisation','LTS\x20session\x20enabled\x20for\x20this\x20run.\x20SDK\x20run\x20id:\x20','measureWrapper','MIChC','fileLogger','TCG_AUTH_TIMEOUT','TCG_DOWN','TCG_URL','measures','exitHandler','turboScaleUrl','mKWSN','assign','RHoRY','sdkRunId','tVpfU','QuSxI','EBqbw','iGzYA','44836IHhkHY','Error\x20in\x20percy\x20setup\x20','path','bind','fvmVl','checkStopLocalBinaryOnExit','1399895hADOZh','normalizeTestReportingEnvVars','setHandlePWError','BrowserstackHealing.init','Nrrou','NMcJC','rrfGy','MsGIf','turboScale','statusCode','getConfigPath','errorMessage','20LQJbmV','wtSsf','cuBfo','SIGQUIT','error','turboScaleGridDetails','uncaughtException','lnMRF','fFIQh','sanitizeCaps','dFaOf','hubUrl','../../package.json','cliConfig','zvqgT','./helper','proxyUrl','selenium-webdriver','getProxyConfigForTcg','setupKeepAlive','win32','./logger','fiRLd','playwrightUrl','env','SDKTestAttempted','Local\x20binary\x20started\x20successfully','getCentralUser','stopPercy','SIGABRT','SIGINT','format','GMuMl','compareVersions','../bin/utils/clientTroubleshootingService','ZrqED','PPWzY','./percy/utils','join','browserstackLocal','integrations','Error\x20in\x20Fire\x20SDKTestAttempted.\x20Stacktrace:\x20','AI_INIT_FAILURE','8090577ZcuorT','isUndefined','unhandledRejection','./setKeepAlive','7|3|18|6|11|9|4|21|16|0|2|20|13|15|1|12|19|17|14|8|23|5|10|22','exceptions','Authentication\x20Failed.\x20Disabling\x20Healing\x20for\x20this\x20session.','Shutdown\x20triggered\x20by\x20','4.5.0','proxy','userName\x20or\x20accessKey\x20is\x20not\x20defined','isRunning','toString','allocateHub','HUB_MANAGEMENT','qJlsq','platforms','finalize','qafdH','rbiNy','localIdentifier','setCLICaps','__isPlaywrightInstalled','split','sendToEDS','central_scanner','bSBsU','stringify','TDBfU','2231196zigrdq','setProxySettings','WSEXg','Please\x20upgrade\x20Browserstack\x20SDK\x20to\x20the\x20latest\x20version\x20to\x20use\x20the\x20self-healing\x20feature.','isTurboScaleSession','configPath','EErhX','setupPercy','BROWSERSTACK_PERCY','constructor'];a105_0x5967=function(){return _0x498ada;};return a105_0x5967();}class BrowserStackSetup{constructor(_0x6f3653,_0x23da9b){const _0x4b7999=a105_0x368dd3,_0x5ecae3={'dtpmL':_0x4b7999(0x18e),'mLLIl':_0x4b7999(0x1f6),'EErhX':function(_0x5ca32c){return _0x5ca32c();}},_0x59a8c9=_0x5ecae3['dtpmL'][_0x4b7999(0x1a1)]('|');let _0x1d4686=0x0;while(!![]){switch(_0x59a8c9[_0x1d4686++]){case'0':this[_0x4b7999(0x1d8)][_0x4b7999(0x22a)]=this[_0x4b7999(0x1d8)]['testContextOptions']||{};continue;case'1':if(helper[_0x4b7999(0x18b)](this[_0x4b7999(0x1d8)]))throw new Error(_0x5ecae3[_0x4b7999(0x1ed)]);continue;case'2':this[_0x4b7999(0x15e)]={};continue;case'3':helper[_0x4b7999(0x154)]();continue;case'4':this[_0x4b7999(0x1d8)]=helper[_0x4b7999(0x222)](this['configPath']);continue;case'5':helper['setLogDir'](this['config']);continue;case'6':this[_0x4b7999(0x186)]=null;continue;case'7':this[_0x4b7999(0x1ef)]=[];continue;case'8':this[_0x4b7999(0x1d8)][_0x4b7999(0x22a)][_0x4b7999(0x229)]=!helper[_0x4b7999(0x1bc)]()||helper[_0x4b7999(0x133)](this[_0x4b7999(0x1d8)][_0x4b7999(0x22a)][_0x4b7999(0x229)]);continue;case'9':this[_0x4b7999(0x1ac)]=helper[_0x4b7999(0x15d)](_0x6f3653);continue;case'10':helper[_0x4b7999(0x1b6)](this[_0x4b7999(0x1d8)],this[_0x4b7999(0x16c)],this[_0x4b7999(0x1ff)]);continue;case'11':this[_0x4b7999(0x1fc)]=null;continue;case'12':if(this[_0x4b7999(0x1d8)][_0x4b7999(0x163)])throw new Error(this[_0x4b7999(0x1d8)][_0x4b7999(0x163)]);continue;case'13':this[_0x4b7999(0x1b7)]=_0x23da9b;continue;case'14':this[_0x4b7999(0x1d8)][_0x4b7999(0x22a)]['skipSessionStatus']=!helper[_0x4b7999(0x1bc)]()||helper[_0x4b7999(0x133)](this[_0x4b7999(0x1d8)]['testContextOptions']['skipSessionStatus']);continue;case'15':global[_0x4b7999(0x1b7)]=_0x23da9b;continue;case'16':this['config'][_0x4b7999(0x19a)]=this[_0x4b7999(0x1d8)]['platforms']||[];continue;case'17':helper['setCredentialsFromYmlConfig'](this[_0x4b7999(0x1d8)]);continue;case'18':this['envConfig']=helper['setEnvCaps']();continue;case'19':helper[_0x4b7999(0x1ca)](this[_0x4b7999(0x1d8)],this[_0x4b7999(0x16c)]);continue;case'20':this[_0x4b7999(0x148)]=_0x5ecae3[_0x4b7999(0x1ad)](uuidv4);continue;case'21':this[_0x4b7999(0x16c)]=helper[_0x4b7999(0x19f)](_0x6f3653);continue;case'22':PerformanceTester[_0x4b7999(0x1e6)]();continue;case'23':helper['getFinalCaps'](this[_0x4b7999(0x1d8)],this[_0x4b7999(0x16c)],this['envConfig']);continue;}break;}}[a105_0x368dd3(0x1d7)](_0x44dd8a){const _0x19aac9=a105_0x368dd3,_0x13015a={'YtZRj':_0x19aac9(0x194),'XbnzN':function(_0x2b0132,_0x7b19d7){return _0x2b0132===_0x7b19d7;},'YPXuj':_0x19aac9(0x187),'twluV':_0x19aac9(0x178),'qJlsq':function(_0x56aa0a,_0x443f4a){return _0x56aa0a<_0x443f4a;},'ijURp':function(_0x51e654,_0x465ab8){return _0x51e654(_0x465ab8);},'QuSxI':_0x19aac9(0x170),'kbjzM':function(_0x1e370b,_0x1c12ea){return _0x1e370b===_0x1c12ea;},'SZBJF':_0x19aac9(0x192),'kZGSp':'Few\x20SDK\x20features\x20were\x20not\x20activated\x20as\x20platforms\x20object\x20was\x20not\x20defined','pHTVj':_0x19aac9(0x1fa),'iGzYA':_0x19aac9(0x205),'plApB':_0x19aac9(0x17d),'RBYqh':'SIGHUP','XjckH':function(_0x22c22f,_0x6e6988){return _0x22c22f!==_0x6e6988;},'tVpfU':_0x19aac9(0x173),'FGvcA':_0x19aac9(0x17c),'qNrZx':_0x19aac9(0x162),'RHoRY':'SIGBREAK','KACsJ':_0x19aac9(0x1e5)},_0x2262da=this['framework'];global[_0x19aac9(0x1d8)]=this['config'],helper[_0x19aac9(0x168)](this[_0x19aac9(0x1d8)]),this['killSignal']=null,global[_0x19aac9(0x148)]=this[_0x19aac9(0x148)],logger['info'](_0x19aac9(0x1df)+this['sdkRunId']),!this[_0x19aac9(0x1d8)][_0x19aac9(0x206)]&&(this[_0x19aac9(0x1d8)][_0x19aac9(0x206)]=this['config'][_0x19aac9(0x1e8)]||{});if(helper[_0x19aac9(0x18b)](helper[_0x19aac9(0x230)](this[_0x19aac9(0x1d8)]))||helper[_0x19aac9(0x18b)](helper[_0x19aac9(0x1ee)](this[_0x19aac9(0x1d8)])))throw new Error(_0x13015a[_0x19aac9(0x204)]);helper[_0x19aac9(0x217)](this['config'])&&helper['isUndefined'](helper['getLocalIdentifier'](this[_0x19aac9(0x1d8)]))&&(!helper[_0x19aac9(0x18b)](this[_0x19aac9(0x1d8)][_0x19aac9(0x206)])&&_0x13015a['XbnzN'](this[_0x19aac9(0x1d8)][_0x19aac9(0x206)][_0x19aac9(0x1b0)],Object)?!helper[_0x19aac9(0x133)](this[_0x19aac9(0x1d8)][_0x19aac9(0x206)][_0x19aac9(0x13a)])&&(this[_0x19aac9(0x1d8)]['browserStackLocalOptions'][_0x19aac9(0x19e)]=helper[_0x19aac9(0x1e1)]()):this[_0x19aac9(0x1d8)][_0x19aac9(0x206)]={'localIdentifier':helper[_0x19aac9(0x1e1)]()});this[_0x19aac9(0x1d8)][_0x19aac9(0x206)][_0x19aac9(0x13a)]=helper[_0x19aac9(0x133)](this[_0x19aac9(0x1d8)][_0x19aac9(0x206)]['skipBinaryInitialisation']),helper[_0x19aac9(0x155)](this[_0x19aac9(0x1d8)]);if(_0x13015a['XbnzN'](_0x2262da,_0x13015a['YPXuj']))return;this[_0x19aac9(0x1be)]();process[_0x19aac9(0x177)]['BROWSERSTACK_TURBOSCALE']&&(this['config'][_0x19aac9(0x15b)]=helper[_0x19aac9(0x133)](process[_0x19aac9(0x177)]['BROWSERSTACK_TURBOSCALE']),this[_0x19aac9(0x1d8)][_0x19aac9(0x1b4)]=this[_0x19aac9(0x1d8)][_0x19aac9(0x1b4)]||{});helper[_0x19aac9(0x1ab)](this[_0x19aac9(0x1d8)])&&(process[_0x19aac9(0x177)][_0x19aac9(0x1db)]=!![]);LoadTestModule[_0x19aac9(0x1c3)](this[_0x19aac9(0x1d8)])&&logger[_0x19aac9(0x1e2)](_0x19aac9(0x13b)+this[_0x19aac9(0x148)]);if(!helper['isBrowserstackInfra']()){try{process['env'][_0x19aac9(0x218)]=_0x2262da,utilities['fireFunnelTestEvent'](_0x13015a[_0x19aac9(0x21b)],{},this[_0x19aac9(0x1d8)],this['framework']);}catch(_0x50bf7b){logger[_0x19aac9(0x1e2)](_0x19aac9(0x188)+_0x50bf7b);}return;}if(helper['requireSeleniumWebdriverCheck'](_0x2262da)){if(global[_0x19aac9(0x1a0)]||global['__isPuppeteerInstalled'])return;_0x13015a[_0x19aac9(0x199)](_0x13015a[_0x19aac9(0x1e9)](parseInt,helper[_0x19aac9(0x1d2)](_0x13015a[_0x19aac9(0x14a)])),0x3)&&(this[_0x19aac9(0x1d8)]['useW3C']=![]),_0x13015a['kbjzM'](helper[_0x19aac9(0x180)](helper[_0x19aac9(0x1d2)](_0x13015a[_0x19aac9(0x14a)]),_0x13015a[_0x19aac9(0x1d3)]),0x1)&&(this['config'][_0x19aac9(0x22c)]=!![]);}(helper[_0x19aac9(0x18b)](this[_0x19aac9(0x1d8)]['platforms'])||helper[_0x19aac9(0x18b)](this[_0x19aac9(0x1d8)][_0x19aac9(0x19a)]['length']))&&(helper[_0x19aac9(0x18b)](this[_0x19aac9(0x1d8)][_0x19aac9(0x1ec)])?logger[_0x19aac9(0x1b3)](_0x13015a['kZGSp']):logger[_0x19aac9(0x134)](_0x13015a['pHTVj']),this[_0x19aac9(0x1d8)][_0x19aac9(0x19a)]=[]);!this[_0x19aac9(0x1d8)][_0x19aac9(0x22a)]&&(this['config'][_0x19aac9(0x22a)]={});try{process[_0x19aac9(0x177)][_0x19aac9(0x218)]=_0x44dd8a['_'][0x0],utilities[_0x19aac9(0x215)](_0x13015a[_0x19aac9(0x21b)],{},this[_0x19aac9(0x1d8)],this[_0x19aac9(0x1b7)]);}catch(_0x2bef83){logger[_0x19aac9(0x1e2)](_0x19aac9(0x188)+_0x2bef83);}!this['config']['disableAutoCaptureLogs']&&logger[_0x19aac9(0x1b3)](constants[_0x19aac9(0x135)]),this['intExitHandler']=this[_0x19aac9(0x1b5)][_0x19aac9(0x150)](this),process['on'](_0x13015a[_0x19aac9(0x14c)],this[_0x19aac9(0x1b5)]),process['on'](_0x13015a[_0x19aac9(0x1de)],this[_0x19aac9(0x1b5)]),process['on'](_0x13015a[_0x19aac9(0x1ea)],this[_0x19aac9(0x1b5)]),_0x13015a['XjckH'](process['platform'],_0x13015a[_0x19aac9(0x149)])?(process['on'](_0x13015a['FGvcA'],this['intExitHandler']),process['on'](_0x13015a[_0x19aac9(0x12f)],this[_0x19aac9(0x1b5)])):process['on'](_0x13015a[_0x19aac9(0x147)],this[_0x19aac9(0x1b5)]),process['on'](_0x13015a[_0x19aac9(0x20d)],this[_0x19aac9(0x143)]());}async[a105_0x368dd3(0x1f0)](_0x3af4dd){const _0x4bd41d=a105_0x368dd3,_0x225c33={'uEIJb':'ats-repeater','Nrrou':_0x4bd41d(0x1c5),'srmOz':_0x4bd41d(0x1fb),'lnxli':function(_0x215ad2,_0x4f905e){return _0x215ad2===_0x4f905e;},'zvqgT':_0x4bd41d(0x1f7),'qJBGe':function(_0x38980d,_0x20a91c){return _0x38980d+_0x20a91c;},'fiRLd':'?caps=','fFIQh':function(_0x3fc16e,_0xdb0490){return _0x3fc16e(_0xdb0490);},'chRdL':_0x4bd41d(0x214)};this['preInitialize'](_0x3af4dd);if(helper[_0x4bd41d(0x1ab)](this[_0x4bd41d(0x1d8)])){const _0x524c30=await helper['getTurboScaleGridDetails'](this[_0x4bd41d(0x1d8)]);this[_0x4bd41d(0x1d8)][_0x4bd41d(0x164)]=_0x524c30,_0x524c30['isTrialGrid']&&helper['isNotUndefined'](this[_0x4bd41d(0x1d8)][_0x4bd41d(0x186)])&&helper[_0x4bd41d(0x133)](this[_0x4bd41d(0x1d8)][_0x4bd41d(0x186)])&&(this[_0x4bd41d(0x1d8)][_0x4bd41d(0x206)]['localIdentifier']=_0x225c33[_0x4bd41d(0x211)],this[_0x4bd41d(0x1d8)][_0x4bd41d(0x206)][_0x225c33[_0x4bd41d(0x157)]]=_0x524c30['customRepeaters']['join'](','),this[_0x4bd41d(0x1d8)][_0x4bd41d(0x206)][_0x4bd41d(0x1e0)]=_0x225c33['srmOz']),this[_0x4bd41d(0x1d8)][_0x4bd41d(0x144)]=_0x524c30[_0x4bd41d(0x235)],this['framework']&&_0x225c33[_0x4bd41d(0x22e)](this[_0x4bd41d(0x1b7)]['toLowerCase'](),_0x225c33['zvqgT'])?this[_0x4bd41d(0x1d8)][_0x4bd41d(0x144)]=_0x225c33['qJBGe'](_0x524c30[_0x4bd41d(0x176)],_0x225c33[_0x4bd41d(0x175)]):constants[_0x4bd41d(0x16a)]=helper['getHubUrl'](this[_0x4bd41d(0x1d8)]),logger[_0x4bd41d(0x1e2)](_0x4bd41d(0x221)+constants[_0x4bd41d(0x16a)]);}helper[_0x4bd41d(0x1a8)](this[_0x4bd41d(0x1d8)]),this[_0x4bd41d(0x172)](),_0x225c33[_0x4bd41d(0x167)](setPercyFlag,this),await this[_0x4bd41d(0x1f9)](),![_0x225c33[_0x4bd41d(0x1eb)],_0x225c33[_0x4bd41d(0x16d)]][_0x4bd41d(0x22f)](this[_0x4bd41d(0x1b7)])&&!helper['isTurboScaleSession'](this[_0x4bd41d(0x1d8)])&&!helper[_0x4bd41d(0x17a)]()[_0x4bd41d(0x1a3)]&&await this[_0x4bd41d(0x209)]();}async[a105_0x368dd3(0x1ae)](){const _0x408210=a105_0x368dd3,_0x3ecce7={};_0x3ecce7[_0x408210(0x22b)]=function(_0x4bbd92,_0x4763ff){return _0x4bbd92===_0x4763ff;},_0x3ecce7['IvvHO']=_0x408210(0x1d5),_0x3ecce7['OpexP']='Could\x20not\x20start\x20percy,\x20check\x20percy\x20logs\x20for\x20info.',_0x3ecce7[_0x408210(0x1f2)]=_0x408210(0x1c9),_0x3ecce7[_0x408210(0x21c)]=_0x408210(0x1fb),_0x3ecce7[_0x408210(0x160)]=_0x408210(0x1e5);const _0x4eb176=_0x3ecce7;if(helper[_0x408210(0x133)](this['config'][_0x408210(0x1fc)])&&(!this[_0x408210(0x1fc)]||!this[_0x408210(0x1fc)][_0x408210(0x195)]()))try{this[_0x408210(0x1fc)]=await percyHelper[_0x408210(0x1c8)](this[_0x408210(0x1d8)]);if(!this[_0x408210(0x1fc)]){process['env'][_0x408210(0x1af)]=_0x4eb176[_0x408210(0x1dc)];throw new Error(_0x4eb176[_0x408210(0x1cc)]);}logger[_0x408210(0x1b3)](_0x4eb176[_0x408210(0x1f2)]),process[_0x408210(0x177)]['BROWSERSTACK_PERCY']=_0x4eb176[_0x408210(0x21c)];let _0x9603bb=0x0;const _0x5b310e=async()=>{const _0x4eadf0=_0x408210;_0x9603bb++,_0x4eb176[_0x4eadf0(0x22b)](_0x9603bb,0x1)&&await this[_0x4eadf0(0x17b)]();};process['on'](_0x4eb176[_0x408210(0x160)],_0x5b310e);}catch(_0x1d789b){process[_0x408210(0x177)][_0x408210(0x1af)]=_0x4eb176['IvvHO'],logger['debug'](_0x408210(0x14e)+_0x1d789b);throw new Error(_0x1d789b[_0x408210(0x196)]());}}async['stopPercy'](){const _0x1f0b35=a105_0x368dd3,_0x10ee2f={};_0x10ee2f['vvykI']='Percy\x20stopped',_0x10ee2f[_0x1f0b35(0x169)]='Error\x20occured\x20while\x20stopping\x20percy';const _0x17140c=_0x10ee2f;if(this[_0x1f0b35(0x1fc)]&&this['percy'][_0x1f0b35(0x195)]())try{await percyHelper['stopPercy'](this['percy']),logger['info'](_0x17140c[_0x1f0b35(0x1b2)]);}catch(_0x5eb512){logger[_0x1f0b35(0x163)](_0x17140c['dFaOf'],_0x5eb512['message']);}}async['setupBrowserstackLocal'](){const _0x36fcf0=a105_0x368dd3,_0x502669={};_0x502669[_0x36fcf0(0x1bf)]='Local\x20binary\x20not\x20started\x20as\x20skipBinaryInitialisation\x20is\x20enabled',_0x502669['DSEGa']=_0x36fcf0(0x179);const _0x1ebd17=_0x502669;if(helper[_0x36fcf0(0x1bc)]()&&helper[_0x36fcf0(0x133)](this['config'][_0x36fcf0(0x186)])&&(!this[_0x36fcf0(0x186)]||!this[_0x36fcf0(0x186)][_0x36fcf0(0x195)]()))try{if(this[_0x36fcf0(0x1d8)][_0x36fcf0(0x206)][_0x36fcf0(0x13a)]){logger['debug'](_0x1ebd17[_0x36fcf0(0x1bf)]);return;}this[_0x36fcf0(0x186)]=await helper[_0x36fcf0(0x1b8)](this[_0x36fcf0(0x1d8)]),logger[_0x36fcf0(0x1b3)](_0x1ebd17[_0x36fcf0(0x138)]);}catch(_0x481c69){logger[_0x36fcf0(0x1e2)](_0x481c69);throw new Error(_0x481c69[_0x36fcf0(0x196)]());}}async[a105_0x368dd3(0x1f1)](){const _0x1dc2b8=a105_0x368dd3,_0x39065f={};_0x39065f['SOLaX']='Local\x20binary\x20stopped',_0x39065f[_0x1dc2b8(0x1ba)]='Error\x20occured\x20while\x20stopping\x20local\x20binary';const _0x2afd06=_0x39065f;if(this[_0x1dc2b8(0x186)]&&this[_0x1dc2b8(0x186)][_0x1dc2b8(0x195)]())try{await helper[_0x1dc2b8(0x203)](this[_0x1dc2b8(0x186)]),logger[_0x1dc2b8(0x1b3)](_0x2afd06[_0x1dc2b8(0x1b9)]);}catch(_0x1b050e){logger['error'](_0x2afd06['cHTEm'],_0x1b050e[_0x1dc2b8(0x139)]);}}async[a105_0x368dd3(0x209)](){const _0x140a9a=a105_0x368dd3;return PerformanceTester[_0x140a9a(0x13c)](PerformanceAutEvents[_0x140a9a(0x198)],async()=>{const _0x108bee=_0x140a9a;await hubAllocator[_0x108bee(0x197)](this['config']);})();}async[a105_0x368dd3(0x1fe)](){const _0x58e05f=a105_0x368dd3,_0x42932c={'GMuMl':function(_0x58c8b6,_0x3ba9b1){return _0x58c8b6(_0x3ba9b1);},'rbiNy':'../ai-sdk-node/bundle','fvmVl':function(_0xec6e79,_0x5d771c,_0x5533d2,_0x329b9c,_0x39fdf6,_0x5b479d,_0x570cee){return _0xec6e79(_0x5d771c,_0x5533d2,_0x329b9c,_0x39fdf6,_0x5b479d,_0x570cee);},'lwZkf':_0x58e05f(0x1d1),'mwCZQ':_0x58e05f(0x1ce),'VJeHj':_0x58e05f(0x16b),'ZrqED':_0x58e05f(0x156),'mFDUK':function(_0x56241,_0x1de9a1){return _0x56241===_0x1de9a1;},'qafdH':'true','KCEfI':function(_0x36afed,_0x5eb17c){return _0x36afed===_0x5eb17c;},'EBqbw':function(_0x39f739,_0x1ee91c){return _0x39f739===_0x1ee91c;},'PPWzY':function(_0x50e544,_0x489720){return _0x50e544===_0x489720;},'fwlLy':_0x58e05f(0x1aa),'MIChC':_0x58e05f(0x210),'tQdcw':_0x58e05f(0x190),'TDBfU':function(_0x3d2b6a,_0x50c3ca){return _0x3d2b6a(_0x50c3ca);},'lnMRF':_0x58e05f(0x1da),'swdHa':function(_0x466c59,_0x473e08){return _0x466c59>=_0x473e08;},'rrfGy':function(_0x2c5dbc,_0x4ef2d3){return _0x2c5dbc<_0x4ef2d3;},'bSBsU':_0x58e05f(0x225),'kOyFH':_0x58e05f(0x1c4),'hJpKK':function(_0xeab543){return _0xeab543();}},_0x2183eb=PerformanceTester[_0x58e05f(0x13c)](_0x42932c['kOyFH'],async()=>{const _0x2788ce=_0x58e05f;try{const _0xbda4cf=new Date(),_0x5d49fb=helper[_0x2788ce(0x171)](this[_0x2788ce(0x1d8)]),_0x2d86f9=_0x42932c[_0x2788ce(0x17f)](require,path[_0x2788ce(0x185)](__dirname,_0x42932c[_0x2788ce(0x19d)])),_0x4635d3=_0x42932c[_0x2788ce(0x151)](timeoutPromise,constants[_0x2788ce(0x13f)],_0x42932c[_0x2788ce(0x1cd)],_0x42932c['mwCZQ'],_0xbda4cf,this['config'],this[_0x2788ce(0x1b7)]),_0x27bb4a={'tcgUrl':constants['TCG_URL'],'sdkVersion':_0x42932c[_0x2788ce(0x17f)](require,_0x42932c[_0x2788ce(0x130)])[_0x2788ce(0x12e)],'methodUsed':_0x42932c['ZrqED'],'proxyConfig':_0x5d49fb,'os':os[_0x2788ce(0x22d)]()};if(_0x5d49fb&&_0x5d49fb[_0x2788ce(0x16f)]){utilities['fireFunnelTestEvent'](constants['AI_PROXY_FAILURE'],_0x27bb4a,this['config'],this[_0x2788ce(0x1b7)]);return;}const _0x547f84={};_0x547f84[_0x2788ce(0x193)]=_0x5d49fb;const _0x2acdab=await Promise['race']([_0x2d86f9[_0x2788ce(0x212)](this[_0x2788ce(0x1d8)]['accessKey'],this[_0x2788ce(0x1d8)]['userName'],constants[_0x2788ce(0x141)],_0x42932c['GMuMl'](require,_0x42932c[_0x2788ce(0x130)])[_0x2788ce(0x12e)],_0x547f84)['then'](_0x4ea8b2=>{const _0x4c9a90=_0x2788ce;return _0x4635d3[_0x4c9a90(0x228)](),_0x4ea8b2;}),_0x4635d3]);_0x2acdab['isHealingEnabled']=_0x42932c[_0x2788ce(0x131)](_0x2acdab[_0x2788ce(0x21f)],_0x42932c['qafdH'])||_0x42932c['KCEfI'](_0x2acdab[_0x2788ce(0x21f)],!![]);const _0x5e0b7a=_0x42932c[_0x2788ce(0x14b)](this[_0x2788ce(0x1d8)][_0x2788ce(0x1e7)],!![])||_0x42932c[_0x2788ce(0x183)](this[_0x2788ce(0x1d8)][_0x2788ce(0x1e7)],_0x42932c[_0x2788ce(0x19c)]);if(_0x42932c[_0x2788ce(0x219)](_0x2acdab[_0x2788ce(0x139)],constants['UPGRADE_REQUIRED'])&&_0x5e0b7a)logger['info'](_0x42932c[_0x2788ce(0x1c1)]);else{if(!_0x2acdab[_0x2788ce(0x1f4)]&&_0x42932c[_0x2788ce(0x14b)](_0x2acdab[_0x2788ce(0x1cf)],0x1f7)&&_0x5e0b7a)logger['info'](_0x42932c[_0x2788ce(0x13d)]),utilities['fireFunnelTestEvent'](constants[_0x2788ce(0x140)],_0x27bb4a,this[_0x2788ce(0x1d8)],this[_0x2788ce(0x1b7)]);else{if(!_0x2acdab[_0x2788ce(0x1f4)]&&_0x5e0b7a){logger[_0x2788ce(0x1b3)](_0x42932c[_0x2788ce(0x1e3)]);const _0x1ab1ca={'tcgUrl':constants[_0x2788ce(0x141)],'sdkVersion':_0x42932c[_0x2788ce(0x1a6)](require,_0x42932c[_0x2788ce(0x130)])['version'],'methodUsed':_0x42932c[_0x2788ce(0x182)],'proxyConfig':_0x5d49fb,'os':os[_0x2788ce(0x22d)]()};utilities['fireFunnelTestEvent'](constants['TCG_AUTH_FAILURE'],_0x1ab1ca,this['config'],this[_0x2788ce(0x1b7)]);}else{if(_0x2acdab[_0x2788ce(0x1f4)]&&!_0x2acdab[_0x2788ce(0x21f)]&&_0x5e0b7a)logger['info'](_0x42932c[_0x2788ce(0x166)]);else{if(_0x42932c['swdHa'](_0x2acdab[_0x2788ce(0x1cf)],0xc8)&&_0x42932c[_0x2788ce(0x159)](_0x2acdab[_0x2788ce(0x1cf)],0x12c))utilities[_0x2788ce(0x215)](constants[_0x2788ce(0x226)],_0x27bb4a,this[_0x2788ce(0x1d8)],this[_0x2788ce(0x1b7)]);else{if(_0x42932c[_0x2788ce(0x1d0)](_0x2acdab[_0x2788ce(0x1cf)],0x190))_0x27bb4a[_0x2788ce(0x1cf)]=_0x2acdab['status'],utilities[_0x2788ce(0x215)](constants[_0x2788ce(0x189)],_0x27bb4a,this[_0x2788ce(0x1d8)],this[_0x2788ce(0x1b7)]);else!_0x2acdab[_0x2788ce(0x1cf)]&&utilities[_0x2788ce(0x215)](constants[_0x2788ce(0x1bd)],_0x27bb4a,this[_0x2788ce(0x1d8)],this[_0x2788ce(0x1b7)]);}}}}}if(_0x2acdab[_0x2788ce(0x1f4)]&&_0x2acdab[_0x2788ce(0x21f)]){const _0x79ca8f={};_0x79ca8f[_0x2788ce(0x21a)]=_0x2acdab;const _0x15f20a=_0x79ca8f;_0x5d49fb&&(_0x15f20a['proxyConfig']=_0x5d49fb),_0x15f20a[_0x2788ce(0x1b7)]=this[_0x2788ce(0x1b7)],_0x15f20a[_0x2788ce(0x1c6)]=this['config'],helper['setupTcgConfigFile'](_0x15f20a),logger[_0x2788ce(0x1e2)](_0x42932c[_0x2788ce(0x1a4)]);}}catch(_0x5e37c7){logger[_0x2788ce(0x1e2)](_0x2788ce(0x1f5)+(_0x5e37c7[_0x2788ce(0x139)]?_0x5e37c7[_0x2788ce(0x139)]:''));}});await _0x42932c['hJpKK'](_0x2183eb);}[a105_0x368dd3(0x172)](){const _0x22d161=a105_0x368dd3,_0x4de5ba={'tpuET':function(_0x391515,_0x5b0d5f){return _0x391515(_0x5b0d5f);},'MgINe':_0x22d161(0x18d)};_0x4de5ba[_0x22d161(0x200)](require,_0x4de5ba['MgINe'])();}[a105_0x368dd3(0x1be)](){const _0x47c8e6=a105_0x368dd3,_0x4e1808={};_0x4e1808[_0x47c8e6(0x20f)]=_0x47c8e6(0x233),_0x4e1808[_0x47c8e6(0x136)]=_0x47c8e6(0x18c),_0x4e1808[_0x47c8e6(0x15a)]=_0x47c8e6(0x165);const _0x11c584=_0x4e1808,_0x683ff3=_0x3255c5=>{const _0x32ef87=_0x47c8e6,_0x37eaa0=_0x11c584[_0x32ef87(0x20f)]['split']('|');let _0x386d77=0x0;while(!![]){switch(_0x37eaa0[_0x386d77++]){case'0':logger[_0x32ef87(0x1e2)](util[_0x32ef87(0x17e)](_0x3255c5));continue;case'1':logger['error'](_0x3255c5['message']);continue;case'2':ClientTroubleShootingService[_0x32ef87(0x21e)]();continue;case'3':PerformanceTester[_0x32ef87(0x220)](_0x3255c5);continue;case'4':this[_0x32ef87(0x1ef)][_0x32ef87(0x1fd)](util[_0x32ef87(0x17e)]('%j',_0x3255c5));continue;}break;}};process['on'](_0x11c584['qRcsg'],_0x683ff3),process['on'](_0x11c584['MsGIf'],_0x683ff3);}async[a105_0x368dd3(0x1b5)](_0x5d50a4){const _0x2f9f59=a105_0x368dd3,_0x5a948e={};_0x5a948e['mKWSN']='2|7|1|6|5|3|0|4',_0x5a948e[_0x2f9f59(0x137)]=function(_0x40a8d5,_0x5e1965){return _0x40a8d5+_0x5e1965;},_0x5a948e['RQJpV']=_0x2f9f59(0x191),_0x5a948e[_0x2f9f59(0x161)]=function(_0x57ee2a,_0x4fec4d){return _0x57ee2a+_0x4fec4d;},_0x5a948e[_0x2f9f59(0x1c7)]='handled';const _0x597089=_0x5a948e,_0x1b02b6=_0x597089[_0x2f9f59(0x145)][_0x2f9f59(0x1a1)]('|');let _0x212799=0x0;while(!![]){switch(_0x1b02b6[_0x212799++]){case'0':await ClientTroubleShootingService[_0x2f9f59(0x21e)]();continue;case'1':logger[_0x2f9f59(0x1b3)](_0x597089[_0x2f9f59(0x137)](_0x597089[_0x2f9f59(0x1d6)],_0x5d50a4));continue;case'2':if(this[_0x597089[_0x2f9f59(0x161)](_0x597089['GyoVF'],_0x5d50a4)])return;continue;case'3':await TestHubHandler[_0x2f9f59(0x224)](_0x5d50a4);continue;case'4':await BrowserstackCLI['getInstance']()['stop']();continue;case'5':await ClientTroubleShootingService['reportProcessInterruptionSituation'](_0x5d50a4);continue;case'6':this[_0x2f9f59(0x1bb)]=_0x5d50a4;continue;case'7':this[_0x597089[_0x2f9f59(0x137)](_0x597089[_0x2f9f59(0x1c7)],_0x5d50a4)]=!![];continue;}break;}}[a105_0x368dd3(0x143)](){const _0x3a3f64=a105_0x368dd3,_0x434294={'NatIr':function(_0x5a5b7a,_0x126fc3){return _0x5a5b7a===_0x126fc3;},'NMcJC':_0x3a3f64(0x223),'yrIzV':function(_0x559175,_0x111e80){return _0x559175>_0x111e80;},'SeMOe':function(_0x18438d,_0x51365){return _0x18438d>_0x51365;},'rFbzo':function(_0x510541,_0x3489d0){return _0x510541(_0x3489d0);},'WSEXg':function(_0x37b79c){return _0x37b79c();},'qcOnA':_0x3a3f64(0x1f3)};let _0x1f5fda=0x0;return async()=>{const _0x4940e9=_0x3a3f64;_0x1f5fda++;if(_0x434294[_0x4940e9(0x1b1)](_0x1f5fda,0x1)){helper[_0x4940e9(0x152)](this[_0x4940e9(0x1b7)])&&await this[_0x4940e9(0x1f1)]();try{logger[_0x4940e9(0x1e2)](_0x434294[_0x4940e9(0x158)]),await TestHubHandler[_0x4940e9(0x224)](_0x1f5fda),await ClientTroubleShootingService['reportFinalDetectionState'](),await BrowserstackCLI[_0x4940e9(0x216)]()[_0x4940e9(0x224)]('1');}catch(_0x1fd042){logger[_0x4940e9(0x1e2)](_0x4940e9(0x12d)+util[_0x4940e9(0x17e)](_0x1fd042));}PerformanceTester['end'](PerformanceEvents['SDK_CLEANUP']);if(PerformanceTester[_0x4940e9(0x1cb)]()){const {measures:_0x179d1f,errors:_0x29ec55}=await PerformanceTester[_0x4940e9(0x19b)](),_0x3b0a64={};if(_0x179d1f&&_0x434294[_0x4940e9(0x20b)](_0x179d1f[_0x4940e9(0x232)],0x0)||_0x29ec55&&_0x434294[_0x4940e9(0x208)](_0x29ec55['length'],0x0)){const _0x15aa00={};_0x15aa00[_0x4940e9(0x142)]=_0x179d1f,_0x15aa00[_0x4940e9(0x18f)]=_0x29ec55,Object[_0x4940e9(0x146)](_0x3b0a64,_0x15aa00);}try{const _0x408955=await helper[_0x4940e9(0x1a2)](_0x3b0a64,this[_0x4940e9(0x1d8)]);logger[_0x4940e9(0x1e2)]('Data\x20sent\x20successfully\x20to\x20'+_0x434294[_0x4940e9(0x20c)](getEdsInstrumentationAPIUrl,'')+_0x4940e9(0x20e)+_0x408955[_0x4940e9(0x15c)]);}catch(_0x3335c4){logger[_0x4940e9(0x1e2)]('Failed\x20to\x20send\x20data\x20to\x20'+_0x434294[_0x4940e9(0x20c)](getEdsInstrumentationAPIUrl,'')+'\x20with\x20error\x20'+util[_0x4940e9(0x17e)](_0x3335c4));}try{fs['writeFileSync'](path[_0x4940e9(0x185)](_0x434294[_0x4940e9(0x1a9)](getLogDir),_0x434294[_0x4940e9(0x234)]),JSON[_0x4940e9(0x1a5)](_0x3b0a64));}catch(_0x338148){logger[_0x4940e9(0x1e2)](_0x4940e9(0x207)+_0x338148);}}}logger&&logger[_0x4940e9(0x1d4)](),fileLogger&&fileLogger[_0x4940e9(0x1d4)]();};}}exports[a105_0x368dd3(0x202)]=BrowserStackSetup;
|