'use strict';
import { UiTester } from './ui-tester.js';
import { uiTesterErrorMessages } from '../constants/ui-tester/ui-tester-error-messages.js';
import { createError } from '../../fd-toolbox/errors/errors.js';

var __defProp=Object['defineProperty'],__name=(_0x2d656e,_0x502e96)=>__defProp(_0x2d656e,'name',{'value':_0x502e96,'configurable':!![]});let uiTestPageCache={};function setUiTestPage(_0x184a56){const _0x23d788=process['pid'];uiTestPageCache[_0x23d788]=_0x184a56;}__name(setUiTestPage,'setUiTestPage');function getUiTestPage(){const _0x25b4db=process['pid'];if(!uiTestPageCache[_0x25b4db])throw createError(uiTesterErrorMessages['uiTestIsNotSet']);return uiTestPageCache[_0x25b4db];}__name(getUiTestPage,'getUiTestPage');function getUiTester(){const _0x2ec00f=getUiTestPage();return new UiTester(_0x2ec00f);}__name(getUiTester,'getUiTester');function removeUiTestPage(){const _0x20a2b2=process['pid'];delete uiTestPageCache[_0x20a2b2];}__name(removeUiTestPage,'removeUiTestPage');

export { getUiTestPage, getUiTester, removeUiTestPage, setUiTestPage };
