browserstack-node-sdk 1.46.7 → 1.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/generated/sdk-messages_pb.d.ts +18 -0
- package/generated/sdk-messages_pb.js +147 -3
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -0
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -0
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a117_0x21f050=a117_0x4951;(function(_0x112d28,_0x3d09df){const _0x3ec7d2=a117_0x4951,_0x2d3223=_0x112d28();while(!![]){try{const _0x243543=-parseInt(_0x3ec7d2(0xb5))/0x1+-parseInt(_0x3ec7d2(0xd4))/0x2*(parseInt(_0x3ec7d2(0xc0))/0x3)+parseInt(_0x3ec7d2(0xb6))/0x4*(-parseInt(_0x3ec7d2(0x8e))/0x5)+parseInt(_0x3ec7d2(0x100))/0x6+parseInt(_0x3ec7d2(0xa0))/0x7*(parseInt(_0x3ec7d2(0x103))/0x8)+-parseInt(_0x3ec7d2(0x9c))/0x9*(parseInt(_0x3ec7d2(0x8f))/0xa)+parseInt(_0x3ec7d2(0x95))/0xb;if(_0x243543===_0x3d09df)break;else _0x2d3223['push'](_0x2d3223['shift']());}catch(_0x65377d){_0x2d3223['push'](_0x2d3223['shift']());}}}(a117_0x15b0,0xadd90));const a117_0xe4259c={};a117_0xe4259c['SDK_SETUP']=a117_0x21f050(0xd7),a117_0xe4259c[a117_0x21f050(0x90)]=a117_0x21f050(0xf2),a117_0xe4259c[a117_0x21f050(0xd6)]=a117_0x21f050(0x91),a117_0xe4259c['SDK_TEST']='sdk:test',a117_0xe4259c['SDK_POST_TEST']=a117_0x21f050(0xbe),a117_0xe4259c[a117_0x21f050(0xd9)]='sdk:hook',a117_0xe4259c[a117_0x21f050(0xd5)]='sdk:driver',a117_0xe4259c[a117_0x21f050(0xac)]=a117_0x21f050(0xe5),a117_0xe4259c[a117_0x21f050(0x83)]=a117_0x21f050(0x84),a117_0xe4259c['SDK_AUTO_CAPTURE']='sdk:auto-capture',a117_0xe4259c['SDK_PROXY_SETUP']=a117_0x21f050(0xae),a117_0xe4259c[a117_0x21f050(0xb2)]=a117_0x21f050(0xbc),a117_0xe4259c[a117_0x21f050(0xec)]='sdk:automate',a117_0xe4259c['SDK_APP_AUTOMATE']=a117_0x21f050(0x8c),a117_0xe4259c[a117_0x21f050(0xed)]=a117_0x21f050(0xfc),a117_0xe4259c['SDK_PERCY']=a117_0x21f050(0xc3),a117_0xe4259c[a117_0x21f050(0xb8)]=a117_0x21f050(0xb1),a117_0xe4259c[a117_0x21f050(0x8d)]=a117_0x21f050(0xc7),a117_0xe4259c[a117_0x21f050(0xfd)]=a117_0x21f050(0x94),a117_0xe4259c[a117_0x21f050(0xca)]=a117_0x21f050(0xe3),a117_0xe4259c[a117_0x21f050(0xef)]=a117_0x21f050(0x9a),a117_0xe4259c['SDK_CLI_ON_BOOTSTRAP']=a117_0x21f050(0x93),a117_0xe4259c[a117_0x21f050(0x85)]=a117_0x21f050(0xe7),a117_0xe4259c['SDK_CLI_ON_STOP']=a117_0x21f050(0xcd),a117_0xe4259c[a117_0x21f050(0xdf)]=a117_0x21f050(0xb3),a117_0xe4259c[a117_0x21f050(0xba)]=a117_0x21f050(0xe4),a117_0xe4259c['SDK_DRIVER_INIT']=a117_0x21f050(0xe9),a117_0xe4259c[a117_0x21f050(0xcf)]='sdk:findNearestHub',a117_0xe4259c['SDK_AUTOMATION_FRAMEWORK_INIT']='sdk:automationFrameworkInit',a117_0xe4259c[a117_0x21f050(0xa6)]=a117_0x21f050(0xbf),a117_0xe4259c[a117_0x21f050(0x92)]=a117_0x21f050(0x89),a117_0xe4259c[a117_0x21f050(0xbd)]='sdk:observabilityConfig',a117_0xe4259c['SDK_AI_SELF_HEAL_STEP']='sdk:aiSelfHealStep',a117_0xe4259c['SDK_AI_SELF_HEAL_GET_RESULT']=a117_0x21f050(0x9f),a117_0xe4259c[a117_0x21f050(0x98)]=a117_0x21f050(0x99),a117_0xe4259c[a117_0x21f050(0xe0)]=a117_0x21f050(0xc8),a117_0xe4259c[a117_0x21f050(0x102)]=a117_0x21f050(0xf3),a117_0xe4259c['SDK_CLI_ENQUEUE_TEST_EVENT']='sdk:cli:enqueueTestEvent',a117_0xe4259c[a117_0x21f050(0xa4)]=a117_0x21f050(0xf0),a117_0xe4259c['SDK_ON_STOP']=a117_0x21f050(0x88);const SDK_EVENTS=a117_0xe4259c,a117_0x519208={};function a117_0x15b0(){const _0x3abc70=[':sync','PRE_EXECUTE','SDK_AUTOMATE','SDK_TURBOSCALE','AFTER_ALL','SDK_CLI_CHECK_UPDATE','sdk:automationFrameworkStop',':get-accessibility-results-summary','sdk:cleanup','sdk:cli:logCreatedEvent',':driver-takeScreenShot',':screenshot-app','A11Y_EVENTS','SCREENSHOT_APP',':get-accessibility-results','PERCY_EVENTS','SDK_PERCY',':get','sdk:turboscale','SDK_CLI_START','SDK_APP_AUTOMATE','HUB_MANAGEMENT','5424180TYSsKl','SAVE_RESULTS','SDK_CLI_LOG_CREATED_EVENT','152FqKcZa','APP_AUOTMATE_EVENTS',':print-buildlink','SDK_O11Y','sdk:o11y','SDK_CLI_ON_CONNECT','TAKE_SCREENSHOT','AFTER_EACH','sdk:onStop','sdk:accessibilityConfig',':local-stop','BEFORE','sdk:app-automate','SDK_POST_INITIALIZE','13990ORAsRq','50eStcuV','SDK_CLEANUP','sdk:pre-test','SDK_ACCESSIBILITY_CONFIG','sdk:cli:on-bootstrap','sdk:cli:start','30931769Tksfnk',':session-annotation','KEEP_ALIVE','SDK_TEST_FRAMEWORK_EVENT','sdk:testFrameworkEvent','sdk:cli:check-update','TESTHUB_EVENTS','1904895iaazYR',':before-each',':download','sdk:aiSelfHealGetResult','18207nElpZR','SESSION_STATUS','GET','DRIVER_MANAGE','SDK_AUTOMATION_FRAMEWORK_STOP','SESSION_ANNOTATION','SDK_AUTOMATION_FRAMEWORK_START',':start',':idle-timeout','BEFORE_ALL','IDLE_TIMEOUT',':before-all','SDK_A11Y',':screenshot','sdk:proxy-setup','HOOK_EVENTS',':stop','sdk:driver:pre-initialization','SDK_TESTHUB','sdk:startBinSession','SNAPSHOT','331584sKSMIA','708HtPEYg','APP_UPLOAD','SDK_PRE_INITIALIZE','AUTO_CAPTURE','SDK_CONNECT_BIN_SESSION','TURBOSCALE_EVENTS','sdk:testhub','SDK_OBSERVABILITY_CONFIG','sdk:post-test','sdk:automationFrameworkStart','3504729WnMYFZ','exports',':hub-management','sdk:percy','DRIVER_EVENT','PERFORM_SCAN','PRINT_BUILDLINK','sdk:driver:post-initialization','sdk:testSessionEvent','QUIT','SDK_CLI_DOWNLOAD','START','SYNC','sdk:cli:on-stop','LOCAL_START','SDK_FIND_NEAREST_HUB','STOP','SCREENSHOT',':post-execute','AFTER','2DNHkAV','SDK_DRIVER','SDK_PRE_TEST','sdk:setup','POST_EXECUTE','SDK_HOOK',':driver-manage',':session-name','GET_RESULTS',':after-each',':ci-artifacts','SDK_START_BIN_SESSION','SDK_TEST_SESSION_EVENT','AUTOMATE_EVENTS',':local-start','sdk:cli:download','sdk:connectBinSession','sdk:a11y','O11y_EVENTS','sdk:cli:on-connect',':save-results','sdk:driverInit'];a117_0x15b0=function(){return _0x3abc70;};return a117_0x15b0();}function a117_0x4951(_0x3916a9,_0x31af2e){const _0x15b088=a117_0x15b0();return a117_0x4951=function(_0x49519d,_0x30fd15){_0x49519d=_0x49519d-0x83;let _0x103eca=_0x15b088[_0x49519d];return _0x103eca;},a117_0x4951(_0x3916a9,_0x31af2e);}a117_0x519208['EVENTS']=SDK_EVENTS,a117_0x519208[a117_0x21f050(0x9b)]={},a117_0x519208[a117_0x21f050(0xe1)]={},a117_0x519208[a117_0x21f050(0xf6)]={},a117_0x519208[a117_0x21f050(0xf9)]={},a117_0x519208[a117_0x21f050(0xe6)]={},a117_0x519208[a117_0x21f050(0xaf)]={},a117_0x519208[a117_0x21f050(0xbb)]={},a117_0x519208[a117_0x21f050(0x104)]={},a117_0x519208[a117_0x21f050(0xc4)]={},a117_0x519208[a117_0x21f050(0x9b)][a117_0x21f050(0xcb)]=SDK_EVENTS[a117_0x21f050(0xb2)]+a117_0x21f050(0xa7),a117_0x519208[a117_0x21f050(0x9b)]['STOP']=SDK_EVENTS['SDK_TESTHUB']+':stop',a117_0x519208[a117_0x21f050(0xe1)][a117_0x21f050(0x97)]=SDK_EVENTS[a117_0x21f050(0xec)]+':keep-alive',a117_0x519208[a117_0x21f050(0xe1)][a117_0x21f050(0xff)]=SDK_EVENTS['SDK_AUTOMATE']+a117_0x21f050(0xc2),a117_0x519208[a117_0x21f050(0xe1)][a117_0x21f050(0xce)]=SDK_EVENTS[a117_0x21f050(0xec)]+a117_0x21f050(0xe2),a117_0x519208[a117_0x21f050(0xe1)]['LOCAL_STOP']=SDK_EVENTS[a117_0x21f050(0xec)]+a117_0x21f050(0x8a),a117_0x519208[a117_0x21f050(0xe1)][a117_0x21f050(0xa3)]=SDK_EVENTS[a117_0x21f050(0xec)]+a117_0x21f050(0xda),a117_0x519208[a117_0x21f050(0xe1)]['SESSION_NAME']=SDK_EVENTS['SDK_AUTOMATE']+a117_0x21f050(0xdb),a117_0x519208[a117_0x21f050(0xe1)][a117_0x21f050(0xa1)]=SDK_EVENTS['SDK_AUTOMATE']+':session-status',a117_0x519208[a117_0x21f050(0xe1)][a117_0x21f050(0xa5)]=SDK_EVENTS['SDK_AUTOMATE']+a117_0x21f050(0x96),a117_0x519208[a117_0x21f050(0xe1)][a117_0x21f050(0xaa)]=SDK_EVENTS[a117_0x21f050(0xec)]+a117_0x21f050(0xa8),a117_0x519208[a117_0x21f050(0xe1)]['GENERATE_CI_ARTIFACT']=SDK_EVENTS['SDK_AUTOMATE']+a117_0x21f050(0xde),a117_0x519208[a117_0x21f050(0xe1)]['PRINT_BUILDLINK']=SDK_EVENTS[a117_0x21f050(0xec)]+a117_0x21f050(0x105),a117_0x519208[a117_0x21f050(0xf6)][a117_0x21f050(0xc5)]=SDK_EVENTS['SDK_A11Y']+':driver-performscan',a117_0x519208[a117_0x21f050(0xf6)][a117_0x21f050(0x101)]=SDK_EVENTS[a117_0x21f050(0xac)]+a117_0x21f050(0xe8),a117_0x519208[a117_0x21f050(0xf6)][a117_0x21f050(0xdc)]=SDK_EVENTS[a117_0x21f050(0xac)]+a117_0x21f050(0xf8),a117_0x519208[a117_0x21f050(0xf6)]['GET_RESULTS_SUMMARY']=SDK_EVENTS[a117_0x21f050(0xac)]+a117_0x21f050(0xf1),a117_0x519208[a117_0x21f050(0xf9)]['DOWNLOAD']=SDK_EVENTS[a117_0x21f050(0xfa)]+a117_0x21f050(0x9e),a117_0x519208[a117_0x21f050(0xf9)][a117_0x21f050(0xd1)]=SDK_EVENTS[a117_0x21f050(0xfa)]+a117_0x21f050(0xad),a117_0x519208[a117_0x21f050(0xf9)][a117_0x21f050(0xcb)]=SDK_EVENTS['SDK_PERCY']+a117_0x21f050(0xa7),a117_0x519208[a117_0x21f050(0xf9)][a117_0x21f050(0xd0)]=SDK_EVENTS[a117_0x21f050(0xfa)]+a117_0x21f050(0xb0),a117_0x519208[a117_0x21f050(0xf9)][a117_0x21f050(0xb9)]=SDK_EVENTS['SDK_PERCY']+':auto-capture',a117_0x519208[a117_0x21f050(0xf9)][a117_0x21f050(0xb4)]=SDK_EVENTS[a117_0x21f050(0xfa)]+':snapshot',a117_0x519208[a117_0x21f050(0xf9)][a117_0x21f050(0xf7)]=SDK_EVENTS[a117_0x21f050(0xfa)]+a117_0x21f050(0xf5),a117_0x519208[a117_0x21f050(0xe6)][a117_0x21f050(0xcc)]=SDK_EVENTS['SDK_O11Y']+a117_0x21f050(0xea),a117_0x519208[a117_0x21f050(0xe6)][a117_0x21f050(0x86)]=SDK_EVENTS[a117_0x21f050(0x83)]+a117_0x21f050(0xf4),a117_0x519208[a117_0x21f050(0xe6)][a117_0x21f050(0xc6)]=SDK_EVENTS[a117_0x21f050(0x83)]+a117_0x21f050(0x105),a117_0x519208[a117_0x21f050(0xaf)]['BEFORE_EACH']=SDK_EVENTS[a117_0x21f050(0xd9)]+a117_0x21f050(0x9d),a117_0x519208[a117_0x21f050(0xaf)][a117_0x21f050(0x87)]=SDK_EVENTS[a117_0x21f050(0xd9)]+a117_0x21f050(0xdd),a117_0x519208[a117_0x21f050(0xaf)][a117_0x21f050(0xee)]=SDK_EVENTS['SDK_HOOK']+':after-all',a117_0x519208[a117_0x21f050(0xaf)][a117_0x21f050(0xa9)]=SDK_EVENTS[a117_0x21f050(0xd9)]+a117_0x21f050(0xab),a117_0x519208[a117_0x21f050(0xaf)][a117_0x21f050(0x8b)]=SDK_EVENTS[a117_0x21f050(0xd9)]+':before',a117_0x519208[a117_0x21f050(0xaf)][a117_0x21f050(0xd3)]=SDK_EVENTS['SDK_HOOK']+':after',a117_0x519208[a117_0x21f050(0xbb)][a117_0x21f050(0xff)]=SDK_EVENTS[a117_0x21f050(0xed)]+a117_0x21f050(0xc2),a117_0x519208[a117_0x21f050(0xbb)][a117_0x21f050(0xc6)]=SDK_EVENTS['SDK_TURBOSCALE']+':print-buildlink',a117_0x519208[a117_0x21f050(0x104)][a117_0x21f050(0xb7)]=SDK_EVENTS[a117_0x21f050(0xfe)]+':app-upload',a117_0x519208[a117_0x21f050(0xc4)][a117_0x21f050(0xc9)]=SDK_EVENTS[a117_0x21f050(0xd5)]+':quit',a117_0x519208[a117_0x21f050(0xc4)][a117_0x21f050(0xa2)]=SDK_EVENTS[a117_0x21f050(0xd5)]+a117_0x21f050(0xfb),a117_0x519208[a117_0x21f050(0xc4)][a117_0x21f050(0xeb)]=SDK_EVENTS['SDK_DRIVER']+':pre-execute',a117_0x519208[a117_0x21f050(0xc4)][a117_0x21f050(0xd8)]=SDK_EVENTS[a117_0x21f050(0xd5)]+a117_0x21f050(0xd2),module[a117_0x21f050(0xc1)]=a117_0x519208;
|
|
1
|
+
const a119_0x3bc99f=a119_0x4461;(function(_0x250053,_0x1710c0){const _0x51fa4a=a119_0x4461,_0x40868e=_0x250053();while(!![]){try{const _0x3cd0fc=parseInt(_0x51fa4a(0x202))/0x1+parseInt(_0x51fa4a(0x249))/0x2+-parseInt(_0x51fa4a(0x236))/0x3+parseInt(_0x51fa4a(0x212))/0x4*(parseInt(_0x51fa4a(0x22c))/0x5)+-parseInt(_0x51fa4a(0x1da))/0x6*(-parseInt(_0x51fa4a(0x230))/0x7)+parseInt(_0x51fa4a(0x221))/0x8*(parseInt(_0x51fa4a(0x1d5))/0x9)+-parseInt(_0x51fa4a(0x1e7))/0xa;if(_0x3cd0fc===_0x1710c0)break;else _0x40868e['push'](_0x40868e['shift']());}catch(_0x2ccdc0){_0x40868e['push'](_0x40868e['shift']());}}}(a119_0x33fb,0x81807));const a119_0xe27918={};function a119_0x33fb(){const _0x458319=['GENERATE_CI_ARTIFACT','sdk:onStop',':pre-execute','SDK_OBSERVABILITY_CONFIG','sdk:driver:post-initialization','sdk:pre-test','LOCAL_STOP','sdk:connectBinSession','14804370jSCtkb','SDK_AUTOMATE',':get-accessibility-results-summary',':quit','POST_EXECUTE','SESSION_STATUS',':screenshot',':ci-artifacts','SDK_O11Y','DOWNLOAD','sdk:auto-capture','SDK_FIND_NEAREST_HUB',':local-start','sdk:cli:on-stop','SESSION_ANNOTATION',':hub-management','AFTER_ALL','APP_UPLOAD',':get-accessibility-results','LOCAL_START','A11Y_EVENTS','SYNC','sdk:testhub','SDK_PROXY_SETUP','sdk:aiSelfHealStep',':idle-timeout','STOP','878695UwuNJb','sdk:automationFrameworkInit',':sync','sdk:driver:pre-initialization','SDK_ON_STOP','SCREENSHOT_APP','SDK_HOOK','SNAPSHOT','BEFORE_ALL',':session-status','START',':stop','sdk:cli:enqueueTestEvent','IDLE_TIMEOUT','SDK_AUTO_CAPTURE','sdk:findNearestHub','474964ELMTjz','PRE_EXECUTE','SCREENSHOT','GET','SDK_DRIVER','sdk:automate','sdk:percy',':download','AUTO_CAPTURE','sdk:cleanup','GET_RESULTS','sdk:proxy-setup','SDK_ACCESSIBILITY_CONFIG','SDK_A11Y','PRINT_BUILDLINK','368ahjPOw','SAVE_RESULTS','sdk:cli:start',':get','sdk:o11y','TAKE_SCREENSHOT','sdk:startBinSession','SDK_CLI_ON_STOP',':snapshot','GET_RESULTS_SUMMARY','SDK_DRIVER_INIT','15CuzORN','O11y_EVENTS','DRIVER_EVENT','SDK_CLI_DOWNLOAD','855463irEpJr','SDK_CLI_CHECK_UPDATE','SDK_PERCY','SDK_AI_SELF_HEAL_STEP','SDK_PRE_TEST','SDK_CLI_ENQUEUE_TEST_EVENT','1060773hDrhWg',':local-stop','TURBOSCALE_EVENTS','exports','SDK_CLI_ON_BOOTSTRAP','sdk:driver','APP_AUOTMATE_EVENTS',':print-buildlink','sdk:turboscale','SDK_CLEANUP','sdk:testFrameworkEvent','TESTHUB_EVENTS','BEFORE','EVENTS','sdk:automationFrameworkStop','sdk:testSessionEvent',':before-each','sdk:post-test','PERFORM_SCAN','1106824fZtpEm',':post-execute',':keep-alive','PERCY_EVENTS','BEFORE_EACH',':screenshot-app','AUTOMATE_EVENTS','SDK_CONNECT_BIN_SESSION','sdk:cli:check-update','QUIT',':after-each','SDK_TEST','sdk:aiSelfHealGetResult','DRIVER_MANAGE','SDK_CLI_LOG_CREATED_EVENT','KEEP_ALIVE','sdk:cli:download','SDK_TEST_SESSION_EVENT','sdk:setup',':before','AFTER','SDK_TURBOSCALE',':start','HOOK_EVENTS','88812yCrtAL','SDK_AUTOMATION_FRAMEWORK_STOP',':after','SDK_APP_AUTOMATE',':after-all','6zsdehV','sdk:a11y','SDK_TESTHUB','SDK_START_BIN_SESSION','sdk:driverInit'];a119_0x33fb=function(){return _0x458319;};return a119_0x33fb();}function a119_0x4461(_0x1ff611,_0x13f64b){const _0x33fb89=a119_0x33fb();return a119_0x4461=function(_0x44613e,_0x26dc75){_0x44613e=_0x44613e-0x1c7;let _0x487e57=_0x33fb89[_0x44613e];return _0x487e57;},a119_0x4461(_0x1ff611,_0x13f64b);}a119_0xe27918['SDK_SETUP']=a119_0x3bc99f(0x1cf),a119_0xe27918[a119_0x3bc99f(0x23f)]=a119_0x3bc99f(0x21b),a119_0xe27918[a119_0x3bc99f(0x234)]=a119_0x3bc99f(0x1e4),a119_0xe27918[a119_0x3bc99f(0x1c8)]='sdk:test',a119_0xe27918['SDK_POST_TEST']=a119_0x3bc99f(0x247),a119_0xe27918[a119_0x3bc99f(0x208)]='sdk:hook',a119_0xe27918[a119_0x3bc99f(0x216)]=a119_0x3bc99f(0x23b),a119_0xe27918['SDK_A11Y']=a119_0x3bc99f(0x1db),a119_0xe27918[a119_0x3bc99f(0x1ef)]=a119_0x3bc99f(0x225),a119_0xe27918[a119_0x3bc99f(0x210)]=a119_0x3bc99f(0x1f1),a119_0xe27918[a119_0x3bc99f(0x1fe)]=a119_0x3bc99f(0x21d),a119_0xe27918['SDK_TESTHUB']=a119_0x3bc99f(0x1fd),a119_0xe27918['SDK_AUTOMATE']=a119_0x3bc99f(0x217),a119_0xe27918['SDK_APP_AUTOMATE']='sdk:app-automate',a119_0xe27918['SDK_TURBOSCALE']=a119_0x3bc99f(0x23e),a119_0xe27918['SDK_PERCY']=a119_0x3bc99f(0x218),a119_0xe27918['SDK_PRE_INITIALIZE']=a119_0x3bc99f(0x205),a119_0xe27918['SDK_POST_INITIALIZE']=a119_0x3bc99f(0x1e3),a119_0xe27918['SDK_CLI_START']=a119_0x3bc99f(0x223),a119_0xe27918[a119_0x3bc99f(0x22f)]=a119_0x3bc99f(0x1cd),a119_0xe27918[a119_0x3bc99f(0x231)]=a119_0x3bc99f(0x251),a119_0xe27918[a119_0x3bc99f(0x23a)]='sdk:cli:on-bootstrap',a119_0xe27918['SDK_CLI_ON_CONNECT']='sdk:cli:on-connect',a119_0xe27918[a119_0x3bc99f(0x228)]=a119_0x3bc99f(0x1f4),a119_0xe27918[a119_0x3bc99f(0x1dd)]=a119_0x3bc99f(0x227),a119_0xe27918[a119_0x3bc99f(0x250)]=a119_0x3bc99f(0x1e6),a119_0xe27918[a119_0x3bc99f(0x22b)]=a119_0x3bc99f(0x1de),a119_0xe27918[a119_0x3bc99f(0x1f2)]=a119_0x3bc99f(0x211),a119_0xe27918['SDK_AUTOMATION_FRAMEWORK_INIT']=a119_0x3bc99f(0x203),a119_0xe27918['SDK_AUTOMATION_FRAMEWORK_START']='sdk:automationFrameworkStart',a119_0xe27918[a119_0x3bc99f(0x21e)]='sdk:accessibilityConfig',a119_0xe27918[a119_0x3bc99f(0x1e2)]='sdk:observabilityConfig',a119_0xe27918[a119_0x3bc99f(0x233)]=a119_0x3bc99f(0x1ff),a119_0xe27918['SDK_AI_SELF_HEAL_GET_RESULT']=a119_0x3bc99f(0x1c9),a119_0xe27918['SDK_TEST_FRAMEWORK_EVENT']=a119_0x3bc99f(0x240),a119_0xe27918[a119_0x3bc99f(0x1ce)]=a119_0x3bc99f(0x245),a119_0xe27918[a119_0x3bc99f(0x1cb)]='sdk:cli:logCreatedEvent',a119_0xe27918[a119_0x3bc99f(0x235)]=a119_0x3bc99f(0x20e),a119_0xe27918[a119_0x3bc99f(0x1d6)]=a119_0x3bc99f(0x244),a119_0xe27918[a119_0x3bc99f(0x206)]=a119_0x3bc99f(0x1e0);const SDK_EVENTS=a119_0xe27918,a119_0x351fd4={};a119_0x351fd4[a119_0x3bc99f(0x243)]=SDK_EVENTS,a119_0x351fd4[a119_0x3bc99f(0x241)]={},a119_0x351fd4[a119_0x3bc99f(0x24f)]={},a119_0x351fd4[a119_0x3bc99f(0x1fb)]={},a119_0x351fd4[a119_0x3bc99f(0x24c)]={},a119_0x351fd4[a119_0x3bc99f(0x22d)]={},a119_0x351fd4[a119_0x3bc99f(0x1d4)]={},a119_0x351fd4[a119_0x3bc99f(0x238)]={},a119_0x351fd4[a119_0x3bc99f(0x23c)]={},a119_0x351fd4[a119_0x3bc99f(0x22e)]={},a119_0x351fd4[a119_0x3bc99f(0x241)][a119_0x3bc99f(0x20c)]=SDK_EVENTS[a119_0x3bc99f(0x1dc)]+a119_0x3bc99f(0x1d3),a119_0x351fd4[a119_0x3bc99f(0x241)][a119_0x3bc99f(0x201)]=SDK_EVENTS[a119_0x3bc99f(0x1dc)]+a119_0x3bc99f(0x20d),a119_0x351fd4[a119_0x3bc99f(0x24f)][a119_0x3bc99f(0x1cc)]=SDK_EVENTS[a119_0x3bc99f(0x1e8)]+a119_0x3bc99f(0x24b),a119_0x351fd4[a119_0x3bc99f(0x24f)]['HUB_MANAGEMENT']=SDK_EVENTS[a119_0x3bc99f(0x1e8)]+a119_0x3bc99f(0x1f6),a119_0x351fd4[a119_0x3bc99f(0x24f)][a119_0x3bc99f(0x1fa)]=SDK_EVENTS[a119_0x3bc99f(0x1e8)]+a119_0x3bc99f(0x1f3),a119_0x351fd4[a119_0x3bc99f(0x24f)][a119_0x3bc99f(0x1e5)]=SDK_EVENTS[a119_0x3bc99f(0x1e8)]+a119_0x3bc99f(0x237),a119_0x351fd4[a119_0x3bc99f(0x24f)][a119_0x3bc99f(0x1ca)]=SDK_EVENTS[a119_0x3bc99f(0x1e8)]+':driver-manage',a119_0x351fd4[a119_0x3bc99f(0x24f)]['SESSION_NAME']=SDK_EVENTS[a119_0x3bc99f(0x1e8)]+':session-name',a119_0x351fd4[a119_0x3bc99f(0x24f)][a119_0x3bc99f(0x1ec)]=SDK_EVENTS[a119_0x3bc99f(0x1e8)]+a119_0x3bc99f(0x20b),a119_0x351fd4[a119_0x3bc99f(0x24f)][a119_0x3bc99f(0x1f5)]=SDK_EVENTS[a119_0x3bc99f(0x1e8)]+':session-annotation',a119_0x351fd4[a119_0x3bc99f(0x24f)][a119_0x3bc99f(0x20f)]=SDK_EVENTS[a119_0x3bc99f(0x1e8)]+a119_0x3bc99f(0x200),a119_0x351fd4[a119_0x3bc99f(0x24f)][a119_0x3bc99f(0x1df)]=SDK_EVENTS[a119_0x3bc99f(0x1e8)]+a119_0x3bc99f(0x1ee),a119_0x351fd4[a119_0x3bc99f(0x24f)]['PRINT_BUILDLINK']=SDK_EVENTS[a119_0x3bc99f(0x1e8)]+a119_0x3bc99f(0x23d),a119_0x351fd4[a119_0x3bc99f(0x1fb)][a119_0x3bc99f(0x248)]=SDK_EVENTS[a119_0x3bc99f(0x21f)]+':driver-performscan',a119_0x351fd4[a119_0x3bc99f(0x1fb)][a119_0x3bc99f(0x222)]=SDK_EVENTS[a119_0x3bc99f(0x21f)]+':save-results',a119_0x351fd4[a119_0x3bc99f(0x1fb)][a119_0x3bc99f(0x21c)]=SDK_EVENTS[a119_0x3bc99f(0x21f)]+a119_0x3bc99f(0x1f9),a119_0x351fd4[a119_0x3bc99f(0x1fb)][a119_0x3bc99f(0x22a)]=SDK_EVENTS['SDK_A11Y']+a119_0x3bc99f(0x1e9),a119_0x351fd4[a119_0x3bc99f(0x24c)][a119_0x3bc99f(0x1f0)]=SDK_EVENTS[a119_0x3bc99f(0x232)]+a119_0x3bc99f(0x219),a119_0x351fd4[a119_0x3bc99f(0x24c)][a119_0x3bc99f(0x214)]=SDK_EVENTS[a119_0x3bc99f(0x232)]+a119_0x3bc99f(0x1ed),a119_0x351fd4[a119_0x3bc99f(0x24c)][a119_0x3bc99f(0x20c)]=SDK_EVENTS['SDK_PERCY']+a119_0x3bc99f(0x1d3),a119_0x351fd4[a119_0x3bc99f(0x24c)][a119_0x3bc99f(0x201)]=SDK_EVENTS[a119_0x3bc99f(0x232)]+a119_0x3bc99f(0x20d),a119_0x351fd4[a119_0x3bc99f(0x24c)][a119_0x3bc99f(0x21a)]=SDK_EVENTS[a119_0x3bc99f(0x232)]+':auto-capture',a119_0x351fd4[a119_0x3bc99f(0x24c)][a119_0x3bc99f(0x209)]=SDK_EVENTS[a119_0x3bc99f(0x232)]+a119_0x3bc99f(0x229),a119_0x351fd4[a119_0x3bc99f(0x24c)][a119_0x3bc99f(0x207)]=SDK_EVENTS[a119_0x3bc99f(0x232)]+a119_0x3bc99f(0x24e),a119_0x351fd4[a119_0x3bc99f(0x22d)][a119_0x3bc99f(0x1fc)]=SDK_EVENTS[a119_0x3bc99f(0x1ef)]+a119_0x3bc99f(0x204),a119_0x351fd4[a119_0x3bc99f(0x22d)][a119_0x3bc99f(0x226)]=SDK_EVENTS[a119_0x3bc99f(0x1ef)]+':driver-takeScreenShot',a119_0x351fd4[a119_0x3bc99f(0x22d)]['PRINT_BUILDLINK']=SDK_EVENTS[a119_0x3bc99f(0x1ef)]+a119_0x3bc99f(0x23d),a119_0x351fd4[a119_0x3bc99f(0x1d4)][a119_0x3bc99f(0x24d)]=SDK_EVENTS[a119_0x3bc99f(0x208)]+a119_0x3bc99f(0x246),a119_0x351fd4[a119_0x3bc99f(0x1d4)]['AFTER_EACH']=SDK_EVENTS[a119_0x3bc99f(0x208)]+a119_0x3bc99f(0x1c7),a119_0x351fd4[a119_0x3bc99f(0x1d4)][a119_0x3bc99f(0x1f7)]=SDK_EVENTS['SDK_HOOK']+a119_0x3bc99f(0x1d9),a119_0x351fd4[a119_0x3bc99f(0x1d4)][a119_0x3bc99f(0x20a)]=SDK_EVENTS[a119_0x3bc99f(0x208)]+':before-all',a119_0x351fd4[a119_0x3bc99f(0x1d4)][a119_0x3bc99f(0x242)]=SDK_EVENTS[a119_0x3bc99f(0x208)]+a119_0x3bc99f(0x1d0),a119_0x351fd4[a119_0x3bc99f(0x1d4)][a119_0x3bc99f(0x1d1)]=SDK_EVENTS[a119_0x3bc99f(0x208)]+a119_0x3bc99f(0x1d7),a119_0x351fd4[a119_0x3bc99f(0x238)]['HUB_MANAGEMENT']=SDK_EVENTS['SDK_TURBOSCALE']+a119_0x3bc99f(0x1f6),a119_0x351fd4[a119_0x3bc99f(0x238)][a119_0x3bc99f(0x220)]=SDK_EVENTS[a119_0x3bc99f(0x1d2)]+':print-buildlink',a119_0x351fd4[a119_0x3bc99f(0x23c)][a119_0x3bc99f(0x1f8)]=SDK_EVENTS[a119_0x3bc99f(0x1d8)]+':app-upload',a119_0x351fd4[a119_0x3bc99f(0x22e)][a119_0x3bc99f(0x252)]=SDK_EVENTS[a119_0x3bc99f(0x216)]+a119_0x3bc99f(0x1ea),a119_0x351fd4[a119_0x3bc99f(0x22e)][a119_0x3bc99f(0x215)]=SDK_EVENTS['SDK_DRIVER']+a119_0x3bc99f(0x224),a119_0x351fd4[a119_0x3bc99f(0x22e)][a119_0x3bc99f(0x213)]=SDK_EVENTS[a119_0x3bc99f(0x216)]+a119_0x3bc99f(0x1e1),a119_0x351fd4[a119_0x3bc99f(0x22e)][a119_0x3bc99f(0x1eb)]=SDK_EVENTS[a119_0x3bc99f(0x216)]+a119_0x3bc99f(0x24a),module[a119_0x3bc99f(0x239)]=a119_0x351fd4;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a118_0x55288b=a118_0x18f3;function a118_0x18f3(_0x17f845,_0x297a1a){const _0xb1f72d=a118_0xb1f7();return a118_0x18f3=function(_0x18f352,_0x25a057){_0x18f352=_0x18f352-0x106;let _0x154906=_0xb1f72d[_0x18f352];return _0x154906;},a118_0x18f3(_0x17f845,_0x297a1a);}(function(_0x4da1f1,_0x211ed6){const _0x2baa02=a118_0x18f3,_0x5ed29e=_0x4da1f1();while(!![]){try{const _0x591583=parseInt(_0x2baa02(0x169))/0x1*(parseInt(_0x2baa02(0x16b))/0x2)+parseInt(_0x2baa02(0x11f))/0x3+-parseInt(_0x2baa02(0x161))/0x4*(parseInt(_0x2baa02(0x15e))/0x5)+parseInt(_0x2baa02(0x175))/0x6*(parseInt(_0x2baa02(0x11b))/0x7)+-parseInt(_0x2baa02(0x115))/0x8+parseInt(_0x2baa02(0x111))/0x9*(parseInt(_0x2baa02(0x124))/0xa)+-parseInt(_0x2baa02(0x1a9))/0xb*(parseInt(_0x2baa02(0x151))/0xc);if(_0x591583===_0x211ed6)break;else _0x5ed29e['push'](_0x5ed29e['shift']());}catch(_0x5e576e){_0x5ed29e['push'](_0x5ed29e['shift']());}}}(a118_0xb1f7,0x3e011));function a118_0xb1f7(){const _0x2ef506=['ubhOq','catch','_measureEvents','stopMonitoring','browserStackCwd','readFileSync','generateJSON','iNUFR','oJGAk','exports','QAOeG','observe','entryTypes','MWTqt','toString','writeFile','zrYDy','map','Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20','yHFwx','TZEpp','kHhfP','Frtiq','BROWSERSTACK_SDK_INSTRUMENTATION','33KDpHcF','match','getCleanedPerfEvents','eFFbq','existsSync','util','PHdts','__platformCaps','</td></tr>','</tbody></table></body></html>','\x20for\x20all\x20processes\x20is\x20','concat','fs/promises','parse','constants','env','uPPdS','key-metrics.json','error\x20in\x20measure\x20','platform','performance-report','slice','qzTWx','modified-key-metrics.json','9nNpDcb','WfXpD','stringify','error-report','3436528yrZIXC','DckwZ','measureWrapper','jsonReportDirPath','-start','started','1871373Rfsgvh','hbcHZ','stack','details','1026012LYWMUu','wEKXt','DAIuv','IlCEx','</td><td>','4189690YQysuz','.json','apply','_events','yPaan','errorReportFileName','mkdirSync','duration','YfsUK','join','finalize','fUcIQ','start','uYXHa','errorReportDirName','OODFh','unlink','Error\x20in\x20getting\x20key-metrics.json\x20file:\x20%s','ZEwOU','Time\x20for\x20','length','leCYH','perf_hooks','ZgEHR','forEach','getEventsFromJSON','errorFile','IfHwG','_errorEvents','ILOLW','DfxkG','readFile','assign','BUegh','calculateTimesFromMultipleFiles','failure','RkLlY','jsonReportFileName','index','readdirSync','reduce','measures','../logger','<tr><td>','lPUhv','2592684aPvQEg','errors','all','rvSjN','stopAndGenerate','message','winstonLogger','Error\x20stopping\x20monitoring\x20','CEppE','info','measure','meta','unlinkSync','5nudYeL','finalizeErrors','false','37116dGdpVH','worker','pushPerfMeasures','mark','generateHTMLReport','isEnabled','WdmUq','_observer','312673ZQrdXb','success','2YtPyvF','disconnect','Error\x20in\x20writing\x20html\x20','buffered','utf-8','cwd','format','/error-report-','captureError','performance-own.html','6DhQJeE','calculateTimeFromEvents','Error\x20in\x20doing\x20csv\x20operations:\x20','BSeyl','then','Hylsr','Error\x20while\x20removing\x20files:\x20','name','testName','readdir','function','PpigD','cuHCw','qyEQS','debug','ktEYf','push','writeFileSync','finalizePerfMeasures','Performance\x20report\x20is\x20at\x20','EftAW','-end','jsonReportDirName','quiuZ','end','tVMsP','/performance-report-','<h1>Performance\x20Report</h1>'];a118_0xb1f7=function(){return _0x2ef506;};return a118_0xb1f7();}const fs=require('fs'),fsPromise=require(a118_0x55288b(0x1b5)),{performance,PerformanceObserver}=require(a118_0x55288b(0x13a)),path=require('path'),util=require(a118_0x55288b(0x1ae)),logger=require(a118_0x55288b(0x14e))[a118_0x55288b(0x157)],{getLogDir}=require(a118_0x55288b(0x14e)),{getProcessId,sleep,debug,getTestName}=require('../processHelper');class PerformanceTester{static [a118_0x55288b(0x168)];static ['_events']=[];static [a118_0x55288b(0x193)]=[];static [a118_0x55288b(0x140)]=[];static ['started']=![];static ['jsonReportDirName']=a118_0x55288b(0x10d);static ['errorReportDirName']=process[a118_0x55288b(0x108)]['browserStackCwd']?path[a118_0x55288b(0x12d)](process[a118_0x55288b(0x108)][a118_0x55288b(0x195)],a118_0x55288b(0x114)):path[a118_0x55288b(0x12d)](process[a118_0x55288b(0x170)](),a118_0x55288b(0x114));static [a118_0x55288b(0x129)]=this[a118_0x55288b(0x132)]+'/error-report-'+getProcessId()+a118_0x55288b(0x125);static ['details']={};static ['eventsMap']={};static['startMonitoring'](_0x39c450,_0x4ab9dc=this['errorReportDirName']+a118_0x55288b(0x172)+getProcessId()+a118_0x55288b(0x125)){const _0x477123=a118_0x55288b,_0x58039e={'uYXHa':function(_0x7b0a37,_0x41df2a){return _0x7b0a37===_0x41df2a;},'ILOLW':_0x477123(0x15b),'EpPUN':function(_0x478481){return _0x478481();},'ZEwOU':function(_0xe924b1){return _0xe924b1();},'eFFbq':function(_0x404bbd,_0x41f65e){return _0x404bbd+_0x41f65e;},'BUegh':_0x477123(0x1a3),'uPPdS':_0x477123(0x17f)};try{this[_0x477123(0x118)]=path['join'](_0x58039e['EpPUN'](getLogDir),this[_0x477123(0x18b)]),!_0x39c450&&(_0x39c450=this['jsonReportDirPath']+_0x477123(0x18f)+_0x58039e[_0x477123(0x136)](getProcessId)+_0x477123(0x125)),!fs['existsSync'](this[_0x477123(0x118)])&&fs[_0x477123(0x12a)](this[_0x477123(0x118)]);}catch(_0x176957){logger[_0x477123(0x183)](_0x58039e[_0x477123(0x1ac)](_0x58039e[_0x477123(0x145)],_0x176957));}if(this[_0x477123(0x11a)]||!this[_0x477123(0x166)]())return;this[_0x477123(0x168)]=new PerformanceObserver(_0x273acf=>{const _0x93222f=_0x477123,_0x549726={'BSxjp':function(_0x56a1fc,_0x361a83){const _0x533483=a118_0x18f3;return _0x58039e[_0x533483(0x131)](_0x56a1fc,_0x361a83);},'cuHCw':_0x58039e[_0x93222f(0x141)]};_0x273acf['getEntries']()[_0x93222f(0x13c)](_0x292d57=>{const _0x83376=_0x93222f;if(_0x549726['BSxjp'](_0x292d57['entryType'],_0x549726[_0x83376(0x181)])){let _0x1584ee={};if(_0x292d57['toJSON'])_0x1584ee=_0x292d57['toJSON']();else for(const _0x58bf15 in _0x292d57){_0x1584ee[_0x58bf15]=_0x292d57[_0x58bf15];}this['details'][_0x292d57[_0x83376(0x17c)]]&&(_0x1584ee=Object['assign'](_0x1584ee,this[_0x83376(0x11e)][_0x292d57[_0x83376(0x17c)]])),delete this[_0x83376(0x11e)][_0x292d57[_0x83376(0x17c)]],this[_0x83376(0x193)][_0x83376(0x185)](_0x1584ee);}else this['_events']['push'](_0x292d57);});});const _0x576403={};_0x576403[_0x477123(0x16e)]=!![],_0x576403[_0x477123(0x19d)]=[_0x58039e[_0x477123(0x109)],_0x58039e['ILOLW']],this[_0x477123(0x168)][_0x477123(0x19c)](_0x576403),this[_0x477123(0x11a)]=!![],this['jsonReportFileName']=_0x39c450,this[_0x477123(0x129)]=_0x4ab9dc;}static['getPerformance'](){return performance;}static[a118_0x55288b(0x176)](_0x36ad4b,_0x389725){const _0x52ce31=a118_0x55288b,_0x378ff2={};_0x378ff2['QAOeG']=function(_0xb44eec,_0x1f68b6){return _0xb44eec+_0x1f68b6;},_0x378ff2[_0x52ce31(0x1a4)]=function(_0x9f75bb,_0xa10463){return _0x9f75bb||_0xa10463;},_0x378ff2[_0x52ce31(0x154)]=function(_0xb8aebf,_0x2fefa8){return _0xb8aebf===_0x2fefa8;};const _0x5f4062=_0x378ff2,_0x49b5bd={};if(!_0x36ad4b||_0x5f4062[_0x52ce31(0x154)](_0x36ad4b['length'],0x0))return;_0x36ad4b[_0x52ce31(0x1a2)](_0x2ce4d2=>{const _0x41ee64=_0x52ce31;!_0x49b5bd[_0x2ce4d2[_0x41ee64(0x17c)]]&&(_0x49b5bd[_0x2ce4d2[_0x41ee64(0x17c)]]=0x0),_0x49b5bd[_0x2ce4d2[_0x41ee64(0x17c)]]+=_0x2ce4d2[_0x41ee64(0x12b)];});const _0x3686e4=_0x389725[_0x52ce31(0x14c)]((_0x29ac5d,_0x528e60)=>{const _0x34bbb7=_0x52ce31;return _0x5f4062[_0x34bbb7(0x19b)](_0x49b5bd[_0x528e60],_0x5f4062['yHFwx'](_0x29ac5d,0x0));},0x0);return _0x3686e4;}static async[a118_0x55288b(0x146)](_0x5f55f2,_0x342206){const _0x56b177=a118_0x55288b,_0x10bbf1={'lPUhv':function(_0x5bf6bf,_0x4dd922){return _0x5bf6bf+_0x4dd922;},'WdmUq':function(_0x472015,_0x14ae58){return _0x472015||_0x14ae58;},'LOpzs':function(_0x412809,_0x59f51a){return _0x412809===_0x59f51a;},'MWTqt':function(_0xae24ad,_0x3185e9){return _0xae24ad(_0x3185e9);}};if(!_0x5f55f2||_0x10bbf1['LOpzs'](_0x5f55f2[_0x56b177(0x138)],0x0))return 0x0;const _0x32df5c=[];for(const _0x764e55 of _0x5f55f2){const _0x48ed32=path[_0x56b177(0x12d)]('.',_0x764e55);try{const _0x3e37a0=this['getEventsFromJSON'](_0x48ed32);_0x3e37a0[_0x56b177(0x1a2)](_0x948765=>{const _0x23362c=_0x56b177;!_0x32df5c[_0x948765[_0x23362c(0x17c)]]&&(_0x32df5c[_0x948765[_0x23362c(0x17c)]]=0x0),_0x32df5c[_0x948765['name']]+=_0x948765[_0x23362c(0x12b)];});}catch(_0x21fa15){_0x10bbf1[_0x56b177(0x19e)](debug,_0x56b177(0x177)+_0x21fa15[_0x56b177(0x19f)]());}}const _0x57defa=_0x342206['reduce']((_0x1afea8,_0x3edd01)=>{const _0x5e4ddb=_0x56b177;return _0x10bbf1[_0x5e4ddb(0x150)](_0x32df5c[_0x3edd01],_0x10bbf1[_0x5e4ddb(0x167)](_0x1afea8,0x0));},0x0);return _0x10bbf1[_0x56b177(0x19e)](debug,_0x56b177(0x137)+_0x342206+_0x56b177(0x1b3)+_0x57defa),_0x57defa;}static[a118_0x55288b(0x13d)](_0x126883){const _0x8ca4bc=a118_0x55288b;if(_0x126883){if(!fs[_0x8ca4bc(0x1ad)](_0x126883))return[];return JSON[_0x8ca4bc(0x106)](fs[_0x8ca4bc(0x196)](_0x126883)[_0x8ca4bc(0x19f)]());}}static async[a118_0x55288b(0x155)](_0x3af9fb=a118_0x55288b(0x174),_0x13fe76=null){const _0x31ac9d=a118_0x55288b,_0x620d48={'DAIuv':function(_0x53dfc3,_0x4931a3){return _0x53dfc3(_0x4931a3);}};if(!this['started'])return;await _0x620d48[_0x31ac9d(0x121)](sleep,0x1e),this[_0x31ac9d(0x168)][_0x31ac9d(0x16c)](),this['started']=![],this[_0x31ac9d(0x197)](this[_0x31ac9d(0x127)]);const _0x3e55c0=this[_0x31ac9d(0x165)](this[_0x31ac9d(0x127)]),_0x23086b=path[_0x31ac9d(0x12d)](process['cwd'](),_0x3af9fb);fs[_0x31ac9d(0x1a0)](_0x23086b,_0x3e55c0,_0x3e387c=>{const _0x66a0ca=_0x31ac9d;if(_0x3e387c){_0x620d48[_0x66a0ca(0x121)](debug,_0x66a0ca(0x16d)+_0x3e387c[_0x66a0ca(0x19f)]());return;}_0x620d48[_0x66a0ca(0x121)](debug,_0x66a0ca(0x188)+_0x23086b);});if(_0x13fe76)return this[_0x31ac9d(0x176)](this[_0x31ac9d(0x127)],_0x13fe76);}static[a118_0x55288b(0x165)](_0x3ca0da){const _0x2146a3=a118_0x55288b,_0x2183fc={};_0x2183fc[_0x2146a3(0x189)]='<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>',_0x2183fc[_0x2146a3(0x1a7)]=_0x2146a3(0x190),_0x2183fc[_0x2146a3(0x178)]='<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>',_0x2183fc[_0x2146a3(0x198)]=_0x2146a3(0x1b2);const _0x70804b=_0x2183fc;let _0x2982ac=_0x70804b[_0x2146a3(0x189)];return _0x2982ac+=_0x70804b[_0x2146a3(0x1a7)],_0x2982ac+=_0x70804b['BSeyl'],_0x3ca0da[_0x2146a3(0x13c)](_0x333bf4=>{const _0x45e5b7=_0x2146a3;_0x2982ac+=_0x45e5b7(0x14f)+_0x333bf4[_0x45e5b7(0x17c)]+_0x45e5b7(0x123)+_0x333bf4['duration']+_0x45e5b7(0x1b1);}),_0x2982ac+=_0x70804b[_0x2146a3(0x198)],_0x2982ac;}static['generateJSON'](_0x22bd68){const _0x20a291=a118_0x55288b;if(!this[_0x20a291(0x149)])return;const _0x483c15={};_0x22bd68[_0x20a291(0x1a2)](_0x3d6fc6=>{const _0x29fc83=_0x20a291;!_0x483c15[_0x3d6fc6[_0x29fc83(0x17c)]]&&(_0x483c15[_0x3d6fc6[_0x29fc83(0x17c)]]=0x0),_0x483c15[_0x3d6fc6[_0x29fc83(0x17c)]]+=_0x3d6fc6[_0x29fc83(0x12b)];});const _0x33da74=Object['entries'](_0x483c15)[_0x20a291(0x1a2)](([_0x5e9e19,_0x3af7fa])=>{const _0x40c4ed=_0x20a291,_0x4c5b10={};return _0x4c5b10['name']=_0x5e9e19,_0x4c5b10[_0x40c4ed(0x12b)]=_0x3af7fa,_0x4c5b10;});fs[_0x20a291(0x186)](this[_0x20a291(0x149)],JSON['stringify'](_0x33da74));}static[a118_0x55288b(0x166)](){const _0x405022=a118_0x55288b,_0x3ac090={};_0x3ac090[_0x405022(0x139)]=function(_0x31ac9b,_0x3e60c1){return _0x31ac9b===_0x3e60c1;},_0x3ac090[_0x405022(0x18c)]=_0x405022(0x160);const _0xef90ac=_0x3ac090;return!_0xef90ac['leCYH'](process[_0x405022(0x108)][_0x405022(0x1a8)],_0xef90ac[_0x405022(0x18c)]);}static['measure'](_0x490c66,_0x17be79,_0x17e26c=null,_0x195bca={},_0x2ac939=null){const _0x506d57=a118_0x55288b,_0x32673c={'kHhfP':function(_0x3cc169,_0x11c94c){return _0x3cc169(_0x11c94c);},'tUfLR':function(_0x22f24f,_0x43a83e){return _0x22f24f instanceof _0x43a83e;}};try{if(this[_0x506d57(0x11a)]&&this[_0x506d57(0x166)]()){let _0x43d57b=_0x490c66;_0x17e26c&&(_0x43d57b=_0x490c66+'['+JSON[_0x506d57(0x113)](_0x17e26c)+']');PerformanceTester['start'](_0x43d57b),this['details']&&(this['details'][_0x43d57b]=_0x195bca);try{const _0x1b46b8=_0x17be79['apply'](null,_0x2ac939);if(_0x32673c['tUfLR'](_0x1b46b8,Promise))return new Promise((_0x2684e3,_0x461251)=>{const _0x2cb1d1=_0x506d57;_0x1b46b8[_0x2cb1d1(0x179)](_0x3779a=>{const _0x292610=_0x2cb1d1;PerformanceTester[_0x292610(0x18d)](_0x43d57b),_0x32673c[_0x292610(0x1a6)](_0x2684e3,_0x3779a);})[_0x2cb1d1(0x192)](_0x47b3e5=>{const _0x22e4b0=_0x2cb1d1;PerformanceTester['end'](_0x43d57b,![],util[_0x22e4b0(0x171)](_0x47b3e5)),_0x32673c[_0x22e4b0(0x1a6)](_0x461251,_0x47b3e5);});});;return PerformanceTester[_0x506d57(0x18d)](_0x43d57b),_0x1b46b8;}catch(_0x7075c){PerformanceTester['end'](_0x43d57b,![],util[_0x506d57(0x171)](_0x7075c));throw _0x7075c;}};return _0x17be79[_0x506d57(0x126)](null,_0x2ac939);}catch(_0x536a4d){return logger[_0x506d57(0x183)](_0x506d57(0x10b)+(_0x536a4d[_0x506d57(0x11d)]||_0x536a4d['message']||_0x536a4d)),_0x17be79[_0x506d57(0x126)](null,_0x2ac939);}}static[a118_0x55288b(0x117)](_0x42103a,_0x547b70,_0x224d7f={}){const _0x3edf5f=a118_0x55288b,_0x29c5f6={'lJCVA':function(_0x15ad13){return _0x15ad13();},'APhrF':function(_0x5692e1){return _0x5692e1();}},_0x50b53b=this;return _0x224d7f[_0x3edf5f(0x162)]=_0x29c5f6['lJCVA'](getProcessId),_0x224d7f[_0x3edf5f(0x17d)]=_0x29c5f6['APhrF'](getTestName),_0x224d7f[_0x3edf5f(0x10c)]=global[_0x3edf5f(0x1b0)]&&global[_0x3edf5f(0x1b0)][_0x3edf5f(0x14a)],function(){const _0x4cc481=_0x3edf5f,_0x30b79c=[_0x42103a,_0x547b70,null,_0x224d7f][_0x4cc481(0x1b4)](arguments);return _0x50b53b[_0x4cc481(0x15b)][_0x4cc481(0x126)](_0x50b53b,_0x30b79c);};}static['getCleanedPerfEvents'](){const _0x4a8c76=a118_0x55288b,_0x55d4c9=/(^.*)\[(.*)\]$/,_0x61e53a={},_0x2110bd={},_0x10f006=[],_0xd34e47=this[_0x4a8c76(0x193)]['splice'](0x0,this[_0x4a8c76(0x193)][_0x4a8c76(0x138)]);for(const _0x4f7e8c of _0xd34e47){const _0x2d0a38=_0x4f7e8c[_0x4a8c76(0x17c)][_0x4a8c76(0x1aa)](_0x55d4c9),_0x3e0d65=Object[_0x4a8c76(0x144)]({},_0x4f7e8c);_0x2d0a38&&(_0x3e0d65['name']=_0x2d0a38[0x1],_0x3e0d65[_0x4a8c76(0x15c)]=JSON['parse'](_0x2d0a38[0x2])),_0x10f006[_0x4a8c76(0x185)](_0x3e0d65);}return _0x10f006;}static[a118_0x55288b(0x163)](){const _0x28fbac=a118_0x55288b,_0x118a1a={'qyEQS':function(_0x5a59bc){return _0x5a59bc();},'YfsUK':function(_0x441371,_0x14a1da){return _0x441371+_0x14a1da;},'IlCEx':_0x28fbac(0x17b),'CEppE':function(_0xa7bd59,_0x5c8e68){return _0xa7bd59===_0x5c8e68;},'oJGAk':function(_0x16d06d,_0xf64881){return _0x16d06d+_0xf64881;}};try{this[_0x28fbac(0x118)]=path['join'](_0x118a1a[_0x28fbac(0x182)](getLogDir),this[_0x28fbac(0x18b)]);if(fs[_0x28fbac(0x1ad)](this[_0x28fbac(0x118)])){const _0x27a90a=fs[_0x28fbac(0x14b)](this[_0x28fbac(0x118)]);for(const _0xe3e6fe of _0x27a90a){fs[_0x28fbac(0x15d)](path[_0x28fbac(0x12d)](this[_0x28fbac(0x118)],_0xe3e6fe));}}}catch(_0x24c09a){logger['debug'](_0x118a1a[_0x28fbac(0x12c)](_0x118a1a[_0x28fbac(0x122)],_0x24c09a));}if(_0x118a1a[_0x28fbac(0x159)](this[_0x28fbac(0x193)][_0x28fbac(0x138)],0x0))return;const _0x572c1b=this[_0x28fbac(0x1ab)](),_0xd966e6=JSON['stringify'](_0x572c1b),_0x597b0a=_0x118a1a[_0x28fbac(0x199)](_0xd966e6['slice'](0x1,-0x1),',');fs['appendFileSync'](this['jsonReportFileName'],_0x597b0a);}static async[a118_0x55288b(0x187)](){const _0x18e579=a118_0x55288b,_0x25413c={'qzTWx':function(_0x15b5b3){return _0x15b5b3();},'DfxkG':function(_0x1bbf81,_0x58a900){return _0x1bbf81===_0x58a900;},'ktEYf':_0x18e579(0x10a),'PpigD':_0x18e579(0x16f),'TZEpp':_0x18e579(0x110),'OODFh':function(_0x49959c,_0x3446ce){return _0x49959c+_0x3446ce;},'WfXpD':'Error\x20processing\x20key-metrics.json:\x20%s','aHSBP':'key-metrics.json\x20file\x20not\x20found,\x20skipping\x20processing\x20for\x20event\x20for\x20cli.','PHdts':_0x18e579(0x135),'ubhOq':function(_0x485364,_0x1b43a4){return _0x485364>_0x1b43a4;}};this[_0x18e579(0x118)]=path[_0x18e579(0x12d)](_0x25413c[_0x18e579(0x10f)](getLogDir),this[_0x18e579(0x18b)]);if(!this[_0x18e579(0x11a)]||_0x25413c[_0x18e579(0x142)](this[_0x18e579(0x193)]['length'],0x0))return[];if(!fs[_0x18e579(0x1ad)](this[_0x18e579(0x118)]))return this['_measureEvents'];const _0x32f6cd=(await fsPromise[_0x18e579(0x17e)](this[_0x18e579(0x118)]))[_0x18e579(0x1a2)](_0x16cd17=>path['resolve'](this[_0x18e579(0x118)],_0x16cd17));try{const _0xd3e7da=path['dirname'](this[_0x18e579(0x118)]),_0x4c804f=path[_0x18e579(0x12d)](_0xd3e7da,_0x25413c[_0x18e579(0x184)]);if(fs[_0x18e579(0x1ad)](_0x4c804f))try{await fsPromise['access'](_0x4c804f,fs[_0x18e579(0x107)]['F_OK']);const _0x582dc9=await fsPromise[_0x18e579(0x143)](_0x4c804f,_0x25413c[_0x18e579(0x180)]),_0x316745=JSON[_0x18e579(0x106)](_0x582dc9),_0x3ef689=path['join'](this[_0x18e579(0x118)],_0x25413c[_0x18e579(0x1a5)]);let _0x2a52ee='';Array['isArray'](_0x316745)?_0x2a52ee=_0x25413c[_0x18e579(0x133)](_0x316745['map'](_0x37a364=>JSON[_0x18e579(0x113)](_0x37a364))[_0x18e579(0x12d)](','),','):_0x2a52ee=_0x25413c[_0x18e579(0x133)](JSON[_0x18e579(0x113)](_0x316745),','),await fsPromise['writeFile'](_0x3ef689,_0x2a52ee),_0x32f6cd[_0x18e579(0x185)](_0x3ef689),await fsPromise[_0x18e579(0x134)](_0x4c804f);}catch(_0x422471){logger[_0x18e579(0x15a)](util[_0x18e579(0x171)](_0x25413c[_0x18e579(0x112)],_0x422471[_0x18e579(0x11d)]||_0x422471[_0x18e579(0x156)]||_0x422471));}else logger[_0x18e579(0x15a)](_0x25413c['aHSBP']);}catch(_0x2f103a){logger[_0x18e579(0x15a)](util[_0x18e579(0x171)](_0x25413c[_0x18e579(0x1af)],_0x2f103a[_0x18e579(0x11d)]||_0x2f103a['message']||_0x2f103a));}let _0x11ab33=(await Promise[_0x18e579(0x153)](_0x32f6cd['map'](_0x4d712d=>fsPromise[_0x18e579(0x143)](_0x4d712d,_0x18e579(0x16f)))))['map'](_0x5806c2=>'['+_0x5806c2[_0x18e579(0x10e)](0x0,-0x1)+']')[_0x18e579(0x1a2)](_0x47b976=>JSON['parse'](_0x47b976))['flat']();return _0x25413c[_0x18e579(0x191)](this['_measureEvents'][_0x18e579(0x138)],0x0)&&(_0x11ab33=_0x11ab33[_0x18e579(0x1b4)](this[_0x18e579(0x1ab)]())),this[_0x18e579(0x168)][_0x18e579(0x16c)](),_0x11ab33;}static['pushErrors'](){const _0x38b775=a118_0x55288b,_0x5b15ea={};_0x5b15ea[_0x38b775(0x116)]=function(_0x3c274a,_0x53e624){return _0x3c274a===_0x53e624;},_0x5b15ea[_0x38b775(0x11c)]=function(_0x42f2c6,_0x3cb72a){return _0x42f2c6+_0x3cb72a;};const _0x26f64b=_0x5b15ea;if(_0x26f64b['DckwZ'](this[_0x38b775(0x140)][_0x38b775(0x138)],0x0))return;const _0x28d4f7=JSON['stringify'](this[_0x38b775(0x140)]),_0x5289f4=_0x26f64b[_0x38b775(0x11c)](_0x28d4f7[_0x38b775(0x10e)](0x1,-0x1),',');fs['appendFileSync'](this[_0x38b775(0x13e)],_0x5289f4);}static[a118_0x55288b(0x15f)](){const _0x13520a=a118_0x55288b,_0x22477f={};_0x22477f[_0x13520a(0x17a)]=function(_0x4dc8fb,_0x20cebd){return _0x4dc8fb>_0x20cebd;};const _0xbaa899=_0x22477f;if(this[_0x13520a(0x129)]){if(!fs[_0x13520a(0x1ad)](this[_0x13520a(0x129)]))return this['_errorEvents'];let _0x270421=fs['readFileSync'](this[_0x13520a(0x129)])[_0x13520a(0x19f)]();_0x270421='['+_0x270421[_0x13520a(0x10e)](0x0,-0x1)+']';let _0x5021ed=JSON[_0x13520a(0x106)](_0x270421);return _0xbaa899[_0x13520a(0x17a)](this[_0x13520a(0x140)]['length'],0x0)&&(_0x5021ed=_0x5021ed[_0x13520a(0x1b4)](this['_errorEvents'])),fs[_0x13520a(0x15d)](this[_0x13520a(0x129)]),_0x5021ed;}}static[a118_0x55288b(0x173)](_0x198cdc){const _0x5dd9fb=a118_0x55288b;if(!this[_0x5dd9fb(0x166)]())return;this[_0x5dd9fb(0x140)][_0x5dd9fb(0x185)]({'message':_0x198cdc[_0x5dd9fb(0x156)],'trace':_0x198cdc[_0x5dd9fb(0x11d)],'code':_0x198cdc['code']||null,'time':new Date()});}static[a118_0x55288b(0x194)](){const _0x26a0e8=a118_0x55288b;try{if(!this['isEnabled']())return;this[_0x26a0e8(0x168)][_0x26a0e8(0x16c)](),this[_0x26a0e8(0x163)](),this['pushErrors']();}catch(_0x4e9c3c){logger[_0x26a0e8(0x183)](_0x26a0e8(0x158)+util[_0x26a0e8(0x171)](_0x4e9c3c));}}static async[a118_0x55288b(0x12e)](){const _0x182b14=a118_0x55288b,_0xc3835f={'wEKXt':function(_0x1e84ce,_0x597113){return _0x1e84ce(_0x597113);}};await _0xc3835f[_0x182b14(0x120)](sleep,0x1e);const _0x2a22a6=await this[_0x182b14(0x187)](),_0x33eecf=this[_0x182b14(0x15f)]();if(!this[_0x182b14(0x166)]()){const _0x204daa={};return _0x204daa[_0x182b14(0x14d)]=[],_0x204daa[_0x182b14(0x152)]=[],_0x204daa;}const _0x355131={};return _0x355131[_0x182b14(0x14d)]=_0x2a22a6,_0x355131['errors']=_0x33eecf,_0x355131;}static[a118_0x55288b(0x130)](_0x5fd58c){const _0x24a629=a118_0x55288b,_0x439de6={};_0x439de6['ZgEHR']=function(_0x2fb5f5,_0x38fd7c){return _0x2fb5f5+_0x38fd7c;},_0x439de6[_0x24a629(0x13f)]='-start';const _0x2d15aa=_0x439de6,_0x4ddbf8=_0x2d15aa[_0x24a629(0x13b)](_0x5fd58c,_0x2d15aa['IfHwG']);if(this['eventsMap'][_0x4ddbf8])return;performance[_0x24a629(0x164)](_0x4ddbf8),this['eventsMap'][_0x4ddbf8]=0x1;}static['end'](_0xdb67a0,_0x3d2836=!![],_0x201b0b=null,_0x2b5d80={}){const _0x5345d0=a118_0x55288b,_0x1803ac={'zrYDy':function(_0x11a236,_0x26adbc){return _0x11a236+_0x26adbc;},'yPaan':_0x5345d0(0x18a),'RkLlY':_0x5345d0(0x119),'SFHlm':function(_0x28bdee,_0x3d930e){return _0x28bdee+_0x3d930e;},'fUcIQ':function(_0x56f80e){return _0x56f80e();},'tVMsP':function(_0x43b65f){return _0x43b65f();}};performance[_0x5345d0(0x164)](_0x1803ac[_0x5345d0(0x1a1)](_0xdb67a0,_0x1803ac[_0x5345d0(0x128)])),performance['measure'](_0xdb67a0,_0x1803ac[_0x5345d0(0x1a1)](_0xdb67a0,_0x1803ac[_0x5345d0(0x148)]),_0x1803ac['SFHlm'](_0xdb67a0,_0x1803ac[_0x5345d0(0x128)]));const _0x11d0d6={};_0x11d0d6[_0x5345d0(0x16a)]=_0x3d2836,_0x11d0d6[_0x5345d0(0x147)]=_0x201b0b,this['details'][_0xdb67a0]=Object['assign'](_0x11d0d6,Object[_0x5345d0(0x144)](Object[_0x5345d0(0x144)]({'worker':_0x1803ac[_0x5345d0(0x12f)](getProcessId),'platform':global['__platformCaps']&&global[_0x5345d0(0x1b0)]['index'],'testName':_0x1803ac[_0x5345d0(0x18e)](getTestName)},_0x2b5d80),this['details'][_0xdb67a0]||{}));}}module[a118_0x55288b(0x19a)]=PerformanceTester;
|
|
1
|
+
const a120_0x47c8bf=a120_0xeebf;function a120_0xeebf(_0x4f6464,_0x49cf71){const _0x5d7bac=a120_0x5d7b();return a120_0xeebf=function(_0xeebf87,_0x8cca3){_0xeebf87=_0xeebf87-0xd8;let _0x2952a4=_0x5d7bac[_0xeebf87];return _0x2952a4;},a120_0xeebf(_0x4f6464,_0x49cf71);}(function(_0x538ba9,_0x1fe38a){const _0x34bdde=a120_0xeebf,_0x57e42b=_0x538ba9();while(!![]){try{const _0x16d24c=parseInt(_0x34bdde(0x138))/0x1+parseInt(_0x34bdde(0x172))/0x2*(-parseInt(_0x34bdde(0x17b))/0x3)+-parseInt(_0x34bdde(0x110))/0x4+-parseInt(_0x34bdde(0x12d))/0x5*(-parseInt(_0x34bdde(0x14b))/0x6)+-parseInt(_0x34bdde(0x153))/0x7*(parseInt(_0x34bdde(0x156))/0x8)+-parseInt(_0x34bdde(0x15e))/0x9+parseInt(_0x34bdde(0x154))/0xa;if(_0x16d24c===_0x1fe38a)break;else _0x57e42b['push'](_0x57e42b['shift']());}catch(_0x3f0e82){_0x57e42b['push'](_0x57e42b['shift']());}}}(a120_0x5d7b,0x34d0c));const fs=require('fs'),fsPromise=require('fs/promises'),{performance,PerformanceObserver}=require(a120_0x47c8bf(0x152)),path=require(a120_0x47c8bf(0x125)),util=require('util'),logger=require(a120_0x47c8bf(0x164))['winstonLogger'],{getLogDir}=require(a120_0x47c8bf(0x164)),{getProcessId,sleep,debug,getTestName}=require(a120_0x47c8bf(0x108));class PerformanceTester{static [a120_0x47c8bf(0x118)];static [a120_0x47c8bf(0xfc)]=[];static [a120_0x47c8bf(0x104)]=[];static [a120_0x47c8bf(0x16d)]=[];static [a120_0x47c8bf(0x12b)]=![];static [a120_0x47c8bf(0x16e)]='performance-report';static [a120_0x47c8bf(0x137)]=process[a120_0x47c8bf(0x140)]['browserStackCwd']?path[a120_0x47c8bf(0x109)](process[a120_0x47c8bf(0x140)]['browserStackCwd'],'error-report'):path[a120_0x47c8bf(0x109)](process[a120_0x47c8bf(0xef)](),a120_0x47c8bf(0xdf));static [a120_0x47c8bf(0x13b)]=this[a120_0x47c8bf(0x137)]+'/error-report-'+getProcessId()+a120_0x47c8bf(0xdd);static ['details']={};static [a120_0x47c8bf(0x117)]={};static[a120_0x47c8bf(0x13a)](_0xc39cc3,_0x420ed5=this[a120_0x47c8bf(0x137)]+a120_0x47c8bf(0x14e)+getProcessId()+'.json'){const _0x1edc80=a120_0x47c8bf,_0x5d3a64={'fBDpP':function(_0x5253dc,_0x571239){return _0x5253dc===_0x571239;},'Ukgbh':_0x1edc80(0x111),'gaChG':function(_0x3e82ae){return _0x3e82ae();},'LOkZL':function(_0x1fb137){return _0x1fb137();},'mIlCm':function(_0x358f58,_0x5d3f84){return _0x358f58+_0x5d3f84;},'nUhsb':'Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20','iuThy':_0x1edc80(0xdb)};try{this[_0x1edc80(0x116)]=path[_0x1edc80(0x109)](_0x5d3a64[_0x1edc80(0x12f)](getLogDir),this['jsonReportDirName']),!_0xc39cc3&&(_0xc39cc3=this[_0x1edc80(0x116)]+_0x1edc80(0x16c)+_0x5d3a64[_0x1edc80(0xf9)](getProcessId)+'.json'),!fs[_0x1edc80(0x12c)](this[_0x1edc80(0x116)])&&fs['mkdirSync'](this[_0x1edc80(0x116)]);}catch(_0x5068fc){logger[_0x1edc80(0x11b)](_0x5d3a64[_0x1edc80(0xe7)](_0x5d3a64[_0x1edc80(0x13c)],_0x5068fc));}if(this['started']||!this[_0x1edc80(0x136)]())return;this[_0x1edc80(0x118)]=new PerformanceObserver(_0x5bd559=>{const _0x3867f3={'DVDdl':function(_0x247569,_0x552994){return _0x5d3a64['fBDpP'](_0x247569,_0x552994);},'fKRlE':_0x5d3a64['Ukgbh']};_0x5bd559['getEntries']()['forEach'](_0x102a55=>{const _0x31d60b=a120_0xeebf;if(_0x3867f3[_0x31d60b(0xfa)](_0x102a55[_0x31d60b(0x157)],_0x3867f3[_0x31d60b(0xe8)])){let _0x2b4cb2={};if(_0x102a55[_0x31d60b(0x17e)])_0x2b4cb2=_0x102a55[_0x31d60b(0x17e)]();else for(const _0x5f0adc in _0x102a55){_0x2b4cb2[_0x5f0adc]=_0x102a55[_0x5f0adc];}this[_0x31d60b(0x15d)][_0x102a55[_0x31d60b(0x145)]]&&(_0x2b4cb2=Object[_0x31d60b(0x16f)](_0x2b4cb2,this['details'][_0x102a55['name']])),delete this[_0x31d60b(0x15d)][_0x102a55[_0x31d60b(0x145)]],this[_0x31d60b(0x104)][_0x31d60b(0x135)](_0x2b4cb2);}else this['_events']['push'](_0x102a55);});});const _0x36ffc5={};_0x36ffc5[_0x1edc80(0x126)]=!![],_0x36ffc5[_0x1edc80(0xe0)]=[_0x5d3a64[_0x1edc80(0x148)],_0x5d3a64[_0x1edc80(0xf4)]],this['_observer'][_0x1edc80(0x147)](_0x36ffc5),this[_0x1edc80(0x12b)]=!![],this[_0x1edc80(0x161)]=_0xc39cc3,this['errorReportFileName']=_0x420ed5;}static['getPerformance'](){return performance;}static[a120_0x47c8bf(0x143)](_0x5e1992,_0xbb4336){const _0x29c9b1=a120_0x47c8bf,_0x422553={};_0x422553[_0x29c9b1(0xee)]=function(_0x3bc81f,_0x200fc1){return _0x3bc81f+_0x200fc1;},_0x422553['myXFh']=function(_0x2b783a,_0x4e7945){return _0x2b783a||_0x4e7945;},_0x422553['UOhTl']=function(_0x240cdf,_0x2d298f){return _0x240cdf===_0x2d298f;};const _0x336863=_0x422553,_0x5e481d={};if(!_0x5e1992||_0x336863[_0x29c9b1(0x124)](_0x5e1992[_0x29c9b1(0x133)],0x0))return;_0x5e1992[_0x29c9b1(0x169)](_0x3000f5=>{const _0x3e4ea5=_0x29c9b1;!_0x5e481d[_0x3000f5[_0x3e4ea5(0x145)]]&&(_0x5e481d[_0x3000f5['name']]=0x0),_0x5e481d[_0x3000f5[_0x3e4ea5(0x145)]]+=_0x3000f5['duration'];});const _0x4a07ac=_0xbb4336['reduce']((_0x906fe4,_0x57e5d9)=>{const _0x12e1b7=_0x29c9b1;return _0x336863[_0x12e1b7(0xee)](_0x5e481d[_0x57e5d9],_0x336863[_0x12e1b7(0x184)](_0x906fe4,0x0));},0x0);return _0x4a07ac;}static async['calculateTimesFromMultipleFiles'](_0x2725e5,_0x20b4f6){const _0xa1d7bd=a120_0x47c8bf,_0x25a40d={'WOYjE':function(_0x399deb,_0xe35de2){return _0x399deb+_0xe35de2;},'okeQi':function(_0x4a91a6,_0xa648d1){return _0x4a91a6||_0xa648d1;},'VnPoU':function(_0x1199ae,_0x4b14ae){return _0x1199ae===_0x4b14ae;},'BKEfE':function(_0x330fc1,_0x5f043b){return _0x330fc1(_0x5f043b);}};if(!_0x2725e5||_0x25a40d[_0xa1d7bd(0x180)](_0x2725e5[_0xa1d7bd(0x133)],0x0))return 0x0;const _0x2ced00=[];for(const _0x563d85 of _0x2725e5){const _0x3872d5=path[_0xa1d7bd(0x109)]('.',_0x563d85);try{const _0x5f2d41=this[_0xa1d7bd(0x155)](_0x3872d5);_0x5f2d41['map'](_0x435505=>{const _0x1931ce=_0xa1d7bd;!_0x2ced00[_0x435505[_0x1931ce(0x145)]]&&(_0x2ced00[_0x435505[_0x1931ce(0x145)]]=0x0),_0x2ced00[_0x435505[_0x1931ce(0x145)]]+=_0x435505['duration'];});}catch(_0x18383a){_0x25a40d[_0xa1d7bd(0x163)](debug,_0xa1d7bd(0xd8)+_0x18383a[_0xa1d7bd(0x170)]());}}const _0x33083a=_0x20b4f6['reduce']((_0x5c2ed6,_0x106afd)=>{const _0x272870=_0xa1d7bd;return _0x25a40d[_0x272870(0xfb)](_0x2ced00[_0x106afd],_0x25a40d[_0x272870(0x15b)](_0x5c2ed6,0x0));},0x0);return _0x25a40d[_0xa1d7bd(0x163)](debug,_0xa1d7bd(0x14a)+_0x20b4f6+_0xa1d7bd(0xe1)+_0x33083a),_0x33083a;}static[a120_0x47c8bf(0x155)](_0xdf7b4c){const _0x4be89c=a120_0x47c8bf;if(_0xdf7b4c){if(!fs[_0x4be89c(0x12c)](_0xdf7b4c))return[];return JSON[_0x4be89c(0xd9)](fs[_0x4be89c(0x160)](_0xdf7b4c)[_0x4be89c(0x170)]());}}static async[a120_0x47c8bf(0xf3)](_0x55adcc='performance-own.html',_0x453e9a=null){const _0x575765=a120_0x47c8bf,_0x1e4b24={'gJskf':function(_0x1e2a09,_0x14066e){return _0x1e2a09(_0x14066e);},'Xreyd':function(_0x3e4054,_0x3b3988){return _0x3e4054(_0x3b3988);}};if(!this['started'])return;await _0x1e4b24[_0x575765(0x158)](sleep,0x1e),this['_observer']['disconnect'](),this['started']=![],this[_0x575765(0x16b)](this[_0x575765(0xfc)]);const _0x4dfb90=this[_0x575765(0xfe)](this[_0x575765(0xfc)]),_0x12158b=path[_0x575765(0x109)](process[_0x575765(0xef)](),_0x55adcc);fs['writeFile'](_0x12158b,_0x4dfb90,_0x21f42c=>{const _0x443d51=_0x575765;if(_0x21f42c){_0x1e4b24[_0x443d51(0x158)](debug,'Error\x20in\x20writing\x20html\x20'+_0x21f42c[_0x443d51(0x170)]());return;}_0x1e4b24['Xreyd'](debug,_0x443d51(0xde)+_0x12158b);});if(_0x453e9a)return this[_0x575765(0x143)](this[_0x575765(0xfc)],_0x453e9a);}static[a120_0x47c8bf(0xfe)](_0x51c97b){const _0x261fd0=a120_0x47c8bf,_0x5d4ce5={};_0x5d4ce5['LHuGV']=_0x261fd0(0xe9),_0x5d4ce5['fcilk']='<h1>Performance\x20Report</h1>',_0x5d4ce5['dCKAU']='<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>',_0x5d4ce5[_0x261fd0(0x13d)]=_0x261fd0(0x149);const _0x4562e9=_0x5d4ce5;let _0x234219=_0x4562e9[_0x261fd0(0x127)];return _0x234219+=_0x4562e9[_0x261fd0(0xed)],_0x234219+=_0x4562e9[_0x261fd0(0x10e)],_0x51c97b['forEach'](_0x379f82=>{const _0x4fcf2c=_0x261fd0;_0x234219+='<tr><td>'+_0x379f82[_0x4fcf2c(0x145)]+_0x4fcf2c(0x10c)+_0x379f82[_0x4fcf2c(0x11d)]+_0x4fcf2c(0x175);}),_0x234219+=_0x4562e9[_0x261fd0(0x13d)],_0x234219;}static[a120_0x47c8bf(0x16b)](_0x4fe9c5){const _0x56c629=a120_0x47c8bf;if(!this['jsonReportFileName'])return;const _0x1e6654={};_0x4fe9c5[_0x56c629(0x169)](_0x3c722e=>{const _0x1ac41f=_0x56c629;!_0x1e6654[_0x3c722e[_0x1ac41f(0x145)]]&&(_0x1e6654[_0x3c722e[_0x1ac41f(0x145)]]=0x0),_0x1e6654[_0x3c722e[_0x1ac41f(0x145)]]+=_0x3c722e['duration'];});const _0x6b9e94=Object[_0x56c629(0x123)](_0x1e6654)['map'](([_0x4361f4,_0x405000])=>{const _0x5be613=_0x56c629,_0x36ae5e={};return _0x36ae5e[_0x5be613(0x145)]=_0x4361f4,_0x36ae5e[_0x5be613(0x11d)]=_0x405000,_0x36ae5e;});fs[_0x56c629(0x10b)](this[_0x56c629(0x161)],JSON[_0x56c629(0x165)](_0x6b9e94));}static[a120_0x47c8bf(0x136)](){const _0x191407=a120_0x47c8bf,_0xf269f3={};_0xf269f3[_0x191407(0xf7)]=function(_0x11b934,_0x378a57){return _0x11b934===_0x378a57;},_0xf269f3[_0x191407(0x182)]=_0x191407(0x17f);const _0x2e521d=_0xf269f3;return!_0x2e521d[_0x191407(0xf7)](process[_0x191407(0x140)][_0x191407(0x181)],_0x2e521d[_0x191407(0x182)]);}static[a120_0x47c8bf(0x111)](_0x143ae0,_0xb75885,_0x1a5ca6=null,_0x16df19={},_0x45e95c=null){const _0x53f268=a120_0x47c8bf,_0x27893c={'hhzzI':function(_0x2cac06,_0x1796bc){return _0x2cac06(_0x1796bc);},'zBihf':function(_0x41462a,_0x12de6c){return _0x41462a(_0x12de6c);},'ShKhf':function(_0x11c84e,_0xba2ddc){return _0x11c84e instanceof _0xba2ddc;}};try{if(this[_0x53f268(0x12b)]&&this['isEnabled']()){let _0x1b89ef=_0x143ae0;_0x1a5ca6&&(_0x1b89ef=_0x143ae0+'['+JSON[_0x53f268(0x165)](_0x1a5ca6)+']');PerformanceTester[_0x53f268(0x112)](_0x1b89ef),this[_0x53f268(0x15d)]&&(this[_0x53f268(0x15d)][_0x1b89ef]=_0x16df19);try{const _0x13922a=_0xb75885[_0x53f268(0x14d)](null,_0x45e95c);if(_0x27893c['ShKhf'](_0x13922a,Promise))return new Promise((_0x468a7d,_0x4c7d24)=>{const _0x6ad9c1=_0x53f268,_0x4d23cd={'alQdT':function(_0x3218d5,_0x4b6d94){const _0x1a4798=a120_0xeebf;return _0x27893c[_0x1a4798(0x132)](_0x3218d5,_0x4b6d94);}};_0x13922a[_0x6ad9c1(0x102)](_0x5d9a20=>{const _0x57c74e=_0x6ad9c1;PerformanceTester[_0x57c74e(0x150)](_0x1b89ef),_0x27893c[_0x57c74e(0xf8)](_0x468a7d,_0x5d9a20);})[_0x6ad9c1(0xf0)](_0x4801ce=>{const _0x103bfd=_0x6ad9c1;PerformanceTester['end'](_0x1b89ef,![],util[_0x103bfd(0x115)](_0x4801ce)),_0x4d23cd['alQdT'](_0x4c7d24,_0x4801ce);});});;return PerformanceTester[_0x53f268(0x150)](_0x1b89ef),_0x13922a;}catch(_0x3aadd0){PerformanceTester['end'](_0x1b89ef,![],util[_0x53f268(0x115)](_0x3aadd0));throw _0x3aadd0;}};return _0xb75885[_0x53f268(0x14d)](null,_0x45e95c);}catch(_0x4bc9dc){return logger[_0x53f268(0x11b)](_0x53f268(0xda)+(_0x4bc9dc['stack']||_0x4bc9dc[_0x53f268(0x130)]||_0x4bc9dc)),_0xb75885[_0x53f268(0x14d)](null,_0x45e95c);}}static['measureWrapper'](_0x3c9f98,_0x17ea3b,_0x31e76c={}){const _0x107fe7=a120_0x47c8bf,_0x2c7b24={'NIoxK':function(_0x172cfd){return _0x172cfd();},'AUXdt':function(_0x26d756){return _0x26d756();}},_0x2d0b2f=this;return _0x31e76c[_0x107fe7(0xfd)]=_0x2c7b24[_0x107fe7(0x167)](getProcessId),_0x31e76c[_0x107fe7(0x183)]=_0x2c7b24[_0x107fe7(0x171)](getTestName),_0x31e76c[_0x107fe7(0x11f)]=global[_0x107fe7(0xdc)]&&global[_0x107fe7(0xdc)]['index'],function(){const _0x106829=_0x107fe7,_0xe8683a=[_0x3c9f98,_0x17ea3b,null,_0x31e76c][_0x106829(0x15c)](arguments);return _0x2d0b2f[_0x106829(0x111)][_0x106829(0x14d)](_0x2d0b2f,_0xe8683a);};}static[a120_0x47c8bf(0x166)](){const _0x3d11c2=a120_0x47c8bf,_0x5ab9cd=/(^.*)\[(.*)\]$/,_0x2f8f59={},_0x4e31fd={},_0x17f93e=[],_0x5c70f1=this['_measureEvents'][_0x3d11c2(0x129)](0x0,this[_0x3d11c2(0x104)][_0x3d11c2(0x133)]);for(const _0x4522fa of _0x5c70f1){const _0x42c258=_0x4522fa[_0x3d11c2(0x145)][_0x3d11c2(0x128)](_0x5ab9cd),_0x45763f=Object[_0x3d11c2(0x16f)]({},_0x4522fa);_0x42c258&&(_0x45763f[_0x3d11c2(0x145)]=_0x42c258[0x1],_0x45763f[_0x3d11c2(0x144)]=JSON[_0x3d11c2(0xd9)](_0x42c258[0x2])),_0x17f93e[_0x3d11c2(0x135)](_0x45763f);}return _0x17f93e;}static[a120_0x47c8bf(0x17a)](){const _0x5927c5=a120_0x47c8bf,_0x518378={'LERqC':function(_0x149ba1){return _0x149ba1();},'DVftM':function(_0x399dcb,_0x22b8fc){return _0x399dcb+_0x22b8fc;},'Yfzqi':_0x5927c5(0x122),'TReJj':function(_0x539021,_0x156eae){return _0x539021===_0x156eae;},'sHoeC':function(_0x3d3f72,_0x1606ce){return _0x3d3f72+_0x1606ce;}};try{this['jsonReportDirPath']=path['join'](_0x518378[_0x5927c5(0x12e)](getLogDir),this[_0x5927c5(0x16e)]);if(fs[_0x5927c5(0x12c)](this['jsonReportDirPath'])){const _0x245818=fs['readdirSync'](this[_0x5927c5(0x116)]);for(const _0x1746e3 of _0x245818){fs[_0x5927c5(0xf1)](path[_0x5927c5(0x109)](this[_0x5927c5(0x116)],_0x1746e3));}}}catch(_0x3ad534){logger[_0x5927c5(0x11b)](_0x518378[_0x5927c5(0x14c)](_0x518378[_0x5927c5(0x151)],_0x3ad534));}if(_0x518378[_0x5927c5(0x134)](this[_0x5927c5(0x104)][_0x5927c5(0x133)],0x0))return;const _0x21ffa5=this[_0x5927c5(0x166)](),_0x938cc1=JSON[_0x5927c5(0x165)](_0x21ffa5),_0x49814e=_0x518378[_0x5927c5(0x105)](_0x938cc1[_0x5927c5(0xe5)](0x1,-0x1),',');fs['appendFileSync'](this[_0x5927c5(0x161)],_0x49814e);}static async[a120_0x47c8bf(0x15a)](){const _0x1b8d54=a120_0x47c8bf,_0x218e30={'dYOAh':function(_0x2e8180){return _0x2e8180();},'IElme':function(_0xaca7a,_0x442819){return _0xaca7a===_0x442819;},'FQCxj':_0x1b8d54(0xe3),'mWKDB':_0x1b8d54(0x16a),'jNEeZ':_0x1b8d54(0x179),'PcGRI':function(_0x486c78,_0x4e1d86){return _0x486c78+_0x4e1d86;},'wDIXX':function(_0x5e326a,_0x1397db){return _0x5e326a+_0x1397db;},'cXXQB':'Error\x20processing\x20key-metrics.json:\x20%s','NDjnb':_0x1b8d54(0x176),'hZxzG':_0x1b8d54(0x146),'ymbgn':function(_0x1d40a4,_0x237079){return _0x1d40a4>_0x237079;}};this[_0x1b8d54(0x116)]=path[_0x1b8d54(0x109)](_0x218e30[_0x1b8d54(0xea)](getLogDir),this[_0x1b8d54(0x16e)]);if(!this[_0x1b8d54(0x12b)]||_0x218e30[_0x1b8d54(0x14f)](this[_0x1b8d54(0x104)][_0x1b8d54(0x133)],0x0))return[];if(!fs['existsSync'](this[_0x1b8d54(0x116)]))return this[_0x1b8d54(0x104)];const _0x4491a4=(await fsPromise[_0x1b8d54(0x173)](this[_0x1b8d54(0x116)]))['map'](_0x30678f=>path[_0x1b8d54(0xeb)](this['jsonReportDirPath'],_0x30678f));try{const _0x152fdb=path['dirname'](this[_0x1b8d54(0x116)]),_0x235943=path['join'](_0x152fdb,_0x218e30['FQCxj']);if(fs[_0x1b8d54(0x12c)](_0x235943))try{await fsPromise['access'](_0x235943,fs[_0x1b8d54(0x119)][_0x1b8d54(0x114)]);const _0x15342d=await fsPromise[_0x1b8d54(0x141)](_0x235943,_0x218e30['mWKDB']),_0x17d2b8=JSON[_0x1b8d54(0xd9)](_0x15342d),_0x434c47=path['join'](this[_0x1b8d54(0x116)],_0x218e30[_0x1b8d54(0x120)]);let _0x2de8d='';Array[_0x1b8d54(0x13e)](_0x17d2b8)?_0x2de8d=_0x218e30[_0x1b8d54(0x13f)](_0x17d2b8[_0x1b8d54(0x169)](_0x3d252f=>JSON[_0x1b8d54(0x165)](_0x3d252f))['join'](','),','):_0x2de8d=_0x218e30['wDIXX'](JSON[_0x1b8d54(0x165)](_0x17d2b8),','),await fsPromise[_0x1b8d54(0x10d)](_0x434c47,_0x2de8d),_0x4491a4[_0x1b8d54(0x135)](_0x434c47),await fsPromise[_0x1b8d54(0x142)](_0x235943);}catch(_0x2445e7){logger[_0x1b8d54(0x17d)](util['format'](_0x218e30[_0x1b8d54(0xe4)],_0x2445e7[_0x1b8d54(0x106)]||_0x2445e7[_0x1b8d54(0x130)]||_0x2445e7));}else logger['info'](_0x218e30['NDjnb']);}catch(_0x2b5923){logger[_0x1b8d54(0x17d)](util[_0x1b8d54(0x115)](_0x218e30[_0x1b8d54(0x139)],_0x2b5923[_0x1b8d54(0x106)]||_0x2b5923[_0x1b8d54(0x130)]||_0x2b5923));}let _0x68202=(await Promise[_0x1b8d54(0xec)](_0x4491a4['map'](_0x24f441=>fsPromise[_0x1b8d54(0x141)](_0x24f441,_0x1b8d54(0x16a)))))[_0x1b8d54(0x169)](_0x473ba7=>'['+_0x473ba7[_0x1b8d54(0xe5)](0x0,-0x1)+']')[_0x1b8d54(0x169)](_0x58f623=>JSON[_0x1b8d54(0xd9)](_0x58f623))[_0x1b8d54(0x100)]();return _0x218e30[_0x1b8d54(0x15f)](this['_measureEvents'][_0x1b8d54(0x133)],0x0)&&(_0x68202=_0x68202[_0x1b8d54(0x15c)](this['getCleanedPerfEvents']())),this[_0x1b8d54(0x118)][_0x1b8d54(0x177)](),_0x68202;}static[a120_0x47c8bf(0xff)](){const _0x24c748=a120_0x47c8bf,_0x1c0983={};_0x1c0983[_0x24c748(0x11e)]=function(_0x30ecfb,_0x12a6fd){return _0x30ecfb===_0x12a6fd;},_0x1c0983[_0x24c748(0x113)]=function(_0x2a3e98,_0x30435a){return _0x2a3e98+_0x30435a;};const _0x34a6dd=_0x1c0983;if(_0x34a6dd[_0x24c748(0x11e)](this[_0x24c748(0x16d)][_0x24c748(0x133)],0x0))return;const _0x43d968=JSON[_0x24c748(0x165)](this[_0x24c748(0x16d)]),_0x326eaf=_0x34a6dd[_0x24c748(0x113)](_0x43d968[_0x24c748(0xe5)](0x1,-0x1),',');fs['appendFileSync'](this['errorFile'],_0x326eaf);}static[a120_0x47c8bf(0x107)](){const _0x1b13c1=a120_0x47c8bf,_0x5a2c70={};_0x5a2c70[_0x1b13c1(0x101)]=function(_0x50e588,_0x5bbdeb){return _0x50e588>_0x5bbdeb;};const _0xc69b8c=_0x5a2c70;if(this['errorReportFileName']){if(!fs['existsSync'](this[_0x1b13c1(0x13b)]))return this['_errorEvents'];let _0x4aba14=fs[_0x1b13c1(0x160)](this[_0x1b13c1(0x13b)])[_0x1b13c1(0x170)]();_0x4aba14='['+_0x4aba14[_0x1b13c1(0xe5)](0x0,-0x1)+']';let _0x3e9752=JSON[_0x1b13c1(0xd9)](_0x4aba14);return _0xc69b8c[_0x1b13c1(0x101)](this['_errorEvents']['length'],0x0)&&(_0x3e9752=_0x3e9752[_0x1b13c1(0x15c)](this[_0x1b13c1(0x16d)])),fs['unlinkSync'](this[_0x1b13c1(0x13b)]),_0x3e9752;}}static[a120_0x47c8bf(0xf2)](_0x479c88){const _0x3a9c01=a120_0x47c8bf;if(!this[_0x3a9c01(0x136)]())return;this[_0x3a9c01(0x16d)][_0x3a9c01(0x135)]({'message':_0x479c88[_0x3a9c01(0x130)],'trace':_0x479c88[_0x3a9c01(0x106)],'code':_0x479c88[_0x3a9c01(0x131)]||null,'time':new Date()});}static[a120_0x47c8bf(0x10f)](){const _0x2d3bd0=a120_0x47c8bf;try{if(!this[_0x2d3bd0(0x136)]())return;this['_observer'][_0x2d3bd0(0x177)](),this[_0x2d3bd0(0x17a)](),this[_0x2d3bd0(0xff)]();}catch(_0x1d1f35){logger['debug'](_0x2d3bd0(0x159)+util['format'](_0x1d1f35));}}static async[a120_0x47c8bf(0x174)](){const _0xf3bc1d=a120_0x47c8bf,_0x52fc16={'ULzQn':function(_0x16c389,_0x105db9){return _0x16c389(_0x105db9);}};await _0x52fc16['ULzQn'](sleep,0x1e);const _0x29d3a5=await this[_0xf3bc1d(0x15a)](),_0x40c510=this['finalizeErrors']();if(!this['isEnabled']()){const _0x17f977={};return _0x17f977['measures']=[],_0x17f977[_0xf3bc1d(0x11c)]=[],_0x17f977;}const _0x5d1ee2={};return _0x5d1ee2[_0xf3bc1d(0x185)]=_0x29d3a5,_0x5d1ee2[_0xf3bc1d(0x11c)]=_0x40c510,_0x5d1ee2;}static[a120_0x47c8bf(0x112)](_0xcbb0f){const _0x4e2490=a120_0x47c8bf,_0x3df6ee={};_0x3df6ee[_0x4e2490(0x11a)]=function(_0x45d534,_0x4f3582){return _0x45d534+_0x4f3582;},_0x3df6ee['UqJee']=_0x4e2490(0x178);const _0x45625a=_0x3df6ee,_0x2eb4ff=_0x45625a[_0x4e2490(0x11a)](_0xcbb0f,_0x45625a[_0x4e2490(0x10a)]);if(this[_0x4e2490(0x117)][_0x2eb4ff])return;performance[_0x4e2490(0x168)](_0x2eb4ff),this['eventsMap'][_0x2eb4ff]=0x1;}static['end'](_0x110921,_0x49ea64=!![],_0x5a7a45=null,_0x2fbaed={}){const _0x5dc1b0=a120_0x47c8bf,_0x4f9d07={'hgIVN':function(_0x1c440c,_0x37b0ce){return _0x1c440c+_0x37b0ce;},'OSHoJ':_0x5dc1b0(0xe2),'ELlNM':_0x5dc1b0(0x178),'RyIjO':function(_0x239702){return _0x239702();}};performance['mark'](_0x4f9d07[_0x5dc1b0(0x17c)](_0x110921,_0x4f9d07[_0x5dc1b0(0x121)])),performance[_0x5dc1b0(0x111)](_0x110921,_0x4f9d07[_0x5dc1b0(0x17c)](_0x110921,_0x4f9d07[_0x5dc1b0(0x103)]),_0x4f9d07[_0x5dc1b0(0x17c)](_0x110921,_0x4f9d07[_0x5dc1b0(0x121)]));const _0xaf36a3={};_0xaf36a3[_0x5dc1b0(0xe6)]=_0x49ea64,_0xaf36a3[_0x5dc1b0(0x162)]=_0x5a7a45,this[_0x5dc1b0(0x15d)][_0x110921]=Object['assign'](_0xaf36a3,Object[_0x5dc1b0(0x16f)](Object[_0x5dc1b0(0x16f)]({'worker':_0x4f9d07[_0x5dc1b0(0xf6)](getProcessId),'platform':global[_0x5dc1b0(0xdc)]&&global['__platformCaps'][_0x5dc1b0(0xf5)],'testName':_0x4f9d07[_0x5dc1b0(0xf6)](getTestName)},_0x2fbaed),this['details'][_0x110921]||{}));}}function a120_0x5d7b(){const _0x4950db=['stopMonitoring','1010012eEHSvk','measure','start','hJrXx','F_OK','format','jsonReportDirPath','eventsMap','_observer','constants','kxrqv','debug','errors','duration','mwLDD','platform','jNEeZ','OSHoJ','Error\x20while\x20removing\x20files:\x20','entries','UOhTl','path','buffered','LHuGV','match','splice','exports','started','existsSync','8905XFSRGD','LERqC','gaChG','message','code','zBihf','length','TReJj','push','isEnabled','errorReportDirName','110495PmvsiG','hZxzG','startMonitoring','errorReportFileName','nUhsb','nWkJJ','isArray','PcGRI','env','readFile','unlink','calculateTimeFromEvents','meta','name','Error\x20in\x20getting\x20key-metrics.json\x20file:\x20%s','observe','iuThy','</tbody></table></body></html>','Time\x20for\x20','366iCJbto','DVftM','apply','/error-report-','IElme','end','Yfzqi','perf_hooks','128065bVBUwj','5650000igAKNF','getEventsFromJSON','56RZyKOM','entryType','gJskf','Error\x20stopping\x20monitoring\x20','finalizePerfMeasures','okeQi','concat','details','521982GefFlw','ymbgn','readFileSync','jsonReportFileName','failure','BKEfE','../logger','stringify','getCleanedPerfEvents','NIoxK','mark','map','utf-8','generateJSON','/performance-report-','_errorEvents','jsonReportDirName','assign','toString','AUXdt','2MoIbQG','readdir','finalize','</td></tr>','key-metrics.json\x20file\x20not\x20found,\x20skipping\x20processing\x20for\x20event\x20for\x20cli.','disconnect','-start','modified-key-metrics.json','pushPerfMeasures','387714cWhzCo','hgIVN','info','toJSON','false','VnPoU','BROWSERSTACK_SDK_INSTRUMENTATION','LwAjP','testName','myXFh','measures','Error\x20in\x20doing\x20csv\x20operations:\x20','parse','error\x20in\x20measure\x20','function','__platformCaps','.json','Performance\x20report\x20is\x20at\x20','error-report','entryTypes','\x20for\x20all\x20processes\x20is\x20','-end','key-metrics.json','cXXQB','slice','success','mIlCm','fKRlE','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','dYOAh','resolve','all','fcilk','vEkPy','cwd','catch','unlinkSync','captureError','stopAndGenerate','Ukgbh','index','RyIjO','TjJIV','hhzzI','LOkZL','DVDdl','WOYjE','_events','worker','generateHTMLReport','pushErrors','flat','lEwdT','then','ELlNM','_measureEvents','sHoeC','stack','finalizeErrors','../processHelper','join','UqJee','writeFileSync','</td><td>','writeFile','dCKAU'];a120_0x5d7b=function(){return _0x4950db;};return a120_0x5d7b();}module[a120_0x47c8bf(0x12a)]=PerformanceTester;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a119_0x44e0(_0x5d3cc3,_0x3c8ddf){const _0x1d192b=a119_0x1d19();return a119_0x44e0=function(_0x44e041,_0x1bc65e){_0x44e041=_0x44e041-0x18f;let _0x4d5de3=_0x1d192b[_0x44e041];return _0x4d5de3;},a119_0x44e0(_0x5d3cc3,_0x3c8ddf);}const a119_0x1149e9=a119_0x44e0;(function(_0x4a10d7,_0x70af60){const _0x3cb2dd=a119_0x44e0,_0x364f96=_0x4a10d7();while(!![]){try{const _0x5b5784=-parseInt(_0x3cb2dd(0x1e3))/0x1*(-parseInt(_0x3cb2dd(0x1d3))/0x2)+-parseInt(_0x3cb2dd(0x1e8))/0x3*(parseInt(_0x3cb2dd(0x201))/0x4)+parseInt(_0x3cb2dd(0x1e4))/0x5+parseInt(_0x3cb2dd(0x1a0))/0x6+parseInt(_0x3cb2dd(0x1bd))/0x7+-parseInt(_0x3cb2dd(0x198))/0x8+-parseInt(_0x3cb2dd(0x1fd))/0x9*(parseInt(_0x3cb2dd(0x1f6))/0xa);if(_0x5b5784===_0x70af60)break;else _0x364f96['push'](_0x364f96['shift']());}catch(_0x415595){_0x364f96['push'](_0x364f96['shift']());}}}(a119_0x1d19,0xd33a8));function a119_0x1d19(){const _0x184ebc=['747KpkvWg','bootstrap','platformCaps','./helper','70316IopwOX','getBrowserTypePath\x20is\x20deprecated,\x20use\x20importFileFromPWCore\x20instead','convertW3CToJsonWire','capabilities','mBPWa','path','iKffZ','getPlaywrightModulePath\x20is\x20deprecated,\x20use\x20importFileFromPWCore\x20instead','checkPwandBootstrapCli','BPCpB','workers','7647000OVoTjS','\x20flow','browserstack.accessibilityOptions.authToken','CtGzD','getPlaywrightUrl','EoIUk','FMLQl','EUTGX','4981974grGRmg','importFileFromPWCore','\x20for\x20','projects','cucumberjs-pw','join','Playwright\x20not\x20available:\x20','isArray','mSrDY','setFrameworkDetail','getInstance','debug','getPlaywrightBrowserType','BBaaQ','BrowserType','ZEtFH','pZAnL','client','lDtti','../bin/v2/browserstackCLI','bstack:options','__platformCaps','rmtpY','Error\x20getting\x20Playwright\x20BrowserType:\x20','vnMXE','./testhub/utils','env','chrome','avnDb','7309519CVLFap','./logger','FxDJa','rtONA','getBrowserFromCaps','getPlaywrightModulePath','entries','getBuildProductMap','getPlaywrightConfig','RYLSd','framework','W3CMapping','./w3cMapping','EoBAJ','lOcgA','ZOWbu','jYbHl','browserstack.accessibilityOptions.wcagVersion','Unable\x20to\x20merge\x20accessibility\x20capabilities\x20into\x20Playwright\x20URL\x20caps:\x20','jRAAU','exports','browserstack.accessibilityOptions.scannerProcessingTimeout','41134TBKHuD','use','Detected\x20Playwright\x20version\x20','getConfig','cliConfig','playwrightConfigObject','djBFL','__accessibilityOptions','browserType.js','ldUlf','length','browser','RgALE','../bin/v2/cliUtils','stringify','NnlpH','7bgaoVp','6426555DzmHAU','browserstack.accessibilityOptions.scannerVersion','BedjW','Error\x20getting\x20modified\x20config\x20from\x20gRPC:\x20','21mxxUgU','Could\x20not\x20import\x20GrpcClient:\x20','format','config','message','browserstack.buildProductMap','browserName','lkTli','ULMfX','FJxBO','FRAMEWORKS','parse','HGccH','getModifiedConfigFromCLI','163820BaLgkl','isPlaywrightAvailable','FWqtu','winstonLogger','../bin/utils/constants','No\x20modified\x20config\x20received\x20from\x20gRPC','Converted\x20W3C\x20caps\x20to\x20JSONWire:\x20'];a119_0x1d19=function(){return _0x184ebc;};return a119_0x1d19();}const path=require(a119_0x1149e9(0x192)),util=require('util'),{importFileFromPWCore}=require(a119_0x1149e9(0x200)),helper=require(a119_0x1149e9(0x200)),logger=require(a119_0x1149e9(0x1be))[a119_0x1149e9(0x1f9)],W3CMapping=require(a119_0x1149e9(0x1c9))[a119_0x1149e9(0x1c8)](),constants=require(a119_0x1149e9(0x1fa)),BrowserstackCLI=require(a119_0x1149e9(0x1b3)),CLIUtils=require(a119_0x1149e9(0x1e0));let GrpcClient;try{GrpcClient=require('../bin/v2/grpcClient');}catch(a119_0x431bfc){logger[a119_0x1149e9(0x1ab)](a119_0x1149e9(0x1e9)+a119_0x431bfc[a119_0x1149e9(0x1ec)]),GrpcClient=null;}const convertW3CToJsonWire=_0x3f719f=>{const _0x12e3d0=a119_0x1149e9,_0x22dd77={};_0x22dd77[_0x12e3d0(0x1b0)]=function(_0x1da30f,_0x252311){return _0x1da30f||_0x252311;},_0x22dd77[_0x12e3d0(0x193)]=function(_0x37115f,_0x353770){return _0x37115f===_0x353770;},_0x22dd77[_0x12e3d0(0x1cb)]=_0x12e3d0(0x1b4),_0x22dd77[_0x12e3d0(0x1e2)]=function(_0x42674d,_0xaf09b3){return _0x42674d===_0xaf09b3;},_0x22dd77['fiQCW']=function(_0x83aa36,_0x1e5ef9){return _0x83aa36 in _0x1e5ef9;};const _0x2162b6=_0x22dd77,_0x55050c={};for(const [_0x266ada,_0x12cac7]of Object[_0x12e3d0(0x1c3)](_0x2162b6[_0x12e3d0(0x1b0)](_0x3f719f,{}))){if(_0x2162b6['iKffZ'](_0x266ada,_0x2162b6[_0x12e3d0(0x1cb)]))continue;let _0xe71c6e=![];for(const [_0x49bdd9,_0x3bf683]of Object[_0x12e3d0(0x1c3)](W3CMapping)){if(_0x2162b6['NnlpH'](_0x266ada,_0x3bf683)){_0x55050c[_0x49bdd9]=_0x12cac7,_0xe71c6e=!![];break;}}!_0xe71c6e&&(_0x55050c[_0x266ada]=_0x12cac7);}const _0x4b4676=_0x3f719f[_0x2162b6['lOcgA']]||{};for(const [_0x4c4e68,_0x163a7d]of Object[_0x12e3d0(0x1c3)](_0x4b4676)){let _0x3b24d8=![];for(const [_0x4a6a61,_0x4e7aee]of Object[_0x12e3d0(0x1c3)](W3CMapping)){if(_0x2162b6['iKffZ'](_0x4c4e68,_0x4e7aee)){_0x55050c[_0x4a6a61]=_0x163a7d,_0x3b24d8=!![];break;}}!_0x3b24d8&&!_0x2162b6['fiQCW'](_0x4c4e68,_0x55050c)&&(_0x55050c[_0x4c4e68]=_0x163a7d);}return logger[_0x12e3d0(0x1ab)](_0x12e3d0(0x1fc)+JSON[_0x12e3d0(0x1e1)](_0x55050c)),_0x55050c;},getModifiedConfigFromCLI=async _0x4d5d3c=>{const _0xde9538=a119_0x1149e9,_0x10f6c8={};_0x10f6c8['lDtti']='GrpcClient\x20not\x20available,\x20skipping\x20modified\x20config\x20request',_0x10f6c8[_0xde9538(0x1d0)]=_0xde9538(0x1a4),_0x10f6c8[_0xde9538(0x19d)]='Requesting\x20modified\x20Playwright\x20config\x20from\x20gRPC\x20for\x20cucumberjs-pw',_0x10f6c8['YeuIW']=_0xde9538(0x1fb),_0x10f6c8[_0xde9538(0x1e6)]=function(_0x4c84e5,_0x40f44b){return _0x4c84e5>_0x40f44b;},_0x10f6c8[_0xde9538(0x1f0)]=function(_0x2d403c,_0x6d64c){return _0x2d403c>_0x6d64c;},_0x10f6c8[_0xde9538(0x1d9)]='No\x20usable\x20capabilities\x20found\x20in\x20modified\x20config\x20response';const _0x1f4687=_0x10f6c8;try{if(!GrpcClient)return logger[_0xde9538(0x1ab)](_0x1f4687[_0xde9538(0x1b2)]),null;const _0x3aaf4f={};_0x3aaf4f[_0xde9538(0x190)]=_0x4d5d3c,_0x3aaf4f[_0xde9538(0x1c7)]=_0x1f4687[_0xde9538(0x1d0)],_0x3aaf4f[_0xde9538(0x197)]=0x1,_0x3aaf4f[_0xde9538(0x1a3)]=[];const _0x350f30=_0x3aaf4f;logger[_0xde9538(0x1ab)](_0x1f4687[_0xde9538(0x19d)]);const _0x5588ac={};_0x5588ac[_0xde9538(0x1d8)]=_0x350f30;const _0x3ff9ba=await GrpcClient['getInstance']()[_0xde9538(0x1c5)](_0x5588ac);if(!_0x3ff9ba[_0xde9538(0x1d6)]())return logger[_0xde9538(0x1ab)](_0x1f4687['YeuIW']),null;const _0x30f572=JSON[_0xde9538(0x1f3)](_0x3ff9ba[_0xde9538(0x1d6)]());logger[_0xde9538(0x1ab)]('Received\x20modified\x20config\x20from\x20gRPC:\x20'+JSON[_0xde9538(0x1e1)](_0x30f572));if(_0x30f572[_0xde9538(0x190)]&&Array['isArray'](_0x30f572['capabilities'])&&_0x1f4687[_0xde9538(0x1e6)](_0x30f572[_0xde9538(0x190)][_0xde9538(0x1dd)],0x0))return _0x30f572[_0xde9538(0x190)][0x0];else{if(_0x30f572[_0xde9538(0x1a3)]&&Array[_0xde9538(0x1a7)](_0x30f572[_0xde9538(0x1a3)])&&_0x1f4687[_0xde9538(0x1f0)](_0x30f572['projects'][_0xde9538(0x1dd)],0x0)){const _0x2aba35=_0x30f572[_0xde9538(0x1a3)][0x0];if(_0x2aba35[_0xde9538(0x1d4)]&&_0x2aba35[_0xde9538(0x1d4)][_0xde9538(0x1ff)])return _0x2aba35[_0xde9538(0x1d4)]['platformCaps'];}}return logger['debug'](_0x1f4687['djBFL']),null;}catch(_0x1d8c48){logger['error'](_0xde9538(0x1e7)+_0x1d8c48[_0xde9538(0x1ec)]);throw _0x1d8c48;}},generatePlaywrightUrl=(_0x2e4aba,_0x25c710)=>{const _0x55c332=a119_0x1149e9,_0x5e8448={'jYbHl':function(_0x1e576d,_0x59100f){return _0x1e576d!==_0x59100f;},'FJxBO':function(_0x366ba3,_0x5e5e06){return _0x366ba3!==_0x5e5e06;},'CtGzD':function(_0x52da48,_0x174ca9){return _0x52da48!==_0x174ca9;},'ldUlf':function(_0x2b278a,_0x16a3d1){return _0x2b278a(_0x16a3d1);},'ZOWbu':function(_0x523268,_0x472c8f){return _0x523268||_0x472c8f;},'mSrDY':_0x55c332(0x19a),'BBaaQ':_0x55c332(0x1ce),'FWqtu':function(_0x4abbda,_0x1f75bd){return _0x4abbda(_0x1f75bd);},'FxDJa':_0x55c332(0x1e5),'SClYh':_0x55c332(0x1d2),'HGccH':'browserstack.testhubBuildUuid','RgALE':_0x55c332(0x1ed),'rtONA':function(_0x2b37d3,_0xfaed68){return _0x2b37d3+_0xfaed68;},'FMLQl':function(_0x35ab27,_0x4e331c){return _0x35ab27(_0x4e331c);}},_0x23d6bd=helper[_0x55c332(0x19c)](_0x2e4aba),_0x712cb2=_0x5e8448['ldUlf'](convertW3CToJsonWire,_0x25c710);try{const _0x5dfff8=[_0x5e8448[_0x55c332(0x1cc)](_0x25c710,{}),global['__launchCaps']||{},global[_0x55c332(0x1b5)]||{},global[_0x55c332(0x1da)]||{}],_0x264924=_0xc106ad=>{const _0x475c16=_0x55c332;if(_0x5e8448[_0x475c16(0x1cd)](_0x712cb2[_0xc106ad],undefined)&&_0x5e8448[_0x475c16(0x1cd)](_0x712cb2[_0xc106ad],null)&&_0x5e8448[_0x475c16(0x1cd)](_0x712cb2[_0xc106ad],''))return;for(const _0x3543cd of _0x5dfff8){if(_0x3543cd&&_0x5e8448['jYbHl'](_0x3543cd[_0xc106ad],undefined)&&_0x5e8448[_0x475c16(0x1f1)](_0x3543cd[_0xc106ad],null)&&_0x5e8448[_0x475c16(0x19b)](_0x3543cd[_0xc106ad],'')){_0x712cb2[_0xc106ad]=_0x3543cd[_0xc106ad];return;}}};_0x5e8448[_0x55c332(0x1dc)](_0x264924,_0x5e8448[_0x55c332(0x1a8)]),_0x5e8448[_0x55c332(0x1dc)](_0x264924,_0x5e8448[_0x55c332(0x1ad)]),_0x5e8448[_0x55c332(0x1f8)](_0x264924,_0x5e8448[_0x55c332(0x1bf)]),_0x5e8448[_0x55c332(0x1dc)](_0x264924,_0x5e8448['SClYh']),!_0x712cb2[_0x5e8448[_0x55c332(0x1a8)]]&&process[_0x55c332(0x1ba)]['BS_A11Y_JWT']&&(_0x712cb2[_0x5e8448[_0x55c332(0x1a8)]]=process['env']['BS_A11Y_JWT']);}catch(_0x478de3){logger[_0x55c332(0x1ab)](_0x55c332(0x1cf)+util[_0x55c332(0x1ea)](_0x478de3));}return _0x712cb2[_0x5e8448[_0x55c332(0x1f4)]]=process[_0x55c332(0x1ba)]['BROWSERSTACK_TESTHUB_UUID'],_0x712cb2[_0x5e8448[_0x55c332(0x1df)]]=helper[_0x55c332(0x1c4)](),_0x5e8448[_0x55c332(0x1c0)](_0x23d6bd,_0x5e8448[_0x55c332(0x19e)](encodeURIComponent,JSON['stringify'](_0x712cb2)));},getBrowserFromCaps=_0x915eea=>{const _0x225635=a119_0x1149e9,_0x5bb5dd={};_0x5bb5dd[_0x225635(0x19f)]=_0x225635(0x1bb);const _0x3d45c6=_0x5bb5dd;return _0x915eea[_0x225635(0x1ee)]||_0x915eea[_0x225635(0x1de)]||_0x3d45c6['EUTGX'];},isPlaywrightAvailable=()=>{const _0x43d68d=a119_0x1149e9,_0x11f076={'jSkCe':'lib','avnDb':'client','GEkeQ':_0x43d68d(0x1db),'RYLSd':function(_0x4f66d0,_0x1b2e79){return _0x4f66d0(_0x1b2e79);}};try{const _0xa9cc50=path[_0x43d68d(0x1a5)](_0x11f076['jSkCe'],_0x11f076[_0x43d68d(0x1bc)],_0x11f076['GEkeQ']),_0xf57eba=_0x11f076[_0x43d68d(0x1c6)](importFileFromPWCore,_0xa9cc50);return!!_0xf57eba;}catch(_0x359035){return logger[_0x43d68d(0x1ab)](_0x43d68d(0x1a6)+util['format'](_0x359035)),![];}},getPlaywrightBrowserType=()=>{const _0x4bc7d5=a119_0x1149e9,_0x347844={'ZEtFH':'lib','mBPWa':_0x4bc7d5(0x1b1),'NKbGS':_0x4bc7d5(0x1db),'rmtpY':function(_0x32fcda,_0x30207d){return _0x32fcda(_0x30207d);}};try{const _0x4c6817=path[_0x4bc7d5(0x1a5)](_0x347844[_0x4bc7d5(0x1af)],_0x347844[_0x4bc7d5(0x191)],_0x347844['NKbGS']),_0x1c2969=_0x347844[_0x4bc7d5(0x1b6)](importFileFromPWCore,_0x4c6817);return _0x1c2969?_0x1c2969[_0x4bc7d5(0x1ae)]:null;}catch(_0x2b1053){return logger['debug'](_0x4bc7d5(0x1b7)+util['format'](_0x2b1053)),null;}},getPlaywrightModulePath=()=>{const _0x9d56d5=a119_0x1149e9,_0xebca55={};_0xebca55[_0x9d56d5(0x1b8)]=_0x9d56d5(0x194);const _0x16a83a=_0xebca55;return logger[_0x9d56d5(0x1ab)](_0x16a83a[_0x9d56d5(0x1b8)]),null;},getBrowserTypePath=()=>{const _0xb67992=a119_0x1149e9,_0x75a014={};_0x75a014[_0xb67992(0x1ef)]=_0xb67992(0x202);const _0x3f5b97=_0x75a014;return logger[_0xb67992(0x1ab)](_0x3f5b97[_0xb67992(0x1ef)]),null;},checkPwandBootstrapCli=async(_0x1abaf4,_0x572474,_0x495e89)=>{const _0x11b86b=a119_0x1149e9,_0x20dd11={'BPCpB':function(_0x4e4995,_0x2ca05c){return _0x4e4995(_0x2ca05c);},'EoBAJ':_0x11b86b(0x1b9)};if(_0x1abaf4){const _0x45fbf6=constants[_0x11b86b(0x1f2)]['PLAYWRIGHT'];logger[_0x11b86b(0x1ab)](_0x11b86b(0x1d5)+_0x1abaf4+_0x11b86b(0x1a2)+_0x572474+_0x11b86b(0x199)),CLIUtils[_0x11b86b(0x1a9)](_0x572474,_0x45fbf6);const {getProductMap:_0x3fdd0f}=_0x20dd11[_0x11b86b(0x196)](require,_0x20dd11[_0x11b86b(0x1ca)]);process[_0x11b86b(0x1ba)]['BROWSERSTACK_PRODUCT_MAP']=JSON['stringify'](_0x20dd11[_0x11b86b(0x196)](_0x3fdd0f,_0x495e89[_0x11b86b(0x1eb)])),BrowserstackCLI['getInstance']()['setBrowserstackConfig'](_0x495e89[_0x11b86b(0x1eb)],_0x495e89[_0x11b86b(0x1d7)]),await BrowserstackCLI[_0x11b86b(0x1aa)]()[_0x11b86b(0x1fe)]();}},a119_0x345022={};a119_0x345022[a119_0x1149e9(0x18f)]=convertW3CToJsonWire,a119_0x345022[a119_0x1149e9(0x1f5)]=getModifiedConfigFromCLI,a119_0x345022['generatePlaywrightUrl']=generatePlaywrightUrl,a119_0x345022[a119_0x1149e9(0x1c1)]=getBrowserFromCaps,a119_0x345022[a119_0x1149e9(0x1f7)]=isPlaywrightAvailable,a119_0x345022[a119_0x1149e9(0x1ac)]=getPlaywrightBrowserType,a119_0x345022[a119_0x1149e9(0x1c2)]=getPlaywrightModulePath,a119_0x345022['getBrowserTypePath']=getBrowserTypePath,a119_0x345022[a119_0x1149e9(0x1a1)]=importFileFromPWCore,a119_0x345022[a119_0x1149e9(0x195)]=checkPwandBootstrapCli,module[a119_0x1149e9(0x1d1)]=a119_0x345022;
|
|
1
|
+
const a121_0x50e96e=a121_0x2d8c;(function(_0x25c602,_0x3f353e){const _0x1216ec=a121_0x2d8c,_0x57b3e2=_0x25c602();while(!![]){try{const _0x4fdfdf=-parseInt(_0x1216ec(0x233))/0x1+-parseInt(_0x1216ec(0x220))/0x2*(-parseInt(_0x1216ec(0x1e8))/0x3)+parseInt(_0x1216ec(0x24e))/0x4+-parseInt(_0x1216ec(0x1ff))/0x5*(-parseInt(_0x1216ec(0x208))/0x6)+-parseInt(_0x1216ec(0x229))/0x7+-parseInt(_0x1216ec(0x255))/0x8+parseInt(_0x1216ec(0x1e6))/0x9;if(_0x4fdfdf===_0x3f353e)break;else _0x57b3e2['push'](_0x57b3e2['shift']());}catch(_0x58fd79){_0x57b3e2['push'](_0x57b3e2['shift']());}}}(a121_0x4e5a,0xe1e9c));function a121_0x2d8c(_0x3cf484,_0x2f0368){const _0x4e5ad8=a121_0x4e5a();return a121_0x2d8c=function(_0x2d8cba,_0x56e6c5){_0x2d8cba=_0x2d8cba-0x1e0;let _0x3f8df6=_0x4e5ad8[_0x2d8cba];return _0x3f8df6;},a121_0x2d8c(_0x3cf484,_0x2f0368);}const path=require('path'),util=require(a121_0x50e96e(0x1f0)),{importFileFromPWCore}=require('./helper'),helper=require(a121_0x50e96e(0x23d)),logger=require(a121_0x50e96e(0x238))[a121_0x50e96e(0x1fc)],W3CMapping=require(a121_0x50e96e(0x243))['W3CMapping'](),constants=require(a121_0x50e96e(0x206)),BrowserstackCLI=require(a121_0x50e96e(0x200)),CLIUtils=require(a121_0x50e96e(0x1ef));function a121_0x4e5a(){const _0x497fa8=['__launchCaps','./logger','VrYwb','bootstrap','UNkvX','tfeQC','./helper','bstack:options','__accessibilityOptions','debug','chrome','xjufP','./w3cMapping','Error\x20getting\x20modified\x20config\x20from\x20gRPC:\x20','capabilities','framework','ekYBV','browserType.js','workers','getConfig','format','length','../bin/v2/grpcClient','3150444nSJcWn','GOJjn','nciaT','cucumberjs-pw','browserName','exports','setBrowserstackConfig','12044960QXdoFd','getBrowserTypePath\x20is\x20deprecated,\x20use\x20importFileFromPWCore\x20instead','browserstack.accessibilityOptions.scannerProcessingTimeout','mntkp','Unable\x20to\x20merge\x20accessibility\x20capabilities\x20into\x20Playwright\x20URL\x20caps:\x20','VpTZQ','JLWqh','env','fhWBM','OWxxa','26425548tFLmSN','nxExx','3uVoCTQ','ZoreH','config','entries','getPlaywrightModulePath\x20is\x20deprecated,\x20use\x20importFileFromPWCore\x20instead','Playwright\x20not\x20available:\x20','jHQAo','../bin/v2/cliUtils','util','HUNtG','PRxcH','BROWSERSTACK_PRODUCT_MAP','No\x20modified\x20config\x20received\x20from\x20gRPC','BrowserType','browserstack.accessibilityOptions.wcagVersion','BROWSERSTACK_TESTHUB_UUID','BS_A11Y_JWT','utajF','Detected\x20Playwright\x20version\x20','Error\x20getting\x20Playwright\x20BrowserType:\x20','winstonLogger','importFileFromPWCore','getBuildProductMap','5Bwotuj','../bin/v2/browserstackCLI','getPlaywrightBrowserType','parse','AysUn','use','error','../bin/utils/constants','IJgvH','2304408VMoCih','uliqC','KSlrA','getPlaywrightModulePath','cliConfig','Could\x20not\x20import\x20GrpcClient:\x20','bGztH','fKHjK','getModifiedConfigFromCLI','woIjV','checkPwandBootstrapCli','trbYc','playwrightConfigObject','jpUdv','HYsZc','PLAYWRIGHT','message','vTgEo','convertW3CToJsonWire','EdOuZ','dOTMA','\x20flow','EwYtX','RZwyQ','2063028tRTPCA','lib','isPlaywrightAvailable','browserstack.accessibilityOptions.scannerVersion','\x20for\x20','platformCaps','getPlaywrightUrl','isArray','projects','11246263DwDaKN','eVsiw','setFrameworkDetail','browser','Converted\x20W3C\x20caps\x20to\x20JSONWire:\x20','lFBiA','join','getBrowserFromCaps','browserstack.testhubBuildUuid','Received\x20modified\x20config\x20from\x20gRPC:\x20','1101796OwwNIM','client','Requesting\x20modified\x20Playwright\x20config\x20from\x20gRPC\x20for\x20cucumberjs-pw','getInstance'];a121_0x4e5a=function(){return _0x497fa8;};return a121_0x4e5a();}let GrpcClient;try{GrpcClient=require(a121_0x50e96e(0x24d));}catch(a121_0x348f9e){logger[a121_0x50e96e(0x240)](a121_0x50e96e(0x20d)+a121_0x348f9e[a121_0x50e96e(0x218)]),GrpcClient=null;}const convertW3CToJsonWire=_0xe05830=>{const _0x49d1ac=a121_0x50e96e,_0x3f3d30={};_0x3f3d30['fKHjK']=function(_0x201436,_0x5a0c5d){return _0x201436||_0x5a0c5d;},_0x3f3d30['HYsZc']=function(_0xac2cdb,_0x2b3395){return _0xac2cdb===_0x2b3395;},_0x3f3d30['OWxxa']=_0x49d1ac(0x23e),_0x3f3d30[_0x49d1ac(0x1e4)]=function(_0x408470,_0x35e535){return _0x408470===_0x35e535;},_0x3f3d30[_0x49d1ac(0x1f9)]=function(_0x1c5be1,_0x1e7d7a){return _0x1c5be1 in _0x1e7d7a;};const _0x590a65=_0x3f3d30,_0x29a06e={};for(const [_0x2d9a21,_0xf7f43c]of Object[_0x49d1ac(0x1eb)](_0x590a65[_0x49d1ac(0x20f)](_0xe05830,{}))){if(_0x590a65[_0x49d1ac(0x216)](_0x2d9a21,_0x590a65[_0x49d1ac(0x1e5)]))continue;let _0x5a4bd3=![];for(const [_0x150e58,_0x552739]of Object[_0x49d1ac(0x1eb)](W3CMapping)){if(_0x590a65['fhWBM'](_0x2d9a21,_0x552739)){_0x29a06e[_0x150e58]=_0xf7f43c,_0x5a4bd3=!![];break;}}!_0x5a4bd3&&(_0x29a06e[_0x2d9a21]=_0xf7f43c);}const _0x50a979=_0xe05830[_0x590a65[_0x49d1ac(0x1e5)]]||{};for(const [_0x51a571,_0xc84914]of Object[_0x49d1ac(0x1eb)](_0x50a979)){let _0x2a9106=![];for(const [_0x11a852,_0x428e46]of Object[_0x49d1ac(0x1eb)](W3CMapping)){if(_0x590a65['fhWBM'](_0x51a571,_0x428e46)){_0x29a06e[_0x11a852]=_0xc84914,_0x2a9106=!![];break;}}!_0x2a9106&&!_0x590a65[_0x49d1ac(0x1f9)](_0x51a571,_0x29a06e)&&(_0x29a06e[_0x51a571]=_0xc84914);}return logger[_0x49d1ac(0x240)](_0x49d1ac(0x22d)+JSON['stringify'](_0x29a06e)),_0x29a06e;},getModifiedConfigFromCLI=async _0x4028c4=>{const _0x2433cf=a121_0x50e96e,_0x662de4={};_0x662de4[_0x2433cf(0x21b)]='GrpcClient\x20not\x20available,\x20skipping\x20modified\x20config\x20request',_0x662de4[_0x2433cf(0x20a)]=_0x2433cf(0x251),_0x662de4[_0x2433cf(0x21f)]=_0x2433cf(0x235),_0x662de4[_0x2433cf(0x1e2)]=_0x2433cf(0x1f4),_0x662de4['GOJjn']=function(_0x429fbc,_0xaa9678){return _0x429fbc>_0xaa9678;},_0x662de4[_0x2433cf(0x219)]=function(_0x185c72,_0x5cc686){return _0x185c72>_0x5cc686;},_0x662de4[_0x2433cf(0x1e7)]='No\x20usable\x20capabilities\x20found\x20in\x20modified\x20config\x20response';const _0x212b11=_0x662de4;try{if(!GrpcClient)return logger[_0x2433cf(0x240)](_0x212b11[_0x2433cf(0x21b)]),null;const _0xca3955={};_0xca3955[_0x2433cf(0x245)]=_0x4028c4,_0xca3955[_0x2433cf(0x246)]=_0x212b11[_0x2433cf(0x20a)],_0xca3955[_0x2433cf(0x249)]=0x1,_0xca3955[_0x2433cf(0x228)]=[];const _0x498069=_0xca3955;logger['debug'](_0x212b11[_0x2433cf(0x21f)]);const _0x27688a={};_0x27688a[_0x2433cf(0x214)]=_0x498069;const _0xcacbc4=await GrpcClient['getInstance']()['getPlaywrightConfig'](_0x27688a);if(!_0xcacbc4['getConfig']())return logger[_0x2433cf(0x240)](_0x212b11['JLWqh']),null;const _0x5c1148=JSON[_0x2433cf(0x202)](_0xcacbc4[_0x2433cf(0x24a)]());logger[_0x2433cf(0x240)](_0x2433cf(0x232)+JSON['stringify'](_0x5c1148));if(_0x5c1148[_0x2433cf(0x245)]&&Array[_0x2433cf(0x227)](_0x5c1148[_0x2433cf(0x245)])&&_0x212b11[_0x2433cf(0x24f)](_0x5c1148[_0x2433cf(0x245)][_0x2433cf(0x24c)],0x0))return _0x5c1148[_0x2433cf(0x245)][0x0];else{if(_0x5c1148[_0x2433cf(0x228)]&&Array[_0x2433cf(0x227)](_0x5c1148[_0x2433cf(0x228)])&&_0x212b11[_0x2433cf(0x219)](_0x5c1148[_0x2433cf(0x228)][_0x2433cf(0x24c)],0x0)){const _0x17d399=_0x5c1148['projects'][0x0];if(_0x17d399[_0x2433cf(0x204)]&&_0x17d399[_0x2433cf(0x204)][_0x2433cf(0x225)])return _0x17d399[_0x2433cf(0x204)][_0x2433cf(0x225)];}}return logger[_0x2433cf(0x240)](_0x212b11[_0x2433cf(0x1e7)]),null;}catch(_0xa03876){logger[_0x2433cf(0x205)](_0x2433cf(0x244)+_0xa03876['message']);throw _0xa03876;}},generatePlaywrightUrl=(_0xe7dcbe,_0x37f98c)=>{const _0x35f7bd=a121_0x50e96e,_0x128af0={'UNkvX':function(_0x5d0eed,_0xb5a202){return _0x5d0eed!==_0xb5a202;},'jHQAo':function(_0x1d547c,_0x144947){return _0x1d547c!==_0x144947;},'tfeQC':function(_0x3ba287,_0xe88d){return _0x3ba287!==_0xe88d;},'VrYwb':function(_0x3439ae,_0x475030){return _0x3439ae!==_0x475030;},'HUNtG':function(_0x2c0d60,_0x39882a){return _0x2c0d60(_0x39882a);},'AysUn':function(_0x21dd90,_0x586c65){return _0x21dd90||_0x586c65;},'ZoreH':'browserstack.accessibilityOptions.authToken','dOTMA':_0x35f7bd(0x1f6),'EwYtX':_0x35f7bd(0x223),'trbYc':function(_0x27b724,_0x2c90e5){return _0x27b724(_0x2c90e5);},'VpTZQ':_0x35f7bd(0x257),'woIjV':_0x35f7bd(0x231),'IJgvH':'browserstack.buildProductMap','PRxcH':function(_0x4a6021,_0x1d4aa1){return _0x4a6021+_0x1d4aa1;},'tXYps':function(_0x1cf696,_0x14d4cf){return _0x1cf696(_0x14d4cf);}},_0x418baa=helper[_0x35f7bd(0x226)](_0xe7dcbe),_0x2f4217=_0x128af0['HUNtG'](convertW3CToJsonWire,_0x37f98c);try{const _0x21c669=[_0x128af0[_0x35f7bd(0x203)](_0x37f98c,{}),global[_0x35f7bd(0x237)]||{},global['__platformCaps']||{},global[_0x35f7bd(0x23f)]||{}],_0x1c99ba=_0x491141=>{const _0x2627ae=_0x35f7bd;if(_0x128af0[_0x2627ae(0x23b)](_0x2f4217[_0x491141],undefined)&&_0x128af0[_0x2627ae(0x23b)](_0x2f4217[_0x491141],null)&&_0x128af0[_0x2627ae(0x1ee)](_0x2f4217[_0x491141],''))return;for(const _0x154f65 of _0x21c669){if(_0x154f65&&_0x128af0['jHQAo'](_0x154f65[_0x491141],undefined)&&_0x128af0[_0x2627ae(0x23c)](_0x154f65[_0x491141],null)&&_0x128af0[_0x2627ae(0x239)](_0x154f65[_0x491141],'')){_0x2f4217[_0x491141]=_0x154f65[_0x491141];return;}}};_0x128af0['HUNtG'](_0x1c99ba,_0x128af0[_0x35f7bd(0x1e9)]),_0x128af0[_0x35f7bd(0x1f1)](_0x1c99ba,_0x128af0[_0x35f7bd(0x21c)]),_0x128af0[_0x35f7bd(0x1f1)](_0x1c99ba,_0x128af0[_0x35f7bd(0x21e)]),_0x128af0[_0x35f7bd(0x213)](_0x1c99ba,_0x128af0[_0x35f7bd(0x1e1)]),!_0x2f4217[_0x128af0['ZoreH']]&&process[_0x35f7bd(0x1e3)][_0x35f7bd(0x1f8)]&&(_0x2f4217[_0x128af0[_0x35f7bd(0x1e9)]]=process[_0x35f7bd(0x1e3)][_0x35f7bd(0x1f8)]);}catch(_0x5d754f){logger[_0x35f7bd(0x240)](_0x35f7bd(0x1e0)+util['format'](_0x5d754f));}return _0x2f4217[_0x128af0[_0x35f7bd(0x211)]]=process[_0x35f7bd(0x1e3)][_0x35f7bd(0x1f7)],_0x2f4217[_0x128af0[_0x35f7bd(0x207)]]=helper[_0x35f7bd(0x1fe)](),_0x128af0[_0x35f7bd(0x1f2)](_0x418baa,_0x128af0['tXYps'](encodeURIComponent,JSON['stringify'](_0x2f4217)));},getBrowserFromCaps=_0x50ffd2=>{const _0x1d524d=a121_0x50e96e,_0x580ace={};_0x580ace[_0x1d524d(0x247)]=_0x1d524d(0x241);const _0x1cf0ec=_0x580ace;return _0x50ffd2[_0x1d524d(0x252)]||_0x50ffd2[_0x1d524d(0x22c)]||_0x1cf0ec[_0x1d524d(0x247)];},isPlaywrightAvailable=()=>{const _0x4a172a=a121_0x50e96e,_0x1f53f2={'uliqC':_0x4a172a(0x221),'jpUdv':_0x4a172a(0x234),'kRHwP':_0x4a172a(0x248),'mntkp':function(_0x1c4758,_0x15392b){return _0x1c4758(_0x15392b);}};try{const _0x201fd9=path[_0x4a172a(0x22f)](_0x1f53f2[_0x4a172a(0x209)],_0x1f53f2[_0x4a172a(0x215)],_0x1f53f2['kRHwP']),_0x4ba67a=_0x1f53f2[_0x4a172a(0x258)](importFileFromPWCore,_0x201fd9);return!!_0x4ba67a;}catch(_0x1173d8){return logger['debug'](_0x4a172a(0x1ed)+util['format'](_0x1173d8)),![];}},getPlaywrightBrowserType=()=>{const _0x245a4d=a121_0x50e96e,_0x3a6573={'aPCPz':_0x245a4d(0x221),'XtQNw':_0x245a4d(0x234),'GEpXc':_0x245a4d(0x248),'rZwAM':function(_0x50f8d5,_0x230845){return _0x50f8d5(_0x230845);}};try{const _0x33f5bc=path[_0x245a4d(0x22f)](_0x3a6573['aPCPz'],_0x3a6573['XtQNw'],_0x3a6573['GEpXc']),_0x5ecb3a=_0x3a6573['rZwAM'](importFileFromPWCore,_0x33f5bc);return _0x5ecb3a?_0x5ecb3a[_0x245a4d(0x1f5)]:null;}catch(_0x3a8be9){return logger[_0x245a4d(0x240)](_0x245a4d(0x1fb)+util[_0x245a4d(0x24b)](_0x3a8be9)),null;}},getPlaywrightModulePath=()=>{const _0x247aa3=a121_0x50e96e,_0x3dfb75={};_0x3dfb75[_0x247aa3(0x22a)]=_0x247aa3(0x1ec);const _0xfff17c=_0x3dfb75;return logger[_0x247aa3(0x240)](_0xfff17c['eVsiw']),null;},getBrowserTypePath=()=>{const _0x48ba8d=a121_0x50e96e,_0x1ce2ac={};_0x1ce2ac[_0x48ba8d(0x242)]=_0x48ba8d(0x256);const _0x25a7a0=_0x1ce2ac;return logger['debug'](_0x25a7a0[_0x48ba8d(0x242)]),null;},checkPwandBootstrapCli=async(_0x474c54,_0x38972b,_0x5b5ac6)=>{const _0x44c9f6=a121_0x50e96e,_0x4ef91a={'nciaT':function(_0xb092ca,_0xde248b){return _0xb092ca(_0xde248b);},'bGztH':'./testhub/utils','lFBiA':function(_0x16c5e3,_0x20dd75){return _0x16c5e3(_0x20dd75);}};if(_0x474c54){const _0x47698a=constants['FRAMEWORKS'][_0x44c9f6(0x217)];logger[_0x44c9f6(0x240)](_0x44c9f6(0x1fa)+_0x474c54+_0x44c9f6(0x224)+_0x38972b+_0x44c9f6(0x21d)),CLIUtils[_0x44c9f6(0x22b)](_0x38972b,_0x47698a);const {getProductMap:_0x14cf50}=_0x4ef91a[_0x44c9f6(0x250)](require,_0x4ef91a[_0x44c9f6(0x20e)]);process[_0x44c9f6(0x1e3)][_0x44c9f6(0x1f3)]=JSON['stringify'](_0x4ef91a[_0x44c9f6(0x22e)](_0x14cf50,_0x5b5ac6[_0x44c9f6(0x1ea)])),BrowserstackCLI[_0x44c9f6(0x236)]()[_0x44c9f6(0x254)](_0x5b5ac6[_0x44c9f6(0x1ea)],_0x5b5ac6[_0x44c9f6(0x20c)]),await BrowserstackCLI[_0x44c9f6(0x236)]()[_0x44c9f6(0x23a)]();}},a121_0x15e544={};a121_0x15e544[a121_0x50e96e(0x21a)]=convertW3CToJsonWire,a121_0x15e544[a121_0x50e96e(0x210)]=getModifiedConfigFromCLI,a121_0x15e544['generatePlaywrightUrl']=generatePlaywrightUrl,a121_0x15e544[a121_0x50e96e(0x230)]=getBrowserFromCaps,a121_0x15e544[a121_0x50e96e(0x222)]=isPlaywrightAvailable,a121_0x15e544[a121_0x50e96e(0x201)]=getPlaywrightBrowserType,a121_0x15e544[a121_0x50e96e(0x20b)]=getPlaywrightModulePath,a121_0x15e544['getBrowserTypePath']=getBrowserTypePath,a121_0x15e544[a121_0x50e96e(0x1fd)]=importFileFromPWCore,a121_0x15e544[a121_0x50e96e(0x212)]=checkPwandBootstrapCli,module[a121_0x50e96e(0x253)]=a121_0x15e544;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a122_0xec0c(_0x1e20fd,_0x19a0f0){const _0x2897bd=a122_0x2897();return a122_0xec0c=function(_0xec0c83,_0x5897e8){_0xec0c83=_0xec0c83-0xc6;let _0x5c53a3=_0x2897bd[_0xec0c83];return _0x5c53a3;},a122_0xec0c(_0x1e20fd,_0x19a0f0);}const a122_0x219d02=a122_0xec0c;(function(_0x3e81e3,_0x143df5){const _0x2d6179=a122_0xec0c,_0x364864=_0x3e81e3();while(!![]){try{const _0x13f87e=parseInt(_0x2d6179(0xe2))/0x1+parseInt(_0x2d6179(0xe1))/0x2+parseInt(_0x2d6179(0xd0))/0x3+parseInt(_0x2d6179(0xd4))/0x4*(parseInt(_0x2d6179(0xd1))/0x5)+-parseInt(_0x2d6179(0xdd))/0x6+-parseInt(_0x2d6179(0xdb))/0x7*(-parseInt(_0x2d6179(0xc8))/0x8)+parseInt(_0x2d6179(0xd6))/0x9*(-parseInt(_0x2d6179(0xd5))/0xa);if(_0x13f87e===_0x143df5)break;else _0x364864['push'](_0x364864['shift']());}catch(_0x5091f1){_0x364864['push'](_0x364864['shift']());}}}(a122_0x2897,0x54c12));const worker=require(a122_0x219d02(0xe5)),{fileLogger}=require('./logger'),{consoleHolder}=require(a122_0x219d02(0xcd)),globals=require(a122_0x219d02(0xe4)),constants=require('../bin/utils/constants');exports[a122_0x219d02(0xc7)]=()=>{const _0x403739=a122_0x219d02;return process[_0x403739(0xe6)]+'-'+worker['threadId'];},exports[a122_0x219d02(0xd7)]=()=>{const _0x4cdddb=a122_0x219d02,_0x458edc={};_0x458edc[_0x4cdddb(0xdf)]=_0x4cdddb(0xda);const _0x51e4c7=_0x458edc;return globals[_0x4cdddb(0xe0)](_0x51e4c7[_0x4cdddb(0xdf)]);},exports[a122_0x219d02(0xd2)]=(_0x5f4e56=0x64)=>new Promise(_0xac3822=>setTimeout(_0xac3822,_0x5f4e56)),exports[a122_0x219d02(0xca)]=_0x1c298e=>{const _0x4cf57e=a122_0x219d02,_0x43e82f={};_0x43e82f[_0x4cf57e(0xd8)]=function(_0x30cee2,_0x486022){return _0x30cee2===_0x486022;},_0x43e82f['znnNM']='true',_0x43e82f['rToVf']=function(_0x1eb4bc,_0x5b28fb){return _0x1eb4bc===_0x5b28fb;},_0x43e82f[_0x4cf57e(0xce)]=function(_0x3c2aeb,_0x935cb7){return _0x3c2aeb===_0x935cb7;};const _0x57cdf0=_0x43e82f;fileLogger[_0x4cf57e(0xca)]('['+new Date()[_0x4cf57e(0xcc)]()+_0x4cf57e(0xc6)+constants[_0x4cf57e(0xd9)]+_0x4cf57e(0xcb)+_0x1c298e),(_0x57cdf0[_0x4cf57e(0xd8)](process['env'][_0x4cf57e(0xcf)],_0x57cdf0[_0x4cf57e(0xd3)])||_0x57cdf0[_0x4cf57e(0xde)](process[_0x4cf57e(0xc9)][_0x4cf57e(0xcf)],'1')||_0x57cdf0[_0x4cf57e(0xce)](process[_0x4cf57e(0xc9)][_0x4cf57e(0xdc)],_0x57cdf0[_0x4cf57e(0xd3)])||_0x57cdf0[_0x4cf57e(0xd8)](process[_0x4cf57e(0xc9)][_0x4cf57e(0xdc)],'1'))&&consoleHolder[_0x4cf57e(0xe3)]('\x0a['+new Date()['toISOString']()+_0x4cf57e(0xc6)+constants['TEST_REPORTING_ANALYTICS']+_0x4cf57e(0xcb)+_0x1c298e+'\x0a');};function a122_0x2897(){const _0x4783b6=['\x20]\x20','toISOString','./test-observability/constants','oEjFF','BROWSERSTACK_TEST_REPORTING_DEBUG','850437dsWuod','2855530WyhjUY','sleep','znnNM','4tXYipv','14830DnSUcy','6813RbyabB','getTestName','mcBWg','TEST_REPORTING_ANALYTICS','browserstackTestName','559461JysYBj','BROWSERSTACK_OBSERVABILITY_DEBUG','2859264ZCZryS','rToVf','BXOmC','getGlobal','1195024QdkQgV','414309zSFPAu','log','./globals','worker_threads','pid','][\x20','getProcessId','8ZLKuBU','env','debug'];a122_0x2897=function(){return _0x4783b6;};return a122_0x2897();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a123_0x33e9a0=a123_0x45cf;(function(_0xcdcd2f,_0x2ae12f){const _0x217e91=a123_0x45cf,_0x4d49dc=_0xcdcd2f();while(!![]){try{const _0x58c80b=parseInt(_0x217e91(0x1a7))/0x1+-parseInt(_0x217e91(0x1cd))/0x2*(-parseInt(_0x217e91(0x1ad))/0x3)+parseInt(_0x217e91(0x1a6))/0x4+parseInt(_0x217e91(0x1c9))/0x5*(-parseInt(_0x217e91(0x1af))/0x6)+-parseInt(_0x217e91(0x1aa))/0x7*(parseInt(_0x217e91(0x1c1))/0x8)+parseInt(_0x217e91(0x1bb))/0x9+-parseInt(_0x217e91(0x19b))/0xa*(parseInt(_0x217e91(0x1c3))/0xb);if(_0x58c80b===_0x2ae12f)break;else _0x4d49dc['push'](_0x4d49dc['shift']());}catch(_0x807dc){_0x4d49dc['push'](_0x4d49dc['shift']());}}}(a123_0x39b8,0x1a599));function a123_0x45cf(_0xa1f0a0,_0x36f171){const _0x39b886=a123_0x39b8();return a123_0x45cf=function(_0x45cf4f,_0x401a1e){_0x45cf4f=_0x45cf4f-0x199;let _0x254e0d=_0x39b886[_0x45cf4f];return _0x254e0d;},a123_0x45cf(_0xa1f0a0,_0x36f171);}function a123_0x39b8(){const _0x4fdb41=['FREou','http','IXOcr','5nWVRul','now','restore','removeListener','122oQNvUi','request','CBWKW','725620CXvtst','YgbDv','host','headers','error','yhbTF','method','prototype','statusCode','wANOC','call','677900JuWMon','59150HBIboy','object','cpLCr','7pwQeEx','DxDky','hostname','4881YImFOk','tzbmq','259386PJYfuR','MNcvx','rBkdi','monkeypatch','url','duration_ms','unpatch','socket','https','status_code','assign','apply','864027ealcpF','path','exports','lFJxZ','once','response','1601224rOQfHn','pathname','11tVNuPQ','forEach','end'];a123_0x39b8=function(){return _0x4fdb41;};return a123_0x39b8();}const http=require(a123_0x33e9a0(0x1c7)),https=require(a123_0x33e9a0(0x1b7)),monkeypatch=require(a123_0x33e9a0(0x1b2));function spy(_0x3515e2){const _0x20e7ba=a123_0x33e9a0,_0x4f1f33={'jzxXo':function(_0x5bdf99,_0xd1447a){return _0x5bdf99 instanceof _0xd1447a;},'DxDky':function(_0x40d309,_0x3e5205){return _0x40d309===_0x3e5205;},'oQlNj':_0x20e7ba(0x1a8),'ygtAY':function(_0x1c9c7f,_0x2d0a1c){return _0x1c9c7f-_0x2d0a1c;},'wANOC':function(_0x2c73d7,_0x5447e9,_0x3b70fb){return _0x2c73d7(_0x5447e9,_0x3b70fb);},'IXOcr':_0x20e7ba(0x19f),'cpLCr':function(_0x149137,..._0x5d0144){return _0x149137(..._0x5d0144);},'YgbDv':_0x20e7ba(0x1c0),'FREou':_0x20e7ba(0x1b6),'yhbTF':function(_0x37537f,_0x1cbc25,_0x4e1e53,_0x12f508){return _0x37537f(_0x1cbc25,_0x4e1e53,_0x12f508);},'rBkdi':_0x20e7ba(0x1c5),'MNcvx':function(_0x31dca8,_0x479105,_0x1c9472,_0x1fa5c1){return _0x31dca8(_0x479105,_0x1c9472,_0x1fa5c1);},'CBWKW':_0x20e7ba(0x199)},_0xe7fa0d=function(){const _0xb9f687=_0x20e7ba,_0x219677={'tAwvG':function(_0x33c3d8,_0x21d639,_0x2c63cb){const _0x4e8547=a123_0x45cf;return _0x4f1f33[_0x4e8547(0x1a4)](_0x33c3d8,_0x21d639,_0x2c63cb);},'tzbmq':_0x4f1f33[_0xb9f687(0x1c8)],'lFJxZ':function(_0x31febd,..._0x57e065){const _0x4df455=_0xb9f687;return _0x4f1f33[_0x4df455(0x1a9)](_0x31febd,..._0x57e065);}},_0x18e4a3=arguments[0x0],_0x546bb9=Array[_0xb9f687(0x1a2)]['slice'][_0xb9f687(0x1a5)](arguments,0x1),_0x40567b=_0x18e4a3[_0xb9f687(0x1ba)](this,_0x546bb9);let _0x4cc1f6=Date['now'](),_0x1cd94b;const _0x1e2967={};_0x546bb9[_0xb9f687(0x1c4)](_0x4c2d2f=>{const _0x27116b=_0xb9f687;if(_0x4f1f33['jzxXo'](_0x4c2d2f,URL)){const _0x265989={};_0x265989[_0x27116b(0x1b3)]=_0x4c2d2f,Object[_0x27116b(0x1b9)](_0x1e2967,_0x265989);}else _0x4f1f33[_0x27116b(0x1ab)](typeof _0x4c2d2f,_0x4f1f33['oQlNj'])&&Object['assign'](_0x1e2967,_0x4c2d2f);});const _0x251f29=_0x3163df=>{const _0x3b5de0=_0xb9f687,_0x1b95a1={};_0x1b95a1[_0x3b5de0(0x19d)]=_0x1e2967[_0x3b5de0(0x19d)]||_0x1e2967[_0x3b5de0(0x1ac)]||_0x1e2967[_0x3b5de0(0x1b3)]&&(_0x1e2967[_0x3b5de0(0x1b3)][_0x3b5de0(0x19d)]||_0x1e2967[_0x3b5de0(0x1b3)][_0x3b5de0(0x1ac)]),_0x1b95a1['path']=_0x1e2967[_0x3b5de0(0x1bc)]||_0x1e2967['url']&&_0x1e2967[_0x3b5de0(0x1b3)][_0x3b5de0(0x1c2)],_0x1b95a1['method']=_0x1e2967[_0x3b5de0(0x1a1)],_0x1b95a1[_0x3b5de0(0x19e)]=_0x1e2967['headers'],_0x219677['tAwvG'](_0x3515e2,_0x3163df,_0x1b95a1);};return _0x40567b[_0xb9f687(0x1bf)](_0x4f1f33[_0xb9f687(0x19c)],_0x4ab8e9=>{const _0x2eb311=_0xb9f687,_0x1f1452=_0x4f1f33['ygtAY'](Date[_0x2eb311(0x1ca)](),_0x4cc1f6),_0x1ace36={};_0x1ace36[_0x2eb311(0x1ac)]=_0x1e2967[_0x2eb311(0x19d)]||_0x1e2967[_0x2eb311(0x1ac)]||_0x1e2967[_0x2eb311(0x1b3)]&&(_0x1e2967['url']['host']||_0x1e2967[_0x2eb311(0x1b3)]['hostname']),_0x1ace36[_0x2eb311(0x1bc)]=_0x1e2967[_0x2eb311(0x1bc)]||_0x1e2967[_0x2eb311(0x1b3)]&&_0x1e2967[_0x2eb311(0x1b3)][_0x2eb311(0x1c2)],_0x1ace36[_0x2eb311(0x1a1)]=_0x1e2967[_0x2eb311(0x1a1)],_0x1ace36[_0x2eb311(0x19e)]=_0x1e2967[_0x2eb311(0x19e)],_0x1ace36[_0x2eb311(0x1b8)]=_0x4ab8e9[_0x2eb311(0x1a3)],_0x1ace36[_0x2eb311(0x1b4)]=_0x1f1452,_0x4f1f33[_0x2eb311(0x1a4)](_0x3515e2,null,_0x1ace36),_0x1cd94b[_0x2eb311(0x1cc)](_0x4f1f33[_0x2eb311(0x1c8)],_0x251f29);}),_0x40567b['on'](_0x4f1f33[_0xb9f687(0x1c6)],_0x540ff5=>{const _0x827440=_0xb9f687;_0x1cd94b=_0x540ff5,_0x540ff5['once'](_0x219677[_0x827440(0x1ae)],_0x251f29);}),_0x4f1f33[_0xb9f687(0x1a0)](monkeypatch,_0x40567b,_0x4f1f33[_0xb9f687(0x1b1)],(_0x28394c,..._0x101605)=>{const _0x34fda0=_0xb9f687;_0x4cc1f6=Date['now'](),_0x219677[_0x34fda0(0x1be)](_0x28394c,..._0x101605);}),_0x40567b;};_0x4f1f33[_0x20e7ba(0x1b0)](monkeypatch,http,_0x4f1f33[_0x20e7ba(0x19a)],_0xe7fa0d),_0x4f1f33[_0x20e7ba(0x1b0)](monkeypatch,https,_0x4f1f33['CBWKW'],_0xe7fa0d);}function restore(){const _0x5b6199=a123_0x33e9a0;http[_0x5b6199(0x199)][_0x5b6199(0x1b5)](),https['request'][_0x5b6199(0x1b5)]();}const a123_0x386264={};a123_0x386264['spy']=spy,a123_0x386264[a123_0x33e9a0(0x1cb)]=restore,module[a123_0x33e9a0(0x1bd)]=a123_0x386264;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a124_0x5d495a=a124_0x32a5;function a124_0x32a5(_0x3dba41,_0x1a0277){const _0x33e36a=a124_0x33e3();return a124_0x32a5=function(_0x32a508,_0x388f6b){_0x32a508=_0x32a508-0xcb;let _0x5ce35b=_0x33e36a[_0x32a508];return _0x5ce35b;},a124_0x32a5(_0x3dba41,_0x1a0277);}(function(_0x57bc50,_0x22a1c5){const _0x59e331=a124_0x32a5,_0x53602b=_0x57bc50();while(!![]){try{const _0x18fc04=parseInt(_0x59e331(0xd2))/0x1+parseInt(_0x59e331(0xe2))/0x2+parseInt(_0x59e331(0xdb))/0x3+-parseInt(_0x59e331(0xe3))/0x4+parseInt(_0x59e331(0xd8))/0x5+parseInt(_0x59e331(0xe6))/0x6*(parseInt(_0x59e331(0xda))/0x7)+-parseInt(_0x59e331(0xdd))/0x8;if(_0x18fc04===_0x22a1c5)break;else _0x53602b['push'](_0x53602b['shift']());}catch(_0x148d78){_0x53602b['push'](_0x53602b['shift']());}}}(a124_0x33e3,0xb3163));function a124_0x33e3(){const _0x3b3cb1=['exports','protocol','https:','agent','globalAgent','soqkp','1134888eWUxvY','Agent','prototype','keepAlive','call','measureWrapper','4843445koIKTV','YYLgW','6748qDWkvU','3937740Trzmuv','request','31578968sWiNZJ','iCCeA','https','keepAliveMsecs','http','1815714TUXzrl','4290864JJSZZr','hasOwnProperty','AREAR','8898AqYZIx','KEEP_ALIVE','ChPpR','./performance/performance-tester','QFBDA'];a124_0x33e3=function(){return _0x3b3cb1;};return a124_0x33e3();}const PerformanceTester=require(a124_0x5d495a(0xe9)),{AUTOMATE_EVENTS:PerformanceEvents}=require('./performance/constants');module[a124_0x5d495a(0xcc)]=PerformanceTester[a124_0x5d495a(0xd7)](PerformanceEvents[a124_0x5d495a(0xe7)],function(){const _0x483662=a124_0x5d495a,_0x1ca5ff={'QFBDA':function(_0x15fd76,_0x26f66d){return _0x15fd76===_0x26f66d;},'CrALI':_0x483662(0xce),'rqYHa':_0x483662(0xcf),'ChPpR':function(_0x21e661,_0xe748c6,_0x4cd22e){return _0x21e661(_0xe748c6,_0x4cd22e);},'AREAR':function(_0x1604dd,_0x5caaa4){return _0x1604dd(_0x5caaa4);},'YYLgW':_0x483662(0xe1),'soqkp':function(_0x29256f,_0x10420d){return _0x29256f(_0x10420d);},'frBxc':_0x483662(0xdf),'hDCqN':function(_0x5415f0,_0x30f5c9){return _0x5415f0*_0x30f5c9;},'iCCeA':_0x483662(0xd5)},_0x46849d=_0x1ca5ff[_0x483662(0xe5)](require,_0x1ca5ff[_0x483662(0xd9)]),_0x300e12=_0x1ca5ff[_0x483662(0xd1)](require,_0x1ca5ff['frBxc']),_0x21028e=_0x1ca5ff['hDCqN'](0x1e,0x3e8);if(_0x46849d['globalAgent']&&Object[_0x483662(0xd4)][_0x483662(0xe4)][_0x483662(0xd6)](_0x46849d[_0x483662(0xd0)],_0x1ca5ff[_0x483662(0xde)]))_0x46849d['globalAgent']['keepAlive']=!![],_0x300e12[_0x483662(0xd0)][_0x483662(0xd5)]=!![],_0x46849d[_0x483662(0xd0)][_0x483662(0xe0)]=_0x21028e,_0x300e12[_0x483662(0xd0)][_0x483662(0xe0)]=_0x21028e;else{const _0x300a66={};_0x300a66[_0x483662(0xd5)]=!![],_0x300a66[_0x483662(0xe0)]=_0x21028e;const _0x57134d=new _0x46849d[(_0x483662(0xd3))](_0x300a66),_0x26e71b={};_0x26e71b['keepAlive']=!![],_0x26e71b[_0x483662(0xe0)]=_0x21028e;const _0x5b5afe=new _0x300e12[(_0x483662(0xd3))](_0x26e71b),_0x2a9831=_0x46849d['request'],_0x5e551b=_0x300e12[_0x483662(0xdc)];_0x46849d[_0x483662(0xdc)]=function(_0x38cf99,_0x28f1f0){const _0x2e0d99=_0x483662;if(_0x1ca5ff[_0x2e0d99(0xcb)](_0x38cf99[_0x2e0d99(0xcd)],_0x1ca5ff['CrALI']))return _0x38cf99[_0x1ca5ff['rqYHa']]=_0x5b5afe,_0x1ca5ff[_0x2e0d99(0xe8)](_0x5e551b,_0x38cf99,_0x28f1f0);return _0x38cf99[_0x1ca5ff['rqYHa']]=_0x57134d,_0x1ca5ff[_0x2e0d99(0xe8)](_0x2a9831,_0x38cf99,_0x28f1f0);};}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a125_0xc04f31=a125_0x268a;(function(_0x5546e0,_0x495671){const _0x4e5c65=a125_0x268a,_0x41d184=_0x5546e0();while(!![]){try{const _0x5378ee=-parseInt(_0x4e5c65(0x1f4))/0x1*(parseInt(_0x4e5c65(0x1e0))/0x2)+parseInt(_0x4e5c65(0x1f6))/0x3+parseInt(_0x4e5c65(0x1e4))/0x4+parseInt(_0x4e5c65(0x1f5))/0x5*(parseInt(_0x4e5c65(0x1d8))/0x6)+parseInt(_0x4e5c65(0x1f1))/0x7+-parseInt(_0x4e5c65(0x1e1))/0x8+parseInt(_0x4e5c65(0x1ed))/0x9*(parseInt(_0x4e5c65(0x1ee))/0xa);if(_0x5378ee===_0x495671)break;else _0x41d184['push'](_0x41d184['shift']());}catch(_0x20b195){_0x41d184['push'](_0x41d184['shift']());}}}(a125_0x35ef,0xd64e6));function a125_0x268a(_0x414640,_0x3fbe58){const _0x35efcf=a125_0x35ef();return a125_0x268a=function(_0x268acd,_0x35ea45){_0x268acd=_0x268acd-0x1d4;let _0x13b61c=_0x35efcf[_0x268acd];return _0x13b61c;},a125_0x268a(_0x414640,_0x3fbe58);}function a125_0x35ef(){const _0x3b6d12=['CODECEPT','toLowerCase','api/v1/batch','https://collector-observability.browserstack.com','exports','preprod','138573AByvGW','10sCAUnv','https://upload-observability-preprod.bsstag.com','API_URL','353213DZpQmU','api/v1/event','api/v1/screenshots','486659fFBSvl','275ArKgnX','1962204TyCkXH','pre-prod','BROWSERSTACK_ENV','https://upload-observability.browserstack.com','https://upload-observability-devtestops-ssi.bsstag.com','assign','../logger','join','.obs_test_details','105276YvoQMD','staging','codeceptjs-cucumber','CUCUMBER','upload-attachments','https://collector-observability-preprod.bsstag.com','Playwright','MOCHA','2mMFkGY','6968272sFqOks','https://collector-observability-devtestops.bsstag.com','mocha','2202148wPNxzz','jest','OBSERVABILITY_UPLOAD_API_URL'];a125_0x35ef=function(){return _0x3b6d12;};return a125_0x35ef();}const path=require('path'),{logDir}=require(a125_0xc04f31(0x1d5)),a125_0x3c133e={};a125_0x3c133e['PLAYWRIGHT']=a125_0xc04f31(0x1de),a125_0x3c133e[a125_0xc04f31(0x1df)]=a125_0xc04f31(0x1e3),a125_0x3c133e[a125_0xc04f31(0x1e7)]='codeceptjs',a125_0x3c133e['CODECEPT_CUCUMBER']=a125_0xc04f31(0x1da),a125_0x3c133e['JEST']=a125_0xc04f31(0x1e5),a125_0x3c133e[a125_0xc04f31(0x1db)]='cucumber',module['exports']={'consoleHolder':Object[a125_0xc04f31(0x1d4)]({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':a125_0xc04f31(0x1ea),'OBSERVABILITY_UPLOAD_API_URL':a125_0xc04f31(0x1f9),'EVENT_ENDPOINT':a125_0xc04f31(0x1f2),'BATCH_ENDPOINT':a125_0xc04f31(0x1e9),'SCREENSHOT_ENDPOINT':a125_0xc04f31(0x1f3),'UPLOAD_ATTACHMENT_ENDPOINT':a125_0xc04f31(0x1dc),'DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS':0xea60,'MAX_ALLOWED_PLAYWRIGHT_TRACE_SIZE':0x64*0x400*0x400,'DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS':0x64,'DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS':0x1f4,'TEMP_STORE_DIR_NAME':path[a125_0xc04f31(0x1d6)](logDir,a125_0xc04f31(0x1d7)),'FRAMEWORKS':a125_0x3c133e};const _env=(process['env'][a125_0xc04f31(0x1f8)]||'prod')[a125_0xc04f31(0x1e8)]();if(_env===a125_0xc04f31(0x1d9)||_env==='stag')module[a125_0xc04f31(0x1eb)][a125_0xc04f31(0x1f0)]=a125_0xc04f31(0x1e2),module[a125_0xc04f31(0x1eb)][a125_0xc04f31(0x1e6)]=a125_0xc04f31(0x1fa);else(_env===a125_0xc04f31(0x1ec)||_env===a125_0xc04f31(0x1f7))&&(module[a125_0xc04f31(0x1eb)]['API_URL']=a125_0xc04f31(0x1dd),module[a125_0xc04f31(0x1eb)][a125_0xc04f31(0x1e6)]=a125_0xc04f31(0x1ef));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a124_0x263a(){const _0x4290ac=['getConfig','CrashReporter','Started\x20::\x20','VksDl','CREDENTIALS_FOR_CRASH_REPORTING','X-BSTACK-TESTOPS','.\x20Error\x20-\x20','223584dyJRhN','BROWSERSTACK_O11Y_PERF_MEASUREMENT','BS_TESTOPS_BUILD_HASHED_ID','zmBCD','SITHM','iesSo','catch','UXFle','ivAvc','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20','format','bNsTt','NStYU','accessKey','[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','mfhsJ','auth','constructor','frameworkDetails','ZmLnj','prototype',',\x20PID\x20-\x20','BnlDv','length','call','env','ostyF','vXxYO','cKHOp','dOpNh','stringify','setAllDetails','name','exports','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS','OfMWe',',\x20Argument\x20-\x20','getFramework','dCzmx','kmdke','parse','defineProperty','filterPII','28ssASmK','OfNHh','2348286yCaKkz','frameworkName','IelCj','getOwnPropertyNames','keys','6978968IIFNVq','application/json','../performance/performance-tester','stack','\x20--\x20','setCredentials','key','pid','iPqNY','rTSBD','setConfigDetails','o11yClassErrorHandler','headers','Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20','USER_CONFIG_FOR_REPORTING','user','timerify','username','credentials','AkSVF','recursivelyDeletePIIKeysFromObject','getPerformance','3lWODMl','depth','UULRI','password','frameworkVersion','apply','Finished\x20::\x20','userConfig','/api/v1/analytics','dWCcg','5018172xxilRy','zWwsm','forEach','setFrameworkDetails','.\x20Args\x20-\x20','util','object','30431331KRoCzf','TRfag','wjuod','1276206MCVrdw','o11yErrorHandler','1851460BqiAUV','toLowerCase','MRXNQ','toString','jbUrd','true','uploadCrashReport','Content-Type','includes','[Crash_Report_Upload]\x20Failed\x20due\x20to\x20','function','getCredentials','then','inspect','Error\x20in\x20executing\x20'];a124_0x263a=function(){return _0x4290ac;};return a124_0x263a();}const a124_0x55297e=a124_0x3a7b;(function(_0x291294,_0xb6985c){const _0x29038c=a124_0x3a7b,_0x110dad=_0x291294();while(!![]){try{const _0xedeb66=-parseInt(_0x29038c(0x247))/0x1+-parseInt(_0x29038c(0x218))/0x2+parseInt(_0x29038c(0x233))/0x3*(-parseInt(_0x29038c(0x23d))/0x4)+parseInt(_0x29038c(0x249))/0x5+parseInt(_0x29038c(0x1eb))/0x6*(-parseInt(_0x29038c(0x216))/0x7)+parseInt(_0x29038c(0x21d))/0x8+parseInt(_0x29038c(0x244))/0x9;if(_0xedeb66===_0xb6985c)break;else _0x110dad['push'](_0x110dad['shift']());}catch(_0x48c9e4){_0x110dad['push'](_0x110dad['shift']());}}}(a124_0x263a,0xbbfb6));const util=require(a124_0x55297e(0x242)),PerformanceTester=require(a124_0x55297e(0x21f)),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require('./utils'),{getAgentVersion,nestedKeyValue}=require('../helper'),o11yErrorHandler=(_0x57df72,_0x25828e='',_0x1b9fa7=[''],_0x289ffa=![])=>{const _0x2b8f86={'iPqNY':function(_0x4b19df,_0x23a8a8){return _0x4b19df(_0x23a8a8);},'jbUrd':function(_0x41159b,_0x255d1a,_0x36e321){return _0x41159b(_0x255d1a,_0x36e321);},'wjuod':function(_0x3cf9c3,_0x10745d){return _0x3cf9c3(_0x10745d);},'IelCj':function(_0x117ce3,_0x52a37b,_0x654a4c){return _0x117ce3(_0x52a37b,_0x654a4c);},'mfhsJ':function(_0x5a89bb,_0x5c0f65){return _0x5a89bb instanceof _0x5c0f65;},'zWwsm':function(_0x2ac26d,_0x370b32,_0x28b2f0,_0x2204a1,_0x1a91cd){return _0x2ac26d(_0x370b32,_0x28b2f0,_0x2204a1,_0x1a91cd);}};return function(..._0x3e5247){const _0x5bc1f7=a124_0x3a7b;try{let _0x376b65=_0x57df72;process['env'][_0x5bc1f7(0x1ec)]&&(_0x376b65=PerformanceTester[_0x5bc1f7(0x232)]()[_0x5bc1f7(0x22d)](_0x376b65));_0x289ffa&&_0x2b8f86[_0x5bc1f7(0x225)](trace,_0x5bc1f7(0x1e6)+_0x25828e+_0x5bc1f7(0x200)+process[_0x5bc1f7(0x224)]+_0x5bc1f7(0x20f)+_0x2b8f86[_0x5bc1f7(0x24d)](nestedKeyValue,arguments[0x0],_0x1b9fa7));const _0x4efff2=_0x376b65[_0x5bc1f7(0x238)](null,arguments);_0x289ffa&&_0x2b8f86[_0x5bc1f7(0x246)](trace,_0x5bc1f7(0x239)+_0x25828e+',\x20PID\x20-\x20'+process[_0x5bc1f7(0x224)]+_0x5bc1f7(0x20f)+_0x2b8f86[_0x5bc1f7(0x21a)](nestedKeyValue,arguments[0x0],_0x1b9fa7));if(_0x2b8f86[_0x5bc1f7(0x1fa)](_0x4efff2,Promise))return _0x4efff2['catch'](_0x41a6d4=>processError(_0x41a6d4,_0x57df72,_0x3e5247,_0x25828e));return _0x4efff2;}catch(_0x118d16){_0x2b8f86[_0x5bc1f7(0x23e)](processError,_0x118d16,_0x57df72,_0x3e5247,_0x25828e);}};},o11yClassErrorHandler=(_0x481fde,_0x44f4b2,_0x39fdd4='')=>{const _0x243168=a124_0x55297e,_0x365b02={'dWCcg':function(_0x4508bf,_0x583fef){return _0x4508bf instanceof _0x583fef;},'ivAvc':function(_0x25cb1c,_0x37c3ba,_0x528306,_0x15095e,_0x2da3a3){return _0x25cb1c(_0x37c3ba,_0x528306,_0x15095e,_0x2da3a3);},'zmBCD':function(_0x3a7062,_0xe5a42){return _0x3a7062===_0xe5a42;},'bNsTt':_0x243168(0x1df),'pgNaa':function(_0x42181b,_0x4cf48e){return _0x42181b!==_0x4cf48e;},'RJsei':_0x243168(0x1fc),'AkSVF':function(_0xf5b0b,_0xe371da){return _0xf5b0b<_0xe371da;}},_0x1fffe3=_0x481fde[_0x243168(0x1ff)];if(_0x365b02[_0x243168(0x230)](Object[_0x243168(0x21b)](_0x1fffe3)[_0x243168(0x202)],0x2))return _0x481fde;return Object[_0x243168(0x21b)](_0x1fffe3)[_0x243168(0x23f)](_0x4f69c9=>{const _0x229a31=_0x243168,_0x11c53e={'VksDl':function(_0x26f3bb,_0x32b6b6){const _0x3b1d87=a124_0x3a7b;return _0x365b02[_0x3b1d87(0x23c)](_0x26f3bb,_0x32b6b6);},'xnkUb':function(_0x55a04d,_0x1242e2,_0xc8f657,_0x46226d,_0x81e983){const _0x4c5467=a124_0x3a7b;return _0x365b02[_0x4c5467(0x1f3)](_0x55a04d,_0x1242e2,_0xc8f657,_0x46226d,_0x81e983);}};if(!(_0x44f4b2&&_0x44f4b2[_0x229a31(0x1dd)](_0x4f69c9)))return;const _0x9b92ed=_0x1fffe3[_0x4f69c9];_0x365b02[_0x229a31(0x1ee)](typeof _0x9b92ed,_0x365b02[_0x229a31(0x1f6)])&&_0x365b02['pgNaa'](_0x4f69c9,_0x365b02['RJsei'])&&Object[_0x229a31(0x214)](_0x1fffe3,_0x4f69c9,{'writable':!![],'value':function(..._0x1bfc51){const _0x16f460=_0x229a31;try{const _0x3bd0ca=(process[_0x16f460(0x204)]['BROWSERSTACK_O11Y_PERF_MEASUREMENT']?PerformanceTester[_0x16f460(0x232)]()[_0x16f460(0x22d)](_0x9b92ed):_0x9b92ed)[_0x16f460(0x203)](this,..._0x1bfc51);if(_0x11c53e[_0x16f460(0x1e7)](_0x3bd0ca,Promise))return _0x3bd0ca['catch'](_0x56ddf2=>processError(_0x56ddf2,_0x9b92ed,_0x1bfc51,_0x39fdd4));return _0x3bd0ca;}catch(_0x38fb27){_0x11c53e['xnkUb'](processError,_0x38fb27,_0x9b92ed,_0x1bfc51,_0x39fdd4);}}});}),_0x481fde;};function a124_0x3a7b(_0xeaeab,_0x124276){const _0x263a6c=a124_0x263a();return a124_0x3a7b=function(_0x3a7bb7,_0x551422){_0x3a7bb7=_0x3a7bb7-0x1db;let _0xef0ba4=_0x263a6c[_0x3a7bb7];return _0xef0ba4;},a124_0x3a7b(_0xeaeab,_0x124276);}function processError(_0xf5bc0c,_0x24b5e9,_0x1cbbf0,_0x37293f){const _0x3fae0f=a124_0x55297e,_0x30c44b={'sUhws':function(_0x187dcd,_0x421ab3){return _0x187dcd(_0x421ab3);}};_0x30c44b['sUhws'](debug,_0x3fae0f(0x1e3)+_0x24b5e9[_0x3fae0f(0x20b)]+_0x3fae0f(0x221)+_0x37293f+_0x3fae0f(0x1ea)+util[_0x3fae0f(0x1f5)](_0xf5bc0c)+_0x3fae0f(0x241)+_0x1cbbf0+'.'),PerformanceTester['captureError'](_0xf5bc0c);let _0x39a9db;try{_0x39a9db=JSON[_0x3fae0f(0x209)](_0x1cbbf0);}catch(_0x49be48){const _0x3eec57={};_0x3eec57[_0x3fae0f(0x234)]=0x2,_0x39a9db=util[_0x3fae0f(0x1e2)](_0x1cbbf0,_0x3eec57);}CrashReporter[_0x3fae0f(0x1db)](_0x3fae0f(0x1e3)+_0x24b5e9[_0x3fae0f(0x20b)]+'\x20--\x20'+_0x37293f+_0x3fae0f(0x1ea)+_0xf5bc0c+_0x3fae0f(0x241)+_0x39a9db+'.',_0xf5bc0c&&_0xf5bc0c[_0x3fae0f(0x220)]);}class CrashReporter{static ['userConfig']={};static [a124_0x55297e(0x22f)];static [a124_0x55297e(0x1fd)]={};static['initialize'](_0x5a8584,_0x1c2bdb,_0x1427f6=null){const _0x2f8390=a124_0x55297e,_0x4ae5f8={'NStYU':function(_0x215ab9,_0x54bd5f){return _0x215ab9(_0x54bd5f);},'dCzmx':function(_0xe02228,_0x40deab){return _0xe02228(_0x40deab);},'ZmLnj':function(_0x4ed98e,_0x1ae819){return _0x4ed98e(_0x1ae819);}},_0x2489c5=_0x5a8584[_0x2f8390(0x219)],_0x52b688=_0x5a8584[_0x2f8390(0x237)];!_0x1427f6&&(_0x1427f6=_0x4ae5f8[_0x2f8390(0x1f7)](getBrowserStackConfig,_0x2489c5));!_0x52b688&&_0x4ae5f8[_0x2f8390(0x211)](getFrameworkVersion,_0x2489c5);const _0x3b3ed9={};_0x3b3ed9[_0x2f8390(0x219)]=_0x2489c5,_0x3b3ed9[_0x2f8390(0x237)]=_0x52b688,this[_0x2f8390(0x20a)](_0x3b3ed9,_0x1c2bdb,_0x4ae5f8[_0x2f8390(0x1fe)](getUserCredentials,_0x1427f6));}static['setCredentials'](_0xe6b84c,_0x1fec55){const _0x5baa00=a124_0x55297e,_0x3c91de={};_0x3c91de[_0x5baa00(0x22e)]=_0xe6b84c,_0x3c91de[_0x5baa00(0x1f8)]=_0x1fec55,this[_0x5baa00(0x22f)]=_0x3c91de,process[_0x5baa00(0x204)][_0x5baa00(0x1e8)]=JSON[_0x5baa00(0x209)](this[_0x5baa00(0x22f)]);}static[a124_0x55297e(0x1e0)](){const _0x2bcd94=a124_0x55297e,_0x4f8fa7={'kmdke':function(_0x26d217,_0x591d63){return _0x26d217(_0x591d63);}};if(!this[_0x2bcd94(0x22f)]&&process[_0x2bcd94(0x204)]['CREDENTIALS_FOR_CRASH_REPORTING'])try{this[_0x2bcd94(0x22f)]=JSON[_0x2bcd94(0x213)](process['env'][_0x2bcd94(0x1e8)]);}catch(_0x3cf02b){_0x4f8fa7[_0x2bcd94(0x212)](debug,_0x2bcd94(0x1f4)+_0x3cf02b['toString']());}return this[_0x2bcd94(0x22f)];}static[a124_0x55297e(0x227)](_0x195b73){const _0x1885e0=a124_0x55297e;this['userConfig']=this['filterPII'](_0x195b73),process[_0x1885e0(0x204)][_0x1885e0(0x22b)]=JSON['stringify'](this[_0x1885e0(0x23a)]);}static[a124_0x55297e(0x1e4)](){const _0x3cb80f=a124_0x55297e,_0x144299={'IFcRv':function(_0x143835,_0x2f74f3){return _0x143835===_0x2f74f3;},'hphNB':function(_0x584b23,_0x440c6a){return _0x584b23(_0x440c6a);}};if(_0x144299['IFcRv'](Object[_0x3cb80f(0x21c)](this[_0x3cb80f(0x23a)])[_0x3cb80f(0x202)],0x0)&&process['env'][_0x3cb80f(0x22b)])try{this[_0x3cb80f(0x23a)]=JSON[_0x3cb80f(0x213)](process[_0x3cb80f(0x204)]['USER_CONFIG_FOR_REPORTING']);}catch(_0x51f4b6){_0x144299['hphNB'](debug,_0x3cb80f(0x22a)+_0x51f4b6[_0x3cb80f(0x24c)]()),this['userConfig']={};}return this[_0x3cb80f(0x23a)];}static[a124_0x55297e(0x240)](_0x33c4f7){const _0x2aa7c4=a124_0x55297e;this[_0x2aa7c4(0x1fd)]=_0x33c4f7,process[_0x2aa7c4(0x204)][_0x2aa7c4(0x20d)]=JSON['stringify'](this[_0x2aa7c4(0x1fd)]);}static['getFramework'](){const _0x2ae9f7=a124_0x55297e,_0x4c3a91={'OfMWe':function(_0x4227e8,_0x2cd894){return _0x4227e8===_0x2cd894;},'ostyF':function(_0x123615,_0x1d97c2){return _0x123615(_0x1d97c2);}};if(_0x4c3a91[_0x2ae9f7(0x20e)](Object[_0x2ae9f7(0x21c)](this['frameworkDetails'])['length'],0x0)&&process['env'][_0x2ae9f7(0x20d)])try{this[_0x2ae9f7(0x1fd)]=JSON[_0x2ae9f7(0x213)](process[_0x2ae9f7(0x204)][_0x2ae9f7(0x20d)]);}catch(_0x4a3d3a){_0x4c3a91[_0x2ae9f7(0x205)](debug,_0x2ae9f7(0x1f4)+_0x4a3d3a[_0x2ae9f7(0x24c)]());}return this[_0x2ae9f7(0x1fd)];}static['setAllDetails'](_0x1bc888,_0x5d38ce,_0x47d51e){const _0x666ea6=a124_0x55297e;_0x1bc888&&this[_0x666ea6(0x240)](_0x1bc888),_0x5d38ce&&this[_0x666ea6(0x227)](_0x5d38ce),_0x47d51e&&this[_0x666ea6(0x222)](_0x47d51e[_0x666ea6(0x22e)],_0x47d51e[_0x666ea6(0x1f8)]);}static async[a124_0x55297e(0x1db)](_0x4c6b8b,_0x3f0811){const _0x1fc2a8=a124_0x55297e,_0x18b4d7={'iesSo':function(_0x346e67,_0x3d845c){return _0x346e67(_0x3d845c);},'UULRI':function(_0x4e3383,_0x4a8f8c){return _0x4e3383(_0x4a8f8c);},'MRXNQ':function(_0x2614b8,_0x210e35){return _0x2614b8(_0x210e35);},'TRfag':_0x1fc2a8(0x1f9),'vXxYO':function(_0x1c06fe){return _0x1c06fe();},'uhRID':_0x1fc2a8(0x23b),'dOpNh':_0x1fc2a8(0x21e),'eVlek':_0x1fc2a8(0x24e),'JUHmr':function(_0x28a026,_0x2225b2,_0x1d7446,_0xce4e02,_0x5c1797,_0x1eb9bc){return _0x28a026(_0x2225b2,_0x1d7446,_0xce4e02,_0x5c1797,_0x1eb9bc);},'UXFle':'POST'};this[_0x1fc2a8(0x1e0)]();if(!this[_0x1fc2a8(0x22f)])return _0x18b4d7[_0x1fc2a8(0x24b)](debug,_0x18b4d7[_0x1fc2a8(0x245)]);this[_0x1fc2a8(0x1e4)](),this[_0x1fc2a8(0x210)]();const _0x2a5def={'hashed_id':process[_0x1fc2a8(0x204)][_0x1fc2a8(0x1ed)],'observability_version':{'sdkVersion':_0x18b4d7[_0x1fc2a8(0x206)](getAgentVersion),'frameworkName':this[_0x1fc2a8(0x1fd)][_0x1fc2a8(0x219)],'frameworkVersion':this[_0x1fc2a8(0x1fd)][_0x1fc2a8(0x237)]},'exception':{'error':_0x4c6b8b[_0x1fc2a8(0x24c)](),'stackTrace':_0x3f0811},'config':this[_0x1fc2a8(0x23a)]},_0x36e993=_0x18b4d7['uhRID'],_0x1f0a5a={};_0x1f0a5a[_0x1fc2a8(0x22e)]=this['credentials'][_0x1fc2a8(0x22e)],_0x1f0a5a[_0x1fc2a8(0x236)]=this['credentials'][_0x1fc2a8(0x1f8)];const _0x4e6475={};_0x4e6475[_0x1fc2a8(0x1dc)]=_0x18b4d7[_0x1fc2a8(0x208)],_0x4e6475[_0x1fc2a8(0x1e9)]=_0x18b4d7['eVlek'];const _0x53e070={};_0x53e070[_0x1fc2a8(0x1fb)]=_0x1f0a5a,_0x53e070[_0x1fc2a8(0x229)]=_0x4e6475;const _0x4c656d=_0x53e070;_0x18b4d7['JUHmr'](nodeRequest,_0x18b4d7[_0x1fc2a8(0x1f2)],_0x36e993,_0x2a5def,_0x4c656d,![])[_0x1fc2a8(0x1e1)](_0x5bebec=>{const _0x374a7c=_0x1fc2a8;_0x18b4d7[_0x374a7c(0x1f0)](debug,'[Crash_Report_Upload]\x20Success\x20response:\x20'+JSON[_0x374a7c(0x209)](_0x5bebec));})[_0x1fc2a8(0x1f1)](_0x4e6162=>{const _0x2ad71a=_0x1fc2a8;_0x18b4d7[_0x2ad71a(0x235)](debug,_0x2ad71a(0x1de)+util[_0x2ad71a(0x1f5)](_0x4e6162));});}static[a124_0x55297e(0x231)](_0x52e9c0){const _0xc70fa1=a124_0x55297e,_0x4c7e14={};_0x4c7e14[_0xc70fa1(0x207)]=_0xc70fa1(0x22c),_0x4c7e14['rTSBD']=_0xc70fa1(0x22e),_0x4c7e14[_0xc70fa1(0x1ef)]=_0xc70fa1(0x223),_0x4c7e14[_0xc70fa1(0x201)]=_0xc70fa1(0x1f8),_0x4c7e14['YNOng']=_0xc70fa1(0x236),_0x4c7e14['OfNHh']=function(_0x4bf677,_0x20b3e6){return _0x4bf677===_0x20b3e6;},_0x4c7e14['WVDLA']=_0xc70fa1(0x243);const _0x1a495f=_0x4c7e14;if(!_0x52e9c0)return;const _0x135d5f=[_0x1a495f[_0xc70fa1(0x207)],_0x1a495f[_0xc70fa1(0x226)],_0x1a495f[_0xc70fa1(0x1ef)],_0x1a495f[_0xc70fa1(0x201)],_0x1a495f['YNOng']];for(const _0x5a70bf in _0x52e9c0){if(_0x135d5f[_0xc70fa1(0x1dd)](_0x5a70bf[_0xc70fa1(0x24a)]()))delete _0x52e9c0[_0x5a70bf];else _0x1a495f[_0xc70fa1(0x217)](typeof _0x52e9c0[_0x5a70bf],_0x1a495f['WVDLA'])&&this[_0xc70fa1(0x231)](_0x52e9c0[_0x5a70bf]);}}static[a124_0x55297e(0x215)](_0x299807){const _0x602ba4=a124_0x55297e,_0xdeffa5=JSON[_0x602ba4(0x213)](JSON['stringify'](_0x299807));return this[_0x602ba4(0x231)](_0xdeffa5),_0xdeffa5;}}const a124_0x3af12b={};a124_0x3af12b[a124_0x55297e(0x248)]=o11yErrorHandler,a124_0x3af12b[a124_0x55297e(0x228)]=o11yClassErrorHandler,a124_0x3af12b[a124_0x55297e(0x1e5)]=CrashReporter,module[a124_0x55297e(0x20c)]=a124_0x3af12b;
|
|
1
|
+
const a126_0x1a2de6=a126_0xb01e;(function(_0x27fe02,_0x374a78){const _0x449eeb=a126_0xb01e,_0x5245a3=_0x27fe02();while(!![]){try{const _0xf6c323=parseInt(_0x449eeb(0x122))/0x1+-parseInt(_0x449eeb(0x11a))/0x2+-parseInt(_0x449eeb(0xde))/0x3+parseInt(_0x449eeb(0xd0))/0x4+-parseInt(_0x449eeb(0x12a))/0x5+-parseInt(_0x449eeb(0xe6))/0x6+parseInt(_0x449eeb(0x11c))/0x7;if(_0xf6c323===_0x374a78)break;else _0x5245a3['push'](_0x5245a3['shift']());}catch(_0x277c8f){_0x5245a3['push'](_0x5245a3['shift']());}}}(a126_0x254a,0xae452));function a126_0x254a(){const _0x12649a=['mzPTc','accessKey','key','jUELA','setConfigDetails','pid','o11yErrorHandler','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS','GERCW','wGvUJ','password','[Crash_Report_Upload]\x20Success\x20response:\x20','BROWSERSTACK_O11Y_PERF_MEASUREMENT','../performance/performance-tester','application/json','initialize','getCredentials','DNtOh','[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','CacWr','timerify',',\x20PID\x20-\x20','/api/v1/analytics','aMDWm','getOwnPropertyNames','1873492sTDJfz','getConfig','17468969rxjTIk','uploadCrashReport','recursivelyDeletePIIKeysFromObject','length','depth','constructor','366079rBvSgX','catch','parse','USER_CONFIG_FOR_REPORTING','kYdjo','function','Error\x20in\x20executing\x20','X-BSTACK-TESTOPS','3870855rrSDjQ','yeRtW','keys','BS_TESTOPS_BUILD_HASHED_ID','fEyaH','Ixzpe','lGMdr','Pmbeo',',\x20Argument\x20-\x20','OXIxe','.\x20Error\x20-\x20','jcNkr','JNUJI','setCredentials','QrYGy','3144048wUWAId','./utils','Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20','captureError','.\x20Args\x20-\x20','then','frameworkName','forEach','user','dsFMt','\x20--\x20','setFrameworkDetails','LjqtQ','bOUcl','1874676pUeByO','o11yClassErrorHandler','kGqgR','includes','IhRgf','toString','Mwklh','CREDENTIALS_FOR_CRASH_REPORTING','3588234gjjFNr','env','userConfig','frameworkDetails','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20','call','format','Content-Type','stringify','auth','credentials','tMxjO','gWlJS','setAllDetails','frameworkVersion','stack','exports','arbaP','defineProperty','username','../helper','iXfxn','getPerformance','POST','name','util','gbPcD'];a126_0x254a=function(){return _0x12649a;};return a126_0x254a();}const util=require(a126_0x1a2de6(0xff)),PerformanceTester=require(a126_0x1a2de6(0x10e)),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require(a126_0x1a2de6(0xd1)),{getAgentVersion,nestedKeyValue}=require(a126_0x1a2de6(0xfa)),o11yErrorHandler=(_0x2669aa,_0x33ab5a='',_0x5488db=[''],_0x4ee322=![])=>{const _0x1862d2={'Mwklh':function(_0x1bd969,_0x185787){return _0x1bd969(_0x185787);},'mzPTc':function(_0x341242,_0x3fcd77,_0xe0b14){return _0x341242(_0x3fcd77,_0xe0b14);},'fEyaH':function(_0x49e9d6,_0x3f5bf5){return _0x49e9d6(_0x3f5bf5);},'ffHFP':function(_0x58c982,_0x44662f,_0x33c524){return _0x58c982(_0x44662f,_0x33c524);},'uSdPK':function(_0x471bb5,_0x2e4f3f){return _0x471bb5 instanceof _0x2e4f3f;},'dsFMt':function(_0x16d66c,_0x1c185e,_0x220250,_0x36a689,_0x110664){return _0x16d66c(_0x1c185e,_0x220250,_0x36a689,_0x110664);}};return function(..._0x15456c){const _0x2f3d86=a126_0xb01e;try{let _0x1c624f=_0x2669aa;process[_0x2f3d86(0xe7)][_0x2f3d86(0x10d)]&&(_0x1c624f=PerformanceTester[_0x2f3d86(0xfc)]()[_0x2f3d86(0x115)](_0x1c624f));_0x4ee322&&_0x1862d2[_0x2f3d86(0xe4)](trace,'Started\x20::\x20'+_0x33ab5a+_0x2f3d86(0x116)+process[_0x2f3d86(0x106)]+',\x20Argument\x20-\x20'+_0x1862d2[_0x2f3d86(0x101)](nestedKeyValue,arguments[0x0],_0x5488db));const _0xc71711=_0x1c624f['apply'](null,arguments);_0x4ee322&&_0x1862d2[_0x2f3d86(0x12e)](trace,'Finished\x20::\x20'+_0x33ab5a+_0x2f3d86(0x116)+process[_0x2f3d86(0x106)]+_0x2f3d86(0x132)+_0x1862d2['ffHFP'](nestedKeyValue,arguments[0x0],_0x5488db));if(_0x1862d2['uSdPK'](_0xc71711,Promise))return _0xc71711[_0x2f3d86(0x123)](_0x2f97f1=>processError(_0x2f97f1,_0x2669aa,_0x15456c,_0x33ab5a));return _0xc71711;}catch(_0x208de5){_0x1862d2[_0x2f3d86(0xd9)](processError,_0x208de5,_0x2669aa,_0x15456c,_0x33ab5a);}};},o11yClassErrorHandler=(_0x1368f4,_0x10dfa3,_0x3fce22='')=>{const _0x47de20=a126_0x1a2de6,_0x86541b={'DHGbD':function(_0x28fd26,_0x537dd4){return _0x28fd26 instanceof _0x537dd4;},'jUELA':function(_0x53de4c,_0x21ab14,_0x412d5e,_0x467f38,_0x254494){return _0x53de4c(_0x21ab14,_0x412d5e,_0x467f38,_0x254494);},'OXIxe':function(_0x483127,_0x2f26c0){return _0x483127===_0x2f26c0;},'SLeCE':_0x47de20(0x127),'IhRgf':function(_0x606711,_0x5ebc72){return _0x606711!==_0x5ebc72;},'mFnqM':_0x47de20(0x121),'vOyCc':function(_0x46eae7,_0x12edd4){return _0x46eae7<_0x12edd4;}},_0x3f6829=_0x1368f4['prototype'];if(_0x86541b['vOyCc'](Object[_0x47de20(0x119)](_0x3f6829)[_0x47de20(0x11f)],0x2))return _0x1368f4;return Object[_0x47de20(0x119)](_0x3f6829)[_0x47de20(0xd7)](_0x3f63fd=>{const _0x20a1a5=_0x47de20;if(!(_0x10dfa3&&_0x10dfa3[_0x20a1a5(0xe1)](_0x3f63fd)))return;const _0x42169b=_0x3f6829[_0x3f63fd];_0x86541b[_0x20a1a5(0x133)](typeof _0x42169b,_0x86541b['SLeCE'])&&_0x86541b[_0x20a1a5(0xe2)](_0x3f63fd,_0x86541b['mFnqM'])&&Object[_0x20a1a5(0xf8)](_0x3f6829,_0x3f63fd,{'writable':!![],'value':function(..._0x473728){const _0x550c83=_0x20a1a5;try{const _0x1a7de0=(process[_0x550c83(0xe7)]['BROWSERSTACK_O11Y_PERF_MEASUREMENT']?PerformanceTester[_0x550c83(0xfc)]()['timerify'](_0x42169b):_0x42169b)[_0x550c83(0xeb)](this,..._0x473728);if(_0x86541b['DHGbD'](_0x1a7de0,Promise))return _0x1a7de0['catch'](_0x2a22c3=>processError(_0x2a22c3,_0x42169b,_0x473728,_0x3fce22));return _0x1a7de0;}catch(_0x19b9ae){_0x86541b[_0x550c83(0x104)](processError,_0x19b9ae,_0x42169b,_0x473728,_0x3fce22);}}});}),_0x1368f4;};function processError(_0x50a683,_0x783823,_0x2257e2,_0x4dbdbf){const _0x3e3645=a126_0x1a2de6,_0x421220={'tMxjO':function(_0x540a75,_0x5722f9){return _0x540a75(_0x5722f9);}};_0x421220[_0x3e3645(0xf1)](debug,_0x3e3645(0x128)+_0x783823[_0x3e3645(0xfe)]+'\x20--\x20'+_0x4dbdbf+_0x3e3645(0x134)+util[_0x3e3645(0xec)](_0x50a683)+_0x3e3645(0xd4)+_0x2257e2+'.'),PerformanceTester[_0x3e3645(0xd3)](_0x50a683);let _0x3e172b;try{_0x3e172b=JSON[_0x3e3645(0xee)](_0x2257e2);}catch(_0xba210e){const _0x3fcb6f={};_0x3fcb6f[_0x3e3645(0x120)]=0x2,_0x3e172b=util['inspect'](_0x2257e2,_0x3fcb6f);}CrashReporter[_0x3e3645(0x11d)](_0x3e3645(0x128)+_0x783823[_0x3e3645(0xfe)]+_0x3e3645(0xda)+_0x4dbdbf+_0x3e3645(0x134)+_0x50a683+'.\x20Args\x20-\x20'+_0x3e172b+'.',_0x50a683&&_0x50a683[_0x3e3645(0xf5)]);}function a126_0xb01e(_0x46b007,_0xfe3f23){const _0x254a88=a126_0x254a();return a126_0xb01e=function(_0xb01e8,_0xf195d4){_0xb01e8=_0xb01e8-0xd0;let _0x2fe65c=_0x254a88[_0xb01e8];return _0x2fe65c;},a126_0xb01e(_0x46b007,_0xfe3f23);}class CrashReporter{static ['userConfig']={};static [a126_0x1a2de6(0xf0)];static ['frameworkDetails']={};static[a126_0x1a2de6(0x110)](_0x4799ae,_0x50d951,_0x3c584d=null){const _0x3b0f1e=a126_0x1a2de6,_0x34d732={'JNUJI':function(_0x46c526,_0x4067b8){return _0x46c526(_0x4067b8);},'yeRtW':function(_0x33225e,_0x13c54a){return _0x33225e(_0x13c54a);}},_0x227ac5=_0x4799ae[_0x3b0f1e(0xd6)],_0x5f47b8=_0x4799ae['frameworkVersion'];!_0x3c584d&&(_0x3c584d=_0x34d732[_0x3b0f1e(0x136)](getBrowserStackConfig,_0x227ac5));!_0x5f47b8&&_0x34d732['JNUJI'](getFrameworkVersion,_0x227ac5);const _0x577e85={};_0x577e85[_0x3b0f1e(0xd6)]=_0x227ac5,_0x577e85[_0x3b0f1e(0xf4)]=_0x5f47b8,this[_0x3b0f1e(0xf3)](_0x577e85,_0x50d951,_0x34d732[_0x3b0f1e(0x12b)](getUserCredentials,_0x3c584d));}static['setCredentials'](_0x16786a,_0x49c2e6){const _0x36e627=a126_0x1a2de6,_0x43e59c={};_0x43e59c[_0x36e627(0xf9)]=_0x16786a,_0x43e59c[_0x36e627(0x102)]=_0x49c2e6,this[_0x36e627(0xf0)]=_0x43e59c,process[_0x36e627(0xe7)][_0x36e627(0xe5)]=JSON[_0x36e627(0xee)](this[_0x36e627(0xf0)]);}static[a126_0x1a2de6(0x111)](){const _0x5a30ce=a126_0x1a2de6,_0x5dd94={'kYdjo':function(_0x8373d7,_0xe06276){return _0x8373d7(_0xe06276);}};if(!this[_0x5a30ce(0xf0)]&&process['env'][_0x5a30ce(0xe5)])try{this[_0x5a30ce(0xf0)]=JSON[_0x5a30ce(0x124)](process[_0x5a30ce(0xe7)][_0x5a30ce(0xe5)]);}catch(_0x4d80c3){_0x5dd94[_0x5a30ce(0x126)](debug,_0x5a30ce(0xea)+_0x4d80c3['toString']());}return this[_0x5a30ce(0xf0)];}static['setConfigDetails'](_0x54be52){const _0x8e9785=a126_0x1a2de6;this[_0x8e9785(0xe8)]=this['filterPII'](_0x54be52),process[_0x8e9785(0xe7)][_0x8e9785(0x125)]=JSON['stringify'](this[_0x8e9785(0xe8)]);}static[a126_0x1a2de6(0x11b)](){const _0x2cb876=a126_0x1a2de6,_0x5d66ea={'Pmbeo':function(_0x25df98,_0x304efe){return _0x25df98===_0x304efe;},'aUkDu':function(_0x33534b,_0x4024cd){return _0x33534b(_0x4024cd);}};if(_0x5d66ea[_0x2cb876(0x131)](Object['keys'](this['userConfig'])[_0x2cb876(0x11f)],0x0)&&process[_0x2cb876(0xe7)]['USER_CONFIG_FOR_REPORTING'])try{this[_0x2cb876(0xe8)]=JSON[_0x2cb876(0x124)](process[_0x2cb876(0xe7)][_0x2cb876(0x125)]);}catch(_0xf1d583){_0x5d66ea['aUkDu'](debug,_0x2cb876(0xd2)+_0xf1d583['toString']()),this['userConfig']={};}return this['userConfig'];}static[a126_0x1a2de6(0xdb)](_0x5a33f2){const _0x3b358b=a126_0x1a2de6;this[_0x3b358b(0xe9)]=_0x5a33f2,process['env'][_0x3b358b(0x108)]=JSON[_0x3b358b(0xee)](this[_0x3b358b(0xe9)]);}static['getFramework'](){const _0x320acf=a126_0x1a2de6,_0x326cf1={'LjqtQ':function(_0x3921f2,_0x2b665a){return _0x3921f2===_0x2b665a;},'bOUcl':function(_0x44988f,_0x160ce6){return _0x44988f(_0x160ce6);}};if(_0x326cf1[_0x320acf(0xdc)](Object[_0x320acf(0x12c)](this[_0x320acf(0xe9)])[_0x320acf(0x11f)],0x0)&&process[_0x320acf(0xe7)]['BROWSERSTACK_O11Y_FRAMEWORK_DETAILS'])try{this[_0x320acf(0xe9)]=JSON['parse'](process[_0x320acf(0xe7)][_0x320acf(0x108)]);}catch(_0xc23896){_0x326cf1[_0x320acf(0xdd)](debug,_0x320acf(0xea)+_0xc23896['toString']());}return this['frameworkDetails'];}static[a126_0x1a2de6(0xf3)](_0x22873c,_0x5adbc7,_0x4aca8d){const _0x25cd3b=a126_0x1a2de6;_0x22873c&&this[_0x25cd3b(0xdb)](_0x22873c),_0x5adbc7&&this[_0x25cd3b(0x105)](_0x5adbc7),_0x4aca8d&&this[_0x25cd3b(0x137)](_0x4aca8d[_0x25cd3b(0xf9)],_0x4aca8d[_0x25cd3b(0x102)]);}static async['uploadCrashReport'](_0x469387,_0x272e5f){const _0x15e29f=a126_0x1a2de6,_0x49c9be={'arbaP':function(_0x1085ff,_0x2302f3){return _0x1085ff(_0x2302f3);},'GERCW':_0x15e29f(0x113),'aMDWm':function(_0x156355){return _0x156355();},'gWlJS':_0x15e29f(0x117),'jcNkr':_0x15e29f(0x10f),'Ixzpe':'true','wGvUJ':function(_0xa23cf0,_0x7452ca,_0x5299cf,_0x3e30bb,_0x13d958,_0x5d012e){return _0xa23cf0(_0x7452ca,_0x5299cf,_0x3e30bb,_0x13d958,_0x5d012e);},'UewBn':_0x15e29f(0xfd)};this['getCredentials']();if(!this[_0x15e29f(0xf0)])return _0x49c9be[_0x15e29f(0xf7)](debug,_0x49c9be[_0x15e29f(0x109)]);this['getConfig'](),this['getFramework']();const _0x2a55e0={'hashed_id':process[_0x15e29f(0xe7)][_0x15e29f(0x12d)],'observability_version':{'sdkVersion':_0x49c9be[_0x15e29f(0x118)](getAgentVersion),'frameworkName':this[_0x15e29f(0xe9)][_0x15e29f(0xd6)],'frameworkVersion':this['frameworkDetails'][_0x15e29f(0xf4)]},'exception':{'error':_0x469387[_0x15e29f(0xe3)](),'stackTrace':_0x272e5f},'config':this[_0x15e29f(0xe8)]},_0x301528=_0x49c9be[_0x15e29f(0xf2)],_0x146296={};_0x146296[_0x15e29f(0xf9)]=this[_0x15e29f(0xf0)][_0x15e29f(0xf9)],_0x146296[_0x15e29f(0x10b)]=this[_0x15e29f(0xf0)][_0x15e29f(0x102)];const _0x1fa35b={};_0x1fa35b[_0x15e29f(0xed)]=_0x49c9be[_0x15e29f(0x135)],_0x1fa35b[_0x15e29f(0x129)]=_0x49c9be[_0x15e29f(0x12f)];const _0x3e1d4b={};_0x3e1d4b[_0x15e29f(0xef)]=_0x146296,_0x3e1d4b['headers']=_0x1fa35b;const _0x1a8cee=_0x3e1d4b;_0x49c9be[_0x15e29f(0x10a)](nodeRequest,_0x49c9be['UewBn'],_0x301528,_0x2a55e0,_0x1a8cee,![])[_0x15e29f(0xd5)](_0x37eb71=>{const _0x15b122=_0x15e29f;_0x49c9be[_0x15b122(0xf7)](debug,_0x15b122(0x10c)+JSON['stringify'](_0x37eb71));})[_0x15e29f(0x123)](_0x3fb8a5=>{const _0x1dadab=_0x15e29f;_0x49c9be[_0x1dadab(0xf7)](debug,'[Crash_Report_Upload]\x20Failed\x20due\x20to\x20'+util['format'](_0x3fb8a5));});}static[a126_0x1a2de6(0x11e)](_0x3267b5){const _0x259e9f=a126_0x1a2de6,_0x3960f7={};_0x3960f7['iXfxn']=_0x259e9f(0xd8),_0x3960f7[_0x259e9f(0x138)]='username',_0x3960f7['gbPcD']=_0x259e9f(0x103),_0x3960f7[_0x259e9f(0x114)]=_0x259e9f(0x102),_0x3960f7[_0x259e9f(0xe0)]=_0x259e9f(0x10b),_0x3960f7[_0x259e9f(0x112)]=function(_0x11469d,_0x27da29){return _0x11469d===_0x27da29;},_0x3960f7[_0x259e9f(0x130)]='object';const _0x1ce109=_0x3960f7;if(!_0x3267b5)return;const _0x52c421=[_0x1ce109[_0x259e9f(0xfb)],_0x1ce109[_0x259e9f(0x138)],_0x1ce109[_0x259e9f(0x100)],_0x1ce109[_0x259e9f(0x114)],_0x1ce109[_0x259e9f(0xe0)]];for(const _0x3e0334 in _0x3267b5){if(_0x52c421[_0x259e9f(0xe1)](_0x3e0334['toLowerCase']()))delete _0x3267b5[_0x3e0334];else _0x1ce109[_0x259e9f(0x112)](typeof _0x3267b5[_0x3e0334],_0x1ce109['lGMdr'])&&this[_0x259e9f(0x11e)](_0x3267b5[_0x3e0334]);}}static['filterPII'](_0x1d1b22){const _0x2541ca=a126_0x1a2de6,_0x4e0663=JSON[_0x2541ca(0x124)](JSON[_0x2541ca(0xee)](_0x1d1b22));return this[_0x2541ca(0x11e)](_0x4e0663),_0x4e0663;}}const a126_0x43dc25={};a126_0x43dc25[a126_0x1a2de6(0x107)]=o11yErrorHandler,a126_0x43dc25[a126_0x1a2de6(0xdf)]=o11yClassErrorHandler,a126_0x43dc25['CrashReporter']=CrashReporter,module[a126_0x1a2de6(0xf6)]=a126_0x43dc25;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a125_0x32f33c=a125_0x1fe0;(function(_0x59cb6c,_0x3163c4){const _0x406257=a125_0x1fe0,_0x30248c=_0x59cb6c();while(!![]){try{const _0x4b460b=-parseInt(_0x406257(0xc4))/0x1*(-parseInt(_0x406257(0xc8))/0x2)+-parseInt(_0x406257(0x9d))/0x3*(parseInt(_0x406257(0x7d))/0x4)+-parseInt(_0x406257(0x9c))/0x5*(-parseInt(_0x406257(0xc0))/0x6)+-parseInt(_0x406257(0xd4))/0x7+parseInt(_0x406257(0xac))/0x8+-parseInt(_0x406257(0xb8))/0x9+-parseInt(_0x406257(0x81))/0xa*(-parseInt(_0x406257(0xa2))/0xb);if(_0x4b460b===_0x3163c4)break;else _0x30248c['push'](_0x30248c['shift']());}catch(_0x364386){_0x30248c['push'](_0x30248c['shift']());}}}(a125_0x1c10,0xe13d7));function a125_0x1c10(){const _0x50a886=['46122YNBOFE','RqQxw','jBJuS','data','125mQldMU','AUKKl','Exception\x20in\x20logging\x20batch\x20events\x20--\x20','max','13310PDpafR','util','qUwCC','instance','VljPt','Processing\x20batch\x20events\x20for\x20','../../bin/utils/constants','started','CBTSessionCreated','DQWvn','HookRunStarted','response','9079028chkRqn','TestRunFinished','YQlhk','rjCxX','Interval-Queue','Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20','rOqhn','removeEventBatchPolling','proceedWithData','pendingUploads','./constants','jSWPO','Zuhdo','\x20:\x20','iDsBd','.\x20Request\x20Size\x20-\x20','vmrFS','wdgxR','\x20--\x20','nKkmY','vJbtS','HiONu','dBlqA','slice','format','mvBIR','eQvSB','CnCiQ','cJtRL','uuid','status','0|2|6|3|5|1|4','error','logs','32716GblZNr','uploadAttachmentUrl','getInstance','ceZNZ','820eoEypT','DxLog','yxHgJ','hook_run','jHKSq','startEventBatchPolling','ZDiqV','proceedWithUrl','TestRunStarted','Remaining\x20Queue\x20Length\x20-\x20','ntEWz','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','start','IVgDq','REMOVING','uyyBL','TestRunSkipped','Processing\x20events.\x20Queue\x20Length\x20-\x20','XKyLK','message','queue','uploadPending','kind','test_run','utf8','\x20event\x20successful\x20for\x20events\x20','includes','815NezefE','522XdkoeY','add','statusText','Shutdown-Queue','pollEventBatchInterval','342243vzLLfr','batchAndPostEvents','LLYOm','ITYpC','RESETTING','shouldProceed','eventUrl','EXCEPTION\x20IN\x20','nyiMw','\x20REQUEST\x20TO\x20','3941224FDrnDG','resetEventBatchPolling','MjGkb','map','event_type','length','exports','splice','UDcio','screenshotEventUrl','IfJwZ','CjvjU','13374378CSwHWX','tiPFQ','TEST_REPORTING_ANALYTICS','NWCnV','split','BATCH_EVENT_TYPES','HookRunFinished','HFIoO'];a125_0x1c10=function(){return _0x50a886;};return a125_0x1c10();}function a125_0x1fe0(_0x432046,_0x373d00){const _0x1c10fd=a125_0x1c10();return a125_0x1fe0=function(_0x1fe050,_0x28442b){_0x1fe050=_0x1fe050-0x67;let _0xf24710=_0x1c10fd[_0x1fe050];return _0xf24710;},a125_0x1fe0(_0x432046,_0x373d00);}const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require(a125_0x32f33c(0xde)),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require('./utils'),{nestedKeyValue}=require('../helper'),util=require(a125_0x32f33c(0xc9)),constants=require(a125_0x32f33c(0xce));class RequestQueueHandler{static [a125_0x32f33c(0xcb)];[a125_0x32f33c(0xdd)]=0x0;constructor(){const _0xe34d8f=a125_0x32f33c,_0xd9357e={};_0xd9357e[_0xe34d8f(0xb7)]=_0xe34d8f(0x7a),_0xd9357e[_0xe34d8f(0x71)]='LogCreated',_0xd9357e[_0xe34d8f(0xc1)]=_0xe34d8f(0xd0),_0xd9357e[_0xe34d8f(0xb4)]=_0xe34d8f(0xd5),_0xd9357e[_0xe34d8f(0x85)]=_0xe34d8f(0x91),_0xd9357e[_0xe34d8f(0x93)]=_0xe34d8f(0xbe),_0xd9357e[_0xe34d8f(0x76)]=_0xe34d8f(0x89),_0xd9357e['wdgxR']=_0xe34d8f(0xd2),_0xd9357e[_0xe34d8f(0x90)]='api/v1/screenshots',_0xd9357e[_0xe34d8f(0xb9)]='upload-attachments',_0xd9357e['kFwFX']='api/v1/batch';const _0x146fa6=_0xd9357e,_0x1f6583=_0x146fa6['CjvjU'][_0xe34d8f(0xbc)]('|');let _0xb13e23=0x0;while(!![]){switch(_0x1f6583[_0xb13e23++]){case'0':this[_0xe34d8f(0x95)]=[];continue;case'1':this[_0xe34d8f(0xbd)]=[_0x146fa6[_0xe34d8f(0x71)],_0x146fa6[_0xe34d8f(0xc1)],_0x146fa6[_0xe34d8f(0xb4)],_0x146fa6[_0xe34d8f(0x85)],_0x146fa6[_0xe34d8f(0x93)],_0x146fa6[_0xe34d8f(0x76)],_0x146fa6[_0xe34d8f(0x6c)]];continue;case'2':this['started']=![];continue;case'3':this[_0xe34d8f(0xb5)]=_0x146fa6['uyyBL'];continue;case'4':this[_0xe34d8f(0xa1)]=null;continue;case'5':this[_0xe34d8f(0x7e)]=_0x146fa6[_0xe34d8f(0xb9)];continue;case'6':this[_0xe34d8f(0xa8)]=_0x146fa6['kFwFX'];continue;}break;}}static[a125_0x32f33c(0x7f)](){const _0x4712a8=a125_0x32f33c;return!RequestQueueHandler[_0x4712a8(0xcb)]&&(RequestQueueHandler[_0x4712a8(0xcb)]=new RequestQueueHandler()),RequestQueueHandler[_0x4712a8(0xcb)];}[a125_0x32f33c(0x8d)]=()=>{const _0x51aae4=a125_0x32f33c;!this['started']&&(this[_0x51aae4(0xcf)]=!![],this[_0x51aae4(0x86)]());};[a125_0x32f33c(0x9e)]=_0x57f7df=>{const _0xd59c16=a125_0x32f33c,_0x4b7f26={'VljPt':function(_0x13e6fe,_0x2f716b){return _0x13e6fe===_0x2f716b;},'vmrFS':'TEST_SCREENSHOT','ITYpC':function(_0x36abb4,_0x108cf5){return _0x36abb4>_0x108cf5;},'YrPqJ':function(_0x5500f1,_0xe5b8d6){return _0x5500f1===_0xe5b8d6;},'nKkmY':'TEST_ATTACHMENT','SbDhR':function(_0x4cf34a,_0x3b926a){return _0x4cf34a!==_0x3b926a;},'ceZNZ':_0xd59c16(0xd5),'vJbtS':function(_0x29890b,_0x1cdfdb){return _0x29890b(_0x1cdfdb);},'yxHgJ':_0xd59c16(0x8c)};if(this[_0xd59c16(0xbd)][_0xd59c16(0x9b)](_0x57f7df[_0xd59c16(0xb0)])){if(_0x57f7df[_0xd59c16(0x7c)]&&_0x57f7df[_0xd59c16(0x7c)][0x0]&&_0x4b7f26[_0xd59c16(0xcc)](_0x57f7df[_0xd59c16(0x7c)][0x0][_0xd59c16(0x97)],_0x4b7f26[_0xd59c16(0x6b)])){const _0x5d8593={};return _0x5d8593[_0xd59c16(0xa7)]=!![],_0x5d8593[_0xd59c16(0xdc)]=[_0x57f7df],_0x5d8593[_0xd59c16(0x88)]=this[_0xd59c16(0xb5)],_0x5d8593;}if(_0x57f7df[_0xd59c16(0x7c)]&&_0x4b7f26[_0xd59c16(0xa5)](_0x57f7df[_0xd59c16(0x7c)][_0xd59c16(0xb1)],0x0)&&_0x4b7f26['YrPqJ'](_0x57f7df['logs'][0x0][_0xd59c16(0x97)],_0x4b7f26[_0xd59c16(0x6e)])&&_0x4b7f26['SbDhR'](_0x57f7df[_0xd59c16(0xb0)],_0x4b7f26[_0xd59c16(0x80)])){const _0x4ad0a4={};return _0x4ad0a4['shouldProceed']=!![],_0x4ad0a4[_0xd59c16(0xdc)]=[_0x57f7df],_0x4ad0a4['proceedWithUrl']=this[_0xd59c16(0x7e)],_0x4ad0a4;}this[_0xd59c16(0x95)]['push'](_0x57f7df);let _0x5cada7=null;const _0x15f0e1=this[_0xd59c16(0xa7)]();_0x15f0e1&&(_0x4b7f26[_0xd59c16(0x6f)](trace,_0x4b7f26[_0xd59c16(0x83)]),_0x5cada7=this['queue']['slice'](0x0,BATCH_SIZE),this[_0xd59c16(0x95)][_0xd59c16(0xb3)](0x0,BATCH_SIZE),this[_0xd59c16(0xad)]());const _0x20cb37={};return _0x20cb37[_0xd59c16(0xa7)]=_0x15f0e1,_0x20cb37[_0xd59c16(0xdc)]=_0x5cada7,_0x20cb37[_0xd59c16(0x88)]=this[_0xd59c16(0xa8)],_0x20cb37;}const _0x31dc7c={};return _0x31dc7c[_0xd59c16(0xa7)]=!![],_0x31dc7c;};['shutdown']=async()=>{const _0x5ef048=a125_0x32f33c,_0xb9641f={'eQvSB':_0x5ef048(0x8f),'ZDiqV':function(_0x41cd17,_0x276afd){return _0x41cd17>_0x276afd;},'YQlhk':_0x5ef048(0xa0),'MjGkb':function(_0x4c0394,_0x335fc7){return _0x4c0394>_0x335fc7;},'LLYOm':function(_0x4b5343,_0x391181){return _0x4b5343(_0x391181);}};await this[_0x5ef048(0x96)](),this['removeEventBatchPolling'](_0xb9641f[_0x5ef048(0x75)]);while(_0xb9641f[_0x5ef048(0x87)](this[_0x5ef048(0x95)][_0x5ef048(0xb1)],0x0)){const _0x5729eb=this[_0x5ef048(0x95)][_0x5ef048(0x72)](0x0,BATCH_SIZE);this[_0x5ef048(0x95)][_0x5ef048(0xb3)](0x0,BATCH_SIZE),await this['batchAndPostEvents'](this['eventUrl'],_0xb9641f[_0x5ef048(0xd6)],_0x5729eb);}_0xb9641f[_0x5ef048(0xae)](this[_0x5ef048(0xdd)],0x0)&&_0xb9641f[_0x5ef048(0xa4)](debug,_0x5ef048(0xd9)+this[_0x5ef048(0xdd)]);};['batchAndPostEvents']=async(_0x3b9c59,_0x326f87,_0x1af098)=>{const _0x1d03f0=a125_0x32f33c,_0x421203={'PsZTZ':function(_0x2c8e6b,_0x3d0b4d){return _0x2c8e6b(_0x3d0b4d);},'NWCnV':_0x1d03f0(0x99),'qUwCC':function(_0x14b118,_0x4cdbc9){return _0x14b118(_0x4cdbc9);},'Zuhdo':function(_0x34d579){return _0x34d579();},'iDsBd':function(_0x5830e7,_0x5c5b2b,_0x3f9a0a,_0x302f41,_0x4e0fdc){return _0x5830e7(_0x5c5b2b,_0x3f9a0a,_0x302f41,_0x4e0fdc);},'IVgDq':'POST','jBJuS':function(_0x21a26a,_0x360d5b){return _0x21a26a-_0x360d5b;},'ntEWz':function(_0x15d4e8,_0x5f083f){return _0x15d4e8(_0x5f083f);},'jSWPO':function(_0x5eea5f,_0x3c54fa){return _0x5eea5f(_0x3c54fa);},'OFVpx':function(_0x2170ec,_0x291a63){return _0x2170ec-_0x291a63;}};let _0x1020eb='';try{_0x1020eb=_0x1af098[_0x1d03f0(0xaf)](_0x4a3478=>'\x27'+_0x4a3478[_0x1d03f0(0xb0)]+'\x27:'+(nestedKeyValue(_0x4a3478,[_0x1d03f0(0x98),_0x1d03f0(0x78)])||nestedKeyValue(_0x4a3478,[_0x1d03f0(0x84),_0x1d03f0(0x78)])))['join'](','),_0x421203['PsZTZ'](debug,_0x1d03f0(0xcd)+_0x326f87+_0x1d03f0(0x6a)+Buffer['byteLength'](util[_0x1d03f0(0x73)]('%j',_0x1af098),_0x421203[_0x1d03f0(0xbb)])+'\x20bytes.\x20Events\x20are\x20'+_0x1020eb);}catch(_0x430734){_0x421203[_0x1d03f0(0xca)](debug,_0x1d03f0(0xc6)+util[_0x1d03f0(0x73)](_0x430734)+'}');}const _0x2983cc={'headers':_0x421203[_0x1d03f0(0x67)](getDefaultHeaders)};try{const _0x4dabd1=await _0x421203[_0x1d03f0(0x69)](nodeRequest,_0x421203[_0x1d03f0(0x8e)],_0x3b9c59,_0x1af098,_0x2983cc);if(_0x4dabd1[_0x1d03f0(0xc3)][_0x1d03f0(0x7b)]){const _0x50bc18={};_0x50bc18[_0x1d03f0(0x94)]=_0x4dabd1['data'][_0x1d03f0(0x7b)];throw _0x50bc18;}else _0x421203[_0x1d03f0(0xca)](debug,_0x326f87+_0x1d03f0(0x9a)+_0x1020eb+_0x1d03f0(0x6d)+util['format']('%j',_0x4dabd1[_0x1d03f0(0xc3)])),this[_0x1d03f0(0xdd)]=Math[_0x1d03f0(0xc7)](0x0,_0x421203[_0x1d03f0(0xc2)](this[_0x1d03f0(0xdd)],_0x1af098[_0x1d03f0(0xb1)]));}catch(_0x5e9652){_0x5e9652[_0x1d03f0(0xd3)]?_0x421203[_0x1d03f0(0x8b)](debug,_0x1d03f0(0xa9)+_0x326f87+_0x1d03f0(0xab)+constants['TEST_REPORTING_ANALYTICS']+_0x1d03f0(0x68)+_0x5e9652[_0x1d03f0(0xd3)][_0x1d03f0(0x79)]+'\x20'+_0x5e9652[_0x1d03f0(0xd3)][_0x1d03f0(0x9f)]+'\x20'+util[_0x1d03f0(0x73)]('%j',_0x5e9652[_0x1d03f0(0xd3)])):_0x421203[_0x1d03f0(0xdf)](debug,_0x1d03f0(0xa9)+_0x326f87+_0x1d03f0(0xab)+constants[_0x1d03f0(0xba)]+'\x20:\x20'+(_0x5e9652[_0x1d03f0(0x94)]||_0x5e9652)),this['pendingUploads']=Math[_0x1d03f0(0xc7)](0x0,_0x421203['OFVpx'](this[_0x1d03f0(0xdd)],_0x1af098[_0x1d03f0(0xb1)]));}};[a125_0x32f33c(0x86)]=()=>{const _0x165e1d=a125_0x32f33c,_0x14130d={'nyiMw':function(_0x1bf777,_0x1ba061){return _0x1bf777>_0x1ba061;},'kKNny':function(_0x42bb36,_0x53a5f0){return _0x42bb36(_0x53a5f0);},'HFIoO':_0x165e1d(0xd8),'DQWvn':function(_0x3234c4,_0x50b3bd){return _0x3234c4(_0x50b3bd);},'tlloj':function(_0x57d684,_0xb89dd2,_0x493e6f){return _0x57d684(_0xb89dd2,_0x493e6f);}};this['pollEventBatchInterval']=_0x14130d['tlloj'](setInterval,async()=>{const _0x2d3c78=_0x165e1d;if(_0x14130d[_0x2d3c78(0xaa)](this[_0x2d3c78(0x95)][_0x2d3c78(0xb1)],0x0)){_0x14130d['kKNny'](trace,_0x2d3c78(0x92)+this[_0x2d3c78(0x95)][_0x2d3c78(0xb1)]);const _0x3ee99d=this['queue'][_0x2d3c78(0x72)](0x0,BATCH_SIZE);this[_0x2d3c78(0x95)][_0x2d3c78(0xb3)](0x0,BATCH_SIZE),await this[_0x2d3c78(0xa3)](this[_0x2d3c78(0xa8)],_0x14130d[_0x2d3c78(0xbf)],_0x3ee99d),_0x14130d[_0x2d3c78(0xd1)](trace,_0x2d3c78(0x8a)+this[_0x2d3c78(0x95)][_0x2d3c78(0xb1)]);}},BATCH_INTERVAL);};['resetEventBatchPolling']=()=>{const _0x46e222=a125_0x32f33c,_0x4c931c={};_0x4c931c[_0x46e222(0xb6)]=_0x46e222(0xa6);const _0x461566=_0x4c931c;this[_0x46e222(0xdb)](_0x461566[_0x46e222(0xb6)]),this[_0x46e222(0x86)]();};[a125_0x32f33c(0xdb)]=_0x5724a1=>{const _0x319699=a125_0x32f33c,_0x3e62f5={'HZHSY':function(_0x6912dd,_0x1938aa){return _0x6912dd(_0x1938aa);},'rOqhn':function(_0x4317e0,_0x309ff2){return _0x4317e0===_0x309ff2;},'rjCxX':'REMOVING'};this[_0x319699(0xa1)]&&(_0x3e62f5['HZHSY'](clearInterval,this['pollEventBatchInterval']),this[_0x319699(0xa1)]=null,_0x3e62f5[_0x319699(0xda)](_0x5724a1,_0x3e62f5[_0x319699(0xd7)])&&(this[_0x319699(0xcf)]=![]));};[a125_0x32f33c(0xa7)]=()=>{const _0x4539c7=a125_0x32f33c,_0x2fe578={};_0x2fe578[_0x4539c7(0x70)]=function(_0x27deaa,_0x5a3345){return _0x27deaa>=_0x5a3345;};const _0x3fc228=_0x2fe578;return _0x3fc228[_0x4539c7(0x70)](this[_0x4539c7(0x95)][_0x4539c7(0xb1)],BATCH_SIZE);};async[a125_0x32f33c(0x96)](_0x3b101b=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x44a8b4=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x49fba5=a125_0x32f33c,_0x20219a={'AUKKl':function(_0x405e8d,_0x2a796e){return _0x405e8d<=_0x2a796e;},'DxLog':function(_0x336670,_0x34a1dc){return _0x336670<=_0x34a1dc;},'cJtRL':function(_0x5deb69,_0x5453f5){return _0x5deb69(_0x5453f5);},'mvBIR':function(_0x95f59e,_0x5900d8){return _0x95f59e-_0x5900d8;}};if(_0x20219a[_0x49fba5(0xc5)](this[_0x49fba5(0xdd)],0x0)||_0x20219a[_0x49fba5(0x82)](_0x3b101b,0x0))return;return await _0x20219a[_0x49fba5(0x77)](sleep,_0x44a8b4),this[_0x49fba5(0x96)](_0x20219a[_0x49fba5(0x74)](_0x3b101b,_0x44a8b4));}}module[a125_0x32f33c(0xb2)]=RequestQueueHandler;
|
|
1
|
+
const a127_0x17f0d3=a127_0x333a;(function(_0x2833fc,_0x5ddc2d){const _0x5ec677=a127_0x333a,_0x458258=_0x2833fc();while(!![]){try{const _0x5c84a8=parseInt(_0x5ec677(0x100))/0x1*(parseInt(_0x5ec677(0xfc))/0x2)+parseInt(_0x5ec677(0xf4))/0x3*(-parseInt(_0x5ec677(0xac))/0x4)+parseInt(_0x5ec677(0xd5))/0x5*(parseInt(_0x5ec677(0xde))/0x6)+-parseInt(_0x5ec677(0xe7))/0x7*(-parseInt(_0x5ec677(0xef))/0x8)+-parseInt(_0x5ec677(0x103))/0x9*(parseInt(_0x5ec677(0xa5))/0xa)+-parseInt(_0x5ec677(0xee))/0xb*(-parseInt(_0x5ec677(0x8e))/0xc)+-parseInt(_0x5ec677(0xb9))/0xd*(parseInt(_0x5ec677(0xd9))/0xe);if(_0x5c84a8===_0x5ddc2d)break;else _0x458258['push'](_0x458258['shift']());}catch(_0x475785){_0x458258['push'](_0x458258['shift']());}}}(a127_0x5852,0xa8040));function a127_0x333a(_0x186d9a,_0x2db262){const _0x5852f2=a127_0x5852();return a127_0x333a=function(_0x333afa,_0xf858fc){_0x333afa=_0x333afa-0x89;let _0x21064d=_0x5852f2[_0x333afa];return _0x21064d;},a127_0x333a(_0x186d9a,_0x2db262);}function a127_0x5852(){const _0x2c50cb=['add','12jIUwtO','TEST_ATTACHMENT','Processing\x20events.\x20Queue\x20Length\x20-\x20','instance','pendingUploads','\x20event\x20successful\x20for\x20events\x20','VWcwA','Processing\x20batch\x20events\x20for\x20','.\x20Request\x20Size\x20-\x20','pollEventBatchInterval','LqiIu','EXCEPTION\x20IN\x20','CBTSessionCreated','2184403yheMBE','pYIUX','../helper','queue','MiNqI','splice','CPvrx','GCMhq','\x20REQUEST\x20TO\x20','REMOVING','Zsgau','PxnWO','lSDua','PrycJ','HookRunStarted','proceedWithUrl','Shutdown-Queue','rhyPv','SdVuq','uuid','hook_run','TEST_REPORTING_ANALYTICS','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','sUFbF','eczDK','data','split','removeEventBatchPolling','5bhsdTa','IUbjc','UvhHq','nLknz','196BsvgqL','PGJGR','ervXs','join','getInstance','813528aKqLIP','Remaining\x20Queue\x20Length\x20-\x20','Interval-Queue','shouldProceed','response','batchAndPostEvents','length','uploadAttachmentUrl','sJudm','857710MXsEyr','\x20:\x20','test_run','includes','event_type','utf8','Exception\x20in\x20logging\x20batch\x20events\x20--\x20','77oSqLeQ','72SDNQrh','BATCH_EVENT_TYPES','logs','Ehwek','Jvkav','45351TSuzZy','slice','map','UUfiT','TestRunStarted','tmNcv','Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20','kvPob','1228SJuBkW','eventUrl','RESETTING','byteLength','1268GrbwKq','kind','vfIIZ','3771BsUVYV','resetEventBatchPolling','uploadPending','\x20bytes.\x20Events\x20are\x20','status','POST','2294544XZiPOz','error','Sbmbc','nwBzg','util','TestRunFinished','format','statusText','max','proceedWithData','RjCkQ','start','zBPpH','exZzf','TestRunSkipped','GsAZm','ZXxna','../../bin/utils/constants','./constants','api/v1/screenshots','GBnPS','OJSGo','roFBp','6430aZoZHd','screenshotEventUrl','./utils','started','startEventBatchPolling','message'];a127_0x5852=function(){return _0x2c50cb;};return a127_0x5852();}const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require(a127_0x17f0d3(0xa0)),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require(a127_0x17f0d3(0xa7)),{nestedKeyValue}=require(a127_0x17f0d3(0xbb)),util=require(a127_0x17f0d3(0x92)),constants=require(a127_0x17f0d3(0x9f));class RequestQueueHandler{static ['instance'];[a127_0x17f0d3(0xb0)]=0x0;constructor(){const _0x3a9d23=a127_0x17f0d3,_0x19cc65={};_0x19cc65[_0x3a9d23(0xca)]='4|1|5|0|6|3|2',_0x19cc65[_0x3a9d23(0xf3)]=_0x3a9d23(0xa1),_0x19cc65['bHvha']='LogCreated',_0x19cc65['nwBzg']=_0x3a9d23(0xb8),_0x19cc65[_0x3a9d23(0xc0)]=_0x3a9d23(0x93),_0x19cc65[_0x3a9d23(0xba)]=_0x3a9d23(0x9c),_0x19cc65[_0x3a9d23(0xd1)]='HookRunFinished',_0x19cc65[_0x3a9d23(0xc4)]=_0x3a9d23(0xf8),_0x19cc65['DQZnk']=_0x3a9d23(0xc7),_0x19cc65[_0x3a9d23(0xfb)]='api/v1/batch',_0x19cc65[_0x3a9d23(0xc3)]='upload-attachments';const _0x5b0a4a=_0x19cc65,_0x303347=_0x5b0a4a[_0x3a9d23(0xca)][_0x3a9d23(0xd3)]('|');let _0x54723f=0x0;while(!![]){switch(_0x303347[_0x54723f++]){case'0':this[_0x3a9d23(0xa6)]=_0x5b0a4a[_0x3a9d23(0xf3)];continue;case'1':this[_0x3a9d23(0xa8)]=![];continue;case'2':this[_0x3a9d23(0xb5)]=null;continue;case'3':this[_0x3a9d23(0xf0)]=[_0x5b0a4a['bHvha'],_0x5b0a4a[_0x3a9d23(0x91)],_0x5b0a4a[_0x3a9d23(0xc0)],_0x5b0a4a[_0x3a9d23(0xba)],_0x5b0a4a[_0x3a9d23(0xd1)],_0x5b0a4a['PxnWO'],_0x5b0a4a['DQZnk']];continue;case'4':this[_0x3a9d23(0xbc)]=[];continue;case'5':this['eventUrl']=_0x5b0a4a['kvPob'];continue;case'6':this['uploadAttachmentUrl']=_0x5b0a4a[_0x3a9d23(0xc3)];continue;}break;}}static[a127_0x17f0d3(0xdd)](){const _0x101f05=a127_0x17f0d3;return!RequestQueueHandler[_0x101f05(0xaf)]&&(RequestQueueHandler['instance']=new RequestQueueHandler()),RequestQueueHandler[_0x101f05(0xaf)];}[a127_0x17f0d3(0x99)]=()=>{const _0x782faa=a127_0x17f0d3;!this['started']&&(this[_0x782faa(0xa8)]=!![],this[_0x782faa(0xa9)]());};[a127_0x17f0d3(0xab)]=_0x573bee=>{const _0x2d8289=a127_0x17f0d3,_0xaaf9e5={'sJudm':function(_0x212d2b,_0x99c06c){return _0x212d2b===_0x99c06c;},'vfIIZ':'TEST_SCREENSHOT','zBPpH':function(_0x4af958,_0x410d7d){return _0x4af958>_0x410d7d;},'UUfiT':_0x2d8289(0xad),'LqiIu':function(_0x5ec05c,_0x3efc29){return _0x5ec05c!==_0x3efc29;},'wrAbs':_0x2d8289(0x93),'JsVrR':function(_0x2797f2,_0x586f9d){return _0x2797f2(_0x586f9d);},'lSDua':_0x2d8289(0xcf)};if(this['BATCH_EVENT_TYPES'][_0x2d8289(0xea)](_0x573bee[_0x2d8289(0xeb)])){if(_0x573bee[_0x2d8289(0xf1)]&&_0x573bee['logs'][0x0]&&_0xaaf9e5[_0x2d8289(0xe6)](_0x573bee['logs'][0x0][_0x2d8289(0x101)],_0xaaf9e5[_0x2d8289(0x102)])){const _0x87b55c={};return _0x87b55c[_0x2d8289(0xe1)]=!![],_0x87b55c[_0x2d8289(0x97)]=[_0x573bee],_0x87b55c[_0x2d8289(0xc8)]=this['screenshotEventUrl'],_0x87b55c;}if(_0x573bee[_0x2d8289(0xf1)]&&_0xaaf9e5[_0x2d8289(0x9a)](_0x573bee[_0x2d8289(0xf1)][_0x2d8289(0xe4)],0x0)&&_0xaaf9e5[_0x2d8289(0xe6)](_0x573bee[_0x2d8289(0xf1)][0x0][_0x2d8289(0x101)],_0xaaf9e5[_0x2d8289(0xf7)])&&_0xaaf9e5[_0x2d8289(0xb6)](_0x573bee['event_type'],_0xaaf9e5['wrAbs'])){const _0x563f77={};return _0x563f77['shouldProceed']=!![],_0x563f77['proceedWithData']=[_0x573bee],_0x563f77[_0x2d8289(0xc8)]=this[_0x2d8289(0xe5)],_0x563f77;}this['queue']['push'](_0x573bee);let _0x264595=null;const _0x8194b9=this[_0x2d8289(0xe1)]();_0x8194b9&&(_0xaaf9e5['JsVrR'](trace,_0xaaf9e5[_0x2d8289(0xc5)]),_0x264595=this[_0x2d8289(0xbc)]['slice'](0x0,BATCH_SIZE),this[_0x2d8289(0xbc)][_0x2d8289(0xbe)](0x0,BATCH_SIZE),this[_0x2d8289(0x89)]());const _0xeba895={};return _0xeba895[_0x2d8289(0xe1)]=_0x8194b9,_0xeba895[_0x2d8289(0x97)]=_0x264595,_0xeba895[_0x2d8289(0xc8)]=this[_0x2d8289(0xfd)],_0xeba895;}const _0x8e84c4={};return _0x8e84c4['shouldProceed']=!![],_0x8e84c4;};['shutdown']=async()=>{const _0x274460=a127_0x17f0d3,_0x41d550={'PrycJ':'REMOVING','BFlec':function(_0x1a2aba,_0x4507e9){return _0x1a2aba>_0x4507e9;},'RjCkQ':_0x274460(0xc9),'Tmnia':function(_0x5e45d5,_0x403b4d){return _0x5e45d5>_0x403b4d;},'GBnPS':function(_0x33c11f,_0x4d4b61){return _0x33c11f(_0x4d4b61);}};await this[_0x274460(0x8a)](),this['removeEventBatchPolling'](_0x41d550[_0x274460(0xc6)]);while(_0x41d550['BFlec'](this[_0x274460(0xbc)]['length'],0x0)){const _0x267f00=this['queue'][_0x274460(0xf5)](0x0,BATCH_SIZE);this[_0x274460(0xbc)][_0x274460(0xbe)](0x0,BATCH_SIZE),await this['batchAndPostEvents'](this['eventUrl'],_0x41d550[_0x274460(0x98)],_0x267f00);}_0x41d550['Tmnia'](this[_0x274460(0xb0)],0x0)&&_0x41d550[_0x274460(0xa2)](debug,_0x274460(0xfa)+this['pendingUploads']);};[a127_0x17f0d3(0xe3)]=async(_0x27473b,_0x30139a,_0x3dd2de)=>{const _0x2b57c1=a127_0x17f0d3,_0x575ad8={'ToMPh':function(_0x23de0f,_0x38dfb5){return _0x23de0f(_0x38dfb5);},'roFBp':_0x2b57c1(0xec),'Sbmbc':function(_0x3215c6){return _0x3215c6();},'tmNcv':function(_0x1d513d,_0x40dbeb,_0x3e83ab,_0x1a9ec3,_0x5df7dc){return _0x1d513d(_0x40dbeb,_0x3e83ab,_0x1a9ec3,_0x5df7dc);},'PGJGR':_0x2b57c1(0x8d),'nLknz':function(_0x2ceb52,_0x16a3dc){return _0x2ceb52(_0x16a3dc);},'ZXxna':function(_0x2d33e5,_0x4bcdd2){return _0x2d33e5-_0x4bcdd2;},'AHiio':function(_0x548fe7,_0xc83f7b){return _0x548fe7(_0xc83f7b);},'lLqCt':function(_0x3e4853,_0x1ff1c6){return _0x3e4853-_0x1ff1c6;}};let _0x3e94ae='';try{_0x3e94ae=_0x3dd2de[_0x2b57c1(0xf6)](_0x16c095=>'\x27'+_0x16c095[_0x2b57c1(0xeb)]+'\x27:'+(nestedKeyValue(_0x16c095,[_0x2b57c1(0xe9),_0x2b57c1(0xcc)])||nestedKeyValue(_0x16c095,[_0x2b57c1(0xcd),_0x2b57c1(0xcc)])))[_0x2b57c1(0xdc)](','),_0x575ad8['ToMPh'](debug,_0x2b57c1(0xb3)+_0x30139a+_0x2b57c1(0xb4)+Buffer[_0x2b57c1(0xff)](util['format']('%j',_0x3dd2de),_0x575ad8[_0x2b57c1(0xa4)])+_0x2b57c1(0x8b)+_0x3e94ae);}catch(_0x17ae58){_0x575ad8['ToMPh'](debug,_0x2b57c1(0xed)+util[_0x2b57c1(0x94)](_0x17ae58)+'}');}const _0x2953ba={'headers':_0x575ad8[_0x2b57c1(0x90)](getDefaultHeaders)};try{const _0x405cd4=await _0x575ad8[_0x2b57c1(0xf9)](nodeRequest,_0x575ad8[_0x2b57c1(0xda)],_0x27473b,_0x3dd2de,_0x2953ba);if(_0x405cd4[_0x2b57c1(0xd2)][_0x2b57c1(0x8f)]){const _0x37b0a8={};_0x37b0a8[_0x2b57c1(0xaa)]=_0x405cd4[_0x2b57c1(0xd2)]['error'];throw _0x37b0a8;}else _0x575ad8['nLknz'](debug,_0x30139a+_0x2b57c1(0xb1)+_0x3e94ae+'\x20--\x20'+util[_0x2b57c1(0x94)]('%j',_0x405cd4[_0x2b57c1(0xd2)])),this[_0x2b57c1(0xb0)]=Math[_0x2b57c1(0x96)](0x0,_0x575ad8[_0x2b57c1(0x9e)](this['pendingUploads'],_0x3dd2de[_0x2b57c1(0xe4)]));}catch(_0x43f8b7){_0x43f8b7[_0x2b57c1(0xe2)]?_0x575ad8['AHiio'](debug,_0x2b57c1(0xb7)+_0x30139a+_0x2b57c1(0xc1)+constants[_0x2b57c1(0xce)]+'\x20:\x20'+_0x43f8b7[_0x2b57c1(0xe2)][_0x2b57c1(0x8c)]+'\x20'+_0x43f8b7['response'][_0x2b57c1(0x95)]+'\x20'+util[_0x2b57c1(0x94)]('%j',_0x43f8b7['response'])):_0x575ad8[_0x2b57c1(0xd8)](debug,_0x2b57c1(0xb7)+_0x30139a+_0x2b57c1(0xc1)+constants['TEST_REPORTING_ANALYTICS']+_0x2b57c1(0xe8)+(_0x43f8b7[_0x2b57c1(0xaa)]||_0x43f8b7)),this[_0x2b57c1(0xb0)]=Math[_0x2b57c1(0x96)](0x0,_0x575ad8['lLqCt'](this[_0x2b57c1(0xb0)],_0x3dd2de[_0x2b57c1(0xe4)]));}};['startEventBatchPolling']=()=>{const _0x5ac758=a127_0x17f0d3,_0x15912a={'UvhHq':function(_0xda621d,_0x5d9a6f){return _0xda621d>_0x5d9a6f;},'MiNqI':function(_0x1b024e,_0x507c0c){return _0x1b024e(_0x507c0c);},'sUFbF':_0x5ac758(0xe0),'VWcwA':function(_0x5e70af,_0x2e9eef,_0x2d0235){return _0x5e70af(_0x2e9eef,_0x2d0235);}};this[_0x5ac758(0xb5)]=_0x15912a[_0x5ac758(0xb2)](setInterval,async()=>{const _0x1327c9=_0x5ac758;if(_0x15912a[_0x1327c9(0xd7)](this[_0x1327c9(0xbc)][_0x1327c9(0xe4)],0x0)){_0x15912a['MiNqI'](trace,_0x1327c9(0xae)+this[_0x1327c9(0xbc)][_0x1327c9(0xe4)]);const _0xaa5e8d=this[_0x1327c9(0xbc)][_0x1327c9(0xf5)](0x0,BATCH_SIZE);this[_0x1327c9(0xbc)]['splice'](0x0,BATCH_SIZE),await this[_0x1327c9(0xe3)](this[_0x1327c9(0xfd)],_0x15912a[_0x1327c9(0xd0)],_0xaa5e8d),_0x15912a[_0x1327c9(0xbd)](trace,_0x1327c9(0xdf)+this[_0x1327c9(0xbc)][_0x1327c9(0xe4)]);}},BATCH_INTERVAL);};[a127_0x17f0d3(0x89)]=()=>{const _0x3c7241=a127_0x17f0d3,_0xb16d0d={};_0xb16d0d[_0x3c7241(0xf2)]=_0x3c7241(0xfe);const _0x239c8c=_0xb16d0d;this[_0x3c7241(0xd4)](_0x239c8c['Ehwek']),this[_0x3c7241(0xa9)]();};[a127_0x17f0d3(0xd4)]=_0x48a78c=>{const _0x5e1abd=a127_0x17f0d3,_0x493c88={'IUbjc':function(_0x14d22e,_0x5bba10){return _0x14d22e(_0x5bba10);},'SdVuq':function(_0x233abd,_0x54cab0){return _0x233abd===_0x54cab0;},'ervXs':_0x5e1abd(0xc2)};this[_0x5e1abd(0xb5)]&&(_0x493c88[_0x5e1abd(0xd6)](clearInterval,this[_0x5e1abd(0xb5)]),this['pollEventBatchInterval']=null,_0x493c88[_0x5e1abd(0xcb)](_0x48a78c,_0x493c88[_0x5e1abd(0xdb)])&&(this[_0x5e1abd(0xa8)]=![]));};['shouldProceed']=()=>{const _0x345215=a127_0x17f0d3,_0x27bb70={};_0x27bb70['GsAZm']=function(_0x353105,_0x56d56f){return _0x353105>=_0x56d56f;};const _0x225abf=_0x27bb70;return _0x225abf[_0x345215(0x9d)](this['queue'][_0x345215(0xe4)],BATCH_SIZE);};async['uploadPending'](_0x2d41de=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x22e4f8=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x4d384a=a127_0x17f0d3,_0x23e06e={'exZzf':function(_0x41b1e9,_0x23e82f){return _0x41b1e9<=_0x23e82f;},'zyguM':function(_0x39412a,_0x5d75ac){return _0x39412a<=_0x5d75ac;},'CPvrx':function(_0x2bbc16,_0x1cbb96){return _0x2bbc16(_0x1cbb96);},'OJSGo':function(_0x4e5e7c,_0x1637a9){return _0x4e5e7c-_0x1637a9;}};if(_0x23e06e[_0x4d384a(0x9b)](this[_0x4d384a(0xb0)],0x0)||_0x23e06e['zyguM'](_0x2d41de,0x0))return;return await _0x23e06e[_0x4d384a(0xbf)](sleep,_0x22e4f8),this[_0x4d384a(0x8a)](_0x23e06e[_0x4d384a(0xa3)](_0x2d41de,_0x22e4f8));}}module['exports']=RequestQueueHandler;
|