browserstack-node-sdk 1.46.5 → 1.46.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
package/src/helpers/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a106_0x458592=a106_0xe740;(function(_0x547cc2,_0xd6197f){const _0x2ab509=a106_0xe740,_0x5621d0=_0x547cc2();while(!![]){try{const _0x30ba11=-parseInt(_0x2ab509(0x181))/0x1*(parseInt(_0x2ab509(0x18a))/0x2)+-parseInt(_0x2ab509(0x163))/0x3+-parseInt(_0x2ab509(0x17e))/0x4+-parseInt(_0x2ab509(0x170))/0x5*(parseInt(_0x2ab509(0x190))/0x6)+parseInt(_0x2ab509(0x16c))/0x7+-parseInt(_0x2ab509(0x14e))/0x8*(-parseInt(_0x2ab509(0x166))/0x9)+parseInt(_0x2ab509(0x14f))/0xa;if(_0x30ba11===_0xd6197f)break;else _0x5621d0['push'](_0x5621d0['shift']());}catch(_0x2d0f3d){_0x5621d0['push'](_0x5621d0['shift']());}}}(a106_0x2273,0x75bd8));const winston=require(a106_0x458592(0x18f)),path=require(a106_0x458592(0x16b)),fs=require('fs'),{LOG_FILE_NAME,DEBUG_LOG_FILE_NAME}=require('../bin/utils/constants'),tempLogDir=a106_0x458592(0x14d),logFormat=winston[a106_0x458592(0x178)](_0x99d852=>{const _0x4a63a3=a106_0x458592,_0x1aa156={};_0x1aa156['ZsaIf']=function(_0x295df9,_0x2a938c){return _0x295df9!==_0x2a938c;},_0x1aa156[_0x4a63a3(0x15b)]='string',_0x1aa156['iDCOq']=function(_0x5c9277,_0x3bebfd){return _0x5c9277===_0x3bebfd;},_0x1aa156[_0x4a63a3(0x189)]=_0x4a63a3(0x149),_0x1aa156[_0x4a63a3(0x148)]=function(_0x4f831d,_0xfb1281){return _0x4f831d===_0xfb1281;};const _0x42b3b8=_0x1aa156;return _0x42b3b8['ZsaIf'](typeof _0x99d852['message'],_0x42b3b8[_0x4a63a3(0x15b)])&&(_0x99d852[_0x4a63a3(0x183)]=JSON[_0x4a63a3(0x16e)](_0x99d852[_0x4a63a3(0x183)])),global[_0x4a63a3(0x184)]?.[_0x4a63a3(0x173)]?.[_0x4a63a3(0x17c)]&&_0x42b3b8['iDCOq'](typeof _0x99d852[_0x4a63a3(0x183)],_0x42b3b8['izRYg'])&&(_0x99d852[_0x4a63a3(0x183)]=_0x99d852['message'][_0x4a63a3(0x17a)](new RegExp(global['session'][_0x4a63a3(0x173)][_0x4a63a3(0x17c)],'g'),_0x42b3b8[_0x4a63a3(0x189)])),global[_0x4a63a3(0x184)]?.[_0x4a63a3(0x173)]?.[_0x4a63a3(0x165)]&&_0x42b3b8['jccBW'](typeof _0x99d852[_0x4a63a3(0x183)],_0x42b3b8[_0x4a63a3(0x15b)])&&(_0x99d852[_0x4a63a3(0x183)]=_0x99d852[_0x4a63a3(0x183)][_0x4a63a3(0x17a)](new RegExp(global[_0x4a63a3(0x184)][_0x4a63a3(0x173)][_0x4a63a3(0x165)],'g'),_0x42b3b8[_0x4a63a3(0x189)])),_0x99d852;}),fetchLogDir=()=>{const _0x4b8c5a=a106_0x458592;if(process[_0x4b8c5a(0x16a)][_0x4b8c5a(0x179)])return process['env'][_0x4b8c5a(0x179)];else!fs[_0x4b8c5a(0x151)](tempLogDir)&&fs[_0x4b8c5a(0x177)](tempLogDir);return tempLogDir;},logDir=fetchLogDir(),a106_0x1db556={};a106_0x1db556[a106_0x458592(0x174)]=a106_0x458592(0x185);const transports={'loggerConsole':new winston[(a106_0x458592(0x175))]['Console'](a106_0x1db556),'loggerFile':new winston[(a106_0x458592(0x175))][(a106_0x458592(0x15a))]({'filename':path['join'](logDir,a106_0x458592(0x18d))}),'debugLoggerFile':new winston[(a106_0x458592(0x175))][(a106_0x458592(0x15a))]({'filename':path[a106_0x458592(0x14c)](logDir,a106_0x458592(0x154)),'level':a106_0x458592(0x171)}),'debugCliLoggerFile':new winston['transports'][(a106_0x458592(0x15a))]({'filename':path[a106_0x458592(0x14c)](logDir,'/sdk-cli-debug.log'),'level':a106_0x458592(0x171)}),'buildLinkTransport':new winston[(a106_0x458592(0x175))][(a106_0x458592(0x15a))]({'filename':path[a106_0x458592(0x14c)](logDir,'/usage.log'),'level':a106_0x458592(0x171)})},automationTransports={};process[a106_0x458592(0x16a)][a106_0x458592(0x18c)]===a106_0x458592(0x15d)&&(automationTransports[a106_0x458592(0x180)]=new winston['transports'][(a106_0x458592(0x15a))]({'filename':path[a106_0x458592(0x14c)](logDir,a106_0x458592(0x16f)),'level':a106_0x458592(0x171)}));transports[a106_0x458592(0x17d)]['on']('error',_0x53710b=>{const _0x13114e=a106_0x458592,_0x46efec={};_0x46efec['exXFS']=function(_0x303d2b,_0x12eafe){return _0x303d2b===_0x12eafe;},_0x46efec[_0x13114e(0x15e)]=_0x13114e(0x161),_0x46efec[_0x13114e(0x158)]=_0x13114e(0x16d);const _0xd82a8f=_0x46efec;if(_0xd82a8f[_0x13114e(0x168)](_0x53710b[_0x13114e(0x14a)],_0xd82a8f[_0x13114e(0x15e)])){console['log'](_0xd82a8f[_0x13114e(0x158)],_0x53710b['message']);return;}throw _0x53710b;});const a106_0x17d2e3={};a106_0x17d2e3[a106_0x458592(0x178)]=a106_0x458592(0x157);const a106_0x2082b2={};a106_0x2082b2[a106_0x458592(0x150)]=!![];const winstonLoggerParams={'format':winston[a106_0x458592(0x178)][a106_0x458592(0x155)](winston[a106_0x458592(0x178)]['timestamp'](a106_0x17d2e3),winston['format'][a106_0x458592(0x18e)](a106_0x2082b2),winston['format'][a106_0x458592(0x156)](_0x11a2be=>_0x11a2be[a106_0x458592(0x176)]+a106_0x458592(0x160)+_0x11a2be[a106_0x458592(0x150)]+':\x20'+_0x11a2be[a106_0x458592(0x183)])),'transports':[transports[a106_0x458592(0x17d)]]},a106_0x313326={};a106_0x313326['format']=a106_0x458592(0x157);const a106_0x4e2355={};a106_0x4e2355[a106_0x458592(0x150)]=!![];const winstonFileLoggerParams={'format':winston[a106_0x458592(0x178)][a106_0x458592(0x155)](winston['format'][a106_0x458592(0x176)](a106_0x313326),winston[a106_0x458592(0x178)][a106_0x458592(0x18e)](a106_0x4e2355),winston[a106_0x458592(0x178)][a106_0x458592(0x156)](_0x42e9af=>_0x42e9af[a106_0x458592(0x150)]+':\x20'+_0x42e9af[a106_0x458592(0x183)])),'transports':[]},a106_0x52c0f4={};function a106_0xe740(_0x39ce44,_0x29ab73){const _0x2273d2=a106_0x2273();return a106_0xe740=function(_0xe74008,_0xb58de2){_0xe74008=_0xe74008-0x146;let _0x4b0461=_0x2273d2[_0xe74008];return _0x4b0461;},a106_0xe740(_0x39ce44,_0x29ab73);}a106_0x52c0f4[a106_0x458592(0x178)]='YYYY-MM-DD\x20HH:mm:ss';const a106_0x30cba1={};a106_0x30cba1[a106_0x458592(0x150)]=!![];function a106_0x2273(){const _0x2311d9=['automationLogger','initialize','warn','oKNtR','226562nmquwK','fileLogger','BROWSERSTACK_AUTOMATION_LOGS','/usage.log','colorize','winston','6BRfZth','0|4|2|1|5|3','debug','jccBW','[REDACTED]','code','uncolorize','join','log','8chqQmo','512890fBbbrb','level','existsSync','getLogDir','winstonLogger','/usage-debug.log','combine','printf','YYYY-MM-DD\x20HH:mm:ss','acePM','debugLoggerFile','File','izRYg','HVkuy','true','BrztR','add','\x20-\x20','EPIPE','loggerFile','61107mObqzn','info','accessKey','8603451xQDavz','logDir','exXFS','createLogger','env','path','5500859HLSXeo','EPIPE\x20error\x20occurred\x20in\x20loggerConsole:','stringify','automation.log','2552275bDyzrE','silly','http','config','name','transports','timestamp','mkdirSync','format','BROWSERSTACK_INTERNAL_LOG_DIR','replace','error','userName','loggerConsole','1760536VYmtiz','split','automationLoggerFile','3aiVoSI','HAzdA','message','session','console.info'];a106_0x2273=function(){return _0x2311d9;};return a106_0x2273();}const a106_0x18b562={};a106_0x18b562['level']=a106_0x458592(0x171);const BuildLoggerParams={'format':winston['format']['combine'](winston[a106_0x458592(0x178)]['timestamp'](a106_0x52c0f4),winston[a106_0x458592(0x178)][a106_0x458592(0x18e)](a106_0x30cba1),winston[a106_0x458592(0x178)]['printf'](_0x420f25=>_0x420f25[a106_0x458592(0x176)]+a106_0x458592(0x160)+_0x420f25[a106_0x458592(0x150)]+':\x20'+_0x420f25[a106_0x458592(0x183)])),'transports':[transports['buildLinkTransport'],new winston[(a106_0x458592(0x175))]['Console'](a106_0x18b562)]},a106_0x19bcfe={};a106_0x19bcfe[a106_0x458592(0x172)]=()=>{},a106_0x19bcfe[a106_0x458592(0x164)]=()=>{},a106_0x19bcfe[a106_0x458592(0x188)]=()=>{},a106_0x19bcfe[a106_0x458592(0x17b)]=()=>{},a106_0x19bcfe[a106_0x458592(0x147)]=()=>{},a106_0x19bcfe[a106_0x458592(0x171)]=()=>{},exports[a106_0x458592(0x186)]=process[a106_0x458592(0x16a)][a106_0x458592(0x18c)]===a106_0x458592(0x15d)?winston[a106_0x458592(0x169)]({'format':winston[a106_0x458592(0x178)][a106_0x458592(0x155)](winston['format'][a106_0x458592(0x14b)](),winston['format'][a106_0x458592(0x176)](),logFormat(),winston[a106_0x458592(0x178)][a106_0x458592(0x156)](_0x27a558=>_0x27a558[a106_0x458592(0x150)]+':\x20'+_0x27a558['message'])),'transports':[automationTransports[a106_0x458592(0x180)]]}):a106_0x19bcfe;const initialize=()=>{const _0x1710de=a106_0x458592,_0x5cdac6={};_0x5cdac6[_0x1710de(0x182)]=_0x1710de(0x146),_0x5cdac6[_0x1710de(0x15c)]='silly';const _0x5002df=_0x5cdac6,_0x3be4fc=_0x5002df[_0x1710de(0x182)][_0x1710de(0x17f)]('|');let _0x4b54ef=0x0;while(!![]){switch(_0x3be4fc[_0x4b54ef++]){case'0':transports['loggerFile']=new winston['transports'][(_0x1710de(0x15a))]({'filename':path[_0x1710de(0x14c)](exports[_0x1710de(0x167)],LOG_FILE_NAME)});continue;case'1':exports[_0x1710de(0x153)][_0x1710de(0x15f)](transports['debugLoggerFile']);continue;case'2':exports['winstonLogger'][_0x1710de(0x15f)](transports[_0x1710de(0x162)]);continue;case'3':exports[_0x1710de(0x18b)][_0x1710de(0x15f)](transports[_0x1710de(0x159)]);continue;case'4':transports[_0x1710de(0x159)]=new winston[(_0x1710de(0x175))][(_0x1710de(0x15a))]({'filename':path['join'](exports[_0x1710de(0x167)],DEBUG_LOG_FILE_NAME),'level':_0x5002df[_0x1710de(0x15c)]});continue;case'5':exports[_0x1710de(0x18b)]['add'](transports[_0x1710de(0x162)]);continue;}break;}};exports[a106_0x458592(0x153)]=new winston['createLogger'](winstonLoggerParams),exports[a106_0x458592(0x18b)]=new winston[(a106_0x458592(0x169))](winstonFileLoggerParams),exports['buildLogger']=new winston[(a106_0x458592(0x169))](BuildLoggerParams),exports[a106_0x458592(0x167)]=logDir,exports[a106_0x458592(0x152)]=()=>{return exports['logDir'];},exports[a106_0x458592(0x175)]=transports,exports[a106_0x458592(0x187)]=initialize;logDir&&initialize();
|
package/src/helpers/metadata.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a107_0x5740(_0x1f9033,_0x5e5f3f){const _0x26f3ea=a107_0x26f3();return a107_0x5740=function(_0x5740c6,_0x4fd300){_0x5740c6=_0x5740c6-0x7e;let _0xb6ec09=_0x26f3ea[_0x5740c6];return _0xb6ec09;},a107_0x5740(_0x1f9033,_0x5e5f3f);}const a107_0x4e6c5d=a107_0x5740;(function(_0x2bffe,_0x16ee28){const _0x592eb7=a107_0x5740,_0xf88359=_0x2bffe();while(!![]){try{const _0xfee0a6=-parseInt(_0x592eb7(0x97))/0x1*(parseInt(_0x592eb7(0x8e))/0x2)+-parseInt(_0x592eb7(0x8b))/0x3*(parseInt(_0x592eb7(0x82))/0x4)+parseInt(_0x592eb7(0x86))/0x5*(parseInt(_0x592eb7(0x94))/0x6)+parseInt(_0x592eb7(0x8d))/0x7+parseInt(_0x592eb7(0x98))/0x8*(-parseInt(_0x592eb7(0x9c))/0x9)+parseInt(_0x592eb7(0x80))/0xa*(-parseInt(_0x592eb7(0x9b))/0xb)+-parseInt(_0x592eb7(0x93))/0xc;if(_0xfee0a6===_0x16ee28)break;else _0xf88359['push'](_0xf88359['shift']());}catch(_0x42e618){_0xf88359['push'](_0xf88359['shift']());}}}(a107_0x26f3,0x1c8d5));const globals=require('./globals'),helper=require(a107_0x4e6c5d(0x91)),logger=require(a107_0x4e6c5d(0x99))[a107_0x4e6c5d(0x90)];function a107_0x26f3(){const _0x2b293b=['./helper','setGlobal','67548qPvlXG','24cjfjdR','luZsX','EpfIh','3789VgvnXt','11400smhxFw','./logger','geYwu','1692746KPSUOc','18DdFSeq','warn','length','testMeta','testMeta-','10mdNuep','testRunUUID','4228kOIaBG','set','identifier','getGlobal','178755GNPhfE','eSorZ','tijwy','rsYZp','EOyFI','18llQqbI','lcnc','1369886UyWazs','28JubreE','string','winstonLogger'];a107_0x26f3=function(){return _0x2b293b;};return a107_0x26f3();}module['exports']=class TestMetadata{static[a107_0x4e6c5d(0x83)](_0x22c937={}){const _0x53e106=a107_0x4e6c5d,_0x115eab={};_0x115eab['EpfIh']=_0x53e106(0x81),_0x115eab[_0x53e106(0x88)]=function(_0x38388f,_0x2be0c8){return _0x38388f===_0x2be0c8;},_0x115eab['eSorZ']=_0x53e106(0x8f),_0x115eab[_0x53e106(0x95)]=function(_0x31d5c9,_0x26b9c7){return _0x31d5c9<=_0x26b9c7;},_0x115eab[_0x53e106(0x9a)]='testMeta',_0x115eab[_0x53e106(0x89)]='The\x20metadata\x20object\x20is\x20not\x20valid.';const _0x458eb6=_0x115eab,_0x120215=globals[_0x53e106(0x85)](_0x458eb6[_0x53e106(0x96)]),_0x1b6905=_0x22c937[_0x53e106(0x84)];helper['getCentralUser']()[_0x53e106(0x8c)]&&(_0x458eb6[_0x53e106(0x88)](typeof _0x1b6905,_0x458eb6[_0x53e106(0x87)])&&_0x458eb6['luZsX'](_0x1b6905[_0x53e106(0x9e)],0x28)?_0x120215?globals[_0x53e106(0x92)](_0x53e106(0x7f)+_0x120215,_0x22c937):globals[_0x53e106(0x92)](_0x458eb6[_0x53e106(0x9a)],_0x22c937):logger[_0x53e106(0x9d)](_0x458eb6['rsYZp']));}static['get'](_0x1f31a8){const _0x34e93b=a107_0x4e6c5d,_0x12c4e0={};_0x12c4e0[_0x34e93b(0x8a)]=_0x34e93b(0x7e);const _0x48c10a=_0x12c4e0;if(helper['getCentralUser']()['lcnc'])return globals[_0x34e93b(0x85)](_0x34e93b(0x7f)+_0x1f31a8)||globals['getGlobal'](_0x48c10a['EOyFI'])||{};return{};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a108_0x2e6d(_0x527059,_0x383a97){const _0x34d10a=a108_0x34d1();return a108_0x2e6d=function(_0x2e6d23,_0x2d95c7){_0x2e6d23=_0x2e6d23-0x79;let _0x15eb99=_0x34d10a[_0x2e6d23];return _0x15eb99;},a108_0x2e6d(_0x527059,_0x383a97);}const a108_0xecaa55=a108_0x2e6d;function a108_0x34d1(){const _0x3e7c83=['luMvr','bstack:options','yplmQ','PRE_EXECUTE','Successfully\x20healed\x20command\x20using\x20new\x20cssPath:\x20','dMvks','VURxw','patchExecute','4619406kkPHbz','RvLFK','Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','aiHeal_isHealingEnabled','aiHeal_isAuthenticated','findElement\x20command\x20failed\x20with\x20','using','HzQZg','eCtkZ','getId','isSelfHealEnabled','find','body','TPbUM','toString','Healing\x20failed\x20for\x20command\x20using\x20','aNKSj','./ai-sdk/autoHealHelper','command','OccZM','util','1218072xytDRA','capability','execute','./performance/performance-tester','Moaea','QydXg','JCbmx','vFDPF','453304TmEJDw','silly','setTcgToken','RQVYg','message','fLqrd','getSession','2339272LVEFJC','bTPGj','script','./performance/constants','szltg','POST_EXECUTE','kygIA','791776GdUrQf','bboup','rgxPa','parameters','7CTjfsH','includes','Successfully\x20healed\x20command\x20using\x20new\x20','ufJuD','NoSuchElementError','QsFHi','wOaTo','value','10NqOXnz','WFqEm','xGQet','isBrowserstackInfra',';\x20Trying\x20to\x20heal','../bin/utils/constants','wqmmF','string','./helper','oipVi','info','Swgxo','format','./ai-sdk/aiSdkWrapper','./globals','aiHeal:findElementFailure','1331271rHtBNL','134508fwVfnL','get','getGlobal','nestedKeyValue','url','css\x20selector','handleFailure','][\x20SDK-AUTOMATION\x20]\x20','findElement\x20command\x20failed\x20with\x20cssPath:\x20','aiHeal:setToken','QjsrJ','uLbCR','uMbkI','wgAEE','UaScy','egeri','Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','getTcgTokenStatus','debug','NUDGE_LOCAL_ERRORS','AUTOMATION_LOG_COMMANDS','response','skipHealingSuccess','executeScript','executeAsyncScript','CsDWh','name_','./logger','name','handleSuccess','error','measureWrapper','POWdj','initExecute','args','parameters_','setTcgTokenStatus','browserstack.local','overrideExecute','Error\x20in\x20handling\x20TCG\x20Auth:\x20'];a108_0x34d1=function(){return _0x3e7c83;};return a108_0x34d1();}(function(_0x14b255,_0x36f501){const _0x314b60=a108_0x2e6d,_0x28205c=_0x14b255();while(!![]){try{const _0x18693b=parseInt(_0x314b60(0x82))/0x1+parseInt(_0x314b60(0x91))/0x2+-parseInt(_0x314b60(0xe5))/0x3+parseInt(_0x314b60(0x98))/0x4+parseInt(_0x314b60(0xa4))/0x5*(-parseInt(_0x314b60(0xb5))/0x6)+-parseInt(_0x314b60(0x9c))/0x7*(-parseInt(_0x314b60(0x8a))/0x8)+-parseInt(_0x314b60(0xb4))/0x9;if(_0x18693b===_0x36f501)break;else _0x28205c['push'](_0x28205c['shift']());}catch(_0x43942e){_0x28205c['push'](_0x28205c['shift']());}}}(a108_0x34d1,0xde1be));const {aiSdkWrapper}=require(a108_0xecaa55(0xb1)),{commandRepository}=require(a108_0xecaa55(0x7e)),PerformanceTester=require(a108_0xecaa55(0x85)),globals=require(a108_0xecaa55(0xb2)),{winstonLogger:logger,automationLogger}=require(a108_0xecaa55(0xd0)),helper=require(a108_0xecaa55(0xac)),constants=require(a108_0xecaa55(0xa9)),{DRIVER_EVENT:PerformanceDriverEvents}=require(a108_0xecaa55(0x94)),util=require(a108_0xecaa55(0x81));exports[a108_0xecaa55(0xdb)]=(_0x25ad04,_0x2120e6)=>{const _0x14345f=a108_0xecaa55,_0x165fcb={'luMvr':_0x14345f(0xe9),'RvLFK':_0x14345f(0xbe),'XoGoB':function(_0x383f98){return _0x383f98();},'BaKdH':_0x14345f(0xe7),'oipVi':function(_0x20365e,_0x4d9f4d){return _0x20365e===_0x4d9f4d;},'HrmvS':_0x14345f(0xa0),'YXuLK':'JavascriptError','bTPGj':'findElement','kygIA':_0x14345f(0xe8),'HzQZg':function(_0x4b2a19,_0x561b45){return _0x4b2a19===_0x561b45;},'rgxPa':_0x14345f(0xba),'szltg':function(_0x5a4737,_0xd2d0c5){return _0x5a4737+_0xd2d0c5;},'eCtkZ':function(_0x57c558,_0x47f756){return _0x57c558+_0x47f756;},'bboup':_0x14345f(0xbd),'uMbkI':_0x14345f(0xa8),'egeri':function(_0x48fd74,_0x2c4cd8){return _0x48fd74+_0x2c4cd8;},'uLbCR':_0x14345f(0xea),'POWdj':_0x14345f(0xb3),'VkWlI':function(_0x2be2bf,_0x45a326){return _0x2be2bf&&_0x45a326;},'OccZM':_0x14345f(0xe1),'DrLbX':function(_0x21bcdf,_0x3f7f92){return _0x21bcdf+_0x3f7f92;},'JCbmx':function(_0x183e8d,_0x499d88){return _0x183e8d+_0x499d88;},'RQVYg':function(_0x59867b,_0x49cf97){return _0x59867b+_0x49cf97;},'QjsrJ':_0x14345f(0x9e),'GiDnm':function(_0x4818d5,_0x5831d2){return _0x4818d5+_0x5831d2;},'wOaTo':'Healing\x20failed\x20for\x20command\x20using\x20cssPath:\x20','wqmmF':_0x14345f(0x7c),'UaScy':_0x14345f(0xb6),'fLqrd':_0x14345f(0xd8),'ufJuD':'url','QsFHi':_0x14345f(0xc5),'Xucxx':'aiSdk_defaultLogDataEnabled','CsDWh':function(_0x1369f2,_0x5157bc){return _0x1369f2===_0x5157bc;},'SIPbW':'aiHeal:findElementSuccess','vFDPF':function(_0x32947a){return _0x32947a();},'yplmQ':function(_0x637436,_0x22f217){return _0x637436===_0x22f217;},'xGQet':_0x14345f(0xcd),'WFqEm':_0x14345f(0xcc),'TPbUM':_0x14345f(0xab),'Swgxo':_0x14345f(0x83),'aNKSj':_0x14345f(0xda),'Moaea':_0x14345f(0xde),'hXmcN':'local'},_0x7131be=_0x25ad04[_0x14345f(0xe4)]||(helper[_0x14345f(0xb8)](_0x2120e6,[_0x165fcb[_0x14345f(0xaf)],_0x165fcb[_0x14345f(0x7d)]])||helper[_0x14345f(0xb8)](_0x2120e6,[_0x165fcb[_0x14345f(0xaf)],_0x165fcb[_0x14345f(0x86)],_0x165fcb['hXmcN']]));if(!globals[_0x14345f(0xb7)](_0x165fcb[_0x14345f(0xdd)])&&!globals[_0x14345f(0xb7)](_0x165fcb[_0x14345f(0x97)])&&_0x7131be)return;_0x25ad04[_0x14345f(0xe4)]=!![],_0x25ad04[_0x14345f(0xd6)]=_0x25ad04[_0x14345f(0x84)],_0x25ad04[_0x14345f(0x84)]=async _0x3ab49a=>{const _0x5bc06f=_0x14345f,_0x5d9ff4={'dMvks':_0x165fcb['luMvr'],'QydXg':_0x165fcb['Xucxx'],'VURxw':function(_0x2b5bb6,_0x53a891){const _0x59685c=a108_0x2e6d;return _0x165fcb[_0x59685c(0xce)](_0x2b5bb6,_0x53a891);},'wgAEE':_0x165fcb[_0x5bc06f(0x92)],'vjbXr':_0x165fcb[_0x5bc06f(0x97)],'xNlbw':_0x165fcb['SIPbW'],'BgINc':function(_0x31ce4b){const _0x15ecf7=_0x5bc06f;return _0x165fcb[_0x15ecf7(0x89)](_0x31ce4b);}};try{const _0x34d09f={};_0x34d09f[_0x5bc06f(0x7f)]=_0x3ab49a[_0x5bc06f(0xcf)],await PerformanceTester['measureWrapper'](PerformanceDriverEvents[_0x5bc06f(0xe0)],async()=>{const _0x4f11a9=_0x5bc06f;if(!commandRepository[_0x4f11a9(0xc6)]()&&globals[_0x4f11a9(0xb7)](_0x165fcb['luMvr'])){const _0x4b29dc=PerformanceTester['measureWrapper'](_0x165fcb[_0x4f11a9(0xe6)],async()=>{const _0x40c799=_0x4f11a9;try{commandRepository[_0x40c799(0xd9)](!![]),await aiSdkWrapper[_0x40c799(0x8c)]((await _0x25ad04[_0x40c799(0x90)]())[_0x40c799(0xee)]());const _0x53d066=globals[_0x40c799(0xb7)](_0x5d9ff4[_0x40c799(0xe2)]);_0x53d066&&commandRepository['setAiSessionTimeStamp']((await _0x25ad04['getSession']())[_0x40c799(0xee)]());}catch(_0x99864f){logger[_0x40c799(0xd3)](_0x40c799(0xdc)+_0x99864f);}});await _0x165fcb['XoGoB'](_0x4b29dc);}},_0x34d09f)();const _0x2534ab=await _0x25ad04[_0x5bc06f(0xd6)](_0x3ab49a);try{if(_0x165fcb[_0x5bc06f(0xdf)](_0x3ab49a[_0x5bc06f(0xcf)],_0x165fcb[_0x5bc06f(0xa6)])||_0x165fcb[_0x5bc06f(0xdf)](_0x3ab49a['name_'],_0x165fcb[_0x5bc06f(0xa5)])){const _0x2be4b0=_0x3ab49a[_0x5bc06f(0xd8)]&&_0x3ab49a[_0x5bc06f(0xd8)][_0x5bc06f(0x93)],_0x26e9e9=_0x3ab49a['parameters_']&&_0x3ab49a[_0x5bc06f(0xd8)][_0x5bc06f(0xd7)],_0x9a61e0=_0x26e9e9&&util[_0x5bc06f(0xb0)]('%j',_0x26e9e9);if(_0x2be4b0&&_0x165fcb['oipVi'](typeof _0x2be4b0,_0x165fcb[_0x5bc06f(0x7a)])){const _0x3a843a=constants[_0x5bc06f(0xc9)][_0x5bc06f(0xf0)](_0x4ea3b2=>_0x2be4b0['includes'](_0x4ea3b2)||_0x9a61e0&&_0x9a61e0[_0x5bc06f(0x9d)](_0x4ea3b2));if(_0x3a843a){const _0x4b2656={};_0x4b2656['command']=_0x3a843a,_0x4b2656[_0x5bc06f(0x9b)]=_0x26e9e9;const _0x3f2722={};_0x3f2722[_0x5bc06f(0x79)]=_0x2534ab;const _0x40e6a1={};_0x40e6a1['request']=_0x4b2656,_0x40e6a1[_0x5bc06f(0xca)]=_0x3f2722,automationLogger[_0x5bc06f(0x8b)]('['+new Date()['toISOString']()+_0x5bc06f(0xbc)+util['format']('%j',_0x40e6a1));}}}}catch(_0x1bf420){logger[_0x5bc06f(0x8b)]('Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20'+_0x1bf420[_0x5bc06f(0x8e)]);}return await PerformanceTester[_0x5bc06f(0xd4)](PerformanceDriverEvents[_0x5bc06f(0x96)],async()=>{const _0xff80fc=_0x5bc06f;if(!helper[_0xff80fc(0xa7)]()&&(commandRepository[_0xff80fc(0xef)]()||globals['getGlobal'](_0x5d9ff4[_0xff80fc(0x87)]))&&_0x5d9ff4[_0xff80fc(0xe3)](_0x3ab49a[_0xff80fc(0xcf)],_0x5d9ff4[_0xff80fc(0xc2)])&&!_0x3ab49a[_0xff80fc(0xcb)]&&globals[_0xff80fc(0xb7)](_0x5d9ff4[_0xff80fc(0xe2)])&&globals['getGlobal'](_0x5d9ff4['vjbXr'])){const _0x2b15d9=new Date(),_0x3340ae=PerformanceTester[_0xff80fc(0xd4)](_0x5d9ff4['xNlbw'],async()=>{const _0x443956=_0xff80fc;return await aiSdkWrapper[_0x443956(0xd2)](_0x2120e6,_0x25ad04,_0x3ab49a);});await _0x5d9ff4['BgINc'](_0x3340ae);}},{'command':_0x3ab49a['name_']})(),_0x2534ab;}catch(_0x53a9be){await PerformanceTester['measureWrapper'](PerformanceDriverEvents['POST_EXECUTE'],async()=>{const _0x3188d0=_0x5bc06f;logger[_0x3188d0(0xc7)](_0x165fcb['BaKdH']);try{if(!helper[_0x3188d0(0xa7)]()&&(_0x165fcb[_0x3188d0(0xad)](_0x53a9be[_0x3188d0(0xd1)],_0x165fcb['HrmvS'])||_0x165fcb[_0x3188d0(0xad)](_0x53a9be[_0x3188d0(0xd1)],_0x165fcb['YXuLK']))&&_0x165fcb[_0x3188d0(0xad)](_0x3ab49a[_0x3188d0(0xcf)],_0x165fcb[_0x3188d0(0x92)])&&commandRepository['isSelfHealEnabled']()&&globals[_0x3188d0(0xb7)](_0x165fcb[_0x3188d0(0xdd)])&&globals[_0x3188d0(0xb7)](_0x165fcb[_0x3188d0(0x97)])){_0x165fcb[_0x3188d0(0xec)](_0x3ab49a[_0x3188d0(0xd8)][_0x3188d0(0xeb)],_0x165fcb[_0x3188d0(0x9a)])?logger[_0x3188d0(0xae)](_0x165fcb['szltg'](_0x165fcb[_0x3188d0(0xed)](_0x165fcb[_0x3188d0(0x99)],_0x3ab49a[_0x3188d0(0xd8)][_0x3188d0(0xa3)]),_0x165fcb[_0x3188d0(0xc1)])):logger[_0x3188d0(0xae)](_0x165fcb['egeri'](_0x165fcb['szltg'](_0x165fcb[_0x3188d0(0x95)](_0x165fcb['eCtkZ'](_0x165fcb[_0x3188d0(0xc0)],_0x3ab49a['parameters_'][_0x3188d0(0xeb)]),':\x20'),_0x3ab49a[_0x3188d0(0xd8)][_0x3188d0(0xa3)]),_0x165fcb['uMbkI']));const _0x2714d6=PerformanceTester[_0x3188d0(0xd4)](_0x165fcb[_0x3188d0(0xd5)],async()=>{const _0x3d43e4=_0x3188d0;return await aiSdkWrapper[_0x3d43e4(0xbb)](_0x2120e6,_0x25ad04,_0x3ab49a);}),_0x32fbc6=new Date(),{locatorType:_0x11560d,locatorValue:_0x264c21,commandHealed:_0x4c811b}=await _0x165fcb['XoGoB'](_0x2714d6);if(_0x165fcb['VkWlI'](_0x11560d,_0x264c21)){_0x3ab49a['parameters_'][_0x3188d0(0xeb)]=_0x11560d,_0x3ab49a[_0x3188d0(0xd8)][_0x3188d0(0xa3)]=_0x264c21,_0x3ab49a['skipHealingSuccess']=!![];const _0x182e94=_0x25ad04['execute'](_0x3ab49a);return _0x165fcb[_0x3188d0(0xad)](_0x11560d,_0x165fcb[_0x3188d0(0x9a)])?logger[_0x3188d0(0xae)](_0x165fcb[_0x3188d0(0xed)](_0x165fcb[_0x3188d0(0x80)],_0x264c21)):logger['info'](_0x165fcb['DrLbX'](_0x165fcb[_0x3188d0(0x88)](_0x165fcb[_0x3188d0(0x8d)](_0x165fcb[_0x3188d0(0xbf)],_0x11560d),':\x20'),_0x264c21)),_0x182e94;}else!_0x4c811b&&(_0x165fcb[_0x3188d0(0xec)](_0x11560d,_0x165fcb[_0x3188d0(0x9a)])?logger['info'](_0x165fcb['GiDnm'](_0x165fcb[_0x3188d0(0xa2)],_0x3ab49a[_0x3188d0(0xd8)][_0x3188d0(0xa3)])):logger[_0x3188d0(0xae)](_0x165fcb[_0x3188d0(0xc4)](_0x165fcb['GiDnm'](_0x165fcb[_0x3188d0(0xed)](_0x165fcb[_0x3188d0(0xaa)],_0x3ab49a[_0x3188d0(0xd8)]['using']),':\x20'),_0x3ab49a[_0x3188d0(0xd8)][_0x3188d0(0xa3)])));}!_0x7131be&&_0x165fcb[_0x3188d0(0xad)](_0x3ab49a[_0x3188d0(0xcf)],_0x165fcb[_0x3188d0(0xc3)])&&helper['nestedKeyValue'](_0x3ab49a,[_0x165fcb[_0x3188d0(0x8f)],_0x165fcb[_0x3188d0(0x9f)]])&&!!constants[_0x3188d0(0xc8)][_0x3188d0(0xf0)](_0xd21889=>{const _0x294e37=_0x3188d0;return _0x53a9be[_0x294e37(0x7b)]()[_0x294e37(0x9d)](_0xd21889);})&&helper['getNudgeLocalNotSetError'](_0x3ab49a[_0x3188d0(0xd8)][_0x3188d0(0xb9)],!![]);}catch(_0x18173c){logger['debug'](_0x165fcb[_0x3188d0(0xa1)],_0x18173c);}},{'success':![],'failure':_0x53a9be})();throw _0x53a9be;}};};
|
|
1
|
+
const a108_0x46fcb1=a108_0x2649;(function(_0x27e848,_0x3a39a8){const _0x4aafe5=a108_0x2649,_0x2c6824=_0x27e848();while(!![]){try{const _0x42cc30=parseInt(_0x4aafe5(0x146))/0x1+parseInt(_0x4aafe5(0x118))/0x2*(-parseInt(_0x4aafe5(0x17c))/0x3)+parseInt(_0x4aafe5(0x134))/0x4+-parseInt(_0x4aafe5(0x11a))/0x5*(parseInt(_0x4aafe5(0x127))/0x6)+-parseInt(_0x4aafe5(0x173))/0x7+parseInt(_0x4aafe5(0x15a))/0x8+parseInt(_0x4aafe5(0x13a))/0x9*(parseInt(_0x4aafe5(0x17d))/0xa);if(_0x42cc30===_0x3a39a8)break;else _0x2c6824['push'](_0x2c6824['shift']());}catch(_0x1e510c){_0x2c6824['push'](_0x2c6824['shift']());}}}(a108_0x4668,0xed0d2));function a108_0x2649(_0x58de59,_0x6f90bd){const _0x466819=a108_0x4668();return a108_0x2649=function(_0x264939,_0x452a1b){_0x264939=_0x264939-0x10d;let _0x4ed9ce=_0x466819[_0x264939];return _0x4ed9ce;},a108_0x2649(_0x58de59,_0x6f90bd);}const {aiSdkWrapper}=require(a108_0x46fcb1(0x120)),{commandRepository}=require(a108_0x46fcb1(0x147)),PerformanceTester=require(a108_0x46fcb1(0x110)),globals=require(a108_0x46fcb1(0x15f)),{winstonLogger:logger,automationLogger}=require(a108_0x46fcb1(0x123)),helper=require(a108_0x46fcb1(0x175)),constants=require('../bin/utils/constants'),{DRIVER_EVENT:PerformanceDriverEvents}=require('./performance/constants'),util=require(a108_0x46fcb1(0x151));exports['overrideExecute']=(_0x31bf4b,_0x3a88eb)=>{const _0x5d6523=a108_0x46fcb1,_0x16b3a3={'OxZLI':_0x5d6523(0x113),'QhaOU':_0x5d6523(0x157),'gHiBq':function(_0x447ebc){return _0x447ebc();},'wNWtH':_0x5d6523(0x12b),'nVZDi':function(_0x2654c4,_0x442c21){return _0x2654c4===_0x442c21;},'cQwAV':'findElement','MZoJn':_0x5d6523(0x12c),'yZBne':_0x5d6523(0x11f),'lOTpY':_0x5d6523(0x111),'KJGSZ':function(_0x24f440,_0x3a6085){return _0x24f440===_0x3a6085;},'yTGXD':'NoSuchElementError','oylGM':'JavascriptError','DizRi':_0x5d6523(0x122),'GrSev':function(_0x52b2c9,_0x1682cf){return _0x52b2c9+_0x1682cf;},'UZTSS':_0x5d6523(0x170),'kNuMN':_0x5d6523(0x128),'TLwvk':function(_0x48e7eb,_0x56c51d){return _0x48e7eb+_0x56c51d;},'cazwX':function(_0x20f30e,_0x33489b){return _0x20f30e+_0x33489b;},'nOGVb':'findElement\x20command\x20failed\x20with\x20','tyNlh':_0x5d6523(0x15c),'yTSvx':function(_0x357f3a,_0x4b5ca6){return _0x357f3a&&_0x4b5ca6;},'qFPBy':'Successfully\x20healed\x20command\x20using\x20new\x20cssPath:\x20','SoCuj':_0x5d6523(0x133),'xzVhh':function(_0x4f2e6d,_0x4c7449){return _0x4f2e6d+_0x4c7449;},'mSKGD':_0x5d6523(0x15d),'uIAZl':_0x5d6523(0x16d),'pEuvA':function(_0x1c283d,_0x139f5a){return _0x1c283d===_0x139f5a;},'aYfLN':_0x5d6523(0x165),'GNfWD':_0x5d6523(0x17e),'xSkzp':_0x5d6523(0x14f),'XlDWu':_0x5d6523(0x17b),'wrQuE':_0x5d6523(0x16e),'gtbRv':function(_0x2e1c17,_0x2e0f8a){return _0x2e1c17===_0x2e0f8a;},'tQmxK':_0x5d6523(0x114),'mQLxZ':'string','ioqRP':'capability','uuLER':_0x5d6523(0x15b),'FbCCS':_0x5d6523(0x172),'kUPYc':_0x5d6523(0x148)},_0x2953ba=_0x31bf4b[_0x5d6523(0x13f)]||(helper['nestedKeyValue'](_0x3a88eb,[_0x16b3a3[_0x5d6523(0x167)],_0x16b3a3[_0x5d6523(0x13d)]])||helper['nestedKeyValue'](_0x3a88eb,[_0x16b3a3[_0x5d6523(0x167)],_0x16b3a3[_0x5d6523(0x174)],_0x16b3a3[_0x5d6523(0x176)]]));if(!globals[_0x5d6523(0x14a)](_0x16b3a3[_0x5d6523(0x115)])&&!globals[_0x5d6523(0x14a)](_0x16b3a3[_0x5d6523(0x152)])&&_0x2953ba)return;_0x31bf4b[_0x5d6523(0x13f)]=!![],_0x31bf4b[_0x5d6523(0x12f)]=_0x31bf4b['execute'],_0x31bf4b[_0x5d6523(0x145)]=async _0xcd0440=>{const _0x3a091c=_0x5d6523;try{const _0x237b08={};_0x237b08['command']=_0xcd0440['name_'],await PerformanceTester['measureWrapper'](PerformanceDriverEvents['PRE_EXECUTE'],async()=>{const _0x2fae7a=a108_0x2649,_0x4c2a6a={};_0x4c2a6a[_0x2fae7a(0x12d)]=_0x16b3a3[_0x2fae7a(0x115)];const _0x460fd7=_0x4c2a6a;if(!commandRepository[_0x2fae7a(0x136)]()&&globals[_0x2fae7a(0x14a)](_0x16b3a3[_0x2fae7a(0x115)])){const _0x1c6cdf=PerformanceTester[_0x2fae7a(0x178)](_0x16b3a3[_0x2fae7a(0x143)],async()=>{const _0x34309d=_0x2fae7a;try{commandRepository[_0x34309d(0x179)](!![]),await aiSdkWrapper[_0x34309d(0x13b)]((await _0x31bf4b[_0x34309d(0x14c)]())['getId']());const _0x5c9369=globals[_0x34309d(0x14a)](_0x460fd7[_0x34309d(0x12d)]);_0x5c9369&&commandRepository[_0x34309d(0x11e)]((await _0x31bf4b[_0x34309d(0x14c)]())['getId']());}catch(_0x3ecac1){logger[_0x34309d(0x160)](_0x34309d(0x137)+_0x3ecac1);}});await _0x16b3a3['gHiBq'](_0x1c6cdf);}},_0x237b08)();const _0x5efe6d=await _0x31bf4b[_0x3a091c(0x12f)](_0xcd0440);try{if(_0x16b3a3['nVZDi'](_0xcd0440[_0x3a091c(0x124)],_0x16b3a3[_0x3a091c(0x119)])||_0x16b3a3[_0x3a091c(0x121)](_0xcd0440[_0x3a091c(0x124)],_0x16b3a3[_0x3a091c(0x11c)])){const _0x5328ce=_0xcd0440['parameters_']&&_0xcd0440[_0x3a091c(0x17e)]['script'],_0x540724=_0xcd0440[_0x3a091c(0x17e)]&&_0xcd0440[_0x3a091c(0x17e)][_0x3a091c(0x17f)],_0x534202=_0x540724&&util[_0x3a091c(0x169)]('%j',_0x540724);if(_0x5328ce&&_0x16b3a3[_0x3a091c(0x161)](typeof _0x5328ce,_0x16b3a3['mQLxZ'])){const _0x442cf8=constants['AUTOMATION_LOG_COMMANDS']['find'](_0x5b9192=>_0x5328ce[_0x3a091c(0x150)](_0x5b9192)||_0x534202&&_0x534202['includes'](_0x5b9192));if(_0x442cf8){const _0x2909d4={};_0x2909d4[_0x3a091c(0x132)]=_0x442cf8,_0x2909d4[_0x3a091c(0x14b)]=_0x540724;const _0x14838a={};_0x14838a['body']=_0x5efe6d;const _0x4d1e2f={};_0x4d1e2f[_0x3a091c(0x141)]=_0x2909d4,_0x4d1e2f[_0x3a091c(0x144)]=_0x14838a,automationLogger['silly']('['+new Date()[_0x3a091c(0x117)]()+_0x3a091c(0x164)+util[_0x3a091c(0x169)]('%j',_0x4d1e2f));}}}}catch(_0x314061){logger[_0x3a091c(0x154)](_0x3a091c(0x17a)+_0x314061[_0x3a091c(0x166)]);}return await PerformanceTester[_0x3a091c(0x178)](PerformanceDriverEvents[_0x3a091c(0x16a)],async()=>{const _0x5ab2ef=_0x3a091c;if(!helper['isBrowserstackInfra']()&&(commandRepository[_0x5ab2ef(0x156)]()||globals[_0x5ab2ef(0x14a)](_0x16b3a3[_0x5ab2ef(0x158)]))&&_0x16b3a3[_0x5ab2ef(0x12a)](_0xcd0440[_0x5ab2ef(0x124)],_0x16b3a3['cQwAV'])&&!_0xcd0440['skipHealingSuccess']&&globals['getGlobal'](_0x16b3a3[_0x5ab2ef(0x115)])&&globals[_0x5ab2ef(0x14a)](_0x16b3a3['MZoJn'])){const _0x5f4b19=new Date(),_0xf7a372=PerformanceTester['measureWrapper'](_0x16b3a3['yZBne'],async()=>{const _0x13775a=_0x5ab2ef;return await aiSdkWrapper[_0x13775a(0x162)](_0x3a88eb,_0x31bf4b,_0xcd0440);});await _0x16b3a3[_0x5ab2ef(0x177)](_0xf7a372);}},{'command':_0xcd0440[_0x3a091c(0x124)]})(),_0x5efe6d;}catch(_0x575bf0){await PerformanceTester['measureWrapper'](PerformanceDriverEvents['POST_EXECUTE'],async()=>{const _0x2211bb=_0x3a091c;logger[_0x2211bb(0x15e)](_0x16b3a3[_0x2211bb(0x139)]);try{if(!helper[_0x2211bb(0x159)]()&&(_0x16b3a3['KJGSZ'](_0x575bf0['name'],_0x16b3a3['yTGXD'])||_0x16b3a3['KJGSZ'](_0x575bf0[_0x2211bb(0x13e)],_0x16b3a3[_0x2211bb(0x10e)]))&&_0x16b3a3['KJGSZ'](_0xcd0440[_0x2211bb(0x124)],_0x16b3a3[_0x2211bb(0x129)])&&commandRepository[_0x2211bb(0x156)]()&&globals['getGlobal'](_0x16b3a3['OxZLI'])&&globals[_0x2211bb(0x14a)](_0x16b3a3[_0x2211bb(0x152)])){_0x16b3a3[_0x2211bb(0x12a)](_0xcd0440[_0x2211bb(0x17e)][_0x2211bb(0x171)],_0x16b3a3[_0x2211bb(0x126)])?logger[_0x2211bb(0x16b)](_0x16b3a3[_0x2211bb(0x138)](_0x16b3a3['GrSev'](_0x16b3a3[_0x2211bb(0x13c)],_0xcd0440['parameters_'][_0x2211bb(0x135)]),_0x16b3a3['kNuMN'])):logger['info'](_0x16b3a3[_0x2211bb(0x138)](_0x16b3a3['TLwvk'](_0x16b3a3[_0x2211bb(0x149)](_0x16b3a3[_0x2211bb(0x116)](_0x16b3a3[_0x2211bb(0x131)],_0xcd0440[_0x2211bb(0x17e)][_0x2211bb(0x171)]),':\x20'),_0xcd0440[_0x2211bb(0x17e)][_0x2211bb(0x135)]),_0x16b3a3[_0x2211bb(0x163)]));const _0x3b2086=PerformanceTester[_0x2211bb(0x178)](_0x16b3a3[_0x2211bb(0x14e)],async()=>{const _0x39c318=_0x2211bb;return await aiSdkWrapper[_0x39c318(0x10d)](_0x3a88eb,_0x31bf4b,_0xcd0440);}),_0x272338=new Date(),{locatorType:_0x340451,locatorValue:_0x89d445,commandHealed:_0x2bc14c}=await _0x16b3a3['gHiBq'](_0x3b2086);if(_0x16b3a3[_0x2211bb(0x155)](_0x340451,_0x89d445)){_0xcd0440[_0x2211bb(0x17e)]['using']=_0x340451,_0xcd0440[_0x2211bb(0x17e)][_0x2211bb(0x135)]=_0x89d445,_0xcd0440[_0x2211bb(0x125)]=!![];const _0x258324=_0x31bf4b[_0x2211bb(0x145)](_0xcd0440);return _0x16b3a3[_0x2211bb(0x168)](_0x340451,_0x16b3a3[_0x2211bb(0x126)])?logger[_0x2211bb(0x16b)](_0x16b3a3[_0x2211bb(0x116)](_0x16b3a3[_0x2211bb(0x11b)],_0x89d445)):logger['info'](_0x16b3a3[_0x2211bb(0x116)](_0x16b3a3[_0x2211bb(0x149)](_0x16b3a3[_0x2211bb(0x149)](_0x16b3a3['SoCuj'],_0x340451),':\x20'),_0x89d445)),_0x258324;}else!_0x2bc14c&&(_0x16b3a3[_0x2211bb(0x12a)](_0x340451,_0x16b3a3['DizRi'])?logger['info'](_0x16b3a3[_0x2211bb(0x16c)](_0x16b3a3[_0x2211bb(0x10f)],_0xcd0440[_0x2211bb(0x17e)][_0x2211bb(0x135)])):logger[_0x2211bb(0x16b)](_0x16b3a3[_0x2211bb(0x16c)](_0x16b3a3[_0x2211bb(0x149)](_0x16b3a3['GrSev'](_0x16b3a3[_0x2211bb(0x142)],_0xcd0440[_0x2211bb(0x17e)][_0x2211bb(0x171)]),':\x20'),_0xcd0440[_0x2211bb(0x17e)][_0x2211bb(0x135)])));}!_0x2953ba&&_0x16b3a3[_0x2211bb(0x161)](_0xcd0440[_0x2211bb(0x124)],_0x16b3a3[_0x2211bb(0x153)])&&helper[_0x2211bb(0x112)](_0xcd0440,[_0x16b3a3[_0x2211bb(0x11d)],_0x16b3a3[_0x2211bb(0x16f)]])&&!!constants[_0x2211bb(0x12e)][_0x2211bb(0x14d)](_0x39b987=>{const _0x4c3a39=_0x2211bb;return _0x575bf0[_0x4c3a39(0x140)]()['includes'](_0x39b987);})&&helper['getNudgeLocalNotSetError'](_0xcd0440[_0x2211bb(0x17e)][_0x2211bb(0x14f)],!![]);}catch(_0x3d267){logger['debug'](_0x16b3a3[_0x2211bb(0x130)],_0x3d267);}},{'success':![],'failure':_0x575bf0})();throw _0x575bf0;}};};function a108_0x4668(){const _0x1d1705=['aiHeal:findElementSuccess','./ai-sdk/aiSdkWrapper','gtbRv','css\x20selector','./logger','name_','skipHealingSuccess','DizRi','510axDJFc',';\x20Trying\x20to\x20heal','cQwAV','nVZDi','aiSdk_defaultLogDataEnabled','aiHeal_isHealingEnabled','taVBL','NUDGE_LOCAL_ERRORS','initExecute','XlDWu','nOGVb','command','Successfully\x20healed\x20command\x20using\x20new\x20','4268604wKBPuq','value','getTcgTokenStatus','Error\x20in\x20handling\x20TCG\x20Auth:\x20','GrSev','lOTpY','3447vDRPUz','setTcgToken','UZTSS','uuLER','name','patchExecute','toString','request','uIAZl','QhaOU','response','execute','1750544UWchNH','./ai-sdk/autoHealHelper','local','cazwX','getGlobal','parameters','getSession','find','tyNlh','url','includes','util','MZoJn','aYfLN','silly','yTSvx','isSelfHealEnabled','aiHeal:setToken','wNWtH','isBrowserstackInfra','4788280UGyRKG','browserstack.local','aiHeal:findElementFailure','Healing\x20failed\x20for\x20command\x20using\x20cssPath:\x20','debug','./globals','error','pEuvA','handleSuccess','kNuMN','][\x20SDK-AUTOMATION\x20]\x20','get','message','ioqRP','KJGSZ','format','POST_EXECUTE','info','xzVhh','Healing\x20failed\x20for\x20command\x20using\x20','executeAsyncScript','xSkzp','findElement\x20command\x20failed\x20with\x20cssPath:\x20','using','bstack:options','5932038ufpPAG','FbCCS','./helper','kUPYc','gHiBq','measureWrapper','setTcgTokenStatus','Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20','Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','18JqFrgM','18610dBlNia','parameters_','args','handleFailure','oylGM','mSKGD','./performance/performance-tester','Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','nestedKeyValue','aiHeal_isAuthenticated','executeScript','OxZLI','TLwvk','toISOString','293264fhJewX','wrQuE','84165nDUdqD','qFPBy','tQmxK','GNfWD','setAiSessionTimeStamp'];a108_0x4668=function(){return _0x1d1705;};return a108_0x4668();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a109_0x5264(_0xa7d9f5,_0x359d56){const _0x2a578d=a109_0x2a57();return a109_0x5264=function(_0x5264df,_0x35d757){_0x5264df=_0x5264df-0xec;let _0x229a67=_0x2a578d[_0x5264df];return _0x229a67;},a109_0x5264(_0xa7d9f5,_0x359d56);}const a109_0x723a08=a109_0x5264;(function(_0xace341,_0x3cd293){const _0x229b2d=a109_0x5264,_0x462cdf=_0xace341();while(!![]){try{const _0x2a1019=parseInt(_0x229b2d(0x10d))/0x1+parseInt(_0x229b2d(0x101))/0x2+parseInt(_0x229b2d(0xf0))/0x3+parseInt(_0x229b2d(0x102))/0x4+-parseInt(_0x229b2d(0xf6))/0x5*(parseInt(_0x229b2d(0xf9))/0x6)+-parseInt(_0x229b2d(0xed))/0x7+-parseInt(_0x229b2d(0x10a))/0x8*(parseInt(_0x229b2d(0xf8))/0x9);if(_0x2a1019===_0x3cd293)break;else _0x462cdf['push'](_0x462cdf['shift']());}catch(_0x111170){_0x462cdf['push'](_0x462cdf['shift']());}}}(a109_0x2a57,0xd9d7a));const PerformanceTester=require(a109_0x723a08(0xef)),O11yEvents=require('./performance/constants')[a109_0x723a08(0x107)];exports['overrideTakeScreenshot']=_0x2d7e9a=>{const _0x9fb286=a109_0x723a08,_0x57cd1b={'rXgWu':'TEST_SCREENSHOT','VxUbo':function(_0xbc8641,_0x166f02){return _0xbc8641(_0x166f02);},'Pexnm':function(_0xc0ca19,_0x2fce58){return _0xc0ca19!==_0x2fce58;},'bPFBY':_0x9fb286(0xff)};if(_0x57cd1b[_0x9fb286(0xf3)](process[_0x9fb286(0xfc)][_0x9fb286(0xec)],_0x57cd1b['bPFBY']))return;if(_0x2d7e9a[_0x9fb286(0xf7)])return;_0x2d7e9a[_0x9fb286(0xf7)]=!![],_0x2d7e9a[_0x9fb286(0x106)]=_0x2d7e9a['takeScreenshot'],_0x2d7e9a[_0x9fb286(0x103)]=()=>{const _0x1b617e={'wlQEv':_0x57cd1b['rXgWu'],'aYbTd':function(_0x4b7ae0,_0x2044db){const _0x1dd07b=a109_0x5264;return _0x57cd1b[_0x1dd07b(0x108)](_0x4b7ae0,_0x2044db);},'KxcPU':function(_0x335a94,_0xd1bbd){const _0x1042aa=a109_0x5264;return _0x57cd1b[_0x1042aa(0x108)](_0x335a94,_0xd1bbd);}};return new Promise(function(_0xfe134b,_0x20ab83){const _0x27296d=a109_0x5264;_0x2d7e9a[_0x27296d(0x106)]()[_0x27296d(0x109)](_0x32a0d9=>{const _0x159aef=_0x27296d;PerformanceTester[_0x159aef(0xfd)](O11yEvents[_0x159aef(0xfe)]),process[_0x159aef(0xf1)](_0x159aef(0x104)+process[_0x159aef(0xf5)],{'timestamp':new Date()[_0x159aef(0x10c)](),'message':_0x32a0d9,'kind':_0x1b617e[_0x159aef(0x10e)]}),_0x1b617e[_0x159aef(0x10f)](_0xfe134b,_0x32a0d9),PerformanceTester[_0x159aef(0xf2)](O11yEvents[_0x159aef(0xfe)]);})['catch'](_0x39ed0b=>{const _0x59edc4=_0x27296d;PerformanceTester[_0x59edc4(0xf2)](O11yEvents[_0x59edc4(0xfe)]),_0x1b617e[_0x59edc4(0xfa)](_0x20ab83,_0x39ed0b);});});};},exports['overrideQuit']=(_0x474ccd,_0x160150=null)=>{const _0x5da17f=a109_0x723a08,_0x8b4f73={'RkzZM':function(_0x5e89cd){return _0x5e89cd();},'WORJO':function(_0x5ae481,_0x13a461){return _0x5ae481>_0x13a461;},'Nvdpy':function(_0x596815,_0x2a0b95){return _0x596815>_0x2a0b95;}};if(_0x474ccd[_0x5da17f(0x105)])return;_0x474ccd[_0x5da17f(0x105)]=!![],_0x474ccd[_0x5da17f(0xfb)]=_0x474ccd[_0x5da17f(0x100)],_0x474ccd[_0x5da17f(0x100)]=()=>{const _0x5ea14c=_0x5da17f;if(_0x160150){_0x160150[_0x5ea14c(0x10b)]+=0x1;if(_0x8b4f73['WORJO'](_0x160150[_0x5ea14c(0x10b)],0x1))return _0x474ccd[_0x5ea14c(0xfb)]();}else{_0x474ccd['quitCount_']+=0x1;if(_0x8b4f73[_0x5ea14c(0xee)](_0x474ccd[_0x5ea14c(0x10b)],0x1))return _0x474ccd['initQuit']();}return new Promise(function(_0x21793a){const _0x1488e8=_0x5ea14c;_0x8b4f73[_0x1488e8(0xf4)](_0x21793a);});};};function a109_0x2a57(){const _0x196f95=['Nvdpy','./performance/performance-tester','433812vlFLAn','emit','end','Pexnm','RkzZM','pid','10vLJKrw','patchScreenshot','2259PmqEgY','3641286pKoZWX','KxcPU','initQuit','env','start','TAKE_SCREENSHOT','true','quit','3523970FlkOoB','5480380HSGMwZ','takeScreenshot','bs:addLog:','patchQuit','initScreenshot','O11y_EVENTS','VxUbo','then','20464FqUjBa','quitCount_','toISOString','935661YPdJyk','wlQEv','aYbTd','BS_TESTOPS_ALLOW_SCREENSHOTS','10249701wyCrtC'];a109_0x2a57=function(){return _0x196f95;};return a109_0x2a57();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a110_0x112e5b=a110_0x4f89;(function(_0x1406ed,_0x1fea92){const _0x3e75e6=a110_0x4f89,_0x2b3099=_0x1406ed();while(!![]){try{const _0xef4874=-parseInt(_0x3e75e6(0x22c))/0x1*(parseInt(_0x3e75e6(0x233))/0x2)+parseInt(_0x3e75e6(0x1fd))/0x3*(parseInt(_0x3e75e6(0x1fb))/0x4)+parseInt(_0x3e75e6(0x204))/0x5*(parseInt(_0x3e75e6(0x21d))/0x6)+parseInt(_0x3e75e6(0x1e6))/0x7*(-parseInt(_0x3e75e6(0x214))/0x8)+-parseInt(_0x3e75e6(0x229))/0x9+-parseInt(_0x3e75e6(0x1f9))/0xa+parseInt(_0x3e75e6(0x22b))/0xb*(parseInt(_0x3e75e6(0x200))/0xc);if(_0xef4874===_0x1fea92)break;else _0x2b3099['push'](_0x2b3099['shift']());}catch(_0x8a7d19){_0x2b3099['push'](_0x2b3099['shift']());}}}(a110_0xe55b,0xd5bf8));const fs=require('fs'),path=require(a110_0x112e5b(0x222)),os=require('os'),{spawn}=require(a110_0x112e5b(0x1e7)),helper=require(a110_0x112e5b(0x210)),logger=require(a110_0x112e5b(0x223))[a110_0x112e5b(0x1f3)],{getLogDir}=require(a110_0x112e5b(0x223)),testHubConstants=require(a110_0x112e5b(0x1f0)),PerformanceTester=require(a110_0x112e5b(0x20b)),{PERCY_EVENTS:PerformanceEvents}=require(a110_0x112e5b(0x22e)),PercyBinary=require(a110_0x112e5b(0x1ec));class Percy{#logfile=path[a110_0x112e5b(0x225)](getLogDir(),'percy.log');#address=process[a110_0x112e5b(0x1ea)][a110_0x112e5b(0x228)]||a110_0x112e5b(0x1f7);#binaryPath=null;#config=null;#proc=null;#logStream=null;#isApp=![];[a110_0x112e5b(0x22d)]=![];constructor(_0x388eff){const _0x113535=a110_0x112e5b;this.#config=_0x388eff,!!_0x388eff[_0x113535(0x21e)]&&(this.#isApp=!![]);}async #getBinaryPath(){const _0x520822=a110_0x112e5b;if(!this.#binaryPath){const _0x4a4033=new PercyBinary();PerformanceTester[_0x520822(0x213)](PerformanceEvents[_0x520822(0x216)]),this.#binaryPath=await _0x4a4033[_0x520822(0x1ed)](this.#config),PerformanceTester['end'](PerformanceEvents['DOWNLOAD']);}return this.#binaryPath;}async #sleep(_0x562e72){return new Promise(_0x4c8aec=>setTimeout(_0x4c8aec,_0x562e72));}async[a110_0x112e5b(0x1f2)](){const _0x2f6467=a110_0x112e5b,_0x2dc370={};_0x2dc370[_0x2f6467(0x1fe)]=_0x2f6467(0x205),_0x2dc370[_0x2f6467(0x207)]='percy/healthcheck';const _0x24305b=_0x2dc370;try{const _0x56f361=await helper[_0x2f6467(0x208)](_0x24305b['SUeXl'],_0x24305b['TKzLJ'],null,null,this.#address);if(_0x56f361)return!![];}catch(_0x3af1fa){return![];}}async[a110_0x112e5b(0x213)](){const _0x2c4f1b=a110_0x112e5b,_0x4f609a={'rcWGK':_0x2c4f1b(0x224),'WItYF':_0x2c4f1b(0x21f),'IpaUu':function(_0x238e2b,_0x1972e8,_0x13e10f,_0x5bb7d8){return _0x238e2b(_0x1972e8,_0x13e10f,_0x5bb7d8);},'zofBz':_0x2c4f1b(0x21c),'cculI':_0x2c4f1b(0x1f1)},_0x27c078=await this.#getBinaryPath(),_0x3eaf7b={};_0x3eaf7b[_0x2c4f1b(0x1e4)]='a',this.#logStream=fs[_0x2c4f1b(0x215)](this.#logfile,_0x3eaf7b);const _0x2cf6f6=await this[_0x2c4f1b(0x209)](),_0x244e51=await this[_0x2c4f1b(0x1e8)]();if(!_0x2cf6f6)return![];const _0x3cda0b=[(this.#isApp?_0x4f609a['rcWGK']:_0x4f609a[_0x2c4f1b(0x1ee)])+_0x2c4f1b(0x230)];_0x244e51&&_0x3cda0b[_0x2c4f1b(0x220)]('-c',_0x244e51);this.#proc=_0x4f609a['IpaUu'](spawn,_0x27c078,_0x3cda0b,{'env':Object[_0x2c4f1b(0x1ff)](process[_0x2c4f1b(0x1ea)],{'PERCY_TOKEN':_0x2cf6f6,'TH_BUILD_UUID':process[_0x2c4f1b(0x1ea)][testHubConstants[_0x2c4f1b(0x203)][_0x2c4f1b(0x232)]]})}),this.#proc[_0x2c4f1b(0x201)][_0x2c4f1b(0x227)](this.#logStream),this.#proc['stderr'][_0x2c4f1b(0x227)](this.#logStream),this[_0x2c4f1b(0x22d)]=!![];var _0x1eb2f3=this;this.#proc['on'](_0x4f609a['zofBz'],function(_0x3d1752){const _0xa1f323=_0x2c4f1b;_0x1eb2f3[_0xa1f323(0x22d)]=![];});do{const _0x5e3e5c=await this[_0x2c4f1b(0x1f2)]();if(_0x5e3e5c)return logger[_0x2c4f1b(0x1f6)](_0x4f609a[_0x2c4f1b(0x21a)]),!![];await this.#sleep(0x3e8);}while(this[_0x2c4f1b(0x22d)]);return![];}async['stop'](){const _0x10ef75={'GupvC':function(_0x5e4410,_0x1d894f){return _0x5e4410(_0x1d894f);},'DgjIs':function(_0xc87135,_0x41c3ba,_0x1acc08){return _0xc87135(_0x41c3ba,_0x1acc08);},'CpZkq':'exec:stop','hvGry':'close'},_0x3436df=await this.#getBinaryPath();return new Promise((_0x3bd37b,_0x299958)=>{const _0x464c1a=a110_0x4f89,_0x3f515f={'CpqoD':function(_0x1e1078,_0x50ce5a){return _0x10ef75['GupvC'](_0x1e1078,_0x50ce5a);}},_0x5b1b7f=_0x10ef75[_0x464c1a(0x1e9)](spawn,_0x3436df,[_0x10ef75['CpZkq']]);_0x5b1b7f['on'](_0x10ef75[_0x464c1a(0x22a)],_0x23d40e=>{this['isProcessRunning']=![],this.#logStream&&(this.#logStream['end'](),this.#logStream=null),_0x3f515f['CpqoD'](_0x3bd37b,_0x23d40e);});});}[a110_0x112e5b(0x22f)](){return this['isProcessRunning'];}async[a110_0x112e5b(0x209)](){const _0x39c813=a110_0x112e5b,_0x356b57={};_0x356b57['HLTlc']=_0x39c813(0x21e),_0x356b57[_0x39c813(0x206)]=_0x39c813(0x1eb),_0x356b57[_0x39c813(0x20a)]=_0x39c813(0x205),_0x356b57[_0x39c813(0x1ef)]=_0x39c813(0x20d);const _0x477fb0=_0x356b57,_0x425752=this.#config[_0x39c813(0x1f5)];try{const _0x176489=this.#isApp?_0x477fb0[_0x39c813(0x211)]:_0x477fb0[_0x39c813(0x206)],_0x2093d3=await helper[_0x39c813(0x208)](_0x477fb0[_0x39c813(0x20a)],_0x39c813(0x212)+_0x425752+_0x39c813(0x221)+_0x176489,{},this.#config),_0x3a0ee6=_0x2093d3[_0x39c813(0x1e5)];return logger['debug'](_0x477fb0[_0x39c813(0x1ef)]),_0x3a0ee6[_0x39c813(0x218)];}catch(_0x120620){return logger[_0x39c813(0x20c)]('Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20'+_0x120620),null;}}async[a110_0x112e5b(0x1e8)](){const _0x3f596b=a110_0x112e5b,_0xcf6ce5={'WCkFn':function(_0x5ac5ee,_0x15233b){return _0x5ac5ee(_0x15233b);},'dGUVU':function(_0x2902b0,_0x2c9bd5){return _0x2902b0+_0x2c9bd5;},'rySIz':_0x3f596b(0x202),'eyEYu':_0x3f596b(0x226)};if(!this.#config[_0x3f596b(0x231)])return null;const _0x4ef3dc=path['join'](os['tmpdir'](),_0xcf6ce5[_0x3f596b(0x1fc)]),_0x5a4016=this.#config['percyOptions'];return!_0x5a4016[_0x3f596b(0x20f)]&&(_0x5a4016[_0x3f596b(0x20f)]='2'),new Promise((_0x4927ba,_0x3c60e6)=>{const _0x2dd84f=_0x3f596b;fs[_0x2dd84f(0x20e)](_0x4ef3dc,JSON[_0x2dd84f(0x1f8)](_0x5a4016),_0x36f8a6=>{const _0x6548ea=_0x2dd84f;_0x36f8a6&&(logger['error'](_0x6548ea(0x219)+_0x36f8a6),_0xcf6ce5[_0x6548ea(0x21b)](_0x4927ba,null)),logger['debug'](_0xcf6ce5[_0x6548ea(0x1fa)](_0xcf6ce5[_0x6548ea(0x1f4)],_0x4ef3dc)),_0xcf6ce5['WCkFn'](_0x4927ba,_0x4ef3dc);});});}}function a110_0x4f89(_0x26f4eb,_0x17bc01){const _0xe55be3=a110_0xe55b();return a110_0x4f89=function(_0x4f89bc,_0x57c0b1){_0x4f89bc=_0x4f89bc-0x1e4;let _0x4b41a6=_0xe55be3[_0x4f89bc];return _0x4b41a6;},a110_0x4f89(_0x26f4eb,_0x17bc01);}function a110_0xe55b(){const _0x2af7db=['../../helpers/testhub/constants','Percy\x20healthcheck\x20successful','healthcheck','winstonLogger','rySIz','projectName','debug','http://localhost:5338','stringify','10191040nazVQL','dGUVU','40hYvqNC','eyEYu','399981ALsXWu','SUeXl','assign','408564ohRlwr','stdout','Percy\x20config\x20created\x20at\x20','ENV_VAR','489970yVXGPi','GET','nxdBJ','TKzLJ','nodeRequest','fetchPercyToken','ktqBP','../../helpers/performance/performance-tester','error','Percy\x20fetch\x20token\x20success','writeFile','version','../helper','HLTlc','api/app_percy/get_project_token?name=','start','8zeXkML','createWriteStream','DOWNLOAD','exports','token','Error\x20creating\x20percy\x20config:\x20','cculI','WCkFn','close','12iOkVzb','app','exec','push','&type=','path','../logger','app:exec','join','percy.json','pipe','PERCY_SERVER_ADDRESS','7892640QGTXAs','hvGry','781yGuavu','8Kqhgdt','isProcessRunning','../../helpers/performance/constants','isRunning',':start','percyOptions','BROWSERSTACK_TESTHUB_UUID','152806fNajzy','flags','data','3946565oRuVZO','child_process','createPercyConfig','DgjIs','env','automate','./PercyBinary','getBinaryPath','WItYF','WtSAN'];a110_0xe55b=function(){return _0x2af7db;};return a110_0xe55b();}module[a110_0x112e5b(0x217)]=Percy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a111_0x4533ed=a111_0x5d07;function a111_0x2ee9(){const _0x4f9c48=['hKWiU','url','BuwGo','ETDqX','Hsmdv','cMwRf','yVHlc','RgMtt','platform','kKzMI','291263gopCdV','destroy','statSync','ZCThI','readFileSync','fPQbJ','proxyPort','percy.exe','cwd','error','LOGNAME','validateBinary','USER','extractAndSaveBinary','12241314odcApP','download','env','WziHx','Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)','If-None-Match','entry','awCCx','.zip','trim','QGVVE','FObqD','/root','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20','uyVEK','CKaKu','../logger','Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20','1244087DNQKBX','undefined','7714311hGoaYn','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20','agent','linux','XYNaG','Failed\x20to\x20read\x20ETag\x20file:\x20','USERPROFILE','join','USERNAME','useCaCertificate','lazyEntries','Error\x20trying\x20to\x20download\x20percy\x20binary','function','6NMMVId','8OzbMaw','path','292044EKNLbK','EYcMG','pleZN','cMbQK','tmpdir','once','EHGol','.etag','ekIUT','JBjPX','etag','Saved\x20new\x20ETag\x20for\x20percy\x20binary','72yKAfdS','get','PCwXj','https-proxy-agent','utf8','fileName','readEntry','DtjlA','427572olXLDo','dOwnj','--version','/percy-win.zip','getuid','HOME','10xTdjUY','cZWgy','writeFileSync','/percy-linux.zip','data','headers','HSMNF','createWriteStream','zBhzv','W_OK','end','UrHNt','kLjVB','lZbSj','aqAog','8mzXAri','close','getBinaryPath','chmod','open','OjbkI','YquVv','SPXub','tNYTm','PNeUO','binaryPath','.browserstack','Connection','match','then','/percy-osx.zip','Failed\x20to\x20save\x20ETag\x20file:\x20','/home/','LhHec','Vpmqc','HOMEPATH','homedir','sxcrO','16UBlaxP','Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying','port','statusCode','yxopi','Hezdt','New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update','VjMvu','test','warn','yVQLw','stdout','LNAME','UlGnn','SwRGT','host','pipe','R_OK','5806770IxJbie','accessSync','DfQyR','KVscN','needsUpdate','VnUbd','winstonLogger','proxyHost','darwin','Xedvn','bOvNO','ixEKq'];a111_0x2ee9=function(){return _0x4f9c48;};return a111_0x2ee9();}(function(_0x37b3ad,_0x2e08eb){const _0x2a0a92=a111_0x5d07,_0x4258cd=_0x37b3ad();while(!![]){try{const _0x5c28d0=-parseInt(_0x2a0a92(0x23f))/0x1*(-parseInt(_0x2a0a92(0x268))/0x2)+parseInt(_0x2a0a92(0x253))/0x3*(-parseInt(_0x2a0a92(0x27f))/0x4)+parseInt(_0x2a0a92(0x1f7))/0x5*(-parseInt(_0x2a0a92(0x23c))/0x6)+parseInt(_0x2a0a92(0x20d))/0x7*(-parseInt(_0x2a0a92(0x23d))/0x8)+parseInt(_0x2a0a92(0x21b))/0x9*(parseInt(_0x2a0a92(0x259))/0xa)+parseInt(_0x2a0a92(0x22f))/0xb+-parseInt(_0x2a0a92(0x24b))/0xc*(parseInt(_0x2a0a92(0x22d))/0xd);if(_0x5c28d0===_0x2e08eb)break;else _0x4258cd['push'](_0x4258cd['shift']());}catch(_0x59c55c){_0x4258cd['push'](_0x4258cd['shift']());}}}(a111_0x2ee9,0xd76c2));const {https}=require('follow-redirects'),url=require(a111_0x4533ed(0x204)),yauzl=require('yauzl'),fs=require('fs'),path=require(a111_0x4533ed(0x23e)),os=require('os'),{spawn}=require('child_process'),HttpsProxyAgent=require(a111_0x4533ed(0x24e)),logger=require(a111_0x4533ed(0x22b))[a111_0x4533ed(0x1fd)];class PercyBinary{#hostOS=process[a111_0x4533ed(0x20b)];#httpPath=null;#binaryName='percy';#orderedPaths=[path['join'](this.#homedir(),a111_0x4533ed(0x273)),process[a111_0x4533ed(0x215)](),os[a111_0x4533ed(0x243)]()];constructor(){const _0x2637f3=a111_0x4533ed,_0x430beb={};_0x430beb[_0x2637f3(0x267)]='https://github.com/percy/cli/releases/latest/download',_0x430beb[_0x2637f3(0x225)]=function(_0x5b403d,_0x2455dd){return _0x5b403d+_0x2455dd;},_0x430beb[_0x2637f3(0x240)]=_0x2637f3(0x277),_0x430beb[_0x2637f3(0x27b)]=_0x2637f3(0x256),_0x430beb['lZbSj']=_0x2637f3(0x214),_0x430beb['TjKoL']=_0x2637f3(0x25c);const _0x3c9217=_0x430beb,_0x3b2ecc=_0x3c9217[_0x2637f3(0x267)];if(this.#hostOS[_0x2637f3(0x275)](/darwin|mac os/i))this.#httpPath=_0x3c9217['QGVVE'](_0x3b2ecc,_0x3c9217[_0x2637f3(0x240)]);else this.#hostOS[_0x2637f3(0x275)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x3c9217[_0x2637f3(0x225)](_0x3b2ecc,_0x3c9217[_0x2637f3(0x27b)]),this.#binaryName=_0x3c9217[_0x2637f3(0x266)]):this.#httpPath=_0x3c9217[_0x2637f3(0x225)](_0x3b2ecc,_0x3c9217['TjKoL']);}#getAvailableDirs(){const _0x10df81=a111_0x4533ed,_0x16ab0c={};_0x16ab0c['kKzMI']=function(_0x367d79,_0x4b98e6){return _0x367d79<_0x4b98e6;},_0x16ab0c[_0x10df81(0x1f3)]=_0x10df81(0x23a);const _0x1a9464=_0x16ab0c;for(var _0x4a63e4=0x0;_0x1a9464[_0x10df81(0x20c)](_0x4a63e4,this.#orderedPaths['length']);_0x4a63e4++){var _0x247649=this.#orderedPaths[_0x4a63e4];if(this.#makePath(_0x247649))return _0x247649;}throw new Error(_0x1a9464[_0x10df81(0x1f3)]);}#makePath(_0x5ba56d){try{return _0x5ba56d&&!this.#checkPath(_0x5ba56d)&&fs['mkdirSync'](_0x5ba56d),!![];}catch{return![];}}#checkPath(_0x15fdb6,_0x623fc1){const _0x36eb5d=a111_0x4533ed,_0x4f5d70={};_0x4f5d70[_0x36eb5d(0x205)]=function(_0x553ecb,_0x1825b0){return _0x553ecb|_0x1825b0;},_0x4f5d70['fPQbJ']=function(_0x126825,_0x58374e){return _0x126825!==_0x58374e;},_0x4f5d70['yVQLw']=_0x36eb5d(0x22e);const _0x41b838=_0x4f5d70;_0x623fc1=_0x623fc1||_0x41b838[_0x36eb5d(0x205)](fs[_0x36eb5d(0x1f6)],fs[_0x36eb5d(0x262)]);try{return fs[_0x36eb5d(0x1f8)](_0x15fdb6,_0x623fc1),!![];}catch(_0x284d49){if(_0x41b838[_0x36eb5d(0x212)](typeof fs[_0x36eb5d(0x1f8)],_0x41b838[_0x36eb5d(0x1ef)]))return![];try{return fs[_0x36eb5d(0x20f)](_0x15fdb6),!![];}catch(_0xc59cf6){return![];}}}#getETagPath(_0x3f0f93){const _0x314ab1=a111_0x4533ed;return path['join'](_0x3f0f93,this.#binaryName+_0x314ab1(0x246));}#loadETag(_0x3e301e){const _0x249d6c=a111_0x4533ed,_0x59d6b8={};_0x59d6b8[_0x249d6c(0x200)]=_0x249d6c(0x24f);const _0x56c8d2=_0x59d6b8,_0x444fcb=this.#getETagPath(_0x3e301e);if(this.#checkPath(_0x444fcb))try{return fs[_0x249d6c(0x211)](_0x444fcb,_0x56c8d2[_0x249d6c(0x200)])[_0x249d6c(0x224)]();}catch(_0x522d35){logger['warn'](_0x249d6c(0x234)+_0x522d35);}return null;}#saveETag(_0x17387b,_0x5ec49c){const _0x128f09=a111_0x4533ed,_0x324001={};_0x324001[_0x128f09(0x201)]=_0x128f09(0x24a);const _0x218712=_0x324001;if(!_0x5ec49c)return;try{const _0x662f5b=this.#getETagPath(_0x17387b);fs[_0x128f09(0x25b)](_0x662f5b,_0x5ec49c),logger['debug'](_0x218712[_0x128f09(0x201)]);}catch(_0x25a6db){logger[_0x128f09(0x1ee)](_0x128f09(0x278)+_0x25a6db);}}async #handleBinaryDownload(_0x1bc45a,_0x57f09c,_0x58931e){const _0x1d2735=a111_0x4533ed,_0x3fcf8a={};_0x3fcf8a['KVscN']=_0x1d2735(0x280);const _0x373982=_0x3fcf8a,_0x2ba673=await this[_0x1d2735(0x218)](_0x1bc45a['binaryPath']);if(!_0x2ba673){logger[_0x1d2735(0x216)](_0x373982[_0x1d2735(0x1fa)]);const _0x31b0b6=await this[_0x1d2735(0x21c)](_0x57f09c,_0x58931e);return _0x31b0b6[_0x1d2735(0x272)];}return _0x1bc45a[_0x1d2735(0x272)];}async[a111_0x4533ed(0x26a)](_0x3549c3){const _0x12bf45=a111_0x4533ed,_0x43546b={};_0x43546b[_0x12bf45(0x264)]=_0x12bf45(0x21f),_0x43546b[_0x12bf45(0x203)]=_0x12bf45(0x1eb);const _0x36d160=_0x43546b,_0x148a9f=this.#getAvailableDirs(),_0x2e0951=path[_0x12bf45(0x236)](_0x148a9f,this.#binaryName);if(this.#checkPath(_0x2e0951,fs['X_OK'])){const _0x2eef4c=this.#loadETag(_0x148a9f);if(_0x2eef4c)try{const _0x49da7=await this[_0x12bf45(0x21c)](_0x3549c3,_0x148a9f,_0x2eef4c);if(!_0x49da7[_0x12bf45(0x1fb)])return logger['debug'](_0x36d160[_0x12bf45(0x264)]),_0x2e0951;return logger['debug'](_0x36d160['hKWiU']),await this.#handleBinaryDownload(_0x49da7,_0x3549c3,_0x148a9f);}catch(_0x1d8d78){return logger['warn'](_0x12bf45(0x22c)+_0x1d8d78),_0x2e0951;}}const _0x22c110=await this['download'](_0x3549c3,_0x148a9f);return await this.#handleBinaryDownload(_0x22c110,_0x3549c3,_0x148a9f);}[a111_0x4533ed(0x21c)](_0x4bb05f,_0x2f90dc,_0x501fc2=null){const _0x2e79f3=a111_0x4533ed,_0x2c56c8={'VnUbd':function(_0xb3197d,_0xcfbcfe){return _0xb3197d(_0xcfbcfe);},'sxcrO':function(_0x5aa81a,_0x325258){return _0x5aa81a===_0x325258;},'Hsmdv':_0x2e79f3(0x216),'LhHec':_0x2e79f3(0x269),'yxopi':function(_0x1ff3cc,_0x252bda){return _0x1ff3cc+_0x252bda;},'DfQyR':_0x2e79f3(0x223)};_0x2f90dc&&!this.#checkPath(_0x2f90dc)&&fs['mkdirSync'](_0x2f90dc);const _0x17defe=this.#binaryName,_0x5503e9=path[_0x2e79f3(0x236)](_0x2f90dc,_0x2c56c8[_0x2e79f3(0x1e9)](_0x17defe,_0x2c56c8[_0x2e79f3(0x1f9)])),_0x3495f3=fs[_0x2e79f3(0x260)](_0x5503e9),_0x47b957=url['parse'](this.#httpPath);if(_0x4bb05f[_0x2e79f3(0x1fe)]&&_0x4bb05f[_0x2e79f3(0x213)]){const _0x4df0b5={};_0x4df0b5[_0x2e79f3(0x1f4)]=_0x4bb05f[_0x2e79f3(0x1fe)],_0x4df0b5[_0x2e79f3(0x281)]=_0x4bb05f[_0x2e79f3(0x213)],_0x47b957[_0x2e79f3(0x231)]=new HttpsProxyAgent(_0x4df0b5);}if(_0x4bb05f[_0x2e79f3(0x238)])try{_0x47b957['ca']=fs[_0x2e79f3(0x211)](_0x4bb05f[_0x2e79f3(0x238)]);}catch(_0x32fe1b){logger[_0x2e79f3(0x216)]('Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20'+_0x32fe1b);}if(_0x501fc2){const _0x5992f2={};_0x5992f2[_0x2e79f3(0x220)]=_0x501fc2,_0x5992f2['Connection']=_0x2c56c8[_0x2e79f3(0x27a)],_0x47b957[_0x2e79f3(0x25e)]=_0x5992f2;}else{const _0x2c250b={};_0x2c250b[_0x2e79f3(0x274)]=_0x2c56c8[_0x2e79f3(0x27a)],_0x47b957[_0x2e79f3(0x25e)]=_0x2c250b;}return new Promise((_0x29730e,_0x5ac3d1)=>{const _0x4e13e9=_0x2e79f3,_0x52e37e={'VjMvu':function(_0x1f6f76,_0x1aafcf){const _0xa22fd9=a111_0x5d07;return _0x2c56c8[_0xa22fd9(0x1fc)](_0x1f6f76,_0x1aafcf);},'wPOfI':function(_0x1ff5a9,_0x39fd0f){const _0xe0ba47=a111_0x5d07;return _0x2c56c8[_0xe0ba47(0x27e)](_0x1ff5a9,_0x39fd0f);},'EHGol':_0x2c56c8[_0x4e13e9(0x207)],'ETDqX':_0x2c56c8[_0x4e13e9(0x27a)]};https[_0x4e13e9(0x24c)](_0x47b957,_0x2f0c73=>{const _0x9d37da=_0x4e13e9,_0x41518d={'XYNaG':function(_0x36f50e,_0x3ac242){const _0x147ef8=a111_0x5d07;return _0x52e37e[_0x147ef8(0x1ec)](_0x36f50e,_0x3ac242);}};if(_0x501fc2&&_0x52e37e['wPOfI'](_0x2f0c73[_0x9d37da(0x282)],0x130)){_0x3495f3[_0x9d37da(0x20e)]();const _0x192ed4={};_0x192ed4[_0x9d37da(0x1fb)]=![],_0x52e37e['VjMvu'](_0x29730e,_0x192ed4);return;}const _0x9a5a1a=_0x2f0c73[_0x9d37da(0x25e)][_0x9d37da(0x249)];_0x9a5a1a&&this.#saveETag(_0x2f90dc,_0x9a5a1a),_0x2f0c73[_0x9d37da(0x1f5)](_0x3495f3),_0x2f0c73['on'](_0x52e37e[_0x9d37da(0x245)],function(_0x40d86c){const _0x11f9a4=_0x9d37da;logger[_0x11f9a4(0x216)]('Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20'+_0x40d86c),_0x52e37e[_0x11f9a4(0x1ec)](_0x5ac3d1,_0x40d86c);}),_0x3495f3['on'](_0x52e37e['EHGol'],function(_0x87370a){const _0x426d9b=_0x9d37da;logger[_0x426d9b(0x216)](_0x426d9b(0x230)+_0x87370a),_0x41518d[_0x426d9b(0x233)](_0x5ac3d1,_0x87370a);}),_0x3495f3['on'](_0x52e37e[_0x9d37da(0x206)],()=>{const _0x275df4=_0x9d37da;this['extractAndSaveBinary'](_0x5503e9,_0x2f90dc)[_0x275df4(0x276)](_0xfaf147=>_0x29730e({'needsUpdate':!![],'binaryPath':_0xfaf147}))['catch'](_0x5ac3d1);});})['on'](_0x2c56c8[_0x4e13e9(0x207)],function(_0x165027){const _0x2bfe61=_0x4e13e9;logger[_0x2bfe61(0x216)](_0x2bfe61(0x228)+_0x165027),_0x52e37e[_0x2bfe61(0x1ec)](_0x5ac3d1,_0x165027);});});}[a111_0x4533ed(0x21a)](_0x1e447e,_0xf8bd52){const _0x1bc754=a111_0x4533ed,_0xe0ffc3={'tNYTm':function(_0x18c937,_0x31f53d){return _0x18c937(_0x31f53d);},'PCwXj':'0755','OjbkI':_0x1bc754(0x221),'FObqD':_0x1bc754(0x216),'djpoy':_0x1bc754(0x263),'PNeUO':function(_0x5c0dee,_0x228bed){return _0x5c0dee===_0x228bed;}},_0x4a7ce3=this.#binaryName,_0x5dc4bb=path[_0x1bc754(0x236)](_0xf8bd52,_0x4a7ce3);return new Promise((_0x27c6d5,_0x20984b)=>{const _0x34fa60=_0x1bc754,_0xc9f846={'ixEKq':function(_0x423294,_0x11eb2f){const _0x42839d=a111_0x5d07;return _0xe0ffc3[_0x42839d(0x270)](_0x423294,_0x11eb2f);},'Hezdt':_0xe0ffc3['djpoy'],'awCCx':function(_0x19b030,_0x3c0074){const _0x5cca36=a111_0x5d07;return _0xe0ffc3[_0x5cca36(0x271)](_0x19b030,_0x3c0074);}},_0x17a739={};_0x17a739[_0x34fa60(0x239)]=!![],yauzl[_0x34fa60(0x26c)](_0x1e447e,_0x17a739,function(_0x56e8dd,_0x5347cd){const _0x5d9918=_0x34fa60,_0x447ccf={'kLjVB':function(_0x22d16b,_0x2c4b7e){return _0xe0ffc3['tNYTm'](_0x22d16b,_0x2c4b7e);},'CKaKu':_0xe0ffc3[_0x5d9918(0x24d)]};_0x56e8dd&&_0xe0ffc3[_0x5d9918(0x270)](_0x20984b,_0x56e8dd),_0x5347cd[_0x5d9918(0x251)](),_0x5347cd['on'](_0xe0ffc3[_0x5d9918(0x26d)],_0x488bc3=>{const _0x4f19a4=_0x5d9918,_0x5bdf37={'pleZN':function(_0x184d7c,_0x6ea016){const _0x39135a=a111_0x5d07;return _0xc9f846[_0x39135a(0x202)](_0x184d7c,_0x6ea016);},'cMbQK':_0xc9f846[_0x4f19a4(0x1ea)]};if(/\/$/[_0x4f19a4(0x1ed)](_0x488bc3[_0x4f19a4(0x250)]))_0x5347cd[_0x4f19a4(0x251)]();else{const _0x44b670=fs[_0x4f19a4(0x260)](path['join'](_0xf8bd52,_0x488bc3[_0x4f19a4(0x250)]));_0x5347cd['openReadStream'](_0x488bc3,function(_0x2dff5a,_0x490e52){const _0xb1a287=_0x4f19a4;_0x2dff5a&&_0x5bdf37[_0xb1a287(0x241)](_0x20984b,_0x56e8dd),_0x490e52['on'](_0x5bdf37[_0xb1a287(0x242)],function(){const _0x3afb93=_0xb1a287;_0x44b670[_0x3afb93(0x269)](),_0x5347cd[_0x3afb93(0x251)]();}),_0x490e52[_0xb1a287(0x1f5)](_0x44b670);}),_0xc9f846[_0x4f19a4(0x222)](_0x488bc3[_0x4f19a4(0x250)],_0x4a7ce3)&&_0x5347cd[_0x4f19a4(0x269)]();}}),_0x5347cd['on'](_0xe0ffc3[_0x5d9918(0x226)],_0x1438d3=>{const _0x181605=_0x5d9918;_0xc9f846[_0x181605(0x202)](_0x20984b,_0x1438d3);}),_0x5347cd[_0x5d9918(0x244)](_0xe0ffc3['djpoy'],()=>{const _0x3d4473=_0x5d9918,_0xa025e6={'UlGnn':function(_0x1827c6,_0xf8c75d){const _0x57070e=a111_0x5d07;return _0x447ccf[_0x57070e(0x265)](_0x1827c6,_0xf8c75d);}};fs[_0x3d4473(0x26b)](_0x5dc4bb,_0x447ccf[_0x3d4473(0x22a)],function(_0x2ffa58){const _0x348f7a=_0x3d4473;_0x2ffa58&&_0xa025e6['UlGnn'](_0x20984b,_0x2ffa58),_0xa025e6[_0x348f7a(0x1f2)](_0x27c6d5,_0x5dc4bb);}),_0x5347cd[_0x3d4473(0x269)]();});});});}async['validateBinary'](_0x4652a1){const _0x1cec0f=a111_0x4533ed,_0x7273e5={'MiMMA':function(_0x2ba3ef,_0x3f9496){return _0x2ba3ef(_0x3f9496);},'yVHlc':function(_0x4617b8,_0xf74f6,_0x19a7c0,_0x166eec){return _0x4617b8(_0xf74f6,_0x19a7c0,_0x166eec);},'YquVv':_0x1cec0f(0x255),'dixvu':_0x1cec0f(0x25d),'RgMtt':_0x1cec0f(0x269)},_0x2a4e16=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x1200df,_0x134ced)=>{const _0x211586=_0x1cec0f,_0x16017f={'fnnMm':function(_0x147a4b,_0x43c7e6){return _0x7273e5['MiMMA'](_0x147a4b,_0x43c7e6);}},_0x59ee14={};_0x59ee14['env']=process['env'];const _0x14fc11=_0x7273e5[_0x211586(0x209)](spawn,_0x4652a1,[_0x7273e5[_0x211586(0x26e)]],_0x59ee14);_0x14fc11[_0x211586(0x1f0)]['on'](_0x7273e5['dixvu'],_0xa1facd=>{_0x2a4e16['test'](_0xa1facd)&&_0x7273e5['MiMMA'](_0x1200df,!![]);}),_0x14fc11['on'](_0x7273e5[_0x211586(0x20a)],()=>{_0x16017f['fnnMm'](_0x1200df,![]);});});}#homedir(){const _0x9e2556=a111_0x4533ed,_0x15ec07={};_0x15ec07[_0x9e2556(0x25a)]=function(_0x21dbe0,_0x21ba65){return _0x21dbe0===_0x21ba65;},_0x15ec07[_0x9e2556(0x25f)]=_0x9e2556(0x23b),_0x15ec07[_0x9e2556(0x261)]=function(_0x35ff90,_0x579e32){return _0x35ff90===_0x579e32;},_0x15ec07[_0x9e2556(0x229)]='win32',_0x15ec07[_0x9e2556(0x248)]=function(_0x244111,_0x5c9109){return _0x244111+_0x5c9109;},_0x15ec07[_0x9e2556(0x208)]=_0x9e2556(0x1ff),_0x15ec07[_0x9e2556(0x21e)]='/Users/',_0x15ec07[_0x9e2556(0x254)]=function(_0x5b7f51,_0x94ff1c){return _0x5b7f51===_0x94ff1c;},_0x15ec07[_0x9e2556(0x26f)]=_0x9e2556(0x232),_0x15ec07[_0x9e2556(0x247)]=_0x9e2556(0x227),_0x15ec07[_0x9e2556(0x210)]=function(_0x299cf6,_0x5cea45){return _0x299cf6+_0x5cea45;},_0x15ec07['qiwji']=_0x9e2556(0x279),_0x15ec07[_0x9e2556(0x252)]=function(_0x3336a0,_0x2d5a7d){return _0x3336a0||_0x2d5a7d;};const _0xa7ae3f=_0x15ec07;if(_0xa7ae3f[_0x9e2556(0x25a)](typeof os[_0x9e2556(0x27d)],_0xa7ae3f[_0x9e2556(0x25f)]))return os['homedir']();const _0x57d781=process[_0x9e2556(0x21d)],_0x4e2e0c=_0x57d781[_0x9e2556(0x258)],_0x46ab71=_0x57d781[_0x9e2556(0x217)]||_0x57d781[_0x9e2556(0x219)]||_0x57d781[_0x9e2556(0x1f1)]||_0x57d781[_0x9e2556(0x237)];if(_0xa7ae3f[_0x9e2556(0x261)](process[_0x9e2556(0x20b)],_0xa7ae3f[_0x9e2556(0x229)]))return _0x57d781[_0x9e2556(0x235)]||_0xa7ae3f[_0x9e2556(0x248)](_0x57d781['HOMEDRIVE'],_0x57d781[_0x9e2556(0x27c)])||_0x4e2e0c||null;if(_0xa7ae3f['cZWgy'](process['platform'],_0xa7ae3f['cMwRf']))return _0x4e2e0c||(_0x46ab71?_0xa7ae3f[_0x9e2556(0x248)](_0xa7ae3f[_0x9e2556(0x21e)],_0x46ab71):null);if(_0xa7ae3f['dOwnj'](process[_0x9e2556(0x20b)],_0xa7ae3f[_0x9e2556(0x26f)]))return _0x4e2e0c||(_0xa7ae3f[_0x9e2556(0x254)](process[_0x9e2556(0x257)](),0x0)?_0xa7ae3f[_0x9e2556(0x247)]:_0x46ab71?_0xa7ae3f[_0x9e2556(0x210)](_0xa7ae3f['qiwji'],_0x46ab71):null);return _0xa7ae3f[_0x9e2556(0x252)](_0x4e2e0c,null);}}function a111_0x5d07(_0x1459fe,_0x4e8dc2){const _0x2ee9ef=a111_0x2ee9();return a111_0x5d07=function(_0x5d0729,_0xd6b451){_0x5d0729=_0x5d0729-0x1e9;let _0x1a564d=_0x2ee9ef[_0x5d0729];return _0x1a564d;},a111_0x5d07(_0x1459fe,_0x4e8dc2);}module['exports']=PercyBinary;
|
|
1
|
+
const a111_0x50f1fe=a111_0x2e7a;function a111_0x2e7a(_0x3c690c,_0x4ca835){const _0x1c2d64=a111_0x1c2d();return a111_0x2e7a=function(_0x2e7a8d,_0x5735be){_0x2e7a8d=_0x2e7a8d-0x1e3;let _0x323baf=_0x1c2d64[_0x2e7a8d];return _0x323baf;},a111_0x2e7a(_0x3c690c,_0x4ca835);}(function(_0x37ed67,_0x1b00c6){const _0x6887ba=a111_0x2e7a,_0x3624d8=_0x37ed67();while(!![]){try{const _0x3481eb=parseInt(_0x6887ba(0x229))/0x1+parseInt(_0x6887ba(0x23d))/0x2*(parseInt(_0x6887ba(0x217))/0x3)+-parseInt(_0x6887ba(0x23a))/0x4*(parseInt(_0x6887ba(0x252))/0x5)+-parseInt(_0x6887ba(0x1fe))/0x6+parseInt(_0x6887ba(0x208))/0x7+-parseInt(_0x6887ba(0x24f))/0x8*(-parseInt(_0x6887ba(0x256))/0x9)+parseInt(_0x6887ba(0x20f))/0xa;if(_0x3481eb===_0x1b00c6)break;else _0x3624d8['push'](_0x3624d8['shift']());}catch(_0x17274e){_0x3624d8['push'](_0x3624d8['shift']());}}}(a111_0x1c2d,0x309e3));const {https}=require('follow-redirects'),url=require(a111_0x50f1fe(0x1e8)),yauzl=require(a111_0x50f1fe(0x1f1)),fs=require('fs'),path=require(a111_0x50f1fe(0x230)),os=require('os'),{spawn}=require(a111_0x50f1fe(0x21a)),HttpsProxyAgent=require(a111_0x50f1fe(0x224)),logger=require(a111_0x50f1fe(0x24b))[a111_0x50f1fe(0x25a)];function a111_0x1c2d(){const _0x13bfd9=['0755','HwcAB','UIPtY','gTdbb','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20','X_OK','xGAgF','lxODp','/root','2541210zbnkju','jQxGh','trim','pipe','download','agent','proxyPort','1330060LdqBHb','UMdBM','undefined','openReadStream','igRhM','HOMEDRIVE','If-None-Match','utf8','156xLTmur','JeQXs','--version','child_process','host','destroy','.zip','BuOqm','hggCh','binaryPath','LOGNAME','https://github.com/percy/cli/releases/latest/download','LNAME','https-proxy-agent','cwd','GPGWx','HaIzN','Saved\x20new\x20ETag\x20for\x20percy\x20binary','228714UzTvAF','entry','vKuTq','needsUpdate','Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20','statSync','linux','path','TFWzj','env','WaDIY','KBfIT','R_OK','PGEoB','stdout','QoqTb','HOME','729028DnsxyX','validateBinary','lFVKg','7476ESuZVC','etag','USERPROFILE','lowNn','readEntry','cBoCe','exports','statusCode','headers','close','rerZw','GKKOY','warn','port','../logger','ytOhx','NFJGv','ZTEAy','168qdPeii','USER','once','10MPlNqu','gdmaK','nkrCZ','fileName','7893LNqDnj','readFileSync','writeFileSync','Connection','winstonLogger','KQWay','join','EsNri','REumb','Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying','JbVef','wSfvQ','percy.exe','Svubq','OqzLW','ZChEX','fNOcQ','chmod','tmpdir','extractAndSaveBinary','ePSmu','platform','function','debug','cUXoR','/Users/','Error\x20trying\x20to\x20download\x20percy\x20binary','accessSync','end','Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)','parse','useCaCertificate','test','jMjix','.browserstack','match','.etag','mtILC','PVOQy','SIgRo','GJIvz','W_OK','mkdirSync','url','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20','error','createWriteStream','tJyZY','Failed\x20to\x20save\x20ETag\x20file:\x20','rRLyw','RlLyp','NjaDn','yauzl','length','pYoec','YsQmJ','WAInd','JQsne','lCRig','KXlZZ','KUMXf','homedir','USERNAME','HIvTc','proxyHost','2243340IMkTtP'];a111_0x1c2d=function(){return _0x13bfd9;};return a111_0x1c2d();}class PercyBinary{#hostOS=process[a111_0x50f1fe(0x26b)];#httpPath=null;#binaryName='percy';#orderedPaths=[path[a111_0x50f1fe(0x25c)](this.#homedir(),a111_0x50f1fe(0x278)),process[a111_0x50f1fe(0x225)](),os[a111_0x50f1fe(0x268)]()];constructor(){const _0x375e01=a111_0x50f1fe,_0x5128d9={};_0x5128d9[_0x375e01(0x242)]=_0x375e01(0x222),_0x5128d9[_0x375e01(0x238)]=function(_0x2d6273,_0x345b99){return _0x2d6273+_0x345b99;},_0x5128d9['REumb']='/percy-osx.zip',_0x5128d9[_0x375e01(0x27b)]=function(_0x1bf37c,_0x50e6f1){return _0x1bf37c+_0x50e6f1;},_0x5128d9[_0x375e01(0x25d)]='/percy-win.zip',_0x5128d9['RUxyN']=_0x375e01(0x262),_0x5128d9[_0x375e01(0x226)]='/percy-linux.zip';const _0x2afb13=_0x5128d9,_0x2f4218=_0x2afb13[_0x375e01(0x242)];if(this.#hostOS[_0x375e01(0x279)](/darwin|mac os/i))this.#httpPath=_0x2afb13['QoqTb'](_0x2f4218,_0x2afb13[_0x375e01(0x25e)]);else this.#hostOS['match'](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x2afb13[_0x375e01(0x27b)](_0x2f4218,_0x2afb13[_0x375e01(0x25d)]),this.#binaryName=_0x2afb13['RUxyN']):this.#httpPath=_0x2afb13[_0x375e01(0x27b)](_0x2f4218,_0x2afb13[_0x375e01(0x226)]);}#getAvailableDirs(){const _0x62bd14=a111_0x50f1fe,_0x4a714d={};_0x4a714d[_0x62bd14(0x22b)]=function(_0x19c2e0,_0x116967){return _0x19c2e0<_0x116967;},_0x4a714d['qRrme']=_0x62bd14(0x270);const _0x34c074=_0x4a714d;for(var _0xe70b18=0x0;_0x34c074[_0x62bd14(0x22b)](_0xe70b18,this.#orderedPaths[_0x62bd14(0x1f2)]);_0xe70b18++){var _0x5bc1c3=this.#orderedPaths[_0xe70b18];if(this.#makePath(_0x5bc1c3))return _0x5bc1c3;}throw new Error(_0x34c074['qRrme']);}#makePath(_0x156c1a){const _0x5a04e4=a111_0x50f1fe;try{return _0x156c1a&&!this.#checkPath(_0x156c1a)&&fs[_0x5a04e4(0x1e7)](_0x156c1a),!![];}catch{return![];}}#checkPath(_0xbd7d07,_0x3dcffb){const _0x45e752=a111_0x50f1fe,_0x52061b={};_0x52061b[_0x45e752(0x26a)]=function(_0x1f9138,_0x421208){return _0x1f9138|_0x421208;},_0x52061b['HwcAB']=function(_0x3cfe34,_0x176944){return _0x3cfe34!==_0x176944;},_0x52061b[_0x45e752(0x1e5)]=_0x45e752(0x211);const _0x18171d=_0x52061b;_0x3dcffb=_0x3dcffb||_0x18171d['ePSmu'](fs[_0x45e752(0x235)],fs[_0x45e752(0x1e6)]);try{return fs['accessSync'](_0xbd7d07,_0x3dcffb),!![];}catch(_0xa0ceb4){if(_0x18171d[_0x45e752(0x200)](typeof fs[_0x45e752(0x271)],_0x18171d[_0x45e752(0x1e5)]))return![];try{return fs[_0x45e752(0x22e)](_0xbd7d07),!![];}catch(_0x4df83f){return![];}}}#getETagPath(_0x172395){const _0x52eed0=a111_0x50f1fe;return path[_0x52eed0(0x25c)](_0x172395,this.#binaryName+_0x52eed0(0x27a));}#loadETag(_0x3c8bd4){const _0x587f78=a111_0x50f1fe,_0x288573={};_0x288573['JbVef']=_0x587f78(0x216);const _0x2dfa3e=_0x288573,_0x27dc87=this.#getETagPath(_0x3c8bd4);if(this.#checkPath(_0x27dc87))try{return fs[_0x587f78(0x257)](_0x27dc87,_0x2dfa3e[_0x587f78(0x260)])[_0x587f78(0x20a)]();}catch(_0x55adc2){logger[_0x587f78(0x249)]('Failed\x20to\x20read\x20ETag\x20file:\x20'+_0x55adc2);}return null;}#saveETag(_0x1781db,_0x283a3d){const _0x1462a4=a111_0x50f1fe,_0x4d81ac={};_0x4d81ac[_0x1462a4(0x1f6)]=_0x1462a4(0x228);const _0x23d535=_0x4d81ac;if(!_0x283a3d)return;try{const _0x23ce17=this.#getETagPath(_0x1781db);fs[_0x1462a4(0x258)](_0x23ce17,_0x283a3d),logger[_0x1462a4(0x26d)](_0x23d535[_0x1462a4(0x1f6)]);}catch(_0x211964){logger['warn'](_0x1462a4(0x1ed)+_0x211964);}}async #handleBinaryDownload(_0x5a9a3a,_0x598d02,_0x478e15){const _0x1c56e1=a111_0x50f1fe,_0x2db81e={};_0x2db81e[_0x1c56e1(0x266)]=_0x1c56e1(0x25f);const _0x3b825d=_0x2db81e,_0x43a08d=await this[_0x1c56e1(0x23b)](_0x5a9a3a[_0x1c56e1(0x220)]);if(!_0x43a08d){logger[_0x1c56e1(0x1ea)](_0x3b825d[_0x1c56e1(0x266)]);const _0x597c12=await this['download'](_0x598d02,_0x478e15);return _0x597c12['binaryPath'];}return _0x5a9a3a[_0x1c56e1(0x220)];}async['getBinaryPath'](_0x3fffc2){const _0x495ea2=a111_0x50f1fe,_0x8d30d={};_0x8d30d[_0x495ea2(0x210)]=_0x495ea2(0x273),_0x8d30d['nkrCZ']='New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update';const _0x104c69=_0x8d30d,_0x35ef64=this.#getAvailableDirs(),_0x560401=path[_0x495ea2(0x25c)](_0x35ef64,this.#binaryName);if(this.#checkPath(_0x560401,fs[_0x495ea2(0x204)])){const _0x2e8225=this.#loadETag(_0x35ef64);if(_0x2e8225)try{const _0x8a89b2=await this[_0x495ea2(0x20c)](_0x3fffc2,_0x35ef64,_0x2e8225);if(!_0x8a89b2[_0x495ea2(0x22c)])return logger[_0x495ea2(0x26d)](_0x104c69[_0x495ea2(0x210)]),_0x560401;return logger[_0x495ea2(0x26d)](_0x104c69[_0x495ea2(0x254)]),await this.#handleBinaryDownload(_0x8a89b2,_0x3fffc2,_0x35ef64);}catch(_0x1fef8d){return logger[_0x495ea2(0x249)](_0x495ea2(0x22d)+_0x1fef8d),_0x560401;}}const _0x3e2462=await this[_0x495ea2(0x20c)](_0x3fffc2,_0x35ef64);return await this.#handleBinaryDownload(_0x3e2462,_0x3fffc2,_0x35ef64);}[a111_0x50f1fe(0x20c)](_0xdb0945,_0x332ac9,_0xa97f9f=null){const _0x3a2579=a111_0x50f1fe,_0x3938da={'RlLyp':function(_0x6499f0,_0x2746f1){return _0x6499f0===_0x2746f1;},'Svubq':function(_0x61507d,_0x2ec9d8){return _0x61507d(_0x2ec9d8);},'jQxGh':'error','KUMXf':_0x3a2579(0x246),'KBfIT':function(_0x427adf,_0x536093){return _0x427adf(_0x536093);},'jMjix':function(_0x2a04e9,_0x23a460){return _0x2a04e9(_0x23a460);},'wSfvQ':function(_0xcf7125,_0x6ed2dd){return _0xcf7125+_0x6ed2dd;},'yzgHT':_0x3a2579(0x21d)};_0x332ac9&&!this.#checkPath(_0x332ac9)&&fs['mkdirSync'](_0x332ac9);const _0x2f1fea=this.#binaryName,_0x47755e=path[_0x3a2579(0x25c)](_0x332ac9,_0x3938da[_0x3a2579(0x261)](_0x2f1fea,_0x3938da['yzgHT'])),_0x29d48a=fs[_0x3a2579(0x1eb)](_0x47755e),_0x514fa5=url[_0x3a2579(0x274)](this.#httpPath);if(_0xdb0945[_0x3a2579(0x1fd)]&&_0xdb0945[_0x3a2579(0x20e)]){const _0x15557f={};_0x15557f[_0x3a2579(0x21b)]=_0xdb0945[_0x3a2579(0x1fd)],_0x15557f[_0x3a2579(0x24a)]=_0xdb0945[_0x3a2579(0x20e)],_0x514fa5[_0x3a2579(0x20d)]=new HttpsProxyAgent(_0x15557f);}if(_0xdb0945[_0x3a2579(0x275)])try{_0x514fa5['ca']=fs[_0x3a2579(0x257)](_0xdb0945[_0x3a2579(0x275)]);}catch(_0x31fa01){logger[_0x3a2579(0x1ea)]('Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20'+_0x31fa01);}if(_0xa97f9f){const _0x4dc65d={};_0x4dc65d[_0x3a2579(0x215)]=_0xa97f9f,_0x4dc65d[_0x3a2579(0x259)]=_0x3938da[_0x3a2579(0x1f9)],_0x514fa5['headers']=_0x4dc65d;}else{const _0x19762b={};_0x19762b[_0x3a2579(0x259)]=_0x3938da[_0x3a2579(0x1f9)],_0x514fa5[_0x3a2579(0x245)]=_0x19762b;}return new Promise((_0x205e4c,_0x37136b)=>{const _0x4e5497={'rerZw':function(_0x443afb,_0x39d08c){const _0x4d52d7=a111_0x2e7a;return _0x3938da[_0x4d52d7(0x234)](_0x443afb,_0x39d08c);},'NjaDn':function(_0x80d8a1,_0x14ce55){const _0x1e208b=a111_0x2e7a;return _0x3938da[_0x1e208b(0x277)](_0x80d8a1,_0x14ce55);}};https['get'](_0x514fa5,_0x4908a2=>{const _0x2dd1ca=a111_0x2e7a;if(_0xa97f9f&&_0x3938da[_0x2dd1ca(0x1ef)](_0x4908a2[_0x2dd1ca(0x244)],0x130)){_0x29d48a[_0x2dd1ca(0x21c)]();const _0x2fa7f5={};_0x2fa7f5[_0x2dd1ca(0x22c)]=![],_0x3938da[_0x2dd1ca(0x263)](_0x205e4c,_0x2fa7f5);return;}const _0x3476cc=_0x4908a2[_0x2dd1ca(0x245)][_0x2dd1ca(0x23e)];_0x3476cc&&this.#saveETag(_0x332ac9,_0x3476cc),_0x4908a2[_0x2dd1ca(0x20b)](_0x29d48a),_0x4908a2['on'](_0x3938da[_0x2dd1ca(0x209)],function(_0x43a6a2){const _0x2d2bb8=_0x2dd1ca;logger['error'](_0x2d2bb8(0x203)+_0x43a6a2),_0x4e5497[_0x2d2bb8(0x247)](_0x37136b,_0x43a6a2);}),_0x29d48a['on'](_0x3938da['jQxGh'],function(_0xf2587e){const _0x25b48b=_0x2dd1ca;logger[_0x25b48b(0x1ea)]('Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20'+_0xf2587e),_0x4e5497[_0x25b48b(0x247)](_0x37136b,_0xf2587e);}),_0x29d48a['on'](_0x3938da['KUMXf'],()=>{const _0x569800=_0x2dd1ca;this[_0x569800(0x269)](_0x47755e,_0x332ac9)['then'](_0x4b04f=>_0x205e4c({'needsUpdate':!![],'binaryPath':_0x4b04f}))['catch'](_0x37136b);});})['on'](_0x3938da['jQxGh'],function(_0x3187d8){const _0x4e0b7d=a111_0x2e7a;logger[_0x4e0b7d(0x1ea)](_0x4e0b7d(0x1e9)+_0x3187d8),_0x4e5497[_0x4e0b7d(0x1f0)](_0x37136b,_0x3187d8);});});}[a111_0x50f1fe(0x269)](_0xfb024e,_0x262258){const _0x252d6b=a111_0x50f1fe,_0x10c28d={'UIPtY':function(_0xecd9f,_0x42078b){return _0xecd9f(_0x42078b);},'fxoOu':_0x252d6b(0x272),'HIvTc':function(_0x42e0c0,_0x532667){return _0x42e0c0===_0x532667;},'KQWay':function(_0x516a80,_0x3fd0cf){return _0x516a80(_0x3fd0cf);},'mTYIv':_0x252d6b(0x1ff),'BuOqm':function(_0x13c574,_0x2f86b4){return _0x13c574(_0x2f86b4);},'NFJGv':_0x252d6b(0x22a),'OqzLW':'error'},_0x5c8fb1=this.#binaryName,_0x4e4627=path[_0x252d6b(0x25c)](_0x262258,_0x5c8fb1);return new Promise((_0x3f0678,_0x406b2f)=>{const _0x2cc61e=_0x252d6b,_0x3ce6ef={'hggCh':function(_0x425760,_0x788fed){const _0x27ac34=a111_0x2e7a;return _0x10c28d[_0x27ac34(0x201)](_0x425760,_0x788fed);},'WaDIY':_0x10c28d['fxoOu'],'YsQmJ':function(_0x50ac28,_0x3f325b){const _0x193e8b=a111_0x2e7a;return _0x10c28d[_0x193e8b(0x1fc)](_0x50ac28,_0x3f325b);},'gdmaK':function(_0x3bbf7c,_0x50c339){const _0x562afe=a111_0x2e7a;return _0x10c28d[_0x562afe(0x25b)](_0x3bbf7c,_0x50c339);},'QDFqO':_0x10c28d['mTYIv'],'kQhqS':function(_0x25e854,_0x23ebc1){const _0x49902e=a111_0x2e7a;return _0x10c28d[_0x49902e(0x21e)](_0x25e854,_0x23ebc1);},'PVOQy':_0x10c28d[_0x2cc61e(0x24d)],'SIgRo':_0x10c28d[_0x2cc61e(0x264)]},_0x1509cf={};_0x1509cf['lazyEntries']=!![],yauzl['open'](_0xfb024e,_0x1509cf,function(_0x52074d,_0x2f5ea3){const _0x3fde49=_0x2cc61e,_0x75f34f={'rRLyw':function(_0x13b925,_0x59d33e){const _0x22a458=a111_0x2e7a;return _0x3ce6ef[_0x22a458(0x21f)](_0x13b925,_0x59d33e);},'pYoec':_0x3ce6ef[_0x3fde49(0x233)],'tJyZY':function(_0x106f78,_0x120bf1){const _0x1dd1e0=_0x3fde49;return _0x3ce6ef[_0x1dd1e0(0x1f4)](_0x106f78,_0x120bf1);},'lowNn':function(_0x3e259,_0x121f15){const _0x423bd0=_0x3fde49;return _0x3ce6ef[_0x423bd0(0x253)](_0x3e259,_0x121f15);},'KXlZZ':function(_0x3fcb46,_0x58ec8d){const _0xe63e0f=_0x3fde49;return _0x3ce6ef[_0xe63e0f(0x253)](_0x3fcb46,_0x58ec8d);},'lxODp':_0x3ce6ef['QDFqO']};_0x52074d&&_0x3ce6ef['kQhqS'](_0x406b2f,_0x52074d),_0x2f5ea3[_0x3fde49(0x241)](),_0x2f5ea3['on'](_0x3ce6ef[_0x3fde49(0x1e3)],_0x4a8d51=>{const _0x2dfd4d=_0x3fde49;if(/\/$/[_0x2dfd4d(0x276)](_0x4a8d51[_0x2dfd4d(0x255)]))_0x2f5ea3[_0x2dfd4d(0x241)]();else{const _0x307d0a=fs[_0x2dfd4d(0x1eb)](path[_0x2dfd4d(0x25c)](_0x262258,_0x4a8d51[_0x2dfd4d(0x255)]));_0x2f5ea3[_0x2dfd4d(0x212)](_0x4a8d51,function(_0x5146c2,_0x383c09){const _0x448f17=_0x2dfd4d;_0x5146c2&&_0x75f34f[_0x448f17(0x1ee)](_0x406b2f,_0x52074d),_0x383c09['on'](_0x75f34f[_0x448f17(0x1f3)],function(){const _0x3f20f5=_0x448f17;_0x307d0a[_0x3f20f5(0x246)](),_0x2f5ea3[_0x3f20f5(0x241)]();}),_0x383c09[_0x448f17(0x20b)](_0x307d0a);}),_0x75f34f[_0x2dfd4d(0x1ec)](_0x4a8d51[_0x2dfd4d(0x255)],_0x5c8fb1)&&_0x2f5ea3['close']();}}),_0x2f5ea3['on'](_0x3ce6ef[_0x3fde49(0x1e4)],_0x374153=>{_0x3ce6ef['hggCh'](_0x406b2f,_0x374153);}),_0x2f5ea3[_0x3fde49(0x251)](_0x3ce6ef[_0x3fde49(0x233)],()=>{const _0x53e47a=_0x3fde49;fs[_0x53e47a(0x267)](_0x4e4627,_0x75f34f[_0x53e47a(0x206)],function(_0x2b025c){const _0x9724b=_0x53e47a;_0x2b025c&&_0x75f34f[_0x9724b(0x240)](_0x406b2f,_0x2b025c),_0x75f34f[_0x9724b(0x1f8)](_0x3f0678,_0x4e4627);}),_0x2f5ea3[_0x53e47a(0x246)]();});});});}async[a111_0x50f1fe(0x23b)](_0x1e47f7){const _0x226489=a111_0x50f1fe,_0x362d92={'cUXoR':function(_0x308add,_0x4c174c){return _0x308add(_0x4c174c);},'ZTEAy':function(_0x56b685,_0x5150de,_0x830135,_0x54d147){return _0x56b685(_0x5150de,_0x830135,_0x54d147);},'GKKOY':_0x226489(0x219),'ZChEX':'data','lFVKg':_0x226489(0x246)},_0x3d9954=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x327b90,_0x45f56c)=>{const _0x52ca4b=_0x226489,_0x1bd496={'lCRig':function(_0x4862a8,_0x29c953){const _0x37875e=a111_0x2e7a;return _0x362d92[_0x37875e(0x26e)](_0x4862a8,_0x29c953);}},_0x4d9100={};_0x4d9100['env']=process[_0x52ca4b(0x232)];const _0x34d583=_0x362d92[_0x52ca4b(0x24e)](spawn,_0x1e47f7,[_0x362d92[_0x52ca4b(0x248)]],_0x4d9100);_0x34d583[_0x52ca4b(0x237)]['on'](_0x362d92[_0x52ca4b(0x265)],_0x30c420=>{const _0x18468f=_0x52ca4b;_0x3d9954[_0x18468f(0x276)](_0x30c420)&&_0x1bd496[_0x18468f(0x1f7)](_0x327b90,!![]);}),_0x34d583['on'](_0x362d92[_0x52ca4b(0x23c)],()=>{const _0x425f21=_0x52ca4b;_0x1bd496[_0x425f21(0x1f7)](_0x327b90,![]);});});}#homedir(){const _0xd61a68=a111_0x50f1fe,_0x31e6e1={};_0x31e6e1[_0xd61a68(0x227)]=function(_0xe348a5,_0x2696b6){return _0xe348a5===_0x2696b6;},_0x31e6e1[_0xd61a68(0x236)]=_0xd61a68(0x26c),_0x31e6e1[_0xd61a68(0x218)]='win32',_0x31e6e1[_0xd61a68(0x205)]=function(_0x2bfd11,_0x482a61){return _0x2bfd11+_0x482a61;},_0x31e6e1['gTdbb']='darwin',_0x31e6e1['vDyLP']=_0xd61a68(0x26f),_0x31e6e1[_0xd61a68(0x231)]=function(_0x5e23d5,_0x29dfc6){return _0x5e23d5===_0x29dfc6;},_0x31e6e1['igRhM']=_0xd61a68(0x22f),_0x31e6e1['WAInd']=_0xd61a68(0x207),_0x31e6e1['wdNJm']='/home/',_0x31e6e1['ytOhx']=function(_0xf2b6d4,_0xa408f6){return _0xf2b6d4||_0xa408f6;};const _0x356e8f=_0x31e6e1;if(_0x356e8f[_0xd61a68(0x227)](typeof os[_0xd61a68(0x1fa)],_0x356e8f[_0xd61a68(0x236)]))return os['homedir']();const _0x2d9fe8=process['env'],_0x3d8b9d=_0x2d9fe8[_0xd61a68(0x239)],_0x453633=_0x2d9fe8[_0xd61a68(0x221)]||_0x2d9fe8[_0xd61a68(0x250)]||_0x2d9fe8[_0xd61a68(0x223)]||_0x2d9fe8[_0xd61a68(0x1fb)];if(_0x356e8f['HaIzN'](process[_0xd61a68(0x26b)],_0x356e8f[_0xd61a68(0x218)]))return _0x2d9fe8[_0xd61a68(0x23f)]||_0x356e8f[_0xd61a68(0x205)](_0x2d9fe8[_0xd61a68(0x214)],_0x2d9fe8['HOMEPATH'])||_0x3d8b9d||null;if(_0x356e8f[_0xd61a68(0x227)](process[_0xd61a68(0x26b)],_0x356e8f[_0xd61a68(0x202)]))return _0x3d8b9d||(_0x453633?_0x356e8f[_0xd61a68(0x205)](_0x356e8f['vDyLP'],_0x453633):null);if(_0x356e8f[_0xd61a68(0x231)](process['platform'],_0x356e8f[_0xd61a68(0x213)]))return _0x3d8b9d||(_0x356e8f[_0xd61a68(0x231)](process['getuid'](),0x0)?_0x356e8f[_0xd61a68(0x1f5)]:_0x453633?_0x356e8f['xGAgF'](_0x356e8f['wdNJm'],_0x453633):null);return _0x356e8f[_0xd61a68(0x24c)](_0x3d8b9d,null);}}module[a111_0x50f1fe(0x243)]=PercyBinary;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a112_0x53be68=a112_0x1673;function a112_0x1673(_0x5a6da6,_0x59da3e){var _0xdea38f=a112_0xdea3();return a112_0x1673=function(_0x167336,_0x15222f){_0x167336=_0x167336-0x7c;var _0x21dc9a=_0xdea38f[_0x167336];return _0x21dc9a;},a112_0x1673(_0x5a6da6,_0x59da3e);}(function(_0x1ba5e5,_0x2740cc){var _0x48fc92=a112_0x1673,_0x434320=_0x1ba5e5();while(!![]){try{var _0x597603=parseInt(_0x48fc92(0x86))/0x1*(-parseInt(_0x48fc92(0x7f))/0x2)+parseInt(_0x48fc92(0x88))/0x3*(-parseInt(_0x48fc92(0x8a))/0x4)+parseInt(_0x48fc92(0x87))/0x5+parseInt(_0x48fc92(0x83))/0x6*(-parseInt(_0x48fc92(0x81))/0x7)+-parseInt(_0x48fc92(0x7c))/0x8*(parseInt(_0x48fc92(0x85))/0x9)+-parseInt(_0x48fc92(0x82))/0xa+-parseInt(_0x48fc92(0x7d))/0xb*(-parseInt(_0x48fc92(0x80))/0xc);if(_0x597603===_0x2740cc)break;else _0x434320['push'](_0x434320['shift']());}catch(_0x6ba90b){_0x434320['push'](_0x434320['shift']());}}}(a112_0xdea3,0x9baec));function a112_0xdea3(){var _0x500681=['3313280csOEBA','156UdQcwz','get','30904zXYQmd','8TPZvbL','33dzyfby','exports','2sVffWc','10821168SvxKEw','1934660hrJWFs','2371370TbqIHq','18JjIXCO','increment','2409948uVcaED','994471Hbzteg'];a112_0xdea3=function(){return _0x500681;};return a112_0xdea3();}class PercyCaptureMap{#map={};[a112_0x53be68(0x84)](_0xb0f2b7,_0x5ecb50){!this.#map[_0xb0f2b7]&&(this.#map[_0xb0f2b7]={}),!this.#map[_0xb0f2b7][_0x5ecb50]&&(this.#map[_0xb0f2b7][_0x5ecb50]=0x0),this.#map[_0xb0f2b7][_0x5ecb50]++;}['getName'](_0x5d140c,_0x1c6b8f){var _0x418bd0=a112_0x53be68;return _0x5d140c+'-'+_0x1c6b8f+'-'+this[_0x418bd0(0x89)](_0x5d140c,_0x1c6b8f);}[a112_0x53be68(0x89)](_0x2f5f17,_0x4a5587){if(!this.#map[_0x2f5f17])return 0x0;if(!this.#map[_0x2f5f17][_0x4a5587])return 0x0;return this.#map[_0x2f5f17][_0x4a5587];}}module[a112_0x53be68(0x7e)]=PercyCaptureMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a113_0x5e79fa=a113_0x1c8d;function a113_0xe6b2(){var _0x31e799=['manual','38708GTwWCa','36588UzcxPG','screenshot','28kEUrhB','takeScreenshot','3058317Zeqoby','72gBQmrP','30zATFXp','exports','1350mNIwEO','driver','element','8371392CKLITC','707856LgGTtm','56bStVNo','13YQICKn','3583877UxGHyE','click','360160WsvsiB','auto'];a113_0xe6b2=function(){return _0x31e799;};return a113_0xe6b2();}(function(_0x11fad7,_0x359923){var _0x221812=a113_0x1c8d,_0xfcbb91=_0x11fad7();while(!![]){try{var _0x1fa903=parseInt(_0x221812(0x106))/0x1*(-parseInt(_0x221812(0x100))/0x2)+-parseInt(_0x221812(0x10d))/0x3*(-parseInt(_0x221812(0x103))/0x4)+-parseInt(_0x221812(0x109))/0x5*(-parseInt(_0x221812(0x101))/0x6)+-parseInt(_0x221812(0x10e))/0x7*(-parseInt(_0x221812(0x112))/0x8)+parseInt(_0x221812(0x105))/0x9+parseInt(_0x221812(0x107))/0xa*(-parseInt(_0x221812(0x110))/0xb)+-parseInt(_0x221812(0x10c))/0xc*(parseInt(_0x221812(0x10f))/0xd);if(_0x1fa903===_0x359923)break;else _0xfcbb91['push'](_0xfcbb91['shift']());}catch(_0x31d8c4){_0xfcbb91['push'](_0xfcbb91['shift']());}}}(a113_0xe6b2,0xe2f24));function a113_0x1c8d(_0x19e1d2,_0x23e499){var _0xe6b20a=a113_0xe6b2();return a113_0x1c8d=function(_0x1c8de1,_0x5159da){_0x1c8de1=_0x1c8de1-0xff;var _0x1dc0f5=_0xe6b20a[_0x1c8de1];return _0x1dc0f5;},a113_0x1c8d(_0x19e1d2,_0x23e499);}var a113_0x419a70={};a113_0x419a70[a113_0x5e79fa(0x10a)]=[a113_0x5e79fa(0x104)],a113_0x419a70['element']=[a113_0x5e79fa(0x111),'sendKeys'];var a113_0x48b72a={};a113_0x48b72a['driver']=[a113_0x5e79fa(0x104)];var a113_0x91f745={};a113_0x91f745[a113_0x5e79fa(0x10b)]=[a113_0x5e79fa(0x111)];var a113_0x503103={};a113_0x503103[a113_0x5e79fa(0x113)]=a113_0x419a70,a113_0x503103[a113_0x5e79fa(0x102)]=a113_0x48b72a,a113_0x503103[a113_0x5e79fa(0x111)]=a113_0x91f745,a113_0x503103['testcase']={},a113_0x503103[a113_0x5e79fa(0xff)]={},module[a113_0x5e79fa(0x108)]=a113_0x503103;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a114_0xcc29(_0xe50ee2,_0x57bebb){const _0x16223b=a114_0x1622();return a114_0xcc29=function(_0xcc298a,_0x5032ee){_0xcc298a=_0xcc298a-0x1bf;let _0x2a82fd=_0x16223b[_0xcc298a];return _0x2a82fd;},a114_0xcc29(_0xe50ee2,_0x57bebb);}function a114_0x1622(){const _0x59a0e3=['141067ETrroT','length','6377270zCKbKi','SCREENSHOT','rpPrc','bTFAo','hScLA','axtpb','snapshot','winstonLogger','@percy/selenium-webdriver','3056711qJFmuy','ZZVhF','platformIndex','browserstackPlatformIndex','../performance/performance-tester','12vHCgMI','BPmLg','testCase','84yGEzDg','uuid','SNAPSHOT','browserstackPercyBestPlatform','screenshot','apply','11IbvKGk','4xGbjsL','143930vMFRKI','measure','thTestCaseExecutionId','name','3209520ErLIQp','SCREENSHOT_APP','1827477baGGHz','error','9819UNsRsk','csInR'];a114_0x1622=function(){return _0x59a0e3;};return a114_0x1622();}const a114_0x14c30e=a114_0xcc29;(function(_0x1d766c,_0x433786){const _0x2a5404=a114_0xcc29,_0x2b7cec=_0x1d766c();while(!![]){try{const _0x497aaa=-parseInt(_0x2a5404(0x1dc))/0x1*(-parseInt(_0x2a5404(0x1d1))/0x2)+-parseInt(_0x2a5404(0x1da))/0x3*(parseInt(_0x2a5404(0x1ca))/0x4)+-parseInt(_0x2a5404(0x1d2))/0x5*(-parseInt(_0x2a5404(0x1c7))/0x6)+-parseInt(_0x2a5404(0x1c2))/0x7+-parseInt(_0x2a5404(0x1d6))/0x8+parseInt(_0x2a5404(0x1d8))/0x9+parseInt(_0x2a5404(0x1de))/0xa*(parseInt(_0x2a5404(0x1d0))/0xb);if(_0x497aaa===_0x433786)break;else _0x2b7cec['push'](_0x2b7cec['shift']());}catch(_0x5bf841){_0x2b7cec['push'](_0x2b7cec['shift']());}}}(a114_0x1622,0x42de2));const tryRequire=function(_0x5b7e86,_0x215522){const _0x4d4ad6=a114_0xcc29,_0x2d4bfe={'hScLA':function(_0x10be29,_0x22393f){return _0x10be29(_0x22393f);}};try{return _0x2d4bfe[_0x4d4ad6(0x1e2)](require,_0x5b7e86);}catch{return _0x215522;}},percySnapshot=tryRequire(a114_0x14c30e(0x1c1),null),{percyScreenshot}=tryRequire(a114_0x14c30e(0x1c1),{}),percyAppScreenshot=require('@percy/appium-app'),{getCurrentTestData}=require('../../helpers/testhub/utils'),PerformanceTester=require(a114_0x14c30e(0x1c6)),{PERCY_EVENTS:PerformanceEvents}=require('../performance/constants'),logger=require('../logger')[a114_0x14c30e(0x1c0)];percySnapshot&&(exports[a114_0x14c30e(0x1bf)]=async function(){const _0x3cff56=a114_0x14c30e,_0x1ee4ff={'BPmLg':function(_0xd4cb82,_0x2a6151){return _0xd4cb82!==_0x2a6151;},'Oayif':function(_0x1c47dd,_0x3ece7c){return _0x1c47dd>=_0x3ece7c;},'rpPrc':function(_0x1a6d34){return _0x1a6d34();}};if(global['browserstackPlatformIndex']&&_0x1ee4ff[_0x3cff56(0x1c8)](global['browserstackPlatformIndex'],global[_0x3cff56(0x1cd)]))return;const _0x421bb3=_0x1ee4ff['Oayif'](arguments[_0x3cff56(0x1dd)],0x2)?arguments[0x1]:'',_0x4c0b89=_0x1ee4ff[_0x3cff56(0x1e0)](getCurrentTestData),_0x258a55={};return _0x258a55[_0x3cff56(0x1d5)]=_0x421bb3,_0x258a55[_0x3cff56(0x1c9)]=_0x4c0b89[_0x3cff56(0x1d5)]||'',_0x258a55['thTestCaseExecutionId']=_0x4c0b89[_0x3cff56(0x1cb)]||'',_0x258a55[_0x3cff56(0x1c4)]=global['browserstackPlatformIndex'],await PerformanceTester[_0x3cff56(0x1d3)](PerformanceEvents[_0x3cff56(0x1cc)],()=>percySnapshot[_0x3cff56(0x1cf)](null,arguments),_0x258a55);});percyScreenshot?exports[a114_0x14c30e(0x1ce)]=async function(){const _0x4a12d5=a114_0x14c30e,_0x1aa355={'ZZVhF':function(_0x1e43de,_0x25d7e4){return _0x1e43de>=_0x25d7e4;},'uqqYA':function(_0x44b7d1){return _0x44b7d1();}},_0x5998bc=_0x1aa355[_0x4a12d5(0x1c3)](arguments['length'],0x2)?arguments[0x1]:'',_0x20f630=_0x1aa355['uqqYA'](getCurrentTestData),_0x532b4c={};return _0x532b4c[_0x4a12d5(0x1d5)]=_0x5998bc,_0x532b4c[_0x4a12d5(0x1c9)]=_0x20f630['name']||'',_0x532b4c[_0x4a12d5(0x1d4)]=_0x20f630[_0x4a12d5(0x1cb)]||'',_0x532b4c[_0x4a12d5(0x1c4)]=global[_0x4a12d5(0x1c5)],await PerformanceTester[_0x4a12d5(0x1d3)](PerformanceEvents[_0x4a12d5(0x1df)],()=>percyScreenshot['apply'](null,arguments),_0x532b4c);}:exports[a114_0x14c30e(0x1ce)]=()=>{const _0x23f76d=a114_0x14c30e,_0x270c05={};_0x270c05[_0x23f76d(0x1e1)]='Unsupported\x20driver\x20for\x20percy';const _0x11ef40=_0x270c05;logger[_0x23f76d(0x1d9)](_0x11ef40[_0x23f76d(0x1e1)]);};exports['screenshotApp']=async function(){const _0x4c0ffa=a114_0x14c30e,_0x518acc={'axtpb':function(_0x141376,_0x5d7a03){return _0x141376>=_0x5d7a03;},'csInR':function(_0x5247bb){return _0x5247bb();}},_0x4fc3ea=_0x518acc[_0x4c0ffa(0x1e3)](arguments[_0x4c0ffa(0x1dd)],0x2)?arguments[0x1]:'',_0x3f9a9f=_0x518acc[_0x4c0ffa(0x1db)](getCurrentTestData),_0x1fba0f={};return _0x1fba0f[_0x4c0ffa(0x1d5)]=_0x4fc3ea,_0x1fba0f[_0x4c0ffa(0x1c9)]=_0x3f9a9f[_0x4c0ffa(0x1d5)]||'',_0x1fba0f[_0x4c0ffa(0x1d4)]=_0x3f9a9f[_0x4c0ffa(0x1cb)]||'',_0x1fba0f[_0x4c0ffa(0x1c4)]=global['browserstackPlatformIndex'],await PerformanceTester[_0x4c0ffa(0x1d3)](PerformanceEvents[_0x4c0ffa(0x1d7)],()=>percyAppScreenshot[_0x4c0ffa(0x1cf)](null,arguments),_0x1fba0f);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a115_0x7a8d47=a115_0x57ed;(function(_0x2af974,_0x32ea51){var _0x5f027a=a115_0x57ed,_0x310b5c=_0x2af974();while(!![]){try{var _0x581e93=-parseInt(_0x5f027a(0x12a))/0x1+-parseInt(_0x5f027a(0x128))/0x2*(parseInt(_0x5f027a(0x123))/0x3)+parseInt(_0x5f027a(0x124))/0x4*(-parseInt(_0x5f027a(0x129))/0x5)+-parseInt(_0x5f027a(0x122))/0x6+-parseInt(_0x5f027a(0x127))/0x7+-parseInt(_0x5f027a(0x120))/0x8+parseInt(_0x5f027a(0x121))/0x9;if(_0x581e93===_0x32ea51)break;else _0x310b5c['push'](_0x310b5c['shift']());}catch(_0x2195bc){_0x310b5c['push'](_0x310b5c['shift']());}}}(a115_0x5365,0xbef2a),module[a115_0x7a8d47(0x125)]=require(a115_0x7a8d47(0x126)));function a115_0x57ed(_0xea2db9,_0x37898f){var _0x5365a0=a115_0x5365();return a115_0x57ed=function(_0x57ed25,_0x43442d){_0x57ed25=_0x57ed25-0x120;var _0x1980ec=_0x5365a0[_0x57ed25];return _0x1980ec;},a115_0x57ed(_0xea2db9,_0x37898f);}function a115_0x5365(){var _0x27a7e1=['3pFRucw','4snDwXI','exports','./Percy','4074112lWvJaH','2080424bcYECo','1614005bfWvUc','1425986lXwvIr','5173464IUaasS','51630030HNJYSx','5621100dDRcBX'];a115_0x5365=function(){return _0x27a7e1;};return a115_0x5365();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a116_0xcb0365=a116_0x56b6;(function(_0x5a9317,_0x5a8bdd){const _0x49df1e=a116_0x56b6,_0x4208b4=_0x5a9317();while(!![]){try{const _0x358b59=-parseInt(_0x49df1e(0x175))/0x1+parseInt(_0x49df1e(0x178))/0x2+parseInt(_0x49df1e(0x159))/0x3*(-parseInt(_0x49df1e(0x148))/0x4)+-parseInt(_0x49df1e(0x139))/0x5+-parseInt(_0x49df1e(0x171))/0x6*(parseInt(_0x49df1e(0x15b))/0x7)+parseInt(_0x49df1e(0x16e))/0x8+-parseInt(_0x49df1e(0x149))/0x9*(-parseInt(_0x49df1e(0x14d))/0xa);if(_0x358b59===_0x5a8bdd)break;else _0x4208b4['push'](_0x4208b4['shift']());}catch(_0x146c4d){_0x4208b4['push'](_0x4208b4['shift']());}}}(a116_0xa8ab,0xd4918));function a116_0x56b6(_0x463936,_0x19c1b2){const _0xa8ab40=a116_0xa8ab();return a116_0x56b6=function(_0x56b6d2,_0x4656fb){_0x56b6d2=_0x56b6d2-0x138;let _0x243150=_0xa8ab40[_0x56b6d2];return _0x243150;},a116_0x56b6(_0x463936,_0x19c1b2);}const Percy=require(a116_0xcb0365(0x165)),PercySDK=require(a116_0xcb0365(0x169)),PercyCaptureModes=require(a116_0xcb0365(0x13c)),PercyCaptureMap=require(a116_0xcb0365(0x157)),logger=require(a116_0xcb0365(0x16d))[a116_0xcb0365(0x170)],helper=require(a116_0xcb0365(0x176)),PerformanceTester=require(a116_0xcb0365(0x15e)),{PERCY_EVENTS:PerformanceEvents}=require(a116_0xcb0365(0x180));exports[a116_0xcb0365(0x168)]=PerformanceTester[a116_0xcb0365(0x144)](PerformanceEvents['START'],async _0x583a41=>{const _0x178c08=a116_0xcb0365,_0x4995ee={};_0x4995ee[_0x178c08(0x146)]=_0x178c08(0x145);const _0x2af0f7=_0x4995ee;logger[_0x178c08(0x14e)](_0x2af0f7['QyuPk']);const _0x1f0557=new Percy(_0x583a41),_0x4b84db=await _0x1f0557[_0x178c08(0x13b)]();if(_0x4b84db)return _0x1f0557;return null;}),exports[a116_0xcb0365(0x172)]=PerformanceTester[a116_0xcb0365(0x144)](PerformanceEvents[a116_0xcb0365(0x174)],async _0x5200c9=>{const _0x2b7a1c=a116_0xcb0365,_0xae68c={};_0xae68c[_0x2b7a1c(0x154)]=_0x2b7a1c(0x17f);const _0x128a00=_0xae68c;return logger[_0x2b7a1c(0x14e)](_0x128a00[_0x2b7a1c(0x154)]),_0x5200c9[_0x2b7a1c(0x156)]();}),exports[a116_0xcb0365(0x17b)]=_0x133f02=>{const _0x18cb49=a116_0xcb0365,_0x1ccbb2={};_0x1ccbb2[_0x18cb49(0x142)]=function(_0x3e212f,_0x3a4e30){return _0x3e212f<_0x3a4e30;};const _0x4f5813=_0x1ccbb2,_0x2b87fe={};_0x2b87fe['chrome']=0x0,_0x2b87fe['firefox']=0x1,_0x2b87fe[_0x18cb49(0x167)]=0x2,_0x2b87fe['safari']=0x3;const _0x1c9e1a=_0x2b87fe;return _0x133f02[_0x18cb49(0x13f)]((_0xffdf37,_0xc65560,_0x5c0db8)=>{const _0x2de5ee=_0x18cb49,_0x45d0a7=_0x133f02[_0xffdf37];if(_0xc65560[_0x2de5ee(0x14f)])return _0xffdf37;if(_0x45d0a7[_0x2de5ee(0x14f)])return _0x5c0db8;const _0x163674=_0xc65560[_0x2de5ee(0x15f)]?_0xc65560[_0x2de5ee(0x15f)]:_0xc65560[_0x2de5ee(0x164)];if(_0x163674&&_0x4f5813['wbFcw'](_0x1c9e1a[_0x163674[_0x2de5ee(0x161)]()],_0x1c9e1a[_0x163674[_0x2de5ee(0x161)]()]))return _0x5c0db8;return _0xffdf37;},0x0);},exports[a116_0xcb0365(0x143)]=PerformanceTester['measureWrapper'](PerformanceEvents['AUTO_CAPTURE'],async(_0x43639c,_0x139e10,_0x54cb42)=>{const _0x1d8751=a116_0xcb0365,_0x290a81={};_0x290a81[_0x1d8751(0x138)]=_0x1d8751(0x17c);const _0x382310=_0x290a81,_0x2a68bc=_0x43639c[_0x1d8751(0x150)];if(helper['isUndefined'](_0x43639c[_0x1d8751(0x162)])){logger[_0x1d8751(0x14e)](_0x382310[_0x1d8751(0x138)]);return;}const _0x19d4bd=_0x2a68bc['getName'](_0x43639c[_0x1d8751(0x162)],_0x139e10);_0x54cb42['app']?await PercySDK[_0x1d8751(0x163)](_0x43639c,_0x19d4bd):await PercySDK['screenshot'](_0x43639c,_0x19d4bd),_0x2a68bc[_0x1d8751(0x17a)](_0x43639c[_0x1d8751(0x162)],_0x139e10);}),exports['patchDriverPercy']=(_0x3151a2,_0x1671bb,_0x4432c6)=>{const _0x2701fe=a116_0xcb0365,_0x43c9ca={};_0x43c9ca[_0x2701fe(0x17d)]='browserStackPercyOptions',_0x43c9ca[_0x2701fe(0x15d)]=_0x2701fe(0x166),_0x43c9ca[_0x2701fe(0x16c)]=function(_0x13c563,_0x5768ca){return _0x13c563!==_0x5768ca;},_0x43c9ca[_0x2701fe(0x158)]=_0x2701fe(0x15c);const _0x552f42=_0x43c9ca;if(!helper[_0x2701fe(0x179)](_0x4432c6,[_0x552f42['uvwgL'],_0x552f42[_0x2701fe(0x15d)]]))return;if(_0x4432c6[_0x2701fe(0x155)][_0x2701fe(0x166)]&&_0x4432c6['browserStackPercyOptions'][_0x2701fe(0x153)]&&_0x552f42[_0x2701fe(0x16c)](_0x4432c6[_0x2701fe(0x155)]['percyCaptureMode'],_0x552f42[_0x2701fe(0x158)])&&!_0x3151a2[_0x2701fe(0x150)]){global[_0x2701fe(0x162)]&&(_0x3151a2[_0x2701fe(0x162)]=global[_0x2701fe(0x162)]),_0x3151a2[_0x2701fe(0x150)]=new PercyCaptureMap();const _0x43f6cd=PercyCaptureModes[_0x4432c6['browserStackPercyOptions']['percyCaptureMode']];_0x43f6cd['driver']&&_0x43f6cd['driver'][_0x2701fe(0x13a)](_0x4cb7da=>this[_0x2701fe(0x13d)](_0x3151a2,_0x4cb7da,_0x4432c6)),_0x43f6cd[_0x2701fe(0x147)]&&_0x43f6cd[_0x2701fe(0x147)][_0x2701fe(0x13a)](_0x3a71e6=>{const _0x4aac19=_0x2701fe;if(_0x1671bb[_0x4aac19(0x160)][_0x4aac19(0x151)+_0x3a71e6])return;_0x1671bb[_0x4aac19(0x160)][_0x4aac19(0x151)+_0x3a71e6]=!![];const _0xf49a91=_0x1671bb['prototype'][_0x3a71e6];_0x1671bb[_0x4aac19(0x160)][_0x3a71e6]=async function(){const _0x22b883=_0x4aac19;let _0x458787=_0xf49a91['apply'](this,arguments);_0x458787&&_0x458787[_0x22b883(0x16b)]&&(_0x458787=await _0x458787);try{const _0x3bb998=this[_0x22b883(0x141)]();await exports[_0x22b883(0x143)](_0x3bb998,_0x3a71e6,_0x4432c6);}catch(_0x266bb1){logger[_0x22b883(0x15a)](_0x22b883(0x140)+_0x3a71e6+_0x22b883(0x14b)+_0x266bb1);}return _0x458787;};});}},exports[a116_0xcb0365(0x13d)]=function(_0x390f13,_0x55b8ca,_0x24c406){const _0x4ac808=a116_0xcb0365,_0x1ee942={};_0x1ee942[_0x4ac808(0x177)]=function(_0x1c1a4a,_0x63e480){return _0x1c1a4a+_0x63e480;},_0x1ee942[_0x4ac808(0x17e)]=_0x4ac808(0x151),_0x1ee942[_0x4ac808(0x14c)]='init';const _0x4d60fe=_0x1ee942,_0x2c44d6=_0x4d60fe[_0x4ac808(0x177)](_0x4d60fe['cPlih'],_0x55b8ca),_0x149d6d=_0x4d60fe['sAvzG'](_0x4d60fe[_0x4ac808(0x14c)],_0x55b8ca),_0x5081a0=this;if(_0x390f13[_0x2c44d6]||!_0x390f13[_0x55b8ca])return;_0x390f13[_0x2c44d6]=!![],_0x390f13[_0x149d6d]=_0x390f13[_0x55b8ca],_0x390f13[_0x55b8ca]=async()=>{const _0x325083=_0x4ac808;try{await _0x5081a0[_0x325083(0x143)](_0x390f13,_0x55b8ca,_0x24c406);}catch(_0x49006a){logger[_0x325083(0x15a)]('Error\x20patching\x20'+_0x55b8ca+'\x20for\x20percy\x20'+_0x49006a);}return await _0x390f13[_0x149d6d][_0x325083(0x173)](_0x390f13,arguments);};},exports[a116_0xcb0365(0x16f)]=_0x90f189=>{const _0x5bea48=a116_0xcb0365,_0x4212c8={};_0x4212c8[_0x5bea48(0x14a)]=_0x5bea48(0x16a);const _0x2dcafb=_0x4212c8,_0x4ed1dd={};_0x4ed1dd[_0x5bea48(0x166)]=_0x90f189[_0x5bea48(0x166)],_0x4ed1dd[_0x5bea48(0x153)]=_0x90f189[_0x5bea48(0x153)]||_0x2dcafb[_0x5bea48(0x14a)];const _0x267a0c=_0x4ed1dd;_0x90f189[_0x5bea48(0x166)]&&(_0x267a0c[_0x5bea48(0x13e)]=exports['getBestPlatformForPercySnapshot'](_0x90f189[_0x5bea48(0x152)]));;return _0x267a0c;};function a116_0xa8ab(){const _0xc24c7b=['element','4PfcFkw','8433SZdjKu','zEeTt','\x20for\x20percy\x20','cvMFW','19510feUxud','debug','deviceName','browserstackPercyMap','patch','platforms','percyCaptureMode','CCUAh','browserStackPercyOptions','stop','./PercyCaptureMap','DWjCM','1947102CnLOSs','error','3796821PhLVKQ','manual','ylzeA','../performance/performance-tester','browser','prototype','toLowerCase','browserstackSessionName','screenshotApp','browserName','./Percy','percy','edge','startPercy','./PercySDK','auto','then','IctFZ','../logger','11745032GwLRzn','getPercyOptions','winstonLogger','6nBTzdT','stopPercy','apply','STOP','397612VJgKRI','../helper','sAvzG','645192ePhrbC','nestedKeyValue','increment','getBestPlatformForPercySnapshot','Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present','uvwgL','cPlih','Stopping\x20percy','../performance/constants','WXbHB','5795415mTxkTo','forEach','start','./PercyCaptureModes','overrideXforPercy','browserstackPercyBestPlatform','reduce','Error\x20patching\x20','getDriver','wbFcw','percyAutoCapture','measureWrapper','Starting\x20percy','QyuPk'];a116_0xa8ab=function(){return _0xc24c7b;};return a116_0xa8ab();}
|