browserstack-node-sdk 1.55.5 → 1.55.7

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 (202) 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/generated/sdk-messages_pb.d.ts +40 -0
  41. package/generated/sdk-messages_pb.js +322 -2
  42. package/package.json +2 -2
  43. package/src/ai-sdk-node/bundle.js +1 -1
  44. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  45. package/src/bin/codeceptjs/command.js +1 -1
  46. package/src/bin/codeceptjs/helper.js +1 -1
  47. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  48. package/src/bin/cucumber-js/command.js +1 -1
  49. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  50. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  51. package/src/bin/cucumber-js/test-observability.js +1 -1
  52. package/src/bin/cucumber-js/test.setup.js +1 -1
  53. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  54. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  55. package/src/bin/integrations/command.js +1 -1
  56. package/src/bin/integrations/constants.js +1 -1
  57. package/src/bin/jest/command.js +1 -1
  58. package/src/bin/jest/customImplements/customCircus.js +1 -1
  59. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  60. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  61. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  62. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  63. package/src/bin/jest/jest.setup.js +1 -1
  64. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  65. package/src/bin/jest/test-observability/helper.js +1 -1
  66. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  67. package/src/bin/jest/test-observability/test-details.js +1 -1
  68. package/src/bin/jest/test.setup.js +1 -1
  69. package/src/bin/jest/test_before.setup.js +1 -1
  70. package/src/bin/launcher/launcher.js +1 -1
  71. package/src/bin/load/index.js +1 -1
  72. package/src/bin/load/loadUtils.js +1 -1
  73. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  74. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  75. package/src/bin/mocha/command.js +1 -1
  76. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  77. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  78. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  79. package/src/bin/mocha/test.setup.js +1 -1
  80. package/src/bin/newman/command.js +1 -1
  81. package/src/bin/newman/helper.js +1 -1
  82. package/src/bin/newman/reporter/index.js +1 -1
  83. package/src/bin/newman/scriptRunner.js +1 -1
  84. package/src/bin/nightwatch/command.js +1 -1
  85. package/src/bin/playwright/accessibility-helper.js +1 -1
  86. package/src/bin/playwright/command.js +1 -1
  87. package/src/bin/playwright/globalSetup.js +1 -1
  88. package/src/bin/playwright/mock-process.js +1 -1
  89. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  90. package/src/bin/playwright/patches.js +1 -1
  91. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  92. package/src/bin/playwright/reporter/reporter.js +1 -1
  93. package/src/bin/playwright/reporter/test-details.js +1 -1
  94. package/src/bin/playwright/sessionDetails.js +1 -1
  95. package/src/bin/puppeteer/patches.js +1 -1
  96. package/src/bin/puppeteer/sessionDetails.js +1 -1
  97. package/src/bin/puppeteer/test.setup.js +1 -1
  98. package/src/bin/runner.js +1 -1
  99. package/src/bin/setup.js +1 -1
  100. package/src/bin/test-runner/index.js +1 -1
  101. package/src/bin/test-runner/runTest.js +1 -1
  102. package/src/bin/test-runner/testWorker.js +1 -1
  103. package/src/bin/utils/apiUtilityMethods.js +1 -1
  104. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  105. package/src/bin/utils/constants.js +1 -1
  106. package/src/bin/utils/log4jsAppender.js +1 -1
  107. package/src/bin/utils/logPatcher.js +1 -1
  108. package/src/bin/utils/logReportingAPI.js +1 -1
  109. package/src/bin/utils/playwright-patcher.js +1 -1
  110. package/src/bin/utils/puppeteer-patcher.js +1 -1
  111. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  112. package/src/bin/utils/sharedUtils.js +1 -1
  113. package/src/bin/v2/TestInfo.js +1 -1
  114. package/src/bin/v2/browserstackCLI.js +1 -1
  115. package/src/bin/v2/cliUtils.js +1 -1
  116. package/src/bin/v2/customTagManager.js +1 -1
  117. package/src/bin/v2/eventDispatcher.js +1 -1
  118. package/src/bin/v2/framework/automationFramework.js +1 -1
  119. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  120. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  121. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  122. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  123. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  124. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  125. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  126. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  127. package/src/bin/v2/framework/testFramework.js +1 -1
  128. package/src/bin/v2/grpcClient.js +1 -1
  129. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  130. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  131. package/src/bin/v2/instances/trackedContext.js +1 -1
  132. package/src/bin/v2/instances/trackedInstance.js +1 -1
  133. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  134. package/src/bin/v2/modules/baseModule.js +1 -1
  135. package/src/bin/v2/modules/loadTestModule.js +1 -1
  136. package/src/bin/v2/modules/observabilityModule.js +1 -1
  137. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  138. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  139. package/src/bin/v2/modules/testhubModule.js +1 -1
  140. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  141. package/src/bin/v2/state/hookState.js +1 -1
  142. package/src/bin/v2/state/testFrameworkState.js +1 -1
  143. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  144. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  145. package/src/bin/v2/utils/jest-utils.js +1 -1
  146. package/src/bin/vanilla-js/command.js +1 -1
  147. package/src/browserStackSdk.js +1 -1
  148. package/src/helpers/BrowserStackSetup.js +1 -1
  149. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  150. package/src/helpers/accessibility-automation/constants.js +1 -1
  151. package/src/helpers/accessibility-automation/helper.js +1 -1
  152. package/src/helpers/accessibility-automation/scripts.js +1 -1
  153. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  154. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  155. package/src/helpers/ats/constants.js +1 -1
  156. package/src/helpers/ats/helper.js +1 -1
  157. package/src/helpers/caCertHelper.js +1 -0
  158. package/src/helpers/capsMapping.js +1 -1
  159. package/src/helpers/central-scanner/constants.js +1 -1
  160. package/src/helpers/central-scanner/helpers.js +1 -1
  161. package/src/helpers/classLogger.js +1 -1
  162. package/src/helpers/globals.js +1 -1
  163. package/src/helpers/helper.js +1 -1
  164. package/src/helpers/logger.js +1 -1
  165. package/src/helpers/metadata.js +1 -1
  166. package/src/helpers/patchHelper.js +1 -1
  167. package/src/helpers/patchHelpers.js +1 -1
  168. package/src/helpers/percy/Percy.js +1 -1
  169. package/src/helpers/percy/PercyBinary.js +1 -1
  170. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  171. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  172. package/src/helpers/percy/PercySDK.js +1 -1
  173. package/src/helpers/percy/index.js +1 -1
  174. package/src/helpers/percy/utils.js +1 -1
  175. package/src/helpers/performance/constants.js +1 -1
  176. package/src/helpers/performance/performance-tester.js +1 -1
  177. package/src/helpers/playwright-helper.js +1 -1
  178. package/src/helpers/processHelper.js +1 -1
  179. package/src/helpers/puppeteer-helper.js +1 -1
  180. package/src/helpers/request-spy.js +1 -1
  181. package/src/helpers/setKeepAlive.js +1 -1
  182. package/src/helpers/stackFrameUtils.js +1 -1
  183. package/src/helpers/test-observability/constants.js +1 -1
  184. package/src/helpers/test-observability/error-handler.js +1 -1
  185. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  186. package/src/helpers/test-observability/sessionHandler.js +1 -1
  187. package/src/helpers/test-observability/utils.js +1 -1
  188. package/src/helpers/test-orchestration/constants.js +1 -1
  189. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  190. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  191. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  192. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  193. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  194. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  195. package/src/helpers/testhub/constants.js +1 -1
  196. package/src/helpers/testhub/testhubHandler.js +1 -1
  197. package/src/helpers/testhub/utils.js +1 -1
  198. package/src/helpers/timeoutPromise.js +1 -1
  199. package/src/helpers/utilities.js +1 -1
  200. package/src/helpers/w3cMapping.js +1 -1
  201. package/src/hubAllocationMethods.js +1 -1
  202. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a72_0x2f4a76=a72_0xacc7;(function(_0x9cc08b,_0x5818a9){const _0x57ae10=a72_0xacc7,_0x1f44cf=_0x9cc08b();while(!![]){try{const _0x3b3439=-parseInt(_0x57ae10(0x1ff))/0x1*(parseInt(_0x57ae10(0x22d))/0x2)+parseInt(_0x57ae10(0x1f3))/0x3+parseInt(_0x57ae10(0x25e))/0x4*(-parseInt(_0x57ae10(0x20d))/0x5)+-parseInt(_0x57ae10(0x23d))/0x6*(parseInt(_0x57ae10(0x27e))/0x7)+parseInt(_0x57ae10(0x1fb))/0x8+parseInt(_0x57ae10(0x288))/0x9*(-parseInt(_0x57ae10(0x204))/0xa)+parseInt(_0x57ae10(0x235))/0xb;if(_0x3b3439===_0x5818a9)break;else _0x1f44cf['push'](_0x1f44cf['shift']());}catch(_0x16af10){_0x1f44cf['push'](_0x1f44cf['shift']());}}}(a72_0x1d8e,0x6d3b8));function a72_0xacc7(_0x2c3957,_0x1c6ac){const _0x1d8e3c=a72_0x1d8e();return a72_0xacc7=function(_0xacc7eb,_0x1c5cb7){_0xacc7eb=_0xacc7eb-0x1f2;let _0x562e37=_0x1d8e3c[_0xacc7eb];return _0x562e37;},a72_0xacc7(_0x2c3957,_0x1c6ac);}const fs=require('fs'),os=require('os'),url=require(a72_0x2f4a76(0x236)),path=require(a72_0x2f4a76(0x21c)),{exec}=require('child_process'),{https}=require(a72_0x2f4a76(0x2a4)),yauzl=require(a72_0x2f4a76(0x207)),util=require(a72_0x2f4a76(0x21e)),{getFrameworkVersion}=require(a72_0x2f4a76(0x2aa)),{threadId}=require(a72_0x2f4a76(0x2a8)),PerformanceTester=require(a72_0x2f4a76(0x2a9)),{EVENTS:PerformanceEvents}=require('../../helpers/performance/constants'),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a72_0x2f4a76(0x233)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a72_0x2f4a76(0x2cc)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a72_0x2f4a76(0x1f8)),{createClassLogger}=require(a72_0x2f4a76(0x244)),TestFrameworkInstance=require(a72_0x2f4a76(0x22c)),HookState=require(a72_0x2f4a76(0x27a)),TestFrameworkState=require('./state/testFrameworkState.js'),AutomationFrameworkState=require(a72_0x2f4a76(0x289)),TestFrameworkConstants=require(a72_0x2f4a76(0x20b)),logger=createClassLogger(a72_0x2f4a76(0x26d)),{getBStackAPIUrl}=require(a72_0x2f4a76(0x218));class CLIUtils{[a72_0x2f4a76(0x2af)]={};[a72_0x2f4a76(0x274)]={};static[a72_0x2f4a76(0x2c6)](){const _0x507f94=a72_0x2f4a76,_0x203d21={};_0x203d21[_0x507f94(0x27f)]=function(_0x138a89,_0x432d2e){return _0x138a89===_0x432d2e;},_0x203d21[_0x507f94(0x278)]=_0x507f94(0x212);const _0x555bb0=_0x203d21;return _0x555bb0[_0x507f94(0x27f)](process['env'][_0x507f94(0x28a)],_0x555bb0['Tzyie']);}static['getCLIParamsForDevEnv'](){const _0x42e9ad=a72_0x2f4a76,_0x5b647d={};return _0x5b647d['id']=process['env'][_0x42e9ad(0x28a)],_0x5b647d['listen']=_0x42e9ad(0x213)+process['env'][_0x42e9ad(0x28a)]+_0x42e9ad(0x267),_0x5b647d;}static[a72_0x2f4a76(0x239)](){const _0x59fb53=a72_0x2f4a76,_0x5c850d={'EVxKM':function(_0x4615f5,_0x259944){return _0x4615f5(_0x259944);},'VMDvp':'../../../package.json'};return _0x5c850d[_0x59fb53(0x234)](require,_0x5c850d[_0x59fb53(0x1f2)])[_0x59fb53(0x20a)];}static[a72_0x2f4a76(0x228)](){const _0x5f30fa=a72_0x2f4a76,_0x31eb98={};_0x31eb98[_0x5f30fa(0x250)]=_0x5f30fa(0x2c1);const _0x55dd25=_0x31eb98;return _0x55dd25[_0x5f30fa(0x250)];}static async[a72_0x2f4a76(0x1fc)](_0x2d5056){const _0x34af72=a72_0x2f4a76,_0x3f6b84={'LZvRd':_0x34af72(0x2ab),'YlocN':function(_0x5401d5,_0x19d3d0){return _0x5401d5(_0x19d3d0);},'kVvaN':function(_0xf04c7,_0x91f8e2){return _0xf04c7(_0x91f8e2);},'jdzYY':_0x34af72(0x22e)};logger[_0x34af72(0x2a2)](_0x3f6b84['LZvRd']);const _0x2f6029=process[_0x34af72(0x294)][_0x34af72(0x259)];if(!_0x3f6b84['YlocN'](isNullOrEmpty,_0x2f6029))return logger[_0x34af72(0x2a2)](_0x34af72(0x290)+_0x2f6029),_0x2f6029;try{const _0x34477e=this[_0x34af72(0x261)]();if(_0x3f6b84[_0x34af72(0x21f)](isNullOrEmpty,_0x34477e))throw new Error(_0x3f6b84['jdzYY']);const _0x185d05=this[_0x34af72(0x2ae)](_0x34477e),_0x5b7fdf=await this['checkAndUpdateCli'](_0x185d05,_0x34477e,_0x2d5056);return logger[_0x34af72(0x2a2)](_0x34af72(0x2ca)+_0x5b7fdf),_0x5b7fdf;}catch(_0x1b39ec){logger[_0x34af72(0x2a2)]('Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20'+util[_0x34af72(0x2b5)](_0x1b39ec));}return null;}static async['checkAndUpdateCli'](_0x584f04,_0x5b99ae,_0x35d138){const _0x5b713d=a72_0x2f4a76,_0x5ed877={'NXwxK':function(_0x4924af){return _0x4924af();},'tsqjK':function(_0x4382e5,_0x388b27){return _0x4382e5(_0x388b27);},'AwqbR':function(_0x4b88ee,_0x178b41,_0x34a4b4){return _0x4b88ee(_0x178b41,_0x34a4b4);},'GpeJv':'data','UwVlI':_0x5b713d(0x236),'YbxQH':function(_0x11bdf4,_0x2f2d25){return _0x11bdf4(_0x2f2d25);},'ccdjZ':function(_0x2aa414,_0x5c02cc,_0x566d77){return _0x2aa414(_0x5c02cc,_0x566d77);}};PerformanceTester[_0x5b713d(0x2d0)](PerformanceEvents[_0x5b713d(0x283)]),logger[_0x5b713d(0x277)](_0x5b713d(0x23b)+_0x584f04);const _0x4a05d5=_0x5ed877[_0x5b713d(0x2ad)](getHostInfo),_0x49b15d={'sdk_version':CLIUtils[_0x5b713d(0x239)](),'os':_0x4a05d5['platform'],'os_arch':_0x4a05d5[_0x5b713d(0x1fe)],'cli_version':'0','sdk_language':this[_0x5b713d(0x228)]()};!_0x5ed877['tsqjK'](isNullOrEmpty,_0x584f04)&&(_0x49b15d[_0x5b713d(0x2a0)]=await this[_0x5b713d(0x281)](_0x584f04+_0x5b713d(0x238)));const _0x57f9f7=await this[_0x5b713d(0x29f)](_0x49b15d,_0x35d138);process[_0x5b713d(0x294)][_0x5b713d(0x2b6)]&&(logger[_0x5b713d(0x277)](_0x5b713d(0x27d)+process[_0x5b713d(0x294)][_0x5b713d(0x2b6)]),_0x57f9f7['data'][_0x5b713d(0x236)]=process[_0x5b713d(0x294)][_0x5b713d(0x2b6)]);if(_0x5ed877[_0x5b713d(0x2b9)](nestedKeyValue,_0x57f9f7,[_0x5ed877[_0x5b713d(0x25c)],_0x5ed877['UwVlI']])){logger[_0x5b713d(0x2a2)]('Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20'+_0x49b15d[_0x5b713d(0x2a0)]);if(!_0x5ed877[_0x5b713d(0x2b1)](isNullOrEmpty,_0x584f04)&&this['isBinaryBusy'](_0x584f04))return logger['warn'](_0x5b713d(0x21d)+_0x584f04),PerformanceTester[_0x5b713d(0x27c)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x584f04;const _0x3268a0=await this[_0x5b713d(0x255)](_0x5ed877[_0x5b713d(0x287)](nestedKeyValue,_0x57f9f7,[_0x5ed877['GpeJv'],_0x5ed877[_0x5b713d(0x227)]]),_0x5b99ae);return PerformanceTester[_0x5b713d(0x27c)](PerformanceEvents[_0x5b713d(0x283)]),_0x3268a0;}return PerformanceTester['end'](PerformanceEvents[_0x5b713d(0x283)]),_0x584f04;}static['getCliDir'](){const _0xf8b00f=a72_0x2f4a76,_0x1e7f18={'ibgZQ':function(_0x29dd15,_0x40f642){return _0x29dd15(_0x40f642);},'WfgKi':_0xf8b00f(0x22e),'cppHl':_0xf8b00f(0x229),'qiuzR':function(_0x1b226c,_0x20cd42){return _0x1b226c(_0x20cd42);}},_0x4064b0=this[_0xf8b00f(0x1fa)]();try{if(_0x1e7f18[_0xf8b00f(0x2cd)](isNullOrEmpty,_0x4064b0))throw new Error(_0x1e7f18['WfgKi']);const _0x50c21f=path[_0xf8b00f(0x2bb)](_0x4064b0,_0x1e7f18['cppHl']);return!fs[_0xf8b00f(0x210)](_0x50c21f)&&_0x1e7f18[_0xf8b00f(0x29a)](createDir,_0x50c21f),_0x50c21f;}catch(_0x26fc03){logger[_0xf8b00f(0x2a2)](_0xf8b00f(0x20e)+util[_0xf8b00f(0x2b5)](_0x26fc03));}}static[a72_0x2f4a76(0x1fa)](){const _0x370166=a72_0x2f4a76,_0x4a79f5={'nXDMK':'.browserstack','riftU':function(_0x56fda3,_0x19928e){return _0x56fda3(_0x19928e);},'YBumG':function(_0x387c6c,_0x11ae4b){return _0x387c6c(_0x11ae4b);}},_0x21a5f5=[process[_0x370166(0x294)][_0x370166(0x220)],path['join'](os['homedir'](),_0x4a79f5['nXDMK']),path[_0x370166(0x2bb)](os['tmpdir'](),_0x4a79f5['nXDMK'])];for(const _0x32c1ff of _0x21a5f5){if(_0x4a79f5[_0x370166(0x252)](isNullOrEmpty,_0x32c1ff))continue;try{if(fs[_0x370166(0x210)](_0x32c1ff)){logger['debug'](_0x370166(0x25f)+_0x32c1ff+_0x370166(0x268));if(!_0x4a79f5[_0x370166(0x299)](isModifiable,_0x32c1ff)){logger[_0x370166(0x2a2)]('Setting\x20required\x20permissions\x20to\x20'+_0x32c1ff);const _0x44091b=_0x4a79f5[_0x370166(0x252)](setReadWriteExecuteAccess,_0x32c1ff);if(!_0x4a79f5['riftU'](isTrue,_0x44091b)){logger[_0x370166(0x260)]('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x32c1ff);continue;}}}else{logger[_0x370166(0x2a2)](_0x370166(0x230)+_0x32c1ff),_0x4a79f5[_0x370166(0x299)](createDir,_0x32c1ff),logger[_0x370166(0x2a2)]('Setting\x20required\x20permissions\x20to\x20'+_0x32c1ff);const _0x312216=_0x4a79f5[_0x370166(0x252)](setReadWriteExecuteAccess,_0x32c1ff);!_0x4a79f5[_0x370166(0x299)](isTrue,_0x312216)&&logger['warn']('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x32c1ff);}return _0x32c1ff;}catch(_0x5b8fe1){logger[_0x370166(0x26b)](_0x370166(0x221)+util[_0x370166(0x2b5)](_0x5b8fe1));}}return null;}static[a72_0x2f4a76(0x2ae)](_0x3e3bdc){const _0x3b4b9f=a72_0x2f4a76,_0x49fc7={};_0x49fc7[_0x3b4b9f(0x262)]=function(_0x32b226,_0x1266ef){return _0x32b226>_0x1266ef;},_0x49fc7[_0x3b4b9f(0x243)]=function(_0x49cf20,_0x1028f2){return _0x49cf20>_0x1028f2;};const _0x20f2ad=_0x49fc7;try{if(!fs['existsSync'](_0x3e3bdc)||!fs['statSync'](_0x3e3bdc)[_0x3b4b9f(0x2bc)]())return'';const _0x50bf15=fs[_0x3b4b9f(0x1fd)](_0x3e3bdc)[_0x3b4b9f(0x237)](_0x21a713=>path[_0x3b4b9f(0x2bb)](_0x3e3bdc,_0x21a713))[_0x3b4b9f(0x216)](_0x21adda=>fs[_0x3b4b9f(0x27b)](_0x21adda)[_0x3b4b9f(0x2a1)]()&&path[_0x3b4b9f(0x208)](_0x21adda)[_0x3b4b9f(0x264)]('binary-'));if(_0x20f2ad[_0x3b4b9f(0x243)](_0x50bf15[_0x3b4b9f(0x2a7)],0x0)){const _0x431df3=_0x50bf15[_0x3b4b9f(0x237)](_0x9b35bd=>({'filePath':_0x9b35bd,'mtime':fs['statSync'](_0x9b35bd)[_0x3b4b9f(0x2b2)]}))['reduce']((_0x123469,_0x5402f8)=>{const _0x28384f=_0x3b4b9f;if(!_0x123469||!_0x123469[_0x28384f(0x2b2)])return _0x5402f8;if(_0x20f2ad[_0x28384f(0x262)](_0x5402f8[_0x28384f(0x2b2)],_0x123469[_0x28384f(0x2b2)]))return _0x5402f8;return _0x123469;},{});return _0x431df3?_0x431df3[_0x3b4b9f(0x23c)]:'';}return'';}catch(_0x711c5c){return logger[_0x3b4b9f(0x26b)]('Error\x20while\x20reading\x20CLI\x20path:\x20'+util[_0x3b4b9f(0x2b5)](_0x711c5c)),'';}}static ['requestToUpdateCLI']=async(_0x48ec21,_0x47b397)=>{const _0x4d5fa9=a72_0x2f4a76,_0x377d5d={'wDrLI':function(_0xac290c,_0x1f2233,_0x12cf3e,_0x4b40c6,_0x1f5c07){return _0xac290c(_0x1f2233,_0x12cf3e,_0x4b40c6,_0x1f5c07);},'qvMhr':_0x4d5fa9(0x23f)},_0x2fd534={};_0x2fd534['qs']=_0x48ec21;const _0x373dcc=await _0x377d5d[_0x4d5fa9(0x248)](nodeRequest,_0x377d5d[_0x4d5fa9(0x292)],UPDATED_CLI_ENDPOINT,_0x2fd534,_0x47b397);return logger['debug']('response\x20'+JSON[_0x4d5fa9(0x26c)](_0x373dcc)),_0x373dcc;};static[a72_0x2f4a76(0x24f)](_0x18f4ed){const _0x18cb3b=a72_0x2f4a76;try{const _0x26d355=fs[_0x18cb3b(0x217)](_0x18f4ed,'r+');return fs['closeSync'](_0x26d355),![];}catch(_0x9e40d4){if(BINARY_BUSY_ERROR_CODES[_0x18cb3b(0x2b7)](_0x9e40d4['code']))return logger[_0x18cb3b(0x2a2)]('Binary\x20is\x20busy:\x20'+_0x18f4ed),!![];return logger[_0x18cb3b(0x2a2)]('Error\x20checking\x20if\x20binary\x20is\x20busy:\x20'+_0x9e40d4['message']),![];}}static[a72_0x2f4a76(0x281)](_0x198c10,_0x32a480=''){const _0x136a3c=a72_0x2f4a76,_0x3a9cc2={'zuzfx':_0x136a3c(0x20a),'HWOoO':function(_0x39942a,_0xd652e5){return _0x39942a(_0xd652e5);},'bMwWo':_0x136a3c(0x2c3),'IZirm':function(_0x104a7e,_0x31a63c){return _0x104a7e(_0x31a63c);},'jObMr':function(_0x2991eb,_0x42e0ac,_0x311f99,_0x3170de){return _0x2991eb(_0x42e0ac,_0x311f99,_0x3170de);},'vvLIH':_0x136a3c(0x26b)};return new Promise((_0x582943,_0x1e0bef)=>{const _0x34f8e6=_0x136a3c,_0x3983b9={'VmclH':_0x3a9cc2[_0x34f8e6(0x2b4)],'mvbGe':function(_0x5dd21e,_0x3f0dac){const _0x7d85ed=_0x34f8e6;return _0x3a9cc2[_0x7d85ed(0x203)](_0x5dd21e,_0x3f0dac);},'LCjYh':_0x3a9cc2[_0x34f8e6(0x256)],'mCrho':function(_0x17fb80,_0x1a2755){const _0x4175b7=_0x34f8e6;return _0x3a9cc2[_0x4175b7(0x26f)](_0x17fb80,_0x1a2755);}},_0x5a6299={};_0x5a6299[_0x34f8e6(0x2a3)]=_0x32a480,_0x5a6299[_0x34f8e6(0x29c)]=0x1388;const _0x16b350=_0x3a9cc2['jObMr'](exec,_0x198c10,_0x5a6299,(_0xfa1fe8,_0x2fb9a2,_0x4f2b9f)=>{const _0x468006=_0x34f8e6;if(_0xfa1fe8){if(_0x198c10[_0x468006(0x2b7)](_0x3983b9[_0x468006(0x29e)])&&(_0x2fb9a2[_0x468006(0x2c8)]()||_0x4f2b9f[_0x468006(0x2c8)]())){const _0x20f472=_0x2fb9a2[_0x468006(0x2c8)]()||_0x4f2b9f[_0x468006(0x2c8)]();logger[_0x468006(0x2a2)](_0x468006(0x297)+_0x20f472+'\x22'),_0x3983b9[_0x468006(0x263)](_0x582943,_0x20f472);}else _0x3983b9['mvbGe'](_0x582943,_0x4f2b9f[_0x468006(0x2c8)]()||_0x3983b9[_0x468006(0x269)]);}else logger[_0x468006(0x2a2)](_0x468006(0x285)+_0x2fb9a2[_0x468006(0x2c8)]()+'\x22'),_0x3983b9[_0x468006(0x2be)](_0x582943,_0x2fb9a2[_0x468006(0x2c8)]());});_0x16b350['on'](_0x3a9cc2[_0x34f8e6(0x202)],()=>{const _0x4d46f7=_0x34f8e6;_0x3983b9[_0x4d46f7(0x263)](_0x582943,_0x3983b9[_0x4d46f7(0x269)]);});});}static [a72_0x2f4a76(0x255)]=async(_0x4e6245,_0x1bf77f)=>{const _0x3e6e7f=a72_0x2f4a76,_0x35a302={'pgcFp':_0x3e6e7f(0x2c2),'OViQY':function(_0x4cf0cb,_0x176a8a){return _0x4cf0cb(_0x176a8a);},'JGxMW':_0x3e6e7f(0x1f5),'AECsJ':_0x3e6e7f(0x26b)};PerformanceTester[_0x3e6e7f(0x2d0)](PerformanceEvents[_0x3e6e7f(0x25a)]),logger[_0x3e6e7f(0x2a2)](_0x3e6e7f(0x211)+_0x4e6245);try{const _0x5a50a7=url['parse'](_0x4e6245),_0x23aa43=path[_0x3e6e7f(0x2bb)](_0x1bf77f,_0x3e6e7f(0x214)+process[_0x3e6e7f(0x2c5)]+_0x3e6e7f(0x24a)),_0xd875b1=fs[_0x3e6e7f(0x29d)](_0x23aa43);return new Promise((_0x11d119,_0x519d7d)=>{const _0x53d38c=_0x3e6e7f,_0x38f8e0={'gNLqW':_0x35a302[_0x53d38c(0x258)],'UonLG':function(_0x3b0fe3,_0x3c5e45){const _0x3066e1=_0x53d38c;return _0x35a302[_0x3066e1(0x219)](_0x3b0fe3,_0x3c5e45);},'HAQQm':_0x35a302[_0x53d38c(0x223)],'ZGtwL':function(_0x323b99,_0xac931e){const _0xbd0713=_0x53d38c;return _0x35a302[_0xbd0713(0x219)](_0x323b99,_0xac931e);},'MFDxr':function(_0x512d95,_0x46dd68){const _0x3ebf05=_0x53d38c;return _0x35a302[_0x3ebf05(0x219)](_0x512d95,_0x46dd68);},'rMJCx':_0x35a302['AECsJ']};https['get'](_0x5a50a7,function(_0x9cf22){const _0x28f807=_0x53d38c,_0xfbe9d8={'EQGUE':function(_0x560cae,_0x50fb78){return _0x38f8e0['ZGtwL'](_0x560cae,_0x50fb78);},'SPnNB':function(_0x3301f2,_0x4eb5f1){const _0x5c9385=a72_0xacc7;return _0x38f8e0[_0x5c9385(0x2cf)](_0x3301f2,_0x4eb5f1);}},_0x42229c=null;_0x9cf22[_0x28f807(0x298)](_0xd875b1),_0x9cf22['on'](_0x38f8e0[_0x28f807(0x21b)],function(_0x3240fb){const _0x4e604d=_0x28f807;logger[_0x4e604d(0x26b)](util[_0x4e604d(0x2b5)](_0x38f8e0['gNLqW'],_0x3240fb)),PerformanceTester['end'](PerformanceEvents[_0x4e604d(0x25a)],![],util['format'](_0x3240fb)),_0x38f8e0[_0x4e604d(0x224)](_0x519d7d,_0x3240fb);}),_0xd875b1['on'](_0x38f8e0['rMJCx'],function(_0x3f53da){const _0x1dff93=_0x28f807;logger[_0x1dff93(0x26b)](util[_0x1dff93(0x2b5)](_0x38f8e0[_0x1dff93(0x2c7)],_0x3f53da)),PerformanceTester[_0x1dff93(0x27c)](PerformanceEvents[_0x1dff93(0x25a)],![],util[_0x1dff93(0x2b5)](_0x3f53da)),_0x38f8e0[_0x1dff93(0x224)](_0x519d7d,_0x3f53da);}),CLIUtils['downloadFileStream'](_0xd875b1,_0x42229c,_0x23aa43,_0x1bf77f,_0x18801b=>{const _0x2365be=_0x28f807;PerformanceTester[_0x2365be(0x27c)](PerformanceEvents[_0x2365be(0x25a)]),_0xfbe9d8[_0x2365be(0x200)](_0x11d119,_0x18801b);},_0x4d4182=>{const _0x170822=_0x28f807;PerformanceTester[_0x170822(0x27c)](PerformanceEvents[_0x170822(0x25a)],![],util['format'](_0x4d4182)),_0xfbe9d8[_0x170822(0x26e)](_0x519d7d,_0x4d4182);});})['on'](_0x35a302[_0x53d38c(0x242)],function(_0x4bbd3a){const _0x2d693a=_0x53d38c;logger['error'](_0x2d693a(0x279)+util[_0x2d693a(0x2b5)](_0x4bbd3a)),PerformanceTester[_0x2d693a(0x27c)](PerformanceEvents[_0x2d693a(0x25a)],![],util[_0x2d693a(0x2b5)](_0x4bbd3a)),_0x38f8e0['MFDxr'](_0x519d7d,_0x4bbd3a);});});}catch(_0x1b59c7){PerformanceTester['end'](PerformanceEvents[_0x3e6e7f(0x25a)],![],util['format'](_0x1b59c7)),logger['debug'](_0x3e6e7f(0x2ac)+util['format'](_0x1b59c7));}};static[a72_0x2f4a76(0x249)](_0x35e959,_0x7c2299,_0x5126de,_0x44eff4,_0x3167db,_0x12477c){const _0x2e4003=a72_0x2f4a76,_0x5a7a45={'Skymi':'close','dUFaQ':function(_0x5e3994,_0xc02d8d){return _0x5e3994(_0xc02d8d);},'NxFvV':'end','FEjLI':function(_0x4c1761,_0x5cf13d){return _0x4c1761!==_0x5cf13d;},'uRVOK':function(_0x5bf95b,_0x3aaf3f){return _0x5bf95b(_0x3aaf3f);},'IZWdw':function(_0x4d33d1,_0x5fb528){return _0x4d33d1(_0x5fb528);},'awHVf':'error','EiDpm':function(_0x23646d,_0x3d20b1){return _0x23646d(_0x3d20b1);},'MZUCH':'EXDEV','acBUl':_0x2e4003(0x24b),'IPsTv':_0x2e4003(0x247)};_0x35e959['on'](_0x5a7a45['Skymi'],function(){const _0xc3c5d3=_0x2e4003,_0x4ff5e2={'rQiOG':_0x5a7a45[_0xc3c5d3(0x226)],'NcdVd':function(_0x57092a,_0x381ffa){return _0x5a7a45['dUFaQ'](_0x57092a,_0x381ffa);},'uZweA':_0x5a7a45[_0xc3c5d3(0x2c4)],'BPzUZ':function(_0x2388ad,_0x39ce0c){const _0x2d4c87=_0xc3c5d3;return _0x5a7a45[_0x2d4c87(0x2bd)](_0x2388ad,_0x39ce0c);},'AahbA':function(_0x35868a,_0x18ca82){const _0x342a46=_0xc3c5d3;return _0x5a7a45[_0x342a46(0x240)](_0x35868a,_0x18ca82);},'vGhtM':function(_0x30ca08,_0x105ead){const _0x30a632=_0xc3c5d3;return _0x5a7a45[_0x30a632(0x22b)](_0x30ca08,_0x105ead);},'Caiwy':_0x5a7a45[_0xc3c5d3(0x1f7)],'rUFAO':function(_0x1cd90f,_0xa67a24){const _0x417bfc=_0xc3c5d3;return _0x5a7a45[_0x417bfc(0x22b)](_0x1cd90f,_0xa67a24);},'gyoDJ':function(_0x34f87d,_0x352329){const _0x542510=_0xc3c5d3;return _0x5a7a45[_0x542510(0x246)](_0x34f87d,_0x352329);},'NjdNP':function(_0x3123ab,_0x251dc9){const _0x4762ac=_0xc3c5d3;return _0x5a7a45[_0x4762ac(0x2bd)](_0x3123ab,_0x251dc9);},'ipdeQ':_0x5a7a45[_0xc3c5d3(0x245)],'uGWot':_0x5a7a45[_0xc3c5d3(0x2d1)],'hiLfg':_0x5a7a45['IPsTv']},_0x423723={};_0x423723[_0xc3c5d3(0x265)]=!![],yauzl[_0xc3c5d3(0x286)](_0x5126de,_0x423723,function(_0xa9b890,_0x2744ac){const _0x89952f=_0xc3c5d3,_0x5b0f33={'XZUno':function(_0x3ac630,_0x11bc41){const _0x46ebe4=a72_0xacc7;return _0x4ff5e2[_0x46ebe4(0x2b3)](_0x3ac630,_0x11bc41);},'kLMxA':function(_0x431a2e,_0x123d45){const _0x540a25=a72_0xacc7;return _0x4ff5e2[_0x540a25(0x205)](_0x431a2e,_0x123d45);},'vagWL':function(_0x33eac3,_0x133385){const _0x3ac276=a72_0xacc7;return _0x4ff5e2[_0x3ac276(0x225)](_0x33eac3,_0x133385);},'AyyHy':_0x4ff5e2[_0x89952f(0x28f)],'PZFHs':_0x4ff5e2[_0x89952f(0x28b)]};if(_0xa9b890){_0x4ff5e2[_0x89952f(0x209)](_0x12477c,_0xa9b890);return;}_0x2744ac[_0x89952f(0x2b8)](),_0x2744ac['on'](_0x4ff5e2['hiLfg'],_0x3bfd81=>{const _0x52cd84=_0x89952f,_0x4facc5={'sBiSo':_0x4ff5e2['rQiOG'],'cfBBY':function(_0x37de0b,_0x3a5a15){const _0x43b77b=a72_0xacc7;return _0x4ff5e2[_0x43b77b(0x205)](_0x37de0b,_0x3a5a15);},'yjDGo':_0x4ff5e2['uZweA']};if(/\/$/['test'](_0x3bfd81['fileName'])){_0x2744ac[_0x52cd84(0x2b8)]();return;}!_0x7c2299&&(_0x7c2299=_0x3bfd81[_0x52cd84(0x2cb)]);if(_0x4ff5e2[_0x52cd84(0x22a)](_0x3bfd81[_0x52cd84(0x2cb)],_0x7c2299))_0x2744ac[_0x52cd84(0x2b8)]();else{const _0x566307=_0x3bfd81[_0x52cd84(0x2cb)],_0x45443e=path['join'](_0x44eff4,_0x566307+_0x52cd84(0x28e)+process['pid']);let _0xc7eb4d;try{_0xc7eb4d=fs['createWriteStream'](_0x45443e);}catch(_0x444b43){if(BINARY_BUSY_ERROR_CODES[_0x52cd84(0x2b7)](_0x444b43[_0x52cd84(0x24d)])){const _0x2ce2c8=path[_0x52cd84(0x2bb)](_0x44eff4,_0x566307);if(fs['existsSync'](_0x2ce2c8)){logger[_0x52cd84(0x260)]('Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x566307),fs[_0x52cd84(0x293)](_0x5126de,_0x885b1b=>{const _0x29e7e7=_0x52cd84;_0x885b1b&&logger[_0x29e7e7(0x260)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x5126de);}),_0x4ff5e2[_0x52cd84(0x209)](_0x3167db,_0x2ce2c8);return;}logger[_0x52cd84(0x260)](_0x52cd84(0x28d)+_0x566307);}_0x4ff5e2['vGhtM'](_0x12477c,_0x444b43);return;}_0xc7eb4d['on'](_0x4ff5e2[_0x52cd84(0x282)],_0x225703=>{const _0x172892=_0x52cd84;if(BINARY_BUSY_ERROR_CODES[_0x172892(0x2b7)](_0x225703[_0x172892(0x24d)])){const _0x4c6124=path['join'](_0x44eff4,_0x566307);_0xc7eb4d[_0x172892(0x254)](),fs[_0x172892(0x210)](_0x4c6124)?(logger[_0x172892(0x260)](_0x172892(0x2a6)+_0x225703['message']),_0x2744ac[_0x172892(0x254)](),fs[_0x172892(0x293)](_0x5126de,_0x4122fd=>{const _0x12c891=_0x172892;_0x4122fd&&logger[_0x12c891(0x260)](_0x12c891(0x273)+_0x5126de);}),_0x5b0f33[_0x172892(0x28c)](_0x3167db,_0x4c6124)):(logger['warn'](_0x172892(0x232)+_0x225703['message']),fs[_0x172892(0x293)](_0x45443e,()=>{}),_0x5b0f33['kLMxA'](_0x12477c,_0x225703));}else fs['unlink'](_0x45443e,()=>{}),_0x5b0f33[_0x172892(0x25d)](_0x12477c,_0x225703);}),_0x2744ac[_0x52cd84(0x1f6)](_0x3bfd81,function(_0x56487c,_0x5e2bd1){const _0x2bbbf8=_0x52cd84;if(_0x56487c){fs[_0x2bbbf8(0x293)](_0x45443e,()=>{}),_0x4facc5[_0x2bbbf8(0x222)](_0x12477c,_0x56487c);return;}_0x5e2bd1['on'](_0x4facc5[_0x2bbbf8(0x29b)],function(){const _0x191b3e=_0x2bbbf8;_0xc7eb4d[_0x191b3e(0x27c)](),_0xc7eb4d['on'](_0x4facc5[_0x191b3e(0x24c)],function(){_0x2744ac['readEntry']();});}),_0x5e2bd1[_0x2bbbf8(0x298)](_0xc7eb4d);});}}),_0x2744ac['on'](_0x4ff5e2['Caiwy'],_0x4d7742=>{const _0x32b57c=_0x89952f;_0x4ff5e2[_0x32b57c(0x26a)](_0x12477c,_0x4d7742);}),_0x2744ac[_0x89952f(0x20f)](_0x4ff5e2['uZweA'],()=>{const _0x20cee6=_0x89952f,_0x345a18={'EdvjL':function(_0xaceb23,_0x739511){return _0x5b0f33['vagWL'](_0xaceb23,_0x739511);},'JXOTC':_0x5b0f33[_0x20cee6(0x284)],'Jduuh':function(_0x52f03f,_0x1b379e){const _0x161c03=_0x20cee6;return _0x5b0f33[_0x161c03(0x28c)](_0x52f03f,_0x1b379e);}};fs[_0x20cee6(0x293)](_0x5126de,_0x11d975=>{const _0xfe27d8=_0x20cee6;_0x11d975&&logger[_0xfe27d8(0x260)](_0xfe27d8(0x273)+_0x5126de);});const _0x10f77d=path[_0x20cee6(0x2bb)](_0x44eff4,_0x7c2299+'.tmp.'+process['pid']),_0x2531e8=path[_0x20cee6(0x2bb)](_0x44eff4,_0x7c2299);fs[_0x20cee6(0x257)](_0x10f77d,_0x5b0f33[_0x20cee6(0x22f)],function(_0x2ed1ec){const _0x579e95=_0x20cee6;if(_0x2ed1ec){_0x2744ac[_0x579e95(0x254)](),fs[_0x579e95(0x293)](_0x10f77d,()=>{}),_0x5b0f33[_0x579e95(0x25d)](_0x12477c,_0x2ed1ec);return;}fs[_0x579e95(0x1f9)](_0x10f77d,_0x2531e8,function(_0x3f562a){const _0x21fdfc=_0x579e95;if(_0x3f562a){if(_0x345a18['EdvjL'](_0x3f562a[_0x21fdfc(0x24d)],_0x345a18[_0x21fdfc(0x1f4)])){_0x2744ac[_0x21fdfc(0x254)](),fs[_0x21fdfc(0x293)](_0x10f77d,()=>{}),_0x345a18[_0x21fdfc(0x251)](_0x12477c,_0x3f562a);return;}logger[_0x21fdfc(0x260)]('Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20'+_0x3f562a[_0x21fdfc(0x241)]);try{fs[_0x21fdfc(0x2bf)](_0x10f77d,_0x2531e8);}catch(_0x3a57d4){_0x2744ac[_0x21fdfc(0x254)](),fs[_0x21fdfc(0x293)](_0x10f77d,()=>{}),_0x345a18['Jduuh'](_0x12477c,_0x3a57d4);return;}fs[_0x21fdfc(0x293)](_0x10f77d,_0x513c26=>{const _0x227b9e=_0x21fdfc;_0x513c26&&logger[_0x227b9e(0x260)](_0x227b9e(0x25b)+_0x513c26['message']);});}_0x2744ac[_0x21fdfc(0x254)](),_0x345a18[_0x21fdfc(0x251)](_0x3167db,_0x2531e8);});});});});});}static[a72_0x2f4a76(0x271)](){const _0xcc14a8=a72_0x2f4a76;if(process[_0xcc14a8(0x294)][_0xcc14a8(0x266)])return JSON[_0xcc14a8(0x2a5)](process[_0xcc14a8(0x294)][_0xcc14a8(0x266)]);return this[_0xcc14a8(0x274)];}static[a72_0x2f4a76(0x206)](){const _0x397fcd=a72_0x2f4a76;if(process[_0x397fcd(0x294)][_0x397fcd(0x24e)])return JSON[_0x397fcd(0x2a5)](process['env'][_0x397fcd(0x24e)]);return this[_0x397fcd(0x2af)];}static[a72_0x2f4a76(0x21a)](_0x5eddf2,_0x113e36){const _0x52846c=a72_0x2f4a76,_0x4fdb71={'UsFCb':_0x52846c(0x270),'fyokS':function(_0x2e2a7e,_0x105b09){return _0x2e2a7e(_0x105b09);},'mVrgV':function(_0x38a6ee,_0xf5899e){return _0x38a6ee||_0xf5899e;}},_0x2d891b=_0x4fdb71[_0x52846c(0x201)][_0x52846c(0x296)]('|');let _0x57d44f=0x0;while(!![]){switch(_0x2d891b[_0x57d44f++]){case'0':process[_0x52846c(0x294)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']=JSON[_0x52846c(0x26c)](this['testFrameworkDetail']);continue;case'1':this[_0x52846c(0x274)]={'name':_0x5eddf2,'version':{[_0x5eddf2]:_0x4fdb71[_0x52846c(0x272)](getFrameworkVersion,_0x5eddf2)}};continue;case'2':this[_0x52846c(0x2af)]={'name':_0x113e36,'version':_0x4fdb71[_0x52846c(0x272)](getFrameworkVersion,_0x113e36)};continue;case'3':process[_0x52846c(0x294)][_0x52846c(0x24e)]=JSON[_0x52846c(0x26c)](this[_0x52846c(0x2af)]);continue;case'4':_0x4fdb71['mVrgV'](!_0x5eddf2,!_0x113e36)&&logger['debug'](_0x52846c(0x23e)+_0x5eddf2+_0x52846c(0x20c)+_0x113e36);continue;}break;}}static[a72_0x2f4a76(0x231)](_0x1251bb,_0x4f3006){return _0x1251bb+':'+_0x4f3006;}static[a72_0x2f4a76(0x253)](){const _0x7906a6=a72_0x2f4a76;return process[_0x7906a6(0x2c5)]+':'+threadId;}static['shouldSkipSessionName'](_0x973a53){const _0x5b8ff9=a72_0x2f4a76;if(_0x973a53[_0x5b8ff9(0x23a)]&&_0x973a53[_0x5b8ff9(0x23a)][_0x5b8ff9(0x280)])return!![];return![];}static[a72_0x2f4a76(0x2b0)](_0x516332){const _0x49c0cc=a72_0x2f4a76;if(_0x516332[_0x49c0cc(0x23a)]&&_0x516332[_0x49c0cc(0x23a)][_0x49c0cc(0x2ba)])return!![];return![];}static[a72_0x2f4a76(0x276)](_0x49b459){const _0x2bf4c7=new RegExp(TestFrameworkConstants['HOOK_REGEX']);return _0x2bf4c7['test'](_0x49b459);}static['mergeObject'](_0x2c5e58,_0x51bb30){const _0x561491=a72_0x2f4a76,_0x221562={};_0x221562[_0x561491(0x2ce)]=function(_0x12ea49,_0x594747){return _0x12ea49!==_0x594747;},_0x221562[_0x561491(0x275)]=function(_0xdab8e7,_0x5e5efb){return _0xdab8e7===_0x5e5efb;},_0x221562[_0x561491(0x295)]=_0x561491(0x2c9);const _0x15bf6f=_0x221562;for(const [_0xcd2f63,_0x166793]of Object[_0x561491(0x215)](_0x51bb30)){if(_0x15bf6f[_0x561491(0x2ce)](_0x166793,null)&&_0x15bf6f['jnWlO'](typeof _0x166793,_0x15bf6f[_0x561491(0x295)])&&!Array[_0x561491(0x291)](_0x166793))_0x2c5e58[_0xcd2f63]=this['mergeObject'](_0x2c5e58[_0xcd2f63]||{},_0x166793);else Array[_0x561491(0x291)](_0x166793)?_0x2c5e58[_0xcd2f63]=(_0x2c5e58[_0xcd2f63]||[])['concat'](_0x166793):_0x2c5e58[_0xcd2f63]=_0x166793;}return _0x2c5e58;}}function a72_0x1d8e(){const _0x10147f=['worker_threads','../../helpers/performance/performance-tester.js','../../helpers/test-observability/utils.js','Configuring\x20Cli\x20path.','Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20','NXwxK','getExistingCliPath','automationFrameworkDetail','shouldSkipSessionStatus','YbxQH','mtime','gyoDJ','zuzfx','format','BROWSERSTACK_BINARY_URL','includes','readEntry','AwqbR','skipSessionStatus','join','isDirectory','FEjLI','mCrho','copyFileSync','exports','node','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','SHELL_EXECUTE_ERROR','NxFvV','pid','isDevelopmentEnv','HAQQm','trim','object','Resolved\x20binary\x20path:\x20','fileName','../../helpers/helper','ibgZQ','WEpyR','MFDxr','start','acBUl','VMDvp','1043805XlNVcq','JXOTC','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','openReadStream','awHVf','../utils/constants','rename','getWritableDir','5063656GXevNN','setupCliPath','readdirSync','arch','379jpmLFz','EQGUE','UsFCb','vvLIH','HWOoO','179910EhMhix','NcdVd','getAutomationFrameworkDetail','yauzl','basename','AahbA','version','./framework/constants/testFrameworkConstants.js',',\x20automationFramework=','1535MFbFHj','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','once','existsSync','Downloading\x20SDK\x20binary\x20from:\x20','development','unix:/tmp/sdk-platform-','downloaded_file_','entries','filter','openSync','../utils/apiUtilityMethods.js','OViQY','setFrameworkDetail','rMJCx','path','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','util','kVvaN','BROWSERSTACK_FILES_DIR','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','cfBBY','JGxMW','UonLG','NjdNP','Skymi','UwVlI','getSdkLanguage','cli','BPzUZ','IZWdw','./instances/testFrameworkInstance.js','4254ggCiOk','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','PZFHs','Folder\x20does\x20not\x20exist:\x20','getHookRegistryKey','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','../../helpers/utilities','EVxKM','24872947wtnrOh','url','map','\x20version','getSdkVersion','testContextOptions','Current\x20CLI\x20Path\x20Found:\x20','filePath','2076582SXOaiM','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','GET','uRVOK','message','AECsJ','uaoWO','../../helpers/classLogger.js','MZUCH','EiDpm','entry','wDrLI','downloadFileStream','.zip','0755','sBiSo','code','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','isBinaryBusy','lUrQk','Jduuh','riftU','getCurrentInstanceName','close','downloadLatestBinary','bMwWo','chmod','pgcFp','SDK_CLI_BIN_PATH','SDK_CLI_DOWNLOAD','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','GpeJv','kLMxA','11320tSqSRH','Folder\x20','warn','getCliDir','OuEYI','mvbGe','startsWith','lazyEntries','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','.sock','\x20already\x20exists','LCjYh','rUFAO','error','stringify','CLIUtils','SPnNB','IZirm','4|1|2|3|0','getTestFrameworkDetail','fyokS','Failed\x20to\x20delete\x20zip\x20file:\x20','testFrameworkDetail','jnWlO','matchHookRegex','info','Tzyie','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','./state/hookState.js','statSync','end','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','7ZtvdKz','CRhMi','skipSessionName','runShellCommand','Caiwy','SDK_CLI_CHECK_UPDATE','AyyHy','Resolving\x20with\x20stdout:\x20\x22','open','ccdjZ','387LMzoyF','./state/automationFrameworkState.js','BROWSERSTACK_CLI_ENV','uGWot','XZUno','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','.tmp.','ipdeQ','Development\x20Cli\x20Path:\x20','isArray','qvMhr','unlink','env','XXCeF','split','CLI\x20version\x20found\x20despite\x20error:\x20\x22','pipe','YBumG','qiuzR','yjDGo','timeout','createWriteStream','VmclH','requestToUpdateCLI','cli_version','isFile','debug','cwd','follow-redirects','parse','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','length'];a72_0x1d8e=function(){return _0x10147f;};return a72_0x1d8e();}module[a72_0x2f4a76(0x2c0)]=CLIUtils;
1
+ function a72_0x224d(){const _0x519b57=['ZJeCO','SNhOJ','split','runShellCommand','JGvIs','setFrameworkDetail','tmpdir','wVnwz','readdirSync','Vhxgm','../../helpers/performance/constants','dORIg','gvYnw','isBinaryBusy','BIDIW','trim','3PIFIFB','close','uIEbr','HMZdb','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','WNxCW','version','Downloading\x20SDK\x20binary\x20from:\x20','chmod','hzlxd','getTestFrameworkDetail','Folder\x20does\x20not\x20exist:\x20','EjxQm','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','VgZwt','Resolving\x20with\x20stdout:\x20\x22','reduce','uFUhh','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','start','Sxeoa','SDK_CLI_CHECK_UPDATE','cli_version','\x20version','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','shouldSkipSessionStatus','GET','../../helpers/performance/performance-tester.js','isDirectory','wMFUi','1393160dxaXNH','GQTxZ','debug','warn','util','follow-redirects','shouldSkipSessionName','gctMn','skipSessionStatus','Current\x20CLI\x20Path\x20Found:\x20','getSdkVersion','entries','test','Failed\x20to\x20delete\x20zip\x20file:\x20','env','development','stringify','../../helpers/helper','mtime','binary-','Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20','cJBWy','102880woieEN','jcrcl','tXuOL','once','child_process','get','./framework/constants/testFrameworkConstants.js','iGPsz','NvSov',',\x20automationFramework=','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','existsSync','testContextOptions','worker_threads','CajbS','cli','3|2|4|0|1','nVTqR','wOpzL','yauzl','HOOK_REGEX','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','SZoPR','Configuring\x20Cli\x20path.','sSnMj','NMcpm','Folder\x20','\x20already\x20exists','BwqOc','cbOKQ','Resolved\x20binary\x20path:\x20','SDK_CLI_BIN_PATH','IwZnv','SCQzO','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','hFHgP','requestToUpdateCLI','SHELL_EXECUTE_ERROR','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','czyJb','platform','hbfKY','tiIzT','ujtlS','testFrameworkDetail','code','.tmp.','Development\x20Cli\x20Path:\x20','tihvS','basename','path','wQWWY','statSync','url','homedir','WUQze','IGsBM','mergeObject','object','1720VFLEtk','parse','QwyzR','isFile','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','fileName','./state/hookState.js','error','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','tAkvr','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','ILAxh','BROWSERSTACK_BINARY_URL','../utils/apiUtilityMethods.js','SDK_CLI_DOWNLOAD','sUBnA','join','Error\x20while\x20reading\x20CLI\x20path:\x20','CBQBG','50823OHKguC','fPaZj','23337633Tkqrye','info','KAPfo','BROWSERSTACK_FILES_DIR','anrmG','pMpFv','BROWSERSTACK_CLI_ENV','closeSync','entry','getExistingCliPath','downloadFileStream','Setting\x20required\x20permissions\x20to\x20','../../../package.json','EdTNE','zzKWH','getWritableDir','downloadLatestBinary','getHookRegistryKey','jvmds','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','getCLIParamsForDevEnv','cLXDv','checkAndUpdateCli','yJZab','readEntry','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','map','SEcuX','tyTFU','message','.sock','LuyXC','tenqL','end','openReadStream','MlLlT','ZzbzH','isDevelopmentEnv','0755','response\x20','Odism','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','3070226NoubHW','CXxtV','MNSww','getCliDir','nvtwp','53466CqCiTQ','CLIUtils','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','zGaFk','355uChQkl','pid','9922386iWjbru','BgwmE','includes','getSdkLanguage','unlink','automationFrameworkDetail','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','kxFFr','skipSessionName','unix:/tmp/sdk-platform-','concat','310ClnZHz','yvWVh','node','../../helpers/test-observability/utils.js','filePath','QUvhW','format','Rlzdg','iaOSV'];a72_0x224d=function(){return _0x519b57;};return a72_0x224d();}const a72_0x5140ee=a72_0x4230;function a72_0x4230(_0x2a8355,_0x23507f){const _0x224db5=a72_0x224d();return a72_0x4230=function(_0x423049,_0x14c6d4){_0x423049=_0x423049-0x18e;let _0x9d2ab6=_0x224db5[_0x423049];return _0x9d2ab6;},a72_0x4230(_0x2a8355,_0x23507f);}(function(_0x49a0ba,_0x21f681){const _0x13281c=a72_0x4230,_0x211f91=_0x49a0ba();while(!![]){try{const _0x366c44=-parseInt(_0x13281c(0x22a))/0x1+parseInt(_0x13281c(0x1dd))/0x2*(parseInt(_0x13281c(0x20c))/0x3)+parseInt(_0x13281c(0x240))/0x4*(parseInt(_0x13281c(0x1e6))/0x5)+-parseInt(_0x13281c(0x1e8))/0x6+-parseInt(_0x13281c(0x1e2))/0x7*(parseInt(_0x13281c(0x19e))/0x8)+parseInt(_0x13281c(0x1b1))/0x9*(parseInt(_0x13281c(0x1f3))/0xa)+parseInt(_0x13281c(0x1b3))/0xb;if(_0x366c44===_0x21f681)break;else _0x211f91['push'](_0x211f91['shift']());}catch(_0x27be3d){_0x211f91['push'](_0x211f91['shift']());}}}(a72_0x224d,0xec880));const fs=require('fs'),os=require('os'),url=require(a72_0x5140ee(0x198)),path=require(a72_0x5140ee(0x195)),{exec}=require(a72_0x5140ee(0x244)),{https}=require(a72_0x5140ee(0x22f)),yauzl=require(a72_0x5140ee(0x253)),util=require(a72_0x5140ee(0x22e)),{getFrameworkVersion}=require(a72_0x5140ee(0x1f6)),{threadId}=require(a72_0x5140ee(0x24d)),PerformanceTester=require(a72_0x5140ee(0x227)),{EVENTS:PerformanceEvents}=require(a72_0x5140ee(0x206)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require('../../helpers/utilities'),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a72_0x5140ee(0x23b)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require('../utils/constants'),{createClassLogger}=require('../../helpers/classLogger.js'),TestFrameworkInstance=require('./instances/testFrameworkInstance.js'),HookState=require(a72_0x5140ee(0x1a4)),TestFrameworkState=require('./state/testFrameworkState.js'),AutomationFrameworkState=require('./state/automationFrameworkState.js'),TestFrameworkConstants=require(a72_0x5140ee(0x246)),logger=createClassLogger(a72_0x5140ee(0x1e3)),{getBStackAPIUrl}=require(a72_0x5140ee(0x1ab));class CLIUtils{[a72_0x5140ee(0x1ed)]={};[a72_0x5140ee(0x18f)]={};static[a72_0x5140ee(0x1d8)](){const _0x4cbeac=a72_0x5140ee,_0x19cfac={};_0x19cfac[_0x4cbeac(0x1a9)]=function(_0x22519b,_0x4b73d0){return _0x22519b===_0x4b73d0;},_0x19cfac['NvSov']=_0x4cbeac(0x239);const _0x4b3db2=_0x19cfac;return _0x4b3db2[_0x4cbeac(0x1a9)](process[_0x4cbeac(0x238)][_0x4cbeac(0x1b9)],_0x4b3db2[_0x4cbeac(0x248)]);}static[a72_0x5140ee(0x1c7)](){const _0x18a2c2=a72_0x5140ee,_0x41794c={};return _0x41794c['id']=process[_0x18a2c2(0x238)][_0x18a2c2(0x1b9)],_0x41794c['listen']=_0x18a2c2(0x1f1)+process['env'][_0x18a2c2(0x1b9)]+_0x18a2c2(0x1d1),_0x41794c;}static[a72_0x5140ee(0x234)](){const _0x1a3635=a72_0x5140ee,_0x10f597={'JqmxJ':function(_0x24efcc,_0x2326ba){return _0x24efcc(_0x2326ba);},'MNSww':_0x1a3635(0x1bf)};return _0x10f597['JqmxJ'](require,_0x10f597[_0x1a3635(0x1df)])['version'];}static[a72_0x5140ee(0x1eb)](){const _0x1e9d3f=a72_0x5140ee,_0x348f22={};_0x348f22['WUQze']=_0x1e9d3f(0x1f5);const _0x3df36d=_0x348f22;return _0x3df36d[_0x1e9d3f(0x19a)];}static async['setupCliPath'](_0x3536c2){const _0x17094d=a72_0x5140ee,_0x4f2824={'pdeIY':_0x17094d(0x257),'sSnMj':function(_0x50329b,_0x24fe5){return _0x50329b(_0x24fe5);},'ZJeCO':function(_0x7a4771,_0x1cc24e){return _0x7a4771(_0x1cc24e);},'iaOSV':_0x17094d(0x1cc)};logger['debug'](_0x4f2824['pdeIY']);const _0x4aa825=process[_0x17094d(0x238)][_0x17094d(0x25f)];if(!_0x4f2824[_0x17094d(0x258)](isNullOrEmpty,_0x4aa825))return logger['debug'](_0x17094d(0x192)+_0x4aa825),_0x4aa825;try{const _0x31d3ba=this[_0x17094d(0x1e0)]();if(_0x4f2824[_0x17094d(0x1fc)](isNullOrEmpty,_0x31d3ba))throw new Error(_0x4f2824[_0x17094d(0x1fb)]);const _0x314a35=this['getExistingCliPath'](_0x31d3ba),_0x360fbc=await this[_0x17094d(0x1c9)](_0x314a35,_0x31d3ba,_0x3536c2);return logger['debug'](_0x17094d(0x25e)+_0x360fbc),_0x360fbc;}catch(_0x5191cc){logger[_0x17094d(0x22c)]('Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20'+util[_0x17094d(0x1f9)](_0x5191cc));}return null;}static async[a72_0x5140ee(0x1c9)](_0x493960,_0x1daa93,_0x4dd82f){const _0x294b57=a72_0x5140ee,_0x142372={'NMcpm':function(_0x16810c){return _0x16810c();},'BIDIW':function(_0x621d15,_0x30312a){return _0x621d15(_0x30312a);},'IwZnv':function(_0x4e330d,_0x123755,_0x48714d){return _0x4e330d(_0x123755,_0x48714d);},'WNxCW':'data','JGvIs':_0x294b57(0x198),'xkpJK':function(_0x1f4b39,_0x9a2a5d){return _0x1f4b39(_0x9a2a5d);}};PerformanceTester[_0x294b57(0x21f)](PerformanceEvents[_0x294b57(0x221)]),logger[_0x294b57(0x1b4)](_0x294b57(0x233)+_0x493960);const _0x572f8f=_0x142372[_0x294b57(0x259)](getHostInfo),_0x30259f={'sdk_version':CLIUtils[_0x294b57(0x234)](),'os':_0x572f8f[_0x294b57(0x268)],'os_arch':_0x572f8f['arch'],'cli_version':'0','sdk_language':this['getSdkLanguage']()};!_0x142372[_0x294b57(0x20a)](isNullOrEmpty,_0x493960)&&(_0x30259f[_0x294b57(0x222)]=await this['runShellCommand'](_0x493960+_0x294b57(0x223)));const _0x5ae861=await this[_0x294b57(0x264)](_0x30259f,_0x4dd82f);process['env'][_0x294b57(0x1aa)]&&(logger[_0x294b57(0x1b4)]('Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20'+process[_0x294b57(0x238)][_0x294b57(0x1aa)]),_0x5ae861['data'][_0x294b57(0x198)]=process['env']['BROWSERSTACK_BINARY_URL']);if(_0x142372['IwZnv'](nestedKeyValue,_0x5ae861,[_0x142372[_0x294b57(0x211)],_0x142372[_0x294b57(0x200)]])){logger['debug'](_0x294b57(0x266)+_0x30259f[_0x294b57(0x222)]);if(!_0x142372['xkpJK'](isNullOrEmpty,_0x493960)&&this['isBinaryBusy'](_0x493960))return logger['warn'](_0x294b57(0x1ee)+_0x493960),PerformanceTester['end'](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x493960;const _0x5a4b13=await this[_0x294b57(0x1c3)](_0x142372[_0x294b57(0x260)](nestedKeyValue,_0x5ae861,[_0x142372[_0x294b57(0x211)],_0x142372[_0x294b57(0x200)]]),_0x1daa93);return PerformanceTester['end'](PerformanceEvents[_0x294b57(0x221)]),_0x5a4b13;}return PerformanceTester[_0x294b57(0x1d4)](PerformanceEvents[_0x294b57(0x221)]),_0x493960;}static['getCliDir'](){const _0x558ce8=a72_0x5140ee,_0x5982ee={'anrmG':function(_0x4cffa7,_0xf143b){return _0x4cffa7(_0xf143b);},'LuyXC':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','Odism':_0x558ce8(0x24f),'wzFVH':function(_0x3ba9f9,_0x316c8e){return _0x3ba9f9(_0x316c8e);}},_0x309c62=this[_0x558ce8(0x1c2)]();try{if(_0x5982ee[_0x558ce8(0x1b7)](isNullOrEmpty,_0x309c62))throw new Error(_0x5982ee[_0x558ce8(0x1d2)]);const _0x4eed3b=path[_0x558ce8(0x1ae)](_0x309c62,_0x5982ee[_0x558ce8(0x1db)]);return!fs['existsSync'](_0x4eed3b)&&_0x5982ee['wzFVH'](createDir,_0x4eed3b),_0x4eed3b;}catch(_0x42f74){logger[_0x558ce8(0x22c)](_0x558ce8(0x255)+util[_0x558ce8(0x1f9)](_0x42f74));}}static['getWritableDir'](){const _0x203076=a72_0x5140ee,_0x3cbbdc={'tyTFU':'.browserstack','cbOKQ':function(_0xd21419,_0x1308c4){return _0xd21419(_0x1308c4);},'jvmds':function(_0x47185e,_0x25e52e){return _0x47185e(_0x25e52e);},'BgwmE':function(_0x4c2e2d,_0x2da342){return _0x4c2e2d(_0x2da342);},'wVnwz':function(_0xcbca1c,_0x2f6881){return _0xcbca1c(_0x2f6881);},'GQTxZ':function(_0x3867ee,_0x25338b){return _0x3867ee(_0x25338b);}},_0x38ccd7=[process[_0x203076(0x238)][_0x203076(0x1b6)],path['join'](os[_0x203076(0x199)](),_0x3cbbdc[_0x203076(0x1cf)]),path[_0x203076(0x1ae)](os[_0x203076(0x202)](),_0x3cbbdc[_0x203076(0x1cf)])];for(const _0x37f441 of _0x38ccd7){if(_0x3cbbdc[_0x203076(0x25d)](isNullOrEmpty,_0x37f441))continue;try{if(fs[_0x203076(0x24b)](_0x37f441)){logger['debug'](_0x203076(0x25a)+_0x37f441+_0x203076(0x25b));if(!_0x3cbbdc[_0x203076(0x1c5)](isModifiable,_0x37f441)){logger[_0x203076(0x22c)](_0x203076(0x1be)+_0x37f441);const _0xcc1301=_0x3cbbdc[_0x203076(0x1e9)](setReadWriteExecuteAccess,_0x37f441);if(!_0x3cbbdc[_0x203076(0x203)](isTrue,_0xcc1301)){logger[_0x203076(0x22d)](_0x203076(0x1e4)+_0x37f441);continue;}}}else{logger[_0x203076(0x22c)](_0x203076(0x217)+_0x37f441),_0x3cbbdc[_0x203076(0x22b)](createDir,_0x37f441),logger[_0x203076(0x22c)](_0x203076(0x1be)+_0x37f441);const _0x533a46=_0x3cbbdc[_0x203076(0x25d)](setReadWriteExecuteAccess,_0x37f441);!_0x3cbbdc[_0x203076(0x1c5)](isTrue,_0x533a46)&&logger[_0x203076(0x22d)](_0x203076(0x1e4)+_0x37f441);}return _0x37f441;}catch(_0x1e5faf){logger[_0x203076(0x1a5)](_0x203076(0x210)+util['format'](_0x1e5faf));}}return null;}static[a72_0x5140ee(0x1bc)](_0x300250){const _0x155757=a72_0x5140ee,_0x3a2d39={};_0x3a2d39[_0x155757(0x220)]=function(_0x4f89af,_0x574887){return _0x4f89af>_0x574887;},_0x3a2d39[_0x155757(0x26a)]=function(_0x453241,_0x315727){return _0x453241>_0x315727;};const _0x2ad603=_0x3a2d39;try{if(!fs[_0x155757(0x24b)](_0x300250)||!fs['statSync'](_0x300250)[_0x155757(0x228)]())return'';const _0x7d1be4=fs[_0x155757(0x204)](_0x300250)[_0x155757(0x1cd)](_0x55f49f=>path[_0x155757(0x1ae)](_0x300250,_0x55f49f))['filter'](_0x106ea0=>fs[_0x155757(0x197)](_0x106ea0)[_0x155757(0x1a1)]()&&path[_0x155757(0x194)](_0x106ea0)['startsWith'](_0x155757(0x23d)));if(_0x2ad603[_0x155757(0x26a)](_0x7d1be4['length'],0x0)){const _0x474bee=_0x7d1be4[_0x155757(0x1cd)](_0x3ffc27=>({'filePath':_0x3ffc27,'mtime':fs['statSync'](_0x3ffc27)['mtime']}))[_0x155757(0x21c)]((_0x534a70,_0x820b1f)=>{const _0xf74ee8=_0x155757;if(!_0x534a70||!_0x534a70[_0xf74ee8(0x23c)])return _0x820b1f;if(_0x2ad603[_0xf74ee8(0x220)](_0x820b1f[_0xf74ee8(0x23c)],_0x534a70[_0xf74ee8(0x23c)]))return _0x820b1f;return _0x534a70;},{});return _0x474bee?_0x474bee[_0x155757(0x1f7)]:'';}return'';}catch(_0x4fcb54){return logger[_0x155757(0x1a5)](_0x155757(0x1af)+util[_0x155757(0x1f9)](_0x4fcb54)),'';}}static [a72_0x5140ee(0x264)]=async(_0x1259ba,_0x2d9b93)=>{const _0x346658=a72_0x5140ee,_0x139e5f={'nVTqR':function(_0x127914,_0x57c5b5,_0x2a7056,_0x45a5e7,_0x58063a){return _0x127914(_0x57c5b5,_0x2a7056,_0x45a5e7,_0x58063a);},'yvWVh':_0x346658(0x226)},_0x3fa0ac={};_0x3fa0ac['qs']=_0x1259ba;const _0x329f33=await _0x139e5f[_0x346658(0x251)](nodeRequest,_0x139e5f[_0x346658(0x1f4)],UPDATED_CLI_ENDPOINT,_0x3fa0ac,_0x2d9b93);return logger[_0x346658(0x22c)](_0x346658(0x1da)+JSON[_0x346658(0x23a)](_0x329f33)),_0x329f33;};static[a72_0x5140ee(0x209)](_0x421e7f){const _0x16a6d6=a72_0x5140ee;try{const _0x23ddaf=fs['openSync'](_0x421e7f,'r+');return fs[_0x16a6d6(0x1ba)](_0x23ddaf),![];}catch(_0x21b986){if(BINARY_BUSY_ERROR_CODES[_0x16a6d6(0x1ea)](_0x21b986[_0x16a6d6(0x190)]))return logger['debug']('Binary\x20is\x20busy:\x20'+_0x421e7f),!![];return logger['debug'](_0x16a6d6(0x1a2)+_0x21b986['message']),![];}}static[a72_0x5140ee(0x1ff)](_0xa5fc91,_0x34bd2b=''){const _0x3090be=a72_0x5140ee,_0x23521={'XMkJG':_0x3090be(0x212),'sUBnA':function(_0x509a45,_0x4ab222){return _0x509a45(_0x4ab222);},'hFHgP':_0x3090be(0x265),'iGPsz':function(_0x46253d,_0x4f8750){return _0x46253d(_0x4f8750);},'dORIg':function(_0x5cd6c2,_0x750203){return _0x5cd6c2(_0x750203);},'lzYxB':function(_0x2691a0,_0xad1bc2,_0x553d0,_0x28a3d8){return _0x2691a0(_0xad1bc2,_0x553d0,_0x28a3d8);},'zzKWH':_0x3090be(0x1a5)};return new Promise((_0x528fe5,_0xb33700)=>{const _0x29f980=_0x3090be,_0x13ee74={};_0x13ee74['cwd']=_0x34bd2b,_0x13ee74['timeout']=0x1388;const _0x69d896=_0x23521['lzYxB'](exec,_0xa5fc91,_0x13ee74,(_0x4da483,_0x1eda95,_0x248997)=>{const _0x5e8b64=a72_0x4230;if(_0x4da483){if(_0xa5fc91[_0x5e8b64(0x1ea)](_0x23521['XMkJG'])&&(_0x1eda95[_0x5e8b64(0x20b)]()||_0x248997[_0x5e8b64(0x20b)]())){const _0x47a75a=_0x1eda95[_0x5e8b64(0x20b)]()||_0x248997['trim']();logger[_0x5e8b64(0x22c)]('CLI\x20version\x20found\x20despite\x20error:\x20\x22'+_0x47a75a+'\x22'),_0x23521[_0x5e8b64(0x1ad)](_0x528fe5,_0x47a75a);}else _0x23521[_0x5e8b64(0x1ad)](_0x528fe5,_0x248997[_0x5e8b64(0x20b)]()||_0x23521[_0x5e8b64(0x263)]);}else logger[_0x5e8b64(0x22c)](_0x5e8b64(0x21b)+_0x1eda95[_0x5e8b64(0x20b)]()+'\x22'),_0x23521[_0x5e8b64(0x247)](_0x528fe5,_0x1eda95[_0x5e8b64(0x20b)]());});_0x69d896['on'](_0x23521[_0x29f980(0x1c1)],()=>{const _0x239065=_0x29f980;_0x23521[_0x239065(0x207)](_0x528fe5,_0x23521['hFHgP']);});});}static ['downloadLatestBinary']=async(_0x4aab04,_0x24ecd1)=>{const _0x42aefb=a72_0x5140ee,_0x24ea27={'Rlzdg':function(_0x3f4b10,_0x52d171){return _0x3f4b10(_0x52d171);},'KAPfo':_0x42aefb(0x262),'uFUhh':_0x42aefb(0x1a6),'Vhxgm':function(_0x1bd176,_0x1ccf53){return _0x1bd176(_0x1ccf53);},'jcrcl':_0x42aefb(0x1a5)};PerformanceTester[_0x42aefb(0x21f)](PerformanceEvents[_0x42aefb(0x1ac)]),logger[_0x42aefb(0x22c)](_0x42aefb(0x213)+_0x4aab04);try{const _0x497861=url[_0x42aefb(0x19f)](_0x4aab04),_0x556df4=path[_0x42aefb(0x1ae)](_0x24ecd1,'downloaded_file_'+process[_0x42aefb(0x1e7)]+'.zip'),_0x506a69=fs['createWriteStream'](_0x556df4);return new Promise((_0x1dc229,_0x23b3ce)=>{const _0xa94272=_0x42aefb,_0x3c29bf={'eIqZW':_0x24ea27[_0xa94272(0x1b5)],'ohTuD':function(_0x556f62,_0x418093){return _0x24ea27['Rlzdg'](_0x556f62,_0x418093);},'cLXDv':_0x24ea27[_0xa94272(0x21d)],'zGaFk':function(_0x202f43,_0xfc0c29){const _0xdec7b9=_0xa94272;return _0x24ea27[_0xdec7b9(0x205)](_0x202f43,_0xfc0c29);},'CXxtV':function(_0x3c7018,_0x13c188){const _0x580c86=_0xa94272;return _0x24ea27[_0x580c86(0x1fa)](_0x3c7018,_0x13c188);},'hbfKY':_0x24ea27[_0xa94272(0x241)]};https[_0xa94272(0x245)](_0x497861,function(_0x808eb){const _0x1306ce=_0xa94272,_0x50e21e={'wQWWY':function(_0x2b9f44,_0x10174d){return _0x3c29bf['zGaFk'](_0x2b9f44,_0x10174d);}},_0x296451=null;_0x808eb['pipe'](_0x506a69),_0x808eb['on'](_0x3c29bf[_0x1306ce(0x269)],function(_0x2b003f){const _0x3e3ff9=_0x1306ce;logger[_0x3e3ff9(0x1a5)](util[_0x3e3ff9(0x1f9)](_0x3c29bf['eIqZW'],_0x2b003f)),PerformanceTester[_0x3e3ff9(0x1d4)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x3e3ff9(0x1f9)](_0x2b003f)),_0x3c29bf['ohTuD'](_0x23b3ce,_0x2b003f);}),_0x506a69['on'](_0x3c29bf[_0x1306ce(0x269)],function(_0x39d06b){const _0x40e430=_0x1306ce;logger[_0x40e430(0x1a5)](util[_0x40e430(0x1f9)](_0x3c29bf[_0x40e430(0x1c8)],_0x39d06b)),PerformanceTester[_0x40e430(0x1d4)](PerformanceEvents[_0x40e430(0x1ac)],![],util[_0x40e430(0x1f9)](_0x39d06b)),_0x3c29bf[_0x40e430(0x1e5)](_0x23b3ce,_0x39d06b);}),CLIUtils[_0x1306ce(0x1bd)](_0x506a69,_0x296451,_0x556df4,_0x24ecd1,_0x5c79e7=>{const _0x55d5fb=_0x1306ce;PerformanceTester['end'](PerformanceEvents[_0x55d5fb(0x1ac)]),_0x3c29bf[_0x55d5fb(0x1de)](_0x1dc229,_0x5c79e7);},_0x286db5=>{const _0x1d4049=_0x1306ce;PerformanceTester[_0x1d4049(0x1d4)](PerformanceEvents[_0x1d4049(0x1ac)],![],util[_0x1d4049(0x1f9)](_0x286db5)),_0x50e21e[_0x1d4049(0x196)](_0x23b3ce,_0x286db5);});})['on'](_0x24ea27[_0xa94272(0x241)],function(_0x1920b7){const _0x535a99=_0xa94272;logger[_0x535a99(0x1a5)](_0x535a99(0x224)+util[_0x535a99(0x1f9)](_0x1920b7)),PerformanceTester['end'](PerformanceEvents[_0x535a99(0x1ac)],![],util['format'](_0x1920b7)),_0x24ea27['Rlzdg'](_0x23b3ce,_0x1920b7);});});}catch(_0x2b6751){PerformanceTester['end'](PerformanceEvents[_0x42aefb(0x1ac)],![],util[_0x42aefb(0x1f9)](_0x2b6751)),logger['debug'](_0x42aefb(0x23e)+util[_0x42aefb(0x1f9)](_0x2b6751));}};static['downloadFileStream'](_0x29c8e7,_0x46f937,_0x2864f1,_0x2b8453,_0x1358ff,_0x106294){const _0x4356a9=a72_0x5140ee,_0xb8b60a={'VgZwt':function(_0x57aa31,_0x1902c3){return _0x57aa31(_0x1902c3);},'yJZab':_0x4356a9(0x20d),'gctMn':function(_0x3d2e39,_0x523d37){return _0x3d2e39!==_0x523d37;},'QwyzR':'error','CajbS':'EXDEV','wMFUi':_0x4356a9(0x1d9),'tihvS':'end','QUvhW':function(_0x4d99ba,_0x1a8ab7){return _0x4d99ba(_0x1a8ab7);},'ZYqWt':_0x4356a9(0x1bb)};_0x29c8e7['on'](_0xb8b60a[_0x4356a9(0x1ca)],function(){const _0x1948a9=_0x4356a9,_0x5375fd={'ZzbzH':function(_0x23bba7,_0x14fd66){const _0x41dbe5=a72_0x4230;return _0xb8b60a[_0x41dbe5(0x21a)](_0x23bba7,_0x14fd66);},'usuay':_0xb8b60a[_0x1948a9(0x1ca)],'BwqOc':function(_0x568688,_0x22a817){const _0x50b348=_0x1948a9;return _0xb8b60a[_0x50b348(0x231)](_0x568688,_0x22a817);},'tenqL':function(_0x2f5cc2,_0x1211b6){return _0xb8b60a['VgZwt'](_0x2f5cc2,_0x1211b6);},'tXuOL':_0xb8b60a[_0x1948a9(0x1a0)],'dHTUk':function(_0x442c87,_0x39066e){const _0xc214bf=_0x1948a9;return _0xb8b60a[_0xc214bf(0x231)](_0x442c87,_0x39066e);},'WbQSm':_0xb8b60a[_0x1948a9(0x24e)],'pZkJK':function(_0x48dcd8,_0x1eb92d){const _0x477507=_0x1948a9;return _0xb8b60a[_0x477507(0x21a)](_0x48dcd8,_0x1eb92d);},'cJBWy':_0xb8b60a[_0x1948a9(0x229)],'pMpFv':_0xb8b60a[_0x1948a9(0x193)],'kxFFr':function(_0x5275ab,_0x758270){const _0x39f882=_0x1948a9;return _0xb8b60a[_0x39f882(0x21a)](_0x5275ab,_0x758270);},'hzlxd':function(_0x4fbac3,_0x5cf710){const _0x489cee=_0x1948a9;return _0xb8b60a[_0x489cee(0x1f8)](_0x4fbac3,_0x5cf710);},'SZoPR':_0xb8b60a['ZYqWt']},_0x3ce0a4={};_0x3ce0a4['lazyEntries']=!![],yauzl['open'](_0x2864f1,_0x3ce0a4,function(_0x2ef6e5,_0x2aaa06){const _0x2df780=_0x1948a9,_0x37c1a2={'IGsBM':function(_0x375aab,_0x3766cc){const _0xd7c81f=a72_0x4230;return _0x5375fd[_0xd7c81f(0x1d7)](_0x375aab,_0x3766cc);},'uIEbr':_0x5375fd[_0x2df780(0x1b8)],'tAkvr':function(_0x39ec47,_0x4b7cdd){const _0x4910c7=_0x2df780;return _0x5375fd[_0x4910c7(0x1ef)](_0x39ec47,_0x4b7cdd);}};if(_0x2ef6e5){_0x5375fd[_0x2df780(0x215)](_0x106294,_0x2ef6e5);return;}_0x2aaa06[_0x2df780(0x1cb)](),_0x2aaa06['on'](_0x5375fd[_0x2df780(0x256)],_0x174876=>{const _0x465f82=_0x2df780,_0x1ecd72={'nvtwp':function(_0x5588e3,_0x4fa685){const _0x162c2b=a72_0x4230;return _0x5375fd[_0x162c2b(0x1d7)](_0x5588e3,_0x4fa685);},'SCQzO':function(_0x36bb36,_0x53adac){return _0x5375fd['ZzbzH'](_0x36bb36,_0x53adac);},'CBQBG':_0x5375fd['usuay']};if(/\/$/[_0x465f82(0x236)](_0x174876[_0x465f82(0x1a3)])){_0x2aaa06[_0x465f82(0x1cb)]();return;}!_0x46f937&&(_0x46f937=_0x174876[_0x465f82(0x1a3)]);if(_0x5375fd[_0x465f82(0x25c)](_0x174876[_0x465f82(0x1a3)],_0x46f937))_0x2aaa06[_0x465f82(0x1cb)]();else{const _0xa0dc07=_0x174876[_0x465f82(0x1a3)],_0x178101=path[_0x465f82(0x1ae)](_0x2b8453,_0xa0dc07+_0x465f82(0x191)+process[_0x465f82(0x1e7)]);let _0x2bf70b;try{_0x2bf70b=fs['createWriteStream'](_0x178101);}catch(_0x106b9a){if(BINARY_BUSY_ERROR_CODES[_0x465f82(0x1ea)](_0x106b9a[_0x465f82(0x190)])){const _0x42c0e6=path[_0x465f82(0x1ae)](_0x2b8453,_0xa0dc07);if(fs['existsSync'](_0x42c0e6)){logger[_0x465f82(0x22d)](_0x465f82(0x24a)+_0xa0dc07),fs[_0x465f82(0x1ec)](_0x2864f1,_0x259616=>{const _0x4f4179=_0x465f82;_0x259616&&logger[_0x4f4179(0x22d)](_0x4f4179(0x237)+_0x2864f1);}),_0x5375fd[_0x465f82(0x1d3)](_0x1358ff,_0x42c0e6);return;}logger[_0x465f82(0x22d)]('Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0xa0dc07);}_0x5375fd[_0x465f82(0x1d7)](_0x106294,_0x106b9a);return;}_0x2bf70b['on'](_0x5375fd[_0x465f82(0x242)],_0x539d91=>{const _0x4e8473=_0x465f82;if(BINARY_BUSY_ERROR_CODES[_0x4e8473(0x1ea)](_0x539d91[_0x4e8473(0x190)])){const _0x474261=path[_0x4e8473(0x1ae)](_0x2b8453,_0xa0dc07);_0x2bf70b['close'](),fs[_0x4e8473(0x24b)](_0x474261)?(logger[_0x4e8473(0x22d)](_0x4e8473(0x219)+_0x539d91['message']),_0x2aaa06[_0x4e8473(0x20d)](),fs[_0x4e8473(0x1ec)](_0x2864f1,_0x8cfb21=>{const _0xc9c406=_0x4e8473;_0x8cfb21&&logger[_0xc9c406(0x22d)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x2864f1);}),_0x1ecd72[_0x4e8473(0x1e1)](_0x1358ff,_0x474261)):(logger['warn']('Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x539d91['message']),fs[_0x4e8473(0x1ec)](_0x178101,()=>{}),_0x1ecd72[_0x4e8473(0x261)](_0x106294,_0x539d91));}else fs[_0x4e8473(0x1ec)](_0x178101,()=>{}),_0x1ecd72[_0x4e8473(0x261)](_0x106294,_0x539d91);}),_0x2aaa06[_0x465f82(0x1d5)](_0x174876,function(_0x2e5155,_0xf5c6aa){const _0xa01e84=_0x465f82;if(_0x2e5155){fs['unlink'](_0x178101,()=>{}),_0x37c1a2[_0xa01e84(0x19b)](_0x106294,_0x2e5155);return;}_0xf5c6aa['on'](_0x37c1a2[_0xa01e84(0x20e)],function(){const _0x1a40e0=_0xa01e84;_0x2bf70b['end'](),_0x2bf70b['on'](_0x1ecd72[_0x1a40e0(0x1b0)],function(){const _0x343f96=_0x1a40e0;_0x2aaa06[_0x343f96(0x1cb)]();});}),_0xf5c6aa['pipe'](_0x2bf70b);});}}),_0x2aaa06['on'](_0x5375fd[_0x2df780(0x242)],_0x41b65e=>{const _0xbde39c=_0x2df780;_0x37c1a2[_0xbde39c(0x1a7)](_0x106294,_0x41b65e);}),_0x2aaa06[_0x2df780(0x243)](_0x5375fd['pMpFv'],()=>{const _0x491367=_0x2df780,_0x4f2f05={'HMZdb':function(_0x3e4ba9,_0x6bdb47){return _0x5375fd['dHTUk'](_0x3e4ba9,_0x6bdb47);},'uBRhQ':_0x5375fd['WbQSm'],'EdTNE':function(_0x1875ab,_0x2f5d7a){return _0x5375fd['pZkJK'](_0x1875ab,_0x2f5d7a);}};fs[_0x491367(0x1ec)](_0x2864f1,_0x3f2834=>{const _0x2463b1=_0x491367;_0x3f2834&&logger[_0x2463b1(0x22d)](_0x2463b1(0x237)+_0x2864f1);});const _0x5ab749=path['join'](_0x2b8453,_0x46f937+_0x491367(0x191)+process[_0x491367(0x1e7)]),_0x265d99=path[_0x491367(0x1ae)](_0x2b8453,_0x46f937);fs[_0x491367(0x214)](_0x5ab749,_0x5375fd[_0x491367(0x23f)],function(_0x2b8acb){const _0x523336=_0x491367,_0xd549cd={'ZSSsW':function(_0x1f390b,_0x286179){const _0x48d9b2=a72_0x4230;return _0x4f2f05[_0x48d9b2(0x20f)](_0x1f390b,_0x286179);},'SNhOJ':_0x4f2f05['uBRhQ'],'EjxQm':function(_0x2d31d4,_0x275dab){const _0x50480d=a72_0x4230;return _0x4f2f05[_0x50480d(0x1c0)](_0x2d31d4,_0x275dab);}};if(_0x2b8acb){_0x2aaa06[_0x523336(0x20d)](),fs['unlink'](_0x5ab749,()=>{}),_0x4f2f05[_0x523336(0x1c0)](_0x106294,_0x2b8acb);return;}fs['rename'](_0x5ab749,_0x265d99,function(_0x211c79){const _0x55048c=_0x523336;if(_0x211c79){if(_0xd549cd['ZSSsW'](_0x211c79['code'],_0xd549cd[_0x55048c(0x1fd)])){_0x2aaa06['close'](),fs[_0x55048c(0x1ec)](_0x5ab749,()=>{}),_0xd549cd[_0x55048c(0x218)](_0x106294,_0x211c79);return;}logger[_0x55048c(0x22d)](_0x55048c(0x1c6)+_0x211c79['message']);try{fs['copyFileSync'](_0x5ab749,_0x265d99);}catch(_0x210a82){_0x2aaa06['close'](),fs[_0x55048c(0x1ec)](_0x5ab749,()=>{}),_0xd549cd['EjxQm'](_0x106294,_0x210a82);return;}fs[_0x55048c(0x1ec)](_0x5ab749,_0x427415=>{const _0x543994=_0x55048c;_0x427415&&logger[_0x543994(0x22d)]('Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20'+_0x427415[_0x543994(0x1d0)]);});}_0x2aaa06[_0x55048c(0x20d)](),_0xd549cd['EjxQm'](_0x1358ff,_0x265d99);});});});});});}static[a72_0x5140ee(0x216)](){const _0x231f94=a72_0x5140ee;if(process[_0x231f94(0x238)][_0x231f94(0x21e)])return JSON[_0x231f94(0x19f)](process[_0x231f94(0x238)][_0x231f94(0x21e)]);return this['testFrameworkDetail'];}static['getAutomationFrameworkDetail'](){const _0x4bc65a=a72_0x5140ee;if(process[_0x4bc65a(0x238)][_0x4bc65a(0x1a8)])return JSON[_0x4bc65a(0x19f)](process[_0x4bc65a(0x238)][_0x4bc65a(0x1a8)]);return this[_0x4bc65a(0x1ed)];}static[a72_0x5140ee(0x201)](_0x43f45c,_0x3372c6){const _0x357ed4=a72_0x5140ee,_0x4a8b7b={'gvYnw':_0x357ed4(0x250),'wOpzL':function(_0x10dc5d,_0x5d7f80){return _0x10dc5d(_0x5d7f80);},'SEcuX':function(_0x183c62,_0x167641){return _0x183c62||_0x167641;},'fPaZj':function(_0x501cc0,_0xc62a68){return _0x501cc0(_0xc62a68);}},_0x4a2c6e=_0x4a8b7b[_0x357ed4(0x208)][_0x357ed4(0x1fe)]('|');let _0x17b374=0x0;while(!![]){switch(_0x4a2c6e[_0x17b374++]){case'0':process[_0x357ed4(0x238)][_0x357ed4(0x1a8)]=JSON[_0x357ed4(0x23a)](this[_0x357ed4(0x1ed)]);continue;case'1':process[_0x357ed4(0x238)][_0x357ed4(0x21e)]=JSON[_0x357ed4(0x23a)](this[_0x357ed4(0x18f)]);continue;case'2':this[_0x357ed4(0x18f)]={'name':_0x43f45c,'version':{[_0x43f45c]:_0x4a8b7b[_0x357ed4(0x252)](getFrameworkVersion,_0x43f45c)}};continue;case'3':_0x4a8b7b[_0x357ed4(0x1ce)](!_0x43f45c,!_0x3372c6)&&logger[_0x357ed4(0x22c)](_0x357ed4(0x1dc)+_0x43f45c+_0x357ed4(0x249)+_0x3372c6);continue;case'4':this['automationFrameworkDetail']={'name':_0x3372c6,'version':_0x4a8b7b[_0x357ed4(0x1b2)](getFrameworkVersion,_0x3372c6)};continue;}break;}}static[a72_0x5140ee(0x1c4)](_0x92deb8,_0x23a504){return _0x92deb8+':'+_0x23a504;}static['getCurrentInstanceName'](){const _0x503864=a72_0x5140ee;return process[_0x503864(0x1e7)]+':'+threadId;}static[a72_0x5140ee(0x230)](_0x4178cf){const _0x2ebb2d=a72_0x5140ee;if(_0x4178cf[_0x2ebb2d(0x24c)]&&_0x4178cf[_0x2ebb2d(0x24c)][_0x2ebb2d(0x1f0)])return!![];return![];}static[a72_0x5140ee(0x225)](_0x26458c){const _0x229f87=a72_0x5140ee;if(_0x26458c[_0x229f87(0x24c)]&&_0x26458c['testContextOptions'][_0x229f87(0x232)])return!![];return![];}static['matchHookRegex'](_0x3af465){const _0x1d8bd0=a72_0x5140ee,_0x549364=new RegExp(TestFrameworkConstants[_0x1d8bd0(0x254)]);return _0x549364[_0x1d8bd0(0x236)](_0x3af465);}static[a72_0x5140ee(0x19c)](_0x15bf1c,_0x3b6c3c){const _0x860cf4=a72_0x5140ee,_0x2b1f82={};_0x2b1f82[_0x860cf4(0x18e)]=function(_0x114d0a,_0x39093e){return _0x114d0a!==_0x39093e;},_0x2b1f82[_0x860cf4(0x267)]=function(_0x283b28,_0x5bad21){return _0x283b28===_0x5bad21;},_0x2b1f82[_0x860cf4(0x1d6)]=_0x860cf4(0x19d);const _0x1e2326=_0x2b1f82;for(const [_0x1b9d95,_0x7d7b9d]of Object[_0x860cf4(0x235)](_0x3b6c3c)){if(_0x1e2326[_0x860cf4(0x18e)](_0x7d7b9d,null)&&_0x1e2326[_0x860cf4(0x267)](typeof _0x7d7b9d,_0x1e2326['MlLlT'])&&!Array['isArray'](_0x7d7b9d))_0x15bf1c[_0x1b9d95]=this[_0x860cf4(0x19c)](_0x15bf1c[_0x1b9d95]||{},_0x7d7b9d);else Array['isArray'](_0x7d7b9d)?_0x15bf1c[_0x1b9d95]=(_0x15bf1c[_0x1b9d95]||[])[_0x860cf4(0x1f2)](_0x7d7b9d):_0x15bf1c[_0x1b9d95]=_0x7d7b9d;}return _0x15bf1c;}}module['exports']=CLIUtils;
@@ -1 +1 @@
1
- 'use strict';function a73_0x32a4(_0x5369d2,_0x3da2a2){const _0x356b97=a73_0x356b();return a73_0x32a4=function(_0x32a438,_0x334df5){_0x32a438=_0x32a438-0x12b;let _0x247f2e=_0x356b97[_0x32a438];return _0x247f2e;},a73_0x32a4(_0x5369d2,_0x3da2a2);}const a73_0x21338e=a73_0x32a4;(function(_0x122840,_0x398675){const _0x56225d=a73_0x32a4,_0x140ae0=_0x122840();while(!![]){try{const _0x3a3c9f=-parseInt(_0x56225d(0x153))/0x1*(-parseInt(_0x56225d(0x161))/0x2)+-parseInt(_0x56225d(0x136))/0x3*(parseInt(_0x56225d(0x17f))/0x4)+parseInt(_0x56225d(0x16c))/0x5+-parseInt(_0x56225d(0x131))/0x6*(-parseInt(_0x56225d(0x144))/0x7)+parseInt(_0x56225d(0x134))/0x8+-parseInt(_0x56225d(0x168))/0x9*(-parseInt(_0x56225d(0x172))/0xa)+-parseInt(_0x56225d(0x145))/0xb;if(_0x3a3c9f===_0x398675)break;else _0x140ae0['push'](_0x140ae0['shift']());}catch(_0x60e455){_0x140ae0['push'](_0x140ae0['shift']());}}}(a73_0x356b,0xac767));const BrowserstackCLI=require(a73_0x21338e(0x132)),helper=require('../../helpers/helper'),AutomationFramework=require(a73_0x21338e(0x158)),TestFrameworkConstants=require(a73_0x21338e(0x157)),PlaywrightDriverModule=require(a73_0x21338e(0x12e)),TestInfo=require('./TestInfo'),TestHubModule=require(a73_0x21338e(0x12f)),{createClassLogger}=require(a73_0x21338e(0x16e)),logger=createClassLogger(a73_0x21338e(0x180));class CustomTagManager{static ['buildLevelTags']={};static [a73_0x21338e(0x147)]={};static[a73_0x21338e(0x17b)](_0x335428,_0xa0dc7d,_0x3b5011=![]){const _0x58fbd3=a73_0x21338e,_0x9b4b32={'JjpMc':function(_0x1a98c4,_0x87a687){return _0x1a98c4!==_0x87a687;},'GYRaz':_0x58fbd3(0x177),'flfDB':'Custom\x20tag\x20key\x20must\x20be\x20a\x20string','itIBY':_0x58fbd3(0x15d),'CwrxE':function(_0x35af85,_0x35d5c6){return _0x35af85===_0x35d5c6;},'GlOyG':_0x58fbd3(0x135),'fugba':_0x58fbd3(0x162),'cwRpX':_0x58fbd3(0x13f),'CHsBk':_0x58fbd3(0x146),'PmVjo':function(_0x3d69cd,_0x575e01){return _0x3d69cd(_0x575e01);},'Dgfpw':'./cliUtils','UugAl':function(_0x1f6765,_0x49c202){return _0x1f6765===_0x49c202;},'uOvSQ':_0x58fbd3(0x13d),'qjleg':_0x58fbd3(0x143),'JkSSk':'CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','rMzxw':function(_0x4c929a,_0x5ac892){return _0x4c929a(_0x5ac892);},'edRGf':_0x58fbd3(0x17d),'akRXw':function(_0x52df6a,_0x294819){return _0x52df6a(_0x294819);},'NLIzU':_0x58fbd3(0x16f),'zXrGT':'CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright'};if(_0x9b4b32[_0x58fbd3(0x16a)](typeof _0x335428,_0x9b4b32[_0x58fbd3(0x182)]))throw new Error(_0x9b4b32[_0x58fbd3(0x133)]);if(_0x9b4b32[_0x58fbd3(0x16a)](typeof _0xa0dc7d,_0x9b4b32[_0x58fbd3(0x182)]))throw new Error(_0x9b4b32['itIBY']);if(_0x9b4b32[_0x58fbd3(0x14a)](_0x335428[_0x58fbd3(0x17a)](),''))throw new Error(_0x9b4b32['GlOyG']);if(_0x9b4b32[_0x58fbd3(0x14a)](_0xa0dc7d[_0x58fbd3(0x17a)](),''))throw new Error(_0x9b4b32['fugba']);const _0x4f1f2=helper[_0x58fbd3(0x15b)](_0xa0dc7d);if(_0x3b5011){const _0x16f29e=BrowserstackCLI[_0x58fbd3(0x164)]()[_0x58fbd3(0x138)][TestHubModule['MODULE_NAME']];if(_0x16f29e){const _0x4f7c0e=_0x16f29e?.[_0x58fbd3(0x12c)]?.[_0x58fbd3(0x160)]()?.[_0x58fbd3(0x175)];TestInfo[_0x58fbd3(0x14d)](_0x4f7c0e);const _0x1f9d4e=TestInfo[_0x58fbd3(0x13a)](_0x4f7c0e),_0x2b7860=_0x1f9d4e[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};if(!_0x2b7860[_0x335428]){const _0x509ba6={};_0x509ba6[_0x58fbd3(0x14f)]=_0x9b4b32[_0x58fbd3(0x184)],_0x509ba6[_0x58fbd3(0x13c)]=[..._0x4f1f2],_0x2b7860[_0x335428]=_0x509ba6;}else _0x2b7860[_0x335428]['values']=[..._0x4f1f2];_0x1f9d4e[TestFrameworkConstants[_0x58fbd3(0x173)]]=_0x2b7860,TestInfo[_0x58fbd3(0x174)](_0x4f7c0e,_0x1f9d4e),!this[_0x58fbd3(0x183)][_0x4f7c0e]&&(this['buildLevelTags'][_0x4f7c0e]={}),this[_0x58fbd3(0x183)][_0x4f7c0e][_0x335428]=[..._0x4f1f2];}}else{let _0x24d0d4;const _0x2a2686=global['__jestCurrentTestIdentifier'];let _0x4069c3=![];if(_0x2a2686&&_0x2a2686[_0x58fbd3(0x12d)](_0x9b4b32[_0x58fbd3(0x14c)]))_0x4069c3=!![],_0x24d0d4=_0x2a2686;else try{const _0x259f1a=_0x9b4b32[_0x58fbd3(0x17e)](require,_0x9b4b32[_0x58fbd3(0x14e)]);if(BrowserstackCLI[_0x58fbd3(0x164)]()[_0x58fbd3(0x179)]()){const _0x25df71=_0x259f1a[_0x58fbd3(0x15c)]();if(_0x9b4b32[_0x58fbd3(0x166)](_0x25df71?.[_0x58fbd3(0x139)]?.['toLowerCase'](),_0x9b4b32[_0x58fbd3(0x142)])){const _0x2c5f9c=AutomationFramework[_0x58fbd3(0x150)]();_0x24d0d4=AutomationFramework['getState'](_0x2c5f9c,PlaywrightDriverModule[_0x58fbd3(0x155)],''),_0x24d0d4&&_0x24d0d4['includes'](_0x9b4b32[_0x58fbd3(0x14c)])&&(_0x4069c3=!![]);}}}catch(_0x59edcc){logger['debug'](_0x58fbd3(0x130)+_0x59edcc);}if(_0x4069c3){if(!_0x24d0d4)throw new Error(_0x9b4b32[_0x58fbd3(0x149)]);const _0x3ce252=BrowserstackCLI[_0x58fbd3(0x164)]()['getTestFramework']();if(!_0x3ce252)throw new Error(_0x9b4b32[_0x58fbd3(0x178)]);const _0x3580ad=_0x9b4b32[_0x58fbd3(0x15a)](require,_0x9b4b32[_0x58fbd3(0x12b)]),_0x1472f0=_0x9b4b32[_0x58fbd3(0x176)](require,_0x9b4b32[_0x58fbd3(0x17c)]),_0x299f54=_0x3ce252['resolveInstance'](_0x3580ad[_0x58fbd3(0x148)],_0x1472f0[_0x58fbd3(0x15e)]);if(!_0x299f54)throw new Error(_0x9b4b32[_0x58fbd3(0x13b)]);const _0x59877c=_0x299f54[_0x58fbd3(0x13e)]()[_0x58fbd3(0x167)](_0x24d0d4)||{},_0x5a48b6=_0x59877c[TestFrameworkConstants[_0x58fbd3(0x173)]]||{};logger[_0x58fbd3(0x141)](_0x58fbd3(0x16b)+_0x24d0d4+_0x58fbd3(0x169)+_0x335428+_0x58fbd3(0x181)+JSON[_0x58fbd3(0x163)](_0x4f1f2)+_0x58fbd3(0x165)+JSON[_0x58fbd3(0x163)](_0x5a48b6));if(!_0x5a48b6[_0x335428]){const _0x593a9c={};_0x593a9c[_0x58fbd3(0x14f)]=_0x9b4b32[_0x58fbd3(0x184)],_0x593a9c[_0x58fbd3(0x13c)]=[..._0x4f1f2],_0x5a48b6[_0x335428]=_0x593a9c,logger[_0x58fbd3(0x141)](_0x58fbd3(0x170)+_0x335428+_0x58fbd3(0x15f)+JSON[_0x58fbd3(0x163)](_0x4f1f2));}else _0x5a48b6[_0x335428]['values']=[..._0x4f1f2],logger[_0x58fbd3(0x141)]('[CustomTagManager]\x20setCustomTags:\x20Updated\x20existing\x20tag\x20key='+_0x335428+'\x20with\x20new\x20values='+JSON[_0x58fbd3(0x163)](_0x4f1f2));const _0x3c1146={[TestFrameworkConstants[_0x58fbd3(0x173)]]:_0x5a48b6},_0x437392={};_0x437392[_0x24d0d4]=_0x3c1146,_0x299f54['addMultipleEntries'](_0x437392),logger[_0x58fbd3(0x141)](_0x58fbd3(0x137)+_0x24d0d4+',\x20finalTags='+JSON[_0x58fbd3(0x163)](_0x5a48b6)),!this[_0x58fbd3(0x147)][_0x24d0d4]&&(this[_0x58fbd3(0x147)][_0x24d0d4]={}),this['testLevelTags'][_0x24d0d4][_0x335428]=[..._0x4f1f2];}else{const _0x32b2ab=global[_0x58fbd3(0x14b)]?.[_0x58fbd3(0x159)]?.['testInfo'];if(!_0x32b2ab){const _0x2b4fd6=AutomationFramework[_0x58fbd3(0x150)]();_0x24d0d4=AutomationFramework[_0x58fbd3(0x171)](_0x2b4fd6,PlaywrightDriverModule[_0x58fbd3(0x155)],'');}else _0x24d0d4=TestInfo[_0x58fbd3(0x16d)](_0x32b2ab,_0x32b2ab[_0x58fbd3(0x154)]);const _0x554573=TestInfo[_0x58fbd3(0x13a)](_0x24d0d4),_0x51173d=_0x554573[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};if(!_0x51173d[_0x335428]){const _0x50135a={};_0x50135a[_0x58fbd3(0x14f)]=_0x9b4b32[_0x58fbd3(0x184)],_0x50135a['values']=[..._0x4f1f2],_0x51173d[_0x335428]=_0x50135a;}else _0x51173d[_0x335428][_0x58fbd3(0x13c)]=[..._0x4f1f2];_0x554573[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x51173d,TestInfo[_0x58fbd3(0x174)](_0x24d0d4,_0x554573),!this[_0x58fbd3(0x147)][_0x24d0d4]&&(this['testLevelTags'][_0x24d0d4]={}),this[_0x58fbd3(0x147)][_0x24d0d4][_0x335428]=[..._0x4f1f2];}}}static[a73_0x21338e(0x151)](){const _0xe63518=a73_0x21338e,_0x5d658b={...this[_0xe63518(0x183)]};return _0x5d658b;}static[a73_0x21338e(0x152)](){const _0x5bc61b=a73_0x21338e,_0x36f089={...this[_0x5bc61b(0x147)]};return _0x36f089;}static[a73_0x21338e(0x140)](){const _0x38e0ee=a73_0x21338e;this[_0x38e0ee(0x183)]={},this[_0x38e0ee(0x147)]={};}}function a73_0x356b(){const _0x4002b0=['./state/testFrameworkState','PmVjo','420628mFbonW','CustomTagManager',',\x20values=','GYRaz','buildLevelTags','cwRpX','edRGf','testhubConfig','includes','./modules/playwrightDriverModule','./modules/testhubModule','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','18006JrhkWe','./browserstackCLI','flfDB','5151784mYbKFk','Custom\x20tag\x20key\x20cannot\x20be\x20empty','12OQPcWw','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','modules','name','getTestDetails','zXrGT','values','jest','getAllData','multi_dropdown','clearTags','debug','uOvSQ','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','1988mmZUmE','27037934fXSbTa',':jest-','testLevelTags','TEST','qjleg','CwrxE','__workerDetails','CHsBk','getTestUUID','Dgfpw','field_type','getTrackedInstance','getBuildLevelTags','getTestLevelTags','1daTpTh','retry','KEY_TEST_ID','exports','./framework/constants/testFrameworkConstants','./framework/automationFramework','currentTest','rMzxw','parseCommaSeparatedValues','getTestFrameworkDetail','Custom\x20tag\x20value\x20must\x20be\x20a\x20string','POST','\x20with\x20values=','toObject','521046MNhWzG','Custom\x20tag\x20value\x20cannot\x20be\x20empty','stringify','getInstance',',\x20existingTags=','UugAl','get','135Gbdqma',',\x20key=','JjpMc','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','3206270SwwXZz','getTestIdentifierFromTestInfo','../../helpers/classLogger','./state/hookState','[CustomTagManager]\x20setCustomTags:\x20Created\x20new\x20tag\x20key=','getState','791330fRFinL','KEY_CUSTOM_TAGS','setTestDetails','buildHashedId','akRXw','string','JkSSk','isRunning','trim','setCustomTags','NLIzU'];a73_0x356b=function(){return _0x4002b0;};return a73_0x356b();}module[a73_0x21338e(0x156)]=CustomTagManager;
1
+ 'use strict';const a73_0x55e894=a73_0x5902;function a73_0x2492(){const _0x1ade49=[',\x20existingTags=','hvYFl','KEY_CUSTOM_TAGS','xTcTA','jest','../../helpers/classLogger','isRunning','\x20with\x20new\x20values=','string','toObject','multi_dropdown','hxRwU','MODULE_NAME','./TestInfo','getTestIdentifierFromTestInfo','getTestLevelTags',':jest-','clearTags','CustomTagManager','getInstance','HftjJ','MbLxt','resolveInstance','KSdnB','[CustomTagManager]\x20setCustomTags:\x20Created\x20new\x20tag\x20key=','debug','getTestDetails','setCustomTags','parseCommaSeparatedValues','../../helpers/helper','toLowerCase','KEY_TEST_ID','addMultipleEntries','field_type','includes','EsZNv','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','buildLevelTags','Custom\x20tag\x20value\x20must\x20be\x20a\x20string','1680SFcrnm','hCvBK','9738rCnnAZ','392815VHbKDf',',\x20values=','./cliUtils',',\x20key=','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','./framework/constants/testFrameworkConstants','./browserstackCLI','eadML','1341625zHuMsJ','getTrackedInstance',',\x20finalTags=','3716uRJNXl','testInfo','name','./state/hookState','hLKlo','./modules/testhubModule','getTestFramework','stringify','./modules/playwrightDriverModule','setTestDetails','getTestFrameworkDetail','values','testLevelTags','GeRbK','trim','1528176HdJGQj','MIDBZ','TEST','POST','Custom\x20tag\x20key\x20must\x20be\x20a\x20string','buildHashedId','\x20with\x20values=','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','437014RlKcnb','getState','modules','3799863zTEBIo','exports','UDVdm','currentTest','285IXVQuO','OQpOs'];a73_0x2492=function(){return _0x1ade49;};return a73_0x2492();}(function(_0x1d96c0,_0x27c8f1){const _0x5cb2e4=a73_0x5902,_0x15178d=_0x1d96c0();while(!![]){try{const _0x3fc7c4=parseInt(_0x5cb2e4(0xe3))/0x1+parseInt(_0x5cb2e4(0x105))/0x2+-parseInt(_0x5cb2e4(0x10c))/0x3*(-parseInt(_0x5cb2e4(0xee))/0x4)+-parseInt(_0x5cb2e4(0xeb))/0x5+parseInt(_0x5cb2e4(0xe2))/0x6*(parseInt(_0x5cb2e4(0xe0))/0x7)+-parseInt(_0x5cb2e4(0xfd))/0x8+-parseInt(_0x5cb2e4(0x108))/0x9;if(_0x3fc7c4===_0x27c8f1)break;else _0x15178d['push'](_0x15178d['shift']());}catch(_0xab7cda){_0x15178d['push'](_0x15178d['shift']());}}}(a73_0x2492,0x32ab7));function a73_0x5902(_0x39fe8a,_0x1a5dee){const _0x249285=a73_0x2492();return a73_0x5902=function(_0x59024c,_0x274e50){_0x59024c=_0x59024c-0xcd;let _0x2949c6=_0x249285[_0x59024c];return _0x2949c6;},a73_0x5902(_0x39fe8a,_0x1a5dee);}const BrowserstackCLI=require(a73_0x55e894(0xe9)),helper=require(a73_0x55e894(0xd6)),AutomationFramework=require('./framework/automationFramework'),TestFrameworkConstants=require(a73_0x55e894(0xe8)),PlaywrightDriverModule=require(a73_0x55e894(0xf6)),TestInfo=require(a73_0x55e894(0x11b)),TestHubModule=require(a73_0x55e894(0xf3)),{createClassLogger}=require(a73_0x55e894(0x113)),logger=createClassLogger(a73_0x55e894(0x120));class CustomTagManager{static [a73_0x55e894(0xde)]={};static ['testLevelTags']={};static[a73_0x55e894(0xd4)](_0x1f554b,_0x5378d5,_0x408d45=![]){const _0x3a1a0e=a73_0x55e894,_0x40785e={'hLKlo':function(_0x1727f1,_0x3f4464){return _0x1727f1!==_0x3f4464;},'MbLxt':_0x3a1a0e(0x116),'OQpOs':_0x3a1a0e(0x101),'xTcTA':_0x3a1a0e(0xdf),'eadML':function(_0x5a0e69,_0x449769){return _0x5a0e69===_0x449769;},'aoQjA':'Custom\x20tag\x20key\x20cannot\x20be\x20empty','URSzD':'Custom\x20tag\x20value\x20cannot\x20be\x20empty','UDVdm':_0x3a1a0e(0x118),'HftjJ':_0x3a1a0e(0x11e),'EsZNv':function(_0x3404f7,_0x2b007a){return _0x3404f7(_0x2b007a);},'FUyEI':_0x3a1a0e(0xe5),'hvYFl':_0x3a1a0e(0x112),'GeRbK':'CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','uEzvY':'CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','ubVlP':function(_0x448b9c,_0x5655cd){return _0x448b9c(_0x5655cd);},'hxRwU':'./state/testFrameworkState','hCvBK':function(_0x498d95,_0x109c1b){return _0x498d95(_0x109c1b);},'MIDBZ':_0x3a1a0e(0xf1),'KSdnB':_0x3a1a0e(0xdd)};if(_0x40785e[_0x3a1a0e(0xf2)](typeof _0x1f554b,_0x40785e[_0x3a1a0e(0xce)]))throw new Error(_0x40785e[_0x3a1a0e(0x10d)]);if(_0x40785e[_0x3a1a0e(0xf2)](typeof _0x5378d5,_0x40785e[_0x3a1a0e(0xce)]))throw new Error(_0x40785e[_0x3a1a0e(0x111)]);if(_0x40785e[_0x3a1a0e(0xea)](_0x1f554b[_0x3a1a0e(0xfc)](),''))throw new Error(_0x40785e['aoQjA']);if(_0x40785e[_0x3a1a0e(0xea)](_0x5378d5[_0x3a1a0e(0xfc)](),''))throw new Error(_0x40785e['URSzD']);const _0x327b5c=helper[_0x3a1a0e(0xd5)](_0x5378d5);if(_0x408d45){const _0x5cd176=BrowserstackCLI[_0x3a1a0e(0x121)]()[_0x3a1a0e(0x107)][TestHubModule[_0x3a1a0e(0x11a)]];if(_0x5cd176){const _0x440761=_0x5cd176?.['testhubConfig']?.[_0x3a1a0e(0x117)]()?.[_0x3a1a0e(0x102)];TestInfo['getTestUUID'](_0x440761);const _0x411422=TestInfo[_0x3a1a0e(0xd3)](_0x440761),_0x1ca362=_0x411422[TestFrameworkConstants[_0x3a1a0e(0x110)]]||{};if(!_0x1ca362[_0x1f554b]){const _0x21fc70={};_0x21fc70['field_type']=_0x40785e[_0x3a1a0e(0x10a)],_0x21fc70[_0x3a1a0e(0xf9)]=[..._0x327b5c],_0x1ca362[_0x1f554b]=_0x21fc70;}else _0x1ca362[_0x1f554b][_0x3a1a0e(0xf9)]=[..._0x327b5c];_0x411422[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x1ca362,TestInfo[_0x3a1a0e(0xf7)](_0x440761,_0x411422),!this['buildLevelTags'][_0x440761]&&(this[_0x3a1a0e(0xde)][_0x440761]={}),this['buildLevelTags'][_0x440761][_0x1f554b]=[..._0x327b5c];}}else{let _0x3a7e33;const _0xcacd30=global['__jestCurrentTestIdentifier'];let _0x479e09=![];if(_0xcacd30&&_0xcacd30[_0x3a1a0e(0xdb)](_0x40785e[_0x3a1a0e(0xcd)]))_0x479e09=!![],_0x3a7e33=_0xcacd30;else try{const _0x44b7ba=_0x40785e[_0x3a1a0e(0xdc)](require,_0x40785e['FUyEI']);if(BrowserstackCLI[_0x3a1a0e(0x121)]()[_0x3a1a0e(0x114)]()){const _0x20d114=_0x44b7ba[_0x3a1a0e(0xf8)]();if(_0x40785e[_0x3a1a0e(0xea)](_0x20d114?.[_0x3a1a0e(0xf0)]?.[_0x3a1a0e(0xd7)](),_0x40785e[_0x3a1a0e(0x10f)])){const _0x56ef76=AutomationFramework[_0x3a1a0e(0xec)]();_0x3a7e33=AutomationFramework[_0x3a1a0e(0x106)](_0x56ef76,PlaywrightDriverModule['KEY_TEST_ID'],''),_0x3a7e33&&_0x3a7e33['includes'](_0x40785e[_0x3a1a0e(0xcd)])&&(_0x479e09=!![]);}}}catch(_0x399bdf){logger[_0x3a1a0e(0xd2)]('CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20'+_0x399bdf);}if(_0x479e09){if(!_0x3a7e33)throw new Error(_0x40785e[_0x3a1a0e(0xfb)]);const _0x262816=BrowserstackCLI['getInstance']()[_0x3a1a0e(0xf4)]();if(!_0x262816)throw new Error(_0x40785e['uEzvY']);const _0x1e2c36=_0x40785e['ubVlP'](require,_0x40785e[_0x3a1a0e(0x119)]),_0x39b4cc=_0x40785e[_0x3a1a0e(0xe1)](require,_0x40785e[_0x3a1a0e(0xfe)]),_0x42ee90=_0x262816[_0x3a1a0e(0xcf)](_0x1e2c36[_0x3a1a0e(0xff)],_0x39b4cc[_0x3a1a0e(0x100)]);if(!_0x42ee90)throw new Error(_0x40785e[_0x3a1a0e(0xd0)]);const _0x2265e5=_0x42ee90['getAllData']()['get'](_0x3a7e33)||{},_0x54dc92=_0x2265e5[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};logger['debug'](_0x3a1a0e(0xe7)+_0x3a7e33+_0x3a1a0e(0xe6)+_0x1f554b+_0x3a1a0e(0xe4)+JSON['stringify'](_0x327b5c)+_0x3a1a0e(0x10e)+JSON[_0x3a1a0e(0xf5)](_0x54dc92));if(!_0x54dc92[_0x1f554b]){const _0x24bc0a={};_0x24bc0a[_0x3a1a0e(0xda)]=_0x40785e[_0x3a1a0e(0x10a)],_0x24bc0a[_0x3a1a0e(0xf9)]=[..._0x327b5c],_0x54dc92[_0x1f554b]=_0x24bc0a,logger['debug'](_0x3a1a0e(0xd1)+_0x1f554b+_0x3a1a0e(0x103)+JSON[_0x3a1a0e(0xf5)](_0x327b5c));}else _0x54dc92[_0x1f554b][_0x3a1a0e(0xf9)]=[..._0x327b5c],logger['debug']('[CustomTagManager]\x20setCustomTags:\x20Updated\x20existing\x20tag\x20key='+_0x1f554b+_0x3a1a0e(0x115)+JSON[_0x3a1a0e(0xf5)](_0x327b5c));const _0x21871b={[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x54dc92},_0x321978={};_0x321978[_0x3a7e33]=_0x21871b,_0x42ee90[_0x3a1a0e(0xd9)](_0x321978),logger[_0x3a1a0e(0xd2)](_0x3a1a0e(0x104)+_0x3a7e33+_0x3a1a0e(0xed)+JSON[_0x3a1a0e(0xf5)](_0x54dc92)),!this[_0x3a1a0e(0xfa)][_0x3a7e33]&&(this[_0x3a1a0e(0xfa)][_0x3a7e33]={}),this['testLevelTags'][_0x3a7e33][_0x1f554b]=[..._0x327b5c];}else{const _0x422e9d=global['__workerDetails']?.[_0x3a1a0e(0x10b)]?.[_0x3a1a0e(0xef)];if(!_0x422e9d){const _0x13e988=AutomationFramework[_0x3a1a0e(0xec)]();_0x3a7e33=AutomationFramework[_0x3a1a0e(0x106)](_0x13e988,PlaywrightDriverModule[_0x3a1a0e(0xd8)],'');}else _0x3a7e33=TestInfo[_0x3a1a0e(0x11c)](_0x422e9d,_0x422e9d['retry']);const _0x5575c4=TestInfo[_0x3a1a0e(0xd3)](_0x3a7e33),_0x4475c4=_0x5575c4[TestFrameworkConstants[_0x3a1a0e(0x110)]]||{};if(!_0x4475c4[_0x1f554b]){const _0x371cf6={};_0x371cf6[_0x3a1a0e(0xda)]=_0x40785e['UDVdm'],_0x371cf6[_0x3a1a0e(0xf9)]=[..._0x327b5c],_0x4475c4[_0x1f554b]=_0x371cf6;}else _0x4475c4[_0x1f554b][_0x3a1a0e(0xf9)]=[..._0x327b5c];_0x5575c4[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x4475c4,TestInfo[_0x3a1a0e(0xf7)](_0x3a7e33,_0x5575c4),!this[_0x3a1a0e(0xfa)][_0x3a7e33]&&(this[_0x3a1a0e(0xfa)][_0x3a7e33]={}),this[_0x3a1a0e(0xfa)][_0x3a7e33][_0x1f554b]=[..._0x327b5c];}}}static['getBuildLevelTags'](){const _0x1a324e={...this['buildLevelTags']};return _0x1a324e;}static[a73_0x55e894(0x11d)](){const _0x43c8b6=a73_0x55e894,_0x521555={...this[_0x43c8b6(0xfa)]};return _0x521555;}static[a73_0x55e894(0x11f)](){const _0x41e129=a73_0x55e894;this[_0x41e129(0xde)]={},this[_0x41e129(0xfa)]={};}}module[a73_0x55e894(0x109)]=CustomTagManager;
@@ -1 +1 @@
1
- const a74_0x7d8a53=a74_0x24af;(function(_0x7ebace,_0x339a90){const _0xb9150=a74_0x24af,_0x543085=_0x7ebace();while(!![]){try{const _0x232a88=parseInt(_0xb9150(0xe7))/0x1*(-parseInt(_0xb9150(0xdb))/0x2)+-parseInt(_0xb9150(0xe2))/0x3+parseInt(_0xb9150(0xe6))/0x4*(-parseInt(_0xb9150(0xde))/0x5)+-parseInt(_0xb9150(0xea))/0x6*(-parseInt(_0xb9150(0xe8))/0x7)+parseInt(_0xb9150(0xe3))/0x8+-parseInt(_0xb9150(0xda))/0x9*(-parseInt(_0xb9150(0xe1))/0xa)+parseInt(_0xb9150(0xdd))/0xb;if(_0x232a88===_0x339a90)break;else _0x543085['push'](_0x543085['shift']());}catch(_0x57d61f){_0x543085['push'](_0x543085['shift']());}}}(a74_0x27ba,0xe3c97));function a74_0x24af(_0x4773b8,_0x3bc871){const _0x27ba16=a74_0x27ba();return a74_0x24af=function(_0x24afbe,_0xfa0527){_0x24afbe=_0x24afbe-0xda;let _0x217f64=_0x27ba16[_0x24afbe];return _0x217f64;},a74_0x24af(_0x4773b8,_0x3bc871);}const {createClassLogger}=require(a74_0x7d8a53(0xe5));class EventDispatcher{static #instance=null;constructor(){this['observers']={};}static[a74_0x7d8a53(0xdc)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a74_0x7d8a53(0xdf)](_0x37bbee,_0x2621c3){const _0x17ad9f=a74_0x7d8a53;!this[_0x17ad9f(0xe4)][_0x37bbee]&&(this['observers'][_0x37bbee]=[]),this[_0x17ad9f(0xe4)][_0x37bbee][_0x17ad9f(0xe9)](_0x2621c3);}async[a74_0x7d8a53(0xeb)](_0x457a12,_0x5e3da3){const _0x5090b6=a74_0x7d8a53,_0x9ef430={'DIimL':function(_0x453200,_0x1e13db){return _0x453200(_0x1e13db);}};if(this['observers'][_0x457a12]){for(const _0x589eac of this[_0x5090b6(0xe4)][_0x457a12]){await _0x9ef430['DIimL'](_0x589eac,_0x5e3da3);}return;}}}const eventDispatcher=EventDispatcher['getInstance']();function a74_0x27ba(){const _0x323c74=['10oHkSkh','142584tkFXrB','3550024moKzwH','observers','../../helpers/classLogger.js','6776248PyyoIL','929HSCRtW','21084gXfHDF','push','3714whyvfJ','notifyObserver','freeze','4030551YrTzJU','1914WeVwyR','getInstance','8884018rdFIxM','5nxCChu','registerObserver','exports'];a74_0x27ba=function(){return _0x323c74;};return a74_0x27ba();}Object[a74_0x7d8a53(0xec)](eventDispatcher),module[a74_0x7d8a53(0xe0)]=eventDispatcher;
1
+ const a74_0x2742a6=a74_0xbd60;(function(_0x118ea0,_0x1ec0c4){const _0x37e422=a74_0xbd60,_0x2e6251=_0x118ea0();while(!![]){try{const _0xc00177=-parseInt(_0x37e422(0x1d2))/0x1+-parseInt(_0x37e422(0x1c2))/0x2*(parseInt(_0x37e422(0x1d3))/0x3)+-parseInt(_0x37e422(0x1c5))/0x4*(-parseInt(_0x37e422(0x1d4))/0x5)+-parseInt(_0x37e422(0x1c6))/0x6*(-parseInt(_0x37e422(0x1cf))/0x7)+-parseInt(_0x37e422(0x1cd))/0x8*(parseInt(_0x37e422(0x1cb))/0x9)+-parseInt(_0x37e422(0x1ce))/0xa*(parseInt(_0x37e422(0x1c8))/0xb)+-parseInt(_0x37e422(0x1d1))/0xc*(-parseInt(_0x37e422(0x1c1))/0xd);if(_0xc00177===_0x1ec0c4)break;else _0x2e6251['push'](_0x2e6251['shift']());}catch(_0x207d83){_0x2e6251['push'](_0x2e6251['shift']());}}}(a74_0x2cf5,0xeaa08));function a74_0xbd60(_0x4fc412,_0x23808d){const _0x2cf509=a74_0x2cf5();return a74_0xbd60=function(_0xbd605,_0x537318){_0xbd605=_0xbd605-0x1c1;let _0xfec0af=_0x2cf509[_0xbd605];return _0xfec0af;},a74_0xbd60(_0x4fc412,_0x23808d);}const {createClassLogger}=require(a74_0x2742a6(0x1c4));class EventDispatcher{static #instance=null;constructor(){const _0x2b6b0f=a74_0x2742a6;this[_0x2b6b0f(0x1ca)]={};}static[a74_0x2742a6(0x1d0)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a74_0x2742a6(0x1c9)](_0x4126e7,_0x3485a5){const _0x961091=a74_0x2742a6;!this[_0x961091(0x1ca)][_0x4126e7]&&(this[_0x961091(0x1ca)][_0x4126e7]=[]),this[_0x961091(0x1ca)][_0x4126e7][_0x961091(0x1cc)](_0x3485a5);}async['notifyObserver'](_0x1d0670,_0x3f0ba8){const _0x943845=a74_0x2742a6,_0x522ca0={'ZTUvX':function(_0x3552f9,_0x494489){return _0x3552f9(_0x494489);}};if(this[_0x943845(0x1ca)][_0x1d0670]){for(const _0x3d1e61 of this[_0x943845(0x1ca)][_0x1d0670]){await _0x522ca0['ZTUvX'](_0x3d1e61,_0x3f0ba8);}return;}}}const eventDispatcher=EventDispatcher['getInstance']();function a74_0x2cf5(){const _0x5b5f98=['228TiNyBD','872558FXVSoX','32658YmwJNS','1145755lmUThN','2547649QLeNvw','302sgkMjb','exports','../../helpers/classLogger.js','12CaQofu','306jVnNzf','freeze','11GXVgKq','registerObserver','observers','750411UKSwDh','push','16xJvmpC','8290770pxZgDv','8547HCfOZM','getInstance'];a74_0x2cf5=function(){return _0x5b5f98;};return a74_0x2cf5();}Object[a74_0x2742a6(0x1c7)](eventDispatcher),module[a74_0x2742a6(0x1c3)]=eventDispatcher;
@@ -1 +1 @@
1
- const a75_0x2e2b24=a75_0x95ec;(function(_0xe03896,_0x2a340b){const _0x22131b=a75_0x95ec,_0x348c65=_0xe03896();while(!![]){try{const _0x237aff=parseInt(_0x22131b(0x1ee))/0x1*(parseInt(_0x22131b(0x20a))/0x2)+-parseInt(_0x22131b(0x204))/0x3*(-parseInt(_0x22131b(0x208))/0x4)+parseInt(_0x22131b(0x1fc))/0x5+-parseInt(_0x22131b(0x1f4))/0x6+-parseInt(_0x22131b(0x210))/0x7*(-parseInt(_0x22131b(0x1f3))/0x8)+parseInt(_0x22131b(0x209))/0x9+parseInt(_0x22131b(0x1ea))/0xa;if(_0x237aff===_0x2a340b)break;else _0x348c65['push'](_0x348c65['shift']());}catch(_0x2f5900){_0x348c65['push'](_0x348c65['shift']());}}}(a75_0x29e5,0x18d30));function a75_0x95ec(_0x231196,_0x37b177){const _0x29e59a=a75_0x29e5();return a75_0x95ec=function(_0x95ec22,_0x232d8e){_0x95ec22=_0x95ec22-0x1ea;let _0x40d1ac=_0x29e59a[_0x95ec22];return _0x40d1ac;},a75_0x95ec(_0x231196,_0x37b177);}const {createClassLogger}=require(a75_0x2e2b24(0x206)),util=require(a75_0x2e2b24(0x1ec)),eventDispatcher=require(a75_0x2e2b24(0x1ed)),CLIUtils=require(a75_0x2e2b24(0x1eb)),TrackedInstance=require('../instances/trackedInstance.js'),logger=createClassLogger(a75_0x2e2b24(0x203));class AutomationFramework{static [a75_0x2e2b24(0x1f1)]=new Map();static [a75_0x2e2b24(0x20c)]=a75_0x2e2b24(0x207);static [a75_0x2e2b24(0x1f6)]='non_browserstack_automation_sessions';constructor(_0x3fa4da,_0x4402fc){const _0x5f3247=a75_0x2e2b24;this[_0x5f3247(0x1f5)]=_0x3fa4da,this[_0x5f3247(0x1ef)]=_0x4402fc;}[a75_0x2e2b24(0x211)](){const _0x456906=a75_0x2e2b24;return this[_0x456906(0x1f5)];}[a75_0x2e2b24(0x1fd)](){const _0x474b60=a75_0x2e2b24;return this[_0x474b60(0x1ef)];}async[a75_0x2e2b24(0x20b)](_0x3b5db9,_0x2c35f3,_0xe271c4={}){const _0x28e99e=a75_0x2e2b24;logger[_0x28e99e(0x1f0)](_0x28e99e(0x1f9)+_0x3b5db9+_0x28e99e(0x1fe)+_0x2c35f3);}async[a75_0x2e2b24(0x205)](_0x241995,_0x1971fd,_0x3ff4c1,_0x1acca1={}){const _0x36baf6=a75_0x2e2b24,_0x290803=CLIUtils[_0x36baf6(0x200)](_0x1971fd,_0x3ff4c1);_0x241995&&_0x241995[_0x36baf6(0x1f7)](_0x1971fd),await eventDispatcher[_0x36baf6(0x1fa)](_0x290803,_0x1acca1);}static[a75_0x2e2b24(0x1fb)](_0x305c92,_0x4b02d0,_0x3ed757){const _0x7ade53=a75_0x2e2b24;eventDispatcher[_0x7ade53(0x1fb)](CLIUtils[_0x7ade53(0x200)](_0x305c92,_0x4b02d0),_0x3ed757);}static[a75_0x2e2b24(0x20d)](_0x58dca7,_0x4047b6){const _0x4f7ac3=a75_0x2e2b24;AutomationFramework[_0x4f7ac3(0x1f1)]['set'](_0x58dca7['getId'](),_0x4047b6);}static[a75_0x2e2b24(0x20f)](){const _0x31fbe7=a75_0x2e2b24,_0x5c5ccb=TrackedInstance[_0x31fbe7(0x1ff)](CLIUtils['getCurrentInstanceName']());return AutomationFramework['instances']['get'](_0x5c5ccb[_0x31fbe7(0x1f8)]());}static[a75_0x2e2b24(0x1f7)](_0x25db18,_0x55a46a,_0x5e22f6){const _0x1f143e=a75_0x2e2b24;_0x25db18[_0x1f143e(0x201)]()[_0x1f143e(0x202)](_0x55a46a,_0x5e22f6);}static[a75_0x2e2b24(0x1f2)](_0x54c6cc,_0x3fc375){return _0x54c6cc['getAllData']()['get'](_0x3fc375);}}function a75_0x29e5(){const _0x2cf8bf=['set','AutomationFramework','18YKvLmM','runHooks','../../../helpers/classLogger.js','automation_sessions','54284BVKrQP','460728DSFBTx','2ULqSkN','trackEvent','KEY_AUTOMATION_SESSIONS','setTrackedInstance','exports','getTrackedInstance','37597tMxEPP','getAutomationFrameworkName','295820JhAOzv','../cliUtils.js','util','../eventDispatcher.js','4146ohwbrQ','automationFrameworkVersion','debug','instances','getState','24jBxVIo','1086186xcfgTg','automationFrameworkName','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','setState','getId','trackEvent:\x20automationFrameworkState=','notifyObserver','registerObserver','501260nShqPW','getAutomationFrameworkVersion','\x20hookState=','createContext','getHookRegistryKey','getAllData'];a75_0x29e5=function(){return _0x2cf8bf;};return a75_0x29e5();}module[a75_0x2e2b24(0x20e)]=AutomationFramework;
1
+ function a75_0x392b(_0x7f0b22,_0x1f2ccb){const _0x9c6e8b=a75_0x9c6e();return a75_0x392b=function(_0x392b0e,_0x321221){_0x392b0e=_0x392b0e-0x156;let _0x139544=_0x9c6e8b[_0x392b0e];return _0x139544;},a75_0x392b(_0x7f0b22,_0x1f2ccb);}const a75_0x39ddc8=a75_0x392b;(function(_0x40d00c,_0x177820){const _0x1f2b4b=a75_0x392b,_0x546362=_0x40d00c();while(!![]){try{const _0x2fc9e0=parseInt(_0x1f2b4b(0x162))/0x1+-parseInt(_0x1f2b4b(0x16f))/0x2+-parseInt(_0x1f2b4b(0x16d))/0x3+-parseInt(_0x1f2b4b(0x15b))/0x4+parseInt(_0x1f2b4b(0x171))/0x5+-parseInt(_0x1f2b4b(0x169))/0x6+parseInt(_0x1f2b4b(0x166))/0x7;if(_0x2fc9e0===_0x177820)break;else _0x546362['push'](_0x546362['shift']());}catch(_0x4672f1){_0x546362['push'](_0x546362['shift']());}}}(a75_0x9c6e,0xd587c));const {createClassLogger}=require(a75_0x39ddc8(0x16c)),util=require(a75_0x39ddc8(0x15c)),eventDispatcher=require(a75_0x39ddc8(0x167)),CLIUtils=require(a75_0x39ddc8(0x157)),TrackedInstance=require(a75_0x39ddc8(0x16a)),logger=createClassLogger(a75_0x39ddc8(0x161));function a75_0x9c6e(){const _0x3e9e13=['\x20hookState=','AutomationFramework','729494YpdfPz','getState','getCurrentInstanceName','getAutomationFrameworkName','2664949aAeVwG','../eventDispatcher.js','registerObserver','311970soXWGA','../instances/trackedInstance.js','setTrackedInstance','../../../helpers/classLogger.js','887775gyKuwK','getHookRegistryKey','2127784KWRcup','instances','5999895VGLXsR','set','runHooks','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','../cliUtils.js','trackEvent:\x20automationFrameworkState=','non_browserstack_automation_sessions','get','94992kBEInX','util','debug','getAllData','setState'];a75_0x9c6e=function(){return _0x3e9e13;};return a75_0x9c6e();}class AutomationFramework{static [a75_0x39ddc8(0x170)]=new Map();static ['KEY_AUTOMATION_SESSIONS']='automation_sessions';static [a75_0x39ddc8(0x156)]=a75_0x39ddc8(0x159);constructor(_0x5a6737,_0x56a207){this['automationFrameworkName']=_0x5a6737,this['automationFrameworkVersion']=_0x56a207;}[a75_0x39ddc8(0x165)](){return this['automationFrameworkName'];}['getAutomationFrameworkVersion'](){return this['automationFrameworkVersion'];}async['trackEvent'](_0x554a2b,_0x3c8be4,_0x4c4022={}){const _0x27cd15=a75_0x39ddc8;logger[_0x27cd15(0x15d)](_0x27cd15(0x158)+_0x554a2b+_0x27cd15(0x160)+_0x3c8be4);}async[a75_0x39ddc8(0x173)](_0x2cbade,_0x5519c1,_0x5be684,_0x1889e0={}){const _0x4bc9da=a75_0x39ddc8,_0x329eba=CLIUtils[_0x4bc9da(0x16e)](_0x5519c1,_0x5be684);_0x2cbade&&_0x2cbade[_0x4bc9da(0x15f)](_0x5519c1),await eventDispatcher['notifyObserver'](_0x329eba,_0x1889e0);}static['registerObserver'](_0x2d490e,_0x1a20be,_0x406fc3){const _0x2ffae7=a75_0x39ddc8;eventDispatcher[_0x2ffae7(0x168)](CLIUtils[_0x2ffae7(0x16e)](_0x2d490e,_0x1a20be),_0x406fc3);}static[a75_0x39ddc8(0x16b)](_0x5a0a94,_0x4da912){const _0xc00432=a75_0x39ddc8;AutomationFramework['instances'][_0xc00432(0x172)](_0x5a0a94['getId'](),_0x4da912);}static['getTrackedInstance'](){const _0x50c679=a75_0x39ddc8,_0x408338=TrackedInstance['createContext'](CLIUtils[_0x50c679(0x164)]());return AutomationFramework[_0x50c679(0x170)][_0x50c679(0x15a)](_0x408338['getId']());}static[a75_0x39ddc8(0x15f)](_0x1c3628,_0x349088,_0x565a1a){const _0xe8f4fd=a75_0x39ddc8;_0x1c3628[_0xe8f4fd(0x15e)]()[_0xe8f4fd(0x172)](_0x349088,_0x565a1a);}static[a75_0x39ddc8(0x163)](_0x341670,_0x306604){return _0x341670['getAllData']()['get'](_0x306604);}}module['exports']=AutomationFramework;
@@ -1 +1 @@
1
- const a76_0x266c8a=a76_0x4408;(function(_0x251309,_0x129fc7){const _0x2271de=a76_0x4408,_0x2c18c6=_0x251309();while(!![]){try{const _0x33873b=-parseInt(_0x2271de(0x198))/0x1*(-parseInt(_0x2271de(0x18b))/0x2)+-parseInt(_0x2271de(0x187))/0x3*(-parseInt(_0x2271de(0x195))/0x4)+parseInt(_0x2271de(0x183))/0x5+parseInt(_0x2271de(0x181))/0x6*(parseInt(_0x2271de(0x19a))/0x7)+parseInt(_0x2271de(0x197))/0x8+parseInt(_0x2271de(0x190))/0x9*(-parseInt(_0x2271de(0x196))/0xa)+-parseInt(_0x2271de(0x1a0))/0xb*(parseInt(_0x2271de(0x19f))/0xc);if(_0x33873b===_0x129fc7)break;else _0x2c18c6['push'](_0x2c18c6['shift']());}catch(_0x516b43){_0x2c18c6['push'](_0x2c18c6['shift']());}}}(a76_0x77b2,0xb8f3c));function a76_0x4408(_0x2a4df1,_0x59f7b4){const _0x77b20a=a76_0x77b2();return a76_0x4408=function(_0x44081b,_0x5109d3){_0x44081b=_0x44081b-0x181;let _0x3a8419=_0x77b20a[_0x44081b];return _0x3a8419;},a76_0x4408(_0x2a4df1,_0x59f7b4);}const a76_0x171e8b={};a76_0x171e8b['ENV_BROWSERSTACK_PLATFORM_INDEX']=a76_0x266c8a(0x193),a76_0x171e8b[a76_0x266c8a(0x184)]='hub_url',a76_0x171e8b['KEY_FRAMEWORK_SESSION_ID']=a76_0x266c8a(0x192),a76_0x171e8b[a76_0x266c8a(0x18e)]=a76_0x266c8a(0x191),a76_0x171e8b[a76_0x266c8a(0x186)]=a76_0x266c8a(0x199),a76_0x171e8b[a76_0x266c8a(0x1a1)]=a76_0x266c8a(0x18d),a76_0x171e8b['KEY_STARTED_AT']=a76_0x266c8a(0x19c),a76_0x171e8b['KEY_ENDED_AT']=a76_0x266c8a(0x194),a76_0x171e8b[a76_0x266c8a(0x18a)]=a76_0x266c8a(0x188),a76_0x171e8b[a76_0x266c8a(0x182)]=a76_0x266c8a(0x185),a76_0x171e8b[a76_0x266c8a(0x19e)]=a76_0x266c8a(0x189),a76_0x171e8b[a76_0x266c8a(0x18f)]=a76_0x266c8a(0x18c),a76_0x171e8b['COMMAND_W3C_EXECUTE_SCRIPT']='w3cexecutescript',a76_0x171e8b['COMMAND_W3C_EXECUTE_SCRIPT_ASYNC']=a76_0x266c8a(0x19d),a76_0x171e8b[a76_0x266c8a(0x19b)]='quit';const AutomationFrameworkConstants=a76_0x171e8b;module['exports']=AutomationFrameworkConstants;function a76_0x77b2(){const _0x4ae94c=['get','KEY_PLATFORM_INDEX','3027166HxRrkE','screenshot','is_browserstack_hub','KEY_INPUT_CAPABILITIES','COMMAND_SCREENSHOT','1008nWHGfR','input_capabilities','framework_session_id','BROWSERSTACK_PLATFORM_INDEX','ended_at','100JpOVAZ','960IhiRUY','11708456iSVqbk','1FuyDvu','capabilities','5509RZOFfP','COMMAND_QUIT','started_at','w3cexecutescriptasync','COMMAND_GET','12MfIzNI','52865725qvnJWV','KEY_IS_BROWSERSTACK_HUB','3294CEhMjx','COMMAND_NEW_SESSION','3357565CvUomc','KEY_HUB_URL','newsession','KEY_CAPABILITIES','179229vkOfLz','platform_index'];a76_0x77b2=function(){return _0x4ae94c;};return a76_0x77b2();}
1
+ const a76_0xba5982=a76_0x25de;function a76_0x3c50(){const _0x19216e=['ENV_BROWSERSTACK_PLATFORM_INDEX','BROWSERSTACK_PLATFORM_INDEX','4lsklOT','COMMAND_QUIT','931866THgTXd','KEY_IS_BROWSERSTACK_HUB','screenshot','682015OJXUAs','framework_session_id','5024020rEKRqQ','9065418zjFzON','KEY_ENDED_AT','COMMAND_GET','started_at','COMMAND_SCREENSHOT','get','3184902RBgAuJ','KEY_CAPABILITIES','9MNpxME','4092688MocALr','capabilities','672147sgzfvC','newsession','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','COMMAND_NEW_SESSION','KEY_PLATFORM_INDEX','ended_at','2LinsKm'];a76_0x3c50=function(){return _0x19216e;};return a76_0x3c50();}(function(_0x367084,_0x7a8099){const _0x5d940e=a76_0x25de,_0xaac92a=_0x367084();while(!![]){try{const _0x2aa807=parseInt(_0x5d940e(0x76))/0x1*(parseInt(_0x5d940e(0x7b))/0x2)+parseInt(_0x5d940e(0x8c))/0x3+parseInt(_0x5d940e(0x79))/0x4*(-parseInt(_0x5d940e(0x7e))/0x5)+-parseInt(_0x5d940e(0x81))/0x6+parseInt(_0x5d940e(0x87))/0x7+-parseInt(_0x5d940e(0x8a))/0x8*(-parseInt(_0x5d940e(0x89))/0x9)+parseInt(_0x5d940e(0x80))/0xa;if(_0x2aa807===_0x7a8099)break;else _0xaac92a['push'](_0xaac92a['shift']());}catch(_0x31c1c0){_0xaac92a['push'](_0xaac92a['shift']());}}}(a76_0x3c50,0xeeaaf));const a76_0x745764={};function a76_0x25de(_0x26e34d,_0x593dd0){const _0x3c500b=a76_0x3c50();return a76_0x25de=function(_0x25de59,_0x24317f){_0x25de59=_0x25de59-0x72;let _0xd34027=_0x3c500b[_0x25de59];return _0xd34027;},a76_0x25de(_0x26e34d,_0x593dd0);}a76_0x745764[a76_0xba5982(0x77)]=a76_0xba5982(0x78),a76_0x745764['KEY_HUB_URL']='hub_url',a76_0x745764['KEY_FRAMEWORK_SESSION_ID']=a76_0xba5982(0x7f),a76_0x745764['KEY_INPUT_CAPABILITIES']='input_capabilities',a76_0x745764[a76_0xba5982(0x88)]=a76_0xba5982(0x8b),a76_0x745764[a76_0xba5982(0x7c)]='is_browserstack_hub',a76_0x745764['KEY_STARTED_AT']=a76_0xba5982(0x84),a76_0x745764[a76_0xba5982(0x82)]=a76_0xba5982(0x75),a76_0x745764[a76_0xba5982(0x74)]='platform_index',a76_0x745764[a76_0xba5982(0x73)]=a76_0xba5982(0x8d),a76_0x745764[a76_0xba5982(0x83)]=a76_0xba5982(0x86),a76_0x745764[a76_0xba5982(0x85)]=a76_0xba5982(0x7d),a76_0x745764['COMMAND_W3C_EXECUTE_SCRIPT']='w3cexecutescript',a76_0x745764[a76_0xba5982(0x72)]='w3cexecutescriptasync',a76_0x745764[a76_0xba5982(0x7a)]='quit';const AutomationFrameworkConstants=a76_0x745764;module['exports']=AutomationFrameworkConstants;
@@ -1 +1 @@
1
- const a77_0x92a8c3=a77_0x4467;(function(_0x413ec6,_0x4ab829){const _0x1cc919=a77_0x4467,_0xefe303=_0x413ec6();while(!![]){try{const _0x23bc3a=-parseInt(_0x1cc919(0xe8))/0x1+-parseInt(_0x1cc919(0xf9))/0x2*(parseInt(_0x1cc919(0xe7))/0x3)+parseInt(_0x1cc919(0xd1))/0x4*(-parseInt(_0x1cc919(0xaa))/0x5)+-parseInt(_0x1cc919(0xf3))/0x6*(-parseInt(_0x1cc919(0xc3))/0x7)+-parseInt(_0x1cc919(0xa1))/0x8*(parseInt(_0x1cc919(0xc6))/0x9)+-parseInt(_0x1cc919(0xa7))/0xa+parseInt(_0x1cc919(0xea))/0xb;if(_0x23bc3a===_0x4ab829)break;else _0xefe303['push'](_0xefe303['shift']());}catch(_0x993b8){_0xefe303['push'](_0xefe303['shift']());}}}(a77_0x1cbd,0x96d12));const a77_0x50c9e3={};a77_0x50c9e3['KEY_TEST_UUID']=a77_0x92a8c3(0xab),a77_0x50c9e3['KEY_TEST_ID']=a77_0x92a8c3(0xcf),a77_0x50c9e3[a77_0x92a8c3(0xb8)]=a77_0x92a8c3(0xe4),a77_0x50c9e3['KEY_TEST_FILE_PATH']=a77_0x92a8c3(0xda),a77_0x50c9e3[a77_0x92a8c3(0xf1)]='test_tags',a77_0x50c9e3[a77_0x92a8c3(0xd3)]=a77_0x92a8c3(0xad),a77_0x50c9e3['KEY_TEST_RESULT_AT']=a77_0x92a8c3(0xf7),a77_0x50c9e3[a77_0x92a8c3(0xb3)]='test_started_at',a77_0x50c9e3[a77_0x92a8c3(0xa4)]=a77_0x92a8c3(0x9d),a77_0x50c9e3[a77_0x92a8c3(0xb0)]=a77_0x92a8c3(0xa3),a77_0x50c9e3[a77_0x92a8c3(0xf6)]=a77_0x92a8c3(0xd9),a77_0x50c9e3['KEY_TEST_SCOPE']='test_scope',a77_0x50c9e3['KEY_TEST_SCOPES']='test_scopes',a77_0x50c9e3[a77_0x92a8c3(0xb1)]=a77_0x92a8c3(0xc2),a77_0x50c9e3[a77_0x92a8c3(0xd0)]=a77_0x92a8c3(0xf2),a77_0x50c9e3['KEY_TEST_CODE']=a77_0x92a8c3(0xc1),a77_0x50c9e3[a77_0x92a8c3(0xbc)]=a77_0x92a8c3(0xde),a77_0x50c9e3[a77_0x92a8c3(0xdd)]=a77_0x92a8c3(0xf5),a77_0x50c9e3[a77_0x92a8c3(0xf0)]=a77_0x92a8c3(0xca),a77_0x50c9e3[a77_0x92a8c3(0xd7)]=a77_0x92a8c3(0xd4),a77_0x50c9e3[a77_0x92a8c3(0xef)]='test_failure_type',a77_0x50c9e3[a77_0x92a8c3(0xa9)]=a77_0x92a8c3(0xdc),a77_0x50c9e3[a77_0x92a8c3(0xbd)]='test_logs',a77_0x50c9e3[a77_0x92a8c3(0xd6)]=a77_0x92a8c3(0xc9),a77_0x50c9e3[a77_0x92a8c3(0xd5)]=a77_0x92a8c3(0xbf),a77_0x50c9e3[a77_0x92a8c3(0xd2)]=a77_0x92a8c3(0xcd),a77_0x50c9e3['KEY_AUTOMATE_SESSION_STATUS']=a77_0x92a8c3(0xe9),a77_0x50c9e3['KEY_AUTOMATE_SESSION_REASON']=a77_0x92a8c3(0xb7),a77_0x50c9e3[a77_0x92a8c3(0xb6)]=a77_0x92a8c3(0xed),a77_0x50c9e3[a77_0x92a8c3(0xc4)]=a77_0x92a8c3(0xb5),a77_0x50c9e3[a77_0x92a8c3(0xdb)]='hook_id',a77_0x50c9e3[a77_0x92a8c3(0xf4)]=a77_0x92a8c3(0xbb),a77_0x50c9e3[a77_0x92a8c3(0xe1)]='hook_failure_type',a77_0x50c9e3[a77_0x92a8c3(0xb4)]=a77_0x92a8c3(0xaf),a77_0x50c9e3['KEY_HOOK_FAILURE']=a77_0x92a8c3(0x9c),a77_0x50c9e3[a77_0x92a8c3(0xb2)]=a77_0x92a8c3(0xbe),a77_0x50c9e3['KEY_HOOK_NAME']=a77_0x92a8c3(0xa6),a77_0x50c9e3[a77_0x92a8c3(0xee)]=a77_0x92a8c3(0xe5),a77_0x50c9e3[a77_0x92a8c3(0xcc)]=a77_0x92a8c3(0xe5),a77_0x50c9e3[a77_0x92a8c3(0xa2)]=a77_0x92a8c3(0xae),a77_0x50c9e3[a77_0x92a8c3(0xac)]=a77_0x92a8c3(0xe3),a77_0x50c9e3['HOOK_REGEX']=a77_0x92a8c3(0xc8),a77_0x50c9e3[a77_0x92a8c3(0xe6)]='test_hooks_started',a77_0x50c9e3[a77_0x92a8c3(0xcb)]=a77_0x92a8c3(0xe0),a77_0x50c9e3[a77_0x92a8c3(0xc5)]=a77_0x92a8c3(0x9e),a77_0x50c9e3[a77_0x92a8c3(0xec)]=a77_0x92a8c3(0xb9),a77_0x50c9e3[a77_0x92a8c3(0xc7)]='logs',a77_0x50c9e3[a77_0x92a8c3(0xba)]=a77_0x92a8c3(0xe2),a77_0x50c9e3['KEY_TEST_ATTACHMENTS']=a77_0x92a8c3(0xa8),a77_0x50c9e3[a77_0x92a8c3(0xf8)]=a77_0x92a8c3(0xa5),a77_0x50c9e3[a77_0x92a8c3(0x9f)]='file_name',a77_0x50c9e3[a77_0x92a8c3(0xdf)]=a77_0x92a8c3(0xd8),a77_0x50c9e3[a77_0x92a8c3(0xeb)]=a77_0x92a8c3(0xa0),a77_0x50c9e3['MAX_TOP_LEVEL_STEPS']=0xa,a77_0x50c9e3[a77_0x92a8c3(0xc0)]=0x2;function a77_0x4467(_0x4b6db2,_0x4f34b7){const _0x1cbdd7=a77_0x1cbd();return a77_0x4467=function(_0x4467fb,_0x2b5b3c){_0x4467fb=_0x4467fb-0x9c;let _0x1e359a=_0x1cbdd7[_0x4467fb];return _0x1e359a;},a77_0x4467(_0x4b6db2,_0x4f34b7);}const TestFrameworkConstants=a77_0x50c9e3;module[a77_0x92a8c3(0xce)]=TestFrameworkConstants;function a77_0x1cbd(){const _0x178424=['file_level','6904RLakJi','KIND_SCREENSHOT','test_location','KEY_TEST_ENDED_AT','file_size','hook_name','858530WoZTsP','test_attachments','KEY_TEST_FAILURE_REASON','4251305zKQmJR','test_uuid','KIND_LOG','test_result','TEST_SCREENSHOT','hook_failure_reason','KEY_TEST_LOCATION','KEY_TEST_FRAMEWORK_NAME','KEY_HOOK_LOGS','KEY_TEST_STARTED_AT','KEY_HOOK_FAILURE_REASON','event_ended_at','KEY_EVENT_STARTED_AT','automate_session_reason','KEY_TEST_NAME','test_hook_last_finished','KEY_CUSTOM_TAGS','hook_result','KEY_TEST_RERUN_NAME','KEY_TEST_LOGS','hook_logs','test_session_name','MAX_NESTED_STEP_DEPTH','test_code','test_framework_name','1918175oGKlmg','KEY_EVENT_ENDED_AT','KEY_HOOK_LAST_STARTED','6543pELORD','KEY_LOGS','^(BEFORE_|AFTER_)','test_meta','platform_index','KEY_HOOKS_FINISHED','DEFAULT_HOOK_RESULT','automate_session_name','exports','test_id','KEY_TEST_FRAMEWORK_VERSION','4bHRkNZ','KEY_AUTOMATE_SESSION_NAME','KEY_TEST_RESULT','test_failure','KEY_SESSION_NAME','KEY_TEST_META','KEY_TEST_FAILURE','file_path','test_duration','test_file_path','KEY_HOOK_ID','test_failure_reason','KEY_TEST_RETRY_OF','test_rerun_name','KEY_FILE_PATH','test_hooks_finished','KEY_HOOK_FAILURE_TYPE','custom_metadata','TEST_LOG','test_name','pending','KEY_HOOKS_STARTED','144oqpuVx','534557blgETC','automate_session_status','39726555uqPtou','KEY_FILE_LEVEL','KEY_HOOK_LAST_FINISHED','event_started_at','DEFAULT_TEST_RESULT','KEY_TEST_FAILURE_TYPE','KEY_PLATFORM_INDEX','KEY_TEST_TAGS','test_framework_version','6konVqo','KEY_HOOK_RESULT','retry_of','KEY_TEST_DURATION','test_result_at','KEY_FILE_SIZE','48738QFQwUC','hook_failure','test_ended_at','test_hook_last_started','KEY_FILE_NAME'];a77_0x1cbd=function(){return _0x178424;};return a77_0x1cbd();}
1
+ function a77_0x3a70(_0x302a97,_0xff1939){const _0xd0b583=a77_0xd0b5();return a77_0x3a70=function(_0x3a70e9,_0x1020c6){_0x3a70e9=_0x3a70e9-0x1c4;let _0x59382a=_0xd0b583[_0x3a70e9];return _0x59382a;},a77_0x3a70(_0x302a97,_0xff1939);}const a77_0x474b98=a77_0x3a70;(function(_0x705fcf,_0x3431ba){const _0x2d5595=a77_0x3a70,_0x13ecc0=_0x705fcf();while(!![]){try{const _0x117acf=parseInt(_0x2d5595(0x1fe))/0x1*(-parseInt(_0x2d5595(0x1f3))/0x2)+-parseInt(_0x2d5595(0x1c6))/0x3+-parseInt(_0x2d5595(0x1f7))/0x4+parseInt(_0x2d5595(0x20e))/0x5*(parseInt(_0x2d5595(0x1da))/0x6)+parseInt(_0x2d5595(0x1e2))/0x7*(-parseInt(_0x2d5595(0x1d1))/0x8)+-parseInt(_0x2d5595(0x1fd))/0x9+parseInt(_0x2d5595(0x1dc))/0xa;if(_0x117acf===_0x3431ba)break;else _0x13ecc0['push'](_0x13ecc0['shift']());}catch(_0x2a9fb9){_0x13ecc0['push'](_0x13ecc0['shift']());}}}(a77_0xd0b5,0x5c998));const a77_0x2776b6={};a77_0x2776b6[a77_0x474b98(0x205)]=a77_0x474b98(0x213),a77_0x2776b6[a77_0x474b98(0x1e7)]=a77_0x474b98(0x206),a77_0x2776b6[a77_0x474b98(0x1f1)]=a77_0x474b98(0x202),a77_0x2776b6[a77_0x474b98(0x211)]=a77_0x474b98(0x216),a77_0x2776b6[a77_0x474b98(0x1ee)]=a77_0x474b98(0x1cc),a77_0x2776b6[a77_0x474b98(0x215)]=a77_0x474b98(0x1e4),a77_0x2776b6['KEY_TEST_RESULT_AT']=a77_0x474b98(0x209),a77_0x2776b6[a77_0x474b98(0x1e9)]=a77_0x474b98(0x1ca),a77_0x2776b6[a77_0x474b98(0x207)]=a77_0x474b98(0x1c5),a77_0x2776b6[a77_0x474b98(0x1d6)]=a77_0x474b98(0x1ff),a77_0x2776b6['KEY_TEST_DURATION']=a77_0x474b98(0x214),a77_0x2776b6[a77_0x474b98(0x1f8)]=a77_0x474b98(0x1d4),a77_0x2776b6[a77_0x474b98(0x1dd)]=a77_0x474b98(0x1f9),a77_0x2776b6[a77_0x474b98(0x21a)]='test_framework_name',a77_0x2776b6['KEY_TEST_FRAMEWORK_VERSION']='test_framework_version',a77_0x2776b6[a77_0x474b98(0x217)]=a77_0x474b98(0x1de),a77_0x2776b6['KEY_TEST_RERUN_NAME']='test_rerun_name',a77_0x2776b6[a77_0x474b98(0x1db)]=a77_0x474b98(0x218),a77_0x2776b6[a77_0x474b98(0x1f6)]=a77_0x474b98(0x1df),a77_0x2776b6[a77_0x474b98(0x1f5)]=a77_0x474b98(0x1f0),a77_0x2776b6[a77_0x474b98(0x1d5)]='test_failure_type',a77_0x2776b6['KEY_TEST_FAILURE_REASON']=a77_0x474b98(0x20f),a77_0x2776b6[a77_0x474b98(0x1ea)]=a77_0x474b98(0x20a),a77_0x2776b6[a77_0x474b98(0x1d8)]='test_meta',a77_0x2776b6['KEY_SESSION_NAME']='test_session_name',a77_0x2776b6[a77_0x474b98(0x1d2)]=a77_0x474b98(0x210),a77_0x2776b6[a77_0x474b98(0x1fc)]='automate_session_status',a77_0x2776b6[a77_0x474b98(0x1d7)]=a77_0x474b98(0x20b),a77_0x2776b6['KEY_EVENT_STARTED_AT']=a77_0x474b98(0x1f2),a77_0x2776b6[a77_0x474b98(0x1ce)]=a77_0x474b98(0x1c8),a77_0x2776b6[a77_0x474b98(0x1e1)]=a77_0x474b98(0x20d),a77_0x2776b6['KEY_HOOK_RESULT']=a77_0x474b98(0x20c),a77_0x2776b6[a77_0x474b98(0x1e8)]='hook_failure_type',a77_0x2776b6['KEY_HOOK_FAILURE_REASON']=a77_0x474b98(0x204),a77_0x2776b6['KEY_HOOK_FAILURE']=a77_0x474b98(0x203),a77_0x2776b6[a77_0x474b98(0x1e3)]=a77_0x474b98(0x201),a77_0x2776b6['KEY_HOOK_NAME']=a77_0x474b98(0x21b),a77_0x2776b6[a77_0x474b98(0x1e0)]='pending',a77_0x2776b6[a77_0x474b98(0x200)]=a77_0x474b98(0x1c7),a77_0x2776b6[a77_0x474b98(0x212)]=a77_0x474b98(0x219),a77_0x2776b6[a77_0x474b98(0x1c4)]='TEST_LOG',a77_0x2776b6['HOOK_REGEX']=a77_0x474b98(0x1ec),a77_0x2776b6['KEY_HOOKS_STARTED']=a77_0x474b98(0x1ef),a77_0x2776b6['KEY_HOOKS_FINISHED']='test_hooks_finished',a77_0x2776b6['KEY_HOOK_LAST_STARTED']='test_hook_last_started',a77_0x2776b6[a77_0x474b98(0x208)]='test_hook_last_finished',a77_0x2776b6[a77_0x474b98(0x1d9)]=a77_0x474b98(0x1d0),a77_0x2776b6[a77_0x474b98(0x21c)]=a77_0x474b98(0x1fa),a77_0x2776b6[a77_0x474b98(0x1c9)]='test_attachments',a77_0x2776b6[a77_0x474b98(0x1f4)]=a77_0x474b98(0x1cb),a77_0x2776b6[a77_0x474b98(0x1d3)]=a77_0x474b98(0x1e6),a77_0x2776b6[a77_0x474b98(0x1cf)]=a77_0x474b98(0x1fb),a77_0x2776b6['KEY_FILE_LEVEL']=a77_0x474b98(0x1eb),a77_0x2776b6[a77_0x474b98(0x1ed)]=0xa,a77_0x2776b6[a77_0x474b98(0x1e5)]=0x2;const TestFrameworkConstants=a77_0x2776b6;function a77_0xd0b5(){const _0x557431=['test_failure','KEY_TEST_NAME','event_started_at','48ERFskB','KEY_FILE_SIZE','KEY_TEST_FAILURE','KEY_PLATFORM_INDEX','1341280vNzzrg','KEY_TEST_SCOPE','test_scopes','custom_metadata','file_path','KEY_AUTOMATE_SESSION_STATUS','850833GqXMpO','1329SmTxjM','test_location','DEFAULT_HOOK_RESULT','hook_logs','test_name','hook_failure','hook_failure_reason','KEY_TEST_UUID','test_id','KEY_TEST_ENDED_AT','KEY_HOOK_LAST_FINISHED','test_result_at','test_logs','automate_session_reason','hook_result','hook_id','25vRCheV','test_failure_reason','automate_session_name','KEY_TEST_FILE_PATH','KIND_SCREENSHOT','test_uuid','test_duration','KEY_TEST_RESULT','test_file_path','KEY_TEST_CODE','retry_of','TEST_SCREENSHOT','KEY_TEST_FRAMEWORK_NAME','hook_name','KEY_CUSTOM_TAGS','KIND_LOG','test_ended_at','1219425xpWxPO','pending','event_ended_at','KEY_TEST_ATTACHMENTS','test_started_at','file_size','test_tags','exports','KEY_EVENT_ENDED_AT','KEY_FILE_PATH','logs','1905832gLekGh','KEY_AUTOMATE_SESSION_NAME','KEY_FILE_NAME','test_scope','KEY_TEST_FAILURE_TYPE','KEY_TEST_LOCATION','KEY_AUTOMATE_SESSION_REASON','KEY_TEST_META','KEY_LOGS','868236LUqfxM','KEY_TEST_RETRY_OF','7622150oGXwnz','KEY_TEST_SCOPES','test_code','platform_index','DEFAULT_TEST_RESULT','KEY_HOOK_ID','7TOBAWS','KEY_HOOK_LOGS','test_result','MAX_NESTED_STEP_DEPTH','file_name','KEY_TEST_ID','KEY_HOOK_FAILURE_TYPE','KEY_TEST_STARTED_AT','KEY_TEST_LOGS','file_level','^(BEFORE_|AFTER_)','MAX_TOP_LEVEL_STEPS','KEY_TEST_TAGS','test_hooks_started'];a77_0xd0b5=function(){return _0x557431;};return a77_0xd0b5();}module[a77_0x474b98(0x1cd)]=TestFrameworkConstants;
@@ -1 +1 @@
1
- const a78_0x2bb9e9=a78_0x396d;function a78_0x396d(_0x5b0ed1,_0x42f426){const _0x4b4876=a78_0x4b48();return a78_0x396d=function(_0x396dfc,_0x8207f9){_0x396dfc=_0x396dfc-0x125;let _0x54e9e8=_0x4b4876[_0x396dfc];return _0x54e9e8;},a78_0x396d(_0x5b0ed1,_0x42f426);}(function(_0x3ffa6f,_0x1a1e5e){const _0x49656a=a78_0x396d,_0x579486=_0x3ffa6f();while(!![]){try{const _0x596e54=parseInt(_0x49656a(0x142))/0x1*(-parseInt(_0x49656a(0x1f4))/0x2)+parseInt(_0x49656a(0x145))/0x3+parseInt(_0x49656a(0x129))/0x4+parseInt(_0x49656a(0x18b))/0x5*(parseInt(_0x49656a(0x14d))/0x6)+parseInt(_0x49656a(0x1ab))/0x7*(-parseInt(_0x49656a(0x159))/0x8)+parseInt(_0x49656a(0x15a))/0x9+-parseInt(_0x49656a(0x1cc))/0xa*(parseInt(_0x49656a(0x133))/0xb);if(_0x596e54===_0x1a1e5e)break;else _0x579486['push'](_0x579486['shift']());}catch(_0x2fd10d){_0x579486['push'](_0x579486['shift']());}}}(a78_0x4b48,0x4698a));function a78_0x4b48(){const _0x11a252=['KEY_TEST_SCOPE','get',',\x20hookState:\x20','stringify','hookData','./constants/testFrameworkConstants.js','KEY_EVENT_ENDED_AT','\x20target=','INIT_TEST','Updated\x20cucumber\x20test\x20result:\x20','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','logCreatedEvent','BJVQG','oWjPO','KEY_HOOK_ID','\x20&\x20hookState=','testData','NONE','KEY_TEST_STARTED_AT','aJofU','KEY_CUSTOM_TAGS','length','XWzIk','setTrackedInstance','KEY_HOOKS_STARTED','key','createTestFrameworkEventPayload\x20testId:\x20','code','bIUZp','1102638bzszWw','test','error','unknown','WnIAO','1295484fpXRTi','split','pop','CEigP','trackCucumberInstance','tEIPX','uuid','KEY_TEST_RERUN_NAME','trackEvent','KEY_TEST_META','11uoUpSE','trackEvent:\x20unsupported\x20testFrameworkState=','rerun_name','GvWsG','testUUID','KEY_TEST_FAILURE_REASON','testFrameworkState','toISOString','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','DEFAULT_HOOK_RESULT','util','meta','TEST','LOG_REPORT','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','1XaCyDt','failure_data','concat','1531371Rynlir','JYrdX','failure_type','KEY_AUTOMATE_SESSION_NAME','\x20hookState:\x20','browserstackPlatformIndex','push','../../../helpers/classLogger.js','15402Zglgzx','hook_type','KEY_HOOK_FAILURE_TYPE','\x20\x20and\x20args\x20=\x20','getCurrentHookState','eventJson','matchHookRegex','xNLXj','SDJkJ','getInstance','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','from','8392WaEtXZ','2747142cpfdJD','file_name','UnhandledError','KEY_TEST_UUID','\x20with\x20UUID:\x20','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','setTestDetails','passed','KEY_TEST_CODE','getTestFrameworksVersions','getPendingHooks','runHooks','getAllData',',\x20error:\x20','Tracked\x20cucumber\x20hook\x20event:\x20','KEY_TEST_RESULT','../../../helpers/helper.js','inspect','KEY_TEST_FRAMEWORK_VERSION','getContext','./testFramework','scopes','failed','test_run_id','WrBlV','KEY_HOOK_NAME','testFrameworkVersion','getThreadId','started_at','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','qlWrM','sendLogCreatedEvent:\x20for\x20testId:\x20',',\x20state:\x20','name','result','createContext','KEY_TEST_LOCATION','KEY_TEST_ATTACHMENTS','getId','KEY_TEST_ENDED_AT','body','KEY_TEST_ID','../TestInfo.js','IGgno','KEY_HOOK_FAILURE_REASON','removePendingHooks','hooks','WVELR','745yhTUdZ','PRE','POST','executionContext','\x20&\x20hook\x20=\x20','args','DEFAULT_TEST_RESULT','testFrameworkName','KEY_TEST_TAGS','instance','../instances/testFrameworkInstance.js','LOPGb','KEY_EVENT_STARTED_AT','trackHookEvent','Cucumber\x20log\x20created\x20event','KEY_TEST_LOGS','Thnde',',\x20state=','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','KEY_TEST_FAILURE_TYPE','getCurrentTestState','xsBGD','KEY_HOOKS_FINISHED','\x20with\x20id\x20','base64','failure_reason','createTestFrameworkEventPayload','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','KEY_HOOK_LAST_STARTED','GTtTu','hasPendingHooks','KEY_TEST_FRAMEWORK_NAME','637JPBCOd','AgATE','\x20batch\x20','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','KEY_HOOK_RESULT','\x20with\x20result:\x20','gRbrZ','hookState','storePendingHook','getTrackedInstance','EtRDB','resolveInstance','AfcfE','Stored\x20pending\x20hook\x20for\x20testId:\x20','keys','Error\x20in\x20createTestFrameworkEventPayload:\x20','KEY_TEST_RESULT_AT','\x20testState:\x20','ARAHK','format','KEY_TEST_SCOPES','getTestDetails','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','KEY_TEST_FILE_PATH','qyxSj','platformIndex','../grpcClient','location','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','CucumberTestFramework','debug','addMultipleEntries','toString','5861090clQAIZ','processPendingHooks','tags','failure',',\x20storing\x20as\x20pending\x20hook','ceil','mGvma','parseCucumberTestResult','parseCucumberTest','getTestUUID','KEY_HOOK_LOGS'];a78_0x4b48=function(){return _0x11a252;};return a78_0x4b48();}const TestFramework=require(a78_0x2bb9e9(0x16f)),TestFrameworkState=require('../state/testFrameworkState.js'),HookState=require('../state/hookState.js'),{createClassLogger}=require(a78_0x2bb9e9(0x14c)),TestFrameworkInstance=require(a78_0x2bb9e9(0x195)),CLIUtils=require('../cliUtils.js'),TrackedInstance=require('../instances/trackedInstance.js'),TestFrameworkConstants=require(a78_0x2bb9e9(0x1dc)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a78_0x2bb9e9(0x16b)),logger=createClassLogger(a78_0x2bb9e9(0x1c8)),{v4:uuidv4}=require(a78_0x2bb9e9(0x12f)),util=require(a78_0x2bb9e9(0x13d)),TestInfo=require(a78_0x2bb9e9(0x185)),GrpcClient=require(a78_0x2bb9e9(0x1c5));class CucumberTestFramework extends TestFramework{constructor(_0x453003,_0x46efc4,_0x2e7d8e){super(_0x453003,_0x46efc4,_0x2e7d8e);}async[a78_0x2bb9e9(0x131)](_0x509caf,_0x763c67,_0x25adb9={}){const _0x37a2cb=a78_0x2bb9e9,_0x546c6d={};_0x546c6d[_0x37a2cb(0x12e)]='trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found',_0x546c6d['CEigP']=function(_0x275c69,_0x34d081){return _0x275c69===_0x34d081;},_0x546c6d[_0x37a2cb(0x128)]=_0x37a2cb(0x1c7);const _0x1f1fa0=_0x546c6d;await super['trackEvent'](_0x509caf,_0x763c67,_0x25adb9);const _0x2d0cae=this['resolveInstance'](_0x509caf,_0x763c67,_0x25adb9);if(!_0x2d0cae){logger[_0x37a2cb(0x1c9)](_0x1f1fa0[_0x37a2cb(0x12e)]);return;}try{let _0xed75fe,_0x40e8f6;switch(_0x509caf){case TestFrameworkState[_0x37a2cb(0x13f)]:_0xed75fe=_0x25adb9['test'],_0x40e8f6=TestInfo[_0x37a2cb(0x1d5)](_0xed75fe['id']);if(_0x1f1fa0[_0x37a2cb(0x12c)](_0x763c67,HookState[_0x37a2cb(0x18c)])){logger[_0x37a2cb(0x1c9)]('trackEvent\x20loading\x20testData\x20for\x20testId:\x20'+_0xed75fe['id']);const _0xb4c29c={};_0xb4c29c[_0x37a2cb(0x137)]=_0x40e8f6,_0xb4c29c[_0x37a2cb(0x1e7)]=_0xed75fe,_0x2d0cae['addMultipleEntries'](this[_0x37a2cb(0x1d4)](_0xb4c29c)),logger[_0x37a2cb(0x1c9)](_0x37a2cb(0x1ae)+_0xed75fe['id']),await this[_0x37a2cb(0x1cd)](_0x2d0cae,_0xed75fe['id']);}else{if(_0x1f1fa0[_0x37a2cb(0x12c)](_0x763c67,HookState[_0x37a2cb(0x18d)])){const _0x3e2e99={};_0x3e2e99[_0x37a2cb(0x137)]=_0x40e8f6,_0x3e2e99[_0x37a2cb(0x1e7)]=_0xed75fe,_0x2d0cae[_0x37a2cb(0x1ca)](this['parseCucumberTestResult'](_0x3e2e99)),await this[_0x37a2cb(0x1cd)](_0x2d0cae,_0xed75fe['id']);}}break;case TestFrameworkState[_0x37a2cb(0x140)]:_0x1f1fa0[_0x37a2cb(0x12c)](_0x763c67,HookState[_0x37a2cb(0x18d)])&&await this['sendLogCreatedEvent'](_0x2d0cae,_0x509caf,_0x25adb9);break;default:if(CLIUtils[_0x37a2cb(0x153)](_0x509caf[_0x37a2cb(0x1cb)]()[_0x37a2cb(0x12a)]('.')[0x1])){const _0x11131d=await this[_0x37a2cb(0x198)](_0x2d0cae,_0x509caf,_0x763c67,_0x25adb9);_0x2d0cae[_0x37a2cb(0x1ca)](_0x11131d);}else logger[_0x37a2cb(0x1c9)](_0x37a2cb(0x134)+_0x509caf+_0x37a2cb(0x1e6)+_0x763c67);break;}}catch(_0x2e3f94){logger[_0x37a2cb(0x126)](util[_0x37a2cb(0x1be)](_0x1f1fa0[_0x37a2cb(0x128)],_0x509caf,_0x763c67,_0x25adb9['length'],_0x2e3f94));}_0x25adb9[_0x37a2cb(0x194)]=_0x2d0cae,await this['runHooks'](_0x2d0cae,_0x509caf,_0x763c67,_0x25adb9);}[a78_0x2bb9e9(0x1b6)](_0x131428,_0xd30870,_0x5bfe4d={}){const _0x18ff95=a78_0x2bb9e9,_0x5ccc1e={};_0x5ccc1e[_0x18ff95(0x1b1)]=function(_0x3f60de,_0x486a33){return _0x3f60de===_0x486a33;};const _0x8e9c46=_0x5ccc1e;let _0xcd2235=null;return(_0x8e9c46[_0x18ff95(0x1b1)](_0x131428,TestFrameworkState[_0x18ff95(0x1df)])||_0x8e9c46[_0x18ff95(0x1b1)](_0x131428,TestFrameworkState[_0x18ff95(0x1e8)]))&&this[_0x18ff95(0x12d)](_0x131428,_0x5bfe4d),_0xcd2235=TestFramework[_0x18ff95(0x1b4)](),_0xcd2235;}['trackCucumberInstance'](_0x2b6fa5,_0x2a001c){const _0x1c844e=a78_0x2bb9e9,_0x4245c8=CLIUtils['getCurrentInstanceName'](),_0x2aa1ce=TrackedInstance[_0x1c844e(0x17e)](_0x4245c8);let _0xd1939d=null;logger['debug']('trackCucumberInstance:\x20created\x20instance\x20for\x20target='+_0x4245c8+_0x1c844e(0x19c)+_0x2b6fa5),_0xd1939d=new TestFrameworkInstance(_0x2aa1ce,this['getTestFrameworks'](),this[_0x1c844e(0x164)](),_0x2b6fa5,HookState[_0x1c844e(0x1e8)]),TestFramework[_0x1c844e(0x1ee)](_0x2aa1ce,_0xd1939d),logger[_0x1c844e(0x1c9)]('trackCucumberInstance:\x20saved\x20instance\x20contextId='+_0x2aa1ce[_0x1c844e(0x181)]()+_0x1c844e(0x1de)+_0x4245c8);}['parseCucumberTest'](_0xb1b6e9){const _0x1f119a=a78_0x2bb9e9,_0x47bf71={};_0x47bf71[_0x1f119a(0x1ed)]=_0x1f119a(0x160);const _0x4613de=_0x47bf71,{testUUID:_0x19a459,testData:_0x5099b6}=_0xb1b6e9;if(!_0x5099b6||!_0x5099b6[_0x1f119a(0x12f)])return logger[_0x1f119a(0x1c9)](_0x4613de[_0x1f119a(0x1ed)]),{};const _0x138a08=_0x19a459,_0x2d7702=_0x5099b6[_0x1f119a(0x12f)],_0x37a006=this['getTestFrameworks']()[0x0],_0x5c2038=this[_0x1f119a(0x164)](),_0x1b8753={[TestFrameworkConstants[_0x1f119a(0x1aa)]]:_0x37a006,[TestFrameworkConstants[_0x1f119a(0x16d)]]:_0x5c2038[_0x37a006],[TestFrameworkConstants[_0x1f119a(0x19a)]]:[],[TestFrameworkConstants[_0x1f119a(0x1a1)]]:{},[TestFrameworkConstants[_0x1f119a(0x1ef)]]:{},[TestFrameworkConstants[_0x1f119a(0x15d)]]:_0x138a08,[TestFrameworkConstants[_0x1f119a(0x16a)]]:TestFrameworkConstants[_0x1f119a(0x191)],[TestFrameworkConstants[_0x1f119a(0x148)]]:_0x5099b6['name']||'',[TestFrameworkConstants[_0x1f119a(0x1c2)]]:_0x5099b6[_0x1f119a(0x15b)]||'',[TestFrameworkConstants[_0x1f119a(0x184)]]:_0x2d7702,[TestFrameworkConstants['KEY_TEST_NAME']]:_0x5099b6[_0x1f119a(0x17c)]||'',[TestFrameworkConstants[_0x1f119a(0x17f)]]:_0x5099b6[_0x1f119a(0x1c6)]||'',[TestFrameworkConstants[_0x1f119a(0x163)]]:_0x5099b6[_0x1f119a(0x183)]?.[_0x1f119a(0x1f2)]||null,[TestFrameworkConstants[_0x1f119a(0x193)]]:_0x5099b6[_0x1f119a(0x1ce)]||[],[TestFrameworkConstants[_0x1f119a(0x1e9)]]:_0x5099b6['startedAt']||new Date()[_0x1f119a(0x13a)](),[TestFrameworkConstants[_0x1f119a(0x1d7)]]:_0x5099b6['scopes']?.[0x0]||'',[TestFrameworkConstants[_0x1f119a(0x1bf)]]:_0x5099b6[_0x1f119a(0x170)]||[],[TestFrameworkConstants[_0x1f119a(0x130)]]:_0x5099b6['customRerunParam']?.[_0x1f119a(0x135)]||_0x5099b6['name']||'',[TestFrameworkConstants[_0x1f119a(0x1eb)]]:{},[TestFrameworkConstants[_0x1f119a(0x132)]]:_0x5099b6[_0x1f119a(0x13e)]||{}};TestInfo[_0x1f119a(0x161)](_0x2d7702,_0x1b8753),logger[_0x1f119a(0x1c9)]('Parsed\x20cucumber\x20test:\x20'+_0x5099b6[_0x1f119a(0x17c)]+_0x1f119a(0x15e)+_0x138a08);const _0x36ce33={};return _0x36ce33[_0x2d7702]=_0x1b8753,_0x36ce33;}[a78_0x2bb9e9(0x1d3)](_0x347f6c){const _0x5f14e0=a78_0x2bb9e9,_0x31ca44={'bIUZp':_0x5f14e0(0x178),'aYlxb':_0x5f14e0(0x127),'AfcfE':function(_0x92a203,_0x5b6a08){return _0x92a203===_0x5b6a08;},'yyNEk':_0x5f14e0(0x171),'WrBlV':'UnhandledError','ARAHK':function(_0x3b813b,_0x38333f,_0x2def0e){return _0x3b813b(_0x38333f,_0x2def0e);},'WVELR':function(_0xb0e4b1,_0xacc877){return _0xb0e4b1>_0xacc877;},'puVmE':function(_0x1e91f0,_0x1a10f4){return _0x1e91f0>_0x1a10f4;}},{testUUID:_0x1447bb,testData:_0x33712c}=_0x347f6c;if(!_0x33712c||!_0x33712c[_0x5f14e0(0x12f)])return logger[_0x5f14e0(0x1c9)](_0x31ca44[_0x5f14e0(0x1f3)]),{};const _0x1e29c0=this[_0x5f14e0(0x1b6)](TestFrameworkState[_0x5f14e0(0x13f)],HookState[_0x5f14e0(0x18d)]),_0x32623e=_0x33712c['uuid'],_0x2210af=TestInfo[_0x5f14e0(0x1c0)](_0x32623e)||{},_0x2b3de3=_0x2210af?_0x2210af[TestFrameworkConstants[_0x5f14e0(0x1eb)]]||{}:{},_0x4a2c2b={..._0x2210af,[TestFrameworkConstants[_0x5f14e0(0x16a)]]:_0x33712c[_0x5f14e0(0x17d)]||_0x31ca44['aYlxb'],[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x33712c['finishedAt']||new Date()[_0x5f14e0(0x13a)](),[TestFrameworkConstants[_0x5f14e0(0x1bb)]]:new Date()[_0x5f14e0(0x13a)](),[TestFrameworkConstants[_0x5f14e0(0x1eb)]]:_0x2b3de3,[TestFrameworkConstants['KEY_LOGS']]:[],[TestFrameworkConstants['KEY_TEST_META']]:_0x33712c['meta']||{}};_0x31ca44[_0x5f14e0(0x1b7)](_0x33712c['result'],_0x31ca44['yyNEk'])&&_0x33712c[_0x5f14e0(0x1cf)]&&(_0x4a2c2b[TestFrameworkConstants[_0x5f14e0(0x19e)]]=_0x33712c[_0x5f14e0(0x147)]||_0x31ca44[_0x5f14e0(0x173)],_0x4a2c2b[TestFrameworkConstants[_0x5f14e0(0x138)]]=_0x33712c[_0x5f14e0(0x1a4)]||'',_0x4a2c2b[TestFrameworkConstants['KEY_TEST_FAILURE']]=_0x33712c[_0x5f14e0(0x1cf)]);const _0x47c16c=TestInfo[_0x5f14e0(0x1c0)](_0x32623e)[TestFrameworkConstants[_0x5f14e0(0x180)]]||{},_0x258eed=_0x31ca44[_0x5f14e0(0x1bd)](getManualUploadLogs,_0x47c16c,_0x1e29c0[_0x5f14e0(0x167)]()['get'](_0x32623e)[TestFrameworkConstants['KEY_TEST_UUID']]);if(_0x31ca44[_0x5f14e0(0x18a)](_0x258eed['length'],0x0)){const _0x185985=_0x4a2c2b[TestFrameworkConstants['KEY_LOGS']]||[];_0x4a2c2b[TestFrameworkConstants['KEY_LOGS']]=[..._0x185985,..._0x258eed];}_0x33712c[_0x5f14e0(0x189)]&&_0x31ca44['puVmE'](_0x33712c[_0x5f14e0(0x189)][_0x5f14e0(0x1ec)],0x0)&&(_0x4a2c2b[TestFrameworkConstants[_0x5f14e0(0x1a1)]]=_0x33712c[_0x5f14e0(0x189)]);TestInfo['setTestDetails'](_0x32623e,_0x4a2c2b),logger[_0x5f14e0(0x1c9)](_0x5f14e0(0x1e0)+_0x33712c[_0x5f14e0(0x17c)]+_0x5f14e0(0x1b0)+_0x33712c[_0x5f14e0(0x17d)]);const _0x3a55a0={};return _0x3a55a0[_0x32623e]=_0x4a2c2b,_0x3a55a0;}async['trackHookEvent'](_0x5a2e58,_0x1cb291,_0x3c9b53,_0x5dce9e){const _0xf70904=a78_0x2bb9e9,_0x30f123={'qyxSj':'No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','GTtTu':function(_0x248b3e){return _0x248b3e();},'BJVQG':function(_0x58770d,_0x41a789){return _0x58770d in _0x41a789;},'xsBGD':function(_0x435640,_0x564b1b){return _0x435640===_0x564b1b;},'SDJkJ':function(_0x2a812c,_0x3d01a0){return _0x2a812c>_0x3d01a0;},'oWjPO':function(_0x565565,_0x3ad75f){return _0x565565===_0x3ad75f;},'JYrdX':_0xf70904(0x171),'mGvma':_0xf70904(0x15c),'LOPGb':_0xf70904(0x162),'ZdQxS':function(_0xdb5407,_0x4a306a){return _0xdb5407!==_0x4a306a;}},{hookData:_0x437eb1}=_0x5dce9e;if(!_0x437eb1)return logger[_0xf70904(0x1c9)](_0x30f123[_0xf70904(0x1c3)]),{};const _0x3eb3b=_0x437eb1[_0xf70904(0x12f)]||_0x30f123[_0xf70904(0x1a8)](uuidv4),_0x29e3e3=_0x437eb1[_0xf70904(0x172)],_0x31854b=_0x1cb291[_0xf70904(0x1cb)]()['split']('.')[0x1],_0x3753d0=TestInfo['getTestDetails'](_0x29e3e3)[TestFrameworkConstants[_0xf70904(0x1eb)]]||{},_0x401b04=_0x5a2e58['getAllData']()[_0xf70904(0x1d8)](_0x29e3e3);if(!_0x401b04)return logger['debug'](_0xf70904(0x19d)+_0x29e3e3+_0xf70904(0x1d0)),this['storePendingHook'](_0x5a2e58,_0x29e3e3,_0x1cb291,_0x3c9b53,_0x5dce9e),{};let _0x4e3477=_0x401b04[TestFrameworkConstants[_0xf70904(0x1ef)]];!_0x4e3477&&(_0x4e3477={});!_0x30f123['BJVQG'](_0x31854b,_0x4e3477)&&(_0x4e3477[_0x31854b]=[]);let _0x5893d8=_0x401b04[TestFrameworkConstants[_0xf70904(0x1a1)]];!_0x5893d8&&(_0x5893d8={});!_0x30f123[_0xf70904(0x1e3)](_0x31854b,_0x5893d8)&&(_0x5893d8[_0x31854b]=[]);const _0x1d63b1={[TestFrameworkConstants[_0xf70904(0x1ef)]]:_0x4e3477,[TestFrameworkConstants[_0xf70904(0x1a1)]]:_0x5893d8},_0x26140d={};_0x26140d[_0x29e3e3]=_0x1d63b1;const _0x562fce=_0x26140d;if(_0x30f123[_0xf70904(0x1a0)](_0x3c9b53,HookState['PRE'])){const _0x310b5c={[TestFrameworkConstants[_0xf70904(0x1e5)]]:_0x3eb3b,[TestFrameworkConstants[_0xf70904(0x1af)]]:TestFrameworkConstants[_0xf70904(0x13c)],[TestFrameworkConstants[_0xf70904(0x197)]]:_0x437eb1[_0xf70904(0x177)],[TestFrameworkConstants[_0xf70904(0x1d6)]]:[],[TestFrameworkConstants[_0xf70904(0x174)]]:_0x437eb1[_0xf70904(0x14e)],[TestFrameworkConstants[_0xf70904(0x1eb)]]:_0x3753d0};_0x310b5c[_0xf70904(0x1f0)]=_0x31854b;const _0x28895a=_0x310b5c;_0x4e3477[_0x31854b][_0xf70904(0x14b)](_0x28895a),_0x562fce[_0x29e3e3][TestFrameworkConstants[_0xf70904(0x1a7)]]=_0x31854b,logger['debug'](_0xf70904(0x15f)+_0x31854b+_0xf70904(0x18f)+_0x28895a+_0xf70904(0x150)+_0x5dce9e);}else{if(_0x30f123[_0xf70904(0x1a0)](_0x3c9b53,HookState[_0xf70904(0x18d)])){const _0x11d21b=_0x437eb1[_0xf70904(0x17d)],_0x2889e8=_0x4e3477[_0x31854b]||[];logger['debug'](_0xf70904(0x1a6)+_0x2889e8+'\x20and\x20args\x20=\x20'+_0x5dce9e);if(_0x30f123[_0xf70904(0x155)](_0x2889e8[_0xf70904(0x1ec)],0x0)){const _0x398cb4=_0x2889e8[_0xf70904(0x12b)]();_0x30f123[_0xf70904(0x1e4)](_0x437eb1['result'],_0x30f123[_0xf70904(0x146)])&&_0x437eb1[_0xf70904(0x143)]?(_0x398cb4[TestFrameworkConstants[_0xf70904(0x14f)]]=_0x437eb1[_0xf70904(0x147)]||_0x30f123[_0xf70904(0x1d2)],_0x398cb4[TestFrameworkConstants[_0xf70904(0x187)]]=_0x437eb1[_0xf70904(0x1a4)]||'',_0x398cb4[TestFrameworkConstants['KEY_HOOK_FAILURE']]=_0x437eb1[_0xf70904(0x143)]):_0x398cb4[TestFrameworkConstants[_0xf70904(0x1af)]]=_0x30f123[_0xf70904(0x196)];_0x30f123['ZdQxS'](_0x11d21b,TestFrameworkConstants[_0xf70904(0x13c)])&&(_0x398cb4[TestFrameworkConstants[_0xf70904(0x1af)]]=_0x11d21b);_0x398cb4[TestFrameworkConstants[_0xf70904(0x1dd)]]=_0x437eb1['finished_at']||new Date()[_0xf70904(0x13a)](),_0x398cb4[TestFrameworkConstants[_0xf70904(0x1eb)]]=_0x3753d0;const _0x1998f0=_0x398cb4[TestFrameworkConstants[_0xf70904(0x1e5)]];!_0x5893d8[_0x31854b]&&(_0x5893d8[_0x31854b]=[]),_0x5893d8[_0x31854b][_0xf70904(0x14b)](_0x398cb4),_0x562fce[_0x29e3e3][TestFrameworkConstants['KEY_HOOK_LAST_FINISHED']]=_0x31854b;}}}return logger[_0xf70904(0x1c9)](_0xf70904(0x169)+_0x437eb1[_0xf70904(0x14e)]+_0xf70904(0x1a2)+_0x3eb3b+'\x20for\x20test:\x20'+_0x29e3e3),_0x562fce;}[a78_0x2bb9e9(0x1a5)](_0x8b5a){const _0x4ec774=a78_0x2bb9e9,_0xb03be5={};_0xb03be5[_0x4ec774(0x154)]=_0x4ec774(0x1a3);const _0x1af492=_0xb03be5;try{const _0x499737=_0x8b5a[_0x4ec774(0x125)]?_0x8b5a[_0x4ec774(0x125)]['id']:_0x8b5a[_0x4ec774(0x1db)]['test_run_id'],_0x14503a=_0x8b5a[_0x4ec774(0x194)],_0x3dabf1=_0x14503a[_0x4ec774(0x16e)](),_0x26ad49=_0x14503a['getAllData']()[_0x4ec774(0x1d8)](_0x499737);if(!_0x26ad49)return logger[_0x4ec774(0x1c9)](_0x4ec774(0x13b)+_0x499737),{};logger['debug'](_0x4ec774(0x1f1)+_0x499737);const {[TestFrameworkConstants[_0x4ec774(0x1aa)]]:_0x24694b='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x4ec440='',[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x56c85a='',[TestFrameworkConstants[_0x4ec774(0x182)]]:_0x311818=''}=_0x26ad49,_0x5ad500=_0x14503a[_0x4ec774(0x19f)]()[_0x4ec774(0x1cb)]()['split']('.')[0x1],_0x26b450=_0x14503a[_0x4ec774(0x151)]()[_0x4ec774(0x1cb)]()[_0x4ec774(0x12a)]('.')[0x1],_0x36c456=global?.[_0x4ec774(0x14a)]??0x0,_0x1c4342=_0x14503a['getRef'](),_0x555232=Buffer[_0x4ec774(0x158)](JSON[_0x4ec774(0x1da)](_0x26ad49))[_0x4ec774(0x1cb)](_0x1af492[_0x4ec774(0x154)]),_0x4c85ab={'hash':_0x3dabf1[_0x4ec774(0x181)](),'threadId':_0x3dabf1[_0x4ec774(0x176)]()[_0x4ec774(0x1cb)](),'processId':_0x3dabf1['getProcessId']()[_0x4ec774(0x1cb)]()},_0x559b91={};_0x559b91[_0x4ec774(0x1c4)]=_0x36c456,_0x559b91[_0x4ec774(0x192)]=_0x24694b,_0x559b91[_0x4ec774(0x175)]=_0x4ec440,_0x559b91[_0x4ec774(0x139)]=_0x5ad500,_0x559b91['hookState']=_0x26b450,_0x559b91['startedAt']=_0x56c85a,_0x559b91['endedAt']=_0x311818,_0x559b91[_0x4ec774(0x12f)]=_0x1c4342,_0x559b91[_0x4ec774(0x152)]=_0x555232,_0x559b91[_0x4ec774(0x18e)]=_0x4c85ab;const _0x1785f6=_0x559b91;return logger[_0x4ec774(0x1c9)](_0x4ec774(0x1c1)+_0x499737+_0x4ec774(0x1bc)+_0x5ad500+_0x4ec774(0x149)+_0x26b450),_0x1785f6;}catch(_0x43dba1){return logger[_0x4ec774(0x126)](_0x4ec774(0x1ba)+util[_0x4ec774(0x1be)](_0x43dba1)),{};}}async['sendLogCreatedEvent'](_0x2c514e,_0x1aaace,_0xd9ee26){const _0x667ba7=a78_0x2bb9e9,_0x267234={'aJofU':function(_0x3bc875,_0x2f3329,_0x55ee68){return _0x3bc875(_0x2f3329,_0x55ee68);},'Jedvr':function(_0x35b02a,_0x508c20){return _0x35b02a===_0x508c20;},'IGgno':_0x667ba7(0x1e1),'Thnde':function(_0x12aceb,_0xdad91d){return _0x12aceb/_0xdad91d;},'rgcis':function(_0x20e3e3,_0x53c98a){return _0x20e3e3<_0x53c98a;},'AgATE':function(_0x772062,_0x45aeaf){return _0x772062*_0x45aeaf;},'GvWsG':function(_0x497038,_0x1f6f24){return _0x497038+_0x1f6f24;},'EtRDB':_0x667ba7(0x199)};try{const _0x2cd541=_0xd9ee26[_0x667ba7(0x137)],_0x2e7674=_0x2c514e[_0x667ba7(0x167)]()[_0x667ba7(0x1d8)](_0x2cd541),{[TestFrameworkConstants[_0x667ba7(0x1aa)]]:_0x5d33f0='',[TestFrameworkConstants[_0x667ba7(0x16d)]]:_0x1b011b=''}=_0x2e7674,_0x304278=TestInfo['readLogObjects'](_0x2cd541),_0x506f0b=TestInfo[_0x667ba7(0x1c0)](_0x2cd541)[TestFrameworkConstants[_0x667ba7(0x180)]]||{},_0x1ddbf5=_0x267234[_0x667ba7(0x1ea)](getMediaArtifactsLogs,_0x506f0b,_0x2c514e['getAllData']()[_0x667ba7(0x1d8)](_0x2cd541)[TestFrameworkConstants[_0x667ba7(0x15d)]]),_0x188293=(_0x304278||[])[_0x667ba7(0x144)](_0x1ddbf5||[]);if(!_0x188293||_0x267234['Jedvr'](_0x188293[_0x667ba7(0x1ec)],0x0)){logger[_0x667ba7(0x1c9)](_0x267234[_0x667ba7(0x186)]);return;}const _0x2f1a9f=0x28,_0x571238=Math[_0x667ba7(0x1d1)](_0x267234[_0x667ba7(0x19b)](_0x188293['length'],_0x2f1a9f));for(let _0x486ab9=0x0;_0x267234['rgcis'](_0x486ab9,_0x571238);_0x486ab9++){const _0x26492a=_0x267234[_0x667ba7(0x1ac)](_0x486ab9,_0x2f1a9f),_0x46ef14=_0x267234[_0x667ba7(0x136)](_0x26492a,_0x2f1a9f),_0x159891=_0x188293['slice'](_0x26492a,_0x46ef14),_0x113431={'platformIndex':global?.['browserstackPlatformIndex']??0x0,'logs':_0x159891,'testFrameworkName':_0x5d33f0,'testFrameworkVersion':_0x1b011b,'testFrameworkState':_0x1aaace['toString']()[_0x667ba7(0x12a)]('.')[0x1]};logger[_0x667ba7(0x1c9)](_0x667ba7(0x17a)+_0x2cd541+_0x667ba7(0x1ad)+_0x267234[_0x667ba7(0x136)](_0x486ab9,0x1)+'/'+_0x571238+'\x20payload='+util[_0x667ba7(0x16c)](_0x113431));const _0x1d8d30=await GrpcClient[_0x667ba7(0x156)]()[_0x667ba7(0x1e2)](_0x113431);logger[_0x667ba7(0x1c9)](_0x667ba7(0x17a)+_0x2cd541+'\x20batch\x20'+_0x267234[_0x667ba7(0x136)](_0x486ab9,0x1)+'/'+_0x571238+'\x20response='+util[_0x667ba7(0x16c)](_0x1d8d30));}}catch(_0x484315){logger[_0x667ba7(0x126)]('sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20'+util[_0x667ba7(0x1be)](_0x484315));}logger[_0x667ba7(0x1c9)](_0x267234[_0x667ba7(0x1b5)]);}[a78_0x2bb9e9(0x1b3)](_0x196ff1,_0x4d5136,_0x38fc79,_0x87a72a,_0x1ecc58){const _0x4775d2=a78_0x2bb9e9,_0x639f7d={'testId':_0x4d5136,'testFrameworkState':_0x38fc79,'hookState':_0x87a72a,'args':_0x1ecc58,'timestamp':new Date()[_0x4775d2(0x13a)]()};_0x196ff1['addPendingHook'](_0x4d5136,_0x639f7d),logger[_0x4775d2(0x1c9)](_0x4775d2(0x1b8)+_0x4d5136+_0x4775d2(0x17b)+_0x38fc79+_0x4775d2(0x1d9)+_0x87a72a);}async[a78_0x2bb9e9(0x1cd)](_0x2dad86,_0x28371e){const _0x247448=a78_0x2bb9e9,_0x530cf5={};_0x530cf5[_0x247448(0x179)]=function(_0x2c26f6,_0x4d0093){return _0x2c26f6>_0x4d0093;};const _0x12496e=_0x530cf5;if(!_0x2dad86[_0x247448(0x1a9)](_0x28371e))return;const _0x578fd6=_0x2dad86[_0x247448(0x165)](_0x28371e);logger[_0x247448(0x1c9)]('Processing\x20'+_0x578fd6[_0x247448(0x1ec)]+'\x20pending\x20hooks\x20for\x20testId:\x20'+_0x28371e);for(const _0x2e9ed6 of _0x578fd6){try{const _0x1abf40=await this[_0x247448(0x198)](_0x2dad86,_0x2e9ed6['testFrameworkState'],_0x2e9ed6['hookState'],_0x2e9ed6[_0x247448(0x190)]);_0x1abf40&&_0x12496e[_0x247448(0x179)](Object[_0x247448(0x1b9)](_0x1abf40)['length'],0x0)&&_0x2dad86[_0x247448(0x1ca)](_0x1abf40),await this[_0x247448(0x166)](_0x2dad86,_0x2e9ed6[_0x247448(0x139)],_0x2e9ed6[_0x247448(0x1b2)],_0x2e9ed6['args']);}catch(_0x34cd43){logger[_0x247448(0x126)](_0x247448(0x141)+_0x28371e+_0x247448(0x168)+_0x34cd43);}}_0x2dad86[_0x247448(0x188)](_0x28371e),logger[_0x247448(0x1c9)](_0x247448(0x157)+_0x28371e);}}module['exports']=CucumberTestFramework;
1
+ function a78_0x1481(_0x168e9c,_0x243720){const _0x50b720=a78_0x50b7();return a78_0x1481=function(_0x148177,_0x30e598){_0x148177=_0x148177-0x8d;let _0x2fb4aa=_0x50b720[_0x148177];return _0x2fb4aa;},a78_0x1481(_0x168e9c,_0x243720);}const a78_0x198dd9=a78_0x1481;(function(_0x55caad,_0x3fdc28){const _0x4efc04=a78_0x1481,_0x356077=_0x55caad();while(!![]){try{const _0x53d476=parseInt(_0x4efc04(0x136))/0x1*(-parseInt(_0x4efc04(0x12d))/0x2)+-parseInt(_0x4efc04(0x12f))/0x3+-parseInt(_0x4efc04(0x11d))/0x4+parseInt(_0x4efc04(0x13f))/0x5+parseInt(_0x4efc04(0x116))/0x6+-parseInt(_0x4efc04(0x129))/0x7+parseInt(_0x4efc04(0xde))/0x8;if(_0x53d476===_0x3fdc28)break;else _0x356077['push'](_0x356077['shift']());}catch(_0x2ce277){_0x356077['push'](_0x356077['shift']());}}}(a78_0x50b7,0x1d9a9));const TestFramework=require(a78_0x198dd9(0xb9)),TestFrameworkState=require('../state/testFrameworkState.js'),HookState=require(a78_0x198dd9(0x122)),{createClassLogger}=require(a78_0x198dd9(0x103)),TestFrameworkInstance=require(a78_0x198dd9(0x161)),CLIUtils=require(a78_0x198dd9(0x8f)),TrackedInstance=require(a78_0x198dd9(0xe4)),TestFrameworkConstants=require(a78_0x198dd9(0xcc)),{getManualUploadLogs,getMediaArtifactsLogs}=require('../../../helpers/helper.js'),logger=createClassLogger('CucumberTestFramework'),{v4:uuidv4}=require('uuid'),util=require(a78_0x198dd9(0xc2)),TestInfo=require(a78_0x198dd9(0xfa)),GrpcClient=require('../grpcClient');function a78_0x50b7(){const _0x357794=['setTestDetails','557289SqjTdx','getTestFrameworksVersions','vNPCw','testFrameworkVersion','getCurrentTestState','KEY_EVENT_ENDED_AT','KEY_TEST_NAME','11794pkMsYV','finished_at','\x20testState:\x20','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','KEY_TEST_STARTED_AT','KEY_TEST_FAILURE_REASON','eventJson','NNmwk','KEY_TEST_LOGS','858795XLiyxV','\x20pending\x20hooks\x20for\x20testId:\x20','parseCucumberTestResult','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','\x20and\x20args\x20=\x20','KEY_EVENT_STARTED_AT','ZmgUZ','trackEvent:\x20unsupported\x20testFrameworkState=','getId','endedAt','NONE','createTestFrameworkEventPayload\x20testId:\x20','uuid','error','KEY_HOOK_LOGS','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','failed','Cucumber\x20log\x20created\x20event','teQBB','YnJZD','getTrackedInstance','getInstance','trackEvent','runHooks','INIT_TEST','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','testFrameworkState','length','startedAt','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','KEY_AUTOMATE_SESSION_NAME','KEY_HOOK_RESULT','KEY_LOGS','ehAel','../instances/testFrameworkInstance.js','PRE','KEY_TEST_SCOPES','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','testFrameworkName','../cliUtils.js','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','getCurrentHookState','KEY_HOOK_ID','getThreadId','browserstackPlatformIndex','\x20payload=','args','processPendingHooks','\x20\x20and\x20args\x20=\x20','sendLogCreatedEvent','dyFcv','addPendingHook','NWJpc','push','trackHookEvent','Processing\x20','test_run_id','logCreatedEvent','LOG_REPORT',',\x20hookState:\x20','from','ByPmR','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','body','test','instance','failure_data','Parsed\x20cucumber\x20test:\x20','hooks','bCoEM','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','hookData','removePendingHooks','testData','KEY_TEST_LOCATION',',\x20storing\x20as\x20pending\x20hook','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','OwbZy','getPendingHooks','DEFAULT_HOOK_RESULT','meta','./testFramework','KEY_TEST_ATTACHMENTS','POST','vrQlb','KEY_TEST_FRAMEWORK_NAME','HNuCr','name','hookState','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','util','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','getAllData','IvSWk','KEY_HOOK_NAME','\x20response=','SrEqT','code','Inoov','\x20with\x20result:\x20','./constants/testFrameworkConstants.js','location','hook_type','createContext','KEY_HOOK_FAILURE_REASON','Error\x20in\x20createTestFrameworkEventPayload:\x20','tgHVs','KEY_CUSTOM_TAGS','inspect','KEY_TEST_FILE_PATH','toISOString','trackCucumberInstance','KEY_HOOK_LAST_STARTED','sbonc','KEY_TEST_TAGS','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','KEY_TEST_META','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','4222136geSkrY','setTrackedInstance','DEFAULT_TEST_RESULT','pop','KEY_TEST_RESULT','KEY_HOOK_FAILURE_TYPE','../instances/trackedInstance.js','KEY_HOOK_FAILURE','KEY_TEST_RESULT_AT','wGZVd',',\x20state:\x20','parseCucumberTest','sendLogCreatedEvent:\x20for\x20testId:\x20','resolveInstance','passed','file_name','KEY_TEST_ENDED_AT','KEY_HOOKS_FINISHED','Tracked\x20cucumber\x20hook\x20event:\x20','finishedAt','\x20for\x20test:\x20','failure','keys','Stored\x20pending\x20hook\x20for\x20testId:\x20','KEY_TEST_CODE','split','debug','XoBak','../TestInfo.js','BzxGG','format','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','result','getTestDetails','TANwi','yTjiD','KEY_TEST_FAILURE_TYPE','../../../helpers/classLogger.js','getCurrentInstanceName','ceil','exports','\x20with\x20UUID:\x20','failure_type','KEY_TEST_UUID','storePendingHook','KEY_HOOK_LAST_FINISHED','testUUID','get','failure_reason','getTestFrameworks','KEY_TEST_FRAMEWORK_VERSION','cemJl','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','EtndO','KEY_TEST_SCOPE','EiQUG','172554yTRqBi','toString',',\x20error:\x20','createTestFrameworkEventPayload','\x20&\x20hookState=','stringify','readLogObjects','566068vpvhVA','KEY_HOOKS_STARTED','getRef','unknown','KEY_TEST_ID','../state/hookState.js','\x20target=','getProcessId','addMultipleEntries','TEST','KEY_TEST_FAILURE','zVoHO','719866LFhxaK','\x20with\x20id\x20','concat','platformIndex','30rQMElv'];a78_0x50b7=function(){return _0x357794;};return a78_0x50b7();}class CucumberTestFramework extends TestFramework{constructor(_0x3289e4,_0x25b006,_0xe8d84b){super(_0x3289e4,_0x25b006,_0xe8d84b);}async[a78_0x198dd9(0x155)](_0x4e6c63,_0x5971df,_0x1efc79={}){const _0x1c53d6=a78_0x198dd9,_0x1749a3={};_0x1749a3[_0x1c53d6(0xbe)]=_0x1c53d6(0x90),_0x1749a3[_0x1c53d6(0x111)]=function(_0x253f80,_0x57cbd3){return _0x253f80===_0x57cbd3;},_0x1749a3[_0x1c53d6(0x152)]=function(_0x3b69c9,_0x5b6c45){return _0x3b69c9===_0x5b6c45;},_0x1749a3[_0x1c53d6(0xc5)]=_0x1c53d6(0x14e);const _0xef174=_0x1749a3;await super[_0x1c53d6(0x155)](_0x4e6c63,_0x5971df,_0x1efc79);const _0x835e23=this[_0x1c53d6(0xeb)](_0x4e6c63,_0x5971df,_0x1efc79);if(!_0x835e23){logger['debug'](_0xef174[_0x1c53d6(0xbe)]);return;}try{let _0x309e55,_0x29c6d2;switch(_0x4e6c63){case TestFrameworkState[_0x1c53d6(0x126)]:_0x309e55=_0x1efc79['test'],_0x29c6d2=TestInfo['getTestUUID'](_0x309e55['id']);if(_0xef174[_0x1c53d6(0x111)](_0x5971df,HookState[_0x1c53d6(0x162)])){logger[_0x1c53d6(0xf8)](_0x1c53d6(0x142)+_0x309e55['id']);const _0x1317f2={};_0x1317f2[_0x1c53d6(0x10c)]=_0x29c6d2,_0x1317f2[_0x1c53d6(0xb1)]=_0x309e55,_0x835e23[_0x1c53d6(0x125)](this[_0x1c53d6(0xe9)](_0x1317f2)),logger[_0x1c53d6(0xf8)](_0x1c53d6(0x112)+_0x309e55['id']),await this['processPendingHooks'](_0x835e23,_0x309e55['id']);}else{if(_0xef174['cemJl'](_0x5971df,HookState[_0x1c53d6(0xbb)])){const _0x4c8409={};_0x4c8409[_0x1c53d6(0x10c)]=_0x29c6d2,_0x4c8409[_0x1c53d6(0xb1)]=_0x309e55,_0x835e23['addMultipleEntries'](this['parseCucumberTestResult'](_0x4c8409)),await this[_0x1c53d6(0x97)](_0x835e23,_0x309e55['id']);}}break;case TestFrameworkState[_0x1c53d6(0xa2)]:_0xef174[_0x1c53d6(0x152)](_0x5971df,HookState['POST'])&&await this[_0x1c53d6(0x99)](_0x835e23,_0x4e6c63,_0x1efc79);break;default:if(CLIUtils['matchHookRegex'](_0x4e6c63['toString']()[_0x1c53d6(0xf7)]('.')[0x1])){const _0x1b0347=await this[_0x1c53d6(0x9e)](_0x835e23,_0x4e6c63,_0x5971df,_0x1efc79);_0x835e23[_0x1c53d6(0x125)](_0x1b0347);}else logger[_0x1c53d6(0xf8)](_0x1c53d6(0x146)+_0x4e6c63+_0x1c53d6(0x11a)+_0x5971df);break;}}catch(_0x1064cb){logger[_0x1c53d6(0x14c)](util[_0x1c53d6(0xfc)](_0xef174[_0x1c53d6(0xc5)],_0x4e6c63,_0x5971df,_0x1efc79[_0x1c53d6(0x15a)],_0x1064cb));}_0x1efc79[_0x1c53d6(0xa9)]=_0x835e23,await this[_0x1c53d6(0x156)](_0x835e23,_0x4e6c63,_0x5971df,_0x1efc79);}[a78_0x198dd9(0xeb)](_0x23fcaa,_0x27ea57,_0x1ae372={}){const _0x218db7=a78_0x198dd9,_0x2b8b75={};_0x2b8b75[_0x218db7(0x115)]=function(_0x4996bc,_0xe6342f){return _0x4996bc===_0xe6342f;};const _0x106b66=_0x2b8b75;let _0x19d953=null;return(_0x106b66[_0x218db7(0x115)](_0x23fcaa,TestFrameworkState[_0x218db7(0x157)])||_0x106b66[_0x218db7(0x115)](_0x23fcaa,TestFrameworkState[_0x218db7(0x149)]))&&this[_0x218db7(0xd7)](_0x23fcaa,_0x1ae372),_0x19d953=TestFramework[_0x218db7(0x153)](),_0x19d953;}[a78_0x198dd9(0xd7)](_0x22b1e7,_0x59449b){const _0x259864=a78_0x198dd9,_0x111683=CLIUtils[_0x259864(0x104)](),_0x13b427=TrackedInstance[_0x259864(0xcf)](_0x111683);let _0x2d2edb=null;logger[_0x259864(0xf8)](_0x259864(0xa6)+_0x111683+',\x20state='+_0x22b1e7),_0x2d2edb=new TestFrameworkInstance(_0x13b427,this[_0x259864(0x10f)](),this[_0x259864(0x130)](),_0x22b1e7,HookState[_0x259864(0x149)]),TestFramework[_0x259864(0xdf)](_0x13b427,_0x2d2edb),logger['debug']('trackCucumberInstance:\x20saved\x20instance\x20contextId='+_0x13b427['getId']()+_0x259864(0x123)+_0x111683);}[a78_0x198dd9(0xe9)](_0x13bb17){const _0x1259a1=a78_0x198dd9,_0x5bc1c3={};_0x5bc1c3[_0x1259a1(0xe7)]=_0x1259a1(0x158);const _0x2fa0d2=_0x5bc1c3,{testUUID:_0x4b3782,testData:_0x2c5fc9}=_0x13bb17;if(!_0x2c5fc9||!_0x2c5fc9['uuid'])return logger['debug'](_0x2fa0d2[_0x1259a1(0xe7)]),{};const _0x47771f=_0x4b3782,_0x1c92d4=_0x2c5fc9[_0x1259a1(0x14b)],_0x3729f4=this[_0x1259a1(0x10f)]()[0x0],_0x5b6952=this['getTestFrameworksVersions'](),_0x5a16b1={[TestFrameworkConstants[_0x1259a1(0xbd)]]:_0x3729f4,[TestFrameworkConstants[_0x1259a1(0x110)]]:_0x5b6952[_0x3729f4],[TestFrameworkConstants[_0x1259a1(0x13e)]]:[],[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:{},[TestFrameworkConstants[_0x1259a1(0x11e)]]:{},[TestFrameworkConstants[_0x1259a1(0x109)]]:_0x47771f,[TestFrameworkConstants[_0x1259a1(0xe2)]]:TestFrameworkConstants[_0x1259a1(0xe0)],[TestFrameworkConstants[_0x1259a1(0x15d)]]:_0x2c5fc9[_0x1259a1(0xbf)]||'',[TestFrameworkConstants[_0x1259a1(0xd5)]]:_0x2c5fc9[_0x1259a1(0xed)]||'',[TestFrameworkConstants[_0x1259a1(0x121)]]:_0x1c92d4,[TestFrameworkConstants[_0x1259a1(0x135)]]:_0x2c5fc9[_0x1259a1(0xbf)]||'',[TestFrameworkConstants[_0x1259a1(0xb2)]]:_0x2c5fc9[_0x1259a1(0xcd)]||'',[TestFrameworkConstants[_0x1259a1(0xf6)]]:_0x2c5fc9[_0x1259a1(0xa7)]?.[_0x1259a1(0xc9)]||null,[TestFrameworkConstants[_0x1259a1(0xda)]]:_0x2c5fc9['tags']||[],[TestFrameworkConstants[_0x1259a1(0x13a)]]:_0x2c5fc9['startedAt']||new Date()[_0x1259a1(0xd6)](),[TestFrameworkConstants[_0x1259a1(0x114)]]:_0x2c5fc9['scopes']?.[0x0]||'',[TestFrameworkConstants[_0x1259a1(0x163)]]:_0x2c5fc9['scopes']||[],[TestFrameworkConstants['KEY_TEST_RERUN_NAME']]:_0x2c5fc9['customRerunParam']?.['rerun_name']||_0x2c5fc9[_0x1259a1(0xbf)]||'',[TestFrameworkConstants[_0x1259a1(0xd3)]]:{},[TestFrameworkConstants[_0x1259a1(0xdc)]]:_0x2c5fc9[_0x1259a1(0xb8)]||{}};TestInfo['setTestDetails'](_0x1c92d4,_0x5a16b1),logger['debug'](_0x1259a1(0xab)+_0x2c5fc9['name']+_0x1259a1(0x107)+_0x47771f);const _0x56fa1a={};return _0x56fa1a[_0x1c92d4]=_0x5a16b1,_0x56fa1a;}[a78_0x198dd9(0x141)](_0x3174da){const _0x1ae6ab=a78_0x198dd9,_0x39aef5={'tgHVs':_0x1ae6ab(0x15c),'dvuTy':_0x1ae6ab(0x120),'EtndO':function(_0x2e0c99,_0x2f8357){return _0x2e0c99===_0x2f8357;},'OwbZy':'failed','WXqjH':'UnhandledError','SrEqT':function(_0xed7948,_0x58caae,_0x167eae){return _0xed7948(_0x58caae,_0x167eae);},'bCoEM':function(_0xa4e9c7,_0x8acb4f){return _0xa4e9c7>_0x8acb4f;}},{testUUID:_0x4a244d,testData:_0x48939}=_0x3174da;if(!_0x48939||!_0x48939[_0x1ae6ab(0x14b)])return logger[_0x1ae6ab(0xf8)](_0x39aef5[_0x1ae6ab(0xd2)]),{};const _0x262293=this[_0x1ae6ab(0xeb)](TestFrameworkState[_0x1ae6ab(0x126)],HookState[_0x1ae6ab(0xbb)]),_0x21e7c5=_0x48939[_0x1ae6ab(0x14b)],_0x2e8ec9=TestInfo[_0x1ae6ab(0xff)](_0x21e7c5)||{},_0x3ef8b4=_0x2e8ec9?_0x2e8ec9[TestFrameworkConstants[_0x1ae6ab(0xd3)]]||{}:{},_0x154a77={..._0x2e8ec9,[TestFrameworkConstants[_0x1ae6ab(0xe2)]]:_0x48939['result']||_0x39aef5['dvuTy'],[TestFrameworkConstants[_0x1ae6ab(0xee)]]:_0x48939[_0x1ae6ab(0xf1)]||new Date()[_0x1ae6ab(0xd6)](),[TestFrameworkConstants[_0x1ae6ab(0xe6)]]:new Date()[_0x1ae6ab(0xd6)](),[TestFrameworkConstants[_0x1ae6ab(0xd3)]]:_0x3ef8b4,[TestFrameworkConstants[_0x1ae6ab(0x15f)]]:[],[TestFrameworkConstants['KEY_TEST_META']]:_0x48939[_0x1ae6ab(0xb8)]||{}};_0x39aef5[_0x1ae6ab(0x113)](_0x48939[_0x1ae6ab(0xfe)],_0x39aef5[_0x1ae6ab(0xb5)])&&_0x48939['failure']&&(_0x154a77[TestFrameworkConstants[_0x1ae6ab(0x102)]]=_0x48939['failure_type']||_0x39aef5['WXqjH'],_0x154a77[TestFrameworkConstants[_0x1ae6ab(0x13b)]]=_0x48939[_0x1ae6ab(0x10e)]||'',_0x154a77[TestFrameworkConstants[_0x1ae6ab(0x127)]]=_0x48939[_0x1ae6ab(0xf3)]);const _0x2f995c=TestInfo[_0x1ae6ab(0xff)](_0x21e7c5)[TestFrameworkConstants[_0x1ae6ab(0xba)]]||{},_0x48d1b4=_0x39aef5[_0x1ae6ab(0xc8)](getManualUploadLogs,_0x2f995c,_0x262293[_0x1ae6ab(0xc4)]()['get'](_0x21e7c5)[TestFrameworkConstants[_0x1ae6ab(0x109)]]);if(_0x39aef5[_0x1ae6ab(0xad)](_0x48d1b4[_0x1ae6ab(0x15a)],0x0)){const _0x16d24b=_0x154a77[TestFrameworkConstants[_0x1ae6ab(0x15f)]]||[];_0x154a77[TestFrameworkConstants[_0x1ae6ab(0x15f)]]=[..._0x16d24b,..._0x48d1b4];}_0x48939[_0x1ae6ab(0xac)]&&_0x39aef5[_0x1ae6ab(0xad)](_0x48939['hooks'][_0x1ae6ab(0x15a)],0x0)&&(_0x154a77[TestFrameworkConstants[_0x1ae6ab(0xef)]]=_0x48939['hooks']);TestInfo[_0x1ae6ab(0x12e)](_0x21e7c5,_0x154a77),logger[_0x1ae6ab(0xf8)]('Updated\x20cucumber\x20test\x20result:\x20'+_0x48939[_0x1ae6ab(0xbf)]+_0x1ae6ab(0xcb)+_0x48939[_0x1ae6ab(0xfe)]);const _0x405937={};return _0x405937[_0x21e7c5]=_0x154a77,_0x405937;}async[a78_0x198dd9(0x9e)](_0x5ee7d3,_0x36387f,_0x377f12,_0x18922c){const _0x583471=a78_0x198dd9,_0x981f94={'NNmwk':_0x583471(0xb4),'teQBB':function(_0xcc705){return _0xcc705();},'ZmgUZ':function(_0x1c2f8e,_0x4a048b){return _0x1c2f8e in _0x4a048b;},'iYrhA':function(_0x1f7ae0,_0x45f890){return _0x1f7ae0 in _0x45f890;},'vNPCw':function(_0x2d7dcd,_0x5d93f6){return _0x2d7dcd===_0x5d93f6;},'sbonc':function(_0x582611,_0xdc603a){return _0x582611>_0xdc603a;},'dyFcv':function(_0x12bf1b,_0x583004){return _0x12bf1b===_0x583004;},'Inoov':_0x583471(0x14f),'dUKDG':'UnhandledError','TANwi':_0x583471(0xec),'qCYfj':function(_0x2b53fe,_0x5bc0b4){return _0x2b53fe!==_0x5bc0b4;}},{hookData:_0x4f8269}=_0x18922c;if(!_0x4f8269)return logger[_0x583471(0xf8)](_0x981f94[_0x583471(0x13d)]),{};const _0x43ad11=_0x4f8269[_0x583471(0x14b)]||_0x981f94[_0x583471(0x151)](uuidv4),_0x478d9a=_0x4f8269[_0x583471(0xa0)],_0x34137a=_0x36387f[_0x583471(0x117)]()['split']('.')[0x1],_0xbf78cc=TestInfo[_0x583471(0xff)](_0x478d9a)[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{},_0x465f67=_0x5ee7d3[_0x583471(0xc4)]()[_0x583471(0x10d)](_0x478d9a);if(!_0x465f67)return logger[_0x583471(0xf8)](_0x583471(0xdb)+_0x478d9a+_0x583471(0xb3)),this[_0x583471(0x10a)](_0x5ee7d3,_0x478d9a,_0x36387f,_0x377f12,_0x18922c),{};let _0x56baac=_0x465f67[TestFrameworkConstants[_0x583471(0x11e)]];!_0x56baac&&(_0x56baac={});!_0x981f94[_0x583471(0x145)](_0x34137a,_0x56baac)&&(_0x56baac[_0x34137a]=[]);let _0x48156d=_0x465f67[TestFrameworkConstants[_0x583471(0xef)]];!_0x48156d&&(_0x48156d={});!_0x981f94['iYrhA'](_0x34137a,_0x48156d)&&(_0x48156d[_0x34137a]=[]);const _0x293453={[TestFrameworkConstants[_0x583471(0x11e)]]:_0x56baac,[TestFrameworkConstants[_0x583471(0xef)]]:_0x48156d},_0x3fb48b={};_0x3fb48b[_0x478d9a]=_0x293453;const _0x43129e=_0x3fb48b;if(_0x981f94['vNPCw'](_0x377f12,HookState[_0x583471(0x162)])){const _0x1747ce={[TestFrameworkConstants[_0x583471(0x92)]]:_0x43ad11,[TestFrameworkConstants[_0x583471(0x15e)]]:TestFrameworkConstants[_0x583471(0xb7)],[TestFrameworkConstants[_0x583471(0x144)]]:_0x4f8269['started_at'],[TestFrameworkConstants[_0x583471(0x14d)]]:[],[TestFrameworkConstants[_0x583471(0xc6)]]:_0x4f8269[_0x583471(0xce)],[TestFrameworkConstants[_0x583471(0xd3)]]:_0xbf78cc};_0x1747ce['key']=_0x34137a;const _0x30ead0=_0x1747ce;_0x56baac[_0x34137a][_0x583471(0x9d)](_0x30ead0),_0x43129e[_0x478d9a][TestFrameworkConstants[_0x583471(0xd8)]]=_0x34137a,logger[_0x583471(0xf8)](_0x583471(0xdd)+_0x34137a+'\x20&\x20hook\x20=\x20'+_0x30ead0+_0x583471(0x98)+_0x18922c);}else{if(_0x981f94[_0x583471(0x131)](_0x377f12,HookState[_0x583471(0xbb)])){const _0x28b4d1=_0x4f8269[_0x583471(0xfe)],_0x137f1b=_0x56baac[_0x34137a]||[];logger['debug'](_0x583471(0xfd)+_0x137f1b+_0x583471(0x143)+_0x18922c);if(_0x981f94[_0x583471(0xd9)](_0x137f1b[_0x583471(0x15a)],0x0)){const _0x59eb04=_0x137f1b[_0x583471(0xe1)]();_0x981f94[_0x583471(0x9a)](_0x4f8269[_0x583471(0xfe)],_0x981f94[_0x583471(0xca)])&&_0x4f8269[_0x583471(0xaa)]?(_0x59eb04[TestFrameworkConstants[_0x583471(0xe3)]]=_0x4f8269[_0x583471(0x108)]||_0x981f94['dUKDG'],_0x59eb04[TestFrameworkConstants[_0x583471(0xd0)]]=_0x4f8269[_0x583471(0x10e)]||'',_0x59eb04[TestFrameworkConstants[_0x583471(0xe5)]]=_0x4f8269[_0x583471(0xaa)]):_0x59eb04[TestFrameworkConstants[_0x583471(0x15e)]]=_0x981f94[_0x583471(0x100)];_0x981f94['qCYfj'](_0x28b4d1,TestFrameworkConstants['DEFAULT_HOOK_RESULT'])&&(_0x59eb04[TestFrameworkConstants[_0x583471(0x15e)]]=_0x28b4d1);_0x59eb04[TestFrameworkConstants[_0x583471(0x134)]]=_0x4f8269[_0x583471(0x137)]||new Date()[_0x583471(0xd6)](),_0x59eb04[TestFrameworkConstants[_0x583471(0xd3)]]=_0xbf78cc;const _0x69642a=_0x59eb04[TestFrameworkConstants[_0x583471(0x92)]];!_0x48156d[_0x34137a]&&(_0x48156d[_0x34137a]=[]),_0x48156d[_0x34137a][_0x583471(0x9d)](_0x59eb04),_0x43129e[_0x478d9a][TestFrameworkConstants[_0x583471(0x10b)]]=_0x34137a;}}}return logger[_0x583471(0xf8)](_0x583471(0xf0)+_0x4f8269[_0x583471(0xce)]+_0x583471(0x12a)+_0x43ad11+_0x583471(0xf2)+_0x478d9a),_0x43129e;}[a78_0x198dd9(0x119)](_0x30522e){const _0x27f54d=a78_0x198dd9,_0x701522={};_0x701522[_0x27f54d(0xf9)]='base64';const _0x348470=_0x701522;try{const _0x56cd7e=_0x30522e[_0x27f54d(0xa8)]?_0x30522e[_0x27f54d(0xa8)]['id']:_0x30522e[_0x27f54d(0xaf)][_0x27f54d(0xa0)],_0x5ad335=_0x30522e[_0x27f54d(0xa9)],_0x404e1a=_0x5ad335['getContext'](),_0x1a2b2e=_0x5ad335[_0x27f54d(0xc4)]()[_0x27f54d(0x10d)](_0x56cd7e);if(!_0x1a2b2e)return logger['debug'](_0x27f54d(0xae)+_0x56cd7e),{};logger[_0x27f54d(0xf8)](_0x27f54d(0x14a)+_0x56cd7e);const {[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x192ef6='',[TestFrameworkConstants[_0x27f54d(0x110)]]:_0x3720dd='',[TestFrameworkConstants[_0x27f54d(0x13a)]]:_0x4b3d41='',[TestFrameworkConstants[_0x27f54d(0xee)]]:_0x2d2037=''}=_0x1a2b2e,_0x2d9f55=_0x5ad335[_0x27f54d(0x133)]()[_0x27f54d(0x117)]()[_0x27f54d(0xf7)]('.')[0x1],_0x28048a=_0x5ad335[_0x27f54d(0x91)]()[_0x27f54d(0x117)]()[_0x27f54d(0xf7)]('.')[0x1],_0x564c6b=global?.[_0x27f54d(0x94)]??0x0,_0x1aa136=_0x5ad335[_0x27f54d(0x11f)](),_0x3a3ec6=Buffer[_0x27f54d(0xa4)](JSON[_0x27f54d(0x11b)](_0x1a2b2e))[_0x27f54d(0x117)](_0x348470['XoBak']),_0x2f3bc8={'hash':_0x404e1a[_0x27f54d(0x147)](),'threadId':_0x404e1a[_0x27f54d(0x93)]()[_0x27f54d(0x117)](),'processId':_0x404e1a[_0x27f54d(0x124)]()[_0x27f54d(0x117)]()},_0x1c17a6={};_0x1c17a6[_0x27f54d(0x12c)]=_0x564c6b,_0x1c17a6[_0x27f54d(0x8e)]=_0x192ef6,_0x1c17a6[_0x27f54d(0x132)]=_0x3720dd,_0x1c17a6[_0x27f54d(0x159)]=_0x2d9f55,_0x1c17a6[_0x27f54d(0xc0)]=_0x28048a,_0x1c17a6[_0x27f54d(0x15b)]=_0x4b3d41,_0x1c17a6[_0x27f54d(0x148)]=_0x2d2037,_0x1c17a6[_0x27f54d(0x14b)]=_0x1aa136,_0x1c17a6[_0x27f54d(0x13c)]=_0x3a3ec6,_0x1c17a6['executionContext']=_0x2f3bc8;const _0x3906fa=_0x1c17a6;return logger['debug'](_0x27f54d(0x139)+_0x56cd7e+_0x27f54d(0x138)+_0x2d9f55+'\x20hookState:\x20'+_0x28048a),_0x3906fa;}catch(_0x12a556){return logger['error'](_0x27f54d(0xd1)+util[_0x27f54d(0xfc)](_0x12a556)),{};}}async['sendLogCreatedEvent'](_0x5206e1,_0x121ac7,_0x5f23e1){const _0x196d79=a78_0x198dd9,_0x594daa={'ByPmR':function(_0x331357,_0x2a9b13,_0x1277e0){return _0x331357(_0x2a9b13,_0x1277e0);},'NsIrE':function(_0x13ab0c,_0x21c1d7){return _0x13ab0c===_0x21c1d7;},'yTjiD':_0x196d79(0xc3),'BzxGG':function(_0x5cf3f3,_0x1b6a1f){return _0x5cf3f3/_0x1b6a1f;},'yaKqB':function(_0x254217,_0x7d981f){return _0x254217<_0x7d981f;},'NWJpc':function(_0x1d0a73,_0x2a7a0d){return _0x1d0a73*_0x2a7a0d;},'vrQlb':function(_0x5dad04,_0x29e2f4){return _0x5dad04+_0x29e2f4;},'zVoHO':_0x196d79(0x150)};try{const _0x25be44=_0x5f23e1[_0x196d79(0x10c)],_0x136881=_0x5206e1['getAllData']()['get'](_0x25be44),{[TestFrameworkConstants[_0x196d79(0xbd)]]:_0x175dc6='',[TestFrameworkConstants[_0x196d79(0x110)]]:_0x4075fb=''}=_0x136881,_0x5bda2a=TestInfo[_0x196d79(0x11c)](_0x25be44),_0x42ee54=TestInfo[_0x196d79(0xff)](_0x25be44)[TestFrameworkConstants[_0x196d79(0xba)]]||{},_0x2fd160=_0x594daa[_0x196d79(0xa5)](getMediaArtifactsLogs,_0x42ee54,_0x5206e1[_0x196d79(0xc4)]()[_0x196d79(0x10d)](_0x25be44)[TestFrameworkConstants[_0x196d79(0x109)]]),_0x543b1b=(_0x5bda2a||[])[_0x196d79(0x12b)](_0x2fd160||[]);if(!_0x543b1b||_0x594daa['NsIrE'](_0x543b1b[_0x196d79(0x15a)],0x0)){logger['debug'](_0x594daa[_0x196d79(0x101)]);return;}const _0x3acf7f=0x28,_0x25346f=Math[_0x196d79(0x105)](_0x594daa[_0x196d79(0xfb)](_0x543b1b[_0x196d79(0x15a)],_0x3acf7f));for(let _0x4381aa=0x0;_0x594daa['yaKqB'](_0x4381aa,_0x25346f);_0x4381aa++){const _0x25aef0=_0x594daa[_0x196d79(0x9c)](_0x4381aa,_0x3acf7f),_0x50b7f3=_0x594daa[_0x196d79(0xbc)](_0x25aef0,_0x3acf7f),_0x541817=_0x543b1b['slice'](_0x25aef0,_0x50b7f3),_0x14d52b={'platformIndex':global?.[_0x196d79(0x94)]??0x0,'logs':_0x541817,'testFrameworkName':_0x175dc6,'testFrameworkVersion':_0x4075fb,'testFrameworkState':_0x121ac7[_0x196d79(0x117)]()[_0x196d79(0xf7)]('.')[0x1]};logger[_0x196d79(0xf8)]('sendLogCreatedEvent:\x20for\x20testId:\x20'+_0x25be44+'\x20batch\x20'+_0x594daa['vrQlb'](_0x4381aa,0x1)+'/'+_0x25346f+_0x196d79(0x95)+util['inspect'](_0x14d52b));const _0x3c88fb=await GrpcClient[_0x196d79(0x154)]()[_0x196d79(0xa1)](_0x14d52b);logger[_0x196d79(0xf8)](_0x196d79(0xea)+_0x25be44+'\x20batch\x20'+_0x594daa[_0x196d79(0xbc)](_0x4381aa,0x1)+'/'+_0x25346f+_0x196d79(0xc7)+util[_0x196d79(0xd4)](_0x3c88fb));}}catch(_0x411087){logger[_0x196d79(0x14c)]('sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20'+util[_0x196d79(0xfc)](_0x411087));}logger['debug'](_0x594daa[_0x196d79(0x128)]);}[a78_0x198dd9(0x10a)](_0x29daf3,_0x5c217f,_0x3d3f03,_0x21e30a,_0x5ed5a4){const _0x157043=a78_0x198dd9,_0x1c4ca4={'testId':_0x5c217f,'testFrameworkState':_0x3d3f03,'hookState':_0x21e30a,'args':_0x5ed5a4,'timestamp':new Date()[_0x157043(0xd6)]()};_0x29daf3[_0x157043(0x9b)](_0x5c217f,_0x1c4ca4),logger[_0x157043(0xf8)](_0x157043(0xf5)+_0x5c217f+_0x157043(0xe8)+_0x3d3f03+_0x157043(0xa3)+_0x21e30a);}async[a78_0x198dd9(0x97)](_0x2aa98c,_0x5003fc){const _0x55cf5c=a78_0x198dd9,_0x4eb203={};_0x4eb203[_0x55cf5c(0x160)]=function(_0x4af1e0,_0x5ac64a){return _0x4af1e0>_0x5ac64a;};const _0x1f36c6=_0x4eb203;if(!_0x2aa98c['hasPendingHooks'](_0x5003fc))return;const _0x290889=_0x2aa98c[_0x55cf5c(0xb6)](_0x5003fc);logger[_0x55cf5c(0xf8)](_0x55cf5c(0x9f)+_0x290889[_0x55cf5c(0x15a)]+_0x55cf5c(0x140)+_0x5003fc);for(const _0x2226de of _0x290889){try{const _0x16e0c0=await this[_0x55cf5c(0x9e)](_0x2aa98c,_0x2226de[_0x55cf5c(0x159)],_0x2226de['hookState'],_0x2226de[_0x55cf5c(0x96)]);_0x16e0c0&&_0x1f36c6[_0x55cf5c(0x160)](Object[_0x55cf5c(0xf4)](_0x16e0c0)['length'],0x0)&&_0x2aa98c[_0x55cf5c(0x125)](_0x16e0c0),await this[_0x55cf5c(0x156)](_0x2aa98c,_0x2226de[_0x55cf5c(0x159)],_0x2226de[_0x55cf5c(0xc0)],_0x2226de[_0x55cf5c(0x96)]);}catch(_0x575b8c){logger[_0x55cf5c(0x14c)](_0x55cf5c(0x8d)+_0x5003fc+_0x55cf5c(0x118)+_0x575b8c);}}_0x2aa98c[_0x55cf5c(0xb0)](_0x5003fc),logger[_0x55cf5c(0xf8)](_0x55cf5c(0xc1)+_0x5003fc);}}module[a78_0x198dd9(0x106)]=CucumberTestFramework;