browserstack-node-sdk 1.70.3 → 1.71.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/package.json +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/detox/a11ySetup.js +1 -1
- package/src/bin/detox/command.js +1 -1
- package/src/bin/detox/modifyDetoxConf.js +1 -1
- package/src/bin/detox/traEmitter.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
- package/src/bin/jasmine/command.js +1 -1
- package/src/bin/jasmine/test.setup.js +1 -1
- package/src/bin/jasmine/testRunMap.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/loadErrors.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/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/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/node-generic/client.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/reporterArgs.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.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/testcafe/a11y-runner.js +1 -1
- package/src/bin/testcafe/command.js +1 -1
- package/src/bin/testcafe/reporter/index.js +1 -1
- package/src/bin/testcafe/reporter/tcUtils.js +1 -1
- package/src/bin/testcafe/session-registry.js +1 -1
- package/src/bin/testcafe/stdout-interceptor.js +1 -1
- package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
- package/src/bin/testcafe/w3c-driver.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/puppeteer-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 -1
- package/src/bin/v2/framework/mochaTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/nodeGenericTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/seleniumAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testcafeTestFramework.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/loadTestModule.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/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/runStateStore.js +1 -1
- package/src/bin/v2/sdkErrorHandler.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 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/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/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/caCertHelper.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/driverInitErrorReporter.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/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/stackFrameUtils.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/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
|
-
function a50_0x3bb7(){const _0x3629f6=['parse','getResults','RQlbi','Playwright','[STALE-PRE]\x20browserStackEvaluate:\x20page\x20ref\x20stale,\x20reselected\x20from\x20browser.pages()','jgOwe','processAccessibilityCaps','pages','vVjsi','NAmnx','FdQph','mainFrame','PVEAC','EfHdy','8713670WtiUWm','vIhwF','ZZYqd','result','format','__workerDetails','forEach','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','test','env','stack','3esdGCk','vphtf','domcontentloaded','hasScripts','stringify','accessibilityOptions.includeIssueType.needsReview','oFLqp','accessibilityOptions','exceptionDetails','WebDriver','jeqCL','\x20page:\x20','SsTKr','silly','\x20browser\x20version\x20','oohMn','https://','evaluate','Fqrkn','WWwRo','asNgp','hzmbU','getAccessibilityResults','performScan','../../helpers/performance/performance-tester','deviceName','browser','CVLed','url','../../helpers/accessibility-automation/helper',')\x20—\x20fresh\x20page\x20url=','SvQRu','isBrowserSupportedForAccessibility','MOBILE_SCANNING_DISABLED_WARNING','DaNlS','\x20evaluate\x20returned\x20via\x20fresh\x20CDP\x20session','../../helpers/performance/constants','targets','\x20no\x20AUT\x20target\x20found\x20among\x20','19983579xSFXOE','NIabL','targetsLen','string','toLowerCase','chrome','5166048KMjadp','jldEr','\x20evaluate\x20exception:\x20','type','isMobileScanningEnabledForGroup','latest','tddWl','SNvfZ','QHMjl',')\x20—\x20reloading\x20page\x20to\x20reset\x20frame','XdtdO','getMinVersionForBrowser','transient','\x20targets','zfvAg','find','accessibilityOptions.scannerProcessingTimeout','accessibilityOptions.wcagVersion','browserName','browserStackEvaluate','executeAsyncScript','accessibilityPlatform','qAukA','platformValidation','expression','Accessibility\x20scanner\x20scripts\x20are\x20not\x20loaded\x20for\x20this\x20run;\x20cannot\x20retrieve\x20results\x20summary.\x20Returning\x20an\x20empty\x20summary,\x20which\x20is\x20NOT\x20the\x20same\x20as\x20a\x20scan\x20that\x20found\x20no\x20issues.','IzrOj','jkZXC','command','wsEndpoint','browser_version','send','CRZQn','APVtA','accessibilityOptions.includeIssueType.bestPractice','use','HTmGT','pmEGo','platformValidation:\x20Mobile\x20platform\x20already\x20validated.','kLbiH','browserstack.accessibilityOptions','[STALE-RETRY]\x20browserStackEvaluate:\x20retry\x20after\x20stale-page\x20error\x20(','wcagVersion','WaiJg','ekYAg','bstackSdkArgs','16WkPDoG','18WrvlSr','sHvDE','[STALE-CDP-TRY]\x20attempt=','tyBCS','QcoAZ','getAccessibilityResultsSummary','usAsj','KnZgM','getAccessibilityResults\x20failed:\x20','includes','page','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','http://','scannerProcessingTimeout','1329769gAtwEt','[STALE-CDP-OK]\x20attempt=','browserStackExecuteDriver','[STALE-CDP-SESSION-ERR]\x20attempt=','[STALE-CDP-ERR]\x20cdp-session\x20fallback\x20failed:\x20','android','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','value','isVersionSupported','request','startsWith','reload','function','keys','getBrowserDisplayName','vqLou','name','text','\x20or\x20higher\x20','message','isDetached','info','BHJvG','replace','\x20using\x20target\x20url=','gBDjs','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','parameters','SNVgQ','12EtYluz','eCetq','devtools://','executeScript','Runtime.evaluate','qAeEu','\x20transient=','Bgwuc','Performing\x20scan\x20with\x20method:\x20','accessibilityOptions.authToken','vNFBG','PERFORM_SCAN','on\x20non-BrowserStack\x20infrastructure\x20','WNeQn','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','RLjgd','GUQUp','scannerVersion','QtYYe','isMobilePlatform','EuenJ','\x20createCDPSession\x20failed:\x20','debug','OPvdf','Accessibility\x20scanner\x20scripts\x20are\x20not\x20loaded\x20for\x20this\x20run;\x20skipping\x20scan','../../helpers/logger','2288214aChque','connectOptions','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers\x20or\x20Android\x20Chrome.','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20','3363985QOCkNz','[STALE-CDP-NO-TARGET]\x20attempt=','waitUntil','includePartOfPageScope','error','111842XSDojJ','detach','project','accessibilityOptions.scannerVersion','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','QLkwY','[STALE-CDP]\x20falling\x20back\x20to\x20fresh-CDP-session\x20evaluate','warn','umZKY','util','includeIssueType','[STALE-CDP-EX]\x20attempt=','ttuRN','currentTest','VxvCu','body','[STALE-RELOAD]\x20browserStackEvaluate:\x20no\x20fresh\x20page\x20after\x20stale-page\x20error\x20(','[STALE-RELOAD-ERR]\x20reload/retry\x20failed:\x20','constructor','setAccessibilityCapabilities','isClosed','awaitPromise','yyWeo','oxiOi','response'];a50_0x3bb7=function(){return _0x3629f6;};return a50_0x3bb7();}const a50_0x933e7b=a50_0x2194;(function(_0x465b5d,_0x32b28c){const _0x1afaf4=a50_0x2194,_0x4953d5=_0x465b5d();while(!![]){try{const _0x147125=-parseInt(_0x1afaf4(0x162))/0x1*(parseInt(_0x1afaf4(0x130))/0x2)+parseInt(_0x1afaf4(0x127))/0x3+-parseInt(_0x1afaf4(0x18f))/0x4+-parseInt(_0x1afaf4(0x12b))/0x5*(-parseInt(_0x1afaf4(0x1ea))/0x6)+parseInt(_0x1afaf4(0x1cd))/0x7*(parseInt(_0x1afaf4(0x1bd))/0x8)+-parseInt(_0x1afaf4(0x1be))/0x9*(-parseInt(_0x1afaf4(0x157))/0xa)+-parseInt(_0x1afaf4(0x189))/0xb;if(_0x147125===_0x32b28c)break;else _0x4953d5['push'](_0x4953d5['shift']());}catch(_0x382bc7){_0x4953d5['push'](_0x4953d5['shift']());}}}(a50_0x3bb7,0xe929c));const util=require(a50_0x933e7b(0x139)),logger=require(a50_0x933e7b(0x126))['winstonLogger'],{automationLogger}=require('../../helpers/logger'),{isAccessibilityAutomationSession}=require(a50_0x933e7b(0x17f)),{isUndefined,isBrowserstackInfra}=require('../../helpers/helper'),scripts=require('../../helpers/accessibility-automation/scripts'),PerformanceTester=require(a50_0x933e7b(0x17a)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a50_0x933e7b(0x186)),accessibilityHelper=require(a50_0x933e7b(0x17f)),{AUTOMATION_LOG_COMMANDS}=require('../utils/constants'),isStalePageError=_0x2ab725=>{const _0x46ded9=a50_0x933e7b,_0x33335b={'YJWYc':function(_0x557930,_0x5cf236){return _0x557930(_0x5cf236);}},_0x5146b6=_0x2ab725&&_0x2ab725[_0x46ded9(0x1e0)]||_0x33335b['YJWYc'](String,_0x2ab725);return/Target closed|detached [Ff]rame|Execution context was destroyed, most likely because of a navigation/[_0x46ded9(0x15f)](_0x5146b6);},isPageStale=_0x2150aa=>{const _0x389807=a50_0x933e7b;try{if(_0x2150aa[_0x389807(0x144)]&&_0x2150aa[_0x389807(0x144)]())return!![];const _0x5e62e0=_0x2150aa[_0x389807(0x154)]&&_0x2150aa[_0x389807(0x154)]();if(_0x5e62e0&&_0x5e62e0['isDetached']&&_0x5e62e0[_0x389807(0x1e1)]())return!![];}catch(_0x34c98d){}return![];},isUserTabUrl=_0x397eb3=>{const _0x5df23a=a50_0x933e7b,_0x128c39={};_0x128c39[_0x5df23a(0x1b3)]=_0x5df23a(0x1ec),_0x128c39['hzmbU']=function(_0x24a04f,_0x462d57){return _0x24a04f===_0x462d57;},_0x128c39[_0x5df23a(0x13e)]='about:blank',_0x128c39[_0x5df23a(0x1f7)]=function(_0x18f7ef,_0x2e5127){return _0x18f7ef===_0x2e5127;},_0x128c39[_0x5df23a(0x147)]='data:,';const _0x1f6987=_0x128c39;if(!_0x397eb3)return![];if(_0x397eb3[_0x5df23a(0x1d7)](_0x1f6987['HTmGT']))return![];if(_0x1f6987[_0x5df23a(0x177)](_0x397eb3,_0x1f6987[_0x5df23a(0x13e)])||_0x1f6987[_0x5df23a(0x1f7)](_0x397eb3,_0x1f6987['oxiOi'])||_0x1f6987[_0x5df23a(0x177)](_0x397eb3,''))return![];return!![];},pickFreshPage=async _0x582194=>{const _0x6987d5=a50_0x933e7b,_0x38df1a={'pmEGo':function(_0x33e81e,_0x300f0f){return _0x33e81e(_0x300f0f);}};try{const _0xd2d3a2=await _0x582194[_0x6987d5(0x150)]();return _0xd2d3a2[_0x6987d5(0x19e)](_0x1685dd=>{const _0x5ad0ce=_0x6987d5;try{if(_0x38df1a[_0x5ad0ce(0x1b4)](isPageStale,_0x1685dd))return![];return _0x38df1a['pmEGo'](isUserTabUrl,_0x1685dd[_0x5ad0ce(0x17e)]&&_0x1685dd['url']());}catch(_0x4d5fbb){return![];}});}catch(_0x22c407){return null;}},evalViaFreshCDPSession=async(_0x7e01df,_0x439199)=>{const _0x343589=a50_0x933e7b,_0x3a81c5={'lRjLS':function(_0x50da63,_0x565ef0){return _0x50da63===_0x565ef0;},'Fqrkn':_0x343589(0x1c8),'asNgp':function(_0xd8d10f,_0x1f0422){return _0xd8d10f===_0x1f0422;},'eCetq':_0x343589(0x1cb),'umZKY':_0x343589(0x172),'OPvdf':'devtools://','vIhwF':function(_0x330fd3){return _0x330fd3();},'FdelA':_0x343589(0x1ee),'EuenJ':'unknown','RQlbi':function(_0x117d3b,_0x1a991a){return _0x117d3b!==_0x1a991a;},'WWwRo':_0x343589(0x1d9),'ttuRN':function(_0x1c90cf,_0x54db6e){return _0x1c90cf(_0x54db6e);}};if(!_0x7e01df[_0x343589(0x17c)]||_0x3a81c5[_0x343589(0x14b)](typeof _0x7e01df[_0x343589(0x17c)],_0x3a81c5[_0x343589(0x175)]))return undefined;const _0x11e25a=_0x7e01df[_0x343589(0x17c)]();if(!_0x11e25a['targets'])return undefined;const _0x1f00ed=_0x7e01df['url']&&_0x7e01df[_0x343589(0x17e)]()||'',_0x32e159=()=>{const _0x1d2b76=_0x343589,_0x40c3bd={'yNwPY':function(_0x9dddcc,_0x34c7c1){const _0x263e51=a50_0x2194;return _0x3a81c5[_0x263e51(0x176)](_0x9dddcc,_0x34c7c1);},'BHJvG':_0x3a81c5[_0x1d2b76(0x174)],'fKzrZ':_0x3a81c5[_0x1d2b76(0x1eb)],'VLiqY':_0x3a81c5[_0x1d2b76(0x138)],'vVjsi':_0x3a81c5[_0x1d2b76(0x124)]},_0x12140d=_0x11e25a[_0x1d2b76(0x187)]();let _0x76c0a6=_0x12140d['find'](_0x20a2fc=>{const _0x25cc55=_0x1d2b76;try{return _0x3a81c5['lRjLS'](_0x20a2fc['type'](),_0x3a81c5[_0x25cc55(0x174)])&&_0x3a81c5[_0x25cc55(0x176)](_0x20a2fc[_0x25cc55(0x17e)](),_0x1f00ed);}catch(_0x526477){return![];}});if(_0x76c0a6){const _0x3bfe88={};return _0x3bfe88['t']=_0x76c0a6,_0x3bfe88[_0x1d2b76(0x18b)]=_0x12140d['length'],_0x3bfe88;}_0x76c0a6=_0x12140d['find'](_0x5884c8=>{const _0x257eb5=_0x1d2b76;try{const _0x6aff72=_0x5884c8[_0x257eb5(0x17e)]()||'';return _0x40c3bd['yNwPY'](_0x5884c8[_0x257eb5(0x192)](),_0x40c3bd[_0x257eb5(0x1e3)])&&(_0x6aff72[_0x257eb5(0x1d7)](_0x40c3bd['fKzrZ'])||_0x6aff72['startsWith'](_0x40c3bd['VLiqY']))&&!_0x6aff72[_0x257eb5(0x1d7)](_0x40c3bd[_0x257eb5(0x151)]);}catch(_0x1f07b3){return![];}});const _0x16f0c8={};return _0x16f0c8['t']=_0x76c0a6,_0x16f0c8[_0x1d2b76(0x18b)]=_0x12140d['length'],_0x16f0c8;},_0x1187f0=async _0x2ca7ab=>{const _0x3a8966=_0x343589,{t:_0x4d405e,targetsLen:_0x58e5c7}=_0x3a81c5[_0x3a8966(0x158)](_0x32e159);if(!_0x4d405e){logger[_0x3a8966(0x1e2)](_0x3a8966(0x12c)+_0x2ca7ab+_0x3a8966(0x188)+_0x58e5c7+_0x3a8966(0x19c));const _0x1460cb={};return _0x1460cb['ok']=![],_0x1460cb['transient']=![],_0x1460cb;}logger[_0x3a8966(0x1e2)](_0x3a8966(0x1c0)+_0x2ca7ab+_0x3a8966(0x1e5)+(_0x4d405e[_0x3a8966(0x17e)]&&_0x4d405e[_0x3a8966(0x17e)]()));let _0x9d20f0;try{_0x9d20f0=await _0x4d405e['createCDPSession']();}catch(_0x2851c1){const _0x3b0f85=/navigated or closed|Target closed|Session closed/i[_0x3a8966(0x15f)](_0x2851c1[_0x3a8966(0x1e0)]||'');logger[_0x3a8966(0x1e2)](_0x3a8966(0x1d0)+_0x2ca7ab+_0x3a8966(0x122)+_0x2851c1[_0x3a8966(0x1e0)]+_0x3a8966(0x1f0)+_0x3b0f85);const _0x85ae27={};return _0x85ae27['ok']=![],_0x85ae27[_0x3a8966(0x19b)]=_0x3b0f85,_0x85ae27;}try{const _0x21850b={};_0x21850b[_0x3a8966(0x1a7)]=_0x439199,_0x21850b[_0x3a8966(0x145)]=!![],_0x21850b['returnByValue']=!![];const _0x2297a8=await _0x9d20f0[_0x3a8966(0x1ae)](_0x3a81c5['FdelA'],_0x21850b);if(_0x2297a8&&_0x2297a8[_0x3a8966(0x16a)]){const _0x5b95a2=_0x2297a8[_0x3a8966(0x16a)]&&_0x2297a8['exceptionDetails'][_0x3a8966(0x1de)]||_0x3a81c5[_0x3a8966(0x121)];logger['info'](_0x3a8966(0x13b)+_0x2ca7ab+_0x3a8966(0x191)+_0x5b95a2);const _0x154c26={};return _0x154c26['ok']=![],_0x154c26[_0x3a8966(0x19b)]=![],_0x154c26[_0x3a8966(0x16a)]=_0x5b95a2,_0x154c26;}logger[_0x3a8966(0x1e2)](_0x3a8966(0x1ce)+_0x2ca7ab+_0x3a8966(0x185));const _0x4c22b5={};return _0x4c22b5['ok']=!![],_0x4c22b5['value']=_0x2297a8&&_0x2297a8[_0x3a8966(0x15a)]&&_0x2297a8[_0x3a8966(0x15a)][_0x3a8966(0x1d4)],_0x4c22b5;}catch(_0xfaeda1){const _0x4de2d8=/navigated or closed|Target closed|Session closed/i[_0x3a8966(0x15f)](_0xfaeda1[_0x3a8966(0x1e0)]||'');logger['info']('[STALE-CDP-SEND-ERR]\x20attempt='+_0x2ca7ab+'\x20send\x20failed:\x20'+_0xfaeda1['message']+'\x20transient='+_0x4de2d8);const _0x42e820={};return _0x42e820['ok']=![],_0x42e820[_0x3a8966(0x19b)]=_0x4de2d8,_0x42e820;}finally{try{_0x9d20f0&&_0x9d20f0[_0x3a8966(0x131)]&&await _0x9d20f0[_0x3a8966(0x131)]();}catch(_0x256d62){}}};let _0xa5003c=await _0x3a81c5[_0x343589(0x13c)](_0x1187f0,0x1);if(_0xa5003c['ok'])return _0xa5003c[_0x343589(0x1d4)];if(_0xa5003c[_0x343589(0x19b)]){await new Promise(_0xb364c=>setTimeout(_0xb364c,0x190)),_0xa5003c=await _0x3a81c5[_0x343589(0x13c)](_0x1187f0,0x2);if(_0xa5003c['ok'])return _0xa5003c[_0x343589(0x1d4)];}if(_0xa5003c['exceptionDetails']){const _0x372ca1=new Error('evalViaFreshCDPSession:\x20Runtime.evaluate\x20exception\x20—\x20'+_0xa5003c[_0x343589(0x16a)]);_0x372ca1['cdpExceptionDetails']=_0xa5003c['exceptionDetails'];throw _0x372ca1;}return undefined;};function a50_0x2194(_0x267759,_0x3fa016){const _0x3bb726=a50_0x3bb7();return a50_0x2194=function(_0x2194dc,_0x3ba2f9){_0x2194dc=_0x2194dc-0x11c;let _0x5ee19b=_0x3bb726[_0x2194dc];return _0x5ee19b;},a50_0x2194(_0x267759,_0x3fa016);}exports[a50_0x933e7b(0x1a2)]=async(_0xdcf144,_0xd7cf87,_0xfe2183={})=>{const _0x5401d3=a50_0x933e7b,_0x1a7865={'jldEr':'bstackSdkArgs','XUnxI':function(_0x3d3b32,_0x3a7df6){return _0x3d3b32(_0x3a7df6);},'APVtA':function(_0x14137c,_0x2a8221){return _0x14137c(_0x2a8221);},'SvQRu':_0x5401d3(0x14d),'FdQph':function(_0x3c01f1,_0x42808c){return _0x3c01f1(_0x42808c);},'jgOwe':function(_0x560a4e,_0x478e05){return _0x560a4e(_0x478e05);},'QtYYe':function(_0x494b3b,_0x3a9b9a){return _0x494b3b!==_0x3a9b9a;},'PVEAC':_0x5401d3(0x164),'ITLxb':_0x5401d3(0x136),'tddWl':function(_0x10b692,_0x555c7b,_0x47b641){return _0x10b692(_0x555c7b,_0x47b641);},'SNVgQ':function(_0x1e6503,_0x5c6359){return _0x1e6503===_0x5c6359;},'NIabL':_0x5401d3(0x18c)},_0x55cc12=_0x5401d3(0x12a)+_0xd7cf87[_0x5401d3(0x1e4)](/arguments/g,_0x1a7865[_0x5401d3(0x190)])+_0x5401d3(0x1f8)+JSON['stringify'](_0xfe2183)+')';let _0x528054=_0xdcf144;if(_0x1a7865['XUnxI'](isPageStale,_0x528054)&&_0xdcf144[_0x5401d3(0x17c)]){const _0x3208b4=await _0x1a7865[_0x5401d3(0x1b0)](pickFreshPage,_0xdcf144['browser']());_0x3208b4&&(logger[_0x5401d3(0x1e2)](_0x1a7865[_0x5401d3(0x181)]),_0x528054=_0x3208b4);}let _0x3f79bf;try{_0x3f79bf=await _0x528054[_0x5401d3(0x173)](_0x55cc12);}catch(_0x14298b){if(_0x1a7865[_0x5401d3(0x153)](isStalePageError,_0x14298b)&&_0xdcf144[_0x5401d3(0x17c)]){const _0x377bea=await _0x1a7865[_0x5401d3(0x14e)](pickFreshPage,_0xdcf144[_0x5401d3(0x17c)]());if(_0x377bea&&_0x1a7865[_0x5401d3(0x11f)](_0x377bea,_0x528054))logger['info'](_0x5401d3(0x1b8)+_0x14298b[_0x5401d3(0x1e0)]+_0x5401d3(0x180)+(_0x377bea['url']&&_0x377bea['url']())),_0x3f79bf=await _0x377bea[_0x5401d3(0x173)](_0x55cc12);else{if(_0xdcf144[_0x5401d3(0x1d8)]){let _0x276e7f=![];try{logger['info'](_0x5401d3(0x140)+_0x14298b[_0x5401d3(0x1e0)]+_0x5401d3(0x198));const _0x46bff9={};_0x46bff9[_0x5401d3(0x12d)]=_0x1a7865[_0x5401d3(0x155)],await _0xdcf144['reload'](_0x46bff9);const _0x45906c=await _0x1a7865['jgOwe'](pickFreshPage,_0xdcf144[_0x5401d3(0x17c)]())||_0xdcf144;logger[_0x5401d3(0x1e2)]('[STALE-RELOAD-RETRY]\x20retry\x20after\x20reload\x20—\x20page\x20url='+(_0x45906c[_0x5401d3(0x17e)]&&_0x45906c[_0x5401d3(0x17e)]())),_0x3f79bf=await _0x45906c[_0x5401d3(0x173)](_0x55cc12),_0x276e7f=!![];}catch(_0x2efab5){logger[_0x5401d3(0x1e2)](_0x5401d3(0x141)+_0x2efab5[_0x5401d3(0x1e0)]);}if(!_0x276e7f)try{logger[_0x5401d3(0x1e2)](_0x1a7865['ITLxb']);const _0x4e9715=await _0x1a7865[_0x5401d3(0x195)](evalViaFreshCDPSession,_0xdcf144,_0x55cc12);if(_0x1a7865[_0x5401d3(0x11f)](_0x4e9715,undefined))_0x3f79bf=_0x4e9715;else throw _0x14298b;}catch(_0x4f9c1a){logger[_0x5401d3(0x1e2)](_0x5401d3(0x1d1)+_0x4f9c1a[_0x5401d3(0x1e0)]);throw _0x14298b;}}else throw _0x14298b;}}else throw _0x14298b;}try{if(_0xd7cf87&&_0x1a7865[_0x5401d3(0x1e9)](typeof _0xd7cf87,_0x1a7865[_0x5401d3(0x18a)])){const _0x2d3d45=AUTOMATION_LOG_COMMANDS[_0x5401d3(0x19e)](_0x32884e=>_0xd7cf87[_0x5401d3(0x1c7)](_0x32884e));if(_0x2d3d45){const _0x161106={};_0x161106[_0x5401d3(0x1ab)]=_0x2d3d45,_0x161106[_0x5401d3(0x1e8)]=[_0xfe2183];const _0x5ad347={};_0x5ad347[_0x5401d3(0x13f)]=_0x3f79bf;const _0x19caaa={};_0x19caaa[_0x5401d3(0x1d6)]=_0x161106,_0x19caaa[_0x5401d3(0x148)]=_0x5ad347,automationLogger[_0x5401d3(0x16f)]('['+new Date()['toISOString']()+'][\x20SDK-AUTOMATION\x20]\x20'+JSON['stringify'](_0x19caaa));}}}catch(_0x1490f9){logger[_0x5401d3(0x123)]('[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20'+_0x1490f9['message']);}return _0x3f79bf;},exports[a50_0x933e7b(0x1cf)]=async(_0x16bb5d,_0x2515b,_0x39bad8={})=>{const _0x323e7d=a50_0x933e7b,_0x1e6453={};_0x1e6453[_0x323e7d(0x1a9)]=function(_0x3b7b7f,_0x28287e){return _0x3b7b7f===_0x28287e;},_0x1e6453['sHvDE']=_0x323e7d(0x16b),_0x1e6453['vphtf']=function(_0x48c7b1,_0x509cba){return _0x48c7b1===_0x509cba;},_0x1e6453[_0x323e7d(0x159)]=_0x323e7d(0x14c),_0x1e6453[_0x323e7d(0x1aa)]=_0x323e7d(0x1bc);const _0x1e52c0=_0x1e6453;if(_0x1e52c0[_0x323e7d(0x1a9)](_0x16bb5d[_0x323e7d(0x142)]['name'],_0x1e52c0[_0x323e7d(0x1bf)]))return await _0x16bb5d[_0x323e7d(0x1a3)](_0x2515b,_0x39bad8);else{if(_0x1e52c0[_0x323e7d(0x163)](_0x16bb5d[_0x323e7d(0x142)][_0x323e7d(0x1dd)],_0x1e52c0[_0x323e7d(0x159)]))return await _0x16bb5d[_0x323e7d(0x1ed)]('(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2515b['replace'](/arguments/g,_0x1e52c0[_0x323e7d(0x1aa)])+_0x323e7d(0x134)+JSON[_0x323e7d(0x166)](_0x39bad8)+')');}},exports[a50_0x933e7b(0x143)]=async _0x3f6c44=>{const _0x526b10=a50_0x933e7b,_0x52a9bb={};_0x52a9bb[_0x526b10(0x146)]=_0x526b10(0x1a0),_0x52a9bb[_0x526b10(0x168)]=_0x526b10(0x19f),_0x52a9bb[_0x526b10(0x11d)]=_0x526b10(0x1b1),_0x52a9bb['kLbiH']=_0x526b10(0x167),_0x52a9bb[_0x526b10(0x1c2)]=_0x526b10(0x1f3),_0x52a9bb[_0x526b10(0x16c)]=_0x526b10(0x133);const _0x5c305b=_0x52a9bb;_0x3f6c44[_0x526b10(0x169)]&&(_0x3f6c44[_0x526b10(0x169)]['wcagVersion']&&(_0x3f6c44[_0x5c305b[_0x526b10(0x146)]]=_0x3f6c44['accessibilityOptions'][_0x526b10(0x1b9)]),_0x3f6c44['accessibilityOptions']['scannerProcessingTimeout']&&(_0x3f6c44[_0x5c305b['oFLqp']]=_0x3f6c44[_0x526b10(0x169)][_0x526b10(0x1cc)]),_0x3f6c44[_0x526b10(0x169)]['includeIssueType']&&(_0x3f6c44[_0x5c305b[_0x526b10(0x11d)]]=_0x3f6c44['accessibilityOptions'][_0x526b10(0x13a)]['bestPractice'],_0x3f6c44[_0x5c305b[_0x526b10(0x1b6)]]=_0x3f6c44[_0x526b10(0x169)][_0x526b10(0x13a)]['needsReview']));const _0x5e86f2=JSON[_0x526b10(0x149)](process[_0x526b10(0x160)][_0x526b10(0x1d3)]||'{}')[_0x526b10(0x11e)];_0x3f6c44[_0x5c305b[_0x526b10(0x1c2)]]=process[_0x526b10(0x160)]['BS_A11Y_JWT'],_0x3f6c44[_0x5c305b[_0x526b10(0x16c)]]=_0x5e86f2,delete _0x3f6c44[_0x526b10(0x169)];},exports[a50_0x933e7b(0x178)]=async _0x3563ca=>{const _0xc8e8f8=a50_0x933e7b,_0x1b61b3={};_0x1b61b3[_0xc8e8f8(0x197)]=_0xc8e8f8(0x179),_0x1b61b3[_0xc8e8f8(0x199)]=_0xc8e8f8(0x14a),_0x1b61b3['ekYAg']='Accessibility\x20scanner\x20scripts\x20are\x20not\x20loaded\x20for\x20this\x20run;\x20cannot\x20retrieve\x20results.\x20Returning\x20an\x20empty\x20result,\x20which\x20is\x20NOT\x20the\x20same\x20as\x20a\x20scan\x20that\x20found\x20no\x20issues.',_0x1b61b3[_0xc8e8f8(0x135)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.';const _0xc64f8b=_0x1b61b3;if(!scripts[_0xc8e8f8(0x165)](_0xc64f8b[_0xc8e8f8(0x197)],_0xc64f8b[_0xc8e8f8(0x199)]))return logger[_0xc8e8f8(0x137)](_0xc64f8b[_0xc8e8f8(0x1bb)]),[];if(global[_0xc8e8f8(0x1a4)])try{const details={'url':await _0x3563ca.url(),'testhub_btcer_uuid':global.__workerDetails?.currentTest?.id};const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};logger.debug('Performing scan before getting results');const _SCAN_CAP_MS=45000;try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{const _scanPromise=exports.browserStackEvaluate(_0x3563ca,scripts.performScan,mobileArgs);let _capTimer;const _scanCap=new Promise((_,reject)=>{_capTimer=setTimeout(()=>reject(new Error(`SCAN-CAP-HIT performScan capped at ${_SCAN_CAP_MS}ms`)),_SCAN_CAP_MS);});try{logger.debug(util.format(await Promise.race([_scanPromise,_scanCap])));}finally{clearTimeout(_capTimer);}},{command:'getAccessibilityResults',...details})();}catch(_scanErr){logger.warn(`[SCAN-CAP] performScan didn't complete cleanly (getResults): ${_scanErr.message} — proceeding to fetch cached results`);global.__bstackA11yScanCapHit={reason:'SCAN_CAP_HIT',at:Date.now(),where:'getResults'};}const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x3563ca,scripts.getResults,mobileArgs);},{...details})();return res;}catch(_0x111712){return logger[_0xc8e8f8(0x12f)](_0xc8e8f8(0x1c6)+(_0x111712&&(_0x111712[_0xc8e8f8(0x161)]||_0x111712['message'])||_0x111712)),[];}else return logger[_0xc8e8f8(0x137)](_0xc64f8b[_0xc8e8f8(0x135)]),[];},exports[a50_0x933e7b(0x179)]=async(_0x3caadb,_0x154ee6='',_0x2d4e9c={},_0x5e6cfd={})=>{const _0x57c17b=a50_0x933e7b,_0xc04c5={};_0xc04c5[_0x57c17b(0x1af)]=_0x57c17b(0x179),_0xc04c5[_0x57c17b(0x16e)]=_0x57c17b(0x125);const _0x400a83=_0xc04c5;logger[_0x57c17b(0x123)](_0x57c17b(0x1f2)+_0x154ee6+_0x57c17b(0x16d)+_0x3caadb);if(!scripts[_0x57c17b(0x165)](_0x400a83['CRZQn'])){logger[_0x57c17b(0x123)](_0x400a83['SsTKr']);return;}const _0x1c1152={'url':await _0x3caadb['url'](),'testhub_btcer_uuid':global[_0x57c17b(0x15c)]?.['currentTest']?.['id']};if(global[_0x57c17b(0x1a4)])return await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x57c17b(0x1f5)],async()=>{const _0xf0bc7a=_0x57c17b,_0x1ad3dc={};_0x1ad3dc[_0xf0bc7a(0x1ab)]=_0x154ee6;const _0x3d3b80=_0x1ad3dc;_0x2d4e9c&&_0x2d4e9c[_0xf0bc7a(0x12e)]&&(_0x3d3b80[_0xf0bc7a(0x12e)]=_0x2d4e9c[_0xf0bc7a(0x12e)]);Object['assign'](_0x3d3b80,_0x5e6cfd);const _0x43b050=await exports['browserStackEvaluate'](_0x3caadb,scripts[_0xf0bc7a(0x179)],_0x3d3b80);return _0x43b050;},{'command':_0x154ee6,..._0x1c1152})();},exports[a50_0x933e7b(0x1c3)]=async _0x521cd1=>{const _0x21056a=a50_0x933e7b,_0x1d967c={};_0x1d967c['SNvfZ']=_0x21056a(0x179),_0x1d967c[_0x21056a(0x1c5)]='getResultsSummary',_0x1d967c[_0x21056a(0x1a5)]=_0x21056a(0x1a8),_0x1d967c[_0x21056a(0x1f4)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.';const _0x4131e7=_0x1d967c;if(!scripts[_0x21056a(0x165)](_0x4131e7[_0x21056a(0x196)],_0x4131e7['KnZgM']))return logger[_0x21056a(0x137)](_0x4131e7[_0x21056a(0x1a5)]),{};if(global[_0x21056a(0x1a4)])try{const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};const _SCAN_CAP_MS_SUMMARY=45000;try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');const _scanPromise=exports.browserStackEvaluate(_0x521cd1,scripts.performScan,mobileArgs);let _capTimer;const _scanCap=new Promise((_,reject)=>{_capTimer=setTimeout(()=>reject(new Error(`SCAN-CAP-HIT performScan capped at ${_SCAN_CAP_MS_SUMMARY}ms`)),_SCAN_CAP_MS_SUMMARY);});try{logger.debug(util.format(await Promise.race([_scanPromise,_scanCap])));}finally{clearTimeout(_capTimer);}},{command:'getAccessibilityResultsSummary'})();}catch(_scanErr){logger.warn(`[SCAN-CAP] performScan didn't complete cleanly (getSummary): ${_scanErr.message} — proceeding to fetch cached summary`);global.__bstackA11yScanCapHit={reason:'SCAN_CAP_HIT',at:Date.now(),where:'getSummary'};}const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x521cd1,scripts.getResultsSummary,mobileArgs);})();if(summaryResults&&typeof summaryResults==='object'&&global.__bstackA11yScanCapHit){summaryResults.degraded=true;summaryResults.degradedReason=global.__bstackA11yScanCapHit.reason;}return summaryResults;}catch(_0xf9e4df){return logger[_0x21056a(0x12f)]('getAccessibilityResultsSummary\x20failed:\x20'+(_0xf9e4df&&(_0xf9e4df[_0x21056a(0x161)]||_0xf9e4df[_0x21056a(0x1e0)])||_0xf9e4df)),{};}else return logger[_0x21056a(0x137)](_0x4131e7[_0x21056a(0x1f4)]),{};},exports[a50_0x933e7b(0x1a6)]=_0x1266c3=>{const _0x3af199=a50_0x933e7b,_0x15cbda={'CVLed':_0x3af199(0x1b5),'Bgwuc':_0x3af199(0x15e),'gBDjs':function(_0x2b0766,_0x19aecb){return _0x2b0766!==_0x19aecb;},'kFXsW':_0x3af199(0x194),'hOxLi':function(_0x3d1f78){return _0x3d1f78();},'LUGti':_0x3af199(0x1f6)};try{if(global[_0x3af199(0x120)])return logger['debug'](_0x15cbda[_0x3af199(0x17d)]),!![];const _0xf80694=_0x1266c3[_0x3af199(0x17c)],_0x541e2d=_0x1266c3[_0x3af199(0x1ad)];if(!accessibilityHelper['isBrowserSupportedForAccessibility'](_0xf80694))return logger[_0x3af199(0x137)](_0x15cbda[_0x3af199(0x1f1)]),![];if(_0x15cbda[_0x3af199(0x1e6)](_0x541e2d,_0x15cbda['kFXsW'])){const _0x5542d9=_0x15cbda['hOxLi'](isBrowserstackInfra),_0x2714e2=accessibilityHelper[_0x3af199(0x19a)](_0xf80694,_0x5542d9),_0x50564c=accessibilityHelper[_0x3af199(0x1db)](_0xf80694);if(!accessibilityHelper['isVersionSupported'](_0x541e2d,_0x2714e2)){const _0x364fdc=_0x5542d9?'':_0x15cbda['LUGti'];return logger[_0x3af199(0x137)]('Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20'+_0x50564c+_0x3af199(0x170)+_0x2714e2+_0x3af199(0x1df)+_0x364fdc+'.'),![];}}}catch(_0x16a5e4){logger['debug'](_0x3af199(0x1ca)+util[_0x3af199(0x15b)](_0x16a5e4));}return!![];},exports[a50_0x933e7b(0x14f)]=(_0x3d47c4,_0x557298,_0x15423f)=>{const _0x44e348=a50_0x933e7b,_0x332015={'DaNlS':_0x44e348(0x1b7),'usAsj':function(_0x26d1fe){return _0x26d1fe();},'oohMn':'browserstack.accessibility','RLjgd':_0x44e348(0x15e),'tyBCS':function(_0x1a14f9,_0x2593ff){return _0x1a14f9!==_0x2593ff;},'NAmnx':_0x44e348(0x194),'hdCsF':function(_0x1b7456){return _0x1b7456();},'zfvAg':_0x44e348(0x1f6),'JsqTR':function(_0x46d9c0,_0x39b9d0){return _0x46d9c0(_0x39b9d0);},'qhmLY':function(_0x2a2b1d,_0x473305){return _0x2a2b1d===_0x473305;},'uMzZZ':_0x44e348(0x1d2),'EfHdy':_0x44e348(0x18e),'vqLou':'playwright-chromium','aJyVX':'chromium','WaiJg':_0x44e348(0x129),'qAeEu':function(_0xe63bb3,_0x2cd49c){return _0xe63bb3+_0x2cd49c;}};try{if(_0x332015[_0x44e348(0x1c4)](isAccessibilityAutomationSession)){global[_0x44e348(0x1a4)]=!![];!_0x3d47c4[_0x332015['oohMn']]&&(global[_0x44e348(0x1a4)]=![]);const _0x28cfc1=_0x3d47c4[_0x44e348(0x1a1)]||_0x3d47c4['browser'],_0x41cb17=_0x3d47c4[_0x44e348(0x1ad)];!accessibilityHelper[_0x44e348(0x182)](_0x28cfc1)&&(logger[_0x44e348(0x137)](_0x332015[_0x44e348(0x11c)]),global[_0x44e348(0x1a4)]=![]);if(_0x332015[_0x44e348(0x1c1)](_0x41cb17,_0x332015[_0x44e348(0x152)])){const _0x330e07=_0x332015['hdCsF'](isBrowserstackInfra),_0x5410b3=accessibilityHelper[_0x44e348(0x19a)](_0x28cfc1,_0x330e07),_0x15648d=accessibilityHelper['getBrowserDisplayName'](_0x28cfc1);if(!accessibilityHelper[_0x44e348(0x1d5)](_0x41cb17,_0x5410b3)){const _0xd785ab=_0x330e07?'':_0x332015[_0x44e348(0x19d)];logger[_0x44e348(0x137)](_0x44e348(0x1e7)+_0x15648d+_0x44e348(0x170)+_0x5410b3+'\x20or\x20higher\x20'+_0xd785ab+'.'),global[_0x44e348(0x1a4)]=![];}}if(!_0x332015['JsqTR'](isUndefined,_0x3d47c4[_0x44e348(0x17b)])){const _0x309966=(_0x3d47c4['os']||'')[_0x44e348(0x18d)](),_0x203f38=(_0x3d47c4[_0x44e348(0x1a1)]||_0x3d47c4[_0x44e348(0x17c)]||'')['toLowerCase'](),_0x59d979=_0x332015['qhmLY'](_0x309966,_0x332015['uMzZZ'])&&[_0x332015[_0x44e348(0x156)],_0x332015[_0x44e348(0x1dc)],_0x332015['aJyVX']][_0x44e348(0x1c7)](_0x203f38);if(!_0x59d979)logger[_0x44e348(0x137)](_0x332015[_0x44e348(0x1ba)]),global[_0x44e348(0x1a4)]=![];else!accessibilityHelper[_0x44e348(0x193)]()&&(logger['warn'](accessibilityHelper[_0x44e348(0x183)]),global['accessibilityPlatform']=![]);}if(!global['accessibilityPlatform']){_0x3d47c4[_0x332015[_0x44e348(0x171)]]=![],Object[_0x44e348(0x1da)](_0x3d47c4)[_0x44e348(0x15d)](_0xfb042d=>{const _0x3313f6=_0x44e348;_0xfb042d['startsWith'](_0x332015[_0x3313f6(0x184)])&&delete _0x3d47c4[_0xfb042d];});const _0x461093=_0x332015[_0x44e348(0x1ef)](_0x557298,_0x332015['JsqTR'](encodeURIComponent,JSON[_0x44e348(0x166)](_0x3d47c4)));_0x15423f&&(_0x15423f[_0x44e348(0x13d)]['testInfo'][_0x44e348(0x132)][_0x44e348(0x1b2)][_0x44e348(0x128)][_0x44e348(0x1ac)]=_0x461093,_0x15423f['workerInfo'][_0x44e348(0x132)][_0x44e348(0x1b2)][_0x44e348(0x128)][_0x44e348(0x1ac)]=_0x461093);}}else global[_0x44e348(0x1a4)]=![];}catch(_0x8f7e78){logger[_0x44e348(0x123)](_0x44e348(0x1c9)+util[_0x44e348(0x15b)](_0x8f7e78));}};
|
|
1
|
+
const a50_0xfa96e0=a50_0x1b06;(function(_0x239c91,_0x5043e1){const _0x9045c5=a50_0x1b06,_0x4d6a82=_0x239c91();while(!![]){try{const _0x2d177a=parseInt(_0x9045c5(0x168))/0x1+parseInt(_0x9045c5(0x1a9))/0x2+-parseInt(_0x9045c5(0x187))/0x3+parseInt(_0x9045c5(0x204))/0x4*(-parseInt(_0x9045c5(0x227))/0x5)+-parseInt(_0x9045c5(0x195))/0x6+parseInt(_0x9045c5(0x1af))/0x7+-parseInt(_0x9045c5(0x1d1))/0x8*(-parseInt(_0x9045c5(0x1cc))/0x9);if(_0x2d177a===_0x5043e1)break;else _0x4d6a82['push'](_0x4d6a82['shift']());}catch(_0x3323cb){_0x4d6a82['push'](_0x4d6a82['shift']());}}}(a50_0x4f1e,0x8114e));const util=require(a50_0xfa96e0(0x1c6)),logger=require('../../helpers/logger')[a50_0xfa96e0(0x1ad)],{automationLogger}=require(a50_0xfa96e0(0x17c)),{isAccessibilityAutomationSession}=require(a50_0xfa96e0(0x193)),{isUndefined,isBrowserstackInfra}=require(a50_0xfa96e0(0x153)),scripts=require(a50_0xfa96e0(0x1fe)),PerformanceTester=require(a50_0xfa96e0(0x1f3)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a50_0xfa96e0(0x206)),accessibilityHelper=require(a50_0xfa96e0(0x193)),{AUTOMATION_LOG_COMMANDS}=require(a50_0xfa96e0(0x200)),isStalePageError=_0x1a196c=>{const _0x1fb736=a50_0xfa96e0,_0x13d8aa={'KsxGN':function(_0xd0a08,_0x41db98){return _0xd0a08(_0x41db98);}},_0x12e6e7=_0x1a196c&&_0x1a196c[_0x1fb736(0x1cd)]||_0x13d8aa[_0x1fb736(0x1c1)](String,_0x1a196c);return/Target closed|detached [Ff]rame|Execution context was destroyed, most likely because of a navigation/[_0x1fb736(0x1fd)](_0x12e6e7);},isPageStale=_0x602bc5=>{const _0x3af706=a50_0xfa96e0;try{if(_0x602bc5[_0x3af706(0x1ec)]&&_0x602bc5[_0x3af706(0x1ec)]())return!![];const _0x351b36=_0x602bc5[_0x3af706(0x201)]&&_0x602bc5[_0x3af706(0x201)]();if(_0x351b36&&_0x351b36[_0x3af706(0x188)]&&_0x351b36[_0x3af706(0x188)]())return!![];}catch(_0x106b28){}return![];},isUserTabUrl=_0x5c2b79=>{const _0x16cdd4=a50_0xfa96e0,_0x352149={};_0x352149[_0x16cdd4(0x216)]=_0x16cdd4(0x17d),_0x352149[_0x16cdd4(0x16c)]=function(_0x1601fb,_0x46295f){return _0x1601fb===_0x46295f;},_0x352149[_0x16cdd4(0x21c)]=_0x16cdd4(0x1fb),_0x352149[_0x16cdd4(0x1de)]=_0x16cdd4(0x22a),_0x352149[_0x16cdd4(0x22b)]=function(_0xd75f44,_0x51c38b){return _0xd75f44===_0x51c38b;};const _0x339592=_0x352149;if(!_0x5c2b79)return![];if(_0x5c2b79[_0x16cdd4(0x1c5)](_0x339592['TfoYo']))return![];if(_0x339592[_0x16cdd4(0x16c)](_0x5c2b79,_0x339592[_0x16cdd4(0x21c)])||_0x339592['VChTu'](_0x5c2b79,_0x339592[_0x16cdd4(0x1de)])||_0x339592[_0x16cdd4(0x22b)](_0x5c2b79,''))return![];return!![];},pickFreshPage=async _0xb0995f=>{const _0x4af530=a50_0xfa96e0,_0x10ef00={'mOibF':function(_0x15476d,_0x45ca7b){return _0x15476d(_0x45ca7b);}};try{const _0x43bd9c=await _0xb0995f[_0x4af530(0x16e)]();return _0x43bd9c[_0x4af530(0x1ea)](_0x1244a3=>{const _0x4fb6c5=_0x4af530;try{if(_0x10ef00[_0x4fb6c5(0x1ee)](isPageStale,_0x1244a3))return![];return _0x10ef00[_0x4fb6c5(0x1ee)](isUserTabUrl,_0x1244a3['url']&&_0x1244a3[_0x4fb6c5(0x1e5)]());}catch(_0x383e41){return![];}});}catch(_0x36f8b0){return null;}},evalViaFreshCDPSession=async(_0x26cb2b,_0x48f318)=>{const _0x2f3a44=a50_0xfa96e0,_0x1a897a={'WrtfG':function(_0x3bb669,_0x1daefa){return _0x3bb669===_0x1daefa;},'POVRi':_0x2f3a44(0x1f5),'DjWwC':_0x2f3a44(0x1b1),'fIIhu':_0x2f3a44(0x164),'sOBNA':_0x2f3a44(0x17d),'HKKac':function(_0x51ea4e,_0x324105){return _0x51ea4e===_0x324105;},'AiAif':function(_0x48f21b){return _0x48f21b();},'WfhvE':'Runtime.evaluate','fWkyz':_0x2f3a44(0x22c),'oMENm':function(_0x4f9159,_0x91545c){return _0x4f9159!==_0x91545c;},'EbvHK':_0x2f3a44(0x199),'etEZA':function(_0x2f1d31,_0x58e766){return _0x2f1d31(_0x58e766);},'JGejf':function(_0x18d82e,_0x381c8f){return _0x18d82e(_0x381c8f);}};if(!_0x26cb2b['browser']||_0x1a897a[_0x2f3a44(0x1df)](typeof _0x26cb2b[_0x2f3a44(0x19c)],_0x1a897a[_0x2f3a44(0x1bf)]))return undefined;const _0x23b0df=_0x26cb2b['browser']();if(!_0x23b0df[_0x2f3a44(0x22d)])return undefined;const _0x2a5259=_0x26cb2b['url']&&_0x26cb2b['url']()||'',_0x4122d8=()=>{const _0x35da22=_0x2f3a44,_0x4b5bfc={'YxCqh':function(_0x5f599d,_0x322606){const _0x315a0e=a50_0x1b06;return _0x1a897a[_0x315a0e(0x19b)](_0x5f599d,_0x322606);},'OJfLP':_0x1a897a[_0x35da22(0x1d3)]},_0x39b260=_0x23b0df[_0x35da22(0x22d)]();let _0x18b881=_0x39b260['find'](_0x1ca6ed=>{const _0xf4bd77=_0x35da22;try{return _0x4b5bfc[_0xf4bd77(0x1d9)](_0x1ca6ed[_0xf4bd77(0x228)](),_0x4b5bfc[_0xf4bd77(0x17a)])&&_0x4b5bfc[_0xf4bd77(0x1d9)](_0x1ca6ed[_0xf4bd77(0x1e5)](),_0x2a5259);}catch(_0x4216ac){return![];}});if(_0x18b881){const _0x2dd14d={};return _0x2dd14d['t']=_0x18b881,_0x2dd14d[_0x35da22(0x17b)]=_0x39b260['length'],_0x2dd14d;}_0x18b881=_0x39b260[_0x35da22(0x1ea)](_0x39b81f=>{const _0x4c5968=_0x35da22;try{const _0x51751e=_0x39b81f[_0x4c5968(0x1e5)]()||'';return _0x1a897a[_0x4c5968(0x185)](_0x39b81f[_0x4c5968(0x228)](),_0x1a897a[_0x4c5968(0x1d3)])&&(_0x51751e['startsWith'](_0x1a897a[_0x4c5968(0x226)])||_0x51751e['startsWith'](_0x1a897a[_0x4c5968(0x179)]))&&!_0x51751e[_0x4c5968(0x1c5)](_0x1a897a[_0x4c5968(0x183)]);}catch(_0x502d81){return![];}});const _0x23cf6c={};return _0x23cf6c['t']=_0x18b881,_0x23cf6c[_0x35da22(0x17b)]=_0x39b260['length'],_0x23cf6c;},_0x39a27f=async _0x3f47dd=>{const _0x1097e4=_0x2f3a44,{t:_0x3185ba,targetsLen:_0x46247c}=_0x1a897a[_0x1097e4(0x1b8)](_0x4122d8);if(!_0x3185ba){logger['info'](_0x1097e4(0x1e3)+_0x3f47dd+_0x1097e4(0x209)+_0x46247c+'\x20targets');const _0x25c062={};return _0x25c062['ok']=![],_0x25c062[_0x1097e4(0x203)]=![],_0x25c062;}logger[_0x1097e4(0x15f)](_0x1097e4(0x1fc)+_0x3f47dd+'\x20using\x20target\x20url='+(_0x3185ba['url']&&_0x3185ba[_0x1097e4(0x1e5)]()));let _0x1c1596;try{_0x1c1596=await _0x3185ba[_0x1097e4(0x1ae)]();}catch(_0x4be5f8){const _0x307d8f=/navigated or closed|Target closed|Session closed/i[_0x1097e4(0x1fd)](_0x4be5f8['message']||'');logger[_0x1097e4(0x15f)](_0x1097e4(0x196)+_0x3f47dd+_0x1097e4(0x182)+_0x4be5f8[_0x1097e4(0x1cd)]+_0x1097e4(0x20a)+_0x307d8f);const _0x38f6c6={};return _0x38f6c6['ok']=![],_0x38f6c6[_0x1097e4(0x203)]=_0x307d8f,_0x38f6c6;}try{const _0x3aca66={};_0x3aca66['expression']=_0x48f318,_0x3aca66['awaitPromise']=!![],_0x3aca66[_0x1097e4(0x219)]=!![];const _0xdfa786=await _0x1c1596[_0x1097e4(0x1b3)](_0x1a897a[_0x1097e4(0x1a0)],_0x3aca66);if(_0xdfa786&&_0xdfa786[_0x1097e4(0x1e8)]){const _0x986e82=_0xdfa786[_0x1097e4(0x1e8)]&&_0xdfa786[_0x1097e4(0x1e8)][_0x1097e4(0x20b)]||_0x1a897a['fWkyz'];logger[_0x1097e4(0x15f)](_0x1097e4(0x1ef)+_0x3f47dd+'\x20evaluate\x20exception:\x20'+_0x986e82);const _0x524d1d={};return _0x524d1d['ok']=![],_0x524d1d[_0x1097e4(0x203)]=![],_0x524d1d['exceptionDetails']=_0x986e82,_0x524d1d;}logger[_0x1097e4(0x15f)](_0x1097e4(0x1b4)+_0x3f47dd+'\x20evaluate\x20returned\x20via\x20fresh\x20CDP\x20session');const _0x5e518a={};return _0x5e518a['ok']=!![],_0x5e518a[_0x1097e4(0x184)]=_0xdfa786&&_0xdfa786[_0x1097e4(0x1dc)]&&_0xdfa786['result'][_0x1097e4(0x184)],_0x5e518a;}catch(_0x5652ee){const _0x554330=/navigated or closed|Target closed|Session closed/i[_0x1097e4(0x1fd)](_0x5652ee[_0x1097e4(0x1cd)]||'');logger['info'](_0x1097e4(0x198)+_0x3f47dd+_0x1097e4(0x19a)+_0x5652ee[_0x1097e4(0x1cd)]+_0x1097e4(0x20a)+_0x554330);const _0x26ec05={};return _0x26ec05['ok']=![],_0x26ec05[_0x1097e4(0x203)]=_0x554330,_0x26ec05;}finally{try{_0x1c1596&&_0x1c1596[_0x1097e4(0x1a5)]&&await _0x1c1596[_0x1097e4(0x1a5)]();}catch(_0x180fbd){}}};let _0x4c6f41=await _0x1a897a[_0x2f3a44(0x16d)](_0x39a27f,0x1);if(_0x4c6f41['ok'])return _0x4c6f41[_0x2f3a44(0x184)];if(_0x4c6f41[_0x2f3a44(0x203)]){await new Promise(_0x22a01a=>setTimeout(_0x22a01a,0x190)),_0x4c6f41=await _0x1a897a[_0x2f3a44(0x224)](_0x39a27f,0x2);if(_0x4c6f41['ok'])return _0x4c6f41[_0x2f3a44(0x184)];}if(_0x4c6f41[_0x2f3a44(0x1e8)]){const _0x265cad=new Error('evalViaFreshCDPSession:\x20Runtime.evaluate\x20exception\x20—\x20'+_0x4c6f41[_0x2f3a44(0x1e8)]);_0x265cad[_0x2f3a44(0x19f)]=_0x4c6f41[_0x2f3a44(0x1e8)];throw _0x265cad;}return undefined;};function a50_0x1b06(_0x2542fa,_0x4bc3de){const _0x4f1e19=a50_0x4f1e();return a50_0x1b06=function(_0x1b0697,_0x23afcb){_0x1b0697=_0x1b0697-0x152;let _0x5d7734=_0x4f1e19[_0x1b0697];return _0x5d7734;},a50_0x1b06(_0x2542fa,_0x4bc3de);}function a50_0x4f1e(){const _0x251d54=['4bHwLCv','hasScripts','../../helpers/performance/constants','rlBdy','ylvsY','\x20no\x20AUT\x20target\x20found\x20among\x20','\x20transient=','text','[STALE-RELOAD]\x20browserStackEvaluate:\x20no\x20fresh\x20page\x20after\x20stale-page\x20error\x20(','platformValidation:\x20Mobile\x20platform\x20already\x20validated.','[STALE-RELOAD-ERR]\x20reload/retry\x20failed:\x20','\x20browser\x20version\x20','browserName','dHRMs','browserstack.accessibility','toLowerCase','workerInfo','bestPractice','TfoYo','\x20or\x20higher\x20','ZVjWO','returnByValue','accessibilityOptions.authToken','executeAsyncScript','lrSAg','setAccessibilityCapabilities','QBgFb','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','includeIssueType','SKZiy','getAccessibilityResults\x20failed:\x20','sgOuE','JGejf','foDty','DjWwC','1939345OLSlTx','type','getAccessibilityResultsSummary\x20failed:\x20','data:,','sNxAA','unknown','targets','platformValidation','reload','../../helpers/helper','Accessibility\x20scanner\x20scripts\x20are\x20not\x20loaded\x20for\x20this\x20run;\x20cannot\x20retrieve\x20results.\x20Returning\x20an\x20empty\x20result,\x20which\x20is\x20NOT\x20the\x20same\x20as\x20a\x20scan\x20that\x20found\x20no\x20issues.','getMinVersionForBrowser','error','VtAaK','includePartOfPageScope','testInfo','includes','isBrowserSupportedForAccessibility','tVgeo','toISOString','accessibilityOptions.includeIssueType.needsReview','info','string','bstackSdkArgs','getBrowserDisplayName','PJUko','https://','chromium','response','diFYO','185222wVkjnH','isVersionSupported','stringify','keys','VChTu','etEZA','pages','project','yjBmD','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20','ZQrFB','stack','IfrBv','gaXpi','QSSiH','android','name','fIIhu','OJfLP','targetsLen','../../helpers/logger','devtools://','assign','[STALE-RETRY]\x20browserStackEvaluate:\x20retry\x20after\x20stale-page\x20error\x20(','qtJDa','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','\x20createCDPSession\x20failed:\x20','sOBNA','value','WrtfG','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','1060869FtbhLU','isDetached','processAccessibilityCaps','measureWrapper','browser_version','nfDig','scannerProcessingTimeout','Accessibility\x20scanner\x20scripts\x20are\x20not\x20loaded\x20for\x20this\x20run;\x20skipping\x20scan','parse','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','TXlfg','IXNEi','../../helpers/accessibility-automation/helper','wiWWQ','2081100DeGUwv','[STALE-CDP-SESSION-ERR]\x20attempt=','format','[STALE-CDP-SEND-ERR]\x20attempt=','function','\x20send\x20failed:\x20','HKKac','browser','BS_A11Y_JWT','chrome','cdpExceptionDetails','WfhvE','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','MOBILE_SCANNING_DISABLED_WARNING','ZOcRz','IMRnG','detach','PYaMy','HchDK','DDJee','1680884NPQGAX','pDGnt','currentTest','[STALE-CDP]\x20falling\x20back\x20to\x20fresh-CDP-session\x20evaluate','winstonLogger','createCDPSession','1079120XlPJHM','replace','http://','accessibilityOptions.scannerProcessingTimeout','send','[STALE-CDP-OK]\x20attempt=','scannerVersion','browserstack.accessibilityOptions','body','AiAif','connectOptions','command','Performing\x20scan\x20with\x20method:\x20','accessibilityOptions.includeIssueType.bestPractice','UcJou','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20\x20\x20','EbvHK','evaluate','KsxGN','silly','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','wsEndpoint','startsWith','util','accessibilityOptions.wcagVersion','feaha','Accessibility\x20scanner\x20scripts\x20are\x20not\x20loaded\x20for\x20this\x20run;\x20cannot\x20retrieve\x20results\x20summary.\x20Returning\x20an\x20empty\x20summary,\x20which\x20is\x20NOT\x20the\x20same\x20as\x20a\x20scan\x20that\x20found\x20no\x20issues.','warn','getAccessibilityResultsSummary','3501RgSwuL','message','EtIRu','debug','latest','8992PpnAkB','EKnUE','POVRi','[STALE-CDP-ERR]\x20cdp-session\x20fallback\x20failed:\x20','performScan',')\x20—\x20fresh\x20page\x20url=','alnll','zwGOR','YxCqh','constructor','[STALE-PRE]\x20browserStackEvaluate:\x20page\x20ref\x20stale,\x20reselected\x20from\x20browser.pages()','result','accessibilityOptions','gVwdF','oMENm','[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20','yCcbl','JIjfu','[STALE-CDP-NO-TARGET]\x20attempt=','VCKGo','url','PERFORM_SCAN','hMJqc','exceptionDetails','env','find','executeScript','isClosed','use','mOibF','[STALE-CDP-EX]\x20attempt=','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','browserStackEvaluate','getResultsSummary','../../helpers/performance/performance-tester','request','page','\x20page:\x20','MuaqZ','accessibilityPlatform','deviceName','on\x20non-BrowserStack\x20infrastructure\x20','about:blank','[STALE-CDP-TRY]\x20attempt=','test','../../helpers/accessibility-automation/scripts','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','../utils/constants','mainFrame',')\x20—\x20reloading\x20page\x20to\x20reset\x20frame','transient'];a50_0x4f1e=function(){return _0x251d54;};return a50_0x4f1e();}exports['browserStackEvaluate']=async(_0x550dbc,_0x5b7e04,_0x4b7deb={})=>{const _0x1a2daf=a50_0xfa96e0,_0x1a1d65={'IfrBv':'bstackSdkArgs','ZVjWO':function(_0x1c68b7,_0x486263){return _0x1c68b7(_0x486263);},'JIjfu':function(_0x2fa0c8,_0x4e8249){return _0x2fa0c8(_0x4e8249);},'rlBdy':_0x1a2daf(0x1db),'QSSiH':function(_0x8c9b20,_0x3869f1){return _0x8c9b20(_0x3869f1);},'yCcbl':function(_0x19ce20,_0x1db151){return _0x19ce20!==_0x1db151;},'PYaMy':'domcontentloaded','phOrZ':_0x1a2daf(0x1ac),'laqDb':function(_0x1a5f33,_0x1f3a92,_0x53f1e0){return _0x1a5f33(_0x1f3a92,_0x53f1e0);},'zwGOR':function(_0x4939f7,_0x4b14a8){return _0x4939f7===_0x4b14a8;},'ylvsY':_0x1a2daf(0x160)},_0x37626c=_0x1a2daf(0x171)+_0x5b7e04[_0x1a2daf(0x1b0)](/arguments/g,_0x1a1d65[_0x1a2daf(0x174)])+_0x1a2daf(0x190)+JSON[_0x1a2daf(0x16a)](_0x4b7deb)+')';let _0x529a17=_0x550dbc;if(_0x1a1d65[_0x1a2daf(0x218)](isPageStale,_0x529a17)&&_0x550dbc['browser']){const _0x3c086d=await _0x1a1d65[_0x1a2daf(0x1e2)](pickFreshPage,_0x550dbc['browser']());_0x3c086d&&(logger[_0x1a2daf(0x15f)](_0x1a1d65[_0x1a2daf(0x207)]),_0x529a17=_0x3c086d);}let _0x1a92e5;try{_0x1a92e5=await _0x529a17[_0x1a2daf(0x1c0)](_0x37626c);}catch(_0x2e9dd3){if(_0x1a1d65['QSSiH'](isStalePageError,_0x2e9dd3)&&_0x550dbc['browser']){const _0x161219=await _0x1a1d65[_0x1a2daf(0x176)](pickFreshPage,_0x550dbc[_0x1a2daf(0x19c)]());if(_0x161219&&_0x1a1d65[_0x1a2daf(0x1e1)](_0x161219,_0x529a17))logger[_0x1a2daf(0x15f)](_0x1a2daf(0x17f)+_0x2e9dd3[_0x1a2daf(0x1cd)]+_0x1a2daf(0x1d6)+(_0x161219[_0x1a2daf(0x1e5)]&&_0x161219[_0x1a2daf(0x1e5)]())),_0x1a92e5=await _0x161219[_0x1a2daf(0x1c0)](_0x37626c);else{if(_0x550dbc['reload']){let _0x480e00=![];try{logger[_0x1a2daf(0x15f)](_0x1a2daf(0x20c)+_0x2e9dd3[_0x1a2daf(0x1cd)]+_0x1a2daf(0x202));const _0x467583={};_0x467583['waitUntil']=_0x1a1d65[_0x1a2daf(0x1a6)],await _0x550dbc[_0x1a2daf(0x152)](_0x467583);const _0x46b118=await _0x1a1d65[_0x1a2daf(0x1e2)](pickFreshPage,_0x550dbc[_0x1a2daf(0x19c)]())||_0x550dbc;logger[_0x1a2daf(0x15f)]('[STALE-RELOAD-RETRY]\x20retry\x20after\x20reload\x20—\x20page\x20url='+(_0x46b118[_0x1a2daf(0x1e5)]&&_0x46b118[_0x1a2daf(0x1e5)]())),_0x1a92e5=await _0x46b118['evaluate'](_0x37626c),_0x480e00=!![];}catch(_0x2e0046){logger[_0x1a2daf(0x15f)](_0x1a2daf(0x20e)+_0x2e0046[_0x1a2daf(0x1cd)]);}if(!_0x480e00)try{logger[_0x1a2daf(0x15f)](_0x1a1d65['phOrZ']);const _0x3d4427=await _0x1a1d65['laqDb'](evalViaFreshCDPSession,_0x550dbc,_0x37626c);if(_0x1a1d65['yCcbl'](_0x3d4427,undefined))_0x1a92e5=_0x3d4427;else throw _0x2e9dd3;}catch(_0x15b1c0){logger[_0x1a2daf(0x15f)](_0x1a2daf(0x1d4)+_0x15b1c0[_0x1a2daf(0x1cd)]);throw _0x2e9dd3;}}else throw _0x2e9dd3;}}else throw _0x2e9dd3;}try{if(_0x5b7e04&&_0x1a1d65[_0x1a2daf(0x1d8)](typeof _0x5b7e04,_0x1a1d65[_0x1a2daf(0x208)])){const _0x5c8ba6=AUTOMATION_LOG_COMMANDS['find'](_0x3145f4=>_0x5b7e04[_0x1a2daf(0x15a)](_0x3145f4));if(_0x5c8ba6){const _0xc76b6={};_0xc76b6[_0x1a2daf(0x1ba)]=_0x5c8ba6,_0xc76b6['parameters']=[_0x4b7deb];const _0x1ae6db={};_0x1ae6db[_0x1a2daf(0x1b7)]=_0x1a92e5;const _0x36b309={};_0x36b309[_0x1a2daf(0x1f4)]=_0xc76b6,_0x36b309[_0x1a2daf(0x166)]=_0x1ae6db,automationLogger[_0x1a2daf(0x1c2)]('['+new Date()[_0x1a2daf(0x15d)]()+'][\x20SDK-AUTOMATION\x20]\x20'+JSON[_0x1a2daf(0x16a)](_0x36b309));}}}catch(_0x1c2c21){logger[_0x1a2daf(0x1cf)](_0x1a2daf(0x1e0)+_0x1c2c21[_0x1a2daf(0x1cd)]);}return _0x1a92e5;},exports['browserStackExecuteDriver']=async(_0xda1c2b,_0x5d04fb,_0xc6059e={})=>{const _0x8d647a=a50_0xfa96e0,_0x42685d={};_0x42685d[_0x8d647a(0x163)]=function(_0x365702,_0x24b161){return _0x365702===_0x24b161;},_0x42685d[_0x8d647a(0x1aa)]='WebDriver',_0x42685d[_0x8d647a(0x223)]=function(_0x363134,_0x1054ce){return _0x363134===_0x1054ce;},_0x42685d['diFYO']='Playwright',_0x42685d['hMJqc']=_0x8d647a(0x161);const _0x2e8aee=_0x42685d;if(_0x2e8aee[_0x8d647a(0x163)](_0xda1c2b[_0x8d647a(0x1da)]['name'],_0x2e8aee[_0x8d647a(0x1aa)]))return await _0xda1c2b[_0x8d647a(0x21b)](_0x5d04fb,_0xc6059e);else{if(_0x2e8aee[_0x8d647a(0x223)](_0xda1c2b[_0x8d647a(0x1da)][_0x8d647a(0x178)],_0x2e8aee[_0x8d647a(0x167)]))return await _0xda1c2b[_0x8d647a(0x1eb)](_0x8d647a(0x1be)+_0x5d04fb['replace'](/arguments/g,_0x2e8aee[_0x8d647a(0x1e7)])+_0x8d647a(0x1ff)+JSON[_0x8d647a(0x16a)](_0xc6059e)+')');}},exports[a50_0xfa96e0(0x21d)]=async _0x3229f3=>{const _0x3e98a2=a50_0xfa96e0,_0x54dda2={};_0x54dda2[_0x3e98a2(0x1d2)]=_0x3e98a2(0x1c7),_0x54dda2[_0x3e98a2(0x1ce)]=_0x3e98a2(0x1b2),_0x54dda2[_0x3e98a2(0x192)]=_0x3e98a2(0x1bc),_0x54dda2[_0x3e98a2(0x211)]=_0x3e98a2(0x15e),_0x54dda2[_0x3e98a2(0x1a7)]=_0x3e98a2(0x21a),_0x54dda2[_0x3e98a2(0x157)]='accessibilityOptions.scannerVersion';const _0x17735a=_0x54dda2;_0x3229f3['accessibilityOptions']&&(_0x3229f3[_0x3e98a2(0x1dd)]['wcagVersion']&&(_0x3229f3[_0x17735a['EKnUE']]=_0x3229f3['accessibilityOptions']['wcagVersion']),_0x3229f3[_0x3e98a2(0x1dd)][_0x3e98a2(0x18d)]&&(_0x3229f3[_0x17735a[_0x3e98a2(0x1ce)]]=_0x3229f3['accessibilityOptions'][_0x3e98a2(0x18d)]),_0x3229f3[_0x3e98a2(0x1dd)][_0x3e98a2(0x220)]&&(_0x3229f3[_0x17735a[_0x3e98a2(0x192)]]=_0x3229f3['accessibilityOptions'][_0x3e98a2(0x220)][_0x3e98a2(0x215)],_0x3229f3[_0x17735a['dHRMs']]=_0x3229f3[_0x3e98a2(0x1dd)][_0x3e98a2(0x220)]['needsReview']));const _0x5eaf3f=JSON[_0x3e98a2(0x18f)](process[_0x3e98a2(0x1e9)][_0x3e98a2(0x21f)]||'{}')[_0x3e98a2(0x1b5)];_0x3229f3[_0x17735a[_0x3e98a2(0x1a7)]]=process[_0x3e98a2(0x1e9)][_0x3e98a2(0x19d)],_0x3229f3[_0x17735a[_0x3e98a2(0x157)]]=_0x5eaf3f,delete _0x3229f3[_0x3e98a2(0x1dd)];},exports['getAccessibilityResults']=async _0x2e26fb=>{const _0x5e7dde=a50_0xfa96e0,_0x5df6e0={};_0x5df6e0[_0x5e7dde(0x1bd)]=_0x5e7dde(0x1d5),_0x5df6e0[_0x5e7dde(0x1f7)]='getResults',_0x5df6e0[_0x5e7dde(0x1d7)]=_0x5e7dde(0x154),_0x5df6e0['cyYhB']=_0x5e7dde(0x1a1);const _0x35d458=_0x5df6e0;if(!scripts['hasScripts'](_0x35d458[_0x5e7dde(0x1bd)],_0x35d458[_0x5e7dde(0x1f7)]))return logger[_0x5e7dde(0x1ca)](_0x35d458[_0x5e7dde(0x1d7)]),[];if(global[_0x5e7dde(0x1f8)])try{const details={'url':await _0x2e26fb.url(),'testhub_btcer_uuid':global.__workerDetails?.currentTest?.id};const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};logger.debug('Performing scan before getting results');const _SCAN_CAP_MS=45000;try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{const _scanPromise=exports.browserStackEvaluate(_0x2e26fb,scripts.performScan,mobileArgs);let _capTimer;const _scanCap=new Promise((_,reject)=>{_capTimer=setTimeout(()=>reject(new Error(`SCAN-CAP-HIT performScan capped at ${_SCAN_CAP_MS}ms`)),_SCAN_CAP_MS);});try{logger.debug(util.format(await Promise.race([_scanPromise,_scanCap])));}finally{clearTimeout(_capTimer);}},{command:'getAccessibilityResults',...details})();}catch(_scanErr){logger.warn(`[SCAN-CAP] performScan didn't complete cleanly (getResults): ${_scanErr.message} — proceeding to fetch cached results`);global.__bstackA11yScanCapHit={reason:'SCAN_CAP_HIT',at:Date.now(),where:'getResults'};}const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x2e26fb,scripts.getResults,mobileArgs);},{...details})();return res;}catch(_0x1ffc05){return logger['error'](_0x5e7dde(0x222)+(_0x1ffc05&&(_0x1ffc05[_0x5e7dde(0x173)]||_0x1ffc05[_0x5e7dde(0x1cd)])||_0x1ffc05)),[];}else return logger[_0x5e7dde(0x1ca)](_0x35d458['cyYhB']),[];},exports[a50_0xfa96e0(0x1d5)]=async(_0x4af367,_0x38cd03='',_0x39899e={},_0x6a2e1c={})=>{const _0x24c230=a50_0xfa96e0,_0x18bbf3={};_0x18bbf3[_0x24c230(0x180)]=_0x24c230(0x1d5),_0x18bbf3[_0x24c230(0x172)]=_0x24c230(0x18e);const _0x40d3fb=_0x18bbf3;logger[_0x24c230(0x1cf)](_0x24c230(0x1bb)+_0x38cd03+_0x24c230(0x1f6)+_0x4af367);if(!scripts[_0x24c230(0x205)](_0x40d3fb[_0x24c230(0x180)])){logger[_0x24c230(0x1cf)](_0x40d3fb[_0x24c230(0x172)]);return;}const _0x2ab247={'url':await _0x4af367['url'](),'testhub_btcer_uuid':global['__workerDetails']?.[_0x24c230(0x1ab)]?.['id']};if(global[_0x24c230(0x1f8)])return await PerformanceTester[_0x24c230(0x18a)](PerformanceA11yEvents[_0x24c230(0x1e6)],async()=>{const _0x3ff9a4=_0x24c230,_0x2ec307={};_0x2ec307['command']=_0x38cd03;const _0x1bb17e=_0x2ec307;_0x39899e&&_0x39899e[_0x3ff9a4(0x158)]&&(_0x1bb17e[_0x3ff9a4(0x158)]=_0x39899e[_0x3ff9a4(0x158)]);Object[_0x3ff9a4(0x17e)](_0x1bb17e,_0x6a2e1c);const _0x34263a=await exports[_0x3ff9a4(0x1f1)](_0x4af367,scripts[_0x3ff9a4(0x1d5)],_0x1bb17e);return _0x34263a;},{'command':_0x38cd03,..._0x2ab247})();},exports[a50_0xfa96e0(0x1cb)]=async _0x217457=>{const _0x276aa6=a50_0xfa96e0,_0x5d9371={};_0x5d9371[_0x276aa6(0x1e4)]=_0x276aa6(0x1d5),_0x5d9371[_0x276aa6(0x1a8)]=_0x276aa6(0x1f2),_0x5d9371[_0x276aa6(0x18c)]=_0x276aa6(0x1c9),_0x5d9371['Ydedj']=_0x276aa6(0x1c3);const _0x17029d=_0x5d9371;if(!scripts[_0x276aa6(0x205)](_0x17029d[_0x276aa6(0x1e4)],_0x17029d[_0x276aa6(0x1a8)]))return logger['warn'](_0x17029d['nfDig']),{};if(global[_0x276aa6(0x1f8)])try{const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};const _SCAN_CAP_MS_SUMMARY=45000;try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');const _scanPromise=exports.browserStackEvaluate(_0x217457,scripts.performScan,mobileArgs);let _capTimer;const _scanCap=new Promise((_,reject)=>{_capTimer=setTimeout(()=>reject(new Error(`SCAN-CAP-HIT performScan capped at ${_SCAN_CAP_MS_SUMMARY}ms`)),_SCAN_CAP_MS_SUMMARY);});try{logger.debug(util.format(await Promise.race([_scanPromise,_scanCap])));}finally{clearTimeout(_capTimer);}},{command:'getAccessibilityResultsSummary'})();}catch(_scanErr){logger.warn(`[SCAN-CAP] performScan didn't complete cleanly (getSummary): ${_scanErr.message} — proceeding to fetch cached summary`);global.__bstackA11yScanCapHit={reason:'SCAN_CAP_HIT',at:Date.now(),where:'getSummary'};}const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x217457,scripts.getResultsSummary,mobileArgs);})();if(summaryResults&&typeof summaryResults==='object'&&global.__bstackA11yScanCapHit){summaryResults.degraded=true;summaryResults.degradedReason=global.__bstackA11yScanCapHit.reason;}return summaryResults;}catch(_0x26a6dc){return logger[_0x276aa6(0x156)](_0x276aa6(0x229)+(_0x26a6dc&&(_0x26a6dc[_0x276aa6(0x173)]||_0x26a6dc[_0x276aa6(0x1cd)])||_0x26a6dc)),{};}else return logger[_0x276aa6(0x1ca)](_0x17029d['Ydedj']),{};},exports[a50_0xfa96e0(0x22e)]=_0x3ac7eb=>{const _0x161a04=a50_0xfa96e0,_0x553aee={'iIkRj':_0x161a04(0x20d),'uYszF':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','ZOcRz':function(_0x227232,_0x10b02a){return _0x227232!==_0x10b02a;},'gaXpi':'latest','TXlfg':function(_0x18a1fd){return _0x18a1fd();},'KCRKC':'on\x20non-BrowserStack\x20infrastructure\x20'};try{if(global['isMobilePlatform'])return logger[_0x161a04(0x1cf)](_0x553aee['iIkRj']),!![];const _0x536d32=_0x3ac7eb['browser'],_0x37daff=_0x3ac7eb[_0x161a04(0x18b)];if(!accessibilityHelper[_0x161a04(0x15b)](_0x536d32))return logger[_0x161a04(0x1ca)](_0x553aee['uYszF']),![];if(_0x553aee[_0x161a04(0x1a3)](_0x37daff,_0x553aee[_0x161a04(0x175)])){const _0xb48cb2=_0x553aee[_0x161a04(0x191)](isBrowserstackInfra),_0x5b1f98=accessibilityHelper[_0x161a04(0x155)](_0x536d32,_0xb48cb2),_0x1c8809=accessibilityHelper['getBrowserDisplayName'](_0x536d32);if(!accessibilityHelper['isVersionSupported'](_0x37daff,_0x5b1f98)){const _0x45f0ef=_0xb48cb2?'':_0x553aee['KCRKC'];return logger[_0x161a04(0x1ca)]('Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20'+_0x1c8809+'\x20browser\x20version\x20'+_0x5b1f98+_0x161a04(0x217)+_0x45f0ef+'.'),![];}}}catch(_0x56ec34){logger[_0x161a04(0x1cf)](_0x161a04(0x181)+util[_0x161a04(0x197)](_0x56ec34));}return!![];},exports[a50_0xfa96e0(0x189)]=(_0x10ef77,_0x39ddc3,_0x227d4d)=>{const _0x4772a8=a50_0xfa96e0,_0xdfa1e1={'IMRnG':_0x4772a8(0x1b6),'yjBmD':function(_0x54ef55){return _0x54ef55();},'foDty':_0x4772a8(0x212),'NWfSb':_0x4772a8(0x186),'OVkkP':function(_0x4431a0,_0x477133){return _0x4431a0!==_0x477133;},'SKZiy':_0x4772a8(0x1d0),'tVgeo':function(_0x8b24e0){return _0x8b24e0();},'pfzcw':_0x4772a8(0x1fa),'QBgFb':function(_0x2d4355,_0x2aafbb){return _0x2d4355(_0x2aafbb);},'lOdys':function(_0x36f0ca,_0x50d376){return _0x36f0ca===_0x50d376;},'vrMGs':_0x4772a8(0x177),'VDSeF':_0x4772a8(0x19e),'zFrvZ':'playwright-chromium','fFsEk':_0x4772a8(0x165),'feaha':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers\x20or\x20Android\x20Chrome.','wiWWQ':function(_0x76c12e,_0xaff04c){return _0x76c12e+_0xaff04c;},'aVzpb':function(_0x12ac8d,_0xa25731){return _0x12ac8d(_0xa25731);}};try{if(_0xdfa1e1[_0x4772a8(0x170)](isAccessibilityAutomationSession)){global['accessibilityPlatform']=!![];!_0x10ef77[_0xdfa1e1[_0x4772a8(0x225)]]&&(global[_0x4772a8(0x1f8)]=![]);const _0x4ca811=_0x10ef77[_0x4772a8(0x210)]||_0x10ef77[_0x4772a8(0x19c)],_0x4e7683=_0x10ef77[_0x4772a8(0x18b)];!accessibilityHelper['isBrowserSupportedForAccessibility'](_0x4ca811)&&(logger['warn'](_0xdfa1e1['NWfSb']),global[_0x4772a8(0x1f8)]=![]);if(_0xdfa1e1['OVkkP'](_0x4e7683,_0xdfa1e1[_0x4772a8(0x221)])){const _0x11c754=_0xdfa1e1[_0x4772a8(0x15c)](isBrowserstackInfra),_0xeb0ee7=accessibilityHelper[_0x4772a8(0x155)](_0x4ca811,_0x11c754),_0xafa0c5=accessibilityHelper[_0x4772a8(0x162)](_0x4ca811);if(!accessibilityHelper[_0x4772a8(0x169)](_0x4e7683,_0xeb0ee7)){const _0x52689b=_0x11c754?'':_0xdfa1e1['pfzcw'];logger[_0x4772a8(0x1ca)]('Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20'+_0xafa0c5+_0x4772a8(0x20f)+_0xeb0ee7+_0x4772a8(0x217)+_0x52689b+'.'),global[_0x4772a8(0x1f8)]=![];}}if(!_0xdfa1e1[_0x4772a8(0x21e)](isUndefined,_0x10ef77[_0x4772a8(0x1f9)])){const _0x4c9bed=(_0x10ef77['os']||'')[_0x4772a8(0x213)](),_0x50250c=(_0x10ef77[_0x4772a8(0x210)]||_0x10ef77['browser']||'')[_0x4772a8(0x213)](),_0x264c6b=_0xdfa1e1['lOdys'](_0x4c9bed,_0xdfa1e1['vrMGs'])&&[_0xdfa1e1['VDSeF'],_0xdfa1e1['zFrvZ'],_0xdfa1e1['fFsEk']]['includes'](_0x50250c);if(!_0x264c6b)logger[_0x4772a8(0x1ca)](_0xdfa1e1[_0x4772a8(0x1c8)]),global[_0x4772a8(0x1f8)]=![];else!accessibilityHelper['isMobileScanningEnabledForGroup']()&&(logger[_0x4772a8(0x1ca)](accessibilityHelper[_0x4772a8(0x1a2)]),global['accessibilityPlatform']=![]);}if(!global[_0x4772a8(0x1f8)]){_0x10ef77[_0xdfa1e1[_0x4772a8(0x225)]]=![],Object[_0x4772a8(0x16b)](_0x10ef77)['forEach'](_0xa5760f=>{const _0xe6bdf0=_0x4772a8;_0xa5760f[_0xe6bdf0(0x1c5)](_0xdfa1e1[_0xe6bdf0(0x1a4)])&&delete _0x10ef77[_0xa5760f];});const _0x22501d=_0xdfa1e1[_0x4772a8(0x194)](_0x39ddc3,_0xdfa1e1['aVzpb'](encodeURIComponent,JSON[_0x4772a8(0x16a)](_0x10ef77)));_0x227d4d&&(_0x227d4d[_0x4772a8(0x1ab)][_0x4772a8(0x159)][_0x4772a8(0x16f)][_0x4772a8(0x1ed)][_0x4772a8(0x1b9)][_0x4772a8(0x1c4)]=_0x22501d,_0x227d4d[_0x4772a8(0x214)][_0x4772a8(0x16f)][_0x4772a8(0x1ed)]['connectOptions'][_0x4772a8(0x1c4)]=_0x22501d);}}else global[_0x4772a8(0x1f8)]=![];}catch(_0x23d0c4){logger[_0x4772a8(0x1cf)](_0x4772a8(0x1f0)+util['format'](_0x23d0c4));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a51_0x3e8363=a51_0x2803;function a51_0x2803(_0x20d6e0,_0x23f4c9){const _0x4aecaa=a51_0x4aec();return a51_0x2803=function(_0x2803f8,_0x177dc9){_0x2803f8=_0x2803f8-0x169;let _0xee6e27=_0x4aecaa[_0x2803f8];return _0xee6e27;},a51_0x2803(_0x20d6e0,_0x23f4c9);}(function(_0x5c166e,_0xfd683e){const _0x564d5c=a51_0x2803,_0x395dc1=_0x5c166e();while(!![]){try{const _0x14c2da=parseInt(_0x564d5c(0x1b9))/0x1+-parseInt(_0x564d5c(0x182))/0x2+parseInt(_0x564d5c(0x1fc))/0x3+-parseInt(_0x564d5c(0x224))/0x4+parseInt(_0x564d5c(0x176))/0x5*(parseInt(_0x564d5c(0x21d))/0x6)+parseInt(_0x564d5c(0x24d))/0x7*(-parseInt(_0x564d5c(0x201))/0x8)+parseInt(_0x564d5c(0x1f8))/0x9;if(_0x14c2da===_0xfd683e)break;else _0x395dc1['push'](_0x395dc1['shift']());}catch(_0x4cb318){_0x395dc1['push'](_0x395dc1['shift']());}}}(a51_0x4aec,0x5f6a3));const fs=require('fs'),path=require(a51_0x3e8363(0x208)),{pathToFileURL}=require(a51_0x3e8363(0x20b)),{spawn}=require(a51_0x3e8363(0x186)),{format}=require('util'),logger=require(a51_0x3e8363(0x23c))[a51_0x3e8363(0x17e)],{default:BrowserStackSetup}=require(a51_0x3e8363(0x194)),helper=require(a51_0x3e8363(0x24c)),utilities=require(a51_0x3e8363(0x23b)),constants=require(a51_0x3e8363(0x252)),{FRAMEWORKS}=require(a51_0x3e8363(0x1e4)),{getConfigLoaderPath}=require('./reporter/pwUtils'),{mergeBrowserstackReporterIntoCliReporterFlag}=require('./reporterArgs'),{shouldProcessEventForTesthub}=require(a51_0x3e8363(0x180)),{checkAccessibilityPlatformConfig}=require(a51_0x3e8363(0x227)),{setAccessibilityCapabilities}=require(a51_0x3e8363(0x215)),{printBuildLink}=require(a51_0x3e8363(0x1d2)),TestDetails=require(a51_0x3e8363(0x237)),TestHubHandler=require(a51_0x3e8363(0x1cd)),PerformanceTester=require('../../helpers/performance/performance-tester'),TestOrchestrationHandler=require(a51_0x3e8363(0x24e)),BrowserstackCLI=require(a51_0x3e8363(0x25a)),PerformanceEvents=require('../../helpers/performance/constants')[a51_0x3e8363(0x22d)],CLIUtils=require(a51_0x3e8363(0x171)),TestInfo=require(a51_0x3e8363(0x1dc)),ClientTroubleShootingService=require(a51_0x3e8363(0x247)),getUserPlaywrightConfig=async(_0x6771d1,_0x1486fb)=>{const _0x42ace6=a51_0x3e8363,_0x274eb4={'bMpgy':function(_0xbfb2c1){return _0xbfb2c1();},'VjSEp':function(_0x5e2235,_0x5e1e48){return _0x5e2235(_0x5e1e48);},'vgmnk':function(_0x43b5ea,_0x3a4e31){return _0x43b5ea(_0x3a4e31);},'LrSXr':_0x42ace6(0x1c0),'fnqJD':_0x42ace6(0x1f3)},_0x936f84=!helper['isUndefined'](_0x6771d1[_0x42ace6(0x1d4)]),_0x4f8cd9=_0x936f84?path[_0x42ace6(0x226)](process['cwd'](),_0x6771d1['config']):process['cwd'](),{resolveConfigFile:_0x1d64bb,resolveConfigLocation:_0x24cb3b}=helper[_0x42ace6(0x1e2)][_0x42ace6(0x21e)](null,_0x274eb4['bMpgy'](getConfigLoaderPath)),_0x3ebcc0=_0x1d64bb?_0x274eb4[_0x42ace6(0x257)](_0x1d64bb,_0x4f8cd9):helper[_0x42ace6(0x192)](_0x274eb4['vgmnk'](_0x24cb3b,_0x4f8cd9),[_0x274eb4['LrSXr']]),_0x37879c={};if(_0x936f84){const _0x302e6f=_0x1486fb[_0x42ace6(0x204)](_0x5ef4a6=>_0x5ef4a6===_0x42ace6(0x21c)||_0x5ef4a6==='-c'||_0x5ef4a6[_0x42ace6(0x16a)](_0x42ace6(0x1f3)));_0x1486fb[_0x42ace6(0x1a5)](_0x302e6f,_0x1486fb[_0x302e6f][_0x42ace6(0x16a)](_0x274eb4['fnqJD'])?0x1:0x2);}const _0x30414e={};return _0x30414e[_0x42ace6(0x208)]=_0x3ebcc0,_0x30414e['config']=_0x37879c,_0x30414e;},handleO11yRerun=_0x900c21=>{const _0x3c2dc2=a51_0x3e8363,_0x3cda30={};_0x3cda30[_0x3c2dc2(0x191)]='--grep';const _0x44d842=_0x3cda30,_0x169ff0=helper[_0x3c2dc2(0x207)](process[_0x3c2dc2(0x1bd)]['BROWSERSTACK_RERUN']);if(_0x169ff0){const _0x1cf016=process['env'][_0x3c2dc2(0x19d)],_0x450ea5=[];if(helper[_0x3c2dc2(0x1c1)](_0x1cf016)&&!helper[_0x3c2dc2(0x242)](_0x1cf016)){_0x1cf016[_0x3c2dc2(0x1e0)](',')[_0x3c2dc2(0x1bc)](_0x549b7d=>{const _0x38cdcf=_0x3c2dc2;_0x450ea5[_0x38cdcf(0x240)]('('+_0x549b7d[_0x38cdcf(0x243)]()+')');});const _0x37bc3c='^'+_0x450ea5[_0x3c2dc2(0x1b7)]('|')+'$';_0x900c21[_0x3c2dc2(0x240)](_0x44d842[_0x3c2dc2(0x191)],_0x37bc3c);}}},spawnOriginalProcess=_0x14daa6=>{const _0x12e657=a51_0x3e8363,_0x3c6d2b={'TpAzF':function(_0x199650,_0xaf3c70,_0x1bd641,_0x4db8c8){return _0x199650(_0xaf3c70,_0x1bd641,_0x4db8c8);},'NdZcr':_0x12e657(0x211),'IUPQG':_0x12e657(0x1ea),'jeetr':_0x12e657(0x21b),'xAezb':function(_0x584ce3,_0x43aff3){return _0x584ce3===_0x43aff3;},'jkzaS':_0x12e657(0x22f),'yvBxM':'inherit'};_0x3c6d2b[_0x12e657(0x1de)](spawn,helper[_0x12e657(0x1dd)]()?_0x3c6d2b[_0x12e657(0x212)]:_0x3c6d2b[_0x12e657(0x1e6)],[_0x3c6d2b[_0x12e657(0x22c)],..._0x14daa6['slice'](0x1)],{'shell':_0x3c6d2b['xAezb'](process[_0x12e657(0x1d1)],_0x3c6d2b[_0x12e657(0x246)]),'stdio':_0x3c6d2b[_0x12e657(0x1ca)],'cwd':process['cwd']()});},isTestCommand=(_0x1f1359,_0x36fa46)=>{const _0x110a27=a51_0x3e8363,_0x1dfbc1={};_0x1dfbc1['jLRxu']=function(_0x59c23e,_0x1233b4){return _0x59c23e>_0x1233b4;},_0x1dfbc1['vWWIh']=function(_0x3bc372,_0x51dfb9){return _0x3bc372===_0x51dfb9;},_0x1dfbc1['MBMGU']=_0x110a27(0x234);const _0x2a6036=_0x1dfbc1;if(_0x2a6036[_0x110a27(0x1b8)](_0x36fa46[_0x110a27(0x17a)],0x1)&&_0x2a6036[_0x110a27(0x1fa)](_0x36fa46[0x1],_0x2a6036[_0x110a27(0x18b)]))return!![];return![];};async function run(_0x305dac,_0x37ac56,_0x19ee5b){const _0x1a93ae=a51_0x3e8363,_0x419553={'AnOGo':function(_0x4facc7,_0x5dad76){return _0x4facc7(_0x5dad76);},'bcYYW':_0x1a93ae(0x1ee),'kAhUF':'pw_result','uaLFg':function(_0x505e4e,_0xa9c118){return _0x505e4e>_0xa9c118;},'iODCV':_0x1a93ae(0x197),'tpQfV':_0x1a93ae(0x244),'dncLQ':function(_0x317b4f,_0x33002e){return _0x317b4f+_0x33002e;},'fZvsF':_0x1a93ae(0x1d0),'jVPDM':function(_0x2d6317){return _0x2d6317();},'OvoSw':function(_0x45cd19){return _0x45cd19();},'DETBH':function(_0x3023a0,_0x214f54){return _0x3023a0+_0x214f54;},'Ukljt':_0x1a93ae(0x239),'GxRft':function(_0x233f24,_0x318d86){return _0x233f24(_0x318d86);},'rmLUV':_0x1a93ae(0x18d),'fECjD':function(_0x530eaf,_0x5924aa){return _0x530eaf<_0x5924aa;},'Owkgy':function(_0x3660e9,_0x1a87f1){return _0x3660e9===_0x1a87f1;},'nhgqZ':_0x1a93ae(0x1f1),'DnrxF':_0x1a93ae(0x1f5),'rXETc':function(_0x35130f,_0x36fc8a){return _0x35130f>=_0x36fc8a;},'kQhDO':function(_0x5bd926,_0x115445){return _0x5bd926===_0x115445;},'TYSyD':'automation','wDIyD':function(_0x52214f,_0x58666d){return _0x52214f!=_0x58666d;},'EDLYb':function(_0x4a31cd,_0x48b9b8,_0x52182c){return _0x4a31cd(_0x48b9b8,_0x52182c);},'MOdmG':function(_0x10e71c,_0x238b23){return _0x10e71c===_0x238b23;},'djcJr':_0x1a93ae(0x24a),'qmOJr':function(_0x22aa28,_0x248d2d){return _0x22aa28(_0x248d2d);},'ElXjv':_0x1a93ae(0x214),'AclAJ':_0x1a93ae(0x16f),'XLlPp':_0x1a93ae(0x18a),'goATO':_0x1a93ae(0x1c7),'qqFSb':_0x1a93ae(0x241),'bfEOR':function(_0x2ff093,_0x8653e9){return _0x2ff093(_0x8653e9);},'cFrph':function(_0x59cabf,_0x5a166b){return _0x59cabf-_0x5a166b;},'TGnGu':_0x1a93ae(0x1aa),'NTMYH':'global-agent','ZRdPf':'bootstrap\x20=\x20require(\x22./node_modules/browserstack-node-sdk/node_modules/global-agent\x22).bootstrap;','wVnWf':function(_0x3fc026,_0x1d69d3){return _0x3fc026+_0x1d69d3;},'EGbnU':function(_0xaa4348){return _0xaa4348();},'VYcvY':_0x1a93ae(0x16d),'djhYs':_0x1a93ae(0x21b),'tHjZK':function(_0x3095fd,_0x484429,_0x27da2a,_0x14e1df){return _0x3095fd(_0x484429,_0x27da2a,_0x14e1df);},'cBcoh':_0x1a93ae(0x211),'oockj':_0x1a93ae(0x1ea),'cgLMq':_0x1a93ae(0x234),'lsoJS':_0x1a93ae(0x21c),'orQgy':function(_0x15b9bf,_0x4c8e84){return _0x15b9bf===_0x4c8e84;},'bRGRk':_0x1a93ae(0x22f),'CFNec':function(_0x4b6d6e,_0x4698eb){return _0x4b6d6e===_0x4698eb;},'kjzlj':_0x1a93ae(0x1ba),'HVQya':_0x1a93ae(0x184),'QKbOb':function(_0xf2de53,_0x49b0e6){return _0xf2de53|_0x49b0e6;},'dAyvd':function(_0x4f2a09,_0x96b9f4){return _0x4f2a09+_0x96b9f4;},'SAAZA':_0x1a93ae(0x1e9),'sVesW':function(_0x369d6f,_0x1954d0){return _0x369d6f+_0x1954d0;},'cVwyI':_0x1a93ae(0x1ab),'SgRdf':function(_0x1624a7,_0x517fdc,_0x58fe60){return _0x1624a7(_0x517fdc,_0x58fe60);}};try{const _0x195234=path[_0x1a93ae(0x1b7)](helper[_0x1a93ae(0x245)](),_0x419553['iODCV']);try{fs['accessSync'](_0x195234,_0x419553[_0x1a93ae(0x1ae)](fs[_0x1a93ae(0x1fb)][_0x1a93ae(0x1d8)],fs['constants'][_0x1a93ae(0x1b0)]));}catch(_0x375333){ClientTroubleShootingService['reportDotBrowserStackFolderNotAccessibleIssue']();}}catch(_0x4bf0a6){logger[_0x1a93ae(0x17b)](_0x419553[_0x1a93ae(0x232)](_0x419553[_0x1a93ae(0x248)],_0x4bf0a6));}try{const _0x262c1c=path[_0x1a93ae(0x1b7)](helper[_0x1a93ae(0x245)](),_0x419553['iODCV'],_0x419553[_0x1a93ae(0x1e1)]);fs[_0x1a93ae(0x1d6)](_0x262c1c)&&fs[_0x1a93ae(0x1c6)](_0x262c1c);}catch(_0x67746b){logger[_0x1a93ae(0x17b)](_0x419553[_0x1a93ae(0x203)](_0x419553[_0x1a93ae(0x1c3)],_0x67746b));}if(!_0x419553['SgRdf'](isTestCommand,_0x305dac,_0x37ac56)){_0x419553[_0x1a93ae(0x1af)](spawnOriginalProcess,_0x37ac56);return;}await PerformanceTester[_0x1a93ae(0x205)](PerformanceEvents[_0x1a93ae(0x231)],async()=>{const _0x5ef0a8=_0x1a93ae,_0x57dc55={'zbQSU':function(_0x5e4ccd,_0x66c94a){const _0x53d0f7=a51_0x2803;return _0x419553[_0x53d0f7(0x1af)](_0x5e4ccd,_0x66c94a);},'RfXRR':_0x419553['iODCV']};if(!_0x19ee5b[_0x5ef0a8(0x1d4)]){logger[_0x5ef0a8(0x1df)](_0x419553['rmLUV']);return;}await _0x19ee5b[_0x5ef0a8(0x1c4)](_0x305dac),CLIUtils[_0x5ef0a8(0x1bf)](FRAMEWORKS[_0x5ef0a8(0x218)],FRAMEWORKS[_0x5ef0a8(0x218)]),BrowserstackCLI[_0x5ef0a8(0x175)]()[_0x5ef0a8(0x1eb)](_0x19ee5b[_0x5ef0a8(0x1d4)],_0x19ee5b[_0x5ef0a8(0x23d)],_0x19ee5b[_0x5ef0a8(0x19b)]),await BrowserstackCLI[_0x5ef0a8(0x175)]()['bootstrap']();!BrowserstackCLI[_0x5ef0a8(0x175)]()[_0x5ef0a8(0x254)]()&&await _0x19ee5b[_0x5ef0a8(0x1a4)]();for(var _0x34a773=0x0;_0x419553[_0x5ef0a8(0x24f)](_0x34a773,constants[_0x5ef0a8(0x19e)][_0x5ef0a8(0x17a)]);_0x34a773++){var _0x3ca4cf=constants[_0x5ef0a8(0x19e)][_0x34a773];process[_0x5ef0a8(0x1bd)][_0x3ca4cf]&&await ClientTroubleShootingService[_0x5ef0a8(0x23e)](_0x3ca4cf);}const _0x394d0a=BrowserstackCLI[_0x5ef0a8(0x175)]()[_0x5ef0a8(0x1e3)]();!helper[_0x5ef0a8(0x190)](_0x394d0a['browserstackAutomation'])&&(process[_0x5ef0a8(0x1bd)][_0x5ef0a8(0x1c8)]=!![]);_0x419553[_0x5ef0a8(0x228)](_0x394d0a[_0x5ef0a8(0x250)],![])&&(process[_0x5ef0a8(0x1bd)]['BROWSERSTACK_AUTOMATION']=_0x419553[_0x5ef0a8(0x200)],_0x37ac56=_0x37ac56['filter'](_0x1e1aca=>_0x1e1aca!==_0x5ef0a8(0x1da)));const _0x1c10a3=_0x37ac56[_0x5ef0a8(0x177)](_0x419553[_0x5ef0a8(0x1cc)]);(_0x419553[_0x5ef0a8(0x1a0)](_0x1c10a3,0x0)||_0x419553[_0x5ef0a8(0x209)](_0x394d0a[_0x5ef0a8(0x21a)],![]))&&(process[_0x5ef0a8(0x1bd)][_0x5ef0a8(0x1a8)]=_0x419553[_0x5ef0a8(0x200)],_0x37ac56=_0x37ac56[_0x5ef0a8(0x22b)](_0x28167e=>_0x28167e!==_0x5ef0a8(0x1f5)));!helper[_0x5ef0a8(0x242)](_0x19ee5b[_0x5ef0a8(0x19b)])&&_0x19ee5b['cliConfig'][_0x5ef0a8(0x1a2)](_0x419553[_0x5ef0a8(0x189)])&&(process[_0x5ef0a8(0x1bd)][_0x5ef0a8(0x1c8)]=_0x19ee5b[_0x5ef0a8(0x19b)][_0x5ef0a8(0x169)](_0x419553[_0x5ef0a8(0x189)])||!![]);_0x419553[_0x5ef0a8(0x256)](_0x19ee5b[_0x5ef0a8(0x1d4)][_0x5ef0a8(0x21a)],null)&&!helper[_0x5ef0a8(0x207)](process['env'][_0x5ef0a8(0x1a8)])&&(process[_0x5ef0a8(0x1bd)][_0x5ef0a8(0x1a8)]=process['env'][_0x5ef0a8(0x1a8)]||_0x19ee5b[_0x5ef0a8(0x1d4)][_0x5ef0a8(0x21a)]);const _0x589557=!helper['isFalse'](process['env'][_0x5ef0a8(0x1a8)]);if(BrowserstackCLI[_0x5ef0a8(0x175)]()[_0x5ef0a8(0x254)]()&&_0x589557){const _0x2df859=BrowserstackCLI[_0x5ef0a8(0x23a)];helper[_0x5ef0a8(0x19f)](_0x2df859)?(process['env'][_0x5ef0a8(0x1e5)]=_0x2df859,logger[_0x5ef0a8(0x17b)](_0x5ef0a8(0x1d5)+_0x2df859)):logger[_0x5ef0a8(0x185)](_0x5ef0a8(0x1ce)+_0x2df859);}_0x19ee5b[_0x5ef0a8(0x1d4)]['accessibilityOptions']&&(process['env'][_0x5ef0a8(0x225)]=JSON[_0x5ef0a8(0x187)](_0x19ee5b[_0x5ef0a8(0x1d4)][_0x5ef0a8(0x249)]));let _0xfd5824=![];_0x19ee5b[_0x5ef0a8(0x1d4)][_0x5ef0a8(0x1b5)]&&(_0xfd5824=!![],process[_0x5ef0a8(0x1bd)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x19ee5b[_0x5ef0a8(0x1d4)][_0x5ef0a8(0x1b5)]);const _0x1a33f5=_0x37ac56[_0x5ef0a8(0x1b1)](),_0x267947=await _0x419553['EDLYb'](getUserPlaywrightConfig,_0x305dac,_0x37ac56);if(helper[_0x5ef0a8(0x242)](_0x267947)){_0x419553['GxRft'](spawnOriginalProcess,_0x1a33f5);return;}const _0x35e835=_0x267947[_0x5ef0a8(0x208)]?path[_0x5ef0a8(0x18f)](_0x267947[_0x5ef0a8(0x208)]):process[_0x5ef0a8(0x170)]();process[_0x5ef0a8(0x1bd)]['BROWSERSTACK_PW_CONFIG_DIR']=_0x35e835,await PerformanceTester['measureWrapper'](PerformanceEvents['SDK_POST_INITIALIZE'],async()=>{const _0x171e84=_0x5ef0a8;!BrowserstackCLI[_0x171e84(0x175)]()['isRunning']()&&await TestHubHandler['launchBuild'](FRAMEWORKS[_0x171e84(0x218)],_0x19ee5b),_0x589557&&_0x57dc55[_0x171e84(0x202)](handleO11yRerun,_0x37ac56);})();if(!BrowserstackCLI[_0x5ef0a8(0x175)]()[_0x5ef0a8(0x254)]()){let _0x110444=_0x419553[_0x5ef0a8(0x1c5)](process[_0x5ef0a8(0x1bd)][_0x5ef0a8(0x1fd)],_0x419553[_0x5ef0a8(0x1c9)]);_0x110444=_0x110444||_0x419553['qmOJr'](checkAccessibilityPlatformConfig,_0x19ee5b[_0x5ef0a8(0x1d4)]),process['env'][_0x5ef0a8(0x1fd)]=_0x110444,_0x110444&&_0x419553['GxRft'](setAccessibilityCapabilities,_0x19ee5b['config']);}const _0x35ee54=path[_0x5ef0a8(0x1b7)](_0x267947[_0x5ef0a8(0x208)]?path[_0x5ef0a8(0x18f)](_0x267947[_0x5ef0a8(0x208)]):process['cwd'](),_0x419553['ElXjv']);fs[_0x5ef0a8(0x188)](_0x35ee54,helper[_0x5ef0a8(0x1f2)](_0x19ee5b[_0x5ef0a8(0x1d4)])),process[_0x5ef0a8(0x1bd)][_0x5ef0a8(0x217)]=_0x35ee54,helper['clearTempPWConfig']();let _0x12a398='';_0x419553[_0x5ef0a8(0x1c5)](helper[_0x5ef0a8(0x196)](_0x35e835),constants[_0x5ef0a8(0x19a)]['MODULE'])?_0x12a398=_0x419553[_0x5ef0a8(0x22a)]:_0x12a398=_0x419553[_0x5ef0a8(0x193)];let _0x4f9e7c='';const _0x56947e=path['resolve'](__dirname,_0x419553[_0x5ef0a8(0x223)]),_0xa92ef0=fs[_0x5ef0a8(0x1d6)](_0x56947e),_0x2f2b52=_0x419553[_0x5ef0a8(0x209)](helper[_0x5ef0a8(0x196)](_0x35e835),constants['PACKAGE_TYPE'][_0x5ef0a8(0x21f)]),_0x52bd2f=_0xa92ef0?JSON[_0x5ef0a8(0x187)](_0x56947e):_0x419553[_0x5ef0a8(0x216)],_0x3d9a09=_0xa92ef0?_0x2f2b52?JSON[_0x5ef0a8(0x187)](_0x419553['bfEOR'](pathToFileURL,_0x56947e)[_0x5ef0a8(0x1cb)]):JSON[_0x5ef0a8(0x187)](_0x56947e):_0x419553['qqFSb'];logger[_0x5ef0a8(0x17b)]('Generated\x20Playwright\x20config\x20will\x20load\x20the\x20SDK\x20from\x20(cjs)\x20'+_0x52bd2f+_0x5ef0a8(0x1d9)+_0x3d9a09);if(helper[_0x5ef0a8(0x259)](_0x267947[_0x5ef0a8(0x208)])){_0x4f9e7c=_0x5ef0a8(0x22e)+_0x3d9a09+_0x5ef0a8(0x172);const _0x290c0e=_0x12a398['split']('.');_0x290c0e[_0x419553['cFrph'](_0x290c0e['length'],0x1)]='ts',_0x12a398=_0x290c0e[_0x5ef0a8(0x1b7)]('.'),logger[_0x5ef0a8(0x17b)](_0x419553[_0x5ef0a8(0x1f6)](_0x419553[_0x5ef0a8(0x251)],_0x12a398));}else _0x4f9e7c=_0x5ef0a8(0x1d7)+_0x52bd2f+_0x5ef0a8(0x236);const _0x425977=path[_0x5ef0a8(0x1b7)](_0x267947[_0x5ef0a8(0x208)]?path['dirname'](_0x267947[_0x5ef0a8(0x208)]):process['cwd'](),_0x12a398);let _0xc485d=_0x267947[_0x5ef0a8(0x208)]?_0x267947[_0x5ef0a8(0x208)]:'';_0xc485d=_0x419553[_0x5ef0a8(0x1db)](_0xc485d[_0x5ef0a8(0x17a)],0x0)?path[_0x5ef0a8(0x226)](_0xc485d):'',process[_0x5ef0a8(0x1bd)]['USER_CONFIG_DETAILS_PATH']=_0xc485d;const _0x234d39=helper[_0x5ef0a8(0x1ac)](_0x19ee5b[_0x5ef0a8(0x1d4)]),_0x180fc5=helper['getNoProxy'](_0x19ee5b['config']);logger['debug'](_0x5ef0a8(0x17d)+_0x234d39),logger['debug'](_0x5ef0a8(0x1ec)+_0x180fc5);if(_0x234d39){let _0x56f4a1='';try{_0x56f4a1=require[_0x5ef0a8(0x226)](_0x419553['NTMYH']);}catch(_0x3a29ce){logger[_0x5ef0a8(0x17b)](_0x5ef0a8(0x24b)+_0x3a29ce);}const _0x76936e=_0x419553[_0x5ef0a8(0x1e8)],_0xf68ddf=_0x56f4a1?_0x5ef0a8(0x181)+_0x76936e+_0x5ef0a8(0x20c)+JSON[_0x5ef0a8(0x187)](_0x56f4a1)+_0x5ef0a8(0x16b):_0x76936e;_0x4f9e7c=_0x419553[_0x5ef0a8(0x235)](_0x5ef0a8(0x1a3)+_0x234d39+_0x5ef0a8(0x20d)+_0x180fc5+_0x5ef0a8(0x210)+_0xf68ddf+_0x5ef0a8(0x229),_0x4f9e7c);}helper[_0x5ef0a8(0x238)]({},_0x37ac56),_0x419553['EDLYb'](mergeBrowserstackReporterIntoCliReporterFlag,_0x37ac56,{'enabled':_0x419553[_0x5ef0a8(0x258)](shouldProcessEventForTesthub)}),fs[_0x5ef0a8(0x188)](_0x425977,_0x4f9e7c);let _0x5b0754=[];const _0x394309=new TestOrchestrationHandler(_0x19ee5b[_0x5ef0a8(0x1d4)]);if(_0x394309['isTestOrchestrationEnabled']()){logger[_0x5ef0a8(0x17b)](_0x419553[_0x5ef0a8(0x255)]);const _0x5642a5=await _0x394309[_0x5ef0a8(0x20a)](_0xc485d,_0x37ac56[_0x5ef0a8(0x206)](0x2));logger['debug'](_0x5ef0a8(0x1b2)+JSON[_0x5ef0a8(0x187)](_0x5642a5)+_0x5ef0a8(0x1f9));const _0x22c1a0=await _0x394309[_0x5ef0a8(0x219)](_0x5642a5);logger[_0x5ef0a8(0x17b)](_0x5ef0a8(0x19c)+JSON[_0x5ef0a8(0x187)](_0x22c1a0)),_0x22c1a0&&_0x419553[_0x5ef0a8(0x1db)](_0x22c1a0[_0x5ef0a8(0x17a)],0x0)&&(process['env']['BROWSERSTACK_PW_TEST_ORDER']=_0x22c1a0[_0x5ef0a8(0x1b7)](','),_0x419553[_0x5ef0a8(0x24f)](_0x22c1a0[_0x5ef0a8(0x17a)],_0x5642a5['length'])&&(_0x5b0754=_0x22c1a0[_0x5ef0a8(0x1bc)](_0x29d632=>path[_0x5ef0a8(0x179)](process[_0x5ef0a8(0x170)](),_0x29d632)[_0x5ef0a8(0x1e0)](path[_0x5ef0a8(0x213)])[_0x5ef0a8(0x1b7)]('/'))));}PerformanceTester[_0x5ef0a8(0x1a1)](PerformanceEvents[_0x5ef0a8(0x1b3)]),process[_0x5ef0a8(0x1bd)][_0x5ef0a8(0x16c)]=process[_0x5ef0a8(0x1bd)][_0x5ef0a8(0x16c)]||_0x419553[_0x5ef0a8(0x173)];const _0x5ba8ff=_0x419553['tHjZK'](spawn,helper['isYarnPnP']()?_0x419553['cBcoh']:_0x419553[_0x5ef0a8(0x1ad)],[_0x419553[_0x5ef0a8(0x173)],_0x419553[_0x5ef0a8(0x1a6)],_0x419553['lsoJS'],_0x419553[_0x5ef0a8(0x1d3)](process[_0x5ef0a8(0x1d1)],_0x419553[_0x5ef0a8(0x1ef)])?'\x22'+_0x425977+'\x22':_0x425977,..._0x37ac56[_0x5ef0a8(0x206)](0x2),..._0x5b0754],{'shell':_0x419553[_0x5ef0a8(0x1c2)](process[_0x5ef0a8(0x1d1)],_0x419553[_0x5ef0a8(0x1ef)]),'stdio':_0x419553[_0x5ef0a8(0x222)],'cwd':process[_0x5ef0a8(0x170)](),'env':Object[_0x5ef0a8(0x1f4)]({},process[_0x5ef0a8(0x1bd)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x5ef0a8(0x1be)](_0x305dac),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x19ee5b[_0x5ef0a8(0x1d4)]['testContextOptions'][_0x5ef0a8(0x20e)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x19ee5b[_0x5ef0a8(0x1d4)]['testContextOptions'][_0x5ef0a8(0x1b4)],'BROWSERSTACK_LOG_LEVEL':_0x19ee5b['config'][_0x5ef0a8(0x1f7)]})}),_0x37c7eb=async()=>{const _0x862543=_0x5ef0a8;try{if(BrowserstackCLI[_0x862543(0x175)]()[_0x862543(0x254)]()){const _0x24135e=_0x419553[_0x862543(0x221)](require,_0x419553[_0x862543(0x233)]),_0x2f713d=await _0x24135e['getBuildState'](_0x419553[_0x862543(0x1f0)])||[];if(_0x419553[_0x862543(0x1db)](_0x2f713d['length'],0x0)){const _0x5401f5={};_0x2f713d[_0x862543(0x20f)](_0xdc7e62=>{const _0x131974=_0x862543,_0x1947c3=_0x5401f5[_0xdc7e62['key']]||Object[_0x131974(0x23f)](null);(_0xdc7e62[_0x131974(0x1ff)]||[])[_0x131974(0x20f)](({title:_0x583bcf,error:_0x2c08f9})=>{_0x1947c3[_0x583bcf]=_0x2c08f9;}),_0x5401f5[_0xdc7e62[_0x131974(0x17c)]]=_0x1947c3;}),_0x19ee5b[_0x862543(0x1e7)]=_0x5401f5;return;}}const _0x381006=path[_0x862543(0x1b7)](helper[_0x862543(0x245)](),_0x419553[_0x862543(0x178)],_0x419553['tpQfV']);if(fs[_0x862543(0x1d6)](_0x381006)){let _0x2b82b5=fs[_0x862543(0x253)](_0x381006);_0x2b82b5=JSON[_0x862543(0x1ed)](_0x2b82b5),_0x19ee5b['errorMessage']=_0x2b82b5,fs[_0x862543(0x1c6)](_0x381006);}}catch(_0x265a21){logger['debug'](_0x419553[_0x862543(0x183)](_0x419553[_0x862543(0x195)],_0x265a21));}};_0x5ba8ff['on'](_0x419553[_0x5ef0a8(0x230)],async _0x10185b=>{const _0x51c12f=_0x5ef0a8;try{PerformanceTester[_0x51c12f(0x1b6)](PerformanceEvents[_0x51c12f(0x17f)]),await _0x419553['jVPDM'](_0x37c7eb),await TestHubHandler[_0x51c12f(0x1bb)](),await ClientTroubleShootingService[_0x51c12f(0x18e)]();const _0x1d41b2=BrowserstackCLI[_0x51c12f(0x1a7)]();await BrowserstackCLI[_0x51c12f(0x175)]()['stop'](),TestDetails[_0x51c12f(0x199)](),_0x419553[_0x51c12f(0x220)](printBuildLink),await utilities[_0x51c12f(0x1a9)](_0x19ee5b,_0x1d41b2),process[_0x51c12f(0x198)]=_0x10185b,logger['debug'](_0x51c12f(0x16e)+_0x10185b),logger['info'](_0x51c12f(0x1cf)+_0x425977),fs[_0x51c12f(0x1c6)](_0x425977);fs['existsSync'](_0x35ee54)&&(logger[_0x51c12f(0x17b)](_0x51c12f(0x1cf)+_0x35ee54),fs[_0x51c12f(0x1c6)](_0x35ee54));const _0x2888e2=fs[_0x51c12f(0x1fe)](path[_0x51c12f(0x1b7)](helper[_0x51c12f(0x245)](),_0x419553[_0x51c12f(0x178)]))[_0x51c12f(0x22b)](_0x116366=>_0x116366[_0x51c12f(0x16a)]('trace_'));_0x2888e2[_0x51c12f(0x20f)](_0x59c722=>{const _0x37f42f=_0x51c12f;fs[_0x37f42f(0x1c6)](path[_0x37f42f(0x1b7)](helper[_0x37f42f(0x245)](),_0x57dc55['RfXRR'],_0x59c722));});}catch(_0x182460){logger['debug'](_0x419553[_0x51c12f(0x1f6)](_0x419553[_0x51c12f(0x18c)],_0x182460));}});})();}function a51_0x4aec(){const _0x3aeae4=['browserstackAutomation','TGnGu','../utils/constants','readFileSync','isRunning','VYcvY','wDIyD','VjSEp','EGbnU','isTypescriptProject','../v2/browserstackCLI','get','startsWith',').bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}','BROWSERSTACK_FRAMEWORK','Test\x20orchestration\x20is\x20enabled,\x20initializing\x20orchestration\x20handler','Playwright\x20process\x20exited\x20with\x20code\x20','playwright-browserstack-sdk.config.cjs','cwd','../v2/cliUtils',';\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','djhYs','exports','getInstance','328145cFEwhq','indexOf','iODCV','relative','length','debug','key','Proxy\x20url\x20:\x20','winstonLogger','SDK_CLEANUP','../../helpers/testhub/utils','try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','467842hVlxLO','dncLQ','close','warn','child_process','stringify','writeFileSync','TYSyD','playwright-browserstack-sdk.config.js','MBMGU','Ukljt','BrowserStack\x20config\x20file\x20not\x20found.','reportFinalDetectionState','dirname','isFalse','MHZTG','nestedKeyValue','XLlPp','../../helpers/BrowserStackSetup','fZvsF','getPackageType','.browserstack','exitCode','shutdown','PACKAGE_TYPE','cliConfig','Reordered\x20Test\x20Files:\x20','BROWSERSTACK_RERUN_TESTS','INTERNALLY_USED_ENV_VARS','isValidEnvValue','rXETc','end','has','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','setupBrowserstackLocal','splice','cgLMq','isCLIEnabled','BROWSERSTACK_TEST_OBSERVABILITY','finalExecution','Updated\x20config\x20file\x20name\x20to\x20-\x20','Error\x20in\x20deleting\x20playwright\x20results','getProxyUrl','oockj','QKbOb','GxRft','W_OK','concat','Found:\x20','SDK_SETUP','skipSessionName','accessibility','start','join','jLRxu','251146IpeLnt','inherit','stop','map','env','getConfigPath','setFrameworkDetail','resolvedConfigFile','validateRerunTestList','CFNec','cVwyI','initialize','MOdmG','unlinkSync','../../index.js','BROWSERSTACK_AUTOMATION','djcJr','yvBxM','href','DnrxF','../../helpers/testhub/testhubHandler','testhub\x20build\x20UUID\x20(BrowserstackCLI.O11yHashedID)\x20unavailable;\x20skipping\x20deterministic\x20test-run\x20uuid\x20seeding\x20and\x20falling\x20back\x20to\x20file-coordinated\x20uuids.\x20Got:\x20','Deleting\x20','Error\x20in\x20getting\x20funnel\x20data\x20results','platform','../../helpers/test-observability/utils','orQgy','config','seeded\x20BROWSERSTACK_TESTHUB_UUID_SEED\x20with\x20testhub\x20build\x20id\x20','existsSync','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(','R_OK','\x20/\x20(esm)\x20','--disable-browserstack-automation','uaLFg','../v2/TestInfo','isYarnPnP','TpAzF','error','split','tpQfV','requirePWModule','getConfig','../../helpers/test-observability/constants','BROWSERSTACK_TESTHUB_UUID_SEED','IUPQG','errorMessage','ZRdPf','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','npx','setBrowserstackConfig','No\x20Proxy\x20:\x20','parse','../v2/runStateStore','bRGRk','kAhUF','false','serializeToYamlString','--config=','assign','--disable-test-observability','DETBH','logLevel','2937582LzrLZc','\x20test\x20files\x20to\x20run.','vWWIh','constants','1575459LOkqwu','BROWSERSTACK_TEST_ACCESSIBILITY_YML','readdirSync','entries','nhgqZ','7176OPepsa','zbQSU','sVesW','findIndex','measureWrapper','slice','isTrue','path','kQhDO','findPlaywrightTestFiles','url','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20process.env.GLOBAL_AGENT_NO_PROXY=\x22','skipSessionStatus','forEach','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}catch{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20This\x20is\x20a\x20failsafe\x20if\x20global-agent\x20present\x20inside\x20sdk\x20node_modules\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','yarn','NdZcr','sep','browserstackSetupConfig.json','./accessibility-helper','qqFSb','BROWSERSTACK_SETUP_CONFIG_PATH','PLAYWRIGHT','reorderTestFiles','testObservability','playwright','--config','60CriPDA','apply','MODULE','OvoSw','AnOGo','kjzlj','goATO','2925976bmRknY','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','resolve','../../helpers/accessibility-automation/helper','Owkgy','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap();','AclAJ','filter','jeetr','EVENTS','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20','win32','HVQya','SDK_PRE_INITIALIZE','dAyvd','bcYYW','test','wVnWf',')._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','./reporter/test-details','filterBrowserstackArgs','Error\x20in\x20closing\x20playwright','O11yHashedID','../../helpers/utilities','../../helpers/logger','configPath','reportConflictingEnvVarIssue','create','push','\x27browserstack-node-sdk\x27','isUndefined','trim','pw_result.json','homedir','jkzaS','../utils/clientTroubleshootingService','SAAZA','accessibilityOptions','true','Unable\x20to\x20resolve\x20global-agent\x20from\x20the\x20SDK\x20module\x20graph:\x20','../../helpers/helper','3143UllYZT','../../helpers/test-orchestration/testOrchestrationHandler','fECjD'];a51_0x4aec=function(){return _0x3aeae4;};return a51_0x4aec();}module[a51_0x3e8363(0x174)]=run;
|
|
2
|
+
'use strict';function a51_0x1707(){const _0x20f53c=['ktTXa','close','stop','W_OK','playwright','clearTempPWConfig','Proxy\x20url\x20:\x20','../v2/TestInfo','UjrKr','filter','getConfigPath','USER_CONFIG_DETAILS_PATH','Playwright\x20process\x20exited\x20with\x20code\x20','split','getConfig','uPFhm','8LYfWtF','exports','bootstrap\x20=\x20require(\x22./node_modules/browserstack-node-sdk/node_modules/global-agent\x22).bootstrap;','RZGXP','util','--config=','oqsCt','MARdd','aqzjY','zxqyk','isUndefined','getPackageType','readdirSync','../utils/constants','inherit','debug','length','RqxzS','cliConfig','../../helpers/testhub/testhubHandler','SDK_POST_INITIALIZE','gaIwJ','zlPnb','unlinkSync','url','playwright-browserstack-sdk.config.js','MArua','true','testContextOptions','get','errorMessage','isTypescriptProject','forEach','Error\x20in\x20closing\x20playwright','517VrUuvg','testObservability','concat','../../helpers/BrowserStackSetup','../v2/runStateStore','warn','1797925Doqibx','ONecd','MODULE','accessSync','FBiBW','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','Updated\x20config\x20file\x20name\x20to\x20-\x20','apply','yOSDC','YEusG','--config','vBnqR','configPath','push','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(','R_OK','../../helpers/test-observability/constants','../../helpers/test-orchestration/testOrchestrationHandler','browserstackSetupConfig.json','nezms','EleFS','shutdown','skipSessionStatus','ejknq','O11yHashedID','ZumrR','\x20/\x20(esm)\x20','sep','logLevel','skipSessionName','10ETCMCy','automation','EVENTS','test','12WzwWdo','finalExecution','mXCWw','isYarnPnP','CIZlX','BROWSERSTACK_PW_CONFIG_DIR','yarn','YDohI','assign','playwright-browserstack-sdk.config.cjs','ccAyH','constants','trace_','GGaDF','129128XgTqPm','OLFTa','mWpuA','isCLIEnabled','map','accessibility','join','BROWSERSTACK_SETUP_CONFIG_PATH','isRunning','trim','start','PHVMx','cwd','isTrue','./reporter/pwUtils','seeded\x20BROWSERSTACK_TESTHUB_UUID_SEED\x20with\x20testhub\x20build\x20id\x20','PACKAGE_TYPE','KVaDj','Bxzkf','gYAQT','--grep','config','validateRerunTestList','xZWdD','info','Error\x20in\x20getting\x20funnel\x20data\x20results','startsWith','pw_result.json','tyFmh','--disable-browserstack-automation','--disable-test-observability','683418Rkucey','resolve','Deleting\x20','\x20test\x20files\x20to\x20run.','INTERNALLY_USED_ENV_VARS','env','../../helpers/test-observability/utils','TjUup','\x27browserstack-node-sdk\x27','../../helpers/logger','../../helpers/testhub/utils','../../index.js','ypCKu','browserstackAutomation','child_process','BROWSERSTACK_TESTHUB_UUID_SEED','jVAQk','serializeToYamlString','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(','rLEJG','./reporterArgs','../../helpers/helper','../../helpers/accessibility-automation/helper','accessibilityOptions','Found:\x20','../../helpers/performance/performance-tester','Test\x20orchestration\x20is\x20enabled,\x20initializing\x20orchestration\x20handler','end','path','reportDotBrowserStackFolderNotAccessibleIssue','win32','XMbLc','OVskw','create','isFalse','VGucB','vFGUD','../../helpers/performance/constants','tDxGR','PLAYWRIGHT','BrowserStack\x20config\x20file\x20not\x20found.','initialize','WPnUK','JiYjb','existsSync',').bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}','RujIL','HzGwM','5375678CElcin','NVyJc','measureWrapper','getNoProxy','dirname','isTestOrchestrationEnabled','writeFileSync','qqOJM','RtJYe','SDK_SETUP','splice','setFrameworkDetail','SDK_CLEANUP','homedir','isValidEnvValue','global-agent','setBrowserstackConfig','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20process.env.GLOBAL_AGENT_NO_PROXY=\x22','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap();','104012zCpYoZ','platform','../v2/browserstackCLI','try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','fiJUm','../../helpers/utilities','vdFTX','../v2/cliUtils','EYdXW','EqkEU','3986154hlIIAc','123020mTPOdA','slice','launchBuild','readFileSync','BROWSERSTACK_TEST_OBSERVABILITY','BROWSERSTACK_TEST_ACCESSIBILITY_YML','cwJZU','exitCode','npx','resolvedConfigFile','getInstance','stringify','BROWSERSTACK_AUTOMATION','ojdkQ','filterBrowserstackArgs','reportConflictingEnvVarIssue','ArTqy','YHzri','setupBrowserstackLocal','reorderTestFiles'];a51_0x1707=function(){return _0x20f53c;};return a51_0x1707();}const a51_0xd15637=a51_0x79ff;(function(_0x3fffc9,_0x418179){const _0x28e9e6=a51_0x79ff,_0x378093=_0x3fffc9();while(!![]){try{const _0x40ad34=-parseInt(_0x28e9e6(0x2b7))/0x1*(parseInt(_0x28e9e6(0x243))/0x2)+-parseInt(_0x28e9e6(0x247))/0x3*(parseInt(_0x28e9e6(0x255))/0x4)+parseInt(_0x28e9e6(0x225))/0x5+parseInt(_0x28e9e6(0x274))/0x6+parseInt(_0x28e9e6(0x2a4))/0x7+-parseInt(_0x28e9e6(0x1fd))/0x8*(-parseInt(_0x28e9e6(0x2c1))/0x9)+parseInt(_0x28e9e6(0x2c2))/0xa*(-parseInt(_0x28e9e6(0x21f))/0xb);if(_0x40ad34===_0x418179)break;else _0x378093['push'](_0x378093['shift']());}catch(_0x2fe13e){_0x378093['push'](_0x378093['shift']());}}}(a51_0x1707,0x6f906));const fs=require('fs'),path=require(a51_0xd15637(0x290)),{pathToFileURL}=require(a51_0xd15637(0x215)),{spawn}=require(a51_0xd15637(0x282)),{format}=require(a51_0xd15637(0x201)),logger=require(a51_0xd15637(0x27d))['winstonLogger'],{default:BrowserStackSetup}=require(a51_0xd15637(0x222)),helper=require(a51_0xd15637(0x289)),utilities=require(a51_0xd15637(0x2bc)),constants=require(a51_0xd15637(0x20a)),{FRAMEWORKS}=require(a51_0xd15637(0x235)),{getConfigLoaderPath}=require(a51_0xd15637(0x263)),{mergeBrowserstackReporterIntoCliReporterFlag}=require(a51_0xd15637(0x288)),{shouldProcessEventForTesthub}=require(a51_0xd15637(0x27e)),{checkAccessibilityPlatformConfig}=require(a51_0xd15637(0x28a)),{setAccessibilityCapabilities}=require('./accessibility-helper'),{printBuildLink}=require(a51_0xd15637(0x27a)),TestDetails=require('./reporter/test-details'),TestHubHandler=require(a51_0xd15637(0x210)),PerformanceTester=require(a51_0xd15637(0x28d)),TestOrchestrationHandler=require(a51_0xd15637(0x236)),BrowserstackCLI=require(a51_0xd15637(0x2b9)),PerformanceEvents=require(a51_0xd15637(0x299))[a51_0xd15637(0x245)],CLIUtils=require(a51_0xd15637(0x2be)),TestInfo=require(a51_0xd15637(0x1f4)),ClientTroubleShootingService=require('../utils/clientTroubleshootingService'),getUserPlaywrightConfig=async(_0x5bfb9d,_0x33c805)=>{const _0x14e67e=a51_0xd15637,_0x670c4a={'MSdxh':function(_0x5dab77){return _0x5dab77();},'FBiBW':function(_0x18f6f9,_0x1c3421){return _0x18f6f9(_0x1c3421);},'nTCJX':function(_0x347c6b,_0x2bc6bd){return _0x347c6b(_0x2bc6bd);},'RSvTR':_0x14e67e(0x2cb),'ktTXa':_0x14e67e(0x202)},_0x330bc9=!helper['isUndefined'](_0x5bfb9d['config']),_0x2ce99e=_0x330bc9?path[_0x14e67e(0x275)](process[_0x14e67e(0x261)](),_0x5bfb9d[_0x14e67e(0x26a)]):process[_0x14e67e(0x261)](),{resolveConfigFile:_0x28f881,resolveConfigLocation:_0x2bfc2e}=helper['requirePWModule'][_0x14e67e(0x22c)](null,_0x670c4a['MSdxh'](getConfigLoaderPath)),_0x1e4321=_0x28f881?_0x670c4a[_0x14e67e(0x229)](_0x28f881,_0x2ce99e):helper['nestedKeyValue'](_0x670c4a['nTCJX'](_0x2bfc2e,_0x2ce99e),[_0x670c4a['RSvTR']]),_0x4b4b52={};if(_0x330bc9){const _0x49b476=_0x33c805['findIndex'](_0x1b060e=>_0x1b060e===_0x14e67e(0x22f)||_0x1b060e==='-c'||_0x1b060e[_0x14e67e(0x26f)](_0x14e67e(0x202)));_0x33c805[_0x14e67e(0x2ae)](_0x49b476,_0x33c805[_0x49b476][_0x14e67e(0x26f)](_0x670c4a[_0x14e67e(0x1ed)])?0x1:0x2);}const _0x2fb2b8={};return _0x2fb2b8[_0x14e67e(0x290)]=_0x1e4321,_0x2fb2b8[_0x14e67e(0x26a)]=_0x4b4b52,_0x2fb2b8;},handleO11yRerun=_0x1f7c27=>{const _0x46eed8=a51_0xd15637,_0x1f5aee={};_0x1f5aee[_0x46eed8(0x29a)]=_0x46eed8(0x269);const _0x285399=_0x1f5aee,_0x1def64=helper[_0x46eed8(0x262)](process['env']['BROWSERSTACK_RERUN']);if(_0x1def64){const _0x4e2ad5=process[_0x46eed8(0x279)]['BROWSERSTACK_RERUN_TESTS'],_0x3500a6=[];if(helper[_0x46eed8(0x26b)](_0x4e2ad5)&&!helper[_0x46eed8(0x207)](_0x4e2ad5)){_0x4e2ad5[_0x46eed8(0x1fa)](',')[_0x46eed8(0x259)](_0x5835d1=>{const _0x551ec5=_0x46eed8;_0x3500a6[_0x551ec5(0x232)]('('+_0x5835d1[_0x551ec5(0x25e)]()+')');});const _0x20f250='^'+_0x3500a6['join']('|')+'$';_0x1f7c27['push'](_0x285399[_0x46eed8(0x29a)],_0x20f250);}}},spawnOriginalProcess=_0x50d143=>{const _0x39f2f7=a51_0xd15637,_0xa35211={'WPnUK':function(_0x20051f,_0x1372aa,_0x32750c,_0x3c39aa){return _0x20051f(_0x1372aa,_0x32750c,_0x3c39aa);},'qqOJM':'yarn','yOSDC':_0x39f2f7(0x2ca),'RhZwJ':'playwright','EqkEU':function(_0x27d4b3,_0x1e7855){return _0x27d4b3===_0x1e7855;},'oqUuU':_0x39f2f7(0x292),'nydnU':_0x39f2f7(0x20b)};_0xa35211[_0x39f2f7(0x29e)](spawn,helper[_0x39f2f7(0x24a)]()?_0xa35211[_0x39f2f7(0x2ab)]:_0xa35211[_0x39f2f7(0x22d)],[_0xa35211['RhZwJ'],..._0x50d143['slice'](0x1)],{'shell':_0xa35211[_0x39f2f7(0x2c0)](process['platform'],_0xa35211['oqUuU']),'stdio':_0xa35211['nydnU'],'cwd':process[_0x39f2f7(0x261)]()});},isTestCommand=(_0x495f53,_0x103deb)=>{const _0x5985ec=a51_0xd15637,_0x168ec4={};_0x168ec4[_0x5985ec(0x203)]=function(_0x470e8e,_0x3e298c){return _0x470e8e>_0x3e298c;},_0x168ec4['ekqsR']=function(_0x3e97a6,_0x31ebcc){return _0x3e97a6===_0x31ebcc;},_0x168ec4[_0x5985ec(0x254)]=_0x5985ec(0x246);const _0x3a1459=_0x168ec4;if(_0x3a1459[_0x5985ec(0x203)](_0x103deb['length'],0x1)&&_0x3a1459['ekqsR'](_0x103deb[0x1],_0x3a1459[_0x5985ec(0x254)]))return!![];return![];};function a51_0x79ff(_0x2fcd07,_0x7c64e0){const _0x17077d=a51_0x1707();return a51_0x79ff=function(_0x79ffae,_0x261997){_0x79ffae=_0x79ffae-0x1e3;let _0x4ed7b9=_0x17077d[_0x79ffae];return _0x4ed7b9;},a51_0x79ff(_0x2fcd07,_0x7c64e0);}async function run(_0x116670,_0x3f1094,_0xa94d18){const _0x3e8bd2=a51_0xd15637,_0x5aab17={'CIZlX':function(_0x434144,_0x17441d){return _0x434144(_0x17441d);},'xXPDs':_0x3e8bd2(0x223),'RtJYe':'pw_result','YDohI':function(_0x25c233,_0x1c6285){return _0x25c233>_0x1c6285;},'KVaDj':'.browserstack','RZGXP':_0x3e8bd2(0x270),'zlPnb':function(_0x445bae,_0x22cd70){return _0x445bae+_0x22cd70;},'MARdd':_0x3e8bd2(0x26e),'hLXHF':function(_0x48ecd4){return _0x48ecd4();},'VGucB':function(_0x509c1b){return _0x509c1b();},'YEusG':function(_0x2e32c5,_0x2a5c60){return _0x2e32c5+_0x2a5c60;},'qpUCu':_0x3e8bd2(0x21e),'nezms':_0x3e8bd2(0x29c),'JiYjb':function(_0x3da96a,_0x416eb1){return _0x3da96a<_0x416eb1;},'MArua':function(_0x5c69cf,_0x3dac39){return _0x5c69cf===_0x3dac39;},'RqxzS':'false','XMbLc':_0x3e8bd2(0x273),'ejknq':function(_0x54d80b,_0x2d096d){return _0x54d80b>=_0x2d096d;},'HzGwM':function(_0xbd385e,_0x56e089){return _0xbd385e===_0x56e089;},'zxqyk':_0x3e8bd2(0x244),'ojdkQ':function(_0x591295,_0x3db362){return _0x591295!=_0x3db362;},'uPFhm':function(_0x297e0c,_0xd2feba,_0x3c87e0){return _0x297e0c(_0xd2feba,_0x3c87e0);},'fiJUm':function(_0xe9e63,_0x59bc38){return _0xe9e63(_0x59bc38);},'EoroJ':_0x3e8bd2(0x218),'rLEJG':function(_0x4718f2,_0x122408){return _0x4718f2(_0x122408);},'vFGUD':_0x3e8bd2(0x237),'ArTqy':_0x3e8bd2(0x250),'xrYCW':_0x3e8bd2(0x216),'DAUgy':_0x3e8bd2(0x27f),'NVyJc':function(_0x31e12b,_0x33345f){return _0x31e12b===_0x33345f;},'ZumrR':_0x3e8bd2(0x27c),'YHzri':function(_0x1e44b3,_0x15192c){return _0x1e44b3-_0x15192c;},'mWpuA':function(_0x317a26,_0x5bb4ca){return _0x317a26+_0x5bb4ca;},'ypCKu':_0x3e8bd2(0x22b),'PHVMx':function(_0x287824,_0x67f130){return _0x287824>_0x67f130;},'ccAyH':_0x3e8bd2(0x2b3),'UjrKr':_0x3e8bd2(0x1ff),'EleFS':function(_0x37a952){return _0x37a952();},'gaIwJ':_0x3e8bd2(0x28e),'DEtDX':function(_0x309554,_0x11944e){return _0x309554<_0x11944e;},'ONecd':_0x3e8bd2(0x1f1),'EYdXW':function(_0x1b8d3c,_0x4915b0,_0x1c10c8,_0x2e72e6){return _0x1b8d3c(_0x4915b0,_0x1c10c8,_0x2e72e6);},'gYAQT':_0x3e8bd2(0x24d),'tyFmh':'npx','PxzDl':_0x3e8bd2(0x246),'RujIL':_0x3e8bd2(0x22f),'jVAQk':_0x3e8bd2(0x292),'OLFTa':_0x3e8bd2(0x20b),'xZWdD':_0x3e8bd2(0x1ee),'cwJZU':function(_0xe74048,_0x567a8d){return _0xe74048|_0x567a8d;},'TjUup':'Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','vBnqR':'Error\x20in\x20deleting\x20playwright\x20results','UqteY':function(_0x29724a,_0x465980){return _0x29724a(_0x465980);}};try{const _0x31cc89=path[_0x3e8bd2(0x25b)](helper[_0x3e8bd2(0x2b1)](),_0x5aab17[_0x3e8bd2(0x266)]);try{fs[_0x3e8bd2(0x228)](_0x31cc89,_0x5aab17[_0x3e8bd2(0x2c8)](fs[_0x3e8bd2(0x252)][_0x3e8bd2(0x234)],fs[_0x3e8bd2(0x252)][_0x3e8bd2(0x1f0)]));}catch(_0x1aabb7){ClientTroubleShootingService[_0x3e8bd2(0x291)]();}}catch(_0x133683){logger[_0x3e8bd2(0x20c)](_0x5aab17[_0x3e8bd2(0x22e)](_0x5aab17[_0x3e8bd2(0x27b)],_0x133683));}try{const _0x35c0e6=path['join'](helper['homedir'](),_0x5aab17[_0x3e8bd2(0x266)],_0x5aab17[_0x3e8bd2(0x200)]);fs[_0x3e8bd2(0x2a0)](_0x35c0e6)&&fs[_0x3e8bd2(0x214)](_0x35c0e6);}catch(_0x5721b5){logger[_0x3e8bd2(0x20c)](_0x5aab17[_0x3e8bd2(0x257)](_0x5aab17[_0x3e8bd2(0x230)],_0x5721b5));}if(!_0x5aab17['uPFhm'](isTestCommand,_0x116670,_0x3f1094)){_0x5aab17['UqteY'](spawnOriginalProcess,_0x3f1094);return;}await PerformanceTester[_0x3e8bd2(0x2a6)](PerformanceEvents['SDK_PRE_INITIALIZE'],async()=>{const _0x315ccc=_0x3e8bd2,_0x47e518={'OVskw':function(_0x3f9882,_0x4a0917){const _0x490253=a51_0x79ff;return _0x5aab17[_0x490253(0x24b)](_0x3f9882,_0x4a0917);},'mXCWw':_0x5aab17[_0x315ccc(0x266)],'vdFTX':function(_0x466662){return _0x5aab17['hLXHF'](_0x466662);},'Bxzkf':function(_0x2b4dc6){const _0x3aac27=_0x315ccc;return _0x5aab17[_0x3aac27(0x297)](_0x2b4dc6);},'VLSCk':function(_0x36feff,_0x52a9cb){return _0x5aab17['YEusG'](_0x36feff,_0x52a9cb);},'FKbWd':_0x5aab17['qpUCu']};if(!_0xa94d18[_0x315ccc(0x26a)]){logger['error'](_0x5aab17[_0x315ccc(0x238)]);return;}await _0xa94d18[_0x315ccc(0x29d)](_0x116670),CLIUtils[_0x315ccc(0x2af)](FRAMEWORKS[_0x315ccc(0x29b)],FRAMEWORKS[_0x315ccc(0x29b)]),BrowserstackCLI[_0x315ccc(0x1e3)]()[_0x315ccc(0x2b4)](_0xa94d18[_0x315ccc(0x26a)],_0xa94d18[_0x315ccc(0x231)],_0xa94d18[_0x315ccc(0x20f)]),await BrowserstackCLI[_0x315ccc(0x1e3)]()['bootstrap']();!BrowserstackCLI[_0x315ccc(0x1e3)]()['isRunning']()&&await _0xa94d18[_0x315ccc(0x1eb)]();for(var _0x5a5a2=0x0;_0x5aab17[_0x315ccc(0x29f)](_0x5a5a2,constants[_0x315ccc(0x278)][_0x315ccc(0x20d)]);_0x5a5a2++){var _0x4ed92a=constants[_0x315ccc(0x278)][_0x5a5a2];process[_0x315ccc(0x279)][_0x4ed92a]&&await ClientTroubleShootingService[_0x315ccc(0x1e8)](_0x4ed92a);}const _0x1fd9c8=BrowserstackCLI['getInstance']()[_0x315ccc(0x1fb)]();!helper['isFalse'](_0x1fd9c8[_0x315ccc(0x281)])&&(process['env'][_0x315ccc(0x1e5)]=!![]);_0x5aab17[_0x315ccc(0x217)](_0x1fd9c8[_0x315ccc(0x281)],![])&&(process[_0x315ccc(0x279)]['BROWSERSTACK_AUTOMATION']=_0x5aab17[_0x315ccc(0x20e)],_0x3f1094=_0x3f1094['filter'](_0x11b379=>_0x11b379!==_0x315ccc(0x272)));const _0x3fbe31=_0x3f1094['indexOf'](_0x5aab17[_0x315ccc(0x293)]);(_0x5aab17[_0x315ccc(0x23c)](_0x3fbe31,0x0)||_0x5aab17['HzGwM'](_0x1fd9c8[_0x315ccc(0x220)],![]))&&(process[_0x315ccc(0x279)][_0x315ccc(0x2c6)]=_0x5aab17[_0x315ccc(0x20e)],_0x3f1094=_0x3f1094[_0x315ccc(0x1f6)](_0x16b2a7=>_0x16b2a7!=='--disable-test-observability'));!helper[_0x315ccc(0x207)](_0xa94d18['cliConfig'])&&_0xa94d18['cliConfig']['has'](_0x5aab17[_0x315ccc(0x206)])&&(process[_0x315ccc(0x279)]['BROWSERSTACK_AUTOMATION']=_0xa94d18[_0x315ccc(0x20f)][_0x315ccc(0x21a)](_0x5aab17[_0x315ccc(0x206)])||!![]);_0x5aab17[_0x315ccc(0x1e6)](_0xa94d18['config']['testObservability'],null)&&!helper[_0x315ccc(0x262)](process[_0x315ccc(0x279)][_0x315ccc(0x2c6)])&&(process[_0x315ccc(0x279)]['BROWSERSTACK_TEST_OBSERVABILITY']=process[_0x315ccc(0x279)][_0x315ccc(0x2c6)]||_0xa94d18[_0x315ccc(0x26a)][_0x315ccc(0x220)]);const _0x4f62d7=!helper[_0x315ccc(0x296)](process[_0x315ccc(0x279)]['BROWSERSTACK_TEST_OBSERVABILITY']);if(BrowserstackCLI[_0x315ccc(0x1e3)]()[_0x315ccc(0x25d)]()&&_0x4f62d7){const _0x7f7f89=BrowserstackCLI[_0x315ccc(0x23d)];helper[_0x315ccc(0x2b2)](_0x7f7f89)?(process[_0x315ccc(0x279)][_0x315ccc(0x283)]=_0x7f7f89,logger[_0x315ccc(0x20c)](_0x315ccc(0x264)+_0x7f7f89)):logger[_0x315ccc(0x224)]('testhub\x20build\x20UUID\x20(BrowserstackCLI.O11yHashedID)\x20unavailable;\x20skipping\x20deterministic\x20test-run\x20uuid\x20seeding\x20and\x20falling\x20back\x20to\x20file-coordinated\x20uuids.\x20Got:\x20'+_0x7f7f89);}_0xa94d18['config'][_0x315ccc(0x28b)]&&(process['env'][_0x315ccc(0x22a)]=JSON['stringify'](_0xa94d18['config'][_0x315ccc(0x28b)]));let _0x18a936=![];_0xa94d18[_0x315ccc(0x26a)][_0x315ccc(0x25a)]&&(_0x18a936=!![],process[_0x315ccc(0x279)][_0x315ccc(0x2c7)]=_0xa94d18[_0x315ccc(0x26a)][_0x315ccc(0x25a)]);const _0xd61237=_0x3f1094[_0x315ccc(0x221)](),_0x2c5fc9=await _0x5aab17['uPFhm'](getUserPlaywrightConfig,_0x116670,_0x3f1094);if(helper[_0x315ccc(0x207)](_0x2c5fc9)){_0x5aab17[_0x315ccc(0x2bb)](spawnOriginalProcess,_0xd61237);return;}const _0x16b0c9=_0x2c5fc9[_0x315ccc(0x290)]?path[_0x315ccc(0x2a8)](_0x2c5fc9[_0x315ccc(0x290)]):process[_0x315ccc(0x261)]();process['env'][_0x315ccc(0x24c)]=_0x16b0c9,await PerformanceTester[_0x315ccc(0x2a6)](PerformanceEvents[_0x315ccc(0x211)],async()=>{const _0x5b1216=_0x315ccc;!BrowserstackCLI[_0x5b1216(0x1e3)]()[_0x5b1216(0x25d)]()&&await TestHubHandler[_0x5b1216(0x2c4)](FRAMEWORKS[_0x5b1216(0x29b)],_0xa94d18),_0x4f62d7&&_0x47e518[_0x5b1216(0x294)](handleO11yRerun,_0x3f1094);})();if(!BrowserstackCLI[_0x315ccc(0x1e3)]()[_0x315ccc(0x25d)]()){let _0x271a46=_0x5aab17['MArua'](process['env'][_0x315ccc(0x2c7)],_0x5aab17['EoroJ']);_0x271a46=_0x271a46||_0x5aab17[_0x315ccc(0x287)](checkAccessibilityPlatformConfig,_0xa94d18[_0x315ccc(0x26a)]),process[_0x315ccc(0x279)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x271a46,_0x271a46&&_0x5aab17['CIZlX'](setAccessibilityCapabilities,_0xa94d18[_0x315ccc(0x26a)]);}const _0x3bbc4d=path[_0x315ccc(0x25b)](_0x2c5fc9['path']?path[_0x315ccc(0x2a8)](_0x2c5fc9[_0x315ccc(0x290)]):process[_0x315ccc(0x261)](),_0x5aab17[_0x315ccc(0x298)]);fs[_0x315ccc(0x2aa)](_0x3bbc4d,helper[_0x315ccc(0x285)](_0xa94d18['config'])),process['env'][_0x315ccc(0x25c)]=_0x3bbc4d,helper[_0x315ccc(0x1f2)]();let _0x5017d3='';_0x5aab17[_0x315ccc(0x217)](helper[_0x315ccc(0x208)](_0x16b0c9),constants[_0x315ccc(0x265)][_0x315ccc(0x227)])?_0x5017d3=_0x5aab17[_0x315ccc(0x1e9)]:_0x5017d3=_0x5aab17['xrYCW'];let _0x4d1214='';const _0x5383c3=path[_0x315ccc(0x275)](__dirname,_0x5aab17['DAUgy']),_0x4071c7=fs['existsSync'](_0x5383c3),_0x39da2c=_0x5aab17[_0x315ccc(0x2a5)](helper[_0x315ccc(0x208)](_0x16b0c9),constants['PACKAGE_TYPE'][_0x315ccc(0x227)]),_0x354a00=_0x4071c7?JSON[_0x315ccc(0x1e4)](_0x5383c3):_0x5aab17['ZumrR'],_0x2301ac=_0x4071c7?_0x39da2c?JSON[_0x315ccc(0x1e4)](_0x5aab17[_0x315ccc(0x287)](pathToFileURL,_0x5383c3)['href']):JSON[_0x315ccc(0x1e4)](_0x5383c3):_0x5aab17[_0x315ccc(0x23e)];logger[_0x315ccc(0x20c)]('Generated\x20Playwright\x20config\x20will\x20load\x20the\x20SDK\x20from\x20(cjs)\x20'+_0x354a00+_0x315ccc(0x23f)+_0x2301ac);if(helper[_0x315ccc(0x21c)](_0x2c5fc9['path'])){_0x4d1214='\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20'+_0x2301ac+';\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a';const _0x4776ae=_0x5017d3[_0x315ccc(0x1fa)]('.');_0x4776ae[_0x5aab17[_0x315ccc(0x1ea)](_0x4776ae['length'],0x1)]='ts',_0x5017d3=_0x4776ae['join']('.'),logger['debug'](_0x5aab17['mWpuA'](_0x5aab17[_0x315ccc(0x280)],_0x5017d3));}else _0x4d1214=_0x315ccc(0x286)+_0x354a00+')._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a';const _0x5c4985=path['join'](_0x2c5fc9[_0x315ccc(0x290)]?path['dirname'](_0x2c5fc9[_0x315ccc(0x290)]):process['cwd'](),_0x5017d3);let _0xef1d6=_0x2c5fc9[_0x315ccc(0x290)]?_0x2c5fc9[_0x315ccc(0x290)]:'';_0xef1d6=_0x5aab17['PHVMx'](_0xef1d6['length'],0x0)?path[_0x315ccc(0x275)](_0xef1d6):'',process[_0x315ccc(0x279)][_0x315ccc(0x1f8)]=_0xef1d6;const _0x4b6c45=helper['getProxyUrl'](_0xa94d18[_0x315ccc(0x26a)]),_0x2dd6ae=helper[_0x315ccc(0x2a7)](_0xa94d18['config']);logger[_0x315ccc(0x20c)](_0x315ccc(0x1f3)+_0x4b6c45),logger[_0x315ccc(0x20c)]('No\x20Proxy\x20:\x20'+_0x2dd6ae);if(_0x4b6c45){let _0x19b923='';try{_0x19b923=require[_0x315ccc(0x275)](_0x5aab17[_0x315ccc(0x251)]);}catch(_0x21ca27){logger[_0x315ccc(0x20c)]('Unable\x20to\x20resolve\x20global-agent\x20from\x20the\x20SDK\x20module\x20graph:\x20'+_0x21ca27);}const _0x1c3bcd=_0x5aab17[_0x315ccc(0x1f5)],_0xc10e61=_0x19b923?_0x315ccc(0x2ba)+_0x1c3bcd+_0x315ccc(0x233)+JSON[_0x315ccc(0x1e4)](_0x19b923)+_0x315ccc(0x2a1):_0x1c3bcd;_0x4d1214=_0x5aab17[_0x315ccc(0x22e)]('process.env.GLOBAL_AGENT_HTTP_PROXY=\x22'+_0x4b6c45+_0x315ccc(0x2b5)+_0x2dd6ae+'\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}catch{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20This\x20is\x20a\x20failsafe\x20if\x20global-agent\x20present\x20inside\x20sdk\x20node_modules\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0xc10e61+_0x315ccc(0x2b6),_0x4d1214);}helper[_0x315ccc(0x1e7)]({},_0x3f1094),_0x5aab17[_0x315ccc(0x1fc)](mergeBrowserstackReporterIntoCliReporterFlag,_0x3f1094,{'enabled':_0x5aab17[_0x315ccc(0x239)](shouldProcessEventForTesthub)}),fs[_0x315ccc(0x2aa)](_0x5c4985,_0x4d1214);let _0x1afaac=[];const _0x44642d=new TestOrchestrationHandler(_0xa94d18['config']);if(_0x44642d[_0x315ccc(0x2a9)]()){logger['debug'](_0x5aab17[_0x315ccc(0x212)]);const _0x2151fd=await _0x44642d['findPlaywrightTestFiles'](_0xef1d6,_0x3f1094[_0x315ccc(0x2c3)](0x2));logger['debug'](_0x315ccc(0x28c)+JSON[_0x315ccc(0x1e4)](_0x2151fd)+_0x315ccc(0x277));const _0x3e6e16=await _0x44642d[_0x315ccc(0x1ec)](_0x2151fd);logger['debug']('Reordered\x20Test\x20Files:\x20'+JSON[_0x315ccc(0x1e4)](_0x3e6e16)),_0x3e6e16&&_0x5aab17[_0x315ccc(0x260)](_0x3e6e16[_0x315ccc(0x20d)],0x0)&&(process[_0x315ccc(0x279)]['BROWSERSTACK_PW_TEST_ORDER']=_0x3e6e16[_0x315ccc(0x25b)](','),_0x5aab17['DEtDX'](_0x3e6e16[_0x315ccc(0x20d)],_0x2151fd[_0x315ccc(0x20d)])&&(_0x1afaac=_0x3e6e16[_0x315ccc(0x259)](_0x3bb661=>path['relative'](process[_0x315ccc(0x261)](),_0x3bb661)[_0x315ccc(0x1fa)](path[_0x315ccc(0x240)])['join']('/'))));}PerformanceTester[_0x315ccc(0x28f)](PerformanceEvents[_0x315ccc(0x2ad)]),process[_0x315ccc(0x279)]['BROWSERSTACK_FRAMEWORK']=process['env']['BROWSERSTACK_FRAMEWORK']||_0x5aab17[_0x315ccc(0x226)];const _0x487b07=_0x5aab17[_0x315ccc(0x2bf)](spawn,helper['isYarnPnP']()?_0x5aab17[_0x315ccc(0x268)]:_0x5aab17[_0x315ccc(0x271)],[_0x5aab17[_0x315ccc(0x226)],_0x5aab17['PxzDl'],_0x5aab17[_0x315ccc(0x2a2)],_0x5aab17[_0x315ccc(0x2a3)](process[_0x315ccc(0x2b8)],_0x5aab17[_0x315ccc(0x284)])?'\x22'+_0x5c4985+'\x22':_0x5c4985,..._0x3f1094['slice'](0x2),..._0x1afaac],{'shell':_0x5aab17['HzGwM'](process[_0x315ccc(0x2b8)],_0x5aab17[_0x315ccc(0x284)]),'stdio':_0x5aab17[_0x315ccc(0x256)],'cwd':process[_0x315ccc(0x261)](),'env':Object[_0x315ccc(0x24f)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x315ccc(0x1f7)](_0x116670),'BROWSERSTACK_SKIP_SESSION_STATUS':_0xa94d18[_0x315ccc(0x26a)][_0x315ccc(0x219)][_0x315ccc(0x23b)],'BROWSERSTACK_SKIP_SESSION_NAME':_0xa94d18[_0x315ccc(0x26a)][_0x315ccc(0x219)][_0x315ccc(0x242)],'BROWSERSTACK_LOG_LEVEL':_0xa94d18['config'][_0x315ccc(0x241)]})}),_0x1416bb=async()=>{const _0x23c0b3=_0x315ccc;try{if(BrowserstackCLI[_0x23c0b3(0x1e3)]()[_0x23c0b3(0x25d)]()){const _0x2c131a=_0x5aab17[_0x23c0b3(0x24b)](require,_0x5aab17['xXPDs']),_0x5c4df0=await _0x2c131a['getBuildState'](_0x5aab17[_0x23c0b3(0x2ac)])||[];if(_0x5aab17[_0x23c0b3(0x24e)](_0x5c4df0[_0x23c0b3(0x20d)],0x0)){const _0x43a2bf={};_0x5c4df0['forEach'](_0x3b82b7=>{const _0x296bc2=_0x23c0b3,_0x4a58f1=_0x43a2bf[_0x3b82b7['key']]||Object[_0x296bc2(0x295)](null);(_0x3b82b7['entries']||[])[_0x296bc2(0x21d)](({title:_0x1ae902,error:_0x3b28e0})=>{_0x4a58f1[_0x1ae902]=_0x3b28e0;}),_0x43a2bf[_0x3b82b7['key']]=_0x4a58f1;}),_0xa94d18[_0x23c0b3(0x21b)]=_0x43a2bf;return;}}const _0xe9dc2c=path[_0x23c0b3(0x25b)](helper[_0x23c0b3(0x2b1)](),_0x5aab17[_0x23c0b3(0x266)],_0x5aab17[_0x23c0b3(0x200)]);if(fs['existsSync'](_0xe9dc2c)){let _0xd820ba=fs[_0x23c0b3(0x2c5)](_0xe9dc2c);_0xd820ba=JSON['parse'](_0xd820ba),_0xa94d18['errorMessage']=_0xd820ba,fs['unlinkSync'](_0xe9dc2c);}}catch(_0x5f478d){logger[_0x23c0b3(0x20c)](_0x5aab17[_0x23c0b3(0x213)](_0x5aab17[_0x23c0b3(0x204)],_0x5f478d));}};_0x487b07['on'](_0x5aab17[_0x315ccc(0x26c)],async _0x3c048e=>{const _0x1edcab=_0x315ccc,_0x3f24de={};_0x3f24de[_0x1edcab(0x205)]=_0x47e518['mXCWw'];const _0x588981=_0x3f24de;try{PerformanceTester[_0x1edcab(0x25f)](PerformanceEvents[_0x1edcab(0x2b0)]),await _0x47e518[_0x1edcab(0x2bd)](_0x1416bb),await TestHubHandler['stop'](),await ClientTroubleShootingService['reportFinalDetectionState']();const _0x1177d1=BrowserstackCLI[_0x1edcab(0x258)]();await BrowserstackCLI[_0x1edcab(0x1e3)]()[_0x1edcab(0x1ef)](),TestDetails[_0x1edcab(0x23a)](),_0x47e518[_0x1edcab(0x267)](printBuildLink),await utilities[_0x1edcab(0x248)](_0xa94d18,_0x1177d1),process[_0x1edcab(0x2c9)]=_0x3c048e,logger[_0x1edcab(0x20c)](_0x1edcab(0x1f9)+_0x3c048e),logger[_0x1edcab(0x26d)](_0x1edcab(0x276)+_0x5c4985),fs[_0x1edcab(0x214)](_0x5c4985);fs['existsSync'](_0x3bbc4d)&&(logger['debug'](_0x1edcab(0x276)+_0x3bbc4d),fs[_0x1edcab(0x214)](_0x3bbc4d));const _0x4912a9=fs[_0x1edcab(0x209)](path[_0x1edcab(0x25b)](helper[_0x1edcab(0x2b1)](),_0x47e518[_0x1edcab(0x249)]))[_0x1edcab(0x1f6)](_0x3c431d=>_0x3c431d['startsWith'](_0x1edcab(0x253)));_0x4912a9[_0x1edcab(0x21d)](_0x2f9337=>{const _0x110110=_0x1edcab;fs['unlinkSync'](path[_0x110110(0x25b)](helper[_0x110110(0x2b1)](),_0x588981[_0x110110(0x205)],_0x2f9337));});}catch(_0x10c24d){logger[_0x1edcab(0x20c)](_0x47e518['VLSCk'](_0x47e518['FKbWd'],_0x10c24d));}});})();}module[a51_0xd15637(0x1fe)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a52_0x5c1e47=a52_0x194f;function a52_0x194f(_0x50a476,_0x11b503){const _0x53336d=a52_0x5333();return a52_0x194f=function(_0x194f40,_0x56e615){_0x194f40=_0x194f40-0xe0;let _0x3c780f=_0x53336d[_0x194f40];return _0x3c780f;},a52_0x194f(_0x50a476,_0x11b503);}(function(_0x2a606d,_0x264d03){const _0x4e0cc6=a52_0x194f,_0x3a0b5f=_0x2a606d();while(!![]){try{const _0x3ba7d9=-parseInt(_0x4e0cc6(0xe2))/0x1+parseInt(_0x4e0cc6(0xfd))/0x2*(-parseInt(_0x4e0cc6(0x114))/0x3)+parseInt(_0x4e0cc6(0x111))/0x4*(-parseInt(_0x4e0cc6(0xe9))/0x5)+-parseInt(_0x4e0cc6(0xec))/0x6*(-parseInt(_0x4e0cc6(0x101))/0x7)+parseInt(_0x4e0cc6(0xe0))/0x8*(parseInt(_0x4e0cc6(0xf4))/0x9)+parseInt(_0x4e0cc6(0xf3))/0xa+parseInt(_0x4e0cc6(0xeb))/0xb;if(_0x3ba7d9===_0x264d03)break;else _0x3a0b5f['push'](_0x3a0b5f['shift']());}catch(_0x196dc6){_0x3a0b5f['push'](_0x3a0b5f['shift']());}}}(a52_0x5333,0x9c580));const util=require(a52_0x5c1e47(0x110)),child_process=require(a52_0x5c1e47(0x109)),{FRAMEWORKS}=require(a52_0x5c1e47(0xfb)),{getFrameworkVersion,debug}=require(a52_0x5c1e47(0xe3)),helper=require('../../helpers/helper'),{getForkProcessPath}=require(a52_0x5c1e47(0x10c)),{mockIsWorkerRedundant}=require(a52_0x5c1e47(0x104)),logger=require(a52_0x5c1e47(0x10d))['winstonLogger'];try{require(a52_0x5c1e47(0x103))[a52_0x5c1e47(0x10b)]('playwright');}catch(a52_0x2d8880){logger['debug'](a52_0x5c1e47(0xf0)+(a52_0x2d8880&&a52_0x2d8880['message']));}function a52_0x5333(){const _0x4e68fb=['1.33.0','error','exports','1549995daHYIF','PLAYWRIGHT','32810833MNMBUq','426YlEpdy','kEdOf','Running\x20existing\x20global\x20setup','ZwtZZ','driver-init\x20capture\x20install\x20failed:\x20','LDtmx','compareVersions','5388220PoYhHh','1121571UmmBhZ','ijvlC','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','tugqu','isHandlePWErrorSet','\x20is\x20not\x20found','toString','../../helpers/test-observability/constants','function','2355244vWryXG','apply','Not\x20able\x20to\x20import\x20globalSetup','eRkSI','35357WsuvtT','Not\x20able\x20to\x20resolve\x20loadGlobalHook\x20for\x20current\x20Playwright\x20version','../../helpers/driverInitErrorReporter','./patches','vDBmL','Call\x20to\x20child\x20fork\x20with\x20args\x20','Path\x20','format','child_process','resolveLoadGlobalHook','installAll','./reporter/pwUtils','../../helpers/logger','env','OPWyS','util','12QCddJv','./mock-process.js','fork','3QSXOIk','8sAwZpH','SkQhj','1256862hyVFDC','../../helpers/test-observability/utils','debug','IitiO'];a52_0x5333=function(){return _0x4e68fb;};return a52_0x5333();}module[a52_0x5c1e47(0xe8)]=async function(_0x4f0809){const _0x2c0337=a52_0x5c1e47,_0x1a6d80={'ZwtZZ':function(_0x474585,_0x190cc1){return _0x474585(_0x190cc1);},'ijvlC':function(_0x5b6cea){return _0x5b6cea();},'bVZRn':_0x2c0337(0x112),'SkQhj':function(_0x3a7b2d){return _0x3a7b2d();},'OPWyS':function(_0x2a4db5,_0x1551d2){return _0x2a4db5(_0x1551d2);},'RiMBy':_0x2c0337(0xee),'tugqu':function(_0x28e31c,_0x14f796){return _0x28e31c!==_0x14f796;},'LDtmx':_0x2c0337(0xfc),'IitiO':_0x2c0337(0x102),'auKdj':function(_0x5c0609,_0x168054){return _0x5c0609(_0x168054);},'GyOIW':function(_0xac75cd,_0x5e6747){return _0xac75cd>=_0x5e6747;},'vDBmL':_0x2c0337(0xe6),'kEdOf':function(_0x585144,_0x2cda10,_0x436009){return _0x585144(_0x2cda10,_0x436009);},'eRkSI':function(_0x5e4ff4,_0x5f44de){return _0x5e4ff4!==_0x5f44de;},'ZzIEp':_0x2c0337(0xff)},_0x136b55=child_process['fork'];if(helper[_0x2c0337(0xf8)]())try{_0x1a6d80[_0x2c0337(0xe1)](mockIsWorkerRedundant);}catch(_0x54d6dc){logger[_0x2c0337(0xe4)]('Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20'+util[_0x2c0337(0x108)](_0x54d6dc));}child_process[_0x2c0337(0x113)]=function(){const _0x58e2fe=_0x2c0337;return _0x1a6d80[_0x58e2fe(0xef)](debug,_0x58e2fe(0x106)+arguments[0x0]),arguments[0x0]['includes'](_0x1a6d80[_0x58e2fe(0xf5)](getForkProcessPath))?arguments[0x0]=require['resolve'](_0x1a6d80['bVZRn']):logger[_0x58e2fe(0xe7)](_0x58e2fe(0x107)+_0x1a6d80['SkQhj'](getForkProcessPath)+_0x58e2fe(0xf9)),_0x136b55[_0x58e2fe(0xfe)](null,arguments);};if(process['env']['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']){_0x1a6d80[_0x2c0337(0x10f)](debug,_0x1a6d80['RiMBy']);try{const _0x510cf5=helper[_0x2c0337(0x10a)]();if(_0x1a6d80[_0x2c0337(0xf7)](typeof _0x510cf5,_0x1a6d80['LDtmx']))throw new Error(_0x1a6d80[_0x2c0337(0xe5)]);const _0x4f00f4=_0x1a6d80['auKdj'](getFrameworkVersion,FRAMEWORKS[_0x2c0337(0xea)]);let _0x592582=_0x4f0809;if(_0x1a6d80['GyOIW'](helper[_0x2c0337(0xf2)](_0x4f00f4,_0x1a6d80[_0x2c0337(0x105)]),0x0)){const _0x1bfe49={};_0x1bfe49['config']=_0x4f0809,_0x592582=_0x1bfe49;}const _0x4e4f8e=await _0x1a6d80[_0x2c0337(0xed)](_0x510cf5,_0x592582,process[_0x2c0337(0x10e)][_0x2c0337(0xf6)]);if(_0x1a6d80[_0x2c0337(0x100)](typeof _0x4e4f8e,_0x1a6d80[_0x2c0337(0xf1)]))throw new Error(_0x1a6d80['ZzIEp']);return _0x4e4f8e[_0x2c0337(0xfe)](null,arguments);}catch(_0x2a6bb4){_0x1a6d80[_0x2c0337(0xef)](debug,'Error\x20in\x20calling\x20existing\x20global\x20setup:\x20'+_0x2a6bb4[_0x2c0337(0xfa)]());}}};
|