browserstack-node-sdk 1.34.4 → 1.34.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/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/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.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 a66_0x2295d4=a66_0x5af5;function a66_0x990c(){const _0x37e567=['4235928KYBmdD','40hEHsKG','loggerConsole','5068JbAija','Console','87410fNkfwj','winston','File','logDir','createLogger','message','format','2050479yNTPEB','66RtpgxW','\x20-\x20','5pYUDFk','join','5158lWQinB','colorize','119862KcrIeW','debugLoggerFile','608foczLD','16UEqXuk','name','timestamp','fileLogger','winstonLogger','3834NgKkJU','/usage.log','level','log','printf','loggerFile','existsSync','path','YYYY-MM-DD\x20HH:mm:ss','transports','combine'];a66_0x990c=function(){return _0x37e567;};return a66_0x990c();}(function(_0x1bebd3,_0x3ea2a0){const _0x422e22=a66_0x5af5,_0x49736b=_0x1bebd3();while(!![]){try{const _0x3c0b49=-parseInt(_0x422e22(0x1ad))/0x1*(-parseInt(_0x422e22(0x1a8))/0x2)+-parseInt(_0x422e22(0x1b2))/0x3*(parseInt(_0x422e22(0x1be))/0x4)+parseInt(_0x422e22(0x1a6))/0x5*(parseInt(_0x422e22(0x1aa))/0x6)+-parseInt(_0x422e22(0x1c0))/0x7*(parseInt(_0x422e22(0x1ac))/0x8)+-parseInt(_0x422e22(0x1a3))/0x9+-parseInt(_0x422e22(0x1c2))/0xa*(-parseInt(_0x422e22(0x1a4))/0xb)+parseInt(_0x422e22(0x1bd))/0xc;if(_0x3c0b49===_0x3ea2a0)break;else _0x49736b['push'](_0x49736b['shift']());}catch(_0x259033){_0x49736b['push'](_0x49736b['shift']());}}}(a66_0x990c,0x29c26));const winston=require(a66_0x2295d4(0x1c3)),os=require('os'),fs=require('fs'),path=require(a66_0x2295d4(0x1b9)),logDir=a66_0x2295d4(0x1b5);!fs[a66_0x2295d4(0x1b8)](logDir)&&fs['mkdirSync'](logDir);const a66_0x650cd2={};a66_0x650cd2[a66_0x2295d4(0x1ae)]='console.info';const transports={'loggerConsole':new winston[(a66_0x2295d4(0x1bb))][(a66_0x2295d4(0x1c1))](a66_0x650cd2),'loggerFile':new winston['transports'][(a66_0x2295d4(0x1c4))]({'filename':path['join'](logDir,a66_0x2295d4(0x1b3))}),'debugLoggerFile':new winston['transports']['File']({'filename':path[a66_0x2295d4(0x1a7)](logDir,'/usage-debug.log'),'level':'silly'})},a66_0x2f7358={};a66_0x2f7358['format']=a66_0x2295d4(0x1ba);function a66_0x5af5(_0x4baeef,_0x3ec991){const _0x990cdb=a66_0x990c();return a66_0x5af5=function(_0x5af5fd,_0x3dab87){_0x5af5fd=_0x5af5fd-0x1a0;let _0x37a135=_0x990cdb[_0x5af5fd];return _0x37a135;},a66_0x5af5(_0x4baeef,_0x3ec991);}const a66_0xf00721={};a66_0xf00721[a66_0x2295d4(0x1b4)]=!![];const winstonLoggerParams={'format':winston['format'][a66_0x2295d4(0x1bc)](winston['format']['timestamp'](a66_0x2f7358),winston[a66_0x2295d4(0x1a2)][a66_0x2295d4(0x1a9)](a66_0xf00721),winston[a66_0x2295d4(0x1a2)][a66_0x2295d4(0x1b6)](_0x46683c=>_0x46683c[a66_0x2295d4(0x1af)]+a66_0x2295d4(0x1a5)+_0x46683c[a66_0x2295d4(0x1b4)]+':\x20'+_0x46683c[a66_0x2295d4(0x1a1)])),'transports':[transports[a66_0x2295d4(0x1bf)],transports[a66_0x2295d4(0x1b7)],transports[a66_0x2295d4(0x1ab)]]},a66_0x524c51={};a66_0x524c51[a66_0x2295d4(0x1a2)]=a66_0x2295d4(0x1ba);const a66_0x554769={};a66_0x554769['level']=!![];const winstonFileLoggerParams={'format':winston[a66_0x2295d4(0x1a2)][a66_0x2295d4(0x1bc)](winston[a66_0x2295d4(0x1a2)][a66_0x2295d4(0x1af)](a66_0x524c51),winston[a66_0x2295d4(0x1a2)]['colorize'](a66_0x554769),winston[a66_0x2295d4(0x1a2)][a66_0x2295d4(0x1b6)](_0x1c2a5f=>_0x1c2a5f[a66_0x2295d4(0x1b4)]+':\x20'+_0x1c2a5f[a66_0x2295d4(0x1a1)])),'transports':[transports['loggerFile'],transports[a66_0x2295d4(0x1ab)]]};exports[a66_0x2295d4(0x1b1)]=new winston[(a66_0x2295d4(0x1a0))](winstonLoggerParams),exports[a66_0x2295d4(0x1b0)]=new winston[(a66_0x2295d4(0x1a0))](winstonFileLoggerParams),exports[a66_0x2295d4(0x1c5)]=logDir,exports[a66_0x2295d4(0x1bb)]=transports;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a67_0x2cee(){var _0x147125=['patchQuit','patchScreenshot','BS_TESTOPS_ALLOW_SCREENSHOTS','2339676DJjwrj','DJtHN','983070PgHgIw','CDdAC','8zceIFR','BWPJy','overrideTakeScreenshot','initScreenshot','3435633QLOTmu','true','mhNZZ','6PbfoTQ','initQuit','RLKjc','env','quitCount_','toISOString','981644cidzsI','iLGkY','then','0|1|3|2|4','pid','UVasT','xebTs','emit','2120979qXcoXL','split','TEST_SCREENSHOT','sqsFg','bs:addLog:','83247qyvQdN','takeScreenshot','35636wPvhrI','overrideQuit','yhWAL','quit','wJvdX'];a67_0x2cee=function(){return _0x147125;};return a67_0x2cee();}function a67_0x4df5(_0x19fe75,_0x15d305){var _0x2cee48=a67_0x2cee();return a67_0x4df5=function(_0x4df5f4,_0x4553a0){_0x4df5f4=_0x4df5f4-0x199;var _0x2878e2=_0x2cee48[_0x4df5f4];return _0x2878e2;},a67_0x4df5(_0x19fe75,_0x15d305);}var a67_0x56dcb6=a67_0x4df5;(function(_0x2ea8cb,_0xd90f){var _0x5cefd1=a67_0x4df5,_0x381352=_0x2ea8cb();while(!![]){try{var _0x31838f=parseInt(_0x5cefd1(0x1b6))/0x1+-parseInt(_0x5cefd1(0x1a1))/0x2*(parseInt(_0x5cefd1(0x1b4))/0x3)+-parseInt(_0x5cefd1(0x1a7))/0x4+parseInt(_0x5cefd1(0x1c0))/0x5+-parseInt(_0x5cefd1(0x1be))/0x6+parseInt(_0x5cefd1(0x1af))/0x7+-parseInt(_0x5cefd1(0x19a))/0x8*(-parseInt(_0x5cefd1(0x19e))/0x9);if(_0x31838f===_0xd90f)break;else _0x381352['push'](_0x381352['shift']());}catch(_0x5d179c){_0x381352['push'](_0x381352['shift']());}}}(a67_0x2cee,0x306ec),exports[a67_0x56dcb6(0x19c)]=_0x4607c4=>{var _0x3da5f7=a67_0x56dcb6,_0x495e5e={'DJtHN':'4|5|2|1|0|3','fdbRQ':_0x3da5f7(0x1b1),'xebTs':function(_0x357f22,_0x19e669){return _0x357f22(_0x19e669);},'AycQL':function(_0x476c9a,_0x240c21){return _0x476c9a!==_0x240c21;},'RLKjc':_0x3da5f7(0x19f)},_0x59881a=_0x495e5e[_0x3da5f7(0x1bf)][_0x3da5f7(0x1b0)]('|'),_0x5ee4d8=0x0;while(!![]){switch(_0x59881a[_0x5ee4d8++]){case'0':_0x4607c4[_0x3da5f7(0x19d)]=_0x4607c4[_0x3da5f7(0x1b5)];continue;case'1':_0x4607c4[_0x3da5f7(0x1bc)]=!![];continue;case'2':if(_0x4607c4[_0x3da5f7(0x1bc)])return;continue;case'3':_0x4607c4[_0x3da5f7(0x1b5)]=()=>{var _0x40301a=_0x3da5f7,_0x55b52b={'iLGkY':_0x16fcf0[_0x40301a(0x1ac)],'BWPJy':function(_0x51cc81,_0x407510){return _0x16fcf0['AYSSB'](_0x51cc81,_0x407510);}};return new Promise(function(_0x480eb4,_0x31fb65){var _0xa7eede=_0x40301a;_0x4607c4['initScreenshot']()[_0xa7eede(0x1a9)](_0x1f9171=>{var _0x553a87=_0xa7eede;process[_0x553a87(0x1ae)](_0x553a87(0x1b3)+process[_0x553a87(0x1ab)],{'timestamp':new Date()[_0x553a87(0x1a6)](),'message':_0x1f9171,'kind':_0x55b52b[_0x553a87(0x1a8)]}),_0x55b52b[_0x553a87(0x19b)](_0x480eb4,_0x1f9171);});});};continue;case'4':var _0x16fcf0={'UVasT':_0x495e5e['fdbRQ'],'AYSSB':function(_0x11e9fd,_0x14a152){var _0x3ba2a4=_0x3da5f7;return _0x495e5e[_0x3ba2a4(0x1ad)](_0x11e9fd,_0x14a152);}};continue;case'5':if(_0x495e5e['AycQL'](process[_0x3da5f7(0x1a4)][_0x3da5f7(0x1bd)],_0x495e5e[_0x3da5f7(0x1a3)]))return;continue;}break;}},exports[a67_0x56dcb6(0x1b7)]=(_0x34f415,_0x5b006c=null)=>{var _0x2cd59e=a67_0x56dcb6,_0x25ae26={'mhNZZ':_0x2cd59e(0x1aa),'gMYtT':function(_0x2fefda){return _0x2fefda();},'yhWAL':function(_0x4f1e3b,_0x56315a){return _0x4f1e3b>_0x56315a;}},_0x5251f2=_0x25ae26[_0x2cd59e(0x1a0)][_0x2cd59e(0x1b0)]('|'),_0x3b29d0=0x0;while(!![]){switch(_0x5251f2[_0x3b29d0++]){case'0':var _0x3f1d77={'CDdAC':function(_0x10e7a7){return _0x25ae26['gMYtT'](_0x10e7a7);},'wJvdX':function(_0x5e92e1,_0x31844d){var _0x558a2c=_0x2cd59e;return _0x25ae26[_0x558a2c(0x1b8)](_0x5e92e1,_0x31844d);},'sqsFg':function(_0x3fb555,_0x3bf8){var _0xdfe6bc=_0x2cd59e;return _0x25ae26[_0xdfe6bc(0x1b8)](_0x3fb555,_0x3bf8);}};continue;case'1':if(_0x34f415['patchQuit'])return;continue;case'2':_0x34f415[_0x2cd59e(0x1a2)]=_0x34f415[_0x2cd59e(0x1b9)];continue;case'3':_0x34f415[_0x2cd59e(0x1bb)]=!![];continue;case'4':_0x34f415[_0x2cd59e(0x1b9)]=()=>{var _0x50ccd1=_0x2cd59e;if(_0x5b006c){_0x5b006c['quitCount_']+=0x1;if(_0x3f1d77[_0x50ccd1(0x1ba)](_0x5b006c[_0x50ccd1(0x1a5)],0x1))return _0x34f415[_0x50ccd1(0x1a2)]();}else{_0x34f415['quitCount_']+=0x1;if(_0x3f1d77[_0x50ccd1(0x1b2)](_0x34f415[_0x50ccd1(0x1a5)],0x1))return _0x34f415[_0x50ccd1(0x1a2)]();}return new Promise(function(_0x41fece){var _0x15c8fe=_0x50ccd1;_0x3f1d77[_0x15c8fe(0x199)](_0x41fece);});};continue;}break;}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a68_0x4607b7=a68_0x36d2;(function(_0x4c35ec,_0x3392c8){const _0x51a6c1=a68_0x36d2,_0x39d30d=_0x4c35ec();while(!![]){try{const _0x31b154=-parseInt(_0x51a6c1(0x183))/0x1+parseInt(_0x51a6c1(0x1b3))/0x2*(parseInt(_0x51a6c1(0x18c))/0x3)+parseInt(_0x51a6c1(0x17c))/0x4+-parseInt(_0x51a6c1(0x1b0))/0x5*(parseInt(_0x51a6c1(0x181))/0x6)+parseInt(_0x51a6c1(0x17e))/0x7+-parseInt(_0x51a6c1(0x1c1))/0x8+-parseInt(_0x51a6c1(0x1ba))/0x9*(-parseInt(_0x51a6c1(0x1ab))/0xa);if(_0x31b154===_0x3392c8)break;else _0x39d30d['push'](_0x39d30d['shift']());}catch(_0x40bdb3){_0x39d30d['push'](_0x39d30d['shift']());}}}(a68_0x1ad4,0x920e9));function a68_0x1ad4(){const _0x42f9b6=['sJouC','2166720KACrRd','LLEbI','1929214iqgGyO','Error\x20creating\x20percy\x20config:\x20','api/app_percy/get_project_token?name=','87366aqXzNz','../helper','18165KQYtno','projectName','version','app:exec','Percy\x20fetch\x20token\x20success','percy.log','&type=','GlRUs','GET','3VjYnhX','rjNjg','flags','stop','nodeRequest','exports','percy.json','JhgTE','Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20','wBUms','pipe','exec:stop','percy/healthcheck','stderr','bLtyn','push','createPercyConfig','app','fetchPercyToken','error','env','ltbsn','MxegL','SkZhG','debug','start','lzyvz','getBinaryPath','UZrzb','IMRNt','join','20rxvjup','ENV_VAR','Percy\x20healthcheck\x20successful','assign','vlyuz','15KjSXlq','percyOptions','WZXEx','63670HlaByT','automate','isProcessRunning','stringify','writeFile','mYlBK','../logger','773343SrozfA','exec','token','VSbgv','close','JnWLT','winstonLogger','2886992CZyHXO','SjtqB',':start','PERCY_SERVER_ADDRESS','./PercyBinary'];a68_0x1ad4=function(){return _0x42f9b6;};return a68_0x1ad4();}const fs=require('fs'),path=require('path'),os=require('os'),{spawn}=require('child_process'),helper=require(a68_0x4607b7(0x182)),logger=require(a68_0x4607b7(0x1b9))[a68_0x4607b7(0x1c0)],{logDir}=require(a68_0x4607b7(0x1b9)),testHubConstants=require('../../helpers/testhub/constants'),PercyBinary=require(a68_0x4607b7(0x1c5));class Percy{#logfile=path[a68_0x4607b7(0x1aa)](logDir,a68_0x4607b7(0x188));#address=process[a68_0x4607b7(0x1a0)][a68_0x4607b7(0x1c4)]||'http://localhost:5338';#binaryPath=null;#config=null;#proc=null;#isApp=![];[a68_0x4607b7(0x1b5)]=![];constructor(_0x8af9c8){this.#config=_0x8af9c8,!!_0x8af9c8['app']&&(this.#isApp=!![]);}async #getBinaryPath(){const _0xbf28d6=a68_0x4607b7;if(!this.#binaryPath){const _0x5900eb=new PercyBinary();this.#binaryPath=await _0x5900eb[_0xbf28d6(0x1a7)](this.#config);}return this.#binaryPath;}async #sleep(_0x3c2f56){return new Promise(_0x5da9ac=>setTimeout(_0x5da9ac,_0x3c2f56));}async['healthcheck'](){const _0x5e18b7=a68_0x4607b7,_0x1ec698={};_0x1ec698['bLtyn']='GET',_0x1ec698[_0x5e18b7(0x1c2)]=_0x5e18b7(0x198);const _0x21779d=_0x1ec698;try{const _0x457e1b=await helper[_0x5e18b7(0x190)](_0x21779d[_0x5e18b7(0x19a)],_0x21779d[_0x5e18b7(0x1c2)],null,null,this.#address);if(_0x457e1b)return!![];}catch(_0x204c6f){return![];}}async[a68_0x4607b7(0x1a5)](){const _0x4bb82e=a68_0x4607b7,_0xe67484={'lzyvz':_0x4bb82e(0x186),'nHErY':_0x4bb82e(0x1bb),'mLFvT':function(_0x45e9a7,_0x10f084,_0x3b7c41,_0xdb7ace){return _0x45e9a7(_0x10f084,_0x3b7c41,_0xdb7ace);},'VUvbF':'close','cHQkD':_0x4bb82e(0x1ad)},_0x57b098=await this.#getBinaryPath(),_0x247b77={};_0x247b77[_0x4bb82e(0x18e)]='a';const _0x56b147=fs['createWriteStream'](this.#logfile,_0x247b77),_0x33fad0=await this[_0x4bb82e(0x19e)](),_0x3534c2=await this[_0x4bb82e(0x19c)]();if(!_0x33fad0)return![];const _0x5059e0=[(this.#isApp?_0xe67484[_0x4bb82e(0x1a6)]:_0xe67484['nHErY'])+_0x4bb82e(0x1c3)];_0x3534c2&&_0x5059e0[_0x4bb82e(0x19b)]('-c',_0x3534c2);this.#proc=_0xe67484['mLFvT'](spawn,_0x57b098,_0x5059e0,{'env':Object[_0x4bb82e(0x1ae)](process[_0x4bb82e(0x1a0)],{'PERCY_TOKEN':_0x33fad0,'TH_BUILD_UUID':process['env'][testHubConstants[_0x4bb82e(0x1ac)]['BROWSERSTACK_TESTHUB_UUID']]})}),this.#proc['stdout'][_0x4bb82e(0x196)](_0x56b147),this.#proc[_0x4bb82e(0x199)][_0x4bb82e(0x196)](_0x56b147),this[_0x4bb82e(0x1b5)]=!![];var _0xcbeb0c=this;this.#proc['on'](_0xe67484['VUvbF'],function(_0x19f49b){_0xcbeb0c['isProcessRunning']=![];});do{const _0x31ec9f=await this['healthcheck']();if(_0x31ec9f)return logger[_0x4bb82e(0x1a4)](_0xe67484['cHQkD']),!![];await this.#sleep(0x3e8);}while(this[_0x4bb82e(0x1b5)]);return![];}async[a68_0x4607b7(0x18f)](){const _0x4c6063=a68_0x4607b7,_0x3c1671={'UZrzb':function(_0x3d844d,_0x24111f){return _0x3d844d(_0x24111f);},'WZXEx':function(_0x169aee,_0xe47309,_0x10e878){return _0x169aee(_0xe47309,_0x10e878);},'rjNjg':_0x4c6063(0x197),'vlyuz':_0x4c6063(0x1be)},_0x5ea7bd=await this.#getBinaryPath();return new Promise((_0x554c03,_0x13acfc)=>{const _0x3416e6=_0x4c6063,_0x5df643=_0x3c1671[_0x3416e6(0x1b2)](spawn,_0x5ea7bd,[_0x3c1671[_0x3416e6(0x18d)]]);_0x5df643['on'](_0x3c1671[_0x3416e6(0x1af)],_0x57e553=>{const _0x2d5656=_0x3416e6;this[_0x2d5656(0x1b5)]=![],_0x3c1671[_0x2d5656(0x1a8)](_0x554c03,_0x57e553);});});}['isRunning'](){return this['isProcessRunning'];}async[a68_0x4607b7(0x19e)](){const _0x25a826=a68_0x4607b7,_0x10c9ab={};_0x10c9ab[_0x25a826(0x17d)]=_0x25a826(0x19d),_0x10c9ab[_0x25a826(0x1b8)]=_0x25a826(0x1b4),_0x10c9ab[_0x25a826(0x195)]=_0x25a826(0x18b),_0x10c9ab[_0x25a826(0x1bd)]=_0x25a826(0x187);const _0x2c857e=_0x10c9ab,_0x11427b=this.#config[_0x25a826(0x184)];try{const _0x381004=this.#isApp?_0x2c857e[_0x25a826(0x17d)]:_0x2c857e[_0x25a826(0x1b8)],_0xd5d20e=await helper[_0x25a826(0x190)](_0x2c857e[_0x25a826(0x195)],_0x25a826(0x180)+_0x11427b+_0x25a826(0x189)+_0x381004,{},this.#config),_0x72d261=_0xd5d20e['data'];return logger[_0x25a826(0x1a4)](_0x2c857e['VSbgv']),_0x72d261[_0x25a826(0x1bc)];}catch(_0x403d7f){return logger[_0x25a826(0x19f)](_0x25a826(0x194)+_0x403d7f),null;}}async['createPercyConfig'](){const _0x3fd6f3=a68_0x4607b7,_0x1d0439={'SkZhG':function(_0x1bcb70,_0xf43248){return _0x1bcb70(_0xf43248);},'ltbsn':function(_0x4b96d0,_0x2e6a88){return _0x4b96d0+_0x2e6a88;},'JhgTE':'Percy\x20config\x20created\x20at\x20','sJouC':_0x3fd6f3(0x192)};if(!this.#config[_0x3fd6f3(0x1b1)])return null;const _0x36d1a2=path[_0x3fd6f3(0x1aa)](os['tmpdir'](),_0x1d0439[_0x3fd6f3(0x17b)]),_0x155b0a=this.#config[_0x3fd6f3(0x1b1)];return!_0x155b0a[_0x3fd6f3(0x185)]&&(_0x155b0a[_0x3fd6f3(0x185)]='2'),new Promise((_0x45dbf5,_0x31d03d)=>{const _0x1e56af=_0x3fd6f3,_0x5193fd={'IMRNt':function(_0x5a840c,_0x588fb1){const _0x5b9128=a68_0x36d2;return _0x1d0439[_0x5b9128(0x1a3)](_0x5a840c,_0x588fb1);},'MxegL':function(_0x1c5e93,_0x2500f9){const _0x4941ab=a68_0x36d2;return _0x1d0439[_0x4941ab(0x1a1)](_0x1c5e93,_0x2500f9);},'JnWLT':_0x1d0439[_0x1e56af(0x193)],'GlRUs':function(_0xc5c58,_0x72b094){const _0x4f0cd6=_0x1e56af;return _0x1d0439[_0x4f0cd6(0x1a3)](_0xc5c58,_0x72b094);}};fs[_0x1e56af(0x1b7)](_0x36d1a2,JSON[_0x1e56af(0x1b6)](_0x155b0a),_0x3def94=>{const _0x1edd07=_0x1e56af;_0x3def94&&(logger[_0x1edd07(0x19f)](_0x1edd07(0x17f)+_0x3def94),_0x5193fd[_0x1edd07(0x1a9)](_0x45dbf5,null)),logger['debug'](_0x5193fd[_0x1edd07(0x1a2)](_0x5193fd[_0x1edd07(0x1bf)],_0x36d1a2)),_0x5193fd[_0x1edd07(0x18a)](_0x45dbf5,_0x36d1a2);});});}}function a68_0x36d2(_0x582653,_0x165742){const _0x1ad42b=a68_0x1ad4();return a68_0x36d2=function(_0x36d22b,_0x1ea5ce){_0x36d22b=_0x36d22b-0x17b;let _0x577a4d=_0x1ad42b[_0x36d22b];return _0x577a4d;},a68_0x36d2(_0x582653,_0x165742);}module[a68_0x4607b7(0x191)]=Percy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a69_0x589b(_0x22285f,_0x5e9697){const _0x120ff9=a69_0x120f();return a69_0x589b=function(_0x589bae,_0x4d28e5){_0x589bae=_0x589bae-0x1e4;let _0x7dcb2f=_0x120ff9[_0x589bae];return _0x7dcb2f;},a69_0x589b(_0x22285f,_0x5e9697);}const a69_0x5bcbb1=a69_0x589b;(function(_0xd10458,_0x537744){const _0x5e3dc=a69_0x589b,_0xb9d8ce=_0xd10458();while(!![]){try{const _0x3bfc11=parseInt(_0x5e3dc(0x201))/0x1+parseInt(_0x5e3dc(0x223))/0x2*(-parseInt(_0x5e3dc(0x1eb))/0x3)+-parseInt(_0x5e3dc(0x1f1))/0x4+-parseInt(_0x5e3dc(0x1f6))/0x5*(-parseInt(_0x5e3dc(0x20d))/0x6)+parseInt(_0x5e3dc(0x22b))/0x7*(parseInt(_0x5e3dc(0x1ee))/0x8)+-parseInt(_0x5e3dc(0x245))/0x9*(-parseInt(_0x5e3dc(0x242))/0xa)+-parseInt(_0x5e3dc(0x210))/0xb;if(_0x3bfc11===_0x537744)break;else _0xb9d8ce['push'](_0xb9d8ce['shift']());}catch(_0x4b67d9){_0xb9d8ce['push'](_0xb9d8ce['shift']());}}}(a69_0x120f,0x93335));const {https}=require(a69_0x5bcbb1(0x256)),url=require('url'),yauzl=require(a69_0x5bcbb1(0x247)),fs=require('fs'),path=require(a69_0x5bcbb1(0x1f8)),os=require('os'),{spawn}=require(a69_0x5bcbb1(0x1fb)),HttpsProxyAgent=require(a69_0x5bcbb1(0x21b)),logger=require(a69_0x5bcbb1(0x21c))[a69_0x5bcbb1(0x248)];class PercyBinary{#hostOS=process[a69_0x5bcbb1(0x26a)];#httpPath=null;#binaryName=a69_0x5bcbb1(0x20c);#orderedPaths=[path[a69_0x5bcbb1(0x20f)](this.#homedir(),a69_0x5bcbb1(0x26f)),process['cwd'](),os['tmpdir']()];constructor(){const _0x5b81f1=a69_0x5bcbb1,_0x308832={};_0x308832[_0x5b81f1(0x22e)]='https://github.com/percy/cli/releases/latest/download',_0x308832[_0x5b81f1(0x26e)]=function(_0x3fb78b,_0x22285c){return _0x3fb78b+_0x22285c;},_0x308832['aMwYN']='/percy-osx.zip',_0x308832[_0x5b81f1(0x270)]=function(_0xcf7b41,_0xdb6e30){return _0xcf7b41+_0xdb6e30;},_0x308832['yOnXZ']=_0x5b81f1(0x266),_0x308832['FUMgY']=_0x5b81f1(0x254),_0x308832[_0x5b81f1(0x23b)]=function(_0x461ae4,_0x29c0eb){return _0x461ae4+_0x29c0eb;},_0x308832['Stcfw']=_0x5b81f1(0x229);const _0x545f81=_0x308832,_0x27472d=_0x545f81[_0x5b81f1(0x22e)];if(this.#hostOS[_0x5b81f1(0x226)](/darwin|mac os/i))this.#httpPath=_0x545f81[_0x5b81f1(0x26e)](_0x27472d,_0x545f81[_0x5b81f1(0x215)]);else this.#hostOS[_0x5b81f1(0x226)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x545f81['MejpJ'](_0x27472d,_0x545f81[_0x5b81f1(0x21d)]),this.#binaryName=_0x545f81[_0x5b81f1(0x263)]):this.#httpPath=_0x545f81['MgYyX'](_0x27472d,_0x545f81[_0x5b81f1(0x219)]);}#getAvailableDirs(){const _0x4188b9=a69_0x5bcbb1,_0x340936={};_0x340936[_0x4188b9(0x23c)]=function(_0x1afcac,_0x2bffbf){return _0x1afcac<_0x2bffbf;},_0x340936[_0x4188b9(0x240)]=_0x4188b9(0x214);const _0x3beaee=_0x340936;for(var _0x1ea077=0x0;_0x3beaee['xvXHC'](_0x1ea077,this.#orderedPaths[_0x4188b9(0x262)]);_0x1ea077++){var _0x19a928=this.#orderedPaths[_0x1ea077];if(this.#makePath(_0x19a928))return _0x19a928;}throw new Error(_0x3beaee[_0x4188b9(0x240)]);}#makePath(_0x214e6e){const _0xf71d85=a69_0x5bcbb1;try{return!this.#checkPath(_0x214e6e)&&fs[_0xf71d85(0x1ec)](_0x214e6e),!![];}catch{return![];}}#checkPath(_0x20acd7,_0x34686d){const _0x56603f=a69_0x5bcbb1,_0x2341b9={};_0x2341b9[_0x56603f(0x231)]=function(_0x5b70d3,_0x4f22cb){return _0x5b70d3|_0x4f22cb;},_0x2341b9[_0x56603f(0x1f3)]=function(_0x376a81,_0x59aff6){return _0x376a81!==_0x59aff6;},_0x2341b9[_0x56603f(0x259)]='undefined';const _0x5c7654=_0x2341b9;_0x34686d=_0x34686d||_0x5c7654['qiice'](fs[_0x56603f(0x239)],fs[_0x56603f(0x25f)]);try{return fs[_0x56603f(0x206)](_0x20acd7,_0x34686d),!![];}catch(_0x416825){if(_0x5c7654['lPWVj'](typeof fs[_0x56603f(0x206)],_0x5c7654[_0x56603f(0x259)]))return![];try{return fs[_0x56603f(0x261)](_0x20acd7),!![];}catch(_0xae6a85){return![];}}}async[a69_0x5bcbb1(0x1e9)](_0x4e256d){const _0x5cb87c=a69_0x5bcbb1,_0x399295={};_0x399295['kpGjI']=_0x5cb87c(0x20a);const _0x1114f1=_0x399295;var _0x1caf77=this.#getAvailableDirs(),_0x32fd42=path[_0x5cb87c(0x20f)](_0x1caf77,this.#binaryName);if(this.#checkPath(_0x32fd42,fs[_0x5cb87c(0x23a)]))return _0x32fd42;const _0x20f7ba=await this['download'](_0x4e256d,_0x1caf77),_0x104068=await this[_0x5cb87c(0x258)](_0x20f7ba);if(!_0x104068)return logger[_0x5cb87c(0x22a)](_0x1114f1[_0x5cb87c(0x24a)]),await this[_0x5cb87c(0x1f0)](_0x4e256d,_0x1caf77);return _0x20f7ba;}async['validateBinary'](_0xae50d4){const _0xb5c901=a69_0x5bcbb1,_0x5e8d1a={'EFjRE':function(_0x5cf12b,_0x2fb966){return _0x5cf12b(_0x2fb966);},'zKksd':function(_0x47e03d,_0x19602c,_0x5107f1){return _0x47e03d(_0x19602c,_0x5107f1);},'YTTEP':'--version','MFEFm':_0xb5c901(0x1ed),'nDMLY':'close'},_0x36882d=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x139593,_0x28aa7b)=>{const _0x115c84=_0xb5c901,_0x15d996={'VXbWa':function(_0x16eee6,_0x4af2da){const _0xcc709a=a69_0x589b;return _0x5e8d1a[_0xcc709a(0x1e5)](_0x16eee6,_0x4af2da);}},_0x57c7ed=_0x5e8d1a[_0x115c84(0x26d)](spawn,_0xae50d4,[_0x5e8d1a['YTTEP']]);_0x57c7ed[_0x115c84(0x1f5)]['on'](_0x5e8d1a[_0x115c84(0x257)],_0x47bea5=>{const _0x1d61af=_0x115c84;_0x36882d['test'](_0x47bea5)&&_0x15d996[_0x1d61af(0x1e7)](_0x139593,!![]);}),_0x57c7ed['on'](_0x5e8d1a[_0x115c84(0x24e)],()=>{const _0x5b903a=_0x115c84;_0x5e8d1a[_0x5b903a(0x1e5)](_0x139593,![]);});});}[a69_0x5bcbb1(0x1f0)](_0x25f810,_0x262a8b){const _0xd380a2=a69_0x5bcbb1,_0x2f0508={'hToMR':function(_0x2a1ddf,_0x2573cf){return _0x2a1ddf(_0x2573cf);},'mMShc':_0xd380a2(0x268),'hmHsF':function(_0x33c52f,_0x472722){return _0x33c52f===_0x472722;},'zwkIN':function(_0x42de3d,_0x2cb805){return _0x42de3d(_0x2cb805);},'NOVpc':_0xd380a2(0x269),'fcxmd':_0xd380a2(0x22a),'KbuLO':function(_0xe9267f,_0x398ecd){return _0xe9267f(_0x398ecd);},'utmLg':_0xd380a2(0x24c),'IEssx':_0xd380a2(0x25e),'EGfyV':'Got\x20Error\x20in\x20percy\x20binary\x20download\x20response','WckSQ':function(_0x368ed2,_0x2fa778){return _0x368ed2(_0x2fa778);},'UolNn':_0xd380a2(0x241),'daudG':function(_0x29fa9f,_0x4ec81a){return _0x29fa9f(_0x4ec81a);},'cWeBB':_0xd380a2(0x227),'QRGVp':function(_0x134f4d,_0x21c0f8){return _0x134f4d+_0x21c0f8;},'xIHRD':_0xd380a2(0x1fd),'QmJKS':_0xd380a2(0x1f4)};!this.#checkPath(_0x262a8b)&&fs[_0xd380a2(0x1ec)](_0x262a8b);const _0xc0633e=this.#binaryName,_0x21872e=path[_0xd380a2(0x20f)](_0x262a8b,_0x2f0508['QRGVp'](_0xc0633e,_0x2f0508[_0xd380a2(0x220)])),_0xca2cea=path[_0xd380a2(0x20f)](_0x262a8b,_0xc0633e),_0x29224d=fs[_0xd380a2(0x235)](_0x21872e),_0x28811d=url[_0xd380a2(0x253)](this.#httpPath);if(_0x25f810[_0xd380a2(0x212)]&&_0x25f810['proxyPort']){const _0x49e8d9={};_0x49e8d9[_0xd380a2(0x25d)]=_0x25f810[_0xd380a2(0x212)],_0x49e8d9[_0xd380a2(0x20e)]=_0x25f810[_0xd380a2(0x24d)],_0x28811d[_0xd380a2(0x20b)]=new HttpsProxyAgent(_0x49e8d9);}if(_0x25f810['useCaCertificate'])try{_0x28811d['ca']=fs[_0xd380a2(0x221)](_0x25f810[_0xd380a2(0x237)]);}catch(_0x1c8986){logger[_0xd380a2(0x22a)](_0x2f0508[_0xd380a2(0x24b)],_0x1c8986);}return new Promise((_0x265cfa,_0xddb81)=>{const _0x2c50c2=_0xd380a2,_0x3108d6={'gBSQO':_0x2f0508[_0x2c50c2(0x1f7)],'ejQvy':function(_0x4493e2,_0x28df94){const _0x17d699=_0x2c50c2;return _0x2f0508[_0x17d699(0x232)](_0x4493e2,_0x28df94);},'QuvtJ':_0x2f0508['UolNn'],'RQHOW':function(_0x545fae,_0x536157){const _0x3792a1=_0x2c50c2;return _0x2f0508[_0x3792a1(0x1e6)](_0x545fae,_0x536157);},'UajjI':_0x2f0508['cWeBB']};https['get'](_0x28811d,function(_0x37edc4){const _0x3de7a8=_0x2c50c2,_0x5e6a53={'XVgfX':function(_0x2506ac,_0x4844b9){const _0x3a6dde=a69_0x589b;return _0x2f0508[_0x3a6dde(0x204)](_0x2506ac,_0x4844b9);},'qzUOX':_0x2f0508[_0x3de7a8(0x224)],'LmTJc':function(_0x4545ce,_0x55fe73){const _0x5069a3=_0x3de7a8;return _0x2f0508[_0x5069a3(0x252)](_0x4545ce,_0x55fe73);},'mPWNg':function(_0xd4e5be,_0x3c2941){const _0x48ab83=_0x3de7a8;return _0x2f0508[_0x48ab83(0x22d)](_0xd4e5be,_0x3c2941);},'ADDFI':function(_0xe7cad9,_0x45fcc1){return _0x2f0508['zwkIN'](_0xe7cad9,_0x45fcc1);},'BnRTN':_0x2f0508[_0x3de7a8(0x21a)],'DFedy':_0x2f0508['fcxmd'],'hGRJP':function(_0x1dc39d,_0x1bd197){const _0x46fbca=_0x3de7a8;return _0x2f0508[_0x46fbca(0x233)](_0x1dc39d,_0x1bd197);},'kIaNZ':_0x2f0508[_0x3de7a8(0x260)]};_0x37edc4[_0x3de7a8(0x22c)](_0x29224d),_0x37edc4['on'](_0x2f0508[_0x3de7a8(0x1e8)],function(_0x3bf95f){const _0x3b8448=_0x3de7a8;logger['error'](_0x3108d6[_0x3b8448(0x23d)],_0x3bf95f),_0x3108d6['ejQvy'](_0xddb81,_0x3bf95f);}),_0x29224d['on'](_0x2f0508[_0x3de7a8(0x1e8)],function(_0xccf35d){const _0x351579=_0x3de7a8;logger[_0x351579(0x22a)](_0x3108d6[_0x351579(0x23f)],_0xccf35d),_0x3108d6['RQHOW'](_0xddb81,_0xccf35d);}),_0x29224d['on'](_0x2f0508[_0x3de7a8(0x203)],function(){const _0x1b2898=_0x3de7a8,_0x1ed310={'lSNqt':function(_0x3b5d75,_0x6a6522){const _0x1429af=a69_0x589b;return _0x5e6a53[_0x1429af(0x23e)](_0x3b5d75,_0x6a6522);},'WfsKp':_0x5e6a53[_0x1b2898(0x225)]},_0x2bc2b8={};_0x2bc2b8[_0x1b2898(0x211)]=!![],yauzl[_0x1b2898(0x1e4)](_0x21872e,_0x2bc2b8,function(_0x44ee72,_0x360cb8){const _0x54c367=_0x1b2898,_0x5436d2={'fHVkX':function(_0xcbc39a,_0x48d0ab){const _0x54d3c3=a69_0x589b;return _0x5e6a53[_0x54d3c3(0x1fc)](_0xcbc39a,_0x48d0ab);},'sxBxr':_0x5e6a53[_0x54c367(0x236)],'JFLpd':function(_0x26cdc5,_0x2b3b66){const _0x4feced=_0x54c367;return _0x5e6a53[_0x4feced(0x21e)](_0x26cdc5,_0x2b3b66);},'ZqbMs':function(_0x229fc7,_0x1daf5c){const _0x472260=_0x54c367;return _0x5e6a53[_0x472260(0x1fc)](_0x229fc7,_0x1daf5c);},'tygWB':function(_0x510ea3,_0xd35698){const _0x4183f6=_0x54c367;return _0x5e6a53[_0x4183f6(0x216)](_0x510ea3,_0xd35698);}};_0x44ee72&&_0x5e6a53[_0x54c367(0x243)](_0xddb81,_0x44ee72),_0x360cb8[_0x54c367(0x213)](),_0x360cb8['on'](_0x5e6a53['BnRTN'],_0x1a9c42=>{const _0x542b0c=_0x54c367;if(/\/$/[_0x542b0c(0x22f)](_0x1a9c42[_0x542b0c(0x1f9)]))_0x360cb8[_0x542b0c(0x213)]();else{const _0x2cdcf3=fs[_0x542b0c(0x235)](path[_0x542b0c(0x20f)](_0x262a8b,_0x1a9c42[_0x542b0c(0x1f9)]));_0x360cb8[_0x542b0c(0x244)](_0x1a9c42,function(_0x5dbef9,_0x5cf7a3){const _0xd0ba19=_0x542b0c;_0x5dbef9&&_0x5436d2['fHVkX'](_0xddb81,_0x44ee72),_0x5cf7a3['on'](_0x5436d2[_0xd0ba19(0x26c)],function(){const _0x566587=_0xd0ba19;_0x2cdcf3[_0x566587(0x25e)](),_0x360cb8[_0x566587(0x213)]();}),_0x5cf7a3[_0xd0ba19(0x22c)](_0x2cdcf3);}),_0x5436d2[_0x542b0c(0x208)](_0x1a9c42[_0x542b0c(0x1f9)],_0xc0633e)&&_0x360cb8[_0x542b0c(0x25e)]();}}),_0x360cb8['on'](_0x5e6a53[_0x54c367(0x251)],_0x1c0c44=>{const _0x5120cb=_0x54c367;_0x1ed310[_0x5120cb(0x200)](_0xddb81,_0x1c0c44);}),_0x360cb8[_0x54c367(0x1f2)](_0x5e6a53['qzUOX'],()=>{const _0x325557=_0x54c367;fs[_0x325557(0x230)](_0xca2cea,_0x1ed310[_0x325557(0x26b)],function(_0x47aee6){const _0xda206f=_0x325557;_0x47aee6&&_0x5436d2[_0xda206f(0x1fe)](_0xddb81,_0x47aee6),_0x5436d2[_0xda206f(0x1fa)](_0x265cfa,_0xca2cea);}),_0x360cb8[_0x325557(0x25e)]();});});});})['on'](_0x2f0508[_0x2c50c2(0x1e8)],function(_0x35c1a5){const _0x3ead85=_0x2c50c2;logger[_0x3ead85(0x22a)](_0x3108d6[_0x3ead85(0x249)],_0x35c1a5),_0x3108d6[_0x3ead85(0x202)](_0xddb81,_0x35c1a5);});});}#homedir(){const _0xfbce31=a69_0x5bcbb1,_0x310c9f={};_0x310c9f[_0xfbce31(0x217)]=function(_0x4eae9b,_0x1e36d2){return _0x4eae9b===_0x1e36d2;},_0x310c9f[_0xfbce31(0x234)]=_0xfbce31(0x264),_0x310c9f[_0xfbce31(0x25b)]=function(_0x34543c,_0x4373d1){return _0x34543c===_0x4373d1;},_0x310c9f['MULuV']='win32',_0x310c9f[_0xfbce31(0x222)]=function(_0x5030f4,_0x1eb7ee){return _0x5030f4+_0x1eb7ee;},_0x310c9f[_0xfbce31(0x267)]=_0xfbce31(0x21f),_0x310c9f['wGbFB']=function(_0x391289,_0x4bfdf4){return _0x391289+_0x4bfdf4;},_0x310c9f['iOmNL']=_0xfbce31(0x271),_0x310c9f[_0xfbce31(0x1ff)]=function(_0x40e013,_0x5e6b2e){return _0x40e013===_0x5e6b2e;},_0x310c9f[_0xfbce31(0x255)]=_0xfbce31(0x265),_0x310c9f[_0xfbce31(0x238)]=_0xfbce31(0x205),_0x310c9f[_0xfbce31(0x24f)]=function(_0x2b4f54,_0x279898){return _0x2b4f54+_0x279898;},_0x310c9f[_0xfbce31(0x25c)]='/home/',_0x310c9f[_0xfbce31(0x1ea)]=function(_0x411a12,_0x3acb02){return _0x411a12||_0x3acb02;};const _0x478799=_0x310c9f;if(_0x478799[_0xfbce31(0x217)](typeof os[_0xfbce31(0x218)],_0x478799['YSMST']))return os[_0xfbce31(0x218)]();const _0x471fea=process[_0xfbce31(0x228)],_0x4809e5=_0x471fea[_0xfbce31(0x250)],_0x2c6254=_0x471fea[_0xfbce31(0x207)]||_0x471fea['USER']||_0x471fea[_0xfbce31(0x1ef)]||_0x471fea[_0xfbce31(0x25a)];if(_0x478799['iyUxl'](process[_0xfbce31(0x26a)],_0x478799['MULuV']))return _0x471fea['USERPROFILE']||_0x478799[_0xfbce31(0x222)](_0x471fea['HOMEDRIVE'],_0x471fea[_0xfbce31(0x246)])||_0x4809e5||null;if(_0x478799[_0xfbce31(0x217)](process[_0xfbce31(0x26a)],_0x478799[_0xfbce31(0x267)]))return _0x4809e5||(_0x2c6254?_0x478799['wGbFB'](_0x478799['iOmNL'],_0x2c6254):null);if(_0x478799[_0xfbce31(0x1ff)](process[_0xfbce31(0x26a)],_0x478799[_0xfbce31(0x255)]))return _0x4809e5||(_0x478799[_0xfbce31(0x1ff)](process['getuid'](),0x0)?_0x478799[_0xfbce31(0x238)]:_0x2c6254?_0x478799['HBiGw'](_0x478799[_0xfbce31(0x25c)],_0x2c6254):null);return _0x478799[_0xfbce31(0x1ea)](_0x4809e5,null);}}module[a69_0x5bcbb1(0x209)]=PercyBinary;function a69_0x120f(){const _0x482414=['readFileSync','IRCCu','52SmJaOk','mMShc','kIaNZ','match','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request','env','/percy-linux.zip','error','544124bgdMhd','pipe','zwkIN','gVBSr','test','chmod','qiice','WckSQ','KbuLO','YSMST','createWriteStream','qzUOX','useCaCertificate','xsVQg','R_OK','X_OK','MgYyX','xvXHC','gBSQO','hGRJP','QuvtJ','yiIKO','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file','3598930TofhBC','ADDFI','openReadStream','27JaXyAj','HOMEPATH','yauzl','winstonLogger','UajjI','kpGjI','QmJKS','0755','proxyPort','nDMLY','HBiGw','HOME','DFedy','hmHsF','parse','percy.exe','tQWSU','follow-redirects','MFEFm','validateBinary','VuFcD','USERNAME','iyUxl','YdmzR','host','close','W_OK','utmLg','statSync','length','FUMgY','function','linux','/percy-win.zip','icvgs','end','entry','platform','WfsKp','sxBxr','zKksd','XfbkE','.browserstack','MejpJ','/Users/','open','EFjRE','daudG','VXbWa','fcxmd','getBinaryPath','vXLLw','10896fXuOeC','mkdirSync','data','88Tvldny','LNAME','download','2750568nrBnOa','once','lPWVj','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file','stdout','66325GVymRK','EGfyV','path','fileName','tygWB','child_process','XVgfX','.zip','ZqbMs','nkBIt','lSNqt','904550pRIsBq','RQHOW','IEssx','hToMR','/root','accessSync','LOGNAME','JFLpd','exports','Corrupt\x20percy\x20binary,\x20retrying','agent','percy','438doadbd','port','join','26648809SYLdgs','lazyEntries','proxyHost','readEntry','Error\x20trying\x20to\x20download\x20percy\x20binary','aMwYN','mPWNg','NFGIM','homedir','Stcfw','NOVpc','https-proxy-agent','../logger','yOnXZ','LmTJc','darwin','xIHRD'];a69_0x120f=function(){return _0x482414;};return a69_0x120f();}
|
|
1
|
+
const a69_0x367b4d=a69_0x35c7;(function(_0x1d7caa,_0x4b93a6){const _0x3c2be2=a69_0x35c7,_0xf9d8a3=_0x1d7caa();while(!![]){try{const _0x371d09=parseInt(_0x3c2be2(0x11e))/0x1+-parseInt(_0x3c2be2(0x107))/0x2+-parseInt(_0x3c2be2(0xf9))/0x3*(-parseInt(_0x3c2be2(0x15c))/0x4)+-parseInt(_0x3c2be2(0x123))/0x5*(parseInt(_0x3c2be2(0x11c))/0x6)+-parseInt(_0x3c2be2(0x162))/0x7*(parseInt(_0x3c2be2(0x102))/0x8)+parseInt(_0x3c2be2(0x111))/0x9*(-parseInt(_0x3c2be2(0x161))/0xa)+parseInt(_0x3c2be2(0x126))/0xb*(parseInt(_0x3c2be2(0x128))/0xc);if(_0x371d09===_0x4b93a6)break;else _0xf9d8a3['push'](_0xf9d8a3['shift']());}catch(_0x18a18f){_0xf9d8a3['push'](_0xf9d8a3['shift']());}}}(a69_0x5049,0xe5744));function a69_0x5049(){const _0x3776cc=['homedir','JmorI','RNjou','kJMdw','LGXrC','W_OK','proxyPort','LOGNAME','Corrupt\x20percy\x20binary,\x20retrying','data','Error\x20trying\x20to\x20download\x20percy\x20binary','path','entry','YHcxZ','https-proxy-agent','/percy-osx.zip','HOMEDRIVE','readEntry','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response','HoBvB','child_process','HOME','baKbk','MYzOp','useCaCertificate','28SisGXH','function','cWyvs','bLMzb','mkdirSync','10qNXHUl','5102979OKTGHx','snejC','pZcnw','winstonLogger','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file','zzzPp','enQfe','QMYAG','glHue','end','guFyZ','POMTy','openReadStream','chmod','HCCPg','follow-redirects','LNAME','percy.exe','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file','fHIlP','ZWxsJ','oJMCE','kJali','.browserstack','R_OK','UkLwm','vMBpi','Vbytm','106857ZlPqsV','auuBr','sgjGg','env','hgvVi','jBpGC','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request','CFXYk','--version','16AYpEfa','../logger','test','url','hjUOj','3617902UCxZGm','platform','/root','get','accessSync','IEcJW','OCVRk','statSync','undefined','zUTOi','12569607VzcEep','KjeQP','pipe','download','JSkue','/Users/','.zip','GmQUR','DJxiA','win32','close','67758hcKMIu','parse','699241UCSiMM','NGLcE','fileName','DaLgk','getuid','385CSNDmf','VhFrr','port','60768389FdCioJ','USER','12CMoJbE','once','izHwp','BUfMY','XodWh','scWeO','lazyEntries','nuhhk','vBFlg','dQpuY','/percy-win.zip','0755','sdBVM','USERNAME','CGeZM','aKTgB','https://github.com/percy/cli/releases/latest/download','proxyHost','join','EJbeW','dwrDg','match','percy','/home/','JrUOF','error','GKZLh'];a69_0x5049=function(){return _0x3776cc;};return a69_0x5049();}const {https}=require(a69_0x367b4d(0xec)),url=require(a69_0x367b4d(0x105)),yauzl=require('yauzl'),fs=require('fs'),path=require(a69_0x367b4d(0x14e)),os=require('os'),{spawn}=require(a69_0x367b4d(0x157)),HttpsProxyAgent=require(a69_0x367b4d(0x151)),logger=require(a69_0x367b4d(0x103))[a69_0x367b4d(0xe0)];function a69_0x35c7(_0x3b85ec,_0x5db545){const _0x504943=a69_0x5049();return a69_0x35c7=function(_0x35c764,_0x381fac){_0x35c764=_0x35c764-0xe0;let _0x212248=_0x504943[_0x35c764];return _0x212248;},a69_0x35c7(_0x3b85ec,_0x5db545);}class PercyBinary{#hostOS=process[a69_0x367b4d(0x108)];#httpPath=null;#binaryName=a69_0x367b4d(0x13e);#orderedPaths=[path[a69_0x367b4d(0x13a)](this.#homedir(),a69_0x367b4d(0xf4)),process['cwd'](),os['tmpdir']()];constructor(){const _0x4557d2=a69_0x367b4d,_0x433c28={};_0x433c28[_0x4557d2(0x159)]=_0x4557d2(0x138),_0x433c28['UkLwm']=function(_0x49af18,_0x46e84b){return _0x49af18+_0x46e84b;},_0x433c28['ZWxsJ']=_0x4557d2(0x152),_0x433c28[_0x4557d2(0x134)]=_0x4557d2(0x132),_0x433c28['BUfMY']=_0x4557d2(0xee),_0x433c28['MYzOp']=function(_0x5f489b,_0x36e719){return _0x5f489b+_0x36e719;},_0x433c28['GKZLh']='/percy-linux.zip';const _0x242118=_0x433c28,_0x2b1926=_0x242118[_0x4557d2(0x159)];if(this.#hostOS[_0x4557d2(0x13d)](/darwin|mac os/i))this.#httpPath=_0x242118[_0x4557d2(0xf6)](_0x2b1926,_0x242118[_0x4557d2(0xf1)]);else this.#hostOS[_0x4557d2(0x13d)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x242118[_0x4557d2(0xf6)](_0x2b1926,_0x242118[_0x4557d2(0x134)]),this.#binaryName=_0x242118[_0x4557d2(0x12b)]):this.#httpPath=_0x242118[_0x4557d2(0x15a)](_0x2b1926,_0x242118[_0x4557d2(0x142)]);}#getAvailableDirs(){const _0x2f0b07=a69_0x367b4d,_0xe91ce6={};_0xe91ce6[_0x2f0b07(0x164)]=function(_0x5c26fd,_0x52056c){return _0x5c26fd<_0x52056c;},_0xe91ce6[_0x2f0b07(0x13c)]=_0x2f0b07(0x14d);const _0x234cb8=_0xe91ce6;for(var _0x9e11a7=0x0;_0x234cb8[_0x2f0b07(0x164)](_0x9e11a7,this.#orderedPaths['length']);_0x9e11a7++){var _0x334d58=this.#orderedPaths[_0x9e11a7];if(this.#makePath(_0x334d58))return _0x334d58;}throw new Error(_0x234cb8['dwrDg']);}#makePath(_0x53256f){const _0x26f6da=a69_0x367b4d;try{return!this.#checkPath(_0x53256f)&&fs[_0x26f6da(0x160)](_0x53256f),!![];}catch{return![];}}#checkPath(_0x828f8f,_0x1cf083){const _0x4349c2=a69_0x367b4d,_0x39f525={};_0x39f525[_0x4349c2(0x100)]=function(_0x502e5d,_0x86b617){return _0x502e5d|_0x86b617;},_0x39f525[_0x4349c2(0x12f)]=function(_0x5c0faa,_0x4a963e){return _0x5c0faa!==_0x4a963e;},_0x39f525[_0x4349c2(0xe8)]=_0x4349c2(0x10f);const _0x3ef42e=_0x39f525;_0x1cf083=_0x1cf083||_0x3ef42e['CFXYk'](fs[_0x4349c2(0xf5)],fs[_0x4349c2(0x148)]);try{return fs[_0x4349c2(0x10b)](_0x828f8f,_0x1cf083),!![];}catch(_0x2a83c5){if(_0x3ef42e[_0x4349c2(0x12f)](typeof fs[_0x4349c2(0x10b)],_0x3ef42e[_0x4349c2(0xe8)]))return![];try{return fs[_0x4349c2(0x10e)](_0x828f8f),!![];}catch(_0x493e21){return![];}}}async['getBinaryPath'](_0x55e3bd){const _0x7cc2b2=a69_0x367b4d,_0x131fb8={};_0x131fb8[_0x7cc2b2(0xe5)]=_0x7cc2b2(0x14b);const _0x37b4a5=_0x131fb8;var _0x1c33a6=this.#getAvailableDirs(),_0x1d91db=path[_0x7cc2b2(0x13a)](_0x1c33a6,this.#binaryName);if(this.#checkPath(_0x1d91db,fs['X_OK']))return _0x1d91db;const _0x799cce=await this[_0x7cc2b2(0x114)](_0x55e3bd,_0x1c33a6),_0x19a4e0=await this['validateBinary'](_0x799cce);if(!_0x19a4e0)return logger[_0x7cc2b2(0x141)](_0x37b4a5[_0x7cc2b2(0xe5)]),await this['download'](_0x55e3bd,_0x1c33a6);return _0x799cce;}async['validateBinary'](_0x143f9e){const _0x38b646=a69_0x367b4d,_0x4db3e0={'fHIlP':function(_0x31c919,_0x5a1bb1){return _0x31c919(_0x5a1bb1);},'QMYAG':function(_0x3df237,_0x1764f3){return _0x3df237(_0x1764f3);},'OCVRk':function(_0x2e93a6,_0x364827,_0x6cb150){return _0x2e93a6(_0x364827,_0x6cb150);},'bLMzb':_0x38b646(0x101),'vBFlg':_0x38b646(0x14c),'fUsIQ':_0x38b646(0x11b)},_0x5be95d=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x15a403,_0x3b3d68)=>{const _0x5ab721=_0x38b646,_0x16ddd1={'JmorI':function(_0x3719ab,_0x42aaeb){const _0x189028=a69_0x35c7;return _0x4db3e0[_0x189028(0xe4)](_0x3719ab,_0x42aaeb);}},_0x46f79b=_0x4db3e0[_0x5ab721(0x10d)](spawn,_0x143f9e,[_0x4db3e0[_0x5ab721(0x15f)]]);_0x46f79b['stdout']['on'](_0x4db3e0[_0x5ab721(0x130)],_0x3ae4d5=>{const _0x23be8a=_0x5ab721;_0x5be95d[_0x23be8a(0x104)](_0x3ae4d5)&&_0x4db3e0[_0x23be8a(0xf0)](_0x15a403,!![]);}),_0x46f79b['on'](_0x4db3e0['fUsIQ'],()=>{const _0x2bbe5a=_0x5ab721;_0x16ddd1[_0x2bbe5a(0x144)](_0x15a403,![]);});});}[a69_0x367b4d(0x114)](_0x52b5e7,_0xec2798){const _0x26d9ff=a69_0x367b4d,_0x3132cc={'HCCPg':_0x26d9ff(0xff),'DaLgk':function(_0x18b5e1,_0x59eab4){return _0x18b5e1(_0x59eab4);},'IEcJW':_0x26d9ff(0x155),'PadGe':function(_0x4ca3d3,_0x402ea1){return _0x4ca3d3===_0x402ea1;},'VhFrr':function(_0x8d121b,_0x16b533){return _0x8d121b(_0x16b533);},'GdZrX':_0x26d9ff(0xe6),'xyxCB':_0x26d9ff(0x133),'hjUOj':_0x26d9ff(0x14f),'vMBpi':_0x26d9ff(0x141),'Vbytm':_0x26d9ff(0xef),'ubUMK':_0x26d9ff(0x11b),'YHcxZ':function(_0x11010c,_0x1a1190){return _0x11010c+_0x1a1190;},'snejC':_0x26d9ff(0x117),'EJbeW':_0x26d9ff(0xe1)};!this.#checkPath(_0xec2798)&&fs[_0x26d9ff(0x160)](_0xec2798);const _0x29dac7=this.#binaryName,_0x5bc1f2=path['join'](_0xec2798,_0x3132cc[_0x26d9ff(0x150)](_0x29dac7,_0x3132cc[_0x26d9ff(0x163)])),_0x4e4a10=path[_0x26d9ff(0x13a)](_0xec2798,_0x29dac7),_0x48a5af=fs['createWriteStream'](_0x5bc1f2),_0x22a45a=url[_0x26d9ff(0x11d)](this.#httpPath);if(_0x52b5e7[_0x26d9ff(0x139)]&&_0x52b5e7['proxyPort']){const _0x3f8137={};_0x3f8137['host']=_0x52b5e7[_0x26d9ff(0x139)],_0x3f8137[_0x26d9ff(0x125)]=_0x52b5e7[_0x26d9ff(0x149)],_0x22a45a['agent']=new HttpsProxyAgent(_0x3f8137);}if(_0x52b5e7[_0x26d9ff(0x15b)])try{_0x22a45a['ca']=fs['readFileSync'](_0x52b5e7[_0x26d9ff(0x15b)]);}catch(_0x392ba6){logger[_0x26d9ff(0x141)](_0x3132cc[_0x26d9ff(0x13b)],_0x392ba6);}return new Promise((_0x241ab4,_0x4f7353)=>{const _0x558158=_0x26d9ff,_0x1311ef={'GmQUR':_0x3132cc[_0x558158(0x10c)],'cvLeG':function(_0x443391,_0x4036b4){const _0x39081c=_0x558158;return _0x3132cc[_0x39081c(0x121)](_0x443391,_0x4036b4);},'dQpuY':function(_0x2cde9f,_0x2bd630){return _0x3132cc['PadGe'](_0x2cde9f,_0x2bd630);},'cWyvs':function(_0x1f3991,_0x15a147){const _0x160d06=_0x558158;return _0x3132cc[_0x160d06(0x124)](_0x1f3991,_0x15a147);},'GFQdc':function(_0x1a9730,_0x2ff6c6){return _0x3132cc['VhFrr'](_0x1a9730,_0x2ff6c6);},'JSkue':_0x3132cc['GdZrX'],'GGdny':_0x3132cc['xyxCB'],'auuBr':_0x3132cc[_0x558158(0x106)],'hgvVi':_0x3132cc[_0x558158(0xf7)],'XodWh':_0x3132cc[_0x558158(0xf8)],'wlGYo':_0x3132cc['ubUMK']};https[_0x558158(0x10a)](_0x22a45a,function(_0x5d946c){const _0x2448b6=_0x558158,_0x28e7db={'guFyZ':_0x1311ef[_0x2448b6(0x12c)],'IOzmR':function(_0xa16747,_0x5dd5b0){const _0x35f352=_0x2448b6;return _0x1311ef[_0x35f352(0x15e)](_0xa16747,_0x5dd5b0);}};_0x5d946c[_0x2448b6(0x113)](_0x48a5af),_0x5d946c['on'](_0x1311ef[_0x2448b6(0xfd)],function(_0x2c0350){const _0x1eba3e=_0x2448b6;logger[_0x1eba3e(0x141)](_0x1311ef[_0x1eba3e(0x118)],_0x2c0350),_0x1311ef['cvLeG'](_0x4f7353,_0x2c0350);}),_0x48a5af['on'](_0x1311ef[_0x2448b6(0xfd)],function(_0x37838e){const _0x582822=_0x2448b6;logger[_0x582822(0x141)](_0x28e7db[_0x582822(0xe7)],_0x37838e),_0x28e7db['IOzmR'](_0x4f7353,_0x37838e);}),_0x48a5af['on'](_0x1311ef['wlGYo'],function(){const _0x170fd5=_0x2448b6,_0x32dee6={'KjeQP':function(_0x5e6142,_0x24c056){const _0x5b7960=a69_0x35c7;return _0x1311ef[_0x5b7960(0x131)](_0x5e6142,_0x24c056);},'zzzPp':function(_0x4cb5ad,_0x4778a4){const _0x262340=a69_0x35c7;return _0x1311ef[_0x262340(0x15e)](_0x4cb5ad,_0x4778a4);},'zUTOi':function(_0x22de4f,_0x4eeded){return _0x1311ef['GFQdc'](_0x22de4f,_0x4eeded);},'izHwp':_0x1311ef[_0x170fd5(0x115)],'kJMdw':function(_0x2c955d,_0x4da515){return _0x1311ef['GFQdc'](_0x2c955d,_0x4da515);},'McYMP':_0x1311ef['GGdny'],'ZfKJf':_0x1311ef[_0x170fd5(0xfa)],'DseaJ':_0x1311ef[_0x170fd5(0xfd)]},_0x1cc2ab={};_0x1cc2ab[_0x170fd5(0x12e)]=!![],yauzl['open'](_0x5bc1f2,_0x1cc2ab,function(_0x3178f5,_0x27e31e){const _0x10cd26=_0x170fd5,_0x3698b5={'XNyDo':function(_0x3c85b4,_0x100afa){const _0x446291=a69_0x35c7;return _0x32dee6[_0x446291(0x110)](_0x3c85b4,_0x100afa);},'xkgeV':_0x32dee6[_0x10cd26(0x12a)],'LGXrC':function(_0x5d213f,_0x2a6220){const _0x12860e=_0x10cd26;return _0x32dee6[_0x12860e(0x146)](_0x5d213f,_0x2a6220);},'HXOyr':_0x32dee6['McYMP']};_0x3178f5&&_0x32dee6[_0x10cd26(0xe2)](_0x4f7353,_0x3178f5),_0x27e31e[_0x10cd26(0x154)](),_0x27e31e['on'](_0x32dee6['ZfKJf'],_0x51ad93=>{const _0x586786=_0x10cd26;if(/\/$/[_0x586786(0x104)](_0x51ad93[_0x586786(0x120)]))_0x27e31e[_0x586786(0x154)]();else{const _0x4a3893=fs['createWriteStream'](path[_0x586786(0x13a)](_0xec2798,_0x51ad93[_0x586786(0x120)]));_0x27e31e[_0x586786(0xe9)](_0x51ad93,function(_0x1d4320,_0x335a09){const _0x148a47=_0x586786;_0x1d4320&&_0x3698b5['XNyDo'](_0x4f7353,_0x3178f5),_0x335a09['on'](_0x3698b5['xkgeV'],function(){const _0xfb178d=a69_0x35c7;_0x4a3893[_0xfb178d(0x11b)](),_0x27e31e[_0xfb178d(0x154)]();}),_0x335a09[_0x148a47(0x113)](_0x4a3893);}),_0x32dee6[_0x586786(0x112)](_0x51ad93['fileName'],_0x29dac7)&&_0x27e31e['close']();}}),_0x27e31e['on'](_0x32dee6['DseaJ'],_0x4db6d7=>{const _0x546d7a=_0x10cd26;_0x32dee6[_0x546d7a(0xe2)](_0x4f7353,_0x4db6d7);}),_0x27e31e[_0x10cd26(0x129)](_0x32dee6[_0x10cd26(0x12a)],()=>{const _0x4f4423=_0x10cd26,_0x1854fd={'jBpGC':function(_0x39d5ae,_0x21454a){const _0x4d6bbd=a69_0x35c7;return _0x3698b5[_0x4d6bbd(0x147)](_0x39d5ae,_0x21454a);}};fs[_0x4f4423(0xea)](_0x4e4a10,_0x3698b5['HXOyr'],function(_0x31db1b){const _0x270ffd=_0x4f4423;_0x31db1b&&_0x1854fd[_0x270ffd(0xfe)](_0x4f7353,_0x31db1b),_0x1854fd[_0x270ffd(0xfe)](_0x241ab4,_0x4e4a10);}),_0x27e31e[_0x4f4423(0x11b)]();});});});})['on'](_0x3132cc[_0x558158(0xf7)],function(_0x3ff453){const _0x3b067b=_0x558158;logger[_0x3b067b(0x141)](_0x3132cc[_0x3b067b(0xeb)],_0x3ff453),_0x3132cc[_0x3b067b(0x121)](_0x4f7353,_0x3ff453);});});}#homedir(){const _0x4cb524=a69_0x367b4d,_0x4ee68a={};_0x4ee68a[_0x4cb524(0xf3)]=function(_0x467ccd,_0x5ff788){return _0x467ccd===_0x5ff788;},_0x4ee68a[_0x4cb524(0x12d)]=_0x4cb524(0x15d),_0x4ee68a[_0x4cb524(0x140)]=_0x4cb524(0x11a),_0x4ee68a[_0x4cb524(0xe3)]=function(_0xd42f34,_0x24d9c5){return _0xd42f34+_0x24d9c5;},_0x4ee68a[_0x4cb524(0x137)]=function(_0x429672,_0x44bd8d){return _0x429672===_0x44bd8d;},_0x4ee68a[_0x4cb524(0xf2)]='darwin',_0x4ee68a[_0x4cb524(0x136)]=_0x4cb524(0x116),_0x4ee68a[_0x4cb524(0x156)]='linux',_0x4ee68a[_0x4cb524(0x11f)]=_0x4cb524(0x109),_0x4ee68a[_0x4cb524(0x145)]=function(_0x5a0b08,_0x1ba36d){return _0x5a0b08+_0x1ba36d;},_0x4ee68a[_0x4cb524(0x119)]=_0x4cb524(0x13f),_0x4ee68a[_0x4cb524(0xfb)]=function(_0x3d7341,_0x5ad3fc){return _0x3d7341||_0x5ad3fc;};const _0x2888ee=_0x4ee68a;if(_0x2888ee['kJali'](typeof os[_0x4cb524(0x143)],_0x2888ee['scWeO']))return os[_0x4cb524(0x143)]();const _0x574baf=process[_0x4cb524(0xfc)],_0xb112a9=_0x574baf[_0x4cb524(0x158)],_0x4ff960=_0x574baf[_0x4cb524(0x14a)]||_0x574baf[_0x4cb524(0x127)]||_0x574baf[_0x4cb524(0xed)]||_0x574baf[_0x4cb524(0x135)];if(_0x2888ee[_0x4cb524(0xf3)](process[_0x4cb524(0x108)],_0x2888ee[_0x4cb524(0x140)]))return _0x574baf['USERPROFILE']||_0x2888ee[_0x4cb524(0xe3)](_0x574baf[_0x4cb524(0x153)],_0x574baf['HOMEPATH'])||_0xb112a9||null;if(_0x2888ee[_0x4cb524(0x137)](process['platform'],_0x2888ee[_0x4cb524(0xf2)]))return _0xb112a9||(_0x4ff960?_0x2888ee[_0x4cb524(0xe3)](_0x2888ee[_0x4cb524(0x136)],_0x4ff960):null);if(_0x2888ee[_0x4cb524(0xf3)](process[_0x4cb524(0x108)],_0x2888ee[_0x4cb524(0x156)]))return _0xb112a9||(_0x2888ee[_0x4cb524(0x137)](process[_0x4cb524(0x122)](),0x0)?_0x2888ee[_0x4cb524(0x11f)]:_0x4ff960?_0x2888ee[_0x4cb524(0x145)](_0x2888ee[_0x4cb524(0x119)],_0x4ff960):null);return _0x2888ee[_0x4cb524(0xfb)](_0xb112a9,null);}}module['exports']=PercyBinary;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a70_0x364e(_0x2baeec,_0x5123ba){var _0x3adf64=a70_0x3adf();return a70_0x364e=function(_0x364ecb,_0x296020){_0x364ecb=_0x364ecb-0xad;var _0x3084bb=_0x3adf64[_0x364ecb];return _0x3084bb;},a70_0x364e(_0x2baeec,_0x5123ba);}var a70_0x885e88=a70_0x364e;(function(_0x4fb817,_0x3ce5bd){var _0x1d601b=a70_0x364e,_0xfc37b8=_0x4fb817();while(!![]){try{var _0x1f1d77=-parseInt(_0x1d601b(0xb1))/0x1+parseInt(_0x1d601b(0xae))/0x2+-parseInt(_0x1d601b(0xba))/0x3*(-parseInt(_0x1d601b(0xb2))/0x4)+parseInt(_0x1d601b(0xb8))/0x5*(-parseInt(_0x1d601b(0xb5))/0x6)+-parseInt(_0x1d601b(0xb7))/0x7*(-parseInt(_0x1d601b(0xaf))/0x8)+parseInt(_0x1d601b(0xad))/0x9+-parseInt(_0x1d601b(0xb3))/0xa*(-parseInt(_0x1d601b(0xb6))/0xb);if(_0x1f1d77===_0x3ce5bd)break;else _0xfc37b8['push'](_0xfc37b8['shift']());}catch(_0x4d66fe){_0xfc37b8['push'](_0xfc37b8['shift']());}}}(a70_0x3adf,0xc90f3));class PercyCaptureMap{#map={};[a70_0x885e88(0xb4)](_0x79d122,_0xfa8357){!this.#map[_0x79d122]&&(this.#map[_0x79d122]={}),!this.#map[_0x79d122][_0xfa8357]&&(this.#map[_0x79d122][_0xfa8357]=0x0),this.#map[_0x79d122][_0xfa8357]++;}[a70_0x885e88(0xb9)](_0x410184,_0x446a5b){var _0x2684b9=a70_0x885e88;return _0x410184+'-'+_0x446a5b+'-'+this[_0x2684b9(0xb0)](_0x410184,_0x446a5b);}[a70_0x885e88(0xb0)](_0x317a03,_0x531079){if(!this.#map[_0x317a03])return 0x0;if(!this.#map[_0x317a03][_0x531079])return 0x0;return this.#map[_0x317a03][_0x531079];}}function a70_0x3adf(){var _0x4e8004=['get','1291786ChZPjO','32076PzyokG','50710cRGjDc','increment','6orxvls','2255RciFYA','7Fetznl','3525455TMngqT','getName','288ozmqwI','309681LUgWOL','1057442vkPYrw','3583256hQMYhM'];a70_0x3adf=function(){return _0x4e8004;};return a70_0x3adf();}module['exports']=PercyCaptureMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a71_0x4f7a(){var _0x35888f=['takeScreenshot','driver','2495954pbkcBO','3rLvLNY','screenshot','sendKeys','4040776HeAear','3031882hwgFVo','click','auto','846013rrPgEB','60849nqMhzZ','element','6846532iUzPQX','5sqXiea','1210spKFPF','6jNmcow','2342696erMZRq'];a71_0x4f7a=function(){return _0x35888f;};return a71_0x4f7a();}var a71_0x438c63=a71_0x5069;(function(_0x1daf50,_0x59d05d){var _0x1b0a30=a71_0x5069,_0x4caf84=_0x1daf50();while(!![]){try{var _0x52baab=parseInt(_0x1b0a30(0x1f0))/0x1+parseInt(_0x1b0a30(0x1fa))/0x2*(-parseInt(_0x1b0a30(0x1e9))/0x3)+parseInt(_0x1b0a30(0x1f7))/0x4*(parseInt(_0x1b0a30(0x1f4))/0x5)+parseInt(_0x1b0a30(0x1f6))/0x6*(parseInt(_0x1b0a30(0x1ed))/0x7)+parseInt(_0x1b0a30(0x1ec))/0x8+parseInt(_0x1b0a30(0x1f1))/0x9*(-parseInt(_0x1b0a30(0x1f5))/0xa)+parseInt(_0x1b0a30(0x1f3))/0xb;if(_0x52baab===_0x59d05d)break;else _0x4caf84['push'](_0x4caf84['shift']());}catch(_0x2a40e1){_0x4caf84['push'](_0x4caf84['shift']());}}}(a71_0x4f7a,0xe2238));var a71_0x34c3c2={};a71_0x34c3c2[a71_0x438c63(0x1f9)]=[a71_0x438c63(0x1f8)],a71_0x34c3c2[a71_0x438c63(0x1f2)]=[a71_0x438c63(0x1ee),a71_0x438c63(0x1eb)];var a71_0x4f0111={};a71_0x4f0111[a71_0x438c63(0x1f9)]=[a71_0x438c63(0x1f8)];var a71_0x43613c={};a71_0x43613c[a71_0x438c63(0x1f2)]=[a71_0x438c63(0x1ee)];var a71_0x49efce={};function a71_0x5069(_0x50792c,_0xc7748f){var _0x4f7af8=a71_0x4f7a();return a71_0x5069=function(_0x5069fe,_0x2d0580){_0x5069fe=_0x5069fe-0x1e9;var _0x55ef96=_0x4f7af8[_0x5069fe];return _0x55ef96;},a71_0x5069(_0x50792c,_0xc7748f);}a71_0x49efce[a71_0x438c63(0x1ef)]=a71_0x34c3c2,a71_0x49efce[a71_0x438c63(0x1ea)]=a71_0x4f0111,a71_0x49efce[a71_0x438c63(0x1ee)]=a71_0x43613c,a71_0x49efce['testcase']={},a71_0x49efce['manual']={},module['exports']=a71_0x49efce;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a72_0x4deee6=a72_0x333a;(function(_0x49e158,_0x14f1c5){const _0x2aadd8=a72_0x333a,_0x34b990=_0x49e158();while(!![]){try{const _0x15c996=-parseInt(_0x2aadd8(0xf1))/0x1+-parseInt(_0x2aadd8(0xed))/0x2*(-parseInt(_0x2aadd8(0x100))/0x3)+parseInt(_0x2aadd8(0x105))/0x4+parseInt(_0x2aadd8(0xfd))/0x5+-parseInt(_0x2aadd8(0x104))/0x6*(parseInt(_0x2aadd8(0xea))/0x7)+parseInt(_0x2aadd8(0xfb))/0x8+-parseInt(_0x2aadd8(0xf4))/0x9*(parseInt(_0x2aadd8(0xf9))/0xa);if(_0x15c996===_0x14f1c5)break;else _0x34b990['push'](_0x34b990['shift']());}catch(_0x42fffc){_0x34b990['push'](_0x34b990['shift']());}}}(a72_0x16f7,0x2fb38));const tryRequire=function(_0x4ec51f,_0x5005f6){const _0x53cbc0=a72_0x333a,_0x4c637c={'bNtwd':function(_0x5b850d,_0x38cbc4){return _0x5b850d(_0x38cbc4);}};try{return _0x4c637c[_0x53cbc0(0xf6)](require,_0x4ec51f);}catch{return _0x5005f6;}},percySnapshot=tryRequire(a72_0x4deee6(0x109),null),{percyScreenshot}=tryRequire('@percy/selenium-webdriver',{}),percyAppScreenshot=require(a72_0x4deee6(0xff)),{getCurrentTestData}=require(a72_0x4deee6(0xee)),PerformanceTester=require(a72_0x4deee6(0xec)),logger=require('../logger')[a72_0x4deee6(0xfa)];percySnapshot&&(exports['snapshot']=async function(){const _0x383c51=a72_0x4deee6,_0x3d851a={'JKOfi':function(_0x18df97,_0x123a06){return _0x18df97!==_0x123a06;},'SrHgy':function(_0xb0f62f,_0xd469a7){return _0xb0f62f>=_0xd469a7;},'lQjCo':function(_0x507fa1){return _0x507fa1();},'NKoGB':'percy:snapshot'};if(global[_0x383c51(0xfc)]&&_0x3d851a['JKOfi'](global['browserstackPlatformIndex'],global[_0x383c51(0xe6)]))return;const _0x3b0d34=_0x3d851a['SrHgy'](arguments['length'],0x2)?arguments[0x1]:'',_0x3904b7=_0x3d851a[_0x383c51(0x101)](getCurrentTestData),_0x12b1af={};return _0x12b1af[_0x383c51(0x108)]=_0x3b0d34,_0x12b1af['testCase']=_0x3904b7[_0x383c51(0x108)]||'',_0x12b1af[_0x383c51(0xeb)]=_0x3904b7[_0x383c51(0xf7)]||'',_0x12b1af[_0x383c51(0x107)]=global[_0x383c51(0xfc)],await PerformanceTester[_0x383c51(0xef)](_0x3d851a[_0x383c51(0xe8)],()=>percySnapshot[_0x383c51(0xf3)](null,arguments),_0x12b1af);});percyScreenshot?exports['screenshot']=async function(){const _0x502e56=a72_0x4deee6,_0x36ffaa={'LtzdU':function(_0x29a83a,_0x127de4){return _0x29a83a>=_0x127de4;},'zQpOu':function(_0x76ab44){return _0x76ab44();},'tmMRZ':'percy:screenshot'},_0x515b67=_0x36ffaa['LtzdU'](arguments[_0x502e56(0x103)],0x2)?arguments[0x1]:'',_0xc7932e=_0x36ffaa[_0x502e56(0x106)](getCurrentTestData),_0x3d6422={};return _0x3d6422[_0x502e56(0x108)]=_0x515b67,_0x3d6422[_0x502e56(0xe7)]=_0xc7932e[_0x502e56(0x108)]||'',_0x3d6422['thTestCaseExecutionId']=_0xc7932e[_0x502e56(0xf7)]||'',_0x3d6422['platformIndex']=global['browserstackPlatformIndex'],await PerformanceTester[_0x502e56(0xef)](_0x36ffaa[_0x502e56(0xf8)],()=>percyScreenshot[_0x502e56(0xf3)](null,arguments),_0x3d6422);}:exports[a72_0x4deee6(0x102)]=()=>{const _0x3f258d=a72_0x4deee6,_0x4a2832={};_0x4a2832['zdSAh']=_0x3f258d(0xf5);const _0x313c66=_0x4a2832;logger[_0x3f258d(0xf0)](_0x313c66[_0x3f258d(0xf2)]);};exports[a72_0x4deee6(0xe9)]=async function(){const _0x1ddb83=a72_0x4deee6,_0x2f28ef={'LEcNx':function(_0x452565,_0x51b6c7){return _0x452565>=_0x51b6c7;},'uKCmp':function(_0x3137c8){return _0x3137c8();},'VCOMw':'percy:screenshot-app'},_0x5461f1=_0x2f28ef[_0x1ddb83(0xe5)](arguments[_0x1ddb83(0x103)],0x2)?arguments[0x1]:'',_0x20ae8f=_0x2f28ef[_0x1ddb83(0xfe)](getCurrentTestData),_0x3ba3f9={};return _0x3ba3f9[_0x1ddb83(0x108)]=_0x5461f1,_0x3ba3f9[_0x1ddb83(0xe7)]=_0x20ae8f[_0x1ddb83(0x108)]||'',_0x3ba3f9[_0x1ddb83(0xeb)]=_0x20ae8f['uuid']||'',_0x3ba3f9[_0x1ddb83(0x107)]=global[_0x1ddb83(0xfc)],await PerformanceTester[_0x1ddb83(0xef)](_0x2f28ef['VCOMw'],()=>percyAppScreenshot[_0x1ddb83(0xf3)](null,arguments),_0x3ba3f9);};function a72_0x333a(_0x9bdb23,_0x417343){const _0x16f778=a72_0x16f7();return a72_0x333a=function(_0x333a83,_0x4752b7){_0x333a83=_0x333a83-0xe5;let _0x21adf5=_0x16f778[_0x333a83];return _0x21adf5;},a72_0x333a(_0x9bdb23,_0x417343);}function a72_0x16f7(){const _0x155b1b=['../../helpers/testhub/utils','measure','error','71777HLJNWc','zdSAh','apply','63uawFcC','Unsupported\x20driver\x20for\x20percy','bNtwd','uuid','tmMRZ','530180NTKQMx','winstonLogger','828408MERnDG','browserstackPlatformIndex','1052520VQKXUD','uKCmp','@percy/appium-app','87klxSIY','lQjCo','screenshot','length','6jDtgqV','691420TzMywi','zQpOu','platformIndex','name','@percy/selenium-webdriver','LEcNx','browserstackPercyBestPlatform','testCase','NKoGB','screenshotApp','1326626cOyCMs','thTestCaseExecutionId','../performance-tester','23510CisMYZ'];a72_0x16f7=function(){return _0x155b1b;};return a72_0x16f7();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a73_0xa30acb=a73_0x1118;function a73_0x241a(){var _0x39ff3f=['3sEWNCd','1rKoJZA','385806peMgiI','12oCRstd','1833172TGFoAj','4004160uwwhtT','./Percy','414776LBdmkr','230ZsMoeZ','2446227RkzYSo','exports','171873SMfIZI','35nYipMG','335714vxlLCT'];a73_0x241a=function(){return _0x39ff3f;};return a73_0x241a();}function a73_0x1118(_0x34d4e9,_0x5094fa){var _0x241aaf=a73_0x241a();return a73_0x1118=function(_0x111834,_0x250680){_0x111834=_0x111834-0x1f0;var _0x45eedf=_0x241aaf[_0x111834];return _0x45eedf;},a73_0x1118(_0x34d4e9,_0x5094fa);}(function(_0x25145e,_0xaba120){var _0x4b60cd=a73_0x1118,_0x3ff6b0=_0x25145e();while(!![]){try{var _0x3d2cd3=-parseInt(_0x4b60cd(0x1fc))/0x1*(-parseInt(_0x4b60cd(0x1fa))/0x2)+-parseInt(_0x4b60cd(0x1fb))/0x3*(-parseInt(_0x4b60cd(0x1f4))/0x4)+-parseInt(_0x4b60cd(0x1f9))/0x5*(-parseInt(_0x4b60cd(0x1fd))/0x6)+parseInt(_0x4b60cd(0x1f6))/0x7+-parseInt(_0x4b60cd(0x1f2))/0x8+parseInt(_0x4b60cd(0x1f8))/0x9*(-parseInt(_0x4b60cd(0x1f5))/0xa)+-parseInt(_0x4b60cd(0x1f1))/0xb*(-parseInt(_0x4b60cd(0x1f0))/0xc);if(_0x3d2cd3===_0xaba120)break;else _0x3ff6b0['push'](_0x3ff6b0['shift']());}catch(_0xc6009d){_0x3ff6b0['push'](_0x3ff6b0['shift']());}}}(a73_0x241a,0x48c24),module[a73_0xa30acb(0x1f7)]=require(a73_0xa30acb(0x1f3)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a74_0x26a4(_0x406766,_0x261962){const _0x53ed2f=a74_0x53ed();return a74_0x26a4=function(_0x26a45b,_0x593f79){_0x26a45b=_0x26a45b-0xa0;let _0x429652=_0x53ed2f[_0x26a45b];return _0x429652;},a74_0x26a4(_0x406766,_0x261962);}const a74_0x199b6b=a74_0x26a4;(function(_0x40eb9b,_0x585570){const _0x23f93a=a74_0x26a4,_0x3bb256=_0x40eb9b();while(!![]){try{const _0x5eb074=-parseInt(_0x23f93a(0xd5))/0x1*(-parseInt(_0x23f93a(0xc9))/0x2)+-parseInt(_0x23f93a(0xa5))/0x3+-parseInt(_0x23f93a(0xdc))/0x4+parseInt(_0x23f93a(0xbc))/0x5+-parseInt(_0x23f93a(0xca))/0x6*(parseInt(_0x23f93a(0xa3))/0x7)+parseInt(_0x23f93a(0xd8))/0x8*(parseInt(_0x23f93a(0xb0))/0x9)+-parseInt(_0x23f93a(0xe5))/0xa*(-parseInt(_0x23f93a(0xa2))/0xb);if(_0x5eb074===_0x585570)break;else _0x3bb256['push'](_0x3bb256['shift']());}catch(_0x3984ce){_0x3bb256['push'](_0x3bb256['shift']());}}}(a74_0x53ed,0x2cd7d));const Percy=require(a74_0x199b6b(0xe7)),PercySDK=require(a74_0x199b6b(0xc4)),PercyCaptureModes=require(a74_0x199b6b(0xdd)),PercyCaptureMap=require(a74_0x199b6b(0xbd)),logger=require('../logger')[a74_0x199b6b(0xa1)],helper=require(a74_0x199b6b(0xc1)),PerformanceTester=require(a74_0x199b6b(0xac));function a74_0x53ed(){const _0x4a96dc=['2750FhHdoI','1967bGgEzV','driver','123702ozdQYv','\x20for\x20percy\x20','debug','percy:stop','chrome','UuZaa','increment','../performance-tester','measureWrapper','CnZoA','iGabR','83241LRyxEl','clkEF','getDriver','reduce','browserstackSessionName','apply','safari','stop','start','browserStackPercyOptions','platforms','Kenfu','1440820EuvNUz','./PercyCaptureMap','browserName','getPercyOptions','then','../helper','screenshotApp','init','./PercySDK','Starting\x20percy','firefox','startPercy','browser','46xURoHz','2694xvsDel','forEach','BjlSI','getBestPlatformForPercySnapshot','prototype','overrideXforPercy','manual','browserstackPercyMap','element','patch','percyCaptureMode','3548AJqhnK','ssJdP','nestedKeyValue','144cDMMsk','percyAutoCapture','Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present','app','1183680pXMVIi','./PercyCaptureModes','getName','Error\x20patching\x20','isUndefined','RmKdq','GTFnJ','percy','deviceName','4430xiDwUt','Stopping\x20percy','./Percy','toLowerCase','winstonLogger'];a74_0x53ed=function(){return _0x4a96dc;};return a74_0x53ed();}exports[a74_0x199b6b(0xc7)]=PerformanceTester[a74_0x199b6b(0xad)]('percy:start',async _0x4fe06e=>{const _0x4eaa1f=a74_0x199b6b,_0x52486a={};_0x52486a[_0x4eaa1f(0xae)]=_0x4eaa1f(0xc5);const _0x5e1a67=_0x52486a;logger[_0x4eaa1f(0xa7)](_0x5e1a67[_0x4eaa1f(0xae)]);const _0x3010cf=new Percy(_0x4fe06e),_0x1c5c90=await _0x3010cf[_0x4eaa1f(0xb8)]();if(_0x1c5c90)return _0x3010cf;return null;}),exports['stopPercy']=PerformanceTester[a74_0x199b6b(0xad)](a74_0x199b6b(0xa8),async _0x3f4e64=>{const _0x1a16ab=a74_0x199b6b,_0x568de3={};_0x568de3[_0x1a16ab(0xb1)]=_0x1a16ab(0xe6);const _0x8e6556=_0x568de3;return logger[_0x1a16ab(0xa7)](_0x8e6556['clkEF']),_0x3f4e64[_0x1a16ab(0xb7)]();}),exports[a74_0x199b6b(0xcd)]=_0x5044a0=>{const _0x3019c7=a74_0x199b6b,_0x4701ce={};_0x4701ce[_0x3019c7(0xaa)]=function(_0x2b5d16,_0x155349){return _0x2b5d16<_0x155349;};const _0x5f3d91=_0x4701ce,_0x1d8543={};_0x1d8543[_0x3019c7(0xa9)]=0x0,_0x1d8543[_0x3019c7(0xc6)]=0x1,_0x1d8543['edge']=0x2,_0x1d8543[_0x3019c7(0xb6)]=0x3;const _0x35c976=_0x1d8543;return _0x5044a0[_0x3019c7(0xb3)]((_0x4ef3ff,_0x181bf8,_0x199336)=>{const _0x21e2b4=_0x3019c7,_0x3273c1=_0x5044a0[_0x4ef3ff];if(_0x181bf8[_0x21e2b4(0xe4)])return _0x4ef3ff;if(_0x3273c1['deviceName'])return _0x199336;const _0x46ce54=_0x181bf8[_0x21e2b4(0xc8)]?_0x181bf8['browser']:_0x181bf8[_0x21e2b4(0xbe)];if(_0x46ce54&&_0x5f3d91[_0x21e2b4(0xaa)](_0x35c976[_0x46ce54[_0x21e2b4(0xa0)]()],_0x35c976[_0x46ce54[_0x21e2b4(0xa0)]()]))return _0x199336;return _0x4ef3ff;},0x0);},exports[a74_0x199b6b(0xd9)]=async(_0xd7374a,_0x52fb58,_0x3e1639)=>{const _0xa1ef99=a74_0x199b6b,_0x3713e2={};_0x3713e2[_0xa1ef99(0xe2)]=_0xa1ef99(0xda);const _0x168094=_0x3713e2,_0x2bce6f=_0xd7374a['browserstackPercyMap'];if(helper[_0xa1ef99(0xe0)](_0xd7374a[_0xa1ef99(0xb4)])){logger[_0xa1ef99(0xa7)](_0x168094[_0xa1ef99(0xe2)]);return;}const _0x52e75=_0x2bce6f[_0xa1ef99(0xde)](_0xd7374a['browserstackSessionName'],_0x52fb58);_0x3e1639[_0xa1ef99(0xdb)]?await PercySDK[_0xa1ef99(0xc2)](_0xd7374a,_0x52e75):await PercySDK['screenshot'](_0xd7374a,_0x52e75),_0x2bce6f[_0xa1ef99(0xab)](_0xd7374a[_0xa1ef99(0xb4)],_0x52fb58);},exports['patchDriverPercy']=(_0x55feb9,_0x34300a,_0x6e0526)=>{const _0x107199=a74_0x199b6b,_0x1f2293={};_0x1f2293[_0x107199(0xe1)]=_0x107199(0xb9),_0x1f2293['HHVZP']=_0x107199(0xe3),_0x1f2293[_0x107199(0xaf)]=function(_0x13c045,_0x286167){return _0x13c045!==_0x286167;},_0x1f2293[_0x107199(0xd6)]=_0x107199(0xd0);const _0x72f4c6=_0x1f2293;if(!helper[_0x107199(0xd7)](_0x6e0526,[_0x72f4c6[_0x107199(0xe1)],_0x72f4c6['HHVZP']]))return;if(_0x6e0526['browserStackPercyOptions'][_0x107199(0xe3)]&&_0x6e0526[_0x107199(0xb9)][_0x107199(0xd4)]&&_0x72f4c6['iGabR'](_0x6e0526['browserStackPercyOptions'][_0x107199(0xd4)],_0x72f4c6['ssJdP'])&&!_0x55feb9[_0x107199(0xd1)]){global[_0x107199(0xb4)]&&(_0x55feb9[_0x107199(0xb4)]=global[_0x107199(0xb4)]),_0x55feb9[_0x107199(0xd1)]=new PercyCaptureMap();const _0x22050c=PercyCaptureModes[_0x6e0526[_0x107199(0xb9)][_0x107199(0xd4)]];_0x22050c[_0x107199(0xa4)]&&_0x22050c[_0x107199(0xa4)][_0x107199(0xcb)](_0x32adca=>this['overrideXforPercy'](_0x55feb9,_0x32adca,_0x6e0526)),_0x22050c['element']&&_0x22050c[_0x107199(0xd2)][_0x107199(0xcb)](_0x581b55=>{const _0x2136e6=_0x107199;if(_0x34300a[_0x2136e6(0xce)][_0x2136e6(0xd3)+_0x581b55])return;_0x34300a[_0x2136e6(0xce)][_0x2136e6(0xd3)+_0x581b55]=!![];const _0x426bea=_0x34300a['prototype'][_0x581b55];_0x34300a[_0x2136e6(0xce)][_0x581b55]=async function(){const _0x522514=_0x2136e6;let _0x57c377=_0x426bea[_0x522514(0xb5)](this,arguments);_0x57c377&&_0x57c377[_0x522514(0xc0)]&&(_0x57c377=await _0x57c377);try{const _0x59ee18=this[_0x522514(0xb2)]();await exports[_0x522514(0xd9)](_0x59ee18,_0x581b55,_0x6e0526);}catch(_0x1f8664){logger['error'](_0x522514(0xdf)+_0x581b55+_0x522514(0xa6)+_0x1f8664);}return _0x57c377;};});}},exports[a74_0x199b6b(0xcf)]=function(_0x10aafe,_0x14f97f,_0x43545b){const _0x94115=a74_0x199b6b,_0x38bf7b={};_0x38bf7b['BjlSI']=function(_0x1658b4,_0x590b17){return _0x1658b4+_0x590b17;},_0x38bf7b[_0x94115(0xbb)]=_0x94115(0xd3),_0x38bf7b['RjWAe']=_0x94115(0xc3);const _0x218415=_0x38bf7b,_0x2b2ca7=_0x218415[_0x94115(0xcc)](_0x218415['Kenfu'],_0x14f97f),_0x3686d8=_0x218415[_0x94115(0xcc)](_0x218415['RjWAe'],_0x14f97f),_0x139f95=this;if(_0x10aafe[_0x2b2ca7]||!_0x10aafe[_0x14f97f])return;_0x10aafe[_0x2b2ca7]=!![],_0x10aafe[_0x3686d8]=_0x10aafe[_0x14f97f],_0x10aafe[_0x14f97f]=async()=>{const _0x3eb2a6=_0x94115;try{await _0x139f95[_0x3eb2a6(0xd9)](_0x10aafe,_0x14f97f,_0x43545b);}catch(_0x249010){logger['error']('Error\x20patching\x20'+_0x14f97f+_0x3eb2a6(0xa6)+_0x249010);}return await _0x10aafe[_0x3686d8][_0x3eb2a6(0xb5)](_0x10aafe,arguments);};},exports[a74_0x199b6b(0xbf)]=_0x4d9f33=>{const _0x351810=a74_0x199b6b,_0x2d9774={};_0x2d9774[_0x351810(0xe3)]=_0x4d9f33['percy'],_0x2d9774[_0x351810(0xd4)]=_0x4d9f33['percyCaptureMode'];const _0x2eb92c=_0x2d9774;_0x4d9f33[_0x351810(0xe3)]&&(_0x2eb92c['browserstackPercyBestPlatform']=exports['getBestPlatformForPercySnapshot'](_0x4d9f33[_0x351810(0xba)]));;return _0x2eb92c;};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a75_0x1f9941=a75_0x210a;(function(_0x1163c1,_0x1f460f){const _0x4f606b=a75_0x210a,_0x37dd63=_0x1163c1();while(!![]){try{const _0x583a6a=parseInt(_0x4f606b(0x13e))/0x1+parseInt(_0x4f606b(0x150))/0x2+parseInt(_0x4f606b(0x12c))/0x3*(parseInt(_0x4f606b(0x113))/0x4)+-parseInt(_0x4f606b(0x105))/0x5*(-parseInt(_0x4f606b(0xea))/0x6)+-parseInt(_0x4f606b(0xe1))/0x7+-parseInt(_0x4f606b(0x125))/0x8+parseInt(_0x4f606b(0xf3))/0x9*(-parseInt(_0x4f606b(0x134))/0xa);if(_0x583a6a===_0x1f460f)break;else _0x37dd63['push'](_0x37dd63['shift']());}catch(_0x4b672d){_0x37dd63['push'](_0x37dd63['shift']());}}}(a75_0x38a8,0xe12bd));function a75_0x38a8(){const _0x47f040=['TCDFd','started','PdQGW','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','entryType','339399uKdPue','measure','stopMonitoring','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','existsSync','catch','winstonLogger','finalizeErrors','./logger','</tbody></table></body></html>','PzGTP','iekQA','WmBSF','Error\x20stopping\x20monitoring','match','slice','fXSfH','errorReportFileName','84595cTvspd','duration','pushErrors','meta','pushPerfMeasures','mark','getCleanedPerfEvents','startMonitoring','JmJfx','finalize','calculateTimeFromEvents','toString','zAvQR','writeFileSync','772QcVGEC','ymbcx','performance-report.json','false','zZCRC','map','generateJSON','eRDPR','generateHTMLReport','BROWSERSTACK_SDK_INSTRUMENTATION','exports','finalizePerfMeasures','stringify','wRhBY','FBikS','entries','./test-observability/utils','\x20for\x20all\x20processes\x20is\x20','4896312fYSrxE','<tr><td>','mpzpo','stopAndGenerate','RweEh','disconnect','KvYcu','14127OivNEE','Error\x20in\x20doing\x20csv\x20operations:\x20','ysRKe','push','cwd','Time\x20for\x20','measureWrapper','vZiKd','540BjsvbP','then','jsonReportFileName','teUuq','readFileSync','stack','measures','message','NiUMg','errorFile','234894fMCuoJ','PNZlA','forEach','_errorEvents','Performance\x20report\x20is\x20at\x20','<h1>Performance\x20Report</h1>','concat','apply','</td><td>','name','ezNWM','parse','errors','function','GWzmv','isEnabled','join','yQhJj','3576392mEIXYA','sXEXR','qkoXW','length','lZLxp','unlinkSync','getEventsFromJSON','jfFnl','7963816tlDIBL','ztOZK','cGRBo','</td></tr>','PQESH','_measureEvents','BIWcB','RPjYR','_observer','630jDDBYe','error-report.json','debug','appendFileSync'];a75_0x38a8=function(){return _0x47f040;};return a75_0x38a8();}function a75_0x210a(_0x224558,_0x14edf3){const _0x38a89f=a75_0x38a8();return a75_0x210a=function(_0x210aec,_0x32b0a5){_0x210aec=_0x210aec-0xdd;let _0x2eecbc=_0x38a89f[_0x210aec];return _0x2eecbc;},a75_0x210a(_0x224558,_0x14edf3);}const fs=require('fs'),{performance,PerformanceObserver}=require('perf_hooks'),{sleep,debug}=require(a75_0x1f9941(0x123)),path=require('path'),logger=require(a75_0x1f9941(0xfb))[a75_0x1f9941(0xf9)];class PerformanceTester{static [a75_0x1f9941(0xe9)];static ['_events']=[];static ['_measureEvents']=[];static [a75_0x1f9941(0x141)]=[];static ['started']=![];static ['jsonReportFileName']='performance-report.json';static [a75_0x1f9941(0x104)]=a75_0x1f9941(0xeb);static[a75_0x1f9941(0x10c)](_0x32cd8d=a75_0x1f9941(0x115),_0x2677ae=a75_0x1f9941(0xeb)){const _0x299556=a75_0x1f9941,_0x434999={};_0x434999[_0x299556(0x127)]=function(_0x29e050,_0xa3c8a8){return _0x29e050===_0xa3c8a8;},_0x434999[_0x299556(0xf0)]=_0x299556(0xf4),_0x434999[_0x299556(0x111)]=_0x299556(0x14b);const _0x55f99c=_0x434999;if(this[_0x299556(0xef)]||!this[_0x299556(0x14d)]())return;this[_0x299556(0xe9)]=new PerformanceObserver(_0x309222=>{const _0x3c72d4=_0x299556,_0x73d24={'ysRKe':function(_0x312aac,_0x35a917){const _0x151abc=a75_0x210a;return _0x55f99c[_0x151abc(0x127)](_0x312aac,_0x35a917);},'JmJfx':_0x55f99c['PdQGW']};_0x309222['getEntries']()[_0x3c72d4(0x140)](_0x4abfed=>{const _0x33da84=_0x3c72d4;_0x73d24[_0x33da84(0x12e)](_0x4abfed[_0x33da84(0xf2)],_0x73d24[_0x33da84(0x10d)])?this[_0x33da84(0xe6)]['push'](_0x4abfed):this['_events'][_0x33da84(0x12f)](_0x4abfed);});});const _0x32a84f={};_0x32a84f['buffered']=!![],_0x32a84f['entryTypes']=[_0x55f99c[_0x299556(0x111)],_0x55f99c[_0x299556(0xf0)]],this[_0x299556(0xe9)]['observe'](_0x32a84f),this[_0x299556(0xef)]=!![],this[_0x299556(0x136)]=_0x32cd8d,this['errorReportFileName']=_0x2677ae;}static['getPerformance'](){return performance;}static[a75_0x1f9941(0x10f)](_0x6394a4,_0x474e0a){const _0x215e54=a75_0x1f9941,_0x1ea31d={};_0x1ea31d[_0x215e54(0x152)]=function(_0x1b1086,_0x2b3f49){return _0x1b1086+_0x2b3f49;},_0x1ea31d['zZCRC']=function(_0x51b0de,_0x47352e){return _0x51b0de||_0x47352e;},_0x1ea31d[_0x215e54(0x14c)]=function(_0x32e62f,_0x125973){return _0x32e62f===_0x125973;};const _0x14ea29=_0x1ea31d,_0x43e9b0={};if(!_0x6394a4||_0x14ea29['GWzmv'](_0x6394a4[_0x215e54(0x153)],0x0))return;_0x6394a4[_0x215e54(0x118)](_0x7f3991=>{const _0x4ffa90=_0x215e54;!_0x43e9b0[_0x7f3991['name']]&&(_0x43e9b0[_0x7f3991[_0x4ffa90(0x147)]]=0x0),_0x43e9b0[_0x7f3991[_0x4ffa90(0x147)]]+=_0x7f3991['duration'];});const _0x3378cd=_0x474e0a['reduce']((_0x3ff57c,_0x52e756)=>{const _0x5272d0=_0x215e54;return _0x14ea29[_0x5272d0(0x152)](_0x43e9b0[_0x52e756],_0x14ea29[_0x5272d0(0x117)](_0x3ff57c,0x0));},0x0);return _0x3378cd;}static async['calculateTimesFromMultipleFiles'](_0x412693,_0x3f490b){const _0x87abce=a75_0x1f9941,_0x5c40d6={'PQESH':function(_0x377719,_0x14dad9){return _0x377719+_0x14dad9;},'UYWRW':function(_0x5b03b7,_0x978f4b){return _0x5b03b7||_0x978f4b;},'KvYcu':function(_0x24e68a,_0x409426){return _0x24e68a===_0x409426;},'xBrgQ':function(_0x1f8e35,_0x1ffc24){return _0x1f8e35(_0x1ffc24);},'MSesp':function(_0x104ae1,_0x30b35f){return _0x104ae1(_0x30b35f);}};if(!_0x412693||_0x5c40d6[_0x87abce(0x12b)](_0x412693[_0x87abce(0x153)],0x0))return 0x0;const _0x51908b=[];for(const _0x58ca71 of _0x412693){const _0x3004e4=path[_0x87abce(0x14e)]('.',_0x58ca71);try{const _0x52c2a0=this[_0x87abce(0xdf)](_0x3004e4);_0x52c2a0[_0x87abce(0x118)](_0x29cbe8=>{const _0x572679=_0x87abce;!_0x51908b[_0x29cbe8[_0x572679(0x147)]]&&(_0x51908b[_0x29cbe8[_0x572679(0x147)]]=0x0),_0x51908b[_0x29cbe8[_0x572679(0x147)]]+=_0x29cbe8['duration'];});}catch(_0x33511d){_0x5c40d6['xBrgQ'](debug,_0x87abce(0x12d)+_0x33511d[_0x87abce(0x110)]());}}const _0x5c52c9=_0x3f490b['reduce']((_0x14bd84,_0x583f35)=>{const _0x53db27=_0x87abce;return _0x5c40d6[_0x53db27(0xe5)](_0x51908b[_0x583f35],_0x5c40d6['UYWRW'](_0x14bd84,0x0));},0x0);return _0x5c40d6['MSesp'](debug,_0x87abce(0x131)+_0x3f490b+_0x87abce(0x124)+_0x5c52c9),_0x5c52c9;}static[a75_0x1f9941(0xdf)](_0xade53){const _0x26c5e=a75_0x1f9941;if(!fs[_0x26c5e(0xf7)](_0xade53))return[];return JSON[_0x26c5e(0x149)](fs[_0x26c5e(0x138)](_0xade53)[_0x26c5e(0x110)]());}static async[a75_0x1f9941(0x128)](_0x1143af='performance-own.html',_0x342785=null){const _0x42130b=a75_0x1f9941,_0x3987b8={'LOXhC':function(_0x177219,_0x247a79){return _0x177219(_0x247a79);},'DDIct':function(_0x53b960,_0x2feb79){return _0x53b960(_0x2feb79);},'TCDFd':function(_0x131b5a,_0x56e8dd){return _0x131b5a(_0x56e8dd);}};if(!this[_0x42130b(0xef)])return;await _0x3987b8[_0x42130b(0xee)](sleep,0x1e),this[_0x42130b(0xe9)][_0x42130b(0x12a)](),this[_0x42130b(0xef)]=![],this[_0x42130b(0x119)](this['_events']);const _0x178882=this[_0x42130b(0x11b)](this['_events']),_0x2d756a=path[_0x42130b(0x14e)](process[_0x42130b(0x130)](),_0x1143af);fs['writeFile'](_0x2d756a,_0x178882,_0x48ad84=>{const _0x411520=_0x42130b;if(_0x48ad84){_0x3987b8['LOXhC'](debug,'Error\x20in\x20writing\x20html\x20'+_0x48ad84[_0x411520(0x110)]());return;}_0x3987b8['DDIct'](debug,_0x411520(0x142)+_0x2d756a);});if(_0x342785)return this[_0x42130b(0x10f)](this['_events'],_0x342785);}static[a75_0x1f9941(0x11b)](_0x5023d3){const _0x50eedf=a75_0x1f9941,_0x2d0fcc={};_0x2d0fcc['teUuq']=_0x50eedf(0xf6),_0x2d0fcc[_0x50eedf(0xe3)]=_0x50eedf(0x143),_0x2d0fcc[_0x50eedf(0x114)]=_0x50eedf(0xf1),_0x2d0fcc[_0x50eedf(0x148)]=_0x50eedf(0xfc);const _0x3c4ca0=_0x2d0fcc;let _0x385e27=_0x3c4ca0[_0x50eedf(0x137)];return _0x385e27+=_0x3c4ca0[_0x50eedf(0xe3)],_0x385e27+=_0x3c4ca0[_0x50eedf(0x114)],_0x5023d3[_0x50eedf(0x140)](_0x2643d7=>{const _0xe5578=_0x50eedf;_0x385e27+=_0xe5578(0x126)+_0x2643d7[_0xe5578(0x147)]+_0xe5578(0x146)+_0x2643d7[_0xe5578(0x106)]+_0xe5578(0xe4);}),_0x385e27+=_0x3c4ca0[_0x50eedf(0x148)],_0x385e27;}static[a75_0x1f9941(0x119)](_0x378849){const _0xbf6713=a75_0x1f9941;if(!this[_0xbf6713(0x136)])return;const _0x3046b5={};_0x378849[_0xbf6713(0x118)](_0x2e491d=>{const _0x5567f1=_0xbf6713;!_0x3046b5[_0x2e491d[_0x5567f1(0x147)]]&&(_0x3046b5[_0x2e491d['name']]=0x0),_0x3046b5[_0x2e491d[_0x5567f1(0x147)]]+=_0x2e491d[_0x5567f1(0x106)];});const _0xeb053c=Object[_0xbf6713(0x122)](_0x3046b5)[_0xbf6713(0x118)](([_0x146118,_0x3c8e52])=>{const _0x47c893=_0xbf6713,_0x3b877e={};return _0x3b877e[_0x47c893(0x147)]=_0x146118,_0x3b877e[_0x47c893(0x106)]=_0x3c8e52,_0x3b877e;});fs[_0xbf6713(0x112)](this[_0xbf6713(0x136)],JSON[_0xbf6713(0x11f)](_0xeb053c));}static[a75_0x1f9941(0x14d)](){const _0x1e6d65=a75_0x1f9941,_0x27c18a={};_0x27c18a[_0x1e6d65(0x13c)]=function(_0x1f0ba1,_0x207c88){return _0x1f0ba1===_0x207c88;},_0x27c18a['RweEh']=_0x1e6d65(0x116);const _0x393904=_0x27c18a;return!_0x393904[_0x1e6d65(0x13c)](process['env'][_0x1e6d65(0x11c)],_0x393904[_0x1e6d65(0x129)]);}static[a75_0x1f9941(0xf4)](_0x4a39c6,_0x101393,_0x585c99=null,_0x2cde15=null){const _0x415a94=a75_0x1f9941,_0x5ddcb6={};_0x5ddcb6[_0x415a94(0xe0)]=function(_0x4e7a1f,_0x5c39cc){return _0x4e7a1f+_0x5c39cc;},_0x5ddcb6[_0x415a94(0x151)]='-start',_0x5ddcb6[_0x415a94(0x14f)]=function(_0x21da2f,_0x968b4a){return _0x21da2f+_0x968b4a;},_0x5ddcb6['eRDPR']='-end',_0x5ddcb6[_0x415a94(0xfd)]=function(_0x479787,_0x42acd3){return _0x479787 instanceof _0x42acd3;};const _0x4e4601=_0x5ddcb6;try{if(this['started']&&this[_0x415a94(0x14d)]()){let _0x48bc5a=_0x4a39c6;_0x585c99&&(_0x48bc5a=_0x4a39c6+'['+JSON[_0x415a94(0x11f)](_0x585c99)+']');const _0x117d84=_0x4e4601[_0x415a94(0xe0)](_0x48bc5a,_0x4e4601[_0x415a94(0x151)]),_0x1936a3=_0x4e4601[_0x415a94(0x14f)](_0x48bc5a,_0x4e4601[_0x415a94(0x11a)]);performance['mark'](_0x117d84);const _0x1df3b2=_0x101393[_0x415a94(0x145)](null,_0x2cde15);if(_0x4e4601[_0x415a94(0xfd)](_0x1df3b2,Promise))return new Promise((_0x3fc2a5,_0x5df9f4)=>{const _0x451286=_0x415a94;_0x1df3b2[_0x451286(0x135)](_0x41afae=>_0x3fc2a5(_0x41afae))[_0x451286(0xf8)](_0x4a7855=>_0x5df9f4(_0x4a7855))['finally'](()=>{const _0x2b7295=_0x451286;performance[_0x2b7295(0x10a)](_0x1936a3),performance[_0x2b7295(0xf4)](_0x48bc5a,_0x117d84,_0x1936a3);});});;return performance['mark'](_0x1936a3),performance[_0x415a94(0xf4)](_0x48bc5a,_0x117d84,_0x1936a3),_0x1df3b2;};return _0x101393[_0x415a94(0x145)](null,_0x2cde15);}catch(_0x2d1301){return _0x101393['apply'](null,_0x2cde15);}}static[a75_0x1f9941(0x132)](_0x4c050a,_0x54e861){const _0x26f18b=this;return function(){const _0x108aec=a75_0x210a,_0x49792d=[_0x4c050a,_0x54e861,null][_0x108aec(0x144)](arguments);return _0x26f18b[_0x108aec(0xf4)][_0x108aec(0x145)](_0x26f18b,_0x49792d);};}static[a75_0x1f9941(0x10b)](){const _0x38aa4a=a75_0x1f9941,_0x4c048a={};_0x4c048a[_0x38aa4a(0x133)]=function(_0x1a30ef,_0x5c37d1){return _0x1a30ef/_0x5c37d1;},_0x4c048a[_0x38aa4a(0x103)]=function(_0x15756c,_0x5034f6){return _0x15756c+_0x5034f6;},_0x4c048a[_0x38aa4a(0x13f)]=function(_0x30f71b,_0x4c7b54){return _0x30f71b*_0x4c7b54;};const _0x439807=_0x4c048a,_0x44764f=/(^.*)\[(.*)\]$/,_0x24c6aa={},_0x465543={};for(const _0x121b4a of this[_0x38aa4a(0xe6)]){const _0x1fb23d=_0x121b4a['name'][_0x38aa4a(0x101)](_0x44764f),_0x4e90ca={};_0x4e90ca[_0x38aa4a(0x147)]=_0x121b4a[_0x38aa4a(0x147)],_0x4e90ca[_0x38aa4a(0x106)]=_0x121b4a[_0x38aa4a(0x106)]||0x0;const _0x4ae22d=_0x4e90ca;_0x1fb23d&&(_0x4ae22d[_0x38aa4a(0x147)]=_0x1fb23d[0x1],_0x4ae22d[_0x38aa4a(0x108)]=JSON[_0x38aa4a(0x149)](_0x1fb23d[0x2]));if(_0x24c6aa[_0x4ae22d['name']]){const _0x13ab3b=_0x24c6aa[_0x4ae22d[_0x38aa4a(0x147)]],_0x25b424=_0x465543[_0x4ae22d['name']];_0x24c6aa[_0x4ae22d['name']]['duration']=_0x439807[_0x38aa4a(0x133)](_0x439807['fXSfH'](_0x439807['PNZlA'](_0x13ab3b[_0x38aa4a(0x106)],_0x25b424),_0x4ae22d[_0x38aa4a(0x106)]),_0x439807[_0x38aa4a(0x103)](0x1,_0x25b424)),_0x465543[_0x4ae22d[_0x38aa4a(0x147)]]++;}else _0x24c6aa[_0x4ae22d[_0x38aa4a(0x147)]]=_0x4ae22d,_0x465543[_0x4ae22d[_0x38aa4a(0x147)]]=0x1;}return Object['values'](_0x24c6aa);}static['pushPerfMeasures'](){const _0x3ca019=a75_0x1f9941,_0x486b64={};_0x486b64[_0x3ca019(0xff)]=function(_0x1ab98d,_0x59945e){return _0x1ab98d===_0x59945e;},_0x486b64[_0x3ca019(0xe8)]=function(_0x37b732,_0x3de0a2){return _0x37b732+_0x3de0a2;};const _0x342fc1=_0x486b64;if(_0x342fc1[_0x3ca019(0xff)](this[_0x3ca019(0xe6)]['length'],0x0))return;const _0x500c4c=this[_0x3ca019(0x10b)](),_0x3f3b12=JSON['stringify'](_0x500c4c),_0x14be43=_0x342fc1[_0x3ca019(0xe8)](_0x3f3b12[_0x3ca019(0x102)](0x1,-0x1),',');fs[_0x3ca019(0xed)](this['jsonReportFileName'],_0x14be43);}static[a75_0x1f9941(0x11e)](){const _0x122e37=a75_0x1f9941,_0x37b4f0={};_0x37b4f0[_0x122e37(0x120)]=function(_0x349aca,_0x3195da){return _0x349aca===_0x3195da;},_0x37b4f0[_0x122e37(0xe7)]=function(_0xfbcabd,_0x3b76d7){return _0xfbcabd>_0x3b76d7;};const _0x19e669=_0x37b4f0;if(!this[_0x122e37(0xef)]||_0x19e669[_0x122e37(0x120)](this[_0x122e37(0xe6)][_0x122e37(0x153)],0x0))return[];if(!fs[_0x122e37(0xf7)](this['jsonReportFileName']))return this['_measureEvents'];let _0xf6949e=fs[_0x122e37(0x138)](this[_0x122e37(0x136)])[_0x122e37(0x110)]();_0xf6949e='['+_0xf6949e[_0x122e37(0x102)](0x0,-0x1)+']';let _0x3512f8=JSON[_0x122e37(0x149)](_0xf6949e);return _0x19e669[_0x122e37(0xe7)](this['_measureEvents'][_0x122e37(0x153)],0x0)&&(_0x3512f8=_0x3512f8[_0x122e37(0x144)](this[_0x122e37(0x10b)]())),this[_0x122e37(0xe9)][_0x122e37(0x12a)](),fs['unlinkSync'](this[_0x122e37(0x136)]),_0x3512f8;}static[a75_0x1f9941(0x107)](){const _0x2de82b=a75_0x1f9941,_0x5c86ca={};_0x5c86ca[_0x2de82b(0xfe)]=function(_0x3615a1,_0x19883d){return _0x3615a1===_0x19883d;},_0x5c86ca[_0x2de82b(0x121)]=function(_0x5c47b2,_0x2f4c9b){return _0x5c47b2+_0x2f4c9b;};const _0x332868=_0x5c86ca;if(_0x332868[_0x2de82b(0xfe)](this[_0x2de82b(0x141)][_0x2de82b(0x153)],0x0))return;const _0x3bca20=JSON[_0x2de82b(0x11f)](this[_0x2de82b(0x141)]),_0x1a5391=_0x332868[_0x2de82b(0x121)](_0x3bca20[_0x2de82b(0x102)](0x1,-0x1),',');fs[_0x2de82b(0xed)](this[_0x2de82b(0x13d)],_0x1a5391);}static['finalizeErrors'](){const _0x24f2f6=a75_0x1f9941,_0x222bad={};_0x222bad['ztOZK']=function(_0x15ac97,_0x50f783){return _0x15ac97>_0x50f783;};const _0x3a975c=_0x222bad;if(!fs[_0x24f2f6(0xf7)](this[_0x24f2f6(0x104)]))return this[_0x24f2f6(0x141)];let _0x32e773=fs[_0x24f2f6(0x138)](this[_0x24f2f6(0x104)])[_0x24f2f6(0x110)]();_0x32e773='['+_0x32e773['slice'](0x0,-0x1)+']';let _0x41fe2d=JSON[_0x24f2f6(0x149)](_0x32e773);return _0x3a975c[_0x24f2f6(0xe2)](this[_0x24f2f6(0x141)][_0x24f2f6(0x153)],0x0)&&(_0x41fe2d=_0x41fe2d[_0x24f2f6(0x144)](this[_0x24f2f6(0x141)])),fs[_0x24f2f6(0xde)](this[_0x24f2f6(0x104)]),_0x41fe2d;}static['captureError'](_0x389275){const _0x2f8c4e=a75_0x1f9941;if(!this[_0x2f8c4e(0x14d)]())return;this[_0x2f8c4e(0x141)][_0x2f8c4e(0x12f)]({'message':_0x389275[_0x2f8c4e(0x13b)],'trace':_0x389275[_0x2f8c4e(0x139)],'code':_0x389275['code']||null,'time':new Date()});}static[a75_0x1f9941(0xf5)](){const _0x1e0625=a75_0x1f9941,_0x5295ee={};_0x5295ee[_0x1e0625(0xdd)]=_0x1e0625(0x100);const _0x9f397c=_0x5295ee;try{if(!this[_0x1e0625(0x14d)]())return;this[_0x1e0625(0xe9)][_0x1e0625(0x12a)](),this[_0x1e0625(0x109)](),this[_0x1e0625(0x107)]();}catch{logger[_0x1e0625(0xec)](_0x9f397c[_0x1e0625(0xdd)]);}}static[a75_0x1f9941(0x10e)](){const _0x12eeab=a75_0x1f9941,_0x17adc4=this[_0x12eeab(0x11e)](),_0x1166f7=this[_0x12eeab(0xfa)]();if(!this[_0x12eeab(0x14d)]()){const _0x4267d8={};return _0x4267d8[_0x12eeab(0x13a)]=[],_0x4267d8[_0x12eeab(0x14a)]=[],_0x4267d8;}const _0x542cb4={};return _0x542cb4['measures']=_0x17adc4,_0x542cb4['errors']=_0x1166f7,_0x542cb4;}}module[a75_0x1f9941(0x11d)]=PerformanceTester;
|
|
1
|
+
const a75_0x1168d9=a75_0x50ab;(function(_0x32617c,_0x53b789){const _0x3d85d9=a75_0x50ab,_0x5e4e84=_0x32617c();while(!![]){try{const _0x5e2e52=-parseInt(_0x3d85d9(0x194))/0x1+parseInt(_0x3d85d9(0x1e9))/0x2*(-parseInt(_0x3d85d9(0x1c4))/0x3)+parseInt(_0x3d85d9(0x1e8))/0x4*(-parseInt(_0x3d85d9(0x186))/0x5)+-parseInt(_0x3d85d9(0x1c2))/0x6*(parseInt(_0x3d85d9(0x1a1))/0x7)+-parseInt(_0x3d85d9(0x183))/0x8+-parseInt(_0x3d85d9(0x1d1))/0x9*(-parseInt(_0x3d85d9(0x182))/0xa)+parseInt(_0x3d85d9(0x1ad))/0xb;if(_0x5e2e52===_0x53b789)break;else _0x5e4e84['push'](_0x5e4e84['shift']());}catch(_0x5de044){_0x5e4e84['push'](_0x5e4e84['shift']());}}}(a75_0x8d7c,0x4b9a2));function a75_0x8d7c(){const _0x5c489f=['4286hsswRe','apply','appendFileSync','message','writeFileSync','JBiqN','forEach','entries','jsonReportFileName','lgpxj','qdVPS','iIqGI','performance-own.html','pIATK','_observer','RkIUR','5851330ASVQNz','2643448CKbTek','stopAndGenerate','gJEvp','83420qlNgqw','existsSync','errorReportFileName','hfgba','getPerformance','cCCpi','pushErrors','perf_hooks','calculateTimesFromMultipleFiles','exports','parse','env','./logger','</td></tr>','370321vmysBD','tCEtc','reduce','unlinkSync','concat','isEnabled','XhtsE','finalizeErrors','-end','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','QGUOV','entryTypes','stopMonitoring','1967AxwHAg','observe','meta','toString','map','-start','RHPiz','name','iyjlo','disconnect','finalize','TZNvu','12289299GVHolL','stringify','error-report.json','dyKua','cCgQC','</tbody></table></body></html>','DhpgY','Performance\x20report\x20is\x20at\x20','buffered','getCleanedPerfEvents','writeFile','started','performance-report.json','_errorEvents','then','CuvWh','Pebmq','errors','mTZCL','startMonitoring','BbFWR','10362EWnElb','debug','9SNpmuJ','NiaHt','join','QeEvN','code','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','winstonLogger','match','DeGSb','duration','stack','finally','entryType','9kgLLnE','<tr><td>','slice','push','\x20for\x20all\x20processes\x20is\x20','measure','_events','mark','length','KHXAV','_measureEvents','getEntries','measureWrapper','Error\x20in\x20writing\x20html\x20','bZnEV','PARya','kxNJB','NsSuH','captureError','pushPerfMeasures','path','generateJSON','generateHTMLReport','48etzLjB'];a75_0x8d7c=function(){return _0x5c489f;};return a75_0x8d7c();}const fs=require('fs'),{performance,PerformanceObserver}=require(a75_0x1168d9(0x18d)),{sleep,debug}=require('./test-observability/utils'),path=require(a75_0x1168d9(0x1e5)),logger=require(a75_0x1168d9(0x192))[a75_0x1168d9(0x1ca)];class PerformanceTester{static ['_observer'];static [a75_0x1168d9(0x1d7)]=[];static ['_measureEvents']=[];static [a75_0x1168d9(0x1ba)]=[];static [a75_0x1168d9(0x1b8)]=![];static [a75_0x1168d9(0x1f1)]=a75_0x1168d9(0x1b9);static [a75_0x1168d9(0x188)]=a75_0x1168d9(0x1af);static[a75_0x1168d9(0x1c0)](_0xfb82d6=a75_0x1168d9(0x1b9),_0x2ad764='error-report.json'){const _0x31020e=a75_0x1168d9,_0x3d90fe={};_0x3d90fe[_0x31020e(0x1a9)]=function(_0x21b37c,_0x4fc13e){return _0x21b37c===_0x4fc13e;},_0x3d90fe[_0x31020e(0x1b0)]='measure',_0x3d90fe[_0x31020e(0x1bc)]='function';const _0x5ca120=_0x3d90fe;if(this[_0x31020e(0x1b8)]||!this[_0x31020e(0x199)]())return;this[_0x31020e(0x180)]=new PerformanceObserver(_0x19a7b3=>{const _0x46ba80=_0x31020e;_0x19a7b3[_0x46ba80(0x1dc)]()[_0x46ba80(0x1ef)](_0x33edec=>{const _0xa81f9f=_0x46ba80;_0x5ca120[_0xa81f9f(0x1a9)](_0x33edec[_0xa81f9f(0x1d0)],_0x5ca120[_0xa81f9f(0x1b0)])?this[_0xa81f9f(0x1db)][_0xa81f9f(0x1d4)](_0x33edec):this[_0xa81f9f(0x1d7)][_0xa81f9f(0x1d4)](_0x33edec);});});const _0x2784c9={};_0x2784c9[_0x31020e(0x1b5)]=!![],_0x2784c9[_0x31020e(0x19f)]=[_0x5ca120[_0x31020e(0x1bc)],_0x5ca120[_0x31020e(0x1b0)]],this[_0x31020e(0x180)][_0x31020e(0x1a2)](_0x2784c9),this[_0x31020e(0x1b8)]=!![],this[_0x31020e(0x1f1)]=_0xfb82d6,this[_0x31020e(0x188)]=_0x2ad764;}static[a75_0x1168d9(0x18a)](){return performance;}static['calculateTimeFromEvents'](_0x12c7d1,_0x5058cc){const _0x280242=a75_0x1168d9,_0x402fbe={};_0x402fbe['MumxA']=function(_0x5320bb,_0x3ede64){return _0x5320bb+_0x3ede64;},_0x402fbe['XGVYj']=function(_0xb6b2cd,_0x440207){return _0xb6b2cd||_0x440207;},_0x402fbe[_0x280242(0x19a)]=function(_0xef952b,_0x593a91){return _0xef952b===_0x593a91;};const _0x16cd2c=_0x402fbe,_0x4e31c5={};if(!_0x12c7d1||_0x16cd2c[_0x280242(0x19a)](_0x12c7d1[_0x280242(0x1d9)],0x0))return;_0x12c7d1[_0x280242(0x1a5)](_0xcbfc3=>{const _0x240b6a=_0x280242;!_0x4e31c5[_0xcbfc3[_0x240b6a(0x1a8)]]&&(_0x4e31c5[_0xcbfc3[_0x240b6a(0x1a8)]]=0x0),_0x4e31c5[_0xcbfc3[_0x240b6a(0x1a8)]]+=_0xcbfc3[_0x240b6a(0x1cd)];});const _0x2aacd9=_0x5058cc[_0x280242(0x196)]((_0x43c40f,_0x1ebacf)=>{return _0x16cd2c['MumxA'](_0x4e31c5[_0x1ebacf],_0x16cd2c['XGVYj'](_0x43c40f,0x0));},0x0);return _0x2aacd9;}static async[a75_0x1168d9(0x18e)](_0xa7671,_0x5e16ae){const _0x4c7186=a75_0x1168d9,_0x1df9ea={'cCgQC':function(_0x519c16,_0x494960){return _0x519c16+_0x494960;},'RHPiz':function(_0x51017e,_0x7bcae3){return _0x51017e||_0x7bcae3;},'pIATK':function(_0xf1f814,_0x28f67b){return _0xf1f814===_0x28f67b;},'tCEtc':function(_0x464b57,_0x5b20a1){return _0x464b57(_0x5b20a1);}};if(!_0xa7671||_0x1df9ea[_0x4c7186(0x17f)](_0xa7671[_0x4c7186(0x1d9)],0x0))return 0x0;const _0x57f441=[];for(const _0x51ceed of _0xa7671){const _0x478c3c=path[_0x4c7186(0x1c6)]('.',_0x51ceed);try{const _0x1191a4=this['getEventsFromJSON'](_0x478c3c);_0x1191a4[_0x4c7186(0x1a5)](_0x3bf428=>{const _0x196ee3=_0x4c7186;!_0x57f441[_0x3bf428[_0x196ee3(0x1a8)]]&&(_0x57f441[_0x3bf428[_0x196ee3(0x1a8)]]=0x0),_0x57f441[_0x3bf428[_0x196ee3(0x1a8)]]+=_0x3bf428[_0x196ee3(0x1cd)];});}catch(_0x75ec36){_0x1df9ea[_0x4c7186(0x195)](debug,'Error\x20in\x20doing\x20csv\x20operations:\x20'+_0x75ec36[_0x4c7186(0x1a4)]());}}const _0x1006e5=_0x5e16ae[_0x4c7186(0x196)]((_0xb4d647,_0x7428dd)=>{const _0x21c611=_0x4c7186;return _0x1df9ea[_0x21c611(0x1b1)](_0x57f441[_0x7428dd],_0x1df9ea[_0x21c611(0x1a7)](_0xb4d647,0x0));},0x0);return _0x1df9ea[_0x4c7186(0x195)](debug,'Time\x20for\x20'+_0x5e16ae+_0x4c7186(0x1d5)+_0x1006e5),_0x1006e5;}static['getEventsFromJSON'](_0x59ac3c){const _0xfed7bf=a75_0x1168d9;if(!fs[_0xfed7bf(0x187)](_0x59ac3c))return[];return JSON[_0xfed7bf(0x190)](fs['readFileSync'](_0x59ac3c)['toString']());}static async[a75_0x1168d9(0x184)](_0x1d8546=a75_0x1168d9(0x17e),_0x29aa25=null){const _0x3cf012=a75_0x1168d9,_0x57d482={'TZNvu':function(_0x261d81,_0x48ecfd){return _0x261d81(_0x48ecfd);},'Eykoa':function(_0x16f450,_0x2db7b9){return _0x16f450(_0x2db7b9);}};if(!this[_0x3cf012(0x1b8)])return;await _0x57d482[_0x3cf012(0x1ac)](sleep,0x1e),this[_0x3cf012(0x180)][_0x3cf012(0x1aa)](),this[_0x3cf012(0x1b8)]=![],this[_0x3cf012(0x1e6)](this[_0x3cf012(0x1d7)]);const _0x3e1b2f=this[_0x3cf012(0x1e7)](this[_0x3cf012(0x1d7)]),_0x50b8df=path['join'](process['cwd'](),_0x1d8546);fs[_0x3cf012(0x1b7)](_0x50b8df,_0x3e1b2f,_0x144701=>{const _0x4584fc=_0x3cf012;if(_0x144701){_0x57d482[_0x4584fc(0x1ac)](debug,_0x4584fc(0x1de)+_0x144701[_0x4584fc(0x1a4)]());return;}_0x57d482['Eykoa'](debug,_0x4584fc(0x1b4)+_0x50b8df);});if(_0x29aa25)return this['calculateTimeFromEvents'](this[_0x3cf012(0x1d7)],_0x29aa25);}static[a75_0x1168d9(0x1e7)](_0x1a399b){const _0x3ca776=a75_0x1168d9,_0x156aee={};_0x156aee[_0x3ca776(0x1f2)]=_0x3ca776(0x19d),_0x156aee[_0x3ca776(0x1da)]='<h1>Performance\x20Report</h1>',_0x156aee['DeGSb']=_0x3ca776(0x1c9),_0x156aee[_0x3ca776(0x19e)]=_0x3ca776(0x1b2);const _0x451d79=_0x156aee;let _0x25cf51=_0x451d79[_0x3ca776(0x1f2)];return _0x25cf51+=_0x451d79['KHXAV'],_0x25cf51+=_0x451d79[_0x3ca776(0x1cc)],_0x1a399b[_0x3ca776(0x1ef)](_0xcce852=>{const _0x513baa=_0x3ca776;_0x25cf51+=_0x513baa(0x1d2)+_0xcce852[_0x513baa(0x1a8)]+'</td><td>'+_0xcce852[_0x513baa(0x1cd)]+_0x513baa(0x193);}),_0x25cf51+=_0x451d79[_0x3ca776(0x19e)],_0x25cf51;}static[a75_0x1168d9(0x1e6)](_0x1b5760){const _0x247552=a75_0x1168d9;if(!this['jsonReportFileName'])return;const _0x23c9eb={};_0x1b5760[_0x247552(0x1a5)](_0x15e5ed=>{const _0xfb200f=_0x247552;!_0x23c9eb[_0x15e5ed['name']]&&(_0x23c9eb[_0x15e5ed[_0xfb200f(0x1a8)]]=0x0),_0x23c9eb[_0x15e5ed['name']]+=_0x15e5ed[_0xfb200f(0x1cd)];});const _0x29e4ea=Object[_0x247552(0x1f0)](_0x23c9eb)['map'](([_0x1a9bba,_0xc70d44])=>{const _0x5d0a5a=_0x247552,_0x32c93e={};return _0x32c93e['name']=_0x1a9bba,_0x32c93e[_0x5d0a5a(0x1cd)]=_0xc70d44,_0x32c93e;});fs[_0x247552(0x1ed)](this[_0x247552(0x1f1)],JSON[_0x247552(0x1ae)](_0x29e4ea));}static[a75_0x1168d9(0x199)](){const _0x1cf18a=a75_0x1168d9,_0x4a8af3={};_0x4a8af3[_0x1cf18a(0x189)]=function(_0x1e497f,_0x196028){return _0x1e497f===_0x196028;},_0x4a8af3[_0x1cf18a(0x1e1)]='false';const _0xb124a2=_0x4a8af3;return!_0xb124a2[_0x1cf18a(0x189)](process[_0x1cf18a(0x191)]['BROWSERSTACK_SDK_INSTRUMENTATION'],_0xb124a2[_0x1cf18a(0x1e1)]);}static[a75_0x1168d9(0x1d6)](_0x178a97,_0x21d10e,_0x18ff92=null,_0x35e7cf=null){const _0x237557=a75_0x1168d9,_0x1fb5b6={};_0x1fb5b6[_0x237557(0x1e0)]=function(_0x19488d,_0x5c25ef){return _0x19488d+_0x5c25ef;},_0x1fb5b6[_0x237557(0x1c7)]=_0x237557(0x1a6),_0x1fb5b6['qdVPS']=_0x237557(0x19c),_0x1fb5b6['bZnEV']=function(_0x335eb0,_0x614c02){return _0x335eb0 instanceof _0x614c02;};const _0x2ba535=_0x1fb5b6;try{if(this[_0x237557(0x1b8)]&&this['isEnabled']()){let _0x4a4609=_0x178a97;_0x18ff92&&(_0x4a4609=_0x178a97+'['+JSON[_0x237557(0x1ae)](_0x18ff92)+']');const _0x30c743=_0x2ba535[_0x237557(0x1e0)](_0x4a4609,_0x2ba535[_0x237557(0x1c7)]),_0x3f25f4=_0x2ba535['PARya'](_0x4a4609,_0x2ba535[_0x237557(0x17c)]);performance['mark'](_0x30c743);const _0x3d1116=_0x21d10e[_0x237557(0x1ea)](null,_0x35e7cf);if(_0x2ba535[_0x237557(0x1df)](_0x3d1116,Promise))return new Promise((_0x1b2cc8,_0x3c82e8)=>{const _0x582131=_0x237557;_0x3d1116[_0x582131(0x1bb)](_0x15eb46=>_0x1b2cc8(_0x15eb46))['catch'](_0x443324=>_0x3c82e8(_0x443324))[_0x582131(0x1cf)](()=>{const _0xb92edd=_0x582131;performance[_0xb92edd(0x1d8)](_0x3f25f4),performance['measure'](_0x4a4609,_0x30c743,_0x3f25f4);});});;return performance[_0x237557(0x1d8)](_0x3f25f4),performance[_0x237557(0x1d6)](_0x4a4609,_0x30c743,_0x3f25f4),_0x3d1116;};return _0x21d10e[_0x237557(0x1ea)](null,_0x35e7cf);}catch(_0x113046){return _0x21d10e[_0x237557(0x1ea)](null,_0x35e7cf);}}static[a75_0x1168d9(0x1dd)](_0x373098,_0x1aa09b){const _0x4c7da5=this;return function(){const _0x4c5243=a75_0x50ab,_0x1c4acf=[_0x373098,_0x1aa09b,null][_0x4c5243(0x198)](arguments);return _0x4c7da5[_0x4c5243(0x1d6)]['apply'](_0x4c7da5,_0x1c4acf);};}static[a75_0x1168d9(0x1b6)](){const _0x2850c9=a75_0x1168d9,_0x29812e={};_0x29812e[_0x2850c9(0x1b3)]=function(_0x4e282e,_0x202152){return _0x4e282e/_0x202152;},_0x29812e[_0x2850c9(0x1e2)]=function(_0xc06578,_0x27b44b){return _0xc06578+_0x27b44b;},_0x29812e[_0x2850c9(0x181)]=function(_0x5dd488,_0x57db93){return _0x5dd488*_0x57db93;};const _0x468965=_0x29812e,_0x2d4d8e=/(^.*)\[(.*)\]$/,_0x5dd688={},_0xafed09={};for(const _0x1297e1 of this[_0x2850c9(0x1db)]){const _0x2407ac=_0x1297e1['name'][_0x2850c9(0x1cb)](_0x2d4d8e),_0x3b8965={};_0x3b8965[_0x2850c9(0x1a8)]=_0x1297e1[_0x2850c9(0x1a8)],_0x3b8965[_0x2850c9(0x1cd)]=_0x1297e1[_0x2850c9(0x1cd)]||0x0;const _0xcc7be6=_0x3b8965;_0x2407ac&&(_0xcc7be6['name']=_0x2407ac[0x1],_0xcc7be6[_0x2850c9(0x1a3)]=JSON['parse'](_0x2407ac[0x2]));if(_0x5dd688[_0xcc7be6['name']]){const _0x3a2a8d=_0x5dd688[_0xcc7be6['name']],_0x3fc201=_0xafed09[_0xcc7be6[_0x2850c9(0x1a8)]];_0x5dd688[_0xcc7be6[_0x2850c9(0x1a8)]][_0x2850c9(0x1cd)]=_0x468965['DhpgY'](_0x468965['NsSuH'](_0x468965['RkIUR'](_0x3a2a8d[_0x2850c9(0x1cd)],_0x3fc201),_0xcc7be6[_0x2850c9(0x1cd)]),_0x468965[_0x2850c9(0x1e2)](0x1,_0x3fc201)),_0xafed09[_0xcc7be6[_0x2850c9(0x1a8)]]++;}else _0x5dd688[_0xcc7be6[_0x2850c9(0x1a8)]]=_0xcc7be6,_0xafed09[_0xcc7be6[_0x2850c9(0x1a8)]]=0x1;}return Object['values'](_0x5dd688);}static[a75_0x1168d9(0x1e4)](){const _0x2438af=a75_0x1168d9,_0x197dd3={};_0x197dd3[_0x2438af(0x1bd)]=function(_0x1dd64a,_0x3894bd){return _0x1dd64a===_0x3894bd;},_0x197dd3[_0x2438af(0x1c5)]=function(_0x559ef6,_0x548388){return _0x559ef6+_0x548388;};const _0x38b1e6=_0x197dd3;if(_0x38b1e6[_0x2438af(0x1bd)](this[_0x2438af(0x1db)][_0x2438af(0x1d9)],0x0))return;const _0x5f3a4c=this[_0x2438af(0x1b6)](),_0x1b5c2f=JSON[_0x2438af(0x1ae)](_0x5f3a4c),_0x3ed848=_0x38b1e6[_0x2438af(0x1c5)](_0x1b5c2f[_0x2438af(0x1d3)](0x1,-0x1),',');fs['appendFileSync'](this['jsonReportFileName'],_0x3ed848);}static['finalizePerfMeasures'](){const _0x33476=a75_0x1168d9,_0x141df5={};_0x141df5[_0x33476(0x17d)]=function(_0x18a9b7,_0x519335){return _0x18a9b7===_0x519335;},_0x141df5[_0x33476(0x185)]=function(_0x30e13e,_0x42d07d){return _0x30e13e>_0x42d07d;};const _0x3a95bd=_0x141df5;if(!this[_0x33476(0x1b8)]||_0x3a95bd[_0x33476(0x17d)](this[_0x33476(0x1db)][_0x33476(0x1d9)],0x0))return[];if(!fs[_0x33476(0x187)](this[_0x33476(0x1f1)]))return this[_0x33476(0x1db)];let _0x386659=fs['readFileSync'](this[_0x33476(0x1f1)])[_0x33476(0x1a4)]();_0x386659='['+_0x386659[_0x33476(0x1d3)](0x0,-0x1)+']';let _0x4986c3=JSON['parse'](_0x386659);return _0x3a95bd['gJEvp'](this[_0x33476(0x1db)]['length'],0x0)&&(_0x4986c3=_0x4986c3[_0x33476(0x198)](this[_0x33476(0x1b6)]())),this[_0x33476(0x180)][_0x33476(0x1aa)](),fs[_0x33476(0x197)](this[_0x33476(0x1f1)]),_0x4986c3;}static[a75_0x1168d9(0x18c)](){const _0x31a6ed=a75_0x1168d9,_0x5ab477={};_0x5ab477[_0x31a6ed(0x18b)]=function(_0x3f9458,_0x1f37ef){return _0x3f9458===_0x1f37ef;},_0x5ab477[_0x31a6ed(0x1bf)]=function(_0x3e7750,_0x1e23e7){return _0x3e7750+_0x1e23e7;};const _0x5c49c5=_0x5ab477;if(_0x5c49c5[_0x31a6ed(0x18b)](this['_errorEvents'][_0x31a6ed(0x1d9)],0x0))return;const _0x250475=JSON[_0x31a6ed(0x1ae)](this[_0x31a6ed(0x1ba)]),_0x27ff19=_0x5c49c5[_0x31a6ed(0x1bf)](_0x250475['slice'](0x1,-0x1),',');fs[_0x31a6ed(0x1eb)](this['errorFile'],_0x27ff19);}static[a75_0x1168d9(0x19b)](){const _0x9bfde=a75_0x1168d9,_0x1f18be={};_0x1f18be[_0x9bfde(0x1ee)]=function(_0x36c9e7,_0xaadafe){return _0x36c9e7>_0xaadafe;};const _0x11d5a8=_0x1f18be;if(!fs['existsSync'](this['errorReportFileName']))return this['_errorEvents'];let _0x42e90d=fs['readFileSync'](this['errorReportFileName'])[_0x9bfde(0x1a4)]();_0x42e90d='['+_0x42e90d[_0x9bfde(0x1d3)](0x0,-0x1)+']';let _0x236c96=JSON['parse'](_0x42e90d);return _0x11d5a8[_0x9bfde(0x1ee)](this['_errorEvents']['length'],0x0)&&(_0x236c96=_0x236c96[_0x9bfde(0x198)](this[_0x9bfde(0x1ba)])),fs['unlinkSync'](this['errorReportFileName']),_0x236c96;}static[a75_0x1168d9(0x1e3)](_0x4d0764){const _0x21f08a=a75_0x1168d9;if(!this[_0x21f08a(0x199)]())return;this[_0x21f08a(0x1ba)]['push']({'message':_0x4d0764[_0x21f08a(0x1ec)],'trace':_0x4d0764[_0x21f08a(0x1ce)],'code':_0x4d0764[_0x21f08a(0x1c8)]||null,'time':new Date()});}static[a75_0x1168d9(0x1a0)](){const _0x55ed09=a75_0x1168d9,_0x2371d5={};_0x2371d5[_0x55ed09(0x1c1)]='Error\x20stopping\x20monitoring';const _0x433045=_0x2371d5;try{if(!this[_0x55ed09(0x199)]())return;this[_0x55ed09(0x180)][_0x55ed09(0x1aa)](),this['pushPerfMeasures'](),this[_0x55ed09(0x18c)]();}catch{logger[_0x55ed09(0x1c3)](_0x433045[_0x55ed09(0x1c1)]);}}static[a75_0x1168d9(0x1ab)](){const _0xb06bab=a75_0x1168d9,_0x31ad51=this['finalizePerfMeasures'](),_0x32adc5=this[_0xb06bab(0x19b)]();if(!this[_0xb06bab(0x199)]()){const _0x368e54={};return _0x368e54['measures']=[],_0x368e54[_0xb06bab(0x1be)]=[],_0x368e54;}const _0xaaa311={};return _0xaaa311['measures']=_0x31ad51,_0xaaa311[_0xb06bab(0x1be)]=_0x32adc5,_0xaaa311;}}function a75_0x50ab(_0x59a67e,_0x2c8a78){const _0x8d7cd8=a75_0x8d7c();return a75_0x50ab=function(_0x50abb3,_0x4518a9){_0x50abb3=_0x50abb3-0x17c;let _0x495030=_0x8d7cd8[_0x50abb3];return _0x495030;},a75_0x50ab(_0x59a67e,_0x2c8a78);}module[a75_0x1168d9(0x18f)]=PerformanceTester;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a76_0x3212(_0x338507,_0x3cdecc){const _0x281455=a76_0x2814();return a76_0x3212=function(_0x321298,_0x450414){_0x321298=_0x321298-0x184;let _0x1921cb=_0x281455[_0x321298];return _0x1921cb;},a76_0x3212(_0x338507,_0x3cdecc);}const a76_0xd7af89=a76_0x3212;(function(_0x3bcee9,_0x4eaa2f){const _0x1a283e=a76_0x3212,_0x3b9e51=_0x3bcee9();while(!![]){try{const _0x1317ff=parseInt(_0x1a283e(0x193))/0x1*(-parseInt(_0x1a283e(0x1ab))/0x2)+parseInt(_0x1a283e(0x1ae))/0x3*(-parseInt(_0x1a283e(0x188))/0x4)+-parseInt(_0x1a283e(0x18e))/0x5+-parseInt(_0x1a283e(0x190))/0x6*(-parseInt(_0x1a283e(0x194))/0x7)+parseInt(_0x1a283e(0x18d))/0x8+parseInt(_0x1a283e(0x1af))/0x9+-parseInt(_0x1a283e(0x1a3))/0xa*(-parseInt(_0x1a283e(0x18c))/0xb);if(_0x1317ff===_0x4eaa2f)break;else _0x3b9e51['push'](_0x3b9e51['shift']());}catch(_0x415932){_0x3b9e51['push'](_0x3b9e51['shift']());}}}(a76_0x2814,0xb920e));const http=require('http'),https=require(a76_0xd7af89(0x197)),monkeypatch=require(a76_0xd7af89(0x19b));function spy(_0x3700a4){const _0x43a976=a76_0xd7af89,_0x29b388={'TexBc':function(_0x5be83c,_0x1bef42,_0x3fc386){return _0x5be83c(_0x1bef42,_0x3fc386);},'klUTP':_0x43a976(0x196),'rPAky':function(_0x46932c,_0x1b44ac){return _0x46932c-_0x1b44ac;},'WPmzh':function(_0x126bd2,..._0x2977b5){return _0x126bd2(..._0x2977b5);},'SqtgZ':_0x43a976(0x198),'olwpt':_0x43a976(0x184),'WuHXW':function(_0x1ab5cf,_0x10b994,_0x1ea167,_0x42dbd2){return _0x1ab5cf(_0x10b994,_0x1ea167,_0x42dbd2);},'HNlAN':_0x43a976(0x18a),'YBKJE':_0x43a976(0x1a5)},_0x58cf43=(_0x3c2b23,_0x5768da,_0x5781d8)=>{const _0x92f8c7=_0x43a976,_0x3a2f75={'FajDA':function(_0x236245,_0x46a9fe){const _0xfbeaf8=a76_0x3212;return _0x29b388[_0xfbeaf8(0x1a7)](_0x236245,_0x46a9fe);},'dgKxm':function(_0x39b553,_0xe1bcd,_0x38fddf){const _0x37ba8d=a76_0x3212;return _0x29b388[_0x37ba8d(0x195)](_0x39b553,_0xe1bcd,_0x38fddf);},'pDVvv':_0x29b388[_0x92f8c7(0x1b0)],'SlkMI':function(_0x53cfcb,..._0x14dbb2){const _0x3d0dfb=_0x92f8c7;return _0x29b388[_0x3d0dfb(0x1a6)](_0x53cfcb,..._0x14dbb2);}},_0x3399c8=_0x29b388[_0x92f8c7(0x195)](_0x3c2b23,_0x5768da,_0x5781d8);let _0x40bea7=Date['now'](),_0x5f3e99;const _0x5c2cea=_0x4a5d94=>{const _0x3c2d48=_0x92f8c7,_0x33e3ee={};_0x33e3ee[_0x3c2d48(0x1ad)]=_0x5768da['host']||_0x5768da[_0x3c2d48(0x186)],_0x33e3ee[_0x3c2d48(0x19f)]=_0x5768da[_0x3c2d48(0x19f)],_0x33e3ee['method']=_0x5768da[_0x3c2d48(0x19c)],_0x33e3ee[_0x3c2d48(0x1a4)]=_0x5768da['headers'],_0x29b388[_0x3c2d48(0x195)](_0x3700a4,_0x4a5d94,_0x33e3ee);};return _0x3399c8[_0x92f8c7(0x189)](_0x29b388[_0x92f8c7(0x1a9)],_0x357bf4=>{const _0x1bf01a=_0x92f8c7,_0x205a69=_0x3a2f75[_0x1bf01a(0x1a2)](Date[_0x1bf01a(0x19e)](),_0x40bea7),_0x57ecb7={};_0x57ecb7[_0x1bf01a(0x186)]=_0x5768da[_0x1bf01a(0x1ad)]||_0x5768da[_0x1bf01a(0x186)],_0x57ecb7['path']=_0x5768da[_0x1bf01a(0x19f)],_0x57ecb7[_0x1bf01a(0x19c)]=_0x5768da['method'],_0x57ecb7[_0x1bf01a(0x1a4)]=_0x5768da[_0x1bf01a(0x1a4)],_0x57ecb7[_0x1bf01a(0x1a8)]=_0x357bf4[_0x1bf01a(0x1aa)],_0x57ecb7['duration_ms']=_0x205a69,_0x3a2f75[_0x1bf01a(0x187)](_0x3700a4,null,_0x57ecb7),_0x5f3e99[_0x1bf01a(0x19d)](_0x3a2f75[_0x1bf01a(0x192)],_0x5c2cea);}),_0x3399c8['on'](_0x29b388[_0x92f8c7(0x191)],_0x1c7533=>{const _0x423ebf=_0x92f8c7;_0x5f3e99=_0x1c7533,_0x1c7533[_0x423ebf(0x189)](_0x29b388[_0x423ebf(0x1b0)],_0x5c2cea);}),_0x29b388[_0x92f8c7(0x185)](monkeypatch,_0x3399c8,_0x29b388[_0x92f8c7(0x19a)],(_0x31bfce,..._0x212e57)=>{const _0x367f5b=_0x92f8c7;_0x40bea7=Date[_0x367f5b(0x19e)](),_0x3a2f75[_0x367f5b(0x199)](_0x31bfce,..._0x212e57);}),_0x3399c8;};_0x29b388[_0x43a976(0x185)](monkeypatch,http,_0x29b388[_0x43a976(0x18f)],_0x58cf43),_0x29b388[_0x43a976(0x185)](monkeypatch,https,_0x29b388[_0x43a976(0x18f)],_0x58cf43);}function restore(){const _0x59633b=a76_0xd7af89;http[_0x59633b(0x1a5)][_0x59633b(0x18b)](),https[_0x59633b(0x1a5)][_0x59633b(0x18b)]();}const a76_0x74317c={};function a76_0x2814(){const _0x4196cd=['headers','request','WPmzh','rPAky','status_code','SqtgZ','statusCode','1964GIzZIb','exports','host','6TtVAbL','6837732BVjqco','klUTP','socket','WuHXW','hostname','dgKxm','572004sNJPPA','once','end','unpatch','22HYPHQT','1555048bsBjRk','3547370UZjRPw','YBKJE','751878kpxzGy','olwpt','pDVvv','543WfNKKD','7VcJOKH','TexBc','error','https','response','SlkMI','HNlAN','monkeypatch','method','removeListener','now','path','spy','restore','FajDA','6037730XPKnSM'];a76_0x2814=function(){return _0x4196cd;};return a76_0x2814();}a76_0x74317c[a76_0xd7af89(0x1a0)]=spy,a76_0x74317c[a76_0xd7af89(0x1a1)]=restore,module[a76_0xd7af89(0x1ac)]=a76_0x74317c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a77_0x2349(_0x52f726,_0x26e2e3){const _0x3cae10=a77_0x3cae();return a77_0x2349=function(_0x234981,_0x4d69df){_0x234981=_0x234981-0x1ca;let _0x2cf42a=_0x3cae10[_0x234981];return _0x2cf42a;},a77_0x2349(_0x52f726,_0x26e2e3);}const a77_0x33c198=a77_0x2349;function a77_0x3cae(){const _0x267c16=['protocol','eslNv','cdtvF','1158508YTcFRy','http','VnVAY','xOGyh','LyBUK','jNtme','vqZXR','request','agent','8129SyvajP','keepAlive','416hwTbln','globalAgent','3141072iGBPtH','1708503sKfZfT','4347650AdJRdX','8dzOpiS','https:','Agent','keepAliveMsecs','KDMek','prototype','exports','mFcvO','4409865JCDmau','6616099PZimix','XwtYL','call'];a77_0x3cae=function(){return _0x267c16;};return a77_0x3cae();}(function(_0x1e379c,_0x323aa4){const _0x5d9b84=a77_0x2349,_0x215da1=_0x1e379c();while(!![]){try{const _0x799499=-parseInt(_0x5d9b84(0x1dd))/0x1*(parseInt(_0x5d9b84(0x1df))/0x2)+-parseInt(_0x5d9b84(0x1e2))/0x3+parseInt(_0x5d9b84(0x1d4))/0x4+parseInt(_0x5d9b84(0x1e3))/0x5+parseInt(_0x5d9b84(0x1e1))/0x6+parseInt(_0x5d9b84(0x1ce))/0x7+parseInt(_0x5d9b84(0x1e4))/0x8*(parseInt(_0x5d9b84(0x1cd))/0x9);if(_0x799499===_0x323aa4)break;else _0x215da1['push'](_0x215da1['shift']());}catch(_0x2a2fad){_0x215da1['push'](_0x215da1['shift']());}}}(a77_0x3cae,0xd1586),module[a77_0x33c198(0x1cb)]=function(){const _0x558f97=a77_0x33c198,_0x53f92c={'XwtYL':function(_0x2a8987,_0x2b5628){return _0x2a8987===_0x2b5628;},'KDMek':_0x558f97(0x1e5),'eslNv':_0x558f97(0x1dc),'vqZXR':function(_0x29dbdf,_0x4a5a5f,_0x1395d8){return _0x29dbdf(_0x4a5a5f,_0x1395d8);},'LyBUK':function(_0x4421b3,_0x365a0d){return _0x4421b3(_0x365a0d);},'xOGyh':_0x558f97(0x1d5),'VnVAY':function(_0x43622d,_0x5b474d){return _0x43622d(_0x5b474d);},'cdtvF':'https','mFcvO':function(_0x19b4be,_0xc4a045){return _0x19b4be*_0xc4a045;},'jNtme':'keepAlive'},_0x18a6cd=_0x53f92c[_0x558f97(0x1d8)](require,_0x53f92c[_0x558f97(0x1d7)]),_0x5c700e=_0x53f92c[_0x558f97(0x1d6)](require,_0x53f92c[_0x558f97(0x1d3)]),_0xafa979=_0x53f92c[_0x558f97(0x1cc)](0x1e,0x3e8);if(_0x18a6cd['globalAgent']&&Object[_0x558f97(0x1ca)]['hasOwnProperty'][_0x558f97(0x1d0)](_0x18a6cd[_0x558f97(0x1e0)],_0x53f92c[_0x558f97(0x1d9)]))_0x18a6cd[_0x558f97(0x1e0)][_0x558f97(0x1de)]=!![],_0x5c700e[_0x558f97(0x1e0)]['keepAlive']=!![],_0x18a6cd[_0x558f97(0x1e0)][_0x558f97(0x1e7)]=_0xafa979,_0x5c700e['globalAgent']['keepAliveMsecs']=_0xafa979;else{const _0x584a7c={};_0x584a7c['keepAlive']=!![],_0x584a7c[_0x558f97(0x1e7)]=_0xafa979;const _0x16945c=new _0x18a6cd[(_0x558f97(0x1e6))](_0x584a7c),_0x52637c={};_0x52637c['keepAlive']=!![],_0x52637c[_0x558f97(0x1e7)]=_0xafa979;const _0x42201f=new _0x5c700e[(_0x558f97(0x1e6))](_0x52637c),_0x396799=_0x18a6cd[_0x558f97(0x1db)],_0x55a922=_0x5c700e[_0x558f97(0x1db)];_0x18a6cd['request']=function(_0x4b344a,_0x57bde5){const _0x473386=_0x558f97;if(_0x53f92c[_0x473386(0x1cf)](_0x4b344a[_0x473386(0x1d1)],_0x53f92c[_0x473386(0x1e8)]))return _0x4b344a[_0x53f92c[_0x473386(0x1d2)]]=_0x42201f,_0x53f92c[_0x473386(0x1da)](_0x55a922,_0x4b344a,_0x57bde5);return _0x4b344a[_0x53f92c[_0x473386(0x1d2)]]=_0x16945c,_0x53f92c[_0x473386(0x1da)](_0x396799,_0x4b344a,_0x57bde5);};}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a78_0x4e58(_0x1dc43b,_0x1f2993){var _0x10d576=a78_0x10d5();return a78_0x4e58=function(_0x4e5813,_0x1b8271){_0x4e5813=_0x4e5813-0x168;var _0x59e7b0=_0x10d576[_0x4e5813];return _0x59e7b0;},a78_0x4e58(_0x1dc43b,_0x1f2993);}var a78_0x248943=a78_0x4e58;(function(_0x102ce5,_0x32b4a6){var _0x1eaac2=a78_0x4e58,_0x278d4a=_0x102ce5();while(!![]){try{var _0x2d21a6=-parseInt(_0x1eaac2(0x173))/0x1*(-parseInt(_0x1eaac2(0x16d))/0x2)+parseInt(_0x1eaac2(0x172))/0x3*(-parseInt(_0x1eaac2(0x16a))/0x4)+parseInt(_0x1eaac2(0x17c))/0x5*(parseInt(_0x1eaac2(0x169))/0x6)+-parseInt(_0x1eaac2(0x168))/0x7+parseInt(_0x1eaac2(0x178))/0x8+parseInt(_0x1eaac2(0x17a))/0x9*(parseInt(_0x1eaac2(0x176))/0xa)+parseInt(_0x1eaac2(0x174))/0xb*(-parseInt(_0x1eaac2(0x16c))/0xc);if(_0x2d21a6===_0x32b4a6)break;else _0x278d4a['push'](_0x278d4a['shift']());}catch(_0x12eaae){_0x278d4a['push'](_0x278d4a['shift']());}}}(a78_0x10d5,0xed27a));var a78_0x48789b={};function a78_0x10d5(){var _0x35cdda=['Playwright','127854eAiOhc','api/v1/event','10GhZtZg','8913933ZxuxAA','4734246vTmSjK','3860632VZrpTu','api/v1/screenshots','39924REqfSP','63556LJyRCe','codeceptjs','assign','cucumber','mocha','6FaoCJR','16ltwwJf','99SLcXuB','.obs_test_details','560Yiseeb','JEST','10583984mWfITM'];a78_0x10d5=function(){return _0x35cdda;};return a78_0x10d5();}a78_0x48789b['PLAYWRIGHT']=a78_0x248943(0x179),a78_0x48789b['MOCHA']=a78_0x248943(0x171),a78_0x48789b['CODECEPT']=a78_0x248943(0x16e),a78_0x48789b[a78_0x248943(0x177)]='jest',a78_0x48789b['CUCUMBER']=a78_0x248943(0x170),module['exports']={'consoleHolder':Object[a78_0x248943(0x16f)]({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':'https://collector-observability.browserstack.com','EVENT_ENDPOINT':a78_0x248943(0x17b),'BATCH_ENDPOINT':'api/v1/batch','SCREENSHOT_ENDPOINT':a78_0x248943(0x16b),'DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS':0x1388,'DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS':0x64,'DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS':0x1f4,'TEMP_STORE_DIR_NAME':a78_0x248943(0x175),'FRAMEWORKS':a78_0x48789b};
|