browserstack-node-sdk 1.43.0 → 1.44.0

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 (183) 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/generated/sdk-messages_pb.d.ts +70 -0
  41. package/generated/sdk-messages_pb.js +550 -0
  42. package/generated/sdk_grpc_pb.d.ts +5 -0
  43. package/generated/sdk_grpc_pb.js +33 -0
  44. package/package.json +7 -2
  45. package/src/ai-sdk-node/bundle.js +1 -1
  46. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  47. package/src/bin/codeceptjs/command.js +1 -1
  48. package/src/bin/codeceptjs/helper.js +1 -1
  49. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  50. package/src/bin/cucumber-js/command.js +1 -1
  51. package/src/bin/cucumber-js/cucumber-sessionDetails.js +1 -1
  52. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  53. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  54. package/src/bin/cucumber-js/playwright-patcher.js +1 -1
  55. package/src/bin/cucumber-js/test-observability.js +1 -1
  56. package/src/bin/cucumber-js/test.setup.js +1 -1
  57. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  58. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  59. package/src/bin/integrations/command.js +1 -1
  60. package/src/bin/integrations/constants.js +1 -1
  61. package/src/bin/jest/command.js +1 -1
  62. package/src/bin/jest/customImplements/customCircus.js +1 -1
  63. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  64. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  65. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  66. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  67. package/src/bin/jest/jest.setup.js +1 -1
  68. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  69. package/src/bin/jest/test-observability/helper.js +1 -1
  70. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  71. package/src/bin/jest/test-observability/test-details.js +1 -1
  72. package/src/bin/jest/test_before.setup.js +1 -1
  73. package/src/bin/launcher/launcher.js +1 -1
  74. package/src/bin/load/index.js +1 -1
  75. package/src/bin/load/loadUtils.js +1 -1
  76. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  77. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  78. package/src/bin/mocha/command.js +1 -1
  79. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  80. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  81. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  82. package/src/bin/mocha/test.setup.js +1 -1
  83. package/src/bin/nightwatch/command.js +1 -1
  84. package/src/bin/playwright/accessibility-helper.js +1 -1
  85. package/src/bin/playwright/command.js +1 -1
  86. package/src/bin/playwright/globalSetup.js +1 -1
  87. package/src/bin/playwright/mock-process.js +1 -1
  88. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  89. package/src/bin/playwright/patches.js +1 -1
  90. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  91. package/src/bin/playwright/reporter/reporter.js +1 -1
  92. package/src/bin/playwright/reporter/test-details.js +1 -1
  93. package/src/bin/playwright/sessionDetails.js +1 -1
  94. package/src/bin/runner.js +1 -1
  95. package/src/bin/setup.js +1 -1
  96. package/src/bin/test-runner/index.js +1 -1
  97. package/src/bin/test-runner/runTest.js +1 -1
  98. package/src/bin/test-runner/testWorker.js +1 -1
  99. package/src/bin/utils/apiUtilityMethods.js +1 -0
  100. package/src/bin/utils/constants.js +1 -1
  101. package/src/bin/utils/log4jsAppender.js +1 -1
  102. package/src/bin/utils/logPatcher.js +1 -1
  103. package/src/bin/utils/logReportingAPI.js +1 -1
  104. package/src/bin/utils/sharedUtils.js +1 -0
  105. package/src/bin/v2/TestInfo.js +1 -1
  106. package/src/bin/v2/browserstackCLI.js +1 -1
  107. package/src/bin/v2/cliUtils.js +1 -1
  108. package/src/bin/v2/customTagManager.js +1 -1
  109. package/src/bin/v2/eventDispatcher.js +1 -1
  110. package/src/bin/v2/framework/automationFramework.js +1 -1
  111. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  112. package/src/bin/v2/framework/constants/testFrameworkConstants.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/observabilityModule.js +1 -1
  124. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  125. package/src/bin/v2/modules/testhubModule.js +1 -1
  126. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  127. package/src/bin/v2/state/hookState.js +1 -1
  128. package/src/bin/v2/state/testFrameworkState.js +1 -1
  129. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  130. package/src/bin/vanilla-js/command.js +1 -1
  131. package/src/browserStackSdk.js +1 -1
  132. package/src/helpers/BrowserStackSetup.js +1 -1
  133. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  134. package/src/helpers/accessibility-automation/constants.js +1 -1
  135. package/src/helpers/accessibility-automation/helper.js +1 -1
  136. package/src/helpers/accessibility-automation/scripts.js +1 -1
  137. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  138. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  139. package/src/helpers/ats/constants.js +1 -1
  140. package/src/helpers/ats/helper.js +1 -1
  141. package/src/helpers/capsMapping.js +1 -1
  142. package/src/helpers/central-scanner/constants.js +1 -1
  143. package/src/helpers/central-scanner/helpers.js +1 -1
  144. package/src/helpers/classLogger.js +1 -1
  145. package/src/helpers/globals.js +1 -1
  146. package/src/helpers/helper.js +1 -1
  147. package/src/helpers/logger.js +1 -1
  148. package/src/helpers/metadata.js +1 -1
  149. package/src/helpers/patchHelper.js +1 -1
  150. package/src/helpers/patchHelpers.js +1 -1
  151. package/src/helpers/percy/Percy.js +1 -1
  152. package/src/helpers/percy/PercyBinary.js +1 -1
  153. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  154. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  155. package/src/helpers/percy/PercySDK.js +1 -1
  156. package/src/helpers/percy/index.js +1 -1
  157. package/src/helpers/percy/utils.js +1 -1
  158. package/src/helpers/performance/constants.js +1 -1
  159. package/src/helpers/performance/performance-tester.js +1 -1
  160. package/src/helpers/playwright-helper.js +1 -1
  161. package/src/helpers/processHelper.js +1 -1
  162. package/src/helpers/request-spy.js +1 -1
  163. package/src/helpers/setKeepAlive.js +1 -1
  164. package/src/helpers/test-observability/constants.js +1 -1
  165. package/src/helpers/test-observability/error-handler.js +1 -1
  166. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  167. package/src/helpers/test-observability/sessionHandler.js +1 -1
  168. package/src/helpers/test-observability/utils.js +1 -1
  169. package/src/helpers/test-orchestration/constants.js +1 -1
  170. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  171. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  172. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  173. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  174. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  175. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  176. package/src/helpers/testhub/constants.js +1 -1
  177. package/src/helpers/testhub/testhubHandler.js +1 -1
  178. package/src/helpers/testhub/utils.js +1 -1
  179. package/src/helpers/timeoutPromise.js +1 -1
  180. package/src/helpers/utilities.js +1 -1
  181. package/src/helpers/w3cMapping.js +1 -1
  182. package/src/hubAllocationMethods.js +1 -1
  183. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a100_0x1d4ebd=a100_0x5666;(function(_0x5b769b,_0x264a41){const _0xde97fe=a100_0x5666,_0x57aa10=_0x5b769b();while(!![]){try{const _0xded70=parseInt(_0xde97fe(0xc5))/0x1*(parseInt(_0xde97fe(0xb0))/0x2)+-parseInt(_0xde97fe(0xd7))/0x3+parseInt(_0xde97fe(0xaf))/0x4*(parseInt(_0xde97fe(0x9a))/0x5)+-parseInt(_0xde97fe(0xc2))/0x6*(-parseInt(_0xde97fe(0xd1))/0x7)+parseInt(_0xde97fe(0x9d))/0x8*(-parseInt(_0xde97fe(0x93))/0x9)+parseInt(_0xde97fe(0xb7))/0xa+parseInt(_0xde97fe(0x9c))/0xb;if(_0xded70===_0x264a41)break;else _0x57aa10['push'](_0x57aa10['shift']());}catch(_0x2a263a){_0x57aa10['push'](_0x57aa10['shift']());}}}(a100_0x4c75,0x93389));const winston=require(a100_0x1d4ebd(0xa7)),path=require('path'),fs=require('fs'),{LOG_FILE_NAME,DEBUG_LOG_FILE_NAME}=require(a100_0x1d4ebd(0xa4)),tempLogDir='log',logFormat=winston['format'](_0x1baef4=>{const _0x1fc65f=a100_0x1d4ebd,_0x4e1c26={};_0x4e1c26[_0x1fc65f(0xc1)]=function(_0x587a49,_0x25f65a){return _0x587a49!==_0x25f65a;},_0x4e1c26['MyhCk']=_0x1fc65f(0xbf),_0x4e1c26[_0x1fc65f(0xb8)]=function(_0xfa6b7c,_0x287528){return _0xfa6b7c===_0x287528;},_0x4e1c26[_0x1fc65f(0xd0)]=_0x1fc65f(0xcc),_0x4e1c26[_0x1fc65f(0x9e)]=function(_0x5e2861,_0x3c730b){return _0x5e2861===_0x3c730b;};const _0x408e73=_0x4e1c26;return _0x408e73[_0x1fc65f(0xc1)](typeof _0x1baef4[_0x1fc65f(0xce)],_0x408e73['MyhCk'])&&(_0x1baef4[_0x1fc65f(0xce)]=JSON[_0x1fc65f(0x97)](_0x1baef4[_0x1fc65f(0xce)])),global[_0x1fc65f(0xcb)]?.['config']?.[_0x1fc65f(0xa9)]&&_0x408e73[_0x1fc65f(0xb8)](typeof _0x1baef4[_0x1fc65f(0xce)],_0x408e73[_0x1fc65f(0x90)])&&(_0x1baef4['message']=_0x1baef4[_0x1fc65f(0xce)]['replace'](new RegExp(global['session'][_0x1fc65f(0xd2)][_0x1fc65f(0xa9)],'g'),_0x408e73[_0x1fc65f(0xd0)])),global[_0x1fc65f(0xcb)]?.[_0x1fc65f(0xd2)]?.[_0x1fc65f(0x9b)]&&_0x408e73[_0x1fc65f(0x9e)](typeof _0x1baef4[_0x1fc65f(0xce)],_0x408e73[_0x1fc65f(0x90)])&&(_0x1baef4['message']=_0x1baef4[_0x1fc65f(0xce)][_0x1fc65f(0x8f)](new RegExp(global[_0x1fc65f(0xcb)][_0x1fc65f(0xd2)][_0x1fc65f(0x9b)],'g'),_0x408e73[_0x1fc65f(0xd0)])),_0x1baef4;}),fetchLogDir=()=>{const _0x35fd35=a100_0x1d4ebd;if(process['env'][_0x35fd35(0xd9)])return process['env'][_0x35fd35(0xd9)];else!fs[_0x35fd35(0xd6)](tempLogDir)&&fs[_0x35fd35(0xc0)](tempLogDir);return tempLogDir;},logDir=fetchLogDir(),a100_0x47b83d={};a100_0x47b83d['name']=a100_0x1d4ebd(0x8e);const transports={'loggerConsole':new winston[(a100_0x1d4ebd(0x92))][(a100_0x1d4ebd(0xd5))](a100_0x47b83d),'loggerFile':new winston[(a100_0x1d4ebd(0x92))]['File']({'filename':path[a100_0x1d4ebd(0xbb)](logDir,a100_0x1d4ebd(0xab))}),'debugLoggerFile':new winston[(a100_0x1d4ebd(0x92))]['File']({'filename':path[a100_0x1d4ebd(0xbb)](logDir,'/usage-debug.log'),'level':'silly'}),'debugCliLoggerFile':new winston['transports'][(a100_0x1d4ebd(0xb5))]({'filename':path['join'](logDir,a100_0x1d4ebd(0xb1)),'level':a100_0x1d4ebd(0xc7)}),'buildLinkTransport':new winston[(a100_0x1d4ebd(0x92))]['File']({'filename':path['join'](logDir,a100_0x1d4ebd(0xab)),'level':a100_0x1d4ebd(0xc7)})},automationTransports={};process[a100_0x1d4ebd(0xa5)][a100_0x1d4ebd(0xa8)]==='true'&&(automationTransports[a100_0x1d4ebd(0xa2)]=new winston[(a100_0x1d4ebd(0x92))][(a100_0x1d4ebd(0xb5))]({'filename':path[a100_0x1d4ebd(0xbb)](logDir,'automation.log'),'level':a100_0x1d4ebd(0xc7)}));transports[a100_0x1d4ebd(0xd4)]['on'](a100_0x1d4ebd(0xba),_0x530e70=>{const _0x2a4857=a100_0x1d4ebd,_0x25b2ad={};_0x25b2ad['Xwzsj']=function(_0x5bf384,_0x2278ad){return _0x5bf384===_0x2278ad;},_0x25b2ad[_0x2a4857(0xbe)]=_0x2a4857(0xc6),_0x25b2ad[_0x2a4857(0xd8)]=_0x2a4857(0xc4);const _0x2a51a7=_0x25b2ad;if(_0x2a51a7[_0x2a4857(0xae)](_0x530e70[_0x2a4857(0xc3)],_0x2a51a7[_0x2a4857(0xbe)])){console[_0x2a4857(0x99)](_0x2a51a7[_0x2a4857(0xd8)],_0x530e70['message']);return;}throw _0x530e70;});const a100_0x1a0497={};a100_0x1a0497[a100_0x1d4ebd(0xbc)]=a100_0x1d4ebd(0xa0);const a100_0x1a3614={};a100_0x1a3614[a100_0x1d4ebd(0xaa)]=!![];const winstonLoggerParams={'format':winston[a100_0x1d4ebd(0xbc)][a100_0x1d4ebd(0xa6)](winston[a100_0x1d4ebd(0xbc)][a100_0x1d4ebd(0xbd)](a100_0x1a0497),winston[a100_0x1d4ebd(0xbc)]['colorize'](a100_0x1a3614),winston['format'][a100_0x1d4ebd(0x95)](_0x31016c=>_0x31016c[a100_0x1d4ebd(0xbd)]+'\x20-\x20'+_0x31016c[a100_0x1d4ebd(0xaa)]+':\x20'+_0x31016c['message'])),'transports':[transports[a100_0x1d4ebd(0xd4)]]},a100_0x5ad2de={};a100_0x5ad2de[a100_0x1d4ebd(0xbc)]='YYYY-MM-DD\x20HH:mm:ss';function a100_0x4c75(){const _0x30e78b=['replace','MyhCk','buildLogger','transports','9890811vVCWMz','http','printf','vubfW','stringify','info','log','989540DsMmEV','accessKey','1590644gSkxvU','8iPzeZC','zUWTo','debug','YYYY-MM-DD\x20HH:mm:ss','debugLoggerFile','automationLoggerFile','add','../bin/utils/constants','env','combine','winston','BROWSERSTACK_AUTOMATION_LOGS','userName','level','/usage.log','getLogDir','createLogger','Xwzsj','8lkLpYK','38398Djwoat','/sdk-cli-debug.log','uncolorize','loggerFile','fileLogger','File','winstonLogger','7712660FcfMDn','JBcSF','initialize','error','join','format','timestamp','lbKlq','string','mkdirSync','wvykw','48HTjUpF','code','EPIPE\x20error\x20occurred\x20in\x20loggerConsole:','8qwoyqs','EPIPE','silly','0|1|5|2|3|4','UltvQ','colorize','session','[REDACTED]','logDir','message','warn','xnEOc','582533VepRYE','config','buildLinkTransport','loggerConsole','Console','existsSync','1287102zsbSfy','yrfxJ','BROWSERSTACK_INTERNAL_LOG_DIR','true','console.info'];a100_0x4c75=function(){return _0x30e78b;};return a100_0x4c75();}function a100_0x5666(_0x2701d5,_0x60d1bc){const _0x4c75fd=a100_0x4c75();return a100_0x5666=function(_0x56669e,_0x48b743){_0x56669e=_0x56669e-0x8e;let _0x2283f0=_0x4c75fd[_0x56669e];return _0x2283f0;},a100_0x5666(_0x2701d5,_0x60d1bc);}const a100_0x59fbca={};a100_0x59fbca[a100_0x1d4ebd(0xaa)]=!![];const winstonFileLoggerParams={'format':winston[a100_0x1d4ebd(0xbc)][a100_0x1d4ebd(0xa6)](winston[a100_0x1d4ebd(0xbc)]['timestamp'](a100_0x5ad2de),winston['format'][a100_0x1d4ebd(0xca)](a100_0x59fbca),winston['format'][a100_0x1d4ebd(0x95)](_0x26df8f=>_0x26df8f[a100_0x1d4ebd(0xaa)]+':\x20'+_0x26df8f[a100_0x1d4ebd(0xce)])),'transports':[]},a100_0x26d354={};a100_0x26d354[a100_0x1d4ebd(0xbc)]=a100_0x1d4ebd(0xa0);const a100_0x4faf7b={};a100_0x4faf7b[a100_0x1d4ebd(0xaa)]=!![];const a100_0x235630={};a100_0x235630[a100_0x1d4ebd(0xaa)]=a100_0x1d4ebd(0xc7);const BuildLoggerParams={'format':winston[a100_0x1d4ebd(0xbc)][a100_0x1d4ebd(0xa6)](winston[a100_0x1d4ebd(0xbc)][a100_0x1d4ebd(0xbd)](a100_0x26d354),winston[a100_0x1d4ebd(0xbc)]['colorize'](a100_0x4faf7b),winston[a100_0x1d4ebd(0xbc)]['printf'](_0x3768c9=>_0x3768c9['timestamp']+'\x20-\x20'+_0x3768c9[a100_0x1d4ebd(0xaa)]+':\x20'+_0x3768c9[a100_0x1d4ebd(0xce)])),'transports':[transports[a100_0x1d4ebd(0xd3)],new winston[(a100_0x1d4ebd(0x92))][(a100_0x1d4ebd(0xd5))](a100_0x235630)]},a100_0x3788b9={};a100_0x3788b9[a100_0x1d4ebd(0x94)]=()=>{},a100_0x3788b9[a100_0x1d4ebd(0x98)]=()=>{},a100_0x3788b9[a100_0x1d4ebd(0xcf)]=()=>{},a100_0x3788b9[a100_0x1d4ebd(0xba)]=()=>{},a100_0x3788b9[a100_0x1d4ebd(0x9f)]=()=>{},a100_0x3788b9[a100_0x1d4ebd(0xc7)]=()=>{},exports['automationLogger']=process[a100_0x1d4ebd(0xa5)][a100_0x1d4ebd(0xa8)]===a100_0x1d4ebd(0xda)?winston[a100_0x1d4ebd(0xad)]({'format':winston[a100_0x1d4ebd(0xbc)][a100_0x1d4ebd(0xa6)](winston[a100_0x1d4ebd(0xbc)][a100_0x1d4ebd(0xb2)](),winston['format'][a100_0x1d4ebd(0xbd)](),logFormat(),winston[a100_0x1d4ebd(0xbc)]['printf'](_0x1bb860=>_0x1bb860[a100_0x1d4ebd(0xaa)]+':\x20'+_0x1bb860['message'])),'transports':[automationTransports[a100_0x1d4ebd(0xa2)]]}):a100_0x3788b9;const initialize=()=>{const _0x17d5fc=a100_0x1d4ebd,_0x6aa7f8={};_0x6aa7f8[_0x17d5fc(0xc9)]=_0x17d5fc(0xc8),_0x6aa7f8['vubfW']=_0x17d5fc(0xc7);const _0x3d4878=_0x6aa7f8,_0x26d6c3=_0x3d4878['UltvQ']['split']('|');let _0x5d24b2=0x0;while(!![]){switch(_0x26d6c3[_0x5d24b2++]){case'0':transports[_0x17d5fc(0xb3)]=new winston[(_0x17d5fc(0x92))][(_0x17d5fc(0xb5))]({'filename':path[_0x17d5fc(0xbb)](exports[_0x17d5fc(0xcd)],LOG_FILE_NAME)});continue;case'1':transports[_0x17d5fc(0xa1)]=new winston[(_0x17d5fc(0x92))][(_0x17d5fc(0xb5))]({'filename':path['join'](exports[_0x17d5fc(0xcd)],DEBUG_LOG_FILE_NAME),'level':_0x3d4878[_0x17d5fc(0x96)]});continue;case'2':exports[_0x17d5fc(0xb6)][_0x17d5fc(0xa3)](transports[_0x17d5fc(0xa1)]);continue;case'3':exports[_0x17d5fc(0xb4)][_0x17d5fc(0xa3)](transports['loggerFile']);continue;case'4':exports[_0x17d5fc(0xb4)][_0x17d5fc(0xa3)](transports['debugLoggerFile']);continue;case'5':exports['winstonLogger'][_0x17d5fc(0xa3)](transports[_0x17d5fc(0xb3)]);continue;}break;}};exports[a100_0x1d4ebd(0xb6)]=new winston[(a100_0x1d4ebd(0xad))](winstonLoggerParams),exports[a100_0x1d4ebd(0xb4)]=new winston['createLogger'](winstonFileLoggerParams),exports[a100_0x1d4ebd(0x91)]=new winston[(a100_0x1d4ebd(0xad))](BuildLoggerParams),exports[a100_0x1d4ebd(0xcd)]=logDir,exports[a100_0x1d4ebd(0xac)]=()=>{const _0x11c204=a100_0x1d4ebd;return exports[_0x11c204(0xcd)];},exports[a100_0x1d4ebd(0x92)]=transports,exports[a100_0x1d4ebd(0xb9)]=initialize;logDir&&initialize();
1
+ const a102_0xd852c5=a102_0x1a9a;(function(_0x5d9dfd,_0x3ba0de){const _0x53dabe=a102_0x1a9a,_0x43cc56=_0x5d9dfd();while(!![]){try{const _0x2ceb76=parseInt(_0x53dabe(0xe6))/0x1*(parseInt(_0x53dabe(0xb9))/0x2)+-parseInt(_0x53dabe(0xce))/0x3+-parseInt(_0x53dabe(0xcd))/0x4+parseInt(_0x53dabe(0xd1))/0x5*(parseInt(_0x53dabe(0xcb))/0x6)+parseInt(_0x53dabe(0xbc))/0x7*(parseInt(_0x53dabe(0xc2))/0x8)+parseInt(_0x53dabe(0xb1))/0x9*(parseInt(_0x53dabe(0xd9))/0xa)+-parseInt(_0x53dabe(0xb7))/0xb;if(_0x2ceb76===_0x3ba0de)break;else _0x43cc56['push'](_0x43cc56['shift']());}catch(_0x15bbb1){_0x43cc56['push'](_0x43cc56['shift']());}}}(a102_0x58b3,0x4f4e9));const winston=require(a102_0xd852c5(0xbb)),path=require(a102_0xd852c5(0xd6)),fs=require('fs'),{LOG_FILE_NAME,DEBUG_LOG_FILE_NAME}=require('../bin/utils/constants'),tempLogDir='log',logFormat=winston[a102_0xd852c5(0xc1)](_0x7ae3d9=>{const _0xca5728=a102_0xd852c5,_0x5d773a={};_0x5d773a[_0xca5728(0xd3)]=function(_0x299f85,_0x5e7f12){return _0x299f85!==_0x5e7f12;},_0x5d773a[_0xca5728(0xc0)]=_0xca5728(0xd8),_0x5d773a['XFrLy']=function(_0x1c8213,_0x47473c){return _0x1c8213===_0x47473c;},_0x5d773a[_0xca5728(0xc5)]=_0xca5728(0xc4),_0x5d773a[_0xca5728(0xe4)]=function(_0x1d8731,_0x46ae77){return _0x1d8731===_0x46ae77;};const _0x971aa4=_0x5d773a;return _0x971aa4[_0xca5728(0xd3)](typeof _0x7ae3d9[_0xca5728(0xf8)],_0x971aa4[_0xca5728(0xc0)])&&(_0x7ae3d9[_0xca5728(0xf8)]=JSON[_0xca5728(0xca)](_0x7ae3d9['message'])),global[_0xca5728(0xe8)]?.[_0xca5728(0xea)]?.[_0xca5728(0xee)]&&_0x971aa4[_0xca5728(0xc3)](typeof _0x7ae3d9[_0xca5728(0xf8)],_0x971aa4[_0xca5728(0xc0)])&&(_0x7ae3d9['message']=_0x7ae3d9['message'][_0xca5728(0xf9)](new RegExp(global['session'][_0xca5728(0xea)][_0xca5728(0xee)],'g'),_0x971aa4[_0xca5728(0xc5)])),global[_0xca5728(0xe8)]?.[_0xca5728(0xea)]?.[_0xca5728(0xbe)]&&_0x971aa4['KPjZI'](typeof _0x7ae3d9[_0xca5728(0xf8)],_0x971aa4[_0xca5728(0xc0)])&&(_0x7ae3d9[_0xca5728(0xf8)]=_0x7ae3d9['message'][_0xca5728(0xf9)](new RegExp(global[_0xca5728(0xe8)][_0xca5728(0xea)][_0xca5728(0xbe)],'g'),_0x971aa4[_0xca5728(0xc5)])),_0x7ae3d9;}),fetchLogDir=()=>{const _0x18ab15=a102_0xd852c5;if(process[_0x18ab15(0xb3)]['BROWSERSTACK_INTERNAL_LOG_DIR'])return process[_0x18ab15(0xb3)][_0x18ab15(0xe0)];else!fs[_0x18ab15(0xd0)](tempLogDir)&&fs[_0x18ab15(0xb4)](tempLogDir);return tempLogDir;},logDir=fetchLogDir(),a102_0x461e35={};function a102_0x58b3(){const _0x2f5be3=['MwHtO','DdHvz','combine','join','getLogDir','BROWSERSTACK_INTERNAL_LOG_DIR','level','transports','EPIPE','KPjZI','logDir','7619TKGiHD','add','session','info','config','colorize','/usage.log','automationLoggerFile','userName','timestamp','uncolorize','fileLogger','4|3|5|1|0|2','initialize','true','error','silly','warn','message','replace','split','http','loggerConsole','144801toDEIL','BROWSERSTACK_AUTOMATION_LOGS','env','mkdirSync','debugLoggerFile','automationLogger','815980chzeMi','code','92FWekhk','YYYY-MM-DD\x20HH:mm:ss','winston','12761oTLbrh','printf','accessKey','debug','uBQOi','format','128aEdlZp','XFrLy','[REDACTED]','zMfsz','cmbwj','createLogger','loggerFile','log','stringify','1002FYaVok','dOStk','65980kNMMLM','1519050nlapRg','buildLogger','existsSync','5155zdYYiO','File','vxqOP','console.info','xfIoy','path','\x20-\x20','string','230qddpPq','EPIPE\x20error\x20occurred\x20in\x20loggerConsole:'];a102_0x58b3=function(){return _0x2f5be3;};return a102_0x58b3();}function a102_0x1a9a(_0x4fe00c,_0x3446af){const _0x58b3a1=a102_0x58b3();return a102_0x1a9a=function(_0x1a9a8f,_0x377213){_0x1a9a8f=_0x1a9a8f-0xb1;let _0x3cbb54=_0x58b3a1[_0x1a9a8f];return _0x3cbb54;},a102_0x1a9a(_0x4fe00c,_0x3446af);}a102_0x461e35['name']=a102_0xd852c5(0xd4);const transports={'loggerConsole':new winston['transports']['Console'](a102_0x461e35),'loggerFile':new winston[(a102_0xd852c5(0xe2))][(a102_0xd852c5(0xd2))]({'filename':path[a102_0xd852c5(0xde)](logDir,a102_0xd852c5(0xec))}),'debugLoggerFile':new winston['transports'][(a102_0xd852c5(0xd2))]({'filename':path[a102_0xd852c5(0xde)](logDir,'/usage-debug.log'),'level':a102_0xd852c5(0xf6)}),'debugCliLoggerFile':new winston['transports']['File']({'filename':path[a102_0xd852c5(0xde)](logDir,'/sdk-cli-debug.log'),'level':a102_0xd852c5(0xf6)}),'buildLinkTransport':new winston[(a102_0xd852c5(0xe2))][(a102_0xd852c5(0xd2))]({'filename':path[a102_0xd852c5(0xde)](logDir,'/usage.log'),'level':a102_0xd852c5(0xf6)})},automationTransports={};process[a102_0xd852c5(0xb3)][a102_0xd852c5(0xb2)]==='true'&&(automationTransports[a102_0xd852c5(0xed)]=new winston['transports'][(a102_0xd852c5(0xd2))]({'filename':path[a102_0xd852c5(0xde)](logDir,'automation.log'),'level':a102_0xd852c5(0xf6)}));transports[a102_0xd852c5(0xfc)]['on'](a102_0xd852c5(0xf5),_0x26e7a5=>{const _0xa6a9a7=a102_0xd852c5,_0x430ded={};_0x430ded[_0xa6a9a7(0xdc)]=function(_0x271c4e,_0x1bc928){return _0x271c4e===_0x1bc928;},_0x430ded[_0xa6a9a7(0xdb)]=_0xa6a9a7(0xe3),_0x430ded[_0xa6a9a7(0xd5)]=_0xa6a9a7(0xda);const _0x312804=_0x430ded;if(_0x312804['DdHvz'](_0x26e7a5[_0xa6a9a7(0xb8)],_0x312804[_0xa6a9a7(0xdb)])){console[_0xa6a9a7(0xc9)](_0x312804['xfIoy'],_0x26e7a5[_0xa6a9a7(0xf8)]);return;}throw _0x26e7a5;});const a102_0x5dd6ef={};a102_0x5dd6ef['format']=a102_0xd852c5(0xba);const a102_0x431882={};a102_0x431882['level']=!![];const winstonLoggerParams={'format':winston[a102_0xd852c5(0xc1)]['combine'](winston[a102_0xd852c5(0xc1)][a102_0xd852c5(0xef)](a102_0x5dd6ef),winston['format']['colorize'](a102_0x431882),winston[a102_0xd852c5(0xc1)][a102_0xd852c5(0xbd)](_0x3ef436=>_0x3ef436['timestamp']+a102_0xd852c5(0xd7)+_0x3ef436['level']+':\x20'+_0x3ef436[a102_0xd852c5(0xf8)])),'transports':[transports[a102_0xd852c5(0xfc)]]},a102_0xa739bb={};a102_0xa739bb[a102_0xd852c5(0xc1)]='YYYY-MM-DD\x20HH:mm:ss';const a102_0x434489={};a102_0x434489[a102_0xd852c5(0xe1)]=!![];const winstonFileLoggerParams={'format':winston[a102_0xd852c5(0xc1)][a102_0xd852c5(0xdd)](winston[a102_0xd852c5(0xc1)][a102_0xd852c5(0xef)](a102_0xa739bb),winston[a102_0xd852c5(0xc1)][a102_0xd852c5(0xeb)](a102_0x434489),winston['format']['printf'](_0x1599ec=>_0x1599ec[a102_0xd852c5(0xe1)]+':\x20'+_0x1599ec['message'])),'transports':[]},a102_0x562a79={};a102_0x562a79[a102_0xd852c5(0xc1)]='YYYY-MM-DD\x20HH:mm:ss';const a102_0x451b9d={};a102_0x451b9d[a102_0xd852c5(0xe1)]=!![];const a102_0x2bf03a={};a102_0x2bf03a[a102_0xd852c5(0xe1)]='silly';const BuildLoggerParams={'format':winston[a102_0xd852c5(0xc1)][a102_0xd852c5(0xdd)](winston[a102_0xd852c5(0xc1)][a102_0xd852c5(0xef)](a102_0x562a79),winston[a102_0xd852c5(0xc1)][a102_0xd852c5(0xeb)](a102_0x451b9d),winston[a102_0xd852c5(0xc1)][a102_0xd852c5(0xbd)](_0x441387=>_0x441387[a102_0xd852c5(0xef)]+a102_0xd852c5(0xd7)+_0x441387['level']+':\x20'+_0x441387[a102_0xd852c5(0xf8)])),'transports':[transports['buildLinkTransport'],new winston[(a102_0xd852c5(0xe2))]['Console'](a102_0x2bf03a)]},a102_0x3ffbb0={};a102_0x3ffbb0[a102_0xd852c5(0xfb)]=()=>{},a102_0x3ffbb0[a102_0xd852c5(0xe9)]=()=>{},a102_0x3ffbb0[a102_0xd852c5(0xf7)]=()=>{},a102_0x3ffbb0[a102_0xd852c5(0xf5)]=()=>{},a102_0x3ffbb0[a102_0xd852c5(0xbf)]=()=>{},a102_0x3ffbb0['silly']=()=>{},exports[a102_0xd852c5(0xb6)]=process['env']['BROWSERSTACK_AUTOMATION_LOGS']===a102_0xd852c5(0xf4)?winston[a102_0xd852c5(0xc7)]({'format':winston[a102_0xd852c5(0xc1)][a102_0xd852c5(0xdd)](winston['format'][a102_0xd852c5(0xf0)](),winston[a102_0xd852c5(0xc1)][a102_0xd852c5(0xef)](),logFormat(),winston[a102_0xd852c5(0xc1)]['printf'](_0x2ce394=>_0x2ce394[a102_0xd852c5(0xe1)]+':\x20'+_0x2ce394[a102_0xd852c5(0xf8)])),'transports':[automationTransports[a102_0xd852c5(0xed)]]}):a102_0x3ffbb0;const initialize=()=>{const _0x9c244d=a102_0xd852c5,_0x4b2cdb={};_0x4b2cdb[_0x9c244d(0xc6)]=_0x9c244d(0xf2),_0x4b2cdb[_0x9c244d(0xcc)]=_0x9c244d(0xf6);const _0x2082cb=_0x4b2cdb,_0x1f109a=_0x2082cb[_0x9c244d(0xc6)][_0x9c244d(0xfa)]('|');let _0x2e39ec=0x0;while(!![]){switch(_0x1f109a[_0x2e39ec++]){case'0':exports[_0x9c244d(0xf1)][_0x9c244d(0xe7)](transports[_0x9c244d(0xc8)]);continue;case'1':exports['winstonLogger'][_0x9c244d(0xe7)](transports[_0x9c244d(0xb5)]);continue;case'2':exports[_0x9c244d(0xf1)][_0x9c244d(0xe7)](transports['debugLoggerFile']);continue;case'3':transports[_0x9c244d(0xb5)]=new winston[(_0x9c244d(0xe2))][(_0x9c244d(0xd2))]({'filename':path['join'](exports['logDir'],DEBUG_LOG_FILE_NAME),'level':_0x2082cb[_0x9c244d(0xcc)]});continue;case'4':transports[_0x9c244d(0xc8)]=new winston['transports'][(_0x9c244d(0xd2))]({'filename':path['join'](exports[_0x9c244d(0xe5)],LOG_FILE_NAME)});continue;case'5':exports['winstonLogger'][_0x9c244d(0xe7)](transports[_0x9c244d(0xc8)]);continue;}break;}};exports['winstonLogger']=new winston['createLogger'](winstonLoggerParams),exports[a102_0xd852c5(0xf1)]=new winston[(a102_0xd852c5(0xc7))](winstonFileLoggerParams),exports[a102_0xd852c5(0xcf)]=new winston['createLogger'](BuildLoggerParams),exports[a102_0xd852c5(0xe5)]=logDir,exports[a102_0xd852c5(0xdf)]=()=>{return exports['logDir'];},exports[a102_0xd852c5(0xe2)]=transports,exports[a102_0xd852c5(0xf3)]=initialize;logDir&&initialize();
@@ -1 +1 @@
1
- function a101_0x34cc(_0x965a94,_0x8ebe59){const _0x33d323=a101_0x33d3();return a101_0x34cc=function(_0x34ccd9,_0x350726){_0x34ccd9=_0x34ccd9-0x1ae;let _0x4b7dc7=_0x33d323[_0x34ccd9];return _0x4b7dc7;},a101_0x34cc(_0x965a94,_0x8ebe59);}const a101_0x196541=a101_0x34cc;(function(_0x763436,_0x59f5e8){const _0x22e565=a101_0x34cc,_0x26efc8=_0x763436();while(!![]){try{const _0x6c0ea4=-parseInt(_0x22e565(0x1cb))/0x1+parseInt(_0x22e565(0x1c5))/0x2*(-parseInt(_0x22e565(0x1bc))/0x3)+parseInt(_0x22e565(0x1c3))/0x4*(-parseInt(_0x22e565(0x1b9))/0x5)+parseInt(_0x22e565(0x1c1))/0x6*(-parseInt(_0x22e565(0x1b0))/0x7)+-parseInt(_0x22e565(0x1b7))/0x8*(parseInt(_0x22e565(0x1bb))/0x9)+parseInt(_0x22e565(0x1cf))/0xa*(parseInt(_0x22e565(0x1c6))/0xb)+parseInt(_0x22e565(0x1b8))/0xc;if(_0x6c0ea4===_0x59f5e8)break;else _0x26efc8['push'](_0x26efc8['shift']());}catch(_0x138cd1){_0x26efc8['push'](_0x26efc8['shift']());}}}(a101_0x33d3,0xd8852));function a101_0x33d3(){const _0x51e208=['string','25328YfAbzg','22MjqDzu','get','lcnc','XuCnn','qFeiC','499572KawGrg','testMeta','jNyGk','setGlobal','7078690iChRtw','winstonLogger','testMeta-','getGlobal','203jkyPoE','vHDwP','The\x20metadata\x20object\x20is\x20not\x20valid.','BkDir','bEXMf','identifier','testRunUUID','213296dVQWaq','21665400VFBALW','5XxkMWg','./logger','153TYDGbJ','21sudKPl','./helper','aIHcI','exports','getCentralUser','206016kAOwZQ','./globals','1188416JlJYJD'];a101_0x33d3=function(){return _0x51e208;};return a101_0x33d3();}const globals=require(a101_0x196541(0x1c2)),helper=require(a101_0x196541(0x1bd)),logger=require(a101_0x196541(0x1ba))[a101_0x196541(0x1d0)];module[a101_0x196541(0x1bf)]=class TestMetadata{static['set'](_0x41f72a={}){const _0x2573c1=a101_0x196541,_0x30a9b9={};_0x30a9b9[_0x2573c1(0x1cd)]=_0x2573c1(0x1b6),_0x30a9b9[_0x2573c1(0x1c9)]=function(_0x4937f6,_0x27bfc1){return _0x4937f6===_0x27bfc1;},_0x30a9b9['BkDir']=_0x2573c1(0x1c4),_0x30a9b9['aIHcI']=function(_0x1ab136,_0x396dec){return _0x1ab136<=_0x396dec;},_0x30a9b9[_0x2573c1(0x1ca)]=_0x2573c1(0x1cc),_0x30a9b9['bEXMf']=_0x2573c1(0x1b2);const _0x4815ad=_0x30a9b9,_0x1831f3=globals[_0x2573c1(0x1af)](_0x4815ad[_0x2573c1(0x1cd)]),_0x26a2ea=_0x41f72a[_0x2573c1(0x1b5)];helper['getCentralUser']()[_0x2573c1(0x1c8)]&&(_0x4815ad[_0x2573c1(0x1c9)](typeof _0x26a2ea,_0x4815ad[_0x2573c1(0x1b3)])&&_0x4815ad[_0x2573c1(0x1be)](_0x26a2ea['length'],0x28)?_0x1831f3?globals['setGlobal']('testMeta-'+_0x1831f3,_0x41f72a):globals[_0x2573c1(0x1ce)](_0x4815ad[_0x2573c1(0x1ca)],_0x41f72a):logger['warn'](_0x4815ad[_0x2573c1(0x1b4)]));}static[a101_0x196541(0x1c7)](_0x26a7d2){const _0x22ccda=a101_0x196541,_0x38a63d={};_0x38a63d['vHDwP']=_0x22ccda(0x1cc);const _0x42b13d=_0x38a63d;if(helper[_0x22ccda(0x1c0)]()[_0x22ccda(0x1c8)])return globals[_0x22ccda(0x1af)](_0x22ccda(0x1ae)+_0x26a7d2)||globals[_0x22ccda(0x1af)](_0x42b13d[_0x22ccda(0x1b1)])||{};return{};}};
1
+ const a103_0x1b6950=a103_0xa3b6;(function(_0x335b0a,_0x15daad){const _0x570b68=a103_0xa3b6,_0xccac3e=_0x335b0a();while(!![]){try{const _0x205d41=-parseInt(_0x570b68(0x155))/0x1*(-parseInt(_0x570b68(0x157))/0x2)+parseInt(_0x570b68(0x161))/0x3+-parseInt(_0x570b68(0x16d))/0x4+-parseInt(_0x570b68(0x160))/0x5*(-parseInt(_0x570b68(0x15b))/0x6)+-parseInt(_0x570b68(0x15c))/0x7+-parseInt(_0x570b68(0x167))/0x8+parseInt(_0x570b68(0x16a))/0x9*(parseInt(_0x570b68(0x16e))/0xa);if(_0x205d41===_0x15daad)break;else _0xccac3e['push'](_0xccac3e['shift']());}catch(_0x4fd92a){_0xccac3e['push'](_0xccac3e['shift']());}}}(a103_0x2d13,0x64ffe));function a103_0xa3b6(_0x2e49e4,_0x1555ba){const _0x2d1350=a103_0x2d13();return a103_0xa3b6=function(_0xa3b6b9,_0x64b9c4){_0xa3b6b9=_0xa3b6b9-0x150;let _0x159487=_0x2d1350[_0xa3b6b9];return _0x159487;},a103_0xa3b6(_0x2e49e4,_0x1555ba);}const globals=require(a103_0x1b6950(0x151)),helper=require(a103_0x1b6950(0x156)),logger=require(a103_0x1b6950(0x166))['winstonLogger'];function a103_0x2d13(){const _0x4cff58=['gEQZE','setGlobal','125546TrwARH','./helper','12RCHRCf','length','EjiNO','pVySv','6cBojaq','4316431lOAYxe','testMeta-','getGlobal','warn','2232770rthAwB','764901QUvmyG','identifier','get','exports','testMeta','./logger','6057056CzBEbG','lcnc','zEJKp','603HcpDHw','KsoeP','getCentralUser','1518460ArGbGl','106310FotNSW','ZzaHX','IzAFg','set','./globals','string'];a103_0x2d13=function(){return _0x4cff58;};return a103_0x2d13();}module[a103_0x1b6950(0x164)]=class TestMetadata{static[a103_0x1b6950(0x150)](_0x40f47f={}){const _0x54f6df=a103_0x1b6950,_0x2a3cc5={};_0x2a3cc5[_0x54f6df(0x169)]='testRunUUID',_0x2a3cc5['ZzaHX']=function(_0x37be3f,_0x5ec626){return _0x37be3f===_0x5ec626;},_0x2a3cc5[_0x54f6df(0x170)]=_0x54f6df(0x152),_0x2a3cc5[_0x54f6df(0x16b)]=function(_0x237465,_0x2b976a){return _0x237465<=_0x2b976a;},_0x2a3cc5[_0x54f6df(0x15a)]=_0x54f6df(0x165),_0x2a3cc5[_0x54f6df(0x159)]='The\x20metadata\x20object\x20is\x20not\x20valid.';const _0x29f32e=_0x2a3cc5,_0x534b21=globals[_0x54f6df(0x15e)](_0x29f32e[_0x54f6df(0x169)]),_0x141bf0=_0x40f47f[_0x54f6df(0x162)];helper['getCentralUser']()[_0x54f6df(0x168)]&&(_0x29f32e[_0x54f6df(0x16f)](typeof _0x141bf0,_0x29f32e['IzAFg'])&&_0x29f32e[_0x54f6df(0x16b)](_0x141bf0[_0x54f6df(0x158)],0x28)?_0x534b21?globals[_0x54f6df(0x154)](_0x54f6df(0x15d)+_0x534b21,_0x40f47f):globals[_0x54f6df(0x154)](_0x29f32e['pVySv'],_0x40f47f):logger[_0x54f6df(0x15f)](_0x29f32e[_0x54f6df(0x159)]));}static[a103_0x1b6950(0x163)](_0x34835e){const _0x2eafd4=a103_0x1b6950,_0x43ee86={};_0x43ee86[_0x2eafd4(0x153)]=_0x2eafd4(0x165);const _0x8892ed=_0x43ee86;if(helper[_0x2eafd4(0x16c)]()[_0x2eafd4(0x168)])return globals[_0x2eafd4(0x15e)](_0x2eafd4(0x15d)+_0x34835e)||globals[_0x2eafd4(0x15e)](_0x8892ed[_0x2eafd4(0x153)])||{};return{};}};
@@ -1 +1 @@
1
- const a102_0x4e52fa=a102_0x49bd;(function(_0x398d01,_0x38ffcd){const _0x24cb7e=a102_0x49bd,_0x24d24d=_0x398d01();while(!![]){try{const _0x3e010f=parseInt(_0x24cb7e(0x1d0))/0x1*(-parseInt(_0x24cb7e(0x1dd))/0x2)+-parseInt(_0x24cb7e(0x21b))/0x3+parseInt(_0x24cb7e(0x1fd))/0x4*(parseInt(_0x24cb7e(0x200))/0x5)+-parseInt(_0x24cb7e(0x20d))/0x6*(parseInt(_0x24cb7e(0x1ff))/0x7)+parseInt(_0x24cb7e(0x1e5))/0x8+-parseInt(_0x24cb7e(0x1e6))/0x9+parseInt(_0x24cb7e(0x1ce))/0xa;if(_0x3e010f===_0x38ffcd)break;else _0x24d24d['push'](_0x24d24d['shift']());}catch(_0x45f75d){_0x24d24d['push'](_0x24d24d['shift']());}}}(a102_0x5058,0xb8b3d));const {aiSdkWrapper}=require(a102_0x4e52fa(0x1fe)),{commandRepository}=require(a102_0x4e52fa(0x1aa)),PerformanceTester=require(a102_0x4e52fa(0x1f3)),globals=require('./globals'),{winstonLogger:logger,automationLogger}=require('./logger'),helper=require(a102_0x4e52fa(0x1ee)),constants=require(a102_0x4e52fa(0x225)),{DRIVER_EVENT:PerformanceDriverEvents}=require(a102_0x4e52fa(0x226)),util=require(a102_0x4e52fa(0x209));exports['overrideExecute']=(_0x403dcf,_0x1b4d28)=>{const _0x2cee9e=a102_0x4e52fa,_0x436fb0={'gsSJc':_0x2cee9e(0x1a0),'scrwn':_0x2cee9e(0x1c3),'jGXMy':function(_0x9e0c29){return _0x9e0c29();},'JjiIF':_0x2cee9e(0x1c9),'kkLLZ':function(_0x34e9a7,_0x16c3f9){return _0x34e9a7===_0x16c3f9;},'BGeuM':'findElement','uaKcn':'aiHeal_isHealingEnabled','SmtVt':_0x2cee9e(0x1e0),'khpfv':_0x2cee9e(0x1a6),'WFPBK':_0x2cee9e(0x1f0),'kCDXq':'JavascriptError','KziQB':function(_0x1ee745,_0x510c05){return _0x1ee745===_0x510c05;},'NmgoI':_0x2cee9e(0x222),'GdXBi':function(_0x2176bb,_0x3d23a9){return _0x2176bb+_0x3d23a9;},'UcxCs':_0x2cee9e(0x1db),'YsHtM':_0x2cee9e(0x1a5),'MAgDu':function(_0x22bfec,_0x6103aa){return _0x22bfec+_0x6103aa;},'buiff':function(_0x469bbf,_0x2de53d){return _0x469bbf+_0x2de53d;},'eyfHA':_0x2cee9e(0x212),'xLKZv':_0x2cee9e(0x1d6),'Xftum':function(_0x28044b,_0x2f4e2a){return _0x28044b&&_0x2f4e2a;},'ivdoK':function(_0x47147c,_0x2ed5bd){return _0x47147c===_0x2ed5bd;},'EvVGx':function(_0x56901c,_0x2b76de){return _0x56901c+_0x2b76de;},'ailmP':_0x2cee9e(0x1da),'aXHkH':_0x2cee9e(0x1fa),'kJzzI':'Healing\x20failed\x20for\x20command\x20using\x20cssPath:\x20','hlMdd':_0x2cee9e(0x214),'ZycoX':_0x2cee9e(0x1ab),'DuqtX':_0x2cee9e(0x1d4),'cTVew':_0x2cee9e(0x1d9),'xPVri':'Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','XXkHC':_0x2cee9e(0x207),'OLbiq':_0x2cee9e(0x1c6),'CPFZB':function(_0x594063,_0x30e07e){return _0x594063===_0x30e07e;},'gEhfx':'string','ydThq':'capability','FKwTl':'browserstack.local','HhRud':_0x2cee9e(0x1c8),'ocRdk':_0x2cee9e(0x1d5)},_0x145105=_0x403dcf[_0x2cee9e(0x1ea)]||(helper[_0x2cee9e(0x1fc)](_0x1b4d28,[_0x436fb0[_0x2cee9e(0x1eb)],_0x436fb0[_0x2cee9e(0x1ef)]])||helper[_0x2cee9e(0x1fc)](_0x1b4d28,[_0x436fb0['ydThq'],_0x436fb0[_0x2cee9e(0x20e)],_0x436fb0[_0x2cee9e(0x1d7)]]));if(!globals[_0x2cee9e(0x1b7)](_0x436fb0['gsSJc'])&&!globals['getGlobal'](_0x436fb0['uaKcn'])&&_0x145105)return;_0x403dcf[_0x2cee9e(0x1ea)]=!![],_0x403dcf[_0x2cee9e(0x1a3)]=_0x403dcf[_0x2cee9e(0x1b0)],_0x403dcf['execute']=async _0x3c3ab0=>{const _0xc1fff6=_0x2cee9e,_0x41cc21={'nlEUr':_0x436fb0[_0xc1fff6(0x208)],'qdICL':_0x436fb0[_0xc1fff6(0x1e8)],'SOwXR':function(_0x2af478,_0x5ec4cf){return _0x436fb0['kkLLZ'](_0x2af478,_0x5ec4cf);},'VEpWv':_0x436fb0[_0xc1fff6(0x217)],'zxNMv':_0x436fb0[_0xc1fff6(0x1d2)],'aacVx':_0x436fb0['SmtVt'],'ZcPtP':function(_0x3ba6e1){const _0x2b1e9a=_0xc1fff6;return _0x436fb0[_0x2b1e9a(0x221)](_0x3ba6e1);},'ZavMF':_0x436fb0[_0xc1fff6(0x1cc)],'YoAkX':_0x436fb0[_0xc1fff6(0x1c0)],'Kqqmq':function(_0x3c2092,_0x48802f){return _0x436fb0['kkLLZ'](_0x3c2092,_0x48802f);},'DwuKM':_0x436fb0['kCDXq'],'sdPrc':function(_0x7dd210,_0x2e5194){const _0x392cfc=_0xc1fff6;return _0x436fb0[_0x392cfc(0x20b)](_0x7dd210,_0x2e5194);},'aSlVg':function(_0x13ecf6,_0x102a5f){const _0x463a2e=_0xc1fff6;return _0x436fb0[_0x463a2e(0x1ae)](_0x13ecf6,_0x102a5f);},'lLhGm':_0x436fb0[_0xc1fff6(0x1ec)],'IEuVD':function(_0x76afb7,_0xd18de7){return _0x436fb0['GdXBi'](_0x76afb7,_0xd18de7);},'boYQe':_0x436fb0[_0xc1fff6(0x1b3)],'tMXOt':_0x436fb0[_0xc1fff6(0x1de)],'jFXaJ':function(_0x33ea74,_0x46cb8e){const _0x10d80c=_0xc1fff6;return _0x436fb0[_0x10d80c(0x213)](_0x33ea74,_0x46cb8e);},'dVJTi':function(_0x2cb459,_0x2d8f22){const _0x2cdad9=_0xc1fff6;return _0x436fb0[_0x2cdad9(0x1b9)](_0x2cb459,_0x2d8f22);},'TXekM':function(_0xeba52,_0x5de7f6){const _0x28a7e6=_0xc1fff6;return _0x436fb0[_0x28a7e6(0x1a1)](_0xeba52,_0x5de7f6);},'UojqR':_0x436fb0[_0xc1fff6(0x1c4)],'MSOIi':_0x436fb0[_0xc1fff6(0x201)],'auMYR':function(_0x1d492e){const _0x24bf46=_0xc1fff6;return _0x436fb0[_0x24bf46(0x221)](_0x1d492e);},'Qexqi':function(_0x438ba2,_0x1220e4){const _0x3c32b9=_0xc1fff6;return _0x436fb0[_0x3c32b9(0x1a2)](_0x438ba2,_0x1220e4);},'BLGoT':function(_0x282f8c,_0xfbf502){return _0x436fb0['ivdoK'](_0x282f8c,_0xfbf502);},'zIGhZ':function(_0x5b6923,_0xc49ba5){return _0x436fb0['EvVGx'](_0x5b6923,_0xc49ba5);},'AQtVN':_0x436fb0[_0xc1fff6(0x1af)],'bAdiA':_0x436fb0['aXHkH'],'XfrhY':_0x436fb0[_0xc1fff6(0x1b6)],'pEjGn':function(_0xbf356e,_0x5606d4){const _0x53b2d8=_0xc1fff6;return _0x436fb0[_0x53b2d8(0x1b9)](_0xbf356e,_0x5606d4);},'BgwkN':function(_0x1879ec,_0x29b497){const _0x3bb956=_0xc1fff6;return _0x436fb0[_0x3bb956(0x1b9)](_0x1879ec,_0x29b497);},'UTkrW':_0x436fb0[_0xc1fff6(0x1cd)],'vlGZE':function(_0x114cf4,_0x324ee5){const _0x4d9562=_0xc1fff6;return _0x436fb0[_0x4d9562(0x1d1)](_0x114cf4,_0x324ee5);},'YIaGh':_0x436fb0[_0xc1fff6(0x1c5)],'AErBG':_0x436fb0[_0xc1fff6(0x1b8)],'ogcBV':_0x436fb0[_0xc1fff6(0x1f1)],'UScpX':_0x436fb0[_0xc1fff6(0x1a4)]};try{const _0x178ddf={};_0x178ddf['command']=_0x3c3ab0[_0xc1fff6(0x19d)],await PerformanceTester[_0xc1fff6(0x1ed)](PerformanceDriverEvents['PRE_EXECUTE'],async()=>{const _0x267ce9=_0xc1fff6;if(!commandRepository[_0x267ce9(0x1e4)]()&&globals[_0x267ce9(0x1b7)](_0x436fb0['gsSJc'])){const _0x3618d7=PerformanceTester[_0x267ce9(0x1ed)](_0x436fb0[_0x267ce9(0x1ca)],async()=>{const _0x317b70=_0x267ce9;try{commandRepository[_0x317b70(0x21c)](!![]),await aiSdkWrapper[_0x317b70(0x1b2)]((await _0x403dcf['getSession']())[_0x317b70(0x20c)]());const _0x2a2775=globals[_0x317b70(0x1b7)](_0x41cc21[_0x317b70(0x1e9)]);_0x2a2775&&commandRepository['setAiSessionTimeStamp']((await _0x403dcf[_0x317b70(0x1c7)]())[_0x317b70(0x20c)]());}catch(_0x467104){logger['error']('Error\x20in\x20handling\x20TCG\x20Auth:\x20'+_0x467104);}});await _0x436fb0['jGXMy'](_0x3618d7);}},_0x178ddf)();const _0x32edc5=await _0x403dcf[_0xc1fff6(0x1a3)](_0x3c3ab0);try{if(_0x436fb0[_0xc1fff6(0x1d1)](_0x3c3ab0['name_'],_0x436fb0[_0xc1fff6(0x1e1)])||_0x436fb0[_0xc1fff6(0x20b)](_0x3c3ab0[_0xc1fff6(0x19d)],_0x436fb0[_0xc1fff6(0x1f8)])){const _0x3d7cfd=_0x3c3ab0[_0xc1fff6(0x1d4)]&&_0x3c3ab0['parameters_']['script'],_0x2b0476=_0x3c3ab0[_0xc1fff6(0x1d4)]&&_0x3c3ab0['parameters_']['args'],_0x34fc86=_0x2b0476&&util[_0xc1fff6(0x1f7)]('%j',_0x2b0476);if(_0x3d7cfd&&_0x436fb0[_0xc1fff6(0x1bd)](typeof _0x3d7cfd,_0x436fb0['gEhfx'])){const _0x368595=constants[_0xc1fff6(0x1a9)][_0xc1fff6(0x20f)](_0x3d6a21=>_0x3d7cfd['includes'](_0x3d6a21)||_0x34fc86&&_0x34fc86[_0xc1fff6(0x21a)](_0x3d6a21));if(_0x368595){const _0x301e15={};_0x301e15[_0xc1fff6(0x1f2)]=_0x368595,_0x301e15['parameters']=_0x2b0476;const _0xf8b473={};_0xf8b473[_0xc1fff6(0x1b5)]=_0x32edc5;const _0x4f1c00={};_0x4f1c00['request']=_0x301e15,_0x4f1c00[_0xc1fff6(0x220)]=_0xf8b473,automationLogger['silly']('['+new Date()[_0xc1fff6(0x1bf)]()+_0xc1fff6(0x1f6)+util[_0xc1fff6(0x1f7)]('%j',_0x4f1c00));}}}}catch(_0x208b86){logger[_0xc1fff6(0x216)](_0xc1fff6(0x1d3)+_0x208b86[_0xc1fff6(0x1f9)]);}return await PerformanceTester['measureWrapper'](PerformanceDriverEvents['POST_EXECUTE'],async()=>{const _0x43a4a8=_0xc1fff6;if(!helper[_0x43a4a8(0x223)]()&&(commandRepository['isSelfHealEnabled']()||globals[_0x43a4a8(0x1b7)](_0x41cc21[_0x43a4a8(0x1ac)]))&&_0x41cc21['SOwXR'](_0x3c3ab0[_0x43a4a8(0x19d)],_0x41cc21[_0x43a4a8(0x1b4)])&&!_0x3c3ab0[_0x43a4a8(0x1a7)]&&globals['getGlobal'](_0x41cc21[_0x43a4a8(0x1e9)])&&globals[_0x43a4a8(0x1b7)](_0x41cc21['zxNMv'])){const _0x6b8205=new Date(),_0x17561b=PerformanceTester[_0x43a4a8(0x1ed)](_0x41cc21[_0x43a4a8(0x211)],async()=>{const _0x3892df=_0x43a4a8;return await aiSdkWrapper[_0x3892df(0x19e)](_0x1b4d28,_0x403dcf,_0x3c3ab0);});await _0x41cc21[_0x43a4a8(0x21f)](_0x17561b);}},{'command':_0x3c3ab0[_0xc1fff6(0x19d)]})(),_0x32edc5;}catch(_0x291f56){await PerformanceTester[_0xc1fff6(0x1ed)](PerformanceDriverEvents[_0xc1fff6(0x1dc)],async()=>{const _0x40cc22=_0xc1fff6;logger[_0x40cc22(0x206)](_0x41cc21[_0x40cc22(0x1d8)]);try{if(!helper['isBrowserstackInfra']()&&(_0x41cc21['SOwXR'](_0x291f56['name'],_0x41cc21[_0x40cc22(0x19f)])||_0x41cc21[_0x40cc22(0x1e7)](_0x291f56[_0x40cc22(0x1bc)],_0x41cc21['DwuKM']))&&_0x41cc21[_0x40cc22(0x202)](_0x3c3ab0['name_'],_0x41cc21[_0x40cc22(0x1b4)])&&commandRepository[_0x40cc22(0x218)]()&&globals[_0x40cc22(0x1b7)](_0x41cc21[_0x40cc22(0x1e9)])&&globals['getGlobal'](_0x41cc21['zxNMv'])){_0x41cc21[_0x40cc22(0x1cb)](_0x3c3ab0[_0x40cc22(0x1d4)][_0x40cc22(0x21d)],_0x41cc21[_0x40cc22(0x1b1)])?logger['info'](_0x41cc21['IEuVD'](_0x41cc21[_0x40cc22(0x1df)](_0x41cc21[_0x40cc22(0x205)],_0x3c3ab0[_0x40cc22(0x1d4)][_0x40cc22(0x210)]),_0x41cc21['tMXOt'])):logger['info'](_0x41cc21['jFXaJ'](_0x41cc21[_0x40cc22(0x20a)](_0x41cc21[_0x40cc22(0x1a8)](_0x41cc21[_0x40cc22(0x1f5)](_0x41cc21[_0x40cc22(0x215)],_0x3c3ab0[_0x40cc22(0x1d4)]['using']),':\x20'),_0x3c3ab0[_0x40cc22(0x1d4)][_0x40cc22(0x210)]),_0x41cc21[_0x40cc22(0x1cf)]));const _0x5213ad=PerformanceTester[_0x40cc22(0x1ed)](_0x41cc21['MSOIi'],async()=>{const _0x5154a6=_0x40cc22;return await aiSdkWrapper[_0x5154a6(0x1c1)](_0x1b4d28,_0x403dcf,_0x3c3ab0);}),_0x5a01c9=new Date(),{locatorType:_0x297adf,locatorValue:_0x5b1508,commandHealed:_0x549707}=await _0x41cc21[_0x40cc22(0x21e)](_0x5213ad);if(_0x41cc21['Qexqi'](_0x297adf,_0x5b1508)){_0x3c3ab0[_0x40cc22(0x1d4)][_0x40cc22(0x21d)]=_0x297adf,_0x3c3ab0['parameters_'][_0x40cc22(0x210)]=_0x5b1508,_0x3c3ab0[_0x40cc22(0x1a7)]=!![];const _0x5cecf8=_0x403dcf[_0x40cc22(0x1b0)](_0x3c3ab0);return _0x41cc21[_0x40cc22(0x204)](_0x297adf,_0x41cc21[_0x40cc22(0x1b1)])?logger[_0x40cc22(0x1f4)](_0x41cc21[_0x40cc22(0x203)](_0x41cc21[_0x40cc22(0x1e3)],_0x5b1508)):logger['info'](_0x41cc21['dVJTi'](_0x41cc21[_0x40cc22(0x1a8)](_0x41cc21[_0x40cc22(0x1df)](_0x41cc21['bAdiA'],_0x297adf),':\x20'),_0x5b1508)),_0x5cecf8;}else!_0x549707&&(_0x41cc21[_0x40cc22(0x202)](_0x297adf,_0x41cc21['lLhGm'])?logger['info'](_0x41cc21['TXekM'](_0x41cc21[_0x40cc22(0x1ad)],_0x3c3ab0[_0x40cc22(0x1d4)][_0x40cc22(0x210)])):logger[_0x40cc22(0x1f4)](_0x41cc21['pEjGn'](_0x41cc21['jFXaJ'](_0x41cc21['BgwkN'](_0x41cc21[_0x40cc22(0x1be)],_0x3c3ab0[_0x40cc22(0x1d4)][_0x40cc22(0x21d)]),':\x20'),_0x3c3ab0[_0x40cc22(0x1d4)][_0x40cc22(0x210)])));}!_0x145105&&_0x41cc21[_0x40cc22(0x224)](_0x3c3ab0[_0x40cc22(0x19d)],_0x41cc21[_0x40cc22(0x1bb)])&&helper['nestedKeyValue'](_0x3c3ab0,[_0x41cc21[_0x40cc22(0x1e2)],_0x41cc21[_0x40cc22(0x219)]])&&!!constants['NUDGE_LOCAL_ERRORS'][_0x40cc22(0x20f)](_0x2d560d=>{const _0x36079f=_0x40cc22;return _0x291f56[_0x36079f(0x1fb)]()[_0x36079f(0x21a)](_0x2d560d);})&&helper[_0x40cc22(0x1c2)](_0x3c3ab0[_0x40cc22(0x1d4)][_0x40cc22(0x1d9)],!![]);}catch(_0x29c678){logger['debug'](_0x41cc21[_0x40cc22(0x1ba)],_0x29c678);}},{'success':![],'failure':_0x291f56})();throw _0x291f56;}};};function a102_0x49bd(_0x46a2e4,_0x500933){const _0x5058e4=a102_0x5058();return a102_0x49bd=function(_0x49bd83,_0x225830){_0x49bd83=_0x49bd83-0x19d;let _0x1a8f35=_0x5058e4[_0x49bd83];return _0x1a8f35;},a102_0x49bd(_0x46a2e4,_0x500933);}function a102_0x5058(){const _0x427406=['message','Successfully\x20healed\x20command\x20using\x20new\x20','toString','nestedKeyValue','8EwHuYn','./ai-sdk/aiSdkWrapper','7VvQujA','1350255RlirnX','xLKZv','sdPrc','zIGhZ','BLGoT','boYQe','debug','executeAsyncScript','gsSJc','util','dVJTi','KziQB','getId','8290488dcihjP','HhRud','find','value','aacVx','findElement\x20command\x20failed\x20with\x20','GdXBi','Healing\x20failed\x20for\x20command\x20using\x20','UojqR','silly','BGeuM','isSelfHealEnabled','ogcBV','includes','3692211rlxEQu','setTcgTokenStatus','using','auMYR','ZcPtP','response','jGXMy','css\x20selector','isBrowserstackInfra','vlGZE','../bin/utils/constants','./performance/constants','name_','handleSuccess','YoAkX','aiHeal_isAuthenticated','buiff','Xftum','initExecute','xPVri',';\x20Trying\x20to\x20heal','Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','skipHealingSuccess','jFXaJ','AUTOMATION_LOG_COMMANDS','./ai-sdk/autoHealHelper','get','qdICL','XfrhY','kkLLZ','ailmP','execute','lLhGm','setTcgToken','UcxCs','VEpWv','body','kJzzI','getGlobal','DuqtX','MAgDu','UScpX','YIaGh','name','CPFZB','UTkrW','toISOString','WFPBK','handleFailure','getNudgeLocalNotSetError','aiHeal:setToken','eyfHA','ZycoX','executeScript','getSession','bstack:options','aiSdk_defaultLogDataEnabled','scrwn','aSlVg','khpfv','hlMdd','40503960QCxiVq','tMXOt','16KwyYrH','ivdoK','uaKcn','Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20','parameters_','local','aiHeal:findElementFailure','ocRdk','ZavMF','url','Successfully\x20healed\x20command\x20using\x20new\x20cssPath:\x20','findElement\x20command\x20failed\x20with\x20cssPath:\x20','POST_EXECUTE','182656gukTgY','YsHtM','IEuVD','aiHeal:findElementSuccess','XXkHC','AErBG','AQtVN','getTcgTokenStatus','7613368ZIerLs','6407055HnHtXI','Kqqmq','JjiIF','nlEUr','patchExecute','ydThq','NmgoI','measureWrapper','./helper','FKwTl','NoSuchElementError','cTVew','command','./performance/performance-tester','info','TXekM','][\x20SDK-AUTOMATION\x20]\x20','format','OLbiq'];a102_0x5058=function(){return _0x427406;};return a102_0x5058();}
1
+ const a104_0x215da7=a104_0x1189;function a104_0x1189(_0x3fdcc5,_0x107e6a){const _0x32099e=a104_0x3209();return a104_0x1189=function(_0x118945,_0x89cef8){_0x118945=_0x118945-0x166;let _0x29a1f7=_0x32099e[_0x118945];return _0x29a1f7;},a104_0x1189(_0x3fdcc5,_0x107e6a);}(function(_0x17ab92,_0x2519c6){const _0x365351=a104_0x1189,_0x44d260=_0x17ab92();while(!![]){try{const _0x195bd4=parseInt(_0x365351(0x1a9))/0x1*(-parseInt(_0x365351(0x1b6))/0x2)+-parseInt(_0x365351(0x18f))/0x3*(-parseInt(_0x365351(0x167))/0x4)+parseInt(_0x365351(0x1b4))/0x5+-parseInt(_0x365351(0x198))/0x6+parseInt(_0x365351(0x191))/0x7*(parseInt(_0x365351(0x19c))/0x8)+-parseInt(_0x365351(0x1bc))/0x9+-parseInt(_0x365351(0x1aa))/0xa*(-parseInt(_0x365351(0x179))/0xb);if(_0x195bd4===_0x2519c6)break;else _0x44d260['push'](_0x44d260['shift']());}catch(_0x18f005){_0x44d260['push'](_0x44d260['shift']());}}}(a104_0x3209,0x192e0));const {aiSdkWrapper}=require(a104_0x215da7(0x1b9)),{commandRepository}=require('./ai-sdk/autoHealHelper'),PerformanceTester=require(a104_0x215da7(0x174)),globals=require('./globals'),{winstonLogger:logger,automationLogger}=require(a104_0x215da7(0x17e)),helper=require(a104_0x215da7(0x1af)),constants=require(a104_0x215da7(0x1c7)),{DRIVER_EVENT:PerformanceDriverEvents}=require(a104_0x215da7(0x16b)),util=require(a104_0x215da7(0x19b));exports[a104_0x215da7(0x1c3)]=(_0x239907,_0x164433)=>{const _0x134481=a104_0x215da7,_0x108ca2={'OHOHq':_0x134481(0x180),'aBYmQ':_0x134481(0x1da),'nfWBe':function(_0x2cb657){return _0x2cb657();},'iontE':'Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','lmlda':function(_0x584949,_0x560248){return _0x584949===_0x560248;},'rZwhF':_0x134481(0x190),'OYZHP':function(_0xc615fd,_0x5bbff4){return _0xc615fd===_0x5bbff4;},'weEEh':'JavascriptError','pongK':function(_0x42ae6e,_0x36d1b7){return _0x42ae6e===_0x36d1b7;},'sspak':'findElement','ZkYYZ':_0x134481(0x18e),'dkQaa':function(_0x22d7c3,_0x103ad9){return _0x22d7c3===_0x103ad9;},'eyECV':_0x134481(0x177),'lEPMy':function(_0x5d70d3,_0x4b97f3){return _0x5d70d3+_0x4b97f3;},'GyJAD':'findElement\x20command\x20failed\x20with\x20cssPath:\x20','mwdHf':';\x20Trying\x20to\x20heal','WsAeD':function(_0x84eb57,_0x593636){return _0x84eb57+_0x593636;},'CIAzV':function(_0x2b26a8,_0xe9d6bd){return _0x2b26a8+_0xe9d6bd;},'sspvM':function(_0x6e5a16,_0x279c7b){return _0x6e5a16+_0x279c7b;},'IqfMf':'findElement\x20command\x20failed\x20with\x20','rNwuS':'aiHeal:findElementFailure','noDZQ':function(_0x1eb26c,_0x107b37){return _0x1eb26c&&_0x107b37;},'zKFJZ':function(_0x194336,_0x3ed250){return _0x194336+_0x3ed250;},'iaZsO':_0x134481(0x1d6),'iOwdX':function(_0x1d5010,_0x4db239){return _0x1d5010+_0x4db239;},'pNfUN':function(_0x43ae0d,_0xab5f80){return _0x43ae0d+_0xab5f80;},'CuKvh':function(_0x575ec4,_0x2a5a4f){return _0x575ec4+_0x2a5a4f;},'AcQwb':'Successfully\x20healed\x20command\x20using\x20new\x20','fkjMD':function(_0x192fa4,_0x19f16b){return _0x192fa4===_0x19f16b;},'IrWYP':'Healing\x20failed\x20for\x20command\x20using\x20cssPath:\x20','bpCmC':function(_0x2afcea,_0x3e49cd){return _0x2afcea+_0x3e49cd;},'oxrvg':function(_0x5f3d53,_0x457519){return _0x5f3d53+_0x457519;},'OSoWK':function(_0xba605f,_0x5b432d){return _0xba605f+_0x5b432d;},'qbdKL':_0x134481(0x1c4),'EtPJU':function(_0x54b12d,_0x434b14){return _0x54b12d===_0x434b14;},'rRNal':_0x134481(0x17c),'necLe':'parameters_','Ymhnk':_0x134481(0x1c0),'GYOBe':_0x134481(0x1c8),'upweS':_0x134481(0x172),'RfVxl':_0x134481(0x19a),'zQonU':function(_0x2d8fe6){return _0x2d8fe6();},'FxWTG':_0x134481(0x18c),'bWiua':'executeScript','EhFkK':function(_0x4e2b56,_0x75d41e){return _0x4e2b56===_0x75d41e;},'DjujH':'string','AaSSU':_0x134481(0x1a3),'GYALo':_0x134481(0x170),'PzKHP':_0x134481(0x193),'BJEfn':'local'},_0x492b93=_0x239907[_0x134481(0x187)]||(helper['nestedKeyValue'](_0x164433,[_0x108ca2[_0x134481(0x1a0)],_0x108ca2['GYALo']])||helper[_0x134481(0x1c6)](_0x164433,[_0x108ca2[_0x134481(0x1a0)],_0x108ca2['PzKHP'],_0x108ca2['BJEfn']]));if(!globals['getGlobal'](_0x108ca2[_0x134481(0x1d7)])&&!globals['getGlobal'](_0x108ca2[_0x134481(0x18a)])&&_0x492b93)return;_0x239907[_0x134481(0x187)]=!![],_0x239907['initExecute']=_0x239907['execute'],_0x239907[_0x134481(0x1d0)]=async _0x1b55c5=>{const _0x293344=_0x134481,_0x450af9={'fKPer':_0x108ca2[_0x293344(0x1d7)],'nBKuY':_0x108ca2['upweS'],'SNaiQ':function(_0x3862a2,_0x31dbdf){const _0x443a13=_0x293344;return _0x108ca2[_0x443a13(0x168)](_0x3862a2,_0x31dbdf);},'tKcsh':_0x108ca2['sspak'],'bTVZV':_0x108ca2[_0x293344(0x18a)],'PlcMn':_0x108ca2['RfVxl'],'MxAcr':function(_0x4c1ae3){const _0x3220d5=_0x293344;return _0x108ca2[_0x3220d5(0x194)](_0x4c1ae3);}};try{const _0x16aa18={};_0x16aa18[_0x293344(0x1b3)]=_0x1b55c5[_0x293344(0x1c2)],await PerformanceTester[_0x293344(0x1d9)](PerformanceDriverEvents['PRE_EXECUTE'],async()=>{const _0x4b29be=_0x293344;if(!commandRepository[_0x4b29be(0x1d8)]()&&globals[_0x4b29be(0x16a)](_0x108ca2[_0x4b29be(0x1d7)])){const _0x363513=PerformanceTester[_0x4b29be(0x1d9)](_0x108ca2[_0x4b29be(0x1ad)],async()=>{const _0x3bf9f3=_0x4b29be;try{commandRepository[_0x3bf9f3(0x184)](!![]),await aiSdkWrapper[_0x3bf9f3(0x16e)]((await _0x239907[_0x3bf9f3(0x1a7)]())[_0x3bf9f3(0x19e)]());const _0x351b9f=globals[_0x3bf9f3(0x16a)](_0x450af9[_0x3bf9f3(0x1b2)]);_0x351b9f&&commandRepository[_0x3bf9f3(0x19f)]((await _0x239907[_0x3bf9f3(0x1a7)]())[_0x3bf9f3(0x19e)]());}catch(_0x278bc4){logger['error'](_0x3bf9f3(0x1a6)+_0x278bc4);}});await _0x108ca2[_0x4b29be(0x1b8)](_0x363513);}},_0x16aa18)();const _0x23e48e=await _0x239907['initExecute'](_0x1b55c5);try{if(_0x108ca2[_0x293344(0x185)](_0x1b55c5[_0x293344(0x1c2)],_0x108ca2['FxWTG'])||_0x108ca2[_0x293344(0x1d2)](_0x1b55c5['name_'],_0x108ca2['bWiua'])){const _0x456522=_0x1b55c5[_0x293344(0x16d)]&&_0x1b55c5[_0x293344(0x16d)][_0x293344(0x1cc)],_0x5d1b02=_0x1b55c5[_0x293344(0x16d)]&&_0x1b55c5[_0x293344(0x16d)][_0x293344(0x1ab)],_0x2deb34=_0x5d1b02&&util['format']('%j',_0x5d1b02);if(_0x456522&&_0x108ca2[_0x293344(0x1c1)](typeof _0x456522,_0x108ca2[_0x293344(0x17d)])){const _0x3c3e0f=constants[_0x293344(0x171)][_0x293344(0x1cf)](_0x5ec991=>_0x456522[_0x293344(0x1bf)](_0x5ec991)||_0x2deb34&&_0x2deb34[_0x293344(0x1bf)](_0x5ec991));if(_0x3c3e0f){const _0x342e76={};_0x342e76[_0x293344(0x1b3)]=_0x3c3e0f,_0x342e76[_0x293344(0x173)]=_0x5d1b02;const _0x2073da={};_0x2073da[_0x293344(0x1a1)]=_0x23e48e;const _0xc210e9={};_0xc210e9[_0x293344(0x1a4)]=_0x342e76,_0xc210e9[_0x293344(0x188)]=_0x2073da,automationLogger[_0x293344(0x17b)]('['+new Date()['toISOString']()+_0x293344(0x169)+util[_0x293344(0x186)]('%j',_0xc210e9));}}}}catch(_0x3e4fa4){logger[_0x293344(0x17b)](_0x293344(0x181)+_0x3e4fa4[_0x293344(0x16f)]);}return await PerformanceTester[_0x293344(0x1d9)](PerformanceDriverEvents[_0x293344(0x1ae)],async()=>{const _0x590805=_0x293344;if(!helper['isBrowserstackInfra']()&&(commandRepository[_0x590805(0x199)]()||globals[_0x590805(0x16a)](_0x450af9[_0x590805(0x1a5)]))&&_0x450af9[_0x590805(0x175)](_0x1b55c5[_0x590805(0x1c2)],_0x450af9['tKcsh'])&&!_0x1b55c5[_0x590805(0x195)]&&globals['getGlobal'](_0x450af9['fKPer'])&&globals[_0x590805(0x16a)](_0x450af9[_0x590805(0x1cd)])){const _0x29f89b=new Date(),_0x59e736=PerformanceTester[_0x590805(0x1d9)](_0x450af9['PlcMn'],async()=>{const _0xe05664=_0x590805;return await aiSdkWrapper[_0xe05664(0x1d4)](_0x164433,_0x239907,_0x1b55c5);});await _0x450af9[_0x590805(0x192)](_0x59e736);}},{'command':_0x1b55c5[_0x293344(0x1c2)]})(),_0x23e48e;}catch(_0x256bde){await PerformanceTester[_0x293344(0x1d9)](PerformanceDriverEvents[_0x293344(0x1ae)],async()=>{const _0x204e2b=_0x293344;logger[_0x204e2b(0x1d1)](_0x108ca2[_0x204e2b(0x1d5)]);try{if(!helper[_0x204e2b(0x1be)]()&&(_0x108ca2[_0x204e2b(0x1d2)](_0x256bde[_0x204e2b(0x197)],_0x108ca2[_0x204e2b(0x1a2)])||_0x108ca2[_0x204e2b(0x1ac)](_0x256bde[_0x204e2b(0x197)],_0x108ca2[_0x204e2b(0x17a)]))&&_0x108ca2[_0x204e2b(0x185)](_0x1b55c5['name_'],_0x108ca2[_0x204e2b(0x18b)])&&commandRepository['isSelfHealEnabled']()&&globals[_0x204e2b(0x16a)](_0x108ca2[_0x204e2b(0x1d7)])&&globals['getGlobal'](_0x108ca2[_0x204e2b(0x18a)])){_0x108ca2['dkQaa'](_0x1b55c5[_0x204e2b(0x16d)]['using'],_0x108ca2[_0x204e2b(0x1ca)])?logger[_0x204e2b(0x182)](_0x108ca2[_0x204e2b(0x18d)](_0x108ca2[_0x204e2b(0x18d)](_0x108ca2[_0x204e2b(0x1c9)],_0x1b55c5[_0x204e2b(0x16d)][_0x204e2b(0x1bb)]),_0x108ca2[_0x204e2b(0x1b7)])):logger[_0x204e2b(0x182)](_0x108ca2['WsAeD'](_0x108ca2[_0x204e2b(0x1bd)](_0x108ca2[_0x204e2b(0x196)](_0x108ca2['lEPMy'](_0x108ca2[_0x204e2b(0x1c5)],_0x1b55c5[_0x204e2b(0x16d)][_0x204e2b(0x1cb)]),':\x20'),_0x1b55c5[_0x204e2b(0x16d)][_0x204e2b(0x1bb)]),_0x108ca2[_0x204e2b(0x1b7)]));const _0x34892b=PerformanceTester[_0x204e2b(0x1d9)](_0x108ca2[_0x204e2b(0x1ce)],async()=>{const _0x313d93=_0x204e2b;return await aiSdkWrapper[_0x313d93(0x19d)](_0x164433,_0x239907,_0x1b55c5);}),_0xef9cbf=new Date(),{locatorType:_0x5b4bd4,locatorValue:_0x483509,commandHealed:_0x200a72}=await _0x108ca2[_0x204e2b(0x1b8)](_0x34892b);if(_0x108ca2['noDZQ'](_0x5b4bd4,_0x483509)){_0x1b55c5[_0x204e2b(0x16d)]['using']=_0x5b4bd4,_0x1b55c5['parameters_'][_0x204e2b(0x1bb)]=_0x483509,_0x1b55c5[_0x204e2b(0x195)]=!![];const _0x1e21aa=_0x239907[_0x204e2b(0x1d0)](_0x1b55c5);return _0x108ca2['OYZHP'](_0x5b4bd4,_0x108ca2[_0x204e2b(0x1ca)])?logger['info'](_0x108ca2[_0x204e2b(0x176)](_0x108ca2[_0x204e2b(0x1ba)],_0x483509)):logger[_0x204e2b(0x182)](_0x108ca2['iOwdX'](_0x108ca2[_0x204e2b(0x1b0)](_0x108ca2['CuKvh'](_0x108ca2['AcQwb'],_0x5b4bd4),':\x20'),_0x483509)),_0x1e21aa;}else!_0x200a72&&(_0x108ca2[_0x204e2b(0x178)](_0x5b4bd4,_0x108ca2[_0x204e2b(0x1ca)])?logger[_0x204e2b(0x182)](_0x108ca2['lEPMy'](_0x108ca2[_0x204e2b(0x189)],_0x1b55c5[_0x204e2b(0x16d)][_0x204e2b(0x1bb)])):logger[_0x204e2b(0x182)](_0x108ca2['bpCmC'](_0x108ca2['oxrvg'](_0x108ca2[_0x204e2b(0x1d3)](_0x108ca2[_0x204e2b(0x1a8)],_0x1b55c5['parameters_']['using']),':\x20'),_0x1b55c5[_0x204e2b(0x16d)]['value'])));}!_0x492b93&&_0x108ca2[_0x204e2b(0x168)](_0x1b55c5['name_'],_0x108ca2[_0x204e2b(0x1b1)])&&helper[_0x204e2b(0x1c6)](_0x1b55c5,[_0x108ca2[_0x204e2b(0x166)],_0x108ca2[_0x204e2b(0x1b5)]])&&!!constants[_0x204e2b(0x16c)][_0x204e2b(0x1cf)](_0x5eacd0=>{const _0x331d53=_0x204e2b;return _0x256bde[_0x331d53(0x183)]()[_0x331d53(0x1bf)](_0x5eacd0);})&&helper[_0x204e2b(0x17f)](_0x1b55c5[_0x204e2b(0x16d)]['url'],!![]);}catch(_0x873598){logger[_0x204e2b(0x1d1)](_0x108ca2['GYOBe'],_0x873598);}},{'success':![],'failure':_0x256bde})();throw _0x256bde;}};};function a104_0x3209(){const _0x3eec6c=['qbdKL','27gfvqyj','70fKeshL','args','OYZHP','aBYmQ','POST_EXECUTE','./helper','pNfUN','rRNal','fKPer','command','628830QHRJin','Ymhnk','9302EcTZXa','mwdHf','nfWBe','./ai-sdk/aiSdkWrapper','iaZsO','value','17901LjiJVp','CIAzV','isBrowserstackInfra','includes','url','EhFkK','name_','overrideExecute','Healing\x20failed\x20for\x20command\x20using\x20','IqfMf','nestedKeyValue','../bin/utils/constants','Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','GyJAD','eyECV','using','script','bTVZV','rNwuS','find','execute','debug','lmlda','OSoWK','handleSuccess','iontE','Successfully\x20healed\x20command\x20using\x20new\x20cssPath:\x20','OHOHq','getTcgTokenStatus','measureWrapper','aiHeal:setToken','necLe','15244DeinmK','EtPJU','][\x20SDK-AUTOMATION\x20]\x20','getGlobal','./performance/constants','NUDGE_LOCAL_ERRORS','parameters_','setTcgToken','message','browserstack.local','AUTOMATION_LOG_COMMANDS','aiSdk_defaultLogDataEnabled','parameters','./performance/performance-tester','SNaiQ','zKFJZ','css\x20selector','fkjMD','51205UAJhbF','weEEh','silly','get','DjujH','./logger','getNudgeLocalNotSetError','aiHeal_isAuthenticated','Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20','info','toString','setTcgTokenStatus','pongK','format','patchExecute','response','IrWYP','ZkYYZ','sspak','executeAsyncScript','lEPMy','aiHeal_isHealingEnabled','147aybkdS','NoSuchElementError','466907UCerAt','MxAcr','bstack:options','zQonU','skipHealingSuccess','sspvM','name','1086534TVvKNi','isSelfHealEnabled','aiHeal:findElementSuccess','util','8jxCeuH','handleFailure','getId','setAiSessionTimeStamp','AaSSU','body','rZwhF','capability','request','nBKuY','Error\x20in\x20handling\x20TCG\x20Auth:\x20','getSession'];a104_0x3209=function(){return _0x3eec6c;};return a104_0x3209();}
@@ -1 +1 @@
1
- function a103_0x3e09(_0x1499d7,_0x39daaf){const _0x3e758a=a103_0x3e75();return a103_0x3e09=function(_0x3e0912,_0x142d91){_0x3e0912=_0x3e0912-0x153;let _0x19ad2f=_0x3e758a[_0x3e0912];return _0x19ad2f;},a103_0x3e09(_0x1499d7,_0x39daaf);}function a103_0x3e75(){const _0x49c6f3=['BS_TESTOPS_ALLOW_SCREENSHOTS','quit','./performance/constants','overrideQuit','2103764DQgKKb','quitCount_','uXFtC','613713ysrzEt','6424506EehSuj','toISOString','3749172wThcAD','env','5FtYBzJ','initQuit','BpLgY','pid','./performance/performance-tester','true','end','initScreenshot','patchQuit','catch','gujjp','365773pZdNmC','pqxvG','emit','KuSTe','TAKE_SCREENSHOT','8vZKOAD','O11y_EVENTS','bs:addLog:','5544595GPoCWn','gUlLD','20oFpdWz','takeScreenshot','4909112laFmpY','wKbgc','NGeXG','iVszR','xWBzh','vTlSL'];a103_0x3e75=function(){return _0x49c6f3;};return a103_0x3e75();}const a103_0x25fc70=a103_0x3e09;(function(_0x12fd0d,_0x815b1b){const _0x118b45=a103_0x3e09,_0x2427e8=_0x12fd0d();while(!![]){try{const _0x306973=-parseInt(_0x118b45(0x159))/0x1+-parseInt(_0x118b45(0x15e))/0x2*(-parseInt(_0x118b45(0x172))/0x3)+-parseInt(_0x118b45(0x16f))/0x4+parseInt(_0x118b45(0x177))/0x5*(parseInt(_0x118b45(0x175))/0x6)+parseInt(_0x118b45(0x161))/0x7+parseInt(_0x118b45(0x165))/0x8+-parseInt(_0x118b45(0x173))/0x9*(parseInt(_0x118b45(0x163))/0xa);if(_0x306973===_0x815b1b)break;else _0x2427e8['push'](_0x2427e8['shift']());}catch(_0xe699f3){_0x2427e8['push'](_0x2427e8['shift']());}}}(a103_0x3e75,0x81450));const PerformanceTester=require(a103_0x25fc70(0x17b)),O11yEvents=require(a103_0x25fc70(0x16d))[a103_0x25fc70(0x15f)];exports['overrideTakeScreenshot']=_0x33a613=>{const _0x3b7abc=a103_0x25fc70,_0x41cc71={'iVszR':'TEST_SCREENSHOT','pqxvG':function(_0x6e9c3e,_0x54cc19){return _0x6e9c3e(_0x54cc19);},'KuSTe':function(_0xe8dea6,_0x439f23){return _0xe8dea6(_0x439f23);},'NGeXG':function(_0x50138a,_0x18bdc1){return _0x50138a!==_0x18bdc1;},'uXFtC':_0x3b7abc(0x153)};if(_0x41cc71[_0x3b7abc(0x167)](process[_0x3b7abc(0x176)][_0x3b7abc(0x16b)],_0x41cc71[_0x3b7abc(0x171)]))return;if(_0x33a613['patchScreenshot'])return;_0x33a613['patchScreenshot']=!![],_0x33a613['initScreenshot']=_0x33a613['takeScreenshot'],_0x33a613[_0x3b7abc(0x164)]=()=>{const _0x160a7c=_0x3b7abc,_0x3c9f71={'BpLgY':_0x41cc71[_0x160a7c(0x168)],'xWBzh':function(_0xf4fe9,_0x51cb5f){const _0x29f215=_0x160a7c;return _0x41cc71[_0x29f215(0x15a)](_0xf4fe9,_0x51cb5f);},'gujjp':function(_0xc94f97,_0x3459f8){const _0x499b28=_0x160a7c;return _0x41cc71[_0x499b28(0x15c)](_0xc94f97,_0x3459f8);}};return new Promise(function(_0x5f1381,_0x213f6c){const _0x17addd=_0x160a7c;_0x33a613[_0x17addd(0x155)]()['then'](_0x1b4810=>{const _0x2f87c5=_0x17addd;PerformanceTester['start'](O11yEvents['TAKE_SCREENSHOT']),process[_0x2f87c5(0x15b)](_0x2f87c5(0x160)+process[_0x2f87c5(0x17a)],{'timestamp':new Date()[_0x2f87c5(0x174)](),'message':_0x1b4810,'kind':_0x3c9f71[_0x2f87c5(0x179)]}),_0x3c9f71[_0x2f87c5(0x169)](_0x5f1381,_0x1b4810),PerformanceTester[_0x2f87c5(0x154)](O11yEvents[_0x2f87c5(0x15d)]);})[_0x17addd(0x157)](_0x359460=>{const _0x51bfdc=_0x17addd;PerformanceTester[_0x51bfdc(0x154)](O11yEvents[_0x51bfdc(0x15d)]),_0x3c9f71[_0x51bfdc(0x158)](_0x213f6c,_0x359460);});});};},exports[a103_0x25fc70(0x16e)]=(_0x554730,_0x123d95=null)=>{const _0x45e488=a103_0x25fc70,_0x2a5a53={'wKbgc':function(_0x5ef5b4){return _0x5ef5b4();},'gUlLD':function(_0x59b6da,_0x3d0900){return _0x59b6da>_0x3d0900;}};if(_0x554730[_0x45e488(0x156)])return;_0x554730['patchQuit']=!![],_0x554730['initQuit']=_0x554730['quit'],_0x554730[_0x45e488(0x16c)]=()=>{const _0x43f73c=_0x45e488,_0x497aa4={'vTlSL':function(_0x45e42e){const _0x5179bb=a103_0x3e09;return _0x2a5a53[_0x5179bb(0x166)](_0x45e42e);}};if(_0x123d95){_0x123d95[_0x43f73c(0x170)]+=0x1;if(_0x2a5a53[_0x43f73c(0x162)](_0x123d95[_0x43f73c(0x170)],0x1))return _0x554730[_0x43f73c(0x178)]();}else{_0x554730[_0x43f73c(0x170)]+=0x1;if(_0x2a5a53[_0x43f73c(0x162)](_0x554730[_0x43f73c(0x170)],0x1))return _0x554730[_0x43f73c(0x178)]();}return new Promise(function(_0xc82cee){const _0x563836=_0x43f73c;_0x497aa4[_0x563836(0x16a)](_0xc82cee);});};};
1
+ const a105_0x2ec4f7=a105_0x4905;function a105_0x4905(_0x2c172e,_0x20f9c4){const _0x54855e=a105_0x5485();return a105_0x4905=function(_0x490546,_0x252d92){_0x490546=_0x490546-0x17b;let _0xefe85b=_0x54855e[_0x490546];return _0xefe85b;},a105_0x4905(_0x2c172e,_0x20f9c4);}function a105_0x5485(){const _0x79f79a=['overrideQuit','overrideTakeScreenshot','initQuit','end','402kaByrH','DOltQ','then','catch','pid','takeScreenshot','qTJVF','quit','wniGt','1657cEnBrf','true','VOQsI','env','1357840KcGvtm','./performance/performance-tester','emit','./performance/constants','92656KNBqae','403239cWWtsT','TAKE_SCREENSHOT','patchQuit','469212acEhBt','patchScreenshot','TEST_SCREENSHOT','287262LlMIjp','8651480cBvYiW','tqVag','PNyEW','371zjlATd','quitCount_','KxYGS','28jNpDWe','initScreenshot','toISOString'];a105_0x5485=function(){return _0x79f79a;};return a105_0x5485();}(function(_0x374fda,_0x5da053){const _0x47b239=a105_0x4905,_0x4fff7c=_0x374fda();while(!![]){try{const _0x508c78=-parseInt(_0x47b239(0x18d))/0x1*(parseInt(_0x47b239(0x184))/0x2)+parseInt(_0x47b239(0x196))/0x3*(parseInt(_0x47b239(0x17d))/0x4)+parseInt(_0x47b239(0x191))/0x5+-parseInt(_0x47b239(0x199))/0x6+-parseInt(_0x47b239(0x1a0))/0x7*(-parseInt(_0x47b239(0x195))/0x8)+-parseInt(_0x47b239(0x19c))/0x9+-parseInt(_0x47b239(0x19d))/0xa;if(_0x508c78===_0x5da053)break;else _0x4fff7c['push'](_0x4fff7c['shift']());}catch(_0xf9bd75){_0x4fff7c['push'](_0x4fff7c['shift']());}}}(a105_0x5485,0x7e75c));const PerformanceTester=require(a105_0x2ec4f7(0x192)),O11yEvents=require(a105_0x2ec4f7(0x194))['O11y_EVENTS'];exports[a105_0x2ec4f7(0x181)]=_0x57229d=>{const _0x40eddc=a105_0x2ec4f7,_0x4145cc={'PNyEW':_0x40eddc(0x19b),'qTJVF':function(_0x1fb0b7,_0xf780f9){return _0x1fb0b7(_0xf780f9);},'bwXFV':function(_0x3e54c1,_0x34bbbb){return _0x3e54c1!==_0x34bbbb;},'VOQsI':_0x40eddc(0x18e)};if(_0x4145cc['bwXFV'](process[_0x40eddc(0x190)]['BS_TESTOPS_ALLOW_SCREENSHOTS'],_0x4145cc[_0x40eddc(0x18f)]))return;if(_0x57229d[_0x40eddc(0x19a)])return;_0x57229d[_0x40eddc(0x19a)]=!![],_0x57229d[_0x40eddc(0x17e)]=_0x57229d[_0x40eddc(0x189)],_0x57229d['takeScreenshot']=()=>{const _0xc7e643=_0x40eddc,_0x408ebd={'wniGt':_0x4145cc[_0xc7e643(0x19f)],'DOltQ':function(_0x5c473e,_0x51ca02){const _0x3ef4f8=_0xc7e643;return _0x4145cc[_0x3ef4f8(0x18a)](_0x5c473e,_0x51ca02);}};return new Promise(function(_0x4855b8,_0x2d51f8){const _0x2b013=_0xc7e643;_0x57229d[_0x2b013(0x17e)]()[_0x2b013(0x186)](_0x4d1c59=>{const _0x2ce7aa=_0x2b013;PerformanceTester['start'](O11yEvents[_0x2ce7aa(0x197)]),process[_0x2ce7aa(0x193)]('bs:addLog:'+process[_0x2ce7aa(0x188)],{'timestamp':new Date()[_0x2ce7aa(0x17f)](),'message':_0x4d1c59,'kind':_0x408ebd[_0x2ce7aa(0x18c)]}),_0x408ebd['DOltQ'](_0x4855b8,_0x4d1c59),PerformanceTester['end'](O11yEvents[_0x2ce7aa(0x197)]);})[_0x2b013(0x187)](_0x16ec73=>{const _0xfb671d=_0x2b013;PerformanceTester[_0xfb671d(0x183)](O11yEvents['TAKE_SCREENSHOT']),_0x408ebd[_0xfb671d(0x185)](_0x2d51f8,_0x16ec73);});});};},exports[a105_0x2ec4f7(0x180)]=(_0x1ee1a9,_0x150975=null)=>{const _0x11bdde=a105_0x2ec4f7,_0xdb27ff={'tqVag':function(_0x5e491c){return _0x5e491c();},'KxYGS':function(_0x18674d,_0x1529fd){return _0x18674d>_0x1529fd;}};if(_0x1ee1a9[_0x11bdde(0x198)])return;_0x1ee1a9[_0x11bdde(0x198)]=!![],_0x1ee1a9[_0x11bdde(0x182)]=_0x1ee1a9[_0x11bdde(0x18b)],_0x1ee1a9[_0x11bdde(0x18b)]=()=>{const _0x54650a=_0x11bdde;if(_0x150975){_0x150975[_0x54650a(0x17b)]+=0x1;if(_0xdb27ff['KxYGS'](_0x150975['quitCount_'],0x1))return _0x1ee1a9[_0x54650a(0x182)]();}else{_0x1ee1a9['quitCount_']+=0x1;if(_0xdb27ff[_0x54650a(0x17c)](_0x1ee1a9['quitCount_'],0x1))return _0x1ee1a9['initQuit']();}return new Promise(function(_0x629b88){const _0x54e92f=_0x54650a;_0xdb27ff[_0x54e92f(0x19e)](_0x629b88);});};};
@@ -1 +1 @@
1
- const a104_0x519981=a104_0xb9c3;(function(_0x24f813,_0x4994d2){const _0x4fb8ad=a104_0xb9c3,_0x969c17=_0x24f813();while(!![]){try{const _0x5137b6=-parseInt(_0x4fb8ad(0x176))/0x1*(parseInt(_0x4fb8ad(0x16a))/0x2)+parseInt(_0x4fb8ad(0x153))/0x3*(-parseInt(_0x4fb8ad(0x171))/0x4)+parseInt(_0x4fb8ad(0x166))/0x5*(parseInt(_0x4fb8ad(0x188))/0x6)+-parseInt(_0x4fb8ad(0x18a))/0x7*(parseInt(_0x4fb8ad(0x161))/0x8)+-parseInt(_0x4fb8ad(0x159))/0x9*(parseInt(_0x4fb8ad(0x14b))/0xa)+-parseInt(_0x4fb8ad(0x17a))/0xb*(parseInt(_0x4fb8ad(0x157))/0xc)+parseInt(_0x4fb8ad(0x147))/0xd;if(_0x5137b6===_0x4994d2)break;else _0x969c17['push'](_0x969c17['shift']());}catch(_0x32242b){_0x969c17['push'](_0x969c17['shift']());}}}(a104_0x10ea,0x5851c));const fs=require('fs'),path=require(a104_0x519981(0x189)),os=require('os'),{spawn}=require('child_process'),helper=require(a104_0x519981(0x18f)),logger=require('../logger')[a104_0x519981(0x156)],{getLogDir}=require(a104_0x519981(0x15f)),testHubConstants=require(a104_0x519981(0x177)),PerformanceTester=require(a104_0x519981(0x14c)),{PERCY_EVENTS:PerformanceEvents}=require(a104_0x519981(0x160)),PercyBinary=require('./PercyBinary');function a104_0xb9c3(_0x3a14a2,_0x94275e){const _0x10ea7d=a104_0x10ea();return a104_0xb9c3=function(_0xb9c3e4,_0x218cb7){_0xb9c3e4=_0xb9c3e4-0x13b;let _0x5d2b5a=_0x10ea7d[_0xb9c3e4];return _0x5d2b5a;},a104_0xb9c3(_0x3a14a2,_0x94275e);}class Percy{#logfile=path[a104_0x519981(0x18e)](getLogDir(),a104_0x519981(0x165));#address=process[a104_0x519981(0x15a)][a104_0x519981(0x16b)]||'http://localhost:5338';#binaryPath=null;#config=null;#proc=null;#isApp=![];[a104_0x519981(0x17e)]=![];constructor(_0x1d1625){const _0x5aafb7=a104_0x519981;this.#config=_0x1d1625,!!_0x1d1625[_0x5aafb7(0x163)]&&(this.#isApp=!![]);}async #getBinaryPath(){const _0x1be4af=a104_0x519981;if(!this.#binaryPath){const _0x360c03=new PercyBinary();PerformanceTester[_0x1be4af(0x18b)](PerformanceEvents[_0x1be4af(0x158)]),this.#binaryPath=await _0x360c03['getBinaryPath'](this.#config),PerformanceTester[_0x1be4af(0x167)](PerformanceEvents['DOWNLOAD']);}return this.#binaryPath;}async #sleep(_0x6498ad){return new Promise(_0x322eb0=>setTimeout(_0x322eb0,_0x6498ad));}async[a104_0x519981(0x164)](){const _0x24615e=a104_0x519981,_0x1d91d2={};_0x1d91d2[_0x24615e(0x14e)]=_0x24615e(0x15b),_0x1d91d2[_0x24615e(0x178)]=_0x24615e(0x145);const _0x56a65d=_0x1d91d2;try{const _0x114234=await helper[_0x24615e(0x15e)](_0x56a65d[_0x24615e(0x14e)],_0x56a65d[_0x24615e(0x178)],null,null,this.#address);if(_0x114234)return!![];}catch(_0x4e9a96){return![];}}async['start'](){const _0x9ad6d4=a104_0x519981,_0x47363c={'tSUcK':_0x9ad6d4(0x151),'ekZck':'exec','UzOGX':function(_0x9ee90f,_0x399024,_0x2760a5,_0x450ba9){return _0x9ee90f(_0x399024,_0x2760a5,_0x450ba9);},'PCBvz':'close','IJdVL':_0x9ad6d4(0x172)},_0x34c8bd=await this.#getBinaryPath(),_0x2603e0={};_0x2603e0[_0x9ad6d4(0x174)]='a';const _0xbe46a0=fs[_0x9ad6d4(0x17f)](this.#logfile,_0x2603e0),_0x3af5bc=await this[_0x9ad6d4(0x152)](),_0x2ee8ad=await this['createPercyConfig']();if(!_0x3af5bc)return![];const _0x4ce8b1=[(this.#isApp?_0x47363c[_0x9ad6d4(0x17c)]:_0x47363c[_0x9ad6d4(0x144)])+_0x9ad6d4(0x179)];_0x2ee8ad&&_0x4ce8b1[_0x9ad6d4(0x16c)]('-c',_0x2ee8ad);this.#proc=_0x47363c['UzOGX'](spawn,_0x34c8bd,_0x4ce8b1,{'env':Object[_0x9ad6d4(0x169)](process['env'],{'PERCY_TOKEN':_0x3af5bc,'TH_BUILD_UUID':process[_0x9ad6d4(0x15a)][testHubConstants[_0x9ad6d4(0x17b)][_0x9ad6d4(0x14f)]]})}),this.#proc['stdout'][_0x9ad6d4(0x181)](_0xbe46a0),this.#proc['stderr'][_0x9ad6d4(0x181)](_0xbe46a0),this[_0x9ad6d4(0x17e)]=!![];var _0x345410=this;this.#proc['on'](_0x47363c[_0x9ad6d4(0x17d)],function(_0x4679b8){const _0x209501=_0x9ad6d4;_0x345410[_0x209501(0x17e)]=![];});do{const _0x4959eb=await this[_0x9ad6d4(0x164)]();if(_0x4959eb)return logger[_0x9ad6d4(0x150)](_0x47363c[_0x9ad6d4(0x142)]),!![];await this.#sleep(0x3e8);}while(this[_0x9ad6d4(0x17e)]);return![];}async['stop'](){const _0x501a93=a104_0x519981,_0x460bd5={'WIsZQ':function(_0x316d2f,_0x2e761f){return _0x316d2f(_0x2e761f);},'biUWf':function(_0x459674,_0xc2dc2a,_0x54d9f0){return _0x459674(_0xc2dc2a,_0x54d9f0);},'RPoPv':_0x501a93(0x183),'GNIyu':_0x501a93(0x16f)},_0x231bee=await this.#getBinaryPath();return new Promise((_0x1895f2,_0x3677b6)=>{const _0xd82310=_0x501a93,_0x57b2ac=_0x460bd5['biUWf'](spawn,_0x231bee,[_0x460bd5[_0xd82310(0x173)]]);_0x57b2ac['on'](_0x460bd5[_0xd82310(0x13b)],_0x23d149=>{const _0x377959=_0xd82310;this[_0x377959(0x17e)]=![],_0x460bd5[_0x377959(0x190)](_0x1895f2,_0x23d149);});});}[a104_0x519981(0x13f)](){const _0x1c5a30=a104_0x519981;return this[_0x1c5a30(0x17e)];}async[a104_0x519981(0x152)](){const _0x41755d=a104_0x519981,_0x4d79a9={};_0x4d79a9[_0x41755d(0x184)]='app',_0x4d79a9[_0x41755d(0x170)]=_0x41755d(0x182),_0x4d79a9[_0x41755d(0x148)]='GET',_0x4d79a9[_0x41755d(0x186)]=_0x41755d(0x13d);const _0x3d4ab3=_0x4d79a9,_0x3c568d=this.#config[_0x41755d(0x180)];try{const _0x5f2c55=this.#isApp?_0x3d4ab3[_0x41755d(0x184)]:_0x3d4ab3[_0x41755d(0x170)],_0x154d44=await helper[_0x41755d(0x15e)](_0x3d4ab3[_0x41755d(0x148)],'api/app_percy/get_project_token?name='+_0x3c568d+_0x41755d(0x18c)+_0x5f2c55,{},this.#config),_0x35782b=_0x154d44[_0x41755d(0x155)];return logger[_0x41755d(0x150)](_0x3d4ab3[_0x41755d(0x186)]),_0x35782b[_0x41755d(0x140)];}catch(_0x2f1e5f){return logger['error'](_0x41755d(0x149)+_0x2f1e5f),null;}}async[a104_0x519981(0x16d)](){const _0x1c6aa6=a104_0x519981,_0x247259={'PcudP':function(_0x4b15a0,_0x56d458){return _0x4b15a0(_0x56d458);},'FdLFo':function(_0x39307e,_0x3504ce){return _0x39307e+_0x3504ce;},'IqJpO':_0x1c6aa6(0x15c),'iVIwI':_0x1c6aa6(0x14d)};if(!this.#config['percyOptions'])return null;const _0xae6610=path['join'](os[_0x1c6aa6(0x154)](),_0x247259[_0x1c6aa6(0x18d)]),_0x43bcd8=this.#config[_0x1c6aa6(0x143)];return!_0x43bcd8[_0x1c6aa6(0x146)]&&(_0x43bcd8[_0x1c6aa6(0x146)]='2'),new Promise((_0x361d65,_0x4e33f7)=>{const _0x2b8cf9=_0x1c6aa6,_0x2f0730={'QXHEL':function(_0x346a99,_0x281a8e){const _0x2d0037=a104_0xb9c3;return _0x247259[_0x2d0037(0x13e)](_0x346a99,_0x281a8e);},'sWIaF':function(_0x1d9e5a,_0x42f6d3){const _0x212a14=a104_0xb9c3;return _0x247259[_0x212a14(0x16e)](_0x1d9e5a,_0x42f6d3);},'NNzxx':_0x247259[_0x2b8cf9(0x168)]};fs[_0x2b8cf9(0x185)](_0xae6610,JSON[_0x2b8cf9(0x141)](_0x43bcd8),_0x4a8fc8=>{const _0x4b8e8b=_0x2b8cf9;_0x4a8fc8&&(logger[_0x4b8e8b(0x14a)](_0x4b8e8b(0x13c)+_0x4a8fc8),_0x2f0730[_0x4b8e8b(0x175)](_0x361d65,null)),logger[_0x4b8e8b(0x150)](_0x2f0730[_0x4b8e8b(0x162)](_0x2f0730[_0x4b8e8b(0x15d)],_0xae6610)),_0x2f0730[_0x4b8e8b(0x175)](_0x361d65,_0xae6610);});});}}module[a104_0x519981(0x187)]=Percy;function a104_0x10ea(){const _0x4c8369=['healthcheck','percy.log','2099315RYsQtH','end','IqJpO','assign','22FiDzqK','PERCY_SERVER_ADDRESS','push','createPercyConfig','FdLFo','close','bKEGo','772KKDWQq','Percy\x20healthcheck\x20successful','RPoPv','flags','QXHEL','13736ksOfna','../../helpers/testhub/constants','InANW',':start','11OCmfOI','ENV_VAR','tSUcK','PCBvz','isProcessRunning','createWriteStream','projectName','pipe','automate','exec:stop','OIDtC','writeFile','APMcT','exports','6UcVqRZ','path','42399CydNKs','start','&type=','iVIwI','join','../helper','WIsZQ','GNIyu','Error\x20creating\x20percy\x20config:\x20','Percy\x20fetch\x20token\x20success','PcudP','isRunning','token','stringify','IJdVL','percyOptions','ekZck','percy/healthcheck','version','15335398alNuIr','ZbBAW','Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20','error','10ncldyb','../../helpers/performance/performance-tester','percy.json','GgyLO','BROWSERSTACK_TESTHUB_UUID','debug','app:exec','fetchPercyToken','2370ETYkCN','tmpdir','data','winstonLogger','7363716JulWRK','DOWNLOAD','976941LTyyjl','env','GET','Percy\x20config\x20created\x20at\x20','NNzxx','nodeRequest','../logger','../../helpers/performance/constants','280sGUBQB','sWIaF','app'];a104_0x10ea=function(){return _0x4c8369;};return a104_0x10ea();}
1
+ const a106_0x130689=a106_0x5a46;function a106_0x5a46(_0x53a738,_0x5686c5){const _0x145cf7=a106_0x145c();return a106_0x5a46=function(_0x5a4687,_0x39fc52){_0x5a4687=_0x5a4687-0xcb;let _0x4f048e=_0x145cf7[_0x5a4687];return _0x4f048e;},a106_0x5a46(_0x53a738,_0x5686c5);}(function(_0x196ae5,_0x1b9612){const _0x5a3091=a106_0x5a46,_0x4b8894=_0x196ae5();while(!![]){try{const _0x3aaad3=parseInt(_0x5a3091(0xce))/0x1*(-parseInt(_0x5a3091(0x108))/0x2)+-parseInt(_0x5a3091(0x10e))/0x3+parseInt(_0x5a3091(0xcc))/0x4+-parseInt(_0x5a3091(0x116))/0x5+-parseInt(_0x5a3091(0x104))/0x6+-parseInt(_0x5a3091(0x110))/0x7+parseInt(_0x5a3091(0x10b))/0x8*(parseInt(_0x5a3091(0xfe))/0x9);if(_0x3aaad3===_0x1b9612)break;else _0x4b8894['push'](_0x4b8894['shift']());}catch(_0x573419){_0x4b8894['push'](_0x4b8894['shift']());}}}(a106_0x145c,0x38084));const fs=require('fs'),path=require(a106_0x130689(0xd0)),os=require('os'),{spawn}=require('child_process'),helper=require(a106_0x130689(0xe2)),logger=require(a106_0x130689(0x100))[a106_0x130689(0xea)],{getLogDir}=require(a106_0x130689(0x100)),testHubConstants=require(a106_0x130689(0x101)),PerformanceTester=require(a106_0x130689(0xe8)),{PERCY_EVENTS:PerformanceEvents}=require(a106_0x130689(0xcb)),PercyBinary=require(a106_0x130689(0x10d));function a106_0x145c(){const _0x4694fe=['BROWSERSTACK_TESTHUB_UUID','winstonLogger','stderr','NSdOE','env','UWSAO','debug','Msugo','WKCLy','CIDZU','isRunning','QDHQf','Percy\x20fetch\x20token\x20success','YEKDV','GET',':start','sRCAd','start','pipe','projectName','TmOXz','7319961aXrDEQ','YZBaF','../logger','../../helpers/testhub/constants','version','automate','589254bnjbro','percy/healthcheck','push','fetchPercyToken','52826zUqOlo','Percy\x20config\x20created\x20at\x20','tmpdir','8Hapniw','end','./PercyBinary','866466MdboNm','stringify','240660PjePRm','soBYl','EGUMg','percyOptions','isProcessRunning','QemfE','1044460GlbJeI','percy.json','writeFile','../../helpers/performance/constants','1770708pNXHzs','close','15SqPzvb','error','path','app:exec','flags','TPUen','app','&type=','stop','XZQUp','assign','token','nZigj','QuqLs','api/app_percy/get_project_token?name=','getBinaryPath','exec','DOWNLOAD','ENV_VAR','healthcheck','../helper','xpTbV','exec:stop','rcGwG','createPercyConfig','nodeRequest','../../helpers/performance/performance-tester'];a106_0x145c=function(){return _0x4694fe;};return a106_0x145c();}class Percy{#logfile=path['join'](getLogDir(),'percy.log');#address=process[a106_0x130689(0xed)]['PERCY_SERVER_ADDRESS']||'http://localhost:5338';#binaryPath=null;#config=null;#proc=null;#isApp=![];[a106_0x130689(0x114)]=![];constructor(_0x19303d){const _0x23d619=a106_0x130689;this.#config=_0x19303d,!!_0x19303d[_0x23d619(0xd4)]&&(this.#isApp=!![]);}async #getBinaryPath(){const _0x198505=a106_0x130689;if(!this.#binaryPath){const _0x281be5=new PercyBinary();PerformanceTester[_0x198505(0xfa)](PerformanceEvents[_0x198505(0xdf)]),this.#binaryPath=await _0x281be5[_0x198505(0xdd)](this.#config),PerformanceTester[_0x198505(0x10c)](PerformanceEvents['DOWNLOAD']);}return this.#binaryPath;}async #sleep(_0x242b32){return new Promise(_0x1370ad=>setTimeout(_0x1370ad,_0x242b32));}async[a106_0x130689(0xe1)](){const _0x13002d=a106_0x130689,_0x25c1c5={};_0x25c1c5[_0x13002d(0xd7)]=_0x13002d(0xf7),_0x25c1c5['TmOXz']=_0x13002d(0x105);const _0x338e30=_0x25c1c5;try{const _0x5d16ff=await helper[_0x13002d(0xe7)](_0x338e30[_0x13002d(0xd7)],_0x338e30[_0x13002d(0xfd)],null,null,this.#address);if(_0x5d16ff)return!![];}catch(_0x51cc87){return![];}}async['start'](){const _0x1bb872=a106_0x130689,_0x122d9a={'rcGwG':_0x1bb872(0xd1),'Msugo':_0x1bb872(0xde),'EGUMg':function(_0x571e0a,_0x14475f,_0x14e97d,_0x903510){return _0x571e0a(_0x14475f,_0x14e97d,_0x903510);},'TPUen':_0x1bb872(0xcd),'YZBaF':'Percy\x20healthcheck\x20successful'},_0xb62e81=await this.#getBinaryPath(),_0x5350e4={};_0x5350e4[_0x1bb872(0xd2)]='a';const _0x36e148=fs['createWriteStream'](this.#logfile,_0x5350e4),_0x781625=await this[_0x1bb872(0x107)](),_0x569f10=await this[_0x1bb872(0xe6)]();if(!_0x781625)return![];const _0x5b7f0a=[(this.#isApp?_0x122d9a[_0x1bb872(0xe5)]:_0x122d9a[_0x1bb872(0xf0)])+_0x1bb872(0xf8)];_0x569f10&&_0x5b7f0a[_0x1bb872(0x106)]('-c',_0x569f10);this.#proc=_0x122d9a[_0x1bb872(0x112)](spawn,_0xb62e81,_0x5b7f0a,{'env':Object[_0x1bb872(0xd8)](process[_0x1bb872(0xed)],{'PERCY_TOKEN':_0x781625,'TH_BUILD_UUID':process[_0x1bb872(0xed)][testHubConstants[_0x1bb872(0xe0)][_0x1bb872(0xe9)]]})}),this.#proc['stdout'][_0x1bb872(0xfb)](_0x36e148),this.#proc[_0x1bb872(0xeb)][_0x1bb872(0xfb)](_0x36e148),this['isProcessRunning']=!![];var _0x5d8484=this;this.#proc['on'](_0x122d9a[_0x1bb872(0xd3)],function(_0x5e4694){const _0xee4104=_0x1bb872;_0x5d8484[_0xee4104(0x114)]=![];});do{const _0x264474=await this['healthcheck']();if(_0x264474)return logger[_0x1bb872(0xef)](_0x122d9a[_0x1bb872(0xff)]),!![];await this.#sleep(0x3e8);}while(this[_0x1bb872(0x114)]);return![];}async[a106_0x130689(0xd6)](){const _0x34bb0c=a106_0x130689,_0x415a3f={'CIDZU':function(_0x1e5e30,_0x1ec307){return _0x1e5e30(_0x1ec307);},'UWSAO':function(_0x25f598,_0x5bacff,_0x2813ff){return _0x25f598(_0x5bacff,_0x2813ff);},'QemfE':_0x34bb0c(0xe4),'QuqLs':_0x34bb0c(0xcd)},_0x289c0c=await this.#getBinaryPath();return new Promise((_0x4352ad,_0x376651)=>{const _0x8cbfd=_0x34bb0c,_0x521f6e=_0x415a3f[_0x8cbfd(0xee)](spawn,_0x289c0c,[_0x415a3f[_0x8cbfd(0x115)]]);_0x521f6e['on'](_0x415a3f[_0x8cbfd(0xdb)],_0x13e4cd=>{const _0x36d181=_0x8cbfd;this['isProcessRunning']=![],_0x415a3f[_0x36d181(0xf2)](_0x4352ad,_0x13e4cd);});});}[a106_0x130689(0xf3)](){const _0x51b53c=a106_0x130689;return this[_0x51b53c(0x114)];}async['fetchPercyToken'](){const _0x28b3ea=a106_0x130689,_0x44e365={};_0x44e365['sRCAd']=_0x28b3ea(0xd4),_0x44e365[_0x28b3ea(0xe3)]=_0x28b3ea(0x103),_0x44e365[_0x28b3ea(0xf4)]=_0x28b3ea(0xf7),_0x44e365['YEKDV']=_0x28b3ea(0xf5);const _0x4cbc84=_0x44e365,_0x429bcf=this.#config[_0x28b3ea(0xfc)];try{const _0x7f183=this.#isApp?_0x4cbc84[_0x28b3ea(0xf9)]:_0x4cbc84[_0x28b3ea(0xe3)],_0x2d509f=await helper['nodeRequest'](_0x4cbc84[_0x28b3ea(0xf4)],_0x28b3ea(0xdc)+_0x429bcf+_0x28b3ea(0xd5)+_0x7f183,{},this.#config),_0x4e873c=_0x2d509f['data'];return logger[_0x28b3ea(0xef)](_0x4cbc84[_0x28b3ea(0xf6)]),_0x4e873c[_0x28b3ea(0xd9)];}catch(_0x5e7688){return logger[_0x28b3ea(0xcf)]('Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20'+_0x5e7688),null;}}async[a106_0x130689(0xe6)](){const _0x3bcb09=a106_0x130689,_0x2345ed={'HpXhB':function(_0x15e870,_0x12cb4b){return _0x15e870(_0x12cb4b);},'NSdOE':function(_0x5e86b8,_0x42a345){return _0x5e86b8+_0x42a345;},'soBYl':_0x3bcb09(0x109),'nZigj':function(_0x22e03e,_0x1a12ba){return _0x22e03e(_0x1a12ba);},'WKCLy':_0x3bcb09(0x117)};if(!this.#config['percyOptions'])return null;const _0x571d05=path['join'](os[_0x3bcb09(0x10a)](),_0x2345ed[_0x3bcb09(0xf1)]),_0x39eddd=this.#config[_0x3bcb09(0x113)];return!_0x39eddd['version']&&(_0x39eddd[_0x3bcb09(0x102)]='2'),new Promise((_0x2e1c07,_0xf7e0c4)=>{const _0x99585b=_0x3bcb09;fs[_0x99585b(0x118)](_0x571d05,JSON[_0x99585b(0x10f)](_0x39eddd),_0x5c6c73=>{const _0x6a9cec=_0x99585b;_0x5c6c73&&(logger[_0x6a9cec(0xcf)]('Error\x20creating\x20percy\x20config:\x20'+_0x5c6c73),_0x2345ed['HpXhB'](_0x2e1c07,null)),logger[_0x6a9cec(0xef)](_0x2345ed[_0x6a9cec(0xec)](_0x2345ed[_0x6a9cec(0x111)],_0x571d05)),_0x2345ed[_0x6a9cec(0xda)](_0x2e1c07,_0x571d05);});});}}module['exports']=Percy;
@@ -1 +1 @@
1
- const a105_0x39309a=a105_0x38b6;(function(_0x4880e0,_0xbaaef9){const _0x1c7fc0=a105_0x38b6,_0x390ab1=_0x4880e0();while(!![]){try{const _0x17f9cd=parseInt(_0x1c7fc0(0x1cd))/0x1+parseInt(_0x1c7fc0(0x222))/0x2*(parseInt(_0x1c7fc0(0x22e))/0x3)+-parseInt(_0x1c7fc0(0x24a))/0x4+parseInt(_0x1c7fc0(0x25d))/0x5*(-parseInt(_0x1c7fc0(0x215))/0x6)+-parseInt(_0x1c7fc0(0x256))/0x7*(-parseInt(_0x1c7fc0(0x1ff))/0x8)+parseInt(_0x1c7fc0(0x1fa))/0x9*(parseInt(_0x1c7fc0(0x21a))/0xa)+-parseInt(_0x1c7fc0(0x207))/0xb*(parseInt(_0x1c7fc0(0x25e))/0xc);if(_0x17f9cd===_0xbaaef9)break;else _0x390ab1['push'](_0x390ab1['shift']());}catch(_0x46ea0b){_0x390ab1['push'](_0x390ab1['shift']());}}}(a105_0x73e7,0x79623));const {https}=require('follow-redirects'),url=require(a105_0x39309a(0x1fe)),yauzl=require(a105_0x39309a(0x1f8)),fs=require('fs'),path=require(a105_0x39309a(0x22b)),os=require('os'),{spawn}=require(a105_0x39309a(0x1dc)),HttpsProxyAgent=require(a105_0x39309a(0x23e)),logger=require('../logger')[a105_0x39309a(0x1f0)];class PercyBinary{#hostOS=process['platform'];#httpPath=null;#binaryName=a105_0x39309a(0x258);#orderedPaths=[path[a105_0x39309a(0x1e6)](this.#homedir(),a105_0x39309a(0x220)),process[a105_0x39309a(0x1fd)](),os['tmpdir']()];constructor(){const _0x5c3d03=a105_0x39309a,_0x354dcf={};_0x354dcf[_0x5c3d03(0x1d5)]=_0x5c3d03(0x1d9),_0x354dcf[_0x5c3d03(0x22d)]=function(_0x5131c2,_0x5443c4){return _0x5131c2+_0x5443c4;},_0x354dcf[_0x5c3d03(0x225)]='/percy-osx.zip',_0x354dcf[_0x5c3d03(0x236)]=_0x5c3d03(0x1f9),_0x354dcf[_0x5c3d03(0x24b)]=_0x5c3d03(0x1d0),_0x354dcf[_0x5c3d03(0x1f6)]=function(_0x406afc,_0x39be56){return _0x406afc+_0x39be56;},_0x354dcf[_0x5c3d03(0x219)]=_0x5c3d03(0x1ce);const _0xf565b2=_0x354dcf,_0x14884f=_0xf565b2[_0x5c3d03(0x1d5)];if(this.#hostOS['match'](/darwin|mac os/i))this.#httpPath=_0xf565b2[_0x5c3d03(0x22d)](_0x14884f,_0xf565b2['thnuN']);else this.#hostOS[_0x5c3d03(0x23a)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0xf565b2['DpoEl'](_0x14884f,_0xf565b2[_0x5c3d03(0x236)]),this.#binaryName=_0xf565b2[_0x5c3d03(0x24b)]):this.#httpPath=_0xf565b2[_0x5c3d03(0x1f6)](_0x14884f,_0xf565b2[_0x5c3d03(0x219)]);}#getAvailableDirs(){const _0x3cfd05=a105_0x39309a,_0x4b0212={};_0x4b0212[_0x3cfd05(0x241)]=function(_0x2ffc17,_0x3e58e0){return _0x2ffc17<_0x3e58e0;},_0x4b0212[_0x3cfd05(0x1e0)]=_0x3cfd05(0x22a);const _0x60c74c=_0x4b0212;for(var _0x57510c=0x0;_0x60c74c['ryrrM'](_0x57510c,this.#orderedPaths[_0x3cfd05(0x209)]);_0x57510c++){var _0x33334a=this.#orderedPaths[_0x57510c];if(this.#makePath(_0x33334a))return _0x33334a;}throw new Error(_0x60c74c[_0x3cfd05(0x1e0)]);}#makePath(_0x404d97){const _0x9af7cc=a105_0x39309a;try{return _0x404d97&&!this.#checkPath(_0x404d97)&&fs[_0x9af7cc(0x1f2)](_0x404d97),!![];}catch{return![];}}#checkPath(_0x19742b,_0xc443dd){const _0x400265=a105_0x39309a,_0x1606f2={};_0x1606f2[_0x400265(0x20c)]=function(_0x401452,_0x898706){return _0x401452|_0x898706;},_0x1606f2[_0x400265(0x21b)]=function(_0x1f7e3c,_0x1e4bc5){return _0x1f7e3c!==_0x1e4bc5;},_0x1606f2[_0x400265(0x1e1)]=_0x400265(0x201);const _0x2eb200=_0x1606f2;_0xc443dd=_0xc443dd||_0x2eb200[_0x400265(0x20c)](fs[_0x400265(0x1ed)],fs[_0x400265(0x20f)]);try{return fs[_0x400265(0x1eb)](_0x19742b,_0xc443dd),!![];}catch(_0x1a4d77){if(_0x2eb200[_0x400265(0x21b)](typeof fs['accessSync'],_0x2eb200[_0x400265(0x1e1)]))return![];try{return fs[_0x400265(0x255)](_0x19742b),!![];}catch(_0x294ee3){return![];}}}#getETagPath(_0x4a379d){const _0x46b4fe=a105_0x39309a;return path[_0x46b4fe(0x1e6)](_0x4a379d,this.#binaryName+_0x46b4fe(0x1cc));}#loadETag(_0x3a85bd){const _0x418547=a105_0x39309a,_0x574ef5={};_0x574ef5[_0x418547(0x240)]='utf8';const _0x4b2716=_0x574ef5,_0x49bec7=this.#getETagPath(_0x3a85bd);if(this.#checkPath(_0x49bec7))try{return fs['readFileSync'](_0x49bec7,_0x4b2716['xYGpU'])[_0x418547(0x238)]();}catch(_0x40c028){logger['warn']('Failed\x20to\x20read\x20ETag\x20file:\x20'+_0x40c028);}return null;}#saveETag(_0x14253a,_0x36b206){const _0x56fc6e=a105_0x39309a,_0x4486b0={};_0x4486b0['NNuYy']=_0x56fc6e(0x1e4);const _0x3b47e3=_0x4486b0;if(!_0x36b206)return;try{const _0x5ad964=this.#getETagPath(_0x14253a);fs[_0x56fc6e(0x246)](_0x5ad964,_0x36b206),logger[_0x56fc6e(0x243)](_0x3b47e3['NNuYy']);}catch(_0x588630){logger[_0x56fc6e(0x1e7)](_0x56fc6e(0x24d)+_0x588630);}}async #handleBinaryDownload(_0xc484c0,_0x2cc2b0,_0x499afe){const _0x2c2df1=a105_0x39309a,_0x349a6e={};_0x349a6e[_0x2c2df1(0x200)]=_0x2c2df1(0x1e2);const _0x288b58=_0x349a6e,_0x4a4b99=await this['validateBinary'](_0xc484c0['binaryPath']);if(!_0x4a4b99){logger[_0x2c2df1(0x232)](_0x288b58[_0x2c2df1(0x200)]);const _0x595543=await this[_0x2c2df1(0x25b)](_0x2cc2b0,_0x499afe);return _0x595543['binaryPath'];}return _0xc484c0[_0x2c2df1(0x212)];}async[a105_0x39309a(0x217)](_0x5cd5fd){const _0x180c88=a105_0x39309a,_0x2d07da={};_0x2d07da['XkXTA']='Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)',_0x2d07da[_0x180c88(0x202)]=_0x180c88(0x1d2);const _0x52b536=_0x2d07da,_0xa6ab91=this.#getAvailableDirs(),_0x60ae38=path[_0x180c88(0x1e6)](_0xa6ab91,this.#binaryName);if(this.#checkPath(_0x60ae38,fs[_0x180c88(0x1d4)])){const _0x4b0d3b=this.#loadETag(_0xa6ab91);if(_0x4b0d3b)try{const _0x24400a=await this['download'](_0x5cd5fd,_0xa6ab91,_0x4b0d3b);if(!_0x24400a[_0x180c88(0x1f7)])return logger['debug'](_0x52b536['XkXTA']),_0x60ae38;return logger['debug'](_0x52b536[_0x180c88(0x202)]),await this.#handleBinaryDownload(_0x24400a,_0x5cd5fd,_0xa6ab91);}catch(_0x1a8cd6){return logger['warn'](_0x180c88(0x230)+_0x1a8cd6),_0x60ae38;}}const _0x2a3fef=await this[_0x180c88(0x25b)](_0x5cd5fd,_0xa6ab91);return await this.#handleBinaryDownload(_0x2a3fef,_0x5cd5fd,_0xa6ab91);}['download'](_0x211645,_0x214646,_0x161a56=null){const _0x16ff7d=a105_0x39309a,_0x500904={'oocQe':function(_0x1bdded,_0x5a567d){return _0x1bdded(_0x5a567d);},'AGKZZ':function(_0x9ae7e6,_0x197798){return _0x9ae7e6(_0x197798);},'nPPwj':function(_0x2b5b29,_0x5a91b2){return _0x2b5b29===_0x5a91b2;},'rBtxD':_0x16ff7d(0x232),'CTKhu':_0x16ff7d(0x22f),'alpHS':function(_0x4daa95,_0x191733){return _0x4daa95+_0x191733;},'cQsVx':_0x16ff7d(0x21d)};_0x214646&&!this.#checkPath(_0x214646)&&fs[_0x16ff7d(0x1f2)](_0x214646);const _0x2fd711=this.#binaryName,_0x13a479=path[_0x16ff7d(0x1e6)](_0x214646,_0x500904[_0x16ff7d(0x206)](_0x2fd711,_0x500904[_0x16ff7d(0x23c)])),_0xa2b96b=fs[_0x16ff7d(0x203)](_0x13a479),_0x2b01c7=url['parse'](this.#httpPath);if(_0x211645[_0x16ff7d(0x214)]&&_0x211645['proxyPort']){const _0x3a3208={};_0x3a3208[_0x16ff7d(0x23b)]=_0x211645['proxyHost'],_0x3a3208[_0x16ff7d(0x257)]=_0x211645['proxyPort'],_0x2b01c7['agent']=new HttpsProxyAgent(_0x3a3208);}if(_0x211645[_0x16ff7d(0x24f)])try{_0x2b01c7['ca']=fs['readFileSync'](_0x211645[_0x16ff7d(0x24f)]);}catch(_0xb0a80b){logger[_0x16ff7d(0x232)](_0x16ff7d(0x1de)+_0xb0a80b);}if(_0x161a56){const _0x4672e4={};_0x4672e4[_0x16ff7d(0x1dd)]=_0x161a56,_0x2b01c7['headers']=_0x4672e4;}return new Promise((_0x5c4972,_0x372696)=>{const _0xd56d9f=_0x16ff7d,_0x5ca33c={'ZCPDl':function(_0x23cb5e,_0x1ec072){const _0x43b980=a105_0x38b6;return _0x500904[_0x43b980(0x20a)](_0x23cb5e,_0x1ec072);},'QFwHn':function(_0x457a82,_0x2e896b){const _0x44e06e=a105_0x38b6;return _0x500904[_0x44e06e(0x1e5)](_0x457a82,_0x2e896b);},'vMRPH':function(_0x30a0b0,_0x142087){return _0x500904['nPPwj'](_0x30a0b0,_0x142087);},'KTApq':function(_0x3c68f4,_0x5e5d54){const _0x44d65c=a105_0x38b6;return _0x500904[_0x44d65c(0x1e5)](_0x3c68f4,_0x5e5d54);},'mLBcT':_0x500904[_0xd56d9f(0x1f5)],'brpuN':_0x500904[_0xd56d9f(0x1ec)],'FzAsj':function(_0x1d2dc7,_0xd72b6a){const _0x1c097c=_0xd56d9f;return _0x500904[_0x1c097c(0x20a)](_0x1d2dc7,_0xd72b6a);}};https[_0xd56d9f(0x1e9)](_0x2b01c7,_0x2a46bc=>{const _0x2a2005=_0xd56d9f,_0x424913={'ChdgF':function(_0x482b8d,_0x5ba055){const _0x4c958b=a105_0x38b6;return _0x5ca33c[_0x4c958b(0x208)](_0x482b8d,_0x5ba055);}};if(_0x161a56&&_0x5ca33c[_0x2a2005(0x205)](_0x2a46bc['statusCode'],0x130)){const _0x1cb369={};_0x1cb369['needsUpdate']=![],_0x5ca33c[_0x2a2005(0x265)](_0x5c4972,_0x1cb369);return;}const _0x4c1244=_0x2a46bc[_0x2a2005(0x248)][_0x2a2005(0x1e8)];_0x4c1244&&this.#saveETag(_0x214646,_0x4c1244),_0x2a46bc[_0x2a2005(0x259)](_0xa2b96b),_0x2a46bc['on'](_0x5ca33c[_0x2a2005(0x1ef)],function(_0x27f857){const _0x4f1e6a=_0x2a2005;logger[_0x4f1e6a(0x232)](_0x4f1e6a(0x1f4)+_0x27f857),_0x5ca33c[_0x4f1e6a(0x21e)](_0x372696,_0x27f857);}),_0xa2b96b['on'](_0x5ca33c[_0x2a2005(0x1ef)],function(_0x44353c){const _0x30a895=_0x2a2005;logger[_0x30a895(0x232)](_0x30a895(0x1e3)+_0x44353c),_0x424913[_0x30a895(0x22c)](_0x372696,_0x44353c);}),_0xa2b96b['on'](_0x5ca33c[_0x2a2005(0x1ea)],()=>{const _0x24f527=_0x2a2005;this[_0x24f527(0x1cf)](_0x13a479,_0x214646)[_0x24f527(0x213)](_0x46968d=>_0x5c4972({'needsUpdate':!![],'binaryPath':_0x46968d}))['catch'](_0x372696);});})['on'](_0x500904[_0xd56d9f(0x1f5)],function(_0x2e79cd){const _0x261b49=_0xd56d9f;logger[_0x261b49(0x232)]('Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20'+_0x2e79cd),_0x5ca33c[_0x261b49(0x210)](_0x372696,_0x2e79cd);});});}[a105_0x39309a(0x1cf)](_0x2bd659,_0x33a2d7){const _0x3c8f19=a105_0x39309a,_0x256640={'AKRZz':function(_0x5b467c,_0x16ad22){return _0x5b467c(_0x16ad22);},'tjZcw':'end','iUbNq':function(_0x3186be,_0x3edd43){return _0x3186be===_0x3edd43;},'qJPiH':_0x3c8f19(0x1fc),'bselR':function(_0x27b3a6,_0xcb4aa5){return _0x27b3a6(_0xcb4aa5);},'fJfJQ':_0x3c8f19(0x204),'cenZH':_0x3c8f19(0x232)},_0x383800=this.#binaryName,_0x22227c=path[_0x3c8f19(0x1e6)](_0x33a2d7,_0x383800);return new Promise((_0x2ed96a,_0x416cac)=>{const _0x23c25a=_0x3c8f19,_0x5d2285={'FdQfc':function(_0x4e3018,_0x51c274){const _0x3a2a0a=a105_0x38b6;return _0x256640[_0x3a2a0a(0x250)](_0x4e3018,_0x51c274);},'bgXbt':_0x256640[_0x23c25a(0x1d1)],'xnSiw':function(_0x1a07eb,_0x3733ba){const _0x1b4275=_0x23c25a;return _0x256640[_0x1b4275(0x216)](_0x1a07eb,_0x3733ba);},'Lvjee':_0x256640[_0x23c25a(0x242)],'AZutf':function(_0x5c93c,_0x5309d2){const _0x45badb=_0x23c25a;return _0x256640[_0x45badb(0x250)](_0x5c93c,_0x5309d2);},'zlWRG':function(_0x1a7425,_0x3a3187){const _0x58138b=_0x23c25a;return _0x256640[_0x58138b(0x224)](_0x1a7425,_0x3a3187);},'wAtOC':function(_0x445663,_0x2bb082){const _0x3bb205=_0x23c25a;return _0x256640[_0x3bb205(0x224)](_0x445663,_0x2bb082);},'MhmlX':_0x256640[_0x23c25a(0x25a)],'wsPnv':_0x256640[_0x23c25a(0x1d7)]},_0x1c21d1={};_0x1c21d1[_0x23c25a(0x25f)]=!![],yauzl[_0x23c25a(0x244)](_0x2bd659,_0x1c21d1,function(_0x5d2487,_0x420955){const _0x23ed29=_0x23c25a,_0xf7c9a8={'JEiij':function(_0x28776c,_0x3d5cf2){const _0x4dbedc=a105_0x38b6;return _0x5d2285[_0x4dbedc(0x24e)](_0x28776c,_0x3d5cf2);},'FWqyV':function(_0x2dbc6e,_0x3b4ad7){const _0x1489fc=a105_0x38b6;return _0x5d2285[_0x1489fc(0x25c)](_0x2dbc6e,_0x3b4ad7);}};_0x5d2487&&_0x5d2285['wAtOC'](_0x416cac,_0x5d2487),_0x420955[_0x23ed29(0x1d3)](),_0x420955['on'](_0x5d2285['MhmlX'],_0x5987a8=>{const _0x3f00a3=_0x23ed29,_0x1102f1={'XkoUD':function(_0x94a8f3,_0x2297ac){return _0x5d2285['FdQfc'](_0x94a8f3,_0x2297ac);},'PGlsi':_0x5d2285['bgXbt']};if(/\/$/[_0x3f00a3(0x21f)](_0x5987a8[_0x3f00a3(0x254)]))_0x420955[_0x3f00a3(0x1d3)]();else{const _0x3d104e=fs[_0x3f00a3(0x203)](path[_0x3f00a3(0x1e6)](_0x33a2d7,_0x5987a8[_0x3f00a3(0x254)]));_0x420955['openReadStream'](_0x5987a8,function(_0x54cf23,_0xab587f){_0x54cf23&&_0x1102f1['XkoUD'](_0x416cac,_0x5d2487),_0xab587f['on'](_0x1102f1['PGlsi'],function(){const _0x553056=a105_0x38b6;_0x3d104e['close'](),_0x420955[_0x553056(0x1d3)]();}),_0xab587f['pipe'](_0x3d104e);}),_0x5d2285[_0x3f00a3(0x262)](_0x5987a8[_0x3f00a3(0x254)],_0x383800)&&_0x420955[_0x3f00a3(0x22f)]();}}),_0x420955['on'](_0x5d2285[_0x23ed29(0x1df)],_0x44ba9b=>{const _0x356512=_0x23ed29;_0x5d2285[_0x356512(0x261)](_0x416cac,_0x44ba9b);}),_0x420955['once'](_0x5d2285[_0x23ed29(0x233)],()=>{const _0x355a21=_0x23ed29;fs[_0x355a21(0x23d)](_0x22227c,_0x5d2285[_0x355a21(0x234)],function(_0x521024){const _0x4c9bb5=_0x355a21;_0x521024&&_0xf7c9a8[_0x4c9bb5(0x264)](_0x416cac,_0x521024),_0xf7c9a8['FWqyV'](_0x2ed96a,_0x22227c);}),_0x420955[_0x355a21(0x22f)]();});});});}async[a105_0x39309a(0x1d8)](_0x10660c){const _0x25953f=a105_0x39309a,_0x2bd5bd={'oQjBb':function(_0x58f0d4,_0xba79a9){return _0x58f0d4(_0xba79a9);},'nHitB':function(_0x452101,_0x6a8afc,_0x1ae1a5,_0x31f478){return _0x452101(_0x6a8afc,_0x1ae1a5,_0x31f478);},'INaMu':'--version','TDoig':'data','JAsYY':_0x25953f(0x22f)},_0x569739=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x2dcec0,_0x22ae96)=>{const _0x2169f0=_0x25953f,_0x154fca={};_0x154fca[_0x2169f0(0x1da)]=process['env'];const _0x49a3e8=_0x2bd5bd[_0x2169f0(0x245)](spawn,_0x10660c,[_0x2bd5bd[_0x2169f0(0x1d6)]],_0x154fca);_0x49a3e8[_0x2169f0(0x251)]['on'](_0x2bd5bd[_0x2169f0(0x252)],_0x133dce=>{const _0x149767=_0x2169f0;_0x569739[_0x149767(0x21f)](_0x133dce)&&_0x2bd5bd[_0x149767(0x223)](_0x2dcec0,!![]);}),_0x49a3e8['on'](_0x2bd5bd['JAsYY'],()=>{const _0x504307=_0x2169f0;_0x2bd5bd[_0x504307(0x223)](_0x2dcec0,![]);});});}#homedir(){const _0x21d47b=a105_0x39309a,_0x5549ed={};_0x5549ed[_0x21d47b(0x20e)]=function(_0x3c4016,_0x3d77ba){return _0x3c4016===_0x3d77ba;},_0x5549ed[_0x21d47b(0x263)]=_0x21d47b(0x253),_0x5549ed[_0x21d47b(0x218)]=_0x21d47b(0x235),_0x5549ed[_0x21d47b(0x237)]=function(_0x17a68c,_0x427ed4){return _0x17a68c+_0x427ed4;},_0x5549ed[_0x21d47b(0x228)]='darwin',_0x5549ed[_0x21d47b(0x21c)]=_0x21d47b(0x1ee),_0x5549ed[_0x21d47b(0x1db)]=function(_0x31fce8,_0x4195d0){return _0x31fce8===_0x4195d0;},_0x5549ed[_0x21d47b(0x211)]=_0x21d47b(0x239),_0x5549ed[_0x21d47b(0x1f1)]=_0x21d47b(0x231),_0x5549ed[_0x21d47b(0x23f)]=function(_0x24319d,_0x3cd989){return _0x24319d+_0x3cd989;},_0x5549ed['FcvUp']='/home/',_0x5549ed[_0x21d47b(0x1fb)]=function(_0x571e00,_0x594c7e){return _0x571e00||_0x594c7e;};const _0x37b5a4=_0x5549ed;if(_0x37b5a4['zzBNi'](typeof os[_0x21d47b(0x20d)],_0x37b5a4[_0x21d47b(0x263)]))return os[_0x21d47b(0x20d)]();const _0x11fb40=process[_0x21d47b(0x1da)],_0x17ec85=_0x11fb40[_0x21d47b(0x227)],_0x19f1f3=_0x11fb40[_0x21d47b(0x226)]||_0x11fb40[_0x21d47b(0x221)]||_0x11fb40[_0x21d47b(0x249)]||_0x11fb40['USERNAME'];if(_0x37b5a4[_0x21d47b(0x20e)](process[_0x21d47b(0x260)],_0x37b5a4['sQtpL']))return _0x11fb40[_0x21d47b(0x247)]||_0x37b5a4[_0x21d47b(0x237)](_0x11fb40[_0x21d47b(0x24c)],_0x11fb40[_0x21d47b(0x229)])||_0x17ec85||null;if(_0x37b5a4[_0x21d47b(0x20e)](process['platform'],_0x37b5a4[_0x21d47b(0x228)]))return _0x17ec85||(_0x19f1f3?_0x37b5a4['CnoiJ'](_0x37b5a4[_0x21d47b(0x21c)],_0x19f1f3):null);if(_0x37b5a4[_0x21d47b(0x1db)](process[_0x21d47b(0x260)],_0x37b5a4[_0x21d47b(0x211)]))return _0x17ec85||(_0x37b5a4[_0x21d47b(0x20e)](process[_0x21d47b(0x1f3)](),0x0)?_0x37b5a4[_0x21d47b(0x1f1)]:_0x19f1f3?_0x37b5a4[_0x21d47b(0x23f)](_0x37b5a4[_0x21d47b(0x1cb)],_0x19f1f3):null);return _0x37b5a4[_0x21d47b(0x1fb)](_0x17ec85,null);}}module[a105_0x39309a(0x20b)]=PercyBinary;function a105_0x38b6(_0xb8d00f,_0x281a68){const _0x73e76=a105_0x73e7();return a105_0x38b6=function(_0x38b657,_0x5bb45){_0x38b657=_0x38b657-0x1cb;let _0x242a5f=_0x73e76[_0x38b657];return _0x242a5f;},a105_0x38b6(_0xb8d00f,_0x281a68);}function a105_0x73e7(){const _0x487995=['INaMu','cenZH','validateBinary','https://github.com/percy/cli/releases/latest/download','env','RUgBY','child_process','If-None-Match','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20','wsPnv','CPqKS','zuQrM','Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20','Saved\x20new\x20ETag\x20for\x20percy\x20binary','AGKZZ','join','warn','etag','get','brpuN','accessSync','CTKhu','R_OK','/Users/','mLBcT','winstonLogger','ipCqj','mkdirSync','getuid','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20','rBtxD','nGEqI','needsUpdate','yauzl','/percy-win.zip','657YnISBQ','uyLVc','0755','cwd','url','40OxEWCQ','BRUtF','undefined','vqXTc','createWriteStream','entry','vMRPH','alpHS','7799kAPJWl','QFwHn','length','oocQe','exports','UOxCP','homedir','zzBNi','W_OK','FzAsj','DXxia','binaryPath','then','proxyHost','18LnFMJg','iUbNq','getBinaryPath','sQtpL','zovKD','130570VcLrhQ','ZnMwA','XlqHA','.zip','ZCPDl','test','.browserstack','USER','132ZsnymW','oQjBb','bselR','thnuN','LOGNAME','HOME','CTfKw','HOMEPATH','Error\x20trying\x20to\x20download\x20percy\x20binary','path','ChdgF','DpoEl','32388bRUEDw','close','Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20','/root','error','bgXbt','Lvjee','win32','gfKJk','CnoiJ','trim','linux','match','host','cQsVx','chmod','https-proxy-agent','lSDak','xYGpU','ryrrM','qJPiH','debug','open','nHitB','writeFileSync','USERPROFILE','headers','LNAME','2154488pNxsfJ','qlERx','HOMEDRIVE','Failed\x20to\x20save\x20ETag\x20file:\x20','AZutf','useCaCertificate','AKRZz','stdout','TDoig','function','fileName','statSync','386428DecPUz','port','percy','pipe','fJfJQ','download','zlWRG','750445dRfTMc','15060oQBqTn','lazyEntries','platform','FdQfc','xnSiw','oCPJR','JEiij','KTApq','FcvUp','.etag','434154rDYlIt','/percy-linux.zip','extractAndSaveBinary','percy.exe','tjZcw','New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update','readEntry','X_OK','BIEwm'];a105_0x73e7=function(){return _0x487995;};return a105_0x73e7();}
1
+ const a107_0x59862c=a107_0x12ad;(function(_0x333457,_0x21cff0){const _0x4622b9=a107_0x12ad,_0x3cb7e1=_0x333457();while(!![]){try{const _0x5ea7cd=parseInt(_0x4622b9(0x268))/0x1*(-parseInt(_0x4622b9(0x239))/0x2)+parseInt(_0x4622b9(0x227))/0x3+parseInt(_0x4622b9(0x257))/0x4*(-parseInt(_0x4622b9(0x25d))/0x5)+parseInt(_0x4622b9(0x1fd))/0x6*(parseInt(_0x4622b9(0x223))/0x7)+-parseInt(_0x4622b9(0x1e6))/0x8*(parseInt(_0x4622b9(0x1db))/0x9)+-parseInt(_0x4622b9(0x1f8))/0xa+parseInt(_0x4622b9(0x20d))/0xb*(parseInt(_0x4622b9(0x219))/0xc);if(_0x5ea7cd===_0x21cff0)break;else _0x3cb7e1['push'](_0x3cb7e1['shift']());}catch(_0x38cefb){_0x3cb7e1['push'](_0x3cb7e1['shift']());}}}(a107_0x1bc3,0x593d3));const {https}=require(a107_0x59862c(0x24f)),url=require('url'),yauzl=require('yauzl'),fs=require('fs'),path=require(a107_0x59862c(0x1ed)),os=require('os'),{spawn}=require(a107_0x59862c(0x1e7)),HttpsProxyAgent=require(a107_0x59862c(0x23e)),logger=require('../logger')['winstonLogger'];function a107_0x12ad(_0x436f8d,_0x5cb9ba){const _0x1bc321=a107_0x1bc3();return a107_0x12ad=function(_0x12add2,_0x4be435){_0x12add2=_0x12add2-0x1db;let _0x2bac83=_0x1bc321[_0x12add2];return _0x2bac83;},a107_0x12ad(_0x436f8d,_0x5cb9ba);}class PercyBinary{#hostOS=process[a107_0x59862c(0x242)];#httpPath=null;#binaryName=a107_0x59862c(0x222);#orderedPaths=[path[a107_0x59862c(0x1f3)](this.#homedir(),a107_0x59862c(0x21e)),process[a107_0x59862c(0x24d)](),os[a107_0x59862c(0x1fa)]()];constructor(){const _0x1bd372=a107_0x59862c,_0x54aa7d={};_0x54aa7d[_0x1bd372(0x266)]='https://github.com/percy/cli/releases/latest/download',_0x54aa7d[_0x1bd372(0x1fe)]=function(_0x5754cc,_0x1d02bc){return _0x5754cc+_0x1d02bc;},_0x54aa7d[_0x1bd372(0x23a)]=_0x1bd372(0x206),_0x54aa7d['oyeBE']=_0x1bd372(0x26b),_0x54aa7d[_0x1bd372(0x204)]=_0x1bd372(0x1f1),_0x54aa7d[_0x1bd372(0x264)]=function(_0x473f8d,_0x2bae89){return _0x473f8d+_0x2bae89;},_0x54aa7d[_0x1bd372(0x22e)]='/percy-linux.zip';const _0x243333=_0x54aa7d,_0x41f08b=_0x243333[_0x1bd372(0x266)];if(this.#hostOS[_0x1bd372(0x246)](/darwin|mac os/i))this.#httpPath=_0x243333[_0x1bd372(0x1fe)](_0x41f08b,_0x243333[_0x1bd372(0x23a)]);else this.#hostOS[_0x1bd372(0x246)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x243333['KadYU'](_0x41f08b,_0x243333[_0x1bd372(0x256)]),this.#binaryName=_0x243333[_0x1bd372(0x204)]):this.#httpPath=_0x243333['PFBsU'](_0x41f08b,_0x243333[_0x1bd372(0x22e)]);}#getAvailableDirs(){const _0x1d73aa=a107_0x59862c,_0x4f50d1={};_0x4f50d1[_0x1d73aa(0x238)]=function(_0x247e92,_0x7706c){return _0x247e92<_0x7706c;},_0x4f50d1[_0x1d73aa(0x22a)]=_0x1d73aa(0x24a);const _0x2a8b02=_0x4f50d1;for(var _0xe9ed04=0x0;_0x2a8b02[_0x1d73aa(0x238)](_0xe9ed04,this.#orderedPaths['length']);_0xe9ed04++){var _0x34cfa4=this.#orderedPaths[_0xe9ed04];if(this.#makePath(_0x34cfa4))return _0x34cfa4;}throw new Error(_0x2a8b02['PYapF']);}#makePath(_0xa29e2a){try{return _0xa29e2a&&!this.#checkPath(_0xa29e2a)&&fs['mkdirSync'](_0xa29e2a),!![];}catch{return![];}}#checkPath(_0x1246cd,_0x55dec5){const _0x2a6ff5=a107_0x59862c,_0x18df0b={};_0x18df0b[_0x2a6ff5(0x205)]=function(_0x121c0c,_0x5b4d28){return _0x121c0c|_0x5b4d28;},_0x18df0b[_0x2a6ff5(0x1ec)]=function(_0x1e3dc9,_0x4e6997){return _0x1e3dc9!==_0x4e6997;},_0x18df0b[_0x2a6ff5(0x220)]=_0x2a6ff5(0x237);const _0x1912f8=_0x18df0b;_0x55dec5=_0x55dec5||_0x1912f8[_0x2a6ff5(0x205)](fs[_0x2a6ff5(0x1e5)],fs['W_OK']);try{return fs[_0x2a6ff5(0x228)](_0x1246cd,_0x55dec5),!![];}catch(_0x3f44dc){if(_0x1912f8['UEqBO'](typeof fs['accessSync'],_0x1912f8[_0x2a6ff5(0x220)]))return![];try{return fs[_0x2a6ff5(0x200)](_0x1246cd),!![];}catch(_0x26e835){return![];}}}#getETagPath(_0x2054aa){const _0x3b44b6=a107_0x59862c;return path[_0x3b44b6(0x1f3)](_0x2054aa,this.#binaryName+'.etag');}#loadETag(_0xebf939){const _0xfb3ca5=a107_0x59862c,_0x1b5468={};_0x1b5468['ygSOW']=_0xfb3ca5(0x258);const _0x1341bc=_0x1b5468,_0x2a899d=this.#getETagPath(_0xebf939);if(this.#checkPath(_0x2a899d))try{return fs[_0xfb3ca5(0x21d)](_0x2a899d,_0x1341bc[_0xfb3ca5(0x269)])[_0xfb3ca5(0x1f5)]();}catch(_0xebeecf){logger['warn']('Failed\x20to\x20read\x20ETag\x20file:\x20'+_0xebeecf);}return null;}#saveETag(_0x14b69c,_0x5ed0a6){const _0x5d24de=a107_0x59862c,_0x1a1d85={};_0x1a1d85['TXvTr']=_0x5d24de(0x24e);const _0x1023f7=_0x1a1d85;if(!_0x5ed0a6)return;try{const _0x11206e=this.#getETagPath(_0x14b69c);fs[_0x5d24de(0x214)](_0x11206e,_0x5ed0a6),logger[_0x5d24de(0x23f)](_0x1023f7['TXvTr']);}catch(_0x167850){logger[_0x5d24de(0x218)](_0x5d24de(0x236)+_0x167850);}}async #handleBinaryDownload(_0x3d2184,_0x351c6,_0x2604a3){const _0x1d9999=a107_0x59862c,_0x5666fc={};_0x5666fc[_0x1d9999(0x21b)]=_0x1d9999(0x259);const _0x1f0d89=_0x5666fc,_0x37b192=await this[_0x1d9999(0x22f)](_0x3d2184[_0x1d9999(0x1ea)]);if(!_0x37b192){logger[_0x1d9999(0x202)](_0x1f0d89[_0x1d9999(0x21b)]);const _0x58b6c9=await this['download'](_0x351c6,_0x2604a3);return _0x58b6c9[_0x1d9999(0x1ea)];}return _0x3d2184['binaryPath'];}async[a107_0x59862c(0x243)](_0x4460f6){const _0x11aefd=a107_0x59862c,_0x2aba52={};_0x2aba52[_0x11aefd(0x1eb)]=_0x11aefd(0x225),_0x2aba52[_0x11aefd(0x1f2)]=_0x11aefd(0x26a);const _0x1826e8=_0x2aba52,_0x5f5399=this.#getAvailableDirs(),_0x463e71=path[_0x11aefd(0x1f3)](_0x5f5399,this.#binaryName);if(this.#checkPath(_0x463e71,fs[_0x11aefd(0x22d)])){const _0x254119=this.#loadETag(_0x5f5399);if(_0x254119)try{const _0x5875e8=await this[_0x11aefd(0x241)](_0x4460f6,_0x5f5399,_0x254119);if(!_0x5875e8[_0x11aefd(0x217)])return logger[_0x11aefd(0x23f)](_0x1826e8['Jmvob']),_0x463e71;return logger[_0x11aefd(0x23f)](_0x1826e8[_0x11aefd(0x1f2)]),await this.#handleBinaryDownload(_0x5875e8,_0x4460f6,_0x5f5399);}catch(_0x35b9cd){return logger['warn'](_0x11aefd(0x235)+_0x35b9cd),_0x463e71;}}const _0x202306=await this[_0x11aefd(0x241)](_0x4460f6,_0x5f5399);return await this.#handleBinaryDownload(_0x202306,_0x4460f6,_0x5f5399);}[a107_0x59862c(0x241)](_0x44d6f3,_0x1f92a2,_0x3722d6=null){const _0x3f9f6c=a107_0x59862c,_0x532619={'fuZFF':function(_0x171867,_0xfb9b5d){return _0x171867===_0xfb9b5d;},'PZrRe':function(_0x260cfc,_0x11b6bd){return _0x260cfc(_0x11b6bd);},'nZhLA':_0x3f9f6c(0x202),'nSHeW':_0x3f9f6c(0x1df),'CpVnK':function(_0x18c846,_0x3db415){return _0x18c846(_0x3db415);},'uQgKa':function(_0x162e25,_0x2da0d5){return _0x162e25+_0x2da0d5;},'zPYuQ':_0x3f9f6c(0x247)};_0x1f92a2&&!this.#checkPath(_0x1f92a2)&&fs[_0x3f9f6c(0x265)](_0x1f92a2);const _0x2f3022=this.#binaryName,_0x5783e6=path[_0x3f9f6c(0x1f3)](_0x1f92a2,_0x532619[_0x3f9f6c(0x21c)](_0x2f3022,_0x532619[_0x3f9f6c(0x201)])),_0x38f52e=fs[_0x3f9f6c(0x1ee)](_0x5783e6),_0x24ad6a=url[_0x3f9f6c(0x211)](this.#httpPath);if(_0x44d6f3[_0x3f9f6c(0x1ff)]&&_0x44d6f3[_0x3f9f6c(0x249)]){const _0x323fcb={};_0x323fcb['host']=_0x44d6f3[_0x3f9f6c(0x1ff)],_0x323fcb[_0x3f9f6c(0x221)]=_0x44d6f3[_0x3f9f6c(0x249)],_0x24ad6a[_0x3f9f6c(0x25e)]=new HttpsProxyAgent(_0x323fcb);}if(_0x44d6f3[_0x3f9f6c(0x1e2)])try{_0x24ad6a['ca']=fs[_0x3f9f6c(0x21d)](_0x44d6f3[_0x3f9f6c(0x1e2)]);}catch(_0x263bbe){logger[_0x3f9f6c(0x202)](_0x3f9f6c(0x230)+_0x263bbe);}if(_0x3722d6){const _0x496431={};_0x496431[_0x3f9f6c(0x1de)]=_0x3722d6,_0x24ad6a['headers']=_0x496431;}return new Promise((_0x119fa1,_0x4aedaf)=>{const _0x42769d=_0x3f9f6c,_0x2504a2={'rwoFA':function(_0x45a854,_0x471b63){return _0x532619['CpVnK'](_0x45a854,_0x471b63);}};https[_0x42769d(0x216)](_0x24ad6a,_0x1c583b=>{const _0x5ececa=_0x42769d;if(_0x3722d6&&_0x532619[_0x5ececa(0x254)](_0x1c583b[_0x5ececa(0x23d)],0x130)){const _0xec8200={};_0xec8200[_0x5ececa(0x217)]=![],_0x532619['PZrRe'](_0x119fa1,_0xec8200);return;}const _0x37f0ef=_0x1c583b[_0x5ececa(0x224)][_0x5ececa(0x248)];_0x37f0ef&&this.#saveETag(_0x1f92a2,_0x37f0ef),_0x1c583b[_0x5ececa(0x244)](_0x38f52e),_0x1c583b['on'](_0x532619[_0x5ececa(0x20c)],function(_0x5d5c46){const _0x2f908e=_0x5ececa;logger[_0x2f908e(0x202)]('Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20'+_0x5d5c46),_0x2504a2[_0x2f908e(0x252)](_0x4aedaf,_0x5d5c46);}),_0x38f52e['on'](_0x532619['nZhLA'],function(_0x3e4309){const _0x46d6e4=_0x5ececa;logger[_0x46d6e4(0x202)](_0x46d6e4(0x263)+_0x3e4309),_0x2504a2[_0x46d6e4(0x252)](_0x4aedaf,_0x3e4309);}),_0x38f52e['on'](_0x532619['nSHeW'],()=>{const _0x1d48f7=_0x5ececa;this[_0x1d48f7(0x21f)](_0x5783e6,_0x1f92a2)[_0x1d48f7(0x229)](_0x19f838=>_0x119fa1({'needsUpdate':!![],'binaryPath':_0x19f838}))['catch'](_0x4aedaf);});})['on'](_0x532619['nZhLA'],function(_0x1346b8){const _0x221042=_0x42769d;logger[_0x221042(0x202)](_0x221042(0x22c)+_0x1346b8),_0x2504a2['rwoFA'](_0x4aedaf,_0x1346b8);});});}[a107_0x59862c(0x21f)](_0x3e2850,_0x44c8f5){const _0x12813c=a107_0x59862c,_0x430993={'xTPoc':function(_0x158872,_0x685e5a){return _0x158872(_0x685e5a);},'SEwqb':_0x12813c(0x251),'OzeaE':function(_0x3ec664,_0x36a961){return _0x3ec664(_0x36a961);},'TweaH':_0x12813c(0x209),'wKScv':function(_0x2ef627,_0xb66a80){return _0x2ef627===_0xb66a80;},'UxlCe':_0x12813c(0x262),'eEXOZ':'error'},_0x117620=this.#binaryName,_0x4dc807=path[_0x12813c(0x1f3)](_0x44c8f5,_0x117620);return new Promise((_0x2f92bd,_0x7136de)=>{const _0xb6e455=_0x12813c,_0x436429={'UMaMc':function(_0x4736eb,_0x3c35ba){const _0x2b1c37=a107_0x12ad;return _0x430993[_0x2b1c37(0x1dc)](_0x4736eb,_0x3c35ba);},'cOTQB':function(_0x12363c,_0x561a3a){return _0x430993['xTPoc'](_0x12363c,_0x561a3a);},'aKRCk':_0x430993['SEwqb'],'NkxRg':function(_0x966a20,_0x38274){const _0x434883=a107_0x12ad;return _0x430993[_0x434883(0x207)](_0x966a20,_0x38274);},'lhXxW':_0x430993[_0xb6e455(0x210)],'tOMUI':function(_0x2354be,_0x43de12){return _0x430993['wKScv'](_0x2354be,_0x43de12);},'pqyPC':_0x430993['UxlCe'],'fDRmh':_0x430993[_0xb6e455(0x240)]},_0x33b6a9={};_0x33b6a9[_0xb6e455(0x250)]=!![],yauzl[_0xb6e455(0x213)](_0x3e2850,_0x33b6a9,function(_0x2b96f6,_0x144cf9){const _0x5053b6=_0xb6e455,_0x4c93d9={'hbfFk':function(_0x46f7c8,_0x122882){const _0x32a1f8=a107_0x12ad;return _0x436429[_0x32a1f8(0x1f9)](_0x46f7c8,_0x122882);},'wcbOi':_0x436429['lhXxW'],'nDWcp':function(_0x4b7aa9,_0x2ec04c){return _0x436429['tOMUI'](_0x4b7aa9,_0x2ec04c);}};_0x2b96f6&&_0x436429['NkxRg'](_0x7136de,_0x2b96f6),_0x144cf9[_0x5053b6(0x253)](),_0x144cf9['on'](_0x436429['pqyPC'],_0x57caf4=>{const _0x403f12=_0x5053b6;if(/\/$/[_0x403f12(0x1e9)](_0x57caf4['fileName']))_0x144cf9['readEntry']();else{const _0x10a46c=fs[_0x403f12(0x1ee)](path[_0x403f12(0x1f3)](_0x44c8f5,_0x57caf4[_0x403f12(0x1e8)]));_0x144cf9[_0x403f12(0x1fb)](_0x57caf4,function(_0x428106,_0x26985b){const _0x280a78=_0x403f12;_0x428106&&_0x4c93d9['hbfFk'](_0x7136de,_0x2b96f6),_0x26985b['on'](_0x4c93d9[_0x280a78(0x23c)],function(){const _0x3f7d9f=_0x280a78;_0x10a46c[_0x3f7d9f(0x1df)](),_0x144cf9[_0x3f7d9f(0x253)]();}),_0x26985b[_0x280a78(0x244)](_0x10a46c);}),_0x4c93d9[_0x403f12(0x1e3)](_0x57caf4[_0x403f12(0x1e8)],_0x117620)&&_0x144cf9[_0x403f12(0x1df)]();}}),_0x144cf9['on'](_0x436429[_0x5053b6(0x267)],_0x34d3af=>{const _0x92ed4f=_0x5053b6;_0x436429[_0x92ed4f(0x1ef)](_0x7136de,_0x34d3af);}),_0x144cf9[_0x5053b6(0x1e4)](_0x436429[_0x5053b6(0x20b)],()=>{const _0xc5c60=_0x5053b6,_0x2ec128={'LvZZi':function(_0x486dc4,_0x5addc4){return _0x436429['UMaMc'](_0x486dc4,_0x5addc4);},'mJZex':function(_0x4206b7,_0x2c17f8){const _0x2f9b3f=a107_0x12ad;return _0x436429[_0x2f9b3f(0x245)](_0x4206b7,_0x2c17f8);}};fs['chmod'](_0x4dc807,_0x436429[_0xc5c60(0x1e0)],function(_0x35aac6){const _0x1b051a=_0xc5c60;_0x35aac6&&_0x2ec128[_0x1b051a(0x25f)](_0x7136de,_0x35aac6),_0x2ec128['mJZex'](_0x2f92bd,_0x4dc807);}),_0x144cf9[_0xc5c60(0x1df)]();});});});}async['validateBinary'](_0x54a6ea){const _0x389c3f=a107_0x59862c,_0x4facc9={'GVPnT':function(_0x1c3834,_0x3993d0){return _0x1c3834(_0x3993d0);},'ItxSR':function(_0x2b552f,_0x3104c6){return _0x2b552f(_0x3104c6);},'HrCbs':function(_0x8b2e43,_0xfed17f,_0x45ef36,_0x1023f3){return _0x8b2e43(_0xfed17f,_0x45ef36,_0x1023f3);},'DujAx':'--version','zUNpN':_0x389c3f(0x25a),'PqUvq':_0x389c3f(0x1df)},_0x447a39=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x3c21b0,_0x4eac01)=>{const _0x27f909=_0x389c3f,_0x588651={'gUmDO':function(_0x104dec,_0xba0ef6){return _0x4facc9['GVPnT'](_0x104dec,_0xba0ef6);},'NsBGm':function(_0xc9152,_0x23e24d){return _0x4facc9['ItxSR'](_0xc9152,_0x23e24d);}},_0x361ae3={};_0x361ae3['env']=process['env'];const _0x3792c9=_0x4facc9[_0x27f909(0x260)](spawn,_0x54a6ea,[_0x4facc9['DujAx']],_0x361ae3);_0x3792c9['stdout']['on'](_0x4facc9[_0x27f909(0x24c)],_0x1476c2=>{const _0x3a4713=_0x27f909;_0x447a39[_0x3a4713(0x1e9)](_0x1476c2)&&_0x588651['gUmDO'](_0x3c21b0,!![]);}),_0x3792c9['on'](_0x4facc9[_0x27f909(0x203)],()=>{const _0x536fd1=_0x27f909;_0x588651[_0x536fd1(0x25b)](_0x3c21b0,![]);});});}#homedir(){const _0x517ec9=a107_0x59862c,_0x3eb530={};_0x3eb530[_0x517ec9(0x1f0)]=function(_0x2f4a8c,_0x342e79){return _0x2f4a8c===_0x342e79;},_0x3eb530[_0x517ec9(0x1dd)]='function',_0x3eb530[_0x517ec9(0x1f6)]=function(_0x5b208b,_0x2c74dd){return _0x5b208b===_0x2c74dd;},_0x3eb530['YLWgc']=_0x517ec9(0x215),_0x3eb530['bGvtW']=function(_0x151885,_0x3f6373){return _0x151885+_0x3f6373;},_0x3eb530[_0x517ec9(0x24b)]=_0x517ec9(0x255),_0x3eb530[_0x517ec9(0x1fc)]='/Users/',_0x3eb530[_0x517ec9(0x226)]='linux',_0x3eb530[_0x517ec9(0x21a)]=function(_0x5ee30b,_0x31326){return _0x5ee30b===_0x31326;},_0x3eb530['ffYqE']='/root',_0x3eb530['qihoa']=_0x517ec9(0x1e1),_0x3eb530[_0x517ec9(0x20a)]=function(_0x5cec68,_0xee20d2){return _0x5cec68||_0xee20d2;};const _0x3d1c4e=_0x3eb530;if(_0x3d1c4e[_0x517ec9(0x1f0)](typeof os['homedir'],_0x3d1c4e[_0x517ec9(0x1dd)]))return os[_0x517ec9(0x1f4)]();const _0x2173c9=process[_0x517ec9(0x261)],_0x5785fc=_0x2173c9[_0x517ec9(0x212)],_0x44a48a=_0x2173c9[_0x517ec9(0x234)]||_0x2173c9[_0x517ec9(0x22b)]||_0x2173c9['LNAME']||_0x2173c9['USERNAME'];if(_0x3d1c4e[_0x517ec9(0x1f6)](process[_0x517ec9(0x242)],_0x3d1c4e[_0x517ec9(0x231)]))return _0x2173c9[_0x517ec9(0x208)]||_0x3d1c4e[_0x517ec9(0x233)](_0x2173c9[_0x517ec9(0x23b)],_0x2173c9[_0x517ec9(0x20e)])||_0x5785fc||null;if(_0x3d1c4e[_0x517ec9(0x1f6)](process[_0x517ec9(0x242)],_0x3d1c4e[_0x517ec9(0x24b)]))return _0x5785fc||(_0x44a48a?_0x3d1c4e[_0x517ec9(0x233)](_0x3d1c4e[_0x517ec9(0x1fc)],_0x44a48a):null);if(_0x3d1c4e[_0x517ec9(0x1f6)](process[_0x517ec9(0x242)],_0x3d1c4e[_0x517ec9(0x226)]))return _0x5785fc||(_0x3d1c4e['HbrGo'](process[_0x517ec9(0x25c)](),0x0)?_0x3d1c4e[_0x517ec9(0x232)]:_0x44a48a?_0x3d1c4e[_0x517ec9(0x233)](_0x3d1c4e[_0x517ec9(0x20f)],_0x44a48a):null);return _0x3d1c4e[_0x517ec9(0x20a)](_0x5785fc,null);}}function a107_0x1bc3(){const _0x274a19=['KadYU','proxyHost','statSync','zPYuQ','error','PqUvq','EqOJt','EcmkQ','/percy-osx.zip','OzeaE','USERPROFILE','end','iCkRK','lhXxW','nZhLA','4596526RjMVuO','HOMEPATH','qihoa','TweaH','parse','HOME','open','writeFileSync','win32','get','needsUpdate','warn','12JZMNsi','HbrGo','EWNwp','uQgKa','readFileSync','.browserstack','extractAndSaveBinary','DDVUv','port','percy','9835yTyMLI','headers','Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)','hAWjP','679845ygCOXr','accessSync','then','PYapF','USER','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20','X_OK','mNsfI','validateBinary','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20','YLWgc','ffYqE','bGvtW','LOGNAME','Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20','Failed\x20to\x20save\x20ETag\x20file:\x20','undefined','gkZcf','906ZgbSgi','wPYYN','HOMEDRIVE','wcbOi','statusCode','https-proxy-agent','debug','eEXOZ','download','platform','getBinaryPath','pipe','cOTQB','match','.zip','etag','proxyPort','Error\x20trying\x20to\x20download\x20percy\x20binary','MyiQk','zUNpN','cwd','Saved\x20new\x20ETag\x20for\x20percy\x20binary','follow-redirects','lazyEntries','0755','rwoFA','readEntry','fuZFF','darwin','oyeBE','4mKUaOt','utf8','Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying','data','NsBGm','getuid','230305TbGTFb','agent','LvZZi','HrCbs','env','entry','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20','PFBsU','mkdirSync','oeUjT','fDRmh','611wFIdGP','ygSOW','New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update','/percy-win.zip','104670WngqrC','xTPoc','QgPCp','If-None-Match','close','aKRCk','/home/','useCaCertificate','nDWcp','once','R_OK','32XMlsox','child_process','fileName','test','binaryPath','Jmvob','UEqBO','path','createWriteStream','UMaMc','hJuhT','percy.exe','Yledo','join','homedir','trim','EWSwm','exports','4631640EsUfoz','NkxRg','tmpdir','openReadStream','npdWy','2364wlDTnA'];a107_0x1bc3=function(){return _0x274a19;};return a107_0x1bc3();}module[a107_0x59862c(0x1f7)]=PercyBinary;
@@ -1 +1 @@
1
- var a106_0x428507=a106_0x59dd;function a106_0x1960(){var _0x30693e=['increment','14aQilMv','1507540PzZqgN','getName','4418848OeYPqr','673263CxiNKj','9wjRJBO','1527472YxGZgs','2FAxPul','get','5166606TYAMjz','862509AWyWir','22789510IlJRCQ'];a106_0x1960=function(){return _0x30693e;};return a106_0x1960();}function a106_0x59dd(_0x1e2fbb,_0x434e46){var _0x1960ec=a106_0x1960();return a106_0x59dd=function(_0x59ddb5,_0x40db53){_0x59ddb5=_0x59ddb5-0x84;var _0x2d70ac=_0x1960ec[_0x59ddb5];return _0x2d70ac;},a106_0x59dd(_0x1e2fbb,_0x434e46);}(function(_0x5240cf,_0x4c3f44){var _0x4801b6=a106_0x59dd,_0x5e11f3=_0x5240cf();while(!![]){try{var _0x188d8e=-parseInt(_0x4801b6(0x90))/0x1*(-parseInt(_0x4801b6(0x8d))/0x2)+parseInt(_0x4801b6(0x8a))/0x3+-parseInt(_0x4801b6(0x89))/0x4+-parseInt(_0x4801b6(0x87))/0x5+-parseInt(_0x4801b6(0x8f))/0x6+-parseInt(_0x4801b6(0x86))/0x7*(parseInt(_0x4801b6(0x8c))/0x8)+parseInt(_0x4801b6(0x8b))/0x9*(parseInt(_0x4801b6(0x84))/0xa);if(_0x188d8e===_0x4c3f44)break;else _0x5e11f3['push'](_0x5e11f3['shift']());}catch(_0x5725ad){_0x5e11f3['push'](_0x5e11f3['shift']());}}}(a106_0x1960,0xaef94));class PercyCaptureMap{#map={};[a106_0x428507(0x85)](_0x3a35af,_0xc74fad){!this.#map[_0x3a35af]&&(this.#map[_0x3a35af]={}),!this.#map[_0x3a35af][_0xc74fad]&&(this.#map[_0x3a35af][_0xc74fad]=0x0),this.#map[_0x3a35af][_0xc74fad]++;}[a106_0x428507(0x88)](_0x1888ef,_0x2b17c6){var _0x5bcf57=a106_0x428507;return _0x1888ef+'-'+_0x2b17c6+'-'+this[_0x5bcf57(0x8e)](_0x1888ef,_0x2b17c6);}[a106_0x428507(0x8e)](_0x251c1e,_0x523718){if(!this.#map[_0x251c1e])return 0x0;if(!this.#map[_0x251c1e][_0x523718])return 0x0;return this.#map[_0x251c1e][_0x523718];}}module['exports']=PercyCaptureMap;
1
+ var a108_0x47cb8a=a108_0x45f3;(function(_0x295192,_0x2b7db7){var _0x41f606=a108_0x45f3,_0x3e5177=_0x295192();while(!![]){try{var _0x4b8525=-parseInt(_0x41f606(0x1a3))/0x1+-parseInt(_0x41f606(0x1a1))/0x2*(parseInt(_0x41f606(0x1a8))/0x3)+-parseInt(_0x41f606(0x1aa))/0x4+-parseInt(_0x41f606(0x1a2))/0x5*(-parseInt(_0x41f606(0x1a5))/0x6)+parseInt(_0x41f606(0x1ab))/0x7*(parseInt(_0x41f606(0x1a4))/0x8)+parseInt(_0x41f606(0x19f))/0x9+parseInt(_0x41f606(0x1a0))/0xa*(parseInt(_0x41f606(0x1a6))/0xb);if(_0x4b8525===_0x2b7db7)break;else _0x3e5177['push'](_0x3e5177['shift']());}catch(_0x462899){_0x3e5177['push'](_0x3e5177['shift']());}}}(a108_0x4fe7,0xec4bc));function a108_0x45f3(_0x1ccfd4,_0x548599){var _0x4fe76c=a108_0x4fe7();return a108_0x45f3=function(_0x45f378,_0x2242cf){_0x45f378=_0x45f378-0x19f;var _0x466f6b=_0x4fe76c[_0x45f378];return _0x466f6b;},a108_0x45f3(_0x1ccfd4,_0x548599);}class PercyCaptureMap{#map={};[a108_0x47cb8a(0x1a9)](_0x4cfbe5,_0x1e16d5){!this.#map[_0x4cfbe5]&&(this.#map[_0x4cfbe5]={}),!this.#map[_0x4cfbe5][_0x1e16d5]&&(this.#map[_0x4cfbe5][_0x1e16d5]=0x0),this.#map[_0x4cfbe5][_0x1e16d5]++;}['getName'](_0x41cb65,_0x323129){return _0x41cb65+'-'+_0x323129+'-'+this['get'](_0x41cb65,_0x323129);}[a108_0x47cb8a(0x1a7)](_0x3f88b7,_0x5f245e){if(!this.#map[_0x3f88b7])return 0x0;if(!this.#map[_0x3f88b7][_0x5f245e])return 0x0;return this.#map[_0x3f88b7][_0x5f245e];}}function a108_0x4fe7(){var _0x1e2220=['6895TSNmHD','498328XyDauc','184IbknjH','6294SwTgWm','7815522rKvHQS','get','187260XgxOif','increment','6540064AmCHwM','170338oDpWyX','8516133bPhUyl','10RGhnsa','18gAGGsN'];a108_0x4fe7=function(){return _0x1e2220;};return a108_0x4fe7();}module['exports']=PercyCaptureMap;
@@ -1 +1 @@
1
- var a107_0x276453=a107_0x6962;(function(_0x3658ee,_0x58abf6){var _0x8d1379=a107_0x6962,_0x3f808d=_0x3658ee();while(!![]){try{var _0x3695c6=parseInt(_0x8d1379(0x77))/0x1+-parseInt(_0x8d1379(0x72))/0x2+parseInt(_0x8d1379(0x6d))/0x3*(-parseInt(_0x8d1379(0x76))/0x4)+parseInt(_0x8d1379(0x70))/0x5+-parseInt(_0x8d1379(0x6a))/0x6+-parseInt(_0x8d1379(0x75))/0x7*(-parseInt(_0x8d1379(0x73))/0x8)+parseInt(_0x8d1379(0x6c))/0x9;if(_0x3695c6===_0x58abf6)break;else _0x3f808d['push'](_0x3f808d['shift']());}catch(_0x171d73){_0x3f808d['push'](_0x3f808d['shift']());}}}(a107_0x1228,0x1f4d4));var a107_0x6fb121={};a107_0x6fb121[a107_0x276453(0x74)]=[a107_0x276453(0x6f)],a107_0x6fb121[a107_0x276453(0x78)]=[a107_0x276453(0x6b),a107_0x276453(0x71)];var a107_0x3109f1={};a107_0x3109f1[a107_0x276453(0x74)]=['takeScreenshot'];var a107_0x11e88c={};function a107_0x6962(_0x56d85d,_0x220b7e){var _0x1228d7=a107_0x1228();return a107_0x6962=function(_0x6962d0,_0x1b9468){_0x6962d0=_0x6962d0-0x68;var _0x3b66ca=_0x1228d7[_0x6962d0];return _0x3b66ca;},a107_0x6962(_0x56d85d,_0x220b7e);}a107_0x11e88c[a107_0x276453(0x78)]=[a107_0x276453(0x6b)];var a107_0x3b28cf={};a107_0x3b28cf[a107_0x276453(0x69)]=a107_0x6fb121,a107_0x3b28cf['screenshot']=a107_0x3109f1,a107_0x3b28cf[a107_0x276453(0x6b)]=a107_0x11e88c,a107_0x3b28cf[a107_0x276453(0x6e)]={},a107_0x3b28cf[a107_0x276453(0x68)]={},module['exports']=a107_0x3b28cf;function a107_0x1228(){var _0x34c320=['3124935oicXMX','879fatuLi','testcase','takeScreenshot','685625WtzuJi','sendKeys','353032NCrGGv','106856vwQLEK','driver','7aaoJAB','2556UUJbgg','219198pEVNFh','element','manual','auto','1349640FNQHxE','click'];a107_0x1228=function(){return _0x34c320;};return a107_0x1228();}
1
+ var a109_0x48d150=a109_0x2a74;(function(_0x3ea531,_0x1c91ab){var _0x266158=a109_0x2a74,_0x451ad4=_0x3ea531();while(!![]){try{var _0x3d85d1=parseInt(_0x266158(0x156))/0x1+-parseInt(_0x266158(0x15c))/0x2*(parseInt(_0x266158(0x160))/0x3)+parseInt(_0x266158(0x150))/0x4+parseInt(_0x266158(0x154))/0x5*(parseInt(_0x266158(0x15e))/0x6)+-parseInt(_0x266158(0x155))/0x7+parseInt(_0x266158(0x15d))/0x8+parseInt(_0x266158(0x15f))/0x9*(-parseInt(_0x266158(0x151))/0xa);if(_0x3d85d1===_0x1c91ab)break;else _0x451ad4['push'](_0x451ad4['shift']());}catch(_0x252773){_0x451ad4['push'](_0x451ad4['shift']());}}}(a109_0x2e9c,0xed7ec));function a109_0x2e9c(){var _0x2cfdff=['1840146pHpGFz','sendKeys','driver','click','takeScreenshot','manual','6742btTrtf','13329096XkDhIP','12pRvkvu','739494LRMhke','639JVnYYK','testcase','element','4893896gBvXsb','530RWEYAA','exports','screenshot','4276595rxricP','2763558ByaGhi'];a109_0x2e9c=function(){return _0x2cfdff;};return a109_0x2e9c();}var a109_0x3d4a73={};a109_0x3d4a73['driver']=[a109_0x48d150(0x15a)],a109_0x3d4a73['element']=[a109_0x48d150(0x159),a109_0x48d150(0x157)];var a109_0xf7d3f4={};a109_0xf7d3f4[a109_0x48d150(0x158)]=[a109_0x48d150(0x15a)];var a109_0x219aa3={};a109_0x219aa3[a109_0x48d150(0x14f)]=[a109_0x48d150(0x159)];function a109_0x2a74(_0x38fc2b,_0x11ac30){var _0x2e9cd4=a109_0x2e9c();return a109_0x2a74=function(_0x2a74b8,_0x1e6142){_0x2a74b8=_0x2a74b8-0x14f;var _0x15e415=_0x2e9cd4[_0x2a74b8];return _0x15e415;},a109_0x2a74(_0x38fc2b,_0x11ac30);}var a109_0x23cfba={};a109_0x23cfba['auto']=a109_0x3d4a73,a109_0x23cfba[a109_0x48d150(0x153)]=a109_0xf7d3f4,a109_0x23cfba[a109_0x48d150(0x159)]=a109_0x219aa3,a109_0x23cfba[a109_0x48d150(0x161)]={},a109_0x23cfba[a109_0x48d150(0x15b)]={},module[a109_0x48d150(0x152)]=a109_0x23cfba;
@@ -1 +1 @@
1
- const a108_0x35d965=a108_0x2154;(function(_0x4ea226,_0x52e41c){const _0x3e5a28=a108_0x2154,_0x654a66=_0x4ea226();while(!![]){try{const _0x1c40ea=-parseInt(_0x3e5a28(0x153))/0x1+-parseInt(_0x3e5a28(0x13d))/0x2+-parseInt(_0x3e5a28(0x14d))/0x3*(-parseInt(_0x3e5a28(0x15c))/0x4)+-parseInt(_0x3e5a28(0x163))/0x5*(parseInt(_0x3e5a28(0x154))/0x6)+-parseInt(_0x3e5a28(0x15e))/0x7+-parseInt(_0x3e5a28(0x158))/0x8+parseInt(_0x3e5a28(0x14b))/0x9;if(_0x1c40ea===_0x52e41c)break;else _0x654a66['push'](_0x654a66['shift']());}catch(_0x62b3b6){_0x654a66['push'](_0x654a66['shift']());}}}(a108_0xc37e,0xdb145));const tryRequire=function(_0xc6823d,_0x583ea9){const _0x9014b6=a108_0x2154,_0x5c371f={'tzsOT':function(_0x46b371,_0x47a30f){return _0x46b371(_0x47a30f);}};try{return _0x5c371f[_0x9014b6(0x14e)](require,_0xc6823d);}catch{return _0x583ea9;}},percySnapshot=tryRequire(a108_0x35d965(0x147),null),{percyScreenshot}=tryRequire('@percy/selenium-webdriver',{}),percyAppScreenshot=require(a108_0x35d965(0x148)),{getCurrentTestData}=require(a108_0x35d965(0x15a)),PerformanceTester=require(a108_0x35d965(0x157)),{PERCY_EVENTS:PerformanceEvents}=require('../performance/constants'),logger=require(a108_0x35d965(0x15b))[a108_0x35d965(0x141)];function a108_0x2154(_0x3286f1,_0xab5e8d){const _0xc37ee7=a108_0xc37e();return a108_0x2154=function(_0x215486,_0x274d0f){_0x215486=_0x215486-0x13b;let _0x5de285=_0xc37ee7[_0x215486];return _0x5de285;},a108_0x2154(_0x3286f1,_0xab5e8d);}percySnapshot&&(exports[a108_0x35d965(0x144)]=async function(){const _0x379742=a108_0x35d965,_0x5f4dab={'VFSuw':function(_0x392f26,_0x5240a5){return _0x392f26!==_0x5240a5;},'XTAwn':function(_0x34bbce,_0x2b371c){return _0x34bbce>=_0x2b371c;},'POKvQ':function(_0x263f86){return _0x263f86();}};if(global[_0x379742(0x13b)]&&_0x5f4dab[_0x379742(0x13e)](global[_0x379742(0x13b)],global[_0x379742(0x13f)]))return;const _0xdb8cf5=_0x5f4dab[_0x379742(0x162)](arguments[_0x379742(0x152)],0x2)?arguments[0x1]:'',_0x4743ab=_0x5f4dab[_0x379742(0x15f)](getCurrentTestData),_0x191d17={};return _0x191d17['name']=_0xdb8cf5,_0x191d17[_0x379742(0x151)]=_0x4743ab['name']||'',_0x191d17['thTestCaseExecutionId']=_0x4743ab[_0x379742(0x156)]||'',_0x191d17[_0x379742(0x142)]=global[_0x379742(0x13b)],await PerformanceTester[_0x379742(0x146)](PerformanceEvents[_0x379742(0x160)],()=>percySnapshot[_0x379742(0x14a)](null,arguments),_0x191d17);});function a108_0xc37e(){const _0x5b01e5=['screenshot','measure','@percy/selenium-webdriver','@percy/appium-app','SCREENSHOT_APP','apply','43583112AUMBbz','qHmuf','12GtXKRB','tzsOT','error','VGyES','testCase','length','732895uYDwto','7732254ahyxmM','screenshotApp','uuid','../performance/performance-tester','695760DnvkpU','name','../../helpers/testhub/utils','../logger','455348vXRBoV','thTestCaseExecutionId','9219406CLCueu','POKvQ','SNAPSHOT','SCREENSHOT','XTAwn','5JRmoZl','browserstackPlatformIndex','shkar','1949870uQdmFM','VFSuw','browserstackPercyBestPlatform','rcaTn','winstonLogger','platformIndex','AytMW','snapshot'];a108_0xc37e=function(){return _0x5b01e5;};return a108_0xc37e();}percyScreenshot?exports[a108_0x35d965(0x145)]=async function(){const _0x1efabd=a108_0x35d965,_0x315d56={'qHmuf':function(_0x3c9647,_0x499ae5){return _0x3c9647>=_0x499ae5;},'VGyES':function(_0x529697){return _0x529697();}},_0x5aaabf=_0x315d56[_0x1efabd(0x14c)](arguments['length'],0x2)?arguments[0x1]:'',_0x4802f1=_0x315d56[_0x1efabd(0x150)](getCurrentTestData),_0xc4fa27={};return _0xc4fa27[_0x1efabd(0x159)]=_0x5aaabf,_0xc4fa27[_0x1efabd(0x151)]=_0x4802f1[_0x1efabd(0x159)]||'',_0xc4fa27[_0x1efabd(0x15d)]=_0x4802f1['uuid']||'',_0xc4fa27[_0x1efabd(0x142)]=global[_0x1efabd(0x13b)],await PerformanceTester[_0x1efabd(0x146)](PerformanceEvents[_0x1efabd(0x161)],()=>percyScreenshot[_0x1efabd(0x14a)](null,arguments),_0xc4fa27);}:exports['screenshot']=()=>{const _0x3b275b=a108_0x35d965,_0x11d797={};_0x11d797['rcaTn']='Unsupported\x20driver\x20for\x20percy';const _0x482dd8=_0x11d797;logger[_0x3b275b(0x14f)](_0x482dd8[_0x3b275b(0x140)]);};exports[a108_0x35d965(0x155)]=async function(){const _0x552018=a108_0x35d965,_0x3724ce={'shkar':function(_0x2e0cf0,_0x5a845b){return _0x2e0cf0>=_0x5a845b;},'AytMW':function(_0x1d7862){return _0x1d7862();}},_0x535afd=_0x3724ce[_0x552018(0x13c)](arguments[_0x552018(0x152)],0x2)?arguments[0x1]:'',_0x34958a=_0x3724ce[_0x552018(0x143)](getCurrentTestData),_0x3f13c0={};return _0x3f13c0[_0x552018(0x159)]=_0x535afd,_0x3f13c0[_0x552018(0x151)]=_0x34958a[_0x552018(0x159)]||'',_0x3f13c0[_0x552018(0x15d)]=_0x34958a['uuid']||'',_0x3f13c0[_0x552018(0x142)]=global[_0x552018(0x13b)],await PerformanceTester[_0x552018(0x146)](PerformanceEvents[_0x552018(0x149)],()=>percyAppScreenshot['apply'](null,arguments),_0x3f13c0);};
1
+ const a110_0x14cd98=a110_0x347e;(function(_0xaf3f4b,_0x5def0d){const _0x9150b1=a110_0x347e,_0x12d5ea=_0xaf3f4b();while(!![]){try{const _0x1c3aa5=-parseInt(_0x9150b1(0x19f))/0x1*(-parseInt(_0x9150b1(0x194))/0x2)+parseInt(_0x9150b1(0x19c))/0x3*(-parseInt(_0x9150b1(0x1a4))/0x4)+-parseInt(_0x9150b1(0x197))/0x5*(-parseInt(_0x9150b1(0x183))/0x6)+parseInt(_0x9150b1(0x195))/0x7+parseInt(_0x9150b1(0x18d))/0x8*(-parseInt(_0x9150b1(0x1a3))/0x9)+-parseInt(_0x9150b1(0x184))/0xa+parseInt(_0x9150b1(0x1a8))/0xb;if(_0x1c3aa5===_0x5def0d)break;else _0x12d5ea['push'](_0x12d5ea['shift']());}catch(_0xee2aa4){_0x12d5ea['push'](_0x12d5ea['shift']());}}}(a110_0x5671,0xd3e1f));function a110_0x5671(){const _0x67f449=['vxAkZ','platformIndex','vuEUO','uuid','3996904wQVSBa','@percy/selenium-webdriver','jyLGa','../../helpers/testhub/utils','SCREENSHOT_APP','length','apply','514tfzVfG','8662199csSPME','testCase','4213255vIBXie','../performance/constants','SCREENSHOT','fxSRq','browserstackPercyBestPlatform','372yvFTpq','screenshot','browserstackPlatformIndex','3287oscocc','snapshot','thTestCaseExecutionId','@percy/appium-app','27usokey','38224Moqpfe','error','ITDTq','Unsupported\x20driver\x20for\x20percy','17674690cOnLfu','nkJAT','name','6GyZOEB','9800030wILeZD','SitLe','screenshotApp','../performance/performance-tester','measure'];a110_0x5671=function(){return _0x67f449;};return a110_0x5671();}function a110_0x347e(_0x30fd95,_0x34e081){const _0x5671d9=a110_0x5671();return a110_0x347e=function(_0x347eb4,_0x1f0e40){_0x347eb4=_0x347eb4-0x182;let _0xc333a2=_0x5671d9[_0x347eb4];return _0xc333a2;},a110_0x347e(_0x30fd95,_0x34e081);}const tryRequire=function(_0x341d49,_0xc9edfe){const _0x11a3bf=a110_0x347e,_0x20832e={'fxSRq':function(_0x53bc7d,_0x39a92f){return _0x53bc7d(_0x39a92f);}};try{return _0x20832e[_0x11a3bf(0x19a)](require,_0x341d49);}catch{return _0xc9edfe;}},percySnapshot=tryRequire('@percy/selenium-webdriver',null),{percyScreenshot}=tryRequire(a110_0x14cd98(0x18e),{}),percyAppScreenshot=require(a110_0x14cd98(0x1a2)),{getCurrentTestData}=require(a110_0x14cd98(0x190)),PerformanceTester=require(a110_0x14cd98(0x187)),{PERCY_EVENTS:PerformanceEvents}=require(a110_0x14cd98(0x198)),logger=require('../logger')['winstonLogger'];percySnapshot&&(exports[a110_0x14cd98(0x1a0)]=async function(){const _0x35a420=a110_0x14cd98,_0x3f3743={'vxAkZ':function(_0x397753,_0x29f0ea){return _0x397753!==_0x29f0ea;},'ITDTq':function(_0x3d260f,_0x48fdd2){return _0x3d260f>=_0x48fdd2;},'cUXZV':function(_0x5df768){return _0x5df768();}};if(global[_0x35a420(0x19e)]&&_0x3f3743[_0x35a420(0x189)](global['browserstackPlatformIndex'],global[_0x35a420(0x19b)]))return;const _0x214b34=_0x3f3743[_0x35a420(0x1a6)](arguments[_0x35a420(0x192)],0x2)?arguments[0x1]:'',_0x199d74=_0x3f3743['cUXZV'](getCurrentTestData),_0x25cab0={};return _0x25cab0['name']=_0x214b34,_0x25cab0[_0x35a420(0x196)]=_0x199d74[_0x35a420(0x182)]||'',_0x25cab0['thTestCaseExecutionId']=_0x199d74[_0x35a420(0x18c)]||'',_0x25cab0[_0x35a420(0x18a)]=global[_0x35a420(0x19e)],await PerformanceTester['measure'](PerformanceEvents['SNAPSHOT'],()=>percySnapshot[_0x35a420(0x193)](null,arguments),_0x25cab0);});percyScreenshot?exports[a110_0x14cd98(0x19d)]=async function(){const _0x21602c=a110_0x14cd98,_0x25145c={'SitLe':function(_0x4283db,_0x4d0a7d){return _0x4283db>=_0x4d0a7d;},'jyLGa':function(_0x12f137){return _0x12f137();}},_0x43fde9=_0x25145c[_0x21602c(0x185)](arguments[_0x21602c(0x192)],0x2)?arguments[0x1]:'',_0x1a8572=_0x25145c[_0x21602c(0x18f)](getCurrentTestData),_0x319505={};return _0x319505[_0x21602c(0x182)]=_0x43fde9,_0x319505[_0x21602c(0x196)]=_0x1a8572['name']||'',_0x319505[_0x21602c(0x1a1)]=_0x1a8572[_0x21602c(0x18c)]||'',_0x319505[_0x21602c(0x18a)]=global[_0x21602c(0x19e)],await PerformanceTester[_0x21602c(0x188)](PerformanceEvents[_0x21602c(0x199)],()=>percyScreenshot[_0x21602c(0x193)](null,arguments),_0x319505);}:exports[a110_0x14cd98(0x19d)]=()=>{const _0x1d1bbc=a110_0x14cd98,_0x4395f7={};_0x4395f7[_0x1d1bbc(0x1a9)]=_0x1d1bbc(0x1a7);const _0x34acac=_0x4395f7;logger[_0x1d1bbc(0x1a5)](_0x34acac[_0x1d1bbc(0x1a9)]);};exports[a110_0x14cd98(0x186)]=async function(){const _0x7aea80=a110_0x14cd98,_0x1d8310={'BCIRF':function(_0x21c57f,_0x21952b){return _0x21c57f>=_0x21952b;},'vuEUO':function(_0x192b81){return _0x192b81();}},_0x37e2be=_0x1d8310['BCIRF'](arguments['length'],0x2)?arguments[0x1]:'',_0x2f92e3=_0x1d8310[_0x7aea80(0x18b)](getCurrentTestData),_0x21b6db={};return _0x21b6db[_0x7aea80(0x182)]=_0x37e2be,_0x21b6db[_0x7aea80(0x196)]=_0x2f92e3[_0x7aea80(0x182)]||'',_0x21b6db[_0x7aea80(0x1a1)]=_0x2f92e3[_0x7aea80(0x18c)]||'',_0x21b6db[_0x7aea80(0x18a)]=global[_0x7aea80(0x19e)],await PerformanceTester[_0x7aea80(0x188)](PerformanceEvents[_0x7aea80(0x191)],()=>percyAppScreenshot[_0x7aea80(0x193)](null,arguments),_0x21b6db);};
@@ -1 +1 @@
1
- function a109_0x568c(_0x13f407,_0x5a7f34){var _0xb1833=a109_0xb183();return a109_0x568c=function(_0x568c5a,_0xb6ec04){_0x568c5a=_0x568c5a-0xe8;var _0x5042ec=_0xb1833[_0x568c5a];return _0x5042ec;},a109_0x568c(_0x13f407,_0x5a7f34);}function a109_0xb183(){var _0x40965e=['84eiDifX','41398GNVJtD','./Percy','1111749fNEUBD','642FFDGOe','931488oZmNIB','1897UHWHbT','1040ylVXeX','6894OEmrkS','6296hCMfoV','2360430uvCsUH','4eCHtdG','33352FFyQDW'];a109_0xb183=function(){return _0x40965e;};return a109_0xb183();}var a109_0x1e0d9c=a109_0x568c;(function(_0x553cfd,_0x7b8591){var _0x5032dd=a109_0x568c,_0x51f9fb=_0x553cfd();while(!![]){try{var _0x219d68=parseInt(_0x5032dd(0xee))/0x1*(-parseInt(_0x5032dd(0xec))/0x2)+-parseInt(_0x5032dd(0xeb))/0x3*(-parseInt(_0x5032dd(0xf3))/0x4)+parseInt(_0x5032dd(0xf2))/0x5+parseInt(_0x5032dd(0xe8))/0x6*(-parseInt(_0x5032dd(0xe9))/0x7)+parseInt(_0x5032dd(0xf1))/0x8*(parseInt(_0x5032dd(0xf0))/0x9)+parseInt(_0x5032dd(0xef))/0xa*(-parseInt(_0x5032dd(0xf4))/0xb)+-parseInt(_0x5032dd(0xed))/0xc;if(_0x219d68===_0x7b8591)break;else _0x51f9fb['push'](_0x51f9fb['shift']());}catch(_0x118d7f){_0x51f9fb['push'](_0x51f9fb['shift']());}}}(a109_0xb183,0x5817a),module['exports']=require(a109_0x1e0d9c(0xea)));
1
+ function a111_0x3314(_0x3317ca,_0x316310){var _0x508965=a111_0x5089();return a111_0x3314=function(_0x3314bf,_0x4873ef){_0x3314bf=_0x3314bf-0x119;var _0x45df40=_0x508965[_0x3314bf];return _0x45df40;},a111_0x3314(_0x3317ca,_0x316310);}var a111_0x492538=a111_0x3314;function a111_0x5089(){var _0x3f51d7=['302541zUJRvO','exports','8670312xBCqTW','35jjwTLm','4689230QgZMMf','189762ZgbmYL','250276NgrJZM','./Percy','286692OgiuhW','16550cKvQFz','8bLRyyM','3789mCODbu'];a111_0x5089=function(){return _0x3f51d7;};return a111_0x5089();}(function(_0x5ce64a,_0xe88228){var _0x2f9d04=a111_0x3314,_0x212d71=_0x5ce64a();while(!![]){try{var _0x11ad41=parseInt(_0x2f9d04(0x11c))/0x1+parseInt(_0x2f9d04(0x121))/0x2*(-parseInt(_0x2f9d04(0x123))/0x3)+parseInt(_0x2f9d04(0x11d))/0x4+parseInt(_0x2f9d04(0x11b))/0x5+-parseInt(_0x2f9d04(0x11f))/0x6*(-parseInt(_0x2f9d04(0x11a))/0x7)+-parseInt(_0x2f9d04(0x119))/0x8+parseInt(_0x2f9d04(0x122))/0x9*(parseInt(_0x2f9d04(0x120))/0xa);if(_0x11ad41===_0xe88228)break;else _0x212d71['push'](_0x212d71['shift']());}catch(_0x2ed2f2){_0x212d71['push'](_0x212d71['shift']());}}}(a111_0x5089,0x9bec9),module[a111_0x492538(0x124)]=require(a111_0x492538(0x11e)));
@@ -1 +1 @@
1
- const a110_0x51a581=a110_0x2812;(function(_0x1283bd,_0x28f416){const _0x12f125=a110_0x2812,_0x2efa48=_0x1283bd();while(!![]){try{const _0x19447d=-parseInt(_0x12f125(0xc2))/0x1+-parseInt(_0x12f125(0xa4))/0x2+-parseInt(_0x12f125(0xd4))/0x3+-parseInt(_0x12f125(0xbf))/0x4+parseInt(_0x12f125(0xd6))/0x5*(-parseInt(_0x12f125(0xdb))/0x6)+parseInt(_0x12f125(0xd8))/0x7*(-parseInt(_0x12f125(0xa0))/0x8)+parseInt(_0x12f125(0xb6))/0x9;if(_0x19447d===_0x28f416)break;else _0x2efa48['push'](_0x2efa48['shift']());}catch(_0x2d5a82){_0x2efa48['push'](_0x2efa48['shift']());}}}(a110_0xdc60,0x4409e));function a110_0xdc60(){const _0x3265e0=['manual','568803mQtmJJ','deviceName','2214610XWRDem','XhawM','609xUXZVL','screenshot','patchDriverPercy','6IbXBzE','winstonLogger','./PercySDK','overrideXforPercy','NquQK','auto','safari','VBjzx','browserStackPercyOptions','FfuEP','NqHvs','debug','../performance/performance-tester','reduce','toLowerCase','48808ncnWLW','then','measureWrapper','forEach','855682jMJJzi','browserName','Stopping\x20percy','chrome','error','platforms','IKEew','../helper','prototype','stop','app','patch','../logger','browserstackSessionName','getDriver','browserstackPercyBestPlatform','getPercyOptions','LYMcC','19174167AWWCHH','driver','dtKxE','getBestPlatformForPercySnapshot','apply','percy','isUndefined','browserstackPercyMap','AUTO_CAPTURE','670676lHAKVb','browser','Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present','92957vlExHz','sFkNV','vWRwu','./PercyCaptureMap','percyAutoCapture','STOP','Error\x20patching\x20','UZsPm','OQFgv','nestedKeyValue','increment','RrchR','START','percyCaptureMode','element','stopPercy','\x20for\x20percy\x20'];a110_0xdc60=function(){return _0x3265e0;};return a110_0xdc60();}const Percy=require('./Percy'),PercySDK=require(a110_0x51a581(0xdd)),PercyCaptureModes=require('./PercyCaptureModes'),PercyCaptureMap=require(a110_0x51a581(0xc5)),logger=require(a110_0x51a581(0xb0))[a110_0x51a581(0xdc)],helper=require(a110_0x51a581(0xab)),PerformanceTester=require(a110_0x51a581(0x9d)),{PERCY_EVENTS:PerformanceEvents}=require('../performance/constants');function a110_0x2812(_0x1973b6,_0x7d2f8a){const _0xdc605f=a110_0xdc60();return a110_0x2812=function(_0x281221,_0x3b9f15){_0x281221=_0x281221-0x9d;let _0x5ea15e=_0xdc605f[_0x281221];return _0x5ea15e;},a110_0x2812(_0x1973b6,_0x7d2f8a);}exports['startPercy']=PerformanceTester['measureWrapper'](PerformanceEvents[a110_0x51a581(0xce)],async _0x2543be=>{const _0x49c300=a110_0x51a581,_0x5d034a={};_0x5d034a[_0x49c300(0xcd)]='Starting\x20percy';const _0x314df2=_0x5d034a;logger[_0x49c300(0xe6)](_0x314df2['RrchR']);const _0x1fc684=new Percy(_0x2543be),_0x27512c=await _0x1fc684['start']();if(_0x27512c)return _0x1fc684;return null;}),exports[a110_0x51a581(0xd1)]=PerformanceTester['measureWrapper'](PerformanceEvents[a110_0x51a581(0xc7)],async _0x29be68=>{const _0x7230fd=a110_0x51a581,_0x3f8641={};_0x3f8641[_0x7230fd(0xdf)]=_0x7230fd(0xa6);const _0x21315f=_0x3f8641;return logger[_0x7230fd(0xe6)](_0x21315f[_0x7230fd(0xdf)]),_0x29be68[_0x7230fd(0xad)]();}),exports[a110_0x51a581(0xb9)]=_0x5d7e21=>{const _0x1d60c7=a110_0x51a581,_0x5dd8e7={};_0x5dd8e7[_0x1d60c7(0xe4)]=function(_0x189941,_0x51d10d){return _0x189941<_0x51d10d;};const _0x12eab3=_0x5dd8e7,_0x2a2fe8={};_0x2a2fe8[_0x1d60c7(0xa7)]=0x0,_0x2a2fe8['firefox']=0x1,_0x2a2fe8['edge']=0x2,_0x2a2fe8[_0x1d60c7(0xe1)]=0x3;const _0x337ac6=_0x2a2fe8;return _0x5d7e21[_0x1d60c7(0x9e)]((_0x33c4de,_0x4200a1,_0x28ef7a)=>{const _0x3dc9ad=_0x1d60c7,_0x53a836=_0x5d7e21[_0x33c4de];if(_0x4200a1[_0x3dc9ad(0xd5)])return _0x33c4de;if(_0x53a836[_0x3dc9ad(0xd5)])return _0x28ef7a;const _0x4701d3=_0x4200a1[_0x3dc9ad(0xc0)]?_0x4200a1['browser']:_0x4200a1[_0x3dc9ad(0xa5)];if(_0x4701d3&&_0x12eab3[_0x3dc9ad(0xe4)](_0x337ac6[_0x4701d3[_0x3dc9ad(0x9f)]()],_0x337ac6[_0x4701d3[_0x3dc9ad(0x9f)]()]))return _0x28ef7a;return _0x33c4de;},0x0);},exports['percyAutoCapture']=PerformanceTester[a110_0x51a581(0xa2)](PerformanceEvents[a110_0x51a581(0xbe)],async(_0xb4d7a0,_0x2043f3,_0x21013f)=>{const _0x3106aa=a110_0x51a581,_0x5a9f9c={};_0x5a9f9c[_0x3106aa(0xb8)]=_0x3106aa(0xc1);const _0xffa56a=_0x5a9f9c,_0x472c8f=_0xb4d7a0['browserstackPercyMap'];if(helper[_0x3106aa(0xbc)](_0xb4d7a0[_0x3106aa(0xb1)])){logger['debug'](_0xffa56a[_0x3106aa(0xb8)]);return;}const _0x595871=_0x472c8f['getName'](_0xb4d7a0[_0x3106aa(0xb1)],_0x2043f3);_0x21013f[_0x3106aa(0xae)]?await PercySDK['screenshotApp'](_0xb4d7a0,_0x595871):await PercySDK[_0x3106aa(0xd9)](_0xb4d7a0,_0x595871),_0x472c8f[_0x3106aa(0xcc)](_0xb4d7a0[_0x3106aa(0xb1)],_0x2043f3);}),exports[a110_0x51a581(0xda)]=(_0x245adf,_0x47d48c,_0x108116)=>{const _0x29462c=a110_0x51a581,_0x35d2f8={};_0x35d2f8[_0x29462c(0xb5)]=_0x29462c(0xe3),_0x35d2f8['VBjzx']=_0x29462c(0xbb),_0x35d2f8[_0x29462c(0xca)]=function(_0x14e383,_0xaf575a){return _0x14e383!==_0xaf575a;},_0x35d2f8[_0x29462c(0xc9)]=_0x29462c(0xd3);const _0x5c3902=_0x35d2f8;if(!helper[_0x29462c(0xcb)](_0x108116,[_0x5c3902['LYMcC'],_0x5c3902[_0x29462c(0xe2)]]))return;if(_0x108116[_0x29462c(0xe3)][_0x29462c(0xbb)]&&_0x108116[_0x29462c(0xe3)]['percyCaptureMode']&&_0x5c3902[_0x29462c(0xca)](_0x108116['browserStackPercyOptions'][_0x29462c(0xcf)],_0x5c3902['UZsPm'])&&!_0x245adf[_0x29462c(0xbd)]){global[_0x29462c(0xb1)]&&(_0x245adf[_0x29462c(0xb1)]=global[_0x29462c(0xb1)]),_0x245adf['browserstackPercyMap']=new PercyCaptureMap();const _0x12941f=PercyCaptureModes[_0x108116[_0x29462c(0xe3)][_0x29462c(0xcf)]];_0x12941f[_0x29462c(0xb7)]&&_0x12941f[_0x29462c(0xb7)][_0x29462c(0xa3)](_0x53cfc6=>this[_0x29462c(0xde)](_0x245adf,_0x53cfc6,_0x108116)),_0x12941f[_0x29462c(0xd0)]&&_0x12941f[_0x29462c(0xd0)][_0x29462c(0xa3)](_0x4962a9=>{const _0x548319=_0x29462c;if(_0x47d48c[_0x548319(0xac)][_0x548319(0xaf)+_0x4962a9])return;_0x47d48c[_0x548319(0xac)][_0x548319(0xaf)+_0x4962a9]=!![];const _0x10da0c=_0x47d48c['prototype'][_0x4962a9];_0x47d48c['prototype'][_0x4962a9]=async function(){const _0x440a76=_0x548319;let _0x38e6bf=_0x10da0c[_0x440a76(0xba)](this,arguments);_0x38e6bf&&_0x38e6bf[_0x440a76(0xa1)]&&(_0x38e6bf=await _0x38e6bf);try{const _0x46ee55=this[_0x440a76(0xb2)]();await exports[_0x440a76(0xc6)](_0x46ee55,_0x4962a9,_0x108116);}catch(_0x20d3a9){logger['error'](_0x440a76(0xc8)+_0x4962a9+_0x440a76(0xd2)+_0x20d3a9);}return _0x38e6bf;};});}},exports['overrideXforPercy']=function(_0x12b693,_0x408233,_0x3a439e){const _0x5116f7=a110_0x51a581,_0x10d3f2={};_0x10d3f2[_0x5116f7(0xc3)]=function(_0x2d72ec,_0x593df6){return _0x2d72ec+_0x593df6;},_0x10d3f2[_0x5116f7(0xaa)]=_0x5116f7(0xaf),_0x10d3f2['NqHvs']=function(_0x4a34b2,_0x537fd9){return _0x4a34b2+_0x537fd9;},_0x10d3f2['XhawM']='init';const _0xf5f36d=_0x10d3f2,_0x1d9995=_0xf5f36d[_0x5116f7(0xc3)](_0xf5f36d[_0x5116f7(0xaa)],_0x408233),_0xd8a8cb=_0xf5f36d[_0x5116f7(0xe5)](_0xf5f36d[_0x5116f7(0xd7)],_0x408233),_0x33107c=this;if(_0x12b693[_0x1d9995]||!_0x12b693[_0x408233])return;_0x12b693[_0x1d9995]=!![],_0x12b693[_0xd8a8cb]=_0x12b693[_0x408233],_0x12b693[_0x408233]=async()=>{const _0x53a035=_0x5116f7;try{await _0x33107c[_0x53a035(0xc6)](_0x12b693,_0x408233,_0x3a439e);}catch(_0x2c850b){logger[_0x53a035(0xa8)](_0x53a035(0xc8)+_0x408233+'\x20for\x20percy\x20'+_0x2c850b);}return await _0x12b693[_0xd8a8cb]['apply'](_0x12b693,arguments);};},exports[a110_0x51a581(0xb4)]=_0x3f1e70=>{const _0x115fda=a110_0x51a581,_0x23fdc9={};_0x23fdc9['vWRwu']=_0x115fda(0xe0);const _0x24a385=_0x23fdc9,_0x31f7af={};_0x31f7af[_0x115fda(0xbb)]=_0x3f1e70[_0x115fda(0xbb)],_0x31f7af[_0x115fda(0xcf)]=_0x3f1e70[_0x115fda(0xcf)]||_0x24a385[_0x115fda(0xc4)];const _0x54ae3c=_0x31f7af;_0x3f1e70[_0x115fda(0xbb)]&&(_0x54ae3c[_0x115fda(0xb3)]=exports['getBestPlatformForPercySnapshot'](_0x3f1e70[_0x115fda(0xa9)]));;return _0x54ae3c;};
1
+ function a112_0x214a(_0x43c814,_0x31386a){const _0x31f0bc=a112_0x31f0();return a112_0x214a=function(_0x214a1e,_0x39bbc6){_0x214a1e=_0x214a1e-0xda;let _0x59343a=_0x31f0bc[_0x214a1e];return _0x59343a;},a112_0x214a(_0x43c814,_0x31386a);}const a112_0x36afcb=a112_0x214a;function a112_0x31f0(){const _0x178106=['../helper','1206963kCIsJF','KCvLS','screenshot','925776sDZLaI','getDriver','Error\x20patching\x20','reduce','../performance/constants','driver','gvfBx','percyCaptureMode','init','overrideXforPercy','isUndefined','STOP','\x20for\x20percy\x20','sMlso','265974TFwlNI','IcUxS','cNPJu','apply','nestedKeyValue','startPercy','platforms','29306AzoIQy','PBwlm','browserStackPercyOptions','forEach','browser','start','10SQUdpT','../performance/performance-tester','./PercyCaptureModes','browserstackPercyBestPlatform','manual','element','debug','prototype','stopPercy','kwgVF','1008234FTYYCm','browserstackSessionName','patch','getName','error','SIGVQ','toLowerCase','getBestPlatformForPercySnapshot','browserstackPercyMap','1096KdKVdw','Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present','chrome','browserName','Stopping\x20percy','measureWrapper','yywOK','1099930PmLXJp','lEKIN','./Percy','safari','12187pgaUAV','percy','UmTJx','percyAutoCapture','screenshotApp','EIoiM','deviceName','../logger'];a112_0x31f0=function(){return _0x178106;};return a112_0x31f0();}(function(_0x9b9e95,_0x5d3008){const _0x58da35=a112_0x214a,_0xba669d=_0x9b9e95();while(!![]){try{const _0x27eb16=-parseInt(_0x58da35(0x111))/0x1*(-parseInt(_0x58da35(0x117))/0x2)+-parseInt(_0x58da35(0x10a))/0x3+-parseInt(_0x58da35(0xfc))/0x4+-parseInt(_0x58da35(0xec))/0x5+parseInt(_0x58da35(0xdc))/0x6+-parseInt(_0x58da35(0xf0))/0x7*(-parseInt(_0x58da35(0xe5))/0x8)+parseInt(_0x58da35(0xf9))/0x9;if(_0x27eb16===_0x5d3008)break;else _0xba669d['push'](_0xba669d['shift']());}catch(_0x1bf66d){_0xba669d['push'](_0xba669d['shift']());}}}(a112_0x31f0,0x23ea1));const Percy=require(a112_0x36afcb(0xee)),PercySDK=require('./PercySDK'),PercyCaptureModes=require(a112_0x36afcb(0x119)),PercyCaptureMap=require('./PercyCaptureMap'),logger=require(a112_0x36afcb(0xf7))['winstonLogger'],helper=require(a112_0x36afcb(0xf8)),PerformanceTester=require(a112_0x36afcb(0x118)),{PERCY_EVENTS:PerformanceEvents}=require(a112_0x36afcb(0x100));exports[a112_0x36afcb(0x10f)]=PerformanceTester[a112_0x36afcb(0xea)](PerformanceEvents['START'],async _0x2fab26=>{const _0x3662b4=a112_0x36afcb,_0x5ac757={};_0x5ac757[_0x3662b4(0x109)]='Starting\x20percy';const _0x378d26=_0x5ac757;logger[_0x3662b4(0x11d)](_0x378d26[_0x3662b4(0x109)]);const _0x1c3c55=new Percy(_0x2fab26),_0x5278ef=await _0x1c3c55[_0x3662b4(0x116)]();if(_0x5278ef)return _0x1c3c55;return null;}),exports[a112_0x36afcb(0xda)]=PerformanceTester[a112_0x36afcb(0xea)](PerformanceEvents[a112_0x36afcb(0x107)],async _0x2bc8c5=>{const _0x454925=a112_0x36afcb,_0x3a651e={};_0x3a651e[_0x454925(0xeb)]=_0x454925(0xe9);const _0x1b8fcd=_0x3a651e;return logger[_0x454925(0x11d)](_0x1b8fcd[_0x454925(0xeb)]),_0x2bc8c5['stop']();}),exports[a112_0x36afcb(0xe3)]=_0x4addfe=>{const _0x21f70f=a112_0x36afcb,_0x203473={};_0x203473[_0x21f70f(0x112)]=function(_0x29ec60,_0x27b234){return _0x29ec60<_0x27b234;};const _0x549933=_0x203473,_0x4392e9={};_0x4392e9[_0x21f70f(0xe7)]=0x0,_0x4392e9['firefox']=0x1,_0x4392e9['edge']=0x2,_0x4392e9[_0x21f70f(0xef)]=0x3;const _0x3e2fa9=_0x4392e9;return _0x4addfe[_0x21f70f(0xff)]((_0x1c592e,_0x44d76b,_0x5d0031)=>{const _0x2de25b=_0x21f70f,_0x3d2fc3=_0x4addfe[_0x1c592e];if(_0x44d76b['deviceName'])return _0x1c592e;if(_0x3d2fc3[_0x2de25b(0xf6)])return _0x5d0031;const _0x5774ec=_0x44d76b['browser']?_0x44d76b[_0x2de25b(0x115)]:_0x44d76b[_0x2de25b(0xe8)];if(_0x5774ec&&_0x549933[_0x2de25b(0x112)](_0x3e2fa9[_0x5774ec[_0x2de25b(0xe2)]()],_0x3e2fa9[_0x5774ec[_0x2de25b(0xe2)]()]))return _0x5d0031;return _0x1c592e;},0x0);},exports['percyAutoCapture']=PerformanceTester[a112_0x36afcb(0xea)](PerformanceEvents['AUTO_CAPTURE'],async(_0xa46c7b,_0x4e504a,_0x1213b1)=>{const _0xee89a5=a112_0x36afcb,_0x43b6e9={};_0x43b6e9[_0xee89a5(0xed)]=_0xee89a5(0xe6);const _0x424fd0=_0x43b6e9,_0xad860a=_0xa46c7b['browserstackPercyMap'];if(helper[_0xee89a5(0x106)](_0xa46c7b['browserstackSessionName'])){logger[_0xee89a5(0x11d)](_0x424fd0['lEKIN']);return;}const _0x5d926f=_0xad860a[_0xee89a5(0xdf)](_0xa46c7b[_0xee89a5(0xdd)],_0x4e504a);_0x1213b1['app']?await PercySDK[_0xee89a5(0xf4)](_0xa46c7b,_0x5d926f):await PercySDK[_0xee89a5(0xfb)](_0xa46c7b,_0x5d926f),_0xad860a['increment'](_0xa46c7b[_0xee89a5(0xdd)],_0x4e504a);}),exports['patchDriverPercy']=(_0x9e0c4f,_0x4cf228,_0x3f66ef)=>{const _0x5cfcf8=a112_0x36afcb,_0x5177cb={};_0x5177cb['HbKMT']='browserStackPercyOptions',_0x5177cb[_0x5cfcf8(0x10c)]=_0x5cfcf8(0xf1),_0x5177cb[_0x5cfcf8(0xe1)]=function(_0x442956,_0x144067){return _0x442956!==_0x144067;},_0x5177cb[_0x5cfcf8(0xf2)]=_0x5cfcf8(0x11b);const _0x3cac24=_0x5177cb;if(!helper[_0x5cfcf8(0x10e)](_0x3f66ef,[_0x3cac24['HbKMT'],_0x3cac24[_0x5cfcf8(0x10c)]]))return;if(_0x3f66ef[_0x5cfcf8(0x113)][_0x5cfcf8(0xf1)]&&_0x3f66ef['browserStackPercyOptions'][_0x5cfcf8(0x103)]&&_0x3cac24['SIGVQ'](_0x3f66ef[_0x5cfcf8(0x113)][_0x5cfcf8(0x103)],_0x3cac24[_0x5cfcf8(0xf2)])&&!_0x9e0c4f[_0x5cfcf8(0xe4)]){global[_0x5cfcf8(0xdd)]&&(_0x9e0c4f[_0x5cfcf8(0xdd)]=global[_0x5cfcf8(0xdd)]),_0x9e0c4f[_0x5cfcf8(0xe4)]=new PercyCaptureMap();const _0x468c60=PercyCaptureModes[_0x3f66ef[_0x5cfcf8(0x113)][_0x5cfcf8(0x103)]];_0x468c60[_0x5cfcf8(0x101)]&&_0x468c60[_0x5cfcf8(0x101)][_0x5cfcf8(0x114)](_0x49c2ea=>this[_0x5cfcf8(0x105)](_0x9e0c4f,_0x49c2ea,_0x3f66ef)),_0x468c60[_0x5cfcf8(0x11c)]&&_0x468c60['element'][_0x5cfcf8(0x114)](_0x2f164c=>{const _0x562f4f=_0x5cfcf8;if(_0x4cf228[_0x562f4f(0x11e)][_0x562f4f(0xde)+_0x2f164c])return;_0x4cf228[_0x562f4f(0x11e)][_0x562f4f(0xde)+_0x2f164c]=!![];const _0x19126c=_0x4cf228['prototype'][_0x2f164c];_0x4cf228['prototype'][_0x2f164c]=async function(){const _0x35d611=_0x562f4f;let _0x2ccb99=_0x19126c[_0x35d611(0x10d)](this,arguments);_0x2ccb99&&_0x2ccb99['then']&&(_0x2ccb99=await _0x2ccb99);try{const _0xeec2c7=this[_0x35d611(0xfd)]();await exports[_0x35d611(0xf3)](_0xeec2c7,_0x2f164c,_0x3f66ef);}catch(_0x59a50f){logger[_0x35d611(0xe0)](_0x35d611(0xfe)+_0x2f164c+_0x35d611(0x108)+_0x59a50f);}return _0x2ccb99;};});}},exports['overrideXforPercy']=function(_0x2e91b2,_0x436138,_0x2582bf){const _0x464b4b=a112_0x36afcb,_0x1a15cb={};_0x1a15cb[_0x464b4b(0x10b)]=function(_0x2d6b56,_0x22ef27){return _0x2d6b56+_0x22ef27;},_0x1a15cb[_0x464b4b(0xdb)]=_0x464b4b(0xde),_0x1a15cb[_0x464b4b(0xf5)]=function(_0x2f9456,_0x3d89bd){return _0x2f9456+_0x3d89bd;},_0x1a15cb[_0x464b4b(0xfa)]=_0x464b4b(0x104);const _0x254be7=_0x1a15cb,_0x8f844c=_0x254be7['IcUxS'](_0x254be7[_0x464b4b(0xdb)],_0x436138),_0x244af8=_0x254be7[_0x464b4b(0xf5)](_0x254be7['KCvLS'],_0x436138),_0x47a6c8=this;if(_0x2e91b2[_0x8f844c]||!_0x2e91b2[_0x436138])return;_0x2e91b2[_0x8f844c]=!![],_0x2e91b2[_0x244af8]=_0x2e91b2[_0x436138],_0x2e91b2[_0x436138]=async()=>{const _0x1245d3=_0x464b4b;try{await _0x47a6c8['percyAutoCapture'](_0x2e91b2,_0x436138,_0x2582bf);}catch(_0x9f9c52){logger[_0x1245d3(0xe0)](_0x1245d3(0xfe)+_0x436138+_0x1245d3(0x108)+_0x9f9c52);}return await _0x2e91b2[_0x244af8][_0x1245d3(0x10d)](_0x2e91b2,arguments);};},exports['getPercyOptions']=_0x19de2d=>{const _0x1f0538=a112_0x36afcb,_0x14e916={};_0x14e916[_0x1f0538(0x102)]='auto';const _0xbbf4bd=_0x14e916,_0x46d5c0={};_0x46d5c0[_0x1f0538(0xf1)]=_0x19de2d['percy'],_0x46d5c0[_0x1f0538(0x103)]=_0x19de2d[_0x1f0538(0x103)]||_0xbbf4bd['gvfBx'];const _0x4c2b94=_0x46d5c0;_0x19de2d[_0x1f0538(0xf1)]&&(_0x4c2b94[_0x1f0538(0x11a)]=exports[_0x1f0538(0xe3)](_0x19de2d[_0x1f0538(0x110)]));;return _0x4c2b94;};