browserstack-node-sdk 1.53.0 → 1.53.1

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 (193) 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 +1 -1
  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/nightwatch/command.js +1 -1
  79. package/src/bin/playwright/accessibility-helper.js +1 -1
  80. package/src/bin/playwright/command.js +1 -1
  81. package/src/bin/playwright/globalSetup.js +1 -1
  82. package/src/bin/playwright/mock-process.js +1 -1
  83. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  84. package/src/bin/playwright/patches.js +1 -1
  85. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  86. package/src/bin/playwright/reporter/reporter.js +1 -1
  87. package/src/bin/playwright/reporter/test-details.js +1 -1
  88. package/src/bin/playwright/sessionDetails.js +1 -1
  89. package/src/bin/puppeteer/patches.js +1 -1
  90. package/src/bin/puppeteer/sessionDetails.js +1 -1
  91. package/src/bin/puppeteer/test.setup.js +1 -1
  92. package/src/bin/runner.js +1 -1
  93. package/src/bin/setup.js +1 -1
  94. package/src/bin/test-runner/index.js +1 -1
  95. package/src/bin/test-runner/runTest.js +1 -1
  96. package/src/bin/test-runner/testWorker.js +1 -1
  97. package/src/bin/utils/apiUtilityMethods.js +1 -1
  98. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  99. package/src/bin/utils/constants.js +1 -1
  100. package/src/bin/utils/log4jsAppender.js +1 -1
  101. package/src/bin/utils/logPatcher.js +1 -1
  102. package/src/bin/utils/logReportingAPI.js +1 -1
  103. package/src/bin/utils/playwright-patcher.js +1 -1
  104. package/src/bin/utils/puppeteer-patcher.js +1 -1
  105. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  106. package/src/bin/utils/sharedUtils.js +1 -1
  107. package/src/bin/v2/TestInfo.js +1 -1
  108. package/src/bin/v2/browserstackCLI.js +1 -1
  109. package/src/bin/v2/cliUtils.js +1 -1
  110. package/src/bin/v2/customTagManager.js +1 -1
  111. package/src/bin/v2/eventDispatcher.js +1 -1
  112. package/src/bin/v2/framework/automationFramework.js +1 -1
  113. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  114. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  115. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  116. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  117. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  118. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  119. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  120. package/src/bin/v2/framework/testFramework.js +1 -1
  121. package/src/bin/v2/grpcClient.js +1 -1
  122. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  123. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  124. package/src/bin/v2/instances/trackedContext.js +1 -1
  125. package/src/bin/v2/instances/trackedInstance.js +1 -1
  126. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  127. package/src/bin/v2/modules/baseModule.js +1 -1
  128. package/src/bin/v2/modules/loadTestModule.js +1 -1
  129. package/src/bin/v2/modules/observabilityModule.js +1 -1
  130. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  131. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  132. package/src/bin/v2/modules/testhubModule.js +1 -1
  133. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  134. package/src/bin/v2/state/hookState.js +1 -1
  135. package/src/bin/v2/state/testFrameworkState.js +1 -1
  136. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  137. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  138. package/src/bin/v2/utils/jest-utils.js +1 -1
  139. package/src/bin/vanilla-js/command.js +1 -1
  140. package/src/browserStackSdk.js +1 -1
  141. package/src/helpers/BrowserStackSetup.js +1 -1
  142. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  143. package/src/helpers/accessibility-automation/constants.js +1 -1
  144. package/src/helpers/accessibility-automation/helper.js +1 -1
  145. package/src/helpers/accessibility-automation/scripts.js +1 -1
  146. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  147. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  148. package/src/helpers/ats/constants.js +1 -1
  149. package/src/helpers/ats/helper.js +1 -1
  150. package/src/helpers/capsMapping.js +1 -1
  151. package/src/helpers/central-scanner/constants.js +1 -1
  152. package/src/helpers/central-scanner/helpers.js +1 -1
  153. package/src/helpers/classLogger.js +1 -1
  154. package/src/helpers/globals.js +1 -1
  155. package/src/helpers/helper.js +1 -1
  156. package/src/helpers/logger.js +1 -1
  157. package/src/helpers/metadata.js +1 -1
  158. package/src/helpers/patchHelper.js +1 -1
  159. package/src/helpers/patchHelpers.js +1 -1
  160. package/src/helpers/percy/Percy.js +1 -1
  161. package/src/helpers/percy/PercyBinary.js +1 -1
  162. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  163. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  164. package/src/helpers/percy/PercySDK.js +1 -1
  165. package/src/helpers/percy/index.js +1 -1
  166. package/src/helpers/percy/utils.js +1 -1
  167. package/src/helpers/performance/constants.js +1 -1
  168. package/src/helpers/performance/performance-tester.js +1 -1
  169. package/src/helpers/playwright-helper.js +1 -1
  170. package/src/helpers/processHelper.js +1 -1
  171. package/src/helpers/puppeteer-helper.js +1 -1
  172. package/src/helpers/request-spy.js +1 -1
  173. package/src/helpers/setKeepAlive.js +1 -1
  174. package/src/helpers/test-observability/constants.js +1 -1
  175. package/src/helpers/test-observability/error-handler.js +1 -1
  176. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  177. package/src/helpers/test-observability/sessionHandler.js +1 -1
  178. package/src/helpers/test-observability/utils.js +1 -1
  179. package/src/helpers/test-orchestration/constants.js +1 -1
  180. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  181. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  182. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  183. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  184. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  185. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  186. package/src/helpers/testhub/constants.js +1 -1
  187. package/src/helpers/testhub/testhubHandler.js +1 -1
  188. package/src/helpers/testhub/utils.js +1 -1
  189. package/src/helpers/timeoutPromise.js +1 -1
  190. package/src/helpers/utilities.js +1 -1
  191. package/src/helpers/w3cMapping.js +1 -1
  192. package/src/hubAllocationMethods.js +1 -1
  193. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a68_0x450786=a68_0x49d1;(function(_0x56d2ef,_0x43dc4a){const _0x3d2e33=a68_0x49d1,_0x1ebe3d=_0x56d2ef();while(!![]){try{const _0x37dc74=parseInt(_0x3d2e33(0x144))/0x1*(-parseInt(_0x3d2e33(0x1ca))/0x2)+-parseInt(_0x3d2e33(0x19d))/0x3*(parseInt(_0x3d2e33(0x11f))/0x4)+parseInt(_0x3d2e33(0x1b7))/0x5*(-parseInt(_0x3d2e33(0x1df))/0x6)+parseInt(_0x3d2e33(0x105))/0x7*(-parseInt(_0x3d2e33(0x137))/0x8)+parseInt(_0x3d2e33(0x16d))/0x9+-parseInt(_0x3d2e33(0x102))/0xa*(parseInt(_0x3d2e33(0x1a9))/0xb)+parseInt(_0x3d2e33(0x122))/0xc;if(_0x37dc74===_0x43dc4a)break;else _0x1ebe3d['push'](_0x1ebe3d['shift']());}catch(_0x1391e9){_0x1ebe3d['push'](_0x1ebe3d['shift']());}}}(a68_0x4d01,0x88b16));const fs=require('fs'),os=require('os'),url=require('url'),path=require(a68_0x450786(0x168)),{exec}=require(a68_0x450786(0x1d3)),{https}=require(a68_0x450786(0x10d)),yauzl=require(a68_0x450786(0x152)),util=require('util'),{getFrameworkVersion}=require(a68_0x450786(0x10c)),{threadId}=require(a68_0x450786(0x17c)),PerformanceTester=require(a68_0x450786(0x160)),{EVENTS:PerformanceEvents}=require(a68_0x450786(0x1d2)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require('../../helpers/utilities'),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a68_0x450786(0x19f)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a68_0x450786(0x17b)),{createClassLogger}=require(a68_0x450786(0x193)),TestFrameworkInstance=require('./instances/testFrameworkInstance.js'),HookState=require(a68_0x450786(0x1cc)),TestFrameworkState=require('./state/testFrameworkState.js'),AutomationFrameworkState=require('./state/automationFrameworkState.js'),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants.js'),logger=createClassLogger('CLIUtils'),{getBStackAPIUrl}=require(a68_0x450786(0x12c));function a68_0x49d1(_0x3c4ea9,_0x510037){const _0x4d01c6=a68_0x4d01();return a68_0x49d1=function(_0x49d110,_0x43dde8){_0x49d110=_0x49d110-0xff;let _0x5eb51e=_0x4d01c6[_0x49d110];return _0x5eb51e;},a68_0x49d1(_0x3c4ea9,_0x510037);}class CLIUtils{[a68_0x450786(0x175)]={};[a68_0x450786(0x12a)]={};static['isDevelopmentEnv'](){const _0x586071=a68_0x450786,_0x90cf35={};_0x90cf35[_0x586071(0x1c0)]=function(_0x130c86,_0x44df54){return _0x130c86===_0x44df54;},_0x90cf35['SPrNi']='development';const _0x27011a=_0x90cf35;return _0x27011a[_0x586071(0x1c0)](process[_0x586071(0x1b4)][_0x586071(0x1a3)],_0x27011a['SPrNi']);}static[a68_0x450786(0x1c3)](){const _0x44d2fa=a68_0x450786,_0x528e76={};return _0x528e76['id']=process['env'][_0x44d2fa(0x1a3)],_0x528e76[_0x44d2fa(0x142)]='unix:/tmp/sdk-platform-'+process[_0x44d2fa(0x1b4)][_0x44d2fa(0x1a3)]+_0x44d2fa(0x1cb),_0x528e76;}static[a68_0x450786(0x1c4)](){const _0x1a8e6b=a68_0x450786,_0x2b3592={'dbolt':function(_0x3609eb,_0x242824){return _0x3609eb(_0x242824);},'uNGtG':_0x1a8e6b(0x115)};return _0x2b3592['dbolt'](require,_0x2b3592[_0x1a8e6b(0x156)])[_0x1a8e6b(0x1d7)];}static['getSdkLanguage'](){const _0x1a1864=a68_0x450786,_0x175497={};_0x175497[_0x1a1864(0x1cf)]=_0x1a1864(0x1c1);const _0x4ff926=_0x175497;return _0x4ff926[_0x1a1864(0x1cf)];}static async[a68_0x450786(0x12b)](_0x29e9ef){const _0x34395c=a68_0x450786,_0x3e5a80={'hVXxj':'Configuring\x20Cli\x20path.','quaNo':function(_0x1286d1,_0x1c3c89){return _0x1286d1(_0x1c3c89);},'rHKKl':function(_0x2d2098,_0x5239cf){return _0x2d2098(_0x5239cf);},'piWwJ':_0x34395c(0x19c)};logger['debug'](_0x3e5a80[_0x34395c(0x133)]);const _0x23ef97=process['env'][_0x34395c(0x1c5)];if(!_0x3e5a80['quaNo'](isNullOrEmpty,_0x23ef97))return logger[_0x34395c(0x100)](_0x34395c(0x1ac)+_0x23ef97),_0x23ef97;try{const _0x3da8ab=this['getCliDir']();if(_0x3e5a80[_0x34395c(0x1be)](isNullOrEmpty,_0x3da8ab))throw new Error(_0x3e5a80[_0x34395c(0x121)]);const _0x47bf28=this[_0x34395c(0x197)](_0x3da8ab),_0x524f46=await this[_0x34395c(0x1a0)](_0x47bf28,_0x3da8ab,_0x29e9ef);return logger['debug'](_0x34395c(0x125)+_0x524f46),_0x524f46;}catch(_0x32b2ad){logger[_0x34395c(0x100)](_0x34395c(0x15f)+util['format'](_0x32b2ad));}return null;}static async[a68_0x450786(0x1a0)](_0x2b8d7e,_0x5e9cf6,_0x2067d2){const _0x2d60be=a68_0x450786,_0xcef67c={'MMpUA':function(_0x48d0a9){return _0x48d0a9();},'pEnJz':function(_0x315b11,_0x445ba3){return _0x315b11(_0x445ba3);},'zxsTG':function(_0x2934ee,_0x3a577d,_0x8ed07b){return _0x2934ee(_0x3a577d,_0x8ed07b);},'CTzPb':_0x2d60be(0x15c),'lIGlH':_0x2d60be(0x188),'RxiUp':function(_0x3e8762,_0x3e761e,_0x15f312){return _0x3e8762(_0x3e761e,_0x15f312);}};PerformanceTester[_0x2d60be(0x12d)](PerformanceEvents[_0x2d60be(0x173)]),logger[_0x2d60be(0x16e)](_0x2d60be(0x151)+_0x2b8d7e);const _0x4edf7c=_0xcef67c[_0x2d60be(0x120)](getHostInfo),_0x519350={'sdk_version':CLIUtils['getSdkVersion'](),'os':_0x4edf7c['platform'],'os_arch':_0x4edf7c['arch'],'cli_version':'0','sdk_language':this[_0x2d60be(0x14d)]()};!_0xcef67c['pEnJz'](isNullOrEmpty,_0x2b8d7e)&&(_0x519350[_0x2d60be(0x1b3)]=await this[_0x2d60be(0x139)](_0x2b8d7e+_0x2d60be(0x111)));const _0x40e796=await this[_0x2d60be(0x169)](_0x519350,_0x2067d2);process[_0x2d60be(0x1b4)][_0x2d60be(0x1d9)]&&(logger[_0x2d60be(0x16e)]('Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20'+process[_0x2d60be(0x1b4)][_0x2d60be(0x1d9)]),_0x40e796['data'][_0x2d60be(0x188)]=process[_0x2d60be(0x1b4)]['BROWSERSTACK_BINARY_URL']);if(_0xcef67c['zxsTG'](nestedKeyValue,_0x40e796,[_0xcef67c[_0x2d60be(0x17d)],_0xcef67c[_0x2d60be(0x18d)]])){logger[_0x2d60be(0x100)](_0x2d60be(0x1d5)+_0x519350[_0x2d60be(0x1b3)]);if(!_0xcef67c[_0x2d60be(0x109)](isNullOrEmpty,_0x2b8d7e)&&this[_0x2d60be(0x1d4)](_0x2b8d7e))return logger[_0x2d60be(0x159)](_0x2d60be(0x189)+_0x2b8d7e),PerformanceTester[_0x2d60be(0x161)](PerformanceEvents[_0x2d60be(0x173)]),_0x2b8d7e;const _0x21c580=await this[_0x2d60be(0x150)](_0xcef67c[_0x2d60be(0x128)](nestedKeyValue,_0x40e796,[_0xcef67c['CTzPb'],_0xcef67c[_0x2d60be(0x18d)]]),_0x5e9cf6);return PerformanceTester[_0x2d60be(0x161)](PerformanceEvents[_0x2d60be(0x173)]),_0x21c580;}return PerformanceTester[_0x2d60be(0x161)](PerformanceEvents[_0x2d60be(0x173)]),_0x2b8d7e;}static[a68_0x450786(0x114)](){const _0x3fa149=a68_0x450786,_0x3d1a9f={'XfJkd':function(_0x4fbfd2,_0x18c162){return _0x4fbfd2(_0x18c162);},'cuCgo':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','sMIHe':_0x3fa149(0x1b8)},_0x1ed07e=this[_0x3fa149(0x1b1)]();try{if(_0x3d1a9f[_0x3fa149(0x176)](isNullOrEmpty,_0x1ed07e))throw new Error(_0x3d1a9f[_0x3fa149(0x14f)]);const _0x30b070=path['join'](_0x1ed07e,_0x3d1a9f[_0x3fa149(0x187)]);return!fs[_0x3fa149(0x14a)](_0x30b070)&&_0x3d1a9f[_0x3fa149(0x176)](createDir,_0x30b070),_0x30b070;}catch(_0x4e60cb){logger['debug'](_0x3fa149(0x15b)+util[_0x3fa149(0x129)](_0x4e60cb));}}static[a68_0x450786(0x1b1)](){const _0x31ea79=a68_0x450786,_0xcfad57={'preCD':'.browserstack','CddLb':function(_0x35fa40,_0x174da5){return _0x35fa40(_0x174da5);},'GIXNQ':function(_0x3f86d4,_0x200ff0){return _0x3f86d4(_0x200ff0);},'imxcL':function(_0x9a81ba,_0x1669e3){return _0x9a81ba(_0x1669e3);},'TxoaG':function(_0x3c3ec7,_0x282802){return _0x3c3ec7(_0x282802);},'tcxTA':function(_0x32c871,_0x23224f){return _0x32c871(_0x23224f);},'UkltM':function(_0x539a37,_0xa2637f){return _0x539a37(_0xa2637f);}},_0x2c6c34=[process['env'][_0x31ea79(0x18a)],path['join'](os['homedir'](),_0xcfad57[_0x31ea79(0x163)]),path['join'](os['tmpdir'](),_0xcfad57[_0x31ea79(0x163)])];for(const _0x382b2d of _0x2c6c34){if(_0xcfad57[_0x31ea79(0x1c9)](isNullOrEmpty,_0x382b2d))continue;try{if(fs[_0x31ea79(0x14a)](_0x382b2d)){logger['debug'](_0x31ea79(0x149)+_0x382b2d+_0x31ea79(0x195));if(!_0xcfad57[_0x31ea79(0x15a)](isModifiable,_0x382b2d)){logger[_0x31ea79(0x100)](_0x31ea79(0x130)+_0x382b2d);const _0x2fe7c1=_0xcfad57['CddLb'](setReadWriteExecuteAccess,_0x382b2d);if(!_0xcfad57[_0x31ea79(0x1bd)](isTrue,_0x2fe7c1)){logger['warn'](_0x31ea79(0x13b)+_0x382b2d);continue;}}}else{logger[_0x31ea79(0x100)](_0x31ea79(0x162)+_0x382b2d),_0xcfad57['TxoaG'](createDir,_0x382b2d),logger[_0x31ea79(0x100)](_0x31ea79(0x130)+_0x382b2d);const _0x492ff4=_0xcfad57['tcxTA'](setReadWriteExecuteAccess,_0x382b2d);!_0xcfad57[_0x31ea79(0x13c)](isTrue,_0x492ff4)&&logger[_0x31ea79(0x159)](_0x31ea79(0x13b)+_0x382b2d);}return _0x382b2d;}catch(_0x4dd0ac){logger['error'](_0x31ea79(0x196)+util[_0x31ea79(0x129)](_0x4dd0ac));}}return null;}static[a68_0x450786(0x197)](_0x12df40){const _0x2f3709=a68_0x450786,_0x151776={};_0x151776[_0x2f3709(0x103)]=function(_0x3e5701,_0x154485){return _0x3e5701>_0x154485;},_0x151776[_0x2f3709(0x170)]=function(_0x2d2321,_0x38b212){return _0x2d2321>_0x38b212;};const _0x515fdc=_0x151776;try{if(!fs[_0x2f3709(0x14a)](_0x12df40)||!fs[_0x2f3709(0x172)](_0x12df40)[_0x2f3709(0x19b)]())return'';const _0x426f44=fs[_0x2f3709(0x153)](_0x12df40)['map'](_0x2ac655=>path[_0x2f3709(0x1a6)](_0x12df40,_0x2ac655))[_0x2f3709(0x110)](_0x14596e=>fs['statSync'](_0x14596e)['isFile']()&&path[_0x2f3709(0x127)](_0x14596e)['startsWith'](_0x2f3709(0x14b)));if(_0x515fdc[_0x2f3709(0x170)](_0x426f44[_0x2f3709(0x1dd)],0x0)){const _0x3cc85e=_0x426f44['map'](_0x3cc01f=>({'filePath':_0x3cc01f,'mtime':fs['statSync'](_0x3cc01f)[_0x2f3709(0x13d)]}))['reduce']((_0x1bbe50,_0x47f184)=>{const _0x5854ce=_0x2f3709;if(!_0x1bbe50||!_0x1bbe50['mtime'])return _0x47f184;if(_0x515fdc[_0x5854ce(0x103)](_0x47f184[_0x5854ce(0x13d)],_0x1bbe50['mtime']))return _0x47f184;return _0x1bbe50;},{});return _0x3cc85e?_0x3cc85e['filePath']:'';}return'';}catch(_0x2c78ed){return logger[_0x2f3709(0x146)](_0x2f3709(0x1bc)+util[_0x2f3709(0x129)](_0x2c78ed)),'';}}static ['requestToUpdateCLI']=async(_0xc97c54,_0x5d41f6)=>{const _0x3e0f55=a68_0x450786,_0x457770={'JmZrU':function(_0x3dba3b,_0x461466,_0x42c7a4,_0x573d96,_0x29cfd9){return _0x3dba3b(_0x461466,_0x42c7a4,_0x573d96,_0x29cfd9);},'Ukffa':_0x3e0f55(0x10a)},_0x30baa8={};_0x30baa8['qs']=_0xc97c54;const _0x37db16=await _0x457770['JmZrU'](nodeRequest,_0x457770['Ukffa'],UPDATED_CLI_ENDPOINT,_0x30baa8,_0x5d41f6);return logger[_0x3e0f55(0x100)](_0x3e0f55(0x11c)+JSON['stringify'](_0x37db16)),_0x37db16;};static[a68_0x450786(0x1d4)](_0x4c3c67){const _0x252f08=a68_0x450786;try{const _0x298f89=fs[_0x252f08(0x117)](_0x4c3c67,'r+');return fs[_0x252f08(0x15e)](_0x298f89),![];}catch(_0x19ec57){if(BINARY_BUSY_ERROR_CODES[_0x252f08(0x143)](_0x19ec57[_0x252f08(0x178)]))return logger[_0x252f08(0x100)](_0x252f08(0x116)+_0x4c3c67),!![];return logger[_0x252f08(0x100)](_0x252f08(0x1b2)+_0x19ec57['message']),![];}}static[a68_0x450786(0x139)](_0x188092,_0x5c9528=''){const _0x3e8241=a68_0x450786,_0x48cf08={'fAseB':function(_0x56ec31,_0xe83367){return _0x56ec31(_0xe83367);},'UjeJv':_0x3e8241(0x186),'Yggmx':'version','XjXEv':function(_0x4cdd23,_0x2142d0){return _0x4cdd23(_0x2142d0);},'bckZm':function(_0x493308,_0x3ba0d0,_0x1a3d43,_0x37af9a){return _0x493308(_0x3ba0d0,_0x1a3d43,_0x37af9a);},'yFqiC':_0x3e8241(0x146)};return new Promise((_0x313df6,_0x1433b9)=>{const _0xe011df=_0x3e8241,_0x183100={'XOlWP':_0x48cf08['Yggmx'],'ROhtk':function(_0x4ea3e0,_0x184bd9){const _0x49ea3a=a68_0x49d1;return _0x48cf08[_0x49ea3a(0x1bb)](_0x4ea3e0,_0x184bd9);},'oJEfz':_0x48cf08['UjeJv'],'zYrzT':function(_0x59e9f5,_0x201591){const _0x110ac6=a68_0x49d1;return _0x48cf08[_0x110ac6(0x119)](_0x59e9f5,_0x201591);}},_0x48cac4={};_0x48cac4[_0xe011df(0x17a)]=_0x5c9528,_0x48cac4[_0xe011df(0x141)]=0x1388;const _0x437c22=_0x48cf08['bckZm'](exec,_0x188092,_0x48cac4,(_0x23a14a,_0x13192b,_0x475c23)=>{const _0x366f63=_0xe011df;if(_0x23a14a){if(_0x188092[_0x366f63(0x143)](_0x183100[_0x366f63(0x185)])&&(_0x13192b[_0x366f63(0x165)]()||_0x475c23[_0x366f63(0x165)]())){const _0x18bb94=_0x13192b[_0x366f63(0x165)]()||_0x475c23[_0x366f63(0x165)]();logger[_0x366f63(0x100)]('CLI\x20version\x20found\x20despite\x20error:\x20\x22'+_0x18bb94+'\x22'),_0x183100[_0x366f63(0x107)](_0x313df6,_0x18bb94);}else _0x183100[_0x366f63(0x107)](_0x313df6,_0x475c23[_0x366f63(0x165)]()||_0x183100[_0x366f63(0x1a2)]);}else logger['debug'](_0x366f63(0x1d0)+_0x13192b[_0x366f63(0x165)]()+'\x22'),_0x183100[_0x366f63(0x1ce)](_0x313df6,_0x13192b[_0x366f63(0x165)]());});_0x437c22['on'](_0x48cf08[_0xe011df(0x135)],()=>{const _0x54c36c=_0xe011df;_0x48cf08[_0x54c36c(0x119)](_0x313df6,_0x48cf08[_0x54c36c(0x138)]);});});}static [a68_0x450786(0x150)]=async(_0x11e101,_0x12a2b4)=>{const _0x5a58d2=a68_0x450786,_0x5517b3={'kRsjg':_0x5a58d2(0x19e),'MYymP':function(_0x4fdebc,_0x5bd89c){return _0x4fdebc(_0x5bd89c);},'iRYEH':function(_0x45eb28,_0x5e89b9){return _0x45eb28(_0x5e89b9);},'SZcCX':'Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','CUfUu':'error'};PerformanceTester[_0x5a58d2(0x12d)](PerformanceEvents[_0x5a58d2(0x16b)]),logger[_0x5a58d2(0x100)](_0x5a58d2(0x1c7)+_0x11e101);try{const _0x26b5df=url[_0x5a58d2(0x181)](_0x11e101),_0xffa9c2=path[_0x5a58d2(0x1a6)](_0x12a2b4,'downloaded_file_'+process[_0x5a58d2(0x113)]+_0x5a58d2(0x14e)),_0x151123=fs[_0x5a58d2(0x1de)](_0xffa9c2);return new Promise((_0x519b67,_0x412809)=>{const _0x44a74b=_0x5a58d2,_0x7ef2fa={'KLRVB':_0x5517b3['kRsjg'],'yfLyb':function(_0x3d6a4a,_0xcd5c1c){const _0x12ddba=a68_0x49d1;return _0x5517b3[_0x12ddba(0x123)](_0x3d6a4a,_0xcd5c1c);},'mJnvD':function(_0x3192a9,_0x49d81d){const _0x1b02b3=a68_0x49d1;return _0x5517b3[_0x1b02b3(0x123)](_0x3192a9,_0x49d81d);},'qpoIU':function(_0x45b5eb,_0x1b9533){const _0x4d3b18=a68_0x49d1;return _0x5517b3[_0x4d3b18(0x1a1)](_0x45b5eb,_0x1b9533);},'XWQAB':_0x5517b3['SZcCX'],'UATvQ':_0x5517b3[_0x44a74b(0x194)],'Wktcx':function(_0x413b51,_0x2f64ef){return _0x5517b3['MYymP'](_0x413b51,_0x2f64ef);}};https[_0x44a74b(0x158)](_0x26b5df,function(_0x55e90){const _0x26ec75=_0x44a74b,_0x2d4c8b={'ELccN':_0x7ef2fa[_0x26ec75(0x118)],'vChQY':function(_0x5e293f,_0x356de6){const _0x3c82f2=_0x26ec75;return _0x7ef2fa[_0x3c82f2(0x166)](_0x5e293f,_0x356de6);}},_0x65139b=null;_0x55e90[_0x26ec75(0x13f)](_0x151123),_0x55e90['on'](_0x7ef2fa[_0x26ec75(0x1aa)],function(_0x1c0b08){const _0x4842f5=_0x26ec75;logger['error'](util[_0x4842f5(0x129)](_0x2d4c8b[_0x4842f5(0x13a)],_0x1c0b08)),PerformanceTester[_0x4842f5(0x161)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x4842f5(0x129)](_0x1c0b08)),_0x2d4c8b['vChQY'](_0x412809,_0x1c0b08);}),_0x151123['on'](_0x7ef2fa['UATvQ'],function(_0x40b340){const _0x27b4ca=_0x26ec75;logger['error'](util[_0x27b4ca(0x129)](_0x7ef2fa[_0x27b4ca(0x1a7)],_0x40b340)),PerformanceTester[_0x27b4ca(0x161)](PerformanceEvents[_0x27b4ca(0x16b)],![],util[_0x27b4ca(0x129)](_0x40b340)),_0x7ef2fa[_0x27b4ca(0x10f)](_0x412809,_0x40b340);}),CLIUtils[_0x26ec75(0x167)](_0x151123,_0x65139b,_0xffa9c2,_0x12a2b4,_0x2851d6=>{const _0x35b95c=_0x26ec75;PerformanceTester[_0x35b95c(0x161)](PerformanceEvents[_0x35b95c(0x16b)]),_0x7ef2fa[_0x35b95c(0x166)](_0x519b67,_0x2851d6);},_0x526f32=>{const _0xfcc8d=_0x26ec75;PerformanceTester[_0xfcc8d(0x161)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util['format'](_0x526f32)),_0x7ef2fa[_0xfcc8d(0x1ad)](_0x412809,_0x526f32);});})['on'](_0x5517b3['CUfUu'],function(_0x52d5db){const _0x1de726=_0x44a74b;logger[_0x1de726(0x146)](_0x1de726(0x1bf)+util[_0x1de726(0x129)](_0x52d5db)),PerformanceTester['end'](PerformanceEvents[_0x1de726(0x16b)],![],util['format'](_0x52d5db)),_0x7ef2fa[_0x1de726(0x171)](_0x412809,_0x52d5db);});});}catch(_0x173c86){PerformanceTester[_0x5a58d2(0x161)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x5a58d2(0x129)](_0x173c86)),logger[_0x5a58d2(0x100)](_0x5a58d2(0x11a)+util[_0x5a58d2(0x129)](_0x173c86));}};static[a68_0x450786(0x167)](_0x27c1d9,_0x4787f9,_0x3a47a9,_0x363aee,_0x421fef,_0x311bf6){const _0x246a1b=a68_0x450786,_0xa29bdd={'ZxLZT':function(_0x13c395,_0x1a4459){return _0x13c395(_0x1a4459);},'djdPw':function(_0x59b3d7,_0x1e8011){return _0x59b3d7(_0x1e8011);},'jDKOg':_0x246a1b(0x1d1),'mVVVt':'error','bZjMF':_0x246a1b(0x161),'sumjx':_0x246a1b(0x124),'gWkmw':function(_0x32c3f8,_0x543fb7){return _0x32c3f8!==_0x543fb7;},'DFuhV':function(_0x3878af,_0x3a0e89){return _0x3878af(_0x3a0e89);},'Wtjch':_0x246a1b(0x1da),'TJdno':_0x246a1b(0x1d8)};_0x27c1d9['on'](_0xa29bdd[_0x246a1b(0x180)],function(){const _0x1adf5d=_0x246a1b,_0x2e32b8={'qSstn':function(_0x1b04b7,_0x15dc6d){const _0x480d4d=a68_0x49d1;return _0xa29bdd[_0x480d4d(0x191)](_0x1b04b7,_0x15dc6d);},'jlsVj':_0xa29bdd[_0x1adf5d(0x180)],'QzfpT':_0xa29bdd[_0x1adf5d(0x11b)],'yHIFL':function(_0x3c9369,_0x2bbe28){const _0x34620a=_0x1adf5d;return _0xa29bdd[_0x34620a(0x1b0)](_0x3c9369,_0x2bbe28);},'Eplsi':function(_0x40eb7f,_0xc82b87){const _0x2c101f=_0x1adf5d;return _0xa29bdd[_0x2c101f(0x199)](_0x40eb7f,_0xc82b87);},'zPqOH':function(_0x484ab6,_0x5731c8){const _0x21b088=_0x1adf5d;return _0xa29bdd[_0x21b088(0x16a)](_0x484ab6,_0x5731c8);},'KXYlK':_0xa29bdd[_0x1adf5d(0x182)],'pYbuV':_0xa29bdd[_0x1adf5d(0x145)],'blTjW':_0xa29bdd[_0x1adf5d(0x1b9)]},_0xd61ff1={};_0xd61ff1[_0x1adf5d(0x147)]=!![],yauzl[_0x1adf5d(0x148)](_0x3a47a9,_0xd61ff1,function(_0x1675cd,_0x5bd867){const _0x29a079=_0x1adf5d,_0x46c6ad={'QPuLf':function(_0x222089,_0x3cc5c3){return _0xa29bdd['ZxLZT'](_0x222089,_0x3cc5c3);},'NiLYU':function(_0x2686f0,_0x27991b){return _0xa29bdd['djdPw'](_0x2686f0,_0x27991b);}};if(_0x1675cd){_0xa29bdd['ZxLZT'](_0x311bf6,_0x1675cd);return;}_0x5bd867[_0x29a079(0x17e)](),_0x5bd867['on'](_0xa29bdd[_0x29a079(0x1d6)],_0x2c5988=>{const _0x53fca7=_0x29a079,_0x309c98={'Cfhss':function(_0x392b02,_0x2774a1){return _0x2e32b8['qSstn'](_0x392b02,_0x2774a1);},'itdvO':function(_0x491d6c,_0x3fb261){return _0x2e32b8['qSstn'](_0x491d6c,_0x3fb261);},'qgnWM':_0x2e32b8[_0x53fca7(0x192)],'ONwXI':_0x2e32b8[_0x53fca7(0x132)]};if(/\/$/['test'](_0x2c5988['fileName'])){_0x5bd867[_0x53fca7(0x17e)]();return;}!_0x4787f9&&(_0x4787f9=_0x2c5988['fileName']);if(_0x2e32b8['yHIFL'](_0x2c5988[_0x53fca7(0x190)],_0x4787f9))_0x5bd867['readEntry']();else{const _0x590aa1=_0x2c5988[_0x53fca7(0x190)],_0x61a121=path[_0x53fca7(0x1a6)](_0x363aee,_0x590aa1+_0x53fca7(0x174)+process['pid']);let _0x1201ac;try{_0x1201ac=fs[_0x53fca7(0x1de)](_0x61a121);}catch(_0x23ee2e){if(BINARY_BUSY_ERROR_CODES['includes'](_0x23ee2e['code'])){const _0x313b3d=path[_0x53fca7(0x1a6)](_0x363aee,_0x590aa1);if(fs[_0x53fca7(0x14a)](_0x313b3d)){logger[_0x53fca7(0x159)](_0x53fca7(0x16f)+_0x590aa1),fs[_0x53fca7(0x1ab)](_0x3a47a9,_0x4eb521=>{const _0x1baf56=_0x53fca7;_0x4eb521&&logger[_0x1baf56(0x159)](_0x1baf56(0x1c6)+_0x3a47a9);}),_0x2e32b8[_0x53fca7(0xff)](_0x421fef,_0x313b3d);return;}logger['warn']('Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x590aa1);}_0x2e32b8[_0x53fca7(0x1a8)](_0x311bf6,_0x23ee2e);return;}_0x1201ac['on'](_0x2e32b8[_0x53fca7(0x13e)],_0x3cd9d2=>{const _0x43da61=_0x53fca7;if(BINARY_BUSY_ERROR_CODES['includes'](_0x3cd9d2[_0x43da61(0x178)])){const _0x33df9b=path[_0x43da61(0x1a6)](_0x363aee,_0x590aa1);_0x1201ac['close'](),fs[_0x43da61(0x14a)](_0x33df9b)?(logger[_0x43da61(0x159)]('Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x3cd9d2['message']),_0x5bd867['close'](),fs[_0x43da61(0x1ab)](_0x3a47a9,_0x429588=>{const _0x505f0b=_0x43da61;_0x429588&&logger['warn'](_0x505f0b(0x1c6)+_0x3a47a9);}),_0x309c98[_0x43da61(0x11d)](_0x421fef,_0x33df9b)):(logger[_0x43da61(0x159)]('Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x3cd9d2['message']),fs[_0x43da61(0x1ab)](_0x61a121,()=>{}),_0x309c98[_0x43da61(0x1a5)](_0x311bf6,_0x3cd9d2));}else fs[_0x43da61(0x1ab)](_0x61a121,()=>{}),_0x309c98[_0x43da61(0x1a5)](_0x311bf6,_0x3cd9d2);}),_0x5bd867[_0x53fca7(0x18b)](_0x2c5988,function(_0x55ac91,_0x4c2a58){const _0xc9a648=_0x53fca7;if(_0x55ac91){fs[_0xc9a648(0x1ab)](_0x61a121,()=>{}),_0x309c98[_0xc9a648(0x11d)](_0x311bf6,_0x55ac91);return;}_0x4c2a58['on'](_0x309c98[_0xc9a648(0x106)],function(){const _0x200457=_0xc9a648;_0x1201ac[_0x200457(0x161)](),_0x1201ac['on'](_0x309c98[_0x200457(0x1cd)],function(){const _0x21cf1a=_0x200457;_0x5bd867[_0x21cf1a(0x17e)]();});}),_0x4c2a58['pipe'](_0x1201ac);});}}),_0x5bd867['on'](_0xa29bdd[_0x29a079(0x182)],_0x41620a=>{_0x46c6ad['QPuLf'](_0x311bf6,_0x41620a);}),_0x5bd867[_0x29a079(0x155)](_0xa29bdd['bZjMF'],()=>{const _0x21cac7=_0x29a079,_0x471d5d={'vqvyD':function(_0x5b9952,_0xfbcc27){const _0x2394ea=a68_0x49d1;return _0x2e32b8[_0x2394ea(0x184)](_0x5b9952,_0xfbcc27);},'VfZIr':_0x2e32b8['pYbuV'],'XZukv':function(_0x2a89bc,_0x1f7bf1){const _0x547667=a68_0x49d1;return _0x2e32b8[_0x547667(0x12f)](_0x2a89bc,_0x1f7bf1);},'pdXnf':function(_0x3ebd64,_0x4104ed){const _0x35a3bf=a68_0x49d1;return _0x2e32b8[_0x35a3bf(0x12f)](_0x3ebd64,_0x4104ed);}};fs['unlink'](_0x3a47a9,_0x1fafed=>{const _0x58d211=a68_0x49d1;_0x1fafed&&logger[_0x58d211(0x159)](_0x58d211(0x1c6)+_0x3a47a9);});const _0x30df92=path[_0x21cac7(0x1a6)](_0x363aee,_0x4787f9+_0x21cac7(0x174)+process[_0x21cac7(0x113)]),_0x16862d=path['join'](_0x363aee,_0x4787f9);fs[_0x21cac7(0x108)](_0x30df92,_0x2e32b8[_0x21cac7(0x101)],function(_0x5dc9ed){const _0x42f9ef=_0x21cac7;if(_0x5dc9ed){_0x5bd867[_0x42f9ef(0x124)](),fs[_0x42f9ef(0x1ab)](_0x30df92,()=>{}),_0x46c6ad[_0x42f9ef(0x104)](_0x311bf6,_0x5dc9ed);return;}fs[_0x42f9ef(0x134)](_0x30df92,_0x16862d,function(_0x547eb1){const _0x1cc55c=_0x42f9ef;if(_0x547eb1){if(_0x471d5d['vqvyD'](_0x547eb1['code'],_0x471d5d[_0x1cc55c(0x10e)])){_0x5bd867[_0x1cc55c(0x124)](),fs[_0x1cc55c(0x1ab)](_0x30df92,()=>{}),_0x471d5d[_0x1cc55c(0x131)](_0x311bf6,_0x547eb1);return;}logger[_0x1cc55c(0x159)]('Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20'+_0x547eb1[_0x1cc55c(0x18f)]);try{fs[_0x1cc55c(0x164)](_0x30df92,_0x16862d);}catch(_0x3c4348){_0x5bd867['close'](),fs['unlink'](_0x30df92,()=>{}),_0x471d5d[_0x1cc55c(0x1ae)](_0x311bf6,_0x3c4348);return;}fs[_0x1cc55c(0x1ab)](_0x30df92,_0x5e86b3=>{const _0xfc0456=_0x1cc55c;_0x5e86b3&&logger[_0xfc0456(0x159)](_0xfc0456(0x183)+_0x5e86b3[_0xfc0456(0x18f)]);});}_0x5bd867[_0x1cc55c(0x124)](),_0x471d5d['XZukv'](_0x421fef,_0x16862d);});});});});});}static[a68_0x450786(0x18c)](){const _0x4142f1=a68_0x450786;if(process[_0x4142f1(0x1b4)][_0x4142f1(0x19a)])return JSON[_0x4142f1(0x181)](process['env'][_0x4142f1(0x19a)]);return this[_0x4142f1(0x12a)];}static[a68_0x450786(0x1b6)](){const _0x48bd5d=a68_0x450786;if(process[_0x48bd5d(0x1b4)][_0x48bd5d(0x112)])return JSON[_0x48bd5d(0x181)](process[_0x48bd5d(0x1b4)][_0x48bd5d(0x112)]);return this[_0x48bd5d(0x175)];}static[a68_0x450786(0x15d)](_0x942ded,_0x4f69d4){const _0x25d719=a68_0x450786,_0x27395f={'giJOR':'4|3|1|2|0','HhoYy':function(_0x18f7ab,_0x4ca3d6){return _0x18f7ab(_0x4ca3d6);},'vdngM':function(_0x389cfb,_0x2680fa){return _0x389cfb(_0x2680fa);},'HKIlI':function(_0x40398e,_0x2f3d03){return _0x40398e||_0x2f3d03;}},_0x9672fd=_0x27395f[_0x25d719(0x10b)][_0x25d719(0x18e)]('|');let _0x2253d6=0x0;while(!![]){switch(_0x9672fd[_0x2253d6++]){case'0':process[_0x25d719(0x1b4)][_0x25d719(0x19a)]=JSON['stringify'](this['testFrameworkDetail']);continue;case'1':this['automationFrameworkDetail']={'name':_0x4f69d4,'version':_0x27395f[_0x25d719(0x136)](getFrameworkVersion,_0x4f69d4)};continue;case'2':process[_0x25d719(0x1b4)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']=JSON[_0x25d719(0x154)](this['automationFrameworkDetail']);continue;case'3':this[_0x25d719(0x12a)]={'name':_0x942ded,'version':{[_0x942ded]:_0x27395f[_0x25d719(0x198)](getFrameworkVersion,_0x942ded)}};continue;case'4':_0x27395f[_0x25d719(0x126)](!_0x942ded,!_0x4f69d4)&&logger[_0x25d719(0x100)](_0x25d719(0x12e)+_0x942ded+_0x25d719(0x11e)+_0x4f69d4);continue;}break;}}static['getHookRegistryKey'](_0x1f15ee,_0x3f2614){return _0x1f15ee+':'+_0x3f2614;}static[a68_0x450786(0x17f)](){const _0x3a06c8=a68_0x450786;return process[_0x3a06c8(0x113)]+':'+threadId;}static['shouldSkipSessionName'](_0x42a26a){const _0x22fe3b=a68_0x450786;if(_0x42a26a[_0x22fe3b(0x179)]&&_0x42a26a[_0x22fe3b(0x179)][_0x22fe3b(0x1db)])return!![];return![];}static['shouldSkipSessionStatus'](_0x30685e){const _0xeaeca9=a68_0x450786;if(_0x30685e[_0xeaeca9(0x179)]&&_0x30685e['testContextOptions'][_0xeaeca9(0x1a4)])return!![];return![];}static[a68_0x450786(0x1b5)](_0xfad4f0){const _0x1d638b=a68_0x450786,_0x14e465=new RegExp(TestFrameworkConstants[_0x1d638b(0x177)]);return _0x14e465[_0x1d638b(0x1c8)](_0xfad4f0);}static[a68_0x450786(0x140)](_0x328283,_0x1898a3){const _0x46df23=a68_0x450786,_0x4b264b={};_0x4b264b['aRHjs']=function(_0x1e4d6a,_0x4aab02){return _0x1e4d6a!==_0x4aab02;},_0x4b264b[_0x46df23(0x1af)]=function(_0x18ef90,_0x5188e7){return _0x18ef90===_0x5188e7;},_0x4b264b[_0x46df23(0x14c)]=_0x46df23(0x16c);const _0x21f875=_0x4b264b;for(const [_0x3d806c,_0x516185]of Object[_0x46df23(0x1c2)](_0x1898a3)){if(_0x21f875[_0x46df23(0x1dc)](_0x516185,null)&&_0x21f875[_0x46df23(0x1af)](typeof _0x516185,_0x21f875[_0x46df23(0x14c)])&&!Array['isArray'](_0x516185))_0x328283[_0x3d806c]=this[_0x46df23(0x140)](_0x328283[_0x3d806c]||{},_0x516185);else Array[_0x46df23(0x157)](_0x516185)?_0x328283[_0x3d806c]=(_0x328283[_0x3d806c]||[])[_0x46df23(0x1ba)](_0x516185):_0x328283[_0x3d806c]=_0x516185;}return _0x328283;}}module['exports']=CLIUtils;function a68_0x4d01(){const _0x41ba7d=['\x20version','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','pid','getCliDir','../../../package.json','Binary\x20is\x20busy:\x20','openSync','XWQAB','fAseB','Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20','bZjMF','response\x20','Cfhss',',\x20automationFramework=','4VsQUsn','MMpUA','piWwJ','20639448XaiOpR','MYymP','close','Resolved\x20binary\x20path:\x20','HKIlI','basename','RxiUp','format','testFrameworkDetail','setupCliPath','../utils/apiUtilityMethods.js','start','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','qSstn','Setting\x20required\x20permissions\x20to\x20','XZukv','QzfpT','hVXxj','rename','yFqiC','HhoYy','1240cMqbIZ','UjeJv','runShellCommand','ELccN','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','UkltM','mtime','KXYlK','pipe','mergeObject','timeout','listen','includes','2nMfrYj','Wtjch','error','lazyEntries','open','Folder\x20','existsSync','binary-','mTwgh','getSdkLanguage','.zip','cuCgo','downloadLatestBinary','Current\x20CLI\x20Path\x20Found:\x20','yauzl','readdirSync','stringify','once','uNGtG','isArray','get','warn','GIXNQ','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','data','setFrameworkDetail','closeSync','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','../../helpers/performance/performance-tester.js','end','Folder\x20does\x20not\x20exist:\x20','preCD','copyFileSync','trim','mJnvD','downloadFileStream','path','requestToUpdateCLI','DFuhV','SDK_CLI_DOWNLOAD','object','9958257wdCsuL','info','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','gUDDN','Wktcx','statSync','SDK_CLI_CHECK_UPDATE','.tmp.','automationFrameworkDetail','XfJkd','HOOK_REGEX','code','testContextOptions','cwd','../utils/constants','worker_threads','CTzPb','readEntry','getCurrentInstanceName','sumjx','parse','mVVVt','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','yHIFL','XOlWP','SHELL_EXECUTE_ERROR','sMIHe','url','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','BROWSERSTACK_FILES_DIR','openReadStream','getTestFrameworkDetail','lIGlH','split','message','fileName','ZxLZT','jlsVj','../../helpers/classLogger.js','CUfUu','\x20already\x20exists','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','getExistingCliPath','vdngM','djdPw','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','isDirectory','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','3056061eojkFn','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','../../helpers/helper','checkAndUpdateCli','iRYEH','oJEfz','BROWSERSTACK_CLI_ENV','skipSessionStatus','itdvO','join','KLRVB','zPqOH','817487kOhfLN','UATvQ','unlink','Development\x20Cli\x20Path:\x20','qpoIU','pdXnf','DwVVS','gWkmw','getWritableDir','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','cli_version','env','matchHookRegex','getAutomationFrameworkDetail','6145OWlUgj','cli','TJdno','concat','XjXEv','Error\x20while\x20reading\x20CLI\x20path:\x20','imxcL','rHKKl','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','ymhIq','node','entries','getCLIParamsForDevEnv','getSdkVersion','SDK_CLI_BIN_PATH','Failed\x20to\x20delete\x20zip\x20file:\x20','Downloading\x20SDK\x20binary\x20from:\x20','test','CddLb','507228mpdewf','.sock','./state/hookState.js','qgnWM','zYrzT','qGLEd','Resolving\x20with\x20stdout:\x20\x22','entry','../../helpers/performance/constants','child_process','isBinaryBusy','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','jDKOg','version','0755','BROWSERSTACK_BINARY_URL','EXDEV','skipSessionName','aRHjs','length','createWriteStream','24JeZkjJ','Eplsi','debug','blTjW','10LuiNYd','bajXQ','NiLYU','29869zdvJju','ONwXI','ROhtk','chmod','pEnJz','GET','giJOR','../../helpers/test-observability/utils.js','follow-redirects','VfZIr','yfLyb','filter'];a68_0x4d01=function(){return _0x41ba7d;};return a68_0x4d01();}
1
+ const a68_0x151ccb=a68_0x501b;(function(_0x13163f,_0x42ffa5){const _0x2d687f=a68_0x501b,_0x464c91=_0x13163f();while(!![]){try{const _0x47658e=parseInt(_0x2d687f(0x200))/0x1*(parseInt(_0x2d687f(0x26d))/0x2)+-parseInt(_0x2d687f(0x1b3))/0x3*(-parseInt(_0x2d687f(0x1c9))/0x4)+parseInt(_0x2d687f(0x25d))/0x5+parseInt(_0x2d687f(0x271))/0x6+-parseInt(_0x2d687f(0x231))/0x7+-parseInt(_0x2d687f(0x226))/0x8+-parseInt(_0x2d687f(0x1f3))/0x9;if(_0x47658e===_0x42ffa5)break;else _0x464c91['push'](_0x464c91['shift']());}catch(_0x35cd9d){_0x464c91['push'](_0x464c91['shift']());}}}(a68_0x56e6,0x38e1e));function a68_0x501b(_0x17a127,_0x2e15b6){const _0x56e64e=a68_0x56e6();return a68_0x501b=function(_0x501b51,_0x4b8280){_0x501b51=_0x501b51-0x193;let _0x302609=_0x56e64e[_0x501b51];return _0x302609;},a68_0x501b(_0x17a127,_0x2e15b6);}const fs=require('fs'),os=require('os'),url=require(a68_0x151ccb(0x1e9)),path=require(a68_0x151ccb(0x1d5)),{exec}=require(a68_0x151ccb(0x1de)),{https}=require(a68_0x151ccb(0x1ee)),yauzl=require(a68_0x151ccb(0x241)),util=require(a68_0x151ccb(0x19f)),{getFrameworkVersion}=require(a68_0x151ccb(0x24e)),{threadId}=require(a68_0x151ccb(0x203)),PerformanceTester=require(a68_0x151ccb(0x237)),{EVENTS:PerformanceEvents}=require(a68_0x151ccb(0x1df)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a68_0x151ccb(0x220)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a68_0x151ccb(0x202)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a68_0x151ccb(0x214)),{createClassLogger}=require(a68_0x151ccb(0x19b)),TestFrameworkInstance=require(a68_0x151ccb(0x1f4)),HookState=require(a68_0x151ccb(0x21a)),TestFrameworkState=require(a68_0x151ccb(0x199)),AutomationFrameworkState=require('./state/automationFrameworkState.js'),TestFrameworkConstants=require(a68_0x151ccb(0x1b6)),logger=createClassLogger(a68_0x151ccb(0x1e1)),{getBStackAPIUrl}=require(a68_0x151ccb(0x210));class CLIUtils{[a68_0x151ccb(0x1b2)]={};['testFrameworkDetail']={};static[a68_0x151ccb(0x245)](){const _0x165c86=a68_0x151ccb,_0x31a467={};_0x31a467[_0x165c86(0x1d0)]=function(_0x5b8f33,_0x33f488){return _0x5b8f33===_0x33f488;},_0x31a467['yZSsf']='development';const _0x5f0cdd=_0x31a467;return _0x5f0cdd[_0x165c86(0x1d0)](process['env'][_0x165c86(0x228)],_0x5f0cdd[_0x165c86(0x1be)]);}static[a68_0x151ccb(0x25c)](){const _0x3a2803=a68_0x151ccb,_0x551fca={};return _0x551fca['id']=process['env']['BROWSERSTACK_CLI_ENV'],_0x551fca['listen']=_0x3a2803(0x1b7)+process[_0x3a2803(0x1eb)][_0x3a2803(0x228)]+'.sock',_0x551fca;}static[a68_0x151ccb(0x25b)](){const _0x270559=a68_0x151ccb,_0x2e31a3={'qCwNC':function(_0x3fcd63,_0x2b73f8){return _0x3fcd63(_0x2b73f8);},'UiHFH':_0x270559(0x270)};return _0x2e31a3[_0x270559(0x217)](require,_0x2e31a3[_0x270559(0x246)])[_0x270559(0x1a7)];}static['getSdkLanguage'](){const _0x223d30=a68_0x151ccb,_0x3b8c42={};_0x3b8c42[_0x223d30(0x219)]='node';const _0xb74523=_0x3b8c42;return _0xb74523[_0x223d30(0x219)];}static async[a68_0x151ccb(0x21e)](_0x2d2f5b){const _0x4a845f=a68_0x151ccb,_0x38f9af={'jQzuq':'Configuring\x20Cli\x20path.','NZkzz':function(_0x518272,_0x4c6ba4){return _0x518272(_0x4c6ba4);},'hTavb':_0x4a845f(0x1e8)};logger[_0x4a845f(0x248)](_0x38f9af[_0x4a845f(0x1dd)]);const _0x473416=process[_0x4a845f(0x1eb)][_0x4a845f(0x23c)];if(!_0x38f9af[_0x4a845f(0x274)](isNullOrEmpty,_0x473416))return logger[_0x4a845f(0x248)]('Development\x20Cli\x20Path:\x20'+_0x473416),_0x473416;try{const _0x2c601a=this[_0x4a845f(0x263)]();if(_0x38f9af[_0x4a845f(0x274)](isNullOrEmpty,_0x2c601a))throw new Error(_0x38f9af[_0x4a845f(0x1ac)]);const _0xef8504=this[_0x4a845f(0x1c8)](_0x2c601a),_0x3ddeeb=await this['checkAndUpdateCli'](_0xef8504,_0x2c601a,_0x2d2f5b);return logger[_0x4a845f(0x248)](_0x4a845f(0x1b4)+_0x3ddeeb),_0x3ddeeb;}catch(_0x5356c2){logger[_0x4a845f(0x248)](_0x4a845f(0x1ba)+util[_0x4a845f(0x235)](_0x5356c2));}return null;}static async[a68_0x151ccb(0x26b)](_0x52d5bd,_0x24da0c,_0x40cea6){const _0x375fc0=a68_0x151ccb,_0x2ebb32={'lbitA':function(_0x468864){return _0x468864();},'wsNEv':function(_0x3fb7b8,_0x1a3a55){return _0x3fb7b8(_0x1a3a55);},'kIqZg':function(_0x3eed60,_0x42057b,_0x260ef7){return _0x3eed60(_0x42057b,_0x260ef7);},'aAnSI':_0x375fc0(0x23f),'pPkQt':_0x375fc0(0x1e9),'FGHDQ':function(_0x16d11b,_0x581394){return _0x16d11b(_0x581394);},'Jkrup':function(_0x13cda6,_0x370fe8,_0x4e805a){return _0x13cda6(_0x370fe8,_0x4e805a);}};PerformanceTester[_0x375fc0(0x1b8)](PerformanceEvents[_0x375fc0(0x23d)]),logger['info'](_0x375fc0(0x204)+_0x52d5bd);const _0x48e77f=_0x2ebb32[_0x375fc0(0x1f1)](getHostInfo),_0x379a61={'sdk_version':CLIUtils[_0x375fc0(0x25b)](),'os':_0x48e77f['platform'],'os_arch':_0x48e77f[_0x375fc0(0x265)],'cli_version':'0','sdk_language':this['getSdkLanguage']()};!_0x2ebb32['wsNEv'](isNullOrEmpty,_0x52d5bd)&&(_0x379a61[_0x375fc0(0x1ab)]=await this[_0x375fc0(0x23b)](_0x52d5bd+'\x20version'));const _0x22d85d=await this[_0x375fc0(0x20e)](_0x379a61,_0x40cea6);process[_0x375fc0(0x1eb)]['BROWSERSTACK_BINARY_URL']&&(logger[_0x375fc0(0x1cd)](_0x375fc0(0x256)+process[_0x375fc0(0x1eb)][_0x375fc0(0x1a5)]),_0x22d85d[_0x375fc0(0x23f)]['url']=process[_0x375fc0(0x1eb)]['BROWSERSTACK_BINARY_URL']);if(_0x2ebb32['kIqZg'](nestedKeyValue,_0x22d85d,[_0x2ebb32[_0x375fc0(0x229)],_0x2ebb32[_0x375fc0(0x193)]])){logger['debug']('Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20'+_0x379a61[_0x375fc0(0x1ab)]);if(!_0x2ebb32[_0x375fc0(0x247)](isNullOrEmpty,_0x52d5bd)&&this['isBinaryBusy'](_0x52d5bd))return logger[_0x375fc0(0x242)](_0x375fc0(0x1db)+_0x52d5bd),PerformanceTester['end'](PerformanceEvents[_0x375fc0(0x23d)]),_0x52d5bd;const _0x48abe5=await this[_0x375fc0(0x1ce)](_0x2ebb32[_0x375fc0(0x1ff)](nestedKeyValue,_0x22d85d,[_0x2ebb32[_0x375fc0(0x229)],_0x2ebb32[_0x375fc0(0x193)]]),_0x24da0c);return PerformanceTester[_0x375fc0(0x258)](PerformanceEvents[_0x375fc0(0x23d)]),_0x48abe5;}return PerformanceTester[_0x375fc0(0x258)](PerformanceEvents[_0x375fc0(0x23d)]),_0x52d5bd;}static[a68_0x151ccb(0x263)](){const _0x47ddd3=a68_0x151ccb,_0x424515={'yvWnO':function(_0xf5fd99,_0x2a9f6b){return _0xf5fd99(_0x2a9f6b);},'iYCPK':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','jKHgJ':'cli','yLnzt':function(_0x324fa5,_0x2d8adf){return _0x324fa5(_0x2d8adf);}},_0x2cb5eb=this[_0x47ddd3(0x197)]();try{if(_0x424515[_0x47ddd3(0x1a2)](isNullOrEmpty,_0x2cb5eb))throw new Error(_0x424515['iYCPK']);const _0x38f83c=path[_0x47ddd3(0x227)](_0x2cb5eb,_0x424515[_0x47ddd3(0x244)]);return!fs[_0x47ddd3(0x1f5)](_0x38f83c)&&_0x424515[_0x47ddd3(0x1a3)](createDir,_0x38f83c),_0x38f83c;}catch(_0x6683c3){logger['debug'](_0x47ddd3(0x260)+util[_0x47ddd3(0x235)](_0x6683c3));}}static[a68_0x151ccb(0x197)](){const _0x5ed7ec=a68_0x151ccb,_0x46bef5={'xnEfX':'.browserstack','yJhix':function(_0x30b73f,_0x22b341){return _0x30b73f(_0x22b341);},'sRJux':function(_0x5593bd,_0x8facfd){return _0x5593bd(_0x8facfd);},'jDShS':function(_0xbd5220,_0x3612de){return _0xbd5220(_0x3612de);},'iDFRf':function(_0x4589ec,_0x3478b3){return _0x4589ec(_0x3478b3);}},_0x26139b=[process[_0x5ed7ec(0x1eb)][_0x5ed7ec(0x1cb)],path['join'](os['homedir'](),_0x46bef5[_0x5ed7ec(0x24d)]),path[_0x5ed7ec(0x227)](os['tmpdir'](),_0x46bef5[_0x5ed7ec(0x24d)])];for(const _0x141eeb of _0x26139b){if(_0x46bef5[_0x5ed7ec(0x236)](isNullOrEmpty,_0x141eeb))continue;try{if(fs[_0x5ed7ec(0x1f5)](_0x141eeb)){logger[_0x5ed7ec(0x248)](_0x5ed7ec(0x1fa)+_0x141eeb+_0x5ed7ec(0x1b1));if(!_0x46bef5[_0x5ed7ec(0x236)](isModifiable,_0x141eeb)){logger['debug'](_0x5ed7ec(0x25a)+_0x141eeb);const _0x3fbd93=_0x46bef5[_0x5ed7ec(0x222)](setReadWriteExecuteAccess,_0x141eeb);if(!_0x46bef5['jDShS'](isTrue,_0x3fbd93)){logger['warn'](_0x5ed7ec(0x24c)+_0x141eeb);continue;}}}else{logger[_0x5ed7ec(0x248)](_0x5ed7ec(0x23e)+_0x141eeb),_0x46bef5[_0x5ed7ec(0x222)](createDir,_0x141eeb),logger[_0x5ed7ec(0x248)](_0x5ed7ec(0x25a)+_0x141eeb);const _0x294863=_0x46bef5[_0x5ed7ec(0x222)](setReadWriteExecuteAccess,_0x141eeb);!_0x46bef5['iDFRf'](isTrue,_0x294863)&&logger[_0x5ed7ec(0x242)](_0x5ed7ec(0x24c)+_0x141eeb);}return _0x141eeb;}catch(_0xb53fdd){logger[_0x5ed7ec(0x1fc)](_0x5ed7ec(0x23a)+util['format'](_0xb53fdd));}}return null;}static[a68_0x151ccb(0x1c8)](_0x1e8e5f){const _0x17a32a=a68_0x151ccb,_0x2895cf={};_0x2895cf[_0x17a32a(0x1bb)]=function(_0x251d5b,_0xb95d26){return _0x251d5b>_0xb95d26;},_0x2895cf[_0x17a32a(0x1b5)]=function(_0x4901ab,_0x4d0cf4){return _0x4901ab>_0x4d0cf4;};const _0x428fbd=_0x2895cf;try{if(!fs[_0x17a32a(0x1f5)](_0x1e8e5f)||!fs[_0x17a32a(0x26f)](_0x1e8e5f)[_0x17a32a(0x1af)]())return'';const _0x29d6b6=fs['readdirSync'](_0x1e8e5f)[_0x17a32a(0x221)](_0x58666e=>path[_0x17a32a(0x227)](_0x1e8e5f,_0x58666e))['filter'](_0x1f96b8=>fs['statSync'](_0x1f96b8)[_0x17a32a(0x238)]()&&path[_0x17a32a(0x1e0)](_0x1f96b8)[_0x17a32a(0x1c3)](_0x17a32a(0x1e6)));if(_0x428fbd[_0x17a32a(0x1b5)](_0x29d6b6[_0x17a32a(0x1cf)],0x0)){const _0x5239e3=_0x29d6b6[_0x17a32a(0x221)](_0xcf75ec=>({'filePath':_0xcf75ec,'mtime':fs[_0x17a32a(0x26f)](_0xcf75ec)['mtime']}))[_0x17a32a(0x21b)]((_0x3301b9,_0x28bf4d)=>{const _0x5282e9=_0x17a32a;if(!_0x3301b9||!_0x3301b9['mtime'])return _0x28bf4d;if(_0x428fbd['RnyIN'](_0x28bf4d['mtime'],_0x3301b9[_0x5282e9(0x25e)]))return _0x28bf4d;return _0x3301b9;},{});return _0x5239e3?_0x5239e3[_0x17a32a(0x1ef)]:'';}return'';}catch(_0x1d3ef8){return logger[_0x17a32a(0x1fc)](_0x17a32a(0x195)+util[_0x17a32a(0x235)](_0x1d3ef8)),'';}}static [a68_0x151ccb(0x20e)]=async(_0x375812,_0x559cbb)=>{const _0x4a5de7=a68_0x151ccb,_0x15bdb9={'tnvwU':function(_0x341ce9,_0x2500e3,_0x82ab19,_0x167b45,_0x19d75d){return _0x341ce9(_0x2500e3,_0x82ab19,_0x167b45,_0x19d75d);},'fKgfH':_0x4a5de7(0x19e)},_0x267f91={};_0x267f91['qs']=_0x375812;const _0x1b02a3=await _0x15bdb9[_0x4a5de7(0x232)](nodeRequest,_0x15bdb9['fKgfH'],UPDATED_CLI_ENDPOINT,_0x267f91,_0x559cbb);return logger['debug'](_0x4a5de7(0x1d4)+JSON[_0x4a5de7(0x22a)](_0x1b02a3)),_0x1b02a3;};static['isBinaryBusy'](_0x44777e){const _0x211a3c=a68_0x151ccb;try{const _0x55a255=fs['openSync'](_0x44777e,'r+');return fs[_0x211a3c(0x1e2)](_0x55a255),![];}catch(_0x110e5f){if(BINARY_BUSY_ERROR_CODES['includes'](_0x110e5f[_0x211a3c(0x1d7)]))return logger[_0x211a3c(0x248)]('Binary\x20is\x20busy:\x20'+_0x44777e),!![];return logger[_0x211a3c(0x248)](_0x211a3c(0x1c6)+_0x110e5f[_0x211a3c(0x1fb)]),![];}}static[a68_0x151ccb(0x23b)](_0x2bfa72,_0x45c9b1=''){const _0x29f197=a68_0x151ccb,_0x4c3af0={'gAfqz':_0x29f197(0x1a7),'QWver':function(_0x5b8ba7,_0x263eb0){return _0x5b8ba7(_0x263eb0);},'fpYXx':_0x29f197(0x20b),'VbleQ':function(_0x1caeee,_0x541da4){return _0x1caeee(_0x541da4);},'nFfmq':function(_0x365fac,_0x18a4dc,_0x5e240c,_0x3744ae){return _0x365fac(_0x18a4dc,_0x5e240c,_0x3744ae);},'NOulu':_0x29f197(0x1fc)};return new Promise((_0x5407f2,_0x110abe)=>{const _0x568449=_0x29f197,_0x3daaf2={'joDsR':_0x4c3af0['gAfqz'],'oSNdC':function(_0x3f418f,_0x1bb435){return _0x4c3af0['QWver'](_0x3f418f,_0x1bb435);},'nBNir':_0x4c3af0[_0x568449(0x1b0)],'XYFIa':function(_0x31c6fc,_0x4bf5de){return _0x4c3af0['VbleQ'](_0x31c6fc,_0x4bf5de);},'XxsCk':function(_0x4c4972,_0x47827f){const _0x2cf1c2=_0x568449;return _0x4c3af0[_0x2cf1c2(0x1bd)](_0x4c4972,_0x47827f);}},_0x12e7ee={};_0x12e7ee[_0x568449(0x194)]=_0x45c9b1,_0x12e7ee[_0x568449(0x216)]=0x1388;const _0x17c301=_0x4c3af0[_0x568449(0x1a6)](exec,_0x2bfa72,_0x12e7ee,(_0x52b671,_0x4a0b28,_0x169c2e)=>{const _0x128773=_0x568449;if(_0x52b671){if(_0x2bfa72[_0x128773(0x209)](_0x3daaf2[_0x128773(0x1fd)])&&(_0x4a0b28[_0x128773(0x21f)]()||_0x169c2e['trim']())){const _0x1b8df0=_0x4a0b28[_0x128773(0x21f)]()||_0x169c2e[_0x128773(0x21f)]();logger[_0x128773(0x248)](_0x128773(0x267)+_0x1b8df0+'\x22'),_0x3daaf2['oSNdC'](_0x5407f2,_0x1b8df0);}else _0x3daaf2[_0x128773(0x1ca)](_0x5407f2,_0x169c2e[_0x128773(0x21f)]()||_0x3daaf2[_0x128773(0x1ed)]);}else logger[_0x128773(0x248)](_0x128773(0x1f0)+_0x4a0b28[_0x128773(0x21f)]()+'\x22'),_0x3daaf2[_0x128773(0x205)](_0x5407f2,_0x4a0b28[_0x128773(0x21f)]());});_0x17c301['on'](_0x4c3af0[_0x568449(0x26a)],()=>{const _0x511a3d=_0x568449;_0x3daaf2[_0x511a3d(0x233)](_0x5407f2,_0x3daaf2[_0x511a3d(0x1ed)]);});});}static [a68_0x151ccb(0x1ce)]=async(_0x457d24,_0x3747a1)=>{const _0xff754e=a68_0x151ccb,_0x8ace55={'mFdAW':function(_0x37c764,_0x4f6de9){return _0x37c764(_0x4f6de9);},'mgbqf':'Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','vajzQ':function(_0x7abb7,_0x482ce7){return _0x7abb7(_0x482ce7);},'WHals':_0xff754e(0x1d6),'dDOUn':_0xff754e(0x1fc),'eCpeZ':function(_0x5397fe,_0x184a23){return _0x5397fe(_0x184a23);}};PerformanceTester[_0xff754e(0x1b8)](PerformanceEvents['SDK_CLI_DOWNLOAD']),logger[_0xff754e(0x248)](_0xff754e(0x212)+_0x457d24);try{const _0x32d0f3=url[_0xff754e(0x24a)](_0x457d24),_0x57b0a8=path['join'](_0x3747a1,_0xff754e(0x259)+process[_0xff754e(0x1e5)]+'.zip'),_0x1743a2=fs[_0xff754e(0x20f)](_0x57b0a8);return new Promise((_0x2266c7,_0xdccc50)=>{const _0x10d711=_0xff754e,_0x58834d={'vUGGW':function(_0xa32aeb,_0x23582){return _0x8ace55['mFdAW'](_0xa32aeb,_0x23582);},'eAIeT':_0x8ace55[_0x10d711(0x198)],'iIpnU':function(_0x550981,_0x1a7ae3){const _0x475f7e=_0x10d711;return _0x8ace55[_0x475f7e(0x213)](_0x550981,_0x1a7ae3);},'Slhnf':_0x8ace55[_0x10d711(0x1bf)],'OPOvc':_0x8ace55[_0x10d711(0x21d)],'GbPqb':function(_0x3a97c8,_0x184749){return _0x8ace55['eCpeZ'](_0x3a97c8,_0x184749);}};https[_0x10d711(0x196)](_0x32d0f3,function(_0x58a282){const _0x1ea826=_0x10d711,_0x26e282={'zGOQo':_0x58834d[_0x1ea826(0x22e)],'mqKQM':function(_0x26574c,_0x66d3aa){return _0x58834d['iIpnU'](_0x26574c,_0x66d3aa);},'jdWpn':_0x58834d[_0x1ea826(0x19d)],'Vhkdg':function(_0x645668,_0x1a3689){const _0x7da834=_0x1ea826;return _0x58834d[_0x7da834(0x1dc)](_0x645668,_0x1a3689);}},_0x1c1229=null;_0x58a282[_0x1ea826(0x1d1)](_0x1743a2),_0x58a282['on'](_0x58834d['OPOvc'],function(_0xc75b49){const _0x4574c6=_0x1ea826;logger[_0x4574c6(0x1fc)](util[_0x4574c6(0x235)](_0x26e282['zGOQo'],_0xc75b49)),PerformanceTester[_0x4574c6(0x258)](PerformanceEvents[_0x4574c6(0x26c)],![],util[_0x4574c6(0x235)](_0xc75b49)),_0x26e282[_0x4574c6(0x253)](_0xdccc50,_0xc75b49);}),_0x1743a2['on'](_0x58834d['OPOvc'],function(_0x1e3136){const _0x1ef58c=_0x1ea826;logger[_0x1ef58c(0x1fc)](util['format'](_0x26e282[_0x1ef58c(0x22d)],_0x1e3136)),PerformanceTester[_0x1ef58c(0x258)](PerformanceEvents[_0x1ef58c(0x26c)],![],util[_0x1ef58c(0x235)](_0x1e3136)),_0x26e282[_0x1ef58c(0x272)](_0xdccc50,_0x1e3136);}),CLIUtils[_0x1ea826(0x266)](_0x1743a2,_0x1c1229,_0x57b0a8,_0x3747a1,_0x215d2a=>{const _0x55c2a5=_0x1ea826;PerformanceTester['end'](PerformanceEvents[_0x55c2a5(0x26c)]),_0x26e282[_0x55c2a5(0x272)](_0x2266c7,_0x215d2a);},_0x50c859=>{const _0x22d486=_0x1ea826;PerformanceTester['end'](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x22d486(0x235)](_0x50c859)),_0x58834d[_0x22d486(0x1dc)](_0xdccc50,_0x50c859);});})['on'](_0x8ace55[_0x10d711(0x21d)],function(_0x150aa2){const _0x5711bb=_0x10d711;logger[_0x5711bb(0x1fc)](_0x5711bb(0x20c)+util[_0x5711bb(0x235)](_0x150aa2)),PerformanceTester['end'](PerformanceEvents[_0x5711bb(0x26c)],![],util[_0x5711bb(0x235)](_0x150aa2)),_0x58834d['GbPqb'](_0xdccc50,_0x150aa2);});});}catch(_0x3c4129){PerformanceTester[_0xff754e(0x258)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util['format'](_0x3c4129)),logger[_0xff754e(0x248)](_0xff754e(0x252)+util['format'](_0x3c4129));}};static[a68_0x151ccb(0x266)](_0x4b42c4,_0x1914b5,_0xe6182e,_0x20a6df,_0x58653f,_0x14fa10){const _0x5766f7=a68_0x151ccb,_0x911fff={'tuOoo':function(_0x16c4d9,_0x1de2c9){return _0x16c4d9(_0x1de2c9);},'WjWHO':function(_0x456e73,_0x1a42ee){return _0x456e73!==_0x1a42ee;},'Lnpfj':_0x5766f7(0x1ae),'DLXYM':_0x5766f7(0x243),'KjBNr':function(_0x2b1247,_0x1871e8){return _0x2b1247(_0x1871e8);},'mnfpe':_0x5766f7(0x1b9),'IzaRC':'error','nMlZH':'end','LMfKb':_0x5766f7(0x218),'qqGfH':function(_0x5511f1,_0x106067){return _0x5511f1(_0x106067);}};_0x4b42c4['on'](_0x911fff['LMfKb'],function(){const _0x2877ff=_0x5766f7,_0x55bd9f={'DxZDH':_0x911fff[_0x2877ff(0x1aa)],'ZAucB':function(_0x264965,_0xc1d2f2){const _0x4eb326=_0x2877ff;return _0x911fff[_0x4eb326(0x207)](_0x264965,_0xc1d2f2);},'jbQPE':_0x911fff['nMlZH'],'rHogk':function(_0xc25bec,_0x5b9755){const _0x34ab82=_0x2877ff;return _0x911fff[_0x34ab82(0x20d)](_0xc25bec,_0x5b9755);},'EUzLO':_0x911fff[_0x2877ff(0x19a)]},_0x249252={};_0x249252[_0x2877ff(0x1d2)]=!![],yauzl['open'](_0xe6182e,_0x249252,function(_0x4aa04a,_0x3a5170){const _0x314ea1=_0x2877ff,_0x29ca13={'GIoSR':function(_0x4ab395,_0xf763f6){return _0x911fff['tuOoo'](_0x4ab395,_0xf763f6);},'IPcRW':function(_0x2b9f4f,_0x12e82f){return _0x911fff['tuOoo'](_0x2b9f4f,_0x12e82f);},'BlDCf':function(_0x36f9aa,_0x47e2e1){const _0x2b3b0d=a68_0x501b;return _0x911fff[_0x2b3b0d(0x20d)](_0x36f9aa,_0x47e2e1);},'RhIVz':_0x911fff[_0x314ea1(0x1d8)],'HMYHH':function(_0x4c31fc,_0x5d8c2b){const _0x161594=_0x314ea1;return _0x911fff[_0x161594(0x1cc)](_0x4c31fc,_0x5d8c2b);},'bZqKH':_0x911fff[_0x314ea1(0x1bc)]};if(_0x4aa04a){_0x911fff[_0x314ea1(0x1c0)](_0x14fa10,_0x4aa04a);return;}_0x3a5170['readEntry'](),_0x3a5170['on'](_0x911fff['mnfpe'],_0x59d343=>{const _0x4eca54=_0x314ea1,_0x3009e9={'Ktxdc':_0x55bd9f['DxZDH'],'wIVRi':function(_0x487810,_0x4719b9){return _0x55bd9f['ZAucB'](_0x487810,_0x4719b9);},'PNhlE':_0x55bd9f[_0x4eca54(0x1c1)]};if(/\/$/['test'](_0x59d343[_0x4eca54(0x206)])){_0x3a5170[_0x4eca54(0x24b)]();return;}!_0x1914b5&&(_0x1914b5=_0x59d343[_0x4eca54(0x206)]);if(_0x55bd9f['rHogk'](_0x59d343['fileName'],_0x1914b5))_0x3a5170['readEntry']();else{const _0x5dd7ed=_0x59d343[_0x4eca54(0x206)],_0x52821c=path[_0x4eca54(0x227)](_0x20a6df,_0x5dd7ed+_0x4eca54(0x273)+process['pid']);let _0x326fc3;try{_0x326fc3=fs[_0x4eca54(0x20f)](_0x52821c);}catch(_0x55db98){if(BINARY_BUSY_ERROR_CODES[_0x4eca54(0x209)](_0x55db98['code'])){const _0xbb54c5=path[_0x4eca54(0x227)](_0x20a6df,_0x5dd7ed);if(fs[_0x4eca54(0x1f5)](_0xbb54c5)){logger[_0x4eca54(0x242)](_0x4eca54(0x250)+_0x5dd7ed),fs[_0x4eca54(0x240)](_0xe6182e,_0x12b01c=>{const _0x418e60=_0x4eca54;_0x12b01c&&logger[_0x418e60(0x242)](_0x418e60(0x22f)+_0xe6182e);}),_0x55bd9f[_0x4eca54(0x230)](_0x58653f,_0xbb54c5);return;}logger[_0x4eca54(0x242)](_0x4eca54(0x1d9)+_0x5dd7ed);}_0x55bd9f['ZAucB'](_0x14fa10,_0x55db98);return;}_0x326fc3['on'](_0x55bd9f[_0x4eca54(0x215)],_0x190bbe=>{const _0x32dba1=_0x4eca54;if(BINARY_BUSY_ERROR_CODES[_0x32dba1(0x209)](_0x190bbe['code'])){const _0x48d0ac=path[_0x32dba1(0x227)](_0x20a6df,_0x5dd7ed);_0x326fc3['close'](),fs[_0x32dba1(0x1f5)](_0x48d0ac)?(logger[_0x32dba1(0x242)](_0x32dba1(0x1da)+_0x190bbe[_0x32dba1(0x1fb)]),_0x3a5170[_0x32dba1(0x218)](),fs[_0x32dba1(0x240)](_0xe6182e,_0x1d98fb=>{const _0x5e1efd=_0x32dba1;_0x1d98fb&&logger['warn'](_0x5e1efd(0x22f)+_0xe6182e);}),_0x29ca13['GIoSR'](_0x58653f,_0x48d0ac)):(logger[_0x32dba1(0x242)](_0x32dba1(0x224)+_0x190bbe[_0x32dba1(0x1fb)]),fs[_0x32dba1(0x240)](_0x52821c,()=>{}),_0x29ca13[_0x32dba1(0x1f2)](_0x14fa10,_0x190bbe));}else fs[_0x32dba1(0x240)](_0x52821c,()=>{}),_0x29ca13[_0x32dba1(0x1f2)](_0x14fa10,_0x190bbe);}),_0x3a5170[_0x4eca54(0x1a1)](_0x59d343,function(_0x5b233a,_0x9787e3){const _0x2aaead=_0x4eca54,_0x13d4e2={};_0x13d4e2[_0x2aaead(0x24f)]=_0x3009e9[_0x2aaead(0x234)];const _0x3f219a=_0x13d4e2;if(_0x5b233a){fs[_0x2aaead(0x240)](_0x52821c,()=>{}),_0x3009e9['wIVRi'](_0x14fa10,_0x5b233a);return;}_0x9787e3['on'](_0x3009e9[_0x2aaead(0x1f6)],function(){const _0x210976=_0x2aaead;_0x326fc3[_0x210976(0x258)](),_0x326fc3['on'](_0x3f219a[_0x210976(0x24f)],function(){const _0x3964e7=_0x210976;_0x3a5170[_0x3964e7(0x24b)]();});}),_0x9787e3[_0x2aaead(0x1d1)](_0x326fc3);});}}),_0x3a5170['on'](_0x911fff[_0x314ea1(0x19a)],_0x54bfdf=>{_0x55bd9f['ZAucB'](_0x14fa10,_0x54bfdf);}),_0x3a5170[_0x314ea1(0x1c4)](_0x911fff[_0x314ea1(0x249)],()=>{const _0x2f10ad=_0x314ea1,_0x20f6db={'EHIEK':function(_0x2591b6,_0x22ab8a){const _0x52ce88=a68_0x501b;return _0x29ca13[_0x52ce88(0x1c7)](_0x2591b6,_0x22ab8a);},'GqprI':_0x29ca13[_0x2f10ad(0x1f7)],'HEayS':function(_0x1dec17,_0x4ecd9b){const _0x5c35d2=_0x2f10ad;return _0x29ca13[_0x5c35d2(0x1f2)](_0x1dec17,_0x4ecd9b);},'DZIKg':function(_0x2cfca8,_0x20cc65){const _0x2e0bc3=_0x2f10ad;return _0x29ca13[_0x2e0bc3(0x1e4)](_0x2cfca8,_0x20cc65);}};fs[_0x2f10ad(0x240)](_0xe6182e,_0x56d9ce=>{const _0x13d0ba=_0x2f10ad;_0x56d9ce&&logger[_0x13d0ba(0x242)](_0x13d0ba(0x22f)+_0xe6182e);});const _0x19b2f3=path[_0x2f10ad(0x227)](_0x20a6df,_0x1914b5+_0x2f10ad(0x273)+process[_0x2f10ad(0x1e5)]),_0x3e2645=path[_0x2f10ad(0x227)](_0x20a6df,_0x1914b5);fs[_0x2f10ad(0x225)](_0x19b2f3,_0x29ca13[_0x2f10ad(0x264)],function(_0x20f801){const _0x38586b=_0x2f10ad;if(_0x20f801){_0x3a5170['close'](),fs[_0x38586b(0x240)](_0x19b2f3,()=>{}),_0x29ca13[_0x38586b(0x1c2)](_0x14fa10,_0x20f801);return;}fs[_0x38586b(0x1e3)](_0x19b2f3,_0x3e2645,function(_0x4b40b3){const _0x123d89=_0x38586b;if(_0x4b40b3){if(_0x20f6db[_0x123d89(0x1ea)](_0x4b40b3[_0x123d89(0x1d7)],_0x20f6db[_0x123d89(0x254)])){_0x3a5170['close'](),fs[_0x123d89(0x240)](_0x19b2f3,()=>{}),_0x20f6db[_0x123d89(0x20a)](_0x14fa10,_0x4b40b3);return;}logger[_0x123d89(0x242)](_0x123d89(0x251)+_0x4b40b3[_0x123d89(0x1fb)]);try{fs['copyFileSync'](_0x19b2f3,_0x3e2645);}catch(_0x298caa){_0x3a5170['close'](),fs[_0x123d89(0x240)](_0x19b2f3,()=>{}),_0x20f6db[_0x123d89(0x1a0)](_0x14fa10,_0x298caa);return;}fs[_0x123d89(0x240)](_0x19b2f3,_0x5803bb=>{const _0x262f04=_0x123d89;_0x5803bb&&logger['warn'](_0x262f04(0x25f)+_0x5803bb[_0x262f04(0x1fb)]);});}_0x3a5170[_0x123d89(0x218)](),_0x20f6db['DZIKg'](_0x58653f,_0x3e2645);});});});});});}static[a68_0x151ccb(0x255)](){const _0x6ddc4=a68_0x151ccb;if(process[_0x6ddc4(0x1eb)][_0x6ddc4(0x1a8)])return JSON[_0x6ddc4(0x24a)](process[_0x6ddc4(0x1eb)][_0x6ddc4(0x1a8)]);return this[_0x6ddc4(0x211)];}static['getAutomationFrameworkDetail'](){const _0x324518=a68_0x151ccb;if(process['env'][_0x324518(0x26e)])return JSON[_0x324518(0x24a)](process[_0x324518(0x1eb)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']);return this[_0x324518(0x1b2)];}static['setFrameworkDetail'](_0x215637,_0x5c53c0){const _0x28e8d0=a68_0x151ccb,_0x26dfad={'JaJCb':_0x28e8d0(0x21c),'PSlEx':function(_0x363626,_0x5244aa){return _0x363626||_0x5244aa;},'lKGge':function(_0x4701c3,_0x507903){return _0x4701c3(_0x507903);},'KuxQp':function(_0x1f5bdf,_0x2b2e36){return _0x1f5bdf(_0x2b2e36);}},_0x1e8d24=_0x26dfad['JaJCb'][_0x28e8d0(0x1ad)]('|');let _0x52029d=0x0;while(!![]){switch(_0x1e8d24[_0x52029d++]){case'0':_0x26dfad[_0x28e8d0(0x22b)](!_0x215637,!_0x5c53c0)&&logger[_0x28e8d0(0x248)](_0x28e8d0(0x1c5)+_0x215637+_0x28e8d0(0x1e7)+_0x5c53c0);continue;case'1':this[_0x28e8d0(0x211)]={'name':_0x215637,'version':{[_0x215637]:_0x26dfad['lKGge'](getFrameworkVersion,_0x215637)}};continue;case'2':this[_0x28e8d0(0x1b2)]={'name':_0x5c53c0,'version':_0x26dfad[_0x28e8d0(0x269)](getFrameworkVersion,_0x5c53c0)};continue;case'3':process[_0x28e8d0(0x1eb)][_0x28e8d0(0x1a8)]=JSON[_0x28e8d0(0x22a)](this[_0x28e8d0(0x211)]);continue;case'4':process[_0x28e8d0(0x1eb)][_0x28e8d0(0x26e)]=JSON['stringify'](this[_0x28e8d0(0x1b2)]);continue;}break;}}static['getHookRegistryKey'](_0xe87b10,_0x5a42f4){return _0xe87b10+':'+_0x5a42f4;}static[a68_0x151ccb(0x1a4)](){const _0xde209=a68_0x151ccb;return process[_0xde209(0x1e5)]+':'+threadId;}static[a68_0x151ccb(0x1f8)](_0x2df245){const _0xbfed0e=a68_0x151ccb;if(_0x2df245['testContextOptions']&&_0x2df245[_0xbfed0e(0x261)]['skipSessionName'])return!![];return![];}static[a68_0x151ccb(0x19c)](_0x138ac7){const _0x2d6a17=a68_0x151ccb;if(_0x138ac7['testContextOptions']&&_0x138ac7[_0x2d6a17(0x261)][_0x2d6a17(0x208)])return!![];return![];}static[a68_0x151ccb(0x201)](_0x10fd65){const _0x3db6e1=a68_0x151ccb,_0x50ad46=new RegExp(TestFrameworkConstants[_0x3db6e1(0x1d3)]);return _0x50ad46[_0x3db6e1(0x1f9)](_0x10fd65);}static[a68_0x151ccb(0x239)](_0x4e0ca2,_0x54f4b8){const _0x22ad3c=a68_0x151ccb,_0x21fbc1={};_0x21fbc1[_0x22ad3c(0x1ec)]=function(_0x457b83,_0x5e6b04){return _0x457b83!==_0x5e6b04;},_0x21fbc1[_0x22ad3c(0x22c)]=function(_0x1a3829,_0x4c894c){return _0x1a3829===_0x4c894c;},_0x21fbc1[_0x22ad3c(0x257)]=_0x22ad3c(0x1fe);const _0x5427b2=_0x21fbc1;for(const [_0x2b8aae,_0x3b0c56]of Object[_0x22ad3c(0x1a9)](_0x54f4b8)){if(_0x5427b2[_0x22ad3c(0x1ec)](_0x3b0c56,null)&&_0x5427b2[_0x22ad3c(0x22c)](typeof _0x3b0c56,_0x5427b2[_0x22ad3c(0x257)])&&!Array[_0x22ad3c(0x268)](_0x3b0c56))_0x4e0ca2[_0x2b8aae]=this[_0x22ad3c(0x239)](_0x4e0ca2[_0x2b8aae]||{},_0x3b0c56);else Array['isArray'](_0x3b0c56)?_0x4e0ca2[_0x2b8aae]=(_0x4e0ca2[_0x2b8aae]||[])[_0x22ad3c(0x262)](_0x3b0c56):_0x4e0ca2[_0x2b8aae]=_0x3b0c56;}return _0x4e0ca2;}}module[a68_0x151ccb(0x223)]=CLIUtils;function a68_0x56e6(){const _0x4811a1=['Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','vUGGW','jQzuq','child_process','../../helpers/performance/constants','basename','CLIUtils','closeSync','rename','HMYHH','pid','binary-',',\x20automationFramework=','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','url','EHIEK','env','TsQaG','nBNir','follow-redirects','filePath','Resolving\x20with\x20stdout:\x20\x22','lbitA','GIoSR','1818360GKixZA','./instances/testFrameworkInstance.js','existsSync','PNhlE','RhIVz','shouldSkipSessionName','test','Folder\x20','message','error','joDsR','object','Jkrup','6KDtbzW','matchHookRegex','../../helpers/helper','worker_threads','Current\x20CLI\x20Path\x20Found:\x20','XYFIa','fileName','qqGfH','skipSessionStatus','includes','HEayS','SHELL_EXECUTE_ERROR','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','WjWHO','requestToUpdateCLI','createWriteStream','../utils/apiUtilityMethods.js','testFrameworkDetail','Downloading\x20SDK\x20binary\x20from:\x20','vajzQ','../utils/constants','EUzLO','timeout','qCwNC','close','odjIX','./state/hookState.js','reduce','0|1|2|4|3','dDOUn','setupCliPath','trim','../../helpers/utilities','map','sRJux','exports','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','chmod','1229320OlAdRA','join','BROWSERSTACK_CLI_ENV','aAnSI','stringify','PSlEx','AqPrP','jdWpn','eAIeT','Failed\x20to\x20delete\x20zip\x20file:\x20','ZAucB','455658QgKUPq','tnvwU','XxsCk','Ktxdc','format','yJhix','../../helpers/performance/performance-tester.js','isFile','mergeObject','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','runShellCommand','SDK_CLI_BIN_PATH','SDK_CLI_CHECK_UPDATE','Folder\x20does\x20not\x20exist:\x20','data','unlink','yauzl','warn','0755','jKHgJ','isDevelopmentEnv','UiHFH','FGHDQ','debug','nMlZH','parse','readEntry','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','xnEfX','../../helpers/test-observability/utils.js','WuCwZ','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20','mqKQM','GqprI','getTestFrameworkDetail','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','CbhdC','end','downloaded_file_','Setting\x20required\x20permissions\x20to\x20','getSdkVersion','getCLIParamsForDevEnv','1731960gqjrFf','mtime','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','testContextOptions','concat','getCliDir','bZqKH','arch','downloadFileStream','CLI\x20version\x20found\x20despite\x20error:\x20\x22','isArray','KuxQp','NOulu','checkAndUpdateCli','SDK_CLI_DOWNLOAD','49076Nabwqg','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','statSync','../../../package.json','56274RaxvID','Vhkdg','.tmp.','NZkzz','pPkQt','cwd','Error\x20while\x20reading\x20CLI\x20path:\x20','get','getWritableDir','mgbqf','./state/testFrameworkState.js','IzaRC','../../helpers/classLogger.js','shouldSkipSessionStatus','Slhnf','GET','util','DZIKg','openReadStream','yvWnO','yLnzt','getCurrentInstanceName','BROWSERSTACK_BINARY_URL','nFfmq','version','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','entries','LMfKb','cli_version','hTavb','split','EXDEV','isDirectory','fpYXx','\x20already\x20exists','automationFrameworkDetail','452370DaCcGK','Resolved\x20binary\x20path:\x20','NksBP','./framework/constants/testFrameworkConstants.js','unix:/tmp/sdk-platform-','start','entry','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','RnyIN','DLXYM','QWver','yZSsf','WHals','KjBNr','jbQPE','IPcRW','startsWith','once','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','BlDCf','getExistingCliPath','4vroLdh','oSNdC','BROWSERSTACK_FILES_DIR','tuOoo','info','downloadLatestBinary','length','NqGFy','pipe','lazyEntries','HOOK_REGEX','response\x20','path','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','code','Lnpfj','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'];a68_0x56e6=function(){return _0x4811a1;};return a68_0x56e6();}
@@ -1 +1 @@
1
- 'use strict';const a69_0x553d62=a69_0x5f38;(function(_0x508790,_0x56b6f4){const _0x3178ea=a69_0x5f38,_0x436f2d=_0x508790();while(!![]){try{const _0x4f287b=-parseInt(_0x3178ea(0xc3))/0x1+-parseInt(_0x3178ea(0xcb))/0x2+-parseInt(_0x3178ea(0xc0))/0x3+parseInt(_0x3178ea(0xda))/0x4*(-parseInt(_0x3178ea(0xc9))/0x5)+-parseInt(_0x3178ea(0xbe))/0x6*(-parseInt(_0x3178ea(0xad))/0x7)+-parseInt(_0x3178ea(0xb5))/0x8*(parseInt(_0x3178ea(0xee))/0x9)+parseInt(_0x3178ea(0xf9))/0xa*(parseInt(_0x3178ea(0xa4))/0xb);if(_0x4f287b===_0x56b6f4)break;else _0x436f2d['push'](_0x436f2d['shift']());}catch(_0x442e57){_0x436f2d['push'](_0x436f2d['shift']());}}}(a69_0xfefe,0x32435));function a69_0x5f38(_0xb16d19,_0x5390d0){const _0xfefe89=a69_0xfefe();return a69_0x5f38=function(_0x5f38b9,_0x57eef6){_0x5f38b9=_0x5f38b9-0xa4;let _0x4b5613=_0xfefe89[_0x5f38b9];return _0x4b5613;},a69_0x5f38(_0xb16d19,_0x5390d0);}function a69_0xfefe(){const _0x225627=['getTestIdentifierFromTestInfo','./TestInfo','buildLevelTags','field_type','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','name','toObject','MODULE_NAME','stringify','includes','KgzHN','getTestDetails','getTestFrameworkDetail','732392mWmsVd','xbtxm','isRunning','./modules/testhubModule','QkunW','getTrackedInstance',',\x20values=',':jest-','getTestLevelTags','Custom\x20tag\x20key\x20cannot\x20be\x20empty','./state/hookState','../../helpers/helper','getTestFramework','gmrlh','addMultipleEntries','../../helpers/classLogger','testInfo','KEY_TEST_ID','__workerDetails','modules','1026567ZqvNok','testLevelTags','getTestUUID','saxQK','clearTags','parseCommaSeparatedValues','kSCcP','values','KEY_CUSTOM_TAGS','toLowerCase','Custom\x20tag\x20value\x20cannot\x20be\x20empty','10aMyRFK','currentTest','jest','[CustomTagManager]\x20setCustomTags:\x20Created\x20new\x20tag\x20key=','14658138XLtCLU','qrGCk','ThPCR','Custom\x20tag\x20value\x20must\x20be\x20a\x20string','./modules/playwrightDriverModule','axOcI','DGkzh','\x20with\x20values=','__jestCurrentTestIdentifier','14AmKShe','./state/testFrameworkState','CustomTagManager','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','POST','string','debug','[CustomTagManager]\x20setCustomTags:\x20Updated\x20existing\x20tag\x20key=','16cWiTeH','setTestDetails','retry','IUzNv','buildHashedId','getBuildLevelTags','./browserstackCLI','mlHjV','resolveInstance','1119432qNxbVH','OhCZy','1068411nKRNzA','SpERt','PKYMs','352843MvGsBk','getInstance','\x20with\x20new\x20values=','./cliUtils','./framework/constants/testFrameworkConstants','getState','5SkdCVM','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','759242tumwKS','exports'];a69_0xfefe=function(){return _0x225627;};return a69_0xfefe();}const BrowserstackCLI=require(a69_0x553d62(0xbb)),helper=require(a69_0x553d62(0xe5)),AutomationFramework=require('./framework/automationFramework'),TestFrameworkConstants=require(a69_0x553d62(0xc7)),PlaywrightDriverModule=require(a69_0x553d62(0xa8)),TestInfo=require(a69_0x553d62(0xce)),TestHubModule=require(a69_0x553d62(0xdd)),{createClassLogger}=require(a69_0x553d62(0xe9)),logger=createClassLogger(a69_0x553d62(0xaf));class CustomTagManager{static [a69_0x553d62(0xcf)]={};static ['testLevelTags']={};static['setCustomTags'](_0x1253dc,_0x1d22dc,_0x40eecf=![]){const _0x2c743e=a69_0x553d62,_0x10f580={'IUzNv':function(_0x244d85,_0x14e45a){return _0x244d85!==_0x14e45a;},'xbtxm':_0x2c743e(0xb2),'ThPCR':'Custom\x20tag\x20key\x20must\x20be\x20a\x20string','SpERt':_0x2c743e(0xa7),'QkunW':function(_0x3b7537,_0x343375){return _0x3b7537===_0x343375;},'gmrlh':_0x2c743e(0xe3),'OhCZy':function(_0x5f500d,_0x3887d3){return _0x5f500d===_0x3887d3;},'nMuBQ':_0x2c743e(0xf8),'axOcI':'multi_dropdown','buGvN':_0x2c743e(0xe1),'saxQK':function(_0x482c73,_0x123e64){return _0x482c73(_0x123e64);},'kSCcP':_0x2c743e(0xc6),'qrGCk':_0x2c743e(0xfb),'fJFCK':'CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','ijbmw':'CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','DGkzh':_0x2c743e(0xae),'PKYMs':function(_0xeecaf7,_0x1cd4a6){return _0xeecaf7(_0x1cd4a6);},'KgzHN':_0x2c743e(0xe4),'mlHjV':_0x2c743e(0xd1)};if(_0x10f580[_0x2c743e(0xb8)](typeof _0x1253dc,_0x10f580[_0x2c743e(0xdb)]))throw new Error(_0x10f580[_0x2c743e(0xa6)]);if(_0x10f580['IUzNv'](typeof _0x1d22dc,_0x10f580[_0x2c743e(0xdb)]))throw new Error(_0x10f580[_0x2c743e(0xc1)]);if(_0x10f580[_0x2c743e(0xde)](_0x1253dc['trim'](),''))throw new Error(_0x10f580[_0x2c743e(0xe7)]);if(_0x10f580[_0x2c743e(0xbf)](_0x1d22dc['trim'](),''))throw new Error(_0x10f580['nMuBQ']);const _0x502e64=helper[_0x2c743e(0xf3)](_0x1d22dc);if(_0x40eecf){const _0x1f9106=BrowserstackCLI['getInstance']()[_0x2c743e(0xed)][TestHubModule[_0x2c743e(0xd4)]];if(_0x1f9106){const _0x3bfcd5=_0x1f9106?.['testhubConfig']?.[_0x2c743e(0xd3)]()?.[_0x2c743e(0xb9)];TestInfo[_0x2c743e(0xf0)](_0x3bfcd5);const _0x4a7046=TestInfo[_0x2c743e(0xd8)](_0x3bfcd5),_0x5be220=_0x4a7046[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};if(!_0x5be220[_0x1253dc]){const _0x230f49={};_0x230f49[_0x2c743e(0xd0)]=_0x10f580[_0x2c743e(0xa9)],_0x230f49[_0x2c743e(0xf5)]=[..._0x502e64],_0x5be220[_0x1253dc]=_0x230f49;}else _0x5be220[_0x1253dc][_0x2c743e(0xf5)]=[..._0x502e64];_0x4a7046[TestFrameworkConstants[_0x2c743e(0xf6)]]=_0x5be220,TestInfo['setTestDetails'](_0x3bfcd5,_0x4a7046),!this['buildLevelTags'][_0x3bfcd5]&&(this[_0x2c743e(0xcf)][_0x3bfcd5]={}),this[_0x2c743e(0xcf)][_0x3bfcd5][_0x1253dc]=[..._0x502e64];}}else{let _0x53ac91;const _0x56ae4d=global[_0x2c743e(0xac)];let _0x1b0bfa=![];if(_0x56ae4d&&_0x56ae4d[_0x2c743e(0xd6)](_0x10f580['buGvN']))_0x1b0bfa=!![],_0x53ac91=_0x56ae4d;else try{const _0x7b5967=_0x10f580[_0x2c743e(0xf1)](require,_0x10f580[_0x2c743e(0xf4)]);if(BrowserstackCLI[_0x2c743e(0xc4)]()[_0x2c743e(0xdc)]()){const _0x2c6228=_0x7b5967[_0x2c743e(0xd9)]();if(_0x10f580[_0x2c743e(0xbf)](_0x2c6228?.[_0x2c743e(0xd2)]?.[_0x2c743e(0xf7)](),_0x10f580[_0x2c743e(0xa5)])){const _0x5f36e9=AutomationFramework[_0x2c743e(0xdf)]();_0x53ac91=AutomationFramework['getState'](_0x5f36e9,PlaywrightDriverModule[_0x2c743e(0xeb)],''),_0x53ac91&&_0x53ac91[_0x2c743e(0xd6)](_0x10f580['buGvN'])&&(_0x1b0bfa=!![]);}}}catch(_0x705330){logger[_0x2c743e(0xb3)](_0x2c743e(0xb0)+_0x705330);}if(_0x1b0bfa){if(!_0x53ac91)throw new Error(_0x10f580['fJFCK']);const _0x28d794=BrowserstackCLI[_0x2c743e(0xc4)]()[_0x2c743e(0xe6)]();if(!_0x28d794)throw new Error(_0x10f580['ijbmw']);const _0x240e0b=_0x10f580[_0x2c743e(0xf1)](require,_0x10f580[_0x2c743e(0xaa)]),_0x254892=_0x10f580[_0x2c743e(0xc2)](require,_0x10f580[_0x2c743e(0xd7)]),_0xd3aa7d=_0x28d794[_0x2c743e(0xbd)](_0x240e0b['TEST'],_0x254892[_0x2c743e(0xb1)]);if(!_0xd3aa7d)throw new Error(_0x10f580[_0x2c743e(0xbc)]);const _0x10b593=_0xd3aa7d['getAllData']()['get'](_0x53ac91)||{},_0x5a5738=_0x10b593[TestFrameworkConstants[_0x2c743e(0xf6)]]||{};logger[_0x2c743e(0xb3)](_0x2c743e(0xca)+_0x53ac91+',\x20key='+_0x1253dc+_0x2c743e(0xe0)+JSON[_0x2c743e(0xd5)](_0x502e64)+',\x20existingTags='+JSON[_0x2c743e(0xd5)](_0x5a5738));if(!_0x5a5738[_0x1253dc]){const _0x51ca4f={};_0x51ca4f[_0x2c743e(0xd0)]=_0x10f580[_0x2c743e(0xa9)],_0x51ca4f[_0x2c743e(0xf5)]=[..._0x502e64],_0x5a5738[_0x1253dc]=_0x51ca4f,logger[_0x2c743e(0xb3)](_0x2c743e(0xfc)+_0x1253dc+_0x2c743e(0xab)+JSON['stringify'](_0x502e64));}else _0x5a5738[_0x1253dc][_0x2c743e(0xf5)]=[..._0x502e64],logger[_0x2c743e(0xb3)](_0x2c743e(0xb4)+_0x1253dc+_0x2c743e(0xc5)+JSON[_0x2c743e(0xd5)](_0x502e64));const _0x47c857={[TestFrameworkConstants[_0x2c743e(0xf6)]]:_0x5a5738},_0x291ec9={};_0x291ec9[_0x53ac91]=_0x47c857,_0xd3aa7d[_0x2c743e(0xe8)](_0x291ec9),logger[_0x2c743e(0xb3)]('[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier='+_0x53ac91+',\x20finalTags='+JSON['stringify'](_0x5a5738)),!this[_0x2c743e(0xef)][_0x53ac91]&&(this['testLevelTags'][_0x53ac91]={}),this['testLevelTags'][_0x53ac91][_0x1253dc]=[..._0x502e64];}else{const _0x53f2e0=global[_0x2c743e(0xec)]?.[_0x2c743e(0xfa)]?.[_0x2c743e(0xea)];if(!_0x53f2e0){const _0x417fe8=AutomationFramework[_0x2c743e(0xdf)]();_0x53ac91=AutomationFramework[_0x2c743e(0xc8)](_0x417fe8,PlaywrightDriverModule[_0x2c743e(0xeb)],'');}else _0x53ac91=TestInfo[_0x2c743e(0xcd)](_0x53f2e0,_0x53f2e0[_0x2c743e(0xb7)]);const _0x56fd81=TestInfo['getTestDetails'](_0x53ac91),_0x16caea=_0x56fd81[TestFrameworkConstants[_0x2c743e(0xf6)]]||{};if(!_0x16caea[_0x1253dc]){const _0x24c08c={};_0x24c08c[_0x2c743e(0xd0)]=_0x10f580[_0x2c743e(0xa9)],_0x24c08c[_0x2c743e(0xf5)]=[..._0x502e64],_0x16caea[_0x1253dc]=_0x24c08c;}else _0x16caea[_0x1253dc][_0x2c743e(0xf5)]=[..._0x502e64];_0x56fd81[TestFrameworkConstants[_0x2c743e(0xf6)]]=_0x16caea,TestInfo[_0x2c743e(0xb6)](_0x53ac91,_0x56fd81),!this[_0x2c743e(0xef)][_0x53ac91]&&(this[_0x2c743e(0xef)][_0x53ac91]={}),this[_0x2c743e(0xef)][_0x53ac91][_0x1253dc]=[..._0x502e64];}}}static[a69_0x553d62(0xba)](){const _0x3c6137=a69_0x553d62,_0x12a2cf={...this[_0x3c6137(0xcf)]};return _0x12a2cf;}static[a69_0x553d62(0xe2)](){const _0x4071e3=a69_0x553d62,_0x15e963={...this[_0x4071e3(0xef)]};return _0x15e963;}static[a69_0x553d62(0xf2)](){const _0x419ca7=a69_0x553d62;this[_0x419ca7(0xcf)]={},this['testLevelTags']={};}}module[a69_0x553d62(0xcc)]=CustomTagManager;
1
+ 'use strict';const a69_0x5d1eb9=a69_0x4250;(function(_0x4ceffb,_0x3bc4b7){const _0x301605=a69_0x4250,_0x18ba31=_0x4ceffb();while(!![]){try{const _0x2ca401=parseInt(_0x301605(0x162))/0x1+parseInt(_0x301605(0x16c))/0x2*(-parseInt(_0x301605(0x172))/0x3)+-parseInt(_0x301605(0x128))/0x4+parseInt(_0x301605(0x15e))/0x5*(parseInt(_0x301605(0x159))/0x6)+-parseInt(_0x301605(0x154))/0x7*(parseInt(_0x301605(0x126))/0x8)+-parseInt(_0x301605(0x171))/0x9*(-parseInt(_0x301605(0x131))/0xa)+-parseInt(_0x301605(0x169))/0xb;if(_0x2ca401===_0x3bc4b7)break;else _0x18ba31['push'](_0x18ba31['shift']());}catch(_0x4baf04){_0x18ba31['push'](_0x18ba31['shift']());}}}(a69_0x4d25,0x51208));function a69_0x4d25(){const _0x5d4468=['./framework/automationFramework','[CustomTagManager]\x20setCustomTags:\x20Created\x20new\x20tag\x20key=','KEY_TEST_ID','QRSoD','stringify','getTestUUID','includes','__workerDetails','toLowerCase','get','isRunning','TEST','\x20with\x20new\x20values=','./state/hookState','buildLevelTags',',\x20finalTags=','WmbOM','getInstance','testhubConfig','addMultipleEntries','4390911NobsIC','parseCommaSeparatedValues','toObject','./cliUtils','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','1965102AtSYOH','field_type','jest','multi_dropdown','vjNSc','10wyvZKW','./TestInfo','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','QrVPX','130500mXUVnh','getAllData','./modules/playwrightDriverModule','LGETa','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','FuwXA','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','384208brpLAh','buildHashedId','Custom\x20tag\x20value\x20cannot\x20be\x20empty','263830JoTzEh','POST','../../helpers/helper','CustomTagManager','XQGQM','2497149RPtmYs','3rJsSts','aEpxG','debug',',\x20values=','PxIyt','trim','name','vgray','8cvYubq','./modules/testhubModule','856176hAVMfO','./framework/constants/testFrameworkConstants','getTestFrameworkDetail','KEY_CUSTOM_TAGS','getState','getTestFramework','LvBBI','getTrackedInstance',':jest-','20IhcqfR','testLevelTags','values','rRKUF','./state/testFrameworkState','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','clearTags','ovUVy','modules','getTestLevelTags','resolveInstance',',\x20key=','testInfo',',\x20existingTags=','Custom\x20tag\x20value\x20must\x20be\x20a\x20string'];a69_0x4d25=function(){return _0x5d4468;};return a69_0x4d25();}const BrowserstackCLI=require('./browserstackCLI'),helper=require(a69_0x5d1eb9(0x16e)),AutomationFramework=require(a69_0x5d1eb9(0x140)),TestFrameworkConstants=require(a69_0x5d1eb9(0x129)),PlaywrightDriverModule=require(a69_0x5d1eb9(0x164)),TestInfo=require(a69_0x5d1eb9(0x15f)),TestHubModule=require(a69_0x5d1eb9(0x127)),{createClassLogger}=require('../../helpers/classLogger'),logger=createClassLogger(a69_0x5d1eb9(0x16f));function a69_0x4250(_0x31c567,_0x209e77){const _0x4d256e=a69_0x4d25();return a69_0x4250=function(_0x425064,_0x449918){_0x425064=_0x425064-0x121;let _0x115ff8=_0x4d256e[_0x425064];return _0x115ff8;},a69_0x4250(_0x31c567,_0x209e77);}class CustomTagManager{static [a69_0x5d1eb9(0x14e)]={};static ['testLevelTags']={};static['setCustomTags'](_0x5c8450,_0x30e509,_0x1e9723=![]){const _0x3c17cf=a69_0x5d1eb9,_0x4bc39c={'FuwXA':function(_0x190cac,_0x3c26f0){return _0x190cac!==_0x3c26f0;},'PxIyt':'string','LGETa':'Custom\x20tag\x20key\x20must\x20be\x20a\x20string','VyVya':function(_0xe69da3,_0x1d68d9){return _0xe69da3!==_0x1d68d9;},'LZGFI':_0x3c17cf(0x13f),'vAUIg':function(_0x1ba8d5,_0x317058){return _0x1ba8d5===_0x317058;},'LvBBI':'Custom\x20tag\x20key\x20cannot\x20be\x20empty','ovUVy':function(_0x31b5e6,_0x12821c){return _0x31b5e6===_0x12821c;},'QrVPX':_0x3c17cf(0x16b),'vjNSc':_0x3c17cf(0x15c),'THaim':_0x3c17cf(0x130),'WmbOM':function(_0x3c8128,_0x3bd821){return _0x3c8128(_0x3bd821);},'QRSoD':_0x3c17cf(0x157),'rCJvX':function(_0x4c8dc6,_0x3ba413){return _0x4c8dc6===_0x3ba413;},'vgray':_0x3c17cf(0x15b),'aEpxG':_0x3c17cf(0x160),'rRKUF':_0x3c17cf(0x158),'RXwxr':_0x3c17cf(0x135),'hHFXf':_0x3c17cf(0x14d),'XQGQM':_0x3c17cf(0x136)};if(_0x4bc39c[_0x3c17cf(0x167)](typeof _0x5c8450,_0x4bc39c[_0x3c17cf(0x122)]))throw new Error(_0x4bc39c[_0x3c17cf(0x165)]);if(_0x4bc39c['VyVya'](typeof _0x30e509,_0x4bc39c[_0x3c17cf(0x122)]))throw new Error(_0x4bc39c['LZGFI']);if(_0x4bc39c['vAUIg'](_0x5c8450[_0x3c17cf(0x123)](),''))throw new Error(_0x4bc39c[_0x3c17cf(0x12e)]);if(_0x4bc39c[_0x3c17cf(0x138)](_0x30e509[_0x3c17cf(0x123)](),''))throw new Error(_0x4bc39c[_0x3c17cf(0x161)]);const _0x465c0a=helper[_0x3c17cf(0x155)](_0x30e509);if(_0x1e9723){const _0x166d40=BrowserstackCLI[_0x3c17cf(0x151)]()[_0x3c17cf(0x139)][TestHubModule['MODULE_NAME']];if(_0x166d40){const _0x33d270=_0x166d40?.[_0x3c17cf(0x152)]?.[_0x3c17cf(0x156)]()?.[_0x3c17cf(0x16a)];TestInfo[_0x3c17cf(0x145)](_0x33d270);const _0xb2b69d=TestInfo['getTestDetails'](_0x33d270),_0x64dc35=_0xb2b69d[TestFrameworkConstants[_0x3c17cf(0x12b)]]||{};if(!_0x64dc35[_0x5c8450]){const _0x321780={};_0x321780[_0x3c17cf(0x15a)]=_0x4bc39c[_0x3c17cf(0x15d)],_0x321780[_0x3c17cf(0x133)]=[..._0x465c0a],_0x64dc35[_0x5c8450]=_0x321780;}else _0x64dc35[_0x5c8450][_0x3c17cf(0x133)]=[..._0x465c0a];_0xb2b69d[TestFrameworkConstants[_0x3c17cf(0x12b)]]=_0x64dc35,TestInfo['setTestDetails'](_0x33d270,_0xb2b69d),!this[_0x3c17cf(0x14e)][_0x33d270]&&(this['buildLevelTags'][_0x33d270]={}),this[_0x3c17cf(0x14e)][_0x33d270][_0x5c8450]=[..._0x465c0a];}}else{let _0x3668b1;const _0x457a88=global['__jestCurrentTestIdentifier'];let _0x39ce04=![];if(_0x457a88&&_0x457a88[_0x3c17cf(0x146)](_0x4bc39c['THaim']))_0x39ce04=!![],_0x3668b1=_0x457a88;else try{const _0x1b3f57=_0x4bc39c['WmbOM'](require,_0x4bc39c[_0x3c17cf(0x143)]);if(BrowserstackCLI[_0x3c17cf(0x151)]()[_0x3c17cf(0x14a)]()){const _0x3c5e49=_0x1b3f57[_0x3c17cf(0x12a)]();if(_0x4bc39c['rCJvX'](_0x3c5e49?.[_0x3c17cf(0x124)]?.[_0x3c17cf(0x148)](),_0x4bc39c[_0x3c17cf(0x125)])){const _0x31fd0e=AutomationFramework['getTrackedInstance']();_0x3668b1=AutomationFramework[_0x3c17cf(0x12c)](_0x31fd0e,PlaywrightDriverModule[_0x3c17cf(0x142)],''),_0x3668b1&&_0x3668b1[_0x3c17cf(0x146)](_0x4bc39c['THaim'])&&(_0x39ce04=!![]);}}}catch(_0x21266f){logger['debug']('CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20'+_0x21266f);}if(_0x39ce04){if(!_0x3668b1)throw new Error(_0x4bc39c[_0x3c17cf(0x173)]);const _0x4f88d3=BrowserstackCLI[_0x3c17cf(0x151)]()[_0x3c17cf(0x12d)]();if(!_0x4f88d3)throw new Error(_0x4bc39c[_0x3c17cf(0x134)]);const _0x272b50=_0x4bc39c['WmbOM'](require,_0x4bc39c['RXwxr']),_0x2f5e17=_0x4bc39c[_0x3c17cf(0x150)](require,_0x4bc39c['hHFXf']),_0x218a09=_0x4f88d3[_0x3c17cf(0x13b)](_0x272b50[_0x3c17cf(0x14b)],_0x2f5e17[_0x3c17cf(0x16d)]);if(!_0x218a09)throw new Error(_0x4bc39c[_0x3c17cf(0x170)]);const _0x1020c6=_0x218a09[_0x3c17cf(0x163)]()[_0x3c17cf(0x149)](_0x3668b1)||{},_0x16700b=_0x1020c6[TestFrameworkConstants[_0x3c17cf(0x12b)]]||{};logger['debug'](_0x3c17cf(0x166)+_0x3668b1+_0x3c17cf(0x13c)+_0x5c8450+_0x3c17cf(0x121)+JSON[_0x3c17cf(0x144)](_0x465c0a)+_0x3c17cf(0x13e)+JSON[_0x3c17cf(0x144)](_0x16700b));if(!_0x16700b[_0x5c8450]){const _0x235ef2={};_0x235ef2[_0x3c17cf(0x15a)]=_0x4bc39c[_0x3c17cf(0x15d)],_0x235ef2[_0x3c17cf(0x133)]=[..._0x465c0a],_0x16700b[_0x5c8450]=_0x235ef2,logger[_0x3c17cf(0x174)](_0x3c17cf(0x141)+_0x5c8450+'\x20with\x20values='+JSON['stringify'](_0x465c0a));}else _0x16700b[_0x5c8450][_0x3c17cf(0x133)]=[..._0x465c0a],logger['debug']('[CustomTagManager]\x20setCustomTags:\x20Updated\x20existing\x20tag\x20key='+_0x5c8450+_0x3c17cf(0x14c)+JSON[_0x3c17cf(0x144)](_0x465c0a));const _0x346eaa={[TestFrameworkConstants[_0x3c17cf(0x12b)]]:_0x16700b},_0x2b19f8={};_0x2b19f8[_0x3668b1]=_0x346eaa,_0x218a09[_0x3c17cf(0x153)](_0x2b19f8),logger['debug'](_0x3c17cf(0x168)+_0x3668b1+_0x3c17cf(0x14f)+JSON['stringify'](_0x16700b)),!this[_0x3c17cf(0x132)][_0x3668b1]&&(this['testLevelTags'][_0x3668b1]={}),this[_0x3c17cf(0x132)][_0x3668b1][_0x5c8450]=[..._0x465c0a];}else{const _0x4fc718=global[_0x3c17cf(0x147)]?.['currentTest']?.[_0x3c17cf(0x13d)];if(!_0x4fc718){const _0x205a4e=AutomationFramework[_0x3c17cf(0x12f)]();_0x3668b1=AutomationFramework[_0x3c17cf(0x12c)](_0x205a4e,PlaywrightDriverModule[_0x3c17cf(0x142)],'');}else _0x3668b1=TestInfo['getTestIdentifierFromTestInfo'](_0x4fc718,_0x4fc718['retry']);const _0x4ed6ed=TestInfo['getTestDetails'](_0x3668b1),_0x18010d=_0x4ed6ed[TestFrameworkConstants[_0x3c17cf(0x12b)]]||{};if(!_0x18010d[_0x5c8450]){const _0x3db4f8={};_0x3db4f8[_0x3c17cf(0x15a)]=_0x4bc39c[_0x3c17cf(0x15d)],_0x3db4f8['values']=[..._0x465c0a],_0x18010d[_0x5c8450]=_0x3db4f8;}else _0x18010d[_0x5c8450][_0x3c17cf(0x133)]=[..._0x465c0a];_0x4ed6ed[TestFrameworkConstants[_0x3c17cf(0x12b)]]=_0x18010d,TestInfo['setTestDetails'](_0x3668b1,_0x4ed6ed),!this[_0x3c17cf(0x132)][_0x3668b1]&&(this[_0x3c17cf(0x132)][_0x3668b1]={}),this[_0x3c17cf(0x132)][_0x3668b1][_0x5c8450]=[..._0x465c0a];}}}static['getBuildLevelTags'](){const _0x56478d={...this['buildLevelTags']};return _0x56478d;}static[a69_0x5d1eb9(0x13a)](){const _0x14a747=a69_0x5d1eb9,_0x1b950f={...this[_0x14a747(0x132)]};return _0x1b950f;}static[a69_0x5d1eb9(0x137)](){const _0x227a28=a69_0x5d1eb9;this[_0x227a28(0x14e)]={},this['testLevelTags']={};}}module['exports']=CustomTagManager;
@@ -1 +1 @@
1
- const a70_0x1000ed=a70_0x1bf9;function a70_0x1bf9(_0x3392c5,_0x34cb68){const _0xca7a1f=a70_0xca7a();return a70_0x1bf9=function(_0x1bf9e3,_0x470aeb){_0x1bf9e3=_0x1bf9e3-0x1bf;let _0x45828e=_0xca7a1f[_0x1bf9e3];return _0x45828e;},a70_0x1bf9(_0x3392c5,_0x34cb68);}(function(_0x123c33,_0x22883e){const _0x162241=a70_0x1bf9,_0xe53e24=_0x123c33();while(!![]){try{const _0x409015=-parseInt(_0x162241(0x1c1))/0x1+parseInt(_0x162241(0x1c6))/0x2+-parseInt(_0x162241(0x1c5))/0x3+-parseInt(_0x162241(0x1d0))/0x4*(-parseInt(_0x162241(0x1c2))/0x5)+-parseInt(_0x162241(0x1cb))/0x6*(-parseInt(_0x162241(0x1cc))/0x7)+parseInt(_0x162241(0x1c9))/0x8*(parseInt(_0x162241(0x1c3))/0x9)+-parseInt(_0x162241(0x1c0))/0xa*(parseInt(_0x162241(0x1c7))/0xb);if(_0x409015===_0x22883e)break;else _0xe53e24['push'](_0xe53e24['shift']());}catch(_0x22ecf4){_0xe53e24['push'](_0xe53e24['shift']());}}}(a70_0xca7a,0xf2266));function a70_0xca7a(){const _0x49a8d9=['56914vkPsLS','push','4808EQrlPE','../../helpers/classLogger.js','10158cPBcWq','3143isAFIG','observers','freeze','tuQlU','88UBkewh','registerObserver','770FQBxni','1093178OPXuiT','119270DxfohU','9783nEzuON','notifyObserver','3552678jNEpve','3458832EanIVn'];a70_0xca7a=function(){return _0x49a8d9;};return a70_0xca7a();}const {createClassLogger}=require(a70_0x1000ed(0x1ca));class EventDispatcher{static #instance=null;constructor(){const _0x1e96f7=a70_0x1000ed;this[_0x1e96f7(0x1cd)]={};}static['getInstance'](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a70_0x1000ed(0x1bf)](_0x5981fb,_0xb8359c){const _0x5b22b8=a70_0x1000ed;!this[_0x5b22b8(0x1cd)][_0x5981fb]&&(this['observers'][_0x5981fb]=[]),this[_0x5b22b8(0x1cd)][_0x5981fb][_0x5b22b8(0x1c8)](_0xb8359c);}async[a70_0x1000ed(0x1c4)](_0x1f8587,_0x3148b5){const _0x202b46=a70_0x1000ed,_0x340306={'tuQlU':function(_0x4d1fe4,_0x1dd40a){return _0x4d1fe4(_0x1dd40a);}};if(this[_0x202b46(0x1cd)][_0x1f8587]){for(const _0x27483c of this['observers'][_0x1f8587]){await _0x340306[_0x202b46(0x1cf)](_0x27483c,_0x3148b5);}return;}}}const eventDispatcher=EventDispatcher['getInstance']();Object[a70_0x1000ed(0x1ce)](eventDispatcher),module['exports']=eventDispatcher;
1
+ const a70_0x28d230=a70_0x47c2;(function(_0x152976,_0x2a9f72){const _0x914076=a70_0x47c2,_0x1bfefd=_0x152976();while(!![]){try{const _0x255906=parseInt(_0x914076(0x110))/0x1+-parseInt(_0x914076(0x113))/0x2*(parseInt(_0x914076(0x120))/0x3)+-parseInt(_0x914076(0x118))/0x4*(-parseInt(_0x914076(0x114))/0x5)+parseInt(_0x914076(0x11c))/0x6+-parseInt(_0x914076(0x123))/0x7*(-parseInt(_0x914076(0x11e))/0x8)+parseInt(_0x914076(0x11a))/0x9+parseInt(_0x914076(0x115))/0xa*(-parseInt(_0x914076(0x117))/0xb);if(_0x255906===_0x2a9f72)break;else _0x1bfefd['push'](_0x1bfefd['shift']());}catch(_0x475053){_0x1bfefd['push'](_0x1bfefd['shift']());}}}(a70_0x44ab,0xeb9ba));function a70_0x47c2(_0x56e736,_0x8f6aa8){const _0x44abb4=a70_0x44ab();return a70_0x47c2=function(_0x47c2fe,_0x57d043){_0x47c2fe=_0x47c2fe-0x110;let _0x421f1b=_0x44abb4[_0x47c2fe];return _0x421f1b;},a70_0x47c2(_0x56e736,_0x8f6aa8);}const {createClassLogger}=require(a70_0x28d230(0x112));function a70_0x44ab(){const _0x1e247c=['registerObserver','406eiAESk','385423uCdyhi','notifyObserver','../../helpers/classLogger.js','172UDHtrV','5pBdubP','4330yDxGJW','LQDfP','78903zRfqYR','2612188nmwNtk','push','4216392ksjFqZ','freeze','7673682AChRLO','getInstance','219976BJQKzi','exports','10806FlPLHR','observers'];a70_0x44ab=function(){return _0x1e247c;};return a70_0x44ab();}class EventDispatcher{static #instance=null;constructor(){const _0x5cfc12=a70_0x28d230;this[_0x5cfc12(0x121)]={};}static[a70_0x28d230(0x11d)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a70_0x28d230(0x122)](_0x575f40,_0x2ba3bc){const _0x375e51=a70_0x28d230;!this[_0x375e51(0x121)][_0x575f40]&&(this[_0x375e51(0x121)][_0x575f40]=[]),this[_0x375e51(0x121)][_0x575f40][_0x375e51(0x119)](_0x2ba3bc);}async[a70_0x28d230(0x111)](_0x13f4bc,_0x3d08ea){const _0x4dd495=a70_0x28d230,_0x1103bc={'LQDfP':function(_0x1d4edc,_0x342a83){return _0x1d4edc(_0x342a83);}};if(this[_0x4dd495(0x121)][_0x13f4bc]){for(const _0x3df536 of this['observers'][_0x13f4bc]){await _0x1103bc[_0x4dd495(0x116)](_0x3df536,_0x3d08ea);}return;}}}const eventDispatcher=EventDispatcher['getInstance']();Object[a70_0x28d230(0x11b)](eventDispatcher),module[a70_0x28d230(0x11f)]=eventDispatcher;
@@ -1 +1 @@
1
- const a71_0x59d07f=a71_0x37c2;(function(_0x4eb6e4,_0x526a5b){const _0x3dbec2=a71_0x37c2,_0x45bc43=_0x4eb6e4();while(!![]){try{const _0x4738e2=-parseInt(_0x3dbec2(0xb5))/0x1*(parseInt(_0x3dbec2(0xcb))/0x2)+-parseInt(_0x3dbec2(0xc1))/0x3+parseInt(_0x3dbec2(0xad))/0x4+parseInt(_0x3dbec2(0xaa))/0x5+-parseInt(_0x3dbec2(0xae))/0x6*(-parseInt(_0x3dbec2(0xc4))/0x7)+-parseInt(_0x3dbec2(0xc3))/0x8+-parseInt(_0x3dbec2(0xc7))/0x9*(-parseInt(_0x3dbec2(0xbb))/0xa);if(_0x4738e2===_0x526a5b)break;else _0x45bc43['push'](_0x45bc43['shift']());}catch(_0x2ef9f9){_0x45bc43['push'](_0x45bc43['shift']());}}}(a71_0x3c38,0xbe22c));const {createClassLogger}=require(a71_0x59d07f(0xb3)),util=require(a71_0x59d07f(0xc8)),eventDispatcher=require('../eventDispatcher.js'),CLIUtils=require(a71_0x59d07f(0xb1)),TrackedInstance=require(a71_0x59d07f(0xbf)),logger=createClassLogger(a71_0x59d07f(0xb2));class AutomationFramework{static ['instances']=new Map();static [a71_0x59d07f(0xa9)]=a71_0x59d07f(0xc5);static [a71_0x59d07f(0xc9)]=a71_0x59d07f(0xc6);constructor(_0x298f1b,_0x3ab3c9){const _0x773c4f=a71_0x59d07f;this[_0x773c4f(0xcc)]=_0x298f1b,this[_0x773c4f(0xb7)]=_0x3ab3c9;}[a71_0x59d07f(0xce)](){const _0x1dd711=a71_0x59d07f;return this[_0x1dd711(0xcc)];}[a71_0x59d07f(0xbc)](){return this['automationFrameworkVersion'];}async[a71_0x59d07f(0xab)](_0x444009,_0x36e5b6,_0x147e0f={}){const _0x5e97e6=a71_0x59d07f;logger[_0x5e97e6(0xaf)]('trackEvent:\x20automationFrameworkState='+_0x444009+_0x5e97e6(0xb6)+_0x36e5b6);}async[a71_0x59d07f(0xb8)](_0x18201f,_0x5d938b,_0x2afb95,_0x11c367={}){const _0x46ff50=a71_0x59d07f,_0x283e29=CLIUtils[_0x46ff50(0xb0)](_0x5d938b,_0x2afb95);_0x18201f&&_0x18201f[_0x46ff50(0xba)](_0x5d938b),await eventDispatcher[_0x46ff50(0xa8)](_0x283e29,_0x11c367);}static[a71_0x59d07f(0xb4)](_0x276923,_0x31a609,_0x29601c){const _0x348223=a71_0x59d07f;eventDispatcher['registerObserver'](CLIUtils[_0x348223(0xb0)](_0x276923,_0x31a609),_0x29601c);}static[a71_0x59d07f(0xac)](_0x13184c,_0x4f5467){const _0x3d9158=a71_0x59d07f;AutomationFramework[_0x3d9158(0xcd)][_0x3d9158(0xbd)](_0x13184c[_0x3d9158(0xb9)](),_0x4f5467);}static['getTrackedInstance'](){const _0x9a6232=a71_0x59d07f,_0xa1056c=TrackedInstance['createContext'](CLIUtils[_0x9a6232(0xc2)]());return AutomationFramework[_0x9a6232(0xcd)][_0x9a6232(0xbe)](_0xa1056c['getId']());}static['setState'](_0x1831b4,_0x32640a,_0x11b2b7){const _0x179085=a71_0x59d07f;_0x1831b4[_0x179085(0xa7)]()[_0x179085(0xbd)](_0x32640a,_0x11b2b7);}static[a71_0x59d07f(0xc0)](_0x5187b6,_0x2507a3){const _0x2ee2e6=a71_0x59d07f;return _0x5187b6[_0x2ee2e6(0xa7)]()[_0x2ee2e6(0xbe)](_0x2507a3);}}function a71_0x37c2(_0x3cf97a,_0x41a454){const _0x3c38dd=a71_0x3c38();return a71_0x37c2=function(_0x37c212,_0x317d27){_0x37c212=_0x37c212-0xa7;let _0x364959=_0x3c38dd[_0x37c212];return _0x364959;},a71_0x37c2(_0x3cf97a,_0x41a454);}function a71_0x3c38(){const _0x21684c=['getCurrentInstanceName','3914696IXCAMZ','4929057NcuXZJ','automation_sessions','non_browserstack_automation_sessions','5295852lomJIo','util','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','exports','1226caLlzb','automationFrameworkName','instances','getAutomationFrameworkName','getAllData','notifyObserver','KEY_AUTOMATION_SESSIONS','371365pEYYhY','trackEvent','setTrackedInstance','3917992UbnIwU','6cnPHJN','debug','getHookRegistryKey','../cliUtils.js','AutomationFramework','../../../helpers/classLogger.js','registerObserver','1363fRaJZO','\x20hookState=','automationFrameworkVersion','runHooks','getId','setState','30OhwIoW','getAutomationFrameworkVersion','set','get','../instances/trackedInstance.js','getState','4258662bEFclX'];a71_0x3c38=function(){return _0x21684c;};return a71_0x3c38();}module[a71_0x59d07f(0xca)]=AutomationFramework;
1
+ const a71_0x5ee1fb=a71_0x375d;(function(_0x290891,_0x37e6fe){const _0x5f494c=a71_0x375d,_0x6d7aab=_0x290891();while(!![]){try{const _0x492ea6=-parseInt(_0x5f494c(0x152))/0x1*(parseInt(_0x5f494c(0x14a))/0x2)+parseInt(_0x5f494c(0x144))/0x3+parseInt(_0x5f494c(0x14f))/0x4*(-parseInt(_0x5f494c(0x15a))/0x5)+parseInt(_0x5f494c(0x142))/0x6*(parseInt(_0x5f494c(0x155))/0x7)+parseInt(_0x5f494c(0x156))/0x8+parseInt(_0x5f494c(0x15e))/0x9+parseInt(_0x5f494c(0x160))/0xa*(-parseInt(_0x5f494c(0x146))/0xb);if(_0x492ea6===_0x37e6fe)break;else _0x6d7aab['push'](_0x6d7aab['shift']());}catch(_0x429969){_0x6d7aab['push'](_0x6d7aab['shift']());}}}(a71_0x51e7,0xc2ea5));const {createClassLogger}=require(a71_0x5ee1fb(0x14d)),util=require('util'),eventDispatcher=require('../eventDispatcher.js'),CLIUtils=require(a71_0x5ee1fb(0x154)),TrackedInstance=require(a71_0x5ee1fb(0x143)),logger=createClassLogger(a71_0x5ee1fb(0x14c));class AutomationFramework{static [a71_0x5ee1fb(0x153)]=new Map();static [a71_0x5ee1fb(0x147)]=a71_0x5ee1fb(0x14b);static ['KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS']='non_browserstack_automation_sessions';constructor(_0x2a9081,_0x30d1bd){const _0x7e5b32=a71_0x5ee1fb;this[_0x7e5b32(0x145)]=_0x2a9081,this[_0x7e5b32(0x163)]=_0x30d1bd;}['getAutomationFrameworkName'](){const _0x233c88=a71_0x5ee1fb;return this[_0x233c88(0x145)];}[a71_0x5ee1fb(0x151)](){const _0x1afb72=a71_0x5ee1fb;return this[_0x1afb72(0x163)];}async[a71_0x5ee1fb(0x15d)](_0x49e388,_0x37b84b,_0x453cd9={}){const _0x3855b2=a71_0x5ee1fb;logger[_0x3855b2(0x157)]('trackEvent:\x20automationFrameworkState='+_0x49e388+_0x3855b2(0x164)+_0x37b84b);}async[a71_0x5ee1fb(0x148)](_0x5d9493,_0x48ead,_0xed11cb,_0x453bcd={}){const _0x5cc5a7=a71_0x5ee1fb,_0x27be26=CLIUtils['getHookRegistryKey'](_0x48ead,_0xed11cb);_0x5d9493&&_0x5d9493[_0x5cc5a7(0x150)](_0x48ead),await eventDispatcher[_0x5cc5a7(0x14e)](_0x27be26,_0x453bcd);}static[a71_0x5ee1fb(0x165)](_0x56110f,_0x2ec644,_0x3d2702){const _0x33a901=a71_0x5ee1fb;eventDispatcher[_0x33a901(0x165)](CLIUtils[_0x33a901(0x161)](_0x56110f,_0x2ec644),_0x3d2702);}static['setTrackedInstance'](_0xbd897d,_0x211725){const _0x267a4b=a71_0x5ee1fb;AutomationFramework[_0x267a4b(0x153)][_0x267a4b(0x15c)](_0xbd897d[_0x267a4b(0x162)](),_0x211725);}static[a71_0x5ee1fb(0x149)](){const _0x3b6b23=a71_0x5ee1fb,_0x1cdc9c=TrackedInstance['createContext'](CLIUtils[_0x3b6b23(0x15f)]());return AutomationFramework['instances']['get'](_0x1cdc9c[_0x3b6b23(0x162)]());}static[a71_0x5ee1fb(0x150)](_0x23cf23,_0x5a46f7,_0x572e50){const _0x4d732=a71_0x5ee1fb;_0x23cf23[_0x4d732(0x159)]()[_0x4d732(0x15c)](_0x5a46f7,_0x572e50);}static[a71_0x5ee1fb(0x15b)](_0x3f7f29,_0x4ddc11){const _0x56138c=a71_0x5ee1fb;return _0x3f7f29[_0x56138c(0x159)]()[_0x56138c(0x158)](_0x4ddc11);}}function a71_0x51e7(){const _0xcfe3cc=['registerObserver','exports','2233368ujNKzw','../instances/trackedInstance.js','2250708YISHhU','automationFrameworkName','20878286ONfcMD','KEY_AUTOMATION_SESSIONS','runHooks','getTrackedInstance','523862hcKYMm','automation_sessions','AutomationFramework','../../../helpers/classLogger.js','notifyObserver','12NgGeWA','setState','getAutomationFrameworkVersion','1VPGOzU','instances','../cliUtils.js','7GEmaTd','8036568VMrzQN','debug','get','getAllData','935095BvJCQV','getState','set','trackEvent','12531168ZjCOfK','getCurrentInstanceName','10XtCRUA','getHookRegistryKey','getId','automationFrameworkVersion','\x20hookState='];a71_0x51e7=function(){return _0xcfe3cc;};return a71_0x51e7();}function a71_0x375d(_0x5d02ca,_0x512b48){const _0x51e74a=a71_0x51e7();return a71_0x375d=function(_0x375dc5,_0x36ffd9){_0x375dc5=_0x375dc5-0x142;let _0x5b7f2e=_0x51e74a[_0x375dc5];return _0x5b7f2e;},a71_0x375d(_0x5d02ca,_0x512b48);}module[a71_0x5ee1fb(0x166)]=AutomationFramework;
@@ -1 +1 @@
1
- const a72_0x41448a=a72_0x5b77;(function(_0x24e594,_0x39a961){const _0x19f283=a72_0x5b77,_0x112b84=_0x24e594();while(!![]){try{const _0x390060=-parseInt(_0x19f283(0xce))/0x1+-parseInt(_0x19f283(0xd1))/0x2*(-parseInt(_0x19f283(0xd6))/0x3)+-parseInt(_0x19f283(0xc2))/0x4*(parseInt(_0x19f283(0xc5))/0x5)+parseInt(_0x19f283(0xd5))/0x6+-parseInt(_0x19f283(0xcf))/0x7+parseInt(_0x19f283(0xda))/0x8+parseInt(_0x19f283(0xcd))/0x9*(parseInt(_0x19f283(0xc7))/0xa);if(_0x390060===_0x39a961)break;else _0x112b84['push'](_0x112b84['shift']());}catch(_0x510f1f){_0x112b84['push'](_0x112b84['shift']());}}}(a72_0x2e04,0x64c48));const a72_0x19a127={};a72_0x19a127[a72_0x41448a(0xd8)]='BROWSERSTACK_PLATFORM_INDEX',a72_0x19a127['KEY_HUB_URL']='hub_url',a72_0x19a127[a72_0x41448a(0xbd)]=a72_0x41448a(0xc1),a72_0x19a127[a72_0x41448a(0xd3)]=a72_0x41448a(0xdc),a72_0x19a127[a72_0x41448a(0xd9)]=a72_0x41448a(0xca),a72_0x19a127[a72_0x41448a(0xcc)]=a72_0x41448a(0xc0),a72_0x19a127['KEY_STARTED_AT']=a72_0x41448a(0xd4),a72_0x19a127['KEY_ENDED_AT']=a72_0x41448a(0xd7),a72_0x19a127[a72_0x41448a(0xd0)]=a72_0x41448a(0xc4),a72_0x19a127[a72_0x41448a(0xcb)]=a72_0x41448a(0xc8),a72_0x19a127['COMMAND_GET']='get',a72_0x19a127['COMMAND_SCREENSHOT']='screenshot',a72_0x19a127[a72_0x41448a(0xc9)]=a72_0x41448a(0xc6),a72_0x19a127[a72_0x41448a(0xdb)]=a72_0x41448a(0xd2),a72_0x19a127[a72_0x41448a(0xc3)]=a72_0x41448a(0xbf);function a72_0x5b77(_0xa39056,_0x418c4f){const _0x2e0479=a72_0x2e04();return a72_0x5b77=function(_0x5b771e,_0x2cc791){_0x5b771e=_0x5b771e-0xbd;let _0x3d8085=_0x2e0479[_0x5b771e];return _0x3d8085;},a72_0x5b77(_0xa39056,_0x418c4f);}function a72_0x2e04(){const _0x40c6de=['451745XgnMis','2725527QUNFhA','KEY_PLATFORM_INDEX','347022DYLCIX','w3cexecutescriptasync','KEY_INPUT_CAPABILITIES','started_at','1276920XolpQo','3klULdz','ended_at','ENV_BROWSERSTACK_PLATFORM_INDEX','KEY_CAPABILITIES','5573744zRwzIY','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','input_capabilities','KEY_FRAMEWORK_SESSION_ID','exports','quit','is_browserstack_hub','framework_session_id','8AuQucn','COMMAND_QUIT','platform_index','1753085XHAuIr','w3cexecutescript','1744070YrALao','newsession','COMMAND_W3C_EXECUTE_SCRIPT','capabilities','COMMAND_NEW_SESSION','KEY_IS_BROWSERSTACK_HUB','45JnwOSN'];a72_0x2e04=function(){return _0x40c6de;};return a72_0x2e04();}const AutomationFrameworkConstants=a72_0x19a127;module[a72_0x41448a(0xbe)]=AutomationFrameworkConstants;
1
+ function a72_0x5909(_0x2aa827,_0x433a21){const _0x41ee8c=a72_0x41ee();return a72_0x5909=function(_0x5909c9,_0x4aaafb){_0x5909c9=_0x5909c9-0x197;let _0x5c0140=_0x41ee8c[_0x5909c9];return _0x5c0140;},a72_0x5909(_0x2aa827,_0x433a21);}const a72_0x3c08f6=a72_0x5909;(function(_0x127cff,_0x5ca8c9){const _0x20e11a=a72_0x5909,_0x3ea5a0=_0x127cff();while(!![]){try{const _0x525c2a=-parseInt(_0x20e11a(0x1a3))/0x1+parseInt(_0x20e11a(0x1ae))/0x2+-parseInt(_0x20e11a(0x1a5))/0x3*(parseInt(_0x20e11a(0x1ab))/0x4)+-parseInt(_0x20e11a(0x19a))/0x5+parseInt(_0x20e11a(0x1a9))/0x6+-parseInt(_0x20e11a(0x198))/0x7*(parseInt(_0x20e11a(0x19b))/0x8)+parseInt(_0x20e11a(0x1a6))/0x9*(parseInt(_0x20e11a(0x1aa))/0xa);if(_0x525c2a===_0x5ca8c9)break;else _0x3ea5a0['push'](_0x3ea5a0['shift']());}catch(_0x1955e8){_0x3ea5a0['push'](_0x3ea5a0['shift']());}}}(a72_0x41ee,0x5d315));const a72_0x113cc6={};a72_0x113cc6[a72_0x3c08f6(0x1b4)]=a72_0x3c08f6(0x1a1),a72_0x113cc6[a72_0x3c08f6(0x1b2)]='hub_url',a72_0x113cc6[a72_0x3c08f6(0x199)]='framework_session_id',a72_0x113cc6[a72_0x3c08f6(0x1b3)]='input_capabilities',a72_0x113cc6[a72_0x3c08f6(0x19f)]=a72_0x3c08f6(0x197),a72_0x113cc6['KEY_IS_BROWSERSTACK_HUB']=a72_0x3c08f6(0x1a2),a72_0x113cc6[a72_0x3c08f6(0x19e)]='started_at',a72_0x113cc6[a72_0x3c08f6(0x19c)]=a72_0x3c08f6(0x1b0),a72_0x113cc6[a72_0x3c08f6(0x1a8)]='platform_index',a72_0x113cc6['COMMAND_NEW_SESSION']=a72_0x3c08f6(0x1ac),a72_0x113cc6['COMMAND_GET']=a72_0x3c08f6(0x1b5),a72_0x113cc6[a72_0x3c08f6(0x1af)]=a72_0x3c08f6(0x1a4),a72_0x113cc6[a72_0x3c08f6(0x19d)]=a72_0x3c08f6(0x1b1),a72_0x113cc6[a72_0x3c08f6(0x1a7)]='w3cexecutescriptasync',a72_0x113cc6[a72_0x3c08f6(0x1a0)]='quit';const AutomationFrameworkConstants=a72_0x113cc6;module[a72_0x3c08f6(0x1ad)]=AutomationFrameworkConstants;function a72_0x41ee(){const _0x5e8e58=['KEY_HUB_URL','KEY_INPUT_CAPABILITIES','ENV_BROWSERSTACK_PLATFORM_INDEX','get','capabilities','1613199EttUrW','KEY_FRAMEWORK_SESSION_ID','1382775EtHlGR','16nhpCkH','KEY_ENDED_AT','COMMAND_W3C_EXECUTE_SCRIPT','KEY_STARTED_AT','KEY_CAPABILITIES','COMMAND_QUIT','BROWSERSTACK_PLATFORM_INDEX','is_browserstack_hub','719744IqKqXx','screenshot','207VyXQyj','99oduqoN','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','KEY_PLATFORM_INDEX','3721758KzdPVM','1057490spwyqP','31956IcyMdt','newsession','exports','1213278tmFjwX','COMMAND_SCREENSHOT','ended_at','w3cexecutescript'];a72_0x41ee=function(){return _0x5e8e58;};return a72_0x41ee();}
@@ -1 +1 @@
1
- function a73_0x5c36(_0x27987a,_0x4fb3c5){const _0x438b09=a73_0x438b();return a73_0x5c36=function(_0x5c36bd,_0x4a4c95){_0x5c36bd=_0x5c36bd-0x1b0;let _0x4e1d11=_0x438b09[_0x5c36bd];return _0x4e1d11;},a73_0x5c36(_0x27987a,_0x4fb3c5);}const a73_0x157683=a73_0x5c36;(function(_0xbe8efd,_0x36b8dd){const _0x12f761=a73_0x5c36,_0x2bda1b=_0xbe8efd();while(!![]){try{const _0x2f71ad=-parseInt(_0x12f761(0x1fa))/0x1*(parseInt(_0x12f761(0x203))/0x2)+-parseInt(_0x12f761(0x202))/0x3+-parseInt(_0x12f761(0x1c3))/0x4+-parseInt(_0x12f761(0x1df))/0x5+parseInt(_0x12f761(0x1fe))/0x6*(-parseInt(_0x12f761(0x1cf))/0x7)+parseInt(_0x12f761(0x1d6))/0x8+-parseInt(_0x12f761(0x1ef))/0x9*(-parseInt(_0x12f761(0x1c2))/0xa);if(_0x2f71ad===_0x36b8dd)break;else _0x2bda1b['push'](_0x2bda1b['shift']());}catch(_0xca9f5b){_0x2bda1b['push'](_0x2bda1b['shift']());}}}(a73_0x438b,0x78b58));function a73_0x438b(){const _0x2c5358=['test_logs','248256XlzZOB','662710UbvuFa','test_file_path','test_failure_reason','KEY_TEST_FAILURE_REASON','file_size','KEY_PLATFORM_INDEX','retry_of','test_duration','KEY_HOOK_LOGS','test_hooks_finished','file_level','KEY_AUTOMATE_SESSION_REASON','test_session_name','DEFAULT_TEST_RESULT','KEY_TEST_SCOPES','KEY_FILE_LEVEL','KEY_TEST_STARTED_AT','TEST_SCREENSHOT','KEY_TEST_META','KEY_TEST_RERUN_NAME','test_result','KEY_HOOK_FAILURE_TYPE','test_failure','2230mDSAJk','482164SOkTNx','KEY_TEST_UUID','hook_name','hook_failure_type','KEY_HOOK_FAILURE','KEY_TEST_ENDED_AT','file_path','test_started_at','test_meta','KEY_TEST_FAILURE','test_id','KEY_AUTOMATE_SESSION_NAME','4592889deBODk','KEY_TEST_FAILURE_TYPE','test_framework_version','custom_metadata','test_ended_at','automate_session_status','test_hook_last_started','6781040kKQUOa','test_hooks_started','KEY_HOOK_RESULT','KEY_HOOKS_FINISHED','test_uuid','test_name','KEY_TEST_LOCATION','hook_logs','KIND_SCREENSHOT','3102025jfteva','KEY_TEST_RESULT_AT','KEY_FILE_SIZE','KEY_TEST_SCOPE','pending','KEY_TEST_LOGS','KEY_SESSION_NAME','KEY_EVENT_ENDED_AT','test_scope','TEST_LOG','KEY_TEST_TAGS','event_ended_at','KEY_HOOK_LAST_FINISHED','KEY_HOOK_NAME','KEY_TEST_RESULT','KEY_CUSTOM_TAGS','58842dfWJIX','KIND_LOG','KEY_HOOKS_STARTED','file_name','test_rerun_name','hook_result','^(BEFORE_|AFTER_)','test_hook_last_finished','test_result_at','test_location','HOOK_REGEX','1vosbds','hook_failure','test_code','automate_session_name','6Rtoluh','KEY_FILE_NAME','automate_session_reason'];a73_0x438b=function(){return _0x2c5358;};return a73_0x438b();}const a73_0x2100d8={};a73_0x2100d8[a73_0x157683(0x1c4)]=a73_0x157683(0x1da),a73_0x2100d8['KEY_TEST_ID']=a73_0x157683(0x1cd),a73_0x2100d8['KEY_TEST_NAME']=a73_0x157683(0x1db),a73_0x2100d8['KEY_TEST_FILE_PATH']=a73_0x157683(0x204),a73_0x2100d8[a73_0x157683(0x1e9)]='test_tags',a73_0x2100d8[a73_0x157683(0x1ed)]=a73_0x157683(0x1bf),a73_0x2100d8[a73_0x157683(0x1e0)]=a73_0x157683(0x1f7),a73_0x2100d8[a73_0x157683(0x1bb)]=a73_0x157683(0x1ca),a73_0x2100d8[a73_0x157683(0x1c8)]=a73_0x157683(0x1d3),a73_0x2100d8[a73_0x157683(0x1dc)]=a73_0x157683(0x1f8),a73_0x2100d8['KEY_TEST_DURATION']=a73_0x157683(0x1b2),a73_0x2100d8[a73_0x157683(0x1e2)]=a73_0x157683(0x1e7),a73_0x2100d8[a73_0x157683(0x1b9)]='test_scopes',a73_0x2100d8['KEY_TEST_FRAMEWORK_NAME']='test_framework_name',a73_0x2100d8['KEY_TEST_FRAMEWORK_VERSION']=a73_0x157683(0x1d1),a73_0x2100d8['KEY_TEST_CODE']=a73_0x157683(0x1fc),a73_0x2100d8[a73_0x157683(0x1be)]=a73_0x157683(0x1f3),a73_0x2100d8['KEY_TEST_RETRY_OF']=a73_0x157683(0x1b1),a73_0x2100d8[a73_0x157683(0x1b0)]='platform_index',a73_0x2100d8[a73_0x157683(0x1cc)]=a73_0x157683(0x1c1),a73_0x2100d8[a73_0x157683(0x1d0)]='test_failure_type',a73_0x2100d8[a73_0x157683(0x206)]=a73_0x157683(0x205),a73_0x2100d8[a73_0x157683(0x1e4)]=a73_0x157683(0x201),a73_0x2100d8[a73_0x157683(0x1bd)]=a73_0x157683(0x1cb),a73_0x2100d8[a73_0x157683(0x1e5)]=a73_0x157683(0x1b7),a73_0x2100d8[a73_0x157683(0x1ce)]=a73_0x157683(0x1fd),a73_0x2100d8['KEY_AUTOMATE_SESSION_STATUS']=a73_0x157683(0x1d4),a73_0x2100d8[a73_0x157683(0x1b6)]=a73_0x157683(0x200),a73_0x2100d8['KEY_EVENT_STARTED_AT']='event_started_at',a73_0x2100d8[a73_0x157683(0x1e6)]=a73_0x157683(0x1ea),a73_0x2100d8['KEY_HOOK_ID']='hook_id',a73_0x2100d8[a73_0x157683(0x1d8)]=a73_0x157683(0x1f4),a73_0x2100d8[a73_0x157683(0x1c0)]=a73_0x157683(0x1c6),a73_0x2100d8['KEY_HOOK_FAILURE_REASON']='hook_failure_reason',a73_0x2100d8[a73_0x157683(0x1c7)]=a73_0x157683(0x1fb),a73_0x2100d8[a73_0x157683(0x1b3)]=a73_0x157683(0x1dd),a73_0x2100d8[a73_0x157683(0x1ec)]=a73_0x157683(0x1c5),a73_0x2100d8[a73_0x157683(0x1b8)]=a73_0x157683(0x1e3),a73_0x2100d8['DEFAULT_HOOK_RESULT']=a73_0x157683(0x1e3),a73_0x2100d8[a73_0x157683(0x1de)]=a73_0x157683(0x1bc),a73_0x2100d8[a73_0x157683(0x1f0)]=a73_0x157683(0x1e8),a73_0x2100d8[a73_0x157683(0x1f9)]=a73_0x157683(0x1f5),a73_0x2100d8[a73_0x157683(0x1f1)]=a73_0x157683(0x1d7),a73_0x2100d8[a73_0x157683(0x1d9)]=a73_0x157683(0x1b4),a73_0x2100d8['KEY_HOOK_LAST_STARTED']=a73_0x157683(0x1d5),a73_0x2100d8[a73_0x157683(0x1eb)]=a73_0x157683(0x1f6),a73_0x2100d8['KEY_LOGS']='logs',a73_0x2100d8[a73_0x157683(0x1ee)]=a73_0x157683(0x1d2),a73_0x2100d8['KEY_TEST_ATTACHMENTS']='test_attachments',a73_0x2100d8[a73_0x157683(0x1e1)]=a73_0x157683(0x207),a73_0x2100d8[a73_0x157683(0x1ff)]=a73_0x157683(0x1f2),a73_0x2100d8['KEY_FILE_PATH']=a73_0x157683(0x1c9),a73_0x2100d8[a73_0x157683(0x1ba)]=a73_0x157683(0x1b5);const TestFrameworkConstants=a73_0x2100d8;module['exports']=TestFrameworkConstants;
1
+ const a73_0x5505e0=a73_0x7163;(function(_0x3cdbc3,_0x5a34ba){const _0x5380df=a73_0x7163,_0x149cd2=_0x3cdbc3();while(!![]){try{const _0x352763=-parseInt(_0x5380df(0x1e7))/0x1+-parseInt(_0x5380df(0x1bd))/0x2+-parseInt(_0x5380df(0x207))/0x3+parseInt(_0x5380df(0x1c2))/0x4*(-parseInt(_0x5380df(0x1ff))/0x5)+parseInt(_0x5380df(0x1ea))/0x6*(-parseInt(_0x5380df(0x208))/0x7)+parseInt(_0x5380df(0x1c7))/0x8*(parseInt(_0x5380df(0x203))/0x9)+parseInt(_0x5380df(0x1e2))/0xa;if(_0x352763===_0x5a34ba)break;else _0x149cd2['push'](_0x149cd2['shift']());}catch(_0x26c3ee){_0x149cd2['push'](_0x149cd2['shift']());}}}(a73_0x410e,0x2643e));const a73_0x3e45e1={};a73_0x3e45e1[a73_0x5505e0(0x201)]=a73_0x5505e0(0x1b8),a73_0x3e45e1[a73_0x5505e0(0x1ed)]=a73_0x5505e0(0x1bf),a73_0x3e45e1[a73_0x5505e0(0x1f7)]=a73_0x5505e0(0x1b9),a73_0x3e45e1[a73_0x5505e0(0x1af)]='test_file_path',a73_0x3e45e1[a73_0x5505e0(0x1da)]='test_tags',a73_0x3e45e1[a73_0x5505e0(0x1f3)]='test_result',a73_0x3e45e1[a73_0x5505e0(0x1e8)]=a73_0x5505e0(0x1b7),a73_0x3e45e1['KEY_TEST_STARTED_AT']='test_started_at',a73_0x3e45e1[a73_0x5505e0(0x1dc)]=a73_0x5505e0(0x1e0),a73_0x3e45e1[a73_0x5505e0(0x1b1)]='test_location',a73_0x3e45e1[a73_0x5505e0(0x1d5)]=a73_0x5505e0(0x1c9),a73_0x3e45e1[a73_0x5505e0(0x1fa)]=a73_0x5505e0(0x1be),a73_0x3e45e1[a73_0x5505e0(0x1fc)]=a73_0x5505e0(0x1d0),a73_0x3e45e1['KEY_TEST_FRAMEWORK_NAME']=a73_0x5505e0(0x1ad),a73_0x3e45e1[a73_0x5505e0(0x1b0)]=a73_0x5505e0(0x1ce),a73_0x3e45e1[a73_0x5505e0(0x205)]=a73_0x5505e0(0x1fd),a73_0x3e45e1[a73_0x5505e0(0x1f8)]='test_rerun_name',a73_0x3e45e1[a73_0x5505e0(0x1d3)]='retry_of',a73_0x3e45e1[a73_0x5505e0(0x1d1)]=a73_0x5505e0(0x1f2),a73_0x3e45e1[a73_0x5505e0(0x1b3)]=a73_0x5505e0(0x1bb),a73_0x3e45e1['KEY_TEST_FAILURE_TYPE']=a73_0x5505e0(0x1ba),a73_0x3e45e1[a73_0x5505e0(0x1db)]=a73_0x5505e0(0x1c0),a73_0x3e45e1[a73_0x5505e0(0x1cb)]='test_logs',a73_0x3e45e1[a73_0x5505e0(0x1c5)]=a73_0x5505e0(0x1cd),a73_0x3e45e1[a73_0x5505e0(0x1d4)]=a73_0x5505e0(0x1c3),a73_0x3e45e1[a73_0x5505e0(0x1d7)]=a73_0x5505e0(0x1bc),a73_0x3e45e1[a73_0x5505e0(0x1b6)]=a73_0x5505e0(0x1d6),a73_0x3e45e1['KEY_AUTOMATE_SESSION_REASON']=a73_0x5505e0(0x1b4),a73_0x3e45e1['KEY_EVENT_STARTED_AT']=a73_0x5505e0(0x1b5),a73_0x3e45e1['KEY_EVENT_ENDED_AT']=a73_0x5505e0(0x1ec),a73_0x3e45e1[a73_0x5505e0(0x1eb)]=a73_0x5505e0(0x1f1),a73_0x3e45e1[a73_0x5505e0(0x1e9)]=a73_0x5505e0(0x1ae),a73_0x3e45e1[a73_0x5505e0(0x202)]=a73_0x5505e0(0x1cf),a73_0x3e45e1[a73_0x5505e0(0x1df)]='hook_failure_reason',a73_0x3e45e1[a73_0x5505e0(0x1e4)]=a73_0x5505e0(0x1e3),a73_0x3e45e1[a73_0x5505e0(0x1c6)]=a73_0x5505e0(0x1fb),a73_0x3e45e1[a73_0x5505e0(0x1ee)]=a73_0x5505e0(0x1ca),a73_0x3e45e1[a73_0x5505e0(0x1f9)]='pending',a73_0x3e45e1['DEFAULT_HOOK_RESULT']=a73_0x5505e0(0x1d8),a73_0x3e45e1[a73_0x5505e0(0x1b2)]=a73_0x5505e0(0x1c4),a73_0x3e45e1['KIND_LOG']=a73_0x5505e0(0x1c1),a73_0x3e45e1[a73_0x5505e0(0x200)]='^(BEFORE_|AFTER_)',a73_0x3e45e1[a73_0x5505e0(0x1e6)]=a73_0x5505e0(0x1fe),a73_0x3e45e1[a73_0x5505e0(0x206)]='test_hooks_finished',a73_0x3e45e1[a73_0x5505e0(0x1f5)]=a73_0x5505e0(0x204),a73_0x3e45e1[a73_0x5505e0(0x1de)]='test_hook_last_finished',a73_0x3e45e1[a73_0x5505e0(0x1dd)]=a73_0x5505e0(0x1c8),a73_0x3e45e1[a73_0x5505e0(0x1cc)]=a73_0x5505e0(0x209),a73_0x3e45e1[a73_0x5505e0(0x1f4)]=a73_0x5505e0(0x1f0),a73_0x3e45e1['KEY_FILE_SIZE']=a73_0x5505e0(0x1f6),a73_0x3e45e1['KEY_FILE_NAME']=a73_0x5505e0(0x1d2),a73_0x3e45e1[a73_0x5505e0(0x1d9)]='file_path',a73_0x3e45e1[a73_0x5505e0(0x1ef)]=a73_0x5505e0(0x1e1);function a73_0x410e(){const _0x28e2f2=['KEY_HOOKS_STARTED','178688NyfbOy','KEY_TEST_RESULT_AT','KEY_HOOK_RESULT','6skOKuP','KEY_HOOK_ID','event_ended_at','KEY_TEST_ID','KEY_HOOK_NAME','KEY_FILE_LEVEL','test_attachments','hook_id','platform_index','KEY_TEST_RESULT','KEY_TEST_ATTACHMENTS','KEY_HOOK_LAST_STARTED','file_size','KEY_TEST_NAME','KEY_TEST_RERUN_NAME','DEFAULT_TEST_RESULT','KEY_TEST_SCOPE','hook_logs','KEY_TEST_SCOPES','test_code','test_hooks_started','54415gYCciw','HOOK_REGEX','KEY_TEST_UUID','KEY_HOOK_FAILURE_TYPE','14409dOQdiX','test_hook_last_started','KEY_TEST_CODE','KEY_HOOKS_FINISHED','14820NshBDL','859523wsBdFm','custom_metadata','test_framework_name','hook_result','KEY_TEST_FILE_PATH','KEY_TEST_FRAMEWORK_VERSION','KEY_TEST_LOCATION','KIND_SCREENSHOT','KEY_TEST_FAILURE','automate_session_reason','event_started_at','KEY_AUTOMATE_SESSION_STATUS','test_result_at','test_uuid','test_name','test_failure_type','test_failure','automate_session_name','129718qYjpUi','test_scope','test_id','test_failure_reason','TEST_LOG','28ndmMnu','test_session_name','TEST_SCREENSHOT','KEY_TEST_META','KEY_HOOK_LOGS','1448zhnpjF','logs','test_duration','hook_name','KEY_TEST_LOGS','KEY_CUSTOM_TAGS','test_meta','test_framework_version','hook_failure_type','test_scopes','KEY_PLATFORM_INDEX','file_name','KEY_TEST_RETRY_OF','KEY_SESSION_NAME','KEY_TEST_DURATION','automate_session_status','KEY_AUTOMATE_SESSION_NAME','pending','KEY_FILE_PATH','KEY_TEST_TAGS','KEY_TEST_FAILURE_REASON','KEY_TEST_ENDED_AT','KEY_LOGS','KEY_HOOK_LAST_FINISHED','KEY_HOOK_FAILURE_REASON','test_ended_at','file_level','3144100TDOzNZ','hook_failure','KEY_HOOK_FAILURE','exports'];a73_0x410e=function(){return _0x28e2f2;};return a73_0x410e();}const TestFrameworkConstants=a73_0x3e45e1;function a73_0x7163(_0x18860e,_0x278531){const _0x410ef8=a73_0x410e();return a73_0x7163=function(_0x7163b3,_0x171def){_0x7163b3=_0x7163b3-0x1ad;let _0x4009df=_0x410ef8[_0x7163b3];return _0x4009df;},a73_0x7163(_0x18860e,_0x278531);}module[a73_0x5505e0(0x1e5)]=TestFrameworkConstants;
@@ -1 +1 @@
1
- function a74_0x4a3a(_0x2b4106,_0x3f326a){const _0x221f3a=a74_0x221f();return a74_0x4a3a=function(_0x4a3a07,_0x52626b){_0x4a3a07=_0x4a3a07-0x10d;let _0x2fddc5=_0x221f3a[_0x4a3a07];return _0x2fddc5;},a74_0x4a3a(_0x2b4106,_0x3f326a);}const a74_0x186b8e=a74_0x4a3a;(function(_0x394cc,_0x2bc18e){const _0x50089f=a74_0x4a3a,_0x4cae5b=_0x394cc();while(!![]){try{const _0x4f18c0=parseInt(_0x50089f(0x1ae))/0x1*(parseInt(_0x50089f(0x19a))/0x2)+parseInt(_0x50089f(0x1b1))/0x3+-parseInt(_0x50089f(0x125))/0x4+-parseInt(_0x50089f(0x1d6))/0x5+-parseInt(_0x50089f(0x193))/0x6*(-parseInt(_0x50089f(0x10f))/0x7)+parseInt(_0x50089f(0x1bd))/0x8*(parseInt(_0x50089f(0x180))/0x9)+parseInt(_0x50089f(0x131))/0xa;if(_0x4f18c0===_0x2bc18e)break;else _0x4cae5b['push'](_0x4cae5b['shift']());}catch(_0x3f10c5){_0x4cae5b['push'](_0x4cae5b['shift']());}}}(a74_0x221f,0x7787c));function a74_0x221f(){const _0x416378=['stringify','tags','JPHkp','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','VVcdT','failure','JiMyT','DEFAULT_HOOK_RESULT','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','key','rfIfE','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','finished_at','Hizbl','\x20\x20and\x20args\x20=\x20','getTestFrameworksVersions','63114RzlfOP','KEY_HOOK_FAILURE_REASON','platformIndex','endedAt','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','Tracked\x20cucumber\x20hook\x20event:\x20','length','198188UgDXHq','addMultipleEntries','trackHookEvent','\x20with\x20UUID:\x20','\x20response=','PeRmm','KEY_TEST_STARTED_AT','runHooks','from','POST','base64','scopes','HfIxX','unknown','code','test','ixpAP','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','Dsxzz','alinf','4ipGiFW','KEY_TEST_FAILURE_REASON','INIT_TEST','475287CMuXUV','KEY_HOOK_FAILURE','getPendingHooks','KEY_EVENT_STARTED_AT','getRef','toString','getId','MUKOZ','KEY_TEST_NAME','finishedAt','AyjBw','KEY_CUSTOM_TAGS','1616PSoPxG','KEY_TEST_FAILURE','iUCHs','getTestDetails','slice','KRVXY','hookData','name','KEY_TEST_ENDED_AT','GHqwF','removePendingHooks','inspect','pop','KEY_HOOKS_STARTED','KEY_TEST_RESULT_AT','TEST','../TestInfo.js','customRerunParam','KEY_TEST_RERUN_NAME','testFrameworkVersion','getAllData','utedu','KEY_AUTOMATE_SESSION_NAME','GjtMV','DEFAULT_TEST_RESULT','4756315cItwtu','KEY_HOOK_FAILURE_TYPE','getTestFrameworks','testFrameworkName','KEY_HOOK_LAST_STARTED','debug','sgEGU','result','parseCucumberTestResult','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','231HGEsGO','tlYta','exports','ceil','\x20and\x20args\x20=\x20','zQvLy','test_run_id','opXhi','location','browserstackPlatformIndex','getTrackedInstance','sendLogCreatedEvent:\x20for\x20testId:\x20','fvIUN','push','KEY_HOOK_LAST_FINISHED','rerun_name','error','readLogObjects','../state/hookState.js','KEY_TEST_META','util','../grpcClient','2190952gbjCGg','KEY_HOOK_ID','./constants/testFrameworkConstants.js','logCreatedEvent','instance','KEY_EVENT_ENDED_AT','getCurrentInstanceName','get','../../../helpers/helper.js','KEY_HOOK_LOGS','args','failure_data','9365790IuEizH','resolveInstance','parseCucumberTest','bGrCf','PRE','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','../../../helpers/classLogger.js','storePendingHook','KEY_TEST_UUID','../state/testFrameworkState.js','\x20&\x20hookState=','addPendingHook','\x20batch\x20','createTestFrameworkEventPayload\x20testId:\x20','NONE','KEY_TEST_TAGS','createContext',',\x20hookState:\x20','uuid','format','eventJson','getInstance','../instances/trackedInstance.js','hookState','KEY_TEST_ATTACHMENTS','processPendingHooks','HTYeu','setTestDetails','Stored\x20pending\x20hook\x20for\x20testId:\x20','failure_type','getProcessId','started_at',',\x20storing\x20as\x20pending\x20hook','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','passed','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','CXzli','hook_type','meta','createTestFrameworkEventPayload','KEY_HOOK_NAME','toISOString','KEY_HOOK_RESULT','KEY_TEST_FILE_PATH','KYGpd','gqHyV','KEY_TEST_FRAMEWORK_NAME','concat','owLKZ','testUUID','KEY_HOOKS_FINISHED',',\x20state:\x20','failure_reason','file_name','IQblD','testFrameworkState','\x20with\x20result:\x20','body','ntdAP','\x20&\x20hook\x20=\x20','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','matchHookRegex','startedAt','trackCucumberInstance','Updated\x20cucumber\x20test\x20result:\x20','\x20target=','keys','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','trackEvent:\x20unsupported\x20testFrameworkState=','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','hooks','KEY_TEST_SCOPES',',\x20state=','testData','sendLogCreatedEvent','Cucumber\x20log\x20created\x20event','KEY_LOGS','xxnnr','6687UuyOiM','split','dYNNv'];a74_0x221f=function(){return _0x416378;};return a74_0x221f();}const TestFramework=require('./testFramework'),TestFrameworkState=require(a74_0x186b8e(0x13a)),HookState=require(a74_0x186b8e(0x121)),{createClassLogger}=require(a74_0x186b8e(0x137)),TestFrameworkInstance=require('../instances/testFrameworkInstance.js'),CLIUtils=require('../cliUtils.js'),TrackedInstance=require(a74_0x186b8e(0x147)),TestFrameworkConstants=require(a74_0x186b8e(0x127)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a74_0x186b8e(0x12d)),logger=createClassLogger('CucumberTestFramework'),{v4:uuidv4}=require('uuid'),util=require(a74_0x186b8e(0x123)),TestInfo=require(a74_0x186b8e(0x1cd)),GrpcClient=require(a74_0x186b8e(0x124));class CucumberTestFramework extends TestFramework{constructor(_0x4b004f,_0x3e504e,_0x37c3b8){super(_0x4b004f,_0x3e504e,_0x37c3b8);}async['trackEvent'](_0x54c95f,_0x5da2b3,_0x3e9cff={}){const _0x56da63=a74_0x186b8e,_0xf23b5a={};_0xf23b5a[_0x56da63(0x182)]=_0x56da63(0x152),_0xf23b5a[_0x56da63(0x116)]=function(_0x3fa748,_0xb353e1){return _0x3fa748===_0xb353e1;},_0xf23b5a[_0x56da63(0x14b)]=function(_0x4df621,_0x6c22d1){return _0x4df621===_0x6c22d1;},_0xf23b5a[_0x56da63(0x1ad)]=_0x56da63(0x1ab);const _0x4b2198=_0xf23b5a;await super['trackEvent'](_0x54c95f,_0x5da2b3,_0x3e9cff);const _0x2b4257=this['resolveInstance'](_0x54c95f,_0x5da2b3,_0x3e9cff);if(!_0x2b4257){logger['debug'](_0x4b2198['dYNNv']);return;}try{let _0x31d574,_0x18254c;switch(_0x54c95f){case TestFrameworkState[_0x56da63(0x1cc)]:_0x31d574=_0x3e9cff[_0x56da63(0x1a9)],_0x18254c=TestInfo['getTestUUID'](_0x31d574['id']);if(_0x4b2198[_0x56da63(0x116)](_0x5da2b3,HookState[_0x56da63(0x135)])){logger[_0x56da63(0x1db)](_0x56da63(0x197)+_0x31d574['id']);const _0x5e7a4e={};_0x5e7a4e[_0x56da63(0x162)]=_0x18254c,_0x5e7a4e[_0x56da63(0x17b)]=_0x31d574,_0x2b4257[_0x56da63(0x19b)](this[_0x56da63(0x133)](_0x5e7a4e)),logger[_0x56da63(0x1db)]('trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20'+_0x31d574['id']),await this[_0x56da63(0x14a)](_0x2b4257,_0x31d574['id']);}else{if(_0x4b2198['HTYeu'](_0x5da2b3,HookState[_0x56da63(0x1a3)])){const _0x44897c={};_0x44897c[_0x56da63(0x162)]=_0x18254c,_0x44897c[_0x56da63(0x17b)]=_0x31d574,_0x2b4257['addMultipleEntries'](this[_0x56da63(0x10d)](_0x44897c)),await this[_0x56da63(0x14a)](_0x2b4257,_0x31d574['id']);}}break;case TestFrameworkState['LOG_REPORT']:_0x4b2198[_0x56da63(0x116)](_0x5da2b3,HookState['POST'])&&await this[_0x56da63(0x17c)](_0x2b4257,_0x54c95f,_0x3e9cff);break;default:if(CLIUtils[_0x56da63(0x16f)](_0x54c95f['toString']()['split']('.')[0x1])){const _0xd86aa3=await this['trackHookEvent'](_0x2b4257,_0x54c95f,_0x5da2b3,_0x3e9cff);_0x2b4257[_0x56da63(0x19b)](_0xd86aa3);}else logger[_0x56da63(0x1db)](_0x56da63(0x176)+_0x54c95f+_0x56da63(0x13b)+_0x5da2b3);break;}}catch(_0x5dd006){logger[_0x56da63(0x11f)](util[_0x56da63(0x144)](_0x4b2198['alinf'],_0x54c95f,_0x5da2b3,_0x3e9cff[_0x56da63(0x199)],_0x5dd006));}_0x3e9cff[_0x56da63(0x129)]=_0x2b4257,await this['runHooks'](_0x2b4257,_0x54c95f,_0x5da2b3,_0x3e9cff);}['resolveInstance'](_0x419d82,_0x3fe5ba,_0x520fa1={}){const _0x301489=a74_0x186b8e,_0x21b2c1={};_0x21b2c1[_0x301489(0x1aa)]=function(_0x2087a8,_0x38090e){return _0x2087a8===_0x38090e;},_0x21b2c1[_0x301489(0x1d2)]=function(_0x532d17,_0x41752b){return _0x532d17===_0x41752b;};const _0xfe4224=_0x21b2c1;let _0xaaed5f=null;return(_0xfe4224[_0x301489(0x1aa)](_0x419d82,TestFrameworkState[_0x301489(0x1b0)])||_0xfe4224[_0x301489(0x1d2)](_0x419d82,TestFrameworkState[_0x301489(0x13f)]))&&this['trackCucumberInstance'](_0x419d82,_0x520fa1),_0xaaed5f=TestFramework[_0x301489(0x119)](),_0xaaed5f;}[a74_0x186b8e(0x171)](_0x3917ad,_0x48460a){const _0x592903=a74_0x186b8e,_0x2cf469=CLIUtils[_0x592903(0x12b)](),_0x2f73fd=TrackedInstance[_0x592903(0x141)](_0x2cf469);let _0x3b7063=null;logger[_0x592903(0x1db)](_0x592903(0x136)+_0x2cf469+_0x592903(0x17a)+_0x3917ad),_0x3b7063=new TestFrameworkInstance(_0x2f73fd,this[_0x592903(0x1d8)](),this[_0x592903(0x192)](),_0x3917ad,HookState[_0x592903(0x13f)]),TestFramework['setTrackedInstance'](_0x2f73fd,_0x3b7063),logger['debug']('trackCucumberInstance:\x20saved\x20instance\x20contextId='+_0x2f73fd[_0x592903(0x1b7)]()+_0x592903(0x173)+_0x2cf469);}[a74_0x186b8e(0x133)](_0x283c81){const _0x2440c7=a74_0x186b8e,_0x359303={};_0x359303[_0x2440c7(0x134)]='No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test';const _0x315450=_0x359303,{testUUID:_0xef9a5c,testData:_0x1af3b5}=_0x283c81;if(!_0x1af3b5||!_0x1af3b5[_0x2440c7(0x143)])return logger['debug'](_0x315450[_0x2440c7(0x134)]),{};const _0x2bda74=_0xef9a5c,_0x3a5dc1=_0x1af3b5['uuid'],_0x405775=this[_0x2440c7(0x1d8)]()[0x0],_0x54f38c=this[_0x2440c7(0x192)](),_0xf6cf9a={[TestFrameworkConstants[_0x2440c7(0x15f)]]:_0x405775,[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x54f38c[_0x405775],[TestFrameworkConstants['KEY_TEST_LOGS']]:[],[TestFrameworkConstants[_0x2440c7(0x163)]]:{},[TestFrameworkConstants['KEY_HOOKS_STARTED']]:{},[TestFrameworkConstants[_0x2440c7(0x139)]]:_0x2bda74,[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants[_0x2440c7(0x1d5)],[TestFrameworkConstants[_0x2440c7(0x1d3)]]:_0x1af3b5[_0x2440c7(0x1c4)]||'',[TestFrameworkConstants[_0x2440c7(0x15c)]]:_0x1af3b5[_0x2440c7(0x166)]||'',[TestFrameworkConstants['KEY_TEST_ID']]:_0x3a5dc1,[TestFrameworkConstants[_0x2440c7(0x1b9)]]:_0x1af3b5[_0x2440c7(0x1c4)]||'',[TestFrameworkConstants['KEY_TEST_LOCATION']]:_0x1af3b5[_0x2440c7(0x117)]||'',[TestFrameworkConstants['KEY_TEST_CODE']]:_0x1af3b5[_0x2440c7(0x16a)]?.[_0x2440c7(0x1a8)]||null,[TestFrameworkConstants[_0x2440c7(0x140)]]:_0x1af3b5[_0x2440c7(0x184)]||[],[TestFrameworkConstants[_0x2440c7(0x1a0)]]:_0x1af3b5[_0x2440c7(0x170)]||new Date()['toISOString'](),[TestFrameworkConstants['KEY_TEST_SCOPE']]:_0x1af3b5['scopes']?.[0x0]||'',[TestFrameworkConstants[_0x2440c7(0x179)]]:_0x1af3b5[_0x2440c7(0x1a5)]||[],[TestFrameworkConstants[_0x2440c7(0x1cf)]]:_0x1af3b5[_0x2440c7(0x1ce)]?.[_0x2440c7(0x11e)]||_0x1af3b5['name']||'',[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:{},[TestFrameworkConstants['KEY_TEST_META']]:_0x1af3b5[_0x2440c7(0x157)]||{}};TestInfo[_0x2440c7(0x14c)](_0x3a5dc1,_0xf6cf9a),logger[_0x2440c7(0x1db)]('Parsed\x20cucumber\x20test:\x20'+_0x1af3b5[_0x2440c7(0x1c4)]+_0x2440c7(0x19d)+_0x2bda74);const _0x2b0fa7={};return _0x2b0fa7[_0x3a5dc1]=_0xf6cf9a,_0x2b0fa7;}['parseCucumberTestResult'](_0x4531da){const _0x3ab244=a74_0x186b8e,_0x24ee49={'JPHkp':_0x3ab244(0x186),'HfIxX':_0x3ab244(0x1a7),'xxnnr':function(_0x3220d9,_0x68cf1d){return _0x3220d9===_0x68cf1d;},'zGDXP':'failed','iUCHs':'UnhandledError','GHqwF':function(_0x59b2c3,_0x3f6e90,_0x361478){return _0x59b2c3(_0x3f6e90,_0x361478);},'GjtMV':function(_0x86b6ad,_0x2d7685){return _0x86b6ad>_0x2d7685;},'tlYta':function(_0x2ab027,_0x25ed93){return _0x2ab027>_0x25ed93;}},{testUUID:_0x425b17,testData:_0x32664c}=_0x4531da;if(!_0x32664c||!_0x32664c[_0x3ab244(0x143)])return logger[_0x3ab244(0x1db)](_0x24ee49[_0x3ab244(0x185)]),{};const _0x33a638=this[_0x3ab244(0x132)](TestFrameworkState[_0x3ab244(0x1cc)],HookState['POST']),_0x40d433=_0x32664c[_0x3ab244(0x143)],_0x2023ca=TestInfo[_0x3ab244(0x1c0)](_0x40d433)||{},_0x546258=_0x2023ca?_0x2023ca[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{}:{},_0x39ad1d={..._0x2023ca,[TestFrameworkConstants['KEY_TEST_RESULT']]:_0x32664c['result']||_0x24ee49[_0x3ab244(0x1a6)],[TestFrameworkConstants[_0x3ab244(0x1c5)]]:_0x32664c[_0x3ab244(0x1ba)]||new Date()[_0x3ab244(0x15a)](),[TestFrameworkConstants[_0x3ab244(0x1cb)]]:new Date()[_0x3ab244(0x15a)](),[TestFrameworkConstants[_0x3ab244(0x1bc)]]:_0x546258,[TestFrameworkConstants[_0x3ab244(0x17e)]]:[],[TestFrameworkConstants[_0x3ab244(0x122)]]:_0x32664c[_0x3ab244(0x157)]||{}};_0x24ee49[_0x3ab244(0x17f)](_0x32664c[_0x3ab244(0x1dd)],_0x24ee49['zGDXP'])&&_0x32664c[_0x3ab244(0x188)]&&(_0x39ad1d[TestFrameworkConstants['KEY_TEST_FAILURE_TYPE']]=_0x32664c[_0x3ab244(0x14e)]||_0x24ee49[_0x3ab244(0x1bf)],_0x39ad1d[TestFrameworkConstants[_0x3ab244(0x1af)]]=_0x32664c['failure_reason']||'',_0x39ad1d[TestFrameworkConstants[_0x3ab244(0x1be)]]=_0x32664c[_0x3ab244(0x188)]);const _0x55d9d9=TestInfo[_0x3ab244(0x1c0)](_0x40d433)[TestFrameworkConstants[_0x3ab244(0x149)]]||{},_0x552710=_0x24ee49[_0x3ab244(0x1c6)](getManualUploadLogs,_0x55d9d9,_0x33a638['getAllData']()['get'](_0x40d433)[TestFrameworkConstants[_0x3ab244(0x139)]]);if(_0x24ee49[_0x3ab244(0x1d4)](_0x552710[_0x3ab244(0x199)],0x0)){const _0x17c5db=_0x39ad1d[TestFrameworkConstants[_0x3ab244(0x17e)]]||[];_0x39ad1d[TestFrameworkConstants['KEY_LOGS']]=[..._0x17c5db,..._0x552710];}_0x32664c[_0x3ab244(0x178)]&&_0x24ee49[_0x3ab244(0x110)](_0x32664c[_0x3ab244(0x178)][_0x3ab244(0x199)],0x0)&&(_0x39ad1d[TestFrameworkConstants[_0x3ab244(0x163)]]=_0x32664c[_0x3ab244(0x178)]);TestInfo[_0x3ab244(0x14c)](_0x40d433,_0x39ad1d),logger['debug'](_0x3ab244(0x172)+_0x32664c[_0x3ab244(0x1c4)]+_0x3ab244(0x169)+_0x32664c['result']);const _0x235311={};return _0x235311[_0x40d433]=_0x39ad1d,_0x235311;}async[a74_0x186b8e(0x19c)](_0x380f38,_0x1109c1,_0x49ae43,_0x119cf6){const _0x9b462c=a74_0x186b8e,_0x3831af={'AyjBw':'No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','MUKOZ':function(_0x87d158){return _0x87d158();},'zQvLy':function(_0x4cca83,_0x48358c){return _0x4cca83 in _0x48358c;},'PeRmm':function(_0x23ddfb,_0x18eeb1){return _0x23ddfb===_0x18eeb1;},'rfIfE':function(_0x3d22d5,_0x488c93){return _0x3d22d5===_0x488c93;},'deaJw':function(_0x228fd6,_0x10d1db){return _0x228fd6>_0x10d1db;},'JiMyT':function(_0x50d173,_0x29bf12){return _0x50d173===_0x29bf12;},'KYGpd':'failed','fvIUN':'UnhandledError','ntdAP':_0x9b462c(0x153),'owLKZ':function(_0xb5b850,_0x2db7aa){return _0xb5b850!==_0x2db7aa;}},{hookData:_0x39ff53}=_0x119cf6;if(!_0x39ff53)return logger[_0x9b462c(0x1db)](_0x3831af[_0x9b462c(0x1bb)]),{};const _0x38fddc=_0x39ff53['uuid']||_0x3831af[_0x9b462c(0x1b8)](uuidv4),_0x214411=_0x39ff53[_0x9b462c(0x115)],_0x5f3816=_0x1109c1[_0x9b462c(0x1b6)]()[_0x9b462c(0x181)]('.')[0x1],_0x3456ee=TestInfo['getTestDetails'](_0x214411)[TestFrameworkConstants[_0x9b462c(0x1bc)]]||{},_0x855043=_0x380f38[_0x9b462c(0x1d1)]()[_0x9b462c(0x12c)](_0x214411);if(!_0x855043)return logger[_0x9b462c(0x1db)](_0x9b462c(0x175)+_0x214411+_0x9b462c(0x151)),this[_0x9b462c(0x138)](_0x380f38,_0x214411,_0x1109c1,_0x49ae43,_0x119cf6),{};let _0x313247=_0x855043[TestFrameworkConstants['KEY_HOOKS_STARTED']];!_0x313247&&(_0x313247={});!_0x3831af[_0x9b462c(0x114)](_0x5f3816,_0x313247)&&(_0x313247[_0x5f3816]=[]);let _0x52e087=_0x855043[TestFrameworkConstants[_0x9b462c(0x163)]];!_0x52e087&&(_0x52e087={});!_0x3831af[_0x9b462c(0x114)](_0x5f3816,_0x52e087)&&(_0x52e087[_0x5f3816]=[]);const _0x2ab03c={[TestFrameworkConstants[_0x9b462c(0x1ca)]]:_0x313247,[TestFrameworkConstants[_0x9b462c(0x163)]]:_0x52e087},_0x462456={};_0x462456[_0x214411]=_0x2ab03c;const _0xc718f0=_0x462456;if(_0x3831af[_0x9b462c(0x19f)](_0x49ae43,HookState[_0x9b462c(0x135)])){const _0x14375c={[TestFrameworkConstants[_0x9b462c(0x126)]]:_0x38fddc,[TestFrameworkConstants[_0x9b462c(0x15b)]]:TestFrameworkConstants[_0x9b462c(0x18a)],[TestFrameworkConstants[_0x9b462c(0x1b4)]]:_0x39ff53[_0x9b462c(0x150)],[TestFrameworkConstants[_0x9b462c(0x12e)]]:[],[TestFrameworkConstants[_0x9b462c(0x159)]]:_0x39ff53[_0x9b462c(0x156)],[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x3456ee};_0x14375c[_0x9b462c(0x18c)]=_0x5f3816;const _0x516c96=_0x14375c;_0x313247[_0x5f3816][_0x9b462c(0x11c)](_0x516c96),_0xc718f0[_0x214411][TestFrameworkConstants[_0x9b462c(0x1da)]]=_0x5f3816,logger[_0x9b462c(0x1db)](_0x9b462c(0x18e)+_0x5f3816+_0x9b462c(0x16c)+_0x516c96+_0x9b462c(0x191)+_0x119cf6);}else{if(_0x3831af[_0x9b462c(0x18d)](_0x49ae43,HookState[_0x9b462c(0x1a3)])){const _0x2a626a=_0x39ff53['result'],_0x266e4e=_0x313247[_0x5f3816]||[];logger[_0x9b462c(0x1db)](_0x9b462c(0x16d)+_0x266e4e+_0x9b462c(0x113)+_0x119cf6);if(_0x3831af['deaJw'](_0x266e4e[_0x9b462c(0x199)],0x0)){const _0x506672=_0x266e4e[_0x9b462c(0x1c9)]();_0x3831af[_0x9b462c(0x189)](_0x39ff53[_0x9b462c(0x1dd)],_0x3831af[_0x9b462c(0x15d)])&&_0x39ff53[_0x9b462c(0x130)]?(_0x506672[TestFrameworkConstants[_0x9b462c(0x1d7)]]=_0x39ff53[_0x9b462c(0x14e)]||_0x3831af[_0x9b462c(0x11b)],_0x506672[TestFrameworkConstants[_0x9b462c(0x194)]]=_0x39ff53[_0x9b462c(0x165)]||'',_0x506672[TestFrameworkConstants[_0x9b462c(0x1b2)]]=_0x39ff53['failure_data']):_0x506672[TestFrameworkConstants[_0x9b462c(0x15b)]]=_0x3831af[_0x9b462c(0x16b)];_0x3831af[_0x9b462c(0x161)](_0x2a626a,TestFrameworkConstants[_0x9b462c(0x18a)])&&(_0x506672[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x2a626a);_0x506672[TestFrameworkConstants[_0x9b462c(0x12a)]]=_0x39ff53[_0x9b462c(0x18f)]||new Date()[_0x9b462c(0x15a)](),_0x506672[TestFrameworkConstants[_0x9b462c(0x1bc)]]=_0x3456ee;const _0x390b92=_0x506672[TestFrameworkConstants['KEY_HOOK_ID']];!_0x52e087[_0x5f3816]&&(_0x52e087[_0x5f3816]=[]),_0x52e087[_0x5f3816][_0x9b462c(0x11c)](_0x506672),_0xc718f0[_0x214411][TestFrameworkConstants[_0x9b462c(0x11d)]]=_0x5f3816;}}}return logger[_0x9b462c(0x1db)](_0x9b462c(0x198)+_0x39ff53[_0x9b462c(0x156)]+'\x20with\x20id\x20'+_0x38fddc+'\x20for\x20test:\x20'+_0x214411),_0xc718f0;}[a74_0x186b8e(0x158)](_0x104bff){const _0x188d9e=a74_0x186b8e,_0x443140={};_0x443140[_0x188d9e(0x15e)]=_0x188d9e(0x1a4);const _0x37fe58=_0x443140;try{const _0x42b6a0=_0x104bff[_0x188d9e(0x1a9)]?_0x104bff[_0x188d9e(0x1a9)]['id']:_0x104bff[_0x188d9e(0x1c3)][_0x188d9e(0x115)],_0x17f816=_0x104bff[_0x188d9e(0x129)],_0x3dbe97=_0x17f816['getContext'](),_0x20ab99=_0x17f816[_0x188d9e(0x1d1)]()[_0x188d9e(0x12c)](_0x42b6a0);if(!_0x20ab99)return logger[_0x188d9e(0x1db)](_0x188d9e(0x18b)+_0x42b6a0),{};logger[_0x188d9e(0x1db)](_0x188d9e(0x13e)+_0x42b6a0);const {[TestFrameworkConstants[_0x188d9e(0x15f)]]:_0x10c65f='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x533b90='',[TestFrameworkConstants[_0x188d9e(0x1a0)]]:_0x5aa9b4='',[TestFrameworkConstants[_0x188d9e(0x1c5)]]:_0x21718a=''}=_0x20ab99,_0x5bed82=_0x17f816['getCurrentTestState']()[_0x188d9e(0x1b6)]()[_0x188d9e(0x181)]('.')[0x1],_0x22c752=_0x17f816['getCurrentHookState']()[_0x188d9e(0x1b6)]()[_0x188d9e(0x181)]('.')[0x1],_0x4be6f6=global?.[_0x188d9e(0x118)]??0x0,_0x342a77=_0x17f816[_0x188d9e(0x1b5)](),_0x83fe47=Buffer[_0x188d9e(0x1a2)](JSON[_0x188d9e(0x183)](_0x20ab99))[_0x188d9e(0x1b6)](_0x37fe58[_0x188d9e(0x15e)]),_0x512690={'hash':_0x3dbe97[_0x188d9e(0x1b7)](),'threadId':_0x3dbe97['getThreadId']()[_0x188d9e(0x1b6)](),'processId':_0x3dbe97[_0x188d9e(0x14f)]()[_0x188d9e(0x1b6)]()},_0x831ca0={};_0x831ca0[_0x188d9e(0x195)]=_0x4be6f6,_0x831ca0[_0x188d9e(0x1d9)]=_0x10c65f,_0x831ca0[_0x188d9e(0x1d0)]=_0x533b90,_0x831ca0[_0x188d9e(0x168)]=_0x5bed82,_0x831ca0['hookState']=_0x22c752,_0x831ca0['startedAt']=_0x5aa9b4,_0x831ca0[_0x188d9e(0x196)]=_0x21718a,_0x831ca0['uuid']=_0x342a77,_0x831ca0[_0x188d9e(0x145)]=_0x83fe47,_0x831ca0['executionContext']=_0x512690;const _0x578707=_0x831ca0;return logger[_0x188d9e(0x1db)](_0x188d9e(0x154)+_0x42b6a0+'\x20testState:\x20'+_0x5bed82+'\x20hookState:\x20'+_0x22c752),_0x578707;}catch(_0xf64422){return logger[_0x188d9e(0x11f)]('Error\x20in\x20createTestFrameworkEventPayload:\x20'+util[_0x188d9e(0x144)](_0xf64422)),{};}}async[a74_0x186b8e(0x17c)](_0x529e73,_0x14bad7,_0x3690dc){const _0x2b164c=a74_0x186b8e,_0x46789d={'CXzli':function(_0x22e980,_0x3d90c9,_0x31db82){return _0x22e980(_0x3d90c9,_0x31db82);},'lsuhy':function(_0x45601e,_0x3e7254){return _0x45601e===_0x3e7254;},'Dsxzz':_0x2b164c(0x16e),'IQblD':function(_0x158b45,_0x20bc95){return _0x158b45/_0x20bc95;},'DoJaM':function(_0x376690,_0x22ce7b){return _0x376690<_0x22ce7b;},'Hizbl':function(_0x1b2e9a,_0x57c095){return _0x1b2e9a*_0x57c095;},'sgEGU':function(_0xbd29c1,_0x4b51a0){return _0xbd29c1+_0x4b51a0;},'VVcdT':_0x2b164c(0x17d)};try{const _0x52e542=_0x3690dc[_0x2b164c(0x162)],_0xc9085b=_0x529e73[_0x2b164c(0x1d1)]()[_0x2b164c(0x12c)](_0x52e542),{[TestFrameworkConstants[_0x2b164c(0x15f)]]:_0x22550a='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x587dbf=''}=_0xc9085b,_0x2d80c8=TestInfo[_0x2b164c(0x120)](_0x52e542),_0x9df318=TestInfo[_0x2b164c(0x1c0)](_0x52e542)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x263232=_0x46789d[_0x2b164c(0x155)](getMediaArtifactsLogs,_0x9df318,_0x529e73['getAllData']()[_0x2b164c(0x12c)](_0x52e542)[TestFrameworkConstants[_0x2b164c(0x139)]]),_0x51fd14=(_0x2d80c8||[])[_0x2b164c(0x160)](_0x263232||[]);if(!_0x51fd14||_0x46789d['lsuhy'](_0x51fd14[_0x2b164c(0x199)],0x0)){logger[_0x2b164c(0x1db)](_0x46789d[_0x2b164c(0x1ac)]);return;}const _0x52285c=0x28,_0x3b740a=Math[_0x2b164c(0x112)](_0x46789d[_0x2b164c(0x167)](_0x51fd14['length'],_0x52285c));for(let _0x1f434e=0x0;_0x46789d['DoJaM'](_0x1f434e,_0x3b740a);_0x1f434e++){const _0xdc2ffd=_0x46789d[_0x2b164c(0x190)](_0x1f434e,_0x52285c),_0x47331c=_0x46789d[_0x2b164c(0x1dc)](_0xdc2ffd,_0x52285c),_0x4ef691=_0x51fd14[_0x2b164c(0x1c1)](_0xdc2ffd,_0x47331c),_0x117ae4={'platformIndex':global?.[_0x2b164c(0x118)]??0x0,'logs':_0x4ef691,'testFrameworkName':_0x22550a,'testFrameworkVersion':_0x587dbf,'testFrameworkState':_0x14bad7[_0x2b164c(0x1b6)]()[_0x2b164c(0x181)]('.')[0x1]};logger[_0x2b164c(0x1db)](_0x2b164c(0x11a)+_0x52e542+_0x2b164c(0x13d)+_0x46789d[_0x2b164c(0x1dc)](_0x1f434e,0x1)+'/'+_0x3b740a+'\x20payload='+util[_0x2b164c(0x1c8)](_0x117ae4));const _0x32ed4b=await GrpcClient[_0x2b164c(0x146)]()[_0x2b164c(0x128)](_0x117ae4);logger[_0x2b164c(0x1db)](_0x2b164c(0x11a)+_0x52e542+_0x2b164c(0x13d)+_0x46789d['sgEGU'](_0x1f434e,0x1)+'/'+_0x3b740a+_0x2b164c(0x19e)+util[_0x2b164c(0x1c8)](_0x32ed4b));}}catch(_0x5ed263){logger[_0x2b164c(0x11f)]('sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20'+util[_0x2b164c(0x144)](_0x5ed263));}logger[_0x2b164c(0x1db)](_0x46789d[_0x2b164c(0x187)]);}[a74_0x186b8e(0x138)](_0x56e5c3,_0x5bdae5,_0x45980a,_0x4752ec,_0x335d7e){const _0x5cb33f=a74_0x186b8e,_0x578ccf={'testId':_0x5bdae5,'testFrameworkState':_0x45980a,'hookState':_0x4752ec,'args':_0x335d7e,'timestamp':new Date()[_0x5cb33f(0x15a)]()};_0x56e5c3[_0x5cb33f(0x13c)](_0x5bdae5,_0x578ccf),logger[_0x5cb33f(0x1db)](_0x5cb33f(0x14d)+_0x5bdae5+_0x5cb33f(0x164)+_0x45980a+_0x5cb33f(0x142)+_0x4752ec);}async['processPendingHooks'](_0x598f6e,_0xa99c3){const _0x277be4=a74_0x186b8e,_0x51d09c={};_0x51d09c[_0x277be4(0x1c2)]=function(_0x54e776,_0x3f1bbd){return _0x54e776>_0x3f1bbd;};const _0x3109b8=_0x51d09c;if(!_0x598f6e['hasPendingHooks'](_0xa99c3))return;const _0x1265d6=_0x598f6e[_0x277be4(0x1b3)](_0xa99c3);logger[_0x277be4(0x1db)]('Processing\x20'+_0x1265d6[_0x277be4(0x199)]+'\x20pending\x20hooks\x20for\x20testId:\x20'+_0xa99c3);for(const _0x50ef99 of _0x1265d6){try{const _0x413f1f=await this[_0x277be4(0x19c)](_0x598f6e,_0x50ef99['testFrameworkState'],_0x50ef99[_0x277be4(0x148)],_0x50ef99['args']);_0x413f1f&&_0x3109b8[_0x277be4(0x1c2)](Object[_0x277be4(0x174)](_0x413f1f)[_0x277be4(0x199)],0x0)&&_0x598f6e[_0x277be4(0x19b)](_0x413f1f),await this[_0x277be4(0x1a1)](_0x598f6e,_0x50ef99[_0x277be4(0x168)],_0x50ef99['hookState'],_0x50ef99[_0x277be4(0x12f)]);}catch(_0x1ed864){logger[_0x277be4(0x11f)](_0x277be4(0x10e)+_0xa99c3+',\x20error:\x20'+_0x1ed864);}}_0x598f6e[_0x277be4(0x1c7)](_0xa99c3),logger[_0x277be4(0x1db)](_0x277be4(0x177)+_0xa99c3);}}module[a74_0x186b8e(0x111)]=CucumberTestFramework;
1
+ const a74_0x35e40e=a74_0x1d7a;(function(_0x9a7422,_0x412130){const _0x131325=a74_0x1d7a,_0x2a74d2=_0x9a7422();while(!![]){try{const _0x417241=parseInt(_0x131325(0x22c))/0x1+-parseInt(_0x131325(0x1af))/0x2*(-parseInt(_0x131325(0x186))/0x3)+parseInt(_0x131325(0x244))/0x4+-parseInt(_0x131325(0x21b))/0x5+parseInt(_0x131325(0x230))/0x6*(parseInt(_0x131325(0x1ad))/0x7)+-parseInt(_0x131325(0x1df))/0x8*(-parseInt(_0x131325(0x215))/0x9)+-parseInt(_0x131325(0x1c6))/0xa;if(_0x417241===_0x412130)break;else _0x2a74d2['push'](_0x2a74d2['shift']());}catch(_0x3b51c0){_0x2a74d2['push'](_0x2a74d2['shift']());}}}(a74_0xd48f,0x9f983));function a74_0x1d7a(_0x1dbcf1,_0xf36051){const _0xd48f80=a74_0xd48f();return a74_0x1d7a=function(_0x1d7a9c,_0x393fe0){_0x1d7a9c=_0x1d7a9c-0x182;let _0x1aaae6=_0xd48f80[_0x1d7a9c];return _0x1aaae6;},a74_0x1d7a(_0x1dbcf1,_0xf36051);}const TestFramework=require(a74_0x35e40e(0x19f)),TestFrameworkState=require(a74_0x35e40e(0x1ab)),HookState=require(a74_0x35e40e(0x1f7)),{createClassLogger}=require(a74_0x35e40e(0x1d7)),TestFrameworkInstance=require(a74_0x35e40e(0x247)),CLIUtils=require('../cliUtils.js'),TrackedInstance=require(a74_0x35e40e(0x238)),TestFrameworkConstants=require(a74_0x35e40e(0x1ca)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a74_0x35e40e(0x198)),logger=createClassLogger(a74_0x35e40e(0x218)),{v4:uuidv4}=require(a74_0x35e40e(0x1b9)),util=require(a74_0x35e40e(0x1ea)),TestInfo=require(a74_0x35e40e(0x1fb)),GrpcClient=require('../grpcClient');class CucumberTestFramework extends TestFramework{constructor(_0x22b2cc,_0x547b0e,_0x3f274d){super(_0x22b2cc,_0x547b0e,_0x3f274d);}async[a74_0x35e40e(0x23a)](_0xe8888e,_0x53ef93,_0x5b474d={}){const _0x36ad2e=a74_0x35e40e,_0x1ce75e={};_0x1ce75e[_0x36ad2e(0x1ed)]=_0x36ad2e(0x23d),_0x1ce75e[_0x36ad2e(0x20e)]=function(_0x132760,_0x5cc59a){return _0x132760===_0x5cc59a;},_0x1ce75e['IBYmm']=function(_0x5a893d,_0x388f3c){return _0x5a893d===_0x388f3c;},_0x1ce75e[_0x36ad2e(0x1c3)]=_0x36ad2e(0x1f5);const _0x28733d=_0x1ce75e;await super['trackEvent'](_0xe8888e,_0x53ef93,_0x5b474d);const _0x8be920=this[_0x36ad2e(0x187)](_0xe8888e,_0x53ef93,_0x5b474d);if(!_0x8be920){logger[_0x36ad2e(0x245)](_0x28733d[_0x36ad2e(0x1ed)]);return;}try{let _0xdbb740,_0x4d3664;switch(_0xe8888e){case TestFrameworkState[_0x36ad2e(0x1c7)]:_0xdbb740=_0x5b474d[_0x36ad2e(0x1a0)],_0x4d3664=TestInfo[_0x36ad2e(0x23e)](_0xdbb740['id']);if(_0x28733d[_0x36ad2e(0x20e)](_0x53ef93,HookState['PRE'])){logger[_0x36ad2e(0x245)]('trackEvent\x20loading\x20testData\x20for\x20testId:\x20'+_0xdbb740['id']);const _0x5894dd={};_0x5894dd[_0x36ad2e(0x1e4)]=_0x4d3664,_0x5894dd[_0x36ad2e(0x226)]=_0xdbb740,_0x8be920[_0x36ad2e(0x20c)](this['parseCucumberTest'](_0x5894dd)),logger[_0x36ad2e(0x245)]('trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20'+_0xdbb740['id']),await this[_0x36ad2e(0x18b)](_0x8be920,_0xdbb740['id']);}else{if(_0x28733d['NkSRR'](_0x53ef93,HookState['POST'])){const _0x455f8f={};_0x455f8f['testUUID']=_0x4d3664,_0x455f8f['testData']=_0xdbb740,_0x8be920['addMultipleEntries'](this[_0x36ad2e(0x1f3)](_0x455f8f)),await this[_0x36ad2e(0x18b)](_0x8be920,_0xdbb740['id']);}}break;case TestFrameworkState[_0x36ad2e(0x1cc)]:_0x28733d[_0x36ad2e(0x242)](_0x53ef93,HookState[_0x36ad2e(0x1b5)])&&await this[_0x36ad2e(0x23b)](_0x8be920,_0xe8888e,_0x5b474d);break;default:if(CLIUtils[_0x36ad2e(0x235)](_0xe8888e[_0x36ad2e(0x1cb)]()['split']('.')[0x1])){const _0x35de5e=await this[_0x36ad2e(0x1a3)](_0x8be920,_0xe8888e,_0x53ef93,_0x5b474d);_0x8be920['addMultipleEntries'](_0x35de5e);}else logger['debug']('trackEvent:\x20unsupported\x20testFrameworkState='+_0xe8888e+_0x36ad2e(0x18e)+_0x53ef93);break;}}catch(_0x5c7d9c){logger['error'](util[_0x36ad2e(0x1d8)](_0x28733d['ozCgC'],_0xe8888e,_0x53ef93,_0x5b474d[_0x36ad2e(0x19d)],_0x5c7d9c));}_0x5b474d[_0x36ad2e(0x18d)]=_0x8be920,await this[_0x36ad2e(0x1b6)](_0x8be920,_0xe8888e,_0x53ef93,_0x5b474d);}[a74_0x35e40e(0x187)](_0x21e3bb,_0x314d8d,_0x13014f={}){const _0x3190cd=a74_0x35e40e,_0x226d85={};_0x226d85[_0x3190cd(0x18c)]=function(_0xba746f,_0x7422d3){return _0xba746f===_0x7422d3;};const _0x43f3a9=_0x226d85;let _0xb817ff=null;return(_0x43f3a9[_0x3190cd(0x18c)](_0x21e3bb,TestFrameworkState[_0x3190cd(0x194)])||_0x43f3a9['pdkxx'](_0x21e3bb,TestFrameworkState[_0x3190cd(0x209)]))&&this['trackCucumberInstance'](_0x21e3bb,_0x13014f),_0xb817ff=TestFramework[_0x3190cd(0x224)](),_0xb817ff;}['trackCucumberInstance'](_0x1fac35,_0x60dc){const _0x15395d=a74_0x35e40e,_0xc9d211=CLIUtils['getCurrentInstanceName'](),_0x523d95=TrackedInstance[_0x15395d(0x24b)](_0xc9d211);let _0x1129a9=null;logger[_0x15395d(0x245)]('trackCucumberInstance:\x20created\x20instance\x20for\x20target='+_0xc9d211+_0x15395d(0x190)+_0x1fac35),_0x1129a9=new TestFrameworkInstance(_0x523d95,this[_0x15395d(0x24a)](),this['getTestFrameworksVersions'](),_0x1fac35,HookState[_0x15395d(0x209)]),TestFramework[_0x15395d(0x1a7)](_0x523d95,_0x1129a9),logger[_0x15395d(0x245)](_0x15395d(0x1fa)+_0x523d95[_0x15395d(0x1d3)]()+_0x15395d(0x19c)+_0xc9d211);}[a74_0x35e40e(0x1bc)](_0x468862){const _0x170ea9=a74_0x35e40e,_0x343315={};_0x343315[_0x170ea9(0x1e7)]=_0x170ea9(0x1e9);const _0x2e74d4=_0x343315,{testUUID:_0x46ddd2,testData:_0x6b47fd}=_0x468862;if(!_0x6b47fd||!_0x6b47fd['uuid'])return logger[_0x170ea9(0x245)](_0x2e74d4['WbWcR']),{};const _0x221a2b=_0x46ddd2,_0x2d6b72=_0x6b47fd[_0x170ea9(0x1b9)],_0x2abf02=this['getTestFrameworks']()[0x0],_0x40213c=this[_0x170ea9(0x21a)](),_0x304b0a={[TestFrameworkConstants[_0x170ea9(0x1d6)]]:_0x2abf02,[TestFrameworkConstants[_0x170ea9(0x1ac)]]:_0x40213c[_0x2abf02],[TestFrameworkConstants['KEY_TEST_LOGS']]:[],[TestFrameworkConstants[_0x170ea9(0x1db)]]:{},[TestFrameworkConstants[_0x170ea9(0x246)]]:{},[TestFrameworkConstants[_0x170ea9(0x237)]]:_0x221a2b,[TestFrameworkConstants[_0x170ea9(0x1b8)]]:TestFrameworkConstants[_0x170ea9(0x20f)],[TestFrameworkConstants[_0x170ea9(0x1f9)]]:_0x6b47fd[_0x170ea9(0x196)]||'',[TestFrameworkConstants[_0x170ea9(0x1ce)]]:_0x6b47fd['file_name']||'',[TestFrameworkConstants[_0x170ea9(0x241)]]:_0x2d6b72,[TestFrameworkConstants['KEY_TEST_NAME']]:_0x6b47fd[_0x170ea9(0x196)]||'',[TestFrameworkConstants[_0x170ea9(0x1fd)]]:_0x6b47fd[_0x170ea9(0x1b3)]||'',[TestFrameworkConstants['KEY_TEST_CODE']]:_0x6b47fd[_0x170ea9(0x22d)]?.[_0x170ea9(0x21d)]||null,[TestFrameworkConstants[_0x170ea9(0x1ae)]]:_0x6b47fd[_0x170ea9(0x19b)]||[],[TestFrameworkConstants[_0x170ea9(0x1aa)]]:_0x6b47fd[_0x170ea9(0x222)]||new Date()[_0x170ea9(0x236)](),[TestFrameworkConstants[_0x170ea9(0x240)]]:_0x6b47fd['scopes']?.[0x0]||'',[TestFrameworkConstants['KEY_TEST_SCOPES']]:_0x6b47fd[_0x170ea9(0x1f6)]||[],[TestFrameworkConstants[_0x170ea9(0x1d2)]]:_0x6b47fd[_0x170ea9(0x21c)]?.['rerun_name']||_0x6b47fd['name']||'',[TestFrameworkConstants[_0x170ea9(0x248)]]:{},[TestFrameworkConstants['KEY_TEST_META']]:_0x6b47fd[_0x170ea9(0x1fc)]||{}};TestInfo[_0x170ea9(0x202)](_0x2d6b72,_0x304b0a),logger['debug'](_0x170ea9(0x1a8)+_0x6b47fd[_0x170ea9(0x196)]+'\x20with\x20UUID:\x20'+_0x221a2b);const _0x39b978={};return _0x39b978[_0x2d6b72]=_0x304b0a,_0x39b978;}[a74_0x35e40e(0x1f3)](_0x2f039f){const _0x3893ae=a74_0x35e40e,_0x450fc6={'VCzga':_0x3893ae(0x19e),'IQGEZ':_0x3893ae(0x1d9),'FJFer':function(_0x146959,_0x11186c){return _0x146959===_0x11186c;},'JyoBX':_0x3893ae(0x1ff),'JuunY':_0x3893ae(0x1da),'ZvnvS':function(_0x2f6060,_0x5e52da,_0x579505){return _0x2f6060(_0x5e52da,_0x579505);},'ggtXD':function(_0x4ac966,_0x201749){return _0x4ac966>_0x201749;},'ZsGKf':function(_0x21bbf3,_0x52ea40){return _0x21bbf3>_0x52ea40;}},{testUUID:_0x49818e,testData:_0x2423aa}=_0x2f039f;if(!_0x2423aa||!_0x2423aa[_0x3893ae(0x1b9)])return logger[_0x3893ae(0x245)](_0x450fc6[_0x3893ae(0x1c8)]),{};const _0x2d900c=this['resolveInstance'](TestFrameworkState['TEST'],HookState['POST']),_0x4b491e=_0x2423aa['uuid'],_0x203228=TestInfo['getTestDetails'](_0x4b491e)||{},_0x3da4ba=_0x203228?_0x203228[TestFrameworkConstants[_0x3893ae(0x248)]]||{}:{},_0x756a67={..._0x203228,[TestFrameworkConstants[_0x3893ae(0x1b8)]]:_0x2423aa[_0x3893ae(0x1c9)]||_0x450fc6[_0x3893ae(0x214)],[TestFrameworkConstants[_0x3893ae(0x24e)]]:_0x2423aa[_0x3893ae(0x1ef)]||new Date()[_0x3893ae(0x236)](),[TestFrameworkConstants[_0x3893ae(0x1d1)]]:new Date()[_0x3893ae(0x236)](),[TestFrameworkConstants[_0x3893ae(0x248)]]:_0x3da4ba,[TestFrameworkConstants[_0x3893ae(0x1ee)]]:[],[TestFrameworkConstants['KEY_TEST_META']]:_0x2423aa[_0x3893ae(0x1fc)]||{}};_0x450fc6[_0x3893ae(0x1c1)](_0x2423aa[_0x3893ae(0x1c9)],_0x450fc6['JyoBX'])&&_0x2423aa[_0x3893ae(0x1bb)]&&(_0x756a67[TestFrameworkConstants[_0x3893ae(0x21e)]]=_0x2423aa['failure_type']||_0x450fc6[_0x3893ae(0x185)],_0x756a67[TestFrameworkConstants['KEY_TEST_FAILURE_REASON']]=_0x2423aa[_0x3893ae(0x1ba)]||'',_0x756a67[TestFrameworkConstants[_0x3893ae(0x1bf)]]=_0x2423aa[_0x3893ae(0x1bb)]);const _0x568795=TestInfo['getTestDetails'](_0x4b491e)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x2f5d94=_0x450fc6[_0x3893ae(0x250)](getManualUploadLogs,_0x568795,_0x2d900c['getAllData']()[_0x3893ae(0x192)](_0x4b491e)[TestFrameworkConstants[_0x3893ae(0x237)]]);if(_0x450fc6[_0x3893ae(0x188)](_0x2f5d94[_0x3893ae(0x19d)],0x0)){const _0x2bdc17=_0x756a67[TestFrameworkConstants['KEY_LOGS']]||[];_0x756a67[TestFrameworkConstants[_0x3893ae(0x1ee)]]=[..._0x2bdc17,..._0x2f5d94];}_0x2423aa[_0x3893ae(0x21f)]&&_0x450fc6['ZsGKf'](_0x2423aa[_0x3893ae(0x21f)][_0x3893ae(0x19d)],0x0)&&(_0x756a67[TestFrameworkConstants[_0x3893ae(0x1db)]]=_0x2423aa[_0x3893ae(0x21f)]);TestInfo[_0x3893ae(0x202)](_0x4b491e,_0x756a67),logger[_0x3893ae(0x245)](_0x3893ae(0x1cf)+_0x2423aa[_0x3893ae(0x196)]+_0x3893ae(0x22e)+_0x2423aa[_0x3893ae(0x1c9)]);const _0x26f43e={};return _0x26f43e[_0x4b491e]=_0x756a67,_0x26f43e;}async[a74_0x35e40e(0x1a3)](_0x327797,_0x3cd6d7,_0x449d64,_0x140359){const _0x5e97c5=a74_0x35e40e,_0x1f65f2={'OdifX':_0x5e97c5(0x249),'PDuNO':function(_0x50ebda){return _0x50ebda();},'XYZXQ':function(_0xd8e201,_0x1a10e4){return _0xd8e201 in _0x1a10e4;},'QdFrV':function(_0x2db979,_0x7ac275){return _0x2db979===_0x7ac275;},'OtWov':function(_0xfa5f76,_0x47c2d9){return _0xfa5f76===_0x47c2d9;},'QOyKh':function(_0x4671bf,_0x26bf59){return _0x4671bf>_0x26bf59;},'jiGSx':function(_0x50163a,_0xea1aed){return _0x50163a===_0xea1aed;},'vtOTp':_0x5e97c5(0x1ff),'lasbR':_0x5e97c5(0x1da),'kldFw':_0x5e97c5(0x239),'RyBhW':function(_0x14a133,_0x3d52de){return _0x14a133!==_0x3d52de;}},{hookData:_0x5be416}=_0x140359;if(!_0x5be416)return logger[_0x5e97c5(0x245)](_0x1f65f2['OdifX']),{};const _0x190fea=_0x5be416[_0x5e97c5(0x1b9)]||_0x1f65f2[_0x5e97c5(0x1e6)](uuidv4),_0x111267=_0x5be416['test_run_id'],_0x3703af=_0x3cd6d7[_0x5e97c5(0x1cb)]()[_0x5e97c5(0x1b7)]('.')[0x1],_0x1bddb9=TestInfo[_0x5e97c5(0x19a)](_0x111267)[TestFrameworkConstants[_0x5e97c5(0x248)]]||{},_0x2d4234=_0x327797[_0x5e97c5(0x20d)]()[_0x5e97c5(0x192)](_0x111267);if(!_0x2d4234)return logger[_0x5e97c5(0x245)](_0x5e97c5(0x229)+_0x111267+_0x5e97c5(0x1b2)),this[_0x5e97c5(0x1d0)](_0x327797,_0x111267,_0x3cd6d7,_0x449d64,_0x140359),{};let _0x533ed4=_0x2d4234[TestFrameworkConstants[_0x5e97c5(0x246)]];!_0x533ed4&&(_0x533ed4={});!_0x1f65f2[_0x5e97c5(0x1bd)](_0x3703af,_0x533ed4)&&(_0x533ed4[_0x3703af]=[]);let _0x12b76a=_0x2d4234[TestFrameworkConstants[_0x5e97c5(0x1db)]];!_0x12b76a&&(_0x12b76a={});!_0x1f65f2[_0x5e97c5(0x1bd)](_0x3703af,_0x12b76a)&&(_0x12b76a[_0x3703af]=[]);const _0x5b4ab4={[TestFrameworkConstants[_0x5e97c5(0x246)]]:_0x533ed4,[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:_0x12b76a},_0xefa1f={};_0xefa1f[_0x111267]=_0x5b4ab4;const _0x239b40=_0xefa1f;if(_0x1f65f2[_0x5e97c5(0x231)](_0x449d64,HookState[_0x5e97c5(0x1f0)])){const _0x956f29={[TestFrameworkConstants[_0x5e97c5(0x1d5)]]:_0x190fea,[TestFrameworkConstants[_0x5e97c5(0x219)]]:TestFrameworkConstants[_0x5e97c5(0x205)],[TestFrameworkConstants[_0x5e97c5(0x22f)]]:_0x5be416[_0x5e97c5(0x227)],[TestFrameworkConstants[_0x5e97c5(0x1a1)]]:[],[TestFrameworkConstants[_0x5e97c5(0x203)]]:_0x5be416[_0x5e97c5(0x1f8)],[TestFrameworkConstants[_0x5e97c5(0x248)]]:_0x1bddb9};_0x956f29[_0x5e97c5(0x1f1)]=_0x3703af;const _0x10765e=_0x956f29;_0x533ed4[_0x3703af][_0x5e97c5(0x210)](_0x10765e),_0x239b40[_0x111267][TestFrameworkConstants[_0x5e97c5(0x24f)]]=_0x3703af,logger[_0x5e97c5(0x245)]('trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20'+_0x3703af+_0x5e97c5(0x1de)+_0x10765e+_0x5e97c5(0x200)+_0x140359);}else{if(_0x1f65f2['OtWov'](_0x449d64,HookState[_0x5e97c5(0x1b5)])){const _0x35974b=_0x5be416[_0x5e97c5(0x1c9)],_0x12ff9c=_0x533ed4[_0x3703af]||[];logger[_0x5e97c5(0x245)](_0x5e97c5(0x221)+_0x12ff9c+_0x5e97c5(0x234)+_0x140359);if(_0x1f65f2[_0x5e97c5(0x206)](_0x12ff9c[_0x5e97c5(0x19d)],0x0)){const _0x33401f=_0x12ff9c[_0x5e97c5(0x1e0)]();_0x1f65f2[_0x5e97c5(0x232)](_0x5be416[_0x5e97c5(0x1c9)],_0x1f65f2['vtOTp'])&&_0x5be416['failure_data']?(_0x33401f[TestFrameworkConstants[_0x5e97c5(0x1e3)]]=_0x5be416[_0x5e97c5(0x217)]||_0x1f65f2[_0x5e97c5(0x22b)],_0x33401f[TestFrameworkConstants[_0x5e97c5(0x199)]]=_0x5be416[_0x5e97c5(0x1ba)]||'',_0x33401f[TestFrameworkConstants['KEY_HOOK_FAILURE']]=_0x5be416['failure_data']):_0x33401f[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x1f65f2[_0x5e97c5(0x1e5)];_0x1f65f2[_0x5e97c5(0x211)](_0x35974b,TestFrameworkConstants[_0x5e97c5(0x205)])&&(_0x33401f[TestFrameworkConstants[_0x5e97c5(0x219)]]=_0x35974b);_0x33401f[TestFrameworkConstants[_0x5e97c5(0x18f)]]=_0x5be416[_0x5e97c5(0x183)]||new Date()['toISOString'](),_0x33401f[TestFrameworkConstants[_0x5e97c5(0x248)]]=_0x1bddb9;const _0x174c10=_0x33401f[TestFrameworkConstants['KEY_HOOK_ID']];!_0x12b76a[_0x3703af]&&(_0x12b76a[_0x3703af]=[]),_0x12b76a[_0x3703af][_0x5e97c5(0x210)](_0x33401f),_0x239b40[_0x111267][TestFrameworkConstants[_0x5e97c5(0x23f)]]=_0x3703af;}}}return logger[_0x5e97c5(0x245)]('Tracked\x20cucumber\x20hook\x20event:\x20'+_0x5be416['hook_type']+_0x5e97c5(0x1a9)+_0x190fea+_0x5e97c5(0x1c0)+_0x111267),_0x239b40;}[a74_0x35e40e(0x1a5)](_0x28b9f8){const _0x3b50c4=a74_0x35e40e,_0x2cf12e={};_0x2cf12e[_0x3b50c4(0x1d4)]=_0x3b50c4(0x184);const _0x2a4c43=_0x2cf12e;try{const _0x58638a=_0x28b9f8['test']?_0x28b9f8[_0x3b50c4(0x1a0)]['id']:_0x28b9f8[_0x3b50c4(0x212)]['test_run_id'],_0x44802b=_0x28b9f8['instance'],_0x2b7615=_0x44802b[_0x3b50c4(0x195)](),_0x377ce4=_0x44802b[_0x3b50c4(0x20d)]()[_0x3b50c4(0x192)](_0x58638a);if(!_0x377ce4)return logger[_0x3b50c4(0x245)]('createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x58638a),{};logger['debug'](_0x3b50c4(0x213)+_0x58638a);const {[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x2747b9='',[TestFrameworkConstants[_0x3b50c4(0x1ac)]]:_0x5f5375='',[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x4700f7='',[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x3bbfe7=''}=_0x377ce4,_0x560109=_0x44802b['getCurrentTestState']()['toString']()[_0x3b50c4(0x1b7)]('.')[0x1],_0x2c7427=_0x44802b['getCurrentHookState']()[_0x3b50c4(0x1cb)]()['split']('.')[0x1],_0x3cf7ec=global?.[_0x3b50c4(0x1a6)]??0x0,_0x2ee671=_0x44802b[_0x3b50c4(0x1b0)](),_0x44cca9=Buffer[_0x3b50c4(0x223)](JSON['stringify'](_0x377ce4))[_0x3b50c4(0x1cb)](_0x2a4c43['WqAbA']),_0x2ae640={'hash':_0x2b7615['getId'](),'threadId':_0x2b7615[_0x3b50c4(0x193)]()[_0x3b50c4(0x1cb)](),'processId':_0x2b7615[_0x3b50c4(0x24d)]()[_0x3b50c4(0x1cb)]()},_0x16aeda={};_0x16aeda[_0x3b50c4(0x216)]=_0x3cf7ec,_0x16aeda[_0x3b50c4(0x182)]=_0x2747b9,_0x16aeda['testFrameworkVersion']=_0x5f5375,_0x16aeda[_0x3b50c4(0x225)]=_0x560109,_0x16aeda[_0x3b50c4(0x1dd)]=_0x2c7427,_0x16aeda['startedAt']=_0x4700f7,_0x16aeda[_0x3b50c4(0x24c)]=_0x3bbfe7,_0x16aeda[_0x3b50c4(0x1b9)]=_0x2ee671,_0x16aeda['eventJson']=_0x44cca9,_0x16aeda[_0x3b50c4(0x1e2)]=_0x2ae640;const _0x531d43=_0x16aeda;return logger[_0x3b50c4(0x245)](_0x3b50c4(0x1ec)+_0x58638a+_0x3b50c4(0x208)+_0x560109+'\x20hookState:\x20'+_0x2c7427),_0x531d43;}catch(_0x5a0c0c){return logger[_0x3b50c4(0x1b1)]('Error\x20in\x20createTestFrameworkEventPayload:\x20'+util[_0x3b50c4(0x1d8)](_0x5a0c0c)),{};}}async[a74_0x35e40e(0x23b)](_0x7b2226,_0xc30a6d,_0x1a8f2b){const _0x51a61f=a74_0x35e40e,_0x13042e={'jskbZ':function(_0x204112,_0x545f67,_0x4ec523){return _0x204112(_0x545f67,_0x4ec523);},'zvqVR':function(_0x132a87,_0x1bc229){return _0x132a87===_0x1bc229;},'fAezi':_0x51a61f(0x1b4),'XYgEj':function(_0x5ccdfe,_0x5b8d2f){return _0x5ccdfe/_0x5b8d2f;},'fcWYH':function(_0x3fa1c0,_0x569e5a){return _0x3fa1c0<_0x569e5a;},'ciqFr':function(_0x4610cf,_0x7974d1){return _0x4610cf*_0x7974d1;},'tjPQI':function(_0x29675c,_0x3e70d2){return _0x29675c+_0x3e70d2;},'MiJeZ':function(_0x4b3553,_0x199662){return _0x4b3553+_0x199662;},'vcypU':_0x51a61f(0x1c4)};try{const _0x165ac7=_0x1a8f2b[_0x51a61f(0x1e4)],_0x3b30ee=_0x7b2226[_0x51a61f(0x20d)]()[_0x51a61f(0x192)](_0x165ac7),{[TestFrameworkConstants[_0x51a61f(0x1d6)]]:_0x5b6adc='',[TestFrameworkConstants[_0x51a61f(0x1ac)]]:_0x33965a=''}=_0x3b30ee,_0x12a0f2=TestInfo[_0x51a61f(0x204)](_0x165ac7),_0x2272fe=TestInfo[_0x51a61f(0x19a)](_0x165ac7)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x10d8e7=_0x13042e['jskbZ'](getMediaArtifactsLogs,_0x2272fe,_0x7b2226[_0x51a61f(0x20d)]()['get'](_0x165ac7)[TestFrameworkConstants[_0x51a61f(0x237)]]),_0x44e6b7=(_0x12a0f2||[])['concat'](_0x10d8e7||[]);if(!_0x44e6b7||_0x13042e[_0x51a61f(0x20a)](_0x44e6b7[_0x51a61f(0x19d)],0x0)){logger[_0x51a61f(0x245)](_0x13042e[_0x51a61f(0x22a)]);return;}const _0x17f41a=0x28,_0x2ddc9f=Math[_0x51a61f(0x233)](_0x13042e[_0x51a61f(0x1e8)](_0x44e6b7[_0x51a61f(0x19d)],_0x17f41a));for(let _0xb7343f=0x0;_0x13042e[_0x51a61f(0x1a2)](_0xb7343f,_0x2ddc9f);_0xb7343f++){const _0x218f45=_0x13042e[_0x51a61f(0x1f2)](_0xb7343f,_0x17f41a),_0x48b298=_0x13042e[_0x51a61f(0x189)](_0x218f45,_0x17f41a),_0x1b42fb=_0x44e6b7['slice'](_0x218f45,_0x48b298),_0x2dfc77={'platformIndex':global?.['browserstackPlatformIndex']??0x0,'logs':_0x1b42fb,'testFrameworkName':_0x5b6adc,'testFrameworkVersion':_0x33965a,'testFrameworkState':_0xc30a6d[_0x51a61f(0x1cb)]()[_0x51a61f(0x1b7)]('.')[0x1]};logger[_0x51a61f(0x245)](_0x51a61f(0x1a4)+_0x165ac7+_0x51a61f(0x1dc)+_0x13042e[_0x51a61f(0x1fe)](_0xb7343f,0x1)+'/'+_0x2ddc9f+_0x51a61f(0x220)+util[_0x51a61f(0x1c2)](_0x2dfc77));const _0x63f195=await GrpcClient[_0x51a61f(0x228)]()[_0x51a61f(0x1c5)](_0x2dfc77);logger[_0x51a61f(0x245)](_0x51a61f(0x1a4)+_0x165ac7+_0x51a61f(0x1dc)+_0x13042e[_0x51a61f(0x1fe)](_0xb7343f,0x1)+'/'+_0x2ddc9f+'\x20response='+util['inspect'](_0x63f195));}}catch(_0x276850){logger[_0x51a61f(0x1b1)](_0x51a61f(0x207)+util[_0x51a61f(0x1d8)](_0x276850));}logger[_0x51a61f(0x245)](_0x13042e['vcypU']);}[a74_0x35e40e(0x1d0)](_0x55bc97,_0x136d53,_0x476786,_0xf386c9,_0x537c02){const _0x3d0481=a74_0x35e40e,_0x4df86d={'testId':_0x136d53,'testFrameworkState':_0x476786,'hookState':_0xf386c9,'args':_0x537c02,'timestamp':new Date()[_0x3d0481(0x236)]()};_0x55bc97['addPendingHook'](_0x136d53,_0x4df86d),logger[_0x3d0481(0x245)](_0x3d0481(0x1f4)+_0x136d53+',\x20state:\x20'+_0x476786+_0x3d0481(0x1eb)+_0xf386c9);}async[a74_0x35e40e(0x18b)](_0x4055d5,_0x3e2b8e){const _0x582971=a74_0x35e40e,_0x2d26b3={};_0x2d26b3[_0x582971(0x23c)]=function(_0x19a1e6,_0x43e6de){return _0x19a1e6>_0x43e6de;};const _0x1e860a=_0x2d26b3;if(!_0x4055d5[_0x582971(0x197)](_0x3e2b8e))return;const _0x1619b7=_0x4055d5[_0x582971(0x191)](_0x3e2b8e);logger[_0x582971(0x245)]('Processing\x20'+_0x1619b7[_0x582971(0x19d)]+'\x20pending\x20hooks\x20for\x20testId:\x20'+_0x3e2b8e);for(const _0x541dfe of _0x1619b7){try{const _0x397efd=await this[_0x582971(0x1a3)](_0x4055d5,_0x541dfe[_0x582971(0x225)],_0x541dfe['hookState'],_0x541dfe[_0x582971(0x1cd)]);_0x397efd&&_0x1e860a[_0x582971(0x23c)](Object[_0x582971(0x243)](_0x397efd)[_0x582971(0x19d)],0x0)&&_0x4055d5[_0x582971(0x20c)](_0x397efd),await this['runHooks'](_0x4055d5,_0x541dfe[_0x582971(0x225)],_0x541dfe[_0x582971(0x1dd)],_0x541dfe[_0x582971(0x1cd)]);}catch(_0x45cd44){logger[_0x582971(0x1b1)](_0x582971(0x20b)+_0x3e2b8e+_0x582971(0x1be)+_0x45cd44);}}_0x4055d5[_0x582971(0x18a)](_0x3e2b8e),logger[_0x582971(0x245)](_0x582971(0x1e1)+_0x3e2b8e);}}function a74_0xd48f(){const _0x34b959=['\x20&\x20hookState=','KEY_EVENT_ENDED_AT',',\x20state=','getPendingHooks','get','getThreadId','INIT_TEST','getContext','name','hasPendingHooks','../../../helpers/helper.js','KEY_HOOK_FAILURE_REASON','getTestDetails','tags','\x20target=','length','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','./testFramework','test','KEY_HOOK_LOGS','fcWYH','trackHookEvent','sendLogCreatedEvent:\x20for\x20testId:\x20','createTestFrameworkEventPayload','browserstackPlatformIndex','setTrackedInstance','Parsed\x20cucumber\x20test:\x20','\x20with\x20id\x20','KEY_TEST_STARTED_AT','../state/testFrameworkState.js','KEY_TEST_FRAMEWORK_VERSION','4636289OjPYvm','KEY_TEST_TAGS','2zRvLUc','getRef','error',',\x20storing\x20as\x20pending\x20hook','location','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','POST','runHooks','split','KEY_TEST_RESULT','uuid','failure_reason','failure','parseCucumberTest','XYZXQ',',\x20error:\x20','KEY_TEST_FAILURE','\x20for\x20test:\x20','FJFer','inspect','ozCgC','Cucumber\x20log\x20created\x20event','logCreatedEvent','6488950FjBpXU','TEST','VCzga','result','./constants/testFrameworkConstants.js','toString','LOG_REPORT','args','KEY_TEST_FILE_PATH','Updated\x20cucumber\x20test\x20result:\x20','storePendingHook','KEY_TEST_RESULT_AT','KEY_TEST_RERUN_NAME','getId','WqAbA','KEY_HOOK_ID','KEY_TEST_FRAMEWORK_NAME','../../../helpers/classLogger.js','format','unknown','UnhandledError','KEY_HOOKS_FINISHED','\x20batch\x20','hookState','\x20&\x20hook\x20=\x20','2280CbBMxw','pop','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','executionContext','KEY_HOOK_FAILURE_TYPE','testUUID','kldFw','PDuNO','WbWcR','XYgEj','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','util',',\x20hookState:\x20','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','nDozV','KEY_LOGS','finishedAt','PRE','key','ciqFr','parseCucumberTestResult','Stored\x20pending\x20hook\x20for\x20testId:\x20','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','scopes','../state/hookState.js','hook_type','KEY_AUTOMATE_SESSION_NAME','trackCucumberInstance:\x20saved\x20instance\x20contextId=','../TestInfo.js','meta','KEY_TEST_LOCATION','MiJeZ','failed','\x20\x20and\x20args\x20=\x20','exports','setTestDetails','KEY_HOOK_NAME','readLogObjects','DEFAULT_HOOK_RESULT','QOyKh','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','\x20testState:\x20','NONE','zvqVR','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','addMultipleEntries','getAllData','NkSRR','DEFAULT_TEST_RESULT','push','RyBhW','hookData','createTestFrameworkEventPayload\x20testId:\x20','IQGEZ','4464ZmftoL','platformIndex','failure_type','CucumberTestFramework','KEY_HOOK_RESULT','getTestFrameworksVersions','6298470RIIyPK','customRerunParam','code','KEY_TEST_FAILURE_TYPE','hooks','\x20payload=','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','startedAt','from','getTrackedInstance','testFrameworkState','testData','started_at','getInstance','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','fAezi','lasbR','322862UfMinq','body','\x20with\x20result:\x20','KEY_EVENT_STARTED_AT','6nGDdIM','QdFrV','jiGSx','ceil','\x20and\x20args\x20=\x20','matchHookRegex','toISOString','KEY_TEST_UUID','../instances/trackedInstance.js','passed','trackEvent','sendLogCreatedEvent','UUWfZ','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','getTestUUID','KEY_HOOK_LAST_FINISHED','KEY_TEST_SCOPE','KEY_TEST_ID','IBYmm','keys','3176208LHVsmK','debug','KEY_HOOKS_STARTED','../instances/testFrameworkInstance.js','KEY_CUSTOM_TAGS','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','getTestFrameworks','createContext','endedAt','getProcessId','KEY_TEST_ENDED_AT','KEY_HOOK_LAST_STARTED','ZvnvS','testFrameworkName','finished_at','base64','JuunY','1925061CKFHvX','resolveInstance','ggtXD','tjPQI','removePendingHooks','processPendingHooks','pdkxx','instance'];a74_0xd48f=function(){return _0x34b959;};return a74_0xd48f();}module[a74_0x35e40e(0x201)]=CucumberTestFramework;