browserstack-node-sdk 1.54.1 → 1.55.0
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 +3 -3
- 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 +2 -0
- package/src/bin/newman/helper.js +1 -0
- package/src/bin/newman/reporter/index.js +1 -0
- package/src/bin/newman/scriptRunner.js +2 -0
- 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 -0
- 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
|
|
1
|
+
const a53_0xd88eb=a53_0xdb4f;(function(_0xa763cf,_0xd60b3f){const _0x45d2f4=a53_0xdb4f,_0x125692=_0xa763cf();while(!![]){try{const _0x16f1c5=-parseInt(_0x45d2f4(0x1f6))/0x1*(parseInt(_0x45d2f4(0x1ae))/0x2)+-parseInt(_0x45d2f4(0x1df))/0x3*(-parseInt(_0x45d2f4(0x1c4))/0x4)+parseInt(_0x45d2f4(0x1dd))/0x5+-parseInt(_0x45d2f4(0x1bf))/0x6+-parseInt(_0x45d2f4(0x1c6))/0x7+-parseInt(_0x45d2f4(0x1d7))/0x8+-parseInt(_0x45d2f4(0x1f5))/0x9*(-parseInt(_0x45d2f4(0x1db))/0xa);if(_0x16f1c5===_0xd60b3f)break;else _0x125692['push'](_0x125692['shift']());}catch(_0x527306){_0x125692['push'](_0x125692['shift']());}}}(a53_0x8dfc,0x88dc4));const path=require(a53_0xd88eb(0x1f4)),url=require('url'),util=require(a53_0xd88eb(0x1da)),{nestedKeyValue,isFalse}=require(a53_0xd88eb(0x1ab)),{debug,getPlatformDetails}=require(a53_0xd88eb(0x1bd)),logger=require(a53_0xd88eb(0x1d0))[a53_0xd88eb(0x1f2)],constants=require('../utils/constants'),BrowserstackCLI=require(a53_0xd88eb(0x1b7)),AutomationFrameworkState=require('../v2/state/automationFrameworkState.js'),HookState=require(a53_0xd88eb(0x1d9)),getBrowserFromWSEndpoint=_0x332f20=>{const _0x45cc97=a53_0xd88eb,_0x282f1f={'oLTHl':_0x45cc97(0x1a6),'GKdwn':function(_0x42d858,_0x2044b0){return _0x42d858(_0x2044b0);}};try{const _0x55c575=url[_0x45cc97(0x1bc)](_0x332f20),_0x14169f=new URLSearchParams(_0x55c575[_0x45cc97(0x1cc)]),_0x50c592=Object[_0x45cc97(0x1f9)](_0x14169f[_0x45cc97(0x1a8)]()),_0x293edd=JSON[_0x45cc97(0x1bc)](_0x50c592[_0x45cc97(0x1be)]);if(_0x293edd&&(_0x293edd[_0x45cc97(0x1d6)]||_0x293edd[_0x45cc97(0x1f1)]))return _0x293edd['browser']||_0x293edd[_0x45cc97(0x1f1)];return _0x282f1f[_0x45cc97(0x1e6)];}catch(_0x7585b0){_0x282f1f[_0x45cc97(0x1ef)](debug,'Error\x20in\x20getting\x20browser\x20from\x20caps:\x20'+_0x7585b0[_0x45cc97(0x1b9)]());}},getCloudProviderFromWsEndpoint=_0x4af327=>{const _0x537e89=a53_0xd88eb,_0x57911a={};_0x57911a['VVtUP']=_0x537e89(0x1fb),_0x57911a['Gqjly']='unknown_grid';const _0x4766db=_0x57911a;if(_0x4af327['includes'](constants['BSTACK_URL'])||_0x4af327[_0x537e89(0x1b0)](constants['BSTACK_ATS_URL']))return _0x4766db[_0x537e89(0x1e2)];return _0x4766db[_0x537e89(0x1ce)];},a53_0x21c92c={};a53_0x21c92c[a53_0xd88eb(0x1eb)]=undefined,a53_0x21c92c['bsSessionId']=undefined,a53_0x21c92c[a53_0xd88eb(0x1d6)]=undefined,a53_0x21c92c[a53_0xd88eb(0x1c5)]=undefined,a53_0x21c92c[a53_0xd88eb(0x1d4)]=undefined,a53_0x21c92c[a53_0xd88eb(0x1e3)]=undefined,a53_0x21c92c[a53_0xd88eb(0x1b1)]=undefined,a53_0x21c92c[a53_0xd88eb(0x1ad)]={};class PuppeteerSessionDetails{static [a53_0xd88eb(0x1b2)]=a53_0x21c92c;constructor(){const _0x5c3173=a53_0xd88eb,_0x2036d7={};_0x2036d7[_0x5c3173(0x1af)]=_0x5c3173(0x1e0);const _0x4fefc8=_0x2036d7;throw new Error(_0x4fefc8['yqkYu']);}static [a53_0xd88eb(0x1e8)]=null;static async[a53_0xd88eb(0x1e5)](_0x3dc66f,_0x27739a){const _0x181d9f=a53_0xd88eb,_0x258e57={'mBruz':_0x181d9f(0x1a6),'ItnsD':function(_0x339201,_0x29acf2){return _0x339201===_0x29acf2;},'PbiWu':_0x181d9f(0x1cf),'FofMe':'local_grid','tyNtH':function(_0x408366,_0x28655c){return _0x408366(_0x28655c);},'QetNr':_0x181d9f(0x1fb),'pZIhR':'turboscale','WGNWw':_0x181d9f(0x1de),'ScsdM':function(_0x17d3a0){return _0x17d3a0();},'lYpSz':function(_0x7d5ab9){return _0x7d5ab9();}};try{let _0x17f119=_0x258e57[_0x181d9f(0x1aa)],_0x280509=null;_0x3dc66f&&_0x258e57[_0x181d9f(0x1b6)](typeof _0x3dc66f[_0x181d9f(0x1d2)],_0x258e57['PbiWu'])&&(_0x280509=await _0x3dc66f[_0x181d9f(0x1d2)]());let _0x1f81f4=null,_0x26a8e3=null,_0xeb5056=null,_0x4a2d13=_0x258e57[_0x181d9f(0x1a9)];if(_0x27739a){_0x4a2d13=_0x258e57[_0x181d9f(0x1ed)](getCloudProviderFromWsEndpoint,_0x27739a);if(_0x258e57[_0x181d9f(0x1b6)](_0x4a2d13,_0x258e57['QetNr']))_0xeb5056=constants[_0x181d9f(0x1f0)]?constants[_0x181d9f(0x1f0)][_0x181d9f(0x1c8)](_0x27739a)?_0x258e57[_0x181d9f(0x1c9)]:_0x258e57[_0x181d9f(0x1c1)]:_0x258e57[_0x181d9f(0x1c1)],_0x17f119=_0x258e57[_0x181d9f(0x1ed)](getBrowserFromWSEndpoint,_0x27739a)||_0x17f119,_0x1f81f4=this[_0x181d9f(0x1b2)][_0x181d9f(0x1d4)],_0x26a8e3=this['currentSessionDetails'][_0x181d9f(0x1e3)];else{const _0x2d6663=await _0x258e57[_0x181d9f(0x1e1)](getPlatformDetails);_0x1f81f4=_0x2d6663['platformName'],_0x26a8e3=_0x2d6663[_0x181d9f(0x1ea)];}}else{const _0x452b02=await _0x258e57[_0x181d9f(0x1e9)](getPlatformDetails);_0x1f81f4=_0x452b02[_0x181d9f(0x1c0)],_0x26a8e3=_0x452b02['platformVersion'];}const _0x205310={};_0x205310[_0x181d9f(0x1d6)]=_0x17f119,_0x205310[_0x181d9f(0x1c5)]=_0x280509,_0x205310[_0x181d9f(0x1ad)]={},_0x205310[_0x181d9f(0x1d4)]=_0x1f81f4,_0x205310[_0x181d9f(0x1e3)]=_0x26a8e3,_0x205310[_0x181d9f(0x1b1)]=_0xeb5056;const _0x4a579a=_0x205310,_0x47ff1e={};_0x47ff1e['cloudProvider']=_0x4a2d13,this[_0x181d9f(0x1b2)]=Object['assign']({},this[_0x181d9f(0x1b2)],_0x47ff1e,_0x4a579a);}catch(_0x3ddd98){_0x258e57[_0x181d9f(0x1ed)](debug,_0x181d9f(0x1ca)+util[_0x181d9f(0x1c3)](_0x3ddd98)),this[_0x181d9f(0x1e8)]=_0x3ddd98[_0x181d9f(0x1b9)]();}}static[a53_0xd88eb(0x1cb)](_0x13b4a8){const _0x2e3aef=a53_0xd88eb,_0x4c39c5={'hKeBe':function(_0x5ddad6,_0x386586){return _0x5ddad6===_0x386586;},'sjNEp':_0x2e3aef(0x1fc),'wDIOQ':function(_0x5953b9,_0x45d986){return _0x5953b9(_0x45d986);},'haIBT':function(_0x2bce55,_0xf80825){return _0x2bce55===_0xf80825;},'mdyuU':_0x2e3aef(0x1ec)},_0xc27f35=this;try{const _0x31aeaf=_0x13b4a8['_connection']||_0x13b4a8[_0x2e3aef(0x1b8)];if(!_0x31aeaf||_0x31aeaf['_bstackPatched'])return;const _0x3d5ef1=_0x31aeaf[_0x2e3aef(0x1d3)];_0x31aeaf[_0x2e3aef(0x1d3)]=function(_0x3b5937){const _0x14d07c=_0x2e3aef;try{const _0x5439ef=_0x4c39c5[_0x14d07c(0x1ee)](typeof _0x3b5937,_0x4c39c5[_0x14d07c(0x1dc)])?JSON[_0x14d07c(0x1bc)](_0x3b5937):_0x3b5937,_0x568f4f=_0x5439ef?.[_0x14d07c(0x1ac)]||_0x5439ef?.[_0x14d07c(0x1d1)]||_0x5439ef?.['params']?.[_0x14d07c(0x1d1)]||_0x5439ef?.['params']?.[_0x14d07c(0x1ac)]||_0x5439ef?.[_0x14d07c(0x1f3)]?.[_0x14d07c(0x1d1)]||_0x5439ef?.[_0x14d07c(0x1f3)]?.[_0x14d07c(0x1ac)];if(_0x568f4f){if(BrowserstackCLI['getInstance']()[_0x14d07c(0x1b4)]()){const _0x797deb={};_0x797deb['message']=_0x5439ef,BrowserstackCLI[_0x14d07c(0x1b5)]()['getAutomationFramework']()[_0x14d07c(0x1ba)](AutomationFrameworkState[_0x14d07c(0x1c2)],HookState['POST'],_0x797deb);}else{const _0x53916f=_0x568f4f['sessionId'],_0x1b6dd9=_0x568f4f[_0x14d07c(0x1bb)];_0x1b6dd9&&(_0x4c39c5[_0x14d07c(0x1d5)](debug,_0x14d07c(0x1f8)+JSON[_0x14d07c(0x1c7)](_0x1b6dd9)),_0xc27f35['currentSessionDetails'][_0x14d07c(0x1d4)]=_0x1b6dd9[_0x14d07c(0x1c0)],_0xc27f35[_0x14d07c(0x1b2)][_0x14d07c(0x1e3)]=_0x1b6dd9[_0x14d07c(0x1ea)]),_0x53916f&&(_0x4c39c5[_0x14d07c(0x1d5)](debug,'Setting\x20session\x20id\x20received\x20from\x20BS\x20'+_0x53916f),_0xc27f35['currentSessionDetails'][_0x14d07c(0x1fa)]=_0x53916f);}_0x4c39c5[_0x14d07c(0x1e7)](typeof _0x3b5937,_0x4c39c5[_0x14d07c(0x1dc)])&&(delete _0x5439ef['bStackParams'],delete _0x5439ef[_0x14d07c(0x1d1)],_0x5439ef[_0x14d07c(0x1a7)]&&(delete _0x5439ef[_0x14d07c(0x1a7)][_0x14d07c(0x1d1)],delete _0x5439ef[_0x14d07c(0x1a7)]['bStackParams']),_0x5439ef['result']&&(delete _0x5439ef[_0x14d07c(0x1f3)]['bsParams'],delete _0x5439ef[_0x14d07c(0x1f3)][_0x14d07c(0x1ac)]));}}catch(_0x58865a){_0x4c39c5[_0x14d07c(0x1d5)](debug,_0x14d07c(0x1f7)+_0x58865a[_0x14d07c(0x1d8)]);}return _0x3d5ef1?.['apply'](this,arguments);},_0x31aeaf['_bstackPatched']=!![],logger[_0x2e3aef(0x1e4)](_0x4c39c5[_0x2e3aef(0x1a5)]);}catch(_0x421cd1){_0x4c39c5['wDIOQ'](debug,_0x2e3aef(0x1b3)+util[_0x2e3aef(0x1c3)](_0x421cd1)),_0xc27f35[_0x2e3aef(0x1e8)]=_0x421cd1[_0x2e3aef(0x1b9)]();}}static[a53_0xd88eb(0x1cd)](){const _0x4507d0=a53_0xd88eb;return this[_0x4507d0(0x1b2)];}}function a53_0xdb4f(_0x2eb2c7,_0x4c1a07){const _0x8dfc08=a53_0x8dfc();return a53_0xdb4f=function(_0xdb4f4f,_0x163e36){_0xdb4f4f=_0xdb4f4f-0x1a4;let _0x180f39=_0x8dfc08[_0xdb4f4f];return _0x180f39;},a53_0xdb4f(_0x2eb2c7,_0x4c1a07);}module[a53_0xd88eb(0x1a4)]=PuppeteerSessionDetails;function a53_0x8dfc(){const _0x59282d=['mdyuU','chrome','params','entries','FofMe','mBruz','../../helpers/helper','bStackParams','capabilities','56172fjRyEV','yqkYu','includes','product','currentSessionDetails','Error\x20in\x20patchConnection:\x20','isRunning','getInstance','ItnsD','../v2/browserstackCLI','connection','toString','trackEvent','platformDetails','parse','../../helpers/test-observability/utils','caps','636006IpRXuq','platformName','WGNWw','PLAYWRIGHT_DISPATCH','format','12ljUTMr','browser_version','7431914bkkBIZ','stringify','test','pZIhR','Error\x20in\x20setupBrowserDetails:\x20','patchConnection','query','getDetails','Gqjly','function','../../helpers/logger','bsParams','version','onmessage','platform','wDIOQ','browser','8542480WGQygy','message','../v2/state/hookState.js','util','110IYYzSU','sjNEp','3286700anDgxT','automate','653694ezLGgr','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','ScsdM','VVtUP','platform_version','debug','setupBrowserDetails','oLTHl','haIBT','sessionError','lYpSz','platformVersion','cloudProvider','[PuppeteerSessionDetails]\x20Connection\x20patched\x20for\x20session\x20capture','tyNtH','hKeBe','GKdwn','ATS_WSS_URL_REGEX','browserName','winstonLogger','result','path','1605699BQiobQ','17hUJYsq','Error\x20extracting\x20bsParams\x20from\x20CDP\x20message:\x20','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','fromEntries','bsSessionId','browserstack','string','exports'];a53_0x8dfc=function(){return _0x59282d;};return a53_0x8dfc();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a54_0x446884=a54_0x556d;(function(_0x1781c3,_0x14138a){const _0x1e200b=a54_0x556d,_0xa81fe6=_0x1781c3();while(!![]){try{const _0x4e8a29=-parseInt(_0x1e200b(0x111))/0x1*(parseInt(_0x1e200b(0x11a))/0x2)+parseInt(_0x1e200b(0x124))/0x3*(-parseInt(_0x1e200b(0x10a))/0x4)+parseInt(_0x1e200b(0x112))/0x5+-parseInt(_0x1e200b(0x128))/0x6*(-parseInt(_0x1e200b(0x116))/0x7)+parseInt(_0x1e200b(0x107))/0x8+parseInt(_0x1e200b(0x123))/0x9*(-parseInt(_0x1e200b(0x127))/0xa)+parseInt(_0x1e200b(0x110))/0xb*(parseInt(_0x1e200b(0x121))/0xc);if(_0x4e8a29===_0x14138a)break;else _0xa81fe6['push'](_0xa81fe6['shift']());}catch(_0x48cda9){_0xa81fe6['push'](_0xa81fe6['shift']());}}}(a54_0x1d36,0x1d0c5));function a54_0x1d36(){const _0x54fc29=['[PuppeteerTestSetup]\x20Bootstrapping\x20BrowserstackCLI\x20for\x20Jest\x20worker','../utils/constants','[PuppeteerTestSetup]\x20Error\x20reading\x20BrowserStack\x20config:\x20','catch','workerInfo','264xaILNt','../../helpers/logger','54NiuhaN','21xTkehh','debug','initializePuppeteerPatching','247090KVKYzf','60aqpCat','getInstance','../../helpers/testhub/utils','__skipSessionName','__workerDetails','../../helpers/setKeepAlive','../utils/puppeteer-patcher','[PuppeteerTestSetup]\x20Error\x20bootstrapping\x20BrowserstackCLI:\x20','winstonLogger','[PuppeteerTestSetup]\x20Error\x20initializing\x20Puppeteer\x20patching:\x20','__skipSessionStatus','env','o11ySyncDone','[PuppeteerTestSetup]\x20Puppeteer\x20patching\x20initialized','util','../v2/browserstackCLI','pwPage','921560YeqACA','getPackageVersion','[PuppeteerTestSetup]\x20Jest-Puppeteer\x20test\x20setup\x20completed','27932OLuOgd','puppeteer-core','setFrameworkDetail','isPageFixture','jestConfig','format','38302asFcbk','939jGgKhs','627865fYVaOd','bootstrap','currentTest','BROWSERSTACK_PUPPETEER','1750qxGwYv','../v2/cliUtils','isCliEnabled','[PuppeteerTestSetup]\x20Patching\x20Puppeteer\x20for\x20Jest','8OPjyDB','../../helpers/helper'];a54_0x1d36=function(){return _0x54fc29;};return a54_0x1d36();}const {isTrue,isBrowserstackInfra}=require(a54_0x446884(0x11b)),setKeepAlive=require(a54_0x446884(0xfb)),util=require(a54_0x446884(0x104)),logger=require(a54_0x446884(0x122))[a54_0x446884(0xfe)],{shouldProcessEventForTesthub}=require(a54_0x446884(0x12a)),{addRequestSpy}=require('../../helpers/test-observability/utils'),a54_0x2f5ba7={};a54_0x2f5ba7[a54_0x446884(0x120)]=undefined,a54_0x2f5ba7[a54_0x446884(0x114)]={},a54_0x2f5ba7[a54_0x446884(0x102)]=![],a54_0x2f5ba7[a54_0x446884(0x106)]=null,a54_0x2f5ba7[a54_0x446884(0x10d)]=![],a54_0x2f5ba7[a54_0x446884(0x114)]['id']=undefined,a54_0x2f5ba7[a54_0x446884(0x114)]['testInfo']=undefined;function a54_0x556d(_0x467e52,_0x44054d){const _0x1d3636=a54_0x1d36();return a54_0x556d=function(_0x556d4f,_0x9ef73){_0x556d4f=_0x556d4f-0xfa;let _0x22d018=_0x1d3636[_0x556d4f];return _0x22d018;},a54_0x556d(_0x467e52,_0x44054d);}const workerDetails=a54_0x2f5ba7;global[a54_0x446884(0xfa)]=workerDetails;let puppeteerPatcher=null;setKeepAlive();if(global[a54_0x446884(0x10e)])try{isBrowserstackInfra()?(global[a54_0x446884(0x12b)]=isTrue(global[a54_0x446884(0x10e)]?.['skipSessionName']),global[a54_0x446884(0x100)]=isTrue(global[a54_0x446884(0x10e)]?.['skipSessionStatus'])):(global[a54_0x446884(0x12b)]=!![],global['__skipSessionStatus']=!![]);const helper=require(a54_0x446884(0x11b)),puppeteerVersion=helper[a54_0x446884(0x108)]('puppeteer')||helper[a54_0x446884(0x108)](a54_0x446884(0x10b));if(puppeteerVersion)try{logger[a54_0x446884(0x125)](a54_0x446884(0x119)),puppeteerPatcher=require(a54_0x446884(0xfc)),puppeteerPatcher[a54_0x446884(0x126)](global['jestConfig']),logger['debug'](a54_0x446884(0x103));}catch(a54_0x42e51d){logger['debug'](a54_0x446884(0xff)+util[a54_0x446884(0x10f)](a54_0x42e51d));}if(puppeteerPatcher)try{const BrowserstackCLI=require(a54_0x446884(0x105)),CLIUtils=require(a54_0x446884(0x117)),{FRAMEWORKS}=require(a54_0x446884(0x11d));BrowserstackCLI[a54_0x446884(0x129)]()[a54_0x446884(0x118)]()&&(logger[a54_0x446884(0x125)](a54_0x446884(0x11c)),process[a54_0x446884(0x101)][a54_0x446884(0x115)]='true',CLIUtils[a54_0x446884(0x10c)](FRAMEWORKS['JEST'],FRAMEWORKS['PUPPETEER']),BrowserstackCLI[a54_0x446884(0x129)]()[a54_0x446884(0x113)]()[a54_0x446884(0x11f)](_0x2ace44=>{const _0x36f0c4=a54_0x446884;logger[_0x36f0c4(0x125)](_0x36f0c4(0xfd)+util['format'](_0x2ace44));}));}catch(a54_0x548e3b){logger[a54_0x446884(0x125)]('[PuppeteerTestSetup]\x20Error\x20setting\x20up\x20BrowserstackCLI\x20bootstrap:\x20'+util[a54_0x446884(0x10f)](a54_0x548e3b));}shouldProcessEventForTesthub()&&addRequestSpy(![]);}catch(a54_0xf09787){logger[a54_0x446884(0x125)](a54_0x446884(0x11e)+util[a54_0x446884(0x10f)](a54_0xf09787));}logger[a54_0x446884(0x125)](a54_0x446884(0x109));
|
package/src/bin/runner.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';function a51_0x2bdc(_0x41e215,_0x10be6b){const _0x16943c=a51_0x1694();return a51_0x2bdc=function(_0x2bdc46,_0x2291e8){_0x2bdc46=_0x2bdc46-0xc1;let _0x2e28a5=_0x16943c[_0x2bdc46];return _0x2e28a5;},a51_0x2bdc(_0x41e215,_0x10be6b);}const a51_0x3fc1f9=a51_0x2bdc;(function(_0x541eee,_0x252eb3){const _0xdc7492=a51_0x2bdc,_0x111c59=_0x541eee();while(!![]){try{const _0x51d265=parseInt(_0xdc7492(0xe7))/0x1*(-parseInt(_0xdc7492(0xec))/0x2)+-parseInt(_0xdc7492(0x119))/0x3+parseInt(_0xdc7492(0x136))/0x4+-parseInt(_0xdc7492(0x12b))/0x5+-parseInt(_0xdc7492(0x155))/0x6+parseInt(_0xdc7492(0x14b))/0x7+parseInt(_0xdc7492(0x113))/0x8;if(_0x51d265===_0x252eb3)break;else _0x111c59['push'](_0x111c59['shift']());}catch(_0x19a01a){_0x111c59['push'](_0x111c59['shift']());}}}(a51_0x1694,0x9d1a6));const fs=require('fs'),path=require(a51_0x3fc1f9(0x148)),util=require(a51_0x3fc1f9(0x11c)),spawn=require(a51_0x3fc1f9(0x14a))['spawn'],{requireModule}=require(a51_0x3fc1f9(0xfb)),PerformanceTester=require('../helpers/performance/performance-tester'),PerformanceEvents=require(a51_0x3fc1f9(0x149))['EVENTS'],helper=require(a51_0x3fc1f9(0xfb)),utilities=require('../helpers/utilities'),{default:BrowserStackSetup}=require(a51_0x3fc1f9(0x120)),{FRAMEWORKS}=require(a51_0x3fc1f9(0x143)),runIntegrations=require('./integrations/command'),yargs=require(a51_0x3fc1f9(0xeb)),Constants=require(a51_0x3fc1f9(0xe4)),BrowserstackCLI=require('./v2/browserstackCLI'),logger=require(a51_0x3fc1f9(0x13d))[a51_0x3fc1f9(0x133)],origArgs=Object[a51_0x3fc1f9(0xe6)]([],process[a51_0x3fc1f9(0x123)]),captureError=async(_0x5cee38,_0x1a6c98,_0x19c0a3,_0x59ce7d=null,_0x1dc5e7=![])=>{const _0x17831c=a51_0x3fc1f9,_0x21906f={'XuRXR':function(_0x4ab7cb,_0x5e59bb,_0x580e9a,_0x2f1bad){return _0x4ab7cb(_0x5e59bb,_0x580e9a,_0x2f1bad);},'hYTjJ':'SDKTestSuccessful'};try{logger['info'](_0x17831c(0xd8)+origArgs['join']('\x20')),await _0x21906f[_0x17831c(0x11e)](_0x5cee38,_0x1a6c98,_0x59ce7d,_0x19c0a3);}catch(_0x1bc3c2){process['exitCode']=0x1,logger[_0x17831c(0x124)](util['format'](_0x1bc3c2));const _0x5d002b={'globalException':util['format']('%j',_0x1bc3c2)};PerformanceTester[_0x17831c(0x115)](PerformanceEvents[_0x17831c(0x101)],![],util[_0x17831c(0xf6)](_0x1bc3c2));if(helper[_0x17831c(0xf0)](global[_0x17831c(0x122)])&&helper[_0x17831c(0xf0)](global['framework']))return;try{utilities[_0x17831c(0x11b)](_0x21906f[_0x17831c(0xcc)],_0x5d002b,global['config'],global[_0x17831c(0xf9)]);}catch(_0x42773f){logger[_0x17831c(0x127)]('Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20'+_0x42773f[_0x17831c(0x150)]);}try{await helper[_0x17831c(0xc8)](global[_0x17831c(0x122)]);}catch(_0x19f84c){logger[_0x17831c(0x127)](_0x17831c(0x100)+_0x19f84c[_0x17831c(0x150)]);}PerformanceTester[_0x17831c(0x115)](PerformanceEvents[_0x17831c(0x101)],![],util['format'](_0x1bc3c2));}finally{!_0x1dc5e7&&await BrowserstackCLI[_0x17831c(0xcd)]()[_0x17831c(0x103)](),PerformanceTester[_0x17831c(0xd0)](PerformanceEvents[_0x17831c(0x156)]);}};try{const browserstackFolderPath=path[a51_0x3fc1f9(0x137)](helper[a51_0x3fc1f9(0xc2)](),a51_0x3fc1f9(0x135));if(fs[a51_0x3fc1f9(0xfe)](browserstackFolderPath)){const filePath=path[a51_0x3fc1f9(0x137)](browserstackFolderPath,a51_0x3fc1f9(0x125));fs['existsSync'](filePath)&&fs[a51_0x3fc1f9(0x152)](filePath);}}catch(a51_0x1bf0f7){logger[a51_0x3fc1f9(0x127)]('Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20'+a51_0x1bf0f7[a51_0x3fc1f9(0x10d)]);}process[a51_0x3fc1f9(0x123)][a51_0x3fc1f9(0x13c)]('mocha')&&(!process[a51_0x3fc1f9(0x123)][a51_0x3fc1f9(0x13c)]('--opts')&&process[a51_0x3fc1f9(0x123)][a51_0x3fc1f9(0x141)](a51_0x3fc1f9(0x114)),!process[a51_0x3fc1f9(0x123)][a51_0x3fc1f9(0xea)](_0x371a16=>_0x371a16[a51_0x3fc1f9(0x13c)](a51_0x3fc1f9(0xe2)))&&process['argv'][a51_0x3fc1f9(0x141)](a51_0x3fc1f9(0xfa)),!process['argv'][a51_0x3fc1f9(0x13c)](a51_0x3fc1f9(0xc7))&&process[a51_0x3fc1f9(0x123)][a51_0x3fc1f9(0x141)](a51_0x3fc1f9(0xd2)),helper['findAndReplace'](process['argv'],'--require',a51_0x3fc1f9(0xc4)));PerformanceTester['start'](PerformanceEvents[a51_0x3fc1f9(0x101)]);const a51_0x3786b2={};function a51_0x1694(){const _0x1f6c7f=['-pw:channel','3689868hwTszp','SDK_CLEANUP','TlYuV','homedir','fgOKk','--mochaRequire','ats','CmWVN','--package','sendLogs','filter','NIGHTWATCH','./nightwatch/command','hYTjJ','getInstance','BJUmU','bvWHV','start','setBrowserStackAutomationDisable','--no-package','jest','INFO','pw:channel\x20auto-capture\x20seed\x20failed:\x20','cucumber-js','strict','Running\x20SDK\x20with\x20args\x20','some','./load/index','You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','JEST','mocha','HELP','HST','Parsing\x20command\x20line\x20arguments','getPwChannelLogPath','--config','ZtNuY','./utils/constants','boolean','assign','268HLeqgT','getConfigPath','map','find','yargs','344SwmcLc','zbwmn','./cucumber-js/command','ZZSDr','isUndefined','xtBCF','ftjto','YsCNo','DEBUG','XGlbu','format','env','CODECEPTJS','framework','--no-config','../helpers/helper','dCXyi','split','existsSync','irgEW','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','SDK_SETUP','-pw:*','stop','usage','node','version','Bwzkq','mocha/lib/cli/run.js','Show\x20help','help','CUCUMBER','NZhdZ','message','gdUFG','handler','alias','parserConfiguration','setTestObservabilityDisable','2760568hGVAfd','--no-opts','end','qmbWl','VwyCu','disableAutoCaptureLogs','287058JMWEbn','wIqcy','fireFunnelTestEvent','util','GdXgt','XuRXR','dnGLI','../helpers/BrowserStackSetup','fsDql','config','argv','error','.local-not-set.json','TpybQ','debug','trim','eBMKS','jSDEQ','1870120sardsR','integrations','VANILLA','INTEGRATIONS','XAVdR','SGNlu','describe','load\x20[subcommand]','winstonLogger','run','.browserstack','4393536cVKIYY','join','RDeTE','dot-notation','GTrwA','rmSPS','includes','../helpers/logger','mocha/lib/cli/cli.js','vanilla','AxWPV','push','VERSION','../helpers/test-observability/constants','command','codeceptjs','PLAYWRIGHT','wrap','path','../helpers/performance/constants','child_process','2315761Nalwxz','exitProcess','FDrNK','slice','showHelpOnFail','stack','QUYqM','unlinkSync','./mocha/command'];a51_0x1694=function(){return _0x1f6c7f;};return a51_0x1694();}a51_0x3786b2[a51_0x3fc1f9(0x139)]=![];const argv=yargs[a51_0x3fc1f9(0x111)](a51_0x3786b2)[a51_0x3fc1f9(0x104)]('usage:\x20$0\x20<command>\x20[args]')[a51_0x3fc1f9(0x110)]('v',a51_0x3fc1f9(0x106))[a51_0x3fc1f9(0x131)]('v')['alias']('h',a51_0x3fc1f9(0x10a))['help'](a51_0x3fc1f9(0x10a))[a51_0x3fc1f9(0x14f)](!![],Constants[a51_0x3fc1f9(0x142)][a51_0x3fc1f9(0xde)])[a51_0x3fc1f9(0x144)](a51_0x3fc1f9(0xd3),Constants[a51_0x3fc1f9(0xdc)][a51_0x3fc1f9(0xd4)],function(_0x1e576d){const _0x4dfd57=a51_0x3fc1f9,_0x44ea70={'JIzPf':'jest','FDrNK':function(_0x10961e,_0x5866b6,_0x139ee5,_0x1fdb18,_0x43e175,_0x1d990){return _0x10961e(_0x5866b6,_0x139ee5,_0x1fdb18,_0x43e175,_0x1d990);},'CmWVN':function(_0xa9ba6c,_0x312233){return _0xa9ba6c(_0x312233);},'axjoC':'./jest/command'},_0x5a7dc5=process[_0x4dfd57(0x123)][_0x4dfd57(0x14e)](0x2);helper['setTestObservabilityDisable'](),helper[_0x4dfd57(0xd1)](),_0x1e576d[_0x4dfd57(0xd7)](![]);const _0x1ffe07=new BrowserStackSetup(_0x1e576d['argv'],_0x44ea70['JIzPf']);return _0x44ea70[_0x4dfd57(0x14d)](captureError,_0x44ea70[_0x4dfd57(0xc6)](require,_0x44ea70['axjoC']),_0x1e576d[_0x4dfd57(0x123)],_0x1ffe07,_0x5a7dc5,!![]);})[a51_0x3fc1f9(0x144)](a51_0x3fc1f9(0xdd),Constants['MOCHA']['INFO'],_0x408f4e=>{const _0x317e24=a51_0x3fc1f9,_0x321ff3={'asXdr':function(_0xb8d03d,_0x7b763b,_0x331c10,_0x5651f3){return _0xb8d03d(_0x7b763b,_0x331c10,_0x5651f3);},'hRRKm':function(_0x1a3dd7,_0x23de53){return _0x1a3dd7(_0x23de53);},'XGlbu':_0x317e24(0x153),'BJUmU':_0x317e24(0xdd),'SGNlu':_0x317e24(0xe0),'jSDEQ':function(_0x267878,_0x49eeeb,_0x225d33){return _0x267878(_0x49eeeb,_0x225d33);},'zbwmn':_0x317e24(0x108),'wIqcy':'mocha/lib/cli/commands.js','TlYuV':_0x317e24(0x13e),'eBMKS':function(_0x94bdef){return _0x94bdef();}};process[_0x317e24(0x123)]=process[_0x317e24(0x123)][_0x317e24(0x14e)](0x1),helper[_0x317e24(0x112)](),helper[_0x317e24(0xd1)]();const _0x5f1a79=new BrowserStackSetup(_0x408f4e[_0x317e24(0x123)],_0x321ff3[_0x317e24(0xce)]);logger['debug'](_0x321ff3[_0x317e24(0x130)]);const _0x4d892b=_0x321ff3[_0x317e24(0x12a)](requireModule,_0x321ff3[_0x317e24(0xed)],_0x321ff3[_0x317e24(0xce)]),_0x20ee90=_0x321ff3[_0x317e24(0x12a)](requireModule,_0x321ff3[_0x317e24(0x11a)],_0x321ff3[_0x317e24(0xce)]);delete _0x4d892b[_0x317e24(0x10f)],_0x4d892b[_0x317e24(0x10f)]=function(_0x9d03ce){const _0x586925=_0x317e24;return _0x321ff3['asXdr'](captureError,_0x321ff3['hRRKm'](require,_0x321ff3[_0x586925(0xf5)]),_0x9d03ce,_0x5f1a79);},_0x20ee90[_0x317e24(0x134)]=_0x4d892b;const {main:_0x6af173}=_0x321ff3['jSDEQ'](requireModule,_0x321ff3[_0x317e24(0xc1)],_0x321ff3[_0x317e24(0xce)]);_0x321ff3[_0x317e24(0x129)](_0x6af173);})[a51_0x3fc1f9(0x144)](a51_0x3fc1f9(0xd6),Constants[a51_0x3fc1f9(0x10b)][a51_0x3fc1f9(0xd4)],function(_0x296154){const _0x44a553=a51_0x3fc1f9,_0x122531={'QUYqM':_0x44a553(0xd6),'ZZSDr':function(_0x597bf7,_0x1cb742,_0x5b0a8d,_0x701d04,_0x2a106d,_0x4b9047){return _0x597bf7(_0x1cb742,_0x5b0a8d,_0x701d04,_0x2a106d,_0x4b9047);},'fgOKk':function(_0x12f7ae,_0x10c016){return _0x12f7ae(_0x10c016);},'XAVdR':_0x44a553(0xee)},_0x2f5a19=process[_0x44a553(0x123)]['slice'](0x2),_0x3e23ae=new BrowserStackSetup(_0x296154['argv'],_0x122531[_0x44a553(0x151)]);return _0x122531[_0x44a553(0xef)](captureError,_0x122531[_0x44a553(0xc3)](require,_0x122531[_0x44a553(0x12f)]),_0x296154[_0x44a553(0x123)],_0x3e23ae,_0x2f5a19,!![]);})[a51_0x3fc1f9(0x144)](a51_0x3fc1f9(0x105),Constants[a51_0x3fc1f9(0x12d)][a51_0x3fc1f9(0xd4)],function(_0x10cee5){const _0x165b43=a51_0x3fc1f9,_0x41be5b={'VwyCu':_0x165b43(0x13f),'irgEW':function(_0x451a41,_0x16fcd6,_0x20c67c,_0x1b0ffa,_0x458014){return _0x451a41(_0x16fcd6,_0x20c67c,_0x1b0ffa,_0x458014);},'dnGLI':function(_0x278700,_0x5629dd){return _0x278700(_0x5629dd);},'qctVk':'./vanilla-js/command'},_0x4b9b6f=process['argv'][_0x165b43(0x14e)](0x2),_0x5c4fce=new BrowserStackSetup(_0x10cee5[_0x165b43(0x123)],_0x41be5b[_0x165b43(0x117)]);return _0x41be5b[_0x165b43(0xff)](captureError,_0x41be5b[_0x165b43(0x11f)](require,_0x41be5b['qctVk']),_0x10cee5[_0x165b43(0x123)],_0x5c4fce,_0x4b9b6f);})[a51_0x3fc1f9(0x144)]('nightwatch',Constants[a51_0x3fc1f9(0xca)][a51_0x3fc1f9(0xd4)],function(_0x2c16e4){const _0x5cfb96=a51_0x3fc1f9,_0x481718={'Bwzkq':function(_0x56d8af,_0x30981d,_0xde66fc,_0x2986b4,_0x51eb68){return _0x56d8af(_0x30981d,_0xde66fc,_0x2986b4,_0x51eb68);},'xtBCF':function(_0x826237,_0x1b8e0e){return _0x826237(_0x1b8e0e);},'ftjto':_0x5cfb96(0xcb)},_0x46cf9e=process[_0x5cfb96(0x123)][_0x5cfb96(0x14e)](0x2),_0x2f5950=new BrowserStackSetup(_0x2c16e4['argv']);return _0x481718[_0x5cfb96(0x107)](captureError,_0x481718[_0x5cfb96(0xf1)](require,_0x481718[_0x5cfb96(0xf2)]),_0x2c16e4[_0x5cfb96(0x123)],_0x2f5950,_0x46cf9e);})['command'](a51_0x3fc1f9(0x145),Constants[a51_0x3fc1f9(0xf8)][a51_0x3fc1f9(0xd4)],function(_0x18b611){const _0x2361c2=a51_0x3fc1f9,_0x1fa638={'rmSPS':'codeceptjs','RDeTE':function(_0x8439e7,_0x920749,_0xc96047,_0x394828,_0x32668a){return _0x8439e7(_0x920749,_0xc96047,_0x394828,_0x32668a);},'bvWHV':function(_0x30e9c2,_0x4ab01f){return _0x30e9c2(_0x4ab01f);},'TpybQ':'./codeceptjs/command'},_0x3ae4f6=process['argv'][_0x2361c2(0x14e)](0x2),_0x247ce3=new BrowserStackSetup(_0x18b611[_0x2361c2(0x123)],_0x1fa638[_0x2361c2(0x13b)]);return _0x1fa638[_0x2361c2(0x138)](captureError,_0x1fa638[_0x2361c2(0xcf)](require,_0x1fa638[_0x2361c2(0x126)]),_0x18b611[_0x2361c2(0x123)],_0x247ce3,_0x3ae4f6);})['command'](a51_0x3fc1f9(0xc5),Constants[a51_0x3fc1f9(0xdf)][a51_0x3fc1f9(0xd4)],function(_0x346e36){const _0xef877c=a51_0x3fc1f9,_0x509f80={'GTrwA':function(_0x4d12c2,_0x27aac1,_0x2f05ee){return _0x4d12c2(_0x27aac1,_0x2f05ee);},'YsCNo':function(_0x13f14f,_0xae1433){return _0x13f14f(_0xae1433);},'opakS':'../../ats/src/index'},_0x33a57b=process['argv']['slice'](0x2);return _0x509f80[_0xef877c(0x13a)](captureError,_0x509f80[_0xef877c(0xf3)](require,_0x509f80['opakS']),_0x346e36);})['command'](a51_0x3fc1f9(0x12c),Constants[a51_0x3fc1f9(0x12e)][a51_0x3fc1f9(0xd4)],function(_0x265c4b){const _0xc03964=a51_0x3fc1f9,_0x2ff9d2={'gdUFG':function(_0x19ca7d,_0x3e00e1){return _0x19ca7d(_0x3e00e1);}};return _0x2ff9d2[_0xc03964(0x10e)](runIntegrations,_0x265c4b);})['command']('playwright',Constants[a51_0x3fc1f9(0x146)][a51_0x3fc1f9(0xd4)],function(_0x1629bc){const _0x394853=a51_0x3fc1f9,_0x2dd884={'fsDql':'pw:channel','yvxei':function(_0x56df18,_0x419ba5){return _0x56df18&&_0x419ba5;},'fYXVd':function(_0x568c15,_0x155e87,_0x295b70,_0x58f254,_0x234ff8,_0x515cc){return _0x568c15(_0x155e87,_0x295b70,_0x58f254,_0x234ff8,_0x515cc);},'uvVmX':function(_0xcc7728,_0x1887cd){return _0xcc7728(_0x1887cd);},'fthPC':'./playwright/command'},_0x230bfb=process['argv'][_0x394853(0x14e)](0x2);helper[_0x394853(0xe8)](process[_0x394853(0x123)])&&(process[_0x394853(0xf7)]['BROWSERSTACK_CONFIG_FILE_PATH']=helper[_0x394853(0xe8)](process[_0x394853(0x123)]));helper[_0x394853(0x112)](),helper[_0x394853(0xd1)]();const _0x2618f5=new BrowserStackSetup(_0x1629bc[_0x394853(0x123)],FRAMEWORKS[_0x394853(0x146)]);try{if(!_0x2618f5[_0x394853(0x122)]||!_0x2618f5['config'][_0x394853(0x118)]){const _0x3a5487=_0x2dd884[_0x394853(0x121)],_0x2c1b6c=process[_0x394853(0xf7)][_0x394853(0xf4)]||'',_0x3d575f=_0x2c1b6c[_0x394853(0xfd)](',')[_0x394853(0xe9)](_0x444586=>_0x444586[_0x394853(0x128)]())[_0x394853(0xc9)](Boolean),_0x5d119b=_0x3d575f[_0x394853(0xd9)](_0xa258b3=>_0xa258b3===_0x394853(0x154)||_0xa258b3===_0x394853(0x102)||_0xa258b3==='-*'),_0x49f0b8=_0x3d575f[_0x394853(0xd9)](_0xc77a6f=>_0xc77a6f===_0x3a5487||_0xc77a6f==='pw:*'||_0xc77a6f==='*');if(_0x2dd884['yvxei'](!_0x5d119b,!_0x49f0b8)){const _0x468079=helper[_0x394853(0xe1)]();_0x468079&&(process[_0x394853(0xf7)][_0x394853(0xf4)]=_0x2c1b6c?_0x2c1b6c+','+_0x3a5487:_0x3a5487,!process[_0x394853(0xf7)]['DEBUG_FILE']&&(process['env']['DEBUG_FILE']=_0x468079));}}}catch(_0x665ffa){logger[_0x394853(0x127)](_0x394853(0xd5)+util['format'](_0x665ffa));}return _0x2dd884['fYXVd'](captureError,_0x2dd884['uvVmX'](require,_0x2dd884['fthPC']),_0x1629bc[_0x394853(0x123)],_0x2618f5,_0x230bfb,!![]);})[a51_0x3fc1f9(0x144)](a51_0x3fc1f9(0x132),'Runs\x20the\x20binary\x20with\x20load\x20command',function(_0x49e225){const _0x1b543a=a51_0x3fc1f9,_0x333b0c={};_0x333b0c[_0x1b543a(0x140)]=_0x1b543a(0x10a),_0x333b0c[_0x1b543a(0xe3)]=_0x1b543a(0xe5),_0x333b0c[_0x1b543a(0x10c)]=_0x1b543a(0x109);const _0x2a86aa=_0x333b0c;return _0x49e225['help'](![])['option'](_0x2a86aa[_0x1b543a(0x140)],{'alias':'h','type':_0x2a86aa['ZtNuY'],'describe':_0x2a86aa[_0x1b543a(0x10c)]})[_0x1b543a(0xd7)](![])[_0x1b543a(0x14c)](![]);},function(_0xfcb53b){const _0x50cc23=a51_0x3fc1f9,_0x1fc8e4={'dCXyi':function(_0x519c1f,_0x24fdae,_0xf00089){return _0x519c1f(_0x24fdae,_0xf00089);},'GdXgt':function(_0x294ac8,_0x2034be){return _0x294ac8(_0x2034be);},'qmbWl':_0x50cc23(0xda)},_0x28e80f={};return _0x28e80f[_0x50cc23(0x123)]=_0xfcb53b,_0x1fc8e4[_0x50cc23(0xfc)](captureError,_0x1fc8e4[_0x50cc23(0x11d)](require,_0x1fc8e4[_0x50cc23(0x116)]),_0x28e80f);})['demandCommand'](0x1,a51_0x3fc1f9(0xdb))[a51_0x3fc1f9(0x147)](null)[a51_0x3fc1f9(0x123)];!helper['isUndefined'](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a51_0x3fc1f9(0xc5)&&console[a51_0x3fc1f9(0x124)]('Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.');
|
|
2
|
+
'use strict';const a55_0x52190a=a55_0x4276;(function(_0x4a8e14,_0x5b4db0){const _0x3d27e2=a55_0x4276,_0x13a7c7=_0x4a8e14();while(!![]){try{const _0x287f09=-parseInt(_0x3d27e2(0x15f))/0x1*(parseInt(_0x3d27e2(0x172))/0x2)+-parseInt(_0x3d27e2(0x121))/0x3*(parseInt(_0x3d27e2(0x147))/0x4)+parseInt(_0x3d27e2(0x18c))/0x5+parseInt(_0x3d27e2(0x170))/0x6*(-parseInt(_0x3d27e2(0x177))/0x7)+-parseInt(_0x3d27e2(0x179))/0x8+parseInt(_0x3d27e2(0x190))/0x9+parseInt(_0x3d27e2(0x123))/0xa;if(_0x287f09===_0x5b4db0)break;else _0x13a7c7['push'](_0x13a7c7['shift']());}catch(_0x4eb8e0){_0x13a7c7['push'](_0x13a7c7['shift']());}}}(a55_0x25d4,0x86f01));const fs=require('fs'),path=require('path'),util=require(a55_0x52190a(0x12a)),spawn=require(a55_0x52190a(0x127))['spawn'],{requireModule}=require(a55_0x52190a(0x14b)),PerformanceTester=require('../helpers/performance/performance-tester'),PerformanceEvents=require(a55_0x52190a(0x195))[a55_0x52190a(0x192)],helper=require(a55_0x52190a(0x14b)),utilities=require(a55_0x52190a(0x144)),{default:BrowserStackSetup}=require(a55_0x52190a(0x1a8)),{FRAMEWORKS}=require('../helpers/test-observability/constants'),runIntegrations=require('./integrations/command'),yargs=require(a55_0x52190a(0x119)),Constants=require(a55_0x52190a(0x13d)),BrowserstackCLI=require(a55_0x52190a(0x193)),{isNewman}=require('./newman/helper'),logger=require('../helpers/logger')[a55_0x52190a(0x156)],origArgs=Object[a55_0x52190a(0x164)]([],process['argv']),captureError=async(_0x2d25a1,_0x2062e6,_0x1bf3a3,_0x342873=null,_0x59199a=![])=>{const _0x13b7dd=a55_0x52190a,_0x39ceb3={'MwoaE':function(_0x12ef7f,_0x5ea0b8,_0x3e5691,_0x499bd6){return _0x12ef7f(_0x5ea0b8,_0x3e5691,_0x499bd6);},'MRBdF':_0x13b7dd(0x130)};try{logger['info']('Running\x20SDK\x20with\x20args\x20'+origArgs['join']('\x20')),await _0x39ceb3[_0x13b7dd(0x122)](_0x2d25a1,_0x2062e6,_0x342873,_0x1bf3a3);}catch(_0x33ff7c){process[_0x13b7dd(0x185)]=0x1,logger[_0x13b7dd(0x1a5)](util[_0x13b7dd(0x134)](_0x33ff7c));const _0x35701b={'globalException':util[_0x13b7dd(0x134)]('%j',_0x33ff7c)};PerformanceTester[_0x13b7dd(0x14d)](PerformanceEvents[_0x13b7dd(0x1ae)],![],util['format'](_0x33ff7c));if(helper[_0x13b7dd(0x1b8)](global[_0x13b7dd(0x131)])&&helper['isUndefined'](global[_0x13b7dd(0x18f)]))return;try{utilities[_0x13b7dd(0x13a)](_0x39ceb3[_0x13b7dd(0x139)],_0x35701b,global[_0x13b7dd(0x131)],global[_0x13b7dd(0x18f)]);}catch(_0x47ace6){logger[_0x13b7dd(0x167)]('Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20'+_0x47ace6['stack']);}try{await helper[_0x13b7dd(0x173)](global[_0x13b7dd(0x131)]);}catch(_0x44a0bc){logger[_0x13b7dd(0x167)](_0x13b7dd(0x187)+_0x44a0bc[_0x13b7dd(0x159)]);}PerformanceTester[_0x13b7dd(0x14d)](PerformanceEvents[_0x13b7dd(0x1ae)],![],util[_0x13b7dd(0x134)](_0x33ff7c));}finally{!_0x59199a&&await BrowserstackCLI['getInstance']()[_0x13b7dd(0x18a)](),PerformanceTester[_0x13b7dd(0x141)](PerformanceEvents[_0x13b7dd(0x11a)]);}};try{const browserstackFolderPath=path[a55_0x52190a(0x15a)](helper[a55_0x52190a(0x13e)](),a55_0x52190a(0x14a));if(fs[a55_0x52190a(0x118)](browserstackFolderPath)){const filePath=path[a55_0x52190a(0x15a)](browserstackFolderPath,'.local-not-set.json');fs[a55_0x52190a(0x118)](filePath)&&fs[a55_0x52190a(0x1ab)](filePath);}}catch(a55_0x15d53a){logger['debug']('Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20'+a55_0x15d53a[a55_0x52190a(0x17d)]);}process[a55_0x52190a(0x15e)][a55_0x52190a(0x132)](a55_0x52190a(0x11d))&&(!process[a55_0x52190a(0x15e)]['includes']('--opts')&&process[a55_0x52190a(0x15e)][a55_0x52190a(0x19f)]('--no-opts'),!process[a55_0x52190a(0x15e)][a55_0x52190a(0x163)](_0xc2153f=>_0xc2153f[a55_0x52190a(0x132)]('--config'))&&process[a55_0x52190a(0x15e)][a55_0x52190a(0x19f)]('--no-config'),!process[a55_0x52190a(0x15e)]['includes']('--package')&&process[a55_0x52190a(0x15e)][a55_0x52190a(0x19f)](a55_0x52190a(0x19b)),helper[a55_0x52190a(0x138)](process[a55_0x52190a(0x15e)],a55_0x52190a(0x1a9),a55_0x52190a(0x191)));PerformanceTester['start'](PerformanceEvents['SDK_SETUP']);const a55_0x15dbc1={};function a55_0x25d4(){const _0x4b9653=['OhYDb','end','oFRBz','filter','wrap','showHelpOnFail','HST','./nightwatch/command','version','NIGHTWATCH','winstonLogger','getPwChannelLogPath','AcszQ','stack','join','pkkCC','setBrowserStackAutomationDisable','codeceptjs','argv','563501MTyFai','command','CUCUMBER','OIGxY','find','assign','You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','PLAYWRIGHT','debug','-pw:channel','./cucumber-js/command','eaKlQ','PjxMj','pxrvR','pw:channel','CODECEPTJS','EZKYn','1665078hTpxDZ','Gkgpm','2SXFbcc','sendLogs','HzKBh','some','WBuTe','21KIboDw','load\x20[subcommand]','3644064YwqKjS','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','nightwatch','fjtvS','message','run','CRaBt','setTestObservabilityDisable','INTEGRATIONS','usage','TivFv','mocha/lib/cli/commands.js','exitCode','node','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','Runs\x20the\x20binary\x20with\x20load\x20command','vanilla','stop','disableAutoCaptureLogs','4067235kpMayE','exitProcess','mocha/lib/cli/cli.js','framework','1770975zLWYAB','--mochaRequire','EVENTS','./v2/browserstackCLI','./mocha/command','../helpers/performance/constants','cucumber-js','newman','AAama','HELP','ufSiv','--no-package','-pw:*','boolean','./playwright/command','push','DEBUG','TFENV','./newman/command','option','EKbfs','error','vxMXa','pOxpX','../helpers/BrowserStackSetup','--require','xABCS','unlinkSync','./vanilla-js/command','demandCommand','SDK_SETUP','YAhcx','gSBYV','env','xrlvd','INFO','MOCHA','split','describe','playwright','isUndefined','jest','fSUBz','handler','KwJoT','VERSION','existsSync','yargs','SDK_CLEANUP','strict','NEWMAN','mocha','dot-notation','JEST','Parsing\x20command\x20line\x20arguments','3RcIfII','MwoaE','17961200BcgJKn','jdsRO','../../ats/src/index','tixIu','child_process','getConfigPath','help','util','cOAcT','gyxmD','tsOLa','DEBUG_FILE','yibmF','SDKTestSuccessful','config','includes','alias','format','VANILLA','XbluW','WKTZm','findAndReplace','MRBdF','fireFunnelTestEvent','gbZZd','pw:channel\x20auto-capture\x20seed\x20failed:\x20','./utils/constants','homedir','vqrsS','WoIAS','start','slice','LKYEI','../helpers/utilities','pw:*','TCDQi','1608356nlbQrI','Vvpzq','mocha/lib/cli/run.js','.browserstack','../helpers/helper'];a55_0x25d4=function(){return _0x4b9653;};return a55_0x25d4();}a55_0x15dbc1[a55_0x52190a(0x11e)]=![];const argv=yargs['parserConfiguration'](a55_0x15dbc1)[a55_0x52190a(0x182)]('usage:\x20$0\x20<command>\x20[args]')[a55_0x52190a(0x133)]('v',a55_0x52190a(0x154))[a55_0x52190a(0x1b6)]('v')[a55_0x52190a(0x133)]('h',a55_0x52190a(0x129))[a55_0x52190a(0x129)](a55_0x52190a(0x129))[a55_0x52190a(0x151)](!![],Constants[a55_0x52190a(0x1bd)][a55_0x52190a(0x199)])[a55_0x52190a(0x160)]('jest',Constants[a55_0x52190a(0x11f)][a55_0x52190a(0x1b3)],function(_0x18ed4f){const _0x55d51c=a55_0x52190a,_0x5e1b8d={'Vvpzq':_0x55d51c(0x1b9),'xvYQL':function(_0x31c5d7,_0x3adc01,_0x1a11af,_0x43ac40,_0x4fbed0,_0x5f0534){return _0x31c5d7(_0x3adc01,_0x1a11af,_0x43ac40,_0x4fbed0,_0x5f0534);},'jdsRO':function(_0x37f061,_0xf570f3){return _0x37f061(_0xf570f3);},'EZKYn':'./jest/command'},_0x17156f=process[_0x55d51c(0x15e)][_0x55d51c(0x142)](0x2);helper[_0x55d51c(0x180)](),helper[_0x55d51c(0x15c)](),_0x18ed4f['strict'](![]);const _0x55c7ba=new BrowserStackSetup(_0x18ed4f[_0x55d51c(0x15e)],_0x5e1b8d[_0x55d51c(0x148)]);return _0x5e1b8d['xvYQL'](captureError,_0x5e1b8d[_0x55d51c(0x124)](require,_0x5e1b8d[_0x55d51c(0x16f)]),_0x18ed4f[_0x55d51c(0x15e)],_0x55c7ba,_0x17156f,!![]);})[a55_0x52190a(0x160)]('mocha',Constants[a55_0x52190a(0x1b4)][a55_0x52190a(0x1b3)],_0x5ca204=>{const _0x37107e=a55_0x52190a,_0x4ed67e={'TGuTa':function(_0x3ff5b0,_0x1ff274,_0x3ad72f,_0x4d558d){return _0x3ff5b0(_0x1ff274,_0x3ad72f,_0x4d558d);},'lItCm':function(_0x342d34,_0x4e618e){return _0x342d34(_0x4e618e);},'tsOLa':_0x37107e(0x194),'OIGxY':'mocha','tEDnl':_0x37107e(0x120),'AcszQ':function(_0x41a55f,_0x4bc5eb,_0x29110a){return _0x41a55f(_0x4bc5eb,_0x29110a);},'fjtvS':_0x37107e(0x149),'CbFzt':function(_0x320b84,_0x18c8fb,_0x1873c3){return _0x320b84(_0x18c8fb,_0x1873c3);},'YAhcx':_0x37107e(0x184),'EKbfs':_0x37107e(0x18e),'LKYEI':function(_0x5abade){return _0x5abade();}};process[_0x37107e(0x15e)]=process[_0x37107e(0x15e)][_0x37107e(0x142)](0x1),helper[_0x37107e(0x180)](),helper[_0x37107e(0x15c)]();const _0x5bcb44=new BrowserStackSetup(_0x5ca204[_0x37107e(0x15e)],_0x4ed67e[_0x37107e(0x162)]);logger[_0x37107e(0x167)](_0x4ed67e['tEDnl']);const _0x3440f2=_0x4ed67e[_0x37107e(0x158)](requireModule,_0x4ed67e[_0x37107e(0x17c)],_0x4ed67e[_0x37107e(0x162)]),_0xdb5094=_0x4ed67e['CbFzt'](requireModule,_0x4ed67e[_0x37107e(0x1af)],_0x4ed67e[_0x37107e(0x162)]);delete _0x3440f2[_0x37107e(0x1bb)],_0x3440f2[_0x37107e(0x1bb)]=function(_0x4f678c){const _0x58ecc1=_0x37107e;return _0x4ed67e['TGuTa'](captureError,_0x4ed67e['lItCm'](require,_0x4ed67e[_0x58ecc1(0x12d)]),_0x4f678c,_0x5bcb44);},_0xdb5094[_0x37107e(0x17e)]=_0x3440f2;const {main:_0x1ea4e8}=_0x4ed67e['AcszQ'](requireModule,_0x4ed67e[_0x37107e(0x1a4)],_0x4ed67e[_0x37107e(0x162)]);_0x4ed67e[_0x37107e(0x143)](_0x1ea4e8);})[a55_0x52190a(0x160)](a55_0x52190a(0x196),Constants[a55_0x52190a(0x161)][a55_0x52190a(0x1b3)],function(_0x299fc4){const _0x3db549=a55_0x52190a,_0x418db9={'PjxMj':'cucumber-js','xrlvd':function(_0x598409,_0x1bae60,_0x35612f,_0xac7132,_0x57fc89,_0x5100ed){return _0x598409(_0x1bae60,_0x35612f,_0xac7132,_0x57fc89,_0x5100ed);},'gyxmD':function(_0x24fb1e,_0x5a193c){return _0x24fb1e(_0x5a193c);},'vxMXa':_0x3db549(0x169)},_0x42f485=process[_0x3db549(0x15e)][_0x3db549(0x142)](0x2),_0x55730c=new BrowserStackSetup(_0x299fc4[_0x3db549(0x15e)],_0x418db9[_0x3db549(0x16b)]);return _0x418db9[_0x3db549(0x1b2)](captureError,_0x418db9[_0x3db549(0x12c)](require,_0x418db9[_0x3db549(0x1a6)]),_0x299fc4[_0x3db549(0x15e)],_0x55730c,_0x42f485,!![]);})['command'](a55_0x52190a(0x186),Constants[a55_0x52190a(0x135)][a55_0x52190a(0x1b3)],function(_0x5d919d){const _0x108594=a55_0x52190a,_0x1a3214={'tixIu':_0x108594(0x189),'cOAcT':function(_0x383c2f,_0x193eb2){return _0x383c2f(_0x193eb2);},'KwJoT':_0x108594(0x197),'NWyAn':function(_0x1031f1,_0x295bb0,_0x1d6aba,_0x54af8b,_0x478bfa){return _0x1031f1(_0x295bb0,_0x1d6aba,_0x54af8b,_0x478bfa);},'vqrsS':function(_0xdbd64f,_0x3998d3){return _0xdbd64f(_0x3998d3);},'fSUBz':'./newman/command','CRaBt':function(_0x30500a,_0x23afc9){return _0x30500a(_0x23afc9);},'TivFv':_0x108594(0x1ac)},_0x2cd2c8=process['argv'][_0x108594(0x142)](0x2),_0x5c9515=new BrowserStackSetup(_0x5d919d[_0x108594(0x15e)],_0x1a3214[_0x108594(0x126)]),_0x178950=_0x5c9515?_0x5c9515[_0x108594(0x131)]:null;if(_0x1a3214[_0x108594(0x12b)](isNewman,_0x178950))return _0x5c9515[_0x108594(0x18f)]=_0x1a3214[_0x108594(0x1bc)],global[_0x108594(0x18f)]=_0x1a3214[_0x108594(0x1bc)],_0x1a3214['NWyAn'](captureError,_0x1a3214[_0x108594(0x13f)](require,_0x1a3214[_0x108594(0x1ba)]),_0x5d919d[_0x108594(0x15e)],_0x5c9515,_0x2cd2c8);return _0x1a3214['NWyAn'](captureError,_0x1a3214[_0x108594(0x17f)](require,_0x1a3214[_0x108594(0x183)]),_0x5d919d[_0x108594(0x15e)],_0x5c9515,_0x2cd2c8);})[a55_0x52190a(0x160)](a55_0x52190a(0x17b),Constants[a55_0x52190a(0x155)]['INFO'],function(_0x30b6ef){const _0x5c3151=a55_0x52190a,_0x1d8ca3={'XbluW':function(_0x349e4e,_0x3221c4,_0x4e2aa8,_0x19774f,_0x3da2e6){return _0x349e4e(_0x3221c4,_0x4e2aa8,_0x19774f,_0x3da2e6);},'pOxpX':function(_0x20b14d,_0x459ee4){return _0x20b14d(_0x459ee4);},'pxrvR':_0x5c3151(0x153)},_0x186482=process[_0x5c3151(0x15e)]['slice'](0x2),_0x5f117b=new BrowserStackSetup(_0x30b6ef['argv']);return _0x1d8ca3[_0x5c3151(0x136)](captureError,_0x1d8ca3[_0x5c3151(0x1a7)](require,_0x1d8ca3[_0x5c3151(0x16c)]),_0x30b6ef[_0x5c3151(0x15e)],_0x5f117b,_0x186482);})[a55_0x52190a(0x160)]('codeceptjs',Constants[a55_0x52190a(0x16e)][a55_0x52190a(0x1b3)],function(_0x465b24){const _0xac7d33=a55_0x52190a,_0x2634ab={'UvCIB':_0xac7d33(0x15d),'pkkCC':function(_0x1d64e5,_0xd958dc,_0xde7add,_0x3eb20d,_0x1f24cd){return _0x1d64e5(_0xd958dc,_0xde7add,_0x3eb20d,_0x1f24cd);},'gbZZd':function(_0x3c6d81,_0x5a12ba){return _0x3c6d81(_0x5a12ba);},'TCDQi':'./codeceptjs/command'},_0xcd4b95=process[_0xac7d33(0x15e)][_0xac7d33(0x142)](0x2),_0x49c84c=new BrowserStackSetup(_0x465b24[_0xac7d33(0x15e)],_0x2634ab['UvCIB']);return _0x2634ab[_0xac7d33(0x15b)](captureError,_0x2634ab[_0xac7d33(0x13b)](require,_0x2634ab[_0xac7d33(0x146)]),_0x465b24[_0xac7d33(0x15e)],_0x49c84c,_0xcd4b95);})[a55_0x52190a(0x160)]('ats',Constants[a55_0x52190a(0x152)][a55_0x52190a(0x1b3)],function(_0x4604b8){const _0xc9358a=a55_0x52190a,_0x169cc2={'HzKBh':function(_0x153adf,_0x5d0437,_0x4337e0){return _0x153adf(_0x5d0437,_0x4337e0);},'OhYDb':function(_0x467e10,_0x439120){return _0x467e10(_0x439120);},'TFENV':_0xc9358a(0x125)},_0x11262a=process['argv'][_0xc9358a(0x142)](0x2);return _0x169cc2[_0xc9358a(0x174)](captureError,_0x169cc2[_0xc9358a(0x14c)](require,_0x169cc2[_0xc9358a(0x1a1)]),_0x4604b8);})[a55_0x52190a(0x160)]('integrations',Constants[a55_0x52190a(0x181)][a55_0x52190a(0x1b3)],function(_0x36feed){const _0x43d30f=a55_0x52190a,_0x5ac946={'eaKlQ':function(_0x43dbe1,_0x56e1c5){return _0x43dbe1(_0x56e1c5);}};return _0x5ac946[_0x43d30f(0x16a)](runIntegrations,_0x36feed);})['command'](a55_0x52190a(0x1b7),Constants[a55_0x52190a(0x166)][a55_0x52190a(0x1b3)],function(_0x671fbd){const _0x1f9227=a55_0x52190a,_0x20e9e0={'nUUgU':_0x1f9227(0x16d),'yibmF':function(_0x542631,_0x5c1a77){return _0x542631&&_0x5c1a77;},'WBuTe':function(_0x2b1fd8,_0x2b2963,_0x217931,_0x3a5f02,_0x3189ad,_0xf43914){return _0x2b1fd8(_0x2b2963,_0x217931,_0x3a5f02,_0x3189ad,_0xf43914);},'WKTZm':function(_0x53717e,_0x33f279){return _0x53717e(_0x33f279);},'Gkgpm':_0x1f9227(0x19e)},_0x3dd197=process['argv'][_0x1f9227(0x142)](0x2);helper[_0x1f9227(0x128)](process['argv'])&&(process['env']['BROWSERSTACK_CONFIG_FILE_PATH']=helper[_0x1f9227(0x128)](process['argv']));helper[_0x1f9227(0x180)](),helper['setBrowserStackAutomationDisable']();const _0x733f70=new BrowserStackSetup(_0x671fbd[_0x1f9227(0x15e)],FRAMEWORKS[_0x1f9227(0x166)]);try{if(!_0x733f70[_0x1f9227(0x131)]||!_0x733f70[_0x1f9227(0x131)][_0x1f9227(0x18b)]){const _0x30e743=_0x20e9e0['nUUgU'],_0x4542b8=process[_0x1f9227(0x1b1)][_0x1f9227(0x1a0)]||'',_0x424668=_0x4542b8[_0x1f9227(0x1b5)](',')['map'](_0x4f3213=>_0x4f3213['trim']())[_0x1f9227(0x14f)](Boolean),_0x4142f7=_0x424668[_0x1f9227(0x175)](_0x3b934b=>_0x3b934b===_0x1f9227(0x168)||_0x3b934b===_0x1f9227(0x19c)||_0x3b934b==='-*'),_0x36c8f5=_0x424668[_0x1f9227(0x175)](_0x2da52d=>_0x2da52d===_0x30e743||_0x2da52d===_0x1f9227(0x145)||_0x2da52d==='*');if(_0x20e9e0[_0x1f9227(0x12f)](!_0x4142f7,!_0x36c8f5)){const _0x4b9f7b=helper[_0x1f9227(0x157)]();_0x4b9f7b&&(process[_0x1f9227(0x1b1)][_0x1f9227(0x1a0)]=_0x4542b8?_0x4542b8+','+_0x30e743:_0x30e743,!process[_0x1f9227(0x1b1)][_0x1f9227(0x12e)]&&(process['env'][_0x1f9227(0x12e)]=_0x4b9f7b));}}}catch(_0x111186){logger['debug'](_0x1f9227(0x13c)+util[_0x1f9227(0x134)](_0x111186));}return _0x20e9e0[_0x1f9227(0x176)](captureError,_0x20e9e0[_0x1f9227(0x137)](require,_0x20e9e0[_0x1f9227(0x171)]),_0x671fbd[_0x1f9227(0x15e)],_0x733f70,_0x3dd197,!![]);})[a55_0x52190a(0x160)](a55_0x52190a(0x178),a55_0x52190a(0x188),function(_0x446a27){const _0x4db8e1=a55_0x52190a,_0x37c9dd={};_0x37c9dd[_0x4db8e1(0x140)]=_0x4db8e1(0x129),_0x37c9dd[_0x4db8e1(0x19a)]=_0x4db8e1(0x19d),_0x37c9dd['WUNtb']='Show\x20help';const _0x650990=_0x37c9dd;return _0x446a27[_0x4db8e1(0x129)](![])[_0x4db8e1(0x1a3)](_0x650990['WoIAS'],{'alias':'h','type':_0x650990[_0x4db8e1(0x19a)],'describe':_0x650990['WUNtb']})[_0x4db8e1(0x11b)](![])[_0x4db8e1(0x18d)](![]);},function(_0x1bf6c1){const _0x4b6f3b=a55_0x52190a,_0x4513c6={'oFRBz':function(_0x1cd16d,_0x282e68,_0xb4048d){return _0x1cd16d(_0x282e68,_0xb4048d);},'AAama':function(_0x30ecb2,_0x4bf48e){return _0x30ecb2(_0x4bf48e);},'smoWs':'./load/index'},_0x454bf0={};return _0x454bf0['argv']=_0x1bf6c1,_0x4513c6[_0x4b6f3b(0x14e)](captureError,_0x4513c6[_0x4b6f3b(0x198)](require,_0x4513c6['smoWs']),_0x454bf0);})['command']('newman',Constants[a55_0x52190a(0x11c)][a55_0x52190a(0x1b3)],function(_0xc6e964){const _0x27347f=a55_0x52190a,_0x82694d={'aBlkS':_0x27347f(0x197),'HqzSD':function(_0x47bcde,_0x26341e,_0xcbe305,_0x428118,_0x589beb){return _0x47bcde(_0x26341e,_0xcbe305,_0x428118,_0x589beb);},'xABCS':function(_0x4b3457,_0x276652){return _0x4b3457(_0x276652);},'gSBYV':_0x27347f(0x1a2)},_0x33250e=process[_0x27347f(0x15e)][_0x27347f(0x142)](0x2);helper[_0x27347f(0x180)](),helper[_0x27347f(0x15c)](),_0xc6e964[_0x27347f(0x11b)](![]);const _0xdb9b90=new BrowserStackSetup(_0xc6e964['argv'],_0x82694d['aBlkS']);return _0x82694d['HqzSD'](captureError,_0x82694d[_0x27347f(0x1aa)](require,_0x82694d[_0x27347f(0x1b0)]),_0xc6e964['argv'],_0xdb9b90,_0x33250e);})[a55_0x52190a(0x1ad)](0x1,a55_0x52190a(0x165))[a55_0x52190a(0x150)](null)[a55_0x52190a(0x15e)];function a55_0x4276(_0xd03621,_0x509199){const _0x25d4de=a55_0x25d4();return a55_0x4276=function(_0x427657,_0x4c970a){_0x427657=_0x427657-0x118;let _0x35b3f3=_0x25d4de[_0x427657];return _0x35b3f3;},a55_0x4276(_0xd03621,_0x509199);}!helper[a55_0x52190a(0x1b8)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!=='ats'&&console[a55_0x52190a(0x1a5)](a55_0x52190a(0x17a));
|
package/src/bin/setup.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const a56_0x1381e7=a56_0x40a9;function a56_0x40a9(_0x32df34,_0x1244ed){const _0x554858=a56_0x5548();return a56_0x40a9=function(_0x40a949,_0x3d508d){_0x40a949=_0x40a949-0x1c9;let _0x47823d=_0x554858[_0x40a949];return _0x47823d;},a56_0x40a9(_0x32df34,_0x1244ed);}(function(_0x163a9a,_0x402213){const _0x5e767d=a56_0x40a9,_0x357b2c=_0x163a9a();while(!![]){try{const _0x145dfe=parseInt(_0x5e767d(0x1cb))/0x1*(parseInt(_0x5e767d(0x1e8))/0x2)+parseInt(_0x5e767d(0x20b))/0x3+parseInt(_0x5e767d(0x20e))/0x4*(-parseInt(_0x5e767d(0x1de))/0x5)+parseInt(_0x5e767d(0x1ff))/0x6+-parseInt(_0x5e767d(0x1f1))/0x7*(-parseInt(_0x5e767d(0x1f3))/0x8)+parseInt(_0x5e767d(0x1cf))/0x9*(parseInt(_0x5e767d(0x1eb))/0xa)+-parseInt(_0x5e767d(0x207))/0xb*(parseInt(_0x5e767d(0x1e3))/0xc);if(_0x145dfe===_0x402213)break;else _0x357b2c['push'](_0x357b2c['shift']());}catch(_0x43cd11){_0x357b2c['push'](_0x357b2c['shift']());}}}(a56_0x5548,0xc5c3c));const fs=require('fs'),helper=require(a56_0x1381e7(0x1ce)),utilities=require('../helpers/utilities'),yaml=require(a56_0x1381e7(0x1d7)),yargs=require('yargs'),logger=require(a56_0x1381e7(0x20d))['winstonLogger'],configFileTemplate=__dirname+a56_0x1381e7(0x1e5),configFileTemplatePW=__dirname+a56_0x1381e7(0x1f7),configFile=process[a56_0x1381e7(0x208)]()+a56_0x1381e7(0x1d0),packageFile=process[a56_0x1381e7(0x208)]()+a56_0x1381e7(0x1d8),frameworks=[a56_0x1381e7(0x1fa),a56_0x1381e7(0x1db),'cucumber-js',a56_0x1381e7(0x1dd),'nightwatch','codeceptjs',a56_0x1381e7(0x206)];let config;logger['info'](a56_0x1381e7(0x1f8)),createConfigurationFile(yargs[a56_0x1381e7(0x1f5)]['username'],yargs[a56_0x1381e7(0x1f5)][a56_0x1381e7(0x1dc)],yargs[a56_0x1381e7(0x1f5)][a56_0x1381e7(0x206)]);try{sdkSetup();}catch(a56_0x3159ac){logger[a56_0x1381e7(0x1ef)]('Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20'+a56_0x3159ac);}function a56_0x5548(){const _0x368380=['BrmxD','load','js-yaml','/package.json','length','browserstack-node-sdk\x20','jest','key','node','1691785ahzFWU','vAfau','zJQYp','writeFileSync','browserstack-node-sdk','19296iwnQrw','utf8','/../../browserstack.yml.sample','indexOf','KghMr','1293244nPNaZd','xtDOm','renWi','10OTFXfL','SDKSetup','error','YOUR_ACCESS_KEY','debug','bxBIa','7nmklkg','includes','720152btzWWT','info','argv','QtVIC','/../../browserstack.pw.yml.sample','Creating\x20configuration\x20file...','vHbis','mocha','NZixN','YxSDN','isUndefined','nYtkw','9261186HNkYLq','scripts','entries','push','\x20&&\x20npm\x20update\x20browserstack-node-sdk','mboae','YOUR_USERNAME','playwright','10670FoYsHx','cwd','join','UFQUq','397074CwoiMw','xPbfC','../helpers/logger','16OdMEbA','LqARy','node-setup','1WTcsBq','postinstall','replace','../helpers/helper','11796318EjqyDQ','/browserstack.yml','lvzek','IdMIf','stringify','vlXgG'];a56_0x5548=function(){return _0x368380;};return a56_0x5548();}addScriptInPackageJson();function createConfigurationFile(_0x513f9a,_0x323207,_0x15b31f=![]){const _0x15f860=a56_0x1381e7,_0x21e38e={};_0x21e38e[_0x15f860(0x20a)]='utf8',_0x21e38e[_0x15f860(0x1e7)]=_0x15f860(0x205),_0x21e38e[_0x15f860(0x1df)]=_0x15f860(0x1ee);const _0x30f1d7=_0x21e38e;try{let _0xa359f=fs['readFileSync'](_0x15b31f?configFileTemplatePW:configFileTemplate,_0x30f1d7[_0x15f860(0x20a)]);_0x513f9a&&(_0xa359f=_0xa359f[_0x15f860(0x1cd)](_0x30f1d7[_0x15f860(0x1e7)],_0x513f9a)),_0x323207&&(_0xa359f=_0xa359f[_0x15f860(0x1cd)](_0x30f1d7[_0x15f860(0x1df)],_0x323207)),config=yaml[_0x15f860(0x1d6)](_0xa359f),fs[_0x15f860(0x1e1)](configFile,_0xa359f,_0x29c677=>{const _0x4bce55=_0x15f860;_0x29c677&&logger[_0x4bce55(0x1ed)](_0x29c677);});}catch(_0x2da269){logger[_0x15f860(0x1ed)](_0x2da269);}}function addPostInstallScript(_0x2d33bb,_0x2377bd){const _0x1629f3=a56_0x1381e7,_0x197aaa={};_0x197aaa[_0x1629f3(0x204)]=_0x1629f3(0x1cc),_0x197aaa[_0x1629f3(0x1f6)]='npm\x20update\x20browserstack-node-sdk',_0x197aaa[_0x1629f3(0x1fe)]=_0x1629f3(0x203);const _0x37b00a=_0x197aaa;let _0x48624c=_0x2d33bb[_0x37b00a[_0x1629f3(0x204)]];if(_0x48624c&&_0x48624c[_0x1629f3(0x1f2)](_0x37b00a[_0x1629f3(0x1f6)]))return;!_0x48624c?_0x48624c=_0x37b00a[_0x1629f3(0x1f6)]:_0x48624c+=_0x37b00a[_0x1629f3(0x1fe)],_0x2377bd[_0x1629f3(0x202)]([_0x37b00a['mboae'],_0x48624c]);}function addScriptInPackageJson(){const _0x2f8fc0=a56_0x1381e7,_0x4dfa33={'AWVNz':_0x2f8fc0(0x1e4),'renWi':function(_0x1739ff,_0x1ba038){return _0x1739ff<_0x1ba038;},'BrmxD':function(_0x303353,_0x5304e8,_0x3be256){return _0x303353(_0x5304e8,_0x3be256);},'NZixN':function(_0x3672a6,_0x351335,_0x5639ee){return _0x3672a6(_0x351335,_0x5639ee);},'zJQYp':function(_0x52a2c7,_0xac3eaf,_0x5bf9ef){return _0x52a2c7(_0xac3eaf,_0x5bf9ef);},'xtDOm':function(_0x292c7e,_0x4dd44b){return _0x292c7e!==_0x4dd44b;},'IdMIf':'Adding\x20new\x20script(s)\x20in\x20package.json...'},_0x65498b=JSON['parse'](fs['readFileSync'](packageFile,_0x4dfa33['AWVNz'])),_0x39db7d=[];for(let _0x6514f6=0x0;_0x4dfa33['renWi'](_0x6514f6,frameworks['length']);_0x6514f6+=0x1){const _0x166b9b=_0x4dfa33[_0x2f8fc0(0x1d5)](findScriptsWithFramework,_0x65498b[_0x2f8fc0(0x200)],frameworks[_0x6514f6]);for(let _0x2264ee=0x0;_0x4dfa33[_0x2f8fc0(0x1ea)](_0x2264ee,_0x166b9b[_0x2f8fc0(0x1d9)]);_0x2264ee+=0x1){_0x39db7d[_0x2f8fc0(0x202)](_0x4dfa33[_0x2f8fc0(0x1fb)](getUpdatedCommand,_0x65498b[_0x2f8fc0(0x200)],_0x166b9b[_0x2264ee]));}_0x4dfa33[_0x2f8fc0(0x1e0)](addPostInstallScript,_0x65498b[_0x2f8fc0(0x200)],_0x39db7d);}const _0x1174bc={..._0x65498b[_0x2f8fc0(0x200)]},_0x53a829=_0x1174bc;for(let _0x12b7ff=0x0;_0x4dfa33['renWi'](_0x12b7ff,_0x39db7d[_0x2f8fc0(0x1d9)]);_0x12b7ff+=0x1){_0x53a829[_0x39db7d[_0x12b7ff][0x0]]=_0x39db7d[_0x12b7ff][0x1];}_0x4dfa33[_0x2f8fc0(0x1e9)](JSON[_0x2f8fc0(0x1d3)](_0x65498b[_0x2f8fc0(0x200)]),JSON[_0x2f8fc0(0x1d3)](_0x53a829))&&(logger['info'](_0x4dfa33[_0x2f8fc0(0x1d2)]),_0x65498b[_0x2f8fc0(0x200)]=_0x53a829,fs[_0x2f8fc0(0x1e1)](packageFile,JSON[_0x2f8fc0(0x1d3)](_0x65498b,null,0x2),_0x1bc2d2=>{const _0x52e335=_0x2f8fc0;_0x1bc2d2&&logger[_0x52e335(0x1ed)](_0x1bc2d2);}));};function findScriptsWithFramework(_0x362781,_0x1d2c0f){const _0x5060b4=a56_0x1381e7,_0x47fb0e={};_0x47fb0e[_0x5060b4(0x1d4)]=function(_0x5395dd,_0x540910){return _0x5395dd<_0x540910;},_0x47fb0e[_0x5060b4(0x1d1)]=_0x5060b4(0x1e2);const _0x3770cf=_0x47fb0e,_0x361cfa=[],_0x323f6a=Object[_0x5060b4(0x201)](_0x362781);for(let _0x174d6d=0x0;_0x3770cf[_0x5060b4(0x1d4)](_0x174d6d,_0x323f6a['length']);_0x174d6d+=0x1){_0x323f6a[_0x174d6d][0x1][_0x5060b4(0x1f2)](_0x1d2c0f)&&!_0x323f6a[_0x174d6d][0x1][_0x5060b4(0x1f2)](_0x3770cf[_0x5060b4(0x1d1)])&&_0x361cfa['push'](_0x323f6a[_0x174d6d][0x0]);}return _0x361cfa;}function getUpdatedCommand(_0x257602,_0x4c1692){const _0x302be6=a56_0x1381e7,_0x4822d0={};_0x4822d0['YxSDN']=function(_0x10fade,_0x233ea2){return _0x10fade!==_0x233ea2;},_0x4822d0[_0x302be6(0x1f9)]=_0x302be6(0x1e2),_0x4822d0['LqARy']=function(_0x268d0f,_0x252186){return _0x268d0f===_0x252186;};const _0x5d5ce2=_0x4822d0,_0x37919b=_0x4c1692+'-browserstack',_0x435cd8=_0x257602[_0x4c1692],_0x547fdc=_0x435cd8['split']('\x20');for(const _0x190392 of frameworks){if(_0x5d5ce2[_0x302be6(0x1fc)](_0x547fdc['indexOf'](_0x190392),-0x1)){_0x547fdc['splice'](_0x547fdc[_0x302be6(0x1e6)](_0x190392),0x0,_0x5d5ce2['vHbis']);break;}}let _0x978bd6=_0x547fdc[_0x302be6(0x209)]('\x20');return _0x5d5ce2[_0x302be6(0x1c9)](_0x978bd6,_0x435cd8)&&(_0x978bd6=_0x302be6(0x1da)+_0x435cd8),[_0x37919b,_0x978bd6];}function sdkSetup(){const _0x35ca50=a56_0x1381e7,_0x34d86f={};_0x34d86f['xPbfC']=_0x35ca50(0x1ca),_0x34d86f['bxBIa']=_0x35ca50(0x1ec);const _0x27f457=_0x34d86f;if(helper[_0x35ca50(0x1fd)](config))return;config['source']=_0x27f457[_0x35ca50(0x20c)];try{utilities['fireFunnelTestEvent'](_0x27f457[_0x35ca50(0x1f0)],{},config,'');}catch(_0x5dbd35){logger[_0x35ca50(0x1ef)]('Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20'+_0x5dbd35);}}logger[a56_0x1381e7(0x1f4)]('Setup\x20completed');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a53_0x27c7dc=a53_0x72d0;function a53_0x72d0(_0x27559e,_0x879835){const _0x499416=a53_0x4994();return a53_0x72d0=function(_0x72d0a5,_0x245a44){_0x72d0a5=_0x72d0a5-0x1e4;let _0x2e4ed4=_0x499416[_0x72d0a5];return _0x2e4ed4;},a53_0x72d0(_0x27559e,_0x879835);}(function(_0x4ca8d1,_0x39e9c6){const _0x535e05=a53_0x72d0,_0x3ea5b4=_0x4ca8d1();while(!![]){try{const _0x1d9839=parseInt(_0x535e05(0x217))/0x1+parseInt(_0x535e05(0x1e9))/0x2*(parseInt(_0x535e05(0x212))/0x3)+-parseInt(_0x535e05(0x1ef))/0x4+-parseInt(_0x535e05(0x213))/0x5+-parseInt(_0x535e05(0x201))/0x6*(parseInt(_0x535e05(0x1e5))/0x7)+parseInt(_0x535e05(0x23c))/0x8+-parseInt(_0x535e05(0x239))/0x9*(-parseInt(_0x535e05(0x1e7))/0xa);if(_0x1d9839===_0x39e9c6)break;else _0x3ea5b4['push'](_0x3ea5b4['shift']());}catch(_0x3f8a13){_0x3ea5b4['push'](_0x3ea5b4['shift']());}}}(a53_0x4994,0xc8391));function a53_0x4994(){const _0x11199d=['tAySE','zTfFz','UnFPd','Worker','545742mmBQMA','test-file-start','YJthu','6823112gKAJJL','_child','parallelTestRun','YtBvU','platform-run-failure','emit','tPcpX','atgQx','YIePD','log','test-file-failure','getStdout','RGemQ','7HTFjDS','Exception\x20in\x20adding\x20custom\x20message\x20channel\x20','490PYOenR','all','2EHLOvw','end','failureCount','length','pipe','exitCode','4782772CkpMSu','hEoZR','ysBaa','configuration','error','then','iZPwb','JenCc','worker_threads','format','p-limit','info','stop','test-file-success','json','rEVmq','XocfM','getStderr','7384110GIxNrT','../../helpers/logger','Workers\x20failed\x20to\x20exit\x20gracefully','IBhpt','lSvmp','jest-worker','send','platformIndex','map','cucumberWorker','emittery','getWorkers','UNSTABLE_onCustomMessage','platform','vanillaWorker','../../helpers/testhub/testhubHandler','yJDqV','1186575TPInez','7818910tNHbpx','GERCK','OvUxg','DQdKV','590597OqBIRc','resolve','pPqYn','QZJwx','gNkJt','qHgTD','WINkx','_workerPool','stdout','platform-run-start','../../helpers/test-observability/utils','edAdD','SBRQV','stderr','util','xtQKp','QhzCf','Running\x20','EVENTS','NbsUv','Nolxs','platform-run-success','debug','kvaHi','../../helpers/performance/constants','platformCaps','./testWorker.js','worker','xZLJn','Exception\x20in\x20stop\x20build\x20request\x20to\x20Testhub\x20:\x20'];a53_0x4994=function(){return _0x11199d;};return a53_0x4994();}const Worker=require(a53_0x27c7dc(0x206))[a53_0x27c7dc(0x238)],Emittery=require(a53_0x27c7dc(0x20b)),pLimit=require(a53_0x27c7dc(0x1f9)),{parentPort}=require(a53_0x27c7dc(0x1f7)),util=require(a53_0x27c7dc(0x225)),logger=require(a53_0x27c7dc(0x202))['winstonLogger'],PerformanceTester=require('../../helpers/performance/performance-tester'),PerformanceEvents=require(a53_0x27c7dc(0x22f))[a53_0x27c7dc(0x229)],{debug}=require(a53_0x27c7dc(0x221)),TestHubHandler=require(a53_0x27c7dc(0x210));exports[a53_0x27c7dc(0x23e)]=(_0x44cf14,_0x4f743e,_0x422631)=>new Promise(async _0x34da59=>{const _0x36ab09=a53_0x27c7dc,_0x36b19e={'iZPwb':_0x36ab09(0x1eb),'OvUxg':function(_0x5c8dda,_0x4dffe0){return _0x5c8dda+_0x4dffe0;},'tPcpX':'results','gNkJt':_0x36ab09(0x203),'kvaHi':function(_0x5731e8,_0x1d75af){return _0x5731e8(_0x1d75af);},'IBhpt':_0x36ab09(0x23a),'uSQyT':_0x36ab09(0x231),'KlMan':_0x36ab09(0x232),'XocfM':_0x36ab09(0x1fd),'NbsUv':_0x36ab09(0x1ed),'YJthu':function(_0x5275fb,_0x2e6ab7){return _0x5275fb*_0x2e6ab7;},'SBRQV':_0x36ab09(0x1fc),'WINkx':_0x36ab09(0x246)},_0x1cf4c4=_0x422631['config'],_0x1d7f04={},_0x39761f=new Worker(require[_0x36ab09(0x218)](_0x36b19e['uSQyT']),{'exposedMethods':[_0x36b19e['KlMan']],'forkOptions':{'serialization':_0x36b19e[_0x36ab09(0x1ff)],'stdio':_0x36b19e[_0x36ab09(0x22a)]},'idleMemoryLimit':undefined,'maxRetries':0x1,'numWorkers':_0x36b19e[_0x36ab09(0x23b)](_0x4f743e,0x1),'enableWorkerThreads':!![]}),_0x4e5035=new Emittery();_0x4e5035['on'](_0x36b19e[_0x36ab09(0x223)],_0x308eb8=>{const _0x1fbe4e=_0x36ab09;_0x1d7f04[_0x308eb8[0x0]]?(_0x1d7f04[_0x308eb8[0x0]][_0x36b19e['iZPwb']]=_0x36b19e[_0x1fbe4e(0x215)](_0x1d7f04[_0x308eb8[0x0]][_0x36b19e[_0x1fbe4e(0x1f5)]],_0x308eb8[0x1][_0x36b19e[_0x1fbe4e(0x1f5)]]),_0x1d7f04[_0x308eb8[0x0]][_0x36b19e[_0x1fbe4e(0x242)]]=[..._0x1d7f04[_0x308eb8[0x0]][_0x36b19e[_0x1fbe4e(0x242)]],..._0x308eb8[0x1][_0x36b19e['tPcpX']]]):_0x1d7f04[_0x308eb8[0x0]]={'failureCount':_0x308eb8[0x1][_0x36b19e[_0x1fbe4e(0x1f5)]],'results':[..._0x308eb8[0x1][_0x36b19e[_0x1fbe4e(0x242)]]]};}),_0x4e5035['on'](_0x36b19e[_0x36ab09(0x21d)],_0x4542a9=>console[_0x36ab09(0x245)](_0x4542a9[0x1]));_0x39761f[_0x36ab09(0x247)]()&&_0x39761f['getStdout']()['pipe'](process[_0x36ab09(0x21f)]);_0x39761f[_0x36ab09(0x200)]()&&_0x39761f['getStderr']()[_0x36ab09(0x1ed)](process[_0x36ab09(0x224)]);const _0x31441f=async()=>{const _0x53b786=_0x36ab09,{forceExited:_0x2b8b84}=await _0x39761f[_0x53b786(0x1ea)]();_0x2b8b84&&console['error'](_0x36b19e[_0x53b786(0x21b)]);try{await TestHubHandler[_0x53b786(0x1fb)]();}catch(_0x512643){_0x36b19e[_0x53b786(0x22e)](debug,_0x53b786(0x234)+_0x512643);}_0x36b19e[_0x53b786(0x22e)](_0x34da59,_0x1d7f04);},_0x39038e=_0x36b19e[_0x36ab09(0x22e)](pLimit,_0x36b19e[_0x36ab09(0x23b)](_0x4f743e,0x1)),_0x4989c0=_0x3090a8=>_0x39038e(async()=>{const _0x1ecdfe=_0x36ab09;await _0x4e5035[_0x1ecdfe(0x241)](_0x36b19e[_0x1ecdfe(0x204)],_0x3090a8);const _0x1ce5eb=_0x39761f['worker'](_0x3090a8,_0x1cf4c4);try{parentPort&&_0x1ce5eb[_0x1ecdfe(0x20d)](_0x5685d9=>{const _0x1d8267=_0x1ecdfe;try{parentPort['postMessage'](_0x5685d9);}catch(_0xa03581){logger[_0x1d8267(0x22d)]('Exception\x20in\x20sending\x20worker\x20message\x20'+util[_0x1d8267(0x1f8)](_0xa03581));}});}catch(_0x392c07){logger[_0x1ecdfe(0x22d)](_0x1ecdfe(0x1e6)+util[_0x1ecdfe(0x1f8)](_0x392c07));}return _0x1ce5eb;});PerformanceTester[_0x36ab09(0x1ea)](PerformanceEvents['SDK_SETUP']),Promise[_0x36ab09(0x1e8)](_0x44cf14[_0x36ab09(0x209)](_0x31d629=>_0x4989c0(_0x31d629)[_0x36ab09(0x1f4)](_0x20b03a=>_0x4e5035['emit'](_0x36ab09(0x1fc),[_0x31d629['configuration'][_0x36ab09(0x20e)],_0x20b03a]),_0x2b3478=>_0x4e5035[_0x36ab09(0x241)]('test-file-failure',[_0x31d629,_0x2b3478]))))['then'](_0x31441f,_0x31441f);}),exports['parallelCucumberRun']=(_0x2711fb,_0x1c4e8f,_0x5660d3,_0x47e31a,_0x1ef77c)=>{const _0x9c0181=a53_0x27c7dc,_0x474595={'GERCK':'Workers\x20failed\x20to\x20exit\x20gracefully','edAdD':function(_0x417f8f,_0x24ef30){return _0x417f8f(_0x24ef30);},'xZLJn':_0x9c0181(0x220),'pPqYn':_0x9c0181(0x231),'HgnUi':_0x9c0181(0x20a),'rEVmq':'json','JenCc':'pipe','DQdKV':_0x9c0181(0x22c),'ysBaa':_0x9c0181(0x240)};return new Promise(_0x5a6d63=>{const _0x1b62ea=_0x9c0181,_0x5b2f44={'QhzCf':_0x474595[_0x1b62ea(0x214)],'SoNop':function(_0x1c2311,_0x218744){return _0x474595['edAdD'](_0x1c2311,_0x218744);},'tAySE':_0x474595[_0x1b62ea(0x233)]},_0x2dbf15=[],_0x1ebbee=new Worker(require[_0x1b62ea(0x218)](_0x474595[_0x1b62ea(0x219)]),{'exposedMethods':[_0x474595['HgnUi']],'forkOptions':{'serialization':_0x474595[_0x1b62ea(0x1fe)],'stdio':_0x474595[_0x1b62ea(0x1f6)]},'numWorkers':_0x2711fb['length']||0x1,'enableWorkerThreads':!![],'idleMemoryLimit':undefined,'maxRetries':0x1}),_0x38a256=new Emittery();_0x38a256['on'](_0x474595[_0x1b62ea(0x216)],_0x2c55db=>{_0x2dbf15['push']([_0x2c55db[0x0],_0x2c55db[0x1]]);}),_0x38a256['on'](_0x474595[_0x1b62ea(0x1f1)],_0x13dc78=>console[_0x1b62ea(0x245)](_0x13dc78[0x1]));_0x1ebbee[_0x1b62ea(0x247)]()&&_0x1ebbee[_0x1b62ea(0x247)]()[_0x1b62ea(0x1ed)](process[_0x1b62ea(0x21f)]);_0x1ebbee[_0x1b62ea(0x200)]()&&_0x1ebbee[_0x1b62ea(0x200)]()[_0x1b62ea(0x1ed)](process[_0x1b62ea(0x224)]);const _0x180397=async()=>{const _0x214748=_0x1b62ea,{forceExited:_0x52ebb8}=await _0x1ebbee[_0x214748(0x1ea)]();_0x52ebb8&&console[_0x214748(0x1f3)](_0x5b2f44[_0x214748(0x227)]),_0x5b2f44['SoNop'](_0x5a6d63,_0x2dbf15);},_0x13c752=_0x474595[_0x1b62ea(0x222)](pLimit,_0x2711fb[_0x1b62ea(0x1ec)]||0x1),_0x232aa8=(_0x4ebe74,_0x52468f)=>_0x13c752(async()=>{const _0x3eccef=_0x1b62ea;return await _0x38a256['emit'](_0x5b2f44[_0x3eccef(0x235)],_0x4ebe74),_0x1c4e8f[_0x3eccef(0x230)]=_0x5660d3['platforms'][_0x52468f],_0x1c4e8f[_0x3eccef(0x208)]=_0x52468f,_0x1ebbee[_0x3eccef(0x20a)](_0x4ebe74,_0x1c4e8f,_0x5660d3,_0x47e31a,_0x1ef77c);});Promise[_0x1b62ea(0x1e8)](_0x2711fb[_0x1b62ea(0x209)]((_0x6291a,_0xaf9c59)=>_0x232aa8(_0x6291a,_0xaf9c59)[_0x1b62ea(0x1f4)](_0x39909f=>_0x38a256['emit'](_0x1b62ea(0x22c),[_0x6291a,_0x39909f]),_0x372299=>_0x38a256[_0x1b62ea(0x241)]('platform-run-failure',[_0x6291a,_0x372299]))))[_0x1b62ea(0x1f4)](_0x180397,_0x180397);});},exports['parallelVanillaRun']=(_0x33a60a,_0x1859b5)=>new Promise(_0x154a2b=>{const _0x5a4f5f=a53_0x27c7dc,_0xa41144={'YtBvU':function(_0x5cdaf2,_0x104190){return _0x5cdaf2===_0x104190;},'UnFPd':function(_0x3107df,_0x132996){return _0x3107df!==_0x132996;},'OSEii':'exit','xEPzx':_0x5a4f5f(0x203),'zTfFz':function(_0x915dc2,_0x4f0f90){return _0x915dc2(_0x4f0f90);},'hEoZR':_0x5a4f5f(0x231),'GktWl':_0x5a4f5f(0x20f),'YIePD':'json','atgQx':_0x5a4f5f(0x1ed),'xtQKp':_0x5a4f5f(0x1fc),'qHgTD':'test-file-failure'},_0x39a5ad={},_0x31bcc7=new Worker(require[_0x5a4f5f(0x218)](_0xa41144[_0x5a4f5f(0x1f0)]),{'exposedMethods':[_0xa41144['GktWl']],'forkOptions':{'serialization':_0xa41144[_0x5a4f5f(0x244)],'stdio':_0xa41144[_0x5a4f5f(0x243)]},'numWorkers':_0x1859b5,'enableWorkerThreads':![],'maxRetries':0x1,'idleMemoryLimit':undefined}),_0x5d5e15=new Emittery();_0x5d5e15['on'](_0xa41144[_0x5a4f5f(0x226)],_0x21e68a=>{const _0x50c715=_0x5a4f5f;_0x21e68a[0x0]&&logger[_0x50c715(0x1fa)](_0x50c715(0x228)+_0x21e68a[0x1]+'\x20for',_0x21e68a[0x0]);}),_0x5d5e15['on'](_0xa41144[_0x5a4f5f(0x21c)],_0x2c3fc1=>{const _0x393d7a=_0x5a4f5f;process[_0x393d7a(0x1ee)]=0x1;});_0x31bcc7[_0x5a4f5f(0x247)]()&&_0x31bcc7[_0x5a4f5f(0x247)]()['pipe'](process[_0x5a4f5f(0x21f)]);_0x31bcc7[_0x5a4f5f(0x200)]()&&_0x31bcc7[_0x5a4f5f(0x200)]()['pipe'](process[_0x5a4f5f(0x224)]);const _0x100527=async()=>{const _0x45acd9=_0x5a4f5f,_0x1c8f21={'lSvmp':function(_0x2e9168,_0x34926c){const _0x5a485f=a53_0x72d0;return _0xa41144[_0x5a485f(0x23f)](_0x2e9168,_0x34926c);},'QZJwx':function(_0x39b3ae,_0x4c3606){const _0x36a4a4=a53_0x72d0;return _0xa41144[_0x36a4a4(0x237)](_0x39b3ae,_0x4c3606);},'RGemQ':_0xa41144['OSEii']};let _0x29c4ff=0x0;const _0x2c4d01=_0x31bcc7[_0x45acd9(0x21e)][_0x45acd9(0x20c)](),_0x23d32d=()=>{},_0xd7c2ca=_0x2c4d01[_0x45acd9(0x209)](async _0x3d3858=>{const _0x5c3e30=_0x45acd9,_0x59348c={'Nolxs':function(_0x139f12,_0x514e53){const _0x5efc0c=a53_0x72d0;return _0x1c8f21[_0x5efc0c(0x205)](_0x139f12,_0x514e53);},'yJDqV':function(_0x1cf176,_0xc7b0f5){const _0x5d6400=a53_0x72d0;return _0x1c8f21[_0x5d6400(0x21a)](_0x1cf176,_0xc7b0f5);}};_0x3d3858[_0x5c3e30(0x207)]([0x2,![]],_0x23d32d,_0x23d32d,_0x23d32d),_0x3d3858[_0x5c3e30(0x23d)]['on'](_0x1c8f21[_0x5c3e30(0x1e4)],_0x4d9465=>{const _0xc75c5f=_0x5c3e30;_0x59348c[_0xc75c5f(0x22b)](_0x29c4ff,0x0)&&_0x59348c[_0xc75c5f(0x211)](_0x4d9465,0x0)&&(_0x29c4ff=_0x4d9465);}),await _0x3d3858['waitForExit']();});await Promise[_0x45acd9(0x1e8)](_0xd7c2ca),process[_0x45acd9(0x1ee)]=_0x29c4ff;const {forceExited:_0x143e74}=await _0x31bcc7[_0x45acd9(0x1ea)]();_0x143e74&&console[_0x45acd9(0x1f3)](_0xa41144['xEPzx']),_0xa41144[_0x45acd9(0x236)](_0x154a2b,_0x39a5ad);},_0x426dae=_0xa41144[_0x5a4f5f(0x236)](pLimit,_0x1859b5),_0xc4878d=_0x209291=>_0x426dae(async()=>{const _0x2f02d4=_0x5a4f5f;return _0x31bcc7[_0x2f02d4(0x20f)](_0x209291);});Promise[_0x5a4f5f(0x1e8)](_0x33a60a[_0x5a4f5f(0x209)](_0x54fce6=>_0xc4878d(_0x54fce6)[_0x5a4f5f(0x1f4)](_0x2e5506=>_0x5d5e15['emit'](_0x5a4f5f(0x1fc),[_0x54fce6['configuration'][_0x5a4f5f(0x20e)],_0x54fce6[_0x5a4f5f(0x1f2)]['file']]),_0x49f04b=>_0x5d5e15['emit'](_0x5a4f5f(0x246),[_0x54fce6,_0x49f04b]))))[_0x5a4f5f(0x1f4)](_0x100527,_0x100527);});
|
|
1
|
+
function a57_0x899f(){const _0x2cb176=['akRIQ','results','debug','stdout','exitCode','./testWorker.js','../../helpers/testhub/testhubHandler','fKEVT','exit','emittery','winstonLogger','InojX','platform','UcGZW','then','platform-run-failure','LdtiF','WTutN','Exception\x20in\x20stop\x20build\x20request\x20to\x20Testhub\x20:\x20','all','stderr','tyDND','itvRV','parallelVanillaRun','SZvzh','GclUn','log','wZwwD','map','parallelTestRun','test-file-failure','PDwUa','hUjvv','length','ljocY','test-file-success','cucumberWorker','push','failureCount','parallelCucumberRun','gqmnC','1782460VJpFgs','send','KvEeS','getStdout','Qdihj','4065384BqGlcv','cYOZW','worker_threads','WPciS','ksjyY','pipe','resolve','configuration','_child','7311378jIRMgq','prfwZ','5185112lVBubm','IzdMR','DuflO','Jplpf','NATES','worker','end','../../helpers/performance/performance-tester','iSmMs','21077742nYRUWG','Workers\x20failed\x20to\x20exit\x20gracefully','668508QeTAdW','emit','kASwn','1156509aoLSpi','Exception\x20in\x20sending\x20worker\x20message\x20','p-limit','info','test-file-start','platformIndex','reZjk','platforms','json','UPZph','vanillaWorker','../../helpers/test-observability/utils','jest-worker','postMessage','getStderr','format','error','config','platform-run-start','../../helpers/performance/constants','stop'];a57_0x899f=function(){return _0x2cb176;};return a57_0x899f();}const a57_0xeb97b2=a57_0x5236;(function(_0x2d11f1,_0x58afe0){const _0x140ee8=a57_0x5236,_0x522ffa=_0x2d11f1();while(!![]){try{const _0x57dc22=-parseInt(_0x140ee8(0x1ec))/0x1+-parseInt(_0x140ee8(0x1e9))/0x2+parseInt(_0x140ee8(0x1d3))/0x3+-parseInt(_0x140ee8(0x1de))/0x4+parseInt(_0x140ee8(0x1ce))/0x5+-parseInt(_0x140ee8(0x1dc))/0x6+parseInt(_0x140ee8(0x1e7))/0x7;if(_0x57dc22===_0x58afe0)break;else _0x522ffa['push'](_0x522ffa['shift']());}catch(_0x5728e3){_0x522ffa['push'](_0x522ffa['shift']());}}}(a57_0x899f,0xaf142));const Worker=require(a57_0xeb97b2(0x1f8))['Worker'],Emittery=require(a57_0xeb97b2(0x20a)),pLimit=require(a57_0xeb97b2(0x1ee)),{parentPort}=require(a57_0xeb97b2(0x1d5)),util=require('util'),logger=require('../../helpers/logger')[a57_0xeb97b2(0x20b)],PerformanceTester=require(a57_0xeb97b2(0x1e5)),PerformanceEvents=require(a57_0xeb97b2(0x1ff))['EVENTS'],{debug}=require(a57_0xeb97b2(0x1f7)),TestHubHandler=require(a57_0xeb97b2(0x207));function a57_0x5236(_0x232e72,_0x34de03){const _0x899fb0=a57_0x899f();return a57_0x5236=function(_0x5236cf,_0x27e54f){_0x5236cf=_0x5236cf-0x1b9;let _0x105760=_0x899fb0[_0x5236cf];return _0x105760;},a57_0x5236(_0x232e72,_0x34de03);}exports[a57_0xeb97b2(0x1c2)]=(_0x153851,_0x755828,_0x16873d)=>new Promise(async _0x214fdc=>{const _0xdb8328=a57_0xeb97b2,_0x3f5005={'prfwZ':_0xdb8328(0x1cb),'GclUn':function(_0x2d6b2b,_0x2313ba){return _0x2d6b2b+_0x2313ba;},'ksjyY':_0xdb8328(0x202),'ZIDrk':_0xdb8328(0x1e8),'reZjk':function(_0x5f1567,_0xa3c20c){return _0x5f1567(_0xa3c20c);},'itvRV':_0xdb8328(0x1f0),'JFMdN':_0xdb8328(0x206),'SZvzh':_0xdb8328(0x1e3),'fnBZU':_0xdb8328(0x1f4),'lINBc':_0xdb8328(0x1d8),'fKEVT':function(_0x17dace,_0x50bf2e){return _0x17dace*_0x50bf2e;},'vUtGa':_0xdb8328(0x1c8),'hUjvv':_0xdb8328(0x1c3)},_0x500ddb=_0x16873d[_0xdb8328(0x1fd)],_0x1d34ab={},_0x2c24af=new Worker(require['resolve'](_0x3f5005['JFMdN']),{'exposedMethods':[_0x3f5005[_0xdb8328(0x1bd)]],'forkOptions':{'serialization':_0x3f5005['fnBZU'],'stdio':_0x3f5005['lINBc']},'idleMemoryLimit':undefined,'maxRetries':0x1,'numWorkers':_0x3f5005[_0xdb8328(0x208)](_0x755828,0x1),'enableWorkerThreads':!![]}),_0x5b90a3=new Emittery();_0x5b90a3['on'](_0x3f5005['vUtGa'],_0x598040=>{const _0x176de9=_0xdb8328;_0x1d34ab[_0x598040[0x0]]?(_0x1d34ab[_0x598040[0x0]][_0x3f5005['prfwZ']]=_0x3f5005[_0x176de9(0x1be)](_0x1d34ab[_0x598040[0x0]][_0x3f5005[_0x176de9(0x1dd)]],_0x598040[0x1][_0x3f5005[_0x176de9(0x1dd)]]),_0x1d34ab[_0x598040[0x0]][_0x3f5005[_0x176de9(0x1d7)]]=[..._0x1d34ab[_0x598040[0x0]][_0x3f5005[_0x176de9(0x1d7)]],..._0x598040[0x1][_0x3f5005[_0x176de9(0x1d7)]]]):_0x1d34ab[_0x598040[0x0]]={'failureCount':_0x598040[0x1][_0x3f5005[_0x176de9(0x1dd)]],'results':[..._0x598040[0x1][_0x3f5005[_0x176de9(0x1d7)]]]};}),_0x5b90a3['on'](_0x3f5005[_0xdb8328(0x1c5)],_0x1fe926=>console[_0xdb8328(0x1bf)](_0x1fe926[0x1]));_0x2c24af[_0xdb8328(0x1d1)]()&&_0x2c24af[_0xdb8328(0x1d1)]()[_0xdb8328(0x1d8)](process['stdout']);_0x2c24af['getStderr']()&&_0x2c24af[_0xdb8328(0x1fa)]()['pipe'](process[_0xdb8328(0x1b9)]);const _0x48ce81=async()=>{const _0x456173=_0xdb8328,{forceExited:_0x24bd5f}=await _0x2c24af['end']();_0x24bd5f&&console[_0x456173(0x1fc)](_0x3f5005['ZIDrk']);try{await TestHubHandler[_0x456173(0x200)]();}catch(_0x4831bc){_0x3f5005[_0x456173(0x1f2)](debug,_0x456173(0x213)+_0x4831bc);}_0x3f5005[_0x456173(0x1f2)](_0x214fdc,_0x1d34ab);},_0x467f97=_0x3f5005[_0xdb8328(0x1f2)](pLimit,_0x3f5005['fKEVT'](_0x755828,0x1)),_0x374af2=_0x3305dc=>_0x467f97(async()=>{const _0x1a624b=_0xdb8328;await _0x5b90a3['emit'](_0x3f5005[_0x1a624b(0x1bb)],_0x3305dc);const _0x21747a=_0x2c24af['worker'](_0x3305dc,_0x500ddb);try{parentPort&&_0x21747a['UNSTABLE_onCustomMessage'](_0x21c4a5=>{const _0x5e3d72=_0x1a624b;try{parentPort[_0x5e3d72(0x1f9)](_0x21c4a5);}catch(_0x45b21b){logger['debug'](_0x5e3d72(0x1ed)+util[_0x5e3d72(0x1fb)](_0x45b21b));}});}catch(_0x515847){logger[_0x1a624b(0x203)]('Exception\x20in\x20adding\x20custom\x20message\x20channel\x20'+util['format'](_0x515847));}return _0x21747a;});PerformanceTester[_0xdb8328(0x1e4)](PerformanceEvents['SDK_SETUP']),Promise[_0xdb8328(0x214)](_0x153851[_0xdb8328(0x1c1)](_0x3ecb18=>_0x374af2(_0x3ecb18)[_0xdb8328(0x20f)](_0x21ec84=>_0x5b90a3[_0xdb8328(0x1ea)](_0xdb8328(0x1c8),[_0x3ecb18[_0xdb8328(0x1da)][_0xdb8328(0x20d)],_0x21ec84]),_0x558c40=>_0x5b90a3['emit'](_0xdb8328(0x1c3),[_0x3ecb18,_0x558c40]))))[_0xdb8328(0x20f)](_0x48ce81,_0x48ce81);}),exports[a57_0xeb97b2(0x1cc)]=(_0x54964a,_0xef3e,_0x122ac2,_0x22b51b,_0x2cdee9)=>{const _0x59b868=a57_0xeb97b2,_0x439d5c={'uFHQz':_0x59b868(0x1fe),'iSmMs':_0x59b868(0x1e8),'gqmnC':function(_0x1ff264,_0x37ed39){return _0x1ff264(_0x37ed39);},'eChhp':'./testWorker.js','akRIQ':_0x59b868(0x1c9),'IzdMR':_0x59b868(0x1f4),'WPciS':_0x59b868(0x1d8),'PDwUa':'platform-run-success','Qdihj':_0x59b868(0x210),'UcGZW':function(_0x27bdd3,_0x33706d){return _0x27bdd3(_0x33706d);}};return new Promise(_0x3ed0c1=>{const _0x1b8731=_0x59b868,_0x1bc00e={'wZwwD':_0x439d5c[_0x1b8731(0x1e6)],'DuflO':function(_0x43a81a,_0x7435e2){const _0x5e470f=_0x1b8731;return _0x439d5c[_0x5e470f(0x1cd)](_0x43a81a,_0x7435e2);}},_0xbd4a1f=[],_0x15b942=new Worker(require[_0x1b8731(0x1d9)](_0x439d5c['eChhp']),{'exposedMethods':[_0x439d5c[_0x1b8731(0x201)]],'forkOptions':{'serialization':_0x439d5c[_0x1b8731(0x1df)],'stdio':_0x439d5c[_0x1b8731(0x1d6)]},'numWorkers':_0x54964a[_0x1b8731(0x1c6)]||0x1,'enableWorkerThreads':!![],'idleMemoryLimit':undefined,'maxRetries':0x1}),_0x242e4a=new Emittery();_0x242e4a['on'](_0x439d5c[_0x1b8731(0x1c4)],_0x134b3f=>{const _0x393008=_0x1b8731;_0xbd4a1f[_0x393008(0x1ca)]([_0x134b3f[0x0],_0x134b3f[0x1]]);}),_0x242e4a['on'](_0x439d5c[_0x1b8731(0x1d2)],_0x3bde11=>console[_0x1b8731(0x1bf)](_0x3bde11[0x1]));_0x15b942[_0x1b8731(0x1d1)]()&&_0x15b942[_0x1b8731(0x1d1)]()[_0x1b8731(0x1d8)](process[_0x1b8731(0x204)]);_0x15b942[_0x1b8731(0x1fa)]()&&_0x15b942[_0x1b8731(0x1fa)]()['pipe'](process['stderr']);const _0x55c927=async()=>{const _0x47b400=_0x1b8731,{forceExited:_0x3198e7}=await _0x15b942['end']();_0x3198e7&&console[_0x47b400(0x1fc)](_0x1bc00e[_0x47b400(0x1c0)]),_0x1bc00e[_0x47b400(0x1e0)](_0x3ed0c1,_0xbd4a1f);},_0x46f1d3=_0x439d5c[_0x1b8731(0x20e)](pLimit,_0x54964a[_0x1b8731(0x1c6)]||0x1),_0x16fd5e=(_0x4c2a62,_0x2b353f)=>_0x46f1d3(async()=>{const _0x538672=_0x1b8731;return await _0x242e4a[_0x538672(0x1ea)](_0x439d5c['uFHQz'],_0x4c2a62),_0xef3e['platformCaps']=_0x122ac2[_0x538672(0x1f3)][_0x2b353f],_0xef3e[_0x538672(0x1f1)]=_0x2b353f,_0x15b942[_0x538672(0x1c9)](_0x4c2a62,_0xef3e,_0x122ac2,_0x22b51b,_0x2cdee9);});Promise[_0x1b8731(0x214)](_0x54964a[_0x1b8731(0x1c1)]((_0x275818,_0x5527c5)=>_0x16fd5e(_0x275818,_0x5527c5)['then'](_0x392b0c=>_0x242e4a[_0x1b8731(0x1ea)]('platform-run-success',[_0x275818,_0x392b0c]),_0x3e14b7=>_0x242e4a['emit']('platform-run-failure',[_0x275818,_0x3e14b7]))))['then'](_0x55c927,_0x55c927);});},exports[a57_0xeb97b2(0x1bc)]=(_0x5c43ed,_0x1455db)=>new Promise(_0x33fa9e=>{const _0x31b596=a57_0xeb97b2,_0x2839dd={'InojX':function(_0x59f3c7,_0x1cc8e4){return _0x59f3c7===_0x1cc8e4;},'ljocY':function(_0x1b3116,_0x57998f){return _0x1b3116!==_0x57998f;},'cYOZW':_0x31b596(0x209),'tyDND':_0x31b596(0x1e8),'UPZph':function(_0x258989,_0x289c16){return _0x258989(_0x289c16);},'Jplpf':_0x31b596(0x206),'FHFho':_0x31b596(0x1f6),'kASwn':_0x31b596(0x1f4),'KvEeS':_0x31b596(0x1d8),'WTutN':_0x31b596(0x1c8),'LdtiF':'test-file-failure','PpCyF':function(_0x123bd7,_0x429d3b){return _0x123bd7(_0x429d3b);}},_0x208ae6={},_0x5d2b43=new Worker(require[_0x31b596(0x1d9)](_0x2839dd[_0x31b596(0x1e1)]),{'exposedMethods':[_0x2839dd['FHFho']],'forkOptions':{'serialization':_0x2839dd[_0x31b596(0x1eb)],'stdio':_0x2839dd[_0x31b596(0x1d0)]},'numWorkers':_0x1455db,'enableWorkerThreads':![],'maxRetries':0x1,'idleMemoryLimit':undefined}),_0x105235=new Emittery();_0x105235['on'](_0x2839dd[_0x31b596(0x212)],_0x11fd3a=>{const _0x3654a8=_0x31b596;_0x11fd3a[0x0]&&logger[_0x3654a8(0x1ef)]('Running\x20'+_0x11fd3a[0x1]+'\x20for',_0x11fd3a[0x0]);}),_0x105235['on'](_0x2839dd[_0x31b596(0x211)],_0x34fb19=>{const _0x591237=_0x31b596;process[_0x591237(0x205)]=0x1;});_0x5d2b43[_0x31b596(0x1d1)]()&&_0x5d2b43[_0x31b596(0x1d1)]()[_0x31b596(0x1d8)](process[_0x31b596(0x204)]);_0x5d2b43[_0x31b596(0x1fa)]()&&_0x5d2b43[_0x31b596(0x1fa)]()['pipe'](process['stderr']);const _0xbaa012=async()=>{const _0x12dbd2=_0x31b596;let _0x3b5eb=0x0;const _0x254ecb=_0x5d2b43['_workerPool']['getWorkers'](),_0x37e0cc=()=>{},_0xc19932=_0x254ecb['map'](async _0x10c15e=>{const _0x3cc81f=a57_0x5236,_0x3e29e8={'NATES':function(_0x5bbe5a,_0x48b4d9){const _0x3eca6d=a57_0x5236;return _0x2839dd[_0x3eca6d(0x20c)](_0x5bbe5a,_0x48b4d9);},'SawtJ':function(_0x5dfe68,_0x62882c){const _0x2531e2=a57_0x5236;return _0x2839dd[_0x2531e2(0x1c7)](_0x5dfe68,_0x62882c);}};_0x10c15e[_0x3cc81f(0x1cf)]([0x2,![]],_0x37e0cc,_0x37e0cc,_0x37e0cc),_0x10c15e[_0x3cc81f(0x1db)]['on'](_0x2839dd[_0x3cc81f(0x1d4)],_0x538a9d=>{const _0xd6db5a=_0x3cc81f;_0x3e29e8[_0xd6db5a(0x1e2)](_0x3b5eb,0x0)&&_0x3e29e8['SawtJ'](_0x538a9d,0x0)&&(_0x3b5eb=_0x538a9d);}),await _0x10c15e['waitForExit']();});await Promise[_0x12dbd2(0x214)](_0xc19932),process[_0x12dbd2(0x205)]=_0x3b5eb;const {forceExited:_0x46370e}=await _0x5d2b43['end']();_0x46370e&&console[_0x12dbd2(0x1fc)](_0x2839dd[_0x12dbd2(0x1ba)]),_0x2839dd[_0x12dbd2(0x1f5)](_0x33fa9e,_0x208ae6);},_0x18e4c8=_0x2839dd['PpCyF'](pLimit,_0x1455db),_0x27237b=_0x12971a=>_0x18e4c8(async()=>{const _0x2036e2=_0x31b596;return _0x5d2b43[_0x2036e2(0x1f6)](_0x12971a);});Promise[_0x31b596(0x214)](_0x5c43ed[_0x31b596(0x1c1)](_0x27af2f=>_0x27237b(_0x27af2f)[_0x31b596(0x20f)](_0xe82922=>_0x105235[_0x31b596(0x1ea)]('test-file-success',[_0x27af2f[_0x31b596(0x1da)]['platform'],_0x27af2f[_0x31b596(0x1da)]['file']]),_0x1ab03c=>_0x105235[_0x31b596(0x1ea)](_0x31b596(0x1c3),[_0x27af2f,_0x1ab03c]))))[_0x31b596(0x20f)](_0xbaa012,_0xbaa012);});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a58_0x1575b5=a58_0x2b5c;function a58_0x3326(){const _0x5b22d0=['VtSzN','BwDYv','formatter','jyHgL','875464RnzXqh','runVanillaTest','end','vanilla','XEOnz','2950801DefyVA','625402hoGswo','SDK_POST_TEST','../../helpers/performance/constants','../launcher/launcher','539230lxSisC','lbjKV','whwPz','44084hOtOrR','8njmKoQ','2502580qCljbk','stopMonitoring','configuration','261FkvkyZ','run','EVENTS','3tfHTLH','runCucumberTest','startMonitoring','cucumber-js','EmULV','5581488IgLwFh'];a58_0x3326=function(){return _0x5b22d0;};return a58_0x3326();}(function(_0x42fd00,_0x2426a9){const _0x48cf5b=a58_0x2b5c,_0x1f8926=_0x42fd00();while(!![]){try{const _0x2971a6=-parseInt(_0x48cf5b(0x98))/0x1+-parseInt(_0x48cf5b(0x92))/0x2+-parseInt(_0x48cf5b(0x88))/0x3*(-parseInt(_0x48cf5b(0x9f))/0x4)+parseInt(_0x48cf5b(0xa1))/0x5+-parseInt(_0x48cf5b(0x8d))/0x6+parseInt(_0x48cf5b(0x97))/0x7*(parseInt(_0x48cf5b(0xa0))/0x8)+-parseInt(_0x48cf5b(0xa4))/0x9*(-parseInt(_0x48cf5b(0x9c))/0xa);if(_0x2971a6===_0x2426a9)break;else _0x1f8926['push'](_0x1f8926['shift']());}catch(_0x1d81ab){_0x1f8926['push'](_0x1f8926['shift']());}}}(a58_0x3326,0x7aea9));const PerformanceEvents=require(a58_0x1575b5(0x9a))[a58_0x1575b5(0x87)],PerformanceTester=require('../../helpers/performance/performance-tester'),{sleep}=require('../../helpers/test-observability/utils');function a58_0x2b5c(_0x1aab02,_0x1da3e5){const _0x332694=a58_0x3326();return a58_0x2b5c=function(_0x2b5c41,_0x1358f4){_0x2b5c41=_0x2b5c41-0x87;let _0x4c07fe=_0x332694[_0x2b5c41];return _0x4c07fe;},a58_0x2b5c(_0x1aab02,_0x1da3e5);}exports['runTest']=async(_0x1d33e1,_0x15f4fd)=>{const _0x41768a=a58_0x1575b5,_0x4d2907={'jyHgL':function(_0x1fdbd9,_0x5cbeb1){return _0x1fdbd9(_0x5cbeb1);},'VtSzN':_0x41768a(0x9b),'BwDYv':'mocha'};PerformanceTester[_0x41768a(0x8a)]();const _0x3ffcc=_0x4d2907[_0x41768a(0x91)](require,_0x4d2907[_0x41768a(0x8e)]),_0x3312ba=new _0x3ffcc(_0x4d2907[_0x41768a(0x8f)],_0x1d33e1,_0x15f4fd),_0x309589=await _0x3312ba[_0x41768a(0xa5)]();return PerformanceTester[_0x41768a(0x94)](PerformanceEvents[_0x41768a(0x99)]),await _0x4d2907[_0x41768a(0x91)](sleep,0x3e8),PerformanceTester[_0x41768a(0xa2)](),_0x309589;},exports[a58_0x1575b5(0x89)]=async(_0x3a28bf,_0x27334d,_0x21abef,_0x24d1e4,_0x2fb701)=>{const _0x34a14c=a58_0x1575b5,_0x41119c={'EmULV':function(_0x4ab817,_0x21bb27){return _0x4ab817(_0x21bb27);},'rIhIv':_0x34a14c(0x9b),'Hyghg':_0x34a14c(0x8b)},_0x18bf34={'capability':_0x3a28bf,..._0x27334d},_0x53cb53={};_0x53cb53[_0x34a14c(0xa3)]=_0x18bf34,_0x53cb53[_0x34a14c(0x90)]=_0x2fb701;const _0x15cf50=_0x53cb53,_0x1f384d=_0x41119c[_0x34a14c(0x8c)](require,_0x41119c['rIhIv']),_0x1cf411=new _0x1f384d(_0x41119c['Hyghg'],_0x15cf50,_0x21abef,_0x24d1e4);return await _0x1cf411[_0x34a14c(0xa5)]();},exports[a58_0x1575b5(0x93)]=async _0x33563b=>{const _0x2a1ebb=a58_0x1575b5,_0x13e160={'lbjKV':function(_0x322a07,_0x475fbd){return _0x322a07(_0x475fbd);},'XEOnz':_0x2a1ebb(0x9b),'whwPz':_0x2a1ebb(0x95)},_0x5f5925=_0x13e160[_0x2a1ebb(0x9d)](require,_0x13e160[_0x2a1ebb(0x96)]),_0x1d178b=new _0x5f5925(_0x13e160[_0x2a1ebb(0x9e)],_0x33563b);return await _0x1d178b[_0x2a1ebb(0xa5)]();};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a59_0x535206=a59_0x3650;function a59_0x3650(_0x41c192,_0x3e11ff){const _0x44ada9=a59_0x44ad();return a59_0x3650=function(_0x3650dc,_0x2055ba){_0x3650dc=_0x3650dc-0x1da;let _0x21232a=_0x44ada9[_0x3650dc];return _0x21232a;},a59_0x3650(_0x41c192,_0x3e11ff);}(function(_0x1b602c,_0x2ede06){const _0x97f72e=a59_0x3650,_0x459b8a=_0x1b602c();while(!![]){try{const _0x1677bf=-parseInt(_0x97f72e(0x1e4))/0x1+-parseInt(_0x97f72e(0x1de))/0x2*(parseInt(_0x97f72e(0x1e1))/0x3)+parseInt(_0x97f72e(0x1dc))/0x4*(parseInt(_0x97f72e(0x1dd))/0x5)+parseInt(_0x97f72e(0x1e3))/0x6*(parseInt(_0x97f72e(0x1e0))/0x7)+parseInt(_0x97f72e(0x1da))/0x8*(parseInt(_0x97f72e(0x1e8))/0x9)+-parseInt(_0x97f72e(0x1db))/0xa+-parseInt(_0x97f72e(0x1e5))/0xb*(-parseInt(_0x97f72e(0x1e6))/0xc);if(_0x1677bf===_0x2ede06)break;else _0x459b8a['push'](_0x459b8a['shift']());}catch(_0x162066){_0x459b8a['push'](_0x459b8a['shift']());}}}(a59_0x44ad,0x2c9d8));const {runTest,runCucumberTest,runVanillaTest}=require('./runTest');exports[a59_0x535206(0x1df)]=async(_0xf30303,_0x4392cd)=>{const _0x3cb57e={'Uzpmn':function(_0x219dcf,_0x3d4147,_0x133ee9){return _0x219dcf(_0x3d4147,_0x133ee9);}};return await _0x3cb57e['Uzpmn'](runTest,_0xf30303,_0x4392cd);},exports['cucumberWorker']=async(_0x5486eb,_0xf3aea5,_0x5f045b,_0x1eb49a,_0x4cd0fb)=>{const _0x40f6b2=a59_0x535206,_0x597bed={'FSaNA':function(_0x27d4e1,_0x39e62b,_0xf56b6f,_0x1d1593,_0xeaa72c,_0x42993e){return _0x27d4e1(_0x39e62b,_0xf56b6f,_0x1d1593,_0xeaa72c,_0x42993e);}};return await _0x597bed[_0x40f6b2(0x1e2)](runCucumberTest,_0x5486eb,_0xf3aea5,_0x5f045b,_0x1eb49a,_0x4cd0fb);},exports[a59_0x535206(0x1e9)]=async _0x177396=>{const _0x2849b9=a59_0x535206,_0x538e62={'vctUs':function(_0x30712e,_0x14b309){return _0x30712e(_0x14b309);}};return await _0x538e62[_0x2849b9(0x1e7)](runVanillaTest,_0x177396);};function a59_0x44ad(){const _0x87601b=['45NufABA','2pLFeEi','worker','903Phjpdt','763839Jxjikb','FSaNA','1866kiPvZV','191224zuSkNF','11OaawXE','5406804XLFIlK','vctUs','9oOYoNi','vanillaWorker','1179112FeOWmm','95840FViOcQ','40hjxXhY'];a59_0x44ad=function(){return _0x87601b;};return a59_0x44ad();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a56_0x14ba8f=a56_0x541b;(function(_0x5f0daa,_0x51f7b5){const _0x5e8800=a56_0x541b,_0x1d1c26=_0x5f0daa();while(!![]){try{const _0x27b174=parseInt(_0x5e8800(0x24c))/0x1+parseInt(_0x5e8800(0x209))/0x2*(parseInt(_0x5e8800(0x218))/0x3)+-parseInt(_0x5e8800(0x245))/0x4*(parseInt(_0x5e8800(0x1f2))/0x5)+-parseInt(_0x5e8800(0x232))/0x6+-parseInt(_0x5e8800(0x238))/0x7*(-parseInt(_0x5e8800(0x244))/0x8)+parseInt(_0x5e8800(0x20b))/0x9+parseInt(_0x5e8800(0x1e8))/0xa*(-parseInt(_0x5e8800(0x1ec))/0xb);if(_0x27b174===_0x51f7b5)break;else _0x1d1c26['push'](_0x1d1c26['shift']());}catch(_0x26e57d){_0x1d1c26['push'](_0x1d1c26['shift']());}}}(a56_0x4421,0x7142d));function a56_0x4421(){const _0x78cb8e=['YQXuq','xTiOY','micjA','AixgT','4559214yCUDNo','DIVji','rahBK','TPqVP','zSZRn','QXJua','24409UBlamj','uiGKK','MbtBc','fjlUr','edDpC','ozzCj','exports','XJzQO','sltao','lgIpu','PUPPETEER_HUB_URL','sIiVZ','1904ZpeEun','12lMNbFx','wWDbC','UilBg','SXVcX','DRWaR','/playwright?caps=','getInstance','887539UnEzDf','VrJnY','jQtxB','ZQVfO','wss:','OXrWf','getAutomateSessionStatusAPIUrl','HsrDI','edsInstrumentation','193200GfBgwN','KldcT','krhiT','OBSERVABILITY_UPLOAD_URL','517vMxVSs','getAppAutomateSessionsListAPIUrl','hDTzb','wCuVI','pcEVQ','BROWSERSTACK_API_URL','1505110Hsgiqz','apis','getPuppeteerHubUrl','tLaQL','mViND','EDS_URL','OOSyh','getBStackAPIUrl','api','hkYZa','getPlaywrightHubUrl','rzeRA','getAutoCaptureLogsAPIUrl','DhtOk','XpDjd','getEdsInstrumentationAPIUrl','hgJVv','toString','olnKP','ghLig','cdp','hqcZO','PLAYWRIGHT_HUB_URL','2aAANdd','endsWith','4129866acqQPS','getAutomateSessionsListAPIUrl','vSxvg','replace','OWgBu','fEMuM','observability','wzqDQ','eXFWB','OoBul','qvMsu','hFgVL','../v2/browserstackCLI','2575719kQLrxb','RgFwF','LdhEv','VpskD','TogOy','QsXLV','QBTko','KoduS','/puppeteer?caps=','LjLxP','BbwOz','getConfig','TCKCw','./constants','getAutomateSessionNameAPIUrl','automate','APP_UPLOAD_URL','iUjPZ','appAutomate','AqfAK','xNsdI','XeQgm'];a56_0x4421=function(){return _0x78cb8e;};return a56_0x4421();}const constants=require(a56_0x14ba8f(0x225)),{nestedKeyValue}=require('./sharedUtils'),getBrowserstackCLI=()=>{const _0x5cebc8=a56_0x14ba8f,_0x5b0b0e={'rKcmp':function(_0x5563b6,_0x27de84){return _0x5563b6(_0x27de84);},'iUjPZ':_0x5cebc8(0x217)};return _0x5b0b0e['rKcmp'](require,_0x5b0b0e[_0x5cebc8(0x229)]);};function a56_0x541b(_0x5a4610,_0x482813){const _0x44210c=a56_0x4421();return a56_0x541b=function(_0x541bde,_0x4da82a){_0x541bde=_0x541bde-0x1e0;let _0x30c9f4=_0x44210c[_0x541bde];return _0x30c9f4;},a56_0x541b(_0x5a4610,_0x482813);}class APIUtilityMethods{static[a56_0x14ba8f(0x1f9)](_0x49b3ab){const _0x1b54cf=a56_0x14ba8f,_0x1d2c20={'AixgT':function(_0x4013ae){return _0x4013ae();},'XeQgm':function(_0x7c60e8,_0x6cc5e3,_0x11a463){return _0x7c60e8(_0x6cc5e3,_0x11a463);},'KoduS':_0x1b54cf(0x1f3),'fjlUr':_0x1b54cf(0x227),'olnKP':_0x1b54cf(0x1fa),'ozzCj':function(_0x214585,_0x2a16a7){return _0x214585===_0x2a16a7;},'LyQAL':function(_0x2b7d3f,_0x4b08fa){return _0x2b7d3f+_0x4b08fa;}},_0x1def41=_0x1d2c20[_0x1b54cf(0x231)](getBrowserstackCLI),_0x1b5da4=_0x1d2c20[_0x1b54cf(0x22d)](nestedKeyValue,_0x1def41[_0x1b54cf(0x24b)]()[_0x1b54cf(0x223)](),[_0x1d2c20[_0x1b54cf(0x21f)],_0x1d2c20[_0x1b54cf(0x23b)],_0x1d2c20[_0x1b54cf(0x204)]])||constants['BROWSERSTACK_API_URL'];if(!_0x49b3ab||_0x1d2c20[_0x1b54cf(0x23d)](_0x49b3ab,''))return _0x1b5da4;const _0x482697=_0x1b5da4[_0x1b54cf(0x20a)]('/')?_0x1b5da4:_0x1d2c20['LyQAL'](_0x1b5da4,'/');return new URL(_0x49b3ab,_0x482697)[_0x1b54cf(0x203)]();}static[a56_0x14ba8f(0x201)](_0x364e7b){const _0x24dbb7=a56_0x14ba8f,_0x19f587={'edDpC':function(_0x52aceb){return _0x52aceb();},'ECUxg':function(_0x4d4e85,_0xacad88,_0xaca1ed){return _0x4d4e85(_0xacad88,_0xaca1ed);},'ZQVfO':'apis','wWDbC':_0x24dbb7(0x1e7),'GLaRR':_0x24dbb7(0x1fa),'zSZRn':function(_0x3d9fab,_0x2b6cf6){return _0x3d9fab===_0x2b6cf6;},'RgFwF':function(_0xd575a7,_0x34317d){return _0xd575a7+_0x34317d;}},_0x24862b=_0x19f587[_0x24dbb7(0x23c)](getBrowserstackCLI),_0x4462b5=_0x19f587['ECUxg'](nestedKeyValue,_0x24862b[_0x24dbb7(0x24b)]()['getConfig'](),[_0x19f587[_0x24dbb7(0x1e2)],_0x19f587[_0x24dbb7(0x246)],_0x19f587['GLaRR']])||constants[_0x24dbb7(0x1f7)];if(!_0x364e7b||_0x19f587[_0x24dbb7(0x236)](_0x364e7b,''))return _0x4462b5;const _0x1a8e17=_0x4462b5[_0x24dbb7(0x20a)]('/')?_0x4462b5:_0x19f587[_0x24dbb7(0x219)](_0x4462b5,'/');return new URL(_0x364e7b,_0x1a8e17)[_0x24dbb7(0x203)]();}static[a56_0x14ba8f(0x1e5)](_0x62c4c0){const _0x17b850=a56_0x14ba8f,_0x278f2d={'mViND':function(_0x400fec){return _0x400fec();},'TCKCw':function(_0x3d1f3d,_0xc44af1,_0x291c21){return _0x3d1f3d(_0xc44af1,_0x291c21);},'eXFWB':_0x17b850(0x1f3),'UilBg':_0x17b850(0x227),'XJzQO':_0x17b850(0x1fa),'vyIoH':function(_0x11367a,_0x49dde7){return _0x11367a===_0x49dde7;},'wzqDQ':function(_0x5b7b82,_0x3ffa09){return _0x5b7b82+_0x3ffa09;}},_0x435448=_0x278f2d[_0x17b850(0x1f6)](getBrowserstackCLI),_0x2d8ff4=_0x278f2d[_0x17b850(0x224)](nestedKeyValue,_0x435448[_0x17b850(0x24b)]()[_0x17b850(0x223)](),[_0x278f2d[_0x17b850(0x213)],_0x278f2d[_0x17b850(0x247)],_0x278f2d[_0x17b850(0x23f)]])||constants['BROWSERSTACK_API_URL'];if(!_0x62c4c0||_0x278f2d['vyIoH'](_0x62c4c0,''))return _0x2d8ff4;const _0x2cba4b=_0x2d8ff4[_0x17b850(0x20a)]('/')?_0x2d8ff4:_0x278f2d[_0x17b850(0x212)](_0x2d8ff4,'/');return new URL(_0x62c4c0,_0x2cba4b)[_0x17b850(0x203)]();}static['getAppAutomateSessionStatusAPIUrl'](_0x4a5b87){const _0x19aa27=a56_0x14ba8f,_0x2ab3b5={'hFgVL':function(_0x171a03){return _0x171a03();},'MbtBc':function(_0x4a2dfb,_0x201e1f,_0x564920){return _0x4a2dfb(_0x201e1f,_0x564920);},'hqcZO':_0x19aa27(0x1f3),'XpDjd':_0x19aa27(0x22a),'sltao':'api','fEMuM':function(_0x3fdf39,_0x302e73){return _0x3fdf39===_0x302e73;},'yvCQl':function(_0x3eb4c9,_0x4e1d8f){return _0x3eb4c9+_0x4e1d8f;}},_0xc4a942=_0x2ab3b5[_0x19aa27(0x216)](getBrowserstackCLI),_0x1be488=_0x2ab3b5[_0x19aa27(0x23a)](nestedKeyValue,_0xc4a942[_0x19aa27(0x24b)]()[_0x19aa27(0x223)](),[_0x2ab3b5[_0x19aa27(0x207)],_0x2ab3b5[_0x19aa27(0x200)],_0x2ab3b5[_0x19aa27(0x240)]])||constants['BROWSERSTACK_API_URL'];if(!_0x4a5b87||_0x2ab3b5[_0x19aa27(0x210)](_0x4a5b87,''))return _0x1be488;const _0x2699a4=_0x1be488[_0x19aa27(0x20a)]('/')?_0x1be488:_0x2ab3b5['yvCQl'](_0x1be488,'/');return new URL(_0x4a5b87,_0x2699a4)[_0x19aa27(0x203)]();}static[a56_0x14ba8f(0x226)](_0x928799){const _0x312a4b=a56_0x14ba8f,_0x356aa1={'PBHGY':function(_0x22be77){return _0x22be77();},'tLaQL':function(_0x3d6402,_0x26808b,_0x1b1efb){return _0x3d6402(_0x26808b,_0x1b1efb);},'VagNa':_0x312a4b(0x1f3),'pjQtw':_0x312a4b(0x227),'OOSyh':_0x312a4b(0x1fa),'lgIpu':function(_0x3ed0e8,_0x3e26fb){return _0x3ed0e8===_0x3e26fb;},'QBTko':function(_0x42107c,_0x42cd2d){return _0x42107c+_0x42cd2d;}},_0x3bc588=_0x356aa1['PBHGY'](getBrowserstackCLI),_0x5197ee=_0x356aa1[_0x312a4b(0x1f5)](nestedKeyValue,_0x3bc588[_0x312a4b(0x24b)]()[_0x312a4b(0x223)](),[_0x356aa1['VagNa'],_0x356aa1['pjQtw'],_0x356aa1[_0x312a4b(0x1f8)]])||constants[_0x312a4b(0x1f1)];if(!_0x928799||_0x356aa1[_0x312a4b(0x241)](_0x928799,''))return _0x5197ee;const _0x433da9=_0x5197ee[_0x312a4b(0x20a)]('/')?_0x5197ee:_0x356aa1[_0x312a4b(0x21e)](_0x5197ee,'/');return new URL(_0x928799,_0x433da9)['toString']();}static['getAppAutomateSessionNameAPIUrl'](_0x48bab8){const _0x4efbff=a56_0x14ba8f,_0x49d0f5={'LjLxP':function(_0x488ec6){return _0x488ec6();},'SXVcX':function(_0x26302e,_0x4f3ef6,_0x2c2fe4){return _0x26302e(_0x4f3ef6,_0x2c2fe4);},'NavtK':'apis','wCuVI':_0x4efbff(0x22a),'rzeRA':_0x4efbff(0x1fa),'DhtOk':function(_0x239f05,_0x146b26){return _0x239f05===_0x146b26;},'jQtxB':function(_0x4a6af7,_0xf7db37){return _0x4a6af7+_0xf7db37;}},_0x1499b1=_0x49d0f5[_0x4efbff(0x221)](getBrowserstackCLI),_0xdf361b=_0x49d0f5[_0x4efbff(0x248)](nestedKeyValue,_0x1499b1[_0x4efbff(0x24b)]()[_0x4efbff(0x223)](),[_0x49d0f5['NavtK'],_0x49d0f5[_0x4efbff(0x1ef)],_0x49d0f5[_0x4efbff(0x1fd)]])||constants[_0x4efbff(0x1f1)];if(!_0x48bab8||_0x49d0f5[_0x4efbff(0x1ff)](_0x48bab8,''))return _0xdf361b;const _0x239514=_0xdf361b[_0x4efbff(0x20a)]('/')?_0xdf361b:_0x49d0f5[_0x4efbff(0x1e1)](_0xdf361b,'/');return new URL(_0x48bab8,_0x239514)[_0x4efbff(0x203)]();}static[a56_0x14ba8f(0x20c)](_0x41a653){const _0x4c2f8b=a56_0x14ba8f,_0x47dc1c={'ghLig':function(_0x3a1380){return _0x3a1380();},'vSxvg':function(_0x47ace3,_0x1d8ddc,_0x2a1e41){return _0x47ace3(_0x1d8ddc,_0x2a1e41);},'BbwOz':_0x4c2f8b(0x1f3),'OXrWf':_0x4c2f8b(0x227),'pcEVQ':'api','DIVji':function(_0x5e314a,_0x4518d9){return _0x5e314a===_0x4518d9;},'iABoV':function(_0x865cc4,_0xea8a8e){return _0x865cc4+_0xea8a8e;}},_0xe2bef1=_0x47dc1c[_0x4c2f8b(0x205)](getBrowserstackCLI),_0x725fd6=_0x47dc1c[_0x4c2f8b(0x20d)](nestedKeyValue,_0xe2bef1['getInstance']()['getConfig'](),[_0x47dc1c[_0x4c2f8b(0x222)],_0x47dc1c[_0x4c2f8b(0x1e4)],_0x47dc1c[_0x4c2f8b(0x1f0)]])||constants[_0x4c2f8b(0x1f1)];if(!_0x41a653||_0x47dc1c[_0x4c2f8b(0x233)](_0x41a653,''))return _0x725fd6;const _0x2e01bf=_0x725fd6[_0x4c2f8b(0x20a)]('/')?_0x725fd6:_0x47dc1c['iABoV'](_0x725fd6,'/');return new URL(_0x41a653,_0x2e01bf)[_0x4c2f8b(0x203)]()[_0x4c2f8b(0x20e)](/^https?:\/\//,'');}static[a56_0x14ba8f(0x1ed)](_0x579f5f){const _0x4ccb0f=a56_0x14ba8f,_0x4ca626={'OoBul':function(_0xaf140f){return _0xaf140f();},'HsrDI':function(_0x44c14a,_0x30c359,_0x3bc8a9){return _0x44c14a(_0x30c359,_0x3bc8a9);},'VpskD':_0x4ccb0f(0x1f3),'xNsdI':_0x4ccb0f(0x22a),'hDTzb':_0x4ccb0f(0x1fa),'uiGKK':function(_0x423e0b,_0x1fea9e){return _0x423e0b===_0x1fea9e;},'OWgBu':function(_0x5622f4,_0x390d11){return _0x5622f4+_0x390d11;}},_0x36206b=_0x4ca626[_0x4ccb0f(0x214)](getBrowserstackCLI),_0x3504a0=_0x4ca626[_0x4ccb0f(0x1e6)](nestedKeyValue,_0x36206b['getInstance']()[_0x4ccb0f(0x223)](),[_0x4ca626[_0x4ccb0f(0x21b)],_0x4ca626[_0x4ccb0f(0x22c)],_0x4ca626[_0x4ccb0f(0x1ee)]])||constants[_0x4ccb0f(0x228)];if(!_0x579f5f||_0x4ca626[_0x4ccb0f(0x239)](_0x579f5f,''))return _0x3504a0;const _0x1d6962=_0x3504a0[_0x4ccb0f(0x20a)]('/')?_0x3504a0:_0x4ca626[_0x4ccb0f(0x20f)](_0x3504a0,'/');return new URL(_0x579f5f,_0x1d6962)[_0x4ccb0f(0x203)]()[_0x4ccb0f(0x20e)](/^https?:\/\//,'');}static[a56_0x14ba8f(0x1fe)](_0x3e6424){const _0x2a78ec=a56_0x14ba8f,_0x65ad37={'XuALn':function(_0x3bf40e){return _0x3bf40e();},'PxiDY':function(_0x4091a3,_0x263943,_0x40d388){return _0x4091a3(_0x263943,_0x40d388);},'VrJnY':_0x2a78ec(0x1f3),'xDZie':_0x2a78ec(0x211),'LdhEv':'upload','xTiOY':function(_0x57202e,_0x185f95){return _0x57202e===_0x185f95;},'txKtz':function(_0x2b6050,_0x33207b){return _0x2b6050+_0x33207b;}},_0x320158=_0x65ad37['XuALn'](getBrowserstackCLI),_0x5c5cca=_0x65ad37['PxiDY'](nestedKeyValue,_0x320158[_0x2a78ec(0x24b)]()[_0x2a78ec(0x223)](),[_0x65ad37[_0x2a78ec(0x1e0)],_0x65ad37['xDZie'],_0x65ad37[_0x2a78ec(0x21a)]])||constants[_0x2a78ec(0x1eb)];if(!_0x3e6424||_0x65ad37[_0x2a78ec(0x22f)](_0x3e6424,''))return _0x5c5cca;const _0x794b08=_0x5c5cca[_0x2a78ec(0x20a)]('/')?_0x5c5cca:_0x65ad37['txKtz'](_0x5c5cca,'/');return new URL(_0x3e6424,_0x794b08)['toString']();}static[a56_0x14ba8f(0x1fc)](_0x5d726f){const _0x9fb54b=a56_0x14ba8f,_0x5e058c={'AqfAK':function(_0x2b9d83){return _0x2b9d83();},'TogOy':function(_0x83d523,_0x587e5e,_0x50d91d){return _0x83d523(_0x587e5e,_0x50d91d);},'krhiT':_0x9fb54b(0x1f3),'RPvVZ':_0x9fb54b(0x227),'KldcT':'cdp','QXJua':_0x9fb54b(0x1e3),'hkYZa':function(_0x45fd4d,_0xf4995){return _0x45fd4d===_0xf4995;},'micjA':function(_0x422531,_0x9fac4d){return _0x422531+_0x9fac4d;},'sIiVZ':_0x9fb54b(0x24a)},_0x42a068=_0x5e058c[_0x9fb54b(0x22b)](getBrowserstackCLI),_0x2d5a65=_0x5e058c[_0x9fb54b(0x21c)](nestedKeyValue,_0x42a068[_0x9fb54b(0x24b)]()[_0x9fb54b(0x223)](),[_0x5e058c[_0x9fb54b(0x1ea)],_0x5e058c['RPvVZ'],_0x5e058c[_0x9fb54b(0x1e9)]]),_0x2c4fd7=(_0x2d5a65?_0x2d5a65['replace'](/^https:/,_0x5e058c[_0x9fb54b(0x237)]):null)||constants[_0x9fb54b(0x208)];let _0x190532;if(!_0x5d726f||_0x5e058c[_0x9fb54b(0x1fb)](_0x5d726f,''))_0x190532=_0x2c4fd7;else{const _0x32a6fe=_0x2c4fd7[_0x9fb54b(0x20a)]('/')?_0x2c4fd7:_0x5e058c[_0x9fb54b(0x230)](_0x2c4fd7,'/');_0x190532=new URL(_0x5d726f,_0x32a6fe)[_0x9fb54b(0x203)]();}return!_0x190532[_0x9fb54b(0x20a)](_0x5e058c[_0x9fb54b(0x243)])&&(_0x190532+=_0x5e058c[_0x9fb54b(0x243)]),_0x190532;}static[a56_0x14ba8f(0x1f4)](_0x4021dc){const _0x422a64=a56_0x14ba8f,_0x582fe3={'QsXLV':function(_0x66e808){return _0x66e808();},'qvMsu':function(_0x36abf0,_0x4046ee,_0x319374){return _0x36abf0(_0x4046ee,_0x319374);},'TPqVP':_0x422a64(0x1f3),'YQXuq':_0x422a64(0x227),'DRWaR':_0x422a64(0x206),'rahBK':'wss:','hgJVv':function(_0x2affac,_0x5422ba){return _0x2affac===_0x5422ba;},'LtrSZ':function(_0x4512de,_0x44cc41){return _0x4512de+_0x44cc41;},'egAsE':_0x422a64(0x220)},_0x3cc0c4=_0x582fe3[_0x422a64(0x21d)](getBrowserstackCLI),_0x51144e=_0x582fe3[_0x422a64(0x215)](nestedKeyValue,_0x3cc0c4[_0x422a64(0x24b)]()[_0x422a64(0x223)](),[_0x582fe3[_0x422a64(0x235)],_0x582fe3[_0x422a64(0x22e)],_0x582fe3[_0x422a64(0x249)]]),_0x238dc1=(_0x51144e?_0x51144e['replace'](/^https:/,_0x582fe3[_0x422a64(0x234)]):null)||constants[_0x422a64(0x242)];let _0x30b6a9;if(!_0x4021dc||_0x582fe3[_0x422a64(0x202)](_0x4021dc,''))_0x30b6a9=_0x238dc1;else{const _0x5712af=_0x238dc1[_0x422a64(0x20a)]('/')?_0x238dc1:_0x582fe3['LtrSZ'](_0x238dc1,'/');_0x30b6a9=new URL(_0x4021dc,_0x5712af)[_0x422a64(0x203)]();}return!_0x30b6a9[_0x422a64(0x20a)](_0x582fe3['egAsE'])&&(_0x30b6a9+=_0x582fe3['egAsE']),_0x30b6a9;}}module[a56_0x14ba8f(0x23e)]=APIUtilityMethods;
|
|
1
|
+
const a60_0x160bbc=a60_0x298a;function a60_0x298a(_0x4682f4,_0x2d4e11){const _0x5ec36d=a60_0x5ec3();return a60_0x298a=function(_0x298a73,_0x54ae3a){_0x298a73=_0x298a73-0x81;let _0x55ca80=_0x5ec36d[_0x298a73];return _0x55ca80;},a60_0x298a(_0x4682f4,_0x2d4e11);}(function(_0x214a6a,_0x50b909){const _0x3ff7f4=a60_0x298a,_0x375eb2=_0x214a6a();while(!![]){try{const _0x5d9c42=-parseInt(_0x3ff7f4(0xa3))/0x1*(parseInt(_0x3ff7f4(0xde))/0x2)+-parseInt(_0x3ff7f4(0xc3))/0x3+-parseInt(_0x3ff7f4(0xcc))/0x4+parseInt(_0x3ff7f4(0x8c))/0x5+-parseInt(_0x3ff7f4(0xb3))/0x6*(-parseInt(_0x3ff7f4(0x8b))/0x7)+-parseInt(_0x3ff7f4(0xd9))/0x8+-parseInt(_0x3ff7f4(0x86))/0x9*(-parseInt(_0x3ff7f4(0x94))/0xa);if(_0x5d9c42===_0x50b909)break;else _0x375eb2['push'](_0x375eb2['shift']());}catch(_0x34b597){_0x375eb2['push'](_0x375eb2['shift']());}}}(a60_0x5ec3,0x64f6e));const constants=require(a60_0x160bbc(0xc0)),{nestedKeyValue}=require(a60_0x160bbc(0xa9)),getBrowserstackCLI=()=>{const _0x357581=a60_0x160bbc,_0xbfa54a={'PVbzR':function(_0x5c16d9,_0x1be261){return _0x5c16d9(_0x1be261);},'GeRVP':_0x357581(0x9a)};return _0xbfa54a['PVbzR'](require,_0xbfa54a[_0x357581(0xa1)]);};class APIUtilityMethods{static['getBStackAPIUrl'](_0x2c3b34){const _0x35da2b=a60_0x160bbc,_0x113391={'ZmPDC':function(_0x37ae4e){return _0x37ae4e();},'GWYMY':function(_0x3e5d1c,_0x2eaf6d,_0x12ac3b){return _0x3e5d1c(_0x2eaf6d,_0x12ac3b);},'DeJdf':_0x35da2b(0xb6),'vMCJp':_0x35da2b(0x8f),'rApiT':'api','hMFeH':function(_0x1e7647,_0x2f3913){return _0x1e7647===_0x2f3913;},'YTzeA':function(_0x5c9352,_0x41df06){return _0x5c9352+_0x41df06;}},_0x27b183=_0x113391[_0x35da2b(0xe3)](getBrowserstackCLI),_0x5548e4=_0x113391[_0x35da2b(0xad)](nestedKeyValue,_0x27b183[_0x35da2b(0x8a)]()[_0x35da2b(0x93)](),[_0x113391['DeJdf'],_0x113391[_0x35da2b(0xbe)],_0x113391['rApiT']])||constants[_0x35da2b(0xb2)];if(!_0x2c3b34||_0x113391[_0x35da2b(0xb7)](_0x2c3b34,''))return _0x5548e4;const _0x84bb07=_0x5548e4[_0x35da2b(0xd1)]('/')?_0x5548e4:_0x113391[_0x35da2b(0xd5)](_0x5548e4,'/');return new URL(_0x2c3b34,_0x84bb07)[_0x35da2b(0x9b)]();}static['getEdsInstrumentationAPIUrl'](_0x41fd70){const _0x5cb77=a60_0x160bbc,_0x2d9f16={'GMtMJ':function(_0x18d41e){return _0x18d41e();},'GnRZl':function(_0x4879aa,_0xd253a6,_0x507501){return _0x4879aa(_0xd253a6,_0x507501);},'mlTkJ':'apis','raZjz':_0x5cb77(0x84),'MCjEX':_0x5cb77(0x99),'JmYYB':function(_0x5cf6b8,_0x4a6f90){return _0x5cf6b8===_0x4a6f90;},'ZytRm':function(_0x2ff43c,_0x2d484a){return _0x2ff43c+_0x2d484a;}},_0x5370b2=_0x2d9f16['GMtMJ'](getBrowserstackCLI),_0x3fbf22=_0x2d9f16[_0x5cb77(0xc7)](nestedKeyValue,_0x5370b2[_0x5cb77(0x8a)]()['getConfig'](),[_0x2d9f16[_0x5cb77(0x91)],_0x2d9f16['raZjz'],_0x2d9f16['MCjEX']])||constants['EDS_URL'];if(!_0x41fd70||_0x2d9f16[_0x5cb77(0xa7)](_0x41fd70,''))return _0x3fbf22;const _0x40823d=_0x3fbf22['endsWith']('/')?_0x3fbf22:_0x2d9f16[_0x5cb77(0xe1)](_0x3fbf22,'/');return new URL(_0x41fd70,_0x40823d)[_0x5cb77(0x9b)]();}static[a60_0x160bbc(0x8e)](_0x54f3ac){const _0x3d8b0f=a60_0x160bbc,_0x1a1efe={'oHJsU':function(_0x4a0c78){return _0x4a0c78();},'uWTAs':function(_0x1e11e4,_0x45b5ad,_0x2da421){return _0x1e11e4(_0x45b5ad,_0x2da421);},'nKWCa':_0x3d8b0f(0xb6),'snWtC':_0x3d8b0f(0x8f),'NBKeD':_0x3d8b0f(0x99),'sQcmf':function(_0x4be7cd,_0x144cac){return _0x4be7cd===_0x144cac;},'GlhRQ':function(_0x3f6166,_0x2252ab){return _0x3f6166+_0x2252ab;}},_0x3c91d7=_0x1a1efe[_0x3d8b0f(0xa0)](getBrowserstackCLI),_0x3cc059=_0x1a1efe[_0x3d8b0f(0xe4)](nestedKeyValue,_0x3c91d7[_0x3d8b0f(0x8a)]()[_0x3d8b0f(0x93)](),[_0x1a1efe[_0x3d8b0f(0xaf)],_0x1a1efe['snWtC'],_0x1a1efe[_0x3d8b0f(0xd3)]])||constants[_0x3d8b0f(0xb2)];if(!_0x54f3ac||_0x1a1efe[_0x3d8b0f(0xc9)](_0x54f3ac,''))return _0x3cc059;const _0xd0c4b4=_0x3cc059[_0x3d8b0f(0xd1)]('/')?_0x3cc059:_0x1a1efe[_0x3d8b0f(0xb8)](_0x3cc059,'/');return new URL(_0x54f3ac,_0xd0c4b4)['toString']();}static[a60_0x160bbc(0xc5)](_0x4d9008){const _0x53ca77=a60_0x160bbc,_0x533cb4={'EPgjs':function(_0x421a3c){return _0x421a3c();},'QSlbc':function(_0x3addca,_0x3ffc69,_0x3b59fc){return _0x3addca(_0x3ffc69,_0x3b59fc);},'FYgSI':_0x53ca77(0xb6),'pAwMF':_0x53ca77(0x9e),'YiGbW':'api','xBslz':function(_0x1bf81b,_0x16d441){return _0x1bf81b===_0x16d441;},'XUmpE':function(_0x5f29dd,_0x43a26a){return _0x5f29dd+_0x43a26a;}},_0x48697a=_0x533cb4[_0x53ca77(0x88)](getBrowserstackCLI),_0x9ae94f=_0x533cb4[_0x53ca77(0xc1)](nestedKeyValue,_0x48697a[_0x53ca77(0x8a)]()[_0x53ca77(0x93)](),[_0x533cb4[_0x53ca77(0xbc)],_0x533cb4['pAwMF'],_0x533cb4[_0x53ca77(0xc4)]])||constants[_0x53ca77(0xb2)];if(!_0x4d9008||_0x533cb4[_0x53ca77(0xc8)](_0x4d9008,''))return _0x9ae94f;const _0xd834b2=_0x9ae94f[_0x53ca77(0xd1)]('/')?_0x9ae94f:_0x533cb4[_0x53ca77(0xe2)](_0x9ae94f,'/');return new URL(_0x4d9008,_0xd834b2)['toString']();}static[a60_0x160bbc(0xe5)](_0x57ccb5){const _0x21aca9=a60_0x160bbc,_0x2c34c9={'TbAnu':function(_0x1ede27){return _0x1ede27();},'YcqNR':function(_0x580098,_0x4d905c,_0x44626d){return _0x580098(_0x4d905c,_0x44626d);},'IICUw':_0x21aca9(0xb6),'MarSo':_0x21aca9(0x8f),'NwhlZ':_0x21aca9(0x99),'soBvm':function(_0x451b65,_0x5a1cf9){return _0x451b65===_0x5a1cf9;},'FgoTG':function(_0x370438,_0x4874ea){return _0x370438+_0x4874ea;}},_0x160789=_0x2c34c9[_0x21aca9(0x92)](getBrowserstackCLI),_0x359d93=_0x2c34c9[_0x21aca9(0xd8)](nestedKeyValue,_0x160789[_0x21aca9(0x8a)]()[_0x21aca9(0x93)](),[_0x2c34c9[_0x21aca9(0x97)],_0x2c34c9[_0x21aca9(0x87)],_0x2c34c9[_0x21aca9(0xca)]])||constants[_0x21aca9(0xb2)];if(!_0x57ccb5||_0x2c34c9['soBvm'](_0x57ccb5,''))return _0x359d93;const _0x37e6d1=_0x359d93[_0x21aca9(0xd1)]('/')?_0x359d93:_0x2c34c9[_0x21aca9(0xcb)](_0x359d93,'/');return new URL(_0x57ccb5,_0x37e6d1)[_0x21aca9(0x9b)]();}static[a60_0x160bbc(0x89)](_0x32e57e){const _0x51f9f3=a60_0x160bbc,_0x431be1={'fAIBR':function(_0x15c108){return _0x15c108();},'sEkPX':function(_0x190fba,_0x14aa1a,_0xe7a274){return _0x190fba(_0x14aa1a,_0xe7a274);},'ZQVgf':_0x51f9f3(0xb6),'SVGlj':'appAutomate','OeQDN':_0x51f9f3(0x99),'tEHnE':function(_0x58e867,_0x5abadc){return _0x58e867===_0x5abadc;},'XhaqU':function(_0x539134,_0x4818f7){return _0x539134+_0x4818f7;}},_0x3eb11a=_0x431be1[_0x51f9f3(0xdf)](getBrowserstackCLI),_0x3b7ff3=_0x431be1['sEkPX'](nestedKeyValue,_0x3eb11a[_0x51f9f3(0x8a)]()[_0x51f9f3(0x93)](),[_0x431be1['ZQVgf'],_0x431be1[_0x51f9f3(0xe8)],_0x431be1[_0x51f9f3(0xc2)]])||constants[_0x51f9f3(0xb2)];if(!_0x32e57e||_0x431be1[_0x51f9f3(0xac)](_0x32e57e,''))return _0x3b7ff3;const _0x47e208=_0x3b7ff3[_0x51f9f3(0xd1)]('/')?_0x3b7ff3:_0x431be1[_0x51f9f3(0x9c)](_0x3b7ff3,'/');return new URL(_0x32e57e,_0x47e208)[_0x51f9f3(0x9b)]();}static[a60_0x160bbc(0xb0)](_0x19f86e){const _0x46d211=a60_0x160bbc,_0x9dcbc4={'sPfyP':function(_0x4011d1){return _0x4011d1();},'tOxAF':function(_0x403167,_0x2b0d07,_0x4afd30){return _0x403167(_0x2b0d07,_0x4afd30);},'EFEcp':_0x46d211(0xb6),'fGzWW':'automate','isvEB':_0x46d211(0x99),'sCbFm':function(_0x40320f,_0x501c0c){return _0x40320f===_0x501c0c;},'PDFFJ':function(_0x4404ad,_0x5078c0){return _0x4404ad+_0x5078c0;}},_0x35c873=_0x9dcbc4[_0x46d211(0xce)](getBrowserstackCLI),_0x1debe6=_0x9dcbc4[_0x46d211(0xbf)](nestedKeyValue,_0x35c873[_0x46d211(0x8a)]()[_0x46d211(0x93)](),[_0x9dcbc4[_0x46d211(0x95)],_0x9dcbc4[_0x46d211(0xbd)],_0x9dcbc4[_0x46d211(0xbb)]])||constants['BROWSERSTACK_API_URL'];if(!_0x19f86e||_0x9dcbc4['sCbFm'](_0x19f86e,''))return _0x1debe6;const _0x561842=_0x1debe6['endsWith']('/')?_0x1debe6:_0x9dcbc4[_0x46d211(0x9d)](_0x1debe6,'/');return new URL(_0x19f86e,_0x561842)[_0x46d211(0x9b)]()[_0x46d211(0xb9)](/^https?:\/\//,'');}static[a60_0x160bbc(0xd7)](_0x361c72){const _0x366c98=a60_0x160bbc,_0x44dd0a={'QQthN':function(_0x4c0980){return _0x4c0980();},'LFeAo':function(_0x3f9ed7,_0x9b354,_0x162db7){return _0x3f9ed7(_0x9b354,_0x162db7);},'rjAGv':'apis','hQNDV':_0x366c98(0x9e),'yvzXs':_0x366c98(0x99),'eYRKg':function(_0x30a250,_0x2501ab){return _0x30a250===_0x2501ab;},'bCjgA':function(_0x53a6f4,_0x234c5a){return _0x53a6f4+_0x234c5a;}},_0x9c8132=_0x44dd0a[_0x366c98(0xaa)](getBrowserstackCLI),_0xde240b=_0x44dd0a['LFeAo'](nestedKeyValue,_0x9c8132[_0x366c98(0x8a)]()[_0x366c98(0x93)](),[_0x44dd0a[_0x366c98(0xd2)],_0x44dd0a[_0x366c98(0xa4)],_0x44dd0a['yvzXs']])||constants[_0x366c98(0xe0)];if(!_0x361c72||_0x44dd0a['eYRKg'](_0x361c72,''))return _0xde240b;const _0x3e09bb=_0xde240b[_0x366c98(0xd1)]('/')?_0xde240b:_0x44dd0a[_0x366c98(0x96)](_0xde240b,'/');return new URL(_0x361c72,_0x3e09bb)[_0x366c98(0x9b)]()[_0x366c98(0xb9)](/^https?:\/\//,'');}static[a60_0x160bbc(0xdc)](_0x60cb6d){const _0x1d0e69=a60_0x160bbc,_0x429f84={'ROeKB':function(_0x4f4299){return _0x4f4299();},'XRMcL':function(_0x4f5d35,_0x521fdd,_0x5a91c3){return _0x4f5d35(_0x521fdd,_0x5a91c3);},'cwhIZ':_0x1d0e69(0xb6),'uyiCU':'observability','cJetN':_0x1d0e69(0x83),'DXdZG':function(_0x4ef720,_0xf7301d){return _0x4ef720===_0xf7301d;},'JKiTl':function(_0xb95bed,_0x240d42){return _0xb95bed+_0x240d42;}},_0x3e6718=_0x429f84[_0x1d0e69(0x8d)](getBrowserstackCLI),_0x1a7fa7=_0x429f84[_0x1d0e69(0x9f)](nestedKeyValue,_0x3e6718[_0x1d0e69(0x8a)]()[_0x1d0e69(0x93)](),[_0x429f84[_0x1d0e69(0xa8)],_0x429f84[_0x1d0e69(0xae)],_0x429f84[_0x1d0e69(0xd4)]])||constants[_0x1d0e69(0xdd)];if(!_0x60cb6d||_0x429f84[_0x1d0e69(0x98)](_0x60cb6d,''))return _0x1a7fa7;const _0x2b8eaa=_0x1a7fa7[_0x1d0e69(0xd1)]('/')?_0x1a7fa7:_0x429f84[_0x1d0e69(0xcf)](_0x1a7fa7,'/');return new URL(_0x60cb6d,_0x2b8eaa)['toString']();}static[a60_0x160bbc(0x81)](_0x532e02){const _0x1d8ac6=a60_0x160bbc,_0x14dd2d={'tTfTn':function(_0x19bec8){return _0x19bec8();},'NyhsE':function(_0x38ed08,_0x460474,_0x1dba7a){return _0x38ed08(_0x460474,_0x1dba7a);},'qxuzL':'apis','hzzNS':'automate','ggVAG':'cdp','kGjOk':'wss:','Mjjwk':function(_0x4fa394,_0x544645){return _0x4fa394===_0x544645;},'vFtPL':function(_0x29da34,_0x53453c){return _0x29da34+_0x53453c;},'hqBKP':'/playwright?caps='},_0x37d32c=_0x14dd2d[_0x1d8ac6(0xe7)](getBrowserstackCLI),_0x1f5417=_0x14dd2d[_0x1d8ac6(0xab)](nestedKeyValue,_0x37d32c[_0x1d8ac6(0x8a)]()['getConfig'](),[_0x14dd2d['qxuzL'],_0x14dd2d[_0x1d8ac6(0xa6)],_0x14dd2d[_0x1d8ac6(0xd6)]]),_0xe4d4f5=(_0x1f5417?_0x1f5417[_0x1d8ac6(0xb9)](/^https:/,_0x14dd2d[_0x1d8ac6(0x90)]):null)||constants[_0x1d8ac6(0xd0)];let _0xb81096;if(!_0x532e02||_0x14dd2d[_0x1d8ac6(0xba)](_0x532e02,''))_0xb81096=_0xe4d4f5;else{const _0x15dab1=_0xe4d4f5[_0x1d8ac6(0xd1)]('/')?_0xe4d4f5:_0x14dd2d['vFtPL'](_0xe4d4f5,'/');_0xb81096=new URL(_0x532e02,_0x15dab1)['toString']();}return!_0xb81096['endsWith'](_0x14dd2d['hqBKP'])&&(_0xb81096+=_0x14dd2d[_0x1d8ac6(0xda)]),_0xb81096;}static[a60_0x160bbc(0x85)](_0x366b3d){const _0x78904d=a60_0x160bbc,_0x46265e={'GRGhZ':function(_0x498026){return _0x498026();},'bVYzd':function(_0x44df7d,_0x8aa486,_0x5eb8a2){return _0x44df7d(_0x8aa486,_0x5eb8a2);},'fkgOJ':_0x78904d(0xb6),'OjnjI':_0x78904d(0x8f),'PDBXW':_0x78904d(0xb5),'WIPMm':'wss:','FXISR':function(_0x4d5ac9,_0x1606e4){return _0x4d5ac9===_0x1606e4;},'YkKwm':function(_0x3c4048,_0x5978c9){return _0x3c4048+_0x5978c9;},'XyEHW':_0x78904d(0xa2)},_0x62dd84=_0x46265e[_0x78904d(0xe6)](getBrowserstackCLI),_0x545e34=_0x46265e['bVYzd'](nestedKeyValue,_0x62dd84['getInstance']()['getConfig'](),[_0x46265e[_0x78904d(0x82)],_0x46265e['OjnjI'],_0x46265e[_0x78904d(0xdb)]]),_0x2e0f36=(_0x545e34?_0x545e34[_0x78904d(0xb9)](/^https:/,_0x46265e[_0x78904d(0xc6)]):null)||constants[_0x78904d(0xb1)];let _0x3b8770;if(!_0x366b3d||_0x46265e['FXISR'](_0x366b3d,''))_0x3b8770=_0x2e0f36;else{const _0x2c4881=_0x2e0f36[_0x78904d(0xd1)]('/')?_0x2e0f36:_0x46265e[_0x78904d(0xb4)](_0x2e0f36,'/');_0x3b8770=new URL(_0x366b3d,_0x2c4881)['toString']();}return!_0x3b8770[_0x78904d(0xd1)](_0x46265e[_0x78904d(0xa5)])&&(_0x3b8770+=_0x46265e[_0x78904d(0xa5)]),_0x3b8770;}}module[a60_0x160bbc(0xcd)]=APIUtilityMethods;function a60_0x5ec3(){const _0x113272=['XhaqU','PDFFJ','appAutomate','XRMcL','oHJsU','GeRVP','/puppeteer?caps=','556Kivjjh','hQNDV','XyEHW','hzzNS','JmYYB','cwhIZ','./sharedUtils','QQthN','NyhsE','tEHnE','GWYMY','uyiCU','nKWCa','getAutomateSessionsListAPIUrl','PUPPETEER_HUB_URL','BROWSERSTACK_API_URL','399732DPDtbu','YkKwm','cdp','apis','hMFeH','GlhRQ','replace','Mjjwk','isvEB','FYgSI','fGzWW','vMCJp','tOxAF','./constants','QSlbc','OeQDN','2459331Cpxtib','YiGbW','getAppAutomateSessionStatusAPIUrl','WIPMm','GnRZl','xBslz','sQcmf','NwhlZ','FgoTG','746356iuAOdO','exports','sPfyP','JKiTl','PLAYWRIGHT_HUB_URL','endsWith','rjAGv','NBKeD','cJetN','YTzeA','ggVAG','getAppAutomateSessionsListAPIUrl','YcqNR','1367848eCSiDz','hqBKP','PDBXW','getAutoCaptureLogsAPIUrl','OBSERVABILITY_UPLOAD_URL','488ckcQhF','fAIBR','APP_UPLOAD_URL','ZytRm','XUmpE','ZmPDC','uWTAs','getAutomateSessionNameAPIUrl','GRGhZ','tTfTn','SVGlj','getPlaywrightHubUrl','fkgOJ','upload','edsInstrumentation','getPuppeteerHubUrl','717039piyMDQ','MarSo','EPgjs','getAppAutomateSessionNameAPIUrl','getInstance','70DmHquo','3708285pZVuzy','ROeKB','getAutomateSessionStatusAPIUrl','automate','kGjOk','mlTkJ','TbAnu','getConfig','40eWjpwJ','EFEcp','bCjgA','IICUw','DXdZG','api','../v2/browserstackCLI','toString'];a60_0x5ec3=function(){return _0x113272;};return a60_0x5ec3();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a57_0x2a5a(_0x1cd53b,_0x3fdca2){const _0x20a10f=a57_0x20a1();return a57_0x2a5a=function(_0x2a5a07,_0x214022){_0x2a5a07=_0x2a5a07-0x125;let _0x22fcb9=_0x20a10f[_0x2a5a07];return _0x22fcb9;},a57_0x2a5a(_0x1cd53b,_0x3fdca2);}const a57_0x1ad7f1=a57_0x2a5a;(function(_0x348516,_0x147862){const _0x1edf4c=a57_0x2a5a,_0x56554b=_0x348516();while(!![]){try{const _0x1b9822=-parseInt(_0x1edf4c(0x13b))/0x1+-parseInt(_0x1edf4c(0x136))/0x2+-parseInt(_0x1edf4c(0x128))/0x3*(parseInt(_0x1edf4c(0x133))/0x4)+parseInt(_0x1edf4c(0x13f))/0x5*(-parseInt(_0x1edf4c(0x166))/0x6)+-parseInt(_0x1edf4c(0x16f))/0x7*(-parseInt(_0x1edf4c(0x17c))/0x8)+parseInt(_0x1edf4c(0x132))/0x9*(parseInt(_0x1edf4c(0x171))/0xa)+parseInt(_0x1edf4c(0x146))/0xb*(parseInt(_0x1edf4c(0x135))/0xc);if(_0x1b9822===_0x147862)break;else _0x56554b['push'](_0x56554b['shift']());}catch(_0xa6b860){_0x56554b['push'](_0x56554b['shift']());}}}(a57_0x20a1,0xc9f74));const logger=require('../../helpers/logger')['winstonLogger'],BrowserstackCLI=require(a57_0x1ad7f1(0x17f)),GrpcClient=require(a57_0x1ad7f1(0x186)),constants=require(a57_0x1ad7f1(0x15b));function a57_0x20a1(){const _0x131b46=['getDocumentationLink','491449dwKnzI','SCIpy','73240MjXcDT','reportDotBrowserStackFolderNotAccessibleIssue','error','Process\x20Interruption','cFmpf','sDprS','getInstance','wZgTM','finalErrorMessage','errorCodes','XqTks','8iDWBOe','errorCodesOccurredInCLI','OJCAQ','../v2/browserstackCLI','reportSSLCertIssue','base64','errorCodesOccurredWhenCLINotRunning','NBNai','getCachedErrorCodes','Connectivity\x20Issue\x20details\x20not\x20found','../v2/grpcClient','Error\x20in\x20getting\x20error\x20details\x20for\x20','browserstack\x20cloud\x20not\x20reachable','getErrorCodes','wkTGp','Error\x20in\x20getting\x20aggregated\x20error\x20codes:','from','hkLrt','logError','checkForErrorsOccuredInCLI','51miPFmf','UBRAC','exports','reportConflictingEnvVarIssue','{SIGNAL}','errorCode','isRunning','KOClX','errorMessage','parse','405aecrdj','164316wJNTUS','CLIENT_TROUBLESHOOTING_HASH','256020uJWGDd','311746rEtMpm','logSituation','.browserstack\x20Folder\x20Not\x20Accessible\x20details\x20not\x20found','reportSessionLinkingIssue','cachedErrorCodes','538217IkXCBV','gvFvI','[ClientTroubleShootingService]\x20','getErrorMessage','105FsfjoO','Session\x20Linking\x20Issue\x20details\x20not\x20found','getErrorDetails','RFjCI','replace','join','JemSF','1199FykqjC','zabQN','getAggregatedErrorCodes','ocbDR','{ENV_VAR}','keys','getErrorCode','SHGVx','skEWU','ulTrm','lmJXY','stringify','getErrorCodesOccurredInCli','reportConnectivityIssue','SSL\x20Certificate\x20Issue\x20details\x20not\x20found','reportProcessInterruptionSituation','push','Conflicting\x20Env\x20Var\x20details\x20not\x20found','DFgSW','Process\x20Interruption\x20details\x20not\x20found:','HQtfn','./constants','rlxQx','getSuccess','WzKQc','size','EBcpR','ZgTwI','reportFinalDetectionState','uhDsI','HGpsk','add','144462kNHBPd','documentationLink','VJbMK','toString','pUeaB','length','UoCUJ','YfUtY'];a57_0x20a1=function(){return _0x131b46;};return a57_0x20a1();}class ClientTroubleShootingService{static [a57_0x1ad7f1(0x13a)]=null;static [a57_0x1ad7f1(0x182)]=new Set();static async['getErrorDetails'](_0x5966f5){const _0x532092=a57_0x1ad7f1,_0x461190={};_0x461190['KOClX']=function(_0x80ac87,_0x3fd13c){return _0x80ac87!==_0x3fd13c;};const _0x2195ef=_0x461190;try{if(BrowserstackCLI[_0x532092(0x177)]()['isRunning']()){const _0x563821=await GrpcClient['getInstance']()['reportClientTroubleshootingError'](_0x5966f5);if(_0x2195ef[_0x532092(0x12f)](_0x563821,null)&&_0x563821[_0x532092(0x15d)]())return{'errorCode':_0x563821[_0x532092(0x14c)](),'errorMessage':_0x563821[_0x532092(0x13e)]()};return{};}return{};}catch(_0x49635e){return this['logError'](_0x532092(0x187)+_0x5966f5+':',_0x49635e),{};}}static async[a57_0x1ad7f1(0x148)](){const _0x191a36=a57_0x1ad7f1,_0x8d4fcc={};_0x8d4fcc['wZgTM']=function(_0x3311a5,_0x440183){return _0x3311a5!==_0x440183;},_0x8d4fcc[_0x191a36(0x15c)]=_0x191a36(0x181),_0x8d4fcc[_0x191a36(0x163)]=_0x191a36(0x18b);const _0x381041=_0x8d4fcc;try{if(BrowserstackCLI[_0x191a36(0x177)]()[_0x191a36(0x12e)]()){const _0x324a3a=await GrpcClient[_0x191a36(0x177)]()['getAggregatedClientTroubleshootingErrors']();if(_0x381041[_0x191a36(0x178)](_0x324a3a,null)&&_0x324a3a['getSuccess']()){const _0x122cbd=Buffer[_0x191a36(0x18c)](_0x324a3a[_0x191a36(0x189)](),_0x381041[_0x191a36(0x15c)])[_0x191a36(0x169)](),_0x2db007=_0x122cbd?JSON[_0x191a36(0x131)](_0x122cbd):[],_0x3ff805=_0x324a3a[_0x191a36(0x16e)](),_0x10f559=_0x324a3a['getFinalErrorMessage'](),_0x3c8ae6=Buffer[_0x191a36(0x18c)](_0x324a3a[_0x191a36(0x152)](),_0x381041['rlxQx'])[_0x191a36(0x169)](),_0x45526b=_0x3c8ae6?JSON[_0x191a36(0x131)](_0x3c8ae6):[],_0x32aab5={};return _0x32aab5[_0x191a36(0x17a)]=_0x2db007,_0x32aab5[_0x191a36(0x167)]=_0x3ff805,_0x32aab5[_0x191a36(0x179)]=_0x10f559,_0x32aab5[_0x191a36(0x17d)]=_0x45526b,_0x32aab5;}const _0x19834b={};return _0x19834b[_0x191a36(0x17a)]=[],_0x19834b[_0x191a36(0x167)]='',_0x19834b['finalErrorMessage']='',_0x19834b['errorCodesOccurredInCLI']=[],_0x19834b;}const _0x20988d={};return _0x20988d[_0x191a36(0x17a)]=[],_0x20988d[_0x191a36(0x167)]='',_0x20988d['finalErrorMessage']='',_0x20988d[_0x191a36(0x17d)]=[],_0x20988d;}catch(_0x246dd4){this[_0x191a36(0x126)](_0x381041[_0x191a36(0x163)],_0x246dd4);const _0x2d663f={};return _0x2d663f[_0x191a36(0x17a)]=[],_0x2d663f[_0x191a36(0x167)]='',_0x2d663f[_0x191a36(0x179)]='',_0x2d663f[_0x191a36(0x17d)]=[],_0x2d663f;}}static['logSituation'](_0x390a8f,_0x2454ad){logger['warn'](_0x390a8f+':\x20'+_0x2454ad);}static['checkForErrorsOccuredInCLI'](_0x33e137){const _0x145606=a57_0x1ad7f1,_0x2d5352={};_0x2d5352[_0x145606(0x16c)]=function(_0x2df6da,_0x60f6c8){return _0x2df6da!=_0x60f6c8;},_0x2d5352[_0x145606(0x17b)]=function(_0x41cfd8,_0x3b25ab){return _0x41cfd8!=_0x3b25ab;},_0x2d5352[_0x145606(0x18a)]=function(_0x56d05f,_0x1240e5){return _0x56d05f>_0x1240e5;},_0x2d5352[_0x145606(0x150)]=function(_0x5089c9,_0x4b752d){return _0x5089c9!=_0x4b752d;},_0x2d5352[_0x145606(0x164)]=function(_0x501a2e,_0x4984e2){return _0x501a2e!=_0x4984e2;};const _0x54ff0b=_0x2d5352,_0x1924f8=[];if(_0x54ff0b[_0x145606(0x16c)](_0x33e137,null)&&_0x54ff0b[_0x145606(0x17b)](_0x33e137[_0x145606(0x17d)],null)&&_0x54ff0b[_0x145606(0x18a)](_0x33e137[_0x145606(0x17d)][_0x145606(0x16b)],0x0))for(const _0x16fc74 of _0x33e137[_0x145606(0x17d)]){_0x54ff0b['lmJXY'](_0x16fc74[_0x145606(0x12d)],null)&&_0x54ff0b['HGpsk'](_0x16fc74[_0x145606(0x130)],null)&&(_0x1924f8[_0x145606(0x156)](_0x16fc74[_0x145606(0x12d)]),this[_0x145606(0x137)](_0x16fc74[_0x145606(0x12d)],_0x16fc74[_0x145606(0x130)]));}return _0x1924f8;}static[a57_0x1ad7f1(0x184)](){const _0x39e94f=a57_0x1ad7f1;return this[_0x39e94f(0x13a)];}static[a57_0x1ad7f1(0x126)](_0x5b238e,_0x3a2741){const _0x50afdc=a57_0x1ad7f1,_0x3f9e07={};_0x3f9e07[_0x50afdc(0x15e)]=function(_0x5d6a31,_0x27a076){return _0x5d6a31===_0x27a076;},_0x3f9e07[_0x50afdc(0x170)]='object';const _0x5a0f0c=_0x3f9e07;if(_0x5a0f0c['WzKQc'](typeof _0x3a2741,_0x5a0f0c[_0x50afdc(0x170)]))try{logger['error'](_0x50afdc(0x13d)+_0x5b238e+'\x20'+JSON[_0x50afdc(0x151)](_0x3a2741));}catch(_0x2a6bd3){logger[_0x50afdc(0x173)](_0x50afdc(0x13d)+_0x5b238e+'\x20'+_0x3a2741);}else logger[_0x50afdc(0x173)](_0x50afdc(0x13d)+_0x5b238e+'\x20'+_0x3a2741);}static async[a57_0x1ad7f1(0x155)](_0x4af251){const _0x310c90=a57_0x1ad7f1,_0x35a07b={};_0x35a07b[_0x310c90(0x15a)]=_0x310c90(0x174),_0x35a07b[_0x310c90(0x158)]=function(_0x15df79,_0x10caf7){return _0x15df79===_0x10caf7;},_0x35a07b[_0x310c90(0x149)]=_0x310c90(0x159),_0x35a07b[_0x310c90(0x125)]=_0x310c90(0x12c);const _0x13ac2=_0x35a07b,_0xa0a372=await this[_0x310c90(0x141)](_0x13ac2[_0x310c90(0x15a)]);if(!_0xa0a372||_0x13ac2[_0x310c90(0x158)](Object[_0x310c90(0x14b)](_0xa0a372)[_0x310c90(0x16b)],0x0)){this['logError'](_0x13ac2[_0x310c90(0x149)],_0xa0a372);return;}this['logSituation'](_0xa0a372[_0x310c90(0x12d)],_0xa0a372['errorMessage']['replace'](_0x13ac2[_0x310c90(0x125)],_0x4af251));}static async[a57_0x1ad7f1(0x139)](){const _0x5a77bc=a57_0x1ad7f1,_0x2b807f={};_0x2b807f[_0x5a77bc(0x17e)]='Session\x20Linking\x20Issue',_0x2b807f['QMAjx']=function(_0x3b45e0,_0x59c32e){return _0x3b45e0===_0x59c32e;},_0x2b807f[_0x5a77bc(0x14d)]=_0x5a77bc(0x140);const _0x45655a=_0x2b807f,_0x4ff827=await this[_0x5a77bc(0x141)](_0x45655a[_0x5a77bc(0x17e)]);if(!_0x4ff827||_0x45655a['QMAjx'](Object[_0x5a77bc(0x14b)](_0x4ff827)[_0x5a77bc(0x16b)],0x0)){this[_0x5a77bc(0x126)](_0x45655a[_0x5a77bc(0x14d)],_0x4ff827);return;}this['logSituation'](_0x4ff827[_0x5a77bc(0x12d)],_0x4ff827[_0x5a77bc(0x130)]);}static async[a57_0x1ad7f1(0x153)](){const _0x19884c=a57_0x1ad7f1,_0x30f174={};_0x30f174[_0x19884c(0x14e)]=_0x19884c(0x188),_0x30f174['ZgTwI']=function(_0x315fb7,_0x502f22){return _0x315fb7===_0x502f22;},_0x30f174[_0x19884c(0x183)]=_0x19884c(0x185);const _0x505240=_0x30f174,_0x3a67b6=await this[_0x19884c(0x141)](_0x505240['skEWU']);if(!_0x3a67b6||_0x505240[_0x19884c(0x161)](Object[_0x19884c(0x14b)](_0x3a67b6)[_0x19884c(0x16b)],0x0)){this[_0x19884c(0x126)](_0x505240[_0x19884c(0x183)],_0x3a67b6);return;}this[_0x19884c(0x137)](_0x3a67b6[_0x19884c(0x12d)],_0x3a67b6['errorMessage']);}static async[a57_0x1ad7f1(0x180)](){const _0x309764=a57_0x1ad7f1,_0x48b02d={};_0x48b02d['RFjCI']='ssl\x20cert\x20issue',_0x48b02d['eeLNC']=function(_0x2b42b4,_0xc42234){return _0x2b42b4===_0xc42234;},_0x48b02d[_0x309764(0x13c)]=_0x309764(0x154);const _0x4a4f26=_0x48b02d,_0x213c87=await this[_0x309764(0x141)](_0x4a4f26[_0x309764(0x142)]);if(!_0x213c87||_0x4a4f26['eeLNC'](Object[_0x309764(0x14b)](_0x213c87)[_0x309764(0x16b)],0x0)){this[_0x309764(0x126)](_0x4a4f26['gvFvI'],_0x213c87);return;}this[_0x309764(0x137)](_0x213c87[_0x309764(0x12d)],_0x213c87['errorMessage']);}static[a57_0x1ad7f1(0x172)](){const _0x85bfd7=a57_0x1ad7f1,_0x59b981={};_0x59b981['EBcpR']='.browserstack\x20folder\x20not\x20accessible',_0x59b981[_0x85bfd7(0x16d)]=function(_0x44ff3b,_0x1cef6d){return _0x44ff3b===_0x1cef6d;},_0x59b981[_0x85bfd7(0x175)]=_0x85bfd7(0x138);const _0x4e28c5=_0x59b981,_0x9728c9=constants[_0x85bfd7(0x134)][_0x4e28c5[_0x85bfd7(0x160)]];if(!_0x9728c9||_0x4e28c5[_0x85bfd7(0x16d)](Object['keys'](_0x9728c9)['length'],0x0)){this[_0x85bfd7(0x126)](_0x4e28c5[_0x85bfd7(0x175)],_0x9728c9);return;}this['errorCodesOccurredWhenCLINotRunning'][_0x85bfd7(0x165)](_0x9728c9[0x0]),this[_0x85bfd7(0x137)](_0x9728c9[0x0],_0x9728c9[0x1]);}static async[a57_0x1ad7f1(0x12b)](_0x513cb0){const _0x3d6998=a57_0x1ad7f1,_0x4ded71={};_0x4ded71[_0x3d6998(0x176)]='conflicting\x20env\x20var\x20detected',_0x4ded71[_0x3d6998(0x129)]=function(_0x191c73,_0x5b08e0){return _0x191c73===_0x5b08e0;},_0x4ded71[_0x3d6998(0x145)]=_0x3d6998(0x157),_0x4ded71[_0x3d6998(0x168)]=_0x3d6998(0x14a);const _0x422058=_0x4ded71,_0x941e28=await this[_0x3d6998(0x141)](_0x422058[_0x3d6998(0x176)]);if(!_0x941e28||_0x422058[_0x3d6998(0x129)](Object[_0x3d6998(0x14b)](_0x941e28)[_0x3d6998(0x16b)],0x0)){this[_0x3d6998(0x126)](_0x422058[_0x3d6998(0x145)],_0x941e28);return;}const _0x33f7bc=_0x941e28['errorMessage'][_0x3d6998(0x143)](_0x422058['VJbMK'],_0x513cb0);this[_0x3d6998(0x137)](_0x941e28[_0x3d6998(0x12d)],_0x33f7bc);}static async[a57_0x1ad7f1(0x162)](){const _0x2fb8cd=a57_0x1ad7f1,_0x3a8881={};_0x3a8881[_0x2fb8cd(0x16a)]=function(_0x3c38bf,_0x90e7be){return _0x3c38bf>_0x90e7be;},_0x3a8881[_0x2fb8cd(0x14f)]='{ERROR_CODES}',_0x3a8881[_0x2fb8cd(0x147)]='{CLIENT_TROUBLESHOOTING_DOCUMENTATION}';const _0x218397=_0x3a8881,_0x139336=await this['getAggregatedErrorCodes'](),_0xfccca0=this[_0x2fb8cd(0x127)](_0x139336),_0x5a562b=Array['isArray'](_0x139336[_0x2fb8cd(0x17a)])?_0x139336['errorCodes']:[],_0x500bec=_0x218397[_0x2fb8cd(0x16a)](this['errorCodesOccurredWhenCLINotRunning'][_0x2fb8cd(0x15f)],0x0)?Array[_0x2fb8cd(0x18c)](this['errorCodesOccurredWhenCLINotRunning']):[],_0x551bdb=new Set([..._0x5a562b,..._0xfccca0,..._0x500bec]),_0x26a4f7=Array['from'](_0x551bdb);if(_0x218397['pUeaB'](_0x26a4f7[_0x2fb8cd(0x16b)],0x0)){const _0xe2ac13=_0x139336[_0x2fb8cd(0x179)][_0x2fb8cd(0x143)](_0x218397[_0x2fb8cd(0x14f)],_0x26a4f7[_0x2fb8cd(0x144)](',\x20'))[_0x2fb8cd(0x143)](_0x218397[_0x2fb8cd(0x147)],_0x139336[_0x2fb8cd(0x167)]);logger['warn'](_0xe2ac13),this[_0x2fb8cd(0x13a)]=_0x26a4f7;}}}module[a57_0x1ad7f1(0x12a)]=ClientTroubleShootingService;
|
|
1
|
+
function a61_0x5e02(){const _0x2746c6=['reportConnectivityIssue','Error\x20in\x20getting\x20error\x20details\x20for\x20','jQcnh','3994404VWvUgv','anPmS','Process\x20Interruption\x20details\x20not\x20found:','FWyvg','.browserstack\x20folder\x20not\x20accessible','parse','NktLk','reportProcessInterruptionSituation','Error\x20in\x20getting\x20aggregated\x20error\x20codes:','SeEtT','getErrorDetails','Conflicting\x20Env\x20Var\x20details\x20not\x20found','getAggregatedClientTroubleshootingErrors','lafZL','getCachedErrorCodes','{ENV_VAR}','isArray','checkForErrorsOccuredInCLI','nxtqo','exports','join','getAggregatedErrorCodes','getErrorCodesOccurredInCli','zvUrN','zghrb','bbwIo','getErrorMessage','errorCodes','errorCode','length','toString','logError','replace','logSituation','UUHcO','errorCodesOccurredWhenCLINotRunning','reportSSLCertIssue','reportClientTroubleshootingError','3511137JkRvlQ','Teugz','warn','cachedErrorCodes','ckOSW','keys','getErrorCodes','fYIcm','getSuccess','conflicting\x20env\x20var\x20detected','base64','UfkKr','60468CScvQK','gmvBl','YUqoB','YgHnQ','32jXniGU','.browserstack\x20Folder\x20Not\x20Accessible\x20details\x20not\x20found','reportConflictingEnvVarIssue','object','3574928gnLHXH','from','add','getInstance','Process\x20Interruption','TOpqE','reportSessionLinkingIssue','YsYBZ','errorCodesOccurredInCLI','ssl\x20cert\x20issue','documentationLink','SVrrB','vDXRh','2501849JpVlxx','ChemQ','1674944DwxYft','../../helpers/logger','./constants','stringify','fFtuv','rrLjU','browserstack\x20cloud\x20not\x20reachable','inMHT','reportDotBrowserStackFolderNotAccessibleIssue','CLIENT_TROUBLESHOOTING_HASH','160eSCSoM','tSqmI','winstonLogger','finalErrorMessage','errorMessage','vHNLG','../v2/browserstackCLI','Mjnvf','error','31117644EUfJWQ','GipTi','push','size','[ClientTroubleShootingService]\x20','reportFinalDetectionState','getFinalErrorMessage','../v2/grpcClient'];a61_0x5e02=function(){return _0x2746c6;};return a61_0x5e02();}const a61_0x5cae29=a61_0x4398;(function(_0x4ec64c,_0x5515b5){const _0x4e7279=a61_0x4398,_0x22a770=_0x4ec64c();while(!![]){try{const _0x596fd4=parseInt(_0x4e7279(0x151))/0x1+-parseInt(_0x4e7279(0x142))/0x2+-parseInt(_0x4e7279(0x12e))/0x3+-parseInt(_0x4e7279(0x13a))/0x4*(parseInt(_0x4e7279(0xf4))/0x5)+parseInt(_0x4e7279(0x108))/0x6+parseInt(_0x4e7279(0x14f))/0x7*(-parseInt(_0x4e7279(0x13e))/0x8)+parseInt(_0x4e7279(0xfd))/0x9;if(_0x596fd4===_0x5515b5)break;else _0x22a770['push'](_0x22a770['shift']());}catch(_0x10c1e6){_0x22a770['push'](_0x22a770['shift']());}}}(a61_0x5e02,0xe2503));const logger=require(a61_0x5cae29(0x152))[a61_0x5cae29(0xf6)],BrowserstackCLI=require(a61_0x5cae29(0xfa)),GrpcClient=require(a61_0x5cae29(0x104)),constants=require(a61_0x5cae29(0x153));function a61_0x4398(_0x31fb76,_0x743be5){const _0x5e024e=a61_0x5e02();return a61_0x4398=function(_0x4398ce,_0x8e29){_0x4398ce=_0x4398ce-0xef;let _0xf6d7cd=_0x5e024e[_0x4398ce];return _0xf6d7cd;},a61_0x4398(_0x31fb76,_0x743be5);}class ClientTroubleShootingService{static ['cachedErrorCodes']=null;static [a61_0x5cae29(0x12b)]=new Set();static async[a61_0x5cae29(0x112)](_0x1d9aed){const _0x182979=a61_0x5cae29,_0x320fae={};_0x320fae[_0x182979(0x121)]=function(_0xeb3b4f,_0xaca710){return _0xeb3b4f!==_0xaca710;};const _0x5a3933=_0x320fae;try{if(BrowserstackCLI[_0x182979(0x145)]()['isRunning']()){const _0x12a805=await GrpcClient[_0x182979(0x145)]()[_0x182979(0x12d)](_0x1d9aed);if(_0x5a3933['bbwIo'](_0x12a805,null)&&_0x12a805[_0x182979(0x136)]())return{'errorCode':_0x12a805['getErrorCode'](),'errorMessage':_0x12a805[_0x182979(0x122)]()};return{};}return{};}catch(_0x4a6eb5){return this[_0x182979(0x127)](_0x182979(0x106)+_0x1d9aed+':',_0x4a6eb5),{};}}static async['getAggregatedErrorCodes'](){const _0x994e28=a61_0x5cae29,_0xdfc611={};_0xdfc611[_0x994e28(0x13c)]=function(_0x1d3737,_0x15a40f){return _0x1d3737!==_0x15a40f;},_0xdfc611[_0x994e28(0x12f)]=_0x994e28(0x138),_0xdfc611['SeEtT']=_0x994e28(0x110);const _0x38bd3c=_0xdfc611;try{if(BrowserstackCLI[_0x994e28(0x145)]()['isRunning']()){const _0x3ec1ce=await GrpcClient[_0x994e28(0x145)]()[_0x994e28(0x114)]();if(_0x38bd3c[_0x994e28(0x13c)](_0x3ec1ce,null)&&_0x3ec1ce['getSuccess']()){const _0x899d82=Buffer['from'](_0x3ec1ce[_0x994e28(0x134)](),_0x38bd3c['Teugz'])[_0x994e28(0x126)](),_0x35d075=_0x899d82?JSON[_0x994e28(0x10d)](_0x899d82):[],_0x2d9e24=_0x3ec1ce['getDocumentationLink'](),_0x524610=_0x3ec1ce[_0x994e28(0x103)](),_0x4cb518=Buffer['from'](_0x3ec1ce[_0x994e28(0x11e)](),_0x38bd3c[_0x994e28(0x12f)])[_0x994e28(0x126)](),_0x5b8763=_0x4cb518?JSON[_0x994e28(0x10d)](_0x4cb518):[],_0x38429f={};return _0x38429f[_0x994e28(0x123)]=_0x35d075,_0x38429f['documentationLink']=_0x2d9e24,_0x38429f['finalErrorMessage']=_0x524610,_0x38429f['errorCodesOccurredInCLI']=_0x5b8763,_0x38429f;}const _0x187a4c={};return _0x187a4c['errorCodes']=[],_0x187a4c[_0x994e28(0x14c)]='',_0x187a4c[_0x994e28(0xf7)]='',_0x187a4c[_0x994e28(0x14a)]=[],_0x187a4c;}const _0x5ef32e={};return _0x5ef32e['errorCodes']=[],_0x5ef32e['documentationLink']='',_0x5ef32e[_0x994e28(0xf7)]='',_0x5ef32e[_0x994e28(0x14a)]=[],_0x5ef32e;}catch(_0x143725){this[_0x994e28(0x127)](_0x38bd3c[_0x994e28(0x111)],_0x143725);const _0x1a102e={};return _0x1a102e[_0x994e28(0x123)]=[],_0x1a102e['documentationLink']='',_0x1a102e[_0x994e28(0xf7)]='',_0x1a102e[_0x994e28(0x14a)]=[],_0x1a102e;}}static[a61_0x5cae29(0x129)](_0x5d41f2,_0x541342){const _0x4587e2=a61_0x5cae29;logger[_0x4587e2(0x130)](_0x5d41f2+':\x20'+_0x541342);}static['checkForErrorsOccuredInCLI'](_0x4ddb68){const _0x27610=a61_0x5cae29,_0x6801b1={};_0x6801b1[_0x27610(0x12a)]=function(_0x370fcc,_0x17a3a4){return _0x370fcc!=_0x17a3a4;},_0x6801b1['oosGj']=function(_0x2b4f44,_0x30b5be){return _0x2b4f44!=_0x30b5be;},_0x6801b1[_0x27610(0x10e)]=function(_0x128e14,_0x588606){return _0x128e14>_0x588606;};const _0x4b456f=_0x6801b1,_0xb15e8=[];if(_0x4b456f['UUHcO'](_0x4ddb68,null)&&_0x4b456f['oosGj'](_0x4ddb68[_0x27610(0x14a)],null)&&_0x4b456f[_0x27610(0x10e)](_0x4ddb68[_0x27610(0x14a)][_0x27610(0x125)],0x0))for(const _0x490b94 of _0x4ddb68[_0x27610(0x14a)]){_0x4b456f['UUHcO'](_0x490b94[_0x27610(0x124)],null)&&_0x4b456f['UUHcO'](_0x490b94[_0x27610(0xf8)],null)&&(_0xb15e8[_0x27610(0xff)](_0x490b94['errorCode']),this[_0x27610(0x129)](_0x490b94[_0x27610(0x124)],_0x490b94[_0x27610(0xf8)]));}return _0xb15e8;}static[a61_0x5cae29(0x116)](){return this['cachedErrorCodes'];}static[a61_0x5cae29(0x127)](_0x5dd283,_0x4b7882){const _0x4d60d0=a61_0x5cae29,_0x605a37={};_0x605a37['fYdgG']=function(_0x586e37,_0x4d4e90){return _0x586e37===_0x4d4e90;},_0x605a37[_0x4d60d0(0x132)]=_0x4d60d0(0x141);const _0x1d1902=_0x605a37;if(_0x1d1902['fYdgG'](typeof _0x4b7882,_0x1d1902[_0x4d60d0(0x132)]))try{logger[_0x4d60d0(0xfc)](_0x4d60d0(0x101)+_0x5dd283+'\x20'+JSON[_0x4d60d0(0x154)](_0x4b7882));}catch(_0x1aa4a0){logger[_0x4d60d0(0xfc)]('[ClientTroubleShootingService]\x20'+_0x5dd283+'\x20'+_0x4b7882);}else logger['error'](_0x4d60d0(0x101)+_0x5dd283+'\x20'+_0x4b7882);}static async[a61_0x5cae29(0x10f)](_0x3ab911){const _0x2ac9e4=a61_0x5cae29,_0x1109b3={};_0x1109b3[_0x2ac9e4(0x11a)]=_0x2ac9e4(0x146),_0x1109b3[_0x2ac9e4(0x155)]=function(_0x523f17,_0x1c74b7){return _0x523f17===_0x1c74b7;},_0x1109b3['inMHT']=_0x2ac9e4(0x10a),_0x1109b3[_0x2ac9e4(0x135)]='{SIGNAL}';const _0xbefd26=_0x1109b3,_0x1d21d6=await this['getErrorDetails'](_0xbefd26[_0x2ac9e4(0x11a)]);if(!_0x1d21d6||_0xbefd26[_0x2ac9e4(0x155)](Object[_0x2ac9e4(0x133)](_0x1d21d6)['length'],0x0)){this['logError'](_0xbefd26[_0x2ac9e4(0xf1)],_0x1d21d6);return;}this['logSituation'](_0x1d21d6[_0x2ac9e4(0x124)],_0x1d21d6[_0x2ac9e4(0xf8)]['replace'](_0xbefd26['fYIcm'],_0x3ab911));}static async[a61_0x5cae29(0x148)](){const _0x59eae8=a61_0x5cae29,_0x188d24={};_0x188d24[_0x59eae8(0x10b)]='Session\x20Linking\x20Issue',_0x188d24[_0x59eae8(0x149)]=function(_0x4faac4,_0x2dfde5){return _0x4faac4===_0x2dfde5;},_0x188d24[_0x59eae8(0x14e)]='Session\x20Linking\x20Issue\x20details\x20not\x20found';const _0x2019a7=_0x188d24,_0x439b80=await this[_0x59eae8(0x112)](_0x2019a7['FWyvg']);if(!_0x439b80||_0x2019a7[_0x59eae8(0x149)](Object[_0x59eae8(0x133)](_0x439b80)[_0x59eae8(0x125)],0x0)){this[_0x59eae8(0x127)](_0x2019a7[_0x59eae8(0x14e)],_0x439b80);return;}this['logSituation'](_0x439b80[_0x59eae8(0x124)],_0x439b80[_0x59eae8(0xf8)]);}static async[a61_0x5cae29(0x105)](){const _0x124e0c=a61_0x5cae29,_0x5b58bb={};_0x5b58bb['SVrrB']=_0x124e0c(0xf0),_0x5b58bb[_0x124e0c(0x150)]=function(_0x2739f2,_0x30245d){return _0x2739f2===_0x30245d;},_0x5b58bb['zvUrN']='Connectivity\x20Issue\x20details\x20not\x20found';const _0x3ec0be=_0x5b58bb,_0x4cf795=await this[_0x124e0c(0x112)](_0x3ec0be[_0x124e0c(0x14d)]);if(!_0x4cf795||_0x3ec0be['ChemQ'](Object[_0x124e0c(0x133)](_0x4cf795)[_0x124e0c(0x125)],0x0)){this[_0x124e0c(0x127)](_0x3ec0be[_0x124e0c(0x11f)],_0x4cf795);return;}this[_0x124e0c(0x129)](_0x4cf795['errorCode'],_0x4cf795[_0x124e0c(0xf8)]);}static async[a61_0x5cae29(0x12c)](){const _0x2c33c2=a61_0x5cae29,_0xf02a0a={};_0xf02a0a['TOpqE']=_0x2c33c2(0x14b),_0xf02a0a[_0x2c33c2(0x139)]=function(_0x2d19e1,_0x51e483){return _0x2d19e1===_0x51e483;},_0xf02a0a[_0x2c33c2(0xfb)]='SSL\x20Certificate\x20Issue\x20details\x20not\x20found';const _0x5cb9a8=_0xf02a0a,_0x52c686=await this['getErrorDetails'](_0x5cb9a8[_0x2c33c2(0x147)]);if(!_0x52c686||_0x5cb9a8[_0x2c33c2(0x139)](Object['keys'](_0x52c686)['length'],0x0)){this[_0x2c33c2(0x127)](_0x5cb9a8[_0x2c33c2(0xfb)],_0x52c686);return;}this[_0x2c33c2(0x129)](_0x52c686[_0x2c33c2(0x124)],_0x52c686['errorMessage']);}static[a61_0x5cae29(0xf2)](){const _0x411d55=a61_0x5cae29,_0x2518e6={};_0x2518e6[_0x411d55(0x120)]=_0x411d55(0x10c),_0x2518e6[_0x411d55(0xef)]=function(_0x3060c9,_0x2f322e){return _0x3060c9===_0x2f322e;},_0x2518e6[_0x411d55(0x13d)]=_0x411d55(0x13f);const _0x36cded=_0x2518e6,_0x3d0838=constants[_0x411d55(0xf3)][_0x36cded[_0x411d55(0x120)]];if(!_0x3d0838||_0x36cded['rrLjU'](Object['keys'](_0x3d0838)['length'],0x0)){this[_0x411d55(0x127)](_0x36cded[_0x411d55(0x13d)],_0x3d0838);return;}this['errorCodesOccurredWhenCLINotRunning'][_0x411d55(0x144)](_0x3d0838[0x0]),this['logSituation'](_0x3d0838[0x0],_0x3d0838[0x1]);}static async[a61_0x5cae29(0x140)](_0x1d0f18){const _0x2bc5fb=a61_0x5cae29,_0x594130={};_0x594130[_0x2bc5fb(0xf9)]=_0x2bc5fb(0x137),_0x594130[_0x2bc5fb(0x107)]=function(_0x1c6a92,_0xde5121){return _0x1c6a92===_0xde5121;},_0x594130[_0x2bc5fb(0xfe)]=_0x2bc5fb(0x113),_0x594130[_0x2bc5fb(0x13b)]=_0x2bc5fb(0x117);const _0x3f107a=_0x594130,_0xaca0c2=await this[_0x2bc5fb(0x112)](_0x3f107a[_0x2bc5fb(0xf9)]);if(!_0xaca0c2||_0x3f107a[_0x2bc5fb(0x107)](Object[_0x2bc5fb(0x133)](_0xaca0c2)[_0x2bc5fb(0x125)],0x0)){this[_0x2bc5fb(0x127)](_0x3f107a[_0x2bc5fb(0xfe)],_0xaca0c2);return;}const _0x3b22a7=_0xaca0c2[_0x2bc5fb(0xf8)]['replace'](_0x3f107a[_0x2bc5fb(0x13b)],_0x1d0f18);this[_0x2bc5fb(0x129)](_0xaca0c2[_0x2bc5fb(0x124)],_0x3b22a7);}static async[a61_0x5cae29(0x102)](){const _0x35f6d4=a61_0x5cae29,_0x422c8d={};_0x422c8d[_0x35f6d4(0x109)]=function(_0x497d1f,_0x19d85d){return _0x497d1f>_0x19d85d;},_0x422c8d['tSqmI']='{ERROR_CODES}',_0x422c8d[_0x35f6d4(0x115)]='{CLIENT_TROUBLESHOOTING_DOCUMENTATION}';const _0x2ffe37=_0x422c8d,_0x1ee181=await this[_0x35f6d4(0x11d)](),_0x4f279f=this[_0x35f6d4(0x119)](_0x1ee181),_0x4c16f6=Array[_0x35f6d4(0x118)](_0x1ee181[_0x35f6d4(0x123)])?_0x1ee181[_0x35f6d4(0x123)]:[],_0x5edf9c=_0x2ffe37[_0x35f6d4(0x109)](this['errorCodesOccurredWhenCLINotRunning'][_0x35f6d4(0x100)],0x0)?Array[_0x35f6d4(0x143)](this[_0x35f6d4(0x12b)]):[],_0x185d87=new Set([..._0x4c16f6,..._0x4f279f,..._0x5edf9c]),_0xa408eb=Array['from'](_0x185d87);if(_0x2ffe37[_0x35f6d4(0x109)](_0xa408eb[_0x35f6d4(0x125)],0x0)){const _0x223a59=_0x1ee181[_0x35f6d4(0xf7)][_0x35f6d4(0x128)](_0x2ffe37[_0x35f6d4(0xf5)],_0xa408eb[_0x35f6d4(0x11c)](',\x20'))[_0x35f6d4(0x128)](_0x2ffe37[_0x35f6d4(0x115)],_0x1ee181[_0x35f6d4(0x14c)]);logger['warn'](_0x223a59),this[_0x35f6d4(0x131)]=_0xa408eb;}}}module[a61_0x5cae29(0x11b)]=ClientTroubleShootingService;
|