browserstack-node-sdk 1.50.9 → 1.50.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test.setup.js +1 -1
  67. package/src/bin/jest/test_before.setup.js +1 -1
  68. package/src/bin/launcher/launcher.js +1 -1
  69. package/src/bin/load/index.js +1 -1
  70. package/src/bin/load/loadUtils.js +1 -1
  71. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  72. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  73. package/src/bin/mocha/command.js +1 -1
  74. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  75. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  76. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  77. package/src/bin/mocha/test.setup.js +1 -1
  78. package/src/bin/nightwatch/command.js +1 -1
  79. package/src/bin/playwright/accessibility-helper.js +1 -1
  80. package/src/bin/playwright/command.js +1 -1
  81. package/src/bin/playwright/globalSetup.js +1 -1
  82. package/src/bin/playwright/mock-process.js +1 -1
  83. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  84. package/src/bin/playwright/patches.js +1 -1
  85. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  86. package/src/bin/playwright/reporter/reporter.js +1 -1
  87. package/src/bin/playwright/reporter/test-details.js +1 -1
  88. package/src/bin/playwright/sessionDetails.js +1 -1
  89. package/src/bin/runner.js +1 -1
  90. package/src/bin/setup.js +1 -1
  91. package/src/bin/test-runner/index.js +1 -1
  92. package/src/bin/test-runner/runTest.js +1 -1
  93. package/src/bin/test-runner/testWorker.js +1 -1
  94. package/src/bin/utils/apiUtilityMethods.js +1 -1
  95. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  96. package/src/bin/utils/constants.js +1 -1
  97. package/src/bin/utils/log4jsAppender.js +1 -1
  98. package/src/bin/utils/logPatcher.js +1 -1
  99. package/src/bin/utils/logReportingAPI.js +1 -1
  100. package/src/bin/utils/playwright-patcher.js +1 -1
  101. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  102. package/src/bin/utils/sharedUtils.js +1 -1
  103. package/src/bin/v2/TestInfo.js +1 -1
  104. package/src/bin/v2/browserstackCLI.js +1 -1
  105. package/src/bin/v2/cliUtils.js +1 -1
  106. package/src/bin/v2/customTagManager.js +1 -1
  107. package/src/bin/v2/eventDispatcher.js +1 -1
  108. package/src/bin/v2/framework/automationFramework.js +1 -1
  109. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  110. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  111. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  112. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  113. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  114. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  115. package/src/bin/v2/framework/testFramework.js +1 -1
  116. package/src/bin/v2/grpcClient.js +1 -1
  117. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  118. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  119. package/src/bin/v2/instances/trackedContext.js +1 -1
  120. package/src/bin/v2/instances/trackedInstance.js +1 -1
  121. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  122. package/src/bin/v2/modules/baseModule.js +1 -1
  123. package/src/bin/v2/modules/loadTestModule.js +1 -1
  124. package/src/bin/v2/modules/observabilityModule.js +1 -1
  125. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  126. package/src/bin/v2/modules/testhubModule.js +1 -1
  127. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  128. package/src/bin/v2/state/hookState.js +1 -1
  129. package/src/bin/v2/state/testFrameworkState.js +1 -1
  130. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  131. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  132. package/src/bin/v2/utils/jest-utils.js +1 -1
  133. package/src/bin/vanilla-js/command.js +1 -1
  134. package/src/browserStackSdk.js +1 -1
  135. package/src/helpers/BrowserStackSetup.js +1 -1
  136. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  137. package/src/helpers/accessibility-automation/constants.js +1 -1
  138. package/src/helpers/accessibility-automation/helper.js +1 -1
  139. package/src/helpers/accessibility-automation/scripts.js +1 -1
  140. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  141. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  142. package/src/helpers/ats/constants.js +1 -1
  143. package/src/helpers/ats/helper.js +1 -1
  144. package/src/helpers/capsMapping.js +1 -1
  145. package/src/helpers/central-scanner/constants.js +1 -1
  146. package/src/helpers/central-scanner/helpers.js +1 -1
  147. package/src/helpers/classLogger.js +1 -1
  148. package/src/helpers/globals.js +1 -1
  149. package/src/helpers/helper.js +1 -1
  150. package/src/helpers/logger.js +1 -1
  151. package/src/helpers/metadata.js +1 -1
  152. package/src/helpers/patchHelper.js +1 -1
  153. package/src/helpers/patchHelpers.js +1 -1
  154. package/src/helpers/percy/Percy.js +1 -1
  155. package/src/helpers/percy/PercyBinary.js +1 -1
  156. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  157. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  158. package/src/helpers/percy/PercySDK.js +1 -1
  159. package/src/helpers/percy/index.js +1 -1
  160. package/src/helpers/percy/utils.js +1 -1
  161. package/src/helpers/performance/constants.js +1 -1
  162. package/src/helpers/performance/performance-tester.js +1 -1
  163. package/src/helpers/playwright-helper.js +1 -1
  164. package/src/helpers/processHelper.js +1 -1
  165. package/src/helpers/request-spy.js +1 -1
  166. package/src/helpers/setKeepAlive.js +1 -1
  167. package/src/helpers/test-observability/constants.js +1 -1
  168. package/src/helpers/test-observability/error-handler.js +1 -1
  169. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  170. package/src/helpers/test-observability/sessionHandler.js +1 -1
  171. package/src/helpers/test-observability/utils.js +1 -1
  172. package/src/helpers/test-orchestration/constants.js +1 -1
  173. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  174. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  175. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  176. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  177. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  178. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  179. package/src/helpers/testhub/constants.js +1 -1
  180. package/src/helpers/testhub/testhubHandler.js +1 -1
  181. package/src/helpers/testhub/utils.js +1 -1
  182. package/src/helpers/timeoutPromise.js +1 -1
  183. package/src/helpers/utilities.js +1 -1
  184. package/src/helpers/w3cMapping.js +1 -1
  185. package/src/hubAllocationMethods.js +1 -1
  186. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a109_0x5c61d7=a109_0xce56;(function(_0x1847c9,_0x2f9093){const _0x2491f3=a109_0xce56,_0x21382e=_0x1847c9();while(!![]){try{const _0xbb9ee1=-parseInt(_0x2491f3(0x160))/0x1*(-parseInt(_0x2491f3(0x177))/0x2)+-parseInt(_0x2491f3(0x141))/0x3+parseInt(_0x2491f3(0x15c))/0x4*(-parseInt(_0x2491f3(0x17a))/0x5)+parseInt(_0x2491f3(0x13f))/0x6+-parseInt(_0x2491f3(0x173))/0x7*(-parseInt(_0x2491f3(0x166))/0x8)+-parseInt(_0x2491f3(0x188))/0x9+parseInt(_0x2491f3(0x170))/0xa;if(_0xbb9ee1===_0x2f9093)break;else _0x21382e['push'](_0x21382e['shift']());}catch(_0x592dd7){_0x21382e['push'](_0x21382e['shift']());}}}(a109_0x5af2,0x893c4));const winston=require(a109_0x5c61d7(0x149)),path=require(a109_0x5c61d7(0x17f)),fs=require('fs'),{LOG_FILE_NAME,DEBUG_LOG_FILE_NAME}=require('../bin/utils/constants'),tempLogDir=a109_0x5c61d7(0x153),logFormat=winston[a109_0x5c61d7(0x186)](_0x2c3960=>{const _0x59ce31=a109_0x5c61d7,_0x77b313={};_0x77b313[_0x59ce31(0x164)]=function(_0x386deb,_0x26f69f){return _0x386deb!==_0x26f69f;},_0x77b313[_0x59ce31(0x16a)]=_0x59ce31(0x189),_0x77b313[_0x59ce31(0x14e)]=function(_0x417f2c,_0x245e4d){return _0x417f2c===_0x245e4d;},_0x77b313[_0x59ce31(0x18b)]=_0x59ce31(0x151);const _0x329d37=_0x77b313;return _0x329d37[_0x59ce31(0x164)](typeof _0x2c3960[_0x59ce31(0x179)],_0x329d37[_0x59ce31(0x16a)])&&(_0x2c3960[_0x59ce31(0x179)]=JSON[_0x59ce31(0x180)](_0x2c3960[_0x59ce31(0x179)])),global[_0x59ce31(0x17b)]?.[_0x59ce31(0x167)]?.['userName']&&_0x329d37[_0x59ce31(0x14e)](typeof _0x2c3960[_0x59ce31(0x179)],_0x329d37[_0x59ce31(0x16a)])&&(_0x2c3960[_0x59ce31(0x179)]=_0x2c3960['message'][_0x59ce31(0x171)](new RegExp(global[_0x59ce31(0x17b)]['config']['userName'],'g'),_0x329d37[_0x59ce31(0x18b)])),global[_0x59ce31(0x17b)]?.['config']?.[_0x59ce31(0x16d)]&&_0x329d37['JgvdZ'](typeof _0x2c3960[_0x59ce31(0x179)],_0x329d37[_0x59ce31(0x16a)])&&(_0x2c3960[_0x59ce31(0x179)]=_0x2c3960[_0x59ce31(0x179)]['replace'](new RegExp(global['session']['config'][_0x59ce31(0x16d)],'g'),_0x329d37[_0x59ce31(0x18b)])),_0x2c3960;}),fetchLogDir=()=>{const _0x45c7ae=a109_0x5c61d7;if(process[_0x45c7ae(0x147)][_0x45c7ae(0x15e)])return process[_0x45c7ae(0x147)][_0x45c7ae(0x15e)];else!fs[_0x45c7ae(0x15f)](tempLogDir)&&fs[_0x45c7ae(0x17c)](tempLogDir);return tempLogDir;},logDir=fetchLogDir(),getInitialLogLevel=()=>{const _0x1d925d=a109_0x5c61d7,_0x2f8aea={};_0x2f8aea[_0x1d925d(0x161)]=_0x1d925d(0x15d);const _0x3c7f99=_0x2f8aea,_0x387040=process[_0x1d925d(0x147)][_0x1d925d(0x14a)],_0x35570f=Object[_0x1d925d(0x14c)](winston[_0x1d925d(0x167)][_0x1d925d(0x174)]['levels']);if(_0x387040&&_0x35570f['includes'](_0x387040[_0x1d925d(0x13e)]()))return _0x387040['toLowerCase']();return _0x3c7f99['ytQrs'];},initialLogLevel=getInitialLogLevel(),a109_0x332822={};a109_0x332822['name']=a109_0x5c61d7(0x17d),a109_0x332822['level']=initialLogLevel;const transports={'loggerConsole':new winston[(a109_0x5c61d7(0x15a))]['Console'](a109_0x332822),'loggerFile':new winston[(a109_0x5c61d7(0x15a))][(a109_0x5c61d7(0x172))]({'filename':path['join'](logDir,'/usage.log'),'level':initialLogLevel}),'debugLoggerFile':new winston[(a109_0x5c61d7(0x15a))][(a109_0x5c61d7(0x172))]({'filename':path[a109_0x5c61d7(0x155)](logDir,a109_0x5c61d7(0x18a)),'level':'silly'}),'debugCliLoggerFile':new winston[(a109_0x5c61d7(0x15a))][(a109_0x5c61d7(0x172))]({'filename':path[a109_0x5c61d7(0x155)](logDir,a109_0x5c61d7(0x14d)),'level':a109_0x5c61d7(0x162)}),'buildLinkTransport':new winston[(a109_0x5c61d7(0x15a))][(a109_0x5c61d7(0x172))]({'filename':path[a109_0x5c61d7(0x155)](logDir,a109_0x5c61d7(0x158)),'level':a109_0x5c61d7(0x162)})},automationTransports={};process[a109_0x5c61d7(0x147)][a109_0x5c61d7(0x157)]===a109_0x5c61d7(0x187)&&(automationTransports[a109_0x5c61d7(0x159)]=new winston['transports'][(a109_0x5c61d7(0x172))]({'filename':path[a109_0x5c61d7(0x155)](logDir,a109_0x5c61d7(0x169)),'level':a109_0x5c61d7(0x162)}));transports['loggerConsole']['on'](a109_0x5c61d7(0x154),_0x2fb19a=>{const _0x4d33a5=a109_0x5c61d7,_0x11dc0c={};_0x11dc0c['dJXpf']=function(_0x419339,_0x33541e){return _0x419339===_0x33541e;},_0x11dc0c[_0x4d33a5(0x143)]=_0x4d33a5(0x16c),_0x11dc0c[_0x4d33a5(0x181)]=_0x4d33a5(0x18c);const _0x59de9a=_0x11dc0c;if(_0x59de9a[_0x4d33a5(0x142)](_0x2fb19a[_0x4d33a5(0x185)],_0x59de9a[_0x4d33a5(0x143)])){console[_0x4d33a5(0x153)](_0x59de9a[_0x4d33a5(0x181)],_0x2fb19a[_0x4d33a5(0x179)]);return;}throw _0x2fb19a;});const a109_0x443a38={};a109_0x443a38[a109_0x5c61d7(0x186)]=a109_0x5c61d7(0x140);const a109_0x321797={};a109_0x321797[a109_0x5c61d7(0x163)]=!![];const winstonLoggerParams={'format':winston[a109_0x5c61d7(0x186)][a109_0x5c61d7(0x15b)](winston['format'][a109_0x5c61d7(0x16f)](a109_0x443a38),winston[a109_0x5c61d7(0x186)]['colorize'](a109_0x321797),winston[a109_0x5c61d7(0x186)][a109_0x5c61d7(0x16e)](_0x511d51=>_0x511d51[a109_0x5c61d7(0x16f)]+a109_0x5c61d7(0x183)+_0x511d51[a109_0x5c61d7(0x163)]+':\x20'+_0x511d51[a109_0x5c61d7(0x179)])),'transports':[transports[a109_0x5c61d7(0x16b)]]},a109_0x5436f6={};function a109_0xce56(_0x990796,_0x1c1ad7){const _0x5af2c4=a109_0x5af2();return a109_0xce56=function(_0xce56c8,_0x1d2fe8){_0xce56c8=_0xce56c8-0x13e;let _0x4f7cf7=_0x5af2c4[_0xce56c8];return _0x4f7cf7;},a109_0xce56(_0x990796,_0x1c1ad7);}a109_0x5436f6['format']='YYYY-MM-DD\x20HH:mm:ss';const a109_0x562db3={};a109_0x562db3['level']=!![];const winstonFileLoggerParams={'format':winston['format'][a109_0x5c61d7(0x15b)](winston[a109_0x5c61d7(0x186)][a109_0x5c61d7(0x16f)](a109_0x5436f6),winston['format'][a109_0x5c61d7(0x152)](a109_0x562db3),winston[a109_0x5c61d7(0x186)][a109_0x5c61d7(0x16e)](_0x25fb78=>_0x25fb78['level']+':\x20'+_0x25fb78['message'])),'transports':[]},a109_0x1ccb75={};a109_0x1ccb75[a109_0x5c61d7(0x186)]=a109_0x5c61d7(0x140);const a109_0x47b85a={};a109_0x47b85a[a109_0x5c61d7(0x163)]=!![];const a109_0xf29988={};a109_0xf29988['level']=a109_0x5c61d7(0x162);const BuildLoggerParams={'format':winston['format'][a109_0x5c61d7(0x15b)](winston[a109_0x5c61d7(0x186)][a109_0x5c61d7(0x16f)](a109_0x1ccb75),winston['format'][a109_0x5c61d7(0x152)](a109_0x47b85a),winston[a109_0x5c61d7(0x186)]['printf'](_0xe4f8a3=>_0xe4f8a3[a109_0x5c61d7(0x16f)]+'\x20-\x20'+_0xe4f8a3[a109_0x5c61d7(0x163)]+':\x20'+_0xe4f8a3[a109_0x5c61d7(0x179)])),'transports':[transports[a109_0x5c61d7(0x175)],new winston[(a109_0x5c61d7(0x15a))]['Console'](a109_0xf29988)]},a109_0x3234a9={};a109_0x3234a9[a109_0x5c61d7(0x14f)]=()=>{},a109_0x3234a9[a109_0x5c61d7(0x15d)]=()=>{},a109_0x3234a9[a109_0x5c61d7(0x145)]=()=>{},a109_0x3234a9[a109_0x5c61d7(0x154)]=()=>{},a109_0x3234a9[a109_0x5c61d7(0x144)]=()=>{},a109_0x3234a9[a109_0x5c61d7(0x162)]=()=>{},exports[a109_0x5c61d7(0x165)]=process[a109_0x5c61d7(0x147)]['BROWSERSTACK_AUTOMATION_LOGS']===a109_0x5c61d7(0x187)?winston[a109_0x5c61d7(0x184)]({'format':winston['format'][a109_0x5c61d7(0x15b)](winston['format']['uncolorize'](),winston[a109_0x5c61d7(0x186)]['timestamp'](),logFormat(),winston[a109_0x5c61d7(0x186)][a109_0x5c61d7(0x16e)](_0x2b8132=>_0x2b8132[a109_0x5c61d7(0x163)]+':\x20'+_0x2b8132[a109_0x5c61d7(0x179)])),'transports':[automationTransports[a109_0x5c61d7(0x159)]]}):a109_0x3234a9;const initialize=()=>{const _0x587b77=a109_0x5c61d7,_0x10f5a6={};_0x10f5a6[_0x587b77(0x146)]='silly';const _0x5778ab=_0x10f5a6,_0x656950=transports['loggerConsole'][_0x587b77(0x163)]||initialLogLevel;transports[_0x587b77(0x148)]=new winston[(_0x587b77(0x15a))]['File']({'filename':path[_0x587b77(0x155)](exports[_0x587b77(0x176)],LOG_FILE_NAME),'level':_0x656950}),transports[_0x587b77(0x178)]=new winston[(_0x587b77(0x15a))][(_0x587b77(0x172))]({'filename':path[_0x587b77(0x155)](exports[_0x587b77(0x176)],DEBUG_LOG_FILE_NAME),'level':_0x5778ab['BIgAL']}),exports[_0x587b77(0x182)]['add'](transports[_0x587b77(0x148)]),exports[_0x587b77(0x182)]['add'](transports[_0x587b77(0x178)]),exports[_0x587b77(0x168)][_0x587b77(0x156)](transports['loggerFile']),exports['fileLogger'][_0x587b77(0x156)](transports[_0x587b77(0x178)]);};function a109_0x5af2(){const _0x494a94=['fileLogger','automation.log','mUOOh','loggerConsole','EPIPE','accessKey','printf','timestamp','17343650YSOFce','replace','File','1127VPoHqc','npm','buildLinkTransport','logDir','245118NweNEh','debugLoggerFile','message','242020KpUOwL','session','mkdirSync','console.info','getLogDir','path','stringify','twMWd','winstonLogger','\x20-\x20','createLogger','code','format','true','5625882rMyRZo','string','/usage-debug.log','DEGxL','EPIPE\x20error\x20occurred\x20in\x20loggerConsole:','toLowerCase','693132itpySM','YYYY-MM-DD\x20HH:mm:ss','3370176jCwWAY','dJXpf','tFHjt','debug','warn','BIgAL','env','loggerFile','winston','BROWSERSTACK_LOG_LEVEL','buildLogger','keys','/sdk-cli-debug.log','JgvdZ','http','initialize','[REDACTED]','colorize','log','error','join','add','BROWSERSTACK_AUTOMATION_LOGS','/usage.log','automationLoggerFile','transports','combine','64pOAgMW','info','BROWSERSTACK_INTERNAL_LOG_DIR','existsSync','4TqkzRk','ytQrs','silly','level','QXCJF','automationLogger','37016AjexoA','config'];a109_0x5af2=function(){return _0x494a94;};return a109_0x5af2();}exports['winstonLogger']=new winston[(a109_0x5c61d7(0x184))](winstonLoggerParams),exports[a109_0x5c61d7(0x168)]=new winston[(a109_0x5c61d7(0x184))](winstonFileLoggerParams),exports[a109_0x5c61d7(0x14b)]=new winston[(a109_0x5c61d7(0x184))](BuildLoggerParams),exports['logDir']=logDir,exports[a109_0x5c61d7(0x17e)]=()=>{return exports['logDir'];},exports[a109_0x5c61d7(0x15a)]=transports,exports[a109_0x5c61d7(0x150)]=initialize;logDir&&initialize();
1
+ const a109_0x568851=a109_0x98a8;(function(_0xfd31fb,_0x2166b0){const _0x321b05=a109_0x98a8,_0x36ee18=_0xfd31fb();while(!![]){try{const _0xce59af=-parseInt(_0x321b05(0x212))/0x1+-parseInt(_0x321b05(0x206))/0x2*(-parseInt(_0x321b05(0x202))/0x3)+parseInt(_0x321b05(0x1e9))/0x4+parseInt(_0x321b05(0x1f9))/0x5+-parseInt(_0x321b05(0x21b))/0x6*(-parseInt(_0x321b05(0x21d))/0x7)+-parseInt(_0x321b05(0x1ef))/0x8*(-parseInt(_0x321b05(0x220))/0x9)+-parseInt(_0x321b05(0x1ea))/0xa;if(_0xce59af===_0x2166b0)break;else _0x36ee18['push'](_0x36ee18['shift']());}catch(_0x3f9077){_0x36ee18['push'](_0x36ee18['shift']());}}}(a109_0x1572,0x7c9ba));const winston=require(a109_0x568851(0x219)),path=require(a109_0x568851(0x226)),fs=require('fs'),{LOG_FILE_NAME,DEBUG_LOG_FILE_NAME}=require(a109_0x568851(0x1f5)),tempLogDir=a109_0x568851(0x221),logFormat=winston[a109_0x568851(0x22e)](_0x4250d3=>{const _0x25a712=a109_0x568851,_0x2de21e={};_0x2de21e[_0x25a712(0x1f3)]=function(_0x2cfa87,_0x5a96eb){return _0x2cfa87!==_0x5a96eb;},_0x2de21e[_0x25a712(0x20f)]='string',_0x2de21e[_0x25a712(0x216)]=function(_0x16a11f,_0x498c0d){return _0x16a11f===_0x498c0d;},_0x2de21e[_0x25a712(0x1f4)]=_0x25a712(0x205);const _0x29fa72=_0x2de21e;return _0x29fa72['WXwSg'](typeof _0x4250d3[_0x25a712(0x208)],_0x29fa72[_0x25a712(0x20f)])&&(_0x4250d3[_0x25a712(0x208)]=JSON[_0x25a712(0x20d)](_0x4250d3[_0x25a712(0x208)])),global[_0x25a712(0x1e6)]?.['config']?.[_0x25a712(0x1f0)]&&_0x29fa72[_0x25a712(0x216)](typeof _0x4250d3['message'],_0x29fa72['TjZfg'])&&(_0x4250d3[_0x25a712(0x208)]=_0x4250d3[_0x25a712(0x208)][_0x25a712(0x20e)](new RegExp(global[_0x25a712(0x1e6)][_0x25a712(0x1f6)]['userName'],'g'),_0x29fa72[_0x25a712(0x1f4)])),global[_0x25a712(0x1e6)]?.[_0x25a712(0x1f6)]?.[_0x25a712(0x1fb)]&&_0x29fa72[_0x25a712(0x216)](typeof _0x4250d3['message'],_0x29fa72[_0x25a712(0x20f)])&&(_0x4250d3[_0x25a712(0x208)]=_0x4250d3[_0x25a712(0x208)][_0x25a712(0x20e)](new RegExp(global[_0x25a712(0x1e6)][_0x25a712(0x1f6)]['accessKey'],'g'),_0x29fa72[_0x25a712(0x1f4)])),_0x4250d3;}),fetchLogDir=()=>{const _0x5405a4=a109_0x568851;if(process[_0x5405a4(0x1ee)][_0x5405a4(0x230)])return process[_0x5405a4(0x1ee)][_0x5405a4(0x230)];else!fs[_0x5405a4(0x1e5)](tempLogDir)&&fs[_0x5405a4(0x22c)](tempLogDir);return tempLogDir;},logDir=fetchLogDir(),getInitialLogLevel=()=>{const _0x3115f1=a109_0x568851,_0x3ae35e={};_0x3ae35e[_0x3115f1(0x1e8)]=_0x3115f1(0x22d);const _0x4d53d0=_0x3ae35e,_0x31905e=process[_0x3115f1(0x1ee)][_0x3115f1(0x227)],_0x1a0c7e=Object[_0x3115f1(0x201)](winston[_0x3115f1(0x1f6)]['npm'][_0x3115f1(0x223)]);if(_0x31905e&&_0x1a0c7e[_0x3115f1(0x203)](_0x31905e[_0x3115f1(0x22a)]()))return _0x31905e[_0x3115f1(0x22a)]();return _0x4d53d0[_0x3115f1(0x1e8)];},initialLogLevel=getInitialLogLevel(),a109_0x55799f={};a109_0x55799f[a109_0x568851(0x214)]='console.info',a109_0x55799f[a109_0x568851(0x21c)]=initialLogLevel;const transports={'loggerConsole':new winston[(a109_0x568851(0x1fc))][(a109_0x568851(0x1fd))](a109_0x55799f),'loggerFile':new winston[(a109_0x568851(0x1fc))]['File']({'filename':path['join'](logDir,'/usage.log'),'level':initialLogLevel}),'debugLoggerFile':new winston[(a109_0x568851(0x1fc))]['File']({'filename':path[a109_0x568851(0x209)](logDir,a109_0x568851(0x21a)),'level':a109_0x568851(0x1f8)}),'debugCliLoggerFile':new winston[(a109_0x568851(0x1fc))]['File']({'filename':path['join'](logDir,a109_0x568851(0x20a)),'level':'silly'}),'buildLinkTransport':new winston[(a109_0x568851(0x1fc))][(a109_0x568851(0x20b))]({'filename':path['join'](logDir,a109_0x568851(0x213)),'level':'silly'})},automationTransports={};process[a109_0x568851(0x1ee)]['BROWSERSTACK_AUTOMATION_LOGS']===a109_0x568851(0x210)&&(automationTransports[a109_0x568851(0x207)]=new winston['transports'][(a109_0x568851(0x20b))]({'filename':path[a109_0x568851(0x209)](logDir,a109_0x568851(0x225)),'level':a109_0x568851(0x1f8)}));function a109_0x98a8(_0x17ca2e,_0x5b3a56){const _0x1572ee=a109_0x1572();return a109_0x98a8=function(_0x98a8eb,_0x56aa33){_0x98a8eb=_0x98a8eb-0x1e5;let _0x369993=_0x1572ee[_0x98a8eb];return _0x369993;},a109_0x98a8(_0x17ca2e,_0x5b3a56);}transports[a109_0x568851(0x1f2)]['on'](a109_0x568851(0x1ff),_0x3a966f=>{const _0x10f51f=a109_0x568851,_0x96007f={};_0x96007f[_0x10f51f(0x1e7)]=function(_0x4e657c,_0x128a44){return _0x4e657c===_0x128a44;},_0x96007f[_0x10f51f(0x22b)]=_0x10f51f(0x224),_0x96007f[_0x10f51f(0x1ec)]=_0x10f51f(0x1f7);const _0x3fe848=_0x96007f;if(_0x3fe848['BVZlB'](_0x3a966f[_0x10f51f(0x222)],_0x3fe848['qClVo'])){console['log'](_0x3fe848['cQdAb'],_0x3a966f[_0x10f51f(0x208)]);return;}throw _0x3a966f;});const a109_0x1372bf={};a109_0x1372bf[a109_0x568851(0x22e)]=a109_0x568851(0x1eb);const a109_0x4cda49={};a109_0x4cda49[a109_0x568851(0x21c)]=!![];const winstonLoggerParams={'format':winston[a109_0x568851(0x22e)]['combine'](winston[a109_0x568851(0x22e)][a109_0x568851(0x204)](a109_0x1372bf),winston['format']['colorize'](a109_0x4cda49),winston['format'][a109_0x568851(0x1fe)](_0xc9b649=>_0xc9b649[a109_0x568851(0x204)]+'\x20-\x20'+_0xc9b649[a109_0x568851(0x21c)]+':\x20'+_0xc9b649[a109_0x568851(0x208)])),'transports':[transports[a109_0x568851(0x1f2)]]},a109_0x12e899={};a109_0x12e899[a109_0x568851(0x22e)]=a109_0x568851(0x1eb);const a109_0x788e43={};function a109_0x1572(){const _0x4beae9=['flIfq','../bin/utils/constants','config','EPIPE\x20error\x20occurred\x20in\x20loggerConsole:','silly','423420HVUwzn','uncolorize','accessKey','transports','Console','printf','error','combine','keys','3mYAKwh','includes','timestamp','[REDACTED]','1297262ifsbTT','automationLoggerFile','message','join','/sdk-cli-debug.log','File','initialize','stringify','replace','TjZfg','true','BROWSERSTACK_AUTOMATION_LOGS','620042CgWeeL','/usage.log','name','loggerFile','GVNBW','automationLogger','fileLogger','winston','/usage-debug.log','133176IRCIXG','level','203cCJVZR','debugLoggerFile','\x20-\x20','3231PZOPyU','log','code','levels','EPIPE','automation.log','path','BROWSERSTACK_LOG_LEVEL','createLogger','add','toLowerCase','qClVo','mkdirSync','info','format','buildLinkTransport','BROWSERSTACK_INTERNAL_LOG_DIR','existsSync','session','BVZlB','ssjiN','2860680HeVaCb','16003940CKBIeo','YYYY-MM-DD\x20HH:mm:ss','cQdAb','winstonLogger','env','14232kJKcPh','userName','logDir','loggerConsole','WXwSg'];a109_0x1572=function(){return _0x4beae9;};return a109_0x1572();}a109_0x788e43[a109_0x568851(0x21c)]=!![];const winstonFileLoggerParams={'format':winston[a109_0x568851(0x22e)]['combine'](winston[a109_0x568851(0x22e)]['timestamp'](a109_0x12e899),winston[a109_0x568851(0x22e)]['colorize'](a109_0x788e43),winston['format'][a109_0x568851(0x1fe)](_0x25b478=>_0x25b478[a109_0x568851(0x21c)]+':\x20'+_0x25b478[a109_0x568851(0x208)])),'transports':[]},a109_0x327aa0={};a109_0x327aa0[a109_0x568851(0x22e)]=a109_0x568851(0x1eb);const a109_0x37542b={};a109_0x37542b['level']=!![];const a109_0xe40e17={};a109_0xe40e17[a109_0x568851(0x21c)]='silly';const BuildLoggerParams={'format':winston[a109_0x568851(0x22e)]['combine'](winston[a109_0x568851(0x22e)][a109_0x568851(0x204)](a109_0x327aa0),winston[a109_0x568851(0x22e)]['colorize'](a109_0x37542b),winston['format'][a109_0x568851(0x1fe)](_0x4776c5=>_0x4776c5[a109_0x568851(0x204)]+a109_0x568851(0x21f)+_0x4776c5['level']+':\x20'+_0x4776c5['message'])),'transports':[transports[a109_0x568851(0x22f)],new winston[(a109_0x568851(0x1fc))][(a109_0x568851(0x1fd))](a109_0xe40e17)]},a109_0x19a26d={};a109_0x19a26d['http']=()=>{},a109_0x19a26d['info']=()=>{},a109_0x19a26d['warn']=()=>{},a109_0x19a26d[a109_0x568851(0x1ff)]=()=>{},a109_0x19a26d['debug']=()=>{},a109_0x19a26d[a109_0x568851(0x1f8)]=()=>{},exports[a109_0x568851(0x217)]=process[a109_0x568851(0x1ee)][a109_0x568851(0x211)]===a109_0x568851(0x210)?winston['createLogger']({'format':winston['format'][a109_0x568851(0x200)](winston['format'][a109_0x568851(0x1fa)](),winston[a109_0x568851(0x22e)][a109_0x568851(0x204)](),logFormat(),winston['format'][a109_0x568851(0x1fe)](_0x1458be=>_0x1458be['level']+':\x20'+_0x1458be[a109_0x568851(0x208)])),'transports':[automationTransports[a109_0x568851(0x207)]]}):a109_0x19a26d;const initialize=()=>{const _0x3f1eac=a109_0x568851,_0x38ab47={};_0x38ab47['IVXdd']=_0x3f1eac(0x1f8);const _0x18f888=_0x38ab47,_0x4f0950=transports[_0x3f1eac(0x1f2)]['level']||initialLogLevel;transports[_0x3f1eac(0x215)]=new winston[(_0x3f1eac(0x1fc))]['File']({'filename':path[_0x3f1eac(0x209)](exports['logDir'],LOG_FILE_NAME),'level':_0x4f0950}),transports[_0x3f1eac(0x21e)]=new winston[(_0x3f1eac(0x1fc))]['File']({'filename':path['join'](exports[_0x3f1eac(0x1f1)],DEBUG_LOG_FILE_NAME),'level':_0x18f888['IVXdd']}),exports[_0x3f1eac(0x1ed)]['add'](transports[_0x3f1eac(0x215)]),exports['winstonLogger']['add'](transports[_0x3f1eac(0x21e)]),exports[_0x3f1eac(0x218)][_0x3f1eac(0x229)](transports[_0x3f1eac(0x215)]),exports[_0x3f1eac(0x218)][_0x3f1eac(0x229)](transports[_0x3f1eac(0x21e)]);};exports[a109_0x568851(0x1ed)]=new winston[(a109_0x568851(0x228))](winstonLoggerParams),exports[a109_0x568851(0x218)]=new winston['createLogger'](winstonFileLoggerParams),exports['buildLogger']=new winston[(a109_0x568851(0x228))](BuildLoggerParams),exports[a109_0x568851(0x1f1)]=logDir,exports['getLogDir']=()=>{const _0x33284a=a109_0x568851;return exports[_0x33284a(0x1f1)];},exports[a109_0x568851(0x1fc)]=transports,exports[a109_0x568851(0x20c)]=initialize;logDir&&initialize();
@@ -1 +1 @@
1
- const a110_0x350251=a110_0xb464;function a110_0x25f0(){const _0x435696=['6zmZiWA','yFZZt','./globals','testRunUUID','length','testMeta','VMLWI','set','testMeta-','691960MKbIWK','lruyc','The\x20metadata\x20object\x20is\x20not\x20valid.','81JBEIBH','570905fSydMh','setGlobal','aTyBI','./logger','2679390nysaAm','identifier','12CVrhif','xajVy','4525175arsNwf','OctkU','warn','lcnc','JsPpe','10983728SropnH','3104244YUirPV','getCentralUser','1495797BDRBlX'];a110_0x25f0=function(){return _0x435696;};return a110_0x25f0();}(function(_0x113843,_0x3169ec){const _0x5738d2=a110_0xb464,_0x6fa253=_0x113843();while(!![]){try{const _0x2e5e5d=parseInt(_0x5738d2(0x18d))/0x1+-parseInt(_0x5738d2(0x19b))/0x2+-parseInt(_0x5738d2(0x19d))/0x3*(parseInt(_0x5738d2(0x193))/0x4)+parseInt(_0x5738d2(0x195))/0x5*(parseInt(_0x5738d2(0x19e))/0x6)+parseInt(_0x5738d2(0x191))/0x7+parseInt(_0x5738d2(0x19a))/0x8+-parseInt(_0x5738d2(0x1aa))/0x9*(-parseInt(_0x5738d2(0x1a7))/0xa);if(_0x2e5e5d===_0x3169ec)break;else _0x6fa253['push'](_0x6fa253['shift']());}catch(_0xce1bfb){_0x6fa253['push'](_0x6fa253['shift']());}}}(a110_0x25f0,0xc4e79));function a110_0xb464(_0x3aba8b,_0x2f1e3a){const _0x25f07a=a110_0x25f0();return a110_0xb464=function(_0xb464b2,_0x527865){_0xb464b2=_0xb464b2-0x18d;let _0x25f0ca=_0x25f07a[_0xb464b2];return _0x25f0ca;},a110_0xb464(_0x3aba8b,_0x2f1e3a);}const globals=require(a110_0x350251(0x1a0)),helper=require('./helper'),logger=require(a110_0x350251(0x190))['winstonLogger'];module['exports']=class TestMetadata{static[a110_0x350251(0x1a5)](_0x5cbaa6={}){const _0x5cdab1=a110_0x350251,_0x3d2bd8={};_0x3d2bd8[_0x5cdab1(0x199)]=_0x5cdab1(0x1a1),_0x3d2bd8['OctkU']=function(_0x4cc61e,_0x25f59b){return _0x4cc61e===_0x25f59b;},_0x3d2bd8[_0x5cdab1(0x18f)]='string',_0x3d2bd8[_0x5cdab1(0x1a8)]=function(_0x20e690,_0x309eea){return _0x20e690<=_0x309eea;},_0x3d2bd8[_0x5cdab1(0x194)]=_0x5cdab1(0x1a3),_0x3d2bd8['VMLWI']=_0x5cdab1(0x1a9);const _0x101a08=_0x3d2bd8,_0xd65a90=globals['getGlobal'](_0x101a08['JsPpe']),_0x21adf0=_0x5cbaa6[_0x5cdab1(0x192)];helper[_0x5cdab1(0x19c)]()[_0x5cdab1(0x198)]&&(_0x101a08[_0x5cdab1(0x196)](typeof _0x21adf0,_0x101a08['aTyBI'])&&_0x101a08[_0x5cdab1(0x1a8)](_0x21adf0[_0x5cdab1(0x1a2)],0x28)?_0xd65a90?globals['setGlobal'](_0x5cdab1(0x1a6)+_0xd65a90,_0x5cbaa6):globals[_0x5cdab1(0x18e)](_0x101a08[_0x5cdab1(0x194)],_0x5cbaa6):logger[_0x5cdab1(0x197)](_0x101a08[_0x5cdab1(0x1a4)]));}static['get'](_0x1bbf64){const _0xc1d276=a110_0x350251,_0xa2fd8f={};_0xa2fd8f['yFZZt']=_0xc1d276(0x1a3);const _0x1a0c00=_0xa2fd8f;if(helper[_0xc1d276(0x19c)]()[_0xc1d276(0x198)])return globals['getGlobal']('testMeta-'+_0x1bbf64)||globals['getGlobal'](_0x1a0c00[_0xc1d276(0x19f)])||{};return{};}};
1
+ function a110_0x5224(_0x2e5761,_0x27f105){const _0x1983d1=a110_0x1983();return a110_0x5224=function(_0x52246a,_0x56fb92){_0x52246a=_0x52246a-0x91;let _0x5ba26a=_0x1983d1[_0x52246a];return _0x5ba26a;},a110_0x5224(_0x2e5761,_0x27f105);}function a110_0x1983(){const _0x1d6f90=['3720738GOtkJw','100zQnIBb','243436xiEsKR','11nkExET','./globals','getCentralUser','YvnPf','QZYtS','gNItx','uBUqE','winstonLogger','getGlobal','testMeta-','testMeta','222660RaPluP','set','The\x20metadata\x20object\x20is\x20not\x20valid.','704394GxJZQQ','length','ndUNB','string','testRunUUID','11845120KaOCrh','27ZTRSrf','3271020aZzfzv','exports','./logger','lcnc','pfkZW','10069003zZFKFA','BJpLr','setGlobal','warn'];a110_0x1983=function(){return _0x1d6f90;};return a110_0x1983();}const a110_0x44380f=a110_0x5224;(function(_0x2a88e6,_0x56c99a){const _0x5905d6=a110_0x5224,_0x2cf19a=_0x2a88e6();while(!![]){try{const _0x49c641=parseInt(_0x5905d6(0xa8))/0x1*(-parseInt(_0x5905d6(0xa7))/0x2)+-parseInt(_0x5905d6(0x95))/0x3+-parseInt(_0x5905d6(0xa6))/0x4*(-parseInt(_0x5905d6(0x92))/0x5)+-parseInt(_0x5905d6(0xa5))/0x6+parseInt(_0x5905d6(0xa1))/0x7+parseInt(_0x5905d6(0x9a))/0x8+-parseInt(_0x5905d6(0x9b))/0x9*(parseInt(_0x5905d6(0x9c))/0xa);if(_0x49c641===_0x56c99a)break;else _0x2cf19a['push'](_0x2cf19a['shift']());}catch(_0x155da2){_0x2cf19a['push'](_0x2cf19a['shift']());}}}(a110_0x1983,0xd149c));const globals=require(a110_0x44380f(0xa9)),helper=require('./helper'),logger=require(a110_0x44380f(0x9e))[a110_0x44380f(0xaf)];module[a110_0x44380f(0x9d)]=class TestMetadata{static[a110_0x44380f(0x93)](_0x48d3e2={}){const _0x1862aa=a110_0x44380f,_0x20df24={};_0x20df24[_0x1862aa(0xab)]=_0x1862aa(0x99),_0x20df24[_0x1862aa(0xac)]=function(_0x306f74,_0x862b85){return _0x306f74===_0x862b85;},_0x20df24[_0x1862aa(0xae)]=_0x1862aa(0x98),_0x20df24['ndUNB']=function(_0x2a34fd,_0x17b8a1){return _0x2a34fd<=_0x17b8a1;},_0x20df24['gNItx']=_0x1862aa(0x91),_0x20df24['BJpLr']=_0x1862aa(0x94);const _0x4820a2=_0x20df24,_0x4012e3=globals[_0x1862aa(0xb0)](_0x4820a2['YvnPf']),_0x3681b5=_0x48d3e2['identifier'];helper[_0x1862aa(0xaa)]()[_0x1862aa(0x9f)]&&(_0x4820a2['QZYtS'](typeof _0x3681b5,_0x4820a2['uBUqE'])&&_0x4820a2[_0x1862aa(0x97)](_0x3681b5[_0x1862aa(0x96)],0x28)?_0x4012e3?globals[_0x1862aa(0xa3)](_0x1862aa(0xb1)+_0x4012e3,_0x48d3e2):globals[_0x1862aa(0xa3)](_0x4820a2[_0x1862aa(0xad)],_0x48d3e2):logger[_0x1862aa(0xa4)](_0x4820a2[_0x1862aa(0xa2)]));}static['get'](_0x302cfc){const _0x4f8ee7=a110_0x44380f,_0x54b34e={};_0x54b34e['pfkZW']=_0x4f8ee7(0x91);const _0x5ecf9d=_0x54b34e;if(helper['getCentralUser']()['lcnc'])return globals[_0x4f8ee7(0xb0)](_0x4f8ee7(0xb1)+_0x302cfc)||globals[_0x4f8ee7(0xb0)](_0x5ecf9d[_0x4f8ee7(0xa0)])||{};return{};}};
@@ -1 +1 @@
1
- const a111_0x4e6133=a111_0x1edf;(function(_0x95dd6a,_0x4d7ec0){const _0x30f2aa=a111_0x1edf,_0x4b1d15=_0x95dd6a();while(!![]){try{const _0xba6d99=parseInt(_0x30f2aa(0x16b))/0x1+-parseInt(_0x30f2aa(0x156))/0x2*(-parseInt(_0x30f2aa(0x167))/0x3)+parseInt(_0x30f2aa(0x142))/0x4+-parseInt(_0x30f2aa(0x198))/0x5+parseInt(_0x30f2aa(0x139))/0x6*(parseInt(_0x30f2aa(0x18f))/0x7)+parseInt(_0x30f2aa(0x15a))/0x8+parseInt(_0x30f2aa(0x185))/0x9*(-parseInt(_0x30f2aa(0x15e))/0xa);if(_0xba6d99===_0x4d7ec0)break;else _0x4b1d15['push'](_0x4b1d15['shift']());}catch(_0x107373){_0x4b1d15['push'](_0x4b1d15['shift']());}}}(a111_0x2311,0x3aa11));const {aiSdkWrapper}=require(a111_0x4e6133(0x194)),{commandRepository}=require(a111_0x4e6133(0x176)),PerformanceTester=require(a111_0x4e6133(0x14e)),globals=require(a111_0x4e6133(0x169)),{winstonLogger:logger,automationLogger}=require(a111_0x4e6133(0x171)),helper=require(a111_0x4e6133(0x19b)),constants=require(a111_0x4e6133(0x187)),{DRIVER_EVENT:PerformanceDriverEvents}=require(a111_0x4e6133(0x13b)),util=require(a111_0x4e6133(0x192));function a111_0x1edf(_0x1eeda1,_0x87d761){const _0x2311a8=a111_0x2311();return a111_0x1edf=function(_0x1edfe0,_0x2dffb6){_0x1edfe0=_0x1edfe0-0x12e;let _0x375709=_0x2311a8[_0x1edfe0];return _0x375709;},a111_0x1edf(_0x1eeda1,_0x87d761);}function a111_0x2311(){const _0x29b3a7=['browserstack.local','setAiSessionTimeStamp','skipHealingSuccess','string','wEQEt','execute','./performance/performance-tester','parameters','isBrowserstackInfra','NUDGE_LOCAL_ERRORS','lNrjj','POST_EXECUTE','overrideExecute','yqcFi','2zPPxKh','aiHeal_isAuthenticated','Hiets',';\x20Trying\x20to\x20heal','2866280GErBYw','info','KRamL','Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','421320TnBgqT','DVsXb','OcEal','script','command','getNudgeLocalNotSetError','silly','FglOs','error','422493nnNQbJ','aiHeal:findElementFailure','./globals','tFcEk','342085zOEmJC','aiSdk_defaultLogDataEnabled','iPQQZ','getId','getGlobal','MgAkL','./logger','scqMM','Ufotn','setTcgToken','FqZTn','./ai-sdk/autoHealHelper','lDSYk','css\x20selector','name_','toISOString','executeAsyncScript','ysxdy','debug','nestedKeyValue','parameters_','Healing\x20failed\x20for\x20command\x20using\x20cssPath:\x20','isSelfHealEnabled','prqIh','NWayY','aiHeal_isHealingEnabled','171bqXUca','Successfully\x20healed\x20command\x20using\x20new\x20','../bin/utils/constants','capability','findElement\x20command\x20failed\x20with\x20','getTcgTokenStatus','gaWjI','WdDeD','iSPKo','zxcxW','42YIzjBL','local','includes','util','AUTOMATION_LOG_COMMANDS','./ai-sdk/aiSdkWrapper','url','message','JavascriptError','1536185ECCTqV','XhIgC','sAZxv','./helper','XpDld','body','using','HEpjO','Healing\x20failed\x20for\x20command\x20using\x20','Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20','oDkAd','getSession','YlFvv','RnOTW','ZcEKG','NzeSE','request','find','VuSQg','value','args','RnfGy','aiHeal:findElementSuccess','xVOKs','Error\x20in\x20handling\x20TCG\x20Auth:\x20','PRE_EXECUTE','Successfully\x20healed\x20command\x20using\x20new\x20cssPath:\x20','measureWrapper','MEOlr','initExecute','patchExecute','handleFailure','findElement','IIUfA','53148QEceIg','ZqEsS','./performance/constants','SifRr','fhmLy','handleSuccess','format','response','VfkWb','1814164bjecYU','toString','OPahR','name','setTcgTokenStatus','ShNgP'];a111_0x2311=function(){return _0x29b3a7;};return a111_0x2311();}exports[a111_0x4e6133(0x154)]=(_0x48b6b0,_0x2bc41f)=>{const _0x1a838c=a111_0x4e6133,_0xd1fcfa={'VuSQg':_0x1a838c(0x15d),'gaWjI':function(_0x2b831e,_0x564904){return _0x2b831e===_0x564904;},'RnOTW':'NoSuchElementError','wEQEt':function(_0x188bed,_0x1780f0){return _0x188bed===_0x1780f0;},'epBJp':_0x1a838c(0x197),'WYpQE':_0x1a838c(0x137),'NWayY':_0x1a838c(0x157),'ShNgP':_0x1a838c(0x184),'KRamL':_0x1a838c(0x178),'scqMM':function(_0x15fa82,_0x1fe928){return _0x15fa82+_0x1fe928;},'oDkAd':'findElement\x20command\x20failed\x20with\x20cssPath:\x20','yqcFi':_0x1a838c(0x159),'SifRr':function(_0x4af076,_0xfc7d78){return _0x4af076+_0xfc7d78;},'DVsXb':_0x1a838c(0x189),'OPahR':_0x1a838c(0x168),'MEOlr':function(_0x5acee8){return _0x5acee8();},'tkqob':function(_0x52f6ba,_0x461d1e){return _0x52f6ba&&_0x461d1e;},'ZqEsS':function(_0x1aa94e,_0x31d081){return _0x1aa94e===_0x31d081;},'fhmLy':function(_0x19b2ac,_0x4f090e){return _0x19b2ac+_0x4f090e;},'ZcEKG':_0x1a838c(0x131),'ysxdy':function(_0x561cfd,_0x2fcd7e){return _0x561cfd+_0x2fcd7e;},'HEpjO':function(_0x35b85e,_0x1c2b1a){return _0x35b85e+_0x1c2b1a;},'kDmLr':function(_0x1d9637,_0x388840){return _0x1d9637+_0x388840;},'aWYwb':_0x1a838c(0x186),'prqIh':_0x1a838c(0x180),'lNrjj':function(_0x124824,_0x59419c){return _0x124824+_0x59419c;},'dTsuu':function(_0x488281,_0x27a2a7){return _0x488281+_0x27a2a7;},'Ufotn':_0x1a838c(0x1a0),'iSPKo':function(_0x5630c7,_0x172e14){return _0x5630c7===_0x172e14;},'eGvzt':'get','WdDeD':_0x1a838c(0x17f),'Hiets':_0x1a838c(0x195),'iPQQZ':'Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','dpYNE':'aiHeal:setToken','NrSiq':function(_0x17207a){return _0x17207a();},'ZZsQq':_0x1a838c(0x16c),'OcEal':_0x1a838c(0x1ae),'sAZxv':function(_0x408a0e){return _0x408a0e();},'YlFvv':_0x1a838c(0x17b),'NzeSE':'executeScript','FqZTn':_0x1a838c(0x14b),'VfkWb':_0x1a838c(0x188),'IIUfA':_0x1a838c(0x148),'XpDld':'bstack:options','MgAkL':_0x1a838c(0x190)},_0x1e194f=_0x48b6b0[_0x1a838c(0x135)]||(helper['nestedKeyValue'](_0x2bc41f,[_0xd1fcfa[_0x1a838c(0x141)],_0xd1fcfa[_0x1a838c(0x138)]])||helper['nestedKeyValue'](_0x2bc41f,[_0xd1fcfa[_0x1a838c(0x141)],_0xd1fcfa[_0x1a838c(0x19c)],_0xd1fcfa[_0x1a838c(0x170)]]));if(!globals[_0x1a838c(0x16f)](_0xd1fcfa[_0x1a838c(0x183)])&&!globals[_0x1a838c(0x16f)](_0xd1fcfa[_0x1a838c(0x147)])&&_0x1e194f)return;_0x48b6b0[_0x1a838c(0x135)]=!![],_0x48b6b0[_0x1a838c(0x134)]=_0x48b6b0[_0x1a838c(0x14d)],_0x48b6b0[_0x1a838c(0x14d)]=async _0x255cc0=>{const _0x3f32d2=_0x1a838c,_0x3467d8={'xVOKs':_0xd1fcfa[_0x3f32d2(0x183)],'lDSYk':_0xd1fcfa['dpYNE'],'tFcEk':function(_0x172992){return _0xd1fcfa['NrSiq'](_0x172992);},'FglOs':_0xd1fcfa['ZZsQq'],'ftfpX':function(_0xde3186,_0x540cea){const _0x588801=_0x3f32d2;return _0xd1fcfa[_0x588801(0x18d)](_0xde3186,_0x540cea);},'WZaKa':_0xd1fcfa['WYpQE'],'zxcxW':_0xd1fcfa['ShNgP'],'XhIgC':_0xd1fcfa[_0x3f32d2(0x160)],'RnfGy':function(_0x4ec99b){const _0x14059b=_0x3f32d2;return _0xd1fcfa[_0x14059b(0x19a)](_0x4ec99b);}};try{const _0x5a20ea={};_0x5a20ea[_0x3f32d2(0x162)]=_0x255cc0[_0x3f32d2(0x179)],await PerformanceTester[_0x3f32d2(0x132)](PerformanceDriverEvents[_0x3f32d2(0x130)],async()=>{const _0x12bf21=_0x3f32d2;if(!commandRepository[_0x12bf21(0x18a)]()&&globals['getGlobal'](_0x3467d8['xVOKs'])){const _0x14f0b0=PerformanceTester['measureWrapper'](_0x3467d8[_0x12bf21(0x177)],async()=>{const _0x1dc94d=_0x12bf21;try{commandRepository[_0x1dc94d(0x146)](!![]),await aiSdkWrapper[_0x1dc94d(0x174)]((await _0x48b6b0[_0x1dc94d(0x1a3)]())[_0x1dc94d(0x16e)]());const _0x54a61f=globals[_0x1dc94d(0x16f)](_0x3467d8[_0x1dc94d(0x12e)]);_0x54a61f&&commandRepository[_0x1dc94d(0x149)]((await _0x48b6b0[_0x1dc94d(0x1a3)]())[_0x1dc94d(0x16e)]());}catch(_0x11ddec){logger[_0x1dc94d(0x166)](_0x1dc94d(0x12f)+_0x11ddec);}});await _0x3467d8[_0x12bf21(0x16a)](_0x14f0b0);}},_0x5a20ea)();const _0x44a152=await _0x48b6b0[_0x3f32d2(0x134)](_0x255cc0);try{if(_0xd1fcfa[_0x3f32d2(0x14c)](_0x255cc0['name_'],_0xd1fcfa[_0x3f32d2(0x1a4)])||_0xd1fcfa[_0x3f32d2(0x14c)](_0x255cc0[_0x3f32d2(0x179)],_0xd1fcfa[_0x3f32d2(0x1a7)])){const _0xa8dd88=_0x255cc0[_0x3f32d2(0x17f)]&&_0x255cc0[_0x3f32d2(0x17f)][_0x3f32d2(0x161)],_0x156b70=_0x255cc0[_0x3f32d2(0x17f)]&&_0x255cc0[_0x3f32d2(0x17f)][_0x3f32d2(0x1ac)],_0x1a5038=_0x156b70&&util['format']('%j',_0x156b70);if(_0xa8dd88&&_0xd1fcfa[_0x3f32d2(0x13a)](typeof _0xa8dd88,_0xd1fcfa[_0x3f32d2(0x175)])){const _0x1ddcb2=constants[_0x3f32d2(0x193)]['find'](_0x326d96=>_0xa8dd88['includes'](_0x326d96)||_0x1a5038&&_0x1a5038['includes'](_0x326d96));if(_0x1ddcb2){const _0x3e372d={};_0x3e372d[_0x3f32d2(0x162)]=_0x1ddcb2,_0x3e372d[_0x3f32d2(0x14f)]=_0x156b70;const _0x1d1e57={};_0x1d1e57[_0x3f32d2(0x19d)]=_0x44a152;const _0x14f888={};_0x14f888[_0x3f32d2(0x1a8)]=_0x3e372d,_0x14f888[_0x3f32d2(0x140)]=_0x1d1e57,automationLogger[_0x3f32d2(0x164)]('['+new Date()[_0x3f32d2(0x17a)]()+'][\x20SDK-AUTOMATION\x20]\x20'+util[_0x3f32d2(0x13f)]('%j',_0x14f888));}}}}catch(_0x47e4c6){logger[_0x3f32d2(0x164)](_0x3f32d2(0x1a1)+_0x47e4c6[_0x3f32d2(0x196)]);}return await PerformanceTester[_0x3f32d2(0x132)](PerformanceDriverEvents[_0x3f32d2(0x153)],async()=>{const _0x59dbdf=_0x3f32d2;if(!helper[_0x59dbdf(0x150)]()&&(commandRepository['isSelfHealEnabled']()||globals[_0x59dbdf(0x16f)](_0x3467d8[_0x59dbdf(0x165)]))&&_0x3467d8['ftfpX'](_0x255cc0[_0x59dbdf(0x179)],_0x3467d8['WZaKa'])&&!_0x255cc0[_0x59dbdf(0x14a)]&&globals[_0x59dbdf(0x16f)](_0x3467d8[_0x59dbdf(0x12e)])&&globals[_0x59dbdf(0x16f)](_0x3467d8[_0x59dbdf(0x18e)])){const _0x2c9022=new Date(),_0x36de16=PerformanceTester[_0x59dbdf(0x132)](_0x3467d8[_0x59dbdf(0x199)],async()=>{const _0x5ddd93=_0x59dbdf;return await aiSdkWrapper[_0x5ddd93(0x13e)](_0x2bc41f,_0x48b6b0,_0x255cc0);});await _0x3467d8[_0x59dbdf(0x1ad)](_0x36de16);}},{'command':_0x255cc0['name_']})(),_0x44a152;}catch(_0x2109aa){await PerformanceTester[_0x3f32d2(0x132)](PerformanceDriverEvents[_0x3f32d2(0x153)],async()=>{const _0x5eb75e=_0x3f32d2;logger['debug'](_0xd1fcfa[_0x5eb75e(0x1aa)]);try{if(!helper[_0x5eb75e(0x150)]()&&(_0xd1fcfa['gaWjI'](_0x2109aa[_0x5eb75e(0x145)],_0xd1fcfa[_0x5eb75e(0x1a5)])||_0xd1fcfa[_0x5eb75e(0x14c)](_0x2109aa[_0x5eb75e(0x145)],_0xd1fcfa['epBJp']))&&_0xd1fcfa[_0x5eb75e(0x18b)](_0x255cc0['name_'],_0xd1fcfa['WYpQE'])&&commandRepository[_0x5eb75e(0x181)]()&&globals[_0x5eb75e(0x16f)](_0xd1fcfa[_0x5eb75e(0x183)])&&globals[_0x5eb75e(0x16f)](_0xd1fcfa[_0x5eb75e(0x147)])){_0xd1fcfa[_0x5eb75e(0x18b)](_0x255cc0['parameters_'][_0x5eb75e(0x19e)],_0xd1fcfa[_0x5eb75e(0x15c)])?logger[_0x5eb75e(0x15b)](_0xd1fcfa[_0x5eb75e(0x172)](_0xd1fcfa[_0x5eb75e(0x172)](_0xd1fcfa[_0x5eb75e(0x1a2)],_0x255cc0[_0x5eb75e(0x17f)][_0x5eb75e(0x1ab)]),_0xd1fcfa[_0x5eb75e(0x155)])):logger[_0x5eb75e(0x15b)](_0xd1fcfa[_0x5eb75e(0x13c)](_0xd1fcfa['SifRr'](_0xd1fcfa[_0x5eb75e(0x13c)](_0xd1fcfa['scqMM'](_0xd1fcfa[_0x5eb75e(0x15f)],_0x255cc0['parameters_'][_0x5eb75e(0x19e)]),':\x20'),_0x255cc0[_0x5eb75e(0x17f)][_0x5eb75e(0x1ab)]),_0xd1fcfa[_0x5eb75e(0x155)]));const _0x2e3afd=PerformanceTester['measureWrapper'](_0xd1fcfa[_0x5eb75e(0x144)],async()=>{const _0x36080c=_0x5eb75e;return await aiSdkWrapper[_0x36080c(0x136)](_0x2bc41f,_0x48b6b0,_0x255cc0);}),_0x5cc210=new Date(),{locatorType:_0xdb1bb2,locatorValue:_0x3377b3,commandHealed:_0x4f8ff6}=await _0xd1fcfa[_0x5eb75e(0x133)](_0x2e3afd);if(_0xd1fcfa['tkqob'](_0xdb1bb2,_0x3377b3)){_0x255cc0[_0x5eb75e(0x17f)][_0x5eb75e(0x19e)]=_0xdb1bb2,_0x255cc0[_0x5eb75e(0x17f)][_0x5eb75e(0x1ab)]=_0x3377b3,_0x255cc0['skipHealingSuccess']=!![];const _0xfda512=_0x48b6b0[_0x5eb75e(0x14d)](_0x255cc0);return _0xd1fcfa['ZqEsS'](_0xdb1bb2,_0xd1fcfa[_0x5eb75e(0x15c)])?logger[_0x5eb75e(0x15b)](_0xd1fcfa['fhmLy'](_0xd1fcfa[_0x5eb75e(0x1a6)],_0x3377b3)):logger[_0x5eb75e(0x15b)](_0xd1fcfa[_0x5eb75e(0x17c)](_0xd1fcfa[_0x5eb75e(0x19f)](_0xd1fcfa['kDmLr'](_0xd1fcfa['aWYwb'],_0xdb1bb2),':\x20'),_0x3377b3)),_0xfda512;}else!_0x4f8ff6&&(_0xd1fcfa[_0x5eb75e(0x18b)](_0xdb1bb2,_0xd1fcfa['KRamL'])?logger[_0x5eb75e(0x15b)](_0xd1fcfa['fhmLy'](_0xd1fcfa[_0x5eb75e(0x182)],_0x255cc0[_0x5eb75e(0x17f)][_0x5eb75e(0x1ab)])):logger[_0x5eb75e(0x15b)](_0xd1fcfa[_0x5eb75e(0x13d)](_0xd1fcfa[_0x5eb75e(0x152)](_0xd1fcfa['dTsuu'](_0xd1fcfa[_0x5eb75e(0x173)],_0x255cc0[_0x5eb75e(0x17f)]['using']),':\x20'),_0x255cc0[_0x5eb75e(0x17f)]['value'])));}!_0x1e194f&&_0xd1fcfa['iSPKo'](_0x255cc0['name_'],_0xd1fcfa['eGvzt'])&&helper[_0x5eb75e(0x17e)](_0x255cc0,[_0xd1fcfa[_0x5eb75e(0x18c)],_0xd1fcfa[_0x5eb75e(0x158)]])&&!!constants[_0x5eb75e(0x151)][_0x5eb75e(0x1a9)](_0x3506e8=>{const _0x1b4063=_0x5eb75e;return _0x2109aa[_0x1b4063(0x143)]()[_0x1b4063(0x191)](_0x3506e8);})&&helper[_0x5eb75e(0x163)](_0x255cc0[_0x5eb75e(0x17f)][_0x5eb75e(0x195)],!![]);}catch(_0xd26b85){logger[_0x5eb75e(0x17d)](_0xd1fcfa[_0x5eb75e(0x16d)],_0xd26b85);}},{'success':![],'failure':_0x2109aa})();throw _0x2109aa;}};};
1
+ function a111_0x5ad9(_0x255842,_0x4e418a){const _0x5b91e1=a111_0x5b91();return a111_0x5ad9=function(_0x5ad948,_0x40cab8){_0x5ad948=_0x5ad948-0x1d5;let _0x351b2b=_0x5b91e1[_0x5ad948];return _0x351b2b;},a111_0x5ad9(_0x255842,_0x4e418a);}const a111_0x12ab83=a111_0x5ad9;(function(_0x547000,_0x58de28){const _0x2910f8=a111_0x5ad9,_0x415739=_0x547000();while(!![]){try{const _0x52a946=parseInt(_0x2910f8(0x1d6))/0x1*(-parseInt(_0x2910f8(0x22a))/0x2)+-parseInt(_0x2910f8(0x238))/0x3*(parseInt(_0x2910f8(0x226))/0x4)+-parseInt(_0x2910f8(0x1d8))/0x5+parseInt(_0x2910f8(0x241))/0x6+parseInt(_0x2910f8(0x1ec))/0x7*(parseInt(_0x2910f8(0x240))/0x8)+parseInt(_0x2910f8(0x1e1))/0x9+parseInt(_0x2910f8(0x259))/0xa;if(_0x52a946===_0x58de28)break;else _0x415739['push'](_0x415739['shift']());}catch(_0x3ed7bc){_0x415739['push'](_0x415739['shift']());}}}(a111_0x5b91,0x51745));const {aiSdkWrapper}=require('./ai-sdk/aiSdkWrapper'),{commandRepository}=require('./ai-sdk/autoHealHelper'),PerformanceTester=require(a111_0x12ab83(0x1fb)),globals=require(a111_0x12ab83(0x237)),{winstonLogger:logger,automationLogger}=require(a111_0x12ab83(0x202)),helper=require(a111_0x12ab83(0x205)),constants=require(a111_0x12ab83(0x1e0)),{DRIVER_EVENT:PerformanceDriverEvents}=require(a111_0x12ab83(0x24d)),util=require(a111_0x12ab83(0x21b));function a111_0x5b91(){const _0x259622=['vkkwy','patchExecute','capability','pUHib','ALfbY','getTcgTokenStatus','css\x20selector','./performance/constants','bstack:options','NhUEf',';\x20Trying\x20to\x20heal','bbHKe','setTcgTokenStatus','lePHg','initExecute','Successfully\x20healed\x20command\x20using\x20new\x20cssPath:\x20','Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','lLmdK','NoSuchElementError','9379700GboLzZ','ohPxh','QstpV','silly','measureWrapper','toISOString','RJkXf','lEowv','uvJxK','oTfhD','344hQboAS','bAhPJ','2360800WjqlaW','isSelfHealEnabled','getSession','lIlsT','wmgmg','name_','skipHealingSuccess','parameters','../bin/utils/constants','1966806WjlUiJ','setAiSessionTimeStamp','executeScript','execute','handleFailure','Healing\x20failed\x20for\x20command\x20using\x20','QJgnD','nPrwB','request','response','args','62356ECYMWV','browserstack.local','AgEYD','mIkyk','QSkLZ','find','script','getGlobal','get','SOFfV','wCuzE','executeAsyncScript','UhCjB','aiHeal:setToken','ViaIT','./performance/performance-tester','BcgEp','lgWRx','overrideExecute','hRuvy','findElement\x20command\x20failed\x20with\x20','NUDGE_LOCAL_ERRORS','./logger','VzLdN','Estil','./helper','vLOCt','UsHDd','string','UAYCJ','setTcgToken','THnqH','findElement','olpXO','includes','url','dqUZf','aiHeal_isHealingEnabled','lMdnq','value','HuKEM','VpNmR','debug','pVLUI','info','YivoH','Jckkt','util','RnbKB','][\x20SDK-AUTOMATION\x20]\x20','WtiJo','command','ndHKj','Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','mPWsG','kZego','AUTOMATION_LOG_COMMANDS','name','31588WaJQwg','JavascriptError','toString','NNGoM','3852dXtVTt','pduGR','using','rqBKb','parameters_','WezvS','QmKhn','ZjmPv','format','DTHSN','error','Error\x20in\x20handling\x20TCG\x20Auth:\x20','WwuXw','./globals','108DuZmUw','aiHeal:findElementSuccess','nestedKeyValue','uYORi','aiSdk_defaultLogDataEnabled','pcEUz','DsfiP','MMkPw','488jGbRCq','316446nwQHBS','QpqNr','MCSzQ','aiHeal:findElementFailure','aiHeal_isAuthenticated'];a111_0x5b91=function(){return _0x259622;};return a111_0x5b91();}exports[a111_0x12ab83(0x1fe)]=(_0x40f96d,_0x1dd0c6)=>{const _0x38b2d1=a111_0x12ab83,_0x11c336={'RJkXf':_0x38b2d1(0x245),'msLLl':_0x38b2d1(0x1f9),'BcgEp':function(_0x3a54e2){return _0x3a54e2();},'QpqNr':_0x38b2d1(0x23c),'RnbKB':function(_0xd900d6,_0x542526){return _0xd900d6===_0x542526;},'bbHKe':_0x38b2d1(0x20c),'ohPxh':_0x38b2d1(0x211),'THnqH':_0x38b2d1(0x239),'ZjmPv':_0x38b2d1(0x256),'VpNmR':_0x38b2d1(0x258),'QstpV':_0x38b2d1(0x227),'pduGR':_0x38b2d1(0x24c),'mIkyk':function(_0x123efa,_0xdd967){return _0x123efa+_0xdd967;},'XMsSw':'findElement\x20command\x20failed\x20with\x20cssPath:\x20','kZego':_0x38b2d1(0x250),'ndHKj':function(_0x1cc4b0,_0x5a46c4){return _0x1cc4b0+_0x5a46c4;},'lEowv':function(_0x21d6bb,_0x55e523){return _0x21d6bb+_0x55e523;},'MCSzQ':_0x38b2d1(0x200),'lMdnq':_0x38b2d1(0x244),'HuKEM':function(_0x35f067){return _0x35f067();},'Gysnp':function(_0x4456fb,_0x246708){return _0x4456fb&&_0x246708;},'NNGoM':function(_0xfc30ff,_0xa22a36){return _0xfc30ff===_0xa22a36;},'NhUEf':_0x38b2d1(0x255),'oTfhD':function(_0x1f3d14,_0x4c59db){return _0x1f3d14+_0x4c59db;},'vLOCt':function(_0x1f601a,_0xe79fff){return _0x1f601a+_0xe79fff;},'pFVNi':'Successfully\x20healed\x20command\x20using\x20new\x20','XyKoH':function(_0x1be70b,_0x36b141){return _0x1be70b+_0x36b141;},'QSkLZ':'Healing\x20failed\x20for\x20command\x20using\x20cssPath:\x20','mPWsG':function(_0x4da6f2,_0x52cec5){return _0x4da6f2+_0x52cec5;},'QmKhn':_0x38b2d1(0x1e6),'Jckkt':function(_0x3380da,_0x429c77){return _0x3380da===_0x429c77;},'hRuvy':_0x38b2d1(0x1f4),'lIlsT':_0x38b2d1(0x22e),'zAKCK':_0x38b2d1(0x20f),'vkkwy':_0x38b2d1(0x221),'WtiJo':function(_0x3df777,_0x4e269d){return _0x3df777===_0x4e269d;},'uvJxK':_0x38b2d1(0x1f7),'BYasy':_0x38b2d1(0x1e3),'vWfIz':_0x38b2d1(0x208),'UsHDd':_0x38b2d1(0x248),'ViaIT':_0x38b2d1(0x1ed),'lePHg':_0x38b2d1(0x24e),'WezvS':'local'},_0x423218=_0x40f96d['patchExecute']||(helper[_0x38b2d1(0x23a)](_0x1dd0c6,[_0x11c336[_0x38b2d1(0x207)],_0x11c336[_0x38b2d1(0x1fa)]])||helper[_0x38b2d1(0x23a)](_0x1dd0c6,[_0x11c336['UsHDd'],_0x11c336[_0x38b2d1(0x253)],_0x11c336[_0x38b2d1(0x22f)]]));if(!globals['getGlobal'](_0x11c336[_0x38b2d1(0x25f)])&&!globals[_0x38b2d1(0x1f3)](_0x11c336['ohPxh'])&&_0x423218)return;_0x40f96d[_0x38b2d1(0x247)]=!![],_0x40f96d[_0x38b2d1(0x254)]=_0x40f96d[_0x38b2d1(0x1e4)],_0x40f96d['execute']=async _0x201ecc=>{const _0x123f09=_0x38b2d1,_0x232fa3={'pUHib':_0x11c336[_0x123f09(0x25f)],'uYORi':_0x11c336[_0x123f09(0x231)],'olpXO':function(_0x3a8044,_0x5c56d5){return _0x11c336['RnbKB'](_0x3a8044,_0x5c56d5);},'bAhPJ':_0x11c336[_0x123f09(0x215)],'lLmdK':function(_0x4039e2,_0x497361){const _0x4b369e=_0x123f09;return _0x11c336[_0x4b369e(0x21c)](_0x4039e2,_0x497361);},'AtUjv':_0x11c336[_0x123f09(0x25b)],'VzLdN':_0x11c336[_0x123f09(0x251)],'AgEYD':_0x11c336[_0x123f09(0x25a)],'caoJU':function(_0x207d9a,_0x3005b2){return _0x11c336['RnbKB'](_0x207d9a,_0x3005b2);},'DsfiP':_0x11c336[_0x123f09(0x22b)],'WwuXw':function(_0x29572c,_0x2d8ecd){const _0x83ba04=_0x123f09;return _0x11c336[_0x83ba04(0x1ef)](_0x29572c,_0x2d8ecd);},'Estil':_0x11c336['XMsSw'],'ALfbY':_0x11c336[_0x123f09(0x223)],'nPrwB':function(_0x58998e,_0x540a51){const _0x469604=_0x123f09;return _0x11c336[_0x469604(0x220)](_0x58998e,_0x540a51);},'QJgnD':function(_0x34e491,_0x2303fa){const _0x2fe0be=_0x123f09;return _0x11c336[_0x2fe0be(0x260)](_0x34e491,_0x2303fa);},'RDbKA':_0x11c336[_0x123f09(0x243)],'SOFfV':_0x11c336[_0x123f09(0x212)],'uGsAv':function(_0x4239d9){const _0x4d46d0=_0x123f09;return _0x11c336[_0x4d46d0(0x214)](_0x4239d9);},'dqUZf':function(_0x2fb7a3,_0x1c940f){return _0x11c336['Gysnp'](_0x2fb7a3,_0x1c940f);},'DTHSN':function(_0x2aba66,_0x246447){const _0x309317=_0x123f09;return _0x11c336[_0x309317(0x229)](_0x2aba66,_0x246447);},'rqBKb':_0x11c336[_0x123f09(0x24f)],'wmgmg':function(_0x47e824,_0x406d7a){const _0x2a3624=_0x123f09;return _0x11c336[_0x2a3624(0x1d5)](_0x47e824,_0x406d7a);},'YivoH':function(_0x432e6b,_0x4f4637){const _0x397b49=_0x123f09;return _0x11c336[_0x397b49(0x260)](_0x432e6b,_0x4f4637);},'UhCjB':function(_0x15e61b,_0x3de466){const _0x334a3b=_0x123f09;return _0x11c336[_0x334a3b(0x206)](_0x15e61b,_0x3de466);},'JDpRj':_0x11c336['pFVNi'],'MMkPw':function(_0x5817b7,_0x25afd6){return _0x11c336['XyKoH'](_0x5817b7,_0x25afd6);},'gFjGE':_0x11c336[_0x123f09(0x1f0)],'pcEUz':function(_0x56b08e,_0x3650fa){const _0x4bb221=_0x123f09;return _0x11c336[_0x4bb221(0x222)](_0x56b08e,_0x3650fa);},'pVLUI':_0x11c336[_0x123f09(0x230)],'lgWRx':function(_0x4ec7a6,_0x38ebcb){const _0x2fe7e0=_0x123f09;return _0x11c336[_0x2fe7e0(0x21a)](_0x4ec7a6,_0x38ebcb);},'KDtRx':_0x11c336[_0x123f09(0x1ff)],'wCuzE':_0x11c336[_0x123f09(0x1db)],'fUvIA':_0x11c336['zAKCK'],'UAYCJ':_0x11c336[_0x123f09(0x246)]};try{const _0x198a04={};_0x198a04[_0x123f09(0x21f)]=_0x201ecc[_0x123f09(0x1dd)],await PerformanceTester[_0x123f09(0x25d)](PerformanceDriverEvents['PRE_EXECUTE'],async()=>{const _0x1f3224=_0x123f09;if(!commandRepository[_0x1f3224(0x24b)]()&&globals['getGlobal'](_0x11c336['RJkXf'])){const _0x2b92cd=PerformanceTester[_0x1f3224(0x25d)](_0x11c336['msLLl'],async()=>{const _0x363c44=_0x1f3224;try{commandRepository[_0x363c44(0x252)](!![]),await aiSdkWrapper[_0x363c44(0x20a)]((await _0x40f96d['getSession']())['getId']());const _0x369365=globals['getGlobal'](_0x232fa3[_0x363c44(0x249)]);_0x369365&&commandRepository[_0x363c44(0x1e2)]((await _0x40f96d[_0x363c44(0x1da)]())['getId']());}catch(_0x3de76d){logger[_0x363c44(0x234)](_0x363c44(0x235)+_0x3de76d);}});await _0x11c336[_0x1f3224(0x1fc)](_0x2b92cd);}},_0x198a04)();const _0x10511b=await _0x40f96d[_0x123f09(0x254)](_0x201ecc);try{if(_0x11c336[_0x123f09(0x21e)](_0x201ecc[_0x123f09(0x1dd)],_0x11c336[_0x123f09(0x261)])||_0x11c336[_0x123f09(0x21e)](_0x201ecc[_0x123f09(0x1dd)],_0x11c336['BYasy'])){const _0x1334d6=_0x201ecc['parameters_']&&_0x201ecc[_0x123f09(0x22e)][_0x123f09(0x1f2)],_0x249cb5=_0x201ecc[_0x123f09(0x22e)]&&_0x201ecc[_0x123f09(0x22e)][_0x123f09(0x1eb)],_0x59f1e5=_0x249cb5&&util[_0x123f09(0x232)]('%j',_0x249cb5);if(_0x1334d6&&_0x11c336[_0x123f09(0x21a)](typeof _0x1334d6,_0x11c336['vWfIz'])){const _0x1c5693=constants[_0x123f09(0x224)][_0x123f09(0x1f1)](_0x59f50e=>_0x1334d6[_0x123f09(0x20e)](_0x59f50e)||_0x59f1e5&&_0x59f1e5[_0x123f09(0x20e)](_0x59f50e));if(_0x1c5693){const _0x5ec3cc={};_0x5ec3cc[_0x123f09(0x21f)]=_0x1c5693,_0x5ec3cc[_0x123f09(0x1df)]=_0x249cb5;const _0x130ad0={};_0x130ad0['body']=_0x10511b;const _0x20ae56={};_0x20ae56[_0x123f09(0x1e9)]=_0x5ec3cc,_0x20ae56[_0x123f09(0x1ea)]=_0x130ad0,automationLogger[_0x123f09(0x25c)]('['+new Date()[_0x123f09(0x25e)]()+_0x123f09(0x21d)+util[_0x123f09(0x232)]('%j',_0x20ae56));}}}}catch(_0x35257e){logger[_0x123f09(0x25c)]('Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20'+_0x35257e['message']);}return await PerformanceTester[_0x123f09(0x25d)](PerformanceDriverEvents['POST_EXECUTE'],async()=>{const _0x4fd021=_0x123f09;if(!helper['isBrowserstackInfra']()&&(commandRepository[_0x4fd021(0x1d9)]()||globals[_0x4fd021(0x1f3)](_0x11c336[_0x4fd021(0x242)]))&&_0x11c336[_0x4fd021(0x21c)](_0x201ecc['name_'],_0x11c336[_0x4fd021(0x251)])&&!_0x201ecc[_0x4fd021(0x1de)]&&globals[_0x4fd021(0x1f3)](_0x11c336[_0x4fd021(0x25f)])&&globals[_0x4fd021(0x1f3)](_0x11c336[_0x4fd021(0x25a)])){const _0x2ad75e=new Date(),_0x6282cf=PerformanceTester['measureWrapper'](_0x11c336[_0x4fd021(0x20b)],async()=>{return await aiSdkWrapper['handleSuccess'](_0x1dd0c6,_0x40f96d,_0x201ecc);});await _0x11c336['BcgEp'](_0x6282cf);}},{'command':_0x201ecc[_0x123f09(0x1dd)]})(),_0x10511b;}catch(_0x4187fc){await PerformanceTester['measureWrapper'](PerformanceDriverEvents['POST_EXECUTE'],async()=>{const _0x30a2c7=_0x123f09;logger[_0x30a2c7(0x216)](_0x232fa3[_0x30a2c7(0x23b)]);try{if(!helper['isBrowserstackInfra']()&&(_0x232fa3[_0x30a2c7(0x20d)](_0x4187fc[_0x30a2c7(0x225)],_0x232fa3[_0x30a2c7(0x1d7)])||_0x232fa3[_0x30a2c7(0x257)](_0x4187fc[_0x30a2c7(0x225)],_0x232fa3['AtUjv']))&&_0x232fa3['lLmdK'](_0x201ecc[_0x30a2c7(0x1dd)],_0x232fa3[_0x30a2c7(0x203)])&&commandRepository[_0x30a2c7(0x1d9)]()&&globals[_0x30a2c7(0x1f3)](_0x232fa3[_0x30a2c7(0x249)])&&globals[_0x30a2c7(0x1f3)](_0x232fa3[_0x30a2c7(0x1ee)])){_0x232fa3['caoJU'](_0x201ecc[_0x30a2c7(0x22e)]['using'],_0x232fa3[_0x30a2c7(0x23e)])?logger[_0x30a2c7(0x218)](_0x232fa3['WwuXw'](_0x232fa3[_0x30a2c7(0x236)](_0x232fa3[_0x30a2c7(0x204)],_0x201ecc['parameters_'][_0x30a2c7(0x213)]),_0x232fa3[_0x30a2c7(0x24a)])):logger[_0x30a2c7(0x218)](_0x232fa3[_0x30a2c7(0x236)](_0x232fa3[_0x30a2c7(0x1e8)](_0x232fa3['nPrwB'](_0x232fa3[_0x30a2c7(0x1e7)](_0x232fa3['RDbKA'],_0x201ecc['parameters_'][_0x30a2c7(0x22c)]),':\x20'),_0x201ecc['parameters_'][_0x30a2c7(0x213)]),_0x232fa3['ALfbY']));const _0x323c09=PerformanceTester[_0x30a2c7(0x25d)](_0x232fa3[_0x30a2c7(0x1f5)],async()=>{const _0x24cb85=_0x30a2c7;return await aiSdkWrapper[_0x24cb85(0x1e5)](_0x1dd0c6,_0x40f96d,_0x201ecc);}),_0x31cbb7=new Date(),{locatorType:_0x1e08b1,locatorValue:_0x8de102,commandHealed:_0x368387}=await _0x232fa3['uGsAv'](_0x323c09);if(_0x232fa3[_0x30a2c7(0x210)](_0x1e08b1,_0x8de102)){_0x201ecc[_0x30a2c7(0x22e)][_0x30a2c7(0x22c)]=_0x1e08b1,_0x201ecc[_0x30a2c7(0x22e)][_0x30a2c7(0x213)]=_0x8de102,_0x201ecc[_0x30a2c7(0x1de)]=!![];const _0x247a55=_0x40f96d['execute'](_0x201ecc);return _0x232fa3['DTHSN'](_0x1e08b1,_0x232fa3[_0x30a2c7(0x23e)])?logger[_0x30a2c7(0x218)](_0x232fa3[_0x30a2c7(0x236)](_0x232fa3[_0x30a2c7(0x22d)],_0x8de102)):logger[_0x30a2c7(0x218)](_0x232fa3[_0x30a2c7(0x1dc)](_0x232fa3[_0x30a2c7(0x219)](_0x232fa3[_0x30a2c7(0x1f8)](_0x232fa3['JDpRj'],_0x1e08b1),':\x20'),_0x8de102)),_0x247a55;}else!_0x368387&&(_0x232fa3[_0x30a2c7(0x233)](_0x1e08b1,_0x232fa3[_0x30a2c7(0x23e)])?logger[_0x30a2c7(0x218)](_0x232fa3[_0x30a2c7(0x23f)](_0x232fa3['gFjGE'],_0x201ecc[_0x30a2c7(0x22e)][_0x30a2c7(0x213)])):logger[_0x30a2c7(0x218)](_0x232fa3[_0x30a2c7(0x1e7)](_0x232fa3['UhCjB'](_0x232fa3[_0x30a2c7(0x23d)](_0x232fa3[_0x30a2c7(0x217)],_0x201ecc[_0x30a2c7(0x22e)][_0x30a2c7(0x22c)]),':\x20'),_0x201ecc['parameters_'][_0x30a2c7(0x213)])));}!_0x423218&&_0x232fa3[_0x30a2c7(0x1fd)](_0x201ecc[_0x30a2c7(0x1dd)],_0x232fa3['KDtRx'])&&helper[_0x30a2c7(0x23a)](_0x201ecc,[_0x232fa3[_0x30a2c7(0x1f6)],_0x232fa3['fUvIA']])&&!!constants[_0x30a2c7(0x201)]['find'](_0x347efe=>{const _0x4b012d=_0x30a2c7;return _0x4187fc[_0x4b012d(0x228)]()[_0x4b012d(0x20e)](_0x347efe);})&&helper['getNudgeLocalNotSetError'](_0x201ecc[_0x30a2c7(0x22e)][_0x30a2c7(0x20f)],!![]);}catch(_0x2256c7){logger[_0x30a2c7(0x216)](_0x232fa3[_0x30a2c7(0x209)],_0x2256c7);}},{'success':![],'failure':_0x4187fc})();throw _0x4187fc;}};};
@@ -1 +1 @@
1
- function a112_0x519d(){const _0xdfb2b4=['4BStYDZ','pid','initScreenshot','env','true','uqdhP','974658csWufh','zWxsZ','FeHzt','285692QMUHYK','2UUkwam','initQuit','27ogJsQr','end','284296ZqMcNy','uIyKA','BZwWw','./performance/performance-tester','NAqot','./performance/constants','quit','takeScreenshot','patchScreenshot','1013385KTVvRC','then','overrideQuit','823585lwVxsr','386025xOXMdN','1497710idCZXt','quitCount_','TAKE_SCREENSHOT','BS_TESTOPS_ALLOW_SCREENSHOTS','patchQuit','eXhOz','overrideTakeScreenshot'];a112_0x519d=function(){return _0xdfb2b4;};return a112_0x519d();}const a112_0x1c53e7=a112_0x24ba;(function(_0x1ebf33,_0xc0ab97){const _0x108b5f=a112_0x24ba,_0x587a45=_0x1ebf33();while(!![]){try{const _0x278900=parseInt(_0x108b5f(0x187))/0x1+parseInt(_0x108b5f(0x188))/0x2*(-parseInt(_0x108b5f(0x199))/0x3)+-parseInt(_0x108b5f(0x17e))/0x4*(-parseInt(_0x108b5f(0x195))/0x5)+parseInt(_0x108b5f(0x184))/0x6+parseInt(_0x108b5f(0x198))/0x7+-parseInt(_0x108b5f(0x18c))/0x8+parseInt(_0x108b5f(0x18a))/0x9*(-parseInt(_0x108b5f(0x19a))/0xa);if(_0x278900===_0xc0ab97)break;else _0x587a45['push'](_0x587a45['shift']());}catch(_0x25ea8e){_0x587a45['push'](_0x587a45['shift']());}}}(a112_0x519d,0x25d3e));function a112_0x24ba(_0x73b670,_0xbfd8d2){const _0x519df6=a112_0x519d();return a112_0x24ba=function(_0x24ba6a,_0x3d5b21){_0x24ba6a=_0x24ba6a-0x17c;let _0x400057=_0x519df6[_0x24ba6a];return _0x400057;},a112_0x24ba(_0x73b670,_0xbfd8d2);}const PerformanceTester=require(a112_0x1c53e7(0x18f)),O11yEvents=require(a112_0x1c53e7(0x191))['O11y_EVENTS'];exports[a112_0x1c53e7(0x17d)]=_0x171d4c=>{const _0x32b8b8=a112_0x1c53e7,_0x51c563={'zWxsZ':function(_0x5148fc,_0x549b41){return _0x5148fc(_0x549b41);},'gGMoa':'TEST_SCREENSHOT','NAqot':function(_0x5702d9,_0x592fad){return _0x5702d9(_0x592fad);},'FfeuI':function(_0x14c753,_0x2fa2d0){return _0x14c753!==_0x2fa2d0;},'uIyKA':_0x32b8b8(0x182)};if(_0x51c563['FfeuI'](process[_0x32b8b8(0x181)][_0x32b8b8(0x19d)],_0x51c563[_0x32b8b8(0x18d)]))return;if(_0x171d4c[_0x32b8b8(0x194)])return;_0x171d4c[_0x32b8b8(0x194)]=!![],_0x171d4c[_0x32b8b8(0x180)]=_0x171d4c['takeScreenshot'],_0x171d4c[_0x32b8b8(0x193)]=()=>{const _0x43f674={'lAPnB':_0x51c563['gGMoa'],'BZwWw':function(_0x3bd212,_0x2041b3){const _0x54fff1=a112_0x24ba;return _0x51c563[_0x54fff1(0x190)](_0x3bd212,_0x2041b3);}};return new Promise(function(_0x9e6850,_0x4b83b0){const _0x41f500=a112_0x24ba,_0x527550={'uqdhP':function(_0x8049c8,_0x5ab3ca){const _0x13498e=a112_0x24ba;return _0x51c563[_0x13498e(0x185)](_0x8049c8,_0x5ab3ca);}};_0x171d4c['initScreenshot']()[_0x41f500(0x196)](_0x29a634=>{const _0x29e658=_0x41f500;PerformanceTester['start'](O11yEvents[_0x29e658(0x19c)]),process['emit']('bs:addLog:'+process[_0x29e658(0x17f)],{'timestamp':new Date()['toISOString'](),'message':_0x29a634,'kind':_0x43f674['lAPnB']}),_0x43f674[_0x29e658(0x18e)](_0x9e6850,_0x29a634),PerformanceTester[_0x29e658(0x18b)](O11yEvents[_0x29e658(0x19c)]);})['catch'](_0x5648e8=>{const _0xc14ce=_0x41f500;PerformanceTester[_0xc14ce(0x18b)](O11yEvents[_0xc14ce(0x19c)]),_0x527550[_0xc14ce(0x183)](_0x4b83b0,_0x5648e8);});});};},exports[a112_0x1c53e7(0x197)]=(_0x360055,_0x547185=null)=>{const _0x23a6a6=a112_0x1c53e7,_0x4f4b46={'FeHzt':function(_0x3dbea6){return _0x3dbea6();},'eXhOz':function(_0xfe049b,_0x3a8acb){return _0xfe049b>_0x3a8acb;},'qapIo':function(_0x55284b,_0x4f404c){return _0x55284b>_0x4f404c;}};if(_0x360055[_0x23a6a6(0x19e)])return;_0x360055['patchQuit']=!![],_0x360055['initQuit']=_0x360055[_0x23a6a6(0x192)],_0x360055[_0x23a6a6(0x192)]=()=>{const _0x2748d7=_0x23a6a6;if(_0x547185){_0x547185[_0x2748d7(0x19b)]+=0x1;if(_0x4f4b46[_0x2748d7(0x17c)](_0x547185[_0x2748d7(0x19b)],0x1))return _0x360055[_0x2748d7(0x189)]();}else{_0x360055[_0x2748d7(0x19b)]+=0x1;if(_0x4f4b46['qapIo'](_0x360055['quitCount_'],0x1))return _0x360055[_0x2748d7(0x189)]();}return new Promise(function(_0x12303a){const _0x230178=_0x2748d7;_0x4f4b46[_0x230178(0x186)](_0x12303a);});};};
1
+ const a112_0x37a4fd=a112_0x39bc;(function(_0x21a05b,_0x2972f0){const _0x2f2870=a112_0x39bc,_0x1a6557=_0x21a05b();while(!![]){try{const _0x4082a6=parseInt(_0x2f2870(0xbd))/0x1+parseInt(_0x2f2870(0xb8))/0x2*(parseInt(_0x2f2870(0xd0))/0x3)+parseInt(_0x2f2870(0xb0))/0x4+-parseInt(_0x2f2870(0xc3))/0x5*(parseInt(_0x2f2870(0xd2))/0x6)+parseInt(_0x2f2870(0xd6))/0x7*(-parseInt(_0x2f2870(0xb1))/0x8)+parseInt(_0x2f2870(0xc2))/0x9+parseInt(_0x2f2870(0xd1))/0xa*(-parseInt(_0x2f2870(0xcb))/0xb);if(_0x4082a6===_0x2972f0)break;else _0x1a6557['push'](_0x1a6557['shift']());}catch(_0x2418c9){_0x1a6557['push'](_0x1a6557['shift']());}}}(a112_0x1be0,0xbd055));const PerformanceTester=require('./performance/performance-tester'),O11yEvents=require(a112_0x37a4fd(0xbf))[a112_0x37a4fd(0xc1)];function a112_0x39bc(_0x2fd574,_0x3d31ff){const _0x1be019=a112_0x1be0();return a112_0x39bc=function(_0x39bc91,_0x1bc96d){_0x39bc91=_0x39bc91-0xb0;let _0x125ad8=_0x1be019[_0x39bc91];return _0x125ad8;},a112_0x39bc(_0x2fd574,_0x3d31ff);}function a112_0x1be0(){const _0x5c90cc=['USvsb','TAKE_SCREENSHOT','ydzNS','BS_TESTOPS_ALLOW_SCREENSHOTS','true','end','initQuit','16692995ISqZka','emit','quit','quitCount_','start','5901OQGHcn','10UtVMat','24BOoUBL','bCjeU','overrideQuit','patchScreenshot','8415169DdwxQE','2373980CbafUa','8OkurCc','tUtAP','initScreenshot','toISOString','overrideTakeScreenshot','llazo','BUmzt','866wMTLMQ','then','vDSkN','env','patchQuit','994180vgcElL','catch','./performance/constants','jFbBt','O11y_EVENTS','11037699HVAeoX','214820BEyojB'];a112_0x1be0=function(){return _0x5c90cc;};return a112_0x1be0();}exports[a112_0x37a4fd(0xb5)]=_0x1dca23=>{const _0x44101a=a112_0x37a4fd,_0x13fcb4={'bQukK':'TEST_SCREENSHOT','USvsb':function(_0x3d3367,_0x22e5fc){return _0x3d3367(_0x22e5fc);},'CsbGC':function(_0x51b25d,_0x51114d){return _0x51b25d!==_0x51114d;},'bCjeU':_0x44101a(0xc8)};if(_0x13fcb4['CsbGC'](process[_0x44101a(0xbb)][_0x44101a(0xc7)],_0x13fcb4[_0x44101a(0xd3)]))return;if(_0x1dca23[_0x44101a(0xd5)])return;_0x1dca23[_0x44101a(0xd5)]=!![],_0x1dca23[_0x44101a(0xb3)]=_0x1dca23['takeScreenshot'],_0x1dca23['takeScreenshot']=()=>{const _0x2b4ec2={'jFbBt':_0x13fcb4['bQukK'],'vDSkN':function(_0x115a04,_0x344d70){const _0x205e53=a112_0x39bc;return _0x13fcb4[_0x205e53(0xc4)](_0x115a04,_0x344d70);},'ydzNS':function(_0x11364d,_0xaa3575){const _0x42884d=a112_0x39bc;return _0x13fcb4[_0x42884d(0xc4)](_0x11364d,_0xaa3575);}};return new Promise(function(_0x4ed660,_0x2c51c6){const _0x5135e4=a112_0x39bc;_0x1dca23[_0x5135e4(0xb3)]()[_0x5135e4(0xb9)](_0xd03e51=>{const _0x456951=_0x5135e4;PerformanceTester[_0x456951(0xcf)](O11yEvents[_0x456951(0xc5)]),process[_0x456951(0xcc)]('bs:addLog:'+process['pid'],{'timestamp':new Date()[_0x456951(0xb4)](),'message':_0xd03e51,'kind':_0x2b4ec2[_0x456951(0xc0)]}),_0x2b4ec2[_0x456951(0xba)](_0x4ed660,_0xd03e51),PerformanceTester[_0x456951(0xc9)](O11yEvents[_0x456951(0xc5)]);})[_0x5135e4(0xbe)](_0x2dd250=>{const _0x2c6848=_0x5135e4;PerformanceTester[_0x2c6848(0xc9)](O11yEvents['TAKE_SCREENSHOT']),_0x2b4ec2[_0x2c6848(0xc6)](_0x2c51c6,_0x2dd250);});});};},exports[a112_0x37a4fd(0xd4)]=(_0x59bc94,_0x5cfa17=null)=>{const _0x5d00fd=a112_0x37a4fd,_0x4f2536={'BUmzt':function(_0x227001){return _0x227001();},'llazo':function(_0x59db8e,_0x48a87d){return _0x59db8e>_0x48a87d;}};if(_0x59bc94[_0x5d00fd(0xbc)])return;_0x59bc94[_0x5d00fd(0xbc)]=!![],_0x59bc94[_0x5d00fd(0xca)]=_0x59bc94[_0x5d00fd(0xcd)],_0x59bc94[_0x5d00fd(0xcd)]=()=>{const _0x5944da=_0x5d00fd,_0x2f1243={'tUtAP':function(_0x256687){const _0x2b9669=a112_0x39bc;return _0x4f2536[_0x2b9669(0xb7)](_0x256687);}};if(_0x5cfa17){_0x5cfa17['quitCount_']+=0x1;if(_0x4f2536[_0x5944da(0xb6)](_0x5cfa17[_0x5944da(0xce)],0x1))return _0x59bc94[_0x5944da(0xca)]();}else{_0x59bc94[_0x5944da(0xce)]+=0x1;if(_0x4f2536[_0x5944da(0xb6)](_0x59bc94[_0x5944da(0xce)],0x1))return _0x59bc94[_0x5944da(0xca)]();}return new Promise(function(_0x15a1e6){const _0x323b46=_0x5944da;_0x2f1243[_0x323b46(0xb2)](_0x15a1e6);});};};
@@ -1 +1 @@
1
- function a113_0x459b(_0x54a429,_0x10f4f8){const _0x212f80=a113_0x212f();return a113_0x459b=function(_0x459b7a,_0x3e2fa4){_0x459b7a=_0x459b7a-0x1ab;let _0x709f6e=_0x212f80[_0x459b7a];return _0x709f6e;},a113_0x459b(_0x54a429,_0x10f4f8);}function a113_0x212f(){const _0x4f0cf0=['end','isProcessRunning','stdout','tjtFY','rODyJ','cqNbO','365815eZezMq','ZfSxw','1211177NCTDdQ','createWriteStream','getBinaryPath','LqNRW','./PercyBinary','Error\x20creating\x20percy\x20config:\x20','token','app:exec','DOWNLOAD','60oobJYj',':start','AXghp','automate','9XkFkQo','KAMmB','data','child_process','PERCY_SERVER_ADDRESS','50651282nFuutC','debug','Percy\x20fetch\x20token\x20success','api/app_percy/get_project_token?name=','EgeRI','projectName','percy.log','44752YkgovW','cNrqT','join','WTFiq','725996NtZoGS','861jfvBqV','percyOptions','stringify','winstonLogger','exec','push','version','ENV_VAR','oqpgb','DzQov','Aavoc','exports','2588204ciMTQT','Gdnap','app','7617042mmmjxH','WErpo','BHzar','healthcheck','error','Percy\x20healthcheck\x20successful','lMHSF','http://localhost:5338','GET','10RbGwvU','flags','../../helpers/performance/constants','close','createPercyConfig','tmpdir','nodeRequest','percy.json','OtWaz','fetchPercyToken','start','QNUii','pipe','Percy\x20config\x20created\x20at\x20','exec:stop','gCjQT','writeFile','Zweqw','../logger'];a113_0x212f=function(){return _0x4f0cf0;};return a113_0x212f();}const a113_0x59f86f=a113_0x459b;(function(_0x4d7a55,_0x1b4f29){const _0x179447=a113_0x459b,_0x2f9e3b=_0x4d7a55();while(!![]){try{const _0x2b3c64=-parseInt(_0x179447(0x1b0))/0x1+-parseInt(_0x179447(0x1da))/0x2+parseInt(_0x179447(0x1bd))/0x3*(-parseInt(_0x179447(0x1cd))/0x4)+parseInt(_0x179447(0x1ae))/0x5*(-parseInt(_0x179447(0x1b9))/0x6)+-parseInt(_0x179447(0x1ce))/0x7*(-parseInt(_0x179447(0x1c9))/0x8)+parseInt(_0x179447(0x1dd))/0x9*(-parseInt(_0x179447(0x1e6))/0xa)+parseInt(_0x179447(0x1c2))/0xb;if(_0x2b3c64===_0x1b4f29)break;else _0x2f9e3b['push'](_0x2f9e3b['shift']());}catch(_0x5c261d){_0x2f9e3b['push'](_0x2f9e3b['shift']());}}}(a113_0x212f,0xa2594));const fs=require('fs'),path=require('path'),os=require('os'),{spawn}=require(a113_0x59f86f(0x1c0)),helper=require('../helper'),logger=require('../logger')[a113_0x59f86f(0x1d1)],{getLogDir}=require(a113_0x59f86f(0x1f8)),testHubConstants=require('../../helpers/testhub/constants'),PerformanceTester=require('../../helpers/performance/performance-tester'),{PERCY_EVENTS:PerformanceEvents}=require(a113_0x59f86f(0x1e8)),PercyBinary=require(a113_0x59f86f(0x1b4));class Percy{#logfile=path['join'](getLogDir(),a113_0x59f86f(0x1c8));#address=process['env'][a113_0x59f86f(0x1c1)]||a113_0x59f86f(0x1e4);#binaryPath=null;#config=null;#proc=null;#logStream=null;#isApp=![];[a113_0x59f86f(0x1fa)]=![];constructor(_0x1bdefc){const _0x13ce6f=a113_0x59f86f;this.#config=_0x1bdefc,!!_0x1bdefc[_0x13ce6f(0x1dc)]&&(this.#isApp=!![]);}async #getBinaryPath(){const _0x1a2787=a113_0x59f86f;if(!this.#binaryPath){const _0x174b13=new PercyBinary();PerformanceTester[_0x1a2787(0x1f0)](PerformanceEvents['DOWNLOAD']),this.#binaryPath=await _0x174b13[_0x1a2787(0x1b2)](this.#config),PerformanceTester[_0x1a2787(0x1f9)](PerformanceEvents[_0x1a2787(0x1b8)]);}return this.#binaryPath;}async #sleep(_0xe225ad){return new Promise(_0xac4831=>setTimeout(_0xac4831,_0xe225ad));}async[a113_0x59f86f(0x1e0)](){const _0x113e36=a113_0x59f86f,_0x57d8cf={};_0x57d8cf[_0x113e36(0x1ab)]='GET',_0x57d8cf[_0x113e36(0x1f5)]='percy/healthcheck';const _0x3a1775=_0x57d8cf;try{const _0x4ead40=await helper['nodeRequest'](_0x3a1775[_0x113e36(0x1ab)],_0x3a1775[_0x113e36(0x1f5)],null,null,this.#address);if(_0x4ead40)return!![];}catch(_0x7cd1f6){return![];}}async[a113_0x59f86f(0x1f0)](){const _0x58089f=a113_0x59f86f,_0x4b945b={'WTFiq':_0x58089f(0x1b7),'DzQov':_0x58089f(0x1d2),'BHzar':function(_0x248dd6,_0x8b699,_0x5e6b0e,_0x119353){return _0x248dd6(_0x8b699,_0x5e6b0e,_0x119353);},'rODyJ':_0x58089f(0x1e9),'tgnlb':_0x58089f(0x1e2)},_0x2a2614=await this.#getBinaryPath(),_0x6f23e4={};_0x6f23e4[_0x58089f(0x1e7)]='a',this.#logStream=fs[_0x58089f(0x1b1)](this.#logfile,_0x6f23e4);const _0x38ae01=await this[_0x58089f(0x1ef)](),_0x44362c=await this[_0x58089f(0x1ea)]();if(!_0x38ae01)return![];const _0xfa266f=[(this.#isApp?_0x4b945b[_0x58089f(0x1cc)]:_0x4b945b[_0x58089f(0x1d7)])+_0x58089f(0x1ba)];_0x44362c&&_0xfa266f[_0x58089f(0x1d3)]('-c',_0x44362c);this.#proc=_0x4b945b[_0x58089f(0x1df)](spawn,_0x2a2614,_0xfa266f,{'env':Object['assign'](process['env'],{'PERCY_TOKEN':_0x38ae01,'TH_BUILD_UUID':process['env'][testHubConstants[_0x58089f(0x1d5)]['BROWSERSTACK_TESTHUB_UUID']]})}),this.#proc[_0x58089f(0x1fb)][_0x58089f(0x1f2)](this.#logStream),this.#proc['stderr'][_0x58089f(0x1f2)](this.#logStream),this[_0x58089f(0x1fa)]=!![];var _0x4a6aa1=this;this.#proc['on'](_0x4b945b[_0x58089f(0x1ac)],function(_0x5487d8){_0x4a6aa1['isProcessRunning']=![];});do{const _0x556bce=await this['healthcheck']();if(_0x556bce)return logger[_0x58089f(0x1c3)](_0x4b945b['tgnlb']),!![];await this.#sleep(0x3e8);}while(this['isProcessRunning']);return![];}async['stop'](){const _0x105b1d=a113_0x59f86f,_0x1cdd55={'cNrqT':function(_0x239252,_0x114f0){return _0x239252(_0x114f0);},'Zweqw':function(_0x224fbf,_0x4b32fa,_0x3fa8e3){return _0x224fbf(_0x4b32fa,_0x3fa8e3);},'OtWaz':_0x105b1d(0x1f4),'QNUii':'close'},_0x5c290f=await this.#getBinaryPath();return new Promise((_0x5ba7ce,_0x5b12cd)=>{const _0x1ffdc2=_0x105b1d,_0x1d73cf=_0x1cdd55[_0x1ffdc2(0x1f7)](spawn,_0x5c290f,[_0x1cdd55[_0x1ffdc2(0x1ee)]]);_0x1d73cf['on'](_0x1cdd55[_0x1ffdc2(0x1f1)],_0x1ff73b=>{const _0x3186f4=_0x1ffdc2;this[_0x3186f4(0x1fa)]=![],this.#logStream&&(this.#logStream[_0x3186f4(0x1f9)](),this.#logStream=null),_0x1cdd55[_0x3186f4(0x1ca)](_0x5ba7ce,_0x1ff73b);});});}['isRunning'](){return this['isProcessRunning'];}async[a113_0x59f86f(0x1ef)](){const _0x5e46fd=a113_0x59f86f,_0x425d36={};_0x425d36[_0x5e46fd(0x1ad)]='app',_0x425d36[_0x5e46fd(0x1be)]=_0x5e46fd(0x1bc),_0x425d36[_0x5e46fd(0x1d6)]=_0x5e46fd(0x1e5),_0x425d36[_0x5e46fd(0x1bb)]=_0x5e46fd(0x1c4);const _0x3897ec=_0x425d36,_0x30bd5e=this.#config[_0x5e46fd(0x1c7)];try{const _0x31ddc8=this.#isApp?_0x3897ec['cqNbO']:_0x3897ec[_0x5e46fd(0x1be)],_0x1b0fee=await helper[_0x5e46fd(0x1ec)](_0x3897ec[_0x5e46fd(0x1d6)],_0x5e46fd(0x1c5)+_0x30bd5e+'&type='+_0x31ddc8,{},this.#config),_0x1c60da=_0x1b0fee[_0x5e46fd(0x1bf)];return logger['debug'](_0x3897ec[_0x5e46fd(0x1bb)]),_0x1c60da[_0x5e46fd(0x1b6)];}catch(_0xa346ba){return logger[_0x5e46fd(0x1e1)]('Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20'+_0xa346ba),null;}}async[a113_0x59f86f(0x1ea)](){const _0xe7bb38=a113_0x59f86f,_0xcacfea={'LqNRW':function(_0x199caa,_0x586617){return _0x199caa(_0x586617);},'MdZUp':function(_0x4a253c,_0x102202){return _0x4a253c+_0x102202;},'Gdnap':_0xe7bb38(0x1f3),'WErpo':_0xe7bb38(0x1ed)};if(!this.#config[_0xe7bb38(0x1cf)])return null;const _0x1badda=path[_0xe7bb38(0x1cb)](os[_0xe7bb38(0x1eb)](),_0xcacfea[_0xe7bb38(0x1de)]),_0x4e3bdd=this.#config[_0xe7bb38(0x1cf)];return!_0x4e3bdd['version']&&(_0x4e3bdd[_0xe7bb38(0x1d4)]='2'),new Promise((_0x4a4447,_0x37a859)=>{const _0x175e21=_0xe7bb38,_0xfa2af4={'ZfSxw':function(_0x9707be,_0x431ca1){const _0x160eba=a113_0x459b;return _0xcacfea[_0x160eba(0x1b3)](_0x9707be,_0x431ca1);},'lMHSF':function(_0x4dcad0,_0x2515c3){return _0xcacfea['MdZUp'](_0x4dcad0,_0x2515c3);},'Aavoc':_0xcacfea[_0x175e21(0x1db)],'EgeRI':function(_0x11127c,_0xa1f57b){const _0x4a5628=_0x175e21;return _0xcacfea[_0x4a5628(0x1b3)](_0x11127c,_0xa1f57b);}};fs[_0x175e21(0x1f6)](_0x1badda,JSON[_0x175e21(0x1d0)](_0x4e3bdd),_0x289b23=>{const _0x1d1309=_0x175e21;_0x289b23&&(logger[_0x1d1309(0x1e1)](_0x1d1309(0x1b5)+_0x289b23),_0xfa2af4[_0x1d1309(0x1af)](_0x4a4447,null)),logger[_0x1d1309(0x1c3)](_0xfa2af4[_0x1d1309(0x1e3)](_0xfa2af4[_0x1d1309(0x1d8)],_0x1badda)),_0xfa2af4[_0x1d1309(0x1c6)](_0x4a4447,_0x1badda);});});}}module[a113_0x59f86f(0x1d9)]=Percy;
1
+ const a113_0x91e113=a113_0x1b22;(function(_0x108eff,_0xa337c1){const _0x56eb20=a113_0x1b22,_0x5703d9=_0x108eff();while(!![]){try{const _0x3ccd27=-parseInt(_0x56eb20(0x1f0))/0x1*(parseInt(_0x56eb20(0x22a))/0x2)+parseInt(_0x56eb20(0x20a))/0x3+parseInt(_0x56eb20(0x219))/0x4+parseInt(_0x56eb20(0x20e))/0x5*(-parseInt(_0x56eb20(0x221))/0x6)+-parseInt(_0x56eb20(0x21c))/0x7*(-parseInt(_0x56eb20(0x20f))/0x8)+parseInt(_0x56eb20(0x1f8))/0x9*(parseInt(_0x56eb20(0x1dc))/0xa)+-parseInt(_0x56eb20(0x216))/0xb*(-parseInt(_0x56eb20(0x226))/0xc);if(_0x3ccd27===_0xa337c1)break;else _0x5703d9['push'](_0x5703d9['shift']());}catch(_0x54306b){_0x5703d9['push'](_0x5703d9['shift']());}}}(a113_0x14c9,0x80717));function a113_0x1b22(_0x8e3d31,_0x4765eb){const _0x14c9a6=a113_0x14c9();return a113_0x1b22=function(_0x1b22bb,_0x35ff69){_0x1b22bb=_0x1b22bb-0x1dc;let _0x1fa27d=_0x14c9a6[_0x1b22bb];return _0x1fa27d;},a113_0x1b22(_0x8e3d31,_0x4765eb);}const fs=require('fs'),path=require(a113_0x91e113(0x20d)),os=require('os'),{spawn}=require('child_process'),helper=require('../helper'),logger=require(a113_0x91e113(0x207))[a113_0x91e113(0x217)],{getLogDir}=require(a113_0x91e113(0x207)),testHubConstants=require(a113_0x91e113(0x222)),PerformanceTester=require(a113_0x91e113(0x1f2)),{PERCY_EVENTS:PerformanceEvents}=require(a113_0x91e113(0x1dd)),PercyBinary=require(a113_0x91e113(0x227));function a113_0x14c9(){const _0x3adf3b=['ORHmz','6340zzpuHp','healthcheck','../../helpers/performance/performance-tester','stringify','Error\x20creating\x20percy\x20config:\x20','createWriteStream','CyiNe','createPercyConfig','32697iODnEY','Percy\x20config\x20created\x20at\x20','xNrDG','stop','error','app:exec','start','env','EEyCG',':start','nodeRequest','Percy\x20fetch\x20token\x20success','percy/healthcheck','lqBxP','wHSZb','../logger','tcWQP','dQaNJ','940170vWylzA','fetchPercyToken','close','path','355JijcoZ','16gmSMJH','Percy\x20healthcheck\x20successful','end','&type=','push','exec:stop','token','11pDROqa','winstonLogger','dbayB','1025456edNzJy','projectName','GET','1394806CNfSEr','percyOptions','isProcessRunning','PJmfB','debug','55056AeAzVx','../../helpers/testhub/constants','pipe','kGDkz','assign','731364tgWekv','./PercyBinary','data','version','38lDDnhQ','app','join','740EDULAB','../../helpers/performance/constants','WsYnN','PERCY_SERVER_ADDRESS','ICaSk','xJKDf','ENV_VAR','getBinaryPath','percy.log','stdout','pVpiN','eJghf','DOWNLOAD','TSecM','flags','http://localhost:5338','BROWSERSTACK_TESTHUB_UUID','automate','percy.json'];a113_0x14c9=function(){return _0x3adf3b;};return a113_0x14c9();}class Percy{#logfile=path[a113_0x91e113(0x22c)](getLogDir(),a113_0x91e113(0x1e4));#address=process[a113_0x91e113(0x1ff)][a113_0x91e113(0x1df)]||a113_0x91e113(0x1eb);#binaryPath=null;#config=null;#proc=null;#logStream=null;#isApp=![];['isProcessRunning']=![];constructor(_0x494996){this.#config=_0x494996,!!_0x494996['app']&&(this.#isApp=!![]);}async #getBinaryPath(){const _0x13baf5=a113_0x91e113;if(!this.#binaryPath){const _0x1f4da6=new PercyBinary();PerformanceTester[_0x13baf5(0x1fe)](PerformanceEvents[_0x13baf5(0x1e8)]),this.#binaryPath=await _0x1f4da6[_0x13baf5(0x1e3)](this.#config),PerformanceTester[_0x13baf5(0x211)](PerformanceEvents[_0x13baf5(0x1e8)]);}return this.#binaryPath;}async #sleep(_0x49f124){return new Promise(_0x33963a=>setTimeout(_0x33963a,_0x49f124));}async['healthcheck'](){const _0x130f7e=a113_0x91e113,_0x51298a={};_0x51298a[_0x130f7e(0x1e0)]=_0x130f7e(0x21b),_0x51298a[_0x130f7e(0x1e7)]=_0x130f7e(0x204);const _0x28cbd5=_0x51298a;try{const _0x454d04=await helper[_0x130f7e(0x202)](_0x28cbd5['ICaSk'],_0x28cbd5['eJghf'],null,null,this.#address);if(_0x454d04)return!![];}catch(_0x5ece83){return![];}}async[a113_0x91e113(0x1fe)](){const _0x28a346=a113_0x91e113,_0x183c3a={'VnqVT':_0x28a346(0x1fd),'PJmfB':'exec','dQaNJ':function(_0x7d9098,_0x4ab862,_0x538925,_0x2927e6){return _0x7d9098(_0x4ab862,_0x538925,_0x2927e6);},'TSecM':_0x28a346(0x20c),'dTmQd':_0x28a346(0x210)},_0x4c8fd3=await this.#getBinaryPath(),_0x131423={};_0x131423[_0x28a346(0x1ea)]='a',this.#logStream=fs[_0x28a346(0x1f5)](this.#logfile,_0x131423);const _0x18de97=await this[_0x28a346(0x20b)](),_0x32301d=await this[_0x28a346(0x1f7)]();if(!_0x18de97)return![];const _0x5dcd1e=[(this.#isApp?_0x183c3a['VnqVT']:_0x183c3a[_0x28a346(0x21f)])+_0x28a346(0x201)];_0x32301d&&_0x5dcd1e[_0x28a346(0x213)]('-c',_0x32301d);this.#proc=_0x183c3a[_0x28a346(0x209)](spawn,_0x4c8fd3,_0x5dcd1e,{'env':Object[_0x28a346(0x225)](process['env'],{'PERCY_TOKEN':_0x18de97,'TH_BUILD_UUID':process['env'][testHubConstants[_0x28a346(0x1e2)][_0x28a346(0x1ec)]]})}),this.#proc[_0x28a346(0x1e5)][_0x28a346(0x223)](this.#logStream),this.#proc['stderr'][_0x28a346(0x223)](this.#logStream),this[_0x28a346(0x21e)]=!![];var _0x272c6b=this;this.#proc['on'](_0x183c3a[_0x28a346(0x1e9)],function(_0x46dce5){const _0x54a68d=_0x28a346;_0x272c6b[_0x54a68d(0x21e)]=![];});do{const _0x158bb6=await this[_0x28a346(0x1f1)]();if(_0x158bb6)return logger[_0x28a346(0x220)](_0x183c3a['dTmQd']),!![];await this.#sleep(0x3e8);}while(this[_0x28a346(0x21e)]);return![];}async[a113_0x91e113(0x1fb)](){const _0x3fc002=a113_0x91e113,_0x10d050={'xJKDf':function(_0x430e05,_0x5bf34e){return _0x430e05(_0x5bf34e);},'pVpiN':function(_0x274080,_0x174173,_0x4f66a8){return _0x274080(_0x174173,_0x4f66a8);},'CyiNe':_0x3fc002(0x214),'PFnbE':'close'},_0x2c06e1=await this.#getBinaryPath();return new Promise((_0x4a4d4f,_0x2c9053)=>{const _0x3ffb7d=_0x3fc002,_0x4b99cc={'EEyCG':function(_0x2f1105,_0x1bb233){const _0x3cfbbd=a113_0x1b22;return _0x10d050[_0x3cfbbd(0x1e1)](_0x2f1105,_0x1bb233);}},_0x279644=_0x10d050[_0x3ffb7d(0x1e6)](spawn,_0x2c06e1,[_0x10d050[_0x3ffb7d(0x1f6)]]);_0x279644['on'](_0x10d050['PFnbE'],_0x5b3a8b=>{const _0x30fa9a=_0x3ffb7d;this[_0x30fa9a(0x21e)]=![],this.#logStream&&(this.#logStream[_0x30fa9a(0x211)](),this.#logStream=null),_0x4b99cc[_0x30fa9a(0x200)](_0x4a4d4f,_0x5b3a8b);});});}['isRunning'](){const _0x472ae5=a113_0x91e113;return this[_0x472ae5(0x21e)];}async[a113_0x91e113(0x20b)](){const _0xa222c7=a113_0x91e113,_0x2524ec={};_0x2524ec[_0xa222c7(0x224)]=_0xa222c7(0x22b),_0x2524ec[_0xa222c7(0x1ef)]=_0xa222c7(0x1ed),_0x2524ec[_0xa222c7(0x1de)]=_0xa222c7(0x21b),_0x2524ec['wHSZb']=_0xa222c7(0x203);const _0x4393dc=_0x2524ec,_0x4a3c4f=this.#config[_0xa222c7(0x21a)];try{const _0x1329f4=this.#isApp?_0x4393dc['kGDkz']:_0x4393dc[_0xa222c7(0x1ef)],_0x2fdce3=await helper['nodeRequest'](_0x4393dc[_0xa222c7(0x1de)],'api/app_percy/get_project_token?name='+_0x4a3c4f+_0xa222c7(0x212)+_0x1329f4,{},this.#config),_0x166884=_0x2fdce3[_0xa222c7(0x228)];return logger[_0xa222c7(0x220)](_0x4393dc[_0xa222c7(0x206)]),_0x166884[_0xa222c7(0x215)];}catch(_0x3b109b){return logger[_0xa222c7(0x1fc)]('Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20'+_0x3b109b),null;}}async[a113_0x91e113(0x1f7)](){const _0xb5eb4a=a113_0x91e113,_0x14c76a={'dbayB':function(_0x346026,_0x2f7ac5){return _0x346026(_0x2f7ac5);},'EsuJm':function(_0x7d0704,_0x33ce0c){return _0x7d0704+_0x33ce0c;},'lqBxP':_0xb5eb4a(0x1f9),'xNrDG':function(_0x32a539,_0x10792d){return _0x32a539(_0x10792d);},'tcWQP':_0xb5eb4a(0x1ee)};if(!this.#config[_0xb5eb4a(0x21d)])return null;const _0x23f122=path[_0xb5eb4a(0x22c)](os['tmpdir'](),_0x14c76a[_0xb5eb4a(0x208)]),_0x1ef953=this.#config[_0xb5eb4a(0x21d)];return!_0x1ef953[_0xb5eb4a(0x229)]&&(_0x1ef953['version']='2'),new Promise((_0x5bf2a1,_0x3a31b6)=>{const _0x344066=_0xb5eb4a;fs['writeFile'](_0x23f122,JSON[_0x344066(0x1f3)](_0x1ef953),_0x14aa6c=>{const _0x3d5585=_0x344066;_0x14aa6c&&(logger[_0x3d5585(0x1fc)](_0x3d5585(0x1f4)+_0x14aa6c),_0x14c76a[_0x3d5585(0x218)](_0x5bf2a1,null)),logger[_0x3d5585(0x220)](_0x14c76a['EsuJm'](_0x14c76a[_0x3d5585(0x205)],_0x23f122)),_0x14c76a[_0x3d5585(0x1fa)](_0x5bf2a1,_0x23f122);});});}}module['exports']=Percy;
@@ -1 +1 @@
1
- const a114_0x24d1cc=a114_0x1e8a;(function(_0x3ba036,_0x4b22b5){const _0x3f5445=a114_0x1e8a,_0x4cdda9=_0x3ba036();while(!![]){try{const _0x1c1e71=-parseInt(_0x3f5445(0x205))/0x1*(-parseInt(_0x3f5445(0x18e))/0x2)+-parseInt(_0x3f5445(0x1b8))/0x3+parseInt(_0x3f5445(0x21c))/0x4*(parseInt(_0x3f5445(0x19d))/0x5)+parseInt(_0x3f5445(0x20a))/0x6+parseInt(_0x3f5445(0x1c6))/0x7*(-parseInt(_0x3f5445(0x1dd))/0x8)+parseInt(_0x3f5445(0x1cb))/0x9+-parseInt(_0x3f5445(0x1a8))/0xa*(parseInt(_0x3f5445(0x21d))/0xb);if(_0x1c1e71===_0x4b22b5)break;else _0x4cdda9['push'](_0x4cdda9['shift']());}catch(_0x5c3869){_0x4cdda9['push'](_0x4cdda9['shift']());}}}(a114_0x2dc4,0xa37c3));const {https}=require('follow-redirects'),url=require('url'),yauzl=require('yauzl'),fs=require('fs'),path=require(a114_0x24d1cc(0x1b3)),os=require('os'),{spawn}=require(a114_0x24d1cc(0x18f)),HttpsProxyAgent=require(a114_0x24d1cc(0x1ae)),logger=require(a114_0x24d1cc(0x20f))['winstonLogger'];function a114_0x1e8a(_0x1ee63c,_0x17f4c9){const _0x2dc4c0=a114_0x2dc4();return a114_0x1e8a=function(_0x1e8afc,_0xd24b77){_0x1e8afc=_0x1e8afc-0x18e;let _0x2b2033=_0x2dc4c0[_0x1e8afc];return _0x2b2033;},a114_0x1e8a(_0x1ee63c,_0x17f4c9);}class PercyBinary{#hostOS=process[a114_0x24d1cc(0x1e1)];#httpPath=null;#binaryName=a114_0x24d1cc(0x1e6);#orderedPaths=[path[a114_0x24d1cc(0x1ed)](this.#homedir(),'.browserstack'),process[a114_0x24d1cc(0x1eb)](),os[a114_0x24d1cc(0x1b0)]()];constructor(){const _0x251d13=a114_0x24d1cc,_0x30d182={};_0x30d182['Pvuog']='https://github.com/percy/cli/releases/latest/download',_0x30d182[_0x251d13(0x1d6)]=function(_0x3def5f,_0x42bb9a){return _0x3def5f+_0x42bb9a;},_0x30d182[_0x251d13(0x211)]='/percy-osx.zip',_0x30d182[_0x251d13(0x1a1)]=function(_0x13ef01,_0x1a3961){return _0x13ef01+_0x1a3961;},_0x30d182['sBHQN']=_0x251d13(0x193),_0x30d182[_0x251d13(0x202)]=_0x251d13(0x21b),_0x30d182['msFGb']='/percy-linux.zip';const _0x26797a=_0x30d182,_0x7b77a7=_0x26797a['Pvuog'];if(this.#hostOS[_0x251d13(0x1ff)](/darwin|mac os/i))this.#httpPath=_0x26797a['vcQkl'](_0x7b77a7,_0x26797a[_0x251d13(0x211)]);else this.#hostOS['match'](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x26797a[_0x251d13(0x1a1)](_0x7b77a7,_0x26797a[_0x251d13(0x1e3)]),this.#binaryName=_0x26797a[_0x251d13(0x202)]):this.#httpPath=_0x26797a['HasoW'](_0x7b77a7,_0x26797a[_0x251d13(0x19c)]);}#getAvailableDirs(){const _0x572c7b=a114_0x24d1cc,_0x2e9bca={};_0x2e9bca[_0x572c7b(0x1c8)]=function(_0x42492f,_0x5955a9){return _0x42492f<_0x5955a9;},_0x2e9bca[_0x572c7b(0x1cd)]='Error\x20trying\x20to\x20download\x20percy\x20binary';const _0x27af33=_0x2e9bca;for(var _0x3e1d94=0x0;_0x27af33[_0x572c7b(0x1c8)](_0x3e1d94,this.#orderedPaths[_0x572c7b(0x1c9)]);_0x3e1d94++){var _0x2a219c=this.#orderedPaths[_0x3e1d94];if(this.#makePath(_0x2a219c))return _0x2a219c;}throw new Error(_0x27af33[_0x572c7b(0x1cd)]);}#makePath(_0x5b65d9){const _0x50c887=a114_0x24d1cc;try{return _0x5b65d9&&!this.#checkPath(_0x5b65d9)&&fs[_0x50c887(0x1a9)](_0x5b65d9),!![];}catch{return![];}}#checkPath(_0x41d7ef,_0x397904){const _0x30fd1a=a114_0x24d1cc,_0x3ff978={};_0x3ff978[_0x30fd1a(0x1ec)]=function(_0x41d73a,_0xbab86c){return _0x41d73a|_0xbab86c;},_0x3ff978[_0x30fd1a(0x194)]=function(_0x113c98,_0x4ace00){return _0x113c98!==_0x4ace00;},_0x3ff978[_0x30fd1a(0x203)]=_0x30fd1a(0x1b6);const _0x215cee=_0x3ff978;_0x397904=_0x397904||_0x215cee[_0x30fd1a(0x1ec)](fs[_0x30fd1a(0x198)],fs[_0x30fd1a(0x1be)]);try{return fs['accessSync'](_0x41d7ef,_0x397904),!![];}catch(_0x5b7fe8){if(_0x215cee[_0x30fd1a(0x194)](typeof fs[_0x30fd1a(0x1a6)],_0x215cee[_0x30fd1a(0x203)]))return![];try{return fs[_0x30fd1a(0x1ee)](_0x41d7ef),!![];}catch(_0x703183){return![];}}}#getETagPath(_0x32edba){return path['join'](_0x32edba,this.#binaryName+'.etag');}#loadETag(_0x3670f2){const _0x47ca27=a114_0x24d1cc,_0x1e3513={};_0x1e3513[_0x47ca27(0x1d9)]='utf8';const _0x2fda90=_0x1e3513,_0x47580c=this.#getETagPath(_0x3670f2);if(this.#checkPath(_0x47580c))try{return fs[_0x47ca27(0x1e9)](_0x47580c,_0x2fda90[_0x47ca27(0x1d9)])[_0x47ca27(0x1f0)]();}catch(_0x49c8df){logger[_0x47ca27(0x1ba)](_0x47ca27(0x206)+_0x49c8df);}return null;}#saveETag(_0x3c663b,_0x4603af){const _0x518509=a114_0x24d1cc,_0x499300={};_0x499300['PJAgC']=_0x518509(0x214);const _0x9f4d54=_0x499300;if(!_0x4603af)return;try{const _0x21769a=this.#getETagPath(_0x3c663b);fs[_0x518509(0x204)](_0x21769a,_0x4603af),logger['debug'](_0x9f4d54[_0x518509(0x1ab)]);}catch(_0x44ceb7){logger[_0x518509(0x1ba)]('Failed\x20to\x20save\x20ETag\x20file:\x20'+_0x44ceb7);}}async #handleBinaryDownload(_0x1020eb,_0x105a7d,_0x2f1328){const _0x30a750=a114_0x24d1cc,_0x10580e={};_0x10580e[_0x30a750(0x1fe)]=_0x30a750(0x1ca);const _0x4d1032=_0x10580e,_0x1fa231=await this['validateBinary'](_0x1020eb[_0x30a750(0x1df)]);if(!_0x1fa231){logger[_0x30a750(0x1a2)](_0x4d1032['bXSrv']);const _0x8d5ea5=await this[_0x30a750(0x19b)](_0x105a7d,_0x2f1328);return _0x8d5ea5[_0x30a750(0x1df)];}return _0x1020eb[_0x30a750(0x1df)];}async[a114_0x24d1cc(0x1ce)](_0x3acc40){const _0x1f0534=a114_0x24d1cc,_0x72a374={};_0x72a374[_0x1f0534(0x1c3)]=_0x1f0534(0x1ad),_0x72a374[_0x1f0534(0x1e4)]=_0x1f0534(0x1b2);const _0x115c47=_0x72a374,_0x40c8dd=this.#getAvailableDirs(),_0x468dd8=path['join'](_0x40c8dd,this.#binaryName);if(this.#checkPath(_0x468dd8,fs[_0x1f0534(0x1da)])){const _0x53b97e=this.#loadETag(_0x40c8dd);if(_0x53b97e)try{const _0x3ccfdf=await this['download'](_0x3acc40,_0x40c8dd,_0x53b97e);if(!_0x3ccfdf['needsUpdate'])return logger['debug'](_0x115c47[_0x1f0534(0x1c3)]),_0x468dd8;return logger[_0x1f0534(0x199)](_0x115c47[_0x1f0534(0x1e4)]),await this.#handleBinaryDownload(_0x3ccfdf,_0x3acc40,_0x40c8dd);}catch(_0x3eedda){return logger[_0x1f0534(0x1ba)]('Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20'+_0x3eedda),_0x468dd8;}}const _0x543678=await this[_0x1f0534(0x19b)](_0x3acc40,_0x40c8dd);return await this.#handleBinaryDownload(_0x543678,_0x3acc40,_0x40c8dd);}[a114_0x24d1cc(0x19b)](_0x4f32cc,_0x24534d,_0x434cd3=null){const _0x437a56=a114_0x24d1cc,_0x279750={'zeqJb':function(_0x4b050f,_0x3a8fdf){return _0x4b050f(_0x3a8fdf);},'TEvRl':function(_0x5e2932,_0x13b183){return _0x5e2932===_0x13b183;},'NIyBU':function(_0x658be2,_0xfb8165){return _0x658be2(_0xfb8165);},'otBVS':_0x437a56(0x1a2),'agngH':_0x437a56(0x1bd),'jDfGR':function(_0x1dd412,_0x2afb9f){return _0x1dd412(_0x2afb9f);},'DdPSa':function(_0x36160e,_0x1b5552){return _0x36160e+_0x1b5552;},'RkRWp':_0x437a56(0x1b1)};_0x24534d&&!this.#checkPath(_0x24534d)&&fs['mkdirSync'](_0x24534d);const _0x2cdb49=this.#binaryName,_0x3d9495=path['join'](_0x24534d,_0x279750[_0x437a56(0x1bc)](_0x2cdb49,_0x279750[_0x437a56(0x1d7)])),_0x2ae285=fs[_0x437a56(0x1f8)](_0x3d9495),_0xe3ff50=url[_0x437a56(0x1aa)](this.#httpPath);if(_0x4f32cc['proxyHost']&&_0x4f32cc[_0x437a56(0x1af)]){const _0xda0413={};_0xda0413[_0x437a56(0x1db)]=_0x4f32cc[_0x437a56(0x1fb)],_0xda0413[_0x437a56(0x200)]=_0x4f32cc[_0x437a56(0x1af)],_0xe3ff50[_0x437a56(0x190)]=new HttpsProxyAgent(_0xda0413);}if(_0x4f32cc[_0x437a56(0x1d3)])try{_0xe3ff50['ca']=fs['readFileSync'](_0x4f32cc['useCaCertificate']);}catch(_0x33b02a){logger[_0x437a56(0x1a2)](_0x437a56(0x1c1)+_0x33b02a);}if(_0x434cd3){const _0x16d882={};_0x16d882['If-None-Match']=_0x434cd3,_0x16d882['Connection']=_0x279750[_0x437a56(0x1f2)],_0xe3ff50[_0x437a56(0x1bf)]=_0x16d882;}else{const _0x1a47a0={};_0x1a47a0[_0x437a56(0x1fc)]=_0x279750['agngH'],_0xe3ff50[_0x437a56(0x1bf)]=_0x1a47a0;}return new Promise((_0xf26f9,_0x50ea9b)=>{const _0x4ef417=_0x437a56,_0x42703f={'MZwmK':function(_0x2e89cd,_0x3fdbfd){const _0x1b5a2d=a114_0x1e8a;return _0x279750[_0x1b5a2d(0x201)](_0x2e89cd,_0x3fdbfd);}};https[_0x4ef417(0x1b5)](_0xe3ff50,_0x32c290=>{const _0x410760=_0x4ef417,_0x32c537={'UoUUc':function(_0x105e86,_0x176188){const _0x102dda=a114_0x1e8a;return _0x279750[_0x102dda(0x1f3)](_0x105e86,_0x176188);}};if(_0x434cd3&&_0x279750[_0x410760(0x21a)](_0x32c290['statusCode'],0x130)){_0x2ae285[_0x410760(0x1cf)]();const _0x525f75={};_0x525f75['needsUpdate']=![],_0x279750[_0x410760(0x1de)](_0xf26f9,_0x525f75);return;}const _0x4af23d=_0x32c290[_0x410760(0x1bf)]['etag'];_0x4af23d&&this.#saveETag(_0x24534d,_0x4af23d),_0x32c290[_0x410760(0x1dc)](_0x2ae285),_0x32c290['on'](_0x279750['otBVS'],function(_0x3e0649){const _0x23ae1c=_0x410760;logger[_0x23ae1c(0x1a2)](_0x23ae1c(0x1a5)+_0x3e0649),_0x32c537[_0x23ae1c(0x1c4)](_0x50ea9b,_0x3e0649);}),_0x2ae285['on'](_0x279750[_0x410760(0x1a3)],function(_0x5540ff){const _0x3d567c=_0x410760;logger[_0x3d567c(0x1a2)](_0x3d567c(0x1f7)+_0x5540ff),_0x42703f[_0x3d567c(0x1f4)](_0x50ea9b,_0x5540ff);}),_0x2ae285['on'](_0x279750[_0x410760(0x1f2)],()=>{const _0x2cb456=_0x410760;this[_0x2cb456(0x195)](_0x3d9495,_0x24534d)['then'](_0x1a5936=>_0xf26f9({'needsUpdate':!![],'binaryPath':_0x1a5936}))[_0x2cb456(0x1fa)](_0x50ea9b);});})['on'](_0x279750[_0x4ef417(0x1a3)],function(_0x25b2a7){const _0x554fcd=_0x4ef417;logger[_0x554fcd(0x1a2)](_0x554fcd(0x1e2)+_0x25b2a7),_0x279750['jDfGR'](_0x50ea9b,_0x25b2a7);});});}[a114_0x24d1cc(0x195)](_0x5837f0,_0x2b6067){const _0x568abf=a114_0x24d1cc,_0xaf2279={'Pnkns':function(_0xcacb7b,_0x5a3068){return _0xcacb7b(_0x5a3068);},'NkQhJ':_0x568abf(0x19f),'eCRGU':function(_0xc1fafd,_0x4207f4){return _0xc1fafd===_0x4207f4;},'QUdVR':_0x568abf(0x1f6),'uNGmr':'entry','kLNmw':'error'},_0x5b2d4e=this.#binaryName,_0x348d26=path[_0x568abf(0x1ed)](_0x2b6067,_0x5b2d4e);return new Promise((_0x5b45f5,_0x31291f)=>{const _0x3e36fd=_0x568abf,_0x3fffc2={'IWBXS':function(_0x2bab68,_0x5ef796){const _0x276697=a114_0x1e8a;return _0xaf2279[_0x276697(0x212)](_0x2bab68,_0x5ef796);},'PTtGT':_0xaf2279['NkQhJ'],'FMidD':function(_0x5888e9,_0x166d6b){const _0x4e2074=a114_0x1e8a;return _0xaf2279[_0x4e2074(0x1ea)](_0x5888e9,_0x166d6b);},'SSYfR':_0xaf2279[_0x3e36fd(0x1f5)],'hYKtk':_0xaf2279[_0x3e36fd(0x19a)],'DYJQw':_0xaf2279[_0x3e36fd(0x1b7)]},_0x13d75={};_0x13d75[_0x3e36fd(0x196)]=!![],yauzl[_0x3e36fd(0x218)](_0x5837f0,_0x13d75,function(_0x19fbde,_0x436a11){const _0x72b025=_0x3e36fd,_0x2c77dd={'MvTEB':function(_0xe87ee6,_0x54315a){const _0x15da22=a114_0x1e8a;return _0x3fffc2[_0x15da22(0x1d5)](_0xe87ee6,_0x54315a);},'NQEzo':_0x3fffc2[_0x72b025(0x1bb)],'Bninz':function(_0x43fdc0,_0x41c940){return _0x3fffc2['FMidD'](_0x43fdc0,_0x41c940);},'XHQSX':function(_0x16b9ed,_0x15081a){const _0x3d35cb=_0x72b025;return _0x3fffc2[_0x3d35cb(0x1d5)](_0x16b9ed,_0x15081a);},'Groej':_0x3fffc2['SSYfR']};_0x19fbde&&_0x3fffc2[_0x72b025(0x1d5)](_0x31291f,_0x19fbde),_0x436a11['readEntry'](),_0x436a11['on'](_0x3fffc2[_0x72b025(0x1a0)],_0xf4c0b8=>{const _0x1ae5b6=_0x72b025;if(/\/$/[_0x1ae5b6(0x20e)](_0xf4c0b8[_0x1ae5b6(0x1d2)]))_0x436a11[_0x1ae5b6(0x20d)]();else{const _0x2aa7b2=fs[_0x1ae5b6(0x1f8)](path['join'](_0x2b6067,_0xf4c0b8[_0x1ae5b6(0x1d2)]));_0x436a11[_0x1ae5b6(0x20c)](_0xf4c0b8,function(_0x292d66,_0x348113){const _0x3f9e7a=_0x1ae5b6;_0x292d66&&_0x2c77dd[_0x3f9e7a(0x1c7)](_0x31291f,_0x19fbde),_0x348113['on'](_0x2c77dd['NQEzo'],function(){const _0x1b5ab0=_0x3f9e7a;_0x2aa7b2[_0x1b5ab0(0x1bd)](),_0x436a11[_0x1b5ab0(0x20d)]();}),_0x348113[_0x3f9e7a(0x1dc)](_0x2aa7b2);}),_0x2c77dd[_0x1ae5b6(0x219)](_0xf4c0b8[_0x1ae5b6(0x1d2)],_0x5b2d4e)&&_0x436a11[_0x1ae5b6(0x1bd)]();}}),_0x436a11['on'](_0x3fffc2['DYJQw'],_0x4b545c=>{const _0x4e2e6f=_0x72b025;_0x3fffc2[_0x4e2e6f(0x1d5)](_0x31291f,_0x4b545c);}),_0x436a11[_0x72b025(0x1ef)](_0x3fffc2[_0x72b025(0x1bb)],()=>{const _0x5bbd8c=_0x72b025;fs[_0x5bbd8c(0x1d1)](_0x348d26,_0x2c77dd[_0x5bbd8c(0x1b9)],function(_0x4eacd3){const _0x4bfd25=_0x5bbd8c;_0x4eacd3&&_0x2c77dd[_0x4bfd25(0x19e)](_0x31291f,_0x4eacd3),_0x2c77dd[_0x4bfd25(0x1c7)](_0x5b45f5,_0x348d26);}),_0x436a11['close']();});});});}async[a114_0x24d1cc(0x213)](_0x348042){const _0x1944ce=a114_0x24d1cc,_0x50767e={'JAOJV':function(_0x20c40b,_0x5a5485){return _0x20c40b(_0x5a5485);},'WotCf':function(_0x1ecda8,_0x43a1af,_0x440796,_0x267407){return _0x1ecda8(_0x43a1af,_0x440796,_0x267407);},'NKwWT':_0x1944ce(0x1e7),'MGNTk':'data','fXBWx':_0x1944ce(0x1bd)},_0x1ee7cb=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x30491f,_0x357710)=>{const _0x10d8c9=_0x1944ce,_0x580584={};_0x580584[_0x10d8c9(0x1c5)]=process['env'];const _0x20282a=_0x50767e[_0x10d8c9(0x216)](spawn,_0x348042,[_0x50767e['NKwWT']],_0x580584);_0x20282a[_0x10d8c9(0x1d0)]['on'](_0x50767e[_0x10d8c9(0x1a7)],_0xab2875=>{const _0x2b3774=_0x10d8c9;_0x1ee7cb[_0x2b3774(0x20e)](_0xab2875)&&_0x50767e[_0x2b3774(0x197)](_0x30491f,!![]);}),_0x20282a['on'](_0x50767e[_0x10d8c9(0x1e8)],()=>{const _0x180b93=_0x10d8c9;_0x50767e[_0x180b93(0x197)](_0x30491f,![]);});});}#homedir(){const _0x41696a=a114_0x24d1cc,_0x3392c0={};_0x3392c0[_0x41696a(0x20b)]=function(_0x528fa0,_0x287458){return _0x528fa0===_0x287458;},_0x3392c0[_0x41696a(0x209)]=_0x41696a(0x217),_0x3392c0[_0x41696a(0x1f1)]=function(_0x97096b,_0x2438e8){return _0x97096b===_0x2438e8;},_0x3392c0[_0x41696a(0x191)]=_0x41696a(0x1c2),_0x3392c0['SIPCV']=function(_0x32e793,_0x54c4b8){return _0x32e793+_0x54c4b8;},_0x3392c0[_0x41696a(0x192)]=_0x41696a(0x210),_0x3392c0['vULTM']=function(_0x51cd3c,_0x34521b){return _0x51cd3c+_0x34521b;},_0x3392c0[_0x41696a(0x1ac)]='/Users/',_0x3392c0[_0x41696a(0x1a4)]=_0x41696a(0x1cc),_0x3392c0[_0x41696a(0x1d4)]='/root',_0x3392c0[_0x41696a(0x207)]=_0x41696a(0x1c0),_0x3392c0[_0x41696a(0x1d8)]=function(_0x4d73e4,_0x8a3edd){return _0x4d73e4||_0x8a3edd;};const _0x2d349c=_0x3392c0;if(_0x2d349c[_0x41696a(0x20b)](typeof os[_0x41696a(0x1e5)],_0x2d349c[_0x41696a(0x209)]))return os[_0x41696a(0x1e5)]();const _0x28eac0=process[_0x41696a(0x1c5)],_0x20d535=_0x28eac0['HOME'],_0x526bda=_0x28eac0[_0x41696a(0x1e0)]||_0x28eac0['USER']||_0x28eac0['LNAME']||_0x28eac0[_0x41696a(0x1b4)];if(_0x2d349c['epLDn'](process['platform'],_0x2d349c[_0x41696a(0x191)]))return _0x28eac0[_0x41696a(0x1f9)]||_0x2d349c[_0x41696a(0x1fd)](_0x28eac0[_0x41696a(0x208)],_0x28eac0['HOMEPATH'])||_0x20d535||null;if(_0x2d349c[_0x41696a(0x20b)](process[_0x41696a(0x1e1)],_0x2d349c['fGqhR']))return _0x20d535||(_0x526bda?_0x2d349c['vULTM'](_0x2d349c['IFrNJ'],_0x526bda):null);if(_0x2d349c[_0x41696a(0x20b)](process[_0x41696a(0x1e1)],_0x2d349c[_0x41696a(0x1a4)]))return _0x20d535||(_0x2d349c[_0x41696a(0x1f1)](process[_0x41696a(0x215)](),0x0)?_0x2d349c[_0x41696a(0x1d4)]:_0x526bda?_0x2d349c['SIPCV'](_0x2d349c[_0x41696a(0x207)],_0x526bda):null);return _0x2d349c['CNwuH'](_0x20d535,null);}}module['exports']=PercyBinary;function a114_0x2dc4(){const _0x22ceb4=['HOMEDRIVE','quvHY','6078408xWfyOE','SJMgT','openReadStream','readEntry','test','../logger','darwin','nTWYd','Pnkns','validateBinary','Saved\x20new\x20ETag\x20for\x20percy\x20binary','getuid','WotCf','function','open','Bninz','TEvRl','percy.exe','59848MXWIqb','4631qcAigp','2520134QFOyeO','child_process','agent','laagl','fGqhR','/percy-win.zip','uMiND','extractAndSaveBinary','lazyEntries','JAOJV','R_OK','debug','uNGmr','download','msFGb','150XtrUFV','XHQSX','end','hYKtk','HasoW','error','otBVS','UZpMS','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20','accessSync','MGNTk','39890GlYFEH','mkdirSync','parse','PJAgC','IFrNJ','Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)','https-proxy-agent','proxyPort','tmpdir','.zip','New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update','path','USERNAME','get','undefined','kLNmw','2919639yUphPF','Groej','warn','PTtGT','DdPSa','close','W_OK','headers','/home/','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20','win32','KMlAT','UoUUc','env','51653OHDQUJ','MvTEB','ziNNt','length','Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying','11578221bBhGOr','linux','GzXVh','getBinaryPath','destroy','stdout','chmod','fileName','useCaCertificate','CvopF','IWBXS','vcQkl','RkRWp','CNwuH','NGWRJ','X_OK','host','pipe','744dUKYDL','NIyBU','binaryPath','LOGNAME','platform','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20','sBHQN','VVGee','homedir','percy','--version','fXBWx','readFileSync','eCRGU','cwd','ckXno','join','statSync','once','trim','epLDn','agngH','zeqJb','MZwmK','QUdVR','0755','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20','createWriteStream','USERPROFILE','catch','proxyHost','Connection','SIPCV','bXSrv','match','port','jDfGR','kKzIK','ZmjIb','writeFileSync','1kGYXrb','Failed\x20to\x20read\x20ETag\x20file:\x20','hIwNz'];a114_0x2dc4=function(){return _0x22ceb4;};return a114_0x2dc4();}
1
+ const a114_0x1f5316=a114_0x4f74;(function(_0x9f1f20,_0x532efa){const _0xa7da66=a114_0x4f74,_0x49c363=_0x9f1f20();while(!![]){try{const _0x4aecfa=parseInt(_0xa7da66(0xe8))/0x1+-parseInt(_0xa7da66(0x161))/0x2+parseInt(_0xa7da66(0x163))/0x3+parseInt(_0xa7da66(0xfc))/0x4*(-parseInt(_0xa7da66(0xd1))/0x5)+parseInt(_0xa7da66(0xef))/0x6+parseInt(_0xa7da66(0x103))/0x7*(-parseInt(_0xa7da66(0x13c))/0x8)+parseInt(_0xa7da66(0x13b))/0x9;if(_0x4aecfa===_0x532efa)break;else _0x49c363['push'](_0x49c363['shift']());}catch(_0x9fc2dc){_0x49c363['push'](_0x49c363['shift']());}}}(a114_0x56cc,0xd509c));const {https}=require('follow-redirects'),url=require(a114_0x1f5316(0x111)),yauzl=require(a114_0x1f5316(0x151)),fs=require('fs'),path=require(a114_0x1f5316(0x130)),os=require('os'),{spawn}=require(a114_0x1f5316(0xf5)),HttpsProxyAgent=require(a114_0x1f5316(0x11f)),logger=require(a114_0x1f5316(0x119))[a114_0x1f5316(0x15e)];function a114_0x56cc(){const _0x45b188=['QCUra','Error\x20trying\x20to\x20download\x20percy\x20binary','iQLTM','open','eCXnM','win32','39907hpfTtH','zEJkF','TVTXi','dQUcc','VRbRg','fileName','vfJBF','.zip','darwin','LtyaO','cfkBD','OxyJP','pipe','length','url','If-None-Match','KfbKm','R_OK','W_OK','.browserstack','host','USERPROFILE','../logger','pcVBN','Tbjuw','DoaBA','homedir','oNuSH','https-proxy-agent','QmJtX','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20','mkdirSync','etag','match','WrpsN','twiZi','VmDzP','VwNXp','xJBfM','once','Zzsnp','createWriteStream','YPZNH','join','getuid','path','DXUNG','ZSfpa','ocPGx','wOtsd','EtVwj','needsUpdate','lazyEntries','entry','qCeIs','error','5492637iseGFR','568feDRxR','destroy','QJrin','parse','zdPYs','LfxQg','Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)','openReadStream','end','function','/percy-win.zip','llbWZ','hVMTf','ucHVN','Connection','extractAndSaveBinary','Failed\x20to\x20read\x20ETag\x20file:\x20','percy.exe','nnLMG','close','VnVXE','yauzl','exports','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20','data','/percy-linux.zip','readFileSync','linux','agent','test','krXzt','then','stdout','download','winstonLogger','pcmTV','catch','1777598ViJfCx','/Users/','1871616yTAZXJ','utf8','validateBinary','ZAnwb','undefined','.etag','QuZni','1830lXxCfE','LNAME','sCDCK','HcAWB','/percy-osx.zip','port','Saved\x20new\x20ETag\x20for\x20percy\x20binary','useCaCertificate','MVhGK','statusCode','Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20','ugzQa','XDGuA','wCJvt','platform','Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying','binaryPath','trim','sgtfZ','/root','tuOgl','warn','debug','173791PTmpwF','getBinaryPath','readEntry','WxqrE','LHIyr','env','percy','8080476JRznvD','Rqehm','proxyPort','QlazF','X_OK','pAOyG','child_process','LOGNAME','BtscK','HOMEDRIVE','headers','get','https://github.com/percy/cli/releases/latest/download','6432FYunKO'];a114_0x56cc=function(){return _0x45b188;};return a114_0x56cc();}class PercyBinary{#hostOS=process[a114_0x1f5316(0xdf)];#httpPath=null;#binaryName=a114_0x1f5316(0xee);#orderedPaths=[path[a114_0x1f5316(0x12e)](this.#homedir(),a114_0x1f5316(0x116)),process['cwd'](),os['tmpdir']()];constructor(){const _0x452331=a114_0x1f5316,_0x3b2e8a={};_0x3b2e8a['ZAnwb']=_0x452331(0xfb),_0x3b2e8a[_0x452331(0x126)]=function(_0x362284,_0x2db4d5){return _0x362284+_0x2db4d5;},_0x3b2e8a[_0x452331(0x12d)]=_0x452331(0xd5),_0x3b2e8a[_0x452331(0xf2)]=_0x452331(0x146),_0x3b2e8a[_0x452331(0xd9)]=_0x452331(0x14d),_0x3b2e8a[_0x452331(0x128)]=function(_0x32eb0a,_0x1e847e){return _0x32eb0a+_0x1e847e;},_0x3b2e8a['ZSfpa']=_0x452331(0x155);const _0x313cf2=_0x3b2e8a,_0x44eca4=_0x313cf2[_0x452331(0xcd)];if(this.#hostOS[_0x452331(0x124)](/darwin|mac os/i))this.#httpPath=_0x313cf2[_0x452331(0x126)](_0x44eca4,_0x313cf2[_0x452331(0x12d)]);else this.#hostOS[_0x452331(0x124)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x313cf2[_0x452331(0x126)](_0x44eca4,_0x313cf2[_0x452331(0xf2)]),this.#binaryName=_0x313cf2['MVhGK']):this.#httpPath=_0x313cf2[_0x452331(0x128)](_0x44eca4,_0x313cf2[_0x452331(0x132)]);}#getAvailableDirs(){const _0x1159a3=a114_0x1f5316,_0x35384d={};_0x35384d['Tbjuw']=function(_0x38b400,_0x2dcde1){return _0x38b400<_0x2dcde1;},_0x35384d[_0x1159a3(0xd0)]=_0x1159a3(0xfe);const _0x368d51=_0x35384d;for(var _0x2798bb=0x0;_0x368d51[_0x1159a3(0x11b)](_0x2798bb,this.#orderedPaths[_0x1159a3(0x110)]);_0x2798bb++){var _0x5e7901=this.#orderedPaths[_0x2798bb];if(this.#makePath(_0x5e7901))return _0x5e7901;}throw new Error(_0x368d51[_0x1159a3(0xd0)]);}#makePath(_0x4d704c){try{return _0x4d704c&&!this.#checkPath(_0x4d704c)&&fs['mkdirSync'](_0x4d704c),!![];}catch{return![];}}#checkPath(_0x589ba4,_0x5afe1f){const _0x47bd45=a114_0x1f5316,_0x2cb2d8={};_0x2cb2d8['zEJkF']=function(_0x28b2ec,_0x12c296){return _0x28b2ec|_0x12c296;},_0x2cb2d8[_0x47bd45(0xdd)]=function(_0x3ca5d6,_0x369a25){return _0x3ca5d6!==_0x369a25;},_0x2cb2d8[_0x47bd45(0x10d)]=_0x47bd45(0xce);const _0x490e0d=_0x2cb2d8;_0x5afe1f=_0x5afe1f||_0x490e0d[_0x47bd45(0x104)](fs[_0x47bd45(0x114)],fs[_0x47bd45(0x115)]);try{return fs['accessSync'](_0x589ba4,_0x5afe1f),!![];}catch(_0xab6b35){if(_0x490e0d[_0x47bd45(0xdd)](typeof fs['accessSync'],_0x490e0d[_0x47bd45(0x10d)]))return![];try{return fs['statSync'](_0x589ba4),!![];}catch(_0xdd07bb){return![];}}}#getETagPath(_0x483b1e){const _0x5079de=a114_0x1f5316;return path[_0x5079de(0x12e)](_0x483b1e,this.#binaryName+_0x5079de(0xcf));}#loadETag(_0x426525){const _0x38c57e=a114_0x1f5316,_0x27a4a3={};_0x27a4a3['hrFkD']=_0x38c57e(0x164);const _0x4f08e0=_0x27a4a3,_0x2de571=this.#getETagPath(_0x426525);if(this.#checkPath(_0x2de571))try{return fs[_0x38c57e(0x156)](_0x2de571,_0x4f08e0['hrFkD'])[_0x38c57e(0xe2)]();}catch(_0xf809e0){logger[_0x38c57e(0xe6)](_0x38c57e(0x14c)+_0xf809e0);}return null;}#saveETag(_0x37af34,_0x154670){const _0x2eb6b5=a114_0x1f5316,_0x7e70af={};_0x7e70af[_0x2eb6b5(0x125)]=_0x2eb6b5(0xd7);const _0x301132=_0x7e70af;if(!_0x154670)return;try{const _0x1caa5c=this.#getETagPath(_0x37af34);fs['writeFileSync'](_0x1caa5c,_0x154670),logger[_0x2eb6b5(0xe7)](_0x301132[_0x2eb6b5(0x125)]);}catch(_0x11bda6){logger['warn']('Failed\x20to\x20save\x20ETag\x20file:\x20'+_0x11bda6);}}async #handleBinaryDownload(_0x2f12a7,_0x7002a0,_0x447efa){const _0x37f296=a114_0x1f5316,_0x579c59={};_0x579c59[_0x37f296(0x140)]=_0x37f296(0xe0);const _0x242842=_0x579c59,_0xe669dc=await this['validateBinary'](_0x2f12a7[_0x37f296(0xe1)]);if(!_0xe669dc){logger[_0x37f296(0x13a)](_0x242842[_0x37f296(0x140)]);const _0x37fb21=await this[_0x37f296(0x15d)](_0x7002a0,_0x447efa);return _0x37fb21[_0x37f296(0xe1)];}return _0x2f12a7[_0x37f296(0xe1)];}async[a114_0x1f5316(0xe9)](_0x541419){const _0xc0f736=a114_0x1f5316,_0x33c222={};_0x33c222[_0xc0f736(0x131)]=_0xc0f736(0x142),_0x33c222['tZEDS']='New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update';const _0x34428e=_0x33c222,_0x38457d=this.#getAvailableDirs(),_0x4ef2f2=path[_0xc0f736(0x12e)](_0x38457d,this.#binaryName);if(this.#checkPath(_0x4ef2f2,fs[_0xc0f736(0xf3)])){const _0x9c82e4=this.#loadETag(_0x38457d);if(_0x9c82e4)try{const _0x2b564d=await this['download'](_0x541419,_0x38457d,_0x9c82e4);if(!_0x2b564d[_0xc0f736(0x136)])return logger['debug'](_0x34428e['DXUNG']),_0x4ef2f2;return logger[_0xc0f736(0xe7)](_0x34428e['tZEDS']),await this.#handleBinaryDownload(_0x2b564d,_0x541419,_0x38457d);}catch(_0x27b727){return logger[_0xc0f736(0xe6)](_0xc0f736(0xdb)+_0x27b727),_0x4ef2f2;}}const _0x4a6288=await this[_0xc0f736(0x15d)](_0x541419,_0x38457d);return await this.#handleBinaryDownload(_0x4a6288,_0x541419,_0x38457d);}[a114_0x1f5316(0x15d)](_0x54a6ea,_0xca14a9,_0x584898=null){const _0x5d0273=a114_0x1f5316,_0x1c38ad={'WxqrE':function(_0x256316,_0x8207af){return _0x256316(_0x8207af);},'iOWSk':function(_0xef90ed,_0x3fc4e2){return _0xef90ed===_0x3fc4e2;},'sgtfZ':_0x5d0273(0x13a),'LfxQg':_0x5d0273(0x14f),'pAOyG':function(_0x24cbf4,_0x3dd111){return _0x24cbf4(_0x3dd111);},'KfbKm':function(_0x250994,_0x3eedc9){return _0x250994+_0x3eedc9;},'HMkDR':_0x5d0273(0x10a)};_0xca14a9&&!this.#checkPath(_0xca14a9)&&fs[_0x5d0273(0x122)](_0xca14a9);const _0x1e4f4e=this.#binaryName,_0x59be67=path[_0x5d0273(0x12e)](_0xca14a9,_0x1c38ad[_0x5d0273(0x113)](_0x1e4f4e,_0x1c38ad['HMkDR'])),_0x2fa705=fs[_0x5d0273(0x12c)](_0x59be67),_0x1317f3=url[_0x5d0273(0x13f)](this.#httpPath);if(_0x54a6ea['proxyHost']&&_0x54a6ea[_0x5d0273(0xf1)]){const _0x4f7428={};_0x4f7428[_0x5d0273(0x117)]=_0x54a6ea['proxyHost'],_0x4f7428[_0x5d0273(0xd6)]=_0x54a6ea['proxyPort'],_0x1317f3[_0x5d0273(0x158)]=new HttpsProxyAgent(_0x4f7428);}if(_0x54a6ea[_0x5d0273(0xd8)])try{_0x1317f3['ca']=fs['readFileSync'](_0x54a6ea[_0x5d0273(0xd8)]);}catch(_0x4bc0cf){logger[_0x5d0273(0x13a)]('Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20'+_0x4bc0cf);}if(_0x584898){const _0x7e4e3f={};_0x7e4e3f[_0x5d0273(0x112)]=_0x584898,_0x7e4e3f[_0x5d0273(0x14a)]=_0x1c38ad[_0x5d0273(0x141)],_0x1317f3['headers']=_0x7e4e3f;}else{const _0x21c46a={};_0x21c46a['Connection']=_0x1c38ad[_0x5d0273(0x141)],_0x1317f3[_0x5d0273(0xf9)]=_0x21c46a;}return new Promise((_0x547f7d,_0x59d987)=>{const _0x424cf2=_0x5d0273,_0x4a9025={'BtscK':function(_0x1c1305,_0x21055b){const _0x5d17b6=a114_0x4f74;return _0x1c38ad[_0x5d17b6(0xeb)](_0x1c1305,_0x21055b);}};https[_0x424cf2(0xfa)](_0x1317f3,_0x2254ae=>{const _0x396689=_0x424cf2,_0x3aa2f6={'LtyaO':function(_0x25a881,_0x5edb31){const _0x3acf0d=a114_0x4f74;return _0x1c38ad[_0x3acf0d(0xeb)](_0x25a881,_0x5edb31);}};if(_0x584898&&_0x1c38ad['iOWSk'](_0x2254ae[_0x396689(0xda)],0x130)){_0x2fa705[_0x396689(0x13d)]();const _0x1509d6={};_0x1509d6[_0x396689(0x136)]=![],_0x1c38ad[_0x396689(0xeb)](_0x547f7d,_0x1509d6);return;}const _0x5e9cc5=_0x2254ae[_0x396689(0xf9)][_0x396689(0x123)];_0x5e9cc5&&this.#saveETag(_0xca14a9,_0x5e9cc5),_0x2254ae['pipe'](_0x2fa705),_0x2254ae['on'](_0x1c38ad[_0x396689(0xe3)],function(_0x10d0d1){const _0x1301ba=_0x396689;logger[_0x1301ba(0x13a)](_0x1301ba(0x121)+_0x10d0d1),_0x3aa2f6[_0x1301ba(0x10c)](_0x59d987,_0x10d0d1);}),_0x2fa705['on'](_0x1c38ad['sgtfZ'],function(_0x2ae2fb){const _0x24d1e4=_0x396689;logger[_0x24d1e4(0x13a)]('Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20'+_0x2ae2fb),_0x4a9025[_0x24d1e4(0xf7)](_0x59d987,_0x2ae2fb);}),_0x2fa705['on'](_0x1c38ad[_0x396689(0x141)],()=>{const _0x5519c2=_0x396689;this['extractAndSaveBinary'](_0x59be67,_0xca14a9)[_0x5519c2(0x15b)](_0x45f797=>_0x547f7d({'needsUpdate':!![],'binaryPath':_0x45f797}))[_0x5519c2(0x160)](_0x59d987);});})['on'](_0x1c38ad['sgtfZ'],function(_0x5d489e){const _0x35eabd=_0x424cf2;logger[_0x35eabd(0x13a)](_0x35eabd(0x153)+_0x5d489e),_0x1c38ad[_0x35eabd(0xf4)](_0x59d987,_0x5d489e);});});}[a114_0x1f5316(0x14b)](_0x8b3bc0,_0x454c57){const _0x5d4669=a114_0x1f5316,_0x10ecbe={'bBarq':function(_0x4a62b5,_0x73200c){return _0x4a62b5===_0x73200c;},'vfJBF':function(_0x23f99c,_0x5676d8){return _0x23f99c(_0x5676d8);},'wCJvt':_0x5d4669(0x144),'QmJtX':'0755','iQLTM':_0x5d4669(0x138),'OxyJP':_0x5d4669(0x13a)},_0x4e478e=this.#binaryName,_0x2e94b5=path[_0x5d4669(0x12e)](_0x454c57,_0x4e478e);return new Promise((_0x4c6ebc,_0x210a0d)=>{const _0x56ec26=_0x5d4669,_0x337791={'krXzt':function(_0x675323,_0x9bfeb0){return _0x10ecbe['bBarq'](_0x675323,_0x9bfeb0);},'pcmTV':function(_0x2045c4,_0x1de5ed){return _0x10ecbe['vfJBF'](_0x2045c4,_0x1de5ed);},'nnLMG':_0x10ecbe[_0x56ec26(0xde)],'VmDzP':function(_0x280107,_0x4bd8a3){const _0x196a91=_0x56ec26;return _0x10ecbe[_0x196a91(0x109)](_0x280107,_0x4bd8a3);},'QJrin':_0x10ecbe[_0x56ec26(0x120)],'TVTXi':_0x10ecbe[_0x56ec26(0xff)],'VRbRg':_0x10ecbe[_0x56ec26(0x10e)]},_0x4248b7={};_0x4248b7[_0x56ec26(0x137)]=!![],yauzl[_0x56ec26(0x100)](_0x8b3bc0,_0x4248b7,function(_0x42ddc9,_0x33249f){const _0xab7ef0=_0x56ec26,_0x4a8bf1={'VnVXE':function(_0x2afaca,_0xce207c){const _0x1bd76c=a114_0x4f74;return _0x337791[_0x1bd76c(0x15f)](_0x2afaca,_0xce207c);},'jcijS':_0x337791[_0xab7ef0(0x14e)],'eCXnM':function(_0x229512,_0x40446c){const _0x5d8b1d=_0xab7ef0;return _0x337791[_0x5d8b1d(0x127)](_0x229512,_0x40446c);},'XJRYk':function(_0x320618,_0x2cc258){const _0x5331bb=_0xab7ef0;return _0x337791[_0x5331bb(0x127)](_0x320618,_0x2cc258);},'OZyyJ':_0x337791[_0xab7ef0(0x13e)]};_0x42ddc9&&_0x337791['pcmTV'](_0x210a0d,_0x42ddc9),_0x33249f['readEntry'](),_0x33249f['on'](_0x337791[_0xab7ef0(0x105)],_0x365560=>{const _0x213466=_0xab7ef0;if(/\/$/[_0x213466(0x159)](_0x365560[_0x213466(0x108)]))_0x33249f[_0x213466(0xea)]();else{const _0x2c0eaa=fs['createWriteStream'](path[_0x213466(0x12e)](_0x454c57,_0x365560['fileName']));_0x33249f[_0x213466(0x143)](_0x365560,function(_0x26bcca,_0x12e6b5){const _0x34843b=_0x213466;_0x26bcca&&_0x4a8bf1[_0x34843b(0x150)](_0x210a0d,_0x42ddc9),_0x12e6b5['on'](_0x4a8bf1['jcijS'],function(){const _0xf04310=_0x34843b;_0x2c0eaa[_0xf04310(0x14f)](),_0x33249f[_0xf04310(0xea)]();}),_0x12e6b5[_0x34843b(0x10f)](_0x2c0eaa);}),_0x337791[_0x213466(0x15a)](_0x365560[_0x213466(0x108)],_0x4e478e)&&_0x33249f[_0x213466(0x14f)]();}}),_0x33249f['on'](_0x337791[_0xab7ef0(0x107)],_0x5a5000=>{const _0x3c52eb=_0xab7ef0;_0x4a8bf1[_0x3c52eb(0x101)](_0x210a0d,_0x5a5000);}),_0x33249f[_0xab7ef0(0x12a)](_0x337791[_0xab7ef0(0x14e)],()=>{fs['chmod'](_0x2e94b5,_0x4a8bf1['OZyyJ'],function(_0x53d6bd){const _0x171ebf=a114_0x4f74;_0x53d6bd&&_0x4a8bf1[_0x171ebf(0x101)](_0x210a0d,_0x53d6bd),_0x4a8bf1['XJRYk'](_0x4c6ebc,_0x2e94b5);}),_0x33249f['close']();});});});}async[a114_0x1f5316(0x165)](_0x4632cd){const _0x27e5ea=a114_0x1f5316,_0x4b5053={'dQUcc':function(_0x54cc0a,_0x3c936a){return _0x54cc0a(_0x3c936a);},'hVMTf':function(_0x23f05c,_0x4d381c){return _0x23f05c(_0x4d381c);},'oNuSH':function(_0x5a7630,_0x383fbd,_0x22e840,_0x50e2c5){return _0x5a7630(_0x383fbd,_0x22e840,_0x50e2c5);},'QCUra':'--version','qCeIs':_0x27e5ea(0x154),'EtVwj':_0x27e5ea(0x14f)},_0x13cf6d=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0xe8f6cc,_0x269495)=>{const _0x47dd50=_0x27e5ea,_0x184a9f={'ucHVN':function(_0x212d74,_0x589508){const _0x3de380=a114_0x4f74;return _0x4b5053[_0x3de380(0x148)](_0x212d74,_0x589508);}},_0x32b303={};_0x32b303['env']=process[_0x47dd50(0xed)];const _0x61c6a2=_0x4b5053[_0x47dd50(0x11e)](spawn,_0x4632cd,[_0x4b5053[_0x47dd50(0xfd)]],_0x32b303);_0x61c6a2[_0x47dd50(0x15c)]['on'](_0x4b5053[_0x47dd50(0x139)],_0x36675e=>{const _0x3936c0=_0x47dd50;_0x13cf6d[_0x3936c0(0x159)](_0x36675e)&&_0x184a9f[_0x3936c0(0x149)](_0xe8f6cc,!![]);}),_0x61c6a2['on'](_0x4b5053[_0x47dd50(0x135)],()=>{const _0x365d94=_0x47dd50;_0x4b5053[_0x365d94(0x106)](_0xe8f6cc,![]);});});}#homedir(){const _0x43de7e=a114_0x1f5316,_0x4c5ecd={};_0x4c5ecd[_0x43de7e(0xd3)]=function(_0x7c6bad,_0x47d841){return _0x7c6bad===_0x47d841;},_0x4c5ecd[_0x43de7e(0x11c)]=_0x43de7e(0x145),_0x4c5ecd['Zzsnp']=_0x43de7e(0x102),_0x4c5ecd[_0x43de7e(0x133)]=function(_0x5d7564,_0x362f6e){return _0x5d7564+_0x362f6e;},_0x4c5ecd[_0x43de7e(0x11a)]=_0x43de7e(0x10b),_0x4c5ecd[_0x43de7e(0xd4)]=_0x43de7e(0x162),_0x4c5ecd[_0x43de7e(0x134)]=function(_0x3aff62,_0x18d37b){return _0x3aff62===_0x18d37b;},_0x4c5ecd['Rqehm']=_0x43de7e(0x157),_0x4c5ecd[_0x43de7e(0xdc)]=function(_0x3deb3c,_0x32f764){return _0x3deb3c===_0x32f764;},_0x4c5ecd['LHIyr']=_0x43de7e(0xe4),_0x4c5ecd[_0x43de7e(0xe5)]=function(_0x3123f5,_0x2acfd1){return _0x3123f5+_0x2acfd1;},_0x4c5ecd[_0x43de7e(0x147)]='/home/',_0x4c5ecd[_0x43de7e(0x129)]=function(_0x7bce19,_0x57c11d){return _0x7bce19||_0x57c11d;};const _0x2f8565=_0x4c5ecd;if(_0x2f8565[_0x43de7e(0xd3)](typeof os[_0x43de7e(0x11d)],_0x2f8565[_0x43de7e(0x11c)]))return os[_0x43de7e(0x11d)]();const _0xd983bb=process['env'],_0x35dabd=_0xd983bb['HOME'],_0xb92944=_0xd983bb[_0x43de7e(0xf6)]||_0xd983bb['USER']||_0xd983bb[_0x43de7e(0xd2)]||_0xd983bb['USERNAME'];if(_0x2f8565[_0x43de7e(0xd3)](process[_0x43de7e(0xdf)],_0x2f8565[_0x43de7e(0x12b)]))return _0xd983bb[_0x43de7e(0x118)]||_0x2f8565['ocPGx'](_0xd983bb[_0x43de7e(0xf8)],_0xd983bb['HOMEPATH'])||_0x35dabd||null;if(_0x2f8565['sCDCK'](process[_0x43de7e(0xdf)],_0x2f8565['pcVBN']))return _0x35dabd||(_0xb92944?_0x2f8565['ocPGx'](_0x2f8565['HcAWB'],_0xb92944):null);if(_0x2f8565['wOtsd'](process[_0x43de7e(0xdf)],_0x2f8565[_0x43de7e(0xf0)]))return _0x35dabd||(_0x2f8565[_0x43de7e(0xdc)](process[_0x43de7e(0x12f)](),0x0)?_0x2f8565[_0x43de7e(0xec)]:_0xb92944?_0x2f8565[_0x43de7e(0xe5)](_0x2f8565[_0x43de7e(0x147)],_0xb92944):null);return _0x2f8565[_0x43de7e(0x129)](_0x35dabd,null);}}function a114_0x4f74(_0x1c995a,_0x33ba00){const _0x56cc69=a114_0x56cc();return a114_0x4f74=function(_0x4f74d4,_0x377dd3){_0x4f74d4=_0x4f74d4-0xcd;let _0x5dbb4a=_0x56cc69[_0x4f74d4];return _0x5dbb4a;},a114_0x4f74(_0x1c995a,_0x33ba00);}module[a114_0x1f5316(0x152)]=PercyBinary;
@@ -1 +1 @@
1
- var a115_0x5cd761=a115_0x441c;(function(_0x4d4d46,_0x463ceb){var _0x54696e=a115_0x441c,_0x572dde=_0x4d4d46();while(!![]){try{var _0x432c03=parseInt(_0x54696e(0xbe))/0x1*(-parseInt(_0x54696e(0xc3))/0x2)+-parseInt(_0x54696e(0xc9))/0x3*(parseInt(_0x54696e(0xc4))/0x4)+parseInt(_0x54696e(0xc8))/0x5*(-parseInt(_0x54696e(0xc0))/0x6)+-parseInt(_0x54696e(0xc5))/0x7+-parseInt(_0x54696e(0xc6))/0x8+parseInt(_0x54696e(0xcb))/0x9*(-parseInt(_0x54696e(0xc1))/0xa)+parseInt(_0x54696e(0xc2))/0xb;if(_0x432c03===_0x463ceb)break;else _0x572dde['push'](_0x572dde['shift']());}catch(_0x15b3ec){_0x572dde['push'](_0x572dde['shift']());}}}(a115_0xdda4,0x19131));class PercyCaptureMap{#map={};[a115_0x5cd761(0xca)](_0x45083d,_0x1834ed){!this.#map[_0x45083d]&&(this.#map[_0x45083d]={}),!this.#map[_0x45083d][_0x1834ed]&&(this.#map[_0x45083d][_0x1834ed]=0x0),this.#map[_0x45083d][_0x1834ed]++;}['getName'](_0x27954e,_0x1518e0){var _0x29d202=a115_0x5cd761;return _0x27954e+'-'+_0x1518e0+'-'+this[_0x29d202(0xbf)](_0x27954e,_0x1518e0);}[a115_0x5cd761(0xbf)](_0x2a052f,_0xc43478){if(!this.#map[_0x2a052f])return 0x0;if(!this.#map[_0x2a052f][_0xc43478])return 0x0;return this.#map[_0x2a052f][_0xc43478];}}module[a115_0x5cd761(0xc7)]=PercyCaptureMap;function a115_0x441c(_0xec3c67,_0x94da6d){var _0xdda4ca=a115_0xdda4();return a115_0x441c=function(_0x441c42,_0x3b9adc){_0x441c42=_0x441c42-0xbe;var _0x163346=_0xdda4ca[_0x441c42];return _0x163346;},a115_0x441c(_0xec3c67,_0x94da6d);}function a115_0xdda4(){var _0x3a32e8=['4624ScKwZf','268233SahYsF','534296svpgzl','exports','5gIGhgf','342eXrxjk','increment','53451VFjwpK','11sIuZgf','get','799698mcQUSt','90Qlpbfo','6129266aKkztw','5614TLvyCz'];a115_0xdda4=function(){return _0x3a32e8;};return a115_0xdda4();}
1
+ var a115_0x52d95e=a115_0x1c31;function a115_0xd868(){var _0x2b213a=['23961pMBYWf','increment','966eqVKgz','6036228wYuosd','938144hiaLrH','3EvyQKv','655896hNlfYz','exports','3037888gnUoMO','289415hfhuWi','get','719425uXUIDM'];a115_0xd868=function(){return _0x2b213a;};return a115_0xd868();}(function(_0x5b048a,_0x38c4c6){var _0x451cea=a115_0x1c31,_0x5dc187=_0x5b048a();while(!![]){try{var _0x255c71=parseInt(_0x451cea(0x88))/0x1+-parseInt(_0x451cea(0x83))/0x2*(-parseInt(_0x451cea(0x84))/0x3)+parseInt(_0x451cea(0x85))/0x4+-parseInt(_0x451cea(0x8a))/0x5+parseInt(_0x451cea(0x81))/0x6*(parseInt(_0x451cea(0x8b))/0x7)+-parseInt(_0x451cea(0x87))/0x8+-parseInt(_0x451cea(0x82))/0x9;if(_0x255c71===_0x38c4c6)break;else _0x5dc187['push'](_0x5dc187['shift']());}catch(_0xb945d4){_0x5dc187['push'](_0x5dc187['shift']());}}}(a115_0xd868,0x442d3));function a115_0x1c31(_0x58d4c8,_0x531ce5){var _0xd86846=a115_0xd868();return a115_0x1c31=function(_0x1c3166,_0x5b2a36){_0x1c3166=_0x1c3166-0x80;var _0x250de1=_0xd86846[_0x1c3166];return _0x250de1;},a115_0x1c31(_0x58d4c8,_0x531ce5);}class PercyCaptureMap{#map={};[a115_0x52d95e(0x80)](_0x289872,_0x7282d4){!this.#map[_0x289872]&&(this.#map[_0x289872]={}),!this.#map[_0x289872][_0x7282d4]&&(this.#map[_0x289872][_0x7282d4]=0x0),this.#map[_0x289872][_0x7282d4]++;}['getName'](_0x4f9ff9,_0x35d133){var _0x507147=a115_0x52d95e;return _0x4f9ff9+'-'+_0x35d133+'-'+this[_0x507147(0x89)](_0x4f9ff9,_0x35d133);}[a115_0x52d95e(0x89)](_0x536004,_0x521dc6){if(!this.#map[_0x536004])return 0x0;if(!this.#map[_0x536004][_0x521dc6])return 0x0;return this.#map[_0x536004][_0x521dc6];}}module[a115_0x52d95e(0x86)]=PercyCaptureMap;
@@ -1 +1 @@
1
- function a116_0x5414(_0x18f900,_0x59a497){var _0x517f69=a116_0x517f();return a116_0x5414=function(_0x541466,_0x4edae5){_0x541466=_0x541466-0x1b2;var _0x73cb3b=_0x517f69[_0x541466];return _0x73cb3b;},a116_0x5414(_0x18f900,_0x59a497);}var a116_0x2354bd=a116_0x5414;(function(_0x1eb9ba,_0x5091b1){var _0x3fe144=a116_0x5414,_0x5b4ffa=_0x1eb9ba();while(!![]){try{var _0x57a601=-parseInt(_0x3fe144(0x1b8))/0x1+parseInt(_0x3fe144(0x1b3))/0x2+-parseInt(_0x3fe144(0x1ba))/0x3*(-parseInt(_0x3fe144(0x1b4))/0x4)+parseInt(_0x3fe144(0x1c2))/0x5*(parseInt(_0x3fe144(0x1b2))/0x6)+parseInt(_0x3fe144(0x1c0))/0x7+parseInt(_0x3fe144(0x1b5))/0x8+-parseInt(_0x3fe144(0x1bf))/0x9*(parseInt(_0x3fe144(0x1b6))/0xa);if(_0x57a601===_0x5091b1)break;else _0x5b4ffa['push'](_0x5b4ffa['shift']());}catch(_0x4cccb2){_0x5b4ffa['push'](_0x5b4ffa['shift']());}}}(a116_0x517f,0xe8b18));function a116_0x517f(){var _0x41c054=['478419IwfuEc','driver','exports','sendKeys','element','24385437cogPEr','7663544cCRmrL','screenshot','60FPjIcY','takeScreenshot','testcase','315054OLZJNF','3327878OzfjYt','8vWzXJy','10674688JkfRyQ','10yigVWP','click','1379516ypjhWT','manual'];a116_0x517f=function(){return _0x41c054;};return a116_0x517f();}var a116_0x2253ea={};a116_0x2253ea['driver']=[a116_0x2354bd(0x1c3)],a116_0x2253ea[a116_0x2354bd(0x1be)]=['click',a116_0x2354bd(0x1bd)];var a116_0x374604={};a116_0x374604[a116_0x2354bd(0x1bb)]=[a116_0x2354bd(0x1c3)];var a116_0x579b47={};a116_0x579b47[a116_0x2354bd(0x1be)]=[a116_0x2354bd(0x1b7)];var a116_0x543da7={};a116_0x543da7['auto']=a116_0x2253ea,a116_0x543da7[a116_0x2354bd(0x1c1)]=a116_0x374604,a116_0x543da7[a116_0x2354bd(0x1b7)]=a116_0x579b47,a116_0x543da7[a116_0x2354bd(0x1c4)]={},a116_0x543da7[a116_0x2354bd(0x1b9)]={},module[a116_0x2354bd(0x1bc)]=a116_0x543da7;
1
+ var a116_0x500b87=a116_0x1b4c;(function(_0x534e05,_0x58b60e){var _0x43ac2f=a116_0x1b4c,_0x40741a=_0x534e05();while(!![]){try{var _0x566597=parseInt(_0x43ac2f(0x1ac))/0x1*(-parseInt(_0x43ac2f(0x1a2))/0x2)+parseInt(_0x43ac2f(0x19f))/0x3*(parseInt(_0x43ac2f(0x1a7))/0x4)+-parseInt(_0x43ac2f(0x1b2))/0x5+parseInt(_0x43ac2f(0x1af))/0x6*(parseInt(_0x43ac2f(0x1a8))/0x7)+parseInt(_0x43ac2f(0x1a3))/0x8*(parseInt(_0x43ac2f(0x1aa))/0x9)+-parseInt(_0x43ac2f(0x1ab))/0xa+parseInt(_0x43ac2f(0x1a1))/0xb*(parseInt(_0x43ac2f(0x1a9))/0xc);if(_0x566597===_0x58b60e)break;else _0x40741a['push'](_0x40741a['shift']());}catch(_0x4c7fef){_0x40741a['push'](_0x40741a['shift']());}}}(a116_0x318d,0x2972a));function a116_0x318d(){var _0x3da9f8=['takeScreenshot','testcase','381516qWHKvs','4382lAYaCH','504HaMSGU','9fpASrJ','454190JvRyxp','1gAyFSM','auto','sendKeys','1338WdyxZv','click','element','260735CcUUNd','driver','3iWmjva','exports','51821BtklyD','525614zNsCHc','778432wXiSnF','screenshot'];a116_0x318d=function(){return _0x3da9f8;};return a116_0x318d();}var a116_0x1447bd={};a116_0x1447bd[a116_0x500b87(0x19e)]=[a116_0x500b87(0x1a5)],a116_0x1447bd[a116_0x500b87(0x1b1)]=[a116_0x500b87(0x1b0),a116_0x500b87(0x1ae)];var a116_0x188bc3={};a116_0x188bc3[a116_0x500b87(0x19e)]=[a116_0x500b87(0x1a5)];var a116_0x1c37db={};a116_0x1c37db[a116_0x500b87(0x1b1)]=[a116_0x500b87(0x1b0)];function a116_0x1b4c(_0x470988,_0xc1c848){var _0x318da6=a116_0x318d();return a116_0x1b4c=function(_0x1b4c73,_0x2a40d9){_0x1b4c73=_0x1b4c73-0x19e;var _0x5f5dc8=_0x318da6[_0x1b4c73];return _0x5f5dc8;},a116_0x1b4c(_0x470988,_0xc1c848);}var a116_0x41b653={};a116_0x41b653[a116_0x500b87(0x1ad)]=a116_0x1447bd,a116_0x41b653[a116_0x500b87(0x1a4)]=a116_0x188bc3,a116_0x41b653[a116_0x500b87(0x1b0)]=a116_0x1c37db,a116_0x41b653[a116_0x500b87(0x1a6)]={},a116_0x41b653['manual']={},module[a116_0x500b87(0x1a0)]=a116_0x41b653;
@@ -1 +1 @@
1
- const a117_0x35d903=a117_0x2763;(function(_0x235c1a,_0xc9a95e){const _0xab1291=a117_0x2763,_0x344f90=_0x235c1a();while(!![]){try{const _0x176f6b=-parseInt(_0xab1291(0x113))/0x1+-parseInt(_0xab1291(0x10b))/0x2+-parseInt(_0xab1291(0x11f))/0x3*(-parseInt(_0xab1291(0x110))/0x4)+parseInt(_0xab1291(0x125))/0x5+parseInt(_0xab1291(0x10a))/0x6+-parseInt(_0xab1291(0x11c))/0x7+-parseInt(_0xab1291(0x121))/0x8*(-parseInt(_0xab1291(0x11d))/0x9);if(_0x176f6b===_0xc9a95e)break;else _0x344f90['push'](_0x344f90['shift']());}catch(_0x5521f3){_0x344f90['push'](_0x344f90['shift']());}}}(a117_0x382f,0x578c5));function a117_0x382f(){const _0x3d3a26=['UiObj','3ydNfII','winstonLogger','1512Cbolbz','length','../performance/performance-tester','screenshotApp','483450nOaDCc','platformIndex','Unsupported\x20driver\x20for\x20percy','measure','../logger','@percy/appium-app','snapshot','../../helpers/testhub/utils','SCREENSHOT','NYADn','2541768QDFzzI','294730PqKzPG','@percy/selenium-webdriver','ozqOA','SNAPSHOT','SCREENSHOT_APP','1614516XUvpgl','thTestCaseExecutionId','screenshot','507453Mcvojd','jOxUh','testCase','browserstackPlatformIndex','ICLfM','name','uuid','apply','XicJO','31255JtPYJN','4473vBElaN'];a117_0x382f=function(){return _0x3d3a26;};return a117_0x382f();}const tryRequire=function(_0x3d5be2,_0x5873b8){const _0x9320b1=a117_0x2763,_0x5cf488={'XicJO':function(_0x353158,_0x8c4879){return _0x353158(_0x8c4879);}};try{return _0x5cf488[_0x9320b1(0x11b)](require,_0x3d5be2);}catch{return _0x5873b8;}},percySnapshot=tryRequire(a117_0x35d903(0x10c),null),{percyScreenshot}=tryRequire('@percy/selenium-webdriver',{}),percyAppScreenshot=require(a117_0x35d903(0x12a)),{getCurrentTestData}=require(a117_0x35d903(0x12c)),PerformanceTester=require(a117_0x35d903(0x123)),{PERCY_EVENTS:PerformanceEvents}=require('../performance/constants'),logger=require(a117_0x35d903(0x129))[a117_0x35d903(0x120)];function a117_0x2763(_0x5b761c,_0xa9d54d){const _0x382f45=a117_0x382f();return a117_0x2763=function(_0x2763d7,_0x4118cc){_0x2763d7=_0x2763d7-0x10a;let _0x190909=_0x382f45[_0x2763d7];return _0x190909;},a117_0x2763(_0x5b761c,_0xa9d54d);}percySnapshot&&(exports[a117_0x35d903(0x12b)]=async function(){const _0x3617db=a117_0x35d903,_0x22a1d3={'jOxUh':function(_0x4915b0,_0x48d315){return _0x4915b0!==_0x48d315;},'ICLfM':function(_0xf107e2,_0x47b74d){return _0xf107e2>=_0x47b74d;},'qhguB':function(_0x5a5d02){return _0x5a5d02();}};if(global[_0x3617db(0x116)]&&_0x22a1d3[_0x3617db(0x114)](global['browserstackPlatformIndex'],global['browserstackPercyBestPlatform']))return;const _0x52393c=_0x22a1d3[_0x3617db(0x117)](arguments[_0x3617db(0x122)],0x2)?arguments[0x1]:'',_0x29446e=_0x22a1d3['qhguB'](getCurrentTestData),_0x2d771f={};return _0x2d771f[_0x3617db(0x118)]=_0x52393c,_0x2d771f[_0x3617db(0x115)]=_0x29446e[_0x3617db(0x118)]||'',_0x2d771f[_0x3617db(0x111)]=_0x29446e[_0x3617db(0x119)]||'',_0x2d771f[_0x3617db(0x126)]=global['browserstackPlatformIndex'],await PerformanceTester[_0x3617db(0x128)](PerformanceEvents[_0x3617db(0x10e)],()=>percySnapshot['apply'](null,arguments),_0x2d771f);});percyScreenshot?exports[a117_0x35d903(0x112)]=async function(){const _0x3719f5=a117_0x35d903,_0x3601b0={'ozqOA':function(_0x2987f1,_0x560263){return _0x2987f1>=_0x560263;},'ktXJG':function(_0x5d711a){return _0x5d711a();}},_0x123e0f=_0x3601b0[_0x3719f5(0x10d)](arguments['length'],0x2)?arguments[0x1]:'',_0x4360ed=_0x3601b0['ktXJG'](getCurrentTestData),_0x23859a={};return _0x23859a[_0x3719f5(0x118)]=_0x123e0f,_0x23859a[_0x3719f5(0x115)]=_0x4360ed[_0x3719f5(0x118)]||'',_0x23859a['thTestCaseExecutionId']=_0x4360ed[_0x3719f5(0x119)]||'',_0x23859a[_0x3719f5(0x126)]=global[_0x3719f5(0x116)],await PerformanceTester[_0x3719f5(0x128)](PerformanceEvents[_0x3719f5(0x12d)],()=>percyScreenshot[_0x3719f5(0x11a)](null,arguments),_0x23859a);}:exports[a117_0x35d903(0x112)]=()=>{const _0x430f98=a117_0x35d903,_0x39e22c={};_0x39e22c['wyGwq']=_0x430f98(0x127);const _0x91ee22=_0x39e22c;logger['error'](_0x91ee22['wyGwq']);};exports[a117_0x35d903(0x124)]=async function(){const _0x36c02c=a117_0x35d903,_0x29d680={'NYADn':function(_0x254e0c,_0x5bf54f){return _0x254e0c>=_0x5bf54f;},'UiObj':function(_0x216779){return _0x216779();}},_0xdf6b69=_0x29d680[_0x36c02c(0x12e)](arguments[_0x36c02c(0x122)],0x2)?arguments[0x1]:'',_0xfa2396=_0x29d680[_0x36c02c(0x11e)](getCurrentTestData),_0x76682a={};return _0x76682a[_0x36c02c(0x118)]=_0xdf6b69,_0x76682a[_0x36c02c(0x115)]=_0xfa2396['name']||'',_0x76682a['thTestCaseExecutionId']=_0xfa2396[_0x36c02c(0x119)]||'',_0x76682a[_0x36c02c(0x126)]=global['browserstackPlatformIndex'],await PerformanceTester[_0x36c02c(0x128)](PerformanceEvents[_0x36c02c(0x10f)],()=>percyAppScreenshot[_0x36c02c(0x11a)](null,arguments),_0x76682a);};
1
+ function a117_0x4a18(){const _0x22a0c4=['thTestCaseExecutionId','1640652FUWvyE','9547260aRMOwI','SNAPSHOT','measure','77mGZPWW','Unsupported\x20driver\x20for\x20percy','24THtrhJ','152559SoEWdr','length','@percy/appium-app','apply','mmxUe','yhRFY','snapshot','SCREENSHOT','65IxPkHq','80fDCbYq','testCase','../performance/constants','FHZvl','ZeZbP','1361332AyqjSk','browserstackPlatformIndex','uuid','66764gZOZZE','winstonLogger','267306bFynFz','name','platformIndex','kBBxa','browserstackPercyBestPlatform','../../helpers/testhub/utils','error','VBsrP','screenshot','7258538LjxWlK','3snCOJR','tOFVh'];a117_0x4a18=function(){return _0x22a0c4;};return a117_0x4a18();}const a117_0x38ff4e=a117_0x5617;(function(_0x557a11,_0x2e5733){const _0x1c477e=a117_0x5617,_0xf5858d=_0x557a11();while(!![]){try{const _0x272ad4=parseInt(_0x1c477e(0xb5))/0x1*(parseInt(_0x1c477e(0xa0))/0x2)+-parseInt(_0x1c477e(0xac))/0x3*(parseInt(_0x1c477e(0x9d))/0x4)+-parseInt(_0x1c477e(0xbe))/0x5*(parseInt(_0x1c477e(0xa2))/0x6)+parseInt(_0x1c477e(0xab))/0x7+parseInt(_0x1c477e(0xbf))/0x8*(-parseInt(_0x1c477e(0xb6))/0x9)+parseInt(_0x1c477e(0xb0))/0xa+parseInt(_0x1c477e(0xb3))/0xb*(-parseInt(_0x1c477e(0xaf))/0xc);if(_0x272ad4===_0x2e5733)break;else _0xf5858d['push'](_0xf5858d['shift']());}catch(_0x63f752){_0xf5858d['push'](_0xf5858d['shift']());}}}(a117_0x4a18,0xb6517));function a117_0x5617(_0xff0ca9,_0x281fec){const _0x4a181a=a117_0x4a18();return a117_0x5617=function(_0x561708,_0x16a5cb){_0x561708=_0x561708-0x99;let _0x1fc36b=_0x4a181a[_0x561708];return _0x1fc36b;},a117_0x5617(_0xff0ca9,_0x281fec);}const tryRequire=function(_0x37694d,_0x52360){const _0x37574a=a117_0x5617,_0x3614be={'mmxUe':function(_0x2f1012,_0x4dec69){return _0x2f1012(_0x4dec69);}};try{return _0x3614be[_0x37574a(0xba)](require,_0x37694d);}catch{return _0x52360;}},percySnapshot=tryRequire('@percy/selenium-webdriver',null),{percyScreenshot}=tryRequire('@percy/selenium-webdriver',{}),percyAppScreenshot=require(a117_0x38ff4e(0xb8)),{getCurrentTestData}=require(a117_0x38ff4e(0xa7)),PerformanceTester=require('../performance/performance-tester'),{PERCY_EVENTS:PerformanceEvents}=require(a117_0x38ff4e(0x9a)),logger=require('../logger')[a117_0x38ff4e(0xa1)];percySnapshot&&(exports[a117_0x38ff4e(0xbc)]=async function(){const _0x5f422b=a117_0x38ff4e,_0x3aa83f={'VBsrP':function(_0x2e4342,_0x1c707b){return _0x2e4342!==_0x1c707b;},'jMBLg':function(_0x5e3ce9,_0x5a1469){return _0x5e3ce9>=_0x5a1469;},'FHZvl':function(_0x4a4b2c){return _0x4a4b2c();}};if(global['browserstackPlatformIndex']&&_0x3aa83f[_0x5f422b(0xa9)](global['browserstackPlatformIndex'],global[_0x5f422b(0xa6)]))return;const _0xbcb7aa=_0x3aa83f['jMBLg'](arguments[_0x5f422b(0xb7)],0x2)?arguments[0x1]:'',_0x299c11=_0x3aa83f[_0x5f422b(0x9b)](getCurrentTestData),_0x4ff7b2={};return _0x4ff7b2['name']=_0xbcb7aa,_0x4ff7b2[_0x5f422b(0x99)]=_0x299c11['name']||'',_0x4ff7b2[_0x5f422b(0xae)]=_0x299c11['uuid']||'',_0x4ff7b2[_0x5f422b(0xa4)]=global[_0x5f422b(0x9e)],await PerformanceTester['measure'](PerformanceEvents[_0x5f422b(0xb1)],()=>percySnapshot[_0x5f422b(0xb9)](null,arguments),_0x4ff7b2);});percyScreenshot?exports[a117_0x38ff4e(0xaa)]=async function(){const _0x3fc2d8=a117_0x38ff4e,_0xacf7b1={'ZeZbP':function(_0x3d05b5,_0x1f7ada){return _0x3d05b5>=_0x1f7ada;},'tOFVh':function(_0x4b4ec9){return _0x4b4ec9();}},_0x285aad=_0xacf7b1[_0x3fc2d8(0x9c)](arguments[_0x3fc2d8(0xb7)],0x2)?arguments[0x1]:'',_0x35ffb4=_0xacf7b1[_0x3fc2d8(0xad)](getCurrentTestData),_0x2afcba={};return _0x2afcba[_0x3fc2d8(0xa3)]=_0x285aad,_0x2afcba['testCase']=_0x35ffb4['name']||'',_0x2afcba[_0x3fc2d8(0xae)]=_0x35ffb4[_0x3fc2d8(0x9f)]||'',_0x2afcba[_0x3fc2d8(0xa4)]=global[_0x3fc2d8(0x9e)],await PerformanceTester[_0x3fc2d8(0xb2)](PerformanceEvents[_0x3fc2d8(0xbd)],()=>percyScreenshot[_0x3fc2d8(0xb9)](null,arguments),_0x2afcba);}:exports[a117_0x38ff4e(0xaa)]=()=>{const _0x4bc86f=a117_0x38ff4e,_0x540c88={};_0x540c88[_0x4bc86f(0xa5)]=_0x4bc86f(0xb4);const _0x181d3e=_0x540c88;logger[_0x4bc86f(0xa8)](_0x181d3e['kBBxa']);};exports['screenshotApp']=async function(){const _0x1bfcf5=a117_0x38ff4e,_0x5e66cc={'yhRFY':function(_0x3eb6e4,_0x500186){return _0x3eb6e4>=_0x500186;},'MTNsP':function(_0x52f73d){return _0x52f73d();}},_0x3c4aec=_0x5e66cc[_0x1bfcf5(0xbb)](arguments['length'],0x2)?arguments[0x1]:'',_0xe9e65f=_0x5e66cc['MTNsP'](getCurrentTestData),_0x169694={};return _0x169694['name']=_0x3c4aec,_0x169694[_0x1bfcf5(0x99)]=_0xe9e65f[_0x1bfcf5(0xa3)]||'',_0x169694['thTestCaseExecutionId']=_0xe9e65f[_0x1bfcf5(0x9f)]||'',_0x169694[_0x1bfcf5(0xa4)]=global['browserstackPlatformIndex'],await PerformanceTester['measure'](PerformanceEvents['SCREENSHOT_APP'],()=>percyAppScreenshot[_0x1bfcf5(0xb9)](null,arguments),_0x169694);};
@@ -1 +1 @@
1
- function a118_0x2573(_0x46eb1f,_0x3e5c82){var _0x4645f9=a118_0x4645();return a118_0x2573=function(_0x257338,_0x2ca7c0){_0x257338=_0x257338-0x17c;var _0x1ccb58=_0x4645f9[_0x257338];return _0x1ccb58;},a118_0x2573(_0x46eb1f,_0x3e5c82);}var a118_0x277abd=a118_0x2573;(function(_0x5e51ce,_0x229dc8){var _0x1d0692=a118_0x2573,_0x5d7195=_0x5e51ce();while(!![]){try{var _0x2a4df8=-parseInt(_0x1d0692(0x17e))/0x1+-parseInt(_0x1d0692(0x17f))/0x2*(parseInt(_0x1d0692(0x183))/0x3)+parseInt(_0x1d0692(0x184))/0x4+parseInt(_0x1d0692(0x17c))/0x5+parseInt(_0x1d0692(0x186))/0x6*(parseInt(_0x1d0692(0x185))/0x7)+parseInt(_0x1d0692(0x17d))/0x8+-parseInt(_0x1d0692(0x182))/0x9*(-parseInt(_0x1d0692(0x181))/0xa);if(_0x2a4df8===_0x229dc8)break;else _0x5d7195['push'](_0x5d7195['shift']());}catch(_0x38cf3b){_0x5d7195['push'](_0x5d7195['shift']());}}}(a118_0x4645,0xe240e),module[a118_0x277abd(0x180)]=require('./Percy'));function a118_0x4645(){var _0x3527ea=['139266wuXPUy','exports','10CryRKO','3901392aIefAx','54ILWRNd','3469600pZGpwI','1783649sEWSUQ','24ybMQte','1019025lLxQkr','5979288MxzABP','1091204dcBRVt'];a118_0x4645=function(){return _0x3527ea;};return a118_0x4645();}
1
+ function a118_0x48fe(_0x2dab3e,_0x54c1b0){var _0x5487b8=a118_0x5487();return a118_0x48fe=function(_0x48fe85,_0x3092f2){_0x48fe85=_0x48fe85-0x1d0;var _0x4b02c5=_0x5487b8[_0x48fe85];return _0x4b02c5;},a118_0x48fe(_0x2dab3e,_0x54c1b0);}function a118_0x5487(){var _0xccdbe0=['64116bFOniT','exports','44087700fMXmZV','1072394nRWZqp','1216bNmffF','2878695cJflir','43421OHzzjV','6743620YbDnjZ','./Percy','480RQYtmo','5522247FEEXgc','2lskdeQ'];a118_0x5487=function(){return _0xccdbe0;};return a118_0x5487();}var a118_0x328966=a118_0x48fe;(function(_0x191586,_0x4476ab){var _0x2dab8e=a118_0x48fe,_0x180a48=_0x191586();while(!![]){try{var _0x1ea99c=-parseInt(_0x2dab8e(0x1db))/0x1+-parseInt(_0x2dab8e(0x1d7))/0x2*(parseInt(_0x2dab8e(0x1d6))/0x3)+-parseInt(_0x2dab8e(0x1d3))/0x4+parseInt(_0x2dab8e(0x1d1))/0x5+parseInt(_0x2dab8e(0x1d5))/0x6*(-parseInt(_0x2dab8e(0x1d2))/0x7)+-parseInt(_0x2dab8e(0x1d0))/0x8*(-parseInt(_0x2dab8e(0x1d8))/0x9)+parseInt(_0x2dab8e(0x1da))/0xa;if(_0x1ea99c===_0x4476ab)break;else _0x180a48['push'](_0x180a48['shift']());}catch(_0x47f10a){_0x180a48['push'](_0x180a48['shift']());}}}(a118_0x5487,0xed525),module[a118_0x328966(0x1d9)]=require(a118_0x328966(0x1d4)));
@@ -1 +1 @@
1
- const a119_0x551401=a119_0x485a;(function(_0xb3f076,_0x49146d){const _0x2ff89e=a119_0x485a,_0x2cb1b2=_0xb3f076();while(!![]){try{const _0x33bba0=-parseInt(_0x2ff89e(0xa4))/0x1+-parseInt(_0x2ff89e(0x92))/0x2*(-parseInt(_0x2ff89e(0xaa))/0x3)+-parseInt(_0x2ff89e(0x96))/0x4*(parseInt(_0x2ff89e(0xa0))/0x5)+parseInt(_0x2ff89e(0xc1))/0x6+-parseInt(_0x2ff89e(0xca))/0x7*(parseInt(_0x2ff89e(0xb2))/0x8)+parseInt(_0x2ff89e(0xab))/0x9*(parseInt(_0x2ff89e(0x9a))/0xa)+-parseInt(_0x2ff89e(0xb4))/0xb*(-parseInt(_0x2ff89e(0x8c))/0xc);if(_0x33bba0===_0x49146d)break;else _0x2cb1b2['push'](_0x2cb1b2['shift']());}catch(_0x4dfee0){_0x2cb1b2['push'](_0x2cb1b2['shift']());}}}(a119_0xd68a,0x404ba));const Percy=require('./Percy'),PercySDK=require(a119_0x551401(0xc9)),PercyCaptureModes=require(a119_0x551401(0xa3)),PercyCaptureMap=require(a119_0x551401(0xa1)),logger=require(a119_0x551401(0xa5))['winstonLogger'],helper=require(a119_0x551401(0xc2)),PerformanceTester=require(a119_0x551401(0x93)),{PERCY_EVENTS:PerformanceEvents}=require(a119_0x551401(0x8e));function a119_0x485a(_0x465e6f,_0x5a3c7c){const _0xd68aaf=a119_0xd68a();return a119_0x485a=function(_0x485a7d,_0x2f2242){_0x485a7d=_0x485a7d-0x82;let _0x5ad3dc=_0xd68aaf[_0x485a7d];return _0x5ad3dc;},a119_0x485a(_0x465e6f,_0x5a3c7c);}exports[a119_0x551401(0x9b)]=PerformanceTester['measureWrapper'](PerformanceEvents[a119_0x551401(0x99)],async _0x3d7af4=>{const _0x10ccd2=a119_0x551401,_0x341282={};_0x341282[_0x10ccd2(0xcd)]=_0x10ccd2(0x82);const _0x531320=_0x341282;logger[_0x10ccd2(0x8f)](_0x531320[_0x10ccd2(0xcd)]);const _0x355e31=new Percy(_0x3d7af4),_0x3f986c=await _0x355e31[_0x10ccd2(0xad)]();if(_0x3f986c)return _0x355e31;return null;}),exports[a119_0x551401(0xb7)]=PerformanceTester[a119_0x551401(0xb1)](PerformanceEvents[a119_0x551401(0x8d)],async _0x4a776d=>{const _0x225124=a119_0x551401,_0x2740a4={};_0x2740a4[_0x225124(0xcf)]=_0x225124(0x9f);const _0x584382=_0x2740a4;return logger[_0x225124(0x8f)](_0x584382[_0x225124(0xcf)]),_0x4a776d[_0x225124(0x88)]();}),exports[a119_0x551401(0x90)]=_0x44f6e9=>{const _0x5b76f0=a119_0x551401,_0x2cbe94={};_0x2cbe94[_0x5b76f0(0xc5)]=function(_0x45442c,_0x2e74c1){return _0x45442c<_0x2e74c1;};const _0x44237c=_0x2cbe94,_0x20b2b7={};_0x20b2b7[_0x5b76f0(0xbc)]=0x0,_0x20b2b7[_0x5b76f0(0xba)]=0x1,_0x20b2b7[_0x5b76f0(0xc6)]=0x2,_0x20b2b7[_0x5b76f0(0x84)]=0x3;const _0x489878=_0x20b2b7;return _0x44f6e9['reduce']((_0x184ac6,_0x55defa,_0x2a7dca)=>{const _0x9faec3=_0x5b76f0,_0x11c55c=_0x44f6e9[_0x184ac6];if(_0x55defa[_0x9faec3(0x87)])return _0x184ac6;if(_0x11c55c[_0x9faec3(0x87)])return _0x2a7dca;const _0x3572d4=_0x55defa[_0x9faec3(0x8a)]?_0x55defa[_0x9faec3(0x8a)]:_0x55defa[_0x9faec3(0xce)];if(_0x3572d4&&_0x44237c[_0x9faec3(0xc5)](_0x489878[_0x3572d4[_0x9faec3(0xd1)]()],_0x489878[_0x3572d4['toLowerCase']()]))return _0x2a7dca;return _0x184ac6;},0x0);},exports[a119_0x551401(0x98)]=PerformanceTester[a119_0x551401(0xb1)](PerformanceEvents[a119_0x551401(0x9c)],async(_0x5b40a3,_0x1195fb,_0x289763)=>{const _0x484427=a119_0x551401,_0x594d64={};_0x594d64[_0x484427(0x83)]=_0x484427(0xbf);const _0x27575e=_0x594d64,_0x3ad2d9=_0x5b40a3[_0x484427(0xb5)];if(helper[_0x484427(0x9d)](_0x5b40a3[_0x484427(0x97)])){logger['debug'](_0x27575e[_0x484427(0x83)]);return;}const _0x41bac7=_0x3ad2d9[_0x484427(0xb8)](_0x5b40a3['browserstackSessionName'],_0x1195fb);_0x289763[_0x484427(0x94)]?await PercySDK[_0x484427(0xc7)](_0x5b40a3,_0x41bac7):await PercySDK[_0x484427(0xb6)](_0x5b40a3,_0x41bac7),_0x3ad2d9[_0x484427(0xd2)](_0x5b40a3['browserstackSessionName'],_0x1195fb);}),exports[a119_0x551401(0xb3)]=(_0x48426d,_0x41ef76,_0x4bff8a)=>{const _0xb64b19=a119_0x551401,_0x584986={};_0x584986[_0xb64b19(0xa6)]='browserStackPercyOptions',_0x584986[_0xb64b19(0xbe)]=_0xb64b19(0xae),_0x584986[_0xb64b19(0x8b)]=function(_0x55ecc1,_0xb6fd29){return _0x55ecc1!==_0xb6fd29;},_0x584986[_0xb64b19(0x91)]=_0xb64b19(0x9e);const _0x18fc77=_0x584986;if(!helper[_0xb64b19(0xc8)](_0x4bff8a,[_0x18fc77[_0xb64b19(0xa6)],_0x18fc77[_0xb64b19(0xbe)]]))return;if(_0x4bff8a[_0xb64b19(0xbd)][_0xb64b19(0xae)]&&_0x4bff8a[_0xb64b19(0xbd)][_0xb64b19(0x89)]&&_0x18fc77[_0xb64b19(0x8b)](_0x4bff8a[_0xb64b19(0xbd)][_0xb64b19(0x89)],_0x18fc77['rAKFs'])&&!_0x48426d[_0xb64b19(0xb5)]){global['browserstackSessionName']&&(_0x48426d[_0xb64b19(0x97)]=global[_0xb64b19(0x97)]),_0x48426d[_0xb64b19(0xb5)]=new PercyCaptureMap();const _0x1734f2=PercyCaptureModes[_0x4bff8a[_0xb64b19(0xbd)][_0xb64b19(0x89)]];_0x1734f2['driver']&&_0x1734f2[_0xb64b19(0xc0)]['forEach'](_0x2e26cf=>this[_0xb64b19(0x95)](_0x48426d,_0x2e26cf,_0x4bff8a)),_0x1734f2[_0xb64b19(0x85)]&&_0x1734f2[_0xb64b19(0x85)][_0xb64b19(0xa9)](_0x28d01a=>{const _0x14e25f=_0xb64b19;if(_0x41ef76[_0x14e25f(0xac)][_0x14e25f(0xbb)+_0x28d01a])return;_0x41ef76[_0x14e25f(0xac)][_0x14e25f(0xbb)+_0x28d01a]=!![];const _0x31d269=_0x41ef76[_0x14e25f(0xac)][_0x28d01a];_0x41ef76[_0x14e25f(0xac)][_0x28d01a]=async function(){const _0x5ac75b=_0x14e25f;let _0x5db0db=_0x31d269[_0x5ac75b(0xa7)](this,arguments);_0x5db0db&&_0x5db0db[_0x5ac75b(0xa8)]&&(_0x5db0db=await _0x5db0db);try{const _0x5589b0=this[_0x5ac75b(0xd0)]();await exports[_0x5ac75b(0x98)](_0x5589b0,_0x28d01a,_0x4bff8a);}catch(_0xf2faec){logger[_0x5ac75b(0xcb)]('Error\x20patching\x20'+_0x28d01a+_0x5ac75b(0x86)+_0xf2faec);}return _0x5db0db;};});}},exports[a119_0x551401(0x95)]=function(_0x59ce8a,_0xad4905,_0x238aef){const _0x10f5f1=a119_0x551401,_0x5b6edc={};_0x5b6edc['VScPI']=function(_0x34d027,_0x3b09fb){return _0x34d027+_0x3b09fb;},_0x5b6edc['Qnsyf']=_0x10f5f1(0xbb),_0x5b6edc[_0x10f5f1(0xb0)]=_0x10f5f1(0xb9);const _0x47c7c4=_0x5b6edc,_0x103bbc=_0x47c7c4[_0x10f5f1(0xaf)](_0x47c7c4['Qnsyf'],_0xad4905),_0x38af20=_0x47c7c4['VScPI'](_0x47c7c4['nvgRC'],_0xad4905),_0x44fd17=this;if(_0x59ce8a[_0x103bbc]||!_0x59ce8a[_0xad4905])return;_0x59ce8a[_0x103bbc]=!![],_0x59ce8a[_0x38af20]=_0x59ce8a[_0xad4905],_0x59ce8a[_0xad4905]=async()=>{const _0x129235=_0x10f5f1;try{await _0x44fd17[_0x129235(0x98)](_0x59ce8a,_0xad4905,_0x238aef);}catch(_0xc3d665){logger[_0x129235(0xcb)](_0x129235(0xcc)+_0xad4905+'\x20for\x20percy\x20'+_0xc3d665);}return await _0x59ce8a[_0x38af20][_0x129235(0xa7)](_0x59ce8a,arguments);};},exports['getPercyOptions']=_0x3f8f4c=>{const _0x48f0c4=a119_0x551401,_0x4926d6={};_0x4926d6[_0x48f0c4(0xa2)]='auto';const _0x179ae6=_0x4926d6,_0x17a2a2={};_0x17a2a2[_0x48f0c4(0xae)]=_0x3f8f4c[_0x48f0c4(0xae)],_0x17a2a2[_0x48f0c4(0x89)]=_0x3f8f4c['percyCaptureMode']||_0x179ae6['Roivd'];const _0x414f09=_0x17a2a2;_0x3f8f4c[_0x48f0c4(0xae)]&&(_0x414f09[_0x48f0c4(0xc4)]=exports[_0x48f0c4(0x90)](_0x3f8f4c[_0x48f0c4(0xc3)]));;return _0x414f09;};function a119_0xd68a(){const _0x43812d=['605676ASWNPC','STOP','../performance/constants','debug','getBestPlatformForPercySnapshot','rAKFs','72sUiudC','../performance/performance-tester','app','overrideXforPercy','254084hoKqos','browserstackSessionName','percyAutoCapture','START','18590GebWVg','startPercy','AUTO_CAPTURE','isUndefined','manual','Stopping\x20percy','5BsVNND','./PercyCaptureMap','Roivd','./PercyCaptureModes','200578sBvLOu','../logger','dxFxd','apply','then','forEach','13122OVZzmu','909RAwiFX','prototype','start','percy','VScPI','nvgRC','measureWrapper','616aSXiZo','patchDriverPercy','77QjTvaB','browserstackPercyMap','screenshot','stopPercy','getName','init','firefox','patch','chrome','browserStackPercyOptions','YhTWV','Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present','driver','680604lSvTXU','../helper','platforms','browserstackPercyBestPlatform','NtOVh','edge','screenshotApp','nestedKeyValue','./PercySDK','25865TsHCOk','error','Error\x20patching\x20','TURon','browserName','Eexfc','getDriver','toLowerCase','increment','Starting\x20percy','zwBue','safari','element','\x20for\x20percy\x20','deviceName','stop','percyCaptureMode','browser','qkxNU'];a119_0xd68a=function(){return _0x43812d;};return a119_0xd68a();}
1
+ const a119_0x3fd33c=a119_0x25e1;function a119_0x5800(){const _0x1ec5b4=['browserstackPercyMap','browser','10539798rUQsIa','68rplAVR','Stopping\x20percy','2667740TkNWYD','8IhYdHC','yMHvh','stop','forEach','init','Starting\x20percy','AUTO_CAPTURE','browserName','screenshot','edge','then','percyCaptureMode','Error\x20patching\x20','getName','platforms','firefox','isUndefined','reduce','iTWiW','PvKvC','start','screenshotApp','driver','59135499hDAttG','Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present','element','../performance/constants','auto','browserstackSessionName','winstonLogger','debug','increment','oIcaG','nestedKeyValue','patchDriverPercy','percy','startPercy','error','../performance/performance-tester','deviceName','safari','LWKuF','1958740XziWRA','apply','rLJVV','GeSel','prototype','../logger','./PercyCaptureMap','measureWrapper','toLowerCase','\x20for\x20percy\x20','WCsvt','rXbEH','./PercySDK','patch','520250bEbWHG','JrVHD','./Percy','percyAutoCapture','hWZbh','getBestPlatformForPercySnapshot','browserStackPercyOptions','144306xrtPME','browserstackPercyBestPlatform','START','stopPercy','getDriver','1383151EnmiGc','aVYtd'];a119_0x5800=function(){return _0x1ec5b4;};return a119_0x5800();}(function(_0x4b17f7,_0x5c62ee){const _0x79a89e=a119_0x25e1,_0x10ae81=_0x4b17f7();while(!![]){try{const _0x1c4b2d=-parseInt(_0x79a89e(0xef))/0x1+-parseInt(_0x79a89e(0xf6))/0x2+parseInt(_0x79a89e(0xea))/0x3*(-parseInt(_0x79a89e(0xf4))/0x4)+-parseInt(_0x79a89e(0xe3))/0x5+-parseInt(_0x79a89e(0xf3))/0x6+-parseInt(_0x79a89e(0xd5))/0x7+-parseInt(_0x79a89e(0xf7))/0x8*(-parseInt(_0x79a89e(0x10e))/0x9);if(_0x1c4b2d===_0x5c62ee)break;else _0x10ae81['push'](_0x10ae81['shift']());}catch(_0xdec4c4){_0x10ae81['push'](_0x10ae81['shift']());}}}(a119_0x5800,0xda979));function a119_0x25e1(_0x2c9d62,_0x4063eb){const _0x58009a=a119_0x5800();return a119_0x25e1=function(_0x25e138,_0x152df3){_0x25e138=_0x25e138-0xd5;let _0x25e4a1=_0x58009a[_0x25e138];return _0x25e4a1;},a119_0x25e1(_0x2c9d62,_0x4063eb);}const Percy=require(a119_0x3fd33c(0xe5)),PercySDK=require(a119_0x3fd33c(0xe1)),PercyCaptureModes=require('./PercyCaptureModes'),PercyCaptureMap=require(a119_0x3fd33c(0xdb)),logger=require(a119_0x3fd33c(0xda))[a119_0x3fd33c(0x114)],helper=require('../helper'),PerformanceTester=require(a119_0x3fd33c(0x11d)),{PERCY_EVENTS:PerformanceEvents}=require(a119_0x3fd33c(0x111));exports[a119_0x3fd33c(0x11b)]=PerformanceTester[a119_0x3fd33c(0xdc)](PerformanceEvents[a119_0x3fd33c(0xec)],async _0x205546=>{const _0x568a8a=a119_0x3fd33c,_0x43e221={};_0x43e221[_0x568a8a(0xd7)]=_0x568a8a(0xfc);const _0x11f728=_0x43e221;logger[_0x568a8a(0x115)](_0x11f728['rLJVV']);const _0x47d1f7=new Percy(_0x205546),_0x58f9bd=await _0x47d1f7[_0x568a8a(0x10b)]();if(_0x58f9bd)return _0x47d1f7;return null;}),exports[a119_0x3fd33c(0xed)]=PerformanceTester[a119_0x3fd33c(0xdc)](PerformanceEvents['STOP'],async _0x3691f1=>{const _0x33ecf6=a119_0x3fd33c,_0x3d3148={};_0x3d3148[_0x33ecf6(0xe4)]=_0x33ecf6(0xf5);const _0x4bd5ac=_0x3d3148;return logger[_0x33ecf6(0x115)](_0x4bd5ac[_0x33ecf6(0xe4)]),_0x3691f1[_0x33ecf6(0xf9)]();}),exports['getBestPlatformForPercySnapshot']=_0x5b586d=>{const _0x266fd4=a119_0x3fd33c,_0xa679a8={};_0xa679a8[_0x266fd4(0xf0)]=function(_0x44249d,_0x44b30f){return _0x44249d<_0x44b30f;};const _0x3a01ee=_0xa679a8,_0x2c6047={};_0x2c6047['chrome']=0x0,_0x2c6047[_0x266fd4(0x106)]=0x1,_0x2c6047[_0x266fd4(0x100)]=0x2,_0x2c6047[_0x266fd4(0x11f)]=0x3;const _0x46b0d9=_0x2c6047;return _0x5b586d[_0x266fd4(0x108)]((_0x5a7a20,_0x21da30,_0x27556e)=>{const _0x4d3440=_0x266fd4,_0x22798e=_0x5b586d[_0x5a7a20];if(_0x21da30[_0x4d3440(0x11e)])return _0x5a7a20;if(_0x22798e['deviceName'])return _0x27556e;const _0x4e2b09=_0x21da30[_0x4d3440(0xf2)]?_0x21da30['browser']:_0x21da30[_0x4d3440(0xfe)];if(_0x4e2b09&&_0x3a01ee['aVYtd'](_0x46b0d9[_0x4e2b09[_0x4d3440(0xdd)]()],_0x46b0d9[_0x4e2b09[_0x4d3440(0xdd)]()]))return _0x27556e;return _0x5a7a20;},0x0);},exports[a119_0x3fd33c(0xe6)]=PerformanceTester['measureWrapper'](PerformanceEvents[a119_0x3fd33c(0xfd)],async(_0x372362,_0x3bd4f8,_0xf9e0db)=>{const _0x341527=a119_0x3fd33c,_0x33e3f7={};_0x33e3f7[_0x341527(0xdf)]=_0x341527(0x10f);const _0xf9cb56=_0x33e3f7,_0x281a65=_0x372362[_0x341527(0xf1)];if(helper[_0x341527(0x107)](_0x372362[_0x341527(0x113)])){logger[_0x341527(0x115)](_0xf9cb56[_0x341527(0xdf)]);return;}const _0x12a75e=_0x281a65[_0x341527(0x104)](_0x372362[_0x341527(0x113)],_0x3bd4f8);_0xf9e0db['app']?await PercySDK[_0x341527(0x10c)](_0x372362,_0x12a75e):await PercySDK[_0x341527(0xff)](_0x372362,_0x12a75e),_0x281a65[_0x341527(0x116)](_0x372362[_0x341527(0x113)],_0x3bd4f8);}),exports[a119_0x3fd33c(0x119)]=(_0xf96567,_0x36d656,_0x559434)=>{const _0x47a7b7=a119_0x3fd33c,_0x3a6d49={};_0x3a6d49[_0x47a7b7(0x117)]='browserStackPercyOptions',_0x3a6d49[_0x47a7b7(0x109)]=_0x47a7b7(0x11a),_0x3a6d49[_0x47a7b7(0xd8)]=function(_0x4630df,_0x2c65c4){return _0x4630df!==_0x2c65c4;},_0x3a6d49['yMHvh']='manual';const _0x5f59ea=_0x3a6d49;if(!helper[_0x47a7b7(0x118)](_0x559434,[_0x5f59ea[_0x47a7b7(0x117)],_0x5f59ea[_0x47a7b7(0x109)]]))return;if(_0x559434[_0x47a7b7(0xe9)]['percy']&&_0x559434[_0x47a7b7(0xe9)][_0x47a7b7(0x102)]&&_0x5f59ea[_0x47a7b7(0xd8)](_0x559434[_0x47a7b7(0xe9)][_0x47a7b7(0x102)],_0x5f59ea[_0x47a7b7(0xf8)])&&!_0xf96567[_0x47a7b7(0xf1)]){global[_0x47a7b7(0x113)]&&(_0xf96567[_0x47a7b7(0x113)]=global['browserstackSessionName']),_0xf96567[_0x47a7b7(0xf1)]=new PercyCaptureMap();const _0x5b30a7=PercyCaptureModes[_0x559434[_0x47a7b7(0xe9)][_0x47a7b7(0x102)]];_0x5b30a7[_0x47a7b7(0x10d)]&&_0x5b30a7[_0x47a7b7(0x10d)]['forEach'](_0x22e6c5=>this['overrideXforPercy'](_0xf96567,_0x22e6c5,_0x559434)),_0x5b30a7[_0x47a7b7(0x110)]&&_0x5b30a7[_0x47a7b7(0x110)][_0x47a7b7(0xfa)](_0x2017df=>{const _0x342ffa=_0x47a7b7;if(_0x36d656[_0x342ffa(0xd9)]['patch'+_0x2017df])return;_0x36d656[_0x342ffa(0xd9)]['patch'+_0x2017df]=!![];const _0x573e65=_0x36d656[_0x342ffa(0xd9)][_0x2017df];_0x36d656[_0x342ffa(0xd9)][_0x2017df]=async function(){const _0x409219=_0x342ffa;let _0x77eab7=_0x573e65[_0x409219(0xd6)](this,arguments);_0x77eab7&&_0x77eab7[_0x409219(0x101)]&&(_0x77eab7=await _0x77eab7);try{const _0x2d6a45=this[_0x409219(0xee)]();await exports[_0x409219(0xe6)](_0x2d6a45,_0x2017df,_0x559434);}catch(_0x39e2c0){logger[_0x409219(0x11c)](_0x409219(0x103)+_0x2017df+_0x409219(0xde)+_0x39e2c0);}return _0x77eab7;};});}},exports['overrideXforPercy']=function(_0x49ca8e,_0x23cfc2,_0x5ab790){const _0x9f6802=a119_0x3fd33c,_0x2d8bfa={};_0x2d8bfa[_0x9f6802(0xe0)]=function(_0x435044,_0x518d2d){return _0x435044+_0x518d2d;},_0x2d8bfa['HrgIF']=_0x9f6802(0xe2),_0x2d8bfa[_0x9f6802(0x120)]=function(_0x5a9c09,_0x440218){return _0x5a9c09+_0x440218;},_0x2d8bfa[_0x9f6802(0xe7)]=_0x9f6802(0xfb);const _0x3e3005=_0x2d8bfa,_0x393826=_0x3e3005['rXbEH'](_0x3e3005['HrgIF'],_0x23cfc2),_0x537ed3=_0x3e3005[_0x9f6802(0x120)](_0x3e3005[_0x9f6802(0xe7)],_0x23cfc2),_0x37e2ab=this;if(_0x49ca8e[_0x393826]||!_0x49ca8e[_0x23cfc2])return;_0x49ca8e[_0x393826]=!![],_0x49ca8e[_0x537ed3]=_0x49ca8e[_0x23cfc2],_0x49ca8e[_0x23cfc2]=async()=>{const _0x52352f=_0x9f6802;try{await _0x37e2ab['percyAutoCapture'](_0x49ca8e,_0x23cfc2,_0x5ab790);}catch(_0x251c32){logger[_0x52352f(0x11c)]('Error\x20patching\x20'+_0x23cfc2+'\x20for\x20percy\x20'+_0x251c32);}return await _0x49ca8e[_0x537ed3][_0x52352f(0xd6)](_0x49ca8e,arguments);};},exports['getPercyOptions']=_0x21caa7=>{const _0x5ed70a=a119_0x3fd33c,_0x8020bc={};_0x8020bc[_0x5ed70a(0x10a)]=_0x5ed70a(0x112);const _0x19e48b=_0x8020bc,_0x48445f={};_0x48445f[_0x5ed70a(0x11a)]=_0x21caa7[_0x5ed70a(0x11a)],_0x48445f[_0x5ed70a(0x102)]=_0x21caa7['percyCaptureMode']||_0x19e48b[_0x5ed70a(0x10a)];const _0x5c7c0e=_0x48445f;_0x21caa7[_0x5ed70a(0x11a)]&&(_0x5c7c0e[_0x5ed70a(0xeb)]=exports[_0x5ed70a(0xe8)](_0x21caa7[_0x5ed70a(0x105)]));;return _0x5c7c0e;};