browserstack-node-sdk 1.54.0 → 1.54.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +7 -7
  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_0x21dbe9=a68_0x2ed2;function a68_0x2ab3(){const _0x5ed624=['./state/testFrameworkState.js','2|4|3|1|0','unix:/tmp/sdk-platform-','Configuring\x20Cli\x20path.','follow-redirects','BAMSo','timeout','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','kUHwd','split','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','stringify','../../helpers/performance/performance-tester.js','YMvmL','yHlYK','node','setFrameworkDetail','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','readdirSync','EmqDH','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','pid','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','wabYg','rename','NDVNy','isDevelopmentEnv','YpLup','75023hxWGEK','mergeObject','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','Dqyvv','exports','readEntry','parse','Error\x20while\x20reading\x20CLI\x20path:\x20','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','AJsXq','pSQcI','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','ApzGj','192WwLWxU','IVcTB','Resolved\x20binary\x20path:\x20','path','BROWSERSTACK_BINARY_URL','./state/automationFrameworkState.js','SDK_CLI_CHECK_UPDATE','bdHke','gPIGR','concat','format','listen','basename','CJUzH','wEyMZ','Setting\x20required\x20permissions\x20to\x20','message','close','vcojY','requestToUpdateCLI','Binary\x20is\x20busy:\x20','vbVTh','map','PWKCL','Failed\x20to\x20delete\x20zip\x20file:\x20','yauzl','downloadLatestBinary','shouldSkipSessionName','isArray','getSdkLanguage','fileName','length','../../helpers/classLogger.js','262580YaBTMF','../../helpers/helper','GET','bFXEQ','includes','mtime','frrVE','uDNOy','FhQIH','pGXmr','url','wxIHl','../utils/apiUtilityMethods.js','SHELL_EXECUTE_ERROR','HOOK_REGEX','SoYCZ','test','existsSync','QUHMy','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','statSync','cLsEV','YNKhh','cli_version','warn','chmod','./framework/constants/testFrameworkConstants.js','ZuTEq','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','version','../../helpers/test-observability/utils.js','getSdkVersion','Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','erRFr','entry','831696ehVSbL','openSync','kDEVq','filePath','uHnVV','PelJX','getExistingCliPath','MkByF','runShellCommand','openReadStream','testContextOptions','debug','sQhBP','WxHcP','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','Folder\x20','248205UjPmNa','./state/hookState.js','downloadFileStream','ErUcU','response\x20','isFile','util','siWnH','9065844czbyvc',',\x20automationFramework=','dQpee','SDK_CLI_BIN_PATH','arch','gQNAR','BbNqo','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','../../helpers/utilities','gMslW','rAmLN','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','SOuhJ','info','automationFrameworkDetail','getCLIParamsForDevEnv','JtaUg','\x20version','development','join','WFkGl','539nRgnuH','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','pipe','sAfWW','platform','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','mjzQH','downloaded_file_','tmpdir','56abHCOM','RWshl','cwd','.browserstack','tkCfS','SDK_CLI_DOWNLOAD','44YsreAC','Downloading\x20SDK\x20binary\x20from:\x20','getHookRegistryKey','data','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','\x20already\x20exists','getCliDir','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','testFrameworkDetail','../utils/constants','AIpiQ','cli','lazyEntries','QiuCQ','getWritableDir','12658vVvjJC','.zip','lecog','NwfUl','Current\x20CLI\x20Path\x20Found:\x20','ZDCkv','binary-','unlink','yIsRm','BROWSERSTACK_FILES_DIR','env','open','once','getCurrentInstanceName','createWriteStream','qlOWX','../../../package.json','wzfvR','zRvjh','child_process','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','object','LEJbp','error','homedir','skipSessionName','1431318HGKAmx','GKmlz','ybAVQ','isDirectory','KZrQU','getAutomationFrameworkDetail','end','AiNpw','BROWSERSTACK_CLI_ENV','TwDhs','trim','code'];a68_0x2ab3=function(){return _0x5ed624;};return a68_0x2ab3();}function a68_0x2ed2(_0x729010,_0x3aa0bc){const _0x2ab343=a68_0x2ab3();return a68_0x2ed2=function(_0x2ed2ac,_0x351227){_0x2ed2ac=_0x2ed2ac-0x69;let _0x94ca22=_0x2ab343[_0x2ed2ac];return _0x94ca22;},a68_0x2ed2(_0x729010,_0x3aa0bc);}(function(_0x12ecda,_0x3de628){const _0x419d6d=a68_0x2ed2,_0x4796a5=_0x12ecda();while(!![]){try{const _0x8d2727=-parseInt(_0x419d6d(0xa8))/0x1+-parseInt(_0x419d6d(0x145))/0x2*(-parseInt(_0x419d6d(0xb5))/0x3)+parseInt(_0x419d6d(0x136))/0x4*(-parseInt(_0x419d6d(0x10a))/0x5)+-parseInt(_0x419d6d(0x80))/0x6+-parseInt(_0x419d6d(0x130))/0x7*(-parseInt(_0x419d6d(0xfa))/0x8)+-parseInt(_0x419d6d(0x112))/0x9+parseInt(_0x419d6d(0xd6))/0xa*(parseInt(_0x419d6d(0x127))/0xb);if(_0x8d2727===_0x3de628)break;else _0x4796a5['push'](_0x4796a5['shift']());}catch(_0x143876){_0x4796a5['push'](_0x4796a5['shift']());}}}(a68_0x2ab3,0xa0443));const fs=require('fs'),os=require('os'),url=require(a68_0x21dbe9(0xe0)),path=require(a68_0x21dbe9(0xb8)),{exec}=require(a68_0x21dbe9(0x79)),{https}=require(a68_0x21dbe9(0x90)),yauzl=require(a68_0x21dbe9(0xce)),util=require(a68_0x21dbe9(0x110)),{getFrameworkVersion}=require(a68_0x21dbe9(0xf4)),{threadId}=require('worker_threads'),PerformanceTester=require(a68_0x21dbe9(0x98)),{EVENTS:PerformanceEvents}=require('../../helpers/performance/constants'),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a68_0x21dbe9(0x11a)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a68_0x21dbe9(0xd7)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a68_0x21dbe9(0x13f)),{createClassLogger}=require(a68_0x21dbe9(0xd5)),TestFrameworkInstance=require('./instances/testFrameworkInstance.js'),HookState=require(a68_0x21dbe9(0x10b)),TestFrameworkState=require(a68_0x21dbe9(0x8c)),AutomationFrameworkState=require(a68_0x21dbe9(0xba)),TestFrameworkConstants=require(a68_0x21dbe9(0xf0)),logger=createClassLogger('CLIUtils'),{getBStackAPIUrl}=require(a68_0x21dbe9(0xe2));class CLIUtils{['automationFrameworkDetail']={};['testFrameworkDetail']={};static[a68_0x21dbe9(0xa6)](){const _0x55f3ca=a68_0x21dbe9,_0x169223={};_0x169223[_0x55f3ca(0xb4)]=function(_0x56163a,_0x4829a0){return _0x56163a===_0x4829a0;},_0x169223[_0x55f3ca(0x114)]=_0x55f3ca(0x124);const _0x3c885b=_0x169223;return _0x3c885b[_0x55f3ca(0xb4)](process[_0x55f3ca(0x70)][_0x55f3ca(0x88)],_0x3c885b['dQpee']);}static[a68_0x21dbe9(0x121)](){const _0x3bb51e=a68_0x21dbe9,_0x2b4da5={};return _0x2b4da5['id']=process[_0x3bb51e(0x70)][_0x3bb51e(0x88)],_0x2b4da5[_0x3bb51e(0xc0)]=_0x3bb51e(0x8e)+process[_0x3bb51e(0x70)][_0x3bb51e(0x88)]+'.sock',_0x2b4da5;}static[a68_0x21dbe9(0xf5)](){const _0x577fae=a68_0x21dbe9,_0x46a1b2={'wEyMZ':function(_0x5ed3b1,_0x3d7dd7){return _0x5ed3b1(_0x3d7dd7);},'efdBh':_0x577fae(0x76)};return _0x46a1b2[_0x577fae(0xc3)](require,_0x46a1b2['efdBh'])[_0x577fae(0xf3)];}static[a68_0x21dbe9(0xd2)](){const _0x5a6e0f=a68_0x21dbe9,_0x1bdd64={};_0x1bdd64[_0x5a6e0f(0x9a)]=_0x5a6e0f(0x9b);const _0x3ccb98=_0x1bdd64;return _0x3ccb98[_0x5a6e0f(0x9a)];}static async['setupCliPath'](_0x43a43e){const _0x57bc55=a68_0x21dbe9,_0x4700bb={'yIsRm':_0x57bc55(0x8f),'zRvjh':function(_0x50be57,_0x103e8e){return _0x50be57(_0x103e8e);},'TRHOM':function(_0x569ca2,_0x225bd7){return _0x569ca2(_0x225bd7);},'hsoYg':_0x57bc55(0xe9)};logger['debug'](_0x4700bb[_0x57bc55(0x6e)]);const _0x249116=process[_0x57bc55(0x70)][_0x57bc55(0x115)];if(!_0x4700bb[_0x57bc55(0x78)](isNullOrEmpty,_0x249116))return logger[_0x57bc55(0x105)]('Development\x20Cli\x20Path:\x20'+_0x249116),_0x249116;try{const _0x39cb8d=this['getCliDir']();if(_0x4700bb['TRHOM'](isNullOrEmpty,_0x39cb8d))throw new Error(_0x4700bb['hsoYg']);const _0x29163f=this[_0x57bc55(0x100)](_0x39cb8d),_0x38eb26=await this['checkAndUpdateCli'](_0x29163f,_0x39cb8d,_0x43a43e);return logger[_0x57bc55(0x105)](_0x57bc55(0xb7)+_0x38eb26),_0x38eb26;}catch(_0x21004f){logger[_0x57bc55(0x105)](_0x57bc55(0x13d)+util[_0x57bc55(0xbf)](_0x21004f));}return null;}static async['checkAndUpdateCli'](_0x5310c6,_0xafc8b4,_0x2a1cb7){const _0x2ded7e=a68_0x21dbe9,_0x1d95c6={'QUHMy':function(_0x289fa0){return _0x289fa0();},'TwDhs':function(_0xfa9b7d,_0x341095){return _0xfa9b7d(_0x341095);},'LEJbp':function(_0xd0e63a,_0xd131e2,_0x38379b){return _0xd0e63a(_0xd131e2,_0x38379b);},'ybAVQ':_0x2ded7e(0x139),'WFkGl':_0x2ded7e(0xe0),'KZrQU':function(_0x35cd4c,_0x2612f0){return _0x35cd4c(_0x2612f0);},'AJsXq':function(_0x3355e3,_0x444fb3,_0x3544ca){return _0x3355e3(_0x444fb3,_0x3544ca);}};PerformanceTester['start'](PerformanceEvents[_0x2ded7e(0xbb)]),logger['info'](_0x2ded7e(0x6a)+_0x5310c6);const _0x52cc95=_0x1d95c6[_0x2ded7e(0xe8)](getHostInfo),_0x4427e9={'sdk_version':CLIUtils[_0x2ded7e(0xf5)](),'os':_0x52cc95[_0x2ded7e(0x12b)],'os_arch':_0x52cc95[_0x2ded7e(0x116)],'cli_version':'0','sdk_language':this[_0x2ded7e(0xd2)]()};!_0x1d95c6[_0x2ded7e(0x89)](isNullOrEmpty,_0x5310c6)&&(_0x4427e9[_0x2ded7e(0xed)]=await this[_0x2ded7e(0x102)](_0x5310c6+_0x2ded7e(0x123)));const _0x98cba=await this[_0x2ded7e(0xc8)](_0x4427e9,_0x2a1cb7);process['env'][_0x2ded7e(0xb9)]&&(logger[_0x2ded7e(0x11f)](_0x2ded7e(0x96)+process[_0x2ded7e(0x70)][_0x2ded7e(0xb9)]),_0x98cba[_0x2ded7e(0x139)][_0x2ded7e(0xe0)]=process['env'][_0x2ded7e(0xb9)]);if(_0x1d95c6[_0x2ded7e(0x7c)](nestedKeyValue,_0x98cba,[_0x1d95c6[_0x2ded7e(0x82)],_0x1d95c6[_0x2ded7e(0x126)]])){logger[_0x2ded7e(0x105)](_0x2ded7e(0x128)+_0x4427e9[_0x2ded7e(0xed)]);if(!_0x1d95c6[_0x2ded7e(0x84)](isNullOrEmpty,_0x5310c6)&&this['isBinaryBusy'](_0x5310c6))return logger[_0x2ded7e(0xee)](_0x2ded7e(0x7a)+_0x5310c6),PerformanceTester['end'](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x5310c6;const _0x567485=await this[_0x2ded7e(0xcf)](_0x1d95c6[_0x2ded7e(0xb1)](nestedKeyValue,_0x98cba,[_0x1d95c6['ybAVQ'],_0x1d95c6['WFkGl']]),_0xafc8b4);return PerformanceTester['end'](PerformanceEvents[_0x2ded7e(0xbb)]),_0x567485;}return PerformanceTester['end'](PerformanceEvents[_0x2ded7e(0xbb)]),_0x5310c6;}static[a68_0x21dbe9(0x13c)](){const _0x17dfd1=a68_0x21dbe9,_0x477189={'AfvAW':function(_0x155c26,_0x111ca){return _0x155c26(_0x111ca);},'mUfJu':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','tkCfS':_0x17dfd1(0x141)},_0x5a7ab9=this[_0x17dfd1(0x144)]();try{if(_0x477189['AfvAW'](isNullOrEmpty,_0x5a7ab9))throw new Error(_0x477189['mUfJu']);const _0x5d5b32=path[_0x17dfd1(0x125)](_0x5a7ab9,_0x477189[_0x17dfd1(0x134)]);return!fs[_0x17dfd1(0xe7)](_0x5d5b32)&&_0x477189['AfvAW'](createDir,_0x5d5b32),_0x5d5b32;}catch(_0x13f51a){logger[_0x17dfd1(0x105)](_0x17dfd1(0x9d)+util[_0x17dfd1(0xbf)](_0x13f51a));}}static['getWritableDir'](){const _0x2fd27e=a68_0x21dbe9,_0x3e3183={'AIpiQ':_0x2fd27e(0x133),'SOuhJ':function(_0x4d580a,_0x4f92b3){return _0x4d580a(_0x4f92b3);},'EOYgc':function(_0x400e29,_0x245384){return _0x400e29(_0x245384);},'ZDCkv':function(_0x5ba7b9,_0x986a68){return _0x5ba7b9(_0x986a68);},'TzEFB':function(_0x279d2f,_0x279012){return _0x279d2f(_0x279012);},'vcojY':function(_0x84e427,_0x3b7bec){return _0x84e427(_0x3b7bec);},'uHnVV':function(_0x4efcb7,_0x223d46){return _0x4efcb7(_0x223d46);}},_0x59778a=[process[_0x2fd27e(0x70)][_0x2fd27e(0x6f)],path[_0x2fd27e(0x125)](os[_0x2fd27e(0x7e)](),_0x3e3183[_0x2fd27e(0x140)]),path[_0x2fd27e(0x125)](os[_0x2fd27e(0x12f)](),_0x3e3183[_0x2fd27e(0x140)])];for(const _0x5ef39e of _0x59778a){if(_0x3e3183[_0x2fd27e(0x11e)](isNullOrEmpty,_0x5ef39e))continue;try{if(fs[_0x2fd27e(0xe7)](_0x5ef39e)){logger[_0x2fd27e(0x105)](_0x2fd27e(0x109)+_0x5ef39e+_0x2fd27e(0x13b));if(!_0x3e3183[_0x2fd27e(0x11e)](isModifiable,_0x5ef39e)){logger[_0x2fd27e(0x105)](_0x2fd27e(0xc4)+_0x5ef39e);const _0x4d647a=_0x3e3183['EOYgc'](setReadWriteExecuteAccess,_0x5ef39e);if(!_0x3e3183[_0x2fd27e(0x6b)](isTrue,_0x4d647a)){logger[_0x2fd27e(0xee)](_0x2fd27e(0xb0)+_0x5ef39e);continue;}}}else{logger[_0x2fd27e(0x105)]('Folder\x20does\x20not\x20exist:\x20'+_0x5ef39e),_0x3e3183['TzEFB'](createDir,_0x5ef39e),logger[_0x2fd27e(0x105)]('Setting\x20required\x20permissions\x20to\x20'+_0x5ef39e);const _0x16b77a=_0x3e3183[_0x2fd27e(0xc7)](setReadWriteExecuteAccess,_0x5ef39e);!_0x3e3183[_0x2fd27e(0xfe)](isTrue,_0x16b77a)&&logger['warn'](_0x2fd27e(0xb0)+_0x5ef39e);}return _0x5ef39e;}catch(_0x27ac48){logger['error'](_0x2fd27e(0x119)+util[_0x2fd27e(0xbf)](_0x27ac48));}}return null;}static[a68_0x21dbe9(0x100)](_0xe93fd0){const _0x2e8f81=a68_0x21dbe9,_0x1dbe98={};_0x1dbe98[_0x2e8f81(0x77)]=function(_0x337a93,_0x2d95e5){return _0x337a93>_0x2d95e5;};const _0x330f6f=_0x1dbe98;try{if(!fs[_0x2e8f81(0xe7)](_0xe93fd0)||!fs['statSync'](_0xe93fd0)[_0x2e8f81(0x83)]())return'';const _0x1790a1=fs[_0x2e8f81(0x9e)](_0xe93fd0)[_0x2e8f81(0xcb)](_0x14f8e1=>path[_0x2e8f81(0x125)](_0xe93fd0,_0x14f8e1))['filter'](_0x219aba=>fs[_0x2e8f81(0xea)](_0x219aba)[_0x2e8f81(0x10f)]()&&path[_0x2e8f81(0xc1)](_0x219aba)['startsWith'](_0x2e8f81(0x6c)));if(_0x330f6f['wzfvR'](_0x1790a1[_0x2e8f81(0xd4)],0x0)){const _0x388e70=_0x1790a1[_0x2e8f81(0xcb)](_0x4c69c2=>({'filePath':_0x4c69c2,'mtime':fs[_0x2e8f81(0xea)](_0x4c69c2)[_0x2e8f81(0xdb)]}))['reduce']((_0x451237,_0xc34224)=>{const _0x1f9c75=_0x2e8f81;if(!_0x451237||!_0x451237['mtime'])return _0xc34224;if(_0x330f6f[_0x1f9c75(0x77)](_0xc34224[_0x1f9c75(0xdb)],_0x451237[_0x1f9c75(0xdb)]))return _0xc34224;return _0x451237;},{});return _0x388e70?_0x388e70[_0x2e8f81(0xfd)]:'';}return'';}catch(_0x50d0b8){return logger[_0x2e8f81(0x7d)](_0x2e8f81(0xaf)+util[_0x2e8f81(0xbf)](_0x50d0b8)),'';}}static [a68_0x21dbe9(0xc8)]=async(_0x2edcb9,_0x493cb8)=>{const _0xbc6e8d=a68_0x21dbe9,_0xca3432={'pbCcP':function(_0x953b59,_0x2cad44,_0x5e3fc6,_0x1ab53c,_0x1ad011){return _0x953b59(_0x2cad44,_0x5e3fc6,_0x1ab53c,_0x1ad011);},'BtZBH':_0xbc6e8d(0xd8)},_0x54cbd5={};_0x54cbd5['qs']=_0x2edcb9;const _0x5b8e6c=await _0xca3432['pbCcP'](nodeRequest,_0xca3432['BtZBH'],UPDATED_CLI_ENDPOINT,_0x54cbd5,_0x493cb8);return logger[_0xbc6e8d(0x105)](_0xbc6e8d(0x10e)+JSON[_0xbc6e8d(0x97)](_0x5b8e6c)),_0x5b8e6c;};static['isBinaryBusy'](_0x3c2bfc){const _0x56066f=a68_0x21dbe9;try{const _0x2cd71e=fs[_0x56066f(0xfb)](_0x3c2bfc,'r+');return fs['closeSync'](_0x2cd71e),![];}catch(_0x193445){if(BINARY_BUSY_ERROR_CODES[_0x56066f(0xda)](_0x193445['code']))return logger[_0x56066f(0x105)](_0x56066f(0xc9)+_0x3c2bfc),!![];return logger[_0x56066f(0x105)](_0x56066f(0x12c)+_0x193445['message']),![];}}static[a68_0x21dbe9(0x102)](_0x254b7a,_0x11bf7b=''){const _0x4c4fdf=a68_0x21dbe9,_0x7866e3={'PelJX':_0x4c4fdf(0xf3),'ZuTEq':function(_0x59e377,_0x3e22df){return _0x59e377(_0x3e22df);},'sQhBP':_0x4c4fdf(0xe3),'EmqDH':function(_0xebdc66,_0x474557){return _0xebdc66(_0x474557);},'SoYCZ':function(_0x23faac,_0x99172c,_0x2d439c,_0x7491ef){return _0x23faac(_0x99172c,_0x2d439c,_0x7491ef);},'WxHcP':'error'};return new Promise((_0x312b09,_0xacc470)=>{const _0x5eadb9=_0x4c4fdf,_0x23e7f9={'nAHwr':function(_0x2588e5,_0x426bd1){const _0x4e4fdb=a68_0x2ed2;return _0x7866e3[_0x4e4fdb(0x9f)](_0x2588e5,_0x426bd1);},'MkByF':_0x7866e3[_0x5eadb9(0x106)]},_0xa785fe={};_0xa785fe[_0x5eadb9(0x132)]=_0x11bf7b,_0xa785fe[_0x5eadb9(0x92)]=0x1388;const _0x4d2df1=_0x7866e3[_0x5eadb9(0xe5)](exec,_0x254b7a,_0xa785fe,(_0x2eb362,_0x31b615,_0x5697ac)=>{const _0xbec0c2=_0x5eadb9;if(_0x2eb362){if(_0x254b7a[_0xbec0c2(0xda)](_0x7866e3[_0xbec0c2(0xff)])&&(_0x31b615[_0xbec0c2(0x8a)]()||_0x5697ac['trim']())){const _0x16180c=_0x31b615[_0xbec0c2(0x8a)]()||_0x5697ac['trim']();logger[_0xbec0c2(0x105)]('CLI\x20version\x20found\x20despite\x20error:\x20\x22'+_0x16180c+'\x22'),_0x7866e3['ZuTEq'](_0x312b09,_0x16180c);}else _0x7866e3[_0xbec0c2(0xf1)](_0x312b09,_0x5697ac[_0xbec0c2(0x8a)]()||_0x7866e3[_0xbec0c2(0x106)]);}else logger['debug']('Resolving\x20with\x20stdout:\x20\x22'+_0x31b615[_0xbec0c2(0x8a)]()+'\x22'),_0x7866e3['EmqDH'](_0x312b09,_0x31b615['trim']());});_0x4d2df1['on'](_0x7866e3[_0x5eadb9(0x107)],()=>{const _0x2532c5=_0x5eadb9;_0x23e7f9['nAHwr'](_0x312b09,_0x23e7f9[_0x2532c5(0x101)]);});});}static [a68_0x21dbe9(0xcf)]=async(_0x33ab9d,_0x5949b6)=>{const _0x5874ac=a68_0x21dbe9,_0xf7a8fa={'aDVve':'Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','kDEVq':function(_0x540b23,_0x251950){return _0x540b23(_0x251950);},'AiNpw':_0x5874ac(0x93),'BbNqo':_0x5874ac(0x7d),'nihta':function(_0x4520fa,_0x2104e9){return _0x4520fa(_0x2104e9);},'qlOWX':function(_0xec40e7,_0x2ab5c3){return _0xec40e7(_0x2ab5c3);},'uDNOy':function(_0x2af15c,_0x263054){return _0x2af15c(_0x263054);}};PerformanceTester['start'](PerformanceEvents[_0x5874ac(0x135)]),logger['debug'](_0x5874ac(0x137)+_0x33ab9d);try{const _0x3851fe=url[_0x5874ac(0xae)](_0x33ab9d),_0x4a320f=path[_0x5874ac(0x125)](_0x5949b6,_0x5874ac(0x12e)+process['pid']+_0x5874ac(0x146)),_0x25cfe7=fs['createWriteStream'](_0x4a320f);return new Promise((_0x1ef617,_0x392966)=>{const _0x18127c={'mjzQH':function(_0x221b56,_0x6f8b9){const _0x5c080e=a68_0x2ed2;return _0xf7a8fa[_0x5c080e(0x75)](_0x221b56,_0x6f8b9);},'QiuCQ':function(_0x16a4f4,_0x11336e){const _0x371ad3=a68_0x2ed2;return _0xf7a8fa[_0x371ad3(0xdd)](_0x16a4f4,_0x11336e);}};https['get'](_0x3851fe,function(_0x5afb5c){const _0x2e75ea=a68_0x2ed2,_0x1cb681={'YNKhh':_0xf7a8fa['aDVve'],'siWnH':function(_0x27fa71,_0x58b5b3){const _0x3c876b=a68_0x2ed2;return _0xf7a8fa[_0x3c876b(0xfc)](_0x27fa71,_0x58b5b3);},'gQNAR':_0xf7a8fa[_0x2e75ea(0x87)]},_0x1fc121=null;_0x5afb5c[_0x2e75ea(0x129)](_0x25cfe7),_0x5afb5c['on'](_0xf7a8fa[_0x2e75ea(0x118)],function(_0x3992f4){const _0x168565=_0x2e75ea;logger[_0x168565(0x7d)](util['format'](_0x1cb681[_0x168565(0xec)],_0x3992f4)),PerformanceTester[_0x168565(0x86)](PerformanceEvents[_0x168565(0x135)],![],util[_0x168565(0xbf)](_0x3992f4)),_0x1cb681[_0x168565(0x111)](_0x392966,_0x3992f4);}),_0x25cfe7['on'](_0xf7a8fa['BbNqo'],function(_0x281fac){const _0x42db53=_0x2e75ea;logger[_0x42db53(0x7d)](util[_0x42db53(0xbf)](_0x1cb681[_0x42db53(0x117)],_0x281fac)),PerformanceTester[_0x42db53(0x86)](PerformanceEvents[_0x42db53(0x135)],![],util[_0x42db53(0xbf)](_0x281fac)),_0x1cb681[_0x42db53(0x111)](_0x392966,_0x281fac);}),CLIUtils['downloadFileStream'](_0x25cfe7,_0x1fc121,_0x4a320f,_0x5949b6,_0x3617b6=>{const _0x1a7ee0=_0x2e75ea;PerformanceTester[_0x1a7ee0(0x86)](PerformanceEvents[_0x1a7ee0(0x135)]),_0x18127c[_0x1a7ee0(0x12d)](_0x1ef617,_0x3617b6);},_0x378ec7=>{const _0x3f07be=_0x2e75ea;PerformanceTester[_0x3f07be(0x86)](PerformanceEvents[_0x3f07be(0x135)],![],util['format'](_0x378ec7)),_0x18127c[_0x3f07be(0x143)](_0x392966,_0x378ec7);});})['on'](_0xf7a8fa['BbNqo'],function(_0x17dbd9){const _0x2d78dc=a68_0x2ed2;logger[_0x2d78dc(0x7d)](_0x2d78dc(0xaa)+util[_0x2d78dc(0xbf)](_0x17dbd9)),PerformanceTester['end'](PerformanceEvents[_0x2d78dc(0x135)],![],util['format'](_0x17dbd9)),_0xf7a8fa['nihta'](_0x392966,_0x17dbd9);});});}catch(_0x47eea9){PerformanceTester['end'](PerformanceEvents[_0x5874ac(0x135)],![],util['format'](_0x47eea9)),logger[_0x5874ac(0x105)](_0x5874ac(0xf6)+util[_0x5874ac(0xbf)](_0x47eea9));}};static[a68_0x21dbe9(0x10c)](_0x98a91f,_0x16f70a,_0x31c524,_0x4069ef,_0x540cbe,_0x39fdbc){const _0x2712ec=a68_0x21dbe9,_0x126607={'IVcTB':function(_0x3b92e3,_0x44a250){return _0x3b92e3(_0x44a250);},'wabYg':'end','kUHwd':function(_0x503c95,_0x1e68da){return _0x503c95!==_0x1e68da;},'NDVNy':'EXDEV','RWshl':_0x2712ec(0xf9),'FhQIH':_0x2712ec(0x7d),'pGXmr':_0x2712ec(0xc6),'vbVTh':function(_0x1b565d,_0x26671a){return _0x1b565d(_0x26671a);},'erRFr':'0755'};_0x98a91f['on'](_0x126607['pGXmr'],function(){const _0x44b039=_0x2712ec,_0x3dd87b={'ErUcU':function(_0x179564,_0x39b365){const _0x25b4a6=a68_0x2ed2;return _0x126607[_0x25b4a6(0xb6)](_0x179564,_0x39b365);},'sAfWW':_0x126607[_0x44b039(0xdf)],'gPIGR':function(_0x50057b,_0x20cbac){const _0x1a01bc=_0x44b039;return _0x126607[_0x1a01bc(0x94)](_0x50057b,_0x20cbac);},'lecog':function(_0x115176,_0x146e7b){const _0x3161c5=_0x44b039;return _0x126607[_0x3161c5(0xb6)](_0x115176,_0x146e7b);},'BAMSo':function(_0x43fdfb,_0x346011){const _0x58bdf6=_0x44b039;return _0x126607[_0x58bdf6(0xca)](_0x43fdfb,_0x346011);},'bdHke':_0x126607[_0x44b039(0xde)],'PWKCL':_0x126607[_0x44b039(0xf8)]},_0x52944a={};_0x52944a[_0x44b039(0x142)]=!![],yauzl[_0x44b039(0x71)](_0x31c524,_0x52944a,function(_0x579a24,_0x482841){const _0x5a2238=_0x44b039,_0x50b099={'bFXEQ':function(_0x59e0c0,_0x1fd315){const _0x575374=a68_0x2ed2;return _0x126607[_0x575374(0xb6)](_0x59e0c0,_0x1fd315);},'YMvmL':_0x126607[_0x5a2238(0xa3)],'wxIHl':function(_0x418920,_0x2dafd4){return _0x126607['kUHwd'](_0x418920,_0x2dafd4);},'pSQcI':_0x126607[_0x5a2238(0xa5)],'CJUzH':function(_0x33a98d,_0x4e17ec){const _0xb33e3b=_0x5a2238;return _0x126607[_0xb33e3b(0xb6)](_0x33a98d,_0x4e17ec);}};if(_0x579a24){_0x126607[_0x5a2238(0xb6)](_0x39fdbc,_0x579a24);return;}_0x482841['readEntry'](),_0x482841['on'](_0x126607[_0x5a2238(0x131)],_0x398499=>{const _0x1d79e6=_0x5a2238,_0x500808={'HHgFK':function(_0xf0eeb8,_0x228675){const _0x7b75b1=a68_0x2ed2;return _0x3dd87b[_0x7b75b1(0x10d)](_0xf0eeb8,_0x228675);},'bbiqf':function(_0x3409e2,_0x566ae3){return _0x3dd87b['ErUcU'](_0x3409e2,_0x566ae3);},'JtaUg':_0x3dd87b[_0x1d79e6(0x12a)]};if(/\/$/[_0x1d79e6(0xe6)](_0x398499[_0x1d79e6(0xd3)])){_0x482841['readEntry']();return;}!_0x16f70a&&(_0x16f70a=_0x398499[_0x1d79e6(0xd3)]);if(_0x3dd87b[_0x1d79e6(0xbd)](_0x398499[_0x1d79e6(0xd3)],_0x16f70a))_0x482841[_0x1d79e6(0xad)]();else{const _0x54dcf4=_0x398499[_0x1d79e6(0xd3)],_0x20d071=path[_0x1d79e6(0x125)](_0x4069ef,_0x54dcf4+'.tmp.'+process[_0x1d79e6(0xa1)]);let _0x5cf551;try{_0x5cf551=fs[_0x1d79e6(0x74)](_0x20d071);}catch(_0x18b5df){if(BINARY_BUSY_ERROR_CODES['includes'](_0x18b5df[_0x1d79e6(0x8b)])){const _0x56efec=path[_0x1d79e6(0x125)](_0x4069ef,_0x54dcf4);if(fs[_0x1d79e6(0xe7)](_0x56efec)){logger['warn'](_0x1d79e6(0x13a)+_0x54dcf4),fs[_0x1d79e6(0x6d)](_0x31c524,_0x2b8154=>{const _0x4a94ad=_0x1d79e6;_0x2b8154&&logger['warn'](_0x4a94ad(0xcd)+_0x31c524);}),_0x3dd87b[_0x1d79e6(0x147)](_0x540cbe,_0x56efec);return;}logger['warn'](_0x1d79e6(0xf7)+_0x54dcf4);}_0x3dd87b[_0x1d79e6(0x91)](_0x39fdbc,_0x18b5df);return;}_0x5cf551['on'](_0x3dd87b[_0x1d79e6(0xbc)],_0x1b55ca=>{const _0x523e5d=_0x1d79e6;if(BINARY_BUSY_ERROR_CODES[_0x523e5d(0xda)](_0x1b55ca[_0x523e5d(0x8b)])){const _0x4954f0=path[_0x523e5d(0x125)](_0x4069ef,_0x54dcf4);_0x5cf551[_0x523e5d(0xc6)](),fs[_0x523e5d(0xe7)](_0x4954f0)?(logger[_0x523e5d(0xee)](_0x523e5d(0x108)+_0x1b55ca[_0x523e5d(0xc5)]),_0x482841['close'](),fs[_0x523e5d(0x6d)](_0x31c524,_0x338ce4=>{const _0x1230be=_0x523e5d;_0x338ce4&&logger['warn'](_0x1230be(0xcd)+_0x31c524);}),_0x500808['HHgFK'](_0x540cbe,_0x4954f0)):(logger['warn'](_0x523e5d(0xa2)+_0x1b55ca[_0x523e5d(0xc5)]),fs[_0x523e5d(0x6d)](_0x20d071,()=>{}),_0x500808['bbiqf'](_0x39fdbc,_0x1b55ca));}else fs[_0x523e5d(0x6d)](_0x20d071,()=>{}),_0x500808['HHgFK'](_0x39fdbc,_0x1b55ca);}),_0x482841[_0x1d79e6(0x103)](_0x398499,function(_0x9b5338,_0xd4e26c){const _0x551468=_0x1d79e6;if(_0x9b5338){fs['unlink'](_0x20d071,()=>{}),_0x50b099[_0x551468(0xd9)](_0x39fdbc,_0x9b5338);return;}_0xd4e26c['on'](_0x50b099[_0x551468(0x99)],function(){const _0x25d36c=_0x551468;_0x5cf551[_0x25d36c(0x86)](),_0x5cf551['on'](_0x500808[_0x25d36c(0x122)],function(){const _0x53da1d=_0x25d36c;_0x482841[_0x53da1d(0xad)]();});}),_0xd4e26c[_0x551468(0x129)](_0x5cf551);});}}),_0x482841['on'](_0x126607[_0x5a2238(0xde)],_0x185640=>{_0x3dd87b['BAMSo'](_0x39fdbc,_0x185640);}),_0x482841[_0x5a2238(0x72)](_0x126607[_0x5a2238(0xa3)],()=>{const _0x3cd7db=_0x5a2238;fs[_0x3cd7db(0x6d)](_0x31c524,_0x1b68f3=>{const _0x29b663=_0x3cd7db;_0x1b68f3&&logger[_0x29b663(0xee)](_0x29b663(0xcd)+_0x31c524);});const _0x8ada84=path['join'](_0x4069ef,_0x16f70a+'.tmp.'+process[_0x3cd7db(0xa1)]),_0x48bd41=path[_0x3cd7db(0x125)](_0x4069ef,_0x16f70a);fs[_0x3cd7db(0xef)](_0x8ada84,_0x3dd87b[_0x3cd7db(0xcc)],function(_0xebed59){const _0x435b8b=_0x3cd7db,_0x306da9={'cLsEV':function(_0x4a1111,_0x1f80ed){const _0x5051e1=a68_0x2ed2;return _0x50b099[_0x5051e1(0xe1)](_0x4a1111,_0x1f80ed);},'YpLup':_0x50b099[_0x435b8b(0xb2)],'Dqyvv':function(_0x5d44d1,_0xb0336d){const _0x14bad3=_0x435b8b;return _0x50b099[_0x14bad3(0xd9)](_0x5d44d1,_0xb0336d);},'gMslW':function(_0x2b912e,_0xba7615){const _0x1bba2f=_0x435b8b;return _0x50b099[_0x1bba2f(0xc2)](_0x2b912e,_0xba7615);}};if(_0xebed59){_0x482841['close'](),fs[_0x435b8b(0x6d)](_0x8ada84,()=>{}),_0x50b099[_0x435b8b(0xd9)](_0x39fdbc,_0xebed59);return;}fs[_0x435b8b(0xa4)](_0x8ada84,_0x48bd41,function(_0x291e1){const _0x24d124=_0x435b8b;if(_0x291e1){if(_0x306da9[_0x24d124(0xeb)](_0x291e1[_0x24d124(0x8b)],_0x306da9[_0x24d124(0xa7)])){_0x482841[_0x24d124(0xc6)](),fs[_0x24d124(0x6d)](_0x8ada84,()=>{}),_0x306da9[_0x24d124(0xab)](_0x39fdbc,_0x291e1);return;}logger[_0x24d124(0xee)](_0x24d124(0x11d)+_0x291e1['message']);try{fs['copyFileSync'](_0x8ada84,_0x48bd41);}catch(_0x58a69b){_0x482841[_0x24d124(0xc6)](),fs[_0x24d124(0x6d)](_0x8ada84,()=>{}),_0x306da9[_0x24d124(0x11b)](_0x39fdbc,_0x58a69b);return;}fs[_0x24d124(0x6d)](_0x8ada84,_0x30ec2e=>{const _0xf63685=_0x24d124;_0x30ec2e&&logger[_0xf63685(0xee)](_0xf63685(0xb3)+_0x30ec2e[_0xf63685(0xc5)]);});}_0x482841[_0x24d124(0xc6)](),_0x306da9[_0x24d124(0xab)](_0x540cbe,_0x48bd41);});});});});});}static['getTestFrameworkDetail'](){const _0x1bfb2f=a68_0x21dbe9;if(process[_0x1bfb2f(0x70)][_0x1bfb2f(0xa0)])return JSON['parse'](process[_0x1bfb2f(0x70)][_0x1bfb2f(0xa0)]);return this[_0x1bfb2f(0x13e)];}static[a68_0x21dbe9(0x85)](){const _0x449040=a68_0x21dbe9;if(process[_0x449040(0x70)][_0x449040(0xf2)])return JSON[_0x449040(0xae)](process[_0x449040(0x70)][_0x449040(0xf2)]);return this[_0x449040(0x120)];}static[a68_0x21dbe9(0x9c)](_0x1da6a0,_0x11af3f){const _0x49e458=a68_0x21dbe9,_0x364c52={'GKmlz':_0x49e458(0x8d),'rAmLN':function(_0x5606e2,_0x403e85){return _0x5606e2||_0x403e85;},'NwfUl':function(_0x11a48b,_0x21b3ce){return _0x11a48b(_0x21b3ce);}},_0x319c10=_0x364c52[_0x49e458(0x81)][_0x49e458(0x95)]('|');let _0x13dc3c=0x0;while(!![]){switch(_0x319c10[_0x13dc3c++]){case'0':process[_0x49e458(0x70)][_0x49e458(0xa0)]=JSON['stringify'](this['testFrameworkDetail']);continue;case'1':process[_0x49e458(0x70)][_0x49e458(0xf2)]=JSON[_0x49e458(0x97)](this[_0x49e458(0x120)]);continue;case'2':_0x364c52[_0x49e458(0x11c)](!_0x1da6a0,!_0x11af3f)&&logger[_0x49e458(0x105)]('Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework='+_0x1da6a0+_0x49e458(0x113)+_0x11af3f);continue;case'3':this[_0x49e458(0x120)]={'name':_0x11af3f,'version':_0x364c52[_0x49e458(0x69)](getFrameworkVersion,_0x11af3f)};continue;case'4':this[_0x49e458(0x13e)]={'name':_0x1da6a0,'version':{[_0x1da6a0]:_0x364c52[_0x49e458(0x69)](getFrameworkVersion,_0x1da6a0)}};continue;}break;}}static[a68_0x21dbe9(0x138)](_0x30031a,_0x24794c){return _0x30031a+':'+_0x24794c;}static[a68_0x21dbe9(0x73)](){const _0x3b521e=a68_0x21dbe9;return process[_0x3b521e(0xa1)]+':'+threadId;}static[a68_0x21dbe9(0xd0)](_0x851e5b){const _0x82eb86=a68_0x21dbe9;if(_0x851e5b[_0x82eb86(0x104)]&&_0x851e5b['testContextOptions'][_0x82eb86(0x7f)])return!![];return![];}static['shouldSkipSessionStatus'](_0x171f88){const _0x31720c=a68_0x21dbe9;if(_0x171f88[_0x31720c(0x104)]&&_0x171f88['testContextOptions']['skipSessionStatus'])return!![];return![];}static['matchHookRegex'](_0x4f62de){const _0x27ba8b=a68_0x21dbe9,_0x5ee378=new RegExp(TestFrameworkConstants[_0x27ba8b(0xe4)]);return _0x5ee378['test'](_0x4f62de);}static[a68_0x21dbe9(0xa9)](_0x2a6bd5,_0x2916f8){const _0x57f843=a68_0x21dbe9,_0x2ff32d={};_0x2ff32d[_0x57f843(0xdc)]=function(_0x119767,_0x5aeee0){return _0x119767!==_0x5aeee0;},_0x2ff32d['WxecO']=function(_0x52df87,_0x5249bf){return _0x52df87===_0x5249bf;},_0x2ff32d['oJQoE']=_0x57f843(0x7b);const _0x4d0238=_0x2ff32d;for(const [_0x4354f3,_0xf93c87]of Object['entries'](_0x2916f8)){if(_0x4d0238[_0x57f843(0xdc)](_0xf93c87,null)&&_0x4d0238['WxecO'](typeof _0xf93c87,_0x4d0238['oJQoE'])&&!Array[_0x57f843(0xd1)](_0xf93c87))_0x2a6bd5[_0x4354f3]=this[_0x57f843(0xa9)](_0x2a6bd5[_0x4354f3]||{},_0xf93c87);else Array[_0x57f843(0xd1)](_0xf93c87)?_0x2a6bd5[_0x4354f3]=(_0x2a6bd5[_0x4354f3]||[])[_0x57f843(0xbe)](_0xf93c87):_0x2a6bd5[_0x4354f3]=_0xf93c87;}return _0x2a6bd5;}}module[a68_0x21dbe9(0xac)]=CLIUtils;
1
+ const a68_0x4b06c0=a68_0x4258;(function(_0x2b1ed4,_0x503f22){const _0x32072b=a68_0x4258,_0x1a362d=_0x2b1ed4();while(!![]){try{const _0x4f1dff=-parseInt(_0x32072b(0x1fd))/0x1*(parseInt(_0x32072b(0x1eb))/0x2)+parseInt(_0x32072b(0x156))/0x3+parseInt(_0x32072b(0x14d))/0x4+parseInt(_0x32072b(0x1cb))/0x5+-parseInt(_0x32072b(0x1a2))/0x6*(-parseInt(_0x32072b(0x13a))/0x7)+-parseInt(_0x32072b(0x15e))/0x8*(parseInt(_0x32072b(0x1e1))/0x9)+-parseInt(_0x32072b(0x1b4))/0xa;if(_0x4f1dff===_0x503f22)break;else _0x1a362d['push'](_0x1a362d['shift']());}catch(_0x41715e){_0x1a362d['push'](_0x1a362d['shift']());}}}(a68_0x523b,0x8709b));const fs=require('fs'),os=require('os'),url=require(a68_0x4b06c0(0x147)),path=require(a68_0x4b06c0(0x1fa)),{exec}=require(a68_0x4b06c0(0x17a)),{https}=require(a68_0x4b06c0(0x1a4)),yauzl=require(a68_0x4b06c0(0x1a8)),util=require(a68_0x4b06c0(0x185)),{getFrameworkVersion}=require(a68_0x4b06c0(0x1bb)),{threadId}=require(a68_0x4b06c0(0x1c0)),PerformanceTester=require(a68_0x4b06c0(0x168)),{EVENTS:PerformanceEvents}=require(a68_0x4b06c0(0x186)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a68_0x4b06c0(0x167)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a68_0x4b06c0(0x1d2)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a68_0x4b06c0(0x178)),{createClassLogger}=require(a68_0x4b06c0(0x14e)),TestFrameworkInstance=require(a68_0x4b06c0(0x201)),HookState=require('./state/hookState.js'),TestFrameworkState=require('./state/testFrameworkState.js'),AutomationFrameworkState=require(a68_0x4b06c0(0x1df)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants.js'),logger=createClassLogger('CLIUtils'),{getBStackAPIUrl}=require(a68_0x4b06c0(0x16a));function a68_0x4258(_0x310723,_0x126761){const _0x523bfa=a68_0x523b();return a68_0x4258=function(_0x4258ee,_0x1a6751){_0x4258ee=_0x4258ee-0x131;let _0x4c0f48=_0x523bfa[_0x4258ee];return _0x4c0f48;},a68_0x4258(_0x310723,_0x126761);}function a68_0x523b(){const _0x5abaa1=['AlvvO','unlink','isDevelopmentEnv','VhjpM','BROWSERSTACK_FILES_DIR','ywhcO','Configuring\x20Cli\x20path.','mQdVa','shouldSkipSessionStatus','concat','getSdkLanguage','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','VSHla','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','getExistingCliPath','vpoDW','Resolving\x20with\x20stdout:\x20\x22','getCurrentInstanceName','eHOtr','error','entries','isFile','existsSync','981127sEKYOH','node','SDK_CLI_BIN_PATH','RLeRE','TKVOU','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','requestToUpdateCLI','ViRyP','DTzPE','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','AtvzI','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','end','url','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','Error\x20while\x20reading\x20CLI\x20path:\x20','env','oESyz','Resolved\x20binary\x20path:\x20','3617896EUtGaU','../../helpers/classLogger.js','yrzHe','entry','Folder\x20does\x20not\x20exist:\x20','QZAJe','lrAdo','platform','mtime','2286348UDLNuy','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','warn','tOmhD','mergeObject','Failed\x20to\x20delete\x20zip\x20file:\x20','BROWSERSTACK_CLI_ENV','Binary\x20is\x20busy:\x20','1217136LiqNHs','0|2|4|1|3','trim','createWriteStream','exports','yTqLG','zJiOa','PEzsx','rename','../../helpers/utilities','../../helpers/performance/performance-tester.js','CEiUh','../utils/apiUtilityMethods.js','Development\x20Cli\x20Path:\x20','parse','pid','isDirectory','glKAj','map','skipSessionName','getHookRegistryKey','testFrameworkDetail','\x20already\x20exists','SDPfZ','getAutomationFrameworkDetail','YBYZQ','../utils/constants','shouldSkipSessionName','child_process','xExTz','.tmp.','PZBiq','OLDod','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','Setting\x20required\x20permissions\x20to\x20','binary-','lazyEntries','QUwLV','util','../../helpers/performance/constants','GET','vwtDv','KfIZf','VeadS','filter','runShellCommand','.zip','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','format','oqOyc','sXQwM','twHzQ','LLcji','fileName','nieTR','DNPGe','unix:/tmp/sdk-platform-','getSdkVersion','startsWith','code','AiJcb','cli_version','data','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','NWBPz','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','development','18uANEBb','openSync','follow-redirects','EhkUh','test','VUJIa','yauzl','close','filePath','testContextOptions','ozkyK','VddAL','includes','SDK_CLI_CHECK_UPDATE','bYrZH','getCliDir','SDK_CLI_DOWNLOAD','copyFileSync','5438980ROGPbc','uBmDC','SHELL_EXECUTE_ERROR','isBinaryBusy','split','cwd','AKRNc','../../helpers/test-observability/utils.js','setFrameworkDetail','AqfbH','timeout','fjknk','worker_threads','TCumu','reduce','gHPfC','stringify','statSync',',\x20automationFramework=','checkAndUpdateCli','TUShw','LEMMg','Downloading\x20SDK\x20binary\x20from:\x20','2903570ZDxEti','yKwhR','gkvcj','lpMVN','eQVnu','basename','cMCcn','../../helpers/helper','ZzGRR','CHqVL','downloadLatestBinary','readEntry','DjKNu','listen','MYrae','downloadFileStream','bglgy','KmSVR','.sock','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','./state/automationFrameworkState.js','response\x20','63ouqLdR','isArray','FHyHF','iVECE','BROWSERSTACK_BINARY_URL','setupCliPath','info','\x20version','yrDvf','join','220gLYDyo','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','.browserstack','readdirSync','start','object','yMfPy','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','EXDEV','tmpdir','automationFrameworkDetail','cli','open','rdBrZ','closeSync','path','version','message','4598wbhlce','NFFke','length','debug','./instances/testFrameworkInstance.js','get','sLloF','OrEUn','pipe'];a68_0x523b=function(){return _0x5abaa1;};return a68_0x523b();}class CLIUtils{['automationFrameworkDetail']={};[a68_0x4b06c0(0x173)]={};static[a68_0x4b06c0(0x208)](){const _0x5e84af=a68_0x4b06c0,_0x4e1ed6={};_0x4e1ed6[_0x5e84af(0x212)]=function(_0x3af17d,_0x2c490a){return _0x3af17d===_0x2c490a;},_0x4e1ed6['OqtiZ']=_0x5e84af(0x1a1);const _0x494071=_0x4e1ed6;return _0x494071[_0x5e84af(0x212)](process[_0x5e84af(0x14a)][_0x5e84af(0x15c)],_0x494071['OqtiZ']);}static['getCLIParamsForDevEnv'](){const _0x30aef4=a68_0x4b06c0,_0x9a4532={};return _0x9a4532['id']=process[_0x30aef4(0x14a)][_0x30aef4(0x15c)],_0x9a4532[_0x30aef4(0x1d8)]=_0x30aef4(0x197)+process['env']['BROWSERSTACK_CLI_ENV']+_0x30aef4(0x1dd),_0x9a4532;}static[a68_0x4b06c0(0x198)](){const _0x4dd69b=a68_0x4b06c0,_0x497b1a={'yKwhR':function(_0x28d2c1,_0x4d551c){return _0x28d2c1(_0x4d551c);},'lrAdo':'../../../package.json'};return _0x497b1a[_0x4dd69b(0x1cc)](require,_0x497b1a[_0x4dd69b(0x153)])[_0x4dd69b(0x1fb)];}static[a68_0x4b06c0(0x210)](){const _0x43c4c5=a68_0x4b06c0,_0xdb6d59={};_0xdb6d59['YBYZQ']=_0x43c4c5(0x13b);const _0x501ae7=_0xdb6d59;return _0x501ae7[_0x43c4c5(0x177)];}static async[a68_0x4b06c0(0x1e6)](_0x4fcd79){const _0x5e8212=a68_0x4b06c0,_0x3ce622={'TISEG':_0x5e8212(0x20c),'yrzHe':function(_0x3c9db,_0x3e66c7){return _0x3c9db(_0x3e66c7);},'LEMMg':_0x5e8212(0x143)};logger[_0x5e8212(0x200)](_0x3ce622['TISEG']);const _0x537d9e=process[_0x5e8212(0x14a)][_0x5e8212(0x13c)];if(!_0x3ce622['yrzHe'](isNullOrEmpty,_0x537d9e))return logger[_0x5e8212(0x200)](_0x5e8212(0x16b)+_0x537d9e),_0x537d9e;try{const _0x4b1ffb=this['getCliDir']();if(_0x3ce622[_0x5e8212(0x14f)](isNullOrEmpty,_0x4b1ffb))throw new Error(_0x3ce622[_0x5e8212(0x1c9)]);const _0x196e9f=this[_0x5e8212(0x131)](_0x4b1ffb),_0x36a29f=await this[_0x5e8212(0x1c7)](_0x196e9f,_0x4b1ffb,_0x4fcd79);return logger[_0x5e8212(0x200)](_0x5e8212(0x14c)+_0x36a29f),_0x36a29f;}catch(_0x38621e){logger[_0x5e8212(0x200)](_0x5e8212(0x213)+util[_0x5e8212(0x18f)](_0x38621e));}return null;}static async['checkAndUpdateCli'](_0x1dcb85,_0x5c4101,_0x3b08cf){const _0xde5c13=a68_0x4b06c0,_0x198ea4={'lpMVN':function(_0x5c19f7){return _0x5c19f7();},'AKRNc':function(_0x553a73,_0x5da743){return _0x553a73(_0x5da743);},'vwtDv':function(_0x257537,_0x4dfbf7,_0x47a990){return _0x257537(_0x4dfbf7,_0x47a990);},'sXQwM':_0xde5c13(0x19d),'OLSAs':'url','DNPGe':function(_0x33e43c,_0x545527,_0x3c868c){return _0x33e43c(_0x545527,_0x3c868c);}};PerformanceTester[_0xde5c13(0x1ef)](PerformanceEvents[_0xde5c13(0x1af)]),logger[_0xde5c13(0x1e7)]('Current\x20CLI\x20Path\x20Found:\x20'+_0x1dcb85);const _0x5f4148=_0x198ea4[_0xde5c13(0x1ce)](getHostInfo),_0x957139={'sdk_version':CLIUtils[_0xde5c13(0x198)](),'os':_0x5f4148[_0xde5c13(0x154)],'os_arch':_0x5f4148['arch'],'cli_version':'0','sdk_language':this['getSdkLanguage']()};!_0x198ea4[_0xde5c13(0x1ba)](isNullOrEmpty,_0x1dcb85)&&(_0x957139[_0xde5c13(0x19c)]=await this['runShellCommand'](_0x1dcb85+_0xde5c13(0x1e8)));const _0x51a12=await this[_0xde5c13(0x140)](_0x957139,_0x3b08cf);process[_0xde5c13(0x14a)][_0xde5c13(0x1e5)]&&(logger[_0xde5c13(0x1e7)](_0xde5c13(0x1a0)+process['env'][_0xde5c13(0x1e5)]),_0x51a12['data']['url']=process[_0xde5c13(0x14a)]['BROWSERSTACK_BINARY_URL']);if(_0x198ea4[_0xde5c13(0x188)](nestedKeyValue,_0x51a12,[_0x198ea4[_0xde5c13(0x191)],_0x198ea4['OLSAs']])){logger[_0xde5c13(0x200)]('Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20'+_0x957139['cli_version']);if(!_0x198ea4['AKRNc'](isNullOrEmpty,_0x1dcb85)&&this[_0xde5c13(0x1b7)](_0x1dcb85))return logger[_0xde5c13(0x158)](_0xde5c13(0x1ec)+_0x1dcb85),PerformanceTester['end'](PerformanceEvents[_0xde5c13(0x1af)]),_0x1dcb85;const _0x1d6b62=await this[_0xde5c13(0x1d5)](_0x198ea4[_0xde5c13(0x196)](nestedKeyValue,_0x51a12,[_0x198ea4['sXQwM'],_0x198ea4['OLSAs']]),_0x5c4101);return PerformanceTester[_0xde5c13(0x146)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x1d6b62;}return PerformanceTester[_0xde5c13(0x146)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x1dcb85;}static[a68_0x4b06c0(0x1b1)](){const _0x2b9352=a68_0x4b06c0,_0x89d8c1={'CEiUh':function(_0x3740af,_0x305fd2){return _0x3740af(_0x305fd2);},'QSkDd':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','OLDod':_0x2b9352(0x1f6)},_0x2a9b15=this['getWritableDir']();try{if(_0x89d8c1[_0x2b9352(0x169)](isNullOrEmpty,_0x2a9b15))throw new Error(_0x89d8c1['QSkDd']);const _0x5f1e59=path[_0x2b9352(0x1ea)](_0x2a9b15,_0x89d8c1[_0x2b9352(0x17e)]);return!fs[_0x2b9352(0x139)](_0x5f1e59)&&_0x89d8c1[_0x2b9352(0x169)](createDir,_0x5f1e59),_0x5f1e59;}catch(_0x5a8b07){logger['debug']('Error\x20in\x20getting\x20writable\x20directory,\x20writableDir='+util[_0x2b9352(0x18f)](_0x5a8b07));}}static['getWritableDir'](){const _0x344a14=a68_0x4b06c0,_0x5a23a0={'ViRyP':_0x344a14(0x1ed),'TUShw':function(_0x235bc5,_0xbf9796){return _0x235bc5(_0xbf9796);},'eeENW':function(_0x12795b,_0x430b2e){return _0x12795b(_0x430b2e);},'AiJcb':function(_0x250c89,_0x2aa3a0){return _0x250c89(_0x2aa3a0);},'PZBiq':function(_0x5cf578,_0x269872){return _0x5cf578(_0x269872);},'ukSjQ':function(_0x2c9a3a,_0x1ca23e){return _0x2c9a3a(_0x1ca23e);}},_0x27ca95=[process[_0x344a14(0x14a)][_0x344a14(0x20a)],path['join'](os['homedir'](),_0x5a23a0['ViRyP']),path[_0x344a14(0x1ea)](os[_0x344a14(0x1f4)](),_0x5a23a0[_0x344a14(0x141)])];for(const _0x325851 of _0x27ca95){if(_0x5a23a0[_0x344a14(0x1c8)](isNullOrEmpty,_0x325851))continue;try{if(fs[_0x344a14(0x139)](_0x325851)){logger[_0x344a14(0x200)]('Folder\x20'+_0x325851+_0x344a14(0x174));if(!_0x5a23a0['eeENW'](isModifiable,_0x325851)){logger['debug'](_0x344a14(0x181)+_0x325851);const _0x21d192=_0x5a23a0[_0x344a14(0x19b)](setReadWriteExecuteAccess,_0x325851);if(!_0x5a23a0[_0x344a14(0x19b)](isTrue,_0x21d192)){logger[_0x344a14(0x158)](_0x344a14(0x145)+_0x325851);continue;}}}else{logger[_0x344a14(0x200)](_0x344a14(0x151)+_0x325851),_0x5a23a0[_0x344a14(0x17d)](createDir,_0x325851),logger['debug'](_0x344a14(0x181)+_0x325851);const _0x1cd18d=_0x5a23a0[_0x344a14(0x1c8)](setReadWriteExecuteAccess,_0x325851);!_0x5a23a0['ukSjQ'](isTrue,_0x1cd18d)&&logger[_0x344a14(0x158)](_0x344a14(0x145)+_0x325851);}return _0x325851;}catch(_0x2d841f){logger[_0x344a14(0x136)](_0x344a14(0x211)+util[_0x344a14(0x18f)](_0x2d841f));}}return null;}static[a68_0x4b06c0(0x131)](_0x20e14b){const _0x1dd22f=a68_0x4b06c0,_0x494f6b={};_0x494f6b[_0x1dd22f(0x1e9)]=function(_0x5c6696,_0x5909f2){return _0x5c6696>_0x5909f2;};const _0x1c3d94=_0x494f6b;try{if(!fs[_0x1dd22f(0x139)](_0x20e14b)||!fs[_0x1dd22f(0x1c5)](_0x20e14b)[_0x1dd22f(0x16e)]())return'';const _0x36e7cc=fs[_0x1dd22f(0x1ee)](_0x20e14b)[_0x1dd22f(0x170)](_0x185b62=>path['join'](_0x20e14b,_0x185b62))[_0x1dd22f(0x18b)](_0x38e919=>fs['statSync'](_0x38e919)[_0x1dd22f(0x138)]()&&path[_0x1dd22f(0x1d0)](_0x38e919)[_0x1dd22f(0x199)](_0x1dd22f(0x182)));if(_0x1c3d94[_0x1dd22f(0x1e9)](_0x36e7cc[_0x1dd22f(0x1ff)],0x0)){const _0x31cc81=_0x36e7cc[_0x1dd22f(0x170)](_0xa72917=>({'filePath':_0xa72917,'mtime':fs[_0x1dd22f(0x1c5)](_0xa72917)[_0x1dd22f(0x155)]}))[_0x1dd22f(0x1c2)]((_0x4c5f6c,_0x12c2dd)=>{const _0xc3d31c=_0x1dd22f;if(!_0x4c5f6c||!_0x4c5f6c[_0xc3d31c(0x155)])return _0x12c2dd;if(_0x1c3d94['yrDvf'](_0x12c2dd[_0xc3d31c(0x155)],_0x4c5f6c[_0xc3d31c(0x155)]))return _0x12c2dd;return _0x4c5f6c;},{});return _0x31cc81?_0x31cc81[_0x1dd22f(0x1aa)]:'';}return'';}catch(_0x40d733){return logger[_0x1dd22f(0x136)](_0x1dd22f(0x149)+util[_0x1dd22f(0x18f)](_0x40d733)),'';}}static ['requestToUpdateCLI']=async(_0x153447,_0x17278f)=>{const _0x59c1b8=a68_0x4b06c0,_0x3f3276={'LHeLE':function(_0x196c68,_0x5f491e,_0x739c42,_0x8bb707,_0xbd5068){return _0x196c68(_0x5f491e,_0x739c42,_0x8bb707,_0xbd5068);},'JQGld':_0x59c1b8(0x187)},_0x4ff6e9={};_0x4ff6e9['qs']=_0x153447;const _0x2b316c=await _0x3f3276['LHeLE'](nodeRequest,_0x3f3276['JQGld'],UPDATED_CLI_ENDPOINT,_0x4ff6e9,_0x17278f);return logger[_0x59c1b8(0x200)](_0x59c1b8(0x1e0)+JSON[_0x59c1b8(0x1c4)](_0x2b316c)),_0x2b316c;};static[a68_0x4b06c0(0x1b7)](_0x542c27){const _0x2076f5=a68_0x4b06c0;try{const _0x514888=fs[_0x2076f5(0x1a3)](_0x542c27,'r+');return fs[_0x2076f5(0x1f9)](_0x514888),![];}catch(_0x243322){if(BINARY_BUSY_ERROR_CODES['includes'](_0x243322[_0x2076f5(0x19a)]))return logger['debug'](_0x2076f5(0x15d)+_0x542c27),!![];return logger[_0x2076f5(0x200)](_0x2076f5(0x157)+_0x243322[_0x2076f5(0x1fc)]),![];}}static[a68_0x4b06c0(0x18c)](_0x7d6158,_0x3615f6=''){const _0x205b6b=a68_0x4b06c0,_0x35392={'VhjpM':_0x205b6b(0x1fb),'ZzGRR':function(_0x2a049f,_0x1cf499){return _0x2a049f(_0x1cf499);},'TCumu':_0x205b6b(0x1b6),'VUJIa':function(_0x43e503,_0x114796,_0x5571e4,_0x487580){return _0x43e503(_0x114796,_0x5571e4,_0x487580);},'oqOyc':_0x205b6b(0x136)};return new Promise((_0x49b343,_0x79fb8d)=>{const _0x1239ee=_0x205b6b,_0x48386c={};_0x48386c[_0x1239ee(0x1b9)]=_0x3615f6,_0x48386c[_0x1239ee(0x1be)]=0x1388;const _0x3d72eb=_0x35392[_0x1239ee(0x1a7)](exec,_0x7d6158,_0x48386c,(_0x37f933,_0x3f1656,_0x4b03c8)=>{const _0x483441=_0x1239ee;if(_0x37f933){if(_0x7d6158[_0x483441(0x1ae)](_0x35392[_0x483441(0x209)])&&(_0x3f1656[_0x483441(0x160)]()||_0x4b03c8[_0x483441(0x160)]())){const _0xdef500=_0x3f1656[_0x483441(0x160)]()||_0x4b03c8['trim']();logger[_0x483441(0x200)]('CLI\x20version\x20found\x20despite\x20error:\x20\x22'+_0xdef500+'\x22'),_0x35392['ZzGRR'](_0x49b343,_0xdef500);}else _0x35392[_0x483441(0x1d3)](_0x49b343,_0x4b03c8[_0x483441(0x160)]()||_0x35392[_0x483441(0x1c1)]);}else logger[_0x483441(0x200)](_0x483441(0x133)+_0x3f1656[_0x483441(0x160)]()+'\x22'),_0x35392['ZzGRR'](_0x49b343,_0x3f1656[_0x483441(0x160)]());});_0x3d72eb['on'](_0x35392[_0x1239ee(0x190)],()=>{const _0x33a155=_0x1239ee;_0x35392[_0x33a155(0x1d3)](_0x49b343,_0x35392['TCumu']);});});}static [a68_0x4b06c0(0x1d5)]=async(_0x11f076,_0x541c9f)=>{const _0x713d73=a68_0x4b06c0,_0xe05c03={'VddAL':'Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','mQdVa':function(_0x2efa78,_0x2062f1){return _0x2efa78(_0x2062f1);},'PEzsx':_0x713d73(0x180),'twHzQ':_0x713d73(0x136)};PerformanceTester[_0x713d73(0x1ef)](PerformanceEvents[_0x713d73(0x1b2)]),logger[_0x713d73(0x200)](_0x713d73(0x1ca)+_0x11f076);try{const _0x24b635=url[_0x713d73(0x16c)](_0x11f076),_0x51dfaf=path[_0x713d73(0x1ea)](_0x541c9f,'downloaded_file_'+process[_0x713d73(0x16d)]+_0x713d73(0x18d)),_0x557f78=fs[_0x713d73(0x161)](_0x51dfaf);return new Promise((_0x37c856,_0x2f112f)=>{const _0x37b318=_0x713d73,_0xdb0ffc={'oESyz':_0xe05c03[_0x37b318(0x1ad)],'uBmDC':function(_0xed5919,_0x325b09){const _0x109aa3=_0x37b318;return _0xe05c03[_0x109aa3(0x20d)](_0xed5919,_0x325b09);},'yTqLG':_0xe05c03[_0x37b318(0x165)],'iVECE':_0xe05c03[_0x37b318(0x192)]};https[_0x37b318(0x202)](_0x24b635,function(_0x4a442c){const _0x516438=_0x37b318,_0x4ce8c2={'ojRNX':function(_0x3b39fd,_0x11e842){return _0xdb0ffc['uBmDC'](_0x3b39fd,_0x11e842);}},_0x381cd0=null;_0x4a442c['pipe'](_0x557f78),_0x4a442c['on'](_0xdb0ffc[_0x516438(0x1e4)],function(_0x25d1d4){const _0x48539b=_0x516438;logger[_0x48539b(0x136)](util[_0x48539b(0x18f)](_0xdb0ffc[_0x48539b(0x14b)],_0x25d1d4)),PerformanceTester['end'](PerformanceEvents[_0x48539b(0x1b2)],![],util[_0x48539b(0x18f)](_0x25d1d4)),_0xdb0ffc[_0x48539b(0x1b5)](_0x2f112f,_0x25d1d4);}),_0x557f78['on'](_0xdb0ffc[_0x516438(0x1e4)],function(_0x4b2334){const _0xddac28=_0x516438;logger['error'](util[_0xddac28(0x18f)](_0xdb0ffc[_0xddac28(0x163)],_0x4b2334)),PerformanceTester[_0xddac28(0x146)](PerformanceEvents[_0xddac28(0x1b2)],![],util['format'](_0x4b2334)),_0xdb0ffc[_0xddac28(0x1b5)](_0x2f112f,_0x4b2334);}),CLIUtils['downloadFileStream'](_0x557f78,_0x381cd0,_0x51dfaf,_0x541c9f,_0x26eae=>{const _0x279147=_0x516438;PerformanceTester[_0x279147(0x146)](PerformanceEvents[_0x279147(0x1b2)]),_0xdb0ffc[_0x279147(0x1b5)](_0x37c856,_0x26eae);},_0x86fe7e=>{const _0x273849=_0x516438;PerformanceTester[_0x273849(0x146)](PerformanceEvents[_0x273849(0x1b2)],![],util['format'](_0x86fe7e)),_0x4ce8c2['ojRNX'](_0x2f112f,_0x86fe7e);});})['on'](_0xe05c03[_0x37b318(0x192)],function(_0x4b4636){const _0x5eff83=_0x37b318;logger['error']('Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20'+util['format'](_0x4b4636)),PerformanceTester[_0x5eff83(0x146)](PerformanceEvents[_0x5eff83(0x1b2)],![],util[_0x5eff83(0x18f)](_0x4b4636)),_0xdb0ffc[_0x5eff83(0x1b5)](_0x2f112f,_0x4b4636);});});}catch(_0x24c924){PerformanceTester[_0x713d73(0x146)](PerformanceEvents[_0x713d73(0x1b2)],![],util[_0x713d73(0x18f)](_0x24c924)),logger[_0x713d73(0x200)]('Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20'+util['format'](_0x24c924));}};static[a68_0x4b06c0(0x1da)](_0x559206,_0x10a869,_0x267fa5,_0xd8781,_0xe5b05c,_0x2b6309){const _0x2a5577=a68_0x4b06c0,_0x4d667d={'eHOtr':function(_0x4141ec,_0x119581){return _0x4141ec(_0x119581);},'nieTR':_0x2a5577(0x1a9),'ozkyK':'end','eQVnu':function(_0x3948c8,_0x43ac60){return _0x3948c8!==_0x43ac60;},'pLLUx':'error','kvHVn':function(_0x5dbc54,_0x91434){return _0x5dbc54(_0x91434);},'LLcji':_0x2a5577(0x1f3),'rdBrZ':'0755','zJiOa':function(_0x4b356e,_0x3779c8){return _0x4b356e(_0x3779c8);},'gHPfC':_0x2a5577(0x150)};_0x559206['on'](_0x4d667d[_0x2a5577(0x195)],function(){const _0x78d13e=_0x2a5577,_0x5ee807={'VeadS':function(_0x3b7dd0,_0x1838fb){const _0x3fe58f=a68_0x4258;return _0x4d667d[_0x3fe58f(0x135)](_0x3b7dd0,_0x1838fb);},'ywhcO':function(_0x18d492,_0x31a983){const _0x1cb55a=a68_0x4258;return _0x4d667d[_0x1cb55a(0x135)](_0x18d492,_0x31a983);},'QZAJe':_0x4d667d[_0x78d13e(0x195)],'gkvcj':_0x4d667d[_0x78d13e(0x1ac)],'glKAj':function(_0x10a199,_0x10fe2b){const _0x30f449=_0x78d13e;return _0x4d667d[_0x30f449(0x1cf)](_0x10a199,_0x10fe2b);},'AtvzI':_0x4d667d['pLLUx'],'KJwkX':function(_0x46e816,_0x1de5a1){return _0x4d667d['kvHVn'](_0x46e816,_0x1de5a1);},'KfIZf':_0x4d667d[_0x78d13e(0x193)],'EhkUh':_0x4d667d[_0x78d13e(0x1f8)],'MYrae':function(_0x338555,_0x13afb5){const _0xc59f7b=_0x78d13e;return _0x4d667d[_0xc59f7b(0x164)](_0x338555,_0x13afb5);},'EiTbi':_0x4d667d[_0x78d13e(0x1c3)]},_0x4e7047={};_0x4e7047[_0x78d13e(0x183)]=!![],yauzl[_0x78d13e(0x1f7)](_0x267fa5,_0x4e7047,function(_0x1f210a,_0x1c29b6){const _0x780fa1=_0x78d13e,_0x1e09b2={'DjKNu':function(_0xd60d09,_0x4a55d9){const _0x4e189f=a68_0x4258;return _0x5ee807[_0x4e189f(0x18a)](_0xd60d09,_0x4a55d9);},'NWBPz':function(_0x35a5ff,_0x5d4ee8){const _0x161ae9=a68_0x4258;return _0x5ee807[_0x161ae9(0x20b)](_0x35a5ff,_0x5d4ee8);},'CHqVL':function(_0x23074e,_0x479f31){const _0x445c14=a68_0x4258;return _0x5ee807[_0x445c14(0x20b)](_0x23074e,_0x479f31);},'TKVOU':_0x5ee807[_0x780fa1(0x152)],'AqfbH':_0x5ee807[_0x780fa1(0x1cd)],'bglgy':function(_0x2de167,_0x18e0b5){const _0x422220=_0x780fa1;return _0x5ee807[_0x422220(0x16f)](_0x2de167,_0x18e0b5);},'tOmhD':_0x5ee807[_0x780fa1(0x144)],'sLloF':function(_0x2c883a,_0x34e95e){return _0x5ee807['KJwkX'](_0x2c883a,_0x34e95e);},'RLeRE':_0x5ee807[_0x780fa1(0x189)],'CcXyn':function(_0x1f9961,_0x3b9e7d){const _0x1315c6=_0x780fa1;return _0x5ee807[_0x1315c6(0x18a)](_0x1f9961,_0x3b9e7d);},'fuFop':function(_0x2d94b5,_0xe14e4){return _0x5ee807['ywhcO'](_0x2d94b5,_0xe14e4);},'OrEUn':_0x5ee807[_0x780fa1(0x1a5)]};if(_0x1f210a){_0x5ee807[_0x780fa1(0x1d9)](_0x2b6309,_0x1f210a);return;}_0x1c29b6[_0x780fa1(0x1d6)](),_0x1c29b6['on'](_0x5ee807['EiTbi'],_0x1619c1=>{const _0x5140eb=_0x780fa1,_0x532303={'vpoDW':_0x1e09b2[_0x5140eb(0x13e)],'yMfPy':function(_0x3610d6,_0x3c9da4){const _0x351303=_0x5140eb;return _0x1e09b2[_0x351303(0x1d4)](_0x3610d6,_0x3c9da4);},'bYrZH':_0x1e09b2[_0x5140eb(0x1bd)]};if(/\/$/[_0x5140eb(0x1a6)](_0x1619c1[_0x5140eb(0x194)])){_0x1c29b6[_0x5140eb(0x1d6)]();return;}!_0x10a869&&(_0x10a869=_0x1619c1['fileName']);if(_0x1e09b2['bglgy'](_0x1619c1[_0x5140eb(0x194)],_0x10a869))_0x1c29b6[_0x5140eb(0x1d6)]();else{const _0x1e6125=_0x1619c1[_0x5140eb(0x194)],_0x153d4c=path[_0x5140eb(0x1ea)](_0xd8781,_0x1e6125+_0x5140eb(0x17c)+process[_0x5140eb(0x16d)]);let _0x11d95f;try{_0x11d95f=fs['createWriteStream'](_0x153d4c);}catch(_0x1fd613){if(BINARY_BUSY_ERROR_CODES[_0x5140eb(0x1ae)](_0x1fd613[_0x5140eb(0x19a)])){const _0x4e5193=path['join'](_0xd8781,_0x1e6125);if(fs[_0x5140eb(0x139)](_0x4e5193)){logger[_0x5140eb(0x158)](_0x5140eb(0x1de)+_0x1e6125),fs[_0x5140eb(0x207)](_0x267fa5,_0x1833c2=>{const _0x2c8bf0=_0x5140eb;_0x1833c2&&logger[_0x2c8bf0(0x158)](_0x2c8bf0(0x15b)+_0x267fa5);}),_0x1e09b2[_0x5140eb(0x19f)](_0xe5b05c,_0x4e5193);return;}logger['warn']('Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x1e6125);}_0x1e09b2[_0x5140eb(0x19f)](_0x2b6309,_0x1fd613);return;}_0x11d95f['on'](_0x1e09b2[_0x5140eb(0x159)],_0x9c11a0=>{const _0x1ca281=_0x5140eb;if(BINARY_BUSY_ERROR_CODES[_0x1ca281(0x1ae)](_0x9c11a0[_0x1ca281(0x19a)])){const _0x166e4e=path[_0x1ca281(0x1ea)](_0xd8781,_0x1e6125);_0x11d95f[_0x1ca281(0x1a9)](),fs[_0x1ca281(0x139)](_0x166e4e)?(logger[_0x1ca281(0x158)]('Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x9c11a0[_0x1ca281(0x1fc)]),_0x1c29b6['close'](),fs[_0x1ca281(0x207)](_0x267fa5,_0x58bdf8=>{const _0x11eadb=_0x1ca281;_0x58bdf8&&logger['warn'](_0x11eadb(0x15b)+_0x267fa5);}),_0x1e09b2[_0x1ca281(0x1d7)](_0xe5b05c,_0x166e4e)):(logger['warn'](_0x1ca281(0x18e)+_0x9c11a0[_0x1ca281(0x1fc)]),fs[_0x1ca281(0x207)](_0x153d4c,()=>{}),_0x1e09b2[_0x1ca281(0x19f)](_0x2b6309,_0x9c11a0));}else fs['unlink'](_0x153d4c,()=>{}),_0x1e09b2[_0x1ca281(0x1d4)](_0x2b6309,_0x9c11a0);}),_0x1c29b6['openReadStream'](_0x1619c1,function(_0x154ded,_0x126700){const _0x275a13=_0x5140eb,_0x9fb002={};_0x9fb002['CQVoG']=_0x532303[_0x275a13(0x132)];const _0x97623a=_0x9fb002;if(_0x154ded){fs[_0x275a13(0x207)](_0x153d4c,()=>{}),_0x532303[_0x275a13(0x1f1)](_0x2b6309,_0x154ded);return;}_0x126700['on'](_0x532303[_0x275a13(0x1b0)],function(){_0x11d95f['end'](),_0x11d95f['on'](_0x97623a['CQVoG'],function(){const _0x29d366=a68_0x4258;_0x1c29b6[_0x29d366(0x1d6)]();});}),_0x126700[_0x275a13(0x205)](_0x11d95f);});}}),_0x1c29b6['on'](_0x5ee807['AtvzI'],_0x14d60b=>{const _0x3c6aa6=_0x780fa1;_0x1e09b2[_0x3c6aa6(0x203)](_0x2b6309,_0x14d60b);}),_0x1c29b6['once'](_0x5ee807[_0x780fa1(0x1cd)],()=>{const _0x284e59=_0x780fa1;fs[_0x284e59(0x207)](_0x267fa5,_0x22341f=>{const _0x6de69=_0x284e59;_0x22341f&&logger[_0x6de69(0x158)](_0x6de69(0x15b)+_0x267fa5);});const _0x3aaa58=path['join'](_0xd8781,_0x10a869+'.tmp.'+process[_0x284e59(0x16d)]),_0xd83820=path[_0x284e59(0x1ea)](_0xd8781,_0x10a869);fs['chmod'](_0x3aaa58,_0x1e09b2[_0x284e59(0x204)],function(_0x5a8fb9){const _0xc43dcd=_0x284e59,_0x5d3a8d={'cMCcn':function(_0x590eb2,_0x2b632d){const _0x174706=a68_0x4258;return _0x1e09b2[_0x174706(0x1db)](_0x590eb2,_0x2b632d);},'SDPfZ':_0x1e09b2[_0xc43dcd(0x13d)],'NFFke':function(_0x29b34b,_0x139369){return _0x1e09b2['CcXyn'](_0x29b34b,_0x139369);},'DTzPE':function(_0x2bfc29,_0x432e4a){return _0x1e09b2['fuFop'](_0x2bfc29,_0x432e4a);}};if(_0x5a8fb9){_0x1c29b6[_0xc43dcd(0x1a9)](),fs['unlink'](_0x3aaa58,()=>{}),_0x1e09b2[_0xc43dcd(0x203)](_0x2b6309,_0x5a8fb9);return;}fs[_0xc43dcd(0x166)](_0x3aaa58,_0xd83820,function(_0x321092){const _0xdf15f6=_0xc43dcd;if(_0x321092){if(_0x5d3a8d[_0xdf15f6(0x1d1)](_0x321092[_0xdf15f6(0x19a)],_0x5d3a8d[_0xdf15f6(0x175)])){_0x1c29b6[_0xdf15f6(0x1a9)](),fs[_0xdf15f6(0x207)](_0x3aaa58,()=>{}),_0x5d3a8d[_0xdf15f6(0x1fe)](_0x2b6309,_0x321092);return;}logger[_0xdf15f6(0x158)](_0xdf15f6(0x148)+_0x321092[_0xdf15f6(0x1fc)]);try{fs[_0xdf15f6(0x1b3)](_0x3aaa58,_0xd83820);}catch(_0x31b605){_0x1c29b6[_0xdf15f6(0x1a9)](),fs['unlink'](_0x3aaa58,()=>{}),_0x5d3a8d[_0xdf15f6(0x142)](_0x2b6309,_0x31b605);return;}fs['unlink'](_0x3aaa58,_0x4b6622=>{const _0x18a5c3=_0xdf15f6;_0x4b6622&&logger[_0x18a5c3(0x158)](_0x18a5c3(0x13f)+_0x4b6622[_0x18a5c3(0x1fc)]);});}_0x1c29b6[_0xdf15f6(0x1a9)](),_0x5d3a8d[_0xdf15f6(0x1fe)](_0xe5b05c,_0xd83820);});});});});});}static['getTestFrameworkDetail'](){const _0x184ba1=a68_0x4b06c0;if(process[_0x184ba1(0x14a)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL'])return JSON['parse'](process[_0x184ba1(0x14a)][_0x184ba1(0x1f2)]);return this[_0x184ba1(0x173)];}static[a68_0x4b06c0(0x176)](){const _0x411f5d=a68_0x4b06c0;if(process[_0x411f5d(0x14a)][_0x411f5d(0x17f)])return JSON[_0x411f5d(0x16c)](process['env'][_0x411f5d(0x17f)]);return this[_0x411f5d(0x1f5)];}static[a68_0x4b06c0(0x1bc)](_0x363cb7,_0x16bc87){const _0x7e49be=a68_0x4b06c0,_0x4f9b2c={'QUwLV':_0x7e49be(0x15f),'FHyHF':function(_0x3fed48,_0x2845be){return _0x3fed48||_0x2845be;},'fjknk':function(_0x3863d4,_0x48b50a){return _0x3863d4(_0x48b50a);},'xOrxk':function(_0x2779a6,_0x31c762){return _0x2779a6(_0x31c762);}},_0x2b5d84=_0x4f9b2c[_0x7e49be(0x184)][_0x7e49be(0x1b8)]('|');let _0xa36c9d=0x0;while(!![]){switch(_0x2b5d84[_0xa36c9d++]){case'0':_0x4f9b2c[_0x7e49be(0x1e3)](!_0x363cb7,!_0x16bc87)&&logger[_0x7e49be(0x200)](_0x7e49be(0x19e)+_0x363cb7+_0x7e49be(0x1c6)+_0x16bc87);continue;case'1':process[_0x7e49be(0x14a)][_0x7e49be(0x17f)]=JSON[_0x7e49be(0x1c4)](this[_0x7e49be(0x1f5)]);continue;case'2':this[_0x7e49be(0x173)]={'name':_0x363cb7,'version':{[_0x363cb7]:_0x4f9b2c[_0x7e49be(0x1bf)](getFrameworkVersion,_0x363cb7)}};continue;case'3':process[_0x7e49be(0x14a)][_0x7e49be(0x1f2)]=JSON[_0x7e49be(0x1c4)](this[_0x7e49be(0x173)]);continue;case'4':this[_0x7e49be(0x1f5)]={'name':_0x16bc87,'version':_0x4f9b2c['xOrxk'](getFrameworkVersion,_0x16bc87)};continue;}break;}}static[a68_0x4b06c0(0x172)](_0x1a2210,_0x2eb45c){return _0x1a2210+':'+_0x2eb45c;}static[a68_0x4b06c0(0x134)](){const _0x3b4e4c=a68_0x4b06c0;return process[_0x3b4e4c(0x16d)]+':'+threadId;}static[a68_0x4b06c0(0x179)](_0x4553d9){const _0x32fa49=a68_0x4b06c0;if(_0x4553d9[_0x32fa49(0x1ab)]&&_0x4553d9[_0x32fa49(0x1ab)][_0x32fa49(0x171)])return!![];return![];}static[a68_0x4b06c0(0x20e)](_0x5cf0a7){const _0x147167=a68_0x4b06c0;if(_0x5cf0a7[_0x147167(0x1ab)]&&_0x5cf0a7[_0x147167(0x1ab)]['skipSessionStatus'])return!![];return![];}static['matchHookRegex'](_0x4abc6c){const _0x1a9383=new RegExp(TestFrameworkConstants['HOOK_REGEX']);return _0x1a9383['test'](_0x4abc6c);}static[a68_0x4b06c0(0x15a)](_0x3f9bec,_0x6670f5){const _0x1dca46=a68_0x4b06c0,_0x538c59={};_0x538c59[_0x1dca46(0x17b)]=function(_0x285a5e,_0x37823f){return _0x285a5e!==_0x37823f;},_0x538c59[_0x1dca46(0x1dc)]=function(_0x20a282,_0x370674){return _0x20a282===_0x370674;},_0x538c59[_0x1dca46(0x206)]=_0x1dca46(0x1f0);const _0x3983a6=_0x538c59;for(const [_0x40cc71,_0x2e416a]of Object[_0x1dca46(0x137)](_0x6670f5)){if(_0x3983a6[_0x1dca46(0x17b)](_0x2e416a,null)&&_0x3983a6[_0x1dca46(0x1dc)](typeof _0x2e416a,_0x3983a6['AlvvO'])&&!Array[_0x1dca46(0x1e2)](_0x2e416a))_0x3f9bec[_0x40cc71]=this[_0x1dca46(0x15a)](_0x3f9bec[_0x40cc71]||{},_0x2e416a);else Array[_0x1dca46(0x1e2)](_0x2e416a)?_0x3f9bec[_0x40cc71]=(_0x3f9bec[_0x40cc71]||[])[_0x1dca46(0x20f)](_0x2e416a):_0x3f9bec[_0x40cc71]=_0x2e416a;}return _0x3f9bec;}}module[a68_0x4b06c0(0x162)]=CLIUtils;
@@ -1 +1 @@
1
- 'use strict';const a69_0x50e34e=a69_0x111a;(function(_0x356191,_0x1a2e44){const _0x4f1858=a69_0x111a,_0x13cfcf=_0x356191();while(!![]){try{const _0x2d5607=parseInt(_0x4f1858(0x195))/0x1+-parseInt(_0x4f1858(0x15c))/0x2*(parseInt(_0x4f1858(0x156))/0x3)+-parseInt(_0x4f1858(0x161))/0x4*(parseInt(_0x4f1858(0x169))/0x5)+-parseInt(_0x4f1858(0x15d))/0x6*(-parseInt(_0x4f1858(0x159))/0x7)+parseInt(_0x4f1858(0x160))/0x8*(parseInt(_0x4f1858(0x190))/0x9)+parseInt(_0x4f1858(0x179))/0xa+parseInt(_0x4f1858(0x19b))/0xb*(-parseInt(_0x4f1858(0x165))/0xc);if(_0x2d5607===_0x1a2e44)break;else _0x13cfcf['push'](_0x13cfcf['shift']());}catch(_0x9ce4e8){_0x13cfcf['push'](_0x13cfcf['shift']());}}}(a69_0x43cd,0x7c335));function a69_0x111a(_0x1e534c,_0x521468){const _0x43cdd2=a69_0x43cd();return a69_0x111a=function(_0x111ab5,_0x128e24){_0x111ab5=_0x111ab5-0x153;let _0x30a1cb=_0x43cdd2[_0x111ab5];return _0x30a1cb;},a69_0x111a(_0x1e534c,_0x521468);}const BrowserstackCLI=require(a69_0x50e34e(0x19d)),helper=require('../../helpers/helper'),AutomationFramework=require('./framework/automationFramework'),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),PlaywrightDriverModule=require('./modules/playwrightDriverModule'),TestInfo=require('./TestInfo'),TestHubModule=require(a69_0x50e34e(0x171)),{createClassLogger}=require('../../helpers/classLogger'),logger=createClassLogger(a69_0x50e34e(0x172));function a69_0x43cd(){const _0x20a84d=['zpFjT','trim','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','vXKUC','Custom\x20tag\x20key\x20must\x20be\x20a\x20string','7470RwckTK','KEY_TEST_ID','getTestDetails','dEVDI','[CustomTagManager]\x20setCustomTags:\x20Updated\x20existing\x20tag\x20key=','323209MyjkWQ','toLowerCase','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20',',\x20finalTags=','iQevC','getTestFrameworkDetail','110uSPzPg','testInfo','./browserstackCLI','setTestDetails','./cliUtils','YzcKS','modules','testhubConfig','__jestCurrentTestIdentifier','qUbhl','multi_dropdown','DGwZQ',',\x20existingTags=','CxAwT','rAXnF','3639eXcPUj','\x20with\x20values=','KEY_CUSTOM_TAGS','7rVfcQF','POST','getTestIdentifierFromTestInfo','122wfPfBA','4815258Vjohyd',':jest-','getTrackedInstance','4184KMoSFg','275508VvwbcJ','iaJba','getTestFramework','./state/testFrameworkState','1694676gmtQOA','values','buildLevelTags','getAllData','40gwqSAk','field_type','./state/hookState','getInstance','retry','getState','tiMiW','parseCommaSeparatedValues','./modules/testhubModule','CustomTagManager','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','MODULE_NAME','getTestUUID','debug','get','VeKER','9861220lJjpOz','currentTest','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','TEST','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','includes','XtUWF','KCsUb','getTestLevelTags',',\x20key=','Custom\x20tag\x20value\x20must\x20be\x20a\x20string','\x20with\x20new\x20values=','getBuildLevelTags','mNeog','testLevelTags','__workerDetails','ozkDi','stringify'];a69_0x43cd=function(){return _0x20a84d;};return a69_0x43cd();}class CustomTagManager{static ['buildLevelTags']={};static [a69_0x50e34e(0x187)]={};static['setCustomTags'](_0x4d5749,_0x69ecf,_0x4ec92f=![]){const _0x51c1bb=a69_0x50e34e,_0x1a5ab1={'VeKER':function(_0x2b9aff,_0x1759a1){return _0x2b9aff!==_0x1759a1;},'YzcKS':'string','rAXnF':_0x51c1bb(0x18f),'dEVDI':_0x51c1bb(0x183),'DGwZQ':function(_0x8c5424,_0x2873d1){return _0x8c5424===_0x2873d1;},'ozkDi':'Custom\x20tag\x20key\x20cannot\x20be\x20empty','CxAwT':'Custom\x20tag\x20value\x20cannot\x20be\x20empty','mNeog':_0x51c1bb(0x1a5),'XtUWF':_0x51c1bb(0x15e),'iaJba':function(_0x336f98,_0x533daf){return _0x336f98(_0x533daf);},'zpFjT':_0x51c1bb(0x19f),'uYbpY':'jest','tiMiW':_0x51c1bb(0x18d),'qUbhl':_0x51c1bb(0x17d),'iQevC':_0x51c1bb(0x164),'vXKUC':_0x51c1bb(0x16b),'KCsUb':_0x51c1bb(0x173)};if(_0x1a5ab1[_0x51c1bb(0x178)](typeof _0x4d5749,_0x1a5ab1[_0x51c1bb(0x1a0)]))throw new Error(_0x1a5ab1[_0x51c1bb(0x155)]);if(_0x1a5ab1[_0x51c1bb(0x178)](typeof _0x69ecf,_0x1a5ab1[_0x51c1bb(0x1a0)]))throw new Error(_0x1a5ab1[_0x51c1bb(0x193)]);if(_0x1a5ab1['DGwZQ'](_0x4d5749[_0x51c1bb(0x18c)](),''))throw new Error(_0x1a5ab1[_0x51c1bb(0x189)]);if(_0x1a5ab1[_0x51c1bb(0x1a6)](_0x69ecf[_0x51c1bb(0x18c)](),''))throw new Error(_0x1a5ab1[_0x51c1bb(0x154)]);const _0x29d609=helper[_0x51c1bb(0x170)](_0x69ecf);if(_0x4ec92f){const _0x16ef7e=BrowserstackCLI[_0x51c1bb(0x16c)]()[_0x51c1bb(0x1a1)][TestHubModule[_0x51c1bb(0x174)]];if(_0x16ef7e){const _0x536177=_0x16ef7e?.[_0x51c1bb(0x1a2)]?.['toObject']()?.['buildHashedId'];TestInfo[_0x51c1bb(0x175)](_0x536177);const _0x52ee17=TestInfo[_0x51c1bb(0x192)](_0x536177),_0x547e90=_0x52ee17[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};if(!_0x547e90[_0x4d5749]){const _0x1cda0e={};_0x1cda0e[_0x51c1bb(0x16a)]=_0x1a5ab1[_0x51c1bb(0x186)],_0x1cda0e[_0x51c1bb(0x166)]=[..._0x29d609],_0x547e90[_0x4d5749]=_0x1cda0e;}else _0x547e90[_0x4d5749]['values']=[..._0x29d609];_0x52ee17[TestFrameworkConstants[_0x51c1bb(0x158)]]=_0x547e90,TestInfo[_0x51c1bb(0x19e)](_0x536177,_0x52ee17),!this[_0x51c1bb(0x167)][_0x536177]&&(this[_0x51c1bb(0x167)][_0x536177]={}),this['buildLevelTags'][_0x536177][_0x4d5749]=[..._0x29d609];}}else{let _0x172b93;const _0x1a2523=global[_0x51c1bb(0x1a3)];let _0x1ea4d8=![];if(_0x1a2523&&_0x1a2523[_0x51c1bb(0x17e)](_0x1a5ab1[_0x51c1bb(0x17f)]))_0x1ea4d8=!![],_0x172b93=_0x1a2523;else try{const _0x79891d=_0x1a5ab1[_0x51c1bb(0x162)](require,_0x1a5ab1[_0x51c1bb(0x18b)]);if(BrowserstackCLI['getInstance']()['isRunning']()){const _0x8509e0=_0x79891d[_0x51c1bb(0x19a)]();if(_0x1a5ab1[_0x51c1bb(0x1a6)](_0x8509e0?.['name']?.[_0x51c1bb(0x196)](),_0x1a5ab1['uYbpY'])){const _0x3cea44=AutomationFramework[_0x51c1bb(0x15f)]();_0x172b93=AutomationFramework['getState'](_0x3cea44,PlaywrightDriverModule['KEY_TEST_ID'],''),_0x172b93&&_0x172b93[_0x51c1bb(0x17e)](_0x1a5ab1['XtUWF'])&&(_0x1ea4d8=!![]);}}}catch(_0x2b4646){logger[_0x51c1bb(0x176)](_0x51c1bb(0x197)+_0x2b4646);}if(_0x1ea4d8){if(!_0x172b93)throw new Error(_0x1a5ab1[_0x51c1bb(0x16f)]);const _0x150b45=BrowserstackCLI[_0x51c1bb(0x16c)]()[_0x51c1bb(0x163)]();if(!_0x150b45)throw new Error(_0x1a5ab1[_0x51c1bb(0x1a4)]);const _0x2d01eb=_0x1a5ab1['iaJba'](require,_0x1a5ab1[_0x51c1bb(0x199)]),_0xfb14d5=_0x1a5ab1[_0x51c1bb(0x162)](require,_0x1a5ab1[_0x51c1bb(0x18e)]),_0x598bf9=_0x150b45['resolveInstance'](_0x2d01eb[_0x51c1bb(0x17c)],_0xfb14d5[_0x51c1bb(0x15a)]);if(!_0x598bf9)throw new Error(_0x1a5ab1[_0x51c1bb(0x180)]);const _0x4165de=_0x598bf9[_0x51c1bb(0x168)]()[_0x51c1bb(0x177)](_0x172b93)||{},_0x218bcd=_0x4165de[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};logger['debug'](_0x51c1bb(0x17b)+_0x172b93+_0x51c1bb(0x182)+_0x4d5749+',\x20values='+JSON[_0x51c1bb(0x18a)](_0x29d609)+_0x51c1bb(0x153)+JSON[_0x51c1bb(0x18a)](_0x218bcd));if(!_0x218bcd[_0x4d5749]){const _0x38b94d={};_0x38b94d[_0x51c1bb(0x16a)]=_0x1a5ab1[_0x51c1bb(0x186)],_0x38b94d['values']=[..._0x29d609],_0x218bcd[_0x4d5749]=_0x38b94d,logger[_0x51c1bb(0x176)]('[CustomTagManager]\x20setCustomTags:\x20Created\x20new\x20tag\x20key='+_0x4d5749+_0x51c1bb(0x157)+JSON[_0x51c1bb(0x18a)](_0x29d609));}else _0x218bcd[_0x4d5749][_0x51c1bb(0x166)]=[..._0x29d609],logger[_0x51c1bb(0x176)](_0x51c1bb(0x194)+_0x4d5749+_0x51c1bb(0x184)+JSON[_0x51c1bb(0x18a)](_0x29d609));const _0x416875={[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x218bcd},_0x118a57={};_0x118a57[_0x172b93]=_0x416875,_0x598bf9['addMultipleEntries'](_0x118a57),logger[_0x51c1bb(0x176)]('[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier='+_0x172b93+_0x51c1bb(0x198)+JSON[_0x51c1bb(0x18a)](_0x218bcd)),!this['testLevelTags'][_0x172b93]&&(this['testLevelTags'][_0x172b93]={}),this[_0x51c1bb(0x187)][_0x172b93][_0x4d5749]=[..._0x29d609];}else{const _0x411f1f=global[_0x51c1bb(0x188)]?.[_0x51c1bb(0x17a)]?.[_0x51c1bb(0x19c)];if(!_0x411f1f){const _0x1bf554=AutomationFramework[_0x51c1bb(0x15f)]();_0x172b93=AutomationFramework[_0x51c1bb(0x16e)](_0x1bf554,PlaywrightDriverModule[_0x51c1bb(0x191)],'');}else _0x172b93=TestInfo[_0x51c1bb(0x15b)](_0x411f1f,_0x411f1f[_0x51c1bb(0x16d)]);const _0x5ce4b0=TestInfo[_0x51c1bb(0x192)](_0x172b93),_0x438b0f=_0x5ce4b0[TestFrameworkConstants[_0x51c1bb(0x158)]]||{};if(!_0x438b0f[_0x4d5749]){const _0x2560c5={};_0x2560c5[_0x51c1bb(0x16a)]=_0x1a5ab1[_0x51c1bb(0x186)],_0x2560c5[_0x51c1bb(0x166)]=[..._0x29d609],_0x438b0f[_0x4d5749]=_0x2560c5;}else _0x438b0f[_0x4d5749]['values']=[..._0x29d609];_0x5ce4b0[TestFrameworkConstants[_0x51c1bb(0x158)]]=_0x438b0f,TestInfo[_0x51c1bb(0x19e)](_0x172b93,_0x5ce4b0),!this[_0x51c1bb(0x187)][_0x172b93]&&(this[_0x51c1bb(0x187)][_0x172b93]={}),this[_0x51c1bb(0x187)][_0x172b93][_0x4d5749]=[..._0x29d609];}}}static[a69_0x50e34e(0x185)](){const _0x317265=a69_0x50e34e,_0x31e705={...this[_0x317265(0x167)]};return _0x31e705;}static[a69_0x50e34e(0x181)](){const _0x285a53=a69_0x50e34e,_0x4755c8={...this[_0x285a53(0x187)]};return _0x4755c8;}static['clearTags'](){const _0x189d5e=a69_0x50e34e;this[_0x189d5e(0x167)]={},this[_0x189d5e(0x187)]={};}}module['exports']=CustomTagManager;
1
+ 'use strict';const a69_0x183d14=a69_0x5a4c;(function(_0x3ada21,_0x1ccafd){const _0x4e3780=a69_0x5a4c,_0x412997=_0x3ada21();while(!![]){try{const _0x3c928e=parseInt(_0x4e3780(0x1e9))/0x1*(-parseInt(_0x4e3780(0x1bb))/0x2)+parseInt(_0x4e3780(0x1c3))/0x3*(parseInt(_0x4e3780(0x1df))/0x4)+-parseInt(_0x4e3780(0x1ab))/0x5*(parseInt(_0x4e3780(0x1c4))/0x6)+parseInt(_0x4e3780(0x1cd))/0x7*(parseInt(_0x4e3780(0x1da))/0x8)+-parseInt(_0x4e3780(0x1d1))/0x9*(parseInt(_0x4e3780(0x1e4))/0xa)+parseInt(_0x4e3780(0x1fc))/0xb*(parseInt(_0x4e3780(0x1a9))/0xc)+-parseInt(_0x4e3780(0x1ac))/0xd*(-parseInt(_0x4e3780(0x1b6))/0xe);if(_0x3c928e===_0x1ccafd)break;else _0x412997['push'](_0x412997['shift']());}catch(_0xdb1c0c){_0x412997['push'](_0x412997['shift']());}}}(a69_0x3e1d,0x2110d));function a69_0x3e1d(){const _0x3290a3=['uhmUH','toLowerCase','clearTags','./framework/automationFramework','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','toObject','TEST','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','uehKt','43274tlTySB',':jest-','Custom\x20tag\x20value\x20must\x20be\x20a\x20string','values','testInfo','string','getInstance','buildLevelTags','yteMX','__jestCurrentTestIdentifier','getTrackedInstance','444tEfAaN','Custom\x20tag\x20key\x20must\x20be\x20a\x20string','43580EhNSxI','4069qFEdbX','tIfIy','xDsII','[CustomTagManager]\x20setCustomTags:\x20Updated\x20existing\x20tag\x20key=',',\x20finalTags=','\x20with\x20values=','Custom\x20tag\x20key\x20cannot\x20be\x20empty','TXWHD','../../helpers/classLogger','debug','7910mdrqnI','./modules/testhubModule','field_type',',\x20key=','DcCgb','11706xoueRk','getAllData','multi_dropdown','./state/testFrameworkState','\x20with\x20new\x20values=','jest','resolveInstance','nrZkO','63OGdjia','30iLwWgB','./cliUtils','SwRCt','getTestFramework','bsbVt','ARgBJ','Custom\x20tag\x20value\x20cannot\x20be\x20empty','KEY_TEST_ID','[CustomTagManager]\x20setCustomTags:\x20Created\x20new\x20tag\x20key=','405202TZhrhA','parseCommaSeparatedValues','uqPfB','getTestUUID','284805uqCKZM','WSYsJ','getTestDetails','pIoVs','POST','setCustomTags','getTestLevelTags','setTestDetails','currentTest','8wOaPjW','includes','DqeFJ','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','addMultipleEntries','13228uoMhMm',',\x20values=','testLevelTags','isRunning','JqXWz','80bwzjoT','getBuildLevelTags','modules','retry','trim','3rbEomD','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','adzpv','testhubConfig','KEY_CUSTOM_TAGS','buildHashedId','name','stringify','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','getState'];a69_0x3e1d=function(){return _0x3290a3;};return a69_0x3e1d();}function a69_0x5a4c(_0x42482a,_0x1160b9){const _0x3e1dcd=a69_0x3e1d();return a69_0x5a4c=function(_0x5a4cb3,_0x516806){_0x5a4cb3=_0x5a4cb3-0x1a4;let _0x43f229=_0x3e1dcd[_0x5a4cb3];return _0x43f229;},a69_0x5a4c(_0x42482a,_0x1160b9);}const BrowserstackCLI=require('./browserstackCLI'),helper=require('../../helpers/helper'),AutomationFramework=require(a69_0x183d14(0x1f6)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),PlaywrightDriverModule=require('./modules/playwrightDriverModule'),TestInfo=require('./TestInfo'),TestHubModule=require(a69_0x183d14(0x1b7)),{createClassLogger}=require(a69_0x183d14(0x1b4)),logger=createClassLogger('CustomTagManager');class CustomTagManager{static [a69_0x183d14(0x1a5)]={};static [a69_0x183d14(0x1e1)]={};static[a69_0x183d14(0x1d6)](_0x46f158,_0x191f25,_0x3032b4=![]){const _0x441d2b=a69_0x183d14,_0x235516={'pIoVs':function(_0x4e3354,_0x20f59e){return _0x4e3354!==_0x20f59e;},'uhmUH':_0x441d2b(0x201),'HmUvK':_0x441d2b(0x1aa),'tIfIy':function(_0xc3812d,_0x28d80c){return _0xc3812d!==_0x28d80c;},'dNGjW':_0x441d2b(0x1fe),'bsbVt':function(_0x251f80,_0x2a72f3){return _0x251f80===_0x2a72f3;},'uehKt':_0x441d2b(0x1b2),'nrZkO':_0x441d2b(0x1ca),'JqXWz':_0x441d2b(0x1bd),'xDsII':_0x441d2b(0x1fd),'DcCgb':function(_0x375237,_0x1de95b){return _0x375237(_0x1de95b);},'DqeFJ':_0x441d2b(0x1c5),'yteMX':_0x441d2b(0x1c0),'fIPit':_0x441d2b(0x1f7),'ARgBJ':_0x441d2b(0x1dd),'WSYsJ':function(_0x48e0d6,_0x349983){return _0x48e0d6(_0x349983);},'adzpv':_0x441d2b(0x1be),'TXWHD':function(_0x45782d,_0x587b00){return _0x45782d(_0x587b00);},'SwRCt':'./state/hookState','uqPfB':_0x441d2b(0x1f1)};if(_0x235516[_0x441d2b(0x1d4)](typeof _0x46f158,_0x235516[_0x441d2b(0x1f3)]))throw new Error(_0x235516['HmUvK']);if(_0x235516[_0x441d2b(0x1ad)](typeof _0x191f25,_0x235516[_0x441d2b(0x1f3)]))throw new Error(_0x235516['dNGjW']);if(_0x235516[_0x441d2b(0x1c8)](_0x46f158[_0x441d2b(0x1e8)](),''))throw new Error(_0x235516[_0x441d2b(0x1fb)]);if(_0x235516[_0x441d2b(0x1c8)](_0x191f25[_0x441d2b(0x1e8)](),''))throw new Error(_0x235516[_0x441d2b(0x1c2)]);const _0x4823a1=helper[_0x441d2b(0x1ce)](_0x191f25);if(_0x3032b4){const _0x159598=BrowserstackCLI[_0x441d2b(0x1a4)]()[_0x441d2b(0x1e6)][TestHubModule['MODULE_NAME']];if(_0x159598){const _0x2c2646=_0x159598?.[_0x441d2b(0x1ec)]?.[_0x441d2b(0x1f8)]()?.[_0x441d2b(0x1ee)];TestInfo[_0x441d2b(0x1d0)](_0x2c2646);const _0x2fdf83=TestInfo[_0x441d2b(0x1d3)](_0x2c2646),_0x73c2e1=_0x2fdf83[TestFrameworkConstants[_0x441d2b(0x1ed)]]||{};if(!_0x73c2e1[_0x46f158]){const _0x266345={};_0x266345[_0x441d2b(0x1b8)]=_0x235516[_0x441d2b(0x1e3)],_0x266345[_0x441d2b(0x1ff)]=[..._0x4823a1],_0x73c2e1[_0x46f158]=_0x266345;}else _0x73c2e1[_0x46f158][_0x441d2b(0x1ff)]=[..._0x4823a1];_0x2fdf83[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x73c2e1,TestInfo[_0x441d2b(0x1d8)](_0x2c2646,_0x2fdf83),!this['buildLevelTags'][_0x2c2646]&&(this[_0x441d2b(0x1a5)][_0x2c2646]={}),this[_0x441d2b(0x1a5)][_0x2c2646][_0x46f158]=[..._0x4823a1];}}else{let _0x2b405c;const _0x5d5351=global[_0x441d2b(0x1a7)];let _0x2929b9=![];if(_0x5d5351&&_0x5d5351[_0x441d2b(0x1db)](_0x235516[_0x441d2b(0x1ae)]))_0x2929b9=!![],_0x2b405c=_0x5d5351;else try{const _0x2adc1a=_0x235516[_0x441d2b(0x1ba)](require,_0x235516[_0x441d2b(0x1dc)]);if(BrowserstackCLI[_0x441d2b(0x1a4)]()[_0x441d2b(0x1e2)]()){const _0x5e6901=_0x2adc1a['getTestFrameworkDetail']();if(_0x235516[_0x441d2b(0x1c8)](_0x5e6901?.[_0x441d2b(0x1ef)]?.[_0x441d2b(0x1f4)](),_0x235516[_0x441d2b(0x1a6)])){const _0x2eb2fa=AutomationFramework[_0x441d2b(0x1a8)]();_0x2b405c=AutomationFramework[_0x441d2b(0x1f2)](_0x2eb2fa,PlaywrightDriverModule[_0x441d2b(0x1cb)],''),_0x2b405c&&_0x2b405c['includes'](_0x235516[_0x441d2b(0x1ae)])&&(_0x2929b9=!![]);}}}catch(_0x580e5f){logger[_0x441d2b(0x1b5)](_0x441d2b(0x1fa)+_0x580e5f);}if(_0x2929b9){if(!_0x2b405c)throw new Error(_0x235516['fIPit']);const _0x24b2b8=BrowserstackCLI[_0x441d2b(0x1a4)]()[_0x441d2b(0x1c7)]();if(!_0x24b2b8)throw new Error(_0x235516[_0x441d2b(0x1c9)]);const _0x4bc052=_0x235516[_0x441d2b(0x1d2)](require,_0x235516[_0x441d2b(0x1eb)]),_0x22ab05=_0x235516[_0x441d2b(0x1b3)](require,_0x235516[_0x441d2b(0x1c6)]),_0x2990b0=_0x24b2b8[_0x441d2b(0x1c1)](_0x4bc052[_0x441d2b(0x1f9)],_0x22ab05[_0x441d2b(0x1d5)]);if(!_0x2990b0)throw new Error(_0x235516[_0x441d2b(0x1cf)]);const _0x47b5f7=_0x2990b0[_0x441d2b(0x1bc)]()['get'](_0x2b405c)||{},_0x2ae45c=_0x47b5f7[TestFrameworkConstants[_0x441d2b(0x1ed)]]||{};logger[_0x441d2b(0x1b5)](_0x441d2b(0x1ea)+_0x2b405c+_0x441d2b(0x1b9)+_0x46f158+_0x441d2b(0x1e0)+JSON['stringify'](_0x4823a1)+',\x20existingTags='+JSON['stringify'](_0x2ae45c));if(!_0x2ae45c[_0x46f158]){const _0x567271={};_0x567271['field_type']=_0x235516[_0x441d2b(0x1e3)],_0x567271[_0x441d2b(0x1ff)]=[..._0x4823a1],_0x2ae45c[_0x46f158]=_0x567271,logger[_0x441d2b(0x1b5)](_0x441d2b(0x1cc)+_0x46f158+_0x441d2b(0x1b1)+JSON['stringify'](_0x4823a1));}else _0x2ae45c[_0x46f158][_0x441d2b(0x1ff)]=[..._0x4823a1],logger['debug'](_0x441d2b(0x1af)+_0x46f158+_0x441d2b(0x1bf)+JSON[_0x441d2b(0x1f0)](_0x4823a1));const _0x939374={[TestFrameworkConstants[_0x441d2b(0x1ed)]]:_0x2ae45c},_0x433180={};_0x433180[_0x2b405c]=_0x939374,_0x2990b0[_0x441d2b(0x1de)](_0x433180),logger[_0x441d2b(0x1b5)]('[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier='+_0x2b405c+_0x441d2b(0x1b0)+JSON['stringify'](_0x2ae45c)),!this[_0x441d2b(0x1e1)][_0x2b405c]&&(this[_0x441d2b(0x1e1)][_0x2b405c]={}),this[_0x441d2b(0x1e1)][_0x2b405c][_0x46f158]=[..._0x4823a1];}else{const _0x35b9fe=global['__workerDetails']?.[_0x441d2b(0x1d9)]?.[_0x441d2b(0x200)];if(!_0x35b9fe){const _0x3b6a18=AutomationFramework[_0x441d2b(0x1a8)]();_0x2b405c=AutomationFramework[_0x441d2b(0x1f2)](_0x3b6a18,PlaywrightDriverModule[_0x441d2b(0x1cb)],'');}else _0x2b405c=TestInfo['getTestIdentifierFromTestInfo'](_0x35b9fe,_0x35b9fe[_0x441d2b(0x1e7)]);const _0x4255b2=TestInfo[_0x441d2b(0x1d3)](_0x2b405c),_0x1c7c99=_0x4255b2[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};if(!_0x1c7c99[_0x46f158]){const _0x2b2de8={};_0x2b2de8[_0x441d2b(0x1b8)]=_0x235516[_0x441d2b(0x1e3)],_0x2b2de8['values']=[..._0x4823a1],_0x1c7c99[_0x46f158]=_0x2b2de8;}else _0x1c7c99[_0x46f158][_0x441d2b(0x1ff)]=[..._0x4823a1];_0x4255b2[TestFrameworkConstants[_0x441d2b(0x1ed)]]=_0x1c7c99,TestInfo[_0x441d2b(0x1d8)](_0x2b405c,_0x4255b2),!this[_0x441d2b(0x1e1)][_0x2b405c]&&(this[_0x441d2b(0x1e1)][_0x2b405c]={}),this[_0x441d2b(0x1e1)][_0x2b405c][_0x46f158]=[..._0x4823a1];}}}static[a69_0x183d14(0x1e5)](){const _0x141bfe=a69_0x183d14,_0x31d056={...this[_0x141bfe(0x1a5)]};return _0x31d056;}static[a69_0x183d14(0x1d7)](){const _0x536def={...this['testLevelTags']};return _0x536def;}static[a69_0x183d14(0x1f5)](){const _0x3b956c=a69_0x183d14;this[_0x3b956c(0x1a5)]={},this[_0x3b956c(0x1e1)]={};}}module['exports']=CustomTagManager;
@@ -1 +1 @@
1
- const a70_0x4adc00=a70_0x1bb8;(function(_0x56cad7,_0x4ed9d2){const _0x2638e9=a70_0x1bb8,_0x354dfd=_0x56cad7();while(!![]){try{const _0xbd0c99=-parseInt(_0x2638e9(0x1c7))/0x1+parseInt(_0x2638e9(0x1cc))/0x2*(parseInt(_0x2638e9(0x1c5))/0x3)+parseInt(_0x2638e9(0x1c0))/0x4+parseInt(_0x2638e9(0x1ca))/0x5+-parseInt(_0x2638e9(0x1cd))/0x6*(-parseInt(_0x2638e9(0x1c8))/0x7)+-parseInt(_0x2638e9(0x1be))/0x8*(-parseInt(_0x2638e9(0x1c4))/0x9)+-parseInt(_0x2638e9(0x1bf))/0xa;if(_0xbd0c99===_0x4ed9d2)break;else _0x354dfd['push'](_0x354dfd['shift']());}catch(_0x2628d2){_0x354dfd['push'](_0x354dfd['shift']());}}}(a70_0x5aff,0x60b77));const {createClassLogger}=require(a70_0x4adc00(0x1c3));function a70_0x1bb8(_0x4cb3bb,_0x229cfe){const _0x5afff5=a70_0x5aff();return a70_0x1bb8=function(_0x1bb864,_0x198002){_0x1bb864=_0x1bb864-0x1be;let _0x23517d=_0x5afff5[_0x1bb864];return _0x23517d;},a70_0x1bb8(_0x4cb3bb,_0x229cfe);}class EventDispatcher{static #instance=null;constructor(){const _0x137e69=a70_0x4adc00;this[_0x137e69(0x1c9)]={};}static[a70_0x4adc00(0x1c6)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}['registerObserver'](_0x3b4094,_0x1a80a7){const _0x3405d8=a70_0x4adc00;!this[_0x3405d8(0x1c9)][_0x3b4094]&&(this[_0x3405d8(0x1c9)][_0x3b4094]=[]),this['observers'][_0x3b4094][_0x3405d8(0x1c2)](_0x1a80a7);}async[a70_0x4adc00(0x1c1)](_0x50a8dc,_0x1cecbd){const _0x2c6a22=a70_0x4adc00,_0x4d812c={'JcWyC':function(_0x363e5b,_0x553ef2){return _0x363e5b(_0x553ef2);}};if(this[_0x2c6a22(0x1c9)][_0x50a8dc]){for(const _0x5c203 of this['observers'][_0x50a8dc]){await _0x4d812c['JcWyC'](_0x5c203,_0x1cecbd);}return;}}}const eventDispatcher=EventDispatcher[a70_0x4adc00(0x1c6)]();Object['freeze'](eventDispatcher),module[a70_0x4adc00(0x1cb)]=eventDispatcher;function a70_0x5aff(){const _0x1a42ac=['6282380NTutpW','2077396xhJttS','notifyObserver','push','../../helpers/classLogger.js','45ANKVuV','6WdrZMI','getInstance','187755ydZfOv','98bnCLRJ','observers','1516115ifTkYo','exports','245716jlNWrB','21804HFyqmY','148768cWbVii'];a70_0x5aff=function(){return _0x1a42ac;};return a70_0x5aff();}
1
+ const a70_0x5bc78d=a70_0x1911;function a70_0x2704(){const _0x229482=['notifyObserver','registerObserver','24225IoyTsq','exports','4570OGXzCP','16797ThRkzv','5578461NpIamQ','8SEQdwz','tDvnB','930DrSRrU','34392czeEeI','freeze','152GtivYy','getInstance','933450FKURKe','700844optfBX','../../helpers/classLogger.js','observers','53434YpPKzO'];a70_0x2704=function(){return _0x229482;};return a70_0x2704();}(function(_0x28ca9b,_0x41222d){const _0x1af4d7=a70_0x1911,_0xdb1378=_0x28ca9b();while(!![]){try{const _0x51ea8e=-parseInt(_0x1af4d7(0xd3))/0x1+parseInt(_0x1af4d7(0xd0))/0x2+-parseInt(_0x1af4d7(0xcb))/0x3*(parseInt(_0x1af4d7(0xcd))/0x4)+parseInt(_0x1af4d7(0xd6))/0x5*(-parseInt(_0x1af4d7(0xca))/0x6)+parseInt(_0x1af4d7(0xcf))/0x7*(parseInt(_0x1af4d7(0xc8))/0x8)+parseInt(_0x1af4d7(0xc7))/0x9+parseInt(_0x1af4d7(0xd8))/0xa*(parseInt(_0x1af4d7(0xd9))/0xb);if(_0x51ea8e===_0x41222d)break;else _0xdb1378['push'](_0xdb1378['shift']());}catch(_0x4f2fe7){_0xdb1378['push'](_0xdb1378['shift']());}}}(a70_0x2704,0x890f7));const {createClassLogger}=require(a70_0x5bc78d(0xd1));function a70_0x1911(_0x27ec45,_0x4644bf){const _0x270403=a70_0x2704();return a70_0x1911=function(_0x19111a,_0x49cc12){_0x19111a=_0x19111a-0xc7;let _0x7eff2c=_0x270403[_0x19111a];return _0x7eff2c;},a70_0x1911(_0x27ec45,_0x4644bf);}class EventDispatcher{static #instance=null;constructor(){const _0x2a7fd9=a70_0x5bc78d;this[_0x2a7fd9(0xd2)]={};}static[a70_0x5bc78d(0xce)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a70_0x5bc78d(0xd5)](_0x5a28c3,_0x3e1b8d){const _0x5af685=a70_0x5bc78d;!this['observers'][_0x5a28c3]&&(this[_0x5af685(0xd2)][_0x5a28c3]=[]),this[_0x5af685(0xd2)][_0x5a28c3]['push'](_0x3e1b8d);}async[a70_0x5bc78d(0xd4)](_0x5f061b,_0x2d43de){const _0x804f7f=a70_0x5bc78d,_0x515ae3={'tDvnB':function(_0x51c5b7,_0x5d59ae){return _0x51c5b7(_0x5d59ae);}};if(this[_0x804f7f(0xd2)][_0x5f061b]){for(const _0x2525d3 of this['observers'][_0x5f061b]){await _0x515ae3[_0x804f7f(0xc9)](_0x2525d3,_0x2d43de);}return;}}}const eventDispatcher=EventDispatcher['getInstance']();Object[a70_0x5bc78d(0xcc)](eventDispatcher),module[a70_0x5bc78d(0xd7)]=eventDispatcher;
@@ -1 +1 @@
1
- function a71_0x4818(_0xceaf1,_0x391678){const _0x5ac480=a71_0x5ac4();return a71_0x4818=function(_0x4818d9,_0x227f33){_0x4818d9=_0x4818d9-0x1aa;let _0x39f96d=_0x5ac480[_0x4818d9];return _0x39f96d;},a71_0x4818(_0xceaf1,_0x391678);}const a71_0x305a34=a71_0x4818;function a71_0x5ac4(){const _0x3920e3=['KEY_AUTOMATION_SESSIONS','312456YNQEKy','getState','50AEOlCm','debug','notifyObserver','set','5396844lrAItk','getHookRegistryKey','setState','util','2997978hYTVVC','279356uRDrem','../eventDispatcher.js','131787ziZsSx','../../../helpers/classLogger.js','runHooks','../instances/trackedInstance.js','automationFrameworkName','trackEvent:\x20automationFrameworkState=','5NPUAHH','\x20hookState=','exports','25391LrJapJ','2013532RfSWjl','getAutomationFrameworkName','AutomationFramework','instances','getAllData','setTrackedInstance','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','getId','automation_sessions','68frKRcc','registerObserver','automationFrameworkVersion','getCurrentInstanceName','get'];a71_0x5ac4=function(){return _0x3920e3;};return a71_0x5ac4();}(function(_0x4c43ae,_0x16eba6){const _0x48eca1=a71_0x4818,_0x1a505f=_0x4c43ae();while(!![]){try{const _0xd78013=-parseInt(_0x48eca1(0x1b2))/0x1*(-parseInt(_0x48eca1(0x1bc))/0x2)+parseInt(_0x48eca1(0x1cc))/0x3+parseInt(_0x48eca1(0x1b3))/0x4*(-parseInt(_0x48eca1(0x1af))/0x5)+-parseInt(_0x48eca1(0x1c8))/0x6+parseInt(_0x48eca1(0x1cd))/0x7+parseInt(_0x48eca1(0x1c2))/0x8+parseInt(_0x48eca1(0x1cf))/0x9*(parseInt(_0x48eca1(0x1c4))/0xa);if(_0xd78013===_0x16eba6)break;else _0x1a505f['push'](_0x1a505f['shift']());}catch(_0x41febe){_0x1a505f['push'](_0x1a505f['shift']());}}}(a71_0x5ac4,0x95667));const {createClassLogger}=require(a71_0x305a34(0x1aa)),util=require(a71_0x305a34(0x1cb)),eventDispatcher=require(a71_0x305a34(0x1ce)),CLIUtils=require('../cliUtils.js'),TrackedInstance=require(a71_0x305a34(0x1ac)),logger=createClassLogger(a71_0x305a34(0x1b5));class AutomationFramework{static [a71_0x305a34(0x1b6)]=new Map();static [a71_0x305a34(0x1c1)]=a71_0x305a34(0x1bb);static [a71_0x305a34(0x1b9)]='non_browserstack_automation_sessions';constructor(_0x5c1beb,_0xe55e70){const _0x4151e6=a71_0x305a34;this[_0x4151e6(0x1ad)]=_0x5c1beb,this[_0x4151e6(0x1be)]=_0xe55e70;}[a71_0x305a34(0x1b4)](){return this['automationFrameworkName'];}['getAutomationFrameworkVersion'](){return this['automationFrameworkVersion'];}async['trackEvent'](_0x185a97,_0x8481fd,_0x575400={}){const _0x5590d9=a71_0x305a34;logger[_0x5590d9(0x1c5)](_0x5590d9(0x1ae)+_0x185a97+_0x5590d9(0x1b0)+_0x8481fd);}async[a71_0x305a34(0x1ab)](_0x1d6036,_0x3c1935,_0x4092a7,_0x55b0b1={}){const _0x3f3f5d=a71_0x305a34,_0x525e6a=CLIUtils[_0x3f3f5d(0x1c9)](_0x3c1935,_0x4092a7);_0x1d6036&&_0x1d6036[_0x3f3f5d(0x1ca)](_0x3c1935),await eventDispatcher[_0x3f3f5d(0x1c6)](_0x525e6a,_0x55b0b1);}static[a71_0x305a34(0x1bd)](_0x38c1c2,_0x2661a9,_0x597f79){const _0x3cf530=a71_0x305a34;eventDispatcher[_0x3cf530(0x1bd)](CLIUtils[_0x3cf530(0x1c9)](_0x38c1c2,_0x2661a9),_0x597f79);}static[a71_0x305a34(0x1b8)](_0xba6367,_0x673f58){const _0x52f04e=a71_0x305a34;AutomationFramework['instances'][_0x52f04e(0x1c7)](_0xba6367[_0x52f04e(0x1ba)](),_0x673f58);}static['getTrackedInstance'](){const _0x108862=a71_0x305a34,_0x3fa11b=TrackedInstance['createContext'](CLIUtils[_0x108862(0x1bf)]());return AutomationFramework[_0x108862(0x1b6)]['get'](_0x3fa11b[_0x108862(0x1ba)]());}static[a71_0x305a34(0x1ca)](_0x6a7ef5,_0x58f6df,_0x15d17a){const _0x57ac98=a71_0x305a34;_0x6a7ef5[_0x57ac98(0x1b7)]()[_0x57ac98(0x1c7)](_0x58f6df,_0x15d17a);}static[a71_0x305a34(0x1c3)](_0x599636,_0x16b244){const _0x44a6c1=a71_0x305a34;return _0x599636['getAllData']()[_0x44a6c1(0x1c0)](_0x16b244);}}module[a71_0x305a34(0x1b1)]=AutomationFramework;
1
+ const a71_0xc0030d=a71_0x2403;function a71_0x4744(){const _0x4693d5=['508589SJgIaV','instances','createContext','automationFrameworkVersion','2495484jBoEqj','setTrackedInstance','runHooks','exports','non_browserstack_automation_sessions','KEY_AUTOMATION_SESSIONS','4816524OgiVBr','3228281DzXxHw','AutomationFramework','../../../helpers/classLogger.js','getHookRegistryKey','getAllData','automationFrameworkName','377560isXqiX','getId','../cliUtils.js','registerObserver','getTrackedInstance','getCurrentInstanceName','get','132sDCAaz','setState','\x20hookState=','notifyObserver','../instances/trackedInstance.js','set','30IkQsoy','45310woFgMr','getAutomationFrameworkVersion','28286BHeVVJ','80AOKCGD','automation_sessions'];a71_0x4744=function(){return _0x4693d5;};return a71_0x4744();}(function(_0x341065,_0x6e2b58){const _0xd50b49=a71_0x2403,_0x28583f=_0x341065();while(!![]){try{const _0x47c570=parseInt(_0xd50b49(0xe8))/0x1+-parseInt(_0xd50b49(0xe5))/0x2*(-parseInt(_0xd50b49(0xdc))/0x3)+parseInt(_0xd50b49(0xe6))/0x4*(-parseInt(_0xd50b49(0xe3))/0x5)+parseInt(_0xd50b49(0xf2))/0x6+-parseInt(_0xd50b49(0xf3))/0x7+-parseInt(_0xd50b49(0xd5))/0x8+parseInt(_0xd50b49(0xec))/0x9*(-parseInt(_0xd50b49(0xe2))/0xa);if(_0x47c570===_0x6e2b58)break;else _0x28583f['push'](_0x28583f['shift']());}catch(_0x459a77){_0x28583f['push'](_0x28583f['shift']());}}}(a71_0x4744,0x64a1d));const {createClassLogger}=require(a71_0xc0030d(0xd1)),util=require('util'),eventDispatcher=require('../eventDispatcher.js'),CLIUtils=require(a71_0xc0030d(0xd7)),TrackedInstance=require(a71_0xc0030d(0xe0)),logger=createClassLogger(a71_0xc0030d(0xf4));class AutomationFramework{static ['instances']=new Map();static [a71_0xc0030d(0xf1)]=a71_0xc0030d(0xe7);static ['KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS']=a71_0xc0030d(0xf0);constructor(_0x40b7c7,_0x22eef1){const _0x4522c3=a71_0xc0030d;this[_0x4522c3(0xd4)]=_0x40b7c7,this[_0x4522c3(0xeb)]=_0x22eef1;}['getAutomationFrameworkName'](){const _0x32741e=a71_0xc0030d;return this[_0x32741e(0xd4)];}[a71_0xc0030d(0xe4)](){return this['automationFrameworkVersion'];}async['trackEvent'](_0x50dbd4,_0x511792,_0x116c2f={}){const _0x16ef13=a71_0xc0030d;logger['debug']('trackEvent:\x20automationFrameworkState='+_0x50dbd4+_0x16ef13(0xde)+_0x511792);}async[a71_0xc0030d(0xee)](_0x5f0497,_0x2e1513,_0x1853cc,_0x565aef={}){const _0x4d0faa=a71_0xc0030d,_0x595103=CLIUtils[_0x4d0faa(0xd2)](_0x2e1513,_0x1853cc);_0x5f0497&&_0x5f0497['setState'](_0x2e1513),await eventDispatcher[_0x4d0faa(0xdf)](_0x595103,_0x565aef);}static[a71_0xc0030d(0xd8)](_0x4d1886,_0x133d05,_0x1a34ca){const _0x3f750d=a71_0xc0030d;eventDispatcher[_0x3f750d(0xd8)](CLIUtils[_0x3f750d(0xd2)](_0x4d1886,_0x133d05),_0x1a34ca);}static[a71_0xc0030d(0xed)](_0x305af1,_0x170e54){const _0x1cf745=a71_0xc0030d;AutomationFramework[_0x1cf745(0xe9)][_0x1cf745(0xe1)](_0x305af1[_0x1cf745(0xd6)](),_0x170e54);}static[a71_0xc0030d(0xd9)](){const _0x7963c4=a71_0xc0030d,_0x3c1099=TrackedInstance[_0x7963c4(0xea)](CLIUtils[_0x7963c4(0xda)]());return AutomationFramework['instances'][_0x7963c4(0xdb)](_0x3c1099[_0x7963c4(0xd6)]());}static[a71_0xc0030d(0xdd)](_0xdba27b,_0x2bde5b,_0x4cef3c){const _0x2a1534=a71_0xc0030d;_0xdba27b[_0x2a1534(0xd3)]()[_0x2a1534(0xe1)](_0x2bde5b,_0x4cef3c);}static['getState'](_0x3db9bf,_0x140f2d){const _0x472fc6=a71_0xc0030d;return _0x3db9bf[_0x472fc6(0xd3)]()[_0x472fc6(0xdb)](_0x140f2d);}}function a71_0x2403(_0x155d17,_0x171741){const _0x474436=a71_0x4744();return a71_0x2403=function(_0x24033f,_0x318fdc){_0x24033f=_0x24033f-0xd1;let _0x273de4=_0x474436[_0x24033f];return _0x273de4;},a71_0x2403(_0x155d17,_0x171741);}module[a71_0xc0030d(0xef)]=AutomationFramework;
@@ -1 +1 @@
1
- function a72_0x5e81(){const _0x46ed70=['1613269PmWZGm','COMMAND_GET','ENV_BROWSERSTACK_PLATFORM_INDEX','framework_session_id','started_at','9DahEfl','85jISeKG','capabilities','2398124xzutwU','618422KaCbxs','KEY_STARTED_AT','COMMAND_QUIT','ended_at','input_capabilities','KEY_PLATFORM_INDEX','662371GmzLIe','KEY_INPUT_CAPABILITIES','platform_index','is_browserstack_hub','newsession','KEY_IS_BROWSERSTACK_HUB','3SvBzGZ','KEY_HUB_URL','9063020UfpoOT','5476888vZRsyf','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','hub_url','quit','431286siwfgM','exports','KEY_ENDED_AT'];a72_0x5e81=function(){return _0x46ed70;};return a72_0x5e81();}const a72_0x3723c1=a72_0x3e6f;function a72_0x3e6f(_0x4f6d79,_0x4b6a72){const _0x5e81cd=a72_0x5e81();return a72_0x3e6f=function(_0x3e6fe1,_0x3c05ed){_0x3e6fe1=_0x3e6fe1-0x1eb;let _0x1cebac=_0x5e81cd[_0x3e6fe1];return _0x1cebac;},a72_0x3e6f(_0x4f6d79,_0x4b6a72);}(function(_0x20b4fa,_0x25f114){const _0x5e3bb8=a72_0x3e6f,_0x5095c3=_0x20b4fa();while(!![]){try{const _0x30b103=-parseInt(_0x5e3bb8(0x1ee))/0x1+-parseInt(_0x5e3bb8(0x207))/0x2+-parseInt(_0x5e3bb8(0x1f4))/0x3*(-parseInt(_0x5e3bb8(0x206))/0x4)+-parseInt(_0x5e3bb8(0x204))/0x5*(-parseInt(_0x5e3bb8(0x1fb))/0x6)+-parseInt(_0x5e3bb8(0x1fe))/0x7+-parseInt(_0x5e3bb8(0x1f7))/0x8*(parseInt(_0x5e3bb8(0x203))/0x9)+parseInt(_0x5e3bb8(0x1f6))/0xa;if(_0x30b103===_0x25f114)break;else _0x5095c3['push'](_0x5095c3['shift']());}catch(_0x219faa){_0x5095c3['push'](_0x5095c3['shift']());}}}(a72_0x5e81,0xcd5be));const a72_0x14c7e5={};a72_0x14c7e5[a72_0x3723c1(0x200)]='BROWSERSTACK_PLATFORM_INDEX',a72_0x14c7e5[a72_0x3723c1(0x1f5)]=a72_0x3723c1(0x1f9),a72_0x14c7e5['KEY_FRAMEWORK_SESSION_ID']=a72_0x3723c1(0x201),a72_0x14c7e5[a72_0x3723c1(0x1ef)]=a72_0x3723c1(0x1ec),a72_0x14c7e5['KEY_CAPABILITIES']=a72_0x3723c1(0x205),a72_0x14c7e5[a72_0x3723c1(0x1f3)]=a72_0x3723c1(0x1f1),a72_0x14c7e5[a72_0x3723c1(0x208)]=a72_0x3723c1(0x202),a72_0x14c7e5[a72_0x3723c1(0x1fd)]=a72_0x3723c1(0x1eb),a72_0x14c7e5[a72_0x3723c1(0x1ed)]=a72_0x3723c1(0x1f0),a72_0x14c7e5['COMMAND_NEW_SESSION']=a72_0x3723c1(0x1f2),a72_0x14c7e5[a72_0x3723c1(0x1ff)]='get',a72_0x14c7e5['COMMAND_SCREENSHOT']='screenshot',a72_0x14c7e5['COMMAND_W3C_EXECUTE_SCRIPT']='w3cexecutescript',a72_0x14c7e5[a72_0x3723c1(0x1f8)]='w3cexecutescriptasync',a72_0x14c7e5[a72_0x3723c1(0x209)]=a72_0x3723c1(0x1fa);const AutomationFrameworkConstants=a72_0x14c7e5;module[a72_0x3723c1(0x1fc)]=AutomationFrameworkConstants;
1
+ const a72_0x1ac22b=a72_0x414d;(function(_0x4c47f6,_0x4de73e){const _0x42eed6=a72_0x414d,_0x56d45a=_0x4c47f6();while(!![]){try{const _0x3b3901=-parseInt(_0x42eed6(0x157))/0x1*(parseInt(_0x42eed6(0x156))/0x2)+parseInt(_0x42eed6(0x155))/0x3*(-parseInt(_0x42eed6(0x13f))/0x4)+-parseInt(_0x42eed6(0x13d))/0x5*(parseInt(_0x42eed6(0x14a))/0x6)+parseInt(_0x42eed6(0x148))/0x7*(-parseInt(_0x42eed6(0x149))/0x8)+parseInt(_0x42eed6(0x13c))/0x9*(-parseInt(_0x42eed6(0x147))/0xa)+parseInt(_0x42eed6(0x14d))/0xb+parseInt(_0x42eed6(0x140))/0xc;if(_0x3b3901===_0x4de73e)break;else _0x56d45a['push'](_0x56d45a['shift']());}catch(_0x27b1ae){_0x56d45a['push'](_0x56d45a['shift']());}}}(a72_0x3687,0xf3233));const a72_0x2566bb={};a72_0x2566bb[a72_0x1ac22b(0x141)]=a72_0x1ac22b(0x13e),a72_0x2566bb[a72_0x1ac22b(0x145)]='hub_url',a72_0x2566bb[a72_0x1ac22b(0x14f)]=a72_0x1ac22b(0x146),a72_0x2566bb['KEY_INPUT_CAPABILITIES']='input_capabilities',a72_0x2566bb[a72_0x1ac22b(0x144)]=a72_0x1ac22b(0x13b),a72_0x2566bb['KEY_IS_BROWSERSTACK_HUB']=a72_0x1ac22b(0x142),a72_0x2566bb[a72_0x1ac22b(0x143)]='started_at',a72_0x2566bb[a72_0x1ac22b(0x151)]='ended_at',a72_0x2566bb[a72_0x1ac22b(0x154)]='platform_index',a72_0x2566bb['COMMAND_NEW_SESSION']=a72_0x1ac22b(0x158),a72_0x2566bb['COMMAND_GET']=a72_0x1ac22b(0x14b),a72_0x2566bb['COMMAND_SCREENSHOT']='screenshot',a72_0x2566bb[a72_0x1ac22b(0x152)]='w3cexecutescript',a72_0x2566bb[a72_0x1ac22b(0x153)]=a72_0x1ac22b(0x14c),a72_0x2566bb[a72_0x1ac22b(0x14e)]=a72_0x1ac22b(0x150);const AutomationFrameworkConstants=a72_0x2566bb;function a72_0x414d(_0x5c9b9d,_0x171d43){const _0x368714=a72_0x3687();return a72_0x414d=function(_0x414dc5,_0x17a6b4){_0x414dc5=_0x414dc5-0x13b;let _0x433c12=_0x368714[_0x414dc5];return _0x433c12;},a72_0x414d(_0x5c9b9d,_0x171d43);}function a72_0x3687(){const _0x281c1b=['194262WeDpjJ','get','w3cexecutescriptasync','10352584pSBXDG','COMMAND_QUIT','KEY_FRAMEWORK_SESSION_ID','quit','KEY_ENDED_AT','COMMAND_W3C_EXECUTE_SCRIPT','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','KEY_PLATFORM_INDEX','237zYJzpx','30ISBxYc','42972trxxqp','newsession','capabilities','15887556rfOlmR','15jgNYKy','BROWSERSTACK_PLATFORM_INDEX','12872MWBvsb','33999912Gnrsra','ENV_BROWSERSTACK_PLATFORM_INDEX','is_browserstack_hub','KEY_STARTED_AT','KEY_CAPABILITIES','KEY_HUB_URL','framework_session_id','10sZHnGo','60767yPeUIx','16mlzwwu'];a72_0x3687=function(){return _0x281c1b;};return a72_0x3687();}module['exports']=AutomationFrameworkConstants;
@@ -1 +1 @@
1
- const a73_0x1c857d=a73_0x1745;(function(_0x3790af,_0x350322){const _0x3dc468=a73_0x1745,_0x39cb68=_0x3790af();while(!![]){try{const _0x580ba5=-parseInt(_0x3dc468(0x1ae))/0x1+-parseInt(_0x3dc468(0x1b8))/0x2+parseInt(_0x3dc468(0x1ff))/0x3*(parseInt(_0x3dc468(0x1e6))/0x4)+-parseInt(_0x3dc468(0x1fa))/0x5+-parseInt(_0x3dc468(0x1b2))/0x6+parseInt(_0x3dc468(0x1c7))/0x7*(parseInt(_0x3dc468(0x1ed))/0x8)+parseInt(_0x3dc468(0x203))/0x9;if(_0x580ba5===_0x350322)break;else _0x39cb68['push'](_0x39cb68['shift']());}catch(_0x42d744){_0x39cb68['push'](_0x39cb68['shift']());}}}(a73_0x3bec,0xaba2f));function a73_0x1745(_0x56692b,_0x587b54){const _0x3bec16=a73_0x3bec();return a73_0x1745=function(_0x1745fb,_0x3a0877){_0x1745fb=_0x1745fb-0x1aa;let _0x2b330a=_0x3bec16[_0x1745fb];return _0x2b330a;},a73_0x1745(_0x56692b,_0x587b54);}const a73_0x3d9cba={};a73_0x3d9cba[a73_0x1c857d(0x20e)]=a73_0x1c857d(0x1f2),a73_0x3d9cba['KEY_TEST_ID']=a73_0x1c857d(0x20c),a73_0x3d9cba['KEY_TEST_NAME']='test_name',a73_0x3d9cba[a73_0x1c857d(0x1de)]=a73_0x1c857d(0x1b3),a73_0x3d9cba[a73_0x1c857d(0x1d8)]='test_tags',a73_0x3d9cba[a73_0x1c857d(0x1e7)]=a73_0x1c857d(0x1c0),a73_0x3d9cba[a73_0x1c857d(0x1b4)]='test_result_at',a73_0x3d9cba['KEY_TEST_STARTED_AT']=a73_0x1c857d(0x1e5),a73_0x3d9cba[a73_0x1c857d(0x1b0)]=a73_0x1c857d(0x1f8),a73_0x3d9cba[a73_0x1c857d(0x208)]=a73_0x1c857d(0x1ea),a73_0x3d9cba[a73_0x1c857d(0x1ac)]=a73_0x1c857d(0x1bd),a73_0x3d9cba[a73_0x1c857d(0x1c2)]=a73_0x1c857d(0x1b6),a73_0x3d9cba[a73_0x1c857d(0x1e2)]=a73_0x1c857d(0x1bb),a73_0x3d9cba[a73_0x1c857d(0x1bc)]=a73_0x1c857d(0x1df),a73_0x3d9cba[a73_0x1c857d(0x1d0)]=a73_0x1c857d(0x20d),a73_0x3d9cba[a73_0x1c857d(0x1cc)]=a73_0x1c857d(0x1ef),a73_0x3d9cba[a73_0x1c857d(0x1c6)]=a73_0x1c857d(0x1c4),a73_0x3d9cba['KEY_TEST_RETRY_OF']=a73_0x1c857d(0x202),a73_0x3d9cba['KEY_PLATFORM_INDEX']=a73_0x1c857d(0x204),a73_0x3d9cba['KEY_TEST_FAILURE']=a73_0x1c857d(0x1cf),a73_0x3d9cba[a73_0x1c857d(0x201)]=a73_0x1c857d(0x1fe),a73_0x3d9cba[a73_0x1c857d(0x1f7)]='test_failure_reason',a73_0x3d9cba[a73_0x1c857d(0x1f1)]='test_logs',a73_0x3d9cba[a73_0x1c857d(0x1eb)]=a73_0x1c857d(0x1fd),a73_0x3d9cba[a73_0x1c857d(0x1c9)]=a73_0x1c857d(0x1ad),a73_0x3d9cba['KEY_AUTOMATE_SESSION_NAME']=a73_0x1c857d(0x1dc),a73_0x3d9cba[a73_0x1c857d(0x1d5)]=a73_0x1c857d(0x207),a73_0x3d9cba[a73_0x1c857d(0x1f3)]=a73_0x1c857d(0x1c1),a73_0x3d9cba[a73_0x1c857d(0x1e0)]=a73_0x1c857d(0x1ec),a73_0x3d9cba[a73_0x1c857d(0x1d4)]=a73_0x1c857d(0x1c5),a73_0x3d9cba[a73_0x1c857d(0x1f5)]=a73_0x1c857d(0x206),a73_0x3d9cba[a73_0x1c857d(0x1e3)]=a73_0x1c857d(0x1be),a73_0x3d9cba[a73_0x1c857d(0x1c8)]=a73_0x1c857d(0x1f0),a73_0x3d9cba[a73_0x1c857d(0x1fc)]=a73_0x1c857d(0x1c3),a73_0x3d9cba[a73_0x1c857d(0x1cd)]=a73_0x1c857d(0x1fb),a73_0x3d9cba[a73_0x1c857d(0x209)]='hook_logs',a73_0x3d9cba[a73_0x1c857d(0x1e8)]='hook_name',a73_0x3d9cba[a73_0x1c857d(0x1b9)]=a73_0x1c857d(0x1af),a73_0x3d9cba[a73_0x1c857d(0x1f6)]=a73_0x1c857d(0x1af),a73_0x3d9cba['KIND_SCREENSHOT']=a73_0x1c857d(0x1e9),a73_0x3d9cba[a73_0x1c857d(0x1d1)]=a73_0x1c857d(0x1da),a73_0x3d9cba[a73_0x1c857d(0x205)]=a73_0x1c857d(0x1d9),a73_0x3d9cba['KEY_HOOKS_STARTED']=a73_0x1c857d(0x20b),a73_0x3d9cba[a73_0x1c857d(0x1ce)]=a73_0x1c857d(0x1e1),a73_0x3d9cba[a73_0x1c857d(0x20a)]=a73_0x1c857d(0x1db),a73_0x3d9cba[a73_0x1c857d(0x1dd)]=a73_0x1c857d(0x1aa),a73_0x3d9cba[a73_0x1c857d(0x1d7)]=a73_0x1c857d(0x1d3),a73_0x3d9cba[a73_0x1c857d(0x1f4)]=a73_0x1c857d(0x1b7),a73_0x3d9cba[a73_0x1c857d(0x200)]=a73_0x1c857d(0x1b5),a73_0x3d9cba[a73_0x1c857d(0x1cb)]=a73_0x1c857d(0x1ee),a73_0x3d9cba[a73_0x1c857d(0x1ab)]=a73_0x1c857d(0x1d6),a73_0x3d9cba[a73_0x1c857d(0x1f9)]=a73_0x1c857d(0x1b1),a73_0x3d9cba[a73_0x1c857d(0x1ba)]=a73_0x1c857d(0x1d2),a73_0x3d9cba[a73_0x1c857d(0x1ca)]=0xa,a73_0x3d9cba[a73_0x1c857d(0x1bf)]=0x2;const TestFrameworkConstants=a73_0x3d9cba;function a73_0x3bec(){const _0x7039e6=['KEY_FILE_SIZE','KEY_TEST_CODE','KEY_HOOK_FAILURE','KEY_HOOKS_FINISHED','test_failure','KEY_TEST_FRAMEWORK_VERSION','KIND_LOG','file_level','logs','KEY_EVENT_ENDED_AT','KEY_AUTOMATE_SESSION_STATUS','file_name','KEY_LOGS','KEY_TEST_TAGS','^(BEFORE_|AFTER_)','TEST_LOG','test_hook_last_started','automate_session_name','KEY_HOOK_LAST_FINISHED','KEY_TEST_FILE_PATH','test_framework_name','KEY_EVENT_STARTED_AT','test_hooks_finished','KEY_TEST_SCOPES','KEY_HOOK_RESULT','exports','test_started_at','4mPevFZ','KEY_TEST_RESULT','KEY_HOOK_NAME','TEST_SCREENSHOT','test_location','KEY_TEST_META','event_started_at','6152dexsQf','file_size','test_code','hook_failure_type','KEY_TEST_LOGS','test_uuid','KEY_AUTOMATE_SESSION_REASON','KEY_CUSTOM_TAGS','KEY_HOOK_ID','DEFAULT_HOOK_RESULT','KEY_TEST_FAILURE_REASON','test_ended_at','KEY_FILE_PATH','6480670pSGwez','hook_failure','KEY_HOOK_FAILURE_REASON','test_meta','test_failure_type','2618313UJPTpH','KEY_TEST_ATTACHMENTS','KEY_TEST_FAILURE_TYPE','retry_of','26043417LmKXsO','platform_index','HOOK_REGEX','hook_id','automate_session_status','KEY_TEST_LOCATION','KEY_HOOK_LOGS','KEY_HOOK_LAST_STARTED','test_hooks_started','test_id','test_framework_version','KEY_TEST_UUID','test_hook_last_finished','KEY_FILE_NAME','KEY_TEST_DURATION','test_session_name','1198383EDelQf','pending','KEY_TEST_ENDED_AT','file_path','6971136ggEvzt','test_file_path','KEY_TEST_RESULT_AT','test_attachments','test_scope','custom_metadata','593642UDibhm','DEFAULT_TEST_RESULT','KEY_FILE_LEVEL','test_scopes','KEY_TEST_FRAMEWORK_NAME','test_duration','hook_result','MAX_NESTED_STEP_DEPTH','test_result','automate_session_reason','KEY_TEST_SCOPE','hook_failure_reason','test_rerun_name','event_ended_at','KEY_TEST_RERUN_NAME','8099kKhyGn','KEY_HOOK_FAILURE_TYPE','KEY_SESSION_NAME','MAX_TOP_LEVEL_STEPS'];a73_0x3bec=function(){return _0x7039e6;};return a73_0x3bec();}module[a73_0x1c857d(0x1e4)]=TestFrameworkConstants;
1
+ function a73_0x3c72(){const _0x3bdd11=['KEY_FILE_LEVEL','KEY_HOOK_LAST_FINISHED','744945nGAtFk','test_file_path','KEY_TEST_FAILURE','KEY_TEST_RETRY_OF','hook_id','KEY_TEST_FAILURE_REASON','test_hooks_finished','file_name','KEY_TEST_RESULT_AT','TEST_SCREENSHOT','test_hooks_started','KEY_TEST_LOGS','KEY_CUSTOM_TAGS','automate_session_name','test_framework_version','automate_session_status','KEY_AUTOMATE_SESSION_NAME','test_name','event_ended_at','KEY_AUTOMATE_SESSION_STATUS','test_logs','KEY_TEST_ATTACHMENTS','8659497wjtCTa','54264UxZrEG','KEY_TEST_FRAMEWORK_NAME','TEST_LOG','KEY_FILE_PATH','test_scopes','test_scope','test_result_at','test_framework_name','KEY_TEST_STARTED_AT','test_duration','891981BMUrMK','5636560ZoHYnj','file_path','KEY_TEST_META','KEY_TEST_FILE_PATH','HOOK_REGEX','KEY_HOOK_LAST_STARTED','KEY_TEST_NAME','hook_logs','KEY_TEST_ID','test_hook_last_finished','5384940aGfotO','test_result','test_rerun_name','platform_index','1500DaJTur','KEY_HOOK_ID','KEY_FILE_SIZE','exports','KEY_EVENT_ENDED_AT','KEY_HOOKS_STARTED','test_session_name','KEY_TEST_SCOPE','test_tags','8VdihCm','KIND_SCREENSHOT','KEY_TEST_SCOPES','test_location','KEY_HOOK_RESULT','pending','file_size','file_level','hook_name','KEY_FILE_NAME','MAX_NESTED_STEP_DEPTH','KEY_TEST_RESULT','test_meta','test_started_at','KEY_AUTOMATE_SESSION_REASON','DEFAULT_HOOK_RESULT','retry_of','KEY_SESSION_NAME','test_uuid','100LereMf','KEY_TEST_CODE','test_failure','hook_failure_type','KEY_TEST_FAILURE_TYPE','KEY_HOOKS_FINISHED','31536PbfyjL','test_failure_reason','test_attachments','test_failure_type','KEY_HOOK_FAILURE_REASON','MAX_TOP_LEVEL_STEPS','test_ended_at','^(BEFORE_|AFTER_)'];a73_0x3c72=function(){return _0x3bdd11;};return a73_0x3c72();}const a73_0x277d38=a73_0x45cb;function a73_0x45cb(_0x5aab86,_0x590f09){const _0x3c72e5=a73_0x3c72();return a73_0x45cb=function(_0x45cb8c,_0x1a557a){_0x45cb8c=_0x45cb8c-0x72;let _0x2e1e50=_0x3c72e5[_0x45cb8c];return _0x2e1e50;},a73_0x45cb(_0x5aab86,_0x590f09);}(function(_0xf2cd71,_0x13ea1c){const _0x511ec3=a73_0x45cb,_0x1cdf17=_0xf2cd71();while(!![]){try{const _0x37e7f6=-parseInt(_0x511ec3(0xa6))/0x1+parseInt(_0x511ec3(0x96))/0x2*(parseInt(_0x511ec3(0xbd))/0x3)+-parseInt(_0x511ec3(0xc8))/0x4+-parseInt(_0x511ec3(0x7a))/0x5*(-parseInt(_0x511ec3(0x9c))/0x6)+parseInt(_0x511ec3(0xbc))/0x7+-parseInt(_0x511ec3(0x83))/0x8*(parseInt(_0x511ec3(0xc7))/0x9)+-parseInt(_0x511ec3(0x76))/0xa;if(_0x37e7f6===_0x13ea1c)break;else _0x1cdf17['push'](_0x1cdf17['shift']());}catch(_0x38cc8f){_0x1cdf17['push'](_0x1cdf17['shift']());}}}(a73_0x3c72,0xe2377));const a73_0x227ff4={};a73_0x227ff4['KEY_TEST_UUID']=a73_0x277d38(0x95),a73_0x227ff4[a73_0x277d38(0x74)]='test_id',a73_0x227ff4[a73_0x277d38(0x72)]=a73_0x277d38(0xb7),a73_0x227ff4[a73_0x277d38(0xcb)]=a73_0x277d38(0xa7),a73_0x227ff4['KEY_TEST_TAGS']=a73_0x277d38(0x82),a73_0x227ff4[a73_0x277d38(0x8e)]=a73_0x277d38(0x77),a73_0x227ff4[a73_0x277d38(0xae)]=a73_0x277d38(0xc3),a73_0x227ff4[a73_0x277d38(0xc5)]=a73_0x277d38(0x90),a73_0x227ff4['KEY_TEST_ENDED_AT']=a73_0x277d38(0xa2),a73_0x227ff4['KEY_TEST_LOCATION']=a73_0x277d38(0x86),a73_0x227ff4['KEY_TEST_DURATION']=a73_0x277d38(0xc6),a73_0x227ff4[a73_0x277d38(0x81)]=a73_0x277d38(0xc2),a73_0x227ff4[a73_0x277d38(0x85)]=a73_0x277d38(0xc1),a73_0x227ff4[a73_0x277d38(0xbe)]=a73_0x277d38(0xc4),a73_0x227ff4['KEY_TEST_FRAMEWORK_VERSION']=a73_0x277d38(0xb4),a73_0x227ff4[a73_0x277d38(0x97)]='test_code',a73_0x227ff4['KEY_TEST_RERUN_NAME']=a73_0x277d38(0x78),a73_0x227ff4[a73_0x277d38(0xa9)]=a73_0x277d38(0x93),a73_0x227ff4['KEY_PLATFORM_INDEX']=a73_0x277d38(0x79),a73_0x227ff4[a73_0x277d38(0xa8)]=a73_0x277d38(0x98),a73_0x227ff4[a73_0x277d38(0x9a)]=a73_0x277d38(0x9f),a73_0x227ff4[a73_0x277d38(0xab)]=a73_0x277d38(0x9d),a73_0x227ff4[a73_0x277d38(0xb1)]=a73_0x277d38(0xba),a73_0x227ff4[a73_0x277d38(0xca)]=a73_0x277d38(0x8f),a73_0x227ff4[a73_0x277d38(0x94)]=a73_0x277d38(0x80),a73_0x227ff4[a73_0x277d38(0xb6)]=a73_0x277d38(0xb3),a73_0x227ff4[a73_0x277d38(0xb9)]=a73_0x277d38(0xb5),a73_0x227ff4[a73_0x277d38(0x91)]='automate_session_reason',a73_0x227ff4['KEY_EVENT_STARTED_AT']='event_started_at',a73_0x227ff4[a73_0x277d38(0x7e)]=a73_0x277d38(0xb8),a73_0x227ff4[a73_0x277d38(0x7b)]=a73_0x277d38(0xaa),a73_0x227ff4[a73_0x277d38(0x87)]='hook_result',a73_0x227ff4['KEY_HOOK_FAILURE_TYPE']=a73_0x277d38(0x99),a73_0x227ff4[a73_0x277d38(0xa0)]='hook_failure_reason',a73_0x227ff4['KEY_HOOK_FAILURE']='hook_failure',a73_0x227ff4['KEY_HOOK_LOGS']=a73_0x277d38(0x73),a73_0x227ff4['KEY_HOOK_NAME']=a73_0x277d38(0x8b),a73_0x227ff4['DEFAULT_TEST_RESULT']=a73_0x277d38(0x88),a73_0x227ff4[a73_0x277d38(0x92)]=a73_0x277d38(0x88),a73_0x227ff4[a73_0x277d38(0x84)]=a73_0x277d38(0xaf),a73_0x227ff4['KIND_LOG']=a73_0x277d38(0xbf),a73_0x227ff4[a73_0x277d38(0xcc)]=a73_0x277d38(0xa3),a73_0x227ff4[a73_0x277d38(0x7f)]=a73_0x277d38(0xb0),a73_0x227ff4[a73_0x277d38(0x9b)]=a73_0x277d38(0xac),a73_0x227ff4[a73_0x277d38(0xcd)]='test_hook_last_started',a73_0x227ff4[a73_0x277d38(0xa5)]=a73_0x277d38(0x75),a73_0x227ff4['KEY_LOGS']='logs',a73_0x227ff4[a73_0x277d38(0xb2)]='custom_metadata',a73_0x227ff4[a73_0x277d38(0xbb)]=a73_0x277d38(0x9e),a73_0x227ff4[a73_0x277d38(0x7c)]=a73_0x277d38(0x89),a73_0x227ff4[a73_0x277d38(0x8c)]=a73_0x277d38(0xad),a73_0x227ff4[a73_0x277d38(0xc0)]=a73_0x277d38(0xc9),a73_0x227ff4[a73_0x277d38(0xa4)]=a73_0x277d38(0x8a),a73_0x227ff4[a73_0x277d38(0xa1)]=0xa,a73_0x227ff4[a73_0x277d38(0x8d)]=0x2;const TestFrameworkConstants=a73_0x227ff4;module[a73_0x277d38(0x7d)]=TestFrameworkConstants;
@@ -1 +1 @@
1
- const a74_0x5ad189=a74_0x7725;function a74_0x7725(_0xd7cdb2,_0x5f5744){const _0x57a3f2=a74_0x57a3();return a74_0x7725=function(_0x7725e3,_0x3691cd){_0x7725e3=_0x7725e3-0xf2;let _0x40c938=_0x57a3f2[_0x7725e3];return _0x40c938;},a74_0x7725(_0xd7cdb2,_0x5f5744);}function a74_0x57a3(){const _0x269b14=['UnhandledError','eventJson','location','DxNGl','../instances/testFrameworkInstance.js','key','getContext','176912ulCGUs','KEY_TEST_META','testFrameworkState','createTestFrameworkEventPayload\x20testId:\x20','\x20payload=',',\x20hookState:\x20','base64','gYFiY','KEY_TEST_FAILURE','BZVPm','parseCucumberTestResult','KEY_TEST_FAILURE_REASON','getTestFrameworks','body','get','1746mrBYpU','KEY_TEST_FILE_PATH','trackEvent','KEY_LOGS',',\x20error:\x20','KEY_CUSTOM_TAGS','concat','tags','10lMHUqt','matchHookRegex','createContext','pop','Parsed\x20cucumber\x20test:\x20','code','debug','platformIndex','KnYSf','KEY_TEST_CODE','UmFNU','gvley','871192OqFrWD','KEY_HOOKS_FINISHED','KEY_TEST_STARTED_AT','startedAt','../state/testFrameworkState.js','setTrackedInstance','toISOString','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','./testFramework','test','TEST','lmQZm','rerun_name','KEY_TEST_TAGS','hgTwK','2261SxYoBK','hETIZ','trackEvent:\x20unsupported\x20testFrameworkState=','\x20hookState:\x20','970635lodBpi','error','toString','KEY_EVENT_ENDED_AT','name','KEY_TEST_SCOPE','storePendingHook','failure_type','18AGjHCp','inspect','uuid','testFrameworkName','addPendingHook','slice','bKghy','KEY_TEST_FRAMEWORK_NAME','getRef','Updated\x20cucumber\x20test\x20result:\x20','trackCucumberInstance','meta','addMultipleEntries','HYewf','30863ytiCca','tiyCE','finished_at','\x20pending\x20hooks\x20for\x20testId:\x20','\x20testState:\x20','\x20with\x20UUID:\x20','\x20with\x20result:\x20','sendLogCreatedEvent','runHooks','getAllData','resolveInstance','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','UdEPU','endedAt','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','pyFAu','KEY_HOOK_LAST_FINISHED','instance','VHQTt','parseCucumberTest','finishedAt','KEY_TEST_RERUN_NAME','length','browserstackPlatformIndex','KEY_TEST_SCOPES','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','getPendingHooks','KEY_HOOKS_STARTED',',\x20state:\x20','\x20target=','DEFAULT_HOOK_RESULT','Stored\x20pending\x20hook\x20for\x20testId:\x20','KEY_HOOK_NAME','failure','processPendingHooks','KEY_TEST_FAILURE_TYPE','KEY_TEST_ATTACHMENTS','\x20and\x20args\x20=\x20','\x20&\x20hookState=','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','1667080WkDuKE','slfdj','fcRTr',',\x20state=','NONE','getTestDetails','WSTPV','args','getCurrentTestState','result','hookState','../state/hookState.js','test_run_id','setTestDetails','WRKJz','ZviAx','\x20response=','unknown','hook_type','createTestFrameworkEventPayload','KEY_AUTOMATE_SESSION_NAME','zyPtF','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','split','OnEcb','removePendingHooks','getInstance','moUfP','trackHookEvent','ofKHC','testUUID','KEY_HOOK_FAILURE','\x20for\x20test:\x20','POST','KEY_HOOK_FAILURE_REASON','scopes','util','KEY_TEST_ID','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','KEY_TEST_RESULT_AT','\x20batch\x20','file_name','getCurrentInstanceName','INIT_TEST','getThreadId','stringify','../TestInfo.js','format','customRerunParam','trackCucumberInstance:\x20saved\x20instance\x20contextId=','PtyUb','8974359eBwnXu','\x20with\x20id\x20','../../../helpers/classLogger.js','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','exports','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','\x20\x20and\x20args\x20=\x20','LOG_REPORT','KEY_TEST_LOCATION',',\x20storing\x20as\x20pending\x20hook','PbmFN','Processing\x20','KEY_HOOK_RESULT','getTrackedInstance','KEY_TEST_RESULT','hooks','KEY_TEST_FRAMEWORK_VERSION','hookData','KEY_TEST_ENDED_AT','sendLogCreatedEvent:\x20for\x20testId:\x20','CucumberTestFramework','getId','KEY_TEST_NAME','KEY_HOOK_FAILURE_TYPE','Tracked\x20cucumber\x20hook\x20event:\x20','passed','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','getProcessId','../../../helpers/helper.js','testData','KEY_EVENT_STARTED_AT','failure_data','readLogObjects','KEY_TEST_UUID','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20'];a74_0x57a3=function(){return _0x269b14;};return a74_0x57a3();}(function(_0x1fe262,_0x332dcc){const _0x25740c=a74_0x7725,_0xcc6a91=_0x1fe262();while(!![]){try{const _0x35bc25=parseInt(_0x25740c(0x1b8))/0x1+parseInt(_0x25740c(0x16b))/0x2*(-parseInt(_0x25740c(0x1aa))/0x3)+-parseInt(_0x25740c(0x10d))/0x4+parseInt(_0x25740c(0x1a2))/0x5+parseInt(_0x25740c(0x17a))/0x6*(-parseInt(_0x25740c(0x19e))/0x7)+parseInt(_0x25740c(0x18e))/0x8+-parseInt(_0x25740c(0x140))/0x9*(-parseInt(_0x25740c(0x182))/0xa);if(_0x35bc25===_0x332dcc)break;else _0xcc6a91['push'](_0xcc6a91['shift']());}catch(_0x326777){_0xcc6a91['push'](_0xcc6a91['shift']());}}}(a74_0x57a3,0x46b05));const TestFramework=require(a74_0x5ad189(0x197)),TestFrameworkState=require(a74_0x5ad189(0x192)),HookState=require(a74_0x5ad189(0x118)),{createClassLogger}=require(a74_0x5ad189(0x142)),TestFrameworkInstance=require(a74_0x5ad189(0x168)),CLIUtils=require('../cliUtils.js'),TrackedInstance=require('../instances/trackedInstance.js'),TestFrameworkConstants=require('./constants/testFrameworkConstants.js'),{getManualUploadLogs,getMediaArtifactsLogs}=require(a74_0x5ad189(0x15d)),logger=createClassLogger(a74_0x5ad189(0x154)),{v4:uuidv4}=require(a74_0x5ad189(0x1ac)),util=require(a74_0x5ad189(0x131)),TestInfo=require(a74_0x5ad189(0x13b)),GrpcClient=require('../grpcClient');class CucumberTestFramework extends TestFramework{constructor(_0x193120,_0x2a8161,_0x3f3e37){super(_0x193120,_0x2a8161,_0x3f3e37);}async[a74_0x5ad189(0x17c)](_0x39c83e,_0x4b5e7f,_0x1d9442={}){const _0x5a8559=a74_0x5ad189,_0x21e59d={};_0x21e59d[_0x5a8559(0x125)]=_0x5a8559(0x196),_0x21e59d[_0x5a8559(0x18c)]=function(_0x354154,_0x2b9cc8){return _0x354154===_0x2b9cc8;},_0x21e59d['VHQTt']=_0x5a8559(0x1c3);const _0x42ec4e=_0x21e59d;await super[_0x5a8559(0x17c)](_0x39c83e,_0x4b5e7f,_0x1d9442);const _0x49471b=this[_0x5a8559(0x1c2)](_0x39c83e,_0x4b5e7f,_0x1d9442);if(!_0x49471b){logger['debug'](_0x42ec4e[_0x5a8559(0x125)]);return;}try{let _0x57c5e9,_0x298b01;switch(_0x39c83e){case TestFrameworkState[_0x5a8559(0x199)]:_0x57c5e9=_0x1d9442[_0x5a8559(0x198)],_0x298b01=TestInfo['getTestUUID'](_0x57c5e9['id']);if(_0x42ec4e[_0x5a8559(0x18c)](_0x4b5e7f,HookState['PRE'])){logger[_0x5a8559(0x188)]('trackEvent\x20loading\x20testData\x20for\x20testId:\x20'+_0x57c5e9['id']);const _0x5ea13d={};_0x5ea13d['testUUID']=_0x298b01,_0x5ea13d[_0x5a8559(0x15e)]=_0x57c5e9,_0x49471b['addMultipleEntries'](this[_0x5a8559(0xf8)](_0x5ea13d)),logger[_0x5a8559(0x188)]('trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20'+_0x57c5e9['id']),await this[_0x5a8559(0x107)](_0x49471b,_0x57c5e9['id']);}else{if(_0x42ec4e[_0x5a8559(0x18c)](_0x4b5e7f,HookState[_0x5a8559(0x12e)])){const _0x3f1503={};_0x3f1503['testUUID']=_0x298b01,_0x3f1503[_0x5a8559(0x15e)]=_0x57c5e9,_0x49471b[_0x5a8559(0x1b6)](this[_0x5a8559(0x175)](_0x3f1503)),await this[_0x5a8559(0x107)](_0x49471b,_0x57c5e9['id']);}}break;case TestFrameworkState[_0x5a8559(0x147)]:_0x42ec4e[_0x5a8559(0x18c)](_0x4b5e7f,HookState['POST'])&&await this['sendLogCreatedEvent'](_0x49471b,_0x39c83e,_0x1d9442);break;default:if(CLIUtils[_0x5a8559(0x183)](_0x39c83e['toString']()[_0x5a8559(0x124)]('.')[0x1])){const _0x822f5b=await this['trackHookEvent'](_0x49471b,_0x39c83e,_0x4b5e7f,_0x1d9442);_0x49471b['addMultipleEntries'](_0x822f5b);}else logger[_0x5a8559(0x188)](_0x5a8559(0x1a0)+_0x39c83e+_0x5a8559(0x10b)+_0x4b5e7f);break;}}catch(_0x22f89e){logger[_0x5a8559(0x1a3)](util[_0x5a8559(0x13c)](_0x42ec4e[_0x5a8559(0xf7)],_0x39c83e,_0x4b5e7f,_0x1d9442[_0x5a8559(0xfb)],_0x22f89e));}_0x1d9442['instance']=_0x49471b,await this[_0x5a8559(0x1c0)](_0x49471b,_0x39c83e,_0x4b5e7f,_0x1d9442);}[a74_0x5ad189(0x1c2)](_0x3d8226,_0x460958,_0x4d7ce1={}){const _0x2f9204=a74_0x5ad189,_0x2cfbc6={};_0x2cfbc6[_0x2f9204(0x19d)]=function(_0x4f30a5,_0xa109c1){return _0x4f30a5===_0xa109c1;};const _0x4f26c0=_0x2cfbc6;let _0x4d7c39=null;return(_0x4f26c0[_0x2f9204(0x19d)](_0x3d8226,TestFrameworkState[_0x2f9204(0x138)])||_0x4f26c0[_0x2f9204(0x19d)](_0x3d8226,TestFrameworkState[_0x2f9204(0x111)]))&&this[_0x2f9204(0x1b4)](_0x3d8226,_0x4d7ce1),_0x4d7c39=TestFramework[_0x2f9204(0x14d)](),_0x4d7c39;}[a74_0x5ad189(0x1b4)](_0x2550d8,_0x3993e4){const _0xa97b57=a74_0x5ad189,_0x56999a=CLIUtils[_0xa97b57(0x137)](),_0x1a82a0=TrackedInstance[_0xa97b57(0x184)](_0x56999a);let _0x5e6b46=null;logger[_0xa97b57(0x188)](_0xa97b57(0x143)+_0x56999a+_0xa97b57(0x110)+_0x2550d8),_0x5e6b46=new TestFrameworkInstance(_0x1a82a0,this[_0xa97b57(0x177)](),this['getTestFrameworksVersions'](),_0x2550d8,HookState[_0xa97b57(0x111)]),TestFramework[_0xa97b57(0x193)](_0x1a82a0,_0x5e6b46),logger['debug'](_0xa97b57(0x13e)+_0x1a82a0[_0xa97b57(0x155)]()+_0xa97b57(0x102)+_0x56999a);}[a74_0x5ad189(0xf8)](_0x154952){const _0x2ad992=a74_0x5ad189,_0x3b5901={};_0x3b5901[_0x2ad992(0x1b7)]=_0x2ad992(0x15b);const _0x552c34=_0x3b5901,{testUUID:_0x38c3d8,testData:_0x184a9a}=_0x154952;if(!_0x184a9a||!_0x184a9a['uuid'])return logger['debug'](_0x552c34[_0x2ad992(0x1b7)]),{};const _0x264232=_0x38c3d8,_0x5146a8=_0x184a9a[_0x2ad992(0x1ac)],_0x847165=this['getTestFrameworks']()[0x0],_0x2a8b16=this['getTestFrameworksVersions'](),_0x218550={[TestFrameworkConstants[_0x2ad992(0x1b1)]]:_0x847165,[TestFrameworkConstants[_0x2ad992(0x150)]]:_0x2a8b16[_0x847165],[TestFrameworkConstants['KEY_TEST_LOGS']]:[],[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:{},[TestFrameworkConstants[_0x2ad992(0x100)]]:{},[TestFrameworkConstants[_0x2ad992(0x162)]]:_0x264232,[TestFrameworkConstants[_0x2ad992(0x14e)]]:TestFrameworkConstants['DEFAULT_TEST_RESULT'],[TestFrameworkConstants[_0x2ad992(0x121)]]:_0x184a9a['name']||'',[TestFrameworkConstants[_0x2ad992(0x17b)]]:_0x184a9a[_0x2ad992(0x136)]||'',[TestFrameworkConstants[_0x2ad992(0x132)]]:_0x5146a8,[TestFrameworkConstants[_0x2ad992(0x156)]]:_0x184a9a['name']||'',[TestFrameworkConstants[_0x2ad992(0x148)]]:_0x184a9a[_0x2ad992(0x166)]||'',[TestFrameworkConstants[_0x2ad992(0x18b)]]:_0x184a9a[_0x2ad992(0x178)]?.[_0x2ad992(0x187)]||null,[TestFrameworkConstants[_0x2ad992(0x19c)]]:_0x184a9a[_0x2ad992(0x181)]||[],[TestFrameworkConstants[_0x2ad992(0x190)]]:_0x184a9a['startedAt']||new Date()[_0x2ad992(0x194)](),[TestFrameworkConstants[_0x2ad992(0x1a7)]]:_0x184a9a[_0x2ad992(0x130)]?.[0x0]||'',[TestFrameworkConstants[_0x2ad992(0xfd)]]:_0x184a9a[_0x2ad992(0x130)]||[],[TestFrameworkConstants[_0x2ad992(0xfa)]]:_0x184a9a[_0x2ad992(0x13d)]?.[_0x2ad992(0x19b)]||_0x184a9a[_0x2ad992(0x1a6)]||'',[TestFrameworkConstants[_0x2ad992(0x17f)]]:{},[TestFrameworkConstants[_0x2ad992(0x16c)]]:_0x184a9a[_0x2ad992(0x1b5)]||{}};TestInfo['setTestDetails'](_0x5146a8,_0x218550),logger[_0x2ad992(0x188)](_0x2ad992(0x186)+_0x184a9a[_0x2ad992(0x1a6)]+_0x2ad992(0x1bd)+_0x264232);const _0x36192e={};return _0x36192e[_0x5146a8]=_0x218550,_0x36192e;}[a74_0x5ad189(0x175)](_0x4bb879){const _0x39289f=a74_0x5ad189,_0x5065ad={'moUfP':_0x39289f(0xf3),'PtyUb':_0x39289f(0x11e),'pygKA':function(_0xf4b9b3,_0x2af219){return _0xf4b9b3===_0x2af219;},'gvley':'failed','FZqKG':_0x39289f(0x164),'bKghy':function(_0x4a03d6,_0x53329f,_0x17d941){return _0x4a03d6(_0x53329f,_0x17d941);},'WRKJz':function(_0x5f2d69,_0xf6e873){return _0x5f2d69>_0xf6e873;},'ZviAx':function(_0x38a2b6,_0x24f8b8){return _0x38a2b6>_0x24f8b8;}},{testUUID:_0xd5ac11,testData:_0x4fa466}=_0x4bb879;if(!_0x4fa466||!_0x4fa466['uuid'])return logger[_0x39289f(0x188)](_0x5065ad[_0x39289f(0x128)]),{};const _0x315ead=this[_0x39289f(0x1c2)](TestFrameworkState[_0x39289f(0x199)],HookState[_0x39289f(0x12e)]),_0x24a522=_0x4fa466['uuid'],_0xb28e42=TestInfo[_0x39289f(0x112)](_0x24a522)||{},_0x125900=_0xb28e42?_0xb28e42[TestFrameworkConstants[_0x39289f(0x17f)]]||{}:{},_0x106253={..._0xb28e42,[TestFrameworkConstants[_0x39289f(0x14e)]]:_0x4fa466[_0x39289f(0x116)]||_0x5065ad[_0x39289f(0x13f)],[TestFrameworkConstants[_0x39289f(0x152)]]:_0x4fa466[_0x39289f(0xf9)]||new Date()['toISOString'](),[TestFrameworkConstants[_0x39289f(0x134)]]:new Date()['toISOString'](),[TestFrameworkConstants[_0x39289f(0x17f)]]:_0x125900,[TestFrameworkConstants['KEY_LOGS']]:[],[TestFrameworkConstants[_0x39289f(0x16c)]]:_0x4fa466[_0x39289f(0x1b5)]||{}};_0x5065ad['pygKA'](_0x4fa466[_0x39289f(0x116)],_0x5065ad[_0x39289f(0x18d)])&&_0x4fa466[_0x39289f(0x106)]&&(_0x106253[TestFrameworkConstants[_0x39289f(0x108)]]=_0x4fa466[_0x39289f(0x1a9)]||_0x5065ad['FZqKG'],_0x106253[TestFrameworkConstants[_0x39289f(0x176)]]=_0x4fa466['failure_reason']||'',_0x106253[TestFrameworkConstants[_0x39289f(0x173)]]=_0x4fa466['failure']);const _0x204310=TestInfo[_0x39289f(0x112)](_0x24a522)[TestFrameworkConstants[_0x39289f(0x109)]]||{},_0x4101eb=_0x5065ad[_0x39289f(0x1b0)](getManualUploadLogs,_0x204310,_0x315ead['getAllData']()[_0x39289f(0x179)](_0x24a522)[TestFrameworkConstants['KEY_TEST_UUID']]);if(_0x5065ad[_0x39289f(0x11b)](_0x4101eb['length'],0x0)){const _0x3d556a=_0x106253[TestFrameworkConstants[_0x39289f(0x17d)]]||[];_0x106253[TestFrameworkConstants[_0x39289f(0x17d)]]=[..._0x3d556a,..._0x4101eb];}_0x4fa466[_0x39289f(0x14f)]&&_0x5065ad[_0x39289f(0x11c)](_0x4fa466[_0x39289f(0x14f)][_0x39289f(0xfb)],0x0)&&(_0x106253[TestFrameworkConstants[_0x39289f(0x18f)]]=_0x4fa466[_0x39289f(0x14f)]);TestInfo[_0x39289f(0x11a)](_0x24a522,_0x106253),logger['debug'](_0x39289f(0x1b3)+_0x4fa466[_0x39289f(0x1a6)]+_0x39289f(0x1be)+_0x4fa466[_0x39289f(0x116)]);const _0xa5212d={};return _0xa5212d[_0x24a522]=_0x106253,_0xa5212d;}async[a74_0x5ad189(0x129)](_0x12f0b0,_0x1995d9,_0x333c77,_0x39a5f7){const _0xe7bb4=a74_0x5ad189,_0x340b2e={'UdEPU':_0xe7bb4(0x133),'KnYSf':function(_0x1bbe53){return _0x1bbe53();},'lmQZm':function(_0x198c26,_0x668b6f){return _0x198c26 in _0x668b6f;},'pyFAu':function(_0x3c0609,_0x11d8c4){return _0x3c0609===_0x11d8c4;},'PbmFN':function(_0x5bac00,_0x160296){return _0x5bac00>_0x160296;},'AzYar':'failed','BZVPm':'UnhandledError','NwIRK':_0xe7bb4(0x159),'KDpIA':function(_0x9c2241,_0x595531){return _0x9c2241!==_0x595531;}},{hookData:_0x9efc5}=_0x39a5f7;if(!_0x9efc5)return logger[_0xe7bb4(0x188)](_0x340b2e[_0xe7bb4(0x1c4)]),{};const _0x5ee813=_0x9efc5[_0xe7bb4(0x1ac)]||_0x340b2e[_0xe7bb4(0x18a)](uuidv4),_0x3fc4f8=_0x9efc5[_0xe7bb4(0x119)],_0x2343dd=_0x1995d9[_0xe7bb4(0x1a4)]()[_0xe7bb4(0x124)]('.')[0x1],_0x10ee9f=TestInfo[_0xe7bb4(0x112)](_0x3fc4f8)[TestFrameworkConstants[_0xe7bb4(0x17f)]]||{},_0x58088f=_0x12f0b0[_0xe7bb4(0x1c1)]()[_0xe7bb4(0x179)](_0x3fc4f8);if(!_0x58088f)return logger[_0xe7bb4(0x188)]('No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x3fc4f8+_0xe7bb4(0x149)),this[_0xe7bb4(0x1a8)](_0x12f0b0,_0x3fc4f8,_0x1995d9,_0x333c77,_0x39a5f7),{};let _0x3ba2ad=_0x58088f[TestFrameworkConstants[_0xe7bb4(0x100)]];!_0x3ba2ad&&(_0x3ba2ad={});!_0x340b2e[_0xe7bb4(0x19a)](_0x2343dd,_0x3ba2ad)&&(_0x3ba2ad[_0x2343dd]=[]);let _0xd88517=_0x58088f[TestFrameworkConstants[_0xe7bb4(0x18f)]];!_0xd88517&&(_0xd88517={});!_0x340b2e[_0xe7bb4(0x19a)](_0x2343dd,_0xd88517)&&(_0xd88517[_0x2343dd]=[]);const _0x1a0941={[TestFrameworkConstants['KEY_HOOKS_STARTED']]:_0x3ba2ad,[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:_0xd88517},_0x117083={};_0x117083[_0x3fc4f8]=_0x1a0941;const _0x3a6ebe=_0x117083;if(_0x340b2e[_0xe7bb4(0xf4)](_0x333c77,HookState['PRE'])){const _0x3cf011={[TestFrameworkConstants['KEY_HOOK_ID']]:_0x5ee813,[TestFrameworkConstants[_0xe7bb4(0x14c)]]:TestFrameworkConstants[_0xe7bb4(0x103)],[TestFrameworkConstants[_0xe7bb4(0x15f)]]:_0x9efc5['started_at'],[TestFrameworkConstants['KEY_HOOK_LOGS']]:[],[TestFrameworkConstants[_0xe7bb4(0x105)]]:_0x9efc5[_0xe7bb4(0x11f)],[TestFrameworkConstants[_0xe7bb4(0x17f)]]:_0x10ee9f};_0x3cf011[_0xe7bb4(0x169)]=_0x2343dd;const _0xa7aa57=_0x3cf011;_0x3ba2ad[_0x2343dd]['push'](_0xa7aa57),_0x3a6ebe[_0x3fc4f8][TestFrameworkConstants['KEY_HOOK_LAST_STARTED']]=_0x2343dd,logger[_0xe7bb4(0x188)](_0xe7bb4(0xfe)+_0x2343dd+'\x20&\x20hook\x20=\x20'+_0xa7aa57+_0xe7bb4(0x146)+_0x39a5f7);}else{if(_0x340b2e[_0xe7bb4(0xf4)](_0x333c77,HookState[_0xe7bb4(0x12e)])){const _0x1021d0=_0x9efc5[_0xe7bb4(0x116)],_0x253859=_0x3ba2ad[_0x2343dd]||[];logger[_0xe7bb4(0x188)](_0xe7bb4(0x195)+_0x253859+_0xe7bb4(0x10a)+_0x39a5f7);if(_0x340b2e[_0xe7bb4(0x14a)](_0x253859[_0xe7bb4(0xfb)],0x0)){const _0xe89518=_0x253859[_0xe7bb4(0x185)]();_0x340b2e[_0xe7bb4(0xf4)](_0x9efc5[_0xe7bb4(0x116)],_0x340b2e['AzYar'])&&_0x9efc5[_0xe7bb4(0x160)]?(_0xe89518[TestFrameworkConstants[_0xe7bb4(0x157)]]=_0x9efc5['failure_type']||_0x340b2e[_0xe7bb4(0x174)],_0xe89518[TestFrameworkConstants[_0xe7bb4(0x12f)]]=_0x9efc5['failure_reason']||'',_0xe89518[TestFrameworkConstants[_0xe7bb4(0x12c)]]=_0x9efc5[_0xe7bb4(0x160)]):_0xe89518[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x340b2e['NwIRK'];_0x340b2e['KDpIA'](_0x1021d0,TestFrameworkConstants[_0xe7bb4(0x103)])&&(_0xe89518[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x1021d0);_0xe89518[TestFrameworkConstants[_0xe7bb4(0x1a5)]]=_0x9efc5[_0xe7bb4(0x1ba)]||new Date()['toISOString'](),_0xe89518[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x10ee9f;const _0x37d1dc=_0xe89518[TestFrameworkConstants['KEY_HOOK_ID']];!_0xd88517[_0x2343dd]&&(_0xd88517[_0x2343dd]=[]),_0xd88517[_0x2343dd]['push'](_0xe89518),_0x3a6ebe[_0x3fc4f8][TestFrameworkConstants[_0xe7bb4(0xf5)]]=_0x2343dd;}}}return logger['debug'](_0xe7bb4(0x158)+_0x9efc5['hook_type']+_0xe7bb4(0x141)+_0x5ee813+_0xe7bb4(0x12d)+_0x3fc4f8),_0x3a6ebe;}[a74_0x5ad189(0x120)](_0x5cd426){const _0x5a1332=a74_0x5ad189,_0x4da15c={};_0x4da15c['ofKHC']=_0x5a1332(0x171);const _0x35f494=_0x4da15c;try{const _0xf3cef8=_0x5cd426['test']?_0x5cd426[_0x5a1332(0x198)]['id']:_0x5cd426[_0x5a1332(0x151)]['test_run_id'],_0x378bc7=_0x5cd426[_0x5a1332(0xf6)],_0x2a39b7=_0x378bc7[_0x5a1332(0x16a)](),_0x443237=_0x378bc7[_0x5a1332(0x1c1)]()[_0x5a1332(0x179)](_0xf3cef8);if(!_0x443237)return logger['debug'](_0x5a1332(0x145)+_0xf3cef8),{};logger[_0x5a1332(0x188)](_0x5a1332(0x16e)+_0xf3cef8);const {[TestFrameworkConstants[_0x5a1332(0x1b1)]]:_0x2ddce0='',[TestFrameworkConstants[_0x5a1332(0x150)]]:_0x4afb25='',[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x4625b5='',[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x464832=''}=_0x443237,_0x349fc0=_0x378bc7[_0x5a1332(0x115)]()['toString']()['split']('.')[0x1],_0x357f20=_0x378bc7['getCurrentHookState']()['toString']()['split']('.')[0x1],_0x8189e7=global?.['browserstackPlatformIndex']??0x0,_0x4674b0=_0x378bc7[_0x5a1332(0x1b2)](),_0x14ccf7=Buffer['from'](JSON[_0x5a1332(0x13a)](_0x443237))[_0x5a1332(0x1a4)](_0x35f494[_0x5a1332(0x12a)]),_0x410414={'hash':_0x2a39b7[_0x5a1332(0x155)](),'threadId':_0x2a39b7[_0x5a1332(0x139)]()[_0x5a1332(0x1a4)](),'processId':_0x2a39b7[_0x5a1332(0x15c)]()['toString']()},_0x517801={};_0x517801[_0x5a1332(0x189)]=_0x8189e7,_0x517801[_0x5a1332(0x1ad)]=_0x2ddce0,_0x517801['testFrameworkVersion']=_0x4afb25,_0x517801[_0x5a1332(0x16d)]=_0x349fc0,_0x517801[_0x5a1332(0x117)]=_0x357f20,_0x517801[_0x5a1332(0x191)]=_0x4625b5,_0x517801[_0x5a1332(0xf2)]=_0x464832,_0x517801[_0x5a1332(0x1ac)]=_0x4674b0,_0x517801[_0x5a1332(0x165)]=_0x14ccf7,_0x517801['executionContext']=_0x410414;const _0x16be2d=_0x517801;return logger['debug'](_0x5a1332(0x163)+_0xf3cef8+_0x5a1332(0x1bc)+_0x349fc0+_0x5a1332(0x1a1)+_0x357f20),_0x16be2d;}catch(_0x530e17){return logger[_0x5a1332(0x1a3)]('Error\x20in\x20createTestFrameworkEventPayload:\x20'+util[_0x5a1332(0x13c)](_0x530e17)),{};}}async[a74_0x5ad189(0x1bf)](_0x8e36f9,_0x46b646,_0x2f8450){const _0x5aaff5=a74_0x5ad189,_0xb35010={'fcRTr':function(_0x37b567,_0x3271e4,_0x39af1a){return _0x37b567(_0x3271e4,_0x39af1a);},'WSTPV':function(_0x5a97ad,_0x3dd5cd){return _0x5a97ad===_0x3dd5cd;},'hETIZ':'sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','gYFiY':function(_0x276152,_0x325931){return _0x276152/_0x325931;},'DxNGl':function(_0x437d67,_0x1313a0){return _0x437d67<_0x1313a0;},'zZdME':function(_0x43d627,_0x62e437){return _0x43d627*_0x62e437;},'XzuxR':function(_0x31a963,_0x12e790){return _0x31a963+_0x12e790;},'ktXLJ':function(_0x3ddca2,_0x489e4d){return _0x3ddca2+_0x489e4d;},'zyPtF':function(_0x2bd34e,_0x2b7f0f){return _0x2bd34e+_0x2b7f0f;},'tiyCE':'Cucumber\x20log\x20created\x20event'};try{const _0x4eea36=_0x2f8450[_0x5aaff5(0x12b)],_0x3c2bb1=_0x8e36f9[_0x5aaff5(0x1c1)]()[_0x5aaff5(0x179)](_0x4eea36),{[TestFrameworkConstants[_0x5aaff5(0x1b1)]]:_0x1587b8='',[TestFrameworkConstants[_0x5aaff5(0x150)]]:_0x2031f9=''}=_0x3c2bb1,_0x398704=TestInfo[_0x5aaff5(0x161)](_0x4eea36),_0x32b806=TestInfo[_0x5aaff5(0x112)](_0x4eea36)[TestFrameworkConstants[_0x5aaff5(0x109)]]||{},_0x166637=_0xb35010[_0x5aaff5(0x10f)](getMediaArtifactsLogs,_0x32b806,_0x8e36f9['getAllData']()[_0x5aaff5(0x179)](_0x4eea36)[TestFrameworkConstants[_0x5aaff5(0x162)]]),_0xdebf3f=(_0x398704||[])[_0x5aaff5(0x180)](_0x166637||[]);if(!_0xdebf3f||_0xb35010[_0x5aaff5(0x113)](_0xdebf3f[_0x5aaff5(0xfb)],0x0)){logger[_0x5aaff5(0x188)](_0xb35010[_0x5aaff5(0x19f)]);return;}const _0x4797ab=0x28,_0xeccb29=Math['ceil'](_0xb35010[_0x5aaff5(0x172)](_0xdebf3f[_0x5aaff5(0xfb)],_0x4797ab));for(let _0x4433ce=0x0;_0xb35010[_0x5aaff5(0x167)](_0x4433ce,_0xeccb29);_0x4433ce++){const _0x29d900=_0xb35010['zZdME'](_0x4433ce,_0x4797ab),_0x150bf1=_0xb35010['XzuxR'](_0x29d900,_0x4797ab),_0x6f6370=_0xdebf3f[_0x5aaff5(0x1af)](_0x29d900,_0x150bf1),_0x14b250={'platformIndex':global?.[_0x5aaff5(0xfc)]??0x0,'logs':_0x6f6370,'testFrameworkName':_0x1587b8,'testFrameworkVersion':_0x2031f9,'testFrameworkState':_0x46b646['toString']()['split']('.')[0x1]};logger[_0x5aaff5(0x188)](_0x5aaff5(0x153)+_0x4eea36+_0x5aaff5(0x135)+_0xb35010['ktXLJ'](_0x4433ce,0x1)+'/'+_0xeccb29+_0x5aaff5(0x16f)+util[_0x5aaff5(0x1ab)](_0x14b250));const _0x390490=await GrpcClient[_0x5aaff5(0x127)]()['logCreatedEvent'](_0x14b250);logger[_0x5aaff5(0x188)](_0x5aaff5(0x153)+_0x4eea36+_0x5aaff5(0x135)+_0xb35010[_0x5aaff5(0x122)](_0x4433ce,0x1)+'/'+_0xeccb29+_0x5aaff5(0x11d)+util[_0x5aaff5(0x1ab)](_0x390490));}}catch(_0x533cb1){logger[_0x5aaff5(0x1a3)](_0x5aaff5(0x15a)+util[_0x5aaff5(0x13c)](_0x533cb1));}logger[_0x5aaff5(0x188)](_0xb35010[_0x5aaff5(0x1b9)]);}['storePendingHook'](_0x200e4c,_0x21c01b,_0x440a04,_0x3850b2,_0x3d939f){const _0x1250b6=a74_0x5ad189,_0x46f621={'testId':_0x21c01b,'testFrameworkState':_0x440a04,'hookState':_0x3850b2,'args':_0x3d939f,'timestamp':new Date()[_0x1250b6(0x194)]()};_0x200e4c[_0x1250b6(0x1ae)](_0x21c01b,_0x46f621),logger['debug'](_0x1250b6(0x104)+_0x21c01b+_0x1250b6(0x101)+_0x440a04+_0x1250b6(0x170)+_0x3850b2);}async[a74_0x5ad189(0x107)](_0x2ef3b5,_0x24aa80){const _0x448c59=a74_0x5ad189,_0xfe8947={};_0xfe8947[_0x448c59(0x10e)]=function(_0x1e3ab4,_0x58417e){return _0x1e3ab4>_0x58417e;};const _0xf2ba22=_0xfe8947;if(!_0x2ef3b5['hasPendingHooks'](_0x24aa80))return;const _0x42a69f=_0x2ef3b5[_0x448c59(0xff)](_0x24aa80);logger['debug'](_0x448c59(0x14b)+_0x42a69f[_0x448c59(0xfb)]+_0x448c59(0x1bb)+_0x24aa80);for(const _0x34086a of _0x42a69f){try{const _0xc98c8c=await this[_0x448c59(0x129)](_0x2ef3b5,_0x34086a[_0x448c59(0x16d)],_0x34086a['hookState'],_0x34086a[_0x448c59(0x114)]);_0xc98c8c&&_0xf2ba22[_0x448c59(0x10e)](Object['keys'](_0xc98c8c)[_0x448c59(0xfb)],0x0)&&_0x2ef3b5[_0x448c59(0x1b6)](_0xc98c8c),await this[_0x448c59(0x1c0)](_0x2ef3b5,_0x34086a[_0x448c59(0x16d)],_0x34086a[_0x448c59(0x117)],_0x34086a['args']);}catch(_0x2b1e14){logger[_0x448c59(0x1a3)](_0x448c59(0x10c)+_0x24aa80+_0x448c59(0x17e)+_0x2b1e14);}}_0x2ef3b5[_0x448c59(0x126)](_0x24aa80),logger[_0x448c59(0x188)](_0x448c59(0x123)+_0x24aa80);}}module[a74_0x5ad189(0x144)]=CucumberTestFramework;
1
+ const a74_0x56851c=a74_0x48ee;function a74_0x48ee(_0x307736,_0x79e3d){const _0x59bdcb=a74_0x59bd();return a74_0x48ee=function(_0x48ee71,_0x5cdd0a){_0x48ee71=_0x48ee71-0x1f1;let _0x3c7585=_0x59bdcb[_0x48ee71];return _0x3c7585;},a74_0x48ee(_0x307736,_0x79e3d);}(function(_0x361ff5,_0x5714ba){const _0xebfe7b=a74_0x48ee,_0x46fc39=_0x361ff5();while(!![]){try{const _0x4f0f79=parseInt(_0xebfe7b(0x21c))/0x1*(-parseInt(_0xebfe7b(0x229))/0x2)+parseInt(_0xebfe7b(0x20c))/0x3*(-parseInt(_0xebfe7b(0x28a))/0x4)+parseInt(_0xebfe7b(0x203))/0x5*(parseInt(_0xebfe7b(0x21d))/0x6)+parseInt(_0xebfe7b(0x2b9))/0x7*(parseInt(_0xebfe7b(0x218))/0x8)+parseInt(_0xebfe7b(0x28f))/0x9+-parseInt(_0xebfe7b(0x2b6))/0xa+parseInt(_0xebfe7b(0x20e))/0xb;if(_0x4f0f79===_0x5714ba)break;else _0x46fc39['push'](_0x46fc39['shift']());}catch(_0x392d00){_0x46fc39['push'](_0x46fc39['shift']());}}}(a74_0x59bd,0xbec8e));const TestFramework=require('./testFramework'),TestFrameworkState=require(a74_0x56851c(0x253)),HookState=require(a74_0x56851c(0x2b1)),{createClassLogger}=require('../../../helpers/classLogger.js'),TestFrameworkInstance=require('../instances/testFrameworkInstance.js'),CLIUtils=require(a74_0x56851c(0x29d)),TrackedInstance=require(a74_0x56851c(0x25a)),TestFrameworkConstants=require(a74_0x56851c(0x1fb)),{getManualUploadLogs,getMediaArtifactsLogs}=require('../../../helpers/helper.js'),logger=createClassLogger(a74_0x56851c(0x232)),{v4:uuidv4}=require('uuid'),util=require(a74_0x56851c(0x24e)),TestInfo=require(a74_0x56851c(0x290)),GrpcClient=require('../grpcClient');class CucumberTestFramework extends TestFramework{constructor(_0x1681d9,_0x57eb69,_0x23a67e){super(_0x1681d9,_0x57eb69,_0x23a67e);}async[a74_0x56851c(0x249)](_0x1c36bf,_0xe39339,_0x2c871f={}){const _0x115894=a74_0x56851c,_0x3108b8={};_0x3108b8[_0x115894(0x227)]='trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found',_0x3108b8[_0x115894(0x23c)]=function(_0x17b2c8,_0x29b151){return _0x17b2c8===_0x29b151;},_0x3108b8[_0x115894(0x282)]=function(_0x557667,_0x3a732a){return _0x557667===_0x3a732a;},_0x3108b8['gLujB']=_0x115894(0x212);const _0x374d8b=_0x3108b8;await super[_0x115894(0x249)](_0x1c36bf,_0xe39339,_0x2c871f);const _0x4dbf25=this[_0x115894(0x217)](_0x1c36bf,_0xe39339,_0x2c871f);if(!_0x4dbf25){logger[_0x115894(0x1f7)](_0x374d8b[_0x115894(0x227)]);return;}try{let _0x5dc706,_0x1f4adf;switch(_0x1c36bf){case TestFrameworkState[_0x115894(0x2ad)]:_0x5dc706=_0x2c871f[_0x115894(0x295)],_0x1f4adf=TestInfo['getTestUUID'](_0x5dc706['id']);if(_0x374d8b[_0x115894(0x23c)](_0xe39339,HookState['PRE'])){logger[_0x115894(0x1f7)]('trackEvent\x20loading\x20testData\x20for\x20testId:\x20'+_0x5dc706['id']);const _0x4b574d={};_0x4b574d[_0x115894(0x223)]=_0x1f4adf,_0x4b574d[_0x115894(0x23a)]=_0x5dc706,_0x4dbf25['addMultipleEntries'](this[_0x115894(0x2bb)](_0x4b574d)),logger[_0x115894(0x1f7)](_0x115894(0x2b0)+_0x5dc706['id']),await this[_0x115894(0x2a2)](_0x4dbf25,_0x5dc706['id']);}else{if(_0x374d8b[_0x115894(0x23c)](_0xe39339,HookState['POST'])){const _0x4bf265={};_0x4bf265[_0x115894(0x223)]=_0x1f4adf,_0x4bf265[_0x115894(0x23a)]=_0x5dc706,_0x4dbf25[_0x115894(0x28e)](this[_0x115894(0x27f)](_0x4bf265)),await this[_0x115894(0x2a2)](_0x4dbf25,_0x5dc706['id']);}}break;case TestFrameworkState[_0x115894(0x283)]:_0x374d8b[_0x115894(0x282)](_0xe39339,HookState[_0x115894(0x250)])&&await this[_0x115894(0x209)](_0x4dbf25,_0x1c36bf,_0x2c871f);break;default:if(CLIUtils['matchHookRegex'](_0x1c36bf[_0x115894(0x25e)]()[_0x115894(0x2b3)]('.')[0x1])){const _0x232314=await this['trackHookEvent'](_0x4dbf25,_0x1c36bf,_0xe39339,_0x2c871f);_0x4dbf25[_0x115894(0x28e)](_0x232314);}else logger[_0x115894(0x1f7)](_0x115894(0x25c)+_0x1c36bf+'\x20&\x20hookState='+_0xe39339);break;}}catch(_0xaab882){logger[_0x115894(0x26c)](util[_0x115894(0x287)](_0x374d8b[_0x115894(0x1f6)],_0x1c36bf,_0xe39339,_0x2c871f[_0x115894(0x29b)],_0xaab882));}_0x2c871f[_0x115894(0x237)]=_0x4dbf25,await this['runHooks'](_0x4dbf25,_0x1c36bf,_0xe39339,_0x2c871f);}['resolveInstance'](_0x952dec,_0x12771c,_0x452cbb={}){const _0x44b4b5=a74_0x56851c,_0x47f053={};_0x47f053['yyBxz']=function(_0x599b8c,_0xd54a76){return _0x599b8c===_0xd54a76;};const _0x14cead=_0x47f053;let _0x338e88=null;return(_0x14cead['yyBxz'](_0x952dec,TestFrameworkState[_0x44b4b5(0x211)])||_0x14cead[_0x44b4b5(0x257)](_0x952dec,TestFrameworkState['NONE']))&&this[_0x44b4b5(0x285)](_0x952dec,_0x452cbb),_0x338e88=TestFramework[_0x44b4b5(0x2af)](),_0x338e88;}[a74_0x56851c(0x285)](_0x3660a6,_0x1ea592){const _0x9dd4e=a74_0x56851c,_0x331810=CLIUtils[_0x9dd4e(0x27d)](),_0x357b94=TrackedInstance[_0x9dd4e(0x2ab)](_0x331810);let _0x446547=null;logger['debug'](_0x9dd4e(0x1fe)+_0x331810+_0x9dd4e(0x247)+_0x3660a6),_0x446547=new TestFrameworkInstance(_0x357b94,this[_0x9dd4e(0x281)](),this[_0x9dd4e(0x269)](),_0x3660a6,HookState['NONE']),TestFramework[_0x9dd4e(0x296)](_0x357b94,_0x446547),logger[_0x9dd4e(0x1f7)](_0x9dd4e(0x262)+_0x357b94['getId']()+_0x9dd4e(0x258)+_0x331810);}[a74_0x56851c(0x2bb)](_0x344967){const _0x273649=a74_0x56851c,_0x408885={};_0x408885['HVqYt']=_0x273649(0x222);const _0x4988bd=_0x408885,{testUUID:_0x1d634a,testData:_0x17546b}=_0x344967;if(!_0x17546b||!_0x17546b[_0x273649(0x276)])return logger['debug'](_0x4988bd['HVqYt']),{};const _0x5c1dc6=_0x1d634a,_0x1618e8=_0x17546b[_0x273649(0x276)],_0x36cb86=this[_0x273649(0x281)]()[0x0],_0x3f1c5e=this[_0x273649(0x269)](),_0x11a829={[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x36cb86,[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x3f1c5e[_0x36cb86],[TestFrameworkConstants[_0x273649(0x23d)]]:[],[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:{},[TestFrameworkConstants[_0x273649(0x220)]]:{},[TestFrameworkConstants['KEY_TEST_UUID']]:_0x5c1dc6,[TestFrameworkConstants[_0x273649(0x26f)]]:TestFrameworkConstants[_0x273649(0x1f8)],[TestFrameworkConstants[_0x273649(0x2a7)]]:_0x17546b[_0x273649(0x24b)]||'',[TestFrameworkConstants['KEY_TEST_FILE_PATH']]:_0x17546b[_0x273649(0x20f)]||'',[TestFrameworkConstants[_0x273649(0x270)]]:_0x1618e8,[TestFrameworkConstants[_0x273649(0x29f)]]:_0x17546b[_0x273649(0x24b)]||'',[TestFrameworkConstants[_0x273649(0x22f)]]:_0x17546b['location']||'',[TestFrameworkConstants[_0x273649(0x2b7)]]:_0x17546b['body']?.[_0x273649(0x1fc)]||null,[TestFrameworkConstants[_0x273649(0x266)]]:_0x17546b[_0x273649(0x201)]||[],[TestFrameworkConstants[_0x273649(0x235)]]:_0x17546b[_0x273649(0x23b)]||new Date()[_0x273649(0x20a)](),[TestFrameworkConstants['KEY_TEST_SCOPE']]:_0x17546b[_0x273649(0x24a)]?.[0x0]||'',[TestFrameworkConstants['KEY_TEST_SCOPES']]:_0x17546b['scopes']||[],[TestFrameworkConstants[_0x273649(0x245)]]:_0x17546b[_0x273649(0x29e)]?.['rerun_name']||_0x17546b[_0x273649(0x24b)]||'',[TestFrameworkConstants[_0x273649(0x299)]]:{},[TestFrameworkConstants[_0x273649(0x24d)]]:_0x17546b[_0x273649(0x246)]||{}};TestInfo['setTestDetails'](_0x1618e8,_0x11a829),logger[_0x273649(0x1f7)](_0x273649(0x273)+_0x17546b[_0x273649(0x24b)]+_0x273649(0x231)+_0x5c1dc6);const _0x548246={};return _0x548246[_0x1618e8]=_0x11a829,_0x548246;}[a74_0x56851c(0x27f)](_0x31b329){const _0x508e0a=a74_0x56851c,_0xcedc01={'ZKDeX':_0x508e0a(0x288),'UJpVk':_0x508e0a(0x286),'VJyEI':function(_0x5a4e48,_0x312d18){return _0x5a4e48===_0x312d18;},'PEKXr':_0x508e0a(0x1f2),'zYjUO':_0x508e0a(0x241),'Xldbe':function(_0x18257f,_0x3d6bb1,_0x2682ca){return _0x18257f(_0x3d6bb1,_0x2682ca);},'zHeoT':function(_0x34729a,_0x580953){return _0x34729a>_0x580953;},'APUqV':function(_0x263840,_0x12d2f8){return _0x263840>_0x12d2f8;}},{testUUID:_0x297b67,testData:_0x38f421}=_0x31b329;if(!_0x38f421||!_0x38f421[_0x508e0a(0x276)])return logger['debug'](_0xcedc01[_0x508e0a(0x1fa)]),{};const _0xb01d69=this[_0x508e0a(0x217)](TestFrameworkState[_0x508e0a(0x2ad)],HookState[_0x508e0a(0x250)]),_0x268834=_0x38f421[_0x508e0a(0x276)],_0x2d4b48=TestInfo['getTestDetails'](_0x268834)||{},_0x51d097=_0x2d4b48?_0x2d4b48[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{}:{},_0x1803b9={..._0x2d4b48,[TestFrameworkConstants[_0x508e0a(0x26f)]]:_0x38f421['result']||_0xcedc01[_0x508e0a(0x221)],[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x38f421[_0x508e0a(0x200)]||new Date()[_0x508e0a(0x20a)](),[TestFrameworkConstants[_0x508e0a(0x26a)]]:new Date()[_0x508e0a(0x20a)](),[TestFrameworkConstants[_0x508e0a(0x299)]]:_0x51d097,[TestFrameworkConstants[_0x508e0a(0x255)]]:[],[TestFrameworkConstants[_0x508e0a(0x24d)]]:_0x38f421[_0x508e0a(0x246)]||{}};_0xcedc01[_0x508e0a(0x280)](_0x38f421[_0x508e0a(0x230)],_0xcedc01[_0x508e0a(0x208)])&&_0x38f421[_0x508e0a(0x2b4)]&&(_0x1803b9[TestFrameworkConstants[_0x508e0a(0x25b)]]=_0x38f421['failure_type']||_0xcedc01['zYjUO'],_0x1803b9[TestFrameworkConstants['KEY_TEST_FAILURE_REASON']]=_0x38f421[_0x508e0a(0x25f)]||'',_0x1803b9[TestFrameworkConstants[_0x508e0a(0x2a9)]]=_0x38f421['failure']);const _0x4097e4=TestInfo['getTestDetails'](_0x268834)[TestFrameworkConstants[_0x508e0a(0x2a6)]]||{},_0x4beb6d=_0xcedc01['Xldbe'](getManualUploadLogs,_0x4097e4,_0xb01d69[_0x508e0a(0x228)]()[_0x508e0a(0x224)](_0x268834)[TestFrameworkConstants[_0x508e0a(0x267)]]);if(_0xcedc01['zHeoT'](_0x4beb6d['length'],0x0)){const _0x26c84a=_0x1803b9[TestFrameworkConstants[_0x508e0a(0x255)]]||[];_0x1803b9[TestFrameworkConstants[_0x508e0a(0x255)]]=[..._0x26c84a,..._0x4beb6d];}_0x38f421[_0x508e0a(0x26d)]&&_0xcedc01[_0x508e0a(0x214)](_0x38f421[_0x508e0a(0x26d)][_0x508e0a(0x29b)],0x0)&&(_0x1803b9[TestFrameworkConstants[_0x508e0a(0x2aa)]]=_0x38f421['hooks']);TestInfo[_0x508e0a(0x210)](_0x268834,_0x1803b9),logger[_0x508e0a(0x1f7)](_0x508e0a(0x272)+_0x38f421[_0x508e0a(0x24b)]+_0x508e0a(0x29a)+_0x38f421[_0x508e0a(0x230)]);const _0x554b46={};return _0x554b46[_0x268834]=_0x1803b9,_0x554b46;}async['trackHookEvent'](_0x18105c,_0x20ff23,_0x18ccfd,_0x4c0f73){const _0x2d4ee2=a74_0x56851c,_0xed8655={'eWDlq':_0x2d4ee2(0x22e),'QIlmQ':function(_0x48182a){return _0x48182a();},'bLkMI':function(_0x451370,_0x119e8f){return _0x451370 in _0x119e8f;},'bhKRs':function(_0x5e233b,_0x13ef91){return _0x5e233b in _0x13ef91;},'acjYa':function(_0x49f31b,_0x1ea5ed){return _0x49f31b===_0x1ea5ed;},'vJtBG':function(_0x2ac228,_0x5752aa){return _0x2ac228>_0x5752aa;},'uuMrv':_0x2d4ee2(0x1f2),'XMUhz':'UnhandledError','GGDcU':'passed','nzcWd':function(_0x3c5928,_0xcce14b){return _0x3c5928!==_0xcce14b;}},{hookData:_0x35fd90}=_0x4c0f73;if(!_0x35fd90)return logger['debug'](_0xed8655['eWDlq']),{};const _0x9fb894=_0x35fd90[_0x2d4ee2(0x276)]||_0xed8655[_0x2d4ee2(0x22d)](uuidv4),_0x3d82a1=_0x35fd90['test_run_id'],_0x5c895e=_0x20ff23[_0x2d4ee2(0x25e)]()[_0x2d4ee2(0x2b3)]('.')[0x1],_0x435662=TestInfo['getTestDetails'](_0x3d82a1)[TestFrameworkConstants[_0x2d4ee2(0x299)]]||{},_0x4762ed=_0x18105c['getAllData']()[_0x2d4ee2(0x224)](_0x3d82a1);if(!_0x4762ed)return logger[_0x2d4ee2(0x1f7)]('No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x3d82a1+_0x2d4ee2(0x254)),this[_0x2d4ee2(0x1f3)](_0x18105c,_0x3d82a1,_0x20ff23,_0x18ccfd,_0x4c0f73),{};let _0x27ff74=_0x4762ed[TestFrameworkConstants[_0x2d4ee2(0x220)]];!_0x27ff74&&(_0x27ff74={});!_0xed8655[_0x2d4ee2(0x2a0)](_0x5c895e,_0x27ff74)&&(_0x27ff74[_0x5c895e]=[]);let _0x3a63eb=_0x4762ed[TestFrameworkConstants['KEY_HOOKS_FINISHED']];!_0x3a63eb&&(_0x3a63eb={});!_0xed8655[_0x2d4ee2(0x275)](_0x5c895e,_0x3a63eb)&&(_0x3a63eb[_0x5c895e]=[]);const _0x39855={[TestFrameworkConstants['KEY_HOOKS_STARTED']]:_0x27ff74,[TestFrameworkConstants[_0x2d4ee2(0x2aa)]]:_0x3a63eb},_0x2551b9={};_0x2551b9[_0x3d82a1]=_0x39855;const _0x4daa96=_0x2551b9;if(_0xed8655[_0x2d4ee2(0x261)](_0x18ccfd,HookState['PRE'])){const _0x28c77a={[TestFrameworkConstants[_0x2d4ee2(0x2a5)]]:_0x9fb894,[TestFrameworkConstants[_0x2d4ee2(0x239)]]:TestFrameworkConstants['DEFAULT_HOOK_RESULT'],[TestFrameworkConstants[_0x2d4ee2(0x1f5)]]:_0x35fd90['started_at'],[TestFrameworkConstants[_0x2d4ee2(0x28b)]]:[],[TestFrameworkConstants[_0x2d4ee2(0x260)]]:_0x35fd90[_0x2d4ee2(0x202)],[TestFrameworkConstants[_0x2d4ee2(0x299)]]:_0x435662};_0x28c77a[_0x2d4ee2(0x24f)]=_0x5c895e;const _0x3818b7=_0x28c77a;_0x27ff74[_0x5c895e][_0x2d4ee2(0x22a)](_0x3818b7),_0x4daa96[_0x3d82a1][TestFrameworkConstants[_0x2d4ee2(0x2ac)]]=_0x5c895e,logger['debug'](_0x2d4ee2(0x28d)+_0x5c895e+'\x20&\x20hook\x20=\x20'+_0x3818b7+_0x2d4ee2(0x21e)+_0x4c0f73);}else{if(_0xed8655[_0x2d4ee2(0x261)](_0x18ccfd,HookState[_0x2d4ee2(0x250)])){const _0x4b33ce=_0x35fd90[_0x2d4ee2(0x230)],_0x2c406e=_0x27ff74[_0x5c895e]||[];logger[_0x2d4ee2(0x1f7)](_0x2d4ee2(0x2a1)+_0x2c406e+'\x20and\x20args\x20=\x20'+_0x4c0f73);if(_0xed8655[_0x2d4ee2(0x293)](_0x2c406e[_0x2d4ee2(0x29b)],0x0)){const _0x16a915=_0x2c406e[_0x2d4ee2(0x294)]();_0xed8655['acjYa'](_0x35fd90['result'],_0xed8655[_0x2d4ee2(0x2b8)])&&_0x35fd90['failure_data']?(_0x16a915[TestFrameworkConstants[_0x2d4ee2(0x268)]]=_0x35fd90[_0x2d4ee2(0x27c)]||_0xed8655[_0x2d4ee2(0x204)],_0x16a915[TestFrameworkConstants[_0x2d4ee2(0x27e)]]=_0x35fd90[_0x2d4ee2(0x25f)]||'',_0x16a915[TestFrameworkConstants[_0x2d4ee2(0x243)]]=_0x35fd90[_0x2d4ee2(0x236)]):_0x16a915[TestFrameworkConstants[_0x2d4ee2(0x239)]]=_0xed8655[_0x2d4ee2(0x20b)];_0xed8655[_0x2d4ee2(0x1fd)](_0x4b33ce,TestFrameworkConstants[_0x2d4ee2(0x225)])&&(_0x16a915[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x4b33ce);_0x16a915[TestFrameworkConstants[_0x2d4ee2(0x2a4)]]=_0x35fd90[_0x2d4ee2(0x234)]||new Date()[_0x2d4ee2(0x20a)](),_0x16a915[TestFrameworkConstants[_0x2d4ee2(0x299)]]=_0x435662;const _0x2df8c1=_0x16a915[TestFrameworkConstants['KEY_HOOK_ID']];!_0x3a63eb[_0x5c895e]&&(_0x3a63eb[_0x5c895e]=[]),_0x3a63eb[_0x5c895e][_0x2d4ee2(0x22a)](_0x16a915),_0x4daa96[_0x3d82a1][TestFrameworkConstants[_0x2d4ee2(0x1f4)]]=_0x5c895e;}}}return logger[_0x2d4ee2(0x1f7)]('Tracked\x20cucumber\x20hook\x20event:\x20'+_0x35fd90[_0x2d4ee2(0x202)]+_0x2d4ee2(0x1f1)+_0x9fb894+'\x20for\x20test:\x20'+_0x3d82a1),_0x4daa96;}['createTestFrameworkEventPayload'](_0x2be609){const _0x2864a3=a74_0x56851c,_0x4635f1={};_0x4635f1[_0x2864a3(0x271)]=_0x2864a3(0x26e);const _0x21437e=_0x4635f1;try{const _0x351f71=_0x2be609['test']?_0x2be609[_0x2864a3(0x295)]['id']:_0x2be609[_0x2864a3(0x2a3)][_0x2864a3(0x265)],_0x2b492b=_0x2be609[_0x2864a3(0x237)],_0xeb3e3b=_0x2b492b[_0x2864a3(0x219)](),_0x274d22=_0x2b492b[_0x2864a3(0x228)]()['get'](_0x351f71);if(!_0x274d22)return logger[_0x2864a3(0x1f7)](_0x2864a3(0x226)+_0x351f71),{};logger[_0x2864a3(0x1f7)](_0x2864a3(0x292)+_0x351f71);const {[TestFrameworkConstants[_0x2864a3(0x277)]]:_0x2d43de='',[TestFrameworkConstants[_0x2864a3(0x207)]]:_0x366669='',[TestFrameworkConstants[_0x2864a3(0x235)]]:_0x5e2c69='',[TestFrameworkConstants[_0x2864a3(0x284)]]:_0x5818b0=''}=_0x274d22,_0x5b1d74=_0x2b492b['getCurrentTestState']()[_0x2864a3(0x25e)]()[_0x2864a3(0x2b3)]('.')[0x1],_0x41352c=_0x2b492b[_0x2864a3(0x21b)]()[_0x2864a3(0x25e)]()[_0x2864a3(0x2b3)]('.')[0x1],_0xd0606a=global?.[_0x2864a3(0x297)]??0x0,_0x4f886f=_0x2b492b[_0x2864a3(0x26b)](),_0x5db917=Buffer['from'](JSON[_0x2864a3(0x28c)](_0x274d22))['toString'](_0x21437e['FkeRr']),_0x2d9cfa={'hash':_0xeb3e3b[_0x2864a3(0x29c)](),'threadId':_0xeb3e3b[_0x2864a3(0x264)]()[_0x2864a3(0x25e)](),'processId':_0xeb3e3b['getProcessId']()['toString']()},_0x4aa06b={};_0x4aa06b[_0x2864a3(0x22c)]=_0xd0606a,_0x4aa06b[_0x2864a3(0x291)]=_0x2d43de,_0x4aa06b[_0x2864a3(0x215)]=_0x366669,_0x4aa06b[_0x2864a3(0x2b2)]=_0x5b1d74,_0x4aa06b[_0x2864a3(0x289)]=_0x41352c,_0x4aa06b[_0x2864a3(0x23b)]=_0x5e2c69,_0x4aa06b['endedAt']=_0x5818b0,_0x4aa06b['uuid']=_0x4f886f,_0x4aa06b[_0x2864a3(0x2ae)]=_0x5db917,_0x4aa06b[_0x2864a3(0x21a)]=_0x2d9cfa;const _0x517af1=_0x4aa06b;return logger['debug'](_0x2864a3(0x205)+_0x351f71+_0x2864a3(0x24c)+_0x5b1d74+_0x2864a3(0x2ba)+_0x41352c),_0x517af1;}catch(_0xcbcf8c){return logger[_0x2864a3(0x26c)](_0x2864a3(0x2a8)+util[_0x2864a3(0x287)](_0xcbcf8c)),{};}}async[a74_0x56851c(0x209)](_0x138050,_0x29e14c,_0x13e790){const _0x1af98e=a74_0x56851c,_0x283ac9={'PHsuc':function(_0x456bc6,_0x11b665,_0x2eb2dc){return _0x456bc6(_0x11b665,_0x2eb2dc);},'zCsUS':function(_0x1e8852,_0x91833a){return _0x1e8852===_0x91833a;},'DMNMq':'sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','YHBjL':function(_0x503b48,_0x4d4a66){return _0x503b48/_0x4d4a66;},'qONkb':function(_0x29b188,_0x2d4d13){return _0x29b188<_0x2d4d13;},'mEvhT':function(_0x42c5cb,_0x57336f){return _0x42c5cb*_0x57336f;},'aOWGm':function(_0x16859a,_0x3c614e){return _0x16859a+_0x3c614e;},'xrDeL':_0x1af98e(0x22b)};try{const _0x2f452f=_0x13e790[_0x1af98e(0x223)],_0x3e98c8=_0x138050[_0x1af98e(0x228)]()[_0x1af98e(0x224)](_0x2f452f),{[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x1b4d36='',[TestFrameworkConstants[_0x1af98e(0x207)]]:_0x55b31a=''}=_0x3e98c8,_0x54c79f=TestInfo[_0x1af98e(0x213)](_0x2f452f),_0x5e7ac0=TestInfo[_0x1af98e(0x278)](_0x2f452f)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x47bd59=_0x283ac9[_0x1af98e(0x20d)](getMediaArtifactsLogs,_0x5e7ac0,_0x138050['getAllData']()[_0x1af98e(0x224)](_0x2f452f)[TestFrameworkConstants[_0x1af98e(0x267)]]),_0xac1105=(_0x54c79f||[])[_0x1af98e(0x242)](_0x47bd59||[]);if(!_0xac1105||_0x283ac9[_0x1af98e(0x21f)](_0xac1105[_0x1af98e(0x29b)],0x0)){logger[_0x1af98e(0x1f7)](_0x283ac9[_0x1af98e(0x23f)]);return;}const _0xf6c698=0x28,_0x1845e1=Math['ceil'](_0x283ac9[_0x1af98e(0x259)](_0xac1105[_0x1af98e(0x29b)],_0xf6c698));for(let _0xa6daf5=0x0;_0x283ac9['qONkb'](_0xa6daf5,_0x1845e1);_0xa6daf5++){const _0x3edabf=_0x283ac9[_0x1af98e(0x2b5)](_0xa6daf5,_0xf6c698),_0x1866af=_0x283ac9[_0x1af98e(0x252)](_0x3edabf,_0xf6c698),_0x256e89=_0xac1105[_0x1af98e(0x238)](_0x3edabf,_0x1866af),_0x2ecd18={'platformIndex':global?.[_0x1af98e(0x297)]??0x0,'logs':_0x256e89,'testFrameworkName':_0x1b4d36,'testFrameworkVersion':_0x55b31a,'testFrameworkState':_0x29e14c['toString']()[_0x1af98e(0x2b3)]('.')[0x1]};logger[_0x1af98e(0x1f7)](_0x1af98e(0x279)+_0x2f452f+'\x20batch\x20'+_0x283ac9[_0x1af98e(0x252)](_0xa6daf5,0x1)+'/'+_0x1845e1+_0x1af98e(0x244)+util[_0x1af98e(0x27a)](_0x2ecd18));const _0x8da36f=await GrpcClient['getInstance']()[_0x1af98e(0x274)](_0x2ecd18);logger['debug'](_0x1af98e(0x279)+_0x2f452f+_0x1af98e(0x298)+_0x283ac9[_0x1af98e(0x252)](_0xa6daf5,0x1)+'/'+_0x1845e1+'\x20response='+util[_0x1af98e(0x27a)](_0x8da36f));}}catch(_0x19e8d9){logger['error'](_0x1af98e(0x233)+util[_0x1af98e(0x287)](_0x19e8d9));}logger['debug'](_0x283ac9[_0x1af98e(0x263)]);}['storePendingHook'](_0x1b7827,_0x40134f,_0x2a2f20,_0x1168a5,_0x1d56be){const _0xa34d97=a74_0x56851c,_0x76e9b7={'testId':_0x40134f,'testFrameworkState':_0x2a2f20,'hookState':_0x1168a5,'args':_0x1d56be,'timestamp':new Date()[_0xa34d97(0x20a)]()};_0x1b7827[_0xa34d97(0x216)](_0x40134f,_0x76e9b7),logger['debug']('Stored\x20pending\x20hook\x20for\x20testId:\x20'+_0x40134f+',\x20state:\x20'+_0x2a2f20+',\x20hookState:\x20'+_0x1168a5);}async[a74_0x56851c(0x2a2)](_0x1486c6,_0x232d9d){const _0x214d9e=a74_0x56851c,_0xf255bd={};_0xf255bd['pDzoL']=function(_0x4f3f43,_0x137fbc){return _0x4f3f43>_0x137fbc;};const _0x4a946d=_0xf255bd;if(!_0x1486c6['hasPendingHooks'](_0x232d9d))return;const _0x21c17f=_0x1486c6[_0x214d9e(0x1ff)](_0x232d9d);logger['debug']('Processing\x20'+_0x21c17f[_0x214d9e(0x29b)]+_0x214d9e(0x23e)+_0x232d9d);for(const _0x3d7e45 of _0x21c17f){try{const _0x388e78=await this[_0x214d9e(0x256)](_0x1486c6,_0x3d7e45[_0x214d9e(0x2b2)],_0x3d7e45['hookState'],_0x3d7e45[_0x214d9e(0x27b)]);_0x388e78&&_0x4a946d[_0x214d9e(0x240)](Object[_0x214d9e(0x251)](_0x388e78)[_0x214d9e(0x29b)],0x0)&&_0x1486c6['addMultipleEntries'](_0x388e78),await this[_0x214d9e(0x25d)](_0x1486c6,_0x3d7e45[_0x214d9e(0x2b2)],_0x3d7e45[_0x214d9e(0x289)],_0x3d7e45['args']);}catch(_0x47f3c1){logger['error'](_0x214d9e(0x206)+_0x232d9d+_0x214d9e(0x248)+_0x47f3c1);}}_0x1486c6[_0x214d9e(0x1f9)](_0x232d9d),logger[_0x214d9e(0x1f7)]('Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20'+_0x232d9d);}}function a74_0x59bd(){const _0x345d43=['No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','testUUID','get','DEFAULT_HOOK_RESULT','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','KicFr','getAllData','64346QKAFeP','push','Cucumber\x20log\x20created\x20event','platformIndex','QIlmQ','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','KEY_TEST_LOCATION','result','\x20with\x20UUID:\x20','CucumberTestFramework','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','finished_at','KEY_TEST_STARTED_AT','failure_data','instance','slice','KEY_HOOK_RESULT','testData','startedAt','TVKaK','KEY_TEST_LOGS','\x20pending\x20hooks\x20for\x20testId:\x20','DMNMq','pDzoL','UnhandledError','concat','KEY_HOOK_FAILURE','\x20payload=','KEY_TEST_RERUN_NAME','meta',',\x20state=',',\x20error:\x20','trackEvent','scopes','name','\x20testState:\x20','KEY_TEST_META','util','key','POST','keys','aOWGm','../state/testFrameworkState.js',',\x20storing\x20as\x20pending\x20hook','KEY_LOGS','trackHookEvent','yyBxz','\x20target=','YHBjL','../instances/trackedInstance.js','KEY_TEST_FAILURE_TYPE','trackEvent:\x20unsupported\x20testFrameworkState=','runHooks','toString','failure_reason','KEY_HOOK_NAME','acjYa','trackCucumberInstance:\x20saved\x20instance\x20contextId=','xrDeL','getThreadId','test_run_id','KEY_TEST_TAGS','KEY_TEST_UUID','KEY_HOOK_FAILURE_TYPE','getTestFrameworksVersions','KEY_TEST_RESULT_AT','getRef','error','hooks','base64','KEY_TEST_RESULT','KEY_TEST_ID','FkeRr','Updated\x20cucumber\x20test\x20result:\x20','Parsed\x20cucumber\x20test:\x20','logCreatedEvent','bhKRs','uuid','KEY_TEST_FRAMEWORK_NAME','getTestDetails','sendLogCreatedEvent:\x20for\x20testId:\x20','inspect','args','failure_type','getCurrentInstanceName','KEY_HOOK_FAILURE_REASON','parseCucumberTestResult','VJyEI','getTestFrameworks','ySOHe','LOG_REPORT','KEY_TEST_ENDED_AT','trackCucumberInstance','unknown','format','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','hookState','44lRFitj','KEY_HOOK_LOGS','stringify','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','addMultipleEntries','334233DCKNls','../TestInfo.js','testFrameworkName','createTestFrameworkEventPayload\x20testId:\x20','vJtBG','pop','test','setTrackedInstance','browserstackPlatformIndex','\x20batch\x20','KEY_CUSTOM_TAGS','\x20with\x20result:\x20','length','getId','../cliUtils.js','customRerunParam','KEY_TEST_NAME','bLkMI','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','processPendingHooks','hookData','KEY_EVENT_ENDED_AT','KEY_HOOK_ID','KEY_TEST_ATTACHMENTS','KEY_AUTOMATE_SESSION_NAME','Error\x20in\x20createTestFrameworkEventPayload:\x20','KEY_TEST_FAILURE','KEY_HOOKS_FINISHED','createContext','KEY_HOOK_LAST_STARTED','TEST','eventJson','getTrackedInstance','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','../state/hookState.js','testFrameworkState','split','failure','mEvhT','10679200ZDRrBG','KEY_TEST_CODE','uuMrv','8728419UvNTyI','\x20hookState:\x20','parseCucumberTest','\x20with\x20id\x20','failed','storePendingHook','KEY_HOOK_LAST_FINISHED','KEY_EVENT_STARTED_AT','gLujB','debug','DEFAULT_TEST_RESULT','removePendingHooks','ZKDeX','./constants/testFrameworkConstants.js','code','nzcWd','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','getPendingHooks','finishedAt','tags','hook_type','35dOMHVs','XMUhz','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','KEY_TEST_FRAMEWORK_VERSION','PEKXr','sendLogCreatedEvent','toISOString','GGDcU','151377wXTqbn','PHsuc','10388851xTwayn','file_name','setTestDetails','INIT_TEST','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','readLogObjects','APUqV','testFrameworkVersion','addPendingHook','resolveInstance','8RPIOHq','getContext','executionContext','getCurrentHookState','3xaAEeD','233526srxcaO','\x20\x20and\x20args\x20=\x20','zCsUS','KEY_HOOKS_STARTED','UJpVk'];a74_0x59bd=function(){return _0x345d43;};return a74_0x59bd();}module['exports']=CucumberTestFramework;