browserstack-node-sdk 1.58.0 → 1.59.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/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/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/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/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/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/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/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
package/src/bin/v2/cliUtils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a84_0x530dc9=a84_0x4f7e;(function(_0x568a78,_0x24f952){const _0x150558=a84_0x4f7e,_0x444f9e=_0x568a78();while(!![]){try{const _0x45de6c=-parseInt(_0x150558(0x24b))/0x1+-parseInt(_0x150558(0x243))/0x2+-parseInt(_0x150558(0x289))/0x3*(parseInt(_0x150558(0x250))/0x4)+parseInt(_0x150558(0x217))/0x5*(parseInt(_0x150558(0x20a))/0x6)+-parseInt(_0x150558(0x267))/0x7*(parseInt(_0x150558(0x1b6))/0x8)+-parseInt(_0x150558(0x247))/0x9*(-parseInt(_0x150558(0x25b))/0xa)+-parseInt(_0x150558(0x23f))/0xb*(-parseInt(_0x150558(0x1fe))/0xc);if(_0x45de6c===_0x24f952)break;else _0x444f9e['push'](_0x444f9e['shift']());}catch(_0x5f2d64){_0x444f9e['push'](_0x444f9e['shift']());}}}(a84_0x2a8d,0x67058));const fs=require('fs'),os=require('os'),url=require(a84_0x530dc9(0x221)),path=require(a84_0x530dc9(0x25e)),{exec}=require('child_process'),{https}=require(a84_0x530dc9(0x266)),yauzl=require(a84_0x530dc9(0x287)),util=require(a84_0x530dc9(0x277)),{getFrameworkVersion}=require(a84_0x530dc9(0x1cc)),{threadId}=require(a84_0x530dc9(0x239)),PerformanceTester=require(a84_0x530dc9(0x1cb)),{EVENTS:PerformanceEvents}=require('../../helpers/performance/constants'),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a84_0x530dc9(0x251)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a84_0x530dc9(0x203)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require('../utils/constants'),{createClassLogger}=require(a84_0x530dc9(0x226)),TestFrameworkInstance=require(a84_0x530dc9(0x273)),HookState=require(a84_0x530dc9(0x22c)),TestFrameworkState=require(a84_0x530dc9(0x1f4)),AutomationFrameworkState=require('./state/automationFrameworkState.js'),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants.js'),logger=createClassLogger(a84_0x530dc9(0x26b)),{getBStackAPIUrl}=require(a84_0x530dc9(0x215));class CLIUtils{['automationFrameworkDetail']={};['testFrameworkDetail']={};static[a84_0x530dc9(0x23d)](){const _0x2e241c=a84_0x530dc9,_0x8a5a14={};_0x8a5a14[_0x2e241c(0x1fb)]=function(_0x430e09,_0x4bfbd7){return _0x430e09===_0x4bfbd7;},_0x8a5a14['ytpGP']=_0x2e241c(0x23c);const _0x2cccf8=_0x8a5a14;return _0x2cccf8['sMpBi'](process[_0x2e241c(0x27d)][_0x2e241c(0x1f9)],_0x2cccf8['ytpGP']);}static['getCLIParamsForDevEnv'](){const _0x7ff3b0=a84_0x530dc9,_0x40f89b={};return _0x40f89b['id']=process[_0x7ff3b0(0x27d)][_0x7ff3b0(0x1f9)],_0x40f89b[_0x7ff3b0(0x201)]=_0x7ff3b0(0x262)+process[_0x7ff3b0(0x27d)]['BROWSERSTACK_CLI_ENV']+_0x7ff3b0(0x220),_0x40f89b;}static[a84_0x530dc9(0x1e4)](){const _0x19b39d=a84_0x530dc9,_0x376339={'zBlDc':function(_0x4b3723,_0x2ee0bf){return _0x4b3723(_0x2ee0bf);},'WAXgH':_0x19b39d(0x1e9)};return _0x376339[_0x19b39d(0x237)](require,_0x376339[_0x19b39d(0x1ce)])['version'];}static['getSdkLanguage'](){const _0xadcc25=a84_0x530dc9,_0xcacd3f={};_0xcacd3f['KuHIA']=_0xadcc25(0x27b);const _0x168c41=_0xcacd3f;return _0x168c41['KuHIA'];}static async['setupCliPath'](_0x48c3d4){const _0xf44fa6=a84_0x530dc9,_0x5550f5={'EWNlp':_0xf44fa6(0x1dd),'lBLtC':function(_0x171d10,_0x2fe91d){return _0x171d10(_0x2fe91d);},'DVhki':function(_0xd0200a,_0x4e1e52){return _0xd0200a(_0x4e1e52);},'ugVkV':_0xf44fa6(0x1c6)};logger[_0xf44fa6(0x20b)](_0x5550f5[_0xf44fa6(0x271)]);const _0x5e66fc=process[_0xf44fa6(0x27d)][_0xf44fa6(0x207)];if(!_0x5550f5[_0xf44fa6(0x1f1)](isNullOrEmpty,_0x5e66fc))return logger['debug']('Development\x20Cli\x20Path:\x20'+_0x5e66fc),_0x5e66fc;try{const _0x6b1570=this['getCliDir']();if(_0x5550f5[_0xf44fa6(0x26e)](isNullOrEmpty,_0x6b1570))throw new Error(_0x5550f5['ugVkV']);const _0x592e0e=this[_0xf44fa6(0x265)](_0x6b1570),_0x5ebe54=await this[_0xf44fa6(0x1c4)](_0x592e0e,_0x6b1570,_0x48c3d4);return logger[_0xf44fa6(0x20b)](_0xf44fa6(0x246)+_0x5ebe54),_0x5ebe54;}catch(_0x18d6a5){logger[_0xf44fa6(0x20b)](_0xf44fa6(0x258)+util[_0xf44fa6(0x279)](_0x18d6a5));}return null;}static async['checkAndUpdateCli'](_0x3db83c,_0x2e03a5,_0x2bd6c8){const _0xf6fa4b=a84_0x530dc9,_0x12b015={'zsveF':function(_0x317a7c){return _0x317a7c();},'fgMXH':function(_0x404d8e,_0x584567){return _0x404d8e(_0x584567);},'HghdQ':function(_0x41f1a1,_0x72ab0b,_0x58fed0){return _0x41f1a1(_0x72ab0b,_0x58fed0);},'oImmX':_0xf6fa4b(0x252),'sjQBh':'url'};PerformanceTester['start'](PerformanceEvents[_0xf6fa4b(0x242)]),logger['info']('Current\x20CLI\x20Path\x20Found:\x20'+_0x3db83c);const _0x46bc89=_0x12b015[_0xf6fa4b(0x28e)](getHostInfo),_0x327abf={'sdk_version':CLIUtils[_0xf6fa4b(0x1e4)](),'os':_0x46bc89['platform'],'os_arch':_0x46bc89[_0xf6fa4b(0x23e)],'cli_version':'0','sdk_language':this[_0xf6fa4b(0x229)]()};!_0x12b015[_0xf6fa4b(0x228)](isNullOrEmpty,_0x3db83c)&&(_0x327abf['cli_version']=await this[_0xf6fa4b(0x1e0)](_0x3db83c+_0xf6fa4b(0x212)));const _0x38c8dc=await this['requestToUpdateCLI'](_0x327abf,_0x2bd6c8);process['env'][_0xf6fa4b(0x1bc)]&&(logger[_0xf6fa4b(0x248)](_0xf6fa4b(0x284)+process[_0xf6fa4b(0x27d)][_0xf6fa4b(0x1bc)]),_0x38c8dc[_0xf6fa4b(0x252)][_0xf6fa4b(0x221)]=process[_0xf6fa4b(0x27d)][_0xf6fa4b(0x1bc)]);if(_0x12b015[_0xf6fa4b(0x26c)](nestedKeyValue,_0x38c8dc,[_0x12b015[_0xf6fa4b(0x1f0)],_0x12b015[_0xf6fa4b(0x1f5)]])){logger['debug'](_0xf6fa4b(0x1ba)+_0x327abf[_0xf6fa4b(0x20f)]);if(!_0x12b015[_0xf6fa4b(0x228)](isNullOrEmpty,_0x3db83c)&&this[_0xf6fa4b(0x20c)](_0x3db83c))return logger['warn'](_0xf6fa4b(0x224)+_0x3db83c),PerformanceTester[_0xf6fa4b(0x1e5)](PerformanceEvents[_0xf6fa4b(0x242)]),_0x3db83c;const _0x4edbcb=await this[_0xf6fa4b(0x24c)](_0x12b015['HghdQ'](nestedKeyValue,_0x38c8dc,[_0x12b015[_0xf6fa4b(0x1f0)],_0x12b015['sjQBh']]),_0x2e03a5);return PerformanceTester[_0xf6fa4b(0x1e5)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x4edbcb;}return PerformanceTester[_0xf6fa4b(0x1e5)](PerformanceEvents[_0xf6fa4b(0x242)]),_0x3db83c;}static[a84_0x530dc9(0x1e1)](){const _0x1504f1=a84_0x530dc9,_0x1b958a={'ExHQV':function(_0xf9c6,_0x4d1b94){return _0xf9c6(_0x4d1b94);},'vfEIq':_0x1504f1(0x1c6),'ZogrB':'cli','YGEDP':function(_0x2f2bca,_0x5c9836){return _0x2f2bca(_0x5c9836);}},_0x47a334=this[_0x1504f1(0x28c)]();try{if(_0x1b958a['ExHQV'](isNullOrEmpty,_0x47a334))throw new Error(_0x1b958a[_0x1504f1(0x1b4)]);const _0xa222e6=path[_0x1504f1(0x28f)](_0x47a334,_0x1b958a['ZogrB']);return!fs[_0x1504f1(0x28d)](_0xa222e6)&&_0x1b958a['YGEDP'](createDir,_0xa222e6),_0xa222e6;}catch(_0x19a8d1){logger[_0x1504f1(0x20b)](_0x1504f1(0x1d5)+util[_0x1504f1(0x279)](_0x19a8d1));}}static[a84_0x530dc9(0x28c)](){const _0x19f3bf=a84_0x530dc9,_0x9b1b3d={'BuvBX':_0x19f3bf(0x270),'UHuEt':function(_0x361d99,_0x149253){return _0x361d99(_0x149253);},'ukFyu':function(_0x263a9a,_0x3a31a8){return _0x263a9a(_0x3a31a8);}},_0x2b4e69=[process['env'][_0x19f3bf(0x256)],path[_0x19f3bf(0x28f)](os[_0x19f3bf(0x253)](),_0x9b1b3d['BuvBX']),path[_0x19f3bf(0x28f)](os['tmpdir'](),_0x9b1b3d['BuvBX'])];for(const _0x176678 of _0x2b4e69){if(_0x9b1b3d['UHuEt'](isNullOrEmpty,_0x176678))continue;try{if(fs[_0x19f3bf(0x28d)](_0x176678)){logger[_0x19f3bf(0x20b)](_0x19f3bf(0x282)+_0x176678+_0x19f3bf(0x1ea));if(!_0x9b1b3d[_0x19f3bf(0x211)](isModifiable,_0x176678)){logger['debug'](_0x19f3bf(0x269)+_0x176678);const _0xb482a6=_0x9b1b3d[_0x19f3bf(0x211)](setReadWriteExecuteAccess,_0x176678);if(!_0x9b1b3d[_0x19f3bf(0x211)](isTrue,_0xb482a6)){logger[_0x19f3bf(0x278)]('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x176678);continue;}}}else{logger[_0x19f3bf(0x20b)](_0x19f3bf(0x1f7)+_0x176678),_0x9b1b3d[_0x19f3bf(0x231)](createDir,_0x176678),logger['debug'](_0x19f3bf(0x269)+_0x176678);const _0x501e3c=_0x9b1b3d[_0x19f3bf(0x231)](setReadWriteExecuteAccess,_0x176678);!_0x9b1b3d[_0x19f3bf(0x211)](isTrue,_0x501e3c)&&logger[_0x19f3bf(0x278)](_0x19f3bf(0x1c2)+_0x176678);}return _0x176678;}catch(_0x2dff16){logger[_0x19f3bf(0x235)](_0x19f3bf(0x227)+util[_0x19f3bf(0x279)](_0x2dff16));}}return null;}static[a84_0x530dc9(0x265)](_0x2e8d53){const _0x58f9c8=a84_0x530dc9,_0x511c58={};_0x511c58[_0x58f9c8(0x1af)]=function(_0x52284a,_0x14eaf0){return _0x52284a>_0x14eaf0;};const _0x362855=_0x511c58;try{if(!fs[_0x58f9c8(0x28d)](_0x2e8d53)||!fs[_0x58f9c8(0x20e)](_0x2e8d53)['isDirectory']())return'';const _0x1bce2=fs[_0x58f9c8(0x1d0)](_0x2e8d53)['map'](_0x5d0fe5=>path[_0x58f9c8(0x28f)](_0x2e8d53,_0x5d0fe5))[_0x58f9c8(0x280)](_0x1c46ed=>fs[_0x58f9c8(0x20e)](_0x1c46ed)[_0x58f9c8(0x1ec)]()&&path['basename'](_0x1c46ed)['startsWith'](_0x58f9c8(0x1f6)));if(_0x362855[_0x58f9c8(0x1af)](_0x1bce2['length'],0x0)){const _0x6dd9b5=_0x1bce2['map'](_0x33afb=>({'filePath':_0x33afb,'mtime':fs['statSync'](_0x33afb)['mtime']}))[_0x58f9c8(0x1bb)]((_0x2c7202,_0x5745d1)=>{const _0x5a5b97=_0x58f9c8;if(!_0x2c7202||!_0x2c7202[_0x5a5b97(0x1d9)])return _0x5745d1;if(_0x362855['fTCuQ'](_0x5745d1[_0x5a5b97(0x1d9)],_0x2c7202[_0x5a5b97(0x1d9)]))return _0x5745d1;return _0x2c7202;},{});return _0x6dd9b5?_0x6dd9b5['filePath']:'';}return'';}catch(_0x5eb23e){return logger[_0x58f9c8(0x235)](_0x58f9c8(0x268)+util['format'](_0x5eb23e)),'';}}static [a84_0x530dc9(0x1ff)]=async(_0x5b327e,_0x361204)=>{const _0x3ce1ed=a84_0x530dc9,_0x404403={'wjpEa':function(_0x4eebb2,_0x2e76c2,_0x1d85fe,_0x1876ce,_0x10c170){return _0x4eebb2(_0x2e76c2,_0x1d85fe,_0x1876ce,_0x10c170);},'ejrVK':_0x3ce1ed(0x1c5)},_0x1ce548={};_0x1ce548['qs']=_0x5b327e;const _0x4dbadc=await _0x404403['wjpEa'](nodeRequest,_0x404403[_0x3ce1ed(0x218)],UPDATED_CLI_ENDPOINT,_0x1ce548,_0x361204);return logger[_0x3ce1ed(0x20b)](_0x3ce1ed(0x1b5)+JSON[_0x3ce1ed(0x286)](_0x4dbadc)),_0x4dbadc;};static[a84_0x530dc9(0x20c)](_0x157ac5){const _0x1f28ce=a84_0x530dc9;try{const _0x5c4a7c=fs[_0x1f28ce(0x1c7)](_0x157ac5,'r+');return fs[_0x1f28ce(0x1c3)](_0x5c4a7c),![];}catch(_0x2398d5){if(BINARY_BUSY_ERROR_CODES['includes'](_0x2398d5['code']))return logger[_0x1f28ce(0x20b)]('Binary\x20is\x20busy:\x20'+_0x157ac5),!![];return logger['debug'](_0x1f28ce(0x264)+_0x2398d5[_0x1f28ce(0x249)]),![];}}static['runShellCommand'](_0x226be3,_0x1838d3=''){const _0x509223=a84_0x530dc9,_0x1d176f={'upQom':function(_0x5a392f,_0x13cb2c){return _0x5a392f(_0x13cb2c);},'bDxyU':_0x509223(0x22d),'KFLJq':_0x509223(0x1d1),'hrxlV':function(_0x47ac94,_0x325e04){return _0x47ac94(_0x325e04);},'eWVFW':function(_0x25c0aa,_0x52637d,_0x2b90ba,_0x195e87){return _0x25c0aa(_0x52637d,_0x2b90ba,_0x195e87);},'uKqoi':'error'};return new Promise((_0x1c54da,_0x4101d8)=>{const _0x2fd112=_0x509223,_0x731d4f={'bRzhF':_0x1d176f[_0x2fd112(0x1c0)],'hOaKN':function(_0x4c90b8,_0x552d10){return _0x1d176f['hrxlV'](_0x4c90b8,_0x552d10);},'tVljR':function(_0x4e707e,_0xce0f45){const _0x1d05e2=_0x2fd112;return _0x1d176f[_0x1d05e2(0x234)](_0x4e707e,_0xce0f45);},'Xzeii':_0x1d176f['bDxyU']},_0x1e02bd={};_0x1e02bd[_0x2fd112(0x288)]=_0x1838d3,_0x1e02bd[_0x2fd112(0x1e7)]=0x1388;const _0x422b49=_0x1d176f[_0x2fd112(0x254)](exec,_0x226be3,_0x1e02bd,(_0x40bf4c,_0x1381a2,_0x20f87f)=>{const _0xe7d3e3=_0x2fd112;if(_0x40bf4c){if(_0x226be3[_0xe7d3e3(0x21a)](_0x731d4f[_0xe7d3e3(0x1b9)])&&(_0x1381a2[_0xe7d3e3(0x25f)]()||_0x20f87f[_0xe7d3e3(0x25f)]())){const _0x58f63f=_0x1381a2[_0xe7d3e3(0x25f)]()||_0x20f87f[_0xe7d3e3(0x25f)]();logger[_0xe7d3e3(0x20b)]('CLI\x20version\x20found\x20despite\x20error:\x20\x22'+_0x58f63f+'\x22'),_0x731d4f[_0xe7d3e3(0x21e)](_0x1c54da,_0x58f63f);}else _0x731d4f[_0xe7d3e3(0x22e)](_0x1c54da,_0x20f87f[_0xe7d3e3(0x25f)]()||_0x731d4f[_0xe7d3e3(0x245)]);}else logger['debug'](_0xe7d3e3(0x272)+_0x1381a2[_0xe7d3e3(0x25f)]()+'\x22'),_0x731d4f[_0xe7d3e3(0x21e)](_0x1c54da,_0x1381a2[_0xe7d3e3(0x25f)]());});_0x422b49['on'](_0x1d176f[_0x2fd112(0x281)],()=>{const _0x2090d7=_0x2fd112;_0x1d176f[_0x2090d7(0x22a)](_0x1c54da,_0x1d176f[_0x2090d7(0x219)]);});});}static [a84_0x530dc9(0x24c)]=async(_0x3bcb84,_0x96c9a1)=>{const _0x4cf92c=a84_0x530dc9,_0x5cc277={'yZtCl':function(_0x5dfbe1,_0x1f9d4c){return _0x5dfbe1(_0x1f9d4c);},'oLnee':_0x4cf92c(0x238),'VWHZf':function(_0x317bcc,_0x40e19b){return _0x317bcc(_0x40e19b);},'NbNIt':'Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','WHdue':function(_0x1841a3,_0x1fb72f){return _0x1841a3(_0x1fb72f);},'JYSWR':_0x4cf92c(0x235)};PerformanceTester[_0x4cf92c(0x222)](PerformanceEvents[_0x4cf92c(0x22b)]),logger['debug'](_0x4cf92c(0x1e2)+_0x3bcb84);try{const _0x1b534f=url[_0x4cf92c(0x1d8)](_0x3bcb84),_0x45eece=path[_0x4cf92c(0x28f)](_0x96c9a1,_0x4cf92c(0x1b2)+process['pid']+_0x4cf92c(0x24f)),_0x3483e9=fs['createWriteStream'](_0x45eece);return new Promise((_0x4aa750,_0x56431c)=>{const _0x25b3d8=_0x4cf92c,_0x3d74a9={'nlaSH':_0x5cc277[_0x25b3d8(0x1fd)],'VesNM':function(_0x3f8f50,_0x48e5d5){return _0x5cc277['VWHZf'](_0x3f8f50,_0x48e5d5);},'MvGjR':_0x5cc277['NbNIt'],'nPuHj':function(_0x83684b,_0x2a7e5b){const _0x4f7b3c=_0x25b3d8;return _0x5cc277[_0x4f7b3c(0x27c)](_0x83684b,_0x2a7e5b);},'LQqnH':function(_0xf9221f,_0x1e1a24){const _0x564ae4=_0x25b3d8;return _0x5cc277[_0x564ae4(0x27c)](_0xf9221f,_0x1e1a24);},'rvQez':function(_0xd2dc9c,_0x51de3d){return _0x5cc277['WHdue'](_0xd2dc9c,_0x51de3d);},'wODDG':_0x5cc277['JYSWR']};https[_0x25b3d8(0x24a)](_0x1b534f,function(_0x199a7b){const _0x354270=_0x25b3d8,_0x3b6423={'UOZKq':function(_0x46de42,_0x2d0cf7){const _0xfc41ba=a84_0x4f7e;return _0x3d74a9[_0xfc41ba(0x232)](_0x46de42,_0x2d0cf7);}},_0x2e4732=null;_0x199a7b[_0x354270(0x274)](_0x3483e9),_0x199a7b['on'](_0x3d74a9['wODDG'],function(_0x542c7f){const _0xb4c7f5=_0x354270;logger[_0xb4c7f5(0x235)](util[_0xb4c7f5(0x279)](_0x3d74a9[_0xb4c7f5(0x1da)],_0x542c7f)),PerformanceTester['end'](PerformanceEvents[_0xb4c7f5(0x22b)],![],util['format'](_0x542c7f)),_0x3d74a9[_0xb4c7f5(0x25a)](_0x56431c,_0x542c7f);}),_0x3483e9['on'](_0x3d74a9[_0x354270(0x1be)],function(_0x107c16){const _0x1665fa=_0x354270;logger[_0x1665fa(0x235)](util[_0x1665fa(0x279)](_0x3d74a9[_0x1665fa(0x283)],_0x107c16)),PerformanceTester[_0x1665fa(0x1e5)](PerformanceEvents[_0x1665fa(0x22b)],![],util[_0x1665fa(0x279)](_0x107c16)),_0x3d74a9['nPuHj'](_0x56431c,_0x107c16);}),CLIUtils['downloadFileStream'](_0x3483e9,_0x2e4732,_0x45eece,_0x96c9a1,_0x25141b=>{const _0x5bfa35=_0x354270;PerformanceTester[_0x5bfa35(0x1e5)](PerformanceEvents['SDK_CLI_DOWNLOAD']),_0x3b6423[_0x5bfa35(0x1c1)](_0x4aa750,_0x25141b);},_0x340db9=>{const _0x20f612=_0x354270;PerformanceTester['end'](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x20f612(0x279)](_0x340db9)),_0x3d74a9[_0x20f612(0x202)](_0x56431c,_0x340db9);});})['on'](_0x5cc277[_0x25b3d8(0x263)],function(_0x55e849){const _0x30d928=_0x25b3d8;logger['error'](_0x30d928(0x216)+util['format'](_0x55e849)),PerformanceTester['end'](PerformanceEvents[_0x30d928(0x22b)],![],util[_0x30d928(0x279)](_0x55e849)),_0x5cc277[_0x30d928(0x1df)](_0x56431c,_0x55e849);});});}catch(_0x14cbf3){PerformanceTester[_0x4cf92c(0x1e5)](PerformanceEvents[_0x4cf92c(0x22b)],![],util[_0x4cf92c(0x279)](_0x14cbf3)),logger['debug'](_0x4cf92c(0x1b0)+util[_0x4cf92c(0x279)](_0x14cbf3));}};static[a84_0x530dc9(0x261)](_0x2edb97,_0xff5c2f,_0x556f60,_0x11aa91,_0x2f1764,_0x127110){const _0x2df66a=a84_0x530dc9,_0xf7200a={'xxkYw':function(_0x341d22,_0xba6204){return _0x341d22(_0xba6204);},'HjGIg':_0x2df66a(0x275),'kNUPP':_0x2df66a(0x1e5),'ceogf':function(_0x33af52,_0x288483){return _0x33af52!==_0x288483;},'sQwdM':function(_0x4db1d5,_0xad0735){return _0x4db1d5(_0xad0735);},'EGIEJ':_0x2df66a(0x235),'egQfZ':function(_0x4ab44c,_0x386a81){return _0x4ab44c(_0x386a81);},'CxAcq':function(_0x1103eb,_0x45bc56){return _0x1103eb!==_0x45bc56;},'VAIps':'EXDEV','obRKd':_0x2df66a(0x1db),'kZYbA':'entry'};_0x2edb97['on'](_0xf7200a[_0x2df66a(0x21f)],function(){const _0x26aee6=_0x2df66a,_0x49a80c={'rEaQW':function(_0x2091f0,_0x4a5aab){const _0x2310e6=a84_0x4f7e;return _0xf7200a[_0x2310e6(0x1cf)](_0x2091f0,_0x4a5aab);},'RbKDa':_0xf7200a[_0x26aee6(0x21f)],'WoUoP':_0xf7200a[_0x26aee6(0x26d)],'foBVD':function(_0x29fa93,_0x35d66a){const _0x1cd49d=_0x26aee6;return _0xf7200a[_0x1cd49d(0x21d)](_0x29fa93,_0x35d66a);},'SzOwm':function(_0x54bebf,_0x1e0594){const _0x5efc15=_0x26aee6;return _0xf7200a[_0x5efc15(0x1cf)](_0x54bebf,_0x1e0594);},'JouOB':function(_0x14a1b7,_0x56f0d4){return _0xf7200a['sQwdM'](_0x14a1b7,_0x56f0d4);},'YmDvv':_0xf7200a[_0x26aee6(0x244)],'hXkOq':function(_0x507b7c,_0x35d311){const _0x4cee11=_0x26aee6;return _0xf7200a[_0x4cee11(0x22f)](_0x507b7c,_0x35d311);},'AhYDS':function(_0x5bdfaf,_0x4d9547){const _0x830d9e=_0x26aee6;return _0xf7200a[_0x830d9e(0x200)](_0x5bdfaf,_0x4d9547);},'Fekju':_0xf7200a['VAIps'],'fVtCJ':_0xf7200a[_0x26aee6(0x24e)],'Xszig':function(_0x2d8d87,_0x134219){const _0x34047a=_0x26aee6;return _0xf7200a[_0x34047a(0x1cf)](_0x2d8d87,_0x134219);},'AizRs':_0xf7200a[_0x26aee6(0x1d3)]},_0x502d34={};_0x502d34[_0x26aee6(0x20d)]=!![],yauzl[_0x26aee6(0x21c)](_0x556f60,_0x502d34,function(_0x4e6de5,_0x6c1e9a){const _0x9474f8=_0x26aee6,_0x5defdb={'cRInB':function(_0x32c9d9,_0x11fa2e){return _0x49a80c['AhYDS'](_0x32c9d9,_0x11fa2e);},'ClCpL':_0x49a80c[_0x9474f8(0x1b3)],'kLIOg':function(_0x423a67,_0x109feb){return _0x49a80c['SzOwm'](_0x423a67,_0x109feb);},'tJUJt':_0x49a80c[_0x9474f8(0x1ed)]};if(_0x4e6de5){_0x49a80c[_0x9474f8(0x1bf)](_0x127110,_0x4e6de5);return;}_0x6c1e9a[_0x9474f8(0x1de)](),_0x6c1e9a['on'](_0x49a80c[_0x9474f8(0x257)],_0x47632d=>{const _0x1be130=_0x9474f8,_0x2d9237={'fYaRk':function(_0x55d561,_0x1202d7){return _0x49a80c['rEaQW'](_0x55d561,_0x1202d7);},'EQKcN':function(_0x1ce571,_0xf645e5){const _0x15bc16=a84_0x4f7e;return _0x49a80c[_0x15bc16(0x230)](_0x1ce571,_0xf645e5);},'ycEuh':_0x49a80c[_0x1be130(0x259)],'hlZAo':_0x49a80c['WoUoP']};if(/\/$/['test'](_0x47632d[_0x1be130(0x26f)])){_0x6c1e9a['readEntry']();return;}!_0xff5c2f&&(_0xff5c2f=_0x47632d[_0x1be130(0x26f)]);if(_0x49a80c[_0x1be130(0x28b)](_0x47632d[_0x1be130(0x26f)],_0xff5c2f))_0x6c1e9a[_0x1be130(0x1de)]();else{const _0x580301=_0x47632d[_0x1be130(0x26f)],_0x4759ee=path['join'](_0x11aa91,_0x580301+_0x1be130(0x209)+process[_0x1be130(0x208)]);let _0x22107;try{_0x22107=fs[_0x1be130(0x1d6)](_0x4759ee);}catch(_0xa0d7a6){if(BINARY_BUSY_ERROR_CODES[_0x1be130(0x21a)](_0xa0d7a6[_0x1be130(0x210)])){const _0x10201c=path[_0x1be130(0x28f)](_0x11aa91,_0x580301);if(fs['existsSync'](_0x10201c)){logger[_0x1be130(0x278)](_0x1be130(0x1d2)+_0x580301),fs[_0x1be130(0x1ef)](_0x556f60,_0x575d5d=>{const _0xc6d5ee=_0x1be130;_0x575d5d&&logger[_0xc6d5ee(0x278)](_0xc6d5ee(0x27a)+_0x556f60);}),_0x49a80c[_0x1be130(0x223)](_0x2f1764,_0x10201c);return;}logger['warn']('Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x580301);}_0x49a80c[_0x1be130(0x1eb)](_0x127110,_0xa0d7a6);return;}_0x22107['on'](_0x49a80c[_0x1be130(0x1b8)],_0x36aebf=>{const _0x5631bf=_0x1be130;if(BINARY_BUSY_ERROR_CODES[_0x5631bf(0x21a)](_0x36aebf[_0x5631bf(0x210)])){const _0x3a45ea=path[_0x5631bf(0x28f)](_0x11aa91,_0x580301);_0x22107['close'](),fs[_0x5631bf(0x28d)](_0x3a45ea)?(logger[_0x5631bf(0x278)](_0x5631bf(0x21b)+_0x36aebf['message']),_0x6c1e9a[_0x5631bf(0x275)](),fs[_0x5631bf(0x1ef)](_0x556f60,_0x558c0=>{const _0x43a96b=_0x5631bf;_0x558c0&&logger['warn'](_0x43a96b(0x27a)+_0x556f60);}),_0x2d9237[_0x5631bf(0x285)](_0x2f1764,_0x3a45ea)):(logger[_0x5631bf(0x278)](_0x5631bf(0x1bd)+_0x36aebf[_0x5631bf(0x249)]),fs['unlink'](_0x4759ee,()=>{}),_0x2d9237['EQKcN'](_0x127110,_0x36aebf));}else fs[_0x5631bf(0x1ef)](_0x4759ee,()=>{}),_0x2d9237[_0x5631bf(0x290)](_0x127110,_0x36aebf);}),_0x6c1e9a[_0x1be130(0x206)](_0x47632d,function(_0x51f279,_0x3b89c4){const _0x3bd2b8=_0x1be130,_0x583eb5={};_0x583eb5['gMqCd']=_0x2d9237['ycEuh'];const _0x519d90=_0x583eb5;if(_0x51f279){fs[_0x3bd2b8(0x1ef)](_0x4759ee,()=>{}),_0x2d9237[_0x3bd2b8(0x285)](_0x127110,_0x51f279);return;}_0x3b89c4['on'](_0x2d9237[_0x3bd2b8(0x240)],function(){const _0x5d872d=_0x3bd2b8;_0x22107[_0x5d872d(0x1e5)](),_0x22107['on'](_0x519d90[_0x5d872d(0x24d)],function(){const _0x2daf9c=_0x5d872d;_0x6c1e9a[_0x2daf9c(0x1de)]();});}),_0x3b89c4[_0x3bd2b8(0x274)](_0x22107);});}}),_0x6c1e9a['on'](_0x49a80c[_0x9474f8(0x1b8)],_0x47479a=>{_0x49a80c['hXkOq'](_0x127110,_0x47479a);}),_0x6c1e9a[_0x9474f8(0x260)](_0x49a80c[_0x9474f8(0x1b1)],()=>{const _0x1126cd=_0x9474f8,_0x33de04={'dXmhX':function(_0x5669ae,_0x22ebee){return _0x5defdb['cRInB'](_0x5669ae,_0x22ebee);},'UgDQd':_0x5defdb[_0x1126cd(0x236)],'kNkJP':function(_0x564679,_0x3b36b6){const _0x45b336=_0x1126cd;return _0x5defdb[_0x45b336(0x1ae)](_0x564679,_0x3b36b6);},'prYfB':function(_0x1e965f,_0x3596e4){const _0x2f5ff1=_0x1126cd;return _0x5defdb[_0x2f5ff1(0x1ae)](_0x1e965f,_0x3596e4);}};fs[_0x1126cd(0x1ef)](_0x556f60,_0x2c3c41=>{_0x2c3c41&&logger['warn']('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x556f60);});const _0x34bffc=path[_0x1126cd(0x28f)](_0x11aa91,_0xff5c2f+_0x1126cd(0x209)+process[_0x1126cd(0x208)]),_0x245e2d=path['join'](_0x11aa91,_0xff5c2f);fs['chmod'](_0x34bffc,_0x5defdb[_0x1126cd(0x1f8)],function(_0x15d7c0){const _0x1a4a07=_0x1126cd,_0x5532a2={'JZsYF':function(_0x5eea1f,_0x3fd67a){return _0x33de04['dXmhX'](_0x5eea1f,_0x3fd67a);},'Ntzea':_0x33de04['UgDQd'],'tFXSb':function(_0x6d68b1,_0x1f4520){const _0x55dd56=a84_0x4f7e;return _0x33de04[_0x55dd56(0x1e8)](_0x6d68b1,_0x1f4520);},'zSdJD':function(_0x4acf62,_0xfd8c86){const _0x2a4dbf=a84_0x4f7e;return _0x33de04[_0x2a4dbf(0x1e8)](_0x4acf62,_0xfd8c86);}};if(_0x15d7c0){_0x6c1e9a[_0x1a4a07(0x275)](),fs[_0x1a4a07(0x1ef)](_0x34bffc,()=>{}),_0x33de04[_0x1a4a07(0x255)](_0x127110,_0x15d7c0);return;}fs[_0x1a4a07(0x225)](_0x34bffc,_0x245e2d,function(_0x361d85){const _0x389f55=_0x1a4a07;if(_0x361d85){if(_0x5532a2[_0x389f55(0x1c9)](_0x361d85[_0x389f55(0x210)],_0x5532a2['Ntzea'])){_0x6c1e9a[_0x389f55(0x275)](),fs[_0x389f55(0x1ef)](_0x34bffc,()=>{}),_0x5532a2[_0x389f55(0x1fc)](_0x127110,_0x361d85);return;}logger['warn'](_0x389f55(0x1fa)+_0x361d85['message']);try{fs['copyFileSync'](_0x34bffc,_0x245e2d);}catch(_0x513742){_0x6c1e9a[_0x389f55(0x275)](),fs[_0x389f55(0x1ef)](_0x34bffc,()=>{}),_0x5532a2[_0x389f55(0x1fc)](_0x127110,_0x513742);return;}fs[_0x389f55(0x1ef)](_0x34bffc,_0x38ccd6=>{const _0x3ca487=_0x389f55;_0x38ccd6&&logger[_0x3ca487(0x278)](_0x3ca487(0x25d)+_0x38ccd6[_0x3ca487(0x249)]);});}_0x6c1e9a['close'](),_0x5532a2[_0x389f55(0x1f3)](_0x2f1764,_0x245e2d);});});});});});}static[a84_0x530dc9(0x1cd)](){const _0x4bce48=a84_0x530dc9;if(process['env'][_0x4bce48(0x213)])return JSON['parse'](process[_0x4bce48(0x27d)][_0x4bce48(0x213)]);return this[_0x4bce48(0x241)];}static[a84_0x530dc9(0x1e3)](){const _0x35e19b=a84_0x530dc9;if(process[_0x35e19b(0x27d)][_0x35e19b(0x1d4)])return JSON[_0x35e19b(0x1d8)](process['env']['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']);return this[_0x35e19b(0x23b)];}static['setFrameworkDetail'](_0x37b1a4,_0x4da46f){const _0x6f9db8=a84_0x530dc9,_0x448a0b={'vsEAr':_0x6f9db8(0x1e6),'UQkkc':function(_0x5a22cd,_0x39d165){return _0x5a22cd(_0x39d165);},'HXCLy':function(_0x85921b,_0x1f2b65){return _0x85921b||_0x1f2b65;}},_0x488dcf=_0x448a0b['vsEAr'][_0x6f9db8(0x26a)]('|');let _0x105db4=0x0;while(!![]){switch(_0x488dcf[_0x105db4++]){case'0':process[_0x6f9db8(0x27d)][_0x6f9db8(0x1d4)]=JSON[_0x6f9db8(0x286)](this[_0x6f9db8(0x23b)]);continue;case'1':this['automationFrameworkDetail']={'name':_0x4da46f,'version':_0x448a0b[_0x6f9db8(0x276)](getFrameworkVersion,_0x4da46f)};continue;case'2':_0x448a0b[_0x6f9db8(0x25c)](!_0x37b1a4,!_0x4da46f)&&logger['debug']('Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework='+_0x37b1a4+_0x6f9db8(0x214)+_0x4da46f);continue;case'3':process[_0x6f9db8(0x27d)][_0x6f9db8(0x213)]=JSON[_0x6f9db8(0x286)](this[_0x6f9db8(0x241)]);continue;case'4':this['testFrameworkDetail']={'name':_0x37b1a4,'version':{[_0x37b1a4]:_0x448a0b[_0x6f9db8(0x276)](getFrameworkVersion,_0x37b1a4)}};continue;}break;}}static[a84_0x530dc9(0x205)](_0x43dd54,_0x5e4302){return _0x43dd54+':'+_0x5e4302;}static[a84_0x530dc9(0x28a)](){const _0x38aa68=a84_0x530dc9;return process[_0x38aa68(0x208)]+':'+threadId;}static['shouldSkipSessionName'](_0x5720e4){const _0x8fc2bc=a84_0x530dc9;if(_0x5720e4[_0x8fc2bc(0x1b7)]&&_0x5720e4[_0x8fc2bc(0x1b7)][_0x8fc2bc(0x1f2)])return!![];return![];}static[a84_0x530dc9(0x27f)](_0x599469){const _0x5182a0=a84_0x530dc9;if(_0x599469[_0x5182a0(0x1b7)]&&_0x599469[_0x5182a0(0x1b7)][_0x5182a0(0x291)])return!![];return![];}static[a84_0x530dc9(0x1d7)](_0x45690a){const _0x371a26=a84_0x530dc9,_0x5ef190=new RegExp(TestFrameworkConstants['HOOK_REGEX']);return _0x5ef190[_0x371a26(0x23a)](_0x45690a);}static[a84_0x530dc9(0x233)](_0x41227b,_0x47d1ec){const _0x4fb68f=a84_0x530dc9,_0x5da632={};_0x5da632['mchOr']=function(_0x314788,_0xe47018){return _0x314788!==_0xe47018;},_0x5da632[_0x4fb68f(0x1c8)]=function(_0x306fe6,_0x256abf){return _0x306fe6===_0x256abf;},_0x5da632[_0x4fb68f(0x27e)]='object';const _0x30ae6c=_0x5da632;for(const [_0x599aa6,_0x2c6cbb]of Object[_0x4fb68f(0x1dc)](_0x47d1ec)){if(_0x30ae6c[_0x4fb68f(0x1ca)](_0x2c6cbb,null)&&_0x30ae6c[_0x4fb68f(0x1c8)](typeof _0x2c6cbb,_0x30ae6c['vddBv'])&&!Array['isArray'](_0x2c6cbb))_0x41227b[_0x599aa6]=this['mergeObject'](_0x41227b[_0x599aa6]||{},_0x2c6cbb);else Array[_0x4fb68f(0x1ee)](_0x2c6cbb)?_0x41227b[_0x599aa6]=(_0x41227b[_0x599aa6]||[])['concat'](_0x2c6cbb):_0x41227b[_0x599aa6]=_0x2c6cbb;}return _0x41227b;}}function a84_0x4f7e(_0x13a424,_0x2f802a){const _0x2a8dd3=a84_0x2a8d();return a84_0x4f7e=function(_0x4f7ef2,_0x321dc4){_0x4f7ef2=_0x4f7ef2-0x1ae;let _0x3f64a5=_0x2a8dd3[_0x4f7ef2];return _0x3f64a5;},a84_0x4f7e(_0x13a424,_0x2f802a);}module[a84_0x530dc9(0x204)]=CLIUtils;function a84_0x2a8d(){const _0x58f297=['./state/testFrameworkState.js','sjQBh','binary-','Folder\x20does\x20not\x20exist:\x20','tJUJt','BROWSERSTACK_CLI_ENV','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','sMpBi','tFXSb','oLnee','130428mpwGzz','requestToUpdateCLI','CxAcq','listen','LQqnH','../../helpers/helper','exports','getHookRegistryKey','openReadStream','SDK_CLI_BIN_PATH','pid','.tmp.','42DbntwH','debug','isBinaryBusy','lazyEntries','statSync','cli_version','code','UHuEt','\x20version','BROWSERSTACK_TEST_FRAMEWORK_DETAIL',',\x20automationFramework=','../utils/apiUtilityMethods.js','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','540895yuUYfg','ejrVK','bDxyU','includes','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','open','ceogf','hOaKN','HjGIg','.sock','url','start','SzOwm','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','rename','../../helpers/classLogger.js','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','fgMXH','getSdkLanguage','upQom','SDK_CLI_DOWNLOAD','./state/hookState.js','SHELL_EXECUTE_ERROR','tVljR','egQfZ','rEaQW','ukFyu','rvQez','mergeObject','hrxlV','error','ClCpL','zBlDc','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','worker_threads','test','automationFrameworkDetail','development','isDevelopmentEnv','arch','1298dfqxWI','hlZAo','testFrameworkDetail','SDK_CLI_CHECK_UPDATE','569426treNdw','EGIEJ','Xzeii','Resolved\x20binary\x20path:\x20','9Rnbsjo','info','message','get','586048DTVVHo','downloadLatestBinary','gMqCd','obRKd','.zip','439996SiXwsz','../../helpers/utilities','data','homedir','eWVFW','prYfB','BROWSERSTACK_FILES_DIR','AizRs','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','RbKDa','VesNM','102750pwLHJB','HXCLy','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','path','trim','once','downloadFileStream','unix:/tmp/sdk-platform-','JYSWR','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','getExistingCliPath','follow-redirects','7iqsQpW','Error\x20while\x20reading\x20CLI\x20path:\x20','Setting\x20required\x20permissions\x20to\x20','split','CLIUtils','HghdQ','kNUPP','DVhki','fileName','.browserstack','EWNlp','Resolving\x20with\x20stdout:\x20\x22','./instances/testFrameworkInstance.js','pipe','close','UQkkc','util','warn','format','Failed\x20to\x20delete\x20zip\x20file:\x20','node','VWHZf','env','vddBv','shouldSkipSessionStatus','filter','uKqoi','Folder\x20','MvGjR','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','fYaRk','stringify','yauzl','cwd','3XeEbLm','getCurrentInstanceName','foBVD','getWritableDir','existsSync','zsveF','join','EQKcN','skipSessionStatus','kLIOg','fTCuQ','Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20','WoUoP','downloaded_file_','Fekju','vfEIq','response\x20','5178672ewOxRU','testContextOptions','YmDvv','bRzhF','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','reduce','BROWSERSTACK_BINARY_URL','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','wODDG','Xszig','KFLJq','UOZKq','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','closeSync','checkAndUpdateCli','GET','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','openSync','PxIHp','JZsYF','mchOr','../../helpers/performance/performance-tester.js','../../helpers/test-observability/utils.js','getTestFrameworkDetail','WAXgH','xxkYw','readdirSync','version','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','kZYbA','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','createWriteStream','matchHookRegex','parse','mtime','nlaSH','0755','entries','Configuring\x20Cli\x20path.','readEntry','yZtCl','runShellCommand','getCliDir','Downloading\x20SDK\x20binary\x20from:\x20','getAutomationFrameworkDetail','getSdkVersion','end','2|4|1|0|3','timeout','kNkJP','../../../package.json','\x20already\x20exists','JouOB','isFile','fVtCJ','isArray','unlink','oImmX','lBLtC','skipSessionName','zSdJD'];a84_0x2a8d=function(){return _0x58f297;};return a84_0x2a8d();}
|
|
1
|
+
const a84_0x6f7930=a84_0x1b0e;function a84_0x8685(){const _0x1c5f4e=['../../helpers/test-observability/utils.js','ntllq','TiBYn','warn','QgkQF','parse','setupCliPath','startsWith','zEmvf','env','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','CMRDi','6033sdjKOZ','downloadLatestBinary','9DBhKun','120SYCcHj','data','unlink','mdcQt','EHJWl','length','EXDEV','UuFxm','createWriteStream','uFOBp','CLI\x20version\x20found\x20despite\x20error:\x20\x22','readEntry','path','closeSync','rqove','767602vYKfET','../../helpers/classLogger.js','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','unix:/tmp/sdk-platform-','reduce','rEcWN','BROWSERSTACK_BINARY_URL','rename','debug','hnePR','KIruW','join','test','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','copyFileSync','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','rDvgP','skipSessionName','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','platform','close','pYoHK','aBOlc','getWritableDir','../utils/apiUtilityMethods.js','../../helpers/performance/performance-tester.js','xjWKA','1316722pjCiCt','.tmp.','mergeObject','worker_threads','existsSync','url','BROWSERSTACK_CLI_ENV','vMQyr','Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20','cli_version','error','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','GET','gMkyD','isDirectory','LvuJw','getSdkLanguage','getSdkVersion','getCurrentInstanceName','open','kkuGl','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','info','shouldSkipSessionStatus','entries',',\x20automationFramework=','hjbea','message','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','downloaded_file_','MMxAP','fileName','matchHookRegex','openSync','zssCZ','requestToUpdateCLI','ytOXd','../../helpers/utilities','../../helpers/performance/constants','skipSessionStatus','lazyEntries','split','../../helpers/helper','kHmkJ','./state/testFrameworkState.js','JXKkZ','pid','shouldSkipSessionName','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','arch','SDK_CLI_DOWNLOAD','Resolving\x20with\x20stdout:\x20\x22','tnUMV','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','getTestFrameworkDetail','statSync','testContextOptions','testFrameworkDetail','yauzl','lpCQg','Development\x20Cli\x20Path:\x20','mbyDv','ZijqN','LBAaz','kDoEj','KAXiB','./state/automationFrameworkState.js','pAtlk','code','end','tmpdir','concat','get','QAIFk','BfCMW','getCLIParamsForDevEnv','iaDWa','.sock','Configuring\x20Cli\x20path.','sgCyZ','timeout','vqHau','TwcQO','Failed\x20to\x20delete\x20zip\x20file:\x20','BROWSERSTACK_FILES_DIR','cli','DClGE','mtime','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','getExistingCliPath','node','automationFrameworkDetail','stringify','listen','getCliDir','2601358FuRnjX','isDevelopmentEnv','Folder\x20does\x20not\x20exist:\x20','gdILw','pipe','SHELL_EXECUTE_ERROR','IyvUB','SDK_CLI_BIN_PATH','filter','IHsmH','1492fruLML','development','\x20already\x20exists','VtegM','getAutomationFrameworkDetail','./state/hookState.js','downloadFileStream','JyQNQ','includes','OMtfS','XKPXk','lfOII','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','XcGgM','start','oUetq','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','gkUYA','../utils/constants','BdDUM','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','trim','25UgysvU','4|3|0|2|1','PGtIh','1744784dIgeAG','homedir','once','checkAndUpdateCli','version','nBDvP','SGsKQ','sUNvM','1507794GQNeHv','GTjNN','0755','uTpNo','format','\x20version','3380958DBcgES','openReadStream','TAgTJ','SDK_CLI_CHECK_UPDATE','response\x20','filePath','vqSEt','EDIwK','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','uXkAJ','Setting\x20required\x20permissions\x20to\x20','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','child_process','isBinaryBusy','.browserstack','cJthP','jyeqq','exports','HWdic','follow-redirects','TEXkm','Binary\x20is\x20busy:\x20'];a84_0x8685=function(){return _0x1c5f4e;};return a84_0x8685();}(function(_0x49aad0,_0x3f7af4){const _0xbe71c6=a84_0x1b0e,_0x3cfbec=_0x49aad0();while(!![]){try{const _0x59b131=-parseInt(_0xbe71c6(0x1bb))/0x1+-parseInt(_0xbe71c6(0x155))/0x2+parseInt(_0xbe71c6(0x1a9))/0x3*(parseInt(_0xbe71c6(0x15f))/0x4)+-parseInt(_0xbe71c6(0x175))/0x5*(-parseInt(_0xbe71c6(0x180))/0x6)+-parseInt(_0xbe71c6(0x186))/0x7+-parseInt(_0xbe71c6(0x178))/0x8*(parseInt(_0xbe71c6(0x1ab))/0x9)+parseInt(_0xbe71c6(0x1ac))/0xa*(parseInt(_0xbe71c6(0x1d6))/0xb);if(_0x59b131===_0x3f7af4)break;else _0x3cfbec['push'](_0x3cfbec['shift']());}catch(_0xf902d0){_0x3cfbec['push'](_0x3cfbec['shift']());}}}(a84_0x8685,0xa4771));const fs=require('fs'),os=require('os'),url=require('url'),path=require(a84_0x6f7930(0x1b8)),{exec}=require(a84_0x6f7930(0x193)),{https}=require(a84_0x6f7930(0x19a)),yauzl=require(a84_0x6f7930(0x130)),util=require('util'),{getFrameworkVersion}=require(a84_0x6f7930(0x19d)),{threadId}=require(a84_0x6f7930(0x1d9)),PerformanceTester=require(a84_0x6f7930(0x1d4)),{EVENTS:PerformanceEvents}=require(a84_0x6f7930(0x1fd)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a84_0x6f7930(0x1fc)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a84_0x6f7930(0x201)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a84_0x6f7930(0x171)),{createClassLogger}=require(a84_0x6f7930(0x1bc)),TestFrameworkInstance=require('./instances/testFrameworkInstance.js'),HookState=require(a84_0x6f7930(0x164)),TestFrameworkState=require(a84_0x6f7930(0x203)),AutomationFrameworkState=require(a84_0x6f7930(0x138)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants.js'),logger=createClassLogger('CLIUtils'),{getBStackAPIUrl}=require(a84_0x6f7930(0x1d3));class CLIUtils{[a84_0x6f7930(0x151)]={};[a84_0x6f7930(0x12f)]={};static[a84_0x6f7930(0x156)](){const _0x42bca2=a84_0x6f7930,_0x5749d8={};_0x5749d8[_0x42bca2(0x1a8)]=function(_0x4dd2e1,_0x419733){return _0x4dd2e1===_0x419733;},_0x5749d8['niiSc']=_0x42bca2(0x160);const _0x3642ee=_0x5749d8;return _0x3642ee[_0x42bca2(0x1a8)](process['env'][_0x42bca2(0x1dc)],_0x3642ee['niiSc']);}static[a84_0x6f7930(0x141)](){const _0x205d07=a84_0x6f7930,_0x138874={};return _0x138874['id']=process[_0x205d07(0x1a6)]['BROWSERSTACK_CLI_ENV'],_0x138874[_0x205d07(0x153)]=_0x205d07(0x1be)+process[_0x205d07(0x1a6)][_0x205d07(0x1dc)]+_0x205d07(0x143),_0x138874;}static[a84_0x6f7930(0x1e7)](){const _0x46251f=a84_0x6f7930,_0x8f92d3={'JyQNQ':function(_0x5d2e79,_0x1b143b){return _0x5d2e79(_0x1b143b);},'BdDUM':'../../../package.json'};return _0x8f92d3[_0x46251f(0x166)](require,_0x8f92d3[_0x46251f(0x172)])[_0x46251f(0x17c)];}static[a84_0x6f7930(0x1e6)](){const _0x4baccd=a84_0x6f7930,_0x1dfcb2={};_0x1dfcb2[_0x4baccd(0x1c5)]=_0x4baccd(0x150);const _0x25f4e8=_0x1dfcb2;return _0x25f4e8[_0x4baccd(0x1c5)];}static async[a84_0x6f7930(0x1a3)](_0x51aaa7){const _0x38b9f2=a84_0x6f7930,_0x321fec={'zEmvf':_0x38b9f2(0x144),'tnUMV':function(_0x55f32f,_0x4d88e3){return _0x55f32f(_0x4d88e3);},'aBOlc':_0x38b9f2(0x1e1)};logger['debug'](_0x321fec[_0x38b9f2(0x1a5)]);const _0x3a1427=process['env'][_0x38b9f2(0x15c)];if(!_0x321fec[_0x38b9f2(0x12a)](isNullOrEmpty,_0x3a1427))return logger['debug'](_0x38b9f2(0x132)+_0x3a1427),_0x3a1427;try{const _0x14cee8=this[_0x38b9f2(0x154)]();if(_0x321fec['tnUMV'](isNullOrEmpty,_0x14cee8))throw new Error(_0x321fec[_0x38b9f2(0x1d1)]);const _0x5b1112=this['getExistingCliPath'](_0x14cee8),_0x41cc04=await this['checkAndUpdateCli'](_0x5b1112,_0x14cee8,_0x51aaa7);return logger[_0x38b9f2(0x1c3)]('Resolved\x20binary\x20path:\x20'+_0x41cc04),_0x41cc04;}catch(_0x26b7fd){logger[_0x38b9f2(0x1c3)](_0x38b9f2(0x207)+util['format'](_0x26b7fd));}return null;}static async[a84_0x6f7930(0x17b)](_0x5ddb90,_0x4caddf,_0x3018a5){const _0x1d388a=a84_0x6f7930,_0x1f307e={'mWCVe':function(_0x4ea05e){return _0x4ea05e();},'IyvUB':function(_0x41544f,_0x800d49){return _0x41544f(_0x800d49);},'sUNvM':function(_0x11b660,_0x4e5b42,_0x463c8b){return _0x11b660(_0x4e5b42,_0x463c8b);},'uTpNo':_0x1d388a(0x1ad),'OMtfS':'url','XcGgM':function(_0x1f5714,_0x2a449b,_0x5b9615){return _0x1f5714(_0x2a449b,_0x5b9615);}};PerformanceTester[_0x1d388a(0x16d)](PerformanceEvents[_0x1d388a(0x189)]),logger['info']('Current\x20CLI\x20Path\x20Found:\x20'+_0x5ddb90);const _0x340cc0=_0x1f307e['mWCVe'](getHostInfo),_0x663d00={'sdk_version':CLIUtils[_0x1d388a(0x1e7)](),'os':_0x340cc0[_0x1d388a(0x1ce)],'os_arch':_0x340cc0[_0x1d388a(0x208)],'cli_version':'0','sdk_language':this[_0x1d388a(0x1e6)]()};!_0x1f307e[_0x1d388a(0x15b)](isNullOrEmpty,_0x5ddb90)&&(_0x663d00[_0x1d388a(0x1df)]=await this['runShellCommand'](_0x5ddb90+_0x1d388a(0x185)));const _0x5a4117=await this[_0x1d388a(0x1fa)](_0x663d00,_0x3018a5);process[_0x1d388a(0x1a6)][_0x1d388a(0x1c1)]&&(logger[_0x1d388a(0x1ed)](_0x1d388a(0x1c8)+process[_0x1d388a(0x1a6)][_0x1d388a(0x1c1)]),_0x5a4117[_0x1d388a(0x1ad)][_0x1d388a(0x1db)]=process['env'][_0x1d388a(0x1c1)]);if(_0x1f307e[_0x1d388a(0x17f)](nestedKeyValue,_0x5a4117,[_0x1f307e[_0x1d388a(0x183)],_0x1f307e[_0x1d388a(0x168)]])){logger[_0x1d388a(0x1c3)](_0x1d388a(0x18f)+_0x663d00[_0x1d388a(0x1df)]);if(!_0x1f307e['IyvUB'](isNullOrEmpty,_0x5ddb90)&&this[_0x1d388a(0x194)](_0x5ddb90))return logger['warn']('Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20'+_0x5ddb90),PerformanceTester[_0x1d388a(0x13b)](PerformanceEvents[_0x1d388a(0x189)]),_0x5ddb90;const _0x510551=await this[_0x1d388a(0x1aa)](_0x1f307e[_0x1d388a(0x16c)](nestedKeyValue,_0x5a4117,[_0x1f307e[_0x1d388a(0x183)],_0x1f307e['OMtfS']]),_0x4caddf);return PerformanceTester[_0x1d388a(0x13b)](PerformanceEvents[_0x1d388a(0x189)]),_0x510551;}return PerformanceTester[_0x1d388a(0x13b)](PerformanceEvents[_0x1d388a(0x189)]),_0x5ddb90;}static[a84_0x6f7930(0x154)](){const _0x526f1d=a84_0x6f7930,_0x5ce73f={'iaDWa':function(_0x548f49,_0x15ece6){return _0x548f49(_0x15ece6);},'gMkyD':_0x526f1d(0x1e1),'xjWKA':_0x526f1d(0x14b)},_0x2bd930=this[_0x526f1d(0x1d2)]();try{if(_0x5ce73f[_0x526f1d(0x142)](isNullOrEmpty,_0x2bd930))throw new Error(_0x5ce73f[_0x526f1d(0x1e3)]);const _0x249cc7=path[_0x526f1d(0x1c6)](_0x2bd930,_0x5ce73f[_0x526f1d(0x1d5)]);return!fs['existsSync'](_0x249cc7)&&_0x5ce73f['iaDWa'](createDir,_0x249cc7),_0x249cc7;}catch(_0x36f744){logger['debug'](_0x526f1d(0x173)+util[_0x526f1d(0x184)](_0x36f744));}}static[a84_0x6f7930(0x1d2)](){const _0xce3d4b=a84_0x6f7930,_0x2b07d4={'JXKkZ':_0xce3d4b(0x195),'LBAaz':function(_0x5b34c9,_0x32b870){return _0x5b34c9(_0x32b870);},'sgCyZ':function(_0x504c1c,_0x32c4af){return _0x504c1c(_0x32c4af);}},_0x5ac0ad=[process['env'][_0xce3d4b(0x14a)],path[_0xce3d4b(0x1c6)](os[_0xce3d4b(0x179)](),_0x2b07d4[_0xce3d4b(0x204)]),path[_0xce3d4b(0x1c6)](os[_0xce3d4b(0x13c)](),_0x2b07d4[_0xce3d4b(0x204)])];for(const _0x4fb661 of _0x5ac0ad){if(_0x2b07d4['LBAaz'](isNullOrEmpty,_0x4fb661))continue;try{if(fs['existsSync'](_0x4fb661)){logger['debug']('Folder\x20'+_0x4fb661+_0xce3d4b(0x161));if(!_0x2b07d4[_0xce3d4b(0x135)](isModifiable,_0x4fb661)){logger[_0xce3d4b(0x1c3)](_0xce3d4b(0x191)+_0x4fb661);const _0x1e125c=_0x2b07d4[_0xce3d4b(0x135)](setReadWriteExecuteAccess,_0x4fb661);if(!_0x2b07d4[_0xce3d4b(0x145)](isTrue,_0x1e125c)){logger[_0xce3d4b(0x1a0)](_0xce3d4b(0x1ec)+_0x4fb661);continue;}}}else{logger[_0xce3d4b(0x1c3)](_0xce3d4b(0x157)+_0x4fb661),_0x2b07d4[_0xce3d4b(0x135)](createDir,_0x4fb661),logger[_0xce3d4b(0x1c3)]('Setting\x20required\x20permissions\x20to\x20'+_0x4fb661);const _0xba5820=_0x2b07d4[_0xce3d4b(0x135)](setReadWriteExecuteAccess,_0x4fb661);!_0x2b07d4[_0xce3d4b(0x145)](isTrue,_0xba5820)&&logger[_0xce3d4b(0x1a0)](_0xce3d4b(0x1ec)+_0x4fb661);}return _0x4fb661;}catch(_0x2518c1){logger['error'](_0xce3d4b(0x1ca)+util[_0xce3d4b(0x184)](_0x2518c1));}}return null;}static[a84_0x6f7930(0x14f)](_0x5c3310){const _0x1868ca=a84_0x6f7930,_0x1edfcc={};_0x1edfcc[_0x1868ca(0x181)]=function(_0x1ff9f1,_0x108fd9){return _0x1ff9f1>_0x108fd9;},_0x1edfcc[_0x1868ca(0x14c)]=function(_0x2de0be,_0xc284b5){return _0x2de0be>_0xc284b5;};const _0x416da4=_0x1edfcc;try{if(!fs[_0x1868ca(0x1da)](_0x5c3310)||!fs[_0x1868ca(0x12d)](_0x5c3310)[_0x1868ca(0x1e4)]())return'';const _0x36f466=fs['readdirSync'](_0x5c3310)['map'](_0x200e78=>path['join'](_0x5c3310,_0x200e78))[_0x1868ca(0x15d)](_0x3d870b=>fs[_0x1868ca(0x12d)](_0x3d870b)['isFile']()&&path['basename'](_0x3d870b)[_0x1868ca(0x1a4)]('binary-'));if(_0x416da4['DClGE'](_0x36f466[_0x1868ca(0x1b1)],0x0)){const _0x578757=_0x36f466['map'](_0x260f31=>({'filePath':_0x260f31,'mtime':fs[_0x1868ca(0x12d)](_0x260f31)['mtime']}))[_0x1868ca(0x1bf)]((_0x1bb7f2,_0x296d8f)=>{const _0x2a210d=_0x1868ca;if(!_0x1bb7f2||!_0x1bb7f2[_0x2a210d(0x14d)])return _0x296d8f;if(_0x416da4['GTjNN'](_0x296d8f[_0x2a210d(0x14d)],_0x1bb7f2[_0x2a210d(0x14d)]))return _0x296d8f;return _0x1bb7f2;},{});return _0x578757?_0x578757[_0x1868ca(0x18b)]:'';}return'';}catch(_0x521285){return logger['error']('Error\x20while\x20reading\x20CLI\x20path:\x20'+util[_0x1868ca(0x184)](_0x521285)),'';}}static [a84_0x6f7930(0x1fa)]=async(_0xa7dfa0,_0x3ed4c7)=>{const _0x28386d=a84_0x6f7930,_0x2bfce8={'ZijqN':function(_0x216cc9,_0xb09716,_0x547c15,_0x408a81,_0x15b1df){return _0x216cc9(_0xb09716,_0x547c15,_0x408a81,_0x15b1df);},'RbQXf':_0x28386d(0x1e2)},_0xbc2328={};_0xbc2328['qs']=_0xa7dfa0;const _0x44620b=await _0x2bfce8[_0x28386d(0x134)](nodeRequest,_0x2bfce8['RbQXf'],UPDATED_CLI_ENDPOINT,_0xbc2328,_0x3ed4c7);return logger[_0x28386d(0x1c3)](_0x28386d(0x18a)+JSON['stringify'](_0x44620b)),_0x44620b;};static[a84_0x6f7930(0x194)](_0x21e3dc){const _0x2f45d9=a84_0x6f7930;try{const _0x24c765=fs[_0x2f45d9(0x1f8)](_0x21e3dc,'r+');return fs[_0x2f45d9(0x1b9)](_0x24c765),![];}catch(_0x1e08a1){if(BINARY_BUSY_ERROR_CODES[_0x2f45d9(0x167)](_0x1e08a1[_0x2f45d9(0x13a)]))return logger[_0x2f45d9(0x1c3)](_0x2f45d9(0x19c)+_0x21e3dc),!![];return logger[_0x2f45d9(0x1c3)](_0x2f45d9(0x16b)+_0x1e08a1['message']),![];}}static['runShellCommand'](_0x137731,_0x1385d9=''){const _0x1b34ae=a84_0x6f7930,_0x720c1e={'QAIFk':_0x1b34ae(0x17c),'CPeMs':function(_0x23e156,_0x1aeeab){return _0x23e156(_0x1aeeab);},'USfiQ':_0x1b34ae(0x15a),'hYgTn':function(_0x586fec,_0x4a72b2){return _0x586fec(_0x4a72b2);},'kgjVn':function(_0x5b5438,_0xaac311,_0x2a39e3,_0x3b3e61){return _0x5b5438(_0xaac311,_0x2a39e3,_0x3b3e61);},'TEXkm':'error'};return new Promise((_0x3efa3a,_0x487a07)=>{const _0x165f47=_0x1b34ae,_0x526ec8={'gkUYA':_0x720c1e[_0x165f47(0x13f)],'MMxAP':function(_0xf8ddd,_0x59ce0d){return _0x720c1e['CPeMs'](_0xf8ddd,_0x59ce0d);},'gdILw':_0x720c1e['USfiQ'],'LZrpI':function(_0x5b004c,_0x263cf7){return _0x720c1e['hYgTn'](_0x5b004c,_0x263cf7);}},_0x3d0e4d={};_0x3d0e4d['cwd']=_0x1385d9,_0x3d0e4d[_0x165f47(0x146)]=0x1388;const _0x28bdba=_0x720c1e['kgjVn'](exec,_0x137731,_0x3d0e4d,(_0x5e4170,_0x1d0b96,_0x1be340)=>{const _0x2fbc14=_0x165f47;if(_0x5e4170){if(_0x137731[_0x2fbc14(0x167)](_0x526ec8[_0x2fbc14(0x170)])&&(_0x1d0b96[_0x2fbc14(0x174)]()||_0x1be340['trim']())){const _0x3e7d25=_0x1d0b96['trim']()||_0x1be340[_0x2fbc14(0x174)]();logger[_0x2fbc14(0x1c3)](_0x2fbc14(0x1b6)+_0x3e7d25+'\x22'),_0x526ec8[_0x2fbc14(0x1f5)](_0x3efa3a,_0x3e7d25);}else _0x526ec8['MMxAP'](_0x3efa3a,_0x1be340[_0x2fbc14(0x174)]()||_0x526ec8['gdILw']);}else logger[_0x2fbc14(0x1c3)](_0x2fbc14(0x20a)+_0x1d0b96[_0x2fbc14(0x174)]()+'\x22'),_0x526ec8['LZrpI'](_0x3efa3a,_0x1d0b96[_0x2fbc14(0x174)]());});_0x28bdba['on'](_0x720c1e[_0x165f47(0x19b)],()=>{const _0xf263d0=_0x165f47;_0x526ec8[_0xf263d0(0x1f5)](_0x3efa3a,_0x526ec8[_0xf263d0(0x158)]);});});}static [a84_0x6f7930(0x1aa)]=async(_0x396cd4,_0x366671)=>{const _0x3edd3b=a84_0x6f7930,_0x5521d8={'rDvgP':function(_0x64771c,_0x463f02){return _0x64771c(_0x463f02);},'SGsKQ':_0x3edd3b(0x192),'zjiGW':function(_0xd2c6f1,_0x4620aa){return _0xd2c6f1(_0x4620aa);},'PGtIh':_0x3edd3b(0x1bd),'GsBIt':_0x3edd3b(0x1e0)};PerformanceTester[_0x3edd3b(0x16d)](PerformanceEvents[_0x3edd3b(0x209)]),logger['debug']('Downloading\x20SDK\x20binary\x20from:\x20'+_0x396cd4);try{const _0x5a3f3f=url[_0x3edd3b(0x1a2)](_0x396cd4),_0x14ba87=path[_0x3edd3b(0x1c6)](_0x366671,_0x3edd3b(0x1f4)+process[_0x3edd3b(0x205)]+'.zip'),_0x5dcf76=fs[_0x3edd3b(0x1b4)](_0x14ba87);return new Promise((_0x288349,_0x662b65)=>{const _0x5c318b=_0x3edd3b,_0x42217a={'zGyHG':function(_0x47d36b,_0x48e3fd){const _0x5a7b9b=a84_0x1b0e;return _0x5521d8[_0x5a7b9b(0x1cb)](_0x47d36b,_0x48e3fd);},'VPzLw':_0x5521d8[_0x5c318b(0x17e)],'pYoHK':function(_0x4a72ba,_0x39c93f){return _0x5521d8['zjiGW'](_0x4a72ba,_0x39c93f);},'TwcQO':_0x5521d8[_0x5c318b(0x177)],'kDoEj':_0x5521d8['GsBIt']};https[_0x5c318b(0x13e)](_0x5a3f3f,function(_0x503d10){const _0x49d169=_0x5c318b,_0x876423={'rqove':_0x42217a['VPzLw'],'kHmkJ':function(_0xe8c7a6,_0x4aec37){const _0x25fb51=a84_0x1b0e;return _0x42217a[_0x25fb51(0x1d0)](_0xe8c7a6,_0x4aec37);},'UuFxm':_0x42217a[_0x49d169(0x148)],'jSjvE':function(_0x8c67b4,_0x2acec8){const _0x4c795d=_0x49d169;return _0x42217a[_0x4c795d(0x1d0)](_0x8c67b4,_0x2acec8);}},_0x2fd56d=null;_0x503d10[_0x49d169(0x159)](_0x5dcf76),_0x503d10['on'](_0x42217a['kDoEj'],function(_0xb0a2d6){const _0x1207ab=_0x49d169;logger['error'](util[_0x1207ab(0x184)](_0x876423[_0x1207ab(0x1ba)],_0xb0a2d6)),PerformanceTester[_0x1207ab(0x13b)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x1207ab(0x184)](_0xb0a2d6)),_0x876423[_0x1207ab(0x202)](_0x662b65,_0xb0a2d6);}),_0x5dcf76['on'](_0x42217a[_0x49d169(0x136)],function(_0x57989d){const _0x329e8a=_0x49d169;logger['error'](util[_0x329e8a(0x184)](_0x876423[_0x329e8a(0x1b3)],_0x57989d)),PerformanceTester[_0x329e8a(0x13b)](PerformanceEvents[_0x329e8a(0x209)],![],util['format'](_0x57989d)),_0x876423[_0x329e8a(0x202)](_0x662b65,_0x57989d);}),CLIUtils[_0x49d169(0x165)](_0x5dcf76,_0x2fd56d,_0x14ba87,_0x366671,_0x184edf=>{const _0x5b98dd=_0x49d169;PerformanceTester['end'](PerformanceEvents[_0x5b98dd(0x209)]),_0x876423['jSjvE'](_0x288349,_0x184edf);},_0x1fdb98=>{const _0x3995df=_0x49d169;PerformanceTester[_0x3995df(0x13b)](PerformanceEvents[_0x3995df(0x209)],![],util[_0x3995df(0x184)](_0x1fdb98)),_0x42217a['zGyHG'](_0x662b65,_0x1fdb98);});})['on'](_0x5521d8['GsBIt'],function(_0x28a527){const _0x2882eb=_0x5c318b;logger[_0x2882eb(0x1e0)](_0x2882eb(0x12b)+util[_0x2882eb(0x184)](_0x28a527)),PerformanceTester['end'](PerformanceEvents[_0x2882eb(0x209)],![],util['format'](_0x28a527)),_0x42217a['zGyHG'](_0x662b65,_0x28a527);});});}catch(_0x4eccce){PerformanceTester[_0x3edd3b(0x13b)](PerformanceEvents[_0x3edd3b(0x209)],![],util[_0x3edd3b(0x184)](_0x4eccce)),logger[_0x3edd3b(0x1c3)](_0x3edd3b(0x1de)+util[_0x3edd3b(0x184)](_0x4eccce));}};static[a84_0x6f7930(0x165)](_0x5c47d7,_0xfbc61b,_0x1322d9,_0x16b52f,_0x2102e6,_0x232510){const _0x151c44=a84_0x6f7930,_0x376cfd={'kcaeL':function(_0x2710de,_0x417392){return _0x2710de(_0x417392);},'mbyDv':_0x151c44(0x1cf),'hnePR':_0x151c44(0x13b),'QgkQF':function(_0x4519a8,_0x3eaca2){return _0x4519a8(_0x3eaca2);},'zssCZ':function(_0x3d601a,_0x270539){return _0x3d601a(_0x270539);},'TAgTJ':'entry','EHJWl':_0x151c44(0x1e0),'BfCMW':function(_0x4ce11e,_0x161184){return _0x4ce11e!==_0x161184;},'oUetq':function(_0x5ae288,_0x1b7ad0){return _0x5ae288!==_0x1b7ad0;},'kkuGl':_0x151c44(0x1b2),'TiBYn':function(_0x580311,_0x3a90db){return _0x580311(_0x3a90db);},'MdDwb':function(_0xea78a4,_0xfa4f91){return _0xea78a4(_0xfa4f91);},'aXcfZ':_0x151c44(0x182)};_0x5c47d7['on'](_0x376cfd[_0x151c44(0x133)],function(){const _0x4dfc8c=_0x151c44,_0x3de49e={'hjbea':function(_0x355efa,_0x4a4ad4){const _0x960131=a84_0x1b0e;return _0x376cfd[_0x960131(0x140)](_0x355efa,_0x4a4ad4);},'XKPXk':function(_0x2cedc3,_0x391a7e){const _0x3ea628=a84_0x1b0e;return _0x376cfd[_0x3ea628(0x1f9)](_0x2cedc3,_0x391a7e);},'rEcWN':_0x376cfd[_0x4dfc8c(0x1b0)],'EDIwK':function(_0x15d34c,_0x4f7c04){const _0xd03bab=_0x4dfc8c;return _0x376cfd[_0xd03bab(0x16e)](_0x15d34c,_0x4f7c04);},'LvuJw':_0x376cfd[_0x4dfc8c(0x1ea)],'nfRjO':function(_0x493de8,_0x238ab7){const _0x47ddd1=_0x4dfc8c;return _0x376cfd[_0x47ddd1(0x19f)](_0x493de8,_0x238ab7);},'ytOXd':function(_0x24b294,_0x77a3d6){return _0x376cfd['MdDwb'](_0x24b294,_0x77a3d6);},'uFOBp':_0x376cfd['aXcfZ']},_0x44e4fb={};_0x44e4fb[_0x4dfc8c(0x1ff)]=!![],yauzl[_0x4dfc8c(0x1e9)](_0x1322d9,_0x44e4fb,function(_0x227ebf,_0x4be670){const _0x47f275=_0x4dfc8c,_0x15c1e7={'KAXiB':function(_0x2c1eb1,_0x5f2077){return _0x376cfd['kcaeL'](_0x2c1eb1,_0x5f2077);},'vqHau':_0x376cfd[_0x47f275(0x133)],'IHsmH':function(_0x1923e9,_0x35680c){return _0x376cfd['kcaeL'](_0x1923e9,_0x35680c);},'HWdic':_0x376cfd[_0x47f275(0x1c4)],'cJthP':function(_0x35bd0e,_0x58edda){const _0x4c90de=_0x47f275;return _0x376cfd[_0x4c90de(0x1a1)](_0x35bd0e,_0x58edda);}};if(_0x227ebf){_0x376cfd[_0x47f275(0x1f9)](_0x232510,_0x227ebf);return;}_0x4be670[_0x47f275(0x1b7)](),_0x4be670['on'](_0x376cfd[_0x47f275(0x188)],_0x3340e9=>{const _0x5b6333=_0x47f275;if(/\/$/[_0x5b6333(0x1c7)](_0x3340e9[_0x5b6333(0x1f6)])){_0x4be670['readEntry']();return;}!_0xfbc61b&&(_0xfbc61b=_0x3340e9['fileName']);if(_0x3de49e[_0x5b6333(0x1f1)](_0x3340e9[_0x5b6333(0x1f6)],_0xfbc61b))_0x4be670[_0x5b6333(0x1b7)]();else{const _0x574856=_0x3340e9[_0x5b6333(0x1f6)],_0x2e07b5=path['join'](_0x16b52f,_0x574856+_0x5b6333(0x1d7)+process['pid']);let _0x4f831a;try{_0x4f831a=fs[_0x5b6333(0x1b4)](_0x2e07b5);}catch(_0x26177a){if(BINARY_BUSY_ERROR_CODES[_0x5b6333(0x167)](_0x26177a[_0x5b6333(0x13a)])){const _0xd7bc2c=path[_0x5b6333(0x1c6)](_0x16b52f,_0x574856);if(fs[_0x5b6333(0x1da)](_0xd7bc2c)){logger[_0x5b6333(0x1a0)](_0x5b6333(0x1eb)+_0x574856),fs['unlink'](_0x1322d9,_0x301378=>{_0x301378&&logger['warn']('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x1322d9);}),_0x3de49e[_0x5b6333(0x169)](_0x2102e6,_0xd7bc2c);return;}logger['warn'](_0x5b6333(0x1a7)+_0x574856);}_0x3de49e[_0x5b6333(0x169)](_0x232510,_0x26177a);return;}_0x4f831a['on'](_0x3de49e[_0x5b6333(0x1c0)],_0x1cee56=>{const _0x33e08d=_0x5b6333;if(BINARY_BUSY_ERROR_CODES[_0x33e08d(0x167)](_0x1cee56[_0x33e08d(0x13a)])){const _0x3227c2=path[_0x33e08d(0x1c6)](_0x16b52f,_0x574856);_0x4f831a[_0x33e08d(0x1cf)](),fs[_0x33e08d(0x1da)](_0x3227c2)?(logger[_0x33e08d(0x1a0)]('Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x1cee56['message']),_0x4be670['close'](),fs[_0x33e08d(0x1ae)](_0x1322d9,_0x3c1729=>{const _0x1e85ed=_0x33e08d;_0x3c1729&&logger[_0x1e85ed(0x1a0)](_0x1e85ed(0x149)+_0x1322d9);}),_0x15c1e7[_0x33e08d(0x137)](_0x2102e6,_0x3227c2)):(logger[_0x33e08d(0x1a0)](_0x33e08d(0x16f)+_0x1cee56[_0x33e08d(0x1f2)]),fs['unlink'](_0x2e07b5,()=>{}),_0x15c1e7[_0x33e08d(0x137)](_0x232510,_0x1cee56));}else fs[_0x33e08d(0x1ae)](_0x2e07b5,()=>{}),_0x15c1e7['KAXiB'](_0x232510,_0x1cee56);}),_0x4be670[_0x5b6333(0x187)](_0x3340e9,function(_0x3280ac,_0x3c1ea5){const _0xb157be=_0x5b6333,_0x16e47={};_0x16e47[_0xb157be(0x139)]=_0x15c1e7[_0xb157be(0x147)];const _0x470f11=_0x16e47;if(_0x3280ac){fs['unlink'](_0x2e07b5,()=>{}),_0x15c1e7[_0xb157be(0x15e)](_0x232510,_0x3280ac);return;}_0x3c1ea5['on'](_0x15c1e7[_0xb157be(0x199)],function(){const _0x35cb16=_0xb157be;_0x4f831a[_0x35cb16(0x13b)](),_0x4f831a['on'](_0x470f11[_0x35cb16(0x139)],function(){const _0x54dcfe=_0x35cb16;_0x4be670[_0x54dcfe(0x1b7)]();});}),_0x3c1ea5['pipe'](_0x4f831a);});}}),_0x4be670['on'](_0x376cfd[_0x47f275(0x1b0)],_0x54cac3=>{_0x3de49e['XKPXk'](_0x232510,_0x54cac3);}),_0x4be670[_0x47f275(0x17a)](_0x376cfd['hnePR'],()=>{const _0x241eb3=_0x47f275,_0x17bcab={'UvKiC':function(_0x309fc0,_0x7c0d83){const _0x3fb9b9=a84_0x1b0e;return _0x3de49e[_0x3fb9b9(0x18d)](_0x309fc0,_0x7c0d83);},'vMQyr':_0x3de49e[_0x241eb3(0x1e5)],'lpCQg':function(_0xc6271b,_0x56cb60){return _0x3de49e['XKPXk'](_0xc6271b,_0x56cb60);},'nBDvP':function(_0x3eea0e,_0x582db5){return _0x3de49e['nfRjO'](_0x3eea0e,_0x582db5);},'tOzod':function(_0x2c0118,_0x1092b8){const _0x2178a5=_0x241eb3;return _0x3de49e[_0x2178a5(0x1fb)](_0x2c0118,_0x1092b8);}};fs[_0x241eb3(0x1ae)](_0x1322d9,_0x196ab9=>{const _0x4a2556=_0x241eb3;_0x196ab9&&logger[_0x4a2556(0x1a0)](_0x4a2556(0x149)+_0x1322d9);});const _0x59ec54=path[_0x241eb3(0x1c6)](_0x16b52f,_0xfbc61b+_0x241eb3(0x1d7)+process[_0x241eb3(0x205)]),_0x34fa86=path[_0x241eb3(0x1c6)](_0x16b52f,_0xfbc61b);fs['chmod'](_0x59ec54,_0x3de49e[_0x241eb3(0x1b5)],function(_0x54f4d3){const _0x2417d3=_0x241eb3;if(_0x54f4d3){_0x4be670[_0x2417d3(0x1cf)](),fs[_0x2417d3(0x1ae)](_0x59ec54,()=>{}),_0x15c1e7[_0x2417d3(0x196)](_0x232510,_0x54f4d3);return;}fs[_0x2417d3(0x1c2)](_0x59ec54,_0x34fa86,function(_0x51c173){const _0x2514e8=_0x2417d3;if(_0x51c173){if(_0x17bcab['UvKiC'](_0x51c173[_0x2514e8(0x13a)],_0x17bcab[_0x2514e8(0x1dd)])){_0x4be670[_0x2514e8(0x1cf)](),fs['unlink'](_0x59ec54,()=>{}),_0x17bcab[_0x2514e8(0x131)](_0x232510,_0x51c173);return;}logger[_0x2514e8(0x1a0)](_0x2514e8(0x14e)+_0x51c173[_0x2514e8(0x1f2)]);try{fs[_0x2514e8(0x1c9)](_0x59ec54,_0x34fa86);}catch(_0x12e2b1){_0x4be670[_0x2514e8(0x1cf)](),fs[_0x2514e8(0x1ae)](_0x59ec54,()=>{}),_0x17bcab[_0x2514e8(0x17d)](_0x232510,_0x12e2b1);return;}fs['unlink'](_0x59ec54,_0x19f5c9=>{const _0x5f2509=_0x2514e8;_0x19f5c9&&logger[_0x5f2509(0x1a0)]('Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20'+_0x19f5c9[_0x5f2509(0x1f2)]);});}_0x4be670['close'](),_0x17bcab['tOzod'](_0x2102e6,_0x34fa86);});});});});});}static[a84_0x6f7930(0x12c)](){const _0x2fa829=a84_0x6f7930;if(process[_0x2fa829(0x1a6)][_0x2fa829(0x1cd)])return JSON['parse'](process['env'][_0x2fa829(0x1cd)]);return this[_0x2fa829(0x12f)];}static[a84_0x6f7930(0x163)](){const _0x4bb712=a84_0x6f7930;if(process[_0x4bb712(0x1a6)][_0x4bb712(0x18e)])return JSON[_0x4bb712(0x1a2)](process[_0x4bb712(0x1a6)][_0x4bb712(0x18e)]);return this[_0x4bb712(0x151)];}static['setFrameworkDetail'](_0x3c05f5,_0x221cd7){const _0x13bb03=a84_0x6f7930,_0x243faf={'ntllq':_0x13bb03(0x176),'VtegM':function(_0x41f06f,_0x4adb00){return _0x41f06f(_0x4adb00);},'mdcQt':function(_0x12093f,_0x360875){return _0x12093f(_0x360875);},'uXkAJ':function(_0x4e489c,_0x5af643){return _0x4e489c||_0x5af643;}},_0x5ec8f6=_0x243faf[_0x13bb03(0x19e)][_0x13bb03(0x200)]('|');let _0x339d35=0x0;while(!![]){switch(_0x5ec8f6[_0x339d35++]){case'0':this[_0x13bb03(0x151)]={'name':_0x221cd7,'version':_0x243faf[_0x13bb03(0x162)](getFrameworkVersion,_0x221cd7)};continue;case'1':process[_0x13bb03(0x1a6)][_0x13bb03(0x1cd)]=JSON['stringify'](this[_0x13bb03(0x12f)]);continue;case'2':process[_0x13bb03(0x1a6)][_0x13bb03(0x18e)]=JSON[_0x13bb03(0x152)](this[_0x13bb03(0x151)]);continue;case'3':this[_0x13bb03(0x12f)]={'name':_0x3c05f5,'version':{[_0x3c05f5]:_0x243faf[_0x13bb03(0x1af)](getFrameworkVersion,_0x3c05f5)}};continue;case'4':_0x243faf[_0x13bb03(0x190)](!_0x3c05f5,!_0x221cd7)&&logger[_0x13bb03(0x1c3)](_0x13bb03(0x1f3)+_0x3c05f5+_0x13bb03(0x1f0)+_0x221cd7);continue;}break;}}static['getHookRegistryKey'](_0x26a886,_0x43db62){return _0x26a886+':'+_0x43db62;}static[a84_0x6f7930(0x1e8)](){return process['pid']+':'+threadId;}static[a84_0x6f7930(0x206)](_0x4bea2a){const _0x4fb083=a84_0x6f7930;if(_0x4bea2a[_0x4fb083(0x12e)]&&_0x4bea2a[_0x4fb083(0x12e)][_0x4fb083(0x1cc)])return!![];return![];}static[a84_0x6f7930(0x1ee)](_0x239a78){const _0x2597ef=a84_0x6f7930;if(_0x239a78['testContextOptions']&&_0x239a78[_0x2597ef(0x12e)][_0x2597ef(0x1fe)])return!![];return![];}static[a84_0x6f7930(0x1f7)](_0x24745b){const _0x160aaa=new RegExp(TestFrameworkConstants['HOOK_REGEX']);return _0x160aaa['test'](_0x24745b);}static[a84_0x6f7930(0x1d8)](_0x2787fd,_0x4996f1){const _0x540dbc=a84_0x6f7930,_0x54ef82={};_0x54ef82[_0x540dbc(0x197)]=function(_0xa3ed44,_0x5e5897){return _0xa3ed44!==_0x5e5897;},_0x54ef82['lfOII']=function(_0x5c6d5a,_0x5bb982){return _0x5c6d5a===_0x5bb982;},_0x54ef82[_0x540dbc(0x18c)]='object';const _0x1c1008=_0x54ef82;for(const [_0xdc8721,_0x1a331e]of Object[_0x540dbc(0x1ef)](_0x4996f1)){if(_0x1c1008[_0x540dbc(0x197)](_0x1a331e,null)&&_0x1c1008[_0x540dbc(0x16a)](typeof _0x1a331e,_0x1c1008[_0x540dbc(0x18c)])&&!Array['isArray'](_0x1a331e))_0x2787fd[_0xdc8721]=this['mergeObject'](_0x2787fd[_0xdc8721]||{},_0x1a331e);else Array['isArray'](_0x1a331e)?_0x2787fd[_0xdc8721]=(_0x2787fd[_0xdc8721]||[])[_0x540dbc(0x13d)](_0x1a331e):_0x2787fd[_0xdc8721]=_0x1a331e;}return _0x2787fd;}}function a84_0x1b0e(_0x1f90b8,_0x3d7ce5){const _0x868503=a84_0x8685();return a84_0x1b0e=function(_0x1b0ecc,_0x5c543b){_0x1b0ecc=_0x1b0ecc-0x12a;let _0x3d5071=_0x868503[_0x1b0ecc];return _0x3d5071;},a84_0x1b0e(_0x1f90b8,_0x3d7ce5);}module[a84_0x6f7930(0x198)]=CLIUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a85_0x1c6409=a85_0x138c;(function(_0x5cafb5,_0x45bb41){const _0x10709b=a85_0x138c,_0x3cd99a=_0x5cafb5();while(!![]){try{const _0x3033f5=parseInt(_0x10709b(0x1af))/0x1+parseInt(_0x10709b(0x1f3))/0x2+-parseInt(_0x10709b(0x1d1))/0x3+-parseInt(_0x10709b(0x228))/0x4+parseInt(_0x10709b(0x1c5))/0x5*(-parseInt(_0x10709b(0x218))/0x6)+-parseInt(_0x10709b(0x1ba))/0x7*(parseInt(_0x10709b(0x1ae))/0x8)+parseInt(_0x10709b(0x227))/0x9;if(_0x3033f5===_0x45bb41)break;else _0x3cd99a['push'](_0x3cd99a['shift']());}catch(_0x24b9d4){_0x3cd99a['push'](_0x3cd99a['shift']());}}}(a85_0x3f9e,0xcb74b));function a85_0x138c(_0x46f108,_0x1d32ae){const _0x3f9ed2=a85_0x3f9e();return a85_0x138c=function(_0x138c35,_0x1ba74c){_0x138c35=_0x138c35-0x1a4;let _0x294c33=_0x3f9ed2[_0x138c35];return _0x294c33;},a85_0x138c(_0x46f108,_0x1d32ae);}function a85_0x3f9e(){const _0xc691f5=['fJEiG','RQSXA','tmpdir','QHIRR','CjKNh','COCdn','TEST','UVXBF','106626JjcYEv','elrtI','readFileSync','mtimeMs','buildHashedId','buildLevelTags','./modules/playwrightDriverModule','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','setCustomTags','\x20->\x20values=','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','addMultipleEntries','isRunning','KEY_CUSTOM_TAGS','cpqOc','15995556mCASoE','230896ErdyLT','setTestDetails','./framework/automationFramework','parse','./state/testFrameworkState','getState','getTestFrameworkDetail','PluWD','length','keys','../../helpers/classLogger','getBuildTagsFilePath','statSync','name','resolveInstance','PtXDN','exports','KgZwu','136Milhxg','797911QRKLyg','toObject','MODULE_NAME','getTrackedInstance','now','POST','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','values','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20','CustomTagManager','kqRly','309393dgZslH',',\x20finalTags=','xdjIS','testInfo','writeFile','modules','CvtUM','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','mergeIntoTags','kJpVn','from','425sueFgf','testLevelTags','dZnYl','trim','promises','ms)\x20','getBuildTagsRunId','entries','multi_dropdown','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','./state/hookState','join','1018302YxgQqr','message',',\x20key=','../../helpers/helper','getInstance','DPifp','_testInternals','./cliUtils','yKwFF','isArray','./modules/testhubModule',',\x20existingTags=','VVThF','getTestDetails','testhubConfig','BUILD_TAG_FILE_PREFIX','ULOoU','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','PzBbd','get','fblnu','clearTags','unlinkSync','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20','getTestIdentifierFromTestInfo','PIqsV','env','mergeBuildLevelTags','getAllData','utf8','string','.json','includes','wGVEv','1834472EUVAQA','jEsfC','./TestInfo','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','jest','KEY_TEST_ID','stringify','getTestLevelTags','nOKrn','./browserstackCLI','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','readdirSync','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','getTestUUID','pid',',\x20values=','getTestFramework','path','iXPPJ','debug','getBuildLevelTags','aggregateBuildLevelTagsFromTmp','endsWith','mergeValues','Pacei','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','YDEdF','retry','field_type'];a85_0x3f9e=function(){return _0xc691f5;};return a85_0x3f9e();}const fs=require('fs'),os=require('os'),path=require(a85_0x1c6409(0x204)),helper=require(a85_0x1c6409(0x1d4)),AutomationFramework=require(a85_0x1c6409(0x22a)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),PlaywrightDriverModule=require(a85_0x1c6409(0x21e)),TestInfo=require(a85_0x1c6409(0x1f5)),TestHubModule=require(a85_0x1c6409(0x1db)),{createClassLogger}=require(a85_0x1c6409(0x1a6)),logger=createClassLogger(a85_0x1c6409(0x1b8)),BUILD_TAG_FILE_PREFIX='bstack_build_tags_';function getBuildTagsRunId(){const _0x1e50b1=a85_0x1c6409,_0x5c8f22={};_0x5c8f22[_0x1e50b1(0x1ab)]=function(_0x1513fb,_0x2480ce){return _0x1513fb===_0x2480ce;},_0x5c8f22[_0x1e50b1(0x1c7)]='null';const _0x4bdb53=_0x5c8f22,_0x484d47=process[_0x1e50b1(0x1eb)]['BROWSERSTACK_TESTHUB_UUID'];if(!_0x484d47||_0x4bdb53[_0x1e50b1(0x1ab)](_0x484d47,_0x4bdb53[_0x1e50b1(0x1c7)]))return null;return _0x484d47;}function getBuildTagsFilePath(_0x4bba56){const _0x472e8f=a85_0x1c6409;return path[_0x472e8f(0x1d0)](os[_0x472e8f(0x212)](),''+BUILD_TAG_FILE_PREFIX+_0x4bba56+'_'+process[_0x472e8f(0x201)]+'.json');}class CustomTagManager{static [a85_0x1c6409(0x21d)]={};static ['testLevelTags']={};static['mergeValues'](_0xa0513c,_0x23982f){const _0x39057d=a85_0x1c6409;return Array[_0x39057d(0x1c4)](new Set([..._0xa0513c||[],..._0x23982f||[]]));}static[a85_0x1c6409(0x1c2)](_0x389bf4,_0xa138c5,_0x16610d){const _0x2d1da6=a85_0x1c6409,_0x1bfa54={};_0x1bfa54[_0x2d1da6(0x1c0)]='multi_dropdown';const _0x51faea=_0x1bfa54;if(!_0x389bf4[_0xa138c5]){const _0x5d17d9={};_0x5d17d9['field_type']=_0x51faea['CvtUM'],_0x5d17d9[_0x2d1da6(0x1b6)]=[..._0x16610d||[]],_0x389bf4[_0xa138c5]=_0x5d17d9;}else!_0x389bf4[_0xa138c5][_0x2d1da6(0x20f)]&&(_0x389bf4[_0xa138c5][_0x2d1da6(0x20f)]=_0x51faea[_0x2d1da6(0x1c0)]),!Array['isArray'](_0x389bf4[_0xa138c5]['values'])&&(_0x389bf4[_0xa138c5][_0x2d1da6(0x1b6)]=[]),_0x389bf4[_0xa138c5][_0x2d1da6(0x1b6)]=CustomTagManager['mergeValues'](_0x389bf4[_0xa138c5][_0x2d1da6(0x1b6)],_0x16610d);return _0x389bf4;}static async[a85_0x1c6409(0x220)](_0x53df36,_0xedfd1b,_0x393820=![]){const _0x595297=a85_0x1c6409,_0x5d8061={'RQSXA':function(_0xc9011c,_0x378519){return _0xc9011c!==_0x378519;},'fblnu':_0x595297(0x1ef),'KgZwu':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','iIMtm':_0x595297(0x1e2),'kqRly':function(_0x4627d3,_0x2a84fc){return _0x4627d3===_0x2a84fc;},'PIqsV':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','cpqOc':function(_0x28a87e,_0x55c81a){return _0x28a87e===_0x55c81a;},'PzBbd':_0x595297(0x222),'QHIRR':function(_0x2fec65,_0x2a0a23){return _0x2fec65(_0x2a0a23);},'UVXBF':_0x595297(0x1fc),'fJEiG':function(_0x1d6e91){return _0x1d6e91();},'YDEdF':_0x595297(0x1cd),'Pacei':function(_0x22bd2a,_0x18e48e){return _0x22bd2a>_0x18e48e;},'LtPWl':function(_0x90b2d1,_0x50c101){return _0x90b2d1(_0x50c101);},'yKwFF':'CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','ULOoU':':jest-','nOKrn':_0x595297(0x1d8),'vXgzZ':_0x595297(0x1f7),'wGVEv':_0x595297(0x1c1),'jEsfC':function(_0x3655c8,_0x2db96c){return _0x3655c8(_0x2db96c);},'amAgI':_0x595297(0x1f6),'CjKNh':function(_0x5ef74b,_0x2de6fc){return _0x5ef74b(_0x2de6fc);},'ITNQL':_0x595297(0x22c),'xdjIS':_0x595297(0x1cf),'kJpVn':'CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright'};if(_0x5d8061[_0x595297(0x211)](typeof _0x53df36,_0x5d8061['fblnu'])){logger[_0x595297(0x206)](_0x5d8061[_0x595297(0x1ad)]);return;}if(_0x5d8061[_0x595297(0x211)](typeof _0xedfd1b,_0x5d8061[_0x595297(0x1e5)])){logger['debug'](_0x5d8061['iIMtm']);return;}if(_0x5d8061[_0x595297(0x1b9)](_0x53df36[_0x595297(0x1c8)](),'')){logger[_0x595297(0x206)](_0x5d8061[_0x595297(0x1ea)]);return;}if(_0x5d8061[_0x595297(0x226)](_0xedfd1b[_0x595297(0x1c8)](),'')){logger[_0x595297(0x206)](_0x5d8061[_0x595297(0x1e3)]);return;}const _0x33dc9a=helper['parseCommaSeparatedValues'](_0xedfd1b);if(_0x393820){const _0x43df14=_0x5d8061[_0x595297(0x213)](require,_0x5d8061[_0x595297(0x217)]),_0x403227=_0x43df14[_0x595297(0x1d5)](),_0x35d927=_0x403227&&_0x403227[_0x595297(0x1bf)][TestHubModule[_0x595297(0x1b1)]];if(_0x35d927){const _0x105ba8=_0x35d927?.[_0x595297(0x1df)]?.[_0x595297(0x1b0)]()?.[_0x595297(0x21c)];TestInfo[_0x595297(0x200)](_0x105ba8);const _0x3b4690=TestInfo[_0x595297(0x1de)](_0x105ba8),_0x56dbcd=_0x3b4690[TestFrameworkConstants[_0x595297(0x225)]]||{};CustomTagManager[_0x595297(0x1c2)](_0x56dbcd,_0x53df36,_0x33dc9a),_0x3b4690[TestFrameworkConstants[_0x595297(0x225)]]=_0x56dbcd,TestInfo[_0x595297(0x229)](_0x105ba8,_0x3b4690);!this[_0x595297(0x21d)][_0x105ba8]&&(this['buildLevelTags'][_0x105ba8]={});this[_0x595297(0x21d)][_0x105ba8][_0x53df36]=CustomTagManager[_0x595297(0x20a)](this[_0x595297(0x21d)][_0x105ba8][_0x53df36],_0x33dc9a);try{const _0x6cbde4=_0x5d8061[_0x595297(0x210)](getBuildTagsRunId);if(_0x6cbde4){const _0x36857b={};for(const [_0x239795,_0x671c51]of Object[_0x595297(0x1cc)](this[_0x595297(0x21d)][_0x105ba8]||{})){_0x36857b[_0x239795]={'field_type':_0x5d8061[_0x595297(0x20d)],'values':Array[_0x595297(0x1da)](_0x671c51)?[..._0x671c51]:[]};}_0x5d8061[_0x595297(0x20b)](Object[_0x595297(0x1a5)](_0x36857b)[_0x595297(0x1a4)],0x0)&&await fs[_0x595297(0x1c9)][_0x595297(0x1be)](_0x5d8061['LtPWl'](getBuildTagsFilePath,_0x6cbde4),JSON['stringify'](_0x36857b));}else logger['debug'](_0x5d8061[_0x595297(0x1d9)]);}catch(_0x4501d9){logger[_0x595297(0x206)]('CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20'+(_0x4501d9&&_0x4501d9[_0x595297(0x1d2)]?_0x4501d9[_0x595297(0x1d2)]:_0x4501d9));}}}else{let _0x3062e1;const _0x6b250b=global['__jestCurrentTestIdentifier'];let _0x49a924=![];if(_0x6b250b&&_0x6b250b[_0x595297(0x1f1)](_0x5d8061[_0x595297(0x1e1)]))_0x49a924=!![],_0x3062e1=_0x6b250b;else try{const _0x42298f=_0x5d8061[_0x595297(0x213)](require,_0x5d8061[_0x595297(0x1fb)]),_0x33648e=_0x5d8061['QHIRR'](require,_0x5d8061['UVXBF']);if(_0x33648e[_0x595297(0x1d5)]()[_0x595297(0x224)]()){const _0x160929=_0x42298f[_0x595297(0x22e)]();if(_0x5d8061['cpqOc'](_0x160929?.[_0x595297(0x1a9)]?.['toLowerCase'](),_0x5d8061['vXgzZ'])){const _0x195324=AutomationFramework[_0x595297(0x1b2)]();_0x3062e1=AutomationFramework[_0x595297(0x22d)](_0x195324,PlaywrightDriverModule['KEY_TEST_ID'],''),_0x3062e1&&_0x3062e1['includes'](_0x5d8061[_0x595297(0x1e1)])&&(_0x49a924=!![]);}}}catch(_0xbb576c){logger[_0x595297(0x206)](_0x595297(0x1ff)+_0xbb576c);}if(_0x49a924){if(!_0x3062e1)throw new Error(_0x5d8061[_0x595297(0x1f2)]);const _0x31a14a=_0x5d8061[_0x595297(0x1f4)](require,_0x5d8061[_0x595297(0x217)]),_0x5bd004=_0x31a14a[_0x595297(0x1d5)]()[_0x595297(0x203)]();if(!_0x5bd004)throw new Error(_0x5d8061['amAgI']);const _0x46324b=_0x5d8061['CjKNh'](require,_0x5d8061['ITNQL']),_0x463411=_0x5d8061[_0x595297(0x214)](require,_0x5d8061[_0x595297(0x1bc)]),_0x42fe0a=_0x5bd004[_0x595297(0x1aa)](_0x46324b[_0x595297(0x216)],_0x463411[_0x595297(0x1b4)]);if(!_0x42fe0a)throw new Error(_0x5d8061[_0x595297(0x1c3)]);const _0x5bd981=_0x42fe0a[_0x595297(0x1ed)]()[_0x595297(0x1e4)](_0x3062e1)||{},_0x3d8a56=_0x5bd981[TestFrameworkConstants[_0x595297(0x225)]]||{};logger['debug'](_0x595297(0x1ce)+_0x3062e1+_0x595297(0x1d3)+_0x53df36+_0x595297(0x202)+JSON[_0x595297(0x1f9)](_0x33dc9a)+_0x595297(0x1dc)+JSON[_0x595297(0x1f9)](_0x3d8a56)),CustomTagManager[_0x595297(0x1c2)](_0x3d8a56,_0x53df36,_0x33dc9a),logger['debug']('[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key='+_0x53df36+_0x595297(0x221)+JSON[_0x595297(0x1f9)](_0x3d8a56[_0x53df36][_0x595297(0x1b6)]));const _0x298026={[TestFrameworkConstants[_0x595297(0x225)]]:_0x3d8a56},_0x450fb1={};_0x450fb1[_0x3062e1]=_0x298026,_0x42fe0a[_0x595297(0x223)](_0x450fb1),logger[_0x595297(0x206)]('[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier='+_0x3062e1+_0x595297(0x1bb)+JSON['stringify'](_0x3d8a56)),!this[_0x595297(0x1c6)][_0x3062e1]&&(this[_0x595297(0x1c6)][_0x3062e1]={}),this['testLevelTags'][_0x3062e1][_0x53df36]=CustomTagManager['mergeValues'](this['testLevelTags'][_0x3062e1][_0x53df36],_0x33dc9a);}else{const _0x35b53d=global['__workerDetails']?.['currentTest']?.[_0x595297(0x1bd)];if(!_0x35b53d){const _0x3b47c1=AutomationFramework[_0x595297(0x1b2)]();_0x3062e1=AutomationFramework[_0x595297(0x22d)](_0x3b47c1,PlaywrightDriverModule[_0x595297(0x1f8)],'');}else _0x3062e1=TestInfo[_0x595297(0x1e9)](_0x35b53d,_0x35b53d[_0x595297(0x20e)]);const _0x1b78db=TestInfo[_0x595297(0x1de)](_0x3062e1),_0x416442=_0x1b78db[TestFrameworkConstants[_0x595297(0x225)]]||{};CustomTagManager[_0x595297(0x1c2)](_0x416442,_0x53df36,_0x33dc9a),_0x1b78db[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x416442,TestInfo[_0x595297(0x229)](_0x3062e1,_0x1b78db),!this[_0x595297(0x1c6)][_0x3062e1]&&(this[_0x595297(0x1c6)][_0x3062e1]={}),this[_0x595297(0x1c6)][_0x3062e1][_0x53df36]=CustomTagManager[_0x595297(0x20a)](this[_0x595297(0x1c6)][_0x3062e1][_0x53df36],_0x33dc9a);}}}static[a85_0x1c6409(0x207)](){const _0xdf1798=a85_0x1c6409,_0x57eb24={...this[_0xdf1798(0x21d)]};return _0x57eb24;}static[a85_0x1c6409(0x1fa)](){const _0x419dad={...this['testLevelTags']};return _0x419dad;}static[a85_0x1c6409(0x1e6)](){const _0x29d12e=a85_0x1c6409;this[_0x29d12e(0x21d)]={},this[_0x29d12e(0x1c6)]={};}static[a85_0x1c6409(0x1ec)](_0x2aa0e6,_0x29dda9){const _0x134066=a85_0x1c6409,_0xbc633f={};_0xbc633f['COCdn']=function(_0x1367c1,_0x41dd14){return _0x1367c1||_0x41dd14;};const _0x45ed0a=_0xbc633f;if(!_0x2aa0e6)return;!this[_0x134066(0x21d)][_0x2aa0e6]&&(this['buildLevelTags'][_0x2aa0e6]={});for(const [_0x3f05d4,_0x1f0de2]of Object[_0x134066(0x1cc)](_0x45ed0a[_0x134066(0x215)](_0x29dda9,{}))){if(!_0x1f0de2||!Array[_0x134066(0x1da)](_0x1f0de2[_0x134066(0x1b6)]))continue;this['buildLevelTags'][_0x2aa0e6][_0x3f05d4]=CustomTagManager[_0x134066(0x20a)](this['buildLevelTags'][_0x2aa0e6][_0x3f05d4],_0x1f0de2[_0x134066(0x1b6)]);}}static[a85_0x1c6409(0x208)](_0x453464,_0x92af0e){const _0x34aae5=a85_0x1c6409,_0x4b915d={};_0x4b915d['elrtI']=_0x34aae5(0x20c),_0x4b915d['PluWD']=function(_0x3d0af4,_0x1d7040){return _0x3d0af4*_0x1d7040;},_0x4b915d[_0x34aae5(0x205)]=function(_0x284626,_0x30b12e){return _0x284626*_0x30b12e;},_0x4b915d[_0x34aae5(0x1d6)]=function(_0x5463cf,_0x1eca39){return _0x5463cf>_0x1eca39;},_0x4b915d['oJLuC']=function(_0x175bd2,_0x2727c7){return _0x175bd2-_0x2727c7;},_0x4b915d[_0x34aae5(0x1dd)]=_0x34aae5(0x1ee);const _0x2a5433=_0x4b915d;if(!_0x453464)return logger[_0x34aae5(0x206)](_0x2a5433[_0x34aae5(0x219)]),0x0;let _0xdb0074;try{_0xdb0074=os[_0x34aae5(0x212)]();}catch(_0x41eea4){return logger[_0x34aae5(0x206)](_0x34aae5(0x1fd)+_0x41eea4),0x0;}let _0x2943e7;try{_0x2943e7=fs[_0x34aae5(0x1fe)](_0xdb0074);}catch(_0x52ea19){return logger[_0x34aae5(0x206)](_0x34aae5(0x21f)+_0x52ea19),0x0;}const _0xcd4b5a=''+BUILD_TAG_FILE_PREFIX+_0x453464+'_',_0x2b9c34=_0x2943e7['filter'](_0x40fedb=>_0x40fedb['startsWith'](_0xcd4b5a)&&_0x40fedb[_0x34aae5(0x209)](_0x34aae5(0x1f0))),_0x127402=_0x2a5433['PluWD'](_0x2a5433[_0x34aae5(0x205)](_0x2a5433[_0x34aae5(0x22f)](0x2,0x3c),0x3c),0x3e8);let _0x34f0ed=0x0;for(const _0xc68bcc of _0x2b9c34){const _0x103fc2=path['join'](_0xdb0074,_0xc68bcc);try{const _0x3c5863=fs[_0x34aae5(0x1a8)](_0x103fc2);if(_0x2a5433[_0x34aae5(0x1d6)](_0x2a5433['oJLuC'](Date[_0x34aae5(0x1b3)](),_0x3c5863[_0x34aae5(0x21b)]),_0x127402)){logger[_0x34aae5(0x206)](_0x34aae5(0x1b5)+_0x127402+_0x34aae5(0x1ca)+_0xc68bcc);try{fs[_0x34aae5(0x1e7)](_0x103fc2);}catch(_0x10ddab){logger[_0x34aae5(0x206)](_0x34aae5(0x1b7)+_0xc68bcc+':\x20'+(_0x10ddab&&_0x10ddab[_0x34aae5(0x1d2)]?_0x10ddab['message']:_0x10ddab));}continue;}const _0x1316b4=fs[_0x34aae5(0x21a)](_0x103fc2,_0x2a5433[_0x34aae5(0x1dd)]),_0x3608c5=JSON[_0x34aae5(0x22b)](_0x1316b4);this[_0x34aae5(0x1ec)](_0x92af0e,_0x3608c5),_0x34f0ed+=0x1;}catch(_0x2dc489){logger[_0x34aae5(0x206)](_0x34aae5(0x1e8)+_0xc68bcc+':\x20'+(_0x2dc489&&_0x2dc489[_0x34aae5(0x1d2)]?_0x2dc489[_0x34aae5(0x1d2)]:_0x2dc489));}try{fs[_0x34aae5(0x1e7)](_0x103fc2);}catch(_0x5da010){logger['debug']('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20'+_0xc68bcc+':\x20'+(_0x5da010&&_0x5da010[_0x34aae5(0x1d2)]?_0x5da010[_0x34aae5(0x1d2)]:_0x5da010));}}return _0x34f0ed;}}const a85_0x29591c={};a85_0x29591c[a85_0x1c6409(0x1cb)]=getBuildTagsRunId,a85_0x29591c[a85_0x1c6409(0x1a7)]=getBuildTagsFilePath,a85_0x29591c[a85_0x1c6409(0x1e0)]=BUILD_TAG_FILE_PREFIX,CustomTagManager[a85_0x1c6409(0x1d7)]=a85_0x29591c,module[a85_0x1c6409(0x1ac)]=CustomTagManager;
|
|
1
|
+
'use strict';const a85_0x4c0812=a85_0x3caf;(function(_0x112c84,_0x55b3ef){const _0x5e46fb=a85_0x3caf,_0x2a2fc8=_0x112c84();while(!![]){try{const _0x312b16=parseInt(_0x5e46fb(0x18f))/0x1+parseInt(_0x5e46fb(0x1d3))/0x2*(parseInt(_0x5e46fb(0x1c2))/0x3)+-parseInt(_0x5e46fb(0x1b1))/0x4*(-parseInt(_0x5e46fb(0x198))/0x5)+-parseInt(_0x5e46fb(0x15c))/0x6+-parseInt(_0x5e46fb(0x16e))/0x7*(-parseInt(_0x5e46fb(0x19b))/0x8)+parseInt(_0x5e46fb(0x187))/0x9*(parseInt(_0x5e46fb(0x1d7))/0xa)+-parseInt(_0x5e46fb(0x1d1))/0xb;if(_0x312b16===_0x55b3ef)break;else _0x2a2fc8['push'](_0x2a2fc8['shift']());}catch(_0x33db5c){_0x2a2fc8['push'](_0x2a2fc8['shift']());}}}(a85_0x6447,0x3eced));const fs=require('fs'),os=require('os'),path=require('path'),helper=require(a85_0x4c0812(0x15f)),AutomationFramework=require(a85_0x4c0812(0x1a1)),TestFrameworkConstants=require(a85_0x4c0812(0x19c)),PlaywrightDriverModule=require(a85_0x4c0812(0x1aa)),TestInfo=require(a85_0x4c0812(0x1b6)),TestHubModule=require(a85_0x4c0812(0x1b7)),{createClassLogger}=require(a85_0x4c0812(0x1bb)),logger=createClassLogger(a85_0x4c0812(0x163)),BUILD_TAG_FILE_PREFIX=a85_0x4c0812(0x1c4);function getBuildTagsRunId(){const _0x29b9fc=a85_0x4c0812,_0x22aabd={};_0x22aabd[_0x29b9fc(0x1b3)]=function(_0x3d8432,_0x1e5a97){return _0x3d8432===_0x1e5a97;},_0x22aabd[_0x29b9fc(0x1ae)]=_0x29b9fc(0x180);const _0x21a5d3=_0x22aabd,_0x1a2f66=process[_0x29b9fc(0x156)][_0x29b9fc(0x197)];if(!_0x1a2f66||_0x21a5d3[_0x29b9fc(0x1b3)](_0x1a2f66,_0x21a5d3[_0x29b9fc(0x1ae)]))return null;return _0x1a2f66;}function getBuildTagsFilePath(_0x239642){const _0x51fdc2=a85_0x4c0812;return path['join'](os[_0x51fdc2(0x1b4)](),''+BUILD_TAG_FILE_PREFIX+_0x239642+'_'+process['pid']+_0x51fdc2(0x168));}class CustomTagManager{static [a85_0x4c0812(0x183)]={};static [a85_0x4c0812(0x1be)]={};static[a85_0x4c0812(0x15d)](_0x3458e5,_0x205fb9){return Array['from'](new Set([..._0x3458e5||[],..._0x205fb9||[]]));}static['mergeIntoTags'](_0x3ba64f,_0x121253,_0x2e7750){const _0x2d9914=a85_0x4c0812,_0x10a773={};_0x10a773[_0x2d9914(0x1b2)]='multi_dropdown';const _0x19417a=_0x10a773;if(!_0x3ba64f[_0x121253]){const _0x1cb887={};_0x1cb887[_0x2d9914(0x17e)]=_0x19417a[_0x2d9914(0x1b2)],_0x1cb887['values']=[..._0x2e7750||[]],_0x3ba64f[_0x121253]=_0x1cb887;}else!_0x3ba64f[_0x121253]['field_type']&&(_0x3ba64f[_0x121253][_0x2d9914(0x17e)]=_0x19417a[_0x2d9914(0x1b2)]),!Array[_0x2d9914(0x16c)](_0x3ba64f[_0x121253]['values'])&&(_0x3ba64f[_0x121253][_0x2d9914(0x1d4)]=[]),_0x3ba64f[_0x121253][_0x2d9914(0x1d4)]=CustomTagManager[_0x2d9914(0x15d)](_0x3ba64f[_0x121253][_0x2d9914(0x1d4)],_0x2e7750);return _0x3ba64f;}static async[a85_0x4c0812(0x1bc)](_0x43ca0b,_0x143b7c,_0x426550=![]){const _0x3da7c2=a85_0x4c0812,_0x136c73={'JMYzm':function(_0x329625,_0x57d751){return _0x329625!==_0x57d751;},'GKEHy':'string','GcNQG':_0x3da7c2(0x181),'LJVhU':function(_0x7f5631,_0x1d56aa){return _0x7f5631!==_0x1d56aa;},'bCpcf':_0x3da7c2(0x1b0),'lDSHq':function(_0x332196,_0x4d780a){return _0x332196===_0x4d780a;},'EigXh':_0x3da7c2(0x165),'pfWaT':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','CjmJz':function(_0x17627c,_0x418b50){return _0x17627c(_0x418b50);},'NYChU':_0x3da7c2(0x192),'Aamhf':function(_0x2c788b){return _0x2c788b();},'gbGGa':_0x3da7c2(0x1a4),'QffrO':function(_0x5e4b3e,_0x342ea1){return _0x5e4b3e>_0x342ea1;},'aftYE':function(_0x28dcb8,_0x133833){return _0x28dcb8(_0x133833);},'yTgmt':'CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','TzBPP':':jest-','erDSK':function(_0x5258ad,_0x250b7b){return _0x5258ad(_0x250b7b);},'nOfFI':_0x3da7c2(0x158),'lGgRN':_0x3da7c2(0x16b),'MzoXa':_0x3da7c2(0x18c),'OFyna':_0x3da7c2(0x18b),'bFbgm':function(_0x3c6ef1,_0x3f4764){return _0x3c6ef1(_0x3f4764);},'StzVA':'./state/testFrameworkState','BAral':'./state/hookState','gJXMp':'CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright'};if(_0x136c73[_0x3da7c2(0x19a)](typeof _0x43ca0b,_0x136c73[_0x3da7c2(0x1d2)])){logger['debug'](_0x136c73[_0x3da7c2(0x1a0)]);return;}if(_0x136c73[_0x3da7c2(0x1a9)](typeof _0x143b7c,_0x136c73['GKEHy'])){logger[_0x3da7c2(0x154)](_0x136c73[_0x3da7c2(0x16a)]);return;}if(_0x136c73['lDSHq'](_0x43ca0b[_0x3da7c2(0x1a3)](),'')){logger[_0x3da7c2(0x154)](_0x136c73[_0x3da7c2(0x191)]);return;}if(_0x136c73[_0x3da7c2(0x161)](_0x143b7c[_0x3da7c2(0x1a3)](),'')){logger[_0x3da7c2(0x154)](_0x136c73[_0x3da7c2(0x1d8)]);return;}const _0x5c95cd=helper['parseCommaSeparatedValues'](_0x143b7c);if(_0x426550){const _0x3f0edc=_0x136c73[_0x3da7c2(0x170)](require,_0x136c73['NYChU']),_0x4a15c2=_0x3f0edc[_0x3da7c2(0x1c1)](),_0x5d79be=_0x4a15c2&&_0x4a15c2[_0x3da7c2(0x1a6)][TestHubModule[_0x3da7c2(0x175)]];if(_0x5d79be){const _0x380193=_0x5d79be?.[_0x3da7c2(0x18e)]?.[_0x3da7c2(0x1af)]()?.[_0x3da7c2(0x1b5)];TestInfo[_0x3da7c2(0x1a5)](_0x380193);const _0x281418=TestInfo[_0x3da7c2(0x169)](_0x380193),_0x4b4fe3=_0x281418[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};CustomTagManager[_0x3da7c2(0x186)](_0x4b4fe3,_0x43ca0b,_0x5c95cd),_0x281418[TestFrameworkConstants[_0x3da7c2(0x1c0)]]=_0x4b4fe3,TestInfo[_0x3da7c2(0x195)](_0x380193,_0x281418);!this['buildLevelTags'][_0x380193]&&(this[_0x3da7c2(0x183)][_0x380193]={});this[_0x3da7c2(0x183)][_0x380193][_0x43ca0b]=CustomTagManager[_0x3da7c2(0x15d)](this[_0x3da7c2(0x183)][_0x380193][_0x43ca0b],_0x5c95cd);try{const _0x2aae78=_0x136c73[_0x3da7c2(0x182)](getBuildTagsRunId);if(_0x2aae78){const _0x467c03={};for(const [_0xbf87b3,_0xff5508]of Object['entries'](this[_0x3da7c2(0x183)][_0x380193]||{})){_0x467c03[_0xbf87b3]={'field_type':_0x136c73[_0x3da7c2(0x1b8)],'values':Array[_0x3da7c2(0x16c)](_0xff5508)?[..._0xff5508]:[]};}_0x136c73['QffrO'](Object[_0x3da7c2(0x194)](_0x467c03)['length'],0x0)&&await fs[_0x3da7c2(0x17d)][_0x3da7c2(0x1c7)](_0x136c73[_0x3da7c2(0x1ac)](getBuildTagsFilePath,_0x2aae78),JSON['stringify'](_0x467c03));}else logger['debug'](_0x136c73[_0x3da7c2(0x1b9)]);}catch(_0x4815eb){logger[_0x3da7c2(0x154)](_0x3da7c2(0x171)+(_0x4815eb&&_0x4815eb[_0x3da7c2(0x193)]?_0x4815eb['message']:_0x4815eb));}}}else{let _0x300c70;const _0x396333=global['__jestCurrentTestIdentifier'];let _0x39e413=![];if(_0x396333&&_0x396333[_0x3da7c2(0x19f)](_0x136c73[_0x3da7c2(0x1a8)]))_0x39e413=!![],_0x300c70=_0x396333;else try{const _0x1cd4e8=_0x136c73[_0x3da7c2(0x1bd)](require,_0x136c73[_0x3da7c2(0x176)]),_0x140c73=_0x136c73[_0x3da7c2(0x1bd)](require,_0x136c73[_0x3da7c2(0x1ca)]);if(_0x140c73[_0x3da7c2(0x1c1)]()[_0x3da7c2(0x172)]()){const _0x2b8797=_0x1cd4e8[_0x3da7c2(0x177)]();if(_0x136c73[_0x3da7c2(0x161)](_0x2b8797?.[_0x3da7c2(0x1c6)]?.[_0x3da7c2(0x1da)](),_0x136c73['lGgRN'])){const _0x1cd881=AutomationFramework[_0x3da7c2(0x18a)]();_0x300c70=AutomationFramework[_0x3da7c2(0x17a)](_0x1cd881,PlaywrightDriverModule[_0x3da7c2(0x164)],''),_0x300c70&&_0x300c70['includes'](_0x136c73[_0x3da7c2(0x1a8)])&&(_0x39e413=!![]);}}}catch(_0x48a4ac){logger['debug'](_0x3da7c2(0x162)+_0x48a4ac);}if(_0x39e413){if(!_0x300c70)throw new Error(_0x136c73[_0x3da7c2(0x1d6)]);const _0x152588=_0x136c73[_0x3da7c2(0x170)](require,_0x136c73['NYChU']),_0x5327ee=_0x152588[_0x3da7c2(0x1c1)]()['getTestFramework']();if(!_0x5327ee)throw new Error(_0x136c73[_0x3da7c2(0x1d0)]);const _0x358b32=_0x136c73[_0x3da7c2(0x1c5)](require,_0x136c73[_0x3da7c2(0x159)]),_0x236e06=_0x136c73[_0x3da7c2(0x1c5)](require,_0x136c73[_0x3da7c2(0x16d)]),_0x344f2b=_0x5327ee['resolveInstance'](_0x358b32['TEST'],_0x236e06[_0x3da7c2(0x1c8)]);if(!_0x344f2b)throw new Error(_0x136c73[_0x3da7c2(0x190)]);const _0x359d72=_0x344f2b['getAllData']()['get'](_0x300c70)||{},_0x3a0fe6=_0x359d72[TestFrameworkConstants[_0x3da7c2(0x1c0)]]||{};logger[_0x3da7c2(0x154)](_0x3da7c2(0x155)+_0x300c70+_0x3da7c2(0x1ab)+_0x43ca0b+',\x20values='+JSON[_0x3da7c2(0x196)](_0x5c95cd)+',\x20existingTags='+JSON['stringify'](_0x3a0fe6)),CustomTagManager['mergeIntoTags'](_0x3a0fe6,_0x43ca0b,_0x5c95cd),logger[_0x3da7c2(0x154)](_0x3da7c2(0x174)+_0x43ca0b+'\x20->\x20values='+JSON[_0x3da7c2(0x196)](_0x3a0fe6[_0x43ca0b][_0x3da7c2(0x1d4)]));const _0x4fb7b6={[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x3a0fe6},_0x1df864={};_0x1df864[_0x300c70]=_0x4fb7b6,_0x344f2b[_0x3da7c2(0x17b)](_0x1df864),logger[_0x3da7c2(0x154)]('[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier='+_0x300c70+_0x3da7c2(0x1ce)+JSON[_0x3da7c2(0x196)](_0x3a0fe6)),!this[_0x3da7c2(0x1be)][_0x300c70]&&(this[_0x3da7c2(0x1be)][_0x300c70]={}),this[_0x3da7c2(0x1be)][_0x300c70][_0x43ca0b]=CustomTagManager[_0x3da7c2(0x15d)](this['testLevelTags'][_0x300c70][_0x43ca0b],_0x5c95cd);}else{const _0x68bc72=global[_0x3da7c2(0x1a7)]?.[_0x3da7c2(0x18d)]?.[_0x3da7c2(0x1c9)];if(!_0x68bc72){const _0x7a95af=AutomationFramework['getTrackedInstance']();_0x300c70=AutomationFramework['getState'](_0x7a95af,PlaywrightDriverModule[_0x3da7c2(0x164)],'');}else _0x300c70=TestInfo[_0x3da7c2(0x17c)](_0x68bc72,_0x68bc72['retry']);const _0x1a2256=TestInfo['getTestDetails'](_0x300c70),_0x5b467d=_0x1a2256[TestFrameworkConstants[_0x3da7c2(0x1c0)]]||{};CustomTagManager[_0x3da7c2(0x186)](_0x5b467d,_0x43ca0b,_0x5c95cd),_0x1a2256[TestFrameworkConstants[_0x3da7c2(0x1c0)]]=_0x5b467d,TestInfo[_0x3da7c2(0x195)](_0x300c70,_0x1a2256),!this[_0x3da7c2(0x1be)][_0x300c70]&&(this[_0x3da7c2(0x1be)][_0x300c70]={}),this[_0x3da7c2(0x1be)][_0x300c70][_0x43ca0b]=CustomTagManager[_0x3da7c2(0x15d)](this[_0x3da7c2(0x1be)][_0x300c70][_0x43ca0b],_0x5c95cd);}}}static[a85_0x4c0812(0x1ad)](){const _0x541545=a85_0x4c0812,_0x593f04={...this[_0x541545(0x183)]};return _0x593f04;}static[a85_0x4c0812(0x199)](){const _0x58ed49=a85_0x4c0812,_0x123067={...this[_0x58ed49(0x1be)]};return _0x123067;}static['clearTags'](){const _0xd6529c=a85_0x4c0812;this[_0xd6529c(0x183)]={},this['testLevelTags']={};}static[a85_0x4c0812(0x167)](_0x1ecfa1,_0x39f5b7){const _0x1c0a73=a85_0x4c0812,_0x574971={};_0x574971[_0x1c0a73(0x184)]=function(_0x47352,_0x25ab56){return _0x47352||_0x25ab56;};const _0x5b5bf3=_0x574971;if(!_0x1ecfa1)return;!this[_0x1c0a73(0x183)][_0x1ecfa1]&&(this[_0x1c0a73(0x183)][_0x1ecfa1]={});for(const [_0x19ee81,_0x5a99a4]of Object[_0x1c0a73(0x1a2)](_0x5b5bf3[_0x1c0a73(0x184)](_0x39f5b7,{}))){if(!_0x5a99a4||!Array[_0x1c0a73(0x16c)](_0x5a99a4['values']))continue;this[_0x1c0a73(0x183)][_0x1ecfa1][_0x19ee81]=CustomTagManager['mergeValues'](this[_0x1c0a73(0x183)][_0x1ecfa1][_0x19ee81],_0x5a99a4[_0x1c0a73(0x1d4)]);}}static[a85_0x4c0812(0x1bf)](_0x27499c,_0x4aae66){const _0x4c7cf3=a85_0x4c0812,_0x1df9f5={};_0x1df9f5[_0x4c7cf3(0x1ba)]=_0x4c7cf3(0x1cc),_0x1df9f5[_0x4c7cf3(0x16f)]=function(_0x1f3519,_0x34e31e){return _0x1f3519*_0x34e31e;},_0x1df9f5[_0x4c7cf3(0x188)]=function(_0x4ce9f6,_0x1484ac){return _0x4ce9f6>_0x1484ac;},_0x1df9f5[_0x4c7cf3(0x1d5)]=function(_0x5737a0,_0x50152a){return _0x5737a0-_0x50152a;},_0x1df9f5[_0x4c7cf3(0x19e)]=_0x4c7cf3(0x160);const _0x212a3c=_0x1df9f5;if(!_0x27499c)return logger[_0x4c7cf3(0x154)](_0x212a3c[_0x4c7cf3(0x1ba)]),0x0;let _0x3cedb9;try{_0x3cedb9=os['tmpdir']();}catch(_0x49ed75){return logger[_0x4c7cf3(0x154)](_0x4c7cf3(0x19d)+_0x49ed75),0x0;}let _0x4c8211;try{_0x4c8211=fs[_0x4c7cf3(0x189)](_0x3cedb9);}catch(_0x17e270){return logger[_0x4c7cf3(0x154)](_0x4c7cf3(0x1c3)+_0x17e270),0x0;}const _0x3aff3f=''+BUILD_TAG_FILE_PREFIX+_0x27499c+'_',_0x58a632=_0x4c8211['filter'](_0x21f8b3=>_0x21f8b3[_0x4c7cf3(0x179)](_0x3aff3f)&&_0x21f8b3[_0x4c7cf3(0x17f)](_0x4c7cf3(0x168))),_0x1df189=_0x212a3c[_0x4c7cf3(0x16f)](_0x212a3c[_0x4c7cf3(0x16f)](_0x212a3c['KxFYs'](0x2,0x3c),0x3c),0x3e8);let _0x384efc=0x0;for(const _0x29caa5 of _0x58a632){const _0x5c87bb=path[_0x4c7cf3(0x157)](_0x3cedb9,_0x29caa5);try{const _0x1a8004=fs[_0x4c7cf3(0x15e)](_0x5c87bb);if(_0x212a3c[_0x4c7cf3(0x188)](_0x212a3c[_0x4c7cf3(0x1d5)](Date[_0x4c7cf3(0x185)](),_0x1a8004['mtimeMs']),_0x1df189)){logger[_0x4c7cf3(0x154)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>'+_0x1df189+_0x4c7cf3(0x166)+_0x29caa5);try{fs[_0x4c7cf3(0x15a)](_0x5c87bb);}catch(_0x2cb074){logger[_0x4c7cf3(0x154)](_0x4c7cf3(0x15b)+_0x29caa5+':\x20'+(_0x2cb074&&_0x2cb074[_0x4c7cf3(0x193)]?_0x2cb074[_0x4c7cf3(0x193)]:_0x2cb074));}continue;}const _0x468ca9=fs[_0x4c7cf3(0x1cf)](_0x5c87bb,_0x212a3c[_0x4c7cf3(0x19e)]),_0x5f3cc9=JSON[_0x4c7cf3(0x173)](_0x468ca9);this[_0x4c7cf3(0x167)](_0x4aae66,_0x5f3cc9),_0x384efc+=0x1;}catch(_0x276dd2){logger[_0x4c7cf3(0x154)](_0x4c7cf3(0x1cb)+_0x29caa5+':\x20'+(_0x276dd2&&_0x276dd2['message']?_0x276dd2[_0x4c7cf3(0x193)]:_0x276dd2));}try{fs['unlinkSync'](_0x5c87bb);}catch(_0x368afa){logger[_0x4c7cf3(0x154)](_0x4c7cf3(0x1db)+_0x29caa5+':\x20'+(_0x368afa&&_0x368afa[_0x4c7cf3(0x193)]?_0x368afa[_0x4c7cf3(0x193)]:_0x368afa));}}return _0x384efc;}}function a85_0x3caf(_0x44536a,_0x34c6e3){const _0x644733=a85_0x6447();return a85_0x3caf=function(_0x3cafda,_0x3e58dc){_0x3cafda=_0x3cafda-0x154;let _0xd84a78=_0x644733[_0x3cafda];return _0xd84a78;},a85_0x3caf(_0x44536a,_0x34c6e3);}const a85_0x150135={};function a85_0x6447(){const _0x3bf501=['endsWith','null','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','Aamhf','buildLevelTags','aWmlN','now','mergeIntoTags','45XwFiwS','pJzFT','readdirSync','getTrackedInstance','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','currentTest','testhubConfig','357493FxRWdV','gJXMp','EigXh','./browserstackCLI','message','keys','setTestDetails','stringify','BROWSERSTACK_TESTHUB_UUID','578905wrtqtr','getTestLevelTags','JMYzm','1776fOaQde','./framework/constants/testFrameworkConstants','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','rcPOh','includes','GcNQG','./framework/automationFramework','entries','trim','multi_dropdown','getTestUUID','modules','__workerDetails','TzBPP','LJVhU','./modules/playwrightDriverModule',',\x20key=','aftYE','getBuildLevelTags','UVasv','toObject','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','4fVjjoR','Wabtm','NVMio','tmpdir','buildHashedId','./TestInfo','./modules/testhubModule','gbGGa','yTgmt','tQTZW','../../helpers/classLogger','setCustomTags','erDSK','testLevelTags','aggregateBuildLevelTagsFromTmp','KEY_CUSTOM_TAGS','getInstance','24aAAYSx','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','bstack_build_tags_','bFbgm','name','writeFile','POST','testInfo','NYChU','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','getBuildTagsFilePath',',\x20finalTags=','readFileSync','OFyna','2919334IUzcWS','GKEHy','18820cOIWJb','values','aoYtk','MzoXa','854410QimMAS','pfWaT','getBuildTagsRunId','toLowerCase','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','debug','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','env','join','./cliUtils','StzVA','unlinkSync','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20','2887788hrTtDc','mergeValues','statSync','../../helpers/helper','utf8','lDSHq','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','CustomTagManager','KEY_TEST_ID','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','ms)\x20','mergeBuildLevelTags','.json','getTestDetails','bCpcf','jest','isArray','BAral','889TgTAKZ','KxFYs','CjmJz','CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20','isRunning','parse','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','MODULE_NAME','nOfFI','getTestFrameworkDetail','exports','startsWith','getState','addMultipleEntries','getTestIdentifierFromTestInfo','promises','field_type'];a85_0x6447=function(){return _0x3bf501;};return a85_0x6447();}a85_0x150135[a85_0x4c0812(0x1d9)]=getBuildTagsRunId,a85_0x150135[a85_0x4c0812(0x1cd)]=getBuildTagsFilePath,a85_0x150135['BUILD_TAG_FILE_PREFIX']=BUILD_TAG_FILE_PREFIX,CustomTagManager['_testInternals']=a85_0x150135,module[a85_0x4c0812(0x178)]=CustomTagManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a86_0x5dfc97=a86_0x18c6;(function(_0x499305,_0x3ece77){const _0x4bd423=a86_0x18c6,_0x5b8d1b=_0x499305();while(!![]){try{const _0x3d6da1=parseInt(_0x4bd423(0x148))/0x1+-parseInt(_0x4bd423(0x14e))/0x2+-parseInt(_0x4bd423(0x142))/0x3*(parseInt(_0x4bd423(0x143))/0x4)+-parseInt(_0x4bd423(0x14f))/0x5*(parseInt(_0x4bd423(0x14c))/0x6)+-parseInt(_0x4bd423(0x149))/0x7+parseInt(_0x4bd423(0x13e))/0x8+parseInt(_0x4bd423(0x141))/0x9*(parseInt(_0x4bd423(0x140))/0xa);if(_0x3d6da1===_0x3ece77)break;else _0x5b8d1b['push'](_0x5b8d1b['shift']());}catch(_0x233e09){_0x5b8d1b['push'](_0x5b8d1b['shift']());}}}(a86_0x1cd5,0x4ff78));const {createClassLogger}=require(a86_0x5dfc97(0x14a));function a86_0x18c6(_0xbb3278,_0xc6d7b1){const _0x1cd5f4=a86_0x1cd5();return a86_0x18c6=function(_0x18c6f0,_0x508b6b){_0x18c6f0=_0x18c6f0-0x13d;let _0x2228dd=_0x1cd5f4[_0x18c6f0];return _0x2228dd;},a86_0x18c6(_0xbb3278,_0xc6d7b1);}class EventDispatcher{static #instance=null;constructor(){const _0x13a872=a86_0x5dfc97;this[_0x13a872(0x144)]={};}static[a86_0x5dfc97(0x14b)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a86_0x5dfc97(0x13d)](_0x4a6dca,_0x1dfb75){const _0x195695=a86_0x5dfc97;!this[_0x195695(0x144)][_0x4a6dca]&&(this[_0x195695(0x144)][_0x4a6dca]=[]),this['observers'][_0x4a6dca][_0x195695(0x14d)](_0x1dfb75);}async[a86_0x5dfc97(0x13f)](_0x3b97a8,_0xc8381){const _0xf1d831=a86_0x5dfc97,_0x34d900={'jqzny':function(_0x6ec4c0,_0x38187a){return _0x6ec4c0(_0x38187a);}};if(this[_0xf1d831(0x144)][_0x3b97a8]){for(const _0x584d67 of this['observers'][_0x3b97a8]){await _0x34d900[_0xf1d831(0x145)](_0x584d67,_0xc8381);}return;}}}const eventDispatcher=EventDispatcher[a86_0x5dfc97(0x14b)]();function a86_0x1cd5(){const _0x1a165f=['observers','jqzny','freeze','exports','400843VeHokj','4300688JeXXCd','../../helpers/classLogger.js','getInstance','58134hAXyeY','push','203030BSmpHj','185njZwqF','registerObserver','1132480KQWaDS','notifyObserver','495990UNzrVv','270aGZJnt','40113ySPsfM','188xsJQyN'];a86_0x1cd5=function(){return _0x1a165f;};return a86_0x1cd5();}Object[a86_0x5dfc97(0x146)](eventDispatcher),module[a86_0x5dfc97(0x147)]=eventDispatcher;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a87_0x229e36=a87_0x3704;(function(_0x333004,_0x165f61){const _0x57b3f8=a87_0x3704,_0xd55b43=_0x333004();while(!![]){try{const _0x228708=parseInt(_0x57b3f8(0xba))/0x1*(-parseInt(_0x57b3f8(0xbe))/0x2)+parseInt(_0x57b3f8(0xa8))/0x3+parseInt(_0x57b3f8(0xac))/0x4*(parseInt(_0x57b3f8(0xae))/0x5)+parseInt(_0x57b3f8(0xa9))/0x6+parseInt(_0x57b3f8(0xad))/0x7*(-parseInt(_0x57b3f8(0xb8))/0x8)+-parseInt(_0x57b3f8(0xa1))/0x9+-parseInt(_0x57b3f8(0xa5))/0xa*(-parseInt(_0x57b3f8(0xb4))/0xb);if(_0x228708===_0x165f61)break;else _0xd55b43['push'](_0xd55b43['shift']());}catch(_0x2f1296){_0xd55b43['push'](_0xd55b43['shift']());}}}(a87_0x2dd4,0xa0af1));function a87_0x3704(_0x36b6a9,_0x4a3e1b){const _0x2dd4ad=a87_0x2dd4();return a87_0x3704=function(_0x370439,_0x28537f){_0x370439=_0x370439-0x9a;let _0x3f4ff0=_0x2dd4ad[_0x370439];return _0x3f4ff0;},a87_0x3704(_0x36b6a9,_0x4a3e1b);}const {createClassLogger}=require(a87_0x229e36(0xb2)),util=require(a87_0x229e36(0x9b)),eventDispatcher=require(a87_0x229e36(0xa2)),CLIUtils=require(a87_0x229e36(0xb3)),TrackedInstance=require(a87_0x229e36(0xb6)),logger=createClassLogger(a87_0x229e36(0xaa));class AutomationFramework{static [a87_0x229e36(0xa3)]=new Map();static ['KEY_AUTOMATION_SESSIONS']=a87_0x229e36(0xaf);static [a87_0x229e36(0xbb)]='non_browserstack_automation_sessions';constructor(_0x5a11fb,_0x157397){const _0x573db4=a87_0x229e36;this[_0x573db4(0xb9)]=_0x5a11fb,this[_0x573db4(0xb5)]=_0x157397;}[a87_0x229e36(0x9c)](){const _0x5d6a0b=a87_0x229e36;return this[_0x5d6a0b(0xb9)];}['getAutomationFrameworkVersion'](){return this['automationFrameworkVersion'];}async[a87_0x229e36(0x9a)](_0x35bf12,_0x137e32,_0x3ad52b={}){const _0x45bbda=a87_0x229e36;logger[_0x45bbda(0x9d)](_0x45bbda(0xb1)+_0x35bf12+_0x45bbda(0xa0)+_0x137e32);}async['runHooks'](_0xcb1770,_0x3be804,_0x51b582,_0x28cc60={}){const _0x4870bc=CLIUtils['getHookRegistryKey'](_0x3be804,_0x51b582);_0xcb1770&&_0xcb1770['setState'](_0x3be804),await eventDispatcher['notifyObserver'](_0x4870bc,_0x28cc60);}static[a87_0x229e36(0xab)](_0x4ccd1f,_0x36c055,_0x1a94d0){const _0x26cfb5=a87_0x229e36;eventDispatcher[_0x26cfb5(0xab)](CLIUtils['getHookRegistryKey'](_0x4ccd1f,_0x36c055),_0x1a94d0);}static['setTrackedInstance'](_0x52facc,_0x3d03a7){const _0xcd2471=a87_0x229e36;AutomationFramework[_0xcd2471(0xa3)][_0xcd2471(0xb7)](_0x52facc[_0xcd2471(0xa7)](),_0x3d03a7);}static[a87_0x229e36(0x9f)](){const _0x100a56=a87_0x229e36,_0x5ca1a2=TrackedInstance[_0x100a56(0xbd)](CLIUtils['getCurrentInstanceName']());return AutomationFramework[_0x100a56(0xa3)][_0x100a56(0xa4)](_0x5ca1a2[_0x100a56(0xa7)]());}static[a87_0x229e36(0x9e)](_0x5ec12d,_0x55b54f,_0x38e2ab){const _0x534306=a87_0x229e36;_0x5ec12d[_0x534306(0xa6)]()[_0x534306(0xb7)](_0x55b54f,_0x38e2ab);}static[a87_0x229e36(0xb0)](_0x28d768,_0x5c07cb){const _0x546678=a87_0x229e36;return _0x28d768['getAllData']()[_0x546678(0xa4)](_0x5c07cb);}}module[a87_0x229e36(0xbc)]=AutomationFramework;function a87_0x2dd4(){const _0x398369=['2038VdUUCH','trackEvent','util','getAutomationFrameworkName','debug','setState','getTrackedInstance','\x20hookState=','3424464EvfkWx','../eventDispatcher.js','instances','get','2610VeZcBm','getAllData','getId','1365456vDTOKy','2572260VWpmrT','AutomationFramework','registerObserver','380456iGGIkL','854Opuzex','35KSyTCS','automation_sessions','getState','trackEvent:\x20automationFrameworkState=','../../../helpers/classLogger.js','../cliUtils.js','7392pUtfgi','automationFrameworkVersion','../instances/trackedInstance.js','set','14072VZKHAq','automationFrameworkName','463aDdOVZ','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','exports','createContext'];a87_0x2dd4=function(){return _0x398369;};return a87_0x2dd4();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a88_0x45d28b=a88_0x5ee1;(function(_0x2506ee,_0x5b2bee){const _0x158782=a88_0x5ee1,_0x296741=_0x2506ee();while(!![]){try{const _0x1ea41e=-parseInt(_0x158782(0x1aa))/0x1*(-parseInt(_0x158782(0x1b4))/0x2)+parseInt(_0x158782(0x1ab))/0x3+-parseInt(_0x158782(0x1b1))/0x4+-parseInt(_0x158782(0x1c3))/0x5*(-parseInt(_0x158782(0x1b2))/0x6)+parseInt(_0x158782(0x1bb))/0x7*(-parseInt(_0x158782(0x1c7))/0x8)+-parseInt(_0x158782(0x1af))/0x9+-parseInt(_0x158782(0x1c5))/0xa*(parseInt(_0x158782(0x1ae))/0xb);if(_0x1ea41e===_0x5b2bee)break;else _0x296741['push'](_0x296741['shift']());}catch(_0x4db87a){_0x296741['push'](_0x296741['shift']());}}}(a88_0x2dc0,0xe56ed));const a88_0x141f16={};a88_0x141f16['ENV_BROWSERSTACK_PLATFORM_INDEX']=a88_0x45d28b(0x1c0),a88_0x141f16['KEY_HUB_URL']=a88_0x45d28b(0x1c4),a88_0x141f16[a88_0x45d28b(0x1ad)]=a88_0x45d28b(0x1b5),a88_0x141f16[a88_0x45d28b(0x1bf)]='input_capabilities',a88_0x141f16[a88_0x45d28b(0x1bc)]=a88_0x45d28b(0x1a8),a88_0x141f16[a88_0x45d28b(0x1b0)]='is_browserstack_hub',a88_0x141f16[a88_0x45d28b(0x1c1)]=a88_0x45d28b(0x1be),a88_0x141f16[a88_0x45d28b(0x1a7)]=a88_0x45d28b(0x1ba),a88_0x141f16[a88_0x45d28b(0x1bd)]=a88_0x45d28b(0x1b9),a88_0x141f16[a88_0x45d28b(0x1b8)]=a88_0x45d28b(0x1c2),a88_0x141f16['COMMAND_GET']=a88_0x45d28b(0x1ac),a88_0x141f16[a88_0x45d28b(0x1b3)]=a88_0x45d28b(0x1c8),a88_0x141f16[a88_0x45d28b(0x1a9)]=a88_0x45d28b(0x1b7),a88_0x141f16['COMMAND_W3C_EXECUTE_SCRIPT_ASYNC']=a88_0x45d28b(0x1c6),a88_0x141f16['COMMAND_QUIT']='quit';const AutomationFrameworkConstants=a88_0x141f16;module[a88_0x45d28b(0x1b6)]=AutomationFrameworkConstants;function a88_0x5ee1(_0x49fa45,_0x597ee4){const _0x2dc095=a88_0x2dc0();return a88_0x5ee1=function(_0x5ee103,_0x45b4d9){_0x5ee103=_0x5ee103-0x1a7;let _0x5cfcfb=_0x2dc095[_0x5ee103];return _0x5cfcfb;},a88_0x5ee1(_0x49fa45,_0x597ee4);}function a88_0x2dc0(){const _0x5ec1e1=['1040056iTvXmE','screenshot','KEY_ENDED_AT','capabilities','COMMAND_W3C_EXECUTE_SCRIPT','144NeozTw','3818265GwzQEf','get','KEY_FRAMEWORK_SESSION_ID','44IwLSIB','6106077FReeto','KEY_IS_BROWSERSTACK_HUB','1766320bnPYNM','18cmGMgl','COMMAND_SCREENSHOT','7208FACjBF','framework_session_id','exports','w3cexecutescript','COMMAND_NEW_SESSION','platform_index','ended_at','7IQsqtK','KEY_CAPABILITIES','KEY_PLATFORM_INDEX','started_at','KEY_INPUT_CAPABILITIES','BROWSERSTACK_PLATFORM_INDEX','KEY_STARTED_AT','newsession','3079270SXthsw','hub_url','3623740zJNDhh','w3cexecutescriptasync'];a88_0x2dc0=function(){return _0x5ec1e1;};return a88_0x2dc0();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a89_0x4c77d0=a89_0x115d;(function(_0x4ffb22,_0x50bb88){const _0x391326=a89_0x115d,_0x40bf26=_0x4ffb22();while(!![]){try{const _0xb072ed=-parseInt(_0x391326(0xc1))/0x1+-parseInt(_0x391326(0xf2))/0x2+parseInt(_0x391326(0xd6))/0x3*(-parseInt(_0x391326(0xe2))/0x4)+parseInt(_0x391326(0x108))/0x5*(parseInt(_0x391326(0xcc))/0x6)+parseInt(_0x391326(0xe7))/0x7*(-parseInt(_0x391326(0x101))/0x8)+parseInt(_0x391326(0xf8))/0x9*(parseInt(_0x391326(0xc0))/0xa)+parseInt(_0x391326(0xd3))/0xb;if(_0xb072ed===_0x50bb88)break;else _0x40bf26['push'](_0x40bf26['shift']());}catch(_0x43fd7a){_0x40bf26['push'](_0x40bf26['shift']());}}}(a89_0x44c7,0xd1ba4));const a89_0x4a6ade={};function a89_0x115d(_0x591ef4,_0x46ad07){const _0x44c77a=a89_0x44c7();return a89_0x115d=function(_0x115d48,_0x3477db){_0x115d48=_0x115d48-0xb2;let _0x49107b=_0x44c77a[_0x115d48];return _0x49107b;},a89_0x115d(_0x591ef4,_0x46ad07);}a89_0x4a6ade['KEY_TEST_UUID']=a89_0x4c77d0(0xca),a89_0x4a6ade['KEY_TEST_ID']=a89_0x4c77d0(0xff),a89_0x4a6ade[a89_0x4c77d0(0xf0)]=a89_0x4c77d0(0xcf),a89_0x4a6ade[a89_0x4c77d0(0xee)]=a89_0x4c77d0(0xc7),a89_0x4a6ade[a89_0x4c77d0(0x106)]=a89_0x4c77d0(0xe8),a89_0x4a6ade[a89_0x4c77d0(0xbe)]='test_result',a89_0x4a6ade[a89_0x4c77d0(0xdb)]=a89_0x4c77d0(0x10b),a89_0x4a6ade['KEY_TEST_STARTED_AT']='test_started_at',a89_0x4a6ade['KEY_TEST_ENDED_AT']=a89_0x4c77d0(0x10a),a89_0x4a6ade[a89_0x4c77d0(0xb8)]=a89_0x4c77d0(0xe5),a89_0x4a6ade[a89_0x4c77d0(0xb3)]=a89_0x4c77d0(0xba),a89_0x4a6ade[a89_0x4c77d0(0xc3)]='test_scope',a89_0x4a6ade[a89_0x4c77d0(0xd4)]=a89_0x4c77d0(0xfe),a89_0x4a6ade[a89_0x4c77d0(0xbf)]=a89_0x4c77d0(0xce),a89_0x4a6ade[a89_0x4c77d0(0xbd)]='test_framework_version',a89_0x4a6ade[a89_0x4c77d0(0xc5)]='test_code',a89_0x4a6ade[a89_0x4c77d0(0xec)]='test_rerun_name',a89_0x4a6ade[a89_0x4c77d0(0x105)]=a89_0x4c77d0(0xe3),a89_0x4a6ade[a89_0x4c77d0(0xe6)]='platform_index',a89_0x4a6ade[a89_0x4c77d0(0xe0)]=a89_0x4c77d0(0xb6),a89_0x4a6ade[a89_0x4c77d0(0xbc)]=a89_0x4c77d0(0xc9),a89_0x4a6ade['KEY_TEST_FAILURE_REASON']='test_failure_reason',a89_0x4a6ade['KEY_TEST_LOGS']=a89_0x4c77d0(0xea),a89_0x4a6ade[a89_0x4c77d0(0x100)]='test_meta',a89_0x4a6ade[a89_0x4c77d0(0xbb)]=a89_0x4c77d0(0xb9),a89_0x4a6ade[a89_0x4c77d0(0xc4)]='automate_session_name',a89_0x4a6ade[a89_0x4c77d0(0x109)]=a89_0x4c77d0(0xcb),a89_0x4a6ade[a89_0x4c77d0(0xd7)]=a89_0x4c77d0(0xb7),a89_0x4a6ade[a89_0x4c77d0(0x104)]=a89_0x4c77d0(0xf9),a89_0x4a6ade[a89_0x4c77d0(0xe9)]='event_ended_at',a89_0x4a6ade[a89_0x4c77d0(0xfa)]='hook_id',a89_0x4a6ade['KEY_HOOK_RESULT']=a89_0x4c77d0(0xfb),a89_0x4a6ade['KEY_HOOK_FAILURE_TYPE']=a89_0x4c77d0(0xf1),a89_0x4a6ade[a89_0x4c77d0(0x103)]=a89_0x4c77d0(0xf7),a89_0x4a6ade[a89_0x4c77d0(0xdc)]=a89_0x4c77d0(0xde),a89_0x4a6ade[a89_0x4c77d0(0xb2)]=a89_0x4c77d0(0xb4),a89_0x4a6ade[a89_0x4c77d0(0x102)]=a89_0x4c77d0(0x10c),a89_0x4a6ade[a89_0x4c77d0(0xe4)]=a89_0x4c77d0(0xd0),a89_0x4a6ade['DEFAULT_HOOK_RESULT']=a89_0x4c77d0(0xd0),a89_0x4a6ade[a89_0x4c77d0(0xe1)]='TEST_SCREENSHOT',a89_0x4a6ade['KIND_LOG']=a89_0x4c77d0(0xcd),a89_0x4a6ade[a89_0x4c77d0(0xf4)]='^(BEFORE_|AFTER_)',a89_0x4a6ade['KEY_HOOKS_STARTED']=a89_0x4c77d0(0xef),a89_0x4a6ade[a89_0x4c77d0(0xf5)]=a89_0x4c77d0(0xda),a89_0x4a6ade[a89_0x4c77d0(0xf6)]=a89_0x4c77d0(0xd1),a89_0x4a6ade[a89_0x4c77d0(0xc8)]='test_hook_last_finished',a89_0x4a6ade['KEY_LOGS']=a89_0x4c77d0(0xc6),a89_0x4a6ade['KEY_CUSTOM_TAGS']=a89_0x4c77d0(0xd2),a89_0x4a6ade[a89_0x4c77d0(0xc2)]=a89_0x4c77d0(0xeb),a89_0x4a6ade[a89_0x4c77d0(0xd5)]=a89_0x4c77d0(0xd8),a89_0x4a6ade[a89_0x4c77d0(0xfd)]='file_name',a89_0x4a6ade[a89_0x4c77d0(0xf3)]=a89_0x4c77d0(0xdd),a89_0x4a6ade[a89_0x4c77d0(0xed)]=a89_0x4c77d0(0x107),a89_0x4a6ade[a89_0x4c77d0(0xfc)]=a89_0x4c77d0(0xb5),a89_0x4a6ade['MAX_TOP_LEVEL_STEPS']=0xa,a89_0x4a6ade[a89_0x4c77d0(0xd9)]=0x2;const TestFrameworkConstants=a89_0x4a6ade;function a89_0x44c7(){const _0x43093e=['event_started_at','KEY_HOOK_ID','hook_result','KEY_TEST_SCREENSHOTS','KEY_FILE_NAME','test_scopes','test_id','KEY_TEST_META','256DSwKGs','KEY_HOOK_NAME','KEY_HOOK_FAILURE_REASON','KEY_EVENT_STARTED_AT','KEY_TEST_RETRY_OF','KEY_TEST_TAGS','file_level','16655AQywfH','KEY_AUTOMATE_SESSION_STATUS','test_ended_at','test_result_at','hook_name','KEY_HOOK_LOGS','KEY_TEST_DURATION','hook_logs','test_screenshots','test_failure','automate_session_reason','KEY_TEST_LOCATION','test_session_name','test_duration','KEY_SESSION_NAME','KEY_TEST_FAILURE_TYPE','KEY_TEST_FRAMEWORK_VERSION','KEY_TEST_RESULT','KEY_TEST_FRAMEWORK_NAME','30jtDgbh','997807YAqRca','KEY_TEST_ATTACHMENTS','KEY_TEST_SCOPE','KEY_AUTOMATE_SESSION_NAME','KEY_TEST_CODE','logs','test_file_path','KEY_HOOK_LAST_FINISHED','test_failure_type','test_uuid','automate_session_status','2076pLPLqC','TEST_LOG','test_framework_name','test_name','pending','test_hook_last_started','custom_metadata','32432796bwZKzs','KEY_TEST_SCOPES','KEY_FILE_SIZE','60dAHtaY','KEY_AUTOMATE_SESSION_REASON','file_size','MAX_NESTED_STEP_DEPTH','test_hooks_finished','KEY_TEST_RESULT_AT','KEY_HOOK_FAILURE','file_path','hook_failure','exports','KEY_TEST_FAILURE','KIND_SCREENSHOT','341084rmzBAb','retry_of','DEFAULT_TEST_RESULT','test_location','KEY_PLATFORM_INDEX','141743ZwGZuF','test_tags','KEY_EVENT_ENDED_AT','test_logs','test_attachments','KEY_TEST_RERUN_NAME','KEY_FILE_LEVEL','KEY_TEST_FILE_PATH','test_hooks_started','KEY_TEST_NAME','hook_failure_type','1322624fzKGyI','KEY_FILE_PATH','HOOK_REGEX','KEY_HOOKS_FINISHED','KEY_HOOK_LAST_STARTED','hook_failure_reason','2311767VSGiCR'];a89_0x44c7=function(){return _0x43093e;};return a89_0x44c7();}module[a89_0x4c77d0(0xdf)]=TestFrameworkConstants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a90_0x7336(_0x1aed41,_0x5ab991){const _0x74141c=a90_0x7414();return a90_0x7336=function(_0x733601,_0x20ccd0){_0x733601=_0x733601-0xcc;let _0x311831=_0x74141c[_0x733601];return _0x311831;},a90_0x7336(_0x1aed41,_0x5ab991);}function a90_0x7414(){const _0x4f446f=['KEY_HOOK_LAST_STARTED','exports','getProcessId','KEY_HOOK_FAILURE','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','EIOgt','../grpcClient','testUUID','3954UDdHst',',\x20error:\x20','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','KEY_TEST_RERUN_NAME','KEY_TEST_FRAMEWORK_NAME','failure','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','gRIdL','Pxbgd','KEY_TEST_NAME','./constants/testFrameworkConstants.js','LOG_REPORT','storePendingHook','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','get',',\x20state=','endedAt',',\x20state:\x20','KEY_LOGS','KEY_CUSTOM_TAGS','util','\x20testState:\x20','518HdcfzG','yuDDu','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','KEY_HOOK_LAST_FINISHED','\x20with\x20result:\x20','../instances/testFrameworkInstance.js','meta','tags','KEY_HOOK_RESULT','parseCucumberTest','push','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','uFqNL','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','finishedAt','KEY_TEST_ID','getCurrentInstanceName','ajljj','NONE','getInstance','PRE','sendLogCreatedEvent:\x20for\x20testId:\x20','KEY_TEST_ENDED_AT',',\x20storing\x20as\x20pending\x20hook','testFrameworkState','parseCucumberTestResult','YPUmb','dBDgW','2843814Octykp','KEY_TEST_META','POST','debug','../../../helpers/helper.js','uuid','vlJmV','failure_type','testData','started_at','./testFramework','addMultipleEntries','rZDsn','WSPhR','browserstackPlatformIndex','hookState','createTestFrameworkEventPayload','toISOString','logCreatedEvent','elsiC','DEFAULT_TEST_RESULT','unknown','KEY_HOOKS_FINISHED','KEY_HOOK_LOGS','eventJson','length','hooks','Feplw','finished_at','YvGpm','21ekVvIQ','result','CucumberTestFramework','1239641jIJDMI','urwFK','KEY_TEST_LOCATION','processPendingHooks','deFij','setTrackedInstance','\x20response=','10llzxpq','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','failed','KEY_TEST_RESULT','testFrameworkName','customRerunParam','KEY_TEST_FAILURE_REASON','hook_type','KEY_AUTOMATE_SESSION_NAME','name','\x20hookState:\x20','../instances/trackedInstance.js','DEFAULT_HOOK_RESULT','KEY_TEST_FAILURE','KEY_TEST_ATTACHMENTS','getCurrentTestState','KEY_HOOK_NAME','KEY_TEST_FILE_PATH','getThreadId','wSsxJ','getTrackedInstance','test_run_id','startedAt','inspect','596720MxLXFW','\x20with\x20UUID:\x20','Cucumber\x20log\x20created\x20event','QUbEe','getTestFrameworksVersions','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','trackCucumberInstance','sendLogCreatedEvent','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','JAvBC','Bwqir','getTestUUID','KEY_TEST_FRAMEWORK_VERSION','KEY_HOOK_ID','KEY_TEST_UUID','trackHookEvent','CTogW','../../../helpers/classLogger.js','pop','ceil','code','passed','KEY_EVENT_STARTED_AT','location','KEY_TEST_STARTED_AT','runHooks','KEY_TEST_LOGS','SnobD','args','KEY_TEST_FAILURE_TYPE','body','key','\x20and\x20args\x20=\x20','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','split','UnhandledError','hookData','from','sXOFd','7864365AxkhPn','../state/hookState.js','test','file_name','toString','812656gcXoUM','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','failure_reason','kXqsB','concat','resolveInstance','getAllData','trackEvent','rmPVe','getTestDetails','failure_data','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','7353207eCATHT','Stored\x20pending\x20hook\x20for\x20testId:\x20','vpMnZ','getRef','removePendingHooks','Parsed\x20cucumber\x20test:\x20','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','LeoDl','Tracked\x20cucumber\x20hook\x20event:\x20','testFrameworkVersion','trackCucumberInstance:\x20saved\x20instance\x20contextId=','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','lOFBB','\x20payload=','TEST','\x20&\x20hookState=',',\x20hookState:\x20','MgaoO','\x20target=','\x20&\x20hook\x20=\x20','instance','oraCA','error','keys','addPendingHook','KEY_HOOKS_STARTED','setTestDetails','executionContext','format','KEY_TEST_CODE','rerun_name','matchHookRegex','trackEvent:\x20unsupported\x20testFrameworkState=','../cliUtils.js','\x20pending\x20hooks\x20for\x20testId:\x20','../TestInfo.js','ykchn'];a90_0x7414=function(){return _0x4f446f;};return a90_0x7414();}const a90_0x4133ae=a90_0x7336;(function(_0x47bc63,_0x2dd772){const _0x23776d=a90_0x7336,_0x3e9c67=_0x47bc63();while(!![]){try{const _0x1092c7=parseInt(_0x23776d(0x138))/0x1+-parseInt(_0x23776d(0xfb))/0x2*(-parseInt(_0x23776d(0xe5))/0x3)+-parseInt(_0x23776d(0x157))/0x4+parseInt(_0x23776d(0x17e))/0x5+parseInt(_0x23776d(0x117))/0x6*(-parseInt(_0x23776d(0x135))/0x7)+parseInt(_0x23776d(0x183))/0x8+parseInt(_0x23776d(0x18f))/0x9*(-parseInt(_0x23776d(0x13f))/0xa);if(_0x1092c7===_0x2dd772)break;else _0x3e9c67['push'](_0x3e9c67['shift']());}catch(_0x23ae22){_0x3e9c67['push'](_0x3e9c67['shift']());}}}(a90_0x7414,0xd3c14));const TestFramework=require(a90_0x4133ae(0x121)),TestFrameworkState=require('../state/testFrameworkState.js'),HookState=require(a90_0x4133ae(0x17f)),{createClassLogger}=require(a90_0x4133ae(0x168)),TestFrameworkInstance=require(a90_0x4133ae(0x100)),CLIUtils=require(a90_0x4133ae(0xd9)),TrackedInstance=require(a90_0x4133ae(0x14a)),TestFrameworkConstants=require(a90_0x4133ae(0xef)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a90_0x4133ae(0x11b)),logger=createClassLogger(a90_0x4133ae(0x137)),{v4:uuidv4}=require(a90_0x4133ae(0x11c)),util=require(a90_0x4133ae(0xf9)),TestInfo=require(a90_0x4133ae(0xdb)),GrpcClient=require(a90_0x4133ae(0xe3));class CucumberTestFramework extends TestFramework{constructor(_0x124c9f,_0x20cbef,_0x55ab6b){super(_0x124c9f,_0x20cbef,_0x55ab6b);}async['trackEvent'](_0x4d5dc7,_0x5ae711,_0x14f603={}){const _0x3dab32=a90_0x4133ae,_0x54e792={};_0x54e792[_0x3dab32(0x172)]=_0x3dab32(0x140),_0x54e792['wSsxJ']=function(_0x55736c,_0x18a1e0){return _0x55736c===_0x18a1e0;},_0x54e792[_0x3dab32(0x161)]=function(_0x2958b4,_0x2fa8ae){return _0x2958b4===_0x2fa8ae;},_0x54e792[_0x3dab32(0x115)]=_0x3dab32(0x178);const _0x1ce56b=_0x54e792;await super[_0x3dab32(0x18a)](_0x4d5dc7,_0x5ae711,_0x14f603);const _0x23b429=this['resolveInstance'](_0x4d5dc7,_0x5ae711,_0x14f603);if(!_0x23b429){logger['debug'](_0x1ce56b[_0x3dab32(0x172)]);return;}try{let _0x4786dc,_0x588b71;switch(_0x4d5dc7){case TestFrameworkState[_0x3dab32(0x19d)]:_0x4786dc=_0x14f603['test'],_0x588b71=TestInfo[_0x3dab32(0x162)](_0x4786dc['id']);if(_0x1ce56b[_0x3dab32(0x152)](_0x5ae711,HookState[_0x3dab32(0x10f)])){logger[_0x3dab32(0x11a)](_0x3dab32(0xf2)+_0x4786dc['id']);const _0x1ecd57={};_0x1ecd57[_0x3dab32(0xe4)]=_0x588b71,_0x1ecd57['testData']=_0x4786dc,_0x23b429['addMultipleEntries'](this[_0x3dab32(0x104)](_0x1ecd57)),logger[_0x3dab32(0x11a)]('trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20'+_0x4786dc['id']),await this[_0x3dab32(0x13b)](_0x23b429,_0x4786dc['id']);}else{if(_0x1ce56b[_0x3dab32(0x161)](_0x5ae711,HookState[_0x3dab32(0x119)])){const _0xb2090={};_0xb2090['testUUID']=_0x588b71,_0xb2090[_0x3dab32(0x11f)]=_0x4786dc,_0x23b429[_0x3dab32(0x122)](this['parseCucumberTestResult'](_0xb2090)),await this[_0x3dab32(0x13b)](_0x23b429,_0x4786dc['id']);}}break;case TestFrameworkState[_0x3dab32(0xf0)]:_0x1ce56b[_0x3dab32(0x161)](_0x5ae711,HookState[_0x3dab32(0x119)])&&await this[_0x3dab32(0x15e)](_0x23b429,_0x4d5dc7,_0x14f603);break;default:if(CLIUtils[_0x3dab32(0xd7)](_0x4d5dc7['toString']()[_0x3dab32(0x179)]('.')[0x1])){const _0x3b8abe=await this[_0x3dab32(0x166)](_0x23b429,_0x4d5dc7,_0x5ae711,_0x14f603);_0x23b429['addMultipleEntries'](_0x3b8abe);}else logger[_0x3dab32(0x11a)](_0x3dab32(0xd8)+_0x4d5dc7+_0x3dab32(0x19e)+_0x5ae711);break;}}catch(_0x46b248){logger[_0x3dab32(0xce)](util[_0x3dab32(0xd4)](_0x1ce56b[_0x3dab32(0x115)],_0x4d5dc7,_0x5ae711,_0x14f603[_0x3dab32(0x130)],_0x46b248));}_0x14f603[_0x3dab32(0xcc)]=_0x23b429,await this[_0x3dab32(0x170)](_0x23b429,_0x4d5dc7,_0x5ae711,_0x14f603);}[a90_0x4133ae(0x188)](_0xd965e0,_0x9e257d,_0x2b0645={}){const _0x1b117b=a90_0x4133ae,_0x29c0ba={};_0x29c0ba[_0x1b117b(0xec)]=function(_0xe9c43d,_0x12b39e){return _0xe9c43d===_0x12b39e;},_0x29c0ba[_0x1b117b(0x15a)]=function(_0x503744,_0x4e4b5a){return _0x503744===_0x4e4b5a;};const _0xb41c6=_0x29c0ba;let _0x4f5026=null;return(_0xb41c6[_0x1b117b(0xec)](_0xd965e0,TestFrameworkState['INIT_TEST'])||_0xb41c6[_0x1b117b(0x15a)](_0xd965e0,TestFrameworkState[_0x1b117b(0x10d)]))&&this[_0x1b117b(0x15d)](_0xd965e0,_0x2b0645),_0x4f5026=TestFramework[_0x1b117b(0x153)](),_0x4f5026;}[a90_0x4133ae(0x15d)](_0x1beeee,_0x4539c4){const _0x2a1579=a90_0x4133ae,_0x529da9=CLIUtils[_0x2a1579(0x10b)](),_0x44381c=TrackedInstance['createContext'](_0x529da9);let _0x364c1a=null;logger['debug'](_0x2a1579(0x184)+_0x529da9+_0x2a1579(0xf4)+_0x1beeee),_0x364c1a=new TestFrameworkInstance(_0x44381c,this['getTestFrameworks'](),this[_0x2a1579(0x15b)](),_0x1beeee,HookState[_0x2a1579(0x10d)]),TestFramework[_0x2a1579(0x13d)](_0x44381c,_0x364c1a),logger[_0x2a1579(0x11a)](_0x2a1579(0x199)+_0x44381c['getId']()+_0x2a1579(0x1a1)+_0x529da9);}[a90_0x4133ae(0x104)](_0x52b040){const _0x3d4578=a90_0x4133ae,_0x500b0d={};_0x500b0d[_0x3d4578(0x134)]=_0x3d4578(0x195);const _0x1814cb=_0x500b0d,{testUUID:_0xb4b7b0,testData:_0x5dfee9}=_0x52b040;if(!_0x5dfee9||!_0x5dfee9['uuid'])return logger[_0x3d4578(0x11a)](_0x1814cb[_0x3d4578(0x134)]),{};const _0x491414=_0xb4b7b0,_0x3313f7=_0x5dfee9['uuid'],_0x2eb21b=this['getTestFrameworks']()[0x0],_0x4a9ac6=this[_0x3d4578(0x15b)](),_0x2d3629={[TestFrameworkConstants[_0x3d4578(0xe9)]]:_0x2eb21b,[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x4a9ac6[_0x2eb21b],[TestFrameworkConstants[_0x3d4578(0x171)]]:[],[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:{},[TestFrameworkConstants[_0x3d4578(0xd1)]]:{},[TestFrameworkConstants[_0x3d4578(0x165)]]:_0x491414,[TestFrameworkConstants[_0x3d4578(0x142)]]:TestFrameworkConstants[_0x3d4578(0x12b)],[TestFrameworkConstants[_0x3d4578(0x147)]]:_0x5dfee9[_0x3d4578(0x148)]||'',[TestFrameworkConstants[_0x3d4578(0x150)]]:_0x5dfee9[_0x3d4578(0x181)]||'',[TestFrameworkConstants[_0x3d4578(0x10a)]]:_0x3313f7,[TestFrameworkConstants[_0x3d4578(0xee)]]:_0x5dfee9[_0x3d4578(0x148)]||'',[TestFrameworkConstants[_0x3d4578(0x13a)]]:_0x5dfee9[_0x3d4578(0x16e)]||'',[TestFrameworkConstants[_0x3d4578(0xd5)]]:_0x5dfee9[_0x3d4578(0x175)]?.[_0x3d4578(0x16b)]||null,[TestFrameworkConstants['KEY_TEST_TAGS']]:_0x5dfee9[_0x3d4578(0x102)]||[],[TestFrameworkConstants[_0x3d4578(0x16f)]]:_0x5dfee9[_0x3d4578(0x155)]||new Date()[_0x3d4578(0x128)](),[TestFrameworkConstants['KEY_TEST_SCOPE']]:_0x5dfee9['scopes']?.[0x0]||'',[TestFrameworkConstants['KEY_TEST_SCOPES']]:_0x5dfee9['scopes']||[],[TestFrameworkConstants[_0x3d4578(0xe8)]]:_0x5dfee9[_0x3d4578(0x144)]?.[_0x3d4578(0xd6)]||_0x5dfee9[_0x3d4578(0x148)]||'',[TestFrameworkConstants[_0x3d4578(0xf8)]]:{},[TestFrameworkConstants[_0x3d4578(0x118)]]:_0x5dfee9[_0x3d4578(0x101)]||{}};TestInfo[_0x3d4578(0xd2)](_0x3313f7,_0x2d3629),logger[_0x3d4578(0x11a)](_0x3d4578(0x194)+_0x5dfee9[_0x3d4578(0x148)]+_0x3d4578(0x158)+_0x491414);const _0x25aa3d={};return _0x25aa3d[_0x3313f7]=_0x2d3629,_0x25aa3d;}[a90_0x4133ae(0x114)](_0x1899db){const _0x114f82=a90_0x4133ae,_0x408dd0={'ajljj':_0x114f82(0x15f),'jnzIs':_0x114f82(0x12c),'LeoDl':function(_0x2de282,_0xcd717c){return _0x2de282===_0xcd717c;},'JAvBC':_0x114f82(0x141),'SADNA':'UnhandledError','rmPVe':function(_0x5b008f,_0x274052,_0xdcb50b){return _0x5b008f(_0x274052,_0xdcb50b);},'elsiC':function(_0x35a131,_0x4c4019){return _0x35a131>_0x4c4019;}},{testUUID:_0x32004a,testData:_0x1db124}=_0x1899db;if(!_0x1db124||!_0x1db124['uuid'])return logger['debug'](_0x408dd0[_0x114f82(0x10c)]),{};const _0x3ff235=this[_0x114f82(0x188)](TestFrameworkState[_0x114f82(0x19d)],HookState[_0x114f82(0x119)]),_0x17757a=_0x1db124['uuid'],_0xf21c7a=TestInfo['getTestDetails'](_0x17757a)||{},_0x121041=_0xf21c7a?_0xf21c7a[TestFrameworkConstants[_0x114f82(0xf8)]]||{}:{},_0x107649={..._0xf21c7a,[TestFrameworkConstants[_0x114f82(0x142)]]:_0x1db124[_0x114f82(0x136)]||_0x408dd0['jnzIs'],[TestFrameworkConstants[_0x114f82(0x111)]]:_0x1db124[_0x114f82(0x109)]||new Date()[_0x114f82(0x128)](),[TestFrameworkConstants['KEY_TEST_RESULT_AT']]:new Date()['toISOString'](),[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x121041,[TestFrameworkConstants[_0x114f82(0xf7)]]:[],[TestFrameworkConstants['KEY_TEST_META']]:_0x1db124[_0x114f82(0x101)]||{}};_0x408dd0[_0x114f82(0x196)](_0x1db124['result'],_0x408dd0[_0x114f82(0x160)])&&_0x1db124[_0x114f82(0xea)]&&(_0x107649[TestFrameworkConstants[_0x114f82(0x174)]]=_0x1db124[_0x114f82(0x11e)]||_0x408dd0['SADNA'],_0x107649[TestFrameworkConstants[_0x114f82(0x145)]]=_0x1db124['failure_reason']||'',_0x107649[TestFrameworkConstants[_0x114f82(0x14c)]]=_0x1db124[_0x114f82(0xea)]);const _0xd05976=TestInfo[_0x114f82(0x18c)](_0x17757a)[TestFrameworkConstants[_0x114f82(0x14d)]]||{},_0x3621b6=_0x408dd0[_0x114f82(0x18b)](getManualUploadLogs,_0xd05976,_0x3ff235[_0x114f82(0x189)]()[_0x114f82(0xf3)](_0x17757a)[TestFrameworkConstants['KEY_TEST_UUID']]);if(_0x408dd0[_0x114f82(0x12a)](_0x3621b6[_0x114f82(0x130)],0x0)){const _0x1cddcb=_0x107649[TestFrameworkConstants['KEY_LOGS']]||[];_0x107649[TestFrameworkConstants[_0x114f82(0xf7)]]=[..._0x1cddcb,..._0x3621b6];}_0x1db124[_0x114f82(0x131)]&&_0x408dd0[_0x114f82(0x12a)](_0x1db124['hooks'][_0x114f82(0x130)],0x0)&&(_0x107649[TestFrameworkConstants[_0x114f82(0x12d)]]=_0x1db124[_0x114f82(0x131)]);TestInfo[_0x114f82(0xd2)](_0x17757a,_0x107649),logger[_0x114f82(0x11a)]('Updated\x20cucumber\x20test\x20result:\x20'+_0x1db124[_0x114f82(0x148)]+_0x114f82(0xff)+_0x1db124['result']);const _0x20fccd={};return _0x20fccd[_0x17757a]=_0x107649,_0x20fccd;}async[a90_0x4133ae(0x166)](_0x3d056b,_0x212774,_0x378f04,_0x398b84){const _0x2eae56=a90_0x4133ae,_0x574eb8={'Pxbgd':_0x2eae56(0x106),'oraCA':function(_0x1a7104){return _0x1a7104();},'lOFBB':function(_0x4add35,_0x16be11){return _0x4add35 in _0x16be11;},'uFqNL':function(_0x432d45,_0x2f05f2){return _0x432d45===_0x2f05f2;},'jpPLY':function(_0x322832,_0xa105a2){return _0x322832===_0xa105a2;},'WSPhR':function(_0x295209,_0x32c6a3){return _0x295209>_0x32c6a3;},'urwFK':function(_0x5ce54c,_0x3b7362){return _0x5ce54c===_0x3b7362;},'CTogW':_0x2eae56(0x141),'vlJmV':_0x2eae56(0x17a),'sXOFd':_0x2eae56(0x16c),'Feplw':function(_0x2e8383,_0x577aab){return _0x2e8383!==_0x577aab;}},{hookData:_0x41d0ad}=_0x398b84;if(!_0x41d0ad)return logger[_0x2eae56(0x11a)](_0x574eb8[_0x2eae56(0xed)]),{};const _0xd891b=_0x41d0ad[_0x2eae56(0x11c)]||_0x574eb8[_0x2eae56(0xcd)](uuidv4),_0x39cb5f=_0x41d0ad['test_run_id'],_0x14b098=_0x212774[_0x2eae56(0x182)]()['split']('.')[0x1],_0x393867=TestInfo['getTestDetails'](_0x39cb5f)[TestFrameworkConstants[_0x2eae56(0xf8)]]||{},_0x3151a2=_0x3d056b[_0x2eae56(0x189)]()[_0x2eae56(0xf3)](_0x39cb5f);if(!_0x3151a2)return logger['debug'](_0x2eae56(0x15c)+_0x39cb5f+_0x2eae56(0x112)),this[_0x2eae56(0xf1)](_0x3d056b,_0x39cb5f,_0x212774,_0x378f04,_0x398b84),{};let _0x4701b1=_0x3151a2[TestFrameworkConstants[_0x2eae56(0xd1)]];!_0x4701b1&&(_0x4701b1={});!_0x574eb8[_0x2eae56(0x19b)](_0x14b098,_0x4701b1)&&(_0x4701b1[_0x14b098]=[]);let _0x3ce3b4=_0x3151a2[TestFrameworkConstants['KEY_HOOKS_FINISHED']];!_0x3ce3b4&&(_0x3ce3b4={});!_0x574eb8[_0x2eae56(0x19b)](_0x14b098,_0x3ce3b4)&&(_0x3ce3b4[_0x14b098]=[]);const _0x47ad11={[TestFrameworkConstants[_0x2eae56(0xd1)]]:_0x4701b1,[TestFrameworkConstants[_0x2eae56(0x12d)]]:_0x3ce3b4},_0x5dd226={};_0x5dd226[_0x39cb5f]=_0x47ad11;const _0x536432=_0x5dd226;if(_0x574eb8[_0x2eae56(0x107)](_0x378f04,HookState[_0x2eae56(0x10f)])){const _0x18282f={[TestFrameworkConstants[_0x2eae56(0x164)]]:_0xd891b,[TestFrameworkConstants[_0x2eae56(0x103)]]:TestFrameworkConstants[_0x2eae56(0x14b)],[TestFrameworkConstants[_0x2eae56(0x16d)]]:_0x41d0ad[_0x2eae56(0x120)],[TestFrameworkConstants[_0x2eae56(0x12e)]]:[],[TestFrameworkConstants[_0x2eae56(0x14f)]]:_0x41d0ad[_0x2eae56(0x146)],[TestFrameworkConstants[_0x2eae56(0xf8)]]:_0x393867};_0x18282f[_0x2eae56(0x176)]=_0x14b098;const _0x11807b=_0x18282f;_0x4701b1[_0x14b098][_0x2eae56(0x105)](_0x11807b),_0x536432[_0x39cb5f][TestFrameworkConstants[_0x2eae56(0xdd)]]=_0x14b098,logger[_0x2eae56(0x11a)](_0x2eae56(0xfd)+_0x14b098+_0x2eae56(0x1a2)+_0x11807b+'\x20\x20and\x20args\x20=\x20'+_0x398b84);}else{if(_0x574eb8['jpPLY'](_0x378f04,HookState['POST'])){const _0x25ca4d=_0x41d0ad['result'],_0x3e4c91=_0x4701b1[_0x14b098]||[];logger[_0x2eae56(0x11a)]('trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20'+_0x3e4c91+_0x2eae56(0x177)+_0x398b84);if(_0x574eb8[_0x2eae56(0x124)](_0x3e4c91['length'],0x0)){const _0x2d54cc=_0x3e4c91[_0x2eae56(0x169)]();_0x574eb8[_0x2eae56(0x139)](_0x41d0ad[_0x2eae56(0x136)],_0x574eb8[_0x2eae56(0x167)])&&_0x41d0ad[_0x2eae56(0x18d)]?(_0x2d54cc[TestFrameworkConstants['KEY_HOOK_FAILURE_TYPE']]=_0x41d0ad[_0x2eae56(0x11e)]||_0x574eb8[_0x2eae56(0x11d)],_0x2d54cc[TestFrameworkConstants['KEY_HOOK_FAILURE_REASON']]=_0x41d0ad[_0x2eae56(0x185)]||'',_0x2d54cc[TestFrameworkConstants[_0x2eae56(0xe0)]]=_0x41d0ad[_0x2eae56(0x18d)]):_0x2d54cc[TestFrameworkConstants[_0x2eae56(0x103)]]=_0x574eb8[_0x2eae56(0x17d)];_0x574eb8[_0x2eae56(0x132)](_0x25ca4d,TestFrameworkConstants['DEFAULT_HOOK_RESULT'])&&(_0x2d54cc[TestFrameworkConstants[_0x2eae56(0x103)]]=_0x25ca4d);_0x2d54cc[TestFrameworkConstants['KEY_EVENT_ENDED_AT']]=_0x41d0ad[_0x2eae56(0x133)]||new Date()[_0x2eae56(0x128)](),_0x2d54cc[TestFrameworkConstants[_0x2eae56(0xf8)]]=_0x393867;const _0x1a6c20=_0x2d54cc[TestFrameworkConstants['KEY_HOOK_ID']];!_0x3ce3b4[_0x14b098]&&(_0x3ce3b4[_0x14b098]=[]),_0x3ce3b4[_0x14b098]['push'](_0x2d54cc),_0x536432[_0x39cb5f][TestFrameworkConstants[_0x2eae56(0xfe)]]=_0x14b098;}}}return logger[_0x2eae56(0x11a)](_0x2eae56(0x197)+_0x41d0ad[_0x2eae56(0x146)]+'\x20with\x20id\x20'+_0xd891b+'\x20for\x20test:\x20'+_0x39cb5f),_0x536432;}[a90_0x4133ae(0x127)](_0x320132){const _0x4b853a=a90_0x4133ae,_0x2b70a3={};_0x2b70a3['RxaBL']='base64';const _0x1d9f8e=_0x2b70a3;try{const _0xbbe367=_0x320132[_0x4b853a(0x180)]?_0x320132[_0x4b853a(0x180)]['id']:_0x320132[_0x4b853a(0x17b)][_0x4b853a(0x154)],_0x3e076a=_0x320132['instance'],_0x565983=_0x3e076a['getContext'](),_0x3b6608=_0x3e076a['getAllData']()[_0x4b853a(0xf3)](_0xbbe367);if(!_0x3b6608)return logger[_0x4b853a(0x11a)](_0x4b853a(0x19a)+_0xbbe367),{};logger[_0x4b853a(0x11a)]('createTestFrameworkEventPayload\x20testId:\x20'+_0xbbe367);const {[TestFrameworkConstants[_0x4b853a(0xe9)]]:_0x17d3cb='',[TestFrameworkConstants[_0x4b853a(0x163)]]:_0x108809='',[TestFrameworkConstants[_0x4b853a(0x16f)]]:_0x2f734a='',[TestFrameworkConstants[_0x4b853a(0x111)]]:_0x179d69=''}=_0x3b6608,_0x397f15=_0x3e076a[_0x4b853a(0x14e)]()[_0x4b853a(0x182)]()['split']('.')[0x1],_0x87f937=_0x3e076a['getCurrentHookState']()[_0x4b853a(0x182)]()['split']('.')[0x1],_0x2f9443=global?.[_0x4b853a(0x125)]??0x0,_0x4abbd1=_0x3e076a[_0x4b853a(0x192)](),_0x5d83d8=Buffer[_0x4b853a(0x17c)](JSON['stringify'](_0x3b6608))[_0x4b853a(0x182)](_0x1d9f8e['RxaBL']),_0x618fe3={'hash':_0x565983['getId'](),'threadId':_0x565983[_0x4b853a(0x151)]()['toString'](),'processId':_0x565983[_0x4b853a(0xdf)]()[_0x4b853a(0x182)]()},_0x160f5f={};_0x160f5f['platformIndex']=_0x2f9443,_0x160f5f[_0x4b853a(0x143)]=_0x17d3cb,_0x160f5f[_0x4b853a(0x198)]=_0x108809,_0x160f5f[_0x4b853a(0x113)]=_0x397f15,_0x160f5f[_0x4b853a(0x126)]=_0x87f937,_0x160f5f[_0x4b853a(0x155)]=_0x2f734a,_0x160f5f[_0x4b853a(0xf5)]=_0x179d69,_0x160f5f[_0x4b853a(0x11c)]=_0x4abbd1,_0x160f5f[_0x4b853a(0x12f)]=_0x5d83d8,_0x160f5f[_0x4b853a(0xd3)]=_0x618fe3;const _0x16cb27=_0x160f5f;return logger[_0x4b853a(0x11a)](_0x4b853a(0x108)+_0xbbe367+_0x4b853a(0xfa)+_0x397f15+_0x4b853a(0x149)+_0x87f937),_0x16cb27;}catch(_0x17b394){return logger[_0x4b853a(0xce)]('Error\x20in\x20createTestFrameworkEventPayload:\x20'+util['format'](_0x17b394)),{};}}async[a90_0x4133ae(0x15e)](_0x420c99,_0x51ecd7,_0x41d442){const _0x1c2fc1=a90_0x4133ae,_0x93ede3={'MgaoO':function(_0x135130,_0x47aee0,_0x186638){return _0x135130(_0x47aee0,_0x186638);},'kXqsB':function(_0xa05974,_0x10c389){return _0xa05974===_0x10c389;},'vpMnZ':_0x1c2fc1(0xe1),'deFij':function(_0x242ba3,_0x2bc935){return _0x242ba3/_0x2bc935;},'ykchn':function(_0x10dcf1,_0x4903fd){return _0x10dcf1<_0x4903fd;},'yuDDu':function(_0x5361b5,_0xacc4d5){return _0x5361b5*_0xacc4d5;},'rZDsn':function(_0x15a2a3,_0x570682){return _0x15a2a3+_0x570682;},'EIOgt':function(_0x20001f,_0x52b955){return _0x20001f+_0x52b955;},'uWHrf':_0x1c2fc1(0x159)};try{const _0x980475=_0x41d442[_0x1c2fc1(0xe4)],_0x153ccd=_0x420c99[_0x1c2fc1(0x189)]()[_0x1c2fc1(0xf3)](_0x980475),{[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x398388='',[TestFrameworkConstants[_0x1c2fc1(0x163)]]:_0x3dc49c=''}=_0x153ccd,_0x5975e9=TestInfo['readLogObjects'](_0x980475),_0x459b12=TestInfo[_0x1c2fc1(0x18c)](_0x980475)[TestFrameworkConstants[_0x1c2fc1(0x14d)]]||{},_0x42182c=_0x93ede3[_0x1c2fc1(0x1a0)](getMediaArtifactsLogs,_0x459b12,_0x420c99[_0x1c2fc1(0x189)]()['get'](_0x980475)[TestFrameworkConstants[_0x1c2fc1(0x165)]]),_0x16425c=(_0x5975e9||[])[_0x1c2fc1(0x187)](_0x42182c||[]);if(!_0x16425c||_0x93ede3[_0x1c2fc1(0x186)](_0x16425c['length'],0x0)){logger[_0x1c2fc1(0x11a)](_0x93ede3[_0x1c2fc1(0x191)]);return;}const _0x3a1c2a=0x28,_0x5a132d=Math[_0x1c2fc1(0x16a)](_0x93ede3[_0x1c2fc1(0x13c)](_0x16425c['length'],_0x3a1c2a));for(let _0x3b7e03=0x0;_0x93ede3[_0x1c2fc1(0xdc)](_0x3b7e03,_0x5a132d);_0x3b7e03++){const _0x19d59c=_0x93ede3[_0x1c2fc1(0xfc)](_0x3b7e03,_0x3a1c2a),_0x13b439=_0x93ede3[_0x1c2fc1(0x123)](_0x19d59c,_0x3a1c2a),_0x51d96c=_0x16425c['slice'](_0x19d59c,_0x13b439),_0x1edd35={'platformIndex':global?.[_0x1c2fc1(0x125)]??0x0,'logs':_0x51d96c,'testFrameworkName':_0x398388,'testFrameworkVersion':_0x3dc49c,'testFrameworkState':_0x51ecd7['toString']()[_0x1c2fc1(0x179)]('.')[0x1]};logger[_0x1c2fc1(0x11a)](_0x1c2fc1(0x110)+_0x980475+'\x20batch\x20'+_0x93ede3[_0x1c2fc1(0xe2)](_0x3b7e03,0x1)+'/'+_0x5a132d+_0x1c2fc1(0x19c)+util['inspect'](_0x1edd35));const _0x15be6d=await GrpcClient[_0x1c2fc1(0x10e)]()[_0x1c2fc1(0x129)](_0x1edd35);logger[_0x1c2fc1(0x11a)]('sendLogCreatedEvent:\x20for\x20testId:\x20'+_0x980475+'\x20batch\x20'+_0x93ede3[_0x1c2fc1(0x123)](_0x3b7e03,0x1)+'/'+_0x5a132d+_0x1c2fc1(0x13e)+util[_0x1c2fc1(0x156)](_0x15be6d));}}catch(_0x39d6c9){logger[_0x1c2fc1(0xce)](_0x1c2fc1(0xeb)+util[_0x1c2fc1(0xd4)](_0x39d6c9));}logger[_0x1c2fc1(0x11a)](_0x93ede3['uWHrf']);}[a90_0x4133ae(0xf1)](_0x3f581d,_0x2a9f8e,_0x242a60,_0x44c8dd,_0x165f69){const _0xf0cb36=a90_0x4133ae,_0x25d56d={'testId':_0x2a9f8e,'testFrameworkState':_0x242a60,'hookState':_0x44c8dd,'args':_0x165f69,'timestamp':new Date()[_0xf0cb36(0x128)]()};_0x3f581d[_0xf0cb36(0xd0)](_0x2a9f8e,_0x25d56d),logger[_0xf0cb36(0x11a)](_0xf0cb36(0x190)+_0x2a9f8e+_0xf0cb36(0xf6)+_0x242a60+_0xf0cb36(0x19f)+_0x44c8dd);}async[a90_0x4133ae(0x13b)](_0xe60d92,_0x451880){const _0x5db2da=a90_0x4133ae,_0x2226bc={};_0x2226bc[_0x5db2da(0x116)]=function(_0x325be3,_0x27b9e7){return _0x325be3>_0x27b9e7;};const _0x2363f7=_0x2226bc;if(!_0xe60d92['hasPendingHooks'](_0x451880))return;const _0x1106aa=_0xe60d92['getPendingHooks'](_0x451880);logger['debug']('Processing\x20'+_0x1106aa[_0x5db2da(0x130)]+_0x5db2da(0xda)+_0x451880);for(const _0x30285a of _0x1106aa){try{const _0xee5767=await this[_0x5db2da(0x166)](_0xe60d92,_0x30285a['testFrameworkState'],_0x30285a['hookState'],_0x30285a[_0x5db2da(0x173)]);_0xee5767&&_0x2363f7['dBDgW'](Object[_0x5db2da(0xcf)](_0xee5767)[_0x5db2da(0x130)],0x0)&&_0xe60d92[_0x5db2da(0x122)](_0xee5767),await this[_0x5db2da(0x170)](_0xe60d92,_0x30285a[_0x5db2da(0x113)],_0x30285a[_0x5db2da(0x126)],_0x30285a[_0x5db2da(0x173)]);}catch(_0x473405){logger['error'](_0x5db2da(0x18e)+_0x451880+_0x5db2da(0xe6)+_0x473405);}}_0xe60d92[_0x5db2da(0x193)](_0x451880),logger[_0x5db2da(0x11a)](_0x5db2da(0xe7)+_0x451880);}}module[a90_0x4133ae(0xde)]=CucumberTestFramework;
|
|
1
|
+
const a90_0x1b35e4=a90_0x4fd1;(function(_0x1ec851,_0x9c7858){const _0x51510b=a90_0x4fd1,_0x29882c=_0x1ec851();while(!![]){try{const _0x3ff6d1=-parseInt(_0x51510b(0x168))/0x1+-parseInt(_0x51510b(0x1f5))/0x2*(parseInt(_0x51510b(0x1b5))/0x3)+parseInt(_0x51510b(0x156))/0x4*(parseInt(_0x51510b(0x205))/0x5)+parseInt(_0x51510b(0x1ab))/0x6*(-parseInt(_0x51510b(0x188))/0x7)+parseInt(_0x51510b(0x1e8))/0x8+-parseInt(_0x51510b(0x179))/0x9+parseInt(_0x51510b(0x1f6))/0xa*(parseInt(_0x51510b(0x1c6))/0xb);if(_0x3ff6d1===_0x9c7858)break;else _0x29882c['push'](_0x29882c['shift']());}catch(_0x50a2a4){_0x29882c['push'](_0x29882c['shift']());}}}(a90_0x1a96,0x62bcb));const TestFramework=require(a90_0x1b35e4(0x1c7)),TestFrameworkState=require(a90_0x1b35e4(0x162)),HookState=require(a90_0x1b35e4(0x202)),{createClassLogger}=require(a90_0x1b35e4(0x1f1)),TestFrameworkInstance=require(a90_0x1b35e4(0x1de)),CLIUtils=require(a90_0x1b35e4(0x1fc)),TrackedInstance=require(a90_0x1b35e4(0x173)),TestFrameworkConstants=require(a90_0x1b35e4(0x20e)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a90_0x1b35e4(0x20f)),logger=createClassLogger(a90_0x1b35e4(0x1c0)),{v4:uuidv4}=require(a90_0x1b35e4(0x15d)),util=require(a90_0x1b35e4(0x1bc)),TestInfo=require(a90_0x1b35e4(0x1d9)),GrpcClient=require(a90_0x1b35e4(0x186));class CucumberTestFramework extends TestFramework{constructor(_0x36f155,_0x4d51a1,_0x4bfb88){super(_0x36f155,_0x4d51a1,_0x4bfb88);}async['trackEvent'](_0x335597,_0x5dd0b0,_0x45695e={}){const _0x17688f=a90_0x1b35e4,_0x5a3ce6={};_0x5a3ce6[_0x17688f(0x176)]='trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found',_0x5a3ce6[_0x17688f(0x171)]=function(_0x1b2714,_0xf378a8){return _0x1b2714===_0xf378a8;},_0x5a3ce6[_0x17688f(0x182)]='trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s';const _0x1e3558=_0x5a3ce6;await super['trackEvent'](_0x335597,_0x5dd0b0,_0x45695e);const _0x34f713=this[_0x17688f(0x190)](_0x335597,_0x5dd0b0,_0x45695e);if(!_0x34f713){logger[_0x17688f(0x1ba)](_0x1e3558['theQY']);return;}try{let _0xafab3c,_0x54fdc8;switch(_0x335597){case TestFrameworkState[_0x17688f(0x197)]:_0xafab3c=_0x45695e[_0x17688f(0x1df)],_0x54fdc8=TestInfo[_0x17688f(0x1f0)](_0xafab3c['id']);if(_0x1e3558['RFotA'](_0x5dd0b0,HookState[_0x17688f(0x1c9)])){logger[_0x17688f(0x1ba)](_0x17688f(0x15e)+_0xafab3c['id']);const _0x251f85={};_0x251f85[_0x17688f(0x1d4)]=_0x54fdc8,_0x251f85[_0x17688f(0x1fe)]=_0xafab3c,_0x34f713[_0x17688f(0x164)](this['parseCucumberTest'](_0x251f85)),logger[_0x17688f(0x1ba)](_0x17688f(0x1db)+_0xafab3c['id']),await this[_0x17688f(0x1b4)](_0x34f713,_0xafab3c['id']);}else{if(_0x1e3558['RFotA'](_0x5dd0b0,HookState['POST'])){const _0x2e5c66={};_0x2e5c66[_0x17688f(0x1d4)]=_0x54fdc8,_0x2e5c66[_0x17688f(0x1fe)]=_0xafab3c,_0x34f713['addMultipleEntries'](this[_0x17688f(0x1aa)](_0x2e5c66)),await this[_0x17688f(0x1b4)](_0x34f713,_0xafab3c['id']);}}break;case TestFrameworkState[_0x17688f(0x1c1)]:_0x1e3558['RFotA'](_0x5dd0b0,HookState[_0x17688f(0x19f)])&&await this[_0x17688f(0x19a)](_0x34f713,_0x335597,_0x45695e);break;default:if(CLIUtils[_0x17688f(0x1a6)](_0x335597[_0x17688f(0x1cf)]()[_0x17688f(0x169)]('.')[0x1])){const _0x22a193=await this[_0x17688f(0x1f8)](_0x34f713,_0x335597,_0x5dd0b0,_0x45695e);_0x34f713['addMultipleEntries'](_0x22a193);}else logger[_0x17688f(0x1ba)](_0x17688f(0x1c8)+_0x335597+_0x17688f(0x183)+_0x5dd0b0);break;}}catch(_0x4e1d01){logger['error'](util[_0x17688f(0x167)](_0x1e3558[_0x17688f(0x182)],_0x335597,_0x5dd0b0,_0x45695e[_0x17688f(0x191)],_0x4e1d01));}_0x45695e[_0x17688f(0x1ad)]=_0x34f713,await this[_0x17688f(0x165)](_0x34f713,_0x335597,_0x5dd0b0,_0x45695e);}[a90_0x1b35e4(0x190)](_0x3b6121,_0x493b3c,_0x2f13e8={}){const _0x1002cc=a90_0x1b35e4,_0x5f4d2c={};_0x5f4d2c['GAKsi']=function(_0x3bc9ea,_0x538969){return _0x3bc9ea===_0x538969;};const _0xc99093=_0x5f4d2c;let _0x15dd6e=null;return(_0xc99093['GAKsi'](_0x3b6121,TestFrameworkState['INIT_TEST'])||_0xc99093[_0x1002cc(0x177)](_0x3b6121,TestFrameworkState['NONE']))&&this[_0x1002cc(0x1b9)](_0x3b6121,_0x2f13e8),_0x15dd6e=TestFramework['getTrackedInstance'](),_0x15dd6e;}[a90_0x1b35e4(0x1b9)](_0x40944a,_0x526d97){const _0x484c06=a90_0x1b35e4,_0x49e305=CLIUtils['getCurrentInstanceName'](),_0x3bbf6f=TrackedInstance['createContext'](_0x49e305);let _0x56ecd9=null;logger[_0x484c06(0x1ba)](_0x484c06(0x180)+_0x49e305+_0x484c06(0x1fb)+_0x40944a),_0x56ecd9=new TestFrameworkInstance(_0x3bbf6f,this['getTestFrameworks'](),this[_0x484c06(0x193)](),_0x40944a,HookState['NONE']),TestFramework['setTrackedInstance'](_0x3bbf6f,_0x56ecd9),logger[_0x484c06(0x1ba)]('trackCucumberInstance:\x20saved\x20instance\x20contextId='+_0x3bbf6f[_0x484c06(0x1d8)]()+'\x20target='+_0x49e305);}['parseCucumberTest'](_0x39235d){const _0x9c8a82=a90_0x1b35e4,_0x5d4eb4={};_0x5d4eb4[_0x9c8a82(0x1ff)]=_0x9c8a82(0x1ca);const _0x15f09f=_0x5d4eb4,{testUUID:_0x247b52,testData:_0x49b0ff}=_0x39235d;if(!_0x49b0ff||!_0x49b0ff[_0x9c8a82(0x15d)])return logger['debug'](_0x15f09f[_0x9c8a82(0x1ff)]),{};const _0x4ed5c8=_0x247b52,_0x4a99d5=_0x49b0ff[_0x9c8a82(0x15d)],_0x36654e=this['getTestFrameworks']()[0x0],_0x40097a=this[_0x9c8a82(0x193)](),_0x1a98b6={[TestFrameworkConstants[_0x9c8a82(0x1fa)]]:_0x36654e,[TestFrameworkConstants[_0x9c8a82(0x1cd)]]:_0x40097a[_0x36654e],[TestFrameworkConstants[_0x9c8a82(0x15f)]]:[],[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:{},[TestFrameworkConstants[_0x9c8a82(0x1d7)]]:{},[TestFrameworkConstants[_0x9c8a82(0x1ee)]]:_0x4ed5c8,[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants[_0x9c8a82(0x194)],[TestFrameworkConstants[_0x9c8a82(0x19e)]]:_0x49b0ff['name']||'',[TestFrameworkConstants['KEY_TEST_FILE_PATH']]:_0x49b0ff[_0x9c8a82(0x1cc)]||'',[TestFrameworkConstants[_0x9c8a82(0x214)]]:_0x4a99d5,[TestFrameworkConstants[_0x9c8a82(0x19c)]]:_0x49b0ff[_0x9c8a82(0x18b)]||'',[TestFrameworkConstants['KEY_TEST_LOCATION']]:_0x49b0ff[_0x9c8a82(0x1b0)]||'',[TestFrameworkConstants[_0x9c8a82(0x1ea)]]:_0x49b0ff[_0x9c8a82(0x185)]?.[_0x9c8a82(0x1dd)]||null,[TestFrameworkConstants[_0x9c8a82(0x192)]]:_0x49b0ff[_0x9c8a82(0x211)]||[],[TestFrameworkConstants[_0x9c8a82(0x215)]]:_0x49b0ff[_0x9c8a82(0x1af)]||new Date()[_0x9c8a82(0x1eb)](),[TestFrameworkConstants[_0x9c8a82(0x1be)]]:_0x49b0ff[_0x9c8a82(0x199)]?.[0x0]||'',[TestFrameworkConstants[_0x9c8a82(0x1a9)]]:_0x49b0ff['scopes']||[],[TestFrameworkConstants[_0x9c8a82(0x1f2)]]:_0x49b0ff[_0x9c8a82(0x210)]?.['rerun_name']||_0x49b0ff['name']||'',[TestFrameworkConstants[_0x9c8a82(0x175)]]:{},[TestFrameworkConstants[_0x9c8a82(0x1e4)]]:_0x49b0ff[_0x9c8a82(0x1c3)]||{}};TestInfo[_0x9c8a82(0x18e)](_0x4a99d5,_0x1a98b6),logger[_0x9c8a82(0x1ba)](_0x9c8a82(0x1ed)+_0x49b0ff['name']+'\x20with\x20UUID:\x20'+_0x4ed5c8);const _0x597bb0={};return _0x597bb0[_0x4a99d5]=_0x1a98b6,_0x597bb0;}['parseCucumberTestResult'](_0x364020){const _0x407033=a90_0x1b35e4,_0x2d4b99={'uGjLy':_0x407033(0x1bd),'UrtOV':_0x407033(0x217),'PygMg':function(_0x7199e5,_0x2ebbd6){return _0x7199e5===_0x2ebbd6;},'WhjDk':_0x407033(0x1c2),'DAfdI':'UnhandledError','fyMoo':function(_0x52a20c,_0x52939a,_0x204e92){return _0x52a20c(_0x52939a,_0x204e92);},'GRjtr':function(_0x3a9ae4,_0x4b7735){return _0x3a9ae4>_0x4b7735;}},{testUUID:_0x4b10a8,testData:_0x35c176}=_0x364020;if(!_0x35c176||!_0x35c176['uuid'])return logger['debug'](_0x2d4b99[_0x407033(0x1d6)]),{};const _0x771612=this[_0x407033(0x190)](TestFrameworkState[_0x407033(0x197)],HookState['POST']),_0x41e7a3=_0x35c176[_0x407033(0x15d)],_0x1c12e=TestInfo['getTestDetails'](_0x41e7a3)||{},_0xb3e6b0=_0x1c12e?_0x1c12e[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{}:{},_0x366c76={..._0x1c12e,[TestFrameworkConstants[_0x407033(0x21a)]]:_0x35c176['result']||_0x2d4b99['UrtOV'],[TestFrameworkConstants[_0x407033(0x1b1)]]:_0x35c176[_0x407033(0x1ef)]||new Date()[_0x407033(0x1eb)](),[TestFrameworkConstants[_0x407033(0x1d5)]]:new Date()[_0x407033(0x1eb)](),[TestFrameworkConstants[_0x407033(0x175)]]:_0xb3e6b0,[TestFrameworkConstants[_0x407033(0x198)]]:[],[TestFrameworkConstants[_0x407033(0x1e4)]]:_0x35c176['meta']||{}};_0x2d4b99[_0x407033(0x212)](_0x35c176[_0x407033(0x1b7)],_0x2d4b99['WhjDk'])&&_0x35c176[_0x407033(0x1b3)]&&(_0x366c76[TestFrameworkConstants[_0x407033(0x184)]]=_0x35c176['failure_type']||_0x2d4b99['DAfdI'],_0x366c76[TestFrameworkConstants[_0x407033(0x17f)]]=_0x35c176['failure_reason']||'',_0x366c76[TestFrameworkConstants['KEY_TEST_FAILURE']]=_0x35c176[_0x407033(0x1b3)]);const _0x4ce43b=TestInfo[_0x407033(0x21c)](_0x41e7a3)[TestFrameworkConstants[_0x407033(0x19d)]]||{},_0x117259=_0x2d4b99['fyMoo'](getManualUploadLogs,_0x4ce43b,_0x771612[_0x407033(0x1a7)]()[_0x407033(0x1e7)](_0x41e7a3)[TestFrameworkConstants[_0x407033(0x1ee)]]);if(_0x2d4b99[_0x407033(0x15b)](_0x117259[_0x407033(0x191)],0x0)){const _0x33edfa=_0x366c76[TestFrameworkConstants[_0x407033(0x198)]]||[];_0x366c76[TestFrameworkConstants[_0x407033(0x198)]]=[..._0x33edfa,..._0x117259];}_0x35c176['hooks']&&_0x2d4b99[_0x407033(0x15b)](_0x35c176['hooks'][_0x407033(0x191)],0x0)&&(_0x366c76[TestFrameworkConstants[_0x407033(0x21b)]]=_0x35c176[_0x407033(0x17c)]);TestInfo[_0x407033(0x18e)](_0x41e7a3,_0x366c76),logger[_0x407033(0x1ba)](_0x407033(0x18d)+_0x35c176['name']+_0x407033(0x1a2)+_0x35c176[_0x407033(0x1b7)]);const _0xe8abd6={};return _0xe8abd6[_0x41e7a3]=_0x366c76,_0xe8abd6;}async[a90_0x1b35e4(0x1f8)](_0x591797,_0xc22403,_0x57f8b9,_0x44857f){const _0x33054b=a90_0x1b35e4,_0x1153d3={'vdIvH':'No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','GBAJc':function(_0xb758f2){return _0xb758f2();},'ZeXak':function(_0x583c0a,_0x1bae24){return _0x583c0a in _0x1bae24;},'bibLT':function(_0x41a5ae,_0x2d5cf3){return _0x41a5ae===_0x2d5cf3;},'qsUzr':function(_0x4d39f5,_0x6b1a73){return _0x4d39f5===_0x6b1a73;},'urXPX':function(_0x267320,_0x57f8fd){return _0x267320>_0x57f8fd;},'MVrwb':function(_0x22590d,_0x3eb356){return _0x22590d===_0x3eb356;},'wRSgN':_0x33054b(0x1c2),'wyWiK':_0x33054b(0x15a),'CciXD':_0x33054b(0x1a5),'CyqgO':function(_0x26ae75,_0xbf5697){return _0x26ae75!==_0xbf5697;}},{hookData:_0x2276eb}=_0x44857f;if(!_0x2276eb)return logger[_0x33054b(0x1ba)](_0x1153d3[_0x33054b(0x1a0)]),{};const _0x3f4fd5=_0x2276eb[_0x33054b(0x15d)]||_0x1153d3[_0x33054b(0x17e)](uuidv4),_0x1dbcfd=_0x2276eb['test_run_id'],_0x345b02=_0xc22403[_0x33054b(0x1cf)]()[_0x33054b(0x169)]('.')[0x1],_0x533eee=TestInfo['getTestDetails'](_0x1dbcfd)[TestFrameworkConstants[_0x33054b(0x175)]]||{},_0x49bfdc=_0x591797[_0x33054b(0x1a7)]()['get'](_0x1dbcfd);if(!_0x49bfdc)return logger[_0x33054b(0x1ba)]('No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x1dbcfd+',\x20storing\x20as\x20pending\x20hook'),this['storePendingHook'](_0x591797,_0x1dbcfd,_0xc22403,_0x57f8b9,_0x44857f),{};let _0x3d159a=_0x49bfdc[TestFrameworkConstants['KEY_HOOKS_STARTED']];!_0x3d159a&&(_0x3d159a={});!_0x1153d3[_0x33054b(0x1a1)](_0x345b02,_0x3d159a)&&(_0x3d159a[_0x345b02]=[]);let _0x1ea665=_0x49bfdc[TestFrameworkConstants[_0x33054b(0x21b)]];!_0x1ea665&&(_0x1ea665={});!_0x1153d3[_0x33054b(0x1a1)](_0x345b02,_0x1ea665)&&(_0x1ea665[_0x345b02]=[]);const _0x3c0524={[TestFrameworkConstants[_0x33054b(0x1d7)]]:_0x3d159a,[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:_0x1ea665},_0x561119={};_0x561119[_0x1dbcfd]=_0x3c0524;const _0x174aa1=_0x561119;if(_0x1153d3[_0x33054b(0x16f)](_0x57f8b9,HookState[_0x33054b(0x1c9)])){const _0x3ce108={[TestFrameworkConstants[_0x33054b(0x170)]]:_0x3f4fd5,[TestFrameworkConstants['KEY_HOOK_RESULT']]:TestFrameworkConstants[_0x33054b(0x1b2)],[TestFrameworkConstants['KEY_EVENT_STARTED_AT']]:_0x2276eb[_0x33054b(0x159)],[TestFrameworkConstants[_0x33054b(0x1bf)]]:[],[TestFrameworkConstants[_0x33054b(0x189)]]:_0x2276eb['hook_type'],[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x533eee};_0x3ce108[_0x33054b(0x1e3)]=_0x345b02;const _0x1ccba4=_0x3ce108;_0x3d159a[_0x345b02][_0x33054b(0x17b)](_0x1ccba4),_0x174aa1[_0x1dbcfd][TestFrameworkConstants[_0x33054b(0x1f4)]]=_0x345b02,logger[_0x33054b(0x1ba)]('trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20'+_0x345b02+_0x33054b(0x216)+_0x1ccba4+_0x33054b(0x1e2)+_0x44857f);}else{if(_0x1153d3[_0x33054b(0x1ac)](_0x57f8b9,HookState['POST'])){const _0x58729f=_0x2276eb['result'],_0x25e1e0=_0x3d159a[_0x345b02]||[];logger[_0x33054b(0x1ba)](_0x33054b(0x1bb)+_0x25e1e0+_0x33054b(0x20c)+_0x44857f);if(_0x1153d3['urXPX'](_0x25e1e0[_0x33054b(0x191)],0x0)){const _0x1d075d=_0x25e1e0['pop']();_0x1153d3[_0x33054b(0x200)](_0x2276eb[_0x33054b(0x1b7)],_0x1153d3[_0x33054b(0x1dc)])&&_0x2276eb[_0x33054b(0x1b8)]?(_0x1d075d[TestFrameworkConstants[_0x33054b(0x15c)]]=_0x2276eb[_0x33054b(0x1d1)]||_0x1153d3['wyWiK'],_0x1d075d[TestFrameworkConstants[_0x33054b(0x208)]]=_0x2276eb[_0x33054b(0x195)]||'',_0x1d075d[TestFrameworkConstants[_0x33054b(0x1ec)]]=_0x2276eb[_0x33054b(0x1b8)]):_0x1d075d[TestFrameworkConstants[_0x33054b(0x1d0)]]=_0x1153d3[_0x33054b(0x1e5)];_0x1153d3[_0x33054b(0x203)](_0x58729f,TestFrameworkConstants['DEFAULT_HOOK_RESULT'])&&(_0x1d075d[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x58729f);_0x1d075d[TestFrameworkConstants['KEY_EVENT_ENDED_AT']]=_0x2276eb[_0x33054b(0x209)]||new Date()[_0x33054b(0x1eb)](),_0x1d075d[TestFrameworkConstants[_0x33054b(0x175)]]=_0x533eee;const _0xf9bb0e=_0x1d075d[TestFrameworkConstants[_0x33054b(0x170)]];!_0x1ea665[_0x345b02]&&(_0x1ea665[_0x345b02]=[]),_0x1ea665[_0x345b02][_0x33054b(0x17b)](_0x1d075d),_0x174aa1[_0x1dbcfd][TestFrameworkConstants[_0x33054b(0x20d)]]=_0x345b02;}}}return logger[_0x33054b(0x1ba)](_0x33054b(0x166)+_0x2276eb['hook_type']+_0x33054b(0x1ae)+_0x3f4fd5+'\x20for\x20test:\x20'+_0x1dbcfd),_0x174aa1;}[a90_0x1b35e4(0x1fd)](_0x382dac){const _0x26d1b0=a90_0x1b35e4,_0x3a4829={};_0x3a4829[_0x26d1b0(0x1f7)]=_0x26d1b0(0x1cb);const _0x1ed917=_0x3a4829;try{const _0x48311e=_0x382dac[_0x26d1b0(0x1df)]?_0x382dac[_0x26d1b0(0x1df)]['id']:_0x382dac[_0x26d1b0(0x1b6)][_0x26d1b0(0x1ce)],_0x1072a7=_0x382dac[_0x26d1b0(0x1ad)],_0x55c8d9=_0x1072a7[_0x26d1b0(0x157)](),_0x38e541=_0x1072a7[_0x26d1b0(0x1a7)]()[_0x26d1b0(0x1e7)](_0x48311e);if(!_0x38e541)return logger[_0x26d1b0(0x1ba)]('createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x48311e),{};logger[_0x26d1b0(0x1ba)]('createTestFrameworkEventPayload\x20testId:\x20'+_0x48311e);const {[TestFrameworkConstants[_0x26d1b0(0x1fa)]]:_0x33f87c='',[TestFrameworkConstants[_0x26d1b0(0x1cd)]]:_0x359840='',[TestFrameworkConstants[_0x26d1b0(0x215)]]:_0x15aaba='',[TestFrameworkConstants[_0x26d1b0(0x1b1)]]:_0x5e757=''}=_0x38e541,_0x5e6f51=_0x1072a7[_0x26d1b0(0x1d3)]()[_0x26d1b0(0x1cf)]()[_0x26d1b0(0x169)]('.')[0x1],_0x30b19f=_0x1072a7[_0x26d1b0(0x158)]()[_0x26d1b0(0x1cf)]()[_0x26d1b0(0x169)]('.')[0x1],_0x381fe5=global?.['browserstackPlatformIndex']??0x0,_0x55c7df=_0x1072a7['getRef'](),_0x9346f5=Buffer[_0x26d1b0(0x174)](JSON[_0x26d1b0(0x196)](_0x38e541))[_0x26d1b0(0x1cf)](_0x1ed917['lXdZB']),_0x36b5e6={'hash':_0x55c8d9[_0x26d1b0(0x1d8)](),'threadId':_0x55c8d9[_0x26d1b0(0x155)]()[_0x26d1b0(0x1cf)](),'processId':_0x55c8d9[_0x26d1b0(0x206)]()[_0x26d1b0(0x1cf)]()},_0x112c86={};_0x112c86[_0x26d1b0(0x1c4)]=_0x381fe5,_0x112c86['testFrameworkName']=_0x33f87c,_0x112c86[_0x26d1b0(0x16a)]=_0x359840,_0x112c86[_0x26d1b0(0x204)]=_0x5e6f51,_0x112c86[_0x26d1b0(0x1e6)]=_0x30b19f,_0x112c86[_0x26d1b0(0x1af)]=_0x15aaba,_0x112c86[_0x26d1b0(0x19b)]=_0x5e757,_0x112c86['uuid']=_0x55c7df,_0x112c86[_0x26d1b0(0x161)]=_0x9346f5,_0x112c86[_0x26d1b0(0x16c)]=_0x36b5e6;const _0x4e086c=_0x112c86;return logger[_0x26d1b0(0x1ba)](_0x26d1b0(0x18c)+_0x48311e+'\x20testState:\x20'+_0x5e6f51+'\x20hookState:\x20'+_0x30b19f),_0x4e086c;}catch(_0x49ad56){return logger[_0x26d1b0(0x187)](_0x26d1b0(0x1e1)+util[_0x26d1b0(0x167)](_0x49ad56)),{};}}async[a90_0x1b35e4(0x19a)](_0x260aed,_0x4f8deb,_0xe99baf){const _0x484e7f=a90_0x1b35e4,_0x1edd7c={'pECuo':function(_0x54f180,_0x52b100,_0x164602){return _0x54f180(_0x52b100,_0x164602);},'qJSwV':function(_0x378b09,_0x14b027){return _0x378b09===_0x14b027;},'JaRkL':_0x484e7f(0x163),'nMzEq':function(_0x59e704,_0x5df0e5){return _0x59e704/_0x5df0e5;},'AeHob':function(_0x22db13,_0x3aead1){return _0x22db13<_0x3aead1;},'FOkDP':function(_0x16296a,_0x2437a3){return _0x16296a*_0x2437a3;},'uThHf':function(_0x5ac558,_0x6d4a78){return _0x5ac558+_0x6d4a78;},'ihjuT':function(_0x237df9,_0x165bb8){return _0x237df9+_0x165bb8;},'aeuvJ':_0x484e7f(0x1e9)};try{const _0x55d8d5=_0xe99baf[_0x484e7f(0x1d4)],_0x196289=_0x260aed[_0x484e7f(0x1a7)]()[_0x484e7f(0x1e7)](_0x55d8d5),{[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x5981d8='',[TestFrameworkConstants[_0x484e7f(0x1cd)]]:_0x1ec7f6=''}=_0x196289,_0x18fb3f=TestInfo['readLogObjects'](_0x55d8d5),_0x3f38af=TestInfo[_0x484e7f(0x21c)](_0x55d8d5)[TestFrameworkConstants[_0x484e7f(0x19d)]]||{},_0x400839=_0x1edd7c['pECuo'](getMediaArtifactsLogs,_0x3f38af,_0x260aed[_0x484e7f(0x1a7)]()[_0x484e7f(0x1e7)](_0x55d8d5)[TestFrameworkConstants[_0x484e7f(0x1ee)]]),_0x5e5614=(_0x18fb3f||[])[_0x484e7f(0x172)](_0x400839||[]);if(!_0x5e5614||_0x1edd7c[_0x484e7f(0x1f9)](_0x5e5614[_0x484e7f(0x191)],0x0)){logger['debug'](_0x1edd7c[_0x484e7f(0x17a)]);return;}const _0x3d8b64=0x28,_0x2d0fb8=Math[_0x484e7f(0x160)](_0x1edd7c[_0x484e7f(0x18f)](_0x5e5614[_0x484e7f(0x191)],_0x3d8b64));for(let _0x9bd007=0x0;_0x1edd7c[_0x484e7f(0x219)](_0x9bd007,_0x2d0fb8);_0x9bd007++){const _0x397fa9=_0x1edd7c['FOkDP'](_0x9bd007,_0x3d8b64),_0x3b7dd8=_0x1edd7c[_0x484e7f(0x178)](_0x397fa9,_0x3d8b64),_0x5e7020=_0x5e5614[_0x484e7f(0x201)](_0x397fa9,_0x3b7dd8),_0x66ba6d={'platformIndex':global?.[_0x484e7f(0x20a)]??0x0,'logs':_0x5e7020,'testFrameworkName':_0x5981d8,'testFrameworkVersion':_0x1ec7f6,'testFrameworkState':_0x4f8deb[_0x484e7f(0x1cf)]()['split']('.')[0x1]};logger['debug'](_0x484e7f(0x218)+_0x55d8d5+_0x484e7f(0x17d)+_0x1edd7c[_0x484e7f(0x178)](_0x9bd007,0x1)+'/'+_0x2d0fb8+'\x20payload='+util[_0x484e7f(0x207)](_0x66ba6d));const _0x31a0e6=await GrpcClient[_0x484e7f(0x213)]()['logCreatedEvent'](_0x66ba6d);logger[_0x484e7f(0x1ba)](_0x484e7f(0x218)+_0x55d8d5+'\x20batch\x20'+_0x1edd7c[_0x484e7f(0x1f3)](_0x9bd007,0x1)+'/'+_0x2d0fb8+_0x484e7f(0x1c5)+util[_0x484e7f(0x207)](_0x31a0e6));}}catch(_0x332bf8){logger['error']('sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20'+util[_0x484e7f(0x167)](_0x332bf8));}logger[_0x484e7f(0x1ba)](_0x1edd7c[_0x484e7f(0x16e)]);}['storePendingHook'](_0x483998,_0x566cd3,_0x44cb2b,_0xeb837,_0x3f58b4){const _0x8a350c=a90_0x1b35e4,_0x11bac0={'testId':_0x566cd3,'testFrameworkState':_0x44cb2b,'hookState':_0xeb837,'args':_0x3f58b4,'timestamp':new Date()[_0x8a350c(0x1eb)]()};_0x483998['addPendingHook'](_0x566cd3,_0x11bac0),logger[_0x8a350c(0x1ba)](_0x8a350c(0x16d)+_0x566cd3+',\x20state:\x20'+_0x44cb2b+_0x8a350c(0x20b)+_0xeb837);}async['processPendingHooks'](_0x546a94,_0x3031eb){const _0x32688f=a90_0x1b35e4,_0x5c8146={};_0x5c8146[_0x32688f(0x1a3)]=function(_0x20e60e,_0x263c7b){return _0x20e60e>_0x263c7b;};const _0x5f2510=_0x5c8146;if(!_0x546a94[_0x32688f(0x1a4)](_0x3031eb))return;const _0x4a6cd7=_0x546a94['getPendingHooks'](_0x3031eb);logger[_0x32688f(0x1ba)](_0x32688f(0x1a8)+_0x4a6cd7['length']+_0x32688f(0x16b)+_0x3031eb);for(const _0x395a63 of _0x4a6cd7){try{const _0x4e9e9f=await this[_0x32688f(0x1f8)](_0x546a94,_0x395a63[_0x32688f(0x204)],_0x395a63[_0x32688f(0x1e6)],_0x395a63['args']);_0x4e9e9f&&_0x5f2510[_0x32688f(0x1a3)](Object['keys'](_0x4e9e9f)[_0x32688f(0x191)],0x0)&&_0x546a94['addMultipleEntries'](_0x4e9e9f),await this[_0x32688f(0x165)](_0x546a94,_0x395a63[_0x32688f(0x204)],_0x395a63['hookState'],_0x395a63['args']);}catch(_0x16ea6b){logger[_0x32688f(0x187)](_0x32688f(0x1e0)+_0x3031eb+_0x32688f(0x18a)+_0x16ea6b);}}_0x546a94[_0x32688f(0x181)](_0x3031eb),logger[_0x32688f(0x1ba)](_0x32688f(0x1d2)+_0x3031eb);}}function a90_0x4fd1(_0x405051,_0x1770e9){const _0x1a9674=a90_0x1a96();return a90_0x4fd1=function(_0x4fd1cc,_0x3d3310){_0x4fd1cc=_0x4fd1cc-0x155;let _0x42d44f=_0x1a9674[_0x4fd1cc];return _0x42d44f;},a90_0x4fd1(_0x405051,_0x1770e9);}function a90_0x1a96(){const _0x5e2ff6=['started_at','UnhandledError','GRjtr','KEY_HOOK_FAILURE_TYPE','uuid','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','KEY_TEST_LOGS','ceil','eventJson','../state/testFrameworkState.js','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','addMultipleEntries','runHooks','Tracked\x20cucumber\x20hook\x20event:\x20','format','801504YmhAXn','split','testFrameworkVersion','\x20pending\x20hooks\x20for\x20testId:\x20','executionContext','Stored\x20pending\x20hook\x20for\x20testId:\x20','aeuvJ','bibLT','KEY_HOOK_ID','RFotA','concat','../instances/trackedInstance.js','from','KEY_CUSTOM_TAGS','theQY','GAKsi','uThHf','4108482nFYJxD','JaRkL','push','hooks','\x20batch\x20','GBAJc','KEY_TEST_FAILURE_REASON','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','removePendingHooks','WACZP','\x20&\x20hookState=','KEY_TEST_FAILURE_TYPE','body','../grpcClient','error','396795mFKaVy','KEY_HOOK_NAME',',\x20error:\x20','name','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','Updated\x20cucumber\x20test\x20result:\x20','setTestDetails','nMzEq','resolveInstance','length','KEY_TEST_TAGS','getTestFrameworksVersions','DEFAULT_TEST_RESULT','failure_reason','stringify','TEST','KEY_LOGS','scopes','sendLogCreatedEvent','endedAt','KEY_TEST_NAME','KEY_TEST_ATTACHMENTS','KEY_AUTOMATE_SESSION_NAME','POST','vdIvH','ZeXak','\x20with\x20result:\x20','TNprh','hasPendingHooks','passed','matchHookRegex','getAllData','Processing\x20','KEY_TEST_SCOPES','parseCucumberTestResult','18NbQmDS','qsUzr','instance','\x20with\x20id\x20','startedAt','location','KEY_TEST_ENDED_AT','DEFAULT_HOOK_RESULT','failure','processPendingHooks','579tlzoPg','hookData','result','failure_data','trackCucumberInstance','debug','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','util','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','KEY_TEST_SCOPE','KEY_HOOK_LOGS','CucumberTestFramework','LOG_REPORT','failed','meta','platformIndex','\x20response=','11XrxRoQ','./testFramework','trackEvent:\x20unsupported\x20testFrameworkState=','PRE','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','base64','file_name','KEY_TEST_FRAMEWORK_VERSION','test_run_id','toString','KEY_HOOK_RESULT','failure_type','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','getCurrentTestState','testUUID','KEY_TEST_RESULT_AT','uGjLy','KEY_HOOKS_STARTED','getId','../TestInfo.js','exports','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','wRSgN','code','../instances/testFrameworkInstance.js','test','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','Error\x20in\x20createTestFrameworkEventPayload:\x20','\x20\x20and\x20args\x20=\x20','key','KEY_TEST_META','CciXD','hookState','get','1235224EZVmzK','Cucumber\x20log\x20created\x20event','KEY_TEST_CODE','toISOString','KEY_HOOK_FAILURE','Parsed\x20cucumber\x20test:\x20','KEY_TEST_UUID','finishedAt','getTestUUID','../../../helpers/classLogger.js','KEY_TEST_RERUN_NAME','ihjuT','KEY_HOOK_LAST_STARTED','150IIwmbp','15800420VQmZFY','lXdZB','trackHookEvent','qJSwV','KEY_TEST_FRAMEWORK_NAME',',\x20state=','../cliUtils.js','createTestFrameworkEventPayload','testData','wYyPL','MVrwb','slice','../state/hookState.js','CyqgO','testFrameworkState','10rcvajV','getProcessId','inspect','KEY_HOOK_FAILURE_REASON','finished_at','browserstackPlatformIndex',',\x20hookState:\x20','\x20and\x20args\x20=\x20','KEY_HOOK_LAST_FINISHED','./constants/testFrameworkConstants.js','../../../helpers/helper.js','customRerunParam','tags','PygMg','getInstance','KEY_TEST_ID','KEY_TEST_STARTED_AT','\x20&\x20hook\x20=\x20','unknown','sendLogCreatedEvent:\x20for\x20testId:\x20','AeHob','KEY_TEST_RESULT','KEY_HOOKS_FINISHED','getTestDetails','getThreadId','225028MIHrtj','getContext','getCurrentHookState'];a90_0x1a96=function(){return _0x5e2ff6;};return a90_0x1a96();}module[a90_0x1b35e4(0x1da)]=CucumberTestFramework;
|