browserstack-node-sdk 1.40.1 → 1.40.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) 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_before.setup.js +1 -1
  67. package/src/bin/launcher/launcher.js +1 -1
  68. package/src/bin/load/index.js +1 -1
  69. package/src/bin/load/load/index.js +46 -27
  70. package/src/bin/load/load/loadUtils.js +37 -31
  71. package/src/bin/load/loadUtils.js +1 -1
  72. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  73. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  74. package/src/bin/mocha/command.js +1 -1
  75. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  76. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  77. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  78. package/src/bin/mocha/test.setup.js +1 -1
  79. package/src/bin/nightwatch/command.js +1 -1
  80. package/src/bin/playwright/accessibility-helper.js +1 -1
  81. package/src/bin/playwright/command.js +1 -1
  82. package/src/bin/playwright/globalSetup.js +1 -1
  83. package/src/bin/playwright/mock-process.js +1 -1
  84. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  85. package/src/bin/playwright/patches.js +1 -1
  86. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  87. package/src/bin/playwright/reporter/reporter.js +1 -1
  88. package/src/bin/playwright/reporter/test-details.js +1 -1
  89. package/src/bin/playwright/sessionDetails.js +1 -1
  90. package/src/bin/runner.js +1 -1
  91. package/src/bin/setup.js +1 -1
  92. package/src/bin/test-runner/index.js +1 -1
  93. package/src/bin/test-runner/runTest.js +1 -1
  94. package/src/bin/test-runner/testWorker.js +1 -1
  95. package/src/bin/utils/constants.js +1 -1
  96. package/src/bin/utils/log4jsAppender.js +1 -1
  97. package/src/bin/utils/logPatcher.js +1 -1
  98. package/src/bin/utils/logReportingAPI.js +1 -1
  99. package/src/bin/v2/TestInfo.js +1 -1
  100. package/src/bin/v2/browserstackCLI.js +1 -1
  101. package/src/bin/v2/cliUtils.js +1 -1
  102. package/src/bin/v2/customTagManager.js +1 -1
  103. package/src/bin/v2/eventDispatcher.js +1 -1
  104. package/src/bin/v2/framework/automationFramework.js +1 -1
  105. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  106. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  107. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  108. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  109. package/src/bin/v2/framework/testFramework.js +1 -1
  110. package/src/bin/v2/grpcClient.js +1 -1
  111. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  112. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  113. package/src/bin/v2/instances/trackedContext.js +1 -1
  114. package/src/bin/v2/instances/trackedInstance.js +1 -1
  115. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  116. package/src/bin/v2/modules/baseModule.js +1 -1
  117. package/src/bin/v2/modules/observabilityModule.js +1 -1
  118. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  119. package/src/bin/v2/modules/testhubModule.js +1 -1
  120. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  121. package/src/bin/v2/state/hookState.js +1 -1
  122. package/src/bin/v2/state/testFrameworkState.js +1 -1
  123. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  124. package/src/bin/vanilla-js/command.js +1 -1
  125. package/src/browserStackSdk.js +1 -1
  126. package/src/helpers/BrowserStackSetup.js +1 -1
  127. package/src/helpers/accessibility-automation/constants.js +1 -1
  128. package/src/helpers/accessibility-automation/helper.js +1 -1
  129. package/src/helpers/accessibility-automation/scripts.js +1 -1
  130. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  131. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  132. package/src/helpers/ats/constants.js +1 -1
  133. package/src/helpers/ats/helper.js +1 -1
  134. package/src/helpers/capsMapping.js +1 -1
  135. package/src/helpers/central-scanner/constants.js +1 -1
  136. package/src/helpers/central-scanner/helpers.js +1 -1
  137. package/src/helpers/classLogger.js +1 -1
  138. package/src/helpers/globals.js +1 -1
  139. package/src/helpers/helper.js +1 -1
  140. package/src/helpers/logger.js +1 -1
  141. package/src/helpers/metadata.js +1 -1
  142. package/src/helpers/patchHelper.js +1 -1
  143. package/src/helpers/patchHelpers.js +1 -1
  144. package/src/helpers/percy/Percy.js +1 -1
  145. package/src/helpers/percy/PercyBinary.js +1 -1
  146. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  147. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  148. package/src/helpers/percy/PercySDK.js +1 -1
  149. package/src/helpers/percy/index.js +1 -1
  150. package/src/helpers/percy/utils.js +1 -1
  151. package/src/helpers/performance/constants.js +1 -1
  152. package/src/helpers/performance/performance-tester.js +1 -1
  153. package/src/helpers/processHelper.js +1 -1
  154. package/src/helpers/request-spy.js +1 -1
  155. package/src/helpers/setKeepAlive.js +1 -1
  156. package/src/helpers/test-observability/constants.js +1 -1
  157. package/src/helpers/test-observability/error-handler.js +1 -1
  158. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  159. package/src/helpers/test-observability/sessionHandler.js +1 -1
  160. package/src/helpers/test-observability/utils.js +1 -1
  161. package/src/helpers/test-orchestration/constants.js +1 -1
  162. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  163. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  164. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  165. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  166. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  167. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  168. package/src/helpers/testhub/constants.js +1 -1
  169. package/src/helpers/testhub/testhubHandler.js +1 -1
  170. package/src/helpers/testhub/utils.js +1 -1
  171. package/src/helpers/timeoutPromise.js +1 -1
  172. package/src/helpers/utilities.js +1 -1
  173. package/src/helpers/w3cMapping.js +1 -1
  174. package/src/hubAllocationMethods.js +1 -1
  175. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a50_0x1214(_0x59388b,_0x1df8ed){const _0xd14795=a50_0xd147();return a50_0x1214=function(_0x1214e2,_0x5c6769){_0x1214e2=_0x1214e2-0x122;let _0x511eb5=_0xd14795[_0x1214e2];return _0x511eb5;},a50_0x1214(_0x59388b,_0x1df8ed);}const a50_0x837831=a50_0x1214;(function(_0x8889fd,_0x2f2a77){const _0x575146=a50_0x1214,_0x4efc25=_0x8889fd();while(!![]){try{const _0x582d72=parseInt(_0x575146(0x125))/0x1+parseInt(_0x575146(0x13f))/0x2*(-parseInt(_0x575146(0x138))/0x3)+parseInt(_0x575146(0x12c))/0x4+parseInt(_0x575146(0x127))/0x5*(-parseInt(_0x575146(0x134))/0x6)+-parseInt(_0x575146(0x13b))/0x7*(parseInt(_0x575146(0x12d))/0x8)+parseInt(_0x575146(0x135))/0x9*(parseInt(_0x575146(0x13a))/0xa)+-parseInt(_0x575146(0x12b))/0xb*(-parseInt(_0x575146(0x141))/0xc);if(_0x582d72===_0x2f2a77)break;else _0x4efc25['push'](_0x4efc25['shift']());}catch(_0x51a7af){_0x4efc25['push'](_0x4efc25['shift']());}}}(a50_0xd147,0xb7be0));const PerformanceEvents=require(a50_0x837831(0x13d))[a50_0x837831(0x136)],PerformanceTester=require(a50_0x837831(0x140)),{sleep}=require(a50_0x837831(0x145));function a50_0xd147(){const _0x28e7d0=['6020228mLdgqZ','3476488CrKGob','configuration','vanilla','mocha','runVanillaTest','stopMonitoring','STUbR','6309954yaQLor','860265iERdtx','EVENTS','runCucumberTest','21090jqQLvR','end','10fcrjyc','14unMxxM','../launcher/launcher','../../helpers/performance/constants','jxhNq','230gEPVAm','../../helpers/performance/performance-tester','107736xbzMhU','gQARW','pmXcF','QirZs','../../helpers/test-observability/utils','gKYqP','WhWVo','formatter','1243759NPmhWf','startMonitoring','5vVLMyu','run','cucumber-js','JkJjO','781GZvkeh'];a50_0xd147=function(){return _0x28e7d0;};return a50_0xd147();}exports['runTest']=async(_0x3f722f,_0x5a1c54)=>{const _0x38bbf3=a50_0x837831,_0x3410ba={'WhWVo':function(_0x8144a4,_0x2e24bd){return _0x8144a4(_0x2e24bd);},'jxhNq':'../launcher/launcher','pmXcF':_0x38bbf3(0x130),'JkJjO':function(_0x12fc0d,_0x13a6eb){return _0x12fc0d(_0x13a6eb);}};PerformanceTester[_0x38bbf3(0x126)]();const _0x1395d9=_0x3410ba[_0x38bbf3(0x123)](require,_0x3410ba[_0x38bbf3(0x13e)]),_0x1f1d77=new _0x1395d9(_0x3410ba[_0x38bbf3(0x143)],_0x3f722f,_0x5a1c54),_0x3c03a9=await _0x1f1d77[_0x38bbf3(0x128)]();return PerformanceTester[_0x38bbf3(0x139)](PerformanceEvents['SDK_POST_TEST']),await _0x3410ba[_0x38bbf3(0x12a)](sleep,0x3e8),PerformanceTester[_0x38bbf3(0x132)](),_0x3c03a9;},exports[a50_0x837831(0x137)]=async(_0x6e7d9b,_0x38ced9,_0xc1f63e,_0x536237,_0x20836a)=>{const _0x52b210=a50_0x837831,_0x4b60a2={'gKYqP':function(_0x26c04c,_0x2355df){return _0x26c04c(_0x2355df);},'QirZs':_0x52b210(0x13c),'HUhqm':_0x52b210(0x129)},_0x266542={'capability':_0x6e7d9b,..._0x38ced9},_0x5c55b2={};_0x5c55b2[_0x52b210(0x12e)]=_0x266542,_0x5c55b2[_0x52b210(0x124)]=_0x20836a;const _0x2d48b5=_0x5c55b2,_0x216628=_0x4b60a2[_0x52b210(0x122)](require,_0x4b60a2[_0x52b210(0x144)]),_0x336aea=new _0x216628(_0x4b60a2['HUhqm'],_0x2d48b5,_0xc1f63e,_0x536237);return await _0x336aea['run']();},exports[a50_0x837831(0x131)]=async _0x5236f0=>{const _0x301d36=a50_0x837831,_0x2b034b={'gQARW':function(_0x29490a,_0xa4fb45){return _0x29490a(_0xa4fb45);},'HGArc':_0x301d36(0x13c),'STUbR':_0x301d36(0x12f)},_0xf3d7f9=_0x2b034b[_0x301d36(0x142)](require,_0x2b034b['HGArc']),_0x327b9d=new _0xf3d7f9(_0x2b034b[_0x301d36(0x133)],_0x5236f0);return await _0x327b9d[_0x301d36(0x128)]();};
1
+ const a50_0x384304=a50_0x4b60;(function(_0x2e5edc,_0x14d586){const _0x8b0c78=a50_0x4b60,_0x3c5a69=_0x2e5edc();while(!![]){try{const _0x560f05=parseInt(_0x8b0c78(0x1a9))/0x1*(-parseInt(_0x8b0c78(0x1a7))/0x2)+parseInt(_0x8b0c78(0x1ab))/0x3+-parseInt(_0x8b0c78(0x19f))/0x4+parseInt(_0x8b0c78(0x197))/0x5*(-parseInt(_0x8b0c78(0x1a6))/0x6)+parseInt(_0x8b0c78(0x195))/0x7*(parseInt(_0x8b0c78(0x19d))/0x8)+parseInt(_0x8b0c78(0x1a5))/0x9*(parseInt(_0x8b0c78(0x19b))/0xa)+parseInt(_0x8b0c78(0x1ad))/0xb;if(_0x560f05===_0x14d586)break;else _0x3c5a69['push'](_0x3c5a69['shift']());}catch(_0x2f44ad){_0x3c5a69['push'](_0x3c5a69['shift']());}}}(a50_0x59ea,0x3581a));const PerformanceEvents=require(a50_0x384304(0x1ac))[a50_0x384304(0x1b0)],PerformanceTester=require(a50_0x384304(0x1b2)),{sleep}=require(a50_0x384304(0x1a0));function a50_0x4b60(_0x19839e,_0x16a0bf){const _0x59eab1=a50_0x59ea();return a50_0x4b60=function(_0x4b60aa,_0x126b3b){_0x4b60aa=_0x4b60aa-0x195;let _0x3b983f=_0x59eab1[_0x4b60aa];return _0x3b983f;},a50_0x4b60(_0x19839e,_0x16a0bf);}exports['runTest']=async(_0x83f3e2,_0x5c5b32)=>{const _0xd7fe4c=a50_0x384304,_0x485c7f={'xSQGS':function(_0x3f7b88,_0x6efc4f){return _0x3f7b88(_0x6efc4f);},'ErXaM':_0xd7fe4c(0x196),'KbbXi':_0xd7fe4c(0x1a4),'cYeuM':function(_0x5f454c,_0x826b1c){return _0x5f454c(_0x826b1c);}};PerformanceTester['startMonitoring']();const _0x318b95=_0x485c7f[_0xd7fe4c(0x1a3)](require,_0x485c7f[_0xd7fe4c(0x19c)]),_0x34bed2=new _0x318b95(_0x485c7f['KbbXi'],_0x83f3e2,_0x5c5b32),_0x4700ba=await _0x34bed2[_0xd7fe4c(0x1a1)]();return PerformanceTester[_0xd7fe4c(0x1aa)](PerformanceEvents['SDK_POST_TEST']),await _0x485c7f[_0xd7fe4c(0x1a8)](sleep,0x3e8),PerformanceTester[_0xd7fe4c(0x19a)](),_0x4700ba;},exports[a50_0x384304(0x1ae)]=async(_0x29565b,_0x1da143,_0x258baa,_0x272d51,_0x32bf8f)=>{const _0x50d82c=a50_0x384304,_0x15bc2c={'Ywhyc':function(_0x32f341,_0x2dfe30){return _0x32f341(_0x2dfe30);},'uTuba':'../launcher/launcher','qQEVA':_0x50d82c(0x1a2)},_0x3ca764={'capability':_0x29565b,..._0x1da143},_0x8a50c6={};_0x8a50c6[_0x50d82c(0x1b3)]=_0x3ca764,_0x8a50c6[_0x50d82c(0x198)]=_0x32bf8f;const _0xf4c135=_0x8a50c6,_0x5d6c0a=_0x15bc2c[_0x50d82c(0x1af)](require,_0x15bc2c['uTuba']),_0x20c7fe=new _0x5d6c0a(_0x15bc2c['qQEVA'],_0xf4c135,_0x258baa,_0x272d51);return await _0x20c7fe[_0x50d82c(0x1a1)]();},exports['runVanillaTest']=async _0x446fd1=>{const _0x26a857=a50_0x384304,_0x5a39e2={'reTYF':function(_0x52a847,_0x1b920e){return _0x52a847(_0x1b920e);},'dnfvk':'../launcher/launcher','vLolm':'vanilla'},_0xcaf598=_0x5a39e2[_0x26a857(0x19e)](require,_0x5a39e2[_0x26a857(0x1b1)]),_0x2a935e=new _0xcaf598(_0x5a39e2[_0x26a857(0x199)],_0x446fd1);return await _0x2a935e[_0x26a857(0x1a1)]();};function a50_0x59ea(){const _0x18f2c5=['mocha','18ayetiQ','12soOlkX','482102QEKyXS','cYeuM','1WdLLcD','end','1024725eCFcKE','../../helpers/performance/constants','5485282tRMgRK','runCucumberTest','Ywhyc','EVENTS','dnfvk','../../helpers/performance/performance-tester','configuration','7lQEYGk','../launcher/launcher','337455pMwjPu','formatter','vLolm','stopMonitoring','62910oQMWTZ','ErXaM','1158536xjNYZK','reTYF','1609764tKdJHF','../../helpers/test-observability/utils','run','cucumber-js','xSQGS'];a50_0x59ea=function(){return _0x18f2c5;};return a50_0x59ea();}
@@ -1 +1 @@
1
- const a51_0x30da80=a51_0x16e1;(function(_0x236e64,_0x399311){const _0x494b4e=a51_0x16e1,_0x16427f=_0x236e64();while(!![]){try{const _0x26729e=-parseInt(_0x494b4e(0x1d5))/0x1*(parseInt(_0x494b4e(0x1d6))/0x2)+parseInt(_0x494b4e(0x1e2))/0x3*(-parseInt(_0x494b4e(0x1e1))/0x4)+parseInt(_0x494b4e(0x1d4))/0x5*(-parseInt(_0x494b4e(0x1db))/0x6)+parseInt(_0x494b4e(0x1e0))/0x7+-parseInt(_0x494b4e(0x1d8))/0x8*(parseInt(_0x494b4e(0x1d7))/0x9)+parseInt(_0x494b4e(0x1df))/0xa*(parseInt(_0x494b4e(0x1dd))/0xb)+-parseInt(_0x494b4e(0x1da))/0xc*(-parseInt(_0x494b4e(0x1dc))/0xd);if(_0x26729e===_0x399311)break;else _0x16427f['push'](_0x16427f['shift']());}catch(_0x6d63b9){_0x16427f['push'](_0x16427f['shift']());}}}(a51_0x463f,0xe8033));const {runTest,runCucumberTest,runVanillaTest}=require('./runTest');exports['worker']=async(_0x36ae53,_0x14b0df)=>{const _0x56e9c1={'eXIuS':function(_0x3bfe6e,_0x28f589,_0x26cccf){return _0x3bfe6e(_0x28f589,_0x26cccf);}};return await _0x56e9c1['eXIuS'](runTest,_0x36ae53,_0x14b0df);},exports[a51_0x30da80(0x1de)]=async(_0xfd5096,_0x435caf,_0x29bc91,_0x3fb20f,_0xc87431)=>{const _0x24b454=a51_0x30da80,_0x49e61a={'ssRvB':function(_0x3cc61e,_0x145b7f,_0x3d9347,_0x12aa0e,_0x340ac8,_0x11a0b0){return _0x3cc61e(_0x145b7f,_0x3d9347,_0x12aa0e,_0x340ac8,_0x11a0b0);}};return await _0x49e61a[_0x24b454(0x1e3)](runCucumberTest,_0xfd5096,_0x435caf,_0x29bc91,_0x3fb20f,_0xc87431);},exports['vanillaWorker']=async _0x60c4e7=>{const _0x544242=a51_0x30da80,_0x2617b9={'GvDgw':function(_0x504333,_0x530575){return _0x504333(_0x530575);}};return await _0x2617b9[_0x544242(0x1d9)](runVanillaTest,_0x60c4e7);};function a51_0x16e1(_0x5336ab,_0x4d6607){const _0x463f62=a51_0x463f();return a51_0x16e1=function(_0x16e1ab,_0x126a6c){_0x16e1ab=_0x16e1ab-0x1d4;let _0x24042a=_0x463f62[_0x16e1ab];return _0x24042a;},a51_0x16e1(_0x5336ab,_0x4d6607);}function a51_0x463f(){const _0x10bc75=['7680907EzdDxR','4418821UkAbpD','cucumberWorker','40uwBDGY','6220844lCklWO','1439356gwFONI','15CtjZud','ssRvB','933200bsnvbS','1rxcZgW','1188188GslCfm','2157471nmRjfs','8ZNBEoe','GvDgw','60reYZJl','60iPpjuH'];a51_0x463f=function(){return _0x10bc75;};return a51_0x463f();}
1
+ function a51_0x506b(_0x6f081,_0x51bb7d){const _0x4d1919=a51_0x4d19();return a51_0x506b=function(_0x506b59,_0x3d3e41){_0x506b59=_0x506b59-0xc6;let _0x18586e=_0x4d1919[_0x506b59];return _0x18586e;},a51_0x506b(_0x6f081,_0x51bb7d);}const a51_0x2d1300=a51_0x506b;(function(_0x11b113,_0x4c4fe5){const _0x226c31=a51_0x506b,_0x17e899=_0x11b113();while(!![]){try{const _0x147c42=-parseInt(_0x226c31(0xd2))/0x1*(-parseInt(_0x226c31(0xd0))/0x2)+-parseInt(_0x226c31(0xc8))/0x3+-parseInt(_0x226c31(0xc7))/0x4*(-parseInt(_0x226c31(0xd4))/0x5)+-parseInt(_0x226c31(0xcb))/0x6*(-parseInt(_0x226c31(0xcc))/0x7)+parseInt(_0x226c31(0xc9))/0x8+-parseInt(_0x226c31(0xc6))/0x9+parseInt(_0x226c31(0xd1))/0xa*(-parseInt(_0x226c31(0xca))/0xb);if(_0x147c42===_0x4c4fe5)break;else _0x17e899['push'](_0x17e899['shift']());}catch(_0xa6724e){_0x17e899['push'](_0x17e899['shift']());}}}(a51_0x4d19,0x9a548));const {runTest,runCucumberTest,runVanillaTest}=require('./runTest');exports['worker']=async(_0x2c1a18,_0x485b1c)=>{const _0x59bf28=a51_0x506b,_0x451e49={'URBXg':function(_0x1b8e82,_0x351e9d,_0x43403b){return _0x1b8e82(_0x351e9d,_0x43403b);}};return await _0x451e49[_0x59bf28(0xd3)](runTest,_0x2c1a18,_0x485b1c);},exports[a51_0x2d1300(0xcd)]=async(_0x48a5a1,_0x5b673a,_0x1a0065,_0x1eb95c,_0x3a3c2c)=>{const _0x377553={'mgYAj':function(_0x2dd097,_0x3957cc,_0x48b12a,_0x31e0a9,_0x196ffd,_0x2dc5ea){return _0x2dd097(_0x3957cc,_0x48b12a,_0x31e0a9,_0x196ffd,_0x2dc5ea);}};return await _0x377553['mgYAj'](runCucumberTest,_0x48a5a1,_0x5b673a,_0x1a0065,_0x1eb95c,_0x3a3c2c);},exports[a51_0x2d1300(0xce)]=async _0x3523ee=>{const _0x4d00de=a51_0x2d1300,_0xcdfe22={'rEPBA':function(_0x10f927,_0x1871ec){return _0x10f927(_0x1871ec);}};return await _0xcdfe22[_0x4d00de(0xcf)](runVanillaTest,_0x3523ee);};function a51_0x4d19(){const _0x5bab84=['7zDEFcV','URBXg','40OmqRoi','627975SDBNYd','518572FHmSQd','3286407XOJzOg','3826608vOBKrT','11RfRBox','931446PGGqwL','56qeFHyC','cucumberWorker','vanillaWorker','rEPBA','50366gtxRjI','11362990TxCAyP'];a51_0x4d19=function(){return _0x5bab84;};return a51_0x4d19();}
@@ -1 +1 @@
1
- const a52_0x270f13=a52_0x2edd;(function(_0x2235c6,_0x56ebf3){const _0x4c858d=a52_0x2edd,_0x31ed3e=_0x2235c6();while(!![]){try{const _0x5980bb=parseInt(_0x4c858d(0xfb))/0x1*(-parseInt(_0x4c858d(0x16b))/0x2)+-parseInt(_0x4c858d(0x122))/0x3*(parseInt(_0x4c858d(0x167))/0x4)+parseInt(_0x4c858d(0x174))/0x5+parseInt(_0x4c858d(0x116))/0x6*(parseInt(_0x4c858d(0x12d))/0x7)+parseInt(_0x4c858d(0xcd))/0x8*(-parseInt(_0x4c858d(0x16e))/0x9)+-parseInt(_0x4c858d(0xc9))/0xa*(-parseInt(_0x4c858d(0xfc))/0xb)+-parseInt(_0x4c858d(0xfa))/0xc*(-parseInt(_0x4c858d(0xff))/0xd);if(_0x5980bb===_0x56ebf3)break;else _0x31ed3e['push'](_0x31ed3e['shift']());}catch(_0x238e68){_0x31ed3e['push'](_0x31ed3e['shift']());}}}(a52_0x4ab5,0x68203));const a52_0x4d6c7c={};a52_0x4d6c7c['INFO']=a52_0x270f13(0xe3),a52_0x4d6c7c[a52_0x270f13(0x10d)]=a52_0x270f13(0xce);const a52_0x3f5427={};a52_0x3f5427[a52_0x270f13(0x181)]=a52_0x270f13(0x138);const a52_0x673d0e={};a52_0x673d0e['INFO']=a52_0x270f13(0xd0);const a52_0x59763a={};function a52_0x2edd(_0x2a32f0,_0x4b9143){const _0x4ab5e6=a52_0x4ab5();return a52_0x2edd=function(_0x2edd0d,_0x1051a7){_0x2edd0d=_0x2edd0d-0xb7;let _0x5c9b39=_0x4ab5e6[_0x2edd0d];return _0x5c9b39;},a52_0x2edd(_0x2a32f0,_0x4b9143);}a52_0x59763a['INFO']=a52_0x270f13(0x163);const a52_0x2127b7={};a52_0x2127b7['INFO']=a52_0x270f13(0xd7);const a52_0x44e134={};a52_0x44e134[a52_0x270f13(0x181)]='Run\x20nightwatch\x20tests\x20on\x20browserstack';const a52_0x126fe0={};a52_0x126fe0[a52_0x270f13(0x181)]=a52_0x270f13(0x11c);const a52_0x7a87ef={};function a52_0x4ab5(){const _0x1b4106=['.apk','Jest','automate','playwright','accessibilityOptions','662232lFyLSo','https://hub.browserstack.com/wd/hub','MODULE','wss://cdp-preprod.bsstag.com/playwright?caps=','userName','toLowerCase','Run\x20playwright\x20tests\x20on\x20Browserstack','ieOptions','ERR_NETWORK_CHANGED','commonjs','uniqueDependency','codeceptjs','3wQrJOZ','ROOT_CAPS','https://app-automate.browserstack.com/dashboard/v2/builds/','module','SDKTestTcgAuthFailure','disableAutoCaptureLogs','stag','ERR_ADDRESS_UNREACHABLE','SDKTestTcgProxyFailure','split','AI_INIT_SUCCESSFUL','21orsRoi','strictFileInteractability','PACKAGE_TYPE','/usage-debug.log','AI_ENABLED_FRAMEWORK','HUB_URL_REGEX','UPGRADE_REQUIRED','https://api-preprod.bsstag.com','browserstack.com','^[a-zA-Z0-9_.-]*$','use','Run\x20jest\x20tests\x20on\x20browserstack','accessibility','httpsProxy','browserName','Invalid\x20property\x20added\x20for\x20the\x20%s\x20in\x20playwrightConfigOptions\x20in\x20the\x20yml\x20file','SDK_INSTRUMENTATION_CONFIG','automation','UPDATED_CLI_ENDPOINT','staging','bsstag.com','PERCY_SUPPORTED_FRAMEWORKS','firefoxOptions','proxyUser','PLAYWRIGHT','BROWSERSTACK_APP_AUTOMATE_URL','CUCUMBER','PRIVATE_DOMAIN_OR_IP_REGEX','ERR_TIMED_OUT','parallelsPerPlatform','exports','SDKTestTcgtInitSuccessful','turboScale','ERR_CONNECTION_FAILED','https://api-cloud-devtestops.bsstag.com','mocha','name\x20and\x20testMatch\x20are\x20required\x20for\x20the\x20%s\x20key\x20in\x20playwrightConfigOptions\x20in\x20the\x20yml\x20file','browserstack.accessKey','BSTACK_URL','CI_ARTIFACTS_PATH','pre-prod','BROWSERSTACK_AUTOMATE_URL','localOptions','SDKTestInitFailedResponse','testObservability','Upgrade\x20required','jest','AI_PROXY_FAILURE','https://hub-devtestops.bsstag.com/wd/hub','sdk/v1/event','percyCaptureMode','percyOptions','hubUrl','rerunTests','Run\x20cucumber-js\x20tests\x20on\x20browserstack','LOG_FILE_NAME','SET_TCG_TOKEN_TIMEOUT','AUTOMATE','2663140XKBukq','EDS_URL','platforms','bsstag','373544HactYA','^[a-zA-Z0-9_.-]*/[a-zA-Z0-9_.-]*$','proxySettings','34218PcZkfn','ERR_BLOCKED_BY_CLIENT','BROWSERSTACK','ATS_HUB_URL_REGEX','.ipa','/usage.log','2380460xFHSej','browserstackLocal','VANILLA','https://api.browserstack.com','ERR_SOCKS_CONNECTION_FAILED','AUTOLOGCAPTURE_NOTIFICATION','...[TRUNCATED]','COMMONJS','12|0|9|5|3|10|11|1|4|2|6|7|8','wss://cdp-devtestops.bsstag.com/playwright?caps=','env','FRAMEWORKS','https://automate-preprod.bsstag.com/dashboard/v2/builds/','INFO','PLAYWRIGHT_HUB_URL','percy','invalidKeys','root','ERR_CONNECTION_ABORTED','DEBUG_LOG_FILE_NAME','browserstackAutomation','httpProxy','mandatoryDependency','OBSERVABILITY_SUPPORTED_FWS','ERR_SOCKS_CONNECTION_HOST_UNREACHABLE','MOCHA','testObservabilityOptions','browserstack','TCG_AUTH_TIMEOUT','ERR_FAILED','edgeOptions','https://tcg.browserstack.com','invalidTestInputType','codeceptjs-cucumber','browserVersion','HEALING_FAILURE_TIMEOUT','NIGHTWATCH','Cucumber-JS','PRODUCT_IF_NOT_BROWSERSTACK_INFRA','230uePhfr','https://edsstaging.bsstag.com','ROOT_REGEX','Mocha','360cHPnxK','Specify\x20--help\x20for\x20available\x20options','SDKTestInvalidTcgAuthResponseWithUserImpact','Run\x20mocha\x20tests\x20on\x20browserstack','app-automate','authToken','INTEGRATIONS','https://automate-devtestops.bsstag.com/dashboard/v2/builds/','unhandledPromptBehavior','https://api-cloud.browserstack.com','Run\x20js\x20tests\x20on\x20browserstack','Playwright','BROWSERSTACK_API_URL','vanilla','ERR_MANDATORY_PROXY_CONFIGURATION_FAILED','cucumber','ERR_ADDRESS_INVALID','OBSERVABILITY_UPLOAD_URL','turboScaleOptions','ERR_NAME_NOT_RESOLVED','0|7|10|3|11|9|1|8|4|6|5|12|2','prod','shows\x20version\x20information','framework','NUDGE_LOCAL_ERRORS','O11Y_URL','BSTACK_DELTA','testOrchestrationOptions','INVALID_INIT_RESP_WITH_USER_IMPACT','ERR_NAME_RESOLUTION_FAILED','ERR_SOCKET_NOT_CONNECTED','name\x20property\x20must\x20be\x20unique\x20within\x20%s\x20key\x20in\x20playwrightConfigOptions\x20in\x20the\x20yml\x20file','ERR_CONNECTION_TIMED_OUT','PLAYWRIGHT_CONFIG_OPTION_ERRORS','HEALING_LOG_DATA_TIMEOUT','PLAYWRIGHT_TRACE_LOGS','SHAREABLE_ID_REGEX','customVariables','ERR_CONNECTION_RESET','browserStackLocalOptions','ERR_CONNECTION_REFUSED','VERSION','logLevel','browserstack-ats.com','HST','12MfBCNX','1gimhmO','239437WNpYvR','TCG_URL','Run\x20codeceptjs\x20tests\x20on\x20browserstack','1849861oJoQRz','sdk/v1/update_cli','browserstack.userName','TCG_DOWN','browserstack.overridelocalInfo.userAuthToken','localProxyUser','observability','POLL_HEALING_RESULT_TIMEOUT','MAX_GIT_META_DATA_SIZE_IN_BYTES','APP_AUTOMATE','Project\x20and\x20debug\x20logs\x20are\x20captured\x20by\x20default.\x20To\x20disable,\x20set\x20disableAutoCaptureLogs:\x20true\x20in\x20config.','FUNNEL_INSTRUMENTATION_API_URL','https://upload-observability.browserstack.com','testContextOptions','HELP','JEST','https://tcg-preprod.bsstag.com','acceptInsecureCerts'];a52_0x4ab5=function(){return _0x1b4106;};return a52_0x4ab5();}a52_0x7a87ef[a52_0x270f13(0x181)]=a52_0x270f13(0xfe);const a52_0x4a440b={};a52_0x4a440b['INFO']='Create\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing';const a52_0x15d9b4={};a52_0x15d9b4[a52_0x270f13(0x181)]='Connect\x20on\x20prem\x20instances\x20to\x20Browserstack';const a52_0x4d26cc={};a52_0x4d26cc[a52_0x270f13(0x145)]=a52_0x270f13(0xd8),a52_0x4d26cc[a52_0x270f13(0xbb)]='mocha',a52_0x4d26cc[a52_0x270f13(0x10e)]=a52_0x270f13(0x15b),a52_0x4d26cc['CODECEPT']=a52_0x270f13(0x121),a52_0x4d26cc['CODECEPT_CUCUMBER']=a52_0x270f13(0xc3),a52_0x4d26cc[a52_0x270f13(0x147)]=a52_0x270f13(0xdc);const a52_0x2c93f8={};a52_0x2c93f8[a52_0x270f13(0x184)]=a52_0x270f13(0x13c),a52_0x2c93f8[a52_0x270f13(0x120)]=a52_0x270f13(0xec),a52_0x2c93f8[a52_0x270f13(0xb8)]=a52_0x270f13(0x151),a52_0x2c93f8[a52_0x270f13(0xc2)]='Invalid\x20value\x20for\x20\x27%s\x27\x20key\x20in\x20the\x20yml\x20file';const a52_0x34073f={};a52_0x34073f[a52_0x270f13(0x17b)]=a52_0x270f13(0x11f),a52_0x34073f[a52_0x270f13(0x118)]=a52_0x270f13(0x125);const a52_0x3fff8d={};a52_0x3fff8d[a52_0x270f13(0xcc)]=0xfde8,a52_0x3fff8d[a52_0x270f13(0xc7)]=0xfde8,a52_0x3fff8d[a52_0x270f13(0x112)]=0x186a0;const a52_0x52b909={};a52_0x52b909[a52_0x270f13(0x185)]=[a52_0x270f13(0x11a),'accessKey','httpProxy',a52_0x270f13(0x13a),'customVariables',a52_0x270f13(0x101),a52_0x270f13(0x152),'proxyPassword',a52_0x270f13(0xd2),'proxyUrl',a52_0x270f13(0x103)],a52_0x52b909[a52_0x270f13(0xf4)]=[a52_0x270f13(0x144),'proxyPass',a52_0x270f13(0x104),'localProxyPass'];const a52_0x4fcbb6={};a52_0x4fcbb6[a52_0x270f13(0x175)]=a52_0x270f13(0x175),a52_0x4fcbb6[a52_0x270f13(0xf4)]=a52_0x270f13(0xf4),a52_0x4fcbb6[a52_0x270f13(0x157)]='browserStackLocalOptions',a52_0x4fcbb6[a52_0x270f13(0x14a)]=a52_0x270f13(0x14a),a52_0x4fcbb6[a52_0x270f13(0x169)]=a52_0x270f13(0x169),a52_0x4fcbb6[a52_0x270f13(0xf7)]='logLevel',a52_0x4fcbb6[a52_0x270f13(0xb7)]='httpProxy',a52_0x4fcbb6[a52_0x270f13(0x13a)]=a52_0x270f13(0x13a),a52_0x4fcbb6[a52_0x270f13(0xe4)]='framework',a52_0x4fcbb6['testContextOptions']=a52_0x270f13(0x10c),a52_0x4fcbb6[a52_0x270f13(0x159)]='testObservability',a52_0x4fcbb6[a52_0x270f13(0xbc)]=a52_0x270f13(0xbc),a52_0x4fcbb6['customVariables']=a52_0x270f13(0xf2),a52_0x4fcbb6[a52_0x270f13(0x13e)]='browserstackAutomation',a52_0x4fcbb6['browserstackAutomation']=a52_0x270f13(0x188),a52_0x4fcbb6[a52_0x270f13(0x162)]=a52_0x270f13(0x162),a52_0x4fcbb6['percy']=a52_0x270f13(0x183),a52_0x4fcbb6[a52_0x270f13(0x160)]=a52_0x270f13(0x160),a52_0x4fcbb6['percyCaptureMode']=a52_0x270f13(0x15f),a52_0x4fcbb6[a52_0x270f13(0x127)]=a52_0x270f13(0x127),a52_0x4fcbb6[a52_0x270f13(0x139)]='accessibility',a52_0x4fcbb6[a52_0x270f13(0x115)]=a52_0x270f13(0x115),a52_0x4fcbb6[a52_0x270f13(0x14d)]='turboScale',a52_0x4fcbb6['turboScaleOptions']=a52_0x270f13(0xdf),a52_0x4fcbb6[a52_0x270f13(0x16d)]=a52_0x270f13(0x16d),a52_0x4fcbb6[a52_0x270f13(0xe8)]=a52_0x270f13(0xe8);const a52_0xee9363={};a52_0xee9363[a52_0x270f13(0xf6)]=a52_0x4d6c7c,a52_0xee9363['JEST']=a52_0x3f5427,a52_0xee9363[a52_0x270f13(0xbb)]=a52_0x673d0e,a52_0xee9363[a52_0x270f13(0x147)]=a52_0x59763a,a52_0xee9363[a52_0x270f13(0x176)]=a52_0x2127b7,a52_0xee9363[a52_0x270f13(0xc6)]=a52_0x44e134,a52_0xee9363[a52_0x270f13(0x145)]=a52_0x126fe0,a52_0xee9363['CODECEPTJS']=a52_0x7a87ef,a52_0xee9363[a52_0x270f13(0xf9)]=a52_0x4a440b,a52_0xee9363[a52_0x270f13(0xd3)]=a52_0x15d9b4,a52_0xee9363[a52_0x270f13(0xe7)]=0xf*0x3c*0x3e8,a52_0xee9363['hubUrl']=a52_0x270f13(0x117),a52_0xee9363[a52_0x270f13(0xfd)]=a52_0x270f13(0xc1),a52_0xee9363['TCG_REGION']=a52_0x270f13(0x137),a52_0xee9363['HUB_URL_REGEX']=/^hub(-[a-z]+)?\.browserstack\.com$/,a52_0xee9363[a52_0x270f13(0x171)]=/^[a-zA-Z0-9]+-hub\.browserstack-ats\.com$/,a52_0xee9363['ATS_WSS_URL_REGEX']=/wss?:\/\/(?:[a-zA-Z0-9_-]+-)?hub(?:-ft)?\.browserstack(-ats)?\.com/,a52_0xee9363[a52_0x270f13(0x123)]=[a52_0x270f13(0x110),'pageLoadStrategy',a52_0x270f13(0x12e),a52_0x270f13(0xd5),'timeouts',a52_0x270f13(0x13b),a52_0x270f13(0xc4),'acceptSslCerts','acceptSslCert','chromeOptions',a52_0x270f13(0x143),a52_0x270f13(0xc0),a52_0x270f13(0x11d)],a52_0xee9363[a52_0x270f13(0xcb)]=/^[\w-]+:.*$/,a52_0xee9363[a52_0x270f13(0x148)]=[/localhost/,/bs-local.com/,/^127\./,/^10\./,/^172\.1[6-9]\./,/^172\.2[0-9]\./,/^172\.3[0-1]\./,/^192\.168\./],a52_0xee9363[a52_0x270f13(0x168)]='https://eds.browserstack.com',a52_0xee9363[a52_0x270f13(0xd9)]=a52_0x270f13(0x177),a52_0xee9363['APP_UPLOAD_URL']=a52_0x270f13(0xd6),a52_0xee9363[a52_0x270f13(0x13f)]=a52_0x270f13(0x100),a52_0xee9363[a52_0x270f13(0x10a)]=a52_0x270f13(0x15e),a52_0xee9363['AUTOMATE_PRODUCTS']=['automate',a52_0x270f13(0x105)],a52_0xee9363['APP_AUTOMATE_PRODUCTS']=[a52_0x270f13(0xd1),a52_0x270f13(0x105)],a52_0xee9363[a52_0x270f13(0xc8)]=[a52_0x270f13(0x105)],a52_0xee9363[a52_0x270f13(0xde)]=a52_0x270f13(0x10b),a52_0xee9363[a52_0x270f13(0xb9)]=[a52_0x270f13(0x150),'Playwright'],a52_0xee9363[a52_0x270f13(0x166)]=[a52_0x270f13(0x113)],a52_0xee9363[a52_0x270f13(0x156)]='https://automate.browserstack.com/dashboard/v2/builds/',a52_0xee9363[a52_0x270f13(0x146)]=a52_0x270f13(0x124),a52_0xee9363[a52_0x270f13(0x108)]=[a52_0x270f13(0xd1)],a52_0xee9363[a52_0x270f13(0xe5)]=[a52_0x270f13(0xbf),a52_0x270f13(0x149),a52_0x270f13(0x16f),a52_0x270f13(0x11e),a52_0x270f13(0xeb),'ERR_CONNECTION_CLOSED',a52_0x270f13(0xf3),a52_0x270f13(0xf5),a52_0x270f13(0x186),a52_0x270f13(0x14e),a52_0x270f13(0xe0),a52_0x270f13(0xdd),a52_0x270f13(0x129),'ERR_TUNNEL_CONNECTION_FAILED',a52_0x270f13(0xed),a52_0x270f13(0x178),a52_0x270f13(0xba),'ERR_PROXY_CONNECTION_FAILED','ERR_NAME_NOT_RESOLVED',a52_0x270f13(0xea),a52_0x270f13(0xdb)],a52_0xee9363['VALID_APP_EXTENSION']=[a52_0x270f13(0x111),'.aab',a52_0x270f13(0x172)],a52_0xee9363['CUSTOM_ID_REGEX']=a52_0x270f13(0x136),a52_0xee9363[a52_0x270f13(0xf1)]=a52_0x270f13(0x16c),a52_0xee9363[a52_0x270f13(0x154)]='./browserstack-artifacts/',a52_0xee9363['PLAYWRIGHT_HUB_URL']='wss://cdp.browserstack.com/playwright?caps=',a52_0xee9363[a52_0x270f13(0x17f)]=a52_0x4d26cc,a52_0xee9363[a52_0x270f13(0x142)]=[a52_0x270f13(0x15b),'mocha'],a52_0xee9363[a52_0x270f13(0xee)]=a52_0x2c93f8,a52_0xee9363[a52_0x270f13(0x179)]=a52_0x270f13(0x109),a52_0xee9363[a52_0x270f13(0x12f)]=a52_0x34073f,a52_0xee9363[a52_0x270f13(0x107)]=0x40*0x400,a52_0xee9363['GIT_META_DATA_TRUNCATED']=a52_0x270f13(0x17a),a52_0xee9363[a52_0x270f13(0x133)]=a52_0x270f13(0x15a),a52_0xee9363[a52_0x270f13(0x102)]='SDKTestTcgDownResponse',a52_0xee9363[a52_0x270f13(0xe9)]=a52_0x270f13(0xcf),a52_0xee9363['TCG_AUTH_FAILURE']=a52_0x270f13(0x126),a52_0xee9363[a52_0x270f13(0x12c)]=a52_0x270f13(0x14c),a52_0xee9363['AI_INIT_FAILURE']=a52_0x270f13(0x158),a52_0xee9363[a52_0x270f13(0x15c)]=a52_0x270f13(0x12a),a52_0xee9363[a52_0x270f13(0xbe)]=0x1388,a52_0xee9363[a52_0x270f13(0x165)]=0x1388,a52_0xee9363[a52_0x270f13(0xef)]=0x1388,a52_0xee9363[a52_0x270f13(0xc5)]=0x1388,a52_0xee9363[a52_0x270f13(0x106)]=0xc350,a52_0xee9363['TEST_FRAMEWORK_HOOK_TIMEOUT']=a52_0x3fff8d,a52_0xee9363['REDACTED_KEYS']=a52_0x52b909,a52_0xee9363[a52_0x270f13(0x131)]=[a52_0x270f13(0xda),a52_0x270f13(0x121)],a52_0xee9363[a52_0x270f13(0x13d)]=a52_0x4fcbb6,a52_0xee9363[a52_0x270f13(0x164)]=a52_0x270f13(0x173),a52_0xee9363[a52_0x270f13(0x187)]=a52_0x270f13(0x130),a52_0xee9363[a52_0x270f13(0x153)]=a52_0x270f13(0x135),a52_0xee9363['BSTACK_ATS_URL']=a52_0x270f13(0xf8),a52_0xee9363[a52_0x270f13(0xe6)]='https://observability.browserstack.com',a52_0xee9363[a52_0x270f13(0x170)]=a52_0x270f13(0xbd),a52_0xee9363['CLI_SUPPORTED_FRAMEWORKS']=[a52_0x270f13(0x114)],a52_0xee9363[a52_0x270f13(0xf0)]=a52_0x270f13(0xf0),module[a52_0x270f13(0x14b)]=a52_0xee9363;const _env=(process[a52_0x270f13(0x17e)]['BROWSERSTACK_ENV']||a52_0x270f13(0xe2))[a52_0x270f13(0x11b)]();if(_env===a52_0x270f13(0x140)||_env===a52_0x270f13(0x128)){const gORjpX=a52_0x270f13(0xe1)[a52_0x270f13(0x12b)]('|');let PhfRLq=0x0;while(!![]){switch(gORjpX[PhfRLq++]){case'0':module[a52_0x270f13(0x14b)]['hubUrl']=a52_0x270f13(0x15d);continue;case'1':module[a52_0x270f13(0x14b)]['APP_UPLOAD_URL']=a52_0x270f13(0x14f);continue;case'2':module[a52_0x270f13(0x14b)][a52_0x270f13(0x170)]=a52_0x270f13(0x16a);continue;case'3':module[a52_0x270f13(0x14b)][a52_0x270f13(0x132)]=/^hub(-[a-z]+)?\.bsstag\.com$/;continue;case'4':module[a52_0x270f13(0x14b)][a52_0x270f13(0x153)]=a52_0x270f13(0x141);continue;case'5':module[a52_0x270f13(0x14b)][a52_0x270f13(0xde)]='https://upload-observability-devtestops-ssi.bsstag.com';continue;case'6':module['exports']['O11Y_URL']='https://observability-devtestops.bsstag.com';continue;case'7':module[a52_0x270f13(0x14b)][a52_0x270f13(0xd9)]='https://apidevtestops.bsstag.com';continue;case'8':module['exports'][a52_0x270f13(0x182)]=a52_0x270f13(0x17d);continue;case'9':module[a52_0x270f13(0x14b)]['BROWSERSTACK_APP_AUTOMATE_URL']='https://app-automate-devtestops.bsstag.com/dashboard/v2/builds/';continue;case'10':module['exports'][a52_0x270f13(0xfd)]='https://tcg.bsstag.com';continue;case'11':module['exports']['BROWSERSTACK_AUTOMATE_URL']=a52_0x270f13(0xd4);continue;case'12':module[a52_0x270f13(0x14b)][a52_0x270f13(0x168)]=a52_0x270f13(0xca);continue;}break;}}else{if(_env==='preprod'||_env===a52_0x270f13(0x155)){const rnluBb=a52_0x270f13(0x17c)['split']('|');let srCniK=0x0;while(!![]){switch(rnluBb[srCniK++]){case'0':module[a52_0x270f13(0x14b)][a52_0x270f13(0xd9)]=a52_0x270f13(0x134);continue;case'1':module[a52_0x270f13(0x14b)]['PLAYWRIGHT_HUB_URL']=a52_0x270f13(0x119);continue;case'2':module[a52_0x270f13(0x14b)][a52_0x270f13(0xe6)]='https://observability-preprod.bsstag.com';continue;case'3':module[a52_0x270f13(0x14b)][a52_0x270f13(0x156)]=a52_0x270f13(0x180);continue;case'4':module[a52_0x270f13(0x14b)][a52_0x270f13(0x153)]=a52_0x270f13(0x141);continue;case'5':module['exports']['HUB_URL_REGEX']=/^hub(-[a-z]+)?\.bsstag\.com$/;continue;case'6':module[a52_0x270f13(0x14b)][a52_0x270f13(0xde)]='https://upload-observability-preprod.bsstag.com';continue;case'7':module[a52_0x270f13(0x14b)][a52_0x270f13(0x168)]=a52_0x270f13(0xca);continue;case'8':module[a52_0x270f13(0x14b)][a52_0x270f13(0x170)]=a52_0x270f13(0x16a);continue;case'9':module[a52_0x270f13(0x14b)]['TCG_URL']=a52_0x270f13(0x10f);continue;case'10':module[a52_0x270f13(0x14b)][a52_0x270f13(0x146)]='https://app-automate-preprod.bsstag.com/dashboard/v2/builds/';continue;case'11':module[a52_0x270f13(0x14b)]['APP_UPLOAD_URL']='https://api-preprod.bsstag.com';continue;case'12':module[a52_0x270f13(0x14b)][a52_0x270f13(0x161)]='https://hub-preprod.bsstag.com/wd/hub';continue;}break;}}}
1
+ const a52_0x56d72c=a52_0x6292;(function(_0x1a2f47,_0xde36f8){const _0x4b341a=a52_0x6292,_0x4e8919=_0x1a2f47();while(!![]){try{const _0x324d4c=parseInt(_0x4b341a(0x1c6))/0x1+-parseInt(_0x4b341a(0x1a9))/0x2*(parseInt(_0x4b341a(0x257))/0x3)+parseInt(_0x4b341a(0x22f))/0x4*(-parseInt(_0x4b341a(0x19b))/0x5)+-parseInt(_0x4b341a(0x206))/0x6+parseInt(_0x4b341a(0x225))/0x7*(parseInt(_0x4b341a(0x1d7))/0x8)+-parseInt(_0x4b341a(0x1a1))/0x9*(parseInt(_0x4b341a(0x259))/0xa)+parseInt(_0x4b341a(0x21e))/0xb*(parseInt(_0x4b341a(0x1bf))/0xc);if(_0x324d4c===_0xde36f8)break;else _0x4e8919['push'](_0x4e8919['shift']());}catch(_0x27c421){_0x4e8919['push'](_0x4e8919['shift']());}}}(a52_0x1006,0xca730));const a52_0x12259c={};a52_0x12259c['INFO']=a52_0x56d72c(0x249),a52_0x12259c[a52_0x56d72c(0x1d0)]=a52_0x56d72c(0x1e7);const a52_0xbeb7f5={};a52_0xbeb7f5['INFO']=a52_0x56d72c(0x1ed);const a52_0x44a8e4={};a52_0x44a8e4['INFO']='Run\x20mocha\x20tests\x20on\x20browserstack';const a52_0x237d4a={};a52_0x237d4a[a52_0x56d72c(0x1bd)]=a52_0x56d72c(0x1f7);const a52_0x3180a5={};a52_0x3180a5[a52_0x56d72c(0x1bd)]=a52_0x56d72c(0x1af);const a52_0x508bca={};a52_0x508bca['INFO']='Run\x20nightwatch\x20tests\x20on\x20browserstack';const a52_0xe2578a={};a52_0xe2578a['INFO']=a52_0x56d72c(0x23d);const a52_0x30acd4={};a52_0x30acd4['INFO']=a52_0x56d72c(0x23f);const a52_0x1c8c67={};a52_0x1c8c67[a52_0x56d72c(0x1bd)]=a52_0x56d72c(0x1a2);const a52_0x3f69da={};a52_0x3f69da[a52_0x56d72c(0x1bd)]=a52_0x56d72c(0x230);const a52_0x537164={};a52_0x537164[a52_0x56d72c(0x23c)]=a52_0x56d72c(0x224),a52_0x537164[a52_0x56d72c(0x20e)]='mocha',a52_0x537164[a52_0x56d72c(0x247)]='jest',a52_0x537164['CODECEPT']=a52_0x56d72c(0x21f),a52_0x537164[a52_0x56d72c(0x20f)]=a52_0x56d72c(0x1cf),a52_0x537164['CUCUMBER']=a52_0x56d72c(0x1ee);function a52_0x1006(){const _0x3d9225=['HUB_URL_REGEX','staging','codeceptjs-cucumber','HELP','APP_AUTOMATE','wss://cdp-preprod.bsstag.com/playwright?caps=','parallelsPerPlatform','ERR_FAILED','https://automate-devtestops.bsstag.com/dashboard/v2/builds/','proxyPassword','7536fdqmFl','https://eds.browserstack.com','POLL_HEALING_RESULT_TIMEOUT','httpsProxy','SDKTestTcgDownResponse','strictFileInteractability','acceptSslCerts','NUDGE_LOCAL_ERRORS','https://api.browserstack.com','httpProxy','https://api-preprod.bsstag.com','TEST_FRAMEWORK_HOOK_TIMEOUT','O11Y_URL','TCG_AUTH_TIMEOUT','invalidKeys','ERR_SOCKS_CONNECTION_FAILED','Specify\x20--help\x20for\x20available\x20options','Invalid\x20value\x20for\x20\x27%s\x27\x20key\x20in\x20the\x20yml\x20file','mandatoryDependency','browserStackLocalOptions','testOrchestrationOptions','MAX_GIT_META_DATA_SIZE_IN_BYTES','Run\x20jest\x20tests\x20on\x20browserstack','cucumber','CLI_SUPPORTED_FRAMEWORKS','bsstag','accessKey','timeouts','AI_INIT_FAILURE','SDKTestTcgAuthFailure','PRODUCT_IF_NOT_BROWSERSTACK_INFRA','https://hub-preprod.bsstag.com/wd/hub','Run\x20cucumber-js\x20tests\x20on\x20browserstack','AI_ENABLED_FRAMEWORK','./browserstack-artifacts/','bsstag.com','percyCaptureMode','...[TRUNCATED]','app-automate','https://upload-observability-devtestops-ssi.bsstag.com','COMMONJS','SET_TCG_TOKEN_TIMEOUT','BSTACK_URL','prod','/usage.log','TCG_URL','https://tcg.bsstag.com','4822944cpvdjD','.apk','toLowerCase','testContextOptions','APP_UPLOAD_URL','Mocha','https://automate-preprod.bsstag.com/dashboard/v2/builds/','CODECEPTJS','MOCHA','CODECEPT_CUCUMBER','Project\x20and\x20debug\x20logs\x20are\x20captured\x20by\x20default.\x20To\x20disable,\x20set\x20disableAutoCaptureLogs:\x20true\x20in\x20config.','logLevel','accessibility','https://app-automate.browserstack.com/dashboard/v2/builds/','UPDATED_CLI_ENDPOINT','proxyUrl','ATS_WSS_URL_REGEX','AUTOLOGCAPTURE_NOTIFICATION','ATS_HUB_URL_REGEX','FUNNEL_INSTRUMENTATION_API_URL','ROOT_REGEX','turboScaleOptions','SDKTestInitFailedResponse','ERR_SOCKET_NOT_CONNECTED','1122CDshOW','codeceptjs','userName','PACKAGE_TYPE','3|10|6|1|7|4|0|8|5|11|12|2|9','name\x20and\x20testMatch\x20are\x20required\x20for\x20the\x20%s\x20key\x20in\x20playwrightConfigOptions\x20in\x20the\x20yml\x20file','Playwright','6552OcIBiS','chromeOptions','ERR_PROXY_CONNECTION_FAILED','BROWSERSTACK','accessibilityOptions','turboScale','Invalid\x20property\x20added\x20for\x20the\x20%s\x20in\x20playwrightConfigOptions\x20in\x20the\x20yml\x20file','SDK_INSTRUMENTATION_CONFIG','5|6|10|8|3|11|12|7|2|9|0|4|1','VERSION','4649180ZeCTpH','Connect\x20on\x20prem\x20instances\x20to\x20Browserstack','platforms','PLAYWRIGHT_TRACE_LOGS','REDACTED_KEYS','authToken','NIGHTWATCH','Upgrade\x20required','.ipa','BSTACK_DELTA','localProxyUser','AUTOMATE','stag','PLAYWRIGHT','Run\x20playwright\x20tests\x20on\x20Browserstack','CI_ARTIFACTS_PATH','Run\x20codeceptjs\x20tests\x20on\x20browserstack','MODULE','BROWSERSTACK_APP_AUTOMATE_URL','split','sdk/v1/update_cli','ERR_CONNECTION_REFUSED','testObservabilityOptions','ERR_CONNECTION_FAILED','JEST','ERR_NETWORK_CHANGED','shows\x20version\x20information','browserstack.com','BROWSERSTACK_API_URL','testObservability','https://observability-devtestops.bsstag.com','customVariables','mocha','ERR_SOCKS_CONNECTION_HOST_UNREACHABLE','https://edsstaging.bsstag.com','PLAYWRIGHT_CONFIG_OPTION_ERRORS','BSTACK_ATS_URL','automate','INTEGRATIONS','rerunTests','12icfOtG','SDKTestInvalidTcgAuthResponseWithUserImpact','16519420joEvpq','https://api-cloud-devtestops.bsstag.com','browserstack.userName','vanilla','VANILLA','exports','ERR_NAME_NOT_RESOLVED','INVALID_INIT_RESP_WITH_USER_IMPACT','EDS_URL','VALID_APP_EXTENSION','percy','ERR_CONNECTION_ABORTED','ERR_ADDRESS_INVALID','localOptions','preprod','5kofwVR','HEALING_LOG_DATA_TIMEOUT','browserstackAutomation','ieOptions','BROWSERSTACK_AUTOMATE_URL','PLAYWRIGHT_HUB_URL','9flMvTm','Create\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing','PRIVATE_DOMAIN_OR_IP_REGEX','FRAMEWORKS','https://api-cloud.browserstack.com','observability','env','TCG_AUTH_FAILURE','687334vujzpK','browserstack.overridelocalInfo.userAuthToken','AUTOMATE_PRODUCTS','browserstackLocal','OBSERVABILITY_UPLOAD_URL','disableAutoCaptureLogs','Run\x20js\x20tests\x20on\x20browserstack','OBSERVABILITY_SUPPORTED_FWS','hubUrl','^[a-zA-Z0-9_.-]*/[a-zA-Z0-9_.-]*$','CUSTOM_ID_REGEX','https://app-automate-devtestops.bsstag.com/dashboard/v2/builds/','CUCUMBER','https://tcg-preprod.bsstag.com','framework','acceptInsecureCerts','browserName','/usage-debug.log','ERR_ADDRESS_UNREACHABLE','https://automate.browserstack.com/dashboard/v2/builds/','INFO','https://hub.browserstack.com/wd/hub','580512WirdfC','ERR_CONNECTION_RESET','https://observability.browserstack.com','browserstack','LOG_FILE_NAME','browserVersion','ERR_CONNECTION_CLOSED','5897pRYqZn','proxySettings','TCG_REGION','jest','TCG_DOWN','pre-prod','APP_AUTOMATE_PRODUCTS'];a52_0x1006=function(){return _0x3d9225;};return a52_0x1006();}const a52_0x5cc920={};a52_0x5cc920[a52_0x56d72c(0x1e5)]=a52_0x56d72c(0x22b),a52_0x5cc920['uniqueDependency']='name\x20property\x20must\x20be\x20unique\x20within\x20%s\x20key\x20in\x20playwrightConfigOptions\x20in\x20the\x20yml\x20file',a52_0x5cc920[a52_0x56d72c(0x1e9)]=a52_0x56d72c(0x223),a52_0x5cc920['invalidTestInputType']=a52_0x56d72c(0x1e8);const a52_0x25381c={};a52_0x25381c[a52_0x56d72c(0x1ff)]='commonjs',a52_0x25381c[a52_0x56d72c(0x240)]='module';const a52_0xed51ec={};a52_0xed51ec[a52_0x56d72c(0x20b)]=0xfde8,a52_0xed51ec['Cucumber-JS']=0xfde8,a52_0xed51ec['Jest']=0x186a0;const a52_0x359053={};a52_0x359053['root']=[a52_0x56d72c(0x220),a52_0x56d72c(0x1f1),'httpProxy',a52_0x56d72c(0x1da),a52_0x56d72c(0x24e),a52_0x56d72c(0x25b),'browserstack.accessKey',a52_0x56d72c(0x1d6),a52_0x56d72c(0x234),a52_0x56d72c(0x215),a52_0x56d72c(0x1aa)],a52_0x359053['browserStackLocalOptions']=['proxyUser','proxyPass',a52_0x56d72c(0x239),'localProxyPass'];const a52_0x1a1f21={};a52_0x1a1f21[a52_0x56d72c(0x1ac)]='browserstackLocal',a52_0x1a1f21[a52_0x56d72c(0x1ea)]=a52_0x56d72c(0x1ea),a52_0x1a1f21[a52_0x56d72c(0x266)]=a52_0x56d72c(0x1ea),a52_0x1a1f21[a52_0x56d72c(0x1d3)]=a52_0x56d72c(0x1d3),a52_0x1a1f21[a52_0x56d72c(0x231)]=a52_0x56d72c(0x231),a52_0x1a1f21['logLevel']=a52_0x56d72c(0x211),a52_0x1a1f21[a52_0x56d72c(0x1e0)]=a52_0x56d72c(0x1e0),a52_0x1a1f21[a52_0x56d72c(0x1da)]='httpsProxy',a52_0x1a1f21[a52_0x56d72c(0x1b7)]=a52_0x56d72c(0x1b7),a52_0x1a1f21[a52_0x56d72c(0x209)]='testContextOptions',a52_0x1a1f21[a52_0x56d72c(0x24c)]=a52_0x56d72c(0x24c),a52_0x1a1f21[a52_0x56d72c(0x245)]=a52_0x56d72c(0x245),a52_0x1a1f21[a52_0x56d72c(0x24e)]=a52_0x56d72c(0x24e),a52_0x1a1f21['automation']=a52_0x56d72c(0x19d),a52_0x1a1f21[a52_0x56d72c(0x19d)]='browserstackAutomation',a52_0x1a1f21['rerunTests']=a52_0x56d72c(0x256),a52_0x1a1f21[a52_0x56d72c(0x263)]='percy',a52_0x1a1f21['percyOptions']='percyOptions',a52_0x1a1f21[a52_0x56d72c(0x1fb)]='percyCaptureMode',a52_0x1a1f21[a52_0x56d72c(0x1ae)]=a52_0x56d72c(0x1ae),a52_0x1a1f21[a52_0x56d72c(0x212)]=a52_0x56d72c(0x212),a52_0x1a1f21[a52_0x56d72c(0x229)]=a52_0x56d72c(0x229),a52_0x1a1f21[a52_0x56d72c(0x22a)]=a52_0x56d72c(0x22a),a52_0x1a1f21[a52_0x56d72c(0x21b)]='turboScaleOptions',a52_0x1a1f21[a52_0x56d72c(0x1c7)]='proxySettings',a52_0x1a1f21[a52_0x56d72c(0x1eb)]='testOrchestrationOptions';function a52_0x6292(_0x13cbb1,_0x40d400){const _0x100668=a52_0x1006();return a52_0x6292=function(_0x6292ca,_0x2393ba){_0x6292ca=_0x6292ca-0x19b;let _0x1c35c2=_0x100668[_0x6292ca];return _0x1c35c2;},a52_0x6292(_0x13cbb1,_0x40d400);}const a52_0x3c0902={};a52_0x3c0902[a52_0x56d72c(0x22e)]=a52_0x12259c,a52_0x3c0902[a52_0x56d72c(0x247)]=a52_0xbeb7f5,a52_0x3c0902[a52_0x56d72c(0x20e)]=a52_0x44a8e4,a52_0x3c0902[a52_0x56d72c(0x1b5)]=a52_0x237d4a,a52_0x3c0902[a52_0x56d72c(0x25d)]=a52_0x3180a5,a52_0x3c0902[a52_0x56d72c(0x235)]=a52_0x508bca,a52_0x3c0902[a52_0x56d72c(0x23c)]=a52_0xe2578a,a52_0x3c0902[a52_0x56d72c(0x20d)]=a52_0x30acd4,a52_0x3c0902['HST']=a52_0x1c8c67,a52_0x3c0902[a52_0x56d72c(0x255)]=a52_0x3f69da,a52_0x3c0902[a52_0x56d72c(0x238)]=0xf*0x3c*0x3e8,a52_0x3c0902['hubUrl']=a52_0x56d72c(0x1be),a52_0x3c0902[a52_0x56d72c(0x204)]='https://tcg.browserstack.com',a52_0x3c0902[a52_0x56d72c(0x1c8)]='use',a52_0x3c0902[a52_0x56d72c(0x1cd)]=/^hub(-[a-z]+)?\.browserstack\.com$/,a52_0x3c0902[a52_0x56d72c(0x218)]=/^[a-zA-Z0-9]+-hub\.browserstack-ats\.com$/,a52_0x3c0902[a52_0x56d72c(0x216)]=/wss?:\/\/(?:[a-zA-Z0-9_-]+-)?hub(?:-ft)?\.browserstack(-ats)?\.com/,a52_0x3c0902['ROOT_CAPS']=[a52_0x56d72c(0x1b8),'pageLoadStrategy',a52_0x56d72c(0x1dc),'unhandledPromptBehavior',a52_0x56d72c(0x1f2),a52_0x56d72c(0x1b9),a52_0x56d72c(0x1c4),a52_0x56d72c(0x1dd),'acceptSslCert',a52_0x56d72c(0x226),'firefoxOptions','edgeOptions',a52_0x56d72c(0x19e)],a52_0x3c0902[a52_0x56d72c(0x21a)]=/^[\w-]+:.*$/,a52_0x3c0902[a52_0x56d72c(0x1a3)]=[/localhost/,/bs-local.com/,/^127\./,/^10\./,/^172\.1[6-9]\./,/^172\.2[0-9]\./,/^172\.3[0-1]\./,/^192\.168\./],a52_0x3c0902[a52_0x56d72c(0x261)]=a52_0x56d72c(0x1d8),a52_0x3c0902[a52_0x56d72c(0x24b)]=a52_0x56d72c(0x1df),a52_0x3c0902[a52_0x56d72c(0x20a)]=a52_0x56d72c(0x1a5),a52_0x3c0902[a52_0x56d72c(0x214)]=a52_0x56d72c(0x243),a52_0x3c0902[a52_0x56d72c(0x219)]='sdk/v1/event',a52_0x3c0902[a52_0x56d72c(0x1ab)]=[a52_0x56d72c(0x254),'observability'],a52_0x3c0902[a52_0x56d72c(0x1cc)]=[a52_0x56d72c(0x1fd),a52_0x56d72c(0x1a6)],a52_0x3c0902[a52_0x56d72c(0x1f5)]=[a52_0x56d72c(0x1a6)],a52_0x3c0902[a52_0x56d72c(0x1ad)]='https://upload-observability.browserstack.com',a52_0x3c0902[a52_0x56d72c(0x1b0)]=[a52_0x56d72c(0x24f),a52_0x56d72c(0x224)],a52_0x3c0902[a52_0x56d72c(0x23a)]=[a52_0x56d72c(0x254)],a52_0x3c0902['BROWSERSTACK_AUTOMATE_URL']=a52_0x56d72c(0x1bc),a52_0x3c0902[a52_0x56d72c(0x241)]=a52_0x56d72c(0x213),a52_0x3c0902[a52_0x56d72c(0x1d1)]=[a52_0x56d72c(0x1fd)],a52_0x3c0902[a52_0x56d72c(0x1de)]=[a52_0x56d72c(0x1d4),'ERR_TIMED_OUT','ERR_BLOCKED_BY_CLIENT',a52_0x56d72c(0x248),a52_0x56d72c(0x21d),a52_0x56d72c(0x1c5),a52_0x56d72c(0x1c0),a52_0x56d72c(0x244),a52_0x56d72c(0x264),a52_0x56d72c(0x246),a52_0x56d72c(0x25f),a52_0x56d72c(0x265),a52_0x56d72c(0x1bb),'ERR_TUNNEL_CONNECTION_FAILED','ERR_CONNECTION_TIMED_OUT',a52_0x56d72c(0x1e6),a52_0x56d72c(0x250),a52_0x56d72c(0x227),a52_0x56d72c(0x25f),'ERR_NAME_RESOLUTION_FAILED','ERR_MANDATORY_PROXY_CONFIGURATION_FAILED'],a52_0x3c0902[a52_0x56d72c(0x262)]=[a52_0x56d72c(0x207),'.aab',a52_0x56d72c(0x237)],a52_0x3c0902[a52_0x56d72c(0x1b3)]='^[a-zA-Z0-9_.-]*$',a52_0x3c0902['SHAREABLE_ID_REGEX']=a52_0x56d72c(0x1b2),a52_0x3c0902[a52_0x56d72c(0x23e)]=a52_0x56d72c(0x1f9),a52_0x3c0902['PLAYWRIGHT_HUB_URL']='wss://cdp.browserstack.com/playwright?caps=',a52_0x3c0902[a52_0x56d72c(0x1a4)]=a52_0x537164,a52_0x3c0902['PERCY_SUPPORTED_FRAMEWORKS']=[a52_0x56d72c(0x1c9),a52_0x56d72c(0x24f)],a52_0x3c0902[a52_0x56d72c(0x252)]=a52_0x5cc920,a52_0x3c0902[a52_0x56d72c(0x217)]=a52_0x56d72c(0x210),a52_0x3c0902[a52_0x56d72c(0x221)]=a52_0x25381c,a52_0x3c0902[a52_0x56d72c(0x1ec)]=0x40*0x400,a52_0x3c0902['GIT_META_DATA_TRUNCATED']=a52_0x56d72c(0x1fc),a52_0x3c0902['UPGRADE_REQUIRED']=a52_0x56d72c(0x236),a52_0x3c0902[a52_0x56d72c(0x1ca)]=a52_0x56d72c(0x1db),a52_0x3c0902[a52_0x56d72c(0x260)]=a52_0x56d72c(0x258),a52_0x3c0902[a52_0x56d72c(0x1a8)]=a52_0x56d72c(0x1f4),a52_0x3c0902['AI_INIT_SUCCESSFUL']='SDKTestTcgtInitSuccessful',a52_0x3c0902[a52_0x56d72c(0x1f3)]=a52_0x56d72c(0x21c),a52_0x3c0902['AI_PROXY_FAILURE']='SDKTestTcgProxyFailure',a52_0x3c0902[a52_0x56d72c(0x1e4)]=0x1388,a52_0x3c0902[a52_0x56d72c(0x200)]=0x1388,a52_0x3c0902[a52_0x56d72c(0x19c)]=0x1388,a52_0x3c0902['HEALING_FAILURE_TIMEOUT']=0x1388,a52_0x3c0902[a52_0x56d72c(0x1d9)]=0xc350,a52_0x3c0902[a52_0x56d72c(0x1e2)]=a52_0xed51ec,a52_0x3c0902[a52_0x56d72c(0x233)]=a52_0x359053,a52_0x3c0902[a52_0x56d72c(0x1f8)]=[a52_0x56d72c(0x25c),'codeceptjs'],a52_0x3c0902[a52_0x56d72c(0x22c)]=a52_0x1a1f21,a52_0x3c0902[a52_0x56d72c(0x1c3)]=a52_0x56d72c(0x203),a52_0x3c0902['DEBUG_LOG_FILE_NAME']=a52_0x56d72c(0x1ba),a52_0x3c0902[a52_0x56d72c(0x201)]=a52_0x56d72c(0x24a),a52_0x3c0902[a52_0x56d72c(0x253)]='browserstack-ats.com',a52_0x3c0902['O11Y_URL']=a52_0x56d72c(0x1c1),a52_0x3c0902[a52_0x56d72c(0x228)]=a52_0x56d72c(0x1c2),a52_0x3c0902[a52_0x56d72c(0x1ef)]=['playwright'],a52_0x3c0902[a52_0x56d72c(0x232)]='PLAYWRIGHT_TRACE_LOGS',module[a52_0x56d72c(0x25e)]=a52_0x3c0902;const _env=(process[a52_0x56d72c(0x1a7)]['BROWSERSTACK_ENV']||a52_0x56d72c(0x202))[a52_0x56d72c(0x208)]();if(_env===a52_0x56d72c(0x1ce)||_env===a52_0x56d72c(0x23b)){const WnAymo=a52_0x56d72c(0x222)[a52_0x56d72c(0x242)]('|');let hFGdcj=0x0;while(!![]){switch(WnAymo[hFGdcj++]){case'0':module[a52_0x56d72c(0x25e)][a52_0x56d72c(0x20a)]=a52_0x56d72c(0x25a);continue;case'1':module['exports'][a52_0x56d72c(0x1cd)]=/^hub(-[a-z]+)?\.bsstag\.com$/;continue;case'2':module[a52_0x56d72c(0x25e)]['EDS_URL']='https://edsstaging.bsstag.com';continue;case'3':module[a52_0x56d72c(0x25e)][a52_0x56d72c(0x1b1)]='https://hub-devtestops.bsstag.com/wd/hub';continue;case'4':module[a52_0x56d72c(0x25e)][a52_0x56d72c(0x241)]=a52_0x56d72c(0x1b4);continue;case'5':module[a52_0x56d72c(0x25e)][a52_0x56d72c(0x201)]=a52_0x56d72c(0x1fa);continue;case'6':module[a52_0x56d72c(0x25e)][a52_0x56d72c(0x204)]=a52_0x56d72c(0x205);continue;case'7':module[a52_0x56d72c(0x25e)]['BROWSERSTACK_AUTOMATE_URL']=a52_0x56d72c(0x1d5);continue;case'8':module[a52_0x56d72c(0x25e)]['PLAYWRIGHT_HUB_URL']='wss://cdp-devtestops.bsstag.com/playwright?caps=';continue;case'9':module['exports'][a52_0x56d72c(0x228)]='bsstag';continue;case'10':module[a52_0x56d72c(0x25e)][a52_0x56d72c(0x24b)]='https://apidevtestops.bsstag.com';continue;case'11':module[a52_0x56d72c(0x25e)]['O11Y_URL']=a52_0x56d72c(0x24d);continue;case'12':module[a52_0x56d72c(0x25e)][a52_0x56d72c(0x1ad)]=a52_0x56d72c(0x1fe);continue;}break;}}else{if(_env===a52_0x56d72c(0x267)||_env===a52_0x56d72c(0x1cb)){const LmUwBm=a52_0x56d72c(0x22d)[a52_0x56d72c(0x242)]('|');let gqayYF=0x0;while(!![]){switch(LmUwBm[gqayYF++]){case'0':module[a52_0x56d72c(0x25e)][a52_0x56d72c(0x1ad)]='https://upload-observability-preprod.bsstag.com';continue;case'1':module[a52_0x56d72c(0x25e)][a52_0x56d72c(0x228)]=a52_0x56d72c(0x1f0);continue;case'2':module[a52_0x56d72c(0x25e)][a52_0x56d72c(0x201)]='bsstag.com';continue;case'3':module[a52_0x56d72c(0x25e)][a52_0x56d72c(0x19f)]=a52_0x56d72c(0x20c);continue;case'4':module[a52_0x56d72c(0x25e)]['EDS_URL']=a52_0x56d72c(0x251);continue;case'5':module[a52_0x56d72c(0x25e)][a52_0x56d72c(0x1b1)]=a52_0x56d72c(0x1f6);continue;case'6':module['exports'][a52_0x56d72c(0x24b)]=a52_0x56d72c(0x1e1);continue;case'7':module[a52_0x56d72c(0x25e)][a52_0x56d72c(0x1a0)]=a52_0x56d72c(0x1d2);continue;case'8':module[a52_0x56d72c(0x25e)][a52_0x56d72c(0x1cd)]=/^hub(-[a-z]+)?\.bsstag\.com$/;continue;case'9':module['exports'][a52_0x56d72c(0x1e3)]='https://observability-preprod.bsstag.com';continue;case'10':module[a52_0x56d72c(0x25e)][a52_0x56d72c(0x204)]=a52_0x56d72c(0x1b6);continue;case'11':module[a52_0x56d72c(0x25e)][a52_0x56d72c(0x241)]='https://app-automate-preprod.bsstag.com/dashboard/v2/builds/';continue;case'12':module[a52_0x56d72c(0x25e)][a52_0x56d72c(0x20a)]=a52_0x56d72c(0x1e1);continue;}break;}}}
@@ -1 +1 @@
1
- const a53_0x1882dc=a53_0x500f;function a53_0x500f(_0x1441aa,_0x260388){const _0x173705=a53_0x1737();return a53_0x500f=function(_0x500fe2,_0x5b3ebc){_0x500fe2=_0x500fe2-0x190;let _0x1f9229=_0x173705[_0x500fe2];return _0x1f9229;},a53_0x500f(_0x1441aa,_0x260388);}(function(_0x15b1d6,_0x271493){const _0x2d64c5=a53_0x500f,_0x138b05=_0x15b1d6();while(!![]){try{const _0x4825d6=-parseInt(_0x2d64c5(0x1a2))/0x1*(parseInt(_0x2d64c5(0x19c))/0x2)+-parseInt(_0x2d64c5(0x1a6))/0x3*(-parseInt(_0x2d64c5(0x193))/0x4)+parseInt(_0x2d64c5(0x191))/0x5*(-parseInt(_0x2d64c5(0x196))/0x6)+-parseInt(_0x2d64c5(0x19e))/0x7*(-parseInt(_0x2d64c5(0x19b))/0x8)+-parseInt(_0x2d64c5(0x1a1))/0x9*(parseInt(_0x2d64c5(0x1a0))/0xa)+parseInt(_0x2d64c5(0x199))/0xb*(-parseInt(_0x2d64c5(0x19d))/0xc)+-parseInt(_0x2d64c5(0x1a4))/0xd*(parseInt(_0x2d64c5(0x1a7))/0xe);if(_0x4825d6===_0x271493)break;else _0x138b05['push'](_0x138b05['shift']());}catch(_0x336564){_0x138b05['push'](_0x138b05['shift']());}}}(a53_0x1737,0x1a42b));function a53_0x1737(){const _0x75ca53=['join','808676oInayU','colouredLayout','788768Zmpfda','382DILAUc','12hRVTgZ','14AcxQkg','levelStr','373170VSmJKX','18YTtziW','422TLgPtT','log','122603LuVJdD','./logReportingAPI','643050bmEUok','14RyyXuT','timezoneOffset','164490qvcpwZ','layout','4nNDsbZ','level','configure','12tPunaq','yRskv'];a53_0x1737=function(){return _0x75ca53;};return a53_0x1737();}const logReportingAPI=require(a53_0x1882dc(0x1a5)),BSTestOpsLogger=new logReportingAPI({});function BSTestOpsLog4JSAppender(_0x142b0a,_0x42e711){return _0x15b3e7=>{const _0x42b13b=a53_0x500f;BSTestOpsLogger[_0x42b13b(0x1a3)]({'level':_0x15b3e7[_0x42b13b(0x194)]?_0x15b3e7['level'][_0x42b13b(0x19f)]:null,'message':_0x15b3e7['data']?_0x15b3e7['data'][_0x42b13b(0x198)]('\x20'):null});};}exports[a53_0x1882dc(0x195)]=(_0x55b972,_0x3cf9e0)=>{const _0x538aa6=a53_0x1882dc,_0x332f9a={'yRskv':function(_0xaa8088,_0x553171,_0x27aa6b){return _0xaa8088(_0x553171,_0x27aa6b);}};let _0x3d8f3f=_0x3cf9e0[_0x538aa6(0x19a)];return _0x55b972[_0x538aa6(0x192)]&&(_0x3d8f3f=_0x3cf9e0[_0x538aa6(0x192)](_0x55b972[_0x538aa6(0x192)]['type'],_0x55b972[_0x538aa6(0x192)])),_0x332f9a[_0x538aa6(0x197)](BSTestOpsLog4JSAppender,_0x3d8f3f,_0x55b972[_0x538aa6(0x190)]);};
1
+ const a53_0x39a6d7=a53_0x42f4;(function(_0x58233d,_0x548d33){const _0x4e1dc3=a53_0x42f4,_0xb2faa8=_0x58233d();while(!![]){try{const _0xc5675d=-parseInt(_0x4e1dc3(0x12e))/0x1*(-parseInt(_0x4e1dc3(0x138))/0x2)+parseInt(_0x4e1dc3(0x137))/0x3+parseInt(_0x4e1dc3(0x139))/0x4+-parseInt(_0x4e1dc3(0x131))/0x5+parseInt(_0x4e1dc3(0x136))/0x6*(-parseInt(_0x4e1dc3(0x12f))/0x7)+-parseInt(_0x4e1dc3(0x129))/0x8*(parseInt(_0x4e1dc3(0x134))/0x9)+parseInt(_0x4e1dc3(0x133))/0xa*(parseInt(_0x4e1dc3(0x12b))/0xb);if(_0xc5675d===_0x548d33)break;else _0xb2faa8['push'](_0xb2faa8['shift']());}catch(_0x35bcd3){_0xb2faa8['push'](_0xb2faa8['shift']());}}}(a53_0x3d91,0x4df63));const logReportingAPI=require(a53_0x39a6d7(0x135)),BSTestOpsLogger=new logReportingAPI({});function a53_0x42f4(_0x21d866,_0x43fe48){const _0x3d91a3=a53_0x3d91();return a53_0x42f4=function(_0x42f480,_0x34a14f){_0x42f480=_0x42f480-0x128;let _0x309705=_0x3d91a3[_0x42f480];return _0x309705;},a53_0x42f4(_0x21d866,_0x43fe48);}function BSTestOpsLog4JSAppender(_0x24cc6a,_0x5a2717){return _0x2c1cc0=>{const _0x5b3038=a53_0x42f4;BSTestOpsLogger[_0x5b3038(0x130)]({'level':_0x2c1cc0[_0x5b3038(0x12d)]?_0x2c1cc0[_0x5b3038(0x12d)][_0x5b3038(0x13a)]:null,'message':_0x2c1cc0[_0x5b3038(0x128)]?_0x2c1cc0[_0x5b3038(0x128)][_0x5b3038(0x13b)]('\x20'):null});};}exports['configure']=(_0x3db835,_0x256577)=>{const _0xe9ca68=a53_0x39a6d7,_0x285fa7={'xANKo':function(_0x5dbbf2,_0x58e25b,_0x3a5731){return _0x5dbbf2(_0x58e25b,_0x3a5731);}};let _0x2c2911=_0x256577[_0xe9ca68(0x12a)];return _0x3db835[_0xe9ca68(0x12c)]&&(_0x2c2911=_0x256577[_0xe9ca68(0x12c)](_0x3db835[_0xe9ca68(0x12c)][_0xe9ca68(0x132)],_0x3db835[_0xe9ca68(0x12c)])),_0x285fa7['xANKo'](BSTestOpsLog4JSAppender,_0x2c2911,_0x3db835['timezoneOffset']);};function a53_0x3d91(){const _0xc517e0=['14FYEars','log','1585485SVxaEy','type','122270UexKXn','3440007hDzPWC','./logReportingAPI','1450122zFWjlM','1193022YfZGux','504272KuqCxq','2381792QTwoSO','levelStr','join','data','8GUKkFd','colouredLayout','231rTFfyJ','layout','level','1NmUhXr'];a53_0x3d91=function(){return _0xc517e0;};return a53_0x3d91();}
@@ -1 +1 @@
1
- const a54_0x3c3896=a54_0x5817;(function(_0x572dd1,_0x1677f6){const _0x4ee715=a54_0x5817,_0x224037=_0x572dd1();while(!![]){try{const _0x1a5aee=-parseInt(_0x4ee715(0x106))/0x1+-parseInt(_0x4ee715(0x105))/0x2*(-parseInt(_0x4ee715(0xff))/0x3)+parseInt(_0x4ee715(0xfe))/0x4*(parseInt(_0x4ee715(0xf1))/0x5)+-parseInt(_0x4ee715(0xf2))/0x6*(-parseInt(_0x4ee715(0x109))/0x7)+-parseInt(_0x4ee715(0xed))/0x8+parseInt(_0x4ee715(0x101))/0x9+-parseInt(_0x4ee715(0xf3))/0xa;if(_0x1a5aee===_0x1677f6)break;else _0x224037['push'](_0x224037['shift']());}catch(_0x21aca5){_0x224037['push'](_0x224037['shift']());}}}(a54_0x4ddf,0xaee0e));const Transport=require(a54_0x3c3896(0xfd)),{consoleHolder}=require('../../helpers/test-observability/constants'),a54_0x59ba25={};function a54_0x5817(_0x2d11f6,_0x1f0f0f){const _0x4ddfb2=a54_0x4ddf();return a54_0x5817=function(_0x581768,_0x2ff3e9){_0x581768=_0x581768-0xed;let _0x34123b=_0x4ddfb2[_0x581768];return _0x34123b;},a54_0x5817(_0x2d11f6,_0x1f0f0f);}a54_0x59ba25[a54_0x3c3896(0xf7)]=a54_0x3c3896(0xf7),a54_0x59ba25['ERROR']=a54_0x3c3896(0xf0),a54_0x59ba25[a54_0x3c3896(0x104)]=a54_0x3c3896(0x104),a54_0x59ba25['TRACE']='TRACE',a54_0x59ba25['WARN']='WARN';const LOG_LEVELS=a54_0x59ba25;class logPatcher extends Transport{constructor(_0x50776d){super(_0x50776d);}[a54_0x3c3896(0x107)]=(_0x4e4d85=LOG_LEVELS['INFO'],_0xb56849=[''])=>{const _0x43a64c=a54_0x3c3896,_0x4a5590={};_0x4a5590['xOajl']=_0x43a64c(0xf8);const _0x1e57d1=_0x4a5590;consoleHolder[_0x4e4d85[_0x43a64c(0xf4)]()](..._0xb56849),process[_0x43a64c(0xef)](_0x43a64c(0xf6)+process[_0x43a64c(0x100)],{'timestamp':new Date()[_0x43a64c(0xfc)](),'level':_0x4e4d85[_0x43a64c(0x103)](),'message':'\x22'+_0xb56849['join'](',\x20')+'\x22','kind':_0x1e57d1[_0x43a64c(0xfb)],'http_response':{}});};[a54_0x3c3896(0x10a)]=(..._0x203973)=>{const _0x673bad=a54_0x3c3896;this['logToTestOps'](LOG_LEVELS[_0x673bad(0x102)],_0x203973);};[a54_0x3c3896(0xfa)]=(..._0x1b1789)=>{const _0x5c797c=a54_0x3c3896;this[_0x5c797c(0x107)](LOG_LEVELS['DEBUG'],_0x1b1789);};[a54_0x3c3896(0xee)]=(..._0x4adfe0)=>{const _0x38a630=a54_0x3c3896;this[_0x38a630(0x107)](LOG_LEVELS[_0x38a630(0xf7)],_0x4adfe0);};[a54_0x3c3896(0xf5)]=(..._0x1b8f84)=>{const _0xabd590=a54_0x3c3896;this[_0xabd590(0x107)](LOG_LEVELS['WARN'],_0x1b8f84);};[a54_0x3c3896(0xf9)]=(..._0x1a11e7)=>{const _0x5e7b20=a54_0x3c3896;this[_0x5e7b20(0x107)](LOG_LEVELS[_0x5e7b20(0xf0)],_0x1a11e7);};['log']=(..._0x1b723e)=>{const _0x45b34e=a54_0x3c3896;this[_0x45b34e(0x107)](LOG_LEVELS[_0x45b34e(0xf7)],_0x1b723e);};}function a54_0x4ddf(){const _0x201435=['toLowerCase','warn','bs:addLog:','INFO','TEST_LOG','error','debug','xOajl','toISOString','winston-transport','2598468MuVjCD','2757icyoLu','pid','1117647cDJLOR','TRACE','toUpperCase','DEBUG','3070UHUJlC','450662tJYsTB','logToTestOps','exports','2336502qdihUv','trace','2481080AZyTxN','info','emit','ERROR','5izNoAZ','6fiYASc','10411520odeDlx'];a54_0x4ddf=function(){return _0x201435;};return a54_0x4ddf();};module[a54_0x3c3896(0x108)]=logPatcher;
1
+ const a54_0x37c813=a54_0x2a4c;(function(_0x4e1d54,_0xe9278f){const _0x2eb39d=a54_0x2a4c,_0x2ce594=_0x4e1d54();while(!![]){try{const _0x268ad6=parseInt(_0x2eb39d(0x15f))/0x1*(-parseInt(_0x2eb39d(0x156))/0x2)+-parseInt(_0x2eb39d(0x162))/0x3+parseInt(_0x2eb39d(0x157))/0x4*(parseInt(_0x2eb39d(0x14e))/0x5)+-parseInt(_0x2eb39d(0x14f))/0x6+-parseInt(_0x2eb39d(0x152))/0x7+-parseInt(_0x2eb39d(0x161))/0x8*(parseInt(_0x2eb39d(0x165))/0x9)+parseInt(_0x2eb39d(0x15e))/0xa;if(_0x268ad6===_0xe9278f)break;else _0x2ce594['push'](_0x2ce594['shift']());}catch(_0x4ad59b){_0x2ce594['push'](_0x2ce594['shift']());}}}(a54_0x9f81,0xda2c1));function a54_0x9f81(){const _0x4173bd=['7689143BrlDXv','DEBUG','toUpperCase','toLowerCase','20eVJwUZ','228NGGuGc','INFO','winston-transport','ERROR','info','bs:addLog:','WARN','42106720TTeexd','113705mtuvYG','logToTestOps','8BLxuyS','1554201bQLujR','warn','tIdLL','9139347weZrhx','TRACE','join','../../helpers/test-observability/constants','error','exports','46445zJnCFs','464778zHRuoJ','emit','TEST_LOG'];a54_0x9f81=function(){return _0x4173bd;};return a54_0x9f81();}const Transport=require(a54_0x37c813(0x159)),{consoleHolder}=require(a54_0x37c813(0x14b)),a54_0x3f15a0={};a54_0x3f15a0[a54_0x37c813(0x158)]=a54_0x37c813(0x158),a54_0x3f15a0[a54_0x37c813(0x15a)]='ERROR',a54_0x3f15a0[a54_0x37c813(0x153)]='DEBUG',a54_0x3f15a0[a54_0x37c813(0x166)]=a54_0x37c813(0x166),a54_0x3f15a0[a54_0x37c813(0x15d)]=a54_0x37c813(0x15d);function a54_0x2a4c(_0x366e47,_0x2d3520){const _0x9f81b0=a54_0x9f81();return a54_0x2a4c=function(_0x2a4c13,_0x5172ce){_0x2a4c13=_0x2a4c13-0x14a;let _0x18bb17=_0x9f81b0[_0x2a4c13];return _0x18bb17;},a54_0x2a4c(_0x366e47,_0x2d3520);}const LOG_LEVELS=a54_0x3f15a0;class logPatcher extends Transport{constructor(_0x2fe499){super(_0x2fe499);}['logToTestOps']=(_0xceca29=LOG_LEVELS[a54_0x37c813(0x158)],_0x50864d=[''])=>{const _0xca43bb=a54_0x37c813,_0x1e4759={};_0x1e4759['tIdLL']=_0xca43bb(0x151);const _0xfb8d5d=_0x1e4759;consoleHolder[_0xceca29[_0xca43bb(0x155)]()](..._0x50864d),process[_0xca43bb(0x150)](_0xca43bb(0x15c)+process['pid'],{'timestamp':new Date()['toISOString'](),'level':_0xceca29[_0xca43bb(0x154)](),'message':'\x22'+_0x50864d[_0xca43bb(0x14a)](',\x20')+'\x22','kind':_0xfb8d5d[_0xca43bb(0x164)],'http_response':{}});};['trace']=(..._0x12e5ab)=>{const _0x29e9e3=a54_0x37c813;this['logToTestOps'](LOG_LEVELS[_0x29e9e3(0x166)],_0x12e5ab);};['debug']=(..._0x85ddcc)=>{const _0x5bed68=a54_0x37c813;this[_0x5bed68(0x160)](LOG_LEVELS['DEBUG'],_0x85ddcc);};[a54_0x37c813(0x15b)]=(..._0x332bc5)=>{const _0x15dfb6=a54_0x37c813;this['logToTestOps'](LOG_LEVELS[_0x15dfb6(0x158)],_0x332bc5);};[a54_0x37c813(0x163)]=(..._0x14c6f3)=>{const _0xb4e010=a54_0x37c813;this[_0xb4e010(0x160)](LOG_LEVELS[_0xb4e010(0x15d)],_0x14c6f3);};[a54_0x37c813(0x14c)]=(..._0x574f6f)=>{const _0x3d826d=a54_0x37c813;this[_0x3d826d(0x160)](LOG_LEVELS[_0x3d826d(0x15a)],_0x574f6f);};['log']=(..._0x4783da)=>{const _0x4b74c9=a54_0x37c813;this['logToTestOps'](LOG_LEVELS[_0x4b74c9(0x158)],_0x4783da);};};module[a54_0x37c813(0x14d)]=logPatcher;
@@ -1 +1 @@
1
- function a55_0x28b9(_0x40bf6a,_0x1aa090){const _0x13a928=a55_0x13a9();return a55_0x28b9=function(_0x28b9f2,_0x3b839c){_0x28b9f2=_0x28b9f2-0x11d;let _0x3df6b6=_0x13a928[_0x28b9f2];return _0x3df6b6;},a55_0x28b9(_0x40bf6a,_0x1aa090);}const a55_0x4cd98b=a55_0x28b9;function a55_0x13a9(){const _0x1cb558=['LygMS','TEST_LOG','emit','toLowerCase','7GljayH','2583600oBFdyp','110kvmocS','DEBUG','957318sduFIO','info','uBCNF','BUrsa','35001ZCPYlW','219gTNtQm','level','5708INPMNE','RTeMf','ERROR','TRACE','1404528UrOLMd','EUfbU','WARN','toUpperCase','error','920120OFTtYK','trace','log','pid','96kuYEti','exports','object','logged','debug','INFO','bs:addLog:','logToTestOps','29711mcJeVL'];a55_0x13a9=function(){return _0x1cb558;};return a55_0x13a9();}(function(_0x5d8308,_0x373f56){const _0x9352d6=a55_0x28b9,_0x3324ab=_0x5d8308();while(!![]){try{const _0x5de878=-parseInt(_0x9352d6(0x120))/0x1*(-parseInt(_0x9352d6(0x122))/0x2)+parseInt(_0x9352d6(0x126))/0x3+-parseInt(_0x9352d6(0x13d))/0x4+-parseInt(_0x9352d6(0x12b))/0x5+-parseInt(_0x9352d6(0x140))/0x6*(-parseInt(_0x9352d6(0x13c))/0x7)+parseInt(_0x9352d6(0x12f))/0x8*(-parseInt(_0x9352d6(0x11f))/0x9)+-parseInt(_0x9352d6(0x13e))/0xa*(parseInt(_0x9352d6(0x137))/0xb);if(_0x5de878===_0x373f56)break;else _0x3324ab['push'](_0x3324ab['shift']());}catch(_0x1ff759){_0x3324ab['push'](_0x3324ab['shift']());}}}(a55_0x13a9,0x54954));const Transport=require('winston-transport'),{consoleHolder}=require('../../helpers/test-observability/constants'),a55_0x6d6499={};a55_0x6d6499['INFO']='INFO',a55_0x6d6499[a55_0x4cd98b(0x124)]=a55_0x4cd98b(0x124),a55_0x6d6499[a55_0x4cd98b(0x13f)]='DEBUG',a55_0x6d6499['TRACE']=a55_0x4cd98b(0x125),a55_0x6d6499[a55_0x4cd98b(0x128)]='WARN';const LOG_LEVELS=a55_0x6d6499;class logReportingAPI extends Transport{constructor(_0x2543d7){super(_0x2543d7);}[a55_0x4cd98b(0x12d)](_0x449e55,_0xbb7c5e){const _0x12d773=a55_0x4cd98b,_0x683cb6={'EUfbU':_0x12d773(0x132),'uBCNF':function(_0x21b4f4,_0x154c3d){return _0x21b4f4(_0x154c3d);},'BUrsa':function(_0x298e53,_0x9e0c4d){return _0x298e53===_0x9e0c4d;},'RTeMf':_0x12d773(0x131),'Pcqwp':function(_0x5d18b2){return _0x5d18b2();}};_0x683cb6[_0x12d773(0x11d)](setImmediate,()=>{const _0x203e9e=_0x12d773;this[_0x203e9e(0x13a)](_0x683cb6[_0x203e9e(0x127)],_0x449e55);}),_0x683cb6[_0x12d773(0x11e)](typeof _0x449e55,_0x683cb6[_0x12d773(0x123)])?this[_0x12d773(0x136)](_0x449e55[_0x12d773(0x121)]||LOG_LEVELS[_0x12d773(0x134)],_0x449e55['message'],![]):this[_0x12d773(0x136)](LOG_LEVELS['INFO'],_0x449e55),_0xbb7c5e&&_0x683cb6['Pcqwp'](_0xbb7c5e);}['logToTestOps']=(_0x5f3891=LOG_LEVELS[a55_0x4cd98b(0x134)],_0xb68e78='',_0x3c3bde=!![])=>{const _0x4d5ff4=a55_0x4cd98b,_0x18a437={};_0x18a437[_0x4d5ff4(0x138)]=_0x4d5ff4(0x139);const _0x52380c=_0x18a437;_0x3c3bde&&consoleHolder[_0x5f3891[_0x4d5ff4(0x13b)]()](_0xb68e78),process[_0x4d5ff4(0x13a)](_0x4d5ff4(0x135)+process[_0x4d5ff4(0x12e)],{'timestamp':new Date()['toISOString'](),'level':_0x5f3891[_0x4d5ff4(0x129)](),'message':_0xb68e78,'kind':_0x52380c[_0x4d5ff4(0x138)],'http_response':{}});};[a55_0x4cd98b(0x12c)]=(_0x1b3722,_0x12733c)=>{const _0x39952d=a55_0x4cd98b;this[_0x39952d(0x136)](LOG_LEVELS[_0x39952d(0x125)],_0x1b3722);};[a55_0x4cd98b(0x133)]=(_0x24a446,_0x772029)=>{const _0x2d6e82=a55_0x4cd98b;this['logToTestOps'](LOG_LEVELS[_0x2d6e82(0x13f)],_0x24a446);};[a55_0x4cd98b(0x141)]=(_0x41f0cd,_0x25a069)=>{const _0x36ddb6=a55_0x4cd98b;this['logToTestOps'](LOG_LEVELS[_0x36ddb6(0x134)],_0x41f0cd);};['warn']=(_0x483a87,_0x35d4ce)=>{const _0x315d19=a55_0x4cd98b;this[_0x315d19(0x136)](LOG_LEVELS[_0x315d19(0x128)],_0x483a87);};[a55_0x4cd98b(0x12a)]=(_0x327439,_0x590f99)=>{const _0x5cf26e=a55_0x4cd98b;this['logToTestOps'](LOG_LEVELS[_0x5cf26e(0x124)],_0x327439);};};module[a55_0x4cd98b(0x130)]=logReportingAPI;
1
+ const a55_0x324b7a=a55_0x46a6;(function(_0x1be100,_0x4a6bc9){const _0x404271=a55_0x46a6,_0x3803a8=_0x1be100();while(!![]){try{const _0x29564f=-parseInt(_0x404271(0x142))/0x1+parseInt(_0x404271(0x11e))/0x2+parseInt(_0x404271(0x126))/0x3+parseInt(_0x404271(0x123))/0x4*(parseInt(_0x404271(0x144))/0x5)+parseInt(_0x404271(0x13e))/0x6+-parseInt(_0x404271(0x12b))/0x7+parseInt(_0x404271(0x122))/0x8*(-parseInt(_0x404271(0x130))/0x9);if(_0x29564f===_0x4a6bc9)break;else _0x3803a8['push'](_0x3803a8['shift']());}catch(_0x1d4f0e){_0x3803a8['push'](_0x3803a8['shift']());}}}(a55_0x5211,0xd65f7));const Transport=require(a55_0x324b7a(0x13a)),{consoleHolder}=require(a55_0x324b7a(0x127)),a55_0x5196fd={};a55_0x5196fd[a55_0x324b7a(0x13d)]=a55_0x324b7a(0x13d),a55_0x5196fd[a55_0x324b7a(0x135)]=a55_0x324b7a(0x135),a55_0x5196fd[a55_0x324b7a(0x13b)]=a55_0x324b7a(0x13b),a55_0x5196fd['TRACE']=a55_0x324b7a(0x125),a55_0x5196fd['WARN']=a55_0x324b7a(0x12c);function a55_0x5211(){const _0x27255f=['3149600JtbnOH','trace','debug','log','8vCODsQ','4JXCBVT','level','TRACE','1603035YbTyjT','../../helpers/test-observability/constants','logged','toISOString','exports','4757340vGfbCL','WARN','info','Ubkgt','error','8988741krHZiX','emit','pid','ewEok','GIheZ','ERROR','logToTestOps','XHMOy','object','kcaii','winston-transport','DEBUG','toLowerCase','INFO','3809934WJjghD','warn','toUpperCase','TEST_LOG','862165QjzwaZ','bs:addLog:','3372355TklqXP'];a55_0x5211=function(){return _0x27255f;};return a55_0x5211();}const LOG_LEVELS=a55_0x5196fd;function a55_0x46a6(_0xd0d1ef,_0x35a133){const _0x521160=a55_0x5211();return a55_0x46a6=function(_0x46a600,_0x9b2d45){_0x46a600=_0x46a600-0x11e;let _0xf7f5ac=_0x521160[_0x46a600];return _0xf7f5ac;},a55_0x46a6(_0xd0d1ef,_0x35a133);}class logReportingAPI extends Transport{constructor(_0x333632){super(_0x333632);}[a55_0x324b7a(0x121)](_0x4ce028,_0x57824c){const _0x3e63ea=a55_0x324b7a,_0x2091a7={'GIheZ':_0x3e63ea(0x128),'ewEok':function(_0x248f1f,_0x497271){return _0x248f1f(_0x497271);},'hOlsh':function(_0x29b919,_0x14c2f9){return _0x29b919===_0x14c2f9;},'kcaii':_0x3e63ea(0x138),'Ubkgt':function(_0x2cb934){return _0x2cb934();}};_0x2091a7[_0x3e63ea(0x133)](setImmediate,()=>{const _0x1b6610=_0x3e63ea;this[_0x1b6610(0x131)](_0x2091a7[_0x1b6610(0x134)],_0x4ce028);}),_0x2091a7['hOlsh'](typeof _0x4ce028,_0x2091a7[_0x3e63ea(0x139)])?this[_0x3e63ea(0x136)](_0x4ce028[_0x3e63ea(0x124)]||LOG_LEVELS[_0x3e63ea(0x13d)],_0x4ce028['message'],![]):this[_0x3e63ea(0x136)](LOG_LEVELS['INFO'],_0x4ce028),_0x57824c&&_0x2091a7[_0x3e63ea(0x12e)](_0x57824c);}[a55_0x324b7a(0x136)]=(_0xebfb92=LOG_LEVELS['INFO'],_0x6dd05f='',_0x511a0b=!![])=>{const _0x486ca3=a55_0x324b7a,_0x3d3879={};_0x3d3879[_0x486ca3(0x137)]=_0x486ca3(0x141);const _0x4e6386=_0x3d3879;_0x511a0b&&consoleHolder[_0xebfb92[_0x486ca3(0x13c)]()](_0x6dd05f),process[_0x486ca3(0x131)](_0x486ca3(0x143)+process[_0x486ca3(0x132)],{'timestamp':new Date()[_0x486ca3(0x129)](),'level':_0xebfb92[_0x486ca3(0x140)](),'message':_0x6dd05f,'kind':_0x4e6386['XHMOy'],'http_response':{}});};[a55_0x324b7a(0x11f)]=(_0x461aa3,_0x3efdde)=>{const _0xa8f243=a55_0x324b7a;this[_0xa8f243(0x136)](LOG_LEVELS[_0xa8f243(0x125)],_0x461aa3);};[a55_0x324b7a(0x120)]=(_0x55580e,_0x1be5a4)=>{const _0x1fb5d1=a55_0x324b7a;this[_0x1fb5d1(0x136)](LOG_LEVELS[_0x1fb5d1(0x13b)],_0x55580e);};[a55_0x324b7a(0x12d)]=(_0x3b5f92,_0x5b2f66)=>{const _0x2ddb9b=a55_0x324b7a;this['logToTestOps'](LOG_LEVELS[_0x2ddb9b(0x13d)],_0x3b5f92);};[a55_0x324b7a(0x13f)]=(_0xd5af92,_0x313750)=>{const _0x2c0b51=a55_0x324b7a;this[_0x2c0b51(0x136)](LOG_LEVELS[_0x2c0b51(0x12c)],_0xd5af92);};[a55_0x324b7a(0x12f)]=(_0x3395e4,_0x3ea628)=>{const _0x127a50=a55_0x324b7a;this['logToTestOps'](LOG_LEVELS[_0x127a50(0x135)],_0x3395e4);};};module[a55_0x324b7a(0x12a)]=logReportingAPI;
@@ -1 +1 @@
1
- const a56_0x18c565=a56_0x12d0;(function(_0x2b2227,_0x443d08){const _0x4a5cae=a56_0x12d0,_0x2e8313=_0x2b2227();while(!![]){try{const _0x2d502b=parseInt(_0x4a5cae(0xf4))/0x1+-parseInt(_0x4a5cae(0x140))/0x2*(-parseInt(_0x4a5cae(0x129))/0x3)+-parseInt(_0x4a5cae(0xf5))/0x4+-parseInt(_0x4a5cae(0x134))/0x5+parseInt(_0x4a5cae(0x116))/0x6*(parseInt(_0x4a5cae(0x135))/0x7)+-parseInt(_0x4a5cae(0x148))/0x8+-parseInt(_0x4a5cae(0x163))/0x9*(-parseInt(_0x4a5cae(0x122))/0xa);if(_0x2d502b===_0x443d08)break;else _0x2e8313['push'](_0x2e8313['shift']());}catch(_0x1afb34){_0x2e8313['push'](_0x2e8313['shift']());}}}(a56_0x1371,0x81f6e));const fs=require('fs'),path=require(a56_0x18c565(0x109)),{v4:uuidv4}=require(a56_0x18c565(0x10f)),{TEMP_STORE_DIR_NAME}=require(a56_0x18c565(0x138)),{nestedKeyValue}=require('../../helpers/helper'),logger=require(a56_0x18c565(0x118))[a56_0x18c565(0x15f)],util=require(a56_0x18c565(0x12b)),helper=require(a56_0x18c565(0x14a)),{createClassLogger}=require('../../helpers/classLogger.js'),lockfile=require(a56_0x18c565(0x14d));function a56_0x12d0(_0x1968ff,_0x34d4ee){const _0x137195=a56_0x1371();return a56_0x12d0=function(_0x12d0a0,_0x4f68f4){_0x12d0a0=_0x12d0a0-0xf1;let _0x49cf40=_0x137195[_0x12d0a0];return _0x49cf40;},a56_0x12d0(_0x1968ff,_0x34d4ee);}class TestInfo{static [a56_0x18c565(0x12d)]={};static [a56_0x18c565(0x11c)]=TestInfo[a56_0x18c565(0x110)]();static [a56_0x18c565(0x126)]=path[a56_0x18c565(0x117)](TestInfo[a56_0x18c565(0x11c)],a56_0x18c565(0x139));['logger']=createClassLogger('TestInfo');static[a56_0x18c565(0xfd)](){const _0x2b619c=a56_0x18c565,_0x4b1574={};_0x4b1574[_0x2b619c(0x13f)]=_0x2b619c(0x12e),_0x4b1574[_0x2b619c(0x13d)]=_0x2b619c(0x139);const _0x43fbb9=_0x4b1574,_0x57f557=_0x43fbb9[_0x2b619c(0x13f)][_0x2b619c(0x15e)]('|');let _0x398654=0x0;while(!![]){switch(_0x57f557[_0x398654++]){case'0':this['traceZipDir']=path[_0x2b619c(0x117)](this[_0x2b619c(0x11c)],_0x43fbb9[_0x2b619c(0x13d)]);continue;case'1':this[_0x2b619c(0x11c)]=TestInfo[_0x2b619c(0x110)]();continue;case'2':this[_0x2b619c(0x13e)]();continue;case'3':const _0x17107b={};_0x17107b['recursive']=!![],fs[_0x2b619c(0xf1)](this['dirPath'],_0x17107b);continue;case'4':const _0x544f77={};_0x544f77[_0x2b619c(0x101)]=!![],fs[_0x2b619c(0xf1)](this[_0x2b619c(0x126)],_0x544f77);continue;case'5':logger['info'](_0x2b619c(0x15d)+this['dirPath']);continue;}break;}}static[a56_0x18c565(0x110)](){const _0x4e5b71=a56_0x18c565,_0x3f1459={};_0x3f1459[_0x4e5b71(0x121)]=function(_0x88ade9,_0x54c062){return _0x88ade9+_0x54c062;},_0x3f1459[_0x4e5b71(0x133)]=function(_0x2da8d,_0x377f78){return _0x2da8d+_0x377f78;};const _0x221112=_0x3f1459;return _0x221112[_0x4e5b71(0x121)](_0x221112[_0x4e5b71(0x133)](TEMP_STORE_DIR_NAME,'-'),process['env'][_0x4e5b71(0x115)]);}static[a56_0x18c565(0x125)](){const _0x974518=a56_0x18c565,_0x348f25={};_0x348f25[_0x974518(0x146)]=function(_0x2521cb,_0x542eb7){return _0x2521cb+_0x542eb7;},_0x348f25[_0x974518(0x105)]=function(_0x21ad9c,_0x35d3ac){return _0x21ad9c+_0x35d3ac;},_0x348f25[_0x974518(0x145)]='default';const _0x2c316c=_0x348f25;return path[_0x974518(0x117)](_0x2c316c[_0x974518(0x146)](_0x2c316c[_0x974518(0x105)](TEMP_STORE_DIR_NAME,'-'),process[_0x974518(0x128)][_0x974518(0x115)]||_0x2c316c[_0x974518(0x145)]));}static[a56_0x18c565(0x157)](){const _0x292fe9=a56_0x18c565,_0x4d27db={};_0x4d27db[_0x292fe9(0x159)]=_0x292fe9(0x139);const _0x5af4a5=_0x4d27db;return path['join'](this[_0x292fe9(0x125)](),_0x5af4a5[_0x292fe9(0x159)]);}static[a56_0x18c565(0x162)](_0x2b9e6c){const _0x486fb1=a56_0x18c565,_0x12d306={};_0x12d306[_0x486fb1(0x147)]=function(_0x2a792c,_0x4f66cd){return _0x2a792c+_0x4f66cd;},_0x12d306[_0x486fb1(0x161)]='.json';const _0x25ae0b=_0x12d306;return path[_0x486fb1(0x117)](this[_0x486fb1(0x11c)],_0x25ae0b['rlfuC'](_0x2b9e6c,_0x25ae0b[_0x486fb1(0x161)]));}static[a56_0x18c565(0x10e)](_0x148128){const _0x210cf6=a56_0x18c565,_0x20734e={};_0x20734e[_0x210cf6(0xf8)]=function(_0x2d0c24,_0x158916){return _0x2d0c24+_0x158916;},_0x20734e[_0x210cf6(0x15c)]=function(_0x12be59,_0xaa0b29){return _0x12be59+_0xaa0b29;},_0x20734e[_0x210cf6(0x119)]=function(_0x1a18cf,_0x5dd4c2){return _0x1a18cf+_0x5dd4c2;};const _0x1191fb=_0x20734e;return _0x1191fb[_0x210cf6(0xf8)](_0x1191fb[_0x210cf6(0x15c)](_0x1191fb[_0x210cf6(0x119)](_0x1191fb[_0x210cf6(0x119)](this[_0x210cf6(0xfb)](_0x148128),'-'),this[_0x210cf6(0x10d)](_0x148128)),'-'),_0x148128['retry']);}static[a56_0x18c565(0xfb)](_0x3ad801){const _0x5ac5f3=a56_0x18c565,_0x531581={'jcdfc':function(_0x260034,_0x291830,_0x33cf80){return _0x260034(_0x291830,_0x33cf80);},'qvcQy':_0x5ac5f3(0x152),'OMLgq':_0x5ac5f3(0x160),'SVmPl':_0x5ac5f3(0x11a),'tiyOb':_0x5ac5f3(0x124)};return _0x531581['jcdfc'](nestedKeyValue,_0x3ad801,[_0x531581[_0x5ac5f3(0xf7)],_0x531581[_0x5ac5f3(0x136)]])||_0x531581[_0x5ac5f3(0x103)](nestedKeyValue,_0x3ad801,[_0x531581[_0x5ac5f3(0x10b)],_0x531581['tiyOb']]);}static[a56_0x18c565(0x10d)](_0x385297){const _0x5eff3c=a56_0x18c565,_0xca5eba={'NhhgC':function(_0x16cc1d,_0xa61cf7,_0x32bacd){return _0x16cc1d(_0xa61cf7,_0x32bacd);},'Xzfry':_0x5eff3c(0x152)};return _0xca5eba[_0x5eff3c(0x13a)](nestedKeyValue,_0x385297,[_0xca5eba[_0x5eff3c(0x113)],'id'])||_0x385297[_0x5eff3c(0x15a)];}static[a56_0x18c565(0x14f)](_0x11084d){const _0x921ae2=a56_0x18c565,_0x442f58={'Pqcxu':function(_0x569290,_0x562b69){return _0x569290===_0x562b69;},'CxuNX':_0x921ae2(0x114),'wCnQk':function(_0x4a94e1){return _0x4a94e1();}};try{if(this[_0x921ae2(0x12d)][_0x11084d]&&_0x442f58[_0x921ae2(0x132)](typeof this[_0x921ae2(0x12d)][_0x11084d][_0x921ae2(0x10f)],_0x442f58[_0x921ae2(0x11e)]))return this[_0x921ae2(0x12d)][_0x11084d][_0x921ae2(0x10f)];const _0x2fe942=this[_0x921ae2(0x162)](_0x11084d),_0x13b04f=path['resolve'](_0x2fe942);if(fs['existsSync'](_0x13b04f)){const _0xa670b7=JSON[_0x921ae2(0xf2)](fs[_0x921ae2(0x155)](_0x2fe942)[_0x921ae2(0x13b)]());return this[_0x921ae2(0x12d)][_0x11084d]=_0xa670b7,this[_0x921ae2(0x12d)][_0x11084d][_0x921ae2(0x10f)];}return this[_0x921ae2(0x12d)][_0x11084d]={'uuid':_0x442f58[_0x921ae2(0x156)](uuidv4)},fs[_0x921ae2(0x165)](_0x2fe942,JSON['stringify'](this[_0x921ae2(0x12d)][_0x11084d])),this[_0x921ae2(0x12d)][_0x11084d][_0x921ae2(0x10f)];}catch(_0x4eb47f){return logger[_0x921ae2(0x12c)](_0x921ae2(0x151)+_0x11084d+':\x20'+_0x4eb47f[_0x921ae2(0x11f)]),null;}}static[a56_0x18c565(0x120)](_0x555158){const _0xbde136=a56_0x18c565,_0x4d3a80=path[_0xbde136(0x117)](this[_0xbde136(0x11c)],_0x555158+_0xbde136(0x11d));if(fs[_0xbde136(0x107)](_0x4d3a80))return fs[_0xbde136(0x155)](_0x4d3a80)[_0xbde136(0x13b)]();}static[a56_0x18c565(0x154)](_0x1b7284,_0x40d768){const _0x31f837=a56_0x18c565,_0x25bb75=path[_0x31f837(0x117)](this[_0x31f837(0x11c)],_0x40d768+_0x31f837(0x11d));fs['writeFileSync'](_0x25bb75,_0x1b7284[_0x31f837(0x13b)]());}static['shutdown'](){const _0x3d2d4c=a56_0x18c565,_0x4d9aae={};_0x4d9aae['recursive']=!![],_0x4d9aae['force']=!![],fs[_0x3d2d4c(0x153)](this[_0x3d2d4c(0x11c)],_0x4d9aae);}static[a56_0x18c565(0xfa)](_0x41e7e9){const _0x1646d9=a56_0x18c565,_0xcfe60a=this[_0x1646d9(0x162)](_0x41e7e9);if(fs[_0x1646d9(0x107)](_0xcfe60a))try{const _0x52b99f=JSON['parse'](fs[_0x1646d9(0x155)](_0xcfe60a)[_0x1646d9(0x13b)]());return this[_0x1646d9(0x12d)][_0x41e7e9]=_0x52b99f,_0x52b99f;}catch(_0xc5cd4){return logger[_0x1646d9(0x131)]('Failed\x20to\x20acquire\x20lock\x20for\x20'+_0xcfe60a+':\x20'+util[_0x1646d9(0x100)](_0xc5cd4)+_0x1646d9(0x14b)),{};}return{};}static[a56_0x18c565(0x12a)](_0x4c272b,_0x131ca6){const _0x27d9b2=a56_0x18c565,_0x155034={'hBsRq':'setTestDetails\x20','NSbmi':function(_0x323b0f){return _0x323b0f();}};logger[_0x27d9b2(0x112)](_0x155034['hBsRq']),logger[_0x27d9b2(0x112)]('processId:\x20'+process[_0x27d9b2(0x11b)]+_0x27d9b2(0xf9)+_0x4c272b+_0x27d9b2(0x142)+JSON[_0x27d9b2(0x14e)](_0x131ca6));const _0x3cfd9e=this[_0x27d9b2(0x162)](_0x4c272b);if(fs[_0x27d9b2(0x107)](_0x3cfd9e))try{const _0xb7ff32=lockfile['lockSync'](_0x3cfd9e),_0xc03474=JSON['parse'](fs['readFileSync'](_0x3cfd9e)[_0x27d9b2(0x13b)]()),_0x345a2d={..._0xc03474,..._0x131ca6};this[_0x27d9b2(0x12d)][_0x4c272b]=_0x345a2d,fs[_0x27d9b2(0x165)](_0x3cfd9e,JSON['stringify'](this[_0x27d9b2(0x12d)][_0x4c272b])),_0x155034[_0x27d9b2(0x141)](_0xb7ff32);}catch(_0x946fa0){logger[_0x27d9b2(0x131)](_0x27d9b2(0x137)+_0x3cfd9e+':\x20'+util['format'](_0x946fa0)+_0x27d9b2(0x123));}}static[a56_0x18c565(0x13c)](_0x4859c1){const _0x670766=a56_0x18c565,_0x87c487={};_0x87c487['houil']=_0x670766(0x158);const _0x327be1=_0x87c487;try{const _0x571535=process[_0x670766(0x11b)],_0x2207a1=path[_0x670766(0x117)](TestInfo['getTraceZipDir'](),_0x571535+'_traceZipPaths.json');let _0x4552a7=[];fs[_0x670766(0x107)](_0x2207a1)&&(_0x4552a7=JSON['parse'](fs[_0x670766(0x155)](_0x2207a1)['toString']()));if(!_0x4552a7[_0x670766(0x14c)](_0x5894f2=>_0x5894f2[_0x670766(0x150)]===_0x4859c1['filePath'])){_0x4552a7[_0x670766(0xf6)](_0x4859c1);const _0x57fd54=path[_0x670766(0x108)](_0x2207a1);if(!fs[_0x670766(0x107)](_0x57fd54)){const _0x583050={};_0x583050[_0x670766(0x101)]=!![],fs[_0x670766(0xf1)](_0x57fd54,_0x583050);}fs[_0x670766(0x165)](_0x2207a1,JSON[_0x670766(0x14e)](_0x4552a7));}}catch(_0x1d52c0){logger[_0x670766(0x12c)](util['format'](_0x327be1[_0x670766(0x104)],_0x1d52c0));}}static[a56_0x18c565(0x130)](){const _0x1099d1=a56_0x18c565,_0x4a5b35={};_0x4a5b35['vBwwy']='_traceZipPaths.json',_0x4a5b35['XcLdU']=_0x1099d1(0xff);const _0x1b2a24=_0x4a5b35,_0x21d70d=[];try{const _0x17f19c=TestInfo[_0x1099d1(0x157)]();if(!fs['existsSync'](_0x17f19c))return _0x21d70d;const _0x4d21d3=fs[_0x1099d1(0x102)](_0x17f19c);_0x4d21d3[_0x1099d1(0xf3)](_0x4e5d62=>{const _0x258898=_0x1099d1;if(_0x4e5d62['endsWith'](_0x1b2a24[_0x258898(0xfe)])){const _0x40592c=JSON['parse'](fs['readFileSync'](path[_0x258898(0x117)](_0x17f19c,_0x4e5d62))[_0x258898(0x13b)]());_0x21d70d[_0x258898(0xf6)](..._0x40592c);}});}catch(_0x7868e){logger[_0x1099d1(0x12c)](util[_0x1099d1(0x100)](_0x1b2a24[_0x1099d1(0x144)],_0x7868e));}const _0x2403c2={};return _0x21d70d[_0x1099d1(0xf3)](_0x2f2905=>{const _0x8ec7f9=_0x1099d1;_0x2403c2[_0x2f2905[_0x8ec7f9(0x150)]]=_0x2f2905;}),Object[_0x1099d1(0x149)](_0x2403c2);}static[a56_0x18c565(0x106)](_0x462624,_0x45b789){const _0x1453f0=a56_0x18c565,_0x2e51c8={};_0x2e51c8['uSkDy']=_0x1453f0(0x127),_0x2e51c8[_0x1453f0(0x10a)]=_0x1453f0(0x111),_0x2e51c8[_0x1453f0(0x12f)]='Error\x20writing\x20trace\x20file:\x20%O';const _0x159ebf=_0x2e51c8;try{const _0x3ef0a5=path['join'](helper[_0x1453f0(0xfc)](),_0x159ebf[_0x1453f0(0x15b)]);if(!fs[_0x1453f0(0x107)](_0x3ef0a5)){const _0x107fdf={};_0x107fdf[_0x1453f0(0x101)]=!![],fs[_0x1453f0(0xf1)](_0x3ef0a5,_0x107fdf);}fs['appendFileSync'](path['join'](_0x3ef0a5,_0x1453f0(0x10c)+_0x45b789+_0x1453f0(0x143)),_0x462624+'\x0a',_0x159ebf[_0x1453f0(0x10a)]);}catch(_0x5ae730){logger[_0x1453f0(0x12c)](util['format'](_0x159ebf[_0x1453f0(0x12f)],_0x5ae730));}}}module[a56_0x18c565(0x164)]=TestInfo;function a56_0x1371(){const _0x1ec26c=['rwdDu','getTraceFilePaths','warn','Pqcxu','WogCG','3150875rHzfBu','2033528OUruzU','OMLgq','Failed\x20to\x20acquire\x20lock\x20for\x20','../../helpers/test-observability/constants','traceZipPaths','NhhgC','toString','addTraceFilePath','ShpUX','shutdown','gKPHs','2081478wwXigR','NSbmi','\x20with\x20details:\x20','.txt','XcLdU','EJqTw','LbIPJ','rlfuC','2595440hqensZ','values','../../helpers/helper','.\x20Returning\x20empty\x20test\x20details.','some','proper-lockfile','stringify','getTestUUID','filePath','Error\x20while\x20getting\x20test\x20UUID\x20for\x20','_test','rmSync','setAccessibilityPlatformValidation','readFileSync','wCnQk','getTraceZipDir','Error\x20handling\x20trace\x20file\x20paths:\x20%O','fqwbO','testId','uSkDy','OLeBx','Setting\x20up\x20TestInfo\x20directory\x20at\x20','split','winstonLogger','_projectId','riXub','getFilePath','4239UOjCFW','exports','writeFileSync','mkdirSync','parse','forEach','215264dJporN','3276340pNPsXo','push','qvcQy','nQbru','\x20Setting\x20\x20test\x20details\x20for\x20','getTestDetails','getProjectIdFromTestInfo','homedir','setup','vBwwy','Error\x20reading\x20trace\x20file\x20paths:\x20%O','format','recursive','readdirSync','jcdfc','houil','RZRcq','appendToTracePaths','existsSync','dirname','path','Fgqzb','SVmPl','trace_','getTestIdFromTestInfo','getTestRunIdFromTestInfo','uuid','getStoreDirName','utf8','debug','Xzfry','string','BS_TESTOPS_BUILD_HASHED_ID','18eajual','join','../../helpers/logger','oXVtK','project','pid','dirPath','_platformDetails.json','CxuNX','message','getAccessibilityPlatformValidation','BqIJf','3790exFNXk','.\x20Unable\x20to\x20set\x20test\x20details.','__projectId','getStoreDirPath','traceZipDir','.browserstack','env','3fBofCt','setTestDetails','util','error','tests','1|0|2|3|4|5'];a56_0x1371=function(){return _0x1ec26c;};return a56_0x1371();}
1
+ const a56_0x2bc7cb=a56_0x1f77;(function(_0x3eee17,_0x1d537a){const _0x3ef102=a56_0x1f77,_0x1d932d=_0x3eee17();while(!![]){try{const _0x5c9353=-parseInt(_0x3ef102(0xfc))/0x1+parseInt(_0x3ef102(0xd8))/0x2+parseInt(_0x3ef102(0x107))/0x3+-parseInt(_0x3ef102(0x137))/0x4+-parseInt(_0x3ef102(0xe1))/0x5*(parseInt(_0x3ef102(0x132))/0x6)+parseInt(_0x3ef102(0xf2))/0x7+parseInt(_0x3ef102(0xdb))/0x8;if(_0x5c9353===_0x1d537a)break;else _0x1d932d['push'](_0x1d932d['shift']());}catch(_0x49934f){_0x1d932d['push'](_0x1d932d['shift']());}}}(a56_0x4a89,0xe53b5));function a56_0x1f77(_0x149143,_0x4ac9ee){const _0x4a896e=a56_0x4a89();return a56_0x1f77=function(_0x1f77a7,_0x305224){_0x1f77a7=_0x1f77a7-0xd7;let _0x1ee9f3=_0x4a896e[_0x1f77a7];return _0x1ee9f3;},a56_0x1f77(_0x149143,_0x4ac9ee);}const fs=require('fs'),path=require(a56_0x2bc7cb(0x13c)),{v4:uuidv4}=require('uuid'),{TEMP_STORE_DIR_NAME}=require('../../helpers/test-observability/constants'),{nestedKeyValue}=require(a56_0x2bc7cb(0x128)),logger=require(a56_0x2bc7cb(0x12f))[a56_0x2bc7cb(0xd7)],util=require(a56_0x2bc7cb(0x12e)),helper=require(a56_0x2bc7cb(0x128)),{createClassLogger}=require(a56_0x2bc7cb(0x115)),lockfile=require('proper-lockfile');function a56_0x4a89(){const _0x327f0b=['setTestDetails\x20','__projectId','1618422TCoeKb','join','Setting\x20up\x20TestInfo\x20directory\x20at\x20','uuid','existsSync','forEach','OByac','AlBai','dirPath','getTestUUID','GcDfX','3783510wbbgPc','getAccessibilityPlatformValidation','Error\x20handling\x20trace\x20file\x20paths:\x20%O','mkdirSync','getStoreDirName','shutdown','appendFileSync','recursive','\x20Setting\x20\x20test\x20details\x20for\x20','project','stringify','TestInfo','getTestRunIdFromTestInfo','Error\x20while\x20getting\x20test\x20UUID\x20for\x20','../../helpers/classLogger.js','tests','appendToTracePaths','gkesd','utf8','parse','getTestIdFromTestInfo','traceZipPaths','force','filePath','processId:\x20','_traceZipPaths.json','dqsKr','getTraceZipDir','TtKVR','debug','readdirSync','dirname','pid','../../helpers/helper','error','_platformDetails.json','string','dkCoC','homedir','util','../../helpers/logger','IJnIB','env','337554WKWaJz','RPbyK','getStoreDirPath','.browserstack','split','3599712SxMUCA','traceZipDir','qCmFS','some','resolve','path','rkZpt','setAccessibilityPlatformValidation','push','winstonLogger','670400QirCLQ','endsWith','getProjectIdFromTestInfo','779776OhwSCN','Error\x20reading\x20trace\x20file\x20paths:\x20%O','BS_TESTOPS_BUILD_HASHED_ID','exports','rmSync','KWuMO','10GttuHC','default','_projectId','testId','bkouL','setup','getFilePath','toString','_test','addTraceFilePath','readFileSync','jgHem','warn','Wlehp','.json','logger','.txt','13131713VxCYLQ','ZiHRt','Failed\x20to\x20acquire\x20lock\x20for\x20','format','\x20with\x20details:\x20','pAsuj','writeFileSync','HUEgZ'];a56_0x4a89=function(){return _0x327f0b;};return a56_0x4a89();}class TestInfo{static [a56_0x2bc7cb(0x116)]={};static [a56_0x2bc7cb(0x104)]=TestInfo[a56_0x2bc7cb(0x10b)]();static [a56_0x2bc7cb(0x138)]=path[a56_0x2bc7cb(0xfd)](TestInfo[a56_0x2bc7cb(0x104)],'traceZipPaths');[a56_0x2bc7cb(0xf0)]=createClassLogger(a56_0x2bc7cb(0x112));static[a56_0x2bc7cb(0xe6)](){const _0x368752=a56_0x2bc7cb,_0x2e0922={};_0x2e0922[_0x368752(0x133)]='4|3|5|2|0|1',_0x2e0922[_0x368752(0xf9)]=_0x368752(0x11c);const _0xa90468=_0x2e0922,_0x427ddf=_0xa90468[_0x368752(0x133)][_0x368752(0x136)]('|');let _0x49fe00=0x0;while(!![]){switch(_0x427ddf[_0x49fe00++]){case'0':const _0x2080af={};_0x2080af[_0x368752(0x10e)]=!![],fs['mkdirSync'](this[_0x368752(0x138)],_0x2080af);continue;case'1':logger['info'](_0x368752(0xfe)+this[_0x368752(0x104)]);continue;case'2':const _0x359d83={};_0x359d83[_0x368752(0x10e)]=!![],fs[_0x368752(0x10a)](this['dirPath'],_0x359d83);continue;case'3':this[_0x368752(0x138)]=path[_0x368752(0xfd)](this['dirPath'],_0xa90468[_0x368752(0xf9)]);continue;case'4':this[_0x368752(0x104)]=TestInfo[_0x368752(0x10b)]();continue;case'5':this[_0x368752(0x10c)]();continue;}break;}}static[a56_0x2bc7cb(0x10b)](){const _0x105280=a56_0x2bc7cb,_0x215a19={};_0x215a19[_0x105280(0xee)]=function(_0x9e2163,_0x4345a3){return _0x9e2163+_0x4345a3;};const _0x523037=_0x215a19;return _0x523037[_0x105280(0xee)](_0x523037[_0x105280(0xee)](TEMP_STORE_DIR_NAME,'-'),process[_0x105280(0x131)][_0x105280(0xdd)]);}static['getStoreDirPath'](){const _0x2476ba=a56_0x2bc7cb,_0x53c44f={};_0x53c44f['dqsKr']=function(_0xa47d75,_0x2388a3){return _0xa47d75+_0x2388a3;},_0x53c44f['IJnIB']=_0x2476ba(0xe2);const _0x144783=_0x53c44f;return path['join'](_0x144783[_0x2476ba(0x121)](_0x144783[_0x2476ba(0x121)](TEMP_STORE_DIR_NAME,'-'),process[_0x2476ba(0x131)][_0x2476ba(0xdd)]||_0x144783[_0x2476ba(0x130)]));}static[a56_0x2bc7cb(0x122)](){const _0x29ea29=a56_0x2bc7cb,_0x534d9a={};_0x534d9a['nTskW']='traceZipPaths';const _0x3df69d=_0x534d9a;return path[_0x29ea29(0xfd)](this[_0x29ea29(0x134)](),_0x3df69d['nTskW']);}static[a56_0x2bc7cb(0xe7)](_0x3e2fcf){const _0x1f5afe=a56_0x2bc7cb,_0x139b88={};_0x139b88['IptcI']=function(_0x1457e7,_0x2324ca){return _0x1457e7+_0x2324ca;},_0x139b88['ZiHRt']=_0x1f5afe(0xef);const _0x482be7=_0x139b88;return path[_0x1f5afe(0xfd)](this[_0x1f5afe(0x104)],_0x482be7['IptcI'](_0x3e2fcf,_0x482be7[_0x1f5afe(0xf3)]));}static[a56_0x2bc7cb(0x113)](_0x3602aa){const _0x5c5e57=a56_0x2bc7cb,_0x293b41={};_0x293b41['GcDfX']=function(_0x2ee76e,_0x14dc51){return _0x2ee76e+_0x14dc51;};const _0x3c55d5=_0x293b41;return _0x3c55d5[_0x5c5e57(0x106)](_0x3c55d5[_0x5c5e57(0x106)](_0x3c55d5[_0x5c5e57(0x106)](_0x3c55d5[_0x5c5e57(0x106)](this[_0x5c5e57(0xda)](_0x3602aa),'-'),this[_0x5c5e57(0x11b)](_0x3602aa)),'-'),_0x3602aa['retry']);}static[a56_0x2bc7cb(0xda)](_0x1de74d){const _0x8d4699=a56_0x2bc7cb,_0x21fdc4={'gkesd':function(_0x278c9d,_0x41e67e,_0x2ec57b){return _0x278c9d(_0x41e67e,_0x2ec57b);},'bkouL':_0x8d4699(0xe9),'VPilN':_0x8d4699(0xe3),'RiLta':_0x8d4699(0x110),'cUGmO':_0x8d4699(0xfb)};return _0x21fdc4[_0x8d4699(0x118)](nestedKeyValue,_0x1de74d,[_0x21fdc4[_0x8d4699(0xe5)],_0x21fdc4['VPilN']])||_0x21fdc4[_0x8d4699(0x118)](nestedKeyValue,_0x1de74d,[_0x21fdc4['RiLta'],_0x21fdc4['cUGmO']]);}static['getTestIdFromTestInfo'](_0x228e42){const _0x518620=a56_0x2bc7cb,_0x14c25b={'Knofm':function(_0x1dd8f2,_0x22cf77,_0x4507c5){return _0x1dd8f2(_0x22cf77,_0x4507c5);},'rkZpt':_0x518620(0xe9)};return _0x14c25b['Knofm'](nestedKeyValue,_0x228e42,[_0x14c25b[_0x518620(0x13d)],'id'])||_0x228e42[_0x518620(0xe4)];}static[a56_0x2bc7cb(0x105)](_0x1862a3){const _0x1a787b=a56_0x2bc7cb,_0x15e817={'pAsuj':function(_0x1fb02a,_0x4b1e5c){return _0x1fb02a===_0x4b1e5c;},'qCmFS':_0x1a787b(0x12b),'oQDlR':function(_0x83b5f6){return _0x83b5f6();}};try{if(this[_0x1a787b(0x116)][_0x1862a3]&&_0x15e817[_0x1a787b(0xf7)](typeof this[_0x1a787b(0x116)][_0x1862a3][_0x1a787b(0xff)],_0x15e817[_0x1a787b(0x139)]))return this[_0x1a787b(0x116)][_0x1862a3][_0x1a787b(0xff)];const _0x295399=this[_0x1a787b(0xe7)](_0x1862a3),_0x3ecdbf=path[_0x1a787b(0x13b)](_0x295399);if(fs[_0x1a787b(0x100)](_0x3ecdbf)){const _0x3116bf=JSON[_0x1a787b(0x11a)](fs[_0x1a787b(0xeb)](_0x295399)[_0x1a787b(0xe8)]());return this[_0x1a787b(0x116)][_0x1862a3]=_0x3116bf,this['tests'][_0x1862a3]['uuid'];}return this['tests'][_0x1862a3]={'uuid':_0x15e817['oQDlR'](uuidv4)},fs['writeFileSync'](_0x295399,JSON[_0x1a787b(0x111)](this['tests'][_0x1862a3])),this[_0x1a787b(0x116)][_0x1862a3][_0x1a787b(0xff)];}catch(_0x245c84){return logger[_0x1a787b(0x129)](_0x1a787b(0x114)+_0x1862a3+':\x20'+_0x245c84['message']),null;}}static[a56_0x2bc7cb(0x108)](_0x4ca043){const _0x1eb785=a56_0x2bc7cb,_0x251182=path[_0x1eb785(0xfd)](this[_0x1eb785(0x104)],_0x4ca043+'_platformDetails.json');if(fs[_0x1eb785(0x100)](_0x251182))return fs[_0x1eb785(0xeb)](_0x251182)[_0x1eb785(0xe8)]();}static[a56_0x2bc7cb(0x13e)](_0x419ceb,_0x575c62){const _0x2bfc10=a56_0x2bc7cb,_0x39d704=path[_0x2bfc10(0xfd)](this[_0x2bfc10(0x104)],_0x575c62+_0x2bfc10(0x12a));fs[_0x2bfc10(0xf8)](_0x39d704,_0x419ceb[_0x2bfc10(0xe8)]());}static['shutdown'](){const _0x77533b=a56_0x2bc7cb,_0x183650={};_0x183650['recursive']=!![],_0x183650[_0x77533b(0x11d)]=!![],fs[_0x77533b(0xdf)](this[_0x77533b(0x104)],_0x183650);}static['getTestDetails'](_0x322aa1){const _0xde977f=a56_0x2bc7cb,_0x8503d5=this[_0xde977f(0xe7)](_0x322aa1);if(fs[_0xde977f(0x100)](_0x8503d5))try{const _0x44268b=JSON['parse'](fs['readFileSync'](_0x8503d5)[_0xde977f(0xe8)]());return this['tests'][_0x322aa1]=_0x44268b,_0x44268b;}catch(_0x3aef20){return logger['warn'](_0xde977f(0xf4)+_0x8503d5+':\x20'+util[_0xde977f(0xf5)](_0x3aef20)+'.\x20Returning\x20empty\x20test\x20details.'),{};}return{};}static['setTestDetails'](_0x24dfe0,_0x11189d){const _0x57f487=a56_0x2bc7cb,_0x217aa0={'bBhle':_0x57f487(0xfa),'KXzLL':function(_0x4a7bd4){return _0x4a7bd4();}};logger[_0x57f487(0x124)](_0x217aa0['bBhle']),logger[_0x57f487(0x124)](_0x57f487(0x11f)+process[_0x57f487(0x127)]+_0x57f487(0x10f)+_0x24dfe0+_0x57f487(0xf6)+JSON[_0x57f487(0x111)](_0x11189d));const _0x52d51e=this[_0x57f487(0xe7)](_0x24dfe0);if(fs[_0x57f487(0x100)](_0x52d51e))try{const _0x31aed6=lockfile['lockSync'](_0x52d51e),_0x5c4aa3=JSON[_0x57f487(0x11a)](fs[_0x57f487(0xeb)](_0x52d51e)['toString']()),_0x36c1a6={..._0x5c4aa3,..._0x11189d};this['tests'][_0x24dfe0]=_0x36c1a6,fs[_0x57f487(0xf8)](_0x52d51e,JSON['stringify'](this[_0x57f487(0x116)][_0x24dfe0])),_0x217aa0['KXzLL'](_0x31aed6);}catch(_0x36e931){logger[_0x57f487(0xed)](_0x57f487(0xf4)+_0x52d51e+':\x20'+util[_0x57f487(0xf5)](_0x36e931)+'.\x20Unable\x20to\x20set\x20test\x20details.');}}static[a56_0x2bc7cb(0xea)](_0x1c5a5a){const _0x1f22af=a56_0x2bc7cb,_0x4e56ba={};_0x4e56ba[_0x1f22af(0x103)]=_0x1f22af(0x109);const _0x5c325d=_0x4e56ba;try{const _0x298c58=process[_0x1f22af(0x127)],_0x320156=path['join'](TestInfo[_0x1f22af(0x122)](),_0x298c58+_0x1f22af(0x120));let _0x57d453=[];fs['existsSync'](_0x320156)&&(_0x57d453=JSON['parse'](fs['readFileSync'](_0x320156)[_0x1f22af(0xe8)]()));if(!_0x57d453[_0x1f22af(0x13a)](_0x50ce3b=>_0x50ce3b[_0x1f22af(0x11e)]===_0x1c5a5a[_0x1f22af(0x11e)])){_0x57d453[_0x1f22af(0x13f)](_0x1c5a5a);const _0x1ed487=path[_0x1f22af(0x126)](_0x320156);if(!fs[_0x1f22af(0x100)](_0x1ed487)){const _0x34267b={};_0x34267b[_0x1f22af(0x10e)]=!![],fs[_0x1f22af(0x10a)](_0x1ed487,_0x34267b);}fs[_0x1f22af(0xf8)](_0x320156,JSON[_0x1f22af(0x111)](_0x57d453));}}catch(_0x53f6e4){logger[_0x1f22af(0x129)](util['format'](_0x5c325d[_0x1f22af(0x103)],_0x53f6e4));}}static['getTraceFilePaths'](){const _0x5a994c=a56_0x2bc7cb,_0x307f2={};_0x307f2[_0x5a994c(0x12c)]=_0x5a994c(0x120),_0x307f2[_0x5a994c(0x102)]=_0x5a994c(0xdc);const _0x5afc0c=_0x307f2,_0x15c137=[];try{const _0x1c3181=TestInfo[_0x5a994c(0x122)]();if(!fs[_0x5a994c(0x100)](_0x1c3181))return _0x15c137;const _0x4b4d6b=fs[_0x5a994c(0x125)](_0x1c3181);_0x4b4d6b[_0x5a994c(0x101)](_0x37651b=>{const _0x4d0051=_0x5a994c;if(_0x37651b[_0x4d0051(0xd9)](_0x5afc0c['dkCoC'])){const _0x2fe127=JSON[_0x4d0051(0x11a)](fs['readFileSync'](path[_0x4d0051(0xfd)](_0x1c3181,_0x37651b))[_0x4d0051(0xe8)]());_0x15c137[_0x4d0051(0x13f)](..._0x2fe127);}});}catch(_0x1aad2d){logger[_0x5a994c(0x129)](util['format'](_0x5afc0c[_0x5a994c(0x102)],_0x1aad2d));}const _0x438dcf={};return _0x15c137[_0x5a994c(0x101)](_0xacbda0=>{const _0x372a73=_0x5a994c;_0x438dcf[_0xacbda0[_0x372a73(0x11e)]]=_0xacbda0;}),Object['values'](_0x438dcf);}static[a56_0x2bc7cb(0x117)](_0x415188,_0x2b9ec2){const _0x48d0cc=a56_0x2bc7cb,_0xb4a8={};_0xb4a8[_0x48d0cc(0xe0)]=_0x48d0cc(0x135),_0xb4a8[_0x48d0cc(0x123)]=_0x48d0cc(0x119),_0xb4a8[_0x48d0cc(0xec)]='Error\x20writing\x20trace\x20file:\x20%O';const _0x486c88=_0xb4a8;try{const _0x3608ff=path[_0x48d0cc(0xfd)](helper[_0x48d0cc(0x12d)](),_0x486c88[_0x48d0cc(0xe0)]);if(!fs['existsSync'](_0x3608ff)){const _0x11e62e={};_0x11e62e[_0x48d0cc(0x10e)]=!![],fs['mkdirSync'](_0x3608ff,_0x11e62e);}fs[_0x48d0cc(0x10d)](path['join'](_0x3608ff,'trace_'+_0x2b9ec2+_0x48d0cc(0xf1)),_0x415188+'\x0a',_0x486c88[_0x48d0cc(0x123)]);}catch(_0x4d9739){logger[_0x48d0cc(0x129)](util[_0x48d0cc(0xf5)](_0x486c88['jgHem'],_0x4d9739));}}}module[a56_0x2bc7cb(0xde)]=TestInfo;
@@ -1 +1 @@
1
- const a57_0x330f93=a57_0x2bd0;function a57_0x2bd0(_0x4cbddb,_0x59ad4a){const _0x2a2113=a57_0x2a21();return a57_0x2bd0=function(_0x2bd0f8,_0x25c261){_0x2bd0f8=_0x2bd0f8-0xe8;let _0x700d18=_0x2a2113[_0x2bd0f8];return _0x700d18;},a57_0x2bd0(_0x4cbddb,_0x59ad4a);}(function(_0x1d2ec2,_0x341ca3){const _0xa601e0=a57_0x2bd0,_0x320adc=_0x1d2ec2();while(!![]){try{const _0x21e4e0=-parseInt(_0xa601e0(0x17a))/0x1*(-parseInt(_0xa601e0(0x178))/0x2)+-parseInt(_0xa601e0(0x13a))/0x3+parseInt(_0xa601e0(0x124))/0x4+-parseInt(_0xa601e0(0x16d))/0x5+-parseInt(_0xa601e0(0x100))/0x6*(-parseInt(_0xa601e0(0x122))/0x7)+-parseInt(_0xa601e0(0x125))/0x8*(-parseInt(_0xa601e0(0x144))/0x9)+parseInt(_0xa601e0(0x14e))/0xa;if(_0x21e4e0===_0x341ca3)break;else _0x320adc['push'](_0x320adc['shift']());}catch(_0x21ff42){_0x320adc['push'](_0x320adc['shift']());}}}(a57_0x2a21,0xcb3e5));const {spawn}=require(a57_0x330f93(0x186)),GrpcClient=require(a57_0x330f93(0x192)),util=require(a57_0x330f93(0x113)),CLIUtils=require('./cliUtils.js'),PlaywrightAutomationFramework=require(a57_0x330f93(0x16c)),PlaywrightTestFramework=require(a57_0x330f93(0x19f)),{createClassLogger}=require(a57_0x330f93(0x162)),PerformanceTester=require('../../helpers/performance/performance-tester.js'),{EVENTS:PerformanceEvents}=require('../../helpers/performance/constants'),AccessibilityModule=require('./modules/accessibilityModule.js'),{CLI_SUPPORTED_FRAMEWORKS,FRAMEWORKS}=require(a57_0x330f93(0x175)),helper=require(a57_0x330f93(0x104)),TestFrameworkConstants=require(a57_0x330f93(0xf3)),TestInfo=require('./TestInfo.js');class BrowserstackCLI{static #instance=null;static [a57_0x330f93(0x11d)]=null;static [a57_0x330f93(0x15e)]=null;static [a57_0x330f93(0x193)]=null;[a57_0x330f93(0x17b)]=null;[a57_0x330f93(0x154)]=![];[a57_0x330f93(0x153)]=![];[a57_0x330f93(0x131)]=null;[a57_0x330f93(0x10b)]={};[a57_0x330f93(0x11c)]=null;[a57_0x330f93(0x191)]=null;[a57_0x330f93(0xf9)]=createClassLogger('BrowserstackCLI');constructor(){const _0x31cb4b=a57_0x330f93;this[_0x31cb4b(0x17d)]=![],this[_0x31cb4b(0xe9)]={},this[_0x31cb4b(0x1a3)]={},this[_0x31cb4b(0x14d)]={};}static[a57_0x330f93(0x108)](){return!BrowserstackCLI.#instance&&(BrowserstackCLI.#instance=new BrowserstackCLI()),BrowserstackCLI.#instance;}async[a57_0x330f93(0xfc)](){const _0x135db5=a57_0x330f93,_0x18309={};_0x18309[_0x135db5(0x10f)]='Disabling\x20CLI.';const _0x385f30=_0x18309;if(helper[_0x135db5(0x17f)](process[_0x135db5(0x1a5)][_0x135db5(0x13b)])){this[_0x135db5(0xf9)][_0x135db5(0x17e)](_0x385f30['tTVYr']);return;}PerformanceTester[_0x135db5(0xf8)](PerformanceEvents[_0x135db5(0x14a)]);try{const _0x122d31=process[_0x135db5(0x1a5)]['BROWSERSTACK_CLI_BIN_SESSION_ID']||null;this[_0x135db5(0x105)](),this[_0x135db5(0x126)]();if(_0x122d31){await this['startChild'](_0x122d31),PerformanceTester['end'](PerformanceEvents[_0x135db5(0x14a)]);return;}await this[_0x135db5(0x196)]();}catch(_0x2dc2d6){this['logger'][_0x135db5(0x140)](_0x135db5(0x18d)+(_0x2dc2d6[_0x135db5(0x120)]||_0x2dc2d6)),await this['stop'](),PerformanceTester['end'](PerformanceEvents[_0x135db5(0x14a)],![],util[_0x135db5(0xfb)](_0x2dc2d6));}}async[a57_0x330f93(0x196)](){const _0x5f50f2=a57_0x330f93,_0x22c617={};_0x22c617['pBRxI']=_0x5f50f2(0x157),_0x22c617[_0x5f50f2(0x112)]='startMain:\x20main-process\x20started';const _0x5a525a=_0x22c617;this[_0x5f50f2(0xf9)]['info'](_0x5a525a['pBRxI']),await this[_0x5f50f2(0xf8)](),this['logger'][_0x5f50f2(0x139)](_0x5a525a['DVSSW']);const _0x3c5148=await GrpcClient[_0x5f50f2(0x108)]()['startBinSession']();this['isMainConnected']=!![],this[_0x5f50f2(0x129)](_0x3c5148);}[a57_0x330f93(0x129)](_0x1fbada){const _0x3291c5=a57_0x330f93,_0x28c177={'pTQIb':function(_0x3ecce2,_0x4c37be){return _0x3ecce2(_0x4c37be);},'LccpT':_0x3291c5(0x12b),'HXhME':_0x3291c5(0x103),'tdFXl':function(_0x56ecae,_0x52d61a){return _0x56ecae(_0x52d61a);},'fznVb':_0x3291c5(0x130),'PeDFe':_0x3291c5(0x133),'MZHiT':_0x3291c5(0x143),'Vncga':_0x3291c5(0x107),'ftSGZ':'getSuccess','cnDus':function(_0x3d899a,_0x55263f){return _0x3d899a||_0x55263f;}},_0x53dd7c=_0x28c177['pTQIb'](require,_0x28c177['LccpT']),_0x3903cb=_0x28c177[_0x3291c5(0x19c)](require,_0x28c177[_0x3291c5(0x11f)]),_0xee795c=_0x28c177['tdFXl'](require,_0x28c177['fznVb']);this['logger'][_0x3291c5(0x17e)](_0x28c177[_0x3291c5(0x198)]),this['binSessionId']=_0x1fbada[_0x3291c5(0x12e)](),this['logger'][_0x3291c5(0x17e)](_0x3291c5(0x151)+this[_0x3291c5(0x131)]),this[_0x3291c5(0x14c)](_0x1fbada);!this[_0x3291c5(0x153)]&&this[_0x3291c5(0x194)](_0x1fbada);const _0x3b9c3d=_0x28c177[_0x3291c5(0x101)],_0x14866b=_0x28c177[_0x3291c5(0xea)],_0xacdc04=_0x28c177['ftSGZ'],_0x4f2aae=_0x1fbada[_0x3b9c3d]()&&_0x1fbada[_0x3b9c3d]()[_0xacdc04](),_0x334144=_0x1fbada[_0x14866b]()&&_0x1fbada[_0x14866b]()[_0xacdc04]();_0x28c177[_0x3291c5(0x152)](_0x4f2aae,_0x334144)&&(this['modules'][_0x3903cb[_0x3291c5(0xf5)]]=new _0x3903cb(_0x1fbada[_0x3291c5(0x109)]())),_0x4f2aae&&(this[_0x3291c5(0x10b)][_0xee795c[_0x3291c5(0xf5)]]=new _0xee795c(_0x1fbada[_0x3b9c3d]())),_0x334144&&(this[_0x3291c5(0x10b)][AccessibilityModule[_0x3291c5(0xf5)]]=new AccessibilityModule(_0x1fbada[_0x14866b]())),this[_0x3291c5(0x10b)][_0x53dd7c[_0x3291c5(0xf5)]]=new _0x53dd7c(),this[_0x3291c5(0x111)]();}[a57_0x330f93(0x160)](){const _0x4e4179=a57_0x330f93;return this[_0x4e4179(0x10b)][AccessibilityModule[_0x4e4179(0xf5)]];}async['configureModules'](){const _0x1a014a=a57_0x330f93;for(const _0x3c399b in this[_0x1a014a(0x10b)]){const _0x5ec1fb=this[_0x1a014a(0x10b)][_0x3c399b];await _0x5ec1fb['configure'](this[_0x1a014a(0x131)],0x0,GrpcClient[_0x1a014a(0x108)]()[_0x1a014a(0x195)],this[_0x1a014a(0xe9)]);}}async['start'](){const _0x3bb1e4=a57_0x330f93,_0x412baf={'AtdUn':function(_0x4c405a,_0x3caf0e){return _0x4c405a!==_0x3caf0e;},'Ertcn':_0x3bb1e4(0x119),'AvGzU':function(_0x5a90a4){return _0x5a90a4();},'pLROw':function(_0x33bb1a,_0x47e542){return _0x33bb1a(_0x47e542);},'WhEJh':function(_0x514f33,_0xe91012){return _0x514f33!==_0xe91012;},'SgtFJ':'data','AEWKw':_0x3bb1e4(0x140),'QxwHa':_0x3bb1e4(0x171),'abnnc':_0x3bb1e4(0x10e),'AdlqW':function(_0x43334b,_0x5e6822,_0x452fd1,_0x4cc389){return _0x43334b(_0x5e6822,_0x452fd1,_0x4cc389);},'pxquG':_0x3bb1e4(0x137)};PerformanceTester[_0x3bb1e4(0xf8)](PerformanceEvents[_0x3bb1e4(0x187)]);if(CLIUtils[_0x3bb1e4(0x116)]())return this[_0x3bb1e4(0x12d)](CLIUtils[_0x3bb1e4(0x18f)]()),PerformanceTester[_0x3bb1e4(0x102)](PerformanceEvents[_0x3bb1e4(0x187)]),Promise[_0x3bb1e4(0x180)]();if(this['process']&&this['process'][_0x3bb1e4(0xfa)])return PerformanceTester[_0x3bb1e4(0x102)](PerformanceEvents[_0x3bb1e4(0x187)]),Promise[_0x3bb1e4(0x180)]();const _0x57a150=await this['getCliBinPath'](),_0x351442=[_0x57a150,_0x412baf[_0x3bb1e4(0x121)]];this[_0x3bb1e4(0xf9)]['info']('spawning\x20command=\x27'+_0x351442+'\x27');const _0x2bd1ef={};_0x2bd1ef[_0x3bb1e4(0x1a5)]=process[_0x3bb1e4(0x1a5)],this[_0x3bb1e4(0x17b)]=_0x412baf[_0x3bb1e4(0x156)](spawn,_0x351442[0x0],_0x351442[_0x3bb1e4(0x12a)](0x1),_0x2bd1ef);if(!this[_0x3bb1e4(0x17b)][_0x3bb1e4(0x173)])throw new Error(_0x412baf[_0x3bb1e4(0x172)]);return new Promise((_0x47bcaf,_0x435c40)=>{const _0x184dab=_0x3bb1e4,_0x33ae36={'eKgXc':function(_0x511997,_0x2c10e7){const _0x14d71e=a57_0x2bd0;return _0x412baf[_0x14d71e(0xec)](_0x511997,_0x2c10e7);},'yfZAK':function(_0x23afd4,_0x4c5446){const _0x2f0b19=a57_0x2bd0;return _0x412baf[_0x2f0b19(0x197)](_0x23afd4,_0x4c5446);}},_0x4f3520={};this['process']['stdout']['on'](_0x412baf[_0x184dab(0x16a)],_0xc55ce9=>{const _0x57c99d=_0x184dab,_0x51da3f=_0xc55ce9['toString']()['trim']()[_0x57c99d(0x128)]('\x0a');for(const _0x5c6682 of _0x51da3f){if(/^(id|listen|port)=.*$/['test'](_0x5c6682)){const [_0x22b8d8,_0x461d30]=_0x5c6682[_0x57c99d(0x128)]('=',0x2);_0x412baf[_0x57c99d(0x188)](_0x461d30,undefined)&&(_0x4f3520[_0x22b8d8]=_0x461d30);}if(_0x5c6682['toLowerCase']()[_0x57c99d(0x15c)](_0x412baf[_0x57c99d(0x183)])){this[_0x57c99d(0x12d)](_0x4f3520),PerformanceTester[_0x57c99d(0x102)](PerformanceEvents[_0x57c99d(0x187)]),_0x412baf['AvGzU'](_0x47bcaf);return;}}}),this[_0x184dab(0x17b)][_0x184dab(0x164)]['on'](_0x412baf[_0x184dab(0x16a)],_0x2225a9=>{const _0x8b7c6c=_0x184dab;this[_0x8b7c6c(0xf9)][_0x8b7c6c(0x140)](_0x8b7c6c(0xed)+_0x2225a9[_0x8b7c6c(0x176)]()['trim']());}),this[_0x184dab(0x17b)]['on'](_0x412baf['AEWKw'],_0xd16641=>{const _0x24f149=_0x184dab;_0x4f3520['error']=_0x24f149(0x13e)+_0xd16641[_0x24f149(0x141)],PerformanceTester[_0x24f149(0x102)](PerformanceEvents[_0x24f149(0x187)],![],_0xd16641),_0x33ae36[_0x24f149(0x177)](_0x435c40,new Error('Failed\x20to\x20start\x20CLI\x20process:\x20'+_0xd16641[_0x24f149(0x141)]));}),this[_0x184dab(0x17b)]['on'](_0x412baf[_0x184dab(0x10a)],_0x30917c=>{const _0x229471=_0x184dab;_0x33ae36[_0x229471(0x159)](_0x30917c,0x0)&&_0x33ae36['eKgXc'](_0x435c40,new Error(_0x229471(0x13c)+_0x30917c));});});}async[a57_0x330f93(0xeb)](_0x477ae3=null){const _0x80703a=a57_0x330f93,_0x3ec907={'CPWfr':_0x80703a(0x145),'owbwe':_0x80703a(0xee),'yIhgP':function(_0x24be47){return _0x24be47();},'xEZVA':_0x80703a(0xf0),'dqOAP':function(_0x47ced8){return _0x47ced8();},'uyTYi':_0x80703a(0x161),'pgexZ':function(_0x43998a,_0x5bf642,_0x3614fc){return _0x43998a(_0x5bf642,_0x3614fc);},'GLJWx':'stop:\x20CLI\x20is\x20not\x20running,\x20skipping\x20stop','WGAMD':_0x80703a(0x169),'NXjiJ':function(_0xd36c21,_0xab8c11){return _0xd36c21(_0xab8c11);},'hLSQL':_0x80703a(0x13d),'bLrCn':'stop:\x20channel\x20closed','tAxhK':_0x80703a(0x12c),'WHiVV':_0x80703a(0x135)};if(!this[_0x80703a(0x15d)]()){this[_0x80703a(0xf9)][_0x80703a(0x17e)](_0x3ec907[_0x80703a(0x146)]);return;}PerformanceTester['start'](PerformanceEvents[_0x80703a(0x11a)]),this[_0x80703a(0xf9)][_0x80703a(0x17e)](_0x3ec907[_0x80703a(0x11e)]);try{if(this[_0x80703a(0x154)]){const _0x55f1af=_0x3ec907[_0x80703a(0x155)](require,_0x3ec907[_0x80703a(0x19d)]),_0x2eaa95=this[_0x80703a(0x10b)]['TestHubModule']?.['testhubConfig']?.['toObject']()?.[_0x80703a(0x136)],_0x6fbd5a=TestInfo[_0x80703a(0x185)](_0x2eaa95),_0x839687=_0x6fbd5a[TestFrameworkConstants[_0x80703a(0x123)]]||{},_0x46c16c=await GrpcClient['getInstance']()[_0x80703a(0xf4)](JSON[_0x80703a(0x16e)](_0x839687),_0x477ae3);_0x46c16c&&_0x46c16c[_0x80703a(0x170)]()&&_0x46c16c['getAutomateBuildlink']()&&(BrowserstackCLI[_0x80703a(0x11d)]=_0x46c16c[_0x80703a(0x16b)](),BrowserstackCLI[_0x80703a(0x15e)]=_0x46c16c[_0x80703a(0x114)]()),await _0x55f1af[_0x80703a(0xf1)](),TestInfo[_0x80703a(0x199)](),this['logger']['info'](_0x80703a(0x19a)+BrowserstackCLI[_0x80703a(0x11d)]+'\x20hashed_id='+BrowserstackCLI[_0x80703a(0x15e)]+_0x80703a(0x127)+BrowserstackCLI['O11yHashedID']);}await this[_0x80703a(0x166)]();const _0x58d107=GrpcClient['getInstance']()[_0x80703a(0x17c)]();if(_0x58d107){try{_0x58d107[_0x80703a(0x171)](),this['logger']['info'](_0x3ec907['bLrCn']);}catch(_0x4675f8){this[_0x80703a(0xf9)][_0x80703a(0x140)](util[_0x80703a(0xfb)](_0x3ec907[_0x80703a(0xf2)],_0x4675f8));}await new Promise(_0xa13c70=>setTimeout(_0xa13c70,0x1388));}this['process']&&this[_0x80703a(0x17b)][_0x80703a(0x173)]&&(this[_0x80703a(0xf9)][_0x80703a(0x17e)](_0x3ec907[_0x80703a(0x1a1)]),this[_0x80703a(0x17b)][_0x80703a(0x14b)](),await new Promise(_0x245838=>{const _0x2e40fa=_0x80703a,_0x1d9842={'YwMyU':_0x3ec907[_0x2e40fa(0xf6)],'AyMsx':function(_0x5a7af0){const _0x2b721a=_0x2e40fa;return _0x3ec907[_0x2b721a(0x117)](_0x5a7af0);}};let _0x2399b2=![];this[_0x2e40fa(0x17b)]['on'](_0x3ec907[_0x2e40fa(0x1a6)],()=>{const _0x3f980e=_0x2e40fa;this[_0x3f980e(0xf9)]['info'](_0x1d9842[_0x3f980e(0x18b)]),_0x2399b2=!![],PerformanceTester[_0x3f980e(0x102)](PerformanceEvents[_0x3f980e(0x11a)]),_0x1d9842[_0x3f980e(0x158)](_0x245838);}),_0x3ec907['pgexZ'](setTimeout,()=>{const _0x3db06b=_0x2e40fa;!_0x2399b2&&(this[_0x3db06b(0xf9)][_0x3db06b(0x184)](_0x3ec907[_0x3db06b(0xff)]),this[_0x3db06b(0x17b)]['kill'](_0x3ec907['owbwe']),PerformanceTester[_0x3db06b(0x102)](PerformanceEvents[_0x3db06b(0x11a)]),_0x3ec907[_0x3db06b(0x142)](_0x245838));},0xbb8);}));}catch(_0x4ea116){PerformanceTester[_0x80703a(0x102)](PerformanceEvents[_0x80703a(0x11a)],![],util[_0x80703a(0xfb)](_0x4ea116)),this[_0x80703a(0xf9)][_0x80703a(0x140)](_0x80703a(0x12f)+(_0x4ea116[_0x80703a(0x120)]||_0x4ea116));}_0x477ae3?this[_0x80703a(0x17b)][_0x80703a(0x18a)]=0x1:this[_0x80703a(0x17b)][_0x80703a(0x18a)]=0x0,this[_0x80703a(0x153)]=![],this[_0x80703a(0x154)]=![],process[_0x80703a(0x1a5)][_0x80703a(0x11b)]=null;}async['unConfigureModules'](){const _0xefff7b=a57_0x330f93,_0x340e7f={};_0x340e7f[_0xefff7b(0x138)]=_0xefff7b(0x168);const _0x49ead5=_0x340e7f;this['logger'][_0xefff7b(0x17e)](_0x49ead5[_0xefff7b(0x138)]);}[a57_0x330f93(0x12d)](_0xb7c17a){const _0x4b81db=a57_0x330f93;this['logger'][_0x4b81db(0x17e)](_0x4b81db(0x179)+JSON[_0x4b81db(0x16e)](_0xb7c17a)),this[_0x4b81db(0x118)]=_0xb7c17a,GrpcClient[_0x4b81db(0x108)]()['init'](_0xb7c17a);}async[a57_0x330f93(0x15b)](_0x16d89e){const _0x27c292=a57_0x330f93,_0x5c5b4a={};_0x5c5b4a[_0x27c292(0x18c)]=_0x27c292(0x147);const _0xbf7a86=_0x5c5b4a;PerformanceTester[_0x27c292(0xf8)](PerformanceEvents[_0x27c292(0x16f)]);try{this[_0x27c292(0xf9)][_0x27c292(0x17e)](_0x27c292(0x15a)+_0x16d89e);const _0x507e50=GrpcClient[_0x27c292(0x108)]();if(_0x507e50&&_0x507e50[_0x27c292(0x182)]()&&_0x507e50[_0x27c292(0x17c)]()){this[_0x27c292(0xf9)][_0x27c292(0x17e)](_0xbf7a86[_0x27c292(0x18c)]);return;}GrpcClient['getInstance']()[_0x27c292(0xfd)]();const _0x4632c0=await GrpcClient[_0x27c292(0x108)]()['connectBinSession']();this[_0x27c292(0x153)]=!![],this['loadModules'](_0x4632c0),PerformanceTester['end'](PerformanceEvents['SDK_CONNECT_BIN_SESSION']);}catch(_0x1a9cef){PerformanceTester['end'](PerformanceEvents[_0x27c292(0x16f)],![],util[_0x27c292(0xfb)](_0x1a9cef)),this[_0x27c292(0xf9)][_0x27c292(0x140)](_0x27c292(0x163)+util[_0x27c292(0xfb)](_0x1a9cef));}}[a57_0x330f93(0x15d)](){const _0x309d0e=a57_0x330f93,_0x50cec9={};_0x50cec9[_0x309d0e(0xe8)]=function(_0x2c5708,_0x5a3773){return _0x2c5708!==_0x5a3773;},_0x50cec9['CinSl']=function(_0x3251c9,_0x72ceed){return _0x3251c9===_0x72ceed;},_0x50cec9[_0x309d0e(0x181)]=function(_0x315b68,_0x153de7){return _0x315b68!==_0x153de7;},_0x50cec9['KwzfC']=function(_0x58a0d7,_0x400a12){return _0x58a0d7!==_0x400a12;};const _0x3c583b=_0x50cec9;return CLIUtils[_0x309d0e(0x116)]()||this[_0x309d0e(0x154)]&&_0x3c583b[_0x309d0e(0xe8)](this[_0x309d0e(0x17b)],null)&&_0x3c583b[_0x309d0e(0x174)](this[_0x309d0e(0x17b)][_0x309d0e(0x18a)],null)&&_0x3c583b['kHXKE'](GrpcClient[_0x309d0e(0x108)]()['getClient'](),null)&&!GrpcClient[_0x309d0e(0x108)]()['getChannel']()[_0x309d0e(0x132)]||this[_0x309d0e(0x153)]&&_0x3c583b[_0x309d0e(0x10c)](GrpcClient[_0x309d0e(0x108)]()[_0x309d0e(0x17c)](),null)&&!GrpcClient[_0x309d0e(0x108)]()[_0x309d0e(0x17c)]()[_0x309d0e(0x132)];}[a57_0x330f93(0x115)](){const _0x46f593=a57_0x330f93;return this[_0x46f593(0x14d)];}[a57_0x330f93(0x15f)](_0x1b1e37,_0x3a0edc=null){const _0x454dfe=a57_0x330f93,_0x3b862f={};_0x3b862f[_0x454dfe(0x19e)]=function(_0x2a9ec6,_0x32a094){return _0x2a9ec6||_0x32a094;};const _0x2069e1=_0x3b862f;this[_0x454dfe(0x14d)]=_0x2069e1[_0x454dfe(0x19e)](_0x1b1e37,{}),this[_0x454dfe(0xf7)]=_0x3a0edc,process[_0x454dfe(0x1a5)][_0x454dfe(0x134)]=this[_0x454dfe(0x14d)]?.[_0x454dfe(0x148)]||![];const _0x2e7523=CLIUtils[_0x454dfe(0xfe)]();helper['isTrue'](process[_0x454dfe(0x1a5)][_0x454dfe(0x134)])||!CLI_SUPPORTED_FRAMEWORKS[_0x454dfe(0x15c)](_0x2e7523['name'][_0x454dfe(0x106)]())?process[_0x454dfe(0x1a5)][_0x454dfe(0x13b)]=![]:process[_0x454dfe(0x1a5)][_0x454dfe(0x13b)]=!![];}async['getCliBinPath'](){const _0x28bfa4=a57_0x330f93;return!this['SDK_CLI_BIN_PATH']&&(this[_0x28bfa4(0x165)]=await CLIUtils[_0x28bfa4(0x167)](this[_0x28bfa4(0x14d)])),this['SDK_CLI_BIN_PATH'];}['isCliEnabled'](){const _0x1e7a26=a57_0x330f93;return helper[_0x1e7a26(0x1a2)](process['env'][_0x1e7a26(0x13b)]);}[a57_0x330f93(0x190)](){const _0x4ca583=a57_0x330f93;return this[_0x4ca583(0xe9)];}[a57_0x330f93(0x14c)](_0x44c70a){const _0x302c0c=a57_0x330f93,_0x38b997={};_0x38b997['MzGwX']=_0x302c0c(0x14f);const _0x10f49e=_0x38b997;try{this[_0x302c0c(0xe9)]=JSON[_0x302c0c(0x18e)](_0x44c70a[_0x302c0c(0x190)]()),this[_0x302c0c(0xf9)]['info'](_0x10f49e[_0x302c0c(0x1a0)]);}catch(_0x11d3d4){this[_0x302c0c(0xf9)][_0x302c0c(0x140)]('setConfig:\x20error='+util[_0x302c0c(0xfb)](_0x11d3d4));}}[a57_0x330f93(0x194)](_0x4cb231){const _0x3d915f=a57_0x330f93;try{this[_0x3d915f(0x1a3)]=_0x4cb231['getCliArgs']()[_0x3d915f(0x128)](','),this[_0x3d915f(0xf9)][_0x3d915f(0x17e)]('setCliArgs:\x20cliArgs='+JSON[_0x3d915f(0x16e)](this[_0x3d915f(0x1a3)]));}catch(_0x296db0){this['logger'][_0x3d915f(0x140)](_0x3d915f(0x19b)+util[_0x3d915f(0xfb)](_0x296db0));}}[a57_0x330f93(0x189)](){const _0x183f38=a57_0x330f93;return this[_0x183f38(0x1a3)];}[a57_0x330f93(0x126)](){const _0x47bf96=a57_0x330f93,_0x52ec59={};_0x52ec59['fgKUM']=function(_0x3d4145,_0x4ec3e8){return _0x3d4145===_0x4ec3e8;};const _0x1c4ffd=_0x52ec59,_0xd4913d=CLIUtils[_0x47bf96(0xfe)]();_0x1c4ffd[_0x47bf96(0x10d)](_0xd4913d[_0x47bf96(0x13f)][_0x47bf96(0x106)](),FRAMEWORKS[_0x47bf96(0x149)]['toLowerCase']())&&(this[_0x47bf96(0x11c)]=new PlaywrightTestFramework([_0xd4913d[_0x47bf96(0x13f)]],_0xd4913d[_0x47bf96(0x150)]));}[a57_0x330f93(0x105)](){const _0x45d32d=a57_0x330f93,_0x200518={};_0x200518['KXAoP']=function(_0x1edd29,_0x3fd694){return _0x1edd29===_0x3fd694;};const _0x10065c=_0x200518,_0x190896=CLIUtils[_0x45d32d(0xef)]();_0x10065c['KXAoP'](_0x190896[_0x45d32d(0x13f)]['toLowerCase'](),FRAMEWORKS[_0x45d32d(0x149)][_0x45d32d(0x106)]())&&(this['automationFramework']=new PlaywrightAutomationFramework(_0x190896[_0x45d32d(0x13f)],_0x190896[_0x45d32d(0x150)]));}[a57_0x330f93(0x1a4)](){const _0x40f530=a57_0x330f93;return this[_0x40f530(0x11c)];}[a57_0x330f93(0x110)](){const _0x17ac50=a57_0x330f93;return this[_0x17ac50(0x191)];}['getBrowserstackCliConfig'](){return this['browserstackCliConfig'];}}function a57_0x2a21(){const _0xfb2686=['isFalse','resolve','kHXKE','getClient','Ertcn','warn','getTestDetails','child_process','SDK_CLI_START','AtdUn','getCliArgs','exitCode','YwMyU','LDLEZ','bootstrap:\x20failed\x20to\x20bootstrap=','parse','getCLIParamsForDevEnv','getConfig','automationFramework','./grpcClient.js','O11yHashedID','setCliArgs','client','startMain','WhEJh','PeDFe','shutdown','stop:\x20stopBinSession\x20build_link=','setCliArgs:\x20error=','pTQIb','hLSQL','hixHf','./framework/playwrightTestFramework.js','MzGwX','WHiVV','isTrue','cliArgs','getTestFramework','env','uyTYi','aIdfg','config','Vncga','stop','pLROw','CLI\x20stderr:\x20','SIGKILL','getAutomationFrameworkDetail','stop:\x20CLI\x20process\x20exited','clearAttachments','tAxhK','./framework/constants/testFrameworkConstants.js','stopBinSession','MODULE_NAME','xEZVA','browserstackCliConfig','start','logger','connected','format','bootstrap','connect','getTestFrameworkDetail','CPWfr','18sbrvJj','MZHiT','end','./modules/testhubModule.js','../../helpers/helper.js','setupAutomationFramework','toLowerCase','getAccessibility','getInstance','getTesthub','QxwHa','modules','KwzfC','fgKUM','sdk','tTVYr','getAutomationFramework','configureModules','DVSSW','util','getHashedId','getBrowserstackConfig','isDevelopmentEnv','dqOAP','cliParams','ready','SDK_CLI_ON_STOP','BROWSERSTACK_CLI_ENV','testFramework','BuildLink','WGAMD','HXhME','stack','abnnc','1797747gAQvzV','KEY_CUSTOM_TAGS','4069528vOBiDf','85864NkRjaT','setupTestFramework','\x20o11y_uuid=','split','loadModules','slice','./modules/playwrightDriverModule.js','stop:\x20error\x20in\x20closing\x20channel:\x20%s','loadCliParams','getBinSessionId','stop:\x20error\x20in\x20stop\x20session\x20exception=','./modules/observabilityModule.js','binSessionId','isClosed','loadModules:\x20Loading\x20modules','BROWSERSTACK_TURBOSCALE','stop:\x20shutting\x20down\x20CLI','buildHashedId','failed\x20to\x20start\x20CLI,\x20no\x20PID\x20found','MdLUP','debug','3647679nYhXfp','BROWSERSTACK_CLI_ENABLED','CLI\x20process\x20exited\x20with\x20code\x20','./uploadAttachmentsManager.js','Error\x20in\x20start:\x20','name','error','message','yIhgP','getObservability','675UBGGZp','stop:\x20process\x20exit\x20timeout,\x20forcing\x20kill','GLJWx','startChild:\x20client\x20and\x20channel\x20already\x20exist,\x20stopping\x20here','turboScale','PLAYWRIGHT','SDK_CLI_ON_BOOTSTRAP','kill','setConfig','browserstackConfig','967170jJUgDa','loading\x20Modules.','version','loadModules:\x20binSessionId=','cnDus','isChildConnected','isMainConnected','NXjiJ','AdlqW','startMain:\x20Starting\x20main\x20process','AyMsx','yfZAK','Starting\x20as\x20child\x20process\x20with\x20session\x20ID:\x20','startChild','includes','isRunning','HashedID','setBrowserstackConfig','getAccessibilityModule','exit','../../helpers/classLogger.js','Failed\x20to\x20start\x20as\x20child\x20process:\x20','stderr','SDK_CLI_BIN_PATH','unConfigureModules','setupCliPath','Unconfiguring\x20modules','stop:\x20CLI\x20stop\x20triggered','SgtFJ','getAutomateBuildlink','./framework/playwrightAutomationFramework.js','4247695niYtYZ','stringify','SDK_CONNECT_BIN_SESSION','getSuccess','close','pxquG','pid','CinSl','../utils/constants.js','toString','eKgXc','4530FEYjsO','CLI\x20params\x20loaded:\x20','92ZJkcir','process','getChannel','initialized','info'];a57_0x2a21=function(){return _0xfb2686;};return a57_0x2a21();}module['exports']=BrowserstackCLI;
1
+ const a57_0xd94aa0=a57_0x4147;(function(_0x1b6a00,_0x4be91c){const _0x4245db=a57_0x4147,_0x1226a2=_0x1b6a00();while(!![]){try{const _0x387f4e=-parseInt(_0x4245db(0x237))/0x1*(-parseInt(_0x4245db(0x23d))/0x2)+parseInt(_0x4245db(0x220))/0x3*(-parseInt(_0x4245db(0x20f))/0x4)+-parseInt(_0x4245db(0x292))/0x5+-parseInt(_0x4245db(0x1e7))/0x6*(-parseInt(_0x4245db(0x298))/0x7)+parseInt(_0x4245db(0x26a))/0x8*(-parseInt(_0x4245db(0x254))/0x9)+-parseInt(_0x4245db(0x296))/0xa+parseInt(_0x4245db(0x28f))/0xb;if(_0x387f4e===_0x4be91c)break;else _0x1226a2['push'](_0x1226a2['shift']());}catch(_0x49a1d1){_0x1226a2['push'](_0x1226a2['shift']());}}}(a57_0x1cf0,0xab866));function a57_0x4147(_0x8f76ca,_0xb88e1b){const _0x1cf02b=a57_0x1cf0();return a57_0x4147=function(_0x4147cf,_0x1235f9){_0x4147cf=_0x4147cf-0x1d9;let _0x41234f=_0x1cf02b[_0x4147cf];return _0x41234f;},a57_0x4147(_0x8f76ca,_0xb88e1b);}const {spawn}=require('child_process'),GrpcClient=require(a57_0xd94aa0(0x27a)),util=require('util'),CLIUtils=require(a57_0xd94aa0(0x25a)),PlaywrightAutomationFramework=require(a57_0xd94aa0(0x27e)),PlaywrightTestFramework=require(a57_0xd94aa0(0x26d)),{createClassLogger}=require('../../helpers/classLogger.js'),PerformanceTester=require(a57_0xd94aa0(0x29b)),{EVENTS:PerformanceEvents}=require('../../helpers/performance/constants'),AccessibilityModule=require(a57_0xd94aa0(0x265)),{CLI_SUPPORTED_FRAMEWORKS,FRAMEWORKS}=require(a57_0xd94aa0(0x259)),helper=require(a57_0xd94aa0(0x20a)),TestFrameworkConstants=require(a57_0xd94aa0(0x248)),TestInfo=require(a57_0xd94aa0(0x206));class BrowserstackCLI{static #instance=null;static [a57_0xd94aa0(0x291)]=null;static [a57_0xd94aa0(0x1dd)]=null;static [a57_0xd94aa0(0x23c)]=null;[a57_0xd94aa0(0x255)]=null;[a57_0xd94aa0(0x293)]=![];[a57_0xd94aa0(0x264)]=![];['binSessionId']=null;[a57_0xd94aa0(0x268)]={};[a57_0xd94aa0(0x280)]=null;[a57_0xd94aa0(0x267)]=null;[a57_0xd94aa0(0x20b)]=createClassLogger(a57_0xd94aa0(0x244));constructor(){const _0x1fe7b5=a57_0xd94aa0;this[_0x1fe7b5(0x25d)]=![],this[_0x1fe7b5(0x21c)]={},this[_0x1fe7b5(0x238)]={},this['browserstackConfig']={};}static['getInstance'](){return!BrowserstackCLI.#instance&&(BrowserstackCLI.#instance=new BrowserstackCLI()),BrowserstackCLI.#instance;}async[a57_0xd94aa0(0x1f0)](){const _0x14c926=a57_0xd94aa0,_0x38d0c3={};_0x38d0c3[_0x14c926(0x1e4)]=_0x14c926(0x25b);const _0x4cc265=_0x38d0c3;if(helper[_0x14c926(0x289)](process['env'][_0x14c926(0x23b)])){this[_0x14c926(0x20b)][_0x14c926(0x251)](_0x4cc265['RGJmt']);return;}PerformanceTester[_0x14c926(0x232)](PerformanceEvents[_0x14c926(0x24d)]);try{const _0x57903f=process[_0x14c926(0x272)][_0x14c926(0x22f)]||null;this[_0x14c926(0x22b)](),this[_0x14c926(0x288)]();if(_0x57903f){await this[_0x14c926(0x282)](_0x57903f),PerformanceTester['end'](PerformanceEvents['SDK_CLI_ON_BOOTSTRAP']);return;}await this[_0x14c926(0x27b)]();}catch(_0x1d688a){this[_0x14c926(0x20b)][_0x14c926(0x234)]('bootstrap:\x20failed\x20to\x20bootstrap='+(_0x1d688a['stack']||_0x1d688a)),await this[_0x14c926(0x1eb)](),PerformanceTester[_0x14c926(0x1dc)](PerformanceEvents[_0x14c926(0x24d)],![],util['format'](_0x1d688a));}}async[a57_0xd94aa0(0x27b)](){const _0xe2ba76=a57_0xd94aa0,_0x34b7dc={};_0x34b7dc[_0xe2ba76(0x210)]=_0xe2ba76(0x26b),_0x34b7dc[_0xe2ba76(0x1db)]=_0xe2ba76(0x229);const _0x117819=_0x34b7dc;this[_0xe2ba76(0x20b)]['info'](_0x117819[_0xe2ba76(0x210)]),await this[_0xe2ba76(0x232)](),this['logger'][_0xe2ba76(0x25c)](_0x117819[_0xe2ba76(0x1db)]);const _0x1e3688=await GrpcClient[_0xe2ba76(0x20c)]()[_0xe2ba76(0x273)]();this[_0xe2ba76(0x293)]=!![],this['loadModules'](_0x1e3688);}[a57_0xd94aa0(0x1fa)](_0x3074a9){const _0x4ec238=a57_0xd94aa0,_0x5515f4={'KdyWI':function(_0x4e238f,_0x338882){return _0x4e238f(_0x338882);},'BkwQU':_0x4ec238(0x24c),'sBJCZ':function(_0x47a4d0,_0x4da9f1){return _0x47a4d0(_0x4da9f1);},'OgHTl':_0x4ec238(0x1e1),'pVgCP':function(_0x577329,_0x3eff1d){return _0x577329(_0x3eff1d);},'IxVgU':_0x4ec238(0x23e),'AgaqX':_0x4ec238(0x1ec),'IjaIc':_0x4ec238(0x1f4),'ZVHOF':_0x4ec238(0x222),'UfOnw':'getSuccess','swoCh':function(_0x10211e,_0x7932cd){return _0x10211e||_0x7932cd;}},_0x525f5c=_0x5515f4[_0x4ec238(0x278)](require,_0x5515f4[_0x4ec238(0x1fc)]),_0x1aa927=_0x5515f4['sBJCZ'](require,_0x5515f4[_0x4ec238(0x226)]),_0x425983=_0x5515f4[_0x4ec238(0x1f5)](require,_0x5515f4['IxVgU']);this[_0x4ec238(0x20b)][_0x4ec238(0x251)](_0x5515f4[_0x4ec238(0x228)]),this[_0x4ec238(0x1fe)]=_0x3074a9['getBinSessionId'](),this[_0x4ec238(0x20b)][_0x4ec238(0x251)]('loadModules:\x20binSessionId='+this[_0x4ec238(0x1fe)]),this[_0x4ec238(0x203)](_0x3074a9);!this['isChildConnected']&&this[_0x4ec238(0x266)](_0x3074a9);const _0x1cceca=_0x5515f4['IjaIc'],_0x353464=_0x5515f4['ZVHOF'],_0x35eddb=_0x5515f4[_0x4ec238(0x214)],_0x39384e=_0x3074a9[_0x1cceca]()&&_0x3074a9[_0x1cceca]()[_0x35eddb](),_0x4a3626=_0x3074a9[_0x353464]()&&_0x3074a9[_0x353464]()[_0x35eddb]();_0x5515f4['swoCh'](_0x39384e,_0x4a3626)&&(this['modules'][_0x1aa927[_0x4ec238(0x26c)]]=new _0x1aa927(_0x3074a9[_0x4ec238(0x207)]())),_0x39384e&&(this[_0x4ec238(0x268)][_0x425983['MODULE_NAME']]=new _0x425983(_0x3074a9[_0x1cceca]())),_0x4a3626&&(this[_0x4ec238(0x268)][AccessibilityModule[_0x4ec238(0x26c)]]=new AccessibilityModule(_0x3074a9[_0x353464]())),this['modules'][_0x525f5c[_0x4ec238(0x26c)]]=new _0x525f5c(),this[_0x4ec238(0x26e)]();}['getAccessibilityModule'](){const _0x2c5ef7=a57_0xd94aa0;return this[_0x2c5ef7(0x268)][AccessibilityModule[_0x2c5ef7(0x26c)]];}async[a57_0xd94aa0(0x26e)](){const _0x195ebd=a57_0xd94aa0;for(const _0x1b877d in this['modules']){const _0xb36621=this[_0x195ebd(0x268)][_0x1b877d];await _0xb36621[_0x195ebd(0x23f)](this[_0x195ebd(0x1fe)],0x0,GrpcClient[_0x195ebd(0x20c)]()[_0x195ebd(0x221)],this[_0x195ebd(0x21c)]);}}async[a57_0xd94aa0(0x232)](){const _0x2f87c8=a57_0xd94aa0,_0xf02645={'XXQQY':function(_0x4f30c2,_0x46ad04){return _0x4f30c2!==_0x46ad04;},'odRsT':_0x2f87c8(0x241),'nhDco':function(_0x96555c){return _0x96555c();},'ihFrf':function(_0x401afd,_0x2c23f1){return _0x401afd(_0x2c23f1);},'SocFC':function(_0x4bab81,_0x469d49){return _0x4bab81!==_0x469d49;},'foqtD':function(_0x4dade2,_0x5a673c){return _0x4dade2(_0x5a673c);},'nfLxM':_0x2f87c8(0x276),'rMEkm':_0x2f87c8(0x234),'dMoPZ':_0x2f87c8(0x21a),'GDnjP':_0x2f87c8(0x24a),'LnINr':function(_0x9df337,_0x3dafc7,_0x3ae5bd,_0x20dc6c){return _0x9df337(_0x3dafc7,_0x3ae5bd,_0x20dc6c);},'yLsSi':_0x2f87c8(0x22e)};PerformanceTester['start'](PerformanceEvents[_0x2f87c8(0x21d)]);if(CLIUtils[_0x2f87c8(0x247)]())return this[_0x2f87c8(0x1fd)](CLIUtils[_0x2f87c8(0x261)]()),PerformanceTester[_0x2f87c8(0x1dc)](PerformanceEvents[_0x2f87c8(0x21d)]),Promise['resolve']();if(this[_0x2f87c8(0x255)]&&this[_0x2f87c8(0x255)][_0x2f87c8(0x28c)])return PerformanceTester[_0x2f87c8(0x1dc)](PerformanceEvents[_0x2f87c8(0x21d)]),Promise[_0x2f87c8(0x256)]();const _0x1209d7=await this['getCliBinPath'](),_0x1f471e=[_0x1209d7,_0xf02645[_0x2f87c8(0x216)]];this[_0x2f87c8(0x20b)][_0x2f87c8(0x251)](_0x2f87c8(0x25f)+_0x1f471e+'\x27');const _0x4880ce={};_0x4880ce[_0x2f87c8(0x272)]=process[_0x2f87c8(0x272)],this[_0x2f87c8(0x255)]=_0xf02645[_0x2f87c8(0x24f)](spawn,_0x1f471e[0x0],_0x1f471e[_0x2f87c8(0x28e)](0x1),_0x4880ce);if(!this[_0x2f87c8(0x255)][_0x2f87c8(0x297)])throw new Error(_0xf02645['yLsSi']);return new Promise((_0x6f553a,_0x5be0f0)=>{const _0x5680e8=_0x2f87c8,_0x32724e={};this[_0x5680e8(0x255)][_0x5680e8(0x1d9)]['on'](_0xf02645[_0x5680e8(0x294)],_0x456dfc=>{const _0x1a731e=_0x5680e8,_0x274523=_0x456dfc[_0x1a731e(0x1f7)]()[_0x1a731e(0x204)]()[_0x1a731e(0x208)]('\x0a');for(const _0x236424 of _0x274523){if(/^(id|listen|port)=.*$/[_0x1a731e(0x270)](_0x236424)){const [_0x54de70,_0x5e0a31]=_0x236424[_0x1a731e(0x208)]('=',0x2);_0xf02645[_0x1a731e(0x1ff)](_0x5e0a31,undefined)&&(_0x32724e[_0x54de70]=_0x5e0a31);}if(_0x236424[_0x1a731e(0x287)]()[_0x1a731e(0x24e)](_0xf02645[_0x1a731e(0x219)])){this[_0x1a731e(0x1fd)](_0x32724e),PerformanceTester[_0x1a731e(0x1dc)](PerformanceEvents[_0x1a731e(0x21d)]),_0xf02645[_0x1a731e(0x28b)](_0x6f553a);return;}}}),this[_0x5680e8(0x255)][_0x5680e8(0x1f8)]['on'](_0xf02645[_0x5680e8(0x294)],_0xe5b12c=>{const _0x35bed4=_0x5680e8;this[_0x35bed4(0x20b)][_0x35bed4(0x234)]('CLI\x20stderr:\x20'+_0xe5b12c[_0x35bed4(0x1f7)]()[_0x35bed4(0x204)]());}),this[_0x5680e8(0x255)]['on'](_0xf02645[_0x5680e8(0x22d)],_0x44227e=>{const _0x19ee77=_0x5680e8;_0x32724e[_0x19ee77(0x234)]=_0x19ee77(0x215)+_0x44227e[_0x19ee77(0x1de)],PerformanceTester[_0x19ee77(0x1dc)](PerformanceEvents[_0x19ee77(0x21d)],![],_0x44227e),_0xf02645[_0x19ee77(0x269)](_0x5be0f0,new Error('Failed\x20to\x20start\x20CLI\x20process:\x20'+_0x44227e[_0x19ee77(0x1de)]));}),this[_0x5680e8(0x255)]['on'](_0xf02645[_0x5680e8(0x1fb)],_0x442740=>{const _0x31b6b2=_0x5680e8;_0xf02645[_0x31b6b2(0x1f6)](_0x442740,0x0)&&_0xf02645[_0x31b6b2(0x27d)](_0x5be0f0,new Error(_0x31b6b2(0x20e)+_0x442740));});});}async[a57_0xd94aa0(0x1eb)](_0x53509f=null){const _0x3ae242=a57_0xd94aa0,_0x410cfa={'YTJWB':_0x3ae242(0x242),'GwZbK':function(_0x2d616e){return _0x2d616e();},'HeUNu':_0x3ae242(0x258),'RBcMv':_0x3ae242(0x24b),'olCnb':function(_0x2eed3a){return _0x2eed3a();},'tqffZ':_0x3ae242(0x286),'uJIbC':function(_0x351c10,_0x3d8ce2,_0x2445a5){return _0x351c10(_0x3d8ce2,_0x2445a5);},'rqprp':'stop:\x20CLI\x20is\x20not\x20running,\x20skipping\x20stop','fRssx':_0x3ae242(0x235),'pPaCo':function(_0xb575d4,_0x167bf8){return _0xb575d4(_0x167bf8);},'iutzx':'./uploadAttachmentsManager.js','uagiF':_0x3ae242(0x1ed),'Prujw':'stop:\x20error\x20in\x20closing\x20channel:\x20%s','YRScE':_0x3ae242(0x205)};if(!this['isRunning']()){this['logger'][_0x3ae242(0x251)](_0x410cfa[_0x3ae242(0x28d)]);return;}PerformanceTester[_0x3ae242(0x232)](PerformanceEvents[_0x3ae242(0x224)]),this['logger']['info'](_0x410cfa['fRssx']);try{if(this[_0x3ae242(0x293)]){const _0x2b5d8d=_0x410cfa[_0x3ae242(0x283)](require,_0x410cfa[_0x3ae242(0x1e2)]),_0x20180a=this[_0x3ae242(0x268)][_0x3ae242(0x299)]?.['testhubConfig']?.['toObject']()?.['buildHashedId'],_0x9966ec=TestInfo[_0x3ae242(0x1e3)](_0x20180a),_0x19ff5a=_0x9966ec[TestFrameworkConstants[_0x3ae242(0x277)]]||{},_0xed8f9a=await GrpcClient[_0x3ae242(0x20c)]()[_0x3ae242(0x245)](JSON[_0x3ae242(0x260)](_0x19ff5a),_0x53509f);_0xed8f9a&&_0xed8f9a[_0x3ae242(0x230)]()&&_0xed8f9a['getAutomateBuildlink']()&&(BrowserstackCLI[_0x3ae242(0x291)]=_0xed8f9a[_0x3ae242(0x252)](),BrowserstackCLI[_0x3ae242(0x1dd)]=_0xed8f9a[_0x3ae242(0x26f)]()),await _0x2b5d8d[_0x3ae242(0x212)](),TestInfo[_0x3ae242(0x1f2)](),this[_0x3ae242(0x20b)]['info'](_0x3ae242(0x1ea)+BrowserstackCLI['BuildLink']+_0x3ae242(0x200)+BrowserstackCLI[_0x3ae242(0x1dd)]+_0x3ae242(0x21b)+BrowserstackCLI['O11yHashedID']);}await this[_0x3ae242(0x243)]();const _0x5951e6=GrpcClient[_0x3ae242(0x20c)]()[_0x3ae242(0x213)]();if(_0x5951e6){try{_0x5951e6['close'](),this[_0x3ae242(0x20b)]['info'](_0x410cfa[_0x3ae242(0x262)]);}catch(_0x2dbe31){this[_0x3ae242(0x20b)][_0x3ae242(0x234)](util['format'](_0x410cfa[_0x3ae242(0x263)],_0x2dbe31));}await new Promise(_0x3c93b6=>setTimeout(_0x3c93b6,0x1388));}this['process']&&this[_0x3ae242(0x255)]['pid']&&(this[_0x3ae242(0x20b)][_0x3ae242(0x251)](_0x410cfa[_0x3ae242(0x231)]),this['process'][_0x3ae242(0x275)](),await new Promise(_0x37b428=>{const _0x40cdc6=_0x3ae242,_0xb3e885={'amHrE':_0x410cfa[_0x40cdc6(0x29c)],'TgwNN':_0x410cfa[_0x40cdc6(0x1f1)],'izoqM':function(_0x4f2367){return _0x410cfa['olCnb'](_0x4f2367);}};let _0x11f158=![];this[_0x40cdc6(0x255)]['on'](_0x410cfa[_0x40cdc6(0x1ee)],()=>{const _0x936249=_0x40cdc6;this[_0x936249(0x20b)][_0x936249(0x251)](_0x410cfa[_0x936249(0x201)]),_0x11f158=!![],PerformanceTester['end'](PerformanceEvents[_0x936249(0x224)]),_0x410cfa[_0x936249(0x29a)](_0x37b428);}),_0x410cfa[_0x40cdc6(0x239)](setTimeout,()=>{const _0x4dee96=_0x40cdc6;!_0x11f158&&(this[_0x4dee96(0x20b)]['warn'](_0xb3e885[_0x4dee96(0x22a)]),this[_0x4dee96(0x255)][_0x4dee96(0x275)](_0xb3e885['TgwNN']),PerformanceTester[_0x4dee96(0x1dc)](PerformanceEvents[_0x4dee96(0x224)]),_0xb3e885[_0x4dee96(0x209)](_0x37b428));},0xbb8);}));}catch(_0x23f1a5){PerformanceTester['end'](PerformanceEvents[_0x3ae242(0x224)],![],util[_0x3ae242(0x295)](_0x23f1a5)),this['logger'][_0x3ae242(0x234)]('stop:\x20error\x20in\x20stop\x20session\x20exception='+(_0x23f1a5['stack']||_0x23f1a5));}_0x53509f?this[_0x3ae242(0x255)][_0x3ae242(0x1e5)]=0x1:this[_0x3ae242(0x255)][_0x3ae242(0x1e5)]=0x0,this[_0x3ae242(0x264)]=![],this[_0x3ae242(0x293)]=![],process[_0x3ae242(0x272)][_0x3ae242(0x27c)]=null;}async[a57_0xd94aa0(0x243)](){const _0x384319=a57_0xd94aa0,_0x1e694e={};_0x1e694e[_0x384319(0x1f3)]=_0x384319(0x225);const _0x307b7a=_0x1e694e;this[_0x384319(0x20b)]['info'](_0x307b7a['Pzxso']);}[a57_0xd94aa0(0x1fd)](_0x7225ee){const _0x5a4727=a57_0xd94aa0;this['logger'][_0x5a4727(0x251)]('CLI\x20params\x20loaded:\x20'+JSON[_0x5a4727(0x260)](_0x7225ee)),this['cliParams']=_0x7225ee,GrpcClient['getInstance']()['init'](_0x7225ee);}async[a57_0xd94aa0(0x282)](_0x4d22e0){const _0x2281af=a57_0xd94aa0,_0x589b2f={};_0x589b2f[_0x2281af(0x21f)]=_0x2281af(0x211);const _0xe1f83b=_0x589b2f;PerformanceTester[_0x2281af(0x232)](PerformanceEvents[_0x2281af(0x246)]);try{this['logger']['info']('Starting\x20as\x20child\x20process\x20with\x20session\x20ID:\x20'+_0x4d22e0);const _0x17d989=GrpcClient[_0x2281af(0x20c)]();if(_0x17d989&&_0x17d989['getClient']()&&_0x17d989['getChannel']()){this[_0x2281af(0x20b)]['info'](_0xe1f83b[_0x2281af(0x21f)]);return;}GrpcClient[_0x2281af(0x20c)]()['connect']();const _0x540f1a=await GrpcClient[_0x2281af(0x20c)]()[_0x2281af(0x271)]();this[_0x2281af(0x264)]=!![],this[_0x2281af(0x1fa)](_0x540f1a),PerformanceTester['end'](PerformanceEvents[_0x2281af(0x246)]);}catch(_0x3e861c){PerformanceTester['end'](PerformanceEvents[_0x2281af(0x246)],![],util[_0x2281af(0x295)](_0x3e861c)),this[_0x2281af(0x20b)]['error'](_0x2281af(0x23a)+util['format'](_0x3e861c));}}[a57_0xd94aa0(0x1e9)](){const _0xe60c53=a57_0xd94aa0,_0x1f2636={};_0x1f2636[_0xe60c53(0x29d)]=function(_0x2ef84a,_0x1c5501){return _0x2ef84a!==_0x1c5501;},_0x1f2636[_0xe60c53(0x1da)]=function(_0x1f170d,_0xd15ace){return _0x1f170d===_0xd15ace;},_0x1f2636[_0xe60c53(0x22c)]=function(_0x47600f,_0x7d9fc){return _0x47600f!==_0x7d9fc;};const _0x31ac4d=_0x1f2636;return CLIUtils[_0xe60c53(0x247)]()||this[_0xe60c53(0x293)]&&_0x31ac4d[_0xe60c53(0x29d)](this[_0xe60c53(0x255)],null)&&_0x31ac4d['gUqTV'](this[_0xe60c53(0x255)]['exitCode'],null)&&_0x31ac4d[_0xe60c53(0x29d)](GrpcClient['getInstance']()['getClient'](),null)&&!GrpcClient['getInstance']()[_0xe60c53(0x213)]()[_0xe60c53(0x21e)]||this['isChildConnected']&&_0x31ac4d[_0xe60c53(0x22c)](GrpcClient[_0xe60c53(0x20c)]()[_0xe60c53(0x213)](),null)&&!GrpcClient[_0xe60c53(0x20c)]()['getChannel']()[_0xe60c53(0x21e)];}[a57_0xd94aa0(0x1e0)](){return this['browserstackConfig'];}[a57_0xd94aa0(0x1f9)](_0x308e7f,_0x41615e=null){const _0xc7e436=a57_0xd94aa0,_0x4e4185={};_0x4e4185[_0xc7e436(0x1df)]=function(_0x361d40,_0x2e73e2){return _0x361d40||_0x2e73e2;};const _0x3851dd=_0x4e4185;this[_0xc7e436(0x227)]=_0x3851dd[_0xc7e436(0x1df)](_0x308e7f,{}),this[_0xc7e436(0x1e6)]=_0x41615e,process[_0xc7e436(0x272)][_0xc7e436(0x250)]=this['browserstackConfig']?.[_0xc7e436(0x285)]||![];const _0xa8120f=CLIUtils[_0xc7e436(0x249)]();helper['isTrue'](process['env']['BROWSERSTACK_TURBOSCALE'])||!CLI_SUPPORTED_FRAMEWORKS[_0xc7e436(0x24e)](_0xa8120f[_0xc7e436(0x217)][_0xc7e436(0x287)]())?process['env'][_0xc7e436(0x23b)]=![]:process['env'][_0xc7e436(0x23b)]=!![];}async['getCliBinPath'](){const _0x5aa6d7=a57_0xd94aa0;return!this[_0x5aa6d7(0x240)]&&(this['SDK_CLI_BIN_PATH']=await CLIUtils[_0x5aa6d7(0x28a)](this['browserstackConfig'])),this[_0x5aa6d7(0x240)];}[a57_0xd94aa0(0x290)](){const _0x56a0f1=a57_0xd94aa0;return helper[_0x56a0f1(0x253)](process[_0x56a0f1(0x272)][_0x56a0f1(0x23b)]);}[a57_0xd94aa0(0x233)](){return this['config'];}['setConfig'](_0x2f4a15){const _0x5b8080=a57_0xd94aa0,_0x11361e={};_0x11361e[_0x5b8080(0x236)]=_0x5b8080(0x279);const _0x1b9d5a=_0x11361e;try{this[_0x5b8080(0x21c)]=JSON['parse'](_0x2f4a15[_0x5b8080(0x233)]()),this[_0x5b8080(0x20b)][_0x5b8080(0x251)](_0x1b9d5a[_0x5b8080(0x236)]);}catch(_0xb12e41){this[_0x5b8080(0x20b)][_0x5b8080(0x234)](_0x5b8080(0x1ef)+util[_0x5b8080(0x295)](_0xb12e41));}}[a57_0xd94aa0(0x266)](_0x348cb4){const _0x20f7f6=a57_0xd94aa0;try{this[_0x20f7f6(0x238)]=_0x348cb4[_0x20f7f6(0x223)]()['split'](','),this['logger']['info']('setCliArgs:\x20cliArgs='+JSON[_0x20f7f6(0x260)](this[_0x20f7f6(0x238)]));}catch(_0x64ec28){this['logger'][_0x20f7f6(0x234)](_0x20f7f6(0x25e)+util['format'](_0x64ec28));}}['getCliArgs'](){const _0x1d2e05=a57_0xd94aa0;return this[_0x1d2e05(0x238)];}[a57_0xd94aa0(0x288)](){const _0x3662a7=a57_0xd94aa0,_0x3bcf52={};_0x3bcf52[_0x3662a7(0x218)]=function(_0x337260,_0x5a30f2){return _0x337260===_0x5a30f2;};const _0x25e593=_0x3bcf52,_0x74a09d=CLIUtils['getTestFrameworkDetail']();_0x25e593['TcfiB'](_0x74a09d[_0x3662a7(0x217)][_0x3662a7(0x287)](),FRAMEWORKS[_0x3662a7(0x20d)]['toLowerCase']())&&(this[_0x3662a7(0x280)]=new PlaywrightTestFramework([_0x74a09d[_0x3662a7(0x217)]],_0x74a09d[_0x3662a7(0x274)]));}[a57_0xd94aa0(0x22b)](){const _0x494470=a57_0xd94aa0,_0x1977e3={};_0x1977e3['RYOCD']=function(_0x2d2c5e,_0x4d59b8){return _0x2d2c5e===_0x4d59b8;};const _0x106179=_0x1977e3,_0x32caab=CLIUtils[_0x494470(0x257)]();_0x106179[_0x494470(0x281)](_0x32caab[_0x494470(0x217)][_0x494470(0x287)](),FRAMEWORKS[_0x494470(0x20d)]['toLowerCase']())&&(this[_0x494470(0x267)]=new PlaywrightAutomationFramework(_0x32caab[_0x494470(0x217)],_0x32caab['version']));}[a57_0xd94aa0(0x202)](){const _0x482525=a57_0xd94aa0;return this[_0x482525(0x280)];}[a57_0xd94aa0(0x27f)](){return this['automationFramework'];}[a57_0xd94aa0(0x284)](){const _0x395ca9=a57_0xd94aa0;return this[_0x395ca9(0x1e6)];}}module[a57_0xd94aa0(0x1e8)]=BrowserstackCLI;function a57_0x1cf0(){const _0x5da010=['tqffZ','setConfig:\x20error=','bootstrap','RBcMv','shutdown','Pzxso','getObservability','pVgCP','SocFC','toString','stderr','setBrowserstackConfig','loadModules','dMoPZ','BkwQU','loadCliParams','binSessionId','XXQQY','\x20hashed_id=','YTJWB','getTestFramework','setConfig','trim','stop:\x20shutting\x20down\x20CLI','./TestInfo.js','getTesthub','split','izoqM','../../helpers/helper.js','logger','getInstance','PLAYWRIGHT','CLI\x20process\x20exited\x20with\x20code\x20','358388FGXKph','QSUHW','startChild:\x20client\x20and\x20channel\x20already\x20exist,\x20stopping\x20here','clearAttachments','getChannel','UfOnw','Error\x20in\x20start:\x20','GDnjP','name','TcfiB','odRsT','close','\x20o11y_uuid=','config','SDK_CLI_START','isClosed','Kawcm','15fbkdRa','client','getAccessibility','getCliArgs','SDK_CLI_ON_STOP','Unconfiguring\x20modules','OgHTl','browserstackConfig','AgaqX','startMain:\x20main-process\x20started','amHrE','setupAutomationFramework','RbXIj','rMEkm','failed\x20to\x20start\x20CLI,\x20no\x20PID\x20found','BROWSERSTACK_CLI_BIN_SESSION_ID','getSuccess','YRScE','start','getConfig','error','stop:\x20CLI\x20stop\x20triggered','PGKko','357rXmamz','cliArgs','uJIbC','Failed\x20to\x20start\x20as\x20child\x20process:\x20','BROWSERSTACK_CLI_ENABLED','O11yHashedID','7046pqTHYZ','./modules/observabilityModule.js','configure','SDK_CLI_BIN_PATH','ready','stop:\x20CLI\x20process\x20exited','unConfigureModules','BrowserstackCLI','stopBinSession','SDK_CONNECT_BIN_SESSION','isDevelopmentEnv','./framework/constants/testFrameworkConstants.js','getTestFrameworkDetail','sdk','SIGKILL','./modules/playwrightDriverModule.js','SDK_CLI_ON_BOOTSTRAP','includes','LnINr','BROWSERSTACK_TURBOSCALE','info','getAutomateBuildlink','isTrue','135DjTTqE','process','resolve','getAutomationFrameworkDetail','stop:\x20process\x20exit\x20timeout,\x20forcing\x20kill','../utils/constants.js','./cliUtils.js','Disabling\x20CLI.','debug','initialized','setCliArgs:\x20error=','spawning\x20command=\x27','stringify','getCLIParamsForDevEnv','uagiF','Prujw','isChildConnected','./modules/accessibilityModule.js','setCliArgs','automationFramework','modules','ihFrf','543448enffAG','startMain:\x20Starting\x20main\x20process','MODULE_NAME','./framework/playwrightTestFramework.js','configureModules','getHashedId','test','connectBinSession','env','startBinSession','version','kill','data','KEY_CUSTOM_TAGS','KdyWI','loading\x20Modules.','./grpcClient.js','startMain','BROWSERSTACK_CLI_ENV','foqtD','./framework/playwrightAutomationFramework.js','getAutomationFramework','testFramework','RYOCD','startChild','pPaCo','getBrowserstackCliConfig','turboScale','exit','toLowerCase','setupTestFramework','isFalse','setupCliPath','nhDco','connected','rqprp','slice','24477772IcbXQy','isCliEnabled','BuildLink','6457240wPNuhX','isMainConnected','nfLxM','format','237110epJpkr','pid','56vdxhkQ','TestHubModule','GwZbK','../../helpers/performance/performance-tester.js','HeUNu','BjMZp','stdout','gUqTV','fkUcI','end','HashedID','message','xffoG','getBrowserstackConfig','./modules/testhubModule.js','iutzx','getTestDetails','RGJmt','exitCode','browserstackCliConfig','1284Kjcymo','exports','isRunning','stop:\x20stopBinSession\x20build_link=','stop','loadModules:\x20Loading\x20modules','stop:\x20channel\x20closed'];a57_0x1cf0=function(){return _0x5da010;};return a57_0x1cf0();}
@@ -1 +1 @@
1
- function a58_0x4e9e(_0x8b81ff,_0x288564){const _0x440789=a58_0x4407();return a58_0x4e9e=function(_0x4e9e7c,_0x513544){_0x4e9e7c=_0x4e9e7c-0x1ba;let _0xba3c75=_0x440789[_0x4e9e7c];return _0xba3c75;},a58_0x4e9e(_0x8b81ff,_0x288564);}const a58_0x5a52fe=a58_0x4e9e;(function(_0x21f5f0,_0x191eed){const _0x499d65=a58_0x4e9e,_0x242f06=_0x21f5f0();while(!![]){try{const _0x47e071=-parseInt(_0x499d65(0x1dc))/0x1*(parseInt(_0x499d65(0x21a))/0x2)+-parseInt(_0x499d65(0x224))/0x3*(-parseInt(_0x499d65(0x1c8))/0x4)+parseInt(_0x499d65(0x260))/0x5*(-parseInt(_0x499d65(0x203))/0x6)+parseInt(_0x499d65(0x23d))/0x7*(parseInt(_0x499d65(0x206))/0x8)+parseInt(_0x499d65(0x1e5))/0x9*(-parseInt(_0x499d65(0x21e))/0xa)+-parseInt(_0x499d65(0x1c0))/0xb+parseInt(_0x499d65(0x24c))/0xc;if(_0x47e071===_0x191eed)break;else _0x242f06['push'](_0x242f06['shift']());}catch(_0x393bb4){_0x242f06['push'](_0x242f06['shift']());}}}(a58_0x4407,0x33983));const fs=require('fs'),os=require('os'),url=require(a58_0x5a52fe(0x274)),path=require('path'),{exec}=require(a58_0x5a52fe(0x22f)),{https}=require(a58_0x5a52fe(0x211)),yauzl=require(a58_0x5a52fe(0x1fc)),util=require('util'),{getFrameworkVersion}=require('../../helpers/test-observability/utils.js'),{threadId}=require('worker_threads'),PerformanceTester=require('../../helpers/performance/performance-tester.js'),{EVENTS:PerformanceEvents}=require(a58_0x5a52fe(0x1fe)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a58_0x5a52fe(0x207)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a58_0x5a52fe(0x1e3)),{BROWSERSTACK_API_URL,UPDATED_CLI_ENDPOINT}=require('../utils/constants'),{createClassLogger}=require(a58_0x5a52fe(0x268)),TestFrameworkInstance=require(a58_0x5a52fe(0x27d)),HookState=require('./state/hookState.js'),TestFrameworkState=require(a58_0x5a52fe(0x1fd)),AutomationFrameworkState=require(a58_0x5a52fe(0x1eb)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants.js'),logger=createClassLogger('CLIUtils');class CLIUtils{['automationFrameworkDetail']={};[a58_0x5a52fe(0x20b)]={};static[a58_0x5a52fe(0x21f)](){const _0x3166c5=a58_0x5a52fe,_0x171a3e={};_0x171a3e[_0x3166c5(0x27c)]=function(_0x462e75,_0x52c9cf){return _0x462e75===_0x52c9cf;},_0x171a3e[_0x3166c5(0x277)]=_0x3166c5(0x23c);const _0x4332f1=_0x171a3e;return _0x4332f1[_0x3166c5(0x27c)](process['env'][_0x3166c5(0x225)],_0x4332f1[_0x3166c5(0x277)]);}static[a58_0x5a52fe(0x1d6)](){const _0x24ea33=a58_0x5a52fe,_0x1a81e5={};return _0x1a81e5['id']=process['env'][_0x24ea33(0x225)],_0x1a81e5[_0x24ea33(0x24f)]=_0x24ea33(0x22a)+process[_0x24ea33(0x219)][_0x24ea33(0x225)]+_0x24ea33(0x259),_0x1a81e5;}static[a58_0x5a52fe(0x205)](){const _0x4a090f=a58_0x5a52fe,_0x4d7c19={'eFyxq':function(_0x48ce0f,_0xab0238){return _0x48ce0f(_0xab0238);},'Spoay':_0x4a090f(0x26c)};return _0x4d7c19[_0x4a090f(0x1c1)](require,_0x4d7c19[_0x4a090f(0x222)])[_0x4a090f(0x22c)];}static[a58_0x5a52fe(0x249)](){const _0x4a8888=a58_0x5a52fe,_0x555efd={};_0x555efd[_0x4a8888(0x241)]=_0x4a8888(0x1f5);const _0x1fbf11=_0x555efd;return _0x1fbf11[_0x4a8888(0x241)];}static async[a58_0x5a52fe(0x1c3)](_0x5a87b3){const _0x2c75a6=a58_0x5a52fe,_0x3367a9={'rxIUS':_0x2c75a6(0x24d),'ykbnS':function(_0x278e32,_0x5a8ed3){return _0x278e32(_0x5a8ed3);},'jFvIU':function(_0x71abc9,_0x19c5e0){return _0x71abc9(_0x19c5e0);},'oHiCZ':_0x2c75a6(0x212)};logger[_0x2c75a6(0x26e)](_0x3367a9[_0x2c75a6(0x257)]);const _0x1dd0b1=process[_0x2c75a6(0x219)][_0x2c75a6(0x1bf)];if(!_0x3367a9[_0x2c75a6(0x228)](isNullOrEmpty,_0x1dd0b1))return logger[_0x2c75a6(0x26e)](_0x2c75a6(0x235)+_0x1dd0b1),_0x1dd0b1;try{const _0x2db16c=this[_0x2c75a6(0x213)]();if(_0x3367a9[_0x2c75a6(0x233)](isNullOrEmpty,_0x2db16c))throw new Error(_0x3367a9['oHiCZ']);const _0x114c60=this['getExistingCliPath'](_0x2db16c),_0x4cfd92=await this['checkAndUpdateCli'](_0x114c60,_0x2db16c,_0x5a87b3);return logger[_0x2c75a6(0x26e)](_0x2c75a6(0x1f0)+_0x4cfd92),_0x4cfd92;}catch(_0x5b127b){logger[_0x2c75a6(0x26e)](_0x2c75a6(0x280)+util[_0x2c75a6(0x218)](_0x5b127b));}return null;}static async[a58_0x5a52fe(0x223)](_0x3d29f1,_0xe53b9f,_0x1d502d){const _0x4bdb3b=a58_0x5a52fe,_0x3dc559={'ScgAP':function(_0x13dfc0){return _0x13dfc0();},'tzzTd':function(_0x31a3d5,_0x464ea0){return _0x31a3d5(_0x464ea0);},'cnMni':function(_0xd4969a,_0x772284,_0x3b35e2){return _0xd4969a(_0x772284,_0x3b35e2);},'vXBxK':_0x4bdb3b(0x1bb),'nnEGj':_0x4bdb3b(0x274),'JDMOI':function(_0x4b8974,_0x36fa61,_0x56e5fe){return _0x4b8974(_0x36fa61,_0x56e5fe);}};PerformanceTester[_0x4bdb3b(0x26b)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),logger[_0x4bdb3b(0x279)]('Current\x20CLI\x20Path\x20Found:\x20'+_0x3d29f1);const _0x2e6455=_0x3dc559[_0x4bdb3b(0x237)](getHostInfo),_0x2747f9={'sdk_version':CLIUtils['getSdkVersion'](),'os':_0x2e6455[_0x4bdb3b(0x27f)],'os_arch':_0x2e6455[_0x4bdb3b(0x1e1)],'cli_version':'0','sdk_language':this['getSdkLanguage']()};!_0x3dc559['tzzTd'](isNullOrEmpty,_0x3d29f1)&&(_0x2747f9[_0x4bdb3b(0x1ba)]=await this[_0x4bdb3b(0x20e)](_0x3d29f1+_0x4bdb3b(0x1be)));const _0x41245b=await this[_0x4bdb3b(0x1d2)](_0x2747f9,_0x1d502d);process[_0x4bdb3b(0x219)][_0x4bdb3b(0x1cb)]&&(logger[_0x4bdb3b(0x279)](_0x4bdb3b(0x1ff)+process[_0x4bdb3b(0x219)][_0x4bdb3b(0x1cb)]),_0x41245b[_0x4bdb3b(0x1bb)][_0x4bdb3b(0x274)]=process[_0x4bdb3b(0x219)][_0x4bdb3b(0x1cb)]);if(_0x3dc559[_0x4bdb3b(0x208)](nestedKeyValue,_0x41245b,[_0x3dc559['vXBxK'],_0x3dc559[_0x4bdb3b(0x227)]])){logger[_0x4bdb3b(0x26e)](_0x4bdb3b(0x1f6)+_0x2747f9[_0x4bdb3b(0x1ba)]);const _0x2cedba=await this['downloadLatestBinary'](_0x3dc559[_0x4bdb3b(0x1da)](nestedKeyValue,_0x41245b,[_0x3dc559['vXBxK'],_0x3dc559[_0x4bdb3b(0x227)]]),_0xe53b9f);return PerformanceTester[_0x4bdb3b(0x20d)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x2cedba;}return PerformanceTester['end'](PerformanceEvents[_0x4bdb3b(0x25d)]),_0x3d29f1;}static[a58_0x5a52fe(0x213)](){const _0x4de524=a58_0x5a52fe,_0x19c994={'irJUM':function(_0xc69303,_0x83cee2){return _0xc69303(_0x83cee2);},'FHRgY':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','mRWQI':_0x4de524(0x1f8)},_0x16b98a=this['getWritableDir']();try{if(_0x19c994[_0x4de524(0x1d0)](isNullOrEmpty,_0x16b98a))throw new Error(_0x19c994[_0x4de524(0x1d1)]);const _0x15f84e=path[_0x4de524(0x262)](_0x16b98a,_0x19c994['mRWQI']);return!fs[_0x4de524(0x248)](_0x15f84e)&&_0x19c994[_0x4de524(0x1d0)](createDir,_0x15f84e),_0x15f84e;}catch(_0x5b6a2d){logger[_0x4de524(0x26e)](_0x4de524(0x1de)+util[_0x4de524(0x218)](_0x5b6a2d));}}static[a58_0x5a52fe(0x210)](){const _0x4b6b01=a58_0x5a52fe,_0x57d983={'SpiCD':_0x4b6b01(0x247),'YcjbN':'tmp','JCBdN':function(_0x51d904,_0x42df85){return _0x51d904(_0x42df85);},'xEklq':function(_0x3be1b3,_0x5040f3){return _0x3be1b3(_0x5040f3);},'aGPSd':function(_0x4820ac,_0x2e31f0){return _0x4820ac(_0x2e31f0);},'iUgMm':function(_0x351924,_0x34f398){return _0x351924(_0x34f398);},'VxPql':function(_0x21aa1c,_0x4cc397){return _0x21aa1c(_0x4cc397);}},_0x5e86ed=[process['env'][_0x4b6b01(0x204)],path[_0x4b6b01(0x262)](os[_0x4b6b01(0x251)](),_0x57d983[_0x4b6b01(0x1ee)]),path[_0x4b6b01(0x262)](_0x57d983[_0x4b6b01(0x250)],_0x57d983[_0x4b6b01(0x1ee)])];for(const _0x282174 of _0x5e86ed){if(_0x57d983[_0x4b6b01(0x1cc)](isNullOrEmpty,_0x282174))continue;try{if(fs[_0x4b6b01(0x248)](_0x282174)){logger[_0x4b6b01(0x26e)]('Folder\x20'+_0x282174+_0x4b6b01(0x1c5));if(!_0x57d983[_0x4b6b01(0x1fa)](isModifiable,_0x282174)){logger[_0x4b6b01(0x26e)](_0x4b6b01(0x26d)+_0x282174);const _0x2fa7be=_0x57d983[_0x4b6b01(0x1d4)](setReadWriteExecuteAccess,_0x282174);!_0x57d983[_0x4b6b01(0x1d4)](isTrue,_0x2fa7be)&&logger[_0x4b6b01(0x1f3)]('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x282174);}}else{logger['debug'](_0x4b6b01(0x1ea)+_0x282174),_0x57d983[_0x4b6b01(0x26a)](createDir,_0x282174),logger[_0x4b6b01(0x26e)](_0x4b6b01(0x26d)+_0x282174);const _0x34b83c=_0x57d983['VxPql'](setReadWriteExecuteAccess,_0x282174);!_0x57d983[_0x4b6b01(0x1d4)](isTrue,_0x34b83c)&&logger[_0x4b6b01(0x1f3)](_0x4b6b01(0x214)+_0x282174);}return _0x282174;}catch(_0x4d2b5f){logger[_0x4b6b01(0x25e)](_0x4b6b01(0x1f4)+util['format'](_0x4d2b5f));}}return null;}static[a58_0x5a52fe(0x229)](_0xfe51b1){const _0x3eb229=a58_0x5a52fe,_0x3b483d={};_0x3b483d[_0x3eb229(0x234)]=function(_0x2665e9,_0xb5069f){return _0x2665e9>_0xb5069f;},_0x3b483d[_0x3eb229(0x244)]=function(_0x51c78b,_0x3ada48){return _0x51c78b>_0x3ada48;};const _0x5b4e14=_0x3b483d;try{if(!fs[_0x3eb229(0x248)](_0xfe51b1)||!fs[_0x3eb229(0x252)](_0xfe51b1)[_0x3eb229(0x230)]())return'';const _0x561712=fs[_0x3eb229(0x1bd)](_0xfe51b1)[_0x3eb229(0x1db)](_0x3de7a6=>path[_0x3eb229(0x262)](_0xfe51b1,_0x3de7a6))[_0x3eb229(0x243)](_0x52e3f8=>fs[_0x3eb229(0x252)](_0x52e3f8)['isFile']()&&path[_0x3eb229(0x24b)](_0x52e3f8)[_0x3eb229(0x1d7)](_0x3eb229(0x239)));if(_0x5b4e14[_0x3eb229(0x244)](_0x561712[_0x3eb229(0x201)],0x0)){const _0x5f4cc8=_0x561712[_0x3eb229(0x1db)](_0x3dee39=>({'filePath':_0x3dee39,'mtime':fs['statSync'](_0x3dee39)[_0x3eb229(0x217)]}))[_0x3eb229(0x258)]((_0x17305d,_0x4cf9d6)=>{const _0x42f916=_0x3eb229;if(!_0x17305d||!_0x17305d['mtime'])return _0x4cf9d6;if(_0x5b4e14[_0x42f916(0x234)](_0x4cf9d6[_0x42f916(0x217)],_0x17305d[_0x42f916(0x217)]))return _0x4cf9d6;return _0x17305d;},{});return _0x5f4cc8?_0x5f4cc8[_0x3eb229(0x1e6)]:'';}return'';}catch(_0x4eb000){return logger['error'](_0x3eb229(0x240)+util[_0x3eb229(0x218)](_0x4eb000)),'';}}static [a58_0x5a52fe(0x1d2)]=async(_0x14d6de,_0x44c624)=>{const _0x3bc34c=a58_0x5a52fe,_0x60fd58={'vmQnh':function(_0x3e8870,_0x4e1d88,_0x373060,_0x8b4326,_0x383cd2,_0x5cde2f){return _0x3e8870(_0x4e1d88,_0x373060,_0x8b4326,_0x383cd2,_0x5cde2f);},'oxixs':_0x3bc34c(0x232)},_0x463f7e={};_0x463f7e['qs']=_0x14d6de;const _0xf7b56c=await _0x60fd58['vmQnh'](nodeRequest,_0x60fd58[_0x3bc34c(0x23a)],UPDATED_CLI_ENDPOINT,_0x463f7e,_0x44c624,BROWSERSTACK_API_URL);return logger[_0x3bc34c(0x26e)]('response\x20'+JSON[_0x3bc34c(0x1e4)](_0xf7b56c)),_0xf7b56c;};static['runShellCommand'](_0x299d91,_0x1005eb=''){const _0x2a74fc=a58_0x5a52fe,_0x2f7dcd={'WKdDY':function(_0x472458,_0x35988d){return _0x472458(_0x35988d);},'UhcaM':'SHELL_EXECUTE_ERROR','mfqjO':function(_0x999869,_0x1ca221){return _0x999869(_0x1ca221);},'CWVCz':function(_0x224672,_0x17c42e){return _0x224672(_0x17c42e);},'KDYVM':function(_0x4eb755,_0x3f6d1b,_0x59c2da,_0x531aa7){return _0x4eb755(_0x3f6d1b,_0x59c2da,_0x531aa7);},'RDbgU':_0x2a74fc(0x25e)};return new Promise((_0x3acc93,_0x492f97)=>{const _0x45e2c6=_0x2a74fc,_0x3a3abc={'PpsHm':function(_0x1cf5dd,_0x54621a){const _0x2194a9=a58_0x4e9e;return _0x2f7dcd[_0x2194a9(0x21b)](_0x1cf5dd,_0x54621a);},'Czcad':_0x2f7dcd[_0x45e2c6(0x21d)],'LtsjV':function(_0x132737,_0x446f8d){const _0x3d71a5=_0x45e2c6;return _0x2f7dcd[_0x3d71a5(0x25b)](_0x132737,_0x446f8d);}},_0x17dbca={};_0x17dbca[_0x45e2c6(0x1ec)]=_0x1005eb,_0x17dbca[_0x45e2c6(0x202)]=0x1388;const _0x2fc5c8=_0x2f7dcd[_0x45e2c6(0x22d)](exec,_0x299d91,_0x17dbca,(_0x3a90d3,_0x13f40a,_0x458386)=>{const _0xdd9af7=_0x45e2c6;_0x3a90d3?_0x3a3abc[_0xdd9af7(0x1f7)](_0x3acc93,_0x458386[_0xdd9af7(0x1c6)]()||_0x3a3abc[_0xdd9af7(0x1c2)]):_0x3a3abc[_0xdd9af7(0x245)](_0x3acc93,_0x13f40a[_0xdd9af7(0x1c6)]());});_0x2fc5c8['on'](_0x2f7dcd['RDbgU'],()=>{const _0x5dd494=_0x45e2c6;_0x2f7dcd[_0x5dd494(0x226)](_0x3acc93,_0x2f7dcd[_0x5dd494(0x21d)]);});});}static ['downloadLatestBinary']=async(_0x523768,_0x452bd2)=>{const _0x38a980=a58_0x5a52fe,_0x1d6d3f={'wENWG':_0x38a980(0x1ca),'iSiXk':function(_0x4f90c9,_0x31f9d1){return _0x4f90c9(_0x31f9d1);},'HzByY':_0x38a980(0x209),'VIvFY':'error','CpiQo':_0x38a980(0x1e9)};PerformanceTester[_0x38a980(0x26b)](PerformanceEvents[_0x38a980(0x273)]),logger['debug'](_0x38a980(0x253)+_0x523768);try{const _0x2cb3c0=url['parse'](_0x523768),_0x145254=path[_0x38a980(0x262)](_0x452bd2,_0x1d6d3f['CpiQo']),_0x2e288a=fs[_0x38a980(0x27e)](_0x145254);return new Promise((_0x1987a8,_0x21ea0c)=>{const _0xfa4bc3=_0x38a980,_0x47c8b4={'CjEHn':_0x1d6d3f[_0xfa4bc3(0x255)],'BiBvC':function(_0x1405bb,_0x49cd60){const _0x751eef=_0xfa4bc3;return _0x1d6d3f[_0x751eef(0x236)](_0x1405bb,_0x49cd60);},'phtEB':_0x1d6d3f['HzByY'],'RDNCU':function(_0x3a6cca,_0x5a9c7a){const _0x23af1e=_0xfa4bc3;return _0x1d6d3f[_0x23af1e(0x236)](_0x3a6cca,_0x5a9c7a);},'pNAOU':_0x1d6d3f[_0xfa4bc3(0x1d5)]};https[_0xfa4bc3(0x278)](_0x2cb3c0,function(_0x5afdb0){const _0x42869b=_0xfa4bc3,_0x20f5f3={'DgCIv':_0x47c8b4[_0x42869b(0x1c9)],'bAdKf':function(_0x3018aa,_0x5b2ac4){const _0x298299=_0x42869b;return _0x47c8b4[_0x298299(0x256)](_0x3018aa,_0x5b2ac4);}},_0x5a6633=null;_0x5afdb0[_0x42869b(0x25f)](_0x2e288a),_0x5afdb0['on'](_0x47c8b4['pNAOU'],function(_0x401c45){const _0x3d18df=_0x42869b;logger['error'](util['format'](_0x47c8b4[_0x3d18df(0x246)],_0x401c45)),PerformanceTester[_0x3d18df(0x20d)](PerformanceEvents[_0x3d18df(0x273)],![],util[_0x3d18df(0x218)](_0x401c45)),_0x47c8b4['BiBvC'](_0x21ea0c,_0x401c45);}),_0x2e288a['on'](_0x47c8b4[_0x42869b(0x25c)],function(_0x4ee336){const _0x336e61=_0x42869b;logger[_0x336e61(0x25e)](util[_0x336e61(0x218)](_0x20f5f3[_0x336e61(0x1ce)],_0x4ee336)),PerformanceTester[_0x336e61(0x20d)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x336e61(0x218)](_0x4ee336)),_0x20f5f3[_0x336e61(0x1df)](_0x21ea0c,_0x4ee336);}),CLIUtils[_0x42869b(0x1ed)](_0x2e288a,_0x5a6633,_0x145254,_0x452bd2,_0x1987a8,_0x21ea0c),PerformanceTester[_0x42869b(0x20d)](PerformanceEvents[_0x42869b(0x273)]);})['on'](_0x1d6d3f[_0xfa4bc3(0x1d5)],function(_0x32a890){const _0x5a508d=_0xfa4bc3;logger['error'](_0x5a508d(0x22b)+util[_0x5a508d(0x218)](_0x32a890)),PerformanceTester[_0x5a508d(0x20d)](PerformanceEvents[_0x5a508d(0x273)],![],util['format'](_0x32a890)),_0x47c8b4['RDNCU'](_0x21ea0c,_0x32a890);});});}catch(_0x4a9fac){PerformanceTester[_0x38a980(0x20d)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x38a980(0x218)](_0x4a9fac)),logger[_0x38a980(0x26e)](_0x38a980(0x23b)+util[_0x38a980(0x218)](_0x4a9fac));}};static['downloadFileStream'](_0x37f083,_0x21b3ec,_0x1cad98,_0x20f0c5,_0x5ca0c7,_0x19aed0){const _0x12c9d9=a58_0x5a52fe,_0x50fa2f={'oSnjV':function(_0x43f91e,_0x9d4cad){return _0x43f91e(_0x9d4cad);},'Mtwmq':_0x12c9d9(0x20d),'WyMnI':function(_0x3d9a1e,_0x4af1ad){return _0x3d9a1e===_0x4af1ad;},'QCaVZ':function(_0x31c8ac,_0x46f57c){return _0x31c8ac(_0x46f57c);},'iFztJ':function(_0x4e12e7,_0x279761){return _0x4e12e7(_0x279761);},'DSDzU':_0x12c9d9(0x275),'TOCIH':_0x12c9d9(0x266),'WCkih':_0x12c9d9(0x25e),'YSHuF':_0x12c9d9(0x20f)};_0x37f083['on'](_0x50fa2f[_0x12c9d9(0x1bc)],function(){const _0x2c4846=_0x12c9d9,_0x3927ed={'lSFWe':function(_0x4e1ded,_0x1611c6){const _0xdbad60=a58_0x4e9e;return _0x50fa2f[_0xdbad60(0x272)](_0x4e1ded,_0x1611c6);},'SqXWx':_0x50fa2f[_0x2c4846(0x23f)],'TsIjV':function(_0x378d30,_0x58705f){return _0x50fa2f['WyMnI'](_0x378d30,_0x58705f);},'nFPlp':function(_0x3f9c1f,_0x2d56bb){const _0x393f3f=_0x2c4846;return _0x50fa2f[_0x393f3f(0x1d8)](_0x3f9c1f,_0x2d56bb);},'XchVz':function(_0x36738b,_0x257fdd){const _0x479dcb=_0x2c4846;return _0x50fa2f[_0x479dcb(0x272)](_0x36738b,_0x257fdd);},'DzPbE':function(_0xb1a2ae,_0xe0ee28){const _0x16c7c0=_0x2c4846;return _0x50fa2f[_0x16c7c0(0x215)](_0xb1a2ae,_0xe0ee28);},'XDFur':_0x50fa2f['DSDzU'],'pJhhc':_0x50fa2f[_0x2c4846(0x276)],'UpnsP':_0x50fa2f[_0x2c4846(0x220)]},_0x2ca36f={};_0x2ca36f[_0x2c4846(0x24e)]=!![],yauzl[_0x2c4846(0x254)](_0x1cad98,_0x2ca36f,function(_0x411848,_0x57c655){const _0x5df886=_0x2c4846,_0x30c343={'LjIGy':function(_0x130089,_0x86286d){const _0x2b4577=a58_0x4e9e;return _0x3927ed[_0x2b4577(0x27a)](_0x130089,_0x86286d);},'hsmGB':function(_0x2f9b14,_0x3c6545){const _0x40672c=a58_0x4e9e;return _0x3927ed[_0x40672c(0x264)](_0x2f9b14,_0x3c6545);},'SlSaO':function(_0x580d2c,_0x3b03d6){const _0xbb2224=a58_0x4e9e;return _0x3927ed[_0xbb2224(0x1d3)](_0x580d2c,_0x3b03d6);},'hSSNc':_0x3927ed[_0x5df886(0x1fb)]};_0x411848&&_0x3927ed[_0x5df886(0x264)](_0x19aed0,_0x411848),_0x57c655[_0x5df886(0x1dd)](),_0x57c655['on'](_0x3927ed[_0x5df886(0x231)],_0x5aa038=>{const _0x363aee=_0x5df886,_0x46f11f={'qkzwV':function(_0x5601cf,_0x40286a){const _0x4c3c8a=a58_0x4e9e;return _0x3927ed[_0x4c3c8a(0x1f9)](_0x5601cf,_0x40286a);},'CNwBN':_0x3927ed['SqXWx']};!_0x21b3ec&&(_0x21b3ec=_0x5aa038[_0x363aee(0x20c)]);if(/\/$/['test'](_0x5aa038[_0x363aee(0x20c)]))_0x57c655[_0x363aee(0x1dd)]();else{const _0x2ea14a=fs[_0x363aee(0x27e)](path[_0x363aee(0x262)](_0x20f0c5,_0x5aa038[_0x363aee(0x20c)]));_0x57c655['openReadStream'](_0x5aa038,function(_0x26bc60,_0x3a987c){const _0x22c80a=_0x363aee;_0x26bc60&&_0x46f11f[_0x22c80a(0x1f1)](_0x19aed0,_0x411848),_0x3a987c['on'](_0x46f11f[_0x22c80a(0x269)],function(){const _0x1a1bf4=_0x22c80a;_0x2ea14a['close'](),_0x57c655[_0x1a1bf4(0x1dd)]();}),_0x3a987c[_0x22c80a(0x25f)](_0x2ea14a);}),_0x3927ed['TsIjV'](_0x5aa038[_0x363aee(0x20c)],_0x21b3ec)&&_0x57c655['close']();}}),_0x57c655['on'](_0x3927ed[_0x5df886(0x1ef)],_0x1179f2=>{const _0xee0b2f=_0x5df886;_0x30c343[_0xee0b2f(0x270)](_0x19aed0,_0x1179f2);}),_0x57c655[_0x5df886(0x267)](_0x3927ed['SqXWx'],()=>{const _0x28ae12=_0x5df886,_0x1996f7={'QebXF':function(_0x3beddf,_0x1766a3){const _0xa6a20b=a58_0x4e9e;return _0x30c343[_0xa6a20b(0x22e)](_0x3beddf,_0x1766a3);},'kYIvU':function(_0x452d5d,_0x1cb29f){return _0x30c343['SlSaO'](_0x452d5d,_0x1cb29f);}};fs[_0x28ae12(0x1f2)](_0x1cad98,_0x34d306=>{const _0x159d11=_0x28ae12;_0x34d306&&logger[_0x159d11(0x1f3)](_0x159d11(0x24a)+_0x1cad98);}),fs[_0x28ae12(0x271)](_0x20f0c5+'/'+_0x21b3ec,_0x30c343[_0x28ae12(0x200)],function(_0x459b68){const _0x3a3e4a=_0x28ae12;_0x459b68&&_0x1996f7[_0x3a3e4a(0x1e8)](_0x19aed0,_0x459b68),_0x1996f7['kYIvU'](_0x5ca0c7,_0x20f0c5+'/'+_0x21b3ec);}),_0x57c655[_0x28ae12(0x20f)]();});});});}static[a58_0x5a52fe(0x1e0)](){const _0x71ca9b=a58_0x5a52fe;if(process[_0x71ca9b(0x219)][_0x71ca9b(0x26f)])return JSON[_0x71ca9b(0x263)](process[_0x71ca9b(0x219)][_0x71ca9b(0x26f)]);return this['testFrameworkDetail'];}static['getAutomationFrameworkDetail'](){const _0x5e6598=a58_0x5a52fe;if(process[_0x5e6598(0x219)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL'])return JSON['parse'](process[_0x5e6598(0x219)][_0x5e6598(0x265)]);return this['automationFrameworkDetail'];}static['setFrameworkDetail'](_0x47539a,_0x1b9fe1){const _0x243efd=a58_0x5a52fe,_0x31daa5={'uyUkQ':_0x243efd(0x1c7),'lYFdu':function(_0x380da1,_0x3c900d){return _0x380da1(_0x3c900d);},'JVFFO':function(_0x5e76ed,_0x11b498){return _0x5e76ed(_0x11b498);},'RfdWy':function(_0x12a18e,_0x14aecb){return _0x12a18e||_0x14aecb;}},_0x21f5bd=_0x31daa5[_0x243efd(0x1e2)][_0x243efd(0x1e7)]('|');let _0x1f3396=0x0;while(!![]){switch(_0x21f5bd[_0x1f3396++]){case'0':this[_0x243efd(0x20b)]={'name':_0x47539a,'version':{[_0x47539a]:_0x31daa5['lYFdu'](getFrameworkVersion,_0x47539a)}};continue;case'1':process[_0x243efd(0x219)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']=JSON[_0x243efd(0x1e4)](this['automationFrameworkDetail']);continue;case'2':process['env'][_0x243efd(0x26f)]=JSON[_0x243efd(0x1e4)](this[_0x243efd(0x20b)]);continue;case'3':this['automationFrameworkDetail']={'name':_0x1b9fe1,'version':_0x31daa5[_0x243efd(0x242)](getFrameworkVersion,_0x1b9fe1)};continue;case'4':_0x31daa5[_0x243efd(0x25a)](!_0x47539a,!_0x1b9fe1)&&logger[_0x243efd(0x26e)](_0x243efd(0x216)+_0x47539a+_0x243efd(0x1d9)+_0x1b9fe1);continue;}break;}}static[a58_0x5a52fe(0x1cd)](_0x5514ff,_0x70483d){return _0x5514ff+':'+_0x70483d;}static[a58_0x5a52fe(0x27b)](){const _0x5d424c=a58_0x5a52fe;return process[_0x5d424c(0x1c4)]+':'+threadId;}static[a58_0x5a52fe(0x21c)](_0x5e4e5b){const _0x51398e=a58_0x5a52fe;if(_0x5e4e5b[_0x51398e(0x23e)]&&_0x5e4e5b[_0x51398e(0x23e)][_0x51398e(0x20a)])return!![];return![];}static['shouldSkipSessionStatus'](_0x39aab6){const _0x27cd6e=a58_0x5a52fe;if(_0x39aab6[_0x27cd6e(0x23e)]&&_0x39aab6[_0x27cd6e(0x23e)][_0x27cd6e(0x1cf)])return!![];return![];}static['matchHookRegex'](_0xe56b9e){const _0x1fff58=a58_0x5a52fe,_0x3a35f5=new RegExp(TestFrameworkConstants[_0x1fff58(0x238)]);return _0x3a35f5[_0x1fff58(0x221)](_0xe56b9e);}}function a58_0x4407(){const _0x4eff6f=['MFjBL','Development\x20Cli\x20Path:\x20','iSiXk','ScgAP','HOOK_REGEX','binary-','oxixs','Failed\x20to\x20download\x20binary,\x20Exception:\x20','development','1757ybCrCG','testContextOptions','Mtwmq','Error\x20while\x20reading\x20CLI\x20path:\x20','sEjze','JVFFO','filter','WvRpi','LtsjV','CjEHn','.browserstack','existsSync','getSdkLanguage','Failed\x20to\x20delete\x20zip\x20file:\x20','basename','9427008XJEsdi','Configuring\x20Cli\x20path.','lazyEntries','listen','YcjbN','homedir','statSync','Downloading\x20SDK\x20binary\x20from:\x20','open','wENWG','RDNCU','rxIUS','reduce','.sock','RfdWy','CWVCz','pNAOU','SDK_CLI_CHECK_UPDATE','error','pipe','450Splwsz','exports','join','parse','XchVz','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','entry','once','../../helpers/classLogger.js','CNwBN','iUgMm','start','../../../package.json','Setting\x20required\x20permissions\x20to\x20','debug','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','LjIGy','chmod','oSnjV','SDK_CLI_DOWNLOAD','url','0755','TOCIH','JhUIC','get','info','nFPlp','getCurrentInstanceName','FTRVd','./instances/testFrameworkInstance.js','createWriteStream','platform','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','cli_version','data','YSHuF','readdirSync','\x20version','SDK_CLI_BIN_PATH','4416423NhFqqe','eFyxq','Czcad','setupCliPath','pid','\x20already\x20exists','trim','4|0|3|1|2','18316iYETHX','phtEB','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response\x20%s','BROWSERSTACK_BINARY_URL','JCBdN','getHookRegistryKey','DgCIv','skipSessionStatus','irJUM','FHRgY','requestToUpdateCLI','DzPbE','aGPSd','VIvFY','getCLIParamsForDevEnv','startsWith','QCaVZ',',\x20automationFramework=','JDMOI','map','1622aLuOuk','readEntry','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','bAdKf','getTestFrameworkDetail','arch','uyUkQ','../../helpers/helper','stringify','585mHSPMz','filePath','split','QebXF','downloaded_file.zip','Folder\x20does\x20not\x20exist:\x20','./state/automationFrameworkState.js','cwd','downloadFileStream','SpiCD','UpnsP','Resolved\x20binary\x20path:\x20','qkzwV','unlink','warn','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','node','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','PpsHm','cli','lSFWe','xEklq','XDFur','yauzl','./state/testFrameworkState.js','../../helpers/performance/constants','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','hSSNc','length','timeout','13164lwfmwy','BROWSERSTACK_FILES_DIR','getSdkVersion','1208oxmICV','../../helpers/utilities','cnMni','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file\x20%s','skipSessionName','testFrameworkDetail','fileName','end','runShellCommand','close','getWritableDir','follow-redirects','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','getCliDir','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','iFztJ','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','mtime','format','env','14auAyrM','mfqjO','shouldSkipSessionName','UhcaM','12260hdKROe','isDevelopmentEnv','WCkih','test','Spoay','checkAndUpdateCli','51WnPRZr','BROWSERSTACK_CLI_ENV','WKdDY','nnEGj','ykbnS','getExistingCliPath','unix:/tmp/sdk-platform-','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request\x20','version','KDYVM','hsmGB','child_process','isDirectory','pJhhc','GET','jFvIU'];a58_0x4407=function(){return _0x4eff6f;};return a58_0x4407();}module[a58_0x5a52fe(0x261)]=CLIUtils;
1
+ const a58_0x3a32a8=a58_0x28a0;function a58_0x28a0(_0xe30f8e,_0x34d0f9){const _0x9ab38=a58_0x9ab3();return a58_0x28a0=function(_0x28a092,_0x3ddfb5){_0x28a092=_0x28a092-0x106;let _0x4cd020=_0x9ab38[_0x28a092];return _0x4cd020;},a58_0x28a0(_0xe30f8e,_0x34d0f9);}function a58_0x9ab3(){const _0x4f65bb=['../../helpers/classLogger.js','Failed\x20to\x20delete\x20zip\x20file:\x20','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','xPtQZ','development','ZtDbp','xMhfT','fryCR','Skzpe','isFile','end','info','worker_threads','reduce','fWRle','test','UAMAs','openReadStream','pid','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','cwd','lPcPa','Failed\x20to\x20download\x20binary,\x20Exception:\x20','env','existsSync','rylDC','filePath','getCliDir','TRmiq','Resolved\x20binary\x20path:\x20','1135302CYYsTq','Error\x20while\x20reading\x20CLI\x20path:\x20','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','open','aCWxk','kteal','jEsnu','gEaWM','getHookRegistryKey','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','cli','ldYtD','RgzLQ','BSzhH','isDevelopmentEnv','testContextOptions','dxTXS','format','arch','requestToUpdateCLI','getAutomationFrameworkDetail','xwoQr','fileName','Development\x20Cli\x20Path:\x20','cli_version','BROWSERSTACK_CLI_ENV','HTPan','DpOHD','close','pipe','1|3|4|2|0','getTestFrameworkDetail','./instances/testFrameworkInstance.js','2334wMclas','getSdkVersion','iYVPo','follow-redirects','lazyEntries','exports','cUsqL','downloadLatestBinary','SDK_CLI_CHECK_UPDATE','map','getSdkLanguage','wKYul','qUSfI','listen','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','startsWith','UGICd','tmp','entry','../../helpers/test-observability/utils.js','IXwyU','split','createWriteStream','isDirectory','../../helpers/performance/performance-tester.js','NSYFK','1340274QQannq','ALFLa','downloadFileStream','CLIUtils','ukcis','version','PiSIL','FFHJB','./state/automationFrameworkState.js','SDK_CLI_DOWNLOAD','BcFOt','getCLIParamsForDevEnv','hXYaq','SDK_CLI_BIN_PATH','wdrpM','CpCAg','GET','ahBsV','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','path','../../helpers/performance/constants','9qXFkDG','warn','SebJD','runShellCommand','stringify','PPKrC','binary-','jRvcP','./framework/constants/testFrameworkConstants.js','shouldSkipSessionStatus','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','YgVhX','HOOK_REGEX','get','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request\x20','LVLLC','shouldSkipSessionName','statSync','WYdjA','./state/testFrameworkState.js','Folder\x20does\x20not\x20exist:\x20','FlfQT','\x20already\x20exists','setupCliPath','debug','parse','child_process','error','XZvsS','getExistingCliPath','EuPKz','qJXKe','hVfdr','17497120Snezve','chmod','SHELL_EXECUTE_ERROR','jegXr','util','skipSessionStatus','3443576tAPTcQ','NbDPg','gwZGP','.sock','./state/hookState.js','3370885jAQRZn','yvjKR','Downloading\x20SDK\x20binary\x20from:\x20','getWritableDir','Configuring\x20Cli\x20path.','testFrameworkDetail','start','url','trim','xGAlP','Current\x20CLI\x20Path\x20Found:\x20','BROWSERSTACK_BINARY_URL','gdPCX','getCurrentInstanceName','22407SFyPRQ','node','772795qKyIJw','rFIDz','automationFrameworkDetail','join','downloaded_file.zip','mtime',',\x20automationFramework=','WxJie','zmjDv','SieGC','response\x20','../utils/constants','data','readEntry'];a58_0x9ab3=function(){return _0x4f65bb;};return a58_0x9ab3();}(function(_0x2fec8e,_0x4ca9aa){const _0x41d585=a58_0x28a0,_0x239e2e=_0x2fec8e();while(!![]){try{const _0x4b7935=parseInt(_0x41d585(0x114))/0x1+-parseInt(_0x41d585(0x140))/0x2+-parseInt(_0x41d585(0x17b))/0x3+parseInt(_0x41d585(0x1b7))/0x4+-parseInt(_0x41d585(0x1bc))/0x5+-parseInt(_0x41d585(0x161))/0x6*(parseInt(_0x41d585(0x112))/0x7)+parseInt(_0x41d585(0x1b1))/0x8*(parseInt(_0x41d585(0x190))/0x9);if(_0x4b7935===_0x4ca9aa)break;else _0x239e2e['push'](_0x239e2e['shift']());}catch(_0x15f0b3){_0x239e2e['push'](_0x239e2e['shift']());}}}(a58_0x9ab3,0xd890e));const fs=require('fs'),os=require('os'),url=require('url'),path=require(a58_0x3a32a8(0x18e)),{exec}=require(a58_0x3a32a8(0x1aa)),{https}=require(a58_0x3a32a8(0x164)),yauzl=require('yauzl'),util=require(a58_0x3a32a8(0x1b5)),{getFrameworkVersion}=require(a58_0x3a32a8(0x174)),{threadId}=require(a58_0x3a32a8(0x12e)),PerformanceTester=require(a58_0x3a32a8(0x179)),{EVENTS:PerformanceEvents}=require(a58_0x3a32a8(0x18f)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require('../../helpers/utilities'),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require('../../helpers/helper'),{BROWSERSTACK_API_URL,UPDATED_CLI_ENDPOINT}=require(a58_0x3a32a8(0x11f)),{createClassLogger}=require(a58_0x3a32a8(0x122)),TestFrameworkInstance=require(a58_0x3a32a8(0x160)),HookState=require(a58_0x3a32a8(0x1bb)),TestFrameworkState=require(a58_0x3a32a8(0x1a3)),AutomationFrameworkState=require(a58_0x3a32a8(0x183)),TestFrameworkConstants=require(a58_0x3a32a8(0x198)),logger=createClassLogger(a58_0x3a32a8(0x17e));class CLIUtils{[a58_0x3a32a8(0x116)]={};['testFrameworkDetail']={};static[a58_0x3a32a8(0x14e)](){const _0x4dd570=a58_0x3a32a8,_0x4d40a7={};_0x4d40a7['SieGC']=function(_0x4e105f,_0x2a4c33){return _0x4e105f===_0x2a4c33;},_0x4d40a7[_0x4dd570(0x1b9)]=_0x4dd570(0x126);const _0x27d2cd=_0x4d40a7;return _0x27d2cd[_0x4dd570(0x11d)](process[_0x4dd570(0x139)][_0x4dd570(0x159)],_0x27d2cd[_0x4dd570(0x1b9)]);}static[a58_0x3a32a8(0x186)](){const _0x51661f=a58_0x3a32a8,_0x5a6107={};return _0x5a6107['id']=process['env'][_0x51661f(0x159)],_0x5a6107[_0x51661f(0x16e)]='unix:/tmp/sdk-platform-'+process[_0x51661f(0x139)][_0x51661f(0x159)]+_0x51661f(0x1ba),_0x5a6107;}static[a58_0x3a32a8(0x162)](){const _0x5aa22a=a58_0x3a32a8,_0x54fa4a={'EuPKz':function(_0x128576,_0x3bc1b0){return _0x128576(_0x3bc1b0);},'dxTXS':'../../../package.json'};return _0x54fa4a[_0x5aa22a(0x1ae)](require,_0x54fa4a[_0x5aa22a(0x150)])[_0x5aa22a(0x180)];}static[a58_0x3a32a8(0x16b)](){const _0x3688a4=a58_0x3a32a8,_0x2d5efa={};_0x2d5efa['SebJD']=_0x3688a4(0x113);const _0x5ce8c8=_0x2d5efa;return _0x5ce8c8[_0x3688a4(0x192)];}static async[a58_0x3a32a8(0x1a7)](_0x43888d){const _0x31e472=a58_0x3a32a8,_0x2e26f3={'WxJie':_0x31e472(0x108),'CpCAg':function(_0x26a748,_0x4abef2){return _0x26a748(_0x4abef2);},'yvjKR':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI'};logger[_0x31e472(0x1a8)](_0x2e26f3[_0x31e472(0x11b)]);const _0xa6d671=process[_0x31e472(0x139)][_0x31e472(0x188)];if(!_0x2e26f3[_0x31e472(0x18a)](isNullOrEmpty,_0xa6d671))return logger[_0x31e472(0x1a8)](_0x31e472(0x157)+_0xa6d671),_0xa6d671;try{const _0x2b7e87=this['getCliDir']();if(_0x2e26f3['CpCAg'](isNullOrEmpty,_0x2b7e87))throw new Error(_0x2e26f3[_0x31e472(0x1bd)]);const _0xa4c06=this[_0x31e472(0x1ad)](_0x2b7e87),_0x4ec38f=await this['checkAndUpdateCli'](_0xa4c06,_0x2b7e87,_0x43888d);return logger[_0x31e472(0x1a8)](_0x31e472(0x13f)+_0x4ec38f),_0x4ec38f;}catch(_0x5a755e){logger['debug'](_0x31e472(0x135)+util[_0x31e472(0x151)](_0x5a755e));}return null;}static async['checkAndUpdateCli'](_0x131102,_0x322152,_0xe72da3){const _0x24163e=a58_0x3a32a8,_0x34e2e4={'ukcis':function(_0x143d51){return _0x143d51();},'YgVhX':function(_0x271389,_0x21c5ec){return _0x271389(_0x21c5ec);},'UGICd':function(_0x21d087,_0x4de199,_0x15af9f){return _0x21d087(_0x4de199,_0x15af9f);},'wdrpM':'data','kteal':_0x24163e(0x10b)};PerformanceTester[_0x24163e(0x10a)](PerformanceEvents[_0x24163e(0x169)]),logger[_0x24163e(0x12d)](_0x24163e(0x10e)+_0x131102);const _0x25e367=_0x34e2e4[_0x24163e(0x17f)](getHostInfo),_0x29c240={'sdk_version':CLIUtils['getSdkVersion'](),'os':_0x25e367['platform'],'os_arch':_0x25e367[_0x24163e(0x152)],'cli_version':'0','sdk_language':this['getSdkLanguage']()};!_0x34e2e4[_0x24163e(0x19b)](isNullOrEmpty,_0x131102)&&(_0x29c240[_0x24163e(0x158)]=await this['runShellCommand'](_0x131102+'\x20version'));const _0x101286=await this[_0x24163e(0x153)](_0x29c240,_0xe72da3);process['env']['BROWSERSTACK_BINARY_URL']&&(logger[_0x24163e(0x12d)](_0x24163e(0x18d)+process[_0x24163e(0x139)][_0x24163e(0x10f)]),_0x101286[_0x24163e(0x120)]['url']=process[_0x24163e(0x139)]['BROWSERSTACK_BINARY_URL']);if(_0x34e2e4[_0x24163e(0x171)](nestedKeyValue,_0x101286,[_0x34e2e4[_0x24163e(0x189)],_0x34e2e4[_0x24163e(0x145)]])){logger[_0x24163e(0x1a8)]('Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20'+_0x29c240['cli_version']);const _0x5bcc7d=await this[_0x24163e(0x168)](_0x34e2e4[_0x24163e(0x171)](nestedKeyValue,_0x101286,[_0x34e2e4[_0x24163e(0x189)],_0x34e2e4[_0x24163e(0x145)]]),_0x322152);return PerformanceTester[_0x24163e(0x12c)](PerformanceEvents[_0x24163e(0x169)]),_0x5bcc7d;}return PerformanceTester[_0x24163e(0x12c)](PerformanceEvents[_0x24163e(0x169)]),_0x131102;}static[a58_0x3a32a8(0x13d)](){const _0xbad72=a58_0x3a32a8,_0x4b340a={'jegXr':function(_0x3db144,_0x2d3d80){return _0x3db144(_0x2d3d80);},'MQZdd':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','BcFOt':_0xbad72(0x14a),'FlfQT':function(_0x522165,_0x5135ec){return _0x522165(_0x5135ec);}},_0x5a21af=this[_0xbad72(0x107)]();try{if(_0x4b340a[_0xbad72(0x1b4)](isNullOrEmpty,_0x5a21af))throw new Error(_0x4b340a['MQZdd']);const _0x19fe80=path[_0xbad72(0x117)](_0x5a21af,_0x4b340a[_0xbad72(0x185)]);return!fs['existsSync'](_0x19fe80)&&_0x4b340a[_0xbad72(0x1a5)](createDir,_0x19fe80),_0x19fe80;}catch(_0x2a6a4a){logger[_0xbad72(0x1a8)](_0xbad72(0x142)+util[_0xbad72(0x151)](_0x2a6a4a));}}static[a58_0x3a32a8(0x107)](){const _0x2b7d07=a58_0x3a32a8,_0x2b5208={'zmjDv':'.browserstack','pUdHj':_0x2b7d07(0x172),'cUsqL':function(_0x35f347,_0x53cbec){return _0x35f347(_0x53cbec);},'gdPCX':function(_0x182ab4,_0x54a73b){return _0x182ab4(_0x54a73b);},'ldYtD':function(_0x44f3de,_0x2e7e7b){return _0x44f3de(_0x2e7e7b);},'LVLLC':function(_0x1c1f7a,_0x5337ec){return _0x1c1f7a(_0x5337ec);},'lPcPa':function(_0x5b4ff4,_0x995b25){return _0x5b4ff4(_0x995b25);}},_0xfc2cb1=[process['env']['BROWSERSTACK_FILES_DIR'],path[_0x2b7d07(0x117)](os['homedir'](),_0x2b5208[_0x2b7d07(0x11c)]),path[_0x2b7d07(0x117)](_0x2b5208['pUdHj'],_0x2b5208[_0x2b7d07(0x11c)])];for(const _0x54429b of _0xfc2cb1){if(_0x2b5208[_0x2b7d07(0x167)](isNullOrEmpty,_0x54429b))continue;try{if(fs[_0x2b7d07(0x13a)](_0x54429b)){logger[_0x2b7d07(0x1a8)]('Folder\x20'+_0x54429b+_0x2b7d07(0x1a6));if(!_0x2b5208[_0x2b7d07(0x110)](isModifiable,_0x54429b)){logger[_0x2b7d07(0x1a8)]('Setting\x20required\x20permissions\x20to\x20'+_0x54429b);const _0x2cfafe=_0x2b5208[_0x2b7d07(0x110)](setReadWriteExecuteAccess,_0x54429b);!_0x2b5208[_0x2b7d07(0x14b)](isTrue,_0x2cfafe)&&logger[_0x2b7d07(0x191)](_0x2b7d07(0x124)+_0x54429b);}}else{logger[_0x2b7d07(0x1a8)](_0x2b7d07(0x1a4)+_0x54429b),_0x2b5208[_0x2b7d07(0x19f)](createDir,_0x54429b),logger[_0x2b7d07(0x1a8)]('Setting\x20required\x20permissions\x20to\x20'+_0x54429b);const _0x286cb4=_0x2b5208[_0x2b7d07(0x137)](setReadWriteExecuteAccess,_0x54429b);!_0x2b5208[_0x2b7d07(0x167)](isTrue,_0x286cb4)&&logger[_0x2b7d07(0x191)](_0x2b7d07(0x124)+_0x54429b);}return _0x54429b;}catch(_0x3c4ee8){logger[_0x2b7d07(0x1ab)](_0x2b7d07(0x19a)+util[_0x2b7d07(0x151)](_0x3c4ee8));}}return null;}static[a58_0x3a32a8(0x1ad)](_0x3d8163){const _0x3a114f=a58_0x3a32a8,_0x100a5f={};_0x100a5f['NSYFK']=function(_0x59f5d3,_0x2fec03){return _0x59f5d3>_0x2fec03;},_0x100a5f[_0x3a114f(0x144)]=function(_0x437e5b,_0x244ce7){return _0x437e5b>_0x244ce7;};const _0x48411f=_0x100a5f;try{if(!fs['existsSync'](_0x3d8163)||!fs[_0x3a114f(0x1a1)](_0x3d8163)[_0x3a114f(0x178)]())return'';const _0x23e405=fs['readdirSync'](_0x3d8163)[_0x3a114f(0x16a)](_0x50718a=>path[_0x3a114f(0x117)](_0x3d8163,_0x50718a))['filter'](_0x7ab5b6=>fs[_0x3a114f(0x1a1)](_0x7ab5b6)[_0x3a114f(0x12b)]()&&path['basename'](_0x7ab5b6)[_0x3a114f(0x170)](_0x3a114f(0x196)));if(_0x48411f[_0x3a114f(0x144)](_0x23e405['length'],0x0)){const _0x480e54=_0x23e405['map'](_0x52cdda=>({'filePath':_0x52cdda,'mtime':fs[_0x3a114f(0x1a1)](_0x52cdda)[_0x3a114f(0x119)]}))[_0x3a114f(0x12f)]((_0x25e84b,_0x594a39)=>{const _0x5245a9=_0x3a114f;if(!_0x25e84b||!_0x25e84b[_0x5245a9(0x119)])return _0x594a39;if(_0x48411f[_0x5245a9(0x17a)](_0x594a39['mtime'],_0x25e84b[_0x5245a9(0x119)]))return _0x594a39;return _0x25e84b;},{});return _0x480e54?_0x480e54[_0x3a114f(0x13c)]:'';}return'';}catch(_0x5660eb){return logger[_0x3a114f(0x1ab)](_0x3a114f(0x141)+util['format'](_0x5660eb)),'';}}static [a58_0x3a32a8(0x153)]=async(_0x15c8cf,_0x13794a)=>{const _0x439564=a58_0x3a32a8,_0x9d62eb={'WbAkK':function(_0x7ed898,_0x41ea22,_0x174031,_0x3bcd6a,_0x1a356c,_0xb6a501){return _0x7ed898(_0x41ea22,_0x174031,_0x3bcd6a,_0x1a356c,_0xb6a501);},'Skzpe':_0x439564(0x18b)},_0x200c43={};_0x200c43['qs']=_0x15c8cf;const _0x362cc5=await _0x9d62eb['WbAkK'](nodeRequest,_0x9d62eb[_0x439564(0x12a)],UPDATED_CLI_ENDPOINT,_0x200c43,_0x13794a,BROWSERSTACK_API_URL);return logger[_0x439564(0x1a8)](_0x439564(0x11e)+JSON[_0x439564(0x194)](_0x362cc5)),_0x362cc5;};static[a58_0x3a32a8(0x193)](_0x46f88c,_0x5616d2=''){const _0x423766=a58_0x3a32a8,_0x288187={'HTPan':function(_0xb4ab04,_0x445f21){return _0xb4ab04(_0x445f21);},'iYVPo':_0x423766(0x1b3),'hVfdr':function(_0x441dbd,_0x1ac12f){return _0x441dbd(_0x1ac12f);},'fWRle':function(_0x1dc938,_0x20c70a,_0x502a60,_0x4afd09){return _0x1dc938(_0x20c70a,_0x502a60,_0x4afd09);},'xMhfT':'error'};return new Promise((_0x93cf6d,_0x398513)=>{const _0x3a5af7=_0x423766,_0x22a121={'xPtQZ':function(_0x305e5f,_0x7f6810){const _0x910d26=a58_0x28a0;return _0x288187[_0x910d26(0x15a)](_0x305e5f,_0x7f6810);},'hXYaq':_0x288187[_0x3a5af7(0x163)],'qJXKe':function(_0x4802b0,_0x347413){const _0x3313eb=_0x3a5af7;return _0x288187[_0x3313eb(0x1b0)](_0x4802b0,_0x347413);}},_0x27416f={};_0x27416f[_0x3a5af7(0x136)]=_0x5616d2,_0x27416f['timeout']=0x1388;const _0x27429f=_0x288187[_0x3a5af7(0x130)](exec,_0x46f88c,_0x27416f,(_0x399c9e,_0x3c4817,_0x5e5555)=>{const _0x297689=_0x3a5af7;_0x399c9e?_0x22a121['xPtQZ'](_0x93cf6d,_0x5e5555[_0x297689(0x10c)]()||_0x22a121[_0x297689(0x187)]):_0x22a121[_0x297689(0x125)](_0x93cf6d,_0x3c4817[_0x297689(0x10c)]());});_0x27429f['on'](_0x288187[_0x3a5af7(0x128)],()=>{const _0x5910ea=_0x3a5af7;_0x22a121[_0x5910ea(0x1af)](_0x93cf6d,_0x22a121[_0x5910ea(0x187)]);});});}static [a58_0x3a32a8(0x168)]=async(_0x9f02db,_0x244314)=>{const _0x11bde6=a58_0x3a32a8,_0x2d9d18={'ALFLa':function(_0x52229a,_0x2a36f7){return _0x52229a(_0x2a36f7);},'xGAlP':'Got\x20Error\x20in\x20percy\x20binary\x20download\x20response\x20%s','rFIDz':'Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file\x20%s','jEsnu':_0x11bde6(0x1ab),'DpOHD':_0x11bde6(0x118)};PerformanceTester[_0x11bde6(0x10a)](PerformanceEvents[_0x11bde6(0x184)]),logger[_0x11bde6(0x1a8)](_0x11bde6(0x106)+_0x9f02db);try{const _0x45d8c4=url[_0x11bde6(0x1a9)](_0x9f02db),_0x50e0d1=path[_0x11bde6(0x117)](_0x244314,_0x2d9d18[_0x11bde6(0x15b)]),_0x491382=fs[_0x11bde6(0x177)](_0x50e0d1);return new Promise((_0x31b400,_0x4213fd)=>{const _0xec07d6=_0x11bde6,_0x493a8f={'UAMAs':_0x2d9d18[_0xec07d6(0x10d)],'PPKrC':function(_0x3cd1fe,_0x370b78){return _0x2d9d18['ALFLa'](_0x3cd1fe,_0x370b78);},'gEaWM':_0x2d9d18[_0xec07d6(0x115)],'ZtDbp':function(_0x456a1a,_0x17b4e0){const _0x24e077=_0xec07d6;return _0x2d9d18[_0x24e077(0x17c)](_0x456a1a,_0x17b4e0);},'IXwyU':_0x2d9d18['jEsnu']};https[_0xec07d6(0x19d)](_0x45d8c4,function(_0x5202bc){const _0x569fde=_0xec07d6,_0x30fbdc=null;_0x5202bc[_0x569fde(0x15d)](_0x491382),_0x5202bc['on'](_0x493a8f['IXwyU'],function(_0x30975c){const _0x31af74=_0x569fde;logger[_0x31af74(0x1ab)](util['format'](_0x493a8f[_0x31af74(0x132)],_0x30975c)),PerformanceTester['end'](PerformanceEvents[_0x31af74(0x184)],![],util[_0x31af74(0x151)](_0x30975c)),_0x493a8f[_0x31af74(0x195)](_0x4213fd,_0x30975c);}),_0x491382['on'](_0x493a8f[_0x569fde(0x175)],function(_0x111f0d){const _0x8d0138=_0x569fde;logger['error'](util[_0x8d0138(0x151)](_0x493a8f[_0x8d0138(0x147)],_0x111f0d)),PerformanceTester[_0x8d0138(0x12c)](PerformanceEvents[_0x8d0138(0x184)],![],util['format'](_0x111f0d)),_0x493a8f[_0x8d0138(0x127)](_0x4213fd,_0x111f0d);}),CLIUtils[_0x569fde(0x17d)](_0x491382,_0x30fbdc,_0x50e0d1,_0x244314,_0x31b400,_0x4213fd),PerformanceTester['end'](PerformanceEvents['SDK_CLI_DOWNLOAD']);})['on'](_0x2d9d18[_0xec07d6(0x146)],function(_0xe6411a){const _0x4a95f4=_0xec07d6;logger['error'](_0x4a95f4(0x19e)+util[_0x4a95f4(0x151)](_0xe6411a)),PerformanceTester[_0x4a95f4(0x12c)](PerformanceEvents[_0x4a95f4(0x184)],![],util[_0x4a95f4(0x151)](_0xe6411a)),_0x2d9d18[_0x4a95f4(0x17c)](_0x4213fd,_0xe6411a);});});}catch(_0x369bdd){PerformanceTester[_0x11bde6(0x12c)](PerformanceEvents[_0x11bde6(0x184)],![],util[_0x11bde6(0x151)](_0x369bdd)),logger['debug'](_0x11bde6(0x138)+util[_0x11bde6(0x151)](_0x369bdd));}};static[a58_0x3a32a8(0x17d)](_0x149b2c,_0x21e3af,_0x4ecabb,_0x392e38,_0x942618,_0x218837){const _0x1709ce=a58_0x3a32a8,_0x37c783={'OtzNM':function(_0x19eab6,_0xec95f6){return _0x19eab6(_0xec95f6);},'xwoQr':_0x1709ce(0x12c),'FFHJB':function(_0x24b8b3,_0x54d3b5){return _0x24b8b3===_0x54d3b5;},'ahBsV':function(_0x351f71,_0x52f51c){return _0x351f71(_0x52f51c);},'jRvcP':_0x1709ce(0x173),'PiSIL':_0x1709ce(0x1ab),'TRmiq':'0755','jvDlA':'close'};_0x149b2c['on'](_0x37c783['jvDlA'],function(){const _0x2e932e=_0x1709ce,_0x4e2d09={'NbDPg':function(_0x2a72ba,_0x11c173){const _0x38b539=a58_0x28a0;return _0x37c783[_0x38b539(0x18c)](_0x2a72ba,_0x11c173);},'weYln':_0x37c783[_0x2e932e(0x13e)]},_0x18a1a7={};_0x18a1a7[_0x2e932e(0x165)]=!![],yauzl[_0x2e932e(0x143)](_0x4ecabb,_0x18a1a7,function(_0x2b031a,_0x397d18){const _0x19d757=_0x2e932e,_0x33dc90={'XZvsS':function(_0x83fbe0,_0x1a4ea9){return _0x37c783['OtzNM'](_0x83fbe0,_0x1a4ea9);},'wheLP':_0x37c783[_0x19d757(0x155)],'fryCR':function(_0x5f4364,_0x2d1f60){const _0x2d1662=_0x19d757;return _0x37c783[_0x2d1662(0x182)](_0x5f4364,_0x2d1f60);}};_0x2b031a&&_0x37c783[_0x19d757(0x18c)](_0x218837,_0x2b031a),_0x397d18[_0x19d757(0x121)](),_0x397d18['on'](_0x37c783[_0x19d757(0x197)],_0x15a67d=>{const _0x5d91a2=_0x19d757,_0x2d08ee={'gEgrM':function(_0x4fa6d0,_0xaee9ff){const _0xcc59fd=a58_0x28a0;return _0x33dc90[_0xcc59fd(0x1ac)](_0x4fa6d0,_0xaee9ff);},'rylDC':_0x33dc90['wheLP']};!_0x21e3af&&(_0x21e3af=_0x15a67d[_0x5d91a2(0x156)]);if(/\/$/[_0x5d91a2(0x131)](_0x15a67d['fileName']))_0x397d18[_0x5d91a2(0x121)]();else{const _0x35f359=fs['createWriteStream'](path[_0x5d91a2(0x117)](_0x392e38,_0x15a67d[_0x5d91a2(0x156)]));_0x397d18[_0x5d91a2(0x133)](_0x15a67d,function(_0x22f746,_0x4dc457){const _0x562319=_0x5d91a2;_0x22f746&&_0x2d08ee['gEgrM'](_0x218837,_0x2b031a),_0x4dc457['on'](_0x2d08ee[_0x562319(0x13b)],function(){const _0x48b3ec=_0x562319;_0x35f359[_0x48b3ec(0x15c)](),_0x397d18[_0x48b3ec(0x121)]();}),_0x4dc457[_0x562319(0x15d)](_0x35f359);}),_0x33dc90[_0x5d91a2(0x129)](_0x15a67d[_0x5d91a2(0x156)],_0x21e3af)&&_0x397d18[_0x5d91a2(0x15c)]();}}),_0x397d18['on'](_0x37c783[_0x19d757(0x181)],_0x3c7789=>{const _0x4adc9=_0x19d757;_0x33dc90[_0x4adc9(0x1ac)](_0x218837,_0x3c7789);}),_0x397d18['once'](_0x37c783[_0x19d757(0x155)],()=>{const _0x5a6bba=_0x19d757,_0x479399={'BSzhH':function(_0x140ea4,_0x427ad3){const _0x133469=a58_0x28a0;return _0x4e2d09[_0x133469(0x1b8)](_0x140ea4,_0x427ad3);}};fs['unlink'](_0x4ecabb,_0x5e35f5=>{const _0x5651c3=a58_0x28a0;_0x5e35f5&&logger['warn'](_0x5651c3(0x123)+_0x4ecabb);}),fs[_0x5a6bba(0x1b2)](_0x392e38+'/'+_0x21e3af,_0x4e2d09['weYln'],function(_0x374714){const _0x360a39=_0x5a6bba;_0x374714&&_0x479399[_0x360a39(0x14d)](_0x218837,_0x374714),_0x479399[_0x360a39(0x14d)](_0x942618,_0x392e38+'/'+_0x21e3af);}),_0x397d18[_0x5a6bba(0x15c)]();});});});}static[a58_0x3a32a8(0x15f)](){const _0x335e3f=a58_0x3a32a8;if(process['env'][_0x335e3f(0x16f)])return JSON['parse'](process[_0x335e3f(0x139)][_0x335e3f(0x16f)]);return this['testFrameworkDetail'];}static[a58_0x3a32a8(0x154)](){const _0x3f1c0d=a58_0x3a32a8;if(process[_0x3f1c0d(0x139)][_0x3f1c0d(0x149)])return JSON['parse'](process[_0x3f1c0d(0x139)][_0x3f1c0d(0x149)]);return this[_0x3f1c0d(0x116)];}static['setFrameworkDetail'](_0x3241c1,_0x4cd26b){const _0x43d95=a58_0x3a32a8,_0x2c19fa={'RgzLQ':_0x43d95(0x15e),'qUSfI':function(_0x4b33ad,_0x478422){return _0x4b33ad||_0x478422;},'WYdjA':function(_0x11f2d4,_0x56957a){return _0x11f2d4(_0x56957a);},'wKYul':function(_0x4e50ee,_0x25e6c9){return _0x4e50ee(_0x25e6c9);}},_0x32c10f=_0x2c19fa[_0x43d95(0x14c)][_0x43d95(0x176)]('|');let _0x405ae7=0x0;while(!![]){switch(_0x32c10f[_0x405ae7++]){case'0':process[_0x43d95(0x139)][_0x43d95(0x16f)]=JSON[_0x43d95(0x194)](this[_0x43d95(0x109)]);continue;case'1':_0x2c19fa[_0x43d95(0x16d)](!_0x3241c1,!_0x4cd26b)&&logger[_0x43d95(0x1a8)]('Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework='+_0x3241c1+_0x43d95(0x11a)+_0x4cd26b);continue;case'2':process[_0x43d95(0x139)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']=JSON[_0x43d95(0x194)](this[_0x43d95(0x116)]);continue;case'3':this[_0x43d95(0x109)]={'name':_0x3241c1,'version':{[_0x3241c1]:_0x2c19fa[_0x43d95(0x1a2)](getFrameworkVersion,_0x3241c1)}};continue;case'4':this[_0x43d95(0x116)]={'name':_0x4cd26b,'version':_0x2c19fa[_0x43d95(0x16c)](getFrameworkVersion,_0x4cd26b)};continue;}break;}}static[a58_0x3a32a8(0x148)](_0x5206d2,_0x129425){return _0x5206d2+':'+_0x129425;}static[a58_0x3a32a8(0x111)](){const _0x442d63=a58_0x3a32a8;return process[_0x442d63(0x134)]+':'+threadId;}static[a58_0x3a32a8(0x1a0)](_0x7f0bfa){const _0x506cb9=a58_0x3a32a8;if(_0x7f0bfa['testContextOptions']&&_0x7f0bfa[_0x506cb9(0x14f)]['skipSessionName'])return!![];return![];}static[a58_0x3a32a8(0x199)](_0x32667f){const _0x402e88=a58_0x3a32a8;if(_0x32667f[_0x402e88(0x14f)]&&_0x32667f['testContextOptions'][_0x402e88(0x1b6)])return!![];return![];}static['matchHookRegex'](_0x347821){const _0xb83b0=a58_0x3a32a8,_0x254c11=new RegExp(TestFrameworkConstants[_0xb83b0(0x19c)]);return _0x254c11[_0xb83b0(0x131)](_0x347821);}}module[a58_0x3a32a8(0x166)]=CLIUtils;