browserstack-node-sdk 1.34.24 → 1.34.26
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_0x51fea7=a68_0x4a64;(function(_0x4b0eee,_0xdeec4b){const _0x446bd1=a68_0x4a64,_0x251534=_0x4b0eee();while(!![]){try{const _0x5ba463=-parseInt(_0x446bd1(0xb3))/0x1*(-parseInt(_0x446bd1(0xa0))/0x2)+parseInt(_0x446bd1(0xab))/0x3+parseInt(_0x446bd1(0xa4))/0x4*(parseInt(_0x446bd1(0x9c))/0x5)+-parseInt(_0x446bd1(0xae))/0x6*(-parseInt(_0x446bd1(0xa6))/0x7)+parseInt(_0x446bd1(0x93))/0x8+-parseInt(_0x446bd1(0x91))/0x9*(parseInt(_0x446bd1(0x96))/0xa)+-parseInt(_0x446bd1(0xa2))/0xb;if(_0x5ba463===_0xdeec4b)break;else _0x251534['push'](_0x251534['shift']());}catch(_0x5a0a88){_0x251534['push'](_0x251534['shift']());}}}(a68_0x3176,0x1fa3a));const winston=require(a68_0x51fea7(0xac)),os=require('os'),fs=require('fs'),path=require(a68_0x51fea7(0x9a)),logDir='log';!fs[a68_0x51fea7(0xa1)](logDir)&&fs[a68_0x51fea7(0xad)](logDir);const a68_0x549917={};function a68_0x3176(){const _0x15e5c4=['colorize','name','155237ZHHHyC','File','winstonLogger','/usage-debug.log','message','1023714RYBqEl','format','972432oqkEJX','join','silly','10jMPHXy','fileLogger','level','console.info','path','transports','376290lNfnEv','/usage.log','loggerFile','debugLoggerFile','2aeYMIo','existsSync','5754342ZbIQTC','combine','12lmYqpl','Console','38304gKtTaa','createLogger','\x20-\x20','timestamp','YYYY-MM-DD\x20HH:mm:ss','332043WqpAOQ','winston','mkdirSync','168FMGLdo','loggerConsole','printf'];a68_0x3176=function(){return _0x15e5c4;};return a68_0x3176();}function a68_0x4a64(_0x5b202c,_0x1338d7){const _0x31768a=a68_0x3176();return a68_0x4a64=function(_0x4a64f7,_0x118f4e){_0x4a64f7=_0x4a64f7-0x8f;let _0x289d71=_0x31768a[_0x4a64f7];return _0x289d71;},a68_0x4a64(_0x5b202c,_0x1338d7);}a68_0x549917[a68_0x51fea7(0xb2)]=a68_0x51fea7(0x99);const transports={'loggerConsole':new winston[(a68_0x51fea7(0x9b))][(a68_0x51fea7(0xa5))](a68_0x549917),'loggerFile':new winston['transports'][(a68_0x51fea7(0xb4))]({'filename':path[a68_0x51fea7(0x94)](logDir,a68_0x51fea7(0x9d))}),'debugLoggerFile':new winston[(a68_0x51fea7(0x9b))][(a68_0x51fea7(0xb4))]({'filename':path[a68_0x51fea7(0x94)](logDir,a68_0x51fea7(0x8f)),'level':a68_0x51fea7(0x95)})},a68_0x39e1cd={};a68_0x39e1cd[a68_0x51fea7(0x92)]=a68_0x51fea7(0xaa);const a68_0x44116b={};a68_0x44116b[a68_0x51fea7(0x98)]=!![];const winstonLoggerParams={'format':winston[a68_0x51fea7(0x92)][a68_0x51fea7(0xa3)](winston[a68_0x51fea7(0x92)][a68_0x51fea7(0xa9)](a68_0x39e1cd),winston['format'][a68_0x51fea7(0xb1)](a68_0x44116b),winston[a68_0x51fea7(0x92)][a68_0x51fea7(0xb0)](_0x3e61c5=>_0x3e61c5[a68_0x51fea7(0xa9)]+a68_0x51fea7(0xa8)+_0x3e61c5[a68_0x51fea7(0x98)]+':\x20'+_0x3e61c5['message'])),'transports':[transports[a68_0x51fea7(0xaf)],transports['loggerFile'],transports[a68_0x51fea7(0x9f)]]},a68_0x4e6611={};a68_0x4e6611[a68_0x51fea7(0x92)]=a68_0x51fea7(0xaa);const a68_0x354b89={};a68_0x354b89[a68_0x51fea7(0x98)]=!![];const winstonFileLoggerParams={'format':winston[a68_0x51fea7(0x92)][a68_0x51fea7(0xa3)](winston[a68_0x51fea7(0x92)][a68_0x51fea7(0xa9)](a68_0x4e6611),winston[a68_0x51fea7(0x92)][a68_0x51fea7(0xb1)](a68_0x354b89),winston['format'][a68_0x51fea7(0xb0)](_0x3de79a=>_0x3de79a[a68_0x51fea7(0x98)]+':\x20'+_0x3de79a[a68_0x51fea7(0x90)])),'transports':[transports[a68_0x51fea7(0x9e)],transports['debugLoggerFile']]};exports[a68_0x51fea7(0xb5)]=new winston[(a68_0x51fea7(0xa7))](winstonLoggerParams),exports[a68_0x51fea7(0x97)]=new winston['createLogger'](winstonFileLoggerParams),exports['logDir']=logDir,exports[a68_0x51fea7(0x9b)]=transports;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a69_0x5eb8cf=a69_0x2f80;(function(_0x2118ca,_0x2648b4){const _0x3edca2=a69_0x2f80,_0x1f336a=_0x2118ca();while(!![]){try{const _0x17efa5=parseInt(_0x3edca2(0x153))/0x1*(parseInt(_0x3edca2(0x135))/0x2)+parseInt(_0x3edca2(0x112))/0x3*(-parseInt(_0x3edca2(0x147))/0x4)+-parseInt(_0x3edca2(0x13a))/0x5+-parseInt(_0x3edca2(0x13d))/0x6+parseInt(_0x3edca2(0x10f))/0x7*(-parseInt(_0x3edca2(0x125))/0x8)+-parseInt(_0x3edca2(0x15a))/0x9+parseInt(_0x3edca2(0x126))/0xa*(parseInt(_0x3edca2(0x139))/0xb);if(_0x17efa5===_0x2648b4)break;else _0x1f336a['push'](_0x1f336a['shift']());}catch(_0x155ba0){_0x1f336a['push'](_0x1f336a['shift']());}}}(a69_0x52ef,0x732ab));function a69_0x2f80(_0x1e0e53,_0x2fce70){const _0x52ef09=a69_0x52ef();return a69_0x2f80=function(_0x2f8080,_0x1d7f0f){_0x2f8080=_0x2f8080-0x10d;let _0x54be02=_0x52ef09[_0x2f8080];return _0x54be02;},a69_0x2f80(_0x1e0e53,_0x2fce70);}const {aiSdkWrapper}=require('./ai-sdk/aiSdkWrapper'),{commandRepository}=require('./ai-sdk/autoHealHelper'),PerformanceTester=require('./performance-tester'),globals=require('./globals'),logger=require(a69_0x5eb8cf(0x11e))[a69_0x5eb8cf(0x14d)],helper=require(a69_0x5eb8cf(0x15e)),constants=require(a69_0x5eb8cf(0x137));function a69_0x52ef(){const _0x3e38ce=['name','16kRMCQi','AGpUO','aiHeal:findElementFailure','findElement','overrideExecute','aiHeal_isHealingEnabled','winstonLogger','VDsed','Successfully\x20healed\x20command\x20using\x20new\x20','using','UuLcT','getNudgeLocalNotSetError','1EsIfMs','TexfU','Healing\x20failed\x20for\x20command\x20using\x20','vXrzs','qmlyz','NjdjQ','VUZNF','925713xaLaGF','measureWrapper','nestedKeyValue','fjKEs','./helper','name_','mPYhl','capability','xbxTp','NUDGE_LOCAL_ERRORS','findElement\x20command\x20failed\x20with\x20','getId','Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','aiHeal:findElementSuccess','21OjOtbb','MuWvP','css\x20selector','218442sLIkEI',';\x20Trying\x20to\x20heal','NoSuchElementError','isSelfHealEnabled','aiSdk_defaultLogDataEnabled','url','BDSnR','isBrowserstackInfra','debug','yknsO','dlBYh','error','./logger','handleFailure','McnDP','Successfully\x20healed\x20command\x20using\x20new\x20cssPath:\x20','find','TCcvf','info','248272LEhOwW','268180IuHLtC','AaKFk','WwDOL','execute','prROB','NSYZX','parameters_','findElement\x20command\x20failed\x20with\x20cssPath:\x20','aiHeal_isAuthenticated','setTcgToken','value','getSession','aiCck','toString','SCOUF','1259974zuPAEn','ueHGc','../bin/utils/constants','NSqnN','407IxYUIn','2364785YpaXMr','qRZFa','ERRng','1142148WReLps','browserstack.local','skipHealingSuccess','initExecute','vArJH','bstack:options','AFunQ','patchExecute','getGlobal'];a69_0x52ef=function(){return _0x3e38ce;};return a69_0x52ef();}exports[a69_0x5eb8cf(0x14b)]=(_0x13c9d8,_0x153dc0)=>{const _0x24e059=a69_0x5eb8cf,_0x33f916={'VDsed':_0x24e059(0x12e),'ZMvLw':'aiHeal:setToken','yknsO':function(_0x3294b0){return _0x3294b0();},'TCcvf':_0x24e059(0x116),'TexfU':function(_0x1c1738,_0x380596){return _0x1c1738===_0x380596;},'qRZFa':_0x24e059(0x14a),'vXrzs':_0x24e059(0x14c),'prROB':_0x24e059(0x10e),'ueHGc':_0x24e059(0x10d),'VCGfG':_0x24e059(0x114),'xbxTp':'JavascriptError','FCmZl':function(_0x49e167,_0x5b77de){return _0x49e167===_0x5b77de;},'SCOUF':_0x24e059(0x111),'NjdjQ':function(_0x5170f2,_0x303666){return _0x5170f2+_0x303666;},'fURuA':_0x24e059(0x12d),'AaKFk':_0x24e059(0x113),'AFunQ':function(_0x519d1e,_0x354874){return _0x519d1e+_0x354874;},'mPYhl':_0x24e059(0x164),'qmlyz':_0x24e059(0x149),'NSqnN':function(_0x4a68f6){return _0x4a68f6();},'UuLcT':function(_0x112843,_0x2329e0){return _0x112843&&_0x2329e0;},'dlBYh':function(_0x5f2a18,_0x397e07){return _0x5f2a18===_0x397e07;},'vNbXQ':function(_0x448d90,_0x3e084e){return _0x448d90+_0x3e084e;},'vArJH':_0x24e059(0x121),'GZUxm':_0x24e059(0x14f),'BDSnR':function(_0x73e75e,_0x250332){return _0x73e75e+_0x250332;},'McnDP':'Healing\x20failed\x20for\x20command\x20using\x20cssPath:\x20','NSYZX':function(_0x436bf0,_0x46df9a){return _0x436bf0+_0x46df9a;},'esyST':function(_0x5c8be2,_0x422813){return _0x5c8be2+_0x422813;},'EVwdb':_0x24e059(0x155),'PpnPZ':'get','AGpUO':_0x24e059(0x12c),'aiCck':_0x24e059(0x117),'bmfZj':'Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','fjKEs':_0x24e059(0x161),'WwDOL':_0x24e059(0x13e),'VUZNF':_0x24e059(0x142),'MuWvP':'local'},_0x3500ac=_0x13c9d8[_0x24e059(0x144)]||(helper['nestedKeyValue'](_0x153dc0,[_0x33f916['fjKEs'],_0x33f916[_0x24e059(0x128)]])||helper[_0x24e059(0x15c)](_0x153dc0,[_0x33f916[_0x24e059(0x15d)],_0x33f916[_0x24e059(0x159)],_0x33f916[_0x24e059(0x110)]]));if(!globals['getGlobal'](_0x33f916[_0x24e059(0x14e)])&&!globals[_0x24e059(0x145)](_0x33f916['vXrzs'])&&_0x3500ac)return;_0x13c9d8['patchExecute']=!![],_0x13c9d8[_0x24e059(0x140)]=_0x13c9d8[_0x24e059(0x129)],_0x13c9d8[_0x24e059(0x129)]=async _0x40e629=>{const _0x6080da=_0x24e059,_0x540937={};_0x540937[_0x6080da(0x13c)]=_0x33f916[_0x6080da(0x14e)];const _0x5197f9=_0x540937;try{if(!commandRepository['getTcgTokenStatus']()&&globals['getGlobal'](_0x33f916[_0x6080da(0x14e)])){const _0x135f45=PerformanceTester[_0x6080da(0x15b)](_0x33f916['ZMvLw'],async()=>{const _0x1fc1d7=_0x6080da;try{commandRepository['setTcgTokenStatus'](!![]),await aiSdkWrapper[_0x1fc1d7(0x12f)]((await _0x13c9d8[_0x1fc1d7(0x131)]())[_0x1fc1d7(0x165)]());const _0x234155=globals[_0x1fc1d7(0x145)](_0x5197f9[_0x1fc1d7(0x13c)]);_0x234155&&commandRepository['setAiSessionTimeStamp']((await _0x13c9d8[_0x1fc1d7(0x131)]())['getId']());}catch(_0x4655e0){logger[_0x1fc1d7(0x11d)]('Error\x20in\x20handling\x20TCG\x20Auth:\x20'+_0x4655e0);}});await _0x33f916['yknsO'](_0x135f45);}const _0x386530=await _0x13c9d8['initExecute'](_0x40e629);if(!helper[_0x6080da(0x119)]()&&(commandRepository['isSelfHealEnabled']()||globals[_0x6080da(0x145)](_0x33f916[_0x6080da(0x123)]))&&_0x33f916[_0x6080da(0x154)](_0x40e629[_0x6080da(0x15f)],_0x33f916[_0x6080da(0x13b)])&&!_0x40e629[_0x6080da(0x13f)]&&globals[_0x6080da(0x145)](_0x33f916[_0x6080da(0x14e)])&&globals[_0x6080da(0x145)](_0x33f916['vXrzs'])){const _0x31e955=new Date(),_0x3d4778=PerformanceTester[_0x6080da(0x15b)](_0x33f916[_0x6080da(0x12a)],async()=>{return await aiSdkWrapper['handleSuccess'](_0x153dc0,_0x13c9d8,_0x40e629);});await _0x33f916[_0x6080da(0x11b)](_0x3d4778);}return _0x386530;}catch(_0x14442e){logger[_0x6080da(0x11a)](_0x33f916[_0x6080da(0x136)]);try{if(!helper[_0x6080da(0x119)]()&&(_0x33f916[_0x6080da(0x154)](_0x14442e[_0x6080da(0x146)],_0x33f916['VCGfG'])||_0x33f916[_0x6080da(0x154)](_0x14442e[_0x6080da(0x146)],_0x33f916[_0x6080da(0x162)]))&&_0x33f916['FCmZl'](_0x40e629['name_'],_0x33f916[_0x6080da(0x13b)])&&commandRepository[_0x6080da(0x115)]()&&globals[_0x6080da(0x145)](_0x33f916[_0x6080da(0x14e)])&&globals['getGlobal'](_0x33f916[_0x6080da(0x156)])){_0x33f916['FCmZl'](_0x40e629['parameters_']['using'],_0x33f916[_0x6080da(0x134)])?logger['info'](_0x33f916[_0x6080da(0x158)](_0x33f916[_0x6080da(0x158)](_0x33f916['fURuA'],_0x40e629[_0x6080da(0x12c)][_0x6080da(0x130)]),_0x33f916[_0x6080da(0x127)])):logger[_0x6080da(0x124)](_0x33f916['NjdjQ'](_0x33f916['NjdjQ'](_0x33f916[_0x6080da(0x143)](_0x33f916['AFunQ'](_0x33f916[_0x6080da(0x160)],_0x40e629[_0x6080da(0x12c)][_0x6080da(0x150)]),':\x20'),_0x40e629[_0x6080da(0x12c)][_0x6080da(0x130)]),_0x33f916['AaKFk']));const _0x3b97a6=PerformanceTester[_0x6080da(0x15b)](_0x33f916[_0x6080da(0x157)],async()=>{const _0x4f219e=_0x6080da;return await aiSdkWrapper[_0x4f219e(0x11f)](_0x153dc0,_0x13c9d8,_0x40e629);}),_0x4075c9=new Date(),{locatorType:_0xd840f4,locatorValue:_0x1ce8f9,commandHealed:_0x530465}=await _0x33f916[_0x6080da(0x138)](_0x3b97a6);if(_0x33f916[_0x6080da(0x151)](_0xd840f4,_0x1ce8f9)){_0x40e629[_0x6080da(0x12c)][_0x6080da(0x150)]=_0xd840f4,_0x40e629[_0x6080da(0x12c)][_0x6080da(0x130)]=_0x1ce8f9,_0x40e629[_0x6080da(0x13f)]=!![];const _0x190343=_0x13c9d8[_0x6080da(0x129)](_0x40e629);return _0x33f916[_0x6080da(0x11c)](_0xd840f4,_0x33f916[_0x6080da(0x134)])?logger['info'](_0x33f916['vNbXQ'](_0x33f916[_0x6080da(0x141)],_0x1ce8f9)):logger['info'](_0x33f916[_0x6080da(0x158)](_0x33f916[_0x6080da(0x158)](_0x33f916['NjdjQ'](_0x33f916['GZUxm'],_0xd840f4),':\x20'),_0x1ce8f9)),_0x190343;}else!_0x530465&&(_0x33f916[_0x6080da(0x11c)](_0xd840f4,_0x33f916[_0x6080da(0x134)])?logger['info'](_0x33f916[_0x6080da(0x118)](_0x33f916[_0x6080da(0x120)],_0x40e629['parameters_']['value'])):logger[_0x6080da(0x124)](_0x33f916[_0x6080da(0x12b)](_0x33f916['esyST'](_0x33f916['BDSnR'](_0x33f916['EVwdb'],_0x40e629[_0x6080da(0x12c)]['using']),':\x20'),_0x40e629[_0x6080da(0x12c)][_0x6080da(0x130)])));}!_0x3500ac&&_0x33f916[_0x6080da(0x11c)](_0x40e629[_0x6080da(0x15f)],_0x33f916['PpnPZ'])&&helper[_0x6080da(0x15c)](_0x40e629,[_0x33f916[_0x6080da(0x148)],_0x33f916[_0x6080da(0x132)]])&&!!constants[_0x6080da(0x163)][_0x6080da(0x122)](_0x25bc16=>{const _0x2f2fd4=_0x6080da;return _0x14442e[_0x2f2fd4(0x133)]()['includes'](_0x25bc16);})&&helper[_0x6080da(0x152)](_0x40e629[_0x6080da(0x12c)][_0x6080da(0x117)],!![]);}catch(_0x40ef92){logger['debug'](_0x33f916['bmfZj'],_0x40ef92);}throw _0x14442e;}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a70_0x56ea(_0x55940a,_0x29fa43){var _0x5e039e=a70_0x5e03();return a70_0x56ea=function(_0x56ea76,_0x1dfa05){_0x56ea76=_0x56ea76-0x1c5;var _0x3b919c=_0x5e039e[_0x56ea76];return _0x3b919c;},a70_0x56ea(_0x55940a,_0x29fa43);}function a70_0x5e03(){var _0x4420ea=['quitCount_','overrideTakeScreenshot','patchQuit','5HVvZyD','takeScreenshot','gKBIq','vWElw','687263bGdqGQ','oSFgp','11662944adDYyH','overrideQuit','830232NpvQJF','patchScreenshot','74240sRGHPj','AKqvU','6KtBYzY','72WdogMJ','KGveK','7XOrNsa','4|2|3|0|5|1','pid','split','2217120nsckZB','quit','1433616hIHlrw','WaYTk','1133aFFyEj','initScreenshot','initQuit','TseVj','BS_TESTOPS_ALLOW_SCREENSHOTS','750194APHqRr','fVhmg','FKLRy','oKJCG','0|2|1|3|4','true','env','zaYIE','TEST_SCREENSHOT'];a70_0x5e03=function(){return _0x4420ea;};return a70_0x5e03();}var a70_0x577c3d=a70_0x56ea;(function(_0x19a15e,_0x1fe14c){var _0x422d58=a70_0x56ea,_0x97ce7e=_0x19a15e();while(!![]){try{var _0x67e3d7=parseInt(_0x422d58(0x1eb))/0x1+-parseInt(_0x422d58(0x1db))/0x2*(parseInt(_0x422d58(0x1cb))/0x3)+-parseInt(_0x422d58(0x1d2))/0x4*(parseInt(_0x422d58(0x1e7))/0x5)+-parseInt(_0x422d58(0x1d4))/0x6*(-parseInt(_0x422d58(0x1ce))/0x7)+-parseInt(_0x422d58(0x1c7))/0x8*(parseInt(_0x422d58(0x1cc))/0x9)+parseInt(_0x422d58(0x1c9))/0xa*(parseInt(_0x422d58(0x1d6))/0xb)+parseInt(_0x422d58(0x1c5))/0xc;if(_0x67e3d7===_0x1fe14c)break;else _0x97ce7e['push'](_0x97ce7e['shift']());}catch(_0x3108d9){_0x97ce7e['push'](_0x97ce7e['shift']());}}}(a70_0x5e03,0x80ecd),exports[a70_0x577c3d(0x1e5)]=_0x3e5b07=>{var _0x1d23f5=a70_0x577c3d,_0x31ab0e={'TeahB':_0x1d23f5(0x1cf),'oKJCG':function(_0x40b079,_0x463a4d){return _0x40b079!==_0x463a4d;},'gKBIq':_0x1d23f5(0x1e0),'WaYTk':_0x1d23f5(0x1e3),'FNtjA':function(_0x1b43da,_0x13d60f){return _0x1b43da(_0x13d60f);}},_0x182583=_0x31ab0e['TeahB'][_0x1d23f5(0x1d1)]('|'),_0x4d80a2=0x0;while(!![]){switch(_0x182583[_0x4d80a2++]){case'0':_0x3e5b07[_0x1d23f5(0x1c8)]=!![];continue;case'1':_0x3e5b07[_0x1d23f5(0x1e8)]=()=>{var _0x56ae64=_0x1d23f5,_0x4ace3b={'FKLRy':_0x4273d2[_0x56ae64(0x1ca)],'KGveK':function(_0xddfa24,_0x4430df){return _0x4273d2['TuDTJ'](_0xddfa24,_0x4430df);}};return new Promise(function(_0x48738c,_0x15c31a){var _0x7d113f=_0x56ae64,_0x40d26b={'Ewsuj':_0x4ace3b[_0x7d113f(0x1dd)],'zaYIE':function(_0x421867,_0x2b4007){var _0x2f8387=_0x7d113f;return _0x4ace3b[_0x2f8387(0x1cd)](_0x421867,_0x2b4007);}};_0x3e5b07['initScreenshot']()['then'](_0x59cf5c=>{var _0x3d7662=_0x7d113f;process['emit']('bs:addLog:'+process[_0x3d7662(0x1d0)],{'timestamp':new Date()['toISOString'](),'message':_0x59cf5c,'kind':_0x40d26b['Ewsuj']}),_0x40d26b[_0x3d7662(0x1e2)](_0x48738c,_0x59cf5c);});});};continue;case'2':if(_0x31ab0e[_0x1d23f5(0x1de)](process[_0x1d23f5(0x1e1)][_0x1d23f5(0x1da)],_0x31ab0e[_0x1d23f5(0x1e9)]))return;continue;case'3':if(_0x3e5b07[_0x1d23f5(0x1c8)])return;continue;case'4':var _0x4273d2={'AKqvU':_0x31ab0e[_0x1d23f5(0x1d5)],'TuDTJ':function(_0x4d12c2,_0x215164){return _0x31ab0e['FNtjA'](_0x4d12c2,_0x215164);}};continue;case'5':_0x3e5b07[_0x1d23f5(0x1d7)]=_0x3e5b07[_0x1d23f5(0x1e8)];continue;}break;}},exports[a70_0x577c3d(0x1c6)]=(_0xcbb166,_0x321590=null)=>{var _0x1bf0e0=a70_0x577c3d,_0x20b027={'oSFgp':_0x1bf0e0(0x1df),'ESABy':function(_0x293663){return _0x293663();},'nPQTC':function(_0x4f8c38,_0xf49e98){return _0x4f8c38>_0xf49e98;}},_0x16942a=_0x20b027[_0x1bf0e0(0x1ec)][_0x1bf0e0(0x1d1)]('|'),_0x54de1e=0x0;while(!![]){switch(_0x16942a[_0x54de1e++]){case'0':var _0x2b7ff5={'TseVj':function(_0x29f082){return _0x20b027['ESABy'](_0x29f082);},'vWElw':function(_0x48ae14,_0x376904){return _0x20b027['nPQTC'](_0x48ae14,_0x376904);}};continue;case'1':_0xcbb166[_0x1bf0e0(0x1e6)]=!![];continue;case'2':if(_0xcbb166[_0x1bf0e0(0x1e6)])return;continue;case'3':_0xcbb166[_0x1bf0e0(0x1d8)]=_0xcbb166[_0x1bf0e0(0x1d3)];continue;case'4':_0xcbb166[_0x1bf0e0(0x1d3)]=()=>{var _0x131112=_0x1bf0e0,_0x3ddbbf={'fVhmg':function(_0x259834){var _0x509e3d=a70_0x56ea;return _0x2b7ff5[_0x509e3d(0x1d9)](_0x259834);}};if(_0x321590){_0x321590[_0x131112(0x1e4)]+=0x1;if(_0x2b7ff5[_0x131112(0x1ea)](_0x321590[_0x131112(0x1e4)],0x1))return _0xcbb166[_0x131112(0x1d8)]();}else{_0xcbb166[_0x131112(0x1e4)]+=0x1;if(_0x2b7ff5[_0x131112(0x1ea)](_0xcbb166[_0x131112(0x1e4)],0x1))return _0xcbb166['initQuit']();}return new Promise(function(_0x59cb02){var _0x16f98c=_0x131112;_0x3ddbbf[_0x16f98c(0x1dc)](_0x59cb02);});};continue;}break;}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a71_0x327e73=a71_0xbba1;function a71_0xbba1(_0x109450,_0x376265){const _0x5d824b=a71_0x5d82();return a71_0xbba1=function(_0xbba1f6,_0x496879){_0xbba1f6=_0xbba1f6-0x83;let _0x45a8ab=_0x5d824b[_0xbba1f6];return _0x45a8ab;},a71_0xbba1(_0x109450,_0x376265);}(function(_0x12392,_0x153db6){const _0x23191e=a71_0xbba1,_0x655fa6=_0x12392();while(!![]){try{const _0x4e4b5c=-parseInt(_0x23191e(0xa1))/0x1*(parseInt(_0x23191e(0xac))/0x2)+-parseInt(_0x23191e(0x9a))/0x3*(parseInt(_0x23191e(0xa5))/0x4)+parseInt(_0x23191e(0x92))/0x5+-parseInt(_0x23191e(0x9f))/0x6+parseInt(_0x23191e(0xb6))/0x7*(-parseInt(_0x23191e(0x9c))/0x8)+-parseInt(_0x23191e(0x8f))/0x9+-parseInt(_0x23191e(0x99))/0xa*(-parseInt(_0x23191e(0x97))/0xb);if(_0x4e4b5c===_0x153db6)break;else _0x655fa6['push'](_0x655fa6['shift']());}catch(_0x9e52d1){_0x655fa6['push'](_0x655fa6['shift']());}}}(a71_0x5d82,0xdc781));const fs=require('fs'),path=require(a71_0x327e73(0xc3)),os=require('os'),{spawn}=require(a71_0x327e73(0xc6)),helper=require(a71_0x327e73(0xc5)),logger=require(a71_0x327e73(0x94))['winstonLogger'],{logDir}=require(a71_0x327e73(0x94)),testHubConstants=require(a71_0x327e73(0xb1)),PercyBinary=require(a71_0x327e73(0xc0));function a71_0x5d82(){const _0x210943=['yxNWz','6244qfKlbl','app:exec','flags','vnJqO','close','healthcheck','projectName','51620PHkGgq','createPercyConfig','ENV_VAR','Percy\x20config\x20created\x20at\x20','automate','../../helpers/testhub/constants','MsrMF','exec:stop','stringify','debug','12475876SbOScM','qohMd','stdout','GgRCF','getBinaryPath','push','assign','percyOptions','kGXDj','&type=','./PercyBinary','percy/healthcheck','stop','path','fetchPercyToken','../helper','child_process','pipe','tmpdir','kCRGZ',':start','token','join','GNNgj','app','isProcessRunning','data','version','uZWoe','Percy\x20healthcheck\x20successful','Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20','vSiTh','percy.json','exports','writeFile','16072965BgjVaw','env','GET','8747200ptPSZP','JqzSO','../logger','GEnXP','CCVJd','63259262jVCCec','error','10GCbbJR','783lkDDAk','nodeRequest','8ccRgMW','createWriteStream','Error\x20creating\x20percy\x20config:\x20','9380742CPfAdF','start','41fuekhz','MFjzX','JjrMM'];a71_0x5d82=function(){return _0x210943;};return a71_0x5d82();}class Percy{#logfile=path['join'](logDir,'percy.log');#address=process[a71_0x327e73(0x90)]['PERCY_SERVER_ADDRESS']||'http://localhost:5338';#binaryPath=null;#config=null;#proc=null;#isApp=![];[a71_0x327e73(0x85)]=![];constructor(_0x2c0daf){const _0x18d2e5=a71_0x327e73;this.#config=_0x2c0daf,!!_0x2c0daf[_0x18d2e5(0x84)]&&(this.#isApp=!![]);}async #getBinaryPath(){const _0x17827b=a71_0x327e73;if(!this.#binaryPath){const _0xd5c100=new PercyBinary();this.#binaryPath=await _0xd5c100[_0x17827b(0xba)](this.#config);}return this.#binaryPath;}async #sleep(_0x5b92e4){return new Promise(_0x3aa69b=>setTimeout(_0x3aa69b,_0x5b92e4));}async[a71_0x327e73(0xaa)](){const _0x47c7ed=a71_0x327e73,_0x40da45={};_0x40da45['GEnXP']=_0x47c7ed(0x91),_0x40da45[_0x47c7ed(0x88)]=_0x47c7ed(0xc1);const _0x3e49e2=_0x40da45;try{const _0x13d922=await helper[_0x47c7ed(0x9b)](_0x3e49e2[_0x47c7ed(0x95)],_0x3e49e2[_0x47c7ed(0x88)],null,null,this.#address);if(_0x13d922)return!![];}catch(_0x291dad){return![];}}async[a71_0x327e73(0xa0)](){const _0x23d5a9=a71_0x327e73,_0x677c25={'MFjzX':_0x23d5a9(0xa6),'jlvVV':'exec','GNNgj':function(_0x13c18d,_0x4d392c,_0x5071fd,_0x22c1df){return _0x13c18d(_0x4d392c,_0x5071fd,_0x22c1df);},'MUVUo':_0x23d5a9(0xa9),'MsrMF':_0x23d5a9(0x89)},_0x4316e0=await this.#getBinaryPath(),_0x5e8db4={};_0x5e8db4[_0x23d5a9(0xa7)]='a';const _0x1c42d8=fs[_0x23d5a9(0x9d)](this.#logfile,_0x5e8db4),_0x426c56=await this[_0x23d5a9(0xc4)](),_0x43c254=await this[_0x23d5a9(0xad)]();if(!_0x426c56)return![];const _0x4a5919=[(this.#isApp?_0x677c25[_0x23d5a9(0xa2)]:_0x677c25['jlvVV'])+_0x23d5a9(0xca)];_0x43c254&&_0x4a5919[_0x23d5a9(0xbb)]('-c',_0x43c254);this.#proc=_0x677c25[_0x23d5a9(0x83)](spawn,_0x4316e0,_0x4a5919,{'env':Object[_0x23d5a9(0xbc)](process['env'],{'PERCY_TOKEN':_0x426c56,'TH_BUILD_UUID':process[_0x23d5a9(0x90)][testHubConstants[_0x23d5a9(0xae)]['BROWSERSTACK_TESTHUB_UUID']]})}),this.#proc[_0x23d5a9(0xb8)][_0x23d5a9(0xc7)](_0x1c42d8),this.#proc['stderr'][_0x23d5a9(0xc7)](_0x1c42d8),this['isProcessRunning']=!![];var _0x643cbb=this;this.#proc['on'](_0x677c25['MUVUo'],function(_0x323d12){const _0x598c3d=_0x23d5a9;_0x643cbb[_0x598c3d(0x85)]=![];});do{const _0x388d11=await this['healthcheck']();if(_0x388d11)return logger[_0x23d5a9(0xb5)](_0x677c25[_0x23d5a9(0xb2)]),!![];await this.#sleep(0x3e8);}while(this['isProcessRunning']);return![];}async[a71_0x327e73(0xc2)](){const _0x59f5b9=a71_0x327e73,_0x14e8c8={'kGXDj':function(_0x2888cb,_0x121f59){return _0x2888cb(_0x121f59);},'JjrMM':function(_0x1e84bf,_0x3c1aa7,_0x1f0e10){return _0x1e84bf(_0x3c1aa7,_0x1f0e10);},'vSiTh':_0x59f5b9(0xb3),'vnJqO':'close'},_0x514ef3=await this.#getBinaryPath();return new Promise((_0x2490ad,_0x357205)=>{const _0x3b3b2c=_0x59f5b9,_0x1bd99c={'OpagY':function(_0x59fb8f,_0x321101){const _0x2472ac=a71_0xbba1;return _0x14e8c8[_0x2472ac(0xbe)](_0x59fb8f,_0x321101);}},_0x512db8=_0x14e8c8[_0x3b3b2c(0xa3)](spawn,_0x514ef3,[_0x14e8c8[_0x3b3b2c(0x8b)]]);_0x512db8['on'](_0x14e8c8[_0x3b3b2c(0xa8)],_0x54b454=>{const _0x418907=_0x3b3b2c;this[_0x418907(0x85)]=![],_0x1bd99c['OpagY'](_0x2490ad,_0x54b454);});});}['isRunning'](){const _0x181931=a71_0x327e73;return this[_0x181931(0x85)];}async['fetchPercyToken'](){const _0x301ba3=a71_0x327e73,_0x2f3699={};_0x2f3699['enzJy']='app',_0x2f3699['kCRGZ']=_0x301ba3(0xb0),_0x2f3699['GgRCF']=_0x301ba3(0x91),_0x2f3699[_0x301ba3(0xb7)]='Percy\x20fetch\x20token\x20success';const _0x205d1e=_0x2f3699,_0x22e89e=this.#config[_0x301ba3(0xab)];try{const _0x2ccc54=this.#isApp?_0x205d1e['enzJy']:_0x205d1e[_0x301ba3(0xc9)],_0x4a9b31=await helper[_0x301ba3(0x9b)](_0x205d1e[_0x301ba3(0xb9)],'api/app_percy/get_project_token?name='+_0x22e89e+_0x301ba3(0xbf)+_0x2ccc54,{},this.#config),_0x24665b=_0x4a9b31[_0x301ba3(0x86)];return logger[_0x301ba3(0xb5)](_0x205d1e[_0x301ba3(0xb7)]),_0x24665b[_0x301ba3(0xcb)];}catch(_0x38a72c){return logger[_0x301ba3(0x98)](_0x301ba3(0x8a)+_0x38a72c),null;}}async[a71_0x327e73(0xad)](){const _0x3a5aed=a71_0x327e73,_0x2682b6={'BViFH':function(_0x1a20db,_0x33c276){return _0x1a20db(_0x33c276);},'lOGmw':function(_0x2e1e7f,_0x1aede8){return _0x2e1e7f+_0x1aede8;},'MSVCV':_0x3a5aed(0xaf),'JqzSO':_0x3a5aed(0x8c)};if(!this.#config[_0x3a5aed(0xbd)])return null;const _0x2d8e1b=path[_0x3a5aed(0xcc)](os[_0x3a5aed(0xc8)](),_0x2682b6[_0x3a5aed(0x93)]),_0x390af9=this.#config['percyOptions'];return!_0x390af9[_0x3a5aed(0x87)]&&(_0x390af9[_0x3a5aed(0x87)]='2'),new Promise((_0x199df8,_0x4cb8d1)=>{const _0x2555c1=_0x3a5aed,_0x5a1a6c={'CCVJd':function(_0x365a4d,_0x3a8274){return _0x2682b6['BViFH'](_0x365a4d,_0x3a8274);},'yxNWz':function(_0x21ce96,_0x464647){return _0x2682b6['lOGmw'](_0x21ce96,_0x464647);},'StHxi':_0x2682b6['MSVCV']};fs[_0x2555c1(0x8e)](_0x2d8e1b,JSON[_0x2555c1(0xb4)](_0x390af9),_0x18cf2e=>{const _0x15d93a=_0x2555c1;_0x18cf2e&&(logger[_0x15d93a(0x98)](_0x15d93a(0x9e)+_0x18cf2e),_0x5a1a6c[_0x15d93a(0x96)](_0x199df8,null)),logger[_0x15d93a(0xb5)](_0x5a1a6c[_0x15d93a(0xa4)](_0x5a1a6c['StHxi'],_0x2d8e1b)),_0x5a1a6c[_0x15d93a(0x96)](_0x199df8,_0x2d8e1b);});});}}module[a71_0x327e73(0x8d)]=Percy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a72_0x5965(_0x4c30bd,_0x5a5dda){const _0x2d1589=a72_0x2d15();return a72_0x5965=function(_0x5965f4,_0x4d891e){_0x5965f4=_0x5965f4-0x10a;let _0x5e0693=_0x2d1589[_0x5965f4];return _0x5e0693;},a72_0x5965(_0x4c30bd,_0x5a5dda);}const a72_0x55378d=a72_0x5965;(function(_0xf45ac5,_0x36624d){const _0x4b4f1c=a72_0x5965,_0x5e4673=_0xf45ac5();while(!![]){try{const _0xd11af0=-parseInt(_0x4b4f1c(0x116))/0x1+parseInt(_0x4b4f1c(0x165))/0x2+parseInt(_0x4b4f1c(0x138))/0x3+parseInt(_0x4b4f1c(0x14a))/0x4*(-parseInt(_0x4b4f1c(0x15a))/0x5)+-parseInt(_0x4b4f1c(0x159))/0x6+parseInt(_0x4b4f1c(0x14e))/0x7+-parseInt(_0x4b4f1c(0x171))/0x8*(-parseInt(_0x4b4f1c(0x16f))/0x9);if(_0xd11af0===_0x36624d)break;else _0x5e4673['push'](_0x5e4673['shift']());}catch(_0x361f55){_0x5e4673['push'](_0x5e4673['shift']());}}}(a72_0x2d15,0xa0228));const {https}=require(a72_0x55378d(0x121)),url=require('url'),yauzl=require(a72_0x55378d(0x15e)),fs=require('fs'),path=require(a72_0x55378d(0x18a)),os=require('os'),{spawn}=require('child_process'),HttpsProxyAgent=require(a72_0x55378d(0x172)),logger=require(a72_0x55378d(0x118))[a72_0x55378d(0x117)];class PercyBinary{#hostOS=process[a72_0x55378d(0x175)];#httpPath=null;#binaryName=a72_0x55378d(0x128);#orderedPaths=[path[a72_0x55378d(0x17e)](this.#homedir(),'.browserstack'),process[a72_0x55378d(0x129)](),os[a72_0x55378d(0x130)]()];constructor(){const _0x57c92e=a72_0x55378d,_0x2a835a={};_0x2a835a[_0x57c92e(0x123)]=_0x57c92e(0x149),_0x2a835a[_0x57c92e(0x16d)]=function(_0xd5b51b,_0x379858){return _0xd5b51b+_0x379858;},_0x2a835a[_0x57c92e(0x127)]=_0x57c92e(0x160),_0x2a835a[_0x57c92e(0x13d)]=_0x57c92e(0x12c),_0x2a835a[_0x57c92e(0x15b)]='percy.exe',_0x2a835a['iEPpR']=function(_0x40f440,_0x844e25){return _0x40f440+_0x844e25;},_0x2a835a[_0x57c92e(0x181)]='/percy-linux.zip';const _0x456aeb=_0x2a835a,_0x445c5a=_0x456aeb[_0x57c92e(0x123)];if(this.#hostOS[_0x57c92e(0x169)](/darwin|mac os/i))this.#httpPath=_0x456aeb[_0x57c92e(0x16d)](_0x445c5a,_0x456aeb[_0x57c92e(0x127)]);else this.#hostOS[_0x57c92e(0x169)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x456aeb[_0x57c92e(0x16d)](_0x445c5a,_0x456aeb['MZVfD']),this.#binaryName=_0x456aeb[_0x57c92e(0x15b)]):this.#httpPath=_0x456aeb[_0x57c92e(0x11d)](_0x445c5a,_0x456aeb[_0x57c92e(0x181)]);}#getAvailableDirs(){const _0x28324e=a72_0x55378d,_0x3b8f7f={};_0x3b8f7f[_0x28324e(0x17f)]=function(_0x478e13,_0x94d764){return _0x478e13<_0x94d764;},_0x3b8f7f[_0x28324e(0x177)]=_0x28324e(0x174);const _0x10f554=_0x3b8f7f;for(var _0x2e7833=0x0;_0x10f554[_0x28324e(0x17f)](_0x2e7833,this.#orderedPaths[_0x28324e(0x180)]);_0x2e7833++){var _0x1c80cc=this.#orderedPaths[_0x2e7833];if(this.#makePath(_0x1c80cc))return _0x1c80cc;}throw new Error(_0x10f554['amYVi']);}#makePath(_0x1374e8){try{return!this.#checkPath(_0x1374e8)&&fs['mkdirSync'](_0x1374e8),!![];}catch{return![];}}#checkPath(_0x452339,_0x2b8a20){const _0x29ea1e=a72_0x55378d,_0x411e34={};_0x411e34[_0x29ea1e(0x146)]=function(_0x827959,_0x4a3f18){return _0x827959|_0x4a3f18;},_0x411e34[_0x29ea1e(0x13a)]=function(_0x3a128a,_0x4e35b0){return _0x3a128a!==_0x4e35b0;},_0x411e34['fqKii']='undefined';const _0xbb8e0a=_0x411e34;_0x2b8a20=_0x2b8a20||_0xbb8e0a['ImaXY'](fs['R_OK'],fs[_0x29ea1e(0x17c)]);try{return fs[_0x29ea1e(0x161)](_0x452339,_0x2b8a20),!![];}catch(_0x42c022){if(_0xbb8e0a[_0x29ea1e(0x13a)](typeof fs['accessSync'],_0xbb8e0a[_0x29ea1e(0x10d)]))return![];try{return fs[_0x29ea1e(0x16c)](_0x452339),!![];}catch(_0x438909){return![];}}}async[a72_0x55378d(0x142)](_0x5395ce){const _0x227f27=a72_0x55378d,_0x3665f2={};_0x3665f2['apTmk']=_0x227f27(0x126);const _0x586cc4=_0x3665f2;var _0x4241d3=this.#getAvailableDirs(),_0x47f006=path['join'](_0x4241d3,this.#binaryName);if(this.#checkPath(_0x47f006,fs['X_OK']))return _0x47f006;const _0xa2f4cd=await this[_0x227f27(0x143)](_0x5395ce,_0x4241d3),_0x28b198=await this[_0x227f27(0x125)](_0xa2f4cd);if(!_0x28b198)return logger['error'](_0x586cc4['apTmk']),await this[_0x227f27(0x143)](_0x5395ce,_0x4241d3);return _0xa2f4cd;}async[a72_0x55378d(0x125)](_0x4049cb){const _0x1b4a5c=a72_0x55378d,_0x235f95={'BLRbo':function(_0x167831,_0x4d3a6d){return _0x167831(_0x4d3a6d);},'dvIjF':function(_0x6c2f54,_0x26706d,_0x53b013){return _0x6c2f54(_0x26706d,_0x53b013);},'KgjxG':_0x1b4a5c(0x12e),'CyTfE':'data','dUbhF':'close'},_0x2a52b6=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x3246bd,_0x55bd24)=>{const _0x5257b9=_0x1b4a5c,_0xb419c2={'UkvGu':function(_0xaba942,_0x533b2d){const _0x57922d=a72_0x5965;return _0x235f95[_0x57922d(0x134)](_0xaba942,_0x533b2d);}},_0x167cb3=_0x235f95[_0x5257b9(0x18f)](spawn,_0x4049cb,[_0x235f95[_0x5257b9(0x16b)]]);_0x167cb3[_0x5257b9(0x11b)]['on'](_0x235f95[_0x5257b9(0x137)],_0x517ff4=>{const _0x352187=_0x5257b9;_0x2a52b6[_0x352187(0x119)](_0x517ff4)&&_0x235f95['BLRbo'](_0x3246bd,!![]);}),_0x167cb3['on'](_0x235f95[_0x5257b9(0x17b)],()=>{const _0x4ebb73=_0x5257b9;_0xb419c2[_0x4ebb73(0x10c)](_0x3246bd,![]);});});}[a72_0x55378d(0x143)](_0x5de6a6,_0x354ec2){const _0xd347ac=a72_0x55378d,_0x185948={'VMWtm':'Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request','LoDlJ':function(_0x5b36da,_0x388ad7){return _0x5b36da(_0x388ad7);},'zDgvg':_0xd347ac(0x13c),'UebBi':_0xd347ac(0x132),'BEDBh':_0xd347ac(0x114),'lrRqH':_0xd347ac(0x166),'ZLxQL':function(_0x48b5e2,_0x2badad){return _0x48b5e2===_0x2badad;},'wFWwG':_0xd347ac(0x14f),'Xrjdk':'error','bDHsO':'close','zpIqE':function(_0x275a9e,_0x6f4ff2){return _0x275a9e+_0x6f4ff2;},'kFNoV':_0xd347ac(0x110),'hZjqq':_0xd347ac(0x18c)};!this.#checkPath(_0x354ec2)&&fs['mkdirSync'](_0x354ec2);const _0x25c25b=this.#binaryName,_0x26d3c3=path[_0xd347ac(0x17e)](_0x354ec2,_0x185948[_0xd347ac(0x136)](_0x25c25b,_0x185948[_0xd347ac(0x156)])),_0x55ebb4=path[_0xd347ac(0x17e)](_0x354ec2,_0x25c25b),_0x517851=fs[_0xd347ac(0x10b)](_0x26d3c3),_0x1e0a12=url[_0xd347ac(0x187)](this.#httpPath);if(_0x5de6a6[_0xd347ac(0x112)]&&_0x5de6a6['proxyPort']){const _0x567d29={};_0x567d29[_0xd347ac(0x124)]=_0x5de6a6[_0xd347ac(0x112)],_0x567d29[_0xd347ac(0x12a)]=_0x5de6a6[_0xd347ac(0x179)],_0x1e0a12['agent']=new HttpsProxyAgent(_0x567d29);}if(_0x5de6a6['useCaCertificate'])try{_0x1e0a12['ca']=fs['readFileSync'](_0x5de6a6[_0xd347ac(0x15d)]);}catch(_0x3ba0a4){logger[_0xd347ac(0x150)](_0x185948['hZjqq'],_0x3ba0a4);}return new Promise((_0x1ff2e7,_0x10d681)=>{const _0x4448ae=_0xd347ac,_0x2c4f8a={'kDhog':_0x185948[_0x4448ae(0x18e)],'hbAXN':function(_0x3b5680,_0x3a6af4){const _0x2cdece=_0x4448ae;return _0x185948[_0x2cdece(0x10a)](_0x3b5680,_0x3a6af4);},'UdNCE':_0x185948[_0x4448ae(0x158)],'kAriQ':_0x185948['BEDBh'],'qzVKE':_0x185948[_0x4448ae(0x154)],'GeXnW':function(_0x51a525,_0xdf4417){return _0x185948['ZLxQL'](_0x51a525,_0xdf4417);},'uXJcl':_0x185948[_0x4448ae(0x190)],'OUzat':_0x185948['Xrjdk'],'ArNMD':_0x185948[_0x4448ae(0x147)]};https['get'](_0x1e0a12,function(_0x1b67b5){const _0x55a1d9=_0x4448ae,_0x177fa5={'hlIud':_0x2c4f8a['kDhog'],'cYmYm':function(_0x281088,_0x1ae03e){return _0x2c4f8a['hbAXN'](_0x281088,_0x1ae03e);},'CGngD':_0x2c4f8a['UdNCE'],'SfmDm':function(_0xa3dd2f,_0x1f61c7){return _0x2c4f8a['hbAXN'](_0xa3dd2f,_0x1f61c7);},'gJEmM':_0x2c4f8a[_0x55a1d9(0x186)],'vGnMD':_0x2c4f8a[_0x55a1d9(0x10e)],'ncjBZ':function(_0x24c390,_0x3d6bbc){const _0x4769fc=_0x55a1d9;return _0x2c4f8a[_0x4769fc(0x15c)](_0x24c390,_0x3d6bbc);},'fbVpF':_0x2c4f8a['uXJcl'],'vbTID':_0x2c4f8a[_0x55a1d9(0x135)]};_0x1b67b5['pipe'](_0x517851),_0x1b67b5['on'](_0x2c4f8a['OUzat'],function(_0x38a8ab){const _0x46d086=_0x55a1d9;logger[_0x46d086(0x150)](_0x177fa5[_0x46d086(0x111)],_0x38a8ab),_0x177fa5[_0x46d086(0x16a)](_0x10d681,_0x38a8ab);}),_0x517851['on'](_0x2c4f8a[_0x55a1d9(0x135)],function(_0x30100e){const _0x2cf325=_0x55a1d9;logger[_0x2cf325(0x150)](_0x177fa5['CGngD'],_0x30100e),_0x177fa5['SfmDm'](_0x10d681,_0x30100e);}),_0x517851['on'](_0x2c4f8a[_0x55a1d9(0x18b)],function(){const _0x4886ad=_0x55a1d9,_0x8b145={'oApWi':function(_0x484895,_0x26d2b8){const _0x781a93=a72_0x5965;return _0x177fa5[_0x781a93(0x145)](_0x484895,_0x26d2b8);},'IVFVA':_0x177fa5[_0x4886ad(0x148)],'QygEM':_0x177fa5[_0x4886ad(0x184)],'JrXWe':function(_0x7171c2,_0x9a938f){const _0x2d3b43=_0x4886ad;return _0x177fa5[_0x2d3b43(0x173)](_0x7171c2,_0x9a938f);},'UNARW':function(_0x2461c9,_0x38c207){return _0x177fa5['SfmDm'](_0x2461c9,_0x38c207);},'kfIse':_0x177fa5[_0x4886ad(0x14b)],'sXqgF':_0x177fa5[_0x4886ad(0x17d)]},_0xdad492={};_0xdad492[_0x4886ad(0x11f)]=!![],yauzl[_0x4886ad(0x140)](_0x26d3c3,_0xdad492,function(_0x3e5c59,_0x8c0739){const _0x4bd2aa=_0x4886ad,_0x396a9b={'feZqh':function(_0x4f3bf6,_0x4f1da2){return _0x8b145['oApWi'](_0x4f3bf6,_0x4f1da2);},'zxMly':_0x8b145[_0x4bd2aa(0x183)],'WXTJR':function(_0x41f64f,_0x3297fa){const _0x1ac28e=_0x4bd2aa;return _0x8b145[_0x1ac28e(0x176)](_0x41f64f,_0x3297fa);},'bpxse':function(_0x4da461,_0x181ba4){const _0x30bc87=_0x4bd2aa;return _0x8b145[_0x30bc87(0x170)](_0x4da461,_0x181ba4);}};_0x3e5c59&&_0x8b145[_0x4bd2aa(0x16e)](_0x10d681,_0x3e5c59),_0x8c0739[_0x4bd2aa(0x12f)](),_0x8c0739['on'](_0x8b145[_0x4bd2aa(0x12b)],_0x4a8946=>{const _0x59a76b=_0x4bd2aa;if(/\/$/[_0x59a76b(0x119)](_0x4a8946['fileName']))_0x8c0739[_0x59a76b(0x12f)]();else{const _0x49d166=fs[_0x59a76b(0x10b)](path[_0x59a76b(0x17e)](_0x354ec2,_0x4a8946['fileName']));_0x8c0739['openReadStream'](_0x4a8946,function(_0x42bf3f,_0x22cd95){const _0x1161ca=_0x59a76b;_0x42bf3f&&_0x396a9b[_0x1161ca(0x157)](_0x10d681,_0x3e5c59),_0x22cd95['on'](_0x396a9b[_0x1161ca(0x188)],function(){_0x49d166['close'](),_0x8c0739['readEntry']();}),_0x22cd95[_0x1161ca(0x15f)](_0x49d166);}),_0x396a9b[_0x59a76b(0x139)](_0x4a8946['fileName'],_0x25c25b)&&_0x8c0739[_0x59a76b(0x152)]();}}),_0x8c0739['on'](_0x8b145[_0x4bd2aa(0x13e)],_0x29538e=>{const _0x56e27e=_0x4bd2aa;_0x396a9b[_0x56e27e(0x151)](_0x10d681,_0x29538e);}),_0x8c0739[_0x4bd2aa(0x182)](_0x8b145[_0x4bd2aa(0x183)],()=>{const _0x3a150f=_0x4bd2aa,_0x1ea6d3={'CerZi':function(_0x5d5ca5,_0x5565f0){const _0x1c5ff5=a72_0x5965;return _0x8b145[_0x1c5ff5(0x170)](_0x5d5ca5,_0x5565f0);}};fs[_0x3a150f(0x18d)](_0x55ebb4,_0x8b145[_0x3a150f(0x189)],function(_0x814085){const _0x4d4ea9=_0x3a150f;_0x814085&&_0x1ea6d3['CerZi'](_0x10d681,_0x814085),_0x1ea6d3[_0x4d4ea9(0x11e)](_0x1ff2e7,_0x55ebb4);}),_0x8c0739[_0x3a150f(0x152)]();});});});})['on'](_0x185948['Xrjdk'],function(_0x8f8462){const _0xe94933=_0x4448ae;logger[_0xe94933(0x150)](_0x185948[_0xe94933(0x120)],_0x8f8462),_0x185948[_0xe94933(0x10a)](_0x10d681,_0x8f8462);});});}#homedir(){const _0x1015b9=a72_0x55378d,_0x50d63a={};_0x50d63a[_0x1015b9(0x14d)]=function(_0x5c844c,_0x5b24ef){return _0x5c844c===_0x5b24ef;},_0x50d63a[_0x1015b9(0x10f)]=_0x1015b9(0x163),_0x50d63a['qHzwF']=_0x1015b9(0x155),_0x50d63a['wofDg']=function(_0x52b7d6,_0x343c19){return _0x52b7d6+_0x343c19;},_0x50d63a[_0x1015b9(0x141)]=_0x1015b9(0x144),_0x50d63a[_0x1015b9(0x17a)]='/Users/',_0x50d63a[_0x1015b9(0x14c)]=function(_0x2802b2,_0x31f1dd){return _0x2802b2===_0x31f1dd;},_0x50d63a[_0x1015b9(0x12d)]=_0x1015b9(0x13b),_0x50d63a['LCved']=_0x1015b9(0x13f),_0x50d63a[_0x1015b9(0x168)]='/home/',_0x50d63a[_0x1015b9(0x164)]=function(_0x2f636c,_0x3b9d2d){return _0x2f636c||_0x3b9d2d;};const _0x3f1a8f=_0x50d63a;if(_0x3f1a8f[_0x1015b9(0x14d)](typeof os['homedir'],_0x3f1a8f[_0x1015b9(0x10f)]))return os[_0x1015b9(0x113)]();const _0x2795e6=process[_0x1015b9(0x185)],_0xb54d84=_0x2795e6[_0x1015b9(0x11c)],_0x1fa520=_0x2795e6[_0x1015b9(0x122)]||_0x2795e6[_0x1015b9(0x131)]||_0x2795e6[_0x1015b9(0x178)]||_0x2795e6['USERNAME'];if(_0x3f1a8f['TscYb'](process[_0x1015b9(0x175)],_0x3f1a8f[_0x1015b9(0x11a)]))return _0x2795e6[_0x1015b9(0x115)]||_0x3f1a8f['wofDg'](_0x2795e6[_0x1015b9(0x162)],_0x2795e6['HOMEPATH'])||_0xb54d84||null;if(_0x3f1a8f[_0x1015b9(0x14d)](process[_0x1015b9(0x175)],_0x3f1a8f['yklnJ']))return _0xb54d84||(_0x1fa520?_0x3f1a8f[_0x1015b9(0x133)](_0x3f1a8f['nIBQW'],_0x1fa520):null);if(_0x3f1a8f[_0x1015b9(0x14c)](process[_0x1015b9(0x175)],_0x3f1a8f[_0x1015b9(0x12d)]))return _0xb54d84||(_0x3f1a8f[_0x1015b9(0x14c)](process['getuid'](),0x0)?_0x3f1a8f[_0x1015b9(0x167)]:_0x1fa520?_0x3f1a8f[_0x1015b9(0x133)](_0x3f1a8f[_0x1015b9(0x168)],_0x1fa520):null);return _0x3f1a8f[_0x1015b9(0x164)](_0xb54d84,null);}}function a72_0x2d15(){const _0x5d3e72=['feZqh','UebBi','5848914remPsd','605fOOUyg','HAMbE','GeXnW','useCaCertificate','yauzl','pipe','/percy-osx.zip','accessSync','HOMEDRIVE','function','MsFgz','1706800alGzqF','end','LCved','iCPlQ','match','cYmYm','KgjxG','statSync','wpgDP','UNARW','63PQhuFu','oApWi','1189624DNhFuM','https-proxy-agent','ncjBZ','Error\x20trying\x20to\x20download\x20percy\x20binary','platform','JrXWe','amYVi','LNAME','proxyPort','nIBQW','dUbhF','W_OK','vbTID','join','ZTdtC','length','ObdIR','once','QygEM','vGnMD','env','kAriQ','parse','zxMly','IVFVA','path','ArNMD','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file','chmod','zDgvg','dvIjF','wFWwG','LoDlJ','createWriteStream','UkvGu','fqKii','qzVKE','iBlJy','.zip','hlIud','proxyHost','homedir','0755','USERPROFILE','323314SPtwKg','winstonLogger','../logger','test','qHzwF','stdout','HOME','iEPpR','CerZi','lazyEntries','VMWtm','follow-redirects','LOGNAME','octGz','host','validateBinary','Corrupt\x20percy\x20binary,\x20retrying','IXmjh','percy','cwd','port','kfIse','/percy-win.zip','hRRId','--version','readEntry','tmpdir','USER','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file','wofDg','BLRbo','OUzat','zpIqE','CyTfE','2462013wyOqzC','WXTJR','mfqkx','linux','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response','MZVfD','sXqgF','/root','open','yklnJ','getBinaryPath','download','darwin','SfmDm','ImaXY','bDHsO','gJEmM','https://github.com/percy/cli/releases/latest/download','27780GzXdty','fbVpF','rszxa','TscYb','555786bcOKfD','entry','error','bpxse','close','exports','lrRqH','win32','kFNoV'];a72_0x2d15=function(){return _0x5d3e72;};return a72_0x2d15();}module[a72_0x55378d(0x153)]=PercyBinary;
|
|
1
|
+
const a72_0x13584b=a72_0xe34f;(function(_0x224851,_0x650bd9){const _0x3e2a9b=a72_0xe34f,_0x1feb49=_0x224851();while(!![]){try{const _0x2ae1ce=-parseInt(_0x3e2a9b(0x20a))/0x1*(parseInt(_0x3e2a9b(0x208))/0x2)+-parseInt(_0x3e2a9b(0x1fa))/0x3*(-parseInt(_0x3e2a9b(0x201))/0x4)+parseInt(_0x3e2a9b(0x1cb))/0x5*(-parseInt(_0x3e2a9b(0x1a8))/0x6)+parseInt(_0x3e2a9b(0x1a6))/0x7*(-parseInt(_0x3e2a9b(0x1ce))/0x8)+-parseInt(_0x3e2a9b(0x19f))/0x9*(-parseInt(_0x3e2a9b(0x1b2))/0xa)+parseInt(_0x3e2a9b(0x212))/0xb+parseInt(_0x3e2a9b(0x19a))/0xc*(parseInt(_0x3e2a9b(0x1d1))/0xd);if(_0x2ae1ce===_0x650bd9)break;else _0x1feb49['push'](_0x1feb49['shift']());}catch(_0x1a6421){_0x1feb49['push'](_0x1feb49['shift']());}}}(a72_0x2390,0xe1be1));const {https}=require(a72_0x13584b(0x207)),url=require(a72_0x13584b(0x1d3)),yauzl=require('yauzl'),fs=require('fs'),path=require(a72_0x13584b(0x19b)),os=require('os'),{spawn}=require(a72_0x13584b(0x1ea)),HttpsProxyAgent=require('https-proxy-agent'),logger=require('../logger')[a72_0x13584b(0x1e5)];function a72_0x2390(){const _0x56c585=['LKiSe','platform','child_process','percy','tbhsr','error','BedoB','XGqzo','YcmIx','LOGNAME','XBYDk','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response','QPOUk','env','KyOVQ','undefined','QQhVU','vAkUq','12AoemEx','dIJuM','entry','parse','btOqh','homedir','/Users/','897592NPcQlF','IPFji','dBvsi','JYwIT','validateBinary','open','follow-redirects','177326WSCpwd','JNTFR','9mvzziF','JNKHg','accessSync','proxyPort','.zip','getBinaryPath','bwbJC','Ofdys','19765185PxCiJI','ftwWN','kToLs','xEBee','createWriteStream','readEntry','jtxpQ','ZkWEh','twAwk','RFzlw','.browserstack','cwd','60QuWAyg','path','function','chmod','OpcCa','2836467hvOosj','linux','zTfDm','lclgq','kcnqv','readFileSync','getuid','9568993vqMZDz','oeaxd','517236MuueER','pipe','snbVw','test','apFJE','bhxjJ','end','download','once','/percy-linux.zip','10vddYGh','Fgxqg','--version','YxIcq','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file','win32','R_OK','Uffxc','AGjbh','ZbqfL','https://github.com/percy/cli/releases/latest/download','Donxn','vXfAv','TOYjC','match','useCaCertificate','XOcEk','mkdirSync','proxyHost','USER','sBYmq','W_OK','oaNqG','lazyEntries','LnvtA','90HpZljh','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file','get','8uGVQPQ','hVSxB','ocmjv','4242485LUfISy','length','url','/percy-osx.zip','close','percy.exe','Ilbez','join','LdxAw','0755','nzcMg','oxpDh','LNAME','wZUwu','tmpdir','ZLMSO','DRdjo','fileName','iDNjv','DyiWH','winstonLogger','fMhAs','qEcnW'];a72_0x2390=function(){return _0x56c585;};return a72_0x2390();}function a72_0xe34f(_0xa96432,_0x53b404){const _0x2390ae=a72_0x2390();return a72_0xe34f=function(_0xe34fd4,_0x1a977a){_0xe34fd4=_0xe34fd4-0x194;let _0xf41d48=_0x2390ae[_0xe34fd4];return _0xf41d48;},a72_0xe34f(_0xa96432,_0x53b404);}class PercyBinary{#hostOS=process[a72_0x13584b(0x1e9)];#httpPath=null;#binaryName=a72_0x13584b(0x1eb);#orderedPaths=[path[a72_0x13584b(0x1d8)](this.#homedir(),a72_0x13584b(0x198)),process[a72_0x13584b(0x199)](),os[a72_0x13584b(0x1df)]()];constructor(){const _0x180b1f=a72_0x13584b,_0x1e54b7={};_0x1e54b7[_0x180b1f(0x196)]=_0x180b1f(0x1bc),_0x1e54b7['oaNqG']=function(_0x262608,_0x91f321){return _0x262608+_0x91f321;},_0x1e54b7['ZbqfL']=_0x180b1f(0x1d4),_0x1e54b7[_0x180b1f(0x195)]=function(_0x33a6c0,_0x421c8f){return _0x33a6c0+_0x421c8f;},_0x1e54b7['vBLrV']='/percy-win.zip',_0x1e54b7[_0x180b1f(0x1bd)]=_0x180b1f(0x1d6),_0x1e54b7['zTfDm']=function(_0x5ca3b0,_0x12ae45){return _0x5ca3b0+_0x12ae45;},_0x1e54b7[_0x180b1f(0x1cf)]=_0x180b1f(0x1b1);const _0x3726e1=_0x1e54b7,_0x453d29=_0x3726e1[_0x180b1f(0x196)];if(this.#hostOS[_0x180b1f(0x1c0)](/darwin|mac os/i))this.#httpPath=_0x3726e1[_0x180b1f(0x1c8)](_0x453d29,_0x3726e1[_0x180b1f(0x1bb)]);else this.#hostOS[_0x180b1f(0x1c0)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x3726e1[_0x180b1f(0x195)](_0x453d29,_0x3726e1['vBLrV']),this.#binaryName=_0x3726e1[_0x180b1f(0x1bd)]):this.#httpPath=_0x3726e1[_0x180b1f(0x1a1)](_0x453d29,_0x3726e1[_0x180b1f(0x1cf)]);}#getAvailableDirs(){const _0x242cbc=a72_0x13584b,_0x1ee44f={};_0x1ee44f[_0x242cbc(0x1e1)]=function(_0x1d24a9,_0x6aeb66){return _0x1d24a9<_0x6aeb66;},_0x1ee44f[_0x242cbc(0x1e6)]='Error\x20trying\x20to\x20download\x20percy\x20binary';const _0x1ca70a=_0x1ee44f;for(var _0x18cc79=0x0;_0x1ca70a[_0x242cbc(0x1e1)](_0x18cc79,this.#orderedPaths[_0x242cbc(0x1d2)]);_0x18cc79++){var _0x2caba3=this.#orderedPaths[_0x18cc79];if(this.#makePath(_0x2caba3))return _0x2caba3;}throw new Error(_0x1ca70a[_0x242cbc(0x1e6)]);}#makePath(_0xedddeb){try{return!this.#checkPath(_0xedddeb)&&fs['mkdirSync'](_0xedddeb),!![];}catch{return![];}}#checkPath(_0x57597d,_0x5b7a37){const _0x3a4b5a=a72_0x13584b,_0x478c0a={};_0x478c0a[_0x3a4b5a(0x19e)]=function(_0x2fca49,_0x12cd76){return _0x2fca49|_0x12cd76;},_0x478c0a[_0x3a4b5a(0x20b)]=function(_0x5c45aa,_0x235040){return _0x5c45aa!==_0x235040;},_0x478c0a['ftwWN']=_0x3a4b5a(0x1f7);const _0x485073=_0x478c0a;_0x5b7a37=_0x5b7a37||_0x485073[_0x3a4b5a(0x19e)](fs[_0x3a4b5a(0x1b8)],fs[_0x3a4b5a(0x1c7)]);try{return fs[_0x3a4b5a(0x20c)](_0x57597d,_0x5b7a37),!![];}catch(_0x207871){if(_0x485073[_0x3a4b5a(0x20b)](typeof fs[_0x3a4b5a(0x20c)],_0x485073[_0x3a4b5a(0x213)]))return![];try{return fs['statSync'](_0x57597d),!![];}catch(_0x1c8d00){return![];}}}async[a72_0x13584b(0x20f)](_0x44385e){const _0x1fdb5c=a72_0x13584b,_0x4fa8a7={};_0x4fa8a7[_0x1fdb5c(0x1dc)]='Corrupt\x20percy\x20binary,\x20retrying';const _0x401375=_0x4fa8a7;var _0x3d8f92=this.#getAvailableDirs(),_0x7f8549=path[_0x1fdb5c(0x1d8)](_0x3d8f92,this.#binaryName);if(this.#checkPath(_0x7f8549,fs['X_OK']))return _0x7f8549;const _0xc8efcc=await this['download'](_0x44385e,_0x3d8f92),_0x53028d=await this[_0x1fdb5c(0x205)](_0xc8efcc);if(!_0x53028d)return logger[_0x1fdb5c(0x1ed)](_0x401375[_0x1fdb5c(0x1dc)]),await this[_0x1fdb5c(0x1af)](_0x44385e,_0x3d8f92);return _0xc8efcc;}async[a72_0x13584b(0x205)](_0x2b89b1){const _0x1a47bd=a72_0x13584b,_0x110ee1={'LKiSe':function(_0x42ddbe,_0x2aa75f){return _0x42ddbe(_0x2aa75f);},'YxIcq':function(_0x7c0da8,_0x3c3f31,_0x25b864){return _0x7c0da8(_0x3c3f31,_0x25b864);},'QKzDs':_0x1a47bd(0x1b4),'lclgq':'data','UENsP':_0x1a47bd(0x1d5)},_0x43c45c=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x534459,_0x47634c)=>{const _0x359005=_0x1a47bd,_0x43c04a={'wZUwu':function(_0x421950,_0xb8949d){const _0x1b17c2=a72_0xe34f;return _0x110ee1[_0x1b17c2(0x1e8)](_0x421950,_0xb8949d);}},_0x220334=_0x110ee1[_0x359005(0x1b5)](spawn,_0x2b89b1,[_0x110ee1['QKzDs']]);_0x220334['stdout']['on'](_0x110ee1[_0x359005(0x1a2)],_0x199804=>{const _0x8911c=_0x359005;_0x43c45c[_0x8911c(0x1ab)](_0x199804)&&_0x110ee1[_0x8911c(0x1e8)](_0x534459,!![]);}),_0x220334['on'](_0x110ee1['UENsP'],()=>{const _0x568187=_0x359005;_0x43c04a[_0x568187(0x1de)](_0x534459,![]);});});}[a72_0x13584b(0x1af)](_0x4e6745,_0x2ee388){const _0x4382ca=a72_0x13584b,_0x58aa31={'vXfAv':_0x4382ca(0x1f3),'usidR':function(_0x33e5e8,_0x32763d){return _0x33e5e8(_0x32763d);},'ASopa':_0x4382ca(0x1b6),'RFzlw':_0x4382ca(0x1ed),'Fgxqg':'close','ZLMSO':function(_0x2cfa4a,_0xb1327d){return _0x2cfa4a(_0xb1327d);},'XOcEk':_0x4382ca(0x1ae),'vAkUq':function(_0x2cd7c4,_0x919476){return _0x2cd7c4===_0x919476;},'QQhVU':_0x4382ca(0x1da),'VxHlQ':_0x4382ca(0x1fc),'oeaxd':'Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request','CVLWY':function(_0x1acc4c,_0xcb1872){return _0x1acc4c+_0xcb1872;},'Ofdys':_0x4382ca(0x20e),'apFJE':_0x4382ca(0x1cc)};!this.#checkPath(_0x2ee388)&&fs[_0x4382ca(0x1c3)](_0x2ee388);const _0x3e9e6f=this.#binaryName,_0x67bb37=path['join'](_0x2ee388,_0x58aa31['CVLWY'](_0x3e9e6f,_0x58aa31[_0x4382ca(0x211)])),_0x5f5529=path['join'](_0x2ee388,_0x3e9e6f),_0x142769=fs[_0x4382ca(0x216)](_0x67bb37),_0x322eee=url[_0x4382ca(0x1fd)](this.#httpPath);if(_0x4e6745[_0x4382ca(0x1c4)]&&_0x4e6745[_0x4382ca(0x20d)]){const _0xde92c4={};_0xde92c4['host']=_0x4e6745[_0x4382ca(0x1c4)],_0xde92c4['port']=_0x4e6745['proxyPort'],_0x322eee['agent']=new HttpsProxyAgent(_0xde92c4);}if(_0x4e6745[_0x4382ca(0x1c1)])try{_0x322eee['ca']=fs[_0x4382ca(0x1a4)](_0x4e6745[_0x4382ca(0x1c1)]);}catch(_0x1f8a20){logger[_0x4382ca(0x1ed)](_0x58aa31[_0x4382ca(0x1ac)],_0x1f8a20);}return new Promise((_0x22d819,_0x50403a)=>{const _0x1e6280=_0x4382ca,_0x33c00e={'TOYjC':function(_0x27bccb,_0x2e3be8){return _0x58aa31['ZLMSO'](_0x27bccb,_0x2e3be8);},'JNTFR':_0x58aa31[_0x1e6280(0x1c2)],'NPtKE':function(_0x96f9aa,_0x2bfb23){const _0xd9c2f7=_0x1e6280;return _0x58aa31[_0xd9c2f7(0x1f9)](_0x96f9aa,_0x2bfb23);},'AZfnm':_0x58aa31[_0x1e6280(0x1f8)],'BedoB':_0x58aa31['VxHlQ'],'IPFji':_0x58aa31[_0x1e6280(0x197)],'IToju':_0x58aa31[_0x1e6280(0x1a7)],'XBYDk':function(_0x268edd,_0x5de4b2){const _0x1863c5=_0x1e6280;return _0x58aa31[_0x1863c5(0x1e0)](_0x268edd,_0x5de4b2);}};https[_0x1e6280(0x1cd)](_0x322eee,function(_0x253ac8){const _0x5afd1b=_0x1e6280,_0x5f38f4={'btOqh':_0x58aa31[_0x5afd1b(0x1be)],'bwbJC':function(_0x4e4a01,_0x444292){return _0x58aa31['usidR'](_0x4e4a01,_0x444292);},'kJVhI':_0x58aa31['ASopa']};_0x253ac8[_0x5afd1b(0x1a9)](_0x142769),_0x253ac8['on'](_0x58aa31[_0x5afd1b(0x197)],function(_0x2b2021){const _0x5817f4=_0x5afd1b;logger[_0x5817f4(0x1ed)](_0x5f38f4[_0x5817f4(0x1fe)],_0x2b2021),_0x5f38f4[_0x5817f4(0x210)](_0x50403a,_0x2b2021);}),_0x142769['on'](_0x58aa31[_0x5afd1b(0x197)],function(_0x5a50c4){const _0x1bf5a0=_0x5afd1b;logger[_0x1bf5a0(0x1ed)](_0x5f38f4['kJVhI'],_0x5a50c4),_0x5f38f4[_0x1bf5a0(0x210)](_0x50403a,_0x5a50c4);}),_0x142769['on'](_0x58aa31[_0x5afd1b(0x1b3)],function(){const _0x5deed7=_0x5afd1b,_0x184e00={'qEcnW':function(_0x5b4d6d,_0x517f9e){return _0x33c00e['TOYjC'](_0x5b4d6d,_0x517f9e);},'snbVw':_0x33c00e[_0x5deed7(0x209)],'AGjbh':function(_0x5c7bb3,_0x409140){return _0x33c00e['NPtKE'](_0x5c7bb3,_0x409140);},'Uffxc':_0x33c00e['AZfnm'],'kToLs':function(_0xdda791,_0x751f77){const _0x590cda=_0x5deed7;return _0x33c00e[_0x590cda(0x1bf)](_0xdda791,_0x751f77);},'tbhsr':_0x33c00e[_0x5deed7(0x1ee)],'bhxjJ':_0x33c00e[_0x5deed7(0x202)]},_0x5b7b97={};_0x5b7b97[_0x5deed7(0x1c9)]=!![],yauzl[_0x5deed7(0x206)](_0x67bb37,_0x5b7b97,function(_0x3840bd,_0x45ce6d){const _0x40d5e6=_0x5deed7,_0x43dcc8={'JYwIT':function(_0x6be98d,_0x16d11c){const _0x2f1c09=a72_0xe34f;return _0x184e00[_0x2f1c09(0x1e7)](_0x6be98d,_0x16d11c);},'QPOUk':_0x184e00[_0x40d5e6(0x1aa)],'dIJuM':function(_0x353d13,_0x332410){const _0x1ec7e6=_0x40d5e6;return _0x184e00[_0x1ec7e6(0x1ba)](_0x353d13,_0x332410);},'nzAPj':function(_0x787395,_0x2dc16b){const _0x3a4976=_0x40d5e6;return _0x184e00[_0x3a4976(0x1e7)](_0x787395,_0x2dc16b);},'xEBee':_0x184e00[_0x40d5e6(0x1b9)]};_0x3840bd&&_0x184e00[_0x40d5e6(0x214)](_0x50403a,_0x3840bd),_0x45ce6d[_0x40d5e6(0x217)](),_0x45ce6d['on'](_0x184e00[_0x40d5e6(0x1ec)],_0x14be13=>{const _0x21f2e1=_0x40d5e6,_0x1cfa50={'sBYmq':function(_0x2f2150,_0x258f03){const _0x3933bf=a72_0xe34f;return _0x43dcc8[_0x3933bf(0x204)](_0x2f2150,_0x258f03);},'optQh':_0x43dcc8[_0x21f2e1(0x1f4)]};if(/\/$/['test'](_0x14be13[_0x21f2e1(0x1e2)]))_0x45ce6d['readEntry']();else{const _0x456f7b=fs['createWriteStream'](path[_0x21f2e1(0x1d8)](_0x2ee388,_0x14be13['fileName']));_0x45ce6d['openReadStream'](_0x14be13,function(_0x5b2d93,_0x5f1809){const _0x537a5c=_0x21f2e1;_0x5b2d93&&_0x1cfa50[_0x537a5c(0x1c6)](_0x50403a,_0x3840bd),_0x5f1809['on'](_0x1cfa50['optQh'],function(){const _0x59b6fd=_0x537a5c;_0x456f7b[_0x59b6fd(0x1d5)](),_0x45ce6d[_0x59b6fd(0x217)]();}),_0x5f1809[_0x537a5c(0x1a9)](_0x456f7b);}),_0x43dcc8[_0x21f2e1(0x1fb)](_0x14be13[_0x21f2e1(0x1e2)],_0x3e9e6f)&&_0x45ce6d[_0x21f2e1(0x1d5)]();}}),_0x45ce6d['on'](_0x184e00[_0x40d5e6(0x1ad)],_0x3667d1=>{const _0x5233cc=_0x40d5e6;_0x43dcc8[_0x5233cc(0x204)](_0x50403a,_0x3667d1);}),_0x45ce6d[_0x40d5e6(0x1b0)](_0x184e00[_0x40d5e6(0x1aa)],()=>{const _0xcc4979=_0x40d5e6;fs[_0xcc4979(0x19d)](_0x5f5529,_0x43dcc8[_0xcc4979(0x215)],function(_0x31912c){const _0x5dccc0=_0xcc4979;_0x31912c&&_0x43dcc8['nzAPj'](_0x50403a,_0x31912c),_0x43dcc8[_0x5dccc0(0x204)](_0x22d819,_0x5f5529);}),_0x45ce6d['close']();});});});})['on'](_0x58aa31[_0x1e6280(0x197)],function(_0x25cd62){const _0x1563d9=_0x1e6280;logger['error'](_0x33c00e['IToju'],_0x25cd62),_0x33c00e[_0x1563d9(0x1f2)](_0x50403a,_0x25cd62);});});}#homedir(){const _0xc1f42=a72_0x13584b,_0xb34f88={};_0xb34f88[_0xc1f42(0x1f6)]=function(_0x5e2805,_0x4986b3){return _0x5e2805===_0x4986b3;},_0xb34f88['dBvsi']=_0xc1f42(0x19c),_0xb34f88['XGqzo']=_0xc1f42(0x1b7),_0xb34f88['PxobL']=function(_0x114290,_0x5be52c){return _0x114290+_0x5be52c;},_0xb34f88['nzcMg']=function(_0x52d711,_0x2fab4f){return _0x52d711===_0x2fab4f;},_0xb34f88[_0xc1f42(0x1d7)]='darwin',_0xb34f88[_0xc1f42(0x1e3)]=function(_0xc92968,_0x55aaff){return _0xc92968+_0x55aaff;},_0xb34f88[_0xc1f42(0x1d9)]=_0xc1f42(0x200),_0xb34f88['YcmIx']=function(_0x1867a8,_0x1b2e1a){return _0x1867a8===_0x1b2e1a;},_0xb34f88['LnvtA']=_0xc1f42(0x1a0),_0xb34f88[_0xc1f42(0x1e4)]='/root',_0xb34f88[_0xc1f42(0x194)]=function(_0x5afdef,_0x4fb32f){return _0x5afdef+_0x4fb32f;},_0xb34f88[_0xc1f42(0x1a3)]='/home/',_0xb34f88[_0xc1f42(0x1d0)]=function(_0x1550c0,_0x49cc26){return _0x1550c0||_0x49cc26;};const _0x48fea8=_0xb34f88;if(_0x48fea8['KyOVQ'](typeof os[_0xc1f42(0x1ff)],_0x48fea8[_0xc1f42(0x203)]))return os[_0xc1f42(0x1ff)]();const _0x665fdb=process[_0xc1f42(0x1f5)],_0x2ebbd3=_0x665fdb['HOME'],_0x15f5f6=_0x665fdb[_0xc1f42(0x1f1)]||_0x665fdb[_0xc1f42(0x1c5)]||_0x665fdb[_0xc1f42(0x1dd)]||_0x665fdb['USERNAME'];if(_0x48fea8[_0xc1f42(0x1f6)](process[_0xc1f42(0x1e9)],_0x48fea8[_0xc1f42(0x1ef)]))return _0x665fdb['USERPROFILE']||_0x48fea8['PxobL'](_0x665fdb['HOMEDRIVE'],_0x665fdb['HOMEPATH'])||_0x2ebbd3||null;if(_0x48fea8[_0xc1f42(0x1db)](process[_0xc1f42(0x1e9)],_0x48fea8['Ilbez']))return _0x2ebbd3||(_0x15f5f6?_0x48fea8[_0xc1f42(0x1e3)](_0x48fea8[_0xc1f42(0x1d9)],_0x15f5f6):null);if(_0x48fea8[_0xc1f42(0x1f0)](process[_0xc1f42(0x1e9)],_0x48fea8[_0xc1f42(0x1ca)]))return _0x2ebbd3||(_0x48fea8['nzcMg'](process[_0xc1f42(0x1a5)](),0x0)?_0x48fea8[_0xc1f42(0x1e4)]:_0x15f5f6?_0x48fea8[_0xc1f42(0x194)](_0x48fea8[_0xc1f42(0x1a3)],_0x15f5f6):null);return _0x48fea8[_0xc1f42(0x1d0)](_0x2ebbd3,null);}}module['exports']=PercyBinary;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a73_0x47c4(_0x59ae2a,_0x40c702){var _0x349b23=a73_0x349b();return a73_0x47c4=function(_0x47c46d,_0x3adc5f){_0x47c46d=_0x47c46d-0x1a2;var _0xe58531=_0x349b23[_0x47c46d];return _0xe58531;},a73_0x47c4(_0x59ae2a,_0x40c702);}function a73_0x349b(){var _0x289d90=['1431180GnFXWw','9326XZShMt','9KCRkNN','getName','6419890aCAVrM','380684DpoLhy','213976SyfhsT','2416730loofvx','1JubndV','exports','get','77oihOuc','137568dfqBcu'];a73_0x349b=function(){return _0x289d90;};return a73_0x349b();}var a73_0x594435=a73_0x47c4;(function(_0x1cd887,_0x5d73fa){var _0x11ae42=a73_0x47c4,_0x541076=_0x1cd887();while(!![]){try{var _0x451f91=-parseInt(_0x11ae42(0x1ab))/0x1*(-parseInt(_0x11ae42(0x1a4))/0x2)+parseInt(_0x11ae42(0x1a2))/0x3+parseInt(_0x11ae42(0x1a8))/0x4+-parseInt(_0x11ae42(0x1aa))/0x5+-parseInt(_0x11ae42(0x1a3))/0x6+-parseInt(_0x11ae42(0x1ae))/0x7*(-parseInt(_0x11ae42(0x1a9))/0x8)+-parseInt(_0x11ae42(0x1a5))/0x9*(-parseInt(_0x11ae42(0x1a7))/0xa);if(_0x451f91===_0x5d73fa)break;else _0x541076['push'](_0x541076['shift']());}catch(_0x42cf27){_0x541076['push'](_0x541076['shift']());}}}(a73_0x349b,0x57e54));class PercyCaptureMap{#map={};['increment'](_0x28d2ed,_0x3f3a67){!this.#map[_0x28d2ed]&&(this.#map[_0x28d2ed]={}),!this.#map[_0x28d2ed][_0x3f3a67]&&(this.#map[_0x28d2ed][_0x3f3a67]=0x0),this.#map[_0x28d2ed][_0x3f3a67]++;}[a73_0x594435(0x1a6)](_0x1ab27c,_0x5f52b2){var _0x27c07a=a73_0x594435;return _0x1ab27c+'-'+_0x5f52b2+'-'+this[_0x27c07a(0x1ad)](_0x1ab27c,_0x5f52b2);}[a73_0x594435(0x1ad)](_0x3139e8,_0x3f3025){if(!this.#map[_0x3139e8])return 0x0;if(!this.#map[_0x3139e8][_0x3f3025])return 0x0;return this.#map[_0x3139e8][_0x3f3025];}}module[a73_0x594435(0x1ac)]=PercyCaptureMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var a74_0xbfe2ec=a74_0x9d07;function a74_0x9d07(_0x12a333,_0x3ff67e){var _0xef1474=a74_0xef14();return a74_0x9d07=function(_0x9d076b,_0x45ee10){_0x9d076b=_0x9d076b-0xdc;var _0x578dd1=_0xef1474[_0x9d076b];return _0x578dd1;},a74_0x9d07(_0x12a333,_0x3ff67e);}(function(_0x1f112c,_0x3be430){var _0x160d9f=a74_0x9d07,_0x225724=_0x1f112c();while(!![]){try{var _0x27623e=-parseInt(_0x160d9f(0xe3))/0x1+-parseInt(_0x160d9f(0xdf))/0x2+-parseInt(_0x160d9f(0xe2))/0x3+-parseInt(_0x160d9f(0xec))/0x4+-parseInt(_0x160d9f(0xe6))/0x5*(parseInt(_0x160d9f(0xe8))/0x6)+-parseInt(_0x160d9f(0xe9))/0x7+-parseInt(_0x160d9f(0xeb))/0x8*(-parseInt(_0x160d9f(0xe0))/0x9);if(_0x27623e===_0x3be430)break;else _0x225724['push'](_0x225724['shift']());}catch(_0x4a7357){_0x225724['push'](_0x225724['shift']());}}}(a74_0xef14,0xad395));var a74_0xe6c3e2={};a74_0xe6c3e2[a74_0xbfe2ec(0xe4)]=['takeScreenshot'],a74_0xe6c3e2[a74_0xbfe2ec(0xdc)]=[a74_0xbfe2ec(0xea),a74_0xbfe2ec(0xde)];var a74_0x11d914={};function a74_0xef14(){var _0x2719f0=['element','takeScreenshot','sendKeys','2627504HNymYp','51460641khsnBG','manual','3980292scUcrR','724758hPlBRp','driver','screenshot','85toudKM','exports','219642hSJEar','5531260WcdXFY','click','8gwcTst','922204iGPYXn'];a74_0xef14=function(){return _0x2719f0;};return a74_0xef14();}a74_0x11d914[a74_0xbfe2ec(0xe4)]=[a74_0xbfe2ec(0xdd)];var a74_0x345154={};a74_0x345154[a74_0xbfe2ec(0xdc)]=[a74_0xbfe2ec(0xea)];var a74_0xb7517f={};a74_0xb7517f['auto']=a74_0xe6c3e2,a74_0xb7517f[a74_0xbfe2ec(0xe5)]=a74_0x11d914,a74_0xb7517f[a74_0xbfe2ec(0xea)]=a74_0x345154,a74_0xb7517f['testcase']={},a74_0xb7517f[a74_0xbfe2ec(0xe1)]={},module[a74_0xbfe2ec(0xe7)]=a74_0xb7517f;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a75_0x132b(_0x3ba62b,_0x3377b9){const _0x154954=a75_0x1549();return a75_0x132b=function(_0x132bdf,_0x403840){_0x132bdf=_0x132bdf-0x136;let _0x4cc767=_0x154954[_0x132bdf];return _0x4cc767;},a75_0x132b(_0x3ba62b,_0x3377b9);}const a75_0x5cff6a=a75_0x132b;function a75_0x1549(){const _0x10395c=['../../helpers/testhub/utils','imYEr','NqbmC','screenshot','1488138gxiyke','LUSTI','760720fjMMll','length','name','CBkmn','screenshotApp','mPixi','browserstackPercyBestPlatform','@percy/appium-app','KKEkX','thTestCaseExecutionId','apply','@percy/selenium-webdriver','measure','622343MoAMJs','MczJF','percy:snapshot','56rPfMTs','YBLrj','408dWayDi','testCase','uuid','../performance-tester','../logger','898074uWZZmt','TdCqo','winstonLogger','error','512sBsIOv','browserstackPlatformIndex','platformIndex','6498rRCLdm','5100Webtmr','356192okNrTV'];a75_0x1549=function(){return _0x10395c;};return a75_0x1549();}(function(_0x2c1acf,_0x3b4479){const _0x3e3e7c=a75_0x132b,_0x4a44ef=_0x2c1acf();while(!![]){try{const _0x55cc2a=parseInt(_0x3e3e7c(0x152))/0x1+parseInt(_0x3e3e7c(0x15c))/0x2+parseInt(_0x3e3e7c(0x157))/0x3*(-parseInt(_0x3e3e7c(0x139))/0x4)+-parseInt(_0x3e3e7c(0x145))/0x5+parseInt(_0x3e3e7c(0x143))/0x6+-parseInt(_0x3e3e7c(0x155))/0x7*(parseInt(_0x3e3e7c(0x13e))/0x8)+-parseInt(_0x3e3e7c(0x13c))/0x9*(parseInt(_0x3e3e7c(0x13d))/0xa);if(_0x55cc2a===_0x3b4479)break;else _0x4a44ef['push'](_0x4a44ef['shift']());}catch(_0x29e4ff){_0x4a44ef['push'](_0x4a44ef['shift']());}}}(a75_0x1549,0x67ddf));const tryRequire=function(_0x459779,_0x1c4499){const _0x3034d2=a75_0x132b,_0x4b90c4={'NqbmC':function(_0x1d827c,_0x2cf0f3){return _0x1d827c(_0x2cf0f3);}};try{return _0x4b90c4[_0x3034d2(0x141)](require,_0x459779);}catch{return _0x1c4499;}},percySnapshot=tryRequire(a75_0x5cff6a(0x150),null),{percyScreenshot}=tryRequire(a75_0x5cff6a(0x150),{}),percyAppScreenshot=require(a75_0x5cff6a(0x14c)),{getCurrentTestData}=require(a75_0x5cff6a(0x13f)),PerformanceTester=require(a75_0x5cff6a(0x15a)),logger=require(a75_0x5cff6a(0x15b))[a75_0x5cff6a(0x137)];percySnapshot&&(exports['snapshot']=async function(){const _0x31e393=a75_0x5cff6a,_0x57a73d={'fVStB':function(_0x32594e,_0x188b7b){return _0x32594e!==_0x188b7b;},'imYEr':function(_0x43b440,_0x50bdbc){return _0x43b440>=_0x50bdbc;},'YBLrj':function(_0x246b16){return _0x246b16();},'mPixi':_0x31e393(0x154)};if(global[_0x31e393(0x13a)]&&_0x57a73d['fVStB'](global[_0x31e393(0x13a)],global[_0x31e393(0x14b)]))return;const _0x26f1a3=_0x57a73d[_0x31e393(0x140)](arguments[_0x31e393(0x146)],0x2)?arguments[0x1]:'',_0x3fe01a=_0x57a73d[_0x31e393(0x156)](getCurrentTestData),_0x1f18f1={};return _0x1f18f1[_0x31e393(0x147)]=_0x26f1a3,_0x1f18f1[_0x31e393(0x158)]=_0x3fe01a[_0x31e393(0x147)]||'',_0x1f18f1[_0x31e393(0x14e)]=_0x3fe01a[_0x31e393(0x159)]||'',_0x1f18f1['platformIndex']=global[_0x31e393(0x13a)],await PerformanceTester[_0x31e393(0x151)](_0x57a73d[_0x31e393(0x14a)],()=>percySnapshot[_0x31e393(0x14f)](null,arguments),_0x1f18f1);});percyScreenshot?exports['screenshot']=async function(){const _0x38ab0c=a75_0x5cff6a,_0x5d9c09={'FvFcL':function(_0x32b280,_0x356fec){return _0x32b280>=_0x356fec;},'MczJF':function(_0x3d61b7){return _0x3d61b7();},'TdCqo':'percy:screenshot'},_0x65cd8a=_0x5d9c09['FvFcL'](arguments[_0x38ab0c(0x146)],0x2)?arguments[0x1]:'',_0x4c1c4a=_0x5d9c09[_0x38ab0c(0x153)](getCurrentTestData),_0xf1cb6a={};return _0xf1cb6a[_0x38ab0c(0x147)]=_0x65cd8a,_0xf1cb6a[_0x38ab0c(0x158)]=_0x4c1c4a[_0x38ab0c(0x147)]||'',_0xf1cb6a[_0x38ab0c(0x14e)]=_0x4c1c4a['uuid']||'',_0xf1cb6a[_0x38ab0c(0x13b)]=global[_0x38ab0c(0x13a)],await PerformanceTester['measure'](_0x5d9c09[_0x38ab0c(0x136)],()=>percyScreenshot['apply'](null,arguments),_0xf1cb6a);}:exports[a75_0x5cff6a(0x142)]=()=>{const _0x3fbbd2=a75_0x5cff6a,_0xe3327c={};_0xe3327c[_0x3fbbd2(0x148)]='Unsupported\x20driver\x20for\x20percy';const _0x4cf763=_0xe3327c;logger[_0x3fbbd2(0x138)](_0x4cf763[_0x3fbbd2(0x148)]);};exports[a75_0x5cff6a(0x149)]=async function(){const _0x18f3dd=a75_0x5cff6a,_0x3f22fc={'KKEkX':function(_0x654d34,_0x4ec0ae){return _0x654d34>=_0x4ec0ae;},'LUSTI':function(_0x5abf91){return _0x5abf91();},'NqVbo':'percy:screenshot-app'},_0x3df3a2=_0x3f22fc[_0x18f3dd(0x14d)](arguments[_0x18f3dd(0x146)],0x2)?arguments[0x1]:'',_0x5c878a=_0x3f22fc[_0x18f3dd(0x144)](getCurrentTestData),_0xbc069={};return _0xbc069[_0x18f3dd(0x147)]=_0x3df3a2,_0xbc069[_0x18f3dd(0x158)]=_0x5c878a[_0x18f3dd(0x147)]||'',_0xbc069['thTestCaseExecutionId']=_0x5c878a[_0x18f3dd(0x159)]||'',_0xbc069[_0x18f3dd(0x13b)]=global[_0x18f3dd(0x13a)],await PerformanceTester[_0x18f3dd(0x151)](_0x3f22fc['NqVbo'],()=>percyAppScreenshot['apply'](null,arguments),_0xbc069);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a76_0x31e7(_0x3421d7,_0x5a9b9a){var _0x3ce92c=a76_0x3ce9();return a76_0x31e7=function(_0x31e7f9,_0x39bd2d){_0x31e7f9=_0x31e7f9-0x176;var _0x4a6859=_0x3ce92c[_0x31e7f9];return _0x4a6859;},a76_0x31e7(_0x3421d7,_0x5a9b9a);}var a76_0xf833c8=a76_0x31e7;(function(_0x5b66c5,_0x58a613){var _0x4799b4=a76_0x31e7,_0x4c6758=_0x5b66c5();while(!![]){try{var _0x10e457=parseInt(_0x4799b4(0x17c))/0x1+parseInt(_0x4799b4(0x17d))/0x2*(parseInt(_0x4799b4(0x180))/0x3)+-parseInt(_0x4799b4(0x179))/0x4+-parseInt(_0x4799b4(0x176))/0x5+-parseInt(_0x4799b4(0x177))/0x6*(parseInt(_0x4799b4(0x17f))/0x7)+parseInt(_0x4799b4(0x17a))/0x8*(parseInt(_0x4799b4(0x17e))/0x9)+parseInt(_0x4799b4(0x17b))/0xa;if(_0x10e457===_0x58a613)break;else _0x4c6758['push'](_0x4c6758['shift']());}catch(_0x5c2588){_0x4c6758['push'](_0x4c6758['shift']());}}}(a76_0x3ce9,0x28f37),module['exports']=require(a76_0xf833c8(0x178)));function a76_0x3ce9(){var _0x425ce=['529250bIdzvt','1470IMbEeS','./Percy','319888CofwMg','61800qONavl','1746950VBuwms','204569FeZRgG','2zlJIKN','81pMfxqe','3073dSufSw','36969aazUiw'];a76_0x3ce9=function(){return _0x425ce;};return a76_0x3ce9();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a77_0x13240e=a77_0x480d;(function(_0x38e650,_0x2d4d71){const _0xd2a66=a77_0x480d,_0x5d9be8=_0x38e650();while(!![]){try{const _0x59daf3=-parseInt(_0xd2a66(0x1d6))/0x1*(parseInt(_0xd2a66(0x200))/0x2)+-parseInt(_0xd2a66(0x20b))/0x3*(-parseInt(_0xd2a66(0x1e2))/0x4)+-parseInt(_0xd2a66(0x1f7))/0x5*(parseInt(_0xd2a66(0x1d0))/0x6)+parseInt(_0xd2a66(0x1c6))/0x7*(parseInt(_0xd2a66(0x1f0))/0x8)+-parseInt(_0xd2a66(0x20d))/0x9+parseInt(_0xd2a66(0x1c8))/0xa*(parseInt(_0xd2a66(0x1d3))/0xb)+parseInt(_0xd2a66(0x20c))/0xc;if(_0x59daf3===_0x2d4d71)break;else _0x5d9be8['push'](_0x5d9be8['shift']());}catch(_0x27f04e){_0x5d9be8['push'](_0x5d9be8['shift']());}}}(a77_0x2870,0xd9657));const Percy=require(a77_0x13240e(0x1fa)),PercySDK=require(a77_0x13240e(0x1fb)),PercyCaptureModes=require(a77_0x13240e(0x1db)),PercyCaptureMap=require(a77_0x13240e(0x1d5)),logger=require(a77_0x13240e(0x1e0))[a77_0x13240e(0x1cc)],helper=require('../helper'),PerformanceTester=require(a77_0x13240e(0x1f9));function a77_0x480d(_0x13e46f,_0x262777){const _0x287007=a77_0x2870();return a77_0x480d=function(_0x480d1f,_0x90fcc3){_0x480d1f=_0x480d1f-0x1c4;let _0x5ec534=_0x287007[_0x480d1f];return _0x5ec534;},a77_0x480d(_0x13e46f,_0x262777);}exports[a77_0x13240e(0x1fc)]=PerformanceTester['measureWrapper'](a77_0x13240e(0x1fe),async _0x7751e7=>{const _0x59b340=a77_0x13240e,_0x5e8a60={};_0x5e8a60[_0x59b340(0x1ed)]='Starting\x20percy';const _0x28122c=_0x5e8a60;logger['debug'](_0x28122c[_0x59b340(0x1ed)]);const _0x51f464=new Percy(_0x7751e7),_0x2ed764=await _0x51f464[_0x59b340(0x1d2)]();if(_0x2ed764)return _0x51f464;return null;}),exports[a77_0x13240e(0x1e3)]=PerformanceTester[a77_0x13240e(0x1dd)](a77_0x13240e(0x1e6),async _0x2b875f=>{const _0x566e61=a77_0x13240e,_0xdbe179={};_0xdbe179['LquTH']=_0x566e61(0x1e7);const _0x41b999=_0xdbe179;return logger[_0x566e61(0x206)](_0x41b999[_0x566e61(0x205)]),_0x2b875f[_0x566e61(0x1ee)]();}),exports[a77_0x13240e(0x1da)]=_0x5e6ac8=>{const _0x13ae3d=a77_0x13240e,_0x791b95={};_0x791b95[_0x13ae3d(0x1de)]=function(_0x2cd34b,_0x2b58b8){return _0x2cd34b<_0x2b58b8;};const _0x4be801=_0x791b95,_0x137e90={};_0x137e90[_0x13ae3d(0x1e8)]=0x0,_0x137e90[_0x13ae3d(0x1f6)]=0x1,_0x137e90[_0x13ae3d(0x1f4)]=0x2,_0x137e90[_0x13ae3d(0x1c4)]=0x3;const _0x1b1ffe=_0x137e90;return _0x5e6ac8[_0x13ae3d(0x1f2)]((_0x474e9d,_0x34c9ce,_0x53b4fc)=>{const _0x15efce=_0x13ae3d,_0x50a479=_0x5e6ac8[_0x474e9d];if(_0x34c9ce['deviceName'])return _0x474e9d;if(_0x50a479[_0x15efce(0x1f8)])return _0x53b4fc;const _0xde6bdd=_0x34c9ce[_0x15efce(0x1e9)]?_0x34c9ce[_0x15efce(0x1e9)]:_0x34c9ce['browserName'];if(_0xde6bdd&&_0x4be801['Uxrlz'](_0x1b1ffe[_0xde6bdd[_0x15efce(0x203)]()],_0x1b1ffe[_0xde6bdd[_0x15efce(0x203)]()]))return _0x53b4fc;return _0x474e9d;},0x0);},exports[a77_0x13240e(0x1f3)]=async(_0x4c0bbe,_0x57d5fb,_0x1e69a2)=>{const _0x2fa499=a77_0x13240e,_0x14a5c3={};_0x14a5c3[_0x2fa499(0x1cf)]=_0x2fa499(0x1fd);const _0xd830a2=_0x14a5c3,_0x213a99=_0x4c0bbe[_0x2fa499(0x1cb)];if(helper[_0x2fa499(0x1d4)](_0x4c0bbe[_0x2fa499(0x207)])){logger[_0x2fa499(0x206)](_0xd830a2['pHGHF']);return;}const _0x2b4640=_0x213a99[_0x2fa499(0x201)](_0x4c0bbe[_0x2fa499(0x207)],_0x57d5fb);_0x1e69a2[_0x2fa499(0x1ec)]?await PercySDK[_0x2fa499(0x1e1)](_0x4c0bbe,_0x2b4640):await PercySDK['screenshot'](_0x4c0bbe,_0x2b4640),_0x213a99[_0x2fa499(0x1dc)](_0x4c0bbe[_0x2fa499(0x207)],_0x57d5fb);},exports[a77_0x13240e(0x1ff)]=(_0x12c222,_0xb9f9f5,_0x1c0d37)=>{const _0x2ea790=a77_0x13240e,_0x3c096b={};_0x3c096b[_0x2ea790(0x1cd)]=_0x2ea790(0x1e4),_0x3c096b['ohZND']='percy',_0x3c096b[_0x2ea790(0x1c5)]=function(_0x1d707c,_0x37fe58){return _0x1d707c!==_0x37fe58;},_0x3c096b[_0x2ea790(0x1eb)]='manual';const _0x4fd449=_0x3c096b;if(!helper[_0x2ea790(0x1c9)](_0x1c0d37,[_0x4fd449['oWBjg'],_0x4fd449[_0x2ea790(0x209)]]))return;if(_0x1c0d37[_0x2ea790(0x1e4)][_0x2ea790(0x1ea)]&&_0x1c0d37[_0x2ea790(0x1e4)][_0x2ea790(0x1f5)]&&_0x4fd449[_0x2ea790(0x1c5)](_0x1c0d37[_0x2ea790(0x1e4)][_0x2ea790(0x1f5)],_0x4fd449['KVKyV'])&&!_0x12c222['browserstackPercyMap']){global[_0x2ea790(0x207)]&&(_0x12c222['browserstackSessionName']=global[_0x2ea790(0x207)]),_0x12c222[_0x2ea790(0x1cb)]=new PercyCaptureMap();const _0x438cf7=PercyCaptureModes[_0x1c0d37[_0x2ea790(0x1e4)][_0x2ea790(0x1f5)]];_0x438cf7[_0x2ea790(0x1d7)]&&_0x438cf7[_0x2ea790(0x1d7)][_0x2ea790(0x1e5)](_0x1bb9dd=>this['overrideXforPercy'](_0x12c222,_0x1bb9dd,_0x1c0d37)),_0x438cf7['element']&&_0x438cf7['element'][_0x2ea790(0x1e5)](_0x270a38=>{const _0x2acf6a=_0x2ea790;if(_0xb9f9f5[_0x2acf6a(0x202)][_0x2acf6a(0x1d1)+_0x270a38])return;_0xb9f9f5['prototype']['patch'+_0x270a38]=!![];const _0x1df90b=_0xb9f9f5[_0x2acf6a(0x202)][_0x270a38];_0xb9f9f5['prototype'][_0x270a38]=async function(){const _0x1a2b18=_0x2acf6a;let _0x238ff2=_0x1df90b['apply'](this,arguments);_0x238ff2&&_0x238ff2['then']&&(_0x238ff2=await _0x238ff2);try{const _0x5f3719=this[_0x1a2b18(0x208)]();await exports[_0x1a2b18(0x1f3)](_0x5f3719,_0x270a38,_0x1c0d37);}catch(_0x5adf68){logger['error']('Error\x20patching\x20'+_0x270a38+_0x1a2b18(0x1f1)+_0x5adf68);}return _0x238ff2;};});}},exports['overrideXforPercy']=function(_0x263efc,_0x56c738,_0x3f42b4){const _0x588f18=a77_0x13240e,_0x53e670={};_0x53e670[_0x588f18(0x1c7)]=function(_0x224bd3,_0x1378f6){return _0x224bd3+_0x1378f6;},_0x53e670[_0x588f18(0x1d8)]=_0x588f18(0x1d1),_0x53e670[_0x588f18(0x1ef)]=function(_0x4c4789,_0x305079){return _0x4c4789+_0x305079;},_0x53e670[_0x588f18(0x1ca)]=_0x588f18(0x1ce);const _0x3c4fd1=_0x53e670,_0x3833cd=_0x3c4fd1['hyDIG'](_0x3c4fd1['kMvdr'],_0x56c738),_0x3b01ef=_0x3c4fd1[_0x588f18(0x1ef)](_0x3c4fd1['tBhCI'],_0x56c738),_0x106981=this;if(_0x263efc[_0x3833cd]||!_0x263efc[_0x56c738])return;_0x263efc[_0x3833cd]=!![],_0x263efc[_0x3b01ef]=_0x263efc[_0x56c738],_0x263efc[_0x56c738]=async()=>{const _0x555537=_0x588f18;try{await _0x106981[_0x555537(0x1f3)](_0x263efc,_0x56c738,_0x3f42b4);}catch(_0x155f2a){logger[_0x555537(0x20a)]('Error\x20patching\x20'+_0x56c738+_0x555537(0x1f1)+_0x155f2a);}return await _0x263efc[_0x3b01ef][_0x555537(0x204)](_0x263efc,arguments);};},exports[a77_0x13240e(0x1d9)]=_0x17049b=>{const _0x2f7ed3=a77_0x13240e,_0x46af38={};_0x46af38['percy']=_0x17049b[_0x2f7ed3(0x1ea)],_0x46af38[_0x2f7ed3(0x1f5)]=_0x17049b[_0x2f7ed3(0x1f5)];const _0x792261=_0x46af38;_0x17049b[_0x2f7ed3(0x1ea)]&&(_0x792261[_0x2f7ed3(0x1df)]=exports['getBestPlatformForPercySnapshot'](_0x17049b['platforms']));;return _0x792261;};function a77_0x2870(){const _0x84d723=['apply','LquTH','debug','browserstackSessionName','getDriver','ohZND','error','729SOAkvB','34083744ulWrDG','13155147domkNM','safari','hBMoR','161QXNnpw','hyDIG','10gjEOtL','nestedKeyValue','tBhCI','browserstackPercyMap','winstonLogger','oWBjg','init','pHGHF','150PjXrGV','patch','start','5614367QYkSkA','isUndefined','./PercyCaptureMap','963253wCQMBA','driver','kMvdr','getPercyOptions','getBestPlatformForPercySnapshot','./PercyCaptureModes','increment','measureWrapper','Uxrlz','browserstackPercyBestPlatform','../logger','screenshotApp','4920KsKENE','stopPercy','browserStackPercyOptions','forEach','percy:stop','Stopping\x20percy','chrome','browser','percy','KVKyV','app','ycNdG','stop','IBXjU','199832UOKbYJ','\x20for\x20percy\x20','reduce','percyAutoCapture','edge','percyCaptureMode','firefox','181745oATCdu','deviceName','../performance-tester','./Percy','./PercySDK','startPercy','Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present','percy:start','patchDriverPercy','2wBihDR','getName','prototype','toLowerCase'];a77_0x2870=function(){return _0x84d723;};return a77_0x2870();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a78_0x5004(_0x55be73,_0x237c63){const _0x4fd0c3=a78_0x4fd0();return a78_0x5004=function(_0x500488,_0x261574){_0x500488=_0x500488-0x193;let _0x157029=_0x4fd0c3[_0x500488];return _0x157029;},a78_0x5004(_0x55be73,_0x237c63);}const a78_0x4f1b34=a78_0x5004;function a78_0x4fd0(){const _0x1d12f4=['Ibqbz','finalize','captureError','Performance\x20report\x20is\x20at\x20','winstonLogger','fOXOa','</td><td>','entryTypes','unlinkSync','pushErrors','./test-observability/utils','jsonReportFileName','appendFileSync','1144084ITIbXt','buffered','meta','measure','message','performance-own.html','disconnect','finalizePerfMeasures','getCleanedPerfEvents','calculateTimeFromEvents','getEventsFromJSON','_observer','uVacp','started','pTmGD','existsSync','Rcwur','error-report.json','stopMonitoring','function','join','values','exports','measureWrapper','enBVq','NGxnm','\x20for\x20all\x20processes\x20is\x20','mark','IIJpr','match','getEntries','7312xwSqQD','-end','KZLjo','_events','HNZpj','1013971ptTJzb','parse','</tbody></table></body></html>','apply','finally','YJJfC','stack','writeFileSync','isEnabled','forEach','name','cwd','length','Error\x20in\x20doing\x20csv\x20operations:\x20','writeFile','generateJSON','BAZFi','generateHTMLReport','catch','HeevG','env','slice','toString','glKhl','./logger','finalizeErrors','entries','BAsXW','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','errorReportFileName','concat','duration','LPkPO','false','<h1>Performance\x20Report</h1>','</td></tr>','1478316eMxrzC','cAaqj','map','FldVK','10tEyMjg','JilyV','performance-report.json','9562365iISdWu','Error\x20in\x20writing\x20html\x20','pushPerfMeasures','JOsjo','stringify','aBKmt','1988DpiwnN','JOTQz','then','Time\x20for\x20','_measureEvents','measures','stopAndGenerate','UiElK','aYdIq','entryType','code','Error\x20stopping\x20monitoring','reduce','errors','565194qXNlsB','wuOUx','push','BxsPI','_errorEvents','errorFile','aLXzH','1939542knveOr','60sERECQ','getPerformance','startMonitoring','mvTFx','BROWSERSTACK_SDK_INSTRUMENTATION','SzPkG','DzWnN','observe','readFileSync','MRCoO'];a78_0x4fd0=function(){return _0x1d12f4;};return a78_0x4fd0();}(function(_0x4ee19c,_0x27b34b){const _0x2cbebf=a78_0x5004,_0x3fcbf4=_0x4ee19c();while(!![]){try{const _0xcd9ba1=parseInt(_0x2cbebf(0x1a2))/0x1+parseInt(_0x2cbebf(0x200))/0x2+-parseInt(_0x2cbebf(0x1e8))/0x3+-parseInt(_0x2cbebf(0x1c6))/0x4+parseInt(_0x2cbebf(0x1e9))/0x5*(-parseInt(_0x2cbebf(0x1e1))/0x6)+-parseInt(_0x2cbebf(0x1d3))/0x7*(-parseInt(_0x2cbebf(0x19d))/0x8)+-parseInt(_0x2cbebf(0x1cd))/0x9*(-parseInt(_0x2cbebf(0x1ca))/0xa);if(_0xcd9ba1===_0x27b34b)break;else _0x3fcbf4['push'](_0x3fcbf4['shift']());}catch(_0x39a412){_0x3fcbf4['push'](_0x3fcbf4['shift']());}}}(a78_0x4fd0,0xb9ef9));const fs=require('fs'),{performance,PerformanceObserver}=require('perf_hooks'),{sleep,debug}=require(a78_0x4f1b34(0x1fd)),path=require('path'),logger=require(a78_0x4f1b34(0x1ba))[a78_0x4f1b34(0x1f7)];class PerformanceTester{static ['_observer'];static ['_events']=[];static [a78_0x4f1b34(0x1d7)]=[];static ['_errorEvents']=[];static [a78_0x4f1b34(0x20d)]=![];static [a78_0x4f1b34(0x1fe)]=a78_0x4f1b34(0x1cc);static [a78_0x4f1b34(0x1bf)]=a78_0x4f1b34(0x211);static[a78_0x4f1b34(0x1eb)](_0x21aaf6=a78_0x4f1b34(0x1cc),_0x5a9379=a78_0x4f1b34(0x211)){const _0x2a1052=a78_0x4f1b34,_0x48834a={};_0x48834a[_0x2a1052(0x1a7)]=function(_0x24d122,_0xa2df8f){return _0x24d122===_0xa2df8f;},_0x48834a[_0x2a1052(0x1e7)]='measure',_0x48834a[_0x2a1052(0x1f8)]=_0x2a1052(0x213);const _0x1a6918=_0x48834a;if(this[_0x2a1052(0x20d)]||!this[_0x2a1052(0x1aa)]())return;this[_0x2a1052(0x20b)]=new PerformanceObserver(_0x583da8=>{const _0x119667=_0x2a1052,_0x595f98={'BxsPI':function(_0x4988d6,_0x22e18b){const _0x13b0ee=a78_0x5004;return _0x1a6918[_0x13b0ee(0x1a7)](_0x4988d6,_0x22e18b);},'sWsfa':_0x1a6918[_0x119667(0x1e7)]};_0x583da8[_0x119667(0x19c)]()['forEach'](_0x2a0162=>{const _0x16f17d=_0x119667;_0x595f98[_0x16f17d(0x1e4)](_0x2a0162[_0x16f17d(0x1dc)],_0x595f98['sWsfa'])?this[_0x16f17d(0x1d7)]['push'](_0x2a0162):this[_0x16f17d(0x1a0)][_0x16f17d(0x1e3)](_0x2a0162);});});const _0x571778={};_0x571778[_0x2a1052(0x201)]=!![],_0x571778[_0x2a1052(0x1fa)]=[_0x1a6918[_0x2a1052(0x1f8)],_0x1a6918['aLXzH']],this[_0x2a1052(0x20b)][_0x2a1052(0x1f0)](_0x571778),this['started']=!![],this[_0x2a1052(0x1fe)]=_0x21aaf6,this[_0x2a1052(0x1bf)]=_0x5a9379;}static[a78_0x4f1b34(0x1ea)](){return performance;}static['calculateTimeFromEvents'](_0x44840c,_0x58ac45){const _0x4c8c44=a78_0x4f1b34,_0x57e412={};_0x57e412[_0x4c8c44(0x1db)]=function(_0x5959ce,_0x5344e8){return _0x5959ce+_0x5344e8;},_0x57e412[_0x4c8c44(0x1f3)]=function(_0x1a897f,_0x46c785){return _0x1a897f||_0x46c785;},_0x57e412[_0x4c8c44(0x196)]=function(_0x32ed78,_0x2fc393){return _0x32ed78===_0x2fc393;};const _0x94b146=_0x57e412,_0x5d37a5={};if(!_0x44840c||_0x94b146[_0x4c8c44(0x196)](_0x44840c['length'],0x0))return;_0x44840c[_0x4c8c44(0x1c8)](_0x523b96=>{const _0x260c03=_0x4c8c44;!_0x5d37a5[_0x523b96[_0x260c03(0x1ac)]]&&(_0x5d37a5[_0x523b96[_0x260c03(0x1ac)]]=0x0),_0x5d37a5[_0x523b96[_0x260c03(0x1ac)]]+=_0x523b96['duration'];});const _0x25730f=_0x58ac45[_0x4c8c44(0x1df)]((_0x34f50a,_0x1f58f8)=>{const _0x507c31=_0x4c8c44;return _0x94b146[_0x507c31(0x1db)](_0x5d37a5[_0x1f58f8],_0x94b146[_0x507c31(0x1f3)](_0x34f50a,0x0));},0x0);return _0x25730f;}static async['calculateTimesFromMultipleFiles'](_0x4b0f3b,_0x252038){const _0x3b1260=a78_0x4f1b34,_0x543a32={'BAZFi':function(_0x4259f8,_0x1a8bd4){return _0x4259f8+_0x1a8bd4;},'KZLjo':function(_0x4ae9a1,_0x1acfd1){return _0x4ae9a1||_0x1acfd1;},'JilyV':function(_0x591d6f,_0x5e66da){return _0x591d6f===_0x5e66da;},'gUApq':function(_0x9d9c3e,_0x4e937d){return _0x9d9c3e(_0x4e937d);},'BAsXW':function(_0x56148e,_0x5ab940){return _0x56148e(_0x5ab940);}};if(!_0x4b0f3b||_0x543a32[_0x3b1260(0x1cb)](_0x4b0f3b[_0x3b1260(0x1ae)],0x0))return 0x0;const _0x4c8d69=[];for(const _0x158e70 of _0x4b0f3b){const _0xc63217=path[_0x3b1260(0x214)]('.',_0x158e70);try{const _0x347d51=this[_0x3b1260(0x20a)](_0xc63217);_0x347d51['map'](_0x4e2146=>{const _0x4cc989=_0x3b1260;!_0x4c8d69[_0x4e2146[_0x4cc989(0x1ac)]]&&(_0x4c8d69[_0x4e2146[_0x4cc989(0x1ac)]]=0x0),_0x4c8d69[_0x4e2146[_0x4cc989(0x1ac)]]+=_0x4e2146[_0x4cc989(0x1c1)];});}catch(_0x3edaa5){_0x543a32['gUApq'](debug,_0x3b1260(0x1af)+_0x3edaa5[_0x3b1260(0x1b8)]());}}const _0x3b0198=_0x252038[_0x3b1260(0x1df)]((_0x25d980,_0x29c836)=>{const _0x131add=_0x3b1260;return _0x543a32[_0x131add(0x1b2)](_0x4c8d69[_0x29c836],_0x543a32[_0x131add(0x19f)](_0x25d980,0x0));},0x0);return _0x543a32[_0x3b1260(0x1bd)](debug,_0x3b1260(0x1d6)+_0x252038+_0x3b1260(0x198)+_0x3b0198),_0x3b0198;}static[a78_0x4f1b34(0x20a)](_0x221302){const _0x3c6fec=a78_0x4f1b34;if(!fs[_0x3c6fec(0x20f)](_0x221302))return[];return JSON[_0x3c6fec(0x1a3)](fs[_0x3c6fec(0x1f1)](_0x221302)['toString']());}static async[a78_0x4f1b34(0x1d9)](_0x57b709=a78_0x4f1b34(0x205),_0x4d8c54=null){const _0x34d10b=a78_0x4f1b34,_0x3dac67={'SzPkG':function(_0x392be0,_0x39fc83){return _0x392be0(_0x39fc83);}};if(!this['started'])return;await _0x3dac67['SzPkG'](sleep,0x1e),this['_observer'][_0x34d10b(0x206)](),this[_0x34d10b(0x20d)]=![],this[_0x34d10b(0x1b1)](this[_0x34d10b(0x1a0)]);const _0x54afc4=this['generateHTMLReport'](this[_0x34d10b(0x1a0)]),_0x446856=path[_0x34d10b(0x214)](process[_0x34d10b(0x1ad)](),_0x57b709);fs[_0x34d10b(0x1b0)](_0x446856,_0x54afc4,_0x118971=>{const _0x5751d6=_0x34d10b;if(_0x118971){_0x3dac67[_0x5751d6(0x1ee)](debug,_0x5751d6(0x1ce)+_0x118971[_0x5751d6(0x1b8)]());return;}_0x3dac67[_0x5751d6(0x1ee)](debug,_0x5751d6(0x1f6)+_0x446856);});if(_0x4d8c54)return this[_0x34d10b(0x209)](this[_0x34d10b(0x1a0)],_0x4d8c54);}static[a78_0x4f1b34(0x1b3)](_0x502312){const _0x307a55=a78_0x4f1b34,_0x1ae265={};_0x1ae265[_0x307a55(0x1ec)]='<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>',_0x1ae265[_0x307a55(0x1d0)]=_0x307a55(0x1c4),_0x1ae265[_0x307a55(0x1b5)]=_0x307a55(0x1be),_0x1ae265[_0x307a55(0x210)]=_0x307a55(0x1a4);const _0x50a392=_0x1ae265;let _0x29af03=_0x50a392[_0x307a55(0x1ec)];return _0x29af03+=_0x50a392[_0x307a55(0x1d0)],_0x29af03+=_0x50a392[_0x307a55(0x1b5)],_0x502312[_0x307a55(0x1ab)](_0x3840af=>{const _0x2c5897=_0x307a55;_0x29af03+='<tr><td>'+_0x3840af[_0x2c5897(0x1ac)]+_0x2c5897(0x1f9)+_0x3840af[_0x2c5897(0x1c1)]+_0x2c5897(0x1c5);}),_0x29af03+=_0x50a392[_0x307a55(0x210)],_0x29af03;}static[a78_0x4f1b34(0x1b1)](_0x92eb3e){const _0x3462cf=a78_0x4f1b34;if(!this[_0x3462cf(0x1fe)])return;const _0x4355b2={};_0x92eb3e[_0x3462cf(0x1c8)](_0x5c7f0f=>{const _0x11f40b=_0x3462cf;!_0x4355b2[_0x5c7f0f[_0x11f40b(0x1ac)]]&&(_0x4355b2[_0x5c7f0f['name']]=0x0),_0x4355b2[_0x5c7f0f[_0x11f40b(0x1ac)]]+=_0x5c7f0f[_0x11f40b(0x1c1)];});const _0x393357=Object[_0x3462cf(0x1bc)](_0x4355b2)[_0x3462cf(0x1c8)](([_0x5779dc,_0x1ae228])=>{const _0x36af06=_0x3462cf,_0x33ec46={};return _0x33ec46[_0x36af06(0x1ac)]=_0x5779dc,_0x33ec46[_0x36af06(0x1c1)]=_0x1ae228,_0x33ec46;});fs[_0x3462cf(0x1a9)](this[_0x3462cf(0x1fe)],JSON[_0x3462cf(0x1d1)](_0x393357));}static[a78_0x4f1b34(0x1aa)](){const _0x381a16=a78_0x4f1b34,_0x4aa039={};_0x4aa039[_0x381a16(0x19a)]=function(_0x1a1635,_0x32d03f){return _0x1a1635===_0x32d03f;},_0x4aa039['UiElK']=_0x381a16(0x1c3);const _0x249293=_0x4aa039;return!_0x249293[_0x381a16(0x19a)](process[_0x381a16(0x1b6)][_0x381a16(0x1ed)],_0x249293[_0x381a16(0x1da)]);}static[a78_0x4f1b34(0x203)](_0x1e2c9a,_0x4855bd,_0x529f2a=null,_0x1f9fa6=null){const _0x5a0b99=a78_0x4f1b34,_0x3dd0b7={};_0x3dd0b7[_0x5a0b99(0x20e)]=function(_0x185b6b,_0x7fc520){return _0x185b6b+_0x7fc520;},_0x3dd0b7[_0x5a0b99(0x1b9)]='-start',_0x3dd0b7[_0x5a0b99(0x1c9)]=_0x5a0b99(0x19e),_0x3dd0b7[_0x5a0b99(0x1f2)]=function(_0x5535d1,_0x206bd2){return _0x5535d1 instanceof _0x206bd2;};const _0x54cedb=_0x3dd0b7;try{if(this[_0x5a0b99(0x20d)]&&this['isEnabled']()){let _0x3ce4e4=_0x1e2c9a;_0x529f2a&&(_0x3ce4e4=_0x1e2c9a+'['+JSON[_0x5a0b99(0x1d1)](_0x529f2a)+']');const _0x24e289=_0x54cedb['pTmGD'](_0x3ce4e4,_0x54cedb[_0x5a0b99(0x1b9)]),_0x44cc20=_0x54cedb[_0x5a0b99(0x20e)](_0x3ce4e4,_0x54cedb[_0x5a0b99(0x1c9)]);performance[_0x5a0b99(0x199)](_0x24e289);const _0xce08af=_0x4855bd[_0x5a0b99(0x1a5)](null,_0x1f9fa6);if(_0x54cedb[_0x5a0b99(0x1f2)](_0xce08af,Promise))return new Promise((_0x15b505,_0x1e1e5a)=>{const _0xcabb4=_0x5a0b99;_0xce08af[_0xcabb4(0x1d5)](_0x21de7d=>_0x15b505(_0x21de7d))[_0xcabb4(0x1b4)](_0x4c2b82=>_0x1e1e5a(_0x4c2b82))[_0xcabb4(0x1a6)](()=>{performance['mark'](_0x44cc20),performance['measure'](_0x3ce4e4,_0x24e289,_0x44cc20);});});;return performance[_0x5a0b99(0x199)](_0x44cc20),performance['measure'](_0x3ce4e4,_0x24e289,_0x44cc20),_0xce08af;};return _0x4855bd[_0x5a0b99(0x1a5)](null,_0x1f9fa6);}catch(_0xca193c){return _0x4855bd[_0x5a0b99(0x1a5)](null,_0x1f9fa6);}}static[a78_0x4f1b34(0x195)](_0x407a81,_0x1a5e4c){const _0x4fe8d4=this;return function(){const _0x22c572=a78_0x5004,_0x58e8cc=[_0x407a81,_0x1a5e4c,null][_0x22c572(0x1c0)](arguments);return _0x4fe8d4[_0x22c572(0x203)]['apply'](_0x4fe8d4,_0x58e8cc);};}static['getCleanedPerfEvents'](){const _0x5e8a27=a78_0x4f1b34,_0x1e204d={};_0x1e204d['bOljE']=function(_0x4948a7,_0x182ac9){return _0x4948a7/_0x182ac9;},_0x1e204d['vDTxk']=function(_0x25d1e3,_0x48524e){return _0x25d1e3+_0x48524e;},_0x1e204d['DzWnN']=function(_0xcf3993,_0x5d216e){return _0xcf3993*_0x5d216e;};const _0x36789e=_0x1e204d,_0x231d41=/(^.*)\[(.*)\]$/,_0x543fba={},_0x59d1fd={};for(const _0x10b62 of this[_0x5e8a27(0x1d7)]){const _0x4bf1b8=_0x10b62[_0x5e8a27(0x1ac)][_0x5e8a27(0x19b)](_0x231d41),_0x1801fb={};_0x1801fb[_0x5e8a27(0x1ac)]=_0x10b62[_0x5e8a27(0x1ac)],_0x1801fb[_0x5e8a27(0x1c1)]=_0x10b62['duration']||0x0;const _0x2c6d1a=_0x1801fb;_0x4bf1b8&&(_0x2c6d1a[_0x5e8a27(0x1ac)]=_0x4bf1b8[0x1],_0x2c6d1a[_0x5e8a27(0x202)]=JSON['parse'](_0x4bf1b8[0x2]));if(_0x543fba[_0x2c6d1a[_0x5e8a27(0x1ac)]]){const _0x2ec774=_0x543fba[_0x2c6d1a['name']],_0x7c7cfb=_0x59d1fd[_0x2c6d1a[_0x5e8a27(0x1ac)]];_0x543fba[_0x2c6d1a[_0x5e8a27(0x1ac)]][_0x5e8a27(0x1c1)]=_0x36789e['bOljE'](_0x36789e['vDTxk'](_0x36789e[_0x5e8a27(0x1ef)](_0x2ec774['duration'],_0x7c7cfb),_0x2c6d1a[_0x5e8a27(0x1c1)]),_0x36789e['vDTxk'](0x1,_0x7c7cfb)),_0x59d1fd[_0x2c6d1a['name']]++;}else _0x543fba[_0x2c6d1a['name']]=_0x2c6d1a,_0x59d1fd[_0x2c6d1a[_0x5e8a27(0x1ac)]]=0x1;}return Object[_0x5e8a27(0x193)](_0x543fba);}static[a78_0x4f1b34(0x1cf)](){const _0x4c82f1=a78_0x4f1b34,_0x1b3bb9={};_0x1b3bb9[_0x4c82f1(0x20c)]=function(_0x3ccf27,_0x170fd7){return _0x3ccf27===_0x170fd7;},_0x1b3bb9['LPkPO']=function(_0x2cb178,_0x351a29){return _0x2cb178+_0x351a29;};const _0x49ca66=_0x1b3bb9;if(_0x49ca66[_0x4c82f1(0x20c)](this[_0x4c82f1(0x1d7)][_0x4c82f1(0x1ae)],0x0))return;const _0x3d88e5=this[_0x4c82f1(0x208)](),_0x1bb59b=JSON[_0x4c82f1(0x1d1)](_0x3d88e5),_0x561b3a=_0x49ca66[_0x4c82f1(0x1c2)](_0x1bb59b['slice'](0x1,-0x1),',');fs[_0x4c82f1(0x1ff)](this[_0x4c82f1(0x1fe)],_0x561b3a);}static['finalizePerfMeasures'](){const _0x52ed8e=a78_0x4f1b34,_0x3ef3d3={};_0x3ef3d3[_0x52ed8e(0x1d2)]=function(_0x1b6f5f,_0x513d8d){return _0x1b6f5f===_0x513d8d;},_0x3ef3d3['wuOUx']=function(_0x285c18,_0x43e041){return _0x285c18>_0x43e041;};const _0x306e8=_0x3ef3d3;if(!this[_0x52ed8e(0x20d)]||_0x306e8[_0x52ed8e(0x1d2)](this[_0x52ed8e(0x1d7)]['length'],0x0))return[];if(!fs[_0x52ed8e(0x20f)](this[_0x52ed8e(0x1fe)]))return this[_0x52ed8e(0x1d7)];let _0x571fd7=fs[_0x52ed8e(0x1f1)](this['jsonReportFileName'])[_0x52ed8e(0x1b8)]();_0x571fd7='['+_0x571fd7[_0x52ed8e(0x1b7)](0x0,-0x1)+']';let _0x3589f4=JSON[_0x52ed8e(0x1a3)](_0x571fd7);return _0x306e8[_0x52ed8e(0x1e2)](this[_0x52ed8e(0x1d7)]['length'],0x0)&&(_0x3589f4=_0x3589f4[_0x52ed8e(0x1c0)](this['getCleanedPerfEvents']())),this[_0x52ed8e(0x20b)][_0x52ed8e(0x206)](),fs[_0x52ed8e(0x1fb)](this['jsonReportFileName']),_0x3589f4;}static['pushErrors'](){const _0x1a5458=a78_0x4f1b34,_0x530606={};_0x530606['JOTQz']=function(_0x4499ea,_0x42bd66){return _0x4499ea===_0x42bd66;},_0x530606['HNZpj']=function(_0x4d2d71,_0xd872b8){return _0x4d2d71+_0xd872b8;};const _0x360d35=_0x530606;if(_0x360d35[_0x1a5458(0x1d4)](this[_0x1a5458(0x1e5)]['length'],0x0))return;const _0x369f07=JSON[_0x1a5458(0x1d1)](this[_0x1a5458(0x1e5)]),_0x1a7d01=_0x360d35[_0x1a5458(0x1a1)](_0x369f07[_0x1a5458(0x1b7)](0x1,-0x1),',');fs['appendFileSync'](this[_0x1a5458(0x1e6)],_0x1a7d01);}static['finalizeErrors'](){const _0x5621bb=a78_0x4f1b34,_0x3c6193={};_0x3c6193[_0x5621bb(0x197)]=function(_0x3b5b50,_0x449b38){return _0x3b5b50>_0x449b38;};const _0x51ee2d=_0x3c6193;if(!fs[_0x5621bb(0x20f)](this[_0x5621bb(0x1bf)]))return this['_errorEvents'];let _0xd382d8=fs['readFileSync'](this[_0x5621bb(0x1bf)])[_0x5621bb(0x1b8)]();_0xd382d8='['+_0xd382d8[_0x5621bb(0x1b7)](0x0,-0x1)+']';let _0x1e6250=JSON['parse'](_0xd382d8);return _0x51ee2d['NGxnm'](this['_errorEvents'][_0x5621bb(0x1ae)],0x0)&&(_0x1e6250=_0x1e6250[_0x5621bb(0x1c0)](this['_errorEvents'])),fs[_0x5621bb(0x1fb)](this[_0x5621bb(0x1bf)]),_0x1e6250;}static[a78_0x4f1b34(0x1f5)](_0x2cd528){const _0x4912f5=a78_0x4f1b34;if(!this['isEnabled']())return;this['_errorEvents'][_0x4912f5(0x1e3)]({'message':_0x2cd528[_0x4912f5(0x204)],'trace':_0x2cd528[_0x4912f5(0x1a8)],'code':_0x2cd528[_0x4912f5(0x1dd)]||null,'time':new Date()});}static[a78_0x4f1b34(0x212)](){const _0x4a8e2a=a78_0x4f1b34,_0xaba592={};_0xaba592[_0x4a8e2a(0x1c7)]=_0x4a8e2a(0x1de);const _0xa46ecc=_0xaba592;try{if(!this[_0x4a8e2a(0x1aa)]())return;this['_observer'][_0x4a8e2a(0x206)](),this[_0x4a8e2a(0x1cf)](),this[_0x4a8e2a(0x1fc)]();}catch{logger['debug'](_0xa46ecc[_0x4a8e2a(0x1c7)]);}}static[a78_0x4f1b34(0x1f4)](){const _0x18b5dd=a78_0x4f1b34,_0x505129=this[_0x18b5dd(0x207)](),_0x10eb34=this[_0x18b5dd(0x1bb)]();if(!this[_0x18b5dd(0x1aa)]()){const _0x48a49a={};return _0x48a49a[_0x18b5dd(0x1d8)]=[],_0x48a49a[_0x18b5dd(0x1e0)]=[],_0x48a49a;}const _0x4aa080={};return _0x4aa080[_0x18b5dd(0x1d8)]=_0x505129,_0x4aa080[_0x18b5dd(0x1e0)]=_0x10eb34,_0x4aa080;}}module[a78_0x4f1b34(0x194)]=PerformanceTester;
|
|
1
|
+
const a78_0x33832f=a78_0x2851;(function(_0x7e0397,_0x17fb15){const _0x5522f0=a78_0x2851,_0x40ee16=_0x7e0397();while(!![]){try{const _0x24172c=parseInt(_0x5522f0(0x1ce))/0x1+-parseInt(_0x5522f0(0x1c8))/0x2+parseInt(_0x5522f0(0x1aa))/0x3+-parseInt(_0x5522f0(0x1ed))/0x4*(parseInt(_0x5522f0(0x1cb))/0x5)+parseInt(_0x5522f0(0x203))/0x6+-parseInt(_0x5522f0(0x1a5))/0x7*(parseInt(_0x5522f0(0x1fe))/0x8)+parseInt(_0x5522f0(0x1e5))/0x9;if(_0x24172c===_0x17fb15)break;else _0x40ee16['push'](_0x40ee16['shift']());}catch(_0x1f55cc){_0x40ee16['push'](_0x40ee16['shift']());}}}(a78_0x3b6b,0x6e893));const fs=require('fs'),{performance,PerformanceObserver}=require(a78_0x33832f(0x1a2)),{sleep,debug}=require('./test-observability/utils'),path=require(a78_0x33832f(0x1f7)),logger=require(a78_0x33832f(0x1c6))[a78_0x33832f(0x19e)];class PerformanceTester{static [a78_0x33832f(0x1ec)];static [a78_0x33832f(0x1c2)]=[];static [a78_0x33832f(0x1ae)]=[];static ['_errorEvents']=[];static [a78_0x33832f(0x1c4)]=![];static [a78_0x33832f(0x20d)]=a78_0x33832f(0x1a4);static ['errorReportFileName']=a78_0x33832f(0x1ea);static[a78_0x33832f(0x20f)](_0x15af4e=a78_0x33832f(0x1a4),_0x55d8ce='error-report.json'){const _0x3058d8=a78_0x33832f,_0x41daec={};_0x41daec[_0x3058d8(0x1ef)]=function(_0x1e37e6,_0x55cbe1){return _0x1e37e6===_0x55cbe1;},_0x41daec[_0x3058d8(0x1fc)]='measure',_0x41daec[_0x3058d8(0x1f9)]='function';const _0x1eb00f=_0x41daec;if(this[_0x3058d8(0x1c4)]||!this[_0x3058d8(0x195)]())return;this[_0x3058d8(0x1ec)]=new PerformanceObserver(_0xf6fd68=>{const _0x3d5344=_0x3058d8,_0x5b80ae={'qPsTQ':function(_0x12cc64,_0x121da3){const _0x442943=a78_0x2851;return _0x1eb00f[_0x442943(0x1ef)](_0x12cc64,_0x121da3);},'EazSy':_0x1eb00f['EtSZS']};_0xf6fd68[_0x3d5344(0x1ff)]()[_0x3d5344(0x19d)](_0x4d2f10=>{const _0x370a40=_0x3d5344;_0x5b80ae['qPsTQ'](_0x4d2f10[_0x370a40(0x1d9)],_0x5b80ae[_0x370a40(0x1a7)])?this[_0x370a40(0x1ae)][_0x370a40(0x196)](_0x4d2f10):this[_0x370a40(0x1c2)][_0x370a40(0x196)](_0x4d2f10);});});const _0x6dd4b2={};_0x6dd4b2[_0x3058d8(0x1c5)]=!![],_0x6dd4b2[_0x3058d8(0x1b6)]=[_0x1eb00f[_0x3058d8(0x1f9)],_0x1eb00f['EtSZS']],this[_0x3058d8(0x1ec)][_0x3058d8(0x202)](_0x6dd4b2),this['started']=!![],this[_0x3058d8(0x20d)]=_0x15af4e,this[_0x3058d8(0x1b2)]=_0x55d8ce;}static[a78_0x33832f(0x200)](){return performance;}static['calculateTimeFromEvents'](_0x449da1,_0xc80b3f){const _0x1a458c=a78_0x33832f,_0x2aac16={};_0x2aac16[_0x1a458c(0x1ba)]=function(_0x5899e4,_0x5503f7){return _0x5899e4+_0x5503f7;},_0x2aac16[_0x1a458c(0x1b4)]=function(_0x1d730b,_0xdb4371){return _0x1d730b||_0xdb4371;},_0x2aac16['MbdwF']=function(_0x3163da,_0x31fac9){return _0x3163da===_0x31fac9;};const _0x5c6234=_0x2aac16,_0x34c699={};if(!_0x449da1||_0x5c6234['MbdwF'](_0x449da1[_0x1a458c(0x1d8)],0x0))return;_0x449da1[_0x1a458c(0x1a1)](_0x43fa15=>{const _0x5a6a56=_0x1a458c;!_0x34c699[_0x43fa15['name']]&&(_0x34c699[_0x43fa15['name']]=0x0),_0x34c699[_0x43fa15[_0x5a6a56(0x1ad)]]+=_0x43fa15['duration'];});const _0x52fb0f=_0xc80b3f['reduce']((_0x3c75cc,_0x3fe792)=>{const _0x106445=_0x1a458c;return _0x5c6234[_0x106445(0x1ba)](_0x34c699[_0x3fe792],_0x5c6234[_0x106445(0x1b4)](_0x3c75cc,0x0));},0x0);return _0x52fb0f;}static async[a78_0x33832f(0x1f1)](_0x1a4926,_0x52b726){const _0xec2231=a78_0x33832f,_0x38bf53={'nMimX':function(_0x3efe90,_0xe9f2a){return _0x3efe90+_0xe9f2a;},'lfzqh':function(_0x51f9ec,_0x521ea5){return _0x51f9ec||_0x521ea5;},'ezTXI':function(_0x18dcd8,_0x5a7f1f){return _0x18dcd8===_0x5a7f1f;},'gUaNk':function(_0x9fb51b,_0x50701d){return _0x9fb51b(_0x50701d);},'IvSXg':function(_0x2ace9a,_0x50ff5a){return _0x2ace9a(_0x50ff5a);}};if(!_0x1a4926||_0x38bf53[_0xec2231(0x1da)](_0x1a4926[_0xec2231(0x1d8)],0x0))return 0x0;const _0x461017=[];for(const _0x31662e of _0x1a4926){const _0x362172=path[_0xec2231(0x19a)]('.',_0x31662e);try{const _0x349fd3=this['getEventsFromJSON'](_0x362172);_0x349fd3['map'](_0x462fec=>{const _0x436da8=_0xec2231;!_0x461017[_0x462fec['name']]&&(_0x461017[_0x462fec[_0x436da8(0x1ad)]]=0x0),_0x461017[_0x462fec[_0x436da8(0x1ad)]]+=_0x462fec[_0x436da8(0x1f5)];});}catch(_0x41433c){_0x38bf53[_0xec2231(0x1d6)](debug,_0xec2231(0x1bc)+_0x41433c[_0xec2231(0x1e2)]());}}const _0x3742b8=_0x52b726[_0xec2231(0x1f0)]((_0x11d010,_0x13ab75)=>{const _0xcaca79=_0xec2231;return _0x38bf53[_0xcaca79(0x1b8)](_0x461017[_0x13ab75],_0x38bf53[_0xcaca79(0x1c3)](_0x11d010,0x0));},0x0);return _0x38bf53[_0xec2231(0x212)](debug,_0xec2231(0x1a0)+_0x52b726+_0xec2231(0x1f3)+_0x3742b8),_0x3742b8;}static[a78_0x33832f(0x1b7)](_0x1693a0){const _0x274b8a=a78_0x33832f;if(!fs[_0x274b8a(0x1db)](_0x1693a0))return[];return JSON[_0x274b8a(0x1be)](fs[_0x274b8a(0x20a)](_0x1693a0)['toString']());}static async[a78_0x33832f(0x1fb)](_0x3dcceb='performance-own.html',_0x1d0ad9=null){const _0x49ea3f=a78_0x33832f,_0x169316={'zVdDP':function(_0x3ce37c,_0x5a993a){return _0x3ce37c(_0x5a993a);},'APfdY':function(_0x548c66,_0x24aabd){return _0x548c66(_0x24aabd);}};if(!this[_0x49ea3f(0x1c4)])return;await _0x169316[_0x49ea3f(0x1a8)](sleep,0x1e),this[_0x49ea3f(0x1ec)][_0x49ea3f(0x211)](),this[_0x49ea3f(0x1c4)]=![],this[_0x49ea3f(0x199)](this['_events']);const _0x5269d9=this[_0x49ea3f(0x1af)](this[_0x49ea3f(0x1c2)]),_0x41c541=path[_0x49ea3f(0x19a)](process[_0x49ea3f(0x1ca)](),_0x3dcceb);fs['writeFile'](_0x41c541,_0x5269d9,_0xefb572=>{const _0x65bde5=_0x49ea3f;if(_0xefb572){_0x169316[_0x65bde5(0x1e9)](debug,'Error\x20in\x20writing\x20html\x20'+_0xefb572['toString']());return;}_0x169316[_0x65bde5(0x1a8)](debug,_0x65bde5(0x1f8)+_0x41c541);});if(_0x1d0ad9)return this[_0x49ea3f(0x209)](this[_0x49ea3f(0x1c2)],_0x1d0ad9);}static[a78_0x33832f(0x1af)](_0x20ee7a){const _0x46e46a=a78_0x33832f,_0x301048={};_0x301048[_0x46e46a(0x1cf)]=_0x46e46a(0x1d3),_0x301048[_0x46e46a(0x1e7)]='<h1>Performance\x20Report</h1>',_0x301048['KGZPb']='<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>',_0x301048['Ahiwk']=_0x46e46a(0x1e0);const _0x20eea6=_0x301048;let _0x20b94c=_0x20eea6[_0x46e46a(0x1cf)];return _0x20b94c+=_0x20eea6[_0x46e46a(0x1e7)],_0x20b94c+=_0x20eea6[_0x46e46a(0x1c1)],_0x20ee7a[_0x46e46a(0x19d)](_0x374819=>{const _0x5dca78=_0x46e46a;_0x20b94c+=_0x5dca78(0x1c7)+_0x374819['name']+_0x5dca78(0x210)+_0x374819[_0x5dca78(0x1f5)]+_0x5dca78(0x1c0);}),_0x20b94c+=_0x20eea6[_0x46e46a(0x1fd)],_0x20b94c;}static[a78_0x33832f(0x199)](_0x62e32b){const _0x4f4b85=a78_0x33832f;if(!this[_0x4f4b85(0x20d)])return;const _0x59b6fa={};_0x62e32b[_0x4f4b85(0x1a1)](_0xe6a7c8=>{const _0x43f77b=_0x4f4b85;!_0x59b6fa[_0xe6a7c8['name']]&&(_0x59b6fa[_0xe6a7c8['name']]=0x0),_0x59b6fa[_0xe6a7c8[_0x43f77b(0x1ad)]]+=_0xe6a7c8[_0x43f77b(0x1f5)];});const _0x289ff1=Object[_0x4f4b85(0x205)](_0x59b6fa)[_0x4f4b85(0x1a1)](([_0xe73711,_0x5db466])=>{const _0x14cd36=_0x4f4b85,_0x1f5a95={};return _0x1f5a95[_0x14cd36(0x1ad)]=_0xe73711,_0x1f5a95['duration']=_0x5db466,_0x1f5a95;});fs[_0x4f4b85(0x1dc)](this[_0x4f4b85(0x20d)],JSON[_0x4f4b85(0x1eb)](_0x289ff1));}static['isEnabled'](){const _0x474f1d=a78_0x33832f,_0x26af4f={};_0x26af4f[_0x474f1d(0x1f4)]=function(_0x4856ba,_0x539baf){return _0x4856ba===_0x539baf;},_0x26af4f[_0x474f1d(0x19c)]=_0x474f1d(0x201);const _0xde1ed1=_0x26af4f;return!_0xde1ed1[_0x474f1d(0x1f4)](process[_0x474f1d(0x1f2)][_0x474f1d(0x1e3)],_0xde1ed1['CdMit']);}static['measure'](_0xc68c23,_0x2ae766,_0x5b5cdb=null,_0x2093a7=null){const _0x459d08=a78_0x33832f,_0x5bb9c7={};_0x5bb9c7['aGDYj']=function(_0x2875b5,_0x292a46){return _0x2875b5+_0x292a46;},_0x5bb9c7['xNcIU']=_0x459d08(0x194),_0x5bb9c7[_0x459d08(0x1de)]=_0x459d08(0x1b5),_0x5bb9c7['DXnjO']=function(_0x46132b,_0x1cbbfc){return _0x46132b instanceof _0x1cbbfc;};const _0x28f360=_0x5bb9c7;try{if(this[_0x459d08(0x1c4)]&&this['isEnabled']()){let _0x42ab8b=_0xc68c23;_0x5b5cdb&&(_0x42ab8b=_0xc68c23+'['+JSON[_0x459d08(0x1eb)](_0x5b5cdb)+']');const _0x198c99=_0x28f360[_0x459d08(0x1e1)](_0x42ab8b,_0x28f360['xNcIU']),_0x2c7427=_0x28f360[_0x459d08(0x1e1)](_0x42ab8b,_0x28f360['vyHCK']);performance[_0x459d08(0x1df)](_0x198c99);const _0x5440cf=_0x2ae766[_0x459d08(0x207)](null,_0x2093a7);if(_0x28f360[_0x459d08(0x20b)](_0x5440cf,Promise))return new Promise((_0x35aada,_0x13246e)=>{const _0x4b22a4=_0x459d08;_0x5440cf[_0x4b22a4(0x1d1)](_0x2a1add=>_0x35aada(_0x2a1add))['catch'](_0x23044b=>_0x13246e(_0x23044b))[_0x4b22a4(0x204)](()=>{const _0x3d45d1=_0x4b22a4;performance[_0x3d45d1(0x1df)](_0x2c7427),performance[_0x3d45d1(0x1d2)](_0x42ab8b,_0x198c99,_0x2c7427);});});;return performance[_0x459d08(0x1df)](_0x2c7427),performance[_0x459d08(0x1d2)](_0x42ab8b,_0x198c99,_0x2c7427),_0x5440cf;};return _0x2ae766[_0x459d08(0x207)](null,_0x2093a7);}catch(_0x3728b3){return _0x2ae766[_0x459d08(0x207)](null,_0x2093a7);}}static[a78_0x33832f(0x1ee)](_0x7b1273,_0x42c920){const _0x316186=this;return function(){const _0x1b88b2=a78_0x2851,_0xc51219=[_0x7b1273,_0x42c920,null][_0x1b88b2(0x1e8)](arguments);return _0x316186[_0x1b88b2(0x1d2)][_0x1b88b2(0x207)](_0x316186,_0xc51219);};}static[a78_0x33832f(0x1dd)](){const _0x20b9cf=a78_0x33832f,_0x3a4fbb={};_0x3a4fbb['zXKjd']=function(_0x141858,_0x2b4a46){return _0x141858/_0x2b4a46;},_0x3a4fbb['ugJxs']=function(_0xda615f,_0x155851){return _0xda615f+_0x155851;},_0x3a4fbb[_0x20b9cf(0x1ac)]=function(_0x341d0c,_0x1e49bd){return _0x341d0c*_0x1e49bd;};const _0x582d5c=_0x3a4fbb,_0x5efd00=/(^.*)\[(.*)\]$/,_0x49a8ab={},_0x582a1d={};for(const _0x3da8f4 of this[_0x20b9cf(0x1ae)]){const _0x22c327=_0x3da8f4['name'][_0x20b9cf(0x19f)](_0x5efd00),_0x2586f3={};_0x2586f3[_0x20b9cf(0x1ad)]=_0x3da8f4[_0x20b9cf(0x1ad)],_0x2586f3[_0x20b9cf(0x1f5)]=_0x3da8f4['duration']||0x0;const _0x5c5fb4=_0x2586f3;_0x22c327&&(_0x5c5fb4[_0x20b9cf(0x1ad)]=_0x22c327[0x1],_0x5c5fb4[_0x20b9cf(0x1a6)]=JSON[_0x20b9cf(0x1be)](_0x22c327[0x2]));if(_0x49a8ab[_0x5c5fb4[_0x20b9cf(0x1ad)]]){const _0x226285=_0x49a8ab[_0x5c5fb4[_0x20b9cf(0x1ad)]],_0x5d1510=_0x582a1d[_0x5c5fb4['name']];_0x49a8ab[_0x5c5fb4[_0x20b9cf(0x1ad)]]['duration']=_0x582d5c[_0x20b9cf(0x1e4)](_0x582d5c[_0x20b9cf(0x1f6)](_0x582d5c['ojtze'](_0x226285[_0x20b9cf(0x1f5)],_0x5d1510),_0x5c5fb4[_0x20b9cf(0x1f5)]),_0x582d5c[_0x20b9cf(0x1f6)](0x1,_0x5d1510)),_0x582a1d[_0x5c5fb4[_0x20b9cf(0x1ad)]]++;}else _0x49a8ab[_0x5c5fb4[_0x20b9cf(0x1ad)]]=_0x5c5fb4,_0x582a1d[_0x5c5fb4[_0x20b9cf(0x1ad)]]=0x1;}return Object['values'](_0x49a8ab);}static[a78_0x33832f(0x1e6)](){const _0x4c0c8e=a78_0x33832f,_0x4debaa={};_0x4debaa[_0x4c0c8e(0x1cd)]=function(_0x2a92ed,_0x1f0ea3){return _0x2a92ed===_0x1f0ea3;},_0x4debaa[_0x4c0c8e(0x1b3)]=function(_0x47eb6f,_0x26fbb4){return _0x47eb6f+_0x26fbb4;};const _0x27ffde=_0x4debaa;if(_0x27ffde[_0x4c0c8e(0x1cd)](this[_0x4c0c8e(0x1ae)][_0x4c0c8e(0x1d8)],0x0))return;const _0x541e30=this[_0x4c0c8e(0x1dd)](),_0x4f172b=JSON[_0x4c0c8e(0x1eb)](_0x541e30),_0x8d89ac=_0x27ffde[_0x4c0c8e(0x1b3)](_0x4f172b[_0x4c0c8e(0x1bb)](0x1,-0x1),',');fs['appendFileSync'](this[_0x4c0c8e(0x20d)],_0x8d89ac);}static['finalizePerfMeasures'](){const _0x58efd9=a78_0x33832f,_0x4c9f06={};_0x4c9f06[_0x58efd9(0x208)]=function(_0x14170d,_0x2fd902){return _0x14170d===_0x2fd902;},_0x4c9f06[_0x58efd9(0x197)]=function(_0x5af8f5,_0x4dbc6f){return _0x5af8f5>_0x4dbc6f;};const _0x4d0907=_0x4c9f06;if(!this[_0x58efd9(0x1c4)]||_0x4d0907['dZSQz'](this[_0x58efd9(0x1ae)][_0x58efd9(0x1d8)],0x0))return[];if(!fs['existsSync'](this['jsonReportFileName']))return this['_measureEvents'];let _0x142de3=fs[_0x58efd9(0x20a)](this[_0x58efd9(0x20d)])[_0x58efd9(0x1e2)]();_0x142de3='['+_0x142de3[_0x58efd9(0x1bb)](0x0,-0x1)+']';let _0x6576c5=JSON[_0x58efd9(0x1be)](_0x142de3);return _0x4d0907[_0x58efd9(0x197)](this[_0x58efd9(0x1ae)][_0x58efd9(0x1d8)],0x0)&&(_0x6576c5=_0x6576c5[_0x58efd9(0x1e8)](this[_0x58efd9(0x1dd)]())),this[_0x58efd9(0x1ec)][_0x58efd9(0x211)](),fs[_0x58efd9(0x1bd)](this[_0x58efd9(0x20d)]),_0x6576c5;}static[a78_0x33832f(0x1fa)](){const _0x2c166b=a78_0x33832f,_0x43d5d1={};_0x43d5d1[_0x2c166b(0x1ab)]=function(_0x6e96ff,_0x7ba133){return _0x6e96ff===_0x7ba133;},_0x43d5d1[_0x2c166b(0x20c)]=function(_0x24504b,_0x38cda8){return _0x24504b+_0x38cda8;};const _0x1c5058=_0x43d5d1;if(_0x1c5058[_0x2c166b(0x1ab)](this['_errorEvents']['length'],0x0))return;const _0x58c019=JSON[_0x2c166b(0x1eb)](this[_0x2c166b(0x1bf)]),_0x257363=_0x1c5058[_0x2c166b(0x20c)](_0x58c019[_0x2c166b(0x1bb)](0x1,-0x1),',');fs[_0x2c166b(0x1cc)](this[_0x2c166b(0x1a3)],_0x257363);}static[a78_0x33832f(0x1d5)](){const _0x43ad72=a78_0x33832f,_0x29e9b0={};_0x29e9b0[_0x43ad72(0x1c9)]=function(_0x177808,_0x2aab82){return _0x177808>_0x2aab82;};const _0x28cbf9=_0x29e9b0;if(!fs[_0x43ad72(0x1db)](this['errorReportFileName']))return this[_0x43ad72(0x1bf)];let _0x2ced79=fs['readFileSync'](this[_0x43ad72(0x1b2)])[_0x43ad72(0x1e2)]();_0x2ced79='['+_0x2ced79[_0x43ad72(0x1bb)](0x0,-0x1)+']';let _0x3fb861=JSON[_0x43ad72(0x1be)](_0x2ced79);return _0x28cbf9[_0x43ad72(0x1c9)](this[_0x43ad72(0x1bf)][_0x43ad72(0x1d8)],0x0)&&(_0x3fb861=_0x3fb861[_0x43ad72(0x1e8)](this[_0x43ad72(0x1bf)])),fs[_0x43ad72(0x1bd)](this[_0x43ad72(0x1b2)]),_0x3fb861;}static['captureError'](_0x2d1db8){const _0x4d515c=a78_0x33832f;if(!this['isEnabled']())return;this[_0x4d515c(0x1bf)]['push']({'message':_0x2d1db8[_0x4d515c(0x1d0)],'trace':_0x2d1db8[_0x4d515c(0x1b0)],'code':_0x2d1db8[_0x4d515c(0x1d7)]||null,'time':new Date()});}static[a78_0x33832f(0x198)](){const _0x498e2b=a78_0x33832f,_0x3a1c33={};_0x3a1c33[_0x498e2b(0x1a9)]=_0x498e2b(0x19b);const _0x2475d8=_0x3a1c33;try{if(!this[_0x498e2b(0x195)]())return;this[_0x498e2b(0x1ec)][_0x498e2b(0x211)](),this[_0x498e2b(0x1e6)](),this[_0x498e2b(0x1fa)]();}catch{logger[_0x498e2b(0x1b9)](_0x2475d8['LSRMv']);}}static[a78_0x33832f(0x20e)](){const _0x2b6d50=a78_0x33832f,_0x40bd7b=this[_0x2b6d50(0x1b1)](),_0x1df8ec=this['finalizeErrors']();if(!this[_0x2b6d50(0x195)]()){const _0x1c1e88={};return _0x1c1e88[_0x2b6d50(0x1d4)]=[],_0x1c1e88[_0x2b6d50(0x206)]=[],_0x1c1e88;}const _0x1e9fe5={};return _0x1e9fe5[_0x2b6d50(0x1d4)]=_0x40bd7b,_0x1e9fe5[_0x2b6d50(0x206)]=_0x1df8ec,_0x1e9fe5;}}function a78_0x3b6b(){const _0x39dba8=['winstonLogger','match','Time\x20for\x20','map','perf_hooks','errorFile','performance-report.json','5227516wDEZqq','meta','EazSy','APfdY','LSRMv','308382BNAaDY','YXpbz','ojtze','name','_measureEvents','generateHTMLReport','stack','finalizePerfMeasures','errorReportFileName','QfoiA','HXqLP','-end','entryTypes','getEventsFromJSON','nMimX','debug','aNnRX','slice','Error\x20in\x20doing\x20csv\x20operations:\x20','unlinkSync','parse','_errorEvents','</td></tr>','KGZPb','_events','lfzqh','started','buffered','./logger','<tr><td>','1103068gqryDS','VQERj','cwd','5gFdtEo','appendFileSync','jvVDj','67130uDnqbO','nmbUJ','message','then','measure','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','measures','finalizeErrors','gUaNk','code','length','entryType','ezTXI','existsSync','writeFileSync','getCleanedPerfEvents','vyHCK','mark','</tbody></table></body></html>','aGDYj','toString','BROWSERSTACK_SDK_INSTRUMENTATION','zXKjd','19040400RYrzgr','pushPerfMeasures','oGVDK','concat','zVdDP','error-report.json','stringify','_observer','3326744exgkzx','measureWrapper','dMiks','reduce','calculateTimesFromMultipleFiles','env','\x20for\x20all\x20processes\x20is\x20','JtMpV','duration','ugJxs','path','Performance\x20report\x20is\x20at\x20','MWUwt','pushErrors','stopAndGenerate','EtSZS','Ahiwk','8wNDGdW','getEntries','getPerformance','false','observe','1783434gTwgLF','finally','entries','errors','apply','dZSQz','calculateTimeFromEvents','readFileSync','DXnjO','KYdRf','jsonReportFileName','finalize','startMonitoring','</td><td>','disconnect','IvSXg','-start','isEnabled','push','SAQPh','stopMonitoring','generateJSON','join','Error\x20stopping\x20monitoring','CdMit','forEach'];a78_0x3b6b=function(){return _0x39dba8;};return a78_0x3b6b();}function a78_0x2851(_0x5ccfba,_0x5861f1){const _0x3b6b9a=a78_0x3b6b();return a78_0x2851=function(_0x285167,_0x42f25d){_0x285167=_0x285167-0x194;let _0x30c415=_0x3b6b9a[_0x285167];return _0x30c415;},a78_0x2851(_0x5ccfba,_0x5861f1);}module['exports']=PerformanceTester;
|