browserstack-node-sdk 1.54.2 → 1.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +3 -3
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test.setup.js +1 -1
  67. package/src/bin/jest/test_before.setup.js +1 -1
  68. package/src/bin/launcher/launcher.js +1 -1
  69. package/src/bin/load/index.js +1 -1
  70. package/src/bin/load/loadUtils.js +1 -1
  71. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  72. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  73. package/src/bin/mocha/command.js +1 -1
  74. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  75. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  76. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  77. package/src/bin/mocha/test.setup.js +1 -1
  78. package/src/bin/newman/command.js +2 -0
  79. package/src/bin/newman/helper.js +1 -0
  80. package/src/bin/newman/reporter/index.js +1 -0
  81. package/src/bin/newman/scriptRunner.js +2 -0
  82. package/src/bin/nightwatch/command.js +1 -1
  83. package/src/bin/playwright/accessibility-helper.js +1 -1
  84. package/src/bin/playwright/command.js +1 -1
  85. package/src/bin/playwright/globalSetup.js +1 -1
  86. package/src/bin/playwright/mock-process.js +1 -1
  87. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  88. package/src/bin/playwright/patches.js +1 -1
  89. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  90. package/src/bin/playwright/reporter/reporter.js +1 -1
  91. package/src/bin/playwright/reporter/test-details.js +1 -1
  92. package/src/bin/playwright/sessionDetails.js +1 -1
  93. package/src/bin/puppeteer/patches.js +1 -1
  94. package/src/bin/puppeteer/sessionDetails.js +1 -1
  95. package/src/bin/puppeteer/test.setup.js +1 -1
  96. package/src/bin/runner.js +1 -1
  97. package/src/bin/setup.js +1 -1
  98. package/src/bin/test-runner/index.js +1 -1
  99. package/src/bin/test-runner/runTest.js +1 -1
  100. package/src/bin/test-runner/testWorker.js +1 -1
  101. package/src/bin/utils/apiUtilityMethods.js +1 -1
  102. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  103. package/src/bin/utils/constants.js +1 -1
  104. package/src/bin/utils/log4jsAppender.js +1 -1
  105. package/src/bin/utils/logPatcher.js +1 -1
  106. package/src/bin/utils/logReportingAPI.js +1 -1
  107. package/src/bin/utils/playwright-patcher.js +1 -1
  108. package/src/bin/utils/puppeteer-patcher.js +1 -1
  109. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  110. package/src/bin/utils/sharedUtils.js +1 -1
  111. package/src/bin/v2/TestInfo.js +1 -1
  112. package/src/bin/v2/browserstackCLI.js +1 -1
  113. package/src/bin/v2/cliUtils.js +1 -1
  114. package/src/bin/v2/customTagManager.js +1 -1
  115. package/src/bin/v2/eventDispatcher.js +1 -1
  116. package/src/bin/v2/framework/automationFramework.js +1 -1
  117. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  118. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  119. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  120. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  121. package/src/bin/v2/framework/newmanTestFramework.js +1 -0
  122. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  123. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  124. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  125. package/src/bin/v2/framework/testFramework.js +1 -1
  126. package/src/bin/v2/grpcClient.js +1 -1
  127. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  128. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  129. package/src/bin/v2/instances/trackedContext.js +1 -1
  130. package/src/bin/v2/instances/trackedInstance.js +1 -1
  131. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  132. package/src/bin/v2/modules/baseModule.js +1 -1
  133. package/src/bin/v2/modules/loadTestModule.js +1 -1
  134. package/src/bin/v2/modules/observabilityModule.js +1 -1
  135. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  136. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  137. package/src/bin/v2/modules/testhubModule.js +1 -1
  138. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  139. package/src/bin/v2/state/hookState.js +1 -1
  140. package/src/bin/v2/state/testFrameworkState.js +1 -1
  141. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  142. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  143. package/src/bin/v2/utils/jest-utils.js +1 -1
  144. package/src/bin/vanilla-js/command.js +1 -1
  145. package/src/browserStackSdk.js +1 -1
  146. package/src/helpers/BrowserStackSetup.js +1 -1
  147. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  148. package/src/helpers/accessibility-automation/constants.js +1 -1
  149. package/src/helpers/accessibility-automation/helper.js +1 -1
  150. package/src/helpers/accessibility-automation/scripts.js +1 -1
  151. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  152. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  153. package/src/helpers/ats/constants.js +1 -1
  154. package/src/helpers/ats/helper.js +1 -1
  155. package/src/helpers/capsMapping.js +1 -1
  156. package/src/helpers/central-scanner/constants.js +1 -1
  157. package/src/helpers/central-scanner/helpers.js +1 -1
  158. package/src/helpers/classLogger.js +1 -1
  159. package/src/helpers/globals.js +1 -1
  160. package/src/helpers/helper.js +1 -1
  161. package/src/helpers/logger.js +1 -1
  162. package/src/helpers/metadata.js +1 -1
  163. package/src/helpers/patchHelper.js +1 -1
  164. package/src/helpers/patchHelpers.js +1 -1
  165. package/src/helpers/percy/Percy.js +1 -1
  166. package/src/helpers/percy/PercyBinary.js +1 -1
  167. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  168. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  169. package/src/helpers/percy/PercySDK.js +1 -1
  170. package/src/helpers/percy/index.js +1 -1
  171. package/src/helpers/percy/utils.js +1 -1
  172. package/src/helpers/performance/constants.js +1 -1
  173. package/src/helpers/performance/performance-tester.js +1 -1
  174. package/src/helpers/playwright-helper.js +1 -1
  175. package/src/helpers/processHelper.js +1 -1
  176. package/src/helpers/puppeteer-helper.js +1 -1
  177. package/src/helpers/request-spy.js +1 -1
  178. package/src/helpers/setKeepAlive.js +1 -1
  179. package/src/helpers/test-observability/constants.js +1 -1
  180. package/src/helpers/test-observability/error-handler.js +1 -1
  181. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  182. package/src/helpers/test-observability/sessionHandler.js +1 -1
  183. package/src/helpers/test-observability/utils.js +1 -1
  184. package/src/helpers/test-orchestration/constants.js +1 -1
  185. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  186. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  187. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  188. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  189. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  190. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  191. package/src/helpers/testhub/constants.js +1 -1
  192. package/src/helpers/testhub/testhubHandler.js +1 -1
  193. package/src/helpers/testhub/utils.js +1 -1
  194. package/src/helpers/timeoutPromise.js +1 -1
  195. package/src/helpers/utilities.js +1 -1
  196. package/src/helpers/w3cMapping.js +1 -1
  197. package/src/hubAllocationMethods.js +1 -1
  198. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a68_0x1b7e27=a68_0x2df6;(function(_0x40ff8d,_0x1a9f5c){const _0x30bcfb=a68_0x2df6,_0x182ee2=_0x40ff8d();while(!![]){try{const _0x2dc765=parseInt(_0x30bcfb(0x210))/0x1*(-parseInt(_0x30bcfb(0x1f6))/0x2)+parseInt(_0x30bcfb(0x13a))/0x3+parseInt(_0x30bcfb(0x196))/0x4+-parseInt(_0x30bcfb(0x1cf))/0x5+-parseInt(_0x30bcfb(0x157))/0x6+-parseInt(_0x30bcfb(0x191))/0x7+parseInt(_0x30bcfb(0x1f3))/0x8;if(_0x2dc765===_0x1a9f5c)break;else _0x182ee2['push'](_0x182ee2['shift']());}catch(_0xaafcd2){_0x182ee2['push'](_0x182ee2['shift']());}}}(a68_0x3dc4,0x83b62));const fs=require('fs'),os=require('os'),url=require('url'),path=require(a68_0x1b7e27(0x1bd)),{exec}=require(a68_0x1b7e27(0x16b)),{https}=require(a68_0x1b7e27(0x188)),yauzl=require(a68_0x1b7e27(0x1d3)),util=require(a68_0x1b7e27(0x13b)),{getFrameworkVersion}=require(a68_0x1b7e27(0x1b9)),{threadId}=require(a68_0x1b7e27(0x171)),PerformanceTester=require('../../helpers/performance/performance-tester.js'),{EVENTS:PerformanceEvents}=require(a68_0x1b7e27(0x168)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require('../../helpers/utilities'),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a68_0x1b7e27(0x139)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a68_0x1b7e27(0x1e2)),{createClassLogger}=require(a68_0x1b7e27(0x1c6)),TestFrameworkInstance=require('./instances/testFrameworkInstance.js'),HookState=require(a68_0x1b7e27(0x161)),TestFrameworkState=require(a68_0x1b7e27(0x1eb)),AutomationFrameworkState=require(a68_0x1b7e27(0x208)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants.js'),logger=createClassLogger(a68_0x1b7e27(0x13e)),{getBStackAPIUrl}=require('../utils/apiUtilityMethods.js');class CLIUtils{[a68_0x1b7e27(0x1dc)]={};[a68_0x1b7e27(0x19f)]={};static[a68_0x1b7e27(0x1b3)](){const _0x5613e7=a68_0x1b7e27,_0x5d6f92={};_0x5d6f92['IYWJG']=function(_0xd0c9aa,_0x3cada8){return _0xd0c9aa===_0x3cada8;},_0x5d6f92['KYvUn']=_0x5613e7(0x186);const _0x16ea48=_0x5d6f92;return _0x16ea48[_0x5613e7(0x1d1)](process['env'][_0x5613e7(0x205)],_0x16ea48[_0x5613e7(0x13d)]);}static['getCLIParamsForDevEnv'](){const _0x685508=a68_0x1b7e27,_0x5f2e98={};return _0x5f2e98['id']=process[_0x685508(0x149)][_0x685508(0x205)],_0x5f2e98[_0x685508(0x1d2)]=_0x685508(0x1f5)+process[_0x685508(0x149)]['BROWSERSTACK_CLI_ENV']+_0x685508(0x177),_0x5f2e98;}static['getSdkVersion'](){const _0x383a5d=a68_0x1b7e27,_0x1aaff5={'imWgt':function(_0x228dfa,_0x1d61b6){return _0x228dfa(_0x1d61b6);},'BLpFF':'../../../package.json'};return _0x1aaff5[_0x383a5d(0x147)](require,_0x1aaff5[_0x383a5d(0x1be)])[_0x383a5d(0x154)];}static['getSdkLanguage'](){const _0x5976ef=a68_0x1b7e27,_0x32f353={};_0x32f353['hilMz']=_0x5976ef(0x17a);const _0x5a1533=_0x32f353;return _0x5a1533[_0x5976ef(0x162)];}static async[a68_0x1b7e27(0x1a7)](_0xfbd2fc){const _0x55991e=a68_0x1b7e27,_0x2b3117={'tqjHf':_0x55991e(0x209),'RGpTC':function(_0x1a7207,_0x268410){return _0x1a7207(_0x268410);},'omsiZ':_0x55991e(0x1df)};logger[_0x55991e(0x176)](_0x2b3117[_0x55991e(0x1e3)]);const _0x458afc=process[_0x55991e(0x149)][_0x55991e(0x199)];if(!_0x2b3117[_0x55991e(0x1a8)](isNullOrEmpty,_0x458afc))return logger['debug'](_0x55991e(0x184)+_0x458afc),_0x458afc;try{const _0x4a2f1d=this[_0x55991e(0x1ba)]();if(_0x2b3117[_0x55991e(0x1a8)](isNullOrEmpty,_0x4a2f1d))throw new Error(_0x2b3117[_0x55991e(0x140)]);const _0x5c40e0=this[_0x55991e(0x187)](_0x4a2f1d),_0x53e6b0=await this[_0x55991e(0x1ac)](_0x5c40e0,_0x4a2f1d,_0xfbd2fc);return logger[_0x55991e(0x176)](_0x55991e(0x15d)+_0x53e6b0),_0x53e6b0;}catch(_0x571e34){logger['debug'](_0x55991e(0x1f1)+util[_0x55991e(0x145)](_0x571e34));}return null;}static async[a68_0x1b7e27(0x1ac)](_0x39a4af,_0x4e698c,_0x9b817b){const _0x4ddb73=a68_0x1b7e27,_0x193a3a={'jBxCR':function(_0x3608a8){return _0x3608a8();},'hmuDC':function(_0x7466c3,_0x440810){return _0x7466c3(_0x440810);},'NLOKm':function(_0x1b46fe,_0x2b5d32,_0x384c18){return _0x1b46fe(_0x2b5d32,_0x384c18);},'kxzOo':'data','VbxrU':_0x4ddb73(0x167),'HOMMX':function(_0x48d3fa,_0x561e7f,_0x3cd386){return _0x48d3fa(_0x561e7f,_0x3cd386);}};PerformanceTester['start'](PerformanceEvents[_0x4ddb73(0x143)]),logger[_0x4ddb73(0x1f4)](_0x4ddb73(0x144)+_0x39a4af);const _0x2c9f9b=_0x193a3a['jBxCR'](getHostInfo),_0xd70b7a={'sdk_version':CLIUtils[_0x4ddb73(0x142)](),'os':_0x2c9f9b[_0x4ddb73(0x17c)],'os_arch':_0x2c9f9b['arch'],'cli_version':'0','sdk_language':this[_0x4ddb73(0x15f)]()};!_0x193a3a['hmuDC'](isNullOrEmpty,_0x39a4af)&&(_0xd70b7a['cli_version']=await this['runShellCommand'](_0x39a4af+'\x20version'));const _0x8982bb=await this[_0x4ddb73(0x15a)](_0xd70b7a,_0x9b817b);process['env']['BROWSERSTACK_BINARY_URL']&&(logger[_0x4ddb73(0x1f4)](_0x4ddb73(0x192)+process[_0x4ddb73(0x149)][_0x4ddb73(0x16a)]),_0x8982bb[_0x4ddb73(0x203)]['url']=process[_0x4ddb73(0x149)][_0x4ddb73(0x16a)]);if(_0x193a3a[_0x4ddb73(0x183)](nestedKeyValue,_0x8982bb,[_0x193a3a[_0x4ddb73(0x20d)],_0x193a3a[_0x4ddb73(0x18f)]])){logger['debug'](_0x4ddb73(0x1b4)+_0xd70b7a['cli_version']);if(!_0x193a3a['hmuDC'](isNullOrEmpty,_0x39a4af)&&this[_0x4ddb73(0x156)](_0x39a4af))return logger[_0x4ddb73(0x1c4)](_0x4ddb73(0x1fa)+_0x39a4af),PerformanceTester[_0x4ddb73(0x1e5)](PerformanceEvents[_0x4ddb73(0x143)]),_0x39a4af;const _0x3100b3=await this[_0x4ddb73(0x1a9)](_0x193a3a['HOMMX'](nestedKeyValue,_0x8982bb,[_0x193a3a[_0x4ddb73(0x20d)],_0x193a3a[_0x4ddb73(0x18f)]]),_0x4e698c);return PerformanceTester[_0x4ddb73(0x1e5)](PerformanceEvents[_0x4ddb73(0x143)]),_0x3100b3;}return PerformanceTester[_0x4ddb73(0x1e5)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x39a4af;}static['getCliDir'](){const _0x5a1407=a68_0x1b7e27,_0x431be0={'nEepr':function(_0x30d681,_0x300653){return _0x30d681(_0x300653);},'cFCgK':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','kThOL':_0x5a1407(0x1cd),'jZoPC':function(_0x2f9294,_0x43fb1b){return _0x2f9294(_0x43fb1b);}},_0x51697f=this[_0x5a1407(0x1ca)]();try{if(_0x431be0[_0x5a1407(0x170)](isNullOrEmpty,_0x51697f))throw new Error(_0x431be0[_0x5a1407(0x1f8)]);const _0x35e6fa=path[_0x5a1407(0x20f)](_0x51697f,_0x431be0[_0x5a1407(0x1fc)]);return!fs[_0x5a1407(0x17e)](_0x35e6fa)&&_0x431be0[_0x5a1407(0x1a1)](createDir,_0x35e6fa),_0x35e6fa;}catch(_0x6f0edd){logger['debug'](_0x5a1407(0x1e6)+util['format'](_0x6f0edd));}}static['getWritableDir'](){const _0x1a8349=a68_0x1b7e27,_0x209714={'nHaOE':_0x1a8349(0x14c),'zmuSk':function(_0x567abc,_0x2f6ec6){return _0x567abc(_0x2f6ec6);},'XysSq':function(_0x5c582b,_0x4af926){return _0x5c582b(_0x4af926);},'KHMxI':function(_0x21ed82,_0x4170d6){return _0x21ed82(_0x4170d6);}},_0x8cefc0=[process[_0x1a8349(0x149)][_0x1a8349(0x20c)],path[_0x1a8349(0x20f)](os[_0x1a8349(0x1bc)](),_0x209714[_0x1a8349(0x18c)]),path[_0x1a8349(0x20f)](os['tmpdir'](),_0x209714[_0x1a8349(0x18c)])];for(const _0x2972a6 of _0x8cefc0){if(_0x209714[_0x1a8349(0x197)](isNullOrEmpty,_0x2972a6))continue;try{if(fs[_0x1a8349(0x17e)](_0x2972a6)){logger[_0x1a8349(0x176)](_0x1a8349(0x1b5)+_0x2972a6+_0x1a8349(0x15b));if(!_0x209714[_0x1a8349(0x197)](isModifiable,_0x2972a6)){logger['debug'](_0x1a8349(0x207)+_0x2972a6);const _0x416ba3=_0x209714[_0x1a8349(0x197)](setReadWriteExecuteAccess,_0x2972a6);if(!_0x209714['zmuSk'](isTrue,_0x416ba3)){logger[_0x1a8349(0x1c4)](_0x1a8349(0x200)+_0x2972a6);continue;}}}else{logger[_0x1a8349(0x176)](_0x1a8349(0x1aa)+_0x2972a6),_0x209714['XysSq'](createDir,_0x2972a6),logger[_0x1a8349(0x176)](_0x1a8349(0x207)+_0x2972a6);const _0x2e4a5f=_0x209714[_0x1a8349(0x19a)](setReadWriteExecuteAccess,_0x2972a6);!_0x209714[_0x1a8349(0x204)](isTrue,_0x2e4a5f)&&logger[_0x1a8349(0x1c4)](_0x1a8349(0x200)+_0x2972a6);}return _0x2972a6;}catch(_0x1530d8){logger['error'](_0x1a8349(0x1fd)+util[_0x1a8349(0x145)](_0x1530d8));}}return null;}static[a68_0x1b7e27(0x187)](_0x483341){const _0x4622f4=a68_0x1b7e27,_0x5d0ce0={};_0x5d0ce0['JPOcO']=function(_0x17d2ac,_0x1aaabf){return _0x17d2ac>_0x1aaabf;},_0x5d0ce0[_0x4622f4(0x1ef)]=function(_0x491145,_0x3bfc3b){return _0x491145>_0x3bfc3b;};const _0x3ee78a=_0x5d0ce0;try{if(!fs[_0x4622f4(0x17e)](_0x483341)||!fs[_0x4622f4(0x158)](_0x483341)[_0x4622f4(0x1c3)]())return'';const _0x283de1=fs[_0x4622f4(0x14d)](_0x483341)[_0x4622f4(0x1d5)](_0xe51302=>path['join'](_0x483341,_0xe51302))[_0x4622f4(0x1ee)](_0x2ea5e6=>fs['statSync'](_0x2ea5e6)[_0x4622f4(0x1b2)]()&&path[_0x4622f4(0x1a3)](_0x2ea5e6)[_0x4622f4(0x1c7)](_0x4622f4(0x1b8)));if(_0x3ee78a[_0x4622f4(0x1ef)](_0x283de1[_0x4622f4(0x13c)],0x0)){const _0xdec789=_0x283de1[_0x4622f4(0x1d5)](_0x2383ac=>({'filePath':_0x2383ac,'mtime':fs['statSync'](_0x2383ac)[_0x4622f4(0x141)]}))[_0x4622f4(0x150)]((_0x19137e,_0x37cf1d)=>{const _0x160f4a=_0x4622f4;if(!_0x19137e||!_0x19137e[_0x160f4a(0x141)])return _0x37cf1d;if(_0x3ee78a[_0x160f4a(0x193)](_0x37cf1d[_0x160f4a(0x141)],_0x19137e[_0x160f4a(0x141)]))return _0x37cf1d;return _0x19137e;},{});return _0xdec789?_0xdec789[_0x4622f4(0x1c1)]:'';}return'';}catch(_0x41c4a3){return logger[_0x4622f4(0x17f)]('Error\x20while\x20reading\x20CLI\x20path:\x20'+util[_0x4622f4(0x145)](_0x41c4a3)),'';}}static [a68_0x1b7e27(0x15a)]=async(_0x1e25ea,_0x58893d)=>{const _0x8d1c9=a68_0x1b7e27,_0x319574={'ZMCJg':function(_0x534f45,_0x22e715,_0x5c5646,_0x5eeba9,_0x1abfb5){return _0x534f45(_0x22e715,_0x5c5646,_0x5eeba9,_0x1abfb5);},'hOAYs':'GET'},_0x203777={};_0x203777['qs']=_0x1e25ea;const _0x1ec064=await _0x319574[_0x8d1c9(0x14e)](nodeRequest,_0x319574[_0x8d1c9(0x1da)],UPDATED_CLI_ENDPOINT,_0x203777,_0x58893d);return logger[_0x8d1c9(0x176)](_0x8d1c9(0x180)+JSON[_0x8d1c9(0x172)](_0x1ec064)),_0x1ec064;};static['isBinaryBusy'](_0x584af5){const _0x438dc4=a68_0x1b7e27;try{const _0x2d2095=fs[_0x438dc4(0x1a2)](_0x584af5,'r+');return fs['closeSync'](_0x2d2095),![];}catch(_0xccbd65){if(BINARY_BUSY_ERROR_CODES['includes'](_0xccbd65[_0x438dc4(0x202)]))return logger[_0x438dc4(0x176)](_0x438dc4(0x1fb)+_0x584af5),!![];return logger[_0x438dc4(0x176)](_0x438dc4(0x178)+_0xccbd65[_0x438dc4(0x164)]),![];}}static[a68_0x1b7e27(0x1ff)](_0x396a67,_0x1ad3c4=''){const _0x4fb619=a68_0x1b7e27,_0x4b9a8e={'ENUNJ':_0x4fb619(0x154),'gECMh':function(_0x334178,_0x14bbfe){return _0x334178(_0x14bbfe);},'zlceZ':_0x4fb619(0x182),'zChZZ':function(_0x3a7434,_0x3946dd){return _0x3a7434(_0x3946dd);},'wksYM':function(_0x52c544,_0x1291c7,_0x528956,_0x3fa784){return _0x52c544(_0x1291c7,_0x528956,_0x3fa784);},'RLssl':_0x4fb619(0x17f)};return new Promise((_0x37f925,_0x2c3f07)=>{const _0xcb0077=_0x4fb619,_0x9e6a39={'bFvda':function(_0x6b6c7a,_0x49b50b){return _0x4b9a8e['gECMh'](_0x6b6c7a,_0x49b50b);},'WHtGQ':_0x4b9a8e[_0xcb0077(0x1c8)]},_0x15d090={};_0x15d090[_0xcb0077(0x148)]=_0x1ad3c4,_0x15d090['timeout']=0x1388;const _0x38b0a7=_0x4b9a8e['wksYM'](exec,_0x396a67,_0x15d090,(_0xbc428d,_0x55f27f,_0xeed169)=>{const _0x33df09=_0xcb0077;if(_0xbc428d){if(_0x396a67[_0x33df09(0x1d9)](_0x4b9a8e[_0x33df09(0x1e7)])&&(_0x55f27f[_0x33df09(0x1bf)]()||_0xeed169[_0x33df09(0x1bf)]())){const _0x242bf4=_0x55f27f[_0x33df09(0x1bf)]()||_0xeed169[_0x33df09(0x1bf)]();logger[_0x33df09(0x176)]('CLI\x20version\x20found\x20despite\x20error:\x20\x22'+_0x242bf4+'\x22'),_0x4b9a8e[_0x33df09(0x166)](_0x37f925,_0x242bf4);}else _0x4b9a8e[_0x33df09(0x166)](_0x37f925,_0xeed169[_0x33df09(0x1bf)]()||_0x4b9a8e[_0x33df09(0x1c8)]);}else logger['debug'](_0x33df09(0x1ad)+_0x55f27f[_0x33df09(0x1bf)]()+'\x22'),_0x4b9a8e[_0x33df09(0x169)](_0x37f925,_0x55f27f[_0x33df09(0x1bf)]());});_0x38b0a7['on'](_0x4b9a8e['RLssl'],()=>{const _0x37875b=_0xcb0077;_0x9e6a39[_0x37875b(0x1a6)](_0x37f925,_0x9e6a39[_0x37875b(0x1ec)]);});});}static [a68_0x1b7e27(0x1a9)]=async(_0x1028c6,_0x4979c1)=>{const _0x6c6fee=a68_0x1b7e27,_0x1f3fdc={'obcDH':_0x6c6fee(0x163),'yiZpN':function(_0x181f15,_0x1b4e84){return _0x181f15(_0x1b4e84);},'lyhuI':_0x6c6fee(0x17f),'zRNJU':_0x6c6fee(0x151),'Woreo':function(_0x16389d,_0x3d521e){return _0x16389d(_0x3d521e);},'jbwAS':function(_0x2e7ec7,_0x181bc5){return _0x2e7ec7(_0x181bc5);}};PerformanceTester[_0x6c6fee(0x1b7)](PerformanceEvents['SDK_CLI_DOWNLOAD']),logger['debug'](_0x6c6fee(0x16d)+_0x1028c6);try{const _0x33c061=url['parse'](_0x1028c6),_0x19973e=path['join'](_0x4979c1,_0x6c6fee(0x1b0)+process['pid']+'.zip'),_0x562199=fs[_0x6c6fee(0x16f)](_0x19973e);return new Promise((_0x184688,_0x284870)=>{const _0x64a8aa=_0x6c6fee,_0x44c5f0={'rFaug':_0x1f3fdc[_0x64a8aa(0x173)],'PBOhx':function(_0x237bd5,_0x41fa67){const _0x596f43=_0x64a8aa;return _0x1f3fdc[_0x596f43(0x17d)](_0x237bd5,_0x41fa67);},'vgjjA':function(_0x1fb0e4,_0xd789c){return _0x1f3fdc['jbwAS'](_0x1fb0e4,_0xd789c);}};https[_0x64a8aa(0x1e4)](_0x33c061,function(_0x1ea3e8){const _0x4a0684=_0x64a8aa,_0x1ae384={'WtZfF':_0x1f3fdc['obcDH'],'wDKNC':function(_0x57f4dd,_0x1a16ca){const _0x1663bb=a68_0x2df6;return _0x1f3fdc[_0x1663bb(0x1c0)](_0x57f4dd,_0x1a16ca);}},_0x4b4c97=null;_0x1ea3e8[_0x4a0684(0x1de)](_0x562199),_0x1ea3e8['on'](_0x1f3fdc['lyhuI'],function(_0x1d934c){const _0x76cc9e=_0x4a0684;logger[_0x76cc9e(0x17f)](util[_0x76cc9e(0x145)](_0x1ae384[_0x76cc9e(0x194)],_0x1d934c)),PerformanceTester[_0x76cc9e(0x1e5)](PerformanceEvents[_0x76cc9e(0x1c2)],![],util[_0x76cc9e(0x145)](_0x1d934c)),_0x1ae384['wDKNC'](_0x284870,_0x1d934c);}),_0x562199['on'](_0x1f3fdc['lyhuI'],function(_0x2d0010){const _0xec77e7=_0x4a0684;logger[_0xec77e7(0x17f)](util[_0xec77e7(0x145)](_0x44c5f0[_0xec77e7(0x1a4)],_0x2d0010)),PerformanceTester[_0xec77e7(0x1e5)](PerformanceEvents[_0xec77e7(0x1c2)],![],util[_0xec77e7(0x145)](_0x2d0010)),_0x44c5f0[_0xec77e7(0x152)](_0x284870,_0x2d0010);}),CLIUtils[_0x4a0684(0x14a)](_0x562199,_0x4b4c97,_0x19973e,_0x4979c1,_0x52c819=>{const _0x30a779=_0x4a0684;PerformanceTester['end'](PerformanceEvents[_0x30a779(0x1c2)]),_0x1ae384[_0x30a779(0x1d6)](_0x184688,_0x52c819);},_0x59ce79=>{const _0x2be055=_0x4a0684;PerformanceTester[_0x2be055(0x1e5)](PerformanceEvents[_0x2be055(0x1c2)],![],util[_0x2be055(0x145)](_0x59ce79)),_0x44c5f0['PBOhx'](_0x284870,_0x59ce79);});})['on'](_0x1f3fdc[_0x64a8aa(0x19b)],function(_0x38745c){const _0x5af666=_0x64a8aa;logger['error']('Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20'+util[_0x5af666(0x145)](_0x38745c)),PerformanceTester[_0x5af666(0x1e5)](PerformanceEvents[_0x5af666(0x1c2)],![],util[_0x5af666(0x145)](_0x38745c)),_0x44c5f0[_0x5af666(0x1cc)](_0x284870,_0x38745c);});});}catch(_0x32edd9){PerformanceTester[_0x6c6fee(0x1e5)](PerformanceEvents[_0x6c6fee(0x1c2)],![],util['format'](_0x32edd9)),logger[_0x6c6fee(0x176)]('Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20'+util[_0x6c6fee(0x145)](_0x32edd9));}};static[a68_0x1b7e27(0x14a)](_0xaf0d34,_0x55bd38,_0x10be7d,_0x417028,_0x1eb34b,_0x402b69){const _0x493c01=a68_0x1b7e27,_0x34b5dd={'Bjgzf':function(_0x5be58,_0x33d6e7){return _0x5be58(_0x33d6e7);},'iqXcM':_0x493c01(0x1ce),'kWfsQ':function(_0x3974c1,_0x372c13){return _0x3974c1!==_0x372c13;},'jrQuR':_0x493c01(0x17f),'kQCjc':_0x493c01(0x1f2),'JfgKw':_0x493c01(0x1c9),'mwjuL':'end','pDGDC':'entry'};_0xaf0d34['on'](_0x34b5dd[_0x493c01(0x1f9)],function(){const _0x49ffc7=_0x493c01,_0x4e8f60={'iNGDT':function(_0x3313df,_0x3d9bad){const _0x14e092=a68_0x2df6;return _0x34b5dd[_0x14e092(0x1f7)](_0x3313df,_0x3d9bad);},'WZvhH':_0x34b5dd[_0x49ffc7(0x1f9)],'nenSN':function(_0x15032c,_0x4f35d5){const _0x36d7fc=_0x49ffc7;return _0x34b5dd[_0x36d7fc(0x1a0)](_0x15032c,_0x4f35d5);},'YbuDt':_0x34b5dd['jrQuR'],'BTiZH':_0x34b5dd['kQCjc'],'KOjRq':function(_0x2869ad,_0xc1291e){const _0x50d64f=_0x49ffc7;return _0x34b5dd[_0x50d64f(0x1f7)](_0x2869ad,_0xc1291e);},'qWRgV':_0x34b5dd[_0x49ffc7(0x190)],'TtPkw':function(_0x4beac0,_0x3432da){const _0x760d29=_0x49ffc7;return _0x34b5dd[_0x760d29(0x1f7)](_0x4beac0,_0x3432da);},'IOnVM':_0x34b5dd[_0x49ffc7(0x20a)],'RiWRq':_0x34b5dd[_0x49ffc7(0x17b)]},_0x1d75eb={};_0x1d75eb[_0x49ffc7(0x165)]=!![],yauzl[_0x49ffc7(0x1e0)](_0x10be7d,_0x1d75eb,function(_0x359334,_0x80f0f2){const _0x1afbb=_0x49ffc7,_0x550678={'AUCfN':function(_0xf64f74,_0x4cedd1){return _0x4e8f60['TtPkw'](_0xf64f74,_0x4cedd1);},'koYSO':_0x4e8f60[_0x1afbb(0x19c)],'sHfld':function(_0x3d610e,_0x4d8950){return _0x4e8f60['iNGDT'](_0x3d610e,_0x4d8950);}};if(_0x359334){_0x4e8f60[_0x1afbb(0x1ab)](_0x402b69,_0x359334);return;}_0x80f0f2[_0x1afbb(0x1a5)](),_0x80f0f2['on'](_0x4e8f60[_0x1afbb(0x15e)],_0x432f07=>{const _0x1ffa2b=_0x1afbb,_0x15470c={'pkRjg':function(_0x2cbf4b,_0x4c3356){const _0x5b1178=a68_0x2df6;return _0x4e8f60[_0x5b1178(0x1ab)](_0x2cbf4b,_0x4c3356);},'HrDUt':_0x4e8f60[_0x1ffa2b(0x20b)]};if(/\/$/[_0x1ffa2b(0x16e)](_0x432f07[_0x1ffa2b(0x16c)])){_0x80f0f2[_0x1ffa2b(0x1a5)]();return;}!_0x55bd38&&(_0x55bd38=_0x432f07['fileName']);if(_0x4e8f60[_0x1ffa2b(0x179)](_0x432f07[_0x1ffa2b(0x16c)],_0x55bd38))_0x80f0f2[_0x1ffa2b(0x1a5)]();else{const _0x2ad881=_0x432f07[_0x1ffa2b(0x16c)],_0x1a8105=path['join'](_0x417028,_0x2ad881+_0x1ffa2b(0x159)+process['pid']);let _0x4ca48b;try{_0x4ca48b=fs[_0x1ffa2b(0x16f)](_0x1a8105);}catch(_0x1d75d0){if(BINARY_BUSY_ERROR_CODES['includes'](_0x1d75d0['code'])){const _0x4f4b93=path['join'](_0x417028,_0x2ad881);if(fs['existsSync'](_0x4f4b93)){logger[_0x1ffa2b(0x1c4)](_0x1ffa2b(0x1fe)+_0x2ad881),fs[_0x1ffa2b(0x18d)](_0x10be7d,_0x55610e=>{const _0x5e890b=_0x1ffa2b;_0x55610e&&logger[_0x5e890b(0x1c4)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x10be7d);}),_0x4e8f60[_0x1ffa2b(0x1ab)](_0x1eb34b,_0x4f4b93);return;}logger[_0x1ffa2b(0x1c4)]('Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x2ad881);}_0x4e8f60[_0x1ffa2b(0x1ab)](_0x402b69,_0x1d75d0);return;}_0x4ca48b['on'](_0x4e8f60[_0x1ffa2b(0x1c5)],_0x56380e=>{const _0x38ecaf=_0x1ffa2b;if(BINARY_BUSY_ERROR_CODES[_0x38ecaf(0x1d9)](_0x56380e[_0x38ecaf(0x202)])){const _0x2651b6=path[_0x38ecaf(0x20f)](_0x417028,_0x2ad881);_0x4ca48b[_0x38ecaf(0x1ce)](),fs[_0x38ecaf(0x17e)](_0x2651b6)?(logger[_0x38ecaf(0x1c4)](_0x38ecaf(0x206)+_0x56380e['message']),_0x80f0f2[_0x38ecaf(0x1ce)](),fs['unlink'](_0x10be7d,_0x5cd9aa=>{const _0x3d743c=_0x38ecaf;_0x5cd9aa&&logger['warn'](_0x3d743c(0x15c)+_0x10be7d);}),_0x15470c[_0x38ecaf(0x1b1)](_0x1eb34b,_0x2651b6)):(logger[_0x38ecaf(0x1c4)](_0x38ecaf(0x18b)+_0x56380e[_0x38ecaf(0x164)]),fs[_0x38ecaf(0x18d)](_0x1a8105,()=>{}),_0x15470c[_0x38ecaf(0x1b1)](_0x402b69,_0x56380e));}else fs[_0x38ecaf(0x18d)](_0x1a8105,()=>{}),_0x15470c['pkRjg'](_0x402b69,_0x56380e);}),_0x80f0f2[_0x1ffa2b(0x198)](_0x432f07,function(_0x4c084f,_0x2038a6){const _0x373a82=_0x1ffa2b;if(_0x4c084f){fs[_0x373a82(0x18d)](_0x1a8105,()=>{}),_0x550678[_0x373a82(0x1bb)](_0x402b69,_0x4c084f);return;}_0x2038a6['on'](_0x550678['koYSO'],function(){_0x4ca48b['end'](),_0x4ca48b['on'](_0x15470c['HrDUt'],function(){const _0x24002f=a68_0x2df6;_0x80f0f2[_0x24002f(0x1a5)]();});}),_0x2038a6['pipe'](_0x4ca48b);});}}),_0x80f0f2['on'](_0x4e8f60[_0x1afbb(0x1c5)],_0x35066a=>{const _0x1e98c8=_0x1afbb;_0x4e8f60[_0x1e98c8(0x1ab)](_0x402b69,_0x35066a);}),_0x80f0f2[_0x1afbb(0x1f0)](_0x4e8f60[_0x1afbb(0x19c)],()=>{const _0x490d2f=_0x1afbb,_0x48c8c1={'rlVIG':function(_0x347772,_0x1c86c8){const _0x5e0248=a68_0x2df6;return _0x4e8f60[_0x5e0248(0x179)](_0x347772,_0x1c86c8);},'QcuYw':_0x4e8f60[_0x490d2f(0x1e8)],'hsqYw':function(_0x421dac,_0x5a0e63){const _0x52e928=_0x490d2f;return _0x4e8f60[_0x52e928(0x1e1)](_0x421dac,_0x5a0e63);}};fs['unlink'](_0x10be7d,_0x1e0fc6=>{_0x1e0fc6&&logger['warn']('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x10be7d);});const _0x4c933a=path[_0x490d2f(0x20f)](_0x417028,_0x55bd38+_0x490d2f(0x159)+process[_0x490d2f(0x1d7)]),_0x3a55b7=path[_0x490d2f(0x20f)](_0x417028,_0x55bd38);fs[_0x490d2f(0x146)](_0x4c933a,_0x4e8f60[_0x490d2f(0x14f)],function(_0x426e40){const _0x464e05=_0x490d2f;if(_0x426e40){_0x80f0f2[_0x464e05(0x1ce)](),fs[_0x464e05(0x18d)](_0x4c933a,()=>{}),_0x550678['sHfld'](_0x402b69,_0x426e40);return;}fs[_0x464e05(0x174)](_0x4c933a,_0x3a55b7,function(_0x542acd){const _0x2c965f=_0x464e05;if(_0x542acd){if(_0x48c8c1['rlVIG'](_0x542acd[_0x2c965f(0x202)],_0x48c8c1[_0x2c965f(0x1d4)])){_0x80f0f2['close'](),fs['unlink'](_0x4c933a,()=>{}),_0x48c8c1[_0x2c965f(0x20e)](_0x402b69,_0x542acd);return;}logger['warn'](_0x2c965f(0x1db)+_0x542acd['message']);try{fs[_0x2c965f(0x1cb)](_0x4c933a,_0x3a55b7);}catch(_0x68579f){_0x80f0f2[_0x2c965f(0x1ce)](),fs['unlink'](_0x4c933a,()=>{}),_0x48c8c1[_0x2c965f(0x20e)](_0x402b69,_0x68579f);return;}fs[_0x2c965f(0x18d)](_0x4c933a,_0x279a5e=>{_0x279a5e&&logger['warn']('Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20'+_0x279a5e['message']);});}_0x80f0f2[_0x2c965f(0x1ce)](),_0x48c8c1[_0x2c965f(0x20e)](_0x1eb34b,_0x3a55b7);});});});});});}static[a68_0x1b7e27(0x1e9)](){const _0x186395=a68_0x1b7e27;if(process[_0x186395(0x149)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL'])return JSON['parse'](process[_0x186395(0x149)][_0x186395(0x19e)]);return this['testFrameworkDetail'];}static[a68_0x1b7e27(0x195)](){const _0x1d7f06=a68_0x1b7e27;if(process['env'][_0x1d7f06(0x153)])return JSON[_0x1d7f06(0x1ae)](process['env'][_0x1d7f06(0x153)]);return this['automationFrameworkDetail'];}static[a68_0x1b7e27(0x201)](_0x3507ed,_0x2c531a){const _0x4ab346=a68_0x1b7e27,_0x50b8f1={'FtOHW':_0x4ab346(0x1af),'qadpp':function(_0x56ce15,_0x178853){return _0x56ce15(_0x178853);},'dNIqm':function(_0x5e5c95,_0x44d31f){return _0x5e5c95||_0x44d31f;}},_0x498581=_0x50b8f1[_0x4ab346(0x1b6)]['split']('|');let _0x123af9=0x0;while(!![]){switch(_0x498581[_0x123af9++]){case'0':this[_0x4ab346(0x1dc)]={'name':_0x2c531a,'version':_0x50b8f1[_0x4ab346(0x1d8)](getFrameworkVersion,_0x2c531a)};continue;case'1':_0x50b8f1[_0x4ab346(0x185)](!_0x3507ed,!_0x2c531a)&&logger[_0x4ab346(0x176)](_0x4ab346(0x1d0)+_0x3507ed+',\x20automationFramework='+_0x2c531a);continue;case'2':this[_0x4ab346(0x19f)]={'name':_0x3507ed,'version':{[_0x3507ed]:_0x50b8f1['qadpp'](getFrameworkVersion,_0x3507ed)}};continue;case'3':process[_0x4ab346(0x149)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']=JSON['stringify'](this['testFrameworkDetail']);continue;case'4':process[_0x4ab346(0x149)][_0x4ab346(0x153)]=JSON[_0x4ab346(0x172)](this[_0x4ab346(0x1dc)]);continue;}break;}}static['getHookRegistryKey'](_0x5ec034,_0x837fe0){return _0x5ec034+':'+_0x837fe0;}static[a68_0x1b7e27(0x155)](){const _0x3a6be4=a68_0x1b7e27;return process[_0x3a6be4(0x1d7)]+':'+threadId;}static['shouldSkipSessionName'](_0x2b151d){const _0x10a323=a68_0x1b7e27;if(_0x2b151d[_0x10a323(0x189)]&&_0x2b151d[_0x10a323(0x189)][_0x10a323(0x1ea)])return!![];return![];}static[a68_0x1b7e27(0x18e)](_0x36ef31){const _0x100d1f=a68_0x1b7e27;if(_0x36ef31['testContextOptions']&&_0x36ef31[_0x100d1f(0x189)]['skipSessionStatus'])return!![];return![];}static[a68_0x1b7e27(0x18a)](_0x14d55e){const _0x5d9d52=a68_0x1b7e27,_0x36c58f=new RegExp(TestFrameworkConstants['HOOK_REGEX']);return _0x36c58f[_0x5d9d52(0x16e)](_0x14d55e);}static[a68_0x1b7e27(0x181)](_0x34c23b,_0x46ac5c){const _0x1f05eb=a68_0x1b7e27,_0x15a1e7={};_0x15a1e7[_0x1f05eb(0x1ed)]=function(_0x59caeb,_0x156b94){return _0x59caeb!==_0x156b94;},_0x15a1e7[_0x1f05eb(0x14b)]=function(_0x3f9ebf,_0x4e6d41){return _0x3f9ebf===_0x4e6d41;},_0x15a1e7[_0x1f05eb(0x175)]=_0x1f05eb(0x19d);const _0x53297f=_0x15a1e7;for(const [_0x50b688,_0x362325]of Object[_0x1f05eb(0x160)](_0x46ac5c)){if(_0x53297f[_0x1f05eb(0x1ed)](_0x362325,null)&&_0x53297f[_0x1f05eb(0x14b)](typeof _0x362325,_0x53297f['WJQFi'])&&!Array[_0x1f05eb(0x13f)](_0x362325))_0x34c23b[_0x50b688]=this[_0x1f05eb(0x181)](_0x34c23b[_0x50b688]||{},_0x362325);else Array['isArray'](_0x362325)?_0x34c23b[_0x50b688]=(_0x34c23b[_0x50b688]||[])['concat'](_0x362325):_0x34c23b[_0x50b688]=_0x362325;}return _0x34c23b;}}function a68_0x3dc4(){const _0x25c77f=['Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','Binary\x20is\x20busy:\x20','kThOL','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','runShellCommand','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','setFrameworkDetail','code','data','KHMxI','BROWSERSTACK_CLI_ENV','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','Setting\x20required\x20permissions\x20to\x20','./state/automationFrameworkState.js','Configuring\x20Cli\x20path.','mwjuL','WZvhH','BROWSERSTACK_FILES_DIR','kxzOo','hsqYw','join','148013ttofWn','../../helpers/helper','69867KBvvFs','util','length','KYvUn','CLIUtils','isArray','omsiZ','mtime','getSdkVersion','SDK_CLI_CHECK_UPDATE','Current\x20CLI\x20Path\x20Found:\x20','format','chmod','imWgt','cwd','env','downloadFileStream','xElXF','.browserstack','readdirSync','ZMCJg','qWRgV','reduce','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','PBOhx','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','version','getCurrentInstanceName','isBinaryBusy','3497592YwkIQD','statSync','.tmp.','requestToUpdateCLI','\x20already\x20exists','Failed\x20to\x20delete\x20zip\x20file:\x20','Resolved\x20binary\x20path:\x20','RiWRq','getSdkLanguage','entries','./state/hookState.js','hilMz','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','message','lazyEntries','gECMh','url','../../helpers/performance/constants','zChZZ','BROWSERSTACK_BINARY_URL','child_process','fileName','Downloading\x20SDK\x20binary\x20from:\x20','test','createWriteStream','nEepr','worker_threads','stringify','zRNJU','rename','WJQFi','debug','.sock','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','nenSN','node','pDGDC','platform','Woreo','existsSync','error','response\x20','mergeObject','SHELL_EXECUTE_ERROR','NLOKm','Development\x20Cli\x20Path:\x20','dNIqm','development','getExistingCliPath','follow-redirects','testContextOptions','matchHookRegex','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','nHaOE','unlink','shouldSkipSessionStatus','VbxrU','JfgKw','1803830cTBvGF','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','JPOcO','WtZfF','getAutomationFrameworkDetail','3216440hQcIeH','zmuSk','openReadStream','SDK_CLI_BIN_PATH','XysSq','lyhuI','IOnVM','object','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','testFrameworkDetail','kWfsQ','jZoPC','openSync','basename','rFaug','readEntry','bFvda','setupCliPath','RGpTC','downloadLatestBinary','Folder\x20does\x20not\x20exist:\x20','iNGDT','checkAndUpdateCli','Resolving\x20with\x20stdout:\x20\x22','parse','1|2|0|4|3','downloaded_file_','pkRjg','isFile','isDevelopmentEnv','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','Folder\x20','FtOHW','start','binary-','../../helpers/test-observability/utils.js','getCliDir','AUCfN','homedir','path','BLpFF','trim','yiZpN','filePath','SDK_CLI_DOWNLOAD','isDirectory','warn','YbuDt','../../helpers/classLogger.js','startsWith','zlceZ','0755','getWritableDir','copyFileSync','vgjjA','cli','close','4456055jIyzdq','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','IYWJG','listen','yauzl','QcuYw','map','wDKNC','pid','qadpp','includes','hOAYs','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','automationFrameworkDetail','exports','pipe','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','open','KOjRq','../utils/constants','tqjHf','get','end','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','ENUNJ','BTiZH','getTestFrameworkDetail','skipSessionName','./state/testFrameworkState.js','WHtGQ','gSmxj','filter','TZMuH','once','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','EXDEV','12735496IkaQjx','info','unix:/tmp/sdk-platform-','2cEkEwW','Bjgzf','cFCgK','iqXcM'];a68_0x3dc4=function(){return _0x25c77f;};return a68_0x3dc4();}function a68_0x2df6(_0x370d6c,_0x26ed06){const _0x3dc48c=a68_0x3dc4();return a68_0x2df6=function(_0x2df6ff,_0x506160){_0x2df6ff=_0x2df6ff-0x139;let _0x2324eb=_0x3dc48c[_0x2df6ff];return _0x2324eb;},a68_0x2df6(_0x370d6c,_0x26ed06);}module[a68_0x1b7e27(0x1dd)]=CLIUtils;
1
+ const a72_0x213a94=a72_0x3c4c;(function(_0x524d64,_0x250662){const _0x2f97f3=a72_0x3c4c,_0x182a94=_0x524d64();while(!![]){try{const _0xfee2dc=parseInt(_0x2f97f3(0x274))/0x1+parseInt(_0x2f97f3(0x284))/0x2+parseInt(_0x2f97f3(0x202))/0x3*(-parseInt(_0x2f97f3(0x292))/0x4)+parseInt(_0x2f97f3(0x1ba))/0x5*(parseInt(_0x2f97f3(0x1c0))/0x6)+parseInt(_0x2f97f3(0x1b7))/0x7+parseInt(_0x2f97f3(0x1f2))/0x8+-parseInt(_0x2f97f3(0x205))/0x9;if(_0xfee2dc===_0x250662)break;else _0x182a94['push'](_0x182a94['shift']());}catch(_0x2e6cb5){_0x182a94['push'](_0x182a94['shift']());}}}(a72_0x1732,0xe7c70));const fs=require('fs'),os=require('os'),url=require(a72_0x213a94(0x1d4)),path=require(a72_0x213a94(0x1f6)),{exec}=require(a72_0x213a94(0x20f)),{https}=require(a72_0x213a94(0x1c1)),yauzl=require(a72_0x213a94(0x276)),util=require('util'),{getFrameworkVersion}=require(a72_0x213a94(0x23e)),{threadId}=require(a72_0x213a94(0x1cb)),PerformanceTester=require(a72_0x213a94(0x27e)),{EVENTS:PerformanceEvents}=require(a72_0x213a94(0x222)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require('../../helpers/utilities'),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a72_0x213a94(0x1e6)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require('../utils/constants'),{createClassLogger}=require(a72_0x213a94(0x1e4)),TestFrameworkInstance=require('./instances/testFrameworkInstance.js'),HookState=require(a72_0x213a94(0x28b)),TestFrameworkState=require(a72_0x213a94(0x278)),AutomationFrameworkState=require(a72_0x213a94(0x1ce)),TestFrameworkConstants=require(a72_0x213a94(0x255)),logger=createClassLogger(a72_0x213a94(0x219)),{getBStackAPIUrl}=require(a72_0x213a94(0x1dc));function a72_0x3c4c(_0x20b647,_0xa97675){const _0x17320f=a72_0x1732();return a72_0x3c4c=function(_0x3c4cda,_0x1bd533){_0x3c4cda=_0x3c4cda-0x1b2;let _0x33843f=_0x17320f[_0x3c4cda];return _0x33843f;},a72_0x3c4c(_0x20b647,_0xa97675);}class CLIUtils{['automationFrameworkDetail']={};[a72_0x213a94(0x25f)]={};static['isDevelopmentEnv'](){const _0x3b0c2e=a72_0x213a94,_0x44344e={};_0x44344e[_0x3b0c2e(0x212)]=function(_0x47d8f6,_0x4b99ec){return _0x47d8f6===_0x4b99ec;},_0x44344e['zxTPr']=_0x3b0c2e(0x272);const _0x5b68dc=_0x44344e;return _0x5b68dc[_0x3b0c2e(0x212)](process[_0x3b0c2e(0x27b)][_0x3b0c2e(0x231)],_0x5b68dc[_0x3b0c2e(0x1f0)]);}static[a72_0x213a94(0x216)](){const _0x15a13c=a72_0x213a94,_0x1b0671={};return _0x1b0671['id']=process[_0x15a13c(0x27b)][_0x15a13c(0x231)],_0x1b0671[_0x15a13c(0x1c7)]=_0x15a13c(0x1e0)+process[_0x15a13c(0x27b)][_0x15a13c(0x231)]+_0x15a13c(0x265),_0x1b0671;}static[a72_0x213a94(0x267)](){const _0x21001f=a72_0x213a94,_0x4bf12b={'NwKmC':function(_0x3638d0,_0x4dfdf3){return _0x3638d0(_0x4dfdf3);},'vAVfJ':_0x21001f(0x1b6)};return _0x4bf12b['NwKmC'](require,_0x4bf12b['vAVfJ'])[_0x21001f(0x213)];}static['getSdkLanguage'](){const _0x3bb00e=a72_0x213a94,_0x4ec4d7={};_0x4ec4d7[_0x3bb00e(0x1cd)]=_0x3bb00e(0x1ff);const _0x5c9f63=_0x4ec4d7;return _0x5c9f63[_0x3bb00e(0x1cd)];}static async[a72_0x213a94(0x1ef)](_0x34ac25){const _0x5d28d2=a72_0x213a94,_0x1937ad={'ypfal':_0x5d28d2(0x1d2),'tOhBW':function(_0x48f264,_0x3fda14){return _0x48f264(_0x3fda14);},'ECEqX':function(_0x200037,_0x45f071){return _0x200037(_0x45f071);},'qlGaU':_0x5d28d2(0x204)};logger[_0x5d28d2(0x256)](_0x1937ad['ypfal']);const _0x431fc9=process['env']['SDK_CLI_BIN_PATH'];if(!_0x1937ad[_0x5d28d2(0x1d1)](isNullOrEmpty,_0x431fc9))return logger['debug'](_0x5d28d2(0x291)+_0x431fc9),_0x431fc9;try{const _0x10eefa=this[_0x5d28d2(0x1b8)]();if(_0x1937ad[_0x5d28d2(0x22a)](isNullOrEmpty,_0x10eefa))throw new Error(_0x1937ad[_0x5d28d2(0x1eb)]);const _0x457936=this[_0x5d28d2(0x1c8)](_0x10eefa),_0x51628e=await this[_0x5d28d2(0x1f9)](_0x457936,_0x10eefa,_0x34ac25);return logger[_0x5d28d2(0x256)](_0x5d28d2(0x1f3)+_0x51628e),_0x51628e;}catch(_0x159962){logger[_0x5d28d2(0x256)](_0x5d28d2(0x273)+util[_0x5d28d2(0x244)](_0x159962));}return null;}static async[a72_0x213a94(0x1f9)](_0x30b668,_0x34f246,_0x38fd18){const _0x2e9b73=a72_0x213a94,_0x51efc4={'ffpzX':function(_0x4b991d){return _0x4b991d();},'GWXYg':function(_0x1710eb,_0x14a8ed){return _0x1710eb(_0x14a8ed);},'nyNzA':function(_0x4ba71e,_0xd7314e,_0x55c6c2){return _0x4ba71e(_0xd7314e,_0x55c6c2);},'XIaQv':_0x2e9b73(0x28f),'pEYhN':'url','HSWeo':function(_0x193f58,_0xab551f){return _0x193f58(_0xab551f);},'bNryM':function(_0x3b68a2,_0x5c35ce,_0x35973b){return _0x3b68a2(_0x5c35ce,_0x35973b);}};PerformanceTester[_0x2e9b73(0x248)](PerformanceEvents[_0x2e9b73(0x1b4)]),logger[_0x2e9b73(0x24f)](_0x2e9b73(0x27f)+_0x30b668);const _0x7f2a90=_0x51efc4['ffpzX'](getHostInfo),_0x37aa33={'sdk_version':CLIUtils[_0x2e9b73(0x267)](),'os':_0x7f2a90[_0x2e9b73(0x275)],'os_arch':_0x7f2a90[_0x2e9b73(0x203)],'cli_version':'0','sdk_language':this[_0x2e9b73(0x1cc)]()};!_0x51efc4['GWXYg'](isNullOrEmpty,_0x30b668)&&(_0x37aa33[_0x2e9b73(0x287)]=await this[_0x2e9b73(0x289)](_0x30b668+'\x20version'));const _0x8e0bba=await this[_0x2e9b73(0x270)](_0x37aa33,_0x38fd18);process[_0x2e9b73(0x27b)][_0x2e9b73(0x20d)]&&(logger[_0x2e9b73(0x24f)](_0x2e9b73(0x223)+process[_0x2e9b73(0x27b)][_0x2e9b73(0x20d)]),_0x8e0bba[_0x2e9b73(0x28f)][_0x2e9b73(0x1d4)]=process[_0x2e9b73(0x27b)][_0x2e9b73(0x20d)]);if(_0x51efc4[_0x2e9b73(0x258)](nestedKeyValue,_0x8e0bba,[_0x51efc4[_0x2e9b73(0x264)],_0x51efc4[_0x2e9b73(0x201)]])){logger[_0x2e9b73(0x256)](_0x2e9b73(0x1de)+_0x37aa33[_0x2e9b73(0x287)]);if(!_0x51efc4['HSWeo'](isNullOrEmpty,_0x30b668)&&this[_0x2e9b73(0x20a)](_0x30b668))return logger[_0x2e9b73(0x1dd)](_0x2e9b73(0x1db)+_0x30b668),PerformanceTester[_0x2e9b73(0x1e9)](PerformanceEvents[_0x2e9b73(0x1b4)]),_0x30b668;const _0xe1eac3=await this[_0x2e9b73(0x261)](_0x51efc4['bNryM'](nestedKeyValue,_0x8e0bba,[_0x51efc4[_0x2e9b73(0x264)],_0x51efc4['pEYhN']]),_0x34f246);return PerformanceTester[_0x2e9b73(0x1e9)](PerformanceEvents[_0x2e9b73(0x1b4)]),_0xe1eac3;}return PerformanceTester[_0x2e9b73(0x1e9)](PerformanceEvents[_0x2e9b73(0x1b4)]),_0x30b668;}static[a72_0x213a94(0x1b8)](){const _0x246fd1=a72_0x213a94,_0x851577={'HrbtB':function(_0x3904b3,_0x73050d){return _0x3904b3(_0x73050d);},'OAPdS':_0x246fd1(0x204),'GmVIj':_0x246fd1(0x1e7),'yNkbZ':function(_0x2d0a4d,_0x2cc1d0){return _0x2d0a4d(_0x2cc1d0);}},_0x59339a=this[_0x246fd1(0x215)]();try{if(_0x851577['HrbtB'](isNullOrEmpty,_0x59339a))throw new Error(_0x851577[_0x246fd1(0x1ea)]);const _0x578e36=path[_0x246fd1(0x262)](_0x59339a,_0x851577[_0x246fd1(0x225)]);return!fs[_0x246fd1(0x1e8)](_0x578e36)&&_0x851577['yNkbZ'](createDir,_0x578e36),_0x578e36;}catch(_0x51df24){logger[_0x246fd1(0x256)](_0x246fd1(0x229)+util[_0x246fd1(0x244)](_0x51df24));}}static[a72_0x213a94(0x215)](){const _0x23fd0e=a72_0x213a94,_0x71f0b1={'FxiiN':_0x23fd0e(0x296),'hTcur':function(_0x3b46ca,_0x4f4623){return _0x3b46ca(_0x4f4623);},'MHVzB':function(_0x1b66c8,_0x27d750){return _0x1b66c8(_0x27d750);},'IsMma':function(_0x4b64ad,_0x102144){return _0x4b64ad(_0x102144);},'NXdKk':function(_0x5847ae,_0x2b6d02){return _0x5847ae(_0x2b6d02);}},_0x39be75=[process[_0x23fd0e(0x27b)][_0x23fd0e(0x24c)],path[_0x23fd0e(0x262)](os['homedir'](),_0x71f0b1[_0x23fd0e(0x290)]),path[_0x23fd0e(0x262)](os[_0x23fd0e(0x283)](),_0x71f0b1[_0x23fd0e(0x290)])];for(const _0x2cd2b5 of _0x39be75){if(_0x71f0b1[_0x23fd0e(0x224)](isNullOrEmpty,_0x2cd2b5))continue;try{if(fs[_0x23fd0e(0x1e8)](_0x2cd2b5)){logger[_0x23fd0e(0x256)](_0x23fd0e(0x23b)+_0x2cd2b5+_0x23fd0e(0x207));if(!_0x71f0b1[_0x23fd0e(0x224)](isModifiable,_0x2cd2b5)){logger[_0x23fd0e(0x256)]('Setting\x20required\x20permissions\x20to\x20'+_0x2cd2b5);const _0x58b85a=_0x71f0b1[_0x23fd0e(0x1c4)](setReadWriteExecuteAccess,_0x2cd2b5);if(!_0x71f0b1[_0x23fd0e(0x27c)](isTrue,_0x58b85a)){logger['warn'](_0x23fd0e(0x221)+_0x2cd2b5);continue;}}}else{logger[_0x23fd0e(0x256)](_0x23fd0e(0x266)+_0x2cd2b5),_0x71f0b1['NXdKk'](createDir,_0x2cd2b5),logger[_0x23fd0e(0x256)]('Setting\x20required\x20permissions\x20to\x20'+_0x2cd2b5);const _0xdd672c=_0x71f0b1[_0x23fd0e(0x224)](setReadWriteExecuteAccess,_0x2cd2b5);!_0x71f0b1['IsMma'](isTrue,_0xdd672c)&&logger[_0x23fd0e(0x1dd)](_0x23fd0e(0x221)+_0x2cd2b5);}return _0x2cd2b5;}catch(_0x4389ae){logger[_0x23fd0e(0x1bc)](_0x23fd0e(0x1fd)+util[_0x23fd0e(0x244)](_0x4389ae));}}return null;}static['getExistingCliPath'](_0x246375){const _0x2a29f5=a72_0x213a94,_0xf20635={};_0xf20635['uGdOt']=function(_0xc1cb54,_0x2ee4ee){return _0xc1cb54>_0x2ee4ee;},_0xf20635[_0x2a29f5(0x1d7)]=function(_0x2c4059,_0xc36abd){return _0x2c4059>_0xc36abd;};const _0x553354=_0xf20635;try{if(!fs['existsSync'](_0x246375)||!fs['statSync'](_0x246375)[_0x2a29f5(0x28e)]())return'';const _0x56aaa8=fs[_0x2a29f5(0x1c2)](_0x246375)[_0x2a29f5(0x1ee)](_0x4fb635=>path['join'](_0x246375,_0x4fb635))[_0x2a29f5(0x1be)](_0x5357bb=>fs[_0x2a29f5(0x26e)](_0x5357bb)[_0x2a29f5(0x21b)]()&&path[_0x2a29f5(0x211)](_0x5357bb)[_0x2a29f5(0x280)](_0x2a29f5(0x1d6)));if(_0x553354[_0x2a29f5(0x1d7)](_0x56aaa8[_0x2a29f5(0x281)],0x0)){const _0x2b4511=_0x56aaa8[_0x2a29f5(0x1ee)](_0xcea310=>({'filePath':_0xcea310,'mtime':fs[_0x2a29f5(0x26e)](_0xcea310)[_0x2a29f5(0x247)]}))[_0x2a29f5(0x1e5)]((_0x4ed8ee,_0x321dea)=>{const _0x235c08=_0x2a29f5;if(!_0x4ed8ee||!_0x4ed8ee[_0x235c08(0x247)])return _0x321dea;if(_0x553354[_0x235c08(0x271)](_0x321dea[_0x235c08(0x247)],_0x4ed8ee[_0x235c08(0x247)]))return _0x321dea;return _0x4ed8ee;},{});return _0x2b4511?_0x2b4511[_0x2a29f5(0x209)]:'';}return'';}catch(_0x198404){return logger['error'](_0x2a29f5(0x226)+util['format'](_0x198404)),'';}}static ['requestToUpdateCLI']=async(_0x4a0003,_0x4c112b)=>{const _0x2f8b30=a72_0x213a94,_0x15965a={'YYpgO':function(_0x1e62f7,_0x768bba,_0x4b2a6b,_0x36fcf5,_0x1113aa){return _0x1e62f7(_0x768bba,_0x4b2a6b,_0x36fcf5,_0x1113aa);},'RBmPm':_0x2f8b30(0x288)},_0x3a152b={};_0x3a152b['qs']=_0x4a0003;const _0x35b8b2=await _0x15965a[_0x2f8b30(0x1d9)](nodeRequest,_0x15965a[_0x2f8b30(0x1c3)],UPDATED_CLI_ENDPOINT,_0x3a152b,_0x4c112b);return logger[_0x2f8b30(0x256)](_0x2f8b30(0x236)+JSON[_0x2f8b30(0x293)](_0x35b8b2)),_0x35b8b2;};static['isBinaryBusy'](_0x5d38b9){const _0x14c8c2=a72_0x213a94;try{const _0x3a2ec7=fs[_0x14c8c2(0x1d0)](_0x5d38b9,'r+');return fs[_0x14c8c2(0x1e1)](_0x3a2ec7),![];}catch(_0x4ca09e){if(BINARY_BUSY_ERROR_CODES[_0x14c8c2(0x243)](_0x4ca09e[_0x14c8c2(0x257)]))return logger[_0x14c8c2(0x256)](_0x14c8c2(0x252)+_0x5d38b9),!![];return logger['debug']('Error\x20checking\x20if\x20binary\x20is\x20busy:\x20'+_0x4ca09e['message']),![];}}static['runShellCommand'](_0x3ae480,_0x150d74=''){const _0x4d17e0=a72_0x213a94,_0x5de758={'NRcIn':'version','SJQJG':function(_0x885c4d,_0x5053ab){return _0x885c4d(_0x5053ab);},'zpTjR':'SHELL_EXECUTE_ERROR','Btsfu':function(_0x2e5e2d,_0x108456,_0x29bf4d,_0xad20be){return _0x2e5e2d(_0x108456,_0x29bf4d,_0xad20be);},'IaIkJ':_0x4d17e0(0x1bc)};return new Promise((_0x472c61,_0x485a34)=>{const _0xddb98a=_0x4d17e0,_0x5901c7={};_0x5901c7[_0xddb98a(0x1b5)]=_0x150d74,_0x5901c7[_0xddb98a(0x230)]=0x1388;const _0x575f6e=_0x5de758[_0xddb98a(0x235)](exec,_0x3ae480,_0x5901c7,(_0x4fb0bb,_0x1e406c,_0x3f2c52)=>{const _0x3e1d9d=_0xddb98a;if(_0x4fb0bb){if(_0x3ae480[_0x3e1d9d(0x243)](_0x5de758[_0x3e1d9d(0x241)])&&(_0x1e406c[_0x3e1d9d(0x1cf)]()||_0x3f2c52[_0x3e1d9d(0x1cf)]())){const _0x254499=_0x1e406c['trim']()||_0x3f2c52[_0x3e1d9d(0x1cf)]();logger[_0x3e1d9d(0x256)](_0x3e1d9d(0x25d)+_0x254499+'\x22'),_0x5de758['SJQJG'](_0x472c61,_0x254499);}else _0x5de758['SJQJG'](_0x472c61,_0x3f2c52[_0x3e1d9d(0x1cf)]()||_0x5de758[_0x3e1d9d(0x20e)]);}else logger[_0x3e1d9d(0x256)](_0x3e1d9d(0x1f4)+_0x1e406c[_0x3e1d9d(0x1cf)]()+'\x22'),_0x5de758[_0x3e1d9d(0x28a)](_0x472c61,_0x1e406c[_0x3e1d9d(0x1cf)]());});_0x575f6e['on'](_0x5de758[_0xddb98a(0x1c9)],()=>{const _0x1f6e35=_0xddb98a;_0x5de758[_0x1f6e35(0x28a)](_0x472c61,_0x5de758[_0x1f6e35(0x20e)]);});});}static ['downloadLatestBinary']=async(_0x8a1dda,_0x75b3bc)=>{const _0x3b002c=a72_0x213a94,_0x85fcd2={'zhOgG':_0x3b002c(0x233),'hEkum':function(_0x363d32,_0x54f936){return _0x363d32(_0x54f936);},'PNhHy':function(_0x414a69,_0x363c69){return _0x414a69(_0x363c69);},'fEmAo':'error','rDTZo':_0x3b002c(0x21c),'PbmtZ':function(_0xf10e8a,_0x42c1ce){return _0xf10e8a(_0x42c1ce);}};PerformanceTester[_0x3b002c(0x248)](PerformanceEvents[_0x3b002c(0x253)]),logger['debug'](_0x3b002c(0x206)+_0x8a1dda);try{const _0x342bb1=url[_0x3b002c(0x1d8)](_0x8a1dda),_0x40363e=path['join'](_0x75b3bc,_0x3b002c(0x285)+process[_0x3b002c(0x227)]+_0x3b002c(0x20c)),_0x351d1d=fs[_0x3b002c(0x26c)](_0x40363e);return new Promise((_0x4656d3,_0x15ec49)=>{const _0x2878b5=_0x3b002c,_0x28ef25={'iMPhF':_0x85fcd2[_0x2878b5(0x1c5)],'iname':function(_0x49cf56,_0x476d97){const _0x23038f=_0x2878b5;return _0x85fcd2[_0x23038f(0x282)](_0x49cf56,_0x476d97);}};https[_0x2878b5(0x269)](_0x342bb1,function(_0x146ed5){const _0x2121f7=_0x2878b5,_0x2221cf={'iLGLJ':_0x85fcd2[_0x2121f7(0x25e)],'bLuWV':function(_0x2e56df,_0xe23c44){const _0xe6b133=_0x2121f7;return _0x85fcd2[_0xe6b133(0x1fb)](_0x2e56df,_0xe23c44);},'mspah':function(_0x2c2b4b,_0x34c7ee){const _0x56083f=_0x2121f7;return _0x85fcd2[_0x56083f(0x25a)](_0x2c2b4b,_0x34c7ee);}},_0x52d508=null;_0x146ed5[_0x2121f7(0x24a)](_0x351d1d),_0x146ed5['on'](_0x85fcd2[_0x2121f7(0x1fc)],function(_0x20775c){const _0xae4a65=_0x2121f7;logger[_0xae4a65(0x1bc)](util['format'](_0x2221cf[_0xae4a65(0x294)],_0x20775c)),PerformanceTester[_0xae4a65(0x1e9)](PerformanceEvents[_0xae4a65(0x253)],![],util['format'](_0x20775c)),_0x2221cf[_0xae4a65(0x1da)](_0x15ec49,_0x20775c);}),_0x351d1d['on'](_0x85fcd2['fEmAo'],function(_0x3ff25a){const _0x37de20=_0x2121f7;logger[_0x37de20(0x1bc)](util[_0x37de20(0x244)](_0x28ef25[_0x37de20(0x237)],_0x3ff25a)),PerformanceTester[_0x37de20(0x1e9)](PerformanceEvents[_0x37de20(0x253)],![],util[_0x37de20(0x244)](_0x3ff25a)),_0x28ef25[_0x37de20(0x263)](_0x15ec49,_0x3ff25a);}),CLIUtils[_0x2121f7(0x228)](_0x351d1d,_0x52d508,_0x40363e,_0x75b3bc,_0x13b7ea=>{const _0x5c3609=_0x2121f7;PerformanceTester[_0x5c3609(0x1e9)](PerformanceEvents[_0x5c3609(0x253)]),_0x2221cf[_0x5c3609(0x26b)](_0x4656d3,_0x13b7ea);},_0x3057ac=>{const _0x3add54=_0x2121f7;PerformanceTester['end'](PerformanceEvents[_0x3add54(0x253)],![],util[_0x3add54(0x244)](_0x3057ac)),_0x2221cf[_0x3add54(0x1da)](_0x15ec49,_0x3057ac);});})['on'](_0x85fcd2['fEmAo'],function(_0x347b54){const _0x2c023a=_0x2878b5;logger[_0x2c023a(0x1bc)](_0x2c023a(0x1e3)+util[_0x2c023a(0x244)](_0x347b54)),PerformanceTester[_0x2c023a(0x1e9)](PerformanceEvents[_0x2c023a(0x253)],![],util[_0x2c023a(0x244)](_0x347b54)),_0x28ef25[_0x2c023a(0x263)](_0x15ec49,_0x347b54);});});}catch(_0xbca25c){PerformanceTester[_0x3b002c(0x1e9)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x3b002c(0x244)](_0xbca25c)),logger[_0x3b002c(0x256)]('Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20'+util[_0x3b002c(0x244)](_0xbca25c));}};static[a72_0x213a94(0x228)](_0x56601a,_0x3d8784,_0x595bba,_0x5386c2,_0x36cba6,_0x4f93da){const _0x2d7778=a72_0x213a94,_0x22414d={'BVRyp':function(_0x3fe3ab,_0x4fda4d){return _0x3fe3ab(_0x4fda4d);},'FPSaF':_0x2d7778(0x1e9),'PCRmI':function(_0x326170,_0x5de605){return _0x326170(_0x5de605);},'QRrGF':_0x2d7778(0x1fe),'FASpy':'error','ougTO':function(_0x3aeb08,_0x49011f){return _0x3aeb08(_0x49011f);},'SsvbD':_0x2d7778(0x240),'JLxBL':function(_0x54843c,_0x217fdb){return _0x54843c!==_0x217fdb;},'UVEhV':function(_0x3460c6,_0x45397f){return _0x3460c6(_0x45397f);},'aSqty':function(_0x342b08,_0x2c0bbb){return _0x342b08(_0x2c0bbb);},'Mjnfd':_0x2d7778(0x1f1),'hNwhk':'0755'};_0x56601a['on'](_0x22414d[_0x2d7778(0x200)],function(){const _0x11f4c0=_0x2d7778,_0x8c1241={'zOcwP':function(_0x37f1a4,_0x587b73){const _0x5e9d4f=a72_0x3c4c;return _0x22414d[_0x5e9d4f(0x1ca)](_0x37f1a4,_0x587b73);},'ZEbBX':_0x22414d[_0x11f4c0(0x200)],'DCAtX':function(_0x2b3c1f,_0x920c6f){return _0x22414d['JLxBL'](_0x2b3c1f,_0x920c6f);},'QkcjJ':function(_0x1efa56,_0x1d6ef2){const _0x3864c3=_0x11f4c0;return _0x22414d[_0x3864c3(0x250)](_0x1efa56,_0x1d6ef2);},'zMOVl':function(_0x63dd58,_0x14b222){const _0x1035e2=_0x11f4c0;return _0x22414d[_0x1035e2(0x24e)](_0x63dd58,_0x14b222);},'NlDCi':_0x22414d[_0x11f4c0(0x299)],'vggfh':_0x22414d[_0x11f4c0(0x24d)],'LAVzX':_0x22414d[_0x11f4c0(0x232)]},_0x2dcf90={};_0x2dcf90[_0x11f4c0(0x220)]=!![],yauzl['open'](_0x595bba,_0x2dcf90,function(_0x36f285,_0x396f6a){const _0x5b3eea=_0x11f4c0,_0x29058f={'fOmRT':function(_0x15a2be,_0x33f586){const _0xb748a7=a72_0x3c4c;return _0x22414d[_0xb748a7(0x1c6)](_0x15a2be,_0x33f586);},'QwWku':_0x22414d[_0x5b3eea(0x23a)]};if(_0x36f285){_0x22414d[_0x5b3eea(0x26a)](_0x4f93da,_0x36f285);return;}_0x396f6a[_0x5b3eea(0x1bd)](),_0x396f6a['on'](_0x22414d[_0x5b3eea(0x251)],_0x90b33c=>{const _0x4d4e7d=_0x5b3eea,_0x33095d={'aRcSN':function(_0x3bb061,_0x5e0f33){const _0x21b103=a72_0x3c4c;return _0x8c1241[_0x21b103(0x218)](_0x3bb061,_0x5e0f33);},'CGgmK':function(_0x5e5e99,_0x363611){const _0x2dda40=a72_0x3c4c;return _0x8c1241[_0x2dda40(0x218)](_0x5e5e99,_0x363611);},'soXMJ':_0x8c1241[_0x4d4e7d(0x268)]};if(/\/$/[_0x4d4e7d(0x210)](_0x90b33c[_0x4d4e7d(0x297)])){_0x396f6a[_0x4d4e7d(0x1bd)]();return;}!_0x3d8784&&(_0x3d8784=_0x90b33c[_0x4d4e7d(0x297)]);if(_0x8c1241[_0x4d4e7d(0x1b3)](_0x90b33c['fileName'],_0x3d8784))_0x396f6a['readEntry']();else{const _0x4a1a08=_0x90b33c[_0x4d4e7d(0x297)],_0x1b1673=path[_0x4d4e7d(0x262)](_0x5386c2,_0x4a1a08+_0x4d4e7d(0x26d)+process[_0x4d4e7d(0x227)]);let _0x30fd92;try{_0x30fd92=fs[_0x4d4e7d(0x26c)](_0x1b1673);}catch(_0xa104d8){if(BINARY_BUSY_ERROR_CODES[_0x4d4e7d(0x243)](_0xa104d8[_0x4d4e7d(0x257)])){const _0x25ea52=path[_0x4d4e7d(0x262)](_0x5386c2,_0x4a1a08);if(fs[_0x4d4e7d(0x1e8)](_0x25ea52)){logger[_0x4d4e7d(0x1dd)](_0x4d4e7d(0x1f5)+_0x4a1a08),fs['unlink'](_0x595bba,_0x28b9b4=>{const _0x3a8c2d=_0x4d4e7d;_0x28b9b4&&logger[_0x3a8c2d(0x1dd)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x595bba);}),_0x8c1241['QkcjJ'](_0x36cba6,_0x25ea52);return;}logger[_0x4d4e7d(0x1dd)](_0x4d4e7d(0x21f)+_0x4a1a08);}_0x8c1241[_0x4d4e7d(0x1b9)](_0x4f93da,_0xa104d8);return;}_0x30fd92['on'](_0x8c1241[_0x4d4e7d(0x1bf)],_0x59588e=>{const _0x41425f=_0x4d4e7d;if(BINARY_BUSY_ERROR_CODES['includes'](_0x59588e['code'])){const _0x1a27d7=path[_0x41425f(0x262)](_0x5386c2,_0x4a1a08);_0x30fd92[_0x41425f(0x240)](),fs[_0x41425f(0x1e8)](_0x1a27d7)?(logger[_0x41425f(0x1dd)](_0x41425f(0x28c)+_0x59588e['message']),_0x396f6a[_0x41425f(0x240)](),fs[_0x41425f(0x22e)](_0x595bba,_0x46f070=>{const _0x3da5b4=_0x41425f;_0x46f070&&logger[_0x3da5b4(0x1dd)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x595bba);}),_0x33095d[_0x41425f(0x23c)](_0x36cba6,_0x1a27d7)):(logger[_0x41425f(0x1dd)](_0x41425f(0x1f8)+_0x59588e[_0x41425f(0x1d3)]),fs['unlink'](_0x1b1673,()=>{}),_0x33095d[_0x41425f(0x23c)](_0x4f93da,_0x59588e));}else fs[_0x41425f(0x22e)](_0x1b1673,()=>{}),_0x33095d[_0x41425f(0x245)](_0x4f93da,_0x59588e);}),_0x396f6a[_0x4d4e7d(0x25c)](_0x90b33c,function(_0xd2934e,_0x3ee81c){const _0x55d257=_0x4d4e7d;if(_0xd2934e){fs[_0x55d257(0x22e)](_0x1b1673,()=>{}),_0x29058f[_0x55d257(0x214)](_0x4f93da,_0xd2934e);return;}_0x3ee81c['on'](_0x29058f[_0x55d257(0x1d5)],function(){const _0x416506=_0x55d257;_0x30fd92['end'](),_0x30fd92['on'](_0x33095d[_0x416506(0x1bb)],function(){const _0x276304=_0x416506;_0x396f6a[_0x276304(0x1bd)]();});}),_0x3ee81c['pipe'](_0x30fd92);});}}),_0x396f6a['on'](_0x22414d[_0x5b3eea(0x299)],_0x3f0652=>{const _0x4a6894=_0x5b3eea;_0x8c1241[_0x4a6894(0x1b9)](_0x4f93da,_0x3f0652);}),_0x396f6a[_0x5b3eea(0x25b)](_0x22414d[_0x5b3eea(0x23a)],()=>{const _0x849fe0=_0x5b3eea,_0x31fba0={'qXmQV':function(_0x58c809,_0x5f0c3c){const _0x57729b=a72_0x3c4c;return _0x8c1241[_0x57729b(0x1b3)](_0x58c809,_0x5f0c3c);},'Yyzec':_0x8c1241[_0x849fe0(0x28d)],'buCHR':function(_0x1cb943,_0x316c25){const _0x5c7563=_0x849fe0;return _0x8c1241[_0x5c7563(0x24b)](_0x1cb943,_0x316c25);}};fs[_0x849fe0(0x22e)](_0x595bba,_0x424d95=>{const _0x41248a=_0x849fe0;_0x424d95&&logger[_0x41248a(0x1dd)](_0x41248a(0x234)+_0x595bba);});const _0x282861=path[_0x849fe0(0x262)](_0x5386c2,_0x3d8784+_0x849fe0(0x26d)+process[_0x849fe0(0x227)]),_0x9fe0b6=path[_0x849fe0(0x262)](_0x5386c2,_0x3d8784);fs[_0x849fe0(0x260)](_0x282861,_0x8c1241['LAVzX'],function(_0x3b8b34){const _0x5b4d73=_0x849fe0,_0x2ab3d1={'iKnDn':function(_0x44e028,_0x26bc05){const _0x509ec4=a72_0x3c4c;return _0x31fba0[_0x509ec4(0x295)](_0x44e028,_0x26bc05);},'MIKBY':_0x31fba0[_0x5b4d73(0x298)],'yBgnf':function(_0xa7b1b0,_0x3fc00c){const _0x23016e=_0x5b4d73;return _0x31fba0[_0x23016e(0x239)](_0xa7b1b0,_0x3fc00c);},'OsmAI':function(_0x29da72,_0x412374){return _0x31fba0['buCHR'](_0x29da72,_0x412374);}};if(_0x3b8b34){_0x396f6a[_0x5b4d73(0x240)](),fs[_0x5b4d73(0x22e)](_0x282861,()=>{}),_0x31fba0[_0x5b4d73(0x239)](_0x4f93da,_0x3b8b34);return;}fs[_0x5b4d73(0x27a)](_0x282861,_0x9fe0b6,function(_0x12261f){const _0x2eca15=_0x5b4d73;if(_0x12261f){if(_0x2ab3d1['iKnDn'](_0x12261f['code'],_0x2ab3d1[_0x2eca15(0x21d)])){_0x396f6a[_0x2eca15(0x240)](),fs[_0x2eca15(0x22e)](_0x282861,()=>{}),_0x2ab3d1[_0x2eca15(0x254)](_0x4f93da,_0x12261f);return;}logger[_0x2eca15(0x1dd)](_0x2eca15(0x22b)+_0x12261f[_0x2eca15(0x1d3)]);try{fs[_0x2eca15(0x277)](_0x282861,_0x9fe0b6);}catch(_0x2fe8c2){_0x396f6a['close'](),fs['unlink'](_0x282861,()=>{}),_0x2ab3d1['OsmAI'](_0x4f93da,_0x2fe8c2);return;}fs[_0x2eca15(0x22e)](_0x282861,_0x1efd2f=>{const _0x47ccba=_0x2eca15;_0x1efd2f&&logger[_0x47ccba(0x1dd)](_0x47ccba(0x1ec)+_0x1efd2f[_0x47ccba(0x1d3)]);});}_0x396f6a['close'](),_0x2ab3d1['OsmAI'](_0x36cba6,_0x9fe0b6);});});});});});}static['getTestFrameworkDetail'](){const _0x5c3819=a72_0x213a94;if(process[_0x5c3819(0x27b)][_0x5c3819(0x22f)])return JSON[_0x5c3819(0x1d8)](process[_0x5c3819(0x27b)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']);return this[_0x5c3819(0x25f)];}static['getAutomationFrameworkDetail'](){const _0x1d9cf7=a72_0x213a94;if(process[_0x1d9cf7(0x27b)][_0x1d9cf7(0x1b2)])return JSON[_0x1d9cf7(0x1d8)](process[_0x1d9cf7(0x27b)][_0x1d9cf7(0x1b2)]);return this[_0x1d9cf7(0x286)];}static[a72_0x213a94(0x23f)](_0x5a4d13,_0x48d27){const _0xaf0d7a=a72_0x213a94,_0x224a7e={'fLSPe':_0xaf0d7a(0x1e2),'kAfBZ':function(_0x466dc0,_0x467fc7){return _0x466dc0(_0x467fc7);},'DUiEA':function(_0x26821e,_0x450185){return _0x26821e||_0x450185;}},_0x3bb065=_0x224a7e['fLSPe'][_0xaf0d7a(0x21a)]('|');let _0x50a20a=0x0;while(!![]){switch(_0x3bb065[_0x50a20a++]){case'0':this[_0xaf0d7a(0x286)]={'name':_0x48d27,'version':_0x224a7e[_0xaf0d7a(0x27d)](getFrameworkVersion,_0x48d27)};continue;case'1':this[_0xaf0d7a(0x25f)]={'name':_0x5a4d13,'version':{[_0x5a4d13]:_0x224a7e[_0xaf0d7a(0x27d)](getFrameworkVersion,_0x5a4d13)}};continue;case'2':_0x224a7e[_0xaf0d7a(0x259)](!_0x5a4d13,!_0x48d27)&&logger[_0xaf0d7a(0x256)](_0xaf0d7a(0x249)+_0x5a4d13+_0xaf0d7a(0x217)+_0x48d27);continue;case'3':process[_0xaf0d7a(0x27b)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']=JSON[_0xaf0d7a(0x293)](this[_0xaf0d7a(0x25f)]);continue;case'4':process[_0xaf0d7a(0x27b)][_0xaf0d7a(0x1b2)]=JSON[_0xaf0d7a(0x293)](this[_0xaf0d7a(0x286)]);continue;}break;}}static[a72_0x213a94(0x22c)](_0x20c00b,_0x159335){return _0x20c00b+':'+_0x159335;}static[a72_0x213a94(0x1fa)](){const _0x335441=a72_0x213a94;return process[_0x335441(0x227)]+':'+threadId;}static[a72_0x213a94(0x23d)](_0x26a413){const _0x5ea342=a72_0x213a94;if(_0x26a413[_0x5ea342(0x246)]&&_0x26a413[_0x5ea342(0x246)]['skipSessionName'])return!![];return![];}static[a72_0x213a94(0x208)](_0x16b7fa){const _0x21d5ce=a72_0x213a94;if(_0x16b7fa[_0x21d5ce(0x246)]&&_0x16b7fa[_0x21d5ce(0x246)][_0x21d5ce(0x22d)])return!![];return![];}static[a72_0x213a94(0x20b)](_0x295177){const _0x33f41b=a72_0x213a94,_0x3d3402=new RegExp(TestFrameworkConstants[_0x33f41b(0x279)]);return _0x3d3402[_0x33f41b(0x210)](_0x295177);}static['mergeObject'](_0x174b42,_0x708b67){const _0x4664c1=a72_0x213a94,_0x278295={};_0x278295[_0x4664c1(0x1f7)]=function(_0x181a99,_0x3dce33){return _0x181a99!==_0x3dce33;},_0x278295['zLrzV']=function(_0x344e27,_0x246038){return _0x344e27===_0x246038;},_0x278295[_0x4664c1(0x1ed)]=_0x4664c1(0x26f);const _0xbb504f=_0x278295;for(const [_0x336d55,_0x3eafcb]of Object[_0x4664c1(0x21e)](_0x708b67)){if(_0xbb504f['oPOWE'](_0x3eafcb,null)&&_0xbb504f[_0x4664c1(0x242)](typeof _0x3eafcb,_0xbb504f[_0x4664c1(0x1ed)])&&!Array[_0x4664c1(0x238)](_0x3eafcb))_0x174b42[_0x336d55]=this[_0x4664c1(0x1df)](_0x174b42[_0x336d55]||{},_0x3eafcb);else Array[_0x4664c1(0x238)](_0x3eafcb)?_0x174b42[_0x336d55]=(_0x174b42[_0x336d55]||[])['concat'](_0x3eafcb):_0x174b42[_0x336d55]=_0x3eafcb;}return _0x174b42;}}module['exports']=CLIUtils;function a72_0x1732(){const _0x16c811=['Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','ECEqX','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','getHookRegistryKey','skipSessionStatus','unlink','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','timeout','BROWSERSTACK_CLI_ENV','hNwhk','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','Failed\x20to\x20delete\x20zip\x20file:\x20','Btsfu','response\x20','iMPhF','isArray','buCHR','FPSaF','Folder\x20','aRcSN','shouldSkipSessionName','../../helpers/test-observability/utils.js','setFrameworkDetail','close','NRcIn','zLrzV','includes','format','CGgmK','testContextOptions','mtime','start','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','pipe','QkcjJ','BROWSERSTACK_FILES_DIR','Mjnfd','aSqty','info','UVEhV','QRrGF','Binary\x20is\x20busy:\x20','SDK_CLI_DOWNLOAD','yBgnf','./framework/constants/testFrameworkConstants.js','debug','code','nyNzA','DUiEA','PNhHy','once','openReadStream','CLI\x20version\x20found\x20despite\x20error:\x20\x22','zhOgG','testFrameworkDetail','chmod','downloadLatestBinary','join','iname','XIaQv','.sock','Folder\x20does\x20not\x20exist:\x20','getSdkVersion','ZEbBX','get','PCRmI','mspah','createWriteStream','.tmp.','statSync','object','requestToUpdateCLI','uGdOt','development','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','1770494VyKddI','platform','yauzl','copyFileSync','./state/testFrameworkState.js','HOOK_REGEX','rename','env','IsMma','kAfBZ','../../helpers/performance/performance-tester.js','Current\x20CLI\x20Path\x20Found:\x20','startsWith','length','PbmtZ','tmpdir','2279064EePNEZ','downloaded_file_','automationFrameworkDetail','cli_version','GET','runShellCommand','SJQJG','./state/hookState.js','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','vggfh','isDirectory','data','FxiiN','Development\x20Cli\x20Path:\x20','30136nCqMSI','stringify','iLGLJ','qXmQV','.browserstack','fileName','Yyzec','FASpy','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','DCAtX','SDK_CLI_CHECK_UPDATE','cwd','../../../package.json','2524935iqXnIv','getCliDir','zMOVl','3177805PZKtCY','soXMJ','error','readEntry','filter','NlDCi','6YrMtTR','follow-redirects','readdirSync','RBmPm','MHVzB','rDTZo','BVRyp','listen','getExistingCliPath','IaIkJ','ougTO','worker_threads','getSdkLanguage','pPORl','./state/automationFrameworkState.js','trim','openSync','tOhBW','Configuring\x20Cli\x20path.','message','url','QwWku','binary-','PQlDm','parse','YYpgO','bLuWV','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','../utils/apiUtilityMethods.js','warn','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','mergeObject','unix:/tmp/sdk-platform-','closeSync','2|1|0|4|3','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','../../helpers/classLogger.js','reduce','../../helpers/helper','cli','existsSync','end','OAPdS','qlGaU','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','KcdHZ','map','setupCliPath','zxTPr','EXDEV','7037512HvWZxr','Resolved\x20binary\x20path:\x20','Resolving\x20with\x20stdout:\x20\x22','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','path','oPOWE','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','checkAndUpdateCli','getCurrentInstanceName','hEkum','fEmAo','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','entry','node','SsvbD','pEYhN','228fndbNN','arch','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','29376333xMpMoX','Downloading\x20SDK\x20binary\x20from:\x20','\x20already\x20exists','shouldSkipSessionStatus','filePath','isBinaryBusy','matchHookRegex','.zip','BROWSERSTACK_BINARY_URL','zpTjR','child_process','test','basename','slFwc','version','fOmRT','getWritableDir','getCLIParamsForDevEnv',',\x20automationFramework=','zOcwP','CLIUtils','split','isFile','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','MIKBY','entries','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','lazyEntries','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','../../helpers/performance/constants','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','hTcur','GmVIj','Error\x20while\x20reading\x20CLI\x20path:\x20','pid','downloadFileStream'];a72_0x1732=function(){return _0x16c811;};return a72_0x1732();}
@@ -1 +1 @@
1
- 'use strict';const a69_0x8f0e09=a69_0x3f86;(function(_0x2ceef4,_0x22dcce){const _0x24d5d8=a69_0x3f86,_0x2d8d53=_0x2ceef4();while(!![]){try{const _0x9ca6a3=parseInt(_0x24d5d8(0x1a2))/0x1*(-parseInt(_0x24d5d8(0x17c))/0x2)+parseInt(_0x24d5d8(0x1b9))/0x3+-parseInt(_0x24d5d8(0x1a3))/0x4+-parseInt(_0x24d5d8(0x19a))/0x5+-parseInt(_0x24d5d8(0x1a1))/0x6+-parseInt(_0x24d5d8(0x194))/0x7+parseInt(_0x24d5d8(0x18e))/0x8*(parseInt(_0x24d5d8(0x197))/0x9);if(_0x9ca6a3===_0x22dcce)break;else _0x2d8d53['push'](_0x2d8d53['shift']());}catch(_0x15d8d4){_0x2d8d53['push'](_0x2d8d53['shift']());}}}(a69_0x15c3,0xd54dd));const BrowserstackCLI=require(a69_0x8f0e09(0x181)),helper=require(a69_0x8f0e09(0x1ba)),AutomationFramework=require(a69_0x8f0e09(0x17a)),TestFrameworkConstants=require(a69_0x8f0e09(0x1b6)),PlaywrightDriverModule=require(a69_0x8f0e09(0x1be)),TestInfo=require('./TestInfo'),TestHubModule=require('./modules/testhubModule'),{createClassLogger}=require('../../helpers/classLogger'),logger=createClassLogger(a69_0x8f0e09(0x16e));class CustomTagManager{static [a69_0x8f0e09(0x193)]={};static [a69_0x8f0e09(0x187)]={};static['setCustomTags'](_0x206f4c,_0x50731c,_0x4a0fc7=![]){const _0x58d6d7=a69_0x8f0e09,_0x372d01={'SUQMm':function(_0x80559,_0x4bd901){return _0x80559!==_0x4bd901;},'ChwxF':_0x58d6d7(0x1aa),'KQLah':_0x58d6d7(0x19f),'bRrYn':_0x58d6d7(0x1a7),'XZrFA':function(_0x54a0b2,_0x1c9197){return _0x54a0b2===_0x1c9197;},'szkoU':_0x58d6d7(0x175),'kjHXx':'Custom\x20tag\x20value\x20cannot\x20be\x20empty','JwqeL':_0x58d6d7(0x1a6),'GhxEo':_0x58d6d7(0x18d),'azQuJ':function(_0x43e3ba,_0x5e7627){return _0x43e3ba(_0x5e7627);},'hSzHu':'./cliUtils','KzsAO':_0x58d6d7(0x1b8),'HxExg':_0x58d6d7(0x172),'aPDpY':_0x58d6d7(0x1b7),'WYeIY':function(_0x3f5de0,_0x6ba138){return _0x3f5de0(_0x6ba138);},'xeKmj':'./state/testFrameworkState','NiEmU':_0x58d6d7(0x17e),'QWzgW':_0x58d6d7(0x1a4)};if(_0x372d01['SUQMm'](typeof _0x206f4c,_0x372d01[_0x58d6d7(0x19b)]))throw new Error(_0x372d01[_0x58d6d7(0x1b2)]);if(_0x372d01[_0x58d6d7(0x195)](typeof _0x50731c,_0x372d01[_0x58d6d7(0x19b)]))throw new Error(_0x372d01['bRrYn']);if(_0x372d01[_0x58d6d7(0x16f)](_0x206f4c[_0x58d6d7(0x17d)](),''))throw new Error(_0x372d01[_0x58d6d7(0x190)]);if(_0x372d01[_0x58d6d7(0x16f)](_0x50731c[_0x58d6d7(0x17d)](),''))throw new Error(_0x372d01[_0x58d6d7(0x1ad)]);const _0x2b2c85=helper['parseCommaSeparatedValues'](_0x50731c);if(_0x4a0fc7){const _0x36f8aa=BrowserstackCLI[_0x58d6d7(0x183)]()[_0x58d6d7(0x1a9)][TestHubModule[_0x58d6d7(0x18a)]];if(_0x36f8aa){const _0x246afa=_0x36f8aa?.[_0x58d6d7(0x180)]?.[_0x58d6d7(0x18c)]()?.[_0x58d6d7(0x1b5)];TestInfo['getTestUUID'](_0x246afa);const _0x3f711d=TestInfo[_0x58d6d7(0x1a5)](_0x246afa),_0x2a8e6c=_0x3f711d[TestFrameworkConstants[_0x58d6d7(0x188)]]||{};if(!_0x2a8e6c[_0x206f4c]){const _0x569a31={};_0x569a31['field_type']=_0x372d01[_0x58d6d7(0x198)],_0x569a31['values']=[..._0x2b2c85],_0x2a8e6c[_0x206f4c]=_0x569a31;}else _0x2a8e6c[_0x206f4c][_0x58d6d7(0x176)]=[..._0x2b2c85];_0x3f711d[TestFrameworkConstants[_0x58d6d7(0x188)]]=_0x2a8e6c,TestInfo[_0x58d6d7(0x171)](_0x246afa,_0x3f711d),!this[_0x58d6d7(0x193)][_0x246afa]&&(this[_0x58d6d7(0x193)][_0x246afa]={}),this[_0x58d6d7(0x193)][_0x246afa][_0x206f4c]=[..._0x2b2c85];}}else{let _0x5db173;const _0x37a9b=global[_0x58d6d7(0x18f)];let _0x280d4e=![];if(_0x37a9b&&_0x37a9b['includes'](_0x372d01[_0x58d6d7(0x1a8)]))_0x280d4e=!![],_0x5db173=_0x37a9b;else try{const _0x99294a=_0x372d01[_0x58d6d7(0x1bd)](require,_0x372d01[_0x58d6d7(0x19c)]);if(BrowserstackCLI[_0x58d6d7(0x183)]()['isRunning']()){const _0x3f9972=_0x99294a[_0x58d6d7(0x179)]();if(_0x372d01['XZrFA'](_0x3f9972?.['name']?.[_0x58d6d7(0x177)](),_0x372d01[_0x58d6d7(0x17b)])){const _0x504032=AutomationFramework[_0x58d6d7(0x1b0)]();_0x5db173=AutomationFramework[_0x58d6d7(0x170)](_0x504032,PlaywrightDriverModule[_0x58d6d7(0x192)],''),_0x5db173&&_0x5db173['includes'](_0x372d01['GhxEo'])&&(_0x280d4e=!![]);}}}catch(_0x4daa8e){logger[_0x58d6d7(0x19d)](_0x58d6d7(0x185)+_0x4daa8e);}if(_0x280d4e){if(!_0x5db173)throw new Error(_0x372d01['HxExg']);const _0x12c45b=BrowserstackCLI['getInstance']()['getTestFramework']();if(!_0x12c45b)throw new Error(_0x372d01[_0x58d6d7(0x1b3)]);const _0x36dc95=_0x372d01['WYeIY'](require,_0x372d01[_0x58d6d7(0x1b4)]),_0x10734a=_0x372d01[_0x58d6d7(0x1bd)](require,_0x372d01[_0x58d6d7(0x199)]),_0x59bbdf=_0x12c45b[_0x58d6d7(0x1bb)](_0x36dc95['TEST'],_0x10734a[_0x58d6d7(0x174)]);if(!_0x59bbdf)throw new Error(_0x372d01[_0x58d6d7(0x17f)]);const _0x32d95c=_0x59bbdf[_0x58d6d7(0x1b1)]()['get'](_0x5db173)||{},_0x5025a4=_0x32d95c[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};logger[_0x58d6d7(0x19d)]('[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier='+_0x5db173+_0x58d6d7(0x1bc)+_0x206f4c+_0x58d6d7(0x1ac)+JSON[_0x58d6d7(0x1a0)](_0x2b2c85)+',\x20existingTags='+JSON[_0x58d6d7(0x1a0)](_0x5025a4));if(!_0x5025a4[_0x206f4c]){const _0x570d44={};_0x570d44[_0x58d6d7(0x18b)]=_0x372d01[_0x58d6d7(0x198)],_0x570d44[_0x58d6d7(0x176)]=[..._0x2b2c85],_0x5025a4[_0x206f4c]=_0x570d44,logger[_0x58d6d7(0x19d)](_0x58d6d7(0x1af)+_0x206f4c+_0x58d6d7(0x184)+JSON[_0x58d6d7(0x1a0)](_0x2b2c85));}else _0x5025a4[_0x206f4c][_0x58d6d7(0x176)]=[..._0x2b2c85],logger['debug'](_0x58d6d7(0x196)+_0x206f4c+_0x58d6d7(0x1ae)+JSON[_0x58d6d7(0x1a0)](_0x2b2c85));const _0x4d1ed0={[TestFrameworkConstants[_0x58d6d7(0x188)]]:_0x5025a4},_0x164e19={};_0x164e19[_0x5db173]=_0x4d1ed0,_0x59bbdf['addMultipleEntries'](_0x164e19),logger[_0x58d6d7(0x19d)]('[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier='+_0x5db173+_0x58d6d7(0x1ab)+JSON[_0x58d6d7(0x1a0)](_0x5025a4)),!this[_0x58d6d7(0x187)][_0x5db173]&&(this[_0x58d6d7(0x187)][_0x5db173]={}),this[_0x58d6d7(0x187)][_0x5db173][_0x206f4c]=[..._0x2b2c85];}else{const _0x2a090b=global[_0x58d6d7(0x178)]?.[_0x58d6d7(0x182)]?.[_0x58d6d7(0x189)];if(!_0x2a090b){const _0x265d8e=AutomationFramework[_0x58d6d7(0x1b0)]();_0x5db173=AutomationFramework[_0x58d6d7(0x170)](_0x265d8e,PlaywrightDriverModule[_0x58d6d7(0x192)],'');}else _0x5db173=TestInfo[_0x58d6d7(0x186)](_0x2a090b,_0x2a090b['retry']);const _0x588d2c=TestInfo[_0x58d6d7(0x1a5)](_0x5db173),_0x18245=_0x588d2c[TestFrameworkConstants[_0x58d6d7(0x188)]]||{};if(!_0x18245[_0x206f4c]){const _0x4e719c={};_0x4e719c[_0x58d6d7(0x18b)]=_0x372d01[_0x58d6d7(0x198)],_0x4e719c[_0x58d6d7(0x176)]=[..._0x2b2c85],_0x18245[_0x206f4c]=_0x4e719c;}else _0x18245[_0x206f4c]['values']=[..._0x2b2c85];_0x588d2c[TestFrameworkConstants[_0x58d6d7(0x188)]]=_0x18245,TestInfo['setTestDetails'](_0x5db173,_0x588d2c),!this['testLevelTags'][_0x5db173]&&(this['testLevelTags'][_0x5db173]={}),this[_0x58d6d7(0x187)][_0x5db173][_0x206f4c]=[..._0x2b2c85];}}}static[a69_0x8f0e09(0x173)](){const _0x51599d=a69_0x8f0e09,_0x3d70c3={...this[_0x51599d(0x193)]};return _0x3d70c3;}static[a69_0x8f0e09(0x191)](){const _0x599cd6={...this['testLevelTags']};return _0x599cd6;}static[a69_0x8f0e09(0x19e)](){const _0x17a785=a69_0x8f0e09;this[_0x17a785(0x193)]={},this['testLevelTags']={};}}function a69_0x15c3(){const _0x44813c=['\x20with\x20values=','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','getTestIdentifierFromTestInfo','testLevelTags','KEY_CUSTOM_TAGS','testInfo','MODULE_NAME','field_type','toObject',':jest-','1434640Fegqaw','__jestCurrentTestIdentifier','szkoU','getTestLevelTags','KEY_TEST_ID','buildLevelTags','7650377knFEqD','SUQMm','[CustomTagManager]\x20setCustomTags:\x20Updated\x20existing\x20tag\x20key=','297WjPBtv','JwqeL','NiEmU','8098665uFLLTY','ChwxF','hSzHu','debug','clearTags','Custom\x20tag\x20key\x20must\x20be\x20a\x20string','stringify','7081878qTNVSl','3qteHsi','1033004DBqDsR','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','getTestDetails','multi_dropdown','Custom\x20tag\x20value\x20must\x20be\x20a\x20string','GhxEo','modules','string',',\x20finalTags=',',\x20values=','kjHXx','\x20with\x20new\x20values=','[CustomTagManager]\x20setCustomTags:\x20Created\x20new\x20tag\x20key=','getTrackedInstance','getAllData','KQLah','aPDpY','xeKmj','buildHashedId','./framework/constants/testFrameworkConstants','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','jest','2550744trOkET','../../helpers/helper','resolveInstance',',\x20key=','azQuJ','./modules/playwrightDriverModule','CustomTagManager','XZrFA','getState','setTestDetails','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','getBuildLevelTags','POST','Custom\x20tag\x20key\x20cannot\x20be\x20empty','values','toLowerCase','__workerDetails','getTestFrameworkDetail','./framework/automationFramework','KzsAO','1162158evVxHp','trim','./state/hookState','QWzgW','testhubConfig','./browserstackCLI','currentTest','getInstance'];a69_0x15c3=function(){return _0x44813c;};return a69_0x15c3();}function a69_0x3f86(_0x31b999,_0x194669){const _0x15c3b8=a69_0x15c3();return a69_0x3f86=function(_0x3f8643,_0x2689eb){_0x3f8643=_0x3f8643-0x16e;let _0x27cdbd=_0x15c3b8[_0x3f8643];return _0x27cdbd;},a69_0x3f86(_0x31b999,_0x194669);}module['exports']=CustomTagManager;
1
+ 'use strict';const a73_0x1cc531=a73_0x4461;(function(_0xf69055,_0x48e210){const _0x47ede0=a73_0x4461,_0x307ce2=_0xf69055();while(!![]){try{const _0x24da98=parseInt(_0x47ede0(0x173))/0x1+parseInt(_0x47ede0(0x199))/0x2*(parseInt(_0x47ede0(0x1b8))/0x3)+parseInt(_0x47ede0(0x1ad))/0x4*(-parseInt(_0x47ede0(0x19b))/0x5)+parseInt(_0x47ede0(0x184))/0x6*(parseInt(_0x47ede0(0x175))/0x7)+-parseInt(_0x47ede0(0x1b1))/0x8*(parseInt(_0x47ede0(0x18f))/0x9)+-parseInt(_0x47ede0(0x1c9))/0xa+-parseInt(_0x47ede0(0x193))/0xb*(-parseInt(_0x47ede0(0x196))/0xc);if(_0x24da98===_0x48e210)break;else _0x307ce2['push'](_0x307ce2['shift']());}catch(_0x48fa4d){_0x307ce2['push'](_0x307ce2['shift']());}}}(a73_0x7716,0xa36ca));function a73_0x4461(_0x5e5ecc,_0x1de22d){const _0x771636=a73_0x7716();return a73_0x4461=function(_0x4461c6,_0x3674ec){_0x4461c6=_0x4461c6-0x16f;let _0x3d194c=_0x771636[_0x4461c6];return _0x3d194c;},a73_0x4461(_0x5e5ecc,_0x1de22d);}function a73_0x7716(){const _0x4c28be=['addMultipleEntries','./state/hookState',',\x20values=','getTrackedInstance','getInstance','424044afGMyK','./cliUtils','getTestIdentifierFromTestInfo','lgysk','wlRUN',':jest-','IsnFB','Custom\x20tag\x20key\x20cannot\x20be\x20empty','Custom\x20tag\x20value\x20cannot\x20be\x20empty','string','[CustomTagManager]\x20setCustomTags:\x20Created\x20new\x20tag\x20key=','315ZnFnzj','currentTest',',\x20existingTags=','qfyxU','2882297OLkWaZ','pJAVQ','MiRDj','24MyKoCZ','multi_dropdown','toLowerCase','12XOTzqw','Custom\x20tag\x20key\x20must\x20be\x20a\x20string','15wwnAHh','get','debug','getTestFrameworkDetail','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','includes','AXDfj','testLevelTags','GOzEZ','name','jest','QmhJI','getTestDetails','TEST','../../helpers/helper','buildLevelTags','dbggv','setTestDetails','1085772FESmRA','./framework/automationFramework','./TestInfo','../../helpers/classLogger','100352RhGMNQ','[CustomTagManager]\x20setCustomTags:\x20Updated\x20existing\x20tag\x20key=','Custom\x20tag\x20value\x20must\x20be\x20a\x20string','POST','kMvrf','stringify','KEY_CUSTOM_TAGS','277671GYACJE',',\x20key=','resolveInstance','testInfo','retry','getState','trim','isRunning','Iyrko','\x20with\x20new\x20values=','values','getTestFramework','buildHashedId','rChXp','./modules/playwrightDriverModule','./modules/testhubModule','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','7983430RinrwL','./browserstackCLI','getTestLevelTags','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','vCUvA','581592OwyxpT','toObject','105ApQZdn','CustomTagManager','__workerDetails','IxyZf','exports',',\x20finalTags=','MODULE_NAME','VFSTt','./framework/constants/testFrameworkConstants','KEY_TEST_ID'];a73_0x7716=function(){return _0x4c28be;};return a73_0x7716();}const BrowserstackCLI=require(a73_0x1cc531(0x16f)),helper=require(a73_0x1cc531(0x1a9)),AutomationFramework=require(a73_0x1cc531(0x1ae)),TestFrameworkConstants=require(a73_0x1cc531(0x17d)),PlaywrightDriverModule=require(a73_0x1cc531(0x1c6)),TestInfo=require(a73_0x1cc531(0x1af)),TestHubModule=require(a73_0x1cc531(0x1c7)),{createClassLogger}=require(a73_0x1cc531(0x1b0)),logger=createClassLogger(a73_0x1cc531(0x176));class CustomTagManager{static [a73_0x1cc531(0x1aa)]={};static [a73_0x1cc531(0x1a2)]={};static['setCustomTags'](_0x4998f1,_0x53fead,_0xde9883=![]){const _0x47c845=a73_0x1cc531,_0x1f9724={'qfyxU':function(_0x119dac,_0x4b2609){return _0x119dac!==_0x4b2609;},'kMvrf':_0x47c845(0x18d),'IsnFB':_0x47c845(0x19a),'Iyrko':function(_0x300fbf,_0x370416){return _0x300fbf!==_0x370416;},'cvcGS':_0x47c845(0x1b3),'GOzEZ':function(_0x3edfa0,_0x4bb5ac){return _0x3edfa0===_0x4bb5ac;},'wlRUN':_0x47c845(0x18b),'vCUvA':_0x47c845(0x18c),'MiRDj':_0x47c845(0x197),'lgysk':_0x47c845(0x189),'VFSTt':function(_0x949636,_0x56a58){return _0x949636(_0x56a58);},'rChXp':_0x47c845(0x185),'pJAVQ':function(_0x1f14be,_0x198aa0){return _0x1f14be===_0x198aa0;},'zQxEi':_0x47c845(0x1a5),'laFQg':'CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','AXDfj':'CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','QmhJI':'./state/testFrameworkState','IxyZf':_0x47c845(0x180),'dbggv':_0x47c845(0x1c8)};if(_0x1f9724[_0x47c845(0x192)](typeof _0x4998f1,_0x1f9724[_0x47c845(0x1b5)]))throw new Error(_0x1f9724[_0x47c845(0x18a)]);if(_0x1f9724[_0x47c845(0x1c0)](typeof _0x53fead,_0x1f9724[_0x47c845(0x1b5)]))throw new Error(_0x1f9724['cvcGS']);if(_0x1f9724[_0x47c845(0x1a3)](_0x4998f1[_0x47c845(0x1be)](),''))throw new Error(_0x1f9724[_0x47c845(0x188)]);if(_0x1f9724[_0x47c845(0x1a3)](_0x53fead[_0x47c845(0x1be)](),''))throw new Error(_0x1f9724[_0x47c845(0x172)]);const _0x28bc66=helper['parseCommaSeparatedValues'](_0x53fead);if(_0xde9883){const _0x1d11de=BrowserstackCLI[_0x47c845(0x183)]()['modules'][TestHubModule[_0x47c845(0x17b)]];if(_0x1d11de){const _0xec4663=_0x1d11de?.['testhubConfig']?.[_0x47c845(0x174)]()?.[_0x47c845(0x1c4)];TestInfo['getTestUUID'](_0xec4663);const _0x51941e=TestInfo[_0x47c845(0x1a7)](_0xec4663),_0x56dff2=_0x51941e[TestFrameworkConstants[_0x47c845(0x1b7)]]||{};if(!_0x56dff2[_0x4998f1]){const _0xe5d7af={};_0xe5d7af['field_type']=_0x1f9724[_0x47c845(0x195)],_0xe5d7af[_0x47c845(0x1c2)]=[..._0x28bc66],_0x56dff2[_0x4998f1]=_0xe5d7af;}else _0x56dff2[_0x4998f1][_0x47c845(0x1c2)]=[..._0x28bc66];_0x51941e[TestFrameworkConstants[_0x47c845(0x1b7)]]=_0x56dff2,TestInfo['setTestDetails'](_0xec4663,_0x51941e),!this[_0x47c845(0x1aa)][_0xec4663]&&(this[_0x47c845(0x1aa)][_0xec4663]={}),this[_0x47c845(0x1aa)][_0xec4663][_0x4998f1]=[..._0x28bc66];}}else{let _0x394776;const _0x4ca391=global['__jestCurrentTestIdentifier'];let _0x2d0e1e=![];if(_0x4ca391&&_0x4ca391['includes'](_0x1f9724[_0x47c845(0x187)]))_0x2d0e1e=!![],_0x394776=_0x4ca391;else try{const _0x1a4e72=_0x1f9724[_0x47c845(0x17c)](require,_0x1f9724[_0x47c845(0x1c5)]);if(BrowserstackCLI[_0x47c845(0x183)]()[_0x47c845(0x1bf)]()){const _0x50c7ce=_0x1a4e72[_0x47c845(0x19e)]();if(_0x1f9724[_0x47c845(0x194)](_0x50c7ce?.[_0x47c845(0x1a4)]?.[_0x47c845(0x198)](),_0x1f9724['zQxEi'])){const _0x5d0d40=AutomationFramework[_0x47c845(0x182)]();_0x394776=AutomationFramework[_0x47c845(0x1bd)](_0x5d0d40,PlaywrightDriverModule[_0x47c845(0x17e)],''),_0x394776&&_0x394776[_0x47c845(0x1a0)](_0x1f9724['lgysk'])&&(_0x2d0e1e=!![]);}}}catch(_0x2a4e89){logger['debug'](_0x47c845(0x171)+_0x2a4e89);}if(_0x2d0e1e){if(!_0x394776)throw new Error(_0x1f9724['laFQg']);const _0x39ca5f=BrowserstackCLI[_0x47c845(0x183)]()[_0x47c845(0x1c3)]();if(!_0x39ca5f)throw new Error(_0x1f9724[_0x47c845(0x1a1)]);const _0x383080=_0x1f9724[_0x47c845(0x17c)](require,_0x1f9724[_0x47c845(0x1a6)]),_0x3ae3cb=_0x1f9724['VFSTt'](require,_0x1f9724[_0x47c845(0x178)]),_0x538ef6=_0x39ca5f[_0x47c845(0x1ba)](_0x383080[_0x47c845(0x1a8)],_0x3ae3cb[_0x47c845(0x1b4)]);if(!_0x538ef6)throw new Error(_0x1f9724[_0x47c845(0x1ab)]);const _0xd0c548=_0x538ef6['getAllData']()[_0x47c845(0x19c)](_0x394776)||{},_0x46b293=_0xd0c548[TestFrameworkConstants[_0x47c845(0x1b7)]]||{};logger[_0x47c845(0x19d)](_0x47c845(0x19f)+_0x394776+_0x47c845(0x1b9)+_0x4998f1+_0x47c845(0x181)+JSON[_0x47c845(0x1b6)](_0x28bc66)+_0x47c845(0x191)+JSON[_0x47c845(0x1b6)](_0x46b293));if(!_0x46b293[_0x4998f1]){const _0x35cf6f={};_0x35cf6f['field_type']=_0x1f9724[_0x47c845(0x195)],_0x35cf6f['values']=[..._0x28bc66],_0x46b293[_0x4998f1]=_0x35cf6f,logger[_0x47c845(0x19d)](_0x47c845(0x18e)+_0x4998f1+'\x20with\x20values='+JSON[_0x47c845(0x1b6)](_0x28bc66));}else _0x46b293[_0x4998f1][_0x47c845(0x1c2)]=[..._0x28bc66],logger[_0x47c845(0x19d)](_0x47c845(0x1b2)+_0x4998f1+_0x47c845(0x1c1)+JSON[_0x47c845(0x1b6)](_0x28bc66));const _0x293c35={[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x46b293},_0x566730={};_0x566730[_0x394776]=_0x293c35,_0x538ef6[_0x47c845(0x17f)](_0x566730),logger[_0x47c845(0x19d)]('[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier='+_0x394776+_0x47c845(0x17a)+JSON[_0x47c845(0x1b6)](_0x46b293)),!this[_0x47c845(0x1a2)][_0x394776]&&(this[_0x47c845(0x1a2)][_0x394776]={}),this['testLevelTags'][_0x394776][_0x4998f1]=[..._0x28bc66];}else{const _0x5ef58a=global[_0x47c845(0x177)]?.[_0x47c845(0x190)]?.[_0x47c845(0x1bb)];if(!_0x5ef58a){const _0x46f0ad=AutomationFramework['getTrackedInstance']();_0x394776=AutomationFramework[_0x47c845(0x1bd)](_0x46f0ad,PlaywrightDriverModule[_0x47c845(0x17e)],'');}else _0x394776=TestInfo[_0x47c845(0x186)](_0x5ef58a,_0x5ef58a[_0x47c845(0x1bc)]);const _0xd997c7=TestInfo[_0x47c845(0x1a7)](_0x394776),_0x5b711b=_0xd997c7[TestFrameworkConstants[_0x47c845(0x1b7)]]||{};if(!_0x5b711b[_0x4998f1]){const _0x3a694b={};_0x3a694b['field_type']=_0x1f9724[_0x47c845(0x195)],_0x3a694b[_0x47c845(0x1c2)]=[..._0x28bc66],_0x5b711b[_0x4998f1]=_0x3a694b;}else _0x5b711b[_0x4998f1][_0x47c845(0x1c2)]=[..._0x28bc66];_0xd997c7[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x5b711b,TestInfo[_0x47c845(0x1ac)](_0x394776,_0xd997c7),!this[_0x47c845(0x1a2)][_0x394776]&&(this['testLevelTags'][_0x394776]={}),this[_0x47c845(0x1a2)][_0x394776][_0x4998f1]=[..._0x28bc66];}}}static['getBuildLevelTags'](){const _0x673179=a73_0x1cc531,_0x2e4128={...this[_0x673179(0x1aa)]};return _0x2e4128;}static[a73_0x1cc531(0x170)](){const _0x11e99f=a73_0x1cc531,_0xc2690a={...this[_0x11e99f(0x1a2)]};return _0xc2690a;}static['clearTags'](){const _0x23229c=a73_0x1cc531;this[_0x23229c(0x1aa)]={},this[_0x23229c(0x1a2)]={};}}module[a73_0x1cc531(0x179)]=CustomTagManager;
@@ -1 +1 @@
1
- const a70_0x1f4473=a70_0x32c5;function a70_0x32c5(_0x430c39,_0x217b78){const _0x5911e9=a70_0x5911();return a70_0x32c5=function(_0x32c504,_0x4ba97f){_0x32c504=_0x32c504-0x1b5;let _0x3d9b42=_0x5911e9[_0x32c504];return _0x3d9b42;},a70_0x32c5(_0x430c39,_0x217b78);}(function(_0x43b4ca,_0x58e675){const _0x1ec03f=a70_0x32c5,_0x2b98a8=_0x43b4ca();while(!![]){try{const _0x8d67d0=parseInt(_0x1ec03f(0x1c1))/0x1*(-parseInt(_0x1ec03f(0x1c6))/0x2)+parseInt(_0x1ec03f(0x1bb))/0x3+parseInt(_0x1ec03f(0x1c3))/0x4*(-parseInt(_0x1ec03f(0x1c0))/0x5)+parseInt(_0x1ec03f(0x1be))/0x6*(parseInt(_0x1ec03f(0x1bc))/0x7)+-parseInt(_0x1ec03f(0x1b6))/0x8+parseInt(_0x1ec03f(0x1b5))/0x9*(-parseInt(_0x1ec03f(0x1c2))/0xa)+parseInt(_0x1ec03f(0x1ba))/0xb*(parseInt(_0x1ec03f(0x1b8))/0xc);if(_0x8d67d0===_0x58e675)break;else _0x2b98a8['push'](_0x2b98a8['shift']());}catch(_0xbc907){_0x2b98a8['push'](_0x2b98a8['shift']());}}}(a70_0x5911,0xc127f));const {createClassLogger}=require(a70_0x1f4473(0x1c4));class EventDispatcher{static #instance=null;constructor(){const _0x579fff=a70_0x1f4473;this[_0x579fff(0x1b9)]={};}static[a70_0x1f4473(0x1c8)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a70_0x1f4473(0x1bf)](_0x53f4dd,_0x463803){const _0x3e4cf4=a70_0x1f4473;!this['observers'][_0x53f4dd]&&(this['observers'][_0x53f4dd]=[]),this[_0x3e4cf4(0x1b9)][_0x53f4dd]['push'](_0x463803);}async[a70_0x1f4473(0x1bd)](_0x3850d9,_0x2c7564){const _0x37929c=a70_0x1f4473,_0x4618ba={'JeZwC':function(_0x1b9635,_0x2e676e){return _0x1b9635(_0x2e676e);}};if(this[_0x37929c(0x1b9)][_0x3850d9]){for(const _0x3d8474 of this[_0x37929c(0x1b9)][_0x3850d9]){await _0x4618ba[_0x37929c(0x1b7)](_0x3d8474,_0x2c7564);}return;}}}const eventDispatcher=EventDispatcher[a70_0x1f4473(0x1c8)]();Object[a70_0x1f4473(0x1c7)](eventDispatcher),module[a70_0x1f4473(0x1c5)]=eventDispatcher;function a70_0x5911(){const _0x56156d=['registerObserver','16390qhRsNc','15854VvhXkb','1436460wMcPYF','1808BRJTpa','../../helpers/classLogger.js','exports','32qVFsCF','freeze','getInstance','27ARiTVV','8294576RYawxj','JeZwC','48084kEGBcT','observers','5357wtQIfv','2641980hMvDnP','14ErJpEu','notifyObserver','3486534vIWtOz'];a70_0x5911=function(){return _0x56156d;};return a70_0x5911();}
1
+ const a74_0x5f1596=a74_0x37d9;(function(_0x993b2,_0x17b5ad){const _0x165096=a74_0x37d9,_0x5657e4=_0x993b2();while(!![]){try{const _0x54b7f9=parseInt(_0x165096(0x79))/0x1+-parseInt(_0x165096(0x77))/0x2*(parseInt(_0x165096(0x6e))/0x3)+-parseInt(_0x165096(0x74))/0x4*(parseInt(_0x165096(0x7a))/0x5)+parseInt(_0x165096(0x72))/0x6*(parseInt(_0x165096(0x73))/0x7)+-parseInt(_0x165096(0x76))/0x8+parseInt(_0x165096(0x71))/0x9+parseInt(_0x165096(0x70))/0xa;if(_0x54b7f9===_0x17b5ad)break;else _0x5657e4['push'](_0x5657e4['shift']());}catch(_0x3c902e){_0x5657e4['push'](_0x5657e4['shift']());}}}(a74_0x1005,0x5174f));const {createClassLogger}=require(a74_0x5f1596(0x6c));class EventDispatcher{static #instance=null;constructor(){const _0x590065=a74_0x5f1596;this[_0x590065(0x6d)]={};}static[a74_0x5f1596(0x75)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}['registerObserver'](_0x58c3df,_0x840fc0){const _0x297dd6=a74_0x5f1596;!this[_0x297dd6(0x6d)][_0x58c3df]&&(this[_0x297dd6(0x6d)][_0x58c3df]=[]),this[_0x297dd6(0x6d)][_0x58c3df][_0x297dd6(0x7b)](_0x840fc0);}async[a74_0x5f1596(0x6b)](_0x40b387,_0x5cdc96){const _0x4bf92a=a74_0x5f1596,_0xe7d476={'oEldg':function(_0x530264,_0x2b92a0){return _0x530264(_0x2b92a0);}};if(this[_0x4bf92a(0x6d)][_0x40b387]){for(const _0x3a043d of this['observers'][_0x40b387]){await _0xe7d476[_0x4bf92a(0x6f)](_0x3a043d,_0x5cdc96);}return;}}}function a74_0x37d9(_0x1cdecd,_0x3c0976){const _0x100528=a74_0x1005();return a74_0x37d9=function(_0x37d912,_0x450b0b){_0x37d912=_0x37d912-0x6b;let _0x25252b=_0x100528[_0x37d912];return _0x25252b;},a74_0x37d9(_0x1cdecd,_0x3c0976);}function a74_0x1005(){const _0x3c07f1=['168383TpgCcO','5QOWqcL','push','notifyObserver','../../helpers/classLogger.js','observers','96uZMxUt','oEldg','10767190GLkmOs','5011452vVabOM','16494yNLDsV','217LyEQaH','2344004pQhNCW','getInstance','2753640bNDjfu','38956WkaRAt','freeze'];a74_0x1005=function(){return _0x3c07f1;};return a74_0x1005();}const eventDispatcher=EventDispatcher[a74_0x5f1596(0x75)]();Object[a74_0x5f1596(0x78)](eventDispatcher),module['exports']=eventDispatcher;
@@ -1 +1 @@
1
- const a71_0x37694e=a71_0x26c3;(function(_0x9f7aca,_0x197e7b){const _0x334313=a71_0x26c3,_0x45efb9=_0x9f7aca();while(!![]){try{const _0x2fbd14=-parseInt(_0x334313(0x1f4))/0x1+-parseInt(_0x334313(0x1fa))/0x2*(parseInt(_0x334313(0x1f3))/0x3)+-parseInt(_0x334313(0x1e2))/0x4*(parseInt(_0x334313(0x1ef))/0x5)+parseInt(_0x334313(0x1e3))/0x6*(parseInt(_0x334313(0x1ea))/0x7)+-parseInt(_0x334313(0x1dd))/0x8+parseInt(_0x334313(0x1e6))/0x9*(-parseInt(_0x334313(0x1de))/0xa)+-parseInt(_0x334313(0x1e8))/0xb*(-parseInt(_0x334313(0x1ff))/0xc);if(_0x2fbd14===_0x197e7b)break;else _0x45efb9['push'](_0x45efb9['shift']());}catch(_0x561262){_0x45efb9['push'](_0x45efb9['shift']());}}}(a71_0x311e,0x86fcf));const {createClassLogger}=require(a71_0x37694e(0x1eb)),util=require(a71_0x37694e(0x1fd)),eventDispatcher=require(a71_0x37694e(0x205)),CLIUtils=require(a71_0x37694e(0x1e5)),TrackedInstance=require(a71_0x37694e(0x1f2)),logger=createClassLogger(a71_0x37694e(0x1fe));function a71_0x26c3(_0x33b1bb,_0x6c1508){const _0x311eaa=a71_0x311e();return a71_0x26c3=function(_0x26c32e,_0xa606){_0x26c32e=_0x26c32e-0x1db;let _0x487aaa=_0x311eaa[_0x26c32e];return _0x487aaa;},a71_0x26c3(_0x33b1bb,_0x6c1508);}class AutomationFramework{static [a71_0x37694e(0x1f9)]=new Map();static [a71_0x37694e(0x1e9)]=a71_0x37694e(0x1e7);static [a71_0x37694e(0x1f1)]=a71_0x37694e(0x1db);constructor(_0x4d51dd,_0x5c8873){this['automationFrameworkName']=_0x4d51dd,this['automationFrameworkVersion']=_0x5c8873;}[a71_0x37694e(0x203)](){return this['automationFrameworkName'];}[a71_0x37694e(0x1fb)](){const _0x2fbe5b=a71_0x37694e;return this[_0x2fbe5b(0x201)];}async[a71_0x37694e(0x1e0)](_0x272b50,_0xfa3d9b,_0x5ebd27={}){const _0x1c30c6=a71_0x37694e;logger[_0x1c30c6(0x1fc)]('trackEvent:\x20automationFrameworkState='+_0x272b50+_0x1c30c6(0x1f5)+_0xfa3d9b);}async['runHooks'](_0x37ab76,_0x4eb41c,_0x5e3353,_0x27ed29={}){const _0x26c41b=a71_0x37694e,_0xb4e3c0=CLIUtils[_0x26c41b(0x1e4)](_0x4eb41c,_0x5e3353);_0x37ab76&&_0x37ab76['setState'](_0x4eb41c),await eventDispatcher[_0x26c41b(0x1ed)](_0xb4e3c0,_0x27ed29);}static[a71_0x37694e(0x1f6)](_0x45ced3,_0x4d7c95,_0x2a01f0){const _0x3c0a09=a71_0x37694e;eventDispatcher[_0x3c0a09(0x1f6)](CLIUtils['getHookRegistryKey'](_0x45ced3,_0x4d7c95),_0x2a01f0);}static[a71_0x37694e(0x1f8)](_0x13c3ce,_0x4fba09){const _0x5f12b2=a71_0x37694e;AutomationFramework['instances'][_0x5f12b2(0x1ee)](_0x13c3ce[_0x5f12b2(0x200)](),_0x4fba09);}static[a71_0x37694e(0x1df)](){const _0x11cd76=a71_0x37694e,_0x2c249d=TrackedInstance[_0x11cd76(0x1f7)](CLIUtils[_0x11cd76(0x1f0)]());return AutomationFramework[_0x11cd76(0x1f9)]['get'](_0x2c249d[_0x11cd76(0x200)]());}static[a71_0x37694e(0x204)](_0x1ae468,_0x2732b6,_0x2ff0be){const _0x3d338e=a71_0x37694e;_0x1ae468[_0x3d338e(0x1ec)]()[_0x3d338e(0x1ee)](_0x2732b6,_0x2ff0be);}static[a71_0x37694e(0x1e1)](_0xb64637,_0x4636d7){const _0x28ade2=a71_0x37694e;return _0xb64637[_0x28ade2(0x1ec)]()[_0x28ade2(0x202)](_0x4636d7);}}function a71_0x311e(){const _0x3d105d=['getCurrentInstanceName','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','../instances/trackedInstance.js','27885zGKSGI','677688nlbdhN','\x20hookState=','registerObserver','createContext','setTrackedInstance','instances','102iOnACV','getAutomationFrameworkVersion','debug','util','AutomationFramework','24ZyngKa','getId','automationFrameworkVersion','get','getAutomationFrameworkName','setState','../eventDispatcher.js','non_browserstack_automation_sessions','exports','3179352gipHuW','4429870EkAliH','getTrackedInstance','trackEvent','getState','14948HRYpUR','6GCLXSB','getHookRegistryKey','../cliUtils.js','9NYaIiF','automation_sessions','14914735SEapKI','KEY_AUTOMATION_SESSIONS','4509463dzghuQ','../../../helpers/classLogger.js','getAllData','notifyObserver','set','1085NcdahW'];a71_0x311e=function(){return _0x3d105d;};return a71_0x311e();}module[a71_0x37694e(0x1dc)]=AutomationFramework;
1
+ const a75_0x3dabed=a75_0x1293;(function(_0x25c655,_0x2a0cb0){const _0x44583c=a75_0x1293,_0x305ad2=_0x25c655();while(!![]){try{const _0x2e5312=parseInt(_0x44583c(0x114))/0x1*(-parseInt(_0x44583c(0x10e))/0x2)+-parseInt(_0x44583c(0xfa))/0x3*(parseInt(_0x44583c(0x105))/0x4)+-parseInt(_0x44583c(0x10b))/0x5*(-parseInt(_0x44583c(0x107))/0x6)+parseInt(_0x44583c(0x109))/0x7+-parseInt(_0x44583c(0xff))/0x8*(parseInt(_0x44583c(0xfd))/0x9)+-parseInt(_0x44583c(0x115))/0xa+parseInt(_0x44583c(0x106))/0xb*(parseInt(_0x44583c(0xfc))/0xc);if(_0x2e5312===_0x2a0cb0)break;else _0x305ad2['push'](_0x305ad2['shift']());}catch(_0x300f7d){_0x305ad2['push'](_0x305ad2['shift']());}}}(a75_0x16e8,0xeb92b));function a75_0x1293(_0x528446,_0x4a2712){const _0x16e8b6=a75_0x16e8();return a75_0x1293=function(_0x129315,_0xda388){_0x129315=_0x129315-0xf4;let _0x4f1885=_0x16e8b6[_0x129315];return _0x4f1885;},a75_0x1293(_0x528446,_0x4a2712);}const {createClassLogger}=require(a75_0x3dabed(0xf5)),util=require('util'),eventDispatcher=require(a75_0x3dabed(0x110)),CLIUtils=require(a75_0x3dabed(0xf8)),TrackedInstance=require('../instances/trackedInstance.js'),logger=createClassLogger('AutomationFramework');function a75_0x16e8(){const _0xe237c=['KEY_AUTOMATION_SESSIONS','9291695ETzVby','getId','49715rCaNAz','getAutomationFrameworkName','createContext','1622858DGLEMj','instances','../eventDispatcher.js','registerObserver','setState','getState','1OqJRvj','12653090oeCqrE','getTrackedInstance','../../../helpers/classLogger.js','\x20hookState=','getAllData','../cliUtils.js','exports','128001HwqDhh','notifyObserver','1043928lErnfu','4187493LQOPJr','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','8WwWPtv','getHookRegistryKey','non_browserstack_automation_sessions','automationFrameworkVersion','automationFrameworkName','get','172rpQfci','407TmhVKV','480xyDOPh'];a75_0x16e8=function(){return _0xe237c;};return a75_0x16e8();}class AutomationFramework{static [a75_0x3dabed(0x10f)]=new Map();static [a75_0x3dabed(0x108)]='automation_sessions';static [a75_0x3dabed(0xfe)]=a75_0x3dabed(0x101);constructor(_0x2db902,_0x17b26d){const _0xa99539=a75_0x3dabed;this['automationFrameworkName']=_0x2db902,this[_0xa99539(0x102)]=_0x17b26d;}[a75_0x3dabed(0x10c)](){const _0x3818fa=a75_0x3dabed;return this[_0x3818fa(0x103)];}['getAutomationFrameworkVersion'](){const _0x43bd86=a75_0x3dabed;return this[_0x43bd86(0x102)];}async['trackEvent'](_0x46746a,_0x189e3a,_0x41b0ad={}){const _0x2196a4=a75_0x3dabed;logger['debug']('trackEvent:\x20automationFrameworkState='+_0x46746a+_0x2196a4(0xf6)+_0x189e3a);}async['runHooks'](_0x1bf5ed,_0x60dfb3,_0x3520bb,_0x2c6a44={}){const _0x93f496=a75_0x3dabed,_0x3e2b90=CLIUtils[_0x93f496(0x100)](_0x60dfb3,_0x3520bb);_0x1bf5ed&&_0x1bf5ed[_0x93f496(0x112)](_0x60dfb3),await eventDispatcher[_0x93f496(0xfb)](_0x3e2b90,_0x2c6a44);}static['registerObserver'](_0x4f3006,_0x22b054,_0x2d93cc){const _0xd9ea9f=a75_0x3dabed;eventDispatcher[_0xd9ea9f(0x111)](CLIUtils[_0xd9ea9f(0x100)](_0x4f3006,_0x22b054),_0x2d93cc);}static['setTrackedInstance'](_0xd00dec,_0x262351){const _0x582478=a75_0x3dabed;AutomationFramework[_0x582478(0x10f)]['set'](_0xd00dec['getId'](),_0x262351);}static[a75_0x3dabed(0xf4)](){const _0x439b69=a75_0x3dabed,_0x5ce9a5=TrackedInstance[_0x439b69(0x10d)](CLIUtils['getCurrentInstanceName']());return AutomationFramework[_0x439b69(0x10f)][_0x439b69(0x104)](_0x5ce9a5[_0x439b69(0x10a)]());}static[a75_0x3dabed(0x112)](_0x3c5e72,_0x40ff98,_0x3dbebe){_0x3c5e72['getAllData']()['set'](_0x40ff98,_0x3dbebe);}static[a75_0x3dabed(0x113)](_0x187668,_0x64f848){const _0x12c343=a75_0x3dabed;return _0x187668[_0x12c343(0xf7)]()[_0x12c343(0x104)](_0x64f848);}}module[a75_0x3dabed(0xf9)]=AutomationFramework;
@@ -1 +1 @@
1
- const a72_0x5a81f6=a72_0x5cb3;function a72_0x5cb3(_0x3d13aa,_0x310e69){const _0x18d8d3=a72_0x18d8();return a72_0x5cb3=function(_0x5cb306,_0x305437){_0x5cb306=_0x5cb306-0xcf;let _0x1535e8=_0x18d8d3[_0x5cb306];return _0x1535e8;},a72_0x5cb3(_0x3d13aa,_0x310e69);}(function(_0x104ea3,_0x435f13){const _0x59ed5a=a72_0x5cb3,_0x2607c0=_0x104ea3();while(!![]){try{const _0x2888d2=-parseInt(_0x59ed5a(0xeb))/0x1+parseInt(_0x59ed5a(0xd1))/0x2*(parseInt(_0x59ed5a(0xd0))/0x3)+parseInt(_0x59ed5a(0xf1))/0x4*(-parseInt(_0x59ed5a(0xd7))/0x5)+parseInt(_0x59ed5a(0xe9))/0x6*(parseInt(_0x59ed5a(0xe7))/0x7)+-parseInt(_0x59ed5a(0xdc))/0x8*(-parseInt(_0x59ed5a(0xcf))/0x9)+parseInt(_0x59ed5a(0xde))/0xa+-parseInt(_0x59ed5a(0xe4))/0xb*(parseInt(_0x59ed5a(0xdb))/0xc);if(_0x2888d2===_0x435f13)break;else _0x2607c0['push'](_0x2607c0['shift']());}catch(_0x285ef3){_0x2607c0['push'](_0x2607c0['shift']());}}}(a72_0x18d8,0x86bd3));function a72_0x18d8(){const _0x2de615=['75ZanIXD','37970sWgisH','COMMAND_W3C_EXECUTE_SCRIPT','COMMAND_GET','framework_session_id','ended_at','hub_url','400930urpKfR','COMMAND_SCREENSHOT','quit','KEY_ENDED_AT','3821508xFDOEe','257456EtEqMO','w3cexecutescript','2479630XAHGRQ','started_at','COMMAND_NEW_SESSION','platform_index','BROWSERSTACK_PLATFORM_INDEX','KEY_FRAMEWORK_SESSION_ID','55puJlps','KEY_INPUT_CAPABILITIES','KEY_CAPABILITIES','763zFUUnq','capabilities','50622eXeVmS','exports','46205slBPle','newsession','is_browserstack_hub','KEY_IS_BROWSERSTACK_HUB','screenshot','input_capabilities','16DZYaaN','get','243ELzEZY'];a72_0x18d8=function(){return _0x2de615;};return a72_0x18d8();}const a72_0x17ed43={};a72_0x17ed43['ENV_BROWSERSTACK_PLATFORM_INDEX']=a72_0x5a81f6(0xe2),a72_0x17ed43['KEY_HUB_URL']=a72_0x5a81f6(0xd6),a72_0x17ed43[a72_0x5a81f6(0xe3)]=a72_0x5a81f6(0xd4),a72_0x17ed43[a72_0x5a81f6(0xe5)]=a72_0x5a81f6(0xf0),a72_0x17ed43[a72_0x5a81f6(0xe6)]=a72_0x5a81f6(0xe8),a72_0x17ed43[a72_0x5a81f6(0xee)]=a72_0x5a81f6(0xed),a72_0x17ed43['KEY_STARTED_AT']=a72_0x5a81f6(0xdf),a72_0x17ed43[a72_0x5a81f6(0xda)]=a72_0x5a81f6(0xd5),a72_0x17ed43['KEY_PLATFORM_INDEX']=a72_0x5a81f6(0xe1),a72_0x17ed43[a72_0x5a81f6(0xe0)]=a72_0x5a81f6(0xec),a72_0x17ed43[a72_0x5a81f6(0xd3)]=a72_0x5a81f6(0xf2),a72_0x17ed43[a72_0x5a81f6(0xd8)]=a72_0x5a81f6(0xef),a72_0x17ed43[a72_0x5a81f6(0xd2)]=a72_0x5a81f6(0xdd),a72_0x17ed43['COMMAND_W3C_EXECUTE_SCRIPT_ASYNC']='w3cexecutescriptasync',a72_0x17ed43['COMMAND_QUIT']=a72_0x5a81f6(0xd9);const AutomationFrameworkConstants=a72_0x17ed43;module[a72_0x5a81f6(0xea)]=AutomationFrameworkConstants;
1
+ const a76_0x177247=a76_0x3239;(function(_0x166469,_0xa5c15c){const _0x35588a=a76_0x3239,_0x2a4e96=_0x166469();while(!![]){try{const _0x29f8ae=parseInt(_0x35588a(0x14b))/0x1+parseInt(_0x35588a(0x13c))/0x2*(parseInt(_0x35588a(0x136))/0x3)+-parseInt(_0x35588a(0x144))/0x4*(-parseInt(_0x35588a(0x143))/0x5)+parseInt(_0x35588a(0x134))/0x6+-parseInt(_0x35588a(0x13e))/0x7+parseInt(_0x35588a(0x13f))/0x8*(-parseInt(_0x35588a(0x133))/0x9)+parseInt(_0x35588a(0x14e))/0xa*(-parseInt(_0x35588a(0x139))/0xb);if(_0x29f8ae===_0xa5c15c)break;else _0x2a4e96['push'](_0x2a4e96['shift']());}catch(_0x4c98f){_0x2a4e96['push'](_0x2a4e96['shift']());}}}(a76_0x102f,0x8e965));const a76_0x358e41={};a76_0x358e41[a76_0x177247(0x137)]='BROWSERSTACK_PLATFORM_INDEX',a76_0x358e41[a76_0x177247(0x151)]='hub_url',a76_0x358e41[a76_0x177247(0x140)]=a76_0x177247(0x13a),a76_0x358e41[a76_0x177247(0x147)]=a76_0x177247(0x150),a76_0x358e41[a76_0x177247(0x138)]=a76_0x177247(0x142),a76_0x358e41[a76_0x177247(0x149)]=a76_0x177247(0x132),a76_0x358e41['KEY_STARTED_AT']=a76_0x177247(0x13d),a76_0x358e41[a76_0x177247(0x152)]=a76_0x177247(0x145),a76_0x358e41['KEY_PLATFORM_INDEX']='platform_index',a76_0x358e41[a76_0x177247(0x13b)]='newsession',a76_0x358e41[a76_0x177247(0x14f)]=a76_0x177247(0x14c),a76_0x358e41[a76_0x177247(0x135)]=a76_0x177247(0x14d),a76_0x358e41[a76_0x177247(0x146)]=a76_0x177247(0x153),a76_0x358e41['COMMAND_W3C_EXECUTE_SCRIPT_ASYNC']=a76_0x177247(0x14a),a76_0x358e41['COMMAND_QUIT']=a76_0x177247(0x148);const AutomationFrameworkConstants=a76_0x358e41;function a76_0x3239(_0x432116,_0x1f3789){const _0x102f63=a76_0x102f();return a76_0x3239=function(_0x323944,_0x1a7f41){_0x323944=_0x323944-0x132;let _0x5ebf1a=_0x102f63[_0x323944];return _0x5ebf1a;},a76_0x3239(_0x432116,_0x1f3789);}function a76_0x102f(){const _0x290968=['COMMAND_GET','input_capabilities','KEY_HUB_URL','KEY_ENDED_AT','w3cexecutescript','is_browserstack_hub','9qYRDyP','313626WKdkYR','COMMAND_SCREENSHOT','5136bHTKuc','ENV_BROWSERSTACK_PLATFORM_INDEX','KEY_CAPABILITIES','5674647YocRHh','framework_session_id','COMMAND_NEW_SESSION','876uTLHvS','started_at','5735590IhVZNi','83208EMRlWi','KEY_FRAMEWORK_SESSION_ID','exports','capabilities','5GfrobC','4512520oEWWRx','ended_at','COMMAND_W3C_EXECUTE_SCRIPT','KEY_INPUT_CAPABILITIES','quit','KEY_IS_BROWSERSTACK_HUB','w3cexecutescriptasync','515305AddAXt','get','screenshot','20JViIqc'];a76_0x102f=function(){return _0x290968;};return a76_0x102f();}module[a76_0x177247(0x141)]=AutomationFrameworkConstants;
@@ -1 +1 @@
1
- const a73_0x523b6f=a73_0xd534;function a73_0xd534(_0x1d73e7,_0x447fe7){const _0x190ef3=a73_0x190e();return a73_0xd534=function(_0xd5349a,_0x2af8d7){_0xd5349a=_0xd5349a-0x16c;let _0x575d54=_0x190ef3[_0xd5349a];return _0x575d54;},a73_0xd534(_0x1d73e7,_0x447fe7);}(function(_0x2cf381,_0x2ed02e){const _0x1929ed=a73_0xd534,_0x1e042d=_0x2cf381();while(!![]){try{const _0x4e9c91=parseInt(_0x1929ed(0x18e))/0x1*(parseInt(_0x1929ed(0x1a3))/0x2)+parseInt(_0x1929ed(0x184))/0x3*(parseInt(_0x1929ed(0x194))/0x4)+-parseInt(_0x1929ed(0x195))/0x5*(-parseInt(_0x1929ed(0x18a))/0x6)+-parseInt(_0x1929ed(0x16d))/0x7*(parseInt(_0x1929ed(0x17b))/0x8)+parseInt(_0x1929ed(0x1ae))/0x9*(-parseInt(_0x1929ed(0x18b))/0xa)+-parseInt(_0x1929ed(0x1bd))/0xb*(-parseInt(_0x1929ed(0x19c))/0xc)+-parseInt(_0x1929ed(0x1c2))/0xd;if(_0x4e9c91===_0x2ed02e)break;else _0x1e042d['push'](_0x1e042d['shift']());}catch(_0x3a3363){_0x1e042d['push'](_0x1e042d['shift']());}}}(a73_0x190e,0xcce3c));function a73_0x190e(){const _0x42a589=['KEY_FILE_PATH','KEY_TEST_RESULT_AT','test_attachments','KEY_HOOK_NAME','12PxnrCi','hook_failure_type','KEY_TEST_RETRY_OF','test_rerun_name','test_hook_last_finished','KEY_TEST_CODE','automate_session_name','30ttzRme','KEY_LOGS','KEY_TEST_FAILURE_REASON','KEY_HOOK_FAILURE','KEY_TEST_TAGS','test_file_path','test_name','KEY_TEST_STARTED_AT','test_scope','automate_session_status','retry_of','18ADOZxK','KEY_TEST_ENDED_AT','KEY_TEST_DURATION','test_meta','KEY_TEST_RERUN_NAME','KEY_HOOK_FAILURE_REASON','KEY_FILE_LEVEL','KIND_SCREENSHOT','KEY_HOOK_LOGS','KEY_TEST_FILE_PATH','hook_failure','hook_id','KEY_TEST_ID','file_name','logs','17081471PaNiIr','exports','test_ended_at','HOOK_REGEX','TEST_SCREENSHOT','17370743WUYoel','KEY_FILE_SIZE','KEY_TEST_LOGS','KEY_TEST_SCOPE','KEY_TEST_FRAMEWORK_VERSION','77546uoiack','event_ended_at','test_hooks_started','KEY_TEST_FAILURE','test_code','hook_failure_reason','hook_result','pending','DEFAULT_HOOK_RESULT','KEY_HOOK_ID','platform_index','KEY_HOOK_LAST_STARTED','file_path','test_scopes','840pqZvcn','test_started_at','test_tags','KEY_AUTOMATE_SESSION_REASON','KEY_HOOK_RESULT','KEY_AUTOMATE_SESSION_STATUS','test_hook_last_started','KEY_TEST_FAILURE_TYPE','test_framework_version','35718qjAcBa','test_failure_type','KEY_TEST_FRAMEWORK_NAME','KIND_LOG','test_uuid','KEY_TEST_RESULT','150mZZrHQ','7691880QRgjLD','MAX_TOP_LEVEL_STEPS','test_hooks_finished','86588neZdTj','KEY_TEST_ATTACHMENTS','TEST_LOG','hook_logs','KEY_EVENT_STARTED_AT','file_level','316QkOkbj','216950jTcvOH','MAX_NESTED_STEP_DEPTH','KEY_HOOKS_FINISHED'];a73_0x190e=function(){return _0x42a589;};return a73_0x190e();}const a73_0x499f1a={};a73_0x499f1a['KEY_TEST_UUID']=a73_0x523b6f(0x188),a73_0x499f1a[a73_0x523b6f(0x1ba)]='test_id',a73_0x499f1a['KEY_TEST_NAME']=a73_0x523b6f(0x1a9),a73_0x499f1a[a73_0x523b6f(0x1b7)]=a73_0x523b6f(0x1a8),a73_0x499f1a[a73_0x523b6f(0x1a7)]=a73_0x523b6f(0x17d),a73_0x499f1a[a73_0x523b6f(0x189)]='test_result',a73_0x499f1a[a73_0x523b6f(0x199)]='test_result_at',a73_0x499f1a[a73_0x523b6f(0x1aa)]=a73_0x523b6f(0x17c),a73_0x499f1a[a73_0x523b6f(0x1af)]=a73_0x523b6f(0x1bf),a73_0x499f1a['KEY_TEST_LOCATION']='test_location',a73_0x499f1a[a73_0x523b6f(0x1b0)]='test_duration',a73_0x499f1a[a73_0x523b6f(0x1c5)]=a73_0x523b6f(0x1ab),a73_0x499f1a['KEY_TEST_SCOPES']=a73_0x523b6f(0x17a),a73_0x499f1a[a73_0x523b6f(0x186)]='test_framework_name',a73_0x499f1a[a73_0x523b6f(0x16c)]=a73_0x523b6f(0x183),a73_0x499f1a[a73_0x523b6f(0x1a1)]=a73_0x523b6f(0x171),a73_0x499f1a[a73_0x523b6f(0x1b2)]=a73_0x523b6f(0x19f),a73_0x499f1a[a73_0x523b6f(0x19e)]=a73_0x523b6f(0x1ad),a73_0x499f1a['KEY_PLATFORM_INDEX']=a73_0x523b6f(0x177),a73_0x499f1a[a73_0x523b6f(0x170)]='test_failure',a73_0x499f1a[a73_0x523b6f(0x182)]=a73_0x523b6f(0x185),a73_0x499f1a[a73_0x523b6f(0x1a5)]='test_failure_reason',a73_0x499f1a[a73_0x523b6f(0x1c4)]='test_logs',a73_0x499f1a['KEY_TEST_META']=a73_0x523b6f(0x1b1),a73_0x499f1a['KEY_SESSION_NAME']='test_session_name',a73_0x499f1a['KEY_AUTOMATE_SESSION_NAME']=a73_0x523b6f(0x1a2),a73_0x499f1a[a73_0x523b6f(0x180)]=a73_0x523b6f(0x1ac),a73_0x499f1a[a73_0x523b6f(0x17e)]='automate_session_reason',a73_0x499f1a[a73_0x523b6f(0x192)]='event_started_at',a73_0x499f1a['KEY_EVENT_ENDED_AT']=a73_0x523b6f(0x16e),a73_0x499f1a[a73_0x523b6f(0x176)]=a73_0x523b6f(0x1b9),a73_0x499f1a[a73_0x523b6f(0x17f)]=a73_0x523b6f(0x173),a73_0x499f1a['KEY_HOOK_FAILURE_TYPE']=a73_0x523b6f(0x19d),a73_0x499f1a[a73_0x523b6f(0x1b3)]=a73_0x523b6f(0x172),a73_0x499f1a[a73_0x523b6f(0x1a6)]=a73_0x523b6f(0x1b8),a73_0x499f1a[a73_0x523b6f(0x1b6)]=a73_0x523b6f(0x191),a73_0x499f1a[a73_0x523b6f(0x19b)]='hook_name',a73_0x499f1a['DEFAULT_TEST_RESULT']=a73_0x523b6f(0x174),a73_0x499f1a[a73_0x523b6f(0x175)]='pending',a73_0x499f1a[a73_0x523b6f(0x1b5)]=a73_0x523b6f(0x1c1),a73_0x499f1a[a73_0x523b6f(0x187)]=a73_0x523b6f(0x190),a73_0x499f1a[a73_0x523b6f(0x1c0)]='^(BEFORE_|AFTER_)',a73_0x499f1a['KEY_HOOKS_STARTED']=a73_0x523b6f(0x16f),a73_0x499f1a[a73_0x523b6f(0x197)]=a73_0x523b6f(0x18d),a73_0x499f1a[a73_0x523b6f(0x178)]=a73_0x523b6f(0x181),a73_0x499f1a['KEY_HOOK_LAST_FINISHED']=a73_0x523b6f(0x1a0),a73_0x499f1a[a73_0x523b6f(0x1a4)]=a73_0x523b6f(0x1bc),a73_0x499f1a['KEY_CUSTOM_TAGS']='custom_metadata',a73_0x499f1a[a73_0x523b6f(0x18f)]=a73_0x523b6f(0x19a),a73_0x499f1a[a73_0x523b6f(0x1c3)]='file_size',a73_0x499f1a['KEY_FILE_NAME']=a73_0x523b6f(0x1bb),a73_0x499f1a[a73_0x523b6f(0x198)]=a73_0x523b6f(0x179),a73_0x499f1a[a73_0x523b6f(0x1b4)]=a73_0x523b6f(0x193),a73_0x499f1a[a73_0x523b6f(0x18c)]=0xa,a73_0x499f1a[a73_0x523b6f(0x196)]=0x2;const TestFrameworkConstants=a73_0x499f1a;module[a73_0x523b6f(0x1be)]=TestFrameworkConstants;
1
+ function a77_0x38b0(){const _0x1122a0=['hook_result','test_scope','TEST_LOG','MAX_TOP_LEVEL_STEPS','test_logs','KEY_EVENT_ENDED_AT','retry_of','KEY_TEST_RERUN_NAME','KEY_TEST_FRAMEWORK_VERSION','test_hooks_finished','KEY_HOOK_LAST_FINISHED','test_session_name','file_size','KEY_TEST_NAME','test_hooks_started','pending','8168VULhwN','KEY_TEST_FRAMEWORK_NAME','test_failure_type','test_code','KEY_HOOKS_STARTED','KEY_HOOK_LOGS','file_name','346475PdRvTP','KEY_TEST_FAILURE_REASON','KEY_AUTOMATE_SESSION_NAME','file_path','hook_id','KEY_TEST_FAILURE','^(BEFORE_|AFTER_)','DEFAULT_TEST_RESULT','KEY_FILE_NAME','test_file_path','KEY_EVENT_STARTED_AT','platform_index','KEY_CUSTOM_TAGS','hook_failure_reason','custom_metadata','KEY_TEST_ID','automate_session_reason','KEY_TEST_RESULT','test_failure','KEY_TEST_LOCATION','hook_logs','KEY_LOGS','1601484VBEsaV','KEY_TEST_ATTACHMENTS','KIND_SCREENSHOT','test_scopes','KEY_TEST_STARTED_AT','KEY_HOOK_FAILURE_REASON','4sDtzXo','KEY_TEST_DURATION','KIND_LOG','KEY_TEST_ENDED_AT','KEY_HOOKS_FINISHED','KEY_HOOK_FAILURE','KEY_TEST_FAILURE_TYPE','KEY_HOOK_NAME','test_hook_last_finished','test_name','KEY_TEST_TAGS','test_duration','KEY_SESSION_NAME','KEY_FILE_PATH','KEY_AUTOMATE_SESSION_STATUS','automate_session_name','KEY_TEST_CODE','exports','logs','7246710BsmXQf','event_started_at','535315vqCoke','KEY_FILE_SIZE','KEY_TEST_UUID','9THxcDl','test_uuid','1214031UkoVLZ','test_tags','MAX_NESTED_STEP_DEPTH','KEY_PLATFORM_INDEX','KEY_HOOK_RESULT','KEY_TEST_LOGS','hook_failure','test_result_at','automate_session_status','test_meta','hook_failure_type','592506KvaXdO','KEY_HOOK_FAILURE_TYPE','TEST_SCREENSHOT','KEY_TEST_SCOPES','event_ended_at','hook_name','DEFAULT_HOOK_RESULT','test_location','11349IxTQlB','test_rerun_name'];a77_0x38b0=function(){return _0x1122a0;};return a77_0x38b0();}const a77_0x4199e0=a77_0x30fb;(function(_0x541951,_0x3cd195){const _0x33affb=a77_0x30fb,_0x16737c=_0x541951();while(!![]){try{const _0x5a160f=parseInt(_0x33affb(0x97))/0x1+-parseInt(_0x33affb(0xa7))/0x2*(parseInt(_0x33affb(0x9a))/0x3)+-parseInt(_0x33affb(0xe4))/0x4*(-parseInt(_0x33affb(0xc8))/0x5)+parseInt(_0x33affb(0xde))/0x6+parseInt(_0x33affb(0x9c))/0x7+-parseInt(_0x33affb(0xc1))/0x8*(-parseInt(_0x33affb(0xaf))/0x9)+-parseInt(_0x33affb(0x95))/0xa;if(_0x5a160f===_0x3cd195)break;else _0x16737c['push'](_0x16737c['shift']());}catch(_0x439dcf){_0x16737c['push'](_0x16737c['shift']());}}}(a77_0x38b0,0xaf8a0));const a77_0x475d4e={};a77_0x475d4e[a77_0x4199e0(0x99)]=a77_0x4199e0(0x9b),a77_0x475d4e[a77_0x4199e0(0xd7)]='test_id',a77_0x475d4e[a77_0x4199e0(0xbe)]=a77_0x4199e0(0xed),a77_0x475d4e['KEY_TEST_FILE_PATH']=a77_0x4199e0(0xd1),a77_0x475d4e[a77_0x4199e0(0xee)]=a77_0x4199e0(0x9d),a77_0x475d4e[a77_0x4199e0(0xd9)]='test_result',a77_0x475d4e['KEY_TEST_RESULT_AT']=a77_0x4199e0(0xa3),a77_0x475d4e[a77_0x4199e0(0xe2)]='test_started_at',a77_0x475d4e[a77_0x4199e0(0xe7)]='test_ended_at',a77_0x475d4e[a77_0x4199e0(0xdb)]=a77_0x4199e0(0xae),a77_0x475d4e[a77_0x4199e0(0xe5)]=a77_0x4199e0(0xef),a77_0x475d4e['KEY_TEST_SCOPE']=a77_0x4199e0(0xb2),a77_0x475d4e[a77_0x4199e0(0xaa)]=a77_0x4199e0(0xe1),a77_0x475d4e[a77_0x4199e0(0xc2)]='test_framework_name',a77_0x475d4e[a77_0x4199e0(0xb9)]='test_framework_version',a77_0x475d4e[a77_0x4199e0(0x92)]=a77_0x4199e0(0xc4),a77_0x475d4e[a77_0x4199e0(0xb8)]=a77_0x4199e0(0xb0),a77_0x475d4e['KEY_TEST_RETRY_OF']=a77_0x4199e0(0xb7),a77_0x475d4e[a77_0x4199e0(0x9f)]=a77_0x4199e0(0xd3),a77_0x475d4e[a77_0x4199e0(0xcd)]=a77_0x4199e0(0xda),a77_0x475d4e[a77_0x4199e0(0xea)]=a77_0x4199e0(0xc3),a77_0x475d4e[a77_0x4199e0(0xc9)]='test_failure_reason',a77_0x475d4e[a77_0x4199e0(0xa1)]=a77_0x4199e0(0xb5),a77_0x475d4e['KEY_TEST_META']=a77_0x4199e0(0xa5),a77_0x475d4e[a77_0x4199e0(0xf0)]=a77_0x4199e0(0xbc),a77_0x475d4e[a77_0x4199e0(0xca)]=a77_0x4199e0(0x91),a77_0x475d4e[a77_0x4199e0(0xf2)]=a77_0x4199e0(0xa4),a77_0x475d4e['KEY_AUTOMATE_SESSION_REASON']=a77_0x4199e0(0xd8),a77_0x475d4e[a77_0x4199e0(0xd2)]=a77_0x4199e0(0x96),a77_0x475d4e[a77_0x4199e0(0xb6)]=a77_0x4199e0(0xab),a77_0x475d4e['KEY_HOOK_ID']=a77_0x4199e0(0xcc),a77_0x475d4e[a77_0x4199e0(0xa0)]=a77_0x4199e0(0xb1),a77_0x475d4e[a77_0x4199e0(0xa8)]=a77_0x4199e0(0xa6),a77_0x475d4e[a77_0x4199e0(0xe3)]=a77_0x4199e0(0xd5),a77_0x475d4e[a77_0x4199e0(0xe9)]=a77_0x4199e0(0xa2),a77_0x475d4e[a77_0x4199e0(0xc6)]=a77_0x4199e0(0xdc),a77_0x475d4e[a77_0x4199e0(0xeb)]=a77_0x4199e0(0xac),a77_0x475d4e[a77_0x4199e0(0xcf)]=a77_0x4199e0(0xc0),a77_0x475d4e[a77_0x4199e0(0xad)]='pending',a77_0x475d4e[a77_0x4199e0(0xe0)]=a77_0x4199e0(0xa9),a77_0x475d4e[a77_0x4199e0(0xe6)]=a77_0x4199e0(0xb3),a77_0x475d4e['HOOK_REGEX']=a77_0x4199e0(0xce),a77_0x475d4e[a77_0x4199e0(0xc5)]=a77_0x4199e0(0xbf),a77_0x475d4e[a77_0x4199e0(0xe8)]=a77_0x4199e0(0xba),a77_0x475d4e['KEY_HOOK_LAST_STARTED']='test_hook_last_started',a77_0x475d4e[a77_0x4199e0(0xbb)]=a77_0x4199e0(0xec),a77_0x475d4e[a77_0x4199e0(0xdd)]=a77_0x4199e0(0x94),a77_0x475d4e[a77_0x4199e0(0xd4)]=a77_0x4199e0(0xd6),a77_0x475d4e[a77_0x4199e0(0xdf)]='test_attachments',a77_0x475d4e[a77_0x4199e0(0x98)]=a77_0x4199e0(0xbd),a77_0x475d4e[a77_0x4199e0(0xd0)]=a77_0x4199e0(0xc7),a77_0x475d4e[a77_0x4199e0(0xf1)]=a77_0x4199e0(0xcb),a77_0x475d4e['KEY_FILE_LEVEL']='file_level',a77_0x475d4e[a77_0x4199e0(0xb4)]=0xa,a77_0x475d4e[a77_0x4199e0(0x9e)]=0x2;function a77_0x30fb(_0xcd0e71,_0x585e28){const _0x38b00a=a77_0x38b0();return a77_0x30fb=function(_0x30fbb7,_0x502ab8){_0x30fbb7=_0x30fbb7-0x91;let _0x1c4072=_0x38b00a[_0x30fbb7];return _0x1c4072;},a77_0x30fb(_0xcd0e71,_0x585e28);}const TestFrameworkConstants=a77_0x475d4e;module[a77_0x4199e0(0x93)]=TestFrameworkConstants;
@@ -1 +1 @@
1
- const a74_0x328d33=a74_0x5103;function a74_0x106c(){const _0x748b42=['testData','getContext','createTestFrameworkEventPayload','logCreatedEvent','getCurrentInstanceName','KEY_HOOK_LAST_FINISHED','leDHE','split','../grpcClient','KEY_HOOKS_FINISHED','uGRCW','KEY_TEST_RERUN_NAME','trackCucumberInstance:\x20saved\x20instance\x20contextId=','base64','KEY_TEST_RESULT_AT','name','sBZCQ','removePendingHooks','KEY_EVENT_STARTED_AT','hooks','aVOgR','hook_type','KEY_LOGS','POST',',\x20state=','eUDiI','Processing\x20','4LgeCJj',',\x20storing\x20as\x20pending\x20hook','getTestUUID','KEY_HOOK_RESULT','KEY_HOOK_FAILURE_TYPE','getRef','PRE','getPendingHooks','zRsIR','EkWor','createTestFrameworkEventPayload\x20testId:\x20','getAllData','getTestFrameworksVersions','SqXnM','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','failure_reason','inspect','toString','\x20for\x20test:\x20','WFIpP','browserstackPlatformIndex','getCurrentHookState','KEY_HOOK_NAME','finishedAt','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','77617XNRQMe','debug','NONE','\x20target=','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','KEY_TEST_LOCATION','6emmrOk','./testFramework','UnhandledError','args','passed','tags','test_run_id','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','HJBlG','scopes','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','sendLogCreatedEvent','error','test','eWeiD','KSToc','\x20with\x20id\x20','KEY_CUSTOM_TAGS','../cliUtils.js','\x20with\x20result:\x20','\x20&\x20hook\x20=\x20','from','../state/hookState.js','\x20batch\x20','wZhge','KEY_TEST_META','\x20testState:\x20','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','\x20hookState:\x20','KEY_HOOK_LOGS','push','hookState','get','unknown','../../../helpers/classLogger.js','KEY_TEST_FAILURE','BoSCF','../TestInfo.js','\x20\x20and\x20args\x20=\x20','uuid','5047761egSWSw','testFrameworkState','toISOString','trackEvent','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','getProcessId','KEY_TEST_FAILURE_REASON','createContext','\x20&\x20hookState=','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','KEY_TEST_FRAMEWORK_VERSION','LOG_REPORT','Parsed\x20cucumber\x20test:\x20','UIlNG','failure_type','format','KEY_TEST_ATTACHMENTS','KEY_TEST_FAILURE_TYPE','stringify','Cucumber\x20log\x20created\x20event','getTestFrameworks','Tracked\x20cucumber\x20hook\x20event:\x20','parseCucumberTest','4845490DUkxyN','TEST','storePendingHook','KEY_TEST_ID','result','KEY_TEST_STARTED_AT','DEFAULT_TEST_RESULT','getInstance','HynJw','./constants/testFrameworkConstants.js','\x20with\x20UUID:\x20','CHxUz','ESAsS','4254971CstZRQ','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','KEY_TEST_FRAMEWORK_NAME','KEY_TEST_FILE_PATH','342396MtRUQZ','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','KEY_HOOK_FAILURE_REASON','42NQUlFL','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','startedAt','12088464mVRQCW','getCurrentTestState','trackHookEvent','testUUID','GePuF','riedm','Stored\x20pending\x20hook\x20for\x20testId:\x20','KEY_TEST_LOGS','NhCwk','KEY_TEST_CODE','getTrackedInstance','processPendingHooks','addMultipleEntries','KEY_TEST_UUID','KEY_AUTOMATE_SESSION_NAME','getThreadId','../instances/trackedInstance.js','7779431sQdTyI','../instances/testFrameworkInstance.js','location','KEY_TEST_SCOPE','addPendingHook','KEY_HOOKS_STARTED','runHooks','endedAt','rerun_name','BCLLM','Error\x20in\x20createTestFrameworkEventPayload:\x20','UAEXe','getTestDetails','100QvYfiO','KEY_TEST_ENDED_AT','\x20and\x20args\x20=\x20','Updated\x20cucumber\x20test\x20result:\x20','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','failed','pJhBj','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','resolveInstance','KEY_TEST_RESULT','zOjGF','testFrameworkVersion','failure_data','sendLogCreatedEvent:\x20for\x20testId:\x20','getId',',\x20error:\x20','../../../helpers/helper.js','trackCucumberInstance','meta','setTrackedInstance','setTestDetails','uDIvz','length','INIT_TEST','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','KEY_HOOK_LAST_STARTED','KEY_HOOK_FAILURE','pWDuI','TAQUY','eventJson','KEY_TEST_NAME','OlggI','instance'];a74_0x106c=function(){return _0x748b42;};return a74_0x106c();}(function(_0x278553,_0x105b4d){const _0x51fd92=a74_0x5103,_0x143ff1=_0x278553();while(!![]){try{const _0x3f96a9=-parseInt(_0x51fd92(0x230))/0x1*(parseInt(_0x51fd92(0x1ba))/0x2)+parseInt(_0x51fd92(0x18e))/0x3*(-parseInt(_0x51fd92(0x217))/0x4)+parseInt(_0x51fd92(0x1a5))/0x5+-parseInt(_0x51fd92(0x236))/0x6*(-parseInt(_0x51fd92(0x1b2))/0x7)+parseInt(_0x51fd92(0x1bd))/0x8+-parseInt(_0x51fd92(0x1b6))/0x9*(-parseInt(_0x51fd92(0x1db))/0xa)+parseInt(_0x51fd92(0x1ce))/0xb;if(_0x3f96a9===_0x105b4d)break;else _0x143ff1['push'](_0x143ff1['shift']());}catch(_0x65af92){_0x143ff1['push'](_0x143ff1['shift']());}}}(a74_0x106c,0xd2b96));const TestFramework=require(a74_0x328d33(0x237)),TestFrameworkState=require('../state/testFrameworkState.js'),HookState=require(a74_0x328d33(0x17c)),{createClassLogger}=require(a74_0x328d33(0x188)),TestFrameworkInstance=require(a74_0x328d33(0x1cf)),CLIUtils=require(a74_0x328d33(0x178)),TrackedInstance=require(a74_0x328d33(0x1cd)),TestFrameworkConstants=require(a74_0x328d33(0x1ae)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a74_0x328d33(0x1eb)),logger=createClassLogger('CucumberTestFramework'),{v4:uuidv4}=require(a74_0x328d33(0x18d)),util=require('util'),TestInfo=require(a74_0x328d33(0x18b)),GrpcClient=require(a74_0x328d33(0x204));function a74_0x5103(_0xc9f2d3,_0x3f82fc){const _0x106cf2=a74_0x106c();return a74_0x5103=function(_0x51038f,_0x8c8ade){_0x51038f=_0x51038f-0x178;let _0x385454=_0x106cf2[_0x51038f];return _0x385454;},a74_0x5103(_0xc9f2d3,_0x3f82fc);}class CucumberTestFramework extends TestFramework{constructor(_0x483305,_0x13e2fb,_0x358e35){super(_0x483305,_0x13e2fb,_0x358e35);}async[a74_0x328d33(0x191)](_0x5c4444,_0x289c6b,_0x591d6f={}){const _0x174420=a74_0x328d33,_0xdb9ccb={};_0xdb9ccb[_0x174420(0x1f0)]='trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found',_0xdb9ccb[_0x174420(0x215)]=function(_0x3c91eb,_0x1f22f8){return _0x3c91eb===_0x1f22f8;},_0xdb9ccb[_0x174420(0x1d9)]=function(_0x282980,_0x10ce1c){return _0x282980===_0x10ce1c;},_0xdb9ccb[_0x174420(0x22a)]=_0x174420(0x22f);const _0xb22243=_0xdb9ccb;await super[_0x174420(0x191)](_0x5c4444,_0x289c6b,_0x591d6f);const _0x3be32d=this['resolveInstance'](_0x5c4444,_0x289c6b,_0x591d6f);if(!_0x3be32d){logger[_0x174420(0x231)](_0xb22243[_0x174420(0x1f0)]);return;}try{let _0x5c4422,_0x2bba96;switch(_0x5c4444){case TestFrameworkState[_0x174420(0x1a6)]:_0x5c4422=_0x591d6f[_0x174420(0x243)],_0x2bba96=TestInfo[_0x174420(0x219)](_0x5c4422['id']);if(_0xb22243['eUDiI'](_0x289c6b,HookState[_0x174420(0x21d)])){logger[_0x174420(0x231)](_0x174420(0x225)+_0x5c4422['id']);const _0x1d9944={};_0x1d9944[_0x174420(0x1c0)]=_0x2bba96,_0x1d9944[_0x174420(0x1fc)]=_0x5c4422,_0x3be32d['addMultipleEntries'](this[_0x174420(0x1a4)](_0x1d9944)),logger[_0x174420(0x231)](_0x174420(0x192)+_0x5c4422['id']),await this[_0x174420(0x1c8)](_0x3be32d,_0x5c4422['id']);}else{if(_0xb22243[_0x174420(0x1d9)](_0x289c6b,HookState[_0x174420(0x213)])){const _0x3337e9={};_0x3337e9[_0x174420(0x1c0)]=_0x2bba96,_0x3337e9[_0x174420(0x1fc)]=_0x5c4422,_0x3be32d[_0x174420(0x1c9)](this['parseCucumberTestResult'](_0x3337e9)),await this[_0x174420(0x1c8)](_0x3be32d,_0x5c4422['id']);}}break;case TestFrameworkState[_0x174420(0x199)]:_0xb22243[_0x174420(0x215)](_0x289c6b,HookState[_0x174420(0x213)])&&await this[_0x174420(0x241)](_0x3be32d,_0x5c4444,_0x591d6f);break;default:if(CLIUtils['matchHookRegex'](_0x5c4444[_0x174420(0x228)]()[_0x174420(0x203)]('.')[0x1])){const _0x3a378b=await this[_0x174420(0x1bf)](_0x3be32d,_0x5c4444,_0x289c6b,_0x591d6f);_0x3be32d['addMultipleEntries'](_0x3a378b);}else logger[_0x174420(0x231)]('trackEvent:\x20unsupported\x20testFrameworkState='+_0x5c4444+_0x174420(0x196)+_0x289c6b);break;}}catch(_0x52342c){logger[_0x174420(0x242)](util['format'](_0xb22243[_0x174420(0x22a)],_0x5c4444,_0x289c6b,_0x591d6f[_0x174420(0x1f1)],_0x52342c));}_0x591d6f[_0x174420(0x1fb)]=_0x3be32d,await this[_0x174420(0x1d4)](_0x3be32d,_0x5c4444,_0x289c6b,_0x591d6f);}[a74_0x328d33(0x1e3)](_0x1d2a93,_0x575984,_0x5ca2c7={}){const _0x459561=a74_0x328d33,_0x3df386={};_0x3df386[_0x459561(0x244)]=function(_0x33053a,_0xd5d294){return _0x33053a===_0xd5d294;},_0x3df386[_0x459561(0x1d7)]=function(_0x2d26c0,_0x65299){return _0x2d26c0===_0x65299;};const _0x3efb61=_0x3df386;let _0x39a99b=null;return(_0x3efb61['eWeiD'](_0x1d2a93,TestFrameworkState[_0x459561(0x1f2)])||_0x3efb61[_0x459561(0x1d7)](_0x1d2a93,TestFrameworkState[_0x459561(0x232)]))&&this[_0x459561(0x1ec)](_0x1d2a93,_0x5ca2c7),_0x39a99b=TestFramework[_0x459561(0x1c7)](),_0x39a99b;}['trackCucumberInstance'](_0x45b06b,_0x553368){const _0x4b771c=a74_0x328d33,_0x555bc2=CLIUtils[_0x4b771c(0x200)](),_0x119490=TrackedInstance[_0x4b771c(0x195)](_0x555bc2);let _0xd3768f=null;logger['debug'](_0x4b771c(0x1f3)+_0x555bc2+_0x4b771c(0x214)+_0x45b06b),_0xd3768f=new TestFrameworkInstance(_0x119490,this['getTestFrameworks'](),this[_0x4b771c(0x223)](),_0x45b06b,HookState[_0x4b771c(0x232)]),TestFramework[_0x4b771c(0x1ee)](_0x119490,_0xd3768f),logger[_0x4b771c(0x231)](_0x4b771c(0x208)+_0x119490['getId']()+_0x4b771c(0x233)+_0x555bc2);}[a74_0x328d33(0x1a4)](_0x226688){const _0x2a5531=a74_0x328d33,_0x31331e={};_0x31331e[_0x2a5531(0x20c)]=_0x2a5531(0x197);const _0x63ff46=_0x31331e,{testUUID:_0x2cced2,testData:_0x5a2509}=_0x226688;if(!_0x5a2509||!_0x5a2509[_0x2a5531(0x18d)])return logger['debug'](_0x63ff46['sBZCQ']),{};const _0x5d2eb8=_0x2cced2,_0x35b379=_0x5a2509[_0x2a5531(0x18d)],_0x37d526=this[_0x2a5531(0x1a2)]()[0x0],_0x135bac=this[_0x2a5531(0x223)](),_0x238edc={[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x37d526,[TestFrameworkConstants[_0x2a5531(0x198)]]:_0x135bac[_0x37d526],[TestFrameworkConstants[_0x2a5531(0x1c4)]]:[],[TestFrameworkConstants[_0x2a5531(0x205)]]:{},[TestFrameworkConstants[_0x2a5531(0x1d3)]]:{},[TestFrameworkConstants['KEY_TEST_UUID']]:_0x5d2eb8,[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants[_0x2a5531(0x1ab)],[TestFrameworkConstants[_0x2a5531(0x1cb)]]:_0x5a2509[_0x2a5531(0x20b)]||'',[TestFrameworkConstants[_0x2a5531(0x1b5)]]:_0x5a2509['file_name']||'',[TestFrameworkConstants[_0x2a5531(0x1a8)]]:_0x35b379,[TestFrameworkConstants[_0x2a5531(0x1f9)]]:_0x5a2509[_0x2a5531(0x20b)]||'',[TestFrameworkConstants[_0x2a5531(0x235)]]:_0x5a2509[_0x2a5531(0x1d0)]||'',[TestFrameworkConstants[_0x2a5531(0x1c6)]]:_0x5a2509['body']?.['code']||null,[TestFrameworkConstants['KEY_TEST_TAGS']]:_0x5a2509[_0x2a5531(0x23b)]||[],[TestFrameworkConstants[_0x2a5531(0x1aa)]]:_0x5a2509[_0x2a5531(0x1bc)]||new Date()[_0x2a5531(0x190)](),[TestFrameworkConstants[_0x2a5531(0x1d1)]]:_0x5a2509['scopes']?.[0x0]||'',[TestFrameworkConstants['KEY_TEST_SCOPES']]:_0x5a2509[_0x2a5531(0x23f)]||[],[TestFrameworkConstants[_0x2a5531(0x207)]]:_0x5a2509['customRerunParam']?.[_0x2a5531(0x1d6)]||_0x5a2509[_0x2a5531(0x20b)]||'',[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:{},[TestFrameworkConstants[_0x2a5531(0x17f)]]:_0x5a2509[_0x2a5531(0x1ed)]||{}};TestInfo[_0x2a5531(0x1ef)](_0x35b379,_0x238edc),logger[_0x2a5531(0x231)](_0x2a5531(0x19a)+_0x5a2509['name']+_0x2a5531(0x1af)+_0x5d2eb8);const _0x2f98c2={};return _0x2f98c2[_0x35b379]=_0x238edc,_0x2f98c2;}['parseCucumberTestResult'](_0x3dccf0){const _0x5aff6b=a74_0x328d33,_0x32213e={'HynJw':_0x5aff6b(0x1b7),'aVOgR':_0x5aff6b(0x187),'dsQit':function(_0x11e1ed,_0x1dafb2){return _0x11e1ed===_0x1dafb2;},'GePuF':_0x5aff6b(0x1e0),'wZhge':_0x5aff6b(0x238),'EkWor':function(_0x3f2d69,_0x123e6d,_0x3b21de){return _0x3f2d69(_0x123e6d,_0x3b21de);},'OlggI':function(_0x309bbc,_0x31194f){return _0x309bbc>_0x31194f;}},{testUUID:_0x5aeca6,testData:_0x54049b}=_0x3dccf0;if(!_0x54049b||!_0x54049b['uuid'])return logger[_0x5aff6b(0x231)](_0x32213e[_0x5aff6b(0x1ad)]),{};const _0x10ab21=this[_0x5aff6b(0x1e3)](TestFrameworkState[_0x5aff6b(0x1a6)],HookState[_0x5aff6b(0x213)]),_0x40e5a5=_0x54049b[_0x5aff6b(0x18d)],_0x5dcb01=TestInfo[_0x5aff6b(0x1da)](_0x40e5a5)||{},_0x3f25c2=_0x5dcb01?_0x5dcb01[TestFrameworkConstants[_0x5aff6b(0x247)]]||{}:{},_0x4127cd={..._0x5dcb01,[TestFrameworkConstants[_0x5aff6b(0x1e4)]]:_0x54049b[_0x5aff6b(0x1a9)]||_0x32213e[_0x5aff6b(0x210)],[TestFrameworkConstants[_0x5aff6b(0x1dc)]]:_0x54049b[_0x5aff6b(0x22e)]||new Date()[_0x5aff6b(0x190)](),[TestFrameworkConstants[_0x5aff6b(0x20a)]]:new Date()[_0x5aff6b(0x190)](),[TestFrameworkConstants[_0x5aff6b(0x247)]]:_0x3f25c2,[TestFrameworkConstants[_0x5aff6b(0x212)]]:[],[TestFrameworkConstants[_0x5aff6b(0x17f)]]:_0x54049b['meta']||{}};_0x32213e['dsQit'](_0x54049b[_0x5aff6b(0x1a9)],_0x32213e[_0x5aff6b(0x1c1)])&&_0x54049b['failure']&&(_0x4127cd[TestFrameworkConstants[_0x5aff6b(0x19f)]]=_0x54049b[_0x5aff6b(0x19c)]||_0x32213e[_0x5aff6b(0x17e)],_0x4127cd[TestFrameworkConstants[_0x5aff6b(0x194)]]=_0x54049b['failure_reason']||'',_0x4127cd[TestFrameworkConstants[_0x5aff6b(0x189)]]=_0x54049b['failure']);const _0x5bdc9d=TestInfo[_0x5aff6b(0x1da)](_0x40e5a5)[TestFrameworkConstants[_0x5aff6b(0x19e)]]||{},_0x2badf5=_0x32213e[_0x5aff6b(0x220)](getManualUploadLogs,_0x5bdc9d,_0x10ab21[_0x5aff6b(0x222)]()[_0x5aff6b(0x186)](_0x40e5a5)[TestFrameworkConstants[_0x5aff6b(0x1ca)]]);if(_0x32213e[_0x5aff6b(0x1fa)](_0x2badf5[_0x5aff6b(0x1f1)],0x0)){const _0x5386cb=_0x4127cd[TestFrameworkConstants[_0x5aff6b(0x212)]]||[];_0x4127cd[TestFrameworkConstants[_0x5aff6b(0x212)]]=[..._0x5386cb,..._0x2badf5];}_0x54049b[_0x5aff6b(0x20f)]&&_0x32213e[_0x5aff6b(0x1fa)](_0x54049b['hooks'][_0x5aff6b(0x1f1)],0x0)&&(_0x4127cd[TestFrameworkConstants['KEY_HOOKS_FINISHED']]=_0x54049b[_0x5aff6b(0x20f)]);TestInfo[_0x5aff6b(0x1ef)](_0x40e5a5,_0x4127cd),logger['debug'](_0x5aff6b(0x1de)+_0x54049b[_0x5aff6b(0x20b)]+_0x5aff6b(0x179)+_0x54049b['result']);const _0x417eeb={};return _0x417eeb[_0x40e5a5]=_0x4127cd,_0x417eeb;}async[a74_0x328d33(0x1bf)](_0x3ec3fc,_0x384e8d,_0x24b589,_0x5859a5){const _0x27e947=a74_0x328d33,_0x44354c={'LEyis':_0x27e947(0x234),'SqXnM':function(_0x5b3a10){return _0x5b3a10();},'uGRCW':function(_0x47401d,_0x21aada){return _0x47401d in _0x21aada;},'zOjGF':function(_0xe061ea,_0x26daaa){return _0xe061ea in _0x26daaa;},'pJhBj':function(_0x350a34,_0x50f68d){return _0x350a34===_0x50f68d;},'hQJsZ':function(_0x155424,_0x20137a){return _0x155424===_0x20137a;},'TAQUY':function(_0x593036,_0x25a34c){return _0x593036>_0x25a34c;},'KSToc':'failed','ugPFh':_0x27e947(0x238),'zRsIR':_0x27e947(0x23a),'HJBlG':function(_0x4cb3e8,_0x1c8f6c){return _0x4cb3e8!==_0x1c8f6c;}},{hookData:_0x549502}=_0x5859a5;if(!_0x549502)return logger['debug'](_0x44354c['LEyis']),{};const _0x188f0b=_0x549502['uuid']||_0x44354c[_0x27e947(0x224)](uuidv4),_0x11dc3=_0x549502[_0x27e947(0x23c)],_0x1dae48=_0x384e8d[_0x27e947(0x228)]()[_0x27e947(0x203)]('.')[0x1],_0x2c7749=TestInfo[_0x27e947(0x1da)](_0x11dc3)[TestFrameworkConstants[_0x27e947(0x247)]]||{},_0x1e78c1=_0x3ec3fc[_0x27e947(0x222)]()[_0x27e947(0x186)](_0x11dc3);if(!_0x1e78c1)return logger['debug']('No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x11dc3+_0x27e947(0x218)),this['storePendingHook'](_0x3ec3fc,_0x11dc3,_0x384e8d,_0x24b589,_0x5859a5),{};let _0x112b7e=_0x1e78c1[TestFrameworkConstants[_0x27e947(0x1d3)]];!_0x112b7e&&(_0x112b7e={});!_0x44354c[_0x27e947(0x206)](_0x1dae48,_0x112b7e)&&(_0x112b7e[_0x1dae48]=[]);let _0x2c009f=_0x1e78c1[TestFrameworkConstants['KEY_HOOKS_FINISHED']];!_0x2c009f&&(_0x2c009f={});!_0x44354c[_0x27e947(0x1e5)](_0x1dae48,_0x2c009f)&&(_0x2c009f[_0x1dae48]=[]);const _0x5aee6c={[TestFrameworkConstants[_0x27e947(0x1d3)]]:_0x112b7e,[TestFrameworkConstants[_0x27e947(0x205)]]:_0x2c009f},_0x31310e={};_0x31310e[_0x11dc3]=_0x5aee6c;const _0x32b85e=_0x31310e;if(_0x44354c[_0x27e947(0x1e1)](_0x24b589,HookState[_0x27e947(0x21d)])){const _0x18b98e={[TestFrameworkConstants['KEY_HOOK_ID']]:_0x188f0b,[TestFrameworkConstants[_0x27e947(0x21a)]]:TestFrameworkConstants['DEFAULT_HOOK_RESULT'],[TestFrameworkConstants[_0x27e947(0x20e)]]:_0x549502['started_at'],[TestFrameworkConstants[_0x27e947(0x183)]]:[],[TestFrameworkConstants[_0x27e947(0x22d)]]:_0x549502[_0x27e947(0x211)],[TestFrameworkConstants[_0x27e947(0x247)]]:_0x2c7749};_0x18b98e['key']=_0x1dae48;const _0x71377a=_0x18b98e;_0x112b7e[_0x1dae48][_0x27e947(0x184)](_0x71377a),_0x32b85e[_0x11dc3][TestFrameworkConstants[_0x27e947(0x1f4)]]=_0x1dae48,logger[_0x27e947(0x231)](_0x27e947(0x1b8)+_0x1dae48+_0x27e947(0x17a)+_0x71377a+_0x27e947(0x18c)+_0x5859a5);}else{if(_0x44354c['hQJsZ'](_0x24b589,HookState[_0x27e947(0x213)])){const _0x1f2551=_0x549502[_0x27e947(0x1a9)],_0x419105=_0x112b7e[_0x1dae48]||[];logger[_0x27e947(0x231)](_0x27e947(0x23d)+_0x419105+_0x27e947(0x1dd)+_0x5859a5);if(_0x44354c[_0x27e947(0x1f7)](_0x419105[_0x27e947(0x1f1)],0x0)){const _0x3c9ab2=_0x419105['pop']();_0x44354c[_0x27e947(0x1e1)](_0x549502[_0x27e947(0x1a9)],_0x44354c[_0x27e947(0x245)])&&_0x549502[_0x27e947(0x1e7)]?(_0x3c9ab2[TestFrameworkConstants[_0x27e947(0x21b)]]=_0x549502[_0x27e947(0x19c)]||_0x44354c['ugPFh'],_0x3c9ab2[TestFrameworkConstants[_0x27e947(0x1b9)]]=_0x549502[_0x27e947(0x226)]||'',_0x3c9ab2[TestFrameworkConstants[_0x27e947(0x1f5)]]=_0x549502[_0x27e947(0x1e7)]):_0x3c9ab2[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x44354c[_0x27e947(0x21f)];_0x44354c[_0x27e947(0x23e)](_0x1f2551,TestFrameworkConstants['DEFAULT_HOOK_RESULT'])&&(_0x3c9ab2[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x1f2551);_0x3c9ab2[TestFrameworkConstants['KEY_EVENT_ENDED_AT']]=_0x549502['finished_at']||new Date()['toISOString'](),_0x3c9ab2[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x2c7749;const _0x352887=_0x3c9ab2[TestFrameworkConstants['KEY_HOOK_ID']];!_0x2c009f[_0x1dae48]&&(_0x2c009f[_0x1dae48]=[]),_0x2c009f[_0x1dae48]['push'](_0x3c9ab2),_0x32b85e[_0x11dc3][TestFrameworkConstants[_0x27e947(0x201)]]=_0x1dae48;}}}return logger[_0x27e947(0x231)](_0x27e947(0x1a3)+_0x549502[_0x27e947(0x211)]+_0x27e947(0x246)+_0x188f0b+_0x27e947(0x229)+_0x11dc3),_0x32b85e;}[a74_0x328d33(0x1fe)](_0x5a4df7){const _0x397ec3=a74_0x328d33,_0x25d0a7={};_0x25d0a7[_0x397ec3(0x1c2)]=_0x397ec3(0x209);const _0x10de5e=_0x25d0a7;try{const _0x3da17a=_0x5a4df7[_0x397ec3(0x243)]?_0x5a4df7[_0x397ec3(0x243)]['id']:_0x5a4df7['hookData']['test_run_id'],_0x70a696=_0x5a4df7[_0x397ec3(0x1fb)],_0x4ab2b8=_0x70a696[_0x397ec3(0x1fd)](),_0x38d460=_0x70a696['getAllData']()[_0x397ec3(0x186)](_0x3da17a);if(!_0x38d460)return logger[_0x397ec3(0x231)](_0x397ec3(0x1e2)+_0x3da17a),{};logger[_0x397ec3(0x231)](_0x397ec3(0x221)+_0x3da17a);const {[TestFrameworkConstants[_0x397ec3(0x1b4)]]:_0x35e1ca='',[TestFrameworkConstants[_0x397ec3(0x198)]]:_0x2c5158='',[TestFrameworkConstants[_0x397ec3(0x1aa)]]:_0x4fc9b5='',[TestFrameworkConstants[_0x397ec3(0x1dc)]]:_0x457c00=''}=_0x38d460,_0x56633d=_0x70a696[_0x397ec3(0x1be)]()['toString']()[_0x397ec3(0x203)]('.')[0x1],_0x3de49c=_0x70a696[_0x397ec3(0x22c)]()[_0x397ec3(0x228)]()['split']('.')[0x1],_0x5d69a7=global?.[_0x397ec3(0x22b)]??0x0,_0x2c83be=_0x70a696[_0x397ec3(0x21c)](),_0x40f727=Buffer[_0x397ec3(0x17b)](JSON[_0x397ec3(0x1a0)](_0x38d460))[_0x397ec3(0x228)](_0x10de5e[_0x397ec3(0x1c2)]),_0x2fc33b={'hash':_0x4ab2b8[_0x397ec3(0x1e9)](),'threadId':_0x4ab2b8[_0x397ec3(0x1cc)]()[_0x397ec3(0x228)](),'processId':_0x4ab2b8[_0x397ec3(0x193)]()[_0x397ec3(0x228)]()},_0x4ef2be={};_0x4ef2be['platformIndex']=_0x5d69a7,_0x4ef2be['testFrameworkName']=_0x35e1ca,_0x4ef2be[_0x397ec3(0x1e6)]=_0x2c5158,_0x4ef2be[_0x397ec3(0x18f)]=_0x56633d,_0x4ef2be[_0x397ec3(0x185)]=_0x3de49c,_0x4ef2be['startedAt']=_0x4fc9b5,_0x4ef2be[_0x397ec3(0x1d5)]=_0x457c00,_0x4ef2be[_0x397ec3(0x18d)]=_0x2c83be,_0x4ef2be[_0x397ec3(0x1f8)]=_0x40f727,_0x4ef2be['executionContext']=_0x2fc33b;const _0x81e46f=_0x4ef2be;return logger[_0x397ec3(0x231)](_0x397ec3(0x240)+_0x3da17a+_0x397ec3(0x180)+_0x56633d+_0x397ec3(0x182)+_0x3de49c),_0x81e46f;}catch(_0x4e3f85){return logger[_0x397ec3(0x242)](_0x397ec3(0x1d8)+util[_0x397ec3(0x19d)](_0x4e3f85)),{};}}async['sendLogCreatedEvent'](_0x338bc9,_0x33da05,_0x17e140){const _0x55aacc=a74_0x328d33,_0x4872be={'ESAsS':function(_0x238d3f,_0x7dd060,_0x31c0c0){return _0x238d3f(_0x7dd060,_0x31c0c0);},'UIlNG':function(_0x5949f8,_0xeb4563){return _0x5949f8===_0xeb4563;},'pWDuI':_0x55aacc(0x1bb),'DYnPe':function(_0x584395,_0x324c0d){return _0x584395/_0x324c0d;},'EcjGP':function(_0x4e6f9c,_0x467ae8){return _0x4e6f9c<_0x467ae8;},'leDHE':function(_0x38c3b6,_0x316d1e){return _0x38c3b6*_0x316d1e;},'CHxUz':function(_0x2741b9,_0x23dc32){return _0x2741b9+_0x23dc32;},'ceRpm':function(_0x446242,_0x371830){return _0x446242+_0x371830;},'BoSCF':_0x55aacc(0x1a1)};try{const _0x1cb661=_0x17e140[_0x55aacc(0x1c0)],_0x2befaf=_0x338bc9[_0x55aacc(0x222)]()[_0x55aacc(0x186)](_0x1cb661),{[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x25bfb9='',[TestFrameworkConstants[_0x55aacc(0x198)]]:_0xdde91f=''}=_0x2befaf,_0x200f2=TestInfo['readLogObjects'](_0x1cb661),_0x46680f=TestInfo['getTestDetails'](_0x1cb661)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x1299ef=_0x4872be[_0x55aacc(0x1b1)](getMediaArtifactsLogs,_0x46680f,_0x338bc9['getAllData']()[_0x55aacc(0x186)](_0x1cb661)[TestFrameworkConstants['KEY_TEST_UUID']]),_0x1d5956=(_0x200f2||[])['concat'](_0x1299ef||[]);if(!_0x1d5956||_0x4872be[_0x55aacc(0x19b)](_0x1d5956[_0x55aacc(0x1f1)],0x0)){logger['debug'](_0x4872be[_0x55aacc(0x1f6)]);return;}const _0x12c22b=0x28,_0xaa11ab=Math['ceil'](_0x4872be['DYnPe'](_0x1d5956['length'],_0x12c22b));for(let _0x2dcbc0=0x0;_0x4872be['EcjGP'](_0x2dcbc0,_0xaa11ab);_0x2dcbc0++){const _0x5d183b=_0x4872be[_0x55aacc(0x202)](_0x2dcbc0,_0x12c22b),_0x484edf=_0x4872be[_0x55aacc(0x1b0)](_0x5d183b,_0x12c22b),_0x2c88e5=_0x1d5956['slice'](_0x5d183b,_0x484edf),_0x21ef36={'platformIndex':global?.[_0x55aacc(0x22b)]??0x0,'logs':_0x2c88e5,'testFrameworkName':_0x25bfb9,'testFrameworkVersion':_0xdde91f,'testFrameworkState':_0x33da05[_0x55aacc(0x228)]()[_0x55aacc(0x203)]('.')[0x1]};logger['debug'](_0x55aacc(0x1e8)+_0x1cb661+_0x55aacc(0x17d)+_0x4872be[_0x55aacc(0x1b0)](_0x2dcbc0,0x1)+'/'+_0xaa11ab+'\x20payload='+util[_0x55aacc(0x227)](_0x21ef36));const _0x2e2267=await GrpcClient[_0x55aacc(0x1ac)]()[_0x55aacc(0x1ff)](_0x21ef36);logger[_0x55aacc(0x231)]('sendLogCreatedEvent:\x20for\x20testId:\x20'+_0x1cb661+_0x55aacc(0x17d)+_0x4872be['ceRpm'](_0x2dcbc0,0x1)+'/'+_0xaa11ab+'\x20response='+util[_0x55aacc(0x227)](_0x2e2267));}}catch(_0x1dbead){logger[_0x55aacc(0x242)](_0x55aacc(0x1df)+util[_0x55aacc(0x19d)](_0x1dbead));}logger[_0x55aacc(0x231)](_0x4872be[_0x55aacc(0x18a)]);}[a74_0x328d33(0x1a7)](_0x239e1e,_0x5c02ef,_0x1c704d,_0x77766c,_0x524027){const _0xc006a8=a74_0x328d33,_0x5dfc42={'testId':_0x5c02ef,'testFrameworkState':_0x1c704d,'hookState':_0x77766c,'args':_0x524027,'timestamp':new Date()[_0xc006a8(0x190)]()};_0x239e1e[_0xc006a8(0x1d2)](_0x5c02ef,_0x5dfc42),logger[_0xc006a8(0x231)](_0xc006a8(0x1c3)+_0x5c02ef+',\x20state:\x20'+_0x1c704d+',\x20hookState:\x20'+_0x77766c);}async[a74_0x328d33(0x1c8)](_0x461211,_0x557bc6){const _0x1fcd2d=a74_0x328d33,_0x253a9f={};_0x253a9f[_0x1fcd2d(0x1c5)]=function(_0x146ded,_0x5d9609){return _0x146ded>_0x5d9609;};const _0x466e95=_0x253a9f;if(!_0x461211['hasPendingHooks'](_0x557bc6))return;const _0x8e3df1=_0x461211[_0x1fcd2d(0x21e)](_0x557bc6);logger[_0x1fcd2d(0x231)](_0x1fcd2d(0x216)+_0x8e3df1[_0x1fcd2d(0x1f1)]+'\x20pending\x20hooks\x20for\x20testId:\x20'+_0x557bc6);for(const _0x1e1f77 of _0x8e3df1){try{const _0x3078aa=await this['trackHookEvent'](_0x461211,_0x1e1f77[_0x1fcd2d(0x18f)],_0x1e1f77['hookState'],_0x1e1f77[_0x1fcd2d(0x239)]);_0x3078aa&&_0x466e95[_0x1fcd2d(0x1c5)](Object['keys'](_0x3078aa)['length'],0x0)&&_0x461211[_0x1fcd2d(0x1c9)](_0x3078aa),await this[_0x1fcd2d(0x1d4)](_0x461211,_0x1e1f77[_0x1fcd2d(0x18f)],_0x1e1f77[_0x1fcd2d(0x185)],_0x1e1f77[_0x1fcd2d(0x239)]);}catch(_0x30d1c2){logger[_0x1fcd2d(0x242)](_0x1fcd2d(0x1b3)+_0x557bc6+_0x1fcd2d(0x1ea)+_0x30d1c2);}}_0x461211[_0x1fcd2d(0x20d)](_0x557bc6),logger['debug'](_0x1fcd2d(0x181)+_0x557bc6);}}module['exports']=CucumberTestFramework;
1
+ const a78_0x542386=a78_0x5681;(function(_0x5d1414,_0x595778){const _0x554caa=a78_0x5681,_0x329b07=_0x5d1414();while(!![]){try{const _0x10ed94=-parseInt(_0x554caa(0x1e6))/0x1+-parseInt(_0x554caa(0x16d))/0x2+-parseInt(_0x554caa(0x187))/0x3+-parseInt(_0x554caa(0x1bc))/0x4+-parseInt(_0x554caa(0x210))/0x5+-parseInt(_0x554caa(0x1d7))/0x6+parseInt(_0x554caa(0x196))/0x7*(parseInt(_0x554caa(0x1b2))/0x8);if(_0x10ed94===_0x595778)break;else _0x329b07['push'](_0x329b07['shift']());}catch(_0x117e2d){_0x329b07['push'](_0x329b07['shift']());}}}(a78_0xfbc3,0xdbf1c));const TestFramework=require(a78_0x542386(0x1c5)),TestFrameworkState=require(a78_0x542386(0x224)),HookState=require(a78_0x542386(0x19f)),{createClassLogger}=require(a78_0x542386(0x195)),TestFrameworkInstance=require('../instances/testFrameworkInstance.js'),CLIUtils=require(a78_0x542386(0x1a6)),TrackedInstance=require(a78_0x542386(0x20d)),TestFrameworkConstants=require(a78_0x542386(0x188)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a78_0x542386(0x20b)),logger=createClassLogger(a78_0x542386(0x229)),{v4:uuidv4}=require(a78_0x542386(0x1c3)),util=require(a78_0x542386(0x198)),TestInfo=require(a78_0x542386(0x231)),GrpcClient=require('../grpcClient');class CucumberTestFramework extends TestFramework{constructor(_0x365a4c,_0x2ed97c,_0x4d9045){super(_0x365a4c,_0x2ed97c,_0x4d9045);}async['trackEvent'](_0x52e106,_0x365fb1,_0x313958={}){const _0x16ec6a=a78_0x542386,_0x93417={};_0x93417[_0x16ec6a(0x16e)]='trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found',_0x93417[_0x16ec6a(0x208)]=function(_0x3ac2f3,_0x57076f){return _0x3ac2f3===_0x57076f;},_0x93417[_0x16ec6a(0x19d)]=function(_0x6cd95a,_0x144783){return _0x6cd95a===_0x144783;},_0x93417[_0x16ec6a(0x172)]=function(_0x164a91,_0x4b38df){return _0x164a91===_0x4b38df;},_0x93417[_0x16ec6a(0x181)]=_0x16ec6a(0x1c7);const _0x33eed6=_0x93417;await super[_0x16ec6a(0x16f)](_0x52e106,_0x365fb1,_0x313958);const _0x87d023=this[_0x16ec6a(0x1d9)](_0x52e106,_0x365fb1,_0x313958);if(!_0x87d023){logger[_0x16ec6a(0x1fc)](_0x33eed6[_0x16ec6a(0x16e)]);return;}try{let _0x3c3db4,_0x39dbea;switch(_0x52e106){case TestFrameworkState[_0x16ec6a(0x1b5)]:_0x3c3db4=_0x313958[_0x16ec6a(0x1d2)],_0x39dbea=TestInfo[_0x16ec6a(0x19c)](_0x3c3db4['id']);if(_0x33eed6[_0x16ec6a(0x208)](_0x365fb1,HookState[_0x16ec6a(0x176)])){logger['debug']('trackEvent\x20loading\x20testData\x20for\x20testId:\x20'+_0x3c3db4['id']);const _0x5f2949={};_0x5f2949['testUUID']=_0x39dbea,_0x5f2949[_0x16ec6a(0x1b1)]=_0x3c3db4,_0x87d023[_0x16ec6a(0x17c)](this['parseCucumberTest'](_0x5f2949)),logger[_0x16ec6a(0x1fc)](_0x16ec6a(0x168)+_0x3c3db4['id']),await this[_0x16ec6a(0x1b8)](_0x87d023,_0x3c3db4['id']);}else{if(_0x33eed6[_0x16ec6a(0x19d)](_0x365fb1,HookState[_0x16ec6a(0x17d)])){const _0xa2bb9f={};_0xa2bb9f['testUUID']=_0x39dbea,_0xa2bb9f[_0x16ec6a(0x1b1)]=_0x3c3db4,_0x87d023[_0x16ec6a(0x17c)](this[_0x16ec6a(0x1ba)](_0xa2bb9f)),await this['processPendingHooks'](_0x87d023,_0x3c3db4['id']);}}break;case TestFrameworkState[_0x16ec6a(0x1a5)]:_0x33eed6[_0x16ec6a(0x172)](_0x365fb1,HookState[_0x16ec6a(0x17d)])&&await this[_0x16ec6a(0x222)](_0x87d023,_0x52e106,_0x313958);break;default:if(CLIUtils['matchHookRegex'](_0x52e106[_0x16ec6a(0x166)]()['split']('.')[0x1])){const _0x44660c=await this[_0x16ec6a(0x232)](_0x87d023,_0x52e106,_0x365fb1,_0x313958);_0x87d023[_0x16ec6a(0x17c)](_0x44660c);}else logger[_0x16ec6a(0x1fc)]('trackEvent:\x20unsupported\x20testFrameworkState='+_0x52e106+_0x16ec6a(0x17f)+_0x365fb1);break;}}catch(_0x550dc8){logger['error'](util[_0x16ec6a(0x192)](_0x33eed6['xyELt'],_0x52e106,_0x365fb1,_0x313958[_0x16ec6a(0x193)],_0x550dc8));}_0x313958[_0x16ec6a(0x1ed)]=_0x87d023,await this[_0x16ec6a(0x215)](_0x87d023,_0x52e106,_0x365fb1,_0x313958);}[a78_0x542386(0x1d9)](_0xfd5e25,_0x45b196,_0x590525={}){const _0x356d21=a78_0x542386,_0x1c6cfb={};_0x1c6cfb[_0x356d21(0x1cf)]=function(_0x11c335,_0x3a8556){return _0x11c335===_0x3a8556;},_0x1c6cfb['rVNqg']=function(_0x3f6379,_0x1e9d06){return _0x3f6379===_0x1e9d06;};const _0x5ee6f1=_0x1c6cfb;let _0x4c7995=null;return(_0x5ee6f1[_0x356d21(0x1cf)](_0xfd5e25,TestFrameworkState['INIT_TEST'])||_0x5ee6f1[_0x356d21(0x1b4)](_0xfd5e25,TestFrameworkState[_0x356d21(0x21f)]))&&this['trackCucumberInstance'](_0xfd5e25,_0x590525),_0x4c7995=TestFramework[_0x356d21(0x1ce)](),_0x4c7995;}[a78_0x542386(0x171)](_0x1bdc05,_0x20da7b){const _0x307987=a78_0x542386,_0x2c6f97=CLIUtils[_0x307987(0x1cb)](),_0x231eae=TrackedInstance[_0x307987(0x20e)](_0x2c6f97);let _0x50a284=null;logger[_0x307987(0x1fc)](_0x307987(0x1f4)+_0x2c6f97+_0x307987(0x201)+_0x1bdc05),_0x50a284=new TestFrameworkInstance(_0x231eae,this['getTestFrameworks'](),this[_0x307987(0x22c)](),_0x1bdc05,HookState['NONE']),TestFramework[_0x307987(0x1b0)](_0x231eae,_0x50a284),logger[_0x307987(0x1fc)](_0x307987(0x1ff)+_0x231eae[_0x307987(0x1f8)]()+_0x307987(0x1d8)+_0x2c6f97);}[a78_0x542386(0x227)](_0x4f1698){const _0x540e01=a78_0x542386,_0x3d0540={};_0x3d0540[_0x540e01(0x1e1)]=_0x540e01(0x1b3);const _0x26375a=_0x3d0540,{testUUID:_0x520c68,testData:_0x3a7a2c}=_0x4f1698;if(!_0x3a7a2c||!_0x3a7a2c['uuid'])return logger[_0x540e01(0x1fc)](_0x26375a[_0x540e01(0x1e1)]),{};const _0xafe4be=_0x520c68,_0x431ea9=_0x3a7a2c['uuid'],_0x579557=this['getTestFrameworks']()[0x0],_0x46df1c=this[_0x540e01(0x22c)](),_0x4f1c47={[TestFrameworkConstants[_0x540e01(0x212)]]:_0x579557,[TestFrameworkConstants[_0x540e01(0x1da)]]:_0x46df1c[_0x579557],[TestFrameworkConstants['KEY_TEST_LOGS']]:[],[TestFrameworkConstants[_0x540e01(0x22b)]]:{},[TestFrameworkConstants['KEY_HOOKS_STARTED']]:{},[TestFrameworkConstants[_0x540e01(0x18c)]]:_0xafe4be,[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants[_0x540e01(0x1a8)],[TestFrameworkConstants[_0x540e01(0x1fd)]]:_0x3a7a2c[_0x540e01(0x200)]||'',[TestFrameworkConstants[_0x540e01(0x1f6)]]:_0x3a7a2c[_0x540e01(0x189)]||'',[TestFrameworkConstants['KEY_TEST_ID']]:_0x431ea9,[TestFrameworkConstants['KEY_TEST_NAME']]:_0x3a7a2c[_0x540e01(0x200)]||'',[TestFrameworkConstants[_0x540e01(0x226)]]:_0x3a7a2c['location']||'',[TestFrameworkConstants['KEY_TEST_CODE']]:_0x3a7a2c[_0x540e01(0x1af)]?.[_0x540e01(0x1d1)]||null,[TestFrameworkConstants[_0x540e01(0x1fb)]]:_0x3a7a2c[_0x540e01(0x17e)]||[],[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x3a7a2c[_0x540e01(0x1d0)]||new Date()[_0x540e01(0x1f3)](),[TestFrameworkConstants[_0x540e01(0x1a1)]]:_0x3a7a2c[_0x540e01(0x1ab)]?.[0x0]||'',[TestFrameworkConstants[_0x540e01(0x1cc)]]:_0x3a7a2c['scopes']||[],[TestFrameworkConstants[_0x540e01(0x219)]]:_0x3a7a2c['customRerunParam']?.['rerun_name']||_0x3a7a2c[_0x540e01(0x200)]||'',[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:{},[TestFrameworkConstants[_0x540e01(0x16a)]]:_0x3a7a2c[_0x540e01(0x1a4)]||{}};TestInfo[_0x540e01(0x18a)](_0x431ea9,_0x4f1c47),logger[_0x540e01(0x1fc)](_0x540e01(0x1dd)+_0x3a7a2c[_0x540e01(0x200)]+'\x20with\x20UUID:\x20'+_0xafe4be);const _0x40e3cb={};return _0x40e3cb[_0x431ea9]=_0x4f1c47,_0x40e3cb;}[a78_0x542386(0x1ba)](_0x2056cd){const _0x2736c5=a78_0x542386,_0x4f19fe={'jxWwk':_0x2736c5(0x1ac),'Eswnf':'unknown','JiPtK':function(_0x165d0a,_0x3679be){return _0x165d0a===_0x3679be;},'CNeql':_0x2736c5(0x21e),'uJHfK':_0x2736c5(0x20f),'PBwTr':function(_0x105562,_0x4fa102,_0x34233f){return _0x105562(_0x4fa102,_0x34233f);},'sDYIK':function(_0x5a15c7,_0x46a1df){return _0x5a15c7>_0x46a1df;}},{testUUID:_0x1c8750,testData:_0x95344a}=_0x2056cd;if(!_0x95344a||!_0x95344a[_0x2736c5(0x1c3)])return logger[_0x2736c5(0x1fc)](_0x4f19fe[_0x2736c5(0x18d)]),{};const _0x33a31a=this[_0x2736c5(0x1d9)](TestFrameworkState['TEST'],HookState[_0x2736c5(0x17d)]),_0x263d84=_0x95344a[_0x2736c5(0x1c3)],_0x38980c=TestInfo[_0x2736c5(0x22e)](_0x263d84)||{},_0x5f1154=_0x38980c?_0x38980c[TestFrameworkConstants[_0x2736c5(0x213)]]||{}:{},_0x2b01c3={..._0x38980c,[TestFrameworkConstants['KEY_TEST_RESULT']]:_0x95344a[_0x2736c5(0x194)]||_0x4f19fe[_0x2736c5(0x214)],[TestFrameworkConstants[_0x2736c5(0x1be)]]:_0x95344a[_0x2736c5(0x18f)]||new Date()[_0x2736c5(0x1f3)](),[TestFrameworkConstants['KEY_TEST_RESULT_AT']]:new Date()['toISOString'](),[TestFrameworkConstants[_0x2736c5(0x213)]]:_0x5f1154,[TestFrameworkConstants[_0x2736c5(0x209)]]:[],[TestFrameworkConstants['KEY_TEST_META']]:_0x95344a[_0x2736c5(0x1a4)]||{}};_0x4f19fe['JiPtK'](_0x95344a[_0x2736c5(0x194)],_0x4f19fe[_0x2736c5(0x190)])&&_0x95344a[_0x2736c5(0x20c)]&&(_0x2b01c3[TestFrameworkConstants[_0x2736c5(0x1e7)]]=_0x95344a[_0x2736c5(0x228)]||_0x4f19fe[_0x2736c5(0x1d4)],_0x2b01c3[TestFrameworkConstants[_0x2736c5(0x1c0)]]=_0x95344a[_0x2736c5(0x1f2)]||'',_0x2b01c3[TestFrameworkConstants[_0x2736c5(0x178)]]=_0x95344a[_0x2736c5(0x20c)]);const _0x12fd86=TestInfo[_0x2736c5(0x22e)](_0x263d84)[TestFrameworkConstants[_0x2736c5(0x20a)]]||{},_0x187c11=_0x4f19fe['PBwTr'](getManualUploadLogs,_0x12fd86,_0x33a31a[_0x2736c5(0x1f1)]()['get'](_0x263d84)[TestFrameworkConstants[_0x2736c5(0x18c)]]);if(_0x4f19fe[_0x2736c5(0x1bb)](_0x187c11[_0x2736c5(0x193)],0x0)){const _0x15eb6e=_0x2b01c3[TestFrameworkConstants[_0x2736c5(0x209)]]||[];_0x2b01c3[TestFrameworkConstants[_0x2736c5(0x209)]]=[..._0x15eb6e,..._0x187c11];}_0x95344a[_0x2736c5(0x1d3)]&&_0x4f19fe[_0x2736c5(0x1bb)](_0x95344a[_0x2736c5(0x1d3)][_0x2736c5(0x193)],0x0)&&(_0x2b01c3[TestFrameworkConstants['KEY_HOOKS_FINISHED']]=_0x95344a[_0x2736c5(0x1d3)]);TestInfo[_0x2736c5(0x18a)](_0x263d84,_0x2b01c3),logger[_0x2736c5(0x1fc)](_0x2736c5(0x16c)+_0x95344a[_0x2736c5(0x200)]+_0x2736c5(0x1ad)+_0x95344a[_0x2736c5(0x194)]);const _0x13aa60={};return _0x13aa60[_0x263d84]=_0x2b01c3,_0x13aa60;}async[a78_0x542386(0x232)](_0x72991a,_0x7694a4,_0x93f38a,_0x23b547){const _0x268c83=a78_0x542386,_0x2be2d4={'sWeLA':_0x268c83(0x216),'RfpLy':function(_0x7eb9d8){return _0x7eb9d8();},'MtjBh':function(_0x35e9a8,_0x1564a9){return _0x35e9a8 in _0x1564a9;},'DFFjZ':function(_0x2ae1b9,_0x1dede3){return _0x2ae1b9===_0x1dede3;},'NloYd':function(_0x5bd4b9,_0x39f677){return _0x5bd4b9===_0x39f677;},'vrxge':function(_0x3552f0,_0x3b9326){return _0x3552f0>_0x3b9326;},'UZauV':function(_0x3e5ab6,_0x4dc4d6){return _0x3e5ab6===_0x4dc4d6;},'pAiIm':'failed','aBlTd':'UnhandledError','ksFhk':_0x268c83(0x206),'TflAc':function(_0x251db1,_0x2390e4){return _0x251db1!==_0x2390e4;}},{hookData:_0x27016f}=_0x23b547;if(!_0x27016f)return logger['debug'](_0x2be2d4[_0x268c83(0x1db)]),{};const _0x185447=_0x27016f[_0x268c83(0x1c3)]||_0x2be2d4[_0x268c83(0x1f0)](uuidv4),_0x474ca6=_0x27016f[_0x268c83(0x1df)],_0x3b5921=_0x7694a4[_0x268c83(0x166)]()['split']('.')[0x1],_0x491012=TestInfo['getTestDetails'](_0x474ca6)[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{},_0x410220=_0x72991a['getAllData']()[_0x268c83(0x183)](_0x474ca6);if(!_0x410220)return logger[_0x268c83(0x1fc)](_0x268c83(0x21b)+_0x474ca6+',\x20storing\x20as\x20pending\x20hook'),this['storePendingHook'](_0x72991a,_0x474ca6,_0x7694a4,_0x93f38a,_0x23b547),{};let _0x135e04=_0x410220[TestFrameworkConstants['KEY_HOOKS_STARTED']];!_0x135e04&&(_0x135e04={});!_0x2be2d4[_0x268c83(0x1bf)](_0x3b5921,_0x135e04)&&(_0x135e04[_0x3b5921]=[]);let _0x101d7d=_0x410220[TestFrameworkConstants[_0x268c83(0x22b)]];!_0x101d7d&&(_0x101d7d={});!_0x2be2d4[_0x268c83(0x1bf)](_0x3b5921,_0x101d7d)&&(_0x101d7d[_0x3b5921]=[]);const _0x36afdf={[TestFrameworkConstants[_0x268c83(0x1c9)]]:_0x135e04,[TestFrameworkConstants[_0x268c83(0x22b)]]:_0x101d7d},_0x56bfd2={};_0x56bfd2[_0x474ca6]=_0x36afdf;const _0x50766e=_0x56bfd2;if(_0x2be2d4['DFFjZ'](_0x93f38a,HookState['PRE'])){const _0x926d30={[TestFrameworkConstants[_0x268c83(0x220)]]:_0x185447,[TestFrameworkConstants[_0x268c83(0x204)]]:TestFrameworkConstants[_0x268c83(0x182)],[TestFrameworkConstants['KEY_EVENT_STARTED_AT']]:_0x27016f[_0x268c83(0x1dc)],[TestFrameworkConstants[_0x268c83(0x1e0)]]:[],[TestFrameworkConstants[_0x268c83(0x1e3)]]:_0x27016f[_0x268c83(0x1bd)],[TestFrameworkConstants[_0x268c83(0x213)]]:_0x491012};_0x926d30[_0x268c83(0x1f5)]=_0x3b5921;const _0x39cfda=_0x926d30;_0x135e04[_0x3b5921][_0x268c83(0x1d5)](_0x39cfda),_0x50766e[_0x474ca6][TestFrameworkConstants[_0x268c83(0x184)]]=_0x3b5921,logger[_0x268c83(0x1fc)]('trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20'+_0x3b5921+_0x268c83(0x1c2)+_0x39cfda+_0x268c83(0x225)+_0x23b547);}else{if(_0x2be2d4['NloYd'](_0x93f38a,HookState[_0x268c83(0x17d)])){const _0x511cd4=_0x27016f['result'],_0x2ada7d=_0x135e04[_0x3b5921]||[];logger[_0x268c83(0x1fc)]('trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20'+_0x2ada7d+_0x268c83(0x1f9)+_0x23b547);if(_0x2be2d4[_0x268c83(0x1aa)](_0x2ada7d[_0x268c83(0x193)],0x0)){const _0x1ad95a=_0x2ada7d['pop']();_0x2be2d4['UZauV'](_0x27016f[_0x268c83(0x194)],_0x2be2d4['pAiIm'])&&_0x27016f['failure_data']?(_0x1ad95a[TestFrameworkConstants['KEY_HOOK_FAILURE_TYPE']]=_0x27016f[_0x268c83(0x228)]||_0x2be2d4[_0x268c83(0x1fa)],_0x1ad95a[TestFrameworkConstants[_0x268c83(0x170)]]=_0x27016f[_0x268c83(0x1f2)]||'',_0x1ad95a[TestFrameworkConstants[_0x268c83(0x199)]]=_0x27016f[_0x268c83(0x1ae)]):_0x1ad95a[TestFrameworkConstants[_0x268c83(0x204)]]=_0x2be2d4[_0x268c83(0x1c8)];_0x2be2d4[_0x268c83(0x19e)](_0x511cd4,TestFrameworkConstants[_0x268c83(0x182)])&&(_0x1ad95a[TestFrameworkConstants[_0x268c83(0x204)]]=_0x511cd4);_0x1ad95a[TestFrameworkConstants['KEY_EVENT_ENDED_AT']]=_0x27016f[_0x268c83(0x1e8)]||new Date()[_0x268c83(0x1f3)](),_0x1ad95a[TestFrameworkConstants[_0x268c83(0x213)]]=_0x491012;const _0x138b44=_0x1ad95a[TestFrameworkConstants['KEY_HOOK_ID']];!_0x101d7d[_0x3b5921]&&(_0x101d7d[_0x3b5921]=[]),_0x101d7d[_0x3b5921]['push'](_0x1ad95a),_0x50766e[_0x474ca6][TestFrameworkConstants[_0x268c83(0x1b7)]]=_0x3b5921;}}}return logger['debug'](_0x268c83(0x16b)+_0x27016f['hook_type']+_0x268c83(0x205)+_0x185447+_0x268c83(0x169)+_0x474ca6),_0x50766e;}[a78_0x542386(0x17b)](_0x3ec793){const _0x3dbfaf=a78_0x542386,_0x47e9f5={};_0x47e9f5[_0x3dbfaf(0x1ea)]=_0x3dbfaf(0x211);const _0xad96a2=_0x47e9f5;try{const _0x197fc8=_0x3ec793[_0x3dbfaf(0x1d2)]?_0x3ec793['test']['id']:_0x3ec793[_0x3dbfaf(0x230)][_0x3dbfaf(0x1df)],_0x4a4f50=_0x3ec793[_0x3dbfaf(0x1ed)],_0x2bda57=_0x4a4f50[_0x3dbfaf(0x218)](),_0xcc6ab0=_0x4a4f50[_0x3dbfaf(0x1f1)]()[_0x3dbfaf(0x183)](_0x197fc8);if(!_0xcc6ab0)return logger['debug'](_0x3dbfaf(0x1ca)+_0x197fc8),{};logger[_0x3dbfaf(0x1fc)]('createTestFrameworkEventPayload\x20testId:\x20'+_0x197fc8);const {[TestFrameworkConstants[_0x3dbfaf(0x212)]]:_0x11af24='',[TestFrameworkConstants[_0x3dbfaf(0x1da)]]:_0x3a9b04='',[TestFrameworkConstants[_0x3dbfaf(0x1b6)]]:_0x1a6fbc='',[TestFrameworkConstants[_0x3dbfaf(0x1be)]]:_0x58b77c=''}=_0xcc6ab0,_0xe4d923=_0x4a4f50[_0x3dbfaf(0x175)]()[_0x3dbfaf(0x166)]()[_0x3dbfaf(0x191)]('.')[0x1],_0x345b1e=_0x4a4f50[_0x3dbfaf(0x1ec)]()['toString']()[_0x3dbfaf(0x191)]('.')[0x1],_0x1040de=global?.[_0x3dbfaf(0x17a)]??0x0,_0x1141b3=_0x4a4f50[_0x3dbfaf(0x221)](),_0x4b1ee3=Buffer['from'](JSON[_0x3dbfaf(0x1e4)](_0xcc6ab0))[_0x3dbfaf(0x166)](_0xad96a2['CedpO']),_0x5afc42={'hash':_0x2bda57[_0x3dbfaf(0x1f8)](),'threadId':_0x2bda57['getThreadId']()[_0x3dbfaf(0x166)](),'processId':_0x2bda57[_0x3dbfaf(0x1a3)]()['toString']()},_0x4aa7d8={};_0x4aa7d8[_0x3dbfaf(0x21a)]=_0x1040de,_0x4aa7d8['testFrameworkName']=_0x11af24,_0x4aa7d8[_0x3dbfaf(0x1ee)]=_0x3a9b04,_0x4aa7d8[_0x3dbfaf(0x18e)]=_0xe4d923,_0x4aa7d8[_0x3dbfaf(0x19a)]=_0x345b1e,_0x4aa7d8[_0x3dbfaf(0x1d0)]=_0x1a6fbc,_0x4aa7d8[_0x3dbfaf(0x19b)]=_0x58b77c,_0x4aa7d8[_0x3dbfaf(0x1c3)]=_0x1141b3,_0x4aa7d8[_0x3dbfaf(0x1a9)]=_0x4b1ee3,_0x4aa7d8[_0x3dbfaf(0x1a2)]=_0x5afc42;const _0x1c7964=_0x4aa7d8;return logger[_0x3dbfaf(0x1fc)](_0x3dbfaf(0x1a7)+_0x197fc8+_0x3dbfaf(0x223)+_0xe4d923+'\x20hookState:\x20'+_0x345b1e),_0x1c7964;}catch(_0x64b301){return logger[_0x3dbfaf(0x1eb)](_0x3dbfaf(0x22d)+util[_0x3dbfaf(0x192)](_0x64b301)),{};}}async[a78_0x542386(0x222)](_0x4ca50c,_0x57b29a,_0x3959d5){const _0x128a70=a78_0x542386,_0x3fed19={'DobHj':function(_0x52b2f1,_0x47d28a,_0x3a3212){return _0x52b2f1(_0x47d28a,_0x3a3212);},'PLYHw':function(_0x3e5ad4,_0x3791f6){return _0x3e5ad4===_0x3791f6;},'idMpE':_0x128a70(0x1f7),'yZpNn':function(_0x4f350f,_0x280dbc){return _0x4f350f/_0x280dbc;},'MiITt':function(_0x500da4,_0x451881){return _0x500da4<_0x451881;},'mHZMJ':function(_0x3e1e14,_0x4d1977){return _0x3e1e14*_0x4d1977;},'lqbpP':function(_0x4ca9c3,_0x3ea818){return _0x4ca9c3+_0x3ea818;},'SYCTw':function(_0x14de8b,_0x532aad){return _0x14de8b+_0x532aad;},'jcINX':_0x128a70(0x167)};try{const _0x3e8762=_0x3959d5[_0x128a70(0x1c4)],_0x407091=_0x4ca50c[_0x128a70(0x1f1)]()[_0x128a70(0x183)](_0x3e8762),{[TestFrameworkConstants[_0x128a70(0x212)]]:_0x4d4eee='',[TestFrameworkConstants[_0x128a70(0x1da)]]:_0x39a635=''}=_0x407091,_0x95046a=TestInfo['readLogObjects'](_0x3e8762),_0x51b9ad=TestInfo[_0x128a70(0x22e)](_0x3e8762)[TestFrameworkConstants[_0x128a70(0x20a)]]||{},_0x411e47=_0x3fed19[_0x128a70(0x1e2)](getMediaArtifactsLogs,_0x51b9ad,_0x4ca50c[_0x128a70(0x1f1)]()['get'](_0x3e8762)[TestFrameworkConstants[_0x128a70(0x18c)]]),_0x28e3f5=(_0x95046a||[])['concat'](_0x411e47||[]);if(!_0x28e3f5||_0x3fed19[_0x128a70(0x173)](_0x28e3f5['length'],0x0)){logger[_0x128a70(0x1fc)](_0x3fed19[_0x128a70(0x179)]);return;}const _0x1788ce=0x28,_0x4f068f=Math[_0x128a70(0x22f)](_0x3fed19[_0x128a70(0x1ef)](_0x28e3f5[_0x128a70(0x193)],_0x1788ce));for(let _0x67f22=0x0;_0x3fed19['MiITt'](_0x67f22,_0x4f068f);_0x67f22++){const _0x2ed351=_0x3fed19[_0x128a70(0x177)](_0x67f22,_0x1788ce),_0x5a30a3=_0x3fed19[_0x128a70(0x1c6)](_0x2ed351,_0x1788ce),_0x2bc84e=_0x28e3f5[_0x128a70(0x197)](_0x2ed351,_0x5a30a3),_0xcd2968={'platformIndex':global?.[_0x128a70(0x17a)]??0x0,'logs':_0x2bc84e,'testFrameworkName':_0x4d4eee,'testFrameworkVersion':_0x39a635,'testFrameworkState':_0x57b29a[_0x128a70(0x166)]()[_0x128a70(0x191)]('.')[0x1]};logger[_0x128a70(0x1fc)](_0x128a70(0x1fe)+_0x3e8762+_0x128a70(0x22a)+_0x3fed19[_0x128a70(0x1e9)](_0x67f22,0x1)+'/'+_0x4f068f+_0x128a70(0x185)+util['inspect'](_0xcd2968));const _0x1c0ca=await GrpcClient[_0x128a70(0x186)]()['logCreatedEvent'](_0xcd2968);logger[_0x128a70(0x1fc)]('sendLogCreatedEvent:\x20for\x20testId:\x20'+_0x3e8762+_0x128a70(0x22a)+_0x3fed19[_0x128a70(0x1c6)](_0x67f22,0x1)+'/'+_0x4f068f+_0x128a70(0x1de)+util[_0x128a70(0x18b)](_0x1c0ca));}}catch(_0xb55708){logger[_0x128a70(0x1eb)](_0x128a70(0x202)+util['format'](_0xb55708));}logger['debug'](_0x3fed19[_0x128a70(0x1cd)]);}[a78_0x542386(0x21c)](_0x232785,_0x569ca3,_0x513917,_0x485b94,_0x3d0946){const _0x24ebff=a78_0x542386,_0x4ef4ba={'testId':_0x569ca3,'testFrameworkState':_0x513917,'hookState':_0x485b94,'args':_0x3d0946,'timestamp':new Date()[_0x24ebff(0x1f3)]()};_0x232785[_0x24ebff(0x207)](_0x569ca3,_0x4ef4ba),logger['debug']('Stored\x20pending\x20hook\x20for\x20testId:\x20'+_0x569ca3+_0x24ebff(0x217)+_0x513917+',\x20hookState:\x20'+_0x485b94);}async[a78_0x542386(0x1b8)](_0x48468e,_0x486429){const _0x1f8ef3=a78_0x542386,_0x3451f4={};_0x3451f4[_0x1f8ef3(0x21d)]=function(_0x9e9851,_0x2aceac){return _0x9e9851>_0x2aceac;};const _0x10c9de=_0x3451f4;if(!_0x48468e[_0x1f8ef3(0x1e5)](_0x486429))return;const _0x2fc758=_0x48468e[_0x1f8ef3(0x1c1)](_0x486429);logger[_0x1f8ef3(0x1fc)](_0x1f8ef3(0x1a0)+_0x2fc758[_0x1f8ef3(0x193)]+'\x20pending\x20hooks\x20for\x20testId:\x20'+_0x486429);for(const _0x2abaf2 of _0x2fc758){try{const _0x3d9b77=await this['trackHookEvent'](_0x48468e,_0x2abaf2[_0x1f8ef3(0x18e)],_0x2abaf2[_0x1f8ef3(0x19a)],_0x2abaf2[_0x1f8ef3(0x180)]);_0x3d9b77&&_0x10c9de['GwUpk'](Object[_0x1f8ef3(0x203)](_0x3d9b77)[_0x1f8ef3(0x193)],0x0)&&_0x48468e[_0x1f8ef3(0x17c)](_0x3d9b77),await this[_0x1f8ef3(0x215)](_0x48468e,_0x2abaf2[_0x1f8ef3(0x18e)],_0x2abaf2[_0x1f8ef3(0x19a)],_0x2abaf2[_0x1f8ef3(0x180)]);}catch(_0x2d1e4e){logger[_0x1f8ef3(0x1eb)]('Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20'+_0x486429+_0x1f8ef3(0x1b9)+_0x2d1e4e);}}_0x48468e[_0x1f8ef3(0x1d6)](_0x486429),logger[_0x1f8ef3(0x1fc)]('Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20'+_0x486429);}}function a78_0x5681(_0x55ac11,_0x402fb6){const _0xfbc3bc=a78_0xfbc3();return a78_0x5681=function(_0x568103,_0x26eea8){_0x568103=_0x568103-0x166;let _0x5c1a05=_0xfbc3bc[_0x568103];return _0x5c1a05;},a78_0x5681(_0x55ac11,_0x402fb6);}module[a78_0x542386(0x174)]=CucumberTestFramework;function a78_0xfbc3(){const _0x39e5ed=['getInstance','3357897byrNNW','./constants/testFrameworkConstants.js','file_name','setTestDetails','inspect','KEY_TEST_UUID','jxWwk','testFrameworkState','finishedAt','CNeql','split','format','length','result','../../../helpers/classLogger.js','7LZFNez','slice','util','KEY_HOOK_FAILURE','hookState','endedAt','getTestUUID','uKHDV','TflAc','../state/hookState.js','Processing\x20','KEY_TEST_SCOPE','executionContext','getProcessId','meta','LOG_REPORT','../cliUtils.js','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','DEFAULT_TEST_RESULT','eventJson','vrxge','scopes','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','\x20with\x20result:\x20','failure_data','body','setTrackedInstance','testData','41151568WarJdA','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','rVNqg','TEST','KEY_TEST_STARTED_AT','KEY_HOOK_LAST_FINISHED','processPendingHooks',',\x20error:\x20','parseCucumberTestResult','sDYIK','1220144FfNenO','hook_type','KEY_TEST_ENDED_AT','MtjBh','KEY_TEST_FAILURE_REASON','getPendingHooks','\x20&\x20hook\x20=\x20','uuid','testUUID','./testFramework','lqbpP','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','ksFhk','KEY_HOOKS_STARTED','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','getCurrentInstanceName','KEY_TEST_SCOPES','jcINX','getTrackedInstance','NbifC','startedAt','code','test','hooks','uJHfK','push','removePendingHooks','2686224bnMpCL','\x20target=','resolveInstance','KEY_TEST_FRAMEWORK_VERSION','sWeLA','started_at','Parsed\x20cucumber\x20test:\x20','\x20response=','test_run_id','KEY_HOOK_LOGS','OkZlX','DobHj','KEY_HOOK_NAME','stringify','hasPendingHooks','1716453SbAGGM','KEY_TEST_FAILURE_TYPE','finished_at','SYCTw','CedpO','error','getCurrentHookState','instance','testFrameworkVersion','yZpNn','RfpLy','getAllData','failure_reason','toISOString','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','key','KEY_TEST_FILE_PATH','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','getId','\x20and\x20args\x20=\x20','aBlTd','KEY_TEST_TAGS','debug','KEY_AUTOMATE_SESSION_NAME','sendLogCreatedEvent:\x20for\x20testId:\x20','trackCucumberInstance:\x20saved\x20instance\x20contextId=','name',',\x20state=','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','keys','KEY_HOOK_RESULT','\x20with\x20id\x20','passed','addPendingHook','vdlbk','KEY_LOGS','KEY_TEST_ATTACHMENTS','../../../helpers/helper.js','failure','../instances/trackedInstance.js','createContext','UnhandledError','2912545qsQWXw','base64','KEY_TEST_FRAMEWORK_NAME','KEY_CUSTOM_TAGS','Eswnf','runHooks','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event',',\x20state:\x20','getContext','KEY_TEST_RERUN_NAME','platformIndex','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','storePendingHook','GwUpk','failed','NONE','KEY_HOOK_ID','getRef','sendLogCreatedEvent','\x20testState:\x20','../state/testFrameworkState.js','\x20\x20and\x20args\x20=\x20','KEY_TEST_LOCATION','parseCucumberTest','failure_type','CucumberTestFramework','\x20batch\x20','KEY_HOOKS_FINISHED','getTestFrameworksVersions','Error\x20in\x20createTestFrameworkEventPayload:\x20','getTestDetails','ceil','hookData','../TestInfo.js','trackHookEvent','toString','Cucumber\x20log\x20created\x20event','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','\x20for\x20test:\x20','KEY_TEST_META','Tracked\x20cucumber\x20hook\x20event:\x20','Updated\x20cucumber\x20test\x20result:\x20','144106eRHLjT','fjUYo','trackEvent','KEY_HOOK_FAILURE_REASON','trackCucumberInstance','WlAqw','PLYHw','exports','getCurrentTestState','PRE','mHZMJ','KEY_TEST_FAILURE','idMpE','browserstackPlatformIndex','createTestFrameworkEventPayload','addMultipleEntries','POST','tags','\x20&\x20hookState=','args','xyELt','DEFAULT_HOOK_RESULT','get','KEY_HOOK_LAST_STARTED','\x20payload='];a78_0xfbc3=function(){return _0x39e5ed;};return a78_0xfbc3();}