browserstack-node-sdk 1.34.25 → 1.34.27
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/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/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/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_before.setup.js +1 -1
- package/src/bin/launcher/launcher.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/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/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.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/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.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-tester.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/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 a68_0x443a5f=a68_0x5ce3;(function(_0x1fcaf7,_0x42c48b){const _0xc9de21=a68_0x5ce3,_0x161c44=_0x1fcaf7();while(!![]){try{const _0x275469=parseInt(_0xc9de21(0x1cd))/0x1+-parseInt(_0xc9de21(0x1ce))/0x2+parseInt(_0xc9de21(0x1c6))/0x3*(parseInt(_0xc9de21(0x1d6))/0x4)+parseInt(_0xc9de21(0x1da))/0x5*(-parseInt(_0xc9de21(0x1ba))/0x6)+-parseInt(_0xc9de21(0x1d7))/0x7+parseInt(_0xc9de21(0x1d8))/0x8+parseInt(_0xc9de21(0x1d1))/0x9*(parseInt(_0xc9de21(0x1cb))/0xa);if(_0x275469===_0x42c48b)break;else _0x161c44['push'](_0x161c44['shift']());}catch(_0x3fdc53){_0x161c44['push'](_0x161c44['shift']());}}}(a68_0x50de,0x9c4c2));const winston=require(a68_0x443a5f(0x1c7)),os=require('os'),fs=require('fs'),path=require(a68_0x443a5f(0x1c9)),logDir='log';!fs['existsSync'](logDir)&&fs[a68_0x443a5f(0x1c2)](logDir);const a68_0x4ebe74={};a68_0x4ebe74[a68_0x443a5f(0x1d2)]=a68_0x443a5f(0x1bf);const transports={'loggerConsole':new winston[(a68_0x443a5f(0x1c8))][(a68_0x443a5f(0x1ca))](a68_0x4ebe74),'loggerFile':new winston[(a68_0x443a5f(0x1c8))]['File']({'filename':path['join'](logDir,a68_0x443a5f(0x1be))}),'debugLoggerFile':new winston[(a68_0x443a5f(0x1c8))][(a68_0x443a5f(0x1d4))]({'filename':path[a68_0x443a5f(0x1d0)](logDir,a68_0x443a5f(0x1db)),'level':a68_0x443a5f(0x1d5)})},a68_0x3b7bb3={};a68_0x3b7bb3[a68_0x443a5f(0x1c1)]=a68_0x443a5f(0x1c4);function a68_0x5ce3(_0x360285,_0x38df1b){const _0x50de2b=a68_0x50de();return a68_0x5ce3=function(_0x5ce340,_0x373703){_0x5ce340=_0x5ce340-0x1ba;let _0x2c6f2a=_0x50de2b[_0x5ce340];return _0x2c6f2a;},a68_0x5ce3(_0x360285,_0x38df1b);}const a68_0x52f1ee={};a68_0x52f1ee['level']=!![];const winstonLoggerParams={'format':winston[a68_0x443a5f(0x1c1)][a68_0x443a5f(0x1bc)](winston['format'][a68_0x443a5f(0x1c5)](a68_0x3b7bb3),winston[a68_0x443a5f(0x1c1)]['colorize'](a68_0x52f1ee),winston['format'][a68_0x443a5f(0x1bb)](_0x276e55=>_0x276e55['timestamp']+a68_0x443a5f(0x1dd)+_0x276e55[a68_0x443a5f(0x1c3)]+':\x20'+_0x276e55[a68_0x443a5f(0x1de)])),'transports':[transports[a68_0x443a5f(0x1dc)],transports[a68_0x443a5f(0x1d9)],transports[a68_0x443a5f(0x1c0)]]},a68_0x5cd4b8={};a68_0x5cd4b8[a68_0x443a5f(0x1c1)]=a68_0x443a5f(0x1c4);const a68_0x1349e9={};a68_0x1349e9['level']=!![];function a68_0x50de(){const _0x412087=['combine','createLogger','/usage.log','console.info','debugLoggerFile','format','mkdirSync','level','YYYY-MM-DD\x20HH:mm:ss','timestamp','3sOcmmQ','winston','transports','path','Console','7005450jyZjXz','colorize','576034SomKyc','207392WwUGMW','winstonLogger','join','9zZLLvG','name','logDir','File','silly','1639124KNLxMD','6281086WjsgPI','174816pCDivg','loggerFile','4720LraUhv','/usage-debug.log','loggerConsole','\x20-\x20','message','426oEiXlO','printf'];a68_0x50de=function(){return _0x412087;};return a68_0x50de();}const winstonFileLoggerParams={'format':winston['format'][a68_0x443a5f(0x1bc)](winston[a68_0x443a5f(0x1c1)][a68_0x443a5f(0x1c5)](a68_0x5cd4b8),winston[a68_0x443a5f(0x1c1)][a68_0x443a5f(0x1cc)](a68_0x1349e9),winston['format'][a68_0x443a5f(0x1bb)](_0x30269d=>_0x30269d[a68_0x443a5f(0x1c3)]+':\x20'+_0x30269d[a68_0x443a5f(0x1de)])),'transports':[transports[a68_0x443a5f(0x1d9)],transports[a68_0x443a5f(0x1c0)]]};exports[a68_0x443a5f(0x1cf)]=new winston[(a68_0x443a5f(0x1bd))](winstonLoggerParams),exports['fileLogger']=new winston[(a68_0x443a5f(0x1bd))](winstonFileLoggerParams),exports[a68_0x443a5f(0x1d3)]=logDir,exports['transports']=transports;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a69_0x2ade(){const _0x33c472=['get','parameters_','Ryzsg','HYMIg','info','mYFIB','getTcgTokenStatus','2844864glBzcZ','bstack:options','YIbkk','find','getId','url','local','execute','nestedKeyValue','kubdU','findElement','aiHeal:setToken','FTuEs','./globals','DrdNe','rVSKv','Error\x20in\x20handling\x20TCG\x20Auth:\x20','toString','Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','vhgjg','1489535QGFNOJ','FJDJg','qjoha','isBrowserstackInfra','928613BNSbRI','Healing\x20failed\x20for\x20command\x20using\x20','isSelfHealEnabled','getNudgeLocalNotSetError','includes','ZZyGu','Mybtc','5673720MHxCol','sfuMz','aiSdk_defaultLogDataEnabled','skipHealingSuccess','oexjh','duEcV','pcNte','iJPge','RNvNZ','css\x20selector','error','JavascriptError','mraQH','aEBJi','Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20',';\x20Trying\x20to\x20heal','eOpoq','dKKRe','16DFKqvI','name_','iqXCR','name','Successfully\x20healed\x20command\x20using\x20new\x20','using','./ai-sdk/aiSdkWrapper','HYQIt','overrideExecute','ZHXTO','handleFailure','setTcgTokenStatus','capability','LyVYN','oJAeF','NUDGE_LOCAL_ERRORS','2vlbGaH','debug','value','tRPQP','OicVS','./ai-sdk/autoHealHelper','zdmhU','../bin/utils/constants','FkYib','./logger','getGlobal','6804774AreyeA','xMRtw','aiHeal:findElementSuccess','ZYNFM','hgKeG','measureWrapper','patchExecute','findElement\x20command\x20failed\x20with\x20','SrnHz','findElement\x20command\x20failed\x20with\x20cssPath:\x20','PjwTc','initExecute','aiHeal_isAuthenticated','DRgfs','getSession','setAiSessionTimeStamp','40968GWUUho','Successfully\x20healed\x20command\x20using\x20new\x20cssPath:\x20','setTcgToken','handleSuccess','489315ajmqnt','./performance-tester'];a69_0x2ade=function(){return _0x33c472;};return a69_0x2ade();}const a69_0x4aeb79=a69_0x9751;(function(_0x6f70c7,_0x20fb81){const _0x2b9295=a69_0x9751,_0x408c53=_0x6f70c7();while(!![]){try{const _0x3216a9=parseInt(_0x2b9295(0xdf))/0x1+-parseInt(_0x2b9295(0x10c))/0x2*(-parseInt(_0x2b9295(0xc2))/0x3)+parseInt(_0x2b9295(0xcb))/0x4+-parseInt(_0x2b9295(0xea))/0x5+parseInt(_0x2b9295(0xbe))/0x6+parseInt(_0x2b9295(0xe3))/0x7*(parseInt(_0x2b9295(0xfc))/0x8)+-parseInt(_0x2b9295(0x117))/0x9;if(_0x3216a9===_0x20fb81)break;else _0x408c53['push'](_0x408c53['shift']());}catch(_0x509a30){_0x408c53['push'](_0x408c53['shift']());}}}(a69_0x2ade,0xb5ed4));const {aiSdkWrapper}=require(a69_0x4aeb79(0x102)),{commandRepository}=require(a69_0x4aeb79(0x111)),PerformanceTester=require(a69_0x4aeb79(0xc3)),globals=require(a69_0x4aeb79(0xd8)),logger=require(a69_0x4aeb79(0x115))['winstonLogger'],helper=require('./helper'),constants=require(a69_0x4aeb79(0x113));function a69_0x9751(_0x47ebfc,_0x5686b4){const _0x2adedb=a69_0x2ade();return a69_0x9751=function(_0x975121,_0x1e4ad5){_0x975121=_0x975121-0xb8;let _0x240804=_0x2adedb[_0x975121];return _0x240804;},a69_0x9751(_0x47ebfc,_0x5686b4);}exports[a69_0x4aeb79(0x104)]=(_0x4f9633,_0x2f9c3e)=>{const _0x4b51c7=a69_0x4aeb79,_0x5cd027={'YIbkk':_0x4b51c7(0xba),'dKKRe':_0x4b51c7(0xd6),'iqXCR':function(_0x1b1c79){return _0x1b1c79();},'iJPge':_0x4b51c7(0xec),'mYFIB':function(_0x15cf3f,_0x3e0f07){return _0x15cf3f===_0x3e0f07;},'LyVYN':_0x4b51c7(0xd5),'SrnHz':'aiHeal_isHealingEnabled','OicVS':_0x4b51c7(0x119),'vhgjg':_0x4b51c7(0xdd),'aEBJi':'NoSuchElementError','ZZyGu':function(_0x581c92,_0x34e538){return _0x581c92===_0x34e538;},'hgKeG':_0x4b51c7(0xf5),'mraQH':function(_0x36a4e0,_0xf573d6){return _0x36a4e0===_0xf573d6;},'oexjh':_0x4b51c7(0xf3),'DrdNe':function(_0x5571d3,_0x205296){return _0x5571d3+_0x205296;},'Mybtc':function(_0x563fbf,_0x48316f){return _0x563fbf+_0x48316f;},'HYQIt':_0x4b51c7(0x120),'ZYNFM':_0x4b51c7(0xf9),'oJAeF':function(_0x33705c,_0x3dd91e){return _0x33705c+_0x3dd91e;},'rVSKv':function(_0x30c1ea,_0x52d542){return _0x30c1ea+_0x52d542;},'xJPva':_0x4b51c7(0x11e),'DRgfs':'aiHeal:findElementFailure','BOELz':function(_0x314afe){return _0x314afe();},'qjoha':function(_0x56225d,_0xf6a519){return _0x56225d&&_0xf6a519;},'JIijH':function(_0x2052b3,_0x289c2a){return _0x2052b3===_0x289c2a;},'XnOBG':_0x4b51c7(0xbf),'LsTHs':function(_0x17a4ea,_0x1c4324){return _0x17a4ea+_0x1c4324;},'Ryzsg':function(_0x36c82a,_0x228e3a){return _0x36c82a+_0x228e3a;},'xMRtw':_0x4b51c7(0x100),'eOpoq':function(_0x3bdc70,_0x57f99a){return _0x3bdc70===_0x57f99a;},'zdmhU':function(_0x3b14ed,_0x7b276){return _0x3b14ed+_0x7b276;},'tRPQP':'Healing\x20failed\x20for\x20command\x20using\x20cssPath:\x20','HYMIg':function(_0x154c13,_0x4d2177){return _0x154c13+_0x4d2177;},'cQaDn':function(_0x53f681,_0x2590b9){return _0x53f681+_0x2590b9;},'kubdU':_0x4b51c7(0xe4),'RNvNZ':function(_0x198840,_0x1bb01c){return _0x198840===_0x1bb01c;},'FkYib':_0x4b51c7(0xc4),'PjwTc':_0x4b51c7(0xc5),'FJDJg':_0x4b51c7(0xd0),'FTuEs':_0x4b51c7(0xf8),'sfuMz':_0x4b51c7(0x108),'duEcV':'browserstack.local','pcNte':_0x4b51c7(0xcc),'ZHXTO':_0x4b51c7(0xd1)},_0x5f5448=_0x4f9633[_0x4b51c7(0x11d)]||(helper[_0x4b51c7(0xd3)](_0x2f9c3e,[_0x5cd027[_0x4b51c7(0xeb)],_0x5cd027[_0x4b51c7(0xef)]])||helper[_0x4b51c7(0xd3)](_0x2f9c3e,[_0x5cd027[_0x4b51c7(0xeb)],_0x5cd027[_0x4b51c7(0xf0)],_0x5cd027[_0x4b51c7(0x105)]]));if(!globals[_0x4b51c7(0x116)](_0x5cd027['YIbkk'])&&!globals[_0x4b51c7(0x116)](_0x5cd027[_0x4b51c7(0x11f)])&&_0x5f5448)return;_0x4f9633['patchExecute']=!![],_0x4f9633[_0x4b51c7(0xb9)]=_0x4f9633[_0x4b51c7(0xd2)],_0x4f9633[_0x4b51c7(0xd2)]=async _0x195019=>{const _0x36b000=_0x4b51c7;try{if(!commandRepository[_0x36b000(0xca)]()&&globals[_0x36b000(0x116)](_0x5cd027[_0x36b000(0xcd)])){const _0x18a79d=PerformanceTester[_0x36b000(0x11c)](_0x5cd027[_0x36b000(0xfb)],async()=>{const _0x42b15b=_0x36b000;try{commandRepository[_0x42b15b(0x107)](!![]),await aiSdkWrapper[_0x42b15b(0xc0)]((await _0x4f9633['getSession']())[_0x42b15b(0xcf)]());const _0x50b905=globals[_0x42b15b(0x116)](_0x5cd027[_0x42b15b(0xcd)]);_0x50b905&&commandRepository[_0x42b15b(0xbd)]((await _0x4f9633[_0x42b15b(0xbc)]())[_0x42b15b(0xcf)]());}catch(_0x43be12){logger[_0x42b15b(0xf4)](_0x42b15b(0xdb)+_0x43be12);}});await _0x5cd027[_0x36b000(0xfe)](_0x18a79d);}const _0x433de1=await _0x4f9633[_0x36b000(0xb9)](_0x195019);if(!helper[_0x36b000(0xe2)]()&&(commandRepository[_0x36b000(0xe5)]()||globals[_0x36b000(0x116)](_0x5cd027[_0x36b000(0xf1)]))&&_0x5cd027[_0x36b000(0xc9)](_0x195019[_0x36b000(0xfd)],_0x5cd027[_0x36b000(0x109)])&&!_0x195019[_0x36b000(0xed)]&&globals[_0x36b000(0x116)](_0x5cd027[_0x36b000(0xcd)])&&globals[_0x36b000(0x116)](_0x5cd027['SrnHz'])){const _0x107bbd=new Date(),_0x37fbd2=PerformanceTester[_0x36b000(0x11c)](_0x5cd027[_0x36b000(0x110)],async()=>{const _0x3aafdf=_0x36b000;return await aiSdkWrapper[_0x3aafdf(0xc1)](_0x2f9c3e,_0x4f9633,_0x195019);});await _0x5cd027[_0x36b000(0xfe)](_0x37fbd2);}return _0x433de1;}catch(_0xcac5bf){logger[_0x36b000(0x10d)](_0x5cd027[_0x36b000(0xde)]);try{if(!helper[_0x36b000(0xe2)]()&&(_0x5cd027[_0x36b000(0xc9)](_0xcac5bf[_0x36b000(0xff)],_0x5cd027[_0x36b000(0xf7)])||_0x5cd027[_0x36b000(0xe8)](_0xcac5bf['name'],_0x5cd027[_0x36b000(0x11b)]))&&_0x5cd027[_0x36b000(0xc9)](_0x195019[_0x36b000(0xfd)],_0x5cd027[_0x36b000(0x109)])&&commandRepository[_0x36b000(0xe5)]()&&globals['getGlobal'](_0x5cd027[_0x36b000(0xcd)])&&globals[_0x36b000(0x116)](_0x5cd027[_0x36b000(0x11f)])){_0x5cd027[_0x36b000(0xf6)](_0x195019['parameters_'][_0x36b000(0x101)],_0x5cd027['oexjh'])?logger[_0x36b000(0xc8)](_0x5cd027['DrdNe'](_0x5cd027[_0x36b000(0xe9)](_0x5cd027[_0x36b000(0x103)],_0x195019[_0x36b000(0xc5)][_0x36b000(0x10e)]),_0x5cd027[_0x36b000(0x11a)])):logger['info'](_0x5cd027[_0x36b000(0x10a)](_0x5cd027[_0x36b000(0xda)](_0x5cd027[_0x36b000(0xd9)](_0x5cd027[_0x36b000(0x10a)](_0x5cd027['xJPva'],_0x195019[_0x36b000(0xc5)][_0x36b000(0x101)]),':\x20'),_0x195019[_0x36b000(0xc5)]['value']),_0x5cd027['ZYNFM']));const _0x34cdf6=PerformanceTester['measureWrapper'](_0x5cd027[_0x36b000(0xbb)],async()=>{const _0x403477=_0x36b000;return await aiSdkWrapper[_0x403477(0x106)](_0x2f9c3e,_0x4f9633,_0x195019);}),_0x5c006f=new Date(),{locatorType:_0x32b97a,locatorValue:_0x38f69a,commandHealed:_0x590ebf}=await _0x5cd027['BOELz'](_0x34cdf6);if(_0x5cd027[_0x36b000(0xe1)](_0x32b97a,_0x38f69a)){_0x195019['parameters_'][_0x36b000(0x101)]=_0x32b97a,_0x195019[_0x36b000(0xc5)][_0x36b000(0x10e)]=_0x38f69a,_0x195019['skipHealingSuccess']=!![];const _0x370ab8=_0x4f9633['execute'](_0x195019);return _0x5cd027['JIijH'](_0x32b97a,_0x5cd027[_0x36b000(0xee)])?logger[_0x36b000(0xc8)](_0x5cd027[_0x36b000(0xe9)](_0x5cd027['XnOBG'],_0x38f69a)):logger[_0x36b000(0xc8)](_0x5cd027[_0x36b000(0x10a)](_0x5cd027['LsTHs'](_0x5cd027[_0x36b000(0xc6)](_0x5cd027[_0x36b000(0x118)],_0x32b97a),':\x20'),_0x38f69a)),_0x370ab8;}else!_0x590ebf&&(_0x5cd027[_0x36b000(0xfa)](_0x32b97a,_0x5cd027[_0x36b000(0xee)])?logger[_0x36b000(0xc8)](_0x5cd027[_0x36b000(0x112)](_0x5cd027[_0x36b000(0x10f)],_0x195019[_0x36b000(0xc5)][_0x36b000(0x10e)])):logger[_0x36b000(0xc8)](_0x5cd027[_0x36b000(0xc7)](_0x5cd027['HYMIg'](_0x5cd027['cQaDn'](_0x5cd027[_0x36b000(0xd4)],_0x195019[_0x36b000(0xc5)][_0x36b000(0x101)]),':\x20'),_0x195019[_0x36b000(0xc5)][_0x36b000(0x10e)])));}!_0x5f5448&&_0x5cd027[_0x36b000(0xf2)](_0x195019[_0x36b000(0xfd)],_0x5cd027[_0x36b000(0x114)])&&helper[_0x36b000(0xd3)](_0x195019,[_0x5cd027[_0x36b000(0xb8)],_0x5cd027[_0x36b000(0xe0)]])&&!!constants[_0x36b000(0x10b)][_0x36b000(0xce)](_0x5e5cc0=>{const _0x2681c0=_0x36b000;return _0xcac5bf[_0x2681c0(0xdc)]()[_0x2681c0(0xe7)](_0x5e5cc0);})&&helper[_0x36b000(0xe6)](_0x195019[_0x36b000(0xc5)][_0x36b000(0xd0)],!![]);}catch(_0x4deba5){logger[_0x36b000(0x10d)](_0x5cd027[_0x36b000(0xd7)],_0x4deba5);}throw _0xcac5bf;}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a70_0x101d(_0x1a7584,_0x5340f2){var _0x3c3bd=a70_0x3c3b();return a70_0x101d=function(_0x101d09,_0x32c6fd){_0x101d09=_0x101d09-0x1a1;var _0x1627c7=_0x3c3bd[_0x101d09];return _0x1627c7;},a70_0x101d(_0x1a7584,_0x5340f2);}var a70_0x53cee5=a70_0x101d;function a70_0x3c3b(){var _0x2228cc=['MZdRM','TNbKz','initScreenshot','BkFgx','608724uFoJgo','keZHz','emit','5364492QWmWJj','1686013YeqFMG','sIGYs','4|2|0|3|1','374615DtWuUM','quitCount_','GjdJv','patchQuit','initQuit','1031922Wtscft','dajLz','patchScreenshot','3VtwOVE','toISOString','takeScreenshot','NdaAn','awwVJ','quit','overrideTakeScreenshot','true','12658112HZHOpZ','45095868CETGrC','lKQZx','Reepx','18LBijwh','overrideQuit','split'];a70_0x3c3b=function(){return _0x2228cc;};return a70_0x3c3b();}(function(_0x17e3d8,_0x316aae){var _0x16f549=a70_0x101d,_0x11fb7e=_0x17e3d8();while(!![]){try{var _0x59876b=-parseInt(_0x16f549(0x1bd))/0x1*(parseInt(_0x16f549(0x1ba))/0x2)+-parseInt(_0x16f549(0x1ae))/0x3+-parseInt(_0x16f549(0x1b1))/0x4+-parseInt(_0x16f549(0x1b5))/0x5+-parseInt(_0x16f549(0x1a7))/0x6*(-parseInt(_0x16f549(0x1b2))/0x7)+-parseInt(_0x16f549(0x1a3))/0x8+parseInt(_0x16f549(0x1a4))/0x9;if(_0x59876b===_0x316aae)break;else _0x11fb7e['push'](_0x11fb7e['shift']());}catch(_0x133a99){_0x11fb7e['push'](_0x11fb7e['shift']());}}}(a70_0x3c3b,0xf0440),exports[a70_0x53cee5(0x1a1)]=_0x4a30a3=>{var _0x44601d=a70_0x53cee5,_0x56b33d={'yqiSG':'3|4|1|0|2|5','XsLOb':'TEST_SCREENSHOT','Reepx':function(_0xcd8bde,_0x303e51){return _0xcd8bde(_0x303e51);},'sIGYs':function(_0x9b88eb,_0x554d05){return _0x9b88eb!==_0x554d05;},'BkFgx':_0x44601d(0x1a2)},_0x3e6f35=_0x56b33d['yqiSG'][_0x44601d(0x1a9)]('|'),_0x15f2dd=0x0;while(!![]){switch(_0x3e6f35[_0x15f2dd++]){case'0':_0x4a30a3[_0x44601d(0x1bc)]=!![];continue;case'1':if(_0x4a30a3[_0x44601d(0x1bc)])return;continue;case'2':_0x4a30a3[_0x44601d(0x1ac)]=_0x4a30a3[_0x44601d(0x1bf)];continue;case'3':var _0x22b3bf={'RRPFS':_0x56b33d['XsLOb'],'UuHOT':function(_0x50537e,_0x1cb2d6){var _0x543b41=_0x44601d;return _0x56b33d[_0x543b41(0x1a6)](_0x50537e,_0x1cb2d6);}};continue;case'4':if(_0x56b33d[_0x44601d(0x1b3)](process['env']['BS_TESTOPS_ALLOW_SCREENSHOTS'],_0x56b33d[_0x44601d(0x1ad)]))return;continue;case'5':_0x4a30a3[_0x44601d(0x1bf)]=()=>{var _0x2b1d4d={'NdaAn':_0x22b3bf['RRPFS'],'awwVJ':function(_0x1d0ca6,_0x47626d){return _0x22b3bf['UuHOT'](_0x1d0ca6,_0x47626d);}};return new Promise(function(_0xa5f562,_0x5c148f){var _0x174c9f=a70_0x101d,_0x68faa5={'lKQZx':_0x2b1d4d[_0x174c9f(0x1c0)],'MZdRM':function(_0xab52a5,_0x31163f){var _0x1ef9c6=_0x174c9f;return _0x2b1d4d[_0x1ef9c6(0x1c1)](_0xab52a5,_0x31163f);}};_0x4a30a3[_0x174c9f(0x1ac)]()['then'](_0x3494b0=>{var _0xeaf85a=_0x174c9f;process[_0xeaf85a(0x1b0)]('bs:addLog:'+process['pid'],{'timestamp':new Date()[_0xeaf85a(0x1be)](),'message':_0x3494b0,'kind':_0x68faa5[_0xeaf85a(0x1a5)]}),_0x68faa5[_0xeaf85a(0x1aa)](_0xa5f562,_0x3494b0);});});};continue;}break;}},exports[a70_0x53cee5(0x1a8)]=(_0x4b1352,_0x4780af=null)=>{var _0x3f0c9d=a70_0x53cee5,_0x12aa02={'keZHz':_0x3f0c9d(0x1b4),'GjdJv':function(_0x415f39){return _0x415f39();},'TNbKz':function(_0x2973e3,_0x1d356f){return _0x2973e3>_0x1d356f;}},_0x1e20f6=_0x12aa02[_0x3f0c9d(0x1af)][_0x3f0c9d(0x1a9)]('|'),_0x1f1920=0x0;while(!![]){switch(_0x1e20f6[_0x1f1920++]){case'0':_0x4b1352[_0x3f0c9d(0x1b8)]=!![];continue;case'1':_0x4b1352[_0x3f0c9d(0x1c2)]=()=>{var _0xcad51b=_0x3f0c9d;if(_0x4780af){_0x4780af[_0xcad51b(0x1b6)]+=0x1;if(_0x2edf09['dajLz'](_0x4780af[_0xcad51b(0x1b6)],0x1))return _0x4b1352[_0xcad51b(0x1b9)]();}else{_0x4b1352['quitCount_']+=0x1;if(_0x2edf09[_0xcad51b(0x1bb)](_0x4b1352[_0xcad51b(0x1b6)],0x1))return _0x4b1352[_0xcad51b(0x1b9)]();}return new Promise(function(_0x8cf2d1){_0x2edf09['mWcex'](_0x8cf2d1);});};continue;case'2':if(_0x4b1352[_0x3f0c9d(0x1b8)])return;continue;case'3':_0x4b1352[_0x3f0c9d(0x1b9)]=_0x4b1352[_0x3f0c9d(0x1c2)];continue;case'4':var _0x2edf09={'mWcex':function(_0x50c23a){var _0x38e37a=_0x3f0c9d;return _0x12aa02[_0x38e37a(0x1b7)](_0x50c23a);},'dajLz':function(_0x2838bb,_0x58ffee){var _0x21a77c=_0x3f0c9d;return _0x12aa02[_0x21a77c(0x1ab)](_0x2838bb,_0x58ffee);}};continue;}break;}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a71_0x10c4a2=a71_0xf06c;function a71_0xf06c(_0x439e81,_0x4a4f75){const _0x30431e=a71_0x3043();return a71_0xf06c=function(_0xf06cdf,_0x28f2b6){_0xf06cdf=_0xf06cdf-0x1a2;let _0x508643=_0x30431e[_0xf06cdf];return _0x508643;},a71_0xf06c(_0x439e81,_0x4a4f75);}(function(_0x390a1f,_0x460e58){const _0x908c1f=a71_0xf06c,_0x581e4d=_0x390a1f();while(!![]){try{const _0x3c219b=-parseInt(_0x908c1f(0x1d0))/0x1+-parseInt(_0x908c1f(0x1ae))/0x2+-parseInt(_0x908c1f(0x1bf))/0x3*(-parseInt(_0x908c1f(0x1ab))/0x4)+-parseInt(_0x908c1f(0x1e7))/0x5+parseInt(_0x908c1f(0x1b1))/0x6+parseInt(_0x908c1f(0x1aa))/0x7*(-parseInt(_0x908c1f(0x1e2))/0x8)+parseInt(_0x908c1f(0x1bd))/0x9;if(_0x3c219b===_0x460e58)break;else _0x581e4d['push'](_0x581e4d['shift']());}catch(_0x253a32){_0x581e4d['push'](_0x581e4d['shift']());}}}(a71_0x3043,0xb9daa));function a71_0x3043(){const _0x431a15=['exec','ROlWl','aoGcC','writeFile','data','close','../../helpers/testhub/constants','push','api/app_percy/get_project_token?name=','HjIHN','BROWSERSTACK_TESTHUB_UUID','env','token','ovmiX','331109uTqacy','exports','tmpdir','isProcessRunning','XOEKo','GET','percyOptions','lCRiF','Percy\x20config\x20created\x20at\x20','app','start','debug','createPercyConfig','fetchPercyToken','Error\x20creating\x20percy\x20config:\x20','healthcheck','Percy\x20healthcheck\x20successful','OtwiX','145352ikESRk','bdtiS','stop','nodeRequest','kSzQq','4938680HtKabg',':start','createWriteStream','&type=','stdout','./PercyBinary','exec:stop','http://localhost:5338','Percy\x20fetch\x20token\x20success','join','JERnZ','UbzKJ','zuHUY','projectName','../logger','HenIh','assign','420oVWKWm','5056328IxbYRu','flags','winstonLogger','91906QrQhaE','automate','IGIqF','4771662pTGoUA','../helper','percy/healthcheck','PERCY_SERVER_ADDRESS','xxwiJ','stringify','ENV_VAR','stderr','child_process','error','WlQCW','version','10411533CurVxU','percy.log','3GkrNpg','VxHbk','hbMMF'];a71_0x3043=function(){return _0x431a15;};return a71_0x3043();}const fs=require('fs'),path=require('path'),os=require('os'),{spawn}=require(a71_0x10c4a2(0x1b9)),helper=require(a71_0x10c4a2(0x1b2)),logger=require(a71_0x10c4a2(0x1a7))[a71_0x10c4a2(0x1ad)],{logDir}=require(a71_0x10c4a2(0x1a7)),testHubConstants=require(a71_0x10c4a2(0x1c8)),PercyBinary=require(a71_0x10c4a2(0x1ec));class Percy{#logfile=path['join'](logDir,a71_0x10c4a2(0x1be));#address=process['env'][a71_0x10c4a2(0x1b4)]||a71_0x10c4a2(0x1ee);#binaryPath=null;#config=null;#proc=null;#isApp=![];[a71_0x10c4a2(0x1d3)]=![];constructor(_0x35e621){this.#config=_0x35e621,!!_0x35e621['app']&&(this.#isApp=!![]);}async #getBinaryPath(){if(!this.#binaryPath){const _0xa471e7=new PercyBinary();this.#binaryPath=await _0xa471e7['getBinaryPath'](this.#config);}return this.#binaryPath;}async #sleep(_0x125786){return new Promise(_0x32fa83=>setTimeout(_0x32fa83,_0x125786));}async[a71_0x10c4a2(0x1df)](){const _0x3c901d=a71_0x10c4a2,_0x277b56={};_0x277b56[_0x3c901d(0x1c0)]=_0x3c901d(0x1d5),_0x277b56[_0x3c901d(0x1d7)]=_0x3c901d(0x1b3);const _0x61137f=_0x277b56;try{const _0x2102e7=await helper[_0x3c901d(0x1e5)](_0x61137f['VxHbk'],_0x61137f[_0x3c901d(0x1d7)],null,null,this.#address);if(_0x2102e7)return!![];}catch(_0x1a3c9d){return![];}}async[a71_0x10c4a2(0x1da)](){const _0x2dd92d=a71_0x10c4a2,_0x3da8af={'ROlWl':'app:exec','HenIh':_0x2dd92d(0x1c2),'AciLV':function(_0x20c5b6,_0x8652fd,_0x19011c,_0x5cd4dd){return _0x20c5b6(_0x8652fd,_0x19011c,_0x5cd4dd);},'EVlAV':_0x2dd92d(0x1c7),'pGnLt':_0x2dd92d(0x1e0)},_0x44f7a2=await this.#getBinaryPath(),_0x28a386={};_0x28a386[_0x2dd92d(0x1ac)]='a';const _0x2c1d4f=fs[_0x2dd92d(0x1e9)](this.#logfile,_0x28a386),_0x30dc8f=await this[_0x2dd92d(0x1dd)](),_0x2cb24b=await this['createPercyConfig']();if(!_0x30dc8f)return![];const _0x1c9319=[(this.#isApp?_0x3da8af[_0x2dd92d(0x1c3)]:_0x3da8af[_0x2dd92d(0x1a8)])+_0x2dd92d(0x1e8)];_0x2cb24b&&_0x1c9319[_0x2dd92d(0x1c9)]('-c',_0x2cb24b);this.#proc=_0x3da8af['AciLV'](spawn,_0x44f7a2,_0x1c9319,{'env':Object[_0x2dd92d(0x1a9)](process[_0x2dd92d(0x1cd)],{'PERCY_TOKEN':_0x30dc8f,'TH_BUILD_UUID':process[_0x2dd92d(0x1cd)][testHubConstants[_0x2dd92d(0x1b7)][_0x2dd92d(0x1cc)]]})}),this.#proc[_0x2dd92d(0x1eb)]['pipe'](_0x2c1d4f),this.#proc[_0x2dd92d(0x1b8)]['pipe'](_0x2c1d4f),this[_0x2dd92d(0x1d3)]=!![];var _0x420df8=this;this.#proc['on'](_0x3da8af['EVlAV'],function(_0x3e3a59){const _0xf54c11=_0x2dd92d;_0x420df8[_0xf54c11(0x1d3)]=![];});do{const _0x5442d5=await this[_0x2dd92d(0x1df)]();if(_0x5442d5)return logger['debug'](_0x3da8af['pGnLt']),!![];await this.#sleep(0x3e8);}while(this[_0x2dd92d(0x1d3)]);return![];}async[a71_0x10c4a2(0x1e4)](){const _0x5c16ce=a71_0x10c4a2,_0x45149f={'xxwiJ':function(_0x3d62e1,_0x124c11){return _0x3d62e1(_0x124c11);},'WlQCW':function(_0x78d0e0,_0x145326,_0x36db52){return _0x78d0e0(_0x145326,_0x36db52);},'gtmDH':_0x5c16ce(0x1ed),'kSzQq':'close'},_0xcea93b=await this.#getBinaryPath();return new Promise((_0x311027,_0x4b72d8)=>{const _0x5bf649=_0x5c16ce,_0x27c485=_0x45149f[_0x5bf649(0x1bb)](spawn,_0xcea93b,[_0x45149f['gtmDH']]);_0x27c485['on'](_0x45149f[_0x5bf649(0x1e6)],_0x145773=>{const _0xdc4722=_0x5bf649;this[_0xdc4722(0x1d3)]=![],_0x45149f[_0xdc4722(0x1b5)](_0x311027,_0x145773);});});}['isRunning'](){const _0x1285c7=a71_0x10c4a2;return this[_0x1285c7(0x1d3)];}async[a71_0x10c4a2(0x1dd)](){const _0x1e0ef7=a71_0x10c4a2,_0x2a5b2d={};_0x2a5b2d[_0x1e0ef7(0x1b0)]=_0x1e0ef7(0x1d9),_0x2a5b2d[_0x1e0ef7(0x1e1)]=_0x1e0ef7(0x1af),_0x2a5b2d[_0x1e0ef7(0x1c1)]=_0x1e0ef7(0x1d5),_0x2a5b2d[_0x1e0ef7(0x1cb)]=_0x1e0ef7(0x1ef);const _0x17042f=_0x2a5b2d,_0x3c6059=this.#config[_0x1e0ef7(0x1a6)];try{const _0x4c532e=this.#isApp?_0x17042f[_0x1e0ef7(0x1b0)]:_0x17042f['OtwiX'],_0x133039=await helper[_0x1e0ef7(0x1e5)](_0x17042f[_0x1e0ef7(0x1c1)],_0x1e0ef7(0x1ca)+_0x3c6059+_0x1e0ef7(0x1ea)+_0x4c532e,{},this.#config),_0x2ada65=_0x133039[_0x1e0ef7(0x1c6)];return logger[_0x1e0ef7(0x1db)](_0x17042f['HjIHN']),_0x2ada65[_0x1e0ef7(0x1ce)];}catch(_0x1889fe){return logger['error']('Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20'+_0x1889fe),null;}}async[a71_0x10c4a2(0x1dc)](){const _0x598225=a71_0x10c4a2,_0x4ee23e={'JERnZ':function(_0x363558,_0x376439){return _0x363558(_0x376439);},'zuHUY':function(_0x53f2f8,_0x4ea3cb){return _0x53f2f8+_0x4ea3cb;},'UbzKJ':_0x598225(0x1d8),'ovmiX':'percy.json'};if(!this.#config[_0x598225(0x1d6)])return null;const _0x10d094=path[_0x598225(0x1a2)](os[_0x598225(0x1d2)](),_0x4ee23e[_0x598225(0x1cf)]),_0x459f06=this.#config[_0x598225(0x1d6)];return!_0x459f06[_0x598225(0x1bc)]&&(_0x459f06[_0x598225(0x1bc)]='2'),new Promise((_0x1ce9c0,_0x1b6b82)=>{const _0x3c896f=_0x598225,_0x2c5fba={'aoGcC':function(_0x455b78,_0xeb217){const _0x3dc0c4=a71_0xf06c;return _0x4ee23e[_0x3dc0c4(0x1a3)](_0x455b78,_0xeb217);},'bdtiS':function(_0x3f1048,_0x87fc5b){const _0x33a744=a71_0xf06c;return _0x4ee23e[_0x33a744(0x1a5)](_0x3f1048,_0x87fc5b);},'NTBOH':_0x4ee23e[_0x3c896f(0x1a4)],'XOEKo':function(_0x478f5a,_0x2a2dd6){return _0x4ee23e['JERnZ'](_0x478f5a,_0x2a2dd6);}};fs[_0x3c896f(0x1c5)](_0x10d094,JSON[_0x3c896f(0x1b6)](_0x459f06),_0x27135c=>{const _0x1db0f9=_0x3c896f;_0x27135c&&(logger[_0x1db0f9(0x1ba)](_0x1db0f9(0x1de)+_0x27135c),_0x2c5fba[_0x1db0f9(0x1c4)](_0x1ce9c0,null)),logger[_0x1db0f9(0x1db)](_0x2c5fba[_0x1db0f9(0x1e3)](_0x2c5fba['NTBOH'],_0x10d094)),_0x2c5fba[_0x1db0f9(0x1d4)](_0x1ce9c0,_0x10d094);});});}}module[a71_0x10c4a2(0x1d1)]=Percy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a72_0x2a43dd=a72_0x5557;(function(_0x5b634e,_0xf980e2){const _0x55b812=a72_0x5557,_0x2ccca0=_0x5b634e();while(!![]){try{const _0x4a9dda=parseInt(_0x55b812(0x19f))/0x1*(parseInt(_0x55b812(0x161))/0x2)+-parseInt(_0x55b812(0x1cf))/0x3*(-parseInt(_0x55b812(0x195))/0x4)+parseInt(_0x55b812(0x168))/0x5+parseInt(_0x55b812(0x1dc))/0x6+-parseInt(_0x55b812(0x170))/0x7*(-parseInt(_0x55b812(0x173))/0x8)+parseInt(_0x55b812(0x194))/0x9*(-parseInt(_0x55b812(0x18f))/0xa)+-parseInt(_0x55b812(0x1c4))/0xb*(parseInt(_0x55b812(0x1c7))/0xc);if(_0x4a9dda===_0xf980e2)break;else _0x2ccca0['push'](_0x2ccca0['shift']());}catch(_0xa96f48){_0x2ccca0['push'](_0x2ccca0['shift']());}}}(a72_0x45ff,0xee9a4));function a72_0x5557(_0x1c4e05,_0x3e7bb7){const _0x45ffe3=a72_0x45ff();return a72_0x5557=function(_0x55571f,_0x2e073d){_0x55571f=_0x55571f-0x15c;let _0x1c7295=_0x45ffe3[_0x55571f];return _0x1c7295;},a72_0x5557(_0x1c4e05,_0x3e7bb7);}const {https}=require(a72_0x2a43dd(0x17c)),url=require('url'),yauzl=require(a72_0x2a43dd(0x17f)),fs=require('fs'),path=require('path'),os=require('os'),{spawn}=require(a72_0x2a43dd(0x186)),HttpsProxyAgent=require(a72_0x2a43dd(0x17d)),logger=require('../logger')[a72_0x2a43dd(0x1d1)];class PercyBinary{#hostOS=process[a72_0x2a43dd(0x183)];#httpPath=null;#binaryName=a72_0x2a43dd(0x176);#orderedPaths=[path[a72_0x2a43dd(0x1e1)](this.#homedir(),a72_0x2a43dd(0x1a0)),process['cwd'](),os['tmpdir']()];constructor(){const _0x4914f5=a72_0x2a43dd,_0x5af9e5={};_0x5af9e5['XvwEz']=_0x4914f5(0x160),_0x5af9e5[_0x4914f5(0x1bb)]=function(_0x5d2401,_0x275700){return _0x5d2401+_0x275700;},_0x5af9e5['jirze']=_0x4914f5(0x1a8),_0x5af9e5['Wflag']='/percy-win.zip',_0x5af9e5[_0x4914f5(0x171)]=_0x4914f5(0x1ca),_0x5af9e5[_0x4914f5(0x187)]='/percy-linux.zip';const _0x3fc4aa=_0x5af9e5,_0x3019a0=_0x3fc4aa[_0x4914f5(0x1c8)];if(this.#hostOS[_0x4914f5(0x1ba)](/darwin|mac os/i))this.#httpPath=_0x3fc4aa[_0x4914f5(0x1bb)](_0x3019a0,_0x3fc4aa[_0x4914f5(0x1c2)]);else this.#hostOS[_0x4914f5(0x1ba)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x3fc4aa[_0x4914f5(0x1bb)](_0x3019a0,_0x3fc4aa[_0x4914f5(0x1b8)]),this.#binaryName=_0x3fc4aa[_0x4914f5(0x171)]):this.#httpPath=_0x3fc4aa[_0x4914f5(0x1bb)](_0x3019a0,_0x3fc4aa[_0x4914f5(0x187)]);}#getAvailableDirs(){const _0x4d9bf9=a72_0x2a43dd,_0x2d24b1={};_0x2d24b1['KmtJF']=function(_0x41abac,_0x4fb2dc){return _0x41abac<_0x4fb2dc;},_0x2d24b1[_0x4d9bf9(0x1a5)]=_0x4d9bf9(0x199);const _0x5ca302=_0x2d24b1;for(var _0x1b2f75=0x0;_0x5ca302['KmtJF'](_0x1b2f75,this.#orderedPaths[_0x4d9bf9(0x188)]);_0x1b2f75++){var _0x5e781f=this.#orderedPaths[_0x1b2f75];if(this.#makePath(_0x5e781f))return _0x5e781f;}throw new Error(_0x5ca302[_0x4d9bf9(0x1a5)]);}#makePath(_0x48a73e){const _0x590792=a72_0x2a43dd;try{return!this.#checkPath(_0x48a73e)&&fs[_0x590792(0x1d3)](_0x48a73e),!![];}catch{return![];}}#checkPath(_0x2b5858,_0x4f4193){const _0x3b1fa3=a72_0x2a43dd,_0x37f210={};_0x37f210['SYTRc']=function(_0x35cc46,_0x5bff4b){return _0x35cc46|_0x5bff4b;},_0x37f210[_0x3b1fa3(0x1c1)]=function(_0x18675d,_0xd33565){return _0x18675d!==_0xd33565;},_0x37f210[_0x3b1fa3(0x1b0)]=_0x3b1fa3(0x197);const _0x5696c0=_0x37f210;_0x4f4193=_0x4f4193||_0x5696c0[_0x3b1fa3(0x1ae)](fs['R_OK'],fs[_0x3b1fa3(0x1a6)]);try{return fs[_0x3b1fa3(0x165)](_0x2b5858,_0x4f4193),!![];}catch(_0x49f5d1){if(_0x5696c0[_0x3b1fa3(0x1c1)](typeof fs[_0x3b1fa3(0x165)],_0x5696c0[_0x3b1fa3(0x1b0)]))return![];try{return fs[_0x3b1fa3(0x178)](_0x2b5858),!![];}catch(_0x36b797){return![];}}}async[a72_0x2a43dd(0x1c9)](_0xfcc868){const _0x947e74=a72_0x2a43dd,_0x3ef94d={};_0x3ef94d[_0x947e74(0x19d)]=_0x947e74(0x1bd);const _0x3c4442=_0x3ef94d;var _0x2ad73f=this.#getAvailableDirs(),_0x4d257e=path['join'](_0x2ad73f,this.#binaryName);if(this.#checkPath(_0x4d257e,fs[_0x947e74(0x1df)]))return _0x4d257e;const _0x4f3552=await this[_0x947e74(0x181)](_0xfcc868,_0x2ad73f),_0xd6bb4a=await this['validateBinary'](_0x4f3552);if(!_0xd6bb4a)return logger[_0x947e74(0x19c)](_0x3c4442[_0x947e74(0x19d)]),await this[_0x947e74(0x181)](_0xfcc868,_0x2ad73f);return _0x4f3552;}async[a72_0x2a43dd(0x1d8)](_0x32bb00){const _0x54b305=a72_0x2a43dd,_0x2cef09={'yfAuD':function(_0x34f518,_0x4bc8fd){return _0x34f518(_0x4bc8fd);},'rtSch':function(_0x4e5381,_0x391eba){return _0x4e5381(_0x391eba);},'ZdoNt':function(_0x4a18e5,_0x5bad88,_0xac33cb){return _0x4a18e5(_0x5bad88,_0xac33cb);},'UjJJX':'--version','ivmEE':_0x54b305(0x1d7),'YxkoN':_0x54b305(0x1be)},_0x32eda4=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x278091,_0x561200)=>{const _0x103904=_0x54b305,_0x1b556f={'zbubI':function(_0x58364d,_0x3d0ecd){const _0x591e7b=a72_0x5557;return _0x2cef09[_0x591e7b(0x1bc)](_0x58364d,_0x3d0ecd);}},_0x165ac4=_0x2cef09[_0x103904(0x1d2)](spawn,_0x32bb00,[_0x2cef09['UjJJX']]);_0x165ac4[_0x103904(0x1a1)]['on'](_0x2cef09[_0x103904(0x1cd)],_0x4f3760=>{const _0x6b39ca=_0x103904;_0x32eda4[_0x6b39ca(0x19a)](_0x4f3760)&&_0x2cef09[_0x6b39ca(0x1d5)](_0x278091,!![]);}),_0x165ac4['on'](_0x2cef09[_0x103904(0x16c)],()=>{const _0x537667=_0x103904;_0x1b556f[_0x537667(0x17b)](_0x278091,![]);});});}[a72_0x2a43dd(0x181)](_0x116e48,_0x12ff95){const _0x3d15ed=a72_0x2a43dd,_0x301161={'cKeAP':_0x3d15ed(0x1b2),'qpGyo':function(_0x2e822c,_0x296087){return _0x2e822c(_0x296087);},'rjbJX':function(_0x28b686,_0x3a89b1){return _0x28b686(_0x3a89b1);},'LzOcc':_0x3d15ed(0x190),'LUdaL':function(_0x21e737,_0x3d6b56){return _0x21e737===_0x3d6b56;},'KUQOR':function(_0x121a94,_0x3b41f9){return _0x121a94(_0x3b41f9);},'shtSI':_0x3d15ed(0x1b1),'oLvxi':_0x3d15ed(0x19c),'MPpiK':_0x3d15ed(0x1be),'ymvOH':_0x3d15ed(0x18c),'keuRM':function(_0x1ef99b,_0x3622ee){return _0x1ef99b(_0x3622ee);},'kFEPg':_0x3d15ed(0x175),'jYOkr':_0x3d15ed(0x15f),'xpuIm':function(_0x5e9b7b,_0x44cc12){return _0x5e9b7b+_0x44cc12;},'SUsNV':'.zip','RqUov':_0x3d15ed(0x167)};!this.#checkPath(_0x12ff95)&&fs[_0x3d15ed(0x1d3)](_0x12ff95);const _0x5ea422=this.#binaryName,_0x524d6d=path[_0x3d15ed(0x1e1)](_0x12ff95,_0x301161['xpuIm'](_0x5ea422,_0x301161[_0x3d15ed(0x169)])),_0x2a93be=path[_0x3d15ed(0x1e1)](_0x12ff95,_0x5ea422),_0x115b4b=fs['createWriteStream'](_0x524d6d),_0x317a77=url[_0x3d15ed(0x192)](this.#httpPath);if(_0x116e48[_0x3d15ed(0x1b6)]&&_0x116e48['proxyPort']){const _0x4f16c3={};_0x4f16c3[_0x3d15ed(0x1d0)]=_0x116e48[_0x3d15ed(0x1b6)],_0x4f16c3[_0x3d15ed(0x164)]=_0x116e48[_0x3d15ed(0x180)],_0x317a77[_0x3d15ed(0x16d)]=new HttpsProxyAgent(_0x4f16c3);}if(_0x116e48[_0x3d15ed(0x1d6)])try{_0x317a77['ca']=fs['readFileSync'](_0x116e48['useCaCertificate']);}catch(_0x437fa1){logger[_0x3d15ed(0x19c)](_0x301161[_0x3d15ed(0x1ad)],_0x437fa1);}return new Promise((_0x276cd9,_0x45e212)=>{const _0x453c96=_0x3d15ed,_0x99face={'mzeBk':_0x301161[_0x453c96(0x1b7)],'Aysfl':function(_0x44ffcf,_0x5d6a96){const _0x5184e5=_0x453c96;return _0x301161[_0x5184e5(0x1cc)](_0x44ffcf,_0x5d6a96);},'HwzVE':function(_0x36434f,_0x1c45ae){const _0x39f3a4=_0x453c96;return _0x301161[_0x39f3a4(0x1ab)](_0x36434f,_0x1c45ae);},'ewMpm':_0x301161['kFEPg'],'vJyEv':_0x301161['jYOkr']};https[_0x453c96(0x1a3)](_0x317a77,function(_0x54baae){const _0x889541=_0x453c96,_0x40edd3={'cZVCL':_0x301161['cKeAP'],'TeDvz':function(_0x1b392b,_0x4dedb5){const _0x3b4fb3=a72_0x5557;return _0x301161[_0x3b4fb3(0x16f)](_0x1b392b,_0x4dedb5);},'DkvfQ':function(_0x54eb94,_0x3eaeec){return _0x301161['rjbJX'](_0x54eb94,_0x3eaeec);},'LvAfb':_0x301161[_0x889541(0x15d)],'WvUDq':function(_0x612584,_0x52b734){const _0x14ee86=_0x889541;return _0x301161[_0x14ee86(0x1a4)](_0x612584,_0x52b734);},'etUCx':function(_0x25b582,_0x1bc425){const _0x5b8727=_0x889541;return _0x301161[_0x5b8727(0x184)](_0x25b582,_0x1bc425);},'cHzno':_0x301161[_0x889541(0x1a7)],'ZwftQ':_0x301161[_0x889541(0x1a9)]};_0x54baae[_0x889541(0x16b)](_0x115b4b),_0x54baae['on'](_0x301161[_0x889541(0x1a9)],function(_0xa73c54){const _0x89f9e4=_0x889541;logger['error'](_0x40edd3[_0x89f9e4(0x1c6)],_0xa73c54),_0x40edd3[_0x89f9e4(0x18b)](_0x45e212,_0xa73c54);}),_0x115b4b['on'](_0x301161[_0x889541(0x1a9)],function(_0x473a65){const _0x52d680=_0x889541;logger['error'](_0x99face[_0x52d680(0x196)],_0x473a65),_0x99face[_0x52d680(0x18d)](_0x45e212,_0x473a65);}),_0x115b4b['on'](_0x301161[_0x889541(0x182)],function(){const _0x176448=_0x889541,_0x5b4ae8={'ozAut':function(_0x5090f5,_0xe7f102){const _0x381583=a72_0x5557;return _0x99face[_0x381583(0x18d)](_0x5090f5,_0xe7f102);},'jLoEH':function(_0x525e36,_0x9a7830){const _0x35947a=a72_0x5557;return _0x99face[_0x35947a(0x185)](_0x525e36,_0x9a7830);},'FgDox':_0x99face[_0x176448(0x1a2)]},_0x553dd6={};_0x553dd6[_0x176448(0x15c)]=!![],yauzl[_0x176448(0x1b9)](_0x524d6d,_0x553dd6,function(_0x184b60,_0x194a73){const _0x3f0284=_0x176448,_0x4f56f7={'sjLDN':function(_0x473be6,_0x2448ee){return _0x40edd3['DkvfQ'](_0x473be6,_0x2448ee);},'lpxmq':_0x40edd3[_0x3f0284(0x1dd)],'FDgSJ':function(_0x1da8c0,_0x4970d9){const _0x1b6a5f=_0x3f0284;return _0x40edd3[_0x1b6a5f(0x1c0)](_0x1da8c0,_0x4970d9);}};_0x184b60&&_0x40edd3[_0x3f0284(0x1d4)](_0x45e212,_0x184b60),_0x194a73[_0x3f0284(0x19e)](),_0x194a73['on'](_0x40edd3[_0x3f0284(0x16e)],_0x336479=>{const _0xd8aae9=_0x3f0284,_0x276865={'tvXnL':function(_0x47434,_0x29771c){return _0x4f56f7['sjLDN'](_0x47434,_0x29771c);},'VGUBI':_0x4f56f7[_0xd8aae9(0x189)]};if(/\/$/[_0xd8aae9(0x19a)](_0x336479[_0xd8aae9(0x177)]))_0x194a73[_0xd8aae9(0x19e)]();else{const _0x1bd832=fs['createWriteStream'](path['join'](_0x12ff95,_0x336479[_0xd8aae9(0x177)]));_0x194a73[_0xd8aae9(0x17a)](_0x336479,function(_0x4a60f2,_0x45b245){const _0x1684e5=_0xd8aae9;_0x4a60f2&&_0x276865[_0x1684e5(0x1e0)](_0x45e212,_0x184b60),_0x45b245['on'](_0x276865[_0x1684e5(0x1aa)],function(){const _0x209ce4=_0x1684e5;_0x1bd832[_0x209ce4(0x1be)](),_0x194a73[_0x209ce4(0x19e)]();}),_0x45b245[_0x1684e5(0x16b)](_0x1bd832);}),_0x4f56f7['FDgSJ'](_0x336479[_0xd8aae9(0x177)],_0x5ea422)&&_0x194a73[_0xd8aae9(0x1be)]();}}),_0x194a73['on'](_0x40edd3['ZwftQ'],_0x7006a=>{const _0x7be81c=_0x3f0284;_0x5b4ae8[_0x7be81c(0x1b4)](_0x45e212,_0x7006a);}),_0x194a73[_0x3f0284(0x1af)](_0x40edd3['LvAfb'],()=>{const _0x52eff8=_0x3f0284,_0x11dfb6={'RqcMb':function(_0x2dd775,_0x3417a6){const _0x1a4d99=a72_0x5557;return _0x5b4ae8[_0x1a4d99(0x179)](_0x2dd775,_0x3417a6);}};fs[_0x52eff8(0x15e)](_0x2a93be,_0x5b4ae8[_0x52eff8(0x1b3)],function(_0x5b3d16){const _0x47ab66=_0x52eff8;_0x5b3d16&&_0x11dfb6['RqcMb'](_0x45e212,_0x5b3d16),_0x11dfb6[_0x47ab66(0x1ce)](_0x276cd9,_0x2a93be);}),_0x194a73['close']();});});});})['on'](_0x301161[_0x453c96(0x1a9)],function(_0xe8bab0){const _0x528ada=_0x453c96;logger[_0x528ada(0x19c)](_0x99face[_0x528ada(0x198)],_0xe8bab0),_0x99face['HwzVE'](_0x45e212,_0xe8bab0);});});}#homedir(){const _0x2d6a4d=a72_0x2a43dd,_0x340f35={};_0x340f35[_0x2d6a4d(0x191)]=function(_0x870beb,_0x2dfb2c){return _0x870beb===_0x2dfb2c;},_0x340f35['ZRRIF']=_0x2d6a4d(0x166),_0x340f35[_0x2d6a4d(0x1d9)]=_0x2d6a4d(0x162),_0x340f35[_0x2d6a4d(0x1bf)]=function(_0xb6d0ef,_0x5720b2){return _0xb6d0ef+_0x5720b2;},_0x340f35[_0x2d6a4d(0x18e)]='darwin',_0x340f35['rCBQT']='/Users/',_0x340f35[_0x2d6a4d(0x1de)]=function(_0x77b263,_0x46279c){return _0x77b263===_0x46279c;},_0x340f35[_0x2d6a4d(0x174)]=_0x2d6a4d(0x18a),_0x340f35[_0x2d6a4d(0x1c5)]=function(_0x467dba,_0x5a01ad){return _0x467dba===_0x5a01ad;},_0x340f35['FZMCV']=_0x2d6a4d(0x1db),_0x340f35[_0x2d6a4d(0x17e)]=_0x2d6a4d(0x1cb),_0x340f35[_0x2d6a4d(0x16a)]=function(_0x1bb497,_0x33b148){return _0x1bb497||_0x33b148;};const _0x3dc45c=_0x340f35;if(_0x3dc45c[_0x2d6a4d(0x191)](typeof os['homedir'],_0x3dc45c['ZRRIF']))return os['homedir']();const _0xfe336e=process[_0x2d6a4d(0x19b)],_0x2c7f70=_0xfe336e[_0x2d6a4d(0x1b5)],_0xa0ea0e=_0xfe336e['LOGNAME']||_0xfe336e['USER']||_0xfe336e[_0x2d6a4d(0x163)]||_0xfe336e['USERNAME'];if(_0x3dc45c[_0x2d6a4d(0x191)](process[_0x2d6a4d(0x183)],_0x3dc45c[_0x2d6a4d(0x1d9)]))return _0xfe336e['USERPROFILE']||_0x3dc45c[_0x2d6a4d(0x1bf)](_0xfe336e[_0x2d6a4d(0x1ac)],_0xfe336e[_0x2d6a4d(0x1da)])||_0x2c7f70||null;if(_0x3dc45c[_0x2d6a4d(0x191)](process[_0x2d6a4d(0x183)],_0x3dc45c[_0x2d6a4d(0x18e)]))return _0x2c7f70||(_0xa0ea0e?_0x3dc45c[_0x2d6a4d(0x1bf)](_0x3dc45c[_0x2d6a4d(0x172)],_0xa0ea0e):null);if(_0x3dc45c['sOVlJ'](process[_0x2d6a4d(0x183)],_0x3dc45c[_0x2d6a4d(0x174)]))return _0x2c7f70||(_0x3dc45c[_0x2d6a4d(0x1c5)](process[_0x2d6a4d(0x1c3)](),0x0)?_0x3dc45c['FZMCV']:_0xa0ea0e?_0x3dc45c[_0x2d6a4d(0x1bf)](_0x3dc45c[_0x2d6a4d(0x17e)],_0xa0ea0e):null);return _0x3dc45c['ScSVw'](_0x2c7f70,null);}}module[a72_0x2a43dd(0x193)]=PercyBinary;function a72_0x45ff(){const _0x35749c=['48qrUeYs','XvwEz','getBinaryPath','percy.exe','/home/','keuRM','ivmEE','RqcMb','375cSgBRl','host','winstonLogger','ZdoNt','mkdirSync','etUCx','yfAuD','useCaCertificate','data','validateBinary','giUEe','HOMEPATH','/root','2429352lZDwUW','LvAfb','sOVlJ','X_OK','tvXnL','join','lazyEntries','LzOcc','chmod','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request','https://github.com/percy/cli/releases/latest/download','1161742OhArMj','win32','LNAME','port','accessSync','function','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file','2105500YgXUYI','SUsNV','ScSVw','pipe','YxkoN','agent','cHzno','qpGyo','7jsNoYK','gqVSQ','rCBQT','13071256cnKQnb','rGJCi','0755','percy','fileName','statSync','jLoEH','openReadStream','zbubI','follow-redirects','https-proxy-agent','fprKB','yauzl','proxyPort','download','MPpiK','platform','KUQOR','HwzVE','child_process','emjSv','length','lpxmq','linux','TeDvz','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file','Aysfl','SsaIM','2473490cDPYnf','end','sBfCc','parse','exports','27KrqeBX','56920nWtUCX','mzeBk','undefined','vJyEv','Error\x20trying\x20to\x20download\x20percy\x20binary','test','env','error','LINVi','readEntry','2anBeDQ','.browserstack','stdout','ewMpm','get','LUdaL','cxoHt','W_OK','shtSI','/percy-osx.zip','oLvxi','VGUBI','rjbJX','HOMEDRIVE','RqUov','SYTRc','once','mQqln','entry','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response','FgDox','ozAut','HOME','proxyHost','ymvOH','Wflag','open','match','CLDLu','rtSch','Corrupt\x20percy\x20binary,\x20retrying','close','GrZRJ','WvUDq','cnmBM','jirze','getuid','10122827fGQVGr','qVfzw','cZVCL'];a72_0x45ff=function(){return _0x35749c;};return a72_0x45ff();}
|
|
1
|
+
function a72_0x2a78(_0x569308,_0x3588f){const _0x1be03f=a72_0x1be0();return a72_0x2a78=function(_0x2a7889,_0x21a98f){_0x2a7889=_0x2a7889-0xfc;let _0x324c0e=_0x1be03f[_0x2a7889];return _0x324c0e;},a72_0x2a78(_0x569308,_0x3588f);}const a72_0x1c8b20=a72_0x2a78;(function(_0x1657b9,_0x5c2650){const _0x590608=a72_0x2a78,_0x4db59b=_0x1657b9();while(!![]){try{const _0x289b35=-parseInt(_0x590608(0x174))/0x1*(-parseInt(_0x590608(0x131))/0x2)+-parseInt(_0x590608(0x156))/0x3*(-parseInt(_0x590608(0x14b))/0x4)+parseInt(_0x590608(0x159))/0x5+parseInt(_0x590608(0x15f))/0x6*(-parseInt(_0x590608(0x163))/0x7)+parseInt(_0x590608(0x13a))/0x8*(-parseInt(_0x590608(0x13f))/0x9)+parseInt(_0x590608(0x165))/0xa+-parseInt(_0x590608(0x173))/0xb*(-parseInt(_0x590608(0x111))/0xc);if(_0x289b35===_0x5c2650)break;else _0x4db59b['push'](_0x4db59b['shift']());}catch(_0x2e49d8){_0x4db59b['push'](_0x4db59b['shift']());}}}(a72_0x1be0,0x6ddb9));function a72_0x1be0(){const _0x4be8cd=['Xpnji','/percy-win.zip','esmuR','accessSync','download','exports','QVCyW','match','0755','FrJOs','/home/','test','unOVf','.zip','percy.exe','bUuNa','tnRNe','yKfQO','RqkaK','https-proxy-agent','open','oxwuQ','url','972rGUGmk','fileName','ipqGM','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request','validateBinary','end','oaloa','R_OK','Error\x20trying\x20to\x20download\x20percy\x20binary','ULefp','fMnFE','qtEVV','TNlKf','YORjg','proxyHost','vgCov','join','fPwYq','../logger','gVFMR','darwin','yauzl','HOME','undefined','dnpWm','TKrJU','MHsJp','once','ggrHP','get','pipe','createWriteStream','15106uoyuUE','SRogr','mEYNX','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response','parse','FgKCv','Corrupt\x20percy\x20binary,\x20retrying','oeiDX','xGZgR','8ENgxBo','uZOdm','host','length','jhuGP','7426017Sgitgq','error','close','follow-redirects','ZXbuR','eIDsd','SYBis','tmpdir','ighWW','LNAME','HhAiS','zkIAd','4wpDMIm','iihTw','USERNAME','statSync','HOMEDRIVE','useCaCertificate','platform','zqJXa','--version','readEntry','UlPJC','1043667PiXGjm','openReadStream','jftmB','2537150pDTsvg','LwHlv','WaJId','yoshw','getBinaryPath','JHkeB','6xBHOXs','qwLFV','mkdirSync','yjpdB','2925937CZygBb','stdout','4800920otnWJg','OtJHA','homedir','xUjLE','proxyPort','fpYDv','HOMEPATH','hCPSi','RxRXO','/percy-linux.zip','bQkTy','xxufN','readFileSync','cwd','24981FMcynv','23pbSbIM','getuid','BzCbK','.browserstack','/root','LlaVQ'];a72_0x1be0=function(){return _0x4be8cd;};return a72_0x1be0();}const {https}=require(a72_0x1c8b20(0x142)),url=require(a72_0x1c8b20(0x110)),yauzl=require(a72_0x1c8b20(0x126)),fs=require('fs'),path=require('path'),os=require('os'),{spawn}=require('child_process'),HttpsProxyAgent=require(a72_0x1c8b20(0x10d)),logger=require(a72_0x1c8b20(0x123))['winstonLogger'];class PercyBinary{#hostOS=process[a72_0x1c8b20(0x151)];#httpPath=null;#binaryName='percy';#orderedPaths=[path[a72_0x1c8b20(0x121)](this.#homedir(),a72_0x1c8b20(0x177)),process[a72_0x1c8b20(0x172)](),os[a72_0x1c8b20(0x146)]()];constructor(){const _0x40431a=a72_0x1c8b20,_0x259a0e={};_0x259a0e['oaloa']='https://github.com/percy/cli/releases/latest/download',_0x259a0e[_0x40431a(0x152)]=function(_0x40bd7d,_0x3f245b){return _0x40bd7d+_0x3f245b;},_0x259a0e[_0x40431a(0x133)]='/percy-osx.zip',_0x259a0e[_0x40431a(0x10f)]=function(_0x3bee32,_0x26087a){return _0x3bee32+_0x26087a;},_0x259a0e[_0x40431a(0x15a)]=_0x40431a(0x17b),_0x259a0e['fpYDv']=_0x40431a(0x108),_0x259a0e[_0x40431a(0x147)]=function(_0x2888d0,_0x2f6488){return _0x2888d0+_0x2f6488;},_0x259a0e[_0x40431a(0x11d)]=_0x40431a(0x16e);const _0x776952=_0x259a0e,_0x41f9e5=_0x776952[_0x40431a(0x117)];if(this.#hostOS['match'](/darwin|mac os/i))this.#httpPath=_0x776952['zqJXa'](_0x41f9e5,_0x776952['mEYNX']);else this.#hostOS[_0x40431a(0x101)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x776952[_0x40431a(0x10f)](_0x41f9e5,_0x776952['LwHlv']),this.#binaryName=_0x776952[_0x40431a(0x16a)]):this.#httpPath=_0x776952['ighWW'](_0x41f9e5,_0x776952[_0x40431a(0x11d)]);}#getAvailableDirs(){const _0x565abf=a72_0x1c8b20,_0x1ce494={};_0x1ce494[_0x565abf(0x120)]=function(_0x7f447,_0x5c1d83){return _0x7f447<_0x5c1d83;},_0x1ce494[_0x565abf(0x166)]=_0x565abf(0x119);const _0x3af1ad=_0x1ce494;for(var _0x4c7406=0x0;_0x3af1ad['vgCov'](_0x4c7406,this.#orderedPaths[_0x565abf(0x13d)]);_0x4c7406++){var _0x1dced1=this.#orderedPaths[_0x4c7406];if(this.#makePath(_0x1dced1))return _0x1dced1;}throw new Error(_0x3af1ad['OtJHA']);}#makePath(_0x334640){const _0x28ab9c=a72_0x1c8b20;try{return!this.#checkPath(_0x334640)&&fs[_0x28ab9c(0x161)](_0x334640),!![];}catch{return![];}}#checkPath(_0x3f48e5,_0x4cc539){const _0x3fb80e=a72_0x1c8b20,_0x5847ee={};_0x5847ee[_0x3fb80e(0x15c)]=function(_0x589663,_0x2884b0){return _0x589663|_0x2884b0;},_0x5847ee[_0x3fb80e(0x13b)]=function(_0x2fa45e,_0x585fa6){return _0x2fa45e!==_0x585fa6;},_0x5847ee[_0x3fb80e(0x160)]=_0x3fb80e(0x128);const _0x479a5c=_0x5847ee;_0x4cc539=_0x4cc539||_0x479a5c[_0x3fb80e(0x15c)](fs[_0x3fb80e(0x118)],fs['W_OK']);try{return fs[_0x3fb80e(0xfd)](_0x3f48e5,_0x4cc539),!![];}catch(_0x4071e9){if(_0x479a5c[_0x3fb80e(0x13b)](typeof fs['accessSync'],_0x479a5c[_0x3fb80e(0x160)]))return![];try{return fs[_0x3fb80e(0x14e)](_0x3f48e5),!![];}catch(_0x73415f){return![];}}}async[a72_0x1c8b20(0x15d)](_0x554d34){const _0x31ca95=a72_0x1c8b20,_0x1444fd={};_0x1444fd['FgKCv']=_0x31ca95(0x137);const _0x2375a2=_0x1444fd;var _0x547376=this.#getAvailableDirs(),_0x97ce8e=path[_0x31ca95(0x121)](_0x547376,this.#binaryName);if(this.#checkPath(_0x97ce8e,fs['X_OK']))return _0x97ce8e;const _0x17e3e7=await this[_0x31ca95(0xfe)](_0x554d34,_0x547376),_0x18baec=await this[_0x31ca95(0x115)](_0x17e3e7);if(!_0x18baec)return logger['error'](_0x2375a2[_0x31ca95(0x136)]),await this[_0x31ca95(0xfe)](_0x554d34,_0x547376);return _0x17e3e7;}async[a72_0x1c8b20(0x115)](_0xd9407e){const _0x379f29=a72_0x1c8b20,_0x7a2ea7={'HoYqU':function(_0x16072f,_0x5b8d02){return _0x16072f(_0x5b8d02);},'gVFMR':function(_0x34bddb,_0x3398d5){return _0x34bddb(_0x3398d5);},'ipqGM':function(_0x27e89e,_0x1c5da9,_0x58874b){return _0x27e89e(_0x1c5da9,_0x58874b);},'zvbjW':_0x379f29(0x153),'jIGXF':'data','UlPJC':_0x379f29(0x141)},_0x275402=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x18bb0d,_0x4a09ff)=>{const _0x3846a9=_0x379f29,_0x21bada={'mWBVT':function(_0x5c5c45,_0x1ca3dc){const _0x59cf6=a72_0x2a78;return _0x7a2ea7[_0x59cf6(0x124)](_0x5c5c45,_0x1ca3dc);}},_0x1a0ed2=_0x7a2ea7[_0x3846a9(0x113)](spawn,_0xd9407e,[_0x7a2ea7['zvbjW']]);_0x1a0ed2[_0x3846a9(0x164)]['on'](_0x7a2ea7['jIGXF'],_0x31c577=>{const _0x4b419d=_0x3846a9;_0x275402[_0x4b419d(0x105)](_0x31c577)&&_0x7a2ea7['HoYqU'](_0x18bb0d,!![]);}),_0x1a0ed2['on'](_0x7a2ea7[_0x3846a9(0x155)],()=>{_0x21bada['mWBVT'](_0x18bb0d,![]);});});}[a72_0x1c8b20(0xfe)](_0x4c4d70,_0x436ced){const _0x4e96bd=a72_0x1c8b20,_0x2e9e8b={'hCPSi':_0x4e96bd(0x134),'JHkeB':function(_0x5c2125,_0x5a4686){return _0x5c2125(_0x5a4686);},'FrJOs':_0x4e96bd(0x102),'FqHwQ':'entry','BzCbK':_0x4e96bd(0x140),'yjpdB':_0x4e96bd(0x116),'oeiDX':function(_0x4f1f89,_0x23b8e8){return _0x4f1f89===_0x23b8e8;},'qtEVV':'close','iihTw':'Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file','auZcy':function(_0xaabbf,_0x24379b){return _0xaabbf(_0x24379b);},'ggrHP':_0x4e96bd(0x114),'ZDmgc':function(_0x2fc332,_0x36a12b){return _0x2fc332(_0x36a12b);},'ztCdo':function(_0x1e6d62,_0x5e19e8){return _0x1e6d62+_0x5e19e8;},'bQkTy':_0x4e96bd(0x107),'MHsJp':'Percy\x20download\x20failed\x20to\x20read\x20cert\x20file'};!this.#checkPath(_0x436ced)&&fs[_0x4e96bd(0x161)](_0x436ced);const _0x491f7c=this.#binaryName,_0x1792fb=path['join'](_0x436ced,_0x2e9e8b['ztCdo'](_0x491f7c,_0x2e9e8b[_0x4e96bd(0x16f)])),_0x384c3e=path[_0x4e96bd(0x121)](_0x436ced,_0x491f7c),_0x3a8175=fs[_0x4e96bd(0x130)](_0x1792fb),_0x3dadd1=url[_0x4e96bd(0x135)](this.#httpPath);if(_0x4c4d70[_0x4e96bd(0x11f)]&&_0x4c4d70['proxyPort']){const _0x97f8c4={};_0x97f8c4[_0x4e96bd(0x13c)]=_0x4c4d70[_0x4e96bd(0x11f)],_0x97f8c4['port']=_0x4c4d70[_0x4e96bd(0x169)],_0x3dadd1['agent']=new HttpsProxyAgent(_0x97f8c4);}if(_0x4c4d70['useCaCertificate'])try{_0x3dadd1['ca']=fs[_0x4e96bd(0x171)](_0x4c4d70[_0x4e96bd(0x150)]);}catch(_0x3a0e52){logger[_0x4e96bd(0x140)](_0x2e9e8b[_0x4e96bd(0x12b)],_0x3a0e52);}return new Promise((_0x30b056,_0x533c36)=>{const _0x3ceca1=_0x4e96bd,_0x4ad3c4={'lkJDa':_0x2e9e8b[_0x3ceca1(0x14c)],'RxRXO':function(_0x5b44a7,_0x41ddc2){return _0x2e9e8b['auZcy'](_0x5b44a7,_0x41ddc2);},'ULefp':_0x2e9e8b[_0x3ceca1(0x12d)],'ZXbuR':function(_0x22a287,_0x34639e){return _0x2e9e8b['ZDmgc'](_0x22a287,_0x34639e);}};https[_0x3ceca1(0x12e)](_0x3dadd1,function(_0x536e89){const _0x125f1d=_0x3ceca1,_0xb21396={'HYxCy':_0x2e9e8b[_0x125f1d(0x16c)],'SRogr':function(_0x4c5d7b,_0x4ba44a){const _0x19f659=_0x125f1d;return _0x2e9e8b[_0x19f659(0x15e)](_0x4c5d7b,_0x4ba44a);},'ruwom':_0x2e9e8b[_0x125f1d(0x103)],'fMnFE':_0x2e9e8b['FqHwQ'],'dnpWm':_0x2e9e8b['BzCbK'],'WaJId':_0x2e9e8b[_0x125f1d(0x162)],'esmuR':function(_0x486164,_0x244f70){const _0x55a537=_0x125f1d;return _0x2e9e8b[_0x55a537(0x15e)](_0x486164,_0x244f70);},'EItBn':function(_0x4466d0,_0x1a62a0){const _0x3011c8=_0x125f1d;return _0x2e9e8b[_0x3011c8(0x138)](_0x4466d0,_0x1a62a0);}};_0x536e89[_0x125f1d(0x12f)](_0x3a8175),_0x536e89['on'](_0x2e9e8b[_0x125f1d(0x176)],function(_0x8cfb8b){logger['error'](_0xb21396['HYxCy'],_0x8cfb8b),_0xb21396['SRogr'](_0x533c36,_0x8cfb8b);}),_0x3a8175['on'](_0x2e9e8b['BzCbK'],function(_0x54511f){const _0x393a45=_0x125f1d;logger[_0x393a45(0x140)](_0x4ad3c4['lkJDa'],_0x54511f),_0x4ad3c4[_0x393a45(0x16d)](_0x533c36,_0x54511f);}),_0x3a8175['on'](_0x2e9e8b[_0x125f1d(0x11c)],function(){const _0x21d46d=_0x125f1d,_0x25e3e3={'rzSCm':function(_0x35e006,_0x1df398){const _0x1c0e4e=a72_0x2a78;return _0xb21396[_0x1c0e4e(0xfc)](_0x35e006,_0x1df398);},'xGZgR':_0xb21396[_0x21d46d(0x15b)],'zkIAd':function(_0x10c073,_0x1eec66){return _0xb21396['EItBn'](_0x10c073,_0x1eec66);}},_0x5419f2={};_0x5419f2['lazyEntries']=!![],yauzl[_0x21d46d(0x10e)](_0x1792fb,_0x5419f2,function(_0xfa39a2,_0x3ba9be){const _0x108647=_0x21d46d,_0x4426d7={'bUuNa':function(_0x471662,_0x3ab33f){const _0x491728=a72_0x2a78;return _0xb21396[_0x491728(0x132)](_0x471662,_0x3ab33f);},'eIDsd':function(_0x292456,_0x18587a){const _0x5d2479=a72_0x2a78;return _0xb21396[_0x5d2479(0x132)](_0x292456,_0x18587a);},'unOVf':_0xb21396['ruwom']};_0xfa39a2&&_0xb21396[_0x108647(0x132)](_0x533c36,_0xfa39a2),_0x3ba9be[_0x108647(0x154)](),_0x3ba9be['on'](_0xb21396[_0x108647(0x11b)],_0x219551=>{const _0x3b1032=_0x108647,_0x198d4b={'Zgouc':function(_0x4e10ec,_0x4393a5){return _0x25e3e3['rzSCm'](_0x4e10ec,_0x4393a5);},'fPwYq':_0x25e3e3[_0x3b1032(0x139)]};if(/\/$/['test'](_0x219551[_0x3b1032(0x112)]))_0x3ba9be[_0x3b1032(0x154)]();else{const _0x172c73=fs[_0x3b1032(0x130)](path['join'](_0x436ced,_0x219551[_0x3b1032(0x112)]));_0x3ba9be[_0x3b1032(0x157)](_0x219551,function(_0x11fb0a,_0x5e8a78){const _0x4a6a2c=_0x3b1032;_0x11fb0a&&_0x198d4b['Zgouc'](_0x533c36,_0xfa39a2),_0x5e8a78['on'](_0x198d4b[_0x4a6a2c(0x122)],function(){const _0x18796b=_0x4a6a2c;_0x172c73[_0x18796b(0x141)](),_0x3ba9be[_0x18796b(0x154)]();}),_0x5e8a78[_0x4a6a2c(0x12f)](_0x172c73);}),_0x25e3e3[_0x3b1032(0x14a)](_0x219551['fileName'],_0x491f7c)&&_0x3ba9be[_0x3b1032(0x141)]();}}),_0x3ba9be['on'](_0xb21396[_0x108647(0x129)],_0x76ad4b=>{const _0x1d9929=_0x108647;_0x4426d7[_0x1d9929(0x109)](_0x533c36,_0x76ad4b);}),_0x3ba9be[_0x108647(0x12c)](_0xb21396[_0x108647(0x15b)],()=>{const _0x46f722=_0x108647;fs['chmod'](_0x384c3e,_0x4426d7[_0x46f722(0x106)],function(_0x54b4de){const _0x3d6e97=_0x46f722;_0x54b4de&&_0x4426d7[_0x3d6e97(0x144)](_0x533c36,_0x54b4de),_0x4426d7[_0x3d6e97(0x109)](_0x30b056,_0x384c3e);}),_0x3ba9be[_0x46f722(0x141)]();});});});})['on'](_0x2e9e8b['BzCbK'],function(_0x37aeb0){const _0x5e1ac0=_0x3ceca1;logger[_0x5e1ac0(0x140)](_0x4ad3c4[_0x5e1ac0(0x11a)],_0x37aeb0),_0x4ad3c4[_0x5e1ac0(0x143)](_0x533c36,_0x37aeb0);});});}#homedir(){const _0x431841=a72_0x1c8b20,_0x4fcdeb={};_0x4fcdeb['SYBis']=function(_0xc647bb,_0x5650c1){return _0xc647bb===_0x5650c1;},_0x4fcdeb[_0x431841(0x10b)]='function',_0x4fcdeb[_0x431841(0x13e)]=function(_0x1011aa,_0x18fbee){return _0x1011aa===_0x18fbee;},_0x4fcdeb[_0x431841(0x12a)]='win32',_0x4fcdeb[_0x431841(0x17a)]=function(_0x283699,_0x1a8f8e){return _0x283699+_0x1a8f8e;},_0x4fcdeb[_0x431841(0x168)]=_0x431841(0x125),_0x4fcdeb[_0x431841(0x10c)]=function(_0x389e55,_0x5ac47e){return _0x389e55+_0x5ac47e;},_0x4fcdeb[_0x431841(0x170)]='/Users/',_0x4fcdeb[_0x431841(0x179)]=function(_0x5d75b2,_0x49f8e2){return _0x5d75b2===_0x49f8e2;},_0x4fcdeb[_0x431841(0x100)]='linux',_0x4fcdeb['jftmB']=_0x431841(0x178),_0x4fcdeb[_0x431841(0x149)]=function(_0x4f3314,_0x15eaa9){return _0x4f3314+_0x15eaa9;},_0x4fcdeb[_0x431841(0x11e)]=_0x431841(0x104),_0x4fcdeb['tnRNe']=function(_0x796ec5,_0x3c5382){return _0x796ec5||_0x3c5382;};const _0x496389=_0x4fcdeb;if(_0x496389[_0x431841(0x145)](typeof os[_0x431841(0x167)],_0x496389['yKfQO']))return os[_0x431841(0x167)]();const _0x124851=process['env'],_0x43e1dc=_0x124851[_0x431841(0x127)],_0x4e34b8=_0x124851['LOGNAME']||_0x124851['USER']||_0x124851[_0x431841(0x148)]||_0x124851[_0x431841(0x14d)];if(_0x496389[_0x431841(0x13e)](process[_0x431841(0x151)],_0x496389['TKrJU']))return _0x124851['USERPROFILE']||_0x496389[_0x431841(0x17a)](_0x124851[_0x431841(0x14f)],_0x124851[_0x431841(0x16b)])||_0x43e1dc||null;if(_0x496389['SYBis'](process[_0x431841(0x151)],_0x496389['xUjLE']))return _0x43e1dc||(_0x4e34b8?_0x496389[_0x431841(0x10c)](_0x496389[_0x431841(0x170)],_0x4e34b8):null);if(_0x496389['LlaVQ'](process[_0x431841(0x151)],_0x496389[_0x431841(0x100)]))return _0x43e1dc||(_0x496389['LlaVQ'](process[_0x431841(0x175)](),0x0)?_0x496389[_0x431841(0x158)]:_0x4e34b8?_0x496389[_0x431841(0x149)](_0x496389[_0x431841(0x11e)],_0x4e34b8):null);return _0x496389[_0x431841(0x10a)](_0x43e1dc,null);}}module[a72_0x1c8b20(0xff)]=PercyBinary;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a73_0x325cf3=a73_0x2eeb;(function(_0xc9efc5,_0x56e817){var _0x5d0f69=a73_0x2eeb,_0x1da4cf=_0xc9efc5();while(!![]){try{var _0x48dde2=parseInt(_0x5d0f69(0xae))/0x1+parseInt(_0x5d0f69(0xac))/0x2*(-parseInt(_0x5d0f69(0xa5))/0x3)+-parseInt(_0x5d0f69(0xaf))/0x4+-parseInt(_0x5d0f69(0xb2))/0x5*(parseInt(_0x5d0f69(0xa8))/0x6)+-parseInt(_0x5d0f69(0xa6))/0x7*(parseInt(_0x5d0f69(0xa9))/0x8)+-parseInt(_0x5d0f69(0xad))/0x9*(parseInt(_0x5d0f69(0xb1))/0xa)+parseInt(_0x5d0f69(0xb0))/0xb;if(_0x48dde2===_0x56e817)break;else _0x1da4cf['push'](_0x1da4cf['shift']());}catch(_0x276af0){_0x1da4cf['push'](_0x1da4cf['shift']());}}}(a73_0x119b,0x217e8));function a73_0x2eeb(_0x4c4335,_0x725a51){var _0x119bbf=a73_0x119b();return a73_0x2eeb=function(_0x2eeb4a,_0x2cf917){_0x2eeb4a=_0x2eeb4a-0xa5;var _0x5a3290=_0x119bbf[_0x2eeb4a];return _0x5a3290;},a73_0x2eeb(_0x4c4335,_0x725a51);}class PercyCaptureMap{#map={};[a73_0x325cf3(0xab)](_0x5839f9,_0x58a10f){!this.#map[_0x5839f9]&&(this.#map[_0x5839f9]={}),!this.#map[_0x5839f9][_0x58a10f]&&(this.#map[_0x5839f9][_0x58a10f]=0x0),this.#map[_0x5839f9][_0x58a10f]++;}[a73_0x325cf3(0xb3)](_0x3268f4,_0x1a20e7){var _0x53348f=a73_0x325cf3;return _0x3268f4+'-'+_0x1a20e7+'-'+this[_0x53348f(0xaa)](_0x3268f4,_0x1a20e7);}['get'](_0x2c78ad,_0x2b634d){if(!this.#map[_0x2c78ad])return 0x0;if(!this.#map[_0x2c78ad][_0x2b634d])return 0x0;return this.#map[_0x2c78ad][_0x2b634d];}}module[a73_0x325cf3(0xa7)]=PercyCaptureMap;function a73_0x119b(){var _0xf678ae=['increment','10048pdNzfr','9pNuBEl','204010BjcGiU','799448eifhwJ','7683918Mlopxv','2046390IzeszD','765470OejbcA','getName','30qkeVcP','7nfZkQH','exports','6URqnek','1260168zZjZsE','get'];a73_0x119b=function(){return _0xf678ae;};return a73_0x119b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a74_0x432182=a74_0x444d;(function(_0x329513,_0x3a1f3a){var _0x4f8422=a74_0x444d,_0x2e88d4=_0x329513();while(!![]){try{var _0x1b6432=parseInt(_0x4f8422(0x126))/0x1*(parseInt(_0x4f8422(0x128))/0x2)+-parseInt(_0x4f8422(0x130))/0x3*(parseInt(_0x4f8422(0x131))/0x4)+-parseInt(_0x4f8422(0x133))/0x5+-parseInt(_0x4f8422(0x12b))/0x6*(-parseInt(_0x4f8422(0x12c))/0x7)+-parseInt(_0x4f8422(0x134))/0x8*(-parseInt(_0x4f8422(0x132))/0x9)+parseInt(_0x4f8422(0x12d))/0xa+-parseInt(_0x4f8422(0x12a))/0xb;if(_0x1b6432===_0x3a1f3a)break;else _0x2e88d4['push'](_0x2e88d4['shift']());}catch(_0x1e8599){_0x2e88d4['push'](_0x2e88d4['shift']());}}}(a74_0x3331,0x3e40b));var a74_0x27dfb7={};a74_0x27dfb7[a74_0x432182(0x127)]=['takeScreenshot'],a74_0x27dfb7[a74_0x432182(0x129)]=[a74_0x432182(0x12e),'sendKeys'];function a74_0x3331(){var _0x3a6c4b=['6ojAbMU','1599829IJsylo','2888090AVDFAq','click','exports','1238064MGhzvU','4TFiqAl','1453068JURLYS','416740zjBwDM','24JOnAiU','auto','manual','30LmZYDS','driver','3926azptbQ','element','3405369SbicMC'];a74_0x3331=function(){return _0x3a6c4b;};return a74_0x3331();}var a74_0x8bff1a={};a74_0x8bff1a[a74_0x432182(0x127)]=['takeScreenshot'];function a74_0x444d(_0x420eee,_0x4336a4){var _0x333131=a74_0x3331();return a74_0x444d=function(_0x444d0d,_0x21eb61){_0x444d0d=_0x444d0d-0x124;var _0x149f25=_0x333131[_0x444d0d];return _0x149f25;},a74_0x444d(_0x420eee,_0x4336a4);}var a74_0x1795f6={};a74_0x1795f6[a74_0x432182(0x129)]=['click'];var a74_0x244642={};a74_0x244642[a74_0x432182(0x124)]=a74_0x27dfb7,a74_0x244642['screenshot']=a74_0x8bff1a,a74_0x244642[a74_0x432182(0x12e)]=a74_0x1795f6,a74_0x244642['testcase']={},a74_0x244642[a74_0x432182(0x125)]={},module[a74_0x432182(0x12f)]=a74_0x244642;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a75_0x46f77e=a75_0x1001;(function(_0x3d8f4a,_0x19fc34){const _0x2b6cf1=a75_0x1001,_0x4965d8=_0x3d8f4a();while(!![]){try{const _0x2acf99=parseInt(_0x2b6cf1(0x20a))/0x1*(-parseInt(_0x2b6cf1(0x20c))/0x2)+-parseInt(_0x2b6cf1(0x20e))/0x3+-parseInt(_0x2b6cf1(0x1f9))/0x4+parseInt(_0x2b6cf1(0x202))/0x5*(parseInt(_0x2b6cf1(0x213))/0x6)+parseInt(_0x2b6cf1(0x1f4))/0x7*(parseInt(_0x2b6cf1(0x217))/0x8)+-parseInt(_0x2b6cf1(0x1fb))/0x9*(-parseInt(_0x2b6cf1(0x201))/0xa)+parseInt(_0x2b6cf1(0x203))/0xb;if(_0x2acf99===_0x19fc34)break;else _0x4965d8['push'](_0x4965d8['shift']());}catch(_0x4123c7){_0x4965d8['push'](_0x4965d8['shift']());}}}(a75_0x28d2,0xeea21));const tryRequire=function(_0x474fff,_0x1029ec){const _0x4130de=a75_0x1001,_0x5c2a41={'WzKHP':function(_0x23d7b1,_0x16ab75){return _0x23d7b1(_0x16ab75);}};try{return _0x5c2a41[_0x4130de(0x1f5)](require,_0x474fff);}catch{return _0x1029ec;}},percySnapshot=tryRequire(a75_0x46f77e(0x1f8),null),{percyScreenshot}=tryRequire('@percy/selenium-webdriver',{}),percyAppScreenshot=require(a75_0x46f77e(0x206)),{getCurrentTestData}=require(a75_0x46f77e(0x219)),PerformanceTester=require(a75_0x46f77e(0x216)),logger=require(a75_0x46f77e(0x208))['winstonLogger'];percySnapshot&&(exports[a75_0x46f77e(0x215)]=async function(){const _0x499af3=a75_0x46f77e,_0x35d6bc={'dUOjZ':function(_0x47f68d,_0x4cbce4){return _0x47f68d!==_0x4cbce4;},'JTmZJ':function(_0x252c65,_0x5ae656){return _0x252c65>=_0x5ae656;},'IcPwC':function(_0x464334){return _0x464334();},'orarf':_0x499af3(0x20d)};if(global['browserstackPlatformIndex']&&_0x35d6bc[_0x499af3(0x1fa)](global['browserstackPlatformIndex'],global[_0x499af3(0x1f7)]))return;const _0x1322a4=_0x35d6bc[_0x499af3(0x20b)](arguments[_0x499af3(0x205)],0x2)?arguments[0x1]:'',_0x18e644=_0x35d6bc[_0x499af3(0x209)](getCurrentTestData),_0x42fca9={};return _0x42fca9[_0x499af3(0x1f6)]=_0x1322a4,_0x42fca9[_0x499af3(0x1f0)]=_0x18e644['name']||'',_0x42fca9[_0x499af3(0x211)]=_0x18e644[_0x499af3(0x204)]||'',_0x42fca9[_0x499af3(0x214)]=global[_0x499af3(0x200)],await PerformanceTester[_0x499af3(0x210)](_0x35d6bc[_0x499af3(0x1fc)],()=>percySnapshot[_0x499af3(0x20f)](null,arguments),_0x42fca9);});percyScreenshot?exports[a75_0x46f77e(0x1fd)]=async function(){const _0x17f704=a75_0x46f77e,_0xe12f36={'wSasw':function(_0x461e5d,_0x520840){return _0x461e5d>=_0x520840;},'LVEKT':function(_0x50b838){return _0x50b838();},'DhuxR':_0x17f704(0x21a)},_0x459442=_0xe12f36[_0x17f704(0x218)](arguments[_0x17f704(0x205)],0x2)?arguments[0x1]:'',_0x4daf3d=_0xe12f36['LVEKT'](getCurrentTestData),_0xfe2fc3={};return _0xfe2fc3['name']=_0x459442,_0xfe2fc3['testCase']=_0x4daf3d[_0x17f704(0x1f6)]||'',_0xfe2fc3[_0x17f704(0x211)]=_0x4daf3d[_0x17f704(0x204)]||'',_0xfe2fc3[_0x17f704(0x214)]=global[_0x17f704(0x200)],await PerformanceTester[_0x17f704(0x210)](_0xe12f36[_0x17f704(0x212)],()=>percyScreenshot[_0x17f704(0x20f)](null,arguments),_0xfe2fc3);}:exports[a75_0x46f77e(0x1fd)]=()=>{const _0x507ba7=a75_0x46f77e,_0x364c02={};_0x364c02['utuJh']=_0x507ba7(0x1fe);const _0x92b302=_0x364c02;logger['error'](_0x92b302[_0x507ba7(0x1ff)]);};exports[a75_0x46f77e(0x1f2)]=async function(){const _0x3ff855=a75_0x46f77e,_0x382900={'BuXIa':function(_0x43d106,_0x1e102d){return _0x43d106>=_0x1e102d;},'oIFHE':function(_0x19927c){return _0x19927c();},'oQGZV':_0x3ff855(0x1f1)},_0x53016b=_0x382900['BuXIa'](arguments[_0x3ff855(0x205)],0x2)?arguments[0x1]:'',_0x504bd5=_0x382900[_0x3ff855(0x207)](getCurrentTestData),_0x5ddc61={};return _0x5ddc61[_0x3ff855(0x1f6)]=_0x53016b,_0x5ddc61[_0x3ff855(0x1f0)]=_0x504bd5[_0x3ff855(0x1f6)]||'',_0x5ddc61['thTestCaseExecutionId']=_0x504bd5['uuid']||'',_0x5ddc61[_0x3ff855(0x214)]=global[_0x3ff855(0x200)],await PerformanceTester[_0x3ff855(0x210)](_0x382900[_0x3ff855(0x1f3)],()=>percyAppScreenshot[_0x3ff855(0x20f)](null,arguments),_0x5ddc61);};function a75_0x1001(_0x2bb680,_0x24c497){const _0x28d2c7=a75_0x28d2();return a75_0x1001=function(_0x10018a,_0x313e35){_0x10018a=_0x10018a-0x1f0;let _0x3cb7f7=_0x28d2c7[_0x10018a];return _0x3cb7f7;},a75_0x1001(_0x2bb680,_0x24c497);}function a75_0x28d2(){const _0x4b9b59=['oIFHE','../logger','IcPwC','2OLQJFd','JTmZJ','1603228yNjFrP','percy:snapshot','1844847TpLHXu','apply','measure','thTestCaseExecutionId','DhuxR','3336auFzPN','platformIndex','snapshot','../performance-tester','5790216iquVEi','wSasw','../../helpers/testhub/utils','percy:screenshot','testCase','percy:screenshot-app','screenshotApp','oQGZV','14FbQpfT','WzKHP','name','browserstackPercyBestPlatform','@percy/selenium-webdriver','7723960JUFiNP','dUOjZ','315EEZrML','orarf','screenshot','Unsupported\x20driver\x20for\x20percy','utuJh','browserstackPlatformIndex','289060RgAaRz','4140NTNJYq','24276736vBNOfx','uuid','length','@percy/appium-app'];a75_0x28d2=function(){return _0x4b9b59;};return a75_0x28d2();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a76_0x49ee(){var _0x485c2b=['204aItrEi','158736iiUqmd','88EQxTvh','24508kKsBUA','58107AsSwve','206aOVVPm','7405MKJsSL','710oFiuRH','312lYaDei','./Percy','exports','184281TFOSjT','1193067lyHxIK'];a76_0x49ee=function(){return _0x485c2b;};return a76_0x49ee();}function a76_0x270d(_0x1ef1f0,_0x12c095){var _0x49ee1b=a76_0x49ee();return a76_0x270d=function(_0x270d85,_0x37835b){_0x270d85=_0x270d85-0xba;var _0x13cdde=_0x49ee1b[_0x270d85];return _0x13cdde;},a76_0x270d(_0x1ef1f0,_0x12c095);}var a76_0x154f02=a76_0x270d;(function(_0x1324bf,_0x3efe87){var _0x53b92a=a76_0x270d,_0x1c3a35=_0x1324bf();while(!![]){try{var _0x4a1d3e=-parseInt(_0x53b92a(0xc5))/0x1+parseInt(_0x53b92a(0xbf))/0x2*(parseInt(_0x53b92a(0xc2))/0x3)+-parseInt(_0x53b92a(0xba))/0x4*(parseInt(_0x53b92a(0xc0))/0x5)+-parseInt(_0x53b92a(0xbb))/0x6+-parseInt(_0x53b92a(0xbe))/0x7*(-parseInt(_0x53b92a(0xbc))/0x8)+parseInt(_0x53b92a(0xc6))/0x9+-parseInt(_0x53b92a(0xc1))/0xa*(-parseInt(_0x53b92a(0xbd))/0xb);if(_0x4a1d3e===_0x3efe87)break;else _0x1c3a35['push'](_0x1c3a35['shift']());}catch(_0x46f94e){_0x1c3a35['push'](_0x1c3a35['shift']());}}}(a76_0x49ee,0x1a00a),module[a76_0x154f02(0xc4)]=require(a76_0x154f02(0xc3)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a77_0x4f322c=a77_0x4665;(function(_0x618e8,_0x2653e3){const _0x1b56ae=a77_0x4665,_0x4db087=_0x618e8();while(!![]){try{const _0x128887=parseInt(_0x1b56ae(0x1a7))/0x1*(-parseInt(_0x1b56ae(0x1b8))/0x2)+-parseInt(_0x1b56ae(0x173))/0x3*(parseInt(_0x1b56ae(0x176))/0x4)+parseInt(_0x1b56ae(0x16f))/0x5+-parseInt(_0x1b56ae(0x1a3))/0x6*(parseInt(_0x1b56ae(0x175))/0x7)+parseInt(_0x1b56ae(0x187))/0x8*(-parseInt(_0x1b56ae(0x1b9))/0x9)+parseInt(_0x1b56ae(0x18f))/0xa*(-parseInt(_0x1b56ae(0x188))/0xb)+-parseInt(_0x1b56ae(0x189))/0xc*(-parseInt(_0x1b56ae(0x180))/0xd);if(_0x128887===_0x2653e3)break;else _0x4db087['push'](_0x4db087['shift']());}catch(_0x4b581a){_0x4db087['push'](_0x4db087['shift']());}}}(a77_0x27cb,0x70f66));function a77_0x4665(_0x14ba04,_0x2da85e){const _0x27cb07=a77_0x27cb();return a77_0x4665=function(_0x466502,_0x4ed88f){_0x466502=_0x466502-0x16d;let _0x2a56ee=_0x27cb07[_0x466502];return _0x2a56ee;},a77_0x4665(_0x14ba04,_0x2da85e);}const Percy=require('./Percy'),PercySDK=require(a77_0x4f322c(0x190)),PercyCaptureModes=require(a77_0x4f322c(0x1ab)),PercyCaptureMap=require(a77_0x4f322c(0x1b0)),logger=require(a77_0x4f322c(0x18d))['winstonLogger'],helper=require(a77_0x4f322c(0x183)),PerformanceTester=require(a77_0x4f322c(0x1b3));exports[a77_0x4f322c(0x17b)]=PerformanceTester[a77_0x4f322c(0x182)](a77_0x4f322c(0x1a6),async _0x1f8be6=>{const _0x5c52c0=a77_0x4f322c,_0x4f0331={};_0x4f0331[_0x5c52c0(0x1ac)]=_0x5c52c0(0x1a1);const _0xcad56b=_0x4f0331;logger[_0x5c52c0(0x195)](_0xcad56b['MevZR']);const _0x88f798=new Percy(_0x1f8be6),_0x4a4583=await _0x88f798[_0x5c52c0(0x1b1)]();if(_0x4a4583)return _0x88f798;return null;}),exports[a77_0x4f322c(0x198)]=PerformanceTester[a77_0x4f322c(0x182)](a77_0x4f322c(0x18b),async _0x1004e6=>{const _0x4c8bf2=a77_0x4f322c,_0x1362fb={};_0x1362fb[_0x4c8bf2(0x170)]=_0x4c8bf2(0x18c);const _0x22ba9f=_0x1362fb;return logger[_0x4c8bf2(0x195)](_0x22ba9f[_0x4c8bf2(0x170)]),_0x1004e6[_0x4c8bf2(0x1a9)]();}),exports[a77_0x4f322c(0x1aa)]=_0x2cb0e9=>{const _0x2714b7=a77_0x4f322c,_0x499b3b={};_0x499b3b[_0x2714b7(0x1a2)]=function(_0x3eb096,_0x34c3b4){return _0x3eb096<_0x34c3b4;};const _0x4cda4e=_0x499b3b,_0x4afd12={};_0x4afd12[_0x2714b7(0x1a4)]=0x0,_0x4afd12[_0x2714b7(0x1ba)]=0x1,_0x4afd12['edge']=0x2,_0x4afd12[_0x2714b7(0x1a0)]=0x3;const _0x2d8803=_0x4afd12;return _0x2cb0e9[_0x2714b7(0x199)]((_0x3cb5bd,_0x5a2703,_0x1c6912)=>{const _0x582a8f=_0x2714b7,_0xac9b77=_0x2cb0e9[_0x3cb5bd];if(_0x5a2703[_0x582a8f(0x1a8)])return _0x3cb5bd;if(_0xac9b77['deviceName'])return _0x1c6912;const _0x37a84f=_0x5a2703[_0x582a8f(0x1b2)]?_0x5a2703[_0x582a8f(0x1b2)]:_0x5a2703[_0x582a8f(0x192)];if(_0x37a84f&&_0x4cda4e[_0x582a8f(0x1a2)](_0x2d8803[_0x37a84f[_0x582a8f(0x196)]()],_0x2d8803[_0x37a84f[_0x582a8f(0x196)]()]))return _0x1c6912;return _0x3cb5bd;},0x0);},exports[a77_0x4f322c(0x19a)]=async(_0xe09003,_0x2f03d8,_0x3a6453)=>{const _0x452ba4=a77_0x4f322c,_0x3eaf2b={};_0x3eaf2b[_0x452ba4(0x18e)]=_0x452ba4(0x17d);const _0x18caa9=_0x3eaf2b,_0x2bdff2=_0xe09003[_0x452ba4(0x1b6)];if(helper['isUndefined'](_0xe09003[_0x452ba4(0x19c)])){logger[_0x452ba4(0x195)](_0x18caa9[_0x452ba4(0x18e)]);return;}const _0x230019=_0x2bdff2['getName'](_0xe09003[_0x452ba4(0x19c)],_0x2f03d8);_0x3a6453[_0x452ba4(0x184)]?await PercySDK[_0x452ba4(0x193)](_0xe09003,_0x230019):await PercySDK[_0x452ba4(0x177)](_0xe09003,_0x230019),_0x2bdff2[_0x452ba4(0x185)](_0xe09003[_0x452ba4(0x19c)],_0x2f03d8);},exports['patchDriverPercy']=(_0x389712,_0x13b042,_0x27c2dd)=>{const _0x4c855f=a77_0x4f322c,_0x4852b9={};_0x4852b9[_0x4c855f(0x1b5)]=_0x4c855f(0x1b7),_0x4852b9[_0x4c855f(0x17e)]=_0x4c855f(0x19b),_0x4852b9['KRlPx']=function(_0x1428e5,_0x32ce41){return _0x1428e5!==_0x32ce41;},_0x4852b9[_0x4c855f(0x191)]=_0x4c855f(0x186);const _0x273794=_0x4852b9;if(!helper[_0x4c855f(0x1a5)](_0x27c2dd,[_0x273794['TaBPd'],_0x273794[_0x4c855f(0x17e)]]))return;if(_0x27c2dd[_0x4c855f(0x1b7)][_0x4c855f(0x19b)]&&_0x27c2dd[_0x4c855f(0x1b7)][_0x4c855f(0x1af)]&&_0x273794[_0x4c855f(0x19d)](_0x27c2dd['browserStackPercyOptions'][_0x4c855f(0x1af)],_0x273794[_0x4c855f(0x191)])&&!_0x389712[_0x4c855f(0x1b6)]){global[_0x4c855f(0x19c)]&&(_0x389712[_0x4c855f(0x19c)]=global['browserstackSessionName']),_0x389712[_0x4c855f(0x1b6)]=new PercyCaptureMap();const _0x4ee692=PercyCaptureModes[_0x27c2dd[_0x4c855f(0x1b7)][_0x4c855f(0x1af)]];_0x4ee692[_0x4c855f(0x19f)]&&_0x4ee692[_0x4c855f(0x19f)][_0x4c855f(0x181)](_0xfa0906=>this[_0x4c855f(0x17c)](_0x389712,_0xfa0906,_0x27c2dd)),_0x4ee692[_0x4c855f(0x174)]&&_0x4ee692['element']['forEach'](_0xd92c18=>{const _0x1a49a5=_0x4c855f;if(_0x13b042[_0x1a49a5(0x1ae)][_0x1a49a5(0x17f)+_0xd92c18])return;_0x13b042[_0x1a49a5(0x1ae)]['patch'+_0xd92c18]=!![];const _0x1733ce=_0x13b042[_0x1a49a5(0x1ae)][_0xd92c18];_0x13b042[_0x1a49a5(0x1ae)][_0xd92c18]=async function(){const _0x2a3d28=_0x1a49a5;let _0xfccd15=_0x1733ce[_0x2a3d28(0x16d)](this,arguments);_0xfccd15&&_0xfccd15[_0x2a3d28(0x179)]&&(_0xfccd15=await _0xfccd15);try{const _0x3ae1ef=this[_0x2a3d28(0x197)]();await exports[_0x2a3d28(0x19a)](_0x3ae1ef,_0xd92c18,_0x27c2dd);}catch(_0x5a7dc3){logger['error'](_0x2a3d28(0x171)+_0xd92c18+_0x2a3d28(0x194)+_0x5a7dc3);}return _0xfccd15;};});}},exports[a77_0x4f322c(0x17c)]=function(_0x14d292,_0xebd8bd,_0x436368){const _0x311b97=a77_0x4f322c,_0x310711={};_0x310711[_0x311b97(0x178)]=function(_0x541660,_0x11e76f){return _0x541660+_0x11e76f;},_0x310711[_0x311b97(0x18a)]=_0x311b97(0x17f),_0x310711[_0x311b97(0x1b4)]=_0x311b97(0x19e);const _0x3b13fc=_0x310711,_0x18d03e=_0x3b13fc[_0x311b97(0x178)](_0x3b13fc[_0x311b97(0x18a)],_0xebd8bd),_0x53d98a=_0x3b13fc[_0x311b97(0x178)](_0x3b13fc[_0x311b97(0x1b4)],_0xebd8bd),_0x1acc0d=this;if(_0x14d292[_0x18d03e]||!_0x14d292[_0xebd8bd])return;_0x14d292[_0x18d03e]=!![],_0x14d292[_0x53d98a]=_0x14d292[_0xebd8bd],_0x14d292[_0xebd8bd]=async()=>{const _0x2aecda=_0x311b97;try{await _0x1acc0d[_0x2aecda(0x19a)](_0x14d292,_0xebd8bd,_0x436368);}catch(_0x51582b){logger[_0x2aecda(0x16e)]('Error\x20patching\x20'+_0xebd8bd+_0x2aecda(0x194)+_0x51582b);}return await _0x14d292[_0x53d98a][_0x2aecda(0x16d)](_0x14d292,arguments);};},exports[a77_0x4f322c(0x17a)]=_0x2dfcce=>{const _0x53869e=a77_0x4f322c,_0x20b8d8={};_0x20b8d8['percy']=_0x2dfcce[_0x53869e(0x19b)],_0x20b8d8[_0x53869e(0x1af)]=_0x2dfcce['percyCaptureMode'];const _0x4014df=_0x20b8d8;_0x2dfcce['percy']&&(_0x4014df[_0x53869e(0x1ad)]=exports[_0x53869e(0x1aa)](_0x2dfcce[_0x53869e(0x172)]));;return _0x4014df;};function a77_0x27cb(){const _0x58ad3a=['driver','safari','Starting\x20percy','FBwRS','322176EkgOmp','chrome','nestedKeyValue','percy:start','19ZcKvLr','deviceName','stop','getBestPlatformForPercySnapshot','./PercyCaptureModes','MevZR','browserstackPercyBestPlatform','prototype','percyCaptureMode','./PercyCaptureMap','start','browser','../performance-tester','teCLk','TaBPd','browserstackPercyMap','browserStackPercyOptions','27808qjtybi','1926zPqxcc','firefox','apply','error','2460485WbAgvD','LAnhL','Error\x20patching\x20','platforms','22623aCXIAk','element','35frDEFB','32kLLAcp','screenshot','QXIUS','then','getPercyOptions','startPercy','overrideXforPercy','Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present','QdSgK','patch','52mTShnK','forEach','measureWrapper','../helper','app','increment','manual','34424sbfurX','99zlWKMV','4943076KgXlAD','ZuCTC','percy:stop','Stopping\x20percy','../logger','BzBjZ','181410PomwHl','./PercySDK','SUnYg','browserName','screenshotApp','\x20for\x20percy\x20','debug','toLowerCase','getDriver','stopPercy','reduce','percyAutoCapture','percy','browserstackSessionName','KRlPx','init'];a77_0x27cb=function(){return _0x58ad3a;};return a77_0x27cb();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a78_0x186ff1=a78_0x5e41;(function(_0x5b7376,_0x2b039c){const _0x201ff2=a78_0x5e41,_0x46664b=_0x5b7376();while(!![]){try{const _0x39e14a=parseInt(_0x201ff2(0xc2))/0x1*(-parseInt(_0x201ff2(0xf0))/0x2)+parseInt(_0x201ff2(0xc5))/0x3*(parseInt(_0x201ff2(0xa4))/0x4)+-parseInt(_0x201ff2(0xb2))/0x5+-parseInt(_0x201ff2(0xb1))/0x6+parseInt(_0x201ff2(0xef))/0x7+parseInt(_0x201ff2(0x9f))/0x8+-parseInt(_0x201ff2(0x94))/0x9*(-parseInt(_0x201ff2(0xb0))/0xa);if(_0x39e14a===_0x2b039c)break;else _0x46664b['push'](_0x46664b['shift']());}catch(_0x1a596a){_0x46664b['push'](_0x46664b['shift']());}}}(a78_0x3f2c,0xd9441));const fs=require('fs'),{performance,PerformanceObserver}=require(a78_0x186ff1(0xa9)),{sleep,debug}=require(a78_0x186ff1(0x8e)),path=require('path'),logger=require(a78_0x186ff1(0xa5))[a78_0x186ff1(0xea)];function a78_0x3f2c(){const _0xf96172=['itzIz','meta','apply','finalizePerfMeasures','calculateTimeFromEvents','hKkPp','message','stringify','jkhri','Time\x20for\x20','getCleanedPerfEvents','zgnal','measures','wlOZb','_errorEvents','RJDIT','Performance\x20report\x20is\x20at\x20','performance-report.json','winstonLogger','stack','toString','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','BROWSERSTACK_SDK_INSTRUMENTATION','2653966DVoMwB','1292608Umgtbc','jWxjt','ikpCi','measure','readFileSync','isRaH','getEventsFromJSON','OoLhu','buffered','OekgI','startMonitoring','unlinkSync','generateHTMLReport','false','generateJSON','writeFile','UeFDc','peooN','parse','finalize','match','push','pushErrors','started','_observer','slice','captureError','./test-observability/utils','uKDbc','sUURF','errorFile','Bdkaa','stopAndGenerate','301572iUSFcv','exports','observe','catch','isEnabled','qEWiZ','tJdcK','lLboT','code','function','then','8577152gfdVZQ','<h1>Performance\x20Report</h1>','Error\x20in\x20doing\x20csv\x20operations:\x20','performance-own.html','reduce','19528WTapqr','./logger','join','getEntries','length','perf_hooks','forEach','duration','finalizeErrors','MZIXO','writeFileSync','mark','310bNcQfb','2906058hPuZdU','4461580QtgTEa','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','finally','vAZvu','calculateTimesFromMultipleFiles','GFWaP','XZkIk','existsSync','entryType','debug','FzEJZ','cwd','\x20for\x20all\x20processes\x20is\x20','env','GwrWA','errors','2auaeNj','name','kddEA','657alvkjE','errorReportFileName','atISX','mHqSs','error-report.json','entries','jsonReportFileName','<tr><td>','-end','</tbody></table></body></html>','map','_measureEvents','appendFileSync','HTEAc','cUMOR','pushPerfMeasures','_events','-start','concat'];a78_0x3f2c=function(){return _0xf96172;};return a78_0x3f2c();}class PerformanceTester{static [a78_0x186ff1(0x8b)];static [a78_0x186ff1(0xd5)]=[];static ['_measureEvents']=[];static [a78_0x186ff1(0xe6)]=[];static [a78_0x186ff1(0x8a)]=![];static ['jsonReportFileName']=a78_0x186ff1(0xe9);static [a78_0x186ff1(0xc6)]=a78_0x186ff1(0xc9);static[a78_0x186ff1(0xfa)](_0x5a9d11=a78_0x186ff1(0xe9),_0x3378f3='error-report.json'){const _0x3ad477=a78_0x186ff1,_0x6fde6b={};_0x6fde6b['hKkPp']=function(_0x47fb8b,_0x971dc1){return _0x47fb8b===_0x971dc1;},_0x6fde6b[_0x3ad477(0xc7)]='measure',_0x6fde6b[_0x3ad477(0xf9)]=_0x3ad477(0x9d);const _0x46c8ae=_0x6fde6b;if(this[_0x3ad477(0x8a)]||!this[_0x3ad477(0x98)]())return;this['_observer']=new PerformanceObserver(_0x5046e2=>{const _0x5daa92=_0x3ad477;_0x5046e2[_0x5daa92(0xa7)]()[_0x5daa92(0xaa)](_0x572de6=>{const _0x28df9b=_0x5daa92;_0x46c8ae[_0x28df9b(0xdd)](_0x572de6[_0x28df9b(0xba)],_0x46c8ae[_0x28df9b(0xc7)])?this[_0x28df9b(0xd0)][_0x28df9b(0x88)](_0x572de6):this['_events'][_0x28df9b(0x88)](_0x572de6);});});const _0x15607f={};_0x15607f[_0x3ad477(0xf8)]=!![],_0x15607f['entryTypes']=[_0x46c8ae['OekgI'],_0x46c8ae[_0x3ad477(0xc7)]],this['_observer'][_0x3ad477(0x96)](_0x15607f),this[_0x3ad477(0x8a)]=!![],this[_0x3ad477(0xcb)]=_0x5a9d11,this['errorReportFileName']=_0x3378f3;}static['getPerformance'](){return performance;}static[a78_0x186ff1(0xdc)](_0x463d2e,_0x1322e4){const _0x334ba6=a78_0x186ff1,_0xaf00b3={};_0xaf00b3['uKDbc']=function(_0x27adca,_0x2a49f1){return _0x27adca+_0x2a49f1;},_0xaf00b3[_0x334ba6(0xe3)]=function(_0x2e1b8f,_0x506feb){return _0x2e1b8f||_0x506feb;},_0xaf00b3[_0x334ba6(0xc0)]=function(_0x1e0079,_0x4926b7){return _0x1e0079===_0x4926b7;};const _0x10e9cc=_0xaf00b3,_0x3f8fc3={};if(!_0x463d2e||_0x10e9cc[_0x334ba6(0xc0)](_0x463d2e[_0x334ba6(0xa8)],0x0))return;_0x463d2e[_0x334ba6(0xcf)](_0xeb9c2a=>{const _0x4079bc=_0x334ba6;!_0x3f8fc3[_0xeb9c2a[_0x4079bc(0xc3)]]&&(_0x3f8fc3[_0xeb9c2a[_0x4079bc(0xc3)]]=0x0),_0x3f8fc3[_0xeb9c2a[_0x4079bc(0xc3)]]+=_0xeb9c2a[_0x4079bc(0xab)];});const _0x342b36=_0x1322e4[_0x334ba6(0xa3)]((_0x58c270,_0x2ad235)=>{const _0x13a39d=_0x334ba6;return _0x10e9cc[_0x13a39d(0x8f)](_0x3f8fc3[_0x2ad235],_0x10e9cc['zgnal'](_0x58c270,0x0));},0x0);return _0x342b36;}static async[a78_0x186ff1(0xb6)](_0x5fb421,_0x4a67e4){const _0x21f65c=a78_0x186ff1,_0xa28cde={'XZkIk':function(_0x57aebb,_0x16549f){return _0x57aebb+_0x16549f;},'JcCTv':function(_0x3282d0,_0xc55537){return _0x3282d0||_0xc55537;},'peooN':function(_0x1656bc,_0x3c90c2){return _0x1656bc===_0x3c90c2;},'isRaH':function(_0x59ceb1,_0x59ba14){return _0x59ceb1(_0x59ba14);}};if(!_0x5fb421||_0xa28cde[_0x21f65c(0x84)](_0x5fb421['length'],0x0))return 0x0;const _0x54f1d6=[];for(const _0x1e399a of _0x5fb421){const _0x783756=path[_0x21f65c(0xa6)]('.',_0x1e399a);try{const _0x3c0691=this[_0x21f65c(0xf6)](_0x783756);_0x3c0691[_0x21f65c(0xcf)](_0x293270=>{const _0x123738=_0x21f65c;!_0x54f1d6[_0x293270[_0x123738(0xc3)]]&&(_0x54f1d6[_0x293270[_0x123738(0xc3)]]=0x0),_0x54f1d6[_0x293270['name']]+=_0x293270[_0x123738(0xab)];});}catch(_0x3a322e){_0xa28cde['isRaH'](debug,_0x21f65c(0xa1)+_0x3a322e['toString']());}}const _0x3534ee=_0x4a67e4[_0x21f65c(0xa3)]((_0xb10e96,_0x1c26a1)=>{const _0x17ae8f=_0x21f65c;return _0xa28cde[_0x17ae8f(0xb8)](_0x54f1d6[_0x1c26a1],_0xa28cde['JcCTv'](_0xb10e96,0x0));},0x0);return _0xa28cde[_0x21f65c(0xf5)](debug,_0x21f65c(0xe1)+_0x4a67e4+_0x21f65c(0xbe)+_0x3534ee),_0x3534ee;}static[a78_0x186ff1(0xf6)](_0x5895fe){const _0x2b417d=a78_0x186ff1;if(!fs[_0x2b417d(0xb9)](_0x5895fe))return[];return JSON[_0x2b417d(0x85)](fs[_0x2b417d(0xf4)](_0x5895fe)['toString']());}static async[a78_0x186ff1(0x93)](_0x5305fa=a78_0x186ff1(0xa2),_0x3115a3=null){const _0x387a80=a78_0x186ff1,_0x1e304a={'RJDIT':function(_0x3754fa,_0x352caf){return _0x3754fa(_0x352caf);}};if(!this[_0x387a80(0x8a)])return;await _0x1e304a['RJDIT'](sleep,0x1e),this['_observer']['disconnect'](),this[_0x387a80(0x8a)]=![],this[_0x387a80(0x81)](this[_0x387a80(0xd5)]);const _0x413b2a=this[_0x387a80(0xfc)](this[_0x387a80(0xd5)]),_0x397e79=path[_0x387a80(0xa6)](process[_0x387a80(0xbd)](),_0x5305fa);fs[_0x387a80(0x82)](_0x397e79,_0x413b2a,_0x3d7847=>{const _0x478693=_0x387a80;if(_0x3d7847){_0x1e304a[_0x478693(0xe7)](debug,'Error\x20in\x20writing\x20html\x20'+_0x3d7847[_0x478693(0xec)]());return;}_0x1e304a[_0x478693(0xe7)](debug,_0x478693(0xe8)+_0x397e79);});if(_0x3115a3)return this[_0x387a80(0xdc)](this[_0x387a80(0xd5)],_0x3115a3);}static['generateHTMLReport'](_0xa4432){const _0x34cff0=a78_0x186ff1,_0x1a308d={};_0x1a308d[_0x34cff0(0xe0)]=_0x34cff0(0xed),_0x1a308d[_0x34cff0(0xc4)]=_0x34cff0(0xa0),_0x1a308d[_0x34cff0(0xc8)]=_0x34cff0(0xb3),_0x1a308d[_0x34cff0(0xb5)]=_0x34cff0(0xce);const _0x517182=_0x1a308d;let _0x804748=_0x517182[_0x34cff0(0xe0)];return _0x804748+=_0x517182[_0x34cff0(0xc4)],_0x804748+=_0x517182[_0x34cff0(0xc8)],_0xa4432['forEach'](_0x33aed6=>{const _0x270be0=_0x34cff0;_0x804748+=_0x270be0(0xcc)+_0x33aed6['name']+'</td><td>'+_0x33aed6[_0x270be0(0xab)]+'</td></tr>';}),_0x804748+=_0x517182[_0x34cff0(0xb5)],_0x804748;}static[a78_0x186ff1(0x81)](_0x1dae95){const _0xf90a81=a78_0x186ff1;if(!this[_0xf90a81(0xcb)])return;const _0x28380d={};_0x1dae95[_0xf90a81(0xcf)](_0x20c2e1=>{const _0x1b7ab0=_0xf90a81;!_0x28380d[_0x20c2e1[_0x1b7ab0(0xc3)]]&&(_0x28380d[_0x20c2e1[_0x1b7ab0(0xc3)]]=0x0),_0x28380d[_0x20c2e1[_0x1b7ab0(0xc3)]]+=_0x20c2e1[_0x1b7ab0(0xab)];});const _0x23cb3f=Object[_0xf90a81(0xca)](_0x28380d)[_0xf90a81(0xcf)](([_0x3be208,_0x22ecc0])=>{const _0x236742=_0xf90a81,_0x220b6d={};return _0x220b6d[_0x236742(0xc3)]=_0x3be208,_0x220b6d[_0x236742(0xab)]=_0x22ecc0,_0x220b6d;});fs[_0xf90a81(0xae)](this[_0xf90a81(0xcb)],JSON[_0xf90a81(0xdf)](_0x23cb3f));}static[a78_0x186ff1(0x98)](){const _0x2cbc5c=a78_0x186ff1,_0x13a13f={};_0x13a13f[_0x2cbc5c(0xf2)]=function(_0x4503df,_0x291f8d){return _0x4503df===_0x291f8d;},_0x13a13f[_0x2cbc5c(0x90)]=_0x2cbc5c(0xfd);const _0x62b8e4=_0x13a13f;return!_0x62b8e4['ikpCi'](process[_0x2cbc5c(0xbf)][_0x2cbc5c(0xee)],_0x62b8e4[_0x2cbc5c(0x90)]);}static['measure'](_0x574d29,_0x2ad733,_0x447a94=null,_0x163aa9=null){const _0x27f606=a78_0x186ff1,_0x1b6090={};_0x1b6090[_0x27f606(0xf1)]=function(_0x544720,_0x53b0ed){return _0x544720+_0x53b0ed;},_0x1b6090[_0x27f606(0xb7)]=_0x27f606(0xd6),_0x1b6090[_0x27f606(0xad)]=_0x27f606(0xcd),_0x1b6090[_0x27f606(0x83)]=function(_0x3eaf30,_0x5f1b21){return _0x3eaf30 instanceof _0x5f1b21;};const _0xbc0c40=_0x1b6090;try{if(this[_0x27f606(0x8a)]&&this['isEnabled']()){let _0x2f5c7f=_0x574d29;_0x447a94&&(_0x2f5c7f=_0x574d29+'['+JSON[_0x27f606(0xdf)](_0x447a94)+']');const _0x2b1312=_0xbc0c40[_0x27f606(0xf1)](_0x2f5c7f,_0xbc0c40[_0x27f606(0xb7)]),_0x250259=_0xbc0c40[_0x27f606(0xf1)](_0x2f5c7f,_0xbc0c40[_0x27f606(0xad)]);performance[_0x27f606(0xaf)](_0x2b1312);const _0x40b03c=_0x2ad733[_0x27f606(0xda)](null,_0x163aa9);if(_0xbc0c40['UeFDc'](_0x40b03c,Promise))return new Promise((_0x23ea36,_0x1ea931)=>{const _0x30ef73=_0x27f606;_0x40b03c[_0x30ef73(0x9e)](_0x480673=>_0x23ea36(_0x480673))[_0x30ef73(0x97)](_0x454514=>_0x1ea931(_0x454514))[_0x30ef73(0xb4)](()=>{const _0x136d3a=_0x30ef73;performance[_0x136d3a(0xaf)](_0x250259),performance[_0x136d3a(0xf3)](_0x2f5c7f,_0x2b1312,_0x250259);});});;return performance['mark'](_0x250259),performance[_0x27f606(0xf3)](_0x2f5c7f,_0x2b1312,_0x250259),_0x40b03c;};return _0x2ad733[_0x27f606(0xda)](null,_0x163aa9);}catch(_0x1ce545){return _0x2ad733['apply'](null,_0x163aa9);}}static['measureWrapper'](_0x2f6f3f,_0x5bdbc9){const _0xba7403=this;return function(){const _0x4a6985=a78_0x5e41,_0x3222b9=[_0x2f6f3f,_0x5bdbc9,null][_0x4a6985(0xd7)](arguments);return _0xba7403[_0x4a6985(0xf3)][_0x4a6985(0xda)](_0xba7403,_0x3222b9);};}static['getCleanedPerfEvents'](){const _0x5a4048=a78_0x186ff1,_0xca0f42={};_0xca0f42[_0x5a4048(0x9a)]=function(_0x374383,_0x3d9af9){return _0x374383/_0x3d9af9;},_0xca0f42['lLboT']=function(_0x1dd328,_0x1bb5c3){return _0x1dd328+_0x1bb5c3;},_0xca0f42[_0x5a4048(0xd2)]=function(_0x16748e,_0x4a6e01){return _0x16748e*_0x4a6e01;};const _0x491c1c=_0xca0f42,_0x2523a2=/(^.*)\[(.*)\]$/,_0x39ca3a={},_0x23cba1={};for(const _0x514355 of this[_0x5a4048(0xd0)]){const _0x48875c=_0x514355['name'][_0x5a4048(0x87)](_0x2523a2),_0xf2b4e={};_0xf2b4e[_0x5a4048(0xc3)]=_0x514355[_0x5a4048(0xc3)],_0xf2b4e[_0x5a4048(0xab)]=_0x514355['duration']||0x0;const _0x4ea1f6=_0xf2b4e;_0x48875c&&(_0x4ea1f6[_0x5a4048(0xc3)]=_0x48875c[0x1],_0x4ea1f6[_0x5a4048(0xd9)]=JSON['parse'](_0x48875c[0x2]));if(_0x39ca3a[_0x4ea1f6[_0x5a4048(0xc3)]]){const _0x1acb9e=_0x39ca3a[_0x4ea1f6[_0x5a4048(0xc3)]],_0x4fe646=_0x23cba1[_0x4ea1f6[_0x5a4048(0xc3)]];_0x39ca3a[_0x4ea1f6[_0x5a4048(0xc3)]][_0x5a4048(0xab)]=_0x491c1c[_0x5a4048(0x9a)](_0x491c1c[_0x5a4048(0x9b)](_0x491c1c[_0x5a4048(0xd2)](_0x1acb9e['duration'],_0x4fe646),_0x4ea1f6[_0x5a4048(0xab)]),_0x491c1c[_0x5a4048(0x9b)](0x1,_0x4fe646)),_0x23cba1[_0x4ea1f6['name']]++;}else _0x39ca3a[_0x4ea1f6[_0x5a4048(0xc3)]]=_0x4ea1f6,_0x23cba1[_0x4ea1f6['name']]=0x1;}return Object['values'](_0x39ca3a);}static[a78_0x186ff1(0xd4)](){const _0x4a09e5=a78_0x186ff1,_0x33db90={};_0x33db90[_0x4a09e5(0xd3)]=function(_0x58d4b1,_0x4b7427){return _0x58d4b1===_0x4b7427;},_0x33db90[_0x4a09e5(0xe5)]=function(_0x34efc1,_0x5c4e3c){return _0x34efc1+_0x5c4e3c;};const _0x22ea95=_0x33db90;if(_0x22ea95[_0x4a09e5(0xd3)](this['_measureEvents'][_0x4a09e5(0xa8)],0x0))return;const _0x1752e6=this[_0x4a09e5(0xe2)](),_0x2a4cdf=JSON[_0x4a09e5(0xdf)](_0x1752e6),_0x3b5b0f=_0x22ea95[_0x4a09e5(0xe5)](_0x2a4cdf[_0x4a09e5(0x8c)](0x1,-0x1),',');fs[_0x4a09e5(0xd1)](this[_0x4a09e5(0xcb)],_0x3b5b0f);}static[a78_0x186ff1(0xdb)](){const _0xd57447=a78_0x186ff1,_0x2faee4={};_0x2faee4[_0xd57447(0xbc)]=function(_0x37e20c,_0x41073c){return _0x37e20c===_0x41073c;},_0x2faee4['BEPDu']=function(_0x121806,_0x595323){return _0x121806>_0x595323;};const _0x3aa6c4=_0x2faee4;if(!this['started']||_0x3aa6c4[_0xd57447(0xbc)](this[_0xd57447(0xd0)][_0xd57447(0xa8)],0x0))return[];if(!fs[_0xd57447(0xb9)](this[_0xd57447(0xcb)]))return this[_0xd57447(0xd0)];let _0xaa7b5d=fs[_0xd57447(0xf4)](this['jsonReportFileName'])[_0xd57447(0xec)]();_0xaa7b5d='['+_0xaa7b5d[_0xd57447(0x8c)](0x0,-0x1)+']';let _0x41a767=JSON['parse'](_0xaa7b5d);return _0x3aa6c4['BEPDu'](this[_0xd57447(0xd0)]['length'],0x0)&&(_0x41a767=_0x41a767[_0xd57447(0xd7)](this[_0xd57447(0xe2)]())),this[_0xd57447(0x8b)]['disconnect'](),fs[_0xd57447(0xfb)](this[_0xd57447(0xcb)]),_0x41a767;}static[a78_0x186ff1(0x89)](){const _0x477d84=a78_0x186ff1,_0x57d336={};_0x57d336[_0x477d84(0xf7)]=function(_0x4af917,_0x485633){return _0x4af917===_0x485633;},_0x57d336[_0x477d84(0x99)]=function(_0x5ce570,_0x21d053){return _0x5ce570+_0x21d053;};const _0x29edc1=_0x57d336;if(_0x29edc1[_0x477d84(0xf7)](this['_errorEvents'][_0x477d84(0xa8)],0x0))return;const _0x4ad016=JSON['stringify'](this['_errorEvents']),_0x1b24ea=_0x29edc1[_0x477d84(0x99)](_0x4ad016['slice'](0x1,-0x1),',');fs[_0x477d84(0xd1)](this[_0x477d84(0x91)],_0x1b24ea);}static[a78_0x186ff1(0xac)](){const _0x5d2279=a78_0x186ff1,_0x4dcd4c={};_0x4dcd4c[_0x5d2279(0x92)]=function(_0x394e53,_0x5ddde3){return _0x394e53>_0x5ddde3;};const _0x56d95e=_0x4dcd4c;if(!fs[_0x5d2279(0xb9)](this[_0x5d2279(0xc6)]))return this[_0x5d2279(0xe6)];let _0x3973fc=fs[_0x5d2279(0xf4)](this[_0x5d2279(0xc6)])['toString']();_0x3973fc='['+_0x3973fc[_0x5d2279(0x8c)](0x0,-0x1)+']';let _0x5e9300=JSON[_0x5d2279(0x85)](_0x3973fc);return _0x56d95e[_0x5d2279(0x92)](this[_0x5d2279(0xe6)][_0x5d2279(0xa8)],0x0)&&(_0x5e9300=_0x5e9300['concat'](this[_0x5d2279(0xe6)])),fs[_0x5d2279(0xfb)](this[_0x5d2279(0xc6)]),_0x5e9300;}static[a78_0x186ff1(0x8d)](_0x322904){const _0x205dec=a78_0x186ff1;if(!this[_0x205dec(0x98)]())return;this['_errorEvents'][_0x205dec(0x88)]({'message':_0x322904[_0x205dec(0xde)],'trace':_0x322904[_0x205dec(0xeb)],'code':_0x322904[_0x205dec(0x9c)]||null,'time':new Date()});}static['stopMonitoring'](){const _0x221949=a78_0x186ff1,_0x1d4ca0={};_0x1d4ca0[_0x221949(0xd8)]='Error\x20stopping\x20monitoring';const _0x1e7585=_0x1d4ca0;try{if(!this['isEnabled']())return;this['_observer']['disconnect'](),this['pushPerfMeasures'](),this[_0x221949(0x89)]();}catch{logger[_0x221949(0xbb)](_0x1e7585[_0x221949(0xd8)]);}}static[a78_0x186ff1(0x86)](){const _0x2a667c=a78_0x186ff1,_0x56ed69=this[_0x2a667c(0xdb)](),_0x27a729=this[_0x2a667c(0xac)]();if(!this['isEnabled']()){const _0xff5869={};return _0xff5869[_0x2a667c(0xe4)]=[],_0xff5869[_0x2a667c(0xc1)]=[],_0xff5869;}const _0x2078d7={};return _0x2078d7[_0x2a667c(0xe4)]=_0x56ed69,_0x2078d7[_0x2a667c(0xc1)]=_0x27a729,_0x2078d7;}}function a78_0x5e41(_0x320066,_0x93b385){const _0x3f2c66=a78_0x3f2c();return a78_0x5e41=function(_0x5e4113,_0x3b8ed5){_0x5e4113=_0x5e4113-0x81;let _0xbf8e2e=_0x3f2c66[_0x5e4113];return _0xbf8e2e;},a78_0x5e41(_0x320066,_0x93b385);}module[a78_0x186ff1(0x95)]=PerformanceTester;
|
|
1
|
+
const a78_0x2c33ce=a78_0x1f36;(function(_0x37272e,_0x307fd7){const _0x456a52=a78_0x1f36,_0x1793b3=_0x37272e();while(!![]){try{const _0x12b721=parseInt(_0x456a52(0x16c))/0x1*(-parseInt(_0x456a52(0x121))/0x2)+parseInt(_0x456a52(0x10e))/0x3+-parseInt(_0x456a52(0x114))/0x4*(parseInt(_0x456a52(0x147))/0x5)+-parseInt(_0x456a52(0x143))/0x6*(-parseInt(_0x456a52(0x104))/0x7)+-parseInt(_0x456a52(0x168))/0x8+parseInt(_0x456a52(0x145))/0x9+parseInt(_0x456a52(0x112))/0xa;if(_0x12b721===_0x307fd7)break;else _0x1793b3['push'](_0x1793b3['shift']());}catch(_0x18175e){_0x1793b3['push'](_0x1793b3['shift']());}}}(a78_0x2ffd,0xf364c));const fs=require('fs'),{performance,PerformanceObserver}=require('perf_hooks'),{sleep,debug}=require(a78_0x2c33ce(0x172)),path=require(a78_0x2c33ce(0x134)),logger=require(a78_0x2c33ce(0x117))[a78_0x2c33ce(0xfc)];function a78_0x1f36(_0x5125ba,_0x30cc77){const _0x2ffdd7=a78_0x2ffd();return a78_0x1f36=function(_0x1f360c,_0x57d372){_0x1f360c=_0x1f360c-0xf9;let _0x5beaf0=_0x2ffdd7[_0x1f360c];return _0x5beaf0;},a78_0x1f36(_0x5125ba,_0x30cc77);}class PerformanceTester{static [a78_0x2c33ce(0x111)];static [a78_0x2c33ce(0xff)]=[];static [a78_0x2c33ce(0x11f)]=[];static ['_errorEvents']=[];static [a78_0x2c33ce(0x12e)]=![];static [a78_0x2c33ce(0x125)]=a78_0x2c33ce(0x140);static [a78_0x2c33ce(0x157)]=a78_0x2c33ce(0x131);static[a78_0x2c33ce(0x155)](_0x3a6e79=a78_0x2c33ce(0x140),_0xaf153=a78_0x2c33ce(0x131)){const _0x57441c=a78_0x2c33ce,_0x1db63c={};_0x1db63c[_0x57441c(0x144)]=function(_0x4e7e3e,_0x3dc3ad){return _0x4e7e3e===_0x3dc3ad;},_0x1db63c[_0x57441c(0x16d)]=_0x57441c(0x16b),_0x1db63c['mRciP']=_0x57441c(0x151);const _0x2bdfff=_0x1db63c;if(this[_0x57441c(0x12e)]||!this['isEnabled']())return;this[_0x57441c(0x111)]=new PerformanceObserver(_0x48f857=>{const _0x1c288f=_0x57441c,_0x419f51={'mZFnm':function(_0x30d2e9,_0x2c23aa){const _0x5a10bc=a78_0x1f36;return _0x2bdfff[_0x5a10bc(0x144)](_0x30d2e9,_0x2c23aa);},'NQwoG':_0x2bdfff[_0x1c288f(0x16d)]};_0x48f857[_0x1c288f(0x106)]()[_0x1c288f(0x128)](_0x43f062=>{const _0x4d7d3c=_0x1c288f;_0x419f51[_0x4d7d3c(0x14e)](_0x43f062['entryType'],_0x419f51['NQwoG'])?this['_measureEvents'][_0x4d7d3c(0x10d)](_0x43f062):this[_0x4d7d3c(0xff)][_0x4d7d3c(0x10d)](_0x43f062);});});const _0x10b19a={};_0x10b19a['buffered']=!![],_0x10b19a[_0x57441c(0x150)]=[_0x2bdfff[_0x57441c(0x160)],_0x2bdfff['QcARz']],this[_0x57441c(0x111)][_0x57441c(0x118)](_0x10b19a),this[_0x57441c(0x12e)]=!![],this[_0x57441c(0x125)]=_0x3a6e79,this['errorReportFileName']=_0xaf153;}static[a78_0x2c33ce(0x11c)](){return performance;}static[a78_0x2c33ce(0x15f)](_0x4c9104,_0x3d222e){const _0x1e2be4=a78_0x2c33ce,_0x1a072b={};_0x1a072b[_0x1e2be4(0x10a)]=function(_0xa1237a,_0x44a224){return _0xa1237a+_0x44a224;},_0x1a072b['kZNpA']=function(_0x4d4bf3,_0x18b950){return _0x4d4bf3||_0x18b950;},_0x1a072b[_0x1e2be4(0x123)]=function(_0x882d15,_0x5209a0){return _0x882d15===_0x5209a0;};const _0x2531be=_0x1a072b,_0xc79365={};if(!_0x4c9104||_0x2531be['mtIda'](_0x4c9104['length'],0x0))return;_0x4c9104[_0x1e2be4(0x13e)](_0x243f21=>{const _0x380ed3=_0x1e2be4;!_0xc79365[_0x243f21['name']]&&(_0xc79365[_0x243f21['name']]=0x0),_0xc79365[_0x243f21[_0x380ed3(0x130)]]+=_0x243f21['duration'];});const _0x4b3128=_0x3d222e[_0x1e2be4(0x158)]((_0x567970,_0x18aec9)=>{const _0x187701=_0x1e2be4;return _0x2531be[_0x187701(0x10a)](_0xc79365[_0x18aec9],_0x2531be['kZNpA'](_0x567970,0x0));},0x0);return _0x4b3128;}static async['calculateTimesFromMultipleFiles'](_0x8d2d55,_0x145e93){const _0x1a92d8=a78_0x2c33ce,_0x568281={'yGggE':function(_0x1b68e1,_0x259bfa){return _0x1b68e1+_0x259bfa;},'PGoLN':function(_0x11d668,_0x3afe42){return _0x11d668||_0x3afe42;},'meyFN':function(_0x33acdb,_0x9dbc64){return _0x33acdb===_0x9dbc64;},'AWVHs':function(_0x4eba27,_0x50cd89){return _0x4eba27(_0x50cd89);},'KeZEs':function(_0x13b0b3,_0x3da18a){return _0x13b0b3(_0x3da18a);}};if(!_0x8d2d55||_0x568281[_0x1a92d8(0xf9)](_0x8d2d55[_0x1a92d8(0x167)],0x0))return 0x0;const _0x6931e2=[];for(const _0x29e3f2 of _0x8d2d55){const _0x44ee49=path['join']('.',_0x29e3f2);try{const _0x474509=this['getEventsFromJSON'](_0x44ee49);_0x474509[_0x1a92d8(0x13e)](_0x58946f=>{const _0x53231a=_0x1a92d8;!_0x6931e2[_0x58946f[_0x53231a(0x130)]]&&(_0x6931e2[_0x58946f[_0x53231a(0x130)]]=0x0),_0x6931e2[_0x58946f[_0x53231a(0x130)]]+=_0x58946f[_0x53231a(0x152)];});}catch(_0x1876fb){_0x568281['AWVHs'](debug,'Error\x20in\x20doing\x20csv\x20operations:\x20'+_0x1876fb[_0x1a92d8(0x164)]());}}const _0x5a234c=_0x145e93[_0x1a92d8(0x158)]((_0x30b67b,_0x92fe56)=>{const _0x41f782=_0x1a92d8;return _0x568281[_0x41f782(0x14d)](_0x6931e2[_0x92fe56],_0x568281[_0x41f782(0x15a)](_0x30b67b,0x0));},0x0);return _0x568281[_0x1a92d8(0x102)](debug,'Time\x20for\x20'+_0x145e93+_0x1a92d8(0x15b)+_0x5a234c),_0x5a234c;}static['getEventsFromJSON'](_0x533276){const _0x17b6f4=a78_0x2c33ce;if(!fs[_0x17b6f4(0x13c)](_0x533276))return[];return JSON['parse'](fs[_0x17b6f4(0x135)](_0x533276)[_0x17b6f4(0x164)]());}static async[a78_0x2c33ce(0x127)](_0x42bedd=a78_0x2c33ce(0x154),_0x2ebd0a=null){const _0xd882bd=a78_0x2c33ce,_0x73ae67={'tguTW':function(_0x71e7a9,_0x3c9a3f){return _0x71e7a9(_0x3c9a3f);},'oAekd':function(_0x251988,_0x4683dc){return _0x251988(_0x4683dc);}};if(!this[_0xd882bd(0x12e)])return;await _0x73ae67[_0xd882bd(0x153)](sleep,0x1e),this['_observer'][_0xd882bd(0x14c)](),this[_0xd882bd(0x12e)]=![],this[_0xd882bd(0xfe)](this[_0xd882bd(0xff)]);const _0x4a2a56=this['generateHTMLReport'](this['_events']),_0x5ce65c=path[_0xd882bd(0x15e)](process['cwd'](),_0x42bedd);fs[_0xd882bd(0x141)](_0x5ce65c,_0x4a2a56,_0x1bc874=>{const _0x12f984=_0xd882bd;if(_0x1bc874){_0x73ae67[_0x12f984(0x153)](debug,_0x12f984(0x116)+_0x1bc874[_0x12f984(0x164)]());return;}_0x73ae67[_0x12f984(0x126)](debug,_0x12f984(0x16e)+_0x5ce65c);});if(_0x2ebd0a)return this['calculateTimeFromEvents'](this['_events'],_0x2ebd0a);}static[a78_0x2c33ce(0x11d)](_0x54edeb){const _0x1f3e53=a78_0x2c33ce,_0x40ecb5={};_0x40ecb5['sSxZv']=_0x1f3e53(0x137),_0x40ecb5['UVYjW']=_0x1f3e53(0x12b),_0x40ecb5['BMoFR']='<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>',_0x40ecb5[_0x1f3e53(0xfb)]=_0x1f3e53(0x13d);const _0x379d3e=_0x40ecb5;let _0x1e6f1e=_0x379d3e['sSxZv'];return _0x1e6f1e+=_0x379d3e[_0x1f3e53(0x161)],_0x1e6f1e+=_0x379d3e[_0x1f3e53(0x169)],_0x54edeb['forEach'](_0x1ff109=>{const _0x571e51=_0x1f3e53;_0x1e6f1e+=_0x571e51(0x159)+_0x1ff109[_0x571e51(0x130)]+_0x571e51(0x15d)+_0x1ff109[_0x571e51(0x152)]+_0x571e51(0x12c);}),_0x1e6f1e+=_0x379d3e[_0x1f3e53(0xfb)],_0x1e6f1e;}static['generateJSON'](_0x5510f5){const _0x27d62f=a78_0x2c33ce;if(!this[_0x27d62f(0x125)])return;const _0x42a0ec={};_0x5510f5[_0x27d62f(0x13e)](_0x5e50a6=>{const _0x55f443=_0x27d62f;!_0x42a0ec[_0x5e50a6[_0x55f443(0x130)]]&&(_0x42a0ec[_0x5e50a6[_0x55f443(0x130)]]=0x0),_0x42a0ec[_0x5e50a6[_0x55f443(0x130)]]+=_0x5e50a6['duration'];});const _0x3c8267=Object[_0x27d62f(0x103)](_0x42a0ec)['map'](([_0x634e52,_0x54fb1c])=>{const _0x41715a=_0x27d62f,_0x2b39c7={};return _0x2b39c7[_0x41715a(0x130)]=_0x634e52,_0x2b39c7[_0x41715a(0x152)]=_0x54fb1c,_0x2b39c7;});fs['writeFileSync'](this[_0x27d62f(0x125)],JSON[_0x27d62f(0x136)](_0x3c8267));}static['isEnabled'](){const _0x4c3fa4=a78_0x2c33ce,_0x5069e5={};_0x5069e5['PAVrW']=function(_0x49014c,_0x19d7f1){return _0x49014c===_0x19d7f1;},_0x5069e5['tdxcU']=_0x4c3fa4(0x171);const _0x155e2c=_0x5069e5;return!_0x155e2c[_0x4c3fa4(0x10c)](process[_0x4c3fa4(0x163)][_0x4c3fa4(0x113)],_0x155e2c[_0x4c3fa4(0x138)]);}static['measure'](_0x1934db,_0x5b0138,_0x495fe5=null,_0x4c8e0b=null){const _0x566af9=a78_0x2c33ce,_0xa1aeeb={};_0xa1aeeb[_0x566af9(0x14a)]=function(_0xde545d,_0x39e6e1){return _0xde545d+_0x39e6e1;},_0xa1aeeb[_0x566af9(0x12a)]=_0x566af9(0x149),_0xa1aeeb[_0x566af9(0x16f)]=function(_0x1f896f,_0x203d4c){return _0x1f896f+_0x203d4c;},_0xa1aeeb[_0x566af9(0x148)]=_0x566af9(0x142),_0xa1aeeb[_0x566af9(0x146)]=function(_0x51021e,_0x3f1442){return _0x51021e instanceof _0x3f1442;};const _0x4e5000=_0xa1aeeb;try{if(this['started']&&this[_0x566af9(0x166)]()){let _0x5a915c=_0x1934db;_0x495fe5&&(_0x5a915c=_0x1934db+'['+JSON[_0x566af9(0x136)](_0x495fe5)+']');const _0x2e17be=_0x4e5000[_0x566af9(0x14a)](_0x5a915c,_0x4e5000['MIazH']),_0x44f2db=_0x4e5000['Tlebm'](_0x5a915c,_0x4e5000[_0x566af9(0x148)]);performance[_0x566af9(0x108)](_0x2e17be);const _0x3219a1=_0x5b0138[_0x566af9(0x156)](null,_0x4c8e0b);if(_0x4e5000['PpptR'](_0x3219a1,Promise))return new Promise((_0x1038e5,_0x572b21)=>{const _0x59df2e=_0x566af9;_0x3219a1[_0x59df2e(0x122)](_0x3f2160=>_0x1038e5(_0x3f2160))[_0x59df2e(0x133)](_0x3033a3=>_0x572b21(_0x3033a3))[_0x59df2e(0x14b)](()=>{const _0x10294f=_0x59df2e;performance[_0x10294f(0x108)](_0x44f2db),performance[_0x10294f(0x16b)](_0x5a915c,_0x2e17be,_0x44f2db);});});;return performance[_0x566af9(0x108)](_0x44f2db),performance[_0x566af9(0x16b)](_0x5a915c,_0x2e17be,_0x44f2db),_0x3219a1;};return _0x5b0138[_0x566af9(0x156)](null,_0x4c8e0b);}catch(_0x46a6f3){return _0x5b0138[_0x566af9(0x156)](null,_0x4c8e0b);}}static[a78_0x2c33ce(0x11b)](_0x113384,_0x6ff276){const _0x33b059=this;return function(){const _0x5c6dcc=a78_0x1f36,_0x3415fd=[_0x113384,_0x6ff276,null][_0x5c6dcc(0x129)](arguments);return _0x33b059[_0x5c6dcc(0x16b)][_0x5c6dcc(0x156)](_0x33b059,_0x3415fd);};}static[a78_0x2c33ce(0x13f)](){const _0x3cf109=a78_0x2c33ce,_0x42af30={};_0x42af30[_0x3cf109(0x100)]=function(_0x59f659,_0x5d3011){return _0x59f659/_0x5d3011;},_0x42af30[_0x3cf109(0x110)]=function(_0x4f4c64,_0xa91f05){return _0x4f4c64+_0xa91f05;},_0x42af30[_0x3cf109(0x13a)]=function(_0x445cbc,_0x13f9c1){return _0x445cbc*_0x13f9c1;};const _0xa8ad80=_0x42af30,_0x431081=/(^.*)\[(.*)\]$/,_0x43ae15={},_0x4736bc={};for(const _0x5caf0e of this[_0x3cf109(0x11f)]){const _0x3e912b=_0x5caf0e['name'][_0x3cf109(0x165)](_0x431081),_0x1dcc87={};_0x1dcc87[_0x3cf109(0x130)]=_0x5caf0e[_0x3cf109(0x130)],_0x1dcc87[_0x3cf109(0x152)]=_0x5caf0e[_0x3cf109(0x152)]||0x0;const _0x58689d=_0x1dcc87;_0x3e912b&&(_0x58689d[_0x3cf109(0x130)]=_0x3e912b[0x1],_0x58689d['meta']=JSON[_0x3cf109(0x101)](_0x3e912b[0x2]));if(_0x43ae15[_0x58689d[_0x3cf109(0x130)]]){const _0x5d3da9=_0x43ae15[_0x58689d[_0x3cf109(0x130)]],_0x3d08b4=_0x4736bc[_0x58689d[_0x3cf109(0x130)]];_0x43ae15[_0x58689d[_0x3cf109(0x130)]][_0x3cf109(0x152)]=_0xa8ad80[_0x3cf109(0x100)](_0xa8ad80[_0x3cf109(0x110)](_0xa8ad80[_0x3cf109(0x13a)](_0x5d3da9[_0x3cf109(0x152)],_0x3d08b4),_0x58689d[_0x3cf109(0x152)]),_0xa8ad80[_0x3cf109(0x110)](0x1,_0x3d08b4)),_0x4736bc[_0x58689d[_0x3cf109(0x130)]]++;}else _0x43ae15[_0x58689d['name']]=_0x58689d,_0x4736bc[_0x58689d[_0x3cf109(0x130)]]=0x1;}return Object[_0x3cf109(0xfd)](_0x43ae15);}static['pushPerfMeasures'](){const _0x1441bd=a78_0x2c33ce,_0x43d10d={};_0x43d10d[_0x1441bd(0x124)]=function(_0x35b236,_0x4efe27){return _0x35b236===_0x4efe27;},_0x43d10d['RTRRV']=function(_0x3f9807,_0x35920c){return _0x3f9807+_0x35920c;};const _0x264bf3=_0x43d10d;if(_0x264bf3[_0x1441bd(0x124)](this[_0x1441bd(0x11f)][_0x1441bd(0x167)],0x0))return;const _0x2b855=this[_0x1441bd(0x13f)](),_0x1d8251=JSON[_0x1441bd(0x136)](_0x2b855),_0x4adffb=_0x264bf3[_0x1441bd(0x14f)](_0x1d8251['slice'](0x1,-0x1),',');fs[_0x1441bd(0x12d)](this[_0x1441bd(0x125)],_0x4adffb);}static[a78_0x2c33ce(0x107)](){const _0x9a37df=a78_0x2c33ce,_0x4f1beb={};_0x4f1beb[_0x9a37df(0x170)]=function(_0x4ce471,_0x2f755c){return _0x4ce471===_0x2f755c;},_0x4f1beb[_0x9a37df(0x13b)]=function(_0x7794e7,_0x16da27){return _0x7794e7>_0x16da27;};const _0x5dada7=_0x4f1beb;if(!this['started']||_0x5dada7[_0x9a37df(0x170)](this[_0x9a37df(0x11f)]['length'],0x0))return[];if(!fs[_0x9a37df(0x13c)](this[_0x9a37df(0x125)]))return this[_0x9a37df(0x11f)];let _0x29beeb=fs[_0x9a37df(0x135)](this['jsonReportFileName'])['toString']();_0x29beeb='['+_0x29beeb[_0x9a37df(0x10b)](0x0,-0x1)+']';let _0x4648d7=JSON['parse'](_0x29beeb);return _0x5dada7[_0x9a37df(0x13b)](this[_0x9a37df(0x11f)][_0x9a37df(0x167)],0x0)&&(_0x4648d7=_0x4648d7[_0x9a37df(0x129)](this[_0x9a37df(0x13f)]())),this[_0x9a37df(0x111)][_0x9a37df(0x14c)](),fs['unlinkSync'](this[_0x9a37df(0x125)]),_0x4648d7;}static[a78_0x2c33ce(0x12f)](){const _0x5540a0=a78_0x2c33ce,_0x1e0225={};_0x1e0225[_0x5540a0(0x105)]=function(_0x1d7650,_0xec7177){return _0x1d7650===_0xec7177;},_0x1e0225[_0x5540a0(0x120)]=function(_0x3d5796,_0x10360c){return _0x3d5796+_0x10360c;};const _0x1da6f2=_0x1e0225;if(_0x1da6f2[_0x5540a0(0x105)](this[_0x5540a0(0x16a)][_0x5540a0(0x167)],0x0))return;const _0x42349e=JSON[_0x5540a0(0x136)](this[_0x5540a0(0x16a)]),_0x572156=_0x1da6f2[_0x5540a0(0x120)](_0x42349e['slice'](0x1,-0x1),',');fs[_0x5540a0(0x12d)](this[_0x5540a0(0x15c)],_0x572156);}static[a78_0x2c33ce(0x115)](){const _0x28812e=a78_0x2c33ce,_0x4e8e29={};_0x4e8e29[_0x28812e(0x11e)]=function(_0xedf2c,_0x57a3bc){return _0xedf2c>_0x57a3bc;};const _0x4bce5b=_0x4e8e29;if(!fs[_0x28812e(0x13c)](this[_0x28812e(0x157)]))return this[_0x28812e(0x16a)];let _0x167db1=fs[_0x28812e(0x135)](this['errorReportFileName'])[_0x28812e(0x164)]();_0x167db1='['+_0x167db1[_0x28812e(0x10b)](0x0,-0x1)+']';let _0x2168d8=JSON[_0x28812e(0x101)](_0x167db1);return _0x4bce5b['pocGf'](this[_0x28812e(0x16a)][_0x28812e(0x167)],0x0)&&(_0x2168d8=_0x2168d8[_0x28812e(0x129)](this[_0x28812e(0x16a)])),fs[_0x28812e(0x119)](this[_0x28812e(0x157)]),_0x2168d8;}static['captureError'](_0x402ffd){const _0x2d8945=a78_0x2c33ce;if(!this[_0x2d8945(0x166)]())return;this[_0x2d8945(0x16a)][_0x2d8945(0x10d)]({'message':_0x402ffd[_0x2d8945(0x11a)],'trace':_0x402ffd['stack'],'code':_0x402ffd[_0x2d8945(0x139)]||null,'time':new Date()});}static[a78_0x2c33ce(0x10f)](){const _0x4cb1e1=a78_0x2c33ce,_0x2b0f21={};_0x2b0f21[_0x4cb1e1(0x109)]=_0x4cb1e1(0x132);const _0x403e26=_0x2b0f21;try{if(!this[_0x4cb1e1(0x166)]())return;this[_0x4cb1e1(0x111)][_0x4cb1e1(0x14c)](),this['pushPerfMeasures'](),this[_0x4cb1e1(0x12f)]();}catch{logger['debug'](_0x403e26[_0x4cb1e1(0x109)]);}}static[a78_0x2c33ce(0xfa)](){const _0x23e327=a78_0x2c33ce,_0x1f63a7=this['finalizePerfMeasures'](),_0x20e69f=this[_0x23e327(0x115)]();if(!this['isEnabled']()){const _0x344494={};return _0x344494[_0x23e327(0x162)]=[],_0x344494[_0x23e327(0x173)]=[],_0x344494;}const _0x5e4fd4={};return _0x5e4fd4['measures']=_0x1f63a7,_0x5e4fd4[_0x23e327(0x173)]=_0x20e69f,_0x5e4fd4;}}function a78_0x2ffd(){const _0x2001a5=['reduce','<tr><td>','PGoLN','\x20for\x20all\x20processes\x20is\x20','errorFile','</td><td>','join','calculateTimeFromEvents','mRciP','UVYjW','measures','env','toString','match','isEnabled','length','15671192rixiAR','BMoFR','_errorEvents','measure','281sOeLOk','QcARz','Performance\x20report\x20is\x20at\x20','Tlebm','IHgwL','false','./test-observability/utils','errors','exports','meyFN','finalize','SWlnO','winstonLogger','values','generateJSON','_events','bVVwO','parse','KeZEs','entries','7bUCCLX','RbzIO','getEntries','finalizePerfMeasures','mark','qrZUk','tqoKB','slice','PAVrW','push','3837804vlrTtX','stopMonitoring','DzEea','_observer','348910cjwOHN','BROWSERSTACK_SDK_INSTRUMENTATION','929492DUlNDT','finalizeErrors','Error\x20in\x20writing\x20html\x20','./logger','observe','unlinkSync','message','measureWrapper','getPerformance','generateHTMLReport','pocGf','_measureEvents','igOLC','2528dxcCrK','then','mtIda','coZnm','jsonReportFileName','oAekd','stopAndGenerate','forEach','concat','MIazH','<h1>Performance\x20Report</h1>','</td></tr>','appendFileSync','started','pushErrors','name','error-report.json','Error\x20stopping\x20monitoring','catch','path','readFileSync','stringify','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','tdxcU','code','KnLXF','Tsnlu','existsSync','</tbody></table></body></html>','map','getCleanedPerfEvents','performance-report.json','writeFile','-end','9094986vcPKaW','mfhDV','8512011ZcilDM','PpptR','10LqWlSQ','uZWgG','-start','vIgWW','finally','disconnect','yGggE','mZFnm','RTRRV','entryTypes','function','duration','tguTW','performance-own.html','startMonitoring','apply','errorReportFileName'];a78_0x2ffd=function(){return _0x2001a5;};return a78_0x2ffd();}module[a78_0x2c33ce(0x174)]=PerformanceTester;
|