browserstack-node-sdk 1.46.8 → 1.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/generated/sdk-messages_pb.d.ts +18 -0
- package/generated/sdk-messages_pb.js +147 -3
- 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/jestTestFramework.js +1 -0
- 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/v2/utils/jest-utils.js +1 -0
- 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 a108_0x3209f=a108_0x56e3;(function(_0x4250dd,_0x578543){const _0x4d1514=a108_0x56e3,_0x57b819=_0x4250dd();while(!![]){try{const _0xaa4b9e=parseInt(_0x4d1514(0x1e4))/0x1*(-parseInt(_0x4d1514(0x215))/0x2)+parseInt(_0x4d1514(0x214))/0x3+-parseInt(_0x4d1514(0x200))/0x4+parseInt(_0x4d1514(0x210))/0x5*(parseInt(_0x4d1514(0x1eb))/0x6)+-parseInt(_0x4d1514(0x213))/0x7+-parseInt(_0x4d1514(0x20c))/0x8+-parseInt(_0x4d1514(0x1f5))/0x9*(-parseInt(_0x4d1514(0x21c))/0xa);if(_0xaa4b9e===_0x578543)break;else _0x57b819['push'](_0x57b819['shift']());}catch(_0x45a5ad){_0x57b819['push'](_0x57b819['shift']());}}}(a108_0x5b0c,0xeeaef));const winston=require(a108_0x3209f(0x219)),path=require(a108_0x3209f(0x1fa)),fs=require('fs'),{LOG_FILE_NAME,DEBUG_LOG_FILE_NAME}=require('../bin/utils/constants'),tempLogDir=a108_0x3209f(0x1e6),logFormat=winston[a108_0x3209f(0x1e0)](_0x368bb7=>{const _0x255a09=a108_0x3209f,_0xa159b8={};_0xa159b8[_0x255a09(0x1db)]=function(_0x3516e1,_0x1baee9){return _0x3516e1!==_0x1baee9;},_0xa159b8[_0x255a09(0x1e2)]=_0x255a09(0x21d),_0xa159b8['fxDCB']=function(_0x445ef4,_0x5d7bef){return _0x445ef4===_0x5d7bef;},_0xa159b8[_0x255a09(0x21e)]=_0x255a09(0x203),_0xa159b8[_0x255a09(0x1ea)]=function(_0x4e24d8,_0x476275){return _0x4e24d8===_0x476275;};const _0x1d0d7c=_0xa159b8;return _0x1d0d7c[_0x255a09(0x1db)](typeof _0x368bb7['message'],_0x1d0d7c['Qxyyp'])&&(_0x368bb7['message']=JSON['stringify'](_0x368bb7['message'])),global[_0x255a09(0x202)]?.[_0x255a09(0x1f2)]?.[_0x255a09(0x21b)]&&_0x1d0d7c[_0x255a09(0x1de)](typeof _0x368bb7[_0x255a09(0x1fe)],_0x1d0d7c[_0x255a09(0x1e2)])&&(_0x368bb7[_0x255a09(0x1fe)]=_0x368bb7[_0x255a09(0x1fe)][_0x255a09(0x20b)](new RegExp(global['session'][_0x255a09(0x1f2)][_0x255a09(0x21b)],'g'),_0x1d0d7c['IjqHY'])),global[_0x255a09(0x202)]?.[_0x255a09(0x1f2)]?.[_0x255a09(0x1e9)]&&_0x1d0d7c[_0x255a09(0x1ea)](typeof _0x368bb7[_0x255a09(0x1fe)],_0x1d0d7c[_0x255a09(0x1e2)])&&(_0x368bb7['message']=_0x368bb7[_0x255a09(0x1fe)][_0x255a09(0x20b)](new RegExp(global['session']['config'][_0x255a09(0x1e9)],'g'),_0x1d0d7c[_0x255a09(0x21e)])),_0x368bb7;}),fetchLogDir=()=>{const _0x4c567b=a108_0x3209f;if(process[_0x4c567b(0x1dc)][_0x4c567b(0x1f9)])return process[_0x4c567b(0x1dc)]['BROWSERSTACK_INTERNAL_LOG_DIR'];else!fs[_0x4c567b(0x204)](tempLogDir)&&fs['mkdirSync'](tempLogDir);return tempLogDir;},logDir=fetchLogDir(),a108_0x3b05f2={};a108_0x3b05f2[a108_0x3209f(0x1f4)]=a108_0x3209f(0x208);const transports={'loggerConsole':new winston[(a108_0x3209f(0x201))][(a108_0x3209f(0x20e))](a108_0x3b05f2),'loggerFile':new winston[(a108_0x3209f(0x201))][(a108_0x3209f(0x1e7))]({'filename':path['join'](logDir,a108_0x3209f(0x221))}),'debugLoggerFile':new winston[(a108_0x3209f(0x201))][(a108_0x3209f(0x1e7))]({'filename':path[a108_0x3209f(0x222)](logDir,a108_0x3209f(0x206)),'level':a108_0x3209f(0x1f1)}),'debugCliLoggerFile':new winston['transports'][(a108_0x3209f(0x1e7))]({'filename':path[a108_0x3209f(0x222)](logDir,a108_0x3209f(0x1ee)),'level':a108_0x3209f(0x1f1)}),'buildLinkTransport':new winston['transports']['File']({'filename':path[a108_0x3209f(0x222)](logDir,a108_0x3209f(0x221)),'level':a108_0x3209f(0x1f1)})},automationTransports={};process[a108_0x3209f(0x1dc)][a108_0x3209f(0x1fd)]==='true'&&(automationTransports[a108_0x3209f(0x218)]=new winston[(a108_0x3209f(0x201))][(a108_0x3209f(0x1e7))]({'filename':path[a108_0x3209f(0x222)](logDir,a108_0x3209f(0x1ff)),'level':'silly'}));transports[a108_0x3209f(0x220)]['on'](a108_0x3209f(0x1fc),_0x4d9eaa=>{const _0x3ede05=a108_0x3209f,_0x4e5867={};_0x4e5867[_0x3ede05(0x217)]=function(_0x47bce2,_0x48d61a){return _0x47bce2===_0x48d61a;},_0x4e5867[_0x3ede05(0x205)]='EPIPE',_0x4e5867['AfsOj']=_0x3ede05(0x20d);const _0x50656a=_0x4e5867;if(_0x50656a[_0x3ede05(0x217)](_0x4d9eaa[_0x3ede05(0x211)],_0x50656a[_0x3ede05(0x205)])){console[_0x3ede05(0x1e6)](_0x50656a['AfsOj'],_0x4d9eaa['message']);return;}throw _0x4d9eaa;});function a108_0x56e3(_0x343fc0,_0x1d81cc){const _0x5b0c57=a108_0x5b0c();return a108_0x56e3=function(_0x56e304,_0x1764a4){_0x56e304=_0x56e304-0x1db;let _0x52922b=_0x5b0c57[_0x56e304];return _0x52922b;},a108_0x56e3(_0x343fc0,_0x1d81cc);}const a108_0x3cf19e={};a108_0x3cf19e[a108_0x3209f(0x1e0)]='YYYY-MM-DD\x20HH:mm:ss';const a108_0x62058a={};a108_0x62058a[a108_0x3209f(0x209)]=!![];const winstonLoggerParams={'format':winston[a108_0x3209f(0x1e0)][a108_0x3209f(0x207)](winston[a108_0x3209f(0x1e0)][a108_0x3209f(0x1e1)](a108_0x3cf19e),winston['format']['colorize'](a108_0x62058a),winston[a108_0x3209f(0x1e0)][a108_0x3209f(0x20f)](_0x1b6244=>_0x1b6244[a108_0x3209f(0x1e1)]+a108_0x3209f(0x1e3)+_0x1b6244[a108_0x3209f(0x209)]+':\x20'+_0x1b6244['message'])),'transports':[transports['loggerConsole']]},a108_0x1e32bf={};a108_0x1e32bf['format']=a108_0x3209f(0x1f7);const a108_0x180a70={};function a108_0x5b0c(){const _0xab2846=['name','5274qoHpDI','winstonLogger','YYYY-MM-DD\x20HH:mm:ss','debug','BROWSERSTACK_INTERNAL_LOG_DIR','path','sBRKo','error','BROWSERSTACK_AUTOMATION_LOGS','message','automation.log','4520340rwCsDY','transports','session','[REDACTED]','existsSync','SNZPm','/usage-debug.log','combine','console.info','level','thuYY','replace','14503400qTNkGe','EPIPE\x20error\x20occurred\x20in\x20loggerConsole:','Console','printf','5NRzZtK','code','getLogDir','2030861KEClcV','892449WnCWDR','74AObfef','initialize','wOHvk','automationLoggerFile','winston','colorize','userName','64070nnWvlF','string','IjqHY','add','loggerConsole','/usage.log','join','uhHRU','env','buildLogger','fxDCB','loggerFile','format','timestamp','Qxyyp','\x20-\x20','39927xQhhfr','automationLogger','log','File','uncolorize','accessKey','jBymn','9816564AUrekn','debugLoggerFile','fileLogger','/sdk-cli-debug.log','true','logDir','silly','config','createLogger'];a108_0x5b0c=function(){return _0xab2846;};return a108_0x5b0c();}a108_0x180a70[a108_0x3209f(0x209)]=!![];const winstonFileLoggerParams={'format':winston[a108_0x3209f(0x1e0)][a108_0x3209f(0x207)](winston[a108_0x3209f(0x1e0)]['timestamp'](a108_0x1e32bf),winston[a108_0x3209f(0x1e0)]['colorize'](a108_0x180a70),winston[a108_0x3209f(0x1e0)]['printf'](_0x48bbb7=>_0x48bbb7['level']+':\x20'+_0x48bbb7['message'])),'transports':[]},a108_0x57402a={};a108_0x57402a[a108_0x3209f(0x1e0)]=a108_0x3209f(0x1f7);const a108_0x1daf3d={};a108_0x1daf3d['level']=!![];const a108_0x2614ba={};a108_0x2614ba[a108_0x3209f(0x209)]='silly';const BuildLoggerParams={'format':winston['format']['combine'](winston[a108_0x3209f(0x1e0)]['timestamp'](a108_0x57402a),winston[a108_0x3209f(0x1e0)][a108_0x3209f(0x21a)](a108_0x1daf3d),winston[a108_0x3209f(0x1e0)][a108_0x3209f(0x20f)](_0x3907ba=>_0x3907ba[a108_0x3209f(0x1e1)]+'\x20-\x20'+_0x3907ba[a108_0x3209f(0x209)]+':\x20'+_0x3907ba[a108_0x3209f(0x1fe)])),'transports':[transports['buildLinkTransport'],new winston[(a108_0x3209f(0x201))][(a108_0x3209f(0x20e))](a108_0x2614ba)]},a108_0x398748={};a108_0x398748['http']=()=>{},a108_0x398748['info']=()=>{},a108_0x398748['warn']=()=>{},a108_0x398748[a108_0x3209f(0x1fc)]=()=>{},a108_0x398748[a108_0x3209f(0x1f8)]=()=>{},a108_0x398748[a108_0x3209f(0x1f1)]=()=>{},exports[a108_0x3209f(0x1e5)]=process[a108_0x3209f(0x1dc)][a108_0x3209f(0x1fd)]===a108_0x3209f(0x1ef)?winston[a108_0x3209f(0x1f3)]({'format':winston['format'][a108_0x3209f(0x207)](winston[a108_0x3209f(0x1e0)][a108_0x3209f(0x1e8)](),winston[a108_0x3209f(0x1e0)][a108_0x3209f(0x1e1)](),logFormat(),winston['format'][a108_0x3209f(0x20f)](_0x14472e=>_0x14472e['level']+':\x20'+_0x14472e['message'])),'transports':[automationTransports[a108_0x3209f(0x218)]]}):a108_0x398748;const initialize=()=>{const _0x4b8faa=a108_0x3209f,_0x3e8cb5={};_0x3e8cb5['thuYY']='2|0|3|5|4|1',_0x3e8cb5['sBRKo']=_0x4b8faa(0x1f1);const _0x227ffd=_0x3e8cb5,_0x45deab=_0x227ffd[_0x4b8faa(0x20a)]['split']('|');let _0x1fc678=0x0;while(!![]){switch(_0x45deab[_0x1fc678++]){case'0':transports[_0x4b8faa(0x1ec)]=new winston[(_0x4b8faa(0x201))][(_0x4b8faa(0x1e7))]({'filename':path['join'](exports[_0x4b8faa(0x1f0)],DEBUG_LOG_FILE_NAME),'level':_0x227ffd[_0x4b8faa(0x1fb)]});continue;case'1':exports['fileLogger'][_0x4b8faa(0x21f)](transports[_0x4b8faa(0x1ec)]);continue;case'2':transports['loggerFile']=new winston[(_0x4b8faa(0x201))][(_0x4b8faa(0x1e7))]({'filename':path[_0x4b8faa(0x222)](exports['logDir'],LOG_FILE_NAME)});continue;case'3':exports[_0x4b8faa(0x1f6)][_0x4b8faa(0x21f)](transports['loggerFile']);continue;case'4':exports[_0x4b8faa(0x1ed)][_0x4b8faa(0x21f)](transports[_0x4b8faa(0x1df)]);continue;case'5':exports['winstonLogger']['add'](transports[_0x4b8faa(0x1ec)]);continue;}break;}};exports[a108_0x3209f(0x1f6)]=new winston[(a108_0x3209f(0x1f3))](winstonLoggerParams),exports['fileLogger']=new winston[(a108_0x3209f(0x1f3))](winstonFileLoggerParams),exports[a108_0x3209f(0x1dd)]=new winston[(a108_0x3209f(0x1f3))](BuildLoggerParams),exports[a108_0x3209f(0x1f0)]=logDir,exports[a108_0x3209f(0x212)]=()=>{return exports['logDir'];},exports[a108_0x3209f(0x201)]=transports,exports[a108_0x3209f(0x216)]=initialize;logDir&&initialize();
|
package/src/helpers/metadata.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a109_0x491cbf=a109_0x7d4f;(function(_0x1a8d0c,_0x51d5ec){const _0x9ce70d=a109_0x7d4f,_0x25f1d1=_0x1a8d0c();while(!![]){try{const _0x4ba61c=-parseInt(_0x9ce70d(0x181))/0x1+parseInt(_0x9ce70d(0x183))/0x2+parseInt(_0x9ce70d(0x176))/0x3+-parseInt(_0x9ce70d(0x173))/0x4+-parseInt(_0x9ce70d(0x172))/0x5*(-parseInt(_0x9ce70d(0x177))/0x6)+parseInt(_0x9ce70d(0x186))/0x7*(parseInt(_0x9ce70d(0x175))/0x8)+-parseInt(_0x9ce70d(0x179))/0x9;if(_0x4ba61c===_0x51d5ec)break;else _0x25f1d1['push'](_0x25f1d1['shift']());}catch(_0x2ce85d){_0x25f1d1['push'](_0x25f1d1['shift']());}}}(a109_0x51f8,0xbc247));const globals=require(a109_0x491cbf(0x17a)),helper=require(a109_0x491cbf(0x16a)),logger=require(a109_0x491cbf(0x16b))[a109_0x491cbf(0x17f)];function a109_0x51f8(){const _0x5415b2=['setGlobal','156863LhQNrx','DSAZL','testMeta-','length','./helper','./logger','get','YlZAr','warn','NltZU','exports','set','751715lSXswj','1183448ptaobO','testMeta','296KiuGDA','1611558ywFoqh','30ygGxrF','The\x20metadata\x20object\x20is\x20not\x20valid.','8373267gpfbeJ','./globals','getGlobal','hsEgg','getCentralUser','identifier','winstonLogger','string','1523933wcsbVv','UhrvN','2805510ZOsBDS','lcnc'];a109_0x51f8=function(){return _0x5415b2;};return a109_0x51f8();}function a109_0x7d4f(_0x47dae6,_0x4edca0){const _0x51f84d=a109_0x51f8();return a109_0x7d4f=function(_0x7d4fd0,_0x370f7b){_0x7d4fd0=_0x7d4fd0-0x169;let _0x3af44c=_0x51f84d[_0x7d4fd0];return _0x3af44c;},a109_0x7d4f(_0x47dae6,_0x4edca0);}module[a109_0x491cbf(0x170)]=class TestMetadata{static[a109_0x491cbf(0x171)](_0x3dd39f={}){const _0x39a7b2=a109_0x491cbf,_0x57ffc8={};_0x57ffc8[_0x39a7b2(0x17c)]='testRunUUID',_0x57ffc8['DSAZL']=function(_0x3c978a,_0x15c685){return _0x3c978a===_0x15c685;},_0x57ffc8['WeoCy']=_0x39a7b2(0x180),_0x57ffc8[_0x39a7b2(0x16d)]=function(_0x24ac04,_0x2c2257){return _0x24ac04<=_0x2c2257;},_0x57ffc8[_0x39a7b2(0x182)]=_0x39a7b2(0x174),_0x57ffc8[_0x39a7b2(0x16f)]=_0x39a7b2(0x178);const _0x279285=_0x57ffc8,_0x4b7bee=globals[_0x39a7b2(0x17b)](_0x279285['hsEgg']),_0x286e00=_0x3dd39f[_0x39a7b2(0x17e)];helper[_0x39a7b2(0x17d)]()[_0x39a7b2(0x184)]&&(_0x279285[_0x39a7b2(0x187)](typeof _0x286e00,_0x279285['WeoCy'])&&_0x279285[_0x39a7b2(0x16d)](_0x286e00[_0x39a7b2(0x169)],0x28)?_0x4b7bee?globals[_0x39a7b2(0x185)](_0x39a7b2(0x188)+_0x4b7bee,_0x3dd39f):globals['setGlobal'](_0x279285['UhrvN'],_0x3dd39f):logger[_0x39a7b2(0x16e)](_0x279285['NltZU']));}static[a109_0x491cbf(0x16c)](_0x30e53c){const _0x3148b5=a109_0x491cbf,_0x579c05={};_0x579c05['ZFjnE']=_0x3148b5(0x174);const _0x56acfa=_0x579c05;if(helper[_0x3148b5(0x17d)]()[_0x3148b5(0x184)])return globals[_0x3148b5(0x17b)](_0x3148b5(0x188)+_0x30e53c)||globals[_0x3148b5(0x17b)](_0x56acfa['ZFjnE'])||{};return{};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a108_0x5129(){const _0x2be496=['handleFailure','6802235pLwWNC','kfdST','3095252hUFWVD','fTEpV','handleSuccess','kfxWX','url','css\x20selector','using','./helper','Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20','Mufta','iSgbq','aiHeal_isAuthenticated','executeAsyncScript','getId','AaZds','aiHeal:findElementSuccess','CYJeJ','20idCKng','zfSPf','WAadz','setAiSessionTimeStamp','./performance/constants','getSession','qAMYX','measureWrapper','findElement','XfcYW','./globals','UwnVY','NoSuchElementError','myNEl','browserstack.local','format','./performance/performance-tester','POST_EXECUTE','isBrowserstackInfra','overrideExecute','debug','skipHealingSuccess','silly','DBBRI','getGlobal','OAXyE','mgJOw','vKUOH','local','eLMGE','zpLii','533958OpCHDU','VpWeK','includes','nBMzH','capability','Successfully\x20healed\x20command\x20using\x20new\x20cssPath:\x20','get','RxVbU','aiSdk_defaultLogDataEnabled','getNudgeLocalNotSetError','3BNWykW','Puebf','BowGA','aiHeal:findElementFailure','nkXsx','initExecute','info','Healing\x20failed\x20for\x20command\x20using\x20','ThukS','Bzwpq','4440740iyaDUe','1314nxyilY','oqhbM','request','./ai-sdk/aiSdkWrapper','aiHeal_isHealingEnabled','746026FSKZdX','string','toISOString','value','dgUjL','utuaa','ekEno','uSfOq','CbZKa','FdsJP','./logger','eWKOl','SUZWB','Successfully\x20healed\x20command\x20using\x20new\x20','findElement\x20command\x20failed\x20with\x20cssPath:\x20','KRCLe','parameters_','nestedKeyValue','isSelfHealEnabled','aiHeal:setToken','PRE_EXECUTE','bgdbD','JavascriptError','name','21105SrjBAc','IDnHz','32JXPova','igMPA','GDneA','CFTnh','command','1562634KSjYNO','OwJPZ','uYtWa','execute','find','][\x20SDK-AUTOMATION\x20]\x20','gIiwZ','iZUJs','name_','getTcgTokenStatus','RyblF','setTcgTokenStatus','cqboF','Error\x20in\x20handling\x20TCG\x20Auth:\x20','patchExecute','../bin/utils/constants'];a108_0x5129=function(){return _0x2be496;};return a108_0x5129();}function a108_0x1798(_0x5b2067,_0x2ccd5a){const _0x5129e1=a108_0x5129();return a108_0x1798=function(_0x179870,_0x10d17a){_0x179870=_0x179870-0x1f2;let _0x4ca446=_0x5129e1[_0x179870];return _0x4ca446;},a108_0x1798(_0x5b2067,_0x2ccd5a);}const a108_0x18b550=a108_0x1798;(function(_0x3fdee4,_0x234d5c){const _0x534d43=a108_0x1798,_0x300e42=_0x3fdee4();while(!![]){try{const _0x13715f=parseInt(_0x534d43(0x238))/0x1+-parseInt(_0x534d43(0x252))/0x2*(-parseInt(_0x534d43(0x242))/0x3)+-parseInt(_0x534d43(0x208))/0x4+-parseInt(_0x534d43(0x24c))/0x5+parseInt(_0x534d43(0x24d))/0x6*(-parseInt(_0x534d43(0x26a))/0x7)+parseInt(_0x534d43(0x26c))/0x8*(parseInt(_0x534d43(0x1f5))/0x9)+-parseInt(_0x534d43(0x219))/0xa*(-parseInt(_0x534d43(0x206))/0xb);if(_0x13715f===_0x234d5c)break;else _0x300e42['push'](_0x300e42['shift']());}catch(_0x51c245){_0x300e42['push'](_0x300e42['shift']());}}}(a108_0x5129,0x7df9f));const {aiSdkWrapper}=require(a108_0x18b550(0x250)),{commandRepository}=require('./ai-sdk/autoHealHelper'),PerformanceTester=require(a108_0x18b550(0x229)),globals=require(a108_0x18b550(0x223)),{winstonLogger:logger,automationLogger}=require(a108_0x18b550(0x25c)),helper=require(a108_0x18b550(0x20f)),constants=require(a108_0x18b550(0x204)),{DRIVER_EVENT:PerformanceDriverEvents}=require(a108_0x18b550(0x21d)),util=require('util');exports[a108_0x18b550(0x22c)]=(_0x185000,_0x23cc81)=>{const _0x598c42=a108_0x18b550,_0x2ce6b9={'zpLii':'Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','zfSPf':function(_0x453372,_0x424505){return _0x453372===_0x424505;},'iZUJs':_0x598c42(0x225),'myNEl':function(_0x4e7e6a,_0x3fff5a){return _0x4e7e6a===_0x3fff5a;},'nBMzH':_0x598c42(0x268),'Puebf':_0x598c42(0x221),'Bzwpq':_0x598c42(0x213),'mgJOw':_0x598c42(0x251),'iSgbq':_0x598c42(0x20d),'RxVbU':function(_0x2644d2,_0x39e22a){return _0x2644d2+_0x39e22a;},'bgdbD':function(_0x334af6,_0xece0af){return _0x334af6+_0xece0af;},'vKUOH':_0x598c42(0x260),'eWKOl':';\x20Trying\x20to\x20heal','BowGA':function(_0x435c0f,_0x5ce70c){return _0x435c0f+_0x5ce70c;},'GDneA':function(_0x15de9c,_0x4e517b){return _0x15de9c+_0x4e517b;},'qAMYX':function(_0x21ed03,_0x292ad5){return _0x21ed03+_0x292ad5;},'WAadz':function(_0x5adaf8,_0x54132d){return _0x5adaf8+_0x54132d;},'sxFKL':'findElement\x20command\x20failed\x20with\x20','dgUjL':_0x598c42(0x245),'XSdCG':function(_0x2644be){return _0x2644be();},'ekEno':function(_0x25d56e,_0x5d6773){return _0x25d56e&&_0x5d6773;},'CedDT':function(_0x3c4438,_0x4f1fde){return _0x3c4438===_0x4f1fde;},'OwJPZ':function(_0x3decef,_0x51f103){return _0x3decef+_0x51f103;},'CYJeJ':_0x598c42(0x23d),'bKBtQ':_0x598c42(0x25f),'Mufta':function(_0x1e9561,_0xa99a0){return _0x1e9561===_0xa99a0;},'IVXwA':'Healing\x20failed\x20for\x20command\x20using\x20cssPath:\x20','nkXsx':function(_0x373db9,_0x3c5d1f){return _0x373db9+_0x3c5d1f;},'VpWeK':function(_0x53751f,_0x528b77){return _0x53751f+_0x528b77;},'SqtcB':function(_0x5e90d8,_0x1e9f7e){return _0x5e90d8+_0x1e9f7e;},'ThukS':_0x598c42(0x249),'LvBOd':_0x598c42(0x23e),'FdsJP':'parameters_','OAXyE':_0x598c42(0x20c),'fTEpV':'Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','kfxWX':_0x598c42(0x265),'CbZKa':function(_0x54be58){return _0x54be58();},'ymRRa':_0x598c42(0x240),'uSfOq':_0x598c42(0x217),'igMPA':function(_0x9f1702){return _0x9f1702();},'CFTnh':function(_0x9077ed,_0x12bfcc){return _0x9077ed===_0x12bfcc;},'eLMGE':_0x598c42(0x214),'IDnHz':'executeScript','UwnVY':_0x598c42(0x253),'uYtWa':_0x598c42(0x23c),'utuaa':_0x598c42(0x227),'AaZds':'bstack:options','RyblF':_0x598c42(0x235)},_0xf25a49=_0x185000[_0x598c42(0x203)]||(helper[_0x598c42(0x263)](_0x23cc81,[_0x2ce6b9[_0x598c42(0x1f7)],_0x2ce6b9[_0x598c42(0x257)]])||helper['nestedKeyValue'](_0x23cc81,[_0x2ce6b9['uYtWa'],_0x2ce6b9[_0x598c42(0x216)],_0x2ce6b9[_0x598c42(0x1ff)]]));if(!globals['getGlobal'](_0x2ce6b9['Bzwpq'])&&!globals[_0x598c42(0x231)](_0x2ce6b9[_0x598c42(0x233)])&&_0xf25a49)return;_0x185000[_0x598c42(0x203)]=!![],_0x185000[_0x598c42(0x247)]=_0x185000[_0x598c42(0x1f8)],_0x185000[_0x598c42(0x1f8)]=async _0x5bf57f=>{const _0xf4c9b2=_0x598c42,_0x1f822e={'kfdST':_0x2ce6b9['Bzwpq'],'SUZWB':_0x2ce6b9[_0xf4c9b2(0x20b)],'lvHQH':function(_0x43564c){const _0x1f2212=_0xf4c9b2;return _0x2ce6b9[_0x1f2212(0x25a)](_0x43564c);},'DBBRI':_0x2ce6b9['ymRRa'],'oqhbM':function(_0x3dbe95,_0x5dd5e2){const _0x28dd09=_0xf4c9b2;return _0x2ce6b9[_0x28dd09(0x226)](_0x3dbe95,_0x5dd5e2);},'pOBzg':_0x2ce6b9['Puebf'],'cqboF':_0x2ce6b9[_0xf4c9b2(0x233)],'XfcYW':_0x2ce6b9[_0xf4c9b2(0x259)],'gIiwZ':function(_0x330b5d){const _0x12f4a8=_0xf4c9b2;return _0x2ce6b9[_0x12f4a8(0x26d)](_0x330b5d);}};try{const _0x3e0fc3={};_0x3e0fc3['command']=_0x5bf57f[_0xf4c9b2(0x1fd)],await PerformanceTester[_0xf4c9b2(0x220)](PerformanceDriverEvents[_0xf4c9b2(0x266)],async()=>{const _0x2a0057=_0xf4c9b2,_0x4aa81c={};_0x4aa81c['KRCLe']=_0x1f822e[_0x2a0057(0x207)];const _0x1b1d0f=_0x4aa81c;if(!commandRepository[_0x2a0057(0x1fe)]()&&globals[_0x2a0057(0x231)](_0x1f822e['kfdST'])){const _0x38026e=PerformanceTester[_0x2a0057(0x220)](_0x1f822e[_0x2a0057(0x25e)],async()=>{const _0x55e844=_0x2a0057;try{commandRepository[_0x55e844(0x200)](!![]),await aiSdkWrapper['setTcgToken']((await _0x185000[_0x55e844(0x21e)]())[_0x55e844(0x215)]());const _0x26f8c0=globals[_0x55e844(0x231)](_0x1b1d0f[_0x55e844(0x261)]);_0x26f8c0&&commandRepository[_0x55e844(0x21c)]((await _0x185000[_0x55e844(0x21e)]())[_0x55e844(0x215)]());}catch(_0x2ce940){logger['error'](_0x55e844(0x202)+_0x2ce940);}});await _0x1f822e['lvHQH'](_0x38026e);}},_0x3e0fc3)();const _0x26c6aa=await _0x185000[_0xf4c9b2(0x247)](_0x5bf57f);try{if(_0x2ce6b9[_0xf4c9b2(0x1f3)](_0x5bf57f[_0xf4c9b2(0x1fd)],_0x2ce6b9[_0xf4c9b2(0x236)])||_0x2ce6b9[_0xf4c9b2(0x1f3)](_0x5bf57f[_0xf4c9b2(0x1fd)],_0x2ce6b9[_0xf4c9b2(0x26b)])){const _0x58826d=_0x5bf57f[_0xf4c9b2(0x262)]&&_0x5bf57f[_0xf4c9b2(0x262)]['script'],_0x2d4144=_0x5bf57f[_0xf4c9b2(0x262)]&&_0x5bf57f[_0xf4c9b2(0x262)]['args'],_0x4b1388=_0x2d4144&&util[_0xf4c9b2(0x228)]('%j',_0x2d4144);if(_0x58826d&&_0x2ce6b9['zfSPf'](typeof _0x58826d,_0x2ce6b9[_0xf4c9b2(0x224)])){const _0xb7bf46=constants['AUTOMATION_LOG_COMMANDS'][_0xf4c9b2(0x1f9)](_0x55395b=>_0x58826d[_0xf4c9b2(0x23a)](_0x55395b)||_0x4b1388&&_0x4b1388[_0xf4c9b2(0x23a)](_0x55395b));if(_0xb7bf46){const _0x411245={};_0x411245[_0xf4c9b2(0x1f4)]=_0xb7bf46,_0x411245['parameters']=_0x2d4144;const _0x18e5ee={};_0x18e5ee['body']=_0x26c6aa;const _0x347eaf={};_0x347eaf[_0xf4c9b2(0x24f)]=_0x411245,_0x347eaf['response']=_0x18e5ee,automationLogger[_0xf4c9b2(0x22f)]('['+new Date()[_0xf4c9b2(0x254)]()+_0xf4c9b2(0x1fa)+util[_0xf4c9b2(0x228)]('%j',_0x347eaf));}}}}catch(_0x32437a){logger[_0xf4c9b2(0x22f)](_0xf4c9b2(0x210)+_0x32437a['message']);}return await PerformanceTester['measureWrapper'](PerformanceDriverEvents[_0xf4c9b2(0x22a)],async()=>{const _0x35f759=_0xf4c9b2;if(!helper[_0x35f759(0x22b)]()&&(commandRepository[_0x35f759(0x264)]()||globals[_0x35f759(0x231)](_0x1f822e[_0x35f759(0x230)]))&&_0x1f822e[_0x35f759(0x24e)](_0x5bf57f['name_'],_0x1f822e['pOBzg'])&&!_0x5bf57f['skipHealingSuccess']&&globals[_0x35f759(0x231)](_0x1f822e[_0x35f759(0x207)])&&globals[_0x35f759(0x231)](_0x1f822e[_0x35f759(0x201)])){const _0x1f3d04=new Date(),_0x4b60dd=PerformanceTester[_0x35f759(0x220)](_0x1f822e[_0x35f759(0x222)],async()=>{const _0x5f3fd9=_0x35f759;return await aiSdkWrapper[_0x5f3fd9(0x20a)](_0x23cc81,_0x185000,_0x5bf57f);});await _0x1f822e[_0x35f759(0x1fb)](_0x4b60dd);}},{'command':_0x5bf57f[_0xf4c9b2(0x1fd)]})(),_0x26c6aa;}catch(_0xeb1c32){await PerformanceTester[_0xf4c9b2(0x220)](PerformanceDriverEvents[_0xf4c9b2(0x22a)],async()=>{const _0x220670=_0xf4c9b2;logger[_0x220670(0x22d)](_0x2ce6b9[_0x220670(0x237)]);try{if(!helper[_0x220670(0x22b)]()&&(_0x2ce6b9[_0x220670(0x21a)](_0xeb1c32[_0x220670(0x269)],_0x2ce6b9[_0x220670(0x1fc)])||_0x2ce6b9[_0x220670(0x226)](_0xeb1c32['name'],_0x2ce6b9[_0x220670(0x23b)]))&&_0x2ce6b9[_0x220670(0x226)](_0x5bf57f['name_'],_0x2ce6b9[_0x220670(0x243)])&&commandRepository[_0x220670(0x264)]()&&globals[_0x220670(0x231)](_0x2ce6b9[_0x220670(0x24b)])&&globals[_0x220670(0x231)](_0x2ce6b9[_0x220670(0x233)])){_0x2ce6b9['myNEl'](_0x5bf57f[_0x220670(0x262)][_0x220670(0x20e)],_0x2ce6b9[_0x220670(0x212)])?logger[_0x220670(0x248)](_0x2ce6b9[_0x220670(0x23f)](_0x2ce6b9['bgdbD'](_0x2ce6b9[_0x220670(0x234)],_0x5bf57f[_0x220670(0x262)][_0x220670(0x255)]),_0x2ce6b9[_0x220670(0x25d)])):logger[_0x220670(0x248)](_0x2ce6b9[_0x220670(0x244)](_0x2ce6b9[_0x220670(0x1f2)](_0x2ce6b9[_0x220670(0x21f)](_0x2ce6b9[_0x220670(0x21b)](_0x2ce6b9['sxFKL'],_0x5bf57f[_0x220670(0x262)][_0x220670(0x20e)]),':\x20'),_0x5bf57f['parameters_']['value']),_0x2ce6b9[_0x220670(0x25d)]));const _0x55af66=PerformanceTester[_0x220670(0x220)](_0x2ce6b9[_0x220670(0x256)],async()=>{const _0x5ce6b6=_0x220670;return await aiSdkWrapper[_0x5ce6b6(0x205)](_0x23cc81,_0x185000,_0x5bf57f);}),_0x44eb17=new Date(),{locatorType:_0x253665,locatorValue:_0x432531,commandHealed:_0x4a1ee1}=await _0x2ce6b9['XSdCG'](_0x55af66);if(_0x2ce6b9[_0x220670(0x258)](_0x253665,_0x432531)){_0x5bf57f[_0x220670(0x262)][_0x220670(0x20e)]=_0x253665,_0x5bf57f[_0x220670(0x262)][_0x220670(0x255)]=_0x432531,_0x5bf57f[_0x220670(0x22e)]=!![];const _0x20c850=_0x185000['execute'](_0x5bf57f);return _0x2ce6b9['CedDT'](_0x253665,_0x2ce6b9['iSgbq'])?logger[_0x220670(0x248)](_0x2ce6b9[_0x220670(0x1f6)](_0x2ce6b9[_0x220670(0x218)],_0x432531)):logger[_0x220670(0x248)](_0x2ce6b9[_0x220670(0x1f2)](_0x2ce6b9[_0x220670(0x267)](_0x2ce6b9[_0x220670(0x21b)](_0x2ce6b9['bKBtQ'],_0x253665),':\x20'),_0x432531)),_0x20c850;}else!_0x4a1ee1&&(_0x2ce6b9[_0x220670(0x211)](_0x253665,_0x2ce6b9[_0x220670(0x212)])?logger[_0x220670(0x248)](_0x2ce6b9[_0x220670(0x244)](_0x2ce6b9['IVXwA'],_0x5bf57f[_0x220670(0x262)][_0x220670(0x255)])):logger[_0x220670(0x248)](_0x2ce6b9[_0x220670(0x246)](_0x2ce6b9[_0x220670(0x239)](_0x2ce6b9['SqtcB'](_0x2ce6b9[_0x220670(0x24a)],_0x5bf57f[_0x220670(0x262)][_0x220670(0x20e)]),':\x20'),_0x5bf57f['parameters_'][_0x220670(0x255)])));}!_0xf25a49&&_0x2ce6b9['Mufta'](_0x5bf57f[_0x220670(0x1fd)],_0x2ce6b9['LvBOd'])&&helper[_0x220670(0x263)](_0x5bf57f,[_0x2ce6b9[_0x220670(0x25b)],_0x2ce6b9[_0x220670(0x232)]])&&!!constants['NUDGE_LOCAL_ERRORS'][_0x220670(0x1f9)](_0x4930bf=>{const _0x409056=_0x220670;return _0xeb1c32['toString']()[_0x409056(0x23a)](_0x4930bf);})&&helper[_0x220670(0x241)](_0x5bf57f[_0x220670(0x262)]['url'],!![]);}catch(_0x383046){logger[_0x220670(0x22d)](_0x2ce6b9[_0x220670(0x209)],_0x383046);}},{'success':![],'failure':_0xeb1c32})();throw _0xeb1c32;}};};
|
|
1
|
+
const a110_0x30312c=a110_0x4ad4;(function(_0x366474,_0x56dd5d){const _0x2bcd28=a110_0x4ad4,_0x174627=_0x366474();while(!![]){try{const _0x1aa229=parseInt(_0x2bcd28(0x124))/0x1*(-parseInt(_0x2bcd28(0x125))/0x2)+parseInt(_0x2bcd28(0x136))/0x3*(-parseInt(_0x2bcd28(0x190))/0x4)+-parseInt(_0x2bcd28(0x15b))/0x5+parseInt(_0x2bcd28(0x160))/0x6+parseInt(_0x2bcd28(0x179))/0x7+parseInt(_0x2bcd28(0x149))/0x8+-parseInt(_0x2bcd28(0x180))/0x9;if(_0x1aa229===_0x56dd5d)break;else _0x174627['push'](_0x174627['shift']());}catch(_0x2acfe9){_0x174627['push'](_0x174627['shift']());}}}(a110_0x21d2,0xa505b));function a110_0x4ad4(_0x50298c,_0x14fdfe){const _0x21d2ed=a110_0x21d2();return a110_0x4ad4=function(_0x4ad4f7,_0x54c501){_0x4ad4f7=_0x4ad4f7-0x117;let _0x48b8e8=_0x21d2ed[_0x4ad4f7];return _0x48b8e8;},a110_0x4ad4(_0x50298c,_0x14fdfe);}const {aiSdkWrapper}=require(a110_0x30312c(0x167)),{commandRepository}=require('./ai-sdk/autoHealHelper'),PerformanceTester=require('./performance/performance-tester'),globals=require('./globals'),{winstonLogger:logger,automationLogger}=require(a110_0x30312c(0x147)),helper=require(a110_0x30312c(0x13d)),constants=require('../bin/utils/constants'),{DRIVER_EVENT:PerformanceDriverEvents}=require(a110_0x30312c(0x138)),util=require(a110_0x30312c(0x13c));function a110_0x21d2(){const _0x5175a6=['browserstack.local','10415512tZdCjS','execute','BzpSL','setTcgTokenStatus','ExEpN','gBCLF','AuEST','HPDuJ','skipHealingSuccess','handleFailure','url','OILBC','xaAJS','name','handleSuccess','isBrowserstackInfra','info','format','1768765xaVnCJ','QOEIM','Successfully\x20healed\x20command\x20using\x20new\x20','sEaTV','ESxwL','2425710hmKpfU','Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','getGlobal','isSelfHealEnabled','initExecute','parameters_','ZVYGI','./ai-sdk/aiSdkWrapper','yyFip','DwbXi','Healing\x20failed\x20for\x20command\x20using\x20','aiHeal:findElementSuccess','aiHeal_isAuthenticated','aiHeal:findElementFailure','getId','FdYFu','PtLHX','MKMbe','ERJKg','PtpyC','FVzdM','hCrPL','klFBt','executeScript','get','8385713fwLTuC','DqoGu','request','message','qfBDd','aiHeal:setToken','debug','444564psJiiU','BGvxQ','aiHeal_isHealingEnabled','patchExecute','getNudgeLocalNotSetError','GMfBK','Healing\x20failed\x20for\x20command\x20using\x20cssPath:\x20','find','CUdCp','NBDYC','POST_EXECUTE','Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20','yWyws','value','XfDrw','response','388DoYcJI','string','getTcgTokenStatus','aiSdk_defaultLogDataEnabled',';\x20Trying\x20to\x20heal','eabqb','ykFcE','KQXXt','pMHnb','lkTMk','findElement\x20command\x20failed\x20with\x20','cKyaz','SqfLT','kGqvh','using','HNWdE','getSession','toISOString','command','FEAGR','findElement','itjhR','24VVDGaT','102824bVyoFg','IpAAF','findElement\x20command\x20failed\x20with\x20cssPath:\x20','Error\x20in\x20handling\x20TCG\x20Auth:\x20','overrideExecute','includes','silly','nestedKeyValue','qvRQa','lLASP','cCeTl','name_','WMmEK','FdvAx','script','Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','gsyRg','18285vHygwd','AUTOMATION_LOG_COMMANDS','./performance/constants','TZQmm','kIjBP','UofpN','util','./helper','iSLFC','JavascriptError','capability','NUDGE_LOCAL_ERRORS','measureWrapper','axlfW','sTrhQ','jfiYs','Successfully\x20healed\x20command\x20using\x20new\x20cssPath:\x20','./logger'];a110_0x21d2=function(){return _0x5175a6;};return a110_0x21d2();}exports[a110_0x30312c(0x129)]=(_0x214050,_0x3c77fc)=>{const _0x37411d=a110_0x30312c,_0x48804e={'SqfLT':_0x37411d(0x16c),'jfiYs':_0x37411d(0x17e),'OILBC':function(_0x4dd500){return _0x4dd500();},'ykFcE':_0x37411d(0x193),'qfBDd':function(_0x339f15,_0x293ae0){return _0x339f15===_0x293ae0;},'qvRQa':_0x37411d(0x122),'eabqb':_0x37411d(0x182),'MKMbe':_0x37411d(0x16b),'yyFip':function(_0x124d71){return _0x124d71();},'HNWdE':_0x37411d(0x161),'VmvGQ':'NoSuchElementError','QKGIN':_0x37411d(0x13f),'klFBt':'css\x20selector','ESxwL':function(_0xf552db,_0xc2ac2f){return _0xf552db+_0xc2ac2f;},'ZVYGI':_0x37411d(0x127),'AuEST':_0x37411d(0x194),'NBDYC':function(_0x2d594f,_0x585bb9){return _0x2d594f+_0x585bb9;},'CUdCp':_0x37411d(0x118),'kGqvh':_0x37411d(0x16d),'ERJKg':function(_0x3dbc8d,_0x2b8d49){return _0x3dbc8d&&_0x2b8d49;},'gBCLF':_0x37411d(0x146),'dqtfM':_0x37411d(0x15d),'EdHGf':_0x37411d(0x186),'lkTMk':_0x37411d(0x16a),'tnXLO':_0x37411d(0x178),'QOEIM':'parameters_','lLASP':_0x37411d(0x153),'pMHnb':_0x37411d(0x134),'hCrPL':'executeAsyncScript','DqoGu':function(_0x195298,_0x320265){return _0x195298===_0x320265;},'xaAJS':_0x37411d(0x177),'gsyRg':function(_0x16474d,_0x580c58){return _0x16474d===_0x580c58;},'KQXXt':_0x37411d(0x191),'iSLFC':_0x37411d(0x140),'oqsjD':_0x37411d(0x148),'WWqYv':'bstack:options','FdYFu':'local'},_0x3ff518=_0x214050[_0x37411d(0x183)]||(helper['nestedKeyValue'](_0x3c77fc,[_0x48804e['iSLFC'],_0x48804e['oqsjD']])||helper[_0x37411d(0x12c)](_0x3c77fc,[_0x48804e[_0x37411d(0x13e)],_0x48804e['WWqYv'],_0x48804e[_0x37411d(0x16f)]]));if(!globals['getGlobal'](_0x48804e['SqfLT'])&&!globals[_0x37411d(0x162)](_0x48804e[_0x37411d(0x195)])&&_0x3ff518)return;_0x214050['patchExecute']=!![],_0x214050['initExecute']=_0x214050[_0x37411d(0x14a)],_0x214050[_0x37411d(0x14a)]=async _0x3ad960=>{const _0x24e0ba=_0x37411d,_0x1eab57={'XfDrw':_0x48804e[_0x24e0ba(0x11a)],'IpAAF':_0x48804e[_0x24e0ba(0x11d)],'PtLHX':function(_0x462b6b,_0x375006){return _0x48804e['qfBDd'](_0x462b6b,_0x375006);},'SbYaU':_0x48804e['VmvGQ'],'sTrhQ':_0x48804e['QKGIN'],'HPDuJ':_0x48804e[_0x24e0ba(0x12d)],'TZQmm':_0x48804e[_0x24e0ba(0x195)],'WMmEK':function(_0x6864b7,_0x4fee09){const _0x30d2c7=_0x24e0ba;return _0x48804e[_0x30d2c7(0x17d)](_0x6864b7,_0x4fee09);},'FEAGR':_0x48804e[_0x24e0ba(0x176)],'FdvAx':function(_0x19e4c4,_0x3e5798){return _0x48804e['ESxwL'](_0x19e4c4,_0x3e5798);},'FVzdM':function(_0x17588e,_0x4f64e2){return _0x48804e['ESxwL'](_0x17588e,_0x4f64e2);},'MmNia':_0x48804e[_0x24e0ba(0x166)],'GMfBK':_0x48804e[_0x24e0ba(0x14f)],'qLXEd':function(_0x1b3462,_0x2f00a0){const _0x1f8576=_0x24e0ba;return _0x48804e[_0x1f8576(0x15f)](_0x1b3462,_0x2f00a0);},'kIjBP':function(_0x328fdc,_0x361fee){const _0x21a2a8=_0x24e0ba;return _0x48804e[_0x21a2a8(0x189)](_0x328fdc,_0x361fee);},'axlfW':_0x48804e[_0x24e0ba(0x188)],'DwbXi':_0x48804e[_0x24e0ba(0x11b)],'itjhR':function(_0x5b470c){return _0x48804e['OILBC'](_0x5b470c);},'BGvxQ':function(_0x4e6dce,_0x39a525){const _0x3c91ae=_0x24e0ba;return _0x48804e[_0x3c91ae(0x172)](_0x4e6dce,_0x39a525);},'cKyaz':function(_0x2cc0c3,_0x5d2385){return _0x48804e['qfBDd'](_0x2cc0c3,_0x5d2385);},'PtpyC':_0x48804e[_0x24e0ba(0x14e)],'cCeTl':function(_0x3886e7,_0x3f41cb){const _0x48c09d=_0x24e0ba;return _0x48804e[_0x48c09d(0x189)](_0x3886e7,_0x3f41cb);},'XzYws':_0x48804e['dqtfM'],'ExEpN':function(_0x2a566b,_0x4fed3f){const _0x23727a=_0x24e0ba;return _0x48804e[_0x23727a(0x189)](_0x2a566b,_0x4fed3f);},'ySlTD':_0x48804e['EdHGf'],'BzpSL':function(_0x97d482,_0x488a77){const _0x59d447=_0x24e0ba;return _0x48804e[_0x59d447(0x189)](_0x97d482,_0x488a77);},'iWWSc':_0x48804e[_0x24e0ba(0x117)],'yWyws':_0x48804e['tnXLO'],'sEaTV':_0x48804e[_0x24e0ba(0x15c)],'UofpN':_0x48804e[_0x24e0ba(0x12e)],'XcQkX':_0x48804e[_0x24e0ba(0x198)]};try{const _0x2a04e8={};_0x2a04e8['command']=_0x3ad960['name_'],await PerformanceTester[_0x24e0ba(0x142)](PerformanceDriverEvents['PRE_EXECUTE'],async()=>{const _0x34a223=_0x24e0ba;if(!commandRepository[_0x34a223(0x192)]()&&globals[_0x34a223(0x162)](_0x48804e['SqfLT'])){const _0x516bab=PerformanceTester[_0x34a223(0x142)](_0x48804e[_0x34a223(0x145)],async()=>{const _0x4f92a3=_0x34a223;try{commandRepository[_0x4f92a3(0x14c)](!![]),await aiSdkWrapper['setTcgToken']((await _0x214050[_0x4f92a3(0x11e)]())[_0x4f92a3(0x16e)]());const _0x3d82b3=globals[_0x4f92a3(0x162)](_0x1eab57['XfDrw']);_0x3d82b3&&commandRepository['setAiSessionTimeStamp']((await _0x214050[_0x4f92a3(0x11e)]())['getId']());}catch(_0x47ba01){logger['error'](_0x4f92a3(0x128)+_0x47ba01);}});await _0x48804e[_0x34a223(0x154)](_0x516bab);}},_0x2a04e8)();const _0x14cce1=await _0x214050[_0x24e0ba(0x164)](_0x3ad960);try{if(_0x48804e[_0x24e0ba(0x17d)](_0x3ad960[_0x24e0ba(0x130)],_0x48804e[_0x24e0ba(0x175)])||_0x48804e[_0x24e0ba(0x17a)](_0x3ad960[_0x24e0ba(0x130)],_0x48804e[_0x24e0ba(0x155)])){const _0x55e1ec=_0x3ad960['parameters_']&&_0x3ad960['parameters_'][_0x24e0ba(0x133)],_0x302455=_0x3ad960['parameters_']&&_0x3ad960[_0x24e0ba(0x165)]['args'],_0x341945=_0x302455&&util[_0x24e0ba(0x15a)]('%j',_0x302455);if(_0x55e1ec&&_0x48804e[_0x24e0ba(0x135)](typeof _0x55e1ec,_0x48804e[_0x24e0ba(0x197)])){const _0x1cfe1d=constants[_0x24e0ba(0x137)][_0x24e0ba(0x187)](_0x145f14=>_0x55e1ec['includes'](_0x145f14)||_0x341945&&_0x341945['includes'](_0x145f14));if(_0x1cfe1d){const _0x67818b={};_0x67818b[_0x24e0ba(0x120)]=_0x1cfe1d,_0x67818b['parameters']=_0x302455;const _0x5df767={};_0x5df767['body']=_0x14cce1;const _0xeae0d1={};_0xeae0d1[_0x24e0ba(0x17b)]=_0x67818b,_0xeae0d1[_0x24e0ba(0x18f)]=_0x5df767,automationLogger[_0x24e0ba(0x12b)]('['+new Date()[_0x24e0ba(0x11f)]()+'][\x20SDK-AUTOMATION\x20]\x20'+util[_0x24e0ba(0x15a)]('%j',_0xeae0d1));}}}}catch(_0xef213){logger[_0x24e0ba(0x12b)](_0x24e0ba(0x18b)+_0xef213[_0x24e0ba(0x17c)]);}return await PerformanceTester[_0x24e0ba(0x142)](PerformanceDriverEvents[_0x24e0ba(0x18a)],async()=>{const _0x7325fa=_0x24e0ba;if(!helper[_0x7325fa(0x158)]()&&(commandRepository[_0x7325fa(0x163)]()||globals[_0x7325fa(0x162)](_0x48804e[_0x7325fa(0x196)]))&&_0x48804e[_0x7325fa(0x17d)](_0x3ad960[_0x7325fa(0x130)],_0x48804e[_0x7325fa(0x12d)])&&!_0x3ad960[_0x7325fa(0x151)]&&globals['getGlobal'](_0x48804e[_0x7325fa(0x11a)])&&globals['getGlobal'](_0x48804e[_0x7325fa(0x195)])){const _0x959bf4=new Date(),_0x5df975=PerformanceTester[_0x7325fa(0x142)](_0x48804e[_0x7325fa(0x171)],async()=>{const _0x15eb9e=_0x7325fa;return await aiSdkWrapper[_0x15eb9e(0x157)](_0x3c77fc,_0x214050,_0x3ad960);});await _0x48804e[_0x7325fa(0x168)](_0x5df975);}},{'command':_0x3ad960[_0x24e0ba(0x130)]})(),_0x14cce1;}catch(_0x5ef56d){await PerformanceTester[_0x24e0ba(0x142)](PerformanceDriverEvents[_0x24e0ba(0x18a)],async()=>{const _0x51786c=_0x24e0ba;logger['debug'](_0x1eab57[_0x51786c(0x126)]);try{if(!helper[_0x51786c(0x158)]()&&(_0x1eab57['PtLHX'](_0x5ef56d[_0x51786c(0x156)],_0x1eab57['SbYaU'])||_0x1eab57['PtLHX'](_0x5ef56d[_0x51786c(0x156)],_0x1eab57[_0x51786c(0x144)]))&&_0x1eab57[_0x51786c(0x170)](_0x3ad960[_0x51786c(0x130)],_0x1eab57[_0x51786c(0x150)])&&commandRepository[_0x51786c(0x163)]()&&globals['getGlobal'](_0x1eab57[_0x51786c(0x18e)])&&globals[_0x51786c(0x162)](_0x1eab57[_0x51786c(0x139)])){_0x1eab57[_0x51786c(0x131)](_0x3ad960[_0x51786c(0x165)][_0x51786c(0x11c)],_0x1eab57[_0x51786c(0x121)])?logger[_0x51786c(0x159)](_0x1eab57[_0x51786c(0x132)](_0x1eab57['FVzdM'](_0x1eab57['MmNia'],_0x3ad960['parameters_'][_0x51786c(0x18d)]),_0x1eab57['GMfBK'])):logger[_0x51786c(0x159)](_0x1eab57['FdvAx'](_0x1eab57['qLXEd'](_0x1eab57[_0x51786c(0x132)](_0x1eab57[_0x51786c(0x13a)](_0x1eab57[_0x51786c(0x143)],_0x3ad960['parameters_'][_0x51786c(0x11c)]),':\x20'),_0x3ad960[_0x51786c(0x165)][_0x51786c(0x18d)]),_0x1eab57[_0x51786c(0x185)]));const _0x272a0a=PerformanceTester['measureWrapper'](_0x1eab57[_0x51786c(0x169)],async()=>{const _0x3ba830=_0x51786c;return await aiSdkWrapper[_0x3ba830(0x152)](_0x3c77fc,_0x214050,_0x3ad960);}),_0x269d05=new Date(),{locatorType:_0x51d10f,locatorValue:_0x5c159f,commandHealed:_0x5c4d24}=await _0x1eab57[_0x51786c(0x123)](_0x272a0a);if(_0x1eab57[_0x51786c(0x181)](_0x51d10f,_0x5c159f)){_0x3ad960['parameters_'][_0x51786c(0x11c)]=_0x51d10f,_0x3ad960[_0x51786c(0x165)][_0x51786c(0x18d)]=_0x5c159f,_0x3ad960['skipHealingSuccess']=!![];const _0x4061ab=_0x214050['execute'](_0x3ad960);return _0x1eab57['cKyaz'](_0x51d10f,_0x1eab57[_0x51786c(0x121)])?logger[_0x51786c(0x159)](_0x1eab57[_0x51786c(0x174)](_0x1eab57[_0x51786c(0x173)],_0x5c159f)):logger[_0x51786c(0x159)](_0x1eab57[_0x51786c(0x12f)](_0x1eab57[_0x51786c(0x174)](_0x1eab57[_0x51786c(0x174)](_0x1eab57['XzYws'],_0x51d10f),':\x20'),_0x5c159f)),_0x4061ab;}else!_0x5c4d24&&(_0x1eab57[_0x51786c(0x119)](_0x51d10f,_0x1eab57['FEAGR'])?logger[_0x51786c(0x159)](_0x1eab57[_0x51786c(0x14d)](_0x1eab57['ySlTD'],_0x3ad960[_0x51786c(0x165)]['value'])):logger[_0x51786c(0x159)](_0x1eab57[_0x51786c(0x14b)](_0x1eab57[_0x51786c(0x12f)](_0x1eab57[_0x51786c(0x14b)](_0x1eab57['iWWSc'],_0x3ad960[_0x51786c(0x165)]['using']),':\x20'),_0x3ad960[_0x51786c(0x165)][_0x51786c(0x18d)])));}!_0x3ff518&&_0x1eab57[_0x51786c(0x170)](_0x3ad960[_0x51786c(0x130)],_0x1eab57[_0x51786c(0x18c)])&&helper[_0x51786c(0x12c)](_0x3ad960,[_0x1eab57[_0x51786c(0x15e)],_0x1eab57[_0x51786c(0x13b)]])&&!!constants[_0x51786c(0x141)]['find'](_0x18bf63=>{const _0x2d3dd4=_0x51786c;return _0x5ef56d['toString']()[_0x2d3dd4(0x12a)](_0x18bf63);})&&helper[_0x51786c(0x184)](_0x3ad960['parameters_']['url'],!![]);}catch(_0x13faa3){logger[_0x51786c(0x17f)](_0x1eab57['XcQkX'],_0x13faa3);}},{'success':![],'failure':_0x5ef56d})();throw _0x5ef56d;}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a111_0x730c9f=a111_0x2179;function a111_0x2179(_0x4fd5e9,_0x5f10ff){const _0x2f12bc=a111_0x2f12();return a111_0x2179=function(_0x21798d,_0x5cabd2){_0x21798d=_0x21798d-0x1d0;let _0x57deb9=_0x2f12bc[_0x21798d];return _0x57deb9;},a111_0x2179(_0x4fd5e9,_0x5f10ff);}function a111_0x2f12(){const _0x58b1ba=['RtvPf','pid','O11y_EVENTS','6341490DHQnsW','1083090uXLiZJ','TEST_SCREENSHOT','BjFes','BS_TESTOPS_ALLOW_SCREENSHOTS','end','then','./performance/performance-tester','MimEv','quit','initQuit','zLGwg','DWuyV','patchQuit','TAKE_SCREENSHOT','true','patchScreenshot','takeScreenshot','wkcFA','vBwKe','2558822JUTcAR','2zidjqf','5604NNmuoe','toISOString','quitCount_','catch','419072RavRqP','initScreenshot','start','./performance/constants','overrideTakeScreenshot','692LJIoqv','2492224TEuwOJ','UFliI','1262920AJarNO','dXCQX'];a111_0x2f12=function(){return _0x58b1ba;};return a111_0x2f12();}(function(_0x4516da,_0x4fbcad){const _0xe18bf6=a111_0x2179,_0x428c8f=_0x4516da();while(!![]){try{const _0x2d25df=-parseInt(_0xe18bf6(0x1dc))/0x1*(-parseInt(_0xe18bf6(0x1d7))/0x2)+parseInt(_0xe18bf6(0x1d8))/0x3*(parseInt(_0xe18bf6(0x1e1))/0x4)+-parseInt(_0xe18bf6(0x1e4))/0x5+-parseInt(_0xe18bf6(0x1ea))/0x6+-parseInt(_0xe18bf6(0x1d6))/0x7+-parseInt(_0xe18bf6(0x1e2))/0x8+parseInt(_0xe18bf6(0x1e9))/0x9;if(_0x2d25df===_0x4fbcad)break;else _0x428c8f['push'](_0x428c8f['shift']());}catch(_0x32083a){_0x428c8f['push'](_0x428c8f['shift']());}}}(a111_0x2f12,0x52321));const PerformanceTester=require(a111_0x730c9f(0x1f0)),O11yEvents=require(a111_0x730c9f(0x1df))[a111_0x730c9f(0x1e8)];exports[a111_0x730c9f(0x1e0)]=_0x2eb214=>{const _0x22a4a7=a111_0x730c9f,_0x6a944d={'RtvPf':_0x22a4a7(0x1eb),'zLGwg':function(_0x3d06d2,_0x20417c){return _0x3d06d2(_0x20417c);},'TQbUK':function(_0x6b4799,_0x122373){return _0x6b4799(_0x122373);},'MimEv':function(_0x2f1099,_0x5a9f5b){return _0x2f1099!==_0x5a9f5b;},'vBwKe':_0x22a4a7(0x1d1)};if(_0x6a944d[_0x22a4a7(0x1f1)](process['env'][_0x22a4a7(0x1ed)],_0x6a944d[_0x22a4a7(0x1d5)]))return;if(_0x2eb214[_0x22a4a7(0x1d2)])return;_0x2eb214['patchScreenshot']=!![],_0x2eb214[_0x22a4a7(0x1dd)]=_0x2eb214[_0x22a4a7(0x1d3)],_0x2eb214[_0x22a4a7(0x1d3)]=()=>{const _0x4b37cc={'dXCQX':function(_0x857cae,_0x12f550){return _0x6a944d['TQbUK'](_0x857cae,_0x12f550);}};return new Promise(function(_0x2bb680,_0x5d7287){const _0x3be907=a111_0x2179,_0x504837={'zZtVc':_0x6a944d[_0x3be907(0x1e6)],'HDpvo':function(_0x5851bf,_0x32f1eb){const _0x48950f=_0x3be907;return _0x6a944d[_0x48950f(0x1f4)](_0x5851bf,_0x32f1eb);}};_0x2eb214[_0x3be907(0x1dd)]()[_0x3be907(0x1ef)](_0x31c727=>{const _0x20608d=_0x3be907;PerformanceTester[_0x20608d(0x1de)](O11yEvents[_0x20608d(0x1d0)]),process['emit']('bs:addLog:'+process[_0x20608d(0x1e7)],{'timestamp':new Date()[_0x20608d(0x1d9)](),'message':_0x31c727,'kind':_0x504837['zZtVc']}),_0x504837['HDpvo'](_0x2bb680,_0x31c727),PerformanceTester['end'](O11yEvents[_0x20608d(0x1d0)]);})[_0x3be907(0x1db)](_0x4f36d2=>{const _0x2c2d5d=_0x3be907;PerformanceTester[_0x2c2d5d(0x1ee)](O11yEvents[_0x2c2d5d(0x1d0)]),_0x4b37cc[_0x2c2d5d(0x1e5)](_0x5d7287,_0x4f36d2);});});};},exports['overrideQuit']=(_0x4d78b2,_0x206e3f=null)=>{const _0x5243c2=a111_0x730c9f,_0x19d108={'UFliI':function(_0x3ae4ca){return _0x3ae4ca();},'DWuyV':function(_0x331ae9,_0x4dc80e){return _0x331ae9>_0x4dc80e;},'wkcFA':function(_0x2c31f0,_0x5a2e3a){return _0x2c31f0>_0x5a2e3a;}};if(_0x4d78b2[_0x5243c2(0x1f6)])return;_0x4d78b2[_0x5243c2(0x1f6)]=!![],_0x4d78b2['initQuit']=_0x4d78b2[_0x5243c2(0x1f2)],_0x4d78b2['quit']=()=>{const _0x58156d=_0x5243c2,_0x300f0e={'BjFes':function(_0x44807f){const _0x5cff5c=a111_0x2179;return _0x19d108[_0x5cff5c(0x1e3)](_0x44807f);}};if(_0x206e3f){_0x206e3f['quitCount_']+=0x1;if(_0x19d108[_0x58156d(0x1f5)](_0x206e3f['quitCount_'],0x1))return _0x4d78b2['initQuit']();}else{_0x4d78b2[_0x58156d(0x1da)]+=0x1;if(_0x19d108[_0x58156d(0x1d4)](_0x4d78b2[_0x58156d(0x1da)],0x1))return _0x4d78b2[_0x58156d(0x1f3)]();}return new Promise(function(_0x3422c8){const _0x3c785d=_0x58156d;_0x300f0e[_0x3c785d(0x1ec)](_0x3422c8);});};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a112_0x491ec2=a112_0x3bbf;function a112_0x5eae(){const _0x4901dd=['10gXKHPq','../logger','joMyl','520651buZmQX','wObqK','bxoeu','getBinaryPath','app','error','start','9656vqMiSt','http://localhost:5338','../../helpers/performance/constants','stderr','stdout','isRunning','stop','OujIH','7788087MhrWKK','6393BvEkUL','nodeRequest','app:exec','TMseF','Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20','Percy\x20healthcheck\x20successful','Error\x20creating\x20percy\x20config:\x20','percyOptions','CbUbk','child_process','2502120EMrRzb','BiyLU','Percy\x20config\x20created\x20at\x20','join','end',':start','../helper','env','./PercyBinary','fetchPercyToken','LUFvl','version','data','../../helpers/testhub/constants','percy.log','isProcessRunning','MiDZp','GET','1582ZHECVC','402UBKjrH','NPPKT','../../helpers/performance/performance-tester','debug','path','exports','oFwKz','ltaVr','2342604eadYZu','nisAz','lejTY','stringify','winstonLogger','TsFcX','DpvVF','Percy\x20fetch\x20token\x20success','yyKWY','DOWNLOAD','tmpdir','NcsOV','PERCY_SERVER_ADDRESS','close','jZvbX','healthcheck','assign','2778875JlPmdJ','flags'];a112_0x5eae=function(){return _0x4901dd;};return a112_0x5eae();}(function(_0x20b2ef,_0x394189){const _0x11b53a=a112_0x3bbf,_0x2ecfab=_0x20b2ef();while(!![]){try{const _0x4f5a5d=parseInt(_0x11b53a(0xb5))/0x1+parseInt(_0x11b53a(0xe2))/0x2*(-parseInt(_0x11b53a(0xc5))/0x3)+parseInt(_0x11b53a(0x9f))/0x4+-parseInt(_0x11b53a(0xb0))/0x5+-parseInt(_0x11b53a(0xcf))/0x6+-parseInt(_0x11b53a(0xe1))/0x7*(parseInt(_0x11b53a(0xbc))/0x8)+-parseInt(_0x11b53a(0xc4))/0x9*(-parseInt(_0x11b53a(0xb2))/0xa);if(_0x4f5a5d===_0x394189)break;else _0x2ecfab['push'](_0x2ecfab['shift']());}catch(_0x228d9d){_0x2ecfab['push'](_0x2ecfab['shift']());}}}(a112_0x5eae,0x48b09));const fs=require('fs'),path=require(a112_0x491ec2(0xe6)),os=require('os'),{spawn}=require(a112_0x491ec2(0xce)),helper=require(a112_0x491ec2(0xd5)),logger=require('../logger')[a112_0x491ec2(0xa3)],{getLogDir}=require(a112_0x491ec2(0xb3)),testHubConstants=require(a112_0x491ec2(0xdc)),PerformanceTester=require(a112_0x491ec2(0xe4)),{PERCY_EVENTS:PerformanceEvents}=require(a112_0x491ec2(0xbe)),PercyBinary=require(a112_0x491ec2(0xd7));function a112_0x3bbf(_0x1a9136,_0x1a91f1){const _0x5eaefe=a112_0x5eae();return a112_0x3bbf=function(_0x3bbfc7,_0x573346){_0x3bbfc7=_0x3bbfc7-0x9f;let _0x51255d=_0x5eaefe[_0x3bbfc7];return _0x51255d;},a112_0x3bbf(_0x1a9136,_0x1a91f1);}class Percy{#logfile=path[a112_0x491ec2(0xd2)](getLogDir(),a112_0x491ec2(0xdd));#address=process[a112_0x491ec2(0xd6)][a112_0x491ec2(0xab)]||a112_0x491ec2(0xbd);#binaryPath=null;#config=null;#proc=null;#logStream=null;#isApp=![];[a112_0x491ec2(0xde)]=![];constructor(_0x4177d3){const _0x1cc70c=a112_0x491ec2;this.#config=_0x4177d3,!!_0x4177d3[_0x1cc70c(0xb9)]&&(this.#isApp=!![]);}async #getBinaryPath(){const _0x3f06eb=a112_0x491ec2;if(!this.#binaryPath){const _0x50246a=new PercyBinary();PerformanceTester[_0x3f06eb(0xbb)](PerformanceEvents[_0x3f06eb(0xa8)]),this.#binaryPath=await _0x50246a[_0x3f06eb(0xb8)](this.#config),PerformanceTester[_0x3f06eb(0xd3)](PerformanceEvents['DOWNLOAD']);}return this.#binaryPath;}async #sleep(_0x118492){return new Promise(_0x1ed5f8=>setTimeout(_0x1ed5f8,_0x118492));}async['healthcheck'](){const _0x297ba9=a112_0x491ec2,_0x499ecb={};_0x499ecb[_0x297ba9(0xad)]=_0x297ba9(0xe0),_0x499ecb[_0x297ba9(0xd9)]='percy/healthcheck';const _0x318921=_0x499ecb;try{const _0x489185=await helper['nodeRequest'](_0x318921['jZvbX'],_0x318921[_0x297ba9(0xd9)],null,null,this.#address);if(_0x489185)return!![];}catch(_0x2f34bc){return![];}}async[a112_0x491ec2(0xbb)](){const _0x27b90a=a112_0x491ec2,_0x72d2b0={'TMseF':_0x27b90a(0xc7),'NcsOV':'exec','NPPKT':function(_0x223a5d,_0x2bf977,_0x1c4f20,_0x5910b8){return _0x223a5d(_0x2bf977,_0x1c4f20,_0x5910b8);},'wObqK':_0x27b90a(0xac),'ibsmh':_0x27b90a(0xca)},_0x3da342=await this.#getBinaryPath(),_0x26f120={};_0x26f120[_0x27b90a(0xb1)]='a',this.#logStream=fs['createWriteStream'](this.#logfile,_0x26f120);const _0x26bfe4=await this[_0x27b90a(0xd8)](),_0x10c6e1=await this['createPercyConfig']();if(!_0x26bfe4)return![];const _0x26efb9=[(this.#isApp?_0x72d2b0[_0x27b90a(0xc8)]:_0x72d2b0[_0x27b90a(0xaa)])+_0x27b90a(0xd4)];_0x10c6e1&&_0x26efb9['push']('-c',_0x10c6e1);this.#proc=_0x72d2b0[_0x27b90a(0xe3)](spawn,_0x3da342,_0x26efb9,{'env':Object[_0x27b90a(0xaf)](process[_0x27b90a(0xd6)],{'PERCY_TOKEN':_0x26bfe4,'TH_BUILD_UUID':process[_0x27b90a(0xd6)][testHubConstants['ENV_VAR']['BROWSERSTACK_TESTHUB_UUID']]})}),this.#proc[_0x27b90a(0xc0)]['pipe'](this.#logStream),this.#proc[_0x27b90a(0xbf)]['pipe'](this.#logStream),this[_0x27b90a(0xde)]=!![];var _0x189109=this;this.#proc['on'](_0x72d2b0[_0x27b90a(0xb6)],function(_0x1c48ff){const _0x254444=_0x27b90a;_0x189109[_0x254444(0xde)]=![];});do{const _0x5589c2=await this[_0x27b90a(0xae)]();if(_0x5589c2)return logger[_0x27b90a(0xe5)](_0x72d2b0['ibsmh']),!![];await this.#sleep(0x3e8);}while(this[_0x27b90a(0xde)]);return![];}async[a112_0x491ec2(0xc2)](){const _0x54d2c4=a112_0x491ec2,_0x5aa829={'CbUbk':function(_0x3c6277,_0x10a644){return _0x3c6277(_0x10a644);},'BiyLU':function(_0x2543d2,_0x4a44ff,_0x4a27d6){return _0x2543d2(_0x4a44ff,_0x4a27d6);},'lejTY':'exec:stop','ltaVr':_0x54d2c4(0xac)},_0x4db1fc=await this.#getBinaryPath();return new Promise((_0x1a39cd,_0xbd1f44)=>{const _0x480a18=_0x54d2c4,_0x50532e=_0x5aa829[_0x480a18(0xd0)](spawn,_0x4db1fc,[_0x5aa829[_0x480a18(0xa1)]]);_0x50532e['on'](_0x5aa829[_0x480a18(0xe9)],_0x11ad96=>{const _0x27cefc=_0x480a18;this[_0x27cefc(0xde)]=![],this.#logStream&&(this.#logStream[_0x27cefc(0xd3)](),this.#logStream=null),_0x5aa829[_0x27cefc(0xcd)](_0x1a39cd,_0x11ad96);});});}[a112_0x491ec2(0xc1)](){return this['isProcessRunning'];}async[a112_0x491ec2(0xd8)](){const _0x4c91c8=a112_0x491ec2,_0x23c05f={};_0x23c05f['OujIH']=_0x4c91c8(0xb9),_0x23c05f['yyKWY']='automate',_0x23c05f['oFwKz']=_0x4c91c8(0xe0),_0x23c05f[_0x4c91c8(0xa5)]=_0x4c91c8(0xa6);const _0x52c9ec=_0x23c05f,_0x5cf875=this.#config['projectName'];try{const _0x2e1450=this.#isApp?_0x52c9ec[_0x4c91c8(0xc3)]:_0x52c9ec[_0x4c91c8(0xa7)],_0x25bd1b=await helper[_0x4c91c8(0xc6)](_0x52c9ec[_0x4c91c8(0xe8)],'api/app_percy/get_project_token?name='+_0x5cf875+'&type='+_0x2e1450,{},this.#config),_0x4a497d=_0x25bd1b[_0x4c91c8(0xdb)];return logger[_0x4c91c8(0xe5)](_0x52c9ec[_0x4c91c8(0xa5)]),_0x4a497d['token'];}catch(_0x343342){return logger[_0x4c91c8(0xba)](_0x4c91c8(0xc9)+_0x343342),null;}}async['createPercyConfig'](){const _0x855ec8=a112_0x491ec2,_0x228f74={'joMyl':function(_0x419227,_0x2c26b5){return _0x419227(_0x2c26b5);},'bxoeu':function(_0x4a54da,_0x59ac61){return _0x4a54da+_0x59ac61;},'dgMnA':_0x855ec8(0xd1),'IOwTi':function(_0x4869df,_0xd8a72a){return _0x4869df(_0xd8a72a);},'nisAz':'percy.json'};if(!this.#config[_0x855ec8(0xcc)])return null;const _0x1dc020=path['join'](os[_0x855ec8(0xa9)](),_0x228f74[_0x855ec8(0xa0)]),_0x16182b=this.#config[_0x855ec8(0xcc)];return!_0x16182b[_0x855ec8(0xda)]&&(_0x16182b[_0x855ec8(0xda)]='2'),new Promise((_0x649dde,_0x5b0565)=>{const _0x2ac558=_0x855ec8,_0x2aa750={'TsFcX':function(_0x61ed47,_0x54078e){const _0x4d8ddd=a112_0x3bbf;return _0x228f74[_0x4d8ddd(0xb4)](_0x61ed47,_0x54078e);},'gXjlf':function(_0x2fe1b2,_0x57705e){const _0x9b2c6d=a112_0x3bbf;return _0x228f74[_0x9b2c6d(0xb7)](_0x2fe1b2,_0x57705e);},'MxsJu':_0x228f74['dgMnA'],'MiDZp':function(_0x25e8bd,_0xea1cd8){return _0x228f74['IOwTi'](_0x25e8bd,_0xea1cd8);}};fs['writeFile'](_0x1dc020,JSON[_0x2ac558(0xa2)](_0x16182b),_0x47ed42=>{const _0x17f559=_0x2ac558;_0x47ed42&&(logger[_0x17f559(0xba)](_0x17f559(0xcb)+_0x47ed42),_0x2aa750[_0x17f559(0xa4)](_0x649dde,null)),logger[_0x17f559(0xe5)](_0x2aa750['gXjlf'](_0x2aa750['MxsJu'],_0x1dc020)),_0x2aa750[_0x17f559(0xdf)](_0x649dde,_0x1dc020);});});}}module[a112_0x491ec2(0xe7)]=Percy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a111_0x524d9a=a111_0xc975;(function(_0x3b25fc,_0x75e9c5){const _0x3045b8=a111_0xc975,_0xd9ad49=_0x3b25fc();while(!![]){try{const _0x4b0047=-parseInt(_0x3045b8(0x259))/0x1*(-parseInt(_0x3045b8(0x225))/0x2)+parseInt(_0x3045b8(0x21a))/0x3+parseInt(_0x3045b8(0x1f5))/0x4+-parseInt(_0x3045b8(0x1fa))/0x5+-parseInt(_0x3045b8(0x1f4))/0x6*(-parseInt(_0x3045b8(0x1f3))/0x7)+parseInt(_0x3045b8(0x213))/0x8+parseInt(_0x3045b8(0x24e))/0x9*(-parseInt(_0x3045b8(0x25b))/0xa);if(_0x4b0047===_0x75e9c5)break;else _0xd9ad49['push'](_0xd9ad49['shift']());}catch(_0x34103a){_0xd9ad49['push'](_0xd9ad49['shift']());}}}(a111_0x1b5b,0x339f3));const {https}=require(a111_0x524d9a(0x268)),url=require(a111_0x524d9a(0x1f7)),yauzl=require(a111_0x524d9a(0x200)),fs=require('fs'),path=require(a111_0x524d9a(0x269)),os=require('os'),{spawn}=require(a111_0x524d9a(0x224)),HttpsProxyAgent=require(a111_0x524d9a(0x21e)),logger=require(a111_0x524d9a(0x25f))[a111_0x524d9a(0x23d)];class PercyBinary{#hostOS=process[a111_0x524d9a(0x272)];#httpPath=null;#binaryName=a111_0x524d9a(0x1fd);#orderedPaths=[path[a111_0x524d9a(0x267)](this.#homedir(),'.browserstack'),process['cwd'](),os[a111_0x524d9a(0x264)]()];constructor(){const _0xdb99a=a111_0x524d9a,_0x8b135b={};_0x8b135b[_0xdb99a(0x232)]=_0xdb99a(0x243),_0x8b135b[_0xdb99a(0x24b)]=function(_0x16bfc6,_0x179dc1){return _0x16bfc6+_0x179dc1;},_0x8b135b[_0xdb99a(0x240)]='/percy-osx.zip',_0x8b135b[_0xdb99a(0x229)]=function(_0x2966c7,_0x336173){return _0x2966c7+_0x336173;},_0x8b135b[_0xdb99a(0x237)]='/percy-win.zip',_0x8b135b[_0xdb99a(0x260)]=_0xdb99a(0x235),_0x8b135b[_0xdb99a(0x22f)]=function(_0x2bdf35,_0x29e19d){return _0x2bdf35+_0x29e19d;},_0x8b135b[_0xdb99a(0x253)]='/percy-linux.zip';const _0x2685b0=_0x8b135b,_0x2beaa3=_0x2685b0['aldKP'];if(this.#hostOS[_0xdb99a(0x1ec)](/darwin|mac os/i))this.#httpPath=_0x2685b0[_0xdb99a(0x24b)](_0x2beaa3,_0x2685b0[_0xdb99a(0x240)]);else this.#hostOS[_0xdb99a(0x1ec)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x2685b0[_0xdb99a(0x229)](_0x2beaa3,_0x2685b0[_0xdb99a(0x237)]),this.#binaryName=_0x2685b0['gVtWk']):this.#httpPath=_0x2685b0[_0xdb99a(0x22f)](_0x2beaa3,_0x2685b0['EOnqo']);}#getAvailableDirs(){const _0x4a9795=a111_0x524d9a,_0x22f9c3={};_0x22f9c3[_0x4a9795(0x257)]=function(_0x2fbfa0,_0x1fa9cd){return _0x2fbfa0<_0x1fa9cd;},_0x22f9c3[_0x4a9795(0x271)]='Error\x20trying\x20to\x20download\x20percy\x20binary';const _0x9cfd5b=_0x22f9c3;for(var _0x59297e=0x0;_0x9cfd5b['FRgaM'](_0x59297e,this.#orderedPaths[_0x4a9795(0x1f1)]);_0x59297e++){var _0xca060c=this.#orderedPaths[_0x59297e];if(this.#makePath(_0xca060c))return _0xca060c;}throw new Error(_0x9cfd5b[_0x4a9795(0x271)]);}#makePath(_0x4390f2){const _0x138258=a111_0x524d9a;try{return _0x4390f2&&!this.#checkPath(_0x4390f2)&&fs[_0x138258(0x255)](_0x4390f2),!![];}catch{return![];}}#checkPath(_0xf6777d,_0x5675e4){const _0x2111bf=a111_0x524d9a,_0x4f758c={};_0x4f758c['jUnmK']=function(_0x51c89c,_0x5d499f){return _0x51c89c|_0x5d499f;},_0x4f758c['MdaZR']=function(_0x40542c,_0xa97c9a){return _0x40542c!==_0xa97c9a;},_0x4f758c[_0x2111bf(0x25c)]='undefined';const _0x11717e=_0x4f758c;_0x5675e4=_0x5675e4||_0x11717e[_0x2111bf(0x228)](fs['R_OK'],fs[_0x2111bf(0x263)]);try{return fs[_0x2111bf(0x27a)](_0xf6777d,_0x5675e4),!![];}catch(_0x5e9ae1){if(_0x11717e[_0x2111bf(0x25d)](typeof fs['accessSync'],_0x11717e['dVgmr']))return![];try{return fs[_0x2111bf(0x22e)](_0xf6777d),!![];}catch(_0x42e3ed){return![];}}}#getETagPath(_0x2f981a){const _0x3d5920=a111_0x524d9a;return path[_0x3d5920(0x267)](_0x2f981a,this.#binaryName+_0x3d5920(0x222));}#loadETag(_0x351441){const _0x1aa507=a111_0x524d9a,_0x4c9f4f={};_0x4c9f4f[_0x1aa507(0x223)]='utf8';const _0x3183f8=_0x4c9f4f,_0x412e53=this.#getETagPath(_0x351441);if(this.#checkPath(_0x412e53))try{return fs[_0x1aa507(0x252)](_0x412e53,_0x3183f8[_0x1aa507(0x223)])['trim']();}catch(_0x42aa99){logger['warn']('Failed\x20to\x20read\x20ETag\x20file:\x20'+_0x42aa99);}return null;}#saveETag(_0x308ba9,_0xadf4fd){const _0x2c10c3=a111_0x524d9a,_0x397264={};_0x397264[_0x2c10c3(0x1fb)]=_0x2c10c3(0x221);const _0x42ffb5=_0x397264;if(!_0xadf4fd)return;try{const _0x3fdb18=this.#getETagPath(_0x308ba9);fs['writeFileSync'](_0x3fdb18,_0xadf4fd),logger[_0x2c10c3(0x1f8)](_0x42ffb5[_0x2c10c3(0x1fb)]);}catch(_0x6583f2){logger[_0x2c10c3(0x239)](_0x2c10c3(0x24a)+_0x6583f2);}}async #handleBinaryDownload(_0x5063e8,_0x4f1895,_0x1731f2){const _0x181395=a111_0x524d9a,_0x2edbd5={};_0x2edbd5[_0x181395(0x1ff)]=_0x181395(0x218);const _0x99d0e8=_0x2edbd5,_0xcef01b=await this['validateBinary'](_0x5063e8[_0x181395(0x246)]);if(!_0xcef01b){logger['error'](_0x99d0e8[_0x181395(0x1ff)]);const _0x4490e2=await this[_0x181395(0x208)](_0x4f1895,_0x1731f2);return _0x4490e2['binaryPath'];}return _0x5063e8[_0x181395(0x246)];}async['getBinaryPath'](_0x198643){const _0x214ad1=a111_0x524d9a,_0x39e7e6={};_0x39e7e6['vuoUc']=_0x214ad1(0x275),_0x39e7e6[_0x214ad1(0x279)]='New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update';const _0x409f57=_0x39e7e6,_0x4af6fd=this.#getAvailableDirs(),_0x5f36b2=path['join'](_0x4af6fd,this.#binaryName);if(this.#checkPath(_0x5f36b2,fs[_0x214ad1(0x238)])){const _0x5b9481=this.#loadETag(_0x4af6fd);if(_0x5b9481)try{const _0x2411dc=await this[_0x214ad1(0x208)](_0x198643,_0x4af6fd,_0x5b9481);if(!_0x2411dc[_0x214ad1(0x1f6)])return logger[_0x214ad1(0x1f8)](_0x409f57[_0x214ad1(0x254)]),_0x5f36b2;return logger[_0x214ad1(0x1f8)](_0x409f57['OBrxO']),await this.#handleBinaryDownload(_0x2411dc,_0x198643,_0x4af6fd);}catch(_0x30b618){return logger[_0x214ad1(0x239)]('Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20'+_0x30b618),_0x5f36b2;}}const _0x2ca4f6=await this[_0x214ad1(0x208)](_0x198643,_0x4af6fd);return await this.#handleBinaryDownload(_0x2ca4f6,_0x198643,_0x4af6fd);}['download'](_0x814278,_0x388570,_0x222222=null){const _0x40900e=a111_0x524d9a,_0x2daac7={'CLIsA':function(_0x437747,_0x9bf20e){return _0x437747(_0x9bf20e);},'BTxmJ':function(_0x18db1,_0x4884c2){return _0x18db1===_0x4884c2;},'rJquq':_0x40900e(0x24d),'YbgNX':_0x40900e(0x22b),'ieEjX':function(_0x53b976,_0x2c4564){return _0x53b976+_0x2c4564;},'CQrMv':_0x40900e(0x26d)};_0x388570&&!this.#checkPath(_0x388570)&&fs[_0x40900e(0x255)](_0x388570);const _0x3499a8=this.#binaryName,_0x1e91f3=path[_0x40900e(0x267)](_0x388570,_0x2daac7[_0x40900e(0x204)](_0x3499a8,_0x2daac7[_0x40900e(0x1f2)])),_0x22be02=fs[_0x40900e(0x231)](_0x1e91f3),_0xf559b3=url[_0x40900e(0x22c)](this.#httpPath);if(_0x814278[_0x40900e(0x205)]&&_0x814278[_0x40900e(0x261)]){const _0x14935d={};_0x14935d[_0x40900e(0x26f)]=_0x814278[_0x40900e(0x205)],_0x14935d[_0x40900e(0x24f)]=_0x814278[_0x40900e(0x261)],_0xf559b3['agent']=new HttpsProxyAgent(_0x14935d);}if(_0x814278['useCaCertificate'])try{_0xf559b3['ca']=fs[_0x40900e(0x252)](_0x814278[_0x40900e(0x266)]);}catch(_0x555653){logger[_0x40900e(0x24d)](_0x40900e(0x23c)+_0x555653);}if(_0x222222){const _0x405d5a={};_0x405d5a[_0x40900e(0x233)]=_0x222222,_0x405d5a[_0x40900e(0x278)]=_0x2daac7['YbgNX'],_0xf559b3['headers']=_0x405d5a;}else{const _0x7077f8={};_0x7077f8[_0x40900e(0x278)]=_0x2daac7[_0x40900e(0x26c)],_0xf559b3['headers']=_0x7077f8;}return new Promise((_0x5ebc6e,_0x43e32e)=>{const _0x277f00=_0x40900e,_0x3cb693={'NeixH':function(_0x49435c,_0x4304ac){const _0x15ccd4=a111_0xc975;return _0x2daac7[_0x15ccd4(0x227)](_0x49435c,_0x4304ac);},'aswzI':function(_0x4e083b,_0x2bda8d){const _0x4fce29=a111_0xc975;return _0x2daac7[_0x4fce29(0x215)](_0x4e083b,_0x2bda8d);},'Honzj':function(_0x2402f1,_0x212bf2){return _0x2daac7['CLIsA'](_0x2402f1,_0x212bf2);},'sbjVD':_0x2daac7[_0x277f00(0x250)],'yQqKX':_0x2daac7[_0x277f00(0x26c)],'XWQbs':function(_0x54e079,_0x5190ac){return _0x2daac7['CLIsA'](_0x54e079,_0x5190ac);}};https[_0x277f00(0x20b)](_0xf559b3,_0x53e248=>{const _0x156a78=_0x277f00,_0x2a15ad={'FdPHh':function(_0x9550b5,_0x2d8543){const _0x4d676b=a111_0xc975;return _0x3cb693[_0x4d676b(0x20a)](_0x9550b5,_0x2d8543);}};if(_0x222222&&_0x3cb693[_0x156a78(0x1fc)](_0x53e248[_0x156a78(0x26b)],0x130)){_0x22be02[_0x156a78(0x236)]();const _0x116e71={};_0x116e71[_0x156a78(0x1f6)]=![],_0x3cb693['Honzj'](_0x5ebc6e,_0x116e71);return;}const _0x2012a7=_0x53e248[_0x156a78(0x273)][_0x156a78(0x1ea)];_0x2012a7&&this.#saveETag(_0x388570,_0x2012a7),_0x53e248[_0x156a78(0x21c)](_0x22be02),_0x53e248['on'](_0x3cb693[_0x156a78(0x20c)],function(_0x3f5989){const _0x19d8b9=_0x156a78;logger['error'](_0x19d8b9(0x241)+_0x3f5989),_0x2a15ad[_0x19d8b9(0x26a)](_0x43e32e,_0x3f5989);}),_0x22be02['on'](_0x3cb693[_0x156a78(0x20c)],function(_0x128af6){const _0x33e03a=_0x156a78;logger['error'](_0x33e03a(0x247)+_0x128af6),_0x2a15ad['FdPHh'](_0x43e32e,_0x128af6);}),_0x22be02['on'](_0x3cb693[_0x156a78(0x242)],()=>{const _0x330663=_0x156a78;this[_0x330663(0x20f)](_0x1e91f3,_0x388570)[_0x330663(0x21b)](_0x28e0b0=>_0x5ebc6e({'needsUpdate':!![],'binaryPath':_0x28e0b0}))[_0x330663(0x23b)](_0x43e32e);});})['on'](_0x2daac7[_0x277f00(0x250)],function(_0x41902b){const _0xaf61f2=_0x277f00;logger[_0xaf61f2(0x24d)]('Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20'+_0x41902b),_0x3cb693['XWQbs'](_0x43e32e,_0x41902b);});});}[a111_0x524d9a(0x20f)](_0x4b1831,_0x46f20c){const _0x2c2ca5=a111_0x524d9a,_0x18e475={'zkRqA':function(_0x179d85,_0x1ac372){return _0x179d85(_0x1ac372);},'GCpCR':_0x2c2ca5(0x23f),'yOpMS':_0x2c2ca5(0x226),'KscKo':'error','BdnGi':_0x2c2ca5(0x207),'fSCHS':function(_0x298bae,_0x1135a6){return _0x298bae===_0x1135a6;}},_0x53d045=this.#binaryName,_0x544b42=path[_0x2c2ca5(0x267)](_0x46f20c,_0x53d045);return new Promise((_0x11bf51,_0x40a0f1)=>{const _0x1a8e4c=_0x2c2ca5,_0x518bc3={'Oodae':function(_0x124689,_0x183c22){const _0x394f82=a111_0xc975;return _0x18e475[_0x394f82(0x274)](_0x124689,_0x183c22);},'qnvXb':_0x18e475[_0x1a8e4c(0x26e)],'lZUNC':function(_0x239c44,_0x47c911){const _0x1dc1b6=_0x1a8e4c;return _0x18e475[_0x1dc1b6(0x1e8)](_0x239c44,_0x47c911);}},_0x4b927d={};_0x4b927d[_0x1a8e4c(0x209)]=!![],yauzl[_0x1a8e4c(0x22a)](_0x4b1831,_0x4b927d,function(_0x51b098,_0x218e93){const _0x3db9ac=_0x1a8e4c,_0x3a25e2={'qfUVY':function(_0x47abdc,_0x295dd3){const _0x2f8916=a111_0xc975;return _0x18e475[_0x2f8916(0x274)](_0x47abdc,_0x295dd3);},'pPsQs':_0x18e475[_0x3db9ac(0x216)]};_0x51b098&&_0x18e475['zkRqA'](_0x40a0f1,_0x51b098),_0x218e93['readEntry'](),_0x218e93['on'](_0x18e475[_0x3db9ac(0x276)],_0x56af0f=>{const _0x1ff45b=_0x3db9ac,_0x46baf8={'ghfgR':function(_0x5c61c6,_0x4e7ee2){return _0x518bc3['Oodae'](_0x5c61c6,_0x4e7ee2);},'XPmLm':_0x518bc3[_0x1ff45b(0x265)]};if(/\/$/[_0x1ff45b(0x20e)](_0x56af0f[_0x1ff45b(0x24c)]))_0x218e93[_0x1ff45b(0x234)]();else{const _0x5b07ab=fs[_0x1ff45b(0x231)](path['join'](_0x46f20c,_0x56af0f[_0x1ff45b(0x24c)]));_0x218e93['openReadStream'](_0x56af0f,function(_0x187cff,_0x47f594){const _0x4c1042=_0x1ff45b;_0x187cff&&_0x46baf8[_0x4c1042(0x21f)](_0x40a0f1,_0x51b098),_0x47f594['on'](_0x46baf8[_0x4c1042(0x21d)],function(){_0x5b07ab['close'](),_0x218e93['readEntry']();}),_0x47f594[_0x4c1042(0x21c)](_0x5b07ab);}),_0x518bc3[_0x1ff45b(0x203)](_0x56af0f['fileName'],_0x53d045)&&_0x218e93['close']();}}),_0x218e93['on'](_0x18e475[_0x3db9ac(0x1ee)],_0x6e69f8=>{_0x3a25e2['qfUVY'](_0x40a0f1,_0x6e69f8);}),_0x218e93['once'](_0x18e475[_0x3db9ac(0x26e)],()=>{const _0x74d3f9=_0x3db9ac;fs[_0x74d3f9(0x1fe)](_0x544b42,_0x3a25e2[_0x74d3f9(0x201)],function(_0x36d3ac){const _0x34160d=_0x74d3f9;_0x36d3ac&&_0x3a25e2['qfUVY'](_0x40a0f1,_0x36d3ac),_0x3a25e2[_0x34160d(0x206)](_0x11bf51,_0x544b42);}),_0x218e93[_0x74d3f9(0x22b)]();});});});}async['validateBinary'](_0x406602){const _0x3464fd=a111_0x524d9a,_0x4a0164={'NMrTg':function(_0x1207bf,_0x11c6b2){return _0x1207bf(_0x11c6b2);},'loKfc':function(_0x401aeb,_0x4e4b09){return _0x401aeb(_0x4e4b09);},'NkRMq':function(_0x3649bc,_0x5a87dc,_0x5e5e8f,_0x2a2d3f){return _0x3649bc(_0x5a87dc,_0x5e5e8f,_0x2a2d3f);},'lYvcd':'--version','nHgMc':_0x3464fd(0x262),'sYEKu':'close'},_0x416f92=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x496f09,_0x4845d2)=>{const _0x15d579=_0x3464fd,_0x32c3a5={'DIJgc':function(_0x24dc75,_0x4bfd61){return _0x4a0164['loKfc'](_0x24dc75,_0x4bfd61);}},_0x2ca63a={};_0x2ca63a['env']=process['env'];const _0x3f0174=_0x4a0164[_0x15d579(0x211)](spawn,_0x406602,[_0x4a0164[_0x15d579(0x23a)]],_0x2ca63a);_0x3f0174['stdout']['on'](_0x4a0164['nHgMc'],_0x40060d=>{const _0x22a402=_0x15d579;_0x416f92[_0x22a402(0x20e)](_0x40060d)&&_0x32c3a5[_0x22a402(0x1eb)](_0x496f09,!![]);}),_0x3f0174['on'](_0x4a0164['sYEKu'],()=>{const _0x3892fd=_0x15d579;_0x4a0164[_0x3892fd(0x25e)](_0x496f09,![]);});});}#homedir(){const _0x2db624=a111_0x524d9a,_0x174acd={};_0x174acd['CgLCd']=function(_0x848a4a,_0x3638d8){return _0x848a4a===_0x3638d8;},_0x174acd[_0x2db624(0x270)]=_0x2db624(0x248),_0x174acd['jKDPD']='win32',_0x174acd[_0x2db624(0x210)]=function(_0x3a4d9f,_0x3d14d6){return _0x3a4d9f+_0x3d14d6;},_0x174acd[_0x2db624(0x214)]=_0x2db624(0x217),_0x174acd[_0x2db624(0x230)]=function(_0x1cb75b,_0x37be00){return _0x1cb75b+_0x37be00;},_0x174acd[_0x2db624(0x220)]=_0x2db624(0x245),_0x174acd[_0x2db624(0x249)]=function(_0xae81ca,_0x2fc411){return _0xae81ca===_0x2fc411;},_0x174acd['Lnran']='linux',_0x174acd[_0x2db624(0x25a)]=_0x2db624(0x219),_0x174acd[_0x2db624(0x258)]=function(_0x520e34,_0x15d876){return _0x520e34+_0x15d876;},_0x174acd[_0x2db624(0x1ed)]=_0x2db624(0x212),_0x174acd['Rwyjv']=function(_0x537a4d,_0x470b8b){return _0x537a4d||_0x470b8b;};const _0x2947f4=_0x174acd;if(_0x2947f4[_0x2db624(0x251)](typeof os[_0x2db624(0x1e9)],_0x2947f4['QLdRc']))return os[_0x2db624(0x1e9)]();const _0x1073f9=process[_0x2db624(0x20d)],_0x432e16=_0x1073f9[_0x2db624(0x1f0)],_0x48066a=_0x1073f9[_0x2db624(0x22d)]||_0x1073f9[_0x2db624(0x277)]||_0x1073f9[_0x2db624(0x23e)]||_0x1073f9['USERNAME'];if(_0x2947f4[_0x2db624(0x251)](process[_0x2db624(0x272)],_0x2947f4[_0x2db624(0x1f9)]))return _0x1073f9['USERPROFILE']||_0x2947f4[_0x2db624(0x210)](_0x1073f9[_0x2db624(0x244)],_0x1073f9[_0x2db624(0x256)])||_0x432e16||null;if(_0x2947f4[_0x2db624(0x251)](process[_0x2db624(0x272)],_0x2947f4['fbujg']))return _0x432e16||(_0x48066a?_0x2947f4[_0x2db624(0x230)](_0x2947f4[_0x2db624(0x220)],_0x48066a):null);if(_0x2947f4[_0x2db624(0x249)](process[_0x2db624(0x272)],_0x2947f4[_0x2db624(0x202)]))return _0x432e16||(_0x2947f4['fsWyK'](process['getuid'](),0x0)?_0x2947f4[_0x2db624(0x25a)]:_0x48066a?_0x2947f4['hMJxJ'](_0x2947f4['ZROTF'],_0x48066a):null);return _0x2947f4['Rwyjv'](_0x432e16,null);}}function a111_0xc975(_0x3273ec,_0x489495){const _0x1b5b42=a111_0x1b5b();return a111_0xc975=function(_0xc975bd,_0x400d3d){_0xc975bd=_0xc975bd-0x1e8;let _0x21684a=_0x1b5b42[_0xc975bd];return _0x21684a;},a111_0xc975(_0x3273ec,_0x489495);}function a111_0x1b5b(){const _0x553cae=['error','9wPUcRD','port','rJquq','CgLCd','readFileSync','EOnqo','vuoUc','mkdirSync','HOMEPATH','FRgaM','hMJxJ','255770akXfzF','izbHY','6255130ZaFFBp','dVgmr','MdaZR','NMrTg','../logger','gVtWk','proxyPort','data','W_OK','tmpdir','qnvXb','useCaCertificate','join','follow-redirects','path','FdPHh','statusCode','YbgNX','.zip','BdnGi','host','QLdRc','tUQtR','platform','headers','zkRqA','Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)','yOpMS','USER','Connection','OBrxO','accessSync','fSCHS','homedir','etag','DIJgc','match','ZROTF','KscKo','exports','HOME','length','CQrMv','198331qVZxtg','30lITXQM','1020260IwOsCW','needsUpdate','url','debug','jKDPD','1482800eiemkY','mkLwP','aswzI','percy','chmod','VpqYH','yauzl','pPsQs','Lnran','lZUNC','ieEjX','proxyHost','qfUVY','end','download','lazyEntries','NeixH','get','sbjVD','env','test','extractAndSaveBinary','SsApn','NkRMq','/home/','1832488JzMuUy','fbujg','BTxmJ','GCpCR','darwin','Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying','/root','755865YyCHAZ','then','pipe','XPmLm','https-proxy-agent','ghfgR','ZKDkl','Saved\x20new\x20ETag\x20for\x20percy\x20binary','.etag','JeXPE','child_process','2gYQqeF','entry','CLIsA','jUnmK','dRnUi','open','close','parse','LOGNAME','statSync','QoUKI','DHIsf','createWriteStream','aldKP','If-None-Match','readEntry','percy.exe','destroy','GaZpJ','X_OK','warn','lYvcd','catch','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20','winstonLogger','LNAME','0755','zgcHn','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20','yQqKX','https://github.com/percy/cli/releases/latest/download','HOMEDRIVE','/Users/','binaryPath','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20','function','fsWyK','Failed\x20to\x20save\x20ETag\x20file:\x20','yRoaW','fileName'];a111_0x1b5b=function(){return _0x553cae;};return a111_0x1b5b();}module[a111_0x524d9a(0x1ef)]=PercyBinary;
|
|
1
|
+
const a113_0x4fd43e=a113_0x227a;function a113_0x225e(){const _0xafc330=['Error\x20trying\x20to\x20download\x20percy\x20binary','statusCode','headers','proxyHost','HUkIJ','trWbP','--version','Saved\x20new\x20ETag\x20for\x20percy\x20binary','HjYQz','agent','pipe','tmpdir','BCqJa','NOwpW','knmDS','29318839QPPcDR','HOMEDRIVE','sOUZd','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20','4501QtfZTE','getBinaryPath','dnHCk','76800yiMsaL','ZuHCv','xHOLc','iJMWG','RsOeA','CBcdQ','Connection','.etag','accessSync','1601127HYjAXL','pPmyl','ybgxL','EadtU','Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20','KQWCJ','1536602MEVAoq','R_OK','end','pHoKu','LNAME','raWRI','catch','darwin','Rthhi','data','extractAndSaveBinary','https://github.com/percy/cli/releases/latest/download','env','KqKUy','2757411MEKrri','once','validateBinary','readEntry','percy','BNUoE','HOME','/percy-linux.zip','/root','/home/','proxyPort','JgWbM','qmXIr','warn','child_process','linux','LOGNAME','get','RtbdZ','platform','1416NLWrAc','openReadStream','/percy-win.zip','binaryPath','Failed\x20to\x20save\x20ETag\x20file:\x20','NZozF','/percy-osx.zip','30rXVGcS','then','path','entry','CCKJZ','readFileSync','percy.exe','GBqAu','GbEkI','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20','close','fIbwl','WsjVF','undefined','sEUiv','Dhect','Failed\x20to\x20read\x20ETag\x20file:\x20','fileName','jJSqV','Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying','function','WEvVH','bTfjQ','mkdirSync','LRWgr','2MBaaUJ','ucHlr','416AoPpxh','24JoCsfr','etag','cwd','download','eEPty','useCaCertificate','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20','rtSvh','JPkef','tywux','.browserstack','writeFileSync','BQISf','USER','tEeUK','win32','vyAIp','KGkzp','0755','X_OK','Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)','NYYHg','utf8','XGvcQ','9161696bdODXH','zpYPN','YMCHC','Vuaws','createWriteStream','UmfZf','waTlF','match','yauzl','homedir','error','IWxnY','/Users/','xcBqo','open','Zvfhk','zAWEx','test','join','parse'];a113_0x225e=function(){return _0xafc330;};return a113_0x225e();}function a113_0x227a(_0x2d9ac9,_0x1197bb){const _0x225e18=a113_0x225e();return a113_0x227a=function(_0x227a45,_0x31943b){_0x227a45=_0x227a45-0x192;let _0x6eed86=_0x225e18[_0x227a45];return _0x6eed86;},a113_0x227a(_0x2d9ac9,_0x1197bb);}(function(_0x12d180,_0x42fd32){const _0x483656=a113_0x227a,_0x4a9204=_0x12d180();while(!![]){try{const _0x578152=parseInt(_0x483656(0x20b))/0x1*(-parseInt(_0x483656(0x1c9))/0x2)+parseInt(_0x483656(0x1c3))/0x3+-parseInt(_0x483656(0x20d))/0x4*(parseInt(_0x483656(0x1ba))/0x5)+parseInt(_0x483656(0x1eb))/0x6*(parseInt(_0x483656(0x1b7))/0x7)+-parseInt(_0x483656(0x226))/0x8+parseInt(_0x483656(0x1d7))/0x9*(-parseInt(_0x483656(0x1f2))/0xa)+-parseInt(_0x483656(0x1b3))/0xb*(-parseInt(_0x483656(0x20e))/0xc);if(_0x578152===_0x42fd32)break;else _0x4a9204['push'](_0x4a9204['shift']());}catch(_0x7ba94d){_0x4a9204['push'](_0x4a9204['shift']());}}}(a113_0x225e,0xc7a64));const {https}=require('follow-redirects'),url=require('url'),yauzl=require(a113_0x4fd43e(0x198)),fs=require('fs'),path=require(a113_0x4fd43e(0x1f4)),os=require('os'),{spawn}=require(a113_0x4fd43e(0x1e5)),HttpsProxyAgent=require('https-proxy-agent'),logger=require('../logger')['winstonLogger'];class PercyBinary{#hostOS=process[a113_0x4fd43e(0x1ea)];#httpPath=null;#binaryName=a113_0x4fd43e(0x1db);#orderedPaths=[path[a113_0x4fd43e(0x1a2)](this.#homedir(),a113_0x4fd43e(0x218)),process[a113_0x4fd43e(0x210)](),os[a113_0x4fd43e(0x1af)]()];constructor(){const _0x57fdaf=a113_0x4fd43e,_0x4801fb={};_0x4801fb[_0x57fdaf(0x1bc)]=_0x57fdaf(0x1d4),_0x4801fb[_0x57fdaf(0x20c)]=function(_0x1507a5,_0x485b7d){return _0x1507a5+_0x485b7d;},_0x4801fb[_0x57fdaf(0x192)]=_0x57fdaf(0x1f1),_0x4801fb[_0x57fdaf(0x1dc)]=function(_0xeda65d,_0x59fd6c){return _0xeda65d+_0x59fd6c;},_0x4801fb['cjzAE']=_0x57fdaf(0x1ed),_0x4801fb[_0x57fdaf(0x1b1)]=_0x57fdaf(0x1f8),_0x4801fb[_0x57fdaf(0x1a9)]=_0x57fdaf(0x1de);const _0x1853c3=_0x4801fb,_0x5c990a=_0x1853c3[_0x57fdaf(0x1bc)];if(this.#hostOS[_0x57fdaf(0x197)](/darwin|mac os/i))this.#httpPath=_0x1853c3[_0x57fdaf(0x20c)](_0x5c990a,_0x1853c3[_0x57fdaf(0x192)]);else this.#hostOS[_0x57fdaf(0x197)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x1853c3[_0x57fdaf(0x1dc)](_0x5c990a,_0x1853c3['cjzAE']),this.#binaryName=_0x1853c3[_0x57fdaf(0x1b1)]):this.#httpPath=_0x1853c3['ucHlr'](_0x5c990a,_0x1853c3['trWbP']);}#getAvailableDirs(){const _0x5f4b49=a113_0x4fd43e,_0x2e1030={};_0x2e1030[_0x5f4b49(0x195)]=function(_0x3a1987,_0x3b7f31){return _0x3a1987<_0x3b7f31;},_0x2e1030[_0x5f4b49(0x225)]=_0x5f4b49(0x1a4);const _0x5d9dc5=_0x2e1030;for(var _0x28503f=0x0;_0x5d9dc5[_0x5f4b49(0x195)](_0x28503f,this.#orderedPaths['length']);_0x28503f++){var _0x51b31d=this.#orderedPaths[_0x28503f];if(this.#makePath(_0x51b31d))return _0x51b31d;}throw new Error(_0x5d9dc5[_0x5f4b49(0x225)]);}#makePath(_0x1f9b62){try{return _0x1f9b62&&!this.#checkPath(_0x1f9b62)&&fs['mkdirSync'](_0x1f9b62),!![];}catch{return![];}}#checkPath(_0x20d42e,_0xf30a99){const _0x1830e8=a113_0x4fd43e,_0x1f3e2a={};_0x1f3e2a['raWRI']=function(_0x3cdaf8,_0x1d3450){return _0x3cdaf8|_0x1d3450;},_0x1f3e2a[_0x1830e8(0x1d1)]=function(_0x4f16b9,_0x2dc275){return _0x4f16b9!==_0x2dc275;},_0x1f3e2a[_0x1830e8(0x1b0)]=_0x1830e8(0x1ff);const _0x5a8547=_0x1f3e2a;_0xf30a99=_0xf30a99||_0x5a8547[_0x1830e8(0x1ce)](fs[_0x1830e8(0x1ca)],fs['W_OK']);try{return fs['accessSync'](_0x20d42e,_0xf30a99),!![];}catch(_0x1d45a4){if(_0x5a8547[_0x1830e8(0x1d1)](typeof fs[_0x1830e8(0x1c2)],_0x5a8547[_0x1830e8(0x1b0)]))return![];try{return fs['statSync'](_0x20d42e),!![];}catch(_0x117628){return![];}}}#getETagPath(_0x712f18){const _0xa922c7=a113_0x4fd43e;return path[_0xa922c7(0x1a2)](_0x712f18,this.#binaryName+_0xa922c7(0x1c1));}#loadETag(_0x3dc369){const _0x51e202=a113_0x4fd43e,_0x2bb034={};_0x2bb034[_0x51e202(0x1c8)]=_0x51e202(0x224);const _0x3bbe6c=_0x2bb034,_0x1da57e=this.#getETagPath(_0x3dc369);if(this.#checkPath(_0x1da57e))try{return fs[_0x51e202(0x1f7)](_0x1da57e,_0x3bbe6c[_0x51e202(0x1c8)])['trim']();}catch(_0xc8b96f){logger['warn'](_0x51e202(0x202)+_0xc8b96f);}return null;}#saveETag(_0x1fd040,_0x2fc92a){const _0x1c500b=a113_0x4fd43e,_0x511916={};_0x511916['zpYPN']=_0x1c500b(0x1ab);const _0xa6a986=_0x511916;if(!_0x2fc92a)return;try{const _0x3233f2=this.#getETagPath(_0x1fd040);fs[_0x1c500b(0x219)](_0x3233f2,_0x2fc92a),logger['debug'](_0xa6a986[_0x1c500b(0x227)]);}catch(_0x5d3eca){logger[_0x1c500b(0x1e4)](_0x1c500b(0x1ef)+_0x5d3eca);}}async #handleBinaryDownload(_0x5cddb9,_0x131079,_0x25e306){const _0x275000=a113_0x4fd43e,_0x55a70b={};_0x55a70b[_0x275000(0x1bd)]=_0x275000(0x205);const _0x3bf6dc=_0x55a70b,_0x5951e4=await this[_0x275000(0x1d9)](_0x5cddb9[_0x275000(0x1ee)]);if(!_0x5951e4){logger['error'](_0x3bf6dc[_0x275000(0x1bd)]);const _0x4365c1=await this[_0x275000(0x211)](_0x131079,_0x25e306);return _0x4365c1[_0x275000(0x1ee)];}return _0x5cddb9[_0x275000(0x1ee)];}async[a113_0x4fd43e(0x1b8)](_0x351080){const _0x1083d4=a113_0x4fd43e,_0x4dc543={};_0x4dc543[_0x1083d4(0x1f6)]=_0x1083d4(0x222),_0x4dc543[_0x1083d4(0x21c)]='New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update';const _0x20250a=_0x4dc543,_0x2ad202=this.#getAvailableDirs(),_0x65ebba=path[_0x1083d4(0x1a2)](_0x2ad202,this.#binaryName);if(this.#checkPath(_0x65ebba,fs[_0x1083d4(0x221)])){const _0x31d99f=this.#loadETag(_0x2ad202);if(_0x31d99f)try{const _0x1d9255=await this['download'](_0x351080,_0x2ad202,_0x31d99f);if(!_0x1d9255['needsUpdate'])return logger['debug'](_0x20250a[_0x1083d4(0x1f6)]),_0x65ebba;return logger['debug'](_0x20250a[_0x1083d4(0x21c)]),await this.#handleBinaryDownload(_0x1d9255,_0x351080,_0x2ad202);}catch(_0x22d358){return logger[_0x1083d4(0x1e4)](_0x1083d4(0x1c7)+_0x22d358),_0x65ebba;}}const _0x571c60=await this[_0x1083d4(0x211)](_0x351080,_0x2ad202);return await this.#handleBinaryDownload(_0x571c60,_0x351080,_0x2ad202);}[a113_0x4fd43e(0x211)](_0x382c55,_0x1c19a2,_0x578be5=null){const _0x36c2c5=a113_0x4fd43e,_0x52c29a={'EadtU':function(_0xc38051,_0x1851e6){return _0xc38051(_0x1851e6);},'pXhbq':function(_0x192ef7,_0x3758c4){return _0x192ef7===_0x3758c4;},'RtbdZ':function(_0x19f727,_0x57742b){return _0x19f727(_0x57742b);},'waTlF':_0x36c2c5(0x19a),'IWxnY':_0x36c2c5(0x1fc),'zAWEx':function(_0x34bd04,_0x5b74a9){return _0x34bd04+_0x5b74a9;},'LsBPm':'.zip'};_0x1c19a2&&!this.#checkPath(_0x1c19a2)&&fs[_0x36c2c5(0x209)](_0x1c19a2);const _0x46b2ec=this.#binaryName,_0x5e2822=path[_0x36c2c5(0x1a2)](_0x1c19a2,_0x52c29a[_0x36c2c5(0x1a0)](_0x46b2ec,_0x52c29a['LsBPm'])),_0x270e7d=fs['createWriteStream'](_0x5e2822),_0x228629=url[_0x36c2c5(0x1a3)](this.#httpPath);if(_0x382c55['proxyHost']&&_0x382c55[_0x36c2c5(0x1e1)]){const _0x23bff3={};_0x23bff3['host']=_0x382c55[_0x36c2c5(0x1a7)],_0x23bff3['port']=_0x382c55['proxyPort'],_0x228629[_0x36c2c5(0x1ad)]=new HttpsProxyAgent(_0x23bff3);}if(_0x382c55[_0x36c2c5(0x213)])try{_0x228629['ca']=fs[_0x36c2c5(0x1f7)](_0x382c55[_0x36c2c5(0x213)]);}catch(_0x545583){logger[_0x36c2c5(0x19a)]('Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20'+_0x545583);}if(_0x578be5){const _0x9fe4c={};_0x9fe4c['If-None-Match']=_0x578be5,_0x9fe4c[_0x36c2c5(0x1c0)]=_0x52c29a[_0x36c2c5(0x19b)],_0x228629[_0x36c2c5(0x1a6)]=_0x9fe4c;}else{const _0x1ea185={};_0x1ea185[_0x36c2c5(0x1c0)]=_0x52c29a[_0x36c2c5(0x19b)],_0x228629[_0x36c2c5(0x1a6)]=_0x1ea185;}return new Promise((_0x508fce,_0x45a214)=>{const _0x558299=_0x36c2c5;https[_0x558299(0x1e8)](_0x228629,_0x1dfd2d=>{const _0x548164=_0x558299,_0x48ec4a={'eEPty':function(_0x467925,_0x1e7d9b){const _0x49c225=a113_0x227a;return _0x52c29a[_0x49c225(0x1c6)](_0x467925,_0x1e7d9b);}};if(_0x578be5&&_0x52c29a['pXhbq'](_0x1dfd2d[_0x548164(0x1a5)],0x130)){_0x270e7d['destroy']();const _0x31b69f={};_0x31b69f['needsUpdate']=![],_0x52c29a[_0x548164(0x1e9)](_0x508fce,_0x31b69f);return;}const _0x333fcf=_0x1dfd2d[_0x548164(0x1a6)][_0x548164(0x20f)];_0x333fcf&&this.#saveETag(_0x1c19a2,_0x333fcf),_0x1dfd2d[_0x548164(0x1ae)](_0x270e7d),_0x1dfd2d['on'](_0x52c29a['waTlF'],function(_0x26df2d){const _0x5caef9=_0x548164;logger[_0x5caef9(0x19a)](_0x5caef9(0x1fb)+_0x26df2d),_0x48ec4a['eEPty'](_0x45a214,_0x26df2d);}),_0x270e7d['on'](_0x52c29a[_0x548164(0x196)],function(_0x29a198){const _0x56da88=_0x548164;logger['error'](_0x56da88(0x214)+_0x29a198),_0x48ec4a[_0x56da88(0x212)](_0x45a214,_0x29a198);}),_0x270e7d['on'](_0x52c29a['IWxnY'],()=>{const _0x1f883a=_0x548164;this[_0x1f883a(0x1d3)](_0x5e2822,_0x1c19a2)[_0x1f883a(0x1f3)](_0x2e8874=>_0x508fce({'needsUpdate':!![],'binaryPath':_0x2e8874}))[_0x1f883a(0x1cf)](_0x45a214);});})['on'](_0x52c29a[_0x558299(0x196)],function(_0x40153b){const _0x3ee3a7=_0x558299;logger['error'](_0x3ee3a7(0x1b6)+_0x40153b),_0x52c29a[_0x3ee3a7(0x1c6)](_0x45a214,_0x40153b);});});}[a113_0x4fd43e(0x1d3)](_0x577d49,_0x318bb9){const _0x29bc53=a113_0x4fd43e,_0x371076={'sEUiv':function(_0x17cb7a,_0x23450d){return _0x17cb7a===_0x23450d;},'HjYQz':function(_0x515a22,_0x4d4b7b){return _0x515a22(_0x4d4b7b);},'HUkIJ':function(_0x256133,_0x3fde60){return _0x256133(_0x3fde60);},'UJPyF':_0x29bc53(0x1cb),'tywux':_0x29bc53(0x220),'jJSqV':function(_0x13cbc3,_0x469eac){return _0x13cbc3(_0x469eac);},'vyAIp':_0x29bc53(0x1f5),'CBcdQ':_0x29bc53(0x19a)},_0x8fe186=this.#binaryName,_0x7d0d40=path['join'](_0x318bb9,_0x8fe186);return new Promise((_0x4995c0,_0xdfeba8)=>{const _0x855cd=_0x29bc53,_0x54efa7={'PKwDf':function(_0x12f410,_0x53611e){const _0x5c3b91=a113_0x227a;return _0x371076[_0x5c3b91(0x200)](_0x12f410,_0x53611e);},'ybgxL':function(_0x418450,_0x43d509){const _0x2fa9d3=a113_0x227a;return _0x371076[_0x2fa9d3(0x1ac)](_0x418450,_0x43d509);},'Zvfhk':function(_0x25f0fa,_0x1226e1){const _0x58a4f4=a113_0x227a;return _0x371076[_0x58a4f4(0x1a8)](_0x25f0fa,_0x1226e1);},'WEvVH':_0x371076['UJPyF'],'knmDS':_0x371076[_0x855cd(0x217)],'OlcDx':function(_0x192b7f,_0x1f7fe6){const _0x432b91=_0x855cd;return _0x371076[_0x432b91(0x204)](_0x192b7f,_0x1f7fe6);},'WsjVF':_0x371076[_0x855cd(0x21e)],'kgiuA':_0x371076[_0x855cd(0x1bf)]},_0x48bd15={};_0x48bd15['lazyEntries']=!![],yauzl[_0x855cd(0x19e)](_0x577d49,_0x48bd15,function(_0x3eb7a0,_0x265c21){const _0x56dfaf=_0x855cd,_0x166b69={'Vuaws':function(_0x57629a,_0x51b26d){const _0x3f3a20=a113_0x227a;return _0x54efa7[_0x3f3a20(0x19f)](_0x57629a,_0x51b26d);},'pPmyl':_0x54efa7[_0x56dfaf(0x207)],'sOUZd':_0x54efa7[_0x56dfaf(0x1b2)]};_0x3eb7a0&&_0x54efa7['OlcDx'](_0xdfeba8,_0x3eb7a0),_0x265c21[_0x56dfaf(0x1da)](),_0x265c21['on'](_0x54efa7[_0x56dfaf(0x1fe)],_0x560ba1=>{const _0x3f85e7=_0x56dfaf;if(/\/$/[_0x3f85e7(0x1a1)](_0x560ba1[_0x3f85e7(0x203)]))_0x265c21['readEntry']();else{const _0x407725=fs[_0x3f85e7(0x194)](path[_0x3f85e7(0x1a2)](_0x318bb9,_0x560ba1[_0x3f85e7(0x203)]));_0x265c21[_0x3f85e7(0x1ec)](_0x560ba1,function(_0x530cc2,_0x7f7735){const _0x3a842c=_0x3f85e7;_0x530cc2&&_0x166b69['Vuaws'](_0xdfeba8,_0x3eb7a0),_0x7f7735['on'](_0x166b69[_0x3a842c(0x1c4)],function(){const _0x4e2c68=_0x3a842c;_0x407725['close'](),_0x265c21[_0x4e2c68(0x1da)]();}),_0x7f7735[_0x3a842c(0x1ae)](_0x407725);}),_0x54efa7['PKwDf'](_0x560ba1[_0x3f85e7(0x203)],_0x8fe186)&&_0x265c21[_0x3f85e7(0x1fc)]();}}),_0x265c21['on'](_0x54efa7['kgiuA'],_0x32f601=>{const _0xa62b83=_0x56dfaf;_0x54efa7[_0xa62b83(0x1c5)](_0xdfeba8,_0x32f601);}),_0x265c21[_0x56dfaf(0x1d8)](_0x54efa7['WEvVH'],()=>{const _0x2feab1=_0x56dfaf,_0x403f48={'JPkef':function(_0x5cd6e0,_0x23893f){const _0x27508d=a113_0x227a;return _0x166b69[_0x27508d(0x193)](_0x5cd6e0,_0x23893f);},'pHoKu':function(_0x424d0d,_0x3c7971){const _0x41f4a3=a113_0x227a;return _0x166b69[_0x41f4a3(0x193)](_0x424d0d,_0x3c7971);}};fs['chmod'](_0x7d0d40,_0x166b69[_0x2feab1(0x1b5)],function(_0x13163d){const _0x2c2c47=_0x2feab1;_0x13163d&&_0x403f48[_0x2c2c47(0x216)](_0xdfeba8,_0x13163d),_0x403f48[_0x2c2c47(0x1cc)](_0x4995c0,_0x7d0d40);}),_0x265c21[_0x2feab1(0x1fc)]();});});});}async[a113_0x4fd43e(0x1d9)](_0x2b4bc9){const _0x1a6a99=a113_0x4fd43e,_0x24922a={'BQISf':function(_0x5d6d83,_0x12ec25){return _0x5d6d83(_0x12ec25);},'NYYHg':function(_0x58fd64,_0x22881d,_0x52e188,_0x320a10){return _0x58fd64(_0x22881d,_0x52e188,_0x320a10);},'bTfjQ':_0x1a6a99(0x1aa),'Dhect':_0x1a6a99(0x1d2),'SizHW':_0x1a6a99(0x1fc)},_0x4a8f2c=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x14e2f5,_0x338385)=>{const _0x107e88=_0x1a6a99,_0x4e2eb4={'dnHCk':function(_0xb8e057,_0x226b0d){const _0x933368=a113_0x227a;return _0x24922a[_0x933368(0x21a)](_0xb8e057,_0x226b0d);}},_0xdf25b0={};_0xdf25b0[_0x107e88(0x1d5)]=process[_0x107e88(0x1d5)];const _0x5bc8f8=_0x24922a[_0x107e88(0x223)](spawn,_0x2b4bc9,[_0x24922a[_0x107e88(0x208)]],_0xdf25b0);_0x5bc8f8['stdout']['on'](_0x24922a[_0x107e88(0x201)],_0x4545e8=>{const _0x5dfbea=_0x107e88;_0x4a8f2c['test'](_0x4545e8)&&_0x4e2eb4[_0x5dfbea(0x1b9)](_0x14e2f5,!![]);}),_0x5bc8f8['on'](_0x24922a['SizHW'],()=>{const _0x158541=_0x107e88;_0x24922a[_0x158541(0x21a)](_0x14e2f5,![]);});});}#homedir(){const _0x12b5ef=a113_0x4fd43e,_0x37640e={};_0x37640e[_0x12b5ef(0x1e2)]=function(_0x40e74a,_0x41f1a4){return _0x40e74a===_0x41f1a4;},_0x37640e[_0x12b5ef(0x215)]=_0x12b5ef(0x206),_0x37640e[_0x12b5ef(0x1fa)]=_0x12b5ef(0x21d),_0x37640e[_0x12b5ef(0x1d6)]=function(_0x3d62f5,_0x328070){return _0x3d62f5+_0x328070;},_0x37640e[_0x12b5ef(0x1e3)]=function(_0x1f7d60,_0x39ec0c){return _0x1f7d60===_0x39ec0c;},_0x37640e[_0x12b5ef(0x1f0)]=_0x12b5ef(0x1d0),_0x37640e[_0x12b5ef(0x1bb)]=function(_0x5e547a,_0xd58718){return _0x5e547a+_0xd58718;},_0x37640e[_0x12b5ef(0x19d)]=_0x12b5ef(0x19c),_0x37640e[_0x12b5ef(0x20a)]=_0x12b5ef(0x1e6),_0x37640e[_0x12b5ef(0x1be)]=function(_0x14c40b,_0x1ba8ac){return _0x14c40b===_0x1ba8ac;},_0x37640e[_0x12b5ef(0x21f)]=_0x12b5ef(0x1df),_0x37640e[_0x12b5ef(0x1fd)]=_0x12b5ef(0x1e0),_0x37640e[_0x12b5ef(0x1f9)]=function(_0x3862e5,_0xed3351){return _0x3862e5||_0xed3351;};const _0x5b4257=_0x37640e;if(_0x5b4257[_0x12b5ef(0x1e2)](typeof os[_0x12b5ef(0x199)],_0x5b4257[_0x12b5ef(0x215)]))return os[_0x12b5ef(0x199)]();const _0x8ae373=process[_0x12b5ef(0x1d5)],_0x467545=_0x8ae373[_0x12b5ef(0x1dd)],_0x39277b=_0x8ae373[_0x12b5ef(0x1e7)]||_0x8ae373[_0x12b5ef(0x21b)]||_0x8ae373[_0x12b5ef(0x1cd)]||_0x8ae373['USERNAME'];if(_0x5b4257[_0x12b5ef(0x1e2)](process[_0x12b5ef(0x1ea)],_0x5b4257[_0x12b5ef(0x1fa)]))return _0x8ae373['USERPROFILE']||_0x5b4257['KqKUy'](_0x8ae373[_0x12b5ef(0x1b4)],_0x8ae373['HOMEPATH'])||_0x467545||null;if(_0x5b4257[_0x12b5ef(0x1e3)](process[_0x12b5ef(0x1ea)],_0x5b4257[_0x12b5ef(0x1f0)]))return _0x467545||(_0x39277b?_0x5b4257[_0x12b5ef(0x1bb)](_0x5b4257['xcBqo'],_0x39277b):null);if(_0x5b4257[_0x12b5ef(0x1e3)](process[_0x12b5ef(0x1ea)],_0x5b4257[_0x12b5ef(0x20a)]))return _0x467545||(_0x5b4257[_0x12b5ef(0x1be)](process['getuid'](),0x0)?_0x5b4257[_0x12b5ef(0x21f)]:_0x39277b?_0x5b4257['KqKUy'](_0x5b4257[_0x12b5ef(0x1fd)],_0x39277b):null);return _0x5b4257[_0x12b5ef(0x1f9)](_0x467545,null);}}module['exports']=PercyBinary;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a114_0x3d0fff=a114_0x1c8e;(function(_0x40d170,_0x4322a6){var _0x35c083=a114_0x1c8e,_0x5266ba=_0x40d170();while(!![]){try{var _0x4b1413=parseInt(_0x35c083(0x175))/0x1+-parseInt(_0x35c083(0x173))/0x2+parseInt(_0x35c083(0x177))/0x3*(parseInt(_0x35c083(0x17a))/0x4)+-parseInt(_0x35c083(0x178))/0x5*(parseInt(_0x35c083(0x17b))/0x6)+parseInt(_0x35c083(0x174))/0x7+parseInt(_0x35c083(0x17c))/0x8+-parseInt(_0x35c083(0x179))/0x9*(-parseInt(_0x35c083(0x180))/0xa);if(_0x4b1413===_0x4322a6)break;else _0x5266ba['push'](_0x5266ba['shift']());}catch(_0xec6e92){_0x5266ba['push'](_0x5266ba['shift']());}}}(a114_0x15d8,0x6e3cc));function a114_0x1c8e(_0x27aa44,_0x5d1bbf){var _0x15d85d=a114_0x15d8();return a114_0x1c8e=function(_0x1c8e4a,_0x1e0846){_0x1c8e4a=_0x1c8e4a-0x173;var _0x1b00b4=_0x15d85d[_0x1c8e4a];return _0x1b00b4;},a114_0x1c8e(_0x27aa44,_0x5d1bbf);}class PercyCaptureMap{#map={};[a114_0x3d0fff(0x17e)](_0x432cb4,_0x43fd3b){!this.#map[_0x432cb4]&&(this.#map[_0x432cb4]={}),!this.#map[_0x432cb4][_0x43fd3b]&&(this.#map[_0x432cb4][_0x43fd3b]=0x0),this.#map[_0x432cb4][_0x43fd3b]++;}[a114_0x3d0fff(0x17f)](_0x2d4826,_0x4bfc41){var _0xbbd439=a114_0x3d0fff;return _0x2d4826+'-'+_0x4bfc41+'-'+this[_0xbbd439(0x176)](_0x2d4826,_0x4bfc41);}['get'](_0xd1f120,_0xbbc82a){if(!this.#map[_0xd1f120])return 0x0;if(!this.#map[_0xd1f120][_0xbbc82a])return 0x0;return this.#map[_0xd1f120][_0xbbc82a];}}module[a114_0x3d0fff(0x17d)]=PercyCaptureMap;function a114_0x15d8(){var _0x4875b8=['8375PVwRzN','34461AMgIaJ','292SOAUub','2640nYXqTu','4762112UttZDK','exports','increment','getName','1370PymXOH','1385480UJNCpB','3260474GxNgWw','102641PKgEBg','get','7932LcuSZH'];a114_0x15d8=function(){return _0x4875b8;};return a114_0x15d8();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a115_0x56056b=a115_0x1082;(function(_0x1072af,_0x3b7e71){var _0x23b487=a115_0x1082,_0x39af33=_0x1072af();while(!![]){try{var _0x4f5f38=-parseInt(_0x23b487(0xe0))/0x1*(parseInt(_0x23b487(0xe5))/0x2)+parseInt(_0x23b487(0xdc))/0x3*(-parseInt(_0x23b487(0xe1))/0x4)+-parseInt(_0x23b487(0xd7))/0x5+parseInt(_0x23b487(0xda))/0x6+-parseInt(_0x23b487(0xd9))/0x7+-parseInt(_0x23b487(0xdb))/0x8+parseInt(_0x23b487(0xe7))/0x9;if(_0x4f5f38===_0x3b7e71)break;else _0x39af33['push'](_0x39af33['shift']());}catch(_0x335ccd){_0x39af33['push'](_0x39af33['shift']());}}}(a115_0x36fe,0xdd16f));function a115_0x1082(_0x2552cd,_0x4a0be5){var _0x36fedb=a115_0x36fe();return a115_0x1082=function(_0x108277,_0x26a346){_0x108277=_0x108277-0xd7;var _0x1ce217=_0x36fedb[_0x108277];return _0x1ce217;},a115_0x1082(_0x2552cd,_0x4a0be5);}var a115_0xa2bc1b={};a115_0xa2bc1b['driver']=[a115_0x56056b(0xdf)],a115_0xa2bc1b[a115_0x56056b(0xe4)]=[a115_0x56056b(0xdd),a115_0x56056b(0xd8)];var a115_0xb6c833={};a115_0xb6c833['driver']=[a115_0x56056b(0xdf)];function a115_0x36fe(){var _0x18f805=['click','auto','takeScreenshot','99894iNpdBh','228IboPhA','screenshot','exports','element','26ivYteh','testcase','39291858qPGMth','2366185BZoAHp','sendKeys','4300142vtmfyM','3989052ioGTul','5941336GlxqVm','52431TZjbHP'];a115_0x36fe=function(){return _0x18f805;};return a115_0x36fe();}var a115_0xb9139b={};a115_0xb9139b[a115_0x56056b(0xe4)]=[a115_0x56056b(0xdd)];var a115_0x3ed791={};a115_0x3ed791[a115_0x56056b(0xde)]=a115_0xa2bc1b,a115_0x3ed791[a115_0x56056b(0xe2)]=a115_0xb6c833,a115_0x3ed791[a115_0x56056b(0xdd)]=a115_0xb9139b,a115_0x3ed791[a115_0x56056b(0xe6)]={},a115_0x3ed791['manual']={},module[a115_0x56056b(0xe3)]=a115_0x3ed791;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a116_0x37dc(_0x546c0d,_0x229d30){const _0x2a5984=a116_0x2a59();return a116_0x37dc=function(_0x37dcd8,_0x3e978e){_0x37dcd8=_0x37dcd8-0x153;let _0x110840=_0x2a5984[_0x37dcd8];return _0x110840;},a116_0x37dc(_0x546c0d,_0x229d30);}const a116_0x534e00=a116_0x37dc;function a116_0x2a59(){const _0x1b5838=['testCase','browserstackPercyBestPlatform','@percy/appium-app','2323550yjdSdi','9yrzczP','Unsupported\x20driver\x20for\x20percy','name','screenshot','winstonLogger','hfbOW','SCREENSHOT','xrPoF','IvpOh','10bTUoJG','browserstackPlatformIndex','3666160phZUXk','1RTyswA','uuid','@percy/selenium-webdriver','platformIndex','snapshot','6NfWrri','hClCu','10963491POykEf','thTestCaseExecutionId','3052480PTNVlj','SCREENSHOT_APP','error','SNAPSHOT','../performance/constants','nlBEW','864564FfQHXW','measure','TXbdu','9144776ilFgZx','43336236FphChM','screenshotApp','11TJHYOr','apply','length'];a116_0x2a59=function(){return _0x1b5838;};return a116_0x2a59();}(function(_0x55a629,_0x3f2d5e){const _0x45a4eb=a116_0x37dc,_0x5883a4=_0x55a629();while(!![]){try{const _0x3c2707=-parseInt(_0x45a4eb(0x158))/0x1*(parseInt(_0x45a4eb(0x173))/0x2)+parseInt(_0x45a4eb(0x15d))/0x3*(parseInt(_0x45a4eb(0x157))/0x4)+-parseInt(_0x45a4eb(0x155))/0x5*(parseInt(_0x45a4eb(0x167))/0x6)+-parseInt(_0x45a4eb(0x15f))/0x7+-parseInt(_0x45a4eb(0x16a))/0x8+parseInt(_0x45a4eb(0x174))/0x9*(-parseInt(_0x45a4eb(0x161))/0xa)+parseInt(_0x45a4eb(0x16d))/0xb*(parseInt(_0x45a4eb(0x16b))/0xc);if(_0x3c2707===_0x3f2d5e)break;else _0x5883a4['push'](_0x5883a4['shift']());}catch(_0x55c462){_0x5883a4['push'](_0x5883a4['shift']());}}}(a116_0x2a59,0xef3c8));const tryRequire=function(_0x2f36c6,_0x13b33e){const _0x12023b={'TZUUn':function(_0x152795,_0x4395b8){return _0x152795(_0x4395b8);}};try{return _0x12023b['TZUUn'](require,_0x2f36c6);}catch{return _0x13b33e;}},percySnapshot=tryRequire(a116_0x534e00(0x15a),null),{percyScreenshot}=tryRequire(a116_0x534e00(0x15a),{}),percyAppScreenshot=require(a116_0x534e00(0x172)),{getCurrentTestData}=require('../../helpers/testhub/utils'),PerformanceTester=require('../performance/performance-tester'),{PERCY_EVENTS:PerformanceEvents}=require(a116_0x534e00(0x165)),logger=require('../logger')[a116_0x534e00(0x178)];percySnapshot&&(exports[a116_0x534e00(0x15c)]=async function(){const _0x1e7da8=a116_0x534e00,_0x573fd0={'hClCu':function(_0x2c302a,_0x2eecb6){return _0x2c302a!==_0x2eecb6;},'XnjwK':function(_0x24f5e6,_0x3411d6){return _0x24f5e6>=_0x3411d6;},'xrPoF':function(_0x2d8e17){return _0x2d8e17();}};if(global[_0x1e7da8(0x156)]&&_0x573fd0[_0x1e7da8(0x15e)](global[_0x1e7da8(0x156)],global[_0x1e7da8(0x171)]))return;const _0x33d38e=_0x573fd0['XnjwK'](arguments[_0x1e7da8(0x16f)],0x2)?arguments[0x1]:'',_0x3e857f=_0x573fd0[_0x1e7da8(0x153)](getCurrentTestData),_0x350c20={};return _0x350c20[_0x1e7da8(0x176)]=_0x33d38e,_0x350c20[_0x1e7da8(0x170)]=_0x3e857f['name']||'',_0x350c20[_0x1e7da8(0x160)]=_0x3e857f[_0x1e7da8(0x159)]||'',_0x350c20['platformIndex']=global[_0x1e7da8(0x156)],await PerformanceTester[_0x1e7da8(0x168)](PerformanceEvents[_0x1e7da8(0x164)],()=>percySnapshot['apply'](null,arguments),_0x350c20);});percyScreenshot?exports[a116_0x534e00(0x177)]=async function(){const _0x2eb3af=a116_0x534e00,_0x202f94={'nlBEW':function(_0x5d9e6e,_0x55c71a){return _0x5d9e6e>=_0x55c71a;},'pEoSd':function(_0x131bea){return _0x131bea();}},_0x110462=_0x202f94[_0x2eb3af(0x166)](arguments[_0x2eb3af(0x16f)],0x2)?arguments[0x1]:'',_0x34cefc=_0x202f94['pEoSd'](getCurrentTestData),_0x1854a0={};return _0x1854a0['name']=_0x110462,_0x1854a0[_0x2eb3af(0x170)]=_0x34cefc[_0x2eb3af(0x176)]||'',_0x1854a0[_0x2eb3af(0x160)]=_0x34cefc[_0x2eb3af(0x159)]||'',_0x1854a0[_0x2eb3af(0x15b)]=global[_0x2eb3af(0x156)],await PerformanceTester[_0x2eb3af(0x168)](PerformanceEvents[_0x2eb3af(0x17a)],()=>percyScreenshot[_0x2eb3af(0x16e)](null,arguments),_0x1854a0);}:exports[a116_0x534e00(0x177)]=()=>{const _0x5ce352=a116_0x534e00,_0x6a9e4e={};_0x6a9e4e[_0x5ce352(0x169)]=_0x5ce352(0x175);const _0x161611=_0x6a9e4e;logger[_0x5ce352(0x163)](_0x161611['TXbdu']);};exports[a116_0x534e00(0x16c)]=async function(){const _0x78f0c0=a116_0x534e00,_0x33150d={'IvpOh':function(_0x3776e1,_0xd4199a){return _0x3776e1>=_0xd4199a;},'hfbOW':function(_0x1b4ed4){return _0x1b4ed4();}},_0x12ad6c=_0x33150d[_0x78f0c0(0x154)](arguments[_0x78f0c0(0x16f)],0x2)?arguments[0x1]:'',_0x39d49b=_0x33150d[_0x78f0c0(0x179)](getCurrentTestData),_0x9b6a31={};return _0x9b6a31[_0x78f0c0(0x176)]=_0x12ad6c,_0x9b6a31['testCase']=_0x39d49b[_0x78f0c0(0x176)]||'',_0x9b6a31[_0x78f0c0(0x160)]=_0x39d49b['uuid']||'',_0x9b6a31[_0x78f0c0(0x15b)]=global[_0x78f0c0(0x156)],await PerformanceTester[_0x78f0c0(0x168)](PerformanceEvents[_0x78f0c0(0x162)],()=>percyAppScreenshot[_0x78f0c0(0x16e)](null,arguments),_0x9b6a31);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a117_0x1973(_0x29b6ad,_0xd588c9){var _0x2504ab=a117_0x2504();return a117_0x1973=function(_0x19730b,_0x168524){_0x19730b=_0x19730b-0xb7;var _0xf77b12=_0x2504ab[_0x19730b];return _0xf77b12;},a117_0x1973(_0x29b6ad,_0xd588c9);}var a117_0x4c087f=a117_0x1973;(function(_0x1d44bc,_0x283cb0){var _0x17a6c3=a117_0x1973,_0x34a6f9=_0x1d44bc();while(!![]){try{var _0x56a687=-parseInt(_0x17a6c3(0xb9))/0x1*(-parseInt(_0x17a6c3(0xbf))/0x2)+-parseInt(_0x17a6c3(0xc1))/0x3*(parseInt(_0x17a6c3(0xb8))/0x4)+-parseInt(_0x17a6c3(0xbb))/0x5*(-parseInt(_0x17a6c3(0xbe))/0x6)+parseInt(_0x17a6c3(0xc2))/0x7*(-parseInt(_0x17a6c3(0xc3))/0x8)+-parseInt(_0x17a6c3(0xb7))/0x9+parseInt(_0x17a6c3(0xc0))/0xa+-parseInt(_0x17a6c3(0xba))/0xb;if(_0x56a687===_0x283cb0)break;else _0x34a6f9['push'](_0x34a6f9['shift']());}catch(_0x3d6c74){_0x34a6f9['push'](_0x34a6f9['shift']());}}}(a117_0x2504,0x5006e),module[a117_0x4c087f(0xbd)]=require(a117_0x4c087f(0xbc)));function a117_0x2504(){var _0x213ee4=['708957EpRglq','669156dNhmyH','849pDWHCJ','2697948iFxtPl','2373145hDxMjO','./Percy','exports','6jdhiOL','956dpDKNO','2560910yeriVm','3wXGHmH','686FaCtSi','25912uKtRbm'];a117_0x2504=function(){return _0x213ee4;};return a117_0x2504();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a118_0x58ca82=a118_0x1e8f;(function(_0x1dae61,_0x50228f){const _0x48e6b4=a118_0x1e8f,_0x21ece3=_0x1dae61();while(!![]){try{const _0x42a06b=-parseInt(_0x48e6b4(0x20f))/0x1+-parseInt(_0x48e6b4(0x1d5))/0x2*(parseInt(_0x48e6b4(0x1f2))/0x3)+-parseInt(_0x48e6b4(0x1da))/0x4*(-parseInt(_0x48e6b4(0x210))/0x5)+-parseInt(_0x48e6b4(0x1d7))/0x6+parseInt(_0x48e6b4(0x20a))/0x7+parseInt(_0x48e6b4(0x201))/0x8*(-parseInt(_0x48e6b4(0x219))/0x9)+parseInt(_0x48e6b4(0x20e))/0xa;if(_0x42a06b===_0x50228f)break;else _0x21ece3['push'](_0x21ece3['shift']());}catch(_0x5d82b7){_0x21ece3['push'](_0x21ece3['shift']());}}}(a118_0x5c67,0x912d1));function a118_0x1e8f(_0x483c7b,_0x1312bd){const _0x5c6792=a118_0x5c67();return a118_0x1e8f=function(_0x1e8fa2,_0x1c4b14){_0x1e8fa2=_0x1e8fa2-0x1d4;let _0x1aaff2=_0x5c6792[_0x1e8fa2];return _0x1aaff2;},a118_0x1e8f(_0x483c7b,_0x1312bd);}const Percy=require(a118_0x58ca82(0x211)),PercySDK=require(a118_0x58ca82(0x204)),PercyCaptureModes=require(a118_0x58ca82(0x1fb)),PercyCaptureMap=require('./PercyCaptureMap'),logger=require(a118_0x58ca82(0x215))[a118_0x58ca82(0x1e2)],helper=require(a118_0x58ca82(0x1e1)),PerformanceTester=require('../performance/performance-tester'),{PERCY_EVENTS:PerformanceEvents}=require(a118_0x58ca82(0x220));function a118_0x5c67(){const _0x13f3c7=['dDsQe','getName','deviceName','manual','screenshotApp','../performance/constants','percyCaptureMode','6AgvfWT','reduce','4927932IsqzjY','browser','auto','4LzHEJF','AUTO_CAPTURE','element','\x20for\x20percy\x20','then','nestedKeyValue','safari','../helper','winstonLogger','overrideXforPercy','getPercyOptions','startPercy','browserStackPercyOptions','NQLqG','app','AOzHz','yqUBD','uWUHQ','toLowerCase','init','error','aDiUW','firefox','JlTIb','1076454iNZZLE','HbXSK','measureWrapper','browserstackSessionName','percy','sFHJh','screenshot','percyAutoCapture','browserstackPercyBestPlatform','./PercyCaptureModes','chrome','apply','prototype','stopPercy','driver','1256KQMlbk','AITBY','Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present','./PercySDK','forEach','patchDriverPercy','patch','Error\x20patching\x20','debug','8318436dsXHxW','WpgSg','browserstackPercyMap','START','26007680oOxyeO','414748mtqugn','337140WcsZYn','./Percy','edge','lADmY','browserName','../logger','Stopping\x20percy','isUndefined','ZxoQo','54423qsluHQ','STOP'];a118_0x5c67=function(){return _0x13f3c7;};return a118_0x5c67();}exports[a118_0x58ca82(0x1e5)]=PerformanceTester[a118_0x58ca82(0x1f4)](PerformanceEvents[a118_0x58ca82(0x20d)],async _0x331a58=>{const _0x207bbf=a118_0x58ca82,_0xb8e90f={};_0xb8e90f[_0x207bbf(0x1f3)]='Starting\x20percy';const _0x239193=_0xb8e90f;logger[_0x207bbf(0x209)](_0x239193[_0x207bbf(0x1f3)]);const _0x1400a5=new Percy(_0x331a58),_0x370ff9=await _0x1400a5['start']();if(_0x370ff9)return _0x1400a5;return null;}),exports[a118_0x58ca82(0x1ff)]=PerformanceTester['measureWrapper'](PerformanceEvents[a118_0x58ca82(0x21a)],async _0x368aaf=>{const _0x5ef6f5=a118_0x58ca82,_0x44286b={};_0x44286b[_0x5ef6f5(0x1eb)]=_0x5ef6f5(0x216);const _0x27346b=_0x44286b;return logger[_0x5ef6f5(0x209)](_0x27346b[_0x5ef6f5(0x1eb)]),_0x368aaf['stop']();}),exports['getBestPlatformForPercySnapshot']=_0x1d2c80=>{const _0x4449a0=a118_0x58ca82,_0x393928={};_0x393928[_0x4449a0(0x1ef)]=function(_0x355e48,_0x48258b){return _0x355e48<_0x48258b;};const _0x3565a9=_0x393928,_0x419fa3={};_0x419fa3[_0x4449a0(0x1fc)]=0x0,_0x419fa3[_0x4449a0(0x1f0)]=0x1,_0x419fa3[_0x4449a0(0x212)]=0x2,_0x419fa3[_0x4449a0(0x1e0)]=0x3;const _0x45eecc=_0x419fa3;return _0x1d2c80[_0x4449a0(0x1d6)]((_0x31e239,_0x33ec48,_0xd97ac7)=>{const _0x2255c2=_0x4449a0,_0x3270d0=_0x1d2c80[_0x31e239];if(_0x33ec48[_0x2255c2(0x21d)])return _0x31e239;if(_0x3270d0[_0x2255c2(0x21d)])return _0xd97ac7;const _0x244084=_0x33ec48[_0x2255c2(0x1d8)]?_0x33ec48['browser']:_0x33ec48[_0x2255c2(0x214)];if(_0x244084&&_0x3565a9[_0x2255c2(0x1ef)](_0x45eecc[_0x244084[_0x2255c2(0x1ec)]()],_0x45eecc[_0x244084[_0x2255c2(0x1ec)]()]))return _0xd97ac7;return _0x31e239;},0x0);},exports['percyAutoCapture']=PerformanceTester[a118_0x58ca82(0x1f4)](PerformanceEvents[a118_0x58ca82(0x1db)],async(_0x3ef998,_0x23cc63,_0x2fa4f1)=>{const _0x5a6119=a118_0x58ca82,_0x501958={};_0x501958[_0x5a6119(0x213)]=_0x5a6119(0x203);const _0x3e2fb3=_0x501958,_0x4e42e4=_0x3ef998[_0x5a6119(0x20c)];if(helper[_0x5a6119(0x217)](_0x3ef998[_0x5a6119(0x1f5)])){logger[_0x5a6119(0x209)](_0x3e2fb3[_0x5a6119(0x213)]);return;}const _0x17c0c3=_0x4e42e4[_0x5a6119(0x21c)](_0x3ef998['browserstackSessionName'],_0x23cc63);_0x2fa4f1[_0x5a6119(0x1e8)]?await PercySDK[_0x5a6119(0x21f)](_0x3ef998,_0x17c0c3):await PercySDK[_0x5a6119(0x1f8)](_0x3ef998,_0x17c0c3),_0x4e42e4['increment'](_0x3ef998['browserstackSessionName'],_0x23cc63);}),exports[a118_0x58ca82(0x206)]=(_0xbc3de7,_0x41814,_0x469012)=>{const _0x2ec0fa=a118_0x58ca82,_0xb1c212={};_0xb1c212[_0x2ec0fa(0x1e7)]=_0x2ec0fa(0x1e6),_0xb1c212['sFHJh']=_0x2ec0fa(0x1f6),_0xb1c212[_0x2ec0fa(0x1e9)]=function(_0x19af37,_0xddb15d){return _0x19af37!==_0xddb15d;},_0xb1c212['yqUBD']=_0x2ec0fa(0x21e);const _0x10f1d9=_0xb1c212;if(!helper[_0x2ec0fa(0x1df)](_0x469012,[_0x10f1d9[_0x2ec0fa(0x1e7)],_0x10f1d9[_0x2ec0fa(0x1f7)]]))return;if(_0x469012[_0x2ec0fa(0x1e6)]['percy']&&_0x469012[_0x2ec0fa(0x1e6)]['percyCaptureMode']&&_0x10f1d9[_0x2ec0fa(0x1e9)](_0x469012[_0x2ec0fa(0x1e6)][_0x2ec0fa(0x1d4)],_0x10f1d9[_0x2ec0fa(0x1ea)])&&!_0xbc3de7[_0x2ec0fa(0x20c)]){global[_0x2ec0fa(0x1f5)]&&(_0xbc3de7[_0x2ec0fa(0x1f5)]=global[_0x2ec0fa(0x1f5)]),_0xbc3de7['browserstackPercyMap']=new PercyCaptureMap();const _0xa09f87=PercyCaptureModes[_0x469012[_0x2ec0fa(0x1e6)][_0x2ec0fa(0x1d4)]];_0xa09f87[_0x2ec0fa(0x200)]&&_0xa09f87[_0x2ec0fa(0x200)][_0x2ec0fa(0x205)](_0x4a4d54=>this[_0x2ec0fa(0x1e3)](_0xbc3de7,_0x4a4d54,_0x469012)),_0xa09f87['element']&&_0xa09f87[_0x2ec0fa(0x1dc)][_0x2ec0fa(0x205)](_0x245b02=>{const _0x1a7c97=_0x2ec0fa;if(_0x41814['prototype'][_0x1a7c97(0x207)+_0x245b02])return;_0x41814[_0x1a7c97(0x1fe)][_0x1a7c97(0x207)+_0x245b02]=!![];const _0x301d4f=_0x41814[_0x1a7c97(0x1fe)][_0x245b02];_0x41814['prototype'][_0x245b02]=async function(){const _0x1ea5a4=_0x1a7c97;let _0x170329=_0x301d4f['apply'](this,arguments);_0x170329&&_0x170329[_0x1ea5a4(0x1de)]&&(_0x170329=await _0x170329);try{const _0x4d0739=this['getDriver']();await exports[_0x1ea5a4(0x1f9)](_0x4d0739,_0x245b02,_0x469012);}catch(_0xeb66a8){logger[_0x1ea5a4(0x1ee)](_0x1ea5a4(0x208)+_0x245b02+'\x20for\x20percy\x20'+_0xeb66a8);}return _0x170329;};});}},exports[a118_0x58ca82(0x1e3)]=function(_0x1d4bd1,_0x46d02a,_0x364531){const _0x202983=a118_0x58ca82,_0x1d4e13={};_0x1d4e13['WpgSg']=function(_0x10cd50,_0x52d0a2){return _0x10cd50+_0x52d0a2;},_0x1d4e13[_0x202983(0x21b)]=_0x202983(0x207),_0x1d4e13[_0x202983(0x218)]=function(_0x2cfe8c,_0x1937e7){return _0x2cfe8c+_0x1937e7;},_0x1d4e13[_0x202983(0x202)]=_0x202983(0x1ed);const _0x549d1b=_0x1d4e13,_0x27b5f8=_0x549d1b[_0x202983(0x20b)](_0x549d1b[_0x202983(0x21b)],_0x46d02a),_0x54c597=_0x549d1b[_0x202983(0x218)](_0x549d1b[_0x202983(0x202)],_0x46d02a),_0x4c1831=this;if(_0x1d4bd1[_0x27b5f8]||!_0x1d4bd1[_0x46d02a])return;_0x1d4bd1[_0x27b5f8]=!![],_0x1d4bd1[_0x54c597]=_0x1d4bd1[_0x46d02a],_0x1d4bd1[_0x46d02a]=async()=>{const _0x2e5c67=_0x202983;try{await _0x4c1831[_0x2e5c67(0x1f9)](_0x1d4bd1,_0x46d02a,_0x364531);}catch(_0x2261bb){logger[_0x2e5c67(0x1ee)](_0x2e5c67(0x208)+_0x46d02a+_0x2e5c67(0x1dd)+_0x2261bb);}return await _0x1d4bd1[_0x54c597][_0x2e5c67(0x1fd)](_0x1d4bd1,arguments);};},exports[a118_0x58ca82(0x1e4)]=_0x1e052b=>{const _0x33d98b=a118_0x58ca82,_0x34938c={};_0x34938c[_0x33d98b(0x1f1)]=_0x33d98b(0x1d9);const _0x17e053=_0x34938c,_0x45ab11={};_0x45ab11[_0x33d98b(0x1f6)]=_0x1e052b[_0x33d98b(0x1f6)],_0x45ab11[_0x33d98b(0x1d4)]=_0x1e052b['percyCaptureMode']||_0x17e053[_0x33d98b(0x1f1)];const _0x2cb281=_0x45ab11;_0x1e052b[_0x33d98b(0x1f6)]&&(_0x2cb281[_0x33d98b(0x1fa)]=exports['getBestPlatformForPercySnapshot'](_0x1e052b['platforms']));;return _0x2cb281;};
|