browserstack-node-sdk 1.66.1 → 1.66.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/detox/a11ySetup.js +1 -1
- package/src/bin/detox/command.js +1 -1
- package/src/bin/detox/modifyDetoxConf.js +1 -1
- package/src/bin/detox/traEmitter.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
- package/src/bin/jasmine/command.js +1 -1
- package/src/bin/jasmine/test.setup.js +1 -1
- package/src/bin/jasmine/testRunMap.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadErrors.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/node-generic/client.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/reporterArgs.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/testcafe/a11y-runner.js +1 -1
- package/src/bin/testcafe/command.js +1 -1
- package/src/bin/testcafe/reporter/index.js +1 -1
- package/src/bin/testcafe/reporter/tcUtils.js +1 -1
- package/src/bin/testcafe/session-registry.js +1 -1
- package/src/bin/testcafe/stdout-interceptor.js +1 -1
- package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
- package/src/bin/testcafe/w3c-driver.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/nodeGenericTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/sdkErrorHandler.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/caCertHelper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/driverInitErrorReporter.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/stackFrameUtils.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a30_0x3bff5a=a30_0x18a4;(function(_0x212801,_0x59a265){const _0xa69b07=a30_0x18a4,_0x4f1ee6=_0x212801();while(!![]){try{const _0xf257b1=parseInt(_0xa69b07(0x111))/0x1*(parseInt(_0xa69b07(0x1af))/0x2)+parseInt(_0xa69b07(0xe8))/0x3*(parseInt(_0xa69b07(0x1c6))/0x4)+parseInt(_0xa69b07(0xd6))/0x5+-parseInt(_0xa69b07(0x16a))/0x6*(-parseInt(_0xa69b07(0x1a5))/0x7)+parseInt(_0xa69b07(0x182))/0x8*(-parseInt(_0xa69b07(0x1d8))/0x9)+parseInt(_0xa69b07(0x1b7))/0xa+-parseInt(_0xa69b07(0xf3))/0xb*(parseInt(_0xa69b07(0x166))/0xc);if(_0xf257b1===_0x59a265)break;else _0x4f1ee6['push'](_0x4f1ee6['shift']());}catch(_0x1438c3){_0x4f1ee6['push'](_0x4f1ee6['shift']());}}}(a30_0xfd4b,0xad9e7));const {isTestObservabilitySession,PathHelper,debug,failureData,getFailureType,isInternalHook}=require('../../../helpers/test-observability/utils'),SessionHandler=require(a30_0x3bff5a(0x13f)),{v4:uuidv4}=require(a30_0x3bff5a(0xf9)),{name,version}=require('../../../../package.json'),stackTrace=require('stack-trace'),{pickUserFrameFile}=require('../../../helpers/stackFrameUtils'),path=require(a30_0x3bff5a(0xe5)),fs=require('fs'),TestDetails=require('./test-details'),{FRAMEWORKS}=require(a30_0x3bff5a(0x1d1)),{o11yClassErrorHandler}=require('../../../helpers/test-observability/error-handler'),{getGitMetaData}=require('../../../helpers/helper'),helper=require(a30_0x3bff5a(0x17f)),{appendTesthubParams,setCurrentTestData}=require(a30_0x3bff5a(0xe9)),constants=require(a30_0x3bff5a(0x1d1)),BrowserstackCLI=require(a30_0x3bff5a(0xfd)),a30_0x54104b={};a30_0x54104b[a30_0x3bff5a(0x18f)]='passed',a30_0x54104b['STATE_FAILED']='failed',a30_0x54104b['STATE_PENDING']=a30_0x3bff5a(0x10a);function a30_0xfd4b(){const _0x27f5ce=['configureGit','failed\x20to\x20get\x20root\x20parent\x20file\x20','XdEvS','NPgwp','backtrace','getHooksForTest','now','getInstance','push','1|4|0|2|3','[obsReporter]\x20appendTestItemLog:\x20Jest+Playwright/Puppeteer\x20CLI\x20flow\x20detected,\x20using\x20in-memory\x20storage','CjHeW','splice','KMina','xPlgG','mxaik','oXYJL','xgkqO','Failed\x20to\x20flush\x20pending\x20hook\x20upload:\x20','UgJLN','47359560PHIzQA','failure_backtrace','PYQaI','match','6WqhBzt','bs:addLog:','_testEnv','afterAll','removeAllListeners','MbXNo','hook_run','apply','forEach','resolveInstance','sAKlL','wispo','setTestUUID','VeOMB','testAnalyticsId','dirname','reverse','result','ljhMV','WKZeM','logs','../../../helpers/helper','Kzqyd','findGitConfig','304jFKbOD','current_hook','caHSg','uOLJa','get','VgTKw','retryOf','HGEFj','BGWvX','err','http_response','TestRunSkipped','LogCreated','STATE_PASSED','\x20to\x20log','hookAnalyticsId','test','qdEYA','XLGym',',\x20testIdentifier=','mCDaF','AFTER_EACH','prefixTestPath','hooks','[obsReporter]\x20appendTestItemLog:\x20Invalid\x20or\x20missing\x20testIdentifier\x20format:\x20','uploadEventData','FGlVp','sEeXI','testStarted','afterEach','join','failure','nUZiH','TestRunFinished','getHierarchy','9107602aiGpfL','jest-circus','fISsU','passed','resetTestHooks','gVvcA','beforeEach','GvNCM','Exception\x20in\x20getting\x20file\x20for\x20hook\x20','TestRunStarted','1976cqOXnj','RLiCy','state',',\x20falling\x20back\x20to\x20Jest+Selenium\x20flow','_testResults','registerListeners',':testAnalyticsId','testIdentifier','12660720JbDZte','fSxgI','kind','AxmOW','length','current_test','yDafP','[obsReporter]\x20pickUserFrameFile\x20found\x20no\x20user\x20frame\x20(trace\x20length=','duration','getTestUUID','getName','expanded','ebkSN','IaOsg','CZGMP','6492XOPLXW','includes','KEY_LOGS','analyticsResult','ROOT_DESCRIBE_BLOCK','amidy','xyLHI','parent','eMrXv','errorsDetailed','finished_at','../../utils/constants','_currentRetry','isJestInternalHook','_cachedIntegrations','markedStatus','NuPAg','[obsReporter]\x20appendTestItemLog:\x20Found\x20active\x20hook\x20from\x20JestTestFramework\x20-\x20hookUUID=','208134gOXzHL',':hookAnalyticsId','iSybv','BTJFh','Exception\x20in\x20uploading\x20log\x20data\x20to\x20','../../v2/state/hookState','test_run_uuid','__workerDetails','mapTestHooks','pid','event_type','6518870GLVVDM','yTNrL','DOLMu','util','generic','BIGEG','[obsReporter]\x20appendTestItemLog:\x20Stored\x20log\x20in\x20instance.data[KEY_LOGS]\x20for\x20testIdentifier=','GDxpr','Exception\x20in\x20populating\x20test\x20data\x20for\x20test\x20start\x20with\x20error\x20:\x20','sep','BAvWI','DIQfL','_pendingHookUploads','puppeteer',',\x20totalLogs:\x20','path','_gitConfigured','TEST','1437nOPOxS','../../../helpers/testhub/utils','appendTestPlatform','LMsmV','hookUUID','File\x20path\x20could\x20not\x20be\x20found','bind','bkFVZ','ObservabilityReporter','sBBet','getAllData','11igydOf','beforeAll','moZiO','\x22\x20hook\x20for\x20\x22','getRootParentFile','hook_type','uuid','sdgJd','getActiveHook','toISOString','../../v2/browserstackCLI','hook_run_uuid','wtqIs','addMultipleEntries','failure_type','hook_failure','outEf','eJXVm','pysqN','DixiU','rmAKx','KycXr','getTime','pending','test_run','[obsReporter]\x20appendTestItemLog:\x20Attached\x20hook_run_uuid=','ddXMV','appendTestItemLog','javascript','NKcAd','899wqgsVy','sNMmD','ToSfJ','CBTSessionCreated','testObservability','bs:addPlatformDetails:','__jestCurrentTestIdentifier','js-','started_at','fPTgL','BTPla','xnJKF','file','config','Exception\x20in\x20populating\x20test\x20data\x20for\x20event\x20','lbDDG','rSDbY','type','HookRun','vlbUX','toString','getPackageVersion','name','qTWEj','yhlyD','exports','call','currentHook','vDDbW',':jest-','JEST','UhqBy','6|7|8|1|5|3|4|0|2','WbxTz','TEST_REPORTING_ANALYTICS','MeTTJ','kiigx','sendTestRunEvent','root','KNBld','swZip','skipped','tmhMJ','_paths','GnvIS','title','../../../helpers/test-observability/sessionHandler','cwd','getTestEnv','[obsReporter]\x20appendTestItemLog:\x20Attached\x20test_identifier=','pDOGW','puppeteer-core','VMFOp','yLzZc','hook_data','parse','getTestFramework','Exception\x20in\x20uploading\x20platform\x20details\x20to\x20','\x20with\x20error\x20:\x20','fABOo',',\x20logKind=','KDhCb','GcMFa','iFVlQ','asyncError'];a30_0xfd4b=function(){return _0x27f5ce;};return a30_0xfd4b();}function a30_0x18a4(_0x584c58,_0x367fe2){const _0xfd4bbb=a30_0xfd4b();return a30_0x18a4=function(_0x18a4ea,_0x3f5e3b){_0x18a4ea=_0x18a4ea-0xcd;let _0x4b029c=_0xfd4bbb[_0x18a4ea];return _0x4b029c;},a30_0x18a4(_0x584c58,_0x367fe2);}const {STATE_PASSED,STATE_PENDING,STATE_FAILED}=a30_0x54104b,a30_0x52741b={};a30_0x52741b[a30_0x3bff5a(0xf4)]='BEFORE_ALL',a30_0x52741b[a30_0x3bff5a(0x16d)]='AFTER_ALL',a30_0x52741b['beforeEach']='BEFORE_EACH',a30_0x52741b[a30_0x3bff5a(0x19f)]=a30_0x3bff5a(0x197);const HOOK_TYPES_MAP=a30_0x52741b;module[a30_0x3bff5a(0x12a)]=o11yClassErrorHandler(class ObservabilityReporter{constructor(){const _0x1e9fb6=a30_0x3bff5a,_0xc7e91e={'sbQbF':_0x1e9fb6(0x131),'kiigx':function(_0x3db678){return _0x3db678();}},_0x9b17cb=_0xc7e91e['sbQbF']['split']('|');let _0xb8cff1=0x0;while(!![]){switch(_0x9b17cb[_0xb8cff1++]){case'0':this['_cachedIntegrations']=null;continue;case'1':this[_0x1e9fb6(0x13c)]=new PathHelper({'cwd':process[_0x1e9fb6(0x140)]()},this[_0x1e9fb6(0x16c)]['location_prefix']);continue;case'2':this[_0x1e9fb6(0xe2)]=[];continue;case'3':this[_0x1e9fb6(0xe6)]=![];continue;case'4':this['_gitConfigPath']=null;continue;case'5':this[_0x1e9fb6(0x147)]=[];continue;case'6':this[_0x1e9fb6(0x115)]=_0xc7e91e[_0x1e9fb6(0x135)](isTestObservabilitySession);continue;case'7':this['_testResults']=[];continue;case'8':this[_0x1e9fb6(0x16c)]=this[_0x1e9fb6(0x141)]();continue;}break;}}[a30_0x3bff5a(0x141)]=()=>{const _0x538b30=a30_0x3bff5a,_0x3e5f1e={'AxmOW':_0x538b30(0xda),'MbXNo':function(_0x51d676){return _0x51d676();}};return{'ci':_0x3e5f1e[_0x538b30(0x1ba)],'key':_0x3e5f1e[_0x538b30(0x16f)](uuidv4),'version':version,'collector':_0x538b30(0x118)+name};};[a30_0x3bff5a(0x1b4)](){const _0x15f066=a30_0x3bff5a;process[_0x15f066(0x16e)](_0x15f066(0x16b)+process[_0x15f066(0xd4)]),process['on']('bs:addLog:'+process[_0x15f066(0xd4)],this[_0x15f066(0x10e)][_0x15f066(0xee)](this)),process['removeAllListeners'](_0x15f066(0x116)+process['pid']),process['on'](_0x15f066(0x116)+process[_0x15f066(0xd4)],this[_0x15f066(0xea)][_0x15f066(0xee)](this));}[a30_0x3bff5a(0x19e)]=async _0x1c2baf=>{const _0x5150ac=a30_0x3bff5a,_0x3e57cf={'PYQaI':function(_0x2ab1a6,_0x47d9e0){return _0x2ab1a6>_0x47d9e0;},'XLGym':function(_0x2c7eb8,_0x5547a3){return _0x2c7eb8===_0x5547a3;},'oksTf':_0x5150ac(0x1ae),'sBBet':function(_0xa0c99d,_0x1dd486){return _0xa0c99d(_0x1dd486);}};try{const _0x12067e=this['current_test'];this[_0x5150ac(0x1bc)]=_0x1c2baf,_0x1c2baf[_0x5150ac(0x188)]=null,_0x1c2baf[_0x5150ac(0x178)]=TestDetails[_0x5150ac(0x176)](process['pid']+':testAnalyticsId'),_0x1c2baf['started_at']=new Date()[_0x5150ac(0xfc)](),_0x3e57cf[_0x5150ac(0x168)](_0x1c2baf[_0x5150ac(0x1d2)],0x0)&&_0x12067e&&_0x3e57cf[_0x5150ac(0x194)](_0x12067e[_0x5150ac(0x13e)],_0x1c2baf[_0x5150ac(0x13e)])?(_0x1c2baf[_0x5150ac(0x188)]=_0x12067e[_0x5150ac(0x178)],await this[_0x5150ac(0x136)](_0x1c2baf,undefined,![],_0x3e57cf['oksTf']),_0x12067e[_0x5150ac(0x1b1)]=STATE_FAILED,await this[_0x5150ac(0x136)](_0x12067e,undefined,!![])):await this[_0x5150ac(0x136)](_0x1c2baf,undefined,![],_0x3e57cf['oksTf']);}catch(_0x476983){_0x3e57cf[_0x5150ac(0xf1)](debug,_0x5150ac(0xde)+_0x476983);}};['getName'](_0x1fa92e){const _0x59993b=a30_0x3bff5a,_0x29930d={};_0x29930d[_0x59993b(0x1cb)]=function(_0xcf01d0,_0x5d87d1){return _0xcf01d0!==_0x5d87d1;},_0x29930d[_0x59993b(0x160)]=_0x59993b(0x192);const _0x5bcd20=_0x29930d;if(_0x5bcd20[_0x59993b(0x1cb)](_0x1fa92e['type'],_0x5bcd20[_0x59993b(0x160)]))return'\x22'+_0x1fa92e['type']+_0x59993b(0xf6)+(_0x1fa92e['parent']&&_0x1fa92e[_0x59993b(0x1cd)][_0x59993b(0x127)])+'\x22';return _0x1fa92e[_0x59993b(0x127)];}['sendTestRunEvent']=async(_0x23a121,_0x11b378=undefined,_0xc53add=![],_0x864d43=a30_0x3bff5a(0x1a3))=>{const _0x5e2656=a30_0x3bff5a,_0x13aee2={'sVdEr':_0x5e2656(0x15b),'fSxgI':'hook_run','DOLMu':_0x5e2656(0x17b),'lbDDG':_0x5e2656(0x10b),'ebkSN':_0x5e2656(0x1a1),'iSybv':'failure_reason','iFVlQ':_0x5e2656(0x101),'BIGEG':function(_0x1fc758,_0x20419b){return _0x1fc758(_0x20419b);},'KNgjq':_0x5e2656(0x1a6),'BGWvX':function(_0x493b61,_0x1c0121){return _0x493b61(_0x1c0121);},'Kzqyd':_0x5e2656(0xd9),'LMsmV':function(_0x4acb80,_0x49d239){return _0x4acb80!==_0x49d239;},'GvNCM':'test','mxaik':_0x5e2656(0x18b),'MeTTJ':function(_0x2f93bc,_0x54677d){return _0x2f93bc!==_0x54677d;},'VMFOp':_0x5e2656(0xed),'vDDbW':_0x5e2656(0x10f),'XdEvS':_0x5e2656(0x10a),'uOLJa':function(_0x34d6f8,_0x150283){return _0x34d6f8===_0x150283;},'IaOsg':_0x5e2656(0x18d),'NuPAg':_0x5e2656(0x13a),'sAKlL':function(_0x20a4b1,_0x3a4c21){return _0x20a4b1>_0x3a4c21;},'CZGMP':'failed','BTJFh':_0x5e2656(0x1a8),'xgkqO':function(_0x33e411,_0x4cf369){return _0x33e411-_0x4cf369;},'BTPla':function(_0x56b91a,_0x483bbe,_0x53c0d5,_0x16bc6f,_0x51366f){return _0x56b91a(_0x483bbe,_0x53c0d5,_0x16bc6f,_0x51366f);},'yTNrL':function(_0x29fd86,_0x1f94c3){return _0x29fd86===_0x1f94c3;},'rmAKx':_0x5e2656(0x119),'eJXVm':_0x5e2656(0x1d0),'WbxTz':function(_0x3a5967,_0x571a97){return _0x3a5967===_0x571a97;},'vlbUX':'HookRunFinished','KDhCb':function(_0x296bf6,_0x37f63c){return _0x296bf6!==_0x37f63c;},'GDxpr':_0x5e2656(0x167),'DixiU':_0x5e2656(0x156),'GcMFa':'failure_reason_expanded','sdgJd':_0x5e2656(0x1c2),'rSDbY':'TestRunFinished','ljhMV':_0x5e2656(0xf8),'FGlVp':_0x5e2656(0xf4),'sNMmD':_0x5e2656(0x123),'qdEYA':'integrations','HGEFj':function(_0x13a8ff,_0x120565,_0x27ffc2){return _0x13a8ff(_0x120565,_0x27ffc2);},'oXYJL':function(_0x380631,_0x5ef4cb){return _0x380631(_0x5ef4cb);}};try{if(_0x23a121['fn']&&_0x23a121['fn'][_0x5e2656(0x125)]()['match'](/browserstack internal helper hook/))return;await this[_0x5e2656(0x152)]();let _0x1450ef;try{_0x1450ef=this['getRootParentFile'](_0x23a121);}catch(_0x33d1a9){_0x13aee2[_0x5e2656(0xdb)](debug,_0x5e2656(0x153)+_0x33d1a9),_0x1450ef=null;}if(_0x1450ef[_0x5e2656(0x1c7)](_0x13aee2['KNgjq']))return;const _0xe02abd=_0x13aee2[_0x5e2656(0x18a)](require,_0x13aee2[_0x5e2656(0x180)]);let _0x20b218=[];if(_0x13aee2[_0x5e2656(0xeb)](_0x23a121[_0x5e2656(0x1cf)],undefined))_0x20b218=[_0x23a121[_0x5e2656(0x1cf)],_0x13aee2[_0x5e2656(0x1ac)]];else _0x13aee2[_0x5e2656(0xeb)](_0x11b378,undefined)?_0x20b218=[_0x11b378,_0x13aee2[_0x5e2656(0x161)]]:_0x20b218=[];const _0x403e06=_0x13aee2[_0x5e2656(0xeb)](_0x23a121[_0x5e2656(0x1cf)],undefined)?_0xe02abd['inspect'](_0x23a121[_0x5e2656(0x1cf)][0x0]):_0x13aee2[_0x5e2656(0x134)](_0x11b378,undefined)?_0x11b378[_0x5e2656(0x125)]():undefined,_0x46d848=_0x1450ef?this[_0x5e2656(0x13c)][_0x5e2656(0x198)](this[_0x5e2656(0xf7)](_0x23a121)):_0x13aee2[_0x5e2656(0x145)],_0x3d6a17={'framework':FRAMEWORKS[_0x5e2656(0x12f)],'uuid':_0x23a121[_0x5e2656(0x178)]||_0x23a121[_0x5e2656(0x191)],'name':this[_0x5e2656(0x1c1)](_0x23a121),'body':{'lang':_0x13aee2[_0x5e2656(0x12d)],'code':_0x23a121['fn'][_0x5e2656(0x125)]()},'scopes':this[_0x5e2656(0x1a4)](_0x23a121),'file_name':_0x46d848,'vc_filepath':this['_gitConfigPath']&&_0x1450ef?path['relative'](this['_gitConfigPath'],_0x1450ef):null,'location':_0x46d848,'result':_0x864d43['match'](/Started$/)?_0x13aee2[_0x5e2656(0x154)]:_0x13aee2[_0x5e2656(0x185)](_0x864d43,_0x13aee2[_0x5e2656(0x1c4)])?_0x13aee2[_0x5e2656(0x1d6)]:this[_0x5e2656(0x1c9)](_0x23a121[_0x5e2656(0x1cf)]&&_0x13aee2['sAKlL'](_0x23a121[_0x5e2656(0x1cf)]['length'],0x0)?_0x13aee2[_0x5e2656(0x1c5)]:_0x13aee2[_0x5e2656(0xce)]),'failure_reason':_0x403e06,'duration_in_ms':_0x23a121[_0x5e2656(0x1bf)]||(_0x864d43[_0x5e2656(0x169)](/Finished/)||_0x864d43[_0x5e2656(0x169)](/Skipped/)?_0x13aee2[_0x5e2656(0x163)](Date[_0x5e2656(0x158)](),new Date(_0x23a121['started_at'])[_0x5e2656(0x109)]()):null),'started_at':_0x23a121[_0x5e2656(0x119)],'finished_at':_0x864d43['match'](/Finished/)||_0x864d43[_0x5e2656(0x169)](/Skipped/)?new Date()[_0x5e2656(0xfc)]():null,'failure':failureData[_0x5e2656(0x171)](null,_0x20b218),'failure_type':!_0x403e06?null:_0x13aee2[_0x5e2656(0xdb)](getFailureType,_0x403e06),'retry_of':_0x23a121['retryOf']};_0x13aee2[_0x5e2656(0x11b)](appendTesthubParams,_0x3d6a17,_0x864d43,_0x23a121,FRAMEWORKS[_0x5e2656(0x12f)]);_0x13aee2[_0x5e2656(0xd7)](_0x864d43,_0x13aee2[_0x5e2656(0x1c4)])&&!_0x3d6a17[_0x13aee2[_0x5e2656(0x107)]]&&(_0x3d6a17[_0x13aee2[_0x5e2656(0x107)]]=_0x3d6a17[_0x13aee2[_0x5e2656(0x104)]]);if(_0x864d43[_0x5e2656(0x169)](/HookRun/))[_0x3d6a17['hook_type'],_0x3d6a17[_0x5e2656(0x127)]]=[_0x23a121[_0x5e2656(0x122)],this[_0x5e2656(0x1c1)](_0x23a121)],_0x13aee2[_0x5e2656(0x132)](_0x864d43,_0x13aee2[_0x5e2656(0x124)])&&(_0x13aee2[_0x5e2656(0x14e)](_0x3d6a17[_0x5e2656(0x17b)],_0x13aee2[_0x5e2656(0x1c5)])&&(_0x3d6a17[_0x5e2656(0x17b)]=_0x13aee2[_0x5e2656(0xce)]));else _0x864d43['match'](/TestRun/)&&this[_0x5e2656(0xd3)](_0x23a121);const _0x4d342a=_0x3d6a17[_0x13aee2[_0x5e2656(0x1c3)]][0x0];_0x4d342a&&(_0x3d6a17[_0x13aee2[_0x5e2656(0xdd)]]=_0x4d342a[_0x13aee2[_0x5e2656(0x106)]],_0x3d6a17[_0x13aee2[_0x5e2656(0x14f)]]=_0x4d342a[_0x13aee2[_0x5e2656(0xfa)]]);[_0x13aee2[_0x5e2656(0x121)],_0x13aee2[_0x5e2656(0x1c4)]][_0x5e2656(0x1c7)](_0x864d43)&&(this[_0x5e2656(0x1b3)][_0x5e2656(0x15a)](_0x3d6a17),_0x3d6a17[_0x5e2656(0x199)]=this['getHooksForTest'](_0x23a121),this[_0x5e2656(0x1a9)](_0x23a121));const _0x44ef54={'event_type':_0x13aee2['uOLJa'](_0x864d43,_0x13aee2[_0x5e2656(0x1c4)])?_0x13aee2[_0x5e2656(0x121)]:_0x864d43};_0x864d43['match'](/HookRun/)?(_0x3d6a17[_0x13aee2[_0x5e2656(0x17c)]]=HOOK_TYPES_MAP[_0x3d6a17[_0x13aee2[_0x5e2656(0x17c)]]],_0x44ef54[_0x13aee2[_0x5e2656(0x1b8)]]=_0x3d6a17):_0x44ef54[_0x13aee2[_0x5e2656(0x120)]]=_0x3d6a17;_0x13aee2[_0x5e2656(0x174)](this[_0x5e2656(0x147)]['length'],0x0)&&[_0x13aee2['rSDbY'],_0x13aee2[_0x5e2656(0x1c4)]]['includes'](_0x864d43)&&(this['hook_data'][_0x5e2656(0x172)](async _0x181a3c=>{const _0x36ad2a=_0x5e2656,_0x2222ca=_0x13aee2['sVdEr']['split']('|');let _0x1837ad=0x0;while(!![]){switch(_0x2222ca[_0x1837ad++]){case'0':_0x181a3c[_0x13aee2[_0x36ad2a(0x1b8)]][_0x13aee2['DOLMu']]=_0x44ef54[_0x13aee2[_0x36ad2a(0x120)]][_0x13aee2[_0x36ad2a(0xd8)]];continue;case'1':_0x181a3c[_0x13aee2[_0x36ad2a(0x1b8)]][_0x13aee2[_0x36ad2a(0x1c3)]]=_0x44ef54[_0x13aee2[_0x36ad2a(0x120)]][_0x13aee2[_0x36ad2a(0x1c3)]];continue;case'2':_0x181a3c[_0x13aee2['fSxgI']][_0x13aee2['iSybv']]=_0x44ef54[_0x13aee2[_0x36ad2a(0x120)]][_0x13aee2[_0x36ad2a(0xcd)]];continue;case'3':await SessionHandler[_0x36ad2a(0x19b)](_0x181a3c);continue;case'4':_0x181a3c[_0x13aee2[_0x36ad2a(0x1b8)]][_0x13aee2[_0x36ad2a(0x150)]]=_0x44ef54[_0x13aee2[_0x36ad2a(0x120)]][_0x13aee2[_0x36ad2a(0x150)]];continue;}break;}}),this[_0x5e2656(0x147)]=[]);if(_0x13aee2[_0x5e2656(0x132)](this[_0x5e2656(0x102)],_0x23a121[_0x5e2656(0x122)])){this['hook_data']['push'](_0x44ef54);return;}_0x13aee2[_0x5e2656(0xd7)](this[_0x5e2656(0x102)],_0x13aee2[_0x5e2656(0x19c)])&&_0x44ef54[_0x13aee2[_0x5e2656(0x120)]]&&(_0x44ef54[_0x13aee2[_0x5e2656(0x120)]][_0x13aee2[_0x5e2656(0xd8)]]=_0x13aee2['NuPAg'],_0x44ef54[_0x13aee2[_0x5e2656(0x120)]][_0x13aee2[_0x5e2656(0x1c3)]]=null,_0x44ef54[_0x13aee2[_0x5e2656(0x120)]][_0x13aee2['iFVlQ']]=null);if(_0x864d43[_0x5e2656(0x1c7)](_0x13aee2[_0x5e2656(0x112)])&&_0x44ef54[_0x13aee2[_0x5e2656(0x1b8)]]){if(this['_cachedIntegrations'])_0x44ef54[_0x13aee2[_0x5e2656(0x1b8)]][_0x13aee2[_0x5e2656(0x193)]]=this[_0x5e2656(0x1d4)];else{this[_0x5e2656(0xe2)][_0x5e2656(0x15a)](_0x44ef54);return;}}_0x13aee2[_0x5e2656(0x189)](setCurrentTestData,FRAMEWORKS['JEST'],_0x44ef54),await SessionHandler[_0x5e2656(0x19b)](_0x44ef54);}catch(_0x4edcb7){_0x13aee2[_0x5e2656(0x162)](debug,_0x5e2656(0x11f)+_0x864d43+_0x5e2656(0x14b)+_0x4edcb7);}};[a30_0x3bff5a(0x181)](_0x56dd46){const _0x1c77aa=a30_0x3bff5a,_0x3baa42={};_0x3baa42[_0x1c77aa(0x10d)]=function(_0x5bc6ba,_0x5bcc19){return _0x5bc6ba==_0x5bcc19;},_0x3baa42['nUZiH']=function(_0x1ad83b,_0x51de2e){return _0x1ad83b===_0x51de2e;},_0x3baa42[_0x1c77aa(0xe0)]=function(_0x4bcad3,_0x500455){return _0x4bcad3===_0x500455;},_0x3baa42[_0x1c77aa(0xef)]='.git',_0x3baa42[_0x1c77aa(0x15d)]=_0x1c77aa(0x11e);const _0xe81334=_0x3baa42,_0x180268=path[_0x1c77aa(0xdf)];if(_0xe81334[_0x1c77aa(0x10d)](_0x56dd46,null)||_0xe81334[_0x1c77aa(0x1a2)](_0x56dd46,'')||_0xe81334[_0x1c77aa(0x1a2)](_0x56dd46,_0x180268)||_0xe81334[_0x1c77aa(0xe0)](_0x56dd46,path['dirname'](_0x56dd46)))return null;try{return fs['statSync'](path[_0x1c77aa(0x1a0)](_0x56dd46,_0xe81334['bkFVZ'],_0xe81334['CjHeW'])),_0x56dd46;}catch(_0xc67df4){const _0x2d8247=path[_0x1c77aa(0x179)](_0x56dd46);return this[_0x1c77aa(0x181)](_0x2d8247);}}[a30_0x3bff5a(0x10e)]=async _0x1ecde2=>{const _0xc6e720=a30_0x3bff5a,_0x4d3e9b={'eZver':'@playwright/test','kdvuf':_0xc6e720(0x144),'pDOGW':_0xc6e720(0xe3),'tmhMJ':function(_0x40d7e6,_0x2ba320){return _0x40d7e6||_0x2ba320;},'sEeXI':function(_0x44d798,_0xac5f51){return _0x44d798(_0xac5f51);},'KNBld':_0xc6e720(0x15c),'moZiO':function(_0x32e5bf,_0xb0cb91){return _0x32e5bf(_0xb0cb91);},'KycXr':function(_0x520f1b,_0x4a73ec){return _0x520f1b(_0x4a73ec);},'DIQfL':function(_0x4cce4d,_0xa457e0){return _0x4cce4d&&_0xa457e0;},'NKcAd':_0xc6e720(0x12e),'ToSfJ':function(_0x5c7e86,_0x209e78){return _0x5c7e86(_0x209e78);},'KFwZr':function(_0x4ccdc3,_0x35080f){return _0x4ccdc3(_0x35080f);},'yDafP':'../../v2/state/testFrameworkState','pysqN':function(_0xb66263,_0x36479f){return _0xb66263(_0x36479f);},'iQSqP':_0xc6e720(0xd0),'KMina':'../../v2/framework/constants/testFrameworkConstants','VgTKw':function(_0x4b03fc,_0x323090){return _0x4b03fc===_0x323090;},'NPgwp':'function','xyLHI':function(_0x4c3b47,_0x227a50){return _0x4c3b47(_0x227a50);},'xnJKF':'unknown','mCDaF':_0xc6e720(0x18e),'eMrXv':function(_0xd6b8de,_0x2ad130){return _0xd6b8de(_0x2ad130);}};try{const _0x1273b6=helper[_0xc6e720(0x126)](_0x4d3e9b['eZver']),_0x31e180=!!_0x1273b6,_0x391dfc=helper['getPackageVersion'](_0x4d3e9b['kdvuf'])||helper[_0xc6e720(0x126)](_0x4d3e9b[_0xc6e720(0x143)]),_0x56c223=!!_0x391dfc,_0x59a680=BrowserstackCLI[_0xc6e720(0x159)]()['isCliEnabled']()&&BrowserstackCLI[_0xc6e720(0x159)]()['isRunning']();if(_0x4d3e9b[_0xc6e720(0x13b)](_0x31e180,_0x56c223)&&_0x59a680){_0x4d3e9b[_0xc6e720(0x19d)](debug,_0x4d3e9b[_0xc6e720(0x138)]);let _0x4de645=null,_0x4b2b1b=null;if(global[_0xc6e720(0xd2)]&&global[_0xc6e720(0xd2)][_0xc6e720(0x12c)]){const _0x1f88ad=global['__workerDetails'][_0xc6e720(0x12c)];_0x4b2b1b=_0x1f88ad['hookUUID'],_0x4de645=_0x1f88ad[_0xc6e720(0x1b6)],_0x4d3e9b['moZiO'](debug,'[obsReporter]\x20appendTestItemLog:\x20Found\x20active\x20hook\x20-\x20hookUUID='+_0x4b2b1b+_0xc6e720(0x195)+_0x4de645);}!_0x4de645&&(_0x4de645=global[_0xc6e720(0x117)],_0x4d3e9b[_0xc6e720(0x108)](debug,'[obsReporter]\x20appendTestItemLog:\x20Using\x20testIdentifier\x20from\x20global.__jestCurrentTestIdentifier:\x20'+_0x4de645));if(_0x4d3e9b[_0xc6e720(0xe1)](!_0x4b2b1b,_0x4de645)){const _0x431dd2=BrowserstackCLI[_0xc6e720(0x159)]()[_0xc6e720(0x149)]();if(_0x431dd2&&_0x431dd2['getActiveHook']){const _0x5f4cd1=_0x431dd2[_0xc6e720(0xfb)](_0x4de645);_0x5f4cd1&&_0x5f4cd1[_0xc6e720(0xec)]&&(_0x4b2b1b=_0x5f4cd1['hookUUID'],_0x4d3e9b[_0xc6e720(0xf5)](debug,_0xc6e720(0x1d7)+_0x4b2b1b+_0xc6e720(0x195)+_0x4de645));}}if(!_0x4de645||!_0x4de645[_0xc6e720(0x1c7)](_0x4d3e9b[_0xc6e720(0x110)]))_0x4d3e9b[_0xc6e720(0x113)](debug,_0xc6e720(0x19a)+_0x4de645+',\x20falling\x20back\x20to\x20Jest+Selenium\x20flow');else{_0x4b2b1b&&(_0x1ecde2['hook_run_uuid']=_0x4b2b1b,_0x4d3e9b['moZiO'](debug,_0xc6e720(0x10c)+_0x4b2b1b+_0xc6e720(0x190)));_0x1ecde2['test_identifier']=_0x4de645,_0x4d3e9b['KFwZr'](debug,_0xc6e720(0x142)+_0x4de645+_0xc6e720(0x190));const _0x32d48e=BrowserstackCLI['getInstance']()[_0xc6e720(0x149)]();if(_0x32d48e){const _0x3f3d62=_0x4d3e9b['KycXr'](require,_0x4d3e9b[_0xc6e720(0x1bd)]),_0x5265d1=_0x4d3e9b[_0xc6e720(0x105)](require,_0x4d3e9b['iQSqP']),_0x4aab52=_0x4d3e9b['KFwZr'](require,_0x4d3e9b[_0xc6e720(0x15f)]),_0x4cdab3=_0x32d48e[_0xc6e720(0x173)](_0x3f3d62[_0xc6e720(0xe7)],_0x5265d1['POST']);if(_0x4cdab3&&_0x4d3e9b[_0xc6e720(0x187)](typeof _0x4cdab3[_0xc6e720(0x100)],_0x4d3e9b[_0xc6e720(0x155)])){const _0x217fe6=_0x4cdab3[_0xc6e720(0xf2)]()[_0xc6e720(0x186)](_0x4de645)||{},_0x441fab=_0x217fe6[_0x4aab52[_0xc6e720(0x1c8)]]||[],_0x330b72=[..._0x441fab,_0x1ecde2],_0x3fc408={[_0x4aab52[_0xc6e720(0x1c8)]]:_0x330b72},_0x2eea59={};_0x2eea59[_0x4de645]=_0x3fc408,_0x4cdab3[_0xc6e720(0x100)](_0x2eea59),_0x4d3e9b[_0xc6e720(0x1cc)](debug,_0xc6e720(0xdc)+_0x4de645+_0xc6e720(0x14d)+(_0x1ecde2[_0xc6e720(0x1b9)]||_0x4d3e9b[_0xc6e720(0x11c)])+_0xc6e720(0xe4)+_0x330b72[_0xc6e720(0x1bb)]);return;}_0x4d3e9b[_0xc6e720(0x108)](debug,'[obsReporter]\x20appendTestItemLog:\x20Instance\x20not\x20available\x20or\x20addMultipleEntries\x20not\x20available\x20for\x20testIdentifier='+_0x4de645+_0xc6e720(0x1b2));}}}}catch(_0xb224a5){_0x4d3e9b[_0xc6e720(0x113)](debug,'[obsReporter]\x20appendTestItemLog:\x20Error\x20in\x20Jest+Playwright\x20flow\x20detection:\x20'+_0xb224a5+',\x20falling\x20back\x20to\x20Jest+Selenium\x20flow');}const _0x340123=TestDetails[_0xc6e720(0x1c0)](process['pid']+_0xc6e720(0x1d9)),_0x152904=TestDetails[_0xc6e720(0x1c0)](process['pid']+_0xc6e720(0x1b5));try{(_0x340123||this[_0xc6e720(0x183)]&&!this['current_hook'][_0xc6e720(0x1d5)])&&(_0x1ecde2[_0xc6e720(0xfe)]=_0x340123);!_0x1ecde2['hook_run_uuid']&&_0x152904&&(_0x1ecde2[_0xc6e720(0xd1)]=_0x152904);if(_0x1ecde2['hook_run_uuid']||_0x1ecde2[_0xc6e720(0xd1)]){const _0xe6b319={};_0xe6b319['event_type']=_0x4d3e9b[_0xc6e720(0x196)],_0xe6b319[_0xc6e720(0x17e)]=[_0x1ecde2],await SessionHandler[_0xc6e720(0x19b)](_0xe6b319);}}catch(_0x1a8179){_0x4d3e9b[_0xc6e720(0x1ce)](debug,_0xc6e720(0xcf)+constants[_0xc6e720(0x133)]+_0xc6e720(0x14b)+_0x1a8179);}};[a30_0x3bff5a(0xea)]=async _0x240d51=>{const _0x5d4393=a30_0x3bff5a,_0x58563c={'wispo':_0x5d4393(0x18c),'UgJLN':_0x5d4393(0x114),'UaXdR':function(_0xbe1f7f,_0x112fdf){return _0xbe1f7f>_0x112fdf;},'RLiCy':_0x5d4393(0x170),'qTWEj':function(_0x131f11,_0x17c3b4,_0x1a6636){return _0x131f11(_0x17c3b4,_0x1a6636);},'UhqBy':function(_0x451240,_0x5aefc5){return _0x451240(_0x5aefc5);}};try{const _0x155810=_0x240d51&&_0x240d51[_0x58563c[_0x5d4393(0x175)]];_0x155810&&(this[_0x5d4393(0x1d4)]=_0x155810);const _0x10ef4e={'uuid':_0x240d51['uuid']||TestDetails['getTestUUID'](process[_0x5d4393(0xd4)]+_0x5d4393(0x1b5)),'integrations':_0x155810},_0x15143a={};_0x15143a[_0x5d4393(0xd5)]=_0x58563c[_0x5d4393(0x165)],_0x15143a[_0x5d4393(0x10b)]=_0x10ef4e,await SessionHandler['uploadEventData'](_0x15143a);if(_0x155810&&_0x58563c['UaXdR'](this[_0x5d4393(0xe2)]['length'],0x0)){const _0x1e68f3=this[_0x5d4393(0xe2)][_0x5d4393(0x15e)](0x0,this[_0x5d4393(0xe2)][_0x5d4393(0x1bb)]);for(const _0x4c65be of _0x1e68f3){try{const _0x3bfbda=_0x4c65be&&_0x4c65be[_0x58563c[_0x5d4393(0x1b0)]]?{..._0x4c65be,'hook_run':{..._0x4c65be[_0x58563c[_0x5d4393(0x1b0)]],'integrations':_0x155810}}:_0x4c65be;_0x58563c[_0x5d4393(0x128)](setCurrentTestData,FRAMEWORKS[_0x5d4393(0x12f)],_0x3bfbda),await SessionHandler[_0x5d4393(0x19b)](_0x3bfbda);}catch(_0x5d18a3){_0x58563c[_0x5d4393(0x130)](debug,_0x5d4393(0x164)+_0x5d18a3);}}}}catch(_0xf0602c){_0x58563c[_0x5d4393(0x130)](debug,_0x5d4393(0x14a)+constants['TEST_REPORTING_ANALYTICS']+_0x5d4393(0x14b)+_0xf0602c);}};async[a30_0x3bff5a(0x152)](){const _0x19ca81=a30_0x3bff5a,_0x5353b5={'QRgJA':function(_0x2c65df){return _0x2c65df();}};if(this[_0x19ca81(0xe6)])return this['_gitConfigPath'];const _0x442c12=await _0x5353b5['QRgJA'](getGitMetaData);_0x442c12&&(this['_gitConfigPath']=_0x442c12[_0x19ca81(0x137)]),this[_0x19ca81(0xe6)]=!![];}[a30_0x3bff5a(0x1c9)](_0x396f7d){const _0x399913=a30_0x3bff5a,_0x378e6d={};_0x378e6d[_0x399913(0x146)]=_0x399913(0x1a8),_0x378e6d['VIIPs']=_0x399913(0x10a),_0x378e6d[_0x399913(0x177)]='failed';const _0x2b5095=_0x378e6d,_0x456e57={};return _0x456e57[STATE_PASSED]=_0x2b5095[_0x399913(0x146)],_0x456e57[STATE_PENDING]=_0x2b5095['VIIPs'],_0x456e57[STATE_FAILED]=_0x2b5095[_0x399913(0x177)],_0x456e57[_0x396f7d];}[a30_0x3bff5a(0x1a4)](_0x202b46){const _0x45deea=a30_0x3bff5a,_0x213642={};_0x213642[_0x45deea(0x1a7)]=function(_0x55acb4,_0x2b30f4){return _0x55acb4!==_0x2b30f4;},_0x213642[_0x45deea(0x139)]=function(_0xa70a54,_0x4c3a0b){return _0xa70a54!==_0x4c3a0b;},_0x213642[_0x45deea(0x11a)]=_0x45deea(0x1ca);const _0x2df240=_0x213642,_0x4e4f02=[];if(_0x202b46&&_0x202b46[_0x45deea(0x1cd)]){let _0x8f9996=_0x202b46[_0x45deea(0x1cd)];while(_0x8f9996&&_0x2df240[_0x45deea(0x1a7)](_0x8f9996[_0x45deea(0x127)],'')&&_0x2df240['swZip'](_0x8f9996['name'],_0x2df240[_0x45deea(0x11a)])){_0x4e4f02[_0x45deea(0x15a)](_0x8f9996[_0x45deea(0x127)]),_0x8f9996=_0x8f9996[_0x45deea(0x1cd)];}}return _0x4e4f02[_0x45deea(0x17a)](),_0x4e4f02;}['getRootParentFile']=_0x5eeba2=>{const _0xd79197=a30_0x3bff5a,_0x3cd09c={'caHSg':function(_0x32daa1,_0x5c2c9a){return _0x32daa1(_0x5c2c9a);}};if(_0x5eeba2[_0xd79197(0x11d)])return _0x5eeba2[_0xd79197(0x11d)];if(_0x5eeba2['asyncError']){const _0x4671fe=stackTrace[_0xd79197(0x148)][_0xd79197(0x12b)](stackTrace,_0x5eeba2[_0xd79197(0x151)]),_0x44683c=_0x3cd09c[_0xd79197(0x184)](pickUserFrameFile,_0x4671fe);if(_0x44683c)return _0x44683c;_0x3cd09c['caHSg'](debug,_0xd79197(0x1be)+_0x4671fe[_0xd79197(0x1bb)]+')');}return null;};[a30_0x3bff5a(0xd3)]=_0x2fd871=>{const _0x5525e9=a30_0x3bff5a;if(!_0x2fd871||!_0x2fd871['parent'])return;_0x2fd871[_0x5525e9(0x1cd)][_0x5525e9(0x199)][_0x5525e9(0x172)](_0x3d7614=>{const _0x193d32=_0x5525e9;!_0x3d7614[_0x193d32(0x191)]&&(_0x3d7614[_0x193d32(0x191)]=TestDetails[_0x193d32(0x176)](process['pid']+_0x193d32(0x1d9)));}),this['mapTestHooks'](_0x2fd871['parent']);};['resetTestHooks']=_0x3cf7c1=>{const _0x1f2e1a=a30_0x3bff5a,_0x2096d9={};_0x2096d9[_0x1f2e1a(0x103)]=_0x1f2e1a(0x1ab),_0x2096d9[_0x1f2e1a(0xff)]=_0x1f2e1a(0x19f);const _0x218a0a=_0x2096d9;if(!_0x3cf7c1||!_0x3cf7c1[_0x1f2e1a(0x1cd)])return;_0x3cf7c1[_0x1f2e1a(0x1cd)]['hooks']['forEach'](_0x3d1f58=>{const _0x1600b7=_0x1f2e1a;[_0x218a0a[_0x1600b7(0x103)],_0x218a0a[_0x1600b7(0xff)]]['includes'](_0x3d1f58[_0x1600b7(0x122)])&&_0x3d1f58[_0x1600b7(0x191)]&&(_0x3d1f58[_0x1600b7(0x191)]=null);}),this[_0x1f2e1a(0xd3)](_0x3cf7c1[_0x1f2e1a(0x1cd)]);};[a30_0x3bff5a(0x1d3)](_0x231ac4){const _0x586a18=a30_0x3bff5a,_0x327038={'fABOo':_0x586a18(0x1a6),'GnvIS':function(_0x56b719,_0xb98184){return _0x56b719(_0xb98184);},'yhlyD':function(_0x4294e1,_0x34736c){return _0x4294e1+_0x34736c;},'gVvcA':_0x586a18(0x1ad)};try{const _0x347949=this[_0x586a18(0xf7)](_0x231ac4);if(!_0x347949||_0x347949[_0x586a18(0x1c7)](_0x327038[_0x586a18(0x14c)]))return!![];return![];}catch(_0x497b04){_0x327038[_0x586a18(0x13d)](debug,_0x327038[_0x586a18(0x129)](_0x327038[_0x586a18(0x1aa)],_0x497b04));}return![];}[a30_0x3bff5a(0x157)]=_0x337113=>{const _0x1fae10=a30_0x3bff5a,_0x35dd97={'WKZeM':function(_0x47bd17,_0x1dba6a){return _0x47bd17(_0x1dba6a);}};if(!_0x337113||!_0x337113['parent'])return[];const _0x2592e9=[];return _0x337113['parent'][_0x1fae10(0x199)][_0x1fae10(0x172)](_0xb5c0cb=>{const _0x37934b=_0x1fae10;_0xb5c0cb[_0x37934b(0x191)]&&!_0x35dd97[_0x37934b(0x17d)](isInternalHook,_0xb5c0cb['fn'])&&!this[_0x37934b(0x1d3)](_0xb5c0cb)&&_0x2592e9[_0x37934b(0x15a)](_0xb5c0cb['hookAnalyticsId']);}),[..._0x2592e9,...this['getHooksForTest'](_0x337113[_0x1fae10(0x1cd)])];};},[a30_0x3bff5a(0x141),a30_0x3bff5a(0x1b4),a30_0x3bff5a(0x19e),'getName',a30_0x3bff5a(0x136),'findGitConfig',a30_0x3bff5a(0x10e),a30_0x3bff5a(0xea),a30_0x3bff5a(0x1c9),a30_0x3bff5a(0x1a4),a30_0x3bff5a(0xf7),a30_0x3bff5a(0xd3),'resetTestHooks',a30_0x3bff5a(0x157),a30_0x3bff5a(0x152)],a30_0x3bff5a(0xf0));
|
|
1
|
+
function a30_0x55c2(_0x3735ab,_0x18daab){const _0xdfd4a8=a30_0xdfd4();return a30_0x55c2=function(_0x55c231,_0x27bf76){_0x55c231=_0x55c231-0x1f3;let _0xa721d2=_0xdfd4a8[_0x55c231];return _0xa721d2;},a30_0x55c2(_0x3735ab,_0x18daab);}const a30_0x25b021=a30_0x55c2;(function(_0x5dd647,_0x2d3dad){const _0x215846=a30_0x55c2,_0x1b62c2=_0x5dd647();while(!![]){try{const _0x433e59=-parseInt(_0x215846(0x281))/0x1+parseInt(_0x215846(0x2c7))/0x2*(-parseInt(_0x215846(0x274))/0x3)+-parseInt(_0x215846(0x2bb))/0x4*(-parseInt(_0x215846(0x25f))/0x5)+-parseInt(_0x215846(0x23e))/0x6*(parseInt(_0x215846(0x27a))/0x7)+parseInt(_0x215846(0x2d7))/0x8*(parseInt(_0x215846(0x2a7))/0x9)+parseInt(_0x215846(0x218))/0xa+parseInt(_0x215846(0x273))/0xb*(parseInt(_0x215846(0x2e2))/0xc);if(_0x433e59===_0x2d3dad)break;else _0x1b62c2['push'](_0x1b62c2['shift']());}catch(_0x4c2a50){_0x1b62c2['push'](_0x1b62c2['shift']());}}}(a30_0xdfd4,0xd2f08));const {isTestObservabilitySession,PathHelper,debug,failureData,getFailureType,isInternalHook}=require(a30_0x25b021(0x22e)),SessionHandler=require(a30_0x25b021(0x252)),{v4:uuidv4}=require('uuid'),{name,version}=require(a30_0x25b021(0x2de)),stackTrace=require('stack-trace'),{pickUserFrameFile}=require(a30_0x25b021(0x262)),path=require(a30_0x25b021(0x208)),fs=require('fs'),TestDetails=require(a30_0x25b021(0x2ec)),{FRAMEWORKS}=require('../../utils/constants'),{o11yClassErrorHandler}=require(a30_0x25b021(0x26f)),{getGitMetaData}=require('../../../helpers/helper'),helper=require(a30_0x25b021(0x2d1)),{appendTesthubParams,setCurrentTestData}=require(a30_0x25b021(0x28a)),constants=require(a30_0x25b021(0x229)),BrowserstackCLI=require('../../v2/browserstackCLI'),a30_0x8619ed={};a30_0x8619ed['STATE_PASSED']='passed',a30_0x8619ed[a30_0x25b021(0x20c)]=a30_0x25b021(0x220),a30_0x8619ed[a30_0x25b021(0x2bf)]=a30_0x25b021(0x242);const {STATE_PASSED,STATE_PENDING,STATE_FAILED}=a30_0x8619ed,a30_0xfbe086={};a30_0xfbe086['beforeAll']=a30_0x25b021(0x20e),a30_0xfbe086[a30_0x25b021(0x248)]=a30_0x25b021(0x2da),a30_0xfbe086[a30_0x25b021(0x1fb)]=a30_0x25b021(0x25c),a30_0xfbe086[a30_0x25b021(0x22a)]='AFTER_EACH';function a30_0xdfd4(){const _0x208e8a=['isRunning','state','beforeAll','1355942fJlCOf','QWnXV','mYSGa','pid','uxbyd',':testAnalyticsId','logs','594080QklJqE','FAZSf','prefixTestPath','SdwLD','sendTestRunEvent','statSync','LdzeD','test','htVel','../../../helpers/testhub/utils','vFKTZ','rCNOK','getTestEnv',':hookAnalyticsId','parent','mFSiD','util','BfCDa','join','ONtLK','hFfGz','getHooksForTest','finished_at','XXyDX','YQOJg','sBJyX','bxLpd','KEICc','configureGit','failure','registerListeners','getTestFramework','[obsReporter]\x20appendTestItemLog:\x20Jest+Playwright/Puppeteer\x20CLI\x20flow\x20detected,\x20using\x20in-memory\x20storage','iDDdm','findGitConfig','js-','toISOString','Rlqrr','36450nwEKXw','mTMRs','mFNZu','reverse','backtrace','CWQTZ','Exception\x20in\x20populating\x20test\x20data\x20for\x20event\x20','oNdwi','dlBrq','ROOT_DESCRIBE_BLOCK',',\x20falling\x20back\x20to\x20Jest+Selenium\x20flow','bzVxj','SgPTs','now','@playwright/test','SggnE','javascript','_testEnv','bQpVK','XpGOj','96YsEGwF','failure_reason','match','push','STATE_PENDING','includes','tpqxO','JYjfo','MYoHt','Exception\x20in\x20populating\x20test\x20data\x20for\x20test\x20start\x20with\x20error\x20:\x20',':jest-','removeAllListeners','7794tVIzGZ','zglbp','gbiHQ','../../v2/state/testFrameworkState','CBTSessionCreated','rmgNp','TestRunFinished','err','eVRyt','xswgN','../../../helpers/helper','CDxok',',\x20testIdentifier=','hook_data','current_hook','hookAnalyticsId','2608pNSXyC','[obsReporter]\x20appendTestItemLog:\x20Invalid\x20or\x20missing\x20testIdentifier\x20format:\x20','test_run_uuid','AFTER_ALL','integrations','appendTestPlatform','_paths','../../../../package.json','Failed\x20to\x20flush\x20pending\x20hook\x20upload:\x20','iaWvI','NSohR','7716ArHuCG','7|6|5|4|0|1|2|8|3','[obsReporter]\x20appendTestItemLog:\x20Found\x20active\x20hook\x20-\x20hookUUID=','UbSTh','[obsReporter]\x20appendTestItemLog:\x20Attached\x20hook_run_uuid=','ibpDb','JeTaf','.git','toString','length','./test-details','hook_failure','TEST_REPORTING_ANALYTICS','rRcMb','jrpSS','bs:addLog:','getName','wZniS','cnqOO','[obsReporter]\x20appendTestItemLog:\x20Attached\x20test_identifier=','name','wTBNm','result','ClXVL','tvGJd','thcaZ','WlLrP','root','forEach','nbQHn','exports','LogCreated','_gitConfigPath','event_type','testAnalyticsId','\x20to\x20log','test_run','get','beforeEach','WioOt','asyncError','_gitConfigured','hooks','GJqxs','_pendingHookUploads','../../v2/framework/constants/testFrameworkConstants','cuvBA','resolveInstance','\x20with\x20error\x20:\x20','[obsReporter]\x20appendTestItemLog:\x20Found\x20active\x20hook\x20from\x20JestTestFramework\x20-\x20hookUUID=','testObservability','path','VLsUs','hoCEH','_testResults','STATE_FAILED','tuUGA','BEFORE_ALL','started_at','setTestUUID','analyticsResult','KEY_LOGS','ecKdq','relative','jest-circus','hook_run',',\x20totalLogs:\x20','464890Oumyix','Exception\x20in\x20uploading\x20log\x20data\x20to\x20','resetTestHooks','YZQlD','File\x20path\x20could\x20not\x20be\x20found','VeiFy','failure_type','getRootParentFile','failed','QKzUx','title','[obsReporter]\x20appendTestItemLog:\x20Using\x20testIdentifier\x20from\x20global.__jestCurrentTestIdentifier:\x20','rOpoG','gawyw','retryOf','__workerDetails','passed','../../utils/constants','afterEach','uuid','getActiveHook','IPbqT','../../../helpers/test-observability/utils','puppeteer-core','hookUUID','splice','4|2|0|3|1','expanded','config','hook_type','wonNe','ZgXUl','oEFsX','TEST','kkdVb','nsDTX','function','type','42MZneWY','uploadEventData','kPlbN','aIsKx','pending','ShQzl','ixtqa','lylpc','appendTestItemLog','bind','afterAll','mapTestHooks','oSxLp','puppeteer','XaitQ','failed\x20to\x20get\x20root\x20parent\x20file\x20','getHierarchy','GDqkj','apply','test_identifier','../../../helpers/test-observability/sessionHandler','dirname','TestRunStarted','getPackageVersion','getAllData','bs:addPlatformDetails:','mYydx','duration',',\x20logKind=','errorsDetailed','BEFORE_EACH','call','file','345220vWjcjP','[obsReporter]\x20pickUserFrameFile\x20found\x20no\x20user\x20frame\x20(trace\x20length=','hook_run_uuid','../../../helpers/stackFrameUtils','currentHook','location_prefix','_cachedIntegrations','WmTUf','isCliEnabled','JEST','kind','zVlaP','POST','HyySO','getInstance','ZqbRR','../../../helpers/test-observability/error-handler','isJestInternalHook','addMultipleEntries','NdAnA','1144CQdGtn','213DgyjZB','getTime','getTestUUID'];a30_0xdfd4=function(){return _0x208e8a;};return a30_0xdfd4();}const HOOK_TYPES_MAP=a30_0xfbe086;module[a30_0x25b021(0x1f3)]=o11yClassErrorHandler(class ObservabilityReporter{constructor(){const _0x44051f=a30_0x25b021,_0x373077={'GyKrb':_0x44051f(0x2e3),'fzMVo':function(_0x196861){return _0x196861();}},_0x5990ca=_0x373077['GyKrb']['split']('|');let _0x257d5d=0x0;while(!![]){switch(_0x5990ca[_0x257d5d++]){case'0':this[_0x44051f(0x2d4)]=[];continue;case'1':this[_0x44051f(0x1fe)]=![];continue;case'2':this[_0x44051f(0x1f5)]=null;continue;case'3':this[_0x44051f(0x201)]=[];continue;case'4':this[_0x44051f(0x2dd)]=new PathHelper({'cwd':process['cwd']()},this[_0x44051f(0x2b8)][_0x44051f(0x264)]);continue;case'5':this[_0x44051f(0x2b8)]=this[_0x44051f(0x28d)]();continue;case'6':this['_testResults']=[];continue;case'7':this[_0x44051f(0x207)]=_0x373077['fzMVo'](isTestObservabilitySession);continue;case'8':this[_0x44051f(0x265)]=null;continue;}break;}}[a30_0x25b021(0x28d)]=()=>{const _0x2de36e=a30_0x25b021,_0x19fa34={'Rlqrr':'generic','rTfCI':function(_0x35aa13){return _0x35aa13();}};return{'ci':_0x19fa34[_0x2de36e(0x2a6)],'key':_0x19fa34['rTfCI'](uuidv4),'version':version,'collector':_0x2de36e(0x2a4)+name};};[a30_0x25b021(0x29f)](){const _0x51833e=a30_0x25b021;process['removeAllListeners'](_0x51833e(0x2f1)+process[_0x51833e(0x27d)]),process['on']('bs:addLog:'+process['pid'],this[_0x51833e(0x246)][_0x51833e(0x247)](this)),process[_0x51833e(0x2c6)](_0x51833e(0x257)+process[_0x51833e(0x27d)]),process['on'](_0x51833e(0x257)+process[_0x51833e(0x27d)],this[_0x51833e(0x2dc)][_0x51833e(0x247)](this));}['testStarted']=async _0x2ed7cc=>{const _0xca7ac=a30_0x25b021,_0x5a717e={'wZniS':function(_0x3e174b,_0x5659f9){return _0x3e174b>_0x5659f9;},'nsDTX':function(_0xdf0c84,_0x13e626){return _0xdf0c84===_0x13e626;},'XaitQ':_0xca7ac(0x254),'bzVxj':function(_0x474cf7,_0x5c9ad5){return _0x474cf7(_0x5c9ad5);}};try{const _0x1b93aa=this['current_test'];this['current_test']=_0x2ed7cc,_0x2ed7cc[_0xca7ac(0x226)]=null,_0x2ed7cc[_0xca7ac(0x1f7)]=TestDetails[_0xca7ac(0x210)](process['pid']+_0xca7ac(0x27f)),_0x2ed7cc[_0xca7ac(0x20f)]=new Date()[_0xca7ac(0x2a5)](),_0x5a717e[_0xca7ac(0x2f3)](_0x2ed7cc['_currentRetry'],0x0)&&_0x1b93aa&&_0x5a717e[_0xca7ac(0x23b)](_0x1b93aa['title'],_0x2ed7cc[_0xca7ac(0x222)])?(_0x2ed7cc['retryOf']=_0x1b93aa[_0xca7ac(0x1f7)],await this[_0xca7ac(0x285)](_0x2ed7cc,undefined,![],_0x5a717e[_0xca7ac(0x24c)]),_0x1b93aa[_0xca7ac(0x278)]=STATE_FAILED,await this[_0xca7ac(0x285)](_0x1b93aa,undefined,!![])):await this['sendTestRunEvent'](_0x2ed7cc,undefined,![],_0x5a717e[_0xca7ac(0x24c)]);}catch(_0x252e0b){_0x5a717e[_0xca7ac(0x2b2)](debug,_0xca7ac(0x2c4)+_0x252e0b);}};[a30_0x25b021(0x2f2)](_0x133e55){const _0x4a5913=a30_0x25b021,_0x49932a={};_0x49932a[_0x4a5913(0x2e0)]=function(_0xc27d7d,_0x4685f9){return _0xc27d7d!==_0x4685f9;},_0x49932a['FeMwk']=_0x4a5913(0x288);const _0x32bd42=_0x49932a;if(_0x32bd42['iaWvI'](_0x133e55[_0x4a5913(0x23d)],_0x32bd42['FeMwk']))return'\x22'+_0x133e55[_0x4a5913(0x23d)]+'\x22\x20hook\x20for\x20\x22'+(_0x133e55[_0x4a5913(0x28f)]&&_0x133e55[_0x4a5913(0x28f)]['name'])+'\x22';return _0x133e55['name'];}[a30_0x25b021(0x285)]=async(_0x43dbf9,_0x44c670=undefined,_0x48100e=![],_0x358d1f='TestRunFinished')=>{const _0x29d359=a30_0x25b021,_0x382f8a={'mFSiD':_0x29d359(0x232),'hoCEH':_0x29d359(0x216),'lylpc':'result','KEICc':_0x29d359(0x1f9),'tvGJd':_0x29d359(0x21e),'NSohR':_0x29d359(0x2bc),'VeiFy':_0x29d359(0x29e),'fbRwU':function(_0x28cfa1,_0x20f323){return _0x28cfa1(_0x20f323);},'CDxok':'jest-circus','hHoLV':function(_0x2c82f6,_0xf76920){return _0x2c82f6(_0xf76920);},'GDqkj':_0x29d359(0x291),'bQpVK':function(_0x42fd00,_0x384086){return _0x42fd00!==_0x384086;},'wTBNm':'test','cnqOO':_0x29d359(0x2ce),'mMwVf':function(_0x400644,_0x59819b){return _0x400644!==_0x59819b;},'JYjfo':_0x29d359(0x21c),'kPlbN':_0x29d359(0x2b7),'ClXVL':_0x29d359(0x242),'zVlaP':function(_0x110826,_0x4c8061){return _0x110826===_0x4c8061;},'SdwLD':'TestRunSkipped','sBJyX':'skipped','oEFsX':function(_0x32e3d8,_0x50f5dc){return _0x32e3d8>_0x50f5dc;},'UbSTh':_0x29d359(0x220),'oNdwi':_0x29d359(0x228),'TRMIq':function(_0x32cc15,_0x4d97c3){return _0x32cc15-_0x4d97c3;},'mYSGa':function(_0x539688,_0x3f2977){return _0x539688(_0x3f2977);},'AovdQ':function(_0x1beb39,_0x123f86,_0x41fdf3,_0x133c99,_0x85b672){return _0x1beb39(_0x123f86,_0x41fdf3,_0x133c99,_0x85b672);},'SgPTs':function(_0x3d1c7a,_0x2e1829){return _0x3d1c7a===_0x2e1829;},'VWYkM':_0x29d359(0x20f),'XXyDX':_0x29d359(0x297),'jrpSS':'HookRunFinished','tuUGA':function(_0x428c07,_0x547b9f){return _0x428c07!==_0x547b9f;},'HyySO':'failure_backtrace','NdhRH':_0x29d359(0x2ab),'FAZSf':'failure_reason_expanded','NEpPD':_0x29d359(0x233),'iDDdm':_0x29d359(0x2cd),'OjJXn':function(_0x48738a,_0x41d515){return _0x48738a===_0x41d515;},'mYydx':_0x29d359(0x235),'MQxEA':_0x29d359(0x279),'rmgNp':'HookRun','JeTaf':_0x29d359(0x2db),'stBOK':function(_0x3d87c1,_0x3f63aa,_0x20bf5a){return _0x3d87c1(_0x3f63aa,_0x20bf5a);},'VLsUs':function(_0x52a9c7,_0x5d307b){return _0x52a9c7(_0x5d307b);}};try{if(_0x43dbf9['fn']&&_0x43dbf9['fn'][_0x29d359(0x2ea)]()['match'](/browserstack internal helper hook/))return;await this[_0x29d359(0x29d)]();let _0x2a0656;try{_0x2a0656=this[_0x29d359(0x21f)](_0x43dbf9);}catch(_0x378873){_0x382f8a['fbRwU'](debug,_0x29d359(0x24d)+_0x378873),_0x2a0656=null;}if(_0x2a0656[_0x29d359(0x2c0)](_0x382f8a[_0x29d359(0x2d2)]))return;const _0x1cd033=_0x382f8a['hHoLV'](require,_0x382f8a[_0x29d359(0x24f)]);let _0x1203dc=[];if(_0x382f8a[_0x29d359(0x2b9)](_0x43dbf9[_0x29d359(0x25b)],undefined))_0x1203dc=[_0x43dbf9[_0x29d359(0x25b)],_0x382f8a[_0x29d359(0x2f7)]];else _0x382f8a[_0x29d359(0x2b9)](_0x44c670,undefined)?_0x1203dc=[_0x44c670,_0x382f8a[_0x29d359(0x2f4)]]:_0x1203dc=[];const _0x2afecc=_0x382f8a[_0x29d359(0x2b9)](_0x43dbf9['errorsDetailed'],undefined)?_0x1cd033['inspect'](_0x43dbf9[_0x29d359(0x25b)][0x0]):_0x382f8a['mMwVf'](_0x44c670,undefined)?_0x44c670[_0x29d359(0x2ea)]():undefined,_0x11b84f=_0x2a0656?this[_0x29d359(0x2dd)][_0x29d359(0x283)](this[_0x29d359(0x21f)](_0x43dbf9)):_0x382f8a[_0x29d359(0x2c2)],_0x49d1dd={'framework':FRAMEWORKS[_0x29d359(0x268)],'uuid':_0x43dbf9['testAnalyticsId']||_0x43dbf9['hookAnalyticsId'],'name':this['getName'](_0x43dbf9),'body':{'lang':_0x382f8a[_0x29d359(0x240)],'code':_0x43dbf9['fn']['toString']()},'scopes':this['getHierarchy'](_0x43dbf9),'file_name':_0x11b84f,'vc_filepath':this[_0x29d359(0x1f5)]&&_0x2a0656?path[_0x29d359(0x214)](this[_0x29d359(0x1f5)],_0x2a0656):null,'location':_0x11b84f,'result':_0x358d1f['match'](/Started$/)?_0x382f8a[_0x29d359(0x2f9)]:_0x382f8a[_0x29d359(0x26a)](_0x358d1f,_0x382f8a['SdwLD'])?_0x382f8a['sBJyX']:this[_0x29d359(0x211)](_0x43dbf9[_0x29d359(0x25b)]&&_0x382f8a[_0x29d359(0x238)](_0x43dbf9[_0x29d359(0x25b)][_0x29d359(0x2eb)],0x0)?_0x382f8a[_0x29d359(0x2e5)]:_0x382f8a[_0x29d359(0x2ae)]),'failure_reason':_0x2afecc,'duration_in_ms':_0x43dbf9[_0x29d359(0x259)]||(_0x358d1f[_0x29d359(0x2bd)](/Finished/)||_0x358d1f['match'](/Skipped/)?_0x382f8a['TRMIq'](Date[_0x29d359(0x2b4)](),new Date(_0x43dbf9['started_at'])[_0x29d359(0x275)]()):null),'started_at':_0x43dbf9['started_at'],'finished_at':_0x358d1f['match'](/Finished/)||_0x358d1f[_0x29d359(0x2bd)](/Skipped/)?new Date()[_0x29d359(0x2a5)]():null,'failure':failureData[_0x29d359(0x250)](null,_0x1203dc),'failure_type':!_0x2afecc?null:_0x382f8a[_0x29d359(0x27c)](getFailureType,_0x2afecc),'retry_of':_0x43dbf9[_0x29d359(0x226)]};_0x382f8a['AovdQ'](appendTesthubParams,_0x49d1dd,_0x358d1f,_0x43dbf9,FRAMEWORKS[_0x29d359(0x268)]);_0x382f8a[_0x29d359(0x2b3)](_0x358d1f,_0x382f8a[_0x29d359(0x284)])&&!_0x49d1dd[_0x382f8a['VWYkM']]&&(_0x49d1dd[_0x382f8a['VWYkM']]=_0x49d1dd[_0x382f8a[_0x29d359(0x298)]]);if(_0x358d1f[_0x29d359(0x2bd)](/HookRun/))[_0x49d1dd[_0x29d359(0x235)],_0x49d1dd['name']]=[_0x43dbf9[_0x29d359(0x23d)],this[_0x29d359(0x2f2)](_0x43dbf9)],_0x382f8a[_0x29d359(0x2b3)](_0x358d1f,_0x382f8a[_0x29d359(0x2f0)])&&(_0x382f8a[_0x29d359(0x20d)](_0x49d1dd[_0x29d359(0x2f8)],_0x382f8a[_0x29d359(0x2e5)])&&(_0x49d1dd[_0x29d359(0x2f8)]=_0x382f8a[_0x29d359(0x2ae)]));else _0x358d1f[_0x29d359(0x2bd)](/TestRun/)&&this[_0x29d359(0x249)](_0x43dbf9);const _0x50863d=_0x49d1dd[_0x382f8a[_0x29d359(0x21d)]][0x0];_0x50863d&&(_0x49d1dd[_0x382f8a[_0x29d359(0x26c)]]=_0x50863d[_0x382f8a['NdhRH']],_0x49d1dd[_0x382f8a[_0x29d359(0x282)]]=_0x50863d[_0x382f8a['NEpPD']]);[_0x382f8a[_0x29d359(0x2a2)],_0x382f8a['SdwLD']][_0x29d359(0x2c0)](_0x358d1f)&&(this[_0x29d359(0x20b)][_0x29d359(0x2be)](_0x49d1dd),_0x49d1dd[_0x29d359(0x1ff)]=this[_0x29d359(0x296)](_0x43dbf9),this[_0x29d359(0x21a)](_0x43dbf9));const _0x2f9e1d={'event_type':_0x382f8a['OjJXn'](_0x358d1f,_0x382f8a[_0x29d359(0x284)])?_0x382f8a['iDDdm']:_0x358d1f};_0x358d1f[_0x29d359(0x2bd)](/HookRun/)?(_0x49d1dd[_0x382f8a['mYydx']]=HOOK_TYPES_MAP[_0x49d1dd[_0x382f8a[_0x29d359(0x258)]]],_0x2f9e1d[_0x382f8a[_0x29d359(0x20a)]]=_0x49d1dd):_0x2f9e1d[_0x382f8a[_0x29d359(0x29c)]]=_0x49d1dd;_0x382f8a[_0x29d359(0x238)](this[_0x29d359(0x2d4)][_0x29d359(0x2eb)],0x0)&&[_0x382f8a[_0x29d359(0x2a2)],_0x382f8a[_0x29d359(0x284)]]['includes'](_0x358d1f)&&(this[_0x29d359(0x2d4)][_0x29d359(0x2fe)](async _0x4e24a7=>{const _0x49fdbb=_0x29d359,_0x1e9cc9=_0x382f8a[_0x49fdbb(0x290)]['split']('|');let _0x1fa245=0x0;while(!![]){switch(_0x1e9cc9[_0x1fa245++]){case'0':_0x4e24a7[_0x382f8a[_0x49fdbb(0x20a)]][_0x382f8a[_0x49fdbb(0x245)]]=_0x2f9e1d[_0x382f8a[_0x49fdbb(0x29c)]][_0x382f8a[_0x49fdbb(0x245)]];continue;case'1':await SessionHandler['uploadEventData'](_0x4e24a7);continue;case'2':_0x4e24a7[_0x382f8a[_0x49fdbb(0x20a)]][_0x382f8a['tvGJd']]=_0x2f9e1d[_0x382f8a['KEICc']][_0x382f8a[_0x49fdbb(0x2fa)]];continue;case'3':_0x4e24a7[_0x382f8a[_0x49fdbb(0x20a)]][_0x382f8a['NSohR']]=_0x2f9e1d[_0x382f8a[_0x49fdbb(0x29c)]][_0x382f8a[_0x49fdbb(0x2e1)]];continue;case'4':_0x4e24a7[_0x382f8a[_0x49fdbb(0x20a)]][_0x382f8a[_0x49fdbb(0x21d)]]=_0x2f9e1d[_0x382f8a['KEICc']][_0x382f8a[_0x49fdbb(0x21d)]];continue;}break;}}),this[_0x29d359(0x2d4)]=[]);if(_0x382f8a['zVlaP'](this['hook_failure'],_0x43dbf9[_0x29d359(0x23d)])){this[_0x29d359(0x2d4)][_0x29d359(0x2be)](_0x2f9e1d);return;}_0x382f8a[_0x29d359(0x26a)](this[_0x29d359(0x2ed)],_0x382f8a['MQxEA'])&&_0x2f9e1d[_0x382f8a[_0x29d359(0x29c)]]&&(_0x2f9e1d[_0x382f8a[_0x29d359(0x29c)]][_0x382f8a[_0x29d359(0x245)]]=_0x382f8a[_0x29d359(0x29a)],_0x2f9e1d[_0x382f8a[_0x29d359(0x29c)]][_0x382f8a[_0x29d359(0x21d)]]=null,_0x2f9e1d[_0x382f8a[_0x29d359(0x29c)]][_0x382f8a[_0x29d359(0x2fa)]]=null);if(_0x358d1f[_0x29d359(0x2c0)](_0x382f8a[_0x29d359(0x2cc)])&&_0x2f9e1d[_0x382f8a[_0x29d359(0x20a)]]){if(this[_0x29d359(0x265)])_0x2f9e1d[_0x382f8a[_0x29d359(0x20a)]][_0x382f8a[_0x29d359(0x2e8)]]=this[_0x29d359(0x265)];else{this[_0x29d359(0x201)][_0x29d359(0x2be)](_0x2f9e1d);return;}}_0x382f8a['stBOK'](setCurrentTestData,FRAMEWORKS[_0x29d359(0x268)],_0x2f9e1d),await SessionHandler['uploadEventData'](_0x2f9e1d);}catch(_0x58c858){_0x382f8a[_0x29d359(0x209)](debug,_0x29d359(0x2ad)+_0x358d1f+'\x20with\x20error\x20:\x20'+_0x58c858);}};[a30_0x25b021(0x2a3)](_0x59b294){const _0x4d0e13=a30_0x25b021,_0x154135={};_0x154135['LdzeD']=function(_0x25a5cb,_0x44a067){return _0x25a5cb==_0x44a067;},_0x154135[_0x4d0e13(0x2c1)]=function(_0x3ca3c2,_0x4404ab){return _0x3ca3c2===_0x4404ab;},_0x154135[_0x4d0e13(0x224)]=function(_0x2ba4ef,_0x221217){return _0x2ba4ef===_0x221217;},_0x154135[_0x4d0e13(0x27e)]=function(_0xb7fc94,_0x1af72a){return _0xb7fc94===_0x1af72a;},_0x154135[_0x4d0e13(0x295)]=_0x4d0e13(0x2e9),_0x154135[_0x4d0e13(0x27b)]=_0x4d0e13(0x234);const _0x32148e=_0x154135,_0x2bf7f8=path['sep'];if(_0x32148e[_0x4d0e13(0x287)](_0x59b294,null)||_0x32148e[_0x4d0e13(0x2c1)](_0x59b294,'')||_0x32148e[_0x4d0e13(0x224)](_0x59b294,_0x2bf7f8)||_0x32148e['uxbyd'](_0x59b294,path[_0x4d0e13(0x253)](_0x59b294)))return null;try{return fs[_0x4d0e13(0x286)](path[_0x4d0e13(0x293)](_0x59b294,_0x32148e[_0x4d0e13(0x295)],_0x32148e[_0x4d0e13(0x27b)])),_0x59b294;}catch(_0x2fa65a){const _0x321e23=path[_0x4d0e13(0x253)](_0x59b294);return this['findGitConfig'](_0x321e23);}}[a30_0x25b021(0x246)]=async _0x30c854=>{const _0x1955f1=a30_0x25b021,_0xcdb841={'WlLrP':_0x1955f1(0x2b5),'NdAnA':_0x1955f1(0x22f),'xswgN':_0x1955f1(0x24b),'uRAHW':function(_0x324e6f,_0x21cdb9){return _0x324e6f||_0x21cdb9;},'mFNZu':function(_0xfd3a39,_0x218c66){return _0xfd3a39(_0x218c66);},'WioOt':_0x1955f1(0x2a1),'CWQTZ':function(_0x560d44,_0xa47e0f){return _0x560d44(_0xa47e0f);},'zglbp':function(_0x1975f7,_0x2caf8c){return _0x1975f7&&_0x2caf8c;},'YQOJg':function(_0x3a33b0,_0x10dc6d){return _0x3a33b0(_0x10dc6d);},'ONtLK':_0x1955f1(0x2c5),'ibpDb':function(_0x50f520,_0x1f5bcf){return _0x50f520(_0x1f5bcf);},'XpGOj':function(_0xc5c17e,_0x22619d){return _0xc5c17e(_0x22619d);},'YDDyL':function(_0xb8b75d,_0x40450b){return _0xb8b75d(_0x40450b);},'htVel':_0x1955f1(0x2ca),'IPbqT':function(_0x499f82,_0x480450){return _0x499f82(_0x480450);},'rRcMb':'../../v2/state/hookState','ZqbRR':function(_0x392938,_0x594770){return _0x392938(_0x594770);},'SggnE':_0x1955f1(0x202),'BfCDa':function(_0x5b12d3,_0x4a65bf){return _0x5b12d3===_0x4a65bf;},'thcaZ':_0x1955f1(0x23c),'aIsKx':'unknown','WmTUf':function(_0x3bc2d8,_0x1d7c03){return _0x3bc2d8(_0x1d7c03);},'gawyw':_0x1955f1(0x1f4)};try{const _0x2b2135=helper[_0x1955f1(0x255)](_0xcdb841[_0x1955f1(0x2fc)]),_0x13e427=!!_0x2b2135,_0x320694=helper[_0x1955f1(0x255)](_0xcdb841[_0x1955f1(0x272)])||helper['getPackageVersion'](_0xcdb841[_0x1955f1(0x2d0)]),_0x28878f=!!_0x320694,_0x16a582=BrowserstackCLI['getInstance']()[_0x1955f1(0x267)]()&&BrowserstackCLI[_0x1955f1(0x26d)]()[_0x1955f1(0x277)]();if(_0xcdb841['uRAHW'](_0x13e427,_0x28878f)&&_0x16a582){_0xcdb841['mFNZu'](debug,_0xcdb841[_0x1955f1(0x1fc)]);let _0x141df0=null,_0x214d8f=null;if(global[_0x1955f1(0x227)]&&global['__workerDetails'][_0x1955f1(0x263)]){const _0x28d6aa=global[_0x1955f1(0x227)]['currentHook'];_0x214d8f=_0x28d6aa[_0x1955f1(0x230)],_0x141df0=_0x28d6aa['testIdentifier'],_0xcdb841[_0x1955f1(0x2a9)](debug,_0x1955f1(0x2e4)+_0x214d8f+',\x20testIdentifier='+_0x141df0);}!_0x141df0&&(_0x141df0=global['__jestCurrentTestIdentifier'],_0xcdb841[_0x1955f1(0x2ac)](debug,_0x1955f1(0x223)+_0x141df0));if(_0xcdb841[_0x1955f1(0x2c8)](!_0x214d8f,_0x141df0)){const _0x43256c=BrowserstackCLI[_0x1955f1(0x26d)]()[_0x1955f1(0x2a0)]();if(_0x43256c&&_0x43256c[_0x1955f1(0x22c)]){const _0x33d4ea=_0x43256c['getActiveHook'](_0x141df0);_0x33d4ea&&_0x33d4ea[_0x1955f1(0x230)]&&(_0x214d8f=_0x33d4ea['hookUUID'],_0xcdb841[_0x1955f1(0x299)](debug,_0x1955f1(0x206)+_0x214d8f+_0x1955f1(0x2d3)+_0x141df0));}}if(!_0x141df0||!_0x141df0[_0x1955f1(0x2c0)](_0xcdb841[_0x1955f1(0x294)]))_0xcdb841[_0x1955f1(0x2e7)](debug,_0x1955f1(0x2d8)+_0x141df0+_0x1955f1(0x2b1));else{_0x214d8f&&(_0x30c854[_0x1955f1(0x261)]=_0x214d8f,_0xcdb841[_0x1955f1(0x2ba)](debug,_0x1955f1(0x2e6)+_0x214d8f+_0x1955f1(0x1f8)));_0x30c854[_0x1955f1(0x251)]=_0x141df0,_0xcdb841[_0x1955f1(0x2ba)](debug,_0x1955f1(0x2f5)+_0x141df0+_0x1955f1(0x1f8));const _0x59bf54=BrowserstackCLI[_0x1955f1(0x26d)]()[_0x1955f1(0x2a0)]();if(_0x59bf54){const _0x29a6c9=_0xcdb841['YDDyL'](require,_0xcdb841[_0x1955f1(0x289)]),_0x39dc4b=_0xcdb841[_0x1955f1(0x22d)](require,_0xcdb841[_0x1955f1(0x2ef)]),_0xdca36f=_0xcdb841[_0x1955f1(0x26e)](require,_0xcdb841[_0x1955f1(0x2b6)]),_0x8722c1=_0x59bf54[_0x1955f1(0x204)](_0x29a6c9[_0x1955f1(0x239)],_0x39dc4b[_0x1955f1(0x26b)]);if(_0x8722c1&&_0xcdb841[_0x1955f1(0x292)](typeof _0x8722c1[_0x1955f1(0x271)],_0xcdb841[_0x1955f1(0x2fb)])){const _0x53b99b=_0x8722c1[_0x1955f1(0x256)]()[_0x1955f1(0x1fa)](_0x141df0)||{},_0x2b51a9=_0x53b99b[_0xdca36f['KEY_LOGS']]||[],_0x3356b4=[..._0x2b51a9,_0x30c854],_0x24ab6c={[_0xdca36f[_0x1955f1(0x212)]]:_0x3356b4},_0x6b48b8={};_0x6b48b8[_0x141df0]=_0x24ab6c,_0x8722c1[_0x1955f1(0x271)](_0x6b48b8),_0xcdb841['mFNZu'](debug,'[obsReporter]\x20appendTestItemLog:\x20Stored\x20log\x20in\x20instance.data[KEY_LOGS]\x20for\x20testIdentifier='+_0x141df0+_0x1955f1(0x25a)+(_0x30c854[_0x1955f1(0x269)]||_0xcdb841[_0x1955f1(0x241)])+_0x1955f1(0x217)+_0x3356b4[_0x1955f1(0x2eb)]);return;}_0xcdb841[_0x1955f1(0x266)](debug,'[obsReporter]\x20appendTestItemLog:\x20Instance\x20not\x20available\x20or\x20addMultipleEntries\x20not\x20available\x20for\x20testIdentifier='+_0x141df0+_0x1955f1(0x2b1));}}}}catch(_0x627b70){_0xcdb841[_0x1955f1(0x299)](debug,'[obsReporter]\x20appendTestItemLog:\x20Error\x20in\x20Jest+Playwright\x20flow\x20detection:\x20'+_0x627b70+_0x1955f1(0x2b1));}const _0x3a54f3=TestDetails[_0x1955f1(0x276)](process['pid']+_0x1955f1(0x28e)),_0x1061dc=TestDetails['getTestUUID'](process[_0x1955f1(0x27d)]+':testAnalyticsId');try{(_0x3a54f3||this['current_hook']&&!this[_0x1955f1(0x2d5)]['markedStatus'])&&(_0x30c854[_0x1955f1(0x261)]=_0x3a54f3);!_0x30c854[_0x1955f1(0x261)]&&_0x1061dc&&(_0x30c854[_0x1955f1(0x2d9)]=_0x1061dc);if(_0x30c854[_0x1955f1(0x261)]||_0x30c854[_0x1955f1(0x2d9)]){const _0x5c14dd={};_0x5c14dd[_0x1955f1(0x1f6)]=_0xcdb841[_0x1955f1(0x225)],_0x5c14dd[_0x1955f1(0x280)]=[_0x30c854],await SessionHandler[_0x1955f1(0x23f)](_0x5c14dd);}}catch(_0x35fcf7){_0xcdb841['XpGOj'](debug,_0x1955f1(0x219)+constants[_0x1955f1(0x2ee)]+_0x1955f1(0x205)+_0x35fcf7);}};[a30_0x25b021(0x2dc)]=async _0x8679b6=>{const _0x2926b2=a30_0x25b021,_0x1fc06c={'kkdVb':'http_response','yezbo':_0x2926b2(0x2cb),'eVRyt':function(_0x2373ef,_0x5ea18f){return _0x2373ef>_0x5ea18f;},'MYoHt':'hook_run','gbiHQ':function(_0x3b7805,_0x5c39c9,_0x1c52fb){return _0x3b7805(_0x5c39c9,_0x1c52fb);},'ixtqa':function(_0x8c55ff,_0x4ec49f){return _0x8c55ff(_0x4ec49f);},'YZQlD':function(_0x415c9f,_0xbf58b9){return _0x415c9f(_0xbf58b9);}};try{const _0x57d67f=_0x8679b6&&_0x8679b6[_0x1fc06c[_0x2926b2(0x23a)]];_0x57d67f&&(this[_0x2926b2(0x265)]=_0x57d67f);const _0x2ee336={'uuid':_0x8679b6[_0x2926b2(0x22b)]||TestDetails[_0x2926b2(0x276)](process[_0x2926b2(0x27d)]+':testAnalyticsId'),'integrations':_0x57d67f},_0x48d77b={};_0x48d77b[_0x2926b2(0x1f6)]=_0x1fc06c['yezbo'],_0x48d77b[_0x2926b2(0x1f9)]=_0x2ee336,await SessionHandler['uploadEventData'](_0x48d77b);if(_0x57d67f&&_0x1fc06c[_0x2926b2(0x2cf)](this[_0x2926b2(0x201)][_0x2926b2(0x2eb)],0x0)){const _0x462d55=this[_0x2926b2(0x201)][_0x2926b2(0x231)](0x0,this[_0x2926b2(0x201)]['length']);for(const _0xe8fe14 of _0x462d55){try{const _0x4c765e=_0xe8fe14&&_0xe8fe14[_0x1fc06c[_0x2926b2(0x2c3)]]?{..._0xe8fe14,'hook_run':{..._0xe8fe14[_0x1fc06c[_0x2926b2(0x2c3)]],'integrations':_0x57d67f}}:_0xe8fe14;_0x1fc06c[_0x2926b2(0x2c9)](setCurrentTestData,FRAMEWORKS[_0x2926b2(0x268)],_0x4c765e),await SessionHandler['uploadEventData'](_0x4c765e);}catch(_0x867142){_0x1fc06c[_0x2926b2(0x244)](debug,_0x2926b2(0x2df)+_0x867142);}}}}catch(_0x52f1b2){_0x1fc06c[_0x2926b2(0x21b)](debug,'Exception\x20in\x20uploading\x20platform\x20details\x20to\x20'+constants[_0x2926b2(0x2ee)]+_0x2926b2(0x205)+_0x52f1b2);}};async[a30_0x25b021(0x29d)](){const _0x5bafcd=a30_0x25b021,_0x443d5b={'wonNe':function(_0x4c9d51){return _0x4c9d51();}};if(this['_gitConfigured'])return this[_0x5bafcd(0x1f5)];const _0x1f617c=await _0x443d5b[_0x5bafcd(0x236)](getGitMetaData);_0x1f617c&&(this['_gitConfigPath']=_0x1f617c[_0x5bafcd(0x2fd)]),this[_0x5bafcd(0x1fe)]=!![];}['analyticsResult'](_0x4803c2){const _0x524df9=a30_0x25b021,_0x569db5={};_0x569db5['GJqxs']=_0x524df9(0x228),_0x569db5[_0x524df9(0x203)]=_0x524df9(0x242),_0x569db5[_0x524df9(0x237)]=_0x524df9(0x220);const _0x4645b8=_0x569db5,_0x3152c4={};return _0x3152c4[STATE_PASSED]=_0x4645b8[_0x524df9(0x200)],_0x3152c4[STATE_PENDING]=_0x4645b8['cuvBA'],_0x3152c4[STATE_FAILED]=_0x4645b8['ZgXUl'],_0x3152c4[_0x4803c2];}[a30_0x25b021(0x24e)](_0x166727){const _0x3f99f3=a30_0x25b021,_0x1ad1d2={};_0x1ad1d2[_0x3f99f3(0x2ff)]=function(_0x15cdb6,_0x52d030){return _0x15cdb6!==_0x52d030;},_0x1ad1d2[_0x3f99f3(0x24a)]=function(_0x3091af,_0x2502ff){return _0x3091af!==_0x2502ff;},_0x1ad1d2[_0x3f99f3(0x28b)]=_0x3f99f3(0x2b0);const _0xf6d0af=_0x1ad1d2,_0x2df093=[];if(_0x166727&&_0x166727[_0x3f99f3(0x28f)]){let _0x3caaad=_0x166727['parent'];while(_0x3caaad&&_0xf6d0af['nbQHn'](_0x3caaad[_0x3f99f3(0x2f6)],'')&&_0xf6d0af['oSxLp'](_0x3caaad[_0x3f99f3(0x2f6)],_0xf6d0af[_0x3f99f3(0x28b)])){_0x2df093['push'](_0x3caaad[_0x3f99f3(0x2f6)]),_0x3caaad=_0x3caaad[_0x3f99f3(0x28f)];}}return _0x2df093[_0x3f99f3(0x2aa)](),_0x2df093;}['getRootParentFile']=_0x149645=>{const _0x2b09a9=a30_0x25b021,_0x83906d={'rCNOK':function(_0x233cf1,_0x328ab5){return _0x233cf1(_0x328ab5);},'mTMRs':function(_0x42756e,_0x128f19){return _0x42756e(_0x128f19);}};if(_0x149645[_0x2b09a9(0x25e)])return _0x149645['file'];if(_0x149645[_0x2b09a9(0x1fd)]){const _0x13c1a6=stackTrace['parse'][_0x2b09a9(0x25d)](stackTrace,_0x149645['asyncError']),_0x238ead=_0x83906d[_0x2b09a9(0x28c)](pickUserFrameFile,_0x13c1a6);if(_0x238ead)return _0x238ead;_0x83906d[_0x2b09a9(0x2a8)](debug,_0x2b09a9(0x260)+_0x13c1a6['length']+')');}return null;};[a30_0x25b021(0x249)]=_0x6b7733=>{const _0x3089a9=a30_0x25b021;if(!_0x6b7733||!_0x6b7733['parent'])return;_0x6b7733['parent'][_0x3089a9(0x1ff)][_0x3089a9(0x2fe)](_0x5a2528=>{const _0x271a04=_0x3089a9;!_0x5a2528['hookAnalyticsId']&&(_0x5a2528[_0x271a04(0x2d6)]=TestDetails['setTestUUID'](process[_0x271a04(0x27d)]+_0x271a04(0x28e)));}),this['mapTestHooks'](_0x6b7733['parent']);};[a30_0x25b021(0x21a)]=_0x2306b9=>{const _0x1da743=a30_0x25b021,_0xd4aa0={};_0xd4aa0[_0x1da743(0x2af)]='beforeEach',_0xd4aa0['bxLpd']=_0x1da743(0x22a);const _0x889aa5=_0xd4aa0;if(!_0x2306b9||!_0x2306b9[_0x1da743(0x28f)])return;_0x2306b9[_0x1da743(0x28f)][_0x1da743(0x1ff)][_0x1da743(0x2fe)](_0xca7e42=>{const _0x5d62f2=_0x1da743;[_0x889aa5['dlBrq'],_0x889aa5[_0x5d62f2(0x29b)]]['includes'](_0xca7e42[_0x5d62f2(0x23d)])&&_0xca7e42['hookAnalyticsId']&&(_0xca7e42['hookAnalyticsId']=null);}),this[_0x1da743(0x249)](_0x2306b9[_0x1da743(0x28f)]);};['isJestInternalHook'](_0x272441){const _0x59d5c9=a30_0x25b021,_0x5c11af={'ecKdq':_0x59d5c9(0x215),'UrSeA':function(_0x2c7c42,_0x135be1){return _0x2c7c42(_0x135be1);},'NSubV':function(_0x4f275d,_0x619610){return _0x4f275d+_0x619610;},'ShQzl':'Exception\x20in\x20getting\x20file\x20for\x20hook\x20'};try{const _0x5b0b9f=this[_0x59d5c9(0x21f)](_0x272441);if(!_0x5b0b9f||_0x5b0b9f[_0x59d5c9(0x2c0)](_0x5c11af[_0x59d5c9(0x213)]))return!![];return![];}catch(_0x48f8b5){_0x5c11af['UrSeA'](debug,_0x5c11af['NSubV'](_0x5c11af[_0x59d5c9(0x243)],_0x48f8b5));}return![];}[a30_0x25b021(0x296)]=_0x5d17ca=>{const _0x16f5eb=a30_0x25b021,_0x2c4e4b={'QKzUx':function(_0x275148,_0x13eb8c){return _0x275148(_0x13eb8c);}};if(!_0x5d17ca||!_0x5d17ca['parent'])return[];const _0x47efcf=[];return _0x5d17ca[_0x16f5eb(0x28f)][_0x16f5eb(0x1ff)][_0x16f5eb(0x2fe)](_0x3415d6=>{const _0x1ecb4b=_0x16f5eb;_0x3415d6[_0x1ecb4b(0x2d6)]&&!_0x2c4e4b[_0x1ecb4b(0x221)](isInternalHook,_0x3415d6['fn'])&&!this[_0x1ecb4b(0x270)](_0x3415d6)&&_0x47efcf[_0x1ecb4b(0x2be)](_0x3415d6['hookAnalyticsId']);}),[..._0x47efcf,...this['getHooksForTest'](_0x5d17ca['parent'])];};},[a30_0x25b021(0x28d),a30_0x25b021(0x29f),'testStarted',a30_0x25b021(0x2f2),a30_0x25b021(0x285),a30_0x25b021(0x2a3),'appendTestItemLog',a30_0x25b021(0x2dc),a30_0x25b021(0x211),'getHierarchy',a30_0x25b021(0x21f),'mapTestHooks',a30_0x25b021(0x21a),a30_0x25b021(0x296),a30_0x25b021(0x29d)],'ObservabilityReporter');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a31_0x22ddfb=a31_0x32f4;(function(_0x69fe3a,_0x5048e8){const _0x1f4411=a31_0x32f4,_0x1f0bdc=_0x69fe3a();while(!![]){try{const _0x29215f=parseInt(_0x1f4411(0xb3))/0x1+-parseInt(_0x1f4411(0xa6))/0x2*(parseInt(_0x1f4411(0xa7))/0x3)+-parseInt(_0x1f4411(0xb7))/0x4+parseInt(_0x1f4411(0xb4))/0x5*(parseInt(_0x1f4411(0xc3))/0x6)+-parseInt(_0x1f4411(0xbd))/0x7+parseInt(_0x1f4411(0xb2))/0x8*(parseInt(_0x1f4411(0xaf))/0x9)+parseInt(_0x1f4411(0xad))/0xa*(parseInt(_0x1f4411(0x9f))/0xb);if(_0x29215f===_0x5048e8)break;else _0x1f0bdc['push'](_0x1f0bdc['shift']());}catch(_0x29940a){_0x1f0bdc['push'](_0x1f0bdc['shift']());}}}(a31_0x5342,0x66e88));function a31_0x32f4(_0x372435,_0x353248){const _0x534296=a31_0x5342();return a31_0x32f4=function(_0x32f4fe,_0xae7e9){_0x32f4fe=_0x32f4fe-0x9f;let _0x589dec=_0x534296[_0x32f4fe];return _0x589dec;},a31_0x32f4(_0x372435,_0x353248);}function a31_0x5342(){const _0x3895a3=['exports','setTestData','join','toString','.browserstack','../../../helpers/testhub/constants','BROWSERSTACK_TESTHUB_UUID','ENV_VAR','stringify','tests','913HfTthl','OnEQj','parse','force','recursive','dirPath','readFileSync','12xsOWMP','225657PRhpay','env','uuid','iEoZC','writeFileSync','unlinkSync','23000boMrDi','shutdown','171882oePYvm','jest-o11y-','vjUlK','208EijLNw','581831aXlBbc','5UWhSwm','existsSync','setTestUUID','2567088nxMGnG','removeTestUUID','homedir','oPVOq','../../../helpers/helper','.json','4020415qiDggl','qhVwM','getFilePath','mkdirSync','getTestRunIdFromTestInfo','GNAAQ','4917984zbNsKz','testData.json'];a31_0x5342=function(){return _0x3895a3;};return a31_0x5342();}const fs=require('fs'),path=require('path'),{v4:uuidv4}=require(a31_0x22ddfb(0xa9)),helper=require(a31_0x22ddfb(0xbb)),testHubConstants=require(a31_0x22ddfb(0xca));class TestDetails{static ['tests']={};static [a31_0x22ddfb(0xa4)]=path[a31_0x22ddfb(0xc7)](helper[a31_0x22ddfb(0xb9)](),'.browserstack',a31_0x22ddfb(0xb0)+process[a31_0x22ddfb(0xa8)][testHubConstants['ENV_VAR'][a31_0x22ddfb(0xcb)]]);static['setup'](){const _0x172baf=a31_0x22ddfb,_0xc54667={};_0xc54667[_0x172baf(0xbe)]=_0x172baf(0xc9);const _0x1ac4b4=_0xc54667;this[_0x172baf(0xa4)]=path[_0x172baf(0xc7)](helper['homedir'](),_0x1ac4b4[_0x172baf(0xbe)],'jest-o11y-'+process['env'][testHubConstants[_0x172baf(0xcc)][_0x172baf(0xcb)]]),this[_0x172baf(0xae)]();const _0x39eeed={};_0x39eeed[_0x172baf(0xa3)]=!![],fs[_0x172baf(0xc0)](this[_0x172baf(0xa4)],_0x39eeed);}static[a31_0x22ddfb(0xbf)](_0x3a6191){const _0x168bb4=a31_0x22ddfb,_0x11341b={};_0x11341b['vjUlK']=function(_0x33d2b7,_0x2b5faa){return _0x33d2b7+_0x2b5faa;},_0x11341b[_0x168bb4(0xaa)]=_0x168bb4(0xbc);const _0x332cd7=_0x11341b;return path[_0x168bb4(0xc7)](this['dirPath'],_0x332cd7[_0x168bb4(0xb1)](_0x3a6191,_0x332cd7[_0x168bb4(0xaa)]));}static[a31_0x22ddfb(0xc1)](_0x1c34f8){const _0x492e30=a31_0x22ddfb,_0x4b9596={};_0x4b9596[_0x492e30(0xc2)]=function(_0x40bb3c,_0x156cd2){return _0x40bb3c+_0x156cd2;};const _0x4a3fbb=_0x4b9596;return _0x4a3fbb['GNAAQ'](_0x4a3fbb[_0x492e30(0xc2)](_0x1c34f8['_test']['id'],'-'),_0x1c34f8['retry']);}static['getTestUUID'](_0x3116ab){const _0x45e873=a31_0x22ddfb,_0x2ab1b8=this[_0x45e873(0xbf)](_0x3116ab);if(fs[_0x45e873(0xb5)](_0x2ab1b8)){const _0x2b67c5=JSON[_0x45e873(0xa1)](fs[_0x45e873(0xa5)](_0x2ab1b8)[_0x45e873(0xc8)]());return this[_0x45e873(0xce)][_0x3116ab]=_0x2b67c5,this[_0x45e873(0xce)][_0x3116ab][_0x45e873(0xa9)];}}static[a31_0x22ddfb(0xc6)](_0x486b70){const _0x15d29a=a31_0x22ddfb,_0x1f690a={};_0x1f690a[_0x15d29a(0xba)]=_0x15d29a(0xc4);const _0x18e8cb=_0x1f690a,_0x1aa6c3=path[_0x15d29a(0xc7)](this[_0x15d29a(0xa4)],_0x18e8cb[_0x15d29a(0xba)]);fs[_0x15d29a(0xab)](_0x1aa6c3,JSON[_0x15d29a(0xcd)](_0x486b70));}static['getTestData'](){const _0x335695=a31_0x22ddfb,_0x55f5a7={};_0x55f5a7[_0x335695(0xa0)]='testData.json';const _0x2df11c=_0x55f5a7,_0x54a84c=path['join'](this[_0x335695(0xa4)],_0x2df11c[_0x335695(0xa0)]);let _0x294929={};try{return _0x54a84c&&fs[_0x335695(0xb5)](_0x54a84c)&&(_0x294929=JSON['parse'](fs[_0x335695(0xa5)](_0x54a84c)[_0x335695(0xc8)]())),_0x294929;}catch(_0x43b867){return _0x294929;}}static[a31_0x22ddfb(0xb6)](_0x55a253){const _0x5d576c=a31_0x22ddfb,_0x51103b={'uZJkB':function(_0x30053e){return _0x30053e();}},_0x27041c=this['getFilePath'](_0x55a253);return this[_0x5d576c(0xce)][_0x55a253]={'uuid':_0x51103b['uZJkB'](uuidv4)},fs[_0x5d576c(0xab)](_0x27041c,JSON[_0x5d576c(0xcd)](this[_0x5d576c(0xce)][_0x55a253])),this['tests'][_0x55a253][_0x5d576c(0xa9)];}static[a31_0x22ddfb(0xb8)](_0x531bb9){const _0x16e9eb=a31_0x22ddfb,_0x2ebab4=this[_0x16e9eb(0xbf)](_0x531bb9);_0x2ebab4&&(fs['existsSync'](_0x2ebab4)&&fs[_0x16e9eb(0xac)](_0x2ebab4));}static[a31_0x22ddfb(0xae)](){const _0x4af96d=a31_0x22ddfb,_0xd027c={};_0xd027c[_0x4af96d(0xa3)]=!![],_0xd027c[_0x4af96d(0xa2)]=!![],fs['rmSync'](this[_0x4af96d(0xa4)],_0xd027c);}}module[a31_0x22ddfb(0xc5)]=TestDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a32_0x41101f=a32_0xef34;(function(_0x2af743,_0x3ce7d0){const _0x3b176b=a32_0xef34,_0x3d1e8b=_0x2af743();while(!![]){try{const _0x14e76c=-parseInt(_0x3b176b(0x104))/0x1+-parseInt(_0x3b176b(0x122))/0x2+parseInt(_0x3b176b(0x10c))/0x3+parseInt(_0x3b176b(0x127))/0x4+-parseInt(_0x3b176b(0x107))/0x5+-parseInt(_0x3b176b(0x114))/0x6+parseInt(_0x3b176b(0xfc))/0x7;if(_0x14e76c===_0x3ce7d0)break;else _0x3d1e8b['push'](_0x3d1e8b['shift']());}catch(_0x50484d){_0x3d1e8b['push'](_0x3d1e8b['shift']());}}}(a32_0x7ed6,0xf298e));const {requireModule,modifyCommand,isTrue,isBrowserstackInfra,nestedKeyValue,parseYaml}=require(a32_0x41101f(0x117)),setKeepAlive=require(a32_0x41101f(0xff)),util=require(a32_0x41101f(0xfb)),PerformanceTester=require(a32_0x41101f(0x102)),{EVENTS:PerformanceEvents}=require(a32_0x41101f(0x108)),logger=require(a32_0x41101f(0x11a))['winstonLogger'],{shouldProcessEventForTesthub}=require(a32_0x41101f(0x110)),{sendPlatformDetails,addRequestSpy,patchConsoleLogger}=require(a32_0x41101f(0x10a)),TestDetails=require(a32_0x41101f(0x10d)),RequestQueueHandler=require(a32_0x41101f(0xf3)),{o11yErrorHandler}=require(a32_0x41101f(0x11d)),MyReporter=require(a32_0x41101f(0x12b)),SessionHandler=require(a32_0x41101f(0x105)),scripts=require(a32_0x41101f(0x101)),globals=require('../../helpers/globals'),testHubConstants=require(a32_0x41101f(0xfd)),{shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),fs=require('fs'),a32_0x6fd6a5={};a32_0x6fd6a5[a32_0x41101f(0x113)]=undefined,a32_0x6fd6a5[a32_0x41101f(0x125)]={},a32_0x6fd6a5['o11ySyncDone']=![],a32_0x6fd6a5['pwPage']=null,a32_0x6fd6a5[a32_0x41101f(0x11f)]=![],a32_0x6fd6a5[a32_0x41101f(0x125)]['id']=undefined,a32_0x6fd6a5[a32_0x41101f(0x125)][a32_0x41101f(0x116)]=undefined;const workerDetails=a32_0x6fd6a5;function a32_0x7ed6(){const _0x4f447e=['../utils/playwright-patcher','isPageFixture','Error\x20initializing\x20Puppeteer\x20patching:\x20','jestConfig','520566Oujjbu','catch','initializePlaywrightPatching','currentTest','initializePuppeteerPatching','1632544vyWpYi','message','skipSessionName','Puppeteer\x20patching\x20and\x20session\x20details\x20initialized\x20for\x20Jest','../playwright/reporter/reporter.js','../../helpers/test-observability/requestQueueHandler','puppeteer-core','__workerDetails','jest','PUPPETEER','../utils/constants','__skipSessionStatus','format','util','22888894JVWGxU','../../helpers/testhub/constants.js','debug','../../helpers/setKeepAlive','skipSessionStatus','../../helpers/accessibility-automation/scripts','../../helpers/performance/performance-tester','getInstance','1124423mGPdYy','../../helpers/test-observability/sessionHandler','Bootstrapping\x20BrowserstackCLI\x20for\x20Jest\x20worker\x20process\x20(','5972725UKUEgc','../../helpers/performance/constants','getPackageVersion','../../helpers/test-observability/utils','Error\x20bootstrapping\x20BrowserstackCLI:\x20','5131434IoQCnr','../playwright/reporter/test-details.js','driver-init\x20capture\x20install\x20failed:\x20','@playwright/test','../../helpers/testhub/utils','../v2/cliUtils','PLAYWRIGHT','workerInfo','10893162HvYAer','installAll','testInfo','../../helpers/helper','Playwright\x20patching\x20and\x20session\x20details\x20initialized\x20for\x20Jest','Patching\x20Playwright\x20for\x20Jest','../../helpers/logger','__skipSessionName','Error\x20initializing\x20Playwright\x20patching:\x20','../../helpers/test-observability/error-handler'];a32_0x7ed6=function(){return _0x4f447e;};return a32_0x7ed6();}global[a32_0x41101f(0xf5)]=workerDetails;function a32_0xef34(_0x2911c6,_0x52a462){const _0x7ed6df=a32_0x7ed6();return a32_0xef34=function(_0xef3407,_0x30a1be){_0xef3407=_0xef3407-0xf3;let _0x1c2779=_0x7ed6df[_0xef3407];return _0x1c2779;},a32_0xef34(_0x2911c6,_0x52a462);}let playwrightPatcher=null,puppeteerPatcher=null;setKeepAlive();try{require('../../helpers/driverInitErrorReporter')[a32_0x41101f(0x115)](a32_0x41101f(0xf6));}catch(a32_0x1d3233){logger[a32_0x41101f(0xfe)](a32_0x41101f(0x10e)+(a32_0x1d3233&&a32_0x1d3233[a32_0x41101f(0x128)]));}if(global[a32_0x41101f(0x121)])try{isBrowserstackInfra()?(global[a32_0x41101f(0x11b)]=isTrue(global[a32_0x41101f(0x121)]?.[a32_0x41101f(0x129)]),global[a32_0x41101f(0xf9)]=isTrue(global[a32_0x41101f(0x121)]?.[a32_0x41101f(0x100)])):(global[a32_0x41101f(0x11b)]=!![],global[a32_0x41101f(0xf9)]=!![]);const helper=require(a32_0x41101f(0x117));if(helper['getPackageVersion'](a32_0x41101f(0x10f)))try{logger[a32_0x41101f(0xfe)](a32_0x41101f(0x119)),playwrightPatcher=require(a32_0x41101f(0x11e)),playwrightPatcher[a32_0x41101f(0x124)](global[a32_0x41101f(0x121)]),logger[a32_0x41101f(0xfe)](a32_0x41101f(0x118));}catch(a32_0x1e5739){logger[a32_0x41101f(0xfe)](a32_0x41101f(0x11c)+util[a32_0x41101f(0xfa)](a32_0x1e5739));}if(!playwrightPatcher&&(helper[a32_0x41101f(0x109)]('puppeteer')||helper[a32_0x41101f(0x109)](a32_0x41101f(0xf4))))try{logger['debug']('Patching\x20Puppeteer\x20for\x20Jest'),puppeteerPatcher=require('../utils/puppeteer-patcher'),puppeteerPatcher[a32_0x41101f(0x126)](global['jestConfig']),logger[a32_0x41101f(0xfe)](a32_0x41101f(0x12a));}catch(a32_0x4a65da){logger['debug'](a32_0x41101f(0x120)+util[a32_0x41101f(0xfa)](a32_0x4a65da));}const activePatcher=playwrightPatcher||puppeteerPatcher;if(activePatcher)try{const BrowserstackCLI=require('../v2/browserstackCLI'),CLIUtils=require(a32_0x41101f(0x111)),{FRAMEWORKS}=require(a32_0x41101f(0xf8));if(BrowserstackCLI[a32_0x41101f(0x103)]()['isCliEnabled']()){const automationFramework=playwrightPatcher?FRAMEWORKS[a32_0x41101f(0x112)]:FRAMEWORKS[a32_0x41101f(0xf7)];logger[a32_0x41101f(0xfe)](a32_0x41101f(0x106)+automationFramework+')'),CLIUtils['setFrameworkDetail'](FRAMEWORKS['JEST'],automationFramework),BrowserstackCLI[a32_0x41101f(0x103)]()['bootstrap']()[a32_0x41101f(0x123)](_0xa9de40=>{const _0x39285a=a32_0x41101f;logger[_0x39285a(0xfe)](_0x39285a(0x10b)+util[_0x39285a(0xfa)](_0xa9de40));});}}catch(a32_0x1e82e3){logger[a32_0x41101f(0xfe)]('Error\x20setting\x20up\x20BrowserstackCLI\x20bootstrap:\x20'+util[a32_0x41101f(0xfa)](a32_0x1e82e3));}shouldProcessEventForTesthub()&&addRequestSpy(![]);}catch(a32_0x59d4c0){logger[a32_0x41101f(0xfe)]('Error\x20reading\x20BrowserStack\x20config:\x20'+util[a32_0x41101f(0xfa)](a32_0x59d4c0));}logger[a32_0x41101f(0xfe)]('Jest-Playwright/Puppeteer\x20setup\x20completed');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a33_0x5602a8=a33_0x2c3a;(function(_0x10e746,_0x45c388){const _0x319be1=a33_0x2c3a,_0x3d0ebc=_0x10e746();while(!![]){try{const _0x3f81f0=parseInt(_0x319be1(0x120))/0x1*(-parseInt(_0x319be1(0x11b))/0x2)+parseInt(_0x319be1(0x11d))/0x3+-parseInt(_0x319be1(0x115))/0x4*(-parseInt(_0x319be1(0x126))/0x5)+parseInt(_0x319be1(0x128))/0x6*(parseInt(_0x319be1(0x127))/0x7)+-parseInt(_0x319be1(0x122))/0x8+parseInt(_0x319be1(0x125))/0x9+-parseInt(_0x319be1(0x11e))/0xa;if(_0x3f81f0===_0x45c388)break;else _0x3d0ebc['push'](_0x3d0ebc['shift']());}catch(_0x5cbb7){_0x3d0ebc['push'](_0x3d0ebc['shift']());}}}(a33_0x53a5,0xf3af9));function a33_0x2c3a(_0x1610cc,_0x292fe8){const _0x53a536=a33_0x53a5();return a33_0x2c3a=function(_0x2c3a71,_0x4a7167){_0x2c3a71=_0x2c3a71-0x115;let _0x26413e=_0x53a536[_0x2c3a71];return _0x26413e;},a33_0x2c3a(_0x1610cc,_0x292fe8);}const {requireModule}=require('../../helpers/helper'),logger=require(a33_0x5602a8(0x119))[a33_0x5602a8(0x11c)];require(a33_0x5602a8(0x116))();try{const __wd__=requireModule(a33_0x5602a8(0x124));for(const key of Object['keys'](global[a33_0x5602a8(0x123)])){__wd__[key]=global[a33_0x5602a8(0x123)][key];}}catch(a33_0x5c5b23){logger['debug'](a33_0x5602a8(0x11f));}function a33_0x53a5(){const _0x3001a8=['2228656eTLAkx','__webdriver','selenium-webdriver','5257269LrSDPl','817180wLXvQj','7wIUzOk','9165732ArAwlM','28tNHZvV','../../helpers/setKeepAlive','jest','debug','../../helpers/logger','message','37900kVQLJN','winstonLogger','1655127inGrsQ','11285050jlgAwW','Selenium-webdriver\x20not\x20available\x20to\x20set\x20in\x20global.__webdriver','74oVXzDB','installAll'];a33_0x53a5=function(){return _0x3001a8;};return a33_0x53a5();}try{require('../../helpers/driverInitErrorReporter')[a33_0x5602a8(0x121)](a33_0x5602a8(0x117));}catch(a33_0x544ca3){logger[a33_0x5602a8(0x118)]('driver-init\x20capture\x20install\x20failed:\x20'+(a33_0x544ca3&&a33_0x544ca3[a33_0x5602a8(0x11a)]));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a34_0x547fac=a34_0xca39;function a34_0xca39(_0x2d7907,_0xa582be){const _0xee0d1e=a34_0xee0d();return a34_0xca39=function(_0xca399d,_0x43f421){_0xca399d=_0xca399d-0x1cc;let _0x1d3208=_0xee0d1e[_0xca399d];return _0x1d3208;},a34_0xca39(_0x2d7907,_0xa582be);}(function(_0xdb802a,_0x3203b9){const _0x2ee10c=a34_0xca39,_0x1aca61=_0xdb802a();while(!![]){try{const _0x450709=parseInt(_0x2ee10c(0x1e8))/0x1*(parseInt(_0x2ee10c(0x1d1))/0x2)+parseInt(_0x2ee10c(0x1df))/0x3+-parseInt(_0x2ee10c(0x1d5))/0x4*(parseInt(_0x2ee10c(0x1db))/0x5)+-parseInt(_0x2ee10c(0x1e1))/0x6+-parseInt(_0x2ee10c(0x1fb))/0x7*(parseInt(_0x2ee10c(0x1d4))/0x8)+-parseInt(_0x2ee10c(0x1e5))/0x9+parseInt(_0x2ee10c(0x1d2))/0xa;if(_0x450709===_0x3203b9)break;else _0x1aca61['push'](_0x1aca61['shift']());}catch(_0x27ade5){_0x1aca61['push'](_0x1aca61['shift']());}}}(a34_0xee0d,0x39a2f));const path=require(a34_0x547fac(0x1cd)),logger=require(a34_0x547fac(0x1f8))[a34_0x547fac(0x1ce)],{requireModule,modifyCommand,getPlatformName,cleanupDrivers,isBrowserstackInfra}=require('../../helpers/helper'),constants=require('../utils/constants'),{isAccessibilityAutomationSession}=require(a34_0x547fac(0x1ee)),RequestQueueHandler=require('../../helpers/test-observability/requestQueueHandler'),{isTestObservabilitySession}=require(a34_0x547fac(0x1d8)),helper=require(a34_0x547fac(0x1fa)),PerformanceTester=require(a34_0x547fac(0x1f3)),PerformanceEvents=require(a34_0x547fac(0x1d9))[a34_0x547fac(0x1d3)],BrowserstackCLI=require('../v2/browserstackCLI'),ClientTroubleShootingService=require(a34_0x547fac(0x1e4));class Launcher{constructor(_0x464d5b,_0xb36f7a,_0x51c192,_0x59e58e=[]){const _0x12391f=a34_0x547fac,_0xb98c58={'vrDNB':_0x12391f(0x1f9),'iksrM':function(_0x208a3){return _0x208a3();},'vWBhp':function(_0xefe1eb){return _0xefe1eb();}},_0x4b9aff=_0xb98c58[_0x12391f(0x1d0)][_0x12391f(0x1ef)]('|');let _0x30f711=0x0;while(!![]){switch(_0x4b9aff[_0x30f711++]){case'0':global[_0x12391f(0x1cc)]=0x0;continue;case'1':this[_0x12391f(0x1d7)]=_0xb36f7a[_0x12391f(0x1ec)]||{};continue;case'2':global[_0x12391f(0x1ea)]=this[_0x12391f(0x1d7)]['platform'];continue;case'3':this[_0x12391f(0x1f0)]=_0x464d5b;continue;case'4':this['_argv']=_0x59e58e;continue;case'5':this[_0x12391f(0x1eb)]=_0xb98c58[_0x12391f(0x1d6)](isTestObservabilitySession);continue;case'6':global['__platformCaps']=this[_0x12391f(0x1d7)]['platformCaps']||{};continue;case'7':this[_0x12391f(0x1e0)]=_0xb98c58[_0x12391f(0x1f2)](isAccessibilityAutomationSession);continue;case'8':global[_0x12391f(0x1f7)]={};continue;case'9':global['testsPending']=0x0;continue;case'10':global[_0x12391f(0x1dc)]=0x0;continue;case'11':global[_0x12391f(0x1f5)]=0x0;continue;case'12':this[_0x12391f(0x1d7)][_0x12391f(0x1e7)]=_0x464d5b;continue;case'13':this[_0x12391f(0x1f4)]=_0xb36f7a[_0x12391f(0x1ed)];continue;case'14':this[_0x12391f(0x1e9)]=_0xb36f7a[_0x12391f(0x1f1)];continue;case'15':this[_0x12391f(0x1da)]=_0x51c192;continue;case'16':global['testsAmbiguous']=0x0;continue;case'17':this[_0x12391f(0x1fc)]=this[_0x12391f(0x1d7)][_0x12391f(0x1dd)];continue;case'18':global[_0x12391f(0x1e2)]=0x0;continue;case'19':global[_0x12391f(0x1f6)]=0x0;continue;case'20':global['testsSkipped']=0x0;continue;case'21':global[_0x12391f(0x1cf)]=0x0;continue;case'22':global[_0x12391f(0x1e3)]=0x0;continue;}break;}}[a34_0x547fac(0x1de)](_0x28799d,_0x2782c9,_0x1eccff){const _0x19f555=a34_0x547fac,_0xeac266=_0x28799d[_0x19f555(0x1e6)];_0x28799d.resolvePaths=async function(){const pathResults=await _0xeac266.apply(this,arguments);if(!pathResults.requirePaths){pathResults.requirePaths=[];}pathResults.requirePaths=[path.join(__dirname,'../cucumber-js/test.setup.js')].concat(pathResults.requirePaths,path.join(__dirname,_0x1eccff));return pathResults;};const relativeFormatterPath=path.relative(process.cwd(),path.join(__dirname,'../cucumber-js/formatter/custom_formatter.js'));const normalizedPath=relativeFormatterPath.startsWith('.')?relativeFormatterPath:`./${relativeFormatterPath}`;_0x2782c9.push('--format'),_0x2782c9.push(`"${normalizedPath}"`);}run(){return new Promise(async(resolve,reject)=>{PerformanceTester.start(PerformanceEvents.SDK_PRE_TEST);require('../../helpers/setKeepAlive')();if(this._framework==='mocha'){const mochaRunHelper=requireModule('mocha/lib/cli/run-helpers.js','mocha');const Mocha=requireModule('mocha');if(isBrowserstackInfra()){modifyCommand();}const mochaHooks=require('../mocha/test.setup').mochaHooks;if(!helper.isUndefined(this._mochaOpts.mochaRequire)){this._mochaOpts.require=this._mochaOpts.mochaRequire;const plugins=await mochaRunHelper.handleRequires([this._mochaOpts.require]);Object.assign(this._mochaOpts,plugins);}const rootHooks={beforeAll:[mochaHooks.beforeAll],beforeEach:[mochaHooks.beforeEach],afterAll:[mochaHooks.afterAll],afterEach:[mochaHooks.afterEach]};if(isTestObservabilitySession()){const mochaObservabilityHooks=require('../mocha/test-observability/data-hooks').mochaHooks;rootHooks.beforeAll.unshift(mochaObservabilityHooks.beforeAll);rootHooks.afterAll.push(mochaObservabilityHooks.afterAll);}if(this._mochaOpts.rootHooks){this._mochaOpts.rootHooks.beforeAll&&rootHooks.beforeAll.unshift(...this._mochaOpts.rootHooks.beforeAll);this._mochaOpts.rootHooks.beforeEach&&rootHooks.beforeEach.unshift(...this._mochaOpts.rootHooks.beforeEach);this._mochaOpts.rootHooks.afterAll&&rootHooks.afterAll.push(...this._mochaOpts.rootHooks.afterAll);this._mochaOpts.rootHooks.afterEach&&rootHooks.afterEach.push(...this._mochaOpts.rootHooks.afterEach);}const userReporter=this._mochaOpts.reporter;let mochaTimeout=this._mochaOpts.timeout*1;if(this._mochaOpts.timeout===0){mochaTimeout=0;}else{mochaTimeout+=constants.BSTACK_DELTA;}const mochaOpts={};Object.assign(mochaOpts,this._mochaOpts);const reporterOption={};Object.assign(reporterOption,this._mochaOpts.reporterOptions);Object.assign(reporterOption,{type:userReporter||'spec',testObservability:this._testObservability,bsConfig:this._bsConfig});mochaOpts.reporterOption=reporterOption;Object.assign(mochaOpts,{reporter:path.join(__dirname,'../mocha/bstack-reporter/customReporter.js'),parallel:false,rootHooks,isWorker:true,timeout:mochaTimeout});global.browserstackPlatformIndex=helper.nestedKeyValue(this._configuration,['platformIndex']);global.browserstackPercyBestPlatform=helper.nestedKeyValue(this._configuration,['browserStackPercyOptions','browserstackPercyBestPlatform']);global.percy=helper.nestedKeyValue(this._configuration,['browserStackPercyOptions','percy']);global.percyCaptureMode=helper.nestedKeyValue(this._configuration,['browserStackPercyOptions','percyCaptureMode']);global.capabilities=[this._capability];if(helper.isBrowserstackInfra()){if(this._bsConfig.testContextOptions.skipSessionName){global.__skipSessionName=true;}if(this._bsConfig.testContextOptions.skipSessionStatus){global.__skipSessionStatus=true;}}else{global.__skipSessionName=true;global.__skipSessionStatus=true;}if(this._bsConfig.turboScaleUrl){this._configuration.turboScaleUrl=this._bsConfig.turboScaleUrl;}const mocha=new Mocha(mochaOpts);mocha.prevRun=mocha.run;if(isTestObservabilitySession()){mocha.run=function(_){return mocha.prevRun(exit=>{const checkPendingUploadsInterval=setInterval(async()=>{PerformanceTester.start(PerformanceEvents.SDK_POST_TEST);if(RequestQueueHandler.getInstance().pendingUploads<=0){clearInterval(checkPendingUploadsInterval);await cleanupDrivers(global.__driversArray);resolve(exit);}},1000);});};}else{mocha.run=function(_){return mocha.prevRun(async exit=>{PerformanceTester.start(PerformanceEvents.SDK_POST_TEST);await cleanupDrivers(global.__driversArray);resolve(exit);});};}try{require('../../index').browserstackAgentV2(this._configuration,null,this._testObservability);}catch{}PerformanceTester.end(PerformanceEvents.SDK_PRE_TEST);const runProm=mochaRunHelper.runMocha(mocha,mochaOpts);runProm&&runProm.catch(er=>{reject(er);});}else if(this._framework==='cucumber-js'){let cucumberCli;global.capabilities=[this._capability];try{cucumberCli=requireModule('@cucumber/cucumber/lib/cli/index.js','@cucumber/cucumber');}catch(e){logger.debug(`Could not load @cucumber/cucumber CLI (falling back to legacy 'cucumber' package). Original error: ${e}`);cucumberCli=requireModule('cucumber/lib/cli/index.js','cucumber');}const argv=this._argv;const index=argv.indexOf('cucumber-js');if(index>-1){argv.splice(index,1);}const timeoutFileName='../cucumber-js/timeout.setup.js';let paths;try{paths=requireModule('@cucumber/cucumber/lib/paths/paths.js','@cucumber/cucumber');this.setupCucumber(paths,argv,timeoutFileName);}catch(e){try{paths=requireModule('@cucumber/cucumber/lib/api/paths.js','@cucumber/cucumber');this.setupCucumber(paths,argv,timeoutFileName);}catch(e){let hookFileName='../cucumber-js/test.setup.js';let ConfigurationBuilder;try{ConfigurationBuilder=requireModule('@cucumber/cucumber/lib/cli/configuration_builder.js','@cucumber/cucumber').default;const relativeFormatterPath=path.relative(process.cwd(),path.join(__dirname,'../cucumber-js/formatter/custom_formatter.js'));const normalizedPath=relativeFormatterPath.startsWith('.')?relativeFormatterPath:`./${relativeFormatterPath}`;argv.push('--format');argv.push(normalizedPath);}catch(e){ConfigurationBuilder=requireModule('cucumber/lib/cli/configuration_builder.js','cucumber').default;const relativeFormatterPath=path.relative(process.cwd(),path.join(__dirname,'../cucumber-js/formatter/custom_formatter_old_versions.js'));const normalizedPath=relativeFormatterPath.startsWith('.')?relativeFormatterPath:`./${relativeFormatterPath}`;argv.push('--format');argv.push(normalizedPath);hookFileName='../cucumber-js/test_old.setup.js';}const configBuilder=ConfigurationBuilder.prototype.build;ConfigurationBuilder.prototype.build=async function(){const builderHash=await configBuilder.call(this);builderHash.supportCodePaths.unshift(path.join(__dirname,hookFileName));builderHash.supportCodePaths.push(path.join(__dirname,timeoutFileName));return builderHash;};}}argv.push('--parallel');argv.push(`${this._configuration.maxWorkers}`);if(this._formatter&&this._formatter.length>0){for(let i=0;i<this._formatter.length;i++){const r=getPlatformName(this._capability).replace(/ /g,'_');if(this._formatter[i]!==undefined&&this._formatter[i].length>0){const formatterFinalOutputFileName=this._formatter[i][1];const formatterType=`${this._formatter[i][0]}`;if(formatterFinalOutputFileName!==undefined){const formatterOutputFile=`tmp/${r}${path.extname(formatterFinalOutputFileName)}`;argv.push('--format');argv.push(`${formatterType}:${formatterOutputFile}`);}else{argv.push('--format');argv.push(`${formatterType}:tmp/${r}`);}}}}const cucumber=new cucumberCli.default({argv:argv,cwd:process.cwd(),stdout:process.stdout,stderr:process.stderr,env:process.env});process.env.CONFIG=JSON.stringify(this._configuration);cucumber.run().then(async output=>{const _results={scenarios:global.testSuites,steps:global.totalTests,scenariosFailed:global.testSuitesFailed,stepsFailed:global.testsFailed,stepsPassed:global.testsPassed,stepsSkipped:global.testsSkipped,stepsPending:global.testsPending,stepsUndefined:global.testsUndefined,stepsUnknown:global.testsUnknown,stepsAmbiguous:global.testsAmbiguous,processSuccess:output.success,testsErrorMessage:global.testsErrorMessage};await RequestQueueHandler.getInstance().shutdown();resolve(_results);}).catch(async er=>{await RequestQueueHandler.getInstance().shutdown();reject(er);});}else if(this._framework==='vanilla'){global.capabilities=[this._capability];global.__bstackPlatformIndex=this._configuration.platformCaps&&this._configuration.platformCaps.index||0;global.__skipSessionName=process.env.BROWSERSTACK_SKIP_SESSION_NAME==='true';global.__skipSessionStatus=process.env.BROWSERSTACK_SKIP_SESSION_STATUS==='true';process.argv=this._configuration.args;try{modifyCommand();require('../../index').browserstackAgent(this._configuration);const cliInstance=BrowserstackCLI.getInstance();if(cliInstance.isCliEnabled()&&process.env.BROWSERSTACK_CLI_BIN_SESSION_ID){try{const CLIUtils=require('../v2/cliUtils');const {FRAMEWORKS}=require('../utils/constants');CLIUtils.setFrameworkDetail(FRAMEWORKS.NODE_GENERIC,FRAMEWORKS.NODE_GENERIC);await cliInstance.bootstrap();}catch(bootstrapErr){const logger=require('../../helpers/logger').winstonLogger;logger.warn(`[vanilla-worker] Binary Flow bootstrap failed in child: ${bootstrapErr.message}`);}}let i=0;process.on('beforeExit',async()=>{if(i>0){return;}i++;await cleanupDrivers(global.__driversArray);});require(this._configuration.file);}catch(er){console.error(er);await BrowserstackCLI.getInstance().stop();process.exitCode=1;reject(er);}resolve();}});}}module.exports=Launcher;function a34_0xee0d(){const _0x48c582=['EVENTS','908552YxeqJP','4mnXgrZ','iksrM','_configuration','../../helpers/test-observability/utils','../../helpers/performance/constants','_bsConfig','1135115FAtIvG','testsPassed','capability','setupCucumber','507516ZVlSbJ','_accessibilityAutomation','405672TkFeqA','testSuitesFailed','testsFailed','../utils/clientTroubleshootingService','2283093RdgyNs','resolvePaths','framework','887xNCDgN','_formatter','__platform__','_testObservability','configuration','mochaOpts','../../helpers/accessibility-automation/helper','split','_framework','formatter','vWBhp','../../helpers/performance/performance-tester','_mochaOpts','testsUnknown','testSuites','testsErrorMessage','../../helpers/logger','3|1|12|13|14|17|2|4|15|5|7|6|19|0|10|22|9|20|18|21|11|16|8','../../helpers/helper','7YOGGDr','_capability','totalTests','path','winstonLogger','testsUndefined','vrDNB','766cmRlhG','3890670ATexNw'];a34_0xee0d=function(){return _0x48c582;};return a34_0xee0d();}
|
|
1
|
+
function a34_0x72f2(_0xe92f38,_0x284ad3){const _0x122a07=a34_0x122a();return a34_0x72f2=function(_0x72f2d9,_0x37595a){_0x72f2d9=_0x72f2d9-0x1af;let _0xea71ea=_0x122a07[_0x72f2d9];return _0xea71ea;},a34_0x72f2(_0xe92f38,_0x284ad3);}const a34_0x568917=a34_0x72f2;(function(_0x321f63,_0x59a186){const _0x5638c2=a34_0x72f2,_0x31c19b=_0x321f63();while(!![]){try{const _0x51c456=-parseInt(_0x5638c2(0x1d5))/0x1*(parseInt(_0x5638c2(0x1b7))/0x2)+-parseInt(_0x5638c2(0x1ce))/0x3*(parseInt(_0x5638c2(0x1b8))/0x4)+-parseInt(_0x5638c2(0x1cb))/0x5*(-parseInt(_0x5638c2(0x1d9))/0x6)+-parseInt(_0x5638c2(0x1de))/0x7+parseInt(_0x5638c2(0x1d4))/0x8+-parseInt(_0x5638c2(0x1bc))/0x9+-parseInt(_0x5638c2(0x1b5))/0xa*(-parseInt(_0x5638c2(0x1d8))/0xb);if(_0x51c456===_0x59a186)break;else _0x31c19b['push'](_0x31c19b['shift']());}catch(_0x1db87b){_0x31c19b['push'](_0x31c19b['shift']());}}}(a34_0x122a,0x95a6d));const path=require(a34_0x568917(0x1d2)),logger=require(a34_0x568917(0x1b6))[a34_0x568917(0x1c3)],{requireModule,modifyCommand,getPlatformName,cleanupDrivers,isBrowserstackInfra}=require(a34_0x568917(0x1dc)),constants=require(a34_0x568917(0x1cd)),{isAccessibilityAutomationSession}=require(a34_0x568917(0x1c0)),RequestQueueHandler=require(a34_0x568917(0x1b4)),{isTestObservabilitySession}=require(a34_0x568917(0x1df)),helper=require(a34_0x568917(0x1dc)),PerformanceTester=require(a34_0x568917(0x1c4)),PerformanceEvents=require('../../helpers/performance/constants')[a34_0x568917(0x1bf)],BrowserstackCLI=require('../v2/browserstackCLI'),ClientTroubleShootingService=require('../utils/clientTroubleshootingService');class Launcher{constructor(_0x3ad769,_0x84926,_0x2b4a39,_0x5a1efd=[]){const _0x5b20d6=a34_0x568917,_0x36a5ef={'flDFh':_0x5b20d6(0x1be),'jtEYr':function(_0xf3279f){return _0xf3279f();}},_0x2c19bd=_0x36a5ef['flDFh'][_0x5b20d6(0x1cc)]('|');let _0x5f3201=0x0;while(!![]){switch(_0x2c19bd[_0x5f3201++]){case'0':global['totalTests']=0x0;continue;case'1':global[_0x5b20d6(0x1ba)]=this[_0x5b20d6(0x1d3)][_0x5b20d6(0x1da)];continue;case'2':this[_0x5b20d6(0x1d3)]=_0x84926['configuration']||{};continue;case'3':global[_0x5b20d6(0x1c5)]={};continue;case'4':global[_0x5b20d6(0x1bd)]=0x0;continue;case'5':this[_0x5b20d6(0x1bb)]=_0x36a5ef[_0x5b20d6(0x1c1)](isAccessibilityAutomationSession);continue;case'6':global[_0x5b20d6(0x1b9)]=0x0;continue;case'7':this[_0x5b20d6(0x1d7)]=_0x2b4a39;continue;case'8':global['testSuitesFailed']=0x0;continue;case'9':global[_0x5b20d6(0x1d6)]=0x0;continue;case'10':global[_0x5b20d6(0x1c8)]=0x0;continue;case'11':global[_0x5b20d6(0x1d1)]=0x0;continue;case'12':global['__platformCaps']=this[_0x5b20d6(0x1d3)][_0x5b20d6(0x1db)]||{};continue;case'13':this[_0x5b20d6(0x1c7)]=_0x5a1efd;continue;case'14':this[_0x5b20d6(0x1b1)]=_0x36a5ef[_0x5b20d6(0x1c1)](isTestObservabilitySession);continue;case'15':this[_0x5b20d6(0x1ca)]=_0x84926[_0x5b20d6(0x1dd)];continue;case'16':global[_0x5b20d6(0x1c6)]=0x0;continue;case'17':this[_0x5b20d6(0x1b0)]=this[_0x5b20d6(0x1d3)][_0x5b20d6(0x1c2)];continue;case'18':global['testsAmbiguous']=0x0;continue;case'19':global[_0x5b20d6(0x1d0)]=0x0;continue;case'20':this[_0x5b20d6(0x1d3)][_0x5b20d6(0x1b3)]=_0x3ad769;continue;case'21':this[_0x5b20d6(0x1b2)]=_0x3ad769;continue;case'22':this[_0x5b20d6(0x1af)]=_0x84926[_0x5b20d6(0x1c9)];continue;}break;}}[a34_0x568917(0x1cf)](_0x1aa519,_0x36f7ce,_0x5bbdba){const _0x5d1222=_0x1aa519['resolvePaths'];_0x1aa519.resolvePaths=async function(){const pathResults=await _0x5d1222.apply(this,arguments);if(!pathResults.requirePaths){pathResults.requirePaths=[];}pathResults.requirePaths=[path.join(__dirname,'../cucumber-js/test.setup.js')].concat(pathResults.requirePaths,path.join(__dirname,_0x5bbdba));return pathResults;};const relativeFormatterPath=path.relative(process.cwd(),path.join(__dirname,'../cucumber-js/formatter/custom_formatter.js'));const normalizedPath=relativeFormatterPath.startsWith('.')?relativeFormatterPath:`./${relativeFormatterPath}`;_0x36f7ce.push('--format'),_0x36f7ce.push(`"${normalizedPath}"`);}run(){return new Promise(async(resolve,reject)=>{PerformanceTester.start(PerformanceEvents.SDK_PRE_TEST);require('../../helpers/setKeepAlive')();if(this._framework==='mocha'){const mochaRunHelper=requireModule('mocha/lib/cli/run-helpers.js','mocha');const Mocha=requireModule('mocha');if(isBrowserstackInfra()){modifyCommand();}const mochaHooks=require('../mocha/test.setup').mochaHooks;if(!helper.isUndefined(this._mochaOpts.mochaRequire)){this._mochaOpts.require=this._mochaOpts.mochaRequire;const plugins=await mochaRunHelper.handleRequires([this._mochaOpts.require]);Object.assign(this._mochaOpts,plugins);}const rootHooks={beforeAll:[mochaHooks.beforeAll],beforeEach:[mochaHooks.beforeEach],afterAll:[mochaHooks.afterAll],afterEach:[mochaHooks.afterEach]};if(isTestObservabilitySession()){const mochaObservabilityHooks=require('../mocha/test-observability/data-hooks').mochaHooks;rootHooks.beforeAll.unshift(mochaObservabilityHooks.beforeAll);rootHooks.afterAll.push(mochaObservabilityHooks.afterAll);}if(this._mochaOpts.rootHooks){this._mochaOpts.rootHooks.beforeAll&&rootHooks.beforeAll.unshift(...this._mochaOpts.rootHooks.beforeAll);this._mochaOpts.rootHooks.beforeEach&&rootHooks.beforeEach.unshift(...this._mochaOpts.rootHooks.beforeEach);this._mochaOpts.rootHooks.afterAll&&rootHooks.afterAll.push(...this._mochaOpts.rootHooks.afterAll);this._mochaOpts.rootHooks.afterEach&&rootHooks.afterEach.push(...this._mochaOpts.rootHooks.afterEach);}const userReporter=this._mochaOpts.reporter;let mochaTimeout=this._mochaOpts.timeout*1;if(this._mochaOpts.timeout===0){mochaTimeout=0;}else{mochaTimeout+=constants.BSTACK_DELTA;}const mochaOpts={};Object.assign(mochaOpts,this._mochaOpts);const reporterOption={};Object.assign(reporterOption,this._mochaOpts.reporterOptions);Object.assign(reporterOption,{type:userReporter||'spec',testObservability:this._testObservability,bsConfig:this._bsConfig});mochaOpts.reporterOption=reporterOption;Object.assign(mochaOpts,{reporter:path.join(__dirname,'../mocha/bstack-reporter/customReporter.js'),parallel:false,rootHooks,isWorker:true,timeout:mochaTimeout});global.browserstackPlatformIndex=helper.nestedKeyValue(this._configuration,['platformIndex']);global.browserstackPercyBestPlatform=helper.nestedKeyValue(this._configuration,['browserStackPercyOptions','browserstackPercyBestPlatform']);global.percy=helper.nestedKeyValue(this._configuration,['browserStackPercyOptions','percy']);global.percyCaptureMode=helper.nestedKeyValue(this._configuration,['browserStackPercyOptions','percyCaptureMode']);global.capabilities=[this._capability];if(helper.isBrowserstackInfra()){if(this._bsConfig.testContextOptions.skipSessionName){global.__skipSessionName=true;}if(this._bsConfig.testContextOptions.skipSessionStatus){global.__skipSessionStatus=true;}}else{global.__skipSessionName=true;global.__skipSessionStatus=true;}if(this._bsConfig.turboScaleUrl){this._configuration.turboScaleUrl=this._bsConfig.turboScaleUrl;}const mocha=new Mocha(mochaOpts);mocha.prevRun=mocha.run;if(isTestObservabilitySession()){mocha.run=function(_){return mocha.prevRun(exit=>{const checkPendingUploadsInterval=setInterval(async()=>{PerformanceTester.start(PerformanceEvents.SDK_POST_TEST);if(RequestQueueHandler.getInstance().pendingUploads<=0){clearInterval(checkPendingUploadsInterval);await cleanupDrivers(global.__driversArray);resolve(exit);}},1000);});};}else{mocha.run=function(_){return mocha.prevRun(async exit=>{PerformanceTester.start(PerformanceEvents.SDK_POST_TEST);await cleanupDrivers(global.__driversArray);resolve(exit);});};}try{require('../../index').browserstackAgentV2(this._configuration,null,this._testObservability);}catch{}PerformanceTester.end(PerformanceEvents.SDK_PRE_TEST);const runProm=mochaRunHelper.runMocha(mocha,mochaOpts);runProm&&runProm.catch(er=>{reject(er);});}else if(this._framework==='cucumber-js'){let cucumberCli;global.capabilities=[this._capability];try{cucumberCli=requireModule('@cucumber/cucumber/lib/cli/index.js','@cucumber/cucumber');}catch(e){logger.debug(`Could not load @cucumber/cucumber CLI (falling back to legacy 'cucumber' package). Original error: ${e}`);cucumberCli=requireModule('cucumber/lib/cli/index.js','cucumber');}const argv=this._argv;const index=argv.indexOf('cucumber-js');if(index>-1){argv.splice(index,1);}const timeoutFileName='../cucumber-js/timeout.setup.js';let paths;try{paths=requireModule('@cucumber/cucumber/lib/paths/paths.js','@cucumber/cucumber');this.setupCucumber(paths,argv,timeoutFileName);}catch(e){try{paths=requireModule('@cucumber/cucumber/lib/api/paths.js','@cucumber/cucumber');this.setupCucumber(paths,argv,timeoutFileName);}catch(e){let hookFileName='../cucumber-js/test.setup.js';let ConfigurationBuilder;try{ConfigurationBuilder=requireModule('@cucumber/cucumber/lib/cli/configuration_builder.js','@cucumber/cucumber').default;const relativeFormatterPath=path.relative(process.cwd(),path.join(__dirname,'../cucumber-js/formatter/custom_formatter.js'));const normalizedPath=relativeFormatterPath.startsWith('.')?relativeFormatterPath:`./${relativeFormatterPath}`;argv.push('--format');argv.push(normalizedPath);}catch(e){ConfigurationBuilder=requireModule('cucumber/lib/cli/configuration_builder.js','cucumber').default;const relativeFormatterPath=path.relative(process.cwd(),path.join(__dirname,'../cucumber-js/formatter/custom_formatter_old_versions.js'));const normalizedPath=relativeFormatterPath.startsWith('.')?relativeFormatterPath:`./${relativeFormatterPath}`;argv.push('--format');argv.push(normalizedPath);hookFileName='../cucumber-js/test_old.setup.js';}const configBuilder=ConfigurationBuilder.prototype.build;ConfigurationBuilder.prototype.build=async function(){const builderHash=await configBuilder.call(this);builderHash.supportCodePaths.unshift(path.join(__dirname,hookFileName));builderHash.supportCodePaths.push(path.join(__dirname,timeoutFileName));return builderHash;};}}argv.push('--parallel');argv.push(`${this._configuration.maxWorkers}`);if(this._formatter&&this._formatter.length>0){for(let i=0;i<this._formatter.length;i++){const r=getPlatformName(this._capability).replace(/ /g,'_');if(this._formatter[i]!==undefined&&this._formatter[i].length>0){const formatterFinalOutputFileName=this._formatter[i][1];const formatterType=`${this._formatter[i][0]}`;if(formatterFinalOutputFileName!==undefined){const formatterOutputFile=`tmp/${r}${path.extname(formatterFinalOutputFileName)}`;argv.push('--format');argv.push(`${formatterType}:${formatterOutputFile}`);}else{argv.push('--format');argv.push(`${formatterType}:tmp/${r}`);}}}}const cucumber=new cucumberCli.default({argv:argv,cwd:process.cwd(),stdout:process.stdout,stderr:process.stderr,env:process.env});process.env.CONFIG=JSON.stringify(this._configuration);cucumber.run().then(async output=>{const _results={scenarios:global.testSuites,steps:global.totalTests,scenariosFailed:global.testSuitesFailed,stepsFailed:global.testsFailed,stepsPassed:global.testsPassed,stepsSkipped:global.testsSkipped,stepsPending:global.testsPending,stepsUndefined:global.testsUndefined,stepsUnknown:global.testsUnknown,stepsAmbiguous:global.testsAmbiguous,processSuccess:output.success,testsErrorMessage:global.testsErrorMessage};await RequestQueueHandler.getInstance().shutdown();resolve(_results);}).catch(async er=>{await RequestQueueHandler.getInstance().shutdown();reject(er);});}else if(this._framework==='vanilla'){global.capabilities=[this._capability];global.__bstackPlatformIndex=this._configuration.platformCaps&&this._configuration.platformCaps.index||0;global.__skipSessionName=process.env.BROWSERSTACK_SKIP_SESSION_NAME==='true';global.__skipSessionStatus=process.env.BROWSERSTACK_SKIP_SESSION_STATUS==='true';process.argv=this._configuration.args;try{modifyCommand();require('../../index').browserstackAgent(this._configuration);const cliInstance=BrowserstackCLI.getInstance();if(cliInstance.isCliEnabled()&&process.env.BROWSERSTACK_CLI_BIN_SESSION_ID){try{const CLIUtils=require('../v2/cliUtils');const {FRAMEWORKS}=require('../utils/constants');CLIUtils.setFrameworkDetail(FRAMEWORKS.NODE_GENERIC,FRAMEWORKS.NODE_GENERIC);await cliInstance.bootstrap();}catch(bootstrapErr){const logger=require('../../helpers/logger').winstonLogger;logger.warn(`[vanilla-worker] Binary Flow bootstrap failed in child: ${bootstrapErr.message}`);}}let i=0;process.on('beforeExit',async()=>{if(i>0){return;}i++;await cleanupDrivers(global.__driversArray);});require(this._configuration.file);}catch(er){console.error(er);await BrowserstackCLI.getInstance().stop();process.exitCode=1;reject(er);}resolve();}});}}function a34_0x122a(){const _0x2267bf=['_capability','_testObservability','_framework','framework','../../helpers/test-observability/requestQueueHandler','15520CWHNCX','../../helpers/logger','2bLbvFZ','28lIrqxx','testsPassed','__platform__','_accessibilityAutomation','7142409WdMjHD','testSuites','21|2|20|15|22|17|1|13|7|14|5|12|4|0|6|10|11|19|8|16|9|18|3','EVENTS','../../helpers/accessibility-automation/helper','jtEYr','capability','winstonLogger','../../helpers/performance/performance-tester','testsErrorMessage','testsUndefined','_argv','testsFailed','formatter','_mochaOpts','535zCBCDp','split','../utils/constants','13389nGlugF','setupCucumber','testsSkipped','testsPending','path','_configuration','7508880XFDeSt','404699AAlbyP','testsUnknown','_bsConfig','847iwNPsM','47982DTYNVy','platform','platformCaps','../../helpers/helper','mochaOpts','498953NGcwhQ','../../helpers/test-observability/utils','_formatter'];a34_0x122a=function(){return _0x2267bf;};return a34_0x122a();}module.exports=Launcher;
|
package/src/bin/load/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a35_0x542c41=a35_0x3a42;function a35_0x2b23(){const _0x61e584=['aQhNa','7908085nUwZEK','vWABx','./loadUtils','checkAndUpdateCli\x20returned\x20an\x20empty\x20binary\x20path','setLTSSessionId','Vneoy','BROWSERSTACK_ACCESS_KEY','no-writable-cli-dir','CONFIG_PARSE','tVwZl','winstonLogger','QIUNs','972864PKSFdA','fetZG','UNKNOWN','code','SjrFA','zTMgP','FKlPM','toLowerCase','ruCzU','iAUHd','getExistingCliPath','maxTestedMajor','SIGINT','ZVxlh','QvmfI','CLI\x20binary\x20not\x20found,\x20downloading\x20latest\x20version','mLjlx','Could\x20not\x20obtain\x20the\x20BrowserStack\x20Load\x20Testing\x20CLI\x20binary:\x20the\x20download\x20or\x20extraction\x20did\x20not\x20produce\x20a\x20usable\x20binary.\x20Re-run\x20with\x20DEBUG=true\x20for\x20details,\x20or\x20contact\x20BrowserStack\x20support\x20if\x20this\x20persists.','debug','accessKey',']:\x20','inherit','SIGQUIT','error','exit','stringify','cwpek','../../helpers/logger','event_name','info','Agmjx','3773780BSYbId','Ykdfb','JVPgT','message','hxmyy','CLI\x20binary\x20found,\x20Checking\x20for\x20CLI\x20updates','BXziX','zoQWp','Failed\x20to\x20launch\x20the\x20Load\x20Testing\x20CLI:\x20','ldwmm','.\x20The\x20download\x20may\x20be\x20incomplete\x20or\x20corrupt\x20—\x20delete\x20it\x20(under\x20~/.browserstack/cli)\x20and\x20re-run.','../v2/cliUtils','sendToEDS','race','ENOENT','zVLyG',').\x20It\x20may\x20work;\x20if\x20you\x20hit\x20issues,\x20switch\x20to\x20a\x20validated\x20Node.js\x20version.','SIGTERM','Failed\x20to\x20read\x20Load\x20Testing\x20configuration\x20at\x20','RGyVm','bPLiD','Quref','join','FZkrV','AUTH_INVALID','\x20is\x20newer\x20than\x20the\x20latest\x20version\x20validated\x20for\x20BrowserStack\x20Load\x20Testing\x20(up\x20to\x20Node\x20',');\x20not\x20reported\x20as\x20a\x20failure.','HbITY','477DFlNCU','Failed\x20to\x20load\x20Load\x20Testing\x20configuration:\x20','MvrFH','OzIdX','7824wIpvwa','pwSDz','Jymtm','4851076KCVumN','GdUGm','errorCode','exitCode','EACCES','No\x20browserstack-load.yml\x20/\x20browserstack.yml\x20found\x20in\x20','minTestedMajor','split','SIGHUP','mRqEh','Configuration\x20path:\x20','eEZyp','kGwvf','true','argv','../utils/constants','Config\x20load\x20error\x20[','stack','Received\x20','../v2/modules/loadTestModule','Failed\x20to\x20determine\x20CLI\x20directory','userName','IoJwY','dXLJj','UQFxY','node','npewF','forEach','NKKVN','SfeSY','TMFyG','getCliDir','BROWSERSTACK_USER','Load\x20test\x20cancelled\x20by\x20signal\x20(exit\x20code\x20',',\x20forwarding\x20to\x20child\x20process...','Loading\x20configuration\x20using\x20environment\x20variables\x20if\x20available.','Node.js\x20v','uRPIA','then','FS_PERMISSION','LoadCliRunFailed','HaVVS','./loadErrors','okjVF','catch','1419074ZzbUjx','294mYuYFt','Dqjek','sQStw','UNSUPPORTED_RUNTIME',';\x20relying\x20on\x20environment\x20variables\x20for\x20credentials.','YrxGW','Failed\x20initiating\x20load\x20test:\x20','Skipping\x20downstream\x20LT\x20failure\x20report:\x20credentials\x20unavailable.','YKkRe','\x20is\x20older\x20than\x20the\x20oldest\x20version\x20validated\x20for\x20BrowserStack\x20Load\x20Testing\x20(Node\x20','kill','env','resolve','readConfig','218694IYWCFc','exports','xawtj','slice','TPtbz','wrFaa','PyZOE','empty-binary-path','warn','killed','CLI\x20acquisition\x20failed\x20[','LTS\x20session\x20linking\x20skipped:\x20','child_process','load','hardMinMajor','Could\x20not\x20report\x20Load\x20Testing\x20failure\x20downstream:\x20','\x20exited\x20with\x20code\x20','yes','checkAndUpdateCli','eUbjr'];a35_0x2b23=function(){return _0x61e584;};return a35_0x2b23();}(function(_0xb41265,_0x5375bd){const _0x65494e=a35_0x3a42,_0x191bff=_0xb41265();while(!![]){try{const _0x49097b=parseInt(_0x65494e(0x1eb))/0x1+-parseInt(_0x65494e(0x19b))/0x2+parseInt(_0x65494e(0x17c))/0x3+parseInt(_0x65494e(0x1be))/0x4+-parseInt(_0x65494e(0x170))/0x5+parseInt(_0x65494e(0x1fa))/0x6*(parseInt(_0x65494e(0x1ec))/0x7)+-parseInt(_0x65494e(0x1bb))/0x8*(parseInt(_0x65494e(0x1b7))/0x9);if(_0x49097b===_0x5375bd)break;else _0x191bff['push'](_0x191bff['shift']());}catch(_0x397bc3){_0x191bff['push'](_0x191bff['shift']());}}}(a35_0x2b23,0xebff8));const {spawn}=require(a35_0x542c41(0x206)),path=require('path'),helper=require('../../helpers/helper'),CLIUtils=require(a35_0x542c41(0x1a6)),LoadTestModule=require(a35_0x542c41(0x1d1)),{getLoadConfigPath,sleep}=require(a35_0x542c41(0x172)),{classify,messageForExitCode,runtimeNotSupportedMessage,LT_EXIT_UNSUPPORTED_RUNTIME,ERROR_CODES}=require(a35_0x542c41(0x1e8)),{LT_SUPPORTED_NODE}=require(a35_0x542c41(0x1cd)),logger=require(a35_0x542c41(0x197))[a35_0x542c41(0x17a)];function a35_0x3a42(_0x1e32c3,_0x51abac){const _0x2b2302=a35_0x2b23();return a35_0x3a42=function(_0x3a42e0,_0x4cfd67){_0x3a42e0=_0x3a42e0-0x16d;let _0x488f6d=_0x2b2302[_0x3a42e0];return _0x488f6d;},a35_0x3a42(_0x1e32c3,_0x51abac);}async function reportFailureToLTS(_0x21e3cc,_0x4344d8,_0x5c19a6={}){const _0x21b4bf=a35_0x542c41,_0x51b5c0={'JNqSc':function(_0x76098a,_0x2cd808,_0x317042){return _0x76098a(_0x2cd808,_0x317042);},'MvrFH':_0x21b4bf(0x1f3),'RGyVm':'LTS','GdUGm':_0x21b4bf(0x1e6),'iAUHd':function(_0x5036aa,_0x488989){return _0x5036aa(_0x488989);}};if(!_0x21e3cc||!_0x21e3cc[_0x21b4bf(0x1d3)]||!_0x21e3cc[_0x21b4bf(0x18f)]){logger['debug'](_0x51b5c0[_0x21b4bf(0x1b9)]);return;}const _0x2935a3={};_0x2935a3['feature']=_0x51b5c0[_0x21b4bf(0x1ae)],_0x2935a3[_0x21b4bf(0x198)]=_0x51b5c0[_0x21b4bf(0x1bf)],_0x2935a3[_0x21b4bf(0x1c0)]=_0x4344d8||ERROR_CODES[_0x21b4bf(0x17e)];const _0x35b00c=Object['assign'](_0x2935a3,_0x5c19a6),_0x3ffb7e=Promise[_0x21b4bf(0x1f8)]()[_0x21b4bf(0x1e4)](()=>helper[_0x21b4bf(0x1a7)](_0x35b00c,_0x21e3cc||{}))[_0x21b4bf(0x1ea)](_0x15213a=>{const _0x17eaae=_0x21b4bf;logger[_0x17eaae(0x202)](_0x17eaae(0x209)+(_0x15213a&&_0x15213a['message']));});let _0x4496d7;const _0x111d73=new Promise(_0x1b66ea=>{_0x4496d7=_0x51b5c0['JNqSc'](setTimeout,_0x1b66ea,0xbb8);});await Promise[_0x21b4bf(0x1a8)]([_0x3ffb7e,_0x111d73]),_0x51b5c0[_0x21b4bf(0x185)](clearTimeout,_0x4496d7);}async function assertSupportedRuntime(_0x5501ad){const _0x407d58=a35_0x542c41,_0x1c7539={'npewF':function(_0x105301,_0x18cc16){return _0x105301(_0x18cc16);},'vWABx':_0x407d58(0x1cb),'uRPIA':_0x407d58(0x20b),'maPfP':function(_0x2b28c9,_0x591b03){return _0x2b28c9||_0x591b03;},'xawtj':function(_0x22dfb7,_0x3536f1,_0xf4f14c){return _0x22dfb7(_0x3536f1,_0xf4f14c);},'dbjKC':function(_0x509d6a,_0x4a5131){return _0x509d6a(_0x4a5131);},'itXsF':function(_0x13b566,_0x565e2e){return _0x13b566<_0x565e2e;},'TPtbz':function(_0x12079f,_0x17e4d1,_0x52b51d,_0x274c4d){return _0x12079f(_0x17e4d1,_0x52b51d,_0x274c4d);},'zVLyG':function(_0x4750bc){return _0x4750bc();},'tVwZl':function(_0x4c05b2,_0x45c9c4){return _0x4c05b2<_0x45c9c4;},'Ykdfb':function(_0x3c5938,_0x2fe4d8){return _0x3c5938>_0x2fe4d8;}},_0x7860fc=_0x1c7539[_0x407d58(0x1d8)](String,process[_0x407d58(0x1f7)]['BROWSERSTACK_SKIP_NODE_CHECK']||'')[_0x407d58(0x183)]();if([_0x1c7539[_0x407d58(0x171)],'1',_0x1c7539[_0x407d58(0x1e3)]]['includes'](_0x7860fc))return;const _0x3a9e55=_0x1c7539['maPfP'](LT_SUPPORTED_NODE,{}),_0x26bb0c=_0x1c7539[_0x407d58(0x1fc)](parseInt,_0x1c7539['dbjKC'](String,process['versions'][_0x407d58(0x1d7)])[_0x407d58(0x1c5)]('.')[0x0],0xa);if(!Number['isFinite'](_0x26bb0c))return;if(_0x3a9e55[_0x407d58(0x208)]&&_0x1c7539['itXsF'](_0x26bb0c,_0x3a9e55[_0x407d58(0x208)])){logger['error'](_0x1c7539[_0x407d58(0x1fc)](runtimeNotSupportedMessage,_0x26bb0c,_0x3a9e55));const _0x5eee29={};_0x5eee29['detectedNodeMajor']=_0x26bb0c,await _0x1c7539[_0x407d58(0x1fe)](reportFailureToLTS,_0x5501ad,ERROR_CODES[_0x407d58(0x1ef)],_0x5eee29),await _0x1c7539[_0x407d58(0x1aa)](sleep),process['exit'](LT_EXIT_UNSUPPORTED_RUNTIME);}if(_0x3a9e55[_0x407d58(0x1c4)]&&_0x1c7539[_0x407d58(0x179)](_0x26bb0c,_0x3a9e55[_0x407d58(0x1c4)]))logger[_0x407d58(0x202)](_0x407d58(0x1e2)+_0x26bb0c+_0x407d58(0x1f5)+_0x3a9e55[_0x407d58(0x1c4)]+_0x407d58(0x1ab));else _0x3a9e55['maxTestedMajor']&&_0x1c7539[_0x407d58(0x19c)](_0x26bb0c,_0x3a9e55[_0x407d58(0x187)])&&logger[_0x407d58(0x202)](_0x407d58(0x1e2)+_0x26bb0c+_0x407d58(0x1b4)+_0x3a9e55['maxTestedMajor']+_0x407d58(0x1ab));}async function executeLoadTest(_0x32d098){const _0x54ceca=a35_0x542c41,_0x1e0e27={'ozFiR':function(_0x34410b,_0x41e6a1){return _0x34410b(_0x41e6a1);},'HbITY':function(_0x5ce1ee,_0x239cee){return _0x5ce1ee===_0x239cee;},'NKKVN':_0x54ceca(0x1a9),'aQhNa':function(_0x69f43d,_0x57c54c){return _0x69f43d===_0x57c54c;},'SjrFA':_0x54ceca(0x1c2),'ZurKz':function(_0x3eae27,_0x32b33d){return _0x3eae27!==_0x32b33d;},'TMFyG':function(_0x6a7e3,_0x5be51a){return _0x6a7e3(_0x5be51a);},'cwpek':function(_0xca6471,_0x5dac93){return _0xca6471(_0x5dac93);},'KGXHT':'error','IoJwY':'close','YrxGW':'Waiting\x20for\x20child\x20process\x20to\x20exit...','HaVVS':_0x54ceca(0x1e1),'UQFxY':function(_0x44e937,_0x43f686,_0x5873ed){return _0x44e937(_0x43f686,_0x5873ed);},'OPxbX':function(_0xbaae9b){return _0xbaae9b();},'zoQWp':function(_0x47009d,_0x45e01d,_0xb119a9){return _0x47009d(_0x45e01d,_0xb119a9);},'FKlPM':function(_0x5919e4){return _0x5919e4();},'Jymtm':'Authentication\x20incomplete.\x20Please\x20add\x20your\x20userName\x20and\x20accessKey\x20to\x20either\x20the\x20browserstack.yml\x20file\x20or\x20as\x20environment\x20variables,\x20then\x20try\x20running\x20the\x20command\x20again.','ldwmm':function(_0x28bd63,_0x4bb01f,_0x5d716f,_0x46c676){return _0x28bd63(_0x4bb01f,_0x5d716f,_0x46c676);},'zTMgP':'missing-credentials','QvmfI':function(_0x1a8922,_0x5c711f){return _0x1a8922(_0x5c711f);},'PyZOE':_0x54ceca(0x1d2),'OzIdX':_0x54ceca(0x177),'Quref':function(_0x3fc461){return _0x3fc461();},'mLjlx':_0x54ceca(0x18b),'ruCzU':_0x54ceca(0x1a0),'SfeSY':'4|2|0|1|3','sQStw':function(_0x23ed54,_0x35ef13,_0x269fb6,_0x4b83bf){return _0x23ed54(_0x35ef13,_0x269fb6,_0x4b83bf);},'hxmyy':_0x54ceca(0x201),'YKkRe':function(_0x275c05){return _0x275c05();},'HvNJq':_0x54ceca(0x173),'eUbjr':_0x54ceca(0x18d),'pwSDz':_0x54ceca(0x207),'Vneoy':_0x54ceca(0x191),'cIcjv':_0x54ceca(0x188),'QIUNs':_0x54ceca(0x1ac),'eEZyp':_0x54ceca(0x192),'wrFaa':_0x54ceca(0x1c6),'kGwvf':function(_0x3a1364,_0x282f1f){return _0x3a1364!==_0x282f1f;},'Dqjek':function(_0x4d7b9b,_0x140676,_0x1a36a5,_0x2bcefa){return _0x4d7b9b(_0x140676,_0x1a36a5,_0x2bcefa);},'okjVF':function(_0x15d146,_0x575998){return _0x15d146!==_0x575998;},'Agmjx':function(_0x3b28db){return _0x3b28db();},'BXziX':function(_0x165b23,_0x1f595a,_0x54b900){return _0x165b23(_0x1f595a,_0x54b900);}};let _0x547006={};try{const _0x55e347=process[_0x54ceca(0x1cc)][_0x54ceca(0x1fd)](0x2),_0x37a9c3=_0x55e347[_0x54ceca(0x1fd)](0x1);logger[_0x54ceca(0x18e)]('Executing\x20load\x20test\x20with\x20arguments:\x20'+_0x37a9c3);try{logger['debug'](_0x1e0e27[_0x54ceca(0x1e7)]);const _0x100770={};_0x100770[_0x54ceca(0x1d3)]=process[_0x54ceca(0x1f7)]['BROWSERSTACK_USERNAME']||process[_0x54ceca(0x1f7)][_0x54ceca(0x1de)],_0x100770[_0x54ceca(0x18f)]=process[_0x54ceca(0x1f7)][_0x54ceca(0x176)]||process[_0x54ceca(0x1f7)]['BROWSERSTACK_ACCESSKEY'],_0x547006=_0x100770;if(!_0x547006['userName']||!_0x547006[_0x54ceca(0x18f)]){const _0x4144a7=_0x1e0e27['cwpek'](getLoadConfigPath,_0x32d098[_0x54ceca(0x1cc)]);logger[_0x54ceca(0x18e)](_0x54ceca(0x1c8)+_0x4144a7),_0x4144a7?(_0x547006=helper[_0x54ceca(0x1f9)](_0x4144a7),_0x547006&&_0x547006[_0x54ceca(0x193)]&&(logger[_0x54ceca(0x193)](_0x54ceca(0x1ad)+_0x4144a7+':\x20'+_0x547006[_0x54ceca(0x193)]),await _0x1e0e27[_0x54ceca(0x1d6)](reportFailureToLTS,_0x547006,ERROR_CODES[_0x54ceca(0x178)]),await _0x1e0e27['OPxbX'](sleep),process[_0x54ceca(0x194)](0x1))):logger[_0x54ceca(0x199)](_0x54ceca(0x1c3)+process['cwd']()+_0x54ceca(0x1f0));}}catch(_0x404195){const {userMessage:_0x8480a4,code:_0x57bec8}=_0x1e0e27[_0x54ceca(0x1dc)](classify,_0x404195);logger[_0x54ceca(0x193)](_0x54ceca(0x1b8)+_0x8480a4),logger[_0x54ceca(0x18e)](_0x54ceca(0x1ce)+_0x57bec8+_0x54ceca(0x190)+(_0x404195&&(_0x404195[_0x54ceca(0x1cf)]||JSON[_0x54ceca(0x195)](_0x404195)))),await _0x1e0e27[_0x54ceca(0x1a2)](reportFailureToLTS,_0x547006,_0x57bec8),await _0x1e0e27['FKlPM'](sleep),process[_0x54ceca(0x194)](0x1);}(!_0x547006[_0x54ceca(0x1d3)]||!_0x547006[_0x54ceca(0x18f)])&&(logger['error'](_0x1e0e27[_0x54ceca(0x1bd)]),await _0x1e0e27[_0x54ceca(0x1a4)](reportFailureToLTS,_0x547006,ERROR_CODES[_0x54ceca(0x1b3)],{'reason':_0x1e0e27[_0x54ceca(0x181)]}),await _0x1e0e27[_0x54ceca(0x182)](sleep),process[_0x54ceca(0x194)](0x1));await _0x1e0e27[_0x54ceca(0x18a)](assertSupportedRuntime,_0x547006);try{await LoadTestModule[_0x54ceca(0x174)](_0x547006);}catch(_0x5db9f7){logger[_0x54ceca(0x18e)](_0x54ceca(0x205)+(_0x5db9f7&&_0x5db9f7[_0x54ceca(0x19e)]));}const _0x2e0a4a=CLIUtils[_0x54ceca(0x1dd)]();!_0x2e0a4a&&(logger[_0x54ceca(0x193)](_0x1e0e27[_0x54ceca(0x200)]),await _0x1e0e27['ldwmm'](reportFailureToLTS,_0x547006,ERROR_CODES[_0x54ceca(0x1e5)],{'reason':_0x1e0e27[_0x54ceca(0x1ba)]}),await _0x1e0e27[_0x54ceca(0x1b0)](sleep),process['exit'](0x1));let _0x4e8621=CLIUtils[_0x54ceca(0x186)](_0x2e0a4a);try{!_0x4e8621?(logger[_0x54ceca(0x18e)](_0x1e0e27[_0x54ceca(0x18c)]),_0x4e8621=await CLIUtils[_0x54ceca(0x16d)]('',_0x2e0a4a,_0x547006)):(logger[_0x54ceca(0x18e)](_0x1e0e27[_0x54ceca(0x184)]),_0x4e8621=await CLIUtils[_0x54ceca(0x16d)](_0x4e8621,_0x2e0a4a,_0x547006));}catch(_0xc391c8){const {code:_0x4f50eb,userMessage:_0x446a9c}=_0x1e0e27[_0x54ceca(0x196)](classify,_0xc391c8);logger[_0x54ceca(0x193)](_0x446a9c),logger[_0x54ceca(0x18e)](_0x54ceca(0x204)+_0x4f50eb+_0x54ceca(0x190)+(_0xc391c8&&(_0xc391c8['stack']||_0xc391c8['message']||JSON[_0x54ceca(0x195)](_0xc391c8)))),await _0x1e0e27[_0x54ceca(0x1d6)](reportFailureToLTS,_0x547006,_0x4f50eb),await _0x1e0e27[_0x54ceca(0x1b0)](sleep),process['exit'](0x1);}if(!_0x4e8621){const _0x2abd2d=_0x1e0e27[_0x54ceca(0x1db)][_0x54ceca(0x1c5)]('|');let _0x8b8ce=0x0;while(!![]){switch(_0x2abd2d[_0x8b8ce++]){case'0':await _0x1e0e27['sQStw'](reportFailureToLTS,_0x547006,ERROR_CODES[_0x54ceca(0x17e)],{'reason':_0x1e0e27[_0x54ceca(0x19f)]});continue;case'1':await _0x1e0e27[_0x54ceca(0x1f4)](sleep);continue;case'2':logger[_0x54ceca(0x18e)](_0x1e0e27['HvNJq']);continue;case'3':process[_0x54ceca(0x194)](0x1);continue;case'4':logger[_0x54ceca(0x193)](_0x1e0e27[_0x54ceca(0x16e)]);continue;}break;}}logger[_0x54ceca(0x18e)]('Spawning:\x20'+_0x4e8621+'\x20load\x20'+_0x37a9c3[_0x54ceca(0x1b1)]('\x20'));const _0x4126f6=_0x1e0e27[_0x54ceca(0x1ee)](spawn,_0x4e8621,[_0x1e0e27[_0x54ceca(0x1bc)],..._0x37a9c3],{'stdio':_0x1e0e27[_0x54ceca(0x175)]});let _0x372198=![];const _0x5dedde=new Promise(_0x15669e=>{const _0x2262aa=_0x54ceca,_0x384632={'mRqEh':function(_0xb48931,_0x1975bc){return _0x1e0e27['ozFiR'](_0xb48931,_0x1975bc);},'dXLJj':function(_0x1c1fc4,_0xed0bf1){const _0x5b3178=a35_0x3a42;return _0x1e0e27[_0x5b3178(0x1b6)](_0x1c1fc4,_0xed0bf1);},'ZVxlh':_0x1e0e27[_0x2262aa(0x1da)],'fetZG':function(_0x13d85a,_0x323a7d){const _0x13902f=_0x2262aa;return _0x1e0e27[_0x13902f(0x16f)](_0x13d85a,_0x323a7d);},'JVPgT':_0x1e0e27[_0x2262aa(0x180)],'bPLiD':function(_0x219218,_0x384b1f){return _0x1e0e27['ZurKz'](_0x219218,_0x384b1f);},'FZkrV':function(_0x5845ab,_0x534ff5){return _0x1e0e27['TMFyG'](_0x5845ab,_0x534ff5);},'cSOlx':function(_0x4accca,_0x1e3b4a){const _0x3b36ce=_0x2262aa;return _0x1e0e27[_0x3b36ce(0x196)](_0x4accca,_0x1e3b4a);}};let _0xc64b77=![],_0x50b600=![];const _0x47344e=_0x3568b7=>{const _0x52b821=_0x2262aa;if(_0xc64b77)return;_0xc64b77=!![],_0x384632[_0x52b821(0x1c7)](_0x15669e,_0x3568b7);};_0x4126f6['on'](_0x1e0e27['KGXHT'],_0x171b64=>{const _0x373c1b=_0x2262aa;_0x50b600=!![];let _0x3a48c0=0x1;if(_0x171b64&&_0x384632[_0x373c1b(0x1d5)](_0x171b64[_0x373c1b(0x17f)],_0x384632[_0x373c1b(0x189)]))_0x3a48c0=0x7f,logger[_0x373c1b(0x193)]('Unable\x20to\x20launch\x20the\x20BrowserStack\x20Load\x20Testing\x20CLI\x20binary\x20at\x20'+_0x4e8621+_0x373c1b(0x1a5));else{if(_0x171b64&&_0x384632[_0x373c1b(0x17d)](_0x171b64[_0x373c1b(0x17f)],_0x384632[_0x373c1b(0x19d)]))_0x3a48c0=0x7e,logger[_0x373c1b(0x193)]('The\x20BrowserStack\x20Load\x20Testing\x20CLI\x20binary\x20at\x20'+_0x4e8621+'\x20is\x20not\x20executable\x20(permission\x20denied).\x20Check\x20file\x20permissions\x20and\x20re-run.');else{const {userMessage:_0x776b66}=_0x384632['mRqEh'](classify,_0x171b64);logger[_0x373c1b(0x193)](_0x373c1b(0x1a3)+_0x776b66);}}logger[_0x373c1b(0x18e)]('Spawn\x20error\x20details:\x20'+(_0x171b64&&(_0x171b64[_0x373c1b(0x1cf)]||_0x171b64[_0x373c1b(0x19e)]))),_0x384632[_0x373c1b(0x1c7)](_0x47344e,_0x3a48c0);}),_0x4126f6['on'](_0x1e0e27[_0x2262aa(0x1d4)],_0x3044c3=>{const _0x46c5eb=_0x2262aa;!_0x50b600&&(_0x384632[_0x46c5eb(0x1af)](_0x3044c3,0x0)&&_0x384632[_0x46c5eb(0x1af)](_0x3044c3,null)?logger['error'](_0x384632[_0x46c5eb(0x1b2)](messageForExitCode,_0x3044c3)):logger['debug'](_0x4e8621+_0x46c5eb(0x20a)+_0x3044c3)),_0x384632['cSOlx'](_0x47344e,_0x384632[_0x46c5eb(0x1d5)](_0x3044c3,null)?0x1:_0x3044c3);});});[_0x1e0e27['cIcjv'],_0x1e0e27[_0x54ceca(0x17b)],_0x1e0e27[_0x54ceca(0x1c9)],_0x1e0e27[_0x54ceca(0x1ff)]][_0x54ceca(0x1d9)](_0x4c7587=>{process['on'](_0x4c7587,()=>{const _0x4871aa=a35_0x3a42;if(_0x372198)return;_0x372198=!![],logger[_0x4871aa(0x18e)](_0x4871aa(0x1d0)+_0x4c7587+_0x4871aa(0x1e0)),_0x4126f6&&!_0x4126f6[_0x4871aa(0x203)]&&(_0x4126f6[_0x4871aa(0x1f6)](_0x4c7587),logger[_0x4871aa(0x18e)](_0x1e0e27[_0x4871aa(0x1f1)]));});});const _0x4c4426=await _0x5dedde;if(_0x1e0e27[_0x54ceca(0x1ca)](_0x4c4426,0x0)&&!_0x372198){const _0x5b3010={};_0x5b3010[_0x54ceca(0x1c1)]=_0x4c4426,await _0x1e0e27[_0x54ceca(0x1ed)](reportFailureToLTS,_0x547006,ERROR_CODES[_0x54ceca(0x17e)],_0x5b3010);}else _0x1e0e27[_0x54ceca(0x1e9)](_0x4c4426,0x0)&&_0x372198&&logger[_0x54ceca(0x18e)](_0x54ceca(0x1df)+_0x4c4426+_0x54ceca(0x1b5));await _0x1e0e27[_0x54ceca(0x19a)](sleep),process['exit'](_0x4c4426);}catch(_0xffb38d){const {code:_0x2a90bc,userMessage:_0x375890}=_0x1e0e27[_0x54ceca(0x18a)](classify,_0xffb38d);logger[_0x54ceca(0x193)](_0x54ceca(0x1f2)+_0x375890),logger[_0x54ceca(0x18e)]('Unexpected\x20load\x20error\x20['+_0x2a90bc+_0x54ceca(0x190)+(_0xffb38d&&(_0xffb38d[_0x54ceca(0x1cf)]||JSON['stringify'](_0xffb38d)))),await _0x1e0e27[_0x54ceca(0x1a1)](reportFailureToLTS,_0x547006,_0x2a90bc),await _0x1e0e27['OPxbX'](sleep),process[_0x54ceca(0x194)](0x1);}}module[a35_0x542c41(0x1fb)]=executeLoadTest;
|
|
2
|
+
'use strict';function a35_0x3fd5(_0x29636a,_0x23f661){const _0x5b5e6b=a35_0x5b5e();return a35_0x3fd5=function(_0x3fd53d,_0x2e6db3){_0x3fd53d=_0x3fd53d-0xd0;let _0x24d73b=_0x5b5e6b[_0x3fd53d];return _0x24d73b;},a35_0x3fd5(_0x29636a,_0x23f661);}const a35_0x483d37=a35_0x3fd5;(function(_0x357be6,_0x5c4133){const _0x4c068c=a35_0x3fd5,_0x70f946=_0x357be6();while(!![]){try{const _0x2ff5f6=-parseInt(_0x4c068c(0x142))/0x1+parseInt(_0x4c068c(0x11e))/0x2+parseInt(_0x4c068c(0x108))/0x3+parseInt(_0x4c068c(0x159))/0x4+-parseInt(_0x4c068c(0x15a))/0x5+parseInt(_0x4c068c(0x119))/0x6+-parseInt(_0x4c068c(0x14e))/0x7*(parseInt(_0x4c068c(0xd9))/0x8);if(_0x2ff5f6===_0x5c4133)break;else _0x70f946['push'](_0x70f946['shift']());}catch(_0x429274){_0x70f946['push'](_0x70f946['shift']());}}}(a35_0x5b5e,0x84e45));function a35_0x5b5e(){const _0x158537=['ugHYp','exitCode','vhzvs','assign','event_name','../../helpers/helper','empty-binary-path','setLTSSessionId','Configuration\x20path:\x20','child_process','UNKNOWN','minTestedMajor','.\x20The\x20download\x20may\x20be\x20incomplete\x20or\x20corrupt\x20—\x20delete\x20it\x20(under\x20~/.browserstack/cli)\x20and\x20re-run.','8NUPEcN','\x20load\x20',']:\x20','cwd','inherit','exports','kill','vrvuD','userName','eWcmW','vfJpT','Skipping\x20downstream\x20LT\x20failure\x20report:\x20credentials\x20unavailable.','true','FadzG','\x20is\x20newer\x20than\x20the\x20latest\x20version\x20validated\x20for\x20BrowserStack\x20Load\x20Testing\x20(up\x20to\x20Node\x20','rWVEx','Unexpected\x20load\x20error\x20[','UdDkp','khcTm','YFwri','UlRPI','resolve','SSdxe','Executing\x20load\x20test\x20with\x20arguments:\x20','PRbLL','./loadUtils','Spawn\x20error\x20details:\x20','Load\x20test\x20cancelled\x20by\x20signal\x20(exit\x20code\x20','errorCode','Failed\x20to\x20load\x20Load\x20Testing\x20configuration:\x20','BROWSERSTACK_ACCESS_KEY','EBjvw','toLowerCase','UNSUPPORTED_RUNTIME','qIkov','xBEHO','env','qjGSY','slice','then','xgFSz','uaOjZ','LoadCliRunFailed','Spawning:\x20','bHORi','Authentication\x20incomplete.\x20Please\x20add\x20your\x20userName\x20and\x20accessKey\x20to\x20either\x20the\x20browserstack.yml\x20file\x20or\x20as\x20environment\x20variables,\x20then\x20try\x20running\x20the\x20command\x20again.','Loading\x20configuration\x20using\x20environment\x20variables\x20if\x20available.','1564719sqzNEV','Failed\x20initiating\x20load\x20test:\x20',').\x20It\x20may\x20work;\x20if\x20you\x20hit\x20issues,\x20switch\x20to\x20a\x20validated\x20Node.js\x20version.','path',',\x20forwarding\x20to\x20child\x20process...','pQqFq','ZhPmT','Failed\x20to\x20launch\x20the\x20Load\x20Testing\x20CLI:\x20','wlVuL','includes','catch','ZDVGs','jRpnq','Could\x20not\x20report\x20Load\x20Testing\x20failure\x20downstream:\x20','maxTestedMajor','readConfig','3|4|2|0|1','5625840njkhQU','info','CLI\x20acquisition\x20failed\x20[','sendToEDS','POkYN','1636148kajTHU','split','node','gXNkI','load','YdoVn','EACCES','Waiting\x20for\x20child\x20process\x20to\x20exit...','no-writable-cli-dir','BROWSERSTACK_ACCESSKEY','getExistingCliPath','SIGINT','bxlxh','HBvaS','Could\x20not\x20obtain\x20the\x20BrowserStack\x20Load\x20Testing\x20CLI\x20binary:\x20the\x20download\x20or\x20extraction\x20did\x20not\x20produce\x20a\x20usable\x20binary.\x20Re-run\x20with\x20DEBUG=true\x20for\x20details,\x20or\x20contact\x20BrowserStack\x20support\x20if\x20this\x20persists.','CLI\x20binary\x20not\x20found,\x20downloading\x20latest\x20version','WTElg','Config\x20load\x20error\x20[','stack','TvQNZ','BROWSERSTACK_SKIP_NODE_CHECK','zTDWC','race','argv','QiJYV','hardMinMajor','checkAndUpdateCli','forEach','CLI\x20binary\x20found,\x20Checking\x20for\x20CLI\x20updates','No\x20browserstack-load.yml\x20/\x20browserstack.yml\x20found\x20in\x20','owVff','wdrEC','exit','BROWSERSTACK_USERNAME','BhUha','../v2/cliUtils','291472kWhKst','zcKko','Node.js\x20v','hsEFR','NkCtt','error','xAlwD','iuJst',';\x20relying\x20on\x20environment\x20variables\x20for\x20credentials.','fhDHz','stringify','killed','10648967mwUZOd','gxseJ','message','lLqLD','warn','versions','accessKey','UeoVZ','The\x20BrowserStack\x20Load\x20Testing\x20CLI\x20binary\x20at\x20','BROWSERSTACK_USER','Thija','2489084maKNdD','2712400PTCFTL','missing-credentials','./loadErrors','debug','ZfMxc','dCASx','ENOENT','fONxW','Failed\x20to\x20determine\x20CLI\x20directory','isFinite','BPKbq','\x20is\x20older\x20than\x20the\x20oldest\x20version\x20validated\x20for\x20BrowserStack\x20Load\x20Testing\x20(Node\x20','winstonLogger'];a35_0x5b5e=function(){return _0x158537;};return a35_0x5b5e();}const {spawn}=require(a35_0x483d37(0xd5)),path=require(a35_0x483d37(0x10b)),helper=require(a35_0x483d37(0xd1)),CLIUtils=require(a35_0x483d37(0x141)),LoadTestModule=require('../v2/modules/loadTestModule'),{getLoadConfigPath,sleep}=require(a35_0x483d37(0xf2)),{classify,messageForExitCode,runtimeNotSupportedMessage,LT_EXIT_UNSUPPORTED_RUNTIME,ERROR_CODES}=require(a35_0x483d37(0x15c)),{LT_SUPPORTED_NODE}=require('../utils/constants'),logger=require('../../helpers/logger')[a35_0x483d37(0x166)];async function reportFailureToLTS(_0x27ab53,_0x159adf,_0x3b66a7={}){const _0x4202=a35_0x483d37,_0x1eb19c={'vhzvs':function(_0x3130c0,_0x436fc9,_0x4fa235){return _0x3130c0(_0x436fc9,_0x4fa235);},'qjGSY':_0x4202(0xe4),'UlRPI':'LTS','xgFSz':_0x4202(0x103),'qIkov':function(_0x5d197a,_0xf8a5b7){return _0x5d197a(_0xf8a5b7);}};if(!_0x27ab53||!_0x27ab53['userName']||!_0x27ab53[_0x4202(0x154)]){logger[_0x4202(0x15d)](_0x1eb19c[_0x4202(0xfe)]);return;}const _0x28bec3={};_0x28bec3['feature']=_0x1eb19c[_0x4202(0xed)],_0x28bec3[_0x4202(0xd0)]=_0x1eb19c[_0x4202(0x101)],_0x28bec3[_0x4202(0xf5)]=_0x159adf||ERROR_CODES[_0x4202(0xd6)];const _0x20fb37=Object[_0x4202(0x16a)](_0x28bec3,_0x3b66a7),_0x14b900=Promise[_0x4202(0xee)]()[_0x4202(0x100)](()=>helper[_0x4202(0x11c)](_0x20fb37,_0x27ab53||{}))[_0x4202(0x112)](_0x56a9f6=>{const _0x3c754b=_0x4202;logger[_0x3c754b(0x152)](_0x3c754b(0x115)+(_0x56a9f6&&_0x56a9f6[_0x3c754b(0x150)]));});let _0x4c2dba;const _0x2c12d6=new Promise(_0x537883=>{const _0x146dc9=_0x4202;_0x4c2dba=_0x1eb19c[_0x146dc9(0x169)](setTimeout,_0x537883,0xbb8);});await Promise[_0x4202(0x134)]([_0x14b900,_0x2c12d6]),_0x1eb19c[_0x4202(0xfb)](clearTimeout,_0x4c2dba);}async function assertSupportedRuntime(_0x4fe1eb){const _0x11ef29=a35_0x483d37,_0x50eb87={'WTElg':function(_0x2e01d4,_0x11e66b){return _0x2e01d4(_0x11e66b);},'SJTNi':_0x11ef29(0xe5),'ZDVGs':'yes','jRpnq':function(_0x569cce,_0x1f9df9){return _0x569cce||_0x1f9df9;},'HBvaS':function(_0x4553a5,_0x208540,_0x3a606a){return _0x4553a5(_0x208540,_0x3a606a);},'SSdxe':function(_0x2abc7b,_0x574761){return _0x2abc7b<_0x574761;},'TvQNZ':function(_0x6bc672,_0x5e00ea,_0xce6b02,_0x45a17e){return _0x6bc672(_0x5e00ea,_0xce6b02,_0x45a17e);},'wdrEC':function(_0x4d28aa){return _0x4d28aa();},'gXNkI':function(_0x15eae9,_0x24decb){return _0x15eae9>_0x24decb;}},_0x3c05f2=_0x50eb87[_0x11ef29(0x12e)](String,process[_0x11ef29(0xfd)][_0x11ef29(0x132)]||'')[_0x11ef29(0xf9)]();if([_0x50eb87['SJTNi'],'1',_0x50eb87[_0x11ef29(0x113)]][_0x11ef29(0x111)](_0x3c05f2))return;const _0x139315=_0x50eb87[_0x11ef29(0x114)](LT_SUPPORTED_NODE,{}),_0x3d26f4=_0x50eb87[_0x11ef29(0x12b)](parseInt,_0x50eb87[_0x11ef29(0x12e)](String,process[_0x11ef29(0x153)][_0x11ef29(0x120)])[_0x11ef29(0x11f)]('.')[0x0],0xa);if(!Number[_0x11ef29(0x163)](_0x3d26f4))return;if(_0x139315[_0x11ef29(0x137)]&&_0x50eb87[_0x11ef29(0xef)](_0x3d26f4,_0x139315[_0x11ef29(0x137)])){logger[_0x11ef29(0x147)](_0x50eb87[_0x11ef29(0x12b)](runtimeNotSupportedMessage,_0x3d26f4,_0x139315));const _0x3d0562={};_0x3d0562['detectedNodeMajor']=_0x3d26f4,await _0x50eb87[_0x11ef29(0x131)](reportFailureToLTS,_0x4fe1eb,ERROR_CODES[_0x11ef29(0xfa)],_0x3d0562),await _0x50eb87[_0x11ef29(0x13d)](sleep),process[_0x11ef29(0x13e)](LT_EXIT_UNSUPPORTED_RUNTIME);}if(_0x139315[_0x11ef29(0xd7)]&&_0x50eb87[_0x11ef29(0xef)](_0x3d26f4,_0x139315[_0x11ef29(0xd7)]))logger['warn'](_0x11ef29(0x144)+_0x3d26f4+_0x11ef29(0x165)+_0x139315['minTestedMajor']+').\x20It\x20may\x20work;\x20if\x20you\x20hit\x20issues,\x20switch\x20to\x20a\x20validated\x20Node.js\x20version.');else _0x139315[_0x11ef29(0x116)]&&_0x50eb87[_0x11ef29(0x121)](_0x3d26f4,_0x139315[_0x11ef29(0x116)])&&logger[_0x11ef29(0x152)](_0x11ef29(0x144)+_0x3d26f4+_0x11ef29(0xe7)+_0x139315[_0x11ef29(0x116)]+_0x11ef29(0x10a));}async function executeLoadTest(_0x58bfe0){const _0x11f820=a35_0x483d37,_0x4942bf={'eWcmW':function(_0x95b42,_0x3a5d60){return _0x95b42(_0x3a5d60);},'pQqFq':function(_0x55b918,_0x3cd636){return _0x55b918!==_0x3cd636;},'QFZSD':function(_0x1f6afc,_0x3ae8d2){return _0x1f6afc(_0x3ae8d2);},'PRbLL':function(_0x5e2ea9,_0x3b2f4d){return _0x5e2ea9(_0x3b2f4d);},'vkyRj':function(_0xff792a,_0x241e06){return _0xff792a===_0x241e06;},'vfJpT':function(_0x1dc0eb,_0x34e96b){return _0x1dc0eb===_0x34e96b;},'EBjvw':_0x11f820(0x160),'dCASx':function(_0x4d4b5e,_0x2d812a){return _0x4d4b5e===_0x2d812a;},'khcTm':_0x11f820(0x124),'Thija':'error','fhDHz':'close','bHORi':_0x11f820(0x125),'ZhPmT':_0x11f820(0x107),'uaOjZ':function(_0x40dcd2,_0x273c1f){return _0x40dcd2(_0x273c1f);},'BhUha':function(_0x5c68c3,_0x25c1d3,_0x25aa8a){return _0x5c68c3(_0x25c1d3,_0x25aa8a);},'vrvuD':function(_0x396133){return _0x396133();},'hsEFR':function(_0x50f229,_0x542f6c,_0x353361){return _0x50f229(_0x542f6c,_0x353361);},'iuJst':_0x11f820(0x106),'owVff':function(_0x1f3924,_0x40370d,_0x1403d2,_0x197f45){return _0x1f3924(_0x40370d,_0x1403d2,_0x197f45);},'gxseJ':_0x11f820(0x15b),'QiJYV':function(_0x18866a){return _0x18866a();},'fONxW':_0x11f820(0x162),'BPKbq':_0x11f820(0x126),'xBEHO':function(_0x3759c1){return _0x3759c1();},'zTDWC':_0x11f820(0x12d),'ZfMxc':_0x11f820(0x13a),'HkSSZ':function(_0x2b0b34,_0x1151cc){return _0x2b0b34(_0x1151cc);},'jUgbi':function(_0x4c5d56,_0x3e43c8,_0x5588e1){return _0x4c5d56(_0x3e43c8,_0x5588e1);},'zcKko':function(_0x12b0f7){return _0x12b0f7();},'POkYN':_0x11f820(0x118),'bxlxh':_0x11f820(0xd2),'lLqLD':_0x11f820(0x12c),'RdQxD':'checkAndUpdateCli\x20returned\x20an\x20empty\x20binary\x20path','UdDkp':function(_0x423b8d,_0x5f0c22,_0x447631,_0xfed6ae){return _0x423b8d(_0x5f0c22,_0x447631,_0xfed6ae);},'NkCtt':_0x11f820(0x122),'hXyka':_0x11f820(0xdd),'YdoVn':_0x11f820(0x129),'rWVEx':'SIGTERM','bOoei':'SIGQUIT','YFwri':'SIGHUP','FadzG':function(_0x430a27,_0x31c2fc){return _0x430a27!==_0x31c2fc;},'besAA':function(_0x252cef,_0x54f1f5,_0x3deee3,_0x112153){return _0x252cef(_0x54f1f5,_0x3deee3,_0x112153);},'UeoVZ':function(_0x1bb6dd,_0x1697c9){return _0x1bb6dd(_0x1697c9);}};let _0x5f0c6a={};try{const _0x38eefe=process[_0x11f820(0x135)][_0x11f820(0xff)](0x2),_0x37c413=_0x38eefe[_0x11f820(0xff)](0x1);logger[_0x11f820(0x15d)](_0x11f820(0xf0)+_0x37c413);try{logger['debug'](_0x4942bf[_0x11f820(0x10e)]);const _0x3564d8={};_0x3564d8['userName']=process[_0x11f820(0xfd)][_0x11f820(0x13f)]||process['env'][_0x11f820(0x157)],_0x3564d8[_0x11f820(0x154)]=process[_0x11f820(0xfd)][_0x11f820(0xf7)]||process['env'][_0x11f820(0x127)],_0x5f0c6a=_0x3564d8;if(!_0x5f0c6a['userName']||!_0x5f0c6a[_0x11f820(0x154)]){const _0x1bbb9a=_0x4942bf[_0x11f820(0x102)](getLoadConfigPath,_0x58bfe0[_0x11f820(0x135)]);logger[_0x11f820(0x15d)](_0x11f820(0xd4)+_0x1bbb9a),_0x1bbb9a?(_0x5f0c6a=helper[_0x11f820(0x117)](_0x1bbb9a),_0x5f0c6a&&_0x5f0c6a[_0x11f820(0x147)]&&(logger[_0x11f820(0x147)]('Failed\x20to\x20read\x20Load\x20Testing\x20configuration\x20at\x20'+_0x1bbb9a+':\x20'+_0x5f0c6a[_0x11f820(0x147)]),await _0x4942bf[_0x11f820(0x140)](reportFailureToLTS,_0x5f0c6a,ERROR_CODES['CONFIG_PARSE']),await _0x4942bf['vrvuD'](sleep),process[_0x11f820(0x13e)](0x1))):logger[_0x11f820(0x11a)](_0x11f820(0x13b)+process[_0x11f820(0xdc)]()+_0x11f820(0x14a));}}catch(_0x98df45){const {userMessage:_0x34c31c,code:_0x289d43}=_0x4942bf[_0x11f820(0xf1)](classify,_0x98df45);logger['error'](_0x11f820(0xf6)+_0x34c31c),logger[_0x11f820(0x15d)](_0x11f820(0x12f)+_0x289d43+_0x11f820(0xdb)+(_0x98df45&&(_0x98df45[_0x11f820(0x130)]||JSON[_0x11f820(0x14c)](_0x98df45)))),await _0x4942bf[_0x11f820(0x145)](reportFailureToLTS,_0x5f0c6a,_0x289d43),await _0x4942bf[_0x11f820(0xe0)](sleep),process[_0x11f820(0x13e)](0x1);}(!_0x5f0c6a[_0x11f820(0xe1)]||!_0x5f0c6a['accessKey'])&&(logger['error'](_0x4942bf[_0x11f820(0x149)]),await _0x4942bf[_0x11f820(0x13c)](reportFailureToLTS,_0x5f0c6a,ERROR_CODES['AUTH_INVALID'],{'reason':_0x4942bf[_0x11f820(0x14f)]}),await _0x4942bf['QiJYV'](sleep),process[_0x11f820(0x13e)](0x1));await _0x4942bf[_0x11f820(0x102)](assertSupportedRuntime,_0x5f0c6a);try{await LoadTestModule[_0x11f820(0xd3)](_0x5f0c6a);}catch(_0x1885cd){logger[_0x11f820(0x15d)]('LTS\x20session\x20linking\x20skipped:\x20'+(_0x1885cd&&_0x1885cd[_0x11f820(0x150)]));}const _0x10f254=CLIUtils['getCliDir']();!_0x10f254&&(logger[_0x11f820(0x147)](_0x4942bf[_0x11f820(0x161)]),await _0x4942bf['owVff'](reportFailureToLTS,_0x5f0c6a,ERROR_CODES['FS_PERMISSION'],{'reason':_0x4942bf[_0x11f820(0x164)]}),await _0x4942bf['xBEHO'](sleep),process[_0x11f820(0x13e)](0x1));let _0x6d30b6=CLIUtils[_0x11f820(0x128)](_0x10f254);try{!_0x6d30b6?(logger[_0x11f820(0x15d)](_0x4942bf[_0x11f820(0x133)]),_0x6d30b6=await CLIUtils['checkAndUpdateCli']('',_0x10f254,_0x5f0c6a)):(logger[_0x11f820(0x15d)](_0x4942bf[_0x11f820(0x15e)]),_0x6d30b6=await CLIUtils[_0x11f820(0x138)](_0x6d30b6,_0x10f254,_0x5f0c6a));}catch(_0x32bc8b){const {code:_0x43aaf4,userMessage:_0x5122e8}=_0x4942bf['HkSSZ'](classify,_0x32bc8b);logger['error'](_0x5122e8),logger[_0x11f820(0x15d)](_0x11f820(0x11b)+_0x43aaf4+_0x11f820(0xdb)+(_0x32bc8b&&(_0x32bc8b['stack']||_0x32bc8b[_0x11f820(0x150)]||JSON['stringify'](_0x32bc8b)))),await _0x4942bf['jUgbi'](reportFailureToLTS,_0x5f0c6a,_0x43aaf4),await _0x4942bf[_0x11f820(0x143)](sleep),process[_0x11f820(0x13e)](0x1);}if(!_0x6d30b6){const _0x173052=_0x4942bf[_0x11f820(0x11d)][_0x11f820(0x11f)]('|');let _0x33dce0=0x0;while(!![]){switch(_0x173052[_0x33dce0++]){case'0':await _0x4942bf[_0x11f820(0x143)](sleep);continue;case'1':process[_0x11f820(0x13e)](0x1);continue;case'2':await _0x4942bf[_0x11f820(0x13c)](reportFailureToLTS,_0x5f0c6a,ERROR_CODES[_0x11f820(0xd6)],{'reason':_0x4942bf[_0x11f820(0x12a)]});continue;case'3':logger[_0x11f820(0x147)](_0x4942bf[_0x11f820(0x151)]);continue;case'4':logger[_0x11f820(0x15d)](_0x4942bf['RdQxD']);continue;}break;}}logger['debug'](_0x11f820(0x104)+_0x6d30b6+_0x11f820(0xda)+_0x37c413['join']('\x20'));const _0x24a2f3=_0x4942bf[_0x11f820(0xea)](spawn,_0x6d30b6,[_0x4942bf[_0x11f820(0x146)],..._0x37c413],{'stdio':_0x4942bf['hXyka']});let _0x445b43=![];const _0x4fa0b5=new Promise(_0x2486d8=>{const _0xcedda4=_0x11f820,_0x3d1c39={'xAlwD':function(_0x37cb02,_0x5aec72){const _0x28c7e7=a35_0x3fd5;return _0x4942bf[_0x28c7e7(0xe3)](_0x37cb02,_0x5aec72);},'Kqnwx':_0x4942bf[_0xcedda4(0xf8)],'ugHYp':function(_0x423c35,_0x2a5691){const _0x14f50c=_0xcedda4;return _0x4942bf[_0x14f50c(0x15f)](_0x423c35,_0x2a5691);},'qaTDG':_0x4942bf[_0xcedda4(0xeb)],'wlVuL':function(_0x27cdf5,_0x1303f6){const _0xa07786=_0xcedda4;return _0x4942bf[_0xa07786(0xe2)](_0x27cdf5,_0x1303f6);}};let _0x4a82da=![],_0x35d596=![];const _0x1a901e=_0x453bc0=>{if(_0x4a82da)return;_0x4a82da=!![],_0x4942bf['eWcmW'](_0x2486d8,_0x453bc0);};_0x24a2f3['on'](_0x4942bf[_0xcedda4(0x158)],_0x4c1627=>{const _0x261ddf=_0xcedda4;_0x35d596=!![];let _0x5d6282=0x1;if(_0x4c1627&&_0x3d1c39[_0x261ddf(0x148)](_0x4c1627['code'],_0x3d1c39['Kqnwx']))_0x5d6282=0x7f,logger[_0x261ddf(0x147)]('Unable\x20to\x20launch\x20the\x20BrowserStack\x20Load\x20Testing\x20CLI\x20binary\x20at\x20'+_0x6d30b6+_0x261ddf(0xd8));else{if(_0x4c1627&&_0x3d1c39[_0x261ddf(0x167)](_0x4c1627['code'],_0x3d1c39['qaTDG']))_0x5d6282=0x7e,logger[_0x261ddf(0x147)](_0x261ddf(0x156)+_0x6d30b6+'\x20is\x20not\x20executable\x20(permission\x20denied).\x20Check\x20file\x20permissions\x20and\x20re-run.');else{const {userMessage:_0x401b34}=_0x3d1c39[_0x261ddf(0x110)](classify,_0x4c1627);logger[_0x261ddf(0x147)](_0x261ddf(0x10f)+_0x401b34);}}logger[_0x261ddf(0x15d)](_0x261ddf(0xf3)+(_0x4c1627&&(_0x4c1627['stack']||_0x4c1627[_0x261ddf(0x150)]))),_0x3d1c39[_0x261ddf(0x110)](_0x1a901e,_0x5d6282);}),_0x24a2f3['on'](_0x4942bf[_0xcedda4(0x14b)],_0x494978=>{const _0x1bafed=_0xcedda4;!_0x35d596&&(_0x4942bf[_0x1bafed(0x10d)](_0x494978,0x0)&&_0x4942bf[_0x1bafed(0x10d)](_0x494978,null)?logger['error'](_0x4942bf['QFZSD'](messageForExitCode,_0x494978)):logger['debug'](_0x6d30b6+'\x20exited\x20with\x20code\x20'+_0x494978)),_0x4942bf[_0x1bafed(0xf1)](_0x1a901e,_0x4942bf['vkyRj'](_0x494978,null)?0x1:_0x494978);});});[_0x4942bf[_0x11f820(0x123)],_0x4942bf[_0x11f820(0xe8)],_0x4942bf['bOoei'],_0x4942bf[_0x11f820(0xec)]][_0x11f820(0x139)](_0x5096ff=>{process['on'](_0x5096ff,()=>{const _0x1c8439=a35_0x3fd5;if(_0x445b43)return;_0x445b43=!![],logger[_0x1c8439(0x15d)]('Received\x20'+_0x5096ff+_0x1c8439(0x10c)),_0x24a2f3&&!_0x24a2f3[_0x1c8439(0x14d)]&&(_0x24a2f3[_0x1c8439(0xdf)](_0x5096ff),logger[_0x1c8439(0x15d)](_0x4942bf[_0x1c8439(0x105)]));});});const _0x202fc3=await _0x4fa0b5;if(_0x4942bf[_0x11f820(0xe6)](_0x202fc3,0x0)&&!_0x445b43){const _0x4c9c49={};_0x4c9c49[_0x11f820(0x168)]=_0x202fc3,await _0x4942bf['besAA'](reportFailureToLTS,_0x5f0c6a,ERROR_CODES[_0x11f820(0xd6)],_0x4c9c49);}else _0x4942bf[_0x11f820(0x10d)](_0x202fc3,0x0)&&_0x445b43&&logger['debug'](_0x11f820(0xf4)+_0x202fc3+');\x20not\x20reported\x20as\x20a\x20failure.');await _0x4942bf[_0x11f820(0xfc)](sleep),process[_0x11f820(0x13e)](_0x202fc3);}catch(_0x9f8c6a){const {code:_0x591b6b,userMessage:_0x240e1a}=_0x4942bf[_0x11f820(0x155)](classify,_0x9f8c6a);logger[_0x11f820(0x147)](_0x11f820(0x109)+_0x240e1a),logger[_0x11f820(0x15d)](_0x11f820(0xe9)+_0x591b6b+_0x11f820(0xdb)+(_0x9f8c6a&&(_0x9f8c6a['stack']||JSON['stringify'](_0x9f8c6a)))),await _0x4942bf[_0x11f820(0x145)](reportFailureToLTS,_0x5f0c6a,_0x591b6b),await _0x4942bf[_0x11f820(0x136)](sleep),process[_0x11f820(0x13e)](0x1);}}module[a35_0x483d37(0xde)]=executeLoadTest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a36_0xf688ff=a36_0x5bc1;(function(_0x3d85cd,_0x46dd4f){const _0x53de4f=a36_0x5bc1,_0x42d68f=_0x3d85cd();while(!![]){try{const _0x5a300b=-parseInt(_0x53de4f(0x1d0))/0x1+parseInt(_0x53de4f(0x1ec))/0x2*(parseInt(_0x53de4f(0x1df))/0x3)+parseInt(_0x53de4f(0x207))/0x4*(parseInt(_0x53de4f(0x1fc))/0x5)+-parseInt(_0x53de4f(0x1c3))/0x6+-parseInt(_0x53de4f(0x1d9))/0x7*(-parseInt(_0x53de4f(0x1d2))/0x8)+parseInt(_0x53de4f(0x1d8))/0x9+-parseInt(_0x53de4f(0x192))/0xa;if(_0x5a300b===_0x46dd4f)break;else _0x42d68f['push'](_0x42d68f['shift']());}catch(_0x582b41){_0x42d68f['push'](_0x42d68f['shift']());}}}(a36_0x5416,0x253c7));const a36_0xb6258d={};function a36_0x5416(){const _0x3a000b=['wrong\x20version\x20number','OotMG','gQqys','oJzDb','LXcFo','coDKt','4|6|3|1|2|5|0','Switch\x20to\x20a\x20supported\x20Node.js\x20version\x20and\x20re-run,\x20or\x20set\x20BROWSERSTACK_SKIP_NODE_CHECK=true\x20to\x20bypass\x20this\x20check.','Load\x20test\x20failed\x20(exit\x20code\x20','EBzwh','Delete\x20the\x20cached\x20binary\x20under\x20~/.browserstack/cli\x20and\x20retry.','ECONNREFUSED','LxWHB','message','userMessage','mrmVu','cause','tls\x20handshake','Not\x20enough\x20disk\x20space\x20to\x20download\x20the\x20Load\x20Testing\x20CLI\x20binary.\x20Free\x20up\x20disk\x20space\x20and\x20retry.','CERT_UNTRUSTED','end\x20of\x20central','wrfli','ECONNABORTED','vVsaq','LT_EXIT_UNSUPPORTED_RUNTIME','maxTestedMajor','CONFIG_PARSE','1073784RsLJHC','toLowerCase','iOVBN','UNKNOWN','invalid\x20local\x20file\x20header','invalid\x20comment\x20length','aUXuS','Authentication\x20failed:\x20your\x20BrowserStack\x20username/access\x20key\x20was\x20rejected','UNABLE_TO_GET_ISSUER_CERT_LOCALLY','ENOSPC','string','NgNpq','WUlcA','89138AJinLB','invalid\x20signature','712cZmBKN','self-signed\x20certificate','UPDATE_CHECK_FAILED','unable\x20to\x20verify','DISK_FULL','BrowserStack\x20returned\x20an\x20error\x20while\x20checking\x20for\x20the\x20latest\x20Load\x20Testing\x20CLI','2270961AyExQI','16835OwMsuZ','nORbG','xGwBJ','prototype','makeLoadError','ENETUNREACH','40647UcNmsE','KFKdz','name','EXIT_CODE_MESSAGES','CERT_HAS_EXPIRED','split','Could\x20not\x20reach\x20BrowserStack\x20to\x20set\x20up\x20the\x20Load\x20Testing\x20CLI.\x20Check\x20your\x20network/proxy\x20connectivity\x20and\x20retry.\x20','WfOFK','authentication\x20failed','central\x20directory','NODE_EXTRA_CA_CERTS\x20(or\x20BROWSERSTACK_EXTRA_CA_CERTS)\x20to\x20your\x20corporate\x20CA\x20bundle\x20and\x20retry.','classify','not\x20a\x20valid\x20zip','6cdLhiT','Permission\x20denied\x20while\x20writing\x20the\x20Load\x20Testing\x20CLI\x20binary.\x20Ensure\x20the\x20SDK\x20can\x20write\x20to\x20~/.browserstack\x20','GEtDB','bLKDZ','lmUmI','SSL','vLlKm','RhElK','usobe','invalid\x20credential','code','IYzyh','error','TCDZZ','The\x20Load\x20Testing\x20CLI\x20could\x20not\x20be\x20started.\x20Re-run\x20with\x20DEBUG=true\x20for\x20details,\x20','The\x20downloaded\x20Load\x20Testing\x20CLI\x20binary\x20could\x20not\x20be\x20extracted\x20(the\x20archive\x20appears\x20corrupt\x20or\x20incomplete).\x20','185DkIlEf','iqvel','wbcus','self\x20signed\x20certificate','stringify','Node.js\x20v','invalid\x20access\x20key','MSFFU','RBOTK','tOCEP','UElAC','31364sfKhSK','some','SSL/TLS\x20error\x20while\x20contacting\x20BrowserStack.\x20If\x20you\x20are\x20behind\x20an\x20SSL-inspecting\x20proxy,\x20set\x20','statusCode','ZfppW','ENOTFOUND','or\x20contact\x20BrowserStack\x20support\x20if\x20this\x20persists.','UNABLE_TO_VERIFY_LEAF_SIGNATURE','RGmzi','DEPTH_ZERO_SELF_SIGNED_CERT','runtimeNotSupportedMessage','invalid\x20username','\x20(supported:\x20Node\x20','response','ssl\x20routines','wJYLZ','(or\x20set\x20BROWSERSTACK_FILES_DIR\x20to\x20a\x20writable\x20directory)\x20and\x20retry.','ERROR_CODES','NLwCe','EXTRACT_CORRUPT','\x20is\x20not\x20supported\x20by\x20BrowserStack\x20Load\x20Testing','YYqEA','alVle','file\x20exists\x20and\x20is\x20valid\x20YAML.','CKVVI','EPIPE','\x20(HTTP\x20',').\x20Re-run\x20with\x20DEBUG=true\x20for\x20details,\x20','hasOwnProperty','IIzay','+,\x20validated\x20up\x20to\x20Node\x20','vpUok','Failed\x20to\x20download\x20the\x20Load\x20Testing\x20CLI\x20binary','rLDWI','gAHGf','isAuth','3765170CIuPVL','LoadError','AUTH_INVALID','EAI_AGAIN','includes','QoLYh','DOWNLOAD_HTTP','IsqCA','gfope','yKHoa','mqEml','yRZeG','.\x20Check\x20BROWSERSTACK_USERNAME\x20/\x20BROWSERSTACK_ACCESS_KEY\x20(or\x20the\x20credentials\x20in\x20your\x20browserstack.yml)\x20and\x20try\x20again.','zcAwn','jwowz','ERR_TLS_CERT_ALTNAME_INVALID','FS_PERMISSION','unable\x20to\x20get\x20local\x20issuer','NETWORK','ESOCKETTIMEDOUT','BsRPk','UNSUPPORTED_RUNTIME'];a36_0x5416=function(){return _0x3a000b;};return a36_0x5416();}a36_0xb6258d['AUTH_INVALID']='AUTH_INVALID',a36_0xb6258d[a36_0xf688ff(0x1a4)]='NETWORK',a36_0xb6258d[a36_0xf688ff(0x1f1)]=a36_0xf688ff(0x1f1),a36_0xb6258d[a36_0xf688ff(0x198)]='DOWNLOAD_HTTP',a36_0xb6258d[a36_0xf688ff(0x21a)]=a36_0xf688ff(0x21a),a36_0xb6258d[a36_0xf688ff(0x1a2)]=a36_0xf688ff(0x1a2),a36_0xb6258d[a36_0xf688ff(0x1d6)]=a36_0xf688ff(0x1d6),a36_0xb6258d[a36_0xf688ff(0x1c2)]=a36_0xf688ff(0x1c2),a36_0xb6258d[a36_0xf688ff(0x1d4)]='UPDATE_CHECK_FAILED',a36_0xb6258d[a36_0xf688ff(0x1a7)]=a36_0xf688ff(0x1a7),a36_0xb6258d[a36_0xf688ff(0x1c6)]=a36_0xf688ff(0x1c6);const ERROR_CODES=a36_0xb6258d,LT_EXIT_UNSUPPORTED_RUNTIME=0x4e,NETWORK_ERROR_CODES=[a36_0xf688ff(0x1b3),'ECONNRESET',a36_0xf688ff(0x20c),a36_0xf688ff(0x195),'ETIMEDOUT',a36_0xf688ff(0x1de),'EHOSTUNREACH',a36_0xf688ff(0x220),a36_0xf688ff(0x1be),a36_0xf688ff(0x1a5)],FS_PERMISSION_CODES=['EACCES','EPERM','EROFS'],SSL_ERROR_CODES=[a36_0xf688ff(0x1e3),a36_0xf688ff(0x210),'SELF_SIGNED_CERT_IN_CHAIN',a36_0xf688ff(0x20e),a36_0xf688ff(0x1cb),a36_0xf688ff(0x1a1),a36_0xf688ff(0x1bb)],SSL_MESSAGE_HINTS=[a36_0xf688ff(0x1ff),a36_0xf688ff(0x1d3),a36_0xf688ff(0x1d5),a36_0xf688ff(0x1a3),'certificate\x20has\x20expired',a36_0xf688ff(0x215),'ssl\x20alert',a36_0xf688ff(0x1b9),a36_0xf688ff(0x1a8)],ZIP_MESSAGE_HINTS=[a36_0xf688ff(0x1e8),a36_0xf688ff(0x1eb),a36_0xf688ff(0x1bc),a36_0xf688ff(0x1d1),a36_0xf688ff(0x1c7),'compressed/uncompressed\x20size',a36_0xf688ff(0x1c8)],AUTH_MESSAGE_HINTS=['unauthor','forbidden','access\x20denied',a36_0xf688ff(0x212),a36_0xf688ff(0x202),a36_0xf688ff(0x1e7),a36_0xf688ff(0x1f5)];class LoadError extends Error{constructor(_0x3b2286,_0x4fe6fb,_0x25d69f={}){const _0xbe5e86=a36_0xf688ff,_0x2cc914={'fbJBt':_0xbe5e86(0x1ae),'DXAUV':function(_0xc0e49d,_0x2cdd79){return _0xc0e49d!==_0x2cdd79;},'jIzWp':function(_0x49e5db,_0x2ab6a8,_0x2cfbdf){return _0x49e5db(_0x2ab6a8,_0x2cfbdf);},'dvOhK':function(_0x462efa,_0x26b605){return _0x462efa===_0x26b605;},'UElAC':function(_0x95a586,_0x1687f7){return _0x95a586||_0x1687f7;},'yKHoa':_0xbe5e86(0x193)},_0x2a402f=_0x2cc914['fbJBt'][_0xbe5e86(0x1e4)]('|');let _0xa57d29=0x0;while(!![]){switch(_0x2a402f[_0xa57d29++]){case'0':_0x2cc914['DXAUV'](_0x25d69f[_0xbe5e86(0x1b8)],undefined)&&(this['cause']=_0x25d69f[_0xbe5e86(0x1b8)]);continue;case'1':this[_0xbe5e86(0x1b6)]=_0x4fe6fb||_0x2cc914['jIzWp'](defaultMessageFor,this[_0xbe5e86(0x1f6)],_0x25d69f);continue;case'2':this[_0xbe5e86(0x191)]=_0x2cc914['dvOhK'](this[_0xbe5e86(0x1f6)],ERROR_CODES[_0xbe5e86(0x194)]);continue;case'3':this[_0xbe5e86(0x1f6)]=ERROR_CODES[_0x3b2286]?_0x3b2286:ERROR_CODES[_0xbe5e86(0x1c6)];continue;case'4':super(_0x2cc914[_0xbe5e86(0x206)](_0x4fe6fb,_0x3b2286));continue;case'5':_0x25d69f[_0xbe5e86(0x20a)]&&(this[_0xbe5e86(0x20a)]=_0x25d69f[_0xbe5e86(0x20a)]);continue;case'6':this[_0xbe5e86(0x1e1)]=_0x2cc914[_0xbe5e86(0x19b)];continue;}break;}}}function makeLoadError(_0x456e67,_0x2dbcf4={}){const _0x17f50c=a36_0xf688ff;return new LoadError(_0x456e67,_0x2dbcf4[_0x17f50c(0x1b6)],_0x2dbcf4);}function rawCauseString(_0x5debc9){const _0x4d3c61=a36_0xf688ff,_0x2eae28={'IsqCA':function(_0x2e9619,_0x13f704){return _0x2e9619===_0x13f704;},'YYqEA':function(_0x9b1dce,_0x5f2969){return _0x9b1dce===_0x5f2969;},'xGwBJ':function(_0x368b1b,_0x1278cc){return _0x368b1b===_0x1278cc;},'vLlKm':_0x4d3c61(0x1cd),'vpUok':function(_0x199a93,_0x7d07ac){return _0x199a93(_0x7d07ac);}};if(_0x2eae28[_0x4d3c61(0x199)](_0x5debc9,null)||_0x2eae28[_0x4d3c61(0x21c)](_0x5debc9,undefined))return'';if(_0x2eae28[_0x4d3c61(0x1db)](typeof _0x5debc9,_0x2eae28[_0x4d3c61(0x1f2)]))return _0x5debc9;if(_0x5debc9['userMessage']||_0x5debc9[_0x4d3c61(0x1b5)]||_0x5debc9['error']||_0x5debc9['reason'])return _0x5debc9['userMessage']||_0x5debc9[_0x4d3c61(0x1b5)]||_0x5debc9[_0x4d3c61(0x1f8)]||_0x5debc9['reason'];try{return JSON[_0x4d3c61(0x200)](_0x5debc9);}catch(_0x491d96){return _0x2eae28[_0x4d3c61(0x18d)](String,_0x5debc9);}}function defaultMessageFor(_0x4b1e3b,_0x5defbe={}){const _0x5f0742=a36_0xf688ff,_0x107912={};_0x107912[_0x5f0742(0x1cf)]=function(_0x349d6d,_0x3f2da8){return _0x349d6d+_0x3f2da8;},_0x107912['dLlFD']=_0x5f0742(0x1ca),_0x107912[_0x5f0742(0x1bd)]=_0x5f0742(0x19e),_0x107912[_0x5f0742(0x1ab)]=function(_0x5d0191,_0x2592ea){return _0x5d0191+_0x2592ea;},_0x107912['ZbLNB']=_0x5f0742(0x1e5),_0x107912[_0x5f0742(0x1e6)]='If\x20sdk-assets.browserstack.com\x20is\x20blocked\x20by\x20your\x20firewall,\x20allowlist\x20it.',_0x107912[_0x5f0742(0x1bf)]=function(_0x10f23a,_0x4a3f89){return _0x10f23a+_0x4a3f89;},_0x107912['uvzXP']=_0x5f0742(0x209),_0x107912[_0x5f0742(0x21f)]=_0x5f0742(0x1e9),_0x107912[_0x5f0742(0x197)]=function(_0x533083,_0x4416f8){return _0x533083+_0x4416f8;},_0x107912[_0x5f0742(0x1da)]=_0x5f0742(0x18e),_0x107912[_0x5f0742(0x19f)]='.\x20Please\x20retry;\x20if\x20this\x20persists,\x20contact\x20BrowserStack\x20support.',_0x107912[_0x5f0742(0x1ee)]=_0x5f0742(0x1fb),_0x107912[_0x5f0742(0x1f7)]=_0x5f0742(0x1b2),_0x107912[_0x5f0742(0x204)]=_0x5f0742(0x1ed),_0x107912[_0x5f0742(0x1fd)]=_0x5f0742(0x217),_0x107912[_0x5f0742(0x18f)]=_0x5f0742(0x1ba),_0x107912['aUXuS']='Could\x20not\x20read\x20your\x20Load\x20Testing\x20configuration.\x20Check\x20that\x20the\x20browserstack.yml\x20/\x20browserstack-load.yml\x20',_0x107912[_0x5f0742(0x1f0)]=_0x5f0742(0x21e),_0x107912[_0x5f0742(0x1a0)]=function(_0x14a625,_0x220dfe){return _0x14a625+_0x220dfe;},_0x107912['tOCEP']=function(_0xcb8851,_0x1a32cf){return _0xcb8851+_0x1a32cf;},_0x107912['MSFFU']=_0x5f0742(0x1d7),_0x107912[_0x5f0742(0x190)]=function(_0xe9baa6,_0x16337e){return _0xe9baa6+_0x16337e;},_0x107912[_0x5f0742(0x1a6)]='Your\x20Node.js\x20runtime\x20is\x20not\x20supported\x20by\x20BrowserStack\x20Load\x20Testing.\x20',_0x107912[_0x5f0742(0x1aa)]='Switch\x20to\x20a\x20supported\x20Node.js\x20version\x20and\x20re-run.\x20See\x20the\x20BrowserStack\x20Load\x20Testing\x20docs\x20for\x20the\x20supported\x20version\x20matrix.',_0x107912[_0x5f0742(0x1f4)]=_0x5f0742(0x1fa),_0x107912[_0x5f0742(0x20f)]='or\x20contact\x20BrowserStack\x20support\x20if\x20this\x20persists.';const _0x3ae2a2=_0x107912,_0x501309=_0x5defbe['statusCode']?_0x5f0742(0x221)+_0x5defbe[_0x5f0742(0x20a)]+')':'';switch(_0x4b1e3b){case ERROR_CODES['AUTH_INVALID']:return _0x3ae2a2[_0x5f0742(0x1cf)](_0x3ae2a2[_0x5f0742(0x1cf)](_0x3ae2a2['dLlFD'],_0x501309),_0x3ae2a2[_0x5f0742(0x1bd)]);case ERROR_CODES[_0x5f0742(0x1a4)]:return _0x3ae2a2[_0x5f0742(0x1ab)](_0x3ae2a2['ZbLNB'],_0x3ae2a2['WfOFK']);case ERROR_CODES['SSL']:return _0x3ae2a2['vVsaq'](_0x3ae2a2['uvzXP'],_0x3ae2a2[_0x5f0742(0x21f)]);case ERROR_CODES[_0x5f0742(0x198)]:return _0x3ae2a2[_0x5f0742(0x1ab)](_0x3ae2a2[_0x5f0742(0x197)](_0x3ae2a2[_0x5f0742(0x1da)],_0x501309),_0x3ae2a2[_0x5f0742(0x19f)]);case ERROR_CODES[_0x5f0742(0x21a)]:return _0x3ae2a2[_0x5f0742(0x197)](_0x3ae2a2['GEtDB'],_0x3ae2a2['IYzyh']);case ERROR_CODES['FS_PERMISSION']:return _0x3ae2a2[_0x5f0742(0x1bf)](_0x3ae2a2['RBOTK'],_0x3ae2a2[_0x5f0742(0x1fd)]);case ERROR_CODES[_0x5f0742(0x1d6)]:return _0x3ae2a2[_0x5f0742(0x18f)];case ERROR_CODES[_0x5f0742(0x1c2)]:return _0x3ae2a2[_0x5f0742(0x1bf)](_0x3ae2a2[_0x5f0742(0x1c9)],_0x3ae2a2[_0x5f0742(0x1f0)]);case ERROR_CODES[_0x5f0742(0x1d4)]:return _0x3ae2a2[_0x5f0742(0x1a0)](_0x3ae2a2[_0x5f0742(0x205)](_0x3ae2a2[_0x5f0742(0x203)],_0x501309),_0x3ae2a2[_0x5f0742(0x19f)]);case ERROR_CODES[_0x5f0742(0x1a7)]:return _0x3ae2a2[_0x5f0742(0x190)](_0x3ae2a2['BsRPk'],_0x3ae2a2[_0x5f0742(0x1aa)]);default:return _0x3ae2a2['WUlcA'](_0x3ae2a2['usobe'],_0x3ae2a2[_0x5f0742(0x20f)]);}}function a36_0x5bc1(_0x2ffe06,_0x25a5f3){const _0x541675=a36_0x5416();return a36_0x5bc1=function(_0x5bc1ce,_0x2b1125){_0x5bc1ce=_0x5bc1ce-0x18d;let _0x3c9214=_0x541675[_0x5bc1ce];return _0x3c9214;},a36_0x5bc1(_0x2ffe06,_0x25a5f3);}function classify(_0x34a560){const _0x430dea=a36_0xf688ff,_0x15cfc2={'ZfppW':function(_0x5a8298,_0x4d36d8){return _0x5a8298(_0x4d36d8);},'yRZeG':function(_0x210fa6,_0x11f055){return _0x210fa6===_0x11f055;},'NgNpq':_0x430dea(0x1cd),'wbcus':function(_0x10e09a,_0x15024b,_0x2d6a49){return _0x10e09a(_0x15024b,_0x2d6a49);},'mqEml':function(_0x42e624,_0x162e8f){return _0x42e624===_0x162e8f;},'IIzay':function(_0x1c0149,_0x133d03){return _0x1c0149(_0x133d03);},'bLKDZ':function(_0x41dd1e,_0x5725f6){return _0x41dd1e(_0x5725f6);},'TCDZZ':function(_0x100cff,_0x289725){return _0x100cff===_0x289725;},'LxWHB':function(_0x476ce2,_0x17ba22){return _0x476ce2===_0x17ba22;},'LXcFo':function(_0x131c22,_0x267bbf,_0x8d5c31){return _0x131c22(_0x267bbf,_0x8d5c31);},'EBzwh':_0x430dea(0x1cc),'mrmVu':function(_0x5e2a6f,_0x35f7ef){return _0x5e2a6f(_0x35f7ef);},'RhElK':function(_0x442771,_0x17249e){return _0x442771(_0x17249e);},'iOVBN':function(_0x30fed7,_0x31c6c5){return _0x30fed7(_0x31c6c5);},'OotMG':function(_0x399ee2,_0x3b31c3){return _0x399ee2>=_0x3b31c3;},'KFKdz':function(_0x326a56,_0x22f471){return _0x326a56>=_0x22f471;},'geeel':function(_0x3b47cf,_0x1f03bb,_0x4e7d53){return _0x3b47cf(_0x1f03bb,_0x4e7d53);},'coDKt':function(_0x175644,_0x18853e){return _0x175644(_0x18853e);}},_0x1b7fae=_0x15cfc2[_0x430dea(0x20b)](rawCauseString,_0x34a560);if(_0x34a560&&_0x15cfc2[_0x430dea(0x19d)](typeof _0x34a560[_0x430dea(0x1f6)],_0x15cfc2[_0x430dea(0x1ce)])&&ERROR_CODES[_0x34a560[_0x430dea(0x1f6)]]){const _0xd04ba5=_0x34a560[_0x430dea(0x1b6)]||_0x15cfc2[_0x430dea(0x1fe)](defaultMessageFor,_0x34a560[_0x430dea(0x1f6)],{'statusCode':_0x34a560[_0x430dea(0x20a)]});return{'code':_0x34a560[_0x430dea(0x1f6)],'userMessage':_0xd04ba5,'isAuth':_0x15cfc2[_0x430dea(0x19d)](_0x34a560[_0x430dea(0x1f6)],ERROR_CODES[_0x430dea(0x194)]),'cause':_0x1b7fae};}const _0x2fa833=_0x34a560&&_0x15cfc2[_0x430dea(0x19c)](typeof _0x34a560['code'],_0x15cfc2['NgNpq'])?_0x34a560['code']:'',_0x5b5975=_0x34a560&&(_0x34a560[_0x430dea(0x20a)]||_0x34a560[_0x430dea(0x214)]&&_0x34a560[_0x430dea(0x214)][_0x430dea(0x20a)])||undefined,_0x120728=_0x34a560&&(_0x34a560[_0x430dea(0x1b5)]||_0x34a560[_0x430dea(0x1f8)])?_0x15cfc2[_0x430dea(0x224)](String,_0x34a560[_0x430dea(0x1b5)]||_0x34a560[_0x430dea(0x1f8)])[_0x430dea(0x1c4)]():'',_0x854964=(_0x2a9f91,_0x58510d)=>({'code':_0x2a9f91,'userMessage':defaultMessageFor(_0x2a9f91,{'statusCode':_0x58510d}),'isAuth':_0x2a9f91===ERROR_CODES[_0x430dea(0x194)],'cause':_0x1b7fae});if(_0x2fa833&&SSL_ERROR_CODES[_0x430dea(0x196)](_0x2fa833)||SSL_MESSAGE_HINTS[_0x430dea(0x208)](_0x263517=>_0x120728[_0x430dea(0x196)](_0x263517)))return _0x15cfc2[_0x430dea(0x1ef)](_0x854964,ERROR_CODES[_0x430dea(0x1f1)]);if(_0x15cfc2[_0x430dea(0x1f9)](_0x5b5975,0x191)||_0x15cfc2[_0x430dea(0x1b4)](_0x5b5975,0x193))return _0x15cfc2[_0x430dea(0x1ac)](_0x854964,ERROR_CODES[_0x430dea(0x194)],_0x5b5975);if(_0x15cfc2['TCDZZ'](_0x2fa833,_0x15cfc2[_0x430dea(0x1b1)]))return _0x15cfc2[_0x430dea(0x20b)](_0x854964,ERROR_CODES[_0x430dea(0x1d6)]);if(_0x2fa833&&FS_PERMISSION_CODES[_0x430dea(0x196)](_0x2fa833))return _0x15cfc2[_0x430dea(0x1b7)](_0x854964,ERROR_CODES[_0x430dea(0x1a2)]);if(_0x2fa833&&NETWORK_ERROR_CODES[_0x430dea(0x196)](_0x2fa833))return _0x15cfc2[_0x430dea(0x1f3)](_0x854964,ERROR_CODES[_0x430dea(0x1a4)]);if(ZIP_MESSAGE_HINTS[_0x430dea(0x208)](_0x1e9c86=>_0x120728[_0x430dea(0x196)](_0x1e9c86)))return _0x15cfc2[_0x430dea(0x1c5)](_0x854964,ERROR_CODES['EXTRACT_CORRUPT']);if(_0x5b5975&&_0x15cfc2[_0x430dea(0x1a9)](_0x5b5975,0x1f4))return _0x15cfc2[_0x430dea(0x1ac)](_0x854964,ERROR_CODES[_0x430dea(0x1d4)],_0x5b5975);if(_0x5b5975&&_0x15cfc2[_0x430dea(0x1e0)](_0x5b5975,0x190))return _0x15cfc2['geeel'](_0x854964,ERROR_CODES[_0x430dea(0x198)],_0x5b5975);if(AUTH_MESSAGE_HINTS['some'](_0x349ac9=>_0x120728[_0x430dea(0x196)](_0x349ac9)))return _0x15cfc2[_0x430dea(0x224)](_0x854964,ERROR_CODES[_0x430dea(0x194)]);return _0x15cfc2[_0x430dea(0x1ad)](_0x854964,ERROR_CODES[_0x430dea(0x1c6)]);}const EXIT_CODE_MESSAGES={};function messageForExitCode(_0x424e35){const _0x5adacf=a36_0xf688ff,_0x3c0964={};_0x3c0964[_0x5adacf(0x219)]=function(_0x3b013e,_0x561bcb){return _0x3b013e+_0x561bcb;},_0x3c0964[_0x5adacf(0x216)]=_0x5adacf(0x20d);const _0x4b016b=_0x3c0964;if(Object[_0x5adacf(0x1dc)][_0x5adacf(0x223)]['call'](EXIT_CODE_MESSAGES,_0x424e35))return EXIT_CODE_MESSAGES[_0x424e35];return _0x4b016b[_0x5adacf(0x219)](_0x5adacf(0x1b0)+_0x424e35+_0x5adacf(0x222),_0x4b016b[_0x5adacf(0x216)]);}function runtimeNotSupportedMessage(_0x1169a4,_0x1c7213={}){const _0x4c02ae=a36_0xf688ff,_0x1bd160={};_0x1bd160[_0x4c02ae(0x21d)]=function(_0x340462,_0x9f3d84){return _0x340462&&_0x9f3d84;},_0x1bd160[_0x4c02ae(0x19a)]=function(_0x1e7c44,_0x4ed39b){return _0x1e7c44+_0x4ed39b;},_0x1bd160['kHEvV']=_0x4c02ae(0x1af);const _0x263d19=_0x1bd160,_0x925b2d=_0x1c7213['hardMinMajor'],_0x54bf1e=_0x1c7213[_0x4c02ae(0x1c1)],_0x2d8091=_0x263d19[_0x4c02ae(0x21d)](_0x925b2d,_0x54bf1e)?_0x4c02ae(0x213)+_0x925b2d+_0x4c02ae(0x225)+_0x54bf1e+')':'';return _0x263d19[_0x4c02ae(0x19a)](_0x4c02ae(0x201)+_0x1169a4+_0x4c02ae(0x21b)+_0x2d8091+'.\x20',_0x263d19['kHEvV']);}const a36_0x58e606={};a36_0x58e606[a36_0xf688ff(0x218)]=ERROR_CODES,a36_0x58e606[a36_0xf688ff(0x1c0)]=LT_EXIT_UNSUPPORTED_RUNTIME,a36_0x58e606[a36_0xf688ff(0x193)]=LoadError,a36_0x58e606[a36_0xf688ff(0x1dd)]=makeLoadError,a36_0x58e606[a36_0xf688ff(0x1ea)]=classify,a36_0x58e606['defaultMessageFor']=defaultMessageFor,a36_0x58e606['messageForExitCode']=messageForExitCode,a36_0x58e606[a36_0xf688ff(0x211)]=runtimeNotSupportedMessage,a36_0x58e606[a36_0xf688ff(0x1e2)]=EXIT_CODE_MESSAGES,module['exports']=a36_0x58e606;
|
|
1
|
+
'use strict';const a36_0x571046=a36_0x32ec;function a36_0x32ec(_0xfa3bea,_0x411496){const _0x521883=a36_0x5218();return a36_0x32ec=function(_0x32ec20,_0xc45f82){_0x32ec20=_0x32ec20-0x78;let _0x17de48=_0x521883[_0x32ec20];return _0x17de48;},a36_0x32ec(_0xfa3bea,_0x411496);}(function(_0x38f410,_0x4e42a5){const _0x39ef33=a36_0x32ec,_0x31a8a5=_0x38f410();while(!![]){try{const _0x37f57a=parseInt(_0x39ef33(0xd4))/0x1+-parseInt(_0x39ef33(0x8a))/0x2+parseInt(_0x39ef33(0xd9))/0x3*(-parseInt(_0x39ef33(0xc2))/0x4)+-parseInt(_0x39ef33(0xd2))/0x5+parseInt(_0x39ef33(0xc8))/0x6*(-parseInt(_0x39ef33(0x81))/0x7)+-parseInt(_0x39ef33(0xdb))/0x8+parseInt(_0x39ef33(0x9d))/0x9;if(_0x37f57a===_0x4e42a5)break;else _0x31a8a5['push'](_0x31a8a5['shift']());}catch(_0x31546a){_0x31a8a5['push'](_0x31a8a5['shift']());}}}(a36_0x5218,0xb6df3));function a36_0x5218(){const _0xec7ebe=['invalid\x20local\x20file\x20header','RWDoH','prototype','nlWzB','DISK_FULL','UNABLE_TO_GET_ISSUER_CERT_LOCALLY','LiBab','.\x20Please\x20retry;\x20if\x20this\x20persists,\x20contact\x20BrowserStack\x20support.','maxTestedMajor','Load\x20test\x20failed\x20(exit\x20code\x20','unauthor','some','invalid\x20signature','CAhSM','Permission\x20denied\x20while\x20writing\x20the\x20Load\x20Testing\x20CLI\x20binary.\x20Ensure\x20the\x20SDK\x20can\x20write\x20to\x20~/.browserstack\x20','\x20(HTTP\x20','NETWORK','VJqDn','EAI_AGAIN','CERT_HAS_EXPIRED','or\x20contact\x20BrowserStack\x20support\x20if\x20this\x20persists.','certificate\x20has\x20expired','self-signed\x20certificate','unable\x20to\x20get\x20local\x20issuer','Not\x20enough\x20disk\x20space\x20to\x20download\x20the\x20Load\x20Testing\x20CLI\x20binary.\x20Free\x20up\x20disk\x20space\x20and\x20retry.','statusCode','yMNNp','wrong\x20version\x20number','atRHr','ZyQme','oIZfN','fCNHc','40FeGldk','RohCB','vAIRx','sdgMQ','LoadError','userMessage','6lfduyy','call','invalid\x20access\x20key','UNABLE_TO_VERIFY_LEAF_SIGNATURE','EROFS','qEzkt','FS_PERMISSION','AUTH_INVALID','ENETUNREACH','LiYzh','2165570gbcNrN','stringify','1032454RZqQUR','isAuth','BNAUw','ssl\x20routines','PIQpW','260079SThFRk','lcuAU','6205168TnLxNN','UNKNOWN','SSL','VOhgh','not\x20a\x20valid\x20zip','XhONm','YVdnb',').\x20Re-run\x20with\x20DEBUG=true\x20for\x20details,\x20','DOWNLOAD_HTTP','VVBCi','hasOwnProperty','qWXzJ','mHNRt','XaZBN','file\x20exists\x20and\x20is\x20valid\x20YAML.','The\x20downloaded\x20Load\x20Testing\x20CLI\x20binary\x20could\x20not\x20be\x20extracted\x20(the\x20archive\x20appears\x20corrupt\x20or\x20incomplete).\x20','jOvPJ','makeLoadError','error','+,\x20validated\x20up\x20to\x20Node\x20','string','EHOSTUNREACH','spOgB','Failed\x20to\x20download\x20the\x20Load\x20Testing\x20CLI\x20binary','SSL/TLS\x20error\x20while\x20contacting\x20BrowserStack.\x20If\x20you\x20are\x20behind\x20an\x20SSL-inspecting\x20proxy,\x20set\x20','message','split','ndaRs','EyNME','exports','HROyC','RXTql','SWuRF','unable\x20to\x20verify','CUYDc','Switch\x20to\x20a\x20supported\x20Node.js\x20version\x20and\x20re-run,\x20or\x20set\x20BROWSERSTACK_SKIP_NODE_CHECK=true\x20to\x20bypass\x20this\x20check.','response','CONFIG_PARSE','kdopv','ERR_TLS_CERT_ALTNAME_INVALID','NAQlB','The\x20Load\x20Testing\x20CLI\x20could\x20not\x20be\x20started.\x20Re-run\x20with\x20DEBUG=true\x20for\x20details,\x20','Could\x20not\x20reach\x20BrowserStack\x20to\x20set\x20up\x20the\x20Load\x20Testing\x20CLI.\x20Check\x20your\x20network/proxy\x20connectivity\x20and\x20retry.\x20','UPDATE_CHECK_FAILED','cjMbI','FDOeE','AYXgV','uUrTG','DEPTH_ZERO_SELF_SIGNED_CERT','xGqAf','Switch\x20to\x20a\x20supported\x20Node.js\x20version\x20and\x20re-run.\x20See\x20the\x20BrowserStack\x20Load\x20Testing\x20docs\x20for\x20the\x20supported\x20version\x20matrix.','kYCnn','code','includes','HYnYs','QmMea','cause','CRnEz','toLowerCase','name','ERROR_CODES','EXTRACT_CORRUPT','LT_EXIT_UNSUPPORTED_RUNTIME','sNumN','6691559hCLdjs','reason','tls\x20handshake','3|2|4|0|6|5|1','Delete\x20the\x20cached\x20binary\x20under\x20~/.browserstack/cli\x20and\x20retry.','invalid\x20comment\x20length','VdRot','ECONNABORTED','LeCKE','1903550DFGhEZ','invalid\x20credential','LLwCq','Authentication\x20failed:\x20your\x20BrowserStack\x20username/access\x20key\x20was\x20rejected','EACCES','CERT_UNTRUSTED','jLOVG','ECONNRESET','(or\x20set\x20BROWSERSTACK_FILES_DIR\x20to\x20a\x20writable\x20directory)\x20and\x20retry.','srAoz','EPERM','EPIPE','authentication\x20failed','EXIT_CODE_MESSAGES','UNSUPPORTED_RUNTIME','Your\x20Node.js\x20runtime\x20is\x20not\x20supported\x20by\x20BrowserStack\x20Load\x20Testing.\x20','self\x20signed\x20certificate','hardMinMajor','yjiEo','33299919XVdtCq','vnfWN','compressed/uncompressed\x20size','mBuma','ssl\x20alert'];a36_0x5218=function(){return _0xec7ebe;};return a36_0x5218();}const a36_0x5c33ab={};a36_0x5c33ab[a36_0x571046(0xcf)]='AUTH_INVALID',a36_0x5c33ab['NETWORK']=a36_0x571046(0xb2),a36_0x5c33ab['SSL']=a36_0x571046(0xdd),a36_0x5c33ab[a36_0x571046(0xe3)]='DOWNLOAD_HTTP',a36_0x5c33ab['EXTRACT_CORRUPT']=a36_0x571046(0x7e),a36_0x5c33ab[a36_0x571046(0xce)]='FS_PERMISSION',a36_0x5c33ab[a36_0x571046(0xa6)]='DISK_FULL',a36_0x5c33ab[a36_0x571046(0x100)]=a36_0x571046(0x100),a36_0x5c33ab[a36_0x571046(0x106)]=a36_0x571046(0x106),a36_0x5c33ab['UNSUPPORTED_RUNTIME']=a36_0x571046(0x98),a36_0x5c33ab[a36_0x571046(0xdc)]='UNKNOWN';const ERROR_CODES=a36_0x5c33ab,LT_EXIT_UNSUPPORTED_RUNTIME=0x4e,NETWORK_ERROR_CODES=['ECONNREFUSED',a36_0x571046(0x91),'ENOTFOUND',a36_0x571046(0xb4),'ETIMEDOUT',a36_0x571046(0xd0),a36_0x571046(0xf0),a36_0x571046(0x95),a36_0x571046(0x88),'ESOCKETTIMEDOUT'],FS_PERMISSION_CODES=[a36_0x571046(0x8e),a36_0x571046(0x94),a36_0x571046(0xcc)],SSL_ERROR_CODES=[a36_0x571046(0xb5),a36_0x571046(0x10b),'SELF_SIGNED_CERT_IN_CHAIN',a36_0x571046(0xcb),a36_0x571046(0xa7),a36_0x571046(0x102),a36_0x571046(0x8f)],SSL_MESSAGE_HINTS=[a36_0x571046(0x9a),a36_0x571046(0xb8),a36_0x571046(0xfc),a36_0x571046(0xb9),a36_0x571046(0xb7),a36_0x571046(0xd7),a36_0x571046(0xa1),a36_0x571046(0x83),a36_0x571046(0xbd)],ZIP_MESSAGE_HINTS=['central\x20directory',a36_0x571046(0xdf),'end\x20of\x20central',a36_0x571046(0xae),a36_0x571046(0xa2),a36_0x571046(0x9f),a36_0x571046(0x86)],AUTH_MESSAGE_HINTS=[a36_0x571046(0xac),'forbidden','access\x20denied','invalid\x20username',a36_0x571046(0xca),a36_0x571046(0x96),a36_0x571046(0x8b)];class LoadError extends Error{constructor(_0x49e7f2,_0x3cbab6,_0x4cd7ca={}){const _0x43d79b=a36_0x571046,_0x48303b={'nlWzB':_0x43d79b(0x84),'oIZfN':function(_0x313431,_0xc0e905,_0x1fdfba){return _0x313431(_0xc0e905,_0x1fdfba);},'BNAUw':function(_0x21d42e,_0x5f1472){return _0x21d42e!==_0x5f1472;},'kdopv':'LoadError','SWuRF':function(_0x5ca976,_0x152327){return _0x5ca976||_0x152327;},'mBuma':function(_0x8c91c1,_0x48da7a){return _0x8c91c1===_0x48da7a;}},_0x538f15=_0x48303b[_0x43d79b(0xa5)][_0x43d79b(0xf5)]('|');let _0x109938=0x0;while(!![]){switch(_0x538f15[_0x109938++]){case'0':this['userMessage']=_0x3cbab6||_0x48303b[_0x43d79b(0xc0)](defaultMessageFor,this['code'],_0x4cd7ca);continue;case'1':_0x48303b[_0x43d79b(0xd6)](_0x4cd7ca[_0x43d79b(0x79)],undefined)&&(this[_0x43d79b(0x79)]=_0x4cd7ca[_0x43d79b(0x79)]);continue;case'2':this[_0x43d79b(0x7c)]=_0x48303b[_0x43d79b(0x101)];continue;case'3':super(_0x48303b[_0x43d79b(0xfb)](_0x3cbab6,_0x49e7f2));continue;case'4':this[_0x43d79b(0x10f)]=ERROR_CODES[_0x49e7f2]?_0x49e7f2:ERROR_CODES['UNKNOWN'];continue;case'5':_0x4cd7ca[_0x43d79b(0xbb)]&&(this['statusCode']=_0x4cd7ca['statusCode']);continue;case'6':this[_0x43d79b(0xd5)]=_0x48303b[_0x43d79b(0xa0)](this['code'],ERROR_CODES[_0x43d79b(0xcf)]);continue;}break;}}}function makeLoadError(_0x1927d6,_0x45b7d6={}){const _0x417806=a36_0x571046;return new LoadError(_0x1927d6,_0x45b7d6[_0x417806(0xc7)],_0x45b7d6);}function rawCauseString(_0x513fa7){const _0x20da8d=a36_0x571046,_0x7412ee={'mHNRt':function(_0x22b3ed,_0x2db5a8){return _0x22b3ed===_0x2db5a8;},'vnfWN':_0x20da8d(0xef),'atRHr':function(_0x337773,_0x2e6c89){return _0x337773(_0x2e6c89);}};if(_0x7412ee[_0x20da8d(0xe7)](_0x513fa7,null)||_0x7412ee['mHNRt'](_0x513fa7,undefined))return'';if(_0x7412ee[_0x20da8d(0xe7)](typeof _0x513fa7,_0x7412ee[_0x20da8d(0x9e)]))return _0x513fa7;if(_0x513fa7[_0x20da8d(0xc7)]||_0x513fa7['message']||_0x513fa7['error']||_0x513fa7['reason'])return _0x513fa7[_0x20da8d(0xc7)]||_0x513fa7[_0x20da8d(0xf4)]||_0x513fa7[_0x20da8d(0xed)]||_0x513fa7[_0x20da8d(0x82)];try{return JSON[_0x20da8d(0xd3)](_0x513fa7);}catch(_0x1da091){return _0x7412ee[_0x20da8d(0xbe)](String,_0x513fa7);}}function defaultMessageFor(_0x4ba7e3,_0x894b73={}){const _0x3c9cb8=a36_0x571046,_0x5de482={};_0x5de482[_0x3c9cb8(0xf6)]=function(_0x3e943d,_0x5771a7){return _0x3e943d+_0x5771a7;},_0x5de482[_0x3c9cb8(0xbf)]=function(_0x35ea81,_0x59494b){return _0x35ea81+_0x59494b;},_0x5de482[_0x3c9cb8(0xeb)]=_0x3c9cb8(0x8d),_0x5de482[_0x3c9cb8(0xc3)]='.\x20Check\x20BROWSERSTACK_USERNAME\x20/\x20BROWSERSTACK_ACCESS_KEY\x20(or\x20the\x20credentials\x20in\x20your\x20browserstack.yml)\x20and\x20try\x20again.',_0x5de482[_0x3c9cb8(0xfa)]=function(_0x2da90b,_0x181e1a){return _0x2da90b+_0x181e1a;},_0x5de482[_0x3c9cb8(0x108)]=_0x3c9cb8(0x105),_0x5de482['spOgB']='If\x20sdk-assets.browserstack.com\x20is\x20blocked\x20by\x20your\x20firewall,\x20allowlist\x20it.',_0x5de482['iNhuC']=function(_0x762052,_0x189326){return _0x762052+_0x189326;},_0x5de482[_0x3c9cb8(0x9c)]=_0x3c9cb8(0xf3),_0x5de482[_0x3c9cb8(0x111)]='NODE_EXTRA_CA_CERTS\x20(or\x20BROWSERSTACK_EXTRA_CA_CERTS)\x20to\x20your\x20corporate\x20CA\x20bundle\x20and\x20retry.',_0x5de482[_0x3c9cb8(0xe4)]=function(_0x4fadbe,_0x598346){return _0x4fadbe+_0x598346;},_0x5de482[_0x3c9cb8(0xcd)]=_0x3c9cb8(0xf2),_0x5de482['CUYDc']=_0x3c9cb8(0xa9),_0x5de482[_0x3c9cb8(0x80)]=function(_0x341fd0,_0x38b39e){return _0x341fd0+_0x38b39e;},_0x5de482[_0x3c9cb8(0xf7)]=_0x3c9cb8(0xea),_0x5de482['XhONm']=_0x3c9cb8(0x85),_0x5de482['CRnEz']=_0x3c9cb8(0xb0),_0x5de482[_0x3c9cb8(0xbc)]=_0x3c9cb8(0x92),_0x5de482[_0x3c9cb8(0xc1)]=_0x3c9cb8(0xba),_0x5de482[_0x3c9cb8(0xc4)]='Could\x20not\x20read\x20your\x20Load\x20Testing\x20configuration.\x20Check\x20that\x20the\x20browserstack.yml\x20/\x20browserstack-load.yml\x20',_0x5de482[_0x3c9cb8(0x90)]=_0x3c9cb8(0xe9),_0x5de482[_0x3c9cb8(0xa8)]=function(_0x52c0d8,_0x4782e7){return _0x52c0d8+_0x4782e7;},_0x5de482[_0x3c9cb8(0x107)]='BrowserStack\x20returned\x20an\x20error\x20while\x20checking\x20for\x20the\x20latest\x20Load\x20Testing\x20CLI',_0x5de482[_0x3c9cb8(0x78)]=function(_0x50026a,_0x116349){return _0x50026a+_0x116349;},_0x5de482[_0x3c9cb8(0x89)]=_0x3c9cb8(0x99),_0x5de482['Cbfco']=_0x3c9cb8(0x10d),_0x5de482[_0x3c9cb8(0x103)]=_0x3c9cb8(0x104),_0x5de482['sdgMQ']=_0x3c9cb8(0xb6);const _0x175059=_0x5de482,_0x22a750=_0x894b73[_0x3c9cb8(0xbb)]?_0x3c9cb8(0xb1)+_0x894b73[_0x3c9cb8(0xbb)]+')':'';switch(_0x4ba7e3){case ERROR_CODES[_0x3c9cb8(0xcf)]:return _0x175059['ndaRs'](_0x175059[_0x3c9cb8(0xbf)](_0x175059[_0x3c9cb8(0xeb)],_0x22a750),_0x175059[_0x3c9cb8(0xc3)]);case ERROR_CODES['NETWORK']:return _0x175059[_0x3c9cb8(0xfa)](_0x175059[_0x3c9cb8(0x108)],_0x175059[_0x3c9cb8(0xf1)]);case ERROR_CODES[_0x3c9cb8(0xdd)]:return _0x175059['iNhuC'](_0x175059[_0x3c9cb8(0x9c)],_0x175059['HYnYs']);case ERROR_CODES[_0x3c9cb8(0xe3)]:return _0x175059[_0x3c9cb8(0xfa)](_0x175059[_0x3c9cb8(0xe4)](_0x175059['qEzkt'],_0x22a750),_0x175059['CUYDc']);case ERROR_CODES[_0x3c9cb8(0x7e)]:return _0x175059[_0x3c9cb8(0x80)](_0x175059[_0x3c9cb8(0xf7)],_0x175059[_0x3c9cb8(0xe0)]);case ERROR_CODES['FS_PERMISSION']:return _0x175059[_0x3c9cb8(0xbf)](_0x175059[_0x3c9cb8(0x7a)],_0x175059['yMNNp']);case ERROR_CODES[_0x3c9cb8(0xa6)]:return _0x175059[_0x3c9cb8(0xc1)];case ERROR_CODES[_0x3c9cb8(0x100)]:return _0x175059['ndaRs'](_0x175059[_0x3c9cb8(0xc4)],_0x175059[_0x3c9cb8(0x90)]);case ERROR_CODES['UPDATE_CHECK_FAILED']:return _0x175059['LiBab'](_0x175059['ZyQme'](_0x175059[_0x3c9cb8(0x107)],_0x22a750),_0x175059[_0x3c9cb8(0xfd)]);case ERROR_CODES['UNSUPPORTED_RUNTIME']:return _0x175059[_0x3c9cb8(0x78)](_0x175059[_0x3c9cb8(0x89)],_0x175059['Cbfco']);default:return _0x175059['QmMea'](_0x175059[_0x3c9cb8(0x103)],_0x175059[_0x3c9cb8(0xc5)]);}}function classify(_0x1c4b2c){const _0x4c1bfb=a36_0x571046,_0x2785a5={'YVdnb':function(_0x32ba2b,_0x50136d){return _0x32ba2b(_0x50136d);},'srAoz':function(_0x16ab54,_0x489269){return _0x16ab54===_0x489269;},'AYXgV':_0x4c1bfb(0xef),'VOhgh':function(_0x2800f8,_0x2e6fa7,_0x48bcd5){return _0x2800f8(_0x2e6fa7,_0x48bcd5);},'XxIWP':function(_0x3b4990,_0x1e1aad){return _0x3b4990===_0x1e1aad;},'VJqDn':function(_0x152241,_0x449e3e){return _0x152241===_0x449e3e;},'qWXzJ':function(_0x1aac08,_0x25736a){return _0x1aac08(_0x25736a);},'LiYzh':function(_0x2ee3ef,_0x21ce9d){return _0x2ee3ef(_0x21ce9d);},'xeyKD':function(_0x47d007,_0x26ba54){return _0x47d007===_0x26ba54;},'jyiav':function(_0x37f524,_0x49564c){return _0x37f524===_0x49564c;},'ylQlD':function(_0x2d2d69,_0xa6cab7,_0x536115){return _0x2d2d69(_0xa6cab7,_0x536115);},'XaZBN':'ENOSPC','iqnfd':function(_0x327a1a,_0x3093fb){return _0x327a1a(_0x3093fb);},'uUrTG':function(_0xd95be1,_0x1c7ebc){return _0xd95be1(_0x1c7ebc);},'lcuAU':function(_0x39f84d,_0x5bf12c){return _0x39f84d>=_0x5bf12c;},'HROyC':function(_0x57d610,_0x1c4ddf,_0x134753){return _0x57d610(_0x1c4ddf,_0x134753);},'LLwCq':function(_0x13fb5f,_0x1d1b2c){return _0x13fb5f>=_0x1d1b2c;},'PIQpW':function(_0x3028ee,_0x5a82f1,_0x4006cd){return _0x3028ee(_0x5a82f1,_0x4006cd);}},_0x4a1bda=_0x2785a5[_0x4c1bfb(0xe1)](rawCauseString,_0x1c4b2c);if(_0x1c4b2c&&_0x2785a5[_0x4c1bfb(0x93)](typeof _0x1c4b2c[_0x4c1bfb(0x10f)],_0x2785a5[_0x4c1bfb(0x109)])&&ERROR_CODES[_0x1c4b2c[_0x4c1bfb(0x10f)]]){const _0x59cdf2=_0x1c4b2c[_0x4c1bfb(0xc7)]||_0x2785a5[_0x4c1bfb(0xde)](defaultMessageFor,_0x1c4b2c[_0x4c1bfb(0x10f)],{'statusCode':_0x1c4b2c[_0x4c1bfb(0xbb)]});return{'code':_0x1c4b2c['code'],'userMessage':_0x59cdf2,'isAuth':_0x2785a5['XxIWP'](_0x1c4b2c[_0x4c1bfb(0x10f)],ERROR_CODES[_0x4c1bfb(0xcf)]),'cause':_0x4a1bda};}const _0x560b99=_0x1c4b2c&&_0x2785a5[_0x4c1bfb(0xb3)](typeof _0x1c4b2c['code'],_0x2785a5[_0x4c1bfb(0x109)])?_0x1c4b2c[_0x4c1bfb(0x10f)]:'',_0x2b8fac=_0x1c4b2c&&(_0x1c4b2c[_0x4c1bfb(0xbb)]||_0x1c4b2c[_0x4c1bfb(0xff)]&&_0x1c4b2c[_0x4c1bfb(0xff)][_0x4c1bfb(0xbb)])||undefined,_0x1e265b=_0x1c4b2c&&(_0x1c4b2c[_0x4c1bfb(0xf4)]||_0x1c4b2c[_0x4c1bfb(0xed)])?_0x2785a5[_0x4c1bfb(0xe6)](String,_0x1c4b2c[_0x4c1bfb(0xf4)]||_0x1c4b2c[_0x4c1bfb(0xed)])[_0x4c1bfb(0x7b)]():'',_0x1146af=(_0x5edc4b,_0x43ff87)=>({'code':_0x5edc4b,'userMessage':defaultMessageFor(_0x5edc4b,{'statusCode':_0x43ff87}),'isAuth':_0x5edc4b===ERROR_CODES['AUTH_INVALID'],'cause':_0x4a1bda});if(_0x560b99&&SSL_ERROR_CODES[_0x4c1bfb(0x110)](_0x560b99)||SSL_MESSAGE_HINTS['some'](_0x1a40f8=>_0x1e265b[_0x4c1bfb(0x110)](_0x1a40f8)))return _0x2785a5[_0x4c1bfb(0xd1)](_0x1146af,ERROR_CODES[_0x4c1bfb(0xdd)]);if(_0x2785a5['xeyKD'](_0x2b8fac,0x191)||_0x2785a5['jyiav'](_0x2b8fac,0x193))return _0x2785a5['ylQlD'](_0x1146af,ERROR_CODES[_0x4c1bfb(0xcf)],_0x2b8fac);if(_0x2785a5[_0x4c1bfb(0x93)](_0x560b99,_0x2785a5[_0x4c1bfb(0xe8)]))return _0x2785a5[_0x4c1bfb(0xe1)](_0x1146af,ERROR_CODES[_0x4c1bfb(0xa6)]);if(_0x560b99&&FS_PERMISSION_CODES[_0x4c1bfb(0x110)](_0x560b99))return _0x2785a5[_0x4c1bfb(0xd1)](_0x1146af,ERROR_CODES[_0x4c1bfb(0xce)]);if(_0x560b99&&NETWORK_ERROR_CODES[_0x4c1bfb(0x110)](_0x560b99))return _0x2785a5['iqnfd'](_0x1146af,ERROR_CODES[_0x4c1bfb(0xb2)]);if(ZIP_MESSAGE_HINTS[_0x4c1bfb(0xad)](_0x576bd0=>_0x1e265b['includes'](_0x576bd0)))return _0x2785a5[_0x4c1bfb(0x10a)](_0x1146af,ERROR_CODES[_0x4c1bfb(0x7e)]);if(_0x2b8fac&&_0x2785a5[_0x4c1bfb(0xda)](_0x2b8fac,0x1f4))return _0x2785a5[_0x4c1bfb(0xf9)](_0x1146af,ERROR_CODES['UPDATE_CHECK_FAILED'],_0x2b8fac);if(_0x2b8fac&&_0x2785a5[_0x4c1bfb(0x8c)](_0x2b8fac,0x190))return _0x2785a5[_0x4c1bfb(0xd8)](_0x1146af,ERROR_CODES['DOWNLOAD_HTTP'],_0x2b8fac);if(AUTH_MESSAGE_HINTS[_0x4c1bfb(0xad)](_0x282ba5=>_0x1e265b[_0x4c1bfb(0x110)](_0x282ba5)))return _0x2785a5['qWXzJ'](_0x1146af,ERROR_CODES[_0x4c1bfb(0xcf)]);return _0x2785a5['uUrTG'](_0x1146af,ERROR_CODES[_0x4c1bfb(0xdc)]);}const EXIT_CODE_MESSAGES={};function messageForExitCode(_0x441084){const _0x5e6635=a36_0x571046,_0x238ae3={};_0x238ae3[_0x5e6635(0x10c)]=function(_0x4f98d1,_0x400d16){return _0x4f98d1+_0x400d16;},_0x238ae3[_0x5e6635(0x87)]=_0x5e6635(0xb6);const _0x43acef=_0x238ae3;if(Object[_0x5e6635(0xa4)][_0x5e6635(0xe5)][_0x5e6635(0xc9)](EXIT_CODE_MESSAGES,_0x441084))return EXIT_CODE_MESSAGES[_0x441084];return _0x43acef[_0x5e6635(0x10c)](_0x5e6635(0xab)+_0x441084+_0x5e6635(0xe2),_0x43acef[_0x5e6635(0x87)]);}function runtimeNotSupportedMessage(_0x32aea6,_0x5ddd51={}){const _0x37a295=a36_0x571046,_0x5d3f03={};_0x5d3f03[_0x37a295(0x10e)]=function(_0x20cf36,_0x340c88){return _0x20cf36&&_0x340c88;},_0x5d3f03['CAhSM']=function(_0xd0a6a,_0x140af8){return _0xd0a6a+_0x140af8;},_0x5d3f03[_0x37a295(0xa3)]=_0x37a295(0xfe);const _0x35a0c8=_0x5d3f03,_0x50a044=_0x5ddd51[_0x37a295(0x9b)],_0x5932f1=_0x5ddd51[_0x37a295(0xaa)],_0x47f2cb=_0x35a0c8[_0x37a295(0x10e)](_0x50a044,_0x5932f1)?'\x20(supported:\x20Node\x20'+_0x50a044+_0x37a295(0xee)+_0x5932f1+')':'';return _0x35a0c8[_0x37a295(0xaf)]('Node.js\x20v'+_0x32aea6+'\x20is\x20not\x20supported\x20by\x20BrowserStack\x20Load\x20Testing'+_0x47f2cb+'.\x20',_0x35a0c8[_0x37a295(0xa3)]);}const a36_0x112096={};a36_0x112096[a36_0x571046(0x7d)]=ERROR_CODES,a36_0x112096[a36_0x571046(0x7f)]=LT_EXIT_UNSUPPORTED_RUNTIME,a36_0x112096[a36_0x571046(0xc6)]=LoadError,a36_0x112096[a36_0x571046(0xec)]=makeLoadError,a36_0x112096['classify']=classify,a36_0x112096['defaultMessageFor']=defaultMessageFor,a36_0x112096['messageForExitCode']=messageForExitCode,a36_0x112096['runtimeNotSupportedMessage']=runtimeNotSupportedMessage,a36_0x112096[a36_0x571046(0x97)]=EXIT_CODE_MESSAGES,module[a36_0x571046(0xf8)]=a36_0x112096;
|