browserstack-node-sdk 1.49.5 → 1.49.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +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_0xf7432e=a109_0x4dd8;(function(_0x5c4f47,_0x4ab656){const _0xbf0c60=a109_0x4dd8,_0x1a9ece=_0x5c4f47();while(!![]){try{const _0x4a7342=-parseInt(_0xbf0c60(0x14b))/0x1+-parseInt(_0xbf0c60(0x10d))/0x2*(-parseInt(_0xbf0c60(0x13f))/0x3)+-parseInt(_0xbf0c60(0x11a))/0x4*(-parseInt(_0xbf0c60(0x11b))/0x5)+-parseInt(_0xbf0c60(0x120))/0x6*(parseInt(_0xbf0c60(0x119))/0x7)+parseInt(_0xbf0c60(0x146))/0x8*(parseInt(_0xbf0c60(0x115))/0x9)+-parseInt(_0xbf0c60(0x10e))/0xa*(-parseInt(_0xbf0c60(0x134))/0xb)+-parseInt(_0xbf0c60(0x139))/0xc*(parseInt(_0xbf0c60(0x13e))/0xd);if(_0x4a7342===_0x4ab656)break;else _0x1a9ece['push'](_0x1a9ece['shift']());}catch(_0xd3cc59){_0x1a9ece['push'](_0x1a9ece['shift']());}}}(a109_0x545d,0xbc927));const winston=require('winston'),path=require(a109_0xf7432e(0x10f)),fs=require('fs'),{LOG_FILE_NAME,DEBUG_LOG_FILE_NAME}=require(a109_0xf7432e(0x158)),tempLogDir=a109_0xf7432e(0x11f),logFormat=winston[a109_0xf7432e(0x114)](_0x37fb79=>{const _0x2dc45f=a109_0xf7432e,_0x446795={};_0x446795[_0x2dc45f(0x155)]=function(_0x357093,_0xc9619e){return _0x357093!==_0xc9619e;},_0x446795[_0x2dc45f(0x142)]=_0x2dc45f(0x111),_0x446795[_0x2dc45f(0x126)]=function(_0x101fc3,_0x1e816f){return _0x101fc3===_0x1e816f;},_0x446795[_0x2dc45f(0x12b)]=_0x2dc45f(0x12e),_0x446795[_0x2dc45f(0x149)]=function(_0x1f8875,_0x56ac0b){return _0x1f8875===_0x56ac0b;};const _0x5c528d=_0x446795;return _0x5c528d[_0x2dc45f(0x155)](typeof _0x37fb79[_0x2dc45f(0x112)],_0x5c528d[_0x2dc45f(0x142)])&&(_0x37fb79[_0x2dc45f(0x112)]=JSON[_0x2dc45f(0x10c)](_0x37fb79[_0x2dc45f(0x112)])),global[_0x2dc45f(0x109)]?.[_0x2dc45f(0x13d)]?.['userName']&&_0x5c528d[_0x2dc45f(0x126)](typeof _0x37fb79[_0x2dc45f(0x112)],_0x5c528d[_0x2dc45f(0x142)])&&(_0x37fb79[_0x2dc45f(0x112)]=_0x37fb79['message'][_0x2dc45f(0x108)](new RegExp(global['session'][_0x2dc45f(0x13d)][_0x2dc45f(0x12d)],'g'),_0x5c528d[_0x2dc45f(0x12b)])),global['session']?.['config']?.[_0x2dc45f(0x144)]&&_0x5c528d[_0x2dc45f(0x149)](typeof _0x37fb79['message'],_0x5c528d[_0x2dc45f(0x142)])&&(_0x37fb79[_0x2dc45f(0x112)]=_0x37fb79['message'][_0x2dc45f(0x108)](new RegExp(global['session'][_0x2dc45f(0x13d)][_0x2dc45f(0x144)],'g'),_0x5c528d[_0x2dc45f(0x12b)])),_0x37fb79;}),fetchLogDir=()=>{const _0x7ac93f=a109_0xf7432e;if(process['env'][_0x7ac93f(0x113)])return process['env'][_0x7ac93f(0x113)];else!fs[_0x7ac93f(0x147)](tempLogDir)&&fs[_0x7ac93f(0x135)](tempLogDir);return tempLogDir;},logDir=fetchLogDir(),getInitialLogLevel=()=>{const _0x357c08=a109_0xf7432e,_0x47f007={};_0x47f007[_0x357c08(0x124)]='info';const _0xbe7850=_0x47f007,_0x58d36c=process[_0x357c08(0x127)][_0x357c08(0x157)],_0x29d116=Object[_0x357c08(0x132)](winston[_0x357c08(0x13d)][_0x357c08(0x122)][_0x357c08(0x10b)]);if(_0x58d36c&&_0x29d116[_0x357c08(0x106)](_0x58d36c[_0x357c08(0x110)]()))return _0x58d36c[_0x357c08(0x110)]();return _0xbe7850[_0x357c08(0x124)];},initialLogLevel=getInitialLogLevel(),a109_0x15d9cb={};a109_0x15d9cb[a109_0xf7432e(0x133)]=a109_0xf7432e(0x11e),a109_0x15d9cb[a109_0xf7432e(0x150)]=initialLogLevel;const transports={'loggerConsole':new winston[(a109_0xf7432e(0x140))][(a109_0xf7432e(0x128))](a109_0x15d9cb),'loggerFile':new winston['transports'][(a109_0xf7432e(0x151))]({'filename':path[a109_0xf7432e(0x13a)](logDir,a109_0xf7432e(0x107)),'level':initialLogLevel}),'debugLoggerFile':new winston[(a109_0xf7432e(0x140))][(a109_0xf7432e(0x151))]({'filename':path[a109_0xf7432e(0x13a)](logDir,a109_0xf7432e(0x129)),'level':'silly'}),'debugCliLoggerFile':new winston['transports'][(a109_0xf7432e(0x151))]({'filename':path[a109_0xf7432e(0x13a)](logDir,a109_0xf7432e(0x13b)),'level':a109_0xf7432e(0x116)}),'buildLinkTransport':new winston[(a109_0xf7432e(0x140))][(a109_0xf7432e(0x151))]({'filename':path[a109_0xf7432e(0x13a)](logDir,a109_0xf7432e(0x107)),'level':a109_0xf7432e(0x116)})},automationTransports={};process[a109_0xf7432e(0x127)][a109_0xf7432e(0x12f)]===a109_0xf7432e(0x105)&&(automationTransports[a109_0xf7432e(0x14c)]=new winston[(a109_0xf7432e(0x140))][(a109_0xf7432e(0x151))]({'filename':path[a109_0xf7432e(0x13a)](logDir,a109_0xf7432e(0x141)),'level':a109_0xf7432e(0x116)}));transports[a109_0xf7432e(0x156)]['on'](a109_0xf7432e(0x121),_0x30ee15=>{const _0x11168f=a109_0xf7432e,_0x531e44={};_0x531e44[_0x11168f(0x14e)]=function(_0xf5d3d5,_0x168a05){return _0xf5d3d5===_0x168a05;},_0x531e44['lbipH']=_0x11168f(0x11d),_0x531e44['qgCAx']=_0x11168f(0x125);const _0x4b05ce=_0x531e44;if(_0x4b05ce[_0x11168f(0x14e)](_0x30ee15[_0x11168f(0x12a)],_0x4b05ce[_0x11168f(0x145)])){console[_0x11168f(0x11f)](_0x4b05ce['qgCAx'],_0x30ee15[_0x11168f(0x112)]);return;}throw _0x30ee15;});const a109_0x46ba4c={};function a109_0x545d(){const _0x112f98=['110EELVwh','path','toLowerCase','string','message','BROWSERSTACK_INTERNAL_LOG_DIR','format','1143ezFsYJ','silly','warn','combine','3024uFqtst','1680036GhhRlb','15BveaWF','YYYY-MM-DD\x20HH:mm:ss','EPIPE','console.info','log','4068gGLaFd','error','npm','printf','ySnng','EPIPE\x20error\x20occurred\x20in\x20loggerConsole:','ZDNcT','env','Console','/usage-debug.log','code','QtNzo','automationLogger','userName','[REDACTED]','BROWSERSTACK_AUTOMATION_LOGS','add','colorize','keys','name','1313741AJDzGv','mkdirSync','getLogDir','createLogger','\x20-\x20','672UNLWuS','join','/sdk-cli-debug.log','http','config','671905zWDFvp','2994NBhPgS','transports','automation.log','erJSI','info','accessKey','lbipH','92824sWneZO','existsSync','logDir','jLAZB','winstonLogger','692490MtdpGL','automationLoggerFile','timestamp','gCXYw','debugLoggerFile','level','File','thUJS','buildLogger','fileLogger','cijQc','loggerConsole','BROWSERSTACK_LOG_LEVEL','../bin/utils/constants','true','includes','/usage.log','replace','session','buildLinkTransport','levels','stringify','1212iNXSjR'];a109_0x545d=function(){return _0x112f98;};return a109_0x545d();}a109_0x46ba4c[a109_0xf7432e(0x114)]=a109_0xf7432e(0x11c);const a109_0x3af76d={};a109_0x3af76d['level']=!![];const winstonLoggerParams={'format':winston[a109_0xf7432e(0x114)][a109_0xf7432e(0x118)](winston[a109_0xf7432e(0x114)][a109_0xf7432e(0x14d)](a109_0x46ba4c),winston[a109_0xf7432e(0x114)][a109_0xf7432e(0x131)](a109_0x3af76d),winston['format'][a109_0xf7432e(0x123)](_0x37c26f=>_0x37c26f[a109_0xf7432e(0x14d)]+'\x20-\x20'+_0x37c26f['level']+':\x20'+_0x37c26f['message'])),'transports':[transports['loggerConsole']]},a109_0x4b0cfb={};a109_0x4b0cfb[a109_0xf7432e(0x114)]=a109_0xf7432e(0x11c);const a109_0x55827b={};a109_0x55827b['level']=!![];const winstonFileLoggerParams={'format':winston[a109_0xf7432e(0x114)][a109_0xf7432e(0x118)](winston['format'][a109_0xf7432e(0x14d)](a109_0x4b0cfb),winston[a109_0xf7432e(0x114)][a109_0xf7432e(0x131)](a109_0x55827b),winston[a109_0xf7432e(0x114)][a109_0xf7432e(0x123)](_0x53deb9=>_0x53deb9['level']+':\x20'+_0x53deb9['message'])),'transports':[]},a109_0x203289={};a109_0x203289[a109_0xf7432e(0x114)]=a109_0xf7432e(0x11c);const a109_0x4c762a={};a109_0x4c762a[a109_0xf7432e(0x150)]=!![];const a109_0x42fc01={};a109_0x42fc01[a109_0xf7432e(0x150)]=a109_0xf7432e(0x116);function a109_0x4dd8(_0xa69c72,_0x43450d){const _0x545d76=a109_0x545d();return a109_0x4dd8=function(_0x4dd82d,_0x371bb1){_0x4dd82d=_0x4dd82d-0x105;let _0x50a267=_0x545d76[_0x4dd82d];return _0x50a267;},a109_0x4dd8(_0xa69c72,_0x43450d);}const BuildLoggerParams={'format':winston['format'][a109_0xf7432e(0x118)](winston['format'][a109_0xf7432e(0x14d)](a109_0x203289),winston[a109_0xf7432e(0x114)]['colorize'](a109_0x4c762a),winston['format']['printf'](_0x52ec64=>_0x52ec64[a109_0xf7432e(0x14d)]+a109_0xf7432e(0x138)+_0x52ec64[a109_0xf7432e(0x150)]+':\x20'+_0x52ec64[a109_0xf7432e(0x112)])),'transports':[transports[a109_0xf7432e(0x10a)],new winston['transports'][(a109_0xf7432e(0x128))](a109_0x42fc01)]},a109_0x46191d={};a109_0x46191d[a109_0xf7432e(0x13c)]=()=>{},a109_0x46191d[a109_0xf7432e(0x143)]=()=>{},a109_0x46191d[a109_0xf7432e(0x117)]=()=>{},a109_0x46191d[a109_0xf7432e(0x121)]=()=>{},a109_0x46191d['debug']=()=>{},a109_0x46191d[a109_0xf7432e(0x116)]=()=>{},exports[a109_0xf7432e(0x12c)]=process['env'][a109_0xf7432e(0x12f)]==='true'?winston[a109_0xf7432e(0x137)]({'format':winston['format'][a109_0xf7432e(0x118)](winston[a109_0xf7432e(0x114)]['uncolorize'](),winston['format']['timestamp'](),logFormat(),winston['format'][a109_0xf7432e(0x123)](_0x259f2f=>_0x259f2f[a109_0xf7432e(0x150)]+':\x20'+_0x259f2f[a109_0xf7432e(0x112)])),'transports':[automationTransports[a109_0xf7432e(0x14c)]]}):a109_0x46191d;const initialize=()=>{const _0x28240a=a109_0xf7432e,_0x1ec0b6={};_0x1ec0b6['thUJS']=_0x28240a(0x116);const _0x14c50f=_0x1ec0b6,_0x2ae3ae=transports[_0x28240a(0x156)][_0x28240a(0x150)]||initialLogLevel;transports['loggerFile']=new winston[(_0x28240a(0x140))][(_0x28240a(0x151))]({'filename':path['join'](exports[_0x28240a(0x148)],LOG_FILE_NAME),'level':_0x2ae3ae}),transports[_0x28240a(0x14f)]=new winston[(_0x28240a(0x140))][(_0x28240a(0x151))]({'filename':path['join'](exports[_0x28240a(0x148)],DEBUG_LOG_FILE_NAME),'level':_0x14c50f[_0x28240a(0x152)]}),exports[_0x28240a(0x14a)][_0x28240a(0x130)](transports['loggerFile']),exports[_0x28240a(0x14a)]['add'](transports[_0x28240a(0x14f)]),exports[_0x28240a(0x154)][_0x28240a(0x130)](transports['loggerFile']),exports[_0x28240a(0x154)]['add'](transports[_0x28240a(0x14f)]);};exports[a109_0xf7432e(0x14a)]=new winston[(a109_0xf7432e(0x137))](winstonLoggerParams),exports[a109_0xf7432e(0x154)]=new winston[(a109_0xf7432e(0x137))](winstonFileLoggerParams),exports[a109_0xf7432e(0x153)]=new winston['createLogger'](BuildLoggerParams),exports[a109_0xf7432e(0x148)]=logDir,exports[a109_0xf7432e(0x136)]=()=>{return exports['logDir'];},exports[a109_0xf7432e(0x140)]=transports,exports['initialize']=initialize;logDir&&initialize();
1
+ const a109_0x1e4e69=a109_0x542a;(function(_0x470df2,_0x28c5b2){const _0x121cb3=a109_0x542a,_0x73c205=_0x470df2();while(!![]){try{const _0x7996f1=parseInt(_0x121cb3(0xb0))/0x1*(parseInt(_0x121cb3(0x90))/0x2)+-parseInt(_0x121cb3(0x92))/0x3+parseInt(_0x121cb3(0x9c))/0x4+-parseInt(_0x121cb3(0x9f))/0x5+parseInt(_0x121cb3(0xbe))/0x6+-parseInt(_0x121cb3(0x9e))/0x7*(-parseInt(_0x121cb3(0x7f))/0x8)+-parseInt(_0x121cb3(0x83))/0x9;if(_0x7996f1===_0x28c5b2)break;else _0x73c205['push'](_0x73c205['shift']());}catch(_0x13b268){_0x73c205['push'](_0x73c205['shift']());}}}(a109_0x5bde,0xc6834));const winston=require('winston'),path=require(a109_0x1e4e69(0x84)),fs=require('fs'),{LOG_FILE_NAME,DEBUG_LOG_FILE_NAME}=require('../bin/utils/constants'),tempLogDir='log',logFormat=winston[a109_0x1e4e69(0x8f)](_0x43c71a=>{const _0x26b8a2=a109_0x1e4e69,_0x54cc98={};_0x54cc98[_0x26b8a2(0x87)]=function(_0x5b3a6a,_0x12a9b7){return _0x5b3a6a!==_0x12a9b7;},_0x54cc98[_0x26b8a2(0x7c)]=_0x26b8a2(0x82),_0x54cc98[_0x26b8a2(0x7d)]=function(_0x3310f7,_0x24fea5){return _0x3310f7===_0x24fea5;},_0x54cc98[_0x26b8a2(0xa2)]=_0x26b8a2(0x8c);const _0x4a8de2=_0x54cc98;return _0x4a8de2[_0x26b8a2(0x87)](typeof _0x43c71a[_0x26b8a2(0x9d)],_0x4a8de2[_0x26b8a2(0x7c)])&&(_0x43c71a[_0x26b8a2(0x9d)]=JSON[_0x26b8a2(0x93)](_0x43c71a['message'])),global[_0x26b8a2(0x81)]?.['config']?.[_0x26b8a2(0xaf)]&&_0x4a8de2[_0x26b8a2(0x7d)](typeof _0x43c71a[_0x26b8a2(0x9d)],_0x4a8de2[_0x26b8a2(0x7c)])&&(_0x43c71a[_0x26b8a2(0x9d)]=_0x43c71a['message']['replace'](new RegExp(global[_0x26b8a2(0x81)]['config'][_0x26b8a2(0xaf)],'g'),_0x4a8de2[_0x26b8a2(0xa2)])),global[_0x26b8a2(0x81)]?.['config']?.['accessKey']&&_0x4a8de2['FsJKC'](typeof _0x43c71a[_0x26b8a2(0x9d)],_0x4a8de2['kPTKb'])&&(_0x43c71a[_0x26b8a2(0x9d)]=_0x43c71a[_0x26b8a2(0x9d)][_0x26b8a2(0xa4)](new RegExp(global[_0x26b8a2(0x81)]['config'][_0x26b8a2(0x8e)],'g'),_0x4a8de2[_0x26b8a2(0xa2)])),_0x43c71a;}),fetchLogDir=()=>{const _0x591033=a109_0x1e4e69;if(process[_0x591033(0xb1)][_0x591033(0xa7)])return process['env'][_0x591033(0xa7)];else!fs[_0x591033(0x95)](tempLogDir)&&fs[_0x591033(0xa0)](tempLogDir);return tempLogDir;},logDir=fetchLogDir(),getInitialLogLevel=()=>{const _0x3f5a40=a109_0x1e4e69,_0x117437={};_0x117437['DFPWR']=_0x3f5a40(0xb3);const _0x2da733=_0x117437,_0x5a5197=process[_0x3f5a40(0xb1)][_0x3f5a40(0x9a)],_0x22d5b3=Object['keys'](winston[_0x3f5a40(0xc7)][_0x3f5a40(0x80)][_0x3f5a40(0xc2)]);if(_0x5a5197&&_0x22d5b3['includes'](_0x5a5197[_0x3f5a40(0x8b)]()))return _0x5a5197[_0x3f5a40(0x8b)]();return _0x2da733[_0x3f5a40(0xb9)];},initialLogLevel=getInitialLogLevel(),a109_0x353701={};a109_0x353701[a109_0x1e4e69(0x8a)]='console.info',a109_0x353701[a109_0x1e4e69(0xa1)]=initialLogLevel;const transports={'loggerConsole':new winston[(a109_0x1e4e69(0xab))][(a109_0x1e4e69(0xbd))](a109_0x353701),'loggerFile':new winston[(a109_0x1e4e69(0xab))][(a109_0x1e4e69(0xb6))]({'filename':path[a109_0x1e4e69(0xb8)](logDir,'/usage.log'),'level':initialLogLevel}),'debugLoggerFile':new winston[(a109_0x1e4e69(0xab))][(a109_0x1e4e69(0xb6))]({'filename':path[a109_0x1e4e69(0xb8)](logDir,a109_0x1e4e69(0x99)),'level':a109_0x1e4e69(0x7e)}),'debugCliLoggerFile':new winston[(a109_0x1e4e69(0xab))][(a109_0x1e4e69(0xb6))]({'filename':path[a109_0x1e4e69(0xb8)](logDir,a109_0x1e4e69(0x96)),'level':'silly'}),'buildLinkTransport':new winston[(a109_0x1e4e69(0xab))][(a109_0x1e4e69(0xb6))]({'filename':path[a109_0x1e4e69(0xb8)](logDir,a109_0x1e4e69(0x91)),'level':a109_0x1e4e69(0x7e)})},automationTransports={};process[a109_0x1e4e69(0xb1)]['BROWSERSTACK_AUTOMATION_LOGS']==='true'&&(automationTransports[a109_0x1e4e69(0xc3)]=new winston[(a109_0x1e4e69(0xab))]['File']({'filename':path[a109_0x1e4e69(0xb8)](logDir,'automation.log'),'level':'silly'}));transports['loggerConsole']['on'](a109_0x1e4e69(0xc0),_0x3025e6=>{const _0x2e813f=a109_0x1e4e69,_0x56bac7={};_0x56bac7[_0x2e813f(0xc5)]=function(_0x30ebc7,_0x4beab8){return _0x30ebc7===_0x4beab8;},_0x56bac7[_0x2e813f(0xa6)]=_0x2e813f(0xad),_0x56bac7[_0x2e813f(0x94)]=_0x2e813f(0xbc);const _0x4d06f4=_0x56bac7;if(_0x4d06f4[_0x2e813f(0xc5)](_0x3025e6[_0x2e813f(0xba)],_0x4d06f4['cCxkq'])){console[_0x2e813f(0x8d)](_0x4d06f4[_0x2e813f(0x94)],_0x3025e6[_0x2e813f(0x9d)]);return;}throw _0x3025e6;});const a109_0x5b4859={};a109_0x5b4859[a109_0x1e4e69(0x8f)]=a109_0x1e4e69(0x9b);function a109_0x542a(_0x1da8df,_0x3d6a11){const _0x5bdeb1=a109_0x5bde();return a109_0x542a=function(_0x542a44,_0x326ac0){_0x542a44=_0x542a44-0x7c;let _0x1ff990=_0x5bdeb1[_0x542a44];return _0x1ff990;},a109_0x542a(_0x1da8df,_0x3d6a11);}const a109_0x4f3572={};a109_0x4f3572[a109_0x1e4e69(0xa1)]=!![];const winstonLoggerParams={'format':winston[a109_0x1e4e69(0x8f)][a109_0x1e4e69(0x98)](winston['format'][a109_0x1e4e69(0xb5)](a109_0x5b4859),winston['format'][a109_0x1e4e69(0xaa)](a109_0x4f3572),winston[a109_0x1e4e69(0x8f)]['printf'](_0x2c020e=>_0x2c020e[a109_0x1e4e69(0xb5)]+'\x20-\x20'+_0x2c020e[a109_0x1e4e69(0xa1)]+':\x20'+_0x2c020e[a109_0x1e4e69(0x9d)])),'transports':[transports['loggerConsole']]},a109_0x50abf5={};a109_0x50abf5[a109_0x1e4e69(0x8f)]=a109_0x1e4e69(0x9b);const a109_0x380c8a={};a109_0x380c8a['level']=!![];function a109_0x5bde(){const _0x561a0c=['error','buildLogger','levels','automationLoggerFile','http','jwQhE','add','config','kPTKb','FsJKC','silly','8cbnCsx','npm','session','string','12664026WaekDL','path','debug','loggerConsole','UucLm','true','fileLogger','name','toLowerCase','[REDACTED]','log','accessKey','format','3222254kXSQbR','/usage.log','403431YlvQnD','stringify','noBvp','existsSync','/sdk-cli-debug.log','logDir','combine','/usage-debug.log','BROWSERSTACK_LOG_LEVEL','YYYY-MM-DD\x20HH:mm:ss','2549976EVcmPP','message','1670697BMdZrX','1201350UOXNeB','mkdirSync','level','WHtok','debugLoggerFile','replace','loggerFile','cCxkq','BROWSERSTACK_INTERNAL_LOG_DIR','JKaCp','initialize','colorize','transports','buildLinkTransport','EPIPE','winstonLogger','userName','1IoHvIp','env','\x20-\x20','info','printf','timestamp','File','BROWSERSTACK_AUTOMATION_LOGS','join','DFPWR','code','uncolorize','EPIPE\x20error\x20occurred\x20in\x20loggerConsole:','Console','646062wXKbap','createLogger'];a109_0x5bde=function(){return _0x561a0c;};return a109_0x5bde();}const winstonFileLoggerParams={'format':winston[a109_0x1e4e69(0x8f)]['combine'](winston['format'][a109_0x1e4e69(0xb5)](a109_0x50abf5),winston[a109_0x1e4e69(0x8f)][a109_0x1e4e69(0xaa)](a109_0x380c8a),winston[a109_0x1e4e69(0x8f)][a109_0x1e4e69(0xb4)](_0x52042e=>_0x52042e[a109_0x1e4e69(0xa1)]+':\x20'+_0x52042e[a109_0x1e4e69(0x9d)])),'transports':[]},a109_0x2c6158={};a109_0x2c6158[a109_0x1e4e69(0x8f)]=a109_0x1e4e69(0x9b);const a109_0x15c750={};a109_0x15c750[a109_0x1e4e69(0xa1)]=!![];const a109_0x401e9c={};a109_0x401e9c[a109_0x1e4e69(0xa1)]=a109_0x1e4e69(0x7e);const BuildLoggerParams={'format':winston['format'][a109_0x1e4e69(0x98)](winston[a109_0x1e4e69(0x8f)][a109_0x1e4e69(0xb5)](a109_0x2c6158),winston[a109_0x1e4e69(0x8f)]['colorize'](a109_0x15c750),winston[a109_0x1e4e69(0x8f)][a109_0x1e4e69(0xb4)](_0x44d53d=>_0x44d53d[a109_0x1e4e69(0xb5)]+a109_0x1e4e69(0xb2)+_0x44d53d[a109_0x1e4e69(0xa1)]+':\x20'+_0x44d53d['message'])),'transports':[transports[a109_0x1e4e69(0xac)],new winston['transports'][(a109_0x1e4e69(0xbd))](a109_0x401e9c)]},a109_0xc65341={};a109_0xc65341[a109_0x1e4e69(0xc4)]=()=>{},a109_0xc65341[a109_0x1e4e69(0xb3)]=()=>{},a109_0xc65341['warn']=()=>{},a109_0xc65341['error']=()=>{},a109_0xc65341[a109_0x1e4e69(0x85)]=()=>{},a109_0xc65341[a109_0x1e4e69(0x7e)]=()=>{},exports['automationLogger']=process[a109_0x1e4e69(0xb1)][a109_0x1e4e69(0xb7)]===a109_0x1e4e69(0x88)?winston[a109_0x1e4e69(0xbf)]({'format':winston[a109_0x1e4e69(0x8f)]['combine'](winston[a109_0x1e4e69(0x8f)][a109_0x1e4e69(0xbb)](),winston[a109_0x1e4e69(0x8f)]['timestamp'](),logFormat(),winston[a109_0x1e4e69(0x8f)]['printf'](_0x227a55=>_0x227a55[a109_0x1e4e69(0xa1)]+':\x20'+_0x227a55['message'])),'transports':[automationTransports[a109_0x1e4e69(0xc3)]]}):a109_0xc65341;const initialize=()=>{const _0x2e9848=a109_0x1e4e69,_0x21c531={};_0x21c531[_0x2e9848(0xa8)]=_0x2e9848(0x7e);const _0x2411be=_0x21c531,_0x109a9d=transports[_0x2e9848(0x86)][_0x2e9848(0xa1)]||initialLogLevel;transports['loggerFile']=new winston[(_0x2e9848(0xab))][(_0x2e9848(0xb6))]({'filename':path['join'](exports['logDir'],LOG_FILE_NAME),'level':_0x109a9d}),transports[_0x2e9848(0xa3)]=new winston[(_0x2e9848(0xab))][(_0x2e9848(0xb6))]({'filename':path[_0x2e9848(0xb8)](exports[_0x2e9848(0x97)],DEBUG_LOG_FILE_NAME),'level':_0x2411be['JKaCp']}),exports['winstonLogger']['add'](transports[_0x2e9848(0xa5)]),exports['winstonLogger'][_0x2e9848(0xc6)](transports['debugLoggerFile']),exports[_0x2e9848(0x89)][_0x2e9848(0xc6)](transports['loggerFile']),exports[_0x2e9848(0x89)][_0x2e9848(0xc6)](transports[_0x2e9848(0xa3)]);};exports[a109_0x1e4e69(0xae)]=new winston[(a109_0x1e4e69(0xbf))](winstonLoggerParams),exports[a109_0x1e4e69(0x89)]=new winston[(a109_0x1e4e69(0xbf))](winstonFileLoggerParams),exports[a109_0x1e4e69(0xc1)]=new winston['createLogger'](BuildLoggerParams),exports[a109_0x1e4e69(0x97)]=logDir,exports['getLogDir']=()=>{return exports['logDir'];},exports[a109_0x1e4e69(0xab)]=transports,exports[a109_0x1e4e69(0xa9)]=initialize;logDir&&initialize();
@@ -1 +1 @@
1
- const a110_0x365b09=a110_0x436a;function a110_0x3d31(){const _0x5cfe76=['15233598NGVGer','76324DsEfTC','lcnc','testRunUUID','CUEXF','set','639014LEUbMD','length','WXGbr','testMeta','string','warn','winstonLogger','3851561bbLWfZ','getCentralUser','getGlobal','ERMIa','4134392QmvARD','tmSFy','./helper','1770966uPDuCz','12poPtaM','13556OUsCbO','setGlobal','./logger','815QxJYSK','get','ttvbR','SxlDI'];a110_0x3d31=function(){return _0x5cfe76;};return a110_0x3d31();}(function(_0x3a5dc3,_0x1db8f2){const _0x55e401=a110_0x436a,_0x54acd5=_0x3a5dc3();while(!![]){try{const _0x323ee6=parseInt(_0x55e401(0x1f2))/0x1+-parseInt(_0x55e401(0x20a))/0x2+parseInt(_0x55e401(0x200))/0x3+-parseInt(_0x55e401(0x202))/0x4*(parseInt(_0x55e401(0x205))/0x5)+parseInt(_0x55e401(0x201))/0x6*(parseInt(_0x55e401(0x1f9))/0x7)+parseInt(_0x55e401(0x1fd))/0x8+-parseInt(_0x55e401(0x209))/0x9;if(_0x323ee6===_0x1db8f2)break;else _0x54acd5['push'](_0x54acd5['shift']());}catch(_0x39cd96){_0x54acd5['push'](_0x54acd5['shift']());}}}(a110_0x3d31,0x898be));const globals=require('./globals'),helper=require(a110_0x365b09(0x1ff)),logger=require(a110_0x365b09(0x204))[a110_0x365b09(0x1f8)];function a110_0x436a(_0x388c63,_0x272200){const _0x3d313e=a110_0x3d31();return a110_0x436a=function(_0x436a96,_0x423dea){_0x436a96=_0x436a96-0x1f2;let _0xf83576=_0x3d313e[_0x436a96];return _0xf83576;},a110_0x436a(_0x388c63,_0x272200);}module['exports']=class TestMetadata{static[a110_0x365b09(0x20e)](_0x3b3672={}){const _0x58a9a4=a110_0x365b09,_0x18d76e={};_0x18d76e[_0x58a9a4(0x1fe)]=_0x58a9a4(0x20c),_0x18d76e[_0x58a9a4(0x208)]=function(_0x212b6b,_0x4c1c03){return _0x212b6b===_0x4c1c03;},_0x18d76e['iLpbL']=_0x58a9a4(0x1f6),_0x18d76e[_0x58a9a4(0x207)]=function(_0xa4f646,_0x305675){return _0xa4f646<=_0x305675;},_0x18d76e[_0x58a9a4(0x1fc)]=_0x58a9a4(0x1f5),_0x18d76e[_0x58a9a4(0x20d)]='The\x20metadata\x20object\x20is\x20not\x20valid.';const _0x1ad486=_0x18d76e,_0xca13a1=globals[_0x58a9a4(0x1fb)](_0x1ad486[_0x58a9a4(0x1fe)]),_0x3ddef5=_0x3b3672['identifier'];helper[_0x58a9a4(0x1fa)]()[_0x58a9a4(0x20b)]&&(_0x1ad486[_0x58a9a4(0x208)](typeof _0x3ddef5,_0x1ad486['iLpbL'])&&_0x1ad486['ttvbR'](_0x3ddef5[_0x58a9a4(0x1f3)],0x28)?_0xca13a1?globals[_0x58a9a4(0x203)]('testMeta-'+_0xca13a1,_0x3b3672):globals[_0x58a9a4(0x203)](_0x1ad486[_0x58a9a4(0x1fc)],_0x3b3672):logger[_0x58a9a4(0x1f7)](_0x1ad486['CUEXF']));}static[a110_0x365b09(0x206)](_0x3378ee){const _0x25559d=a110_0x365b09,_0x24ed1a={};_0x24ed1a['WXGbr']=_0x25559d(0x1f5);const _0x1e88c5=_0x24ed1a;if(helper[_0x25559d(0x1fa)]()[_0x25559d(0x20b)])return globals['getGlobal']('testMeta-'+_0x3378ee)||globals[_0x25559d(0x1fb)](_0x1e88c5[_0x25559d(0x1f4)])||{};return{};}};
1
+ function a110_0x1e72(){const _0x1e97f5=['qsvwf','The\x20metadata\x20object\x20is\x20not\x20valid.','setGlobal','Btvaq','ZBCoQ','561869yOyZhj','GUPAf','zeNRb','testMeta-','./logger','275948USldap','string','testRunUUID','256708QXSXLF','171eJvhQJ','3KxOZoa','getGlobal','7205264AUxdxd','567284xbHkNJ','winstonLogger','identifier','./globals','./helper','getCentralUser','547290BZWhbr','lcnc','2311270dmhrxn','rOtRa','warn','testMeta','MxPDO','78wnqAZj'];a110_0x1e72=function(){return _0x1e97f5;};return a110_0x1e72();}function a110_0x205f(_0x1eaa31,_0x49430a){const _0x1e720f=a110_0x1e72();return a110_0x205f=function(_0x205f33,_0x3f671d){_0x205f33=_0x205f33-0x7c;let _0x457532=_0x1e720f[_0x205f33];return _0x457532;},a110_0x205f(_0x1eaa31,_0x49430a);}const a110_0x14a7ea=a110_0x205f;(function(_0x2f2a9c,_0x53ccc8){const _0x4aad8e=a110_0x205f,_0x1ebb89=_0x2f2a9c();while(!![]){try{const _0x21f28a=parseInt(_0x4aad8e(0x97))/0x1+-parseInt(_0x4aad8e(0x7c))/0x2*(parseInt(_0x4aad8e(0x99))/0x3)+-parseInt(_0x4aad8e(0x94))/0x4+-parseInt(_0x4aad8e(0x84))/0x5+-parseInt(_0x4aad8e(0x89))/0x6*(-parseInt(_0x4aad8e(0x8f))/0x7)+-parseInt(_0x4aad8e(0x9b))/0x8+parseInt(_0x4aad8e(0x98))/0x9*(parseInt(_0x4aad8e(0x82))/0xa);if(_0x21f28a===_0x53ccc8)break;else _0x1ebb89['push'](_0x1ebb89['shift']());}catch(_0x11149e){_0x1ebb89['push'](_0x1ebb89['shift']());}}}(a110_0x1e72,0x98769));const globals=require(a110_0x14a7ea(0x7f)),helper=require(a110_0x14a7ea(0x80)),logger=require(a110_0x14a7ea(0x93))[a110_0x14a7ea(0x7d)];module['exports']=class TestMetadata{static['set'](_0x2c066f={}){const _0x2e2d19=a110_0x14a7ea,_0x5e4a81={};_0x5e4a81[_0x2e2d19(0x88)]=_0x2e2d19(0x96),_0x5e4a81[_0x2e2d19(0x8e)]=function(_0x273477,_0x16356c){return _0x273477===_0x16356c;},_0x5e4a81[_0x2e2d19(0x8a)]=_0x2e2d19(0x95),_0x5e4a81[_0x2e2d19(0x8d)]=function(_0x2762f7,_0x40350a){return _0x2762f7<=_0x40350a;},_0x5e4a81[_0x2e2d19(0x85)]=_0x2e2d19(0x87),_0x5e4a81[_0x2e2d19(0x90)]=_0x2e2d19(0x8b);const _0x8bf340=_0x5e4a81,_0x9c5166=globals['getGlobal'](_0x8bf340['MxPDO']),_0x45f80d=_0x2c066f[_0x2e2d19(0x7e)];helper['getCentralUser']()['lcnc']&&(_0x8bf340[_0x2e2d19(0x8e)](typeof _0x45f80d,_0x8bf340[_0x2e2d19(0x8a)])&&_0x8bf340[_0x2e2d19(0x8d)](_0x45f80d['length'],0x28)?_0x9c5166?globals[_0x2e2d19(0x8c)](_0x2e2d19(0x92)+_0x9c5166,_0x2c066f):globals['setGlobal'](_0x8bf340[_0x2e2d19(0x85)],_0x2c066f):logger[_0x2e2d19(0x86)](_0x8bf340[_0x2e2d19(0x90)]));}static['get'](_0x551e99){const _0x17351b=a110_0x14a7ea,_0x5681ea={};_0x5681ea[_0x17351b(0x91)]='testMeta';const _0x520b00=_0x5681ea;if(helper[_0x17351b(0x81)]()[_0x17351b(0x83)])return globals[_0x17351b(0x9a)](_0x17351b(0x92)+_0x551e99)||globals[_0x17351b(0x9a)](_0x520b00[_0x17351b(0x91)])||{};return{};}};
@@ -1 +1 @@
1
- const a111_0x36fdcb=a111_0x1ea7;(function(_0x4d8a32,_0x5c15bd){const _0x28a5b7=a111_0x1ea7,_0x875afc=_0x4d8a32();while(!![]){try{const _0x481cd9=-parseInt(_0x28a5b7(0xea))/0x1+parseInt(_0x28a5b7(0xf4))/0x2*(-parseInt(_0x28a5b7(0x10f))/0x3)+-parseInt(_0x28a5b7(0xbf))/0x4*(parseInt(_0x28a5b7(0xfd))/0x5)+-parseInt(_0x28a5b7(0x115))/0x6*(parseInt(_0x28a5b7(0xb2))/0x7)+-parseInt(_0x28a5b7(0x100))/0x8*(parseInt(_0x28a5b7(0xf0))/0x9)+parseInt(_0x28a5b7(0x10b))/0xa*(-parseInt(_0x28a5b7(0xbd))/0xb)+parseInt(_0x28a5b7(0xe9))/0xc*(parseInt(_0x28a5b7(0xc6))/0xd);if(_0x481cd9===_0x5c15bd)break;else _0x875afc['push'](_0x875afc['shift']());}catch(_0x2c933d){_0x875afc['push'](_0x875afc['shift']());}}}(a111_0x3a2e,0x9cc94));function a111_0x1ea7(_0x4e9a65,_0x4b79b6){const _0x3a2ee8=a111_0x3a2e();return a111_0x1ea7=function(_0x1ea7ce,_0x12cc2a){_0x1ea7ce=_0x1ea7ce-0xae;let _0x22a463=_0x3a2ee8[_0x1ea7ce];return _0x22a463;},a111_0x1ea7(_0x4e9a65,_0x4b79b6);}const {aiSdkWrapper}=require(a111_0x36fdcb(0x114)),{commandRepository}=require(a111_0x36fdcb(0x12c)),PerformanceTester=require('./performance/performance-tester'),globals=require(a111_0x36fdcb(0xe4)),{winstonLogger:logger,automationLogger}=require('./logger'),helper=require('./helper'),constants=require('../bin/utils/constants'),{DRIVER_EVENT:PerformanceDriverEvents}=require(a111_0x36fdcb(0x130)),util=require(a111_0x36fdcb(0xf8));function a111_0x3a2e(){const _0x22acdb=['NoSuchElementError','thnWA','getNudgeLocalNotSetError','LPQeL','aiHeal:setToken','ALwjy','EApPV','UzdPY','gYSDI','POST_EXECUTE','PSteC','string','find','overrideExecute','omYxb','getSession','pOCPG','aiHeal:findElementSuccess','toString','using','args','YVWkz','toISOString','fltEF','initExecute','executeAsyncScript','includes','WDGdL','./globals','getId',';\x20Trying\x20to\x20heal','psvjW','script','5160FlTrnP','567503KRwgZs','Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','ICMFU','lTgcg','name_','css\x20selector','22581UJQOOY','OsRZR','HHPoY','isSelfHealEnabled','173750DstFxV','eGpSt','QZayj','setTcgToken','util','NUDGE_LOCAL_ERRORS','AFhUi','bstack:options','Successfully\x20healed\x20command\x20using\x20new\x20','55PvaJIq','tairy','getGlobal','496NXfgUq','YsbkH','isBrowserstackInfra','request','DEOvG','FQENo','patchExecute','setTcgTokenStatus','bQnTu','iuNRR','Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','680990kOyJSW','Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20','kdjDw','bSanS','15jTrNdf','findElement','rRoFv','local','measureWrapper','./ai-sdk/aiSdkWrapper','41508stUGtk','aiHeal_isHealingEnabled','debug','GmuTL','nestedKeyValue','ADJMO','kBdUU','Healing\x20failed\x20for\x20command\x20using\x20','aiSdk_defaultLogDataEnabled','get','AUTOMATION_LOG_COMMANDS','hRxhF','parameters','Ukoeh','aiHeal_isAuthenticated','HZZYA','MxrJX','command','hWKfA','pkHNb','info','findElement\x20command\x20failed\x20with\x20','higqo','./ai-sdk/autoHealHelper','url','fUNAP','silly','./performance/constants','parameters_','aaWjg','JavascriptError','value','name','KXPhV','cVkRi','format','getTcgTokenStatus','826weEQRF','PRE_EXECUTE','handleFailure','pFedE','DMacr','ciCdm','sjnmg','execute','VrBDR','QyMuS','fqxkF','143mSOAMH','capability','99068FepXtj','skipHealingSuccess','wugsx','KIvGn','error','Successfully\x20healed\x20command\x20using\x20new\x20cssPath:\x20','AvLnw','114088alPIlG','Healing\x20failed\x20for\x20command\x20using\x20cssPath:\x20'];a111_0x3a2e=function(){return _0x22acdb;};return a111_0x3a2e();}exports[a111_0x36fdcb(0xd5)]=(_0x2d5c1d,_0x24289e)=>{const _0x3fe2f0=a111_0x36fdcb,_0x39af38={'OsRZR':_0x3fe2f0(0x123),'dqfdy':_0x3fe2f0(0xcc),'QyMuS':function(_0xab6ef3){return _0xab6ef3();},'EApPV':_0x3fe2f0(0x11d),'AFhUi':function(_0x3f4289,_0x2af67a){return _0x3f4289===_0x2af67a;},'iuNRR':_0x3fe2f0(0x110),'wugsx':_0x3fe2f0(0x116),'xsanN':_0x3fe2f0(0xd9),'psvjW':function(_0x7a1b4d){return _0x7a1b4d();},'lTgcg':_0x3fe2f0(0xeb),'kBdUU':function(_0x2e8116,_0x328915){return _0x2e8116===_0x328915;},'QZayj':_0x3fe2f0(0xc8),'bSanS':_0x3fe2f0(0x133),'AvLnw':function(_0x353e4e,_0x1d7cbe){return _0x353e4e===_0x1d7cbe;},'VrBDR':_0x3fe2f0(0xef),'MxrJX':function(_0x6fc2fc,_0x376305){return _0x6fc2fc+_0x376305;},'BdzNz':'findElement\x20command\x20failed\x20with\x20cssPath:\x20','cVkRi':_0x3fe2f0(0xe6),'rglsz':_0x3fe2f0(0x12a),'tairy':'aiHeal:findElementFailure','pkHNb':function(_0x2e523f,_0x5b7113){return _0x2e523f&&_0x5b7113;},'BkPoo':_0x3fe2f0(0xc4),'UzdPY':function(_0x3d5ce7,_0x1abff5){return _0x3d5ce7+_0x1abff5;},'KIvGn':_0x3fe2f0(0xfc),'ALwjy':_0x3fe2f0(0xc7),'tmqhO':_0x3fe2f0(0x11c),'rRoFv':_0x3fe2f0(0x11e),'PSteC':_0x3fe2f0(0x131),'bQnTu':_0x3fe2f0(0x12d),'omYxb':_0x3fe2f0(0x10a),'dRDDB':_0x3fe2f0(0xe1),'WDGdL':function(_0x38014c,_0x2ea407){return _0x38014c===_0x2ea407;},'kdjDw':'executeScript','GYrQv':_0x3fe2f0(0xd3),'ICMFU':_0x3fe2f0(0xbe),'ozzmq':'browserstack.local','fltEF':_0x3fe2f0(0xfb),'KXPhV':_0x3fe2f0(0x112)},_0x35644b=_0x2d5c1d[_0x3fe2f0(0x106)]||(helper[_0x3fe2f0(0x119)](_0x24289e,[_0x39af38[_0x3fe2f0(0xec)],_0x39af38['ozzmq']])||helper['nestedKeyValue'](_0x24289e,[_0x39af38[_0x3fe2f0(0xec)],_0x39af38[_0x3fe2f0(0xdf)],_0x39af38[_0x3fe2f0(0xae)]]));if(!globals['getGlobal'](_0x39af38[_0x3fe2f0(0xf1)])&&!globals['getGlobal'](_0x39af38[_0x3fe2f0(0xc1)])&&_0x35644b)return;_0x2d5c1d[_0x3fe2f0(0x106)]=!![],_0x2d5c1d[_0x3fe2f0(0xe0)]=_0x2d5c1d[_0x3fe2f0(0xb9)],_0x2d5c1d[_0x3fe2f0(0xb9)]=async _0x296b6d=>{const _0x4dd752=_0x3fe2f0,_0x3ba0e1={'DEOvG':_0x39af38[_0x4dd752(0xf1)],'UNdVc':_0x39af38[_0x4dd752(0xed)],'HZZYA':function(_0x139c2a,_0xafa49f){const _0x3867ff=_0x4dd752;return _0x39af38[_0x3867ff(0x11b)](_0x139c2a,_0xafa49f);},'fwFFp':_0x39af38[_0x4dd752(0xf6)],'pFedE':_0x39af38[_0x4dd752(0x10e)],'EdddO':function(_0x4b4786,_0x5e4aab){const _0x207fb9=_0x4dd752;return _0x39af38[_0x207fb9(0xc5)](_0x4b4786,_0x5e4aab);},'VIZRw':_0x39af38[_0x4dd752(0x109)],'GmuTL':_0x39af38['wugsx'],'higqo':function(_0x5b4f2b,_0x7046a8){return _0x39af38['AvLnw'](_0x5b4f2b,_0x7046a8);},'BCRVQ':_0x39af38[_0x4dd752(0xba)],'HHPoY':function(_0xd43f46,_0x3847d8){return _0x39af38['MxrJX'](_0xd43f46,_0x3847d8);},'DMacr':_0x39af38['BdzNz'],'YVWkz':_0x39af38[_0x4dd752(0xaf)],'YsbkH':function(_0x283d77,_0x4819ce){return _0x39af38['MxrJX'](_0x283d77,_0x4819ce);},'gYSDI':function(_0x5c8019,_0x31705b){return _0x39af38['MxrJX'](_0x5c8019,_0x31705b);},'WCChq':_0x39af38['rglsz'],'hRxhF':_0x39af38[_0x4dd752(0xfe)],'Ukoeh':function(_0x259a5d){const _0x4ffec5=_0x4dd752;return _0x39af38[_0x4ffec5(0xbb)](_0x259a5d);},'hWKfA':function(_0x2159a8,_0x46fad9){const _0x47a266=_0x4dd752;return _0x39af38[_0x47a266(0x128)](_0x2159a8,_0x46fad9);},'ciCdm':function(_0x41d09c,_0x43dde2){const _0x179444=_0x4dd752;return _0x39af38[_0x179444(0xfa)](_0x41d09c,_0x43dde2);},'thnWA':function(_0x146f94,_0xc4cd63){const _0x1bd1b7=_0x4dd752;return _0x39af38[_0x1bd1b7(0x125)](_0x146f94,_0xc4cd63);},'fqxkF':_0x39af38['BkPoo'],'ADJMO':function(_0x597234,_0xed0ece){const _0x1e0e81=_0x4dd752;return _0x39af38[_0x1e0e81(0xcf)](_0x597234,_0xed0ece);},'sjnmg':_0x39af38[_0x4dd752(0xc2)],'pOCPG':_0x39af38[_0x4dd752(0xcd)],'iAGJJ':function(_0x5eed61,_0x1d808f){const _0x2e912b=_0x4dd752;return _0x39af38[_0x2e912b(0xcf)](_0x5eed61,_0x1d808f);},'fUNAP':_0x39af38['tmqhO'],'FQENo':_0x39af38[_0x4dd752(0x111)],'aaWjg':_0x39af38[_0x4dd752(0xd2)],'eGpSt':_0x39af38[_0x4dd752(0x108)],'LPQeL':_0x39af38[_0x4dd752(0xd6)]};try{const _0x4604c3={};_0x4604c3[_0x4dd752(0x126)]=_0x296b6d[_0x4dd752(0xee)],await PerformanceTester[_0x4dd752(0x113)](PerformanceDriverEvents[_0x4dd752(0xb3)],async()=>{const _0x4201bf=_0x4dd752;if(!commandRepository[_0x4201bf(0xb1)]()&&globals[_0x4201bf(0xff)](_0x39af38['OsRZR'])){const _0x3a0363=PerformanceTester[_0x4201bf(0x113)](_0x39af38['dqfdy'],async()=>{const _0x393bdc=_0x4201bf;try{commandRepository[_0x393bdc(0x107)](!![]),await aiSdkWrapper[_0x393bdc(0xf7)]((await _0x2d5c1d[_0x393bdc(0xd7)]())[_0x393bdc(0xe5)]());const _0x5324f6=globals['getGlobal'](_0x3ba0e1[_0x393bdc(0x104)]);_0x5324f6&&commandRepository['setAiSessionTimeStamp']((await _0x2d5c1d[_0x393bdc(0xd7)]())['getId']());}catch(_0x2fa554){logger[_0x393bdc(0xc3)]('Error\x20in\x20handling\x20TCG\x20Auth:\x20'+_0x2fa554);}});await _0x39af38[_0x4201bf(0xbb)](_0x3a0363);}},_0x4604c3)();const _0x3ad33a=await _0x2d5c1d['initExecute'](_0x296b6d);try{if(_0x39af38[_0x4dd752(0xfa)](_0x296b6d[_0x4dd752(0xee)],_0x39af38['dRDDB'])||_0x39af38[_0x4dd752(0xe3)](_0x296b6d[_0x4dd752(0xee)],_0x39af38[_0x4dd752(0x10d)])){const _0x13f6e7=_0x296b6d[_0x4dd752(0x131)]&&_0x296b6d['parameters_'][_0x4dd752(0xe8)],_0x561d3b=_0x296b6d[_0x4dd752(0x131)]&&_0x296b6d[_0x4dd752(0x131)][_0x4dd752(0xdc)],_0x33f67e=_0x561d3b&&util[_0x4dd752(0xb0)]('%j',_0x561d3b);if(_0x13f6e7&&_0x39af38['AFhUi'](typeof _0x13f6e7,_0x39af38['GYrQv'])){const _0x1d5ed9=constants[_0x4dd752(0x11f)][_0x4dd752(0xd4)](_0x11cb20=>_0x13f6e7[_0x4dd752(0xe2)](_0x11cb20)||_0x33f67e&&_0x33f67e[_0x4dd752(0xe2)](_0x11cb20));if(_0x1d5ed9){const _0x1c1ff5={};_0x1c1ff5['command']=_0x1d5ed9,_0x1c1ff5[_0x4dd752(0x121)]=_0x561d3b;const _0x19927d={};_0x19927d['body']=_0x3ad33a;const _0x5f4ff7={};_0x5f4ff7[_0x4dd752(0x103)]=_0x1c1ff5,_0x5f4ff7['response']=_0x19927d,automationLogger[_0x4dd752(0x12f)]('['+new Date()[_0x4dd752(0xde)]()+'][\x20SDK-AUTOMATION\x20]\x20'+util[_0x4dd752(0xb0)]('%j',_0x5f4ff7));}}}}catch(_0x44c564){logger[_0x4dd752(0x12f)](_0x4dd752(0x10c)+_0x44c564['message']);}return await PerformanceTester[_0x4dd752(0x113)](PerformanceDriverEvents[_0x4dd752(0xd1)],async()=>{const _0x4b14d0=_0x4dd752;if(!helper[_0x4b14d0(0x102)]()&&(commandRepository[_0x4b14d0(0xf3)]()||globals[_0x4b14d0(0xff)](_0x39af38[_0x4b14d0(0xce)]))&&_0x39af38[_0x4b14d0(0xfa)](_0x296b6d[_0x4b14d0(0xee)],_0x39af38['iuNRR'])&&!_0x296b6d[_0x4b14d0(0xc0)]&&globals[_0x4b14d0(0xff)](_0x39af38[_0x4b14d0(0xf1)])&&globals[_0x4b14d0(0xff)](_0x39af38[_0x4b14d0(0xc1)])){const _0x1b1fa6=new Date(),_0x260ed2=PerformanceTester[_0x4b14d0(0x113)](_0x39af38['xsanN'],async()=>{return await aiSdkWrapper['handleSuccess'](_0x24289e,_0x2d5c1d,_0x296b6d);});await _0x39af38[_0x4b14d0(0xe7)](_0x260ed2);}},{'command':_0x296b6d['name_']})(),_0x3ad33a;}catch(_0x226679){await PerformanceTester['measureWrapper'](PerformanceDriverEvents[_0x4dd752(0xd1)],async()=>{const _0x196bc3=_0x4dd752;logger[_0x196bc3(0x117)](_0x3ba0e1['UNdVc']);try{if(!helper[_0x196bc3(0x102)]()&&(_0x3ba0e1['HZZYA'](_0x226679[_0x196bc3(0x135)],_0x3ba0e1['fwFFp'])||_0x3ba0e1[_0x196bc3(0x124)](_0x226679[_0x196bc3(0x135)],_0x3ba0e1[_0x196bc3(0xb5)]))&&_0x3ba0e1['EdddO'](_0x296b6d[_0x196bc3(0xee)],_0x3ba0e1['VIZRw'])&&commandRepository[_0x196bc3(0xf3)]()&&globals[_0x196bc3(0xff)](_0x3ba0e1[_0x196bc3(0x104)])&&globals['getGlobal'](_0x3ba0e1[_0x196bc3(0x118)])){_0x3ba0e1[_0x196bc3(0x12b)](_0x296b6d[_0x196bc3(0x131)]['using'],_0x3ba0e1['BCRVQ'])?logger[_0x196bc3(0x129)](_0x3ba0e1[_0x196bc3(0xf2)](_0x3ba0e1[_0x196bc3(0xf2)](_0x3ba0e1[_0x196bc3(0xb6)],_0x296b6d[_0x196bc3(0x131)][_0x196bc3(0x134)]),_0x3ba0e1[_0x196bc3(0xdd)])):logger[_0x196bc3(0x129)](_0x3ba0e1[_0x196bc3(0xf2)](_0x3ba0e1['YsbkH'](_0x3ba0e1[_0x196bc3(0xf2)](_0x3ba0e1[_0x196bc3(0xd0)](_0x3ba0e1['WCChq'],_0x296b6d[_0x196bc3(0x131)][_0x196bc3(0xdb)]),':\x20'),_0x296b6d[_0x196bc3(0x131)]['value']),_0x3ba0e1['YVWkz']));const _0x350864=PerformanceTester[_0x196bc3(0x113)](_0x3ba0e1[_0x196bc3(0x120)],async()=>{const _0x5b7ced=_0x196bc3;return await aiSdkWrapper[_0x5b7ced(0xb4)](_0x24289e,_0x2d5c1d,_0x296b6d);}),_0x3ef7e1=new Date(),{locatorType:_0x5ca1af,locatorValue:_0x5cd909,commandHealed:_0x41c838}=await _0x3ba0e1[_0x196bc3(0x122)](_0x350864);if(_0x3ba0e1[_0x196bc3(0x127)](_0x5ca1af,_0x5cd909)){_0x296b6d[_0x196bc3(0x131)][_0x196bc3(0xdb)]=_0x5ca1af,_0x296b6d[_0x196bc3(0x131)][_0x196bc3(0x134)]=_0x5cd909,_0x296b6d[_0x196bc3(0xc0)]=!![];const _0x118d2e=_0x2d5c1d[_0x196bc3(0xb9)](_0x296b6d);return _0x3ba0e1[_0x196bc3(0xb7)](_0x5ca1af,_0x3ba0e1['BCRVQ'])?logger[_0x196bc3(0x129)](_0x3ba0e1[_0x196bc3(0xc9)](_0x3ba0e1[_0x196bc3(0xbc)],_0x5cd909)):logger[_0x196bc3(0x129)](_0x3ba0e1[_0x196bc3(0xf2)](_0x3ba0e1['YsbkH'](_0x3ba0e1[_0x196bc3(0x11a)](_0x3ba0e1[_0x196bc3(0xb8)],_0x5ca1af),':\x20'),_0x5cd909)),_0x118d2e;}else!_0x41c838&&(_0x3ba0e1[_0x196bc3(0x12b)](_0x5ca1af,_0x3ba0e1['BCRVQ'])?logger[_0x196bc3(0x129)](_0x3ba0e1[_0x196bc3(0xf2)](_0x3ba0e1[_0x196bc3(0xd8)],_0x296b6d['parameters_'][_0x196bc3(0x134)])):logger[_0x196bc3(0x129)](_0x3ba0e1[_0x196bc3(0x101)](_0x3ba0e1[_0x196bc3(0x101)](_0x3ba0e1['iAGJJ'](_0x3ba0e1[_0x196bc3(0x12e)],_0x296b6d[_0x196bc3(0x131)][_0x196bc3(0xdb)]),':\x20'),_0x296b6d[_0x196bc3(0x131)][_0x196bc3(0x134)])));}!_0x35644b&&_0x3ba0e1[_0x196bc3(0x124)](_0x296b6d[_0x196bc3(0xee)],_0x3ba0e1[_0x196bc3(0x105)])&&helper[_0x196bc3(0x119)](_0x296b6d,[_0x3ba0e1[_0x196bc3(0x132)],_0x3ba0e1[_0x196bc3(0xf5)]])&&!!constants[_0x196bc3(0xf9)][_0x196bc3(0xd4)](_0x489379=>{const _0x5d44f7=_0x196bc3;return _0x226679[_0x5d44f7(0xda)]()['includes'](_0x489379);})&&helper[_0x196bc3(0xca)](_0x296b6d[_0x196bc3(0x131)][_0x196bc3(0x12d)],!![]);}catch(_0x280d03){logger[_0x196bc3(0x117)](_0x3ba0e1[_0x196bc3(0xcb)],_0x280d03);}},{'success':![],'failure':_0x226679})();throw _0x226679;}};};
1
+ function a111_0x20e3(_0x514dff,_0x3776bc){const _0x8ec216=a111_0x8ec2();return a111_0x20e3=function(_0x20e36c,_0x4f6c7a){_0x20e36c=_0x20e36c-0xb1;let _0x247afb=_0x8ec216[_0x20e36c];return _0x247afb;},a111_0x20e3(_0x514dff,_0x3776bc);}const a111_0x3ed640=a111_0x20e3;(function(_0x2cb1fe,_0x5f36e5){const _0x555548=a111_0x20e3,_0x5cbbc9=_0x2cb1fe();while(!![]){try{const _0xa30f12=-parseInt(_0x555548(0xcc))/0x1+-parseInt(_0x555548(0xf8))/0x2*(-parseInt(_0x555548(0xd9))/0x3)+parseInt(_0x555548(0x129))/0x4+-parseInt(_0x555548(0x12c))/0x5*(-parseInt(_0x555548(0x115))/0x6)+parseInt(_0x555548(0x106))/0x7+-parseInt(_0x555548(0x11c))/0x8+-parseInt(_0x555548(0xf3))/0x9;if(_0xa30f12===_0x5f36e5)break;else _0x5cbbc9['push'](_0x5cbbc9['shift']());}catch(_0x5901f1){_0x5cbbc9['push'](_0x5cbbc9['shift']());}}}(a111_0x8ec2,0x1acdf));function a111_0x8ec2(){const _0x137c21=['aiHeal:findElementFailure','handleSuccess','util','Error\x20in\x20handling\x20TCG\x20Auth:\x20','BBsHI','FpbjQ','KApJd','NYMFw','POST_EXECUTE','findElement\x20command\x20failed\x20with\x20cssPath:\x20',';\x20Trying\x20to\x20heal','overrideExecute','1561617psUsou','JavascriptError','RFUdv','Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','aiHeal_isAuthenticated','116zAlzwY','string','./helper','VaLWn','dkgMt','XmgRC','silly','args','NoSuchElementError','DMLFe','./ai-sdk/autoHealHelper','Enqbr','EOTfI','oWWww','418467HfEBsw','Healing\x20failed\x20for\x20command\x20using\x20cssPath:\x20','measureWrapper','./globals','toString','PCORV','skipHealingSuccess','TRDYy','ddsFg','wRqlc','Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20','apVbg','./logger','getNudgeLocalNotSetError','QMTbU','402LoDyHq','MdyCk','KfyKF','response','error','getId','./performance/constants','481384gdxSQv','find','sOOTU','oJCpe','xEubt','ytDZw','aiHeal:findElementSuccess','OpgfJ','executeScript','tcwvz','./ai-sdk/aiSdkWrapper','value','name_','204944KTsitl','includes','nestedKeyValue','14750nbsmAU','QLPQR','aiHeal_isHealingEnabled','UYbQB','nWPzX','NUDGE_LOCAL_ERRORS','OOZhA','vUZIz','xEzCo','Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','isSelfHealEnabled','css\x20selector','uGWHU','TNpHv','using','FjGIz','script','bstack:options','patchExecute','jizEg','executeAsyncScript','aiSdk_defaultLogDataEnabled','ahEWx','parameters','][\x20SDK-AUTOMATION\x20]\x20','parameters_','KTNQV','nfqcY','../bin/utils/constants','findElement\x20command\x20failed\x20with\x20','67966hRSAhP','execute','Successfully\x20healed\x20command\x20using\x20new\x20','format','browserstack.local','command','AUTOMATION_LOG_COMMANDS','isBrowserstackInfra','url','setAiSessionTimeStamp','request','huKiR','debug','5316GVJbaT','./performance/performance-tester','capability','handleFailure','setTcgTokenStatus','getGlobal','initExecute','laJDR','findElement','lXDNX','RQdWX','info','Lkiyo','PRE_EXECUTE'];a111_0x8ec2=function(){return _0x137c21;};return a111_0x8ec2();}const {aiSdkWrapper}=require(a111_0x3ed640(0x126)),{commandRepository}=require(a111_0x3ed640(0x102)),PerformanceTester=require(a111_0x3ed640(0xda)),globals=require(a111_0x3ed640(0x109)),{winstonLogger:logger,automationLogger}=require(a111_0x3ed640(0x112)),helper=require(a111_0x3ed640(0xfa)),constants=require(a111_0x3ed640(0xca)),{DRIVER_EVENT:PerformanceDriverEvents}=require(a111_0x3ed640(0x11b)),util=require(a111_0x3ed640(0xe9));exports[a111_0x3ed640(0xf2)]=(_0x5e314a,_0x360312)=>{const _0x515f2b=a111_0x3ed640,_0x52f4f7={'ddsFg':_0x515f2b(0xb7),'TRDYy':function(_0x3d41de,_0x5b1aed){return _0x3d41de===_0x5b1aed;},'UYbQB':_0x515f2b(0x100),'QLPQR':_0x515f2b(0xf4),'EOTfI':_0x515f2b(0xe1),'huKiR':_0x515f2b(0xf7),'lXDNX':_0x515f2b(0x12e),'RFUdv':function(_0x24b7d2,_0x3ad74d){return _0x24b7d2===_0x3ad74d;},'BBsHI':_0x515f2b(0xb9),'OOZhA':function(_0x4aac19,_0x4d5030){return _0x4aac19+_0x4d5030;},'vUZIz':function(_0x3e6b00,_0x13c54b){return _0x3e6b00+_0x13c54b;},'NYMFw':_0x515f2b(0xf0),'nWPzX':_0x515f2b(0xf1),'uGWHU':function(_0x43e474,_0xbf18e3){return _0x43e474+_0xbf18e3;},'KApJd':function(_0x7f6514,_0x2e9e01){return _0x7f6514+_0x2e9e01;},'bWFqU':function(_0x5c304f,_0x37ea65){return _0x5c304f+_0x37ea65;},'nfqcY':_0x515f2b(0xcb),'oWWww':_0x515f2b(0xe7),'ytDZw':function(_0x36f3e8){return _0x36f3e8();},'PCORV':function(_0x4253c1,_0xccfdd1){return _0x4253c1&&_0xccfdd1;},'RQdWX':function(_0x3a6095,_0xad4466){return _0x3a6095===_0xad4466;},'XmgRC':'Successfully\x20healed\x20command\x20using\x20new\x20cssPath:\x20','EHAtb':_0x515f2b(0xce),'jizEg':function(_0x44e86a,_0x29b52f){return _0x44e86a+_0x29b52f;},'DMLFe':_0x515f2b(0x107),'QMTbU':function(_0x1cb8c7,_0x3c8a84){return _0x1cb8c7+_0x3c8a84;},'DbzVt':function(_0x5daed5,_0x4e440b){return _0x5daed5+_0x4e440b;},'MdyCk':'Healing\x20failed\x20for\x20command\x20using\x20','tcwvz':'get','uzxMf':_0x515f2b(0xc7),'Lkiyo':_0x515f2b(0xd4),'ajgrm':_0x515f2b(0xf6),'Enqbr':'aiHeal:setToken','oJCpe':_0x515f2b(0xc3),'dkgMt':_0x515f2b(0x122),'KTNQV':function(_0x54e0f9,_0x2c40bc){return _0x54e0f9===_0x2c40bc;},'apVbg':_0x515f2b(0xc2),'ahEWx':function(_0x30fcac,_0x53e48f){return _0x30fcac===_0x53e48f;},'sOOTU':_0x515f2b(0x124),'UgxAS':function(_0x3e1a3f,_0x11ff07){return _0x3e1a3f===_0x11ff07;},'laJDR':_0x515f2b(0xf9),'OpgfJ':_0x515f2b(0xdb),'FpbjQ':_0x515f2b(0xd0),'KfyKF':_0x515f2b(0xbf),'VaLWn':'local'},_0x2a6101=_0x5e314a[_0x515f2b(0xc0)]||(helper[_0x515f2b(0x12b)](_0x360312,[_0x52f4f7[_0x515f2b(0x123)],_0x52f4f7[_0x515f2b(0xec)]])||helper[_0x515f2b(0x12b)](_0x360312,[_0x52f4f7[_0x515f2b(0x123)],_0x52f4f7[_0x515f2b(0x117)],_0x52f4f7[_0x515f2b(0xfb)]]));if(!globals['getGlobal'](_0x52f4f7[_0x515f2b(0xd7)])&&!globals['getGlobal'](_0x52f4f7[_0x515f2b(0xe2)])&&_0x2a6101)return;_0x5e314a[_0x515f2b(0xc0)]=!![],_0x5e314a['initExecute']=_0x5e314a[_0x515f2b(0xcd)],_0x5e314a[_0x515f2b(0xcd)]=async _0x4a522f=>{const _0x4d3528=_0x515f2b,_0xd78dd9={'FjGIz':_0x52f4f7[_0x4d3528(0xd7)],'NwoCJ':_0x52f4f7[_0x4d3528(0x103)],'xEzCo':function(_0x2e0593){return _0x52f4f7['ytDZw'](_0x2e0593);},'wRqlc':_0x52f4f7[_0x4d3528(0x11f)],'OJgkL':function(_0x28906b,_0x546ecd){const _0x184dac=_0x4d3528;return _0x52f4f7[_0x184dac(0xe3)](_0x28906b,_0x546ecd);},'ukthW':_0x52f4f7[_0x4d3528(0x104)],'rYwZJ':_0x52f4f7['lXDNX'],'xEubt':_0x52f4f7[_0x4d3528(0xfc)],'TNpHv':function(_0x3742bf){const _0x4c355b=_0x4d3528;return _0x52f4f7[_0x4c355b(0x121)](_0x3742bf);}};try{const _0x666b43={};_0x666b43[_0x4d3528(0xd1)]=_0x4a522f['name_'],await PerformanceTester['measureWrapper'](PerformanceDriverEvents[_0x4d3528(0xe6)],async()=>{const _0x4eba7f=_0x4d3528;if(!commandRepository['getTcgTokenStatus']()&&globals[_0x4eba7f(0xde)](_0xd78dd9[_0x4eba7f(0xbd)])){const _0x36ce1a=PerformanceTester[_0x4eba7f(0x108)](_0xd78dd9['NwoCJ'],async()=>{const _0x3049a1=_0x4eba7f;try{commandRepository[_0x3049a1(0xdd)](!![]),await aiSdkWrapper['setTcgToken']((await _0x5e314a['getSession']())[_0x3049a1(0x11a)]());const _0x342bab=globals[_0x3049a1(0xde)](_0xd78dd9[_0x3049a1(0xbd)]);_0x342bab&&commandRepository[_0x3049a1(0xd5)]((await _0x5e314a['getSession']())['getId']());}catch(_0x4353f7){logger[_0x3049a1(0x119)](_0x3049a1(0xea)+_0x4353f7);}});await _0xd78dd9[_0x4eba7f(0xb6)](_0x36ce1a);}},_0x666b43)();const _0x1da314=await _0x5e314a[_0x4d3528(0xdf)](_0x4a522f);try{if(_0x52f4f7[_0x4d3528(0xc8)](_0x4a522f[_0x4d3528(0x128)],_0x52f4f7[_0x4d3528(0x111)])||_0x52f4f7[_0x4d3528(0xc4)](_0x4a522f[_0x4d3528(0x128)],_0x52f4f7[_0x4d3528(0x11e)])){const _0x31e9d8=_0x4a522f[_0x4d3528(0xc7)]&&_0x4a522f[_0x4d3528(0xc7)][_0x4d3528(0xbe)],_0x156a1e=_0x4a522f['parameters_']&&_0x4a522f['parameters_'][_0x4d3528(0xff)],_0x3a5a80=_0x156a1e&&util[_0x4d3528(0xcf)]('%j',_0x156a1e);if(_0x31e9d8&&_0x52f4f7['UgxAS'](typeof _0x31e9d8,_0x52f4f7[_0x4d3528(0xe0)])){const _0x55d58d=constants[_0x4d3528(0xd2)]['find'](_0xbfaf1f=>_0x31e9d8['includes'](_0xbfaf1f)||_0x3a5a80&&_0x3a5a80['includes'](_0xbfaf1f));if(_0x55d58d){const _0x2c5620={};_0x2c5620[_0x4d3528(0xd1)]=_0x55d58d,_0x2c5620[_0x4d3528(0xc5)]=_0x156a1e;const _0x42db6a={};_0x42db6a['body']=_0x1da314;const _0x1bec6c={};_0x1bec6c[_0x4d3528(0xd6)]=_0x2c5620,_0x1bec6c[_0x4d3528(0x118)]=_0x42db6a,automationLogger['silly']('['+new Date()['toISOString']()+_0x4d3528(0xc6)+util[_0x4d3528(0xcf)]('%j',_0x1bec6c));}}}}catch(_0x549cc2){logger[_0x4d3528(0xfe)](_0x4d3528(0x110)+_0x549cc2['message']);}return await PerformanceTester[_0x4d3528(0x108)](PerformanceDriverEvents[_0x4d3528(0xef)],async()=>{const _0x236c26=_0x4d3528;if(!helper[_0x236c26(0xd3)]()&&(commandRepository[_0x236c26(0xb8)]()||globals[_0x236c26(0xde)](_0xd78dd9[_0x236c26(0x10f)]))&&_0xd78dd9['OJgkL'](_0x4a522f[_0x236c26(0x128)],_0xd78dd9['ukthW'])&&!_0x4a522f[_0x236c26(0x10c)]&&globals[_0x236c26(0xde)](_0xd78dd9[_0x236c26(0xbd)])&&globals['getGlobal'](_0xd78dd9['rYwZJ'])){const _0x11c911=new Date(),_0x304485=PerformanceTester[_0x236c26(0x108)](_0xd78dd9[_0x236c26(0x120)],async()=>{const _0x392610=_0x236c26;return await aiSdkWrapper[_0x392610(0xe8)](_0x360312,_0x5e314a,_0x4a522f);});await _0xd78dd9[_0x236c26(0xbb)](_0x304485);}},{'command':_0x4a522f['name_']})(),_0x1da314;}catch(_0x4c9cc7){await PerformanceTester[_0x4d3528(0x108)](PerformanceDriverEvents[_0x4d3528(0xef)],async()=>{const _0x13c9a3=_0x4d3528;logger[_0x13c9a3(0xd8)](_0x52f4f7[_0x13c9a3(0x10e)]);try{if(!helper[_0x13c9a3(0xd3)]()&&(_0x52f4f7[_0x13c9a3(0x10d)](_0x4c9cc7['name'],_0x52f4f7[_0x13c9a3(0xb1)])||_0x52f4f7[_0x13c9a3(0x10d)](_0x4c9cc7['name'],_0x52f4f7[_0x13c9a3(0x12d)]))&&_0x52f4f7[_0x13c9a3(0x10d)](_0x4a522f['name_'],_0x52f4f7[_0x13c9a3(0x104)])&&commandRepository['isSelfHealEnabled']()&&globals[_0x13c9a3(0xde)](_0x52f4f7['huKiR'])&&globals[_0x13c9a3(0xde)](_0x52f4f7['lXDNX'])){_0x52f4f7[_0x13c9a3(0xf5)](_0x4a522f['parameters_'][_0x13c9a3(0xbc)],_0x52f4f7[_0x13c9a3(0xeb)])?logger[_0x13c9a3(0xe4)](_0x52f4f7['OOZhA'](_0x52f4f7[_0x13c9a3(0xb5)](_0x52f4f7[_0x13c9a3(0xee)],_0x4a522f['parameters_'][_0x13c9a3(0x127)]),_0x52f4f7[_0x13c9a3(0xb2)])):logger[_0x13c9a3(0xe4)](_0x52f4f7[_0x13c9a3(0xba)](_0x52f4f7[_0x13c9a3(0xed)](_0x52f4f7[_0x13c9a3(0xba)](_0x52f4f7['bWFqU'](_0x52f4f7[_0x13c9a3(0xc9)],_0x4a522f[_0x13c9a3(0xc7)][_0x13c9a3(0xbc)]),':\x20'),_0x4a522f[_0x13c9a3(0xc7)]['value']),_0x52f4f7[_0x13c9a3(0xb2)]));const _0x36c308=PerformanceTester[_0x13c9a3(0x108)](_0x52f4f7[_0x13c9a3(0x105)],async()=>{const _0x2b95e1=_0x13c9a3;return await aiSdkWrapper[_0x2b95e1(0xdc)](_0x360312,_0x5e314a,_0x4a522f);}),_0x1c9a98=new Date(),{locatorType:_0x49ce18,locatorValue:_0x2f7df9,commandHealed:_0x9f3287}=await _0x52f4f7['ytDZw'](_0x36c308);if(_0x52f4f7[_0x13c9a3(0x10b)](_0x49ce18,_0x2f7df9)){_0x4a522f[_0x13c9a3(0xc7)][_0x13c9a3(0xbc)]=_0x49ce18,_0x4a522f[_0x13c9a3(0xc7)][_0x13c9a3(0x127)]=_0x2f7df9,_0x4a522f[_0x13c9a3(0x10c)]=!![];const _0x1969fd=_0x5e314a[_0x13c9a3(0xcd)](_0x4a522f);return _0x52f4f7[_0x13c9a3(0xe3)](_0x49ce18,_0x52f4f7[_0x13c9a3(0xeb)])?logger['info'](_0x52f4f7[_0x13c9a3(0xed)](_0x52f4f7[_0x13c9a3(0xfd)],_0x2f7df9)):logger[_0x13c9a3(0xe4)](_0x52f4f7[_0x13c9a3(0xed)](_0x52f4f7[_0x13c9a3(0xb5)](_0x52f4f7[_0x13c9a3(0xb4)](_0x52f4f7['EHAtb'],_0x49ce18),':\x20'),_0x2f7df9)),_0x1969fd;}else!_0x9f3287&&(_0x52f4f7[_0x13c9a3(0xe3)](_0x49ce18,_0x52f4f7[_0x13c9a3(0xeb)])?logger[_0x13c9a3(0xe4)](_0x52f4f7[_0x13c9a3(0xc1)](_0x52f4f7[_0x13c9a3(0x101)],_0x4a522f['parameters_'][_0x13c9a3(0x127)])):logger[_0x13c9a3(0xe4)](_0x52f4f7[_0x13c9a3(0x114)](_0x52f4f7['DbzVt'](_0x52f4f7['OOZhA'](_0x52f4f7[_0x13c9a3(0x116)],_0x4a522f[_0x13c9a3(0xc7)][_0x13c9a3(0xbc)]),':\x20'),_0x4a522f['parameters_']['value'])));}!_0x2a6101&&_0x52f4f7[_0x13c9a3(0xe3)](_0x4a522f['name_'],_0x52f4f7[_0x13c9a3(0x125)])&&helper[_0x13c9a3(0x12b)](_0x4a522f,[_0x52f4f7['uzxMf'],_0x52f4f7[_0x13c9a3(0xe5)]])&&!!constants[_0x13c9a3(0xb3)][_0x13c9a3(0x11d)](_0x26915d=>{const _0x564fcd=_0x13c9a3;return _0x4c9cc7[_0x564fcd(0x10a)]()[_0x564fcd(0x12a)](_0x26915d);})&&helper[_0x13c9a3(0x113)](_0x4a522f[_0x13c9a3(0xc7)][_0x13c9a3(0xd4)],!![]);}catch(_0x9be1e1){logger[_0x13c9a3(0xd8)](_0x52f4f7['ajgrm'],_0x9be1e1);}},{'success':![],'failure':_0x4c9cc7})();throw _0x4c9cc7;}};};
@@ -1 +1 @@
1
- const a112_0x36c2a2=a112_0x26f7;function a112_0x26f7(_0x138356,_0x135f10){const _0x130aca=a112_0x130a();return a112_0x26f7=function(_0x26f7fc,_0x291554){_0x26f7fc=_0x26f7fc-0x19e;let _0x5eec51=_0x130aca[_0x26f7fc];return _0x5eec51;},a112_0x26f7(_0x138356,_0x135f10);}(function(_0x1ea3a8,_0x321349){const _0x15084d=a112_0x26f7,_0x28d603=_0x1ea3a8();while(!![]){try{const _0x457dda=-parseInt(_0x15084d(0x1a2))/0x1*(-parseInt(_0x15084d(0x1b1))/0x2)+parseInt(_0x15084d(0x1ae))/0x3*(parseInt(_0x15084d(0x1c1))/0x4)+-parseInt(_0x15084d(0x1c5))/0x5+-parseInt(_0x15084d(0x1a0))/0x6*(parseInt(_0x15084d(0x1ac))/0x7)+parseInt(_0x15084d(0x1c0))/0x8*(parseInt(_0x15084d(0x1a7))/0x9)+parseInt(_0x15084d(0x1c4))/0xa+-parseInt(_0x15084d(0x1ad))/0xb*(parseInt(_0x15084d(0x1a9))/0xc);if(_0x457dda===_0x321349)break;else _0x28d603['push'](_0x28d603['shift']());}catch(_0x25c05e){_0x28d603['push'](_0x28d603['shift']());}}}(a112_0x130a,0x59f4a));const PerformanceTester=require(a112_0x36c2a2(0x1b5)),O11yEvents=require('./performance/constants')[a112_0x36c2a2(0x1ab)];function a112_0x130a(){const _0x2f73fe=['12wqHbPz','overrideQuit','O11y_EVENTS','75866tUhhku','1119382RMQnNj','139473ulAVBT','env','true','2QtfWKn','TEST_SCREENSHOT','end','Unpod','./performance/performance-tester','Srvgi','TAKE_SCREENSHOT','BS_TESTOPS_ALLOW_SCREENSHOTS','cjqtI','initQuit','SyYzy','RnxDY','jaizu','VoFzx','quitCount_','3139736bVQkFn','28rmNtiQ','start','patchQuit','2126480FwmbcK','1835605HUJcPl','patchScreenshot','initScreenshot','quit','emit','108tScPtr','catch','101873ylHHPo','overrideTakeScreenshot','takeScreenshot','wWsdH','toISOString','9QtETns','bs:addLog:'];a112_0x130a=function(){return _0x2f73fe;};return a112_0x130a();}exports[a112_0x36c2a2(0x1a3)]=_0x42acd4=>{const _0x54ee67=a112_0x36c2a2,_0x369941={'Srvgi':_0x54ee67(0x1b2),'cjqtI':function(_0x2df07b,_0x2bf072){return _0x2df07b(_0x2bf072);},'SyYzy':function(_0x196fd1,_0x351fe3){return _0x196fd1(_0x351fe3);},'VoFzx':function(_0x2fb644,_0x277e78){return _0x2fb644!==_0x277e78;},'jiBOB':_0x54ee67(0x1b0)};if(_0x369941[_0x54ee67(0x1be)](process[_0x54ee67(0x1af)][_0x54ee67(0x1b8)],_0x369941['jiBOB']))return;if(_0x42acd4[_0x54ee67(0x1c6)])return;_0x42acd4['patchScreenshot']=!![],_0x42acd4['initScreenshot']=_0x42acd4[_0x54ee67(0x1a4)],_0x42acd4['takeScreenshot']=()=>{const _0x357e4f={'QYkfF':function(_0x4ac211,_0x296828){const _0x16f4ec=a112_0x26f7;return _0x369941[_0x16f4ec(0x1bb)](_0x4ac211,_0x296828);}};return new Promise(function(_0xdbb886,_0x37c271){const _0x34a15a=a112_0x26f7,_0x3e7811={'wWsdH':_0x369941[_0x34a15a(0x1b6)],'jaizu':function(_0x14c2d8,_0x56a6f7){const _0x74b68f=_0x34a15a;return _0x369941[_0x74b68f(0x1b9)](_0x14c2d8,_0x56a6f7);}};_0x42acd4[_0x34a15a(0x1c7)]()['then'](_0x18bac5=>{const _0x10cbc0=_0x34a15a;PerformanceTester[_0x10cbc0(0x1c2)](O11yEvents[_0x10cbc0(0x1b7)]),process[_0x10cbc0(0x19f)](_0x10cbc0(0x1a8)+process['pid'],{'timestamp':new Date()[_0x10cbc0(0x1a6)](),'message':_0x18bac5,'kind':_0x3e7811[_0x10cbc0(0x1a5)]}),_0x3e7811[_0x10cbc0(0x1bd)](_0xdbb886,_0x18bac5),PerformanceTester[_0x10cbc0(0x1b3)](O11yEvents[_0x10cbc0(0x1b7)]);})[_0x34a15a(0x1a1)](_0x4b9d85=>{const _0x4a7bdc=_0x34a15a;PerformanceTester[_0x4a7bdc(0x1b3)](O11yEvents['TAKE_SCREENSHOT']),_0x357e4f['QYkfF'](_0x37c271,_0x4b9d85);});});};},exports[a112_0x36c2a2(0x1aa)]=(_0x4b8273,_0x31b565=null)=>{const _0x3c482e=a112_0x36c2a2,_0xaa2852={'RnxDY':function(_0x562103){return _0x562103();},'Unpod':function(_0x134d48,_0xde94f4){return _0x134d48>_0xde94f4;}};if(_0x4b8273[_0x3c482e(0x1c3)])return;_0x4b8273[_0x3c482e(0x1c3)]=!![],_0x4b8273['initQuit']=_0x4b8273[_0x3c482e(0x19e)],_0x4b8273[_0x3c482e(0x19e)]=()=>{const _0x53c7e5=_0x3c482e;if(_0x31b565){_0x31b565[_0x53c7e5(0x1bf)]+=0x1;if(_0xaa2852[_0x53c7e5(0x1b4)](_0x31b565[_0x53c7e5(0x1bf)],0x1))return _0x4b8273[_0x53c7e5(0x1ba)]();}else{_0x4b8273[_0x53c7e5(0x1bf)]+=0x1;if(_0xaa2852[_0x53c7e5(0x1b4)](_0x4b8273[_0x53c7e5(0x1bf)],0x1))return _0x4b8273[_0x53c7e5(0x1ba)]();}return new Promise(function(_0x55650c){const _0x41602b=_0x53c7e5;_0xaa2852[_0x41602b(0x1bc)](_0x55650c);});};};
1
+ const a112_0x3c3c5a=a112_0x29ad;(function(_0x5ebb84,_0x112c64){const _0x4efd27=a112_0x29ad,_0x3ee623=_0x5ebb84();while(!![]){try{const _0x355619=-parseInt(_0x4efd27(0x91))/0x1*(parseInt(_0x4efd27(0x96))/0x2)+parseInt(_0x4efd27(0xae))/0x3*(parseInt(_0x4efd27(0x9c))/0x4)+parseInt(_0x4efd27(0x90))/0x5+parseInt(_0x4efd27(0xaa))/0x6+-parseInt(_0x4efd27(0x92))/0x7+parseInt(_0x4efd27(0x98))/0x8+parseInt(_0x4efd27(0x9b))/0x9;if(_0x355619===_0x112c64)break;else _0x3ee623['push'](_0x3ee623['shift']());}catch(_0x4e6291){_0x3ee623['push'](_0x3ee623['shift']());}}}(a112_0x224f,0xccda1));const PerformanceTester=require(a112_0x3c3c5a(0xab)),O11yEvents=require('./performance/constants')[a112_0x3c3c5a(0xa2)];function a112_0x29ad(_0x115aad,_0x5e47c3){const _0x224ff1=a112_0x224f();return a112_0x29ad=function(_0x29adcc,_0x58299e){_0x29adcc=_0x29adcc-0x90;let _0x3d4747=_0x224ff1[_0x29adcc];return _0x3d4747;},a112_0x29ad(_0x115aad,_0x5e47c3);}function a112_0x224f(){const _0x8d9585=['catch','O11y_EVENTS','toISOString','BS_TESTOPS_ALLOW_SCREENSHOTS','quitCount_','initQuit','takeScreenshot','env','true','1602600Mektue','./performance/performance-tester','TAKE_SCREENSHOT','Zydcy','48dveCyQ','WpFmq','overrideTakeScreenshot','patchScreenshot','FnMMg','bs:addLog:','start','emit','711715WXXVkN','127361PzQadk','3893547hGeObI','pid','end','EEOHS','14jwyLUR','Ugray','3374248YrcTWn','eynZg','eboSK','3435957LFGbto','268456BeTMCr','initScreenshot','TEST_SCREENSHOT','then','quit'];a112_0x224f=function(){return _0x8d9585;};return a112_0x224f();}exports[a112_0x3c3c5a(0xb0)]=_0xa28a19=>{const _0x30aea3=a112_0x3c3c5a,_0x413c6d={'FnMMg':_0x30aea3(0x9e),'Ugray':function(_0x184de1,_0x35e89d){return _0x184de1(_0x35e89d);},'rWLJQ':function(_0x4e6f8b,_0x32290f){return _0x4e6f8b!==_0x32290f;},'WpFmq':_0x30aea3(0xa9)};if(_0x413c6d['rWLJQ'](process[_0x30aea3(0xa8)][_0x30aea3(0xa4)],_0x413c6d[_0x30aea3(0xaf)]))return;if(_0xa28a19['patchScreenshot'])return;_0xa28a19[_0x30aea3(0xb1)]=!![],_0xa28a19[_0x30aea3(0x9d)]=_0xa28a19[_0x30aea3(0xa7)],_0xa28a19[_0x30aea3(0xa7)]=()=>{const _0x189a24=_0x30aea3,_0x28a698={'EEOHS':_0x413c6d[_0x189a24(0xb2)],'eynZg':function(_0x248e06,_0x2da2f1){const _0x4af108=_0x189a24;return _0x413c6d[_0x4af108(0x97)](_0x248e06,_0x2da2f1);}};return new Promise(function(_0x26e6a5,_0x176f80){const _0x3535f1=_0x189a24;_0xa28a19[_0x3535f1(0x9d)]()[_0x3535f1(0x9f)](_0x1dc136=>{const _0x2d0065=_0x3535f1;PerformanceTester[_0x2d0065(0xb4)](O11yEvents['TAKE_SCREENSHOT']),process[_0x2d0065(0xb5)](_0x2d0065(0xb3)+process[_0x2d0065(0x93)],{'timestamp':new Date()[_0x2d0065(0xa3)](),'message':_0x1dc136,'kind':_0x28a698[_0x2d0065(0x95)]}),_0x28a698[_0x2d0065(0x99)](_0x26e6a5,_0x1dc136),PerformanceTester['end'](O11yEvents[_0x2d0065(0xac)]);})[_0x3535f1(0xa1)](_0x2b79ff=>{const _0xc4c4d=_0x3535f1;PerformanceTester[_0xc4c4d(0x94)](O11yEvents['TAKE_SCREENSHOT']),_0x28a698[_0xc4c4d(0x99)](_0x176f80,_0x2b79ff);});});};},exports['overrideQuit']=(_0x122154,_0x14ac7c=null)=>{const _0x5103fa=a112_0x3c3c5a,_0x2ad21b={'eboSK':function(_0x2cc5fb){return _0x2cc5fb();},'JhweX':function(_0x321649,_0x21756d){return _0x321649>_0x21756d;},'Zydcy':function(_0x2b42bf,_0x334bc9){return _0x2b42bf>_0x334bc9;}};if(_0x122154['patchQuit'])return;_0x122154['patchQuit']=!![],_0x122154[_0x5103fa(0xa6)]=_0x122154[_0x5103fa(0xa0)],_0x122154['quit']=()=>{const _0x236c08=_0x5103fa,_0x26f44b={'PAWhe':function(_0x380eb8){const _0x2f55bc=a112_0x29ad;return _0x2ad21b[_0x2f55bc(0x9a)](_0x380eb8);}};if(_0x14ac7c){_0x14ac7c[_0x236c08(0xa5)]+=0x1;if(_0x2ad21b['JhweX'](_0x14ac7c[_0x236c08(0xa5)],0x1))return _0x122154['initQuit']();}else{_0x122154['quitCount_']+=0x1;if(_0x2ad21b[_0x236c08(0xad)](_0x122154[_0x236c08(0xa5)],0x1))return _0x122154['initQuit']();}return new Promise(function(_0x2f9340){_0x26f44b['PAWhe'](_0x2f9340);});};};
@@ -1 +1 @@
1
- function a113_0xe63f(_0x4f174d,_0x1af591){const _0x1db970=a113_0x1db9();return a113_0xe63f=function(_0xe63fb8,_0x130b87){_0xe63fb8=_0xe63fb8-0x1ba;let _0x5b073c=_0x1db970[_0xe63fb8];return _0x5b073c;},a113_0xe63f(_0x4f174d,_0x1af591);}const a113_0x568119=a113_0xe63f;(function(_0x4f3afd,_0x37df60){const _0x133f1c=a113_0xe63f,_0x341bac=_0x4f3afd();while(!![]){try{const _0x28108d=-parseInt(_0x133f1c(0x202))/0x1*(parseInt(_0x133f1c(0x1dc))/0x2)+-parseInt(_0x133f1c(0x20b))/0x3*(-parseInt(_0x133f1c(0x1f1))/0x4)+parseInt(_0x133f1c(0x1db))/0x5*(-parseInt(_0x133f1c(0x208))/0x6)+parseInt(_0x133f1c(0x1d1))/0x7*(parseInt(_0x133f1c(0x1cf))/0x8)+parseInt(_0x133f1c(0x1bd))/0x9*(-parseInt(_0x133f1c(0x1df))/0xa)+-parseInt(_0x133f1c(0x1ca))/0xb*(-parseInt(_0x133f1c(0x1d0))/0xc)+parseInt(_0x133f1c(0x1cc))/0xd;if(_0x28108d===_0x37df60)break;else _0x341bac['push'](_0x341bac['shift']());}catch(_0x89afa9){_0x341bac['push'](_0x341bac['shift']());}}}(a113_0x1db9,0x911ee));function a113_0x1db9(){const _0x3340a0=['1142199UPnYhA','JsIxb','createPercyConfig','join','../../helpers/performance/constants','end','api/app_percy/get_project_token?name=','WKvHS','fetchPercyToken','tzflf','BROWSERSTACK_TESTHUB_UUID','nodeRequest','FQyZU','994180TcBDvg','QIydq','23121657lOOlZN','ZTgtE','close','3165752hIgMKh','60SWrVRT','21rLDSdS','app:exec','iyGNe','eyLpi','isProcessRunning','Percy\x20fetch\x20token\x20success','push','version','../../helpers/testhub/constants','percyOptions','5ymWwEz','8wKicTD','percy.json','isRunning','70aYpIzV','assign','GET','exec:stop','percy.log','DOWNLOAD','Percy\x20healthcheck\x20successful','projectName','pipe','healthcheck','data','epGjk','hBVlO',':start','debug','fOcgs','env','child_process','752620cZSCRR','fRjHE','../logger','zsnGJ','yojsj','ENV_VAR','Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20','exports','automate','./PercyBinary','../../helpers/performance/performance-tester','Percy\x20config\x20created\x20at\x20','&type=','uCaIO','HxcFr','http://localhost:5338','flags','282027tWhtSl','start','writeFile','WhdNl','app','YcnOU','7098342BnlHAp','percy/healthcheck','stop','6noKGqN','tmpdir','winstonLogger','Error\x20creating\x20percy\x20config:\x20','stringify'];a113_0x1db9=function(){return _0x3340a0;};return a113_0x1db9();}const fs=require('fs'),path=require('path'),os=require('os'),{spawn}=require(a113_0x568119(0x1f0)),helper=require('../helper'),logger=require(a113_0x568119(0x1f3))[a113_0x568119(0x1ba)],{getLogDir}=require('../logger'),testHubConstants=require(a113_0x568119(0x1d9)),PerformanceTester=require(a113_0x568119(0x1fb)),{PERCY_EVENTS:PerformanceEvents}=require(a113_0x568119(0x1c1)),PercyBinary=require(a113_0x568119(0x1fa));class Percy{#logfile=path[a113_0x568119(0x1c0)](getLogDir(),a113_0x568119(0x1e3));#address=process[a113_0x568119(0x1ef)]['PERCY_SERVER_ADDRESS']||a113_0x568119(0x200);#binaryPath=null;#config=null;#proc=null;#logStream=null;#isApp=![];[a113_0x568119(0x1d5)]=![];constructor(_0x486cbd){const _0x2ad772=a113_0x568119;this.#config=_0x486cbd,!!_0x486cbd[_0x2ad772(0x206)]&&(this.#isApp=!![]);}async #getBinaryPath(){const _0x34628f=a113_0x568119;if(!this.#binaryPath){const _0x405b58=new PercyBinary();PerformanceTester[_0x34628f(0x203)](PerformanceEvents[_0x34628f(0x1e4)]),this.#binaryPath=await _0x405b58['getBinaryPath'](this.#config),PerformanceTester['end'](PerformanceEvents[_0x34628f(0x1e4)]);}return this.#binaryPath;}async #sleep(_0x35e357){return new Promise(_0x112856=>setTimeout(_0x112856,_0x35e357));}async[a113_0x568119(0x1e8)](){const _0x3049c4=a113_0x568119,_0x224be4={};_0x224be4[_0x3049c4(0x1ea)]=_0x3049c4(0x1e1),_0x224be4[_0x3049c4(0x1c6)]=_0x3049c4(0x209);const _0x47efe8=_0x224be4;try{const _0x44ca66=await helper[_0x3049c4(0x1c8)](_0x47efe8[_0x3049c4(0x1ea)],_0x47efe8[_0x3049c4(0x1c6)],null,null,this.#address);if(_0x44ca66)return!![];}catch(_0x2209a1){return![];}}async[a113_0x568119(0x203)](){const _0x287043=a113_0x568119,_0x385e3f={'fuCbG':_0x287043(0x1d2),'RvLMU':'exec','yojsj':function(_0x3d5310,_0x39568a,_0x3504ac,_0x5ec05e){return _0x3d5310(_0x39568a,_0x3504ac,_0x5ec05e);},'uCaIO':_0x287043(0x1ce),'YcnOU':_0x287043(0x1e5)},_0x5a48fc=await this.#getBinaryPath(),_0x1370ee={};_0x1370ee[_0x287043(0x201)]='a',this.#logStream=fs['createWriteStream'](this.#logfile,_0x1370ee);const _0x3fffce=await this[_0x287043(0x1c5)](),_0x28930e=await this[_0x287043(0x1bf)]();if(!_0x3fffce)return![];const _0x2c6df4=[(this.#isApp?_0x385e3f['fuCbG']:_0x385e3f['RvLMU'])+_0x287043(0x1ec)];_0x28930e&&_0x2c6df4[_0x287043(0x1d7)]('-c',_0x28930e);this.#proc=_0x385e3f[_0x287043(0x1f5)](spawn,_0x5a48fc,_0x2c6df4,{'env':Object[_0x287043(0x1e0)](process[_0x287043(0x1ef)],{'PERCY_TOKEN':_0x3fffce,'TH_BUILD_UUID':process[_0x287043(0x1ef)][testHubConstants[_0x287043(0x1f6)][_0x287043(0x1c7)]]})}),this.#proc['stdout'][_0x287043(0x1e7)](this.#logStream),this.#proc['stderr']['pipe'](this.#logStream),this['isProcessRunning']=!![];var _0x4218c4=this;this.#proc['on'](_0x385e3f[_0x287043(0x1fe)],function(_0x63f823){const _0x3304a2=_0x287043;_0x4218c4[_0x3304a2(0x1d5)]=![];});do{const _0x5ef249=await this[_0x287043(0x1e8)]();if(_0x5ef249)return logger['debug'](_0x385e3f[_0x287043(0x207)]),!![];await this.#sleep(0x3e8);}while(this['isProcessRunning']);return![];}async[a113_0x568119(0x20a)](){const _0x4dc14c=a113_0x568119,_0x3a8f80={'FbIPI':function(_0x193fdc,_0x2601d8){return _0x193fdc(_0x2601d8);},'hBVlO':function(_0x126449,_0x2dbbe2,_0x581a05){return _0x126449(_0x2dbbe2,_0x581a05);},'fRjHE':_0x4dc14c(0x1e2),'ADthM':_0x4dc14c(0x1ce)},_0xa49f19=await this.#getBinaryPath();return new Promise((_0xb70c72,_0x3df372)=>{const _0x493aff=_0x4dc14c,_0x3c2722=_0x3a8f80[_0x493aff(0x1eb)](spawn,_0xa49f19,[_0x3a8f80[_0x493aff(0x1f2)]]);_0x3c2722['on'](_0x3a8f80['ADthM'],_0x4c0945=>{const _0x413ed4=_0x493aff;this[_0x413ed4(0x1d5)]=![],this.#logStream&&(this.#logStream[_0x413ed4(0x1c2)](),this.#logStream=null),_0x3a8f80['FbIPI'](_0xb70c72,_0x4c0945);});});}[a113_0x568119(0x1de)](){const _0x5487a9=a113_0x568119;return this[_0x5487a9(0x1d5)];}async['fetchPercyToken'](){const _0x4a5886=a113_0x568119,_0xe4a1eb={};_0xe4a1eb[_0x4a5886(0x1d4)]=_0x4a5886(0x206),_0xe4a1eb[_0x4a5886(0x1ee)]=_0x4a5886(0x1f9),_0xe4a1eb[_0x4a5886(0x205)]=_0x4a5886(0x1e1),_0xe4a1eb[_0x4a5886(0x1f4)]=_0x4a5886(0x1d6);const _0x4c12ec=_0xe4a1eb,_0x3f8f40=this.#config[_0x4a5886(0x1e6)];try{const _0x1e2dd1=this.#isApp?_0x4c12ec[_0x4a5886(0x1d4)]:_0x4c12ec[_0x4a5886(0x1ee)],_0xe49374=await helper[_0x4a5886(0x1c8)](_0x4c12ec[_0x4a5886(0x205)],_0x4a5886(0x1c3)+_0x3f8f40+_0x4a5886(0x1fd)+_0x1e2dd1,{},this.#config),_0x5b7ad5=_0xe49374[_0x4a5886(0x1e9)];return logger[_0x4a5886(0x1ed)](_0x4c12ec[_0x4a5886(0x1f4)]),_0x5b7ad5['token'];}catch(_0x154dd3){return logger['error'](_0x4a5886(0x1f7)+_0x154dd3),null;}}async[a113_0x568119(0x1bf)](){const _0xf23bce=a113_0x568119,_0x12f84e={'QIydq':function(_0x1d5532,_0x41fefe){return _0x1d5532(_0x41fefe);},'ZTgtE':function(_0x538104,_0x3ab867){return _0x538104+_0x3ab867;},'YmkAY':_0xf23bce(0x1fc),'HxcFr':_0xf23bce(0x1dd)};if(!this.#config[_0xf23bce(0x1da)])return null;const _0x5c9875=path[_0xf23bce(0x1c0)](os[_0xf23bce(0x20c)](),_0x12f84e[_0xf23bce(0x1ff)]),_0x3a770c=this.#config[_0xf23bce(0x1da)];return!_0x3a770c[_0xf23bce(0x1d8)]&&(_0x3a770c[_0xf23bce(0x1d8)]='2'),new Promise((_0x566269,_0x1928de)=>{const _0xfff3=_0xf23bce,_0x2eba39={'WKvHS':function(_0x5f504e,_0x553149){const _0xb56a41=a113_0xe63f;return _0x12f84e[_0xb56a41(0x1cb)](_0x5f504e,_0x553149);},'iyGNe':function(_0x3e2002,_0x340c18){const _0x5e8a26=a113_0xe63f;return _0x12f84e[_0x5e8a26(0x1cd)](_0x3e2002,_0x340c18);},'FQyZU':_0x12f84e['YmkAY'],'JsIxb':function(_0xe00cab,_0x1d72b7){return _0x12f84e['QIydq'](_0xe00cab,_0x1d72b7);}};fs[_0xfff3(0x204)](_0x5c9875,JSON[_0xfff3(0x1bc)](_0x3a770c),_0x43ebaf=>{const _0x25ce0f=_0xfff3;_0x43ebaf&&(logger['error'](_0x25ce0f(0x1bb)+_0x43ebaf),_0x2eba39[_0x25ce0f(0x1c4)](_0x566269,null)),logger[_0x25ce0f(0x1ed)](_0x2eba39[_0x25ce0f(0x1d3)](_0x2eba39[_0x25ce0f(0x1c9)],_0x5c9875)),_0x2eba39[_0x25ce0f(0x1be)](_0x566269,_0x5c9875);});});}}module[a113_0x568119(0x1f8)]=Percy;
1
+ const a113_0x55f401=a113_0x5c99;function a113_0x5c99(_0x3c97bd,_0x2ed070){const _0x4e4120=a113_0x4e41();return a113_0x5c99=function(_0x5c99cc,_0x4d022c){_0x5c99cc=_0x5c99cc-0x13c;let _0x38c5b5=_0x4e4120[_0x5c99cc];return _0x38c5b5;},a113_0x5c99(_0x3c97bd,_0x2ed070);}(function(_0x537d09,_0x20d3d3){const _0x384711=a113_0x5c99,_0x3d8ed2=_0x537d09();while(!![]){try{const _0xce5bf8=parseInt(_0x384711(0x159))/0x1+parseInt(_0x384711(0x168))/0x2+-parseInt(_0x384711(0x14d))/0x3*(parseInt(_0x384711(0x142))/0x4)+-parseInt(_0x384711(0x14b))/0x5+parseInt(_0x384711(0x16c))/0x6+-parseInt(_0x384711(0x14f))/0x7+-parseInt(_0x384711(0x182))/0x8*(-parseInt(_0x384711(0x183))/0x9);if(_0xce5bf8===_0x20d3d3)break;else _0x3d8ed2['push'](_0x3d8ed2['shift']());}catch(_0x495e37){_0x3d8ed2['push'](_0x3d8ed2['shift']());}}}(a113_0x4e41,0x8f8ab));function a113_0x4e41(){const _0x45a11d=['data','GCVaK','stringify','version','lsacB','path','stderr','createPercyConfig','stop','../../helpers/performance/constants','app','424tSfDwW','218574fDRKEW','ENV_VAR','join','../helper','CqekF','assign','UfRAm','writeFile','LiXWS','child_process','percy/healthcheck','Ourbz','PERCY_SERVER_ADDRESS','GET','InemD','20sCRCQR','push','isRunning','qBmqj','createWriteStream','uubIL','../../helpers/testhub/constants','pipe','Percy\x20config\x20created\x20at\x20','1724110DAJvPW','stdout','689667IHWrvE','projectName','1349803jykmlz','bgqBv','error','api/app_percy/get_project_token?name=','percy.json','Percy\x20fetch\x20token\x20success','nodeRequest','start','DOWNLOAD','close','97194qAHazh','debug','automate','zpKmi','env','app:exec','QEntY','isProcessRunning','token','&type=','exec:stop','Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20','hBrBB','tmpdir','YrpTR','245574rHYckW','healthcheck','getBinaryPath','./PercyBinary','4607424KRlOLD','aLRnG','flags','GeFeK','../logger','QTyro','percyOptions','Percy\x20healthcheck\x20successful','Error\x20creating\x20percy\x20config:\x20','fetchPercyToken','percy.log'];a113_0x4e41=function(){return _0x45a11d;};return a113_0x4e41();}const fs=require('fs'),path=require(a113_0x55f401(0x17c)),os=require('os'),{spawn}=require(a113_0x55f401(0x13c)),helper=require(a113_0x55f401(0x186)),logger=require(a113_0x55f401(0x170))['winstonLogger'],{getLogDir}=require('../logger'),testHubConstants=require(a113_0x55f401(0x148)),PerformanceTester=require('../../helpers/performance/performance-tester'),{PERCY_EVENTS:PerformanceEvents}=require(a113_0x55f401(0x180)),PercyBinary=require(a113_0x55f401(0x16b));class Percy{#logfile=path[a113_0x55f401(0x185)](getLogDir(),a113_0x55f401(0x176));#address=process['env'][a113_0x55f401(0x13f)]||'http://localhost:5338';#binaryPath=null;#config=null;#proc=null;#logStream=null;#isApp=![];[a113_0x55f401(0x160)]=![];constructor(_0x434ccf){const _0x2ce7d3=a113_0x55f401;this.#config=_0x434ccf,!!_0x434ccf[_0x2ce7d3(0x181)]&&(this.#isApp=!![]);}async #getBinaryPath(){const _0x53c01e=a113_0x55f401;if(!this.#binaryPath){const _0x17a842=new PercyBinary();PerformanceTester[_0x53c01e(0x156)](PerformanceEvents[_0x53c01e(0x157)]),this.#binaryPath=await _0x17a842[_0x53c01e(0x16a)](this.#config),PerformanceTester['end'](PerformanceEvents[_0x53c01e(0x157)]);}return this.#binaryPath;}async #sleep(_0x431539){return new Promise(_0x16b119=>setTimeout(_0x16b119,_0x431539));}async[a113_0x55f401(0x169)](){const _0x127d43=a113_0x55f401,_0x4cf8e7={};_0x4cf8e7[_0x127d43(0x178)]=_0x127d43(0x140),_0x4cf8e7['ETPZi']=_0x127d43(0x13d);const _0x38e988=_0x4cf8e7;try{const _0x5b8f7c=await helper[_0x127d43(0x155)](_0x38e988[_0x127d43(0x178)],_0x38e988['ETPZi'],null,null,this.#address);if(_0x5b8f7c)return!![];}catch(_0x4eae8d){return![];}}async['start'](){const _0x24277b=a113_0x55f401,_0x2a7983={'aLRnG':_0x24277b(0x15e),'LiXWS':'exec','uubIL':function(_0x5afc2c,_0x5b868b,_0x5de5f8,_0x29245e){return _0x5afc2c(_0x5b868b,_0x5de5f8,_0x29245e);},'UfRAm':_0x24277b(0x158),'bgqBv':_0x24277b(0x173)},_0x594209=await this.#getBinaryPath(),_0x2bdecb={};_0x2bdecb[_0x24277b(0x16e)]='a',this.#logStream=fs[_0x24277b(0x146)](this.#logfile,_0x2bdecb);const _0x4faa33=await this['fetchPercyToken'](),_0xd8f71b=await this[_0x24277b(0x17e)]();if(!_0x4faa33)return![];const _0x57a419=[(this.#isApp?_0x2a7983[_0x24277b(0x16d)]:_0x2a7983[_0x24277b(0x18b)])+':start'];_0xd8f71b&&_0x57a419[_0x24277b(0x143)]('-c',_0xd8f71b);this.#proc=_0x2a7983[_0x24277b(0x147)](spawn,_0x594209,_0x57a419,{'env':Object[_0x24277b(0x188)](process[_0x24277b(0x15d)],{'PERCY_TOKEN':_0x4faa33,'TH_BUILD_UUID':process['env'][testHubConstants[_0x24277b(0x184)]['BROWSERSTACK_TESTHUB_UUID']]})}),this.#proc[_0x24277b(0x14c)][_0x24277b(0x149)](this.#logStream),this.#proc[_0x24277b(0x17d)][_0x24277b(0x149)](this.#logStream),this[_0x24277b(0x160)]=!![];var _0x5ecbcc=this;this.#proc['on'](_0x2a7983[_0x24277b(0x189)],function(_0x1ff42f){const _0x4b9983=_0x24277b;_0x5ecbcc[_0x4b9983(0x160)]=![];});do{const _0x154002=await this['healthcheck']();if(_0x154002)return logger[_0x24277b(0x15a)](_0x2a7983[_0x24277b(0x150)]),!![];await this.#sleep(0x3e8);}while(this[_0x24277b(0x160)]);return![];}async[a113_0x55f401(0x17f)](){const _0x3af1ee=a113_0x55f401,_0x2bd038={'QEntY':function(_0x3fa61f,_0x1e03d8){return _0x3fa61f(_0x1e03d8);},'InemD':function(_0x140193,_0x29a4a8,_0x51d8b3){return _0x140193(_0x29a4a8,_0x51d8b3);},'CqekF':_0x3af1ee(0x163),'hBrBB':_0x3af1ee(0x158)},_0x124afa=await this.#getBinaryPath();return new Promise((_0x5d3d00,_0x1287f7)=>{const _0x4aa0d2=_0x3af1ee,_0x2b448f={'PeiiG':function(_0x3e5c53,_0x5dfb1f){const _0x52fe03=a113_0x5c99;return _0x2bd038[_0x52fe03(0x15f)](_0x3e5c53,_0x5dfb1f);}},_0x54db5b=_0x2bd038[_0x4aa0d2(0x141)](spawn,_0x124afa,[_0x2bd038[_0x4aa0d2(0x187)]]);_0x54db5b['on'](_0x2bd038[_0x4aa0d2(0x165)],_0x4bb1f7=>{this['isProcessRunning']=![],this.#logStream&&(this.#logStream['end'](),this.#logStream=null),_0x2b448f['PeiiG'](_0x5d3d00,_0x4bb1f7);});});}[a113_0x55f401(0x144)](){const _0x5a37a6=a113_0x55f401;return this[_0x5a37a6(0x160)];}async[a113_0x55f401(0x175)](){const _0x416eff=a113_0x55f401,_0x129d52={};_0x129d52[_0x416eff(0x171)]='app',_0x129d52[_0x416eff(0x13e)]=_0x416eff(0x15b),_0x129d52[_0x416eff(0x17b)]=_0x416eff(0x140),_0x129d52[_0x416eff(0x145)]=_0x416eff(0x154);const _0xf24a76=_0x129d52,_0x2944ea=this.#config[_0x416eff(0x14e)];try{const _0x5e0fb0=this.#isApp?_0xf24a76[_0x416eff(0x171)]:_0xf24a76[_0x416eff(0x13e)],_0x4fa007=await helper[_0x416eff(0x155)](_0xf24a76[_0x416eff(0x17b)],_0x416eff(0x152)+_0x2944ea+_0x416eff(0x162)+_0x5e0fb0,{},this.#config),_0x131434=_0x4fa007[_0x416eff(0x177)];return logger['debug'](_0xf24a76['qBmqj']),_0x131434[_0x416eff(0x161)];}catch(_0x5438d0){return logger[_0x416eff(0x151)](_0x416eff(0x164)+_0x5438d0),null;}}async[a113_0x55f401(0x17e)](){const _0x4b6d85=a113_0x55f401,_0x5ab389={'GeFeK':function(_0x419b72,_0x5cc6ec){return _0x419b72(_0x5cc6ec);},'NeFCn':function(_0x3584ab,_0x42ec19){return _0x3584ab+_0x42ec19;},'YrpTR':_0x4b6d85(0x14a),'TStQi':function(_0x582c84,_0x3b6447){return _0x582c84(_0x3b6447);},'zpKmi':_0x4b6d85(0x153)};if(!this.#config['percyOptions'])return null;const _0x100a51=path[_0x4b6d85(0x185)](os[_0x4b6d85(0x166)](),_0x5ab389[_0x4b6d85(0x15c)]),_0xce806b=this.#config[_0x4b6d85(0x172)];return!_0xce806b[_0x4b6d85(0x17a)]&&(_0xce806b[_0x4b6d85(0x17a)]='2'),new Promise((_0xa887ce,_0x1633e0)=>{const _0x39a956=_0x4b6d85;fs[_0x39a956(0x18a)](_0x100a51,JSON[_0x39a956(0x179)](_0xce806b),_0x388d09=>{const _0x1623ec=_0x39a956;_0x388d09&&(logger[_0x1623ec(0x151)](_0x1623ec(0x174)+_0x388d09),_0x5ab389[_0x1623ec(0x16f)](_0xa887ce,null)),logger[_0x1623ec(0x15a)](_0x5ab389['NeFCn'](_0x5ab389[_0x1623ec(0x167)],_0x100a51)),_0x5ab389['TStQi'](_0xa887ce,_0x100a51);});});}}module['exports']=Percy;
@@ -1 +1 @@
1
- const a114_0x35f18a=a114_0x4836;function a114_0x4836(_0x3cade9,_0x3a65de){const _0x573ea0=a114_0x573e();return a114_0x4836=function(_0x4836ac,_0x163329){_0x4836ac=_0x4836ac-0x172;let _0xc157e9=_0x573ea0[_0x4836ac];return _0xc157e9;},a114_0x4836(_0x3cade9,_0x3a65de);}(function(_0x3ca4b1,_0x4a20ba){const _0x4bbf9f=a114_0x4836,_0x58f2bc=_0x3ca4b1();while(!![]){try{const _0x4d0794=-parseInt(_0x4bbf9f(0x202))/0x1*(parseInt(_0x4bbf9f(0x1a1))/0x2)+-parseInt(_0x4bbf9f(0x1ac))/0x3*(-parseInt(_0x4bbf9f(0x201))/0x4)+-parseInt(_0x4bbf9f(0x1c0))/0x5+parseInt(_0x4bbf9f(0x1c7))/0x6+-parseInt(_0x4bbf9f(0x1c4))/0x7*(-parseInt(_0x4bbf9f(0x190))/0x8)+parseInt(_0x4bbf9f(0x177))/0x9*(parseInt(_0x4bbf9f(0x1b1))/0xa)+-parseInt(_0x4bbf9f(0x176))/0xb*(-parseInt(_0x4bbf9f(0x1e9))/0xc);if(_0x4d0794===_0x4a20ba)break;else _0x58f2bc['push'](_0x58f2bc['shift']());}catch(_0x63842f){_0x58f2bc['push'](_0x58f2bc['shift']());}}}(a114_0x573e,0x82145));function a114_0x573e(){const _0x47b522=['5302188fPkILU','TmFhK','xnusk','open','homedir','AzEGi','OnIjv','nohQp','tmpdir','USERNAME','RpvHE','/percy-osx.zip','dIeZU','env','undefined','bfQRX','writeFileSync','zeaSY','end','proxyPort','agent','../logger','once','QDhhK','236VBlRdD','530246yXttMv','vxfmq','match','trim','xVuog','.browserstack','gysIY','USERPROFILE','mToON','LOGNAME','bYODn','Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20','darwin','cwd','tSPTe','NRwFt','11CsbEwT','9uJcgRu','New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update','W_OK','parse','catch','BonRx','Saved\x20new\x20ETag\x20for\x20percy\x20binary','pEFqu','wJUlN','fileName','UDahH','error','Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying','JgDnE','jaHgD','percy','/root','daMBH','Failed\x20to\x20read\x20ETag\x20file:\x20','then','--version','R_OK','mpAeN','extractAndSaveBinary','TRsDb','4277768RHkcsb','stdout','TYyDV','YVikV','If-None-Match','data','get','wfakP','PrsyH','chmod','readEntry','destroy','useCaCertificate','pipe','host','/home/','https://github.com/percy/cli/releases/latest/download','2mzzBAB','etag','binaryPath','svnjZ','QYRsQ','needsUpdate','Error\x20trying\x20to\x20download\x20percy\x20binary','X_OK','oTqyE','headers','openReadStream','22815HmKMuY','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20','createWriteStream','statSync','/percy-win.zip','3634030UgxRdg','WPybm','/percy-linux.zip','close','platform','winstonLogger','sxjSg','vGKoE','HOME','path','WtaEQ','EFcHr','zSUpT','Jqwfd','UZXzd','4967995LzbwUL','Connection','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20','.zip','7SIdBpO','XdvhB','rYmYS','1607892PvmeEI','debug','qZvNR','jCfly','function','port','https-proxy-agent','xoIUu','HOMEPATH','gNloz','download','TwErL','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20','win32','0755','lazyEntries','tpOrt','mkdirSync','warn','validateBinary','LNAME','length','hvrVK','SuKKi','statusCode','join','/Users/','accessSync','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20','linux','proxyHost','FTMoV','rgSGt','utf8'];a114_0x573e=function(){return _0x47b522;};return a114_0x573e();}const {https}=require('follow-redirects'),url=require('url'),yauzl=require('yauzl'),fs=require('fs'),path=require(a114_0x35f18a(0x1ba)),os=require('os'),{spawn}=require('child_process'),HttpsProxyAgent=require(a114_0x35f18a(0x1cd)),logger=require(a114_0x35f18a(0x1fe))[a114_0x35f18a(0x1b6)];class PercyBinary{#hostOS=process[a114_0x35f18a(0x1b5)];#httpPath=null;#binaryName=a114_0x35f18a(0x186);#orderedPaths=[path['join'](this.#homedir(),a114_0x35f18a(0x207)),process[a114_0x35f18a(0x173)](),os[a114_0x35f18a(0x1f1)]()];constructor(){const _0x2f555d=a114_0x35f18a,_0x4a665f={};_0x4a665f[_0x2f555d(0x193)]=_0x2f555d(0x1a0),_0x4a665f['EFcHr']=function(_0x4e339d,_0x1c022f){return _0x4e339d+_0x1c022f;},_0x4a665f[_0x2f555d(0x198)]=_0x2f555d(0x1f4),_0x4a665f[_0x2f555d(0x208)]=_0x2f555d(0x1b0),_0x4a665f[_0x2f555d(0x185)]='percy.exe',_0x4a665f[_0x2f555d(0x197)]=function(_0x390d88,_0x354c5c){return _0x390d88+_0x354c5c;},_0x4a665f['jCfly']=_0x2f555d(0x1b3);const _0x52310e=_0x4a665f,_0x24063d=_0x52310e[_0x2f555d(0x193)];if(this.#hostOS[_0x2f555d(0x204)](/darwin|mac os/i))this.#httpPath=_0x52310e['EFcHr'](_0x24063d,_0x52310e[_0x2f555d(0x198)]);else this.#hostOS[_0x2f555d(0x204)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x52310e[_0x2f555d(0x1bc)](_0x24063d,_0x52310e[_0x2f555d(0x208)]),this.#binaryName=_0x52310e[_0x2f555d(0x185)]):this.#httpPath=_0x52310e[_0x2f555d(0x197)](_0x24063d,_0x52310e[_0x2f555d(0x1ca)]);}#getAvailableDirs(){const _0x2876ce=a114_0x35f18a,_0x4a7b1e={};_0x4a7b1e[_0x2876ce(0x1bf)]=function(_0x1cc911,_0x4dbab7){return _0x1cc911<_0x4dbab7;},_0x4a7b1e['pEFqu']=_0x2876ce(0x1a7);const _0x394a7a=_0x4a7b1e;for(var _0x22f78f=0x0;_0x394a7a[_0x2876ce(0x1bf)](_0x22f78f,this.#orderedPaths[_0x2876ce(0x1dc)]);_0x22f78f++){var _0x3c7828=this.#orderedPaths[_0x22f78f];if(this.#makePath(_0x3c7828))return _0x3c7828;}throw new Error(_0x394a7a[_0x2876ce(0x17e)]);}#makePath(_0x490959){try{return _0x490959&&!this.#checkPath(_0x490959)&&fs['mkdirSync'](_0x490959),!![];}catch{return![];}}#checkPath(_0x29d71f,_0x45fb86){const _0x4818aa=a114_0x35f18a,_0x1eef46={};_0x1eef46[_0x4818aa(0x1d0)]=function(_0x4fad5a,_0x1ab7e7){return _0x4fad5a|_0x1ab7e7;},_0x1eef46[_0x4818aa(0x1e7)]=function(_0xc78bd0,_0x5c5a2e){return _0xc78bd0!==_0x5c5a2e;},_0x1eef46[_0x4818aa(0x1c9)]=_0x4818aa(0x1f7);const _0x5110cc=_0x1eef46;_0x45fb86=_0x45fb86||_0x5110cc[_0x4818aa(0x1d0)](fs[_0x4818aa(0x18c)],fs[_0x4818aa(0x179)]);try{return fs[_0x4818aa(0x1e2)](_0x29d71f,_0x45fb86),!![];}catch(_0x47c38d){if(_0x5110cc[_0x4818aa(0x1e7)](typeof fs['accessSync'],_0x5110cc[_0x4818aa(0x1c9)]))return![];try{return fs[_0x4818aa(0x1af)](_0x29d71f),!![];}catch(_0x4849e9){return![];}}}#getETagPath(_0x1f667f){const _0x522a44=a114_0x35f18a;return path[_0x522a44(0x1e0)](_0x1f667f,this.#binaryName+'.etag');}#loadETag(_0x45a5c1){const _0x21066c=a114_0x35f18a,_0x45e0fa={};_0x45e0fa[_0x21066c(0x1ea)]=_0x21066c(0x1e8);const _0x37ad6c=_0x45e0fa,_0x58d78d=this.#getETagPath(_0x45a5c1);if(this.#checkPath(_0x58d78d))try{return fs['readFileSync'](_0x58d78d,_0x37ad6c['TmFhK'])[_0x21066c(0x205)]();}catch(_0x59f95d){logger[_0x21066c(0x1d9)](_0x21066c(0x189)+_0x59f95d);}return null;}#saveETag(_0x512060,_0x46abf2){const _0x49018d=a114_0x35f18a,_0x385857={};_0x385857[_0x49018d(0x1a9)]=_0x49018d(0x17d);const _0x3adbc3=_0x385857;if(!_0x46abf2)return;try{const _0x3630d5=this.#getETagPath(_0x512060);fs[_0x49018d(0x1f9)](_0x3630d5,_0x46abf2),logger['debug'](_0x3adbc3[_0x49018d(0x1a9)]);}catch(_0x532f2a){logger['warn']('Failed\x20to\x20save\x20ETag\x20file:\x20'+_0x532f2a);}}async #handleBinaryDownload(_0x1cdc76,_0x16090e,_0x442d3e){const _0x25c4ca=a114_0x35f18a,_0xf90106={};_0xf90106[_0x25c4ca(0x20c)]=_0x25c4ca(0x183);const _0x1e1963=_0xf90106,_0x1c5e9c=await this[_0x25c4ca(0x1da)](_0x1cdc76[_0x25c4ca(0x1a3)]);if(!_0x1c5e9c){logger['error'](_0x1e1963['bYODn']);const _0x4739e3=await this[_0x25c4ca(0x1d1)](_0x16090e,_0x442d3e);return _0x4739e3[_0x25c4ca(0x1a3)];}return _0x1cdc76['binaryPath'];}async['getBinaryPath'](_0x53a3a5){const _0x50fbe9=a114_0x35f18a,_0x506c5a={};_0x506c5a[_0x50fbe9(0x1ce)]='Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)',_0x506c5a[_0x50fbe9(0x181)]=_0x50fbe9(0x178);const _0x36b825=_0x506c5a,_0x1c668b=this.#getAvailableDirs(),_0xef8f49=path[_0x50fbe9(0x1e0)](_0x1c668b,this.#binaryName);if(this.#checkPath(_0xef8f49,fs[_0x50fbe9(0x1a8)])){const _0x4c08c2=this.#loadETag(_0x1c668b);if(_0x4c08c2)try{const _0x4fe9ad=await this[_0x50fbe9(0x1d1)](_0x53a3a5,_0x1c668b,_0x4c08c2);if(!_0x4fe9ad[_0x50fbe9(0x1a6)])return logger['debug'](_0x36b825[_0x50fbe9(0x1ce)]),_0xef8f49;return logger[_0x50fbe9(0x1c8)](_0x36b825[_0x50fbe9(0x181)]),await this.#handleBinaryDownload(_0x4fe9ad,_0x53a3a5,_0x1c668b);}catch(_0x4c341c){return logger[_0x50fbe9(0x1d9)](_0x50fbe9(0x20d)+_0x4c341c),_0xef8f49;}}const _0x10114a=await this[_0x50fbe9(0x1d1)](_0x53a3a5,_0x1c668b);return await this.#handleBinaryDownload(_0x10114a,_0x53a3a5,_0x1c668b);}[a114_0x35f18a(0x1d1)](_0xb11bfd,_0x5e1aa3,_0x5e4502=null){const _0x3ef1ea=a114_0x35f18a,_0x1f6812={'Vapkr':function(_0x190ef4,_0x21c339){return _0x190ef4(_0x21c339);},'gbATH':function(_0x4b3257,_0x56bc74){return _0x4b3257===_0x56bc74;},'JgDnE':function(_0x230dd7,_0x49e517){return _0x230dd7(_0x49e517);},'rYmYS':_0x3ef1ea(0x182),'FTMoV':_0x3ef1ea(0x1b4),'mpAeN':function(_0x5cc49b,_0x116960){return _0x5cc49b+_0x116960;},'qsXUJ':_0x3ef1ea(0x1c3)};_0x5e1aa3&&!this.#checkPath(_0x5e1aa3)&&fs[_0x3ef1ea(0x1d8)](_0x5e1aa3);const _0x5f06e9=this.#binaryName,_0x2b9e60=path[_0x3ef1ea(0x1e0)](_0x5e1aa3,_0x1f6812[_0x3ef1ea(0x18d)](_0x5f06e9,_0x1f6812['qsXUJ'])),_0x852fc8=fs['createWriteStream'](_0x2b9e60),_0x5b19d8=url[_0x3ef1ea(0x17a)](this.#httpPath);if(_0xb11bfd[_0x3ef1ea(0x1e5)]&&_0xb11bfd[_0x3ef1ea(0x1fc)]){const _0x425a3d={};_0x425a3d[_0x3ef1ea(0x19e)]=_0xb11bfd[_0x3ef1ea(0x1e5)],_0x425a3d[_0x3ef1ea(0x1cc)]=_0xb11bfd[_0x3ef1ea(0x1fc)],_0x5b19d8[_0x3ef1ea(0x1fd)]=new HttpsProxyAgent(_0x425a3d);}if(_0xb11bfd[_0x3ef1ea(0x19c)])try{_0x5b19d8['ca']=fs['readFileSync'](_0xb11bfd['useCaCertificate']);}catch(_0x38c03f){logger[_0x3ef1ea(0x182)](_0x3ef1ea(0x1ad)+_0x38c03f);}if(_0x5e4502){const _0x5e932a={};_0x5e932a[_0x3ef1ea(0x194)]=_0x5e4502,_0x5e932a[_0x3ef1ea(0x1c1)]=_0x1f6812[_0x3ef1ea(0x1e6)],_0x5b19d8['headers']=_0x5e932a;}else{const _0x1f1f7f={};_0x1f1f7f[_0x3ef1ea(0x1c1)]=_0x1f6812[_0x3ef1ea(0x1e6)],_0x5b19d8['headers']=_0x1f1f7f;}return new Promise((_0x56ace0,_0x1386af)=>{const _0x55c3e3=_0x3ef1ea,_0x3f6645={'TYyDV':function(_0x1b49fa,_0x3124d6){const _0x5a0686=a114_0x4836;return _0x1f6812[_0x5a0686(0x184)](_0x1b49fa,_0x3124d6);},'mToON':function(_0x5efe88,_0x13f888){const _0x15b9ff=a114_0x4836;return _0x1f6812[_0x15b9ff(0x184)](_0x5efe88,_0x13f888);}};https[_0x55c3e3(0x196)](_0x5b19d8,_0x2d73ae=>{const _0x57dbe4=_0x55c3e3,_0x9f74a={'TwErL':function(_0x3e09a5,_0x103f3e){return _0x1f6812['Vapkr'](_0x3e09a5,_0x103f3e);}};if(_0x5e4502&&_0x1f6812['gbATH'](_0x2d73ae[_0x57dbe4(0x1df)],0x130)){_0x852fc8[_0x57dbe4(0x19b)]();const _0x237cd0={};_0x237cd0[_0x57dbe4(0x1a6)]=![],_0x1f6812['JgDnE'](_0x56ace0,_0x237cd0);return;}const _0x438e69=_0x2d73ae[_0x57dbe4(0x1aa)][_0x57dbe4(0x1a2)];_0x438e69&&this.#saveETag(_0x5e1aa3,_0x438e69),_0x2d73ae[_0x57dbe4(0x19d)](_0x852fc8),_0x2d73ae['on'](_0x1f6812['rYmYS'],function(_0x503b40){const _0x5db5f1=_0x57dbe4;logger[_0x5db5f1(0x182)](_0x5db5f1(0x1d3)+_0x503b40),_0x9f74a[_0x5db5f1(0x1d2)](_0x1386af,_0x503b40);}),_0x852fc8['on'](_0x1f6812[_0x57dbe4(0x1c6)],function(_0x1bbe0b){const _0x4a275d=_0x57dbe4;logger['error'](_0x4a275d(0x1c2)+_0x1bbe0b),_0x3f6645[_0x4a275d(0x192)](_0x1386af,_0x1bbe0b);}),_0x852fc8['on'](_0x1f6812[_0x57dbe4(0x1e6)],()=>{const _0x2d712c=_0x57dbe4;this['extractAndSaveBinary'](_0x2b9e60,_0x5e1aa3)[_0x2d712c(0x18a)](_0x31e4bc=>_0x56ace0({'needsUpdate':!![],'binaryPath':_0x31e4bc}))[_0x2d712c(0x17b)](_0x1386af);});})['on'](_0x1f6812[_0x55c3e3(0x1c6)],function(_0x48d300){const _0x1a8b32=_0x55c3e3;logger[_0x1a8b32(0x182)](_0x1a8b32(0x1e3)+_0x48d300),_0x3f6645[_0x1a8b32(0x20a)](_0x1386af,_0x48d300);});});}[a114_0x35f18a(0x18e)](_0x50677f,_0x1b1498){const _0x2c9035=a114_0x35f18a,_0x5bccb1={'nohQp':function(_0x5f3ed2,_0x426fe3){return _0x5f3ed2(_0x426fe3);},'svnjZ':_0x2c9035(0x1fb),'ZIyHJ':function(_0x5d7d23,_0x3912b6){return _0x5d7d23(_0x3912b6);},'SuKKi':_0x2c9035(0x1d5),'xnusk':'entry','bXAyN':_0x2c9035(0x182),'PcMzx':function(_0x1d9f11,_0x15f020){return _0x1d9f11===_0x15f020;}},_0x3d846b=this.#binaryName,_0xfd0a1e=path[_0x2c9035(0x1e0)](_0x1b1498,_0x3d846b);return new Promise((_0x4000ad,_0x38deee)=>{const _0x5b8d3b=_0x2c9035,_0x1b112b={'vxfmq':function(_0x3e868a,_0x34cbf0){return _0x5bccb1['PcMzx'](_0x3e868a,_0x34cbf0);}},_0x4ee6f5={};_0x4ee6f5[_0x5b8d3b(0x1d6)]=!![],yauzl[_0x5b8d3b(0x1ec)](_0x50677f,_0x4ee6f5,function(_0xbd214,_0x1bbd1d){const _0x3f74f5=_0x5b8d3b,_0x373a28={'WPybm':function(_0x320385,_0x5df3c7){return _0x5bccb1['nohQp'](_0x320385,_0x5df3c7);},'dIeZU':_0x5bccb1['svnjZ'],'hvrVK':function(_0x12c1c9,_0x1b6fa0){return _0x5bccb1['ZIyHJ'](_0x12c1c9,_0x1b6fa0);},'daMBH':_0x5bccb1[_0x3f74f5(0x1de)]};_0xbd214&&_0x5bccb1[_0x3f74f5(0x1f0)](_0x38deee,_0xbd214),_0x1bbd1d['readEntry'](),_0x1bbd1d['on'](_0x5bccb1[_0x3f74f5(0x1eb)],_0x5f0670=>{const _0x1ca7d1=_0x3f74f5;if(/\/$/['test'](_0x5f0670['fileName']))_0x1bbd1d[_0x1ca7d1(0x19a)]();else{const _0x51a2f5=fs[_0x1ca7d1(0x1ae)](path[_0x1ca7d1(0x1e0)](_0x1b1498,_0x5f0670[_0x1ca7d1(0x180)]));_0x1bbd1d[_0x1ca7d1(0x1ab)](_0x5f0670,function(_0x3d2605,_0x234bd4){const _0x19d19c=_0x1ca7d1;_0x3d2605&&_0x373a28[_0x19d19c(0x1b2)](_0x38deee,_0xbd214),_0x234bd4['on'](_0x373a28[_0x19d19c(0x1f5)],function(){const _0x220c22=_0x19d19c;_0x51a2f5[_0x220c22(0x1b4)](),_0x1bbd1d[_0x220c22(0x19a)]();}),_0x234bd4[_0x19d19c(0x19d)](_0x51a2f5);}),_0x1b112b[_0x1ca7d1(0x203)](_0x5f0670['fileName'],_0x3d846b)&&_0x1bbd1d[_0x1ca7d1(0x1b4)]();}}),_0x1bbd1d['on'](_0x5bccb1['bXAyN'],_0x444e8e=>{_0x373a28['WPybm'](_0x38deee,_0x444e8e);}),_0x1bbd1d[_0x3f74f5(0x1ff)](_0x5bccb1[_0x3f74f5(0x1a4)],()=>{const _0x3c4b59=_0x3f74f5,_0x45bf11={'Jqwfd':function(_0x43000d,_0x5626be){const _0x4970f3=a114_0x4836;return _0x373a28[_0x4970f3(0x1dd)](_0x43000d,_0x5626be);}};fs[_0x3c4b59(0x199)](_0xfd0a1e,_0x373a28[_0x3c4b59(0x188)],function(_0x5b3e07){const _0x48b869=_0x3c4b59;_0x5b3e07&&_0x45bf11['Jqwfd'](_0x38deee,_0x5b3e07),_0x45bf11[_0x48b869(0x1be)](_0x4000ad,_0xfd0a1e);}),_0x1bbd1d[_0x3c4b59(0x1b4)]();});});});}async['validateBinary'](_0x8420e2){const _0x2e549f=a114_0x35f18a,_0x84e8c6={'tpOrt':function(_0x1ee8a0,_0x29e788){return _0x1ee8a0(_0x29e788);},'QDhhK':function(_0x291d3e,_0x1b244d){return _0x291d3e(_0x1b244d);},'AzEGi':function(_0x362caa,_0xab7cbf,_0x26826e,_0x2b92f2){return _0x362caa(_0xab7cbf,_0x26826e,_0x2b92f2);},'tSPTe':_0x2e549f(0x18b),'sxjSg':_0x2e549f(0x195),'vGKoE':_0x2e549f(0x1b4)},_0x43bcb7=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x67000d,_0x309ff4)=>{const _0x27a18c=_0x2e549f,_0x12a996={'wJUlN':function(_0x3c6ece,_0x1fe2ab){const _0x44231f=a114_0x4836;return _0x84e8c6[_0x44231f(0x200)](_0x3c6ece,_0x1fe2ab);}},_0x280b27={};_0x280b27[_0x27a18c(0x1f6)]=process['env'];const _0x2f6fdd=_0x84e8c6[_0x27a18c(0x1ee)](spawn,_0x8420e2,[_0x84e8c6[_0x27a18c(0x174)]],_0x280b27);_0x2f6fdd[_0x27a18c(0x191)]['on'](_0x84e8c6[_0x27a18c(0x1b7)],_0x1cab86=>{const _0x1d34a4=_0x27a18c;_0x43bcb7['test'](_0x1cab86)&&_0x84e8c6[_0x1d34a4(0x1d7)](_0x67000d,!![]);}),_0x2f6fdd['on'](_0x84e8c6[_0x27a18c(0x1b8)],()=>{const _0x487fa8=_0x27a18c;_0x12a996[_0x487fa8(0x17f)](_0x67000d,![]);});});}#homedir(){const _0x23e039=a114_0x35f18a,_0x1ad096={};_0x1ad096['BonRx']=function(_0x128869,_0x2daad2){return _0x128869===_0x2daad2;},_0x1ad096[_0x23e039(0x1bd)]=_0x23e039(0x1cb),_0x1ad096[_0x23e039(0x1c5)]=_0x23e039(0x1d4),_0x1ad096[_0x23e039(0x1f3)]=function(_0x16646d,_0x73fe61){return _0x16646d+_0x73fe61;},_0x1ad096['NRwFt']=function(_0xf1cd62,_0x57c643){return _0xf1cd62===_0x57c643;},_0x1ad096[_0x23e039(0x1fa)]=_0x23e039(0x172),_0x1ad096[_0x23e039(0x1bb)]=_0x23e039(0x1e1),_0x1ad096[_0x23e039(0x1ef)]=_0x23e039(0x1e4),_0x1ad096[_0x23e039(0x18f)]=function(_0x3ce282,_0x139363){return _0x3ce282===_0x139363;},_0x1ad096[_0x23e039(0x1f8)]=_0x23e039(0x187),_0x1ad096[_0x23e039(0x1a5)]=_0x23e039(0x19f),_0x1ad096[_0x23e039(0x206)]=function(_0x29dd26,_0x3b2125){return _0x29dd26||_0x3b2125;};const _0x13ebe0=_0x1ad096;if(_0x13ebe0[_0x23e039(0x17c)](typeof os[_0x23e039(0x1ed)],_0x13ebe0[_0x23e039(0x1bd)]))return os[_0x23e039(0x1ed)]();const _0x5d57c0=process[_0x23e039(0x1f6)],_0x4effb6=_0x5d57c0[_0x23e039(0x1b9)],_0x2e7524=_0x5d57c0[_0x23e039(0x20b)]||_0x5d57c0['USER']||_0x5d57c0[_0x23e039(0x1db)]||_0x5d57c0[_0x23e039(0x1f2)];if(_0x13ebe0['BonRx'](process[_0x23e039(0x1b5)],_0x13ebe0[_0x23e039(0x1c5)]))return _0x5d57c0[_0x23e039(0x209)]||_0x13ebe0[_0x23e039(0x1f3)](_0x5d57c0['HOMEDRIVE'],_0x5d57c0[_0x23e039(0x1cf)])||_0x4effb6||null;if(_0x13ebe0[_0x23e039(0x175)](process[_0x23e039(0x1b5)],_0x13ebe0['zeaSY']))return _0x4effb6||(_0x2e7524?_0x13ebe0[_0x23e039(0x1f3)](_0x13ebe0['WtaEQ'],_0x2e7524):null);if(_0x13ebe0['BonRx'](process[_0x23e039(0x1b5)],_0x13ebe0[_0x23e039(0x1ef)]))return _0x4effb6||(_0x13ebe0[_0x23e039(0x18f)](process['getuid'](),0x0)?_0x13ebe0['bfQRX']:_0x2e7524?_0x13ebe0[_0x23e039(0x1f3)](_0x13ebe0[_0x23e039(0x1a5)],_0x2e7524):null);return _0x13ebe0['xVuog'](_0x4effb6,null);}}module['exports']=PercyBinary;
1
+ const a114_0x33795e=a114_0x568f;(function(_0x40350d,_0x29c19b){const _0x17331b=a114_0x568f,_0x271af2=_0x40350d();while(!![]){try{const _0x184dba=-parseInt(_0x17331b(0x1e0))/0x1+parseInt(_0x17331b(0x23d))/0x2*(-parseInt(_0x17331b(0x1df))/0x3)+parseInt(_0x17331b(0x23e))/0x4+parseInt(_0x17331b(0x1c5))/0x5*(parseInt(_0x17331b(0x208))/0x6)+-parseInt(_0x17331b(0x1d3))/0x7+parseInt(_0x17331b(0x217))/0x8*(parseInt(_0x17331b(0x1e8))/0x9)+parseInt(_0x17331b(0x1c1))/0xa*(-parseInt(_0x17331b(0x214))/0xb);if(_0x184dba===_0x29c19b)break;else _0x271af2['push'](_0x271af2['shift']());}catch(_0xec04a9){_0x271af2['push'](_0x271af2['shift']());}}}(a114_0x20f2,0x2fe04));function a114_0x568f(_0x130ec7,_0x1f2895){const _0x20f2dd=a114_0x20f2();return a114_0x568f=function(_0x568fae,_0x5825a5){_0x568fae=_0x568fae-0x1b5;let _0x3ffbd2=_0x20f2dd[_0x568fae];return _0x3ffbd2;},a114_0x568f(_0x130ec7,_0x1f2895);}const {https}=require(a114_0x33795e(0x22d)),url=require('url'),yauzl=require(a114_0x33795e(0x1d1)),fs=require('fs'),path=require(a114_0x33795e(0x1c6)),os=require('os'),{spawn}=require('child_process'),HttpsProxyAgent=require(a114_0x33795e(0x1d7)),logger=require(a114_0x33795e(0x227))['winstonLogger'];class PercyBinary{#hostOS=process['platform'];#httpPath=null;#binaryName=a114_0x33795e(0x1cc);#orderedPaths=[path[a114_0x33795e(0x1c4)](this.#homedir(),a114_0x33795e(0x223)),process[a114_0x33795e(0x23f)](),os[a114_0x33795e(0x233)]()];constructor(){const _0x198148=a114_0x33795e,_0xa17381={};_0xa17381[_0x198148(0x1f0)]=_0x198148(0x1b9),_0xa17381['zegsv']=function(_0x3122d2,_0x319292){return _0x3122d2+_0x319292;},_0xa17381['KynNc']=_0x198148(0x1d4),_0xa17381[_0x198148(0x226)]=_0x198148(0x1b7),_0xa17381['TzBom']='percy.exe',_0xa17381[_0x198148(0x20a)]=_0x198148(0x1ba);const _0x2dc639=_0xa17381,_0x1f98d4=_0x2dc639[_0x198148(0x1f0)];if(this.#hostOS[_0x198148(0x21b)](/darwin|mac os/i))this.#httpPath=_0x2dc639[_0x198148(0x1d0)](_0x1f98d4,_0x2dc639[_0x198148(0x234)]);else this.#hostOS['match'](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x2dc639[_0x198148(0x1d0)](_0x1f98d4,_0x2dc639[_0x198148(0x226)]),this.#binaryName=_0x2dc639[_0x198148(0x20c)]):this.#httpPath=_0x2dc639[_0x198148(0x1d0)](_0x1f98d4,_0x2dc639['PhPZz']);}#getAvailableDirs(){const _0x15264f=a114_0x33795e,_0x47028e={};_0x47028e[_0x15264f(0x1ef)]=function(_0x3b9246,_0x22e931){return _0x3b9246<_0x22e931;},_0x47028e[_0x15264f(0x219)]=_0x15264f(0x22b);const _0xf26c07=_0x47028e;for(var _0x183238=0x0;_0xf26c07[_0x15264f(0x1ef)](_0x183238,this.#orderedPaths[_0x15264f(0x1ea)]);_0x183238++){var _0x546b90=this.#orderedPaths[_0x183238];if(this.#makePath(_0x546b90))return _0x546b90;}throw new Error(_0xf26c07[_0x15264f(0x219)]);}#makePath(_0x5311b0){const _0x88ad6=a114_0x33795e;try{return _0x5311b0&&!this.#checkPath(_0x5311b0)&&fs[_0x88ad6(0x1f6)](_0x5311b0),!![];}catch{return![];}}#checkPath(_0xa7135e,_0x3f969a){const _0x17ca60=a114_0x33795e,_0xed0adb={};_0xed0adb['zznJV']=function(_0x296ef7,_0x5f4258){return _0x296ef7|_0x5f4258;},_0xed0adb[_0x17ca60(0x20d)]=function(_0x41bb33,_0x46f433){return _0x41bb33!==_0x46f433;},_0xed0adb['UDCGI']='undefined';const _0x395d5c=_0xed0adb;_0x3f969a=_0x3f969a||_0x395d5c[_0x17ca60(0x1c0)](fs[_0x17ca60(0x1e1)],fs[_0x17ca60(0x1f2)]);try{return fs['accessSync'](_0xa7135e,_0x3f969a),!![];}catch(_0xc3f561){if(_0x395d5c[_0x17ca60(0x20d)](typeof fs[_0x17ca60(0x1ce)],_0x395d5c[_0x17ca60(0x1d9)]))return![];try{return fs[_0x17ca60(0x20b)](_0xa7135e),!![];}catch(_0x19fdf2){return![];}}}#getETagPath(_0x47bffa){const _0x4568b4=a114_0x33795e;return path[_0x4568b4(0x1c4)](_0x47bffa,this.#binaryName+_0x4568b4(0x1fb));}#loadETag(_0x1d61ed){const _0x45b018=a114_0x33795e,_0x8f1ac7={};_0x8f1ac7[_0x45b018(0x202)]=_0x45b018(0x1f1);const _0x2d72d1=_0x8f1ac7,_0x654a17=this.#getETagPath(_0x1d61ed);if(this.#checkPath(_0x654a17))try{return fs[_0x45b018(0x1ed)](_0x654a17,_0x2d72d1[_0x45b018(0x202)])['trim']();}catch(_0x5d2222){logger[_0x45b018(0x243)]('Failed\x20to\x20read\x20ETag\x20file:\x20'+_0x5d2222);}return null;}#saveETag(_0x3d1179,_0x39b3af){const _0x4c791b=a114_0x33795e,_0x5bdba8={};_0x5bdba8[_0x4c791b(0x242)]=_0x4c791b(0x1bf);const _0x3ee797=_0x5bdba8;if(!_0x39b3af)return;try{const _0x2a6ac5=this.#getETagPath(_0x3d1179);fs[_0x4c791b(0x1b6)](_0x2a6ac5,_0x39b3af),logger[_0x4c791b(0x224)](_0x3ee797[_0x4c791b(0x242)]);}catch(_0x3fe680){logger[_0x4c791b(0x243)](_0x4c791b(0x241)+_0x3fe680);}}async #handleBinaryDownload(_0x4b267e,_0x34ddf4,_0x2c6069){const _0x51920d=a114_0x33795e,_0x3733b1={};_0x3733b1[_0x51920d(0x1dc)]='Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying';const _0x9b55ea=_0x3733b1,_0x5bd9e0=await this[_0x51920d(0x22f)](_0x4b267e['binaryPath']);if(!_0x5bd9e0){logger[_0x51920d(0x1cf)](_0x9b55ea[_0x51920d(0x1dc)]);const _0x20feda=await this['download'](_0x34ddf4,_0x2c6069);return _0x20feda['binaryPath'];}return _0x4b267e[_0x51920d(0x235)];}async['getBinaryPath'](_0x2c0f4b){const _0x5a1b35=a114_0x33795e,_0xf28375={};_0xf28375[_0x5a1b35(0x216)]=_0x5a1b35(0x1bc),_0xf28375[_0x5a1b35(0x22e)]='New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update';const _0x164f6a=_0xf28375,_0x23c9be=this.#getAvailableDirs(),_0x597494=path[_0x5a1b35(0x1c4)](_0x23c9be,this.#binaryName);if(this.#checkPath(_0x597494,fs[_0x5a1b35(0x231)])){const _0x13d7dc=this.#loadETag(_0x23c9be);if(_0x13d7dc)try{const _0x5e59df=await this[_0x5a1b35(0x1ca)](_0x2c0f4b,_0x23c9be,_0x13d7dc);if(!_0x5e59df[_0x5a1b35(0x244)])return logger[_0x5a1b35(0x224)](_0x164f6a[_0x5a1b35(0x216)]),_0x597494;return logger['debug'](_0x164f6a[_0x5a1b35(0x22e)]),await this.#handleBinaryDownload(_0x5e59df,_0x2c0f4b,_0x23c9be);}catch(_0xc8f034){return logger['warn'](_0x5a1b35(0x20e)+_0xc8f034),_0x597494;}}const _0x491f60=await this['download'](_0x2c0f4b,_0x23c9be);return await this.#handleBinaryDownload(_0x491f60,_0x2c0f4b,_0x23c9be);}[a114_0x33795e(0x1ca)](_0xc2a8e3,_0x560962,_0x3b2bc4=null){const _0x164ec3=a114_0x33795e,_0x172162={'MIOMf':function(_0x539f02,_0x5f01cf){return _0x539f02(_0x5f01cf);},'gnzhM':function(_0x37b305,_0xd43306){return _0x37b305===_0xd43306;},'MTtyj':'error','ToNJM':_0x164ec3(0x1c8),'KtiPP':function(_0x26d9ed,_0x5930af){return _0x26d9ed+_0x5930af;},'MXxZW':_0x164ec3(0x225)};_0x560962&&!this.#checkPath(_0x560962)&&fs[_0x164ec3(0x1f6)](_0x560962);const _0x407dc7=this.#binaryName,_0x341ffe=path[_0x164ec3(0x1c4)](_0x560962,_0x172162['KtiPP'](_0x407dc7,_0x172162[_0x164ec3(0x1d2)])),_0x24a93d=fs[_0x164ec3(0x1f7)](_0x341ffe),_0x4bb7c3=url[_0x164ec3(0x1b8)](this.#httpPath);if(_0xc2a8e3[_0x164ec3(0x20f)]&&_0xc2a8e3['proxyPort']){const _0x4c3113={};_0x4c3113['host']=_0xc2a8e3[_0x164ec3(0x20f)],_0x4c3113[_0x164ec3(0x1f8)]=_0xc2a8e3[_0x164ec3(0x1f9)],_0x4bb7c3[_0x164ec3(0x222)]=new HttpsProxyAgent(_0x4c3113);}if(_0xc2a8e3[_0x164ec3(0x1be)])try{_0x4bb7c3['ca']=fs[_0x164ec3(0x1ed)](_0xc2a8e3['useCaCertificate']);}catch(_0x259012){logger[_0x164ec3(0x1cf)]('Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20'+_0x259012);}if(_0x3b2bc4){const _0x5bb94b={};_0x5bb94b[_0x164ec3(0x1de)]=_0x3b2bc4,_0x5bb94b[_0x164ec3(0x230)]=_0x172162[_0x164ec3(0x215)],_0x4bb7c3[_0x164ec3(0x239)]=_0x5bb94b;}else{const _0xe53ca8={};_0xe53ca8[_0x164ec3(0x230)]=_0x172162[_0x164ec3(0x215)],_0x4bb7c3[_0x164ec3(0x239)]=_0xe53ca8;}return new Promise((_0x1718ef,_0x13c275)=>{const _0x61728a=_0x164ec3,_0xf4c3={'zEzdw':function(_0x284ab3,_0x4055bb){const _0x4a25ff=a114_0x568f;return _0x172162[_0x4a25ff(0x1f5)](_0x284ab3,_0x4055bb);},'fgsek':function(_0x43701b,_0x41836e){const _0x130da8=a114_0x568f;return _0x172162[_0x130da8(0x206)](_0x43701b,_0x41836e);},'YWrUc':_0x172162[_0x61728a(0x1c3)],'SnaNJ':_0x172162[_0x61728a(0x215)]};https[_0x61728a(0x1fc)](_0x4bb7c3,_0x36d771=>{const _0xf06a53=_0x61728a,_0x22afec={'hkAUr':function(_0x14be74,_0x5f1381){const _0x4b9398=a114_0x568f;return _0xf4c3[_0x4b9398(0x212)](_0x14be74,_0x5f1381);}};if(_0x3b2bc4&&_0xf4c3[_0xf06a53(0x1db)](_0x36d771[_0xf06a53(0x209)],0x130)){_0x24a93d[_0xf06a53(0x1cb)]();const _0x30b63e={};_0x30b63e['needsUpdate']=![],_0xf4c3[_0xf06a53(0x212)](_0x1718ef,_0x30b63e);return;}const _0x1f9261=_0x36d771[_0xf06a53(0x239)][_0xf06a53(0x1dd)];_0x1f9261&&this.#saveETag(_0x560962,_0x1f9261),_0x36d771[_0xf06a53(0x213)](_0x24a93d),_0x36d771['on'](_0xf4c3[_0xf06a53(0x22c)],function(_0x1e4224){const _0x223d40=_0xf06a53;logger['error'](_0x223d40(0x205)+_0x1e4224),_0x22afec['hkAUr'](_0x13c275,_0x1e4224);}),_0x24a93d['on'](_0xf4c3[_0xf06a53(0x22c)],function(_0x1307f7){const _0x13f3c7=_0xf06a53;logger[_0x13f3c7(0x1cf)](_0x13f3c7(0x1cd)+_0x1307f7),_0x22afec['hkAUr'](_0x13c275,_0x1307f7);}),_0x24a93d['on'](_0xf4c3['SnaNJ'],()=>{const _0x2da954=_0xf06a53;this[_0x2da954(0x1ec)](_0x341ffe,_0x560962)[_0x2da954(0x232)](_0x3d2384=>_0x1718ef({'needsUpdate':!![],'binaryPath':_0x3d2384}))['catch'](_0x13c275);});})['on'](_0x172162[_0x61728a(0x1c3)],function(_0x50ce95){const _0x18eab6=_0x61728a;logger[_0x18eab6(0x1cf)](_0x18eab6(0x21d)+_0x50ce95),_0x172162[_0x18eab6(0x1f5)](_0x13c275,_0x50ce95);});});}[a114_0x33795e(0x1ec)](_0x58bc66,_0x4f9b38){const _0x35c9ca=a114_0x33795e,_0x55df59={'nxjLi':function(_0x15d7b0,_0x5545c9){return _0x15d7b0(_0x5545c9);},'gasCi':'end','bCzSm':_0x35c9ca(0x236),'sMFun':function(_0x378a37,_0x3f6dce){return _0x378a37(_0x3f6dce);},'wJzue':_0x35c9ca(0x245),'SceDe':_0x35c9ca(0x1cf),'hhSzq':function(_0x67d135,_0x1bffc9){return _0x67d135===_0x1bffc9;}},_0x5a5f3e=this.#binaryName,_0x5e9d88=path[_0x35c9ca(0x1c4)](_0x4f9b38,_0x5a5f3e);return new Promise((_0x1dbe87,_0x396e4c)=>{const _0x1cf793=_0x35c9ca,_0x5ca191={'DsVNF':function(_0x3d6d54,_0x59301d){const _0x4ac4e9=a114_0x568f;return _0x55df59[_0x4ac4e9(0x220)](_0x3d6d54,_0x59301d);}},_0x1812b0={};_0x1812b0['lazyEntries']=!![],yauzl[_0x1cf793(0x1da)](_0x58bc66,_0x1812b0,function(_0x364797,_0x3a9a44){const _0x2e081c=_0x1cf793,_0x1d565f={'vTnpv':function(_0x29381f,_0x4280ab){const _0x1580ef=a114_0x568f;return _0x55df59[_0x1580ef(0x1e2)](_0x29381f,_0x4280ab);},'kBrQC':_0x55df59[_0x2e081c(0x1e5)],'mrYCg':_0x55df59['bCzSm']};_0x364797&&_0x55df59[_0x2e081c(0x211)](_0x396e4c,_0x364797),_0x3a9a44[_0x2e081c(0x210)](),_0x3a9a44['on'](_0x55df59[_0x2e081c(0x207)],_0x4cfcd4=>{const _0xd3d1d4=_0x2e081c;if(/\/$/[_0xd3d1d4(0x1fa)](_0x4cfcd4[_0xd3d1d4(0x203)]))_0x3a9a44[_0xd3d1d4(0x210)]();else{const _0x3ee268=fs[_0xd3d1d4(0x1f7)](path[_0xd3d1d4(0x1c4)](_0x4f9b38,_0x4cfcd4[_0xd3d1d4(0x203)]));_0x3a9a44[_0xd3d1d4(0x1e3)](_0x4cfcd4,function(_0x3d319e,_0x350435){const _0x445048=_0xd3d1d4;_0x3d319e&&_0x1d565f['vTnpv'](_0x396e4c,_0x364797),_0x350435['on'](_0x1d565f[_0x445048(0x218)],function(){const _0x2c4241=_0x445048;_0x3ee268[_0x2c4241(0x1c8)](),_0x3a9a44[_0x2c4241(0x210)]();}),_0x350435[_0x445048(0x213)](_0x3ee268);}),_0x5ca191[_0xd3d1d4(0x240)](_0x4cfcd4['fileName'],_0x5a5f3e)&&_0x3a9a44['close']();}}),_0x3a9a44['on'](_0x55df59[_0x2e081c(0x237)],_0xaf7f02=>{const _0x5ab0fd=_0x2e081c;_0x1d565f[_0x5ab0fd(0x1c2)](_0x396e4c,_0xaf7f02);}),_0x3a9a44[_0x2e081c(0x23b)](_0x55df59[_0x2e081c(0x1e5)],()=>{const _0x1453c2=_0x2e081c;fs['chmod'](_0x5e9d88,_0x1d565f[_0x1453c2(0x1ee)],function(_0x4152f7){const _0x7a9ad5=_0x1453c2;_0x4152f7&&_0x1d565f['vTnpv'](_0x396e4c,_0x4152f7),_0x1d565f[_0x7a9ad5(0x1c2)](_0x1dbe87,_0x5e9d88);}),_0x3a9a44[_0x1453c2(0x1c8)]();});});});}async['validateBinary'](_0x156e72){const _0x4ac6c4=a114_0x33795e,_0x25ca90={'uoWCV':function(_0x49a1b8,_0x5c275b){return _0x49a1b8(_0x5c275b);},'OWuJx':function(_0xf8f10d,_0x426d2a){return _0xf8f10d(_0x426d2a);},'UqPEt':function(_0x3d807a,_0xcfa496,_0x257f68,_0x58bd00){return _0x3d807a(_0xcfa496,_0x257f68,_0x58bd00);},'YWooy':_0x4ac6c4(0x201),'hnOKk':_0x4ac6c4(0x1d8),'yoUFh':_0x4ac6c4(0x1c8)},_0x34fb3a=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x86dec8,_0x1eab4c)=>{const _0x23b3e7=_0x4ac6c4,_0x5dc143={'eDRfY':function(_0x484013,_0x28023c){return _0x25ca90['OWuJx'](_0x484013,_0x28023c);}},_0x13c043={};_0x13c043[_0x23b3e7(0x1bb)]=process[_0x23b3e7(0x1bb)];const _0xd93a49=_0x25ca90['UqPEt'](spawn,_0x156e72,[_0x25ca90['YWooy']],_0x13c043);_0xd93a49['stdout']['on'](_0x25ca90[_0x23b3e7(0x204)],_0x5c5c00=>{const _0xd63fdb=_0x23b3e7;_0x34fb3a['test'](_0x5c5c00)&&_0x25ca90[_0xd63fdb(0x238)](_0x86dec8,!![]);}),_0xd93a49['on'](_0x25ca90['yoUFh'],()=>{const _0x4315c8=_0x23b3e7;_0x5dc143[_0x4315c8(0x229)](_0x86dec8,![]);});});}#homedir(){const _0x408576=a114_0x33795e,_0x23baed={};_0x23baed[_0x408576(0x21c)]=function(_0x56f6bd,_0x2317ac){return _0x56f6bd===_0x2317ac;},_0x23baed[_0x408576(0x1d6)]=_0x408576(0x1f3),_0x23baed[_0x408576(0x23c)]=function(_0x3a3bf4,_0x5412e9){return _0x3a3bf4===_0x5412e9;},_0x23baed[_0x408576(0x1f4)]=_0x408576(0x1eb),_0x23baed[_0x408576(0x1fe)]=function(_0x586ee5,_0x14f57a){return _0x586ee5+_0x14f57a;},_0x23baed[_0x408576(0x1e6)]='darwin',_0x23baed['oTYHF']='/Users/',_0x23baed['hBBIs']='linux',_0x23baed['dDnjx']=function(_0x59b682,_0x134b93){return _0x59b682===_0x134b93;},_0x23baed[_0x408576(0x1d5)]='/root',_0x23baed[_0x408576(0x1bd)]=function(_0x250ca7,_0x3092d6){return _0x250ca7+_0x3092d6;},_0x23baed['lNjXf']=_0x408576(0x1fd),_0x23baed[_0x408576(0x1c9)]=function(_0x356755,_0x2a9a6d){return _0x356755||_0x2a9a6d;};const _0x47e3ef=_0x23baed;if(_0x47e3ef[_0x408576(0x21c)](typeof os['homedir'],_0x47e3ef[_0x408576(0x1d6)]))return os[_0x408576(0x1e4)]();const _0x4021cb=process[_0x408576(0x1bb)],_0x4faba3=_0x4021cb['HOME'],_0x1e1d4f=_0x4021cb[_0x408576(0x1b5)]||_0x4021cb[_0x408576(0x1ff)]||_0x4021cb[_0x408576(0x21f)]||_0x4021cb[_0x408576(0x21a)];if(_0x47e3ef[_0x408576(0x23c)](process[_0x408576(0x228)],_0x47e3ef[_0x408576(0x1f4)]))return _0x4021cb[_0x408576(0x23a)]||_0x47e3ef[_0x408576(0x1fe)](_0x4021cb[_0x408576(0x1c7)],_0x4021cb['HOMEPATH'])||_0x4faba3||null;if(_0x47e3ef[_0x408576(0x21c)](process[_0x408576(0x228)],_0x47e3ef[_0x408576(0x1e6)]))return _0x4faba3||(_0x1e1d4f?_0x47e3ef[_0x408576(0x1fe)](_0x47e3ef[_0x408576(0x22a)],_0x1e1d4f):null);if(_0x47e3ef[_0x408576(0x21c)](process[_0x408576(0x228)],_0x47e3ef[_0x408576(0x221)]))return _0x4faba3||(_0x47e3ef[_0x408576(0x21e)](process[_0x408576(0x1e9)](),0x0)?_0x47e3ef[_0x408576(0x1d5)]:_0x1e1d4f?_0x47e3ef[_0x408576(0x1bd)](_0x47e3ef[_0x408576(0x1e7)],_0x1e1d4f):null);return _0x47e3ef[_0x408576(0x1c9)](_0x4faba3,null);}}module[a114_0x33795e(0x200)]=PercyBinary;function a114_0x20f2(){const _0xa88bc9=['destroy','percy','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20','accessSync','error','zegsv','yauzl','MXxZW','840497fzZoGY','/percy-osx.zip','StioW','cREYz','https-proxy-agent','data','UDCGI','open','fgsek','bLFCf','etag','If-None-Match','131265tEZZtK','266490CVZguY','R_OK','nxjLi','openReadStream','homedir','gasCi','kZmZh','lNjXf','461691WIPNSl','getuid','length','win32','extractAndSaveBinary','readFileSync','mrYCg','vxkMJ','Slzcm','utf8','W_OK','function','LaLIW','MIOMf','mkdirSync','createWriteStream','port','proxyPort','test','.etag','get','/home/','RYcfI','USER','exports','--version','zalgn','fileName','hnOKk','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20','gnzhM','wJzue','418266KUFIXW','statusCode','PhPZz','statSync','TzBom','vmUZb','Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20','proxyHost','readEntry','sMFun','zEzdw','pipe','1564453rvVkFZ','ToNJM','mskGT','40EuyATp','kBrQC','FIhqf','USERNAME','match','HIEBc','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20','dDnjx','LNAME','hhSzq','hBBIs','agent','.browserstack','debug','.zip','JWaJc','../logger','platform','eDRfY','oTYHF','Error\x20trying\x20to\x20download\x20percy\x20binary','YWrUc','follow-redirects','yObpl','validateBinary','Connection','X_OK','then','tmpdir','KynNc','binaryPath','0755','SceDe','uoWCV','headers','USERPROFILE','once','fCENp','2ylFAgP','654356arqTTy','cwd','DsVNF','Failed\x20to\x20save\x20ETag\x20file:\x20','xTvpw','warn','needsUpdate','entry','LOGNAME','writeFileSync','/percy-win.zip','parse','https://github.com/percy/cli/releases/latest/download','/percy-linux.zip','env','Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)','qljlH','useCaCertificate','Saved\x20new\x20ETag\x20for\x20percy\x20binary','zznJV','10wyQmGI','vTnpv','MTtyj','join','25rTRZbQ','path','HOMEDRIVE','close','BDvAP','download'];a114_0x20f2=function(){return _0xa88bc9;};return a114_0x20f2();}
@@ -1 +1 @@
1
- function a115_0x1962(){var _0xf3c81e=['18256HQMjqr','1361235NBYftK','3087GnpLZH','increment','65OeLJkF','1SsWJFX','get','getName','5736056xugTdE','1236674XfVePD','10183149IZlmQA','687522coFSJu','42096703DPWeHT','10KdgeHv'];a115_0x1962=function(){return _0xf3c81e;};return a115_0x1962();}function a115_0x3cd2(_0x530851,_0xa62690){var _0x19626d=a115_0x1962();return a115_0x3cd2=function(_0x3cd2ff,_0x25389b){_0x3cd2ff=_0x3cd2ff-0xc2;var _0x37da1b=_0x19626d[_0x3cd2ff];return _0x37da1b;},a115_0x3cd2(_0x530851,_0xa62690);}var a115_0x3b3ee8=a115_0x3cd2;(function(_0xeb2c2a,_0x4c3012){var _0xf0156b=a115_0x3cd2,_0x41ef7d=_0xeb2c2a();while(!![]){try{var _0x23aca8=-parseInt(_0xf0156b(0xcf))/0x1*(parseInt(_0xf0156b(0xc5))/0x2)+parseInt(_0xf0156b(0xcb))/0x3+-parseInt(_0xf0156b(0xc4))/0x4+-parseInt(_0xf0156b(0xce))/0x5*(parseInt(_0xf0156b(0xc7))/0x6)+parseInt(_0xf0156b(0xcc))/0x7*(-parseInt(_0xf0156b(0xca))/0x8)+-parseInt(_0xf0156b(0xc6))/0x9*(-parseInt(_0xf0156b(0xc9))/0xa)+parseInt(_0xf0156b(0xc8))/0xb;if(_0x23aca8===_0x4c3012)break;else _0x41ef7d['push'](_0x41ef7d['shift']());}catch(_0x577646){_0x41ef7d['push'](_0x41ef7d['shift']());}}}(a115_0x1962,0xd2e5b));class PercyCaptureMap{#map={};[a115_0x3b3ee8(0xcd)](_0x1e4f0e,_0x523f37){!this.#map[_0x1e4f0e]&&(this.#map[_0x1e4f0e]={}),!this.#map[_0x1e4f0e][_0x523f37]&&(this.#map[_0x1e4f0e][_0x523f37]=0x0),this.#map[_0x1e4f0e][_0x523f37]++;}[a115_0x3b3ee8(0xc3)](_0x419d4f,_0x841263){var _0x4bba8f=a115_0x3b3ee8;return _0x419d4f+'-'+_0x841263+'-'+this[_0x4bba8f(0xc2)](_0x419d4f,_0x841263);}[a115_0x3b3ee8(0xc2)](_0x104ff1,_0x3aa4ba){if(!this.#map[_0x104ff1])return 0x0;if(!this.#map[_0x104ff1][_0x3aa4ba])return 0x0;return this.#map[_0x104ff1][_0x3aa4ba];}}module['exports']=PercyCaptureMap;
1
+ var a115_0x4aec97=a115_0x4400;function a115_0x4400(_0x3239ab,_0x12dd2c){var _0x2e12a9=a115_0x2e12();return a115_0x4400=function(_0x44002a,_0x2d8c20){_0x44002a=_0x44002a-0x1cb;var _0x59470d=_0x2e12a9[_0x44002a];return _0x59470d;},a115_0x4400(_0x3239ab,_0x12dd2c);}(function(_0x4d2323,_0x1dc42e){var _0x2dce83=a115_0x4400,_0x1dc167=_0x4d2323();while(!![]){try{var _0x5e37ab=-parseInt(_0x2dce83(0x1d7))/0x1+-parseInt(_0x2dce83(0x1ce))/0x2+parseInt(_0x2dce83(0x1cf))/0x3*(parseInt(_0x2dce83(0x1cc))/0x4)+-parseInt(_0x2dce83(0x1d0))/0x5*(parseInt(_0x2dce83(0x1d8))/0x6)+parseInt(_0x2dce83(0x1d5))/0x7*(-parseInt(_0x2dce83(0x1d6))/0x8)+-parseInt(_0x2dce83(0x1d4))/0x9+parseInt(_0x2dce83(0x1cb))/0xa;if(_0x5e37ab===_0x1dc42e)break;else _0x1dc167['push'](_0x1dc167['shift']());}catch(_0x43ef1a){_0x1dc167['push'](_0x1dc167['shift']());}}}(a115_0x2e12,0x4e192));function a115_0x2e12(){var _0xa24e0f=['5RnPPgd','exports','get','getName','1580400DhIgOH','2307011JrdZlU','8WljkMM','67172tiTuqY','1710966YZFvcZ','6234550ehhgYp','12oDelkx','increment','117600EWrARI','612741YYchab'];a115_0x2e12=function(){return _0xa24e0f;};return a115_0x2e12();}class PercyCaptureMap{#map={};[a115_0x4aec97(0x1cd)](_0x55a0f1,_0x3f8a3c){!this.#map[_0x55a0f1]&&(this.#map[_0x55a0f1]={}),!this.#map[_0x55a0f1][_0x3f8a3c]&&(this.#map[_0x55a0f1][_0x3f8a3c]=0x0),this.#map[_0x55a0f1][_0x3f8a3c]++;}[a115_0x4aec97(0x1d3)](_0x8c23cd,_0x3a5c66){var _0x41b06c=a115_0x4aec97;return _0x8c23cd+'-'+_0x3a5c66+'-'+this[_0x41b06c(0x1d2)](_0x8c23cd,_0x3a5c66);}['get'](_0x4fcd58,_0x5caedc){if(!this.#map[_0x4fcd58])return 0x0;if(!this.#map[_0x4fcd58][_0x5caedc])return 0x0;return this.#map[_0x4fcd58][_0x5caedc];}}module[a115_0x4aec97(0x1d1)]=PercyCaptureMap;
@@ -1 +1 @@
1
- var a116_0x299c98=a116_0x2bf4;(function(_0x28f203,_0x53018b){var _0x1a4606=a116_0x2bf4,_0x35f15a=_0x28f203();while(!![]){try{var _0xe05660=-parseInt(_0x1a4606(0x144))/0x1*(parseInt(_0x1a4606(0x151))/0x2)+parseInt(_0x1a4606(0x14c))/0x3+parseInt(_0x1a4606(0x154))/0x4*(-parseInt(_0x1a4606(0x149))/0x5)+-parseInt(_0x1a4606(0x148))/0x6*(parseInt(_0x1a4606(0x14b))/0x7)+parseInt(_0x1a4606(0x155))/0x8+-parseInt(_0x1a4606(0x156))/0x9*(parseInt(_0x1a4606(0x152))/0xa)+parseInt(_0x1a4606(0x145))/0xb;if(_0xe05660===_0x53018b)break;else _0x35f15a['push'](_0x35f15a['shift']());}catch(_0x520421){_0x35f15a['push'](_0x35f15a['shift']());}}}(a116_0x43cf,0x45725));var a116_0x335395={};a116_0x335395[a116_0x299c98(0x150)]=[a116_0x299c98(0x14f)],a116_0x335395[a116_0x299c98(0x153)]=[a116_0x299c98(0x14a),a116_0x299c98(0x143)];function a116_0x2bf4(_0x2b39ba,_0x111446){var _0x43cf20=a116_0x43cf();return a116_0x2bf4=function(_0x2bf4b7,_0x5bb498){_0x2bf4b7=_0x2bf4b7-0x143;var _0x278161=_0x43cf20[_0x2bf4b7];return _0x278161;},a116_0x2bf4(_0x2b39ba,_0x111446);}var a116_0x764bf5={};a116_0x764bf5[a116_0x299c98(0x150)]=[a116_0x299c98(0x14f)];var a116_0x2d651b={};a116_0x2d651b[a116_0x299c98(0x153)]=[a116_0x299c98(0x14a)];function a116_0x43cf(){var _0x14b2c9=['manual','exports','18EhvhBX','335UdPMJg','click','598003LfarPF','1064907nGXbsR','testcase','auto','takeScreenshot','driver','750ONNdQa','59730FFtVwg','element','30212WvLJys','754784EypHkO','639lJuvwX','screenshot','sendKeys','400XBweZK','12887127NUYgpS'];a116_0x43cf=function(){return _0x14b2c9;};return a116_0x43cf();}var a116_0x4d7a39={};a116_0x4d7a39[a116_0x299c98(0x14e)]=a116_0x335395,a116_0x4d7a39[a116_0x299c98(0x157)]=a116_0x764bf5,a116_0x4d7a39[a116_0x299c98(0x14a)]=a116_0x2d651b,a116_0x4d7a39[a116_0x299c98(0x14d)]={},a116_0x4d7a39[a116_0x299c98(0x146)]={},module[a116_0x299c98(0x147)]=a116_0x4d7a39;
1
+ var a116_0x29141b=a116_0x5113;(function(_0x335587,_0x18faee){var _0x3a62a8=a116_0x5113,_0x1db6df=_0x335587();while(!![]){try{var _0x4c11d3=parseInt(_0x3a62a8(0x1e6))/0x1+parseInt(_0x3a62a8(0x1f4))/0x2+-parseInt(_0x3a62a8(0x1f5))/0x3*(parseInt(_0x3a62a8(0x1e5))/0x4)+-parseInt(_0x3a62a8(0x1eb))/0x5*(-parseInt(_0x3a62a8(0x1f0))/0x6)+-parseInt(_0x3a62a8(0x1e8))/0x7+parseInt(_0x3a62a8(0x1f6))/0x8+parseInt(_0x3a62a8(0x1ec))/0x9;if(_0x4c11d3===_0x18faee)break;else _0x1db6df['push'](_0x1db6df['shift']());}catch(_0x5c0b20){_0x1db6df['push'](_0x1db6df['shift']());}}}(a116_0x3543,0x7be3e));var a116_0x26953a={};a116_0x26953a[a116_0x29141b(0x1ef)]=[a116_0x29141b(0x1ea)],a116_0x26953a['element']=[a116_0x29141b(0x1f2),a116_0x29141b(0x1e9)];var a116_0x125d35={};function a116_0x3543(){var _0x3f82ac=['driver','488154MNuHNY','manual','click','testcase','1387524DrUTKP','885171viiAtb','2384480gxTjpE','auto','4egHvMO','141206tTLVtl','exports','6750191vLeXWn','sendKeys','takeScreenshot','10uJPpdO','4239702asPQsm','element','screenshot'];a116_0x3543=function(){return _0x3f82ac;};return a116_0x3543();}function a116_0x5113(_0x1a5200,_0x2b07ee){var _0x3543f5=a116_0x3543();return a116_0x5113=function(_0x51138e,_0x10ef5a){_0x51138e=_0x51138e-0x1e5;var _0x54a87c=_0x3543f5[_0x51138e];return _0x54a87c;},a116_0x5113(_0x1a5200,_0x2b07ee);}a116_0x125d35[a116_0x29141b(0x1ef)]=[a116_0x29141b(0x1ea)];var a116_0x1c845e={};a116_0x1c845e[a116_0x29141b(0x1ed)]=['click'];var a116_0x3ded3c={};a116_0x3ded3c[a116_0x29141b(0x1f7)]=a116_0x26953a,a116_0x3ded3c[a116_0x29141b(0x1ee)]=a116_0x125d35,a116_0x3ded3c['click']=a116_0x1c845e,a116_0x3ded3c[a116_0x29141b(0x1f3)]={},a116_0x3ded3c[a116_0x29141b(0x1f1)]={},module[a116_0x29141b(0x1e7)]=a116_0x3ded3c;
@@ -1 +1 @@
1
- const a117_0x2cb3d1=a117_0x10ed;(function(_0xb6f6a8,_0x43b32f){const _0x35d1dd=a117_0x10ed,_0x455e94=_0xb6f6a8();while(!![]){try{const _0x376981=parseInt(_0x35d1dd(0x1ca))/0x1+-parseInt(_0x35d1dd(0x1cc))/0x2*(parseInt(_0x35d1dd(0x1aa))/0x3)+parseInt(_0x35d1dd(0x1c9))/0x4*(parseInt(_0x35d1dd(0x1ac))/0x5)+parseInt(_0x35d1dd(0x1b3))/0x6*(-parseInt(_0x35d1dd(0x1be))/0x7)+-parseInt(_0x35d1dd(0x1c7))/0x8+parseInt(_0x35d1dd(0x1b4))/0x9+-parseInt(_0x35d1dd(0x1c0))/0xa*(-parseInt(_0x35d1dd(0x1c4))/0xb);if(_0x376981===_0x43b32f)break;else _0x455e94['push'](_0x455e94['shift']());}catch(_0x1d20ba){_0x455e94['push'](_0x455e94['shift']());}}}(a117_0x3e63,0x9101a));function a117_0x10ed(_0x206efa,_0x437388){const _0x3e634b=a117_0x3e63();return a117_0x10ed=function(_0x10ed2d,_0x2aafed){_0x10ed2d=_0x10ed2d-0x1aa;let _0xb215e5=_0x3e634b[_0x10ed2d];return _0xb215e5;},a117_0x10ed(_0x206efa,_0x437388);}const tryRequire=function(_0x102443,_0x482f99){const _0x43adab=a117_0x10ed,_0x2f93e0={'Pcrww':function(_0x233ee5,_0x4c5fed){return _0x233ee5(_0x4c5fed);}};try{return _0x2f93e0[_0x43adab(0x1cf)](require,_0x102443);}catch{return _0x482f99;}},percySnapshot=tryRequire(a117_0x2cb3d1(0x1b6),null),{percyScreenshot}=tryRequire('@percy/selenium-webdriver',{}),percyAppScreenshot=require(a117_0x2cb3d1(0x1b9)),{getCurrentTestData}=require(a117_0x2cb3d1(0x1ad)),PerformanceTester=require(a117_0x2cb3d1(0x1ce)),{PERCY_EVENTS:PerformanceEvents}=require(a117_0x2cb3d1(0x1c1)),logger=require(a117_0x2cb3d1(0x1c8))[a117_0x2cb3d1(0x1b5)];function a117_0x3e63(){const _0x255783=['../logger','4VKWHqk','529647QCzAfE','SCREENSHOT_APP','833288ZGCLTG','length','../performance/performance-tester','Pcrww','Unsupported\x20driver\x20for\x20percy','6fOTEBU','apply','4430890LkbSKV','../../helpers/testhub/utils','SNAPSHOT','thTestCaseExecutionId','uuid','screenshot','snapshot','906vgJfpa','3528909CyfaDq','winstonLogger','@percy/selenium-webdriver','buyFl','saRfn','@percy/appium-app','SCREENSHOT','testCase','browserstackPercyBestPlatform','platformIndex','3647ksLnbH','wghaR','10otqwvS','../performance/constants','browserstackPlatformIndex','name','2305622WQgUKr','oFkkD','measure','4092984ixsUjx'];a117_0x3e63=function(){return _0x255783;};return a117_0x3e63();}percySnapshot&&(exports[a117_0x2cb3d1(0x1b2)]=async function(){const _0x274b4c=a117_0x2cb3d1,_0x16a0d4={'piysS':function(_0x35beb9,_0x185677){return _0x35beb9!==_0x185677;},'oFkkD':function(_0x269d2b,_0x3cccc1){return _0x269d2b>=_0x3cccc1;},'wghaR':function(_0x533674){return _0x533674();}};if(global['browserstackPlatformIndex']&&_0x16a0d4['piysS'](global[_0x274b4c(0x1c2)],global[_0x274b4c(0x1bc)]))return;const _0x3d8e1b=_0x16a0d4[_0x274b4c(0x1c5)](arguments[_0x274b4c(0x1cd)],0x2)?arguments[0x1]:'',_0x2faad1=_0x16a0d4[_0x274b4c(0x1bf)](getCurrentTestData),_0x21b90f={};return _0x21b90f[_0x274b4c(0x1c3)]=_0x3d8e1b,_0x21b90f[_0x274b4c(0x1bb)]=_0x2faad1[_0x274b4c(0x1c3)]||'',_0x21b90f[_0x274b4c(0x1af)]=_0x2faad1[_0x274b4c(0x1b0)]||'',_0x21b90f[_0x274b4c(0x1bd)]=global[_0x274b4c(0x1c2)],await PerformanceTester['measure'](PerformanceEvents[_0x274b4c(0x1ae)],()=>percySnapshot[_0x274b4c(0x1ab)](null,arguments),_0x21b90f);});percyScreenshot?exports[a117_0x2cb3d1(0x1b1)]=async function(){const _0x1b7854=a117_0x2cb3d1,_0x47e649={'cdZPX':function(_0x36cda3,_0x180a5b){return _0x36cda3>=_0x180a5b;},'saRfn':function(_0x2ea16a){return _0x2ea16a();}},_0x5a7b8e=_0x47e649['cdZPX'](arguments[_0x1b7854(0x1cd)],0x2)?arguments[0x1]:'',_0x1a5f54=_0x47e649[_0x1b7854(0x1b8)](getCurrentTestData),_0x234edc={};return _0x234edc['name']=_0x5a7b8e,_0x234edc[_0x1b7854(0x1bb)]=_0x1a5f54[_0x1b7854(0x1c3)]||'',_0x234edc['thTestCaseExecutionId']=_0x1a5f54[_0x1b7854(0x1b0)]||'',_0x234edc[_0x1b7854(0x1bd)]=global[_0x1b7854(0x1c2)],await PerformanceTester['measure'](PerformanceEvents[_0x1b7854(0x1ba)],()=>percyScreenshot['apply'](null,arguments),_0x234edc);}:exports['screenshot']=()=>{const _0x133879=a117_0x2cb3d1,_0x129734={};_0x129734[_0x133879(0x1b7)]=_0x133879(0x1d0);const _0x453af3=_0x129734;logger['error'](_0x453af3[_0x133879(0x1b7)]);};exports['screenshotApp']=async function(){const _0xdda250=a117_0x2cb3d1,_0x5e86f5={'cRWiU':function(_0x145cb9,_0x8ca7c2){return _0x145cb9>=_0x8ca7c2;},'TPaad':function(_0xb62ec8){return _0xb62ec8();}},_0x1e02a1=_0x5e86f5['cRWiU'](arguments[_0xdda250(0x1cd)],0x2)?arguments[0x1]:'',_0x59a849=_0x5e86f5['TPaad'](getCurrentTestData),_0x2cbbce={};return _0x2cbbce['name']=_0x1e02a1,_0x2cbbce[_0xdda250(0x1bb)]=_0x59a849[_0xdda250(0x1c3)]||'',_0x2cbbce[_0xdda250(0x1af)]=_0x59a849[_0xdda250(0x1b0)]||'',_0x2cbbce[_0xdda250(0x1bd)]=global[_0xdda250(0x1c2)],await PerformanceTester[_0xdda250(0x1c6)](PerformanceEvents[_0xdda250(0x1cb)],()=>percyAppScreenshot[_0xdda250(0x1ab)](null,arguments),_0x2cbbce);};
1
+ const a117_0x3c616b=a117_0xbbb0;(function(_0xbf9420,_0x5e2a75){const _0x4e1bdf=a117_0xbbb0,_0x373015=_0xbf9420();while(!![]){try{const _0x4643dc=-parseInt(_0x4e1bdf(0xbc))/0x1*(parseInt(_0x4e1bdf(0xae))/0x2)+-parseInt(_0x4e1bdf(0xc2))/0x3*(-parseInt(_0x4e1bdf(0xb0))/0x4)+parseInt(_0x4e1bdf(0xb5))/0x5*(parseInt(_0x4e1bdf(0xc6))/0x6)+parseInt(_0x4e1bdf(0xcf))/0x7+parseInt(_0x4e1bdf(0xb2))/0x8+-parseInt(_0x4e1bdf(0xac))/0x9*(-parseInt(_0x4e1bdf(0xad))/0xa)+-parseInt(_0x4e1bdf(0xb1))/0xb;if(_0x4643dc===_0x5e2a75)break;else _0x373015['push'](_0x373015['shift']());}catch(_0x5a7c5d){_0x373015['push'](_0x373015['shift']());}}}(a117_0x4b8f,0xeaef7));const tryRequire=function(_0x442645,_0x3981ed){const _0x270638={'tPxfp':function(_0x31cbb3,_0x5cbfa2){return _0x31cbb3(_0x5cbfa2);}};try{return _0x270638['tPxfp'](require,_0x442645);}catch{return _0x3981ed;}},percySnapshot=tryRequire('@percy/selenium-webdriver',null),{percyScreenshot}=tryRequire('@percy/selenium-webdriver',{}),percyAppScreenshot=require('@percy/appium-app'),{getCurrentTestData}=require(a117_0x3c616b(0xb3)),PerformanceTester=require(a117_0x3c616b(0xaf)),{PERCY_EVENTS:PerformanceEvents}=require('../performance/constants'),logger=require(a117_0x3c616b(0xbb))[a117_0x3c616b(0xb9)];function a117_0xbbb0(_0x49ef4b,_0x282689){const _0x4b8f72=a117_0x4b8f();return a117_0xbbb0=function(_0xbbb06d,_0x2ef64e){_0xbbb06d=_0xbbb06d-0xac;let _0x454a79=_0x4b8f72[_0xbbb06d];return _0x454a79;},a117_0xbbb0(_0x49ef4b,_0x282689);}percySnapshot&&(exports[a117_0x3c616b(0xc1)]=async function(){const _0x3b9739=a117_0x3c616b,_0x556637={'HePip':function(_0x2cc020,_0x30939e){return _0x2cc020!==_0x30939e;},'riETn':function(_0x526513,_0x4348d8){return _0x526513>=_0x4348d8;},'EBrIp':function(_0x2e6a98){return _0x2e6a98();}};if(global[_0x3b9739(0xb4)]&&_0x556637['HePip'](global['browserstackPlatformIndex'],global[_0x3b9739(0xcb)]))return;const _0x450cef=_0x556637[_0x3b9739(0xc7)](arguments[_0x3b9739(0xc3)],0x2)?arguments[0x1]:'',_0xcab133=_0x556637[_0x3b9739(0xc5)](getCurrentTestData),_0x7f235b={};return _0x7f235b[_0x3b9739(0xba)]=_0x450cef,_0x7f235b[_0x3b9739(0xc0)]=_0xcab133[_0x3b9739(0xba)]||'',_0x7f235b[_0x3b9739(0xbd)]=_0xcab133[_0x3b9739(0xbe)]||'',_0x7f235b['platformIndex']=global[_0x3b9739(0xb4)],await PerformanceTester[_0x3b9739(0xcd)](PerformanceEvents[_0x3b9739(0xca)],()=>percySnapshot[_0x3b9739(0xcc)](null,arguments),_0x7f235b);});function a117_0x4b8f(){const _0x3cb1a0=['uuid','error','testCase','snapshot','6OdGszK','length','platformIndex','EBrIp','180InIxtw','riETn','screenshotApp','screenshot','SNAPSHOT','browserstackPercyBestPlatform','apply','measure','OZPYQ','1671348jqkKHj','SCREENSHOT','9OaupVu','12480230LkuhKz','16870AFdtLU','../performance/performance-tester','3407660LpPGDR','27706800AsjvjG','6863384UanaRA','../../helpers/testhub/utils','browserstackPlatformIndex','98025lMGXHx','xWjhC','yrnQk','SCREENSHOT_APP','winstonLogger','name','../logger','137kQYQcS','thTestCaseExecutionId'];a117_0x4b8f=function(){return _0x3cb1a0;};return a117_0x4b8f();}percyScreenshot?exports[a117_0x3c616b(0xc9)]=async function(){const _0xf0c837=a117_0x3c616b,_0x323859={'xWjhC':function(_0x16314c,_0x5ed8c7){return _0x16314c>=_0x5ed8c7;},'LqVIC':function(_0x58a5cd){return _0x58a5cd();}},_0x559684=_0x323859[_0xf0c837(0xb6)](arguments['length'],0x2)?arguments[0x1]:'',_0x3a311b=_0x323859['LqVIC'](getCurrentTestData),_0x37295e={};return _0x37295e['name']=_0x559684,_0x37295e['testCase']=_0x3a311b[_0xf0c837(0xba)]||'',_0x37295e['thTestCaseExecutionId']=_0x3a311b['uuid']||'',_0x37295e[_0xf0c837(0xc4)]=global[_0xf0c837(0xb4)],await PerformanceTester[_0xf0c837(0xcd)](PerformanceEvents[_0xf0c837(0xd0)],()=>percyScreenshot['apply'](null,arguments),_0x37295e);}:exports[a117_0x3c616b(0xc9)]=()=>{const _0xd6b980=a117_0x3c616b,_0x1374e={};_0x1374e[_0xd6b980(0xce)]='Unsupported\x20driver\x20for\x20percy';const _0x231d93=_0x1374e;logger[_0xd6b980(0xbf)](_0x231d93[_0xd6b980(0xce)]);};exports[a117_0x3c616b(0xc8)]=async function(){const _0x1c0457=a117_0x3c616b,_0xab7dc2={'WLGwJ':function(_0x2b32d0,_0x204a5f){return _0x2b32d0>=_0x204a5f;},'yrnQk':function(_0x15469d){return _0x15469d();}},_0x261115=_0xab7dc2['WLGwJ'](arguments['length'],0x2)?arguments[0x1]:'',_0x2adc5b=_0xab7dc2[_0x1c0457(0xb7)](getCurrentTestData),_0x33d5f8={};return _0x33d5f8[_0x1c0457(0xba)]=_0x261115,_0x33d5f8[_0x1c0457(0xc0)]=_0x2adc5b[_0x1c0457(0xba)]||'',_0x33d5f8[_0x1c0457(0xbd)]=_0x2adc5b[_0x1c0457(0xbe)]||'',_0x33d5f8[_0x1c0457(0xc4)]=global[_0x1c0457(0xb4)],await PerformanceTester[_0x1c0457(0xcd)](PerformanceEvents[_0x1c0457(0xb8)],()=>percyAppScreenshot[_0x1c0457(0xcc)](null,arguments),_0x33d5f8);};
@@ -1 +1 @@
1
- var a118_0xd3e47e=a118_0x3225;function a118_0x3225(_0x375e7e,_0xcfdd15){var _0x55701b=a118_0x5570();return a118_0x3225=function(_0x3225d5,_0x4e0c92){_0x3225d5=_0x3225d5-0x18a;var _0x52fd22=_0x55701b[_0x3225d5];return _0x52fd22;},a118_0x3225(_0x375e7e,_0xcfdd15);}function a118_0x5570(){var _0x3813c1=['./Percy','3971488Svrxrk','771HJqgsL','1374370PqpUHV','265984sHzrbq','14874720RhYHED','6466089vaOEKm','1556MqfUWE','785355jqckFw','18vrfkyf','exports','99kzqhLL'];a118_0x5570=function(){return _0x3813c1;};return a118_0x5570();}(function(_0x11f47d,_0x2dc824){var _0x1eefe5=a118_0x3225,_0x2b6915=_0x11f47d();while(!![]){try{var _0x380e6d=-parseInt(_0x1eefe5(0x190))/0x1*(-parseInt(_0x1eefe5(0x195))/0x2)+-parseInt(_0x1eefe5(0x18a))/0x3+parseInt(_0x1eefe5(0x18f))/0x4+parseInt(_0x1eefe5(0x191))/0x5*(-parseInt(_0x1eefe5(0x18b))/0x6)+-parseInt(_0x1eefe5(0x194))/0x7+parseInt(_0x1eefe5(0x192))/0x8*(-parseInt(_0x1eefe5(0x18d))/0x9)+parseInt(_0x1eefe5(0x193))/0xa;if(_0x380e6d===_0x2dc824)break;else _0x2b6915['push'](_0x2b6915['shift']());}catch(_0x4f020f){_0x2b6915['push'](_0x2b6915['shift']());}}}(a118_0x5570,0xabf40),module[a118_0xd3e47e(0x18c)]=require(a118_0xd3e47e(0x18e)));
1
+ function a118_0x11c1(_0x14b0fa,_0x269ec8){var _0x5b34e7=a118_0x5b34();return a118_0x11c1=function(_0x11c1e1,_0xb966ba){_0x11c1e1=_0x11c1e1-0xe4;var _0x195fba=_0x5b34e7[_0x11c1e1];return _0x195fba;},a118_0x11c1(_0x14b0fa,_0x269ec8);}function a118_0x5b34(){var _0x453d5d=['31873752BDumUd','exports','2JXqFYz','2104473TFhfmS','96bsKHxH','5756675MRTcfp','3950228DEscDS','13735naAyoN','363202VNyxnw','./Percy','3985024btQIXY'];a118_0x5b34=function(){return _0x453d5d;};return a118_0x5b34();}var a118_0x3dcdba=a118_0x11c1;(function(_0x4f64e1,_0x249b79){var _0x3507d6=a118_0x11c1,_0x4f36f2=_0x4f64e1();while(!![]){try{var _0x3d0124=parseInt(_0x3507d6(0xe9))/0x1+-parseInt(_0x3507d6(0xe4))/0x2*(-parseInt(_0x3507d6(0xe5))/0x3)+-parseInt(_0x3507d6(0xe8))/0x4+-parseInt(_0x3507d6(0xe7))/0x5+-parseInt(_0x3507d6(0xe6))/0x6*(parseInt(_0x3507d6(0xea))/0x7)+-parseInt(_0x3507d6(0xec))/0x8+parseInt(_0x3507d6(0xed))/0x9;if(_0x3d0124===_0x249b79)break;else _0x4f36f2['push'](_0x4f36f2['shift']());}catch(_0x198b6a){_0x4f36f2['push'](_0x4f36f2['shift']());}}}(a118_0x5b34,0xc0c36),module[a118_0x3dcdba(0xee)]=require(a118_0x3dcdba(0xeb)));
@@ -1 +1 @@
1
- const a119_0x1759f3=a119_0x10de;(function(_0x56666b,_0x2894eb){const _0xd59d53=a119_0x10de,_0x31c1f6=_0x56666b();while(!![]){try{const _0x2ba2db=parseInt(_0xd59d53(0x98))/0x1+-parseInt(_0xd59d53(0xb6))/0x2+-parseInt(_0xd59d53(0x79))/0x3*(parseInt(_0xd59d53(0x8c))/0x4)+-parseInt(_0xd59d53(0x92))/0x5+parseInt(_0xd59d53(0x97))/0x6*(-parseInt(_0xd59d53(0xae))/0x7)+-parseInt(_0xd59d53(0x9a))/0x8*(parseInt(_0xd59d53(0x89))/0x9)+parseInt(_0xd59d53(0x8d))/0xa;if(_0x2ba2db===_0x2894eb)break;else _0x31c1f6['push'](_0x31c1f6['shift']());}catch(_0x363198){_0x31c1f6['push'](_0x31c1f6['shift']());}}}(a119_0x35c9,0xadb9d));const Percy=require(a119_0x1759f3(0x7b)),PercySDK=require(a119_0x1759f3(0x71)),PercyCaptureModes=require(a119_0x1759f3(0x94)),PercyCaptureMap=require('./PercyCaptureMap'),logger=require('../logger')[a119_0x1759f3(0xab)],helper=require(a119_0x1759f3(0x80)),PerformanceTester=require('../performance/performance-tester'),{PERCY_EVENTS:PerformanceEvents}=require(a119_0x1759f3(0xa6));exports[a119_0x1759f3(0xa4)]=PerformanceTester[a119_0x1759f3(0x86)](PerformanceEvents[a119_0x1759f3(0xaa)],async _0xa606cf=>{const _0x48a6bf=a119_0x1759f3,_0x526615={};_0x526615[_0x48a6bf(0x82)]=_0x48a6bf(0xb8);const _0x2e9372=_0x526615;logger['debug'](_0x2e9372[_0x48a6bf(0x82)]);const _0x2ec2e0=new Percy(_0xa606cf),_0x4540ee=await _0x2ec2e0[_0x48a6bf(0xa5)]();if(_0x4540ee)return _0x2ec2e0;return null;}),exports['stopPercy']=PerformanceTester['measureWrapper'](PerformanceEvents['STOP'],async _0x5de8d6=>{const _0x19a953=a119_0x1759f3,_0x370273={};_0x370273[_0x19a953(0xa1)]=_0x19a953(0x8e);const _0x504b70=_0x370273;return logger[_0x19a953(0xa2)](_0x504b70[_0x19a953(0xa1)]),_0x5de8d6['stop']();}),exports[a119_0x1759f3(0x99)]=_0x1a4477=>{const _0xf47f6b=a119_0x1759f3,_0x4c5f64={};_0x4c5f64['uWAbi']=function(_0x58975e,_0x2d9a14){return _0x58975e<_0x2d9a14;};const _0x3317fd=_0x4c5f64,_0x4e9fe2={};_0x4e9fe2['chrome']=0x0,_0x4e9fe2[_0xf47f6b(0xa8)]=0x1,_0x4e9fe2[_0xf47f6b(0x84)]=0x2,_0x4e9fe2[_0xf47f6b(0x87)]=0x3;const _0x4a7cb2=_0x4e9fe2;return _0x1a4477[_0xf47f6b(0x95)]((_0x119820,_0x1a07e9,_0xc962c5)=>{const _0x103e7c=_0xf47f6b,_0x54a6ad=_0x1a4477[_0x119820];if(_0x1a07e9[_0x103e7c(0xb0)])return _0x119820;if(_0x54a6ad[_0x103e7c(0xb0)])return _0xc962c5;const _0x48f95d=_0x1a07e9[_0x103e7c(0x9f)]?_0x1a07e9['browser']:_0x1a07e9['browserName'];if(_0x48f95d&&_0x3317fd[_0x103e7c(0x93)](_0x4a7cb2[_0x48f95d['toLowerCase']()],_0x4a7cb2[_0x48f95d[_0x103e7c(0xa7)]()]))return _0xc962c5;return _0x119820;},0x0);},exports[a119_0x1759f3(0x76)]=PerformanceTester['measureWrapper'](PerformanceEvents[a119_0x1759f3(0x8b)],async(_0x39fcd2,_0x546dba,_0x73463c)=>{const _0xe47bba=a119_0x1759f3,_0x1b0559={};_0x1b0559[_0xe47bba(0x8a)]=_0xe47bba(0x85);const _0x1728c4=_0x1b0559,_0x4c8090=_0x39fcd2[_0xe47bba(0x77)];if(helper[_0xe47bba(0x70)](_0x39fcd2[_0xe47bba(0xb7)])){logger[_0xe47bba(0xa2)](_0x1728c4['mUiLL']);return;}const _0x1162aa=_0x4c8090[_0xe47bba(0xb1)](_0x39fcd2['browserstackSessionName'],_0x546dba);_0x73463c[_0xe47bba(0x90)]?await PercySDK[_0xe47bba(0xad)](_0x39fcd2,_0x1162aa):await PercySDK[_0xe47bba(0xaf)](_0x39fcd2,_0x1162aa),_0x4c8090[_0xe47bba(0xb5)](_0x39fcd2['browserstackSessionName'],_0x546dba);}),exports[a119_0x1759f3(0x83)]=(_0x13c5c9,_0xf1214d,_0x26d70a)=>{const _0x1255df=a119_0x1759f3,_0x2a2b49={};_0x2a2b49['cEvNr']=_0x1255df(0x73),_0x2a2b49[_0x1255df(0xb2)]=_0x1255df(0x8f),_0x2a2b49[_0x1255df(0xac)]=function(_0x480085,_0x447bc1){return _0x480085!==_0x447bc1;},_0x2a2b49[_0x1255df(0x9d)]=_0x1255df(0x88);const _0xf7596b=_0x2a2b49;if(!helper['nestedKeyValue'](_0x26d70a,[_0xf7596b[_0x1255df(0x9c)],_0xf7596b['JkrdM']]))return;if(_0x26d70a[_0x1255df(0x73)][_0x1255df(0x8f)]&&_0x26d70a[_0x1255df(0x73)][_0x1255df(0x81)]&&_0xf7596b[_0x1255df(0xac)](_0x26d70a[_0x1255df(0x73)]['percyCaptureMode'],_0xf7596b['DhrjU'])&&!_0x13c5c9[_0x1255df(0x77)]){global[_0x1255df(0xb7)]&&(_0x13c5c9[_0x1255df(0xb7)]=global[_0x1255df(0xb7)]),_0x13c5c9[_0x1255df(0x77)]=new PercyCaptureMap();const _0x451a47=PercyCaptureModes[_0x26d70a[_0x1255df(0x73)][_0x1255df(0x81)]];_0x451a47[_0x1255df(0xa9)]&&_0x451a47[_0x1255df(0xa9)][_0x1255df(0xb4)](_0xfc5077=>this['overrideXforPercy'](_0x13c5c9,_0xfc5077,_0x26d70a)),_0x451a47[_0x1255df(0x75)]&&_0x451a47[_0x1255df(0x75)][_0x1255df(0xb4)](_0x486ac3=>{const _0x5e125a=_0x1255df;if(_0xf1214d[_0x5e125a(0xb3)][_0x5e125a(0x9e)+_0x486ac3])return;_0xf1214d[_0x5e125a(0xb3)]['patch'+_0x486ac3]=!![];const _0x2c4c45=_0xf1214d['prototype'][_0x486ac3];_0xf1214d['prototype'][_0x486ac3]=async function(){const _0x2e0911=_0x5e125a;let _0x58c70e=_0x2c4c45['apply'](this,arguments);_0x58c70e&&_0x58c70e['then']&&(_0x58c70e=await _0x58c70e);try{const _0x5b76bb=this[_0x2e0911(0x7a)]();await exports[_0x2e0911(0x76)](_0x5b76bb,_0x486ac3,_0x26d70a);}catch(_0xdd4ce4){logger[_0x2e0911(0xa0)]('Error\x20patching\x20'+_0x486ac3+_0x2e0911(0x7d)+_0xdd4ce4);}return _0x58c70e;};});}},exports[a119_0x1759f3(0x7e)]=function(_0x5415d6,_0x4217c6,_0x1359eb){const _0x528719=a119_0x1759f3,_0x330d1c={};_0x330d1c[_0x528719(0xa3)]=function(_0x313216,_0x27a7c6){return _0x313216+_0x27a7c6;},_0x330d1c[_0x528719(0x7c)]=_0x528719(0x9e),_0x330d1c['RJNXH']=_0x528719(0x78);const _0x58ba5c=_0x330d1c,_0x5bd876=_0x58ba5c[_0x528719(0xa3)](_0x58ba5c[_0x528719(0x7c)],_0x4217c6),_0x3288d2=_0x58ba5c[_0x528719(0xa3)](_0x58ba5c[_0x528719(0x96)],_0x4217c6),_0x4e5bfa=this;if(_0x5415d6[_0x5bd876]||!_0x5415d6[_0x4217c6])return;_0x5415d6[_0x5bd876]=!![],_0x5415d6[_0x3288d2]=_0x5415d6[_0x4217c6],_0x5415d6[_0x4217c6]=async()=>{const _0x452cd6=_0x528719;try{await _0x4e5bfa['percyAutoCapture'](_0x5415d6,_0x4217c6,_0x1359eb);}catch(_0x157e09){logger['error'](_0x452cd6(0x74)+_0x4217c6+'\x20for\x20percy\x20'+_0x157e09);}return await _0x5415d6[_0x3288d2]['apply'](_0x5415d6,arguments);};},exports[a119_0x1759f3(0x7f)]=_0x42b49c=>{const _0x264ff6=a119_0x1759f3,_0x436739={};_0x436739['PQRKC']=_0x264ff6(0x9b);const _0x118b79=_0x436739,_0x4bc80f={};_0x4bc80f[_0x264ff6(0x8f)]=_0x42b49c[_0x264ff6(0x8f)],_0x4bc80f['percyCaptureMode']=_0x42b49c[_0x264ff6(0x81)]||_0x118b79[_0x264ff6(0x72)];const _0x459f5e=_0x4bc80f;_0x42b49c[_0x264ff6(0x8f)]&&(_0x459f5e['browserstackPercyBestPlatform']=exports['getBestPlatformForPercySnapshot'](_0x42b49c[_0x264ff6(0x91)]));;return _0x459f5e;};function a119_0x10de(_0x5942a6,_0x5091d1){const _0x35c9da=a119_0x35c9();return a119_0x10de=function(_0x10de7b,_0x6b988){_0x10de7b=_0x10de7b-0x70;let _0x5ed625=_0x35c9da[_0x10de7b];return _0x5ed625;},a119_0x10de(_0x5942a6,_0x5091d1);}function a119_0x35c9(){const _0x394528=['safari','manual','27JxWzrN','mUiLL','AUTO_CAPTURE','40LaaaGz','19887320lAjFgT','Stopping\x20percy','percy','app','platforms','2097925LiVLGu','uWAbi','./PercyCaptureModes','reduce','RJNXH','108tjxonc','1208308tVQsKa','getBestPlatformForPercySnapshot','238088llxkLJ','auto','cEvNr','DhrjU','patch','browser','error','wIVqE','debug','pvhlq','startPercy','start','../performance/constants','toLowerCase','firefox','driver','START','winstonLogger','rIswj','screenshotApp','545398eyUhlG','screenshot','deviceName','getName','JkrdM','prototype','forEach','increment','1082318wGDirA','browserstackSessionName','Starting\x20percy','isUndefined','./PercySDK','PQRKC','browserStackPercyOptions','Error\x20patching\x20','element','percyAutoCapture','browserstackPercyMap','init','9894VSgkUB','getDriver','./Percy','JuMkd','\x20for\x20percy\x20','overrideXforPercy','getPercyOptions','../helper','percyCaptureMode','BftfW','patchDriverPercy','edge','Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present','measureWrapper'];a119_0x35c9=function(){return _0x394528;};return a119_0x35c9();}
1
+ const a119_0x3b1376=a119_0x53a7;(function(_0x300993,_0x3fd9cc){const _0x27f812=a119_0x53a7,_0x2ebd9e=_0x300993();while(!![]){try{const _0x90ad7c=-parseInt(_0x27f812(0xf0))/0x1+-parseInt(_0x27f812(0xcd))/0x2*(-parseInt(_0x27f812(0xc6))/0x3)+-parseInt(_0x27f812(0xe0))/0x4+parseInt(_0x27f812(0xd0))/0x5+parseInt(_0x27f812(0xe4))/0x6+parseInt(_0x27f812(0xfe))/0x7+-parseInt(_0x27f812(0xe5))/0x8*(parseInt(_0x27f812(0xc5))/0x9);if(_0x90ad7c===_0x3fd9cc)break;else _0x2ebd9e['push'](_0x2ebd9e['shift']());}catch(_0x4dacf8){_0x2ebd9e['push'](_0x2ebd9e['shift']());}}}(a119_0xc4d9,0xb6884));const Percy=require(a119_0x3b1376(0xdf)),PercySDK=require(a119_0x3b1376(0xe7)),PercyCaptureModes=require(a119_0x3b1376(0xfc)),PercyCaptureMap=require(a119_0x3b1376(0xd7)),logger=require(a119_0x3b1376(0xc2))[a119_0x3b1376(0xcb)],helper=require('../helper'),PerformanceTester=require(a119_0x3b1376(0x100)),{PERCY_EVENTS:PerformanceEvents}=require(a119_0x3b1376(0xcf));function a119_0x53a7(_0x3e3e3f,_0x37b9ed){const _0xc4d92e=a119_0xc4d9();return a119_0x53a7=function(_0x53a71e,_0x3f6ede){_0x53a71e=_0x53a71e-0xc1;let _0xae7d1b=_0xc4d92e[_0x53a71e];return _0xae7d1b;},a119_0x53a7(_0x3e3e3f,_0x37b9ed);}function a119_0xc4d9(){const _0x431804=['browserName','driver','1318839UjSykW','apply','patch','mtIbB','bKnom','reduce','isUndefined','oAeUi','Error\x20patching\x20','\x20for\x20percy\x20','toLowerCase','debug','./PercyCaptureModes','sQjBa','5408991PnkhAf','forEach','../performance/performance-tester','manual','element','IbEGm','MSUGa','browserstackSessionName','Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present','then','startPercy','browserstackPercyMap','STOP','auto','../logger','getName','measureWrapper','9HciFYI','3zhmxiI','CIIPb','getBestPlatformForPercySnapshot','percyCaptureMode','deviceName','winstonLogger','nestedKeyValue','1558556yWjEWS','browserStackPercyOptions','../performance/constants','6622120qMhegd','prototype','stop','percyAutoCapture','percy','browser','PQmyR','./PercyCaptureMap','AUTO_CAPTURE','app','NggKO','Stopping\x20percy','platforms','Starting\x20percy','screenshotApp','./Percy','1032792uKUVqc','getPercyOptions','START','getDriver','1863762FBOYcN','6898824rKlywC','uQmua','./PercySDK','error','chrome','patchDriverPercy','axsQm','init','start'];a119_0xc4d9=function(){return _0x431804;};return a119_0xc4d9();}exports[a119_0x3b1376(0x108)]=PerformanceTester[a119_0x3b1376(0xc4)](PerformanceEvents[a119_0x3b1376(0xe2)],async _0x1b22c2=>{const _0x1abdbc=a119_0x3b1376,_0x3a5b1a={};_0x3a5b1a[_0x1abdbc(0xd6)]=_0x1abdbc(0xdd);const _0x182871=_0x3a5b1a;logger[_0x1abdbc(0xfb)](_0x182871['PQmyR']);const _0x912e6d=new Percy(_0x1b22c2),_0x22a7a6=await _0x912e6d[_0x1abdbc(0xed)]();if(_0x22a7a6)return _0x912e6d;return null;}),exports['stopPercy']=PerformanceTester[a119_0x3b1376(0xc4)](PerformanceEvents[a119_0x3b1376(0x10a)],async _0x4b6e32=>{const _0x3c94a1=a119_0x3b1376,_0x494204={};_0x494204['CENtx']=_0x3c94a1(0xdb);const _0x43eae9=_0x494204;return logger[_0x3c94a1(0xfb)](_0x43eae9['CENtx']),_0x4b6e32[_0x3c94a1(0xd2)]();}),exports[a119_0x3b1376(0xc8)]=_0x5f0767=>{const _0x46b5a1=a119_0x3b1376,_0x4f6970={};_0x4f6970[_0x46b5a1(0xeb)]=function(_0x57ddfe,_0x2ecf46){return _0x57ddfe<_0x2ecf46;};const _0x48845f=_0x4f6970,_0x54963a={};_0x54963a[_0x46b5a1(0xe9)]=0x0,_0x54963a['firefox']=0x1,_0x54963a['edge']=0x2,_0x54963a['safari']=0x3;const _0x41db19=_0x54963a;return _0x5f0767[_0x46b5a1(0xf5)]((_0xce707,_0x14e5fa,_0x1e1d87)=>{const _0x445ae2=_0x46b5a1,_0x358c50=_0x5f0767[_0xce707];if(_0x14e5fa[_0x445ae2(0xca)])return _0xce707;if(_0x358c50[_0x445ae2(0xca)])return _0x1e1d87;const _0x558dca=_0x14e5fa['browser']?_0x14e5fa[_0x445ae2(0xd5)]:_0x14e5fa[_0x445ae2(0xee)];if(_0x558dca&&_0x48845f[_0x445ae2(0xeb)](_0x41db19[_0x558dca['toLowerCase']()],_0x41db19[_0x558dca[_0x445ae2(0xfa)]()]))return _0x1e1d87;return _0xce707;},0x0);},exports[a119_0x3b1376(0xd3)]=PerformanceTester[a119_0x3b1376(0xc4)](PerformanceEvents[a119_0x3b1376(0xd8)],async(_0x5c067a,_0x2f7338,_0x585442)=>{const _0x25dd31=a119_0x3b1376,_0x26a3ce={};_0x26a3ce[_0x25dd31(0x103)]=_0x25dd31(0x106);const _0x2a529f=_0x26a3ce,_0x32d3b7=_0x5c067a[_0x25dd31(0x109)];if(helper[_0x25dd31(0xf6)](_0x5c067a[_0x25dd31(0x105)])){logger['debug'](_0x2a529f[_0x25dd31(0x103)]);return;}const _0x13e534=_0x32d3b7[_0x25dd31(0xc3)](_0x5c067a[_0x25dd31(0x105)],_0x2f7338);_0x585442[_0x25dd31(0xd9)]?await PercySDK[_0x25dd31(0xde)](_0x5c067a,_0x13e534):await PercySDK['screenshot'](_0x5c067a,_0x13e534),_0x32d3b7['increment'](_0x5c067a[_0x25dd31(0x105)],_0x2f7338);}),exports[a119_0x3b1376(0xea)]=(_0x3b08fa,_0x550117,_0x160b34)=>{const _0x42449b=a119_0x3b1376,_0x5b6a2a={};_0x5b6a2a[_0x42449b(0xf3)]=_0x42449b(0xce),_0x5b6a2a[_0x42449b(0xf7)]=_0x42449b(0xd4),_0x5b6a2a['bKnom']=function(_0x5d8299,_0x2533e8){return _0x5d8299!==_0x2533e8;},_0x5b6a2a['NggKO']=_0x42449b(0x101);const _0x5dc281=_0x5b6a2a;if(!helper[_0x42449b(0xcc)](_0x160b34,[_0x5dc281[_0x42449b(0xf3)],_0x5dc281[_0x42449b(0xf7)]]))return;if(_0x160b34[_0x42449b(0xce)][_0x42449b(0xd4)]&&_0x160b34[_0x42449b(0xce)][_0x42449b(0xc9)]&&_0x5dc281[_0x42449b(0xf4)](_0x160b34[_0x42449b(0xce)][_0x42449b(0xc9)],_0x5dc281[_0x42449b(0xda)])&&!_0x3b08fa['browserstackPercyMap']){global[_0x42449b(0x105)]&&(_0x3b08fa[_0x42449b(0x105)]=global[_0x42449b(0x105)]),_0x3b08fa[_0x42449b(0x109)]=new PercyCaptureMap();const _0x548320=PercyCaptureModes[_0x160b34['browserStackPercyOptions']['percyCaptureMode']];_0x548320['driver']&&_0x548320[_0x42449b(0xef)][_0x42449b(0xff)](_0x2e6dc8=>this['overrideXforPercy'](_0x3b08fa,_0x2e6dc8,_0x160b34)),_0x548320[_0x42449b(0x102)]&&_0x548320[_0x42449b(0x102)][_0x42449b(0xff)](_0x199142=>{const _0x5e817d=_0x42449b;if(_0x550117['prototype']['patch'+_0x199142])return;_0x550117[_0x5e817d(0xd1)][_0x5e817d(0xf2)+_0x199142]=!![];const _0x28fa04=_0x550117[_0x5e817d(0xd1)][_0x199142];_0x550117[_0x5e817d(0xd1)][_0x199142]=async function(){const _0x2a2d9c=_0x5e817d;let _0x5818fa=_0x28fa04[_0x2a2d9c(0xf1)](this,arguments);_0x5818fa&&_0x5818fa[_0x2a2d9c(0x107)]&&(_0x5818fa=await _0x5818fa);try{const _0x31c24b=this[_0x2a2d9c(0xe3)]();await exports['percyAutoCapture'](_0x31c24b,_0x199142,_0x160b34);}catch(_0xd9a434){logger[_0x2a2d9c(0xe8)](_0x2a2d9c(0xf8)+_0x199142+_0x2a2d9c(0xf9)+_0xd9a434);}return _0x5818fa;};});}},exports['overrideXforPercy']=function(_0x5bf429,_0x20493e,_0x9fac3b){const _0x588f90=a119_0x3b1376,_0x2b3d59={};_0x2b3d59[_0x588f90(0xe6)]=function(_0x2bb3ae,_0x1a1e8c){return _0x2bb3ae+_0x1a1e8c;},_0x2b3d59[_0x588f90(0xc7)]=_0x588f90(0xf2),_0x2b3d59['sQjBa']=_0x588f90(0xec);const _0x383991=_0x2b3d59,_0x5bbc4f=_0x383991['uQmua'](_0x383991[_0x588f90(0xc7)],_0x20493e),_0x5b7e8e=_0x383991['uQmua'](_0x383991[_0x588f90(0xfd)],_0x20493e),_0x1544a7=this;if(_0x5bf429[_0x5bbc4f]||!_0x5bf429[_0x20493e])return;_0x5bf429[_0x5bbc4f]=!![],_0x5bf429[_0x5b7e8e]=_0x5bf429[_0x20493e],_0x5bf429[_0x20493e]=async()=>{const _0x503d45=_0x588f90;try{await _0x1544a7['percyAutoCapture'](_0x5bf429,_0x20493e,_0x9fac3b);}catch(_0x5074c6){logger[_0x503d45(0xe8)]('Error\x20patching\x20'+_0x20493e+_0x503d45(0xf9)+_0x5074c6);}return await _0x5bf429[_0x5b7e8e][_0x503d45(0xf1)](_0x5bf429,arguments);};},exports[a119_0x3b1376(0xe1)]=_0x368c22=>{const _0x18359e=a119_0x3b1376,_0x42c09f={};_0x42c09f['MSUGa']=_0x18359e(0xc1);const _0x3962d0=_0x42c09f,_0x206414={};_0x206414[_0x18359e(0xd4)]=_0x368c22['percy'],_0x206414['percyCaptureMode']=_0x368c22[_0x18359e(0xc9)]||_0x3962d0[_0x18359e(0x104)];const _0x1f09c6=_0x206414;_0x368c22['percy']&&(_0x1f09c6['browserstackPercyBestPlatform']=exports[_0x18359e(0xc8)](_0x368c22[_0x18359e(0xdc)]));;return _0x1f09c6;};