browserstack-node-sdk 1.70.1 → 1.70.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/detox/a11ySetup.js +1 -1
- package/src/bin/detox/command.js +1 -1
- package/src/bin/detox/modifyDetoxConf.js +1 -1
- package/src/bin/detox/traEmitter.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
- package/src/bin/jasmine/command.js +1 -1
- package/src/bin/jasmine/test.setup.js +1 -1
- package/src/bin/jasmine/testRunMap.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadErrors.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/node-generic/client.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/reporterArgs.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/testcafe/a11y-runner.js +1 -1
- package/src/bin/testcafe/command.js +1 -1
- package/src/bin/testcafe/reporter/index.js +1 -1
- package/src/bin/testcafe/reporter/tcUtils.js +1 -1
- package/src/bin/testcafe/session-registry.js +1 -1
- package/src/bin/testcafe/stdout-interceptor.js +1 -1
- package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
- package/src/bin/testcafe/w3c-driver.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/mochaTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/nodeGenericTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/seleniumAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/runStateStore.js +1 -1
- package/src/bin/v2/sdkErrorHandler.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/caCertHelper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/driverInitErrorReporter.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/stackFrameUtils.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a71_0x70726c=a71_0x16f6;function a71_0x16f6(_0xdbd2b5,_0x250852){const _0x29d2ab=a71_0x29d2();return a71_0x16f6=function(_0x16f6dc,_0x5bc127){_0x16f6dc=_0x16f6dc-0x8b;let _0x476ea4=_0x29d2ab[_0x16f6dc];return _0x476ea4;},a71_0x16f6(_0xdbd2b5,_0x250852);}(function(_0x5ca124,_0x40383c){const _0x4d4531=a71_0x16f6,_0x43cf0d=_0x5ca124();while(!![]){try{const _0x42fe2a=parseInt(_0x4d4531(0xa2))/0x1*(parseInt(_0x4d4531(0x8d))/0x2)+-parseInt(_0x4d4531(0xa6))/0x3+parseInt(_0x4d4531(0xf2))/0x4*(parseInt(_0x4d4531(0xe7))/0x5)+-parseInt(_0x4d4531(0xd1))/0x6+parseInt(_0x4d4531(0xdd))/0x7*(parseInt(_0x4d4531(0xee))/0x8)+-parseInt(_0x4d4531(0xba))/0x9*(-parseInt(_0x4d4531(0xd6))/0xa)+-parseInt(_0x4d4531(0xe4))/0xb*(parseInt(_0x4d4531(0xd3))/0xc);if(_0x42fe2a===_0x40383c)break;else _0x43cf0d['push'](_0x43cf0d['shift']());}catch(_0x4f9820){_0x43cf0d['push'](_0x43cf0d['shift']());}}}(a71_0x29d2,0xa32c7));const path=require(a71_0x70726c(0xd5)),{getTestIdentifier,getFixtureIdentifier,synthesizeTestObject,getScreenshotPaths,formatError}=require(a71_0x70726c(0x9e)),logger=require(a71_0x70726c(0xf5))['winstonLogger'],BrowserstackCLI=require(a71_0x70726c(0xaa)),TestFrameworkState=require(a71_0x70726c(0xaf)),AutomationFrameworkState=require('../../v2/state/automationFrameworkState'),HookState=require(a71_0x70726c(0xb4)),TestInfo=require(a71_0x70726c(0xa5)),AutomationFramework=require(a71_0x70726c(0xf0)),TestCafeAutomationFramework=require('../../v2/framework/testcafeAutomationFramework'),sessionRegistry=require(a71_0x70726c(0xa0));function a71_0x29d2(){const _0x9b324c=['zmtwS','../../v2/framework/automationFramework','POST','2358284GJSMPZ','function','listEntries','../../../helpers/logger','properties','fixtureName','debug','errs','BEFORE_EACH','28TLgKrs','error','meta','vTkRX','push','startTime','fixtureStack','taTvh','[testcafe-reporter]\x20reportTestStart:\x20','testCount','platformIndex','endTime','passedCount','CREATE','instance','EkJmS','tjXNS','./tcUtils','currentTaskInfo','../session-registry','BEFORE_ALL','78410aKWaMG','ICkpv','unstable','../../v2/TestInfo','3265029xGunhJ','userAgents','erdWn','xAJkP','../../v2/browserstackCLI','\x20(errs=','driver','RAuMn','Fjtbg','../../v2/state/testFrameworkState','skipped','AphkQ','[testcafe-reporter]\x20reportFixtureStart:\x20','FCoUA','../../v2/state/hookState','quarantine',',\x20skipped=','testName','skippedCount','[testcafe-reporter]\x20QUIT/POST\x20trackEvent\x20failed\x20for\x20userAgent=','46107hbtwYd','getInstance','failedCount','pop','[testcafe-reporter]\x20swallowed\x20error\x20in\x20','vnwSm','hubUrl','xCWZL','ESTnN','test','info','filter','GzosT','fixturePath','uLPcd','map','removeInstance','\x20tests\x20across\x20','AFTER_EACH','\x20browsers','CShSO','taskStructure','[testcafe-reporter]\x20reportTestDone:\x20','176112GYRFwt','trackEvent','22029132qKDZWM','message','path','1630RhukSK','PRE','QUIT','getTestFramework','isRunning','fzwdG','setup','1813YofFiZ','name','[testcafe-reporter]\x20reportTaskStart:\x20','unknown','testRunInfo','length','PVuPF','11ISpQda','ZGdaB','INIT_TEST','5fcrrCn','isInteger','getAutomationFramework','sessionId','[testcafe-reporter]\x20reportTaskDone:\x20passed=','\x20totalDuration=','AFTER_ALL','33960LUulXO'];a71_0x29d2=function(){return _0x9b324c;};return a71_0x29d2();}module['exports']=function(_0x55e565){const _0x5b3156=a71_0x70726c,_0x6bd556={'xAJkP':function(_0x3b1fb1,..._0x8e2f3e){return _0x3b1fb1(..._0x8e2f3e);},'AphkQ':'handler','mWLnh':'testcafe','PVuPF':function(_0x46c34d,_0x308754){return _0x46c34d===_0x308754;},'taTvh':_0x5b3156(0xf3),'RAuMn':function(_0x2de6ea,_0x3c333d){return _0x2de6ea===_0x3c333d;},'EkJmS':function(_0x523e91,_0x12f0b6){return _0x523e91<_0x12f0b6;},'vTkRX':function(_0x1d9511,_0x33d032){return _0x1d9511||_0x33d032;},'CShSO':function(_0x29b311,_0x52e7d9){return _0x29b311-_0x52e7d9;},'xCWZL':_0x5b3156(0xe0),'zmtwS':function(_0x423179,_0x2d0e85){return _0x423179(_0x2d0e85);},'ICkpv':function(_0x342684,_0x2f37e1,_0xbae838){return _0x342684(_0x2f37e1,_0xbae838);},'uLPcd':function(_0x3f6760,_0x316a46){return _0x3f6760===_0x316a46;},'ESTnN':function(_0x60a189,_0x37783d){return _0x60a189-_0x37783d;},'FCoUA':function(_0x7fcc2a,_0x4eeb1d){return _0x7fcc2a(_0x4eeb1d);},'GzosT':function(_0x15f447,_0x4d8b7e){return _0x15f447===_0x4d8b7e;},'VjpHo':function(_0x39632b,_0x54289b){return _0x39632b(_0x54289b);},'Fjtbg':function(_0x194a41,_0x31e324){return _0x194a41===_0x31e324;},'vnwSm':function(_0x5ad67f,_0x454f8d){return _0x5ad67f+_0x454f8d;},'fzwdG':function(_0x5137e8,_0x8396c9){return _0x5137e8+_0x8396c9;},'erdWn':function(_0x1d2569,_0xa64367){return _0x1d2569(_0xa64367);},'ZGdaB':function(_0x48141d,_0x11d8e6){return _0x48141d(_0x11d8e6);},'tjXNS':function(_0x208d65,_0x3ba11d){return _0x208d65(_0x3ba11d);}},_0x4f85a3={'options':_0x6bd556[_0x5b3156(0x90)](_0x55e565,{}),'fixtureStack':[],'currentTaskInfo':null},_0x30c8c5=_0x186275=>async(..._0x31ea61)=>{const _0x4a3c91=_0x5b3156;try{return await _0x6bd556[_0x4a3c91(0xa9)](_0x186275,..._0x31ea61);}catch(_0x12cf04){logger['error'](_0x4a3c91(0xbe)+(_0x186275[_0x4a3c91(0xde)]||_0x6bd556[_0x4a3c91(0xb1)])+':\x20'+(_0x12cf04['stack']||_0x12cf04));}};return{'reportTaskStart':_0x6bd556[_0x5b3156(0xa9)](_0x30c8c5,async function _0x1bdd9b(_0x4f8074,_0x1c690f,_0x10ac69,_0x22505e,_0x89f756){const _0x6f8b06=_0x5b3156,_0x1df1e3={};_0x1df1e3[_0x6f8b06(0x92)]=_0x4f8074,_0x1df1e3['userAgents']=_0x1c690f,_0x1df1e3[_0x6f8b06(0x96)]=_0x10ac69,_0x1df1e3[_0x6f8b06(0xcf)]=_0x22505e,_0x1df1e3[_0x6f8b06(0xf6)]=_0x89f756,_0x4f85a3[_0x6f8b06(0x9f)]=_0x1df1e3,logger[_0x6f8b06(0xc4)](_0x6f8b06(0xdf)+_0x10ac69+_0x6f8b06(0xcb)+_0x1c690f['length']+_0x6f8b06(0xcd)),TestInfo[_0x6f8b06(0xdc)]&&TestInfo[_0x6f8b06(0xdc)](_0x6bd556['mWLnh']);if(!BrowserstackCLI[_0x6f8b06(0xbb)]()||!BrowserstackCLI[_0x6f8b06(0xbb)]()[_0x6f8b06(0xda)]())return;const _0x5145dc=BrowserstackCLI[_0x6f8b06(0xbb)](),_0x2f4e4d=_0x5145dc[_0x6f8b06(0xd9)]();if(_0x2f4e4d&&_0x6bd556[_0x6f8b06(0xe3)](typeof _0x2f4e4d[_0x6f8b06(0xd2)],_0x6bd556['taTvh'])){const _0x613bac={};_0x613bac[_0x6f8b06(0x92)]=_0x4f8074,_0x613bac[_0x6f8b06(0xa7)]=_0x1c690f,_0x613bac[_0x6f8b06(0x96)]=_0x10ac69,_0x613bac[_0x6f8b06(0xcf)]=_0x22505e,await _0x2f4e4d[_0x6f8b06(0xd2)](TestFrameworkState[_0x6f8b06(0xe6)],HookState[_0x6f8b06(0xd7)],_0x613bac);}const _0x1f72b9=_0x5145dc[_0x6f8b06(0xe9)](),_0x482d86=sessionRegistry[_0x6f8b06(0xf4)]();if(_0x1f72b9&&_0x6bd556[_0x6f8b06(0xad)](typeof _0x1f72b9[_0x6f8b06(0xd2)],_0x6bd556['taTvh']))for(let _0x1fe706=0x0;_0x6bd556[_0x6f8b06(0x9c)](_0x1fe706,(_0x1c690f||[])[_0x6f8b06(0xe2)]);_0x1fe706++){const _0x23a621=_0x1c690f[_0x1fe706],_0x3aedfe=_0x482d86[_0x1fe706]||{};await _0x1f72b9['trackEvent'](AutomationFrameworkState[_0x6f8b06(0x9a)],HookState[_0x6f8b06(0xf1)],{'userAgent':_0x23a621,'startTime':_0x4f8074,'driver':_0x3aedfe[_0x6f8b06(0xac)],'sessionId':_0x3aedfe[_0x6f8b06(0xea)],'platformIndex':Number[_0x6f8b06(0xe8)](_0x3aedfe[_0x6f8b06(0x97)])?_0x3aedfe[_0x6f8b06(0x97)]:_0x1fe706,'capabilities':_0x3aedfe['capabilities']||{},'hubUrl':_0x3aedfe[_0x6f8b06(0xc0)]||''});}}),'reportFixtureStart':_0x6bd556[_0x5b3156(0xa8)](_0x30c8c5,async function _0x4d0d80(_0xd29cb7,_0x24d8ec,_0x20a06f){const _0x57552e=_0x5b3156,_0x186d84={'name':_0xd29cb7,'path':_0x24d8ec,'meta':_0x6bd556['vTkRX'](_0x20a06f,{})};_0x4f85a3[_0x57552e(0x93)][_0x57552e(0x91)](_0x186d84),logger[_0x57552e(0xf8)](_0x57552e(0xb2)+_0xd29cb7+'\x20@\x20'+_0x24d8ec);if(BrowserstackCLI[_0x57552e(0xbb)]()&&BrowserstackCLI[_0x57552e(0xbb)]()[_0x57552e(0xda)]()){const _0x24d956=BrowserstackCLI[_0x57552e(0xbb)](),_0xa13e2c=_0x24d956[_0x57552e(0xd9)]();if(_0xa13e2c&&_0x6bd556[_0x57552e(0xe3)](typeof _0xa13e2c[_0x57552e(0xd2)],_0x6bd556[_0x57552e(0x94)])){const _0x3265dc=_0x4f85a3[_0x57552e(0x9f)]&&_0x4f85a3[_0x57552e(0x9f)][_0x57552e(0xa7)]||[],_0x3aa102={'fixture':_0x186d84,'fixtureIdentifier':_0x6bd556['xAJkP'](getFixtureIdentifier,_0x186d84),'userAgents':_0x3265dc};await _0xa13e2c[_0x57552e(0xd2)](TestFrameworkState[_0x57552e(0xa1)],HookState[_0x57552e(0xd7)],_0x3aa102),await _0xa13e2c[_0x57552e(0xd2)](TestFrameworkState[_0x57552e(0xa1)],HookState[_0x57552e(0xf1)],_0x3aa102);}}}),'reportTestStart':_0x6bd556['erdWn'](_0x30c8c5,async function _0x5b122f(_0x5d1477,_0x5d55a3,_0x421ffb){const _0x472001=_0x5b3156,_0x46ee47=_0x4f85a3[_0x472001(0x93)][_0x6bd556[_0x472001(0xce)](_0x4f85a3['fixtureStack']['length'],0x1)]||{'name':_0x6bd556[_0x472001(0xc1)],'path':_0x6bd556[_0x472001(0xc1)]},_0x58c8bc={};_0x58c8bc[_0x472001(0xf7)]=_0x46ee47[_0x472001(0xde)],_0x58c8bc[_0x472001(0xc7)]=_0x46ee47['path'],_0x58c8bc[_0x472001(0xb7)]=_0x5d1477,_0x58c8bc[_0x472001(0x8f)]=_0x5d55a3;const _0x3f2855=_0x6bd556[_0x472001(0xef)](synthesizeTestObject,_0x58c8bc);logger[_0x472001(0xf8)](_0x472001(0x95)+_0x6bd556[_0x472001(0xa3)](getTestIdentifier,_0x3f2855,0x0));const _0x38ccf7=_0x4f85a3['currentTaskInfo']&&_0x4f85a3[_0x472001(0x9f)][_0x472001(0xa7)]||[];if(BrowserstackCLI[_0x472001(0xbb)]()&&BrowserstackCLI[_0x472001(0xbb)]()[_0x472001(0xda)]()){const _0x1212a6=BrowserstackCLI[_0x472001(0xbb)](),_0x567533=_0x1212a6[_0x472001(0xd9)]();if(_0x567533&&_0x6bd556[_0x472001(0xc8)](typeof _0x567533[_0x472001(0xd2)],_0x6bd556[_0x472001(0x94)])){const _0xc88e8b={'fixture':_0x46ee47,'test':_0x3f2855,'fixtureIdentifier':_0x6bd556[_0x472001(0xef)](getFixtureIdentifier,_0x46ee47),'userAgents':_0x38ccf7};await _0x567533[_0x472001(0xd2)](TestFrameworkState[_0x472001(0x8c)],HookState[_0x472001(0xd7)],_0xc88e8b),await _0x567533[_0x472001(0xd2)](TestFrameworkState[_0x472001(0x8c)],HookState[_0x472001(0xf1)],_0xc88e8b);const _0x150120={};_0x150120['test']=_0x3f2855,_0x150120['testStartInfo']=_0x421ffb,_0x150120[_0x472001(0x8f)]=_0x5d55a3,_0x150120[_0x472001(0xa7)]=_0x38ccf7,await _0x567533[_0x472001(0xd2)](TestFrameworkState['TEST'],HookState[_0x472001(0xd7)],_0x150120);}}}),'reportTestDone':_0x6bd556[_0x5b3156(0xe5)](_0x30c8c5,async function _0x7c1d8c(_0x348461,_0x220fee,_0x1dc761){const _0xcc3ec8=_0x5b3156,_0x46cfd8=_0x4f85a3[_0xcc3ec8(0x93)][_0x6bd556[_0xcc3ec8(0xc2)](_0x4f85a3['fixtureStack']['length'],0x1)]||{'name':_0x6bd556[_0xcc3ec8(0xc1)],'path':_0x6bd556[_0xcc3ec8(0xc1)]},_0x83b40a={};_0x83b40a[_0xcc3ec8(0xf7)]=_0x46cfd8['name'],_0x83b40a['fixturePath']=_0x46cfd8[_0xcc3ec8(0xd5)],_0x83b40a[_0xcc3ec8(0xb7)]=_0x348461,_0x83b40a['meta']=_0x1dc761;const _0x421c20=_0x6bd556[_0xcc3ec8(0xa9)](synthesizeTestObject,_0x83b40a),_0x4ad286=Array['isArray'](_0x220fee&&_0x220fee[_0xcc3ec8(0x8b)])?_0x220fee['errs']['map'](formatError)[_0xcc3ec8(0xc5)](Boolean):[],_0x474371=_0x6bd556[_0xcc3ec8(0xb3)](getScreenshotPaths,_0x220fee)[_0xcc3ec8(0xc9)](_0x49aa3b=>({'screenshotPath':_0x49aa3b})),_0x421010={};_0x421010['durationMs']=_0x220fee&&_0x220fee['durationMs']||0x0,_0x421010[_0xcc3ec8(0xb0)]=!!(_0x220fee&&_0x220fee[_0xcc3ec8(0xb0)]),_0x421010[_0xcc3ec8(0x8b)]=_0x4ad286,_0x421010['screenshots']=_0x474371,_0x421010[_0xcc3ec8(0xa4)]=!!(_0x220fee&&_0x220fee['unstable']),_0x421010['quarantine']=_0x220fee&&_0x220fee[_0xcc3ec8(0xb5)];const _0x13ac10=_0x421010;logger[_0xcc3ec8(0xf8)](_0xcc3ec8(0xd0)+_0x6bd556[_0xcc3ec8(0xa3)](getTestIdentifier,_0x421c20,0x0)+_0xcc3ec8(0xab)+_0x4ad286[_0xcc3ec8(0xe2)]+_0xcc3ec8(0xb6)+_0x13ac10['skipped']+')');const _0x32d54d=_0x4f85a3[_0xcc3ec8(0x9f)]&&_0x4f85a3['currentTaskInfo'][_0xcc3ec8(0xa7)]||[];if(BrowserstackCLI[_0xcc3ec8(0xbb)]()&&BrowserstackCLI[_0xcc3ec8(0xbb)]()[_0xcc3ec8(0xda)]()){const _0x463e11=BrowserstackCLI[_0xcc3ec8(0xbb)](),_0x2e9703=_0x463e11[_0xcc3ec8(0xd9)]();if(_0x2e9703&&_0x6bd556[_0xcc3ec8(0xc6)](typeof _0x2e9703[_0xcc3ec8(0xd2)],_0x6bd556[_0xcc3ec8(0x94)])){const _0x147eab={};_0x147eab[_0xcc3ec8(0xc3)]=_0x421c20,_0x147eab[_0xcc3ec8(0xe1)]=_0x13ac10,_0x147eab['meta']=_0x1dc761,_0x147eab['userAgents']=_0x32d54d,await _0x2e9703[_0xcc3ec8(0xd2)](TestFrameworkState['TEST'],HookState[_0xcc3ec8(0xf1)],_0x147eab);const _0x3ea24a={'fixture':_0x46cfd8,'test':_0x421c20,'fixtureIdentifier':_0x6bd556[_0xcc3ec8(0xa9)](getFixtureIdentifier,_0x46cfd8),'userAgents':_0x32d54d};await _0x2e9703[_0xcc3ec8(0xd2)](TestFrameworkState['AFTER_EACH'],HookState[_0xcc3ec8(0xd7)],_0x3ea24a),await _0x2e9703[_0xcc3ec8(0xd2)](TestFrameworkState[_0xcc3ec8(0xcc)],HookState[_0xcc3ec8(0xf1)],_0x3ea24a);}}}),'reportTaskDone':_0x6bd556[_0x5b3156(0x9d)](_0x30c8c5,async function _0x178104(_0x295375,_0x3a85b6,_0x4c8192,_0x3712d8){const _0x56357c=_0x5b3156;while(_0x4f85a3[_0x56357c(0x93)][_0x56357c(0xe2)]){const _0x3dd318=_0x4f85a3[_0x56357c(0x93)][_0x56357c(0xbd)]();if(BrowserstackCLI[_0x56357c(0xbb)]()&&BrowserstackCLI[_0x56357c(0xbb)]()[_0x56357c(0xda)]()){const _0x604c40=BrowserstackCLI[_0x56357c(0xbb)](),_0x57b157=_0x604c40[_0x56357c(0xd9)]();if(_0x57b157&&_0x6bd556['uLPcd'](typeof _0x57b157[_0x56357c(0xd2)],_0x6bd556[_0x56357c(0x94)])){const _0x315c75=_0x4f85a3[_0x56357c(0x9f)]&&_0x4f85a3['currentTaskInfo']['userAgents']||[],_0x390dfa={'fixture':_0x3dd318,'fixtureIdentifier':_0x6bd556['VjpHo'](getFixtureIdentifier,_0x3dd318),'userAgents':_0x315c75};await _0x57b157['trackEvent'](TestFrameworkState['AFTER_ALL'],HookState[_0x56357c(0xd7)],_0x390dfa),await _0x57b157[_0x56357c(0xd2)](TestFrameworkState[_0x56357c(0xed)],HookState[_0x56357c(0xf1)],_0x390dfa);}}}if(BrowserstackCLI['getInstance']()&&BrowserstackCLI[_0x56357c(0xbb)]()['isRunning']()){const _0x4d87bb=BrowserstackCLI[_0x56357c(0xbb)](),_0x478d4d=_0x4d87bb[_0x56357c(0xe9)]();if(_0x478d4d&&_0x6bd556[_0x56357c(0xae)](typeof _0x478d4d[_0x56357c(0xd2)],_0x6bd556[_0x56357c(0x94)]))for(const {userAgent:_0x4392c4,platformIndex:_0x12d97d,instance:_0x25b4f8}of TestCafeAutomationFramework['iterAllInstances']()){try{const _0x9c456f={};_0x9c456f['userAgent']=_0x4392c4,_0x9c456f[_0x56357c(0x97)]=_0x12d97d,_0x9c456f[_0x56357c(0x98)]=_0x295375,_0x9c456f[_0x56357c(0x9b)]=_0x25b4f8,await _0x478d4d[_0x56357c(0xd2)](AutomationFrameworkState[_0x56357c(0xd8)],HookState[_0x56357c(0xf1)],_0x9c456f);}catch(_0x3c79e4){logger[_0x56357c(0x8e)](_0x56357c(0xb9)+_0x4392c4+'#'+_0x12d97d+':\x20'+_0x3c79e4[_0x56357c(0xd4)]);}TestCafeAutomationFramework[_0x56357c(0xca)](_0x4392c4,_0x12d97d);}}logger[_0x56357c(0xc4)](_0x56357c(0xeb)+_0x3a85b6+'\x20warnings='+(_0x4c8192&&_0x4c8192[_0x56357c(0xe2)])+_0x56357c(0xec)+(_0x3712d8&&_0x6bd556[_0x56357c(0xbf)](_0x6bd556[_0x56357c(0xdb)](_0x3712d8[_0x56357c(0xbc)],_0x3712d8[_0x56357c(0x99)]),_0x3712d8[_0x56357c(0xb8)])));})};};
|
|
1
|
+
'use strict';const a71_0x364016=a71_0x7d53;(function(_0x32a00f,_0x30752f){const _0x3de36e=a71_0x7d53,_0x15303a=_0x32a00f();while(!![]){try{const _0x192099=-parseInt(_0x3de36e(0x1f0))/0x1+-parseInt(_0x3de36e(0x199))/0x2*(parseInt(_0x3de36e(0x1c8))/0x3)+parseInt(_0x3de36e(0x1e5))/0x4*(-parseInt(_0x3de36e(0x1c6))/0x5)+parseInt(_0x3de36e(0x1b2))/0x6*(-parseInt(_0x3de36e(0x1a5))/0x7)+-parseInt(_0x3de36e(0x1c9))/0x8*(-parseInt(_0x3de36e(0x19f))/0x9)+-parseInt(_0x3de36e(0x184))/0xa+parseInt(_0x3de36e(0x1b9))/0xb*(parseInt(_0x3de36e(0x1ad))/0xc);if(_0x192099===_0x30752f)break;else _0x15303a['push'](_0x15303a['shift']());}catch(_0x4a4df0){_0x15303a['push'](_0x15303a['shift']());}}}(a71_0x2c42,0x2cbda));const path=require(a71_0x364016(0x1dd)),{getTestIdentifier,getFixtureIdentifier,synthesizeTestObject,getScreenshotPaths,formatError}=require(a71_0x364016(0x1e9)),logger=require('../../../helpers/logger')[a71_0x364016(0x1b1)],BrowserstackCLI=require(a71_0x364016(0x19e)),TestFrameworkState=require(a71_0x364016(0x1b7)),AutomationFrameworkState=require(a71_0x364016(0x18c)),HookState=require(a71_0x364016(0x1a2)),TestInfo=require('../../v2/TestInfo'),AutomationFramework=require('../../v2/framework/automationFramework'),TestCafeAutomationFramework=require(a71_0x364016(0x1cd)),sessionRegistry=require('../session-registry');function a71_0x7d53(_0x342147,_0x3458d4){const _0x2c4252=a71_0x2c42();return a71_0x7d53=function(_0x7d53b7,_0x3b1afc){_0x7d53b7=_0x7d53b7-0x184;let _0x17f1c7=_0x2c4252[_0x7d53b7];return _0x17f1c7;},a71_0x7d53(_0x342147,_0x3458d4);}module[a71_0x364016(0x18f)]=function(_0xa6361a){const _0xbc488c=a71_0x364016,_0x24d14b={'lQLIX':function(_0xb71433,..._0x293999){return _0xb71433(..._0x293999);},'HsxNQ':'handler','YaDxa':'testcafe','rhPng':function(_0x280b3e,_0x146dca){return _0x280b3e===_0x146dca;},'OxJMR':_0xbc488c(0x195),'oXbCC':function(_0x305448,_0x1af444){return _0x305448===_0x1af444;},'eCjeg':function(_0x109b0b,_0x26c4ea){return _0x109b0b<_0x26c4ea;},'fIAcU':function(_0x37177c,_0x18afd8){return _0x37177c||_0x18afd8;},'iGxQQ':function(_0x314816,_0x393d9d){return _0x314816(_0x393d9d);},'QMECK':function(_0x13e458,_0x387099){return _0x13e458-_0x387099;},'KxCoq':_0xbc488c(0x194),'AKZZq':function(_0x3f6741,_0x1d8d75){return _0x3f6741(_0x1d8d75);},'GVMkz':function(_0x50957a,_0x4de2f9,_0x767453){return _0x50957a(_0x4de2f9,_0x767453);},'iuFdu':function(_0x48c27d,_0x36d163){return _0x48c27d-_0x36d163;},'eTEfr':function(_0x5621f6,_0xc6959){return _0x5621f6(_0xc6959);},'yvzhP':function(_0x4894e8,_0x390de2){return _0x4894e8===_0x390de2;},'EoqUE':function(_0x2a2ff5,_0x21b654){return _0x2a2ff5(_0x21b654);},'FpRnq':function(_0x39de45,_0xafddcd){return _0x39de45===_0xafddcd;},'XtPaa':function(_0x2b78fd,_0x37175f){return _0x2b78fd(_0x37175f);},'FGmyh':function(_0x496e74,_0x1a57c3){return _0x496e74===_0x1a57c3;},'oeQFI':function(_0x50ff6b,_0xd1d082){return _0x50ff6b+_0xd1d082;},'grmiX':function(_0x1dc7da,_0x216d6f){return _0x1dc7da||_0x216d6f;},'PBAut':function(_0x8abedd,_0x1aa2fd){return _0x8abedd(_0x1aa2fd);},'jdHEa':function(_0x262cfd,_0x5dde8b){return _0x262cfd(_0x5dde8b);}},_0x50399d={'options':_0x24d14b[_0xbc488c(0x1e1)](_0xa6361a,{}),'fixtureStack':[],'currentTaskInfo':null},_0x4016b1=_0x5617e2=>async(..._0x27a236)=>{const _0x90b64b=_0xbc488c;try{return await _0x24d14b[_0x90b64b(0x1ed)](_0x5617e2,..._0x27a236);}catch(_0x1c6281){logger[_0x90b64b(0x1d8)](_0x90b64b(0x1d3)+(_0x5617e2[_0x90b64b(0x186)]||_0x24d14b[_0x90b64b(0x1a3)])+':\x20'+(_0x1c6281[_0x90b64b(0x1e0)]||_0x1c6281));}};return{'reportTaskStart':_0x24d14b[_0xbc488c(0x1eb)](_0x4016b1,async function _0x203335(_0x4d811e,_0x3c40ef,_0x30f294,_0x9ad7f4,_0x548a47){const _0x11ff17=_0xbc488c,_0x363dc6={};_0x363dc6[_0x11ff17(0x1b5)]=_0x4d811e,_0x363dc6[_0x11ff17(0x1df)]=_0x3c40ef,_0x363dc6[_0x11ff17(0x19a)]=_0x30f294,_0x363dc6[_0x11ff17(0x1f4)]=_0x9ad7f4,_0x363dc6[_0x11ff17(0x1d4)]=_0x548a47,_0x50399d[_0x11ff17(0x1c0)]=_0x363dc6,logger['info'](_0x11ff17(0x1e6)+_0x30f294+_0x11ff17(0x197)+_0x3c40ef['length']+_0x11ff17(0x1e7)),TestInfo[_0x11ff17(0x1a8)]&&TestInfo[_0x11ff17(0x1a8)](_0x24d14b[_0x11ff17(0x1bb)]);if(!BrowserstackCLI[_0x11ff17(0x19d)]()||!BrowserstackCLI[_0x11ff17(0x19d)]()['isRunning']())return;const _0x290ed2=BrowserstackCLI['getInstance'](),_0x254986=_0x290ed2[_0x11ff17(0x198)]();if(_0x254986&&_0x24d14b[_0x11ff17(0x1ea)](typeof _0x254986[_0x11ff17(0x1e4)],_0x24d14b['OxJMR'])){const _0x40b7c7={};_0x40b7c7[_0x11ff17(0x1b5)]=_0x4d811e,_0x40b7c7[_0x11ff17(0x1df)]=_0x3c40ef,_0x40b7c7[_0x11ff17(0x19a)]=_0x30f294,_0x40b7c7[_0x11ff17(0x1f4)]=_0x9ad7f4,await _0x254986[_0x11ff17(0x1e4)](TestFrameworkState[_0x11ff17(0x1ae)],HookState[_0x11ff17(0x1ca)],_0x40b7c7);}const _0x26e4ad=_0x290ed2['getAutomationFramework'](),_0x50ee6e=sessionRegistry[_0x11ff17(0x188)]();if(_0x26e4ad&&_0x24d14b['oXbCC'](typeof _0x26e4ad[_0x11ff17(0x1e4)],_0x24d14b['OxJMR']))for(let _0x118779=0x0;_0x24d14b[_0x11ff17(0x1bc)](_0x118779,(_0x3c40ef||[])[_0x11ff17(0x1e2)]);_0x118779++){const _0x300cf6=_0x3c40ef[_0x118779],_0xead559=_0x50ee6e[_0x118779]||{};await _0x26e4ad['trackEvent'](AutomationFrameworkState['CREATE'],HookState['POST'],{'userAgent':_0x300cf6,'startTime':_0x4d811e,'driver':_0xead559[_0x11ff17(0x196)],'sessionId':_0xead559[_0x11ff17(0x1c7)],'platformIndex':Number['isInteger'](_0xead559[_0x11ff17(0x1cb)])?_0xead559[_0x11ff17(0x1cb)]:_0x118779,'capabilities':_0xead559[_0x11ff17(0x1aa)]||{},'hubUrl':_0xead559[_0x11ff17(0x19c)]||''});}}),'reportFixtureStart':_0x24d14b[_0xbc488c(0x1d7)](_0x4016b1,async function _0x56c6ba(_0x19a51d,_0x28ec07,_0x1baa04){const _0x38b9b1=_0xbc488c,_0x115b57={'name':_0x19a51d,'path':_0x28ec07,'meta':_0x24d14b[_0x38b9b1(0x1ef)](_0x1baa04,{})};_0x50399d['fixtureStack'][_0x38b9b1(0x1d6)](_0x115b57),logger[_0x38b9b1(0x1d1)](_0x38b9b1(0x1dc)+_0x19a51d+'\x20@\x20'+_0x28ec07);if(BrowserstackCLI[_0x38b9b1(0x19d)]()&&BrowserstackCLI[_0x38b9b1(0x19d)]()[_0x38b9b1(0x1bd)]()){const _0x7916b1=BrowserstackCLI[_0x38b9b1(0x19d)](),_0x1fc930=_0x7916b1[_0x38b9b1(0x198)]();if(_0x1fc930&&_0x24d14b[_0x38b9b1(0x1ea)](typeof _0x1fc930[_0x38b9b1(0x1e4)],_0x24d14b[_0x38b9b1(0x1b4)])){const _0x55aeca=_0x50399d[_0x38b9b1(0x1c0)]&&_0x50399d[_0x38b9b1(0x1c0)][_0x38b9b1(0x1df)]||[],_0x4407d9={'fixture':_0x115b57,'fixtureIdentifier':_0x24d14b[_0x38b9b1(0x1a7)](getFixtureIdentifier,_0x115b57),'userAgents':_0x55aeca};await _0x1fc930[_0x38b9b1(0x1e4)](TestFrameworkState[_0x38b9b1(0x1cf)],HookState['PRE'],_0x4407d9),await _0x1fc930[_0x38b9b1(0x1e4)](TestFrameworkState[_0x38b9b1(0x1cf)],HookState['POST'],_0x4407d9);}}}),'reportTestStart':_0x24d14b['jdHEa'](_0x4016b1,async function _0x2bfa06(_0x4f3193,_0x14fd0b,_0x1381fe){const _0x591d0c=_0xbc488c,_0x2699e8=_0x50399d[_0x591d0c(0x1da)][_0x24d14b[_0x591d0c(0x1a9)](_0x50399d[_0x591d0c(0x1da)][_0x591d0c(0x1e2)],0x1)]||{'name':_0x24d14b[_0x591d0c(0x1c5)],'path':_0x24d14b['KxCoq']},_0x591300={};_0x591300[_0x591d0c(0x1c4)]=_0x2699e8['name'],_0x591300[_0x591d0c(0x1ac)]=_0x2699e8[_0x591d0c(0x1dd)],_0x591300['testName']=_0x4f3193,_0x591300[_0x591d0c(0x1be)]=_0x14fd0b;const _0x1934f3=_0x24d14b[_0x591d0c(0x1ba)](synthesizeTestObject,_0x591300);logger[_0x591d0c(0x1d1)](_0x591d0c(0x1de)+_0x24d14b[_0x591d0c(0x1c3)](getTestIdentifier,_0x1934f3,0x0));const _0x15e098=_0x50399d['currentTaskInfo']&&_0x50399d[_0x591d0c(0x1c0)][_0x591d0c(0x1df)]||[];if(BrowserstackCLI['getInstance']()&&BrowserstackCLI[_0x591d0c(0x19d)]()[_0x591d0c(0x1bd)]()){const _0x390ae8=BrowserstackCLI['getInstance'](),_0x574731=_0x390ae8[_0x591d0c(0x198)]();if(_0x574731&&_0x24d14b[_0x591d0c(0x18a)](typeof _0x574731[_0x591d0c(0x1e4)],_0x24d14b[_0x591d0c(0x1b4)])){const _0x4c6133={'fixture':_0x2699e8,'test':_0x1934f3,'fixtureIdentifier':_0x24d14b[_0x591d0c(0x1ba)](getFixtureIdentifier,_0x2699e8),'userAgents':_0x15e098};await _0x574731[_0x591d0c(0x1e4)](TestFrameworkState[_0x591d0c(0x1cc)],HookState[_0x591d0c(0x1ca)],_0x4c6133),await _0x574731[_0x591d0c(0x1e4)](TestFrameworkState['BEFORE_EACH'],HookState[_0x591d0c(0x1ab)],_0x4c6133);const _0x23e987={};_0x23e987[_0x591d0c(0x18d)]=_0x1934f3,_0x23e987[_0x591d0c(0x1b6)]=_0x1381fe,_0x23e987[_0x591d0c(0x1be)]=_0x14fd0b,_0x23e987[_0x591d0c(0x1df)]=_0x15e098,await _0x574731['trackEvent'](TestFrameworkState[_0x591d0c(0x1a4)],HookState[_0x591d0c(0x1ca)],_0x23e987);}}}),'reportTestDone':_0x24d14b[_0xbc488c(0x1ba)](_0x4016b1,async function _0x5b79dc(_0x4fcc39,_0x11ba9e,_0x598e66){const _0x4118b2=_0xbc488c,_0x2b638b=_0x50399d['fixtureStack'][_0x24d14b[_0x4118b2(0x1b8)](_0x50399d[_0x4118b2(0x1da)][_0x4118b2(0x1e2)],0x1)]||{'name':_0x24d14b[_0x4118b2(0x1c5)],'path':_0x24d14b[_0x4118b2(0x1c5)]},_0x4f6cbf={};_0x4f6cbf[_0x4118b2(0x1c4)]=_0x2b638b['name'],_0x4f6cbf[_0x4118b2(0x1ac)]=_0x2b638b[_0x4118b2(0x1dd)],_0x4f6cbf[_0x4118b2(0x1db)]=_0x4fcc39,_0x4f6cbf['meta']=_0x598e66;const _0x5a8456=_0x24d14b['eTEfr'](synthesizeTestObject,_0x4f6cbf),_0x4a74b5=Array[_0x4118b2(0x1af)](_0x11ba9e&&_0x11ba9e[_0x4118b2(0x193)])?_0x11ba9e[_0x4118b2(0x193)]['map'](formatError)[_0x4118b2(0x1ec)](Boolean):[],_0x4d0ccf=_0x24d14b[_0x4118b2(0x1ba)](getScreenshotPaths,_0x11ba9e)['map'](_0xe9d4be=>({'screenshotPath':_0xe9d4be})),_0x3beea7={};_0x3beea7[_0x4118b2(0x1f3)]=_0x11ba9e&&_0x11ba9e[_0x4118b2(0x1f3)]||0x0,_0x3beea7[_0x4118b2(0x1a0)]=!!(_0x11ba9e&&_0x11ba9e['skipped']),_0x3beea7[_0x4118b2(0x193)]=_0x4a74b5,_0x3beea7[_0x4118b2(0x1b0)]=_0x4d0ccf,_0x3beea7['unstable']=!!(_0x11ba9e&&_0x11ba9e[_0x4118b2(0x1d9)]),_0x3beea7[_0x4118b2(0x1f1)]=_0x11ba9e&&_0x11ba9e[_0x4118b2(0x1f1)];const _0x311937=_0x3beea7;logger[_0x4118b2(0x1d1)]('[testcafe-reporter]\x20reportTestDone:\x20'+_0x24d14b['GVMkz'](getTestIdentifier,_0x5a8456,0x0)+_0x4118b2(0x190)+_0x4a74b5[_0x4118b2(0x1e2)]+_0x4118b2(0x1b3)+_0x311937[_0x4118b2(0x1a0)]+')');const _0x3c4a53=_0x50399d[_0x4118b2(0x1c0)]&&_0x50399d[_0x4118b2(0x1c0)][_0x4118b2(0x1df)]||[];if(BrowserstackCLI[_0x4118b2(0x19d)]()&&BrowserstackCLI['getInstance']()[_0x4118b2(0x1bd)]()){const _0x162587=BrowserstackCLI[_0x4118b2(0x19d)](),_0x2a0106=_0x162587[_0x4118b2(0x198)]();if(_0x2a0106&&_0x24d14b[_0x4118b2(0x187)](typeof _0x2a0106['trackEvent'],_0x24d14b['OxJMR'])){const _0xdfbd6e={};_0xdfbd6e['test']=_0x5a8456,_0xdfbd6e['testRunInfo']=_0x311937,_0xdfbd6e[_0x4118b2(0x1be)]=_0x598e66,_0xdfbd6e['userAgents']=_0x3c4a53,await _0x2a0106['trackEvent'](TestFrameworkState[_0x4118b2(0x1a4)],HookState[_0x4118b2(0x1ab)],_0xdfbd6e);const _0x2040c6={'fixture':_0x2b638b,'test':_0x5a8456,'fixtureIdentifier':_0x24d14b[_0x4118b2(0x1ce)](getFixtureIdentifier,_0x2b638b),'userAgents':_0x3c4a53};await _0x2a0106[_0x4118b2(0x1e4)](TestFrameworkState[_0x4118b2(0x1c2)],HookState[_0x4118b2(0x1ca)],_0x2040c6),await _0x2a0106[_0x4118b2(0x1e4)](TestFrameworkState[_0x4118b2(0x1c2)],HookState[_0x4118b2(0x1ab)],_0x2040c6);}}}),'reportTaskDone':_0x24d14b['jdHEa'](_0x4016b1,async function _0x1c586e(_0x1a5b4d,_0x2daf6b,_0x535a61,_0x37e736){const _0x24a04a=_0xbc488c;while(_0x50399d[_0x24a04a(0x1da)]['length']){const _0x1705a0=_0x50399d[_0x24a04a(0x1da)][_0x24a04a(0x1e3)]();if(BrowserstackCLI[_0x24a04a(0x19d)]()&&BrowserstackCLI[_0x24a04a(0x19d)]()[_0x24a04a(0x1bd)]()){const _0x49771e=BrowserstackCLI[_0x24a04a(0x19d)](),_0x44abc4=_0x49771e[_0x24a04a(0x198)]();if(_0x44abc4&&_0x24d14b['FpRnq'](typeof _0x44abc4[_0x24a04a(0x1e4)],_0x24d14b[_0x24a04a(0x1b4)])){const _0x5b9e99=_0x50399d[_0x24a04a(0x1c0)]&&_0x50399d[_0x24a04a(0x1c0)][_0x24a04a(0x1df)]||[],_0x17e1b1={'fixture':_0x1705a0,'fixtureIdentifier':_0x24d14b[_0x24a04a(0x1d7)](getFixtureIdentifier,_0x1705a0),'userAgents':_0x5b9e99};await _0x44abc4['trackEvent'](TestFrameworkState[_0x24a04a(0x19b)],HookState['PRE'],_0x17e1b1),await _0x44abc4[_0x24a04a(0x1e4)](TestFrameworkState[_0x24a04a(0x19b)],HookState[_0x24a04a(0x1ab)],_0x17e1b1);}}}if(BrowserstackCLI[_0x24a04a(0x19d)]()&&BrowserstackCLI[_0x24a04a(0x19d)]()[_0x24a04a(0x1bd)]()){const _0x13c1a2=BrowserstackCLI[_0x24a04a(0x19d)](),_0x560f32=_0x13c1a2[_0x24a04a(0x192)]();if(_0x560f32&&_0x24d14b[_0x24a04a(0x189)](typeof _0x560f32[_0x24a04a(0x1e4)],_0x24d14b[_0x24a04a(0x1b4)]))for(const {userAgent:_0x59e46a,platformIndex:_0x3f253f,instance:_0x18b709}of TestCafeAutomationFramework[_0x24a04a(0x185)]()){try{const _0x24873c={};_0x24873c['userAgent']=_0x59e46a,_0x24873c[_0x24a04a(0x1cb)]=_0x3f253f,_0x24873c[_0x24a04a(0x1bf)]=_0x1a5b4d,_0x24873c[_0x24a04a(0x1c1)]=_0x18b709,await _0x560f32['trackEvent'](AutomationFrameworkState['QUIT'],HookState[_0x24a04a(0x1ab)],_0x24873c);}catch(_0x472b03){logger['error'](_0x24a04a(0x1f2)+_0x59e46a+'#'+_0x3f253f+':\x20'+_0x472b03[_0x24a04a(0x18e)]);}TestCafeAutomationFramework[_0x24a04a(0x18b)](_0x59e46a,_0x3f253f);}}logger[_0x24a04a(0x1d0)](_0x24a04a(0x1a1)+_0x2daf6b+_0x24a04a(0x191)+(_0x535a61&&_0x535a61[_0x24a04a(0x1e2)])+_0x24a04a(0x1a6)+(_0x37e736&&_0x24d14b[_0x24a04a(0x1d5)](_0x24d14b[_0x24a04a(0x1d5)](_0x37e736[_0x24a04a(0x1e8)],_0x37e736[_0x24a04a(0x1d2)]),_0x37e736[_0x24a04a(0x1ee)])));})};};function a71_0x2c42(){const _0x3a47e8=['205092dmtXZQ',',\x20skipped=','OxJMR','startTime','testStartInfo','../../v2/state/testFrameworkState','iuFdu','11ANLKpa','AKZZq','YaDxa','eCjeg','isRunning','meta','endTime','currentTaskInfo','instance','AFTER_EACH','GVMkz','fixtureName','KxCoq','1094270TtOqjM','sessionId','129SLMTmY','24vWslZn','PRE','platformIndex','BEFORE_EACH','../../v2/framework/testcafeAutomationFramework','EoqUE','BEFORE_ALL','info','debug','passedCount','[testcafe-reporter]\x20swallowed\x20error\x20in\x20','properties','oeQFI','push','XtPaa','error','unstable','fixtureStack','testName','[testcafe-reporter]\x20reportFixtureStart:\x20','path','[testcafe-reporter]\x20reportTestStart:\x20','userAgents','stack','grmiX','length','pop','trackEvent','4jrfMMp','[testcafe-reporter]\x20reportTaskStart:\x20','\x20browsers','failedCount','./tcUtils','rhPng','PBAut','filter','lQLIX','skippedCount','fIAcU','64283myASOl','quarantine','[testcafe-reporter]\x20QUIT/POST\x20trackEvent\x20failed\x20for\x20userAgent=','durationMs','taskStructure','1896850VoOHTa','iterAllInstances','name','yvzhP','listEntries','FGmyh','oXbCC','removeInstance','../../v2/state/automationFrameworkState','test','message','exports','\x20(errs=','\x20warnings=','getAutomationFramework','errs','unknown','function','driver','\x20tests\x20across\x20','getTestFramework','11524oVAPoL','testCount','AFTER_ALL','hubUrl','getInstance','../../v2/browserstackCLI','998577ilLAAE','skipped','[testcafe-reporter]\x20reportTaskDone:\x20passed=','../../v2/state/hookState','HsxNQ','TEST','56onnBHT','\x20totalDuration=','iGxQQ','setup','QMECK','capabilities','POST','fixturePath','10133316VdGmUE','INIT_TEST','isArray','screenshots','winstonLogger'];a71_0x2c42=function(){return _0x3a47e8;};return a71_0x2c42();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a72_0x2b2ab2=a72_0x5d93;(function(_0x42e85f,_0x3b1bb8){const _0x4e3c27=a72_0x5d93,_0x3518c0=_0x42e85f();while(!![]){try{const _0x4ca183=parseInt(_0x4e3c27(0x1c7))/0x1*(-parseInt(_0x4e3c27(0x1ad))/0x2)+-parseInt(_0x4e3c27(0x1b9))/0x3+-parseInt(_0x4e3c27(0x1c4))/0x4*(-parseInt(_0x4e3c27(0x1a7))/0x5)+-parseInt(_0x4e3c27(0x1bc))/0x6*(-parseInt(_0x4e3c27(0x1c8))/0x7)+-parseInt(_0x4e3c27(0x1a8))/0x8+-parseInt(_0x4e3c27(0x1c3))/0x9*(parseInt(_0x4e3c27(0x1a6))/0xa)+parseInt(_0x4e3c27(0x1b5))/0xb;if(_0x4ca183===_0x3b1bb8)break;else _0x3518c0['push'](_0x3518c0['shift']());}catch(_0x3970aa){_0x3518c0['push'](_0x3518c0['shift']());}}}(a72_0x1106,0x875d7));function getTestIdentifier(_0x40b2cd,_0xad6e4c){const _0x2a8d5e=a72_0x5d93,_0x3cfda2={};_0x3cfda2['hXRye']='unknown';const _0x6ed56b=_0x3cfda2,_0x13a257=_0x40b2cd&&_0x40b2cd[_0x2a8d5e(0x1ae)]&&_0x40b2cd[_0x2a8d5e(0x1ae)]['path']||_0x6ed56b[_0x2a8d5e(0x1b4)],_0x43748c=_0x40b2cd&&_0x40b2cd[_0x2a8d5e(0x1ae)]&&_0x40b2cd['fixture'][_0x2a8d5e(0x1ba)]||_0x6ed56b['hXRye'],_0x3f2073=_0x40b2cd&&_0x40b2cd['name']||_0x6ed56b[_0x2a8d5e(0x1b4)],_0x59d582=_0x13a257+'::'+_0x43748c+'::'+_0x3f2073;return _0xad6e4c?_0x59d582+_0x2a8d5e(0x1c5)+_0xad6e4c:_0x59d582;}function getFixtureIdentifier(_0x12b4d1){const _0x10dbfe=a72_0x5d93,_0x5cc40f={};_0x5cc40f[_0x10dbfe(0x1b8)]=_0x10dbfe(0x1b7);const _0x118c69=_0x5cc40f,_0x1ed7b4=_0x12b4d1&&_0x12b4d1['path']||_0x118c69[_0x10dbfe(0x1b8)],_0x1c41c8=_0x12b4d1&&_0x12b4d1['name']||_0x118c69[_0x10dbfe(0x1b8)];return _0x1ed7b4+'::'+_0x1c41c8;}function synthesizeTestObject({fixtureName:_0x495484,fixturePath:_0x340175,testName:_0x595a37,meta:_0x547e04}){const _0x20e4e8=a72_0x5d93,_0x530869={};_0x530869['NNAao']=function(_0x324d90,_0x492d82){return _0x324d90||_0x492d82;};const _0x1d403a=_0x530869,_0x20977f={};return _0x20977f[_0x20e4e8(0x1ba)]=_0x495484,_0x20977f[_0x20e4e8(0x1b3)]=_0x340175,{'name':_0x595a37,'meta':_0x1d403a[_0x20e4e8(0x1aa)](_0x547e04,{}),'fixture':_0x20977f};}function getScreenshotPaths(_0x2a8aff){const _0xac0c4d=a72_0x5d93;if(!_0x2a8aff||!Array[_0xac0c4d(0x1bb)](_0x2a8aff['screenshots']))return[];return _0x2a8aff[_0xac0c4d(0x1c2)][_0xac0c4d(0x1b2)](_0x451329=>_0x451329&&(_0x451329[_0xac0c4d(0x1b6)]||_0x451329['screenshotPathForPDF'])||null)['filter'](Boolean);}function formatError(_0x147ed4){const _0x3a45d8=a72_0x5d93,_0x5ab3a9={'QakBU':_0x3a45d8(0x1c6),'CJTHN':function(_0x37c1be,_0xb1cf9e){return _0x37c1be(_0xb1cf9e);},'zqKrB':function(_0x6f078e,_0x27d6d0){return _0x6f078e(_0x27d6d0);}};if(!_0x147ed4)return null;return{'type':_0x147ed4[_0x3a45d8(0x1ab)]||_0x5ab3a9[_0x3a45d8(0x1af)],'message':_0x147ed4[_0x3a45d8(0x1c1)]||_0x147ed4['errMsg']||_0x5ab3a9[_0x3a45d8(0x1a9)](String,_0x147ed4),'stack':_0x5ab3a9['zqKrB'](_tryRenderCallsite,_0x147ed4)};}function _tryRenderCallsite(_0x1f4930){const _0x5682ae=a72_0x5d93,_0x3fe3cc={};_0x3fe3cc[_0x5682ae(0x1be)]=function(_0x597cc1,_0x26a4b1){return _0x597cc1===_0x26a4b1;},_0x3fe3cc['FcDsA']=_0x5682ae(0x1b0);const _0x48addd=_0x3fe3cc;try{if(_0x1f4930&&_0x1f4930['callsite']&&_0x48addd[_0x5682ae(0x1be)](typeof _0x1f4930[_0x5682ae(0x1c0)][_0x5682ae(0x1bf)],_0x48addd[_0x5682ae(0x1bd)])){const _0x443b71={};return _0x443b71[_0x5682ae(0x1a5)]=()=>!![],_0x1f4930[_0x5682ae(0x1c0)][_0x5682ae(0x1bf)](_0x443b71);}}catch(_0x1629e3){}return'';}const a72_0x3078cc={};a72_0x3078cc['getTestIdentifier']=getTestIdentifier,a72_0x3078cc[a72_0x2b2ab2(0x1b1)]=getFixtureIdentifier,a72_0x3078cc['synthesizeTestObject']=synthesizeTestObject,a72_0x3078cc['getScreenshotPaths']=getScreenshotPaths,a72_0x3078cc['formatError']=formatError,module[a72_0x2b2ab2(0x1ac)]=a72_0x3078cc;function a72_0x5d93(_0x272784,_0x50fca4){const _0x110677=a72_0x1106();return a72_0x5d93=function(_0x5d9380,_0x2f873b){_0x5d9380=_0x5d9380-0x1a5;let _0x50e874=_0x110677[_0x5d9380];return _0x50e874;},a72_0x5d93(_0x272784,_0x50fca4);}function a72_0x1106(){const _0x3f6f60=['getFixtureIdentifier','map','path','hXRye','25130611jekKSI','screenshotPath','unknown','mqNXJ','572046HxrSqD','name','isArray','18HDXJpq','FcDsA','MJMhz','renderSync','callsite','formattedMessage','screenshots','81ueUtUO','12OOWeII','::retry','TestCafeError','4969VNaeaV','2188039wrwKNE','stackFilter','1150600PxggVr','507315JqMHqz','5302416ukGUMb','CJTHN','NNAao','code','exports','436nCIoqF','fixture','QakBU','function'];a72_0x1106=function(){return _0x3f6f60;};return a72_0x1106();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a73_0x2acb04=a73_0x5db1;(function(_0x596ace,_0x147abe){const _0x46aa79=a73_0x5db1,_0x33ccda=_0x596ace();while(!![]){try{const _0x237486=-parseInt(_0x46aa79(0xb6))/0x1+-parseInt(_0x46aa79(0xb3))/0x2+parseInt(_0x46aa79(0x98))/0x3*(-parseInt(_0x46aa79(0xb5))/0x4)+parseInt(_0x46aa79(0xa9))/0x5*(-parseInt(_0x46aa79(0xd1))/0x6)+parseInt(_0x46aa79(0xc8))/0x7*(-parseInt(_0x46aa79(0xb7))/0x8)+parseInt(_0x46aa79(0xc1))/0x9*(-parseInt(_0x46aa79(0xba))/0xa)+parseInt(_0x46aa79(0xad))/0xb;if(_0x237486===_0x147abe)break;else _0x33ccda['push'](_0x33ccda['shift']());}catch(_0x5ce9b5){_0x33ccda['push'](_0x33ccda['shift']());}}}(a73_0x3992,0x886be));function a73_0x3992(){const _0x5c9cd6=['UdTxg','BaKBs','pOTez','sessionId','BROWSERSTACK_ACCESS_KEY','trim','3708545sJEVJv','quit','\x20for\x20','uegoN','51302680XtSzKq','/automate/sessions/','failed','statusCode','[session-registry]\x20executeScript\x20setSessionStatus\x20failed\x20for\x20','driver','1433670iKIbbt','arguments','4TDVzOH','154742MTcsaD','41976xfKUuq','message','setSessionStatus','10OhlLwc','quitAll','reason','env','function','status','IyspL','7733493jPFeEN','info','browserstack_executor:\x20','mssrD','push','json','ypIoT','1281bXutyy','action','responseType','got','markStatus','throwHttpErrors','register','ewgyp','anMRp','6VQekDD','Vgjbu','[session-registry]\x20REST\x20mark\x20skipped\x20for\x20','PELBX','HzGlG','fXgUy','slice','listEntries','username','timeout','stringify','length','warn','winstonLogger','[session-registry]\x20REST\x20mark\x20failed\x20for\x20','request','BROWSERSTACK_USERNAME','../utils/constants','zayBz',':\x20no\x20BROWSERSTACK_USERNAME/ACCESS_KEY','2017002zVFUid','platformIndex','aJGfO','executeScript','password','[session-registry]\x20executeScript\x20setSessionStatus(','uzMSj',')\x20OK\x20for\x20','[session-registry]\x20driver.quit\x20failed\x20for\x20','body','.json'];a73_0x3992=function(){return _0x5c9cd6;};return a73_0x3992();}const got=require(a73_0x2acb04(0xcb)),logger=require('../../helpers/logger')[a73_0x2acb04(0xde)],{BROWSERSTACK_API_URL}=require(a73_0x2acb04(0xe2)),_entries=[];function register(_0x2169f4){const _0x3c737d=a73_0x2acb04,_0x30b1a7={};_0x30b1a7['Vgjbu']='failed',_0x30b1a7['uzMSj']='TestCafe\x20session\x20ended\x20without\x20an\x20explicit\x20pass/fail\x20marker';const _0x9c8479=_0x30b1a7,_0x2b0bfa={'status':_0x9c8479[_0x3c737d(0xd2)],'reason':_0x9c8479[_0x3c737d(0x9e)],..._0x2169f4};_entries[_0x3c737d(0xc5)](_0x2b0bfa);}function listEntries(){const _0x21f785=a73_0x2acb04;return _entries[_0x21f785(0xd7)]();}function markStatus(_0x4066a6,_0x52e6a9,_0x172862){const _0x4f98b0=a73_0x2acb04,_0x5ea925={};_0x5ea925['PELBX']=function(_0x17a49f,_0x4ac4a4){return _0x17a49f===_0x4ac4a4;};const _0x30b764=_0x5ea925;for(const _0x206bd6 of _entries){if(_0x30b764[_0x4f98b0(0xd4)](_0x206bd6[_0x4f98b0(0x99)],_0x4066a6))return _0x206bd6[_0x4f98b0(0xbf)]=_0x52e6a9,_0x172862&&(_0x206bd6['reason']=_0x172862),!![];}return![];}function a73_0x5db1(_0x108052,_0x520128){const _0x3992d4=a73_0x3992();return a73_0x5db1=function(_0x5db152,_0x4b3dcb){_0x5db152=_0x5db152-0x96;let _0x1596c0=_0x3992d4[_0x5db152];return _0x1596c0;},a73_0x5db1(_0x108052,_0x520128);}function _resolveCreds(_0x39444a){const _0x4a9a47=a73_0x2acb04,_0x199b09={'mssrD':function(_0x460fc9,_0x38192a){return _0x460fc9(_0x38192a);},'ewgyp':function(_0x2cb6fd,_0x5967dd){return _0x2cb6fd(_0x5967dd);},'BMBhR':function(_0x577cd8,_0x16efd5){return _0x577cd8(_0x16efd5);}};try{if(_0x39444a){const _0x24365e=_0x199b09[_0x4a9a47(0xc4)](String,_0x39444a)[_0x4a9a47(0xa8)](),_0x48f8a8=/^https?:\/\//i['test'](_0x24365e)?_0x24365e:'https://'+_0x24365e['replace'](/^\/+/,''),_0x28aef7=new URL(_0x48f8a8);if(_0x28aef7[_0x4a9a47(0xd9)]||_0x28aef7['password'])return{'username':_0x199b09[_0x4a9a47(0xcf)](decodeURIComponent,_0x28aef7[_0x4a9a47(0xd9)]||''),'password':_0x199b09['BMBhR'](decodeURIComponent,_0x28aef7[_0x4a9a47(0x9c)]||'')};}}catch(_0x31cb0f){}const _0x4aad84={};return _0x4aad84['username']=process[_0x4a9a47(0xbd)][_0x4a9a47(0xe1)]||'',_0x4aad84[_0x4a9a47(0x9c)]=process[_0x4a9a47(0xbd)][_0x4a9a47(0xa7)]||'',_0x4aad84;}async function _markViaRestApi(_0x424f4a){const _0x523ac2=a73_0x2acb04,_0xff725e={'UdTxg':function(_0x79eae1,_0x218218){return _0x79eae1(_0x218218);},'aJGfO':function(_0x182d60,_0x3146d0){return _0x182d60||_0x3146d0;},'HzGlG':_0x523ac2(0xaf),'IyspL':_0x523ac2(0xc6),'fXgUy':function(_0x258996,_0x4bb56c){return _0x258996>=_0x4bb56c;},'anMRp':function(_0x3184a7,_0x36fd8a){return _0x3184a7<_0x36fd8a;}},{username:_0x7207bd,password:_0x220dd7}=_0xff725e[_0x523ac2(0xa3)](_resolveCreds,_0x424f4a['hubUrl']);if(_0xff725e[_0x523ac2(0x9a)](!_0x7207bd,!_0x220dd7))return logger[_0x523ac2(0xdd)](_0x523ac2(0xd3)+_0x424f4a[_0x523ac2(0xa6)]+_0x523ac2(0x97)),![];const _0x589df7=BROWSERSTACK_API_URL+_0x523ac2(0xae)+_0x424f4a[_0x523ac2(0xa6)]+_0x523ac2(0xa2);try{const _0x46c50e={};_0x46c50e[_0x523ac2(0xbf)]=_0x424f4a[_0x523ac2(0xbf)]||_0xff725e[_0x523ac2(0xd5)],_0x46c50e[_0x523ac2(0xbc)]=_0x424f4a[_0x523ac2(0xbc)]||'';const _0x2c0a61={};_0x2c0a61[_0x523ac2(0xe0)]=0x7530;const _0x26b473={};_0x26b473[_0x523ac2(0xd9)]=_0x7207bd,_0x26b473[_0x523ac2(0x9c)]=_0x220dd7,_0x26b473[_0x523ac2(0xc6)]=_0x46c50e,_0x26b473[_0x523ac2(0xca)]=_0xff725e[_0x523ac2(0xc0)],_0x26b473[_0x523ac2(0xcd)]=![],_0x26b473[_0x523ac2(0xda)]=_0x2c0a61;const _0x5885df=await got['put'](_0x589df7,_0x26b473);if(_0xff725e[_0x523ac2(0xd6)](_0x5885df[_0x523ac2(0xb0)],0xc8)&&_0xff725e[_0x523ac2(0xd0)](_0x5885df[_0x523ac2(0xb0)],0x12c))return logger[_0x523ac2(0xc2)]('[session-registry]\x20REST\x20setSessionStatus('+_0x424f4a['status']+_0x523ac2(0x9f)+_0x424f4a[_0x523ac2(0xa6)]),!![];return logger[_0x523ac2(0xdd)]('[session-registry]\x20REST\x20mark\x20HTTP\x20'+_0x5885df[_0x523ac2(0xb0)]+_0x523ac2(0xab)+_0x424f4a['sessionId']+':\x20'+JSON['stringify'](_0x5885df[_0x523ac2(0xa1)])[_0x523ac2(0xd7)](0x0,0xc8)),![];}catch(_0x57eb37){return logger[_0x523ac2(0xdd)](_0x523ac2(0xdf)+_0x424f4a[_0x523ac2(0xa6)]+':\x20'+_0x57eb37[_0x523ac2(0xb8)]),![];}}async function quitAll(){const _0x1d3b65=a73_0x2acb04,_0x153ddf={'zayBz':function(_0x42da47,_0x318ef4){return _0x42da47===_0x318ef4;},'pOTez':_0x1d3b65(0xbe),'BaKBs':_0x1d3b65(0xb9),'uegoN':_0x1d3b65(0xaf),'pzINz':function(_0x2f4451,_0x4e95bb){return _0x2f4451(_0x4e95bb);},'ypIoT':function(_0xa2b405,_0x46db42){return _0xa2b405===_0x46db42;}};try{for(const _0x2ddbbc of _entries){let _0x2233ee=![];try{if(_0x2ddbbc[_0x1d3b65(0xb2)]&&_0x153ddf[_0x1d3b65(0x96)](typeof _0x2ddbbc[_0x1d3b65(0xb2)][_0x1d3b65(0x9b)],_0x153ddf[_0x1d3b65(0xa5)])){const _0x1e5976={};_0x1e5976[_0x1d3b65(0xc9)]=_0x153ddf[_0x1d3b65(0xa4)],_0x1e5976[_0x1d3b65(0xb4)]={},_0x1e5976[_0x1d3b65(0xb4)][_0x1d3b65(0xbf)]=_0x2ddbbc[_0x1d3b65(0xbf)]||_0x153ddf[_0x1d3b65(0xac)],_0x1e5976[_0x1d3b65(0xb4)][_0x1d3b65(0xbc)]=_0x2ddbbc[_0x1d3b65(0xbc)]||'';const _0x43084f=_0x1d3b65(0xc3)+JSON[_0x1d3b65(0xdb)](_0x1e5976);await _0x2ddbbc['driver'][_0x1d3b65(0x9b)](_0x43084f),_0x2233ee=!![],logger['info'](_0x1d3b65(0x9d)+_0x2ddbbc[_0x1d3b65(0xbf)]+_0x1d3b65(0x9f)+_0x2ddbbc[_0x1d3b65(0xa6)]);}}catch(_0x19678a){logger[_0x1d3b65(0xdd)](_0x1d3b65(0xb1)+_0x2ddbbc[_0x1d3b65(0xa6)]+'\x20(will\x20retry\x20via\x20REST):\x20'+_0x19678a[_0x1d3b65(0xb8)]);}!_0x2233ee&&await _0x153ddf['pzINz'](_markViaRestApi,_0x2ddbbc);try{_0x2ddbbc[_0x1d3b65(0xb2)]&&_0x153ddf[_0x1d3b65(0xc7)](typeof _0x2ddbbc[_0x1d3b65(0xb2)][_0x1d3b65(0xaa)],_0x153ddf[_0x1d3b65(0xa5)])&&await _0x2ddbbc['driver'][_0x1d3b65(0xaa)]();}catch(_0x32dfd3){logger[_0x1d3b65(0xdd)](_0x1d3b65(0xa0)+_0x2ddbbc[_0x1d3b65(0xa6)]+':\x20'+_0x32dfd3[_0x1d3b65(0xb8)]);}}}finally{_entries[_0x1d3b65(0xdc)]=0x0;}}const a73_0x4a47bd={};a73_0x4a47bd[a73_0x2acb04(0xce)]=register,a73_0x4a47bd[a73_0x2acb04(0xd8)]=listEntries,a73_0x4a47bd[a73_0x2acb04(0xcc)]=markStatus,a73_0x4a47bd[a73_0x2acb04(0xbb)]=quitAll,module['exports']=a73_0x4a47bd;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a74_0x47e446=a74_0x54fa;(function(_0x2b3a78,_0x4b1a23){const _0x26eb01=a74_0x54fa,_0xf7514f=_0x2b3a78();while(!![]){try{const _0x251b3f=-parseInt(_0x26eb01(0x1b8))/0x1+-parseInt(_0x26eb01(0x1e2))/0x2*(-parseInt(_0x26eb01(0x1a8))/0x3)+parseInt(_0x26eb01(0x1a2))/0x4*(-parseInt(_0x26eb01(0x1b9))/0x5)+-parseInt(_0x26eb01(0x1d8))/0x6+-parseInt(_0x26eb01(0x1b5))/0x7*(parseInt(_0x26eb01(0x1ae))/0x8)+parseInt(_0x26eb01(0x1bf))/0x9*(-parseInt(_0x26eb01(0x1d6))/0xa)+parseInt(_0x26eb01(0x1b3))/0xb;if(_0x251b3f===_0x4b1a23)break;else _0xf7514f['push'](_0xf7514f['shift']());}catch(_0x49b673){_0xf7514f['push'](_0xf7514f['shift']());}}}(a74_0x24bd,0xe68be));const {v4:uuidv4}=require('uuid'),logger=require('../../helpers/logger')[a74_0x47e446(0x185)];function a74_0x24bd(){const _0x1767ef=['../v2/grpcClient','bQbRS','WHxYb','clear','|Connecting\x20to\x20.*://','sMyWh','trim','kind','toISOString','TEST','split','testFrameworkVersion','52rPtbJw','test_run_uuid','arfAZ','yWWWL','uuid','aUokT','9MIwYrL','WTjAn','get','SuBuL','rmMBC','DBljw','15224nsnwTh','HHzDf','set','timestamp','|\x5cd+\x5cs+skipped','57856502gQGeCL','[✓✔✗✘×]\x5cs','6580YbLtnT','CbDaA','../v2/framework/testFramework','853347ylNHSi','249695EkHJnM','bind','length','delete','|\x5cd+\x5cs+passed','testFrameworkState','36441RAOtcj','yJeRP','IpzWb','size','ZfWtv','function','test','message','WKLUG','platformIndex','JlzBk','IukdW','toString','getTestFrameworks','isRunning','KIND_LOG','isBuffer','../v2/browserstackCLI','getTestFramework','getData','logCreatedEvent','string','2|5|3|4|0|1|6','2720TBBIYE','|\x5cd+\x5cs+failed','9835698YkWTId','testFrameworkName','getTrackedInstance','debug','stdout','0|4|2|1|3|6|5|7','YEwLJ','stderr','isArray','utf8','1144414SuBpwG','replace','|Running\x20tests\x20in','winstonLogger','|Waiting\x20for','dhOBy','Mnisf','write','[stdout-interceptor]\x20uninstalled','wyGZW','../v2/framework/constants/testFrameworkConstants','logs','lzlIX','getInstance','|Test\x20\x5cd+\x20of\x20\x5cd+','getTestFrameworksVersions','xpxCp','ASFEz','info','__currentPlatformUuids'];a74_0x24bd=function(){return _0x1767ef;};return a74_0x24bd();}let _origStdoutWrite=null,_origStderrWrite=null,_installed=![];const INTERNAL_LOG_RE=/^\d{4}-\d{2}-\d{2}[ T]\d{2}:\d{2}:\d{2}/,ANSI_RE=/\x1b\[[0-9;]*[a-zA-Z]/g,SPEC_REPORTER_RE=new RegExp('^(\x5cs*)'+'('+a74_0x47e446(0x1b4)+a74_0x47e446(0x1bd)+a74_0x47e446(0x1d7)+a74_0x47e446(0x1b2)+a74_0x47e446(0x184)+'|Hostname:'+a74_0x47e446(0x190)+a74_0x47e446(0x19a)+a74_0x47e446(0x186)+')');function a74_0x54fa(_0xa93d64,_0x101708){const _0x24bdf9=a74_0x24bd();return a74_0x54fa=function(_0x54faf6,_0xd5fb77){_0x54faf6=_0x54faf6-0x183;let _0x16e019=_0x24bdf9[_0x54faf6];return _0x16e019;},a74_0x54fa(_0xa93d64,_0x101708);}function _stripAnsi(_0x4c569b){const _0x1797a5=a74_0x47e446,_0x426351={};_0x426351['yWWWL']=function(_0x3cb59a,_0x4aca78){return _0x3cb59a!==_0x4aca78;},_0x426351['BsIkJ']='string';const _0x2dc23a=_0x426351;if(_0x2dc23a[_0x1797a5(0x1a5)](typeof _0x4c569b,_0x2dc23a['BsIkJ']))return _0x4c569b;return _0x4c569b[_0x1797a5(0x183)](ANSI_RE,'');}function _shouldForward(_0x2603f8){const _0x186a20=a74_0x47e446,_0xcf208a={'ilRaj':function(_0xcb3344,_0x12e07b){return _0xcb3344(_0x12e07b);}};if(!_0x2603f8||!_0x2603f8['trim']())return![];if(INTERNAL_LOG_RE[_0x186a20(0x1c5)](_0x2603f8))return![];const _0x281f5b=_0xcf208a['ilRaj'](_stripAnsi,_0x2603f8)[_0x186a20(0x19c)]();if(!_0x281f5b)return![];if(SPEC_REPORTER_RE[_0x186a20(0x1c5)](_0x281f5b))return![];return!![];}const DEDUP_WINDOW_MS=0xbb8,_recent=new Map();function _isDuplicate(_0x4d84fa){const _0x293a3c=a74_0x47e446,_0x241007={};_0x241007['JlzBk']=function(_0x58543d,_0x37c32d){return _0x58543d>_0x37c32d;},_0x241007[_0x293a3c(0x1c1)]=function(_0x174c00,_0x305a9a){return _0x174c00-_0x305a9a;},_0x241007[_0x293a3c(0x188)]=function(_0x52172a,_0x15868b){return _0x52172a!==_0x15868b;},_0x241007[_0x293a3c(0x18b)]=function(_0x3a8881,_0x18bc40){return _0x3a8881<_0x18bc40;},_0x241007[_0x293a3c(0x19b)]=function(_0x3e57f5,_0x5006f0){return _0x3e57f5-_0x5006f0;};const _0xea3989=_0x241007,_0x3b7087=Date['now']();if(_0xea3989[_0x293a3c(0x1c9)](_recent[_0x293a3c(0x1c2)],0xc8))for(const [_0x287dc2,_0x5b6611]of _recent){_0xea3989['JlzBk'](_0xea3989[_0x293a3c(0x1c1)](_0x3b7087,_0x5b6611),DEDUP_WINDOW_MS)&&_recent[_0x293a3c(0x1bc)](_0x287dc2);}const _0xbfa9d=_recent[_0x293a3c(0x1aa)](_0x4d84fa);if(_0xea3989[_0x293a3c(0x188)](_0xbfa9d,undefined)&&_0xea3989[_0x293a3c(0x18b)](_0xea3989[_0x293a3c(0x19b)](_0x3b7087,_0xbfa9d),DEDUP_WINDOW_MS))return!![];return _recent[_0x293a3c(0x1b0)](_0x4d84fa,_0x3b7087),![];}function _emitLog(_0x816c18){const _0x4b669d=a74_0x47e446,_0x1ecdf7={'YEwLJ':function(_0x4ba198,_0x152880){return _0x4ba198(_0x152880);},'ZJDPg':_0x4b669d(0x1d0),'lzlIX':_0x4b669d(0x196),'SNNwS':function(_0x4071c4,_0x6f26b1){return _0x4071c4(_0x6f26b1);},'rmMBC':_0x4b669d(0x1b7),'WHxYb':function(_0x5acb13,_0x3a4d74){return _0x5acb13(_0x3a4d74);},'MVxqX':_0x4b669d(0x18c),'arfAZ':_0x4b669d(0x195),'DBljw':function(_0x519ed9,_0x35cf88){return _0x519ed9===_0x35cf88;},'bQbRS':_0x4b669d(0x1c4),'IukdW':function(_0x3581f8,_0x5cf298){return _0x3581f8(_0x5cf298);},'ZfWtv':function(_0x3bf3a8,_0x45f6fc){return _0x3bf3a8<_0x45f6fc;},'HBjPo':_0x4b669d(0x194),'ASFEz':'testcafe','yJeRP':_0x4b669d(0x19f)};try{const _0x453557=_0x1ecdf7['YEwLJ'](require,_0x1ecdf7['ZJDPg']),_0x13756c=_0x1ecdf7[_0x4b669d(0x1de)](require,_0x1ecdf7[_0x4b669d(0x18e)]),_0x10e11a=_0x1ecdf7['SNNwS'](require,_0x1ecdf7[_0x4b669d(0x1ac)]),_0x4a557b=_0x1ecdf7[_0x4b669d(0x198)](require,_0x1ecdf7['MVxqX']),_0x382faf=_0x453557[_0x4b669d(0x18f)]&&_0x453557['getInstance']();if(!_0x382faf||!_0x382faf[_0x4b669d(0x1cd)]())return;const _0x12666a=_0x382faf[_0x4b669d(0x1d1)]&&_0x382faf[_0x4b669d(0x1d1)](),_0x2c9d86=_0x10e11a[_0x4b669d(0x1da)]&&_0x10e11a[_0x4b669d(0x1da)]();if(!_0x2c9d86)return;const _0x20e117=Array[_0x4b669d(0x1e0)](_0x2c9d86[_0x4b669d(0x1d2)](_0x1ecdf7[_0x4b669d(0x1a4)]))?_0x2c9d86[_0x4b669d(0x1d2)](_0x1ecdf7[_0x4b669d(0x1a4)]):[];if(_0x1ecdf7[_0x4b669d(0x1ad)](_0x20e117[_0x4b669d(0x1bb)],0x0))return;const _0x40995f=_0x12666a&&_0x1ecdf7[_0x4b669d(0x1ad)](typeof _0x12666a[_0x4b669d(0x191)],_0x1ecdf7[_0x4b669d(0x197)])?_0x12666a['getTestFrameworksVersions']():{},_0x5ce491=_0x12666a&&_0x1ecdf7[_0x4b669d(0x1ad)](typeof _0x12666a[_0x4b669d(0x1cc)],_0x1ecdf7['bQbRS'])?_0x12666a[_0x4b669d(0x1cc)]():[],_0x127aef=_0x5ce491&&_0x5ce491[0x0]&&_0x40995f&&_0x40995f[_0x5ce491[0x0]]||'',_0x3763a9=_0x1ecdf7[_0x4b669d(0x1de)](_stripAnsi,_0x816c18)[_0x4b669d(0x19c)]();if(_0x1ecdf7[_0x4b669d(0x1ca)](_isDuplicate,_0x3763a9))return;const _0x4051e8=new Date()[_0x4b669d(0x19e)]();for(let _0x2863ca=0x0;_0x1ecdf7[_0x4b669d(0x1c3)](_0x2863ca,_0x20e117[_0x4b669d(0x1bb)]);_0x2863ca++){const _0x1f3d77=_0x20e117[_0x2863ca];if(!_0x1f3d77)continue;const _0x6bbe93={};_0x6bbe93[_0x4b669d(0x1a6)]=_0x1f3d77,_0x6bbe93[_0x4b669d(0x1a3)]=_0x1f3d77,_0x6bbe93[_0x4b669d(0x1b1)]=_0x4051e8,_0x6bbe93[_0x4b669d(0x1c6)]=_0x3763a9,_0x6bbe93[_0x4b669d(0x19d)]=_0x4a557b[_0x4b669d(0x1ce)],_0x6bbe93['level']=_0x1ecdf7['HBjPo'];const _0x2fee01=_0x6bbe93,_0x1da143={};_0x1da143[_0x4b669d(0x1c8)]=_0x2863ca,_0x1da143[_0x4b669d(0x18d)]=[_0x2fee01],_0x1da143[_0x4b669d(0x1d9)]=_0x1ecdf7[_0x4b669d(0x193)],_0x1da143[_0x4b669d(0x1a1)]=_0x127aef,_0x1da143[_0x4b669d(0x1be)]=_0x1ecdf7[_0x4b669d(0x1c0)];const _0x24fde7=_0x1da143;_0x13756c['getInstance']()[_0x4b669d(0x1d3)](_0x24fde7)['catch'](()=>{});}}catch(_0x2dd976){}}function _wrap(_0xc1f12){const _0x392f41=a74_0x47e446,_0x3cf353={'aUokT':function(_0x36b111,_0x38dd2f,_0x4e6715,_0x50095b){return _0x36b111(_0x38dd2f,_0x4e6715,_0x50095b);},'RQkBQ':function(_0x5a6047,_0x21f701){return _0x5a6047===_0x21f701;},'CbDaA':_0x392f41(0x1d4),'dhOBy':_0x392f41(0x1e1),'KcuAY':function(_0x2a7659,_0x4dde62){return _0x2a7659(_0x4dde62);},'SuBuL':function(_0x28f096,_0x1efb9a){return _0x28f096(_0x1efb9a);}};return function(_0x107c19,_0x119672,_0x534439){const _0x49ceac=_0x392f41,_0x25f3b1=_0x3cf353[_0x49ceac(0x1a7)](_0xc1f12,_0x107c19,_0x119672,_0x534439);try{const _0x18c654=_0x3cf353['RQkBQ'](typeof _0x107c19,_0x3cf353[_0x49ceac(0x1b6)])?_0x107c19:Buffer[_0x49ceac(0x1cf)](_0x107c19)?_0x107c19[_0x49ceac(0x1cb)](_0x3cf353[_0x49ceac(0x187)]):_0x3cf353['KcuAY'](String,_0x107c19),_0x411baa=_0x18c654[_0x49ceac(0x1a0)](/\r?\n/);for(const _0x6c8acc of _0x411baa){_0x3cf353['KcuAY'](_shouldForward,_0x6c8acc)&&_0x3cf353[_0x49ceac(0x1ab)](_emitLog,_0x6c8acc);}}catch(_0x54a88e){}return _0x25f3b1;};}exports['install']=()=>{const _0x106343=a74_0x47e446,_0x585ca0={'AGoex':_0x106343(0x1d5),'WTjAn':function(_0x15565e,_0x257294){return _0x15565e(_0x257294);},'WKLUG':'[stdout-interceptor]\x20installed'},_0x2f1238=_0x585ca0['AGoex']['split']('|');let _0x2093f1=0x0;while(!![]){switch(_0x2f1238[_0x2093f1++]){case'0':process['stderr'][_0x106343(0x189)]=_0x585ca0[_0x106343(0x1a9)](_wrap,_origStderrWrite);continue;case'1':_installed=!![];continue;case'2':if(_installed)return;continue;case'3':_origStderrWrite=process[_0x106343(0x1df)]['write'][_0x106343(0x1ba)](process['stderr']);continue;case'4':process[_0x106343(0x1dc)]['write']=_0x585ca0['WTjAn'](_wrap,_origStdoutWrite);continue;case'5':_origStdoutWrite=process[_0x106343(0x1dc)][_0x106343(0x189)]['bind'](process[_0x106343(0x1dc)]);continue;case'6':logger[_0x106343(0x1db)](_0x585ca0[_0x106343(0x1c7)]);continue;}break;}},exports['uninstall']=()=>{const _0x590a3f=a74_0x47e446,_0x354255={};_0x354255[_0x590a3f(0x192)]=_0x590a3f(0x1dd),_0x354255[_0x590a3f(0x1af)]=_0x590a3f(0x18a);const _0x508fe3=_0x354255,_0x34fb65=_0x508fe3[_0x590a3f(0x192)][_0x590a3f(0x1a0)]('|');let _0x7243d2=0x0;while(!![]){switch(_0x34fb65[_0x7243d2++]){case'0':if(!_installed)return;continue;case'1':_origStdoutWrite=null;continue;case'2':_origStderrWrite&&(process[_0x590a3f(0x1df)][_0x590a3f(0x189)]=_origStderrWrite);continue;case'3':_origStderrWrite=null;continue;case'4':_origStdoutWrite&&(process[_0x590a3f(0x1dc)][_0x590a3f(0x189)]=_origStdoutWrite);continue;case'5':_recent[_0x590a3f(0x199)]();continue;case'6':_installed=![];continue;case'7':logger['debug'](_0x508fe3['HHzDf']);continue;}break;}};
|
|
1
|
+
'use strict';const a74_0x136514=a74_0x2a63;(function(_0x16dacc,_0x2823be){const _0x2e5d02=a74_0x2a63,_0x5161a5=_0x16dacc();while(!![]){try{const _0x2da133=-parseInt(_0x2e5d02(0x1b9))/0x1*(parseInt(_0x2e5d02(0x1e7))/0x2)+-parseInt(_0x2e5d02(0x201))/0x3*(-parseInt(_0x2e5d02(0x1c6))/0x4)+-parseInt(_0x2e5d02(0x1be))/0x5*(parseInt(_0x2e5d02(0x1ed))/0x6)+-parseInt(_0x2e5d02(0x1c5))/0x7*(parseInt(_0x2e5d02(0x1a0))/0x8)+parseInt(_0x2e5d02(0x1f8))/0x9*(-parseInt(_0x2e5d02(0x19e))/0xa)+parseInt(_0x2e5d02(0x1ea))/0xb*(-parseInt(_0x2e5d02(0x1cc))/0xc)+parseInt(_0x2e5d02(0x1e9))/0xd;if(_0x2da133===_0x2823be)break;else _0x5161a5['push'](_0x5161a5['shift']());}catch(_0xb8c43d){_0x5161a5['push'](_0x5161a5['shift']());}}}(a74_0x514b,0x290f2));const {v4:uuidv4}=require(a74_0x136514(0x1d5)),logger=require('../../helpers/logger')[a74_0x136514(0x1ae)];let _origStdoutWrite=null,_origStderrWrite=null,_installed=![];const INTERNAL_LOG_RE=/^\d{4}-\d{2}-\d{2}[ T]\d{2}:\d{2}:\d{2}/,ANSI_RE=/\x1b\[[0-9;]*[a-zA-Z]/g,SPEC_REPORTER_RE=new RegExp(a74_0x136514(0x1dd)+'('+'[✓✔✗✘×]\x5cs'+a74_0x136514(0x1ba)+a74_0x136514(0x1d4)+a74_0x136514(0x1a1)+a74_0x136514(0x1b6)+'|Hostname:'+a74_0x136514(0x1f2)+'|Connecting\x20to\x20.*://'+a74_0x136514(0x1ff)+')');function _stripAnsi(_0x55a3b7){const _0x3ff938=a74_0x136514,_0x109fc2={};_0x109fc2[_0x3ff938(0x1d9)]=function(_0x348eec,_0x141e42){return _0x348eec!==_0x141e42;},_0x109fc2['fjQve']=_0x3ff938(0x1d8);const _0x2cb70c=_0x109fc2;if(_0x2cb70c['eoLob'](typeof _0x55a3b7,_0x2cb70c[_0x3ff938(0x1f1)]))return _0x55a3b7;return _0x55a3b7[_0x3ff938(0x1f7)](ANSI_RE,'');}function _shouldForward(_0x4d5e2c){const _0x28d220=a74_0x136514,_0x4c0ba6={'hYuqo':function(_0x138a76,_0x3072bf){return _0x138a76(_0x3072bf);}};if(!_0x4d5e2c||!_0x4d5e2c[_0x28d220(0x200)]())return![];if(INTERNAL_LOG_RE['test'](_0x4d5e2c))return![];const _0xf561b8=_0x4c0ba6[_0x28d220(0x1c9)](_stripAnsi,_0x4d5e2c)[_0x28d220(0x200)]();if(!_0xf561b8)return![];if(SPEC_REPORTER_RE[_0x28d220(0x19f)](_0xf561b8))return![];return!![];}const DEDUP_WINDOW_MS=0xbb8,_recent=new Map();function a74_0x2a63(_0x1750da,_0x294526){const _0x514b3a=a74_0x514b();return a74_0x2a63=function(_0x2a63db,_0x30e066){_0x2a63db=_0x2a63db-0x19a;let _0x569815=_0x514b3a[_0x2a63db];return _0x569815;},a74_0x2a63(_0x1750da,_0x294526);}function _isDuplicate(_0x375b35){const _0x404393=a74_0x136514,_0x128502={};_0x128502[_0x404393(0x1a3)]=function(_0x67aa19,_0x4a8228){return _0x67aa19>_0x4a8228;},_0x128502[_0x404393(0x1df)]=function(_0x2a7fc9,_0x1168c4){return _0x2a7fc9-_0x1168c4;},_0x128502[_0x404393(0x1ab)]=function(_0x3eabf8,_0x25527f){return _0x3eabf8!==_0x25527f;},_0x128502[_0x404393(0x1f9)]=function(_0x2cda19,_0x1476cf){return _0x2cda19<_0x1476cf;};const _0x391277=_0x128502,_0x20a6dd=Date[_0x404393(0x1c0)]();if(_0x391277[_0x404393(0x1a3)](_recent[_0x404393(0x1bc)],0xc8))for(const [_0x544b69,_0x4230dd]of _recent){_0x391277[_0x404393(0x1a3)](_0x391277[_0x404393(0x1df)](_0x20a6dd,_0x4230dd),DEDUP_WINDOW_MS)&&_recent[_0x404393(0x1c2)](_0x544b69);}const _0x4ed7f2=_recent[_0x404393(0x202)](_0x375b35);if(_0x391277[_0x404393(0x1ab)](_0x4ed7f2,undefined)&&_0x391277['uMcUU'](_0x391277['Xkzyt'](_0x20a6dd,_0x4ed7f2),DEDUP_WINDOW_MS))return!![];return _recent[_0x404393(0x1fc)](_0x375b35,_0x20a6dd),![];}function _emitLog(_0x51f5b0){const _0x2c31dd=a74_0x136514,_0x58b729={'JSbeV':function(_0x5d2dd3,_0x3a422b){return _0x5d2dd3(_0x3a422b);},'DwSjP':_0x2c31dd(0x1eb),'PoBjq':function(_0x7ba032,_0xc7c779){return _0x7ba032(_0xc7c779);},'eZPCW':_0x2c31dd(0x1b1),'CnMoP':function(_0x303ece,_0x1cdaa1){return _0x303ece(_0x1cdaa1);},'sBykl':_0x2c31dd(0x1e3),'HLdUj':function(_0x2fce0b,_0x543de2){return _0x2fce0b(_0x543de2);},'DwxJm':_0x2c31dd(0x1e2),'rXpKB':_0x2c31dd(0x1de),'sOuEV':function(_0x272c81,_0x5ecf14){return _0x272c81===_0x5ecf14;},'xtWxh':function(_0x254fe1,_0x4be65b){return _0x254fe1===_0x4be65b;},'KlPcV':_0x2c31dd(0x1d1),'PHnqw':function(_0x958198,_0x227b71){return _0x958198===_0x227b71;},'bZcyq':function(_0x2e8ce1,_0x45e23a){return _0x2e8ce1(_0x45e23a);},'zmtuN':function(_0x15f05a,_0x1b2a5b){return _0x15f05a<_0x1b2a5b;},'tqSbT':_0x2c31dd(0x1f6),'AYVPt':_0x2c31dd(0x1fa),'TrQFm':_0x2c31dd(0x1e0)};try{const _0x39cf5c=_0x58b729[_0x2c31dd(0x1ce)](require,_0x58b729[_0x2c31dd(0x19b)]),_0x3ee908=_0x58b729[_0x2c31dd(0x1ec)](require,_0x58b729[_0x2c31dd(0x1ca)]),_0x2bb209=_0x58b729[_0x2c31dd(0x1a8)](require,_0x58b729[_0x2c31dd(0x1bf)]),_0x42cff8=_0x58b729[_0x2c31dd(0x1d0)](require,_0x58b729[_0x2c31dd(0x1e4)]),_0x59c0e4=_0x39cf5c[_0x2c31dd(0x1cf)]&&_0x39cf5c[_0x2c31dd(0x1cf)]();if(!_0x59c0e4||!_0x59c0e4[_0x2c31dd(0x1c4)]())return;const _0x3eb66d=_0x59c0e4[_0x2c31dd(0x1c3)]&&_0x59c0e4[_0x2c31dd(0x1c3)](),_0x21a1a5=_0x2bb209[_0x2c31dd(0x1b0)]&&_0x2bb209[_0x2c31dd(0x1b0)]();if(!_0x21a1a5)return;const _0x3354b5=Array[_0x2c31dd(0x1b7)](_0x21a1a5['getData'](_0x58b729[_0x2c31dd(0x1cb)]))?_0x21a1a5[_0x2c31dd(0x1a5)](_0x58b729[_0x2c31dd(0x1cb)]):[];if(_0x58b729['sOuEV'](_0x3354b5[_0x2c31dd(0x1dc)],0x0))return;const _0x51af02=_0x3eb66d&&_0x58b729[_0x2c31dd(0x1b8)](typeof _0x3eb66d[_0x2c31dd(0x1b4)],_0x58b729[_0x2c31dd(0x1f3)])?_0x3eb66d[_0x2c31dd(0x1b4)]():{},_0x3a0ad9=_0x3eb66d&&_0x58b729[_0x2c31dd(0x19d)](typeof _0x3eb66d[_0x2c31dd(0x1b2)],_0x58b729[_0x2c31dd(0x1f3)])?_0x3eb66d[_0x2c31dd(0x1b2)]():[],_0x4a2918=_0x3a0ad9&&_0x3a0ad9[0x0]&&_0x51af02&&_0x51af02[_0x3a0ad9[0x0]]||'',_0x73d689=_0x58b729[_0x2c31dd(0x1ec)](_stripAnsi,_0x51f5b0)['trim']();if(_0x58b729['bZcyq'](_isDuplicate,_0x73d689))return;const _0x586582=new Date()[_0x2c31dd(0x1db)]();for(let _0x1ddefb=0x0;_0x58b729['zmtuN'](_0x1ddefb,_0x3354b5[_0x2c31dd(0x1dc)]);_0x1ddefb++){const _0x48d4a4=_0x3354b5[_0x1ddefb];if(!_0x48d4a4)continue;const _0x112d8b={};_0x112d8b[_0x2c31dd(0x1d5)]=_0x48d4a4,_0x112d8b[_0x2c31dd(0x1b5)]=_0x48d4a4,_0x112d8b[_0x2c31dd(0x1a4)]=_0x586582,_0x112d8b[_0x2c31dd(0x1e5)]=_0x73d689,_0x112d8b[_0x2c31dd(0x1bd)]=_0x42cff8[_0x2c31dd(0x1ef)],_0x112d8b[_0x2c31dd(0x19a)]=_0x58b729[_0x2c31dd(0x1d3)];const _0x3a5a08=_0x112d8b,_0x5eac3d={};_0x5eac3d[_0x2c31dd(0x1c1)]=_0x1ddefb,_0x5eac3d[_0x2c31dd(0x1a2)]=[_0x3a5a08],_0x5eac3d[_0x2c31dd(0x1cd)]=_0x58b729['AYVPt'],_0x5eac3d['testFrameworkVersion']=_0x4a2918,_0x5eac3d[_0x2c31dd(0x1f5)]=_0x58b729[_0x2c31dd(0x1c8)];const _0x26f88d=_0x5eac3d;_0x3ee908['getInstance']()[_0x2c31dd(0x1fb)](_0x26f88d)[_0x2c31dd(0x1c7)](()=>{});}}catch(_0x357142){}}function a74_0x514b(){const _0x43c965=['639rUNNjv','uMcUU','testcafe','logCreatedEvent','set','isBuffer','sqtVX','|Waiting\x20for','trim','204519gKxsjf','get','utf8','level','DwSjP','WBWQY','PHnqw','15430hFowFX','test','8wReWdl','|\x5cd+\x5cs+skipped','logs','OXulp','timestamp','getData','[stdout-interceptor]\x20uninstalled','3|0|2|4|5|6|1','CnMoP','write','ymvuf','HqwAg','dJGBZ','KBDDy','winstonLogger','stdout','getTrackedInstance','../v2/grpcClient','getTestFrameworks','bind','getTestFrameworksVersions','test_run_uuid','|Running\x20tests\x20in','isArray','xtWxh','2822FONYEI','|\x5cd+\x5cs+passed','FAgOT','size','kind','5XHGeih','sBykl','now','platformIndex','delete','getTestFramework','isRunning','995204IpSoLO','12XsQmuv','catch','TrQFm','hYuqo','eZPCW','rXpKB','237972APHTtm','testFrameworkName','JSbeV','getInstance','HLdUj','function','oRTNm','tqSbT','|\x5cd+\x5cs+failed','uuid','split','[stdout-interceptor]\x20installed','string','eoLob','clear','toISOString','length','^(\x5cs*)','__currentPlatformUuids','Xkzyt','TEST','toString','../v2/framework/constants/testFrameworkConstants','../v2/framework/testFramework','DwxJm','message','install','98yJlRmM','4|1|2|7|0|5|3|6','9601423rciztY','99JFaOfe','../v2/browserstackCLI','PoBjq','1238580ufsbKM','debug','KIND_LOG','PJefg','fjQve','|Test\x20\x5cd+\x20of\x20\x5cd+','KlPcV','stderr','testFrameworkState','info','replace'];a74_0x514b=function(){return _0x43c965;};return a74_0x514b();}function _wrap(_0x2a5fbe){const _0x1171fd=a74_0x136514,_0x4277f0={'PXRrZ':function(_0x1378da,_0x5b5916,_0x23d89b,_0x757d2d){return _0x1378da(_0x5b5916,_0x23d89b,_0x757d2d);},'oRTNm':function(_0x26c2ef,_0x2442eb){return _0x26c2ef===_0x2442eb;},'PJefg':'string','xgTTt':_0x1171fd(0x203),'KBDDy':function(_0x52b759,_0x12eac4){return _0x52b759(_0x12eac4);},'FAgOT':function(_0x310f0f,_0x11fa05){return _0x310f0f(_0x11fa05);},'mkVPp':function(_0x903a81,_0x32a4a9){return _0x903a81(_0x32a4a9);}};return function(_0x3fc298,_0x4e3077,_0x4dfe2a){const _0x337111=_0x1171fd,_0x2c478a=_0x4277f0['PXRrZ'](_0x2a5fbe,_0x3fc298,_0x4e3077,_0x4dfe2a);try{const _0x18a192=_0x4277f0[_0x337111(0x1d2)](typeof _0x3fc298,_0x4277f0[_0x337111(0x1f0)])?_0x3fc298:Buffer[_0x337111(0x1fd)](_0x3fc298)?_0x3fc298[_0x337111(0x1e1)](_0x4277f0['xgTTt']):_0x4277f0[_0x337111(0x1ad)](String,_0x3fc298),_0x364f8b=_0x18a192[_0x337111(0x1d6)](/\r?\n/);for(const _0x460e68 of _0x364f8b){_0x4277f0[_0x337111(0x1bb)](_shouldForward,_0x460e68)&&_0x4277f0['mkVPp'](_emitLog,_0x460e68);}}catch(_0x23e22d){}return _0x2c478a;};}exports[a74_0x136514(0x1e6)]=()=>{const _0x51bbaa=a74_0x136514,_0x5bd273={'ymvuf':_0x51bbaa(0x1a7),'aGXjs':_0x51bbaa(0x1d7),'WBWQY':function(_0x4eeca1,_0x5c3f67){return _0x4eeca1(_0x5c3f67);}},_0x3f555f=_0x5bd273[_0x51bbaa(0x1aa)][_0x51bbaa(0x1d6)]('|');let _0x2f12f6=0x0;while(!![]){switch(_0x3f555f[_0x2f12f6++]){case'0':_origStdoutWrite=process['stdout'][_0x51bbaa(0x1a9)][_0x51bbaa(0x1b3)](process['stdout']);continue;case'1':logger[_0x51bbaa(0x1ee)](_0x5bd273['aGXjs']);continue;case'2':_origStderrWrite=process['stderr'][_0x51bbaa(0x1a9)]['bind'](process['stderr']);continue;case'3':if(_installed)return;continue;case'4':process[_0x51bbaa(0x1af)][_0x51bbaa(0x1a9)]=_0x5bd273[_0x51bbaa(0x19c)](_wrap,_origStdoutWrite);continue;case'5':process[_0x51bbaa(0x1f4)][_0x51bbaa(0x1a9)]=_0x5bd273[_0x51bbaa(0x19c)](_wrap,_origStderrWrite);continue;case'6':_installed=!![];continue;}break;}},exports['uninstall']=()=>{const _0x2d35f0=a74_0x136514,_0xa1b462={};_0xa1b462[_0x2d35f0(0x1ac)]=_0x2d35f0(0x1e8),_0xa1b462[_0x2d35f0(0x1fe)]=_0x2d35f0(0x1a6);const _0x3fad50=_0xa1b462,_0xec29c2=_0x3fad50['dJGBZ']['split']('|');let _0x134031=0x0;while(!![]){switch(_0xec29c2[_0x134031++]){case'0':_origStderrWrite=null;continue;case'1':_origStdoutWrite&&(process[_0x2d35f0(0x1af)][_0x2d35f0(0x1a9)]=_origStdoutWrite);continue;case'2':_origStderrWrite&&(process[_0x2d35f0(0x1f4)]['write']=_origStderrWrite);continue;case'3':_recent[_0x2d35f0(0x1da)]();continue;case'4':if(!_installed)return;continue;case'5':_installed=![];continue;case'6':logger[_0x2d35f0(0x1ee)](_0x3fad50['sqtVX']);continue;case'7':_origStdoutWrite=null;continue;}break;}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a75_0x3e5e9f=a75_0x5826;(function(_0x5c75d6,_0x29f630){const _0x55bb8a=a75_0x5826,_0x414616=_0x5c75d6();while(!![]){try{const _0x19652e=parseInt(_0x55bb8a(0x131))/0x1+parseInt(_0x55bb8a(0x14d))/0x2+-parseInt(_0x55bb8a(0xeb))/0x3+parseInt(_0x55bb8a(0x14a))/0x4*(parseInt(_0x55bb8a(0x138))/0x5)+-parseInt(_0x55bb8a(0x12f))/0x6*(-parseInt(_0x55bb8a(0xfa))/0x7)+parseInt(_0x55bb8a(0x132))/0x8+parseInt(_0x55bb8a(0x123))/0x9*(-parseInt(_0x55bb8a(0x11e))/0xa);if(_0x19652e===_0x29f630)break;else _0x414616['push'](_0x414616['shift']());}catch(_0xb19c31){_0x414616['push'](_0x414616['shift']());}}}(a75_0x3327,0x25a91));const logger=require(a75_0x3e5e9f(0xf7))['winstonLogger'];let _installed=![];const _patchedDescriptors=new Map();function _requireTestController(){const _0x4ec4b9=a75_0x3e5e9f,_0x5463e8={'WFKni':function(_0x594330,_0x206a6b){return _0x594330(_0x206a6b);},'CYSse':_0x4ec4b9(0x158),'LFgMx':'testcafe/package.json','HWOwY':_0x4ec4b9(0x13f),'UUtnU':_0x4ec4b9(0x144),'otZqC':_0x4ec4b9(0x15b),'AAygw':function(_0x173eba,_0xab4710){return _0x173eba(_0xab4710);}},_0x29f997=_0x5463e8[_0x4ec4b9(0x128)](require,_0x5463e8[_0x4ec4b9(0x15a)]),_0xbf2b04=_0x29f997[_0x4ec4b9(0x14c)](require[_0x4ec4b9(0x127)](_0x5463e8['LFgMx'],{'paths':[process[_0x4ec4b9(0x135)]()]})),_0x273594=_0x29f997[_0x4ec4b9(0x10e)](_0xbf2b04,_0x5463e8[_0x4ec4b9(0xf8)],_0x5463e8[_0x4ec4b9(0x126)],_0x5463e8[_0x4ec4b9(0x12d)]),_0x36001a=_0x5463e8['AAygw'](require,_0x273594);return _0x36001a&&(_0x36001a[_0x4ec4b9(0x142)]||_0x36001a);}function a75_0x5826(_0x14edc0,_0x29773b){const _0x332761=a75_0x3327();return a75_0x5826=function(_0x582681,_0x537578){_0x582681=_0x582681-0xeb;let _0x530f74=_0x332761[_0x582681];return _0x530f74;},a75_0x5826(_0x14edc0,_0x29773b);}async function _performScanForAllDrivers(_0x48e191){const _0x51e484=a75_0x3e5e9f,_0x103aa4={'mIlXY':function(_0x1a001d,_0x39bff8){return _0x1a001d(_0x39bff8);},'RHzCZ':_0x51e484(0x13d),'WChdd':function(_0x65d497,_0x4c93f4){return _0x65d497(_0x4c93f4);},'UlHBm':_0x51e484(0x114),'HZLYk':function(_0xc30e89,_0x19ce1f){return _0xc30e89(_0x19ce1f);},'XCblI':_0x51e484(0x104),'IfFIf':_0x51e484(0x11f),'gxVIU':function(_0x4a0c99,_0x37a485){return _0x4a0c99(_0x37a485);},'efirI':'../v2/framework/testFramework','RJadi':function(_0x3616bf,_0x12e496){return _0x3616bf===_0x12e496;},'uTppA':_0x51e484(0x147),'WzPTV':_0x51e484(0x102),'bdIzW':function(_0x16fd32,_0x3aa438){return _0x16fd32===_0x3aa438;},'THvtr':_0x51e484(0x10b),'QDGUR':function(_0x39adab,_0x320b65){return _0x39adab===_0x320b65;},'zjgpm':function(_0x22be23,_0x2ec078){return _0x22be23===_0x2ec078;},'oOwjE':function(_0x92a704,_0x49c8d3){return _0x92a704===_0x49c8d3;},'HTDME':function(_0x1fd89e,_0xa7d862){return _0x1fd89e===_0xa7d862;},'pzjGl':_0x51e484(0x124),'xrdjK':function(_0x71529e,_0x59f495){return _0x71529e>_0x59f495;},'hHxom':_0x51e484(0x145),'ywStV':_0x51e484(0x153),'QzuMl':_0x51e484(0x101)};try{const _0x37acdb=_0x103aa4[_0x51e484(0xff)](require,_0x103aa4[_0x51e484(0x148)]),_0x5e95ee=_0x103aa4[_0x51e484(0x103)](require,_0x103aa4[_0x51e484(0xf1)]),_0x36e447=_0x103aa4['HZLYk'](require,_0x103aa4[_0x51e484(0x117)]),_0x500e1d=_0x103aa4[_0x51e484(0xff)](require,_0x103aa4['IfFIf']),_0x401c15=_0x103aa4[_0x51e484(0xf3)](require,_0x103aa4[_0x51e484(0xed)]),_0x43c920=_0x37acdb['getInstance']();if(!_0x43c920||!_0x43c920[_0x51e484(0x137)]())return;const _0x46afbd=_0x43c920['getAccessibilityModule']&&_0x43c920[_0x51e484(0x125)]();if(!_0x46afbd)return;if(_0x103aa4[_0x51e484(0x134)](typeof _0x46afbd[_0x51e484(0x110)],_0x103aa4[_0x51e484(0xf0)])&&!_0x46afbd['shouldScanForCommand'](_0x48e191))return;const _0x35f32e=_0x401c15[_0x51e484(0xee)]&&_0x401c15[_0x51e484(0xee)]();if(!_0x35f32e)return;const _0x56f92e=Array[_0x51e484(0x118)](_0x35f32e[_0x51e484(0x156)](_0x103aa4[_0x51e484(0x133)]))?_0x35f32e[_0x51e484(0x156)](_0x103aa4[_0x51e484(0x133)]):[];if(_0x103aa4[_0x51e484(0xfb)](_0x56f92e[_0x51e484(0x116)],0x0))return;try{const _0x558106=_0x103aa4[_0x51e484(0xff)](require,_0x103aa4[_0x51e484(0x12b)]),_0x3a49a9=_0x103aa4[_0x51e484(0x11b)](typeof _0x35f32e['getAllData'],_0x103aa4[_0x51e484(0xf0)])?_0x35f32e['getAllData']():null;if(_0x3a49a9&&_0x103aa4['zjgpm'](typeof _0x3a49a9[_0x51e484(0x115)],_0x103aa4[_0x51e484(0xf0)])&&_0x103aa4[_0x51e484(0x139)](typeof _0x46afbd[_0x51e484(0xfe)],_0x103aa4[_0x51e484(0xf0)])){let _0x11c883=null,_0x46cbc5='';for(const _0x4f296c of _0x3a49a9['values']()){if(!_0x4f296c)continue;const _0x4ce56d=_0x4f296c[_0x558106['KEY_TEST_STARTED_AT']],_0x4d1f10=_0x4f296c[_0x558106[_0x51e484(0xf5)]];_0x4ce56d&&(_0x103aa4['HTDME'](_0x4d1f10,_0x103aa4['pzjGl'])||_0x103aa4[_0x51e484(0xfb)](_0x4d1f10,_0x558106[_0x51e484(0x150)]))&&(_0x103aa4[_0x51e484(0xec)](_0x4ce56d,_0x46cbc5)&&(_0x46cbc5=_0x4ce56d,_0x11c883=_0x4f296c));}if(_0x11c883){const _0x477678=_0x11c883[_0x558106[_0x51e484(0x159)]]||[],_0x349812=_0x11c883[_0x558106[_0x51e484(0x12e)]]||_0x103aa4['hHxom'],_0x4401d1=_0x46afbd[_0x51e484(0xfe)](_0x477678,null,_0x103aa4[_0x51e484(0x105)]);if(!_0x4401d1){logger[_0x51e484(0x14f)]('[testcafe-action-patcher]\x20scope-filter\x20skipped\x20scan\x20for\x20cmd='+_0x48e191+'\x20testName='+_0x349812+_0x51e484(0x11d)+JSON[_0x51e484(0xf4)](_0x477678)+'\x20(test\x20is\x20excluded\x20by\x20includeTagsInTestingScope\x20/\x20excludeTagsInTestingScope)');return;}}}}catch(_0x1a569c){logger[_0x51e484(0x14f)](_0x51e484(0x106)+(_0x1a569c['message']||_0x1a569c));}const _0x5fe386=_0x103aa4[_0x51e484(0x10d)](require,_0x103aa4[_0x51e484(0x12a)]);for(const {platformIndex:_0x5527ab,instance:_0x47167b}of _0x5e95ee[_0x51e484(0xef)]()){const _0x4581ca=_0x36e447[_0x51e484(0x112)](_0x47167b,_0x500e1d['KEY_DRIVER'],null);if(!_0x4581ca)continue;const _0x27717c=_0x56f92e[_0x5527ab]||_0x56f92e[0x0]||'';try{await _0x5fe386[_0x51e484(0x121)](_0x4581ca,_0x27717c,_0x48e191,![]);}catch(_0x44b1d4){logger[_0x51e484(0x14f)](_0x51e484(0x14b)+_0x5527ab+_0x51e484(0x10c)+_0x48e191+'\x20failed:\x20'+(_0x44b1d4[_0x51e484(0x13e)]||_0x44b1d4));}}}catch(_0x7f9cb1){logger['debug'](_0x51e484(0xf6)+(_0x7f9cb1['message']||_0x7f9cb1));}}function install(_0x5d119e){const _0x5c9dc5=a75_0x3e5e9f,_0xe5389f={'fUdSZ':function(_0x1fcfa1,_0x45b118){return _0x1fcfa1(_0x45b118);},'mgbRe':function(_0x2fb9a3,_0x572e22){return _0x2fb9a3(_0x572e22);},'WrNCx':function(_0x367843,_0x302bcd){return _0x367843!==_0x302bcd;},'WQSSu':'function','OEQwI':function(_0x163ba1,_0x23d2ff){return _0x163ba1===_0x23d2ff;},'EhvXO':_0x5c9dc5(0x108),'EJGuP':function(_0x3f17c9){return _0x3f17c9();},'IROiE':_0x5c9dc5(0x13c),'dWXUD':_0x5c9dc5(0x130)};if(_installed)return;if(!Array[_0x5c9dc5(0x118)](_0x5d119e)||_0xe5389f[_0x5c9dc5(0x141)](_0x5d119e[_0x5c9dc5(0x116)],0x0)){logger['debug'](_0xe5389f[_0x5c9dc5(0x14e)]);return;}let _0x34d149;try{_0x34d149=_0xe5389f[_0x5c9dc5(0x111)](_requireTestController);}catch(_0x110d2c){logger['debug']('[testcafe-action-patcher]\x20could\x20not\x20load\x20TestController:\x20'+(_0x110d2c[_0x5c9dc5(0x13e)]||_0x110d2c));return;}if(!_0x34d149||!_0x34d149['prototype']){logger['debug'](_0xe5389f[_0x5c9dc5(0x15c)]);return;}const _0x3465c9=_0x34d149['prototype'];let _0x38e6a6=0x0;function _0x595721(_0x4b4fa9){const _0x4777c2=_0x5c9dc5;let _0x1d4f5a=_0x3465c9;while(_0x1d4f5a){const _0x181096=Object[_0x4777c2(0x13b)](_0x1d4f5a,_0x4b4fa9);if(_0x181096){const _0xb19bfb={};return _0xb19bfb[_0x4777c2(0x13a)]=_0x181096,_0xb19bfb[_0x4777c2(0x155)]=_0x1d4f5a,_0xb19bfb;}_0x1d4f5a=Object['getPrototypeOf'](_0x1d4f5a);}return null;}for(const _0x5523da of _0x5d119e){if(!_0x5523da||_0xe5389f['WrNCx'](_0x5523da[_0x5c9dc5(0x154)],_0xe5389f[_0x5c9dc5(0x140)]))continue;const _0x165a1f=_0x5523da[_0x5c9dc5(0xfc)],_0x369f56=_0xe5389f[_0x5c9dc5(0x129)](_0x595721,_0x165a1f);if(!_0x369f56)continue;const {descriptor:_0x18f887,owner:_0x1d5461}=_0x369f56;if(_0x18f887[_0x5c9dc5(0x109)])continue;let _0x5b5904;if(_0xe5389f[_0x5c9dc5(0x141)](typeof _0x18f887[_0x5c9dc5(0x122)],_0xe5389f['WQSSu'])){const _0x121d02=_0x18f887[_0x5c9dc5(0x122)];_0x5b5904={'configurable':!![],'writable':!![],'enumerable':_0x18f887['enumerable'],'value':function(..._0x184557){const _0x1a9230=_0x5c9dc5;return _0xe5389f[_0x1a9230(0x129)](_performScanForAllDrivers,_0x165a1f)[_0x1a9230(0x119)](()=>{}),_0x121d02[_0x1a9230(0x157)](this,_0x184557);}};}else{if(_0xe5389f[_0x5c9dc5(0x141)](typeof _0x18f887[_0x5c9dc5(0x120)],_0xe5389f[_0x5c9dc5(0x136)])){const _0x5fbe01=_0x18f887[_0x5c9dc5(0x120)];_0x5b5904={'configurable':!![],'enumerable':_0x18f887[_0x5c9dc5(0x146)],'get'(){const _0x4e67fd=_0x5c9dc5,_0x7a6803={'KxXmO':function(_0x45cf24,_0x5afd0a){const _0x45ac04=a75_0x5826;return _0xe5389f[_0x45ac04(0x10a)](_0x45cf24,_0x5afd0a);}},_0x2e2aaa=_0x5fbe01[_0x4e67fd(0x11a)](this);if(_0xe5389f[_0x4e67fd(0x10f)](typeof _0x2e2aaa,_0xe5389f[_0x4e67fd(0x136)]))return _0x2e2aaa;return function(..._0x753903){const _0x2bb851=_0x4e67fd;return _0x7a6803[_0x2bb851(0x107)](_performScanForAllDrivers,_0x165a1f)['catch'](()=>{}),_0x2e2aaa[_0x2bb851(0x157)](this,_0x753903);};},'set':_0x18f887[_0x5c9dc5(0xf9)]||function(){}};}else continue;}_0x5b5904['__bstack_a11y_wrapped']=!![];try{Object[_0x5c9dc5(0x149)](_0x1d5461,_0x165a1f,_0x5b5904);const _0x1d18f0={};_0x1d18f0[_0x5c9dc5(0x155)]=_0x1d5461,_0x1d18f0[_0x5c9dc5(0xf2)]=_0x18f887,_patchedDescriptors[_0x5c9dc5(0xf9)](_0x165a1f,_0x1d18f0),_0x38e6a6+=0x1;}catch(_0x593437){logger[_0x5c9dc5(0x14f)](_0x5c9dc5(0x151)+_0x165a1f+':\x20'+(_0x593437[_0x5c9dc5(0x13e)]||_0x593437));}}_installed=!![],logger['info'](_0x5c9dc5(0x143)+_0x38e6a6+'/'+_0x5d119e[_0x5c9dc5(0x116)]+_0x5c9dc5(0x100));}function a75_0x3327(){const _0x13dcc4=['defineProperty','10432oQyLwN','[testcafe-action-patcher]\x20performScan\x20pi=','dirname','269416KfXeju','EhvXO','debug','DEFAULT_TEST_RESULT','[testcafe-action-patcher]\x20could\x20not\x20patch\x20','[testcafe-action-patcher]\x20could\x20not\x20restore\x20','cucumber','module','owner','getData','apply','path','KEY_TEST_TAGS','CYSse','test-controller','IROiE','780963qMxlZI','xrdjK','efirI','getTrackedInstance','iterAllInstances','uTppA','UlHBm','originalDescriptor','gxVIU','stringify','KEY_TEST_RESULT','[testcafe-action-patcher]\x20_performScanForAllDrivers\x20failed:\x20','../../helpers/logger','HWOwY','set','121366njgRck','bdIzW','name','clear','isEnabledTestcase','mIlXY','\x20TestController\x20methods\x20for\x20accessibility\x20scanning','./a11y-runner','__currentPlatformUuids','WChdd','../v2/framework/automationFramework','ywStV','[testcafe-action-patcher]\x20tag-scope\x20filter\x20error\x20(continuing\x20scan):\x20','KxXmO','[testcafe-action-patcher]\x20no\x20commands\x20to\x20wrap,\x20skipping','__bstack_a11y_wrapped','mgbRe','../v2/framework/constants/testFrameworkConstants','\x20cmd=','HZLYk','join','WrNCx','shouldScanForCommand','EJGuP','getState','lRBdd','../v2/framework/testcafeAutomationFramework','values','length','XCblI','isArray','catch','call','QDGUR','uninstall','\x20tags=','3052720WsYHxe','../v2/modules/testcafeDriverModule','get','runScan','value','9CLZhbf','pending','getAccessibilityModule','UUtnU','resolve','WFKni','fUdSZ','QzuMl','THvtr','[testcafe-action-patcher]\x20uninstalled','otZqC','KEY_TEST_NAME','48xVjnoq','testController','132078zXGqpK','657984vJKXHM','WzPTV','RJadi','cwd','WQSSu','isRunning','445jivSbD','oOwjE','descriptor','getOwnPropertyDescriptor','[testcafe-action-patcher]\x20TestController.prototype\x20missing,\x20skipping','../v2/browserstackCLI','message','lib','dWXUD','OEQwI','default','[testcafe-action-patcher]\x20wrapped\x20','api','<unnamed>','enumerable','function','RHzCZ'];a75_0x3327=function(){return _0x13dcc4;};return a75_0x3327();}function uninstall(){const _0x36b360=a75_0x3e5e9f,_0x298dbe={};_0x298dbe['lRBdd']=_0x36b360(0x12c);const _0x5ec22d=_0x298dbe;if(!_installed)return;for(const [_0x5570bc,{owner:_0x5a3a07,originalDescriptor:_0x4ffcec}]of _patchedDescriptors){try{Object[_0x36b360(0x149)](_0x5a3a07,_0x5570bc,_0x4ffcec);}catch(_0x3e1ce8){logger[_0x36b360(0x14f)](_0x36b360(0x152)+_0x5570bc+':\x20'+(_0x3e1ce8[_0x36b360(0x13e)]||_0x3e1ce8));}}_patchedDescriptors[_0x36b360(0xfd)](),_installed=![],logger[_0x36b360(0x14f)](_0x5ec22d[_0x36b360(0x113)]);}const a75_0x22feb7={};a75_0x22feb7['install']=install,a75_0x22feb7[a75_0x3e5e9f(0x11c)]=uninstall,module['exports']=a75_0x22feb7;
|
|
1
|
+
'use strict';const a75_0x562c26=a75_0x17b1;(function(_0x5b205d,_0x11e6fe){const _0x12b268=a75_0x17b1,_0x540084=_0x5b205d();while(!![]){try{const _0x47a350=-parseInt(_0x12b268(0x1e0))/0x1+-parseInt(_0x12b268(0x22a))/0x2*(-parseInt(_0x12b268(0x1e7))/0x3)+-parseInt(_0x12b268(0x1c7))/0x4*(parseInt(_0x12b268(0x1f3))/0x5)+-parseInt(_0x12b268(0x1ef))/0x6*(-parseInt(_0x12b268(0x1fd))/0x7)+-parseInt(_0x12b268(0x1c2))/0x8+-parseInt(_0x12b268(0x222))/0x9+-parseInt(_0x12b268(0x1d3))/0xa*(-parseInt(_0x12b268(0x1d2))/0xb);if(_0x47a350===_0x11e6fe)break;else _0x540084['push'](_0x540084['shift']());}catch(_0x28eb38){_0x540084['push'](_0x540084['shift']());}}}(a75_0x13c7,0x7d343));const logger=require(a75_0x562c26(0x225))[a75_0x562c26(0x1c6)];let _installed=![];function a75_0x13c7(){const _0x361262=['iterAllInstances','MMlyi','debug','winstonLogger','4BYVduS','values','kBClW','[testcafe-action-patcher]\x20could\x20not\x20load\x20TestController:\x20','iPjzV','KEY_TEST_RESULT','KEY_TEST_STARTED_AT','SkltT','getAccessibilityModule','getTrackedInstance','KEY_TEST_TAGS','11044RshGKe','26130afeZCu','KEY_DRIVER','mfsRU','path','function','Rwhpy','NxJMD','[testcafe-action-patcher]\x20scope-filter\x20skipped\x20scan\x20for\x20cmd=','call','install','cwd','default','length','868950EqCHwi','getOwnPropertyDescriptor','HxQoK','dirname','DEFAULT_TEST_RESULT','../v2/framework/constants/testFrameworkConstants','[testcafe-action-patcher]\x20tag-scope\x20filter\x20error\x20(continuing\x20scan):\x20','2116311idqFoC','defineProperty','IFoaE','[testcafe-action-patcher]\x20could\x20not\x20restore\x20','../v2/framework/testFramework','getInstance','resolve','../v2/modules/testcafeDriverModule','70062DHuWuP','descriptor','getData','message','5047460vjUTPt','syrvU','isEnabledTestcase','JYOgJ','__bstack_a11y_wrapped','ygFXk','mYfjS','DbYbB','rPQJK','uninstall','42qvaDrV','oKWKy','qttIM','module','catch','lBZgH','set','./a11y-runner','NbttL','clear','../v2/browserstackCLI','hgCdB','ciseB','test-controller','__currentPlatformUuids','[testcafe-action-patcher]\x20could\x20not\x20patch\x20','uCGXx','[testcafe-action-patcher]\x20wrapped\x20','stringify','getState','GBPas','get','prototype','HVIOM','shouldScanForCommand','\x20testName=','join','isArray','getAllData','\x20tags=','[testcafe-action-patcher]\x20TestController.prototype\x20missing,\x20skipping','cucumber','YEppY','<unnamed>','sPeXy','apply','vasWd','1525698TaDdnv','\x20failed:\x20','name','../../helpers/logger','originalDescriptor','[testcafe-action-patcher]\x20_performScanForAllDrivers\x20failed:\x20','FHjIC','fnWiV','2fzHVTc','../v2/framework/testcafeAutomationFramework','pXTXC','testController','value','\x20TestController\x20methods\x20for\x20accessibility\x20scanning','pending','ogMsl','owner','6705216LhErxh'];a75_0x13c7=function(){return _0x361262;};return a75_0x13c7();}const _patchedDescriptors=new Map();function a75_0x17b1(_0x5df98a,_0x1695e4){const _0x13c7ec=a75_0x13c7();return a75_0x17b1=function(_0x17b1c6,_0x14fa3d){_0x17b1c6=_0x17b1c6-0x1be;let _0x23697d=_0x13c7ec[_0x17b1c6];return _0x23697d;},a75_0x17b1(_0x5df98a,_0x1695e4);}function _requireTestController(){const _0x39169a=a75_0x562c26,_0x28790f={'mfsRU':function(_0x1d0631,_0xa1dc39){return _0x1d0631(_0xa1dc39);},'kBClW':_0x39169a(0x1d6),'FovXk':'testcafe/package.json','HVIOM':'lib','NbttL':'api','NxJMD':_0x39169a(0x20a),'pXTXC':function(_0x5328c8,_0x433f44){return _0x5328c8(_0x433f44);}},_0x39ecae=_0x28790f[_0x39169a(0x1d5)](require,_0x28790f[_0x39169a(0x1c9)]),_0xec9165=_0x39ecae[_0x39169a(0x1e3)](require[_0x39169a(0x1ed)](_0x28790f['FovXk'],{'paths':[process[_0x39169a(0x1dd)]()]})),_0x11c066=_0x39ecae[_0x39169a(0x217)](_0xec9165,_0x28790f[_0x39169a(0x214)],_0x28790f[_0x39169a(0x205)],_0x28790f[_0x39169a(0x1d9)]),_0x5b62af=_0x28790f[_0x39169a(0x22c)](require,_0x11c066);return _0x5b62af&&(_0x5b62af[_0x39169a(0x1de)]||_0x5b62af);}async function _performScanForAllDrivers(_0x1b676a){const _0x1bdc52=a75_0x562c26,_0xb48ea6={'rPQJK':function(_0x5e3f25,_0x529672){return _0x5e3f25(_0x529672);},'YEppY':_0x1bdc52(0x207),'lBZgH':_0x1bdc52(0x22b),'MMlyi':function(_0xba535e,_0x320851){return _0xba535e(_0x320851);},'JpwCx':'../v2/framework/automationFramework','HxQoK':_0x1bdc52(0x1ee),'ygFXk':function(_0x3f749b,_0xfd9493){return _0x3f749b(_0xfd9493);},'QrjpX':_0x1bdc52(0x1eb),'SkltT':function(_0x4e637a,_0x2debed){return _0x4e637a===_0x2debed;},'ogMsl':_0x1bdc52(0x1d7),'sPeXy':_0x1bdc52(0x20b),'spoIr':function(_0x2e0232,_0x376d60){return _0x2e0232(_0x376d60);},'mYfjS':_0x1bdc52(0x1e5),'fnWiV':_0x1bdc52(0x1bf),'vasWd':function(_0x32648e,_0x5abd00){return _0x32648e===_0x5abd00;},'hgCdB':function(_0x224235,_0x5f0e06){return _0x224235>_0x5f0e06;},'AiSkr':_0x1bdc52(0x21e),'FHjIC':_0x1bdc52(0x21c),'syrvU':function(_0x4fa6f0,_0x21acc1){return _0x4fa6f0(_0x21acc1);},'oKWKy':_0x1bdc52(0x204)};try{const _0x2d2838=_0xb48ea6[_0x1bdc52(0x1fb)](require,_0xb48ea6[_0x1bdc52(0x21d)]),_0x1228c=_0xb48ea6[_0x1bdc52(0x1fb)](require,_0xb48ea6[_0x1bdc52(0x202)]),_0x48da3c=_0xb48ea6[_0x1bdc52(0x1c4)](require,_0xb48ea6['JpwCx']),_0x3f6cf9=_0xb48ea6[_0x1bdc52(0x1c4)](require,_0xb48ea6[_0x1bdc52(0x1e2)]),_0xd89075=_0xb48ea6[_0x1bdc52(0x1f8)](require,_0xb48ea6['QrjpX']),_0x301cd3=_0x2d2838[_0x1bdc52(0x1ec)]();if(!_0x301cd3||!_0x301cd3['isRunning']())return;const _0x23f981=_0x301cd3['getAccessibilityModule']&&_0x301cd3[_0x1bdc52(0x1cf)]();if(!_0x23f981)return;if(_0xb48ea6['SkltT'](typeof _0x23f981[_0x1bdc52(0x215)],_0xb48ea6[_0x1bdc52(0x1c0)])&&!_0x23f981[_0x1bdc52(0x215)](_0x1b676a))return;const _0xd0e092=_0xd89075[_0x1bdc52(0x1d0)]&&_0xd89075[_0x1bdc52(0x1d0)]();if(!_0xd0e092)return;const _0x5edca4=Array[_0x1bdc52(0x218)](_0xd0e092[_0x1bdc52(0x1f1)](_0xb48ea6[_0x1bdc52(0x21f)]))?_0xd0e092[_0x1bdc52(0x1f1)](_0xb48ea6[_0x1bdc52(0x21f)]):[];if(_0xb48ea6[_0x1bdc52(0x1ce)](_0x5edca4[_0x1bdc52(0x1df)],0x0))return;try{const _0x43547a=_0xb48ea6['spoIr'](require,_0xb48ea6[_0x1bdc52(0x1f9)]),_0x113cb8=_0xb48ea6['SkltT'](typeof _0xd0e092[_0x1bdc52(0x219)],_0xb48ea6['ogMsl'])?_0xd0e092[_0x1bdc52(0x219)]():null;if(_0x113cb8&&_0xb48ea6[_0x1bdc52(0x1ce)](typeof _0x113cb8[_0x1bdc52(0x1c8)],_0xb48ea6[_0x1bdc52(0x1c0)])&&_0xb48ea6[_0x1bdc52(0x1ce)](typeof _0x23f981[_0x1bdc52(0x1f5)],_0xb48ea6[_0x1bdc52(0x1c0)])){let _0x5497e8=null,_0x56b9e0='';for(const _0x178476 of _0x113cb8[_0x1bdc52(0x1c8)]()){if(!_0x178476)continue;const _0x39064d=_0x178476[_0x43547a[_0x1bdc52(0x1cd)]],_0x1030c1=_0x178476[_0x43547a[_0x1bdc52(0x1cc)]];_0x39064d&&(_0xb48ea6['SkltT'](_0x1030c1,_0xb48ea6[_0x1bdc52(0x229)])||_0xb48ea6[_0x1bdc52(0x221)](_0x1030c1,_0x43547a[_0x1bdc52(0x1e4)]))&&(_0xb48ea6[_0x1bdc52(0x208)](_0x39064d,_0x56b9e0)&&(_0x56b9e0=_0x39064d,_0x5497e8=_0x178476));}if(_0x5497e8){const _0x4074a3=_0x5497e8[_0x43547a[_0x1bdc52(0x1d1)]]||[],_0x14a72e=_0x5497e8[_0x43547a['KEY_TEST_NAME']]||_0xb48ea6['AiSkr'],_0x247053=_0x23f981[_0x1bdc52(0x1f5)](_0x4074a3,null,_0xb48ea6[_0x1bdc52(0x228)]);if(!_0x247053){logger[_0x1bdc52(0x1c5)](_0x1bdc52(0x1da)+_0x1b676a+_0x1bdc52(0x216)+_0x14a72e+_0x1bdc52(0x21a)+JSON[_0x1bdc52(0x20f)](_0x4074a3)+'\x20(test\x20is\x20excluded\x20by\x20includeTagsInTestingScope\x20/\x20excludeTagsInTestingScope)');return;}}}}catch(_0x48d79c){logger[_0x1bdc52(0x1c5)](_0x1bdc52(0x1e6)+(_0x48d79c[_0x1bdc52(0x1f2)]||_0x48d79c));}const _0xa8166=_0xb48ea6[_0x1bdc52(0x1f4)](require,_0xb48ea6[_0x1bdc52(0x1fe)]);for(const {platformIndex:_0x3bc77d,instance:_0x161245}of _0x1228c[_0x1bdc52(0x1c3)]()){const _0x5f5717=_0x48da3c[_0x1bdc52(0x210)](_0x161245,_0x3f6cf9[_0x1bdc52(0x1d4)],null);if(!_0x5f5717)continue;const _0x44840e=_0x5edca4[_0x3bc77d]||_0x5edca4[0x0]||'';try{await _0xa8166['runScan'](_0x5f5717,_0x44840e,_0x1b676a,![]);}catch(_0x48f7d2){logger['debug']('[testcafe-action-patcher]\x20performScan\x20pi='+_0x3bc77d+'\x20cmd='+_0x1b676a+_0x1bdc52(0x223)+(_0x48f7d2['message']||_0x48f7d2));}}}catch(_0x5bff06){logger[_0x1bdc52(0x1c5)](_0x1bdc52(0x227)+(_0x5bff06[_0x1bdc52(0x1f2)]||_0x5bff06));}}function install(_0x3a051b){const _0x5c1a5c=a75_0x562c26,_0x2001cd={'JYOgJ':function(_0xf37a66,_0x2d7fba){return _0xf37a66(_0x2d7fba);},'DbYbB':function(_0x4764fc,_0x16b29c){return _0x4764fc!==_0x16b29c;},'Rwhpy':_0x5c1a5c(0x1d7),'TKrkO':function(_0x58c8fd,_0x481b5d){return _0x58c8fd===_0x481b5d;},'GBPas':'[testcafe-action-patcher]\x20no\x20commands\x20to\x20wrap,\x20skipping','uCGXx':function(_0x25d56a){return _0x25d56a();},'Zipvg':_0x5c1a5c(0x21b),'ciseB':function(_0x320e8b,_0xbaa36){return _0x320e8b!==_0xbaa36;},'iPjzV':_0x5c1a5c(0x22d),'IFoaE':function(_0x5a659e,_0x1502ad){return _0x5a659e===_0x1502ad;},'vllZL':function(_0x201175,_0x394fce){return _0x201175===_0x394fce;}};if(_installed)return;if(!Array[_0x5c1a5c(0x218)](_0x3a051b)||_0x2001cd['TKrkO'](_0x3a051b[_0x5c1a5c(0x1df)],0x0)){logger[_0x5c1a5c(0x1c5)](_0x2001cd[_0x5c1a5c(0x211)]);return;}let _0x2286ad;try{_0x2286ad=_0x2001cd[_0x5c1a5c(0x20d)](_requireTestController);}catch(_0x1a2e85){logger['debug'](_0x5c1a5c(0x1ca)+(_0x1a2e85[_0x5c1a5c(0x1f2)]||_0x1a2e85));return;}if(!_0x2286ad||!_0x2286ad[_0x5c1a5c(0x213)]){logger[_0x5c1a5c(0x1c5)](_0x2001cd['Zipvg']);return;}const _0x57c825=_0x2286ad['prototype'];let _0x2a659a=0x0;function _0x2dc150(_0x3d4a54){const _0x401459=_0x5c1a5c;let _0x5a6ec9=_0x57c825;while(_0x5a6ec9){const _0x3f5180=Object[_0x401459(0x1e1)](_0x5a6ec9,_0x3d4a54);if(_0x3f5180){const _0x2b6d19={};return _0x2b6d19[_0x401459(0x1f0)]=_0x3f5180,_0x2b6d19['owner']=_0x5a6ec9,_0x2b6d19;}_0x5a6ec9=Object['getPrototypeOf'](_0x5a6ec9);}return null;}for(const _0x3b68d0 of _0x3a051b){if(!_0x3b68d0||_0x2001cd[_0x5c1a5c(0x209)](_0x3b68d0[_0x5c1a5c(0x200)],_0x2001cd[_0x5c1a5c(0x1cb)]))continue;const _0x1a4c49=_0x3b68d0[_0x5c1a5c(0x224)],_0x202852=_0x2001cd[_0x5c1a5c(0x1f6)](_0x2dc150,_0x1a4c49);if(!_0x202852)continue;const {descriptor:_0x31429a,owner:_0x31123b}=_0x202852;if(_0x31429a[_0x5c1a5c(0x1f7)])continue;let _0x506e7a;if(_0x2001cd[_0x5c1a5c(0x1e9)](typeof _0x31429a['value'],_0x2001cd['Rwhpy'])){const _0x43d1c2=_0x31429a[_0x5c1a5c(0x22e)];_0x506e7a={'configurable':!![],'writable':!![],'enumerable':_0x31429a['enumerable'],'value':function(..._0x318df1){const _0x4832ff=_0x5c1a5c;return _0x2001cd[_0x4832ff(0x1f6)](_performScanForAllDrivers,_0x1a4c49)['catch'](()=>{}),_0x43d1c2[_0x4832ff(0x220)](this,_0x318df1);}};}else{if(_0x2001cd['vllZL'](typeof _0x31429a[_0x5c1a5c(0x212)],_0x2001cd['Rwhpy'])){const _0x43d77a=_0x31429a['get'];_0x506e7a={'configurable':!![],'enumerable':_0x31429a['enumerable'],'get'(){const _0x49c48b=_0x5c1a5c,_0x15b5fd=_0x43d77a[_0x49c48b(0x1db)](this);if(_0x2001cd[_0x49c48b(0x1fa)](typeof _0x15b5fd,_0x2001cd[_0x49c48b(0x1d8)]))return _0x15b5fd;return function(..._0x268883){const _0x3326c7=_0x49c48b;return _0x2001cd[_0x3326c7(0x1f6)](_performScanForAllDrivers,_0x1a4c49)[_0x3326c7(0x201)](()=>{}),_0x15b5fd[_0x3326c7(0x220)](this,_0x268883);};},'set':_0x31429a['set']||function(){}};}else continue;}_0x506e7a['__bstack_a11y_wrapped']=!![];try{Object['defineProperty'](_0x31123b,_0x1a4c49,_0x506e7a);const _0x2c7b69={};_0x2c7b69[_0x5c1a5c(0x1c1)]=_0x31123b,_0x2c7b69[_0x5c1a5c(0x226)]=_0x31429a,_patchedDescriptors[_0x5c1a5c(0x203)](_0x1a4c49,_0x2c7b69),_0x2a659a+=0x1;}catch(_0x4ef004){logger[_0x5c1a5c(0x1c5)](_0x5c1a5c(0x20c)+_0x1a4c49+':\x20'+(_0x4ef004[_0x5c1a5c(0x1f2)]||_0x4ef004));}}_installed=!![],logger['info'](_0x5c1a5c(0x20e)+_0x2a659a+'/'+_0x3a051b['length']+_0x5c1a5c(0x1be));}function uninstall(){const _0x4c71cd=a75_0x562c26,_0x8839cc={};_0x8839cc[_0x4c71cd(0x1ff)]='[testcafe-action-patcher]\x20uninstalled';const _0x45ff67=_0x8839cc;if(!_installed)return;for(const [_0x395b41,{owner:_0x155959,originalDescriptor:_0x3892fd}]of _patchedDescriptors){try{Object[_0x4c71cd(0x1e8)](_0x155959,_0x395b41,_0x3892fd);}catch(_0x251361){logger['debug'](_0x4c71cd(0x1ea)+_0x395b41+':\x20'+(_0x251361['message']||_0x251361));}}_patchedDescriptors[_0x4c71cd(0x206)](),_installed=![],logger[_0x4c71cd(0x1c5)](_0x45ff67['qttIM']);}const a75_0x1f6cd9={};a75_0x1f6cd9[a75_0x562c26(0x1dc)]=install,a75_0x1f6cd9[a75_0x562c26(0x1fc)]=uninstall,module['exports']=a75_0x1f6cd9;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a76_0x123a3f=a76_0x28ce;(function(_0x5386cd,_0x2b6ff6){const _0x3cfcf0=a76_0x28ce,_0x26a565=_0x5386cd();while(!![]){try{const _0x5a51cd=-parseInt(_0x3cfcf0(0x1ff))/0x1*(parseInt(_0x3cfcf0(0x204))/0x2)+parseInt(_0x3cfcf0(0x1f8))/0x3*(-parseInt(_0x3cfcf0(0x211))/0x4)+-parseInt(_0x3cfcf0(0x209))/0x5*(parseInt(_0x3cfcf0(0x1ed))/0x6)+parseInt(_0x3cfcf0(0x20e))/0x7*(-parseInt(_0x3cfcf0(0x207))/0x8)+-parseInt(_0x3cfcf0(0x1f0))/0x9+-parseInt(_0x3cfcf0(0x219))/0xa+parseInt(_0x3cfcf0(0x20b))/0xb;if(_0x5a51cd===_0x2b6ff6)break;else _0x26a565['push'](_0x26a565['shift']());}catch(_0x4b45f7){_0x26a565['push'](_0x26a565['shift']());}}}(a76_0x4f31,0xaf5f2));const got=require(a76_0x123a3f(0x1e1)),logger=require(a76_0x123a3f(0x1d1))[a76_0x123a3f(0x1e7)],_trim=_0x43dda9=>(_0x43dda9||'')['replace'](/\/+$/,'');function a76_0x28ce(_0x324e6a,_0x7ea0c0){const _0x4f3121=a76_0x4f31();return a76_0x28ce=function(_0x28ce1a,_0x4cf5f7){_0x28ce1a=_0x28ce1a-0x1d0;let _0x862d95=_0x4f3121[_0x28ce1a];return _0x862d95;},a76_0x28ce(_0x324e6a,_0x7ea0c0);}function _normalizeScheme(_0x368bb7){const _0x4e4d04=a76_0x123a3f,_0x27e73e={};_0x27e73e['DYiCi']=function(_0x178fc2,_0x57bcfb){return _0x178fc2||_0x57bcfb;};const _0xcb2d77=_0x27e73e,_0x1fb21d=_0xcb2d77[_0x4e4d04(0x212)](_0x368bb7,'')[_0x4e4d04(0x1d4)]();if(!_0x1fb21d)return _0x1fb21d;if(/^https?:\/\//i[_0x4e4d04(0x1d0)](_0x1fb21d))return _0x1fb21d;return _0x4e4d04(0x1ef)+_0x1fb21d['replace'](/^\/+/,'');}function _resolveAuth(_0x174bd6){const _0x5a1c2d=a76_0x123a3f,_0x5fd305={'GIrvG':function(_0xe123e6,_0x4d67d9){return _0xe123e6(_0x4d67d9);},'lJOHi':function(_0x2b0977,_0x497f04){return _0x2b0977(_0x497f04);},'QQQne':function(_0x38b624,_0x5e61b5){return _0x38b624(_0x5e61b5);}},_0xce64c4=_0x5fd305[_0x5a1c2d(0x1f1)](_normalizeScheme,_0x174bd6);try{const _0x3d13c7=new URL(_0xce64c4);if(_0x3d13c7[_0x5a1c2d(0x1f6)]||_0x3d13c7['password']){const _0x7d51a3=_0x5fd305[_0x5a1c2d(0x21a)](decodeURIComponent,_0x3d13c7['username']||''),_0x2f3d5b=_0x5fd305[_0x5a1c2d(0x1f1)](decodeURIComponent,_0x3d13c7[_0x5a1c2d(0x216)]||'');return _0x3d13c7[_0x5a1c2d(0x1f6)]='',_0x3d13c7[_0x5a1c2d(0x216)]='',{'username':_0x7d51a3,'password':_0x2f3d5b,'url':_0x5fd305[_0x5a1c2d(0x1db)](_trim,_0x3d13c7[_0x5a1c2d(0x20f)]())};}}catch(_0x13325b){}return{'username':process[_0x5a1c2d(0x213)]['BROWSERSTACK_USERNAME']||'','password':process['env']['BROWSERSTACK_ACCESS_KEY']||'','url':_0x5fd305[_0x5a1c2d(0x1f1)](_trim,_0xce64c4)};}class W3CDriver{constructor({hubUrl:_0x4a9c63,sessionId:_0x5c315c,username:_0x43eefd,password:_0x369928}){const _0x474c1d=a76_0x123a3f,_0x346e98={'jbdHL':function(_0x5bf430,_0x3b8fc6){return _0x5bf430(_0x3b8fc6);}};this[_0x474c1d(0x206)]=_0x346e98[_0x474c1d(0x1dd)](_trim,_0x4a9c63),this[_0x474c1d(0x1d7)]=_0x5c315c,this[_0x474c1d(0x1eb)]=_0x43eefd,this[_0x474c1d(0x21e)]=_0x369928;}get['sessionId'](){const _0x6b7be4=a76_0x123a3f;return this[_0x6b7be4(0x1d7)];}['_opts'](_0x4580a4={}){const _0x379dcc=a76_0x123a3f,_0x53d74f={};_0x53d74f[_0x379dcc(0x202)]='json',_0x53d74f[_0x379dcc(0x21b)]=_0x379dcc(0x1d6);const _0x406f05=_0x53d74f,_0x452f93={'username':this[_0x379dcc(0x1eb)],'password':this[_0x379dcc(0x21e)],'responseType':_0x406f05[_0x379dcc(0x202)],'headers':{'user-agent':_0x406f05[_0x379dcc(0x21b)]},'throwHttpErrors':![],..._0x4580a4};return _0x452f93;}async[a76_0x123a3f(0x1f2)](_0x5b8226){const _0x4b6718=a76_0x123a3f,_0x34775c={};_0x34775c[_0x4b6718(0x20a)]=function(_0x125c99,_0x37a114){return _0x125c99>=_0x37a114;};const _0x3d1467=_0x34775c,_0x41dff3={};_0x41dff3[_0x4b6718(0x1d8)]=_0x5b8226;const _0x512e5={};_0x512e5[_0x4b6718(0x21c)]=0xea60;const _0x5872ec={};_0x5872ec[_0x4b6718(0x1ec)]=_0x41dff3,_0x5872ec['timeout']=_0x512e5;const _0x106156=await got[_0x4b6718(0x1ee)](this[_0x4b6718(0x206)]+_0x4b6718(0x200)+this['_sessionId']+'/url',this['_opts'](_0x5872ec));if(_0x3d1467[_0x4b6718(0x20a)](_0x106156[_0x4b6718(0x1fc)],0x190))throw new Error(_0x4b6718(0x214)+this[_0x4b6718(0x1d7)]+_0x4b6718(0x1e9)+_0x106156['statusCode']+'\x20'+JSON[_0x4b6718(0x218)](_0x106156[_0x4b6718(0x21d)])[_0x4b6718(0x1e5)](0x0,0x12c));}async['getCurrentUrl'](){const _0x175754=a76_0x123a3f,_0x1a87a4={};_0x1a87a4[_0x175754(0x21c)]=0x7530;const _0x2d09c7={};_0x2d09c7['timeout']=_0x1a87a4;const _0x1370de=await got[_0x175754(0x1e0)](this[_0x175754(0x206)]+'/session/'+this['_sessionId']+_0x175754(0x215),this['_opts'](_0x2d09c7));return _0x1370de['body']&&_0x1370de[_0x175754(0x21d)][_0x175754(0x210)]||'';}async['executeScript'](_0x278006,..._0x116bdb){const _0x594def=a76_0x123a3f,_0x1d1e95={};_0x1d1e95[_0x594def(0x20c)]=_0x278006,_0x1d1e95['args']=_0x116bdb;const _0xdcae8c={};_0xdcae8c[_0x594def(0x21c)]=0xea60;const _0x84da27={};_0x84da27[_0x594def(0x1ec)]=_0x1d1e95,_0x84da27['timeout']=_0xdcae8c;const _0x8b2db5=await got[_0x594def(0x1ee)](this['_hubUrl']+_0x594def(0x200)+this['_sessionId']+_0x594def(0x1e4),this[_0x594def(0x1fa)](_0x84da27));return _0x8b2db5[_0x594def(0x21d)]&&_0x8b2db5[_0x594def(0x21d)][_0x594def(0x210)];}async['executeAsyncScript'](_0x354024,..._0x3d5d47){const _0x23a7c4=a76_0x123a3f,_0x3eec07={};_0x3eec07[_0x23a7c4(0x20c)]=_0x354024,_0x3eec07[_0x23a7c4(0x1fe)]=_0x3d5d47;const _0x20e8df={};_0x20e8df['request']=0x1d4c0;const _0x136822={};_0x136822[_0x23a7c4(0x1ec)]=_0x3eec07,_0x136822['timeout']=_0x20e8df;const _0x5ca416=await got['post'](this[_0x23a7c4(0x206)]+_0x23a7c4(0x200)+this[_0x23a7c4(0x1d7)]+'/execute/async',this[_0x23a7c4(0x1fa)](_0x136822));return _0x5ca416[_0x23a7c4(0x21d)]&&_0x5ca416[_0x23a7c4(0x21d)][_0x23a7c4(0x210)];}async['quit'](){const _0x4b603c=a76_0x123a3f;try{const _0x2a6ced={};_0x2a6ced[_0x4b603c(0x21c)]=0x7530;const _0x2bd661={};_0x2bd661[_0x4b603c(0x217)]=_0x2a6ced,await got[_0x4b603c(0x1de)](this[_0x4b603c(0x206)]+_0x4b603c(0x200)+this[_0x4b603c(0x1d7)],this[_0x4b603c(0x1fa)](_0x2bd661));}catch(_0x1b6c2b){logger[_0x4b603c(0x1f4)](_0x4b603c(0x201)+this[_0x4b603c(0x1d7)]+'\x20failed\x20(likely\x20already\x20closed):\x20'+_0x1b6c2b[_0x4b603c(0x20d)]);}}}async function openSession({hubUrl:_0x1535bf,capabilities:_0x58d53c}){const _0x2e0e7a=a76_0x123a3f,_0x342d07={'VFnAB':function(_0x4faea6,_0x174477){return _0x4faea6(_0x174477);},'afdxt':function(_0x15f347,_0x4d1f59){return _0x15f347||_0x4d1f59;},'jYPTz':_0x2e0e7a(0x1f3),'VsJcp':_0x2e0e7a(0x1ec),'zNShB':_0x2e0e7a(0x1d6),'QthjQ':function(_0x190ed4,_0x4fe459){return _0x190ed4>=_0x4fe459;},'IKKzU':'webdriver.remote.sessionid','BiMEL':function(_0x10a3c7,_0x1da01b){return _0x10a3c7>_0x1da01b;}},{username:_0x2a58a1,password:_0x53effb,url:_0x3b13e8}=_0x342d07[_0x2e0e7a(0x1f7)](_resolveAuth,_0x1535bf);if(_0x342d07[_0x2e0e7a(0x1fd)](!_0x2a58a1,!_0x53effb))throw new Error(_0x342d07[_0x2e0e7a(0x1da)]);const _0x5c177e={};_0x5c177e[_0x2e0e7a(0x1dc)]=_0x58d53c,_0x5c177e[_0x2e0e7a(0x203)]=[{}];const _0x37fed5={};_0x37fed5['capabilities']=_0x5c177e,_0x37fed5[_0x2e0e7a(0x1d5)]=_0x58d53c;const _0x5e3446=_0x37fed5,_0x202737={};_0x202737[_0x2e0e7a(0x21c)]=0x1d4c0;const _0x5060e9={};_0x5060e9[_0x2e0e7a(0x1ec)]=_0x5e3446,_0x5060e9[_0x2e0e7a(0x1f6)]=_0x2a58a1,_0x5060e9['password']=_0x53effb,_0x5060e9[_0x2e0e7a(0x1df)]=_0x342d07[_0x2e0e7a(0x1d2)],_0x5060e9[_0x2e0e7a(0x1e6)]={},_0x5060e9[_0x2e0e7a(0x205)]=![],_0x5060e9[_0x2e0e7a(0x217)]=_0x202737,_0x5060e9[_0x2e0e7a(0x1e6)]['user-agent']=_0x342d07[_0x2e0e7a(0x1e8)];const _0x3cb04f=await got[_0x2e0e7a(0x1ee)](_0x3b13e8+_0x2e0e7a(0x1d3),_0x5060e9);if(_0x342d07['QthjQ'](_0x3cb04f[_0x2e0e7a(0x1fc)],0x190))throw new Error('[w3c-driver]\x20POST\x20/session\x20failed:\x20HTTP\x20'+_0x3cb04f[_0x2e0e7a(0x1fc)]+'\x20'+JSON[_0x2e0e7a(0x218)](_0x3cb04f['body'])[_0x2e0e7a(0x1e5)](0x0,0x190));const _0x597483=_0x3cb04f[_0x2e0e7a(0x21d)]||{},_0x4bce0f=_0x597483['value']||{},_0x46f26b=_0x4bce0f[_0x2e0e7a(0x1fb)]||{},_0x67a2ca=_0x597483[_0x2e0e7a(0x208)]||_0x4bce0f[_0x2e0e7a(0x208)]||_0x4bce0f[_0x342d07[_0x2e0e7a(0x1f5)]]||_0x46f26b[_0x342d07[_0x2e0e7a(0x1f5)]];if(!_0x67a2ca)throw new Error('[w3c-driver]\x20hub\x20returned\x20no\x20sessionId:\x20'+JSON[_0x2e0e7a(0x218)](_0x597483)['slice'](0x0,0x190));const _0xf9d2ac={};return _0xf9d2ac[_0x2e0e7a(0x1f9)]=_0x3b13e8,_0xf9d2ac[_0x2e0e7a(0x208)]=_0x67a2ca,_0xf9d2ac[_0x2e0e7a(0x1f6)]=_0x2a58a1,_0xf9d2ac[_0x2e0e7a(0x216)]=_0x53effb,{'driver':new W3CDriver(_0xf9d2ac),'sessionId':_0x67a2ca,'capabilities':_0x342d07[_0x2e0e7a(0x1d9)](Object[_0x2e0e7a(0x1e3)](_0x46f26b)[_0x2e0e7a(0x1e2)],0x0)?_0x46f26b:_0x58d53c};}const a76_0x3e0fbc={};a76_0x3e0fbc[a76_0x123a3f(0x1ea)]=openSession,a76_0x3e0fbc['W3CDriver']=W3CDriver,module['exports']=a76_0x3e0fbc;function a76_0x4f31(){const _0x37ca6b=['_username','json','30gFxaLc','post','https://','4881510TFkfgQ','GIrvG','navigateTo','[w3c-driver]\x20BROWSERSTACK_USERNAME\x20/\x20BROWSERSTACK_ACCESS_KEY\x20not\x20set\x20—\x20cannot\x20authenticate\x20to\x20hub','debug','IKKzU','username','VFnAB','69FpdfFX','hubUrl','_opts','capabilities','statusCode','afdxt','args','1SgLgnq','/session/','[w3c-driver]\x20DELETE\x20/session\x20','QpFGk','firstMatch','2091832NjznyZ','throwHttpErrors','_hubUrl','120PFErOj','sessionId','1303165mFPUaC','warsI','71252753dddnni','script','message','280994zMMiaH','toString','value','195476wwLUXT','DYiCi','env','[w3c-driver]\x20POST\x20/url\x20failed\x20for\x20','/url','password','timeout','stringify','11416130ROqRsC','lJOHi','LJQoh','request','body','_password','test','../../helpers/logger','VsJcp','/session','trim','desiredCapabilities','browserstack-node-sdk-testcafe','_sessionId','url','BiMEL','jYPTz','QQQne','alwaysMatch','jbdHL','delete','responseType','get','got','length','keys','/execute/sync','slice','headers','winstonLogger','zNShB',':\x20HTTP\x20','openSession'];a76_0x4f31=function(){return _0x37ca6b;};return a76_0x4f31();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a77_0x3779(_0x1597fc,_0x258d76){const _0x4a8920=a77_0x4a89();return a77_0x3779=function(_0x3779cd,_0x35da39){_0x3779cd=_0x3779cd-0x150;let _0x55bc16=_0x4a8920[_0x3779cd];return _0x55bc16;},a77_0x3779(_0x1597fc,_0x258d76);}const a77_0xa3e7af=a77_0x3779;(function(_0x3942ab,_0x534d3f){const _0x57cf66=a77_0x3779,_0x28bac8=_0x3942ab();while(!![]){try{const _0x3f4633=parseInt(_0x57cf66(0x194))/0x1*(parseInt(_0x57cf66(0x16e))/0x2)+parseInt(_0x57cf66(0x1c5))/0x3+parseInt(_0x57cf66(0x192))/0x4+-parseInt(_0x57cf66(0x1c9))/0x5+parseInt(_0x57cf66(0x164))/0x6*(-parseInt(_0x57cf66(0x1af))/0x7)+parseInt(_0x57cf66(0x188))/0x8+-parseInt(_0x57cf66(0x1a2))/0x9*(parseInt(_0x57cf66(0x1b1))/0xa);if(_0x3f4633===_0x534d3f)break;else _0x28bac8['push'](_0x28bac8['shift']());}catch(_0x37f681){_0x28bac8['push'](_0x28bac8['shift']());}}}(a77_0x4a89,0x67d02));const constants=require(a77_0xa3e7af(0x183)),{nestedKeyValue}=require(a77_0xa3e7af(0x16c)),getBrowserstackCLI=()=>{const _0x51a07b=a77_0xa3e7af,_0x3fd892={'rzhzg':function(_0x5c8715,_0x5b6901){return _0x5c8715(_0x5b6901);},'PalgF':_0x51a07b(0x1c7)};return _0x3fd892[_0x51a07b(0x155)](require,_0x3fd892[_0x51a07b(0x16d)]);},ALLOWED_API_HOST_SUFFIXES=[a77_0xa3e7af(0x1ab),'bsstag.com'],isAllowedApiHost=_0xd44cbe=>{const _0x2f7742=a77_0xa3e7af;try{const {hostname:_0x3f08f4}=new URL(_0xd44cbe);return ALLOWED_API_HOST_SUFFIXES[_0x2f7742(0x1a4)](_0x38f93b=>_0x3f08f4===_0x38f93b||_0x3f08f4[_0x2f7742(0x1b0)]('.'+_0x38f93b));}catch{return![];}},safeApiHost=(_0x151584,_0x10b76f)=>{const _0x3aec82=a77_0xa3e7af,_0x31d43e={'VnALn':function(_0x7c33bc,_0x59ca1c){return _0x7c33bc(_0x59ca1c);}};if(_0x151584&&_0x31d43e[_0x3aec82(0x1a7)](isAllowedApiHost,_0x151584))return _0x151584;return _0x10b76f;};function a77_0x4a89(){const _0x3b4fd3=['exports','./sharedUtils','PalgF','2zGaSFI','qKoqv','LFnUQ','Drefq','ZLZOz','LMyZG','appAutomate','TlfEO','tXeHM','klKxh','uOSbJ','YsaOO','zCLQV','golSw','FGsuh','getAppAutomateSessionStatusAPIUrl','NNnTg','oJkue','wnoQu','WLoiK','ryAkM','./constants','uDdXL','AoBQN','giIFW','yXubX','15984iMLoLM','fTBdw','ijVqt','YRDuA','IRBIA','LWokT','wss:','OOGZg','MFfvW','replace','2040508gLJWME','mHWfk','809724pXgTuS','JwhSL','BROWSERSTACK_API_URL','getAppAutomateUploadAPIUrl','iHBvA','toString','WLiol','getAutoCaptureLogsAPIUrl','getConfig','YRNMs','yqpZZ','PLAYWRIGHT_HUB_URL','getAutomateSessionStatusAPIUrl','xeXJb','1614519cIjnKq','xrDme','some','api','AIjRI','VnALn','PUPPETEER_HUB_URL','EDS_URL','apis','browserstack.com','upload','qzGJN','CGFTY','34517MsdyVS','endsWith','40gxWxVX','sPxDZ','AnzfR','SbKoF','XlklI','KMtEe','vzAqx','edsInstrumentation','shsUf','GdqUB','oqUbX','observability','wvnJT','sLMIl','qDJlV','getInstance','EUxUy','NdaRK','automate','WESDF','1884870MVXVQK','TiDqx','../v2/browserstackCLI','pJNPw','3099895soFaNa','upRJz','IWRoT','getDetoxHubUrl','getEdsInstrumentationAPIUrl','/puppeteer?caps=','DETOX_HUB_URL','Alpfx','WQHck','lGuvZ','IZqwZ','reylr','getAppAutomateSessionNameAPIUrl','rzhzg','getAppAutomateSessionsListAPIUrl','OBSERVABILITY_UPLOAD_URL','SPRYz','sljzG','GiBWx','getAutomateSessionNameAPIUrl','getBStackAPIUrl','cdp','iRSCY','uxioG','jSTRC','bOBTo','nONAj','JIniN','228pvsLls','VkYYB','getAutomateSessionsListAPIUrl','dSsXh','VyvsL','GagZZ','ZRJWc'];a77_0x4a89=function(){return _0x3b4fd3;};return a77_0x4a89();}class APIUtilityMethods{static[a77_0xa3e7af(0x15c)](_0x30401f){const _0x36b794=a77_0xa3e7af,_0x1bcf19={'sLMIl':function(_0x2c2984){return _0x2c2984();},'fTBdw':function(_0x53ebae,_0x4a2870,_0x36bccc){return _0x53ebae(_0x4a2870,_0x36bccc);},'PEtwO':_0x36b794(0x1aa),'YRNMs':'automate','vvldn':_0x36b794(0x1a5),'dSsXh':function(_0x1a2063,_0x591b69,_0x145cb6){return _0x1a2063(_0x591b69,_0x145cb6);},'TlfEO':function(_0x574deb,_0x5885f5){return _0x574deb===_0x5885f5;},'ijVqt':function(_0x3a29a7,_0x4c6d3a){return _0x3a29a7+_0x4c6d3a;}},_0x3916d5=_0x1bcf19[_0x36b794(0x1be)](getBrowserstackCLI),_0xcf217d=_0x1bcf19[_0x36b794(0x189)](nestedKeyValue,_0x3916d5[_0x36b794(0x1c0)]()['getConfig'](),[_0x1bcf19['PEtwO'],_0x1bcf19[_0x36b794(0x19d)],_0x1bcf19['vvldn']]),_0x59a95a=_0x1bcf19[_0x36b794(0x167)](safeApiHost,_0xcf217d,constants['BROWSERSTACK_API_URL']);if(!_0x30401f||_0x1bcf19[_0x36b794(0x175)](_0x30401f,''))return _0x59a95a;const _0x82059c=_0x59a95a[_0x36b794(0x1b0)]('/')?_0x59a95a:_0x1bcf19[_0x36b794(0x18a)](_0x59a95a,'/');return new URL(_0x30401f,_0x82059c)[_0x36b794(0x199)]();}static[a77_0xa3e7af(0x1cd)](_0xc6f173){const _0xf9971=a77_0xa3e7af,_0x59f4f0={'jSTRC':function(_0x330379){return _0x330379();},'rwfDP':function(_0x51a7f2,_0x217c47,_0x105d39){return _0x51a7f2(_0x217c47,_0x105d39);},'OOGZg':_0xf9971(0x1aa),'IWRoT':_0xf9971(0x1b8),'JwhSL':_0xf9971(0x1a5),'YRDuA':function(_0x37ca7e,_0x4178d6){return _0x37ca7e===_0x4178d6;},'UYcVg':function(_0x1a84d2,_0x347dc0){return _0x1a84d2+_0x347dc0;}},_0x52863e=_0x59f4f0[_0xf9971(0x160)](getBrowserstackCLI),_0xc9dd00=_0x59f4f0['rwfDP'](nestedKeyValue,_0x52863e[_0xf9971(0x1c0)]()['getConfig'](),[_0x59f4f0[_0xf9971(0x18f)],_0x59f4f0[_0xf9971(0x1cb)],_0x59f4f0[_0xf9971(0x195)]])||constants[_0xf9971(0x1a9)];if(!_0xc6f173||_0x59f4f0[_0xf9971(0x18b)](_0xc6f173,''))return _0xc9dd00;const _0x2fc63c=_0xc9dd00[_0xf9971(0x1b0)]('/')?_0xc9dd00:_0x59f4f0['UYcVg'](_0xc9dd00,'/');return new URL(_0xc6f173,_0x2fc63c)[_0xf9971(0x199)]();}static[a77_0xa3e7af(0x1a0)](_0x534d4e){const _0x15d353=a77_0xa3e7af,_0xe64824={'qzGJN':function(_0xca6467){return _0xca6467();},'sljzG':function(_0x2c1163,_0x132c67,_0x2d9646){return _0x2c1163(_0x132c67,_0x2d9646);},'NNnTg':'apis','oIsJg':_0x15d353(0x1c3),'MFfvW':_0x15d353(0x1a5),'iHBvA':function(_0x19520a,_0x15aeda){return _0x19520a===_0x15aeda;},'tXeHM':function(_0x2e3004,_0x4b989b){return _0x2e3004+_0x4b989b;}},_0x5cc891=_0xe64824[_0x15d353(0x1ad)](getBrowserstackCLI),_0x5660de=_0xe64824[_0x15d353(0x159)](nestedKeyValue,_0x5cc891[_0x15d353(0x1c0)]()[_0x15d353(0x19c)](),[_0xe64824[_0x15d353(0x17e)],_0xe64824['oIsJg'],_0xe64824[_0x15d353(0x190)]])||constants[_0x15d353(0x196)];if(!_0x534d4e||_0xe64824[_0x15d353(0x198)](_0x534d4e,''))return _0x5660de;const _0x475ab4=_0x5660de[_0x15d353(0x1b0)]('/')?_0x5660de:_0xe64824[_0x15d353(0x176)](_0x5660de,'/');return new URL(_0x534d4e,_0x475ab4)[_0x15d353(0x199)]();}static[a77_0xa3e7af(0x17d)](_0x3919ff){const _0x520dd8=a77_0xa3e7af,_0x36f2a8={'QfEFg':function(_0x1d9019){return _0x1d9019();},'qDJlV':function(_0x5111d9,_0x344174,_0x1c2686){return _0x5111d9(_0x344174,_0x1c2686);},'XlklI':_0x520dd8(0x1aa),'golSw':_0x520dd8(0x174),'LMyZG':_0x520dd8(0x1a5),'Drefq':function(_0x540970,_0x86536c){return _0x540970===_0x86536c;},'KMtEe':function(_0x2162c8,_0x5584ba){return _0x2162c8+_0x5584ba;}},_0x176591=_0x36f2a8['QfEFg'](getBrowserstackCLI),_0x51154b=_0x36f2a8[_0x520dd8(0x1bf)](nestedKeyValue,_0x176591[_0x520dd8(0x1c0)]()[_0x520dd8(0x19c)](),[_0x36f2a8[_0x520dd8(0x1b5)],_0x36f2a8[_0x520dd8(0x17b)],_0x36f2a8[_0x520dd8(0x173)]])||constants[_0x520dd8(0x196)];if(!_0x3919ff||_0x36f2a8[_0x520dd8(0x171)](_0x3919ff,''))return _0x51154b;const _0x359064=_0x51154b[_0x520dd8(0x1b0)]('/')?_0x51154b:_0x36f2a8[_0x520dd8(0x1b6)](_0x51154b,'/');return new URL(_0x3919ff,_0x359064)[_0x520dd8(0x199)]();}static[a77_0xa3e7af(0x15b)](_0x2cb613){const _0xce15ae=a77_0xa3e7af,_0x7b9d81={'YdVXK':function(_0x3a24be){return _0x3a24be();},'yTnfN':function(_0x2114fc,_0x42fb52,_0xd2deb4){return _0x2114fc(_0x42fb52,_0xd2deb4);},'LFnUQ':'apis','Alpfx':_0xce15ae(0x1c3),'vzAqx':'api','bOBTo':function(_0x407329,_0x2fd6ac){return _0x407329===_0x2fd6ac;},'FKuOq':function(_0x524dbb,_0xda1a78){return _0x524dbb+_0xda1a78;}},_0x54c38b=_0x7b9d81['YdVXK'](getBrowserstackCLI),_0x8027fd=_0x7b9d81['yTnfN'](nestedKeyValue,_0x54c38b['getInstance']()[_0xce15ae(0x19c)](),[_0x7b9d81[_0xce15ae(0x170)],_0x7b9d81[_0xce15ae(0x1d0)],_0x7b9d81[_0xce15ae(0x1b7)]])||constants[_0xce15ae(0x196)];if(!_0x2cb613||_0x7b9d81[_0xce15ae(0x161)](_0x2cb613,''))return _0x8027fd;const _0x571dcc=_0x8027fd[_0xce15ae(0x1b0)]('/')?_0x8027fd:_0x7b9d81['FKuOq'](_0x8027fd,'/');return new URL(_0x2cb613,_0x571dcc)[_0xce15ae(0x199)]();}static[a77_0xa3e7af(0x154)](_0x4635e8){const _0x769f4b=a77_0xa3e7af,_0x3b7772={'GiBWx':function(_0x149c67){return _0x149c67();},'yqpZZ':function(_0x4bbf81,_0x771c30,_0x390e8a){return _0x4bbf81(_0x771c30,_0x390e8a);},'wvnJT':_0x769f4b(0x1aa),'xrDme':_0x769f4b(0x174),'iRSCY':_0x769f4b(0x1a5),'IZqwZ':function(_0x19c6a9,_0x200f4f){return _0x19c6a9===_0x200f4f;},'NdaRK':function(_0x3b93bf,_0x4ded14){return _0x3b93bf+_0x4ded14;}},_0x19f56e=_0x3b7772[_0x769f4b(0x15a)](getBrowserstackCLI),_0x1a4f9c=_0x3b7772[_0x769f4b(0x19e)](nestedKeyValue,_0x19f56e['getInstance']()[_0x769f4b(0x19c)](),[_0x3b7772[_0x769f4b(0x1bd)],_0x3b7772[_0x769f4b(0x1a3)],_0x3b7772[_0x769f4b(0x15e)]])||constants[_0x769f4b(0x196)];if(!_0x4635e8||_0x3b7772[_0x769f4b(0x152)](_0x4635e8,''))return _0x1a4f9c;const _0x1b19f5=_0x1a4f9c['endsWith']('/')?_0x1a4f9c:_0x3b7772[_0x769f4b(0x1c2)](_0x1a4f9c,'/');return new URL(_0x4635e8,_0x1b19f5)[_0x769f4b(0x199)]();}static[a77_0xa3e7af(0x166)](_0xf52732){const _0x2c8622=a77_0xa3e7af,_0xfced78={'Oevjh':function(_0xc7f513){return _0xc7f513();},'GagZZ':function(_0x184809,_0x4f7ce5,_0x2bd28){return _0x184809(_0x4f7ce5,_0x2bd28);},'coDTb':_0x2c8622(0x1aa),'ZLZOz':_0x2c8622(0x1c3),'qKoqv':'api','WQHck':function(_0xba7601,_0x2a89a9){return _0xba7601===_0x2a89a9;},'SPRYz':function(_0xa23fe8,_0x47b7cb){return _0xa23fe8+_0x47b7cb;}},_0x43226e=_0xfced78['Oevjh'](getBrowserstackCLI),_0x269523=_0xfced78[_0x2c8622(0x169)](nestedKeyValue,_0x43226e[_0x2c8622(0x1c0)]()[_0x2c8622(0x19c)](),[_0xfced78['coDTb'],_0xfced78[_0x2c8622(0x172)],_0xfced78[_0x2c8622(0x16f)]])||constants[_0x2c8622(0x196)];if(!_0xf52732||_0xfced78[_0x2c8622(0x150)](_0xf52732,''))return _0x269523;const _0x50e5b9=_0x269523[_0x2c8622(0x1b0)]('/')?_0x269523:_0xfced78[_0x2c8622(0x158)](_0x269523,'/');return new URL(_0xf52732,_0x50e5b9)[_0x2c8622(0x199)]()[_0x2c8622(0x191)](/^https?:\/\//,'');}static[a77_0xa3e7af(0x156)](_0x6672c4){const _0x5ab8de=a77_0xa3e7af,_0x4fd519={'nONAj':function(_0x277887){return _0x277887();},'sPxDZ':function(_0x8c3d3,_0x28de2d,_0x6f00ca){return _0x8c3d3(_0x28de2d,_0x6f00ca);},'giIFW':_0x5ab8de(0x1aa),'uxioG':_0x5ab8de(0x174),'yXubX':_0x5ab8de(0x1a5),'YsaOO':function(_0x53c948,_0x47d9c6){return _0x53c948===_0x47d9c6;},'WESDF':function(_0x5bcca3,_0x56dcb7){return _0x5bcca3+_0x56dcb7;}},_0xff8526=_0x4fd519[_0x5ab8de(0x162)](getBrowserstackCLI),_0x538ead=_0x4fd519[_0x5ab8de(0x1b2)](nestedKeyValue,_0xff8526[_0x5ab8de(0x1c0)]()['getConfig'](),[_0x4fd519[_0x5ab8de(0x186)],_0x4fd519[_0x5ab8de(0x15f)],_0x4fd519[_0x5ab8de(0x187)]])||constants['APP_UPLOAD_URL'];if(!_0x6672c4||_0x4fd519[_0x5ab8de(0x179)](_0x6672c4,''))return _0x538ead;const _0x31077c=_0x538ead['endsWith']('/')?_0x538ead:_0x4fd519[_0x5ab8de(0x1c4)](_0x538ead,'/');return new URL(_0x6672c4,_0x31077c)[_0x5ab8de(0x199)]()['replace'](/^https?:\/\//,'');}static[a77_0xa3e7af(0x197)](_0x2ed775){const _0x54e430=a77_0xa3e7af,_0x384256={'ZRJWc':function(_0x372976){return _0x372976();},'FGsuh':function(_0x28f93c,_0x282b30,_0x380be5){return _0x28f93c(_0x282b30,_0x380be5);},'AoBQN':_0x54e430(0x1aa),'xeXJb':_0x54e430(0x174),'uOSbJ':_0x54e430(0x1ac),'oJkue':function(_0x4f3041,_0xe51190,_0xb7de6d){return _0x4f3041(_0xe51190,_0xb7de6d);},'CGFTY':_0x54e430(0x1a5),'QjDaw':function(_0x4c95d5,_0x292352){return _0x4c95d5===_0x292352;},'VyvsL':function(_0x4a4b47,_0x14e354){return _0x4a4b47+_0x14e354;}},_0x4053f9=_0x384256[_0x54e430(0x16a)](getBrowserstackCLI),_0x26da6b=_0x384256[_0x54e430(0x17c)](nestedKeyValue,_0x4053f9[_0x54e430(0x1c0)]()[_0x54e430(0x19c)](),[_0x384256[_0x54e430(0x185)],_0x384256[_0x54e430(0x1a1)],_0x384256[_0x54e430(0x178)]])||_0x384256[_0x54e430(0x17f)](nestedKeyValue,_0x4053f9[_0x54e430(0x1c0)]()[_0x54e430(0x19c)](),[_0x384256['AoBQN'],_0x384256[_0x54e430(0x1a1)],_0x384256[_0x54e430(0x1ae)]])||constants['APP_UPLOAD_URL'];if(!_0x2ed775||_0x384256['QjDaw'](_0x2ed775,''))return _0x26da6b;const _0x3d9c50=_0x26da6b[_0x54e430(0x1b0)]('/')?_0x26da6b:_0x384256[_0x54e430(0x168)](_0x26da6b,'/');return new URL(_0x2ed775,_0x3d9c50)['toString']();}static[a77_0xa3e7af(0x19b)](_0x526271){const _0x5c18f8=a77_0xa3e7af,_0x896f5a={'IRBIA':function(_0x1b97bc){return _0x1b97bc();},'zCLQV':function(_0x561093,_0x5f4b5c,_0x144665){return _0x561093(_0x5f4b5c,_0x144665);},'AnzfR':_0x5c18f8(0x1aa),'WLoiK':_0x5c18f8(0x1bc),'yIzIL':_0x5c18f8(0x1ac),'SbKoF':function(_0x4fb028,_0x270d3a){return _0x4fb028===_0x270d3a;},'HVMaH':function(_0x894ba0,_0x46d78c){return _0x894ba0+_0x46d78c;}},_0x48400e=_0x896f5a[_0x5c18f8(0x18c)](getBrowserstackCLI),_0x13b1f5=_0x896f5a[_0x5c18f8(0x17a)](nestedKeyValue,_0x48400e[_0x5c18f8(0x1c0)]()[_0x5c18f8(0x19c)](),[_0x896f5a[_0x5c18f8(0x1b3)],_0x896f5a[_0x5c18f8(0x181)],_0x896f5a['yIzIL']])||constants[_0x5c18f8(0x157)];if(!_0x526271||_0x896f5a[_0x5c18f8(0x1b4)](_0x526271,''))return _0x13b1f5;const _0x3a8df8=_0x13b1f5[_0x5c18f8(0x1b0)]('/')?_0x13b1f5:_0x896f5a['HVMaH'](_0x13b1f5,'/');return new URL(_0x526271,_0x3a8df8)[_0x5c18f8(0x199)]();}static['getPlaywrightHubUrl'](_0x1e5f14){const _0x5ebb66=a77_0xa3e7af,_0x5d94dc={'oqUbX':function(_0x12f1a5){return _0x12f1a5();},'gBgmM':function(_0x5176d4,_0x24b829,_0x2368e2){return _0x5176d4(_0x24b829,_0x2368e2);},'GdqUB':_0x5ebb66(0x1aa),'TgKaF':_0x5ebb66(0x1c3),'mHWfk':_0x5ebb66(0x15d),'VkYYB':_0x5ebb66(0x18e),'eSdDp':function(_0x53bc22,_0x1a776f){return _0x53bc22===_0x1a776f;},'LWokT':function(_0x4bf33c,_0x1e4e0b){return _0x4bf33c+_0x1e4e0b;},'WLiol':'/playwright?caps='},_0x3b25b0=_0x5d94dc[_0x5ebb66(0x1bb)](getBrowserstackCLI),_0x276397=_0x5d94dc['gBgmM'](nestedKeyValue,_0x3b25b0[_0x5ebb66(0x1c0)]()[_0x5ebb66(0x19c)](),[_0x5d94dc[_0x5ebb66(0x1ba)],_0x5d94dc['TgKaF'],_0x5d94dc[_0x5ebb66(0x193)]]),_0x58f0ec=(_0x276397?_0x276397['replace'](/^https:/,_0x5d94dc[_0x5ebb66(0x165)]):null)||constants[_0x5ebb66(0x19f)];let _0x1764ab;if(!_0x1e5f14||_0x5d94dc['eSdDp'](_0x1e5f14,''))_0x1764ab=_0x58f0ec;else{const _0x13059e=_0x58f0ec[_0x5ebb66(0x1b0)]('/')?_0x58f0ec:_0x5d94dc[_0x5ebb66(0x18d)](_0x58f0ec,'/');_0x1764ab=new URL(_0x1e5f14,_0x13059e)[_0x5ebb66(0x199)]();}return!_0x1764ab['endsWith'](_0x5d94dc[_0x5ebb66(0x19a)])&&(_0x1764ab+=_0x5d94dc[_0x5ebb66(0x19a)]),_0x1764ab;}static['getPuppeteerHubUrl'](_0x203b6a){const _0x57b71a=a77_0xa3e7af,_0x30106f={'EUxUy':function(_0x44b8ce){return _0x44b8ce();},'pJNPw':function(_0x50b603,_0x28ca36,_0x313c9c){return _0x50b603(_0x28ca36,_0x313c9c);},'AIjRI':_0x57b71a(0x1aa),'wnoQu':_0x57b71a(0x1c3),'lGuvZ':_0x57b71a(0x15d),'TiDqx':_0x57b71a(0x18e),'shsUf':function(_0x362335,_0x4cac17){return _0x362335===_0x4cac17;},'upRJz':function(_0x116330,_0x19213d){return _0x116330+_0x19213d;},'SJJQh':_0x57b71a(0x1ce)},_0x574fb6=_0x30106f[_0x57b71a(0x1c1)](getBrowserstackCLI),_0x53463c=_0x30106f[_0x57b71a(0x1c8)](nestedKeyValue,_0x574fb6[_0x57b71a(0x1c0)]()[_0x57b71a(0x19c)](),[_0x30106f[_0x57b71a(0x1a6)],_0x30106f[_0x57b71a(0x180)],_0x30106f[_0x57b71a(0x151)]]),_0x1a6afb=(_0x53463c?_0x53463c['replace'](/^https:/,_0x30106f[_0x57b71a(0x1c6)]):null)||constants[_0x57b71a(0x1a8)];let _0x5923d6;if(!_0x203b6a||_0x30106f[_0x57b71a(0x1b9)](_0x203b6a,''))_0x5923d6=_0x1a6afb;else{const _0x30a85b=_0x1a6afb[_0x57b71a(0x1b0)]('/')?_0x1a6afb:_0x30106f[_0x57b71a(0x1ca)](_0x1a6afb,'/');_0x5923d6=new URL(_0x203b6a,_0x30a85b)['toString']();}return!_0x5923d6['endsWith'](_0x30106f['SJJQh'])&&(_0x5923d6+=_0x30106f['SJJQh']),_0x5923d6;}static[a77_0xa3e7af(0x1cc)](_0x20dcf0){const _0x5a6a41=a77_0xa3e7af,_0x2aae55={'ryAkM':function(_0x309315){return _0x309315();},'uSWFd':function(_0x3e4ed7,_0x4b0361,_0x5c3dde){return _0x3e4ed7(_0x4b0361,_0x5c3dde);},'TEGrf':_0x5a6a41(0x1aa),'JIniN':_0x5a6a41(0x174),'uDdXL':'detox','jDtee':_0x5a6a41(0x18e),'reylr':function(_0x49dcc5,_0x240eb0){return _0x49dcc5===_0x240eb0;},'klKxh':function(_0x4cdf4c,_0x2cd5ad){return _0x4cdf4c+_0x2cd5ad;}},_0x38b7be=_0x2aae55[_0x5a6a41(0x182)](getBrowserstackCLI),_0x59303a=_0x38b7be?_0x38b7be[_0x5a6a41(0x1c0)]():null,_0x3abc88=_0x59303a?_0x2aae55['uSWFd'](nestedKeyValue,_0x59303a[_0x5a6a41(0x19c)](),[_0x2aae55['TEGrf'],_0x2aae55[_0x5a6a41(0x163)],_0x2aae55[_0x5a6a41(0x184)]]):null,_0x85a11b=(_0x3abc88?_0x3abc88[_0x5a6a41(0x191)](/^https:/,_0x2aae55['jDtee']):null)||constants[_0x5a6a41(0x1cf)];if(!_0x20dcf0||_0x2aae55[_0x5a6a41(0x153)](_0x20dcf0,''))return _0x85a11b;const _0x11c5e2=_0x85a11b['endsWith']('/')?_0x85a11b:_0x2aae55[_0x5a6a41(0x177)](_0x85a11b,'/');return new URL(_0x20dcf0,_0x11c5e2)[_0x5a6a41(0x199)]();}}module[a77_0xa3e7af(0x16b)]=APIUtilityMethods;
|
|
1
|
+
const a77_0x4fd2cc=a77_0x435a;function a77_0x435a(_0x4d63df,_0x26d316){const _0x314518=a77_0x3145();return a77_0x435a=function(_0x435a2b,_0x5f3c9a){_0x435a2b=_0x435a2b-0xc9;let _0x5aeac8=_0x314518[_0x435a2b];return _0x5aeac8;},a77_0x435a(_0x4d63df,_0x26d316);}(function(_0x46b4b0,_0xae2df5){const _0x428e7a=a77_0x435a,_0x3ea0c5=_0x46b4b0();while(!![]){try{const _0x325308=parseInt(_0x428e7a(0xd0))/0x1+-parseInt(_0x428e7a(0x10e))/0x2*(-parseInt(_0x428e7a(0x12f))/0x3)+parseInt(_0x428e7a(0xe0))/0x4*(parseInt(_0x428e7a(0x12a))/0x5)+parseInt(_0x428e7a(0xe4))/0x6*(-parseInt(_0x428e7a(0xf1))/0x7)+-parseInt(_0x428e7a(0xed))/0x8+parseInt(_0x428e7a(0x144))/0x9*(parseInt(_0x428e7a(0x123))/0xa)+-parseInt(_0x428e7a(0xff))/0xb;if(_0x325308===_0xae2df5)break;else _0x3ea0c5['push'](_0x3ea0c5['shift']());}catch(_0x432acb){_0x3ea0c5['push'](_0x3ea0c5['shift']());}}}(a77_0x3145,0xdf239));function a77_0x3145(){const _0x1182ce=['appAutomate','bYFtx','getAutomateSessionsListAPIUrl','NcNMD','getAppAutomateSessionStatusAPIUrl','soFie','HtySO','YzyIO','4izjnGk','DZaHu','EQEBq','TgYZs','2814MhJGgj','RySAE','observability','nkKqa','LfDdW','getConfig','nPCcy','/playwright?caps=','browserstack.com','3129064CmAhcv','Dfrfn','OBSERVABILITY_UPLOAD_URL','FuXjh','3066MJNpIG','RhcwL','OsfZF','apis','replace','RMDAN','bsstag.com','rrFxI','fMNhJ','uXeDc','MrLKt','dwBWo','BEHJB','getPuppeteerHubUrl','34070300DbdAaK','OudNB','wss:','EDS_URL','MFJJH','getAppAutomateUploadAPIUrl','sDJdz','VKvpB','rYJZH','detox','XMkGI','MRXWq','getBStackAPIUrl','DETOX_HUB_URL','piaih','1812KauZPZ','PovWk','getAutomateSessionStatusAPIUrl','getDetoxHubUrl','ePiCy','BROWSERSTACK_API_URL','AGlny','cdp','haTJl','upload','EdAbY','zAyYO','lefqy','edlMg','nBZMg','./constants','api','zULCS','HORiT','/puppeteer?caps=','getInstance','140wJxbuJ','PUPPETEER_HUB_URL','KgEQu','hisDJ','QhLyF','RBbeo','automate','7376165rEjToc','toString','hUtpc','BPryF','XmnJz','5529LgkPgR','pJfOs','riKet','EnPgr','AtRfv','ADfQc','kVBun','QJoZN','getAutoCaptureLogsAPIUrl','edsInstrumentation','APP_UPLOAD_URL','RTMmZ','some','wksJO','Cczch','uBmAW','getPlaywrightHubUrl','getAppAutomateSessionsListAPIUrl','WCAdo','QyWLb','pMBAC','489798moBxnP','CBvoG','HPzgQ','endsWith','jTBVT','yOBYo','../v2/browserstackCLI','hKRbu','Mowob','700933MgvQjK','MMgAb','INFJU','mFVwp','ARLTz','WRTLZ','getAppAutomateSessionNameAPIUrl','uUEhC'];a77_0x3145=function(){return _0x1182ce;};return a77_0x3145();}const constants=require(a77_0x4fd2cc(0x11d)),{nestedKeyValue}=require('./sharedUtils'),getBrowserstackCLI=()=>{const _0x5cce32=a77_0x4fd2cc,_0x46a54c={'YzyIO':function(_0xbc6edd,_0x166080){return _0xbc6edd(_0x166080);},'RySAE':_0x5cce32(0xcd)};return _0x46a54c[_0x5cce32(0xdf)](require,_0x46a54c[_0x5cce32(0xe5)]);},ALLOWED_API_HOST_SUFFIXES=[a77_0x4fd2cc(0xec),a77_0x4fd2cc(0xf7)],isAllowedApiHost=_0x201afb=>{const _0x1a09b2=a77_0x4fd2cc;try{const {hostname:_0x321d10}=new URL(_0x201afb);return ALLOWED_API_HOST_SUFFIXES[_0x1a09b2(0x13b)](_0x4a7b63=>_0x321d10===_0x4a7b63||_0x321d10[_0x1a09b2(0xca)]('.'+_0x4a7b63));}catch{return![];}},safeApiHost=(_0x449d23,_0x2aefc2)=>{const _0x3f511a=a77_0x4fd2cc,_0x2edc0c={'zAyYO':function(_0x1a84fd,_0x40609d){return _0x1a84fd(_0x40609d);}};if(_0x449d23&&_0x2edc0c[_0x3f511a(0x119)](isAllowedApiHost,_0x449d23))return _0x449d23;return _0x2aefc2;};class APIUtilityMethods{static[a77_0x4fd2cc(0x10b)](_0x5d1b87){const _0x5dbbf5=a77_0x4fd2cc,_0x504d1a={'WRTLZ':function(_0x40ede5){return _0x40ede5();},'XMkGI':function(_0x4b7391,_0x5777f2,_0x5b843f){return _0x4b7391(_0x5777f2,_0x5b843f);},'LuNaN':_0x5dbbf5(0xf4),'ARLTz':'automate','MrLKt':_0x5dbbf5(0x11e),'QJoZN':function(_0x52b007,_0x505144){return _0x52b007===_0x505144;},'CBvoG':function(_0x4a5f20,_0x3bb3dc){return _0x4a5f20+_0x3bb3dc;}},_0x3abe5b=_0x504d1a[_0x5dbbf5(0xd5)](getBrowserstackCLI),_0x5f09d7=_0x504d1a['XMkGI'](nestedKeyValue,_0x3abe5b[_0x5dbbf5(0x122)]()[_0x5dbbf5(0xe9)](),[_0x504d1a['LuNaN'],_0x504d1a[_0x5dbbf5(0xd4)],_0x504d1a[_0x5dbbf5(0xfb)]]),_0x13592c=_0x504d1a[_0x5dbbf5(0x109)](safeApiHost,_0x5f09d7,constants[_0x5dbbf5(0x113)]);if(!_0x5d1b87||_0x504d1a[_0x5dbbf5(0x136)](_0x5d1b87,''))return _0x13592c;const _0x37c059=_0x13592c['endsWith']('/')?_0x13592c:_0x504d1a[_0x5dbbf5(0x145)](_0x13592c,'/');return new URL(_0x5d1b87,_0x37c059)[_0x5dbbf5(0x12b)]();}static['getEdsInstrumentationAPIUrl'](_0x3da485){const _0x8bb11d=a77_0x4fd2cc,_0x2bc443={'uBmAW':function(_0xdcc94e){return _0xdcc94e();},'LfDdW':function(_0x9e7e56,_0x53b8b1,_0x837137){return _0x9e7e56(_0x53b8b1,_0x837137);},'fMNhJ':_0x8bb11d(0xf4),'dwBWo':_0x8bb11d(0x138),'blQgI':'api','MMgAb':function(_0x4e5634,_0x33633f){return _0x4e5634===_0x33633f;},'VTQbw':function(_0x389e5c,_0x4acf5){return _0x389e5c+_0x4acf5;}},_0x10b9d3=_0x2bc443[_0x8bb11d(0x13e)](getBrowserstackCLI),_0x5e63cf=_0x2bc443[_0x8bb11d(0xe8)](nestedKeyValue,_0x10b9d3['getInstance']()['getConfig'](),[_0x2bc443[_0x8bb11d(0xf9)],_0x2bc443[_0x8bb11d(0xfc)],_0x2bc443['blQgI']])||constants[_0x8bb11d(0x102)];if(!_0x3da485||_0x2bc443[_0x8bb11d(0xd1)](_0x3da485,''))return _0x5e63cf;const _0x844230=_0x5e63cf[_0x8bb11d(0xca)]('/')?_0x5e63cf:_0x2bc443['VTQbw'](_0x5e63cf,'/');return new URL(_0x3da485,_0x844230)[_0x8bb11d(0x12b)]();}static[a77_0x4fd2cc(0x110)](_0x15b934){const _0x1fe8bf=a77_0x4fd2cc,_0x54c231={'mFVwp':function(_0x223d77){return _0x223d77();},'soFie':function(_0x2b9cac,_0x5e1ca4,_0x136f5d){return _0x2b9cac(_0x5e1ca4,_0x136f5d);},'TgYZs':'apis','HPzgQ':_0x1fe8bf(0x129),'Dfrfn':'api','VKvpB':function(_0xe475cd,_0xe01e3b){return _0xe475cd===_0xe01e3b;},'RKOqG':function(_0x3fc98e,_0x5b8ea2){return _0x3fc98e+_0x5b8ea2;}},_0x4c1889=_0x54c231[_0x1fe8bf(0xd3)](getBrowserstackCLI),_0x409b95=_0x54c231[_0x1fe8bf(0xdd)](nestedKeyValue,_0x4c1889[_0x1fe8bf(0x122)]()[_0x1fe8bf(0xe9)](),[_0x54c231[_0x1fe8bf(0xe3)],_0x54c231[_0x1fe8bf(0xc9)],_0x54c231[_0x1fe8bf(0xee)]])||constants[_0x1fe8bf(0x113)];if(!_0x15b934||_0x54c231[_0x1fe8bf(0x106)](_0x15b934,''))return _0x409b95;const _0xadf4a3=_0x409b95['endsWith']('/')?_0x409b95:_0x54c231['RKOqG'](_0x409b95,'/');return new URL(_0x15b934,_0xadf4a3)[_0x1fe8bf(0x12b)]();}static[a77_0x4fd2cc(0xdc)](_0x12055a){const _0x395b19=a77_0x4fd2cc,_0x1f8290={'oVlNS':function(_0x3722b8){return _0x3722b8();},'NcNMD':function(_0xcfc07f,_0x31f272,_0x55bc20){return _0xcfc07f(_0x31f272,_0x55bc20);},'bYFtx':_0x395b19(0xf4),'MFJJH':_0x395b19(0xd8),'pJfOs':_0x395b19(0x11e),'OudNB':function(_0x386579,_0xd0ec6b){return _0x386579===_0xd0ec6b;},'XmnJz':function(_0x2d5b76,_0x2e6338){return _0x2d5b76+_0x2e6338;}},_0x2005ed=_0x1f8290['oVlNS'](getBrowserstackCLI),_0x4d82c2=_0x1f8290[_0x395b19(0xdb)](nestedKeyValue,_0x2005ed[_0x395b19(0x122)]()['getConfig'](),[_0x1f8290[_0x395b19(0xd9)],_0x1f8290[_0x395b19(0x103)],_0x1f8290[_0x395b19(0x130)]])||constants['BROWSERSTACK_API_URL'];if(!_0x12055a||_0x1f8290[_0x395b19(0x100)](_0x12055a,''))return _0x4d82c2;const _0x63b80c=_0x4d82c2['endsWith']('/')?_0x4d82c2:_0x1f8290[_0x395b19(0x12e)](_0x4d82c2,'/');return new URL(_0x12055a,_0x63b80c)['toString']();}static['getAutomateSessionNameAPIUrl'](_0x4701f5){const _0x2aef58=a77_0x4fd2cc,_0x1503fc={'sDJdz':function(_0x56b557){return _0x56b557();},'pMBAC':function(_0x14a00b,_0x172ea4,_0x410ea4){return _0x14a00b(_0x172ea4,_0x410ea4);},'wksJO':_0x2aef58(0xf4),'QyWLb':_0x2aef58(0x129),'PovWk':_0x2aef58(0x11e),'iArEA':function(_0x143927,_0x49d167){return _0x143927===_0x49d167;},'WCAdo':function(_0x32cb0f,_0x289f50){return _0x32cb0f+_0x289f50;}},_0x5cc005=_0x1503fc[_0x2aef58(0x105)](getBrowserstackCLI),_0x4cc509=_0x1503fc[_0x2aef58(0x143)](nestedKeyValue,_0x5cc005['getInstance']()['getConfig'](),[_0x1503fc[_0x2aef58(0x13c)],_0x1503fc[_0x2aef58(0x142)],_0x1503fc[_0x2aef58(0x10f)]])||constants['BROWSERSTACK_API_URL'];if(!_0x4701f5||_0x1503fc['iArEA'](_0x4701f5,''))return _0x4cc509;const _0x447dbc=_0x4cc509[_0x2aef58(0xca)]('/')?_0x4cc509:_0x1503fc[_0x2aef58(0x141)](_0x4cc509,'/');return new URL(_0x4701f5,_0x447dbc)[_0x2aef58(0x12b)]();}static[a77_0x4fd2cc(0xd6)](_0x2105f4){const _0x2e6839=a77_0x4fd2cc,_0x2b60db={'nPCcy':function(_0x4dbd69){return _0x4dbd69();},'HORiT':function(_0xb90032,_0x3eabca,_0x36f4a8){return _0xb90032(_0x3eabca,_0x36f4a8);},'yOBYo':_0x2e6839(0xf4),'piaih':_0x2e6839(0xd8),'DZaHu':_0x2e6839(0x11e),'BEHJB':function(_0xd98a3d,_0x455f79){return _0xd98a3d===_0x455f79;},'qpaar':function(_0xa5d7fc,_0x491d43){return _0xa5d7fc+_0x491d43;}},_0x210456=_0x2b60db[_0x2e6839(0xea)](getBrowserstackCLI),_0x2c4aff=_0x2b60db[_0x2e6839(0x120)](nestedKeyValue,_0x210456[_0x2e6839(0x122)]()[_0x2e6839(0xe9)](),[_0x2b60db[_0x2e6839(0xcc)],_0x2b60db[_0x2e6839(0x10d)],_0x2b60db[_0x2e6839(0xe1)]])||constants[_0x2e6839(0x113)];if(!_0x2105f4||_0x2b60db[_0x2e6839(0xfd)](_0x2105f4,''))return _0x2c4aff;const _0x33a1e4=_0x2c4aff['endsWith']('/')?_0x2c4aff:_0x2b60db['qpaar'](_0x2c4aff,'/');return new URL(_0x2105f4,_0x33a1e4)[_0x2e6839(0x12b)]();}static[a77_0x4fd2cc(0xda)](_0x1e2085){const _0x331270=a77_0x4fd2cc,_0x3cba53={'QhLyF':function(_0x4d5255){return _0x4d5255();},'riKet':function(_0x5b6466,_0x4bd85e,_0x308ef4){return _0x5b6466(_0x4bd85e,_0x308ef4);},'lefqy':_0x331270(0xf4),'uXeDc':'automate','EnPgr':_0x331270(0x11e),'AtRfv':function(_0x10fda8,_0x1c79d7){return _0x10fda8===_0x1c79d7;},'FCmWK':function(_0x6c7702,_0x4dc25e){return _0x6c7702+_0x4dc25e;}},_0x453c55=_0x3cba53[_0x331270(0x127)](getBrowserstackCLI),_0x4c2aa4=_0x3cba53[_0x331270(0x131)](nestedKeyValue,_0x453c55[_0x331270(0x122)]()[_0x331270(0xe9)](),[_0x3cba53[_0x331270(0x11a)],_0x3cba53[_0x331270(0xfa)],_0x3cba53[_0x331270(0x132)]])||constants['BROWSERSTACK_API_URL'];if(!_0x1e2085||_0x3cba53[_0x331270(0x133)](_0x1e2085,''))return _0x4c2aa4;const _0x578b3d=_0x4c2aa4[_0x331270(0xca)]('/')?_0x4c2aa4:_0x3cba53['FCmWK'](_0x4c2aa4,'/');return new URL(_0x1e2085,_0x578b3d)['toString']()[_0x331270(0xf5)](/^https?:\/\//,'');}static[a77_0x4fd2cc(0x140)](_0x40c134){const _0x2f7f14=a77_0x4fd2cc,_0x3da660={'cAyQV':function(_0x2d66c2){return _0x2d66c2();},'jTBVT':function(_0x5467a0,_0x221def,_0x233e8a){return _0x5467a0(_0x221def,_0x233e8a);},'URCTz':_0x2f7f14(0xf4),'rvjSn':_0x2f7f14(0xd8),'CrVDa':'api','NMyYv':function(_0x220952,_0x2195de){return _0x220952===_0x2195de;},'HtySO':function(_0x1cbe01,_0x4e2156){return _0x1cbe01+_0x4e2156;}},_0x152a25=_0x3da660['cAyQV'](getBrowserstackCLI),_0xc6d50d=_0x3da660[_0x2f7f14(0xcb)](nestedKeyValue,_0x152a25[_0x2f7f14(0x122)]()[_0x2f7f14(0xe9)](),[_0x3da660['URCTz'],_0x3da660['rvjSn'],_0x3da660['CrVDa']])||constants['APP_UPLOAD_URL'];if(!_0x40c134||_0x3da660['NMyYv'](_0x40c134,''))return _0xc6d50d;const _0x3ded3f=_0xc6d50d['endsWith']('/')?_0xc6d50d:_0x3da660[_0x2f7f14(0xde)](_0xc6d50d,'/');return new URL(_0x40c134,_0x3ded3f)[_0x2f7f14(0x12b)]()[_0x2f7f14(0xf5)](/^https?:\/\//,'');}static[a77_0x4fd2cc(0x104)](_0x60f04f){const _0x520df8=a77_0x4fd2cc,_0x41cc5a={'bNXpW':function(_0x2ddc4f){return _0x2ddc4f();},'Cczch':function(_0x1d12cf,_0x10ad9f,_0x48c205){return _0x1d12cf(_0x10ad9f,_0x48c205);},'RTMmZ':_0x520df8(0xf4),'RBbeo':_0x520df8(0xd8),'bTSQE':_0x520df8(0x117),'haTJl':function(_0x155a75,_0x1e4bef,_0x5c6d48){return _0x155a75(_0x1e4bef,_0x5c6d48);},'INFJU':_0x520df8(0x11e),'DKorA':function(_0x2261b2,_0x3556fb){return _0x2261b2===_0x3556fb;},'KmkVe':function(_0x4ff328,_0x52cd3a){return _0x4ff328+_0x52cd3a;}},_0x52945f=_0x41cc5a['bNXpW'](getBrowserstackCLI),_0x42a843=_0x41cc5a[_0x520df8(0x13d)](nestedKeyValue,_0x52945f[_0x520df8(0x122)]()[_0x520df8(0xe9)](),[_0x41cc5a[_0x520df8(0x13a)],_0x41cc5a[_0x520df8(0x128)],_0x41cc5a['bTSQE']])||_0x41cc5a[_0x520df8(0x116)](nestedKeyValue,_0x52945f[_0x520df8(0x122)]()[_0x520df8(0xe9)](),[_0x41cc5a['RTMmZ'],_0x41cc5a[_0x520df8(0x128)],_0x41cc5a[_0x520df8(0xd2)]])||constants[_0x520df8(0x139)];if(!_0x60f04f||_0x41cc5a['DKorA'](_0x60f04f,''))return _0x42a843;const _0x5c2c92=_0x42a843[_0x520df8(0xca)]('/')?_0x42a843:_0x41cc5a['KmkVe'](_0x42a843,'/');return new URL(_0x60f04f,_0x5c2c92)['toString']();}static[a77_0x4fd2cc(0x137)](_0x514930){const _0x111442=a77_0x4fd2cc,_0x211ca2={'jolSQ':function(_0x2d20b7){return _0x2d20b7();},'RMDAN':function(_0x23b480,_0x12c59e,_0xad1316){return _0x23b480(_0x12c59e,_0xad1316);},'uUEhC':_0x111442(0xf4),'kVBun':_0x111442(0xe6),'RhcwL':_0x111442(0x117),'hisDJ':function(_0x5483fa,_0x269044){return _0x5483fa===_0x269044;},'oOxGY':function(_0x5762d8,_0x7f8fd){return _0x5762d8+_0x7f8fd;}},_0x463c29=_0x211ca2['jolSQ'](getBrowserstackCLI),_0x5802ec=_0x211ca2[_0x111442(0xf6)](nestedKeyValue,_0x463c29[_0x111442(0x122)]()[_0x111442(0xe9)](),[_0x211ca2[_0x111442(0xd7)],_0x211ca2[_0x111442(0x135)],_0x211ca2[_0x111442(0xf2)]])||constants[_0x111442(0xef)];if(!_0x514930||_0x211ca2[_0x111442(0x126)](_0x514930,''))return _0x5802ec;const _0x215666=_0x5802ec[_0x111442(0xca)]('/')?_0x5802ec:_0x211ca2['oOxGY'](_0x5802ec,'/');return new URL(_0x514930,_0x215666)[_0x111442(0x12b)]();}static[a77_0x4fd2cc(0x13f)](_0x3c6a58){const _0x51f54e=a77_0x4fd2cc,_0x6f99cf={'hUtpc':function(_0x1aea69){return _0x1aea69();},'ADfQc':function(_0x2e96ec,_0x5c78e,_0x4e479d){return _0x2e96ec(_0x5c78e,_0x4e479d);},'ePiCy':'apis','dveoP':_0x51f54e(0x129),'EdAbY':'cdp','KgEQu':_0x51f54e(0x101),'edlMg':function(_0x209a29,_0x52f737){return _0x209a29===_0x52f737;},'FuXjh':function(_0x1d85ec,_0x265851){return _0x1d85ec+_0x265851;},'OsfZF':_0x51f54e(0xeb)},_0x398e6c=_0x6f99cf[_0x51f54e(0x12c)](getBrowserstackCLI),_0x111605=_0x6f99cf[_0x51f54e(0x134)](nestedKeyValue,_0x398e6c[_0x51f54e(0x122)]()['getConfig'](),[_0x6f99cf[_0x51f54e(0x112)],_0x6f99cf['dveoP'],_0x6f99cf[_0x51f54e(0x118)]]),_0x2d73e1=(_0x111605?_0x111605[_0x51f54e(0xf5)](/^https:/,_0x6f99cf[_0x51f54e(0x125)]):null)||constants['PLAYWRIGHT_HUB_URL'];let _0x2d9813;if(!_0x3c6a58||_0x6f99cf[_0x51f54e(0x11b)](_0x3c6a58,''))_0x2d9813=_0x2d73e1;else{const _0x43a1d9=_0x2d73e1[_0x51f54e(0xca)]('/')?_0x2d73e1:_0x6f99cf[_0x51f54e(0xf0)](_0x2d73e1,'/');_0x2d9813=new URL(_0x3c6a58,_0x43a1d9)[_0x51f54e(0x12b)]();}return!_0x2d9813[_0x51f54e(0xca)](_0x6f99cf[_0x51f54e(0xf3)])&&(_0x2d9813+=_0x6f99cf[_0x51f54e(0xf3)]),_0x2d9813;}static[a77_0x4fd2cc(0xfe)](_0x1b7087){const _0x55ccde=a77_0x4fd2cc,_0x269219={'BPryF':function(_0x770921){return _0x770921();},'edNQF':function(_0x4651fb,_0x36e8c6,_0x18e91f){return _0x4651fb(_0x36e8c6,_0x18e91f);},'MRXWq':'apis','rrFxI':'automate','EQEBq':_0x55ccde(0x115),'nBZMg':_0x55ccde(0x101),'nkKqa':function(_0x1103e3,_0x119f0e){return _0x1103e3===_0x119f0e;},'syowM':function(_0xa65465,_0x6f0c53){return _0xa65465+_0x6f0c53;},'Mowob':_0x55ccde(0x121)},_0x1bf2fe=_0x269219[_0x55ccde(0x12d)](getBrowserstackCLI),_0x24b2df=_0x269219['edNQF'](nestedKeyValue,_0x1bf2fe['getInstance']()['getConfig'](),[_0x269219[_0x55ccde(0x10a)],_0x269219[_0x55ccde(0xf8)],_0x269219[_0x55ccde(0xe2)]]),_0x46c434=(_0x24b2df?_0x24b2df['replace'](/^https:/,_0x269219[_0x55ccde(0x11c)]):null)||constants[_0x55ccde(0x124)];let _0x23fa54;if(!_0x1b7087||_0x269219[_0x55ccde(0xe7)](_0x1b7087,''))_0x23fa54=_0x46c434;else{const _0x1fb91c=_0x46c434[_0x55ccde(0xca)]('/')?_0x46c434:_0x269219['syowM'](_0x46c434,'/');_0x23fa54=new URL(_0x1b7087,_0x1fb91c)[_0x55ccde(0x12b)]();}return!_0x23fa54[_0x55ccde(0xca)](_0x269219[_0x55ccde(0xcf)])&&(_0x23fa54+=_0x269219[_0x55ccde(0xcf)]),_0x23fa54;}static[a77_0x4fd2cc(0x111)](_0x425a94){const _0x47dc7c=a77_0x4fd2cc,_0x564860={'Eyhjh':function(_0x2b37f3){return _0x2b37f3();},'hseAh':function(_0x4b10aa,_0x5d163a,_0xd01c28){return _0x4b10aa(_0x5d163a,_0xd01c28);},'QiNHB':_0x47dc7c(0xf4),'zULCS':_0x47dc7c(0xd8),'hKRbu':_0x47dc7c(0x108),'XToLZ':'wss:','AGlny':function(_0x27eadb,_0x4b92c0){return _0x27eadb===_0x4b92c0;},'rYJZH':function(_0x5f60f4,_0x4b5bf1){return _0x5f60f4+_0x4b5bf1;}},_0x84c4ba=_0x564860['Eyhjh'](getBrowserstackCLI),_0x47801f=_0x84c4ba?_0x84c4ba[_0x47dc7c(0x122)]():null,_0x26e23e=_0x47801f?_0x564860['hseAh'](nestedKeyValue,_0x47801f[_0x47dc7c(0xe9)](),[_0x564860['QiNHB'],_0x564860[_0x47dc7c(0x11f)],_0x564860[_0x47dc7c(0xce)]]):null,_0x3bc65d=(_0x26e23e?_0x26e23e[_0x47dc7c(0xf5)](/^https:/,_0x564860['XToLZ']):null)||constants[_0x47dc7c(0x10c)];if(!_0x425a94||_0x564860[_0x47dc7c(0x114)](_0x425a94,''))return _0x3bc65d;const _0x4b66ba=_0x3bc65d[_0x47dc7c(0xca)]('/')?_0x3bc65d:_0x564860[_0x47dc7c(0x107)](_0x3bc65d,'/');return new URL(_0x425a94,_0x4b66ba)[_0x47dc7c(0x12b)]();}}module['exports']=APIUtilityMethods;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a78_0x5a96a5=a78_0x2468;function a78_0x8012(){const _0x4a32f6=['11qClCEX','fBLUr','{ENV_VAR}','OnPAZ','base64','vVSaU','xIlKv','getAggregatedErrorCodes','push','Session\x20Linking\x20Issue','6NRhQlQ','2956290YphIbl','3032515cKcwpA','isRunning','getFinalErrorMessage','logError','errorCodesOccurredInCLI','replace','getAggregatedClientTroubleshootingErrors','reportSSLCertIssue','Process\x20Interruption','getErrorMessage','error','dCpQX','FJxid','pgvpE','getErrorDetails','FvekV','9XgdmMw','dhsXJ','winstonLogger','1232504XkISXV','length','reportDotBrowserStackFolderNotAccessibleIssue','64710ozmqYf','getSuccess','reportConnectivityIssue','{ERROR_CODES}','size','PJpiP','../v2/browserstackCLI','TAAtj','getErrorCodesOccurredInCli','reportFinalDetectionState','EIPKt','logSituation','RwlBv','errorMessage','uwQbL','CQuXl','9501736OfPeZB','finalErrorMessage','keys','add','Connectivity\x20Issue\x20details\x20not\x20found','parse','zPtvt','getDocumentationLink','CKsgs','Process\x20Interruption\x20details\x20not\x20found:','getInstance','./constants','SSL\x20Certificate\x20Issue\x20details\x20not\x20found.\x20To\x20pass\x20a\x20custom\x20CA\x20bundle,\x20set\x20NODE_EXTRA_CA_CERTS\x20or\x20BROWSERSTACK_EXTRA_CA_CERTS\x20env\x20var\x20to\x20the\x20certificate\x20file\x20path.','NxZKc','{SIGNAL}','browserstack\x20cloud\x20not\x20reachable','sglTL','reportProcessInterruptionSituation','errorCode','qEVkN','toString','tdmnE','[ClientTroubleShootingService]\x20','1752196PSvYeP','FPHfn','1379668TBVDUQ','.browserstack\x20folder\x20not\x20accessible','conflicting\x20env\x20var\x20detected','exports','Conflicting\x20Env\x20Var\x20details\x20not\x20found','naRGn','.browserstack\x20Folder\x20Not\x20Accessible\x20details\x20not\x20found','TGJyu','cachedErrorCodes','HmSmc','cvKvd','checkForErrorsOccuredInCLI','YQXvU','documentationLink','112jSpVHw','Error\x20in\x20getting\x20aggregated\x20error\x20codes:','from','errorCodes','stringify','getErrorCodes','join','XsDrz','NevOx','getErrorCode','reportConflictingEnvVarIssue','errorCodesOccurredWhenCLINotRunning','warn','reportClientTroubleshootingError','BZDZX','OrcYP'];a78_0x8012=function(){return _0x4a32f6;};return a78_0x8012();}function a78_0x2468(_0x8c050b,_0x1aa65a){const _0x8012c7=a78_0x8012();return a78_0x2468=function(_0x2468ca,_0x227fc8){_0x2468ca=_0x2468ca-0x17e;let _0x2beb18=_0x8012c7[_0x2468ca];return _0x2beb18;},a78_0x2468(_0x8c050b,_0x1aa65a);}(function(_0x5593c5,_0xfa57d1){const _0x27e6c3=a78_0x2468,_0x7669c4=_0x5593c5();while(!![]){try{const _0x27eb30=parseInt(_0x27e6c3(0x1d5))/0x1+-parseInt(_0x27e6c3(0x1e3))/0x2*(parseInt(_0x27e6c3(0x1ac))/0x3)+parseInt(_0x27e6c3(0x1d3))/0x4+parseInt(_0x27e6c3(0x196))/0x5*(-parseInt(_0x27e6c3(0x194))/0x6)+-parseInt(_0x27e6c3(0x1a9))/0x7+parseInt(_0x27e6c3(0x1bc))/0x8*(parseInt(_0x27e6c3(0x1a6))/0x9)+parseInt(_0x27e6c3(0x195))/0xa*(-parseInt(_0x27e6c3(0x18a))/0xb);if(_0x27eb30===_0xfa57d1)break;else _0x7669c4['push'](_0x7669c4['shift']());}catch(_0x3c9266){_0x7669c4['push'](_0x7669c4['shift']());}}}(a78_0x8012,0xaf9ce));const logger=require('../../helpers/logger')[a78_0x5a96a5(0x1a8)],BrowserstackCLI=require(a78_0x5a96a5(0x1b2)),GrpcClient=require('../v2/grpcClient'),constants=require(a78_0x5a96a5(0x1c7));class ClientTroubleShootingService{static [a78_0x5a96a5(0x1dd)]=null;static [a78_0x5a96a5(0x185)]=new Set();static async[a78_0x5a96a5(0x1a4)](_0x19f4c9){const _0x2991c3=a78_0x5a96a5,_0xd8e49d={};_0xd8e49d[_0x2991c3(0x1d4)]=function(_0xc88fde,_0x27415e){return _0xc88fde!==_0x27415e;};const _0x23c12c=_0xd8e49d;try{if(BrowserstackCLI[_0x2991c3(0x1c6)]()['isRunning']()){const _0x4d6579=await GrpcClient[_0x2991c3(0x1c6)]()[_0x2991c3(0x187)](_0x19f4c9);if(_0x23c12c[_0x2991c3(0x1d4)](_0x4d6579,null)&&_0x4d6579[_0x2991c3(0x1ad)]())return{'errorCode':_0x4d6579[_0x2991c3(0x183)](),'errorMessage':_0x4d6579[_0x2991c3(0x19f)]()};return{};}return{};}catch(_0x185fde){return this[_0x2991c3(0x199)]('Error\x20in\x20getting\x20error\x20details\x20for\x20'+_0x19f4c9+':',_0x185fde),{};}}static async['getAggregatedErrorCodes'](){const _0x26583f=a78_0x5a96a5,_0x331525={};_0x331525[_0x26583f(0x1a1)]=function(_0x11555d,_0x3985d4){return _0x11555d!==_0x3985d4;},_0x331525[_0x26583f(0x1de)]=_0x26583f(0x18e),_0x331525[_0x26583f(0x1b8)]=_0x26583f(0x1e4);const _0x1ca4d8=_0x331525;try{if(BrowserstackCLI['getInstance']()[_0x26583f(0x197)]()){const _0x46e00d=await GrpcClient['getInstance']()[_0x26583f(0x19c)]();if(_0x1ca4d8[_0x26583f(0x1a1)](_0x46e00d,null)&&_0x46e00d[_0x26583f(0x1ad)]()){const _0x2045d3=Buffer[_0x26583f(0x1e5)](_0x46e00d[_0x26583f(0x17f)](),_0x1ca4d8['HmSmc'])[_0x26583f(0x1d0)](),_0x22497b=_0x2045d3?JSON[_0x26583f(0x1c1)](_0x2045d3):[],_0x1a87f2=_0x46e00d[_0x26583f(0x1c3)](),_0x1fbbb3=_0x46e00d[_0x26583f(0x198)](),_0x3e0d8a=Buffer[_0x26583f(0x1e5)](_0x46e00d[_0x26583f(0x1b4)](),_0x1ca4d8[_0x26583f(0x1de)])[_0x26583f(0x1d0)](),_0x252c47=_0x3e0d8a?JSON['parse'](_0x3e0d8a):[],_0x21465b={};return _0x21465b[_0x26583f(0x1e6)]=_0x22497b,_0x21465b[_0x26583f(0x1e2)]=_0x1a87f2,_0x21465b[_0x26583f(0x1bd)]=_0x1fbbb3,_0x21465b[_0x26583f(0x19a)]=_0x252c47,_0x21465b;}const _0xdec84={};return _0xdec84[_0x26583f(0x1e6)]=[],_0xdec84['documentationLink']='',_0xdec84[_0x26583f(0x1bd)]='',_0xdec84[_0x26583f(0x19a)]=[],_0xdec84;}const _0x605010={};return _0x605010[_0x26583f(0x1e6)]=[],_0x605010[_0x26583f(0x1e2)]='',_0x605010['finalErrorMessage']='',_0x605010[_0x26583f(0x19a)]=[],_0x605010;}catch(_0x1d7471){this['logError'](_0x1ca4d8[_0x26583f(0x1b8)],_0x1d7471);const _0x5d860b={};return _0x5d860b[_0x26583f(0x1e6)]=[],_0x5d860b[_0x26583f(0x1e2)]='',_0x5d860b['finalErrorMessage']='',_0x5d860b[_0x26583f(0x19a)]=[],_0x5d860b;}}static[a78_0x5a96a5(0x1b7)](_0x59dd3d,_0x45d7ab){const _0x128703=a78_0x5a96a5;logger[_0x128703(0x186)](_0x59dd3d+':\x20'+_0x45d7ab);}static['checkForErrorsOccuredInCLI'](_0x5644a0){const _0x4555b7=a78_0x5a96a5,_0x3434d0={};_0x3434d0['NevOx']=function(_0x270272,_0x4abb17){return _0x270272!=_0x4abb17;},_0x3434d0[_0x4555b7(0x189)]=function(_0x5d28fd,_0x180506){return _0x5d28fd>_0x180506;},_0x3434d0[_0x4555b7(0x1e1)]=function(_0x2f3c35,_0x18e21e){return _0x2f3c35!=_0x18e21e;};const _0x5c1509=_0x3434d0,_0x4bfec4=[];if(_0x5c1509[_0x4555b7(0x182)](_0x5644a0,null)&&_0x5c1509[_0x4555b7(0x182)](_0x5644a0['errorCodesOccurredInCLI'],null)&&_0x5c1509[_0x4555b7(0x189)](_0x5644a0[_0x4555b7(0x19a)][_0x4555b7(0x1aa)],0x0))for(const _0x37b072 of _0x5644a0[_0x4555b7(0x19a)]){_0x5c1509['YQXvU'](_0x37b072[_0x4555b7(0x1ce)],null)&&_0x5c1509[_0x4555b7(0x1e1)](_0x37b072[_0x4555b7(0x1b9)],null)&&(_0x4bfec4[_0x4555b7(0x192)](_0x37b072[_0x4555b7(0x1ce)]),this[_0x4555b7(0x1b7)](_0x37b072[_0x4555b7(0x1ce)],_0x37b072[_0x4555b7(0x1b9)]));}return _0x4bfec4;}static['getCachedErrorCodes'](){const _0x2c3a32=a78_0x5a96a5;return this[_0x2c3a32(0x1dd)];}static[a78_0x5a96a5(0x199)](_0x2890b9,_0x37ab85){const _0x8eb6c7=a78_0x5a96a5,_0x2fcc88={};_0x2fcc88['FJxid']=function(_0x17900a,_0x268f2b){return _0x17900a===_0x268f2b;},_0x2fcc88[_0x8eb6c7(0x18b)]='object';const _0x328232=_0x2fcc88;if(_0x328232[_0x8eb6c7(0x1a2)](typeof _0x37ab85,_0x328232[_0x8eb6c7(0x18b)]))try{logger[_0x8eb6c7(0x1a0)](_0x8eb6c7(0x1d2)+_0x2890b9+'\x20'+JSON[_0x8eb6c7(0x17e)](_0x37ab85));}catch(_0x99a6df){logger[_0x8eb6c7(0x1a0)](_0x8eb6c7(0x1d2)+_0x2890b9+'\x20'+_0x37ab85);}else logger[_0x8eb6c7(0x1a0)](_0x8eb6c7(0x1d2)+_0x2890b9+'\x20'+_0x37ab85);}static async[a78_0x5a96a5(0x1cd)](_0x13fc9d){const _0x42dd73=a78_0x5a96a5,_0x466f17={};_0x466f17[_0x42dd73(0x1b6)]=_0x42dd73(0x19e),_0x466f17[_0x42dd73(0x1a5)]=function(_0x437e7e,_0x26eea4){return _0x437e7e===_0x26eea4;},_0x466f17[_0x42dd73(0x1da)]=_0x42dd73(0x1c5),_0x466f17[_0x42dd73(0x18f)]=_0x42dd73(0x1ca);const _0x48589a=_0x466f17,_0x3e122b=await this[_0x42dd73(0x1a4)](_0x48589a['EIPKt']);if(!_0x3e122b||_0x48589a[_0x42dd73(0x1a5)](Object['keys'](_0x3e122b)['length'],0x0)){this[_0x42dd73(0x199)](_0x48589a['naRGn'],_0x3e122b);return;}this[_0x42dd73(0x1b7)](_0x3e122b['errorCode'],_0x3e122b[_0x42dd73(0x1b9)][_0x42dd73(0x19b)](_0x48589a[_0x42dd73(0x18f)],_0x13fc9d));}static async['reportSessionLinkingIssue'](){const _0xe860a=a78_0x5a96a5,_0x310afc={};_0x310afc[_0xe860a(0x181)]=_0xe860a(0x193),_0x310afc[_0xe860a(0x1dc)]=function(_0x47c87f,_0x4a728f){return _0x47c87f===_0x4a728f;},_0x310afc['qEVkN']='Session\x20Linking\x20Issue\x20details\x20not\x20found';const _0x402073=_0x310afc,_0x2d4460=await this['getErrorDetails'](_0x402073[_0xe860a(0x181)]);if(!_0x2d4460||_0x402073[_0xe860a(0x1dc)](Object[_0xe860a(0x1be)](_0x2d4460)[_0xe860a(0x1aa)],0x0)){this[_0xe860a(0x199)](_0x402073[_0xe860a(0x1cf)],_0x2d4460);return;}this[_0xe860a(0x1b7)](_0x2d4460[_0xe860a(0x1ce)],_0x2d4460[_0xe860a(0x1b9)]);}static async[a78_0x5a96a5(0x1ae)](){const _0x3eaea3=a78_0x5a96a5,_0x304509={};_0x304509['iKZXj']=_0x3eaea3(0x1cb),_0x304509['PJpiP']=function(_0x389939,_0x17116b){return _0x389939===_0x17116b;},_0x304509[_0x3eaea3(0x1bb)]=_0x3eaea3(0x1c0);const _0x3b11fc=_0x304509,_0x43e402=await this[_0x3eaea3(0x1a4)](_0x3b11fc['iKZXj']);if(!_0x43e402||_0x3b11fc[_0x3eaea3(0x1b1)](Object[_0x3eaea3(0x1be)](_0x43e402)[_0x3eaea3(0x1aa)],0x0)){this[_0x3eaea3(0x199)](_0x3b11fc[_0x3eaea3(0x1bb)],_0x43e402);return;}this[_0x3eaea3(0x1b7)](_0x43e402['errorCode'],_0x43e402[_0x3eaea3(0x1b9)]);}static async[a78_0x5a96a5(0x19d)](){const _0x5780f8=a78_0x5a96a5,_0x40daab={};_0x40daab['xIlKv']='ssl\x20cert\x20issue',_0x40daab['NxZKc']=function(_0x4dcf60,_0x31a5ba){return _0x4dcf60===_0x31a5ba;},_0x40daab['TAAtj']=_0x5780f8(0x1c8);const _0x41fd61=_0x40daab,_0x103b7a=await this['getErrorDetails'](_0x41fd61[_0x5780f8(0x190)]);if(!_0x103b7a||_0x41fd61[_0x5780f8(0x1c9)](Object[_0x5780f8(0x1be)](_0x103b7a)[_0x5780f8(0x1aa)],0x0)){this[_0x5780f8(0x199)](_0x41fd61[_0x5780f8(0x1b3)],_0x103b7a);return;}this[_0x5780f8(0x1b7)](_0x103b7a[_0x5780f8(0x1ce)],_0x103b7a['errorMessage']);}static[a78_0x5a96a5(0x1ab)](){const _0xd1c96f=a78_0x5a96a5,_0x2c7e15={};_0x2c7e15[_0xd1c96f(0x1c4)]=_0xd1c96f(0x1d6),_0x2c7e15[_0xd1c96f(0x1a7)]=function(_0xf3bdcb,_0x6eb723){return _0xf3bdcb===_0x6eb723;},_0x2c7e15[_0xd1c96f(0x188)]=_0xd1c96f(0x1db);const _0x1c899c=_0x2c7e15,_0x1b38d8=constants['CLIENT_TROUBLESHOOTING_HASH'][_0x1c899c[_0xd1c96f(0x1c4)]];if(!_0x1b38d8||_0x1c899c[_0xd1c96f(0x1a7)](Object[_0xd1c96f(0x1be)](_0x1b38d8)['length'],0x0)){this[_0xd1c96f(0x199)](_0x1c899c[_0xd1c96f(0x188)],_0x1b38d8);return;}this[_0xd1c96f(0x185)][_0xd1c96f(0x1bf)](_0x1b38d8[0x0]),this[_0xd1c96f(0x1b7)](_0x1b38d8[0x0],_0x1b38d8[0x1]);}static async[a78_0x5a96a5(0x184)](_0x147fec){const _0x34237f=a78_0x5a96a5,_0x267775={};_0x267775[_0x34237f(0x1d1)]=_0x34237f(0x1d7),_0x267775[_0x34237f(0x1cc)]=function(_0x2f5182,_0x2d5a94){return _0x2f5182===_0x2d5a94;},_0x267775[_0x34237f(0x1ba)]=_0x34237f(0x1d9),_0x267775['zPtvt']=_0x34237f(0x18c);const _0x12d190=_0x267775,_0x27b4c6=await this['getErrorDetails'](_0x12d190[_0x34237f(0x1d1)]);if(!_0x27b4c6||_0x12d190[_0x34237f(0x1cc)](Object[_0x34237f(0x1be)](_0x27b4c6)[_0x34237f(0x1aa)],0x0)){this['logError'](_0x12d190['uwQbL'],_0x27b4c6);return;}const _0x1e8039=_0x27b4c6[_0x34237f(0x1b9)]['replace'](_0x12d190[_0x34237f(0x1c2)],_0x147fec);this['logSituation'](_0x27b4c6[_0x34237f(0x1ce)],_0x1e8039);}static async[a78_0x5a96a5(0x1b5)](){const _0x51ad21=a78_0x5a96a5,_0x260eab={};_0x260eab['SDCKG']=function(_0x1ad73c,_0x3ba710){return _0x1ad73c>_0x3ba710;},_0x260eab[_0x51ad21(0x1df)]=function(_0x239d29,_0x332053){return _0x239d29>_0x332053;},_0x260eab[_0x51ad21(0x18d)]=_0x51ad21(0x1af),_0x260eab['pgvpE']='{CLIENT_TROUBLESHOOTING_DOCUMENTATION}';const _0x164d77=_0x260eab,_0xa2aabb=await this[_0x51ad21(0x191)](),_0x110241=this[_0x51ad21(0x1e0)](_0xa2aabb),_0x2cf2fa=Array['isArray'](_0xa2aabb['errorCodes'])?_0xa2aabb[_0x51ad21(0x1e6)]:[],_0x174982=_0x164d77['SDCKG'](this['errorCodesOccurredWhenCLINotRunning'][_0x51ad21(0x1b0)],0x0)?Array[_0x51ad21(0x1e5)](this[_0x51ad21(0x185)]):[],_0x4bbab1=new Set([..._0x2cf2fa,..._0x110241,..._0x174982]),_0x2feda5=Array[_0x51ad21(0x1e5)](_0x4bbab1);if(_0x164d77['cvKvd'](_0x2feda5[_0x51ad21(0x1aa)],0x0)){const _0x138c77=_0xa2aabb[_0x51ad21(0x1bd)][_0x51ad21(0x19b)](_0x164d77[_0x51ad21(0x18d)],_0x2feda5[_0x51ad21(0x180)](',\x20'))[_0x51ad21(0x19b)](_0x164d77[_0x51ad21(0x1a3)],_0xa2aabb[_0x51ad21(0x1e2)]);logger['warn'](_0x138c77),this['cachedErrorCodes']=_0x2feda5;}}}module[a78_0x5a96a5(0x1d8)]=ClientTroubleShootingService;
|
|
1
|
+
function a78_0x5ceb(_0x11d5b5,_0x4eb5fe){const _0x5e54fa=a78_0x5e54();return a78_0x5ceb=function(_0x5ceb53,_0x3c4ae5){_0x5ceb53=_0x5ceb53-0x1f0;let _0x57924c=_0x5e54fa[_0x5ceb53];return _0x57924c;},a78_0x5ceb(_0x11d5b5,_0x4eb5fe);}const a78_0x39ded5=a78_0x5ceb;(function(_0x29f665,_0x427403){const _0x150710=a78_0x5ceb,_0x9cb868=_0x29f665();while(!![]){try{const _0x3d8716=parseInt(_0x150710(0x22f))/0x1*(parseInt(_0x150710(0x222))/0x2)+parseInt(_0x150710(0x1fc))/0x3+-parseInt(_0x150710(0x213))/0x4+parseInt(_0x150710(0x21b))/0x5*(parseInt(_0x150710(0x243))/0x6)+-parseInt(_0x150710(0x1f7))/0x7+parseInt(_0x150710(0x1f8))/0x8+-parseInt(_0x150710(0x21c))/0x9*(parseInt(_0x150710(0x1f6))/0xa);if(_0x3d8716===_0x427403)break;else _0x9cb868['push'](_0x9cb868['shift']());}catch(_0x577026){_0x9cb868['push'](_0x9cb868['shift']());}}}(a78_0x5e54,0x7e387));const logger=require('../../helpers/logger')[a78_0x39ded5(0x235)],BrowserstackCLI=require('../v2/browserstackCLI'),GrpcClient=require(a78_0x39ded5(0x232)),constants=require('./constants');function a78_0x5e54(){const _0x22ec0a=['getErrorCodesOccurredInCli','checkForErrorsOccuredInCLI','dTLkT','XBzXv','12814WJaYsC','uQgHG','cachedErrorCodes','getErrorCodes','doJKx','Conflicting\x20Env\x20Var\x20details\x20not\x20found','getAggregatedErrorCodes','pzFjf','uasya','{ERROR_CODES}','rSTLD','Error\x20in\x20getting\x20error\x20details\x20for\x20','MmGrB','131jVasaY','getInstance','[ClientTroubleShootingService]\x20','../v2/grpcClient','toString','LfqUK','winstonLogger','aYhAD','documentationLink','tIFyM','getCachedErrorCodes','abtjZ','keys','OqhON','CLIENT_TROUBLESHOOTING_HASH','isArray','IQYDH','reportFinalDetectionState','getErrorDetails','base64','90732uLRPMg','vNzab','Error\x20in\x20getting\x20aggregated\x20error\x20codes:','error','SSL\x20Certificate\x20Issue\x20details\x20not\x20found.\x20To\x20pass\x20a\x20custom\x20CA\x20bundle,\x20set\x20NODE_EXTRA_CA_CERTS\x20or\x20BROWSERSTACK_EXTRA_CA_CERTS\x20env\x20var\x20to\x20the\x20certificate\x20file\x20path.','reportSessionLinkingIssue','warn','ZyCmC','MpvWJ','logSituation','getErrorCode','PzWDq','{SIGNAL}','push','kwWUs','Connectivity\x20Issue\x20details\x20not\x20found','Process\x20Interruption','reportDotBrowserStackFolderNotAccessibleIssue','errorMessage','Process\x20Interruption\x20details\x20not\x20found:','aFqWc','ssl\x20cert\x20issue','errorCodesOccurredInCLI','errorCodesOccurredWhenCLINotRunning','16053130lnJwTJ','548016QfLGRp','6639360upRxTp','reportClientTroubleshootingError','add','pWXMs','1347681TijXHC','finalErrorMessage','isRunning','wLjCd','length','errorCodes','zmcgQ','ksQJx','HanIk','.browserstack\x20Folder\x20Not\x20Accessible\x20details\x20not\x20found','replace','dzJNE','parse','reportSSLCertIssue','HtQbY','join','vECrc','WvNaY','getDocumentationLink','{ENV_VAR}','object','mEHZg','logError','336824rweMXg','Lvoko','Session\x20Linking\x20Issue\x20details\x20not\x20found','GEgEl','from','hveXI','{CLIENT_TROUBLESHOOTING_DOCUMENTATION}','errorCode','55wOTMMv','9EFdivh','reportProcessInterruptionSituation'];a78_0x5e54=function(){return _0x22ec0a;};return a78_0x5e54();}class ClientTroubleShootingService{static [a78_0x39ded5(0x224)]=null;static ['errorCodesOccurredWhenCLINotRunning']=new Set();static async[a78_0x39ded5(0x241)](_0x2d3ea2){const _0x57f905=a78_0x39ded5,_0x1b220f={};_0x1b220f['OqhON']=function(_0x399cba,_0x75660d){return _0x399cba!==_0x75660d;};const _0x793735=_0x1b220f;try{if(BrowserstackCLI[_0x57f905(0x230)]()[_0x57f905(0x1fe)]()){const _0x56e281=await GrpcClient[_0x57f905(0x230)]()[_0x57f905(0x1f9)](_0x2d3ea2);if(_0x793735[_0x57f905(0x23c)](_0x56e281,null)&&_0x56e281['getSuccess']())return{'errorCode':_0x56e281[_0x57f905(0x24d)](),'errorMessage':_0x56e281['getErrorMessage']()};return{};}return{};}catch(_0x389070){return this['logError'](_0x57f905(0x22d)+_0x2d3ea2+':',_0x389070),{};}}static async[a78_0x39ded5(0x228)](){const _0x1c5e34=a78_0x39ded5,_0x4e209f={};_0x4e209f['SAZaY']=function(_0xb15fb5,_0x116bf7){return _0xb15fb5!==_0x116bf7;},_0x4e209f[_0x1c5e34(0x251)]=_0x1c5e34(0x242),_0x4e209f[_0x1c5e34(0x24a)]=_0x1c5e34(0x245);const _0x35d7b6=_0x4e209f;try{if(BrowserstackCLI[_0x1c5e34(0x230)]()[_0x1c5e34(0x1fe)]()){const _0x14a932=await GrpcClient['getInstance']()['getAggregatedClientTroubleshootingErrors']();if(_0x35d7b6['SAZaY'](_0x14a932,null)&&_0x14a932['getSuccess']()){const _0x396b47=Buffer[_0x1c5e34(0x217)](_0x14a932[_0x1c5e34(0x225)](),_0x35d7b6[_0x1c5e34(0x251)])[_0x1c5e34(0x233)](),_0x1e513f=_0x396b47?JSON[_0x1c5e34(0x208)](_0x396b47):[],_0x1ffb87=_0x14a932[_0x1c5e34(0x20e)](),_0x4c121c=_0x14a932['getFinalErrorMessage'](),_0x56aa99=Buffer[_0x1c5e34(0x217)](_0x14a932[_0x1c5e34(0x21e)](),_0x35d7b6[_0x1c5e34(0x251)])['toString'](),_0x2f420b=_0x56aa99?JSON[_0x1c5e34(0x208)](_0x56aa99):[],_0x57f6d5={};return _0x57f6d5[_0x1c5e34(0x201)]=_0x1e513f,_0x57f6d5[_0x1c5e34(0x237)]=_0x1ffb87,_0x57f6d5[_0x1c5e34(0x1fd)]=_0x4c121c,_0x57f6d5[_0x1c5e34(0x1f4)]=_0x2f420b,_0x57f6d5;}const _0x4f801b={};return _0x4f801b[_0x1c5e34(0x201)]=[],_0x4f801b[_0x1c5e34(0x237)]='',_0x4f801b[_0x1c5e34(0x1fd)]='',_0x4f801b['errorCodesOccurredInCLI']=[],_0x4f801b;}const _0xca2ec2={};return _0xca2ec2[_0x1c5e34(0x201)]=[],_0xca2ec2[_0x1c5e34(0x237)]='',_0xca2ec2[_0x1c5e34(0x1fd)]='',_0xca2ec2[_0x1c5e34(0x1f4)]=[],_0xca2ec2;}catch(_0x1fd697){this[_0x1c5e34(0x212)](_0x35d7b6[_0x1c5e34(0x24a)],_0x1fd697);const _0x50cb7b={};return _0x50cb7b[_0x1c5e34(0x201)]=[],_0x50cb7b[_0x1c5e34(0x237)]='',_0x50cb7b['finalErrorMessage']='',_0x50cb7b[_0x1c5e34(0x1f4)]=[],_0x50cb7b;}}static[a78_0x39ded5(0x24c)](_0x325376,_0x3c2d82){const _0x3251c1=a78_0x39ded5;logger[_0x3251c1(0x249)](_0x325376+':\x20'+_0x3c2d82);}static[a78_0x39ded5(0x21f)](_0xba5525){const _0x25a10e=a78_0x39ded5,_0x134fcd={};_0x134fcd[_0x25a10e(0x220)]=function(_0x5404e0,_0x4c893d){return _0x5404e0!=_0x4c893d;},_0x134fcd['PzWDq']=function(_0x4f9f1c,_0x290b4d){return _0x4f9f1c!=_0x290b4d;},_0x134fcd['HanIk']=function(_0x1ff5d6,_0x1060f4){return _0x1ff5d6>_0x1060f4;},_0x134fcd[_0x25a10e(0x23f)]=function(_0x20ec26,_0x1d5889){return _0x20ec26!=_0x1d5889;};const _0x578c97=_0x134fcd,_0x43ee10=[];if(_0x578c97[_0x25a10e(0x220)](_0xba5525,null)&&_0x578c97['PzWDq'](_0xba5525[_0x25a10e(0x1f4)],null)&&_0x578c97[_0x25a10e(0x204)](_0xba5525[_0x25a10e(0x1f4)]['length'],0x0))for(const _0x359851 of _0xba5525[_0x25a10e(0x1f4)]){_0x578c97[_0x25a10e(0x24e)](_0x359851['errorCode'],null)&&_0x578c97[_0x25a10e(0x23f)](_0x359851[_0x25a10e(0x1f0)],null)&&(_0x43ee10[_0x25a10e(0x250)](_0x359851[_0x25a10e(0x21a)]),this[_0x25a10e(0x24c)](_0x359851[_0x25a10e(0x21a)],_0x359851[_0x25a10e(0x1f0)]));}return _0x43ee10;}static[a78_0x39ded5(0x239)](){const _0x40a312=a78_0x39ded5;return this[_0x40a312(0x224)];}static[a78_0x39ded5(0x212)](_0x1a5df9,_0x551834){const _0x3bd084=a78_0x39ded5,_0x1394ff={};_0x1394ff[_0x3bd084(0x20d)]=function(_0x26abad,_0x5025c4){return _0x26abad===_0x5025c4;},_0x1394ff[_0x3bd084(0x229)]=_0x3bd084(0x210);const _0x66e742=_0x1394ff;if(_0x66e742['WvNaY'](typeof _0x551834,_0x66e742[_0x3bd084(0x229)]))try{logger[_0x3bd084(0x246)](_0x3bd084(0x231)+_0x1a5df9+'\x20'+JSON['stringify'](_0x551834));}catch(_0x1e21c3){logger[_0x3bd084(0x246)]('[ClientTroubleShootingService]\x20'+_0x1a5df9+'\x20'+_0x551834);}else logger[_0x3bd084(0x246)](_0x3bd084(0x231)+_0x1a5df9+'\x20'+_0x551834);}static async[a78_0x39ded5(0x21d)](_0x2ddd72){const _0x44ba36=a78_0x39ded5,_0x40066a={};_0x40066a['abtjZ']=_0x44ba36(0x253),_0x40066a['uasya']=function(_0x3569da,_0x43bdef){return _0x3569da===_0x43bdef;},_0x40066a[_0x44ba36(0x234)]=_0x44ba36(0x1f1),_0x40066a[_0x44ba36(0x22c)]=_0x44ba36(0x24f);const _0x281646=_0x40066a,_0xf37774=await this['getErrorDetails'](_0x281646[_0x44ba36(0x23a)]);if(!_0xf37774||_0x281646[_0x44ba36(0x22a)](Object[_0x44ba36(0x23b)](_0xf37774)[_0x44ba36(0x200)],0x0)){this['logError'](_0x281646['LfqUK'],_0xf37774);return;}this[_0x44ba36(0x24c)](_0xf37774[_0x44ba36(0x21a)],_0xf37774[_0x44ba36(0x1f0)][_0x44ba36(0x206)](_0x281646['rSTLD'],_0x2ddd72));}static async[a78_0x39ded5(0x248)](){const _0xe453a5=a78_0x39ded5,_0x7ed106={};_0x7ed106[_0xe453a5(0x20c)]='Session\x20Linking\x20Issue',_0x7ed106[_0xe453a5(0x221)]=function(_0x54ca98,_0x42d4cf){return _0x54ca98===_0x42d4cf;},_0x7ed106[_0xe453a5(0x202)]=_0xe453a5(0x215);const _0x7d65df=_0x7ed106,_0x23996e=await this[_0xe453a5(0x241)](_0x7d65df[_0xe453a5(0x20c)]);if(!_0x23996e||_0x7d65df[_0xe453a5(0x221)](Object[_0xe453a5(0x23b)](_0x23996e)[_0xe453a5(0x200)],0x0)){this['logError'](_0x7d65df[_0xe453a5(0x202)],_0x23996e);return;}this[_0xe453a5(0x24c)](_0x23996e[_0xe453a5(0x21a)],_0x23996e[_0xe453a5(0x1f0)]);}static async['reportConnectivityIssue'](){const _0x22bee0=a78_0x39ded5,_0x66034d={};_0x66034d[_0x22bee0(0x1f2)]='browserstack\x20cloud\x20not\x20reachable',_0x66034d[_0x22bee0(0x211)]=function(_0x411d5c,_0x5a666d){return _0x411d5c===_0x5a666d;},_0x66034d[_0x22bee0(0x223)]=_0x22bee0(0x252);const _0x1a6899=_0x66034d,_0x266026=await this[_0x22bee0(0x241)](_0x1a6899[_0x22bee0(0x1f2)]);if(!_0x266026||_0x1a6899[_0x22bee0(0x211)](Object[_0x22bee0(0x23b)](_0x266026)[_0x22bee0(0x200)],0x0)){this[_0x22bee0(0x212)](_0x1a6899[_0x22bee0(0x223)],_0x266026);return;}this[_0x22bee0(0x24c)](_0x266026['errorCode'],_0x266026[_0x22bee0(0x1f0)]);}static async[a78_0x39ded5(0x209)](){const _0x1bfe8f=a78_0x39ded5,_0x5bbe7b={};_0x5bbe7b[_0x1bfe8f(0x22e)]=_0x1bfe8f(0x1f3),_0x5bbe7b[_0x1bfe8f(0x236)]=function(_0x9c62c1,_0x3a686a){return _0x9c62c1===_0x3a686a;},_0x5bbe7b[_0x1bfe8f(0x24b)]=_0x1bfe8f(0x247);const _0x605028=_0x5bbe7b,_0x2724fd=await this[_0x1bfe8f(0x241)](_0x605028[_0x1bfe8f(0x22e)]);if(!_0x2724fd||_0x605028[_0x1bfe8f(0x236)](Object['keys'](_0x2724fd)['length'],0x0)){this[_0x1bfe8f(0x212)](_0x605028[_0x1bfe8f(0x24b)],_0x2724fd);return;}this[_0x1bfe8f(0x24c)](_0x2724fd[_0x1bfe8f(0x21a)],_0x2724fd[_0x1bfe8f(0x1f0)]);}static[a78_0x39ded5(0x254)](){const _0x25b822=a78_0x39ded5,_0x3fe762={};_0x3fe762[_0x25b822(0x1ff)]='.browserstack\x20folder\x20not\x20accessible',_0x3fe762['Lvoko']=function(_0x1d24be,_0x31e237){return _0x1d24be===_0x31e237;},_0x3fe762[_0x25b822(0x216)]=_0x25b822(0x205);const _0x5aa4e2=_0x3fe762,_0xa53fbf=constants[_0x25b822(0x23d)][_0x5aa4e2[_0x25b822(0x1ff)]];if(!_0xa53fbf||_0x5aa4e2[_0x25b822(0x214)](Object[_0x25b822(0x23b)](_0xa53fbf)[_0x25b822(0x200)],0x0)){this[_0x25b822(0x212)](_0x5aa4e2[_0x25b822(0x216)],_0xa53fbf);return;}this[_0x25b822(0x1f5)][_0x25b822(0x1fa)](_0xa53fbf[0x0]),this[_0x25b822(0x24c)](_0xa53fbf[0x0],_0xa53fbf[0x1]);}static async['reportConflictingEnvVarIssue'](_0xf0dc67){const _0x505f00=a78_0x39ded5,_0x245bab={};_0x245bab[_0x505f00(0x20a)]='conflicting\x20env\x20var\x20detected',_0x245bab[_0x505f00(0x207)]=function(_0x1fd655,_0x25c3ba){return _0x1fd655===_0x25c3ba;},_0x245bab[_0x505f00(0x218)]=_0x505f00(0x227),_0x245bab[_0x505f00(0x203)]=_0x505f00(0x20f);const _0x199655=_0x245bab,_0x1791a8=await this[_0x505f00(0x241)](_0x199655['HtQbY']);if(!_0x1791a8||_0x199655['dzJNE'](Object[_0x505f00(0x23b)](_0x1791a8)[_0x505f00(0x200)],0x0)){this['logError'](_0x199655['hveXI'],_0x1791a8);return;}const _0x511f17=_0x1791a8[_0x505f00(0x1f0)][_0x505f00(0x206)](_0x199655[_0x505f00(0x203)],_0xf0dc67);this[_0x505f00(0x24c)](_0x1791a8['errorCode'],_0x511f17);}static async[a78_0x39ded5(0x240)](){const _0x321492=a78_0x39ded5,_0xa0cbc7={};_0xa0cbc7[_0x321492(0x244)]=function(_0x559854,_0x39e91d){return _0x559854>_0x39e91d;},_0xa0cbc7[_0x321492(0x238)]=function(_0x679063,_0x1f2b9b){return _0x679063>_0x1f2b9b;},_0xa0cbc7[_0x321492(0x226)]=_0x321492(0x22b),_0xa0cbc7[_0x321492(0x1fb)]=_0x321492(0x219);const _0x464de5=_0xa0cbc7,_0x472818=await this[_0x321492(0x228)](),_0x28ed9a=this['checkForErrorsOccuredInCLI'](_0x472818),_0x118702=Array[_0x321492(0x23e)](_0x472818['errorCodes'])?_0x472818[_0x321492(0x201)]:[],_0x8f1488=_0x464de5[_0x321492(0x244)](this['errorCodesOccurredWhenCLINotRunning']['size'],0x0)?Array[_0x321492(0x217)](this[_0x321492(0x1f5)]):[],_0x1ef10d=new Set([..._0x118702,..._0x28ed9a,..._0x8f1488]),_0x3d17f3=Array['from'](_0x1ef10d);if(_0x464de5['tIFyM'](_0x3d17f3['length'],0x0)){const _0x4b2835=_0x472818[_0x321492(0x1fd)][_0x321492(0x206)](_0x464de5[_0x321492(0x226)],_0x3d17f3[_0x321492(0x20b)](',\x20'))[_0x321492(0x206)](_0x464de5[_0x321492(0x1fb)],_0x472818[_0x321492(0x237)]);logger['warn'](_0x4b2835),this[_0x321492(0x224)]=_0x3d17f3;}}}module['exports']=ClientTroubleShootingService;
|