browserstack-node-sdk 1.50.4 → 1.50.6

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 (186) 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 +2 -2
  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/runner.js +1 -1
  90. package/src/bin/setup.js +1 -1
  91. package/src/bin/test-runner/index.js +1 -1
  92. package/src/bin/test-runner/runTest.js +1 -1
  93. package/src/bin/test-runner/testWorker.js +1 -1
  94. package/src/bin/utils/apiUtilityMethods.js +1 -1
  95. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  96. package/src/bin/utils/constants.js +1 -1
  97. package/src/bin/utils/log4jsAppender.js +1 -1
  98. package/src/bin/utils/logPatcher.js +1 -1
  99. package/src/bin/utils/logReportingAPI.js +1 -1
  100. package/src/bin/utils/playwright-patcher.js +1 -1
  101. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  102. package/src/bin/utils/sharedUtils.js +1 -1
  103. package/src/bin/v2/TestInfo.js +1 -1
  104. package/src/bin/v2/browserstackCLI.js +1 -1
  105. package/src/bin/v2/cliUtils.js +1 -1
  106. package/src/bin/v2/customTagManager.js +1 -1
  107. package/src/bin/v2/eventDispatcher.js +1 -1
  108. package/src/bin/v2/framework/automationFramework.js +1 -1
  109. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  110. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  111. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  112. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  113. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  114. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  115. package/src/bin/v2/framework/testFramework.js +1 -1
  116. package/src/bin/v2/grpcClient.js +1 -1
  117. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  118. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  119. package/src/bin/v2/instances/trackedContext.js +1 -1
  120. package/src/bin/v2/instances/trackedInstance.js +1 -1
  121. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  122. package/src/bin/v2/modules/baseModule.js +1 -1
  123. package/src/bin/v2/modules/loadTestModule.js +1 -1
  124. package/src/bin/v2/modules/observabilityModule.js +1 -1
  125. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  126. package/src/bin/v2/modules/testhubModule.js +1 -1
  127. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  128. package/src/bin/v2/state/hookState.js +1 -1
  129. package/src/bin/v2/state/testFrameworkState.js +1 -1
  130. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  131. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  132. package/src/bin/v2/utils/jest-utils.js +1 -1
  133. package/src/bin/vanilla-js/command.js +1 -1
  134. package/src/browserStackSdk.js +1 -1
  135. package/src/helpers/BrowserStackSetup.js +1 -1
  136. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  137. package/src/helpers/accessibility-automation/constants.js +1 -1
  138. package/src/helpers/accessibility-automation/helper.js +1 -1
  139. package/src/helpers/accessibility-automation/scripts.js +1 -1
  140. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  141. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  142. package/src/helpers/ats/constants.js +1 -1
  143. package/src/helpers/ats/helper.js +1 -1
  144. package/src/helpers/capsMapping.js +1 -1
  145. package/src/helpers/central-scanner/constants.js +1 -1
  146. package/src/helpers/central-scanner/helpers.js +1 -1
  147. package/src/helpers/classLogger.js +1 -1
  148. package/src/helpers/globals.js +1 -1
  149. package/src/helpers/helper.js +1 -1
  150. package/src/helpers/logger.js +1 -1
  151. package/src/helpers/metadata.js +1 -1
  152. package/src/helpers/patchHelper.js +1 -1
  153. package/src/helpers/patchHelpers.js +1 -1
  154. package/src/helpers/percy/Percy.js +1 -1
  155. package/src/helpers/percy/PercyBinary.js +1 -1
  156. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  157. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  158. package/src/helpers/percy/PercySDK.js +1 -1
  159. package/src/helpers/percy/index.js +1 -1
  160. package/src/helpers/percy/utils.js +1 -1
  161. package/src/helpers/performance/constants.js +1 -1
  162. package/src/helpers/performance/performance-tester.js +1 -1
  163. package/src/helpers/playwright-helper.js +1 -1
  164. package/src/helpers/processHelper.js +1 -1
  165. package/src/helpers/request-spy.js +1 -1
  166. package/src/helpers/setKeepAlive.js +1 -1
  167. package/src/helpers/test-observability/constants.js +1 -1
  168. package/src/helpers/test-observability/error-handler.js +1 -1
  169. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  170. package/src/helpers/test-observability/sessionHandler.js +1 -1
  171. package/src/helpers/test-observability/utils.js +1 -1
  172. package/src/helpers/test-orchestration/constants.js +1 -1
  173. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  174. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  175. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  176. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  177. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  178. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  179. package/src/helpers/testhub/constants.js +1 -1
  180. package/src/helpers/testhub/testhubHandler.js +1 -1
  181. package/src/helpers/testhub/utils.js +1 -1
  182. package/src/helpers/timeoutPromise.js +1 -1
  183. package/src/helpers/utilities.js +1 -1
  184. package/src/helpers/w3cMapping.js +1 -1
  185. package/src/hubAllocationMethods.js +1 -1
  186. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a60_0x12591f=a60_0x1566;(function(_0x28f617,_0x140b72){const _0x270d1c=a60_0x1566,_0x17210c=_0x28f617();while(!![]){try{const _0x376df1=-parseInt(_0x270d1c(0x125))/0x1+-parseInt(_0x270d1c(0x15b))/0x2*(-parseInt(_0x270d1c(0x134))/0x3)+parseInt(_0x270d1c(0x136))/0x4+-parseInt(_0x270d1c(0xcb))/0x5*(-parseInt(_0x270d1c(0x169))/0x6)+-parseInt(_0x270d1c(0x112))/0x7+-parseInt(_0x270d1c(0x173))/0x8+-parseInt(_0x270d1c(0x131))/0x9;if(_0x376df1===_0x140b72)break;else _0x17210c['push'](_0x17210c['shift']());}catch(_0x2ce591){_0x17210c['push'](_0x17210c['shift']());}}}(a60_0x52ca,0x37464));function a60_0x1566(_0x1fcc3d,_0x3d71a1){const _0x52cac0=a60_0x52ca();return a60_0x1566=function(_0x1566b9,_0x16be85){_0x1566b9=_0x1566b9-0xc1;let _0x3c80fa=_0x52cac0[_0x1566b9];return _0x3c80fa;},a60_0x1566(_0x1fcc3d,_0x3d71a1);}function a60_0x52ca(){const _0x4d54b7=['product','59174udOlne','kSAlB','../../helpers/logger','qFEsI','Qgqqo','tmwVu','Failed\x20to\x20parse\x20capabilities\x20from\x20WebSocket:\x20','gecko','GTlFo','getTrackedInstance','akAwt','Error\x20triggering\x20PLAYWRIGHT_DISPATCH\x20event:\x20','instance','wBTNY','6pmJTMV','pOCxc','triggerPlaywrightDispatchEvent','os_version','CRConnection','chromium','PGvXL','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','asoxh','query','1834616RQFJkt','winstonLogger','MUxHt','Setting\x20session\x20id\x20received\x20from\x20BS\x20','osVersion','QelAd','Xpjlm','trackEvent','CjWJX','platformVersion','webkit','toLowerCase','RlMtk','RtUYV','toString','bAIIN','defineProperty','browserName','zxPqg','connection.js','./constants','server','Connection','gSJha','lHQis','Triggering\x20PLAYWRIGHT_DISPATCH\x20event','hHWzi','sessionError','bstack:options','prototype','rEHLW','Device\x20Model\x20is\x20not\x20available','CNeRv','CRConnection\x20already\x20patched','Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20','browserstack','playwright-','stringify','ipZMu','Connection\x20dispatch\x20already\x20patched','XybNn','RdMtt','platform_version','use','desiredCapabilities','879940RBnjgB','pmHFw','cloudProvider','PLAYWRIGHT_DISPATCH','Error\x20extracting\x20BrowserStack\x20parameters:\x20','getAutomationFramework','fromEntries','ATS_WSS_URL_REGEX','eAnhG','Browser\x20found\x20in\x20WebSocket\x20caps:\x20','rAejo','KaGmq','KarVY','extractBrowserStackParams','msedge','HWtPp','hpdSo','rJycC','crConnection.js','TdmFT','browserVersion','hZsgz','_bstackDispatchPatched','project','url','KWcYA','Failed\x20to\x20parse\x20caps\x20from\x20WebSocket:\x20','NBuEE','_bstackCRPatched','Found\x20Connection\x20class\x20at:\x20','tiEwB','wsEndpoint','gQusn','WHVTz','edge','../../helpers/test-observability/utils','Using\x20browser\x20name\x20from\x20browser\x20object:\x20','includes','turboscale','zbFNS','Not\x20able\x20to\x20import\x20Connection\x20class\x20from\x20any\x20path','zBgtB','format','KHIeG','join','bsSessionId','chrome','isRunning','_browserType','piqiW','yBOIB','channel','DzYoS','elkiZ','Error\x20in\x20importing\x20connection\x20','BSTACK_ATS_URL','env','oRFki','CsHWm','Not\x20able\x20to\x20import\x20crConnection','browser','vMCPZ','rbjNh','Error\x20parsing\x20WebSocket\x20endpoint:\x20','tbxTg','VUBmt','message','firefox','string','_onMessage','QUItO','87374fNXJzG','platform','parse','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','kRogs','wxknb','fBxfH','bStackParams','../../helpers/helper','MbxaJ','Setting\x20session\x20id\x20received\x20from\x20browserstack\x20','sessionId','xwYWP','Error\x20in\x20importing\x20crConnection','Browser\x20name\x20overridden\x20from\x20WebSocket\x20endpoint:\x20','BrowserStack\x20params\x20extracted\x20from\x20WebSocket\x20endpoint','BROWSERSTACK_TEST_OBSERVABILITY','client','mpoJh','377377HQBuCo','caps','../../helpers/test-observability/error-handler','__platformCaps','glJxM','lkZPw','lib','browserstack_capabilities','rIMlH','version','../v2/framework/automationFramework','POST','1381185LwsByD','assign','Failed\x20to\x20import\x20connection\x20from\x20','39Brneco','platformDetails','1753744wJugmD','TQjuO','getInstance','Browser\x20is\x20not\x20defined\x20or\x20not\x20available','Successfully\x20patched\x20Connection.dispatch','platformName','local_grid','YUBKs','bsParams','../v2/state/automationFrameworkState.js','setupBrowserDetails',',\x20os=','debug','TJZCE','zzZHB','apply','_defaultConnectOptions','qHlXA','browser_version','Error\x20in\x20finding\x20platform\x20details\x20','../v2/browserstackCLI','safari','qDUak','pthBq','isRemote','patchConnection','currentSessionDetails','patchCRConnection','capabilities','util','path','test','eKspD','accessibilityPlatform','HKuwG','params'];a60_0x52ca=function(){return _0x4d54b7;};return a60_0x52ca();}const path=require(a60_0x12591f(0x154)),url=require(a60_0x12591f(0xe3)),util=require(a60_0x12591f(0x153)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule,isBrowserstackInfra}=require(a60_0x12591f(0x11a)),{o11yErrorHandler}=require(a60_0x12591f(0x127)),{debug,getPlatformDetails}=require(a60_0x12591f(0xee)),logger=require(a60_0x12591f(0x15d))[a60_0x12591f(0x174)],constants=require(a60_0x12591f(0x187)),AutomationFramework=require(a60_0x12591f(0x12f)),BrowserstackCLI=require(a60_0x12591f(0x14a)),AutomationFrameworkState=require(a60_0x12591f(0x13f)),HookState=require('../v2/state/hookState.js'),{platform}=require('os'),getBrowserNameFromChannel=_0x45ce3d=>{const _0x177dca=a60_0x12591f,_0x13d94b={};_0x13d94b['tmwVu']=_0x177dca(0xf9),_0x13d94b[_0x177dca(0x18b)]=_0x177dca(0xed),_0x13d94b['xwYWP']=_0x177dca(0x10e),_0x13d94b[_0x177dca(0xdb)]=_0x177dca(0x14b);const _0x293a33=_0x13d94b;if(_0x45ce3d[_0x177dca(0xf0)](_0x293a33[_0x177dca(0x160)]))return _0x293a33[_0x177dca(0x160)];if(_0x45ce3d[_0x177dca(0xf0)](_0x293a33['lHQis']))return _0x293a33[_0x177dca(0x18b)];if(_0x45ce3d[_0x177dca(0xf0)](_0x293a33[_0x177dca(0x11e)]))return _0x293a33[_0x177dca(0x11e)];if(_0x45ce3d[_0x177dca(0xf0)](_0x293a33[_0x177dca(0xdb)]))return _0x293a33[_0x177dca(0xdb)];},getBrowserFromWSEndpoint=_0x16d7bb=>{const _0x1ea0d3=a60_0x12591f,_0x3f70f8={'KarVY':_0x1ea0d3(0x18f),'ygTRx':function(_0x1abb78,_0x38e5b8){return _0x1abb78(_0x38e5b8);},'wBTNY':function(_0x4edc30,_0x270b5e){return _0x4edc30(_0x270b5e);},'qDUak':_0x1ea0d3(0xed),'WHVTz':_0x1ea0d3(0xd9),'qFEsI':_0x1ea0d3(0x10e),'Xpjlm':_0x1ea0d3(0x162),'HKuwG':_0x1ea0d3(0x14b),'yBOIB':_0x1ea0d3(0x17d),'rAejo':_0x1ea0d3(0xf9)};try{const _0x2decf7=url[_0x1ea0d3(0x114)](_0x16d7bb),_0x157f3e=new URLSearchParams(_0x2decf7[_0x1ea0d3(0x172)]),_0x2e192e=Object[_0x1ea0d3(0xd1)](_0x157f3e['entries']()),_0x5e710c=[_0x2e192e['caps'],_0x2e192e[_0x1ea0d3(0x152)],_0x2e192e[_0x1ea0d3(0xca)],_0x2e192e[_0x1ea0d3(0x12c)]];for(const _0x31a461 of _0x5e710c){if(_0x31a461)try{const _0x4990e8=JSON['parse'](_0x31a461),_0x20a8b0=_0x4990e8[_0x1ea0d3(0x184)]||_0x4990e8['browser']||_0x4990e8[_0x3f70f8[_0x1ea0d3(0xd7)]]?.[_0x1ea0d3(0x184)];if(_0x20a8b0)return _0x3f70f8['ygTRx'](debug,_0x1ea0d3(0xd4)+_0x20a8b0),_0x20a8b0[_0x1ea0d3(0x17e)]();}catch(_0x2d4fce){_0x3f70f8[_0x1ea0d3(0x168)](debug,_0x1ea0d3(0xe5)+_0x2d4fce[_0x1ea0d3(0x10d)]);}}if(_0x16d7bb[_0x1ea0d3(0xf0)](_0x3f70f8[_0x1ea0d3(0x14c)])||_0x16d7bb['includes'](_0x3f70f8[_0x1ea0d3(0xec)]))return _0x3f70f8[_0x1ea0d3(0x14c)];if(_0x16d7bb['includes'](_0x3f70f8[_0x1ea0d3(0x15e)])||_0x16d7bb[_0x1ea0d3(0xf0)](_0x3f70f8[_0x1ea0d3(0x179)]))return _0x3f70f8['qFEsI'];if(_0x16d7bb[_0x1ea0d3(0xf0)](_0x3f70f8['HKuwG'])||_0x16d7bb[_0x1ea0d3(0xf0)](_0x3f70f8[_0x1ea0d3(0xfd)]))return _0x3f70f8[_0x1ea0d3(0x158)];return _0x3f70f8[_0x1ea0d3(0xd5)];}catch(_0x3b9706){return _0x3f70f8['wBTNY'](debug,'Error\x20in\x20getting\x20browser\x20from\x20WebSocket\x20endpoint:\x20'+_0x3b9706['toString']()),_0x3f70f8[_0x1ea0d3(0xd5)];}},getCloudProviderFromWsEndpoint=_0x5f4bf3=>{const _0x5d6c1a=a60_0x12591f,_0x33cfcd={};_0x33cfcd[_0x5d6c1a(0x116)]=_0x5d6c1a(0xc1),_0x33cfcd[_0x5d6c1a(0x12d)]='unknown_grid';const _0x4047c3=_0x33cfcd;if(_0x5f4bf3['includes'](constants['BSTACK_URL'])||_0x5f4bf3[_0x5d6c1a(0xf0)](constants[_0x5d6c1a(0x102)]))return _0x4047c3['kRogs'];return _0x4047c3[_0x5d6c1a(0x12d)];},a60_0x91f187={};a60_0x91f187[a60_0x12591f(0xcd)]=undefined,a60_0x91f187['bsSessionId']=undefined,a60_0x91f187[a60_0x12591f(0x107)]=undefined,a60_0x91f187[a60_0x12591f(0x148)]=undefined,a60_0x91f187[a60_0x12591f(0x113)]=undefined,a60_0x91f187[a60_0x12591f(0xc8)]=undefined,a60_0x91f187[a60_0x12591f(0x15a)]=undefined,a60_0x91f187['capabilities']={};class SharedPlaywrightSessionDetails{static [a60_0x12591f(0x150)]=a60_0x91f187;constructor(){const _0x3aa422=a60_0x12591f,_0xbb5c35={};_0xbb5c35[_0x3aa422(0x16f)]=_0x3aa422(0x170);const _0x59e965=_0xbb5c35;throw new Error(_0x59e965[_0x3aa422(0x16f)]);}static ['sessionError']=null;static[a60_0x12591f(0x140)](_0x2a450a,_0xbaeaf3,_0x3cd647=null){const _0x25c4ce=a60_0x12591f,_0x168163={'vuPTq':function(_0x307aa2,_0x16a5ee){return _0x307aa2===_0x16a5ee;},'eAnhG':'function','CsHWm':_0x25c4ce(0x139),'TvpbS':function(_0x562c1c,_0x1c3a9a){return _0x562c1c===_0x1c3a9a;},'hHWzi':_0x25c4ce(0x192),'vMCPZ':_0x25c4ce(0x13c),'kSAlB':function(_0x504748,_0xbad493,_0x19296a){return _0x504748(_0xbad493,_0x19296a);},'pthBq':_0x25c4ce(0xfb),'CjWJX':_0x25c4ce(0x146),'akAwt':function(_0x585be3,_0x2cd9fe,_0x3afead){return _0x585be3(_0x2cd9fe,_0x3afead);},'zzZHB':'project','zPRzU':_0x25c4ce(0xc9),'ieuzS':'connectOptions','tiEwB':function(_0x4753ae,_0x546a41){return _0x4753ae(_0x546a41);},'rbjNh':function(_0x5bbb80,_0x43dcf7){return _0x5bbb80===_0x43dcf7;},'ryLHS':_0x25c4ce(0xc1),'qHlXA':_0x25c4ce(0xf1),'TdmFT':'automate','QUItO':function(_0x10a423,_0x40fc5b){return _0x10a423(_0x40fc5b);},'eKspD':_0x25c4ce(0x16e),'mpoJh':function(_0x3119ac){return _0x3119ac();},'ipZMu':function(_0x55502e,_0x5b1094){return _0x55502e&&_0x5b1094;},'VUBmt':function(_0x32e8f7){return _0x32e8f7();},'HWtPp':function(_0x21745a,_0x64708c){return _0x21745a(_0x64708c);},'rwGPp':function(_0x201c25,_0x1b5700){return _0x201c25+_0x1b5700;},'pOCxc':_0x25c4ce(0xc2),'XybNn':_0x25c4ce(0x140)},_0x1213c6=this;return _0x168163[_0x25c4ce(0x15c)](o11yErrorHandler,async function _0x33e788(_0x237366,_0x24f32b,_0x5d7912=null){const _0x115c20=_0x25c4ce;let _0xb133dd=_0x237366['_name'],_0x19c8b5=null;_0x237366&&_0x168163['vuPTq'](typeof _0x237366[_0x115c20(0x12e)],_0x168163[_0x115c20(0xd3)])?_0x19c8b5=_0x237366[_0x115c20(0x12e)]():logger['debug'](_0x168163[_0x115c20(0x105)]);let _0x5cc1f9=null;_0x237366&&_0x168163['TvpbS'](typeof _0x237366['model'],_0x168163[_0x115c20(0xd3)])?_0x5cc1f9=_0x237366['model']():logger['debug'](_0x168163[_0x115c20(0x18d)]);let _0x2503d0=null,_0x56c559=null,_0x559725=null,_0x351c07=_0x168163[_0x115c20(0x108)];if(_0x237366['_connection'][_0x115c20(0x14e)]()||global[_0x115c20(0x157)]){let _0xb34235=null;_0x168163['kSAlB'](nestedKeyValue,_0x237366,[_0x168163[_0x115c20(0x14d)],_0x168163[_0x115c20(0x17b)]])?_0xb34235=_0x237366[_0x115c20(0xfb)][_0x115c20(0x146)]:_0xb34235=_0x168163[_0x115c20(0x165)](nestedKeyValue,_0x24f32b,[_0x168163[_0x115c20(0x144)],_0x168163['zPRzU'],_0x168163['ieuzS']]);const _0x617bb6=_0x5d7912||_0xb34235&&_0xb34235[_0x115c20(0xea)];if(_0x617bb6){_0x351c07=_0x168163[_0x115c20(0xe9)](getCloudProviderFromWsEndpoint,_0x617bb6);if(_0x168163[_0x115c20(0x109)](_0x351c07,_0x168163['ryLHS'])){_0x559725=constants[_0x115c20(0xd2)][_0x115c20(0x155)](_0x617bb6)?_0x168163[_0x115c20(0x147)]:_0x168163[_0x115c20(0xde)];const _0x32c646=_0x168163[_0x115c20(0x111)](getBrowserFromWSEndpoint,_0x617bb6);if(_0x32c646&&(!_0xb133dd||_0x168163[_0x115c20(0x109)](_0xb133dd,_0x168163[_0x115c20(0x156)])))_0xb133dd=_0x32c646,logger['debug'](_0x115c20(0x120)+_0xb133dd);else _0xb133dd&&logger['debug'](_0x115c20(0xef)+_0xb133dd);_0x2503d0=_0x1213c6[_0x115c20(0x150)]['platform'],_0x56c559=_0x1213c6[_0x115c20(0x150)][_0x115c20(0xc8)];}else{const _0x44162f=await _0x168163[_0x115c20(0x124)](getPlatformDetails);_0x2503d0=_0x44162f[_0x115c20(0x13b)],_0x56c559=_0x44162f[_0x115c20(0x17c)];}}if(_0x168163[_0x115c20(0xc4)](!_0x2503d0,!_0x56c559)&&!_0x168163['VUBmt'](isBrowserstackInfra)){const _0x3c1517=await _0x168163[_0x115c20(0x10c)](getPlatformDetails);_0x2503d0=_0x3c1517['platformName'],_0x56c559=_0x3c1517[_0x115c20(0x17c)];}}else{_0x24f32b&&_0x24f32b[_0x115c20(0xe2)]&&_0x24f32b[_0x115c20(0xe2)][_0x115c20(0xc9)]&&_0x24f32b['project'][_0x115c20(0xc9)][_0x115c20(0xfe)]?_0xb133dd=_0x168163[_0x115c20(0xda)](getBrowserNameFromChannel,_0x24f32b[_0x115c20(0xe2)][_0x115c20(0xc9)]['channel']):_0xb133dd=_0x168163['rwGPp'](_0x168163[_0x115c20(0x16a)],_0xb133dd[_0x115c20(0x17e)]());const _0x5ed247=await _0x168163['mpoJh'](getPlatformDetails);_0x2503d0=_0x5ed247[_0x115c20(0x13b)],_0x56c559=_0x5ed247[_0x115c20(0x17c)];}const _0x1d657a={};_0x1d657a[_0x115c20(0x107)]=_0xb133dd,_0x1d657a[_0x115c20(0x148)]=_0x19c8b5,_0x1d657a[_0x115c20(0x152)]={},_0x1d657a[_0x115c20(0x113)]=_0x2503d0,_0x1d657a['platform_version']=_0x56c559,_0x1d657a['product']=_0x559725;const _0x280293=_0x1d657a;_0x5cc1f9&&(_0x280293[_0x115c20(0x152)]['deviceModel']=_0x5cc1f9);const _0x2dc3d6={};_0x2dc3d6['cloudProvider']=_0x351c07,_0x1213c6[_0x115c20(0x150)]=Object[_0x115c20(0x132)]({},_0x1213c6[_0x115c20(0x150)],_0x2dc3d6,_0x280293);const _0x4f4d5a={};_0x4f4d5a[_0x115c20(0x107)]=_0x1213c6[_0x115c20(0x150)][_0x115c20(0x107)],_0x4f4d5a[_0x115c20(0xdf)]=_0x1213c6['currentSessionDetails'][_0x115c20(0x148)],_0x4f4d5a['platform']=_0x1213c6[_0x115c20(0x150)][_0x115c20(0x113)],_0x4f4d5a[_0x115c20(0x17c)]=_0x1213c6['currentSessionDetails']['platform_version'],_0x4f4d5a[_0x115c20(0xcd)]=_0x1213c6['currentSessionDetails']['cloudProvider'],_0x4f4d5a['product']=_0x1213c6['currentSessionDetails'][_0x115c20(0x15a)],logger['debug']('Session\x20details\x20setup\x20complete:\x20'+JSON[_0x115c20(0xc3)](_0x4f4d5a));},_0x168163[_0x25c4ce(0xc6)])(_0x2a450a,_0xbaeaf3,_0x3cd647);}static['patch'](){const _0x5bbf15=a60_0x12591f;this['patchConnection'](),this[_0x5bbf15(0x151)]();}static[a60_0x12591f(0x14f)](){const _0x7a25c5=a60_0x12591f,_0x10b1e3={'RlMtk':function(_0x21b715,_0x2e09d2){return _0x21b715(_0x2e09d2);},'RdMtt':_0x7a25c5(0x12b),'glJxM':_0x7a25c5(0x123),'zxPqg':_0x7a25c5(0x186),'jCLXr':function(_0x2665f9,_0x4f2974){return _0x2665f9(_0x4f2974);},'elkiZ':function(_0x232d77,_0x3d04a3){return _0x232d77(_0x3d04a3);},'SGDkh':function(_0x308eb7,_0x967f5d){return _0x308eb7(_0x967f5d);},'xMJMJ':_0x7a25c5(0xf3),'hZsgz':function(_0x2f77a6,_0xe1e75c){return _0x2f77a6(_0xe1e75c);},'NBuEE':function(_0x48c191,_0xecffb8){return _0x48c191!=_0xecffb8;},'gQusn':function(_0x5aa180,_0x198e8e){return _0x5aa180(_0x198e8e);},'pmHFw':_0x7a25c5(0xc5),'YUBKs':'dispatch','MUxHt':_0x7a25c5(0x13a),'wxknb':function(_0x1fc6df,_0x292d76){return _0x1fc6df(_0x292d76);}},_0x4bc325=this;if(!this[_0x7a25c5(0x189)])try{const _0x2f15ff=[path['join'](_0x10b1e3[_0x7a25c5(0xc7)],_0x10b1e3[_0x7a25c5(0x129)],_0x10b1e3[_0x7a25c5(0x185)]),path['join'](_0x10b1e3[_0x7a25c5(0xc7)],_0x10b1e3[_0x7a25c5(0x185)]),path[_0x7a25c5(0xf7)](_0x10b1e3[_0x7a25c5(0x129)],_0x10b1e3[_0x7a25c5(0x185)])];for(const _0x35cf9f of _0x2f15ff){try{const _0x20637b=_0x10b1e3['jCLXr'](importFileFromPWCore,_0x35cf9f);if(_0x20637b&&_0x20637b[_0x7a25c5(0x189)]){this['Connection']=_0x20637b[_0x7a25c5(0x189)],logger['debug'](_0x7a25c5(0xe8)+_0x35cf9f);break;}}catch(_0x28fbeb){_0x10b1e3[_0x7a25c5(0x100)](debug,_0x7a25c5(0x133)+_0x35cf9f+':\x20'+_0x28fbeb[_0x7a25c5(0x181)]());}}if(!this[_0x7a25c5(0x189)]){_0x10b1e3['SGDkh'](debug,_0x10b1e3['xMJMJ']);return;}}catch(_0x2d9393){_0x10b1e3[_0x7a25c5(0xe0)](debug,_0x7a25c5(0x101)+_0x2d9393[_0x7a25c5(0x181)]());return;}const _0x9f5e48=this[_0x7a25c5(0x189)];try{if(_0x10b1e3[_0x7a25c5(0xe6)](_0x9f5e48,null)){const _0x2f3e15=_0x9f5e48[_0x7a25c5(0x190)]['dispatch'];if(!_0x10b1e3[_0x7a25c5(0xeb)](isFalse,process[_0x7a25c5(0x103)][_0x7a25c5(0x122)])){if(_0x9f5e48['prototype'][_0x7a25c5(0xe1)]){logger[_0x7a25c5(0x142)](_0x10b1e3[_0x7a25c5(0xcc)]);return;}Object[_0x7a25c5(0x183)](_0x9f5e48[_0x7a25c5(0x190)],_0x10b1e3[_0x7a25c5(0x13d)],{'get':function(){const _0x4719ee={'oRFki':function(_0x5ce175,_0x445c6f){const _0x163a01=a60_0x1566;return _0x10b1e3[_0x163a01(0x17f)](_0x5ce175,_0x445c6f);}};return async function _0x5900a4(_0x4b8ca9){const _0x4cab7a=a60_0x1566;if(BrowserstackCLI['getInstance']()[_0x4cab7a(0xfa)]()){const _0x139a8b={};_0x139a8b[_0x4cab7a(0x10d)]=_0x4b8ca9,await BrowserstackCLI[_0x4cab7a(0x138)]()[_0x4cab7a(0xd0)]()[_0x4cab7a(0x17a)](AutomationFrameworkState[_0x4cab7a(0xce)],HookState[_0x4cab7a(0x130)],_0x139a8b);}else{const _0x1abfa3=_0x4b8ca9&&_0x4b8ca9[_0x4cab7a(0x159)]&&_0x4b8ca9[_0x4cab7a(0x159)][_0x4cab7a(0x13e)];if(_0x1abfa3){const _0x2fa6c6=_0x1abfa3[_0x4cab7a(0x11d)],_0x3fe6a8=_0x1abfa3[_0x4cab7a(0x135)];_0x3fe6a8&&(_0x4719ee[_0x4cab7a(0x104)](debug,'Setting\x20platform\x20details\x20received\x20from\x20BS:\x20'+_0x3fe6a8['toString']()),_0x4bc325[_0x4cab7a(0x150)]['platform']=_0x3fe6a8['platformName'],_0x4bc325[_0x4cab7a(0x150)][_0x4cab7a(0xc8)]=_0x3fe6a8[_0x4cab7a(0x17c)]),_0x2fa6c6&&(_0x4719ee[_0x4cab7a(0x104)](debug,_0x4cab7a(0x176)+_0x2fa6c6),_0x4bc325[_0x4cab7a(0x150)][_0x4cab7a(0xf8)]=_0x2fa6c6);}}return _0x2f3e15[_0x4cab7a(0x145)](this,arguments);};}}),_0x9f5e48[_0x7a25c5(0x190)]['_bstackDispatchPatched']=!![],logger[_0x7a25c5(0x142)](_0x10b1e3[_0x7a25c5(0x175)]);}}}catch(_0x3ad531){_0x10b1e3[_0x7a25c5(0x117)](debug,'Error\x20in\x20applying\x20Connection\x20patch\x20'+_0x3ad531),_0x4bc325[_0x7a25c5(0x18e)]=_0x3ad531[_0x7a25c5(0x181)]();}}static[a60_0x12591f(0x151)](){const _0x3afe22=a60_0x12591f,_0x41725f={'KaGmq':function(_0x5b1815,_0x342276){return _0x5b1815(_0x342276);},'MbxaJ':function(_0x273987,_0x2b012f){return _0x273987(_0x2b012f);},'DIuzi':_0x3afe22(0x12b),'CNeRv':_0x3afe22(0x188),'Hwykm':_0x3afe22(0x16e),'zbFNS':_0x3afe22(0xdd),'rEHLW':function(_0x5d5e71,_0x3d33ea){return _0x5d5e71(_0x3d33ea);},'zBgtB':function(_0x114d10,_0x2d15f9){return _0x114d10(_0x2d15f9);},'asoxh':_0x3afe22(0x106),'tbxTg':function(_0x2130ff,_0x22cd63){return _0x2130ff(_0x22cd63);},'QelAd':_0x3afe22(0x11f),'gSJha':function(_0x2a121a,_0x426b4a){return _0x2a121a!=_0x426b4a;},'KWcYA':_0x3afe22(0x194),'piqiW':_0x3afe22(0x110),'fBxfH':'Successfully\x20patched\x20CRConnection._onMessage'},_0x4b89d2=this;let _0x3a3262=null;try{const _0x308ef7=path[_0x3afe22(0xf7)](_0x41725f['DIuzi'],_0x41725f[_0x3afe22(0x193)],_0x41725f['Hwykm'],_0x41725f[_0x3afe22(0xf2)]),_0x38e0f2=_0x41725f[_0x3afe22(0x191)](importFileFromPWCore,_0x308ef7);!_0x38e0f2?_0x41725f[_0x3afe22(0xf4)](debug,_0x41725f[_0x3afe22(0x171)]):_0x3a3262=_0x38e0f2[_0x3afe22(0x16d)];}catch(_0x58732c){_0x41725f[_0x3afe22(0x10b)](debug,_0x41725f[_0x3afe22(0x178)]);}try{if(_0x41725f[_0x3afe22(0x18a)](_0x3a3262,null)){const _0x7c15b0=_0x3a3262[_0x3afe22(0x190)][_0x3afe22(0x110)];if(_0x3a3262['prototype'][_0x3afe22(0xe7)]){logger[_0x3afe22(0x142)](_0x41725f[_0x3afe22(0xe4)]);return;}Object['defineProperty'](_0x3a3262[_0x3afe22(0x190)],_0x41725f[_0x3afe22(0xfc)],{'get':function(){const _0x5b7a97={'TJZCE':function(_0x581893,_0x17a708){const _0x12dc44=a60_0x1566;return _0x41725f[_0x12dc44(0xd6)](_0x581893,_0x17a708);},'RtUYV':function(_0x4d67ed,_0x2e630e){const _0x1e0f4b=a60_0x1566;return _0x41725f[_0x1e0f4b(0x11b)](_0x4d67ed,_0x2e630e);}};return async function _0x1b9327(_0x5b118e){const _0x333318=a60_0x1566;try{if(BrowserstackCLI[_0x333318(0x138)]()[_0x333318(0xfa)]()){const _0x40a217={};_0x40a217[_0x333318(0x10d)]=_0x5b118e,await BrowserstackCLI['getInstance']()[_0x333318(0xd0)]()['trackEvent'](AutomationFrameworkState['PLAYWRIGHT_DISPATCH'],HookState['POST'],_0x40a217),delete _0x5b118e['bStackParams'];}else{const _0x2e6df2=_0x5b118e[_0x333318(0x119)];if(_0x2e6df2){delete _0x5b118e[_0x333318(0x119)];const _0x3ab74d=_0x2e6df2[_0x333318(0x11d)],_0x29c007=_0x2e6df2[_0x333318(0x135)];_0x29c007&&(_0x5b7a97[_0x333318(0x143)](debug,_0x333318(0x115)+_0x29c007['toString']()),_0x4b89d2['currentSessionDetails'][_0x333318(0x113)]=_0x29c007[_0x333318(0x13b)],_0x4b89d2[_0x333318(0x150)][_0x333318(0xc8)]=_0x29c007[_0x333318(0x17c)]),_0x3ab74d&&(_0x5b7a97['TJZCE'](debug,_0x333318(0x11c)+_0x3ab74d),_0x4b89d2[_0x333318(0x150)]['bsSessionId']=_0x3ab74d);}}}catch(_0x3d683a){_0x5b7a97[_0x333318(0x180)](debug,_0x333318(0x149)+_0x3d683a[_0x333318(0x181)]());}return _0x7c15b0['apply'](this,arguments);};}}),_0x3a3262[_0x3afe22(0x190)][_0x3afe22(0xe7)]=!![],logger[_0x3afe22(0x142)](_0x41725f[_0x3afe22(0x118)]);}}catch(_0x361fcc){_0x41725f['tbxTg'](debug,_0x3afe22(0x195)+_0x361fcc),_0x4b89d2[_0x3afe22(0x18e)]=_0x361fcc['toString']();}}static[a60_0x12591f(0xd8)](_0x1f7b93,_0x511c6e){const _0x340f54=a60_0x12591f,_0x479f73={'KHIeG':'bstack:options','TQjuO':function(_0x8d1a44,_0xd7d48a){return _0x8d1a44||_0xd7d48a;},'JRBls':function(_0x308636,_0x4f4021){return _0x308636===_0x4f4021;},'GhLIy':_0x340f54(0x10f),'DixeI':_0x340f54(0x121),'Qgqqo':function(_0x449732,_0x4a55a8){return _0x449732(_0x4a55a8);},'DzYoS':function(_0x4e2189,_0x8f3cca){return _0x4e2189(_0x8f3cca);}};let _0x15c412=null,_0xc9c54=null;try{const _0x515364=[_0x511c6e,global[_0x340f54(0x128)],global['capabilties']];for(const _0x26d56f of _0x515364){if(_0x26d56f&&(!_0xc9c54||!_0xc9c54[_0x340f54(0x11d)])){const _0x3826f7=_0x26d56f[_0x340f54(0x11d)]||_0x26d56f[_0x479f73[_0x340f54(0xf6)]]?.[_0x340f54(0x11d)],_0x5320a9=_0x26d56f['browserName']||_0x26d56f[_0x340f54(0x107)]||_0x26d56f[_0x479f73['KHIeG']]?.[_0x340f54(0x184)],_0x14b846=_0x26d56f[_0x340f54(0xdf)]||_0x26d56f[_0x340f54(0x148)]||_0x26d56f[_0x479f73[_0x340f54(0xf6)]]?.[_0x340f54(0xdf)],_0x1fc890=_0x26d56f['os']||_0x26d56f[_0x340f54(0x113)]||_0x26d56f[_0x479f73['KHIeG']]?.['os'],_0x2e16a3=_0x26d56f['osVersion']||_0x26d56f[_0x340f54(0x16c)]||_0x26d56f[_0x479f73[_0x340f54(0xf6)]]?.[_0x340f54(0x177)];if(_0x479f73[_0x340f54(0x137)](_0x3826f7,_0x5320a9)||_0x1fc890){const _0x35f92d={};_0x35f92d[_0x340f54(0x184)]=_0x5320a9,_0x35f92d['browserVersion']=_0x14b846,_0x35f92d['os']=_0x1fc890,_0x35f92d['osVersion']=_0x2e16a3,_0x35f92d[_0x340f54(0x13b)]=_0x26d56f[_0x340f54(0x13b)]||_0x1fc890,_0x35f92d[_0x340f54(0x17c)]=_0x26d56f[_0x340f54(0x17c)]||_0x2e16a3;const _0x2f5a67={};_0x2f5a67[_0x340f54(0x11d)]=_0x3826f7,_0x2f5a67['platformDetails']=_0x35f92d,_0xc9c54=_0x2f5a67;if(_0x479f73[_0x340f54(0x137)](_0x3826f7,_0x5320a9)){logger['debug']('BrowserStack\x20params\x20extracted\x20from\x20capabilities:\x20browser='+_0x5320a9+_0x340f54(0x141)+_0x1fc890);break;}}}}if(_0x1f7b93&&_0x479f73['JRBls'](typeof _0x1f7b93,_0x479f73['GhLIy']))try{const _0x538e5d=url[_0x340f54(0x114)](_0x1f7b93),_0x5671ee=new URLSearchParams(_0x538e5d[_0x340f54(0x172)]),_0x116031=Object[_0x340f54(0xd1)](_0x5671ee['entries']()),_0x5528bf=[_0x116031[_0x340f54(0x126)],_0x116031[_0x340f54(0x152)],_0x116031[_0x340f54(0xca)]];for(const _0x4d4cae of _0x5528bf){if(_0x4d4cae&&(!_0x15c412||!_0x15c412['sessionId']))try{const _0xb34ade=JSON[_0x340f54(0x114)](_0x4d4cae),_0x26b655={};_0x26b655[_0x340f54(0x11d)]=_0xb34ade[_0x340f54(0x11d)]||_0xb34ade[_0x479f73['KHIeG']]?.[_0x340f54(0x11d)],_0x26b655[_0x340f54(0x135)]={},_0x26b655[_0x340f54(0x135)]['browserName']=_0xb34ade[_0x340f54(0x184)]||_0xb34ade[_0x340f54(0x107)],_0x26b655[_0x340f54(0x135)]['browserVersion']=_0xb34ade[_0x340f54(0xdf)]||_0xb34ade[_0x340f54(0x148)],_0x26b655[_0x340f54(0x135)]['os']=_0xb34ade['os']||_0xb34ade[_0x340f54(0x113)],_0x26b655[_0x340f54(0x135)][_0x340f54(0x177)]=_0xb34ade['osVersion']||_0xb34ade[_0x340f54(0x16c)],_0x26b655[_0x340f54(0x135)][_0x340f54(0x13b)]=_0xb34ade[_0x340f54(0x13b)]||_0xb34ade['os']||_0xb34ade[_0x340f54(0x113)],_0x26b655[_0x340f54(0x135)]['platformVersion']=_0xb34ade[_0x340f54(0x17c)]||_0xb34ade[_0x340f54(0x177)]||_0xb34ade[_0x340f54(0x16c)],_0x15c412=_0x26b655;if(_0x15c412[_0x340f54(0x11d)]||_0x15c412['platformDetails'][_0x340f54(0x184)]){logger[_0x340f54(0x142)](_0x479f73['DixeI']);break;}}catch(_0x794bfe){_0x479f73[_0x340f54(0x15f)](debug,_0x340f54(0x161)+_0x794bfe[_0x340f54(0x181)]());}}}catch(_0x2d98b0){_0x479f73[_0x340f54(0x15f)](debug,_0x340f54(0x10a)+_0x2d98b0[_0x340f54(0x181)]());}}catch(_0x26f82f){_0x479f73[_0x340f54(0xff)](debug,_0x340f54(0xcf)+util[_0x340f54(0xf5)](_0x26f82f));}const _0x440451={};return _0x440451[_0x340f54(0x13e)]=_0x15c412,_0x440451['bStackParams']=_0xc9c54,_0x440451;}static async[a60_0x12591f(0x16b)](_0x283e90,_0x2682ef){const _0x17d615=a60_0x12591f,_0x443638={'lkZPw':function(_0x33d61d,_0x387131){return _0x33d61d||_0x387131;},'rJycC':_0x17d615(0x18c),'bAIIN':function(_0x5170fc,_0x322683){return _0x5170fc||_0x322683;},'GTlFo':function(_0x211d5d,_0x61b557){return _0x211d5d(_0x61b557);}};try{if(!BrowserstackCLI[_0x17d615(0x138)]()[_0x17d615(0xfa)]())return;if(_0x443638[_0x17d615(0x12a)](_0x283e90,_0x2682ef)){logger[_0x17d615(0x142)](_0x443638[_0x17d615(0xdc)]);const _0x43e0a6={'params':_0x283e90?{'bsParams':_0x283e90}:null,'bStackParams':_0x443638[_0x17d615(0x182)](_0x2682ef,null)},_0xc0caa2=AutomationFramework[_0x17d615(0x164)](),_0x3bfb3e={};_0x3bfb3e[_0x17d615(0x10d)]=_0x43e0a6,_0x3bfb3e[_0x17d615(0x167)]=_0xc0caa2,await BrowserstackCLI[_0x17d615(0x138)]()['getAutomationFramework']()[_0x17d615(0x17a)](AutomationFrameworkState[_0x17d615(0xce)],HookState['POST'],_0x3bfb3e);}}catch(_0x195370){_0x443638[_0x17d615(0x163)](debug,_0x17d615(0x166)+util['format'](_0x195370));}}static['getDetails'](){const _0x5010b1=a60_0x12591f;return this[_0x5010b1(0x150)];}}module['exports']=SharedPlaywrightSessionDetails;
1
+ const a60_0x100dba=a60_0x1749;function a60_0x5cbc(){const _0x45cb5c=['sessionError','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','mybJB','RlhRj','AnxsD','currentSessionDetails','browser_version','CRConnection','SCXtN','dOuTN','platform','bsSessionId','csVpK','../v2/state/automationFrameworkState.js','Rzscl','XoGZp','_name','_connection','CRConnection\x20already\x20patched','join','platformDetails','Failed\x20to\x20parse\x20capabilities\x20from\x20WebSocket:\x20','./constants','caps','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','14KvyFJK','capabilities','extractBrowserStackParams','setupBrowserDetails','__platformCaps','aVbej','test','uSGwo','server','KZDDo','PUABr','15gKmESy','Error\x20in\x20applying\x20Connection\x20patch\x20','nhTnY','ftdEJ','Device\x20Model\x20is\x20not\x20available','debug','playwright-','uGdLy','kURal','AVrRS','_defaultConnectOptions','edge','445752eboXMS','platformName','AifEV','message','lWDaa','_bstackCRPatched','HQian','gecko','QmcPD','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','IIbVS','240862BLtRFC','Browser\x20is\x20not\x20defined\x20or\x20not\x20available','chrome','wRruR','wjBEo','trackEvent','browserVersion','util','GPLli','Setting\x20session\x20id\x20received\x20from\x20browserstack\x20','BSTACK_URL','PLAYWRIGHT_DISPATCH','parse','Error\x20triggering\x20PLAYWRIGHT_DISPATCH\x20event:\x20','_browserType','platform_version','path','function','toLowerCase','nOUfF','msedge','patchCRConnection','format','3VxvLNq','Browser\x20found\x20in\x20WebSocket\x20caps:\x20','includes','stringify','NgoHJ','dispatch','1547784vrmtMF','zgvaO','GtMiC','OQlhD','local_grid','capabilties','patch','Successfully\x20patched\x20Connection.dispatch','BSTACK_ATS_URL','ufNFb','apply','IVhco','getDetails','fromEntries','IVjug','Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20','ATS_WSS_URL_REGEX','EQKBw','GzjSy','entries','Not\x20able\x20to\x20import\x20crConnection','Successfully\x20patched\x20CRConnection._onMessage','EdKpx','COyjF','452784ZtMKIm','vwsfk','Ehulm','Connection\x20dispatch\x20already\x20patched','getAutomationFramework','dlPNh','dBpbF','connection.js','bstack:options','259094WHCRNE','HxCXL','Session\x20details\x20setup\x20complete:\x20','Connection','triggerPlaywrightDispatchEvent','ZoyJb','bjnHP','url','channel','product','unknown_grid','asbTL','4478913sCaMok','Using\x20browser\x20name\x20from\x20browser\x20object:\x20','CxVHX','os_version','KXloM','bsParams','Failed\x20to\x20import\x20connection\x20from\x20','isRunning','project','automate','hAVfP','BrowserStack\x20params\x20extracted\x20from\x20capabilities:\x20browser=','use','query','_onMessage','winstonLogger','YYadB','model','Error\x20extracting\x20BrowserStack\x20parameters:\x20','PUOch','accessibilityPlatform','prototype','POST','browser','uWyIp','BrowserStack\x20params\x20extracted\x20from\x20WebSocket\x20endpoint','MAKDC','GOMrc','Setting\x20session\x20id\x20received\x20from\x20BS\x20','assign','Found\x20Connection\x20class\x20at:\x20','cloudProvider','chromium','toString','Triggering\x20PLAYWRIGHT_DISPATCH\x20event','../../helpers/test-observability/utils','getInstance','osVersion','safari','defineProperty','Browser\x20name\x20overridden\x20from\x20WebSocket\x20endpoint:\x20','tNPpw','sessionId','version','crConnection.js','nBRVl','browserName','Error\x20parsing\x20WebSocket\x20endpoint:\x20','zQGgY','vhXrR','Cgmma',',\x20os=','firefox','../../helpers/logger','QwaSh','qWqvY','ohqkW','490OSBaHq','platformVersion','exports','bStackParams','params','133804fzitaT','lib','../../helpers/helper','rpAPL','_bstackDispatchPatched','lYWsj'];a60_0x5cbc=function(){return _0x45cb5c;};return a60_0x5cbc();}function a60_0x1749(_0x1b0bec,_0x1bb20d){const _0x5cbcbb=a60_0x5cbc();return a60_0x1749=function(_0x174928,_0x139a92){_0x174928=_0x174928-0xb6;let _0x233807=_0x5cbcbb[_0x174928];return _0x233807;},a60_0x1749(_0x1b0bec,_0x1bb20d);}(function(_0x5f42d2,_0x1f2694){const _0xb21ecf=a60_0x1749,_0x22b458=_0x5f42d2();while(!![]){try{const _0x16b878=parseInt(_0xb21ecf(0x15b))/0x1+parseInt(_0xb21ecf(0x126))/0x2*(parseInt(_0xb21ecf(0x13d))/0x3)+-parseInt(_0xb21ecf(0xe5))/0x4*(-parseInt(_0xb21ecf(0x10f))/0x5)+-parseInt(_0xb21ecf(0x11b))/0x6+-parseInt(_0xb21ecf(0x104))/0x7*(-parseInt(_0xb21ecf(0x143))/0x8)+parseInt(_0xb21ecf(0x170))/0x9+parseInt(_0xb21ecf(0xe0))/0xa*(-parseInt(_0xb21ecf(0x164))/0xb);if(_0x16b878===_0x1f2694)break;else _0x22b458['push'](_0x22b458['shift']());}catch(_0x5b89d9){_0x22b458['push'](_0x22b458['shift']());}}}(a60_0x5cbc,0x50805));const path=require(a60_0x100dba(0x136)),url=require(a60_0x100dba(0x16b)),util=require(a60_0x100dba(0x12d)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule,isBrowserstackInfra}=require(a60_0x100dba(0xe7)),{o11yErrorHandler}=require('../../helpers/test-observability/error-handler'),{debug,getPlatformDetails}=require(a60_0x100dba(0xca)),logger=require(a60_0x100dba(0xdc))[a60_0x100dba(0xb6)],constants=require(a60_0x100dba(0x101)),AutomationFramework=require('../v2/framework/automationFramework'),BrowserstackCLI=require('../v2/browserstackCLI'),AutomationFrameworkState=require(a60_0x100dba(0xf8)),HookState=require('../v2/state/hookState.js'),{platform}=require('os'),getBrowserNameFromChannel=_0x47b0f6=>{const _0x4a0707=a60_0x100dba,_0xa03d7c={};_0xa03d7c[_0x4a0707(0xdf)]=_0x4a0707(0x128),_0xa03d7c['lWDaa']=_0x4a0707(0x11a),_0xa03d7c[_0x4a0707(0x15a)]=_0x4a0707(0xdb),_0xa03d7c[_0x4a0707(0x151)]=_0x4a0707(0xcd);const _0x296fbc=_0xa03d7c;if(_0x47b0f6[_0x4a0707(0x13f)](_0x296fbc['ohqkW']))return _0x296fbc[_0x4a0707(0xdf)];if(_0x47b0f6[_0x4a0707(0x13f)](_0x296fbc['lWDaa']))return _0x296fbc[_0x4a0707(0x11f)];if(_0x47b0f6[_0x4a0707(0x13f)](_0x296fbc['COyjF']))return _0x296fbc['COyjF'];if(_0x47b0f6['includes'](_0x296fbc['IVjug']))return _0x296fbc['IVjug'];},getBrowserFromWSEndpoint=_0x531c43=>{const _0x1f7452=a60_0x100dba,_0x57f92b={'aYbrQ':_0x1f7452(0x163),'wYfdx':function(_0x2915b2,_0x138295){return _0x2915b2(_0x138295);},'Rzscl':function(_0x499898,_0x219871){return _0x499898(_0x219871);},'bjnHP':_0x1f7452(0x11a),'GOMrc':_0x1f7452(0x13a),'wRruR':_0x1f7452(0xdb),'xrrRx':_0x1f7452(0x122),'Ehulm':_0x1f7452(0xcd),'nBRVl':'webkit','SCXtN':_0x1f7452(0x128)};try{const _0x454bc9=url[_0x1f7452(0x132)](_0x531c43),_0x3fcdb1=new URLSearchParams(_0x454bc9['query']),_0x334f91=Object[_0x1f7452(0x150)](_0x3fcdb1[_0x1f7452(0x156)]()),_0x1b874e=[_0x334f91[_0x1f7452(0x102)],_0x334f91[_0x1f7452(0x105)],_0x334f91['desiredCapabilities'],_0x334f91['browserstack_capabilities']];for(const _0x125218 of _0x1b874e){if(_0x125218)try{const _0x4e959b=JSON[_0x1f7452(0x132)](_0x125218),_0x3435f5=_0x4e959b[_0x1f7452(0xd5)]||_0x4e959b[_0x1f7452(0xbe)]||_0x4e959b[_0x57f92b['aYbrQ']]?.[_0x1f7452(0xd5)];if(_0x3435f5)return _0x57f92b['wYfdx'](debug,_0x1f7452(0x13e)+_0x3435f5),_0x3435f5[_0x1f7452(0x138)]();}catch(_0xa680b5){_0x57f92b['Rzscl'](debug,'Failed\x20to\x20parse\x20caps\x20from\x20WebSocket:\x20'+_0xa680b5[_0x1f7452(0x11e)]);}}if(_0x531c43[_0x1f7452(0x13f)](_0x57f92b['bjnHP'])||_0x531c43[_0x1f7452(0x13f)](_0x57f92b[_0x1f7452(0xc2)]))return _0x57f92b[_0x1f7452(0x16a)];if(_0x531c43[_0x1f7452(0x13f)](_0x57f92b[_0x1f7452(0x129)])||_0x531c43[_0x1f7452(0x13f)](_0x57f92b['xrrRx']))return _0x57f92b[_0x1f7452(0x129)];if(_0x531c43[_0x1f7452(0x13f)](_0x57f92b[_0x1f7452(0x15d)])||_0x531c43['includes'](_0x57f92b[_0x1f7452(0xd4)]))return _0x57f92b[_0x1f7452(0x15d)];return _0x57f92b[_0x1f7452(0xf3)];}catch(_0x2b7a10){return _0x57f92b[_0x1f7452(0xf9)](debug,'Error\x20in\x20getting\x20browser\x20from\x20WebSocket\x20endpoint:\x20'+_0x2b7a10[_0x1f7452(0xc8)]()),_0x57f92b[_0x1f7452(0xf3)];}},getCloudProviderFromWsEndpoint=_0x2e6d7a=>{const _0x480ed7=a60_0x100dba,_0xe497ee={};_0xe497ee[_0x480ed7(0xea)]='browserstack',_0xe497ee['yRWRv']=_0x480ed7(0x16e);const _0x26d34b=_0xe497ee;if(_0x2e6d7a['includes'](constants[_0x480ed7(0x130)])||_0x2e6d7a[_0x480ed7(0x13f)](constants[_0x480ed7(0x14b)]))return _0x26d34b[_0x480ed7(0xea)];return _0x26d34b['yRWRv'];},a60_0x2e3b86={};a60_0x2e3b86[a60_0x100dba(0xc6)]=undefined,a60_0x2e3b86[a60_0x100dba(0xf6)]=undefined,a60_0x2e3b86['browser']=undefined,a60_0x2e3b86[a60_0x100dba(0xf1)]=undefined,a60_0x2e3b86[a60_0x100dba(0xf5)]=undefined,a60_0x2e3b86[a60_0x100dba(0x135)]=undefined,a60_0x2e3b86[a60_0x100dba(0x16d)]=undefined,a60_0x2e3b86[a60_0x100dba(0x105)]={};class SharedPlaywrightSessionDetails{static [a60_0x100dba(0xf0)]=a60_0x2e3b86;constructor(){const _0x2d89ea=a60_0x100dba,_0x17237d={};_0x17237d[_0x2d89ea(0x145)]=_0x2d89ea(0x103);const _0x44812d=_0x17237d;throw new Error(_0x44812d[_0x2d89ea(0x145)]);}static [a60_0x100dba(0xeb)]=null;static[a60_0x100dba(0x107)](_0x18a38a,_0x22655f,_0xfcbc30=null){const _0x3e4cb5=a60_0x100dba,_0x497f5f={'KZDDo':function(_0x5e619d,_0x19569c){return _0x5e619d===_0x19569c;},'QmcPD':_0x3e4cb5(0x137),'aVbej':_0x3e4cb5(0x127),'nvUQp':function(_0x1b1c3b,_0x3f62ad){return _0x1b1c3b===_0x3f62ad;},'KXloM':_0x3e4cb5(0x113),'hAVfP':_0x3e4cb5(0x147),'AifEV':function(_0x5ee1a2,_0x236152,_0x22e999){return _0x5ee1a2(_0x236152,_0x22e999);},'csVpK':_0x3e4cb5(0x134),'GzjSy':_0x3e4cb5(0x119),'zFgmT':_0x3e4cb5(0x178),'vwsfk':_0x3e4cb5(0x17c),'geSOU':'connectOptions','zgvaO':function(_0x5e2c56,_0xdaa0e4){return _0x5e2c56(_0xdaa0e4);},'Cgmma':'browserstack','QwaSh':'turboscale','fLaMS':_0x3e4cb5(0x179),'rpAPL':_0x3e4cb5(0xc7),'qWqvY':function(_0xc52a52){return _0xc52a52();},'nNoXQ':function(_0x21eb02,_0x1b0a15){return _0x21eb02&&_0x1b0a15;},'YYadB':function(_0x3834cd,_0x5edf00){return _0x3834cd(_0x5edf00);},'tNPpw':function(_0x35f3ef,_0xefbb3c){return _0x35f3ef+_0xefbb3c;},'smacD':_0x3e4cb5(0x115),'kURal':_0x3e4cb5(0x107)},_0x543d33=this;return _0x497f5f[_0x3e4cb5(0x11d)](o11yErrorHandler,async function _0x242975(_0x4228cb,_0x15c8c7,_0x3821b5=null){const _0x4de42b=_0x3e4cb5;let _0x4efb77=_0x4228cb[_0x4de42b(0xfb)],_0x41ea=null;_0x4228cb&&_0x497f5f['KZDDo'](typeof _0x4228cb[_0x4de42b(0xd2)],_0x497f5f[_0x4de42b(0x123)])?_0x41ea=_0x4228cb[_0x4de42b(0xd2)]():logger[_0x4de42b(0x114)](_0x497f5f[_0x4de42b(0x109)]);let _0x56d852=null;_0x4228cb&&_0x497f5f['nvUQp'](typeof _0x4228cb[_0x4de42b(0xb8)],_0x497f5f['QmcPD'])?_0x56d852=_0x4228cb['model']():logger[_0x4de42b(0x114)](_0x497f5f[_0x4de42b(0x174)]);let _0x11ef33=null,_0x5b57dc=null,_0x1d449a=null,_0x10dc03=_0x497f5f[_0x4de42b(0x17a)];if(_0x4228cb[_0x4de42b(0xfc)]['isRemote']()||global[_0x4de42b(0xbb)]){let _0x5158fc=null;_0x497f5f[_0x4de42b(0x11d)](nestedKeyValue,_0x4228cb,[_0x497f5f[_0x4de42b(0xf7)],_0x497f5f[_0x4de42b(0x155)]])?_0x5158fc=_0x4228cb[_0x4de42b(0x134)][_0x4de42b(0x119)]:_0x5158fc=_0x497f5f['AifEV'](nestedKeyValue,_0x15c8c7,[_0x497f5f['zFgmT'],_0x497f5f[_0x4de42b(0x15c)],_0x497f5f['geSOU']]);const _0x8ea63f=_0x3821b5||_0x5158fc&&_0x5158fc['wsEndpoint'];if(_0x8ea63f){_0x10dc03=_0x497f5f['zgvaO'](getCloudProviderFromWsEndpoint,_0x8ea63f);if(_0x497f5f['KZDDo'](_0x10dc03,_0x497f5f[_0x4de42b(0xd9)])){_0x1d449a=constants[_0x4de42b(0x153)][_0x4de42b(0x10a)](_0x8ea63f)?_0x497f5f[_0x4de42b(0xdd)]:_0x497f5f['fLaMS'];const _0x5ac8af=_0x497f5f[_0x4de42b(0x144)](getBrowserFromWSEndpoint,_0x8ea63f);if(_0x5ac8af&&(!_0x4efb77||_0x497f5f[_0x4de42b(0x10d)](_0x4efb77,_0x497f5f[_0x4de42b(0xe8)])))_0x4efb77=_0x5ac8af,logger[_0x4de42b(0x114)](_0x4de42b(0xcf)+_0x4efb77);else _0x4efb77&&logger[_0x4de42b(0x114)](_0x4de42b(0x171)+_0x4efb77);_0x11ef33=_0x543d33[_0x4de42b(0xf0)][_0x4de42b(0xf5)],_0x5b57dc=_0x543d33[_0x4de42b(0xf0)][_0x4de42b(0x135)];}else{const _0x37d87a=await _0x497f5f[_0x4de42b(0xde)](getPlatformDetails);_0x11ef33=_0x37d87a['platformName'],_0x5b57dc=_0x37d87a[_0x4de42b(0xe1)];}}if(_0x497f5f['nNoXQ'](!_0x11ef33,!_0x5b57dc)&&!_0x497f5f[_0x4de42b(0xde)](isBrowserstackInfra)){const _0x3dd682=await _0x497f5f[_0x4de42b(0xde)](getPlatformDetails);_0x11ef33=_0x3dd682['platformName'],_0x5b57dc=_0x3dd682[_0x4de42b(0xe1)];}}else{_0x15c8c7&&_0x15c8c7[_0x4de42b(0x178)]&&_0x15c8c7['project']['use']&&_0x15c8c7[_0x4de42b(0x178)][_0x4de42b(0x17c)][_0x4de42b(0x16c)]?_0x4efb77=_0x497f5f[_0x4de42b(0xb7)](getBrowserNameFromChannel,_0x15c8c7[_0x4de42b(0x178)][_0x4de42b(0x17c)][_0x4de42b(0x16c)]):_0x4efb77=_0x497f5f[_0x4de42b(0xd0)](_0x497f5f['smacD'],_0x4efb77[_0x4de42b(0x138)]());const _0x451a10=await _0x497f5f['qWqvY'](getPlatformDetails);_0x11ef33=_0x451a10[_0x4de42b(0x11c)],_0x5b57dc=_0x451a10[_0x4de42b(0xe1)];}const _0x13fb7e={};_0x13fb7e[_0x4de42b(0xbe)]=_0x4efb77,_0x13fb7e[_0x4de42b(0xf1)]=_0x41ea,_0x13fb7e[_0x4de42b(0x105)]={},_0x13fb7e['platform']=_0x11ef33,_0x13fb7e[_0x4de42b(0x135)]=_0x5b57dc,_0x13fb7e['product']=_0x1d449a;const _0x30c037=_0x13fb7e;_0x56d852&&(_0x30c037[_0x4de42b(0x105)]['deviceModel']=_0x56d852);const _0x130d85={};_0x130d85['cloudProvider']=_0x10dc03,_0x543d33[_0x4de42b(0xf0)]=Object[_0x4de42b(0xc4)]({},_0x543d33['currentSessionDetails'],_0x130d85,_0x30c037);const _0x4cf860={};_0x4cf860[_0x4de42b(0xbe)]=_0x543d33[_0x4de42b(0xf0)][_0x4de42b(0xbe)],_0x4cf860[_0x4de42b(0x12c)]=_0x543d33[_0x4de42b(0xf0)]['browser_version'],_0x4cf860[_0x4de42b(0xf5)]=_0x543d33[_0x4de42b(0xf0)][_0x4de42b(0xf5)],_0x4cf860[_0x4de42b(0xe1)]=_0x543d33[_0x4de42b(0xf0)][_0x4de42b(0x135)],_0x4cf860[_0x4de42b(0xc6)]=_0x543d33[_0x4de42b(0xf0)][_0x4de42b(0xc6)],_0x4cf860[_0x4de42b(0x16d)]=_0x543d33['currentSessionDetails'][_0x4de42b(0x16d)],logger['debug'](_0x4de42b(0x166)+JSON[_0x4de42b(0x140)](_0x4cf860));},_0x497f5f[_0x3e4cb5(0x117)])(_0x18a38a,_0x22655f,_0xfcbc30);}static[a60_0x100dba(0x149)](){const _0x3f9450=a60_0x100dba;this['patchConnection'](),this[_0x3f9450(0x13b)]();}static['patchConnection'](){const _0x4a3b01=a60_0x100dba,_0x217f1d={'HQian':function(_0x36e9e2,_0x552389){return _0x36e9e2(_0x552389);},'nhTnY':function(_0x542a1e,_0x6f493c){return _0x542a1e(_0x6f493c);},'uGdLy':_0x4a3b01(0xe6),'XoGZp':'client','ZoyJb':_0x4a3b01(0x162),'dBpbF':function(_0x19af8b,_0x2fa430){return _0x19af8b(_0x2fa430);},'uWyIp':function(_0x880bf0,_0x1d1d71){return _0x880bf0(_0x1d1d71);},'PUOch':'Not\x20able\x20to\x20import\x20Connection\x20class\x20from\x20any\x20path','feUZw':function(_0x125987,_0x338621){return _0x125987(_0x338621);},'dJzkL':function(_0x7d967c,_0x3dda7a){return _0x7d967c!=_0x3dda7a;},'dlPNh':_0x4a3b01(0x15e),'twQec':_0x4a3b01(0x142),'zQGgY':_0x4a3b01(0x14a)},_0x5ec324=this;if(!this['Connection'])try{const _0x48c323=[path[_0x4a3b01(0xfe)](_0x217f1d[_0x4a3b01(0x116)],_0x217f1d[_0x4a3b01(0xfa)],_0x217f1d[_0x4a3b01(0x169)]),path['join'](_0x217f1d[_0x4a3b01(0x116)],_0x217f1d[_0x4a3b01(0x169)]),path[_0x4a3b01(0xfe)](_0x217f1d[_0x4a3b01(0xfa)],_0x217f1d[_0x4a3b01(0x169)])];for(const _0x2644d5 of _0x48c323){try{const _0x3ea86f=_0x217f1d[_0x4a3b01(0x161)](importFileFromPWCore,_0x2644d5);if(_0x3ea86f&&_0x3ea86f[_0x4a3b01(0x167)]){this[_0x4a3b01(0x167)]=_0x3ea86f[_0x4a3b01(0x167)],logger[_0x4a3b01(0x114)](_0x4a3b01(0xc5)+_0x2644d5);break;}}catch(_0x3e1161){_0x217f1d[_0x4a3b01(0x111)](debug,_0x4a3b01(0x176)+_0x2644d5+':\x20'+_0x3e1161[_0x4a3b01(0xc8)]());}}if(!this[_0x4a3b01(0x167)]){_0x217f1d[_0x4a3b01(0xbf)](debug,_0x217f1d[_0x4a3b01(0xba)]);return;}}catch(_0x2e104a){_0x217f1d['feUZw'](debug,'Error\x20in\x20importing\x20connection\x20'+_0x2e104a[_0x4a3b01(0xc8)]());return;}const _0xcebfdf=this[_0x4a3b01(0x167)];try{if(_0x217f1d['dJzkL'](_0xcebfdf,null)){const _0x2e4863=_0xcebfdf[_0x4a3b01(0xbc)][_0x4a3b01(0x142)];if(!_0x217f1d['feUZw'](isFalse,process['env']['BROWSERSTACK_TEST_OBSERVABILITY'])){if(_0xcebfdf[_0x4a3b01(0xbc)][_0x4a3b01(0xe9)]){logger[_0x4a3b01(0x114)](_0x217f1d[_0x4a3b01(0x160)]);return;}Object[_0x4a3b01(0xce)](_0xcebfdf[_0x4a3b01(0xbc)],_0x217f1d['twQec'],{'get':function(){return async function _0x3ebf7d(_0x58ff28){const _0x59e999=a60_0x1749;if(BrowserstackCLI[_0x59e999(0xcb)]()[_0x59e999(0x177)]()){const _0x3358c1={};_0x3358c1[_0x59e999(0x11e)]=_0x58ff28,await BrowserstackCLI[_0x59e999(0xcb)]()[_0x59e999(0x15f)]()[_0x59e999(0x12b)](AutomationFrameworkState['PLAYWRIGHT_DISPATCH'],HookState[_0x59e999(0xbd)],_0x3358c1);}else{const _0x2889a7=_0x58ff28&&_0x58ff28[_0x59e999(0xe4)]&&_0x58ff28[_0x59e999(0xe4)][_0x59e999(0x175)];if(_0x2889a7){const _0x1ad3e6=_0x2889a7[_0x59e999(0xd1)],_0x204390=_0x2889a7[_0x59e999(0xff)];_0x204390&&(_0x217f1d[_0x59e999(0x121)](debug,_0x59e999(0xec)+_0x204390[_0x59e999(0xc8)]()),_0x5ec324[_0x59e999(0xf0)][_0x59e999(0xf5)]=_0x204390['platformName'],_0x5ec324['currentSessionDetails'][_0x59e999(0x135)]=_0x204390[_0x59e999(0xe1)]),_0x1ad3e6&&(_0x217f1d[_0x59e999(0x111)](debug,_0x59e999(0xc3)+_0x1ad3e6),_0x5ec324[_0x59e999(0xf0)][_0x59e999(0xf6)]=_0x1ad3e6);}}return _0x2e4863['apply'](this,arguments);};}}),_0xcebfdf[_0x4a3b01(0xbc)][_0x4a3b01(0xe9)]=!![],logger[_0x4a3b01(0x114)](_0x217f1d[_0x4a3b01(0xd7)]);}}}catch(_0x4379e1){_0x217f1d[_0x4a3b01(0x111)](debug,_0x4a3b01(0x110)+_0x4379e1),_0x5ec324[_0x4a3b01(0xeb)]=_0x4379e1[_0x4a3b01(0xc8)]();}}static[a60_0x100dba(0x13b)](){const _0x2da689=a60_0x100dba,_0x1a1335={'asbTL':function(_0x1320fb,_0x389f47){return _0x1320fb(_0x389f47);},'ufNFb':function(_0x5c9e84,_0xcf25a4){return _0x5c9e84(_0xcf25a4);},'CxVHX':'lib','IVhco':_0x2da689(0x10c),'AnxsD':_0x2da689(0xc7),'nOUfF':_0x2da689(0xd3),'OQlhD':function(_0x394339,_0x1f2723){return _0x394339(_0x1f2723);},'IIbVS':_0x2da689(0x157),'RlhRj':'Error\x20in\x20importing\x20crConnection','EdKpx':function(_0x2ce181,_0x20b3dc){return _0x2ce181!=_0x20b3dc;},'mybJB':_0x2da689(0xfd),'AVrRS':_0x2da689(0x17e),'tgeRf':_0x2da689(0x158)},_0x28d85b=this;let _0x507865=null;try{const _0x2994a0=path[_0x2da689(0xfe)](_0x1a1335[_0x2da689(0x172)],_0x1a1335[_0x2da689(0x14e)],_0x1a1335[_0x2da689(0xef)],_0x1a1335[_0x2da689(0x139)]),_0x7d33fb=_0x1a1335[_0x2da689(0x146)](importFileFromPWCore,_0x2994a0);!_0x7d33fb?_0x1a1335[_0x2da689(0x14c)](debug,_0x1a1335[_0x2da689(0x125)]):_0x507865=_0x7d33fb[_0x2da689(0xf2)];}catch(_0x1e7090){_0x1a1335['asbTL'](debug,_0x1a1335[_0x2da689(0xee)]);}try{if(_0x1a1335[_0x2da689(0x159)](_0x507865,null)){const _0x21e5d3=_0x507865[_0x2da689(0xbc)][_0x2da689(0x17e)];if(_0x507865[_0x2da689(0xbc)][_0x2da689(0x120)]){logger['debug'](_0x1a1335[_0x2da689(0xed)]);return;}Object[_0x2da689(0xce)](_0x507865[_0x2da689(0xbc)],_0x1a1335[_0x2da689(0x118)],{'get':function(){const _0x55e1e6={'vhXrR':function(_0x5c1377,_0x58b530){const _0x1df528=a60_0x1749;return _0x1a1335[_0x1df528(0x16f)](_0x5c1377,_0x58b530);},'MAKDC':function(_0x57ff93,_0x37d9a6){const _0x122f6b=a60_0x1749;return _0x1a1335[_0x122f6b(0x16f)](_0x57ff93,_0x37d9a6);},'dOuTN':function(_0x5aaf62,_0x4a652d){const _0x172dc7=a60_0x1749;return _0x1a1335[_0x172dc7(0x14c)](_0x5aaf62,_0x4a652d);}};return async function _0x291556(_0x171a1e){const _0x351b9a=a60_0x1749;try{if(BrowserstackCLI[_0x351b9a(0xcb)]()[_0x351b9a(0x177)]()){const _0x1848a8={};_0x1848a8[_0x351b9a(0x11e)]=_0x171a1e,await BrowserstackCLI[_0x351b9a(0xcb)]()[_0x351b9a(0x15f)]()[_0x351b9a(0x12b)](AutomationFrameworkState[_0x351b9a(0x131)],HookState[_0x351b9a(0xbd)],_0x1848a8),delete _0x171a1e[_0x351b9a(0xe3)];}else{const _0x341f32=_0x171a1e['bStackParams'];if(_0x341f32){delete _0x171a1e[_0x351b9a(0xe3)];const _0xca50ba=_0x341f32[_0x351b9a(0xd1)],_0x531583=_0x341f32[_0x351b9a(0xff)];_0x531583&&(_0x55e1e6[_0x351b9a(0xd8)](debug,_0x351b9a(0x124)+_0x531583[_0x351b9a(0xc8)]()),_0x28d85b[_0x351b9a(0xf0)][_0x351b9a(0xf5)]=_0x531583[_0x351b9a(0x11c)],_0x28d85b[_0x351b9a(0xf0)][_0x351b9a(0x135)]=_0x531583[_0x351b9a(0xe1)]),_0xca50ba&&(_0x55e1e6[_0x351b9a(0xc1)](debug,_0x351b9a(0x12f)+_0xca50ba),_0x28d85b['currentSessionDetails']['bsSessionId']=_0xca50ba);}}}catch(_0x28a8f5){_0x55e1e6[_0x351b9a(0xf4)](debug,'Error\x20in\x20finding\x20platform\x20details\x20'+_0x28a8f5[_0x351b9a(0xc8)]());}return _0x21e5d3[_0x351b9a(0x14d)](this,arguments);};}}),_0x507865[_0x2da689(0xbc)][_0x2da689(0x120)]=!![],logger[_0x2da689(0x114)](_0x1a1335['tgeRf']);}}catch(_0x2eb190){_0x1a1335[_0x2da689(0x16f)](debug,_0x2da689(0x152)+_0x2eb190),_0x28d85b[_0x2da689(0xeb)]=_0x2eb190[_0x2da689(0xc8)]();}}static[a60_0x100dba(0x106)](_0x34bfbb,_0x67cc4b){const _0x57458f=a60_0x100dba,_0x53f309={'EQKBw':_0x57458f(0x163),'wjBEo':function(_0x3e2fe5,_0x1eca44){return _0x3e2fe5||_0x1eca44;},'RAkEK':function(_0x34f54f,_0x2440bc){return _0x34f54f===_0x2440bc;},'qptZL':'string','PUABr':_0x57458f(0xc0),'uSGwo':function(_0x57d3b5,_0x4ccbbe){return _0x57d3b5(_0x4ccbbe);},'GPLli':function(_0x4abc19,_0x3e2ac5){return _0x4abc19(_0x3e2ac5);}};let _0x42fea2=null,_0x2b5f3c=null;try{const _0x15f56d=[_0x67cc4b,global[_0x57458f(0x108)],global[_0x57458f(0x148)]];for(const _0x8cfad4 of _0x15f56d){if(_0x8cfad4&&(!_0x2b5f3c||!_0x2b5f3c[_0x57458f(0xd1)])){const _0x566b71=_0x8cfad4[_0x57458f(0xd1)]||_0x8cfad4[_0x53f309[_0x57458f(0x154)]]?.[_0x57458f(0xd1)],_0x152f19=_0x8cfad4['browserName']||_0x8cfad4[_0x57458f(0xbe)]||_0x8cfad4[_0x53f309['EQKBw']]?.[_0x57458f(0xd5)],_0x4f24eb=_0x8cfad4[_0x57458f(0x12c)]||_0x8cfad4[_0x57458f(0xf1)]||_0x8cfad4[_0x53f309['EQKBw']]?.[_0x57458f(0x12c)],_0x56eecd=_0x8cfad4['os']||_0x8cfad4[_0x57458f(0xf5)]||_0x8cfad4[_0x53f309['EQKBw']]?.['os'],_0x1829ff=_0x8cfad4[_0x57458f(0xcc)]||_0x8cfad4[_0x57458f(0x173)]||_0x8cfad4[_0x53f309[_0x57458f(0x154)]]?.['osVersion'];if(_0x53f309[_0x57458f(0x12a)](_0x566b71,_0x152f19)||_0x56eecd){const _0x444536={};_0x444536['browserName']=_0x152f19,_0x444536[_0x57458f(0x12c)]=_0x4f24eb,_0x444536['os']=_0x56eecd,_0x444536['osVersion']=_0x1829ff,_0x444536[_0x57458f(0x11c)]=_0x8cfad4[_0x57458f(0x11c)]||_0x56eecd,_0x444536[_0x57458f(0xe1)]=_0x8cfad4[_0x57458f(0xe1)]||_0x1829ff;const _0x96f86f={};_0x96f86f['sessionId']=_0x566b71,_0x96f86f['platformDetails']=_0x444536,_0x2b5f3c=_0x96f86f;if(_0x53f309[_0x57458f(0x12a)](_0x566b71,_0x152f19)){logger['debug'](_0x57458f(0x17b)+_0x152f19+_0x57458f(0xda)+_0x56eecd);break;}}}}if(_0x34bfbb&&_0x53f309['RAkEK'](typeof _0x34bfbb,_0x53f309['qptZL']))try{const _0x11a341=url[_0x57458f(0x132)](_0x34bfbb),_0x4cb6b5=new URLSearchParams(_0x11a341[_0x57458f(0x17d)]),_0x6693de=Object['fromEntries'](_0x4cb6b5[_0x57458f(0x156)]()),_0x348d6c=[_0x6693de[_0x57458f(0x102)],_0x6693de[_0x57458f(0x105)],_0x6693de['desiredCapabilities']];for(const _0x5ef818 of _0x348d6c){if(_0x5ef818&&(!_0x42fea2||!_0x42fea2[_0x57458f(0xd1)]))try{const _0x45812c=JSON['parse'](_0x5ef818),_0x5da32f={};_0x5da32f[_0x57458f(0xd1)]=_0x45812c[_0x57458f(0xd1)]||_0x45812c[_0x53f309['EQKBw']]?.[_0x57458f(0xd1)],_0x5da32f[_0x57458f(0xff)]={},_0x5da32f[_0x57458f(0xff)][_0x57458f(0xd5)]=_0x45812c['browserName']||_0x45812c[_0x57458f(0xbe)],_0x5da32f[_0x57458f(0xff)][_0x57458f(0x12c)]=_0x45812c[_0x57458f(0x12c)]||_0x45812c[_0x57458f(0xf1)],_0x5da32f[_0x57458f(0xff)]['os']=_0x45812c['os']||_0x45812c[_0x57458f(0xf5)],_0x5da32f[_0x57458f(0xff)][_0x57458f(0xcc)]=_0x45812c[_0x57458f(0xcc)]||_0x45812c['os_version'],_0x5da32f[_0x57458f(0xff)][_0x57458f(0x11c)]=_0x45812c['platformName']||_0x45812c['os']||_0x45812c[_0x57458f(0xf5)],_0x5da32f[_0x57458f(0xff)][_0x57458f(0xe1)]=_0x45812c['platformVersion']||_0x45812c[_0x57458f(0xcc)]||_0x45812c[_0x57458f(0x173)],_0x42fea2=_0x5da32f;if(_0x42fea2[_0x57458f(0xd1)]||_0x42fea2[_0x57458f(0xff)][_0x57458f(0xd5)]){logger[_0x57458f(0x114)](_0x53f309[_0x57458f(0x10e)]);break;}}catch(_0x1376d9){_0x53f309['uSGwo'](debug,_0x57458f(0x100)+_0x1376d9[_0x57458f(0xc8)]());}}}catch(_0x39c5c1){_0x53f309[_0x57458f(0x10b)](debug,_0x57458f(0xd6)+_0x39c5c1[_0x57458f(0xc8)]());}}catch(_0x374f97){_0x53f309[_0x57458f(0x12e)](debug,_0x57458f(0xb9)+util[_0x57458f(0x13c)](_0x374f97));}const _0x323b59={};return _0x323b59['bsParams']=_0x42fea2,_0x323b59[_0x57458f(0xe3)]=_0x2b5f3c,_0x323b59;}static async[a60_0x100dba(0x168)](_0x4ee94b,_0x22da65){const _0x21b28b=a60_0x100dba,_0x2a6cb5={'HxCXL':function(_0x1890ab,_0x7f8ced){return _0x1890ab||_0x7f8ced;},'ftdEJ':_0x21b28b(0xc9),'NgoHJ':function(_0x174993,_0x2eb436){return _0x174993(_0x2eb436);}};try{if(!BrowserstackCLI[_0x21b28b(0xcb)]()[_0x21b28b(0x177)]())return;if(_0x2a6cb5[_0x21b28b(0x165)](_0x4ee94b,_0x22da65)){logger['debug'](_0x2a6cb5[_0x21b28b(0x112)]);const _0x250216={'params':_0x4ee94b?{'bsParams':_0x4ee94b}:null,'bStackParams':_0x2a6cb5['HxCXL'](_0x22da65,null)},_0x148674=AutomationFramework['getTrackedInstance'](),_0x4b238e={};_0x4b238e[_0x21b28b(0x11e)]=_0x250216,_0x4b238e['instance']=_0x148674,await BrowserstackCLI[_0x21b28b(0xcb)]()[_0x21b28b(0x15f)]()[_0x21b28b(0x12b)](AutomationFrameworkState[_0x21b28b(0x131)],HookState[_0x21b28b(0xbd)],_0x4b238e);}}catch(_0x1c7541){_0x2a6cb5[_0x21b28b(0x141)](debug,_0x21b28b(0x133)+util[_0x21b28b(0x13c)](_0x1c7541));}}static[a60_0x100dba(0x14f)](){const _0x167a55=a60_0x100dba;return this[_0x167a55(0xf0)];}}module[a60_0x100dba(0xe2)]=SharedPlaywrightSessionDetails;
@@ -1 +1 @@
1
- const a61_0x27b01c=a61_0x1382;function a61_0x1382(_0x1c4faf,_0x4ecb8f){const _0x48216b=a61_0x4821();return a61_0x1382=function(_0x1382fa,_0x23fc44){_0x1382fa=_0x1382fa-0x1d4;let _0x4fcb2f=_0x48216b[_0x1382fa];return _0x4fcb2f;},a61_0x1382(_0x1c4faf,_0x4ecb8f);}(function(_0x4247ac,_0x5ed76d){const _0x5a39b8=a61_0x1382,_0x5e2fe9=_0x4247ac();while(!![]){try{const _0x4fc3a8=-parseInt(_0x5a39b8(0x1e3))/0x1+-parseInt(_0x5a39b8(0x1d6))/0x2*(parseInt(_0x5a39b8(0x1db))/0x3)+parseInt(_0x5a39b8(0x1e5))/0x4*(parseInt(_0x5a39b8(0x1df))/0x5)+-parseInt(_0x5a39b8(0x1de))/0x6*(-parseInt(_0x5a39b8(0x1e1))/0x7)+-parseInt(_0x5a39b8(0x1d7))/0x8+-parseInt(_0x5a39b8(0x1e6))/0x9*(-parseInt(_0x5a39b8(0x1dd))/0xa)+parseInt(_0x5a39b8(0x1d5))/0xb;if(_0x4fc3a8===_0x5ed76d)break;else _0x5e2fe9['push'](_0x5e2fe9['shift']());}catch(_0x5ec513){_0x5e2fe9['push'](_0x5e2fe9['shift']());}}}(a61_0x4821,0x1f6cb));const isHash=_0x541cce=>Boolean(_0x541cce&&typeof _0x541cce===a61_0x27b01c(0x1da)&&!Array[a61_0x27b01c(0x1e2)](_0x541cce)),nestedKeyValue=(_0x361876,_0x818275)=>{const _0x2b18b2=a61_0x27b01c,_0x4193f0={'cmoKg':function(_0x25e725,_0x201118){return _0x25e725===_0x201118;},'oPMts':function(_0x11fadb,_0x11e8a7){return _0x11fadb===_0x11e8a7;},'WEwmD':_0x2b18b2(0x1e7),'QtsVK':function(_0x3e64a4,_0x89985d){return _0x3e64a4(_0x89985d);}};return _0x818275[_0x2b18b2(0x1d9)]((_0x54e03c,_0x37a364)=>{const _0x3cd218=_0x2b18b2;if(_0x4193f0[_0x3cd218(0x1e8)](_0x54e03c,undefined)||_0x4193f0[_0x3cd218(0x1d8)](_0x54e03c,null))return undefined;if(_0x54e03c&&_0x4193f0['cmoKg'](typeof _0x54e03c[_0x3cd218(0x1e0)],_0x4193f0['WEwmD']))return _0x54e03c[_0x3cd218(0x1e0)](_0x37a364);if(_0x4193f0[_0x3cd218(0x1dc)](isHash,_0x54e03c))return _0x54e03c[_0x37a364];return undefined;},_0x361876);},a61_0x9d68c3={};function a61_0x4821(){const _0x389507=['isArray','56558jtngix','exports','124dsRFau','250227WTRDyO','function','cmoKg','isHash','267487qweZnf','266782YtLbEi','415872BRODMX','oPMts','reduce','object','3MfRWHO','QtsVK','10HGEBDs','6cVufwM','24985zQYywg','get','1145347NFogtl'];a61_0x4821=function(){return _0x389507;};return a61_0x4821();}a61_0x9d68c3[a61_0x27b01c(0x1d4)]=isHash,a61_0x9d68c3['nestedKeyValue']=nestedKeyValue,module[a61_0x27b01c(0x1e4)]=a61_0x9d68c3;
1
+ const a61_0x1dec8e=a61_0x431c;(function(_0x30370a,_0x5201ab){const _0x563e55=a61_0x431c,_0xf247fa=_0x30370a();while(!![]){try{const _0xaf916e=parseInt(_0x563e55(0x11e))/0x1+parseInt(_0x563e55(0x126))/0x2+-parseInt(_0x563e55(0x120))/0x3*(parseInt(_0x563e55(0x115))/0x4)+parseInt(_0x563e55(0x11a))/0x5*(-parseInt(_0x563e55(0x118))/0x6)+parseInt(_0x563e55(0x122))/0x7+parseInt(_0x563e55(0x11b))/0x8*(parseInt(_0x563e55(0x123))/0x9)+-parseInt(_0x563e55(0x119))/0xa;if(_0xaf916e===_0x5201ab)break;else _0xf247fa['push'](_0xf247fa['shift']());}catch(_0x55f1bc){_0xf247fa['push'](_0xf247fa['shift']());}}}(a61_0x570d,0xebf70));const isHash=_0x2e4c2e=>Boolean(_0x2e4c2e&&typeof _0x2e4c2e==='object'&&!Array[a61_0x1dec8e(0x128)](_0x2e4c2e)),nestedKeyValue=(_0x225433,_0x392878)=>{const _0x23b68f=a61_0x1dec8e,_0x470a07={'EKMDY':function(_0x342ade,_0x3380d1){return _0x342ade===_0x3380d1;},'FRYVx':function(_0x5a77f8,_0x5e07f3){return _0x5a77f8===_0x5e07f3;},'UbMIN':function(_0x4c11c7,_0xa5f3ae){return _0x4c11c7===_0xa5f3ae;},'wHkyG':_0x23b68f(0x117),'TuLkI':function(_0x5b7b41,_0x3f73f1){return _0x5b7b41(_0x3f73f1);}};return _0x392878[_0x23b68f(0x121)]((_0x5771af,_0x4254b7)=>{const _0x5548d9=_0x23b68f;if(_0x470a07[_0x5548d9(0x11f)](_0x5771af,undefined)||_0x470a07['FRYVx'](_0x5771af,null))return undefined;if(_0x5771af&&_0x470a07[_0x5548d9(0x11d)](typeof _0x5771af[_0x5548d9(0x127)],_0x470a07[_0x5548d9(0x116)]))return _0x5771af[_0x5548d9(0x127)](_0x4254b7);if(_0x470a07[_0x5548d9(0x125)](isHash,_0x5771af))return _0x5771af[_0x4254b7];return undefined;},_0x225433);},a61_0x1e0dc5={};function a61_0x570d(){const _0x1f5e8f=['EKMDY','3414129tEYXwh','reduce','5759159bbQJPD','1193265vncBRN','exports','TuLkI','3832674cvEKsJ','get','isArray','4BCrLnl','wHkyG','function','691818AexlYI','14768210HSdRaV','40gCZKLd','48Zabcof','nestedKeyValue','UbMIN','969216IyIFQC'];a61_0x570d=function(){return _0x1f5e8f;};return a61_0x570d();}function a61_0x431c(_0x29a598,_0x23cdf0){const _0x570df6=a61_0x570d();return a61_0x431c=function(_0x431c82,_0x13bdd4){_0x431c82=_0x431c82-0x115;let _0xa3b5d3=_0x570df6[_0x431c82];return _0xa3b5d3;},a61_0x431c(_0x29a598,_0x23cdf0);}a61_0x1e0dc5['isHash']=isHash,a61_0x1e0dc5[a61_0x1dec8e(0x11c)]=nestedKeyValue,module[a61_0x1dec8e(0x124)]=a61_0x1e0dc5;
@@ -1 +1 @@
1
- function a62_0xca5e(){const _0x1ef929=['setup','BS_TESTOPS_BUILD_HASHED_ID','VYHHf','filePath','fZUTB','.\x20Unable\x20to\x20set\x20test\x20details.','object','tjhNq','Error\x20writing\x20trace\x20file:\x20%O','13723758bBHEHj','qLMad','forEach','LueZv','retry','logger','5630275JImvqr','setAccessibilityPlatformValidation','ohKOh','.\x20Unable\x20to\x20retrieve\x20log\x20objects.','ETkZo','8akwMOC','proper-lockfile','PQTyo','mSAGb','SRCko','dirPath','toString','dynIZ','apqIQ','utf8','storeLogObjects','Error\x20handling\x20trace\x20file\x20paths:\x20%O','XEsGb','WoGBG','zNrhq','__projectId','KsAEd','773163JWMhAk','214YFoqOp','ZpNye','force','trace_','getFilePath','project','qEsgx','traceZipPaths','FeJPk','.browserstack','hiTbg','[setTestDetails]\x20processId:\x20','Npqbg','342782JHYIDD','existsSync','getTestIdentifierFromTestInfo','getTraceFilePaths','\x20Adding\x20console\x20log\x20for\x20','../../helpers/logger','readLogObjects','setTestDetails','tests','values','../../helpers/classLogger.js','resolve','join','some','Failed\x20to\x20acquire\x20lock\x20for\x20','\x20with\x20details:\x20','YGdMI','mergeDeep','stringify','format','traceZipDir','endsWith','default','lockSync','error','push','uTODf','appendToTracePaths','getTestIdFromTestInfo','duViF','_platformDetails.json','2|1|6|3|5|0|4','path','921039rxqnWT','AIwxe','../../helpers/helper','getTraceZipDir','readdirSync','uuid','string','Mvpil','../../helpers/test-observability/constants','uyzli','Setting\x20up\x20TestInfo\x20directory\x20at\x20','logObjects','debug','Error\x20writing\x20test\x20details\x20to\x20file\x20for\x20','nAGSw','addTraceFilePath','Error\x20while\x20getting\x20test\x20UUID\x20for\x20','getProjectIdFromTestInfo','AuIcx','18VAgdwE','testFramework','8310TlPeuA','parse','writeFileSync','shutdown','getStoreDirName','4723100XDBySL','pid','recursive','info','aMHnn','TestInfo','getTestRunIdFromTestInfo','qlGOD','.\x20Unable\x20to\x20add\x20console\x20log.','getStoreDirPath','readLogObjects:\x20No\x20logObjects\x20object\x20found\x20for\x20testId:\x20','DZqIL','\x20Setting\x20test\x20details\x20for\x20','readFileSync','isArray','DvVhY','split','_traceZipPaths.json','length','readLogObjects:\x20processId:\x20','\x20Retrieving\x20logs\x20for\x20','testId','message','1460HGOTfi','sxQPp','getTestDetails','mkdirSync'];a62_0xca5e=function(){return _0x1ef929;};return a62_0xca5e();}function a62_0x16b3(_0x64a99c,_0x472f6c){const _0xca5eb8=a62_0xca5e();return a62_0x16b3=function(_0x16b34e,_0x3170df){_0x16b34e=_0x16b34e-0xad;let _0x31a732=_0xca5eb8[_0x16b34e];return _0x31a732;},a62_0x16b3(_0x64a99c,_0x472f6c);}const a62_0x285a6e=a62_0x16b3;(function(_0x5ac2f9,_0x17728e){const _0x4b793e=a62_0x16b3,_0xbc8f07=_0x5ac2f9();while(!![]){try{const _0x3ced8b=parseInt(_0x4b793e(0xc5))/0x1+-parseInt(_0x4b793e(0xc6))/0x2*(parseInt(_0x4b793e(0x109))/0x3)+-parseInt(_0x4b793e(0x10e))/0x4+-parseInt(_0x4b793e(0xaf))/0x5+parseInt(_0x4b793e(0x107))/0x6*(-parseInt(_0x4b793e(0xf4))/0x7)+-parseInt(_0x4b793e(0xb4))/0x8*(parseInt(_0x4b793e(0x132))/0x9)+parseInt(_0x4b793e(0x125))/0xa*(parseInt(_0x4b793e(0xd3))/0xb);if(_0x3ced8b===_0x17728e)break;else _0xbc8f07['push'](_0xbc8f07['shift']());}catch(_0x334724){_0xbc8f07['push'](_0xbc8f07['shift']());}}}(a62_0xca5e,0xc3502));const fs=require('fs'),path=require(a62_0x285a6e(0xf3)),{TEMP_STORE_DIR_NAME}=require(a62_0x285a6e(0xfc)),{nestedKeyValue}=require(a62_0x285a6e(0xf6)),logger=require(a62_0x285a6e(0xd8))['winstonLogger'],util=require('util'),helper=require(a62_0x285a6e(0xf6)),{createClassLogger}=require(a62_0x285a6e(0xdd)),lockfile=require(a62_0x285a6e(0xb5)),{v4:uuidv4}=require(a62_0x285a6e(0xf9));class TestInfo{static ['tests']={};static [a62_0x285a6e(0xb9)]=TestInfo[a62_0x285a6e(0x10d)]();static [a62_0x285a6e(0xe7)]=path['join'](TestInfo[a62_0x285a6e(0xb9)],a62_0x285a6e(0xcd));static [a62_0x285a6e(0x108)]=null;[a62_0x285a6e(0xae)]=createClassLogger(a62_0x285a6e(0x113));static[a62_0x285a6e(0x129)](_0x4411e1){const _0x5d6ecf=a62_0x285a6e,_0x200d9a={};_0x200d9a[_0x5d6ecf(0xb8)]=_0x5d6ecf(0xf2),_0x200d9a[_0x5d6ecf(0x11d)]=_0x5d6ecf(0xcd);const _0x56a6ba=_0x200d9a,_0x385d2e=_0x56a6ba[_0x5d6ecf(0xb8)][_0x5d6ecf(0x11e)]('|');let _0x2fb0bb=0x0;while(!![]){switch(_0x385d2e[_0x2fb0bb++]){case'0':const _0xf23d0b={};_0xf23d0b[_0x5d6ecf(0x110)]=!![],fs[_0x5d6ecf(0x128)](this[_0x5d6ecf(0xe7)],_0xf23d0b);continue;case'1':this['traceZipDir']=path['join'](this[_0x5d6ecf(0xb9)],_0x56a6ba[_0x5d6ecf(0x11d)]);continue;case'2':this[_0x5d6ecf(0xb9)]=TestInfo[_0x5d6ecf(0x10d)]();continue;case'3':this[_0x5d6ecf(0x10c)]();continue;case'4':logger[_0x5d6ecf(0x111)](_0x5d6ecf(0xfe)+this[_0x5d6ecf(0xb9)]);continue;case'5':const _0x17108d={};_0x17108d['recursive']=!![],fs[_0x5d6ecf(0x128)](this['dirPath'],_0x17108d);continue;case'6':this['testFramework']=_0x4411e1;continue;}break;}}static['getStoreDirName'](){const _0x48cc7c=a62_0x285a6e,_0x458fe6={};_0x458fe6[_0x48cc7c(0xc0)]=function(_0x21d729,_0xeb26f2){return _0x21d729+_0xeb26f2;},_0x458fe6['qLMad']=_0x48cc7c(0xe9);const _0x5f4068=_0x458fe6;return _0x5f4068[_0x48cc7c(0xc0)](_0x5f4068[_0x48cc7c(0xc0)](TEMP_STORE_DIR_NAME,'-'),process['env'][_0x48cc7c(0x12a)]||_0x5f4068[_0x48cc7c(0x133)]);}static[a62_0x285a6e(0x117)](){const _0x2c3884=a62_0x285a6e,_0x176af6={};_0x176af6[_0x2c3884(0xbb)]=function(_0x4614f8,_0x1e4b93){return _0x4614f8+_0x1e4b93;},_0x176af6['KzjWI']=_0x2c3884(0xe9);const _0x935e6d=_0x176af6;return path['join'](_0x935e6d[_0x2c3884(0xbb)](_0x935e6d[_0x2c3884(0xbb)](TEMP_STORE_DIR_NAME,'-'),process['env'][_0x2c3884(0x12a)]||_0x935e6d['KzjWI']));}static[a62_0x285a6e(0xf7)](){const _0x3e3f4d=a62_0x285a6e,_0x3a49b5={};_0x3a49b5[_0x3e3f4d(0xd0)]=_0x3e3f4d(0xcd);const _0x270972=_0x3a49b5;return path['join'](this[_0x3e3f4d(0x117)](),_0x270972[_0x3e3f4d(0xd0)]);}static[a62_0x285a6e(0xca)](_0x1924d2){const _0x5977ff=a62_0x285a6e,_0x1a64b7={};_0x1a64b7[_0x5977ff(0x130)]=function(_0xb08226,_0x34c676){return _0xb08226+_0x34c676;},_0x1a64b7[_0x5977ff(0xf0)]='.json';const _0x62c94a=_0x1a64b7;return path[_0x5977ff(0xdf)](this[_0x5977ff(0xb9)],_0x62c94a['tjhNq'](_0x1924d2,_0x62c94a[_0x5977ff(0xf0)]));}static[a62_0x285a6e(0x114)](_0xd6ce9c){const _0x5918b3=a62_0x285a6e,_0x25ac32={};_0x25ac32[_0x5918b3(0xce)]=function(_0x4314f9,_0x5819ba){return _0x4314f9+_0x5819ba;},_0x25ac32[_0x5918b3(0x106)]=function(_0xe37926,_0x4ba6cb){return _0xe37926+_0x4ba6cb;};const _0x493e10=_0x25ac32;return _0x493e10[_0x5918b3(0xce)](_0x493e10[_0x5918b3(0x106)](_0x493e10[_0x5918b3(0xce)](_0x493e10[_0x5918b3(0xce)](this[_0x5918b3(0x105)](_0xd6ce9c),'-'),this['getTestIdFromTestInfo'](_0xd6ce9c)),'-'),_0xd6ce9c[_0x5918b3(0xad)]);}static[a62_0x285a6e(0x105)](_0x238a5a){const _0x372af5=a62_0x285a6e,_0x176ef1={'ocBfw':function(_0x37280a,_0x4c7428,_0x37ab1e){return _0x37280a(_0x4c7428,_0x37ab1e);},'KsAEd':'_test','apqIQ':'_projectId','AIwxe':function(_0x2abac9,_0x1855a2,_0x1c7344){return _0x2abac9(_0x1855a2,_0x1c7344);},'qlGOD':_0x372af5(0xcb),'VYHHf':_0x372af5(0xc3)};return _0x176ef1['ocBfw'](nestedKeyValue,_0x238a5a,[_0x176ef1[_0x372af5(0xc4)],_0x176ef1[_0x372af5(0xbc)]])||_0x176ef1[_0x372af5(0xf5)](nestedKeyValue,_0x238a5a,[_0x176ef1[_0x372af5(0x115)],_0x176ef1[_0x372af5(0x12b)]]);}static[a62_0x285a6e(0xef)](_0x4c1e1d){const _0x547030=a62_0x285a6e,_0x416ad8={'nAGSw':function(_0x4c5cb8,_0x7e60f0,_0x53d973){return _0x4c5cb8(_0x7e60f0,_0x53d973);},'ohKOh':'_test'};return _0x416ad8[_0x547030(0x102)](nestedKeyValue,_0x4c1e1d,[_0x416ad8[_0x547030(0xb1)],'id'])||_0x4c1e1d[_0x547030(0x123)];}static[a62_0x285a6e(0xd5)](_0x13a2b2,_0x3cd4f5){const _0x39afef=a62_0x285a6e,_0x5e50d2={};_0x5e50d2[_0x39afef(0xfd)]=function(_0x494078,_0x460fca){return _0x494078+_0x460fca;},_0x5e50d2[_0x39afef(0x12d)]=function(_0x841c75,_0x5180b8){return _0x841c75+_0x5180b8;};const _0x1158d2=_0x5e50d2;return _0x1158d2[_0x39afef(0xfd)](_0x1158d2[_0x39afef(0x12d)](this[_0x39afef(0xef)](_0x13a2b2),'-'),_0x3cd4f5);}static['getTestUUID'](_0x245762){const _0x1e4fa8=a62_0x285a6e,_0x52a4a2={'HxWmb':function(_0x10a39d,_0x4fa744){return _0x10a39d===_0x4fa744;},'CaooB':_0x1e4fa8(0xfa),'zNrhq':function(_0x2e04b0){return _0x2e04b0();}};try{if(this[_0x1e4fa8(0xdb)][_0x245762]&&_0x52a4a2['HxWmb'](typeof this['tests'][_0x245762][_0x1e4fa8(0xf9)],_0x52a4a2['CaooB']))return this[_0x1e4fa8(0xdb)][_0x245762]['uuid'];const _0xa2a8ff=this['getFilePath'](_0x245762),_0x585fec=path[_0x1e4fa8(0xde)](_0xa2a8ff);if(fs[_0x1e4fa8(0xd4)](_0x585fec)){const _0x1b3a88=JSON[_0x1e4fa8(0x10a)](fs['readFileSync'](_0xa2a8ff)[_0x1e4fa8(0xba)]());return this['tests'][_0x245762]=_0x1b3a88,this[_0x1e4fa8(0xdb)][_0x245762]['uuid'];}this[_0x1e4fa8(0xdb)][_0x245762]={'uuid':_0x52a4a2[_0x1e4fa8(0xc2)](uuidv4)};try{fs[_0x1e4fa8(0x10b)](_0xa2a8ff,JSON['stringify'](this[_0x1e4fa8(0xdb)][_0x245762]));}catch(_0x41864f){logger['error'](_0x1e4fa8(0x101)+_0x245762+':\x20'+_0x41864f[_0x1e4fa8(0x124)]);}return this[_0x1e4fa8(0xdb)][_0x245762][_0x1e4fa8(0xf9)];}catch(_0x10867d){return logger['error'](_0x1e4fa8(0x104)+_0x245762+':\x20'+_0x10867d[_0x1e4fa8(0x124)]),null;}}static['getAccessibilityPlatformValidation'](_0x51e6aa){const _0x5773d0=a62_0x285a6e,_0x8c09b5=path['join'](this[_0x5773d0(0xb9)],_0x51e6aa+_0x5773d0(0xf1));if(fs[_0x5773d0(0xd4)](_0x8c09b5))return fs[_0x5773d0(0x11b)](_0x8c09b5)[_0x5773d0(0xba)]();}static[a62_0x285a6e(0xb0)](_0x93060e,_0x1b67af){const _0x28be8d=a62_0x285a6e,_0x48ad33=path['join'](this[_0x28be8d(0xb9)],_0x1b67af+_0x28be8d(0xf1));fs[_0x28be8d(0x10b)](_0x48ad33,_0x93060e[_0x28be8d(0xba)]());}static['shutdown'](){const _0x3354e5=a62_0x285a6e,_0x31fd42={};_0x31fd42[_0x3354e5(0x110)]=!![],_0x31fd42[_0x3354e5(0xc8)]=!![],fs['rmSync'](this['dirPath'],_0x31fd42);}static[a62_0x285a6e(0x127)](_0x4a1992){const _0x69ad3d=a62_0x285a6e,_0x3c7c72=this[_0x69ad3d(0xca)](_0x4a1992);if(fs[_0x69ad3d(0xd4)](_0x3c7c72))try{const _0x3bff30=JSON[_0x69ad3d(0x10a)](fs[_0x69ad3d(0x11b)](_0x3c7c72)[_0x69ad3d(0xba)]());return this[_0x69ad3d(0xdb)][_0x4a1992]=_0x3bff30,_0x3bff30;}catch(_0x1b4c58){return logger[_0x69ad3d(0x100)](_0x69ad3d(0xe1)+_0x3c7c72+':\x20'+util['format'](_0x1b4c58)+'.\x20Returning\x20empty\x20test\x20details.'),{};}return{};}static[a62_0x285a6e(0xda)](_0x3a69d5,_0x5c1222,_0x520723=![]){const _0xcff233=a62_0x285a6e,_0x3ee28c={'Mvpil':function(_0x511b4){return _0x511b4();}};logger[_0xcff233(0x100)](_0xcff233(0xd1)+process[_0xcff233(0x10f)]+_0xcff233(0x11a)+_0x3a69d5+_0xcff233(0xe2)+JSON[_0xcff233(0xe5)](_0x5c1222));const _0xe0ac93=this[_0xcff233(0xca)](_0x3a69d5);if(fs[_0xcff233(0xd4)](_0xe0ac93))try{const _0x37f4cf=lockfile['lockSync'](_0xe0ac93),_0x31f606=JSON['parse'](fs[_0xcff233(0x11b)](_0xe0ac93)['toString']());if(_0x520723)this[_0xcff233(0xdb)][_0x3a69d5]=helper[_0xcff233(0xe4)](_0x31f606,_0x5c1222);else{const _0x439f54={..._0x31f606,..._0x5c1222};this['tests'][_0x3a69d5]=_0x439f54;}fs[_0xcff233(0x10b)](_0xe0ac93,JSON[_0xcff233(0xe5)](this[_0xcff233(0xdb)][_0x3a69d5])),_0x3ee28c[_0xcff233(0xfb)](_0x37f4cf);}catch(_0x1f86a3){logger['debug'](_0xcff233(0xe1)+_0xe0ac93+':\x20'+util['format'](_0x1f86a3)+_0xcff233(0x12e));}}static[a62_0x285a6e(0xbe)](_0x56348c,_0x4b66aa){const _0x5e2108=a62_0x285a6e,_0x15a8fd={'mSAGb':function(_0x45b35e,_0x15c546){return _0x45b35e!==_0x15c546;},'uTODf':'object','PQTyo':function(_0x3aeb78){return _0x3aeb78();}};logger[_0x5e2108(0x100)]('storeLogObjects:\x20processId:\x20'+process[_0x5e2108(0x10f)]+_0x5e2108(0xd7)+_0x56348c+'}');const _0xda7581=this[_0x5e2108(0xca)](_0x56348c);try{let _0x2d068f={};if(fs[_0x5e2108(0xd4)](_0xda7581)){const _0x3554df=lockfile['lockSync'](_0xda7581);_0x2d068f=JSON[_0x5e2108(0x10a)](fs['readFileSync'](_0xda7581)[_0x5e2108(0xba)]()),(!_0x2d068f[_0x5e2108(0xff)]||_0x15a8fd[_0x5e2108(0xb7)](typeof _0x2d068f[_0x5e2108(0xff)],_0x15a8fd[_0x5e2108(0xed)]))&&(_0x2d068f[_0x5e2108(0xff)]={}),(!_0x2d068f[_0x5e2108(0xff)][_0x56348c]||!Array['isArray'](_0x2d068f[_0x5e2108(0xff)][_0x56348c]))&&(_0x2d068f['logObjects'][_0x56348c]=[]),_0x2d068f[_0x5e2108(0xff)][_0x56348c][_0x5e2108(0xec)](_0x4b66aa),this[_0x5e2108(0xdb)][_0x56348c]=_0x2d068f,fs[_0x5e2108(0x10b)](_0xda7581,JSON['stringify'](this[_0x5e2108(0xdb)][_0x56348c])),_0x15a8fd[_0x5e2108(0xb6)](_0x3554df);}else{const _0xa91fe={};_0xa91fe[_0x5e2108(0xf9)]=_0x56348c,_0xa91fe[_0x5e2108(0xff)]={},_0xa91fe[_0x5e2108(0xff)][_0x56348c]=[_0x4b66aa],_0x2d068f=_0xa91fe,this['tests'][_0x56348c]=_0x2d068f,fs[_0x5e2108(0x10b)](_0xda7581,JSON[_0x5e2108(0xe5)](this[_0x5e2108(0xdb)][_0x56348c]));}}catch(_0x3332df){logger['debug']('Failed\x20to\x20acquire\x20lock\x20for\x20'+_0xda7581+':\x20'+util[_0x5e2108(0xe6)](_0x3332df)+_0x5e2108(0x116));}}static[a62_0x285a6e(0xd9)](_0x4ac1b2){const _0x350355=a62_0x285a6e,_0x200a1c={'qEsgx':function(_0x4ad393,_0x15fd14){return _0x4ad393!==_0x15fd14;},'TeGbO':_0x350355(0x12f),'gokiS':function(_0x472148){return _0x472148();},'YGdMI':function(_0x11a6c7,_0x17de81){return _0x11a6c7===_0x17de81;},'sxQPp':function(_0x15012d){return _0x15012d();},'ETkZo':function(_0x361bfb){return _0x361bfb();}};logger[_0x350355(0x100)](_0x350355(0x121)+process[_0x350355(0x10f)]+_0x350355(0x122)+_0x4ac1b2);const _0x481e95=this[_0x350355(0xca)](_0x4ac1b2);try{if(!fs[_0x350355(0xd4)](_0x481e95))return logger[_0x350355(0x100)]('readLogObjects:\x20No\x20file\x20found\x20for\x20testId:\x20'+_0x4ac1b2),[];const _0x2c1e9e=lockfile[_0x350355(0xea)](_0x481e95),_0x4c2b4d=JSON[_0x350355(0x10a)](fs[_0x350355(0x11b)](_0x481e95)[_0x350355(0xba)]());if(!_0x4c2b4d[_0x350355(0xff)]||_0x200a1c[_0x350355(0xcc)](typeof _0x4c2b4d[_0x350355(0xff)],_0x200a1c['TeGbO']))return logger['debug'](_0x350355(0x118)+_0x4ac1b2),_0x200a1c['gokiS'](_0x2c1e9e),[];if(!_0x4c2b4d[_0x350355(0xff)][_0x4ac1b2]||!Array[_0x350355(0x11c)](_0x4c2b4d[_0x350355(0xff)][_0x4ac1b2])||_0x200a1c[_0x350355(0xe3)](_0x4c2b4d[_0x350355(0xff)][_0x4ac1b2][_0x350355(0x120)],0x0))return logger[_0x350355(0x100)]('readLogObjects:\x20No\x20log\x20objects\x20found\x20for\x20testId:\x20'+_0x4ac1b2),_0x200a1c[_0x350355(0x126)](_0x2c1e9e),[];const _0x4e2ceb=[..._0x4c2b4d[_0x350355(0xff)][_0x4ac1b2]];return logger['debug']('readLogObjects:\x20Retrieved\x20'+_0x4e2ceb['length']+'\x20log\x20objects\x20for\x20testId:\x20'+_0x4ac1b2),_0x4c2b4d[_0x350355(0xff)][_0x4ac1b2]=[],this[_0x350355(0xdb)][_0x4ac1b2]=_0x4c2b4d,fs['writeFileSync'](_0x481e95,JSON[_0x350355(0xe5)](this[_0x350355(0xdb)][_0x4ac1b2])),_0x200a1c[_0x350355(0xb3)](_0x2c1e9e),_0x4e2ceb;}catch(_0x1bc1ee){return logger[_0x350355(0x100)]('Failed\x20to\x20acquire\x20lock\x20for\x20'+_0x481e95+':\x20'+util[_0x350355(0xe6)](_0x1bc1ee)+_0x350355(0xb2)),[];}}static[a62_0x285a6e(0x103)](_0x1528c4){const _0x237066=a62_0x285a6e,_0x3b2ec8={};_0x3b2ec8[_0x237066(0x119)]=_0x237066(0xbf);const _0x223a95=_0x3b2ec8;try{const _0x5626a0=process[_0x237066(0x10f)],_0x549687=path[_0x237066(0xdf)](TestInfo[_0x237066(0xf7)](),_0x5626a0+_0x237066(0x11f));let _0x100190=[];fs[_0x237066(0xd4)](_0x549687)&&(_0x100190=JSON['parse'](fs['readFileSync'](_0x549687)['toString']()));if(!_0x100190[_0x237066(0xe0)](_0x51e89a=>_0x51e89a['filePath']===_0x1528c4[_0x237066(0x12c)])){_0x100190[_0x237066(0xec)](_0x1528c4);const _0x253cdd=path['dirname'](_0x549687);if(!fs[_0x237066(0xd4)](_0x253cdd)){const _0x1c46f7={};_0x1c46f7[_0x237066(0x110)]=!![],fs[_0x237066(0x128)](_0x253cdd,_0x1c46f7);}fs['writeFileSync'](_0x549687,JSON['stringify'](_0x100190));}}catch(_0x52b454){logger[_0x237066(0xeb)](util[_0x237066(0xe6)](_0x223a95[_0x237066(0x119)],_0x52b454));}}static[a62_0x285a6e(0xd6)](){const _0x398246=a62_0x285a6e,_0x3dd38d={};_0x3dd38d[_0x398246(0xc7)]=_0x398246(0x11f),_0x3dd38d[_0x398246(0xc1)]='Error\x20reading\x20trace\x20file\x20paths:\x20%O';const _0x2403ba=_0x3dd38d,_0x56c35a=[];try{const _0x3b8ee5=TestInfo['getTraceZipDir']();if(!fs[_0x398246(0xd4)](_0x3b8ee5))return _0x56c35a;const _0x58d4b9=fs[_0x398246(0xf8)](_0x3b8ee5);_0x58d4b9[_0x398246(0x134)](_0x1cf8a1=>{const _0xace2a9=_0x398246;if(_0x1cf8a1[_0xace2a9(0xe8)](_0x2403ba[_0xace2a9(0xc7)])){const _0xd0f80d=JSON[_0xace2a9(0x10a)](fs[_0xace2a9(0x11b)](path[_0xace2a9(0xdf)](_0x3b8ee5,_0x1cf8a1))[_0xace2a9(0xba)]());_0x56c35a[_0xace2a9(0xec)](..._0xd0f80d);}});}catch(_0x4a9d6c){logger[_0x398246(0xeb)](util[_0x398246(0xe6)](_0x2403ba[_0x398246(0xc1)],_0x4a9d6c));}const _0x37ade5={};return _0x56c35a['forEach'](_0x494651=>{_0x37ade5[_0x494651['filePath']]=_0x494651;}),Object[_0x398246(0xdc)](_0x37ade5);}static[a62_0x285a6e(0xee)](_0x37851c,_0x2fd897){const _0x313658=a62_0x285a6e,_0x54208f={};_0x54208f[_0x313658(0x135)]=_0x313658(0xcf),_0x54208f[_0x313658(0xd2)]=_0x313658(0xbd),_0x54208f[_0x313658(0x112)]=_0x313658(0x131);const _0x7b6e9f=_0x54208f;try{const _0xa8be6a=path[_0x313658(0xdf)](helper['homedir'](),_0x7b6e9f['LueZv']);if(!fs[_0x313658(0xd4)](_0xa8be6a)){const _0x56b784={};_0x56b784['recursive']=!![],fs['mkdirSync'](_0xa8be6a,_0x56b784);}fs['appendFileSync'](path['join'](_0xa8be6a,_0x313658(0xc9)+_0x2fd897+'.txt'),_0x37851c+'\x0a',_0x7b6e9f[_0x313658(0xd2)]);}catch(_0x524b7d){logger[_0x313658(0xeb)](util['format'](_0x7b6e9f[_0x313658(0x112)],_0x524b7d));}}}module['exports']=TestInfo;
1
+ const a62_0x2fe94f=a62_0x3d22;function a62_0x5754(){const _0x2645bc=['traceZipDir','.\x20Unable\x20to\x20set\x20test\x20details.','isArray','XNpnj','logObjects','rmSync','JxTfi','6615126sgQxum','slKzI','225333AccoMx','Error\x20writing\x20test\x20details\x20to\x20file\x20for\x20','\x20Retrieving\x20logs\x20for\x20','exports','nyhtU','filePath','error','\x20log\x20objects\x20for\x20testId:\x20','Failed\x20to\x20acquire\x20lock\x20for\x20','.json','join','pid','getAccessibilityPlatformValidation','setup','push','path','.txt','636rJFYAW','_projectId','getStoreDirPath','resolve','88gjmNjJ','readLogObjects:\x20Retrieved\x20','testFramework','utf8','tests','pptEN','readdirSync','getTestRunIdFromTestInfo','FyQzk','setTestDetails','__projectId','XDeud','some','getFilePath','setAccessibilityPlatformValidation','object','[setTestDetails]\x20processId:\x20','getTraceZipDir','rfwgQ','LUkuO','OLUGb','getStoreDirName','iafJg','\x20with\x20details:\x20','stringify','forEach','2005620dsEsiW','readLogObjects','appendFileSync','parse','qBFCD','retry','recursive','logger','shutdown','env','jxhxq','default','dirPath','uuid','dsoHw','kbCnR','nRCxo','_test','length','force','ritNb','hzCMN','message','RzGKp','4ZkTTAu','_platformDetails.json','mkdirSync','../../helpers/logger','2103276uXeuBg','../../helpers/test-observability/constants','cQHcN','homedir','EJEYB','lockSync','testId','winstonLogger','string','fGmnh','getTraceFilePaths','Error\x20reading\x20trace\x20file\x20paths:\x20%O','readLogObjects:\x20No\x20file\x20found\x20for\x20testId:\x20','23750920mkctdQ','existsSync','appendToTracePaths','writeFileSync','BS_TESTOPS_BUILD_HASHED_ID','XmmrV','.browserstack','2|5|0|3|4|6|1','352836YAgSrp','kicAK','readFileSync','pNAif','BuiTj','toString','ulwJh','getTestUUID','debug','.\x20Returning\x20empty\x20test\x20details.','TestInfo','traceZipPaths','../../helpers/classLogger.js','HgwDl','readLogObjects:\x20No\x20logObjects\x20object\x20found\x20for\x20testId:\x20','getTestIdentifierFromTestInfo','getTestDetails','57935lHFlIz','leMQX','fzqsG','DyeOW','../../helpers/helper','Error\x20while\x20getting\x20test\x20UUID\x20for\x20','getTestIdFromTestInfo','ZANYk','info','split','aOCmp','format'];a62_0x5754=function(){return _0x2645bc;};return a62_0x5754();}(function(_0x161807,_0x1c0c9e){const _0x1d8c6a=a62_0x3d22,_0x5168c9=_0x161807();while(!![]){try{const _0x51876=-parseInt(_0x1d8c6a(0x1d5))/0x1+parseInt(_0x1d8c6a(0x1bc))/0x2*(parseInt(_0x1d8c6a(0x1a4))/0x3)+-parseInt(_0x1d8c6a(0x186))/0x4*(-parseInt(_0x1d8c6a(0x160))/0x5)+parseInt(_0x1d8c6a(0x173))/0x6+-parseInt(_0x1d8c6a(0x1c0))/0x7+parseInt(_0x1d8c6a(0x18a))/0x8*(-parseInt(_0x1d8c6a(0x175))/0x9)+-parseInt(_0x1d8c6a(0x1cd))/0xa;if(_0x51876===_0x1c0c9e)break;else _0x5168c9['push'](_0x5168c9['shift']());}catch(_0x47d7bc){_0x5168c9['push'](_0x5168c9['shift']());}}}(a62_0x5754,0xeecd3));const fs=require('fs'),path=require(a62_0x2fe94f(0x184)),{TEMP_STORE_DIR_NAME}=require(a62_0x2fe94f(0x1c1)),{nestedKeyValue}=require(a62_0x2fe94f(0x164)),logger=require(a62_0x2fe94f(0x1bf))[a62_0x2fe94f(0x1c7)],util=require('util'),helper=require(a62_0x2fe94f(0x164)),{createClassLogger}=require(a62_0x2fe94f(0x15b)),lockfile=require('proper-lockfile'),{v4:uuidv4}=require(a62_0x2fe94f(0x1b1));function a62_0x3d22(_0x234479,_0x20ece3){const _0x57546b=a62_0x5754();return a62_0x3d22=function(_0x3d2209,_0x7de04b){_0x3d2209=_0x3d2209-0x155;let _0x6c0b04=_0x57546b[_0x3d2209];return _0x6c0b04;},a62_0x3d22(_0x234479,_0x20ece3);}class TestInfo{static [a62_0x2fe94f(0x18e)]={};static [a62_0x2fe94f(0x1b0)]=TestInfo[a62_0x2fe94f(0x19f)]();static [a62_0x2fe94f(0x16c)]=path[a62_0x2fe94f(0x17f)](TestInfo[a62_0x2fe94f(0x1b0)],a62_0x2fe94f(0x15a));static [a62_0x2fe94f(0x18c)]=null;[a62_0x2fe94f(0x1ab)]=createClassLogger(a62_0x2fe94f(0x159));static[a62_0x2fe94f(0x182)](_0x37dbf9){const _0x8d4c11=a62_0x2fe94f,_0x20d3f5={};_0x20d3f5[_0x8d4c11(0x1b9)]=_0x8d4c11(0x1d4),_0x20d3f5[_0x8d4c11(0x167)]=_0x8d4c11(0x15a);const _0x25f264=_0x20d3f5,_0x3cdf5f=_0x25f264['hzCMN'][_0x8d4c11(0x169)]('|');let _0x407f24=0x0;while(!![]){switch(_0x3cdf5f[_0x407f24++]){case'0':this[_0x8d4c11(0x18c)]=_0x37dbf9;continue;case'1':logger[_0x8d4c11(0x168)]('Setting\x20up\x20TestInfo\x20directory\x20at\x20'+this['dirPath']);continue;case'2':this[_0x8d4c11(0x1b0)]=TestInfo[_0x8d4c11(0x19f)]();continue;case'3':this['shutdown']();continue;case'4':const _0x34c76a={};_0x34c76a[_0x8d4c11(0x1aa)]=!![],fs[_0x8d4c11(0x1be)](this[_0x8d4c11(0x1b0)],_0x34c76a);continue;case'5':this['traceZipDir']=path[_0x8d4c11(0x17f)](this[_0x8d4c11(0x1b0)],_0x25f264['ZANYk']);continue;case'6':const _0x34b2d8={};_0x34b2d8[_0x8d4c11(0x1aa)]=!![],fs[_0x8d4c11(0x1be)](this[_0x8d4c11(0x16c)],_0x34b2d8);continue;}break;}}static[a62_0x2fe94f(0x19f)](){const _0x3993ef=a62_0x2fe94f,_0x1e61df={};_0x1e61df['qBFCD']=function(_0x5ad676,_0xb28777){return _0x5ad676+_0xb28777;},_0x1e61df[_0x3993ef(0x1b3)]=function(_0x90f1fa,_0x5a3a5d){return _0x90f1fa+_0x5a3a5d;},_0x1e61df[_0x3993ef(0x19d)]=_0x3993ef(0x1af);const _0x12644e=_0x1e61df;return _0x12644e[_0x3993ef(0x1a8)](_0x12644e['kbCnR'](TEMP_STORE_DIR_NAME,'-'),process['env'][_0x3993ef(0x1d1)]||_0x12644e[_0x3993ef(0x19d)]);}static[a62_0x2fe94f(0x188)](){const _0x25a030=a62_0x2fe94f,_0x408eb4={};_0x408eb4[_0x25a030(0x1b2)]=function(_0x31c3f2,_0x38d1cf){return _0x31c3f2+_0x38d1cf;},_0x408eb4[_0x25a030(0x1ae)]='default';const _0x3bd85f=_0x408eb4;return path[_0x25a030(0x17f)](_0x3bd85f['dsoHw'](_0x3bd85f[_0x25a030(0x1b2)](TEMP_STORE_DIR_NAME,'-'),process[_0x25a030(0x1ad)]['BS_TESTOPS_BUILD_HASHED_ID']||_0x3bd85f['jxhxq']));}static['getTraceZipDir'](){const _0x1a65a8=a62_0x2fe94f,_0x4195fe={};_0x4195fe[_0x1a65a8(0x192)]=_0x1a65a8(0x15a);const _0x5486b4=_0x4195fe;return path[_0x1a65a8(0x17f)](this['getStoreDirPath'](),_0x5486b4['FyQzk']);}static['getFilePath'](_0x44ceea){const _0x342fe7=a62_0x2fe94f,_0x425d12={};_0x425d12[_0x342fe7(0x1c2)]=function(_0x57a09e,_0x3f477b){return _0x57a09e+_0x3f477b;},_0x425d12[_0x342fe7(0x19c)]=_0x342fe7(0x17e);const _0x10de9b=_0x425d12;return path[_0x342fe7(0x17f)](this['dirPath'],_0x10de9b[_0x342fe7(0x1c2)](_0x44ceea,_0x10de9b['rfwgQ']));}static[a62_0x2fe94f(0x191)](_0x319063){const _0xdf8ff1=a62_0x2fe94f,_0x113527={};_0x113527[_0xdf8ff1(0x172)]=function(_0x1bef74,_0x1fc1a7){return _0x1bef74+_0x1fc1a7;};const _0x118283=_0x113527;return _0x118283['JxTfi'](_0x118283[_0xdf8ff1(0x172)](_0x118283[_0xdf8ff1(0x172)](_0x118283['JxTfi'](this['getProjectIdFromTestInfo'](_0x319063),'-'),this[_0xdf8ff1(0x166)](_0x319063)),'-'),_0x319063[_0xdf8ff1(0x1a9)]);}static['getProjectIdFromTestInfo'](_0x4e672d){const _0x5842ce=a62_0x2fe94f,_0xe14ddf={'XmmrV':function(_0x2c03ee,_0x99d2c6,_0x35fba5){return _0x2c03ee(_0x99d2c6,_0x35fba5);},'DyeOW':_0x5842ce(0x1b5),'ritNb':_0x5842ce(0x187),'BuiTj':'project','OLUGb':_0x5842ce(0x194)};return _0xe14ddf['XmmrV'](nestedKeyValue,_0x4e672d,[_0xe14ddf[_0x5842ce(0x163)],_0xe14ddf[_0x5842ce(0x1b8)]])||_0xe14ddf[_0x5842ce(0x1d2)](nestedKeyValue,_0x4e672d,[_0xe14ddf[_0x5842ce(0x1d9)],_0xe14ddf[_0x5842ce(0x19e)]]);}static['getTestIdFromTestInfo'](_0x1f24d6){const _0x1ce566=a62_0x2fe94f,_0x57f405={'nyhtU':function(_0x22a18e,_0xe6a855,_0x34c3ac){return _0x22a18e(_0xe6a855,_0x34c3ac);},'iafJg':_0x1ce566(0x1b5)};return _0x57f405[_0x1ce566(0x179)](nestedKeyValue,_0x1f24d6,[_0x57f405[_0x1ce566(0x1a0)],'id'])||_0x1f24d6[_0x1ce566(0x1c6)];}static[a62_0x2fe94f(0x15e)](_0x52169f,_0xf5d6dd){const _0x3f1585=a62_0x2fe94f,_0x3237df={};_0x3237df[_0x3f1585(0x1c9)]=function(_0x2cc1c6,_0x43737e){return _0x2cc1c6+_0x43737e;},_0x3237df[_0x3f1585(0x1d6)]=function(_0x933d77,_0x43d68b){return _0x933d77+_0x43d68b;};const _0x3e8f05=_0x3237df;return _0x3e8f05[_0x3f1585(0x1c9)](_0x3e8f05['kicAK'](this[_0x3f1585(0x166)](_0x52169f),'-'),_0xf5d6dd);}static[a62_0x2fe94f(0x156)](_0x2dd114){const _0x5550a3=a62_0x2fe94f,_0x50733a={'pptEN':function(_0x3e092e,_0x287746){return _0x3e092e===_0x287746;},'RzGKp':_0x5550a3(0x1c8),'XDeud':function(_0x52d45a){return _0x52d45a();}};try{if(this['tests'][_0x2dd114]&&_0x50733a[_0x5550a3(0x18f)](typeof this['tests'][_0x2dd114][_0x5550a3(0x1b1)],_0x50733a[_0x5550a3(0x1bb)]))return this[_0x5550a3(0x18e)][_0x2dd114]['uuid'];const _0x22580a=this['getFilePath'](_0x2dd114),_0x2719a2=path[_0x5550a3(0x189)](_0x22580a);if(fs['existsSync'](_0x2719a2)){const _0x3e986d=JSON[_0x5550a3(0x1a7)](fs[_0x5550a3(0x1d7)](_0x22580a)[_0x5550a3(0x1da)]());return this['tests'][_0x2dd114]=_0x3e986d,this[_0x5550a3(0x18e)][_0x2dd114][_0x5550a3(0x1b1)];}this[_0x5550a3(0x18e)][_0x2dd114]={'uuid':_0x50733a[_0x5550a3(0x195)](uuidv4)};try{fs[_0x5550a3(0x1d0)](_0x22580a,JSON[_0x5550a3(0x1a2)](this[_0x5550a3(0x18e)][_0x2dd114]));}catch(_0x510125){logger['error'](_0x5550a3(0x176)+_0x2dd114+':\x20'+_0x510125[_0x5550a3(0x1ba)]);}return this[_0x5550a3(0x18e)][_0x2dd114][_0x5550a3(0x1b1)];}catch(_0x17004a){return logger['error'](_0x5550a3(0x165)+_0x2dd114+':\x20'+_0x17004a['message']),null;}}static[a62_0x2fe94f(0x181)](_0x16053c){const _0x3754b9=a62_0x2fe94f,_0x2a0146=path[_0x3754b9(0x17f)](this[_0x3754b9(0x1b0)],_0x16053c+_0x3754b9(0x1bd));if(fs['existsSync'](_0x2a0146))return fs[_0x3754b9(0x1d7)](_0x2a0146)[_0x3754b9(0x1da)]();}static[a62_0x2fe94f(0x198)](_0x5475ab,_0x2a38a8){const _0x364511=a62_0x2fe94f,_0x54a587=path[_0x364511(0x17f)](this[_0x364511(0x1b0)],_0x2a38a8+'_platformDetails.json');fs[_0x364511(0x1d0)](_0x54a587,_0x5475ab[_0x364511(0x1da)]());}static[a62_0x2fe94f(0x1ac)](){const _0x40afa0=a62_0x2fe94f,_0x312d9f={};_0x312d9f[_0x40afa0(0x1aa)]=!![],_0x312d9f[_0x40afa0(0x1b7)]=!![],fs[_0x40afa0(0x171)](this[_0x40afa0(0x1b0)],_0x312d9f);}static[a62_0x2fe94f(0x15f)](_0x1aba74){const _0x258448=a62_0x2fe94f,_0x16c393=this['getFilePath'](_0x1aba74);if(fs[_0x258448(0x1ce)](_0x16c393))try{const _0x55399c=JSON[_0x258448(0x1a7)](fs['readFileSync'](_0x16c393)[_0x258448(0x1da)]());return this[_0x258448(0x18e)][_0x1aba74]=_0x55399c,_0x55399c;}catch(_0x444e88){return logger[_0x258448(0x157)](_0x258448(0x17d)+_0x16c393+':\x20'+util[_0x258448(0x16b)](_0x444e88)+_0x258448(0x158)),{};}return{};}static[a62_0x2fe94f(0x193)](_0x123227,_0x1e73b2,_0x35125f=![]){const _0x13d94b=a62_0x2fe94f,_0x564ea3={'fzqsG':function(_0x230476){return _0x230476();}};logger[_0x13d94b(0x157)](_0x13d94b(0x19a)+process['pid']+'\x20Setting\x20test\x20details\x20for\x20'+_0x123227+_0x13d94b(0x1a1)+JSON['stringify'](_0x1e73b2));const _0x394f82=this[_0x13d94b(0x197)](_0x123227);if(fs['existsSync'](_0x394f82))try{const _0x35f951=lockfile['lockSync'](_0x394f82),_0x41683e=JSON['parse'](fs[_0x13d94b(0x1d7)](_0x394f82)[_0x13d94b(0x1da)]());if(_0x35125f)this[_0x13d94b(0x18e)][_0x123227]=helper['mergeDeep'](_0x41683e,_0x1e73b2);else{const _0x3b1933={..._0x41683e,..._0x1e73b2};this[_0x13d94b(0x18e)][_0x123227]=_0x3b1933;}fs['writeFileSync'](_0x394f82,JSON[_0x13d94b(0x1a2)](this[_0x13d94b(0x18e)][_0x123227])),_0x564ea3[_0x13d94b(0x162)](_0x35f951);}catch(_0x154e1e){logger['debug']('Failed\x20to\x20acquire\x20lock\x20for\x20'+_0x394f82+':\x20'+util[_0x13d94b(0x16b)](_0x154e1e)+_0x13d94b(0x16d));}}static['storeLogObjects'](_0x334d0d,_0x2eec39){const _0x3e2e3e=a62_0x2fe94f,_0x17bd7e={'JGaJb':function(_0x329e88,_0x410182){return _0x329e88!==_0x410182;},'NggXQ':_0x3e2e3e(0x199),'leMQX':function(_0x18eb32){return _0x18eb32();}};logger[_0x3e2e3e(0x157)]('storeLogObjects:\x20processId:\x20'+process['pid']+'\x20Adding\x20console\x20log\x20for\x20'+_0x334d0d+'}');const _0x114050=this[_0x3e2e3e(0x197)](_0x334d0d);try{let _0x4dc217={};if(fs[_0x3e2e3e(0x1ce)](_0x114050)){const _0xed420b=lockfile[_0x3e2e3e(0x1c5)](_0x114050);_0x4dc217=JSON[_0x3e2e3e(0x1a7)](fs[_0x3e2e3e(0x1d7)](_0x114050)[_0x3e2e3e(0x1da)]()),(!_0x4dc217[_0x3e2e3e(0x170)]||_0x17bd7e['JGaJb'](typeof _0x4dc217[_0x3e2e3e(0x170)],_0x17bd7e['NggXQ']))&&(_0x4dc217[_0x3e2e3e(0x170)]={}),(!_0x4dc217[_0x3e2e3e(0x170)][_0x334d0d]||!Array[_0x3e2e3e(0x16e)](_0x4dc217[_0x3e2e3e(0x170)][_0x334d0d]))&&(_0x4dc217[_0x3e2e3e(0x170)][_0x334d0d]=[]),_0x4dc217[_0x3e2e3e(0x170)][_0x334d0d][_0x3e2e3e(0x183)](_0x2eec39),this[_0x3e2e3e(0x18e)][_0x334d0d]=_0x4dc217,fs[_0x3e2e3e(0x1d0)](_0x114050,JSON['stringify'](this['tests'][_0x334d0d])),_0x17bd7e[_0x3e2e3e(0x161)](_0xed420b);}else{const _0x47fd8f={};_0x47fd8f['uuid']=_0x334d0d,_0x47fd8f[_0x3e2e3e(0x170)]={},_0x47fd8f[_0x3e2e3e(0x170)][_0x334d0d]=[_0x2eec39],_0x4dc217=_0x47fd8f,this[_0x3e2e3e(0x18e)][_0x334d0d]=_0x4dc217,fs['writeFileSync'](_0x114050,JSON['stringify'](this[_0x3e2e3e(0x18e)][_0x334d0d]));}}catch(_0x8209ce){logger['debug']('Failed\x20to\x20acquire\x20lock\x20for\x20'+_0x114050+':\x20'+util['format'](_0x8209ce)+'.\x20Unable\x20to\x20add\x20console\x20log.');}}static[a62_0x2fe94f(0x1a5)](_0x4b6a08){const _0x33f11a=a62_0x2fe94f,_0x5ec694={'EJEYB':function(_0x1736f7,_0x15abca){return _0x1736f7!==_0x15abca;},'XNpnj':_0x33f11a(0x199),'slKzI':function(_0x274795){return _0x274795();},'ooDTl':function(_0x221889,_0xed707e){return _0x221889===_0xed707e;}};logger[_0x33f11a(0x157)]('readLogObjects:\x20processId:\x20'+process[_0x33f11a(0x180)]+_0x33f11a(0x177)+_0x4b6a08);const _0x330ef8=this[_0x33f11a(0x197)](_0x4b6a08);try{if(!fs[_0x33f11a(0x1ce)](_0x330ef8))return logger[_0x33f11a(0x157)](_0x33f11a(0x1cc)+_0x4b6a08),[];const _0x5d9188=lockfile[_0x33f11a(0x1c5)](_0x330ef8),_0x46b1ad=JSON['parse'](fs[_0x33f11a(0x1d7)](_0x330ef8)[_0x33f11a(0x1da)]());if(!_0x46b1ad['logObjects']||_0x5ec694[_0x33f11a(0x1c4)](typeof _0x46b1ad[_0x33f11a(0x170)],_0x5ec694[_0x33f11a(0x16f)]))return logger['debug'](_0x33f11a(0x15d)+_0x4b6a08),_0x5ec694[_0x33f11a(0x174)](_0x5d9188),[];if(!_0x46b1ad[_0x33f11a(0x170)][_0x4b6a08]||!Array[_0x33f11a(0x16e)](_0x46b1ad[_0x33f11a(0x170)][_0x4b6a08])||_0x5ec694['ooDTl'](_0x46b1ad[_0x33f11a(0x170)][_0x4b6a08]['length'],0x0))return logger[_0x33f11a(0x157)]('readLogObjects:\x20No\x20log\x20objects\x20found\x20for\x20testId:\x20'+_0x4b6a08),_0x5ec694['slKzI'](_0x5d9188),[];const _0x12cd1d=[..._0x46b1ad[_0x33f11a(0x170)][_0x4b6a08]];return logger['debug'](_0x33f11a(0x18b)+_0x12cd1d[_0x33f11a(0x1b6)]+_0x33f11a(0x17c)+_0x4b6a08),_0x46b1ad[_0x33f11a(0x170)][_0x4b6a08]=[],this[_0x33f11a(0x18e)][_0x4b6a08]=_0x46b1ad,fs[_0x33f11a(0x1d0)](_0x330ef8,JSON[_0x33f11a(0x1a2)](this[_0x33f11a(0x18e)][_0x4b6a08])),_0x5ec694['slKzI'](_0x5d9188),_0x12cd1d;}catch(_0xcba784){return logger['debug']('Failed\x20to\x20acquire\x20lock\x20for\x20'+_0x330ef8+':\x20'+util[_0x33f11a(0x16b)](_0xcba784)+'.\x20Unable\x20to\x20retrieve\x20log\x20objects.'),[];}}static['addTraceFilePath'](_0x366b3a){const _0x521b67=a62_0x2fe94f,_0x2f70e3={};_0x2f70e3['pNAif']='Error\x20handling\x20trace\x20file\x20paths:\x20%O';const _0x322ecd=_0x2f70e3;try{const _0x1da215=process['pid'],_0x38a8d5=path['join'](TestInfo[_0x521b67(0x19b)](),_0x1da215+'_traceZipPaths.json');let _0x5724d1=[];fs[_0x521b67(0x1ce)](_0x38a8d5)&&(_0x5724d1=JSON[_0x521b67(0x1a7)](fs['readFileSync'](_0x38a8d5)[_0x521b67(0x1da)]()));if(!_0x5724d1[_0x521b67(0x196)](_0x54b843=>_0x54b843[_0x521b67(0x17a)]===_0x366b3a[_0x521b67(0x17a)])){_0x5724d1[_0x521b67(0x183)](_0x366b3a);const _0x2ab10f=path['dirname'](_0x38a8d5);if(!fs['existsSync'](_0x2ab10f)){const _0x4efbd4={};_0x4efbd4[_0x521b67(0x1aa)]=!![],fs[_0x521b67(0x1be)](_0x2ab10f,_0x4efbd4);}fs[_0x521b67(0x1d0)](_0x38a8d5,JSON[_0x521b67(0x1a2)](_0x5724d1));}}catch(_0x43ca4a){logger[_0x521b67(0x17b)](util[_0x521b67(0x16b)](_0x322ecd[_0x521b67(0x1d8)],_0x43ca4a));}}static[a62_0x2fe94f(0x1ca)](){const _0x9494de=a62_0x2fe94f,_0x2a74d8={};_0x2a74d8[_0x9494de(0x16a)]='_traceZipPaths.json',_0x2a74d8['GmxFI']=_0x9494de(0x1cb);const _0x16c3ef=_0x2a74d8,_0x75c6d2=[];try{const _0x5b7641=TestInfo[_0x9494de(0x19b)]();if(!fs['existsSync'](_0x5b7641))return _0x75c6d2;const _0x367c45=fs[_0x9494de(0x190)](_0x5b7641);_0x367c45[_0x9494de(0x1a3)](_0x5c5396=>{const _0x3a114a=_0x9494de;if(_0x5c5396['endsWith'](_0x16c3ef[_0x3a114a(0x16a)])){const _0x18e7fe=JSON[_0x3a114a(0x1a7)](fs['readFileSync'](path[_0x3a114a(0x17f)](_0x5b7641,_0x5c5396))[_0x3a114a(0x1da)]());_0x75c6d2['push'](..._0x18e7fe);}});}catch(_0x3f4716){logger[_0x9494de(0x17b)](util[_0x9494de(0x16b)](_0x16c3ef['GmxFI'],_0x3f4716));}const _0x5c8159={};return _0x75c6d2['forEach'](_0x33ff77=>{const _0x1fd066=_0x9494de;_0x5c8159[_0x33ff77[_0x1fd066(0x17a)]]=_0x33ff77;}),Object['values'](_0x5c8159);}static[a62_0x2fe94f(0x1cf)](_0x23392d,_0x1c189a){const _0x45b643=a62_0x2fe94f,_0x4078f9={};_0x4078f9['HgwDl']=_0x45b643(0x1d3),_0x4078f9[_0x45b643(0x1b4)]=_0x45b643(0x18d),_0x4078f9[_0x45b643(0x155)]='Error\x20writing\x20trace\x20file:\x20%O';const _0x2e7f2f=_0x4078f9;try{const _0x348ca7=path[_0x45b643(0x17f)](helper[_0x45b643(0x1c3)](),_0x2e7f2f[_0x45b643(0x15c)]);if(!fs['existsSync'](_0x348ca7)){const _0x16828a={};_0x16828a['recursive']=!![],fs[_0x45b643(0x1be)](_0x348ca7,_0x16828a);}fs[_0x45b643(0x1a6)](path['join'](_0x348ca7,'trace_'+_0x1c189a+_0x45b643(0x185)),_0x23392d+'\x0a',_0x2e7f2f[_0x45b643(0x1b4)]);}catch(_0x18c0a1){logger[_0x45b643(0x17b)](util[_0x45b643(0x16b)](_0x2e7f2f[_0x45b643(0x155)],_0x18c0a1));}}}module[a62_0x2fe94f(0x178)]=TestInfo;
@@ -1 +1 @@
1
- const a63_0x4e094b=a63_0x4083;(function(_0x1bbcff,_0x61792){const _0x3b6013=a63_0x4083,_0xacb78f=_0x1bbcff();while(!![]){try{const _0x56103d=-parseInt(_0x3b6013(0x16d))/0x1+-parseInt(_0x3b6013(0x183))/0x2+-parseInt(_0x3b6013(0x141))/0x3+parseInt(_0x3b6013(0x149))/0x4*(parseInt(_0x3b6013(0x1c8))/0x5)+-parseInt(_0x3b6013(0x13f))/0x6*(-parseInt(_0x3b6013(0x219))/0x7)+-parseInt(_0x3b6013(0x217))/0x8+parseInt(_0x3b6013(0x1fc))/0x9;if(_0x56103d===_0x61792)break;else _0xacb78f['push'](_0xacb78f['shift']());}catch(_0x1656aa){_0xacb78f['push'](_0xacb78f['shift']());}}}(a63_0x34a0,0x73a5c));const {spawn}=require(a63_0x4e094b(0x16b)),GrpcClient=require(a63_0x4e094b(0x1d2)),util=require(a63_0x4e094b(0x142)),CLIUtils=require('./cliUtils.js'),PlaywrightAutomationFramework=require(a63_0x4e094b(0x161)),PlaywrightTestFramework=require(a63_0x4e094b(0x168)),CucumberTestFramework=require(a63_0x4e094b(0x1df)),JestTestFramework=require(a63_0x4e094b(0x1ed)),{createClassLogger}=require(a63_0x4e094b(0x202)),PerformanceTester=require(a63_0x4e094b(0x145)),{EVENTS:PerformanceEvents}=require(a63_0x4e094b(0x1ce)),AccessibilityModule=require('./modules/accessibilityModule.js'),{CLI_SUPPORTED_FRAMEWORKS,FRAMEWORKS}=require('../utils/constants.js'),helper=require(a63_0x4e094b(0x17f)),TestFrameworkConstants=require(a63_0x4e094b(0x1cb)),buildLogger=require(a63_0x4e094b(0x1f1))[a63_0x4e094b(0x218)],LoadTestModule=require('./modules/loadTestModule.js'),TestInfo=require('./TestInfo.js');function a63_0x4083(_0x226bb6,_0x1bc323){const _0x34a01b=a63_0x34a0();return a63_0x4083=function(_0x408354,_0x158a06){_0x408354=_0x408354-0x137;let _0x2576bc=_0x34a01b[_0x408354];return _0x2576bc;},a63_0x4083(_0x226bb6,_0x1bc323);}function a63_0x34a0(){const _0x127bae=['../../helpers/helper.js','isFalse','PGJJO','kill','388998fPmGdI','pLsGS','toLowerCase','stopBinSession','syncAccessibilityConfig:\x20Updated\x20browserstackConfig.accessibilityOptions\x20from\x20CLI\x20response','BuildLink','start','setCliArgs:\x20cliArgs=','O11yHashedID','startChild','format','getAutomationFrameworkDetail','isMainConnected','NrWsN','loadCliParams','startMain:\x20main-process\x20started','getTestFramework','stop:\x20shutting\x20down\x20CLI','isTrue','client','Disabling\x20CLI.','Error\x20Trace\x20ID:\x20','popSL','pjQwr','setupTestFramework','getHashedId','startBinSession','KEY_CUSTOM_TAGS','NgLIS','stop:\x20error\x20in\x20stop\x20session\x20exception=','stdout','syncAccessibilityConfig:\x20error=','TPzqI','getAccessibility','isArray','resolve','zLaId','buildHashedId','stringify','JZpfZ','iTxBt','BROWSERSTACK_CLI_BIN_SESSION_ID','getAutomationFramework','clearAttachments','isRunning','JEST','XWXus','LRCrR','BROWSERSTACK_CLI_ENV','stop:\x20channel\x20closed','info','QaVte','SDK_CLI_ON_STOP','getCliBinPath','isCLIEnabled','code','failed\x20to\x20start\x20CLI,\x20no\x20PID\x20found','setupCliPath','process','exit','toString','getInstance','SDK_CONNECT_BIN_SESSION','nOhDk','length','stderr','vSLIN','config','exitCode','34195tANAjJ','ENEEO','getClient','./framework/constants/testFrameworkConstants.js','MODULE_NAME','LWhgS','../../helpers/performance/constants','setConfig','Setting\x20up\x20CLI\x20binary\x20path...','ZirNR','./grpcClient.js','function','startMain','SDK_CLI_BIN_PATH','gEdmU','getCliArgs','trim','umgTX','CRDmo','PLAYWRIGHT','./modules/observabilityModule.js','version','isDevelopmentEnv','./framework/cucumberTestFramework.js','automationFramework','errorsList','FrwiD','aASph','key','BROWSERSTACK_CLI_ENABLED','getConfig','SDK_CLI_ON_BOOTSTRAP','BROWSERSTACK_TURBOSCALE','CLqav','syncAccessibilityConfig:\x20browserstackConfig\x20not\x20set,\x20skipping\x20sync','browserstackConfigPath','XPRHV','./framework/jestTestFramework.js','accessibilityOptions','ready','bootstrap','../../helpers/logger.js','Error:\x20[','testhubConfig','getSuccess','Starting\x20as\x20child\x20process\x20with\x20session\x20ID:\x20','connected','spawning\x20command=\x27','end','slice','./modules/playwrightDriverModule.js','utvRh','8376732QzqNMf','pid','stop:\x20process\x20exit\x20timeout,\x20forcing\x20kill','izopa','\x20o11y_uuid=','setLTSSessionId','../../helpers/classLogger.js','GzKXQ','RNmzY','SSIbF','getCLIParamsForDevEnv','Failed\x20to\x20start\x20as\x20child\x20process:\x20','accessibility','UJqIh','npLjc','YiKhg','gnrHB','loadModules:\x20binSessionId=','logger','sdk','CLIUtils.setupCliPath\x20returned\x20null','modules','Error\x20reading\x20accessibility\x20success\x20value:\x20','browserstackCliConfig','error','setCliArgs','turboScale','3446864kloUUh','buildLogger','21XfjYbG','pIanx','toObject','Ahpks','getObservability','split','loadModules','warn','loading\x20Modules.','ziPzX','PtsCw','stack','syncAccessibilityConfig:\x20Updated\x20browserstackConfig.accessibility\x20from\x20CLI\x20response:\x20','bootstrap:\x20failed\x20to\x20bootstrap=','SDK_CLI_START','setConfig:\x20error=','CLI\x20process\x20exited\x20with\x20code\x20','PmatM','1307370jJRSco','startChild:\x20client\x20and\x20channel\x20already\x20exist,\x20stopping\x20here','2649726LIQVuH','util','isChildConnected','XCqUN','../../helpers/performance/performance-tester.js','loadModules:\x20Loading\x20modules','dFsSO','Error\x20in\x20setupCliPath:\x20','328KkrnZx','message','browserstackConfig','fHdmk','forEach','HashedID','unConfigureModules','getAccessibilityModule','muTBS','\x20errors:','TxjiS','isClosed','setCliArgs:\x20error=','pKDBJ','getChannel','name','init','connect','errorTraceId','syncAccessibilityConfig','Unconfiguring\x20modules','./modules/testhubModule.js','GiUbQ','CLI\x20params\x20loaded:\x20','./framework/playwrightAutomationFramework.js','getBrowserstackCliConfig','AJITR','testFramework','Accessibility\x20success=','FUtaA','parse','./framework/playwrightTestFramework.js','debug','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','child_process','YbOry','162940iJRMWr','bbeRW','binSessionId','lnJkc','close','SIGKILL','TestHubModule','env','./uploadAttachmentsManager.js','syncAccessibilityConfig:\x20CLI\x20config\x20not\x20available,\x20skipping\x20sync','gpPCE','EqBWd','startMain:\x20Starting\x20main\x20process','getAutomateBuildlink','data','cliArgs','bhhWy','includes'];a63_0x34a0=function(){return _0x127bae;};return a63_0x34a0();}class BrowserstackCLI{static #instance=null;static [a63_0x4e094b(0x188)]=null;static [a63_0x4e094b(0x14e)]=null;static ['O11yHashedID']=null;['process']=null;[a63_0x4e094b(0x18f)]=![];[a63_0x4e094b(0x143)]=![];[a63_0x4e094b(0x16f)]=null;['modules']={};[a63_0x4e094b(0x164)]=null;[a63_0x4e094b(0x1e0)]=null;[a63_0x4e094b(0x20e)]=createClassLogger('BrowserstackCLI');constructor(){const _0x339b1a=a63_0x4e094b;this['initialized']=![],this[_0x339b1a(0x1c6)]={},this['cliArgs']={},this[_0x339b1a(0x14b)]={};}static['getInstance'](){return!BrowserstackCLI.#instance&&(BrowserstackCLI.#instance=new BrowserstackCLI()),BrowserstackCLI.#instance;}async[a63_0x4e094b(0x1f0)](){const _0x6e14c4=a63_0x4e094b,_0x44c9ea={};_0x44c9ea[_0x6e14c4(0x203)]=_0x6e14c4(0x197);const _0x346c9f=_0x44c9ea;if(helper[_0x6e14c4(0x180)](process[_0x6e14c4(0x174)]['BROWSERSTACK_CLI_ENABLED'])){this['logger']['info'](_0x346c9f['GzKXQ']);return;}PerformanceTester[_0x6e14c4(0x189)](PerformanceEvents['SDK_CLI_ON_BOOTSTRAP']);try{const _0x37e3d3=process[_0x6e14c4(0x174)][_0x6e14c4(0x1ac)]||null;this['setupAutomationFramework'](),this[_0x6e14c4(0x19b)]();if(_0x37e3d3){await this[_0x6e14c4(0x18c)](_0x37e3d3),PerformanceTester[_0x6e14c4(0x1f8)](PerformanceEvents[_0x6e14c4(0x1e7)]);return;}await this[_0x6e14c4(0x1d4)]();}catch(_0xcd6cb7){this[_0x6e14c4(0x20e)][_0x6e14c4(0x214)](_0x6e14c4(0x13a)+(_0xcd6cb7[_0x6e14c4(0x138)]||_0xcd6cb7)),await this['stop'](),PerformanceTester['end'](PerformanceEvents[_0x6e14c4(0x1e7)],![],util[_0x6e14c4(0x18d)](_0xcd6cb7));}}async[a63_0x4e094b(0x1d4)](){const _0x3c90e8=a63_0x4e094b,_0x4a6568={};_0x4a6568[_0x3c90e8(0x1e9)]=_0x3c90e8(0x179),_0x4a6568[_0x3c90e8(0x222)]=_0x3c90e8(0x192);const _0x59d45e=_0x4a6568;this[_0x3c90e8(0x20e)][_0x3c90e8(0x1b5)](_0x59d45e[_0x3c90e8(0x1e9)]),await this[_0x3c90e8(0x189)](),this['logger'][_0x3c90e8(0x169)](_0x59d45e[_0x3c90e8(0x222)]);const _0x2f1403=await GrpcClient[_0x3c90e8(0x1c0)]()[_0x3c90e8(0x19d)]();this[_0x3c90e8(0x18f)]=!![],this[_0x3c90e8(0x21f)](_0x2f1403);}[a63_0x4e094b(0x21f)](_0x556500){const _0x32c228=a63_0x4e094b,_0x41dea7={'gnrHB':function(_0x142f1e,_0x3ef7ac){return _0x142f1e(_0x3ef7ac);},'dFsSO':_0x32c228(0x1fa),'AJITR':function(_0x45806d,_0x4e5b02){return _0x45806d(_0x4e5b02);},'pLsGS':_0x32c228(0x15e),'LRCrR':_0x32c228(0x1dc),'aASph':_0x32c228(0x146),'XWXus':_0x32c228(0x21d),'XPRHV':_0x32c228(0x1a4),'fHdmk':_0x32c228(0x1f4),'GiUbQ':function(_0x3c3065,_0x2871ae){return _0x3c3065||_0x2871ae;},'PtsCw':function(_0x19f76e,_0x18286f){return _0x19f76e===_0x18286f;},'PWJtL':_0x32c228(0x1d3),'gpPCE':function(_0xe7c5d8,_0x163eaa){return _0xe7c5d8&&_0x163eaa;}},_0x5a3255=_0x41dea7[_0x32c228(0x20c)](require,_0x41dea7[_0x32c228(0x147)]),_0x89e9f1=_0x41dea7[_0x32c228(0x163)](require,_0x41dea7[_0x32c228(0x184)]),_0x101613=_0x41dea7['gnrHB'](require,_0x41dea7[_0x32c228(0x1b2)]);this[_0x32c228(0x20e)][_0x32c228(0x1b5)](_0x41dea7[_0x32c228(0x1e3)]),this[_0x32c228(0x16f)]=_0x556500['getBinSessionId'](),this[_0x32c228(0x20e)][_0x32c228(0x1b5)](_0x32c228(0x20d)+this['binSessionId']),this[_0x32c228(0x1cf)](_0x556500),this[_0x32c228(0x15c)]();!this[_0x32c228(0x143)]&&this[_0x32c228(0x215)](_0x556500);const _0x574af6=_0x41dea7[_0x32c228(0x1b1)],_0x56d98f=_0x41dea7[_0x32c228(0x1ec)],_0x4af9c5=_0x41dea7[_0x32c228(0x14c)],_0x36ced0=_0x556500[_0x574af6]()&&_0x556500[_0x574af6]()[_0x4af9c5](),_0x4aa40c=_0x556500[_0x56d98f]()&&_0x556500[_0x56d98f]()[_0x4af9c5](),_0xb43840=process[_0x32c228(0x174)][_0x32c228(0x16a)]&&JSON[_0x32c228(0x167)](process['env']['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']);_0x41dea7[_0x32c228(0x15f)](_0x36ced0,_0x4aa40c)&&(this[_0x32c228(0x211)][_0x89e9f1[_0x32c228(0x1cc)]]=new _0x89e9f1(_0x556500['getTesthub'](),_0xb43840));_0x36ced0&&(this['modules'][_0x101613[_0x32c228(0x1cc)]]=new _0x101613(_0x556500[_0x574af6]()));if(_0x4aa40c)this[_0x32c228(0x211)][AccessibilityModule['MODULE_NAME']]=new AccessibilityModule(_0x556500[_0x56d98f]());else try{const _0x2bfc14=_0x556500[_0x56d98f](),_0x12e6d7=_0x2bfc14&&_0x41dea7[_0x32c228(0x137)](typeof _0x2bfc14[_0x4af9c5],_0x41dea7['PWJtL'])?!!_0x2bfc14[_0x4af9c5]():![];this[_0x32c228(0x20e)][_0x32c228(0x1b5)](_0x32c228(0x165)+_0x12e6d7);if(_0x41dea7[_0x32c228(0x177)](!_0x12e6d7,_0x2bfc14)){const _0x3871c0=_0x2bfc14[_0x32c228(0x21b)]?_0x2bfc14['toObject']():_0x2bfc14;_0x3871c0[_0x32c228(0x1e1)]&&Array[_0x32c228(0x1a5)](_0x3871c0[_0x32c228(0x1e1)])&&(this[_0x32c228(0x20e)][_0x32c228(0x214)]('Accessibility\x20initialization\x20failed\x20with\x20'+_0x3871c0[_0x32c228(0x1e1)][_0x32c228(0x1c3)]+_0x32c228(0x152)),_0x3871c0[_0x32c228(0x1e1)][_0x32c228(0x14d)]((_0x101673,_0x168e1b)=>{const _0x2b8409=_0x32c228;this[_0x2b8409(0x20e)][_0x2b8409(0x214)](_0x2b8409(0x1f2)+_0x101673[_0x2b8409(0x1e4)]+']\x20'+_0x101673[_0x2b8409(0x14a)]);}),_0x3871c0[_0x32c228(0x15b)]&&this[_0x32c228(0x20e)]['error'](_0x32c228(0x198)+_0x3871c0[_0x32c228(0x15b)]),_0x3871c0[_0x32c228(0x1ba)]&&this['logger'][_0x32c228(0x214)]('Error\x20Code:\x20'+_0x3871c0['code']));}}catch(_0x40652a){this[_0x32c228(0x20e)][_0x32c228(0x214)](_0x32c228(0x212)+_0x40652a);}this[_0x32c228(0x211)][_0x5a3255[_0x32c228(0x1cc)]]=new _0x5a3255(_0xb43840),this['configureModules']();}[a63_0x4e094b(0x150)](){const _0x415d80=a63_0x4e094b;return this['modules'][AccessibilityModule[_0x415d80(0x1cc)]];}async['configureModules'](){const _0x3d2798=a63_0x4e094b;for(const _0xe3c733 in this[_0x3d2798(0x211)]){const _0x2c261c=this[_0x3d2798(0x211)][_0xe3c733];await _0x2c261c['configure'](this['binSessionId'],0x0,GrpcClient[_0x3d2798(0x1c0)]()[_0x3d2798(0x196)],this[_0x3d2798(0x1c6)]);}}async[a63_0x4e094b(0x189)](){const _0x3bde3e=a63_0x4e094b,_0x136a76={'lnJkc':function(_0x1d66cf,_0x31c57c){return _0x1d66cf!==_0x31c57c;},'vSLIN':_0x3bde3e(0x1ef),'FrwiD':function(_0x4bfcc0){return _0x4bfcc0();},'FUtaA':function(_0x570932,_0x56be7b){return _0x570932(_0x56be7b);},'XCqUN':function(_0x279198,_0x41834e){return _0x279198!==_0x41834e;},'SKiVN':function(_0x440278,_0x737e6e){return _0x440278(_0x737e6e);},'npLjc':_0x3bde3e(0x17b),'gEdmU':_0x3bde3e(0x214),'utvRh':_0x3bde3e(0x171),'NgLIS':'Failed\x20to\x20get\x20CLI\x20binary\x20path.\x20CLI\x20setup\x20failed.','nOhDk':_0x3bde3e(0x20f),'LWhgS':function(_0x32d384,_0xb2b433,_0x384a4b,_0x397e8e){return _0x32d384(_0xb2b433,_0x384a4b,_0x397e8e);},'NrWsN':_0x3bde3e(0x1bb)};PerformanceTester['start'](PerformanceEvents[_0x3bde3e(0x13b)]);if(CLIUtils[_0x3bde3e(0x1de)]())return this[_0x3bde3e(0x191)](CLIUtils[_0x3bde3e(0x206)]()),PerformanceTester[_0x3bde3e(0x1f8)](PerformanceEvents[_0x3bde3e(0x13b)]),Promise[_0x3bde3e(0x1a6)]();if(this[_0x3bde3e(0x1bd)]&&this[_0x3bde3e(0x1bd)][_0x3bde3e(0x1f6)])return PerformanceTester[_0x3bde3e(0x1f8)](PerformanceEvents[_0x3bde3e(0x13b)]),Promise['resolve']();const _0x24eece=await this[_0x3bde3e(0x1b8)]();if(!_0x24eece)throw new Error(_0x136a76[_0x3bde3e(0x19f)]);const _0x5c3707=[_0x24eece,_0x136a76[_0x3bde3e(0x1c2)]];this['logger'][_0x3bde3e(0x1b5)](_0x3bde3e(0x1f7)+_0x5c3707+'\x27');const _0x468a46={};_0x468a46[_0x3bde3e(0x174)]=process[_0x3bde3e(0x174)],this[_0x3bde3e(0x1bd)]=_0x136a76[_0x3bde3e(0x1cd)](spawn,_0x5c3707[0x0],_0x5c3707[_0x3bde3e(0x1f9)](0x1),_0x468a46);if(!this[_0x3bde3e(0x1bd)][_0x3bde3e(0x1fd)])throw new Error(_0x136a76[_0x3bde3e(0x190)]);return new Promise((_0x95130,_0x392b2c)=>{const _0x3522b9=_0x3bde3e,_0x586899={};this[_0x3522b9(0x1bd)][_0x3522b9(0x1a1)]['on'](_0x136a76['npLjc'],_0x17edc7=>{const _0x34a0b9=_0x3522b9,_0x611375=_0x17edc7['toString']()[_0x34a0b9(0x1d8)]()['split']('\x0a');for(const _0x452e48 of _0x611375){if(/^(id|listen|port)=.*$/['test'](_0x452e48)){const [_0x41e7f9,_0x951f51]=_0x452e48[_0x34a0b9(0x21e)]('=',0x2);_0x136a76[_0x34a0b9(0x170)](_0x951f51,undefined)&&(_0x586899[_0x41e7f9]=_0x951f51);}if(_0x452e48[_0x34a0b9(0x185)]()[_0x34a0b9(0x17e)](_0x136a76[_0x34a0b9(0x1c5)])){this['loadCliParams'](_0x586899),PerformanceTester[_0x34a0b9(0x1f8)](PerformanceEvents[_0x34a0b9(0x13b)]),_0x136a76[_0x34a0b9(0x1e2)](_0x95130);return;}}}),this[_0x3522b9(0x1bd)][_0x3522b9(0x1c4)]['on'](_0x136a76[_0x3522b9(0x20a)],_0x4d17ee=>{const _0x4310a6=_0x3522b9;this[_0x4310a6(0x20e)][_0x4310a6(0x214)]('CLI\x20stderr:\x20'+_0x4d17ee[_0x4310a6(0x1bf)]()[_0x4310a6(0x1d8)]());}),this[_0x3522b9(0x1bd)]['on'](_0x136a76[_0x3522b9(0x1d6)],_0x2a323a=>{const _0x1dd30f=_0x3522b9;_0x586899[_0x1dd30f(0x214)]='Error\x20in\x20start:\x20'+_0x2a323a[_0x1dd30f(0x14a)],PerformanceTester[_0x1dd30f(0x1f8)](PerformanceEvents[_0x1dd30f(0x13b)],![],_0x2a323a),_0x136a76[_0x1dd30f(0x166)](_0x392b2c,new Error('Failed\x20to\x20start\x20CLI\x20process:\x20'+_0x2a323a[_0x1dd30f(0x14a)]));}),this['process']['on'](_0x136a76[_0x3522b9(0x1fb)],_0x5b2c53=>{const _0x4e2623=_0x3522b9;_0x136a76[_0x4e2623(0x144)](_0x5b2c53,0x0)&&_0x136a76['SKiVN'](_0x392b2c,new Error(_0x4e2623(0x13d)+_0x5b2c53));});});}async['stop'](_0x5afbf1=null){const _0xac4f98=a63_0x4e094b,_0x1be882={'bLTsZ':'stop:\x20CLI\x20process\x20exited','umgTX':function(_0x32d47a){return _0x32d47a();},'muTBS':_0xac4f98(0x1fe),'bhhWy':_0xac4f98(0x172),'xdbSN':_0xac4f98(0x1be),'yjdNi':function(_0x7d2b30,_0x1b9a82,_0x4c03cc){return _0x7d2b30(_0x1b9a82,_0x4c03cc);},'jSdzH':'stop:\x20CLI\x20is\x20not\x20running,\x20skipping\x20stop','TPzqI':'stop:\x20CLI\x20stop\x20triggered','izopa':function(_0x37ebdb,_0x235a98){return _0x37ebdb(_0x235a98);},'Vhdfh':_0xac4f98(0x175),'YiKhg':_0xac4f98(0x1b4),'iTxBt':'stop:\x20error\x20in\x20closing\x20channel:\x20%s','PGJJO':_0xac4f98(0x194)};if(!this[_0xac4f98(0x1af)]()){this[_0xac4f98(0x20e)][_0xac4f98(0x1b5)](_0x1be882['jSdzH']);return;}PerformanceTester[_0xac4f98(0x189)](PerformanceEvents['SDK_CLI_ON_STOP']),this[_0xac4f98(0x20e)][_0xac4f98(0x1b5)](_0x1be882[_0xac4f98(0x1a3)]);try{if(this[_0xac4f98(0x18f)]){const _0x1335b7=_0x1be882[_0xac4f98(0x1ff)](require,_0x1be882['Vhdfh']),_0xd37192=this['modules'][_0xac4f98(0x173)]?.[_0xac4f98(0x1f3)]?.['toObject']()?.[_0xac4f98(0x1a8)],_0x5a1a28=TestInfo['getTestDetails'](_0xd37192),_0x4d249a=_0x5a1a28[TestFrameworkConstants[_0xac4f98(0x19e)]]||{},_0x502dd9=await GrpcClient[_0xac4f98(0x1c0)]()[_0xac4f98(0x186)](JSON[_0xac4f98(0x1a9)](_0x4d249a),_0x5afbf1);_0x502dd9&&_0x502dd9['getSuccess']()&&_0x502dd9[_0xac4f98(0x17a)]()&&(BrowserstackCLI[_0xac4f98(0x188)]=_0x502dd9[_0xac4f98(0x17a)](),BrowserstackCLI[_0xac4f98(0x14e)]=_0x502dd9[_0xac4f98(0x19c)]()),await _0x1335b7[_0xac4f98(0x1ae)](),TestInfo['shutdown'](),buildLogger[_0xac4f98(0x1b5)]('stop:\x20stopBinSession\x20build_link='+BrowserstackCLI[_0xac4f98(0x188)]+'\x20hashed_id='+BrowserstackCLI[_0xac4f98(0x14e)]+_0xac4f98(0x200)+BrowserstackCLI[_0xac4f98(0x18b)]);}await this[_0xac4f98(0x14f)]();const _0x21c70b=GrpcClient[_0xac4f98(0x1c0)]()[_0xac4f98(0x157)]();if(_0x21c70b){try{_0x21c70b[_0xac4f98(0x171)](),this[_0xac4f98(0x20e)][_0xac4f98(0x1b5)](_0x1be882[_0xac4f98(0x20b)]);}catch(_0x2681ea){this[_0xac4f98(0x20e)]['error'](util[_0xac4f98(0x18d)](_0x1be882[_0xac4f98(0x1ab)],_0x2681ea));}await new Promise(_0xc5532c=>setTimeout(_0xc5532c,0x1388));}this['process']&&this[_0xac4f98(0x1bd)][_0xac4f98(0x1fd)]&&(this['logger'][_0xac4f98(0x1b5)](_0x1be882[_0xac4f98(0x181)]),this['process'][_0xac4f98(0x182)](),await new Promise(_0x5bc95f=>{const _0x35f8d6=_0xac4f98,_0x4369d5={'ZirNR':_0x1be882[_0x35f8d6(0x151)],'pjQwr':_0x1be882[_0x35f8d6(0x17d)],'popSL':function(_0xcb1780){const _0x36ba0d=_0x35f8d6;return _0x1be882[_0x36ba0d(0x1d9)](_0xcb1780);}};let _0x505f2=![];this['process']['on'](_0x1be882['xdbSN'],()=>{const _0x268631=_0x35f8d6;this[_0x268631(0x20e)][_0x268631(0x1b5)](_0x1be882['bLTsZ']),_0x505f2=!![],PerformanceTester[_0x268631(0x1f8)](PerformanceEvents[_0x268631(0x1b7)]),_0x1be882[_0x268631(0x1d9)](_0x5bc95f);}),_0x1be882['yjdNi'](setTimeout,()=>{const _0x165646=_0x35f8d6;!_0x505f2&&(this[_0x165646(0x20e)][_0x165646(0x220)](_0x4369d5[_0x165646(0x1d1)]),this[_0x165646(0x1bd)][_0x165646(0x182)](_0x4369d5[_0x165646(0x19a)]),PerformanceTester['end'](PerformanceEvents['SDK_CLI_ON_STOP']),_0x4369d5[_0x165646(0x199)](_0x5bc95f));},0xbb8);}));}catch(_0x641200){PerformanceTester[_0xac4f98(0x1f8)](PerformanceEvents[_0xac4f98(0x1b7)],![],util[_0xac4f98(0x18d)](_0x641200)),this[_0xac4f98(0x20e)][_0xac4f98(0x214)](_0xac4f98(0x1a0)+(_0x641200[_0xac4f98(0x138)]||_0x641200));}_0x5afbf1?this['process'][_0xac4f98(0x1c7)]=0x1:this[_0xac4f98(0x1bd)][_0xac4f98(0x1c7)]=0x0,this[_0xac4f98(0x143)]=![],this['isMainConnected']=![],process['env'][_0xac4f98(0x1b3)]=null;}async[a63_0x4e094b(0x14f)](){const _0x430fbf=a63_0x4e094b,_0x4d03a6={};_0x4d03a6[_0x430fbf(0x1c9)]=_0x430fbf(0x15d);const _0x25b76f=_0x4d03a6;this[_0x430fbf(0x20e)]['info'](_0x25b76f['ENEEO']);}[a63_0x4e094b(0x191)](_0x19c7f6){const _0x521499=a63_0x4e094b;this[_0x521499(0x20e)][_0x521499(0x1b5)](_0x521499(0x160)+JSON[_0x521499(0x1a9)](_0x19c7f6)),this['cliParams']=_0x19c7f6,GrpcClient[_0x521499(0x1c0)]()[_0x521499(0x159)](_0x19c7f6);}async[a63_0x4e094b(0x18c)](_0x200837){const _0x14dd3f=a63_0x4e094b,_0x50dc10={};_0x50dc10[_0x14dd3f(0x1da)]=_0x14dd3f(0x140);const _0x5b33f6=_0x50dc10;PerformanceTester['start'](PerformanceEvents[_0x14dd3f(0x1c1)]);try{this[_0x14dd3f(0x20e)][_0x14dd3f(0x1b5)](_0x14dd3f(0x1f5)+_0x200837);const _0x3f65c4=GrpcClient['getInstance']();if(_0x3f65c4&&_0x3f65c4[_0x14dd3f(0x1ca)]()&&_0x3f65c4['getChannel']()){this[_0x14dd3f(0x20e)][_0x14dd3f(0x1b5)](_0x5b33f6['CRDmo']);return;}GrpcClient[_0x14dd3f(0x1c0)]()[_0x14dd3f(0x15a)]();const _0x44ac20=await GrpcClient[_0x14dd3f(0x1c0)]()['connectBinSession']();this[_0x14dd3f(0x143)]=!![],this[_0x14dd3f(0x21f)](_0x44ac20),PerformanceTester[_0x14dd3f(0x1f8)](PerformanceEvents['SDK_CONNECT_BIN_SESSION']);}catch(_0x451840){PerformanceTester['end'](PerformanceEvents[_0x14dd3f(0x1c1)],![],util['format'](_0x451840)),this[_0x14dd3f(0x20e)][_0x14dd3f(0x214)](_0x14dd3f(0x207)+util[_0x14dd3f(0x18d)](_0x451840));}}static[a63_0x4e094b(0x1b9)](){const _0x194dad=a63_0x4e094b;try{return BrowserstackCLI[_0x194dad(0x1c0)]()[_0x194dad(0x1af)]();}catch(_0xd87380){return![];}}[a63_0x4e094b(0x1af)](){const _0x187d2d=a63_0x4e094b,_0x5d4a97={};_0x5d4a97[_0x187d2d(0x21a)]=function(_0x53e5fb,_0x265023){return _0x53e5fb!==_0x265023;},_0x5d4a97[_0x187d2d(0x178)]=function(_0x2046c3,_0x11b659){return _0x2046c3===_0x11b659;},_0x5d4a97[_0x187d2d(0x204)]=function(_0x2a10a6,_0x41f75f){return _0x2a10a6!==_0x41f75f;},_0x5d4a97[_0x187d2d(0x156)]=function(_0x1bd4fb,_0x56cfcc){return _0x1bd4fb!==_0x56cfcc;};const _0xd51bb3=_0x5d4a97;return CLIUtils[_0x187d2d(0x1de)]()||this[_0x187d2d(0x18f)]&&_0xd51bb3[_0x187d2d(0x21a)](this[_0x187d2d(0x1bd)],null)&&_0xd51bb3[_0x187d2d(0x178)](this[_0x187d2d(0x1bd)][_0x187d2d(0x1c7)],null)&&_0xd51bb3['RNmzY'](GrpcClient[_0x187d2d(0x1c0)]()[_0x187d2d(0x1ca)](),null)&&!GrpcClient['getInstance']()[_0x187d2d(0x157)]()[_0x187d2d(0x154)]||this['isChildConnected']&&_0xd51bb3[_0x187d2d(0x156)](GrpcClient[_0x187d2d(0x1c0)]()['getChannel'](),null)&&!GrpcClient[_0x187d2d(0x1c0)]()[_0x187d2d(0x157)]()['isClosed'];}['getBrowserstackConfig'](){const _0x2772fc=a63_0x4e094b;return this[_0x2772fc(0x14b)];}['setBrowserstackConfig'](_0x1f0f4e,_0x34da70,_0x76c755=null){const _0x37d533=a63_0x4e094b,_0x42872b={};_0x42872b[_0x37d533(0x205)]=function(_0x8498a9,_0x132393){return _0x8498a9||_0x132393;};const _0x492e2a=_0x42872b;this[_0x37d533(0x14b)]=_0x492e2a[_0x37d533(0x205)](_0x1f0f4e,{}),this['browserstackConfigPath']=_0x34da70,this[_0x37d533(0x213)]=_0x76c755,process['env'][_0x37d533(0x1e8)]=this[_0x37d533(0x14b)]?.[_0x37d533(0x216)]||![];const _0x2b3418=CLIUtils['getTestFrameworkDetail'](),_0x81b03e=CLIUtils[_0x37d533(0x18e)]();LoadTestModule['isLTSSession'](this[_0x37d533(0x14b)])&&LoadTestModule[_0x37d533(0x201)](this[_0x37d533(0x14b)]||{}),helper[_0x37d533(0x195)](process['env'][_0x37d533(0x1e8)])||!(CLI_SUPPORTED_FRAMEWORKS[_0x37d533(0x17e)](_0x2b3418[_0x37d533(0x158)]['toLowerCase']())&&CLI_SUPPORTED_FRAMEWORKS[_0x37d533(0x17e)](_0x81b03e[_0x37d533(0x158)][_0x37d533(0x185)]()))?process[_0x37d533(0x174)][_0x37d533(0x1e5)]=![]:process[_0x37d533(0x174)][_0x37d533(0x1e5)]=!![];}async[a63_0x4e094b(0x1b8)](){const _0x312af8=a63_0x4e094b,_0x31c771={};_0x31c771[_0x312af8(0x21c)]=_0x312af8(0x1d0),_0x31c771['QaVte']=_0x312af8(0x210);const _0xe25334=_0x31c771;if(!this[_0x312af8(0x1d5)])try{this[_0x312af8(0x20e)][_0x312af8(0x169)](_0xe25334[_0x312af8(0x21c)]),this[_0x312af8(0x1d5)]=await CLIUtils[_0x312af8(0x1bc)](this[_0x312af8(0x14b)]),!this[_0x312af8(0x1d5)]?this[_0x312af8(0x20e)]['error'](_0xe25334[_0x312af8(0x1b6)]):this[_0x312af8(0x20e)][_0x312af8(0x169)]('CLI\x20binary\x20path\x20resolved\x20to:\x20'+this[_0x312af8(0x1d5)]);}catch(_0x393d16){this[_0x312af8(0x20e)][_0x312af8(0x214)](_0x312af8(0x148)+_0x393d16[_0x312af8(0x14a)]),this[_0x312af8(0x1d5)]=null;}return this['SDK_CLI_BIN_PATH'];}['isCliEnabled'](){const _0x2f6a20=a63_0x4e094b;return helper[_0x2f6a20(0x195)](process[_0x2f6a20(0x174)][_0x2f6a20(0x1e5)]);}[a63_0x4e094b(0x1e6)](){return this['config'];}['setConfig'](_0x59373a){const _0x60adc0=a63_0x4e094b,_0x4b0060={};_0x4b0060[_0x60adc0(0x16c)]=_0x60adc0(0x221);const _0x1b581d=_0x4b0060;try{this[_0x60adc0(0x1c6)]=JSON[_0x60adc0(0x167)](_0x59373a['getConfig']()),this[_0x60adc0(0x20e)]['info'](_0x1b581d[_0x60adc0(0x16c)]);}catch(_0x4f8bf7){this['logger'][_0x60adc0(0x214)](_0x60adc0(0x13c)+util[_0x60adc0(0x18d)](_0x4f8bf7));}}[a63_0x4e094b(0x15c)](){const _0x3aaa9d=a63_0x4e094b,_0x222714={};_0x222714[_0x3aaa9d(0x209)]=_0x3aaa9d(0x1ea),_0x222714[_0x3aaa9d(0x1a7)]=_0x3aaa9d(0x176),_0x222714[_0x3aaa9d(0x1aa)]=_0x3aaa9d(0x187);const _0x41c920=_0x222714;try{if(!this[_0x3aaa9d(0x14b)]){this[_0x3aaa9d(0x20e)]['debug'](_0x41c920[_0x3aaa9d(0x209)]);return;}const _0x1f7b4f=this['getConfig']();if(!_0x1f7b4f){this[_0x3aaa9d(0x20e)]['debug'](_0x41c920[_0x3aaa9d(0x1a7)]);return;}!helper['isUndefined'](_0x1f7b4f[_0x3aaa9d(0x208)])&&(this[_0x3aaa9d(0x14b)][_0x3aaa9d(0x208)]=_0x1f7b4f['accessibility'],this[_0x3aaa9d(0x20e)][_0x3aaa9d(0x169)](_0x3aaa9d(0x139)+_0x1f7b4f[_0x3aaa9d(0x208)])),!helper['isUndefined'](_0x1f7b4f['accessibilityOptions'])&&(this[_0x3aaa9d(0x14b)]['accessibilityOptions']=_0x1f7b4f[_0x3aaa9d(0x1ee)],this[_0x3aaa9d(0x20e)][_0x3aaa9d(0x169)](_0x41c920[_0x3aaa9d(0x1aa)]));}catch(_0x1ed9f9){this[_0x3aaa9d(0x20e)][_0x3aaa9d(0x214)](_0x3aaa9d(0x1a2)+util['format'](_0x1ed9f9));}}[a63_0x4e094b(0x215)](_0xb4e079){const _0x5ca04f=a63_0x4e094b;try{this[_0x5ca04f(0x17c)]=_0xb4e079[_0x5ca04f(0x1d7)]()[_0x5ca04f(0x21e)](','),this[_0x5ca04f(0x20e)]['info'](_0x5ca04f(0x18a)+JSON[_0x5ca04f(0x1a9)](this[_0x5ca04f(0x17c)]));}catch(_0x34f8e7){this['logger'][_0x5ca04f(0x214)](_0x5ca04f(0x155)+util['format'](_0x34f8e7));}}[a63_0x4e094b(0x1d7)](){const _0x382d26=a63_0x4e094b;return this[_0x382d26(0x17c)];}[a63_0x4e094b(0x19b)](){const _0x35ec0f=a63_0x4e094b,_0x253df3={};_0x253df3[_0x35ec0f(0x16e)]=function(_0x2d9c8d,_0x4f3d5d){return _0x2d9c8d===_0x4f3d5d;},_0x253df3[_0x35ec0f(0x153)]=function(_0x1d1a31,_0x244818){return _0x1d1a31===_0x244818;};const _0x3936f5=_0x253df3,_0x318d41=CLIUtils['getTestFrameworkDetail']();if(_0x3936f5[_0x35ec0f(0x16e)](_0x318d41[_0x35ec0f(0x158)]['toLowerCase'](),FRAMEWORKS[_0x35ec0f(0x1db)][_0x35ec0f(0x185)]()))this[_0x35ec0f(0x164)]=new PlaywrightTestFramework([_0x318d41['name']],_0x318d41['version']);else{if(_0x3936f5[_0x35ec0f(0x16e)](_0x318d41[_0x35ec0f(0x158)][_0x35ec0f(0x185)](),FRAMEWORKS['CUCUMBER'][_0x35ec0f(0x185)]()))this['testFramework']=new CucumberTestFramework([_0x318d41[_0x35ec0f(0x158)]],_0x318d41[_0x35ec0f(0x1dd)]);else _0x3936f5[_0x35ec0f(0x153)](_0x318d41[_0x35ec0f(0x158)][_0x35ec0f(0x185)](),FRAMEWORKS[_0x35ec0f(0x1b0)][_0x35ec0f(0x185)]())&&(this[_0x35ec0f(0x164)]=new JestTestFramework([_0x318d41[_0x35ec0f(0x158)]],_0x318d41['version']));}}['setupAutomationFramework'](){const _0x43f5a4=a63_0x4e094b,_0x8aa33={};_0x8aa33[_0x43f5a4(0x13e)]=function(_0x3f5228,_0x751e77){return _0x3f5228===_0x751e77;};const _0x50d608=_0x8aa33,_0x53206c=CLIUtils[_0x43f5a4(0x18e)]();_0x50d608[_0x43f5a4(0x13e)](_0x53206c[_0x43f5a4(0x158)][_0x43f5a4(0x185)](),FRAMEWORKS[_0x43f5a4(0x1db)][_0x43f5a4(0x185)]())&&(this[_0x43f5a4(0x1e0)]=new PlaywrightAutomationFramework(_0x53206c[_0x43f5a4(0x158)],_0x53206c[_0x43f5a4(0x1dd)]));}[a63_0x4e094b(0x193)](){const _0x14a1bd=a63_0x4e094b;return this[_0x14a1bd(0x164)];}[a63_0x4e094b(0x1ad)](){const _0x252a26=a63_0x4e094b;return this[_0x252a26(0x1e0)];}[a63_0x4e094b(0x162)](){const _0xd8863a=a63_0x4e094b;return this[_0xd8863a(0x213)];}['getBrowserstackConfigPath'](){const _0x3e1448=a63_0x4e094b;return this[_0x3e1448(0x1eb)];}}module['exports']=BrowserstackCLI;
1
+ const a63_0x18df69=a63_0x1a78;(function(_0x505b09,_0x22bc6e){const _0x648c3f=a63_0x1a78,_0x34a097=_0x505b09();while(!![]){try{const _0x12c833=-parseInt(_0x648c3f(0x151))/0x1+parseInt(_0x648c3f(0x143))/0x2*(-parseInt(_0x648c3f(0x1f2))/0x3)+-parseInt(_0x648c3f(0x19f))/0x4+-parseInt(_0x648c3f(0x222))/0x5+parseInt(_0x648c3f(0x14b))/0x6*(-parseInt(_0x648c3f(0x179))/0x7)+-parseInt(_0x648c3f(0x152))/0x8+parseInt(_0x648c3f(0x14a))/0x9;if(_0x12c833===_0x22bc6e)break;else _0x34a097['push'](_0x34a097['shift']());}catch(_0x1a775b){_0x34a097['push'](_0x34a097['shift']());}}}(a63_0x4c3e,0xe73d4));function a63_0x1a78(_0x244880,_0x2315ad){const _0x4c3e9a=a63_0x4c3e();return a63_0x1a78=function(_0x1a78e6,_0x304b90){_0x1a78e6=_0x1a78e6-0x13b;let _0x5d6637=_0x4c3e9a[_0x1a78e6];return _0x5d6637;},a63_0x1a78(_0x244880,_0x2315ad);}function a63_0x4c3e(){const _0x55c636=['MZCim','zobDi','hoOrO','BuildLink','SDK_CLI_BIN_PATH','getAccessibilityModule','oYbkG','testFramework','getBrowserstackConfig','stop:\x20error\x20in\x20closing\x20channel:\x20%s','qoqSb','Error\x20reading\x20accessibility\x20success\x20value:\x20','2680384OrTaEf','loadModules:\x20Loading\x20modules','format','setupCliPath','getSuccess','configureModules','code','isLTSSession','setupAutomationFramework','IpCaZ','vBhDw','uIabx','syncAccessibilityConfig','hEcSY','SDK_CLI_ON_STOP','OCMRY','./modules/observabilityModule.js','Failed\x20to\x20get\x20CLI\x20binary\x20path.\x20CLI\x20setup\x20failed.','MODULE_NAME','Error\x20in\x20setupCliPath:\x20','syncAccessibilityConfig:\x20CLI\x20config\x20not\x20available,\x20skipping\x20sync','rUWpz','SDK_CLI_ON_BOOTSTRAP','debug','isClosed','./cliUtils.js','getChannel','isRunning','SIGKILL','XBAoU','setupTestFramework','aHbvQ','SEUat','zCuGk','./modules/loadTestModule.js','stop:\x20CLI\x20is\x20not\x20running,\x20skipping\x20stop','GmPza','BROWSERSTACK_CLI_ENV','5761244uZnUfH','Starting\x20as\x20child\x20process\x20with\x20session\x20ID:\x20','stop:\x20process\x20exit\x20timeout,\x20forcing\x20kill','process','Unconfiguring\x20modules','Error\x20in\x20start:\x20','toString','BROWSERSTACK_CLI_BIN_SESSION_ID','stopBinSession','pNiWx','turboScale','stop:\x20CLI\x20stop\x20triggered','setConfig:\x20error=','RYBww','initialized','loadCliParams','stack','name','isUndefined','PLAYWRIGHT','buildHashedId','getTestFrameworkDetail','spawning\x20command=\x27','getHashedId','oOksU','./TestInfo.js','init','loadModules','getConfig','BLXdR','includes','WNjHE','test','../../helpers/performance/performance-tester.js','stop:\x20shutting\x20down\x20CLI','kill','Error\x20Trace\x20ID:\x20','unConfigureModules','getInstance','DXjfo','setCliArgs','forEach','bootstrap:\x20failed\x20to\x20bootstrap=','error','getAutomationFramework','O11yHashedID','data','version','NRrBy','./modules/testhubModule.js','isArray','setConfig','startChild:\x20client\x20and\x20channel\x20already\x20exist,\x20stopping\x20here','shutdown','accessibilityOptions','CLIUtils.setupCliPath\x20returned\x20null','isDevelopmentEnv','BROWSERSTACK_CLI_ENABLED','configure','BdKpz','pJOOX','key','SDK_CLI_START','getAutomationFrameworkDetail','isCLIEnabled','logger','automationFramework','getCliBinPath','buildLogger','config','clearAttachments','accessibility','bLsyU','kifcy','parse','env','\x20errors:','./uploadAttachmentsManager.js','isTrue','SDK_CONNECT_BIN_SESSION','qCdrl','MwNSl','JEST','38289IbGYMI','gLyqJ','getClient','REWbc','CUCUMBER','yQVNj','split','setCliArgs:\x20error=','errorsList','./framework/playwrightTestFramework.js','\x20hashed_id=','start','Failed\x20to\x20start\x20CLI\x20process:\x20','isChildConnected','qCWkC','setLTSSessionId','bvAmM','stop','QDNMH','exitCode','njisi','ZZfYa','loadModules:\x20binSessionId=','browserstackConfigPath','Failed\x20to\x20start\x20as\x20child\x20process:\x20','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','CLI\x20process\x20exited\x20with\x20code\x20','./modules/accessibilityModule.js','warn','./modules/playwrightDriverModule.js','getObservability','startChild','Disabling\x20CLI.','HashedID','WdVSa','getCliArgs','CLI\x20binary\x20path\x20resolved\x20to:\x20','cliParams','end','syncAccessibilityConfig:\x20browserstackConfig\x20not\x20set,\x20skipping\x20sync','trim','syncAccessibilityConfig:\x20Updated\x20browserstackConfig.accessibility\x20from\x20CLI\x20response:\x20','CSEgv','ready','resolve','stop:\x20CLI\x20process\x20exited','CRkmt','browserstackConfig','2923040ckVEte','BROWSERSTACK_TURBOSCALE','../utils/constants.js','browserstackCliConfig','pid','getAutomateBuildlink','uDUFo','stringify','BrowserstackCLI','KEY_CUSTOM_TAGS','FMfwm','UCTWW','stop:\x20error\x20in\x20stop\x20session\x20exception=','./grpcClient.js','254aCrXDo','xVAMw','info','Hiphl','./framework/cucumberTestFramework.js','getTestDetails','vDicq','73585161gjqWgk','6oiUlaE','getAccessibility','../../helpers/logger.js','Accessibility\x20initialization\x20failed\x20with\x20','getTesthub','toObject','1325334eKxaIE','14999256uGOkvQ','message','yIdsP','isMainConnected','exports','Setting\x20up\x20CLI\x20binary\x20path...','xQKfw','gyNCr','startBinSession','jrSZb','connected','binSessionId','setCliArgs:\x20cliArgs=','child_process','kFVOE','toLowerCase','../../helpers/performance/constants','Error\x20Code:\x20','getBrowserstackCliConfig','startMain:\x20Starting\x20main\x20process','length','cliArgs','startMain:\x20main-process\x20started','modules','LQCaN','startMain','loading\x20Modules.'];a63_0x4c3e=function(){return _0x55c636;};return a63_0x4c3e();}const {spawn}=require(a63_0x18df69(0x15f)),GrpcClient=require(a63_0x18df69(0x142)),util=require('util'),CLIUtils=require(a63_0x18df69(0x192)),PlaywrightAutomationFramework=require('./framework/playwrightAutomationFramework.js'),PlaywrightTestFramework=require(a63_0x18df69(0x1fb)),CucumberTestFramework=require(a63_0x18df69(0x147)),JestTestFramework=require('./framework/jestTestFramework.js'),{createClassLogger}=require('../../helpers/classLogger.js'),PerformanceTester=require(a63_0x18df69(0x1c0)),{EVENTS:PerformanceEvents}=require(a63_0x18df69(0x162)),AccessibilityModule=require(a63_0x18df69(0x20d)),{CLI_SUPPORTED_FRAMEWORKS,FRAMEWORKS}=require(a63_0x18df69(0x224)),helper=require('../../helpers/helper.js'),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants.js'),buildLogger=require(a63_0x18df69(0x14d))[a63_0x18df69(0x1e3)],LoadTestModule=require(a63_0x18df69(0x19b)),TestInfo=require(a63_0x18df69(0x1b8));class BrowserstackCLI{static #instance=null;static [a63_0x18df69(0x170)]=null;static [a63_0x18df69(0x213)]=null;static [a63_0x18df69(0x1cc)]=null;[a63_0x18df69(0x1a2)]=null;[a63_0x18df69(0x155)]=![];[a63_0x18df69(0x1ff)]=![];[a63_0x18df69(0x15d)]=null;['modules']={};[a63_0x18df69(0x174)]=null;[a63_0x18df69(0x1e1)]=null;['logger']=createClassLogger(a63_0x18df69(0x13d));constructor(){const _0x49ab0e=a63_0x18df69;this[_0x49ab0e(0x1ad)]=![],this['config']={},this[_0x49ab0e(0x167)]={},this[_0x49ab0e(0x221)]={};}static[a63_0x18df69(0x1c5)](){return!BrowserstackCLI.#instance&&(BrowserstackCLI.#instance=new BrowserstackCLI()),BrowserstackCLI.#instance;}async['bootstrap'](){const _0x5d58d2=a63_0x18df69,_0x571690={};_0x571690['OCMRY']=_0x5d58d2(0x212);const _0x3b2700=_0x571690;if(helper['isFalse'](process[_0x5d58d2(0x1ea)]['BROWSERSTACK_CLI_ENABLED'])){this[_0x5d58d2(0x1e0)][_0x5d58d2(0x145)](_0x3b2700[_0x5d58d2(0x188)]);return;}PerformanceTester['start'](PerformanceEvents[_0x5d58d2(0x18f)]);try{const _0x1177f0=process[_0x5d58d2(0x1ea)][_0x5d58d2(0x1a6)]||null;this[_0x5d58d2(0x181)](),this[_0x5d58d2(0x197)]();if(_0x1177f0){await this[_0x5d58d2(0x211)](_0x1177f0),PerformanceTester[_0x5d58d2(0x218)](PerformanceEvents[_0x5d58d2(0x18f)]);return;}await this[_0x5d58d2(0x16b)]();}catch(_0x24babd){this['logger'][_0x5d58d2(0x1ca)](_0x5d58d2(0x1c9)+(_0x24babd[_0x5d58d2(0x1af)]||_0x24babd)),await this[_0x5d58d2(0x203)](),PerformanceTester[_0x5d58d2(0x218)](PerformanceEvents[_0x5d58d2(0x18f)],![],util[_0x5d58d2(0x17b)](_0x24babd));}}async[a63_0x18df69(0x16b)](){const _0x36d322=a63_0x18df69,_0x41cf5e={};_0x41cf5e[_0x36d322(0x1f7)]=_0x36d322(0x165),_0x41cf5e[_0x36d322(0x182)]=_0x36d322(0x168);const _0x49b5b3=_0x41cf5e;this[_0x36d322(0x1e0)][_0x36d322(0x145)](_0x49b5b3[_0x36d322(0x1f7)]),await this[_0x36d322(0x1fd)](),this[_0x36d322(0x1e0)][_0x36d322(0x190)](_0x49b5b3[_0x36d322(0x182)]);const _0x31c411=await GrpcClient[_0x36d322(0x1c5)]()[_0x36d322(0x15a)]();this[_0x36d322(0x155)]=!![],this[_0x36d322(0x1ba)](_0x31c411);}[a63_0x18df69(0x1ba)](_0x595b87){const _0x3e4a76=a63_0x18df69,_0x4ae539={'uDUFo':function(_0x4028b8,_0x1e467a){return _0x4028b8(_0x1e467a);},'VNoPP':_0x3e4a76(0x20f),'jrSZb':function(_0x283a4b,_0x521140){return _0x283a4b(_0x521140);},'ZZfYa':_0x3e4a76(0x1d0),'kZfZC':function(_0x3ee99d,_0x59284e){return _0x3ee99d(_0x59284e);},'fREKe':_0x3e4a76(0x189),'njisi':_0x3e4a76(0x17a),'vDicq':_0x3e4a76(0x210),'gyNCr':_0x3e4a76(0x14c),'oOksU':'getSuccess','uXifY':function(_0x3afe66,_0x2d3522){return _0x3afe66||_0x2d3522;},'CSEgv':function(_0x1db67d,_0x3901c8){return _0x1db67d===_0x3901c8;},'qCWkC':'function','LQCaN':function(_0x555225,_0x581351){return _0x555225&&_0x581351;}},_0x5561d6=_0x4ae539[_0x3e4a76(0x13b)](require,_0x4ae539['VNoPP']),_0x5e1d24=_0x4ae539[_0x3e4a76(0x15b)](require,_0x4ae539[_0x3e4a76(0x207)]),_0x8f3f2b=_0x4ae539['kZfZC'](require,_0x4ae539['fREKe']);this[_0x3e4a76(0x1e0)][_0x3e4a76(0x145)](_0x4ae539[_0x3e4a76(0x206)]),this[_0x3e4a76(0x15d)]=_0x595b87['getBinSessionId'](),this[_0x3e4a76(0x1e0)][_0x3e4a76(0x145)](_0x3e4a76(0x208)+this[_0x3e4a76(0x15d)]),this[_0x3e4a76(0x1d2)](_0x595b87),this[_0x3e4a76(0x185)]();!this[_0x3e4a76(0x1ff)]&&this[_0x3e4a76(0x1c7)](_0x595b87);const _0xa44f0f=_0x4ae539[_0x3e4a76(0x149)],_0x210093=_0x4ae539[_0x3e4a76(0x159)],_0x4c264c=_0x4ae539[_0x3e4a76(0x1b7)],_0x43fac8=_0x595b87[_0xa44f0f]()&&_0x595b87[_0xa44f0f]()[_0x4c264c](),_0x59ab95=_0x595b87[_0x210093]()&&_0x595b87[_0x210093]()[_0x4c264c](),_0x14fd01=process[_0x3e4a76(0x1ea)][_0x3e4a76(0x20b)]&&JSON[_0x3e4a76(0x1e9)](process['env']['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']);_0x4ae539['uXifY'](_0x43fac8,_0x59ab95)&&(this['modules'][_0x5e1d24[_0x3e4a76(0x18b)]]=new _0x5e1d24(_0x595b87[_0x3e4a76(0x14f)](),_0x14fd01));_0x43fac8&&(this[_0x3e4a76(0x169)][_0x8f3f2b[_0x3e4a76(0x18b)]]=new _0x8f3f2b(_0x595b87[_0xa44f0f]()));if(_0x59ab95)this[_0x3e4a76(0x169)][AccessibilityModule[_0x3e4a76(0x18b)]]=new AccessibilityModule(_0x595b87[_0x210093]());else try{const _0x47792b=_0x595b87[_0x210093](),_0x41c65f=_0x47792b&&_0x4ae539[_0x3e4a76(0x21c)](typeof _0x47792b[_0x4c264c],_0x4ae539[_0x3e4a76(0x200)])?!!_0x47792b[_0x4c264c]():![];this[_0x3e4a76(0x1e0)][_0x3e4a76(0x145)]('Accessibility\x20success='+_0x41c65f);if(_0x4ae539[_0x3e4a76(0x16a)](!_0x41c65f,_0x47792b)){const _0xe19bc=_0x47792b[_0x3e4a76(0x150)]?_0x47792b[_0x3e4a76(0x150)]():_0x47792b;_0xe19bc[_0x3e4a76(0x1fa)]&&Array[_0x3e4a76(0x1d1)](_0xe19bc[_0x3e4a76(0x1fa)])&&(this['logger'][_0x3e4a76(0x1ca)](_0x3e4a76(0x14e)+_0xe19bc[_0x3e4a76(0x1fa)][_0x3e4a76(0x166)]+_0x3e4a76(0x1eb)),_0xe19bc[_0x3e4a76(0x1fa)][_0x3e4a76(0x1c8)]((_0x71d641,_0x321c57)=>{const _0xc29f51=_0x3e4a76;this[_0xc29f51(0x1e0)][_0xc29f51(0x1ca)]('Error:\x20['+_0x71d641[_0xc29f51(0x1dc)]+']\x20'+_0x71d641[_0xc29f51(0x153)]);}),_0xe19bc['errorTraceId']&&this['logger'][_0x3e4a76(0x1ca)](_0x3e4a76(0x1c3)+_0xe19bc['errorTraceId']),_0xe19bc[_0x3e4a76(0x17f)]&&this[_0x3e4a76(0x1e0)]['error'](_0x3e4a76(0x163)+_0xe19bc[_0x3e4a76(0x17f)]));}}catch(_0x30294c){this[_0x3e4a76(0x1e0)][_0x3e4a76(0x1ca)](_0x3e4a76(0x178)+_0x30294c);}this[_0x3e4a76(0x169)][_0x5561d6[_0x3e4a76(0x18b)]]=new _0x5561d6(_0x14fd01),this[_0x3e4a76(0x17e)]();}[a63_0x18df69(0x172)](){const _0x3f3e1f=a63_0x18df69;return this[_0x3f3e1f(0x169)][AccessibilityModule['MODULE_NAME']];}async[a63_0x18df69(0x17e)](){const _0x3c1366=a63_0x18df69;for(const _0x16dc25 in this[_0x3c1366(0x169)]){const _0x3f6e0f=this['modules'][_0x16dc25];await _0x3f6e0f[_0x3c1366(0x1d9)](this['binSessionId'],0x0,GrpcClient['getInstance']()['client'],this[_0x3c1366(0x1e4)]);}}async[a63_0x18df69(0x1fd)](){const _0x44edbd=a63_0x18df69,_0x2be8da={'Hiphl':function(_0x2ac4c6,_0x53ba13){return _0x2ac4c6!==_0x53ba13;},'LfXHm':_0x44edbd(0x21d),'BdKpz':function(_0x321e8c){return _0x321e8c();},'REWbc':function(_0x4d5b41,_0x559fcf){return _0x4d5b41(_0x559fcf);},'BLXdR':_0x44edbd(0x1cd),'lDnDb':_0x44edbd(0x1ca),'hEcSY':'close','UCTWW':_0x44edbd(0x18a),'uIabx':'sdk','gLyqJ':function(_0x48cd80,_0x2f2d78,_0x51b058,_0x424212){return _0x48cd80(_0x2f2d78,_0x51b058,_0x424212);},'WNjHE':'failed\x20to\x20start\x20CLI,\x20no\x20PID\x20found'};PerformanceTester[_0x44edbd(0x1fd)](PerformanceEvents[_0x44edbd(0x1dd)]);if(CLIUtils[_0x44edbd(0x1d7)]())return this[_0x44edbd(0x1ae)](CLIUtils['getCLIParamsForDevEnv']()),PerformanceTester['end'](PerformanceEvents[_0x44edbd(0x1dd)]),Promise[_0x44edbd(0x21e)]();if(this[_0x44edbd(0x1a2)]&&this[_0x44edbd(0x1a2)][_0x44edbd(0x15c)])return PerformanceTester[_0x44edbd(0x218)](PerformanceEvents['SDK_CLI_START']),Promise['resolve']();const _0x75346a=await this[_0x44edbd(0x1e2)]();if(!_0x75346a)throw new Error(_0x2be8da[_0x44edbd(0x140)]);const _0x2c5c26=[_0x75346a,_0x2be8da[_0x44edbd(0x184)]];this[_0x44edbd(0x1e0)][_0x44edbd(0x145)](_0x44edbd(0x1b5)+_0x2c5c26+'\x27');const _0x4d8f59={};_0x4d8f59[_0x44edbd(0x1ea)]=process[_0x44edbd(0x1ea)],this[_0x44edbd(0x1a2)]=_0x2be8da[_0x44edbd(0x1f3)](spawn,_0x2c5c26[0x0],_0x2c5c26['slice'](0x1),_0x4d8f59);if(!this[_0x44edbd(0x1a2)][_0x44edbd(0x226)])throw new Error(_0x2be8da[_0x44edbd(0x1be)]);return new Promise((_0x46939f,_0x2d990a)=>{const _0x491956=_0x44edbd,_0xd16aa5={'FMfwm':function(_0x2b504e,_0x5200e0){const _0x5c2941=a63_0x1a78;return _0x2be8da[_0x5c2941(0x146)](_0x2b504e,_0x5200e0);},'bvAmM':function(_0x2ada77,_0x192e69){const _0x5a04ac=a63_0x1a78;return _0x2be8da[_0x5a04ac(0x1f5)](_0x2ada77,_0x192e69);}},_0x15131b={};this[_0x491956(0x1a2)]['stdout']['on'](_0x2be8da[_0x491956(0x1bc)],_0x54c41f=>{const _0x51bb34=_0x491956,_0xfa7d24=_0x54c41f[_0x51bb34(0x1a5)]()[_0x51bb34(0x21a)]()[_0x51bb34(0x1f8)]('\x0a');for(const _0x4d39ad of _0xfa7d24){if(/^(id|listen|port)=.*$/[_0x51bb34(0x1bf)](_0x4d39ad)){const [_0x320fde,_0x280652]=_0x4d39ad[_0x51bb34(0x1f8)]('=',0x2);_0x2be8da['Hiphl'](_0x280652,undefined)&&(_0x15131b[_0x320fde]=_0x280652);}if(_0x4d39ad[_0x51bb34(0x161)]()[_0x51bb34(0x1bd)](_0x2be8da['LfXHm'])){this[_0x51bb34(0x1ae)](_0x15131b),PerformanceTester[_0x51bb34(0x218)](PerformanceEvents[_0x51bb34(0x1dd)]),_0x2be8da[_0x51bb34(0x1da)](_0x46939f);return;}}}),this['process']['stderr']['on'](_0x2be8da[_0x491956(0x1bc)],_0x493fa7=>{const _0x462e4e=_0x491956;this[_0x462e4e(0x1e0)][_0x462e4e(0x1ca)]('CLI\x20stderr:\x20'+_0x493fa7[_0x462e4e(0x1a5)]()[_0x462e4e(0x21a)]());}),this[_0x491956(0x1a2)]['on'](_0x2be8da['lDnDb'],_0x342a9f=>{const _0x2a6a9a=_0x491956;_0x15131b[_0x2a6a9a(0x1ca)]=_0x2a6a9a(0x1a4)+_0x342a9f[_0x2a6a9a(0x153)],PerformanceTester[_0x2a6a9a(0x218)](PerformanceEvents[_0x2a6a9a(0x1dd)],![],_0x342a9f),_0x2be8da['REWbc'](_0x2d990a,new Error(_0x2a6a9a(0x1fe)+_0x342a9f[_0x2a6a9a(0x153)]));}),this[_0x491956(0x1a2)]['on'](_0x2be8da[_0x491956(0x186)],_0x3c9ce3=>{const _0x4a57bb=_0x491956;_0xd16aa5[_0x4a57bb(0x13f)](_0x3c9ce3,0x0)&&_0xd16aa5[_0x4a57bb(0x202)](_0x2d990a,new Error(_0x4a57bb(0x20c)+_0x3c9ce3));});});}async[a63_0x18df69(0x203)](_0x37ae51=null){const _0x504fdf=a63_0x18df69,_0x4cc843={'RYBww':_0x504fdf(0x21f),'qCdrl':function(_0x30e638){return _0x30e638();},'XBAoU':_0x504fdf(0x1a1),'pNiWx':_0x504fdf(0x195),'kFVOE':'exit','guaOL':function(_0x2961ac,_0x3f4758,_0x369478){return _0x2961ac(_0x3f4758,_0x369478);},'spoOj':_0x504fdf(0x19c),'FfGGr':_0x504fdf(0x1aa),'xQKfw':function(_0x2e584f,_0x355775){return _0x2e584f(_0x355775);},'hoOrO':_0x504fdf(0x1ec),'bLsyU':'stop:\x20channel\x20closed','CRkmt':_0x504fdf(0x176),'zobDi':_0x504fdf(0x1c1)};if(!this[_0x504fdf(0x194)]()){this[_0x504fdf(0x1e0)][_0x504fdf(0x145)](_0x4cc843['spoOj']);return;}PerformanceTester[_0x504fdf(0x1fd)](PerformanceEvents[_0x504fdf(0x187)]),this['logger'][_0x504fdf(0x145)](_0x4cc843['FfGGr']);try{if(this[_0x504fdf(0x155)]){const _0x5a411e=_0x4cc843[_0x504fdf(0x158)](require,_0x4cc843[_0x504fdf(0x16f)]),_0x32a153=this['modules']['TestHubModule']?.['testhubConfig']?.[_0x504fdf(0x150)]()?.[_0x504fdf(0x1b3)],_0x241e9a=TestInfo[_0x504fdf(0x148)](_0x32a153),_0x1cc965=_0x241e9a[TestFrameworkConstants[_0x504fdf(0x13e)]]||{},_0x5e6fdd=await GrpcClient[_0x504fdf(0x1c5)]()[_0x504fdf(0x1a7)](JSON[_0x504fdf(0x13c)](_0x1cc965),_0x37ae51);_0x5e6fdd&&_0x5e6fdd[_0x504fdf(0x17d)]()&&_0x5e6fdd[_0x504fdf(0x227)]()&&(BrowserstackCLI[_0x504fdf(0x170)]=_0x5e6fdd[_0x504fdf(0x227)](),BrowserstackCLI[_0x504fdf(0x213)]=_0x5e6fdd[_0x504fdf(0x1b6)]()),await _0x5a411e[_0x504fdf(0x1e5)](),TestInfo[_0x504fdf(0x1d4)](),buildLogger[_0x504fdf(0x145)]('stop:\x20stopBinSession\x20build_link='+BrowserstackCLI[_0x504fdf(0x170)]+_0x504fdf(0x1fc)+BrowserstackCLI[_0x504fdf(0x213)]+'\x20o11y_uuid='+BrowserstackCLI[_0x504fdf(0x1cc)]);}await this[_0x504fdf(0x1c4)]();const _0x1bf334=GrpcClient[_0x504fdf(0x1c5)]()[_0x504fdf(0x193)]();if(_0x1bf334){try{_0x1bf334['close'](),this[_0x504fdf(0x1e0)][_0x504fdf(0x145)](_0x4cc843[_0x504fdf(0x1e7)]);}catch(_0x1a178a){this['logger'][_0x504fdf(0x1ca)](util[_0x504fdf(0x17b)](_0x4cc843[_0x504fdf(0x220)],_0x1a178a));}await new Promise(_0x200b87=>setTimeout(_0x200b87,0x1388));}this[_0x504fdf(0x1a2)]&&this[_0x504fdf(0x1a2)][_0x504fdf(0x226)]&&(this[_0x504fdf(0x1e0)]['info'](_0x4cc843[_0x504fdf(0x16e)]),this['process'][_0x504fdf(0x1c2)](),await new Promise(_0x158667=>{const _0x5b7f05=_0x504fdf,_0x1b9b98={'rUWpz':_0x4cc843[_0x5b7f05(0x1ac)],'yIdsP':function(_0x48b85e){const _0x237444=_0x5b7f05;return _0x4cc843[_0x237444(0x1ef)](_0x48b85e);},'qoqSb':_0x4cc843[_0x5b7f05(0x196)],'WdVSa':_0x4cc843[_0x5b7f05(0x1a8)]};let _0x2dc1fa=![];this['process']['on'](_0x4cc843[_0x5b7f05(0x160)],()=>{const _0x1697d1=_0x5b7f05;this[_0x1697d1(0x1e0)][_0x1697d1(0x145)](_0x1b9b98[_0x1697d1(0x18e)]),_0x2dc1fa=!![],PerformanceTester['end'](PerformanceEvents[_0x1697d1(0x187)]),_0x1b9b98[_0x1697d1(0x154)](_0x158667);}),_0x4cc843['guaOL'](setTimeout,()=>{const _0x4c5bf0=_0x5b7f05;!_0x2dc1fa&&(this['logger'][_0x4c5bf0(0x20e)](_0x1b9b98[_0x4c5bf0(0x177)]),this[_0x4c5bf0(0x1a2)][_0x4c5bf0(0x1c2)](_0x1b9b98[_0x4c5bf0(0x214)]),PerformanceTester[_0x4c5bf0(0x218)](PerformanceEvents[_0x4c5bf0(0x187)]),_0x1b9b98[_0x4c5bf0(0x154)](_0x158667));},0xbb8);}));}catch(_0x413df6){PerformanceTester[_0x504fdf(0x218)](PerformanceEvents[_0x504fdf(0x187)],![],util[_0x504fdf(0x17b)](_0x413df6)),this['logger']['error'](_0x504fdf(0x141)+(_0x413df6[_0x504fdf(0x1af)]||_0x413df6));}_0x37ae51?this[_0x504fdf(0x1a2)][_0x504fdf(0x205)]=0x1:this[_0x504fdf(0x1a2)][_0x504fdf(0x205)]=0x0,this[_0x504fdf(0x1ff)]=![],this[_0x504fdf(0x155)]=![],process[_0x504fdf(0x1ea)][_0x504fdf(0x19e)]=null;}async[a63_0x18df69(0x1c4)](){const _0xd31365=a63_0x18df69,_0x35ad79={};_0x35ad79[_0xd31365(0x1cf)]=_0xd31365(0x1a3);const _0x5e19a1=_0x35ad79;this[_0xd31365(0x1e0)][_0xd31365(0x145)](_0x5e19a1[_0xd31365(0x1cf)]);}['loadCliParams'](_0x1e4ea1){const _0x55b051=a63_0x18df69;this[_0x55b051(0x1e0)]['info']('CLI\x20params\x20loaded:\x20'+JSON[_0x55b051(0x13c)](_0x1e4ea1)),this[_0x55b051(0x217)]=_0x1e4ea1,GrpcClient['getInstance']()[_0x55b051(0x1b9)](_0x1e4ea1);}async[a63_0x18df69(0x211)](_0x24113e){const _0x594c7e=a63_0x18df69,_0xb3f2c4={};_0xb3f2c4[_0x594c7e(0x1e8)]=_0x594c7e(0x1d3);const _0x36c5dd=_0xb3f2c4;PerformanceTester['start'](PerformanceEvents[_0x594c7e(0x1ee)]);try{this[_0x594c7e(0x1e0)]['info'](_0x594c7e(0x1a0)+_0x24113e);const _0x4578e3=GrpcClient[_0x594c7e(0x1c5)]();if(_0x4578e3&&_0x4578e3[_0x594c7e(0x1f4)]()&&_0x4578e3[_0x594c7e(0x193)]()){this[_0x594c7e(0x1e0)]['info'](_0x36c5dd['kifcy']);return;}GrpcClient[_0x594c7e(0x1c5)]()['connect']();const _0x49f4be=await GrpcClient['getInstance']()['connectBinSession']();this[_0x594c7e(0x1ff)]=!![],this[_0x594c7e(0x1ba)](_0x49f4be),PerformanceTester[_0x594c7e(0x218)](PerformanceEvents['SDK_CONNECT_BIN_SESSION']);}catch(_0x2bdd09){PerformanceTester[_0x594c7e(0x218)](PerformanceEvents['SDK_CONNECT_BIN_SESSION'],![],util[_0x594c7e(0x17b)](_0x2bdd09)),this[_0x594c7e(0x1e0)][_0x594c7e(0x1ca)](_0x594c7e(0x20a)+util[_0x594c7e(0x17b)](_0x2bdd09));}}static[a63_0x18df69(0x1df)](){const _0x45d9a7=a63_0x18df69;try{return BrowserstackCLI[_0x45d9a7(0x1c5)]()['isRunning']();}catch(_0x3445bb){return![];}}['isRunning'](){const _0x33efbd=a63_0x18df69,_0x4a83d4={};_0x4a83d4[_0x33efbd(0x198)]=function(_0x2d9c0a,_0x2fa186){return _0x2d9c0a!==_0x2fa186;},_0x4a83d4['zCuGk']=function(_0xb23787,_0x4bed6b){return _0xb23787===_0x4bed6b;},_0x4a83d4[_0x33efbd(0x1f0)]=function(_0xec832d,_0x2e1c83){return _0xec832d!==_0x2e1c83;};const _0x28f2a1=_0x4a83d4;return CLIUtils['isDevelopmentEnv']()||this[_0x33efbd(0x155)]&&_0x28f2a1[_0x33efbd(0x198)](this[_0x33efbd(0x1a2)],null)&&_0x28f2a1[_0x33efbd(0x19a)](this['process'][_0x33efbd(0x205)],null)&&_0x28f2a1[_0x33efbd(0x198)](GrpcClient[_0x33efbd(0x1c5)]()[_0x33efbd(0x1f4)](),null)&&!GrpcClient[_0x33efbd(0x1c5)]()[_0x33efbd(0x193)]()[_0x33efbd(0x191)]||this[_0x33efbd(0x1ff)]&&_0x28f2a1[_0x33efbd(0x1f0)](GrpcClient[_0x33efbd(0x1c5)]()[_0x33efbd(0x193)](),null)&&!GrpcClient[_0x33efbd(0x1c5)]()[_0x33efbd(0x193)]()[_0x33efbd(0x191)];}[a63_0x18df69(0x175)](){const _0x5e339e=a63_0x18df69;return this[_0x5e339e(0x221)];}['setBrowserstackConfig'](_0x887c57,_0x100c69,_0x50dee1=null){const _0x21847d=a63_0x18df69,_0x32c247={};_0x32c247[_0x21847d(0x1db)]=function(_0x7b74b1,_0x4aa784){return _0x7b74b1||_0x4aa784;};const _0x41f482=_0x32c247;this[_0x21847d(0x221)]=_0x41f482[_0x21847d(0x1db)](_0x887c57,{}),this[_0x21847d(0x209)]=_0x100c69,this['browserstackCliConfig']=_0x50dee1,process['env'][_0x21847d(0x223)]=this[_0x21847d(0x221)]?.[_0x21847d(0x1a9)]||![];const _0x582e43=CLIUtils['getTestFrameworkDetail'](),_0x2856bc=CLIUtils[_0x21847d(0x1de)]();LoadTestModule[_0x21847d(0x180)](this[_0x21847d(0x221)])&&LoadTestModule[_0x21847d(0x201)](this[_0x21847d(0x221)]||{}),helper[_0x21847d(0x1ed)](process['env'][_0x21847d(0x223)])||!(CLI_SUPPORTED_FRAMEWORKS['includes'](_0x582e43['name'][_0x21847d(0x161)]())&&CLI_SUPPORTED_FRAMEWORKS['includes'](_0x2856bc[_0x21847d(0x1b0)][_0x21847d(0x161)]()))?process[_0x21847d(0x1ea)]['BROWSERSTACK_CLI_ENABLED']=![]:process['env']['BROWSERSTACK_CLI_ENABLED']=!![];}async[a63_0x18df69(0x1e2)](){const _0x17f391=a63_0x18df69,_0x12160b={};_0x12160b[_0x17f391(0x173)]=_0x17f391(0x157),_0x12160b[_0x17f391(0x204)]=_0x17f391(0x1d6);const _0x2786f1=_0x12160b;if(!this[_0x17f391(0x171)])try{this['logger'][_0x17f391(0x190)](_0x2786f1[_0x17f391(0x173)]),this['SDK_CLI_BIN_PATH']=await CLIUtils[_0x17f391(0x17c)](this[_0x17f391(0x221)]),!this['SDK_CLI_BIN_PATH']?this['logger'][_0x17f391(0x1ca)](_0x2786f1['QDNMH']):this[_0x17f391(0x1e0)][_0x17f391(0x190)](_0x17f391(0x216)+this[_0x17f391(0x171)]);}catch(_0xc45a9c){this[_0x17f391(0x1e0)][_0x17f391(0x1ca)](_0x17f391(0x18c)+_0xc45a9c[_0x17f391(0x153)]),this[_0x17f391(0x171)]=null;}return this[_0x17f391(0x171)];}['isCliEnabled'](){const _0x1189eb=a63_0x18df69;return helper[_0x1189eb(0x1ed)](process[_0x1189eb(0x1ea)][_0x1189eb(0x1d8)]);}[a63_0x18df69(0x1bb)](){return this['config'];}[a63_0x18df69(0x1d2)](_0x2167f7){const _0x547314=a63_0x18df69,_0x41e569={};_0x41e569['vBhDw']=_0x547314(0x16c);const _0x58faaf=_0x41e569;try{this['config']=JSON['parse'](_0x2167f7[_0x547314(0x1bb)]()),this[_0x547314(0x1e0)][_0x547314(0x145)](_0x58faaf[_0x547314(0x183)]);}catch(_0x9cc3e7){this[_0x547314(0x1e0)][_0x547314(0x1ca)](_0x547314(0x1ab)+util[_0x547314(0x17b)](_0x9cc3e7));}}[a63_0x18df69(0x185)](){const _0xe8274=a63_0x18df69,_0x356d09={};_0x356d09['GjoOz']=_0xe8274(0x219),_0x356d09[_0xe8274(0x1c6)]=_0xe8274(0x18d),_0x356d09[_0xe8274(0x144)]='syncAccessibilityConfig:\x20Updated\x20browserstackConfig.accessibilityOptions\x20from\x20CLI\x20response';const _0x4cce56=_0x356d09;try{if(!this[_0xe8274(0x221)]){this[_0xe8274(0x1e0)]['debug'](_0x4cce56['GjoOz']);return;}const _0x270468=this[_0xe8274(0x1bb)]();if(!_0x270468){this[_0xe8274(0x1e0)]['debug'](_0x4cce56['DXjfo']);return;}!helper[_0xe8274(0x1b1)](_0x270468[_0xe8274(0x1e6)])&&(this['browserstackConfig']['accessibility']=_0x270468['accessibility'],this[_0xe8274(0x1e0)][_0xe8274(0x190)](_0xe8274(0x21b)+_0x270468[_0xe8274(0x1e6)])),!helper[_0xe8274(0x1b1)](_0x270468[_0xe8274(0x1d5)])&&(this[_0xe8274(0x221)][_0xe8274(0x1d5)]=_0x270468[_0xe8274(0x1d5)],this[_0xe8274(0x1e0)][_0xe8274(0x190)](_0x4cce56[_0xe8274(0x144)]));}catch(_0x32b025){this[_0xe8274(0x1e0)]['error']('syncAccessibilityConfig:\x20error='+util[_0xe8274(0x17b)](_0x32b025));}}['setCliArgs'](_0x313461){const _0x3fd8f9=a63_0x18df69;try{this[_0x3fd8f9(0x167)]=_0x313461[_0x3fd8f9(0x215)]()[_0x3fd8f9(0x1f8)](','),this[_0x3fd8f9(0x1e0)][_0x3fd8f9(0x145)](_0x3fd8f9(0x15e)+JSON[_0x3fd8f9(0x13c)](this[_0x3fd8f9(0x167)]));}catch(_0x311cba){this[_0x3fd8f9(0x1e0)][_0x3fd8f9(0x1ca)](_0x3fd8f9(0x1f9)+util['format'](_0x311cba));}}[a63_0x18df69(0x215)](){return this['cliArgs'];}[a63_0x18df69(0x197)](){const _0x409d29=a63_0x18df69,_0x389bf5={};_0x389bf5[_0x409d29(0x199)]=function(_0x3d5124,_0xa29c45){return _0x3d5124===_0xa29c45;},_0x389bf5[_0x409d29(0x16d)]=function(_0x578867,_0x17d426){return _0x578867===_0x17d426;};const _0x311cb2=_0x389bf5,_0x3d8294=CLIUtils[_0x409d29(0x1b4)]();if(_0x311cb2[_0x409d29(0x199)](_0x3d8294[_0x409d29(0x1b0)][_0x409d29(0x161)](),FRAMEWORKS[_0x409d29(0x1b2)][_0x409d29(0x161)]()))this[_0x409d29(0x174)]=new PlaywrightTestFramework([_0x3d8294[_0x409d29(0x1b0)]],_0x3d8294[_0x409d29(0x1ce)]);else{if(_0x311cb2['SEUat'](_0x3d8294[_0x409d29(0x1b0)]['toLowerCase'](),FRAMEWORKS[_0x409d29(0x1f6)]['toLowerCase']()))this[_0x409d29(0x174)]=new CucumberTestFramework([_0x3d8294['name']],_0x3d8294['version']);else _0x311cb2[_0x409d29(0x16d)](_0x3d8294[_0x409d29(0x1b0)]['toLowerCase'](),FRAMEWORKS[_0x409d29(0x1f1)]['toLowerCase']())&&(this[_0x409d29(0x174)]=new JestTestFramework([_0x3d8294[_0x409d29(0x1b0)]],_0x3d8294[_0x409d29(0x1ce)]));}}['setupAutomationFramework'](){const _0x2dc506=a63_0x18df69,_0x558374={};_0x558374[_0x2dc506(0x19d)]=function(_0x37f9ed,_0x20b72a){return _0x37f9ed===_0x20b72a;};const _0x384bec=_0x558374,_0x37333a=CLIUtils['getAutomationFrameworkDetail']();_0x384bec[_0x2dc506(0x19d)](_0x37333a[_0x2dc506(0x1b0)][_0x2dc506(0x161)](),FRAMEWORKS[_0x2dc506(0x1b2)]['toLowerCase']())&&(this[_0x2dc506(0x1e1)]=new PlaywrightAutomationFramework(_0x37333a[_0x2dc506(0x1b0)],_0x37333a['version']));}['getTestFramework'](){return this['testFramework'];}[a63_0x18df69(0x1cb)](){const _0x16ddae=a63_0x18df69;return this[_0x16ddae(0x1e1)];}[a63_0x18df69(0x164)](){const _0x35ea65=a63_0x18df69;return this[_0x35ea65(0x225)];}['getBrowserstackConfigPath'](){const _0x719b2b=a63_0x18df69;return this[_0x719b2b(0x209)];}}module[a63_0x18df69(0x156)]=BrowserstackCLI;
@@ -1 +1 @@
1
- const a64_0x5eb13a=a64_0xaf48;(function(_0x2a1777,_0x2dfc21){const _0x473fe0=a64_0xaf48,_0x532ef2=_0x2a1777();while(!![]){try{const _0xae9244=parseInt(_0x473fe0(0x157))/0x1+parseInt(_0x473fe0(0x1e6))/0x2*(parseInt(_0x473fe0(0x195))/0x3)+-parseInt(_0x473fe0(0x187))/0x4*(-parseInt(_0x473fe0(0x1f6))/0x5)+parseInt(_0x473fe0(0x20e))/0x6*(parseInt(_0x473fe0(0x1db))/0x7)+parseInt(_0x473fe0(0x1eb))/0x8+parseInt(_0x473fe0(0x205))/0x9+parseInt(_0x473fe0(0x148))/0xa*(-parseInt(_0x473fe0(0x170))/0xb);if(_0xae9244===_0x2dfc21)break;else _0x532ef2['push'](_0x532ef2['shift']());}catch(_0xa8981f){_0x532ef2['push'](_0x532ef2['shift']());}}}(a64_0x4fbc,0x8f87f));function a64_0xaf48(_0x342b2e,_0x6b1059){const _0x4fbc0d=a64_0x4fbc();return a64_0xaf48=function(_0xaf48b3,_0x1f513b){_0xaf48b3=_0xaf48b3-0x144;let _0x2d4569=_0x4fbc0d[_0xaf48b3];return _0x2d4569;},a64_0xaf48(_0x342b2e,_0x6b1059);}function a64_0x4fbc(){const _0x314a60=['qrHNL','dJBWM','error','debug','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','svtZZ','rDddM','Setting\x20required\x20permissions\x20to\x20','SHELL_EXECUTE_ERROR','cIsKv','includes','exports','once','openReadStream','.browserstack','bEUTB','MgTNu','\x20version','isDevelopmentEnv','chmod','ctsta','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','lazyEntries','SDK_CLI_CHECK_UPDATE','RWbqN','getWritableDir','testFrameworkDetail','development','aOFOO','sGNwO','Failed\x20to\x20delete\x20zip\x20file:\x20','open','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','filter','fileName','./instances/testFrameworkInstance.js','Binary\x20file\x20became\x20busy\x20during\x20write,\x20continuing\x20with\x20existing\x20binary:\x20','Folder\x20does\x20not\x20exist:\x20','ivymm','xRUXE','../utils/apiUtilityMethods.js','BwKQX','indUM','../../helpers/performance/performance-tester.js','reduce','getCurrentInstanceName','xsxzf','yGoun','cli_version','mergeObject','isArray','pipe','BROWSERSTACK_FILES_DIR','trim','kSWed','path','existsSync','Resolved\x20binary\x20path:\x20','platform','UDOCd','code','Folder\x20','YgQCZ','mHHxJ','frtth','mIucj','concat','119QqlvUk','data','JKjON','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','downloadLatestBinary','oDkfq','WVYIL','url','basename','KIsjE','getCliDir','99278tvKTmk','cNjKq','bbURN','gVWtv','tFZXV','3693848ceODfi','PpbLQ','timeout','close','util','createWriteStream','pid','hTNgU','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','QzQIp','fufXI','2768400YWjozK','PNcGl','checkAndUpdateCli','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','TdPDs','object','version','iWQCd','matchHookRegex','getHookRegistryKey','HOOK_REGEX','get','testContextOptions','warn','binary-','2610279ZfEUtk','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','start','automationFrameworkDetail','downloadFileStream','../../helpers/utilities','isBinaryBusy','Resolving\x20with\x20stdout:\x20\x22','ZfxpW','183894SBUIpT','getExistingCliPath','../../helpers/helper','getSdkLanguage','BROWSERSTACK_CLI_ENV','rkpHl','PayyT','ISELo','4100sQZTxG','SDK_CLI_BIN_PATH','Development\x20Cli\x20Path:\x20','tUeKz','getTestFrameworkDetail','McrpL','stringify','downloaded_file.zip','BfVWZ','split','child_process','QnXwb','setFrameworkDetail',',\x20automationFramework=','cLmLC','764547kcSHQx','../../helpers/test-observability/utils.js','getCLIParamsForDevEnv','kmCzF','4|2|1|3|0','sFYCE','map','../../helpers/classLogger.js','../../helpers/performance/constants','message','parse','HjYjC','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','format','startsWith','rymqz','Error\x20while\x20reading\x20CLI\x20path:\x20','ferxc','mtime','cwd','jbpDD','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','jWjnf','hwLug','end','79046xmeoLh','wPpxU','PfxoL','./framework/constants/testFrameworkConstants.js','closeSync','eDiHM','Binary\x20file\x20is\x20currently\x20in\x20use,\x20skipping\x20download\x20and\x20continuing\x20with\x20existing\x20binary:\x20','BROWSERSTACK_BINARY_URL','env','arch','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','SDK_CLI_DOWNLOAD','unlink','vlCBs','IAeZl','join','BTGah','entries','info','runShellCommand','test','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','getSdkVersion','4WutyiN','openSync','shouldSkipSessionName','readdirSync','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','RLfAq','statSync','jFyHD','Downloading\x20SDK\x20binary\x20from:\x20','CLIUtils','length','skipSessionStatus','follow-redirects','NXqxx','57WhvYuz','response\x20','Qushw'];a64_0x4fbc=function(){return _0x314a60;};return a64_0x4fbc();}const fs=require('fs'),os=require('os'),url=require('url'),path=require(a64_0x5eb13a(0x1cf)),{exec}=require(a64_0x5eb13a(0x152)),{https}=require(a64_0x5eb13a(0x193)),yauzl=require('yauzl'),util=require(a64_0x5eb13a(0x1ef)),{getFrameworkVersion}=require(a64_0x5eb13a(0x158)),{threadId}=require('worker_threads'),PerformanceTester=require(a64_0x5eb13a(0x1c3)),{EVENTS:PerformanceEvents}=require(a64_0x5eb13a(0x15f)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a64_0x5eb13a(0x20a)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a64_0x5eb13a(0x210)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require('../utils/constants'),{createClassLogger}=require(a64_0x5eb13a(0x15e)),TestFrameworkInstance=require(a64_0x5eb13a(0x1bb)),HookState=require('./state/hookState.js'),TestFrameworkState=require('./state/testFrameworkState.js'),AutomationFrameworkState=require('./state/automationFrameworkState.js'),TestFrameworkConstants=require(a64_0x5eb13a(0x173)),logger=createClassLogger(a64_0x5eb13a(0x190)),{getBStackAPIUrl}=require(a64_0x5eb13a(0x1c0));class CLIUtils{['automationFrameworkDetail']={};[a64_0x5eb13a(0x1b2)]={};static[a64_0x5eb13a(0x1aa)](){const _0xcf9707=a64_0x5eb13a,_0x3d7ccd={};_0x3d7ccd[_0xcf9707(0x1b5)]=function(_0x583f0f,_0x1ba59b){return _0x583f0f===_0x1ba59b;},_0x3d7ccd[_0xcf9707(0x1bf)]=_0xcf9707(0x1b3);const _0x21b65b=_0x3d7ccd;return _0x21b65b[_0xcf9707(0x1b5)](process[_0xcf9707(0x178)]['BROWSERSTACK_CLI_ENV'],_0x21b65b[_0xcf9707(0x1bf)]);}static[a64_0x5eb13a(0x159)](){const _0x46f318=a64_0x5eb13a,_0x13ff30={};return _0x13ff30['id']=process[_0x46f318(0x178)][_0x46f318(0x144)],_0x13ff30['listen']='unix:/tmp/sdk-platform-'+process[_0x46f318(0x178)][_0x46f318(0x144)]+'.sock',_0x13ff30;}static[a64_0x5eb13a(0x186)](){const _0x23966f=a64_0x5eb13a,_0x54e34d={'PNcGl':function(_0x204770,_0x8175e7){return _0x204770(_0x8175e7);},'yGoun':'../../../package.json'};return _0x54e34d[_0x23966f(0x1f7)](require,_0x54e34d[_0x23966f(0x1c7)])[_0x23966f(0x1fc)];}static[a64_0x5eb13a(0x211)](){const _0x2b1020=a64_0x5eb13a,_0x552b02={};_0x552b02[_0x2b1020(0x1e4)]='node';const _0x4b9e39=_0x552b02;return _0x4b9e39[_0x2b1020(0x1e4)];}static async['setupCliPath'](_0x327e70){const _0x4b01be=a64_0x5eb13a,_0x44986e={'ctsta':'Configuring\x20Cli\x20path.','kSWed':function(_0x344f5d,_0x2b2b9c){return _0x344f5d(_0x2b2b9c);},'UDOCd':_0x4b01be(0x1f9)};logger['debug'](_0x44986e[_0x4b01be(0x1ac)]);const _0x106f95=process[_0x4b01be(0x178)][_0x4b01be(0x149)];if(!_0x44986e['kSWed'](isNullOrEmpty,_0x106f95))return logger[_0x4b01be(0x19b)](_0x4b01be(0x14a)+_0x106f95),_0x106f95;try{const _0x430b65=this['getCliDir']();if(_0x44986e[_0x4b01be(0x1ce)](isNullOrEmpty,_0x430b65))throw new Error(_0x44986e[_0x4b01be(0x1d3)]);const _0x44b4c6=this['getExistingCliPath'](_0x430b65),_0x1c0ed8=await this[_0x4b01be(0x1f8)](_0x44b4c6,_0x430b65,_0x327e70);return logger['debug'](_0x4b01be(0x1d1)+_0x1c0ed8),_0x1c0ed8;}catch(_0xa44038){logger[_0x4b01be(0x19b)]('Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20'+util[_0x4b01be(0x164)](_0xa44038));}return null;}static async['checkAndUpdateCli'](_0xd13e54,_0x1aac22,_0x4ead29){const _0x447866=a64_0x5eb13a,_0x2b364f={'dJBWM':function(_0x603d32){return _0x603d32();},'BfVWZ':function(_0x97bea7,_0x2304f5){return _0x97bea7(_0x2304f5);},'RWbqN':function(_0x5130ad,_0x3986ac,_0x4d3d6d){return _0x5130ad(_0x3986ac,_0x4d3d6d);},'rDddM':_0x447866(0x1dc),'wPpxU':'url','QzQIp':function(_0xc5f98,_0x376fbb){return _0xc5f98(_0x376fbb);},'indUM':function(_0x2816de,_0x2c9566,_0x1f9c97){return _0x2816de(_0x2c9566,_0x1f9c97);}};PerformanceTester[_0x447866(0x207)](PerformanceEvents[_0x447866(0x1af)]),logger[_0x447866(0x182)]('Current\x20CLI\x20Path\x20Found:\x20'+_0xd13e54);const _0x43482a=_0x2b364f[_0x447866(0x199)](getHostInfo),_0x120f03={'sdk_version':CLIUtils[_0x447866(0x186)](),'os':_0x43482a[_0x447866(0x1d2)],'os_arch':_0x43482a[_0x447866(0x179)],'cli_version':'0','sdk_language':this[_0x447866(0x211)]()};!_0x2b364f[_0x447866(0x150)](isNullOrEmpty,_0xd13e54)&&(_0x120f03[_0x447866(0x1c8)]=await this[_0x447866(0x183)](_0xd13e54+_0x447866(0x1a9)));const _0x8b4d99=await this['requestToUpdateCLI'](_0x120f03,_0x4ead29);process[_0x447866(0x178)][_0x447866(0x177)]&&(logger['info'](_0x447866(0x1b8)+process[_0x447866(0x178)][_0x447866(0x177)]),_0x8b4d99[_0x447866(0x1dc)][_0x447866(0x1e2)]=process[_0x447866(0x178)][_0x447866(0x177)]);if(_0x2b364f[_0x447866(0x1b0)](nestedKeyValue,_0x8b4d99,[_0x2b364f[_0x447866(0x19e)],_0x2b364f[_0x447866(0x171)]])){logger[_0x447866(0x19b)](_0x447866(0x1ad)+_0x120f03[_0x447866(0x1c8)]);if(!_0x2b364f[_0x447866(0x1f4)](isNullOrEmpty,_0xd13e54)&&this[_0x447866(0x20b)](_0xd13e54))return logger[_0x447866(0x203)](_0x447866(0x19c)+_0xd13e54),PerformanceTester['end'](PerformanceEvents[_0x447866(0x1af)]),_0xd13e54;const _0x21a835=await this[_0x447866(0x1df)](_0x2b364f[_0x447866(0x1c2)](nestedKeyValue,_0x8b4d99,[_0x2b364f[_0x447866(0x19e)],_0x2b364f[_0x447866(0x171)]]),_0x1aac22);return PerformanceTester[_0x447866(0x16f)](PerformanceEvents[_0x447866(0x1af)]),_0x21a835;}return PerformanceTester[_0x447866(0x16f)](PerformanceEvents[_0x447866(0x1af)]),_0xd13e54;}static[a64_0x5eb13a(0x1e5)](){const _0x156185=a64_0x5eb13a,_0x29d319={'PpbLQ':function(_0x52585d,_0x455159){return _0x52585d(_0x455159);},'IAeZl':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','hBkEt':'cli'},_0x2baafd=this[_0x156185(0x1b1)]();try{if(_0x29d319[_0x156185(0x1ec)](isNullOrEmpty,_0x2baafd))throw new Error(_0x29d319[_0x156185(0x17e)]);const _0x35740c=path[_0x156185(0x17f)](_0x2baafd,_0x29d319['hBkEt']);return!fs[_0x156185(0x1d0)](_0x35740c)&&_0x29d319[_0x156185(0x1ec)](createDir,_0x35740c),_0x35740c;}catch(_0x2c3819){logger[_0x156185(0x19b)]('Error\x20in\x20getting\x20writable\x20directory,\x20writableDir='+util[_0x156185(0x164)](_0x2c3819));}}static[a64_0x5eb13a(0x1b1)](){const _0x2b5aaa=a64_0x5eb13a,_0x29eb9f={'cLmLC':_0x2b5aaa(0x1a6),'fufXI':function(_0x5248e5,_0x33f8fd){return _0x5248e5(_0x33f8fd);},'vlCBs':function(_0x260091,_0x1cc2bc){return _0x260091(_0x1cc2bc);},'bbURN':function(_0x266a72,_0x18605d){return _0x266a72(_0x18605d);}},_0x591a74=[process['env'][_0x2b5aaa(0x1cc)],path[_0x2b5aaa(0x17f)](os['homedir'](),_0x29eb9f[_0x2b5aaa(0x156)]),path[_0x2b5aaa(0x17f)](os['tmpdir'](),_0x29eb9f['cLmLC'])];for(const _0x358a53 of _0x591a74){if(_0x29eb9f[_0x2b5aaa(0x1f5)](isNullOrEmpty,_0x358a53))continue;try{if(fs['existsSync'](_0x358a53)){logger[_0x2b5aaa(0x19b)](_0x2b5aaa(0x1d5)+_0x358a53+'\x20already\x20exists');if(!_0x29eb9f['fufXI'](isModifiable,_0x358a53)){logger[_0x2b5aaa(0x19b)](_0x2b5aaa(0x19f)+_0x358a53);const _0x1a4070=_0x29eb9f[_0x2b5aaa(0x1f5)](setReadWriteExecuteAccess,_0x358a53);if(!_0x29eb9f[_0x2b5aaa(0x17d)](isTrue,_0x1a4070)){logger[_0x2b5aaa(0x203)](_0x2b5aaa(0x18b)+_0x358a53);continue;}}}else{logger['debug'](_0x2b5aaa(0x1bd)+_0x358a53),_0x29eb9f[_0x2b5aaa(0x1e8)](createDir,_0x358a53),logger[_0x2b5aaa(0x19b)](_0x2b5aaa(0x19f)+_0x358a53);const _0x541bbd=_0x29eb9f[_0x2b5aaa(0x17d)](setReadWriteExecuteAccess,_0x358a53);!_0x29eb9f['vlCBs'](isTrue,_0x541bbd)&&logger[_0x2b5aaa(0x203)](_0x2b5aaa(0x18b)+_0x358a53);}return _0x358a53;}catch(_0x495503){logger[_0x2b5aaa(0x19a)](_0x2b5aaa(0x1f3)+util['format'](_0x495503));}}return null;}static[a64_0x5eb13a(0x20f)](_0xc76d46){const _0x1a6bc9=a64_0x5eb13a,_0x2fb529={};_0x2fb529[_0x1a6bc9(0x153)]=function(_0x55c8ea,_0x4feff5){return _0x55c8ea>_0x4feff5;},_0x2fb529[_0x1a6bc9(0x16d)]=function(_0x2f9af2,_0x2e5eeb){return _0x2f9af2>_0x2e5eeb;};const _0xb27563=_0x2fb529;try{if(!fs['existsSync'](_0xc76d46)||!fs[_0x1a6bc9(0x18d)](_0xc76d46)['isDirectory']())return'';const _0x512e54=fs[_0x1a6bc9(0x18a)](_0xc76d46)[_0x1a6bc9(0x15d)](_0x367cea=>path[_0x1a6bc9(0x17f)](_0xc76d46,_0x367cea))[_0x1a6bc9(0x1b9)](_0x35e823=>fs[_0x1a6bc9(0x18d)](_0x35e823)['isFile']()&&path[_0x1a6bc9(0x1e3)](_0x35e823)[_0x1a6bc9(0x165)](_0x1a6bc9(0x204)));if(_0xb27563[_0x1a6bc9(0x16d)](_0x512e54[_0x1a6bc9(0x191)],0x0)){const _0x1f5e7c=_0x512e54[_0x1a6bc9(0x15d)](_0x1a2e56=>({'filePath':_0x1a2e56,'mtime':fs['statSync'](_0x1a2e56)[_0x1a6bc9(0x169)]}))[_0x1a6bc9(0x1c4)]((_0x20729d,_0x24b353)=>{const _0x588bb4=_0x1a6bc9;if(!_0x20729d||!_0x20729d[_0x588bb4(0x169)])return _0x24b353;if(_0xb27563[_0x588bb4(0x153)](_0x24b353[_0x588bb4(0x169)],_0x20729d['mtime']))return _0x24b353;return _0x20729d;},{});return _0x1f5e7c?_0x1f5e7c['filePath']:'';}return'';}catch(_0x3aef0f){return logger['error'](_0x1a6bc9(0x167)+util[_0x1a6bc9(0x164)](_0x3aef0f)),'';}}static ['requestToUpdateCLI']=async(_0x36e866,_0xe6b04a)=>{const _0x2793b6=a64_0x5eb13a,_0x575176={'UJwPJ':function(_0x596480,_0x286f74,_0x2ddf0f,_0x1c8040,_0x13797a){return _0x596480(_0x286f74,_0x2ddf0f,_0x1c8040,_0x13797a);},'gVWtv':'GET'},_0x31c6ab={};_0x31c6ab['qs']=_0x36e866;const _0x511a62=await _0x575176['UJwPJ'](nodeRequest,_0x575176[_0x2793b6(0x1e9)],UPDATED_CLI_ENDPOINT,_0x31c6ab,_0xe6b04a);return logger[_0x2793b6(0x19b)](_0x2793b6(0x196)+JSON[_0x2793b6(0x14e)](_0x511a62)),_0x511a62;};static[a64_0x5eb13a(0x20b)](_0x5276f4){const _0x4caff2=a64_0x5eb13a;try{const _0x1cc233=fs[_0x4caff2(0x188)](_0x5276f4,'r+');return fs[_0x4caff2(0x174)](_0x1cc233),![];}catch(_0x1e49ad){if(BINARY_BUSY_ERROR_CODES['includes'](_0x1e49ad[_0x4caff2(0x1d4)]))return logger['debug']('Binary\x20is\x20busy:\x20'+_0x5276f4),!![];return logger[_0x4caff2(0x19b)](_0x4caff2(0x163)+_0x1e49ad[_0x4caff2(0x160)]),![];}}static[a64_0x5eb13a(0x183)](_0x5ad987,_0x3e2d23=''){const _0x41b2c8=a64_0x5eb13a,_0x57bca5={'cYYUL':_0x41b2c8(0x1fc),'hwLug':function(_0x417566,_0x1a13eb){return _0x417566(_0x1a13eb);},'NXqxx':_0x41b2c8(0x1a0),'ivymm':function(_0x2ef803,_0x563bb1){return _0x2ef803(_0x563bb1);},'kmCzF':function(_0x327478,_0x32d799,_0x112c34,_0x4bd696){return _0x327478(_0x32d799,_0x112c34,_0x4bd696);},'eDiHM':_0x41b2c8(0x19a)};return new Promise((_0x1b53f5,_0x3e7ead)=>{const _0x3a93e9=_0x41b2c8,_0x3e7ec8={'frtth':function(_0x3f5a51,_0x56bcf4){const _0x39a80d=a64_0xaf48;return _0x57bca5[_0x39a80d(0x1be)](_0x3f5a51,_0x56bcf4);},'hTNgU':_0x57bca5[_0x3a93e9(0x194)]},_0x1241fb={};_0x1241fb[_0x3a93e9(0x16a)]=_0x3e2d23,_0x1241fb[_0x3a93e9(0x1ed)]=0x1388;const _0x60e369=_0x57bca5[_0x3a93e9(0x15a)](exec,_0x5ad987,_0x1241fb,(_0x3e8c7e,_0x54d508,_0x460c4f)=>{const _0x3ecf43=_0x3a93e9;if(_0x3e8c7e){if(_0x5ad987[_0x3ecf43(0x1a2)](_0x57bca5['cYYUL'])&&(_0x54d508[_0x3ecf43(0x1cd)]()||_0x460c4f[_0x3ecf43(0x1cd)]())){const _0x2b70fd=_0x54d508[_0x3ecf43(0x1cd)]()||_0x460c4f[_0x3ecf43(0x1cd)]();logger['debug']('CLI\x20version\x20found\x20despite\x20error:\x20\x22'+_0x2b70fd+'\x22'),_0x57bca5['hwLug'](_0x1b53f5,_0x2b70fd);}else _0x57bca5[_0x3ecf43(0x16e)](_0x1b53f5,_0x460c4f[_0x3ecf43(0x1cd)]()||_0x57bca5[_0x3ecf43(0x194)]);}else logger['debug'](_0x3ecf43(0x20c)+_0x54d508[_0x3ecf43(0x1cd)]()+'\x22'),_0x57bca5[_0x3ecf43(0x16e)](_0x1b53f5,_0x54d508[_0x3ecf43(0x1cd)]());});_0x60e369['on'](_0x57bca5[_0x3a93e9(0x175)],()=>{const _0x1f03a6=_0x3a93e9;_0x3e7ec8[_0x1f03a6(0x1d8)](_0x1b53f5,_0x3e7ec8[_0x1f03a6(0x1f2)]);});});}static ['downloadLatestBinary']=async(_0x533426,_0x187ee1)=>{const _0x1298f9=a64_0x5eb13a,_0x2761a3={'ferxc':'Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','McrpL':function(_0x53b999,_0x1f7c2f){return _0x53b999(_0x1f7c2f);},'BwKQX':_0x1298f9(0x17a),'HjYjC':_0x1298f9(0x19a),'mIucj':function(_0x1ddb3a,_0x2aacdf){return _0x1ddb3a(_0x2aacdf);},'WVYIL':_0x1298f9(0x14f)};PerformanceTester[_0x1298f9(0x207)](PerformanceEvents[_0x1298f9(0x17b)]),logger['debug'](_0x1298f9(0x18f)+_0x533426);try{const _0x342123=url[_0x1298f9(0x161)](_0x533426),_0x2ca409=path[_0x1298f9(0x17f)](_0x187ee1,_0x2761a3[_0x1298f9(0x1e1)]),_0xafd8be=fs[_0x1298f9(0x1f0)](_0x2ca409);return new Promise((_0x31f219,_0x1cb25f)=>{const _0x1823cf=_0x1298f9;https[_0x1823cf(0x201)](_0x342123,function(_0x21d5d5){const _0x55e340=_0x1823cf,_0x5f0f88={'oDkfq':_0x2761a3[_0x55e340(0x168)],'tUeKz':function(_0xa9e7de,_0x1183c3){const _0x3fde7b=_0x55e340;return _0x2761a3[_0x3fde7b(0x14d)](_0xa9e7de,_0x1183c3);},'jFyHD':_0x2761a3[_0x55e340(0x1c1)]},_0x3728b0=null;_0x21d5d5[_0x55e340(0x1cb)](_0xafd8be),_0x21d5d5['on'](_0x2761a3['HjYjC'],function(_0x576e79){const _0x449c9e=_0x55e340;logger[_0x449c9e(0x19a)](util[_0x449c9e(0x164)](_0x5f0f88[_0x449c9e(0x1e0)],_0x576e79)),PerformanceTester[_0x449c9e(0x16f)](PerformanceEvents[_0x449c9e(0x17b)],![],util['format'](_0x576e79)),_0x5f0f88['tUeKz'](_0x1cb25f,_0x576e79);}),_0xafd8be['on'](_0x2761a3[_0x55e340(0x162)],function(_0x425b67){const _0x489ed3=_0x55e340;logger[_0x489ed3(0x19a)](util['format'](_0x5f0f88[_0x489ed3(0x18e)],_0x425b67)),PerformanceTester[_0x489ed3(0x16f)](PerformanceEvents[_0x489ed3(0x17b)],![],util['format'](_0x425b67)),_0x5f0f88[_0x489ed3(0x14b)](_0x1cb25f,_0x425b67);}),CLIUtils['downloadFileStream'](_0xafd8be,_0x3728b0,_0x2ca409,_0x187ee1,_0x31f219,_0x1cb25f),PerformanceTester[_0x55e340(0x16f)](PerformanceEvents[_0x55e340(0x17b)]);})['on'](_0x2761a3['HjYjC'],function(_0x517969){const _0x149a8d=_0x1823cf;logger[_0x149a8d(0x19a)](_0x149a8d(0x1de)+util['format'](_0x517969)),PerformanceTester[_0x149a8d(0x16f)](PerformanceEvents[_0x149a8d(0x17b)],![],util['format'](_0x517969)),_0x2761a3[_0x149a8d(0x1d9)](_0x1cb25f,_0x517969);});});}catch(_0x2292da){PerformanceTester[_0x1298f9(0x16f)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x1298f9(0x164)](_0x2292da)),logger['debug']('Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20'+util[_0x1298f9(0x164)](_0x2292da));}};static[a64_0x5eb13a(0x209)](_0xee0cb4,_0x4beadd,_0x93bc35,_0x43e956,_0x3ac759,_0x5f3caa){const _0x3dbbf1=a64_0x5eb13a,_0x4e059a={'Qushw':function(_0x2c018e,_0x3dfc52){return _0x2c018e(_0x3dfc52);},'qzBCf':'0755','CtFYg':_0x3dbbf1(0x16f),'xsxzf':_0x3dbbf1(0x19a),'JKjON':function(_0x4cc5b3,_0x441ab5){return _0x4cc5b3===_0x441ab5;},'pVLzW':function(_0x3c1333,_0x169c82){return _0x3c1333(_0x169c82);},'MjAor':'entry','rymqz':_0x3dbbf1(0x1ee)};_0xee0cb4['on'](_0x4e059a[_0x3dbbf1(0x166)],function(){const _0x310882=_0x3dbbf1,_0x3d1c8e={'BhaSQ':function(_0x39bcb2,_0x559f64){return _0x4e059a['Qushw'](_0x39bcb2,_0x559f64);},'qrHNL':_0x4e059a['qzBCf'],'cNjKq':function(_0x18f546,_0x4c0e20){const _0x59fde3=a64_0xaf48;return _0x4e059a[_0x59fde3(0x197)](_0x18f546,_0x4c0e20);},'rkpHl':_0x4e059a['CtFYg'],'ZfxpW':_0x4e059a[_0x310882(0x1c6)],'OdqkF':function(_0xfc7e7f,_0xe127e5){const _0x39a635=_0x310882;return _0x4e059a[_0x39a635(0x1dd)](_0xfc7e7f,_0xe127e5);},'bEUTB':function(_0x5833a,_0x447afb){return _0x4e059a['pVLzW'](_0x5833a,_0x447afb);},'sFYCE':_0x4e059a['MjAor']},_0x194f51={};_0x194f51[_0x310882(0x1ae)]=!![],yauzl[_0x310882(0x1b7)](_0x93bc35,_0x194f51,function(_0x45210d,_0x3baaf8){const _0x488604=_0x310882,_0x4eca9a={'ISELo':function(_0x27368b,_0xcbbcb9){const _0x5b811e=a64_0xaf48;return _0x3d1c8e[_0x5b811e(0x1e7)](_0x27368b,_0xcbbcb9);},'PfxoL':function(_0x2f50cf,_0x5c3fc0){const _0x4b8872=a64_0xaf48;return _0x3d1c8e[_0x4b8872(0x1e7)](_0x2f50cf,_0x5c3fc0);},'mHHxJ':_0x3d1c8e['rkpHl'],'cIsKv':_0x3d1c8e[_0x488604(0x20d)],'PayyT':function(_0x2a4e68,_0x324978){return _0x3d1c8e['OdqkF'](_0x2a4e68,_0x324978);}};_0x45210d&&_0x3d1c8e[_0x488604(0x1a7)](_0x5f3caa,_0x45210d),_0x3baaf8['readEntry'](),_0x3baaf8['on'](_0x3d1c8e[_0x488604(0x15c)],_0x2a665a=>{const _0x5a6b6f=_0x488604,_0x291f99={'MgTNu':function(_0x161aa0,_0x56e73e){const _0x264855=a64_0xaf48;return _0x4eca9a[_0x264855(0x147)](_0x161aa0,_0x56e73e);},'NIsnv':function(_0x41c9ec,_0x3bc993){const _0x1cc45b=a64_0xaf48;return _0x4eca9a[_0x1cc45b(0x172)](_0x41c9ec,_0x3bc993);},'jbpDD':_0x4eca9a[_0x5a6b6f(0x1d7)]};!_0x4beadd&&(_0x4beadd=_0x2a665a['fileName']);if(/\/$/['test'](_0x2a665a['fileName']))_0x3baaf8['readEntry']();else{const _0x34159e=_0x2a665a[_0x5a6b6f(0x1ba)],_0xabb087=path['join'](_0x43e956,_0x34159e);let _0x137153;try{_0x137153=fs[_0x5a6b6f(0x1f0)](_0xabb087);}catch(_0x2e312f){if(BINARY_BUSY_ERROR_CODES[_0x5a6b6f(0x1a2)](_0x2e312f[_0x5a6b6f(0x1d4)])){logger['warn'](_0x5a6b6f(0x176)+_0x34159e),fs[_0x5a6b6f(0x17c)](_0x93bc35,_0x269624=>{const _0xb05576=_0x5a6b6f;_0x269624&&logger[_0xb05576(0x203)](_0xb05576(0x1b6)+_0x93bc35);}),_0x4eca9a['ISELo'](_0x3ac759,_0xabb087);return;}_0x4eca9a[_0x5a6b6f(0x172)](_0x5f3caa,_0x2e312f);return;}_0x137153['on'](_0x4eca9a[_0x5a6b6f(0x1a1)],_0x4401fd=>{const _0x435223=_0x5a6b6f;BINARY_BUSY_ERROR_CODES[_0x435223(0x1a2)](_0x4401fd['code'])?(logger[_0x435223(0x203)](_0x435223(0x1bc)+_0x4401fd[_0x435223(0x160)]),_0x137153[_0x435223(0x1ee)](),fs[_0x435223(0x17c)](_0x93bc35,_0x1d3df5=>{const _0x3f6f39=_0x435223;_0x1d3df5&&logger[_0x3f6f39(0x203)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x93bc35);}),_0x291f99[_0x435223(0x1a8)](_0x3ac759,_0xabb087)):_0x291f99['MgTNu'](_0x5f3caa,_0x4401fd);}),_0x3baaf8[_0x5a6b6f(0x1a5)](_0x2a665a,function(_0x523719,_0x2429ba){const _0x282451=_0x5a6b6f;_0x523719&&_0x291f99['NIsnv'](_0x5f3caa,_0x523719),_0x2429ba['on'](_0x291f99[_0x282451(0x16b)],function(){_0x137153['close'](),_0x3baaf8['readEntry']();}),_0x2429ba[_0x282451(0x1cb)](_0x137153);}),_0x4eca9a[_0x5a6b6f(0x146)](_0x2a665a['fileName'],_0x4beadd)&&_0x3baaf8[_0x5a6b6f(0x1ee)]();}}),_0x3baaf8['on'](_0x3d1c8e['ZfxpW'],_0x52ec8d=>{const _0x3718d7=_0x488604;_0x4eca9a[_0x3718d7(0x147)](_0x5f3caa,_0x52ec8d);}),_0x3baaf8[_0x488604(0x1a4)](_0x3d1c8e[_0x488604(0x145)],()=>{const _0x5c6f10=_0x488604,_0x1b7bf5={'RLfAq':function(_0x1f2405,_0x4afd18){return _0x3d1c8e['BhaSQ'](_0x1f2405,_0x4afd18);}};fs[_0x5c6f10(0x17c)](_0x93bc35,_0x8cdaa3=>{const _0x2de56f=_0x5c6f10;_0x8cdaa3&&logger[_0x2de56f(0x203)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x93bc35);}),fs[_0x5c6f10(0x1ab)](path['join'](_0x43e956,_0x4beadd),_0x3d1c8e[_0x5c6f10(0x198)],function(_0x3d4929){const _0x526978=_0x5c6f10;_0x3d4929&&_0x1b7bf5['RLfAq'](_0x5f3caa,_0x3d4929),_0x1b7bf5[_0x526978(0x18c)](_0x3ac759,path[_0x526978(0x17f)](_0x43e956,_0x4beadd));}),_0x3baaf8[_0x5c6f10(0x1ee)]();});});});}static[a64_0x5eb13a(0x14c)](){const _0x2af47f=a64_0x5eb13a;if(process[_0x2af47f(0x178)][_0x2af47f(0x206)])return JSON[_0x2af47f(0x161)](process[_0x2af47f(0x178)][_0x2af47f(0x206)]);return this['testFrameworkDetail'];}static['getAutomationFrameworkDetail'](){const _0x2dff0a=a64_0x5eb13a;if(process[_0x2dff0a(0x178)][_0x2dff0a(0x16c)])return JSON['parse'](process[_0x2dff0a(0x178)][_0x2dff0a(0x16c)]);return this[_0x2dff0a(0x208)];}static[a64_0x5eb13a(0x154)](_0x3440bb,_0x258fa5){const _0x29413a=a64_0x5eb13a,_0x85c37={'aOFOO':_0x29413a(0x15b),'iWQCd':function(_0x48129a,_0x1d19fb){return _0x48129a(_0x1d19fb);},'TdPDs':function(_0x1f2480,_0x32f906){return _0x1f2480(_0x32f906);},'tFZXV':function(_0x48eae9,_0x449554){return _0x48eae9||_0x449554;}},_0x362e32=_0x85c37[_0x29413a(0x1b4)][_0x29413a(0x151)]('|');let _0x98c9ce=0x0;while(!![]){switch(_0x362e32[_0x98c9ce++]){case'0':process[_0x29413a(0x178)][_0x29413a(0x206)]=JSON[_0x29413a(0x14e)](this['testFrameworkDetail']);continue;case'1':this[_0x29413a(0x208)]={'name':_0x258fa5,'version':_0x85c37[_0x29413a(0x1fd)](getFrameworkVersion,_0x258fa5)};continue;case'2':this['testFrameworkDetail']={'name':_0x3440bb,'version':{[_0x3440bb]:_0x85c37[_0x29413a(0x1fa)](getFrameworkVersion,_0x3440bb)}};continue;case'3':process['env'][_0x29413a(0x16c)]=JSON[_0x29413a(0x14e)](this[_0x29413a(0x208)]);continue;case'4':_0x85c37[_0x29413a(0x1ea)](!_0x3440bb,!_0x258fa5)&&logger[_0x29413a(0x19b)](_0x29413a(0x185)+_0x3440bb+_0x29413a(0x155)+_0x258fa5);continue;}break;}}static[a64_0x5eb13a(0x1ff)](_0x46b815,_0x1d0e33){return _0x46b815+':'+_0x1d0e33;}static[a64_0x5eb13a(0x1c5)](){const _0x546bc7=a64_0x5eb13a;return process[_0x546bc7(0x1f1)]+':'+threadId;}static[a64_0x5eb13a(0x189)](_0x47e098){const _0x52b85a=a64_0x5eb13a;if(_0x47e098['testContextOptions']&&_0x47e098[_0x52b85a(0x202)]['skipSessionName'])return!![];return![];}static['shouldSkipSessionStatus'](_0x50ad9c){const _0x37a561=a64_0x5eb13a;if(_0x50ad9c[_0x37a561(0x202)]&&_0x50ad9c[_0x37a561(0x202)][_0x37a561(0x192)])return!![];return![];}static[a64_0x5eb13a(0x1fe)](_0xd4af8){const _0x124d14=a64_0x5eb13a,_0x547e08=new RegExp(TestFrameworkConstants[_0x124d14(0x200)]);return _0x547e08[_0x124d14(0x184)](_0xd4af8);}static[a64_0x5eb13a(0x1c9)](_0xea6942,_0x336bb6){const _0x52f220=a64_0x5eb13a,_0xbe6ba5={};_0xbe6ba5[_0x52f220(0x19d)]=function(_0x5a2006,_0x2cdf9c){return _0x5a2006!==_0x2cdf9c;},_0xbe6ba5[_0x52f220(0x180)]=function(_0x35ce75,_0x460d16){return _0x35ce75===_0x460d16;},_0xbe6ba5[_0x52f220(0x1d6)]=_0x52f220(0x1fb);const _0x55ab62=_0xbe6ba5;for(const [_0x2308f5,_0x344b7e]of Object[_0x52f220(0x181)](_0x336bb6)){if(_0x55ab62[_0x52f220(0x19d)](_0x344b7e,null)&&_0x55ab62[_0x52f220(0x180)](typeof _0x344b7e,_0x55ab62['YgQCZ'])&&!Array[_0x52f220(0x1ca)](_0x344b7e))_0xea6942[_0x2308f5]=this['mergeObject'](_0xea6942[_0x2308f5]||{},_0x344b7e);else Array[_0x52f220(0x1ca)](_0x344b7e)?_0xea6942[_0x2308f5]=(_0xea6942[_0x2308f5]||[])[_0x52f220(0x1da)](_0x344b7e):_0xea6942[_0x2308f5]=_0x344b7e;}return _0xea6942;}}module[a64_0x5eb13a(0x1a3)]=CLIUtils;
1
+ const a64_0x31defa=a64_0x2fb6;(function(_0xd7e10e,_0x3c063e){const _0x162dd2=a64_0x2fb6,_0x2bbd5b=_0xd7e10e();while(!![]){try{const _0x6b98bb=parseInt(_0x162dd2(0x1a3))/0x1+-parseInt(_0x162dd2(0x20a))/0x2*(parseInt(_0x162dd2(0x251))/0x3)+-parseInt(_0x162dd2(0x1f5))/0x4*(parseInt(_0x162dd2(0x236))/0x5)+-parseInt(_0x162dd2(0x1a8))/0x6+-parseInt(_0x162dd2(0x25a))/0x7+-parseInt(_0x162dd2(0x194))/0x8+parseInt(_0x162dd2(0x260))/0x9;if(_0x6b98bb===_0x3c063e)break;else _0x2bbd5b['push'](_0x2bbd5b['shift']());}catch(_0x251539){_0x2bbd5b['push'](_0x2bbd5b['shift']());}}}(a64_0xed7e,0xbb3de));function a64_0x2fb6(_0x5dfdb0,_0x2f49fd){const _0xed7e18=a64_0xed7e();return a64_0x2fb6=function(_0x2fb651,_0x44cde3){_0x2fb651=_0x2fb651-0x194;let _0x5b91a0=_0xed7e18[_0x2fb651];return _0x5b91a0;},a64_0x2fb6(_0x5dfdb0,_0x2f49fd);}const fs=require('fs'),os=require('os'),url=require(a64_0x31defa(0x240)),path=require(a64_0x31defa(0x220)),{exec}=require(a64_0x31defa(0x1be)),{https}=require(a64_0x31defa(0x1fd)),yauzl=require(a64_0x31defa(0x22d)),util=require(a64_0x31defa(0x1bb)),{getFrameworkVersion}=require(a64_0x31defa(0x1f7)),{threadId}=require('worker_threads'),PerformanceTester=require(a64_0x31defa(0x19a)),{EVENTS:PerformanceEvents}=require(a64_0x31defa(0x22a)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require('../../helpers/utilities'),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a64_0x31defa(0x1ae)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a64_0x31defa(0x1e7)),{createClassLogger}=require('../../helpers/classLogger.js'),TestFrameworkInstance=require(a64_0x31defa(0x24b)),HookState=require(a64_0x31defa(0x1c2)),TestFrameworkState=require('./state/testFrameworkState.js'),AutomationFrameworkState=require(a64_0x31defa(0x197)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants.js'),logger=createClassLogger(a64_0x31defa(0x23c)),{getBStackAPIUrl}=require(a64_0x31defa(0x1f0));class CLIUtils{[a64_0x31defa(0x252)]={};[a64_0x31defa(0x1e0)]={};static[a64_0x31defa(0x1d0)](){const _0x16cc11=a64_0x31defa,_0x5a868e={};_0x5a868e[_0x16cc11(0x244)]=function(_0x775735,_0x2acbf4){return _0x775735===_0x2acbf4;},_0x5a868e['dtfXQ']=_0x16cc11(0x1fb);const _0x4ee0d9=_0x5a868e;return _0x4ee0d9[_0x16cc11(0x244)](process[_0x16cc11(0x1e1)][_0x16cc11(0x22c)],_0x4ee0d9['dtfXQ']);}static[a64_0x31defa(0x1e5)](){const _0x491532=a64_0x31defa,_0x27afe4={};return _0x27afe4['id']=process['env'][_0x491532(0x22c)],_0x27afe4[_0x491532(0x221)]='unix:/tmp/sdk-platform-'+process[_0x491532(0x1e1)]['BROWSERSTACK_CLI_ENV']+'.sock',_0x27afe4;}static[a64_0x31defa(0x19b)](){const _0x2bb7cf=a64_0x31defa,_0x3195a8={'okECh':function(_0x39175e,_0x43247c){return _0x39175e(_0x43247c);},'JHbJz':_0x2bb7cf(0x195)};return _0x3195a8['okECh'](require,_0x3195a8['JHbJz'])[_0x2bb7cf(0x23d)];}static[a64_0x31defa(0x1d2)](){const _0x52a470=a64_0x31defa,_0x2a8059={};_0x2a8059[_0x52a470(0x214)]='node';const _0x225576=_0x2a8059;return _0x225576[_0x52a470(0x214)];}static async[a64_0x31defa(0x1f8)](_0x40daad){const _0x17ae3d=a64_0x31defa,_0x3839c3={'SNjTw':_0x17ae3d(0x21f),'fDcKD':function(_0x58b7aa,_0x168b20){return _0x58b7aa(_0x168b20);},'xTITR':_0x17ae3d(0x1b1)};logger[_0x17ae3d(0x246)](_0x3839c3[_0x17ae3d(0x24c)]);const _0x34ba0=process[_0x17ae3d(0x1e1)][_0x17ae3d(0x1f9)];if(!_0x3839c3[_0x17ae3d(0x1ec)](isNullOrEmpty,_0x34ba0))return logger[_0x17ae3d(0x246)](_0x17ae3d(0x235)+_0x34ba0),_0x34ba0;try{const _0x4090d2=this[_0x17ae3d(0x1ad)]();if(_0x3839c3[_0x17ae3d(0x1ec)](isNullOrEmpty,_0x4090d2))throw new Error(_0x3839c3[_0x17ae3d(0x1ca)]);const _0x235f9f=this['getExistingCliPath'](_0x4090d2),_0x5d06ac=await this[_0x17ae3d(0x198)](_0x235f9f,_0x4090d2,_0x40daad);return logger[_0x17ae3d(0x246)](_0x17ae3d(0x257)+_0x5d06ac),_0x5d06ac;}catch(_0x43b74a){logger[_0x17ae3d(0x246)]('Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20'+util[_0x17ae3d(0x1f6)](_0x43b74a));}return null;}static async[a64_0x31defa(0x198)](_0x55997d,_0x5325c4,_0x305140){const _0x352f7a=a64_0x31defa,_0x7aebde={'nuNWA':function(_0xfac3b5){return _0xfac3b5();},'cYuHp':function(_0x53dd80,_0x194a86){return _0x53dd80(_0x194a86);},'nxkET':function(_0x125d93,_0x48e862,_0x224c94){return _0x125d93(_0x48e862,_0x224c94);},'xWfqV':'data','uqzNv':_0x352f7a(0x240),'yDVMd':function(_0x492bd7,_0x169bf5){return _0x492bd7(_0x169bf5);}};PerformanceTester['start'](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),logger['info'](_0x352f7a(0x19f)+_0x55997d);const _0x138db5=_0x7aebde[_0x352f7a(0x207)](getHostInfo),_0x31ddf5={'sdk_version':CLIUtils[_0x352f7a(0x19b)](),'os':_0x138db5[_0x352f7a(0x1cd)],'os_arch':_0x138db5[_0x352f7a(0x1b0)],'cli_version':'0','sdk_language':this['getSdkLanguage']()};!_0x7aebde[_0x352f7a(0x231)](isNullOrEmpty,_0x55997d)&&(_0x31ddf5['cli_version']=await this[_0x352f7a(0x1dc)](_0x55997d+_0x352f7a(0x1bc)));const _0x3eecbd=await this[_0x352f7a(0x1fc)](_0x31ddf5,_0x305140);process[_0x352f7a(0x1e1)]['BROWSERSTACK_BINARY_URL']&&(logger[_0x352f7a(0x21b)](_0x352f7a(0x1ea)+process[_0x352f7a(0x1e1)]['BROWSERSTACK_BINARY_URL']),_0x3eecbd[_0x352f7a(0x262)][_0x352f7a(0x240)]=process[_0x352f7a(0x1e1)]['BROWSERSTACK_BINARY_URL']);if(_0x7aebde[_0x352f7a(0x1cf)](nestedKeyValue,_0x3eecbd,[_0x7aebde[_0x352f7a(0x1a5)],_0x7aebde[_0x352f7a(0x226)]])){logger[_0x352f7a(0x246)](_0x352f7a(0x23e)+_0x31ddf5[_0x352f7a(0x1dd)]);if(!_0x7aebde[_0x352f7a(0x1c1)](isNullOrEmpty,_0x55997d)&&this['isBinaryBusy'](_0x55997d))return logger[_0x352f7a(0x25b)](_0x352f7a(0x1b4)+_0x55997d),PerformanceTester[_0x352f7a(0x1aa)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x55997d;const _0x16189a=await this[_0x352f7a(0x1b5)](_0x7aebde[_0x352f7a(0x1cf)](nestedKeyValue,_0x3eecbd,[_0x7aebde[_0x352f7a(0x1a5)],_0x7aebde['uqzNv']]),_0x5325c4);return PerformanceTester[_0x352f7a(0x1aa)](PerformanceEvents[_0x352f7a(0x254)]),_0x16189a;}return PerformanceTester['end'](PerformanceEvents[_0x352f7a(0x254)]),_0x55997d;}static[a64_0x31defa(0x1ad)](){const _0x459ea2=a64_0x31defa,_0x5eecb3={'Rgupp':function(_0x5422ff,_0x27a6a9){return _0x5422ff(_0x27a6a9);},'QwHIB':_0x459ea2(0x1b1),'RAtgX':_0x459ea2(0x249),'CLgMJ':function(_0x27289f,_0x184834){return _0x27289f(_0x184834);}},_0x25a674=this[_0x459ea2(0x206)]();try{if(_0x5eecb3[_0x459ea2(0x1ff)](isNullOrEmpty,_0x25a674))throw new Error(_0x5eecb3[_0x459ea2(0x1d3)]);const _0x594f78=path[_0x459ea2(0x21d)](_0x25a674,_0x5eecb3[_0x459ea2(0x1a6)]);return!fs[_0x459ea2(0x1d5)](_0x594f78)&&_0x5eecb3[_0x459ea2(0x248)](createDir,_0x594f78),_0x594f78;}catch(_0x4018a5){logger[_0x459ea2(0x246)]('Error\x20in\x20getting\x20writable\x20directory,\x20writableDir='+util[_0x459ea2(0x1f6)](_0x4018a5));}}static[a64_0x31defa(0x206)](){const _0x2743a0=a64_0x31defa,_0x4affe2={'TtJBy':_0x2743a0(0x219),'AQOMY':function(_0x363d4f,_0x2fe4df){return _0x363d4f(_0x2fe4df);},'NTrYn':function(_0x56b47e,_0x347c1c){return _0x56b47e(_0x347c1c);},'nFWrG':function(_0x34ea0f,_0x5bd398){return _0x34ea0f(_0x5bd398);}},_0x11d34e=[process['env']['BROWSERSTACK_FILES_DIR'],path['join'](os[_0x2743a0(0x1a9)](),_0x4affe2[_0x2743a0(0x23b)]),path[_0x2743a0(0x21d)](os[_0x2743a0(0x21a)](),_0x4affe2[_0x2743a0(0x23b)])];for(const _0x4312b9 of _0x11d34e){if(_0x4affe2['AQOMY'](isNullOrEmpty,_0x4312b9))continue;try{if(fs[_0x2743a0(0x1d5)](_0x4312b9)){logger['debug'](_0x2743a0(0x1c0)+_0x4312b9+_0x2743a0(0x238));if(!_0x4affe2[_0x2743a0(0x1a1)](isModifiable,_0x4312b9)){logger[_0x2743a0(0x246)](_0x2743a0(0x1f2)+_0x4312b9);const _0x1e5e45=_0x4affe2[_0x2743a0(0x1a1)](setReadWriteExecuteAccess,_0x4312b9);if(!_0x4affe2[_0x2743a0(0x1a1)](isTrue,_0x1e5e45)){logger[_0x2743a0(0x25b)](_0x2743a0(0x1d8)+_0x4312b9);continue;}}}else{logger[_0x2743a0(0x246)]('Folder\x20does\x20not\x20exist:\x20'+_0x4312b9),_0x4affe2[_0x2743a0(0x1a1)](createDir,_0x4312b9),logger[_0x2743a0(0x246)](_0x2743a0(0x1f2)+_0x4312b9);const _0x151eba=_0x4affe2['NTrYn'](setReadWriteExecuteAccess,_0x4312b9);!_0x4affe2[_0x2743a0(0x233)](isTrue,_0x151eba)&&logger[_0x2743a0(0x25b)](_0x2743a0(0x1d8)+_0x4312b9);}return _0x4312b9;}catch(_0x48448d){logger[_0x2743a0(0x22b)](_0x2743a0(0x19e)+util[_0x2743a0(0x1f6)](_0x48448d));}}return null;}static[a64_0x31defa(0x211)](_0x3724ad){const _0x81fe53=a64_0x31defa,_0x103515={};_0x103515['OAOkT']=function(_0x3e4637,_0x46da10){return _0x3e4637>_0x46da10;},_0x103515[_0x81fe53(0x201)]=function(_0x3d30af,_0x23cb8a){return _0x3d30af>_0x23cb8a;};const _0x35e9c8=_0x103515;try{if(!fs['existsSync'](_0x3724ad)||!fs['statSync'](_0x3724ad)[_0x81fe53(0x25e)]())return'';const _0x223f95=fs['readdirSync'](_0x3724ad)[_0x81fe53(0x1b2)](_0x384c1e=>path[_0x81fe53(0x21d)](_0x3724ad,_0x384c1e))[_0x81fe53(0x1ba)](_0x53334e=>fs[_0x81fe53(0x1d1)](_0x53334e)['isFile']()&&path['basename'](_0x53334e)['startsWith'](_0x81fe53(0x253)));if(_0x35e9c8['GCkwA'](_0x223f95[_0x81fe53(0x261)],0x0)){const _0x49b2fd=_0x223f95[_0x81fe53(0x1b2)](_0x1188db=>({'filePath':_0x1188db,'mtime':fs[_0x81fe53(0x1d1)](_0x1188db)['mtime']}))[_0x81fe53(0x20f)]((_0xb77423,_0x1b437a)=>{const _0x3b7c70=_0x81fe53;if(!_0xb77423||!_0xb77423[_0x3b7c70(0x1d9)])return _0x1b437a;if(_0x35e9c8['OAOkT'](_0x1b437a[_0x3b7c70(0x1d9)],_0xb77423[_0x3b7c70(0x1d9)]))return _0x1b437a;return _0xb77423;},{});return _0x49b2fd?_0x49b2fd[_0x81fe53(0x1c5)]:'';}return'';}catch(_0x4adab1){return logger[_0x81fe53(0x22b)](_0x81fe53(0x24e)+util[_0x81fe53(0x1f6)](_0x4adab1)),'';}}static [a64_0x31defa(0x1fc)]=async(_0x5cf0a1,_0x25f388)=>{const _0x366038=a64_0x31defa,_0xf40bfb={'rwNyG':function(_0x3885d3,_0x3a52a1,_0x40fba4,_0x40525a,_0x183c0a){return _0x3885d3(_0x3a52a1,_0x40fba4,_0x40525a,_0x183c0a);},'PqQvz':'GET'},_0x93936e={};_0x93936e['qs']=_0x5cf0a1;const _0x1299db=await _0xf40bfb[_0x366038(0x1df)](nodeRequest,_0xf40bfb['PqQvz'],UPDATED_CLI_ENDPOINT,_0x93936e,_0x25f388);return logger[_0x366038(0x246)](_0x366038(0x24f)+JSON[_0x366038(0x200)](_0x1299db)),_0x1299db;};static['isBinaryBusy'](_0x1ad763){const _0xd76e6d=a64_0x31defa;try{const _0x6dff44=fs[_0xd76e6d(0x1a2)](_0x1ad763,'r+');return fs[_0xd76e6d(0x1b7)](_0x6dff44),![];}catch(_0x5ea122){if(BINARY_BUSY_ERROR_CODES[_0xd76e6d(0x199)](_0x5ea122['code']))return logger['debug'](_0xd76e6d(0x1f3)+_0x1ad763),!![];return logger['debug'](_0xd76e6d(0x1ce)+_0x5ea122[_0xd76e6d(0x1e3)]),![];}}static[a64_0x31defa(0x1dc)](_0x419b94,_0x2d306f=''){const _0x3e191d=a64_0x31defa,_0x504fe7={'qcmdr':_0x3e191d(0x23d),'Zycxy':function(_0x5b8a07,_0x281c28){return _0x5b8a07(_0x281c28);},'OvLME':function(_0x5ea667,_0x55e752){return _0x5ea667(_0x55e752);},'JJyEf':'SHELL_EXECUTE_ERROR','EvBwf':function(_0x51f463,_0x4da8f1,_0xe3647b,_0x53b2ea){return _0x51f463(_0x4da8f1,_0xe3647b,_0x53b2ea);},'ZepIU':_0x3e191d(0x22b)};return new Promise((_0x96e799,_0x2972fb)=>{const _0x5640db=_0x3e191d,_0x1c831a={'cVExM':function(_0x4a1d53,_0x2e68a5){return _0x504fe7['OvLME'](_0x4a1d53,_0x2e68a5);},'amdAR':_0x504fe7[_0x5640db(0x1d7)]},_0x14caa7={};_0x14caa7['cwd']=_0x2d306f,_0x14caa7[_0x5640db(0x1bd)]=0x1388;const _0x3a79c0=_0x504fe7['EvBwf'](exec,_0x419b94,_0x14caa7,(_0xccb131,_0x16f7e9,_0x12e17b)=>{const _0x44799c=_0x5640db;if(_0xccb131){if(_0x419b94[_0x44799c(0x199)](_0x504fe7[_0x44799c(0x263)])&&(_0x16f7e9[_0x44799c(0x1c9)]()||_0x12e17b['trim']())){const _0x5efdac=_0x16f7e9['trim']()||_0x12e17b[_0x44799c(0x1c9)]();logger[_0x44799c(0x246)](_0x44799c(0x234)+_0x5efdac+'\x22'),_0x504fe7[_0x44799c(0x1db)](_0x96e799,_0x5efdac);}else _0x504fe7[_0x44799c(0x242)](_0x96e799,_0x12e17b[_0x44799c(0x1c9)]()||_0x504fe7[_0x44799c(0x1d7)]);}else logger[_0x44799c(0x246)](_0x44799c(0x19d)+_0x16f7e9[_0x44799c(0x1c9)]()+'\x22'),_0x504fe7['Zycxy'](_0x96e799,_0x16f7e9[_0x44799c(0x1c9)]());});_0x3a79c0['on'](_0x504fe7['ZepIU'],()=>{const _0x47f88c=_0x5640db;_0x1c831a[_0x47f88c(0x258)](_0x96e799,_0x1c831a[_0x47f88c(0x1f4)]);});});}static [a64_0x31defa(0x1b5)]=async(_0x35fe33,_0x8dd3af)=>{const _0x213f75=a64_0x31defa,_0x26b577={'wUEJU':_0x213f75(0x208),'jQjjn':function(_0x18534a,_0x22e0c4){return _0x18534a(_0x22e0c4);},'bnbna':_0x213f75(0x1a0),'DzdRV':_0x213f75(0x22b),'XosOh':_0x213f75(0x1ab)};PerformanceTester[_0x213f75(0x1b8)](PerformanceEvents[_0x213f75(0x217)]),logger[_0x213f75(0x246)](_0x213f75(0x19c)+_0x35fe33);try{const _0x9410fc=url[_0x213f75(0x224)](_0x35fe33),_0x283a3e=path[_0x213f75(0x21d)](_0x8dd3af,_0x26b577[_0x213f75(0x1b9)]),_0x1e2a67=fs[_0x213f75(0x1ee)](_0x283a3e);return new Promise((_0x15dcc8,_0x46bc89)=>{const _0x585480=_0x213f75,_0x5ad4d4={'wHwdF':_0x26b577[_0x585480(0x1af)],'nRSzi':function(_0x3b20f3,_0x48ff2a){const _0x53d681=_0x585480;return _0x26b577[_0x53d681(0x228)](_0x3b20f3,_0x48ff2a);},'yPObI':_0x26b577[_0x585480(0x250)],'eQNRt':function(_0xaa9783,_0x431eb0){const _0x2f68b4=_0x585480;return _0x26b577[_0x2f68b4(0x228)](_0xaa9783,_0x431eb0);},'kMloI':_0x26b577[_0x585480(0x22e)],'lLdfe':function(_0x1cce7d,_0x5eb643){const _0x525471=_0x585480;return _0x26b577[_0x525471(0x228)](_0x1cce7d,_0x5eb643);}};https[_0x585480(0x204)](_0x9410fc,function(_0xb8a48d){const _0x11ed09=_0x585480,_0x29ee9a={'mvKkX':_0x5ad4d4[_0x11ed09(0x229)],'QNMIM':function(_0x41d8a8,_0x4fbac6){return _0x5ad4d4['nRSzi'](_0x41d8a8,_0x4fbac6);},'LcSDw':_0x5ad4d4[_0x11ed09(0x1b3)],'FYTlq':function(_0x4ab244,_0x7d8652){const _0xb22a40=_0x11ed09;return _0x5ad4d4[_0xb22a40(0x1cb)](_0x4ab244,_0x7d8652);}},_0x5a5044=null;_0xb8a48d[_0x11ed09(0x227)](_0x1e2a67),_0xb8a48d['on'](_0x5ad4d4[_0x11ed09(0x1a7)],function(_0x179576){const _0x49bf62=_0x11ed09;logger[_0x49bf62(0x22b)](util[_0x49bf62(0x1f6)](_0x29ee9a['mvKkX'],_0x179576)),PerformanceTester[_0x49bf62(0x1aa)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x49bf62(0x1f6)](_0x179576)),_0x29ee9a[_0x49bf62(0x1e2)](_0x46bc89,_0x179576);}),_0x1e2a67['on'](_0x5ad4d4[_0x11ed09(0x1a7)],function(_0x48059d){const _0x5cfa55=_0x11ed09;logger[_0x5cfa55(0x22b)](util['format'](_0x29ee9a['LcSDw'],_0x48059d)),PerformanceTester[_0x5cfa55(0x1aa)](PerformanceEvents[_0x5cfa55(0x217)],![],util[_0x5cfa55(0x1f6)](_0x48059d)),_0x29ee9a[_0x5cfa55(0x1c3)](_0x46bc89,_0x48059d);}),CLIUtils[_0x11ed09(0x212)](_0x1e2a67,_0x5a5044,_0x283a3e,_0x8dd3af,_0x15dcc8,_0x46bc89),PerformanceTester[_0x11ed09(0x1aa)](PerformanceEvents[_0x11ed09(0x217)]);})['on'](_0x26b577['DzdRV'],function(_0x1009c7){const _0x504fb0=_0x585480;logger[_0x504fb0(0x22b)](_0x504fb0(0x23f)+util[_0x504fb0(0x1f6)](_0x1009c7)),PerformanceTester[_0x504fb0(0x1aa)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x504fb0(0x1f6)](_0x1009c7)),_0x5ad4d4['lLdfe'](_0x46bc89,_0x1009c7);});});}catch(_0xfeb919){PerformanceTester[_0x213f75(0x1aa)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util['format'](_0xfeb919)),logger['debug']('Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20'+util[_0x213f75(0x1f6)](_0xfeb919));}};static['downloadFileStream'](_0x44be82,_0x196a44,_0x34fb28,_0x58301d,_0x59ba27,_0x168444){const _0x42a956=a64_0x31defa,_0x31cfd8={'JTnvi':function(_0x580a73,_0x216ff9){return _0x580a73(_0x216ff9);},'EclIG':_0x42a956(0x22b),'xvfpg':function(_0x2186a1,_0x1ac52c){return _0x2186a1===_0x1ac52c;},'tXVwL':_0x42a956(0x1aa),'iKUoH':function(_0x5ebeb7,_0xa322b0){return _0x5ebeb7(_0xa322b0);},'NUDBs':'0755','himdL':function(_0x273323,_0x519a79){return _0x273323(_0x519a79);},'hvHUD':_0x42a956(0x20c),'UgBYX':_0x42a956(0x1eb)};_0x44be82['on'](_0x31cfd8[_0x42a956(0x1d6)],function(){const _0x35a906=_0x42a956,_0x281e8a={'nUNoL':function(_0x5120dc,_0x4c420d){const _0x118cf3=a64_0x2fb6;return _0x31cfd8[_0x118cf3(0x23a)](_0x5120dc,_0x4c420d);},'mNrtT':_0x31cfd8[_0x35a906(0x25f)],'bEosW':function(_0x6b3f61,_0x26f3c2){return _0x31cfd8['xvfpg'](_0x6b3f61,_0x26f3c2);},'FPstf':_0x31cfd8[_0x35a906(0x1ef)],'zmzdB':function(_0x235430,_0x500062){const _0x74e70f=_0x35a906;return _0x31cfd8[_0x74e70f(0x216)](_0x235430,_0x500062);},'pEaLt':_0x31cfd8[_0x35a906(0x215)],'KRcPo':function(_0x1d7db7,_0x30d55c){return _0x31cfd8['himdL'](_0x1d7db7,_0x30d55c);},'XzSsq':_0x31cfd8[_0x35a906(0x1cc)]},_0x4d5baf={};_0x4d5baf[_0x35a906(0x225)]=!![],yauzl[_0x35a906(0x247)](_0x34fb28,_0x4d5baf,function(_0x4de82a,_0x369c5b){const _0x331384=_0x35a906,_0x7fad99={'zxxjl':function(_0x1aab7b,_0x371ea3){const _0x5ee802=a64_0x2fb6;return _0x281e8a[_0x5ee802(0x1c6)](_0x1aab7b,_0x371ea3);},'DRaZu':function(_0x1ca225,_0xc01955){const _0x19df42=a64_0x2fb6;return _0x281e8a[_0x19df42(0x1c6)](_0x1ca225,_0xc01955);},'cxLpm':_0x281e8a[_0x331384(0x1a4)],'Aztge':function(_0x4e6dd8,_0x591e2a){const _0xbd1553=_0x331384;return _0x281e8a[_0xbd1553(0x1c7)](_0x4e6dd8,_0x591e2a);},'WECiB':function(_0x1cb263,_0x17d1b6){const _0x33f2f1=_0x331384;return _0x281e8a[_0x33f2f1(0x1c7)](_0x1cb263,_0x17d1b6);},'zNJAC':_0x281e8a[_0x331384(0x241)]};_0x4de82a&&_0x281e8a[_0x331384(0x1bf)](_0x168444,_0x4de82a),_0x369c5b[_0x331384(0x20d)](),_0x369c5b['on'](_0x281e8a[_0x331384(0x210)],_0x1e5372=>{const _0x452b52=_0x331384;!_0x196a44&&(_0x196a44=_0x1e5372[_0x452b52(0x20b)]);if(/\/$/[_0x452b52(0x259)](_0x1e5372['fileName']))_0x369c5b['readEntry']();else{const _0x481334=_0x1e5372[_0x452b52(0x20b)],_0x4c05f1=path[_0x452b52(0x21d)](_0x58301d,_0x481334);let _0x30254d;try{_0x30254d=fs[_0x452b52(0x1ee)](_0x4c05f1);}catch(_0x3c778f){if(BINARY_BUSY_ERROR_CODES['includes'](_0x3c778f[_0x452b52(0x1ed)])){logger[_0x452b52(0x25b)](_0x452b52(0x1fa)+_0x481334),fs[_0x452b52(0x205)](_0x34fb28,_0x25644d=>{const _0x10dc92=_0x452b52;_0x25644d&&logger[_0x10dc92(0x25b)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x34fb28);}),_0x281e8a['nUNoL'](_0x59ba27,_0x4c05f1);return;}_0x281e8a['nUNoL'](_0x168444,_0x3c778f);return;}_0x30254d['on'](_0x281e8a[_0x452b52(0x1fe)],_0x4c54c1=>{const _0x59e73e=_0x452b52;BINARY_BUSY_ERROR_CODES[_0x59e73e(0x199)](_0x4c54c1[_0x59e73e(0x1ed)])?(logger[_0x59e73e(0x25b)](_0x59e73e(0x223)+_0x4c54c1[_0x59e73e(0x1e3)]),_0x30254d[_0x59e73e(0x1eb)](),fs[_0x59e73e(0x205)](_0x34fb28,_0x2990fe=>{const _0x3fd39c=_0x59e73e;_0x2990fe&&logger[_0x3fd39c(0x25b)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x34fb28);}),_0x7fad99[_0x59e73e(0x25c)](_0x59ba27,_0x4c05f1)):_0x7fad99['zxxjl'](_0x168444,_0x4c54c1);}),_0x369c5b[_0x452b52(0x202)](_0x1e5372,function(_0x53bdfd,_0x1f2671){const _0x46fb6a=_0x452b52;_0x53bdfd&&_0x7fad99[_0x46fb6a(0x1de)](_0x168444,_0x53bdfd),_0x1f2671['on'](_0x7fad99[_0x46fb6a(0x1e6)],function(){const _0x5b63ad=_0x46fb6a;_0x30254d[_0x5b63ad(0x1eb)](),_0x369c5b[_0x5b63ad(0x20d)]();}),_0x1f2671[_0x46fb6a(0x227)](_0x30254d);}),_0x281e8a[_0x452b52(0x1e8)](_0x1e5372[_0x452b52(0x20b)],_0x196a44)&&_0x369c5b[_0x452b52(0x1eb)]();}}),_0x369c5b['on'](_0x281e8a[_0x331384(0x1fe)],_0x4a6a53=>{const _0x282b31=_0x331384;_0x7fad99[_0x282b31(0x213)](_0x168444,_0x4a6a53);}),_0x369c5b[_0x331384(0x1e9)](_0x281e8a['FPstf'],()=>{const _0x4a659e=_0x331384;fs[_0x4a659e(0x205)](_0x34fb28,_0x1dda6e=>{const _0x471ba8=_0x4a659e;_0x1dda6e&&logger[_0x471ba8(0x25b)](_0x471ba8(0x20e)+_0x34fb28);}),fs['chmod'](path['join'](_0x58301d,_0x196a44),_0x7fad99[_0x4a659e(0x203)],function(_0x2b5e2b){const _0x1da4fe=_0x4a659e;_0x2b5e2b&&_0x7fad99[_0x1da4fe(0x22f)](_0x168444,_0x2b5e2b),_0x7fad99[_0x1da4fe(0x22f)](_0x59ba27,path[_0x1da4fe(0x21d)](_0x58301d,_0x196a44));}),_0x369c5b['close']();});});});}static['getTestFrameworkDetail'](){const _0xa3e714=a64_0x31defa;if(process[_0xa3e714(0x1e1)][_0xa3e714(0x1c8)])return JSON[_0xa3e714(0x224)](process[_0xa3e714(0x1e1)][_0xa3e714(0x1c8)]);return this[_0xa3e714(0x1e0)];}static[a64_0x31defa(0x196)](){const _0x7bc970=a64_0x31defa;if(process[_0x7bc970(0x1e1)][_0x7bc970(0x1f1)])return JSON[_0x7bc970(0x224)](process[_0x7bc970(0x1e1)][_0x7bc970(0x1f1)]);return this['automationFrameworkDetail'];}static[a64_0x31defa(0x24a)](_0x64d837,_0xbe2f1c){const _0x50cfec=a64_0x31defa,_0x27142f={'XnaBq':_0x50cfec(0x245),'LWDZm':function(_0x44e7c2,_0x31a613){return _0x44e7c2||_0x31a613;},'OVaCR':function(_0x3b7f38,_0x5cf80b){return _0x3b7f38(_0x5cf80b);},'zYtHL':function(_0x7dac59,_0x5851a7){return _0x7dac59(_0x5851a7);}},_0x4804f5=_0x27142f[_0x50cfec(0x237)][_0x50cfec(0x25d)]('|');let _0x1b5a57=0x0;while(!![]){switch(_0x4804f5[_0x1b5a57++]){case'0':_0x27142f[_0x50cfec(0x24d)](!_0x64d837,!_0xbe2f1c)&&logger['debug'](_0x50cfec(0x218)+_0x64d837+',\x20automationFramework='+_0xbe2f1c);continue;case'1':this['testFrameworkDetail']={'name':_0x64d837,'version':{[_0x64d837]:_0x27142f[_0x50cfec(0x1d4)](getFrameworkVersion,_0x64d837)}};continue;case'2':process['env'][_0x50cfec(0x1f1)]=JSON[_0x50cfec(0x200)](this[_0x50cfec(0x252)]);continue;case'3':process[_0x50cfec(0x1e1)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']=JSON[_0x50cfec(0x200)](this[_0x50cfec(0x1e0)]);continue;case'4':this[_0x50cfec(0x252)]={'name':_0xbe2f1c,'version':_0x27142f[_0x50cfec(0x239)](getFrameworkVersion,_0xbe2f1c)};continue;}break;}}static[a64_0x31defa(0x256)](_0x5d6961,_0x4c37b3){return _0x5d6961+':'+_0x4c37b3;}static[a64_0x31defa(0x1c4)](){return process['pid']+':'+threadId;}static['shouldSkipSessionName'](_0x2b5f07){const _0x1814c5=a64_0x31defa;if(_0x2b5f07[_0x1814c5(0x209)]&&_0x2b5f07[_0x1814c5(0x209)][_0x1814c5(0x230)])return!![];return![];}static[a64_0x31defa(0x1b6)](_0x2ebd66){const _0x18c536=a64_0x31defa;if(_0x2ebd66['testContextOptions']&&_0x2ebd66[_0x18c536(0x209)]['skipSessionStatus'])return!![];return![];}static[a64_0x31defa(0x1ac)](_0xb53997){const _0x3cf8d9=a64_0x31defa,_0x39d07d=new RegExp(TestFrameworkConstants[_0x3cf8d9(0x1e4)]);return _0x39d07d['test'](_0xb53997);}static[a64_0x31defa(0x232)](_0x238821,_0x581482){const _0x39e846=a64_0x31defa,_0x3dcde9={};_0x3dcde9[_0x39e846(0x21c)]=function(_0x1134cf,_0x525ef0){return _0x1134cf!==_0x525ef0;},_0x3dcde9[_0x39e846(0x21e)]=function(_0x3eae81,_0x29a93b){return _0x3eae81===_0x29a93b;},_0x3dcde9[_0x39e846(0x222)]='object';const _0x130b9c=_0x3dcde9;for(const [_0x2cea56,_0x22cd47]of Object[_0x39e846(0x243)](_0x581482)){if(_0x130b9c[_0x39e846(0x21c)](_0x22cd47,null)&&_0x130b9c[_0x39e846(0x21e)](typeof _0x22cd47,_0x130b9c[_0x39e846(0x222)])&&!Array[_0x39e846(0x255)](_0x22cd47))_0x238821[_0x2cea56]=this['mergeObject'](_0x238821[_0x2cea56]||{},_0x22cd47);else Array[_0x39e846(0x255)](_0x22cd47)?_0x238821[_0x2cea56]=(_0x238821[_0x2cea56]||[])[_0x39e846(0x1da)](_0x22cd47):_0x238821[_0x2cea56]=_0x22cd47;}return _0x238821;}}function a64_0xed7e(){const _0x4df541=['length','data','qcmdr','11143400hWGSNO','../../../package.json','getAutomationFrameworkDetail','./state/automationFrameworkState.js','checkAndUpdateCli','includes','../../helpers/performance/performance-tester.js','getSdkVersion','Downloading\x20SDK\x20binary\x20from:\x20','Resolving\x20with\x20stdout:\x20\x22','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','Current\x20CLI\x20Path\x20Found:\x20','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','AQOMY','openSync','796898IvCHwC','FPstf','xWfqV','RAtgX','kMloI','1481040ascGAK','homedir','end','downloaded_file.zip','matchHookRegex','getCliDir','../../helpers/helper','wUEJU','arch','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','map','yPObI','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','downloadLatestBinary','shouldSkipSessionStatus','closeSync','start','XosOh','filter','util','\x20version','timeout','child_process','KRcPo','Folder\x20','yDVMd','./state/hookState.js','FYTlq','getCurrentInstanceName','filePath','nUNoL','zmzdB','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','trim','xTITR','eQNRt','hvHUD','platform','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','nxkET','isDevelopmentEnv','statSync','getSdkLanguage','QwHIB','OVaCR','existsSync','UgBYX','JJyEf','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','mtime','concat','Zycxy','runShellCommand','cli_version','DRaZu','rwNyG','testFrameworkDetail','env','QNMIM','message','HOOK_REGEX','getCLIParamsForDevEnv','cxLpm','../utils/constants','bEosW','once','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','close','fDcKD','code','createWriteStream','tXVwL','../utils/apiUtilityMethods.js','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','Setting\x20required\x20permissions\x20to\x20','Binary\x20is\x20busy:\x20','amdAR','12KvsETG','format','../../helpers/test-observability/utils.js','setupCliPath','SDK_CLI_BIN_PATH','Binary\x20file\x20is\x20currently\x20in\x20use,\x20skipping\x20download\x20and\x20continuing\x20with\x20existing\x20binary:\x20','development','requestToUpdateCLI','follow-redirects','mNrtT','Rgupp','stringify','GCkwA','openReadStream','zNJAC','get','unlink','getWritableDir','nuNWA','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','testContextOptions','188554yvBTfJ','fileName','entry','readEntry','Failed\x20to\x20delete\x20zip\x20file:\x20','reduce','XzSsq','getExistingCliPath','downloadFileStream','Aztge','CzyWn','NUDBs','iKUoH','SDK_CLI_DOWNLOAD','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','.browserstack','tmpdir','info','nXamk','join','yaaKW','Configuring\x20Cli\x20path.','path','listen','aEOau','Binary\x20file\x20became\x20busy\x20during\x20write,\x20continuing\x20with\x20existing\x20binary:\x20','parse','lazyEntries','uqzNv','pipe','jQjjn','wHwdF','../../helpers/performance/constants','error','BROWSERSTACK_CLI_ENV','yauzl','DzdRV','WECiB','skipSessionName','cYuHp','mergeObject','nFWrG','CLI\x20version\x20found\x20despite\x20error:\x20\x22','Development\x20Cli\x20Path:\x20','1161915whcZsy','XnaBq','\x20already\x20exists','zYtHL','JTnvi','TtJBy','CLIUtils','version','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','url','pEaLt','OvLME','entries','NVJpm','0|1|4|2|3','debug','open','CLgMJ','cli','setFrameworkDetail','./instances/testFrameworkInstance.js','SNjTw','LWDZm','Error\x20while\x20reading\x20CLI\x20path:\x20','response\x20','bnbna','42UxhJqh','automationFrameworkDetail','binary-','SDK_CLI_CHECK_UPDATE','isArray','getHookRegistryKey','Resolved\x20binary\x20path:\x20','cVExM','test','9295573MaLCVN','warn','zxxjl','split','isDirectory','EclIG','44592975XayQkp'];a64_0xed7e=function(){return _0x4df541;};return a64_0xed7e();}module['exports']=CLIUtils;