browserstack-node-sdk 1.55.0 → 1.55.2
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 +4 -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 a68_0x85a55b=a68_0x2d83;(function(_0x59bbc3,_0x431961){const _0x2b2425=a68_0x2d83,_0x5a1d69=_0x59bbc3();while(!![]){try{const _0xe05c0f=-parseInt(_0x2b2425(0x258))/0x1*(-parseInt(_0x2b2425(0x275))/0x2)+-parseInt(_0x2b2425(0x26a))/0x3*(-parseInt(_0x2b2425(0x1ef))/0x4)+-parseInt(_0x2b2425(0x1a7))/0x5*(parseInt(_0x2b2425(0x20c))/0x6)+-parseInt(_0x2b2425(0x1ff))/0x7*(-parseInt(_0x2b2425(0x211))/0x8)+parseInt(_0x2b2425(0x256))/0x9*(parseInt(_0x2b2425(0x215))/0xa)+parseInt(_0x2b2425(0x1e4))/0xb+-parseInt(_0x2b2425(0x271))/0xc*(parseInt(_0x2b2425(0x25d))/0xd);if(_0xe05c0f===_0x431961)break;else _0x5a1d69['push'](_0x5a1d69['shift']());}catch(_0x2c3d4f){_0x5a1d69['push'](_0x5a1d69['shift']());}}}(a68_0x1e21,0x7e37c));function a68_0x2d83(_0x423bea,_0x55c84a){const _0x1e2167=a68_0x1e21();return a68_0x2d83=function(_0x2d837a,_0x262b71){_0x2d837a=_0x2d837a-0x1a2;let _0x24f7c2=_0x1e2167[_0x2d837a];return _0x24f7c2;},a68_0x2d83(_0x423bea,_0x55c84a);}function a68_0x1e21(){const _0x253708=['message','split','Setting\x20session\x20id\x20received\x20from\x20browserstack\x20','connection.js','rwmdK','Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20','util','mIgfu','Connection','format','3287086uBYzkr','platform','QvJLe','Failed\x20to\x20import\x20connection\x20from\x20','RDxBl','Efabu','isRemote','ImmEO','cloudProvider','tYncy','isRunning','168Lhivvz','browserName','string','_connection','nvGHh','ZXznc','EnJaH','apply','RnNYl','IVNYm','HhGVj','version','function','ThxjO','GMvHR','OPdAK','1059779qASHgv','Error\x20in\x20finding\x20platform\x20details\x20','Error\x20extracting\x20BrowserStack\x20parameters:\x20','AftWf','env','turboscale','sessionId','toString','rIBkq','Using\x20browser\x20name\x20from\x20browser\x20object:\x20','../v2/state/automationFrameworkState.js','POST','bsParams','6wIuQQd','platformVersion','browserstack_capabilities','test','BrowserStack\x20params\x20extracted\x20from\x20WebSocket\x20endpoint','32blUQsD','../v2/state/hookState.js','_defaultConnectOptions','mKrLe','1124590unVNLI','BMoko','ondik','patch','gecko','browserstack','url','bstack:options','fromEntries','RdxFg','toLowerCase','getInstance','Error\x20in\x20importing\x20connection\x20','IZhPu','qGpeH','NbYgj','defineProperty','wsEndpoint','osVersion','COeuh','JbLQO','tlHGU','Browser\x20is\x20not\x20defined\x20or\x20not\x20available','Session\x20details\x20setup\x20complete:\x20','params','iagGQ','model','unknown_grid','../../helpers/helper','Ovmck','dispatch','../../helpers/logger','UlJOp','WORSb','firefox','client','Error\x20triggering\x20PLAYWRIGHT_DISPATCH\x20event:\x20','jpjrU','server','stringify','_name','eOFxu','platform_version','sessionError','browser','chromium','patchConnection','BSTACK_ATS_URL','OCCqZ','browserVersion','QOwkT','Connection\x20dispatch\x20already\x20patched','wkdgD','../../helpers/test-observability/utils','getAutomationFramework','ElxZL','getDetails','capabilties','os_version','bStackParams','msedge','browser_version','channel','extractBrowserStackParams','Setting\x20session\x20id\x20received\x20from\x20BS\x20','18dhXYim','jpQTZ','15069dyCBPB','webkit','DmZvc','patchCRConnection','emEXn','15930980PiviqE','includes','desiredCapabilities','edge','3|4|5|0|2|1','Error\x20in\x20importing\x20crConnection','WtHbn','parse','NfwVy','oyluk','debug','safari','instance','38607ZtPRMA','Successfully\x20patched\x20CRConnection._onMessage','project','mygDh','playwright-','exports','getTrackedInstance','12WdbfPP','accessibilityPlatform','setupBrowserDetails','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','134hUBRhQ','../../helpers/test-observability/error-handler','Error\x20parsing\x20WebSocket\x20endpoint:\x20','Browser\x20found\x20in\x20WebSocket\x20caps:\x20','BrowserStack\x20params\x20extracted\x20from\x20capabilities:\x20browser=','platformName','gbJeV','PLAYWRIGHT_DISPATCH','4685025BMZHSe','TLxhI','nXPJL','_bstackCRPatched','oTXOK','MUxIt','WjgaI','vRTRB','YpcdR','LQLlu','platformDetails','product','_browserType','join','prototype','chrome','VADus','BgVQi','entries','YYfhJ','lib','capabilities','iKevH','uLiEK','trackEvent','BmVtu',',\x20os=','bsSessionId','Not\x20able\x20to\x20import\x20crConnection','use','JSDeI','dYobd','jnCTN','CRConnection\x20already\x20patched','assign','currentSessionDetails','XUonp','caps','local_grid','_bstackDispatchPatched','soXWo','BROWSERSTACK_TEST_OBSERVABILITY','query','Error\x20in\x20getting\x20browser\x20from\x20WebSocket\x20endpoint:\x20','IpAxL','hQisF','ATS_WSS_URL_REGEX','Triggering\x20PLAYWRIGHT_DISPATCH\x20event','GWHHa','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','Found\x20Connection\x20class\x20at:\x20'];a68_0x1e21=function(){return _0x253708;};return a68_0x1e21();}const path=require('path'),url=require(a68_0x85a55b(0x21b)),util=require(a68_0x85a55b(0x1e0)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule,isBrowserstackInfra}=require(a68_0x85a55b(0x231)),{o11yErrorHandler}=require(a68_0x85a55b(0x276)),{debug,getPlatformDetails}=require(a68_0x85a55b(0x24a)),logger=require(a68_0x85a55b(0x234))['winstonLogger'],constants=require('./constants'),AutomationFramework=require('../v2/framework/automationFramework'),BrowserstackCLI=require('../v2/browserstackCLI'),AutomationFrameworkState=require(a68_0x85a55b(0x209)),HookState=require(a68_0x85a55b(0x212)),{platform}=require('os'),getBrowserNameFromChannel=_0x126161=>{const _0x2ade72=a68_0x85a55b,_0x403e42={};_0x403e42[_0x2ade72(0x1fe)]=_0x2ade72(0x261),_0x403e42[_0x2ade72(0x1f7)]=_0x2ade72(0x237),_0x403e42[_0x2ade72(0x1ed)]=function(_0x56532f,_0x28b9ba){return _0x56532f===_0x28b9ba;},_0x403e42[_0x2ade72(0x236)]=_0x2ade72(0x259),_0x403e42['iKevH']=_0x2ade72(0x268),_0x403e42[_0x2ade72(0x21e)]=_0x2ade72(0x242),_0x403e42[_0x2ade72(0x1ad)]='chrome',_0x403e42[_0x2ade72(0x1c7)]=_0x2ade72(0x260);const _0x15cfea=_0x403e42,_0x541277=_0x15cfea['OPdAK'][_0x2ade72(0x1db)]('|');let _0x3f24a2=0x0;while(!![]){switch(_0x541277[_0x3f24a2++]){case'0':if(_0x126161['includes'](_0x15cfea[_0x2ade72(0x1f7)]))return _0x15cfea['RnNYl'];continue;case'1':if(_0x15cfea[_0x2ade72(0x1ed)](_0x126161,_0x15cfea[_0x2ade72(0x236)]))return _0x15cfea[_0x2ade72(0x236)];continue;case'2':if(_0x126161[_0x2ade72(0x25e)](_0x15cfea[_0x2ade72(0x1bd)]))return _0x15cfea[_0x2ade72(0x1bd)];continue;case'3':if(_0x126161[_0x2ade72(0x25e)](_0x15cfea[_0x2ade72(0x21e)]))return _0x15cfea[_0x2ade72(0x21e)];continue;case'4':if(_0x126161['includes'](_0x15cfea[_0x2ade72(0x1ad)]))return _0x15cfea[_0x2ade72(0x1ad)];continue;case'5':if(_0x126161[_0x2ade72(0x25e)](_0x15cfea[_0x2ade72(0x1c7)]))return _0x15cfea['jnCTN'];continue;}break;}},getBrowserFromWSEndpoint=_0xb1d946=>{const _0x35eb6b=a68_0x85a55b,_0x574925={'HhGVj':_0x35eb6b(0x21c),'dYobd':function(_0x436d13,_0x35a224){return _0x436d13(_0x35a224);},'mygDh':_0x35eb6b(0x260),'BmVtu':_0x35eb6b(0x251),'oyluk':_0x35eb6b(0x237),'VADus':_0x35eb6b(0x219),'jpjrU':_0x35eb6b(0x268),'wkdgD':'webkit','nvGHh':_0x35eb6b(0x1b6),'RXLmR':function(_0x30082f,_0x4fc229){return _0x30082f(_0x4fc229);}};try{const _0x2e98ce=url[_0x35eb6b(0x264)](_0xb1d946),_0x28dab7=new URLSearchParams(_0x2e98ce['query']),_0x1aac46=Object[_0x35eb6b(0x21d)](_0x28dab7[_0x35eb6b(0x1b9)]()),_0x943a64=[_0x1aac46[_0x35eb6b(0x1cc)],_0x1aac46[_0x35eb6b(0x1bc)],_0x1aac46[_0x35eb6b(0x25f)],_0x1aac46[_0x35eb6b(0x20e)]];for(const _0x5eca9d of _0x943a64){if(_0x5eca9d)try{const _0x39deae=JSON[_0x35eb6b(0x264)](_0x5eca9d),_0x23e70c=_0x39deae[_0x35eb6b(0x1f0)]||_0x39deae[_0x35eb6b(0x241)]||_0x39deae[_0x574925[_0x35eb6b(0x1f9)]]?.['browserName'];if(_0x23e70c)return _0x574925[_0x35eb6b(0x1c6)](debug,_0x35eb6b(0x1a2)+_0x23e70c),_0x23e70c['toLowerCase']();}catch(_0x4b252a){_0x574925[_0x35eb6b(0x1c6)](debug,'Failed\x20to\x20parse\x20caps\x20from\x20WebSocket:\x20'+_0x4b252a['message']);}}if(_0xb1d946[_0x35eb6b(0x25e)](_0x574925[_0x35eb6b(0x26d)])||_0xb1d946[_0x35eb6b(0x25e)](_0x574925[_0x35eb6b(0x1c0)]))return _0x574925[_0x35eb6b(0x26d)];if(_0xb1d946[_0x35eb6b(0x25e)](_0x574925[_0x35eb6b(0x266)])||_0xb1d946['includes'](_0x574925[_0x35eb6b(0x1b7)]))return _0x574925[_0x35eb6b(0x266)];if(_0xb1d946[_0x35eb6b(0x25e)](_0x574925[_0x35eb6b(0x23a)])||_0xb1d946[_0x35eb6b(0x25e)](_0x574925[_0x35eb6b(0x249)]))return _0x574925[_0x35eb6b(0x23a)];return _0x574925['nvGHh'];}catch(_0x22a1b5){return _0x574925['RXLmR'](debug,_0x35eb6b(0x1d2)+_0x22a1b5[_0x35eb6b(0x206)]()),_0x574925[_0x35eb6b(0x1f3)];}},getCloudProviderFromWsEndpoint=_0x37ff9d=>{const _0x2ebd6c=a68_0x85a55b,_0x2f0df0={};_0x2f0df0[_0x2ebd6c(0x229)]=_0x2ebd6c(0x21a),_0x2f0df0['MUxIt']=_0x2ebd6c(0x230);const _0x33ce05=_0x2f0df0;if(_0x37ff9d[_0x2ebd6c(0x25e)](constants['BSTACK_URL'])||_0x37ff9d['includes'](constants[_0x2ebd6c(0x244)]))return _0x33ce05[_0x2ebd6c(0x229)];return _0x33ce05[_0x2ebd6c(0x1ac)];},a68_0x3bd94b={};a68_0x3bd94b['cloudProvider']=undefined,a68_0x3bd94b[a68_0x85a55b(0x1c2)]=undefined,a68_0x3bd94b['browser']=undefined,a68_0x3bd94b['browser_version']=undefined,a68_0x3bd94b['platform']=undefined,a68_0x3bd94b['platform_version']=undefined,a68_0x3bd94b[a68_0x85a55b(0x1b2)]=undefined,a68_0x3bd94b[a68_0x85a55b(0x1bc)]={};class SharedPlaywrightSessionDetails{static [a68_0x85a55b(0x1ca)]=a68_0x3bd94b;constructor(){const _0x357193=a68_0x85a55b,_0x3c1493={};_0x3c1493[_0x357193(0x216)]='Invalid\x20constructor,\x20please\x20use\x20static\x20methods';const _0x3edffb=_0x3c1493;throw new Error(_0x3edffb[_0x357193(0x216)]);}static ['sessionError']=null;static[a68_0x85a55b(0x273)](_0xec0b1a,_0x109531,_0x5e443d=null){const _0x269b4f=a68_0x85a55b,_0x1f9858={'Efabu':function(_0x3cf0b8,_0x4b0c4c){return _0x3cf0b8===_0x4b0c4c;},'IVNYm':_0x269b4f(0x1fb),'qciwJ':_0x269b4f(0x22b),'NfwVy':function(_0x4ddb7c,_0x15a7e9){return _0x4ddb7c===_0x15a7e9;},'emEXn':'Device\x20Model\x20is\x20not\x20available','JSDeI':_0x269b4f(0x1cd),'Ovmck':function(_0x38a4c6,_0x3cf39e,_0x28c2fa){return _0x38a4c6(_0x3cf39e,_0x28c2fa);},'nXPJL':_0x269b4f(0x1b3),'QvJLe':_0x269b4f(0x213),'Myasi':function(_0x388087,_0x1827ab,_0x55064d){return _0x388087(_0x1827ab,_0x55064d);},'VGHRm':_0x269b4f(0x26c),'bnOYE':_0x269b4f(0x1c4),'oTXOK':'connectOptions','rIBkq':function(_0x460e49,_0xdd6a3a){return _0x460e49(_0xdd6a3a);},'JMebq':_0x269b4f(0x21a),'UyJKR':_0x269b4f(0x204),'ondik':'automate','PScQc':function(_0x429c2f,_0x2999a1){return _0x429c2f(_0x2999a1);},'iagGQ':_0x269b4f(0x242),'IZhPu':function(_0x31fc2b){return _0x31fc2b();},'bxXSf':function(_0x5c9558,_0x19c9b8){return _0x5c9558&&_0x19c9b8;},'uLiEK':function(_0x289c33){return _0x289c33();},'YYfhJ':function(_0x1ade35,_0x337747){return _0x1ade35(_0x337747);},'fhsrj':function(_0x4747b3,_0x13cec7){return _0x4747b3+_0x13cec7;},'BgVQi':_0x269b4f(0x26e),'qGpeH':function(_0x5f4901){return _0x5f4901();},'iudSK':function(_0x47c988,_0x1b6343,_0x5d4b23){return _0x47c988(_0x1b6343,_0x5d4b23);},'hQisF':_0x269b4f(0x273)},_0x40970b=this;return _0x1f9858['iudSK'](o11yErrorHandler,async function _0x11bd65(_0x2ededf,_0xa02b8,_0x2cdebb=null){const _0xc7e26c=_0x269b4f;let _0x2208f6=_0x2ededf[_0xc7e26c(0x23d)],_0x1ef332=null;_0x2ededf&&_0x1f9858[_0xc7e26c(0x1e9)](typeof _0x2ededf[_0xc7e26c(0x1fa)],_0x1f9858[_0xc7e26c(0x1f8)])?_0x1ef332=_0x2ededf[_0xc7e26c(0x1fa)]():logger[_0xc7e26c(0x267)](_0x1f9858['qciwJ']);let _0x326e96=null;_0x2ededf&&_0x1f9858[_0xc7e26c(0x265)](typeof _0x2ededf[_0xc7e26c(0x22f)],_0x1f9858[_0xc7e26c(0x1f8)])?_0x326e96=_0x2ededf[_0xc7e26c(0x22f)]():logger[_0xc7e26c(0x267)](_0x1f9858[_0xc7e26c(0x25c)]);let _0x11cddc=null,_0x2c0f21=null,_0x2432bb=null,_0x3686a8=_0x1f9858[_0xc7e26c(0x1c5)];if(_0x2ededf[_0xc7e26c(0x1f2)][_0xc7e26c(0x1ea)]()||global[_0xc7e26c(0x272)]){let _0x52bba5=null;_0x1f9858[_0xc7e26c(0x232)](nestedKeyValue,_0x2ededf,[_0x1f9858[_0xc7e26c(0x1a9)],_0x1f9858[_0xc7e26c(0x1e6)]])?_0x52bba5=_0x2ededf[_0xc7e26c(0x1b3)]['_defaultConnectOptions']:_0x52bba5=_0x1f9858['Myasi'](nestedKeyValue,_0xa02b8,[_0x1f9858['VGHRm'],_0x1f9858['bnOYE'],_0x1f9858[_0xc7e26c(0x1ab)]]);const _0x127207=_0x2cdebb||_0x52bba5&&_0x52bba5[_0xc7e26c(0x226)];if(_0x127207){_0x3686a8=_0x1f9858[_0xc7e26c(0x207)](getCloudProviderFromWsEndpoint,_0x127207);if(_0x1f9858['NfwVy'](_0x3686a8,_0x1f9858['JMebq'])){_0x2432bb=constants[_0xc7e26c(0x1d5)][_0xc7e26c(0x20f)](_0x127207)?_0x1f9858['UyJKR']:_0x1f9858[_0xc7e26c(0x217)];const _0x28a732=_0x1f9858['PScQc'](getBrowserFromWSEndpoint,_0x127207);if(_0x28a732&&(!_0x2208f6||_0x1f9858[_0xc7e26c(0x265)](_0x2208f6,_0x1f9858[_0xc7e26c(0x22e)])))_0x2208f6=_0x28a732,logger[_0xc7e26c(0x267)]('Browser\x20name\x20overridden\x20from\x20WebSocket\x20endpoint:\x20'+_0x2208f6);else _0x2208f6&&logger[_0xc7e26c(0x267)](_0xc7e26c(0x208)+_0x2208f6);_0x11cddc=_0x40970b[_0xc7e26c(0x1ca)][_0xc7e26c(0x1e5)],_0x2c0f21=_0x40970b[_0xc7e26c(0x1ca)]['platform_version'];}else{const _0xa7e491=await _0x1f9858['IZhPu'](getPlatformDetails);_0x11cddc=_0xa7e491[_0xc7e26c(0x1a4)],_0x2c0f21=_0xa7e491[_0xc7e26c(0x20d)];}}if(_0x1f9858['bxXSf'](!_0x11cddc,!_0x2c0f21)&&!_0x1f9858[_0xc7e26c(0x222)](isBrowserstackInfra)){const _0x5f5dec=await _0x1f9858[_0xc7e26c(0x1be)](getPlatformDetails);_0x11cddc=_0x5f5dec[_0xc7e26c(0x1a4)],_0x2c0f21=_0x5f5dec[_0xc7e26c(0x20d)];}}else{_0xa02b8&&_0xa02b8[_0xc7e26c(0x26c)]&&_0xa02b8['project'][_0xc7e26c(0x1c4)]&&_0xa02b8[_0xc7e26c(0x26c)][_0xc7e26c(0x1c4)][_0xc7e26c(0x253)]?_0x2208f6=_0x1f9858[_0xc7e26c(0x1ba)](getBrowserNameFromChannel,_0xa02b8[_0xc7e26c(0x26c)][_0xc7e26c(0x1c4)][_0xc7e26c(0x253)]):_0x2208f6=_0x1f9858['fhsrj'](_0x1f9858[_0xc7e26c(0x1b8)],_0x2208f6[_0xc7e26c(0x21f)]());const _0x18b3d8=await _0x1f9858[_0xc7e26c(0x223)](getPlatformDetails);_0x11cddc=_0x18b3d8[_0xc7e26c(0x1a4)],_0x2c0f21=_0x18b3d8[_0xc7e26c(0x20d)];}const _0x50f451={};_0x50f451[_0xc7e26c(0x241)]=_0x2208f6,_0x50f451[_0xc7e26c(0x252)]=_0x1ef332,_0x50f451[_0xc7e26c(0x1bc)]={},_0x50f451[_0xc7e26c(0x1e5)]=_0x11cddc,_0x50f451[_0xc7e26c(0x23f)]=_0x2c0f21,_0x50f451[_0xc7e26c(0x1b2)]=_0x2432bb;const _0x3a14a0=_0x50f451;_0x326e96&&(_0x3a14a0['capabilities']['deviceModel']=_0x326e96);const _0x8a5da2={};_0x8a5da2[_0xc7e26c(0x1ec)]=_0x3686a8,_0x40970b[_0xc7e26c(0x1ca)]=Object[_0xc7e26c(0x1c9)]({},_0x40970b[_0xc7e26c(0x1ca)],_0x8a5da2,_0x3a14a0);const _0xaa99f1={};_0xaa99f1['browser']=_0x40970b['currentSessionDetails'][_0xc7e26c(0x241)],_0xaa99f1[_0xc7e26c(0x246)]=_0x40970b[_0xc7e26c(0x1ca)]['browser_version'],_0xaa99f1[_0xc7e26c(0x1e5)]=_0x40970b['currentSessionDetails']['platform'],_0xaa99f1['platformVersion']=_0x40970b[_0xc7e26c(0x1ca)][_0xc7e26c(0x23f)],_0xaa99f1[_0xc7e26c(0x1ec)]=_0x40970b['currentSessionDetails'][_0xc7e26c(0x1ec)],_0xaa99f1['product']=_0x40970b['currentSessionDetails']['product'],logger[_0xc7e26c(0x267)](_0xc7e26c(0x22c)+JSON[_0xc7e26c(0x23c)](_0xaa99f1));},_0x1f9858[_0x269b4f(0x1d4)])(_0xec0b1a,_0x109531,_0x5e443d);}static[a68_0x85a55b(0x218)](){const _0x466ebe=a68_0x85a55b;this[_0x466ebe(0x243)](),this[_0x466ebe(0x25b)]();}static[a68_0x85a55b(0x243)](){const _0x25f63b=a68_0x85a55b,_0x46256a={'OCCqZ':function(_0x1435cf,_0x57ad11){return _0x1435cf(_0x57ad11);},'JWpUp':_0x25f63b(0x1bb),'GMvHR':_0x25f63b(0x238),'tlHGU':_0x25f63b(0x1dd),'IpAxL':function(_0x3c739e,_0x53f568){return _0x3c739e(_0x53f568);},'GWHHa':function(_0x468b39,_0x2ac1c1){return _0x468b39(_0x2ac1c1);},'ImmEO':function(_0x46e68c,_0x5d192d){return _0x46e68c(_0x5d192d);},'jpQTZ':'Not\x20able\x20to\x20import\x20Connection\x20class\x20from\x20any\x20path','TLxhI':function(_0x3ddff4,_0x16c4fd){return _0x3ddff4!=_0x16c4fd;},'HyjzM':_0x25f63b(0x248),'QOwkT':_0x25f63b(0x233),'vGVbc':'Successfully\x20patched\x20Connection.dispatch'},_0x2eb94a=this;if(!this[_0x25f63b(0x1e2)])try{const _0x2d6f79=[path['join'](_0x46256a['JWpUp'],_0x46256a[_0x25f63b(0x1fd)],_0x46256a[_0x25f63b(0x22a)]),path[_0x25f63b(0x1b4)](_0x46256a['JWpUp'],_0x46256a['tlHGU']),path['join'](_0x46256a[_0x25f63b(0x1fd)],_0x46256a[_0x25f63b(0x22a)])];for(const _0x500bfc of _0x2d6f79){try{const _0x3f55a2=_0x46256a[_0x25f63b(0x1d3)](importFileFromPWCore,_0x500bfc);if(_0x3f55a2&&_0x3f55a2['Connection']){this[_0x25f63b(0x1e2)]=_0x3f55a2[_0x25f63b(0x1e2)],logger[_0x25f63b(0x267)](_0x25f63b(0x1d9)+_0x500bfc);break;}}catch(_0x5937d0){_0x46256a[_0x25f63b(0x1d7)](debug,_0x25f63b(0x1e7)+_0x500bfc+':\x20'+_0x5937d0[_0x25f63b(0x206)]());}}if(!this[_0x25f63b(0x1e2)]){_0x46256a[_0x25f63b(0x1eb)](debug,_0x46256a[_0x25f63b(0x257)]);return;}}catch(_0x4f2ce7){_0x46256a[_0x25f63b(0x245)](debug,_0x25f63b(0x221)+_0x4f2ce7['toString']());return;}const _0x55a553=this[_0x25f63b(0x1e2)];try{if(_0x46256a[_0x25f63b(0x1a8)](_0x55a553,null)){const _0x2a6264=_0x55a553[_0x25f63b(0x1b5)]['dispatch'];if(!_0x46256a[_0x25f63b(0x245)](isFalse,process[_0x25f63b(0x203)][_0x25f63b(0x1d0)])){if(_0x55a553[_0x25f63b(0x1b5)][_0x25f63b(0x1ce)]){logger[_0x25f63b(0x267)](_0x46256a['HyjzM']);return;}Object[_0x25f63b(0x225)](_0x55a553[_0x25f63b(0x1b5)],_0x46256a[_0x25f63b(0x247)],{'get':function(){const _0x438070={'DmZvc':function(_0x25df63,_0x517308){const _0x597a8a=a68_0x2d83;return _0x46256a[_0x597a8a(0x245)](_0x25df63,_0x517308);}};return async function _0x115ee4(_0x3ce5b3){const _0x4ac74f=a68_0x2d83;if(BrowserstackCLI[_0x4ac74f(0x220)]()[_0x4ac74f(0x1ee)]()){const _0x4693ed={};_0x4693ed[_0x4ac74f(0x1da)]=_0x3ce5b3,await BrowserstackCLI[_0x4ac74f(0x220)]()[_0x4ac74f(0x24b)]()['trackEvent'](AutomationFrameworkState[_0x4ac74f(0x1a6)],HookState[_0x4ac74f(0x20a)],_0x4693ed);}else{const _0x5f385b=_0x3ce5b3&&_0x3ce5b3['params']&&_0x3ce5b3[_0x4ac74f(0x22d)][_0x4ac74f(0x20b)];if(_0x5f385b){const _0x193053=_0x5f385b[_0x4ac74f(0x205)],_0x2e7d71=_0x5f385b[_0x4ac74f(0x1b1)];_0x2e7d71&&(_0x438070[_0x4ac74f(0x25a)](debug,_0x4ac74f(0x274)+_0x2e7d71[_0x4ac74f(0x206)]()),_0x2eb94a[_0x4ac74f(0x1ca)][_0x4ac74f(0x1e5)]=_0x2e7d71[_0x4ac74f(0x1a4)],_0x2eb94a['currentSessionDetails'][_0x4ac74f(0x23f)]=_0x2e7d71[_0x4ac74f(0x20d)]),_0x193053&&(_0x438070[_0x4ac74f(0x25a)](debug,_0x4ac74f(0x255)+_0x193053),_0x2eb94a[_0x4ac74f(0x1ca)]['bsSessionId']=_0x193053);}}return _0x2a6264[_0x4ac74f(0x1f6)](this,arguments);};}}),_0x55a553[_0x25f63b(0x1b5)][_0x25f63b(0x1ce)]=!![],logger[_0x25f63b(0x267)](_0x46256a['vGVbc']);}}}catch(_0x333d63){_0x46256a[_0x25f63b(0x1eb)](debug,'Error\x20in\x20applying\x20Connection\x20patch\x20'+_0x333d63),_0x2eb94a['sessionError']=_0x333d63[_0x25f63b(0x206)]();}}static[a68_0x85a55b(0x25b)](){const _0x4b7bc6=a68_0x85a55b,_0x72f63={'YpcdR':function(_0x5793d6,_0x2fbe07){return _0x5793d6(_0x2fbe07);},'NbYgj':_0x4b7bc6(0x1bb),'UlJOp':_0x4b7bc6(0x23b),'KoCcM':_0x4b7bc6(0x242),'ZOvuE':'crConnection.js','mIgfu':function(_0x5706aa,_0x5dc1a1){return _0x5706aa(_0x5dc1a1);},'eOFxu':_0x4b7bc6(0x1c3),'soXWo':function(_0x21b81a,_0x3423b1){return _0x21b81a(_0x3423b1);},'ElxZL':_0x4b7bc6(0x262),'WtHbn':function(_0x17d922,_0x481385){return _0x17d922!=_0x481385;},'XUonp':_0x4b7bc6(0x1c8),'ThxjO':'_onMessage','mKrLe':_0x4b7bc6(0x26b),'LQLlu':function(_0x573099,_0x131230){return _0x573099(_0x131230);}},_0x23946a=this;let _0x38b05c=null;try{const _0x2d523e=path[_0x4b7bc6(0x1b4)](_0x72f63[_0x4b7bc6(0x224)],_0x72f63[_0x4b7bc6(0x235)],_0x72f63['KoCcM'],_0x72f63['ZOvuE']),_0x1ce4f5=_0x72f63[_0x4b7bc6(0x1e1)](importFileFromPWCore,_0x2d523e);!_0x1ce4f5?_0x72f63[_0x4b7bc6(0x1af)](debug,_0x72f63[_0x4b7bc6(0x23e)]):_0x38b05c=_0x1ce4f5['CRConnection'];}catch(_0x3ed3ef){_0x72f63[_0x4b7bc6(0x1cf)](debug,_0x72f63[_0x4b7bc6(0x24c)]);}try{if(_0x72f63[_0x4b7bc6(0x263)](_0x38b05c,null)){const _0x4bbb51=_0x38b05c[_0x4b7bc6(0x1b5)]['_onMessage'];if(_0x38b05c[_0x4b7bc6(0x1b5)][_0x4b7bc6(0x1aa)]){logger[_0x4b7bc6(0x267)](_0x72f63[_0x4b7bc6(0x1cb)]);return;}Object[_0x4b7bc6(0x225)](_0x38b05c['prototype'],_0x72f63[_0x4b7bc6(0x1fc)],{'get':function(){return async function _0x3e4896(_0x54d89c){const _0x525022=a68_0x2d83;try{if(BrowserstackCLI[_0x525022(0x220)]()['isRunning']()){const _0x7bae15={};_0x7bae15['message']=_0x54d89c,await BrowserstackCLI[_0x525022(0x220)]()['getAutomationFramework']()[_0x525022(0x1bf)](AutomationFrameworkState[_0x525022(0x1a6)],HookState[_0x525022(0x20a)],_0x7bae15),delete _0x54d89c[_0x525022(0x250)];}else{const _0x476f95=_0x54d89c[_0x525022(0x250)];if(_0x476f95){delete _0x54d89c['bStackParams'];const _0xa29ac8=_0x476f95[_0x525022(0x205)],_0x294114=_0x476f95[_0x525022(0x1b1)];_0x294114&&(_0x72f63[_0x525022(0x1af)](debug,_0x525022(0x1d8)+_0x294114[_0x525022(0x206)]()),_0x23946a[_0x525022(0x1ca)]['platform']=_0x294114[_0x525022(0x1a4)],_0x23946a[_0x525022(0x1ca)][_0x525022(0x23f)]=_0x294114[_0x525022(0x20d)]),_0xa29ac8&&(_0x72f63[_0x525022(0x1af)](debug,_0x525022(0x1dc)+_0xa29ac8),_0x23946a[_0x525022(0x1ca)][_0x525022(0x1c2)]=_0xa29ac8);}}}catch(_0x3d0038){_0x72f63[_0x525022(0x1af)](debug,_0x525022(0x200)+_0x3d0038[_0x525022(0x206)]());}return _0x4bbb51[_0x525022(0x1f6)](this,arguments);};}}),_0x38b05c[_0x4b7bc6(0x1b5)]['_bstackCRPatched']=!![],logger['debug'](_0x72f63[_0x4b7bc6(0x214)]);}}catch(_0x1c1fbf){_0x72f63[_0x4b7bc6(0x1b0)](debug,_0x4b7bc6(0x1df)+_0x1c1fbf),_0x23946a[_0x4b7bc6(0x240)]=_0x1c1fbf[_0x4b7bc6(0x206)]();}}static[a68_0x85a55b(0x254)](_0x350a8b,_0x1fbb8c){const _0x1a6d7b=a68_0x85a55b,_0x1faa68={'ZXznc':'bstack:options','RDxBl':function(_0x46b98f,_0xeac015){return _0x46b98f||_0xeac015;},'LupYK':function(_0x19bb35,_0x7ce390){return _0x19bb35||_0x7ce390;},'gbJeV':function(_0x1e9978,_0x65eff1){return _0x1e9978===_0x65eff1;},'WbkzC':_0x1a6d7b(0x1f1),'LaWqs':_0x1a6d7b(0x210),'EnJaH':function(_0x2b9c3a,_0x5e533e){return _0x2b9c3a(_0x5e533e);}};let _0x1cb35e=null,_0x3be8ce=null;try{const _0x5e51a8=[_0x1fbb8c,global['__platformCaps'],global[_0x1a6d7b(0x24e)]];for(const _0x152a85 of _0x5e51a8){if(_0x152a85&&(!_0x3be8ce||!_0x3be8ce['sessionId'])){const _0x2da80c=_0x152a85['sessionId']||_0x152a85[_0x1faa68['ZXznc']]?.[_0x1a6d7b(0x205)],_0x3b546b=_0x152a85[_0x1a6d7b(0x1f0)]||_0x152a85[_0x1a6d7b(0x241)]||_0x152a85[_0x1faa68['ZXznc']]?.[_0x1a6d7b(0x1f0)],_0x432f89=_0x152a85[_0x1a6d7b(0x246)]||_0x152a85['browser_version']||_0x152a85[_0x1faa68[_0x1a6d7b(0x1f4)]]?.[_0x1a6d7b(0x246)],_0x2b7a3d=_0x152a85['os']||_0x152a85[_0x1a6d7b(0x1e5)]||_0x152a85[_0x1faa68[_0x1a6d7b(0x1f4)]]?.['os'],_0x5a7e25=_0x152a85['osVersion']||_0x152a85[_0x1a6d7b(0x24f)]||_0x152a85[_0x1faa68[_0x1a6d7b(0x1f4)]]?.['osVersion'];if(_0x1faa68[_0x1a6d7b(0x1e8)](_0x2da80c,_0x3b546b)||_0x2b7a3d){const _0x4cd88f={};_0x4cd88f[_0x1a6d7b(0x1f0)]=_0x3b546b,_0x4cd88f[_0x1a6d7b(0x246)]=_0x432f89,_0x4cd88f['os']=_0x2b7a3d,_0x4cd88f['osVersion']=_0x5a7e25,_0x4cd88f['platformName']=_0x152a85[_0x1a6d7b(0x1a4)]||_0x2b7a3d,_0x4cd88f[_0x1a6d7b(0x20d)]=_0x152a85['platformVersion']||_0x5a7e25;const _0x976a6d={};_0x976a6d[_0x1a6d7b(0x205)]=_0x2da80c,_0x976a6d['platformDetails']=_0x4cd88f,_0x3be8ce=_0x976a6d;if(_0x1faa68['LupYK'](_0x2da80c,_0x3b546b)){logger[_0x1a6d7b(0x267)](_0x1a6d7b(0x1a3)+_0x3b546b+_0x1a6d7b(0x1c1)+_0x2b7a3d);break;}}}}if(_0x350a8b&&_0x1faa68[_0x1a6d7b(0x1a5)](typeof _0x350a8b,_0x1faa68['WbkzC']))try{const _0x20d5f7=url[_0x1a6d7b(0x264)](_0x350a8b),_0x9fd1c6=new URLSearchParams(_0x20d5f7[_0x1a6d7b(0x1d1)]),_0x3f5b57=Object[_0x1a6d7b(0x21d)](_0x9fd1c6[_0x1a6d7b(0x1b9)]()),_0xb5b59a=[_0x3f5b57[_0x1a6d7b(0x1cc)],_0x3f5b57[_0x1a6d7b(0x1bc)],_0x3f5b57[_0x1a6d7b(0x25f)]];for(const _0x16633d of _0xb5b59a){if(_0x16633d&&(!_0x1cb35e||!_0x1cb35e[_0x1a6d7b(0x205)]))try{const _0x2c5b76=JSON[_0x1a6d7b(0x264)](_0x16633d),_0x3c98bd={};_0x3c98bd[_0x1a6d7b(0x205)]=_0x2c5b76[_0x1a6d7b(0x205)]||_0x2c5b76[_0x1faa68[_0x1a6d7b(0x1f4)]]?.[_0x1a6d7b(0x205)],_0x3c98bd[_0x1a6d7b(0x1b1)]={},_0x3c98bd[_0x1a6d7b(0x1b1)][_0x1a6d7b(0x1f0)]=_0x2c5b76['browserName']||_0x2c5b76[_0x1a6d7b(0x241)],_0x3c98bd[_0x1a6d7b(0x1b1)][_0x1a6d7b(0x246)]=_0x2c5b76[_0x1a6d7b(0x246)]||_0x2c5b76['browser_version'],_0x3c98bd[_0x1a6d7b(0x1b1)]['os']=_0x2c5b76['os']||_0x2c5b76[_0x1a6d7b(0x1e5)],_0x3c98bd[_0x1a6d7b(0x1b1)][_0x1a6d7b(0x227)]=_0x2c5b76[_0x1a6d7b(0x227)]||_0x2c5b76[_0x1a6d7b(0x24f)],_0x3c98bd[_0x1a6d7b(0x1b1)][_0x1a6d7b(0x1a4)]=_0x2c5b76[_0x1a6d7b(0x1a4)]||_0x2c5b76['os']||_0x2c5b76['platform'],_0x3c98bd[_0x1a6d7b(0x1b1)][_0x1a6d7b(0x20d)]=_0x2c5b76[_0x1a6d7b(0x20d)]||_0x2c5b76[_0x1a6d7b(0x227)]||_0x2c5b76[_0x1a6d7b(0x24f)],_0x1cb35e=_0x3c98bd;if(_0x1cb35e['sessionId']||_0x1cb35e[_0x1a6d7b(0x1b1)][_0x1a6d7b(0x1f0)]){logger[_0x1a6d7b(0x267)](_0x1faa68['LaWqs']);break;}}catch(_0x397857){_0x1faa68[_0x1a6d7b(0x1f5)](debug,'Failed\x20to\x20parse\x20capabilities\x20from\x20WebSocket:\x20'+_0x397857[_0x1a6d7b(0x206)]());}}}catch(_0x356bdc){_0x1faa68[_0x1a6d7b(0x1f5)](debug,_0x1a6d7b(0x277)+_0x356bdc[_0x1a6d7b(0x206)]());}}catch(_0x45879e){_0x1faa68['EnJaH'](debug,_0x1a6d7b(0x201)+util['format'](_0x45879e));}const _0x3b4daf={};return _0x3b4daf['bsParams']=_0x1cb35e,_0x3b4daf['bStackParams']=_0x3be8ce,_0x3b4daf;}static async['triggerPlaywrightDispatchEvent'](_0xe01367,_0x71869a){const _0x2c4e6f=a68_0x85a55b,_0x1837fd={'AftWf':function(_0xe3ad6f,_0x290f21){return _0xe3ad6f||_0x290f21;},'rwmdK':_0x2c4e6f(0x1d6),'vRTRB':function(_0x1ccd4f,_0x1406e5){return _0x1ccd4f||_0x1406e5;},'COeuh':function(_0x4a4694,_0x4b9be5){return _0x4a4694(_0x4b9be5);}};try{if(!BrowserstackCLI[_0x2c4e6f(0x220)]()['isRunning']())return;if(_0x1837fd[_0x2c4e6f(0x202)](_0xe01367,_0x71869a)){logger[_0x2c4e6f(0x267)](_0x1837fd[_0x2c4e6f(0x1de)]);const _0x58cff9={'params':_0xe01367?{'bsParams':_0xe01367}:null,'bStackParams':_0x1837fd[_0x2c4e6f(0x1ae)](_0x71869a,null)},_0x3f244c=AutomationFramework[_0x2c4e6f(0x270)](),_0x2b4cb5={};_0x2b4cb5[_0x2c4e6f(0x1da)]=_0x58cff9,_0x2b4cb5[_0x2c4e6f(0x269)]=_0x3f244c,await BrowserstackCLI[_0x2c4e6f(0x220)]()[_0x2c4e6f(0x24b)]()['trackEvent'](AutomationFrameworkState[_0x2c4e6f(0x1a6)],HookState[_0x2c4e6f(0x20a)],_0x2b4cb5);}}catch(_0x633e1d){_0x1837fd[_0x2c4e6f(0x228)](debug,_0x2c4e6f(0x239)+util[_0x2c4e6f(0x1e3)](_0x633e1d));}}static[a68_0x85a55b(0x24d)](){const _0x2b4271=a68_0x85a55b;return this[_0x2b4271(0x1ca)];}}module[a68_0x85a55b(0x26f)]=SharedPlaywrightSessionDetails;
|
|
1
|
+
const a68_0x21d217=a68_0x52a3;(function(_0x7d3f0b,_0x226b14){const _0x565179=a68_0x52a3,_0x10c2e1=_0x7d3f0b();while(!![]){try{const _0x54a24e=parseInt(_0x565179(0x226))/0x1+-parseInt(_0x565179(0x1ff))/0x2*(parseInt(_0x565179(0x1d5))/0x3)+parseInt(_0x565179(0x289))/0x4+parseInt(_0x565179(0x260))/0x5+-parseInt(_0x565179(0x1f8))/0x6*(parseInt(_0x565179(0x1d6))/0x7)+-parseInt(_0x565179(0x21c))/0x8*(parseInt(_0x565179(0x23f))/0x9)+parseInt(_0x565179(0x274))/0xa;if(_0x54a24e===_0x226b14)break;else _0x10c2e1['push'](_0x10c2e1['shift']());}catch(_0x10d371){_0x10c2e1['push'](_0x10c2e1['shift']());}}}(a68_0x2c9d,0x9f036));const path=require(a68_0x21d217(0x207)),url=require(a68_0x21d217(0x212)),util=require('util'),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule,isBrowserstackInfra}=require(a68_0x21d217(0x205)),{o11yErrorHandler}=require(a68_0x21d217(0x1e1)),{debug,getPlatformDetails}=require('../../helpers/test-observability/utils'),logger=require('../../helpers/logger')[a68_0x21d217(0x228)],constants=require(a68_0x21d217(0x267)),AutomationFramework=require('../v2/framework/automationFramework'),BrowserstackCLI=require(a68_0x21d217(0x1e0)),AutomationFrameworkState=require('../v2/state/automationFrameworkState.js'),HookState=require(a68_0x21d217(0x277)),{platform}=require('os'),getBrowserNameFromChannel=_0x56e1d7=>{const _0x3f4cac=a68_0x21d217,_0x4d79aa={};_0x4d79aa['TQJwZ']='0|4|2|5|3|1',_0x4d79aa['yrVjy']='chromium',_0x4d79aa[_0x3f4cac(0x1ea)]=function(_0x413565,_0x3c9f91){return _0x413565===_0x3c9f91;},_0x4d79aa[_0x3f4cac(0x26e)]=_0x3f4cac(0x227),_0x4d79aa[_0x3f4cac(0x264)]='edge',_0x4d79aa[_0x3f4cac(0x22d)]='safari',_0x4d79aa[_0x3f4cac(0x275)]=_0x3f4cac(0x266),_0x4d79aa[_0x3f4cac(0x265)]=_0x3f4cac(0x1d1);const _0x108761=_0x4d79aa,_0x5d1304=_0x108761[_0x3f4cac(0x278)]['split']('|');let _0x54c66d=0x0;while(!![]){switch(_0x5d1304[_0x54c66d++]){case'0':if(_0x56e1d7['includes'](_0x108761['yrVjy']))return _0x108761[_0x3f4cac(0x1de)];continue;case'1':if(_0x108761[_0x3f4cac(0x1ea)](_0x56e1d7,_0x108761['QqZGN']))return _0x108761[_0x3f4cac(0x26e)];continue;case'2':if(_0x56e1d7[_0x3f4cac(0x28b)](_0x108761['aOFXo']))return _0x108761[_0x3f4cac(0x264)];continue;case'3':if(_0x56e1d7[_0x3f4cac(0x28b)](_0x108761['ihjTh']))return _0x108761[_0x3f4cac(0x22d)];continue;case'4':if(_0x56e1d7['includes'](_0x108761[_0x3f4cac(0x275)]))return _0x108761[_0x3f4cac(0x275)];continue;case'5':if(_0x56e1d7[_0x3f4cac(0x28b)](_0x108761['aDBuX']))return _0x108761[_0x3f4cac(0x265)];continue;}break;}},getBrowserFromWSEndpoint=_0x596de0=>{const _0x59624c=a68_0x21d217,_0x32a4fd={'oQTij':'bstack:options','gWpPS':function(_0x5c2815,_0x41a281){return _0x5c2815(_0x41a281);},'xfbFC':_0x59624c(0x1f5),'zhyVE':'msedge','pnxAe':_0x59624c(0x1d1),'zrnYW':'gecko','kSqXC':_0x59624c(0x1f1),'YONRK':_0x59624c(0x227),'vexAt':_0x59624c(0x266)};try{const _0x8507d5=url['parse'](_0x596de0),_0x5c7eaa=new URLSearchParams(_0x8507d5[_0x59624c(0x27b)]),_0x1bf702=Object['fromEntries'](_0x5c7eaa[_0x59624c(0x270)]()),_0x3fe849=[_0x1bf702[_0x59624c(0x1ca)],_0x1bf702[_0x59624c(0x1c7)],_0x1bf702['desiredCapabilities'],_0x1bf702['browserstack_capabilities']];for(const _0x481655 of _0x3fe849){if(_0x481655)try{const _0x2e0905=JSON['parse'](_0x481655),_0x3a71de=_0x2e0905['browserName']||_0x2e0905[_0x59624c(0x252)]||_0x2e0905[_0x32a4fd[_0x59624c(0x1fc)]]?.[_0x59624c(0x1d7)];if(_0x3a71de)return _0x32a4fd[_0x59624c(0x24f)](debug,'Browser\x20found\x20in\x20WebSocket\x20caps:\x20'+_0x3a71de),_0x3a71de[_0x59624c(0x21e)]();}catch(_0x5746b9){_0x32a4fd['gWpPS'](debug,_0x59624c(0x220)+_0x5746b9[_0x59624c(0x230)]);}}if(_0x596de0[_0x59624c(0x28b)](_0x32a4fd['xfbFC'])||_0x596de0[_0x59624c(0x28b)](_0x32a4fd['zhyVE']))return _0x32a4fd[_0x59624c(0x240)];if(_0x596de0[_0x59624c(0x28b)](_0x32a4fd[_0x59624c(0x20f)])||_0x596de0[_0x59624c(0x28b)](_0x32a4fd[_0x59624c(0x24e)]))return _0x32a4fd[_0x59624c(0x20f)];if(_0x596de0[_0x59624c(0x28b)](_0x32a4fd[_0x59624c(0x1fe)])||_0x596de0['includes'](_0x32a4fd[_0x59624c(0x210)]))return _0x32a4fd[_0x59624c(0x1fe)];return _0x32a4fd['vexAt'];}catch(_0xa525ea){return _0x32a4fd[_0x59624c(0x24f)](debug,_0x59624c(0x28a)+_0xa525ea[_0x59624c(0x1eb)]()),_0x32a4fd[_0x59624c(0x287)];}},getCloudProviderFromWsEndpoint=_0x173568=>{const _0x9a2cd6=a68_0x21d217,_0x2c66a4={};_0x2c66a4[_0x9a2cd6(0x258)]=_0x9a2cd6(0x288),_0x2c66a4[_0x9a2cd6(0x242)]='unknown_grid';const _0x4aa0e8=_0x2c66a4;if(_0x173568[_0x9a2cd6(0x28b)](constants[_0x9a2cd6(0x22e)])||_0x173568[_0x9a2cd6(0x28b)](constants['BSTACK_ATS_URL']))return _0x4aa0e8['hoggq'];return _0x4aa0e8[_0x9a2cd6(0x242)];},a68_0x1b4ca9={};a68_0x1b4ca9[a68_0x21d217(0x1f4)]=undefined,a68_0x1b4ca9[a68_0x21d217(0x232)]=undefined,a68_0x1b4ca9[a68_0x21d217(0x252)]=undefined,a68_0x1b4ca9[a68_0x21d217(0x1ce)]=undefined,a68_0x1b4ca9['platform']=undefined,a68_0x1b4ca9['platform_version']=undefined,a68_0x1b4ca9[a68_0x21d217(0x1f6)]=undefined,a68_0x1b4ca9['capabilities']={};function a68_0x52a3(_0x91b6a0,_0x4d5ef0){const _0x2c9d4f=a68_0x2c9d();return a68_0x52a3=function(_0x52a31d,_0x3b53a4){_0x52a31d=_0x52a31d-0x1c2;let _0x181565=_0x2c9d4f[_0x52a31d];return _0x181565;},a68_0x52a3(_0x91b6a0,_0x4d5ef0);}function a68_0x2c9d(){const _0x5e6047=['Error\x20in\x20applying\x20Connection\x20patch\x20','os_version','_connection','gKMgl','env','deviceModel','bstack:options','Failed\x20to\x20parse\x20capabilities\x20from\x20WebSocket:\x20','KlgjQ','apply','platformVersion','zrnYW','gWpPS','Error\x20in\x20importing\x20connection\x20','JhFbc','browser','stringify','Dluqp','eGCkD','isRemote','pADCc','hoggq','sessionError','Error\x20in\x20finding\x20platform\x20details\x20','jPCTs','osVersion','TSmrW','eNHpM','instance','5108500VHEsEc','VtpvK','setupBrowserDetails','patchConnection','aOFXo','aDBuX','chrome','./constants','PcbMV','sessionId','currentSessionDetails','chromium','Browser\x20name\x20overridden\x20from\x20WebSocket\x20endpoint:\x20','vTXGG','QqZGN','dispatch','entries','Not\x20able\x20to\x20import\x20Connection\x20class\x20from\x20any\x20path','Error\x20triggering\x20PLAYWRIGHT_DISPATCH\x20event:\x20','Not\x20able\x20to\x20import\x20crConnection','6584240TvdhBy','dicit','parse','../v2/state/hookState.js','TQJwZ','patch','zoqhi','query','local_grid','getDetails','Browser\x20is\x20not\x20defined\x20or\x20not\x20available','kUdOM','string','Connection\x20dispatch\x20already\x20patched','Error\x20extracting\x20BrowserStack\x20parameters:\x20','channel','prototype','GjJyc','ybaOW','vexAt','browserstack','2850584ecZdLY','Error\x20in\x20getting\x20browser\x20from\x20WebSocket\x20endpoint:\x20','includes','Using\x20browser\x20name\x20from\x20browser\x20object:\x20','client','connection.js','qOFYj','vNGzR','LGyMa','join','desiredCapabilities','Failed\x20to\x20import\x20connection\x20from\x20','BrowserStack\x20params\x20extracted\x20from\x20capabilities:\x20browser=','platformName','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','capabilities','exports','crConnection.js','caps','vXxwM','JFzog','test','browser_version','Device\x20Model\x20is\x20not\x20available','getTrackedInstance','firefox','zJCQP','_defaultConnectOptions','POST','1640094KjsXoV','371ZLLpDk','browserName','assign','playwright-','extractBrowserStackParams','JxMOG','CmnwD','_browserType','yrVjy','ztjqO','../v2/browserstackCLI','../../helpers/test-observability/error-handler','__platformCaps','wsEndpoint','Successfully\x20patched\x20CRConnection._onMessage',',\x20os=','TfNCM','vbTgI','DyRsB','platform_version','UGSPd','toString','_onMessage','platformDetails','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','EKTWz','RfAvC','safari','use','debug','cloudProvider','edge','product','PCrTu','79362YPtHyg','iIQiV','ORUIG','connectOptions','oQTij','version','kSqXC','2JSnjye','browserVersion','lirEH','ycavp','getAutomationFramework','anMJY','../../helpers/helper','function','path','bzwzc','Setting\x20session\x20id\x20received\x20from\x20browserstack\x20','fmDth','CRConnection','kjIUM','patchCRConnection','uBsWJ','pnxAe','YONRK','PLAYWRIGHT_DISPATCH','url','PdAQc','NTyuf','cKoIR','bStackParams','ySQkY','zsyXH','platform','BROWSERSTACK_TEST_OBSERVABILITY','format','2088pLeIPB','server','toLowerCase','_bstackDispatchPatched','Failed\x20to\x20parse\x20caps\x20from\x20WebSocket:\x20','PBHYI','_bstackCRPatched','YEvAq','BrowserStack\x20params\x20extracted\x20from\x20WebSocket\x20endpoint','isRunning','126674PjkAnq','webkit','winstonLogger','zNANp','DLMxy','bsParams','model','ihjTh','BSTACK_URL','project','message','trackEvent','bsSessionId','czNiQ','ldDmj','lib','Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20','accessibilityPlatform','fwbAk','ApIfi','Setting\x20session\x20id\x20received\x20from\x20BS\x20','Connection','capabilties','uNMDQ','fwUFf','21393uHtgAv','xfbFC','getInstance','iaaau'];a68_0x2c9d=function(){return _0x5e6047;};return a68_0x2c9d();}class SharedPlaywrightSessionDetails{static [a68_0x21d217(0x26a)]=a68_0x1b4ca9;constructor(){const _0x1fc21a=a68_0x21d217,_0x1525e9={};_0x1525e9['DLMxy']='Invalid\x20constructor,\x20please\x20use\x20static\x20methods';const _0x30c113=_0x1525e9;throw new Error(_0x30c113[_0x1fc21a(0x22a)]);}static [a68_0x21d217(0x259)]=null;static['setupBrowserDetails'](_0x1394e3,_0x402ef9,_0x4e527f=null){const _0x20eca2=a68_0x21d217,_0x55e089={'KlgjQ':function(_0x4556b8,_0x91368){return _0x4556b8===_0x91368;},'uNMDQ':_0x20eca2(0x206),'lKrWJ':_0x20eca2(0x27e),'fmDth':function(_0x57276a,_0x5010a5){return _0x57276a===_0x5010a5;},'WVpbv':_0x20eca2(0x1cf),'TSmrW':_0x20eca2(0x27c),'RfAvC':function(_0x311beb,_0x5431ba,_0x501879){return _0x311beb(_0x5431ba,_0x501879);},'TfNCM':_0x20eca2(0x1dd),'zJCQP':'_defaultConnectOptions','zoqhi':_0x20eca2(0x22f),'GjJyc':_0x20eca2(0x1f2),'JhFbc':_0x20eca2(0x1fb),'JxMOG':function(_0x2142a0,_0x1cd3db){return _0x2142a0(_0x1cd3db);},'bzwzc':'browserstack','gKMgl':'turboscale','vbTgI':'automate','ycavp':function(_0x21e0b1,_0x7f2626){return _0x21e0b1===_0x7f2626;},'GDHsh':_0x20eca2(0x26b),'EHtxs':function(_0x70cddb){return _0x70cddb();},'QCYxs':function(_0x2ecb9e,_0xd06286){return _0x2ecb9e&&_0xd06286;},'eNHpM':function(_0x29fdab){return _0x29fdab();},'ldDmj':function(_0x350a97){return _0x350a97();},'PdAQc':function(_0x333bb9,_0x6aac7d){return _0x333bb9(_0x6aac7d);},'cKoIR':function(_0x5d6209,_0x5b857b){return _0x5d6209+_0x5b857b;},'JFzog':_0x20eca2(0x1d9),'WHeWv':_0x20eca2(0x262)},_0x4f7ef1=this;return _0x55e089['RfAvC'](o11yErrorHandler,async function _0x53a0e7(_0x127f67,_0x30134a,_0x4d6a74=null){const _0x5543d2=_0x20eca2;let _0x3bead5=_0x127f67['_name'],_0x51def5=null;_0x127f67&&_0x55e089[_0x5543d2(0x24b)](typeof _0x127f67[_0x5543d2(0x1fd)],_0x55e089[_0x5543d2(0x23d)])?_0x51def5=_0x127f67[_0x5543d2(0x1fd)]():logger[_0x5543d2(0x1f3)](_0x55e089['lKrWJ']);let _0x164bab=null;_0x127f67&&_0x55e089[_0x5543d2(0x20a)](typeof _0x127f67[_0x5543d2(0x22c)],_0x55e089[_0x5543d2(0x23d)])?_0x164bab=_0x127f67['model']():logger[_0x5543d2(0x1f3)](_0x55e089['WVpbv']);let _0x23f910=null,_0x12ea39=null,_0x42d8da=null,_0x53f754=_0x55e089[_0x5543d2(0x25d)];if(_0x127f67[_0x5543d2(0x245)][_0x5543d2(0x256)]()||global[_0x5543d2(0x237)]){let _0x2793c1=null;_0x55e089[_0x5543d2(0x1f0)](nestedKeyValue,_0x127f67,[_0x55e089[_0x5543d2(0x1e6)],_0x55e089[_0x5543d2(0x1d2)]])?_0x2793c1=_0x127f67['_browserType'][_0x5543d2(0x1d3)]:_0x2793c1=_0x55e089[_0x5543d2(0x1f0)](nestedKeyValue,_0x30134a,[_0x55e089[_0x5543d2(0x27a)],_0x55e089[_0x5543d2(0x285)],_0x55e089[_0x5543d2(0x251)]]);const _0x45baf1=_0x4d6a74||_0x2793c1&&_0x2793c1[_0x5543d2(0x1e3)];if(_0x45baf1){_0x53f754=_0x55e089[_0x5543d2(0x1db)](getCloudProviderFromWsEndpoint,_0x45baf1);if(_0x55e089['fmDth'](_0x53f754,_0x55e089[_0x5543d2(0x208)])){_0x42d8da=constants['ATS_WSS_URL_REGEX'][_0x5543d2(0x1cd)](_0x45baf1)?_0x55e089[_0x5543d2(0x246)]:_0x55e089[_0x5543d2(0x1e7)];const _0x1288d2=_0x55e089[_0x5543d2(0x1db)](getBrowserFromWSEndpoint,_0x45baf1);if(_0x1288d2&&(!_0x3bead5||_0x55e089[_0x5543d2(0x202)](_0x3bead5,_0x55e089['GDHsh'])))_0x3bead5=_0x1288d2,logger[_0x5543d2(0x1f3)](_0x5543d2(0x26c)+_0x3bead5);else _0x3bead5&&logger['debug'](_0x5543d2(0x28c)+_0x3bead5);_0x23f910=_0x4f7ef1[_0x5543d2(0x26a)][_0x5543d2(0x219)],_0x12ea39=_0x4f7ef1['currentSessionDetails'][_0x5543d2(0x1e9)];}else{const _0x2f46e4=await _0x55e089['EHtxs'](getPlatformDetails);_0x23f910=_0x2f46e4[_0x5543d2(0x1c5)],_0x12ea39=_0x2f46e4[_0x5543d2(0x24d)];}}if(_0x55e089['QCYxs'](!_0x23f910,!_0x12ea39)&&!_0x55e089[_0x5543d2(0x25e)](isBrowserstackInfra)){const _0x52ac91=await _0x55e089[_0x5543d2(0x234)](getPlatformDetails);_0x23f910=_0x52ac91[_0x5543d2(0x1c5)],_0x12ea39=_0x52ac91[_0x5543d2(0x24d)];}}else{_0x30134a&&_0x30134a['project']&&_0x30134a[_0x5543d2(0x22f)][_0x5543d2(0x1f2)]&&_0x30134a[_0x5543d2(0x22f)][_0x5543d2(0x1f2)][_0x5543d2(0x283)]?_0x3bead5=_0x55e089[_0x5543d2(0x213)](getBrowserNameFromChannel,_0x30134a[_0x5543d2(0x22f)][_0x5543d2(0x1f2)][_0x5543d2(0x283)]):_0x3bead5=_0x55e089[_0x5543d2(0x215)](_0x55e089[_0x5543d2(0x1cc)],_0x3bead5[_0x5543d2(0x21e)]());const _0x186192=await _0x55e089[_0x5543d2(0x234)](getPlatformDetails);_0x23f910=_0x186192[_0x5543d2(0x1c5)],_0x12ea39=_0x186192[_0x5543d2(0x24d)];}const _0x5c9174={};_0x5c9174[_0x5543d2(0x252)]=_0x3bead5,_0x5c9174['browser_version']=_0x51def5,_0x5c9174[_0x5543d2(0x1c7)]={},_0x5c9174['platform']=_0x23f910,_0x5c9174['platform_version']=_0x12ea39,_0x5c9174[_0x5543d2(0x1f6)]=_0x42d8da;const _0x496f0d=_0x5c9174;_0x164bab&&(_0x496f0d[_0x5543d2(0x1c7)][_0x5543d2(0x248)]=_0x164bab);const _0x356d46={};_0x356d46[_0x5543d2(0x1f4)]=_0x53f754,_0x4f7ef1[_0x5543d2(0x26a)]=Object[_0x5543d2(0x1d8)]({},_0x4f7ef1[_0x5543d2(0x26a)],_0x356d46,_0x496f0d);const _0x4f470b={};_0x4f470b[_0x5543d2(0x252)]=_0x4f7ef1[_0x5543d2(0x26a)][_0x5543d2(0x252)],_0x4f470b[_0x5543d2(0x200)]=_0x4f7ef1['currentSessionDetails'][_0x5543d2(0x1ce)],_0x4f470b[_0x5543d2(0x219)]=_0x4f7ef1[_0x5543d2(0x26a)][_0x5543d2(0x219)],_0x4f470b[_0x5543d2(0x24d)]=_0x4f7ef1[_0x5543d2(0x26a)][_0x5543d2(0x1e9)],_0x4f470b[_0x5543d2(0x1f4)]=_0x4f7ef1[_0x5543d2(0x26a)][_0x5543d2(0x1f4)],_0x4f470b['product']=_0x4f7ef1[_0x5543d2(0x26a)][_0x5543d2(0x1f6)],logger[_0x5543d2(0x1f3)]('Session\x20details\x20setup\x20complete:\x20'+JSON[_0x5543d2(0x253)](_0x4f470b));},_0x55e089['WHeWv'])(_0x1394e3,_0x402ef9,_0x4e527f);}static[a68_0x21d217(0x279)](){this['patchConnection'](),this['patchCRConnection']();}static[a68_0x21d217(0x263)](){const _0x35aa29=a68_0x21d217,_0x2ac068={'Dluqp':function(_0x122619,_0x2b7827){return _0x122619(_0x2b7827);},'kjIUM':function(_0x347c58,_0x42740a){return _0x347c58(_0x42740a);},'ztjqO':_0x35aa29(0x235),'EKTWz':_0x35aa29(0x28d),'PBHYI':_0x35aa29(0x28e),'zsyXH':function(_0x3b456e,_0xf9ab5){return _0x3b456e(_0xf9ab5);},'ApIfi':function(_0x2ccd5d,_0x1912f0){return _0x2ccd5d(_0x1912f0);},'VtpvK':function(_0xde2274,_0x3f0502){return _0xde2274(_0x3f0502);},'vTXGG':_0x35aa29(0x271),'aZbRu':function(_0x3f8348,_0x593099){return _0x3f8348!=_0x593099;},'IJHYM':function(_0x4e3c4f,_0x1c5d2f){return _0x4e3c4f(_0x1c5d2f);},'fwUFf':_0x35aa29(0x281),'aWOfH':_0x35aa29(0x26f),'ybaOW':'Successfully\x20patched\x20Connection.dispatch','uBsWJ':function(_0x2986ad,_0x3a6212){return _0x2986ad(_0x3a6212);}},_0x20c272=this;if(!this['Connection'])try{const _0x4c6eac=[path[_0x35aa29(0x292)](_0x2ac068[_0x35aa29(0x1df)],_0x2ac068[_0x35aa29(0x1ef)],_0x2ac068[_0x35aa29(0x221)]),path[_0x35aa29(0x292)](_0x2ac068[_0x35aa29(0x1df)],_0x2ac068['PBHYI']),path[_0x35aa29(0x292)](_0x2ac068['EKTWz'],_0x2ac068[_0x35aa29(0x221)])];for(const _0x41f26f of _0x4c6eac){try{const _0x57d3c3=_0x2ac068[_0x35aa29(0x218)](importFileFromPWCore,_0x41f26f);if(_0x57d3c3&&_0x57d3c3['Connection']){this[_0x35aa29(0x23b)]=_0x57d3c3[_0x35aa29(0x23b)],logger[_0x35aa29(0x1f3)]('Found\x20Connection\x20class\x20at:\x20'+_0x41f26f);break;}}catch(_0xaea7fc){_0x2ac068[_0x35aa29(0x239)](debug,_0x35aa29(0x1c3)+_0x41f26f+':\x20'+_0xaea7fc[_0x35aa29(0x1eb)]());}}if(!this[_0x35aa29(0x23b)]){_0x2ac068[_0x35aa29(0x261)](debug,_0x2ac068[_0x35aa29(0x26d)]);return;}}catch(_0x265c87){_0x2ac068[_0x35aa29(0x239)](debug,_0x35aa29(0x250)+_0x265c87['toString']());return;}const _0x16cf34=this[_0x35aa29(0x23b)];try{if(_0x2ac068['aZbRu'](_0x16cf34,null)){const _0x2c4662=_0x16cf34['prototype'][_0x35aa29(0x26f)];if(!_0x2ac068['IJHYM'](isFalse,process[_0x35aa29(0x247)][_0x35aa29(0x21a)])){if(_0x16cf34['prototype'][_0x35aa29(0x21f)]){logger[_0x35aa29(0x1f3)](_0x2ac068[_0x35aa29(0x23e)]);return;}Object['defineProperty'](_0x16cf34[_0x35aa29(0x284)],_0x2ac068['aWOfH'],{'get':function(){return async function _0x4238bc(_0x35097b){const _0x21d6e9=a68_0x52a3;if(BrowserstackCLI['getInstance']()[_0x21d6e9(0x225)]()){const _0x2c9964={};_0x2c9964[_0x21d6e9(0x230)]=_0x35097b,await BrowserstackCLI[_0x21d6e9(0x241)]()['getAutomationFramework']()[_0x21d6e9(0x231)](AutomationFrameworkState[_0x21d6e9(0x211)],HookState[_0x21d6e9(0x1d4)],_0x2c9964);}else{const _0x1fef05=_0x35097b&&_0x35097b['params']&&_0x35097b['params'][_0x21d6e9(0x22b)];if(_0x1fef05){const _0x3053af=_0x1fef05[_0x21d6e9(0x269)],_0x2b0b25=_0x1fef05[_0x21d6e9(0x1ed)];_0x2b0b25&&(_0x2ac068[_0x21d6e9(0x254)](debug,_0x21d6e9(0x1c6)+_0x2b0b25[_0x21d6e9(0x1eb)]()),_0x20c272[_0x21d6e9(0x26a)][_0x21d6e9(0x219)]=_0x2b0b25['platformName'],_0x20c272['currentSessionDetails'][_0x21d6e9(0x1e9)]=_0x2b0b25[_0x21d6e9(0x24d)]),_0x3053af&&(_0x2ac068[_0x21d6e9(0x20c)](debug,_0x21d6e9(0x23a)+_0x3053af),_0x20c272[_0x21d6e9(0x26a)][_0x21d6e9(0x232)]=_0x3053af);}}return _0x2c4662[_0x21d6e9(0x24c)](this,arguments);};}}),_0x16cf34[_0x35aa29(0x284)]['_bstackDispatchPatched']=!![],logger[_0x35aa29(0x1f3)](_0x2ac068[_0x35aa29(0x286)]);}}}catch(_0x421045){_0x2ac068[_0x35aa29(0x20e)](debug,_0x35aa29(0x243)+_0x421045),_0x20c272[_0x35aa29(0x259)]=_0x421045[_0x35aa29(0x1eb)]();}}static[a68_0x21d217(0x20d)](){const _0x113c1f=a68_0x21d217,_0x5e0fd1={'PcbMV':function(_0x24e7a3,_0x4dfbef){return _0x24e7a3(_0x4dfbef);},'kUdOM':'lib','vNGzR':_0x113c1f(0x21d),'vXxwM':'chromium','NTyuf':_0x113c1f(0x1c9),'czNiQ':function(_0x3eead1,_0x4d35f9){return _0x3eead1(_0x4d35f9);},'anMJY':_0x113c1f(0x273),'ORUIG':'Error\x20in\x20importing\x20crConnection','YEvAq':function(_0x8cc500,_0x45c849){return _0x8cc500!=_0x45c849;},'NSPJD':'CRConnection\x20already\x20patched','fwbAk':'_onMessage','jPCTs':_0x113c1f(0x1e4),'ySQkY':function(_0x52cdb0,_0xcde5f6){return _0x52cdb0(_0xcde5f6);}},_0x1de6d5=this;let _0x1a0d2e=null;try{const _0x558e65=path[_0x113c1f(0x292)](_0x5e0fd1[_0x113c1f(0x27f)],_0x5e0fd1[_0x113c1f(0x290)],_0x5e0fd1[_0x113c1f(0x1cb)],_0x5e0fd1[_0x113c1f(0x214)]),_0x5a8535=_0x5e0fd1[_0x113c1f(0x268)](importFileFromPWCore,_0x558e65);!_0x5a8535?_0x5e0fd1[_0x113c1f(0x233)](debug,_0x5e0fd1[_0x113c1f(0x204)]):_0x1a0d2e=_0x5a8535[_0x113c1f(0x20b)];}catch(_0x175ce3){_0x5e0fd1[_0x113c1f(0x268)](debug,_0x5e0fd1[_0x113c1f(0x1fa)]);}try{if(_0x5e0fd1[_0x113c1f(0x223)](_0x1a0d2e,null)){const _0x498392=_0x1a0d2e['prototype'][_0x113c1f(0x1ec)];if(_0x1a0d2e[_0x113c1f(0x284)][_0x113c1f(0x222)]){logger[_0x113c1f(0x1f3)](_0x5e0fd1['NSPJD']);return;}Object['defineProperty'](_0x1a0d2e[_0x113c1f(0x284)],_0x5e0fd1[_0x113c1f(0x238)],{'get':function(){const _0x31e9a4={'zNANp':function(_0x57508b,_0x33b320){const _0x2dba9c=a68_0x52a3;return _0x5e0fd1[_0x2dba9c(0x268)](_0x57508b,_0x33b320);}};return async function _0xd8e6b6(_0x5e9330){const _0x25dcfa=a68_0x52a3;try{if(BrowserstackCLI[_0x25dcfa(0x241)]()[_0x25dcfa(0x225)]()){const _0x1618f7={};_0x1618f7[_0x25dcfa(0x230)]=_0x5e9330,await BrowserstackCLI['getInstance']()[_0x25dcfa(0x203)]()['trackEvent'](AutomationFrameworkState[_0x25dcfa(0x211)],HookState[_0x25dcfa(0x1d4)],_0x1618f7),delete _0x5e9330[_0x25dcfa(0x216)];}else{const _0x4ee9c0=_0x5e9330[_0x25dcfa(0x216)];if(_0x4ee9c0){delete _0x5e9330[_0x25dcfa(0x216)];const _0x387afe=_0x4ee9c0[_0x25dcfa(0x269)],_0x339047=_0x4ee9c0['platformDetails'];_0x339047&&(_0x31e9a4[_0x25dcfa(0x229)](debug,_0x25dcfa(0x1ee)+_0x339047['toString']()),_0x1de6d5[_0x25dcfa(0x26a)][_0x25dcfa(0x219)]=_0x339047[_0x25dcfa(0x1c5)],_0x1de6d5[_0x25dcfa(0x26a)]['platform_version']=_0x339047[_0x25dcfa(0x24d)]),_0x387afe&&(_0x31e9a4[_0x25dcfa(0x229)](debug,_0x25dcfa(0x209)+_0x387afe),_0x1de6d5['currentSessionDetails'][_0x25dcfa(0x232)]=_0x387afe);}}}catch(_0x34f1f9){_0x31e9a4[_0x25dcfa(0x229)](debug,_0x25dcfa(0x25a)+_0x34f1f9[_0x25dcfa(0x1eb)]());}return _0x498392[_0x25dcfa(0x24c)](this,arguments);};}}),_0x1a0d2e['prototype'][_0x113c1f(0x222)]=!![],logger['debug'](_0x5e0fd1[_0x113c1f(0x25b)]);}}catch(_0x52a5f9){_0x5e0fd1[_0x113c1f(0x217)](debug,_0x113c1f(0x236)+_0x52a5f9),_0x1de6d5['sessionError']=_0x52a5f9['toString']();}}static[a68_0x21d217(0x1da)](_0x53e6b5,_0x419e21){const _0x29acea=a68_0x21d217,_0x4bf256={'lirEH':_0x29acea(0x249),'LGyMa':function(_0x4b5516,_0x2f2cc9){return _0x4b5516||_0x2f2cc9;},'xBodd':function(_0x2e529a,_0x2a781c){return _0x2e529a||_0x2a781c;},'qOFYj':function(_0x4d14d2,_0x50128e){return _0x4d14d2===_0x50128e;},'CmnwD':_0x29acea(0x280),'FUrDI':_0x29acea(0x224),'eGCkD':function(_0x570ae4,_0x47ddd4){return _0x570ae4(_0x47ddd4);},'DyRsB':function(_0x5bdf5f,_0x32c741){return _0x5bdf5f(_0x32c741);}};let _0x46d44d=null,_0x4b4400=null;try{const _0x32fc40=[_0x419e21,global[_0x29acea(0x1e2)],global[_0x29acea(0x23c)]];for(const _0x10624b of _0x32fc40){if(_0x10624b&&(!_0x4b4400||!_0x4b4400[_0x29acea(0x269)])){const _0x3fdd6f=_0x10624b[_0x29acea(0x269)]||_0x10624b[_0x4bf256[_0x29acea(0x201)]]?.['sessionId'],_0x295c1b=_0x10624b[_0x29acea(0x1d7)]||_0x10624b[_0x29acea(0x252)]||_0x10624b[_0x4bf256['lirEH']]?.['browserName'],_0x58778f=_0x10624b[_0x29acea(0x200)]||_0x10624b[_0x29acea(0x1ce)]||_0x10624b[_0x4bf256[_0x29acea(0x201)]]?.['browserVersion'],_0x1fee04=_0x10624b['os']||_0x10624b['platform']||_0x10624b[_0x4bf256[_0x29acea(0x201)]]?.['os'],_0x6f9d4=_0x10624b[_0x29acea(0x25c)]||_0x10624b[_0x29acea(0x244)]||_0x10624b[_0x4bf256[_0x29acea(0x201)]]?.[_0x29acea(0x25c)];if(_0x4bf256[_0x29acea(0x291)](_0x3fdd6f,_0x295c1b)||_0x1fee04){const _0x2e0353={};_0x2e0353[_0x29acea(0x1d7)]=_0x295c1b,_0x2e0353[_0x29acea(0x200)]=_0x58778f,_0x2e0353['os']=_0x1fee04,_0x2e0353[_0x29acea(0x25c)]=_0x6f9d4,_0x2e0353[_0x29acea(0x1c5)]=_0x10624b['platformName']||_0x1fee04,_0x2e0353[_0x29acea(0x24d)]=_0x10624b[_0x29acea(0x24d)]||_0x6f9d4;const _0xfc57bc={};_0xfc57bc[_0x29acea(0x269)]=_0x3fdd6f,_0xfc57bc[_0x29acea(0x1ed)]=_0x2e0353,_0x4b4400=_0xfc57bc;if(_0x4bf256['xBodd'](_0x3fdd6f,_0x295c1b)){logger['debug'](_0x29acea(0x1c4)+_0x295c1b+_0x29acea(0x1e5)+_0x1fee04);break;}}}}if(_0x53e6b5&&_0x4bf256[_0x29acea(0x28f)](typeof _0x53e6b5,_0x4bf256[_0x29acea(0x1dc)]))try{const _0x5d7eed=url[_0x29acea(0x276)](_0x53e6b5),_0x2fff08=new URLSearchParams(_0x5d7eed['query']),_0x254c53=Object['fromEntries'](_0x2fff08['entries']()),_0x5a04b3=[_0x254c53['caps'],_0x254c53['capabilities'],_0x254c53[_0x29acea(0x1c2)]];for(const _0x35d022 of _0x5a04b3){if(_0x35d022&&(!_0x46d44d||!_0x46d44d[_0x29acea(0x269)]))try{const _0x171bad=JSON[_0x29acea(0x276)](_0x35d022),_0x40c44d={};_0x40c44d[_0x29acea(0x269)]=_0x171bad['sessionId']||_0x171bad[_0x4bf256[_0x29acea(0x201)]]?.[_0x29acea(0x269)],_0x40c44d[_0x29acea(0x1ed)]={},_0x40c44d[_0x29acea(0x1ed)][_0x29acea(0x1d7)]=_0x171bad[_0x29acea(0x1d7)]||_0x171bad[_0x29acea(0x252)],_0x40c44d[_0x29acea(0x1ed)][_0x29acea(0x200)]=_0x171bad[_0x29acea(0x200)]||_0x171bad[_0x29acea(0x1ce)],_0x40c44d[_0x29acea(0x1ed)]['os']=_0x171bad['os']||_0x171bad[_0x29acea(0x219)],_0x40c44d[_0x29acea(0x1ed)][_0x29acea(0x25c)]=_0x171bad[_0x29acea(0x25c)]||_0x171bad[_0x29acea(0x244)],_0x40c44d[_0x29acea(0x1ed)][_0x29acea(0x1c5)]=_0x171bad[_0x29acea(0x1c5)]||_0x171bad['os']||_0x171bad[_0x29acea(0x219)],_0x40c44d[_0x29acea(0x1ed)][_0x29acea(0x24d)]=_0x171bad[_0x29acea(0x24d)]||_0x171bad[_0x29acea(0x25c)]||_0x171bad[_0x29acea(0x244)],_0x46d44d=_0x40c44d;if(_0x46d44d['sessionId']||_0x46d44d[_0x29acea(0x1ed)]['browserName']){logger[_0x29acea(0x1f3)](_0x4bf256['FUrDI']);break;}}catch(_0x5402c8){_0x4bf256['eGCkD'](debug,_0x29acea(0x24a)+_0x5402c8[_0x29acea(0x1eb)]());}}}catch(_0x5bca6c){_0x4bf256[_0x29acea(0x255)](debug,'Error\x20parsing\x20WebSocket\x20endpoint:\x20'+_0x5bca6c[_0x29acea(0x1eb)]());}}catch(_0x5cc8bc){_0x4bf256[_0x29acea(0x1e8)](debug,_0x29acea(0x282)+util[_0x29acea(0x21b)](_0x5cc8bc));}const _0x222306={};return _0x222306[_0x29acea(0x22b)]=_0x46d44d,_0x222306[_0x29acea(0x216)]=_0x4b4400,_0x222306;}static async['triggerPlaywrightDispatchEvent'](_0x48160b,_0x62cf47){const _0x22836a=a68_0x21d217,_0x2cb11f={'pADCc':function(_0x1326a9,_0x136134){return _0x1326a9||_0x136134;},'PCrTu':'Triggering\x20PLAYWRIGHT_DISPATCH\x20event','iIQiV':function(_0x2c3768,_0x293bd){return _0x2c3768(_0x293bd);}};try{if(!BrowserstackCLI[_0x22836a(0x241)]()[_0x22836a(0x225)]())return;if(_0x2cb11f[_0x22836a(0x257)](_0x48160b,_0x62cf47)){logger['debug'](_0x2cb11f[_0x22836a(0x1f7)]);const _0x5eb5e8={'params':_0x48160b?{'bsParams':_0x48160b}:null,'bStackParams':_0x2cb11f['pADCc'](_0x62cf47,null)},_0x50f7bb=AutomationFramework[_0x22836a(0x1d0)](),_0x2c3dbd={};_0x2c3dbd['message']=_0x5eb5e8,_0x2c3dbd[_0x22836a(0x25f)]=_0x50f7bb,await BrowserstackCLI[_0x22836a(0x241)]()[_0x22836a(0x203)]()['trackEvent'](AutomationFrameworkState['PLAYWRIGHT_DISPATCH'],HookState['POST'],_0x2c3dbd);}}catch(_0x2afd36){_0x2cb11f[_0x22836a(0x1f9)](debug,_0x22836a(0x272)+util['format'](_0x2afd36));}}static[a68_0x21d217(0x27d)](){const _0x17729d=a68_0x21d217;return this[_0x17729d(0x26a)];}}module[a68_0x21d217(0x1c8)]=SharedPlaywrightSessionDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a69_0x1d5ba8=a69_0x68f5;(function(_0x4ea759,_0x38e411){const _0x5f0f39=a69_0x68f5,_0x2c39d0=_0x4ea759();while(!![]){try{const _0x5a6678=parseInt(_0x5f0f39(0x18a))/0x1+-parseInt(_0x5f0f39(0x185))/0x2*(parseInt(_0x5f0f39(0x181))/0x3)+parseInt(_0x5f0f39(0x182))/0x4+-parseInt(_0x5f0f39(0x187))/0x5*(parseInt(_0x5f0f39(0x189))/0x6)+-parseInt(_0x5f0f39(0x179))/0x7*(parseInt(_0x5f0f39(0x18b))/0x8)+-parseInt(_0x5f0f39(0x17f))/0x9+parseInt(_0x5f0f39(0x17e))/0xa;if(_0x5a6678===_0x38e411)break;else _0x2c39d0['push'](_0x2c39d0['shift']());}catch(_0x487ec7){_0x2c39d0['push'](_0x2c39d0['shift']());}}}(a69_0x3234,0x5f505));const isHash=_0x4b0873=>Boolean(_0x4b0873&&typeof _0x4b0873==='object'&&!Array[a69_0x1d5ba8(0x17c)](_0x4b0873)),nestedKeyValue=(_0x2dce7d,_0x3397f2)=>{const _0x3aea2d=a69_0x1d5ba8,_0xd67a8d={'VRkjb':function(_0x1fcc63,_0x24f7e7){return _0x1fcc63===_0x24f7e7;},'dfCgA':function(_0x493398,_0x70bacb){return _0x493398===_0x70bacb;},'sbyrR':function(_0x5510d4,_0x5b3719){return _0x5510d4===_0x5b3719;},'SsSUM':'function','ArACI':function(_0x460149,_0x2833f1){return _0x460149(_0x2833f1);}};return _0x3397f2[_0x3aea2d(0x17b)]((_0xaf7739,_0x4f6f0e)=>{const _0x4eb82a=_0x3aea2d;if(_0xd67a8d[_0x4eb82a(0x184)](_0xaf7739,undefined)||_0xd67a8d['dfCgA'](_0xaf7739,null))return undefined;if(_0xaf7739&&_0xd67a8d[_0x4eb82a(0x188)](typeof _0xaf7739[_0x4eb82a(0x17a)],_0xd67a8d[_0x4eb82a(0x183)]))return _0xaf7739[_0x4eb82a(0x17a)](_0x4f6f0e);if(_0xd67a8d[_0x4eb82a(0x180)](isHash,_0xaf7739))return _0xaf7739[_0x4f6f0e];return undefined;},_0x2dce7d);},a69_0x445a7e={};function a69_0x3234(){const _0xee875d=['378xvMVBU','get','reduce','isArray','isHash','426130wSrJOu','1619640IjeXPr','ArACI','118635TJjOiv','2912124FVIidm','SsSUM','VRkjb','10BHgRHA','nestedKeyValue','195WVrLUo','sbyrR','66012xZeWjL','656672JvmnIO','34096uZYOHE'];a69_0x3234=function(){return _0xee875d;};return a69_0x3234();}function a69_0x68f5(_0x46099f,_0xcffc5){const _0x323479=a69_0x3234();return a69_0x68f5=function(_0x68f58,_0x422496){_0x68f58=_0x68f58-0x179;let _0xd56653=_0x323479[_0x68f58];return _0xd56653;},a69_0x68f5(_0x46099f,_0xcffc5);}a69_0x445a7e[a69_0x1d5ba8(0x17d)]=isHash,a69_0x445a7e[a69_0x1d5ba8(0x186)]=nestedKeyValue,module['exports']=a69_0x445a7e;
|
package/src/bin/v2/TestInfo.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a70_0x3e320f=a70_0x1d03;(function(_0x10a406,_0x5511f6){const _0xca1da4=a70_0x1d03,_0x5a255b=_0x10a406();while(!![]){try{const _0x3eaef7=-parseInt(_0xca1da4(0x186))/0x1*(-parseInt(_0xca1da4(0x155))/0x2)+-parseInt(_0xca1da4(0x10c))/0x3+-parseInt(_0xca1da4(0x156))/0x4*(parseInt(_0xca1da4(0x139))/0x5)+parseInt(_0xca1da4(0x15f))/0x6*(-parseInt(_0xca1da4(0x117))/0x7)+parseInt(_0xca1da4(0x161))/0x8*(parseInt(_0xca1da4(0x16e))/0x9)+-parseInt(_0xca1da4(0x140))/0xa+parseInt(_0xca1da4(0x178))/0xb;if(_0x3eaef7===_0x5511f6)break;else _0x5a255b['push'](_0x5a255b['shift']());}catch(_0x382a0c){_0x5a255b['push'](_0x5a255b['shift']());}}}(a70_0x2ddb,0x81dd9));function a70_0x1d03(_0x20b6c9,_0x5010a6){const _0x2ddb64=a70_0x2ddb();return a70_0x1d03=function(_0x1d03c4,_0x385503){_0x1d03c4=_0x1d03c4-0x10b;let _0x4078b4=_0x2ddb64[_0x1d03c4];return _0x4078b4;},a70_0x1d03(_0x20b6c9,_0x5010a6);}const fs=require('fs'),path=require(a70_0x3e320f(0x14f)),{TEMP_STORE_DIR_NAME}=require('../../helpers/test-observability/constants'),{nestedKeyValue}=require('../../helpers/helper'),logger=require('../../helpers/logger')['winstonLogger'],util=require('util'),helper=require(a70_0x3e320f(0x189)),{createClassLogger}=require(a70_0x3e320f(0x10f)),lockfile=require(a70_0x3e320f(0x174)),{v4:uuidv4}=require('uuid');class TestInfo{static [a70_0x3e320f(0x12e)]={};static ['dirPath']=TestInfo[a70_0x3e320f(0x13a)]();static [a70_0x3e320f(0x136)]=path[a70_0x3e320f(0x144)](TestInfo[a70_0x3e320f(0x118)],a70_0x3e320f(0x125));static [a70_0x3e320f(0x10d)]=null;[a70_0x3e320f(0x166)]=createClassLogger('TestInfo');static[a70_0x3e320f(0x17e)](_0x38869b){const _0x4402e0=a70_0x3e320f,_0x7a6772={};_0x7a6772[_0x4402e0(0x169)]=_0x4402e0(0x122),_0x7a6772[_0x4402e0(0x18e)]=_0x4402e0(0x125);const _0x571c73=_0x7a6772,_0x25ad46=_0x571c73[_0x4402e0(0x169)][_0x4402e0(0x170)]('|');let _0x1e174b=0x0;while(!![]){switch(_0x25ad46[_0x1e174b++]){case'0':this['shutdown']();continue;case'1':this[_0x4402e0(0x10d)]=_0x38869b;continue;case'2':const _0x1dc9a9={};_0x1dc9a9[_0x4402e0(0x151)]=!![],fs[_0x4402e0(0x14b)](this['dirPath'],_0x1dc9a9);continue;case'3':this[_0x4402e0(0x118)]=TestInfo[_0x4402e0(0x13a)]();continue;case'4':logger['info'](_0x4402e0(0x191)+this['dirPath']);continue;case'5':const _0x16e39f={};_0x16e39f['recursive']=!![],fs[_0x4402e0(0x14b)](this[_0x4402e0(0x136)],_0x16e39f);continue;case'6':this[_0x4402e0(0x136)]=path[_0x4402e0(0x144)](this[_0x4402e0(0x118)],_0x571c73['hmseo']);continue;}break;}}static[a70_0x3e320f(0x13a)](){const _0x32f82a=a70_0x3e320f,_0x2fa22a={};_0x2fa22a[_0x32f82a(0x154)]=function(_0x33d713,_0x3bbdf4){return _0x33d713+_0x3bbdf4;},_0x2fa22a[_0x32f82a(0x153)]=_0x32f82a(0x137);const _0x21d441=_0x2fa22a;return _0x21d441[_0x32f82a(0x154)](_0x21d441[_0x32f82a(0x154)](TEMP_STORE_DIR_NAME,'-'),process[_0x32f82a(0x143)]['BS_TESTOPS_BUILD_HASHED_ID']||_0x21d441[_0x32f82a(0x153)]);}static[a70_0x3e320f(0x17a)](){const _0x4279b2=a70_0x3e320f,_0x304894={};_0x304894['KZhcG']=function(_0x4a4724,_0x34002f){return _0x4a4724+_0x34002f;},_0x304894[_0x4279b2(0x129)]=function(_0x17242f,_0x317055){return _0x17242f+_0x317055;},_0x304894[_0x4279b2(0x17d)]='default';const _0x2e163b=_0x304894;return path[_0x4279b2(0x144)](_0x2e163b[_0x4279b2(0x130)](_0x2e163b[_0x4279b2(0x129)](TEMP_STORE_DIR_NAME,'-'),process['env'][_0x4279b2(0x111)]||_0x2e163b[_0x4279b2(0x17d)]));}static[a70_0x3e320f(0x134)](){const _0x49125d=a70_0x3e320f,_0x48833a={};_0x48833a['uQCdR']=_0x49125d(0x125);const _0x2dd811=_0x48833a;return path[_0x49125d(0x144)](this['getStoreDirPath'](),_0x2dd811[_0x49125d(0x165)]);}static[a70_0x3e320f(0x135)](_0x1919c5){const _0x350484=a70_0x3e320f,_0x17a2aa={};_0x17a2aa['uNkLZ']=function(_0x1ce350,_0x246e2a){return _0x1ce350+_0x246e2a;},_0x17a2aa[_0x350484(0x14a)]=_0x350484(0x163);const _0x5897ed=_0x17a2aa;return path[_0x350484(0x144)](this['dirPath'],_0x5897ed[_0x350484(0x18f)](_0x1919c5,_0x5897ed[_0x350484(0x14a)]));}static[a70_0x3e320f(0x12a)](_0x26c4ff){const _0x5f5d7c=a70_0x3e320f,_0x20aa65={};_0x20aa65[_0x5f5d7c(0x14d)]=function(_0x2a3f0c,_0x1bb31c){return _0x2a3f0c+_0x1bb31c;},_0x20aa65[_0x5f5d7c(0x11d)]=function(_0x52784e,_0x4eb8bf){return _0x52784e+_0x4eb8bf;},_0x20aa65[_0x5f5d7c(0x15d)]=function(_0x8baa0a,_0x2090eb){return _0x8baa0a+_0x2090eb;};const _0x45b210=_0x20aa65;return _0x45b210[_0x5f5d7c(0x14d)](_0x45b210[_0x5f5d7c(0x11d)](_0x45b210['MQYSt'](_0x45b210[_0x5f5d7c(0x15d)](this[_0x5f5d7c(0x113)](_0x26c4ff),'-'),this['getTestIdFromTestInfo'](_0x26c4ff)),'-'),_0x26c4ff[_0x5f5d7c(0x167)]);}static[a70_0x3e320f(0x113)](_0x3b2828){const _0x481c92=a70_0x3e320f,_0x451669={'rdDQw':function(_0x46f90b,_0x56feef,_0x4d54bb){return _0x46f90b(_0x56feef,_0x4d54bb);},'emyYL':_0x481c92(0x147),'XihHu':_0x481c92(0x17f),'KJfFK':function(_0x57f733,_0x3a14cb,_0x34880a){return _0x57f733(_0x3a14cb,_0x34880a);},'kVZZc':_0x481c92(0x190),'gXDXA':_0x481c92(0x175)};return _0x451669[_0x481c92(0x159)](nestedKeyValue,_0x3b2828,[_0x451669[_0x481c92(0x15c)],_0x451669[_0x481c92(0x14c)]])||_0x451669['KJfFK'](nestedKeyValue,_0x3b2828,[_0x451669[_0x481c92(0x177)],_0x451669[_0x481c92(0x142)]]);}static[a70_0x3e320f(0x179)](_0xdfa5bd){const _0x562f97=a70_0x3e320f,_0x5bf63e={'xpAAu':function(_0x29ab1e,_0x11af86,_0x4658cd){return _0x29ab1e(_0x11af86,_0x4658cd);},'pkzIZ':_0x562f97(0x147)};return _0x5bf63e[_0x562f97(0x112)](nestedKeyValue,_0xdfa5bd,[_0x5bf63e[_0x562f97(0x15e)],'id'])||_0xdfa5bd[_0x562f97(0x18b)];}static[a70_0x3e320f(0x16f)](_0x35e70e,_0x5aa3c7){const _0x34b20e=a70_0x3e320f,_0x2636eb={};_0x2636eb[_0x34b20e(0x120)]=function(_0xf8f63b,_0x27306d){return _0xf8f63b+_0x27306d;},_0x2636eb['SHCth']=function(_0x2762c3,_0x400f54){return _0x2762c3+_0x400f54;};const _0x231dcb=_0x2636eb;return _0x231dcb[_0x34b20e(0x120)](_0x231dcb[_0x34b20e(0x141)](this[_0x34b20e(0x179)](_0x35e70e),'-'),_0x5aa3c7);}static['getTestUUID'](_0x17e845){const _0xe0dfc=a70_0x3e320f,_0x44dcbb={'lHZqZ':function(_0x12bee1,_0x50d5de){return _0x12bee1===_0x50d5de;},'cQnPE':'string','ieORO':function(_0x47afce){return _0x47afce();}};try{if(this[_0xe0dfc(0x12e)][_0x17e845]&&_0x44dcbb[_0xe0dfc(0x15b)](typeof this[_0xe0dfc(0x12e)][_0x17e845][_0xe0dfc(0x124)],_0x44dcbb[_0xe0dfc(0x172)]))return this[_0xe0dfc(0x12e)][_0x17e845][_0xe0dfc(0x124)];const _0x13f91b=this[_0xe0dfc(0x135)](_0x17e845),_0x54c97d=path['resolve'](_0x13f91b);if(fs[_0xe0dfc(0x131)](_0x54c97d)){const _0x5a3b0c=JSON[_0xe0dfc(0x16d)](fs[_0xe0dfc(0x173)](_0x13f91b)['toString']());return this[_0xe0dfc(0x12e)][_0x17e845]=_0x5a3b0c,this[_0xe0dfc(0x12e)][_0x17e845][_0xe0dfc(0x124)];}this[_0xe0dfc(0x12e)][_0x17e845]={'uuid':_0x44dcbb[_0xe0dfc(0x171)](uuidv4)};try{fs['writeFileSync'](_0x13f91b,JSON[_0xe0dfc(0x150)](this[_0xe0dfc(0x12e)][_0x17e845]));}catch(_0x4fae3e){logger[_0xe0dfc(0x183)](_0xe0dfc(0x13f)+_0x17e845+':\x20'+_0x4fae3e[_0xe0dfc(0x145)]);}return this['tests'][_0x17e845][_0xe0dfc(0x124)];}catch(_0x46ccf5){return logger[_0xe0dfc(0x183)](_0xe0dfc(0x126)+_0x17e845+':\x20'+_0x46ccf5[_0xe0dfc(0x145)]),null;}}static[a70_0x3e320f(0x18a)](_0x5f3824){const _0x2b3f8f=a70_0x3e320f,_0x12005b=path[_0x2b3f8f(0x144)](this[_0x2b3f8f(0x118)],_0x5f3824+_0x2b3f8f(0x11e));if(fs['existsSync'](_0x12005b))return fs['readFileSync'](_0x12005b)[_0x2b3f8f(0x149)]();}static['setAccessibilityPlatformValidation'](_0x957eed,_0x286ef6){const _0x3a75de=a70_0x3e320f,_0x261683=path[_0x3a75de(0x144)](this[_0x3a75de(0x118)],_0x286ef6+_0x3a75de(0x11e));fs[_0x3a75de(0x160)](_0x261683,_0x957eed[_0x3a75de(0x149)]());}static[a70_0x3e320f(0x10e)](){const _0x22b9e=a70_0x3e320f,_0x5bb98f={};_0x5bb98f[_0x22b9e(0x151)]=!![],_0x5bb98f['force']=!![],fs[_0x22b9e(0x12f)](this[_0x22b9e(0x118)],_0x5bb98f);}static['getTestDetails'](_0x5aa93c){const _0x3e1b26=a70_0x3e320f,_0x3d37c3=this[_0x3e1b26(0x135)](_0x5aa93c);if(fs['existsSync'](_0x3d37c3))try{const _0x53c121=JSON[_0x3e1b26(0x16d)](fs['readFileSync'](_0x3d37c3)[_0x3e1b26(0x149)]());return this[_0x3e1b26(0x12e)][_0x5aa93c]=_0x53c121,_0x53c121;}catch(_0x2a6d4f){return logger[_0x3e1b26(0x16a)](_0x3e1b26(0x13b)+_0x3d37c3+':\x20'+util[_0x3e1b26(0x13e)](_0x2a6d4f)+_0x3e1b26(0x132)),{};}return{};}static[a70_0x3e320f(0x16c)](_0x1cbcde,_0x451cbb,_0x4a3298=![]){const _0x4fa428=a70_0x3e320f,_0x26c759={'uwFkg':function(_0x5564ca){return _0x5564ca();}};logger[_0x4fa428(0x16a)](_0x4fa428(0x110)+process['pid']+'\x20Setting\x20test\x20details\x20for\x20'+_0x1cbcde+'\x20with\x20details:\x20'+JSON[_0x4fa428(0x150)](_0x451cbb));const _0x2f798d=this[_0x4fa428(0x135)](_0x1cbcde);if(fs['existsSync'](_0x2f798d))try{const _0x8bc8ae=lockfile[_0x4fa428(0x13c)](_0x2f798d),_0x28160b=JSON[_0x4fa428(0x16d)](fs['readFileSync'](_0x2f798d)['toString']());if(_0x4a3298)this['tests'][_0x1cbcde]=helper[_0x4fa428(0x11f)](_0x28160b,_0x451cbb);else{const _0x26054e={..._0x28160b,..._0x451cbb};this['tests'][_0x1cbcde]=_0x26054e;}fs[_0x4fa428(0x160)](_0x2f798d,JSON[_0x4fa428(0x150)](this[_0x4fa428(0x12e)][_0x1cbcde])),_0x26c759['uwFkg'](_0x8bc8ae);}catch(_0x38f3eb){logger[_0x4fa428(0x16a)](_0x4fa428(0x13b)+_0x2f798d+':\x20'+util[_0x4fa428(0x13e)](_0x38f3eb)+_0x4fa428(0x123));}}static[a70_0x3e320f(0x128)](_0x51bf58,_0x217167){const _0xdbeaad=a70_0x3e320f,_0x133465={'OxQbL':function(_0x2b33d0,_0x3e0cad){return _0x2b33d0!==_0x3e0cad;},'PSOkx':_0xdbeaad(0x11a),'GcrZg':function(_0x2f2b1d){return _0x2f2b1d();}};logger[_0xdbeaad(0x16a)]('storeLogObjects:\x20processId:\x20'+process[_0xdbeaad(0x152)]+'\x20Adding\x20console\x20log\x20for\x20'+_0x51bf58+'}');const _0x50f711=this[_0xdbeaad(0x135)](_0x51bf58);try{let _0x13f818={};if(fs[_0xdbeaad(0x131)](_0x50f711)){const _0x10b1e5=lockfile[_0xdbeaad(0x13c)](_0x50f711);_0x13f818=JSON[_0xdbeaad(0x16d)](fs[_0xdbeaad(0x173)](_0x50f711)[_0xdbeaad(0x149)]()),(!_0x13f818['logObjects']||_0x133465[_0xdbeaad(0x176)](typeof _0x13f818[_0xdbeaad(0x119)],_0x133465[_0xdbeaad(0x16b)]))&&(_0x13f818['logObjects']={}),(!_0x13f818[_0xdbeaad(0x119)][_0x51bf58]||!Array[_0xdbeaad(0x121)](_0x13f818['logObjects'][_0x51bf58]))&&(_0x13f818['logObjects'][_0x51bf58]=[]),_0x13f818[_0xdbeaad(0x119)][_0x51bf58]['push'](_0x217167),this[_0xdbeaad(0x12e)][_0x51bf58]=_0x13f818,fs[_0xdbeaad(0x160)](_0x50f711,JSON[_0xdbeaad(0x150)](this['tests'][_0x51bf58])),_0x133465[_0xdbeaad(0x180)](_0x10b1e5);}else{const _0x54af14={};_0x54af14[_0xdbeaad(0x124)]=_0x51bf58,_0x54af14[_0xdbeaad(0x119)]={},_0x54af14[_0xdbeaad(0x119)][_0x51bf58]=[_0x217167],_0x13f818=_0x54af14,this[_0xdbeaad(0x12e)][_0x51bf58]=_0x13f818,fs[_0xdbeaad(0x160)](_0x50f711,JSON[_0xdbeaad(0x150)](this[_0xdbeaad(0x12e)][_0x51bf58]));}}catch(_0x4bb902){logger[_0xdbeaad(0x16a)](_0xdbeaad(0x13b)+_0x50f711+':\x20'+util[_0xdbeaad(0x13e)](_0x4bb902)+_0xdbeaad(0x116));}}static['readLogObjects'](_0x21f018){const _0x33437f=a70_0x3e320f,_0x5d65c4={'AedBR':function(_0x2a9dfb,_0x325239){return _0x2a9dfb!==_0x325239;},'dChOR':_0x33437f(0x11a),'eZEvF':function(_0x444e9f){return _0x444e9f();},'aYkXF':function(_0x182f91,_0x3ef029){return _0x182f91===_0x3ef029;}};logger[_0x33437f(0x16a)](_0x33437f(0x127)+process[_0x33437f(0x152)]+'\x20Retrieving\x20logs\x20for\x20'+_0x21f018);const _0x49ddd8=this[_0x33437f(0x135)](_0x21f018);try{if(!fs[_0x33437f(0x131)](_0x49ddd8))return logger[_0x33437f(0x16a)](_0x33437f(0x11b)+_0x21f018),[];const _0x3d8580=lockfile['lockSync'](_0x49ddd8),_0x84cb4e=JSON[_0x33437f(0x16d)](fs[_0x33437f(0x173)](_0x49ddd8)[_0x33437f(0x149)]());if(!_0x84cb4e[_0x33437f(0x119)]||_0x5d65c4[_0x33437f(0x168)](typeof _0x84cb4e[_0x33437f(0x119)],_0x5d65c4['dChOR']))return logger[_0x33437f(0x16a)]('readLogObjects:\x20No\x20logObjects\x20object\x20found\x20for\x20testId:\x20'+_0x21f018),_0x5d65c4[_0x33437f(0x114)](_0x3d8580),[];if(!_0x84cb4e[_0x33437f(0x119)][_0x21f018]||!Array[_0x33437f(0x121)](_0x84cb4e[_0x33437f(0x119)][_0x21f018])||_0x5d65c4[_0x33437f(0x193)](_0x84cb4e[_0x33437f(0x119)][_0x21f018][_0x33437f(0x15a)],0x0))return logger[_0x33437f(0x16a)](_0x33437f(0x12b)+_0x21f018),_0x5d65c4[_0x33437f(0x114)](_0x3d8580),[];const _0x33fe7b=[..._0x84cb4e[_0x33437f(0x119)][_0x21f018]];return logger['debug'](_0x33437f(0x192)+_0x33fe7b[_0x33437f(0x15a)]+_0x33437f(0x138)+_0x21f018),_0x84cb4e['logObjects'][_0x21f018]=[],this[_0x33437f(0x12e)][_0x21f018]=_0x84cb4e,fs['writeFileSync'](_0x49ddd8,JSON['stringify'](this[_0x33437f(0x12e)][_0x21f018])),_0x5d65c4[_0x33437f(0x114)](_0x3d8580),_0x33fe7b;}catch(_0x2f1662){return logger[_0x33437f(0x16a)](_0x33437f(0x13b)+_0x49ddd8+':\x20'+util[_0x33437f(0x13e)](_0x2f1662)+'.\x20Unable\x20to\x20retrieve\x20log\x20objects.'),[];}}static[a70_0x3e320f(0x18d)](_0x367944){const _0x288284=a70_0x3e320f,_0x3b64be={};_0x3b64be[_0x288284(0x182)]=_0x288284(0x158);const _0x10346c=_0x3b64be;try{const _0x24f909=process[_0x288284(0x152)],_0x895178=path[_0x288284(0x144)](TestInfo['getTraceZipDir'](),_0x24f909+_0x288284(0x17c));let _0x532e84=[];fs[_0x288284(0x131)](_0x895178)&&(_0x532e84=JSON[_0x288284(0x16d)](fs[_0x288284(0x173)](_0x895178)[_0x288284(0x149)]()));if(!_0x532e84['some'](_0x346ee7=>_0x346ee7[_0x288284(0x12d)]===_0x367944[_0x288284(0x12d)])){_0x532e84[_0x288284(0x185)](_0x367944);const _0x7794dd=path[_0x288284(0x133)](_0x895178);if(!fs['existsSync'](_0x7794dd)){const _0x5c04ce={};_0x5c04ce[_0x288284(0x151)]=!![],fs[_0x288284(0x14b)](_0x7794dd,_0x5c04ce);}fs[_0x288284(0x160)](_0x895178,JSON[_0x288284(0x150)](_0x532e84));}}catch(_0x3a41be){logger['error'](util[_0x288284(0x13e)](_0x10346c[_0x288284(0x182)],_0x3a41be));}}static[a70_0x3e320f(0x164)](){const _0x4b5e8a=a70_0x3e320f,_0x42f48f={};_0x42f48f[_0x4b5e8a(0x17b)]='_traceZipPaths.json',_0x42f48f[_0x4b5e8a(0x18c)]=_0x4b5e8a(0x11c);const _0x369f04=_0x42f48f,_0x40aec1=[];try{const _0x9da93b=TestInfo[_0x4b5e8a(0x134)]();if(!fs[_0x4b5e8a(0x131)](_0x9da93b))return _0x40aec1;const _0x4e8be5=fs[_0x4b5e8a(0x162)](_0x9da93b);_0x4e8be5[_0x4b5e8a(0x115)](_0x51a55b=>{const _0x153bd3=_0x4b5e8a;if(_0x51a55b[_0x153bd3(0x12c)](_0x369f04[_0x153bd3(0x17b)])){const _0x3593e4=JSON[_0x153bd3(0x16d)](fs[_0x153bd3(0x173)](path['join'](_0x9da93b,_0x51a55b))['toString']());_0x40aec1[_0x153bd3(0x185)](..._0x3593e4);}});}catch(_0x43a950){logger[_0x4b5e8a(0x183)](util['format'](_0x369f04[_0x4b5e8a(0x18c)],_0x43a950));}const _0x548e63={};return _0x40aec1[_0x4b5e8a(0x115)](_0x1a79fc=>{const _0x218b52=_0x4b5e8a;_0x548e63[_0x1a79fc[_0x218b52(0x12d)]]=_0x1a79fc;}),Object[_0x4b5e8a(0x187)](_0x548e63);}static[a70_0x3e320f(0x188)](_0x333ffc,_0x4ada2b){const _0x3ca960=a70_0x3e320f,_0x5e4812={};_0x5e4812['VizAb']='.browserstack',_0x5e4812[_0x3ca960(0x10b)]=_0x3ca960(0x181),_0x5e4812['msCOb']=_0x3ca960(0x14e);const _0x4e98bd=_0x5e4812;try{const _0x570415=path[_0x3ca960(0x144)](helper[_0x3ca960(0x157)](),_0x4e98bd[_0x3ca960(0x13d)]);if(!fs[_0x3ca960(0x131)](_0x570415)){const _0x236acf={};_0x236acf[_0x3ca960(0x151)]=!![],fs[_0x3ca960(0x14b)](_0x570415,_0x236acf);}fs[_0x3ca960(0x146)](path[_0x3ca960(0x144)](_0x570415,'trace_'+_0x4ada2b+_0x3ca960(0x184)),_0x333ffc+'\x0a',_0x4e98bd[_0x3ca960(0x10b)]);}catch(_0x82d813){logger['error'](util['format'](_0x4e98bd['msCOb'],_0x82d813));}}}module[a70_0x3e320f(0x148)]=TestInfo;function a70_0x2ddb(){const _0x1f3083=['shutdown','../../helpers/classLogger.js','[setTestDetails]\x20processId:\x20','BS_TESTOPS_BUILD_HASHED_ID','xpAAu','getProjectIdFromTestInfo','eZEvF','forEach','.\x20Unable\x20to\x20add\x20console\x20log.','1694USQJdM','dirPath','logObjects','object','readLogObjects:\x20No\x20file\x20found\x20for\x20testId:\x20','Error\x20reading\x20trace\x20file\x20paths:\x20%O','MQYSt','_platformDetails.json','mergeDeep','rnHkj','isArray','3|6|1|0|2|5|4','.\x20Unable\x20to\x20set\x20test\x20details.','uuid','traceZipPaths','Error\x20while\x20getting\x20test\x20UUID\x20for\x20','readLogObjects:\x20processId:\x20','storeLogObjects','JVyGB','getTestRunIdFromTestInfo','readLogObjects:\x20No\x20log\x20objects\x20found\x20for\x20testId:\x20','endsWith','filePath','tests','rmSync','KZhcG','existsSync','.\x20Returning\x20empty\x20test\x20details.','dirname','getTraceZipDir','getFilePath','traceZipDir','default','\x20log\x20objects\x20for\x20testId:\x20','5FFsBax','getStoreDirName','Failed\x20to\x20acquire\x20lock\x20for\x20','lockSync','VizAb','format','Error\x20writing\x20test\x20details\x20to\x20file\x20for\x20','1719500cXurRN','SHCth','gXDXA','env','join','message','appendFileSync','_test','exports','toString','SKJCt','mkdirSync','XihHu','DIqjb','Error\x20writing\x20trace\x20file:\x20%O','path','stringify','recursive','pid','QsrzQ','mUEAD','1277482gJfCAg','1892208JwPKtV','homedir','Error\x20handling\x20trace\x20file\x20paths:\x20%O','rdDQw','length','lHZqZ','emyYL','CYqPx','pkzIZ','6024hANjjN','writeFileSync','232gfMyzE','readdirSync','.json','getTraceFilePaths','uQCdR','logger','retry','AedBR','tVTpD','debug','PSOkx','setTestDetails','parse','119205ShIfxS','getTestIdentifierFromTestInfo','split','ieORO','cQnPE','readFileSync','proper-lockfile','__projectId','OxQbL','kVZZc','9054705TWvMiF','getTestIdFromTestInfo','getStoreDirPath','JmrQB','_traceZipPaths.json','bQRXL','setup','_projectId','GcrZg','utf8','DxcpW','error','.txt','push','1AErOjb','values','appendToTracePaths','../../helpers/helper','getAccessibilityPlatformValidation','testId','BczPF','addTraceFilePath','hmseo','uNkLZ','project','Setting\x20up\x20TestInfo\x20directory\x20at\x20','readLogObjects:\x20Retrieved\x20','aYkXF','OziLx','1278306ucoXxq','testFramework'];a70_0x2ddb=function(){return _0x1f3083;};return a70_0x2ddb();}
|
|
1
|
+
function a70_0x29a8(_0x4f0c75,_0x4c927e){const _0x57ce67=a70_0x57ce();return a70_0x29a8=function(_0x29a885,_0xde444f){_0x29a885=_0x29a885-0x9e;let _0x4f48ff=_0x57ce67[_0x29a885];return _0x4f48ff;},a70_0x29a8(_0x4f0c75,_0x4c927e);}function a70_0x57ce(){const _0x1dba2c=['testFramework','setAccessibilityPlatformValidation','aPxZm','1ALNKTJ','traceZipPaths','ZMOkm','filePath','retry','shutdown','readLogObjects:\x20No\x20logObjects\x20object\x20found\x20for\x20testId:\x20','Error\x20writing\x20test\x20details\x20to\x20file\x20for\x20','existsSync','proper-lockfile','values','testId','\x20Adding\x20console\x20log\x20for\x20','aQypI','UBKin','info','../../helpers/test-observability/constants','message','../../helpers/helper','21mJBTPn','Failed\x20to\x20acquire\x20lock\x20for\x20','4|5|3|6|1|2|0','winstonLogger','KtEAb','resolve','KsCwL','YIqfr','1582240JFmQQr','XZwmL','tgeMz','toString','_traceZipPaths.json','\x20with\x20details:\x20','406998legZtt','egtxW','length','BRvSr','VSdUV','lockSync','DBhvc','Error\x20writing\x20trace\x20file:\x20%O','homedir','object','pid','reFTQ','436DViWVI','traceZipDir','getTestRunIdFromTestInfo','setup','getTestDetails','recursive','TestInfo','getTestIdentifierFromTestInfo','.txt','getProjectIdFromTestInfo','join','gFOoa','string','utf8','UjSoo','../../helpers/classLogger.js','Error\x20while\x20getting\x20test\x20UUID\x20for\x20','325642SnVKkT','storeLogObjects:\x20processId:\x20','readLogObjects:\x20processId:\x20','env','lBdnH','getAccessibilityPlatformValidation','honYA','.\x20Returning\x20empty\x20test\x20details.','debug','McxrY','.\x20Unable\x20to\x20retrieve\x20log\x20objects.','readdirSync','rFsfi','logger','PqaIh','IRezb','readLogObjects:\x20Retrieved\x20','\x20Setting\x20test\x20details\x20for\x20','_test','getTraceZipDir','690405kbqrIN','getTraceFilePaths','Pfaey','ocTGw','3623724DzwraH','project','default','readLogObjects:\x20No\x20file\x20found\x20for\x20testId:\x20','eiQeq','endsWith','logObjects','trace_','qepwO','parse','jiFpf','wBxrH','path','pMUDg','XjkEj','error','.json','_projectId','yzDXm','getStoreDirPath','uuid','Nwmca','5202uSGToy','sMAgg','getTestIdFromTestInfo','addTraceFilePath','stringify','PLoNb','tests','readLogObjects:\x20No\x20log\x20objects\x20found\x20for\x20testId:\x20','_platformDetails.json','isArray','push','2778472SBTDoO','getTestUUID','getStoreDirName','format','JpBvP','dirPath','forEach','mergeDeep','.browserstack','writeFileSync','getFilePath','mkdirSync','readFileSync','zZfYf','split'];a70_0x57ce=function(){return _0x1dba2c;};return a70_0x57ce();}const a70_0x161570=a70_0x29a8;(function(_0x21ecae,_0x476449){const _0x5bfead=a70_0x29a8,_0x104826=_0x21ecae();while(!![]){try{const _0x44f84f=-parseInt(_0x5bfead(0xdd))/0x1*(-parseInt(_0x5bfead(0x11b))/0x2)+parseInt(_0x5bfead(0xc0))/0x3*(parseInt(_0x5bfead(0x10a))/0x4)+-parseInt(_0x5bfead(0xa6))/0x5+parseInt(_0x5bfead(0xfe))/0x6*(-parseInt(_0x5bfead(0xf0))/0x7)+-parseInt(_0x5bfead(0xcb))/0x8+parseInt(_0x5bfead(0xaa))/0x9+parseInt(_0x5bfead(0xf8))/0xa;if(_0x44f84f===_0x476449)break;else _0x104826['push'](_0x104826['shift']());}catch(_0x6103a2){_0x104826['push'](_0x104826['shift']());}}}(a70_0x57ce,0x36a36));const fs=require('fs'),path=require(a70_0x161570(0xb6)),{TEMP_STORE_DIR_NAME}=require(a70_0x161570(0xed)),{nestedKeyValue}=require(a70_0x161570(0xef)),logger=require('../../helpers/logger')[a70_0x161570(0xf3)],util=require('util'),helper=require(a70_0x161570(0xef)),{createClassLogger}=require(a70_0x161570(0x119)),lockfile=require(a70_0x161570(0xe6)),{v4:uuidv4}=require(a70_0x161570(0xbe));class TestInfo{static [a70_0x161570(0xc6)]={};static [a70_0x161570(0xd0)]=TestInfo[a70_0x161570(0xcd)]();static [a70_0x161570(0x10b)]=path[a70_0x161570(0x114)](TestInfo[a70_0x161570(0xd0)],a70_0x161570(0xde));static [a70_0x161570(0xda)]=null;[a70_0x161570(0x9f)]=createClassLogger(a70_0x161570(0x110));static[a70_0x161570(0x10d)](_0x6cc02b){const _0x141f7f=a70_0x161570,_0x3a7f1b={};_0x3a7f1b[_0x141f7f(0x109)]=_0x141f7f(0xf2),_0x3a7f1b['XjkEj']='traceZipPaths';const _0x536e9e=_0x3a7f1b,_0x388e36=_0x536e9e['reFTQ'][_0x141f7f(0xd9)]('|');let _0x176bb0=0x0;while(!![]){switch(_0x388e36[_0x176bb0++]){case'0':logger[_0x141f7f(0xec)]('Setting\x20up\x20TestInfo\x20directory\x20at\x20'+this[_0x141f7f(0xd0)]);continue;case'1':const _0x2d1dce={};_0x2d1dce['recursive']=!![],fs['mkdirSync'](this['dirPath'],_0x2d1dce);continue;case'2':const _0x47f0c9={};_0x47f0c9['recursive']=!![],fs[_0x141f7f(0xd6)](this[_0x141f7f(0x10b)],_0x47f0c9);continue;case'3':this[_0x141f7f(0xda)]=_0x6cc02b;continue;case'4':this['dirPath']=TestInfo[_0x141f7f(0xcd)]();continue;case'5':this[_0x141f7f(0x10b)]=path['join'](this[_0x141f7f(0xd0)],_0x536e9e[_0x141f7f(0xb8)]);continue;case'6':this[_0x141f7f(0xe2)]();continue;}break;}}static[a70_0x161570(0xcd)](){const _0x50d0e1=a70_0x161570,_0x2f659c={};_0x2f659c[_0x50d0e1(0xf7)]=function(_0x1f0c7b,_0x5c750c){return _0x1f0c7b+_0x5c750c;},_0x2f659c[_0x50d0e1(0x118)]=function(_0x632c22,_0x50f916){return _0x632c22+_0x50f916;},_0x2f659c[_0x50d0e1(0xb7)]=_0x50d0e1(0xac);const _0x4b7a83=_0x2f659c;return _0x4b7a83['YIqfr'](_0x4b7a83['UjSoo'](TEMP_STORE_DIR_NAME,'-'),process[_0x50d0e1(0x11e)]['BS_TESTOPS_BUILD_HASHED_ID']||_0x4b7a83['pMUDg']);}static[a70_0x161570(0xbd)](){const _0x26774d=a70_0x161570,_0x4f4a6d={};_0x4f4a6d['zZfYf']=function(_0x99dc9e,_0x5b9ad5){return _0x99dc9e+_0x5b9ad5;},_0x4f4a6d['KsCwL']=function(_0x2f283c,_0x2a18be){return _0x2f283c+_0x2a18be;},_0x4f4a6d[_0x26774d(0xdf)]='default';const _0x43bf87=_0x4f4a6d;return path[_0x26774d(0x114)](_0x43bf87[_0x26774d(0xd8)](_0x43bf87[_0x26774d(0xf6)](TEMP_STORE_DIR_NAME,'-'),process[_0x26774d(0x11e)]['BS_TESTOPS_BUILD_HASHED_ID']||_0x43bf87[_0x26774d(0xdf)]));}static[a70_0x161570(0xa5)](){const _0xb0adf=a70_0x161570,_0x33707e={};_0x33707e[_0xb0adf(0xdc)]=_0xb0adf(0xde);const _0x5a453d=_0x33707e;return path['join'](this['getStoreDirPath'](),_0x5a453d[_0xb0adf(0xdc)]);}static[a70_0x161570(0xd5)](_0x3ce2d4){const _0x2723be=a70_0x161570,_0x30fc8c={};_0x30fc8c['wBxrH']=function(_0xffd600,_0x102e82){return _0xffd600+_0x102e82;},_0x30fc8c[_0x2723be(0x104)]=_0x2723be(0xba);const _0x11a246=_0x30fc8c;return path[_0x2723be(0x114)](this[_0x2723be(0xd0)],_0x11a246[_0x2723be(0xb5)](_0x3ce2d4,_0x11a246['DBhvc']));}static[a70_0x161570(0x10c)](_0x17cdb9){const _0x525eac=a70_0x161570,_0x273419={};_0x273419[_0x525eac(0xa0)]=function(_0x5cda3f,_0x32879c){return _0x5cda3f+_0x32879c;},_0x273419['hiYUO']=function(_0x125e4a,_0xdd04f3){return _0x125e4a+_0xdd04f3;},_0x273419['XZwmL']=function(_0x5a7545,_0x1b87a1){return _0x5a7545+_0x1b87a1;};const _0x344e3e=_0x273419;return _0x344e3e['PqaIh'](_0x344e3e[_0x525eac(0xa0)](_0x344e3e['hiYUO'](_0x344e3e[_0x525eac(0xf9)](this[_0x525eac(0x113)](_0x17cdb9),'-'),this[_0x525eac(0xc2)](_0x17cdb9)),'-'),_0x17cdb9[_0x525eac(0xe1)]);}static[a70_0x161570(0x113)](_0x26bace){const _0x42d4ae=a70_0x161570,_0x184558={'UBKin':function(_0x19377a,_0x171372,_0x5e4161){return _0x19377a(_0x171372,_0x5e4161);},'wHyZo':'_test','Pfaey':_0x42d4ae(0xbb),'VSdUV':function(_0x40f6f4,_0xd57652,_0x5625ec){return _0x40f6f4(_0xd57652,_0x5625ec);},'cupEY':_0x42d4ae(0xab),'tgeMz':'__projectId'};return _0x184558[_0x42d4ae(0xeb)](nestedKeyValue,_0x26bace,[_0x184558['wHyZo'],_0x184558[_0x42d4ae(0xa8)]])||_0x184558[_0x42d4ae(0x102)](nestedKeyValue,_0x26bace,[_0x184558['cupEY'],_0x184558[_0x42d4ae(0xfa)]]);}static[a70_0x161570(0xc2)](_0x189858){const _0x499a41=a70_0x161570,_0x3f5fa8={'IRezb':function(_0x22e835,_0xc972ab,_0x3c4e35){return _0x22e835(_0xc972ab,_0x3c4e35);},'gFOoa':_0x499a41(0xa4)};return _0x3f5fa8[_0x499a41(0xa1)](nestedKeyValue,_0x189858,[_0x3f5fa8[_0x499a41(0x115)],'id'])||_0x189858[_0x499a41(0xe8)];}static[a70_0x161570(0x111)](_0x43919b,_0x3d58b9){const _0x345370=a70_0x161570,_0x2d29a4={};_0x2d29a4[_0x345370(0x121)]=function(_0x5346af,_0x224d2c){return _0x5346af+_0x224d2c;},_0x2d29a4[_0x345370(0xc1)]=function(_0x59228b,_0x29d347){return _0x59228b+_0x29d347;};const _0x5503ff=_0x2d29a4;return _0x5503ff[_0x345370(0x121)](_0x5503ff['sMAgg'](this['getTestIdFromTestInfo'](_0x43919b),'-'),_0x3d58b9);}static[a70_0x161570(0xcc)](_0x2858ba){const _0x2d639f=a70_0x161570,_0x19f443={'aQypI':function(_0x1100ca,_0x24d1fa){return _0x1100ca===_0x24d1fa;},'Nwmca':_0x2d639f(0x116),'IBJJL':function(_0x5b37ea){return _0x5b37ea();}};try{if(this['tests'][_0x2858ba]&&_0x19f443[_0x2d639f(0xea)](typeof this['tests'][_0x2858ba][_0x2d639f(0xbe)],_0x19f443[_0x2d639f(0xbf)]))return this[_0x2d639f(0xc6)][_0x2858ba][_0x2d639f(0xbe)];const _0x1efdc5=this[_0x2d639f(0xd5)](_0x2858ba),_0x22d29e=path[_0x2d639f(0xf5)](_0x1efdc5);if(fs[_0x2d639f(0xe5)](_0x22d29e)){const _0x2087d7=JSON[_0x2d639f(0xb3)](fs[_0x2d639f(0xd7)](_0x1efdc5)[_0x2d639f(0xfb)]());return this[_0x2d639f(0xc6)][_0x2858ba]=_0x2087d7,this['tests'][_0x2858ba]['uuid'];}this[_0x2d639f(0xc6)][_0x2858ba]={'uuid':_0x19f443['IBJJL'](uuidv4)};try{fs[_0x2d639f(0xd4)](_0x1efdc5,JSON[_0x2d639f(0xc4)](this[_0x2d639f(0xc6)][_0x2858ba]));}catch(_0x344d39){logger[_0x2d639f(0xb9)](_0x2d639f(0xe4)+_0x2858ba+':\x20'+_0x344d39[_0x2d639f(0xee)]);}return this['tests'][_0x2858ba]['uuid'];}catch(_0x30bbb3){return logger['error'](_0x2d639f(0x11a)+_0x2858ba+':\x20'+_0x30bbb3['message']),null;}}static[a70_0x161570(0x120)](_0x489f38){const _0x47f66c=a70_0x161570,_0x434a26=path['join'](this[_0x47f66c(0xd0)],_0x489f38+_0x47f66c(0xc8));if(fs[_0x47f66c(0xe5)](_0x434a26))return fs[_0x47f66c(0xd7)](_0x434a26)['toString']();}static[a70_0x161570(0xdb)](_0x3e6e1b,_0x18f476){const _0x1b5d0a=a70_0x161570,_0x48e96b=path[_0x1b5d0a(0x114)](this[_0x1b5d0a(0xd0)],_0x18f476+_0x1b5d0a(0xc8));fs[_0x1b5d0a(0xd4)](_0x48e96b,_0x3e6e1b[_0x1b5d0a(0xfb)]());}static['shutdown'](){const _0x5e0fb9=a70_0x161570,_0x2de8e6={};_0x2de8e6[_0x5e0fb9(0x10f)]=!![],_0x2de8e6['force']=!![],fs['rmSync'](this['dirPath'],_0x2de8e6);}static[a70_0x161570(0x10e)](_0x5cae0d){const _0x3b4474=a70_0x161570,_0x3644cd=this['getFilePath'](_0x5cae0d);if(fs[_0x3b4474(0xe5)](_0x3644cd))try{const _0x2c0c67=JSON[_0x3b4474(0xb3)](fs[_0x3b4474(0xd7)](_0x3644cd)['toString']());return this['tests'][_0x5cae0d]=_0x2c0c67,_0x2c0c67;}catch(_0x16ac46){return logger[_0x3b4474(0x123)]('Failed\x20to\x20acquire\x20lock\x20for\x20'+_0x3644cd+':\x20'+util[_0x3b4474(0xce)](_0x16ac46)+_0x3b4474(0x122)),{};}return{};}static['setTestDetails'](_0x42ce81,_0x4948b1,_0x22bbc8=![]){const _0x2e2921=a70_0x161570,_0x3c0811={'McxrY':function(_0x356b67){return _0x356b67();}};logger[_0x2e2921(0x123)]('[setTestDetails]\x20processId:\x20'+process[_0x2e2921(0x108)]+_0x2e2921(0xa3)+_0x42ce81+_0x2e2921(0xfd)+JSON[_0x2e2921(0xc4)](_0x4948b1));const _0x5ce42b=this[_0x2e2921(0xd5)](_0x42ce81);if(fs[_0x2e2921(0xe5)](_0x5ce42b))try{const _0x5957d7=lockfile[_0x2e2921(0x103)](_0x5ce42b),_0x3b4643=JSON[_0x2e2921(0xb3)](fs[_0x2e2921(0xd7)](_0x5ce42b)[_0x2e2921(0xfb)]());if(_0x22bbc8)this[_0x2e2921(0xc6)][_0x42ce81]=helper[_0x2e2921(0xd2)](_0x3b4643,_0x4948b1);else{const _0x1ddada={..._0x3b4643,..._0x4948b1};this[_0x2e2921(0xc6)][_0x42ce81]=_0x1ddada;}fs['writeFileSync'](_0x5ce42b,JSON[_0x2e2921(0xc4)](this[_0x2e2921(0xc6)][_0x42ce81])),_0x3c0811[_0x2e2921(0x124)](_0x5957d7);}catch(_0xc83556){logger[_0x2e2921(0x123)](_0x2e2921(0xf1)+_0x5ce42b+':\x20'+util[_0x2e2921(0xce)](_0xc83556)+'.\x20Unable\x20to\x20set\x20test\x20details.');}}static['storeLogObjects'](_0x3546ac,_0x168089){const _0x5081e4=a70_0x161570,_0x1f1f6c={'XRmfA':function(_0x8528cc,_0x27f393){return _0x8528cc!==_0x27f393;},'BRvSr':_0x5081e4(0x107),'JpBvP':function(_0x55286f){return _0x55286f();}};logger[_0x5081e4(0x123)](_0x5081e4(0x11c)+process[_0x5081e4(0x108)]+_0x5081e4(0xe9)+_0x3546ac+'}');const _0x2c0ef7=this[_0x5081e4(0xd5)](_0x3546ac);try{let _0x3c07b0={};if(fs[_0x5081e4(0xe5)](_0x2c0ef7)){const _0x3bf2df=lockfile[_0x5081e4(0x103)](_0x2c0ef7);_0x3c07b0=JSON[_0x5081e4(0xb3)](fs[_0x5081e4(0xd7)](_0x2c0ef7)[_0x5081e4(0xfb)]()),(!_0x3c07b0[_0x5081e4(0xb0)]||_0x1f1f6c['XRmfA'](typeof _0x3c07b0[_0x5081e4(0xb0)],_0x1f1f6c[_0x5081e4(0x101)]))&&(_0x3c07b0[_0x5081e4(0xb0)]={}),(!_0x3c07b0[_0x5081e4(0xb0)][_0x3546ac]||!Array[_0x5081e4(0xc9)](_0x3c07b0['logObjects'][_0x3546ac]))&&(_0x3c07b0[_0x5081e4(0xb0)][_0x3546ac]=[]),_0x3c07b0[_0x5081e4(0xb0)][_0x3546ac][_0x5081e4(0xca)](_0x168089),this['tests'][_0x3546ac]=_0x3c07b0,fs[_0x5081e4(0xd4)](_0x2c0ef7,JSON[_0x5081e4(0xc4)](this[_0x5081e4(0xc6)][_0x3546ac])),_0x1f1f6c[_0x5081e4(0xcf)](_0x3bf2df);}else{const _0x21e0f1={};_0x21e0f1[_0x5081e4(0xbe)]=_0x3546ac,_0x21e0f1[_0x5081e4(0xb0)]={},_0x21e0f1[_0x5081e4(0xb0)][_0x3546ac]=[_0x168089],_0x3c07b0=_0x21e0f1,this[_0x5081e4(0xc6)][_0x3546ac]=_0x3c07b0,fs[_0x5081e4(0xd4)](_0x2c0ef7,JSON['stringify'](this[_0x5081e4(0xc6)][_0x3546ac]));}}catch(_0x14535b){logger[_0x5081e4(0x123)](_0x5081e4(0xf1)+_0x2c0ef7+':\x20'+util['format'](_0x14535b)+'.\x20Unable\x20to\x20add\x20console\x20log.');}}static['readLogObjects'](_0x1c39dd){const _0x2ffa94=a70_0x161570,_0x31e0a4={'yzDXm':function(_0x23c1c1,_0x2a0053){return _0x23c1c1!==_0x2a0053;},'ocTGw':_0x2ffa94(0x107),'PLoNb':function(_0x3ab717){return _0x3ab717();},'egtxW':function(_0x47cb09,_0x417695){return _0x47cb09===_0x417695;},'rJFMj':function(_0x3e8133){return _0x3e8133();}};logger['debug'](_0x2ffa94(0x11d)+process[_0x2ffa94(0x108)]+'\x20Retrieving\x20logs\x20for\x20'+_0x1c39dd);const _0x76f2f3=this[_0x2ffa94(0xd5)](_0x1c39dd);try{if(!fs['existsSync'](_0x76f2f3))return logger[_0x2ffa94(0x123)](_0x2ffa94(0xad)+_0x1c39dd),[];const _0x476bd1=lockfile[_0x2ffa94(0x103)](_0x76f2f3),_0x16edc4=JSON[_0x2ffa94(0xb3)](fs[_0x2ffa94(0xd7)](_0x76f2f3)['toString']());if(!_0x16edc4[_0x2ffa94(0xb0)]||_0x31e0a4[_0x2ffa94(0xbc)](typeof _0x16edc4[_0x2ffa94(0xb0)],_0x31e0a4[_0x2ffa94(0xa9)]))return logger[_0x2ffa94(0x123)](_0x2ffa94(0xe3)+_0x1c39dd),_0x31e0a4[_0x2ffa94(0xc5)](_0x476bd1),[];if(!_0x16edc4[_0x2ffa94(0xb0)][_0x1c39dd]||!Array[_0x2ffa94(0xc9)](_0x16edc4[_0x2ffa94(0xb0)][_0x1c39dd])||_0x31e0a4[_0x2ffa94(0xff)](_0x16edc4[_0x2ffa94(0xb0)][_0x1c39dd][_0x2ffa94(0x100)],0x0))return logger[_0x2ffa94(0x123)](_0x2ffa94(0xc7)+_0x1c39dd),_0x31e0a4['rJFMj'](_0x476bd1),[];const _0x56beaf=[..._0x16edc4[_0x2ffa94(0xb0)][_0x1c39dd]];return logger[_0x2ffa94(0x123)](_0x2ffa94(0xa2)+_0x56beaf[_0x2ffa94(0x100)]+'\x20log\x20objects\x20for\x20testId:\x20'+_0x1c39dd),_0x16edc4['logObjects'][_0x1c39dd]=[],this[_0x2ffa94(0xc6)][_0x1c39dd]=_0x16edc4,fs[_0x2ffa94(0xd4)](_0x76f2f3,JSON[_0x2ffa94(0xc4)](this['tests'][_0x1c39dd])),_0x31e0a4['PLoNb'](_0x476bd1),_0x56beaf;}catch(_0xbee509){return logger[_0x2ffa94(0x123)](_0x2ffa94(0xf1)+_0x76f2f3+':\x20'+util[_0x2ffa94(0xce)](_0xbee509)+_0x2ffa94(0x125)),[];}}static[a70_0x161570(0xc3)](_0x36a987){const _0x52a839=a70_0x161570,_0xe93934={};_0xe93934[_0x52a839(0xae)]='Error\x20handling\x20trace\x20file\x20paths:\x20%O';const _0x40d3f9=_0xe93934;try{const _0x33a356=process[_0x52a839(0x108)],_0x26833a=path['join'](TestInfo[_0x52a839(0xa5)](),_0x33a356+_0x52a839(0xfc));let _0x4bdfb2=[];fs[_0x52a839(0xe5)](_0x26833a)&&(_0x4bdfb2=JSON[_0x52a839(0xb3)](fs[_0x52a839(0xd7)](_0x26833a)[_0x52a839(0xfb)]()));if(!_0x4bdfb2['some'](_0x4c5c17=>_0x4c5c17['filePath']===_0x36a987[_0x52a839(0xe0)])){_0x4bdfb2[_0x52a839(0xca)](_0x36a987);const _0x346b2c=path['dirname'](_0x26833a);if(!fs[_0x52a839(0xe5)](_0x346b2c)){const _0x3b9626={};_0x3b9626[_0x52a839(0x10f)]=!![],fs[_0x52a839(0xd6)](_0x346b2c,_0x3b9626);}fs['writeFileSync'](_0x26833a,JSON[_0x52a839(0xc4)](_0x4bdfb2));}}catch(_0xda8a44){logger['error'](util[_0x52a839(0xce)](_0x40d3f9[_0x52a839(0xae)],_0xda8a44));}}static[a70_0x161570(0xa7)](){const _0xebf7b8=a70_0x161570,_0xb47501={};_0xb47501[_0xebf7b8(0xb2)]=_0xebf7b8(0xfc),_0xb47501[_0xebf7b8(0xf4)]='Error\x20reading\x20trace\x20file\x20paths:\x20%O';const _0x19eeaa=_0xb47501,_0xe1de31=[];try{const _0x514f74=TestInfo[_0xebf7b8(0xa5)]();if(!fs[_0xebf7b8(0xe5)](_0x514f74))return _0xe1de31;const _0x4199ca=fs[_0xebf7b8(0x126)](_0x514f74);_0x4199ca[_0xebf7b8(0xd1)](_0x268fa6=>{const _0xe0787=_0xebf7b8;if(_0x268fa6[_0xe0787(0xaf)](_0x19eeaa[_0xe0787(0xb2)])){const _0x50bc55=JSON['parse'](fs[_0xe0787(0xd7)](path[_0xe0787(0x114)](_0x514f74,_0x268fa6))['toString']());_0xe1de31[_0xe0787(0xca)](..._0x50bc55);}});}catch(_0x274b4e){logger[_0xebf7b8(0xb9)](util[_0xebf7b8(0xce)](_0x19eeaa['KtEAb'],_0x274b4e));}const _0xbc4b29={};return _0xe1de31[_0xebf7b8(0xd1)](_0x1927f9=>{const _0x4a6505=_0xebf7b8;_0xbc4b29[_0x1927f9[_0x4a6505(0xe0)]]=_0x1927f9;}),Object[_0xebf7b8(0xe7)](_0xbc4b29);}static['appendToTracePaths'](_0x5a2a3c,_0x15076d){const _0x22fcb6=a70_0x161570,_0x58baab={};_0x58baab['lBdnH']=_0x22fcb6(0xd3),_0x58baab[_0x22fcb6(0x9e)]=_0x22fcb6(0x117),_0x58baab[_0x22fcb6(0xb4)]=_0x22fcb6(0x105);const _0x28975a=_0x58baab;try{const _0x32cb32=path[_0x22fcb6(0x114)](helper[_0x22fcb6(0x106)](),_0x28975a[_0x22fcb6(0x11f)]);if(!fs[_0x22fcb6(0xe5)](_0x32cb32)){const _0x3c47f7={};_0x3c47f7[_0x22fcb6(0x10f)]=!![],fs[_0x22fcb6(0xd6)](_0x32cb32,_0x3c47f7);}fs['appendFileSync'](path[_0x22fcb6(0x114)](_0x32cb32,_0x22fcb6(0xb1)+_0x15076d+_0x22fcb6(0x112)),_0x5a2a3c+'\x0a',_0x28975a[_0x22fcb6(0x9e)]);}catch(_0x5bff9b){logger[_0x22fcb6(0xb9)](util[_0x22fcb6(0xce)](_0x28975a[_0x22fcb6(0xb4)],_0x5bff9b));}}}module['exports']=TestInfo;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a71_0x8795(){const _0x185f56=['27840sosqKm','split','exitCode','UGucT','wMrhb','setupTestFramework','QXvQk','../../helpers/classLogger.js','getSuccess','errorsList','stdout','getCliArgs','loadModules','PoZxb','./framework/jestTestFramework.js','getTestFramework','config','Error\x20in\x20start\x20(code=','spawn\x20succeeded\x20on\x20attempt\x20','./modules/puppeteerDriverModule.js','MQtUV','syncAccessibilityConfig','SIGKILL','Setting\x20up\x20CLI\x20binary\x20path...','CLIUtils.setupCliPath\x20returned\x20null','data','stringify','setupAutomationFramework','loadModules:\x20binSessionId=','setConfig:\x20Using\x20browserstackConfig\x20as\x20fallback','_modulesLoaded','./modules/playwrightDriverModule.js','setConfig:\x20Empty\x20or\x20missing\x20config\x20string\x20from\x20response','CLI\x20binary\x20path\x20resolved\x20to:\x20','eEoRd','pXgdG','xHDOC','WRCgt','aeZyg','function','./framework/newmanTestFramework.js','isDevelopmentEnv','XiLrY','../../helpers/helper.js','util','1236OOIOxH','\x20after\x20ready\x20—\x20gRPC\x20calls\x20will\x20fail','NEWMAN','connected','syncAccessibilityConfig:\x20Updated\x20browserstackConfig.accessibilityOptions\x20from\x20CLI\x20response','QJBpw','23808924QYHmbI','connectBinSession','close','getAccessibilityModule','3388590aGSuoD','BROWSERSTACK_CLI_BIN_SESSION_ID','isFalse','O11yHashedID','Error\x20Trace\x20ID:\x20','uEpOo','_spawnAndAwaitReady','SDK_CLI_ON_BOOTSTRAP','stop:\x20channel\x20closed','setCliArgs:\x20error=','sdk','BuildLink','PvsAL','7508200fLMogg','testhubConfig','AVWJD','end','RAwaO','env','\x20on\x20attempt\x20','3|6|2|1|0|5|4|7','HashedID','loading\x20Modules.','startChild:\x20client\x20and\x20channel\x20already\x20exist,\x20stopping\x20here','79BEGMZr','RcLVS','browserstackConfigPath','server','startMain','KEY_CUSTOM_TAGS','loadModules:\x20skipping\x20driver\x20module\x20for\x20observability-only\x20framework','ms...','osDJE','isRunning','NalRj','Starting\x20as\x20child\x20process\x20with\x20session\x20ID:\x20','ZeVoi','LsGMv','SDK_CLI_BIN_PATH','./modules/loadTestModule.js','browserstackConfig','test','BROWSERSTACK_CLI_ENABLED','getAutomationFrameworkDetail','stop:\x20error\x20in\x20closing\x20channel:\x20%s','warn','JEST','getTestFrameworkDetail','key','WXGsw','isChildConnected','setCliArgs','../utils/constants.js','iDqKo','forEach','getBinSessionId','qmORP','svTJo','cliParams','parse','ESoev','buildLogger','configureModules','killed','isClosed','stack','info','message','client','syncAccessibilityConfig:\x20error=','toObject','errorTraceId','TJgPd','spawning\x20command=\x27','ywKey','CLI\x20runtime\x20error\x20after\x20ready:\x20code=','TEtVr','trim','296004xrxmoo','getTestDetails','getAccessibility','getInstance','dMSZy','name','browserstackCliConfig','./framework/constants/testFrameworkConstants.js','startMain:\x20main-process\x20started','gGllx','Fpeca','onRYQ','MwdOy','./modules/accessibilityModule.js','5811920oYcjfm','toLowerCase','yaIah','setCliArgs:\x20cliArgs=','FLxgf','YKkae','unConfigureModules','MODULE_NAME','spawn\x20','child_process','BrowserstackCLI','KAXeo','ILCkR','start','sQCjP','initialized','setConfig:\x20Using\x20browserstackConfig\x20after\x20parse\x20error','../../helpers/performance/constants','includes','NBugR','stop:\x20error\x20in\x20stop\x20session\x20exception=','IDljw','SDK_CONNECT_BIN_SESSION','CLI\x20stderr:\x20','code','turboScale','./modules/testhubModule.js','gdLKh','YuYVo','toString','Error\x20reading\x20accessibility\x20success\x20value:\x20','exit','modules','tnGas','Failed\x20to\x20get\x20CLI\x20binary\x20path.\x20CLI\x20setup\x20failed.','GnEHC','slice','IbZmQ','setBrowserstackConfig','kill','./uploadAttachmentsManager.js','startChild','syncAccessibilityConfig:\x20browserstackConfig\x20not\x20set,\x20skipping\x20sync','cgqEW','loadModules:\x20Loading\x20modules','amtDU','failed\x20to\x20start\x20CLI,\x20no\x20PID\x20found','\x20o11y_uuid=','getObservability','MTHJF','hEtwM','oYViE','isCLIEnabled','hubUrl','BROWSERSTACK_CLI_ENV','debug','yMQrw','jomkF','shutdown','../../helpers/logger.js','18319CTpwDv','Unconfiguring\x20modules','./framework/playwrightAutomationFramework.js','oOpJM','logger','CLI\x20process\x20exited\x20with\x20code\x20','Error\x20Code:\x20',',\x20retrying\x20in\x20','):\x20','error','testFramework','ImtcK','SDK_CLI_ON_STOP','vkYDp','stderr','accessibilityOptions','\x20msg=','setConfig','zaIMt','dsyLJ','getChannel','stop:\x20CLI\x20is\x20not\x20running,\x20skipping\x20stop','TestHubModule','automationFramework','removeAllListeners','\x20hashed_id=','eHRRi','stop:\x20stopBinSession\x20build_link=','getHashedId','ready','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','isLTSSession','stop','ytMNt','PUPPETEER','./TestInfo.js','version','stop:\x20shutting\x20down\x20CLI','process','format','bBOPS','PLAYWRIGHT','isMainConnected','YJhEP','startBinSession','getCLIParamsForDevEnv','\x20errors:','bootstrap:\x20failed\x20to\x20bootstrap=','stopBinSession','accessibility','NQVMn','CqhSE','Disabling\x20CLI.','zQFtw','binSessionId','isTrue','Accessibility\x20success=','length','stop:\x20process\x20exit\x20timeout,\x20forcing\x20kill','cliArgs','./grpcClient.js','stop:\x20CLI\x20stop\x20triggered','syncAccessibilityConfig:\x20Updated\x20browserstackConfig.accessibility\x20from\x20CLI\x20response:\x20','lACsf','getAutomateBuildlink','../../helpers/performance/performance-tester.js','rJwNh','getAutomationFramework','fFlyn','isCliEnabled','A11yEnabled','configure','getConfig','bootstrap','getClient','lzoYx','loadCliParams','isBootstrapped','getCliBinPath','./framework/puppeteerAutomationFramework.js','syncAccessibilityConfig:\x20CLI\x20config\x20not\x20available,\x20skipping\x20sync','CUCUMBER','resolve','SDK_CLI_START'];a71_0x8795=function(){return _0x185f56;};return a71_0x8795();}const a71_0x37ba04=a71_0x1dbb;(function(_0x52d4a6,_0x522df9){const _0x543e57=a71_0x1dbb,_0x5e4ee1=_0x52d4a6();while(!![]){try{const _0x16e777=-parseInt(_0x543e57(0x259))/0x1*(parseInt(_0x543e57(0x20a))/0x2)+-parseInt(_0x543e57(0x241))/0x3+-parseInt(_0x543e57(0x16c))/0x4+-parseInt(_0x543e57(0x17a))/0x5+parseInt(_0x543e57(0x237))/0x6*(parseInt(_0x543e57(0x1b6))/0x7)+parseInt(_0x543e57(0x24e))/0x8+parseInt(_0x543e57(0x23d))/0x9;if(_0x16e777===_0x522df9)break;else _0x5e4ee1['push'](_0x5e4ee1['shift']());}catch(_0x3e70c0){_0x5e4ee1['push'](_0x5e4ee1['shift']());}}}(a71_0x8795,0xa083c));const {spawn}=require(a71_0x37ba04(0x183)),GrpcClient=require(a71_0x37ba04(0x1f2)),util=require(a71_0x37ba04(0x236)),CLIUtils=require('./cliUtils.js'),PlaywrightAutomationFramework=require(a71_0x37ba04(0x1b8)),PuppeteerAutomationFramework=require(a71_0x37ba04(0x205)),PlaywrightTestFramework=require('./framework/playwrightTestFramework.js'),CucumberTestFramework=require('./framework/cucumberTestFramework.js'),JestTestFramework=require(a71_0x37ba04(0x218)),{createClassLogger}=require(a71_0x37ba04(0x211)),PerformanceTester=require(a71_0x37ba04(0x1f7)),{EVENTS:PerformanceEvents}=require(a71_0x37ba04(0x18b)),AccessibilityModule=require(a71_0x37ba04(0x179)),{CLI_SUPPORTED_FRAMEWORKS,FRAMEWORKS,BINARY_BUSY_ERROR_CODES,MAX_SPAWN_RETRIES,SPAWN_RETRY_DELAY_MS}=require(a71_0x37ba04(0x275)),helper=require(a71_0x37ba04(0x235)),TestFrameworkConstants=require(a71_0x37ba04(0x173)),buildLogger=require(a71_0x37ba04(0x1b5))[a71_0x37ba04(0x15b)],LoadTestModule=require(a71_0x37ba04(0x268)),TestInfo=require(a71_0x37ba04(0x1d9));function a71_0x1dbb(_0x199893,_0x2ad8bc){const _0x879508=a71_0x8795();return a71_0x1dbb=function(_0x1dbbda,_0x21ad11){_0x1dbbda=_0x1dbbda-0x155;let _0x403403=_0x879508[_0x1dbbda];return _0x403403;},a71_0x1dbb(_0x199893,_0x2ad8bc);}class BrowserstackCLI{static #instance=null;static ['BuildLink']=null;static [a71_0x37ba04(0x256)]=null;static [a71_0x37ba04(0x244)]=null;static [a71_0x37ba04(0x1fc)]=![];[a71_0x37ba04(0x1dc)]=null;['isMainConnected']=![];[a71_0x37ba04(0x273)]=![];[a71_0x37ba04(0x228)]=![];['binSessionId']=null;[a71_0x37ba04(0x19a)]={};[a71_0x37ba04(0x1c0)]=null;['automationFramework']=null;[a71_0x37ba04(0x1ba)]=createClassLogger(a71_0x37ba04(0x184));constructor(){const _0x410365=a71_0x37ba04;this[_0x410365(0x189)]=![],this['config']={},this[_0x410365(0x1f1)]={},this[_0x410365(0x269)]={};}static[a71_0x37ba04(0x16f)](){return!BrowserstackCLI.#instance&&(BrowserstackCLI.#instance=new BrowserstackCLI()),BrowserstackCLI.#instance;}async[a71_0x37ba04(0x1ff)](){const _0xbf9b16=a71_0x37ba04,_0x466ce9={};_0x466ce9[_0xbf9b16(0x177)]=_0xbf9b16(0x1ea);const _0x4dbe55=_0x466ce9;if(helper[_0xbf9b16(0x243)](process[_0xbf9b16(0x253)][_0xbf9b16(0x26b)])){this[_0xbf9b16(0x1ba)][_0xbf9b16(0x160)](_0x4dbe55[_0xbf9b16(0x177)]);return;}PerformanceTester['start'](PerformanceEvents[_0xbf9b16(0x248)]);try{const _0x13252e=process[_0xbf9b16(0x253)][_0xbf9b16(0x242)]||null;this[_0xbf9b16(0x225)](),this['setupTestFramework']();if(_0x13252e){await this[_0xbf9b16(0x1a3)](_0x13252e),PerformanceTester[_0xbf9b16(0x251)](PerformanceEvents[_0xbf9b16(0x248)]);return;}await this['startMain']();}catch(_0x460e4f){this[_0xbf9b16(0x1ba)][_0xbf9b16(0x1bf)](_0xbf9b16(0x1e5)+(_0x460e4f[_0xbf9b16(0x15f)]||_0x460e4f)),await this[_0xbf9b16(0x1d6)](),PerformanceTester[_0xbf9b16(0x251)](PerformanceEvents[_0xbf9b16(0x248)],![],util['format'](_0x460e4f));}}async[a71_0x37ba04(0x25d)](){const _0x49b285=a71_0x37ba04,_0x31612d={};_0x31612d['WRCgt']='startMain:\x20Starting\x20main\x20process',_0x31612d[_0x49b285(0x195)]=_0x49b285(0x174);const _0x1d7e98=_0x31612d;this[_0x49b285(0x1ba)][_0x49b285(0x160)](_0x1d7e98[_0x49b285(0x22f)]),await this[_0x49b285(0x187)](),this[_0x49b285(0x1ba)][_0x49b285(0x1b1)](_0x1d7e98['gdLKh']);const _0x56bfae=await GrpcClient[_0x49b285(0x16f)]()[_0x49b285(0x1e2)]();this[_0x49b285(0x1e0)]=!![],this[_0x49b285(0x216)](_0x56bfae);}[a71_0x37ba04(0x216)](_0x549cb0){const _0x4361b8=a71_0x37ba04,_0x1abace={'rJwNh':function(_0x4a9e7a,_0x156777){return _0x4a9e7a(_0x156777);},'gOlXX':_0x4361b8(0x229),'ZeVoi':_0x4361b8(0x194),'TEtVr':'./modules/observabilityModule.js','CYumJ':_0x4361b8(0x1a6),'lzoYx':_0x4361b8(0x1aa),'IbZmQ':_0x4361b8(0x16e),'tBvvS':_0x4361b8(0x212),'bBOPS':function(_0x402532,_0x29ff6f){return _0x402532||_0x29ff6f;},'jomkF':function(_0x358069,_0x4b0ffd){return _0x358069!==_0x4b0ffd;},'oOpJM':function(_0x135509,_0xcf3455){return _0x135509!==_0xcf3455;},'NBugR':function(_0x4dec86,_0x5e109d){return _0x4dec86===_0x5e109d;},'qmORP':_0x4361b8(0x231),'dMSZy':function(_0x177637,_0x5d5394){return _0x177637&&_0x5d5394;},'hFhiu':_0x4361b8(0x25f),'meQhc':_0x4361b8(0x21d)},_0xc60e35=_0x1abace['rJwNh'](require,_0x1abace['gOlXX']),_0x22727f=_0x1abace['rJwNh'](require,_0x1abace[_0x4361b8(0x265)]),_0x281353=_0x1abace['rJwNh'](require,_0x1abace[_0x4361b8(0x16a)]);this[_0x4361b8(0x1ba)][_0x4361b8(0x160)](_0x1abace['CYumJ']),this[_0x4361b8(0x1ec)]=_0x549cb0[_0x4361b8(0x155)](),this[_0x4361b8(0x1ba)][_0x4361b8(0x160)](_0x4361b8(0x226)+this[_0x4361b8(0x1ec)]),this[_0x4361b8(0x1c7)](_0x549cb0),this[_0x4361b8(0x21f)]();!this['isChildConnected']&&this[_0x4361b8(0x274)](_0x549cb0);const _0x16be91=_0x1abace[_0x4361b8(0x201)],_0x181239=_0x1abace[_0x4361b8(0x19f)],_0x186a60=_0x1abace['tBvvS'],_0x26ec16=_0x549cb0[_0x16be91]()&&_0x549cb0[_0x16be91]()[_0x186a60](),_0x3ccfd4=_0x549cb0[_0x181239]()&&_0x549cb0[_0x181239]()[_0x186a60](),_0x241e5f=process[_0x4361b8(0x253)][_0x4361b8(0x1d4)]&&JSON[_0x4361b8(0x159)](process['env'][_0x4361b8(0x1d4)]);_0x1abace[_0x4361b8(0x1de)](_0x26ec16,_0x3ccfd4)&&(this['modules'][_0x22727f['MODULE_NAME']]=new _0x22727f(_0x549cb0['getTesthub'](),_0x241e5f));_0x26ec16&&(this[_0x4361b8(0x19a)][_0x281353[_0x4361b8(0x181)]]=new _0x281353(_0x549cb0[_0x16be91]()));if(_0x3ccfd4){this[_0x4361b8(0x19a)][AccessibilityModule['MODULE_NAME']]=new AccessibilityModule(_0x549cb0[_0x181239]());const _0x112b0f=this['config']&&_0x1abace[_0x4361b8(0x1b3)](this[_0x4361b8(0x21a)]['app'],undefined)&&_0x1abace[_0x4361b8(0x1b9)](this['config']['app'],null);BrowserstackCLI[_0x4361b8(0x1fc)]=!_0x112b0f;}else try{const _0x2b7d51=_0x549cb0[_0x181239](),_0x139f93=_0x2b7d51&&_0x1abace[_0x4361b8(0x18d)](typeof _0x2b7d51[_0x186a60],_0x1abace[_0x4361b8(0x156)])?!!_0x2b7d51[_0x186a60]():![];this[_0x4361b8(0x1ba)][_0x4361b8(0x160)](_0x4361b8(0x1ee)+_0x139f93);if(_0x1abace[_0x4361b8(0x170)](!_0x139f93,_0x2b7d51)){const _0x56e1f0=_0x2b7d51[_0x4361b8(0x164)]?_0x2b7d51[_0x4361b8(0x164)]():_0x2b7d51;_0x56e1f0[_0x4361b8(0x213)]&&Array['isArray'](_0x56e1f0[_0x4361b8(0x213)])&&(this[_0x4361b8(0x1ba)]['error']('Accessibility\x20initialization\x20failed\x20with\x20'+_0x56e1f0[_0x4361b8(0x213)][_0x4361b8(0x1ef)]+_0x4361b8(0x1e4)),_0x56e1f0[_0x4361b8(0x213)][_0x4361b8(0x277)]((_0x3e142e,_0x7752e)=>{const _0x41d0a7=_0x4361b8;this[_0x41d0a7(0x1ba)][_0x41d0a7(0x1bf)]('Error:\x20['+_0x3e142e[_0x41d0a7(0x271)]+']\x20'+_0x3e142e['message']);}),_0x56e1f0['errorTraceId']&&this[_0x4361b8(0x1ba)][_0x4361b8(0x1bf)](_0x4361b8(0x245)+_0x56e1f0[_0x4361b8(0x165)]),_0x56e1f0[_0x4361b8(0x192)]&&this[_0x4361b8(0x1ba)][_0x4361b8(0x1bf)](_0x4361b8(0x1bc)+_0x56e1f0[_0x4361b8(0x192)]));}}catch(_0x4e82c8){this[_0x4361b8(0x1ba)][_0x4361b8(0x1bf)](_0x4361b8(0x198)+_0x4e82c8);}const _0x42c8d5=CLIUtils[_0x4361b8(0x26c)]();if(_0x1abace[_0x4361b8(0x18d)](_0x42c8d5[_0x4361b8(0x171)]['toLowerCase'](),FRAMEWORKS[_0x4361b8(0x239)]['toLowerCase']()))this['logger'][_0x4361b8(0x160)](_0x1abace['hFhiu']);else{if(_0x1abace[_0x4361b8(0x18d)](_0x42c8d5[_0x4361b8(0x171)][_0x4361b8(0x17b)](),FRAMEWORKS[_0x4361b8(0x1d8)][_0x4361b8(0x17b)]())){const _0x29436e=_0x1abace[_0x4361b8(0x1f8)](require,_0x1abace['meQhc']);this[_0x4361b8(0x19a)][_0x29436e[_0x4361b8(0x181)]]=new _0x29436e(_0x241e5f);}else this[_0x4361b8(0x19a)][_0xc60e35['MODULE_NAME']]=new _0xc60e35(_0x241e5f);}this['_modulesLoaded']=!![],this[_0x4361b8(0x15c)]();}[a71_0x37ba04(0x240)](){const _0x4b13f=a71_0x37ba04;return this[_0x4b13f(0x19a)][AccessibilityModule[_0x4b13f(0x181)]];}async[a71_0x37ba04(0x15c)](){const _0x44058c=a71_0x37ba04;for(const _0x218ac5 in this[_0x44058c(0x19a)]){const _0x2b0b06=this[_0x44058c(0x19a)][_0x218ac5];await _0x2b0b06[_0x44058c(0x1fd)](this[_0x44058c(0x1ec)],0x0,GrpcClient['getInstance']()[_0x44058c(0x162)],this[_0x44058c(0x21a)]);}}async['start'](){const _0x56abd8=a71_0x37ba04,_0x22723f={};_0x22723f['IlFiR']=_0x56abd8(0x19c),_0x22723f[_0x56abd8(0x234)]=_0x56abd8(0x24b),_0x22723f[_0x56abd8(0x1f5)]=function(_0x4de18a,_0x28070f){return _0x4de18a<=_0x28070f;},_0x22723f[_0x56abd8(0x1c3)]=function(_0x40e026,_0x4d61a8){return _0x40e026>_0x4d61a8;},_0x22723f[_0x56abd8(0x21e)]=function(_0x5f08a4,_0x864c0a){return _0x5f08a4<_0x864c0a;},_0x22723f[_0x56abd8(0x20d)]=_0x56abd8(0x220);const _0x4c61db=_0x22723f;PerformanceTester['start'](PerformanceEvents[_0x56abd8(0x209)]);if(CLIUtils[_0x56abd8(0x233)]())return this['loadCliParams'](CLIUtils[_0x56abd8(0x1e3)]()),PerformanceTester['end'](PerformanceEvents[_0x56abd8(0x209)]),Promise[_0x56abd8(0x208)]();if(this[_0x56abd8(0x1dc)]&&this[_0x56abd8(0x1dc)][_0x56abd8(0x23a)])return PerformanceTester[_0x56abd8(0x251)](PerformanceEvents['SDK_CLI_START']),Promise['resolve']();const _0xf859e2=await this['getCliBinPath']();if(!_0xf859e2)throw new Error(_0x4c61db['IlFiR']);const _0x2c802a=[_0xf859e2,_0x4c61db[_0x56abd8(0x234)]];this[_0x56abd8(0x1ba)][_0x56abd8(0x160)](_0x56abd8(0x167)+_0x2c802a+'\x27');for(let _0x51dacf=0x1;_0x4c61db[_0x56abd8(0x1f5)](_0x51dacf,MAX_SPAWN_RETRIES);_0x51dacf++){try{await this[_0x56abd8(0x247)](_0x2c802a);_0x4c61db[_0x56abd8(0x1c3)](_0x51dacf,0x1)&&this['logger'][_0x56abd8(0x160)](_0x56abd8(0x21c)+_0x51dacf+'/'+MAX_SPAWN_RETRIES);break;}catch(_0x22010e){if(BINARY_BUSY_ERROR_CODES[_0x56abd8(0x18c)](_0x22010e['code'])&&_0x4c61db[_0x56abd8(0x21e)](_0x51dacf,MAX_SPAWN_RETRIES))this['logger'][_0x56abd8(0x26e)](_0x56abd8(0x182)+_0x22010e[_0x56abd8(0x192)]+_0x56abd8(0x254)+_0x51dacf+'/'+MAX_SPAWN_RETRIES+_0x56abd8(0x1bd)+SPAWN_RETRY_DELAY_MS+_0x56abd8(0x260)),this[_0x56abd8(0x1dc)]&&(this[_0x56abd8(0x1dc)]['removeAllListeners'](),!this[_0x56abd8(0x1dc)][_0x56abd8(0x15d)]&&this['process']['kill'](_0x4c61db[_0x56abd8(0x20d)]),this[_0x56abd8(0x1dc)]=null),await new Promise(_0x13952b=>setTimeout(_0x13952b,SPAWN_RETRY_DELAY_MS));else throw _0x22010e;}}}[a71_0x37ba04(0x247)](_0x120b8d){const _0xafbb5=a71_0x37ba04,_0x1993c2={'GnEHC':function(_0x965940,_0x3ad3ac){return _0x965940!==_0x3ad3ac;},'TJgPd':_0xafbb5(0x1d3),'DtuvE':_0xafbb5(0x255),'JZxvA':_0xafbb5(0x1bf),'cgqEW':_0xafbb5(0x23f),'FLxgf':function(_0x3bdc69){return _0x3bdc69();},'YJhEP':function(_0x5cd151,_0x3b08c5){return _0x5cd151(_0x3b08c5);},'IDljw':function(_0xb2e9df,_0xc9d118,_0x1bf818,_0x40a08a){return _0xb2e9df(_0xc9d118,_0x1bf818,_0x40a08a);},'YKkae':_0xafbb5(0x1a8),'zaIMt':_0xafbb5(0x223)};return new Promise((_0x101d8b,_0xea230b)=>{const _0xa9d36b=_0xafbb5,_0x101f55={'PvsAL':function(_0x406f89,_0x5074a8){const _0x1fc52c=a71_0x1dbb;return _0x1993c2[_0x1fc52c(0x19d)](_0x406f89,_0x5074a8);},'oYViE':function(_0xaeb6a4,_0x273510){const _0x1ef772=a71_0x1dbb;return _0x1993c2[_0x1ef772(0x19d)](_0xaeb6a4,_0x273510);},'QXvQk':_0x1993c2[_0xa9d36b(0x166)],'pXgdG':_0x1993c2['DtuvE'],'MwdOy':_0x1993c2['JZxvA'],'xHDOC':_0x1993c2[_0xa9d36b(0x1a5)],'QJBpw':function(_0x37e48c){const _0x36c519=_0xa9d36b;return _0x1993c2[_0x36c519(0x17e)](_0x37e48c);},'GnIpF':function(_0x16e361,_0x5cb18c){const _0x3c87c7=_0xa9d36b;return _0x1993c2[_0x3c87c7(0x1e1)](_0x16e361,_0x5cb18c);},'wMrhb':function(_0x4dce0f,_0x7cb66e){return _0x1993c2['GnEHC'](_0x4dce0f,_0x7cb66e);},'osDJE':function(_0x3360f5,_0x2cba01){const _0x3c973d=_0xa9d36b;return _0x1993c2[_0x3c973d(0x1e1)](_0x3360f5,_0x2cba01);}},_0x147fad={};_0x147fad['env']=process[_0xa9d36b(0x253)],this['process']=_0x1993c2[_0xa9d36b(0x18f)](spawn,_0x120b8d[0x0],_0x120b8d[_0xa9d36b(0x19e)](0x1),_0x147fad);if(!this[_0xa9d36b(0x1dc)]||!this[_0xa9d36b(0x1dc)]['pid']){_0x1993c2[_0xa9d36b(0x1e1)](_0xea230b,new Error(_0x1993c2[_0xa9d36b(0x17f)]));return;}const _0x33b6fb={};this[_0xa9d36b(0x1dc)][_0xa9d36b(0x214)]['on'](_0x1993c2[_0xa9d36b(0x1c8)],_0x5a5169=>{const _0x543123=_0xa9d36b,_0x313e24=_0x5a5169[_0x543123(0x197)]()[_0x543123(0x16b)]()['split']('\x0a');for(const _0x1a7224 of _0x313e24){if(/^(id|listen|port)=.*$/[_0x543123(0x26a)](_0x1a7224)){const [_0x3760cd,_0xaa5657]=_0x1a7224[_0x543123(0x20b)]('=',0x2);_0x101f55[_0x543123(0x1ad)](_0xaa5657,undefined)&&(_0x33b6fb[_0x3760cd]=_0xaa5657);}if(_0x1a7224[_0x543123(0x17b)]()['includes'](_0x101f55[_0x543123(0x210)])){const _0x4d52c2=_0x101f55[_0x543123(0x22d)]['split']('|');let _0x60c356=0x0;while(!![]){switch(_0x4d52c2[_0x60c356++]){case'0':this[_0x543123(0x1dc)]['on'](_0x101f55['MwdOy'],_0x35e7c4=>{const _0xc88447=_0x543123;this['logger'][_0xc88447(0x1bf)](_0xc88447(0x169)+_0x35e7c4[_0xc88447(0x192)]+_0xc88447(0x1c6)+_0x35e7c4['message']);});continue;case'1':this[_0x543123(0x1dc)]['removeAllListeners'](_0x101f55[_0x543123(0x22e)]);continue;case'2':this[_0x543123(0x1dc)][_0x543123(0x1ce)](_0x101f55[_0x543123(0x178)]);continue;case'3':this[_0x543123(0x202)](_0x33b6fb);continue;case'4':_0x101f55[_0x543123(0x23c)](_0x101d8b);continue;case'5':this[_0x543123(0x1dc)]['on'](_0x101f55[_0x543123(0x22e)],_0x456332=>{const _0x227667=_0x543123;_0x101f55[_0x227667(0x24d)](_0x456332,0x0)&&this['logger'][_0x227667(0x1bf)]('CLI\x20process\x20exited\x20with\x20code\x20'+_0x456332+_0x227667(0x238));});continue;case'6':PerformanceTester[_0x543123(0x251)](PerformanceEvents[_0x543123(0x209)]);continue;case'7':return;}break;}}}}),this[_0xa9d36b(0x1dc)][_0xa9d36b(0x1c4)]['on'](_0x1993c2[_0xa9d36b(0x1c8)],_0x1b636c=>{const _0x151723=_0xa9d36b;this[_0x151723(0x1ba)][_0x151723(0x1bf)](_0x151723(0x191)+_0x1b636c['toString']()[_0x151723(0x16b)]());}),this[_0xa9d36b(0x1dc)]['on'](_0x1993c2['JZxvA'],_0x5b373c=>{const _0x213d13=_0xa9d36b;_0x33b6fb['error']=_0x213d13(0x21b)+_0x5b373c[_0x213d13(0x192)]+_0x213d13(0x1be)+_0x5b373c[_0x213d13(0x161)],PerformanceTester['end'](PerformanceEvents[_0x213d13(0x209)],![],_0x5b373c),_0x101f55['GnIpF'](_0xea230b,_0x5b373c);}),this[_0xa9d36b(0x1dc)]['on'](_0x1993c2[_0xa9d36b(0x1a5)],_0x1deff9=>{const _0x10964c=_0xa9d36b;_0x101f55[_0x10964c(0x20e)](_0x1deff9,0x0)&&_0x101f55[_0x10964c(0x261)](_0xea230b,new Error(_0x10964c(0x1bb)+_0x1deff9));});});}async[a71_0x37ba04(0x1d6)](_0x385435=null){const _0x42bff2=a71_0x37ba04,_0x26b70e={'YuYVo':_0x42bff2(0x1f0),'NalRj':_0x42bff2(0x220),'vqgjf':function(_0xe0c435){return _0xe0c435();},'sQCjP':'stop:\x20CLI\x20process\x20exited','RcLVS':function(_0x3ef530){return _0x3ef530();},'wyInf':_0x42bff2(0x199),'WXGsw':function(_0x5cfc96,_0x56b158,_0x363e7b){return _0x5cfc96(_0x56b158,_0x363e7b);},'dsyLJ':_0x42bff2(0x1cb),'Fpeca':_0x42bff2(0x1f3),'qHLbW':function(_0x20ebe8,_0x47691d){return _0x20ebe8(_0x47691d);},'PoZxb':_0x42bff2(0x1a2),'svTJo':_0x42bff2(0x249),'LsGMv':_0x42bff2(0x26d),'aoRVu':_0x42bff2(0x1db)};if(!this[_0x42bff2(0x262)]()){this['logger'][_0x42bff2(0x160)](_0x26b70e[_0x42bff2(0x1c9)]);return;}PerformanceTester[_0x42bff2(0x187)](PerformanceEvents['SDK_CLI_ON_STOP']),this[_0x42bff2(0x1ba)][_0x42bff2(0x160)](_0x26b70e[_0x42bff2(0x176)]);try{if(this[_0x42bff2(0x1e0)]){const _0x134af2=_0x26b70e['qHLbW'](require,_0x26b70e[_0x42bff2(0x217)]),_0x54f973=this['modules'][_0x42bff2(0x1cc)]?.[_0x42bff2(0x24f)]?.[_0x42bff2(0x164)]()?.['buildHashedId'],_0x2fda99=TestInfo[_0x42bff2(0x16d)](_0x54f973),_0xc97d0a=_0x2fda99[TestFrameworkConstants[_0x42bff2(0x25e)]]||{},_0x9e6634=await GrpcClient[_0x42bff2(0x16f)]()[_0x42bff2(0x1e6)](JSON['stringify'](_0xc97d0a),_0x385435);_0x9e6634&&_0x9e6634['getSuccess']()&&_0x9e6634[_0x42bff2(0x1f6)]()&&(BrowserstackCLI[_0x42bff2(0x24c)]=_0x9e6634[_0x42bff2(0x1f6)](),BrowserstackCLI['HashedID']=_0x9e6634[_0x42bff2(0x1d2)]()),await _0x134af2['clearAttachments'](),TestInfo[_0x42bff2(0x1b4)](),buildLogger[_0x42bff2(0x160)](_0x42bff2(0x1d1)+BrowserstackCLI[_0x42bff2(0x24c)]+_0x42bff2(0x1cf)+BrowserstackCLI[_0x42bff2(0x256)]+_0x42bff2(0x1a9)+BrowserstackCLI[_0x42bff2(0x244)]);}await this[_0x42bff2(0x180)]();const _0x27eeed=GrpcClient[_0x42bff2(0x16f)]()['getChannel']();if(_0x27eeed){try{_0x27eeed[_0x42bff2(0x23f)](),this[_0x42bff2(0x1ba)][_0x42bff2(0x160)](_0x26b70e[_0x42bff2(0x157)]);}catch(_0x1c818c){this[_0x42bff2(0x1ba)]['error'](util['format'](_0x26b70e[_0x42bff2(0x266)],_0x1c818c));}await new Promise(_0x3f923b=>setTimeout(_0x3f923b,0x1388));}this['process']&&this['process']['pid']&&(this['logger']['info'](_0x26b70e['aoRVu']),this[_0x42bff2(0x1dc)][_0x42bff2(0x1a1)](),await new Promise(_0x2de5b5=>{const _0x2a706b=_0x42bff2,_0x54fb73={'ywKey':_0x26b70e[_0x2a706b(0x188)],'eizyB':function(_0xc66767){const _0x7677b5=_0x2a706b;return _0x26b70e[_0x7677b5(0x25a)](_0xc66767);}};let _0x47e887=![];this[_0x2a706b(0x1dc)]['on'](_0x26b70e['wyInf'],()=>{const _0x33f881=_0x2a706b;this[_0x33f881(0x1ba)]['info'](_0x54fb73[_0x33f881(0x168)]),_0x47e887=!![],PerformanceTester[_0x33f881(0x251)](PerformanceEvents[_0x33f881(0x1c2)]),_0x54fb73['eizyB'](_0x2de5b5);}),_0x26b70e[_0x2a706b(0x272)](setTimeout,()=>{const _0xeb5552=_0x2a706b;!_0x47e887&&(this[_0xeb5552(0x1ba)][_0xeb5552(0x26e)](_0x26b70e[_0xeb5552(0x196)]),this[_0xeb5552(0x1dc)][_0xeb5552(0x1a1)](_0x26b70e[_0xeb5552(0x263)]),PerformanceTester['end'](PerformanceEvents[_0xeb5552(0x1c2)]),_0x26b70e['vqgjf'](_0x2de5b5));},0xbb8);}));}catch(_0x1a5c50){PerformanceTester[_0x42bff2(0x251)](PerformanceEvents[_0x42bff2(0x1c2)],![],util[_0x42bff2(0x1dd)](_0x1a5c50)),this[_0x42bff2(0x1ba)][_0x42bff2(0x1bf)](_0x42bff2(0x18e)+(_0x1a5c50[_0x42bff2(0x15f)]||_0x1a5c50));}_0x385435?this[_0x42bff2(0x1dc)][_0x42bff2(0x20c)]=0x1:this[_0x42bff2(0x1dc)]['exitCode']=0x0,this[_0x42bff2(0x273)]=![],this[_0x42bff2(0x1e0)]=![],process['env'][_0x42bff2(0x1b0)]=null;}async[a71_0x37ba04(0x180)](){const _0x2cb05c=a71_0x37ba04,_0x74910a={};_0x74910a[_0x2cb05c(0x185)]=_0x2cb05c(0x1b7);const _0x11d2f9=_0x74910a;this[_0x2cb05c(0x1ba)][_0x2cb05c(0x160)](_0x11d2f9[_0x2cb05c(0x185)]);}['loadCliParams'](_0x387c30){const _0x1e2660=a71_0x37ba04;this[_0x1e2660(0x1ba)]['info']('CLI\x20params\x20loaded:\x20'+JSON[_0x1e2660(0x224)](_0x387c30)),this[_0x1e2660(0x158)]=_0x387c30,GrpcClient[_0x1e2660(0x16f)]()['init'](_0x387c30);}async[a71_0x37ba04(0x1a3)](_0xd5830c){const _0x36e1ee=a71_0x37ba04,_0x21f923={};_0x21f923[_0x36e1ee(0x1ac)]=_0x36e1ee(0x258);const _0x3b3ac0=_0x21f923;PerformanceTester[_0x36e1ee(0x187)](PerformanceEvents['SDK_CONNECT_BIN_SESSION']);try{this[_0x36e1ee(0x1ba)][_0x36e1ee(0x160)](_0x36e1ee(0x264)+_0xd5830c);const _0x22c52b=GrpcClient[_0x36e1ee(0x16f)]();if(_0x22c52b&&_0x22c52b['getClient']()&&_0x22c52b[_0x36e1ee(0x1ca)]()){this['logger'][_0x36e1ee(0x160)](_0x3b3ac0[_0x36e1ee(0x1ac)]);return;}GrpcClient[_0x36e1ee(0x16f)]()['connect']();const _0xe758da=await GrpcClient[_0x36e1ee(0x16f)]()[_0x36e1ee(0x23e)]();this[_0x36e1ee(0x273)]=!![],this[_0x36e1ee(0x216)](_0xe758da),PerformanceTester[_0x36e1ee(0x251)](PerformanceEvents[_0x36e1ee(0x190)]);}catch(_0x560917){PerformanceTester['end'](PerformanceEvents[_0x36e1ee(0x190)],![],util['format'](_0x560917)),this[_0x36e1ee(0x1ba)][_0x36e1ee(0x1bf)]('Failed\x20to\x20start\x20as\x20child\x20process:\x20'+util['format'](_0x560917));}}static[a71_0x37ba04(0x1ae)](){const _0x4a23de=a71_0x37ba04;try{return BrowserstackCLI[_0x4a23de(0x16f)]()[_0x4a23de(0x262)]();}catch(_0x3ded71){return![];}}['isRunning'](){const _0x49dd55=a71_0x37ba04,_0x40aaf5={};_0x40aaf5[_0x49dd55(0x186)]=function(_0x5c595f,_0x22c9d3){return _0x5c595f!==_0x22c9d3;},_0x40aaf5[_0x49dd55(0x1eb)]=function(_0x19b46b,_0xf1e75b){return _0x19b46b===_0xf1e75b;};const _0x565c23=_0x40aaf5;return CLIUtils[_0x49dd55(0x233)]()||this[_0x49dd55(0x1e0)]&&_0x565c23[_0x49dd55(0x186)](this[_0x49dd55(0x1dc)],null)&&_0x565c23[_0x49dd55(0x1eb)](this['process'][_0x49dd55(0x20c)],null)&&_0x565c23['ILCkR'](GrpcClient[_0x49dd55(0x16f)]()[_0x49dd55(0x200)](),null)&&!GrpcClient[_0x49dd55(0x16f)]()[_0x49dd55(0x1ca)]()[_0x49dd55(0x15e)]||this['isChildConnected']&&_0x565c23['ILCkR'](GrpcClient[_0x49dd55(0x16f)]()[_0x49dd55(0x1ca)](),null)&&!GrpcClient[_0x49dd55(0x16f)]()['getChannel']()[_0x49dd55(0x15e)];}[a71_0x37ba04(0x203)](){const _0x16fb88=a71_0x37ba04;return this['isRunning']()&&this[_0x16fb88(0x228)];}['getBrowserstackConfig'](){return this['browserstackConfig'];}[a71_0x37ba04(0x1a0)](_0x4631ec,_0x157e68,_0x1e92cc=null){const _0x2df505=a71_0x37ba04,_0x344f09={};_0x344f09['uEpOo']=function(_0x2522d7,_0x304d2e){return _0x2522d7||_0x304d2e;},_0x344f09['AVWJD']=function(_0x48d1d7,_0x1300fa){return _0x48d1d7===_0x1300fa;},_0x344f09[_0x2df505(0x276)]=function(_0x548f03,_0x310d59){return _0x548f03||_0x310d59;};const _0x126e11=_0x344f09;this['browserstackConfig']=_0x126e11[_0x2df505(0x246)](_0x4631ec,{}),this[_0x2df505(0x25b)]=_0x157e68,this[_0x2df505(0x172)]=_0x1e92cc,process[_0x2df505(0x253)]['BROWSERSTACK_TURBOSCALE']=this[_0x2df505(0x269)]?.[_0x2df505(0x193)]||![];const _0x9229a9=CLIUtils[_0x2df505(0x270)](),_0x44e230=CLIUtils[_0x2df505(0x26c)]();LoadTestModule[_0x2df505(0x1d5)](this[_0x2df505(0x269)])&&LoadTestModule['setLTSSessionId'](this[_0x2df505(0x269)]||{});const _0x1d32ee=_0x126e11[_0x2df505(0x250)](_0x9229a9[_0x2df505(0x171)][_0x2df505(0x17b)](),FRAMEWORKS[_0x2df505(0x239)][_0x2df505(0x17b)]()),_0x138234=CLI_SUPPORTED_FRAMEWORKS['includes'](_0x9229a9[_0x2df505(0x171)][_0x2df505(0x17b)]()),_0x56c05d=CLI_SUPPORTED_FRAMEWORKS[_0x2df505(0x18c)](_0x44e230['name'][_0x2df505(0x17b)]());helper[_0x2df505(0x1ed)](process[_0x2df505(0x253)]['BROWSERSTACK_TURBOSCALE'])||!(_0x138234&&_0x126e11['iDqKo'](_0x56c05d,_0x1d32ee))?process[_0x2df505(0x253)][_0x2df505(0x26b)]=![]:process['env'][_0x2df505(0x26b)]=!![];}async[a71_0x37ba04(0x204)](){const _0x117048=a71_0x37ba04,_0x4d65e8={};_0x4d65e8[_0x117048(0x1d0)]=_0x117048(0x221),_0x4d65e8[_0x117048(0x1d7)]=_0x117048(0x222);const _0x908e5a=_0x4d65e8;if(!this[_0x117048(0x267)])try{this[_0x117048(0x1ba)]['debug'](_0x908e5a[_0x117048(0x1d0)]),this[_0x117048(0x267)]=await CLIUtils['setupCliPath'](this[_0x117048(0x269)]),!this[_0x117048(0x267)]?this['logger']['error'](_0x908e5a[_0x117048(0x1d7)]):this['logger'][_0x117048(0x1b1)](_0x117048(0x22b)+this[_0x117048(0x267)]);}catch(_0xffde36){this[_0x117048(0x1ba)][_0x117048(0x1bf)]('Error\x20in\x20setupCliPath:\x20'+_0xffde36[_0x117048(0x161)]),this[_0x117048(0x267)]=null;}return this[_0x117048(0x267)];}[a71_0x37ba04(0x1fb)](){const _0x43080b=a71_0x37ba04;return helper[_0x43080b(0x1ed)](process[_0x43080b(0x253)][_0x43080b(0x26b)]);}[a71_0x37ba04(0x1fe)](){const _0x374e03=a71_0x37ba04;return this[_0x374e03(0x21a)];}[a71_0x37ba04(0x1c7)](_0x53525f){const _0x348e55=a71_0x37ba04,_0x3db40a={};_0x3db40a[_0x348e55(0x1c1)]=function(_0x4f9ad7,_0x210c41){return _0x4f9ad7===_0x210c41;},_0x3db40a['aeZyg']=_0x348e55(0x22a),_0x3db40a[_0x348e55(0x19b)]=function(_0x1e4e11,_0x15855e){return _0x1e4e11>_0x15855e;},_0x3db40a[_0x348e55(0x1e9)]=_0x348e55(0x227),_0x3db40a[_0x348e55(0x175)]='setConfig:\x20No\x20fallback\x20config\x20available,\x20using\x20empty\x20object',_0x3db40a[_0x348e55(0x22c)]=_0x348e55(0x257),_0x3db40a[_0x348e55(0x1b2)]=_0x348e55(0x18a);const _0x4f2fd2=_0x3db40a;try{const _0x2b60d9=_0x53525f[_0x348e55(0x1fe)]?_0x53525f[_0x348e55(0x1fe)]():'';if(!_0x2b60d9||_0x4f2fd2[_0x348e55(0x1c1)](_0x2b60d9[_0x348e55(0x16b)](),'')){this['logger'][_0x348e55(0x1b1)](_0x4f2fd2[_0x348e55(0x230)]);this[_0x348e55(0x269)]&&_0x4f2fd2['tnGas'](Object['keys'](this[_0x348e55(0x269)])[_0x348e55(0x1ef)],0x0)?(this[_0x348e55(0x1ba)]['debug'](_0x4f2fd2[_0x348e55(0x1e9)]),this['config']={'server':this[_0x348e55(0x269)][_0x348e55(0x25c)],'hubUrl':this[_0x348e55(0x269)][_0x348e55(0x1af)],'accessibility':this[_0x348e55(0x269)][_0x348e55(0x1e7)]||![]}):(this[_0x348e55(0x1ba)][_0x348e55(0x1b1)](_0x4f2fd2[_0x348e55(0x175)]),this[_0x348e55(0x21a)]={});return;}this[_0x348e55(0x21a)]=JSON[_0x348e55(0x159)](_0x2b60d9),this['logger'][_0x348e55(0x160)](_0x4f2fd2[_0x348e55(0x22c)]);}catch(_0xb2c5b6){this[_0x348e55(0x1ba)]['error']('setConfig:\x20error='+util['format'](_0xb2c5b6)),this[_0x348e55(0x269)]&&_0x4f2fd2['tnGas'](Object['keys'](this[_0x348e55(0x269)])[_0x348e55(0x1ef)],0x0)?(this[_0x348e55(0x1ba)][_0x348e55(0x1b1)](_0x4f2fd2[_0x348e55(0x1b2)]),this[_0x348e55(0x21a)]={'server':this[_0x348e55(0x269)][_0x348e55(0x25c)],'hubUrl':this[_0x348e55(0x269)][_0x348e55(0x1af)],'accessibility':this[_0x348e55(0x269)][_0x348e55(0x1e7)]||![]}):this[_0x348e55(0x21a)]={};}}[a71_0x37ba04(0x21f)](){const _0x2cc1c2=a71_0x37ba04,_0x20830a={};_0x20830a[_0x2cc1c2(0x1e8)]=_0x2cc1c2(0x1a4),_0x20830a[_0x2cc1c2(0x17c)]=_0x2cc1c2(0x206),_0x20830a[_0x2cc1c2(0x15a)]=_0x2cc1c2(0x23b);const _0x470b09=_0x20830a;try{if(!this[_0x2cc1c2(0x269)]){this[_0x2cc1c2(0x1ba)]['debug'](_0x470b09[_0x2cc1c2(0x1e8)]);return;}const _0x785931=this['getConfig']();if(!_0x785931){this[_0x2cc1c2(0x1ba)][_0x2cc1c2(0x1b1)](_0x470b09[_0x2cc1c2(0x17c)]);return;}!helper['isUndefined'](_0x785931['accessibility'])&&(this[_0x2cc1c2(0x269)][_0x2cc1c2(0x1e7)]=_0x785931[_0x2cc1c2(0x1e7)],this[_0x2cc1c2(0x1ba)][_0x2cc1c2(0x1b1)](_0x2cc1c2(0x1f4)+_0x785931['accessibility'])),!helper['isUndefined'](_0x785931[_0x2cc1c2(0x1c5)])&&(this[_0x2cc1c2(0x269)][_0x2cc1c2(0x1c5)]=_0x785931['accessibilityOptions'],this[_0x2cc1c2(0x1ba)][_0x2cc1c2(0x1b1)](_0x470b09[_0x2cc1c2(0x15a)]));}catch(_0xccc0b8){this[_0x2cc1c2(0x1ba)][_0x2cc1c2(0x1bf)](_0x2cc1c2(0x163)+util['format'](_0xccc0b8));}}[a71_0x37ba04(0x274)](_0xa95d85){const _0x55afd0=a71_0x37ba04;try{this[_0x55afd0(0x1f1)]=_0xa95d85[_0x55afd0(0x215)]()['split'](','),this[_0x55afd0(0x1ba)][_0x55afd0(0x160)](_0x55afd0(0x17d)+JSON[_0x55afd0(0x224)](this['cliArgs']));}catch(_0x152235){this[_0x55afd0(0x1ba)][_0x55afd0(0x1bf)](_0x55afd0(0x24a)+util[_0x55afd0(0x1dd)](_0x152235));}}[a71_0x37ba04(0x215)](){return this['cliArgs'];}[a71_0x37ba04(0x20f)](){const _0x42785e=a71_0x37ba04,_0x342b91={'MTHJF':function(_0x4478c7,_0x435988){return _0x4478c7===_0x435988;},'RAwaO':function(_0x151e31,_0x20d33d){return _0x151e31(_0x20d33d);},'fFlyn':_0x42785e(0x232)},_0x270742=CLIUtils[_0x42785e(0x270)]();if(_0x342b91[_0x42785e(0x1ab)](_0x270742[_0x42785e(0x171)][_0x42785e(0x17b)](),FRAMEWORKS[_0x42785e(0x1df)]['toLowerCase']()))this[_0x42785e(0x1c0)]=new PlaywrightTestFramework([_0x270742['name']],_0x270742[_0x42785e(0x1da)]);else{if(_0x342b91['MTHJF'](_0x270742['name']['toLowerCase'](),FRAMEWORKS[_0x42785e(0x207)][_0x42785e(0x17b)]()))this[_0x42785e(0x1c0)]=new CucumberTestFramework([_0x270742['name']],_0x270742[_0x42785e(0x1da)]);else{if(_0x342b91[_0x42785e(0x1ab)](_0x270742['name']['toLowerCase'](),FRAMEWORKS[_0x42785e(0x26f)][_0x42785e(0x17b)]()))this['testFramework']=new JestTestFramework([_0x270742[_0x42785e(0x171)]],_0x270742[_0x42785e(0x1da)]);else{if(_0x342b91[_0x42785e(0x1ab)](_0x270742[_0x42785e(0x171)][_0x42785e(0x17b)](),FRAMEWORKS[_0x42785e(0x239)][_0x42785e(0x17b)]())){const _0x21a9c7=_0x342b91[_0x42785e(0x252)](require,_0x342b91[_0x42785e(0x1fa)]);this['testFramework']=new _0x21a9c7([_0x270742[_0x42785e(0x171)]],_0x270742[_0x42785e(0x1da)]);}}}}}[a71_0x37ba04(0x225)](){const _0x30bfa3=a71_0x37ba04,_0x30bbdb={};_0x30bbdb[_0x30bfa3(0x1a7)]=function(_0x5f1eb7,_0x1a14a5){return _0x5f1eb7===_0x1a14a5;};const _0x4c159b=_0x30bbdb,_0x22b316=CLIUtils[_0x30bfa3(0x26c)]();if(_0x4c159b[_0x30bfa3(0x1a7)](_0x22b316[_0x30bfa3(0x171)][_0x30bfa3(0x17b)](),FRAMEWORKS['PLAYWRIGHT'][_0x30bfa3(0x17b)]()))this[_0x30bfa3(0x1cd)]=new PlaywrightAutomationFramework(_0x22b316['name'],_0x22b316[_0x30bfa3(0x1da)]);else _0x4c159b[_0x30bfa3(0x1a7)](_0x22b316[_0x30bfa3(0x171)][_0x30bfa3(0x17b)](),FRAMEWORKS[_0x30bfa3(0x1d8)][_0x30bfa3(0x17b)]())&&(this[_0x30bfa3(0x1cd)]=new PuppeteerAutomationFramework(_0x22b316[_0x30bfa3(0x171)],_0x22b316[_0x30bfa3(0x1da)]));}[a71_0x37ba04(0x219)](){return this['testFramework'];}[a71_0x37ba04(0x1f9)](){const _0x36c944=a71_0x37ba04;return this[_0x36c944(0x1cd)];}['getBrowserstackCliConfig'](){const _0x311ee5=a71_0x37ba04;return this[_0x311ee5(0x172)];}['getBrowserstackConfigPath'](){const _0x52d47a=a71_0x37ba04;return this[_0x52d47a(0x25b)];}}module['exports']=BrowserstackCLI;
|
|
1
|
+
const a71_0x4e21af=a71_0x4ff8;function a71_0x4ff8(_0x2da8a9,_0x28f361){const _0x2de295=a71_0x2de2();return a71_0x4ff8=function(_0x4ff89a,_0x4e8282){_0x4ff89a=_0x4ff89a-0x176;let _0x3b600b=_0x2de295[_0x4ff89a];return _0x3b600b;},a71_0x4ff8(_0x2da8a9,_0x28f361);}function a71_0x2de2(){const _0xe6940d=['dfAYG','Accessibility\x20initialization\x20failed\x20with\x20','stop:\x20shutting\x20down\x20CLI','getInstance','HashedID','xpnTx','_modulesLoaded','PLAYWRIGHT','loadModules:\x20skipping\x20driver\x20module\x20for\x20observability-only\x20framework','getCliArgs','iXdrg','connect','OcbtB','startMain','KhVyS','Error\x20in\x20setupCliPath:\x20','setConfig:\x20Empty\x20or\x20missing\x20config\x20string\x20from\x20response','process','O11yHashedID','../../helpers/helper.js','TestHubModule','ISETY','Tgehg','format','twpkn','getSuccess','isBootstrapped','stderr','getClient','syncAccessibilityConfig:\x20browserstackConfig\x20not\x20set,\x20skipping\x20sync','spawn\x20succeeded\x20on\x20attempt\x20','getAutomationFramework','BROWSERSTACK_CLI_ENABLED','warn','stop:\x20CLI\x20is\x20not\x20running,\x20skipping\x20stop','SDK_CLI_START','isClosed','initialized','parse','app','browserstackCliConfig','isUndefined','aaXVW','stringify','jSGNL','client','connectBinSession','spawning\x20command=\x27','connected','zumca','exit','zWqjj','RqcJy','KEY_CUSTOM_TAGS','browserstackConfig','fwdto','setCliArgs:\x20error=','../../helpers/classLogger.js','getAccessibility','key','hubUrl','0|3|5|4|2|6|7|1','IzGLi','LZhUB','ZzyYV','20PjvLHc','SDK_CLI_ON_BOOTSTRAP','getBrowserstackCliConfig','CCAQL','test','nguvP','_spawnAndAwaitReady','BROWSERSTACK_CLI_ENV','aOqXx','setConfig:\x20Using\x20browserstackConfig\x20as\x20fallback','loadModules',',\x20retrying\x20in\x20','BROWSERSTACK_TURBOSCALE','XqdGz','SDK_CLI_BIN_PATH','wZcNO','hQMWl','cliParams','setConfig:\x20Using\x20browserstackConfig\x20after\x20parse\x20error','\x20o11y_uuid=','../../helpers/performance/constants','1041930bTJhnv','Starting\x20as\x20child\x20process\x20with\x20session\x20ID:\x20','CLI\x20binary\x20path\x20resolved\x20to:\x20','getTesthub','):\x20','faWdq','stop:\x20channel\x20closed','unConfigureModules','setCliArgs','configure','startChild','child_process','CLI\x20process\x20exited\x20with\x20code\x20','slice','startMain:\x20main-process\x20started','wuJcG','env','stdout','AVJLL','XFPzv','clearAttachments','1514688OzjbRM','errorTraceId','errorsList','startMain:\x20Starting\x20main\x20process','3786839otEicP','MODULE_NAME','SDK_CLI_ON_STOP','CLI\x20params\x20loaded:\x20','ZEINB','isTrue','isMainConnected','bdfFd','trim','exports','isCLIEnabled','close','logger','KJgbI','getConfig','pid','CUCUMBER','Error\x20Code:\x20','getAutomationFrameworkDetail','Failed\x20to\x20get\x20CLI\x20binary\x20path.\x20CLI\x20setup\x20failed.','exitCode','BuildLink','5668784rnyusp','ms...','TfefJ','stack','OONcE','info','stop:\x20CLI\x20process\x20exited','turboScale','IlRDY','PTFyC','getTestFramework','killed','version','RliFs','./modules/playwrightDriverModule.js','toObject','dlHVz','loadModules:\x20binSessionId=','init','buildLogger','buildHashedId','uKFDB','\x20msg=','setConfig:\x20error=','../../helpers/logger.js','toLowerCase','syncAccessibilityConfig:\x20error=','debug','getCLIParamsForDevEnv','brlxU','getBinSessionId','end','572007ToFoVP','649580zwpKcu','getAutomateBuildlink','shutdown','getCliBinPath','./TestInfo.js','includes','getHashedId','setLTSSessionId','xNUOi','ORVqD','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','./modules/observabilityModule.js','qNNHJ','setBrowserstackConfig','testFramework','GNGDl','error','ready','startChild:\x20client\x20and\x20channel\x20already\x20exist,\x20stopping\x20here','jeUuH','loadCliParams','../utils/constants.js','QlRiP','HekYd','./uploadAttachmentsManager.js','sdk','modules','VjIrs','aMBuW','loading\x20Modules.','\x20errors:','Error\x20Trace\x20ID:\x20','stop','getTestDetails','./modules/accessibilityModule.js','startBinSession','Disabling\x20CLI.','setupAutomationFramework','vtFtq','data','cliArgs','./cliUtils.js','sPYAq','WYelM','./framework/newmanTestFramework.js','NEWMAN','getTestFrameworkDetail','binSessionId','start','ipCpt','Setting\x20up\x20CLI\x20binary\x20path...','stop:\x20process\x20exit\x20timeout,\x20forcing\x20kill','Accessibility\x20success=','function','isChildConnected','tHPci','\x20hashed_id=','split','HTblk','zrxhd','keys','FEyYZ','kJmia','getChannel','./grpcClient.js','SDK_CONNECT_BIN_SESSION','isLTSSession','bBDDJ','isDevelopmentEnv','toString','JEST','PUPPETEER','accessibilityOptions','length','./framework/constants/testFrameworkConstants.js','name','hvwBm','code','stop:\x20error\x20in\x20stop\x20session\x20exception=','isRunning','syncAccessibilityConfig','./framework/jestTestFramework.js','Wjqbg','accessibility','loadModules:\x20Loading\x20modules','oMcQD','syncAccessibilityConfig:\x20CLI\x20config\x20not\x20available,\x20skipping\x20sync','removeAllListeners','QTdvt','EzsmY','getBrowserstackConfig','message','A11yEnabled','server','stopBinSession','CLIUtils.setupCliPath\x20returned\x20null','automationFramework','./framework/cucumberTestFramework.js','kill','cQJiz','config','Failed\x20to\x20start\x20as\x20child\x20process:\x20','testhubConfig','bmYHB','QZvzw','stop:\x20stopBinSession\x20build_link=','wNleY','20308860WJyIQn','./framework/playwrightTestFramework.js','wUBLs','mlwWT','resolve','./modules/puppeteerDriverModule.js','IERsS','2TAazEi','setupTestFramework'];a71_0x2de2=function(){return _0xe6940d;};return a71_0x2de2();}(function(_0x3efd7d,_0x59a4d7){const _0x15686b=a71_0x4ff8,_0x587d23=_0x3efd7d();while(!![]){try{const _0xc94c09=parseInt(_0x15686b(0x1d4))/0x1*(-parseInt(_0x15686b(0x247))/0x2)+parseInt(_0x15686b(0x185))/0x3+-parseInt(_0x15686b(0x28a))/0x4*(parseInt(_0x15686b(0x1d5))/0x5)+parseInt(_0x15686b(0x19a))/0x6+-parseInt(_0x15686b(0x19e))/0x7+-parseInt(_0x15686b(0x1b4))/0x8+parseInt(_0x15686b(0x240))/0x9;if(_0xc94c09===_0x59a4d7)break;else _0x587d23['push'](_0x587d23['shift']());}catch(_0x9db337){_0x587d23['push'](_0x587d23['shift']());}}}(a71_0x2de2,0x5e070));const {spawn}=require(a71_0x4e21af(0x190)),GrpcClient=require(a71_0x4e21af(0x215)),util=require('util'),CLIUtils=require(a71_0x4e21af(0x1fe)),PlaywrightAutomationFramework=require('./framework/playwrightAutomationFramework.js'),PuppeteerAutomationFramework=require('./framework/puppeteerAutomationFramework.js'),PlaywrightTestFramework=require(a71_0x4e21af(0x241)),CucumberTestFramework=require(a71_0x4e21af(0x236)),JestTestFramework=require(a71_0x4e21af(0x226)),{createClassLogger}=require(a71_0x4e21af(0x282)),PerformanceTester=require('../../helpers/performance/performance-tester.js'),{EVENTS:PerformanceEvents}=require(a71_0x4e21af(0x184)),AccessibilityModule=require(a71_0x4e21af(0x1f7)),{CLI_SUPPORTED_FRAMEWORKS,FRAMEWORKS,BINARY_BUSY_ERROR_CODES,MAX_SPAWN_RETRIES,SPAWN_RETRY_DELAY_MS}=require(a71_0x4e21af(0x1ea)),helper=require(a71_0x4e21af(0x25c)),TestFrameworkConstants=require(a71_0x4e21af(0x21f)),buildLogger=require(a71_0x4e21af(0x1cc))[a71_0x4e21af(0x1c7)],LoadTestModule=require('./modules/loadTestModule.js'),TestInfo=require(a71_0x4e21af(0x1d9));class BrowserstackCLI{static #instance=null;static [a71_0x4e21af(0x1b3)]=null;static [a71_0x4e21af(0x24d)]=null;static [a71_0x4e21af(0x25b)]=null;static [a71_0x4e21af(0x231)]=![];[a71_0x4e21af(0x25a)]=null;[a71_0x4e21af(0x1a4)]=![];[a71_0x4e21af(0x20b)]=![];[a71_0x4e21af(0x24f)]=![];[a71_0x4e21af(0x204)]=null;[a71_0x4e21af(0x1ef)]={};[a71_0x4e21af(0x1e3)]=null;[a71_0x4e21af(0x235)]=null;[a71_0x4e21af(0x1aa)]=createClassLogger('BrowserstackCLI');constructor(){const _0x113ae8=a71_0x4e21af;this[_0x113ae8(0x26e)]=![],this['config']={},this[_0x113ae8(0x1fd)]={},this['browserstackConfig']={};}static[a71_0x4e21af(0x24c)](){return!BrowserstackCLI.#instance&&(BrowserstackCLI.#instance=new BrowserstackCLI()),BrowserstackCLI.#instance;}async['bootstrap'](){const _0xf57d22=a71_0x4e21af,_0x386934={};_0x386934[_0xf57d22(0x1bd)]=_0xf57d22(0x1f9);const _0x13dc9f=_0x386934;if(helper['isFalse'](process[_0xf57d22(0x195)][_0xf57d22(0x269)])){this[_0xf57d22(0x1aa)][_0xf57d22(0x1b9)](_0x13dc9f[_0xf57d22(0x1bd)]);return;}PerformanceTester[_0xf57d22(0x205)](PerformanceEvents[_0xf57d22(0x28b)]);try{const _0x9c3535=process[_0xf57d22(0x195)]['BROWSERSTACK_CLI_BIN_SESSION_ID']||null;this[_0xf57d22(0x1fa)](),this[_0xf57d22(0x248)]();if(_0x9c3535){await this[_0xf57d22(0x18f)](_0x9c3535),PerformanceTester['end'](PerformanceEvents[_0xf57d22(0x28b)]);return;}await this[_0xf57d22(0x256)]();}catch(_0x50e4d5){this[_0xf57d22(0x1aa)]['error']('bootstrap:\x20failed\x20to\x20bootstrap='+(_0x50e4d5[_0xf57d22(0x1b7)]||_0x50e4d5)),await this['stop'](),PerformanceTester[_0xf57d22(0x1d3)](PerformanceEvents[_0xf57d22(0x28b)],![],util[_0xf57d22(0x260)](_0x50e4d5));}}async[a71_0x4e21af(0x256)](){const _0x5d65e7=a71_0x4e21af,_0x33b027={};_0x33b027[_0x5d65e7(0x1f1)]=_0x5d65e7(0x19d),_0x33b027['XFPzv']=_0x5d65e7(0x193);const _0x270263=_0x33b027;this[_0x5d65e7(0x1aa)]['info'](_0x270263[_0x5d65e7(0x1f1)]),await this[_0x5d65e7(0x205)](),this[_0x5d65e7(0x1aa)][_0x5d65e7(0x1cf)](_0x270263[_0x5d65e7(0x198)]);const _0x402b26=await GrpcClient[_0x5d65e7(0x24c)]()[_0x5d65e7(0x1f8)]();this[_0x5d65e7(0x1a4)]=!![],this[_0x5d65e7(0x17a)](_0x402b26);}['loadModules'](_0x1d1b72){const _0x586d6e=a71_0x4e21af,_0x211067={'kJmia':function(_0x4a8e8b,_0x46b6c7){return _0x4a8e8b(_0x46b6c7);},'oInJN':_0x586d6e(0x1c2),'twpkn':function(_0x4ac7fb,_0x3239e0){return _0x4ac7fb(_0x3239e0);},'qzlCM':'./modules/testhubModule.js','sPYAq':function(_0x2d9294,_0x5f50a1){return _0x2d9294(_0x5f50a1);},'nRFJT':_0x586d6e(0x1e0),'QTdvt':_0x586d6e(0x229),'faWdq':'getObservability','wUBLs':_0x586d6e(0x283),'Tgehg':_0x586d6e(0x262),'KJgbI':function(_0x254527,_0x23a728){return _0x254527||_0x23a728;},'TfefJ':function(_0x53f986,_0x2a537e){return _0x53f986!==_0x2a537e;},'WYelM':function(_0x27e4b1,_0x12a31e){return _0x27e4b1===_0x12a31e;},'wuJcG':_0x586d6e(0x20a),'brlxU':function(_0x47fe7e,_0x45b12d){return _0x47fe7e&&_0x45b12d;},'RliFs':function(_0xd5ff07,_0x2090f4){return _0xd5ff07===_0x2090f4;},'vtFtq':_0x586d6e(0x251),'oMcQD':_0x586d6e(0x245)},_0x453076=_0x211067[_0x586d6e(0x213)](require,_0x211067['oInJN']),_0x929daf=_0x211067['twpkn'](require,_0x211067['qzlCM']),_0x3383c3=_0x211067[_0x586d6e(0x1ff)](require,_0x211067['nRFJT']);this[_0x586d6e(0x1aa)]['info'](_0x211067[_0x586d6e(0x22d)]),this[_0x586d6e(0x204)]=_0x1d1b72[_0x586d6e(0x1d2)](),this['logger'][_0x586d6e(0x1b9)](_0x586d6e(0x1c5)+this[_0x586d6e(0x204)]),this['setConfig'](_0x1d1b72),this[_0x586d6e(0x225)]();!this['isChildConnected']&&this[_0x586d6e(0x18d)](_0x1d1b72);const _0x2f7a4f=_0x211067[_0x586d6e(0x18a)],_0x1fa80b=_0x211067[_0x586d6e(0x242)],_0x5b8216=_0x211067[_0x586d6e(0x25f)],_0x271d8e=_0x1d1b72[_0x2f7a4f]()&&_0x1d1b72[_0x2f7a4f]()[_0x5b8216](),_0x2cc74a=_0x1d1b72[_0x1fa80b]()&&_0x1d1b72[_0x1fa80b]()[_0x5b8216](),_0x1f0a1f=process[_0x586d6e(0x195)][_0x586d6e(0x1df)]&&JSON[_0x586d6e(0x26f)](process['env'][_0x586d6e(0x1df)]);_0x211067[_0x586d6e(0x1ab)](_0x271d8e,_0x2cc74a)&&(this['modules'][_0x929daf['MODULE_NAME']]=new _0x929daf(_0x1d1b72[_0x586d6e(0x188)](),_0x1f0a1f));_0x271d8e&&(this['modules'][_0x3383c3['MODULE_NAME']]=new _0x3383c3(_0x1d1b72[_0x2f7a4f]()));if(_0x2cc74a){this['modules'][AccessibilityModule[_0x586d6e(0x19f)]]=new AccessibilityModule(_0x1d1b72[_0x1fa80b]());const _0x240cb8=this['config']&&_0x211067[_0x586d6e(0x1b6)](this[_0x586d6e(0x239)][_0x586d6e(0x270)],undefined)&&_0x211067['TfefJ'](this[_0x586d6e(0x239)]['app'],null);BrowserstackCLI[_0x586d6e(0x231)]=!_0x240cb8;}else try{const _0x406968=_0x1d1b72[_0x1fa80b](),_0x303569=_0x406968&&_0x211067[_0x586d6e(0x200)](typeof _0x406968[_0x5b8216],_0x211067[_0x586d6e(0x194)])?!!_0x406968[_0x5b8216]():![];this[_0x586d6e(0x1aa)][_0x586d6e(0x1b9)](_0x586d6e(0x209)+_0x303569);if(_0x211067[_0x586d6e(0x1d1)](!_0x303569,_0x406968)){const _0x2d808f=_0x406968[_0x586d6e(0x1c3)]?_0x406968[_0x586d6e(0x1c3)]():_0x406968;_0x2d808f['errorsList']&&Array['isArray'](_0x2d808f['errorsList'])&&(this[_0x586d6e(0x1aa)]['error'](_0x586d6e(0x24a)+_0x2d808f['errorsList']['length']+_0x586d6e(0x1f3)),_0x2d808f[_0x586d6e(0x19c)]['forEach']((_0x5bbb99,_0x964753)=>{const _0x160149=_0x586d6e;this[_0x160149(0x1aa)][_0x160149(0x1e5)]('Error:\x20['+_0x5bbb99[_0x160149(0x284)]+']\x20'+_0x5bbb99['message']);}),_0x2d808f[_0x586d6e(0x19b)]&&this[_0x586d6e(0x1aa)]['error'](_0x586d6e(0x1f4)+_0x2d808f['errorTraceId']),_0x2d808f[_0x586d6e(0x222)]&&this[_0x586d6e(0x1aa)][_0x586d6e(0x1e5)](_0x586d6e(0x1af)+_0x2d808f['code']));}}catch(_0x4f3fb5){this[_0x586d6e(0x1aa)][_0x586d6e(0x1e5)]('Error\x20reading\x20accessibility\x20success\x20value:\x20'+_0x4f3fb5);}const _0x1adf12=CLIUtils['getAutomationFrameworkDetail']();if(_0x211067['RliFs'](_0x1adf12['name'][_0x586d6e(0x1cd)](),FRAMEWORKS[_0x586d6e(0x202)][_0x586d6e(0x1cd)]()))this['logger']['info'](_0x211067[_0x586d6e(0x1fb)]);else{if(_0x211067[_0x586d6e(0x1c1)](_0x1adf12['name'][_0x586d6e(0x1cd)](),FRAMEWORKS[_0x586d6e(0x21c)][_0x586d6e(0x1cd)]())){const _0x3826a8=_0x211067[_0x586d6e(0x261)](require,_0x211067[_0x586d6e(0x22a)]);this['modules'][_0x3826a8[_0x586d6e(0x19f)]]=new _0x3826a8(_0x1f0a1f);}else this['modules'][_0x453076['MODULE_NAME']]=new _0x453076(_0x1f0a1f);}this[_0x586d6e(0x24f)]=!![],this['configureModules']();}['getAccessibilityModule'](){const _0x12c189=a71_0x4e21af;return this[_0x12c189(0x1ef)][AccessibilityModule[_0x12c189(0x19f)]];}async['configureModules'](){const _0x7b750=a71_0x4e21af;for(const _0x279239 in this['modules']){const _0x126188=this[_0x7b750(0x1ef)][_0x279239];await _0x126188[_0x7b750(0x18e)](this['binSessionId'],0x0,GrpcClient[_0x7b750(0x24c)]()[_0x7b750(0x276)],this[_0x7b750(0x239)]);}}async[a71_0x4e21af(0x205)](){const _0x54a5b5=a71_0x4e21af,_0x2235bc={};_0x2235bc[_0x54a5b5(0x28d)]=_0x54a5b5(0x1b1),_0x2235bc['zumca']=_0x54a5b5(0x1ee),_0x2235bc[_0x54a5b5(0x1e1)]=function(_0x51b5a3,_0x576927){return _0x51b5a3<=_0x576927;},_0x2235bc[_0x54a5b5(0x1a2)]=function(_0x1376b2,_0x50c80c){return _0x1376b2>_0x50c80c;},_0x2235bc[_0x54a5b5(0x246)]=function(_0x49a7a6,_0x52fbd3){return _0x49a7a6<_0x52fbd3;},_0x2235bc[_0x54a5b5(0x23c)]='SIGKILL';const _0x14fc51=_0x2235bc;PerformanceTester[_0x54a5b5(0x205)](PerformanceEvents[_0x54a5b5(0x26c)]);if(CLIUtils['isDevelopmentEnv']())return this[_0x54a5b5(0x1e9)](CLIUtils[_0x54a5b5(0x1d0)]()),PerformanceTester[_0x54a5b5(0x1d3)](PerformanceEvents[_0x54a5b5(0x26c)]),Promise[_0x54a5b5(0x244)]();if(this[_0x54a5b5(0x25a)]&&this[_0x54a5b5(0x25a)][_0x54a5b5(0x279)])return PerformanceTester[_0x54a5b5(0x1d3)](PerformanceEvents[_0x54a5b5(0x26c)]),Promise[_0x54a5b5(0x244)]();const _0x2bd06d=await this[_0x54a5b5(0x1d8)]();if(!_0x2bd06d)throw new Error(_0x14fc51[_0x54a5b5(0x28d)]);const _0x1022bd=[_0x2bd06d,_0x14fc51[_0x54a5b5(0x27a)]];this[_0x54a5b5(0x1aa)][_0x54a5b5(0x1b9)](_0x54a5b5(0x278)+_0x1022bd+'\x27');for(let _0x54a9d9=0x1;_0x14fc51['qNNHJ'](_0x54a9d9,MAX_SPAWN_RETRIES);_0x54a9d9++){try{await this[_0x54a5b5(0x176)](_0x1022bd);_0x14fc51['ZEINB'](_0x54a9d9,0x1)&&this[_0x54a5b5(0x1aa)]['info'](_0x54a5b5(0x267)+_0x54a9d9+'/'+MAX_SPAWN_RETRIES);break;}catch(_0x26f6e1){if(BINARY_BUSY_ERROR_CODES[_0x54a5b5(0x1da)](_0x26f6e1[_0x54a5b5(0x222)])&&_0x14fc51[_0x54a5b5(0x246)](_0x54a9d9,MAX_SPAWN_RETRIES))this['logger']['warn']('spawn\x20'+_0x26f6e1[_0x54a5b5(0x222)]+'\x20on\x20attempt\x20'+_0x54a9d9+'/'+MAX_SPAWN_RETRIES+_0x54a5b5(0x17b)+SPAWN_RETRY_DELAY_MS+_0x54a5b5(0x1b5)),this[_0x54a5b5(0x25a)]&&(this['process']['removeAllListeners'](),!this[_0x54a5b5(0x25a)][_0x54a5b5(0x1bf)]&&this[_0x54a5b5(0x25a)][_0x54a5b5(0x237)](_0x14fc51[_0x54a5b5(0x23c)]),this[_0x54a5b5(0x25a)]=null),await new Promise(_0x9eee5f=>setTimeout(_0x9eee5f,SPAWN_RETRY_DELAY_MS));else throw _0x26f6e1;}}}[a71_0x4e21af(0x176)](_0x36ec8d){const _0x2c0b22=a71_0x4e21af,_0x20b4a8={'fwdto':function(_0x308ea9,_0x2a5ae1){return _0x308ea9!==_0x2a5ae1;},'FEyYZ':function(_0x78e831,_0x2b55b4){return _0x78e831!==_0x2b55b4;},'IzGLi':_0x2c0b22(0x1e6),'rxkcW':_0x2c0b22(0x286),'xNUOi':_0x2c0b22(0x1e5),'ipCpt':_0x2c0b22(0x1a9),'iXdrg':function(_0x492e06){return _0x492e06();},'uKFDB':function(_0x46bb31,_0x45e010){return _0x46bb31(_0x45e010);},'zWqjj':function(_0x4c9705,_0x5e4cfe,_0x1356cd,_0xff9672){return _0x4c9705(_0x5e4cfe,_0x1356cd,_0xff9672);},'fJvCn':function(_0x19786e,_0x164257){return _0x19786e(_0x164257);},'wNleY':'failed\x20to\x20start\x20CLI,\x20no\x20PID\x20found','wZcNO':_0x2c0b22(0x1fc)};return new Promise((_0x50659b,_0x5762ce)=>{const _0x311e1e=_0x2c0b22,_0xa91d33={'jeUuH':function(_0x544e24,_0x22763a){const _0xdf5de8=a71_0x4ff8;return _0x20b4a8[_0xdf5de8(0x212)](_0x544e24,_0x22763a);},'ORVqD':function(_0x3194c0,_0x5a1ebb){const _0x11b851=a71_0x4ff8;return _0x20b4a8[_0x11b851(0x1c9)](_0x3194c0,_0x5a1ebb);}},_0x1b1b1b={};_0x1b1b1b[_0x311e1e(0x195)]=process[_0x311e1e(0x195)],this['process']=_0x20b4a8[_0x311e1e(0x27c)](spawn,_0x36ec8d[0x0],_0x36ec8d[_0x311e1e(0x192)](0x1),_0x1b1b1b);if(!this['process']||!this[_0x311e1e(0x25a)][_0x311e1e(0x1ad)]){_0x20b4a8['fJvCn'](_0x5762ce,new Error(_0x20b4a8[_0x311e1e(0x23f)]));return;}const _0x6db023={};this[_0x311e1e(0x25a)][_0x311e1e(0x196)]['on'](_0x20b4a8['wZcNO'],_0x54b000=>{const _0x32951f=_0x311e1e,_0x47cbed={'dlHVz':function(_0x599b2e,_0x465362){const _0x5a2056=a71_0x4ff8;return _0x20b4a8[_0x5a2056(0x280)](_0x599b2e,_0x465362);}},_0x59516a=_0x54b000['toString']()['trim']()[_0x32951f(0x20e)]('\x0a');for(const _0x3603eb of _0x59516a){if(/^(id|listen|port)=.*$/[_0x32951f(0x28e)](_0x3603eb)){const [_0x5a819b,_0x44c402]=_0x3603eb[_0x32951f(0x20e)]('=',0x2);_0x20b4a8['FEyYZ'](_0x44c402,undefined)&&(_0x6db023[_0x5a819b]=_0x44c402);}if(_0x3603eb[_0x32951f(0x1cd)]()[_0x32951f(0x1da)](_0x20b4a8[_0x32951f(0x287)])){const _0x546174=_0x20b4a8['rxkcW'][_0x32951f(0x20e)]('|');let _0xe3ee9f=0x0;while(!![]){switch(_0x546174[_0xe3ee9f++]){case'0':this[_0x32951f(0x1e9)](_0x6db023);continue;case'1':return;case'2':this[_0x32951f(0x25a)]['on'](_0x20b4a8[_0x32951f(0x1dd)],_0x6cc2e4=>{const _0x46cf7b=_0x32951f;this['logger'][_0x46cf7b(0x1e5)]('CLI\x20runtime\x20error\x20after\x20ready:\x20code='+_0x6cc2e4['code']+_0x46cf7b(0x1ca)+_0x6cc2e4[_0x46cf7b(0x230)]);});continue;case'3':PerformanceTester[_0x32951f(0x1d3)](PerformanceEvents[_0x32951f(0x26c)]);continue;case'4':this[_0x32951f(0x25a)][_0x32951f(0x22c)](_0x20b4a8[_0x32951f(0x206)]);continue;case'5':this[_0x32951f(0x25a)][_0x32951f(0x22c)](_0x20b4a8[_0x32951f(0x1dd)]);continue;case'6':this[_0x32951f(0x25a)]['on'](_0x20b4a8[_0x32951f(0x206)],_0x3994ef=>{const _0x56697a=_0x32951f;_0x47cbed[_0x56697a(0x1c4)](_0x3994ef,0x0)&&this[_0x56697a(0x1aa)]['error'](_0x56697a(0x191)+_0x3994ef+'\x20after\x20ready\x20—\x20gRPC\x20calls\x20will\x20fail');});continue;case'7':_0x20b4a8[_0x32951f(0x253)](_0x50659b);continue;}break;}}}}),this['process'][_0x311e1e(0x264)]['on'](_0x20b4a8[_0x311e1e(0x17f)],_0x200419=>{const _0x50a80c=_0x311e1e;this[_0x50a80c(0x1aa)][_0x50a80c(0x1e5)]('CLI\x20stderr:\x20'+_0x200419[_0x50a80c(0x21a)]()[_0x50a80c(0x1a6)]());}),this[_0x311e1e(0x25a)]['on'](_0x20b4a8['xNUOi'],_0x142a6f=>{const _0x5c6929=_0x311e1e;_0x6db023['error']='Error\x20in\x20start\x20(code='+_0x142a6f[_0x5c6929(0x222)]+_0x5c6929(0x189)+_0x142a6f[_0x5c6929(0x230)],PerformanceTester['end'](PerformanceEvents[_0x5c6929(0x26c)],![],_0x142a6f),_0x20b4a8['uKFDB'](_0x5762ce,_0x142a6f);}),this[_0x311e1e(0x25a)]['on'](_0x20b4a8[_0x311e1e(0x206)],_0x302126=>{const _0x33f50c=_0x311e1e;_0xa91d33[_0x33f50c(0x1e8)](_0x302126,0x0)&&_0xa91d33[_0x33f50c(0x1de)](_0x5762ce,new Error(_0x33f50c(0x191)+_0x302126));});});}async[a71_0x4e21af(0x1f5)](_0x428618=null){const _0x453642=a71_0x4e21af,_0x309a8f={'XqdGz':_0x453642(0x1ba),'aaXVW':function(_0x1ec059){return _0x1ec059();},'dZFRV':_0x453642(0x208),'OONcE':'SIGKILL','WtXKW':function(_0x2bd19b){return _0x2bd19b();},'hQMWl':_0x453642(0x27b),'zrxhd':function(_0x15edf2,_0x4a6a42,_0x162040){return _0x15edf2(_0x4a6a42,_0x162040);},'HekYd':_0x453642(0x26b),'ramMl':'stop:\x20CLI\x20stop\x20triggered','KhVyS':function(_0x2c3afe,_0x420905){return _0x2c3afe(_0x420905);},'OcbtB':_0x453642(0x1ed),'rWhpH':_0x453642(0x18b),'SkCQN':'stop:\x20error\x20in\x20closing\x20channel:\x20%s','EzsmY':_0x453642(0x24b)};if(!this['isRunning']()){this['logger']['info'](_0x309a8f[_0x453642(0x1ec)]);return;}PerformanceTester[_0x453642(0x205)](PerformanceEvents[_0x453642(0x1a0)]),this[_0x453642(0x1aa)][_0x453642(0x1b9)](_0x309a8f['ramMl']);try{if(this[_0x453642(0x1a4)]){const _0x186657=_0x309a8f[_0x453642(0x257)](require,_0x309a8f[_0x453642(0x255)]),_0x40c755=this[_0x453642(0x1ef)][_0x453642(0x25d)]?.[_0x453642(0x23b)]?.[_0x453642(0x1c3)]()?.[_0x453642(0x1c8)],_0x174dac=TestInfo[_0x453642(0x1f6)](_0x40c755),_0x5abfa3=_0x174dac[TestFrameworkConstants[_0x453642(0x27e)]]||{},_0x23c4bb=await GrpcClient['getInstance']()[_0x453642(0x233)](JSON['stringify'](_0x5abfa3),_0x428618);_0x23c4bb&&_0x23c4bb['getSuccess']()&&_0x23c4bb[_0x453642(0x1d6)]()&&(BrowserstackCLI[_0x453642(0x1b3)]=_0x23c4bb[_0x453642(0x1d6)](),BrowserstackCLI[_0x453642(0x24d)]=_0x23c4bb[_0x453642(0x1db)]()),await _0x186657[_0x453642(0x199)](),TestInfo[_0x453642(0x1d7)](),buildLogger[_0x453642(0x1b9)](_0x453642(0x23e)+BrowserstackCLI[_0x453642(0x1b3)]+_0x453642(0x20d)+BrowserstackCLI['HashedID']+_0x453642(0x183)+BrowserstackCLI[_0x453642(0x25b)]);}await this[_0x453642(0x18c)]();const _0x4486bc=GrpcClient[_0x453642(0x24c)]()[_0x453642(0x214)]();if(_0x4486bc){try{_0x4486bc[_0x453642(0x1a9)](),this[_0x453642(0x1aa)][_0x453642(0x1b9)](_0x309a8f['rWhpH']);}catch(_0x3d20e7){this['logger'][_0x453642(0x1e5)](util[_0x453642(0x260)](_0x309a8f['SkCQN'],_0x3d20e7));}await new Promise(_0x587f2a=>setTimeout(_0x587f2a,0x1388));}this['process']&&this['process'][_0x453642(0x1ad)]&&(this[_0x453642(0x1aa)][_0x453642(0x1b9)](_0x309a8f[_0x453642(0x22e)]),this[_0x453642(0x25a)][_0x453642(0x237)](),await new Promise(_0xea7d09=>{const _0x3a5e2b=_0x453642;let _0x3b92fc=![];this[_0x3a5e2b(0x25a)]['on'](_0x309a8f[_0x3a5e2b(0x180)],()=>{const _0x7c050e=_0x3a5e2b;this[_0x7c050e(0x1aa)][_0x7c050e(0x1b9)](_0x309a8f[_0x7c050e(0x17d)]),_0x3b92fc=!![],PerformanceTester[_0x7c050e(0x1d3)](PerformanceEvents[_0x7c050e(0x1a0)]),_0x309a8f[_0x7c050e(0x273)](_0xea7d09);}),_0x309a8f[_0x3a5e2b(0x210)](setTimeout,()=>{const _0x2bd2c5=_0x3a5e2b;!_0x3b92fc&&(this['logger'][_0x2bd2c5(0x26a)](_0x309a8f['dZFRV']),this[_0x2bd2c5(0x25a)][_0x2bd2c5(0x237)](_0x309a8f[_0x2bd2c5(0x1b8)]),PerformanceTester[_0x2bd2c5(0x1d3)](PerformanceEvents[_0x2bd2c5(0x1a0)]),_0x309a8f['WtXKW'](_0xea7d09));},0xbb8);}));}catch(_0x10f955){PerformanceTester[_0x453642(0x1d3)](PerformanceEvents['SDK_CLI_ON_STOP'],![],util[_0x453642(0x260)](_0x10f955)),this[_0x453642(0x1aa)][_0x453642(0x1e5)](_0x453642(0x223)+(_0x10f955[_0x453642(0x1b7)]||_0x10f955));}_0x428618?this[_0x453642(0x25a)][_0x453642(0x1b2)]=0x1:this[_0x453642(0x25a)][_0x453642(0x1b2)]=0x0,this[_0x453642(0x20b)]=![],this[_0x453642(0x1a4)]=![],process['env'][_0x453642(0x177)]=null;}async[a71_0x4e21af(0x18c)](){const _0x3dce1d=a71_0x4e21af,_0x13eab6={};_0x13eab6[_0x3dce1d(0x23d)]='Unconfiguring\x20modules';const _0x2f4ddd=_0x13eab6;this[_0x3dce1d(0x1aa)][_0x3dce1d(0x1b9)](_0x2f4ddd['QZvzw']);}[a71_0x4e21af(0x1e9)](_0x5346df){const _0x921f2f=a71_0x4e21af;this['logger'][_0x921f2f(0x1b9)](_0x921f2f(0x1a1)+JSON[_0x921f2f(0x274)](_0x5346df)),this[_0x921f2f(0x181)]=_0x5346df,GrpcClient[_0x921f2f(0x24c)]()[_0x921f2f(0x1c6)](_0x5346df);}async[a71_0x4e21af(0x18f)](_0x598719){const _0x368cde=a71_0x4e21af,_0x13efa8={};_0x13efa8['mlwWT']=_0x368cde(0x1e7);const _0x1ceae7=_0x13efa8;PerformanceTester['start'](PerformanceEvents[_0x368cde(0x216)]);try{this['logger'][_0x368cde(0x1b9)](_0x368cde(0x186)+_0x598719);const _0x563ed6=GrpcClient[_0x368cde(0x24c)]();if(_0x563ed6&&_0x563ed6['getClient']()&&_0x563ed6[_0x368cde(0x214)]()){this['logger'][_0x368cde(0x1b9)](_0x1ceae7[_0x368cde(0x243)]);return;}GrpcClient['getInstance']()[_0x368cde(0x254)]();const _0x5cf090=await GrpcClient['getInstance']()[_0x368cde(0x277)]();this[_0x368cde(0x20b)]=!![],this[_0x368cde(0x17a)](_0x5cf090),PerformanceTester['end'](PerformanceEvents[_0x368cde(0x216)]);}catch(_0x509b7e){PerformanceTester[_0x368cde(0x1d3)](PerformanceEvents[_0x368cde(0x216)],![],util[_0x368cde(0x260)](_0x509b7e)),this[_0x368cde(0x1aa)][_0x368cde(0x1e5)](_0x368cde(0x23a)+util[_0x368cde(0x260)](_0x509b7e));}}static[a71_0x4e21af(0x1a8)](){const _0x21d70a=a71_0x4e21af;try{return BrowserstackCLI[_0x21d70a(0x24c)]()[_0x21d70a(0x224)]();}catch(_0x2bbeed){return![];}}['isRunning'](){const _0x1371c4=a71_0x4e21af,_0x48538f={};_0x48538f[_0x1371c4(0x275)]=function(_0x2c8461,_0x1b381c){return _0x2c8461!==_0x1b381c;},_0x48538f[_0x1371c4(0x249)]=function(_0x3154ff,_0x24207b){return _0x3154ff===_0x24207b;},_0x48538f[_0x1371c4(0x25e)]=function(_0x3b8b2d,_0x3b489d){return _0x3b8b2d!==_0x3b489d;},_0x48538f['LZhUB']=function(_0x5c46c7,_0x573a04){return _0x5c46c7!==_0x573a04;};const _0x1c6ed2=_0x48538f;return CLIUtils[_0x1371c4(0x219)]()||this[_0x1371c4(0x1a4)]&&_0x1c6ed2['jSGNL'](this[_0x1371c4(0x25a)],null)&&_0x1c6ed2[_0x1371c4(0x249)](this[_0x1371c4(0x25a)]['exitCode'],null)&&_0x1c6ed2[_0x1371c4(0x25e)](GrpcClient[_0x1371c4(0x24c)]()[_0x1371c4(0x265)](),null)&&!GrpcClient[_0x1371c4(0x24c)]()[_0x1371c4(0x214)]()[_0x1371c4(0x26d)]||this[_0x1371c4(0x20b)]&&_0x1c6ed2[_0x1371c4(0x288)](GrpcClient[_0x1371c4(0x24c)]()[_0x1371c4(0x214)](),null)&&!GrpcClient[_0x1371c4(0x24c)]()[_0x1371c4(0x214)]()[_0x1371c4(0x26d)];}[a71_0x4e21af(0x263)](){const _0x58fc37=a71_0x4e21af;return this[_0x58fc37(0x224)]()&&this['_modulesLoaded'];}[a71_0x4e21af(0x22f)](){const _0x24e827=a71_0x4e21af;return this[_0x24e827(0x27f)];}[a71_0x4e21af(0x1e2)](_0x5e18df,_0x431892,_0x2dfe45=null){const _0x2117d7=a71_0x4e21af,_0xf03295={};_0xf03295[_0x2117d7(0x289)]=function(_0x5dfd9,_0x31e61d){return _0x5dfd9||_0x31e61d;},_0xf03295[_0x2117d7(0x227)]=function(_0x55a9f7,_0x300233){return _0x55a9f7===_0x300233;};const _0x3ff158=_0xf03295;this[_0x2117d7(0x27f)]=_0x3ff158['ZzyYV'](_0x5e18df,{}),this['browserstackConfigPath']=_0x431892,this[_0x2117d7(0x271)]=_0x2dfe45,process[_0x2117d7(0x195)][_0x2117d7(0x17c)]=this[_0x2117d7(0x27f)]?.[_0x2117d7(0x1bb)]||![];const _0x57cb60=CLIUtils[_0x2117d7(0x203)](),_0xc66aeb=CLIUtils[_0x2117d7(0x1b0)]();LoadTestModule[_0x2117d7(0x217)](this[_0x2117d7(0x27f)])&&LoadTestModule[_0x2117d7(0x1dc)](this[_0x2117d7(0x27f)]||{});const _0x1088e0=_0x3ff158[_0x2117d7(0x227)](_0x57cb60[_0x2117d7(0x220)][_0x2117d7(0x1cd)](),FRAMEWORKS[_0x2117d7(0x202)][_0x2117d7(0x1cd)]()),_0x363b3d=CLI_SUPPORTED_FRAMEWORKS['includes'](_0x57cb60[_0x2117d7(0x220)][_0x2117d7(0x1cd)]()),_0x5b8f3d=CLI_SUPPORTED_FRAMEWORKS[_0x2117d7(0x1da)](_0xc66aeb[_0x2117d7(0x220)][_0x2117d7(0x1cd)]());helper['isTrue'](process[_0x2117d7(0x195)][_0x2117d7(0x17c)])||!(_0x363b3d&&_0x3ff158[_0x2117d7(0x289)](_0x5b8f3d,_0x1088e0))?process[_0x2117d7(0x195)][_0x2117d7(0x269)]=![]:process[_0x2117d7(0x195)]['BROWSERSTACK_CLI_ENABLED']=!![];}async['getCliBinPath'](){const _0x278913=a71_0x4e21af,_0x7df278={};_0x7df278['bWLmb']=_0x278913(0x207),_0x7df278['xpnTx']=_0x278913(0x234);const _0x1c533a=_0x7df278;if(!this[_0x278913(0x17e)])try{this[_0x278913(0x1aa)][_0x278913(0x1cf)](_0x1c533a['bWLmb']),this[_0x278913(0x17e)]=await CLIUtils['setupCliPath'](this[_0x278913(0x27f)]),!this[_0x278913(0x17e)]?this['logger'][_0x278913(0x1e5)](_0x1c533a[_0x278913(0x24e)]):this['logger'][_0x278913(0x1cf)](_0x278913(0x187)+this['SDK_CLI_BIN_PATH']);}catch(_0x3caf26){this[_0x278913(0x1aa)][_0x278913(0x1e5)](_0x278913(0x258)+_0x3caf26[_0x278913(0x230)]),this[_0x278913(0x17e)]=null;}return this[_0x278913(0x17e)];}['isCliEnabled'](){const _0x41c377=a71_0x4e21af;return helper[_0x41c377(0x1a3)](process[_0x41c377(0x195)][_0x41c377(0x269)]);}[a71_0x4e21af(0x1ac)](){const _0x4842b8=a71_0x4e21af;return this[_0x4842b8(0x239)];}['setConfig'](_0x181b3f){const _0x34bab3=a71_0x4e21af,_0x317d4c={};_0x317d4c[_0x34bab3(0x20f)]=function(_0x53feca,_0x4137d9){return _0x53feca===_0x4137d9;},_0x317d4c[_0x34bab3(0x27d)]=_0x34bab3(0x259),_0x317d4c[_0x34bab3(0x1eb)]=function(_0xcd0acf,_0x57793a){return _0xcd0acf>_0x57793a;},_0x317d4c['GNGDl']=_0x34bab3(0x179),_0x317d4c['AVJLL']='setConfig:\x20No\x20fallback\x20config\x20available,\x20using\x20empty\x20object',_0x317d4c[_0x34bab3(0x1a5)]=_0x34bab3(0x1f2),_0x317d4c[_0x34bab3(0x1bc)]=function(_0x25470e,_0x31f190){return _0x25470e>_0x31f190;},_0x317d4c[_0x34bab3(0x1f0)]=_0x34bab3(0x182);const _0x3b6bf3=_0x317d4c;try{const _0x4d2609=_0x181b3f[_0x34bab3(0x1ac)]?_0x181b3f[_0x34bab3(0x1ac)]():'';if(!_0x4d2609||_0x3b6bf3[_0x34bab3(0x20f)](_0x4d2609[_0x34bab3(0x1a6)](),'')){this[_0x34bab3(0x1aa)][_0x34bab3(0x1cf)](_0x3b6bf3[_0x34bab3(0x27d)]);this[_0x34bab3(0x27f)]&&_0x3b6bf3[_0x34bab3(0x1eb)](Object[_0x34bab3(0x211)](this[_0x34bab3(0x27f)])[_0x34bab3(0x21e)],0x0)?(this['logger'][_0x34bab3(0x1cf)](_0x3b6bf3[_0x34bab3(0x1e4)]),this[_0x34bab3(0x239)]={'server':this[_0x34bab3(0x27f)][_0x34bab3(0x232)],'hubUrl':this[_0x34bab3(0x27f)][_0x34bab3(0x285)],'accessibility':this[_0x34bab3(0x27f)][_0x34bab3(0x228)]||![]}):(this[_0x34bab3(0x1aa)]['debug'](_0x3b6bf3[_0x34bab3(0x197)]),this[_0x34bab3(0x239)]={});return;}this[_0x34bab3(0x239)]=JSON[_0x34bab3(0x26f)](_0x4d2609),this[_0x34bab3(0x1aa)]['info'](_0x3b6bf3[_0x34bab3(0x1a5)]);}catch(_0x52f92e){this[_0x34bab3(0x1aa)][_0x34bab3(0x1e5)](_0x34bab3(0x1cb)+util[_0x34bab3(0x260)](_0x52f92e)),this['browserstackConfig']&&_0x3b6bf3[_0x34bab3(0x1bc)](Object['keys'](this[_0x34bab3(0x27f)])[_0x34bab3(0x21e)],0x0)?(this['logger']['debug'](_0x3b6bf3[_0x34bab3(0x1f0)]),this[_0x34bab3(0x239)]={'server':this[_0x34bab3(0x27f)][_0x34bab3(0x232)],'hubUrl':this[_0x34bab3(0x27f)][_0x34bab3(0x285)],'accessibility':this[_0x34bab3(0x27f)][_0x34bab3(0x228)]||![]}):this['config']={};}}[a71_0x4e21af(0x225)](){const _0x5f2437=a71_0x4e21af,_0x2063e4={};_0x2063e4['pAbIS']=_0x5f2437(0x266),_0x2063e4[_0x5f2437(0x238)]=_0x5f2437(0x22b),_0x2063e4['hvwBm']='syncAccessibilityConfig:\x20Updated\x20browserstackConfig.accessibilityOptions\x20from\x20CLI\x20response';const _0x292889=_0x2063e4;try{if(!this[_0x5f2437(0x27f)]){this[_0x5f2437(0x1aa)][_0x5f2437(0x1cf)](_0x292889['pAbIS']);return;}const _0x5defee=this[_0x5f2437(0x1ac)]();if(!_0x5defee){this[_0x5f2437(0x1aa)]['debug'](_0x292889[_0x5f2437(0x238)]);return;}!helper[_0x5f2437(0x272)](_0x5defee[_0x5f2437(0x228)])&&(this[_0x5f2437(0x27f)]['accessibility']=_0x5defee[_0x5f2437(0x228)],this[_0x5f2437(0x1aa)][_0x5f2437(0x1cf)]('syncAccessibilityConfig:\x20Updated\x20browserstackConfig.accessibility\x20from\x20CLI\x20response:\x20'+_0x5defee['accessibility'])),!helper[_0x5f2437(0x272)](_0x5defee[_0x5f2437(0x21d)])&&(this[_0x5f2437(0x27f)]['accessibilityOptions']=_0x5defee[_0x5f2437(0x21d)],this[_0x5f2437(0x1aa)][_0x5f2437(0x1cf)](_0x292889[_0x5f2437(0x221)]));}catch(_0x27a7a5){this[_0x5f2437(0x1aa)][_0x5f2437(0x1e5)](_0x5f2437(0x1ce)+util['format'](_0x27a7a5));}}[a71_0x4e21af(0x18d)](_0x193c88){const _0x534aeb=a71_0x4e21af;try{this[_0x534aeb(0x1fd)]=_0x193c88[_0x534aeb(0x252)]()[_0x534aeb(0x20e)](','),this['logger'][_0x534aeb(0x1b9)]('setCliArgs:\x20cliArgs='+JSON['stringify'](this['cliArgs']));}catch(_0x23b626){this['logger'][_0x534aeb(0x1e5)](_0x534aeb(0x281)+util[_0x534aeb(0x260)](_0x23b626));}}[a71_0x4e21af(0x252)](){return this['cliArgs'];}[a71_0x4e21af(0x248)](){const _0x16644e=a71_0x4e21af,_0x470502={'bBDDJ':function(_0x33246b,_0x311c6d){return _0x33246b===_0x311c6d;},'tHPci':function(_0x28bf32,_0x5f0b23){return _0x28bf32(_0x5f0b23);},'aOqXx':_0x16644e(0x201)},_0x2b1320=CLIUtils[_0x16644e(0x203)]();if(_0x470502['bBDDJ'](_0x2b1320[_0x16644e(0x220)][_0x16644e(0x1cd)](),FRAMEWORKS['PLAYWRIGHT'][_0x16644e(0x1cd)]()))this[_0x16644e(0x1e3)]=new PlaywrightTestFramework([_0x2b1320[_0x16644e(0x220)]],_0x2b1320['version']);else{if(_0x470502[_0x16644e(0x218)](_0x2b1320[_0x16644e(0x220)][_0x16644e(0x1cd)](),FRAMEWORKS[_0x16644e(0x1ae)][_0x16644e(0x1cd)]()))this['testFramework']=new CucumberTestFramework([_0x2b1320['name']],_0x2b1320[_0x16644e(0x1c0)]);else{if(_0x470502['bBDDJ'](_0x2b1320[_0x16644e(0x220)][_0x16644e(0x1cd)](),FRAMEWORKS[_0x16644e(0x21b)][_0x16644e(0x1cd)]()))this[_0x16644e(0x1e3)]=new JestTestFramework([_0x2b1320[_0x16644e(0x220)]],_0x2b1320[_0x16644e(0x1c0)]);else{if(_0x470502['bBDDJ'](_0x2b1320[_0x16644e(0x220)][_0x16644e(0x1cd)](),FRAMEWORKS[_0x16644e(0x202)][_0x16644e(0x1cd)]())){const _0x23d6f2=_0x470502[_0x16644e(0x20c)](require,_0x470502[_0x16644e(0x178)]);this[_0x16644e(0x1e3)]=new _0x23d6f2([_0x2b1320[_0x16644e(0x220)]],_0x2b1320[_0x16644e(0x1c0)]);}}}}}['setupAutomationFramework'](){const _0x36880d=a71_0x4e21af,_0x26cda1={};_0x26cda1['nurAo']=function(_0x37e6cd,_0x1a5b7f){return _0x37e6cd===_0x1a5b7f;},_0x26cda1[_0x36880d(0x28f)]=function(_0x4898c6,_0x576684){return _0x4898c6===_0x576684;};const _0x134fe4=_0x26cda1,_0x22d8f7=CLIUtils[_0x36880d(0x1b0)]();if(_0x134fe4['nurAo'](_0x22d8f7[_0x36880d(0x220)]['toLowerCase'](),FRAMEWORKS[_0x36880d(0x250)][_0x36880d(0x1cd)]()))this['automationFramework']=new PlaywrightAutomationFramework(_0x22d8f7[_0x36880d(0x220)],_0x22d8f7[_0x36880d(0x1c0)]);else _0x134fe4[_0x36880d(0x28f)](_0x22d8f7[_0x36880d(0x220)][_0x36880d(0x1cd)](),FRAMEWORKS[_0x36880d(0x21c)][_0x36880d(0x1cd)]())&&(this[_0x36880d(0x235)]=new PuppeteerAutomationFramework(_0x22d8f7[_0x36880d(0x220)],_0x22d8f7['version']));}[a71_0x4e21af(0x1be)](){const _0x4c46fe=a71_0x4e21af;return this[_0x4c46fe(0x1e3)];}[a71_0x4e21af(0x268)](){const _0x1c6104=a71_0x4e21af;return this[_0x1c6104(0x235)];}[a71_0x4e21af(0x28c)](){const _0x12385c=a71_0x4e21af;return this[_0x12385c(0x271)];}['getBrowserstackConfigPath'](){return this['browserstackConfigPath'];}}module[a71_0x4e21af(0x1a7)]=BrowserstackCLI;
|