browserstack-node-sdk 1.53.1 → 1.53.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +6 -4
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test.setup.js +1 -1
  67. package/src/bin/jest/test_before.setup.js +1 -1
  68. package/src/bin/launcher/launcher.js +1 -1
  69. package/src/bin/load/index.js +1 -1
  70. package/src/bin/load/loadUtils.js +1 -1
  71. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  72. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  73. package/src/bin/mocha/command.js +1 -1
  74. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  75. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  76. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  77. package/src/bin/mocha/test.setup.js +1 -1
  78. package/src/bin/nightwatch/command.js +1 -1
  79. package/src/bin/playwright/accessibility-helper.js +1 -1
  80. package/src/bin/playwright/command.js +1 -1
  81. package/src/bin/playwright/globalSetup.js +1 -1
  82. package/src/bin/playwright/mock-process.js +1 -1
  83. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  84. package/src/bin/playwright/patches.js +1 -1
  85. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  86. package/src/bin/playwright/reporter/reporter.js +1 -1
  87. package/src/bin/playwright/reporter/test-details.js +1 -1
  88. package/src/bin/playwright/sessionDetails.js +1 -1
  89. package/src/bin/puppeteer/patches.js +1 -1
  90. package/src/bin/puppeteer/sessionDetails.js +1 -1
  91. package/src/bin/puppeteer/test.setup.js +1 -1
  92. package/src/bin/runner.js +1 -1
  93. package/src/bin/setup.js +1 -1
  94. package/src/bin/test-runner/index.js +1 -1
  95. package/src/bin/test-runner/runTest.js +1 -1
  96. package/src/bin/test-runner/testWorker.js +1 -1
  97. package/src/bin/utils/apiUtilityMethods.js +1 -1
  98. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  99. package/src/bin/utils/constants.js +1 -1
  100. package/src/bin/utils/log4jsAppender.js +1 -1
  101. package/src/bin/utils/logPatcher.js +1 -1
  102. package/src/bin/utils/logReportingAPI.js +1 -1
  103. package/src/bin/utils/playwright-patcher.js +1 -1
  104. package/src/bin/utils/puppeteer-patcher.js +1 -1
  105. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  106. package/src/bin/utils/sharedUtils.js +1 -1
  107. package/src/bin/v2/TestInfo.js +1 -1
  108. package/src/bin/v2/browserstackCLI.js +1 -1
  109. package/src/bin/v2/cliUtils.js +1 -1
  110. package/src/bin/v2/customTagManager.js +1 -1
  111. package/src/bin/v2/eventDispatcher.js +1 -1
  112. package/src/bin/v2/framework/automationFramework.js +1 -1
  113. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  114. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  115. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  116. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  117. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  118. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  119. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  120. package/src/bin/v2/framework/testFramework.js +1 -1
  121. package/src/bin/v2/grpcClient.js +1 -1
  122. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  123. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  124. package/src/bin/v2/instances/trackedContext.js +1 -1
  125. package/src/bin/v2/instances/trackedInstance.js +1 -1
  126. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  127. package/src/bin/v2/modules/baseModule.js +1 -1
  128. package/src/bin/v2/modules/loadTestModule.js +1 -1
  129. package/src/bin/v2/modules/observabilityModule.js +1 -1
  130. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  131. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  132. package/src/bin/v2/modules/testhubModule.js +1 -1
  133. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  134. package/src/bin/v2/state/hookState.js +1 -1
  135. package/src/bin/v2/state/testFrameworkState.js +1 -1
  136. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  137. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  138. package/src/bin/v2/utils/jest-utils.js +1 -1
  139. package/src/bin/vanilla-js/command.js +1 -1
  140. package/src/browserStackSdk.js +1 -1
  141. package/src/helpers/BrowserStackSetup.js +1 -1
  142. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  143. package/src/helpers/accessibility-automation/constants.js +1 -1
  144. package/src/helpers/accessibility-automation/helper.js +1 -1
  145. package/src/helpers/accessibility-automation/scripts.js +1 -1
  146. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  147. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  148. package/src/helpers/ats/constants.js +1 -1
  149. package/src/helpers/ats/helper.js +1 -1
  150. package/src/helpers/capsMapping.js +1 -1
  151. package/src/helpers/central-scanner/constants.js +1 -1
  152. package/src/helpers/central-scanner/helpers.js +1 -1
  153. package/src/helpers/classLogger.js +1 -1
  154. package/src/helpers/globals.js +1 -1
  155. package/src/helpers/helper.js +1 -1
  156. package/src/helpers/logger.js +1 -1
  157. package/src/helpers/metadata.js +1 -1
  158. package/src/helpers/patchHelper.js +1 -1
  159. package/src/helpers/patchHelpers.js +1 -1
  160. package/src/helpers/percy/Percy.js +1 -1
  161. package/src/helpers/percy/PercyBinary.js +1 -1
  162. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  163. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  164. package/src/helpers/percy/PercySDK.js +1 -1
  165. package/src/helpers/percy/index.js +1 -1
  166. package/src/helpers/percy/utils.js +1 -1
  167. package/src/helpers/performance/constants.js +1 -1
  168. package/src/helpers/performance/performance-tester.js +1 -1
  169. package/src/helpers/playwright-helper.js +1 -1
  170. package/src/helpers/processHelper.js +1 -1
  171. package/src/helpers/puppeteer-helper.js +1 -1
  172. package/src/helpers/request-spy.js +1 -1
  173. package/src/helpers/setKeepAlive.js +1 -1
  174. package/src/helpers/test-observability/constants.js +1 -1
  175. package/src/helpers/test-observability/error-handler.js +1 -1
  176. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  177. package/src/helpers/test-observability/sessionHandler.js +1 -1
  178. package/src/helpers/test-observability/utils.js +1 -1
  179. package/src/helpers/test-orchestration/constants.js +1 -1
  180. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  181. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  182. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  183. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  184. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  185. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  186. package/src/helpers/testhub/constants.js +1 -1
  187. package/src/helpers/testhub/testhubHandler.js +1 -1
  188. package/src/helpers/testhub/utils.js +1 -1
  189. package/src/helpers/timeoutPromise.js +1 -1
  190. package/src/helpers/utilities.js +1 -1
  191. package/src/helpers/w3cMapping.js +1 -1
  192. package/src/hubAllocationMethods.js +1 -1
  193. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a68_0x151ccb=a68_0x501b;(function(_0x13163f,_0x42ffa5){const _0x2d687f=a68_0x501b,_0x464c91=_0x13163f();while(!![]){try{const _0x47658e=parseInt(_0x2d687f(0x200))/0x1*(parseInt(_0x2d687f(0x26d))/0x2)+-parseInt(_0x2d687f(0x1b3))/0x3*(-parseInt(_0x2d687f(0x1c9))/0x4)+parseInt(_0x2d687f(0x25d))/0x5+parseInt(_0x2d687f(0x271))/0x6+-parseInt(_0x2d687f(0x231))/0x7+-parseInt(_0x2d687f(0x226))/0x8+-parseInt(_0x2d687f(0x1f3))/0x9;if(_0x47658e===_0x42ffa5)break;else _0x464c91['push'](_0x464c91['shift']());}catch(_0x35cd9d){_0x464c91['push'](_0x464c91['shift']());}}}(a68_0x56e6,0x38e1e));function a68_0x501b(_0x17a127,_0x2e15b6){const _0x56e64e=a68_0x56e6();return a68_0x501b=function(_0x501b51,_0x4b8280){_0x501b51=_0x501b51-0x193;let _0x302609=_0x56e64e[_0x501b51];return _0x302609;},a68_0x501b(_0x17a127,_0x2e15b6);}const fs=require('fs'),os=require('os'),url=require(a68_0x151ccb(0x1e9)),path=require(a68_0x151ccb(0x1d5)),{exec}=require(a68_0x151ccb(0x1de)),{https}=require(a68_0x151ccb(0x1ee)),yauzl=require(a68_0x151ccb(0x241)),util=require(a68_0x151ccb(0x19f)),{getFrameworkVersion}=require(a68_0x151ccb(0x24e)),{threadId}=require(a68_0x151ccb(0x203)),PerformanceTester=require(a68_0x151ccb(0x237)),{EVENTS:PerformanceEvents}=require(a68_0x151ccb(0x1df)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a68_0x151ccb(0x220)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a68_0x151ccb(0x202)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a68_0x151ccb(0x214)),{createClassLogger}=require(a68_0x151ccb(0x19b)),TestFrameworkInstance=require(a68_0x151ccb(0x1f4)),HookState=require(a68_0x151ccb(0x21a)),TestFrameworkState=require(a68_0x151ccb(0x199)),AutomationFrameworkState=require('./state/automationFrameworkState.js'),TestFrameworkConstants=require(a68_0x151ccb(0x1b6)),logger=createClassLogger(a68_0x151ccb(0x1e1)),{getBStackAPIUrl}=require(a68_0x151ccb(0x210));class CLIUtils{[a68_0x151ccb(0x1b2)]={};['testFrameworkDetail']={};static[a68_0x151ccb(0x245)](){const _0x165c86=a68_0x151ccb,_0x31a467={};_0x31a467[_0x165c86(0x1d0)]=function(_0x5b8f33,_0x33f488){return _0x5b8f33===_0x33f488;},_0x31a467['yZSsf']='development';const _0x5f0cdd=_0x31a467;return _0x5f0cdd[_0x165c86(0x1d0)](process['env'][_0x165c86(0x228)],_0x5f0cdd[_0x165c86(0x1be)]);}static[a68_0x151ccb(0x25c)](){const _0x3a2803=a68_0x151ccb,_0x551fca={};return _0x551fca['id']=process['env']['BROWSERSTACK_CLI_ENV'],_0x551fca['listen']=_0x3a2803(0x1b7)+process[_0x3a2803(0x1eb)][_0x3a2803(0x228)]+'.sock',_0x551fca;}static[a68_0x151ccb(0x25b)](){const _0x270559=a68_0x151ccb,_0x2e31a3={'qCwNC':function(_0x3fcd63,_0x2b73f8){return _0x3fcd63(_0x2b73f8);},'UiHFH':_0x270559(0x270)};return _0x2e31a3[_0x270559(0x217)](require,_0x2e31a3[_0x270559(0x246)])[_0x270559(0x1a7)];}static['getSdkLanguage'](){const _0x223d30=a68_0x151ccb,_0x3b8c42={};_0x3b8c42[_0x223d30(0x219)]='node';const _0xb74523=_0x3b8c42;return _0xb74523[_0x223d30(0x219)];}static async[a68_0x151ccb(0x21e)](_0x2d2f5b){const _0x4a845f=a68_0x151ccb,_0x38f9af={'jQzuq':'Configuring\x20Cli\x20path.','NZkzz':function(_0x518272,_0x4c6ba4){return _0x518272(_0x4c6ba4);},'hTavb':_0x4a845f(0x1e8)};logger[_0x4a845f(0x248)](_0x38f9af[_0x4a845f(0x1dd)]);const _0x473416=process[_0x4a845f(0x1eb)][_0x4a845f(0x23c)];if(!_0x38f9af[_0x4a845f(0x274)](isNullOrEmpty,_0x473416))return logger[_0x4a845f(0x248)]('Development\x20Cli\x20Path:\x20'+_0x473416),_0x473416;try{const _0x2c601a=this[_0x4a845f(0x263)]();if(_0x38f9af[_0x4a845f(0x274)](isNullOrEmpty,_0x2c601a))throw new Error(_0x38f9af[_0x4a845f(0x1ac)]);const _0xef8504=this[_0x4a845f(0x1c8)](_0x2c601a),_0x3ddeeb=await this['checkAndUpdateCli'](_0xef8504,_0x2c601a,_0x2d2f5b);return logger[_0x4a845f(0x248)](_0x4a845f(0x1b4)+_0x3ddeeb),_0x3ddeeb;}catch(_0x5356c2){logger[_0x4a845f(0x248)](_0x4a845f(0x1ba)+util[_0x4a845f(0x235)](_0x5356c2));}return null;}static async[a68_0x151ccb(0x26b)](_0x52d5bd,_0x24da0c,_0x40cea6){const _0x375fc0=a68_0x151ccb,_0x2ebb32={'lbitA':function(_0x468864){return _0x468864();},'wsNEv':function(_0x3fb7b8,_0x1a3a55){return _0x3fb7b8(_0x1a3a55);},'kIqZg':function(_0x3eed60,_0x42057b,_0x260ef7){return _0x3eed60(_0x42057b,_0x260ef7);},'aAnSI':_0x375fc0(0x23f),'pPkQt':_0x375fc0(0x1e9),'FGHDQ':function(_0x16d11b,_0x581394){return _0x16d11b(_0x581394);},'Jkrup':function(_0x13cda6,_0x370fe8,_0x4e805a){return _0x13cda6(_0x370fe8,_0x4e805a);}};PerformanceTester[_0x375fc0(0x1b8)](PerformanceEvents[_0x375fc0(0x23d)]),logger['info'](_0x375fc0(0x204)+_0x52d5bd);const _0x48e77f=_0x2ebb32[_0x375fc0(0x1f1)](getHostInfo),_0x379a61={'sdk_version':CLIUtils[_0x375fc0(0x25b)](),'os':_0x48e77f['platform'],'os_arch':_0x48e77f[_0x375fc0(0x265)],'cli_version':'0','sdk_language':this['getSdkLanguage']()};!_0x2ebb32['wsNEv'](isNullOrEmpty,_0x52d5bd)&&(_0x379a61[_0x375fc0(0x1ab)]=await this[_0x375fc0(0x23b)](_0x52d5bd+'\x20version'));const _0x22d85d=await this[_0x375fc0(0x20e)](_0x379a61,_0x40cea6);process[_0x375fc0(0x1eb)]['BROWSERSTACK_BINARY_URL']&&(logger[_0x375fc0(0x1cd)](_0x375fc0(0x256)+process[_0x375fc0(0x1eb)][_0x375fc0(0x1a5)]),_0x22d85d[_0x375fc0(0x23f)]['url']=process[_0x375fc0(0x1eb)]['BROWSERSTACK_BINARY_URL']);if(_0x2ebb32['kIqZg'](nestedKeyValue,_0x22d85d,[_0x2ebb32[_0x375fc0(0x229)],_0x2ebb32[_0x375fc0(0x193)]])){logger['debug']('Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20'+_0x379a61[_0x375fc0(0x1ab)]);if(!_0x2ebb32[_0x375fc0(0x247)](isNullOrEmpty,_0x52d5bd)&&this['isBinaryBusy'](_0x52d5bd))return logger[_0x375fc0(0x242)](_0x375fc0(0x1db)+_0x52d5bd),PerformanceTester['end'](PerformanceEvents[_0x375fc0(0x23d)]),_0x52d5bd;const _0x48abe5=await this[_0x375fc0(0x1ce)](_0x2ebb32[_0x375fc0(0x1ff)](nestedKeyValue,_0x22d85d,[_0x2ebb32[_0x375fc0(0x229)],_0x2ebb32[_0x375fc0(0x193)]]),_0x24da0c);return PerformanceTester[_0x375fc0(0x258)](PerformanceEvents[_0x375fc0(0x23d)]),_0x48abe5;}return PerformanceTester[_0x375fc0(0x258)](PerformanceEvents[_0x375fc0(0x23d)]),_0x52d5bd;}static[a68_0x151ccb(0x263)](){const _0x47ddd3=a68_0x151ccb,_0x424515={'yvWnO':function(_0xf5fd99,_0x2a9f6b){return _0xf5fd99(_0x2a9f6b);},'iYCPK':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','jKHgJ':'cli','yLnzt':function(_0x324fa5,_0x2d8adf){return _0x324fa5(_0x2d8adf);}},_0x2cb5eb=this[_0x47ddd3(0x197)]();try{if(_0x424515[_0x47ddd3(0x1a2)](isNullOrEmpty,_0x2cb5eb))throw new Error(_0x424515['iYCPK']);const _0x38f83c=path[_0x47ddd3(0x227)](_0x2cb5eb,_0x424515[_0x47ddd3(0x244)]);return!fs[_0x47ddd3(0x1f5)](_0x38f83c)&&_0x424515[_0x47ddd3(0x1a3)](createDir,_0x38f83c),_0x38f83c;}catch(_0x6683c3){logger['debug'](_0x47ddd3(0x260)+util[_0x47ddd3(0x235)](_0x6683c3));}}static[a68_0x151ccb(0x197)](){const _0x5ed7ec=a68_0x151ccb,_0x46bef5={'xnEfX':'.browserstack','yJhix':function(_0x30b73f,_0x22b341){return _0x30b73f(_0x22b341);},'sRJux':function(_0x5593bd,_0x8facfd){return _0x5593bd(_0x8facfd);},'jDShS':function(_0xbd5220,_0x3612de){return _0xbd5220(_0x3612de);},'iDFRf':function(_0x4589ec,_0x3478b3){return _0x4589ec(_0x3478b3);}},_0x26139b=[process[_0x5ed7ec(0x1eb)][_0x5ed7ec(0x1cb)],path['join'](os['homedir'](),_0x46bef5[_0x5ed7ec(0x24d)]),path[_0x5ed7ec(0x227)](os['tmpdir'](),_0x46bef5[_0x5ed7ec(0x24d)])];for(const _0x141eeb of _0x26139b){if(_0x46bef5[_0x5ed7ec(0x236)](isNullOrEmpty,_0x141eeb))continue;try{if(fs[_0x5ed7ec(0x1f5)](_0x141eeb)){logger[_0x5ed7ec(0x248)](_0x5ed7ec(0x1fa)+_0x141eeb+_0x5ed7ec(0x1b1));if(!_0x46bef5[_0x5ed7ec(0x236)](isModifiable,_0x141eeb)){logger['debug'](_0x5ed7ec(0x25a)+_0x141eeb);const _0x3fbd93=_0x46bef5[_0x5ed7ec(0x222)](setReadWriteExecuteAccess,_0x141eeb);if(!_0x46bef5['jDShS'](isTrue,_0x3fbd93)){logger['warn'](_0x5ed7ec(0x24c)+_0x141eeb);continue;}}}else{logger[_0x5ed7ec(0x248)](_0x5ed7ec(0x23e)+_0x141eeb),_0x46bef5[_0x5ed7ec(0x222)](createDir,_0x141eeb),logger[_0x5ed7ec(0x248)](_0x5ed7ec(0x25a)+_0x141eeb);const _0x294863=_0x46bef5[_0x5ed7ec(0x222)](setReadWriteExecuteAccess,_0x141eeb);!_0x46bef5['iDFRf'](isTrue,_0x294863)&&logger[_0x5ed7ec(0x242)](_0x5ed7ec(0x24c)+_0x141eeb);}return _0x141eeb;}catch(_0xb53fdd){logger[_0x5ed7ec(0x1fc)](_0x5ed7ec(0x23a)+util['format'](_0xb53fdd));}}return null;}static[a68_0x151ccb(0x1c8)](_0x1e8e5f){const _0x17a32a=a68_0x151ccb,_0x2895cf={};_0x2895cf[_0x17a32a(0x1bb)]=function(_0x251d5b,_0xb95d26){return _0x251d5b>_0xb95d26;},_0x2895cf[_0x17a32a(0x1b5)]=function(_0x4901ab,_0x4d0cf4){return _0x4901ab>_0x4d0cf4;};const _0x428fbd=_0x2895cf;try{if(!fs[_0x17a32a(0x1f5)](_0x1e8e5f)||!fs[_0x17a32a(0x26f)](_0x1e8e5f)[_0x17a32a(0x1af)]())return'';const _0x29d6b6=fs['readdirSync'](_0x1e8e5f)[_0x17a32a(0x221)](_0x58666e=>path[_0x17a32a(0x227)](_0x1e8e5f,_0x58666e))['filter'](_0x1f96b8=>fs['statSync'](_0x1f96b8)[_0x17a32a(0x238)]()&&path[_0x17a32a(0x1e0)](_0x1f96b8)[_0x17a32a(0x1c3)](_0x17a32a(0x1e6)));if(_0x428fbd[_0x17a32a(0x1b5)](_0x29d6b6[_0x17a32a(0x1cf)],0x0)){const _0x5239e3=_0x29d6b6[_0x17a32a(0x221)](_0xcf75ec=>({'filePath':_0xcf75ec,'mtime':fs[_0x17a32a(0x26f)](_0xcf75ec)['mtime']}))[_0x17a32a(0x21b)]((_0x3301b9,_0x28bf4d)=>{const _0x5282e9=_0x17a32a;if(!_0x3301b9||!_0x3301b9['mtime'])return _0x28bf4d;if(_0x428fbd['RnyIN'](_0x28bf4d['mtime'],_0x3301b9[_0x5282e9(0x25e)]))return _0x28bf4d;return _0x3301b9;},{});return _0x5239e3?_0x5239e3[_0x17a32a(0x1ef)]:'';}return'';}catch(_0x1d3ef8){return logger[_0x17a32a(0x1fc)](_0x17a32a(0x195)+util[_0x17a32a(0x235)](_0x1d3ef8)),'';}}static [a68_0x151ccb(0x20e)]=async(_0x375812,_0x559cbb)=>{const _0x4a5de7=a68_0x151ccb,_0x15bdb9={'tnvwU':function(_0x341ce9,_0x2500e3,_0x82ab19,_0x167b45,_0x19d75d){return _0x341ce9(_0x2500e3,_0x82ab19,_0x167b45,_0x19d75d);},'fKgfH':_0x4a5de7(0x19e)},_0x267f91={};_0x267f91['qs']=_0x375812;const _0x1b02a3=await _0x15bdb9[_0x4a5de7(0x232)](nodeRequest,_0x15bdb9['fKgfH'],UPDATED_CLI_ENDPOINT,_0x267f91,_0x559cbb);return logger['debug'](_0x4a5de7(0x1d4)+JSON[_0x4a5de7(0x22a)](_0x1b02a3)),_0x1b02a3;};static['isBinaryBusy'](_0x44777e){const _0x211a3c=a68_0x151ccb;try{const _0x55a255=fs['openSync'](_0x44777e,'r+');return fs[_0x211a3c(0x1e2)](_0x55a255),![];}catch(_0x110e5f){if(BINARY_BUSY_ERROR_CODES['includes'](_0x110e5f[_0x211a3c(0x1d7)]))return logger[_0x211a3c(0x248)]('Binary\x20is\x20busy:\x20'+_0x44777e),!![];return logger[_0x211a3c(0x248)](_0x211a3c(0x1c6)+_0x110e5f[_0x211a3c(0x1fb)]),![];}}static[a68_0x151ccb(0x23b)](_0x2bfa72,_0x45c9b1=''){const _0x29f197=a68_0x151ccb,_0x4c3af0={'gAfqz':_0x29f197(0x1a7),'QWver':function(_0x5b8ba7,_0x263eb0){return _0x5b8ba7(_0x263eb0);},'fpYXx':_0x29f197(0x20b),'VbleQ':function(_0x1caeee,_0x541da4){return _0x1caeee(_0x541da4);},'nFfmq':function(_0x365fac,_0x18a4dc,_0x5e240c,_0x3744ae){return _0x365fac(_0x18a4dc,_0x5e240c,_0x3744ae);},'NOulu':_0x29f197(0x1fc)};return new Promise((_0x5407f2,_0x110abe)=>{const _0x568449=_0x29f197,_0x3daaf2={'joDsR':_0x4c3af0['gAfqz'],'oSNdC':function(_0x3f418f,_0x1bb435){return _0x4c3af0['QWver'](_0x3f418f,_0x1bb435);},'nBNir':_0x4c3af0[_0x568449(0x1b0)],'XYFIa':function(_0x31c6fc,_0x4bf5de){return _0x4c3af0['VbleQ'](_0x31c6fc,_0x4bf5de);},'XxsCk':function(_0x4c4972,_0x47827f){const _0x2cf1c2=_0x568449;return _0x4c3af0[_0x2cf1c2(0x1bd)](_0x4c4972,_0x47827f);}},_0x12e7ee={};_0x12e7ee[_0x568449(0x194)]=_0x45c9b1,_0x12e7ee[_0x568449(0x216)]=0x1388;const _0x17c301=_0x4c3af0[_0x568449(0x1a6)](exec,_0x2bfa72,_0x12e7ee,(_0x52b671,_0x4a0b28,_0x169c2e)=>{const _0x128773=_0x568449;if(_0x52b671){if(_0x2bfa72[_0x128773(0x209)](_0x3daaf2[_0x128773(0x1fd)])&&(_0x4a0b28[_0x128773(0x21f)]()||_0x169c2e['trim']())){const _0x1b8df0=_0x4a0b28[_0x128773(0x21f)]()||_0x169c2e[_0x128773(0x21f)]();logger[_0x128773(0x248)](_0x128773(0x267)+_0x1b8df0+'\x22'),_0x3daaf2['oSNdC'](_0x5407f2,_0x1b8df0);}else _0x3daaf2[_0x128773(0x1ca)](_0x5407f2,_0x169c2e[_0x128773(0x21f)]()||_0x3daaf2[_0x128773(0x1ed)]);}else logger[_0x128773(0x248)](_0x128773(0x1f0)+_0x4a0b28[_0x128773(0x21f)]()+'\x22'),_0x3daaf2[_0x128773(0x205)](_0x5407f2,_0x4a0b28[_0x128773(0x21f)]());});_0x17c301['on'](_0x4c3af0[_0x568449(0x26a)],()=>{const _0x511a3d=_0x568449;_0x3daaf2[_0x511a3d(0x233)](_0x5407f2,_0x3daaf2[_0x511a3d(0x1ed)]);});});}static [a68_0x151ccb(0x1ce)]=async(_0x457d24,_0x3747a1)=>{const _0xff754e=a68_0x151ccb,_0x8ace55={'mFdAW':function(_0x37c764,_0x4f6de9){return _0x37c764(_0x4f6de9);},'mgbqf':'Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','vajzQ':function(_0x7abb7,_0x482ce7){return _0x7abb7(_0x482ce7);},'WHals':_0xff754e(0x1d6),'dDOUn':_0xff754e(0x1fc),'eCpeZ':function(_0x5397fe,_0x184a23){return _0x5397fe(_0x184a23);}};PerformanceTester[_0xff754e(0x1b8)](PerformanceEvents['SDK_CLI_DOWNLOAD']),logger[_0xff754e(0x248)](_0xff754e(0x212)+_0x457d24);try{const _0x32d0f3=url[_0xff754e(0x24a)](_0x457d24),_0x57b0a8=path['join'](_0x3747a1,_0xff754e(0x259)+process[_0xff754e(0x1e5)]+'.zip'),_0x1743a2=fs[_0xff754e(0x20f)](_0x57b0a8);return new Promise((_0x2266c7,_0xdccc50)=>{const _0x10d711=_0xff754e,_0x58834d={'vUGGW':function(_0xa32aeb,_0x23582){return _0x8ace55['mFdAW'](_0xa32aeb,_0x23582);},'eAIeT':_0x8ace55[_0x10d711(0x198)],'iIpnU':function(_0x550981,_0x1a7ae3){const _0x475f7e=_0x10d711;return _0x8ace55[_0x475f7e(0x213)](_0x550981,_0x1a7ae3);},'Slhnf':_0x8ace55[_0x10d711(0x1bf)],'OPOvc':_0x8ace55[_0x10d711(0x21d)],'GbPqb':function(_0x3a97c8,_0x184749){return _0x8ace55['eCpeZ'](_0x3a97c8,_0x184749);}};https[_0x10d711(0x196)](_0x32d0f3,function(_0x58a282){const _0x1ea826=_0x10d711,_0x26e282={'zGOQo':_0x58834d[_0x1ea826(0x22e)],'mqKQM':function(_0x26574c,_0x66d3aa){return _0x58834d['iIpnU'](_0x26574c,_0x66d3aa);},'jdWpn':_0x58834d[_0x1ea826(0x19d)],'Vhkdg':function(_0x645668,_0x1a3689){const _0x7da834=_0x1ea826;return _0x58834d[_0x7da834(0x1dc)](_0x645668,_0x1a3689);}},_0x1c1229=null;_0x58a282[_0x1ea826(0x1d1)](_0x1743a2),_0x58a282['on'](_0x58834d['OPOvc'],function(_0xc75b49){const _0x4574c6=_0x1ea826;logger[_0x4574c6(0x1fc)](util[_0x4574c6(0x235)](_0x26e282['zGOQo'],_0xc75b49)),PerformanceTester[_0x4574c6(0x258)](PerformanceEvents[_0x4574c6(0x26c)],![],util[_0x4574c6(0x235)](_0xc75b49)),_0x26e282[_0x4574c6(0x253)](_0xdccc50,_0xc75b49);}),_0x1743a2['on'](_0x58834d['OPOvc'],function(_0x1e3136){const _0x1ef58c=_0x1ea826;logger[_0x1ef58c(0x1fc)](util['format'](_0x26e282[_0x1ef58c(0x22d)],_0x1e3136)),PerformanceTester[_0x1ef58c(0x258)](PerformanceEvents[_0x1ef58c(0x26c)],![],util[_0x1ef58c(0x235)](_0x1e3136)),_0x26e282[_0x1ef58c(0x272)](_0xdccc50,_0x1e3136);}),CLIUtils[_0x1ea826(0x266)](_0x1743a2,_0x1c1229,_0x57b0a8,_0x3747a1,_0x215d2a=>{const _0x55c2a5=_0x1ea826;PerformanceTester['end'](PerformanceEvents[_0x55c2a5(0x26c)]),_0x26e282[_0x55c2a5(0x272)](_0x2266c7,_0x215d2a);},_0x50c859=>{const _0x22d486=_0x1ea826;PerformanceTester['end'](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x22d486(0x235)](_0x50c859)),_0x58834d[_0x22d486(0x1dc)](_0xdccc50,_0x50c859);});})['on'](_0x8ace55[_0x10d711(0x21d)],function(_0x150aa2){const _0x5711bb=_0x10d711;logger[_0x5711bb(0x1fc)](_0x5711bb(0x20c)+util[_0x5711bb(0x235)](_0x150aa2)),PerformanceTester['end'](PerformanceEvents[_0x5711bb(0x26c)],![],util[_0x5711bb(0x235)](_0x150aa2)),_0x58834d['GbPqb'](_0xdccc50,_0x150aa2);});});}catch(_0x3c4129){PerformanceTester[_0xff754e(0x258)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util['format'](_0x3c4129)),logger[_0xff754e(0x248)](_0xff754e(0x252)+util['format'](_0x3c4129));}};static[a68_0x151ccb(0x266)](_0x4b42c4,_0x1914b5,_0xe6182e,_0x20a6df,_0x58653f,_0x14fa10){const _0x5766f7=a68_0x151ccb,_0x911fff={'tuOoo':function(_0x16c4d9,_0x1de2c9){return _0x16c4d9(_0x1de2c9);},'WjWHO':function(_0x456e73,_0x1a42ee){return _0x456e73!==_0x1a42ee;},'Lnpfj':_0x5766f7(0x1ae),'DLXYM':_0x5766f7(0x243),'KjBNr':function(_0x2b1247,_0x1871e8){return _0x2b1247(_0x1871e8);},'mnfpe':_0x5766f7(0x1b9),'IzaRC':'error','nMlZH':'end','LMfKb':_0x5766f7(0x218),'qqGfH':function(_0x5511f1,_0x106067){return _0x5511f1(_0x106067);}};_0x4b42c4['on'](_0x911fff['LMfKb'],function(){const _0x2877ff=_0x5766f7,_0x55bd9f={'DxZDH':_0x911fff[_0x2877ff(0x1aa)],'ZAucB':function(_0x264965,_0xc1d2f2){const _0x4eb326=_0x2877ff;return _0x911fff[_0x4eb326(0x207)](_0x264965,_0xc1d2f2);},'jbQPE':_0x911fff['nMlZH'],'rHogk':function(_0xc25bec,_0x5b9755){const _0x34ab82=_0x2877ff;return _0x911fff[_0x34ab82(0x20d)](_0xc25bec,_0x5b9755);},'EUzLO':_0x911fff[_0x2877ff(0x19a)]},_0x249252={};_0x249252[_0x2877ff(0x1d2)]=!![],yauzl['open'](_0xe6182e,_0x249252,function(_0x4aa04a,_0x3a5170){const _0x314ea1=_0x2877ff,_0x29ca13={'GIoSR':function(_0x4ab395,_0xf763f6){return _0x911fff['tuOoo'](_0x4ab395,_0xf763f6);},'IPcRW':function(_0x2b9f4f,_0x12e82f){return _0x911fff['tuOoo'](_0x2b9f4f,_0x12e82f);},'BlDCf':function(_0x36f9aa,_0x47e2e1){const _0x2b3b0d=a68_0x501b;return _0x911fff[_0x2b3b0d(0x20d)](_0x36f9aa,_0x47e2e1);},'RhIVz':_0x911fff[_0x314ea1(0x1d8)],'HMYHH':function(_0x4c31fc,_0x5d8c2b){const _0x161594=_0x314ea1;return _0x911fff[_0x161594(0x1cc)](_0x4c31fc,_0x5d8c2b);},'bZqKH':_0x911fff[_0x314ea1(0x1bc)]};if(_0x4aa04a){_0x911fff[_0x314ea1(0x1c0)](_0x14fa10,_0x4aa04a);return;}_0x3a5170['readEntry'](),_0x3a5170['on'](_0x911fff['mnfpe'],_0x59d343=>{const _0x4eca54=_0x314ea1,_0x3009e9={'Ktxdc':_0x55bd9f['DxZDH'],'wIVRi':function(_0x487810,_0x4719b9){return _0x55bd9f['ZAucB'](_0x487810,_0x4719b9);},'PNhlE':_0x55bd9f[_0x4eca54(0x1c1)]};if(/\/$/['test'](_0x59d343[_0x4eca54(0x206)])){_0x3a5170[_0x4eca54(0x24b)]();return;}!_0x1914b5&&(_0x1914b5=_0x59d343[_0x4eca54(0x206)]);if(_0x55bd9f['rHogk'](_0x59d343['fileName'],_0x1914b5))_0x3a5170['readEntry']();else{const _0x5dd7ed=_0x59d343[_0x4eca54(0x206)],_0x52821c=path[_0x4eca54(0x227)](_0x20a6df,_0x5dd7ed+_0x4eca54(0x273)+process['pid']);let _0x326fc3;try{_0x326fc3=fs[_0x4eca54(0x20f)](_0x52821c);}catch(_0x55db98){if(BINARY_BUSY_ERROR_CODES[_0x4eca54(0x209)](_0x55db98['code'])){const _0xbb54c5=path[_0x4eca54(0x227)](_0x20a6df,_0x5dd7ed);if(fs[_0x4eca54(0x1f5)](_0xbb54c5)){logger[_0x4eca54(0x242)](_0x4eca54(0x250)+_0x5dd7ed),fs[_0x4eca54(0x240)](_0xe6182e,_0x12b01c=>{const _0x418e60=_0x4eca54;_0x12b01c&&logger[_0x418e60(0x242)](_0x418e60(0x22f)+_0xe6182e);}),_0x55bd9f[_0x4eca54(0x230)](_0x58653f,_0xbb54c5);return;}logger[_0x4eca54(0x242)](_0x4eca54(0x1d9)+_0x5dd7ed);}_0x55bd9f['ZAucB'](_0x14fa10,_0x55db98);return;}_0x326fc3['on'](_0x55bd9f[_0x4eca54(0x215)],_0x190bbe=>{const _0x32dba1=_0x4eca54;if(BINARY_BUSY_ERROR_CODES[_0x32dba1(0x209)](_0x190bbe['code'])){const _0x48d0ac=path[_0x32dba1(0x227)](_0x20a6df,_0x5dd7ed);_0x326fc3['close'](),fs[_0x32dba1(0x1f5)](_0x48d0ac)?(logger[_0x32dba1(0x242)](_0x32dba1(0x1da)+_0x190bbe[_0x32dba1(0x1fb)]),_0x3a5170[_0x32dba1(0x218)](),fs[_0x32dba1(0x240)](_0xe6182e,_0x1d98fb=>{const _0x5e1efd=_0x32dba1;_0x1d98fb&&logger['warn'](_0x5e1efd(0x22f)+_0xe6182e);}),_0x29ca13['GIoSR'](_0x58653f,_0x48d0ac)):(logger[_0x32dba1(0x242)](_0x32dba1(0x224)+_0x190bbe[_0x32dba1(0x1fb)]),fs[_0x32dba1(0x240)](_0x52821c,()=>{}),_0x29ca13[_0x32dba1(0x1f2)](_0x14fa10,_0x190bbe));}else fs[_0x32dba1(0x240)](_0x52821c,()=>{}),_0x29ca13[_0x32dba1(0x1f2)](_0x14fa10,_0x190bbe);}),_0x3a5170[_0x4eca54(0x1a1)](_0x59d343,function(_0x5b233a,_0x9787e3){const _0x2aaead=_0x4eca54,_0x13d4e2={};_0x13d4e2[_0x2aaead(0x24f)]=_0x3009e9[_0x2aaead(0x234)];const _0x3f219a=_0x13d4e2;if(_0x5b233a){fs[_0x2aaead(0x240)](_0x52821c,()=>{}),_0x3009e9['wIVRi'](_0x14fa10,_0x5b233a);return;}_0x9787e3['on'](_0x3009e9[_0x2aaead(0x1f6)],function(){const _0x210976=_0x2aaead;_0x326fc3[_0x210976(0x258)](),_0x326fc3['on'](_0x3f219a[_0x210976(0x24f)],function(){const _0x3964e7=_0x210976;_0x3a5170[_0x3964e7(0x24b)]();});}),_0x9787e3[_0x2aaead(0x1d1)](_0x326fc3);});}}),_0x3a5170['on'](_0x911fff[_0x314ea1(0x19a)],_0x54bfdf=>{_0x55bd9f['ZAucB'](_0x14fa10,_0x54bfdf);}),_0x3a5170[_0x314ea1(0x1c4)](_0x911fff[_0x314ea1(0x249)],()=>{const _0x2f10ad=_0x314ea1,_0x20f6db={'EHIEK':function(_0x2591b6,_0x22ab8a){const _0x52ce88=a68_0x501b;return _0x29ca13[_0x52ce88(0x1c7)](_0x2591b6,_0x22ab8a);},'GqprI':_0x29ca13[_0x2f10ad(0x1f7)],'HEayS':function(_0x1dec17,_0x4ecd9b){const _0x5c35d2=_0x2f10ad;return _0x29ca13[_0x5c35d2(0x1f2)](_0x1dec17,_0x4ecd9b);},'DZIKg':function(_0x2cfca8,_0x20cc65){const _0x2e0bc3=_0x2f10ad;return _0x29ca13[_0x2e0bc3(0x1e4)](_0x2cfca8,_0x20cc65);}};fs[_0x2f10ad(0x240)](_0xe6182e,_0x56d9ce=>{const _0x13d0ba=_0x2f10ad;_0x56d9ce&&logger[_0x13d0ba(0x242)](_0x13d0ba(0x22f)+_0xe6182e);});const _0x19b2f3=path[_0x2f10ad(0x227)](_0x20a6df,_0x1914b5+_0x2f10ad(0x273)+process[_0x2f10ad(0x1e5)]),_0x3e2645=path[_0x2f10ad(0x227)](_0x20a6df,_0x1914b5);fs[_0x2f10ad(0x225)](_0x19b2f3,_0x29ca13[_0x2f10ad(0x264)],function(_0x20f801){const _0x38586b=_0x2f10ad;if(_0x20f801){_0x3a5170['close'](),fs[_0x38586b(0x240)](_0x19b2f3,()=>{}),_0x29ca13[_0x38586b(0x1c2)](_0x14fa10,_0x20f801);return;}fs[_0x38586b(0x1e3)](_0x19b2f3,_0x3e2645,function(_0x4b40b3){const _0x123d89=_0x38586b;if(_0x4b40b3){if(_0x20f6db[_0x123d89(0x1ea)](_0x4b40b3[_0x123d89(0x1d7)],_0x20f6db[_0x123d89(0x254)])){_0x3a5170['close'](),fs[_0x123d89(0x240)](_0x19b2f3,()=>{}),_0x20f6db[_0x123d89(0x20a)](_0x14fa10,_0x4b40b3);return;}logger[_0x123d89(0x242)](_0x123d89(0x251)+_0x4b40b3[_0x123d89(0x1fb)]);try{fs['copyFileSync'](_0x19b2f3,_0x3e2645);}catch(_0x298caa){_0x3a5170['close'](),fs[_0x123d89(0x240)](_0x19b2f3,()=>{}),_0x20f6db[_0x123d89(0x1a0)](_0x14fa10,_0x298caa);return;}fs[_0x123d89(0x240)](_0x19b2f3,_0x5803bb=>{const _0x262f04=_0x123d89;_0x5803bb&&logger['warn'](_0x262f04(0x25f)+_0x5803bb[_0x262f04(0x1fb)]);});}_0x3a5170[_0x123d89(0x218)](),_0x20f6db['DZIKg'](_0x58653f,_0x3e2645);});});});});});}static[a68_0x151ccb(0x255)](){const _0x6ddc4=a68_0x151ccb;if(process[_0x6ddc4(0x1eb)][_0x6ddc4(0x1a8)])return JSON[_0x6ddc4(0x24a)](process[_0x6ddc4(0x1eb)][_0x6ddc4(0x1a8)]);return this[_0x6ddc4(0x211)];}static['getAutomationFrameworkDetail'](){const _0x324518=a68_0x151ccb;if(process['env'][_0x324518(0x26e)])return JSON[_0x324518(0x24a)](process[_0x324518(0x1eb)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']);return this[_0x324518(0x1b2)];}static['setFrameworkDetail'](_0x215637,_0x5c53c0){const _0x28e8d0=a68_0x151ccb,_0x26dfad={'JaJCb':_0x28e8d0(0x21c),'PSlEx':function(_0x363626,_0x5244aa){return _0x363626||_0x5244aa;},'lKGge':function(_0x4701c3,_0x507903){return _0x4701c3(_0x507903);},'KuxQp':function(_0x1f5bdf,_0x2b2e36){return _0x1f5bdf(_0x2b2e36);}},_0x1e8d24=_0x26dfad['JaJCb'][_0x28e8d0(0x1ad)]('|');let _0x52029d=0x0;while(!![]){switch(_0x1e8d24[_0x52029d++]){case'0':_0x26dfad[_0x28e8d0(0x22b)](!_0x215637,!_0x5c53c0)&&logger[_0x28e8d0(0x248)](_0x28e8d0(0x1c5)+_0x215637+_0x28e8d0(0x1e7)+_0x5c53c0);continue;case'1':this[_0x28e8d0(0x211)]={'name':_0x215637,'version':{[_0x215637]:_0x26dfad['lKGge'](getFrameworkVersion,_0x215637)}};continue;case'2':this[_0x28e8d0(0x1b2)]={'name':_0x5c53c0,'version':_0x26dfad[_0x28e8d0(0x269)](getFrameworkVersion,_0x5c53c0)};continue;case'3':process[_0x28e8d0(0x1eb)][_0x28e8d0(0x1a8)]=JSON[_0x28e8d0(0x22a)](this[_0x28e8d0(0x211)]);continue;case'4':process[_0x28e8d0(0x1eb)][_0x28e8d0(0x26e)]=JSON['stringify'](this[_0x28e8d0(0x1b2)]);continue;}break;}}static['getHookRegistryKey'](_0xe87b10,_0x5a42f4){return _0xe87b10+':'+_0x5a42f4;}static[a68_0x151ccb(0x1a4)](){const _0xde209=a68_0x151ccb;return process[_0xde209(0x1e5)]+':'+threadId;}static[a68_0x151ccb(0x1f8)](_0x2df245){const _0xbfed0e=a68_0x151ccb;if(_0x2df245['testContextOptions']&&_0x2df245[_0xbfed0e(0x261)]['skipSessionName'])return!![];return![];}static[a68_0x151ccb(0x19c)](_0x138ac7){const _0x2d6a17=a68_0x151ccb;if(_0x138ac7['testContextOptions']&&_0x138ac7[_0x2d6a17(0x261)][_0x2d6a17(0x208)])return!![];return![];}static[a68_0x151ccb(0x201)](_0x10fd65){const _0x3db6e1=a68_0x151ccb,_0x50ad46=new RegExp(TestFrameworkConstants[_0x3db6e1(0x1d3)]);return _0x50ad46[_0x3db6e1(0x1f9)](_0x10fd65);}static[a68_0x151ccb(0x239)](_0x4e0ca2,_0x54f4b8){const _0x22ad3c=a68_0x151ccb,_0x21fbc1={};_0x21fbc1[_0x22ad3c(0x1ec)]=function(_0x457b83,_0x5e6b04){return _0x457b83!==_0x5e6b04;},_0x21fbc1[_0x22ad3c(0x22c)]=function(_0x1a3829,_0x4c894c){return _0x1a3829===_0x4c894c;},_0x21fbc1[_0x22ad3c(0x257)]=_0x22ad3c(0x1fe);const _0x5427b2=_0x21fbc1;for(const [_0x2b8aae,_0x3b0c56]of Object[_0x22ad3c(0x1a9)](_0x54f4b8)){if(_0x5427b2[_0x22ad3c(0x1ec)](_0x3b0c56,null)&&_0x5427b2[_0x22ad3c(0x22c)](typeof _0x3b0c56,_0x5427b2[_0x22ad3c(0x257)])&&!Array[_0x22ad3c(0x268)](_0x3b0c56))_0x4e0ca2[_0x2b8aae]=this[_0x22ad3c(0x239)](_0x4e0ca2[_0x2b8aae]||{},_0x3b0c56);else Array['isArray'](_0x3b0c56)?_0x4e0ca2[_0x2b8aae]=(_0x4e0ca2[_0x2b8aae]||[])[_0x22ad3c(0x262)](_0x3b0c56):_0x4e0ca2[_0x2b8aae]=_0x3b0c56;}return _0x4e0ca2;}}module[a68_0x151ccb(0x223)]=CLIUtils;function a68_0x56e6(){const _0x4811a1=['Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','vUGGW','jQzuq','child_process','../../helpers/performance/constants','basename','CLIUtils','closeSync','rename','HMYHH','pid','binary-',',\x20automationFramework=','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','url','EHIEK','env','TsQaG','nBNir','follow-redirects','filePath','Resolving\x20with\x20stdout:\x20\x22','lbitA','GIoSR','1818360GKixZA','./instances/testFrameworkInstance.js','existsSync','PNhlE','RhIVz','shouldSkipSessionName','test','Folder\x20','message','error','joDsR','object','Jkrup','6KDtbzW','matchHookRegex','../../helpers/helper','worker_threads','Current\x20CLI\x20Path\x20Found:\x20','XYFIa','fileName','qqGfH','skipSessionStatus','includes','HEayS','SHELL_EXECUTE_ERROR','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','WjWHO','requestToUpdateCLI','createWriteStream','../utils/apiUtilityMethods.js','testFrameworkDetail','Downloading\x20SDK\x20binary\x20from:\x20','vajzQ','../utils/constants','EUzLO','timeout','qCwNC','close','odjIX','./state/hookState.js','reduce','0|1|2|4|3','dDOUn','setupCliPath','trim','../../helpers/utilities','map','sRJux','exports','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','chmod','1229320OlAdRA','join','BROWSERSTACK_CLI_ENV','aAnSI','stringify','PSlEx','AqPrP','jdWpn','eAIeT','Failed\x20to\x20delete\x20zip\x20file:\x20','ZAucB','455658QgKUPq','tnvwU','XxsCk','Ktxdc','format','yJhix','../../helpers/performance/performance-tester.js','isFile','mergeObject','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','runShellCommand','SDK_CLI_BIN_PATH','SDK_CLI_CHECK_UPDATE','Folder\x20does\x20not\x20exist:\x20','data','unlink','yauzl','warn','0755','jKHgJ','isDevelopmentEnv','UiHFH','FGHDQ','debug','nMlZH','parse','readEntry','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','xnEfX','../../helpers/test-observability/utils.js','WuCwZ','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20','mqKQM','GqprI','getTestFrameworkDetail','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','CbhdC','end','downloaded_file_','Setting\x20required\x20permissions\x20to\x20','getSdkVersion','getCLIParamsForDevEnv','1731960gqjrFf','mtime','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','testContextOptions','concat','getCliDir','bZqKH','arch','downloadFileStream','CLI\x20version\x20found\x20despite\x20error:\x20\x22','isArray','KuxQp','NOulu','checkAndUpdateCli','SDK_CLI_DOWNLOAD','49076Nabwqg','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','statSync','../../../package.json','56274RaxvID','Vhkdg','.tmp.','NZkzz','pPkQt','cwd','Error\x20while\x20reading\x20CLI\x20path:\x20','get','getWritableDir','mgbqf','./state/testFrameworkState.js','IzaRC','../../helpers/classLogger.js','shouldSkipSessionStatus','Slhnf','GET','util','DZIKg','openReadStream','yvWnO','yLnzt','getCurrentInstanceName','BROWSERSTACK_BINARY_URL','nFfmq','version','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','entries','LMfKb','cli_version','hTavb','split','EXDEV','isDirectory','fpYXx','\x20already\x20exists','automationFrameworkDetail','452370DaCcGK','Resolved\x20binary\x20path:\x20','NksBP','./framework/constants/testFrameworkConstants.js','unix:/tmp/sdk-platform-','start','entry','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','RnyIN','DLXYM','QWver','yZSsf','WHals','KjBNr','jbQPE','IPcRW','startsWith','once','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','BlDCf','getExistingCliPath','4vroLdh','oSNdC','BROWSERSTACK_FILES_DIR','tuOoo','info','downloadLatestBinary','length','NqGFy','pipe','lazyEntries','HOOK_REGEX','response\x20','path','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','code','Lnpfj','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'];a68_0x56e6=function(){return _0x4811a1;};return a68_0x56e6();}
1
+ const a68_0x25f646=a68_0x4953;(function(_0x5e8aae,_0x2987ca){const _0x5e9334=a68_0x4953,_0xe8509=_0x5e8aae();while(!![]){try{const _0x1fa323=-parseInt(_0x5e9334(0x1ec))/0x1*(parseInt(_0x5e9334(0x204))/0x2)+parseInt(_0x5e9334(0x1e5))/0x3*(-parseInt(_0x5e9334(0x1ca))/0x4)+-parseInt(_0x5e9334(0x1ab))/0x5+parseInt(_0x5e9334(0x16d))/0x6*(parseInt(_0x5e9334(0x1b7))/0x7)+-parseInt(_0x5e9334(0x19c))/0x8*(-parseInt(_0x5e9334(0x1ad))/0x9)+-parseInt(_0x5e9334(0x20f))/0xa*(parseInt(_0x5e9334(0x1d3))/0xb)+-parseInt(_0x5e9334(0x187))/0xc*(-parseInt(_0x5e9334(0x173))/0xd);if(_0x1fa323===_0x2987ca)break;else _0xe8509['push'](_0xe8509['shift']());}catch(_0x3b112c){_0xe8509['push'](_0xe8509['shift']());}}}(a68_0x51d9,0xa394d));function a68_0x4953(_0x5e8399,_0x4a6d95){const _0x51d9e9=a68_0x51d9();return a68_0x4953=function(_0x4953a9,_0x4ffe68){_0x4953a9=_0x4953a9-0x15e;let _0x295484=_0x51d9e9[_0x4953a9];return _0x295484;},a68_0x4953(_0x5e8399,_0x4a6d95);}const fs=require('fs'),os=require('os'),url=require(a68_0x25f646(0x1c3)),path=require(a68_0x25f646(0x230)),{exec}=require(a68_0x25f646(0x168)),{https}=require(a68_0x25f646(0x1d4)),yauzl=require(a68_0x25f646(0x1cb)),util=require('util'),{getFrameworkVersion}=require(a68_0x25f646(0x1b5)),{threadId}=require('worker_threads'),PerformanceTester=require(a68_0x25f646(0x1ae)),{EVENTS:PerformanceEvents}=require('../../helpers/performance/constants'),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a68_0x25f646(0x1d8)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a68_0x25f646(0x18e)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a68_0x25f646(0x220)),{createClassLogger}=require(a68_0x25f646(0x1f6)),TestFrameworkInstance=require('./instances/testFrameworkInstance.js'),HookState=require('./state/hookState.js'),TestFrameworkState=require(a68_0x25f646(0x180)),AutomationFrameworkState=require('./state/automationFrameworkState.js'),TestFrameworkConstants=require(a68_0x25f646(0x225)),logger=createClassLogger(a68_0x25f646(0x209)),{getBStackAPIUrl}=require(a68_0x25f646(0x21e));function a68_0x51d9(){const _0xf470de=['1265810LmSgYo','error','MxqnT','getSdkVersion','unix:/tmp/sdk-platform-','CLIUtils','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','warn','SDK_CLI_CHECK_UPDATE','gqJmx','Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20','7090ueBfvf','LzFjr','setFrameworkDetail','map','parse','AnTWx','wlqCO','WHpLo','runShellCommand','BROWSERSTACK_CLI_ENV','TIlPe','lazyEntries','shouldSkipSessionName','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','isDevelopmentEnv','../utils/apiUtilityMethods.js','hJTBX','../utils/constants','hYgXz','homedir','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','Configuring\x20Cli\x20path.','./framework/constants/testFrameworkConstants.js','psHKS','mwkxm','FBlxo','ukBlz','env','PILaO','BROWSERSTACK_BINARY_URL','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','Fsifr','fileName','path','WzPfI','open','split','EmpcY','pid','cli_version','trim','ZAPJV','gZhrR','LOfql','BROWSERSTACK_FILES_DIR','unlink','cwd','child_process','.zip','getHookRegistryKey','LdATh','code','12nGIINf','readEntry','YDwqG','tRNGs','tmpdir','getWritableDir','654875QohogT','basename','SHELL_EXECUTE_ERROR',',\x20automationFramework=','KknkB','lutgz','copyFileSync','length','node','getCliDir','NuAIU','wXXLA','BGeTJ','./state/testFrameworkState.js','rename','\x20already\x20exists','entry','mergeObject','OoVIt','dSTvw','588bRtjbq','HWoXm','luIcB','Folder\x20does\x20not\x20exist:\x20','response\x20','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','message','../../helpers/helper','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','isArray','join','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','checkAndUpdateCli','close','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','LlIVi','wPNBi','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','eSheH','LHonF','includes','8KLEtPW','statSync','vSNcm','skWgW','VRUvO','end','poUsH','Failed\x20to\x20delete\x20zip\x20file:\x20','automationFrameworkDetail','createWriteStream','get','SDK_CLI_DOWNLOAD','dZRGJ','debug','gpgVC','6051160RulTxB','timeout','3796317BslGsa','../../helpers/performance/performance-tester.js','YErqD','Apeml','data','GET','dwYVg','skipSessionName','../../helpers/test-observability/utils.js','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','405608jiDbci','NrOxn','.browserstack','iNrJP','SDK_CLI_BIN_PATH','Folder\x20','existsSync','DcdFC','shouldSkipSessionStatus','closeSync','Development\x20Cli\x20Path:\x20','.tmp.','url','sQMBk','info','matchHookRegex','downloadLatestBinary','getExistingCliPath','UVgIh','184724zkzSAs','yauzl','reduce','vcNmB','SsUVO','CGxRb','downloadFileStream','isBinaryBusy','UOwQm','1199ykEGtv','follow-redirects','nmBCJ','DXmKF','HCtYk','../../helpers/utilities','test','mtime','yaJGe','mAgVU','WvrGt','soTgB','WzGtG','format','object','DMjgR','filePath','FYClO','27IYmDvm','HzWqd','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','ZexdY','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','version','Setting\x20required\x20permissions\x20to\x20','1ftNFXi','Grpgb','requestToUpdateCLI','exports','\x20version','vAEAY','start','WAIub','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','stringify','../../helpers/classLogger.js','once','nrDxa','Resolved\x20binary\x20path:\x20','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','dUsvH','testFrameworkDetail','cuedS','testContextOptions','ULVsl','CLI\x20version\x20found\x20despite\x20error:\x20\x22','wZpRO','setupCliPath','getAutomationFrameworkDetail'];a68_0x51d9=function(){return _0xf470de;};return a68_0x51d9();}class CLIUtils{[a68_0x25f646(0x1a4)]={};[a68_0x25f646(0x1fc)]={};static[a68_0x25f646(0x21d)](){const _0x3d94c4=a68_0x25f646,_0x286535={};_0x286535[_0x3d94c4(0x1af)]=function(_0x4a221e,_0x4ae3c2){return _0x4a221e===_0x4ae3c2;},_0x286535[_0x3d94c4(0x1b3)]='development';const _0x11f6e3=_0x286535;return _0x11f6e3[_0x3d94c4(0x1af)](process[_0x3d94c4(0x22a)][_0x3d94c4(0x218)],_0x11f6e3[_0x3d94c4(0x1b3)]);}static['getCLIParamsForDevEnv'](){const _0x3248d1=a68_0x25f646,_0xfc13ac={};return _0xfc13ac['id']=process[_0x3248d1(0x22a)][_0x3248d1(0x218)],_0xfc13ac['listen']=_0x3248d1(0x208)+process[_0x3248d1(0x22a)][_0x3248d1(0x218)]+'.sock',_0xfc13ac;}static[a68_0x25f646(0x207)](){const _0xdc1fb6=a68_0x25f646,_0x4bc2f2={'wZpRO':function(_0x3286df,_0x11dc7a){return _0x3286df(_0x11dc7a);},'LzFjr':'../../../package.json'};return _0x4bc2f2[_0xdc1fb6(0x201)](require,_0x4bc2f2[_0xdc1fb6(0x210)])[_0xdc1fb6(0x1ea)];}static['getSdkLanguage'](){const _0x4f9af5=a68_0x25f646,_0x228dd2={};_0x228dd2[_0x4f9af5(0x1be)]=_0x4f9af5(0x17b);const _0x63ab6c=_0x228dd2;return _0x63ab6c[_0x4f9af5(0x1be)];}static async[a68_0x25f646(0x202)](_0x213178){const _0x369584=a68_0x25f646,_0x3d7ec0={'kgJqd':_0x369584(0x224),'hYgXz':function(_0x5eea6e,_0x2fb438){return _0x5eea6e(_0x2fb438);},'TIlPe':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI'};logger[_0x369584(0x1a9)](_0x3d7ec0['kgJqd']);const _0x2085bb=process[_0x369584(0x22a)][_0x369584(0x1bb)];if(!_0x3d7ec0[_0x369584(0x221)](isNullOrEmpty,_0x2085bb))return logger['debug'](_0x369584(0x1c1)+_0x2085bb),_0x2085bb;try{const _0x4d528e=this[_0x369584(0x17c)]();if(_0x3d7ec0[_0x369584(0x221)](isNullOrEmpty,_0x4d528e))throw new Error(_0x3d7ec0[_0x369584(0x219)]);const _0x15e5d9=this[_0x369584(0x1c8)](_0x4d528e),_0x3cd66b=await this[_0x369584(0x193)](_0x15e5d9,_0x4d528e,_0x213178);return logger[_0x369584(0x1a9)](_0x369584(0x1f9)+_0x3cd66b),_0x3cd66b;}catch(_0x44f198){logger[_0x369584(0x1a9)](_0x369584(0x18c)+util[_0x369584(0x1e0)](_0x44f198));}return null;}static async['checkAndUpdateCli'](_0x149d8f,_0x1dc2de,_0x3aa9dc){const _0x294c7e=a68_0x25f646,_0x16801b={'poUsH':function(_0xa43d90){return _0xa43d90();},'dUsvH':function(_0x3a3edc,_0x2c3441){return _0x3a3edc(_0x2c3441);},'CGxRb':function(_0x2408f7,_0x2b82d0,_0x3c542f){return _0x2408f7(_0x2b82d0,_0x3c542f);},'LdATh':'data','WAIub':_0x294c7e(0x1c3),'NrOxn':function(_0x2c51f8,_0x383a3b,_0x483aab){return _0x2c51f8(_0x383a3b,_0x483aab);}};PerformanceTester['start'](PerformanceEvents[_0x294c7e(0x20c)]),logger[_0x294c7e(0x1c5)]('Current\x20CLI\x20Path\x20Found:\x20'+_0x149d8f);const _0x43c829=_0x16801b[_0x294c7e(0x1a2)](getHostInfo),_0x281329={'sdk_version':CLIUtils[_0x294c7e(0x207)](),'os':_0x43c829['platform'],'os_arch':_0x43c829['arch'],'cli_version':'0','sdk_language':this['getSdkLanguage']()};!_0x16801b[_0x294c7e(0x1fb)](isNullOrEmpty,_0x149d8f)&&(_0x281329[_0x294c7e(0x160)]=await this[_0x294c7e(0x217)](_0x149d8f+_0x294c7e(0x1f0)));const _0x458025=await this[_0x294c7e(0x1ee)](_0x281329,_0x3aa9dc);process['env'][_0x294c7e(0x22c)]&&(logger[_0x294c7e(0x1c5)](_0x294c7e(0x195)+process[_0x294c7e(0x22a)][_0x294c7e(0x22c)]),_0x458025[_0x294c7e(0x1b1)][_0x294c7e(0x1c3)]=process[_0x294c7e(0x22a)]['BROWSERSTACK_BINARY_URL']);if(_0x16801b[_0x294c7e(0x1cf)](nestedKeyValue,_0x458025,[_0x16801b[_0x294c7e(0x16b)],_0x16801b[_0x294c7e(0x1f3)]])){logger['debug'](_0x294c7e(0x18f)+_0x281329['cli_version']);if(!_0x16801b[_0x294c7e(0x1fb)](isNullOrEmpty,_0x149d8f)&&this['isBinaryBusy'](_0x149d8f))return logger[_0x294c7e(0x20b)]('Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20'+_0x149d8f),PerformanceTester['end'](PerformanceEvents[_0x294c7e(0x20c)]),_0x149d8f;const _0x5f5904=await this['downloadLatestBinary'](_0x16801b[_0x294c7e(0x1b8)](nestedKeyValue,_0x458025,[_0x16801b['LdATh'],_0x16801b['WAIub']]),_0x1dc2de);return PerformanceTester['end'](PerformanceEvents[_0x294c7e(0x20c)]),_0x5f5904;}return PerformanceTester[_0x294c7e(0x1a1)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x149d8f;}static['getCliDir'](){const _0x25c571=a68_0x25f646,_0x36c013={'Apeml':function(_0x27f55b,_0x37a214){return _0x27f55b(_0x37a214);},'dSTvw':_0x25c571(0x1e9),'ZAPJV':'cli','eSheH':function(_0x3d47fb,_0x2ef925){return _0x3d47fb(_0x2ef925);}},_0x324552=this[_0x25c571(0x172)]();try{if(_0x36c013[_0x25c571(0x1b0)](isNullOrEmpty,_0x324552))throw new Error(_0x36c013[_0x25c571(0x186)]);const _0x2e299f=path[_0x25c571(0x191)](_0x324552,_0x36c013[_0x25c571(0x162)]);return!fs[_0x25c571(0x1bd)](_0x2e299f)&&_0x36c013[_0x25c571(0x199)](createDir,_0x2e299f),_0x2e299f;}catch(_0xc2e54d){logger['debug'](_0x25c571(0x223)+util[_0x25c571(0x1e0)](_0xc2e54d));}}static[a68_0x25f646(0x172)](){const _0x345c2f=a68_0x25f646,_0x242297={'BGeTJ':_0x345c2f(0x1b9),'gZhrR':function(_0x47c6db,_0x457249){return _0x47c6db(_0x457249);},'gqJmx':function(_0x2662ac,_0x4b4edd){return _0x2662ac(_0x4b4edd);},'FipNp':function(_0x1ce84b,_0x273202){return _0x1ce84b(_0x273202);},'ULVsl':function(_0x2d9ccb,_0x4a4052){return _0x2d9ccb(_0x4a4052);}},_0x50becc=[process[_0x345c2f(0x22a)][_0x345c2f(0x165)],path[_0x345c2f(0x191)](os[_0x345c2f(0x222)](),_0x242297[_0x345c2f(0x17f)]),path[_0x345c2f(0x191)](os[_0x345c2f(0x171)](),_0x242297[_0x345c2f(0x17f)])];for(const _0x2b04c1 of _0x50becc){if(_0x242297[_0x345c2f(0x163)](isNullOrEmpty,_0x2b04c1))continue;try{if(fs[_0x345c2f(0x1bd)](_0x2b04c1)){logger[_0x345c2f(0x1a9)](_0x345c2f(0x1bc)+_0x2b04c1+_0x345c2f(0x182));if(!_0x242297[_0x345c2f(0x20d)](isModifiable,_0x2b04c1)){logger[_0x345c2f(0x1a9)](_0x345c2f(0x1eb)+_0x2b04c1);const _0x42fcec=_0x242297[_0x345c2f(0x20d)](setReadWriteExecuteAccess,_0x2b04c1);if(!_0x242297['gZhrR'](isTrue,_0x42fcec)){logger[_0x345c2f(0x20b)](_0x345c2f(0x1e7)+_0x2b04c1);continue;}}}else{logger[_0x345c2f(0x1a9)](_0x345c2f(0x18a)+_0x2b04c1),_0x242297['FipNp'](createDir,_0x2b04c1),logger['debug'](_0x345c2f(0x1eb)+_0x2b04c1);const _0x4f1e45=_0x242297[_0x345c2f(0x1ff)](setReadWriteExecuteAccess,_0x2b04c1);!_0x242297['ULVsl'](isTrue,_0x4f1e45)&&logger[_0x345c2f(0x20b)](_0x345c2f(0x1e7)+_0x2b04c1);}return _0x2b04c1;}catch(_0x39d592){logger[_0x345c2f(0x205)]('Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20'+util[_0x345c2f(0x1e0)](_0x39d592));}}return null;}static[a68_0x25f646(0x1c8)](_0x551bfd){const _0x5e309f=a68_0x25f646,_0x4cec39={};_0x4cec39[_0x5e309f(0x1db)]=function(_0x2da2ec,_0xd033af){return _0x2da2ec>_0xd033af;};const _0x1542f8=_0x4cec39;try{if(!fs[_0x5e309f(0x1bd)](_0x551bfd)||!fs[_0x5e309f(0x19d)](_0x551bfd)['isDirectory']())return'';const _0x406337=fs['readdirSync'](_0x551bfd)[_0x5e309f(0x212)](_0x13d166=>path[_0x5e309f(0x191)](_0x551bfd,_0x13d166))['filter'](_0x1ac045=>fs['statSync'](_0x1ac045)['isFile']()&&path[_0x5e309f(0x174)](_0x1ac045)['startsWith']('binary-'));if(_0x1542f8[_0x5e309f(0x1db)](_0x406337[_0x5e309f(0x17a)],0x0)){const _0x380968=_0x406337[_0x5e309f(0x212)](_0x46c056=>({'filePath':_0x46c056,'mtime':fs[_0x5e309f(0x19d)](_0x46c056)[_0x5e309f(0x1da)]}))[_0x5e309f(0x1cc)]((_0x28d904,_0x3867dc)=>{const _0x13ad51=_0x5e309f;if(!_0x28d904||!_0x28d904[_0x13ad51(0x1da)])return _0x3867dc;if(_0x1542f8[_0x13ad51(0x1db)](_0x3867dc[_0x13ad51(0x1da)],_0x28d904[_0x13ad51(0x1da)]))return _0x3867dc;return _0x28d904;},{});return _0x380968?_0x380968[_0x5e309f(0x1e3)]:'';}return'';}catch(_0x35eef9){return logger['error']('Error\x20while\x20reading\x20CLI\x20path:\x20'+util['format'](_0x35eef9)),'';}}static [a68_0x25f646(0x1ee)]=async(_0x108755,_0x569ab7)=>{const _0x4c2b48=a68_0x25f646,_0xc09e1={'WvrGt':function(_0x7c692d,_0x3a55bf,_0x36dd6c,_0x28ba32,_0x3aae26){return _0x7c692d(_0x3a55bf,_0x36dd6c,_0x28ba32,_0x3aae26);},'skWgW':_0x4c2b48(0x1b2)},_0x44d28f={};_0x44d28f['qs']=_0x108755;const _0x2c4788=await _0xc09e1[_0x4c2b48(0x1dd)](nodeRequest,_0xc09e1[_0x4c2b48(0x19f)],UPDATED_CLI_ENDPOINT,_0x44d28f,_0x569ab7);return logger[_0x4c2b48(0x1a9)](_0x4c2b48(0x18b)+JSON[_0x4c2b48(0x1f5)](_0x2c4788)),_0x2c4788;};static[a68_0x25f646(0x1d1)](_0x1eb46d){const _0x2c7927=a68_0x25f646;try{const _0x1716f8=fs['openSync'](_0x1eb46d,'r+');return fs[_0x2c7927(0x1c0)](_0x1716f8),![];}catch(_0x436489){if(BINARY_BUSY_ERROR_CODES[_0x2c7927(0x19b)](_0x436489[_0x2c7927(0x16c)]))return logger[_0x2c7927(0x1a9)]('Binary\x20is\x20busy:\x20'+_0x1eb46d),!![];return logger[_0x2c7927(0x1a9)](_0x2c7927(0x22d)+_0x436489[_0x2c7927(0x18d)]),![];}}static[a68_0x25f646(0x217)](_0x328299,_0x54b633=''){const _0x58bd0b=a68_0x25f646,_0x156ff5={'mwkxm':function(_0x3799ea,_0x107dcf){return _0x3799ea(_0x107dcf);},'soTgB':_0x58bd0b(0x175),'lseFo':'version','luIcB':function(_0xc9b1ec,_0x83eb15){return _0xc9b1ec(_0x83eb15);},'FBlxo':function(_0x1d0bab,_0x2a5794,_0x1c6a60,_0x4f70e6){return _0x1d0bab(_0x2a5794,_0x1c6a60,_0x4f70e6);},'VRUvO':'error'};return new Promise((_0x5d6e17,_0x1216d1)=>{const _0x45ffe2=_0x58bd0b,_0x53ca23={'wlqCO':_0x156ff5['lseFo'],'NuAIU':function(_0x23496c,_0x31a4e1){const _0x5678e5=a68_0x4953;return _0x156ff5[_0x5678e5(0x227)](_0x23496c,_0x31a4e1);},'WzPfI':function(_0x2b6c53,_0x136a84){const _0x416c18=a68_0x4953;return _0x156ff5[_0x416c18(0x189)](_0x2b6c53,_0x136a84);},'Fsifr':_0x156ff5[_0x45ffe2(0x1de)]},_0x30cd63={};_0x30cd63[_0x45ffe2(0x167)]=_0x54b633,_0x30cd63[_0x45ffe2(0x1ac)]=0x1388;const _0x325926=_0x156ff5[_0x45ffe2(0x228)](exec,_0x328299,_0x30cd63,(_0x2f4767,_0x59cacb,_0x1e478e)=>{const _0x1481b0=_0x45ffe2;if(_0x2f4767){if(_0x328299[_0x1481b0(0x19b)](_0x53ca23[_0x1481b0(0x215)])&&(_0x59cacb[_0x1481b0(0x161)]()||_0x1e478e['trim']())){const _0x3416fd=_0x59cacb[_0x1481b0(0x161)]()||_0x1e478e[_0x1481b0(0x161)]();logger['debug'](_0x1481b0(0x200)+_0x3416fd+'\x22'),_0x53ca23[_0x1481b0(0x17d)](_0x5d6e17,_0x3416fd);}else _0x53ca23[_0x1481b0(0x231)](_0x5d6e17,_0x1e478e[_0x1481b0(0x161)]()||_0x53ca23[_0x1481b0(0x22e)]);}else logger[_0x1481b0(0x1a9)]('Resolving\x20with\x20stdout:\x20\x22'+_0x59cacb[_0x1481b0(0x161)]()+'\x22'),_0x53ca23[_0x1481b0(0x17d)](_0x5d6e17,_0x59cacb[_0x1481b0(0x161)]());});_0x325926['on'](_0x156ff5[_0x45ffe2(0x1a0)],()=>{const _0x437ef3=_0x45ffe2;_0x156ff5[_0x437ef3(0x227)](_0x5d6e17,_0x156ff5['soTgB']);});});}static [a68_0x25f646(0x1c7)]=async(_0x457ce9,_0x26d834)=>{const _0x5cc922=a68_0x25f646,_0x4953d9={'UVgIh':'Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','ukBlz':function(_0x2aea79,_0x504945){return _0x2aea79(_0x504945);},'WHpLo':_0x5cc922(0x205),'dZRGJ':_0x5cc922(0x1f4)};PerformanceTester[_0x5cc922(0x1f2)](PerformanceEvents[_0x5cc922(0x1a7)]),logger['debug']('Downloading\x20SDK\x20binary\x20from:\x20'+_0x457ce9);try{const _0x58ae3b=url[_0x5cc922(0x213)](_0x457ce9),_0x2eabb6=path['join'](_0x26d834,'downloaded_file_'+process['pid']+_0x5cc922(0x169)),_0x243578=fs[_0x5cc922(0x1a5)](_0x2eabb6);return new Promise((_0x351cf8,_0xbe0dca)=>{const _0x5c8e69=_0x5cc922,_0x200910={'cuedS':_0x4953d9[_0x5c8e69(0x1a8)],'DMjgR':function(_0x3bba91,_0x4f3b92){const _0x48b82b=_0x5c8e69;return _0x4953d9[_0x48b82b(0x229)](_0x3bba91,_0x4f3b92);}};https[_0x5c8e69(0x1a6)](_0x58ae3b,function(_0x512033){const _0x5d9451=_0x5c8e69,_0x746f4d={'Nnonp':_0x4953d9[_0x5d9451(0x1c9)],'tRNGs':function(_0x276715,_0x39d968){return _0x4953d9['ukBlz'](_0x276715,_0x39d968);}},_0x50f530=null;_0x512033['pipe'](_0x243578),_0x512033['on'](_0x4953d9[_0x5d9451(0x216)],function(_0x35da29){const _0x329882=_0x5d9451;logger[_0x329882(0x205)](util[_0x329882(0x1e0)](_0x200910[_0x329882(0x1fd)],_0x35da29)),PerformanceTester['end'](PerformanceEvents[_0x329882(0x1a7)],![],util[_0x329882(0x1e0)](_0x35da29)),_0x200910[_0x329882(0x1e2)](_0xbe0dca,_0x35da29);}),_0x243578['on'](_0x4953d9['WHpLo'],function(_0x413b0a){const _0x3b1ab7=_0x5d9451;logger[_0x3b1ab7(0x205)](util[_0x3b1ab7(0x1e0)](_0x746f4d['Nnonp'],_0x413b0a)),PerformanceTester[_0x3b1ab7(0x1a1)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x3b1ab7(0x1e0)](_0x413b0a)),_0x746f4d[_0x3b1ab7(0x170)](_0xbe0dca,_0x413b0a);}),CLIUtils[_0x5d9451(0x1d0)](_0x243578,_0x50f530,_0x2eabb6,_0x26d834,_0xcfc6e8=>{const _0x4e42ec=_0x5d9451;PerformanceTester[_0x4e42ec(0x1a1)](PerformanceEvents[_0x4e42ec(0x1a7)]),_0x200910['DMjgR'](_0x351cf8,_0xcfc6e8);},_0x1ae06f=>{const _0x1bc936=_0x5d9451;PerformanceTester['end'](PerformanceEvents[_0x1bc936(0x1a7)],![],util[_0x1bc936(0x1e0)](_0x1ae06f)),_0x200910[_0x1bc936(0x1e2)](_0xbe0dca,_0x1ae06f);});})['on'](_0x4953d9[_0x5c8e69(0x216)],function(_0x20d598){const _0xda7cba=_0x5c8e69;logger[_0xda7cba(0x205)]('Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20'+util['format'](_0x20d598)),PerformanceTester[_0xda7cba(0x1a1)](PerformanceEvents[_0xda7cba(0x1a7)],![],util['format'](_0x20d598)),_0x4953d9['ukBlz'](_0xbe0dca,_0x20d598);});});}catch(_0x259498){PerformanceTester[_0x5cc922(0x1a1)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x5cc922(0x1e0)](_0x259498)),logger['debug'](_0x5cc922(0x20e)+util[_0x5cc922(0x1e0)](_0x259498));}};static[a68_0x25f646(0x1d0)](_0x196cc0,_0x156516,_0x677fe6,_0x1c482e,_0x45ebed,_0x5261a1){const _0x4dec86=a68_0x25f646,_0xf765c7={'KknkB':_0x4dec86(0x194),'OoVIt':function(_0x271eab,_0x25c32e){return _0x271eab(_0x25c32e);},'VXytd':_0x4dec86(0x1a1),'psHKS':function(_0x5e5363,_0x1cb064){return _0x5e5363!==_0x1cb064;},'HCtYk':'error','SsUVO':function(_0x56c009,_0x5c7ef6){return _0x56c009(_0x5c7ef6);},'sVpZU':'EXDEV','nrDxa':'0755','vAEAY':_0x4dec86(0x183)};_0x196cc0['on'](_0xf765c7[_0x4dec86(0x177)],function(){const _0x394172=_0x4dec86,_0x580ac5={'iNrJP':_0xf765c7[_0x394172(0x177)],'LOfql':function(_0x31c830,_0x6533de){const _0x502f10=_0x394172;return _0xf765c7[_0x502f10(0x185)](_0x31c830,_0x6533de);},'wPNBi':_0xf765c7['VXytd'],'rDvML':function(_0x377389,_0x5c9d4e){const _0x320e8e=_0x394172;return _0xf765c7[_0x320e8e(0x226)](_0x377389,_0x5c9d4e);},'PILaO':function(_0x4d97ab,_0x1048b3){const _0x503583=_0x394172;return _0xf765c7[_0x503583(0x185)](_0x4d97ab,_0x1048b3);},'UOwQm':_0xf765c7[_0x394172(0x1d7)],'hJTBX':function(_0x7da154,_0x435c8e){const _0x491fc0=_0x394172;return _0xf765c7[_0x491fc0(0x1ce)](_0x7da154,_0x435c8e);},'AnTWx':function(_0x26dd30,_0x391b31){const _0x49b3a0=_0x394172;return _0xf765c7[_0x49b3a0(0x226)](_0x26dd30,_0x391b31);},'wXXLA':_0xf765c7['sVpZU'],'mqEmg':function(_0x1db82c,_0x39aca3){const _0x1daa6d=_0x394172;return _0xf765c7[_0x1daa6d(0x1ce)](_0x1db82c,_0x39aca3);},'LHonF':_0xf765c7[_0x394172(0x1f8)],'Grpgb':function(_0x24f7b8,_0x558ddd){const _0x2db4db=_0x394172;return _0xf765c7[_0x2db4db(0x1ce)](_0x24f7b8,_0x558ddd);},'WzGtG':_0xf765c7[_0x394172(0x1f1)]},_0x379b07={};_0x379b07[_0x394172(0x21a)]=!![],yauzl[_0x394172(0x232)](_0x677fe6,_0x379b07,function(_0xaedde8,_0x4222e0){const _0x4279a7=_0x394172,_0xe458db={'LYKan':function(_0x274a27,_0x1bdeb8){const _0xde4210=a68_0x4953;return _0x580ac5[_0xde4210(0x164)](_0x274a27,_0x1bdeb8);},'gpgVC':function(_0x583131,_0x513050){const _0x3dbc36=a68_0x4953;return _0x580ac5[_0x3dbc36(0x164)](_0x583131,_0x513050);},'HWoXm':function(_0x3cc916,_0x55780e){const _0x724b03=a68_0x4953;return _0x580ac5[_0x724b03(0x21f)](_0x3cc916,_0x55780e);},'mAgVU':function(_0x4065ca,_0x34b9d8){const _0x4cd2be=a68_0x4953;return _0x580ac5[_0x4cd2be(0x214)](_0x4065ca,_0x34b9d8);},'HzWqd':_0x580ac5[_0x4279a7(0x17e)],'FYClO':function(_0x580977,_0x1abf6b){const _0x26ec71=_0x4279a7;return _0x580ac5[_0x26ec71(0x21f)](_0x580977,_0x1abf6b);},'UxOCz':function(_0xaf879d,_0x3adb2a){return _0x580ac5['mqEmg'](_0xaf879d,_0x3adb2a);},'DXmKF':_0x580ac5[_0x4279a7(0x19a)]};if(_0xaedde8){_0x580ac5[_0x4279a7(0x1ed)](_0x5261a1,_0xaedde8);return;}_0x4222e0['readEntry'](),_0x4222e0['on'](_0x580ac5[_0x4279a7(0x1df)],_0x20b545=>{const _0x1c9453=_0x4279a7,_0x5eddde={'EmpcY':_0x580ac5[_0x1c9453(0x1ba)],'YDwqG':function(_0x2e72f5,_0x5ec009){const _0xcdd9e7=_0x1c9453;return _0x580ac5[_0xcdd9e7(0x164)](_0x2e72f5,_0x5ec009);},'vcNmB':_0x580ac5[_0x1c9453(0x197)]};if(/\/$/[_0x1c9453(0x1d9)](_0x20b545['fileName'])){_0x4222e0['readEntry']();return;}!_0x156516&&(_0x156516=_0x20b545['fileName']);if(_0x580ac5['rDvML'](_0x20b545['fileName'],_0x156516))_0x4222e0[_0x1c9453(0x16e)]();else{const _0x2a1783=_0x20b545[_0x1c9453(0x22f)],_0x1dfa31=path[_0x1c9453(0x191)](_0x1c482e,_0x2a1783+_0x1c9453(0x1c2)+process[_0x1c9453(0x15f)]);let _0x327864;try{_0x327864=fs[_0x1c9453(0x1a5)](_0x1dfa31);}catch(_0x3d8b9a){if(BINARY_BUSY_ERROR_CODES['includes'](_0x3d8b9a['code'])){const _0x3c7716=path['join'](_0x1c482e,_0x2a1783);if(fs[_0x1c9453(0x1bd)](_0x3c7716)){logger[_0x1c9453(0x20b)](_0x1c9453(0x20a)+_0x2a1783),fs[_0x1c9453(0x166)](_0x677fe6,_0x2c5095=>{const _0x541ab0=_0x1c9453;_0x2c5095&&logger['warn'](_0x541ab0(0x1a3)+_0x677fe6);}),_0x580ac5[_0x1c9453(0x164)](_0x45ebed,_0x3c7716);return;}logger[_0x1c9453(0x20b)]('Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x2a1783);}_0x580ac5[_0x1c9453(0x22b)](_0x5261a1,_0x3d8b9a);return;}_0x327864['on'](_0x580ac5[_0x1c9453(0x1d2)],_0x2dd22f=>{const _0xe486f8=_0x1c9453;if(BINARY_BUSY_ERROR_CODES[_0xe486f8(0x19b)](_0x2dd22f[_0xe486f8(0x16c)])){const _0x12e1be=path[_0xe486f8(0x191)](_0x1c482e,_0x2a1783);_0x327864['close'](),fs[_0xe486f8(0x1bd)](_0x12e1be)?(logger[_0xe486f8(0x20b)]('Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x2dd22f[_0xe486f8(0x18d)]),_0x4222e0[_0xe486f8(0x194)](),fs[_0xe486f8(0x166)](_0x677fe6,_0x31ffed=>{const _0x4bddc3=_0xe486f8;_0x31ffed&&logger[_0x4bddc3(0x20b)](_0x4bddc3(0x1a3)+_0x677fe6);}),_0xe458db['LYKan'](_0x45ebed,_0x12e1be)):(logger[_0xe486f8(0x20b)]('Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x2dd22f['message']),fs['unlink'](_0x1dfa31,()=>{}),_0xe458db[_0xe486f8(0x1aa)](_0x5261a1,_0x2dd22f));}else fs[_0xe486f8(0x166)](_0x1dfa31,()=>{}),_0xe458db['LYKan'](_0x5261a1,_0x2dd22f);}),_0x4222e0['openReadStream'](_0x20b545,function(_0x1accd5,_0x483d4c){const _0x5208c7=_0x1c9453;if(_0x1accd5){fs[_0x5208c7(0x166)](_0x1dfa31,()=>{}),_0x5eddde[_0x5208c7(0x16f)](_0x5261a1,_0x1accd5);return;}_0x483d4c['on'](_0x5eddde[_0x5208c7(0x1cd)],function(){const _0x5bdcc6=_0x5208c7;_0x327864[_0x5bdcc6(0x1a1)](),_0x327864['on'](_0x5eddde[_0x5bdcc6(0x15e)],function(){const _0x53cd0c=_0x5bdcc6;_0x4222e0[_0x53cd0c(0x16e)]();});}),_0x483d4c['pipe'](_0x327864);});}}),_0x4222e0['on'](_0x580ac5[_0x4279a7(0x1d2)],_0x1ba8b0=>{const _0x13d049=_0x4279a7;_0xe458db[_0x13d049(0x188)](_0x5261a1,_0x1ba8b0);}),_0x4222e0[_0x4279a7(0x1f7)](_0x580ac5['wPNBi'],()=>{const _0x4ff508=_0x4279a7,_0x2f8061={'nmBCJ':function(_0x9ed6a7,_0x4a0722){const _0x15eb6e=a68_0x4953;return _0xe458db[_0x15eb6e(0x1dc)](_0x9ed6a7,_0x4a0722);},'MSNgp':_0xe458db[_0x4ff508(0x1e6)],'LlIVi':function(_0x53ad80,_0x14af29){const _0x1f8e7c=_0x4ff508;return _0xe458db[_0x1f8e7c(0x1e4)](_0x53ad80,_0x14af29);},'sQMBk':function(_0x2c03f9,_0x38caed){return _0xe458db['UxOCz'](_0x2c03f9,_0x38caed);}};fs[_0x4ff508(0x166)](_0x677fe6,_0x5de248=>{const _0xcc7026=_0x4ff508;_0x5de248&&logger['warn'](_0xcc7026(0x1a3)+_0x677fe6);});const _0x3c960b=path['join'](_0x1c482e,_0x156516+_0x4ff508(0x1c2)+process[_0x4ff508(0x15f)]),_0x5dfeec=path['join'](_0x1c482e,_0x156516);fs['chmod'](_0x3c960b,_0xe458db[_0x4ff508(0x1d6)],function(_0x49ef72){const _0x271939=_0x4ff508;if(_0x49ef72){_0x4222e0[_0x271939(0x194)](),fs[_0x271939(0x166)](_0x3c960b,()=>{}),_0x2f8061[_0x271939(0x1c4)](_0x5261a1,_0x49ef72);return;}fs[_0x271939(0x181)](_0x3c960b,_0x5dfeec,function(_0x403bd0){const _0x5f02af=_0x271939;if(_0x403bd0){if(_0x2f8061[_0x5f02af(0x1d5)](_0x403bd0['code'],_0x2f8061['MSNgp'])){_0x4222e0['close'](),fs['unlink'](_0x3c960b,()=>{}),_0x2f8061[_0x5f02af(0x196)](_0x5261a1,_0x403bd0);return;}logger[_0x5f02af(0x20b)](_0x5f02af(0x1b6)+_0x403bd0[_0x5f02af(0x18d)]);try{fs[_0x5f02af(0x179)](_0x3c960b,_0x5dfeec);}catch(_0x218259){_0x4222e0[_0x5f02af(0x194)](),fs[_0x5f02af(0x166)](_0x3c960b,()=>{}),_0x2f8061['sQMBk'](_0x5261a1,_0x218259);return;}fs['unlink'](_0x3c960b,_0x22a568=>{const _0x4a1c2c=_0x5f02af;_0x22a568&&logger['warn'](_0x4a1c2c(0x21c)+_0x22a568[_0x4a1c2c(0x18d)]);});}_0x4222e0[_0x5f02af(0x194)](),_0x2f8061[_0x5f02af(0x1c4)](_0x45ebed,_0x5dfeec);});});});});});}static['getTestFrameworkDetail'](){const _0x28f86b=a68_0x25f646;if(process[_0x28f86b(0x22a)][_0x28f86b(0x198)])return JSON[_0x28f86b(0x213)](process[_0x28f86b(0x22a)][_0x28f86b(0x198)]);return this[_0x28f86b(0x1fc)];}static[a68_0x25f646(0x203)](){const _0x56aeb7=a68_0x25f646;if(process['env'][_0x56aeb7(0x1fa)])return JSON[_0x56aeb7(0x213)](process[_0x56aeb7(0x22a)][_0x56aeb7(0x1fa)]);return this[_0x56aeb7(0x1a4)];}static[a68_0x25f646(0x211)](_0x894058,_0x364e12){const _0xda9c3b=a68_0x25f646,_0x1a1f96={'ONoer':'2|4|3|0|1','ZexdY':function(_0x5c425f,_0x2f9682){return _0x5c425f||_0x2f9682;},'vSNcm':function(_0x47e8c4,_0x116f93){return _0x47e8c4(_0x116f93);}},_0x3268e6=_0x1a1f96['ONoer'][_0xda9c3b(0x233)]('|');let _0x1aba0d=0x0;while(!![]){switch(_0x3268e6[_0x1aba0d++]){case'0':process[_0xda9c3b(0x22a)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']=JSON['stringify'](this[_0xda9c3b(0x1a4)]);continue;case'1':process['env']['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']=JSON['stringify'](this[_0xda9c3b(0x1fc)]);continue;case'2':_0x1a1f96[_0xda9c3b(0x1e8)](!_0x894058,!_0x364e12)&&logger[_0xda9c3b(0x1a9)](_0xda9c3b(0x192)+_0x894058+_0xda9c3b(0x176)+_0x364e12);continue;case'3':this[_0xda9c3b(0x1a4)]={'name':_0x364e12,'version':_0x1a1f96['vSNcm'](getFrameworkVersion,_0x364e12)};continue;case'4':this['testFrameworkDetail']={'name':_0x894058,'version':{[_0x894058]:_0x1a1f96[_0xda9c3b(0x19e)](getFrameworkVersion,_0x894058)}};continue;}break;}}static[a68_0x25f646(0x16a)](_0x3a1346,_0x28dd38){return _0x3a1346+':'+_0x28dd38;}static['getCurrentInstanceName'](){return process['pid']+':'+threadId;}static[a68_0x25f646(0x21b)](_0x287b64){const _0x39c9b1=a68_0x25f646;if(_0x287b64['testContextOptions']&&_0x287b64[_0x39c9b1(0x1fe)][_0x39c9b1(0x1b4)])return!![];return![];}static[a68_0x25f646(0x1bf)](_0x40b28e){if(_0x40b28e['testContextOptions']&&_0x40b28e['testContextOptions']['skipSessionStatus'])return!![];return![];}static[a68_0x25f646(0x1c6)](_0x19fd62){const _0x38b759=a68_0x25f646,_0x2620ec=new RegExp(TestFrameworkConstants['HOOK_REGEX']);return _0x2620ec[_0x38b759(0x1d9)](_0x19fd62);}static[a68_0x25f646(0x184)](_0x4462f6,_0x3ab97e){const _0x39240d=a68_0x25f646,_0xbc2ffa={};_0xbc2ffa['GxsgR']=function(_0x34c9fa,_0x48ea6c){return _0x34c9fa!==_0x48ea6c;},_0xbc2ffa[_0x39240d(0x206)]=function(_0x4792a1,_0x1f8ffc){return _0x4792a1===_0x1f8ffc;},_0xbc2ffa[_0x39240d(0x178)]=_0x39240d(0x1e1);const _0x173c91=_0xbc2ffa;for(const [_0x6fe40,_0x36541e]of Object['entries'](_0x3ab97e)){if(_0x173c91['GxsgR'](_0x36541e,null)&&_0x173c91[_0x39240d(0x206)](typeof _0x36541e,_0x173c91[_0x39240d(0x178)])&&!Array[_0x39240d(0x190)](_0x36541e))_0x4462f6[_0x6fe40]=this[_0x39240d(0x184)](_0x4462f6[_0x6fe40]||{},_0x36541e);else Array[_0x39240d(0x190)](_0x36541e)?_0x4462f6[_0x6fe40]=(_0x4462f6[_0x6fe40]||[])['concat'](_0x36541e):_0x4462f6[_0x6fe40]=_0x36541e;}return _0x4462f6;}}module[a68_0x25f646(0x1ef)]=CLIUtils;
@@ -1 +1 @@
1
- 'use strict';const a69_0x5d1eb9=a69_0x4250;(function(_0x4ceffb,_0x3bc4b7){const _0x301605=a69_0x4250,_0x18ba31=_0x4ceffb();while(!![]){try{const _0x2ca401=parseInt(_0x301605(0x162))/0x1+parseInt(_0x301605(0x16c))/0x2*(-parseInt(_0x301605(0x172))/0x3)+-parseInt(_0x301605(0x128))/0x4+parseInt(_0x301605(0x15e))/0x5*(parseInt(_0x301605(0x159))/0x6)+-parseInt(_0x301605(0x154))/0x7*(parseInt(_0x301605(0x126))/0x8)+-parseInt(_0x301605(0x171))/0x9*(-parseInt(_0x301605(0x131))/0xa)+-parseInt(_0x301605(0x169))/0xb;if(_0x2ca401===_0x3bc4b7)break;else _0x18ba31['push'](_0x18ba31['shift']());}catch(_0x4baf04){_0x18ba31['push'](_0x18ba31['shift']());}}}(a69_0x4d25,0x51208));function a69_0x4d25(){const _0x5d4468=['./framework/automationFramework','[CustomTagManager]\x20setCustomTags:\x20Created\x20new\x20tag\x20key=','KEY_TEST_ID','QRSoD','stringify','getTestUUID','includes','__workerDetails','toLowerCase','get','isRunning','TEST','\x20with\x20new\x20values=','./state/hookState','buildLevelTags',',\x20finalTags=','WmbOM','getInstance','testhubConfig','addMultipleEntries','4390911NobsIC','parseCommaSeparatedValues','toObject','./cliUtils','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','1965102AtSYOH','field_type','jest','multi_dropdown','vjNSc','10wyvZKW','./TestInfo','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','QrVPX','130500mXUVnh','getAllData','./modules/playwrightDriverModule','LGETa','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','FuwXA','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','384208brpLAh','buildHashedId','Custom\x20tag\x20value\x20cannot\x20be\x20empty','263830JoTzEh','POST','../../helpers/helper','CustomTagManager','XQGQM','2497149RPtmYs','3rJsSts','aEpxG','debug',',\x20values=','PxIyt','trim','name','vgray','8cvYubq','./modules/testhubModule','856176hAVMfO','./framework/constants/testFrameworkConstants','getTestFrameworkDetail','KEY_CUSTOM_TAGS','getState','getTestFramework','LvBBI','getTrackedInstance',':jest-','20IhcqfR','testLevelTags','values','rRKUF','./state/testFrameworkState','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','clearTags','ovUVy','modules','getTestLevelTags','resolveInstance',',\x20key=','testInfo',',\x20existingTags=','Custom\x20tag\x20value\x20must\x20be\x20a\x20string'];a69_0x4d25=function(){return _0x5d4468;};return a69_0x4d25();}const BrowserstackCLI=require('./browserstackCLI'),helper=require(a69_0x5d1eb9(0x16e)),AutomationFramework=require(a69_0x5d1eb9(0x140)),TestFrameworkConstants=require(a69_0x5d1eb9(0x129)),PlaywrightDriverModule=require(a69_0x5d1eb9(0x164)),TestInfo=require(a69_0x5d1eb9(0x15f)),TestHubModule=require(a69_0x5d1eb9(0x127)),{createClassLogger}=require('../../helpers/classLogger'),logger=createClassLogger(a69_0x5d1eb9(0x16f));function a69_0x4250(_0x31c567,_0x209e77){const _0x4d256e=a69_0x4d25();return a69_0x4250=function(_0x425064,_0x449918){_0x425064=_0x425064-0x121;let _0x115ff8=_0x4d256e[_0x425064];return _0x115ff8;},a69_0x4250(_0x31c567,_0x209e77);}class CustomTagManager{static [a69_0x5d1eb9(0x14e)]={};static ['testLevelTags']={};static['setCustomTags'](_0x5c8450,_0x30e509,_0x1e9723=![]){const _0x3c17cf=a69_0x5d1eb9,_0x4bc39c={'FuwXA':function(_0x190cac,_0x3c26f0){return _0x190cac!==_0x3c26f0;},'PxIyt':'string','LGETa':'Custom\x20tag\x20key\x20must\x20be\x20a\x20string','VyVya':function(_0xe69da3,_0x1d68d9){return _0xe69da3!==_0x1d68d9;},'LZGFI':_0x3c17cf(0x13f),'vAUIg':function(_0x1ba8d5,_0x317058){return _0x1ba8d5===_0x317058;},'LvBBI':'Custom\x20tag\x20key\x20cannot\x20be\x20empty','ovUVy':function(_0x31b5e6,_0x12821c){return _0x31b5e6===_0x12821c;},'QrVPX':_0x3c17cf(0x16b),'vjNSc':_0x3c17cf(0x15c),'THaim':_0x3c17cf(0x130),'WmbOM':function(_0x3c8128,_0x3bd821){return _0x3c8128(_0x3bd821);},'QRSoD':_0x3c17cf(0x157),'rCJvX':function(_0x4c8dc6,_0x3ba413){return _0x4c8dc6===_0x3ba413;},'vgray':_0x3c17cf(0x15b),'aEpxG':_0x3c17cf(0x160),'rRKUF':_0x3c17cf(0x158),'RXwxr':_0x3c17cf(0x135),'hHFXf':_0x3c17cf(0x14d),'XQGQM':_0x3c17cf(0x136)};if(_0x4bc39c[_0x3c17cf(0x167)](typeof _0x5c8450,_0x4bc39c[_0x3c17cf(0x122)]))throw new Error(_0x4bc39c[_0x3c17cf(0x165)]);if(_0x4bc39c['VyVya'](typeof _0x30e509,_0x4bc39c[_0x3c17cf(0x122)]))throw new Error(_0x4bc39c['LZGFI']);if(_0x4bc39c['vAUIg'](_0x5c8450[_0x3c17cf(0x123)](),''))throw new Error(_0x4bc39c[_0x3c17cf(0x12e)]);if(_0x4bc39c[_0x3c17cf(0x138)](_0x30e509[_0x3c17cf(0x123)](),''))throw new Error(_0x4bc39c[_0x3c17cf(0x161)]);const _0x465c0a=helper[_0x3c17cf(0x155)](_0x30e509);if(_0x1e9723){const _0x166d40=BrowserstackCLI[_0x3c17cf(0x151)]()[_0x3c17cf(0x139)][TestHubModule['MODULE_NAME']];if(_0x166d40){const _0x33d270=_0x166d40?.[_0x3c17cf(0x152)]?.[_0x3c17cf(0x156)]()?.[_0x3c17cf(0x16a)];TestInfo[_0x3c17cf(0x145)](_0x33d270);const _0xb2b69d=TestInfo['getTestDetails'](_0x33d270),_0x64dc35=_0xb2b69d[TestFrameworkConstants[_0x3c17cf(0x12b)]]||{};if(!_0x64dc35[_0x5c8450]){const _0x321780={};_0x321780[_0x3c17cf(0x15a)]=_0x4bc39c[_0x3c17cf(0x15d)],_0x321780[_0x3c17cf(0x133)]=[..._0x465c0a],_0x64dc35[_0x5c8450]=_0x321780;}else _0x64dc35[_0x5c8450][_0x3c17cf(0x133)]=[..._0x465c0a];_0xb2b69d[TestFrameworkConstants[_0x3c17cf(0x12b)]]=_0x64dc35,TestInfo['setTestDetails'](_0x33d270,_0xb2b69d),!this[_0x3c17cf(0x14e)][_0x33d270]&&(this['buildLevelTags'][_0x33d270]={}),this[_0x3c17cf(0x14e)][_0x33d270][_0x5c8450]=[..._0x465c0a];}}else{let _0x3668b1;const _0x457a88=global['__jestCurrentTestIdentifier'];let _0x39ce04=![];if(_0x457a88&&_0x457a88[_0x3c17cf(0x146)](_0x4bc39c['THaim']))_0x39ce04=!![],_0x3668b1=_0x457a88;else try{const _0x1b3f57=_0x4bc39c['WmbOM'](require,_0x4bc39c[_0x3c17cf(0x143)]);if(BrowserstackCLI[_0x3c17cf(0x151)]()[_0x3c17cf(0x14a)]()){const _0x3c5e49=_0x1b3f57[_0x3c17cf(0x12a)]();if(_0x4bc39c['rCJvX'](_0x3c5e49?.[_0x3c17cf(0x124)]?.[_0x3c17cf(0x148)](),_0x4bc39c[_0x3c17cf(0x125)])){const _0x31fd0e=AutomationFramework['getTrackedInstance']();_0x3668b1=AutomationFramework[_0x3c17cf(0x12c)](_0x31fd0e,PlaywrightDriverModule[_0x3c17cf(0x142)],''),_0x3668b1&&_0x3668b1[_0x3c17cf(0x146)](_0x4bc39c['THaim'])&&(_0x39ce04=!![]);}}}catch(_0x21266f){logger['debug']('CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20'+_0x21266f);}if(_0x39ce04){if(!_0x3668b1)throw new Error(_0x4bc39c[_0x3c17cf(0x173)]);const _0x4f88d3=BrowserstackCLI[_0x3c17cf(0x151)]()[_0x3c17cf(0x12d)]();if(!_0x4f88d3)throw new Error(_0x4bc39c[_0x3c17cf(0x134)]);const _0x272b50=_0x4bc39c['WmbOM'](require,_0x4bc39c['RXwxr']),_0x2f5e17=_0x4bc39c[_0x3c17cf(0x150)](require,_0x4bc39c['hHFXf']),_0x218a09=_0x4f88d3[_0x3c17cf(0x13b)](_0x272b50[_0x3c17cf(0x14b)],_0x2f5e17[_0x3c17cf(0x16d)]);if(!_0x218a09)throw new Error(_0x4bc39c[_0x3c17cf(0x170)]);const _0x1020c6=_0x218a09[_0x3c17cf(0x163)]()[_0x3c17cf(0x149)](_0x3668b1)||{},_0x16700b=_0x1020c6[TestFrameworkConstants[_0x3c17cf(0x12b)]]||{};logger['debug'](_0x3c17cf(0x166)+_0x3668b1+_0x3c17cf(0x13c)+_0x5c8450+_0x3c17cf(0x121)+JSON[_0x3c17cf(0x144)](_0x465c0a)+_0x3c17cf(0x13e)+JSON[_0x3c17cf(0x144)](_0x16700b));if(!_0x16700b[_0x5c8450]){const _0x235ef2={};_0x235ef2[_0x3c17cf(0x15a)]=_0x4bc39c[_0x3c17cf(0x15d)],_0x235ef2[_0x3c17cf(0x133)]=[..._0x465c0a],_0x16700b[_0x5c8450]=_0x235ef2,logger[_0x3c17cf(0x174)](_0x3c17cf(0x141)+_0x5c8450+'\x20with\x20values='+JSON['stringify'](_0x465c0a));}else _0x16700b[_0x5c8450][_0x3c17cf(0x133)]=[..._0x465c0a],logger['debug']('[CustomTagManager]\x20setCustomTags:\x20Updated\x20existing\x20tag\x20key='+_0x5c8450+_0x3c17cf(0x14c)+JSON[_0x3c17cf(0x144)](_0x465c0a));const _0x346eaa={[TestFrameworkConstants[_0x3c17cf(0x12b)]]:_0x16700b},_0x2b19f8={};_0x2b19f8[_0x3668b1]=_0x346eaa,_0x218a09[_0x3c17cf(0x153)](_0x2b19f8),logger['debug'](_0x3c17cf(0x168)+_0x3668b1+_0x3c17cf(0x14f)+JSON['stringify'](_0x16700b)),!this[_0x3c17cf(0x132)][_0x3668b1]&&(this['testLevelTags'][_0x3668b1]={}),this[_0x3c17cf(0x132)][_0x3668b1][_0x5c8450]=[..._0x465c0a];}else{const _0x4fc718=global[_0x3c17cf(0x147)]?.['currentTest']?.[_0x3c17cf(0x13d)];if(!_0x4fc718){const _0x205a4e=AutomationFramework[_0x3c17cf(0x12f)]();_0x3668b1=AutomationFramework[_0x3c17cf(0x12c)](_0x205a4e,PlaywrightDriverModule[_0x3c17cf(0x142)],'');}else _0x3668b1=TestInfo['getTestIdentifierFromTestInfo'](_0x4fc718,_0x4fc718['retry']);const _0x4ed6ed=TestInfo['getTestDetails'](_0x3668b1),_0x18010d=_0x4ed6ed[TestFrameworkConstants[_0x3c17cf(0x12b)]]||{};if(!_0x18010d[_0x5c8450]){const _0x3db4f8={};_0x3db4f8[_0x3c17cf(0x15a)]=_0x4bc39c[_0x3c17cf(0x15d)],_0x3db4f8['values']=[..._0x465c0a],_0x18010d[_0x5c8450]=_0x3db4f8;}else _0x18010d[_0x5c8450][_0x3c17cf(0x133)]=[..._0x465c0a];_0x4ed6ed[TestFrameworkConstants[_0x3c17cf(0x12b)]]=_0x18010d,TestInfo['setTestDetails'](_0x3668b1,_0x4ed6ed),!this[_0x3c17cf(0x132)][_0x3668b1]&&(this[_0x3c17cf(0x132)][_0x3668b1]={}),this[_0x3c17cf(0x132)][_0x3668b1][_0x5c8450]=[..._0x465c0a];}}}static['getBuildLevelTags'](){const _0x56478d={...this['buildLevelTags']};return _0x56478d;}static[a69_0x5d1eb9(0x13a)](){const _0x14a747=a69_0x5d1eb9,_0x1b950f={...this[_0x14a747(0x132)]};return _0x1b950f;}static[a69_0x5d1eb9(0x137)](){const _0x227a28=a69_0x5d1eb9;this[_0x227a28(0x14e)]={},this['testLevelTags']={};}}module['exports']=CustomTagManager;
1
+ 'use strict';const a69_0x12cf23=a69_0xe242;function a69_0x6664(){const _0x203b7e=['values','getInstance','./modules/testhubModule','JFESz','parseCommaSeparatedValues','twHtB','clearTags','54mnlWQu','getTestLevelTags',',\x20key=','TeSYD','nngAl','Custom\x20tag\x20key\x20cannot\x20be\x20empty','WIZAK','field_type','./modules/playwrightDriverModule','CustomTagManager','4804jvWgiu','ZmFsy','azmQm','LoeIa','[CustomTagManager]\x20setCustomTags:\x20Created\x20new\x20tag\x20key=','Custom\x20tag\x20key\x20must\x20be\x20a\x20string','MODULE_NAME','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','wTsjw','__jestCurrentTestIdentifier','isRunning','setTestDetails','352jZjxOt','name','298172SHgfAI',',\x20finalTags=','modules','getTestDetails','retry','Custom\x20tag\x20value\x20cannot\x20be\x20empty','27OBDIbg','\x20with\x20new\x20values=','stringify','getTestUUID','testInfo','TEST','getTestFrameworkDetail','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','buildHashedId','TALey','testhubConfig','158160ToLUWR','string','getAllData','[CustomTagManager]\x20setCustomTags:\x20Updated\x20existing\x20tag\x20key=','debug','ZfHtR','wnnxA','WAqYR','includes','./cliUtils','../../helpers/helper','KEY_CUSTOM_TAGS','getTrackedInstance','getBuildLevelTags','addMultipleEntries','298230qoBGAS','multi_dropdown','KEY_TEST_ID','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','LeONY','get','313515rSJuPX','108801kAyHHT','buildLevelTags','getState','WnJUr','prCfq','exports','BZzOS','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','364776qZulxj','testLevelTags','441wFsMLw','./state/hookState','./framework/constants/testFrameworkConstants','POST'];a69_0x6664=function(){return _0x203b7e;};return a69_0x6664();}(function(_0x2c9b05,_0x2842db){const _0x58ced7=a69_0xe242,_0x5a4f27=_0x2c9b05();while(!![]){try{const _0x58ed85=-parseInt(_0x58ced7(0x178))/0x1+-parseInt(_0x58ced7(0x1ac))/0x2+-parseInt(_0x58ced7(0x189))/0x3*(-parseInt(_0x58ced7(0x19e))/0x4)+-parseInt(_0x58ced7(0x17e))/0x5+-parseInt(_0x58ced7(0x194))/0x6*(parseInt(_0x58ced7(0x17f))/0x7)+-parseInt(_0x58ced7(0x187))/0x8*(-parseInt(_0x58ced7(0x1b2))/0x9)+parseInt(_0x58ced7(0x1bd))/0xa*(parseInt(_0x58ced7(0x1aa))/0xb);if(_0x58ed85===_0x2842db)break;else _0x5a4f27['push'](_0x5a4f27['shift']());}catch(_0x51cf00){_0x5a4f27['push'](_0x5a4f27['shift']());}}}(a69_0x6664,0x29648));const BrowserstackCLI=require('./browserstackCLI'),helper=require(a69_0x12cf23(0x173)),AutomationFramework=require('./framework/automationFramework'),TestFrameworkConstants=require(a69_0x12cf23(0x18b)),PlaywrightDriverModule=require(a69_0x12cf23(0x19c)),TestInfo=require('./TestInfo'),TestHubModule=require(a69_0x12cf23(0x18f)),{createClassLogger}=require('../../helpers/classLogger'),logger=createClassLogger(a69_0x12cf23(0x19d));class CustomTagManager{static [a69_0x12cf23(0x180)]={};static ['testLevelTags']={};static['setCustomTags'](_0x1cbbfd,_0xeab08c,_0x520ea0=![]){const _0x5d3dcd=a69_0x12cf23,_0x37dad4={'WnJUr':function(_0x2d187b,_0x259d2c){return _0x2d187b!==_0x259d2c;},'wTsjw':_0x5d3dcd(0x1be),'TALey':_0x5d3dcd(0x1a3),'LoeIa':'Custom\x20tag\x20value\x20must\x20be\x20a\x20string','wnnxA':function(_0x55c526,_0x4a9a96){return _0x55c526===_0x4a9a96;},'prCfq':_0x5d3dcd(0x199),'WIZAK':_0x5d3dcd(0x1b1),'JFESz':_0x5d3dcd(0x179),'twHtB':':jest-','VJkqX':function(_0x5ba8da,_0x235988){return _0x5ba8da(_0x235988);},'ZfHtR':_0x5d3dcd(0x172),'ZmFsy':'jest','duHJH':'CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','nngAl':_0x5d3dcd(0x1a5),'TeSYD':function(_0x2d0acd,_0x3f81d7){return _0x2d0acd(_0x3f81d7);},'LeONY':'./state/testFrameworkState','azmQm':function(_0x1113ec,_0x3c7d83){return _0x1113ec(_0x3c7d83);},'BZzOS':_0x5d3dcd(0x18a),'WAqYR':'CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright'};if(_0x37dad4[_0x5d3dcd(0x182)](typeof _0x1cbbfd,_0x37dad4['wTsjw']))throw new Error(_0x37dad4[_0x5d3dcd(0x1bb)]);if(_0x37dad4[_0x5d3dcd(0x182)](typeof _0xeab08c,_0x37dad4[_0x5d3dcd(0x1a6)]))throw new Error(_0x37dad4[_0x5d3dcd(0x1a1)]);if(_0x37dad4[_0x5d3dcd(0x16f)](_0x1cbbfd['trim'](),''))throw new Error(_0x37dad4[_0x5d3dcd(0x183)]);if(_0x37dad4[_0x5d3dcd(0x16f)](_0xeab08c['trim'](),''))throw new Error(_0x37dad4[_0x5d3dcd(0x19a)]);const _0x134756=helper[_0x5d3dcd(0x191)](_0xeab08c);if(_0x520ea0){const _0x4baa64=BrowserstackCLI['getInstance']()[_0x5d3dcd(0x1ae)][TestHubModule[_0x5d3dcd(0x1a4)]];if(_0x4baa64){const _0x5a33f4=_0x4baa64?.[_0x5d3dcd(0x1bc)]?.['toObject']()?.[_0x5d3dcd(0x1ba)];TestInfo[_0x5d3dcd(0x1b5)](_0x5a33f4);const _0x5e209c=TestInfo[_0x5d3dcd(0x1af)](_0x5a33f4),_0x5058be=_0x5e209c[TestFrameworkConstants[_0x5d3dcd(0x174)]]||{};if(!_0x5058be[_0x1cbbfd]){const _0x16a61d={};_0x16a61d[_0x5d3dcd(0x19b)]=_0x37dad4[_0x5d3dcd(0x190)],_0x16a61d[_0x5d3dcd(0x18d)]=[..._0x134756],_0x5058be[_0x1cbbfd]=_0x16a61d;}else _0x5058be[_0x1cbbfd][_0x5d3dcd(0x18d)]=[..._0x134756];_0x5e209c[TestFrameworkConstants[_0x5d3dcd(0x174)]]=_0x5058be,TestInfo[_0x5d3dcd(0x1a9)](_0x5a33f4,_0x5e209c),!this[_0x5d3dcd(0x180)][_0x5a33f4]&&(this['buildLevelTags'][_0x5a33f4]={}),this['buildLevelTags'][_0x5a33f4][_0x1cbbfd]=[..._0x134756];}}else{let _0x240d15;const _0x1ed77f=global[_0x5d3dcd(0x1a7)];let _0x209f91=![];if(_0x1ed77f&&_0x1ed77f[_0x5d3dcd(0x171)](_0x37dad4[_0x5d3dcd(0x192)]))_0x209f91=!![],_0x240d15=_0x1ed77f;else try{const _0x3626bb=_0x37dad4['VJkqX'](require,_0x37dad4[_0x5d3dcd(0x16e)]);if(BrowserstackCLI[_0x5d3dcd(0x18e)]()[_0x5d3dcd(0x1a8)]()){const _0x2285c8=_0x3626bb[_0x5d3dcd(0x1b8)]();if(_0x37dad4[_0x5d3dcd(0x16f)](_0x2285c8?.[_0x5d3dcd(0x1ab)]?.['toLowerCase'](),_0x37dad4[_0x5d3dcd(0x19f)])){const _0xb5844a=AutomationFramework[_0x5d3dcd(0x175)]();_0x240d15=AutomationFramework[_0x5d3dcd(0x181)](_0xb5844a,PlaywrightDriverModule[_0x5d3dcd(0x17a)],''),_0x240d15&&_0x240d15['includes'](_0x37dad4[_0x5d3dcd(0x192)])&&(_0x209f91=!![]);}}}catch(_0x48ec70){logger['debug'](_0x5d3dcd(0x1b9)+_0x48ec70);}if(_0x209f91){if(!_0x240d15)throw new Error(_0x37dad4['duHJH']);const _0x41511b=BrowserstackCLI[_0x5d3dcd(0x18e)]()['getTestFramework']();if(!_0x41511b)throw new Error(_0x37dad4[_0x5d3dcd(0x198)]);const _0x2fbaa8=_0x37dad4[_0x5d3dcd(0x197)](require,_0x37dad4[_0x5d3dcd(0x17c)]),_0x170874=_0x37dad4[_0x5d3dcd(0x1a0)](require,_0x37dad4[_0x5d3dcd(0x185)]),_0x14485f=_0x41511b['resolveInstance'](_0x2fbaa8[_0x5d3dcd(0x1b7)],_0x170874[_0x5d3dcd(0x18c)]);if(!_0x14485f)throw new Error(_0x37dad4[_0x5d3dcd(0x170)]);const _0xb65cb8=_0x14485f[_0x5d3dcd(0x16b)]()[_0x5d3dcd(0x17d)](_0x240d15)||{},_0x29454a=_0xb65cb8[TestFrameworkConstants[_0x5d3dcd(0x174)]]||{};logger[_0x5d3dcd(0x16d)](_0x5d3dcd(0x186)+_0x240d15+_0x5d3dcd(0x196)+_0x1cbbfd+',\x20values='+JSON[_0x5d3dcd(0x1b4)](_0x134756)+',\x20existingTags='+JSON[_0x5d3dcd(0x1b4)](_0x29454a));if(!_0x29454a[_0x1cbbfd]){const _0x23f96b={};_0x23f96b['field_type']=_0x37dad4[_0x5d3dcd(0x190)],_0x23f96b[_0x5d3dcd(0x18d)]=[..._0x134756],_0x29454a[_0x1cbbfd]=_0x23f96b,logger[_0x5d3dcd(0x16d)](_0x5d3dcd(0x1a2)+_0x1cbbfd+'\x20with\x20values='+JSON[_0x5d3dcd(0x1b4)](_0x134756));}else _0x29454a[_0x1cbbfd][_0x5d3dcd(0x18d)]=[..._0x134756],logger[_0x5d3dcd(0x16d)](_0x5d3dcd(0x16c)+_0x1cbbfd+_0x5d3dcd(0x1b3)+JSON[_0x5d3dcd(0x1b4)](_0x134756));const _0xd5c4b5={[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x29454a},_0x2b8661={};_0x2b8661[_0x240d15]=_0xd5c4b5,_0x14485f[_0x5d3dcd(0x177)](_0x2b8661),logger[_0x5d3dcd(0x16d)](_0x5d3dcd(0x17b)+_0x240d15+_0x5d3dcd(0x1ad)+JSON[_0x5d3dcd(0x1b4)](_0x29454a)),!this[_0x5d3dcd(0x188)][_0x240d15]&&(this[_0x5d3dcd(0x188)][_0x240d15]={}),this[_0x5d3dcd(0x188)][_0x240d15][_0x1cbbfd]=[..._0x134756];}else{const _0x1d0657=global['__workerDetails']?.['currentTest']?.[_0x5d3dcd(0x1b6)];if(!_0x1d0657){const _0x469944=AutomationFramework[_0x5d3dcd(0x175)]();_0x240d15=AutomationFramework['getState'](_0x469944,PlaywrightDriverModule[_0x5d3dcd(0x17a)],'');}else _0x240d15=TestInfo['getTestIdentifierFromTestInfo'](_0x1d0657,_0x1d0657[_0x5d3dcd(0x1b0)]);const _0x1405cb=TestInfo[_0x5d3dcd(0x1af)](_0x240d15),_0x477b90=_0x1405cb[TestFrameworkConstants[_0x5d3dcd(0x174)]]||{};if(!_0x477b90[_0x1cbbfd]){const _0x34daf1={};_0x34daf1['field_type']=_0x37dad4[_0x5d3dcd(0x190)],_0x34daf1[_0x5d3dcd(0x18d)]=[..._0x134756],_0x477b90[_0x1cbbfd]=_0x34daf1;}else _0x477b90[_0x1cbbfd][_0x5d3dcd(0x18d)]=[..._0x134756];_0x1405cb[TestFrameworkConstants[_0x5d3dcd(0x174)]]=_0x477b90,TestInfo['setTestDetails'](_0x240d15,_0x1405cb),!this[_0x5d3dcd(0x188)][_0x240d15]&&(this[_0x5d3dcd(0x188)][_0x240d15]={}),this[_0x5d3dcd(0x188)][_0x240d15][_0x1cbbfd]=[..._0x134756];}}}static[a69_0x12cf23(0x176)](){const _0x505155=a69_0x12cf23,_0x1f680d={...this[_0x505155(0x180)]};return _0x1f680d;}static[a69_0x12cf23(0x195)](){const _0x234f61=a69_0x12cf23,_0x3aa544={...this[_0x234f61(0x188)]};return _0x3aa544;}static[a69_0x12cf23(0x193)](){const _0x59134a=a69_0x12cf23;this[_0x59134a(0x180)]={},this[_0x59134a(0x188)]={};}}function a69_0xe242(_0x377ebe,_0x2d277b){const _0x66648e=a69_0x6664();return a69_0xe242=function(_0xe242a8,_0x17c080){_0xe242a8=_0xe242a8-0x16b;let _0x18aa55=_0x66648e[_0xe242a8];return _0x18aa55;},a69_0xe242(_0x377ebe,_0x2d277b);}module[a69_0x12cf23(0x184)]=CustomTagManager;
@@ -1 +1 @@
1
- const a70_0x28d230=a70_0x47c2;(function(_0x152976,_0x2a9f72){const _0x914076=a70_0x47c2,_0x1bfefd=_0x152976();while(!![]){try{const _0x255906=parseInt(_0x914076(0x110))/0x1+-parseInt(_0x914076(0x113))/0x2*(parseInt(_0x914076(0x120))/0x3)+-parseInt(_0x914076(0x118))/0x4*(-parseInt(_0x914076(0x114))/0x5)+parseInt(_0x914076(0x11c))/0x6+-parseInt(_0x914076(0x123))/0x7*(-parseInt(_0x914076(0x11e))/0x8)+parseInt(_0x914076(0x11a))/0x9+parseInt(_0x914076(0x115))/0xa*(-parseInt(_0x914076(0x117))/0xb);if(_0x255906===_0x2a9f72)break;else _0x1bfefd['push'](_0x1bfefd['shift']());}catch(_0x475053){_0x1bfefd['push'](_0x1bfefd['shift']());}}}(a70_0x44ab,0xeb9ba));function a70_0x47c2(_0x56e736,_0x8f6aa8){const _0x44abb4=a70_0x44ab();return a70_0x47c2=function(_0x47c2fe,_0x57d043){_0x47c2fe=_0x47c2fe-0x110;let _0x421f1b=_0x44abb4[_0x47c2fe];return _0x421f1b;},a70_0x47c2(_0x56e736,_0x8f6aa8);}const {createClassLogger}=require(a70_0x28d230(0x112));function a70_0x44ab(){const _0x1e247c=['registerObserver','406eiAESk','385423uCdyhi','notifyObserver','../../helpers/classLogger.js','172UDHtrV','5pBdubP','4330yDxGJW','LQDfP','78903zRfqYR','2612188nmwNtk','push','4216392ksjFqZ','freeze','7673682AChRLO','getInstance','219976BJQKzi','exports','10806FlPLHR','observers'];a70_0x44ab=function(){return _0x1e247c;};return a70_0x44ab();}class EventDispatcher{static #instance=null;constructor(){const _0x5cfc12=a70_0x28d230;this[_0x5cfc12(0x121)]={};}static[a70_0x28d230(0x11d)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a70_0x28d230(0x122)](_0x575f40,_0x2ba3bc){const _0x375e51=a70_0x28d230;!this[_0x375e51(0x121)][_0x575f40]&&(this[_0x375e51(0x121)][_0x575f40]=[]),this[_0x375e51(0x121)][_0x575f40][_0x375e51(0x119)](_0x2ba3bc);}async[a70_0x28d230(0x111)](_0x13f4bc,_0x3d08ea){const _0x4dd495=a70_0x28d230,_0x1103bc={'LQDfP':function(_0x1d4edc,_0x342a83){return _0x1d4edc(_0x342a83);}};if(this[_0x4dd495(0x121)][_0x13f4bc]){for(const _0x3df536 of this['observers'][_0x13f4bc]){await _0x1103bc[_0x4dd495(0x116)](_0x3df536,_0x3d08ea);}return;}}}const eventDispatcher=EventDispatcher['getInstance']();Object[a70_0x28d230(0x11b)](eventDispatcher),module[a70_0x28d230(0x11f)]=eventDispatcher;
1
+ const a70_0x586366=a70_0x14a1;(function(_0x495891,_0x44045f){const _0x1a7d07=a70_0x14a1,_0x132bc4=_0x495891();while(!![]){try{const _0x3fc484=-parseInt(_0x1a7d07(0x1b1))/0x1*(-parseInt(_0x1a7d07(0x1ba))/0x2)+-parseInt(_0x1a7d07(0x1bd))/0x3+parseInt(_0x1a7d07(0x1bb))/0x4*(-parseInt(_0x1a7d07(0x1b2))/0x5)+-parseInt(_0x1a7d07(0x1af))/0x6*(parseInt(_0x1a7d07(0x1b7))/0x7)+-parseInt(_0x1a7d07(0x1b0))/0x8*(-parseInt(_0x1a7d07(0x1b9))/0x9)+parseInt(_0x1a7d07(0x1ad))/0xa*(-parseInt(_0x1a7d07(0x1b8))/0xb)+parseInt(_0x1a7d07(0x1b3))/0xc;if(_0x3fc484===_0x44045f)break;else _0x132bc4['push'](_0x132bc4['shift']());}catch(_0x5f2f4c){_0x132bc4['push'](_0x132bc4['shift']());}}}(a70_0x54da,0x9a26b));function a70_0x14a1(_0x3de54c,_0x2dc067){const _0x54da1b=a70_0x54da();return a70_0x14a1=function(_0x14a187,_0x567118){_0x14a187=_0x14a187-0x1ac;let _0x232984=_0x54da1b[_0x14a187];return _0x232984;},a70_0x14a1(_0x3de54c,_0x2dc067);}const {createClassLogger}=require(a70_0x586366(0x1b6));function a70_0x54da(){const _0x360dae=['getInstance','../../helpers/classLogger.js','7938217degbLK','1617bBWlVC','79263pcjJtF','26YikBTz','4DdRNEd','exports','1930170bGNkZD','observers','62330hVEpjO','jGSSg','6TKXiWP','904QyoJeg','93509iZDiuQ','2795265VXxRJL','20079840zHBuzq','notifyObserver'];a70_0x54da=function(){return _0x360dae;};return a70_0x54da();}class EventDispatcher{static #instance=null;constructor(){const _0x4b3c28=a70_0x586366;this[_0x4b3c28(0x1ac)]={};}static[a70_0x586366(0x1b5)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}['registerObserver'](_0x4429df,_0x4b3010){const _0x5b8f12=a70_0x586366;!this[_0x5b8f12(0x1ac)][_0x4429df]&&(this[_0x5b8f12(0x1ac)][_0x4429df]=[]),this[_0x5b8f12(0x1ac)][_0x4429df]['push'](_0x4b3010);}async[a70_0x586366(0x1b4)](_0x585b40,_0x3210f7){const _0x3d0fe7=a70_0x586366,_0x2193f9={'jGSSg':function(_0x382699,_0x10c7b2){return _0x382699(_0x10c7b2);}};if(this['observers'][_0x585b40]){for(const _0x4e3544 of this[_0x3d0fe7(0x1ac)][_0x585b40]){await _0x2193f9[_0x3d0fe7(0x1ae)](_0x4e3544,_0x3210f7);}return;}}}const eventDispatcher=EventDispatcher[a70_0x586366(0x1b5)]();Object['freeze'](eventDispatcher),module[a70_0x586366(0x1bc)]=eventDispatcher;
@@ -1 +1 @@
1
- const a71_0x5ee1fb=a71_0x375d;(function(_0x290891,_0x37e6fe){const _0x5f494c=a71_0x375d,_0x6d7aab=_0x290891();while(!![]){try{const _0x492ea6=-parseInt(_0x5f494c(0x152))/0x1*(parseInt(_0x5f494c(0x14a))/0x2)+parseInt(_0x5f494c(0x144))/0x3+parseInt(_0x5f494c(0x14f))/0x4*(-parseInt(_0x5f494c(0x15a))/0x5)+parseInt(_0x5f494c(0x142))/0x6*(parseInt(_0x5f494c(0x155))/0x7)+parseInt(_0x5f494c(0x156))/0x8+parseInt(_0x5f494c(0x15e))/0x9+parseInt(_0x5f494c(0x160))/0xa*(-parseInt(_0x5f494c(0x146))/0xb);if(_0x492ea6===_0x37e6fe)break;else _0x6d7aab['push'](_0x6d7aab['shift']());}catch(_0x429969){_0x6d7aab['push'](_0x6d7aab['shift']());}}}(a71_0x51e7,0xc2ea5));const {createClassLogger}=require(a71_0x5ee1fb(0x14d)),util=require('util'),eventDispatcher=require('../eventDispatcher.js'),CLIUtils=require(a71_0x5ee1fb(0x154)),TrackedInstance=require(a71_0x5ee1fb(0x143)),logger=createClassLogger(a71_0x5ee1fb(0x14c));class AutomationFramework{static [a71_0x5ee1fb(0x153)]=new Map();static [a71_0x5ee1fb(0x147)]=a71_0x5ee1fb(0x14b);static ['KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS']='non_browserstack_automation_sessions';constructor(_0x2a9081,_0x30d1bd){const _0x7e5b32=a71_0x5ee1fb;this[_0x7e5b32(0x145)]=_0x2a9081,this[_0x7e5b32(0x163)]=_0x30d1bd;}['getAutomationFrameworkName'](){const _0x233c88=a71_0x5ee1fb;return this[_0x233c88(0x145)];}[a71_0x5ee1fb(0x151)](){const _0x1afb72=a71_0x5ee1fb;return this[_0x1afb72(0x163)];}async[a71_0x5ee1fb(0x15d)](_0x49e388,_0x37b84b,_0x453cd9={}){const _0x3855b2=a71_0x5ee1fb;logger[_0x3855b2(0x157)]('trackEvent:\x20automationFrameworkState='+_0x49e388+_0x3855b2(0x164)+_0x37b84b);}async[a71_0x5ee1fb(0x148)](_0x5d9493,_0x48ead,_0xed11cb,_0x453bcd={}){const _0x5cc5a7=a71_0x5ee1fb,_0x27be26=CLIUtils['getHookRegistryKey'](_0x48ead,_0xed11cb);_0x5d9493&&_0x5d9493[_0x5cc5a7(0x150)](_0x48ead),await eventDispatcher[_0x5cc5a7(0x14e)](_0x27be26,_0x453bcd);}static[a71_0x5ee1fb(0x165)](_0x56110f,_0x2ec644,_0x3d2702){const _0x33a901=a71_0x5ee1fb;eventDispatcher[_0x33a901(0x165)](CLIUtils[_0x33a901(0x161)](_0x56110f,_0x2ec644),_0x3d2702);}static['setTrackedInstance'](_0xbd897d,_0x211725){const _0x267a4b=a71_0x5ee1fb;AutomationFramework[_0x267a4b(0x153)][_0x267a4b(0x15c)](_0xbd897d[_0x267a4b(0x162)](),_0x211725);}static[a71_0x5ee1fb(0x149)](){const _0x3b6b23=a71_0x5ee1fb,_0x1cdc9c=TrackedInstance['createContext'](CLIUtils[_0x3b6b23(0x15f)]());return AutomationFramework['instances']['get'](_0x1cdc9c[_0x3b6b23(0x162)]());}static[a71_0x5ee1fb(0x150)](_0x23cf23,_0x5a46f7,_0x572e50){const _0x4d732=a71_0x5ee1fb;_0x23cf23[_0x4d732(0x159)]()[_0x4d732(0x15c)](_0x5a46f7,_0x572e50);}static[a71_0x5ee1fb(0x15b)](_0x3f7f29,_0x4ddc11){const _0x56138c=a71_0x5ee1fb;return _0x3f7f29[_0x56138c(0x159)]()[_0x56138c(0x158)](_0x4ddc11);}}function a71_0x51e7(){const _0xcfe3cc=['registerObserver','exports','2233368ujNKzw','../instances/trackedInstance.js','2250708YISHhU','automationFrameworkName','20878286ONfcMD','KEY_AUTOMATION_SESSIONS','runHooks','getTrackedInstance','523862hcKYMm','automation_sessions','AutomationFramework','../../../helpers/classLogger.js','notifyObserver','12NgGeWA','setState','getAutomationFrameworkVersion','1VPGOzU','instances','../cliUtils.js','7GEmaTd','8036568VMrzQN','debug','get','getAllData','935095BvJCQV','getState','set','trackEvent','12531168ZjCOfK','getCurrentInstanceName','10XtCRUA','getHookRegistryKey','getId','automationFrameworkVersion','\x20hookState='];a71_0x51e7=function(){return _0xcfe3cc;};return a71_0x51e7();}function a71_0x375d(_0x5d02ca,_0x512b48){const _0x51e74a=a71_0x51e7();return a71_0x375d=function(_0x375dc5,_0x36ffd9){_0x375dc5=_0x375dc5-0x142;let _0x5b7f2e=_0x51e74a[_0x375dc5];return _0x5b7f2e;},a71_0x375d(_0x5d02ca,_0x512b48);}module[a71_0x5ee1fb(0x166)]=AutomationFramework;
1
+ function a71_0x268f(_0x307df3,_0x2fdd09){const _0x4d993b=a71_0x4d99();return a71_0x268f=function(_0x268f9b,_0x2973c2){_0x268f9b=_0x268f9b-0xe8;let _0x485e76=_0x4d993b[_0x268f9b];return _0x485e76;},a71_0x268f(_0x307df3,_0x2fdd09);}const a71_0x19bcf2=a71_0x268f;function a71_0x4d99(){const _0x552cb4=['util','../instances/trackedInstance.js','createContext','getAutomationFrameworkVersion','setTrackedInstance','2696452vtEasj','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','getAllData','getTrackedInstance','\x20hookState=','1293673JpDXxK','258zzihkU','get','../../../helpers/classLogger.js','79331vboABr','getId','325047gWfLqL','getCurrentInstanceName','KEY_AUTOMATION_SESSIONS','AutomationFramework','registerObserver','setState','trackEvent','instances','../cliUtils.js','automationFrameworkName','set','428384sKWjHT','runHooks','non_browserstack_automation_sessions','automationFrameworkVersion','debug','1284138TyEGPH','trackEvent:\x20automationFrameworkState=','5936640mLbuWn','notifyObserver'];a71_0x4d99=function(){return _0x552cb4;};return a71_0x4d99();}(function(_0x16548e,_0x240ca1){const _0x8297fc=a71_0x268f,_0x581fda=_0x16548e();while(!![]){try{const _0x2fd1d9=parseInt(_0x8297fc(0x108))/0x1+-parseInt(_0x8297fc(0xfa))/0x2+parseInt(_0x8297fc(0xea))/0x3+-parseInt(_0x8297fc(0x103))/0x4+parseInt(_0x8297fc(0xfc))/0x5+parseInt(_0x8297fc(0x109))/0x6*(-parseInt(_0x8297fc(0xe8))/0x7)+parseInt(_0x8297fc(0xf5))/0x8;if(_0x2fd1d9===_0x240ca1)break;else _0x581fda['push'](_0x581fda['shift']());}catch(_0x58d9e0){_0x581fda['push'](_0x581fda['shift']());}}}(a71_0x4d99,0xccee5));const {createClassLogger}=require(a71_0x19bcf2(0x10b)),util=require(a71_0x19bcf2(0xfe)),eventDispatcher=require('../eventDispatcher.js'),CLIUtils=require(a71_0x19bcf2(0xf2)),TrackedInstance=require(a71_0x19bcf2(0xff)),logger=createClassLogger(a71_0x19bcf2(0xed));class AutomationFramework{static ['instances']=new Map();static [a71_0x19bcf2(0xec)]='automation_sessions';static [a71_0x19bcf2(0x104)]=a71_0x19bcf2(0xf7);constructor(_0x3bb493,_0x3b9799){const _0x4ebb57=a71_0x19bcf2;this[_0x4ebb57(0xf3)]=_0x3bb493,this[_0x4ebb57(0xf8)]=_0x3b9799;}['getAutomationFrameworkName'](){const _0x4a4d89=a71_0x19bcf2;return this[_0x4a4d89(0xf3)];}[a71_0x19bcf2(0x101)](){const _0x212f11=a71_0x19bcf2;return this[_0x212f11(0xf8)];}async[a71_0x19bcf2(0xf0)](_0x1dadc9,_0x4b764c,_0x31b9f6={}){const _0x502126=a71_0x19bcf2;logger[_0x502126(0xf9)](_0x502126(0xfb)+_0x1dadc9+_0x502126(0x107)+_0x4b764c);}async[a71_0x19bcf2(0xf6)](_0x49a1c5,_0x573ca5,_0xb7d55d,_0x5ddd10={}){const _0x5ac06b=a71_0x19bcf2,_0x3ec802=CLIUtils['getHookRegistryKey'](_0x573ca5,_0xb7d55d);_0x49a1c5&&_0x49a1c5[_0x5ac06b(0xef)](_0x573ca5),await eventDispatcher[_0x5ac06b(0xfd)](_0x3ec802,_0x5ddd10);}static[a71_0x19bcf2(0xee)](_0x287385,_0x79850b,_0x4bace6){const _0x1fab57=a71_0x19bcf2;eventDispatcher[_0x1fab57(0xee)](CLIUtils['getHookRegistryKey'](_0x287385,_0x79850b),_0x4bace6);}static[a71_0x19bcf2(0x102)](_0x2f4090,_0x66e357){const _0x5ab35c=a71_0x19bcf2;AutomationFramework['instances']['set'](_0x2f4090[_0x5ab35c(0xe9)](),_0x66e357);}static[a71_0x19bcf2(0x106)](){const _0xfe1209=a71_0x19bcf2,_0x45368e=TrackedInstance[_0xfe1209(0x100)](CLIUtils[_0xfe1209(0xeb)]());return AutomationFramework[_0xfe1209(0xf1)][_0xfe1209(0x10a)](_0x45368e[_0xfe1209(0xe9)]());}static[a71_0x19bcf2(0xef)](_0x569ccb,_0x164bd5,_0x30fe50){const _0x5e3639=a71_0x19bcf2;_0x569ccb[_0x5e3639(0x105)]()[_0x5e3639(0xf4)](_0x164bd5,_0x30fe50);}static['getState'](_0xcb4949,_0x3cac79){const _0x472243=a71_0x19bcf2;return _0xcb4949['getAllData']()[_0x472243(0x10a)](_0x3cac79);}}module['exports']=AutomationFramework;
@@ -1 +1 @@
1
- function a72_0x5909(_0x2aa827,_0x433a21){const _0x41ee8c=a72_0x41ee();return a72_0x5909=function(_0x5909c9,_0x4aaafb){_0x5909c9=_0x5909c9-0x197;let _0x5c0140=_0x41ee8c[_0x5909c9];return _0x5c0140;},a72_0x5909(_0x2aa827,_0x433a21);}const a72_0x3c08f6=a72_0x5909;(function(_0x127cff,_0x5ca8c9){const _0x20e11a=a72_0x5909,_0x3ea5a0=_0x127cff();while(!![]){try{const _0x525c2a=-parseInt(_0x20e11a(0x1a3))/0x1+parseInt(_0x20e11a(0x1ae))/0x2+-parseInt(_0x20e11a(0x1a5))/0x3*(parseInt(_0x20e11a(0x1ab))/0x4)+-parseInt(_0x20e11a(0x19a))/0x5+parseInt(_0x20e11a(0x1a9))/0x6+-parseInt(_0x20e11a(0x198))/0x7*(parseInt(_0x20e11a(0x19b))/0x8)+parseInt(_0x20e11a(0x1a6))/0x9*(parseInt(_0x20e11a(0x1aa))/0xa);if(_0x525c2a===_0x5ca8c9)break;else _0x3ea5a0['push'](_0x3ea5a0['shift']());}catch(_0x1955e8){_0x3ea5a0['push'](_0x3ea5a0['shift']());}}}(a72_0x41ee,0x5d315));const a72_0x113cc6={};a72_0x113cc6[a72_0x3c08f6(0x1b4)]=a72_0x3c08f6(0x1a1),a72_0x113cc6[a72_0x3c08f6(0x1b2)]='hub_url',a72_0x113cc6[a72_0x3c08f6(0x199)]='framework_session_id',a72_0x113cc6[a72_0x3c08f6(0x1b3)]='input_capabilities',a72_0x113cc6[a72_0x3c08f6(0x19f)]=a72_0x3c08f6(0x197),a72_0x113cc6['KEY_IS_BROWSERSTACK_HUB']=a72_0x3c08f6(0x1a2),a72_0x113cc6[a72_0x3c08f6(0x19e)]='started_at',a72_0x113cc6[a72_0x3c08f6(0x19c)]=a72_0x3c08f6(0x1b0),a72_0x113cc6[a72_0x3c08f6(0x1a8)]='platform_index',a72_0x113cc6['COMMAND_NEW_SESSION']=a72_0x3c08f6(0x1ac),a72_0x113cc6['COMMAND_GET']=a72_0x3c08f6(0x1b5),a72_0x113cc6[a72_0x3c08f6(0x1af)]=a72_0x3c08f6(0x1a4),a72_0x113cc6[a72_0x3c08f6(0x19d)]=a72_0x3c08f6(0x1b1),a72_0x113cc6[a72_0x3c08f6(0x1a7)]='w3cexecutescriptasync',a72_0x113cc6[a72_0x3c08f6(0x1a0)]='quit';const AutomationFrameworkConstants=a72_0x113cc6;module[a72_0x3c08f6(0x1ad)]=AutomationFrameworkConstants;function a72_0x41ee(){const _0x5e8e58=['KEY_HUB_URL','KEY_INPUT_CAPABILITIES','ENV_BROWSERSTACK_PLATFORM_INDEX','get','capabilities','1613199EttUrW','KEY_FRAMEWORK_SESSION_ID','1382775EtHlGR','16nhpCkH','KEY_ENDED_AT','COMMAND_W3C_EXECUTE_SCRIPT','KEY_STARTED_AT','KEY_CAPABILITIES','COMMAND_QUIT','BROWSERSTACK_PLATFORM_INDEX','is_browserstack_hub','719744IqKqXx','screenshot','207VyXQyj','99oduqoN','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','KEY_PLATFORM_INDEX','3721758KzdPVM','1057490spwyqP','31956IcyMdt','newsession','exports','1213278tmFjwX','COMMAND_SCREENSHOT','ended_at','w3cexecutescript'];a72_0x41ee=function(){return _0x5e8e58;};return a72_0x41ee();}
1
+ function a72_0x1923(_0x1db5cb,_0x56fe4f){const _0x3e1849=a72_0x3e18();return a72_0x1923=function(_0x192370,_0x43767c){_0x192370=_0x192370-0xf8;let _0x2ce4cc=_0x3e1849[_0x192370];return _0x2ce4cc;},a72_0x1923(_0x1db5cb,_0x56fe4f);}const a72_0x41c123=a72_0x1923;(function(_0x1c1e75,_0x4e180b){const _0x2fa707=a72_0x1923,_0x24e6ed=_0x1c1e75();while(!![]){try{const _0x37d897=parseInt(_0x2fa707(0x105))/0x1+-parseInt(_0x2fa707(0x106))/0x2*(-parseInt(_0x2fa707(0x103))/0x3)+parseInt(_0x2fa707(0x101))/0x4*(-parseInt(_0x2fa707(0x113))/0x5)+parseInt(_0x2fa707(0x118))/0x6+parseInt(_0x2fa707(0xfe))/0x7*(-parseInt(_0x2fa707(0x10d))/0x8)+parseInt(_0x2fa707(0x109))/0x9*(-parseInt(_0x2fa707(0x102))/0xa)+-parseInt(_0x2fa707(0xfa))/0xb*(parseInt(_0x2fa707(0x117))/0xc);if(_0x37d897===_0x4e180b)break;else _0x24e6ed['push'](_0x24e6ed['shift']());}catch(_0x5ed480){_0x24e6ed['push'](_0x24e6ed['shift']());}}}(a72_0x3e18,0xcdbe4));const a72_0x127902={};a72_0x127902[a72_0x41c123(0x10c)]=a72_0x41c123(0x104),a72_0x127902[a72_0x41c123(0xf8)]=a72_0x41c123(0x115),a72_0x127902['KEY_FRAMEWORK_SESSION_ID']=a72_0x41c123(0x100),a72_0x127902[a72_0x41c123(0xfb)]=a72_0x41c123(0x116),a72_0x127902['KEY_CAPABILITIES']='capabilities',a72_0x127902[a72_0x41c123(0xf9)]=a72_0x41c123(0x108),a72_0x127902[a72_0x41c123(0x114)]=a72_0x41c123(0x111),a72_0x127902['KEY_ENDED_AT']=a72_0x41c123(0x10a),a72_0x127902[a72_0x41c123(0x112)]=a72_0x41c123(0x10e),a72_0x127902[a72_0x41c123(0xfd)]='newsession',a72_0x127902[a72_0x41c123(0x10f)]=a72_0x41c123(0x110),a72_0x127902['COMMAND_SCREENSHOT']='screenshot',a72_0x127902[a72_0x41c123(0xff)]='w3cexecutescript',a72_0x127902[a72_0x41c123(0x10b)]=a72_0x41c123(0x107),a72_0x127902[a72_0x41c123(0xfc)]='quit';const AutomationFrameworkConstants=a72_0x127902;function a72_0x3e18(){const _0x1dcd86=['4477509UiPFVb','ended_at','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','ENV_BROWSERSTACK_PLATFORM_INDEX','3704iKzVtg','platform_index','COMMAND_GET','get','started_at','KEY_PLATFORM_INDEX','290Jcwbmt','KEY_STARTED_AT','hub_url','input_capabilities','7740PHODSk','6293634dRwwMQ','KEY_HUB_URL','KEY_IS_BROWSERSTACK_HUB','5423ZzUPIz','KEY_INPUT_CAPABILITIES','COMMAND_QUIT','COMMAND_NEW_SESSION','1456eAQzWs','COMMAND_W3C_EXECUTE_SCRIPT','framework_session_id','10560Pdqzwh','10pYCfFr','108021QoJvai','BROWSERSTACK_PLATFORM_INDEX','318590oqxHWO','30MJGMqn','w3cexecutescriptasync','is_browserstack_hub'];a72_0x3e18=function(){return _0x1dcd86;};return a72_0x3e18();}module['exports']=AutomationFrameworkConstants;
@@ -1 +1 @@
1
- const a73_0x5505e0=a73_0x7163;(function(_0x3cdbc3,_0x5a34ba){const _0x5380df=a73_0x7163,_0x149cd2=_0x3cdbc3();while(!![]){try{const _0x352763=-parseInt(_0x5380df(0x1e7))/0x1+-parseInt(_0x5380df(0x1bd))/0x2+-parseInt(_0x5380df(0x207))/0x3+parseInt(_0x5380df(0x1c2))/0x4*(-parseInt(_0x5380df(0x1ff))/0x5)+parseInt(_0x5380df(0x1ea))/0x6*(-parseInt(_0x5380df(0x208))/0x7)+parseInt(_0x5380df(0x1c7))/0x8*(parseInt(_0x5380df(0x203))/0x9)+parseInt(_0x5380df(0x1e2))/0xa;if(_0x352763===_0x5a34ba)break;else _0x149cd2['push'](_0x149cd2['shift']());}catch(_0x26c3ee){_0x149cd2['push'](_0x149cd2['shift']());}}}(a73_0x410e,0x2643e));const a73_0x3e45e1={};a73_0x3e45e1[a73_0x5505e0(0x201)]=a73_0x5505e0(0x1b8),a73_0x3e45e1[a73_0x5505e0(0x1ed)]=a73_0x5505e0(0x1bf),a73_0x3e45e1[a73_0x5505e0(0x1f7)]=a73_0x5505e0(0x1b9),a73_0x3e45e1[a73_0x5505e0(0x1af)]='test_file_path',a73_0x3e45e1[a73_0x5505e0(0x1da)]='test_tags',a73_0x3e45e1[a73_0x5505e0(0x1f3)]='test_result',a73_0x3e45e1[a73_0x5505e0(0x1e8)]=a73_0x5505e0(0x1b7),a73_0x3e45e1['KEY_TEST_STARTED_AT']='test_started_at',a73_0x3e45e1[a73_0x5505e0(0x1dc)]=a73_0x5505e0(0x1e0),a73_0x3e45e1[a73_0x5505e0(0x1b1)]='test_location',a73_0x3e45e1[a73_0x5505e0(0x1d5)]=a73_0x5505e0(0x1c9),a73_0x3e45e1[a73_0x5505e0(0x1fa)]=a73_0x5505e0(0x1be),a73_0x3e45e1[a73_0x5505e0(0x1fc)]=a73_0x5505e0(0x1d0),a73_0x3e45e1['KEY_TEST_FRAMEWORK_NAME']=a73_0x5505e0(0x1ad),a73_0x3e45e1[a73_0x5505e0(0x1b0)]=a73_0x5505e0(0x1ce),a73_0x3e45e1[a73_0x5505e0(0x205)]=a73_0x5505e0(0x1fd),a73_0x3e45e1[a73_0x5505e0(0x1f8)]='test_rerun_name',a73_0x3e45e1[a73_0x5505e0(0x1d3)]='retry_of',a73_0x3e45e1[a73_0x5505e0(0x1d1)]=a73_0x5505e0(0x1f2),a73_0x3e45e1[a73_0x5505e0(0x1b3)]=a73_0x5505e0(0x1bb),a73_0x3e45e1['KEY_TEST_FAILURE_TYPE']=a73_0x5505e0(0x1ba),a73_0x3e45e1[a73_0x5505e0(0x1db)]=a73_0x5505e0(0x1c0),a73_0x3e45e1[a73_0x5505e0(0x1cb)]='test_logs',a73_0x3e45e1[a73_0x5505e0(0x1c5)]=a73_0x5505e0(0x1cd),a73_0x3e45e1[a73_0x5505e0(0x1d4)]=a73_0x5505e0(0x1c3),a73_0x3e45e1[a73_0x5505e0(0x1d7)]=a73_0x5505e0(0x1bc),a73_0x3e45e1[a73_0x5505e0(0x1b6)]=a73_0x5505e0(0x1d6),a73_0x3e45e1['KEY_AUTOMATE_SESSION_REASON']=a73_0x5505e0(0x1b4),a73_0x3e45e1['KEY_EVENT_STARTED_AT']=a73_0x5505e0(0x1b5),a73_0x3e45e1['KEY_EVENT_ENDED_AT']=a73_0x5505e0(0x1ec),a73_0x3e45e1[a73_0x5505e0(0x1eb)]=a73_0x5505e0(0x1f1),a73_0x3e45e1[a73_0x5505e0(0x1e9)]=a73_0x5505e0(0x1ae),a73_0x3e45e1[a73_0x5505e0(0x202)]=a73_0x5505e0(0x1cf),a73_0x3e45e1[a73_0x5505e0(0x1df)]='hook_failure_reason',a73_0x3e45e1[a73_0x5505e0(0x1e4)]=a73_0x5505e0(0x1e3),a73_0x3e45e1[a73_0x5505e0(0x1c6)]=a73_0x5505e0(0x1fb),a73_0x3e45e1[a73_0x5505e0(0x1ee)]=a73_0x5505e0(0x1ca),a73_0x3e45e1[a73_0x5505e0(0x1f9)]='pending',a73_0x3e45e1['DEFAULT_HOOK_RESULT']=a73_0x5505e0(0x1d8),a73_0x3e45e1[a73_0x5505e0(0x1b2)]=a73_0x5505e0(0x1c4),a73_0x3e45e1['KIND_LOG']=a73_0x5505e0(0x1c1),a73_0x3e45e1[a73_0x5505e0(0x200)]='^(BEFORE_|AFTER_)',a73_0x3e45e1[a73_0x5505e0(0x1e6)]=a73_0x5505e0(0x1fe),a73_0x3e45e1[a73_0x5505e0(0x206)]='test_hooks_finished',a73_0x3e45e1[a73_0x5505e0(0x1f5)]=a73_0x5505e0(0x204),a73_0x3e45e1[a73_0x5505e0(0x1de)]='test_hook_last_finished',a73_0x3e45e1[a73_0x5505e0(0x1dd)]=a73_0x5505e0(0x1c8),a73_0x3e45e1[a73_0x5505e0(0x1cc)]=a73_0x5505e0(0x209),a73_0x3e45e1[a73_0x5505e0(0x1f4)]=a73_0x5505e0(0x1f0),a73_0x3e45e1['KEY_FILE_SIZE']=a73_0x5505e0(0x1f6),a73_0x3e45e1['KEY_FILE_NAME']=a73_0x5505e0(0x1d2),a73_0x3e45e1[a73_0x5505e0(0x1d9)]='file_path',a73_0x3e45e1[a73_0x5505e0(0x1ef)]=a73_0x5505e0(0x1e1);function a73_0x410e(){const _0x28e2f2=['KEY_HOOKS_STARTED','178688NyfbOy','KEY_TEST_RESULT_AT','KEY_HOOK_RESULT','6skOKuP','KEY_HOOK_ID','event_ended_at','KEY_TEST_ID','KEY_HOOK_NAME','KEY_FILE_LEVEL','test_attachments','hook_id','platform_index','KEY_TEST_RESULT','KEY_TEST_ATTACHMENTS','KEY_HOOK_LAST_STARTED','file_size','KEY_TEST_NAME','KEY_TEST_RERUN_NAME','DEFAULT_TEST_RESULT','KEY_TEST_SCOPE','hook_logs','KEY_TEST_SCOPES','test_code','test_hooks_started','54415gYCciw','HOOK_REGEX','KEY_TEST_UUID','KEY_HOOK_FAILURE_TYPE','14409dOQdiX','test_hook_last_started','KEY_TEST_CODE','KEY_HOOKS_FINISHED','14820NshBDL','859523wsBdFm','custom_metadata','test_framework_name','hook_result','KEY_TEST_FILE_PATH','KEY_TEST_FRAMEWORK_VERSION','KEY_TEST_LOCATION','KIND_SCREENSHOT','KEY_TEST_FAILURE','automate_session_reason','event_started_at','KEY_AUTOMATE_SESSION_STATUS','test_result_at','test_uuid','test_name','test_failure_type','test_failure','automate_session_name','129718qYjpUi','test_scope','test_id','test_failure_reason','TEST_LOG','28ndmMnu','test_session_name','TEST_SCREENSHOT','KEY_TEST_META','KEY_HOOK_LOGS','1448zhnpjF','logs','test_duration','hook_name','KEY_TEST_LOGS','KEY_CUSTOM_TAGS','test_meta','test_framework_version','hook_failure_type','test_scopes','KEY_PLATFORM_INDEX','file_name','KEY_TEST_RETRY_OF','KEY_SESSION_NAME','KEY_TEST_DURATION','automate_session_status','KEY_AUTOMATE_SESSION_NAME','pending','KEY_FILE_PATH','KEY_TEST_TAGS','KEY_TEST_FAILURE_REASON','KEY_TEST_ENDED_AT','KEY_LOGS','KEY_HOOK_LAST_FINISHED','KEY_HOOK_FAILURE_REASON','test_ended_at','file_level','3144100TDOzNZ','hook_failure','KEY_HOOK_FAILURE','exports'];a73_0x410e=function(){return _0x28e2f2;};return a73_0x410e();}const TestFrameworkConstants=a73_0x3e45e1;function a73_0x7163(_0x18860e,_0x278531){const _0x410ef8=a73_0x410e();return a73_0x7163=function(_0x7163b3,_0x171def){_0x7163b3=_0x7163b3-0x1ad;let _0x4009df=_0x410ef8[_0x7163b3];return _0x4009df;},a73_0x7163(_0x18860e,_0x278531);}module[a73_0x5505e0(0x1e5)]=TestFrameworkConstants;
1
+ function a73_0x9ecc(_0x511e61,_0x42450b){const _0x445b2d=a73_0x445b();return a73_0x9ecc=function(_0x9eccb8,_0x5dfac3){_0x9eccb8=_0x9eccb8-0x156;let _0x3ab638=_0x445b2d[_0x9eccb8];return _0x3ab638;},a73_0x9ecc(_0x511e61,_0x42450b);}function a73_0x445b(){const _0xa4266d=['KEY_FILE_LEVEL','DEFAULT_TEST_RESULT','file_path','DEFAULT_HOOK_RESULT','test_scope','KEY_HOOKS_STARTED','KEY_TEST_STARTED_AT','KEY_AUTOMATE_SESSION_REASON','724096oHVvtO','KEY_TEST_FRAMEWORK_NAME','test_file_path','KEY_HOOK_ID','8cdeWaN','test_ended_at','hook_name','test_framework_version','KEY_TEST_FAILURE_REASON','KEY_TEST_ATTACHMENTS','KEY_TEST_META','test_logs','test_name','KEY_CUSTOM_TAGS','KEY_TEST_SCOPES','test_result_at','KEY_TEST_FAILURE_TYPE','file_level','hook_result','KEY_HOOK_NAME','test_scopes','test_attachments','test_duration','test_tags','test_failure_type','automate_session_status','hook_failure_type','hook_failure','test_hook_last_started','KEY_TEST_RESULT','KEY_TEST_SCOPE','HOOK_REGEX','KEY_TEST_DURATION','KEY_HOOKS_FINISHED','KEY_HOOK_LAST_FINISHED','KEY_TEST_ID','KEY_FILE_NAME','KEY_TEST_FAILURE','KEY_TEST_ENDED_AT','event_ended_at','1378538OEtCYs','hook_id','KEY_TEST_CODE','155lQOMwK','file_name','24372100TmVzdX','custom_metadata','KEY_EVENT_ENDED_AT','KEY_TEST_FILE_PATH','264tlOtbG','test_started_at','KEY_PLATFORM_INDEX','KEY_AUTOMATE_SESSION_NAME','KEY_TEST_RESULT_AT','test_rerun_name','pending','event_started_at','TEST_SCREENSHOT','test_failure','test_uuid','automate_session_reason','retry_of','2913281cXOIpv','test_location','KEY_TEST_RERUN_NAME','KEY_EVENT_STARTED_AT','KEY_FILE_SIZE','KEY_LOGS','KEY_TEST_TAGS','2152jLQedX','KEY_HOOK_RESULT','test_meta','KEY_FILE_PATH','KEY_HOOK_LOGS','test_hooks_started','60498PBgTDI','KEY_HOOK_FAILURE_REASON','platform_index','TEST_LOG','test_failure_reason','KIND_SCREENSHOT','test_hooks_finished','KEY_TEST_FRAMEWORK_VERSION','14720103hUCCNB'];a73_0x445b=function(){return _0xa4266d;};return a73_0x445b();}const a73_0x1b399b=a73_0x9ecc;(function(_0x2e0faf,_0x44b0d7){const _0x340054=a73_0x9ecc,_0xdf5f7d=_0x2e0faf();while(!![]){try{const _0x5685b5=-parseInt(_0x340054(0x19d))/0x1+parseInt(_0x340054(0x169))/0x2+parseInt(_0x340054(0x172))/0x3*(parseInt(_0x340054(0x186))/0x4)+-parseInt(_0x340054(0x16c))/0x5*(parseInt(_0x340054(0x18c))/0x6)+-parseInt(_0x340054(0x17f))/0x7*(-parseInt(_0x340054(0x1a1))/0x8)+-parseInt(_0x340054(0x194))/0x9+parseInt(_0x340054(0x16e))/0xa;if(_0x5685b5===_0x44b0d7)break;else _0xdf5f7d['push'](_0xdf5f7d['shift']());}catch(_0x5d763c){_0xdf5f7d['push'](_0xdf5f7d['shift']());}}}(a73_0x445b,0xe010a));const a73_0xc0d917={};a73_0xc0d917['KEY_TEST_UUID']=a73_0x1b399b(0x17c),a73_0xc0d917[a73_0x1b399b(0x164)]='test_id',a73_0xc0d917['KEY_TEST_NAME']=a73_0x1b399b(0x1a9),a73_0xc0d917[a73_0x1b399b(0x171)]=a73_0x1b399b(0x19f),a73_0xc0d917[a73_0x1b399b(0x185)]=a73_0x1b399b(0x158),a73_0xc0d917[a73_0x1b399b(0x15e)]='test_result',a73_0xc0d917[a73_0x1b399b(0x176)]=a73_0x1b399b(0x1ac),a73_0xc0d917[a73_0x1b399b(0x19b)]=a73_0x1b399b(0x173),a73_0xc0d917[a73_0x1b399b(0x167)]=a73_0x1b399b(0x1a2),a73_0xc0d917['KEY_TEST_LOCATION']=a73_0x1b399b(0x180),a73_0xc0d917[a73_0x1b399b(0x161)]=a73_0x1b399b(0x157),a73_0xc0d917[a73_0x1b399b(0x15f)]=a73_0x1b399b(0x199),a73_0xc0d917[a73_0x1b399b(0x1ab)]=a73_0x1b399b(0x1b1),a73_0xc0d917[a73_0x1b399b(0x19e)]='test_framework_name',a73_0xc0d917[a73_0x1b399b(0x193)]=a73_0x1b399b(0x1a4),a73_0xc0d917[a73_0x1b399b(0x16b)]='test_code',a73_0xc0d917[a73_0x1b399b(0x181)]=a73_0x1b399b(0x177),a73_0xc0d917['KEY_TEST_RETRY_OF']=a73_0x1b399b(0x17e),a73_0xc0d917[a73_0x1b399b(0x174)]=a73_0x1b399b(0x18e),a73_0xc0d917[a73_0x1b399b(0x166)]=a73_0x1b399b(0x17b),a73_0xc0d917[a73_0x1b399b(0x1ad)]=a73_0x1b399b(0x159),a73_0xc0d917[a73_0x1b399b(0x1a5)]=a73_0x1b399b(0x190),a73_0xc0d917['KEY_TEST_LOGS']=a73_0x1b399b(0x1a8),a73_0xc0d917[a73_0x1b399b(0x1a7)]=a73_0x1b399b(0x188),a73_0xc0d917['KEY_SESSION_NAME']='test_session_name',a73_0xc0d917[a73_0x1b399b(0x175)]='automate_session_name',a73_0xc0d917['KEY_AUTOMATE_SESSION_STATUS']=a73_0x1b399b(0x15a),a73_0xc0d917[a73_0x1b399b(0x19c)]=a73_0x1b399b(0x17d),a73_0xc0d917[a73_0x1b399b(0x182)]=a73_0x1b399b(0x179),a73_0xc0d917[a73_0x1b399b(0x170)]=a73_0x1b399b(0x168),a73_0xc0d917[a73_0x1b399b(0x1a0)]=a73_0x1b399b(0x16a),a73_0xc0d917[a73_0x1b399b(0x187)]=a73_0x1b399b(0x1af),a73_0xc0d917['KEY_HOOK_FAILURE_TYPE']=a73_0x1b399b(0x15b),a73_0xc0d917[a73_0x1b399b(0x18d)]='hook_failure_reason',a73_0xc0d917['KEY_HOOK_FAILURE']=a73_0x1b399b(0x15c),a73_0xc0d917[a73_0x1b399b(0x18a)]='hook_logs',a73_0xc0d917[a73_0x1b399b(0x1b0)]=a73_0x1b399b(0x1a3),a73_0xc0d917[a73_0x1b399b(0x196)]=a73_0x1b399b(0x178),a73_0xc0d917[a73_0x1b399b(0x198)]=a73_0x1b399b(0x178),a73_0xc0d917[a73_0x1b399b(0x191)]=a73_0x1b399b(0x17a),a73_0xc0d917['KIND_LOG']=a73_0x1b399b(0x18f),a73_0xc0d917[a73_0x1b399b(0x160)]='^(BEFORE_|AFTER_)',a73_0xc0d917[a73_0x1b399b(0x19a)]=a73_0x1b399b(0x18b),a73_0xc0d917[a73_0x1b399b(0x162)]=a73_0x1b399b(0x192),a73_0xc0d917['KEY_HOOK_LAST_STARTED']=a73_0x1b399b(0x15d),a73_0xc0d917[a73_0x1b399b(0x163)]='test_hook_last_finished',a73_0xc0d917[a73_0x1b399b(0x184)]='logs',a73_0xc0d917[a73_0x1b399b(0x1aa)]=a73_0x1b399b(0x16f),a73_0xc0d917[a73_0x1b399b(0x1a6)]=a73_0x1b399b(0x156),a73_0xc0d917[a73_0x1b399b(0x183)]='file_size',a73_0xc0d917[a73_0x1b399b(0x165)]=a73_0x1b399b(0x16d),a73_0xc0d917[a73_0x1b399b(0x189)]=a73_0x1b399b(0x197),a73_0xc0d917[a73_0x1b399b(0x195)]=a73_0x1b399b(0x1ae);const TestFrameworkConstants=a73_0xc0d917;module['exports']=TestFrameworkConstants;
@@ -1 +1 @@
1
- const a74_0x35e40e=a74_0x1d7a;(function(_0x9a7422,_0x412130){const _0x131325=a74_0x1d7a,_0x2a74d2=_0x9a7422();while(!![]){try{const _0x417241=parseInt(_0x131325(0x22c))/0x1+-parseInt(_0x131325(0x1af))/0x2*(-parseInt(_0x131325(0x186))/0x3)+parseInt(_0x131325(0x244))/0x4+-parseInt(_0x131325(0x21b))/0x5+parseInt(_0x131325(0x230))/0x6*(parseInt(_0x131325(0x1ad))/0x7)+-parseInt(_0x131325(0x1df))/0x8*(-parseInt(_0x131325(0x215))/0x9)+-parseInt(_0x131325(0x1c6))/0xa;if(_0x417241===_0x412130)break;else _0x2a74d2['push'](_0x2a74d2['shift']());}catch(_0x3b51c0){_0x2a74d2['push'](_0x2a74d2['shift']());}}}(a74_0xd48f,0x9f983));function a74_0x1d7a(_0x1dbcf1,_0xf36051){const _0xd48f80=a74_0xd48f();return a74_0x1d7a=function(_0x1d7a9c,_0x393fe0){_0x1d7a9c=_0x1d7a9c-0x182;let _0x1aaae6=_0xd48f80[_0x1d7a9c];return _0x1aaae6;},a74_0x1d7a(_0x1dbcf1,_0xf36051);}const TestFramework=require(a74_0x35e40e(0x19f)),TestFrameworkState=require(a74_0x35e40e(0x1ab)),HookState=require(a74_0x35e40e(0x1f7)),{createClassLogger}=require(a74_0x35e40e(0x1d7)),TestFrameworkInstance=require(a74_0x35e40e(0x247)),CLIUtils=require('../cliUtils.js'),TrackedInstance=require(a74_0x35e40e(0x238)),TestFrameworkConstants=require(a74_0x35e40e(0x1ca)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a74_0x35e40e(0x198)),logger=createClassLogger(a74_0x35e40e(0x218)),{v4:uuidv4}=require(a74_0x35e40e(0x1b9)),util=require(a74_0x35e40e(0x1ea)),TestInfo=require(a74_0x35e40e(0x1fb)),GrpcClient=require('../grpcClient');class CucumberTestFramework extends TestFramework{constructor(_0x22b2cc,_0x547b0e,_0x3f274d){super(_0x22b2cc,_0x547b0e,_0x3f274d);}async[a74_0x35e40e(0x23a)](_0xe8888e,_0x53ef93,_0x5b474d={}){const _0x36ad2e=a74_0x35e40e,_0x1ce75e={};_0x1ce75e[_0x36ad2e(0x1ed)]=_0x36ad2e(0x23d),_0x1ce75e[_0x36ad2e(0x20e)]=function(_0x132760,_0x5cc59a){return _0x132760===_0x5cc59a;},_0x1ce75e['IBYmm']=function(_0x5a893d,_0x388f3c){return _0x5a893d===_0x388f3c;},_0x1ce75e[_0x36ad2e(0x1c3)]=_0x36ad2e(0x1f5);const _0x28733d=_0x1ce75e;await super['trackEvent'](_0xe8888e,_0x53ef93,_0x5b474d);const _0x8be920=this[_0x36ad2e(0x187)](_0xe8888e,_0x53ef93,_0x5b474d);if(!_0x8be920){logger[_0x36ad2e(0x245)](_0x28733d[_0x36ad2e(0x1ed)]);return;}try{let _0xdbb740,_0x4d3664;switch(_0xe8888e){case TestFrameworkState[_0x36ad2e(0x1c7)]:_0xdbb740=_0x5b474d[_0x36ad2e(0x1a0)],_0x4d3664=TestInfo[_0x36ad2e(0x23e)](_0xdbb740['id']);if(_0x28733d[_0x36ad2e(0x20e)](_0x53ef93,HookState['PRE'])){logger[_0x36ad2e(0x245)]('trackEvent\x20loading\x20testData\x20for\x20testId:\x20'+_0xdbb740['id']);const _0x5894dd={};_0x5894dd[_0x36ad2e(0x1e4)]=_0x4d3664,_0x5894dd[_0x36ad2e(0x226)]=_0xdbb740,_0x8be920[_0x36ad2e(0x20c)](this['parseCucumberTest'](_0x5894dd)),logger[_0x36ad2e(0x245)]('trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20'+_0xdbb740['id']),await this[_0x36ad2e(0x18b)](_0x8be920,_0xdbb740['id']);}else{if(_0x28733d['NkSRR'](_0x53ef93,HookState['POST'])){const _0x455f8f={};_0x455f8f['testUUID']=_0x4d3664,_0x455f8f['testData']=_0xdbb740,_0x8be920['addMultipleEntries'](this[_0x36ad2e(0x1f3)](_0x455f8f)),await this[_0x36ad2e(0x18b)](_0x8be920,_0xdbb740['id']);}}break;case TestFrameworkState[_0x36ad2e(0x1cc)]:_0x28733d[_0x36ad2e(0x242)](_0x53ef93,HookState[_0x36ad2e(0x1b5)])&&await this[_0x36ad2e(0x23b)](_0x8be920,_0xe8888e,_0x5b474d);break;default:if(CLIUtils[_0x36ad2e(0x235)](_0xe8888e[_0x36ad2e(0x1cb)]()['split']('.')[0x1])){const _0x35de5e=await this[_0x36ad2e(0x1a3)](_0x8be920,_0xe8888e,_0x53ef93,_0x5b474d);_0x8be920['addMultipleEntries'](_0x35de5e);}else logger['debug']('trackEvent:\x20unsupported\x20testFrameworkState='+_0xe8888e+_0x36ad2e(0x18e)+_0x53ef93);break;}}catch(_0x5c7d9c){logger['error'](util[_0x36ad2e(0x1d8)](_0x28733d['ozCgC'],_0xe8888e,_0x53ef93,_0x5b474d[_0x36ad2e(0x19d)],_0x5c7d9c));}_0x5b474d[_0x36ad2e(0x18d)]=_0x8be920,await this[_0x36ad2e(0x1b6)](_0x8be920,_0xe8888e,_0x53ef93,_0x5b474d);}[a74_0x35e40e(0x187)](_0x21e3bb,_0x314d8d,_0x13014f={}){const _0x3190cd=a74_0x35e40e,_0x226d85={};_0x226d85[_0x3190cd(0x18c)]=function(_0xba746f,_0x7422d3){return _0xba746f===_0x7422d3;};const _0x43f3a9=_0x226d85;let _0xb817ff=null;return(_0x43f3a9[_0x3190cd(0x18c)](_0x21e3bb,TestFrameworkState[_0x3190cd(0x194)])||_0x43f3a9['pdkxx'](_0x21e3bb,TestFrameworkState[_0x3190cd(0x209)]))&&this['trackCucumberInstance'](_0x21e3bb,_0x13014f),_0xb817ff=TestFramework[_0x3190cd(0x224)](),_0xb817ff;}['trackCucumberInstance'](_0x1fac35,_0x60dc){const _0x15395d=a74_0x35e40e,_0xc9d211=CLIUtils['getCurrentInstanceName'](),_0x523d95=TrackedInstance[_0x15395d(0x24b)](_0xc9d211);let _0x1129a9=null;logger[_0x15395d(0x245)]('trackCucumberInstance:\x20created\x20instance\x20for\x20target='+_0xc9d211+_0x15395d(0x190)+_0x1fac35),_0x1129a9=new TestFrameworkInstance(_0x523d95,this[_0x15395d(0x24a)](),this['getTestFrameworksVersions'](),_0x1fac35,HookState[_0x15395d(0x209)]),TestFramework[_0x15395d(0x1a7)](_0x523d95,_0x1129a9),logger[_0x15395d(0x245)](_0x15395d(0x1fa)+_0x523d95[_0x15395d(0x1d3)]()+_0x15395d(0x19c)+_0xc9d211);}[a74_0x35e40e(0x1bc)](_0x468862){const _0x170ea9=a74_0x35e40e,_0x343315={};_0x343315[_0x170ea9(0x1e7)]=_0x170ea9(0x1e9);const _0x2e74d4=_0x343315,{testUUID:_0x46ddd2,testData:_0x6b47fd}=_0x468862;if(!_0x6b47fd||!_0x6b47fd['uuid'])return logger[_0x170ea9(0x245)](_0x2e74d4['WbWcR']),{};const _0x221a2b=_0x46ddd2,_0x2d6b72=_0x6b47fd[_0x170ea9(0x1b9)],_0x2abf02=this['getTestFrameworks']()[0x0],_0x40213c=this[_0x170ea9(0x21a)](),_0x304b0a={[TestFrameworkConstants[_0x170ea9(0x1d6)]]:_0x2abf02,[TestFrameworkConstants[_0x170ea9(0x1ac)]]:_0x40213c[_0x2abf02],[TestFrameworkConstants['KEY_TEST_LOGS']]:[],[TestFrameworkConstants[_0x170ea9(0x1db)]]:{},[TestFrameworkConstants[_0x170ea9(0x246)]]:{},[TestFrameworkConstants[_0x170ea9(0x237)]]:_0x221a2b,[TestFrameworkConstants[_0x170ea9(0x1b8)]]:TestFrameworkConstants[_0x170ea9(0x20f)],[TestFrameworkConstants[_0x170ea9(0x1f9)]]:_0x6b47fd[_0x170ea9(0x196)]||'',[TestFrameworkConstants[_0x170ea9(0x1ce)]]:_0x6b47fd['file_name']||'',[TestFrameworkConstants[_0x170ea9(0x241)]]:_0x2d6b72,[TestFrameworkConstants['KEY_TEST_NAME']]:_0x6b47fd[_0x170ea9(0x196)]||'',[TestFrameworkConstants[_0x170ea9(0x1fd)]]:_0x6b47fd[_0x170ea9(0x1b3)]||'',[TestFrameworkConstants['KEY_TEST_CODE']]:_0x6b47fd[_0x170ea9(0x22d)]?.[_0x170ea9(0x21d)]||null,[TestFrameworkConstants[_0x170ea9(0x1ae)]]:_0x6b47fd[_0x170ea9(0x19b)]||[],[TestFrameworkConstants[_0x170ea9(0x1aa)]]:_0x6b47fd[_0x170ea9(0x222)]||new Date()[_0x170ea9(0x236)](),[TestFrameworkConstants[_0x170ea9(0x240)]]:_0x6b47fd['scopes']?.[0x0]||'',[TestFrameworkConstants['KEY_TEST_SCOPES']]:_0x6b47fd[_0x170ea9(0x1f6)]||[],[TestFrameworkConstants[_0x170ea9(0x1d2)]]:_0x6b47fd[_0x170ea9(0x21c)]?.['rerun_name']||_0x6b47fd['name']||'',[TestFrameworkConstants[_0x170ea9(0x248)]]:{},[TestFrameworkConstants['KEY_TEST_META']]:_0x6b47fd[_0x170ea9(0x1fc)]||{}};TestInfo[_0x170ea9(0x202)](_0x2d6b72,_0x304b0a),logger['debug'](_0x170ea9(0x1a8)+_0x6b47fd[_0x170ea9(0x196)]+'\x20with\x20UUID:\x20'+_0x221a2b);const _0x39b978={};return _0x39b978[_0x2d6b72]=_0x304b0a,_0x39b978;}[a74_0x35e40e(0x1f3)](_0x2f039f){const _0x3893ae=a74_0x35e40e,_0x450fc6={'VCzga':_0x3893ae(0x19e),'IQGEZ':_0x3893ae(0x1d9),'FJFer':function(_0x146959,_0x11186c){return _0x146959===_0x11186c;},'JyoBX':_0x3893ae(0x1ff),'JuunY':_0x3893ae(0x1da),'ZvnvS':function(_0x2f6060,_0x5e52da,_0x579505){return _0x2f6060(_0x5e52da,_0x579505);},'ggtXD':function(_0x4ac966,_0x201749){return _0x4ac966>_0x201749;},'ZsGKf':function(_0x21bbf3,_0x52ea40){return _0x21bbf3>_0x52ea40;}},{testUUID:_0x49818e,testData:_0x2423aa}=_0x2f039f;if(!_0x2423aa||!_0x2423aa[_0x3893ae(0x1b9)])return logger[_0x3893ae(0x245)](_0x450fc6[_0x3893ae(0x1c8)]),{};const _0x2d900c=this['resolveInstance'](TestFrameworkState['TEST'],HookState['POST']),_0x4b491e=_0x2423aa['uuid'],_0x203228=TestInfo['getTestDetails'](_0x4b491e)||{},_0x3da4ba=_0x203228?_0x203228[TestFrameworkConstants[_0x3893ae(0x248)]]||{}:{},_0x756a67={..._0x203228,[TestFrameworkConstants[_0x3893ae(0x1b8)]]:_0x2423aa[_0x3893ae(0x1c9)]||_0x450fc6[_0x3893ae(0x214)],[TestFrameworkConstants[_0x3893ae(0x24e)]]:_0x2423aa[_0x3893ae(0x1ef)]||new Date()[_0x3893ae(0x236)](),[TestFrameworkConstants[_0x3893ae(0x1d1)]]:new Date()[_0x3893ae(0x236)](),[TestFrameworkConstants[_0x3893ae(0x248)]]:_0x3da4ba,[TestFrameworkConstants[_0x3893ae(0x1ee)]]:[],[TestFrameworkConstants['KEY_TEST_META']]:_0x2423aa[_0x3893ae(0x1fc)]||{}};_0x450fc6[_0x3893ae(0x1c1)](_0x2423aa[_0x3893ae(0x1c9)],_0x450fc6['JyoBX'])&&_0x2423aa[_0x3893ae(0x1bb)]&&(_0x756a67[TestFrameworkConstants[_0x3893ae(0x21e)]]=_0x2423aa['failure_type']||_0x450fc6[_0x3893ae(0x185)],_0x756a67[TestFrameworkConstants['KEY_TEST_FAILURE_REASON']]=_0x2423aa[_0x3893ae(0x1ba)]||'',_0x756a67[TestFrameworkConstants[_0x3893ae(0x1bf)]]=_0x2423aa[_0x3893ae(0x1bb)]);const _0x568795=TestInfo['getTestDetails'](_0x4b491e)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x2f5d94=_0x450fc6[_0x3893ae(0x250)](getManualUploadLogs,_0x568795,_0x2d900c['getAllData']()[_0x3893ae(0x192)](_0x4b491e)[TestFrameworkConstants[_0x3893ae(0x237)]]);if(_0x450fc6[_0x3893ae(0x188)](_0x2f5d94[_0x3893ae(0x19d)],0x0)){const _0x2bdc17=_0x756a67[TestFrameworkConstants['KEY_LOGS']]||[];_0x756a67[TestFrameworkConstants[_0x3893ae(0x1ee)]]=[..._0x2bdc17,..._0x2f5d94];}_0x2423aa[_0x3893ae(0x21f)]&&_0x450fc6['ZsGKf'](_0x2423aa[_0x3893ae(0x21f)][_0x3893ae(0x19d)],0x0)&&(_0x756a67[TestFrameworkConstants[_0x3893ae(0x1db)]]=_0x2423aa[_0x3893ae(0x21f)]);TestInfo[_0x3893ae(0x202)](_0x4b491e,_0x756a67),logger[_0x3893ae(0x245)](_0x3893ae(0x1cf)+_0x2423aa[_0x3893ae(0x196)]+_0x3893ae(0x22e)+_0x2423aa[_0x3893ae(0x1c9)]);const _0x26f43e={};return _0x26f43e[_0x4b491e]=_0x756a67,_0x26f43e;}async[a74_0x35e40e(0x1a3)](_0x327797,_0x3cd6d7,_0x449d64,_0x140359){const _0x5e97c5=a74_0x35e40e,_0x1f65f2={'OdifX':_0x5e97c5(0x249),'PDuNO':function(_0x50ebda){return _0x50ebda();},'XYZXQ':function(_0xd8e201,_0x1a10e4){return _0xd8e201 in _0x1a10e4;},'QdFrV':function(_0x2db979,_0x7ac275){return _0x2db979===_0x7ac275;},'OtWov':function(_0xfa5f76,_0x47c2d9){return _0xfa5f76===_0x47c2d9;},'QOyKh':function(_0x4671bf,_0x26bf59){return _0x4671bf>_0x26bf59;},'jiGSx':function(_0x50163a,_0xea1aed){return _0x50163a===_0xea1aed;},'vtOTp':_0x5e97c5(0x1ff),'lasbR':_0x5e97c5(0x1da),'kldFw':_0x5e97c5(0x239),'RyBhW':function(_0x14a133,_0x3d52de){return _0x14a133!==_0x3d52de;}},{hookData:_0x5be416}=_0x140359;if(!_0x5be416)return logger[_0x5e97c5(0x245)](_0x1f65f2['OdifX']),{};const _0x190fea=_0x5be416[_0x5e97c5(0x1b9)]||_0x1f65f2[_0x5e97c5(0x1e6)](uuidv4),_0x111267=_0x5be416['test_run_id'],_0x3703af=_0x3cd6d7[_0x5e97c5(0x1cb)]()[_0x5e97c5(0x1b7)]('.')[0x1],_0x1bddb9=TestInfo[_0x5e97c5(0x19a)](_0x111267)[TestFrameworkConstants[_0x5e97c5(0x248)]]||{},_0x2d4234=_0x327797[_0x5e97c5(0x20d)]()[_0x5e97c5(0x192)](_0x111267);if(!_0x2d4234)return logger[_0x5e97c5(0x245)](_0x5e97c5(0x229)+_0x111267+_0x5e97c5(0x1b2)),this[_0x5e97c5(0x1d0)](_0x327797,_0x111267,_0x3cd6d7,_0x449d64,_0x140359),{};let _0x533ed4=_0x2d4234[TestFrameworkConstants[_0x5e97c5(0x246)]];!_0x533ed4&&(_0x533ed4={});!_0x1f65f2[_0x5e97c5(0x1bd)](_0x3703af,_0x533ed4)&&(_0x533ed4[_0x3703af]=[]);let _0x12b76a=_0x2d4234[TestFrameworkConstants[_0x5e97c5(0x1db)]];!_0x12b76a&&(_0x12b76a={});!_0x1f65f2[_0x5e97c5(0x1bd)](_0x3703af,_0x12b76a)&&(_0x12b76a[_0x3703af]=[]);const _0x5b4ab4={[TestFrameworkConstants[_0x5e97c5(0x246)]]:_0x533ed4,[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:_0x12b76a},_0xefa1f={};_0xefa1f[_0x111267]=_0x5b4ab4;const _0x239b40=_0xefa1f;if(_0x1f65f2[_0x5e97c5(0x231)](_0x449d64,HookState[_0x5e97c5(0x1f0)])){const _0x956f29={[TestFrameworkConstants[_0x5e97c5(0x1d5)]]:_0x190fea,[TestFrameworkConstants[_0x5e97c5(0x219)]]:TestFrameworkConstants[_0x5e97c5(0x205)],[TestFrameworkConstants[_0x5e97c5(0x22f)]]:_0x5be416[_0x5e97c5(0x227)],[TestFrameworkConstants[_0x5e97c5(0x1a1)]]:[],[TestFrameworkConstants[_0x5e97c5(0x203)]]:_0x5be416[_0x5e97c5(0x1f8)],[TestFrameworkConstants[_0x5e97c5(0x248)]]:_0x1bddb9};_0x956f29[_0x5e97c5(0x1f1)]=_0x3703af;const _0x10765e=_0x956f29;_0x533ed4[_0x3703af][_0x5e97c5(0x210)](_0x10765e),_0x239b40[_0x111267][TestFrameworkConstants[_0x5e97c5(0x24f)]]=_0x3703af,logger[_0x5e97c5(0x245)]('trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20'+_0x3703af+_0x5e97c5(0x1de)+_0x10765e+_0x5e97c5(0x200)+_0x140359);}else{if(_0x1f65f2['OtWov'](_0x449d64,HookState[_0x5e97c5(0x1b5)])){const _0x35974b=_0x5be416[_0x5e97c5(0x1c9)],_0x12ff9c=_0x533ed4[_0x3703af]||[];logger[_0x5e97c5(0x245)](_0x5e97c5(0x221)+_0x12ff9c+_0x5e97c5(0x234)+_0x140359);if(_0x1f65f2[_0x5e97c5(0x206)](_0x12ff9c[_0x5e97c5(0x19d)],0x0)){const _0x33401f=_0x12ff9c[_0x5e97c5(0x1e0)]();_0x1f65f2[_0x5e97c5(0x232)](_0x5be416[_0x5e97c5(0x1c9)],_0x1f65f2['vtOTp'])&&_0x5be416['failure_data']?(_0x33401f[TestFrameworkConstants[_0x5e97c5(0x1e3)]]=_0x5be416[_0x5e97c5(0x217)]||_0x1f65f2[_0x5e97c5(0x22b)],_0x33401f[TestFrameworkConstants[_0x5e97c5(0x199)]]=_0x5be416[_0x5e97c5(0x1ba)]||'',_0x33401f[TestFrameworkConstants['KEY_HOOK_FAILURE']]=_0x5be416['failure_data']):_0x33401f[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x1f65f2[_0x5e97c5(0x1e5)];_0x1f65f2[_0x5e97c5(0x211)](_0x35974b,TestFrameworkConstants[_0x5e97c5(0x205)])&&(_0x33401f[TestFrameworkConstants[_0x5e97c5(0x219)]]=_0x35974b);_0x33401f[TestFrameworkConstants[_0x5e97c5(0x18f)]]=_0x5be416[_0x5e97c5(0x183)]||new Date()['toISOString'](),_0x33401f[TestFrameworkConstants[_0x5e97c5(0x248)]]=_0x1bddb9;const _0x174c10=_0x33401f[TestFrameworkConstants['KEY_HOOK_ID']];!_0x12b76a[_0x3703af]&&(_0x12b76a[_0x3703af]=[]),_0x12b76a[_0x3703af][_0x5e97c5(0x210)](_0x33401f),_0x239b40[_0x111267][TestFrameworkConstants[_0x5e97c5(0x23f)]]=_0x3703af;}}}return logger[_0x5e97c5(0x245)]('Tracked\x20cucumber\x20hook\x20event:\x20'+_0x5be416['hook_type']+_0x5e97c5(0x1a9)+_0x190fea+_0x5e97c5(0x1c0)+_0x111267),_0x239b40;}[a74_0x35e40e(0x1a5)](_0x28b9f8){const _0x3b50c4=a74_0x35e40e,_0x2cf12e={};_0x2cf12e[_0x3b50c4(0x1d4)]=_0x3b50c4(0x184);const _0x2a4c43=_0x2cf12e;try{const _0x58638a=_0x28b9f8['test']?_0x28b9f8[_0x3b50c4(0x1a0)]['id']:_0x28b9f8[_0x3b50c4(0x212)]['test_run_id'],_0x44802b=_0x28b9f8['instance'],_0x2b7615=_0x44802b[_0x3b50c4(0x195)](),_0x377ce4=_0x44802b[_0x3b50c4(0x20d)]()[_0x3b50c4(0x192)](_0x58638a);if(!_0x377ce4)return logger[_0x3b50c4(0x245)]('createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x58638a),{};logger['debug'](_0x3b50c4(0x213)+_0x58638a);const {[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x2747b9='',[TestFrameworkConstants[_0x3b50c4(0x1ac)]]:_0x5f5375='',[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x4700f7='',[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x3bbfe7=''}=_0x377ce4,_0x560109=_0x44802b['getCurrentTestState']()['toString']()[_0x3b50c4(0x1b7)]('.')[0x1],_0x2c7427=_0x44802b['getCurrentHookState']()[_0x3b50c4(0x1cb)]()['split']('.')[0x1],_0x3cf7ec=global?.[_0x3b50c4(0x1a6)]??0x0,_0x2ee671=_0x44802b[_0x3b50c4(0x1b0)](),_0x44cca9=Buffer[_0x3b50c4(0x223)](JSON['stringify'](_0x377ce4))[_0x3b50c4(0x1cb)](_0x2a4c43['WqAbA']),_0x2ae640={'hash':_0x2b7615['getId'](),'threadId':_0x2b7615[_0x3b50c4(0x193)]()[_0x3b50c4(0x1cb)](),'processId':_0x2b7615[_0x3b50c4(0x24d)]()[_0x3b50c4(0x1cb)]()},_0x16aeda={};_0x16aeda[_0x3b50c4(0x216)]=_0x3cf7ec,_0x16aeda[_0x3b50c4(0x182)]=_0x2747b9,_0x16aeda['testFrameworkVersion']=_0x5f5375,_0x16aeda[_0x3b50c4(0x225)]=_0x560109,_0x16aeda[_0x3b50c4(0x1dd)]=_0x2c7427,_0x16aeda['startedAt']=_0x4700f7,_0x16aeda[_0x3b50c4(0x24c)]=_0x3bbfe7,_0x16aeda[_0x3b50c4(0x1b9)]=_0x2ee671,_0x16aeda['eventJson']=_0x44cca9,_0x16aeda[_0x3b50c4(0x1e2)]=_0x2ae640;const _0x531d43=_0x16aeda;return logger[_0x3b50c4(0x245)](_0x3b50c4(0x1ec)+_0x58638a+_0x3b50c4(0x208)+_0x560109+'\x20hookState:\x20'+_0x2c7427),_0x531d43;}catch(_0x5a0c0c){return logger[_0x3b50c4(0x1b1)]('Error\x20in\x20createTestFrameworkEventPayload:\x20'+util[_0x3b50c4(0x1d8)](_0x5a0c0c)),{};}}async[a74_0x35e40e(0x23b)](_0x7b2226,_0xc30a6d,_0x1a8f2b){const _0x51a61f=a74_0x35e40e,_0x13042e={'jskbZ':function(_0x204112,_0x545f67,_0x4ec523){return _0x204112(_0x545f67,_0x4ec523);},'zvqVR':function(_0x132a87,_0x1bc229){return _0x132a87===_0x1bc229;},'fAezi':_0x51a61f(0x1b4),'XYgEj':function(_0x5ccdfe,_0x5b8d2f){return _0x5ccdfe/_0x5b8d2f;},'fcWYH':function(_0x3fa1c0,_0x569e5a){return _0x3fa1c0<_0x569e5a;},'ciqFr':function(_0x4610cf,_0x7974d1){return _0x4610cf*_0x7974d1;},'tjPQI':function(_0x29675c,_0x3e70d2){return _0x29675c+_0x3e70d2;},'MiJeZ':function(_0x4b3553,_0x199662){return _0x4b3553+_0x199662;},'vcypU':_0x51a61f(0x1c4)};try{const _0x165ac7=_0x1a8f2b[_0x51a61f(0x1e4)],_0x3b30ee=_0x7b2226[_0x51a61f(0x20d)]()[_0x51a61f(0x192)](_0x165ac7),{[TestFrameworkConstants[_0x51a61f(0x1d6)]]:_0x5b6adc='',[TestFrameworkConstants[_0x51a61f(0x1ac)]]:_0x33965a=''}=_0x3b30ee,_0x12a0f2=TestInfo[_0x51a61f(0x204)](_0x165ac7),_0x2272fe=TestInfo[_0x51a61f(0x19a)](_0x165ac7)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x10d8e7=_0x13042e['jskbZ'](getMediaArtifactsLogs,_0x2272fe,_0x7b2226[_0x51a61f(0x20d)]()['get'](_0x165ac7)[TestFrameworkConstants[_0x51a61f(0x237)]]),_0x44e6b7=(_0x12a0f2||[])['concat'](_0x10d8e7||[]);if(!_0x44e6b7||_0x13042e[_0x51a61f(0x20a)](_0x44e6b7[_0x51a61f(0x19d)],0x0)){logger[_0x51a61f(0x245)](_0x13042e[_0x51a61f(0x22a)]);return;}const _0x17f41a=0x28,_0x2ddc9f=Math[_0x51a61f(0x233)](_0x13042e[_0x51a61f(0x1e8)](_0x44e6b7[_0x51a61f(0x19d)],_0x17f41a));for(let _0xb7343f=0x0;_0x13042e[_0x51a61f(0x1a2)](_0xb7343f,_0x2ddc9f);_0xb7343f++){const _0x218f45=_0x13042e[_0x51a61f(0x1f2)](_0xb7343f,_0x17f41a),_0x48b298=_0x13042e[_0x51a61f(0x189)](_0x218f45,_0x17f41a),_0x1b42fb=_0x44e6b7['slice'](_0x218f45,_0x48b298),_0x2dfc77={'platformIndex':global?.['browserstackPlatformIndex']??0x0,'logs':_0x1b42fb,'testFrameworkName':_0x5b6adc,'testFrameworkVersion':_0x33965a,'testFrameworkState':_0xc30a6d[_0x51a61f(0x1cb)]()[_0x51a61f(0x1b7)]('.')[0x1]};logger[_0x51a61f(0x245)](_0x51a61f(0x1a4)+_0x165ac7+_0x51a61f(0x1dc)+_0x13042e[_0x51a61f(0x1fe)](_0xb7343f,0x1)+'/'+_0x2ddc9f+_0x51a61f(0x220)+util[_0x51a61f(0x1c2)](_0x2dfc77));const _0x63f195=await GrpcClient[_0x51a61f(0x228)]()[_0x51a61f(0x1c5)](_0x2dfc77);logger[_0x51a61f(0x245)](_0x51a61f(0x1a4)+_0x165ac7+_0x51a61f(0x1dc)+_0x13042e[_0x51a61f(0x1fe)](_0xb7343f,0x1)+'/'+_0x2ddc9f+'\x20response='+util['inspect'](_0x63f195));}}catch(_0x276850){logger[_0x51a61f(0x1b1)](_0x51a61f(0x207)+util[_0x51a61f(0x1d8)](_0x276850));}logger[_0x51a61f(0x245)](_0x13042e['vcypU']);}[a74_0x35e40e(0x1d0)](_0x55bc97,_0x136d53,_0x476786,_0xf386c9,_0x537c02){const _0x3d0481=a74_0x35e40e,_0x4df86d={'testId':_0x136d53,'testFrameworkState':_0x476786,'hookState':_0xf386c9,'args':_0x537c02,'timestamp':new Date()[_0x3d0481(0x236)]()};_0x55bc97['addPendingHook'](_0x136d53,_0x4df86d),logger[_0x3d0481(0x245)](_0x3d0481(0x1f4)+_0x136d53+',\x20state:\x20'+_0x476786+_0x3d0481(0x1eb)+_0xf386c9);}async[a74_0x35e40e(0x18b)](_0x4055d5,_0x3e2b8e){const _0x582971=a74_0x35e40e,_0x2d26b3={};_0x2d26b3[_0x582971(0x23c)]=function(_0x19a1e6,_0x43e6de){return _0x19a1e6>_0x43e6de;};const _0x1e860a=_0x2d26b3;if(!_0x4055d5[_0x582971(0x197)](_0x3e2b8e))return;const _0x1619b7=_0x4055d5[_0x582971(0x191)](_0x3e2b8e);logger[_0x582971(0x245)]('Processing\x20'+_0x1619b7[_0x582971(0x19d)]+'\x20pending\x20hooks\x20for\x20testId:\x20'+_0x3e2b8e);for(const _0x541dfe of _0x1619b7){try{const _0x397efd=await this[_0x582971(0x1a3)](_0x4055d5,_0x541dfe[_0x582971(0x225)],_0x541dfe['hookState'],_0x541dfe[_0x582971(0x1cd)]);_0x397efd&&_0x1e860a[_0x582971(0x23c)](Object[_0x582971(0x243)](_0x397efd)[_0x582971(0x19d)],0x0)&&_0x4055d5[_0x582971(0x20c)](_0x397efd),await this['runHooks'](_0x4055d5,_0x541dfe[_0x582971(0x225)],_0x541dfe[_0x582971(0x1dd)],_0x541dfe[_0x582971(0x1cd)]);}catch(_0x45cd44){logger[_0x582971(0x1b1)](_0x582971(0x20b)+_0x3e2b8e+_0x582971(0x1be)+_0x45cd44);}}_0x4055d5[_0x582971(0x18a)](_0x3e2b8e),logger[_0x582971(0x245)](_0x582971(0x1e1)+_0x3e2b8e);}}function a74_0xd48f(){const _0x34b959=['\x20&\x20hookState=','KEY_EVENT_ENDED_AT',',\x20state=','getPendingHooks','get','getThreadId','INIT_TEST','getContext','name','hasPendingHooks','../../../helpers/helper.js','KEY_HOOK_FAILURE_REASON','getTestDetails','tags','\x20target=','length','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','./testFramework','test','KEY_HOOK_LOGS','fcWYH','trackHookEvent','sendLogCreatedEvent:\x20for\x20testId:\x20','createTestFrameworkEventPayload','browserstackPlatformIndex','setTrackedInstance','Parsed\x20cucumber\x20test:\x20','\x20with\x20id\x20','KEY_TEST_STARTED_AT','../state/testFrameworkState.js','KEY_TEST_FRAMEWORK_VERSION','4636289OjPYvm','KEY_TEST_TAGS','2zRvLUc','getRef','error',',\x20storing\x20as\x20pending\x20hook','location','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','POST','runHooks','split','KEY_TEST_RESULT','uuid','failure_reason','failure','parseCucumberTest','XYZXQ',',\x20error:\x20','KEY_TEST_FAILURE','\x20for\x20test:\x20','FJFer','inspect','ozCgC','Cucumber\x20log\x20created\x20event','logCreatedEvent','6488950FjBpXU','TEST','VCzga','result','./constants/testFrameworkConstants.js','toString','LOG_REPORT','args','KEY_TEST_FILE_PATH','Updated\x20cucumber\x20test\x20result:\x20','storePendingHook','KEY_TEST_RESULT_AT','KEY_TEST_RERUN_NAME','getId','WqAbA','KEY_HOOK_ID','KEY_TEST_FRAMEWORK_NAME','../../../helpers/classLogger.js','format','unknown','UnhandledError','KEY_HOOKS_FINISHED','\x20batch\x20','hookState','\x20&\x20hook\x20=\x20','2280CbBMxw','pop','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','executionContext','KEY_HOOK_FAILURE_TYPE','testUUID','kldFw','PDuNO','WbWcR','XYgEj','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','util',',\x20hookState:\x20','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','nDozV','KEY_LOGS','finishedAt','PRE','key','ciqFr','parseCucumberTestResult','Stored\x20pending\x20hook\x20for\x20testId:\x20','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','scopes','../state/hookState.js','hook_type','KEY_AUTOMATE_SESSION_NAME','trackCucumberInstance:\x20saved\x20instance\x20contextId=','../TestInfo.js','meta','KEY_TEST_LOCATION','MiJeZ','failed','\x20\x20and\x20args\x20=\x20','exports','setTestDetails','KEY_HOOK_NAME','readLogObjects','DEFAULT_HOOK_RESULT','QOyKh','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','\x20testState:\x20','NONE','zvqVR','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','addMultipleEntries','getAllData','NkSRR','DEFAULT_TEST_RESULT','push','RyBhW','hookData','createTestFrameworkEventPayload\x20testId:\x20','IQGEZ','4464ZmftoL','platformIndex','failure_type','CucumberTestFramework','KEY_HOOK_RESULT','getTestFrameworksVersions','6298470RIIyPK','customRerunParam','code','KEY_TEST_FAILURE_TYPE','hooks','\x20payload=','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','startedAt','from','getTrackedInstance','testFrameworkState','testData','started_at','getInstance','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','fAezi','lasbR','322862UfMinq','body','\x20with\x20result:\x20','KEY_EVENT_STARTED_AT','6nGDdIM','QdFrV','jiGSx','ceil','\x20and\x20args\x20=\x20','matchHookRegex','toISOString','KEY_TEST_UUID','../instances/trackedInstance.js','passed','trackEvent','sendLogCreatedEvent','UUWfZ','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','getTestUUID','KEY_HOOK_LAST_FINISHED','KEY_TEST_SCOPE','KEY_TEST_ID','IBYmm','keys','3176208LHVsmK','debug','KEY_HOOKS_STARTED','../instances/testFrameworkInstance.js','KEY_CUSTOM_TAGS','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','getTestFrameworks','createContext','endedAt','getProcessId','KEY_TEST_ENDED_AT','KEY_HOOK_LAST_STARTED','ZvnvS','testFrameworkName','finished_at','base64','JuunY','1925061CKFHvX','resolveInstance','ggtXD','tjPQI','removePendingHooks','processPendingHooks','pdkxx','instance'];a74_0xd48f=function(){return _0x34b959;};return a74_0xd48f();}module[a74_0x35e40e(0x201)]=CucumberTestFramework;
1
+ const a74_0x184ba3=a74_0x21de;function a74_0x21de(_0x599d83,_0x4bbdff){const _0x84cd7e=a74_0x84cd();return a74_0x21de=function(_0x21de3c,_0x4284ba){_0x21de3c=_0x21de3c-0x184;let _0x36b9b5=_0x84cd7e[_0x21de3c];return _0x36b9b5;},a74_0x21de(_0x599d83,_0x4bbdff);}function a74_0x84cd(){const _0xad536=['split','afxBe','KEY_TEST_RESULT','UnhandledError','getTestFrameworks','getAllData','slice','TNJcn','KEY_TEST_NAME','KEY_HOOK_FAILURE_TYPE','KEY_HOOK_FAILURE','debug','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','./constants/testFrameworkConstants.js','9933405DZqdiz','getInstance','Ltmlf','TBjFE','createTestFrameworkEventPayload','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','body','addMultipleEntries','error','trackHookEvent','failure_type','KEY_HOOK_ID',',\x20hookState:\x20','started_at','KEY_TEST_ID','2600656wsSboM','Tracked\x20cucumber\x20hook\x20event:\x20','KEY_TEST_TAGS','trackCucumberInstance','createTestFrameworkEventPayload\x20testId:\x20','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','3843018tjVate','getRef','KEY_EVENT_ENDED_AT','KEY_TEST_RERUN_NAME','yIxyw','failed','addPendingHook','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','parseCucumberTest','../grpcClient','executionContext','meta','hasPendingHooks','failure','GiwhZ','IjsOp','removePendingHooks','test_run_id','jeLxK','testUUID','KEY_TEST_RESULT_AT','parseCucumberTestResult','getTestDetails','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','hookState','failure_data','keys','pop','peGsJ','getId','../cliUtils.js','from','getTestUUID','PRE','11784951SLHwpt','unknown',',\x20storing\x20as\x20pending\x20hook','KEY_TEST_FILE_PATH','getCurrentTestState','RhDfK','../state/testFrameworkState.js','KEY_TEST_FRAMEWORK_NAME','resolveInstance','bqxlP','dcKSR','util','\x20for\x20test:\x20','startedAt','6zuxgxf','storePendingHook','6845012MuKUWL','ijuwq','Error\x20in\x20createTestFrameworkEventPayload:\x20','test','hooks','vtbvW','\x20with\x20result:\x20','passed','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','location','sdEZk','KEY_TEST_STARTED_AT','iVkGp','endedAt','KEY_CUSTOM_TAGS','TEST','tags','DICuW','getContext','MePfC','processPendingHooks','push','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','\x20&\x20hook\x20=\x20','args','KEY_HOOK_LOGS','mMuxl','ceil','../../../helpers/helper.js','key','toString','468726RDlSeK','length','KEY_HOOK_RESULT','aOpFy','testFrameworkVersion','8veRBgV','zmUzc','testFrameworkName','get','POST','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','scopes','result','KEY_HOOK_FAILURE_REASON','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','../instances/trackedInstance.js','getTrackedInstance','KEY_TEST_META','iYmjZ','\x20&\x20hookState=','\x20with\x20UUID:\x20','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','getThreadId','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','browserstackPlatformIndex','\x20\x20and\x20args\x20=\x20','sendLogCreatedEvent:\x20for\x20testId:\x20','KEY_TEST_SCOPES','Wwybj','customRerunParam','bDDbs','\x20and\x20args\x20=\x20','exports','./testFramework','../TestInfo.js','KEY_HOOK_LAST_STARTED','LOG_REPORT',',\x20state=','KEY_LOGS','\x20testState:\x20','failure_reason','finishedAt','logCreatedEvent','KEY_TEST_FAILURE_TYPE','oUXMO','553966XipHXX','sendLogCreatedEvent','uuid','trackCucumberInstance:\x20saved\x20instance\x20contextId=','KEY_TEST_UUID','KEY_TEST_FRAMEWORK_VERSION','finished_at','KEY_EVENT_STARTED_AT','\x20hookState:\x20','KEY_TEST_LOCATION','\x20with\x20id\x20','getCurrentInstanceName','LoxUV','DEFAULT_TEST_RESULT','wsebw','platformIndex','hook_type','KEY_TEST_ATTACHMENTS','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','format','runHooks','KEY_TEST_CODE',',\x20error:\x20','concat','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','toISOString','KEY_TEST_SCOPE','KEY_HOOKS_STARTED','base64','DEFAULT_HOOK_RESULT','trackEvent','Updated\x20cucumber\x20test\x20result:\x20','Processing\x20','readLogObjects','name','hookData','\x20batch\x20','KEY_TEST_ENDED_AT','testData','../../../helpers/classLogger.js','trackEvent:\x20unsupported\x20testFrameworkState=','KEY_TEST_FAILURE','testFrameworkState','KEY_HOOKS_FINISHED'];a74_0x84cd=function(){return _0xad536;};return a74_0x84cd();}(function(_0x2db49d,_0x450f93){const _0x55243d=a74_0x21de,_0x455e03=_0x2db49d();while(!![]){try{const _0x148437=-parseInt(_0x55243d(0x215))/0x1+parseInt(_0x55243d(0x1be))/0x2+parseInt(_0x55243d(0x1c4))/0x3+-parseInt(_0x55243d(0x1f6))/0x4+-parseInt(_0x55243d(0x1af))/0x5*(-parseInt(_0x55243d(0x1f4))/0x6)+parseInt(_0x55243d(0x242))/0x7*(-parseInt(_0x55243d(0x21a))/0x8)+-parseInt(_0x55243d(0x1e6))/0x9;if(_0x148437===_0x450f93)break;else _0x455e03['push'](_0x455e03['shift']());}catch(_0x4b09d1){_0x455e03['push'](_0x455e03['shift']());}}}(a74_0x84cd,0xf4023));const TestFramework=require(a74_0x184ba3(0x236)),TestFrameworkState=require(a74_0x184ba3(0x1ec)),HookState=require('../state/hookState.js'),{createClassLogger}=require(a74_0x184ba3(0x19c)),TestFrameworkInstance=require('../instances/testFrameworkInstance.js'),CLIUtils=require(a74_0x184ba3(0x1e2)),TrackedInstance=require(a74_0x184ba3(0x224)),TestFrameworkConstants=require(a74_0x184ba3(0x1ae)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a74_0x184ba3(0x212)),logger=createClassLogger('CucumberTestFramework'),{v4:uuidv4}=require(a74_0x184ba3(0x244)),util=require(a74_0x184ba3(0x1f1)),TestInfo=require(a74_0x184ba3(0x237)),GrpcClient=require(a74_0x184ba3(0x1cd));class CucumberTestFramework extends TestFramework{constructor(_0x220c01,_0xdee5f2,_0x531c5b){super(_0x220c01,_0xdee5f2,_0x531c5b);}async[a74_0x184ba3(0x193)](_0xd8a44e,_0x5d9861,_0x18d7f2={}){const _0x2d1b2a=a74_0x184ba3,_0x24b547={};_0x24b547[_0x2d1b2a(0x24e)]=_0x2d1b2a(0x1db),_0x24b547[_0x2d1b2a(0x1a8)]=function(_0x5f303b,_0x1c6b04){return _0x5f303b===_0x1c6b04;},_0x24b547['GiwhZ']='trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s';const _0x1778d3=_0x24b547;await super[_0x2d1b2a(0x193)](_0xd8a44e,_0x5d9861,_0x18d7f2);const _0x2e377e=this['resolveInstance'](_0xd8a44e,_0x5d9861,_0x18d7f2);if(!_0x2e377e){logger['debug'](_0x1778d3[_0x2d1b2a(0x24e)]);return;}try{let _0x2ec4cf,_0x364593;switch(_0xd8a44e){case TestFrameworkState[_0x2d1b2a(0x205)]:_0x2ec4cf=_0x18d7f2[_0x2d1b2a(0x1f9)],_0x364593=TestInfo[_0x2d1b2a(0x1e4)](_0x2ec4cf['id']);if(_0x1778d3['TNJcn'](_0x5d9861,HookState[_0x2d1b2a(0x1e5)])){logger[_0x2d1b2a(0x1ac)]('trackEvent\x20loading\x20testData\x20for\x20testId:\x20'+_0x2ec4cf['id']);const _0x16cedd={};_0x16cedd['testUUID']=_0x364593,_0x16cedd[_0x2d1b2a(0x19b)]=_0x2ec4cf,_0x2e377e['addMultipleEntries'](this[_0x2d1b2a(0x1cc)](_0x16cedd)),logger[_0x2d1b2a(0x1ac)](_0x2d1b2a(0x1c3)+_0x2ec4cf['id']),await this[_0x2d1b2a(0x20a)](_0x2e377e,_0x2ec4cf['id']);}else{if(_0x1778d3[_0x2d1b2a(0x1a8)](_0x5d9861,HookState[_0x2d1b2a(0x21e)])){const _0x20cd97={};_0x20cd97[_0x2d1b2a(0x1d7)]=_0x364593,_0x20cd97[_0x2d1b2a(0x19b)]=_0x2ec4cf,_0x2e377e['addMultipleEntries'](this[_0x2d1b2a(0x1d9)](_0x20cd97)),await this[_0x2d1b2a(0x20a)](_0x2e377e,_0x2ec4cf['id']);}}break;case TestFrameworkState[_0x2d1b2a(0x239)]:_0x1778d3['TNJcn'](_0x5d9861,HookState[_0x2d1b2a(0x21e)])&&await this[_0x2d1b2a(0x243)](_0x2e377e,_0xd8a44e,_0x18d7f2);break;default:if(CLIUtils['matchHookRegex'](_0xd8a44e[_0x2d1b2a(0x214)]()['split']('.')[0x1])){const _0x353fe2=await this[_0x2d1b2a(0x1b8)](_0x2e377e,_0xd8a44e,_0x5d9861,_0x18d7f2);_0x2e377e[_0x2d1b2a(0x1b6)](_0x353fe2);}else logger[_0x2d1b2a(0x1ac)](_0x2d1b2a(0x19d)+_0xd8a44e+_0x2d1b2a(0x228)+_0x5d9861);break;}}catch(_0x3c7190){logger[_0x2d1b2a(0x1b7)](util['format'](_0x1778d3[_0x2d1b2a(0x1d2)],_0xd8a44e,_0x5d9861,_0x18d7f2[_0x2d1b2a(0x216)],_0x3c7190));}_0x18d7f2['instance']=_0x2e377e,await this[_0x2d1b2a(0x189)](_0x2e377e,_0xd8a44e,_0x5d9861,_0x18d7f2);}[a74_0x184ba3(0x1ee)](_0x1cb6ca,_0x30710b,_0x1abe69={}){const _0x505107=a74_0x184ba3,_0x23b11b={};_0x23b11b[_0x505107(0x227)]=function(_0x20c902,_0x1af681){return _0x20c902===_0x1af681;};const _0x24d8fa=_0x23b11b;let _0x28f951=null;return(_0x24d8fa[_0x505107(0x227)](_0x1cb6ca,TestFrameworkState['INIT_TEST'])||_0x24d8fa['iYmjZ'](_0x1cb6ca,TestFrameworkState['NONE']))&&this[_0x505107(0x1c1)](_0x1cb6ca,_0x1abe69),_0x28f951=TestFramework[_0x505107(0x225)](),_0x28f951;}['trackCucumberInstance'](_0x28304e,_0x2089f){const _0x19c941=a74_0x184ba3,_0x43c8eb=CLIUtils[_0x19c941(0x24d)](),_0x29724f=TrackedInstance['createContext'](_0x43c8eb);let _0x2910c7=null;logger['debug'](_0x19c941(0x20c)+_0x43c8eb+_0x19c941(0x23a)+_0x28304e),_0x2910c7=new TestFrameworkInstance(_0x29724f,this[_0x19c941(0x1a5)](),this['getTestFrameworksVersions'](),_0x28304e,HookState['NONE']),TestFramework['setTrackedInstance'](_0x29724f,_0x2910c7),logger['debug'](_0x19c941(0x245)+_0x29724f['getId']()+'\x20target='+_0x43c8eb);}['parseCucumberTest'](_0x397a3a){const _0x2ed8cf=a74_0x184ba3,_0x1d3f48={};_0x1d3f48[_0x2ed8cf(0x241)]=_0x2ed8cf(0x18d);const _0x5ecf3b=_0x1d3f48,{testUUID:_0x51174e,testData:_0x5668af}=_0x397a3a;if(!_0x5668af||!_0x5668af[_0x2ed8cf(0x244)])return logger[_0x2ed8cf(0x1ac)](_0x5ecf3b['oUXMO']),{};const _0x276884=_0x51174e,_0x125127=_0x5668af[_0x2ed8cf(0x244)],_0x4c861c=this['getTestFrameworks']()[0x0],_0xbc4e40=this['getTestFrameworksVersions'](),_0x18e2ef={[TestFrameworkConstants[_0x2ed8cf(0x1ed)]]:_0x4c861c,[TestFrameworkConstants[_0x2ed8cf(0x247)]]:_0xbc4e40[_0x4c861c],[TestFrameworkConstants['KEY_TEST_LOGS']]:[],[TestFrameworkConstants[_0x2ed8cf(0x1a0)]]:{},[TestFrameworkConstants[_0x2ed8cf(0x190)]]:{},[TestFrameworkConstants[_0x2ed8cf(0x246)]]:_0x276884,[TestFrameworkConstants[_0x2ed8cf(0x1a3)]]:TestFrameworkConstants[_0x2ed8cf(0x24f)],[TestFrameworkConstants['KEY_AUTOMATE_SESSION_NAME']]:_0x5668af[_0x2ed8cf(0x197)]||'',[TestFrameworkConstants[_0x2ed8cf(0x1e9)]]:_0x5668af['file_name']||'',[TestFrameworkConstants[_0x2ed8cf(0x1bd)]]:_0x125127,[TestFrameworkConstants[_0x2ed8cf(0x1a9)]]:_0x5668af['name']||'',[TestFrameworkConstants[_0x2ed8cf(0x24b)]]:_0x5668af[_0x2ed8cf(0x1ff)]||'',[TestFrameworkConstants[_0x2ed8cf(0x18a)]]:_0x5668af[_0x2ed8cf(0x1b5)]?.['code']||null,[TestFrameworkConstants[_0x2ed8cf(0x1c0)]]:_0x5668af[_0x2ed8cf(0x206)]||[],[TestFrameworkConstants[_0x2ed8cf(0x201)]]:_0x5668af[_0x2ed8cf(0x1f3)]||new Date()['toISOString'](),[TestFrameworkConstants[_0x2ed8cf(0x18f)]]:_0x5668af[_0x2ed8cf(0x220)]?.[0x0]||'',[TestFrameworkConstants[_0x2ed8cf(0x230)]]:_0x5668af['scopes']||[],[TestFrameworkConstants[_0x2ed8cf(0x1c7)]]:_0x5668af[_0x2ed8cf(0x232)]?.['rerun_name']||_0x5668af[_0x2ed8cf(0x197)]||'',[TestFrameworkConstants[_0x2ed8cf(0x204)]]:{},[TestFrameworkConstants['KEY_TEST_META']]:_0x5668af[_0x2ed8cf(0x1cf)]||{}};TestInfo['setTestDetails'](_0x125127,_0x18e2ef),logger[_0x2ed8cf(0x1ac)]('Parsed\x20cucumber\x20test:\x20'+_0x5668af[_0x2ed8cf(0x197)]+_0x2ed8cf(0x229)+_0x276884);const _0x55cf7e={};return _0x55cf7e[_0x125127]=_0x18e2ef,_0x55cf7e;}[a74_0x184ba3(0x1d9)](_0x14e3ea){const _0x371053=a74_0x184ba3,_0x10e61d={'mMuxl':_0x371053(0x1ad),'afxBe':_0x371053(0x1e7),'jeLxK':function(_0x416de9,_0x553248){return _0x416de9===_0x553248;},'IjsOp':_0x371053(0x1c9),'BGeyp':_0x371053(0x1a4),'MePfC':function(_0x415c2e,_0x721827,_0x261295){return _0x415c2e(_0x721827,_0x261295);},'vtbvW':function(_0x3ffe66,_0x1d9f0c){return _0x3ffe66>_0x1d9f0c;}},{testUUID:_0x5d0ff7,testData:_0x2bac20}=_0x14e3ea;if(!_0x2bac20||!_0x2bac20['uuid'])return logger[_0x371053(0x1ac)](_0x10e61d[_0x371053(0x210)]),{};const _0x575653=this[_0x371053(0x1ee)](TestFrameworkState[_0x371053(0x205)],HookState[_0x371053(0x21e)]),_0x5d4e9b=_0x2bac20[_0x371053(0x244)],_0x3ca336=TestInfo['getTestDetails'](_0x5d4e9b)||{},_0x126dbc=_0x3ca336?_0x3ca336[TestFrameworkConstants[_0x371053(0x204)]]||{}:{},_0x8122b9={..._0x3ca336,[TestFrameworkConstants['KEY_TEST_RESULT']]:_0x2bac20[_0x371053(0x221)]||_0x10e61d[_0x371053(0x1a2)],[TestFrameworkConstants[_0x371053(0x19a)]]:_0x2bac20[_0x371053(0x23e)]||new Date()[_0x371053(0x18e)](),[TestFrameworkConstants[_0x371053(0x1d8)]]:new Date()[_0x371053(0x18e)](),[TestFrameworkConstants[_0x371053(0x204)]]:_0x126dbc,[TestFrameworkConstants[_0x371053(0x23b)]]:[],[TestFrameworkConstants[_0x371053(0x226)]]:_0x2bac20['meta']||{}};_0x10e61d[_0x371053(0x1d6)](_0x2bac20[_0x371053(0x221)],_0x10e61d[_0x371053(0x1d3)])&&_0x2bac20[_0x371053(0x1d1)]&&(_0x8122b9[TestFrameworkConstants[_0x371053(0x240)]]=_0x2bac20[_0x371053(0x1b9)]||_0x10e61d['BGeyp'],_0x8122b9[TestFrameworkConstants['KEY_TEST_FAILURE_REASON']]=_0x2bac20[_0x371053(0x23d)]||'',_0x8122b9[TestFrameworkConstants[_0x371053(0x19e)]]=_0x2bac20[_0x371053(0x1d1)]);const _0x5ef223=TestInfo[_0x371053(0x1da)](_0x5d4e9b)[TestFrameworkConstants[_0x371053(0x186)]]||{},_0x369753=_0x10e61d[_0x371053(0x209)](getManualUploadLogs,_0x5ef223,_0x575653[_0x371053(0x1a6)]()[_0x371053(0x21d)](_0x5d4e9b)[TestFrameworkConstants[_0x371053(0x246)]]);if(_0x10e61d[_0x371053(0x1fb)](_0x369753['length'],0x0)){const _0x222b81=_0x8122b9[TestFrameworkConstants[_0x371053(0x23b)]]||[];_0x8122b9[TestFrameworkConstants['KEY_LOGS']]=[..._0x222b81,..._0x369753];}_0x2bac20[_0x371053(0x1fa)]&&_0x10e61d['vtbvW'](_0x2bac20['hooks'][_0x371053(0x216)],0x0)&&(_0x8122b9[TestFrameworkConstants['KEY_HOOKS_FINISHED']]=_0x2bac20[_0x371053(0x1fa)]);TestInfo['setTestDetails'](_0x5d4e9b,_0x8122b9),logger['debug'](_0x371053(0x194)+_0x2bac20[_0x371053(0x197)]+_0x371053(0x1fc)+_0x2bac20['result']);const _0x8166b5={};return _0x8166b5[_0x5d4e9b]=_0x8122b9,_0x8166b5;}async[a74_0x184ba3(0x1b8)](_0xb28022,_0x317b33,_0x2c8465,_0x26bd12){const _0x43d42f=a74_0x184ba3,_0x113075={'RhDfK':'No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','wsebw':function(_0xca22d1){return _0xca22d1();},'bqxlP':function(_0x4b0085,_0xb2b649){return _0x4b0085 in _0xb2b649;},'dcKSR':function(_0x2c05f1,_0x21f37f){return _0x2c05f1 in _0x21f37f;},'DICuW':function(_0x50b128,_0x4ea060){return _0x50b128===_0x4ea060;},'bDDbs':function(_0x1eaac9,_0x587ab8){return _0x1eaac9>_0x587ab8;},'TugXw':_0x43d42f(0x1c9),'zmUzc':_0x43d42f(0x1a4),'peGsJ':_0x43d42f(0x1fd),'ijuwq':function(_0xec5b39,_0x4e29c4){return _0xec5b39!==_0x4e29c4;}},{hookData:_0x7393e0}=_0x26bd12;if(!_0x7393e0)return logger[_0x43d42f(0x1ac)](_0x113075[_0x43d42f(0x1eb)]),{};const _0x4880be=_0x7393e0[_0x43d42f(0x244)]||_0x113075[_0x43d42f(0x250)](uuidv4),_0x11bd32=_0x7393e0[_0x43d42f(0x1d5)],_0x6a3bf9=_0x317b33[_0x43d42f(0x214)]()[_0x43d42f(0x1a1)]('.')[0x1],_0x521c15=TestInfo[_0x43d42f(0x1da)](_0x11bd32)[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{},_0x5e8f92=_0xb28022[_0x43d42f(0x1a6)]()[_0x43d42f(0x21d)](_0x11bd32);if(!_0x5e8f92)return logger[_0x43d42f(0x1ac)](_0x43d42f(0x1cb)+_0x11bd32+_0x43d42f(0x1e8)),this['storePendingHook'](_0xb28022,_0x11bd32,_0x317b33,_0x2c8465,_0x26bd12),{};let _0x3ca236=_0x5e8f92[TestFrameworkConstants[_0x43d42f(0x190)]];!_0x3ca236&&(_0x3ca236={});!_0x113075[_0x43d42f(0x1ef)](_0x6a3bf9,_0x3ca236)&&(_0x3ca236[_0x6a3bf9]=[]);let _0x2f6ed5=_0x5e8f92[TestFrameworkConstants['KEY_HOOKS_FINISHED']];!_0x2f6ed5&&(_0x2f6ed5={});!_0x113075[_0x43d42f(0x1f0)](_0x6a3bf9,_0x2f6ed5)&&(_0x2f6ed5[_0x6a3bf9]=[]);const _0x14a8e9={[TestFrameworkConstants[_0x43d42f(0x190)]]:_0x3ca236,[TestFrameworkConstants[_0x43d42f(0x1a0)]]:_0x2f6ed5},_0x4fd440={};_0x4fd440[_0x11bd32]=_0x14a8e9;const _0x6d8375=_0x4fd440;if(_0x113075[_0x43d42f(0x207)](_0x2c8465,HookState['PRE'])){const _0x516691={[TestFrameworkConstants[_0x43d42f(0x1ba)]]:_0x4880be,[TestFrameworkConstants[_0x43d42f(0x217)]]:TestFrameworkConstants[_0x43d42f(0x192)],[TestFrameworkConstants[_0x43d42f(0x249)]]:_0x7393e0[_0x43d42f(0x1bc)],[TestFrameworkConstants[_0x43d42f(0x20f)]]:[],[TestFrameworkConstants['KEY_HOOK_NAME']]:_0x7393e0[_0x43d42f(0x185)],[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x521c15};_0x516691[_0x43d42f(0x213)]=_0x6a3bf9;const _0x23a035=_0x516691;_0x3ca236[_0x6a3bf9][_0x43d42f(0x20b)](_0x23a035),_0x6d8375[_0x11bd32][TestFrameworkConstants[_0x43d42f(0x238)]]=_0x6a3bf9,logger[_0x43d42f(0x1ac)](_0x43d42f(0x21f)+_0x6a3bf9+_0x43d42f(0x20d)+_0x23a035+_0x43d42f(0x22e)+_0x26bd12);}else{if(_0x113075[_0x43d42f(0x207)](_0x2c8465,HookState['POST'])){const _0x1527db=_0x7393e0[_0x43d42f(0x221)],_0xc41c59=_0x3ca236[_0x6a3bf9]||[];logger[_0x43d42f(0x1ac)]('trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20'+_0xc41c59+_0x43d42f(0x234)+_0x26bd12);if(_0x113075[_0x43d42f(0x233)](_0xc41c59[_0x43d42f(0x216)],0x0)){const _0x5c57b7=_0xc41c59[_0x43d42f(0x1df)]();_0x113075[_0x43d42f(0x207)](_0x7393e0[_0x43d42f(0x221)],_0x113075['TugXw'])&&_0x7393e0['failure_data']?(_0x5c57b7[TestFrameworkConstants[_0x43d42f(0x1aa)]]=_0x7393e0[_0x43d42f(0x1b9)]||_0x113075[_0x43d42f(0x21b)],_0x5c57b7[TestFrameworkConstants[_0x43d42f(0x222)]]=_0x7393e0[_0x43d42f(0x23d)]||'',_0x5c57b7[TestFrameworkConstants[_0x43d42f(0x1ab)]]=_0x7393e0[_0x43d42f(0x1dd)]):_0x5c57b7[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x113075[_0x43d42f(0x1e0)];_0x113075[_0x43d42f(0x1f7)](_0x1527db,TestFrameworkConstants[_0x43d42f(0x192)])&&(_0x5c57b7[TestFrameworkConstants[_0x43d42f(0x217)]]=_0x1527db);_0x5c57b7[TestFrameworkConstants[_0x43d42f(0x1c6)]]=_0x7393e0[_0x43d42f(0x248)]||new Date()['toISOString'](),_0x5c57b7[TestFrameworkConstants[_0x43d42f(0x204)]]=_0x521c15;const _0x41b814=_0x5c57b7[TestFrameworkConstants[_0x43d42f(0x1ba)]];!_0x2f6ed5[_0x6a3bf9]&&(_0x2f6ed5[_0x6a3bf9]=[]),_0x2f6ed5[_0x6a3bf9][_0x43d42f(0x20b)](_0x5c57b7),_0x6d8375[_0x11bd32][TestFrameworkConstants['KEY_HOOK_LAST_FINISHED']]=_0x6a3bf9;}}}return logger[_0x43d42f(0x1ac)](_0x43d42f(0x1bf)+_0x7393e0[_0x43d42f(0x185)]+_0x43d42f(0x24c)+_0x4880be+_0x43d42f(0x1f2)+_0x11bd32),_0x6d8375;}[a74_0x184ba3(0x1b3)](_0x19e26a){const _0x210066=a74_0x184ba3,_0x5ef127={};_0x5ef127[_0x210066(0x202)]=_0x210066(0x191);const _0x147004=_0x5ef127;try{const _0x260aeb=_0x19e26a[_0x210066(0x1f9)]?_0x19e26a['test']['id']:_0x19e26a[_0x210066(0x198)][_0x210066(0x1d5)],_0x2a2623=_0x19e26a['instance'],_0x3415e1=_0x2a2623[_0x210066(0x208)](),_0x3ae28e=_0x2a2623[_0x210066(0x1a6)]()[_0x210066(0x21d)](_0x260aeb);if(!_0x3ae28e)return logger[_0x210066(0x1ac)](_0x210066(0x22c)+_0x260aeb),{};logger['debug'](_0x210066(0x1c2)+_0x260aeb);const {[TestFrameworkConstants[_0x210066(0x1ed)]]:_0x589b2d='',[TestFrameworkConstants[_0x210066(0x247)]]:_0x32163b='',[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x2d1e1d='',[TestFrameworkConstants[_0x210066(0x19a)]]:_0x3e209a=''}=_0x3ae28e,_0x53c3ce=_0x2a2623[_0x210066(0x1ea)]()[_0x210066(0x214)]()[_0x210066(0x1a1)]('.')[0x1],_0x3d4bcc=_0x2a2623['getCurrentHookState']()[_0x210066(0x214)]()[_0x210066(0x1a1)]('.')[0x1],_0x1c037b=global?.[_0x210066(0x22d)]??0x0,_0x554aef=_0x2a2623[_0x210066(0x1c5)](),_0x52e62f=Buffer[_0x210066(0x1e3)](JSON['stringify'](_0x3ae28e))['toString'](_0x147004['iVkGp']),_0x393f85={'hash':_0x3415e1[_0x210066(0x1e1)](),'threadId':_0x3415e1[_0x210066(0x22b)]()[_0x210066(0x214)](),'processId':_0x3415e1['getProcessId']()['toString']()},_0x300e30={};_0x300e30[_0x210066(0x184)]=_0x1c037b,_0x300e30[_0x210066(0x21c)]=_0x589b2d,_0x300e30[_0x210066(0x219)]=_0x32163b,_0x300e30[_0x210066(0x19f)]=_0x53c3ce,_0x300e30['hookState']=_0x3d4bcc,_0x300e30['startedAt']=_0x2d1e1d,_0x300e30[_0x210066(0x203)]=_0x3e209a,_0x300e30[_0x210066(0x244)]=_0x554aef,_0x300e30['eventJson']=_0x52e62f,_0x300e30[_0x210066(0x1ce)]=_0x393f85;const _0x6d687a=_0x300e30;return logger['debug'](_0x210066(0x22a)+_0x260aeb+_0x210066(0x23c)+_0x53c3ce+_0x210066(0x24a)+_0x3d4bcc),_0x6d687a;}catch(_0x43cf9d){return logger[_0x210066(0x1b7)](_0x210066(0x1f8)+util[_0x210066(0x188)](_0x43cf9d)),{};}}async[a74_0x184ba3(0x243)](_0x211c0f,_0x7c7b43,_0x5b23f1){const _0x3a3cd2=a74_0x184ba3,_0x4a2f18={'yIxyw':function(_0x1e083e,_0x10bbd1,_0x5ca9cb){return _0x1e083e(_0x10bbd1,_0x5ca9cb);},'qDgUA':function(_0x4d77f4,_0xbbf4ee){return _0x4d77f4===_0xbbf4ee;},'sdEZk':_0x3a3cd2(0x1b4),'vyICs':function(_0x51c1c7,_0x38b6c4){return _0x51c1c7/_0x38b6c4;},'Ltmlf':function(_0xf1a407,_0x59b311){return _0xf1a407<_0x59b311;},'krveA':function(_0x505fb5,_0x39dd46){return _0x505fb5*_0x39dd46;},'Wwybj':function(_0x3e0f4a,_0x523699){return _0x3e0f4a+_0x523699;},'ubrRj':function(_0x1526fd,_0x263d26){return _0x1526fd+_0x263d26;},'TBjFE':'Cucumber\x20log\x20created\x20event'};try{const _0x1b2462=_0x5b23f1[_0x3a3cd2(0x1d7)],_0x3d66b1=_0x211c0f[_0x3a3cd2(0x1a6)]()[_0x3a3cd2(0x21d)](_0x1b2462),{[TestFrameworkConstants[_0x3a3cd2(0x1ed)]]:_0x187b17='',[TestFrameworkConstants[_0x3a3cd2(0x247)]]:_0x333f72=''}=_0x3d66b1,_0x57132a=TestInfo[_0x3a3cd2(0x196)](_0x1b2462),_0x104300=TestInfo[_0x3a3cd2(0x1da)](_0x1b2462)[TestFrameworkConstants[_0x3a3cd2(0x186)]]||{},_0x391180=_0x4a2f18[_0x3a3cd2(0x1c8)](getMediaArtifactsLogs,_0x104300,_0x211c0f['getAllData']()[_0x3a3cd2(0x21d)](_0x1b2462)[TestFrameworkConstants[_0x3a3cd2(0x246)]]),_0x144b05=(_0x57132a||[])[_0x3a3cd2(0x18c)](_0x391180||[]);if(!_0x144b05||_0x4a2f18['qDgUA'](_0x144b05['length'],0x0)){logger[_0x3a3cd2(0x1ac)](_0x4a2f18[_0x3a3cd2(0x200)]);return;}const _0x1457f8=0x28,_0x1d2abb=Math[_0x3a3cd2(0x211)](_0x4a2f18['vyICs'](_0x144b05[_0x3a3cd2(0x216)],_0x1457f8));for(let _0x57afe2=0x0;_0x4a2f18[_0x3a3cd2(0x1b1)](_0x57afe2,_0x1d2abb);_0x57afe2++){const _0x54d0f6=_0x4a2f18['krveA'](_0x57afe2,_0x1457f8),_0x306995=_0x4a2f18[_0x3a3cd2(0x231)](_0x54d0f6,_0x1457f8),_0x365289=_0x144b05[_0x3a3cd2(0x1a7)](_0x54d0f6,_0x306995),_0x3161fc={'platformIndex':global?.[_0x3a3cd2(0x22d)]??0x0,'logs':_0x365289,'testFrameworkName':_0x187b17,'testFrameworkVersion':_0x333f72,'testFrameworkState':_0x7c7b43[_0x3a3cd2(0x214)]()[_0x3a3cd2(0x1a1)]('.')[0x1]};logger[_0x3a3cd2(0x1ac)]('sendLogCreatedEvent:\x20for\x20testId:\x20'+_0x1b2462+'\x20batch\x20'+_0x4a2f18[_0x3a3cd2(0x231)](_0x57afe2,0x1)+'/'+_0x1d2abb+'\x20payload='+util['inspect'](_0x3161fc));const _0x3703ee=await GrpcClient[_0x3a3cd2(0x1b0)]()[_0x3a3cd2(0x23f)](_0x3161fc);logger['debug'](_0x3a3cd2(0x22f)+_0x1b2462+_0x3a3cd2(0x199)+_0x4a2f18['ubrRj'](_0x57afe2,0x1)+'/'+_0x1d2abb+'\x20response='+util['inspect'](_0x3703ee));}}catch(_0x51257a){logger['error'](_0x3a3cd2(0x1fe)+util[_0x3a3cd2(0x188)](_0x51257a));}logger[_0x3a3cd2(0x1ac)](_0x4a2f18[_0x3a3cd2(0x1b2)]);}[a74_0x184ba3(0x1f5)](_0x12263a,_0x57e2eb,_0x4d3946,_0x3c8ff5,_0x704491){const _0x33bb81=a74_0x184ba3,_0xed8ceb={'testId':_0x57e2eb,'testFrameworkState':_0x4d3946,'hookState':_0x3c8ff5,'args':_0x704491,'timestamp':new Date()[_0x33bb81(0x18e)]()};_0x12263a[_0x33bb81(0x1ca)](_0x57e2eb,_0xed8ceb),logger[_0x33bb81(0x1ac)]('Stored\x20pending\x20hook\x20for\x20testId:\x20'+_0x57e2eb+',\x20state:\x20'+_0x4d3946+_0x33bb81(0x1bb)+_0x3c8ff5);}async['processPendingHooks'](_0x499dbb,_0x10d1dc){const _0x3388a2=a74_0x184ba3,_0x2e68a3={};_0x2e68a3[_0x3388a2(0x218)]=function(_0xbbee8d,_0x24a5c8){return _0xbbee8d>_0x24a5c8;};const _0x3bb8cc=_0x2e68a3;if(!_0x499dbb[_0x3388a2(0x1d0)](_0x10d1dc))return;const _0x280b74=_0x499dbb['getPendingHooks'](_0x10d1dc);logger[_0x3388a2(0x1ac)](_0x3388a2(0x195)+_0x280b74['length']+'\x20pending\x20hooks\x20for\x20testId:\x20'+_0x10d1dc);for(const _0xdba9e2 of _0x280b74){try{const _0x4deaad=await this['trackHookEvent'](_0x499dbb,_0xdba9e2[_0x3388a2(0x19f)],_0xdba9e2[_0x3388a2(0x1dc)],_0xdba9e2[_0x3388a2(0x20e)]);_0x4deaad&&_0x3bb8cc[_0x3388a2(0x218)](Object[_0x3388a2(0x1de)](_0x4deaad)[_0x3388a2(0x216)],0x0)&&_0x499dbb[_0x3388a2(0x1b6)](_0x4deaad),await this[_0x3388a2(0x189)](_0x499dbb,_0xdba9e2[_0x3388a2(0x19f)],_0xdba9e2[_0x3388a2(0x1dc)],_0xdba9e2[_0x3388a2(0x20e)]);}catch(_0x229067){logger[_0x3388a2(0x1b7)](_0x3388a2(0x223)+_0x10d1dc+_0x3388a2(0x18b)+_0x229067);}}_0x499dbb[_0x3388a2(0x1d4)](_0x10d1dc),logger[_0x3388a2(0x1ac)](_0x3388a2(0x187)+_0x10d1dc);}}module[a74_0x184ba3(0x235)]=CucumberTestFramework;