@unotest/web 0.15.0 → 0.16.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.
@@ -16,13 +16,28 @@ run is unverified — selectors may be invented, transitions may race,
16
16
  the scenario may not actually pass. Producing a test you can't show
17
17
  green is the failure case.
18
18
 
19
- Two modes, picked at Phase 1:
19
+ Three modes, picked at Phase 1:
20
20
 
21
21
  - **Interactive (preferred)** — phases 1–5 below. The MCP server is up
22
22
  (`new_context`, `get_page_snapshot`, `explore_start`, `explore_step`,
23
23
  `run_test`, …). You drive the browser live, record the flow, generate
24
24
  the DSL, save it, run it, iterate until green.
25
25
 
26
+ - **Compose-from-helpers** — the project already has a helper layer
27
+ (`unotest/e2e/_helpers/`) whose `flow_*` functions cover every step of
28
+ the scenario, so no new locator is needed. Skip the browser: assemble
29
+ the scenario from those helpers, then **verify with a CLI run**
30
+ (`npx @unotest/web e2e <feature>/<name>`) and iterate until green.
31
+ Conditions, all of them:
32
+ - every interaction maps to an existing helper — the moment you need a
33
+ NEW locator, switch to Interactive; guessing a selector from source
34
+ is what the live app is for;
35
+ - the CLI run is not optional. This mode trades browser recording for
36
+ a real run, not for no verification at all.
37
+
38
+ For a project with a mature helper layer this is the ordinary mode,
39
+ not an exception — most days add scenarios, not selectors.
40
+
26
41
  - **Draft-only (fallback)** — if no MCP / no working `explore_start`,
27
42
  write the file from the description the user gave you, mark it as
28
43
  unverified in your final reply ("⚠ unverified — no live browser —
@@ -16,13 +16,28 @@ run is unverified — selectors may be invented, transitions may race,
16
16
  the scenario may not actually pass. Producing a test you can't show
17
17
  green is the failure case.
18
18
 
19
- Two modes, picked at Phase 1:
19
+ Three modes, picked at Phase 1:
20
20
 
21
21
  - **Interactive (preferred)** — phases 1–5 below. The MCP server is up
22
22
  (`new_context`, `ground_element`, `explore_start`, `explore_step`,
23
23
  `run_test`, …). You drive the browser live, record the flow, generate
24
24
  the DSL, save it, run it, iterate until green.
25
25
 
26
+ - **Compose-from-helpers** — the project already has a helper layer
27
+ (`unotest/e2e/_helpers/`) whose `flow_*` functions cover every step of
28
+ the scenario, so no new locator is needed. Skip the browser: assemble
29
+ the scenario from those helpers, then **verify with a CLI run**
30
+ (`npx @unotest/web e2e <feature>/<name>`) and iterate until green.
31
+ Conditions, all of them:
32
+ - every interaction maps to an existing helper — the moment you need a
33
+ NEW locator, switch to Interactive; guessing a selector from source
34
+ is what the live app is for;
35
+ - the CLI run is not optional. This mode trades browser recording for
36
+ a real run, not for no verification at all.
37
+
38
+ For a project with a mature helper layer this is the ordinary mode,
39
+ not an exception — most days add scenarios, not selectors.
40
+
26
41
  - **Draft-only (fallback)** — if no MCP / no working `explore_start`,
27
42
  write the file from the description the user gave you, mark it as
28
43
  unverified in your final reply ("⚠ unverified — no live browser —
package/CHANGELOG.md CHANGED
@@ -1,5 +1,92 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.16.0] - 2026-08-19
4
+
5
+ ### Minor Changes
6
+
7
+ - bf92e6f: File oracles as first-class citizens, plus an interaction-state wait
8
+ (bot-service feedback, round 4).
9
+
10
+ A background process that speaks by appending JSONL was only half
11
+ supported: `waitForFile` matches a substring against the WHOLE file, so a
12
+ multi-key event filter was inexpressible — JSON key order is not
13
+ guaranteed, and `"userId":"x","isBot":true` breaks the first time the
14
+ writer reorders its fields. Every positive wait therefore went through a
15
+ hand-written node script. Four functions close that:
16
+
17
+ - `waitForJsonLine(path, filter, {timeoutMs})` → the matching line,
18
+ parsed. Strict equality per key, dot paths (`'user.id'`) for nesting,
19
+ unparsable lines skipped (a file caught mid-append is normal). The
20
+ timeout says how many lines were read, how many parsed, and which one
21
+ matched the most keys.
22
+ - `assertNoJsonLine(path, filter, {withinMs})` — the negative twin.
23
+ - `waitForFileCount(path, pattern, count, {timeoutMs})` → the count.
24
+ Waits for **at least** `count` matching lines: between two polls a
25
+ writer can append more than one, and a strict wait would then never
26
+ see its target. `pattern` is a substring, a regex, or the same key
27
+ filter.
28
+ - `assertFileCount(path, pattern, count)` — snapshot, strict equality,
29
+ for "exactly N happened" after the window has been awaited.
30
+
31
+ Counting is per LINE (`grep -c` semantics), not per occurrence.
32
+
33
+ `waitFor(loc, {state})` also accepts `'enabled'` / `'disabled'` now,
34
+ alongside the DOM-presence states. It polls the same probe `isEnabled` /
35
+ `isDisabled` use, so `aria-disabled` widgets and `<fieldset disabled>`
36
+ inheritance count — Playwright's own wait knows neither. This replaces
37
+ the `for` loop around `pause()` that a widget which unlocks on a timeout
38
+ otherwise forces.
39
+
40
+ Two smaller things that came with them:
41
+
42
+ - Options objects on the file oracles reject unknown keys. A misspelled
43
+ `{timeout: 5000}` used to be ignored and the step silently waited the
44
+ default instead.
45
+ - `UNOTEST_DEBUG=1` gained a `step` layer: every executed statement is
46
+ bracketed with `enter`/`exit` (file, line, step label, ms, ok) and
47
+ every nested `driver` / `resolver` event carries the step it ran
48
+ under. A CLI failure can now be diagnosed by reading the log as
49
+ step → driver call → answer, instead of matching timestamps by eye.
50
+
51
+ - 225e762: `unotest-web viewer` learns `UNOTEST_VIEWER_HOST` / `UNOTEST_VIEWER_PORT`.
52
+
53
+ By default the viewer still binds `localhost` plus a free port the OS
54
+ picks. Set the variables for headless / containerized setups where a
55
+ reverse proxy reaches the viewer at a fixed address (e.g. `viewer:4000`
56
+ inside a compose stack). An invalid port fails fast with an actionable
57
+ message instead of silently falling back. `UNOTEST_VIEWER_NO_OPEN=1`
58
+ still skips opening the browser.
59
+
60
+ ### Patch Changes
61
+
62
+ - 4fc5e5a: `UnotestError` — the typed-error base class — now lives in
63
+ `@unotest/core` and is part of its public API. `@unotest/web` re-exports
64
+ it unchanged, so existing imports and `instanceof` chains keep working.
65
+ Motivation: other packages need the same base without copying it, and a
66
+ published package is the only home they may all import.
67
+ - bf92e6f: `Unknown function: indexOf` now says what to write instead.
68
+
69
+ The DSL has no string or array methods, so a JS habit (`out.stdout.indexOf(x)`,
70
+ `s.toLowerCase()`, `JSON.parse(line)`) failed with the same bare message as a
71
+ typo in a helper name — indistinguishable, and the reason bot-service asked for
72
+ a linter hint back in 0.10.0.
73
+
74
+ The engine stays vocab-agnostic: `FunctionContractRegistry` gained an optional
75
+ `suggestForUnknown(name)` hook, and the web vocab supplies the table
76
+ (`indexOf` → `textContains`, `concat` → `textJoin`, `JSON.parse` →
77
+ `waitForJsonLine`, `Date.now` → `nowMs`, and so on). A registry without the
78
+ hook — or a name that is genuinely just misspelled — keeps the old message
79
+ unchanged.
80
+
81
+ - Updated dependencies [4fc5e5a]
82
+ - Updated dependencies [bf92e6f]
83
+ - Updated dependencies [1327a52]
84
+ - @unotest/core@0.16.0
85
+ - @unotest/dsl@0.16.0
86
+ - @unotest/viewer@0.16.0
87
+ - @unotest/grounder-client@0.16.0
88
+ - @unotest/protocol@0.16.0
89
+
3
90
  ## [0.15.0] - 2026-08-17
4
91
 
5
92
  ### Minor Changes
@@ -172,15 +172,15 @@ declare const WebServerConfigSchema: z.ZodObject<{
172
172
  /** How long to wait for the URL to come up after spawning. */
173
173
  timeoutMs: z.ZodDefault<z.ZodNumber>;
174
174
  }, "strip", z.ZodTypeAny, {
175
- url: string;
176
- timeoutMs: number;
177
175
  command: string;
176
+ url: string;
178
177
  reuseExistingServer: boolean;
178
+ timeoutMs: number;
179
179
  }, {
180
- url: string;
181
180
  command: string;
182
- timeoutMs?: number | undefined;
181
+ url: string;
183
182
  reuseExistingServer?: boolean | undefined;
183
+ timeoutMs?: number | undefined;
184
184
  }>;
185
185
  type WebServerConfig = z.infer<typeof WebServerConfigSchema>;
186
186
  declare const UnotestConfigSchema: z.ZodObject<{
@@ -206,15 +206,15 @@ declare const UnotestConfigSchema: z.ZodObject<{
206
206
  /** How long to wait for the URL to come up after spawning. */
207
207
  timeoutMs: z.ZodDefault<z.ZodNumber>;
208
208
  }, "strip", z.ZodTypeAny, {
209
- url: string;
210
- timeoutMs: number;
211
209
  command: string;
210
+ url: string;
212
211
  reuseExistingServer: boolean;
212
+ timeoutMs: number;
213
213
  }, {
214
- url: string;
215
214
  command: string;
216
- timeoutMs?: number | undefined;
215
+ url: string;
217
216
  reuseExistingServer?: boolean | undefined;
217
+ timeoutMs?: number | undefined;
218
218
  }>>;
219
219
  browsers: z.ZodArray<z.ZodEnum<["chromium", "firefox", "webkit"]>, "many">;
220
220
  channel: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"chrome">, z.ZodLiteral<"msedge">, z.ZodLiteral<"chrome-beta">, z.ZodNull]>>;
@@ -413,10 +413,10 @@ declare const UnotestConfigSchema: z.ZodObject<{
413
413
  };
414
414
  baseUrl?: string | undefined;
415
415
  webServer?: {
416
- url: string;
417
- timeoutMs: number;
418
416
  command: string;
417
+ url: string;
419
418
  reuseExistingServer: boolean;
419
+ timeoutMs: number;
420
420
  } | undefined;
421
421
  channel?: "chrome" | "msedge" | "chrome-beta" | null | undefined;
422
422
  storageState?: string | undefined;
@@ -465,10 +465,10 @@ declare const UnotestConfigSchema: z.ZodObject<{
465
465
  };
466
466
  baseUrl?: string | undefined;
467
467
  webServer?: {
468
- url: string;
469
468
  command: string;
470
- timeoutMs?: number | undefined;
469
+ url: string;
471
470
  reuseExistingServer?: boolean | undefined;
471
+ timeoutMs?: number | undefined;
472
472
  } | undefined;
473
473
  channel?: "chrome" | "msedge" | "chrome-beta" | null | undefined;
474
474
  storageState?: string | undefined;
@@ -1 +1 @@
1
- var _0x4f1d98=_0x38da;(function(_0x11174c,_0x48bea9){var _0x277118={_0x4ac2ec:0xbd,_0x415391:0x95,_0x1a2a05:0x9c},_0x12c481=_0x38da,_0x4caa0b=_0x11174c();while(!![]){try{var _0xd93c5a=parseInt(_0x12c481(0x94))/0x1*(-parseInt(_0x12c481(0x9e))/0x2)+parseInt(_0x12c481(0xb1))/0x3+parseInt(_0x12c481(0x8f))/0x4*(parseInt(_0x12c481(0x91))/0x5)+-parseInt(_0x12c481(_0x277118._0x4ac2ec))/0x6+-parseInt(_0x12c481(0xc3))/0x7+parseInt(_0x12c481(0xad))/0x8*(-parseInt(_0x12c481(_0x277118._0x415391))/0x9)+parseInt(_0x12c481(_0x277118._0x1a2a05))/0xa;if(_0xd93c5a===_0x48bea9)break;else _0x4caa0b['push'](_0x4caa0b['shift']());}catch(_0x408cb9){_0x4caa0b['push'](_0x4caa0b['shift']());}}}(_0x4f04,0x3663b));function _0x38da(_0x1c9704,_0x2c5162){_0x1c9704=_0x1c9704-0x8b;var _0x4f045a=_0x4f04();var _0x38da2b=_0x4f045a[_0x1c9704];if(_0x38da['rGYYEY']===undefined){var _0x40ecea=function(_0x456966){var _0x509fa2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0xd04b7e='',_0xca1b56='';for(var _0x5814a4=0x0,_0x3970de,_0x19848d,_0x968275=0x0;_0x19848d=_0x456966['charAt'](_0x968275++);~_0x19848d&&(_0x3970de=_0x5814a4%0x4?_0x3970de*0x40+_0x19848d:_0x19848d,_0x5814a4++%0x4)?_0xd04b7e+=String['fromCharCode'](0xff&_0x3970de>>(-0x2*_0x5814a4&0x6)):0x0){_0x19848d=_0x509fa2['indexOf'](_0x19848d);}for(var _0xd3d3f0=0x0,_0x330ab9=_0xd04b7e['length'];_0xd3d3f0<_0x330ab9;_0xd3d3f0++){_0xca1b56+='%'+('00'+_0xd04b7e['charCodeAt'](_0xd3d3f0)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xca1b56);};_0x38da['RNVuVW']=_0x40ecea,_0x38da['JFWaGw']={},_0x38da['rGYYEY']=!![];}var _0x3e57a6=_0x4f045a[0x0],_0x12eeee=_0x1c9704+_0x3e57a6,_0x15a81e=_0x38da['JFWaGw'][_0x12eeee];return!_0x15a81e?(_0x38da2b=_0x38da['RNVuVW'](_0x38da2b),_0x38da['JFWaGw'][_0x12eeee]=_0x38da2b):_0x38da2b=_0x15a81e,_0x38da2b;}function _0x4f04(){var _0x3e1c65=['yxjYyxK','DMfSAwrHDg9YoNn0zxaTy292zxjHz2u','mJuWnde4n1jiC3juDW','BNvSBa','zxjYB3i','BgLUDdPWyxvZzs1LEhbSAwnPDa','BwfUDwfS','mteZotjWzNbMBfC','DMfSAwrHDg9YoMfYAxr5','mtyWyvHnvvfh','ywnJzxb0','CMvJB3jK','nJu1mJfRtgHyqKm','mJG5nZm0m1fbEePQwG','y3jHC2G','C3rYAw5N','Bwf4','BgLUDdPTDxn0ywnOzs1PBI1KC2W','BgLUDdPLDMfSDwf0zs1KAxnJB3vYywDLza','BgLUDdPZy2vUyxjPBY1PBI1YB290','oty4nJm3mfn1rvDNEG','DMfSAwrHDg9YoMfYzY1RAw5K','mtbfu2Tmrg0','B2jQzwn0','B3b0Aw9UywW','zgLZBwLZCW','BgLUDdPKAxnHBwjPzY1IEs1PBMrLEa','B2zM','y2HYB21PDw0','Aw50','BgLUDdPNB3rVlwnVBMnHDa','BgL0zxjHBa','zgvMyxvSDa','DxjS','BgLUDdP4Cgf0Aa','Dw5VDgvZDc9LmMuVx2HLBhbLCNm','DMfSAwrHDg9YoNzHCI1ZAgfWzq','oeLpyKLkEG','BwLU','BgLUDdPKzwvWlwnZCW','Cg9ZAxrPDMu','mteZmJm5mLr5ueDzsa','BMv0D29YAW','zw51Bq','y2HYB21LlwjLDge','BNvTyMvY','DhjHBNnPzw50','D2fYBG','yM9VBgvHBG','D2vIA2L0','C3rKAw8','DMfSAwrHDg9YoMLMlxnOyxbL','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlwv4ChjLC3nPB24','mti0mZeXme5Qs255CW','BgLUDdPVyMz1C2nHDgvKlwnSyxnZ','DMfSAwrHDg9YoM1LDgeTC2HHCgu','DMfSAwrHDg9YoNvUA25VD24TzNvUy3rPB24'];_0x4f04=function(){return _0x3e1c65;};return _0x4f04();}import{z}from'zod';var BrowserSchema=z[_0x4f1d98(0xb3)]([_0x4f1d98(0xa4),'firefox',_0x4f1d98(0xb9)]),BrowserChannelSchema=z['union']([z[_0x4f1d98(0xa7)]('chrome'),z[_0x4f1d98(0xa7)]('msedge'),z[_0x4f1d98(0xa7)](_0x4f1d98(0xb4)),z[_0x4f1d98(0x8b)]()])[_0x4f1d98(0xa0)](),ViewportSchema=z[_0x4f1d98(0x9f)]({'width':z[_0x4f1d98(0xb5)]()[_0x4f1d98(0xa5)]()[_0x4f1d98(0xb0)](),'height':z[_0x4f1d98(0xb5)]()[_0x4f1d98(0xa5)]()['positive']()}),RetryReasonSchema=z[_0x4f1d98(0xb3)]([_0x4f1d98(0xb6),_0x4f1d98(0xb2),_0x4f1d98(0x96)]),RetryConfigSchema=z[_0x4f1d98(0x9f)]({'count':z[_0x4f1d98(0xb5)]()[_0x4f1d98(0xa5)]()[_0x4f1d98(0xae)](0x0)[_0x4f1d98(0x98)](0xa),'on':z[_0x4f1d98(0xc1)](RetryReasonSchema)}),FailureBundleConfigSchema=z[_0x4f1d98(0x9f)]({'tier1':z[_0x4f1d98(0xa7)](!![])[_0x4f1d98(0xa8)](!![]),'tier2':z[_0x4f1d98(0xb8)](),'tier3':z[_0x4f1d98(0x9f)]({'network':z[_0x4f1d98(0xb8)](),'video':z[_0x4f1d98(0xb8)]()}),'retention':z[_0x4f1d98(0x9f)]({'runs':z[_0x4f1d98(0xb5)]()[_0x4f1d98(0xa5)]()[_0x4f1d98(0xb0)](),'days':z[_0x4f1d98(0xb5)]()[_0x4f1d98(0xa5)]()['positive']()}),'storageDir':z['string']()[_0x4f1d98(0xae)](0x1)}),DialogPolicySchema=z[_0x4f1d98(0xb3)]([_0x4f1d98(0x92),_0x4f1d98(0xa1),_0x4f1d98(0x8e)]),LinterRuleIdSchema=z[_0x4f1d98(0xb3)]([_0x4f1d98(0xaf),_0x4f1d98(0xaa),_0x4f1d98(0xbe),_0x4f1d98(0x8d),_0x4f1d98(0xa2),_0x4f1d98(0x9a),_0x4f1d98(0x9b),_0x4f1d98(0x99),_0x4f1d98(0xa6),'lint:regex-invalid','lint:echo-assert','lint:lint-ok-missing-reason',_0x4f1d98(0xc0),_0x4f1d98(0x90),_0x4f1d98(0x9d),_0x4f1d98(0xc2),'validator:step-shape',_0x4f1d98(0xbf),'validator:function-shape','validator:for-shape',_0x4f1d98(0xbb),_0x4f1d98(0xac),'validator:unsupported-statement',_0x4f1d98(0xbc),'validator:string-concat','validator:semantic-loss','validator:list-arg','validator:wrapped-format']),LinterSeveritySchema=z[_0x4f1d98(0xb3)]([_0x4f1d98(0xa3),_0x4f1d98(0xb7),_0x4f1d98(0x8c)]),LinterConfigSchema=z['object']({'enabled':z[_0x4f1d98(0xb8)](),'rules':z[_0x4f1d98(0x93)](LinterRuleIdSchema,LinterSeveritySchema)}),McpConfigSchema=z[_0x4f1d98(0x9f)]({'transport':z[_0x4f1d98(0xa7)](_0x4f1d98(0xba))}),SandboxConfigSchema=z[_0x4f1d98(0x9f)]({'shellCwd':z[_0x4f1d98(0x97)]()[_0x4f1d98(0xa0)](),'shellTimeoutMs':z['number']()[_0x4f1d98(0xa5)]()[_0x4f1d98(0xb0)]()[_0x4f1d98(0xa0)](),'exportSecrets':z[_0x4f1d98(0xc1)](z['string']())[_0x4f1d98(0xa0)](),'database':z[_0x4f1d98(0x97)]()[_0x4f1d98(0xa0)](),'apiBaseUrl':z[_0x4f1d98(0x97)]()[_0x4f1d98(0xa9)]()['optional'](),'uploadDir':z[_0x4f1d98(0x97)]()['optional']()}),WebServerConfigSchema=z[_0x4f1d98(0x9f)]({'command':z['string']()[_0x4f1d98(0xae)](0x1),'url':z[_0x4f1d98(0x97)]()['url'](),'reuseExistingServer':z['boolean']()['default'](!![]),'timeoutMs':z[_0x4f1d98(0xb5)]()[_0x4f1d98(0xa5)]()['positive']()[_0x4f1d98(0xa8)](0xea60)}),UnotestConfigSchema=z[_0x4f1d98(0x9f)]({'baseUrl':z[_0x4f1d98(0x97)]()[_0x4f1d98(0xa9)]()['optional'](),'webServer':WebServerConfigSchema[_0x4f1d98(0xa0)](),'browsers':z['array'](BrowserSchema)['min'](0x1),'channel':BrowserChannelSchema,'viewport':ViewportSchema,'retry':RetryConfigSchema,'failureBundle':FailureBundleConfigSchema,'dialogPolicy':DialogPolicySchema,'storageState':z[_0x4f1d98(0x97)]()['optional'](),'testDir':z[_0x4f1d98(0x97)]()[_0x4f1d98(0xae)](0x1),'helpersDir':z[_0x4f1d98(0x97)]()[_0x4f1d98(0xae)](0x1),'defaultTimeoutMs':z[_0x4f1d98(0xb5)]()[_0x4f1d98(0xa5)]()[_0x4f1d98(0xb0)](),'defaultNavigationTimeoutMs':z[_0x4f1d98(0xb5)]()['int']()[_0x4f1d98(0xb0)](),'linter':LinterConfigSchema,'mcp':McpConfigSchema,'sandbox':SandboxConfigSchema}),DEFAULT_CONFIG={'browsers':[_0x4f1d98(0xa4)],'viewport':{'width':0x500,'height':0x2d0},'retry':{'count':0x0,'on':[_0x4f1d98(0xb6)]},'failureBundle':{'tier1':!![],'tier2':!![],'tier3':{'network':![],'video':![]},'retention':{'runs':0x14,'days':0x7},'storageDir':'.unotest/failures'},'dialogPolicy':_0x4f1d98(0x92),'testDir':'unotest/e2e','helpersDir':_0x4f1d98(0xab),'defaultTimeoutMs':0xbb8,'defaultNavigationTimeoutMs':0x7530,'linter':{'enabled':!![],'rules':{'lint:deep-css':_0x4f1d98(0xb7),'lint:xpath':'warn','lint:obfuscated-class':_0x4f1d98(0xb7),'lint:pause-explicit':_0x4f1d98(0xb7),'lint:disambig-by-index':_0x4f1d98(0xa3),'lint:evaluate-discouraged':_0x4f1d98(0xb7),'lint:scenario-in-root':_0x4f1d98(0x8c),'lint:mustache-in-dsl':'error','lint:goto-concat':_0x4f1d98(0xb7),'lint:regex-invalid':_0x4f1d98(0x8c),'lint:echo-assert':_0x4f1d98(0xb7),'lint:lint-ok-missing-reason':_0x4f1d98(0xb7),'validator:unknown-function':_0x4f1d98(0x8c)}},'mcp':{'transport':_0x4f1d98(0xba)},'sandbox':{}};export{BrowserChannelSchema,BrowserSchema,DEFAULT_CONFIG,DialogPolicySchema,FailureBundleConfigSchema,LinterConfigSchema,LinterRuleIdSchema,LinterSeveritySchema,McpConfigSchema,RetryConfigSchema,RetryReasonSchema,SandboxConfigSchema,UnotestConfigSchema,ViewportSchema,WebServerConfigSchema};
1
+ function _0x25ca(_0x5353b9,_0x1f6c9d){_0x5353b9=_0x5353b9-0x147;var _0xbe4e5=_0xbe4e();var _0x25caf0=_0xbe4e5[_0x5353b9];if(_0x25ca['rElNEg']===undefined){var _0x5d4799=function(_0x55c045){var _0x2af509='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x5190c2='',_0x54752f='';for(var _0x50d5b0=0x0,_0x29cde1,_0x252481,_0x256172=0x0;_0x252481=_0x55c045['charAt'](_0x256172++);~_0x252481&&(_0x29cde1=_0x50d5b0%0x4?_0x29cde1*0x40+_0x252481:_0x252481,_0x50d5b0++%0x4)?_0x5190c2+=String['fromCharCode'](0xff&_0x29cde1>>(-0x2*_0x50d5b0&0x6)):0x0){_0x252481=_0x2af509['indexOf'](_0x252481);}for(var _0xd3ba27=0x0,_0x42b737=_0x5190c2['length'];_0xd3ba27<_0x42b737;_0xd3ba27++){_0x54752f+='%'+('00'+_0x5190c2['charCodeAt'](_0xd3ba27)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x54752f);};_0x25ca['eaulJZ']=_0x5d4799,_0x25ca['WCVYvx']={},_0x25ca['rElNEg']=!![];}var _0x135381=_0xbe4e5[0x0],_0x4a48df=_0x5353b9+_0x135381,_0x4b282e=_0x25ca['WCVYvx'][_0x4a48df];return!_0x4b282e?(_0x25caf0=_0x25ca['eaulJZ'](_0x25caf0),_0x25ca['WCVYvx'][_0x4a48df]=_0x25caf0):_0x25caf0=_0x4b282e,_0x25caf0;}var _0xe0488=_0x25ca;function _0xbe4e(){var _0x4633d7=['y2HYB21LlwjLDge','zxjYB3i','yM9VBgvHBG','zMLYzwzVEa','B2zM','Dw5PB24','DMfSAwrHDg9YoMzVCI1ZAgfWzq','DMfSAwrHDg9YoNDYyxbWzwqTzM9YBwf0','DMfSAwrHDg9YoMXPC3qTyxjN','DMfSAwrHDg9YoNzHCI1ZAgfWzq','DMfSAwrHDg9YoNn0zxaTC2HHCgu','nde0Ee9jtxvQ','D2fYBG','y2HYB21PDw0','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlwv4ChjLC3nPB24','mtm0mtq1nuzWtfzqAW','BgLUDdPTDxn0ywnOzs1PBI1KC2W','mtKYmZCZmfHoyxnODW','zgvMyxvSDa','BwLU','DMfSAwrHDg9YoMz1BMn0Aw9UlxnOyxbL','yxjYyxK','BgLUDdPKAxnHBwjPzY1IEs1PBMrLEa','DhjHBNnPzw50','mJqXodu1mg5orLHnEq','mJe4nJe2BNjpruLH','DMfSAwrHDg9YoNn0CMLUzY1JB25Jyxq','DMfSAwrHDg9YoMfYAxr5','BgLUDdPLDMfSDwf0zs1KAxnJB3vYywDLza','ywnJzxb0','Cg9ZAxrPDMu','BNvTyMvY','mZiYmde0s01Xt2zs','zw51Bq','y3jHC2G','mtCWuw51r3r6','Aw50','BgLUDdPWyxvZzs1LEhbSAwnPDa','BgLUDdPVyMz1C2nHDgvKlwnSyxnZ','BxnLzgDL','BgLUDdPSAw50lw9Rlw1PC3nPBMCTCMvHC29U','C3rYAw5N','BwfUDwfS','BgLUDdPYzwDLEc1PBNzHBgLK','y2HYB21L','zgLZBwLZCW','DMfSAwrHDg9YoNvUA25VD24TzNvUy3rPB24','BgLUDdPZy2vUyxjPBY1PBI1YB290','C3rKAw8','BgLUDdPNB3rVlwnVBMnHDa','DMfSAwrHDg9YoNnLBwfUDgLJlwXVC3m','DxjS','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlxn0yxrLBwvUDa','BgLUDdPLy2HVlwfZC2vYDa','B3b0Aw9UywW','mtiXmZfQA2j5C0K','Dw5VDgvZDc9LmMu','B2jQzwn0','Dw5VDgvZDc9LmMuVx2HLBhbLCNm','mZu2odCZt1zRD2XK','DMfSAwrHDg9YoMfYzY1RAw5K','ohLbAfLABG','BgL0zxjHBa','DMfSAwrHDg9YoNn0zxaTy292zxjHz2u','mtmWmLrzqwXLCW'];_0xbe4e=function(){return _0x4633d7;};return _0xbe4e();}(function(_0x25e889,_0x1ec6d5){var _0x334f81={_0x38317e:0x156,_0x50e8af:0x15f,_0x4e0a12:0x160,_0x417123:0x152,_0x47ef3f:0x16a},_0x40edff=_0x25ca,_0x55629c=_0x25e889();while(!![]){try{var _0x379ee0=parseInt(_0x40edff(_0x334f81._0x38317e))/0x1+parseInt(_0x40edff(_0x334f81._0x50e8af))/0x2+parseInt(_0x40edff(0x167))/0x3*(-parseInt(_0x40edff(0x184))/0x4)+-parseInt(_0x40edff(0x158))/0x5+-parseInt(_0x40edff(0x187))/0x6*(parseInt(_0x40edff(0x17e))/0x7)+-parseInt(_0x40edff(_0x334f81._0x4e0a12))/0x8*(parseInt(_0x40edff(_0x334f81._0x417123))/0x9)+-parseInt(_0x40edff(_0x334f81._0x47ef3f))/0xa*(-parseInt(_0x40edff(0x182))/0xb);if(_0x379ee0===_0x1ec6d5)break;else _0x55629c['push'](_0x55629c['shift']());}catch(_0x58362c){_0x55629c['push'](_0x55629c['shift']());}}}(_0xbe4e,0xd4568));import{z}from'zod';var BrowserSchema=z[_0xe0488(0x168)]([_0xe0488(0x154),_0xe0488(0x14a),'webkit']),BrowserChannelSchema=z[_0xe0488(0x14c)]([z[_0xe0488(0x185)](_0xe0488(0x173)),z['literal'](_0xe0488(0x16e)),z[_0xe0488(0x185)](_0xe0488(0x147)),z['null']()])[_0xe0488(0x17d)](),ViewportSchema=z['object']({'width':z['number']()[_0xe0488(0x16b)]()[_0xe0488(0x165)](),'height':z[_0xe0488(0x166)]()[_0xe0488(0x16b)]()[_0xe0488(0x165)]()}),RetryReasonSchema=z[_0xe0488(0x168)]([_0xe0488(0x15e),'network',_0xe0488(0x169)]),RetryConfigSchema=z['object']({'count':z[_0xe0488(0x166)]()['int']()[_0xe0488(0x15a)](0x0)['max'](0xa),'on':z[_0xe0488(0x15c)](RetryReasonSchema)}),FailureBundleConfigSchema=z[_0xe0488(0x180)]({'tier1':z[_0xe0488(0x185)](!![])[_0xe0488(0x159)](!![]),'tier2':z[_0xe0488(0x149)](),'tier3':z[_0xe0488(0x180)]({'network':z[_0xe0488(0x149)](),'video':z[_0xe0488(0x149)]()}),'retention':z[_0xe0488(0x180)]({'runs':z[_0xe0488(0x166)]()[_0xe0488(0x16b)]()[_0xe0488(0x165)](),'days':z[_0xe0488(0x166)]()[_0xe0488(0x16b)]()['positive']()}),'storageDir':z['string']()['min'](0x1)}),DialogPolicySchema=z[_0xe0488(0x168)]([_0xe0488(0x164),_0xe0488(0x174),_0xe0488(0x171)]),LinterRuleIdSchema=z[_0xe0488(0x168)](['lint:deep-css','lint:xpath',_0xe0488(0x16d),_0xe0488(0x16c),_0xe0488(0x15d),_0xe0488(0x163),_0xe0488(0x176),_0xe0488(0x157),_0xe0488(0x178),_0xe0488(0x172),_0xe0488(0x17c),_0xe0488(0x16f),_0xe0488(0x175),_0xe0488(0x162),_0xe0488(0x183),_0xe0488(0x186),_0xe0488(0x151),'validator:meta-shape',_0xe0488(0x15b),_0xe0488(0x14d),'validator:if-shape',_0xe0488(0x150),_0xe0488(0x17b),_0xe0488(0x155),_0xe0488(0x161),_0xe0488(0x179),_0xe0488(0x14f),_0xe0488(0x14e)]),LinterSeveritySchema=z[_0xe0488(0x168)]([_0xe0488(0x14b),_0xe0488(0x153),'error']),LinterConfigSchema=z[_0xe0488(0x180)]({'enabled':z[_0xe0488(0x149)](),'rules':z['record'](LinterRuleIdSchema,LinterSeveritySchema)}),McpConfigSchema=z[_0xe0488(0x180)]({'transport':z[_0xe0488(0x185)](_0xe0488(0x177))}),SandboxConfigSchema=z[_0xe0488(0x180)]({'shellCwd':z[_0xe0488(0x170)]()[_0xe0488(0x17d)](),'shellTimeoutMs':z['number']()[_0xe0488(0x16b)]()[_0xe0488(0x165)]()['optional'](),'exportSecrets':z['array'](z[_0xe0488(0x170)]())[_0xe0488(0x17d)](),'database':z['string']()['optional'](),'apiBaseUrl':z['string']()[_0xe0488(0x17a)]()['optional'](),'uploadDir':z[_0xe0488(0x170)]()[_0xe0488(0x17d)]()}),WebServerConfigSchema=z[_0xe0488(0x180)]({'command':z['string']()[_0xe0488(0x15a)](0x1),'url':z[_0xe0488(0x170)]()['url'](),'reuseExistingServer':z['boolean']()['default'](!![]),'timeoutMs':z[_0xe0488(0x166)]()[_0xe0488(0x16b)]()[_0xe0488(0x165)]()['default'](0xea60)}),UnotestConfigSchema=z[_0xe0488(0x180)]({'baseUrl':z[_0xe0488(0x170)]()[_0xe0488(0x17a)]()[_0xe0488(0x17d)](),'webServer':WebServerConfigSchema[_0xe0488(0x17d)](),'browsers':z[_0xe0488(0x15c)](BrowserSchema)[_0xe0488(0x15a)](0x1),'channel':BrowserChannelSchema,'viewport':ViewportSchema,'retry':RetryConfigSchema,'failureBundle':FailureBundleConfigSchema,'dialogPolicy':DialogPolicySchema,'storageState':z['string']()[_0xe0488(0x17d)](),'testDir':z['string']()[_0xe0488(0x15a)](0x1),'helpersDir':z['string']()[_0xe0488(0x15a)](0x1),'defaultTimeoutMs':z[_0xe0488(0x166)]()[_0xe0488(0x16b)]()[_0xe0488(0x165)](),'defaultNavigationTimeoutMs':z[_0xe0488(0x166)]()[_0xe0488(0x16b)]()[_0xe0488(0x165)](),'linter':LinterConfigSchema,'mcp':McpConfigSchema,'sandbox':SandboxConfigSchema}),DEFAULT_CONFIG={'browsers':[_0xe0488(0x154)],'viewport':{'width':0x500,'height':0x2d0},'retry':{'count':0x0,'on':[_0xe0488(0x15e)]},'failureBundle':{'tier1':!![],'tier2':!![],'tier3':{'network':![],'video':![]},'retention':{'runs':0x14,'days':0x7},'storageDir':'.unotest/failures'},'dialogPolicy':_0xe0488(0x164),'testDir':_0xe0488(0x17f),'helpersDir':_0xe0488(0x181),'defaultTimeoutMs':0xbb8,'defaultNavigationTimeoutMs':0x7530,'linter':{'enabled':!![],'rules':{'lint:deep-css':_0xe0488(0x153),'lint:xpath':_0xe0488(0x153),'lint:obfuscated-class':_0xe0488(0x153),'lint:pause-explicit':_0xe0488(0x153),'lint:disambig-by-index':_0xe0488(0x14b),'lint:evaluate-discouraged':'warn','lint:scenario-in-root':'error','lint:mustache-in-dsl':_0xe0488(0x148),'lint:goto-concat':'warn','lint:regex-invalid':_0xe0488(0x148),'lint:echo-assert':_0xe0488(0x153),'lint:lint-ok-missing-reason':_0xe0488(0x153),'validator:unknown-function':'error'}},'mcp':{'transport':_0xe0488(0x177)},'sandbox':{}};export{BrowserChannelSchema,BrowserSchema,DEFAULT_CONFIG,DialogPolicySchema,FailureBundleConfigSchema,LinterConfigSchema,LinterRuleIdSchema,LinterSeveritySchema,McpConfigSchema,RetryConfigSchema,RetryReasonSchema,SandboxConfigSchema,UnotestConfigSchema,ViewportSchema,WebServerConfigSchema};
@@ -1,5 +1,5 @@
1
- import { E as ElementHint, N as NetworkEntry, W as WebDriver, L as LaunchOptions, C as ContextOptions, D as DriverContext } from '../interfaces-BaVF0jV-.js';
2
- export { A as ActionTimeout, a as CheckOptions, b as ClickOptions, c as CookieOptions, d as DriverPage, F as FillOptions, G as GotoOptions, H as HoverOptions, e as NavigationOptions, P as PressOptions, R as ReloadOptions, S as ScreenshotOptions, f as SelectOptions, V as Viewport, g as WaitOptions, h as WaitState } from '../interfaces-BaVF0jV-.js';
1
+ import { E as ElementHint, N as NetworkEntry, W as WebDriver, L as LaunchOptions, C as ContextOptions, D as DriverContext } from '../interfaces-elRn0llQ.js';
2
+ export { A as ActionTimeout, a as CheckOptions, b as ClickOptions, c as CookieOptions, d as DriverPage, F as FillOptions, G as GotoOptions, H as HoverOptions, e as NavigationOptions, P as PressOptions, R as ReloadOptions, S as ScreenshotOptions, f as SelectOptions, V as Viewport, g as WaitOptions, h as WaitState } from '../interfaces-elRn0llQ.js';
3
3
  import '@unotest/protocol';
4
4
  import '../config/schema.js';
5
5
  import 'zod';
@@ -1 +1 @@
1
- const _0x12dc02=_0x2d9c;(function(_0x143a7c,_0x1d55c5){const _0x4df7d1={_0x444771:0xee,_0x135acc:0xdc,_0x35814c:0xf7,_0x133bbb:0xca,_0xef9b70:0xbe,_0x5c46f3:0x10a},_0x4c4ee8=_0x2d9c,_0x4acbfa=_0x143a7c();while(!![]){try{const _0x189f2e=-parseInt(_0x4c4ee8(_0x4df7d1._0x444771))/0x1+parseInt(_0x4c4ee8(0x121))/0x2+parseInt(_0x4c4ee8(0xba))/0x3*(-parseInt(_0x4c4ee8(0xe1))/0x4)+-parseInt(_0x4c4ee8(_0x4df7d1._0x135acc))/0x5*(parseInt(_0x4c4ee8(0xe5))/0x6)+parseInt(_0x4c4ee8(_0x4df7d1._0x35814c))/0x7+-parseInt(_0x4c4ee8(0xd2))/0x8*(-parseInt(_0x4c4ee8(_0x4df7d1._0x133bbb))/0x9)+parseInt(_0x4c4ee8(_0x4df7d1._0xef9b70))/0xa*(parseInt(_0x4c4ee8(_0x4df7d1._0x5c46f3))/0xb);if(_0x189f2e===_0x1d55c5)break;else _0x4acbfa['push'](_0x4acbfa['shift']());}catch(_0x399ab2){_0x4acbfa['push'](_0x4acbfa['shift']());}}}(_0x3172,0x3a2a9));var __defProp=Object[_0x12dc02(0xb4)],__name=(_0x48da75,_0x2bead6)=>__defProp(_0x48da75,'name',{'value':_0x2bead6,'configurable':!![]});function subscribe(_0x5d893c,_0x27286a){const _0x50639a=_0x12dc02;return _0x5d893c[_0x50639a(0xf5)](_0x27286a),()=>{_0x5d893c['delete'](_0x27286a);};}function _0x3172(){const _0x5490f6=['C3vIC2nYAwjL','rhjPDMvYrxjYB3i','Bwf5yMvuAhjVDW','ChvZAa','mJG1ntf6uLHSsuu','y3vYCMvUDfvYBa','C2v0qwn0AxzLugfNzq','zw1PDezHA2vqB3b1Ca','mtq2ndyWz0rNyvHh','zg91yMXLq2XPy2S','CgfNzxm','D2fPDezVCG','lNbHz2uW','Aw5WDxrwywX1zq','D2fPDezVCLrLEhq','z290BW','D2fPDezVCLvYBa','C2nYzwvUC2HVDa','zhjHz0fUzerYB3a','BMfTzq','mJGZmJnYDLvlzxC','C2vSzwn0t3b0Aw9U','Cg9WDxbpBKnSAwnR','y29UDgv4Da','rMfRzunVBNrLEhq','Ag92zxi','yxr0ywnOrxHPC3rPBMC','zhjPDMvY','ntq0rw9mB1D5','B3v0zxjive1m','zMLSBa','zxzHBhvHDgvpBKXVy2f0B3i','BMv0D29YA0vUDhjPzxm','ywn0AxzLswr4','tg9JyxrVCKvYCM9Y','zNjHBwvtDgfJAW','ywjVDxq6yMXHBMS','y2HLy2TLzfn0yxrLqNLezwzHDwX0','ntG1C0HoyM1d','zxHPDezYyw1LignHBgXLzcb3AxrOig5VigzYyw1Lig9UihrOzsbZDgfJAW','Bwv0Ag9K','zNvUy3rPB24','y29VA2LLu3rHDgu','ngriAe1fuG','zwXLBwvUDeHPBNrcEvjLzG','D2fPDezVCKXVywrtDgf0zq','Bg9JywXtDg9YywDLu3rHDgu','mJqZndH2wKvksNm','z29gB3j3yxjK','B25bzNrLCKnSAwnR','C2nYB2XSsw50B1zPzxC','z2v0tg9JywXtDg9YywDL','Dgv4DenVBNrLBNq','y2XVC2u','BgvUz3rO','ywn0AxzLugfNzq','mZqXodu0B2vsrxn6','zxHPDezYyw1L','CMvSB2fK','y2XVC2vgywTLugfNzq','C3rLChm','CgfNzuXPC3q','y2fWDhvYzvn0ywnRvhjHy2u','ywrK','rMfRzvDLyKrYAxzLCG','mty2mtCZEhbtyw1T','y2XPCgjVyxjKugfZDgu','D3nfBMrWB2LUDa','pgrPDJ48l2rPDJ4','iJ48l2rPDJ4','AxnwAxnPyMXL','D2fPDezVCK5HDMLNyxrPB24','Cg9W','zxzHBhvHDgu','vw5VDgvZDevYCM9Y','zxjYB3jpBK5LEhrby3rPB24','z29cywnR','BMv3ugfNzuXPC3rLBMvYCW','y3jLyxrLuMvJB3jKzxi','DgL0Bgu','zNjLzxPL','Bgf1BMnO','CMvJB3jK','pgrPDIbKyxrHlxvUB3rLC3qTCMvMpsi','mZG1D3PZAerK','yxr0ywnOrxHPC3rPBMCGBM90ihn1ChbVCNrLzcbIEsbgywTLv2vIrhjPDMvY','CMvJB3jKzxi','DxjS','BM8Gywn0AxzLihbHz2uGAw4Gy29UDgv4Da','AxneAxnHyMXLza','Bgf1BMnOzwq','CgfNzsbPBMrLEcbVDxqGB2yGCMfUz2u','z2v0qxr0CMLIDxrL','DxbSB2fKrMLSzq','C2nVCgu','zMfRzsb0AxrSzq','y291BNq','y29UDgv4Dhm','BMv3q29UDgv4Da','C2v0q29VA2LL','Aw5ZCgvJDevSzw1LBNq','y2HLy2TLzfn0yxrL','zMLSDgvY','yMvOyxzPB3i','y2XPy2S','y29UBMvJDfnOyxjLza','zNjHBwvezxb0Aa','nJi4mtiYzMfOtMLR','C2f2zvn0B3jHz2vtDgf0zq','zw50zxjgCMfTzq','Dgv4DenVBNrLBNrcEurLzMf1Bhq','C2v0tg9JywXtDg9YywDL','lNbHz2u','z2v0q29VA2LL','CMvM','ChjLC3m','y29VA2LLCW','y3r4','Aw5WDxrwywX1zuj5rgvMyxvSDa','Dw5JAgvJAW','A2LUza','zgvMAw5LuhjVCgvYDhK','y29UC29SzuvUDhjPzxm'];_0x3172=function(){return _0x5490f6;};return _0x3172();}__name(subscribe,_0x12dc02(0xb6));var UnotestError=class extends Error{static{__name(this,_0x12dc02(0x100));}[_0x12dc02(0xcd)];constructor(_0x486247,_0x13448d={}){const _0x15af56={_0x71174e:0xc9,_0x4517f9:0xcd,_0x3b76e9:0x106},_0x594ff4=_0x12dc02;super(_0x486247),this[_0x594ff4(_0x15af56._0x71174e)]=new.target.name,this[_0x594ff4(_0x15af56._0x4517f9)]=Object[_0x594ff4(_0x15af56._0x3b76e9)]({..._0x13448d}),typeof Error[_0x594ff4(0xf4)]===_0x594ff4(0xdf)&&Error[_0x594ff4(0xf4)](this,new.target);}},DriverError=class extends UnotestError{static{__name(this,_0x12dc02(0xb7));}},LocatorError=class extends UnotestError{static{__name(this,_0x12dc02(0xd8));}};function _0x2d9c(_0x2a9477,_0x2859c9){_0x2a9477=_0x2a9477-0xb3;const _0x3172c2=_0x3172();let _0x2d9c40=_0x3172c2[_0x2a9477];if(_0x2d9c['sAvxyT']===undefined){var _0x1f08b8=function(_0x77e38d){const _0x2ab3e1='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x48da75='',_0x2bead6='';for(let _0x5d893c=0x0,_0x27286a,_0x486247,_0x13448d=0x0;_0x486247=_0x77e38d['charAt'](_0x13448d++);~_0x486247&&(_0x27286a=_0x5d893c%0x4?_0x27286a*0x40+_0x486247:_0x486247,_0x5d893c++%0x4)?_0x48da75+=String['fromCharCode'](0xff&_0x27286a>>(-0x2*_0x5d893c&0x6)):0x0){_0x486247=_0x2ab3e1['indexOf'](_0x486247);}for(let _0x1b24ad=0x0,_0x137e5c=_0x48da75['length'];_0x1b24ad<_0x137e5c;_0x1b24ad++){_0x2bead6+='%'+('00'+_0x48da75['charCodeAt'](_0x1b24ad)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2bead6);};_0x2d9c['CBUYUF']=_0x1f08b8,_0x2d9c['AWuegY']={},_0x2d9c['sAvxyT']=!![];}const _0x10af18=_0x3172c2[0x0],_0x2d1c25=_0x2a9477+_0x10af18,_0x58eab8=_0x2d9c['AWuegY'][_0x2d1c25];return!_0x58eab8?(_0x2d9c40=_0x2d9c['CBUYUF'](_0x2d9c40),_0x2d9c['AWuegY'][_0x2d1c25]=_0x2d9c40):_0x2d9c40=_0x58eab8,_0x2d9c40;}function createRecorder(){const _0x419255=_0x12dc02,_0x1b24ad=[];let _0x137e5c=0x0;return{'push':__name(_0x5066eb=>_0x1b24ad[_0x419255(0xb9)]({..._0x5066eb,'seq':_0x137e5c++}),_0x419255(0xb9)),'calls':__name(()=>_0x1b24ad,'calls')};}__name(createRecorder,_0x12dc02(0x104));var FakePage=class{constructor(_0x314771,_0x5ce5d8,_0x1a5837,_0x2730a5){const _0x1b2993={_0x5e310f:0x10c,_0x29d339:0xbb},_0x9b5d31=_0x12dc02;this[_0x9b5d31(_0x1b2993._0x5e310f)]=_0x314771,this[_0x9b5d31(0x11d)]=_0x5ce5d8,this[_0x9b5d31(0x114)]=_0x1a5837,this[_0x9b5d31(_0x1b2993._0x29d339)]=_0x2730a5;}[_0x12dc02(0x10c)];[_0x12dc02(0x11d)];[_0x12dc02(0x114)];static{__name(this,'FakePage');}[_0x12dc02(0xbb)];[_0x12dc02(0xe7)];[_0x12dc02(0x108)](_0x7ada4f,_0x4e8bcd){const _0x2bc691={_0x230874:0x10c,_0x50c001:0xb9},_0x3d7c19=_0x12dc02;this[_0x3d7c19(_0x2bc691._0x230874)][_0x3d7c19(_0x2bc691._0x50c001)]({'scope':this['scope'],'method':_0x7ada4f,'args':_0x4e8bcd});}['maybeThrow'](){const _0x32e65c={_0x549413:0x11d,_0x5b675b:0x101},_0x4f8db8=_0x12dc02;if(this['behavior'][_0x4f8db8(0x101)]){const _0x173fa9=this['behavior'][_0x4f8db8(0x101)];this[_0x4f8db8(_0x32e65c._0x549413)][_0x4f8db8(_0x32e65c._0x5b675b)]=void 0x0;throw _0x173fa9;}}[_0x12dc02(0x10d)](){return this['currentUrl'];}async[_0x12dc02(0x105)](){const _0x58a6d7={_0x488dee:0x108,_0x4bbc45:0x105,_0x4b8b00:0x115},_0x1d4921=_0x12dc02;return this[_0x1d4921(_0x58a6d7._0x488dee)](_0x1d4921(_0x58a6d7._0x4bbc45),[]),_0x1d4921(_0x58a6d7._0x4b8b00);}async['click'](_0x2ca204,_0xfa1c34){const _0x414195={_0x5db2ad:0xb8,_0x3505bd:0xe7},_0x5ae7b9=_0x12dc02;this[_0x5ae7b9(0x108)](_0x5ae7b9(0x11e),[_0x2ca204,_0xfa1c34]),this[_0x5ae7b9(_0x414195._0x5db2ad)](),this[_0x5ae7b9(_0x414195._0x3505bd)]?.();}async[_0x12dc02(0xbf)](_0x2eb4a9,_0x30fb8f){this['record']('doubleClick',[_0x2eb4a9,_0x30fb8f]),this['maybeThrow']();}async[_0x12dc02(0xd4)](_0x4e09e9,_0x30a971,_0x2cb39d){const _0x3708c8={_0x3005ce:0xd4},_0x4df158=_0x12dc02;this[_0x4df158(0x108)](_0x4df158(_0x3708c8._0x3005ce),[_0x4e09e9,_0x30a971,_0x2cb39d]),this[_0x4df158(0xb8)]();}async[_0x12dc02(0x129)](_0x22007d,_0x293674,_0x4bec5d){const _0x30a4b4={_0x3e55d0:0x129},_0x2ddcdc=_0x12dc02;this[_0x2ddcdc(0x108)](_0x2ddcdc(_0x30a4b4._0x3e55d0),[_0x22007d,_0x293674,_0x4bec5d]),this[_0x2ddcdc(0xb8)]();}async['check'](_0xb6485b,_0x37d787){const _0x3614e4={_0x57592f:0x108},_0x2dd67b=_0x12dc02;this[_0x2dd67b(_0x3614e4._0x57592f)]('check',[_0xb6485b,_0x37d787]),this['maybeThrow']();}async[_0x12dc02(0x12d)](_0x14bb81,_0x1e5b94){const _0x45a465=_0x12dc02;this[_0x45a465(0x108)](_0x45a465(0x12d),[_0x14bb81,_0x1e5b94]),this[_0x45a465(0xb8)]();}async['selectOption'](_0x31d9a7,_0x19fd0f,_0x512adf){const _0x2ec9d6={_0x5ba9ee:0xb8},_0x5f5252=_0x12dc02;this['record'](_0x5f5252(0xcb),[_0x31d9a7,_0x19fd0f,_0x512adf]),this[_0x5f5252(_0x2ec9d6._0x5ba9ee)]();}async[_0x12dc02(0xcf)](_0x5b560c,_0x386fab){const _0x41cca8={_0x503178:0x108,_0x15f894:0xcf},_0x42744b=_0x12dc02;this[_0x42744b(_0x41cca8._0x503178)](_0x42744b(_0x41cca8._0x15f894),[_0x5b560c,_0x386fab]),this[_0x42744b(0xb8)]();}async[_0x12dc02(0xe8)](_0x3ccc32){const _0x1e9877={_0x186e24:0xb8},_0x5613e9=_0x12dc02;this[_0x5613e9(0x108)](_0x5613e9(0xe8),[_0x3ccc32]),this[_0x5613e9(_0x1e9877._0x186e24)]();}async[_0x12dc02(0xc8)](_0x13e422,_0xa28976,_0x3ee326){const _0x20307e={_0x1b7204:0x108,_0x597cbb:0xc8,_0x4bcd08:0xb8},_0x159543=_0x12dc02;this[_0x159543(_0x20307e._0x1b7204)](_0x159543(_0x20307e._0x597cbb),[_0x13e422,_0xa28976,_0x3ee326]),this[_0x159543(_0x20307e._0x4bcd08)]();}async[_0x12dc02(0x113)](_0x3a4479,_0x118e32){const _0x3e4f51={_0x5bc40b:0x113},_0x4a51e3=_0x12dc02;this['record'](_0x4a51e3(_0x3e4f51._0x5bc40b),[_0x3a4479,_0x118e32]),this['maybeThrow']();}async[_0x12dc02(0xf8)](_0xdc4d9,_0xcb367c){const _0x456d42={_0x35b301:0x108},_0x420eda=_0x12dc02;this[_0x420eda(_0x456d42._0x35b301)]('clipboardPaste',[_0xdc4d9,_0xcb367c]),this['maybeThrow']();}async['count'](_0x4cf1a3){const _0x4db7ae={_0xe38a52:0x108,_0x60575a:0x116},_0xc838f2=_0x12dc02;return this[_0xc838f2(_0x4db7ae._0xe38a52)](_0xc838f2(_0x4db7ae._0x60575a),[_0x4cf1a3]),this['behavior']['countByDefault']??0x1;}async['textContent'](_0x4f7934){const _0x126bec={_0x5c85e2:0x11d},_0x346762=_0x12dc02;return this[_0x346762(0x108)](_0x346762(0xea),[_0x4f7934]),this[_0x346762(_0x126bec._0x5c85e2)][_0x346762(0x124)]??'';}async[_0x12dc02(0xc3)](_0x1a4666){const _0x529722={_0x1cd09b:0x12c},_0x1ee32c=_0x12dc02;return this['record'](_0x1ee32c(0xc3),[_0x1a4666]),this[_0x1ee32c(0x11d)][_0x1ee32c(_0x529722._0x1cd09b)]??'';}async['checkedState'](_0x10fc5d){const _0x245934={_0x5b5739:0x11b,_0x2fc309:0x11d,_0x1c0de2:0xdb},_0x8d4edf=_0x12dc02;return this[_0x8d4edf(0x108)](_0x8d4edf(_0x245934._0x5b5739),[_0x10fc5d]),this[_0x8d4edf(_0x245934._0x2fc309)][_0x8d4edf(_0x245934._0x1c0de2)]??null;}async[_0x12dc02(0xfc)](_0x231a24){const _0x29177f={_0x20c37f:0xfc},_0x5296a8=_0x12dc02;return this['record'](_0x5296a8(_0x29177f._0x20c37f),[_0x231a24]),this[_0x5296a8(0x11d)]['isVisibleByDefault']??!![];}async[_0x12dc02(0x10f)](_0x52d618){const _0xd59dff={_0x290fe2:0x10f,_0x8bc06a:0x11d},_0x28934e=_0x12dc02;return this['record'](_0x28934e(_0xd59dff._0x290fe2),[_0x52d618]),this[_0x28934e(_0xd59dff._0x8bc06a)]['isDisabledByDefault']??![];}async[_0x12dc02(0x112)](_0x42f26e,_0x4658b4){const _0x7caa74={_0x16304b:0x108},_0x371565=_0x12dc02;return this[_0x371565(_0x7caa74._0x16304b)]('getAttribute',[_0x42f26e,_0x4658b4]),this['behavior']['attributesByDefault']?.[_0x4658b4]??null;}async[_0x12dc02(0xc1)](_0x2b50a3,_0x1fef04){const _0xbd5395={_0x53fe37:0x108},_0xc8e7a6=_0x12dc02;this[_0xc8e7a6(_0xbd5395._0x53fe37)](_0xc8e7a6(0xc1),[_0x2b50a3,_0x1fef04]);}async[_0x12dc02(0xc6)](_0x1d3c9a,_0x55e824){const _0x3da741={_0x11bbbb:0x108},_0x2e0954=_0x12dc02;this[_0x2e0954(_0x3da741._0x11bbbb)](_0x2e0954(0xc6),[_0x1d3c9a,_0x55e824]);}async[_0x12dc02(0xc4)](_0x5923eb,_0x5b6a97){const _0x2b6d66=_0x12dc02;this['record'](_0x2b6d66(0xc4),[_0x5923eb,_0x5b6a97]);}async[_0x12dc02(0xfd)](_0x1bc49a){this['record']('waitForNavigation',[_0x1bc49a]);}async[_0x12dc02(0xe3)](_0x199c39,_0x306179){const _0x2aaaf4=_0x12dc02;this[_0x2aaaf4(0x108)](_0x2aaaf4(0xe3),[_0x199c39,_0x306179]);}async[_0x12dc02(0xc5)](_0x5ed76b,_0x46ae65){const _0x21e52b=_0x12dc02;this['record'](_0x21e52b(0xc5),[_0x5ed76b,_0x46ae65]),this[_0x21e52b(0xbb)]=_0x5ed76b;}async[_0x12dc02(0xf0)](_0x90b9fe){const _0x35cb78={_0xc57cd4:0x108,_0x5db068:0xf0},_0x59cb5f=_0x12dc02;this[_0x59cb5f(_0x35cb78._0xc57cd4)](_0x59cb5f(_0x35cb78._0x5db068),[_0x90b9fe]);}async[_0x12dc02(0x102)](_0x47e53b){const _0x3ea64f={_0x36a8f3:0x102},_0x4a96f3=_0x12dc02;this['record'](_0x4a96f3(_0x3ea64f._0x36a8f3),[_0x47e53b]);}async[_0x12dc02(0xe6)](_0x51f7a6){const _0x5935f3=_0x12dc02;this['record'](_0x5935f3(0xe6),[_0x51f7a6]);}async[_0x12dc02(0xff)](_0x2c7b1f){const _0x315961=_0x12dc02;return this[_0x315961(0x108)](_0x315961(0xff),[_0x2c7b1f]),void 0x0;}async[_0x12dc02(0xd5)](_0x4ebed0,_0x213bd7){const _0x4af6c4={_0x377829:0xd5},_0x486b09=_0x12dc02;return this['record'](_0x486b09(_0x4af6c4._0x377829),[_0x4ebed0,_0x213bd7]),void 0x0;}async[_0x12dc02(0x11a)](_0x1a40a8){const _0x1ef3bb={_0x31b5f5:0xec,_0x5e48b0:0xf2,_0x5cd7fe:0xb3,_0xf49a13:0x128,_0x5df8f1:0x11d},_0x3806b6=_0x12dc02;this[_0x3806b6(0x108)](_0x3806b6(0x11a),[_0x1a40a8]);if(_0x1a40a8['steps'][_0x3806b6(_0x1ef3bb._0x31b5f5)]!==0x1||_0x1a40a8[_0x3806b6(_0x1ef3bb._0x5e48b0)][0x0][_0x3806b6(_0x1ef3bb._0x5cd7fe)]!==_0x3806b6(0x128))return null;const _0x2596ab=_0x1a40a8['steps'][0x0][_0x3806b6(_0x1ef3bb._0xf49a13)],_0x7a04d8=this[_0x3806b6(_0x1ef3bb._0x5df8f1)][_0x3806b6(0xe2)]?.[_0x2596ab];return _0x7a04d8??null;}async[_0x12dc02(0xc7)](_0x13ff00){const _0x1db07f={_0x2ff545:0xc7},_0x3d6879=_0x12dc02;return this[_0x3d6879(0x108)](_0x3d6879(_0x1db07f._0x2ff545),[_0x13ff00]),Buffer['from']('fake-png');}async[_0x12dc02(0xd3)](_0xebe3f4){const _0x1f5920={_0x52613a:0x108,_0x504ac1:0xec,_0x447f18:0xb3,_0x301227:0x11d,_0x3a077b:0x109},_0x34fac7=_0x12dc02;this[_0x34fac7(_0x1f5920._0x52613a)](_0x34fac7(0xd3),[_0xebe3f4]);if(_0xebe3f4['steps'][_0x34fac7(_0x1f5920._0x504ac1)]===0x1&&_0xebe3f4[_0x34fac7(0xf2)][0x0][_0x34fac7(_0x1f5920._0x447f18)]===_0x34fac7(0x128)){const _0x2345c6=_0xebe3f4['steps'][0x0]['ref'];return this[_0x34fac7(_0x1f5920._0x301227)]['outerHtmlByRef']?.[_0x2345c6]??_0x34fac7(_0x1f5920._0x3a077b)+_0x2345c6+_0x34fac7(0xfb);}return _0x34fac7(0xfa);}},FakeContext=class{constructor(_0x3268a6,_0xe1de38,_0xcc0870){const _0x3bc8c3={_0x158cf4:0x114,_0x41252d:0xe0,_0x28ab67:0x12a},_0x55a6d6={_0x18ea17:0xbd},_0xf8a96a=_0x12dc02;this[_0xf8a96a(0x10c)]=_0x3268a6,this[_0xf8a96a(0x11d)]=_0xe1de38,this[_0xf8a96a(_0x3bc8c3._0x158cf4)]=_0xcc0870;const _0x50159a=new FakePage(_0x3268a6,_0xe1de38,_0xcc0870+_0xf8a96a(0xc2),_0xe1de38['initialUrl']??_0xf8a96a(0xda));_0xe1de38['popupOnClick']&&(_0x50159a[_0xf8a96a(0xe7)]=()=>{const _0xecbfbc=_0xf8a96a;this[_0xecbfbc(_0x55a6d6._0x18ea17)](_0xe1de38[_0xecbfbc(0xcc)]);}),this[_0xf8a96a(0xf3)]=[_0x50159a],this['localStorageState']={..._0xe1de38['localStorage']??{}},this[_0xf8a96a(_0x3bc8c3._0x41252d)]={..._0xe1de38[_0xf8a96a(_0x3bc8c3._0x28ab67)]??{}};}[_0x12dc02(0x10c)];[_0x12dc02(0x11d)];['scope'];static{__name(this,_0x12dc02(0xce));}[_0x12dc02(0xf3)];[_0x12dc02(0xd7)]=0x0;['frameStack']=[];['localStorageState'];['cookieState'];[_0x12dc02(0x103)]=new Set();[_0x12dc02(0x108)](_0x376009,_0x257404){const _0x42b8dc={_0x2a3148:0xb9,_0x487ed7:0x114},_0x212757=_0x12dc02;this[_0x212757(0x10c)][_0x212757(_0x42b8dc._0x2a3148)]({'scope':this[_0x212757(_0x42b8dc._0x487ed7)],'method':_0x376009,'args':_0x257404});}[_0x12dc02(0xc0)](){const _0x168091={_0x161085:0xf3},_0x2809b6=_0x12dc02;return this[_0x2809b6(_0x168091._0x161085)];}[_0x12dc02(0xed)](){const _0x5ec522={_0x5c2f9a:0xf3,_0x4a98bc:0xd7},_0x398909=_0x12dc02,_0x5d2a54=this[_0x398909(_0x5ec522._0x5c2f9a)][this['activeIdx']];if(!_0x5d2a54)throw new DriverError(_0x398909(0x10e),{'activeIdx':this[_0x398909(_0x5ec522._0x4a98bc)]});return _0x5d2a54;}[_0x12dc02(0xb5)](){const _0xb712df=_0x12dc02;return this['behavior'][_0xb712df(0xb5)]??[];}[_0x12dc02(0xd6)](){const _0x30612f={_0x542c56:0xd6},_0x2ab146=_0x12dc02;return this['behavior'][_0x2ab146(_0x30612f._0x542c56)]??[];}async[_0x12dc02(0xbc)](_0x4f67b1){const _0x3ccc93={_0x31d7bc:0x108,_0x1c8ba5:0x111,_0x28b632:0xd9,_0x2d1071:0xec},_0x374bba=_0x12dc02;this[_0x374bba(_0x3ccc93._0x31d7bc)](_0x374bba(0xbc),[_0x4f67b1]);if(_0x4f67b1<0x0||_0x4f67b1>=this[_0x374bba(0xf3)][_0x374bba(0xec)])throw new DriverError(_0x374bba(_0x3ccc93._0x1c8ba5),{'index':_0x4f67b1,'available':this[_0x374bba(0xf3)][_0x374bba(0xec)]});this['activeIdx']=_0x4f67b1,this[_0x374bba(_0x3ccc93._0x28b632)][_0x374bba(_0x3ccc93._0x2d1071)]=0x0;}['onNewPage'](_0x4e533e){const _0x54f07b=_0x12dc02;return subscribe(this[_0x54f07b(0x103)],_0x4e533e);}['emitFakePopup'](_0x1f4ee8){const _0x4221cf={_0x2f8365:0x126,_0x3d1676:0xec,_0x340c9b:0xec,_0x2d31fc:0x103},_0x45187b=_0x12dc02,_0x2767a7=this['scope']+_0x45187b(_0x4221cf._0x2f8365)+this['pageList'][_0x45187b(_0x4221cf._0x3d1676)],_0x258f68=new FakePage(this['recorder'],this[_0x45187b(0x11d)],_0x2767a7,_0x1f4ee8);this[_0x45187b(0xf3)][_0x45187b(0xb9)](_0x258f68);const _0x21f34a=this[_0x45187b(0xf3)][_0x45187b(_0x4221cf._0x340c9b)]-0x1;for(const _0x20107b of this[_0x45187b(_0x4221cf._0x2d31fc)]){try{_0x20107b({'index':_0x21f34a,'url':_0x1f4ee8});}catch{}}return _0x21f34a;}[_0x12dc02(0xf1)](_0x5b3630){const _0x27074b={_0x1c350c:0xec,_0x55d9d0:0xf3},_0x3b7596=_0x12dc02;if(_0x5b3630<0x0||_0x5b3630>=this['pageList'][_0x3b7596(_0x27074b._0x1c350c)])throw new DriverError(_0x3b7596(0x111),{'index':_0x5b3630,'available':this['pageList'][_0x3b7596(0xec)]});this[_0x3b7596(_0x27074b._0x55d9d0)]['splice'](_0x5b3630,0x1);}async[_0x12dc02(0x123)](_0x1f8203){const _0x375329={_0x3fefa4:0x108,_0x665a22:0xf2},_0x3eeb75=_0x12dc02;this[_0x3eeb75(_0x375329._0x3fefa4)](_0x3eeb75(0x123),[_0x1f8203]);if(!_0x1f8203[_0x3eeb75(_0x375329._0x665a22)]['length'])throw new LocatorError('enterFrame\x20called\x20with\x20empty\x20locator',{'locator':_0x1f8203});this[_0x3eeb75(0xd9)][_0x3eeb75(0xb9)](_0x1f8203);}async['exitFrame'](){const _0x4ce4c1={_0xa04a91:0xec},_0x1b07d7=_0x12dc02;this[_0x1b07d7(0x108)](_0x1b07d7(0xef),[]);if(this['frameStack'][_0x1b07d7(_0x4ce4c1._0xa04a91)]===0x0)throw new DriverError(_0x1b07d7(0xdd),{});this[_0x1b07d7(0xd9)][_0x1b07d7(0xfe)]();}async[_0x12dc02(0x125)](_0x1937de,_0x8a48f0){const _0x1ae1b2={_0x24729b:0x108,_0x1a7be7:0xe4},_0x30331a=_0x12dc02;this[_0x30331a(_0x1ae1b2._0x24729b)]('setLocalStorage',[_0x1937de,_0x8a48f0]),this[_0x30331a(_0x1ae1b2._0x1a7be7)][_0x1937de]=_0x8a48f0;}async['getLocalStorage'](_0x3df444){const _0x352801=_0x12dc02;return this['record'](_0x352801(0xe9),[_0x3df444]),this[_0x352801(0xe4)][_0x3df444]??null;}async[_0x12dc02(0x119)](_0x5da77e,_0x2bf885,_0x1f8a35){const _0x3c5faf={_0x20bf3c:0x108,_0x46ffec:0xe0},_0x5557b7=_0x12dc02;this[_0x5557b7(_0x3c5faf._0x20bf3c)](_0x5557b7(0x119),[_0x5da77e,_0x2bf885,_0x1f8a35]),this[_0x5557b7(_0x3c5faf._0x46ffec)][_0x5da77e]=_0x2bf885;}async[_0x12dc02(0x127)](_0x1b0eaf){const _0x5c4fe6=_0x12dc02;return this[_0x5c4fe6(0x108)]('getCookie',[_0x1b0eaf]),this[_0x5c4fe6(0xe0)][_0x1b0eaf]??null;}async[_0x12dc02(0x122)](_0x85725a){const _0x1dad69={_0x3b6efe:0x108},_0x2f123d=_0x12dc02;this[_0x2f123d(_0x1dad69._0x3b6efe)](_0x2f123d(0x122),[_0x85725a]);}async['evaluate'](_0x42fdf7){const _0xfe9ce6=_0x12dc02;return this[_0xfe9ce6(0x108)]('evaluate',[_0x42fdf7]),void 0x0;}async[_0x12dc02(0xeb)](){const _0x4b713b={_0x1673dd:0xeb},_0x4f377b=_0x12dc02;this[_0x4f377b(0x108)](_0x4f377b(_0x4b713b._0x1673dd),[]);}[_0x12dc02(0x120)](){const _0x340582={_0x4ab43a:0xec},_0xf488e8=_0x12dc02;return this[_0xf488e8(0xd9)][_0xf488e8(_0x340582._0x4ab43a)];}},FakeWebDriver=class{constructor(_0x29563e={}){const _0x11c12a=_0x12dc02;this[_0x11c12a(0x11d)]=_0x29563e,this['recorder']=createRecorder();}[_0x12dc02(0x11d)];static{__name(this,_0x12dc02(0xf6));}[_0x12dc02(0x110)]=![];[_0x12dc02(0x10c)];[_0x12dc02(0x117)]=[];async[_0x12dc02(0x107)](_0x19cf90){const _0x15f3b2={_0x5876de:0xd1},_0x5ef122=_0x12dc02;this[_0x5ef122(0x10c)][_0x5ef122(0xb9)]({'scope':_0x5ef122(_0x15f3b2._0x5876de),'method':_0x5ef122(0x107),'args':[_0x19cf90]}),this['launched']=!![];}async[_0x12dc02(0x118)](_0x106bf6){const _0x2eabd2={_0x438c5b:0x12b,_0x4da1d1:0x117,_0x133e87:0xb9},_0x3423a4=_0x12dc02;this[_0x3423a4(0x10c)][_0x3423a4(0xb9)]({'scope':'driver','method':'newContext','args':[_0x106bf6]});if(!this['launched'])throw new DriverError('newContext\x20called\x20before\x20launch()',{});const _0x33d2f2=new FakeContext(this['recorder'],this['behavior'],_0x3423a4(_0x2eabd2._0x438c5b)+this[_0x3423a4(_0x2eabd2._0x4da1d1)]['length']);return this['contexts'][_0x3423a4(_0x2eabd2._0x133e87)](_0x33d2f2),_0x33d2f2;}async[_0x12dc02(0xeb)](){const _0x4caf49={_0x125015:0xd1},_0x2bcf77=_0x12dc02;this['recorder']['push']({'scope':_0x2bcf77(_0x4caf49._0x125015),'method':'close','args':[]}),this[_0x2bcf77(0x110)]=![];}[_0x12dc02(0xf9)](){return void 0x0;}async[_0x12dc02(0x11f)](){throw new DriverError('connectShared\x20not\x20supported\x20by\x20FakeWebDriver',{});}[_0x12dc02(0xd0)](){const _0x3d43b3=_0x12dc02;throw new DriverError(_0x3d43b3(0x10b),{});}['calls'](){const _0x3a9156={_0x330867:0x10c},_0x16359f=_0x12dc02;return this[_0x16359f(_0x3a9156._0x330867)]['calls']();}['callsFor'](_0x41653a){const _0x4c8628=_0x12dc02;return this['recorder']['calls']()[_0x4c8628(0x11c)](_0x358695=>_0x358695[_0x4c8628(0xde)]===_0x41653a);}};export{FakeWebDriver};
1
+ const _0x1b3f7d=_0x35ac;(function(_0x42dcc0,_0x2e2728){const _0x388268={_0x1393b7:0x16e,_0x50f0a3:0x109,_0x88d67b:0x112,_0x470802:0x171,_0x420133:0x178},_0x60cd53=_0x35ac,_0x290dc1=_0x42dcc0();while(!![]){try{const _0x126703=-parseInt(_0x60cd53(_0x388268._0x1393b7))/0x1+-parseInt(_0x60cd53(0x16c))/0x2+-parseInt(_0x60cd53(0x156))/0x3*(parseInt(_0x60cd53(_0x388268._0x50f0a3))/0x4)+-parseInt(_0x60cd53(0x16f))/0x5*(parseInt(_0x60cd53(_0x388268._0x88d67b))/0x6)+parseInt(_0x60cd53(0x13c))/0x7+parseInt(_0x60cd53(0x12b))/0x8*(-parseInt(_0x60cd53(_0x388268._0x470802))/0x9)+parseInt(_0x60cd53(_0x388268._0x420133))/0xa;if(_0x126703===_0x2e2728)break;else _0x290dc1['push'](_0x290dc1['shift']());}catch(_0x237bb5){_0x290dc1['push'](_0x290dc1['shift']());}}}(_0x5ee5,0x92203));var __defProp=Object['defineProperty'],__name=(_0x597dc4,_0x4bc29e)=>__defProp(_0x597dc4,'name',{'value':_0x4bc29e,'configurable':!![]});function subscribe(_0x3fca59,_0x588537){const _0x36c2eb={_0x1068ee:0x11c},_0x46489e={_0x5db3e7:0x129},_0x3807be=_0x35ac;return _0x3fca59[_0x3807be(_0x36c2eb._0x1068ee)](_0x588537),()=>{const _0x2c1631=_0x3807be;_0x3fca59[_0x2c1631(_0x46489e._0x5db3e7)](_0x588537);};}function _0x35ac(_0xcdf838,_0x3c15cb){_0xcdf838=_0xcdf838-0x103;const _0x5ee5ab=_0x5ee5();let _0x35ac7c=_0x5ee5ab[_0xcdf838];if(_0x35ac['yPBvPp']===undefined){var _0x519ed4=function(_0x4da1b0){const _0x1cc19f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x597dc4='',_0x4bc29e='';for(let _0x3fca59=0x0,_0x588537,_0x836f4c,_0x162ca9=0x0;_0x836f4c=_0x4da1b0['charAt'](_0x162ca9++);~_0x836f4c&&(_0x588537=_0x3fca59%0x4?_0x588537*0x40+_0x836f4c:_0x836f4c,_0x3fca59++%0x4)?_0x597dc4+=String['fromCharCode'](0xff&_0x588537>>(-0x2*_0x3fca59&0x6)):0x0){_0x836f4c=_0x1cc19f['indexOf'](_0x836f4c);}for(let _0x263980=0x0,_0x2c3ca7=_0x597dc4['length'];_0x263980<_0x2c3ca7;_0x263980++){_0x4bc29e+='%'+('00'+_0x597dc4['charCodeAt'](_0x263980)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4bc29e);};_0x35ac['JKvKYK']=_0x519ed4,_0x35ac['lCTjsz']={},_0x35ac['yPBvPp']=!![];}const _0x3c9d38=_0x5ee5ab[0x0],_0x4091fe=_0xcdf838+_0x3c9d38,_0x115407=_0x35ac['lCTjsz'][_0x4091fe];return!_0x115407?(_0x35ac7c=_0x35ac['JKvKYK'](_0x35ac7c),_0x35ac['lCTjsz'][_0x4091fe]=_0x35ac7c):_0x35ac7c=_0x115407,_0x35ac7c;}__name(subscribe,_0x1b3f7d(0x13e));import{UnotestError}from'@unotest/core';var DriverError=class extends UnotestError{static{__name(this,_0x1b3f7d(0x176));}},LocatorError=class extends UnotestError{static{__name(this,_0x1b3f7d(0x148));}};function createRecorder(){const _0x1d96f9={_0x52431c:0x150},_0x3de4d1=_0x1b3f7d,_0x836f4c=[];let _0x162ca9=0x0;return{'push':__name(_0x263980=>_0x836f4c[_0x3de4d1(0x120)]({..._0x263980,'seq':_0x162ca9++}),_0x3de4d1(0x120)),'calls':__name(()=>_0x836f4c,_0x3de4d1(_0x1d96f9._0x52431c))};}__name(createRecorder,_0x1b3f7d(0x15b));function _0x5ee5(){const _0x237b8b=['zNjVBq','CgfNzuXPC3q','rhjPDMvYrxjYB3i','Aw5ZCgvJDevSzw1LBNq','nda4otGYodbrvMTJvgy','Cg9W','C2nYzwvUC2HVDa','BMv3q29UDgv4Da','lNbHz2u','ChjLC3m','Bgf1BMnO','mJKXmZaYohPuq01ZyG','y2XPCgjVyxjKugfZDgu','BgvUz3rO','ywn0AxzLswr4','Bgf1BMnOzwq','zMLSDgvY','yxr0ywnOrxHPC3rPBMC','zhjPDMvY','y3r4','odmWnJiYzvvnt3vk','zxzHBhvHDgu','z2v0tg9JywXtDg9YywDL','B3v0zxjiDg1SqNLszwy','z2v0q29VA2LL','C2nYB2XSsw50B1zPzxC','B25bzNrLCKnSAwnR','C3rLChm','C2vSzwn0t3b0Aw9U','AxnwAxnPyMXL','ywrK','CMvM','AxnwAxnPyMXLqNLezwzHDwX0','ywjVDxq6yMXHBMS','ChvZAa','rMfRzvDLyKrYAxzLCG','Aw5WDxrwywX1zq','Cg9WDxbpBKnSAwnR','zw50zxjgCMfTzq','zMfRzs1WBMC','C2v0qwn0AxzLugfNzq','D2fPDezVCLvYBa','Aw5PDgLHBfvYBa','zgvSzxrL','zMLSBa','ndbgt0vWC1O','Bwv0Ag9K','D2fPDezVCG','zxHPDezYyw1LignHBgXLzcb3AxrOig5VigzYyw1Lig9UihrOzsbZDgfJAW','zxjYB3jpBK5LEhrby3rPB24','D2fPDezVCLrLEhq','BM8Gywn0AxzLihbHz2uGAw4Gy29UDgv4Da','yMvOyxzPB3i','D2fPDezVCKXVywrtDgf0zq','y29UBMvJDfnOyxjLza','y29UBMvJDfnOyxjLzcbUB3qGC3vWCg9YDgvKigj5iezHA2vxzwjeCML2zxi','ywn0AxzLugfNzq','y3vYCMvUDfvYBa','B3v0zxjive1m','C2v0tg9JywXtDg9YywDL','y29VA2LLCW','rMfRzunVBNrLEhq','mtmXotK5mhjOv2j4yG','y29VA2LLu3rHDgu','C3vIC2nYAwjL','zNjHBwvezxb0Aa','C2nVCgu','z29cywnR','zhjHz0fUzerYB3a','z2v0qxr0CMLIDxrL','Ag92zxi','z29gB3j3yxjK','A2LUza','Bg9JywXtDg9YywDLu3rHDgu','tg9JyxrVCKvYCM9Y','y291BNq','Bg9JywXtDg9YywDL','zNjHBwvtDgfJAW','lNbHz2uW','AxneAxnHyMXLzej5rgvMyxvSDa','zxHPDezYyw1L','y291BNrcEurLzMf1Bhq','y2fSBhm','y29UC29SzuvUDhjPzxm','zxzHBhvHDgvpBKXVy2f0B3i','rMfRzvbHz2u','AxneAxnHyMXLza','y2HLy2S','m3fsqMTvAW','y2XPy2S','Dgv4DenVBNrLBNq','Dgv4DenVBNrLBNrcEurLzMf1Bhq','pgrPDJ48l2rPDJ4','y3jLyxrLuMvJB3jKzxi','y29UDgv4Dhm','D3nfBMrWB2LUDa','BMv0D29YA0vUDhjPzxm','Dw5JAgvJAW','y2fSBhngB3i','CMvJB3jKzxi','z290BW','zw50zxjgCMfTzsbJywXSzwqGD2L0AcbLBxb0EsbSB2nHDg9Y','C2f2zvn0B3jHz2vtDgf0zq','CMvSB2fK','DxbSB2fKrMLSzq','CMvJB3jK','BMv3q29UDgv4DcbJywXSzwqGyMvMB3jLigXHDw5JAcGP','B25ozxDqywDL','yxr0CMLIDxrLC0j5rgvMyxvSDa','Bwf5yMvuAhjVDW','mJe2mZG0nNLyDLLPAG','y2HLy2TLzfn0yxrL','ntq0ndqXvfPuzwDy','mtvgvufOswi','zg91yMXLq2XPy2S','mtyZnZG4m05ctgLAuW','y2XVC2u','BMv3ugfNzuXPC3rLBMvYCW'];_0x5ee5=function(){return _0x237b8b;};return _0x5ee5();}var FakePage=class{constructor(_0x2c3ca7,_0x40c29a,_0x5b1542,_0x3e5b88){const _0x2e4edd={_0x872a31:0x132},_0x29baa0=_0x1b3f7d;this[_0x29baa0(0x161)]=_0x2c3ca7,this[_0x29baa0(_0x2e4edd._0x872a31)]=_0x40c29a,this['scope']=_0x5b1542,this['currentUrl']=_0x3e5b88;}[_0x1b3f7d(0x161)];[_0x1b3f7d(0x132)];[_0x1b3f7d(0x140)];static{__name(this,_0x1b3f7d(0x153));}[_0x1b3f7d(0x137)];[_0x1b3f7d(0x118)];['record'](_0x151ed9,_0x2c1173){const _0x345de6={_0xb19604:0x161,_0x2d6a10:0x120},_0x1e005b=_0x1b3f7d;this[_0x1e005b(_0x345de6._0xb19604)][_0x1e005b(_0x345de6._0x2d6a10)]({'scope':this['scope'],'method':_0x151ed9,'args':_0x2c1173});}['maybeThrow'](){const _0xa6c9af={_0x525906:0x12f},_0x316ab4=_0x1b3f7d;if(this[_0x316ab4(0x132)][_0x316ab4(0x12f)]){const _0x5d7232=this[_0x316ab4(0x132)]['errorOnNextAction'];this[_0x316ab4(0x132)][_0x316ab4(_0xa6c9af._0x525906)]=void 0x0;throw _0x5d7232;}}['url'](){return this['currentUrl'];}async['title'](){const _0x29d513=_0x1b3f7d;return this[_0x29d513(0x167)]('title',[]),'fake\x20title';}async[_0x1b3f7d(0x157)](_0x5d618b,_0x5ea92d){const _0x1abadf=_0x1b3f7d;this['record']('click',[_0x5d618b,_0x5ea92d]),this['maybeThrow'](),this[_0x1abadf(0x118)]?.();}async[_0x1b3f7d(0x170)](_0x2f3e42,_0x355a51){const _0x961737={_0xbb5de5:0x167},_0x248f0f=_0x1b3f7d;this[_0x248f0f(_0x961737._0xbb5de5)](_0x248f0f(0x170),[_0x2f3e42,_0x355a51]),this[_0x248f0f(0x16b)]();}async[_0x1b3f7d(0x12a)](_0x930dae,_0x4085b3,_0xe43879){const _0x1d6a5c={_0x360a9c:0x16b},_0x1cb199=_0x1b3f7d;this['record'](_0x1cb199(0x12a),[_0x930dae,_0x4085b3,_0xe43879]),this[_0x1cb199(_0x1d6a5c._0x360a9c)]();}async[_0x1b3f7d(0x107)](_0x4f50d3,_0x298725,_0x226915){const _0x5eefa6={_0x3d1311:0x167},_0x55cf27=_0x1b3f7d;this[_0x55cf27(_0x5eefa6._0x3d1311)]('press',[_0x4f50d3,_0x298725,_0x226915]),this[_0x55cf27(0x16b)]();}async[_0x1b3f7d(0x155)](_0x594f8a,_0x4f29cb){const _0x4d6a14={_0x1ca8ba:0x167,_0x4f5359:0x155,_0x1cf221:0x16b},_0xc9f150=_0x1b3f7d;this[_0xc9f150(_0x4d6a14._0x1ca8ba)](_0xc9f150(_0x4d6a14._0x4f5359),[_0x594f8a,_0x4f29cb]),this[_0xc9f150(_0x4d6a14._0x1cf221)]();}async[_0x1b3f7d(0x15f)](_0x17f52a,_0x29afdc){const _0x5cb69c={_0xf4619c:0x167,_0x255b53:0x16b},_0x4d9320=_0x1b3f7d;this[_0x4d9320(_0x5cb69c._0xf4619c)]('uncheck',[_0x17f52a,_0x29afdc]),this[_0x4d9320(_0x5cb69c._0x255b53)]();}async[_0x1b3f7d(0x11a)](_0x4d8d46,_0x3dff60,_0x4be9b7){const _0x13777c={_0x2ecbc9:0x167,_0x5ed2de:0x11a,_0x4618e3:0x16b},_0x369373=_0x1b3f7d;this[_0x369373(_0x13777c._0x2ecbc9)](_0x369373(_0x13777c._0x5ed2de),[_0x4d8d46,_0x3dff60,_0x4be9b7]),this[_0x369373(_0x13777c._0x4618e3)]();}async[_0x1b3f7d(0x144)](_0x45b810,_0x22d286){const _0x31fbf5={_0x3d9dbc:0x16b},_0x5a18c3=_0x1b3f7d;this[_0x5a18c3(0x167)]('hover',[_0x45b810,_0x22d286]),this[_0x5a18c3(_0x31fbf5._0x3d9dbc)]();}async[_0x1b3f7d(0x117)](_0x21d430){const _0x6256a5={_0x2eb577:0x167},_0x22663f=_0x1b3f7d;this[_0x22663f(_0x6256a5._0x2eb577)](_0x22663f(0x117),[_0x21d430]),this[_0x22663f(0x16b)]();}async[_0x1b3f7d(0x142)](_0x43a6d6,_0x920c84,_0xf2de1a){const _0x3ab3cf={_0xbb69fd:0x167,_0xe46c6b:0x142,_0x248031:0x16b},_0x26d1a7=_0x1b3f7d;this[_0x26d1a7(_0x3ab3cf._0xbb69fd)](_0x26d1a7(_0x3ab3cf._0xe46c6b),[_0x43a6d6,_0x920c84,_0xf2de1a]),this[_0x26d1a7(_0x3ab3cf._0x248031)]();}async[_0x1b3f7d(0x166)](_0x404aff,_0x57a0cb){const _0x149304={_0x3afac9:0x167},_0x1ccd17=_0x1b3f7d;this[_0x1ccd17(_0x149304._0x3afac9)](_0x1ccd17(0x166),[_0x404aff,_0x57a0cb]),this[_0x1ccd17(0x16b)]();}async['clipboardPaste'](_0x6ba27d,_0x37c45a){const _0x41dc7e={_0x54377a:0x10a},_0x139419=_0x1b3f7d;this[_0x139419(0x167)](_0x139419(_0x41dc7e._0x54377a),[_0x6ba27d,_0x37c45a]),this[_0x139419(0x16b)]();}async[_0x1b3f7d(0x149)](_0x197c5b){const _0x5523a6={_0x1dbc20:0x149},_0x2b53d6=_0x1b3f7d;return this['record'](_0x2b53d6(_0x5523a6._0x1dbc20),[_0x197c5b]),this[_0x2b53d6(0x132)][_0x2b53d6(0x14f)]??0x1;}async[_0x1b3f7d(0x158)](_0x5b974b){const _0x44ffbd={_0x472afb:0x132},_0x4da538=_0x1b3f7d;return this[_0x4da538(0x167)](_0x4da538(0x158),[_0x5b974b]),this[_0x4da538(_0x44ffbd._0x472afb)][_0x4da538(0x159)]??'';}async[_0x1b3f7d(0x122)](_0x5be067){const _0x137fae=_0x1b3f7d;return this['record'](_0x137fae(0x122),[_0x5be067]),this[_0x137fae(0x132)]['inputValueByDefault']??'';}async[_0x1b3f7d(0x16d)](_0x3f77a6){const _0x582c44={_0x2bc151:0x167,_0x162256:0x16d},_0x26e0f2=_0x1b3f7d;return this[_0x26e0f2(_0x582c44._0x2bc151)](_0x26e0f2(_0x582c44._0x162256),[_0x3f77a6]),this[_0x26e0f2(0x132)]['checkedStateByDefault']??null;}async[_0x1b3f7d(0x11b)](_0x5c569a){const _0x77731e={_0x2f274e:0x167,_0x1e5dd7:0x11b,_0x78d70f:0x11e},_0x16f2ed=_0x1b3f7d;return this[_0x16f2ed(_0x77731e._0x2f274e)](_0x16f2ed(_0x77731e._0x1e5dd7),[_0x5c569a]),this['behavior'][_0x16f2ed(_0x77731e._0x78d70f)]??!![];}async[_0x1b3f7d(0x154)](_0x2225b6){const _0x355b52={_0x160e82:0x167,_0x3186ff:0x14d},_0x9a0040=_0x1b3f7d;return this[_0x9a0040(_0x355b52._0x160e82)](_0x9a0040(0x154),[_0x2225b6]),this[_0x9a0040(0x132)][_0x9a0040(_0x355b52._0x3186ff)]??![];}async[_0x1b3f7d(0x143)](_0x1fe5f0,_0x5a1416){const _0x51eabe={_0x2a3748:0x132,_0x22f03a:0x16a},_0x50b115=_0x1b3f7d;return this[_0x50b115(0x167)](_0x50b115(0x143),[_0x1fe5f0,_0x5a1416]),this[_0x50b115(_0x51eabe._0x2a3748)][_0x50b115(_0x51eabe._0x22f03a)]?.[_0x5a1416]??null;}async[_0x1b3f7d(0x12d)](_0x952a51,_0x35a60d){const _0xccff37={_0x5efcee:0x167},_0xa48725=_0x1b3f7d;this[_0xa48725(_0xccff37._0x5efcee)](_0xa48725(0x12d),[_0x952a51,_0x35a60d]);}async[_0x1b3f7d(0x127)](_0x2f6278,_0x2536d9){const _0xf6e5f3={_0x112bc5:0x167},_0x11966c=_0x1b3f7d;this[_0x11966c(_0xf6e5f3._0x112bc5)](_0x11966c(0x127),[_0x2f6278,_0x2536d9]);}async[_0x1b3f7d(0x130)](_0x2bffa9,_0x4e51b3){const _0x2c6508={_0x1af70d:0x167,_0x4b89bd:0x130},_0x3fcba5=_0x1b3f7d;this[_0x3fcba5(_0x2c6508._0x1af70d)](_0x3fcba5(_0x2c6508._0x4b89bd),[_0x2bffa9,_0x4e51b3]);}async['waitForNavigation'](_0x159470){const _0x1c99be={_0x25885a:0x167},_0x43f31c=_0x1b3f7d;this[_0x43f31c(_0x1c99be._0x25885a)]('waitForNavigation',[_0x159470]);}async[_0x1b3f7d(0x133)](_0x825e22,_0x137e16){this['record']('waitForLoadState',[_0x825e22,_0x137e16]);}async[_0x1b3f7d(0x162)](_0x4ab11e,_0x1f3f7e){const _0x55a69b={_0xd63d48:0x167,_0x4dffb5:0x162},_0x50c817=_0x1b3f7d;this[_0x50c817(_0x55a69b._0xd63d48)](_0x50c817(_0x55a69b._0x4dffb5),[_0x4ab11e,_0x1f3f7e]),this[_0x50c817(0x137)]=_0x4ab11e;}async[_0x1b3f7d(0x165)](_0x15803d){const _0x4ced96={_0x56a516:0x165},_0x41e401=_0x1b3f7d;this[_0x41e401(0x167)](_0x41e401(_0x4ced96._0x56a516),[_0x15803d]);}async[_0x1b3f7d(0x141)](_0x14b00a){const _0x4d5f5f={_0x2b4ac1:0x167,_0x132d71:0x141},_0x5f8e9=_0x1b3f7d;this[_0x5f8e9(_0x4d5f5f._0x2b4ac1)](_0x5f8e9(_0x4d5f5f._0x132d71),[_0x14b00a]);}async[_0x1b3f7d(0x145)](_0x4ac0a7){const _0x3aff05=_0x1b3f7d;this[_0x3aff05(0x167)](_0x3aff05(0x145),[_0x4ac0a7]);}async['evaluate'](_0x1eb9ee){const _0x54b231={_0x5486ef:0x167},_0x36fbde=_0x1b3f7d;return this[_0x36fbde(_0x54b231._0x5486ef)](_0x36fbde(0x113),[_0x1eb9ee]),void 0x0;}async[_0x1b3f7d(0x152)](_0xf984c7,_0x851dd6){const _0x3ddd79={_0x576485:0x152},_0x455467=_0x1b3f7d;return this['record'](_0x455467(_0x3ddd79._0x576485),[_0xf984c7,_0x851dd6]),void 0x0;}async[_0x1b3f7d(0x177)](_0x3bedee){const _0x24a5e2={_0x4879aa:0x10b,_0x51dc4f:0x11d},_0x3aa927=_0x1b3f7d;this[_0x3aa927(0x167)](_0x3aa927(0x177),[_0x3bedee]);if(_0x3bedee[_0x3aa927(0x119)][_0x3aa927(_0x24a5e2._0x4879aa)]!==0x1||_0x3bedee['steps'][0x0]['kind']!==_0x3aa927(0x11d))return null;const _0x17bb6f=_0x3bedee[_0x3aa927(0x119)][0x0][_0x3aa927(_0x24a5e2._0x51dc4f)],_0xf0163a=this[_0x3aa927(0x132)]['elementHintByRef']?.[_0x17bb6f];return _0xf0163a??null;}async[_0x1b3f7d(0x104)](_0x13f1eb){const _0x3e4a4e={_0x3760e9:0x174},_0x812595=_0x1b3f7d;return this['record'](_0x812595(0x104),[_0x13f1eb]),Buffer[_0x812595(_0x3e4a4e._0x3760e9)](_0x812595(0x125));}async['outerHTML'](_0x2df4d7){const _0x516794={_0x21bc53:0x138,_0xeac98d:0x119,_0x35ef7e:0x119,_0x4093d8:0x11d,_0x33313a:0x115,_0x2006cf:0x15a},_0x4d7826=_0x1b3f7d;this[_0x4d7826(0x167)](_0x4d7826(_0x516794._0x21bc53),[_0x2df4d7]);if(_0x2df4d7[_0x4d7826(_0x516794._0xeac98d)][_0x4d7826(0x10b)]===0x1&&_0x2df4d7[_0x4d7826(_0x516794._0x35ef7e)][0x0][_0x4d7826(0x146)]===_0x4d7826(_0x516794._0x4093d8)){const _0x2734c9=_0x2df4d7['steps'][0x0][_0x4d7826(_0x516794._0x4093d8)];return this[_0x4d7826(0x132)][_0x4d7826(_0x516794._0x33313a)]?.[_0x2734c9]??'<div\x20data-unotest-ref=\x22'+_0x2734c9+'\x22></div>';}return _0x4d7826(_0x516794._0x2006cf);}},FakeContext=class{constructor(_0x1567ba,_0x5e0112,_0x5bfa53){const _0x25cdf0={_0x2dbfd1:0x161,_0xd9a839:0x128,_0x1bf21b:0x118,_0xfdab7c:0x14a},_0x20e768={_0x142b37:0x123},_0x5989d4=_0x1b3f7d;this[_0x5989d4(_0x25cdf0._0x2dbfd1)]=_0x1567ba,this[_0x5989d4(0x132)]=_0x5e0112,this[_0x5989d4(0x140)]=_0x5bfa53;const _0x2a658a=new FakePage(_0x1567ba,_0x5e0112,_0x5bfa53+_0x5989d4(0x14c),_0x5e0112[_0x5989d4(_0x25cdf0._0xd9a839)]??_0x5989d4(0x11f));_0x5e0112[_0x5989d4(0x123)]&&(_0x2a658a[_0x5989d4(_0x25cdf0._0x1bf21b)]=()=>{const _0x29e2b7=_0x5989d4;this['emitFakePopup'](_0x5e0112[_0x29e2b7(_0x20e768._0x142b37)]);}),this['pageList']=[_0x2a658a],this['localStorageState']={..._0x5e0112[_0x5989d4(_0x25cdf0._0xfdab7c)]??{}},this['cookieState']={..._0x5e0112[_0x5989d4(0x13a)]??{}};}[_0x1b3f7d(0x161)];['behavior'];[_0x1b3f7d(0x140)];static{__name(this,_0x1b3f7d(0x13b));}[_0x1b3f7d(0x175)];[_0x1b3f7d(0x10c)]=0x0;[_0x1b3f7d(0x14b)]=[];[_0x1b3f7d(0x147)];[_0x1b3f7d(0x13d)];[_0x1b3f7d(0x173)]=new Set();[_0x1b3f7d(0x167)](_0x4915c0,_0x5c775a){const _0x3ba894={_0x531235:0x161,_0x1367fb:0x120},_0x14ddf3=_0x1b3f7d;this[_0x14ddf3(_0x3ba894._0x531235)][_0x14ddf3(_0x3ba894._0x1367fb)]({'scope':this[_0x14ddf3(0x140)],'method':_0x4915c0,'args':_0x5c775a});}['pages'](){const _0x5d5364={_0x4b57e4:0x175},_0x19fc96=_0x1b3f7d;return this[_0x19fc96(_0x5d5364._0x4b57e4)];}[_0x1b3f7d(0x136)](){const _0x2e9b1c={_0x281377:0x175,_0xfd94ba:0x10c,_0x40e135:0x131},_0xfecd11=_0x1b3f7d,_0x1e1520=this[_0xfecd11(_0x2e9b1c._0x281377)][this[_0xfecd11(_0x2e9b1c._0xfd94ba)]];if(!_0x1e1520)throw new DriverError(_0xfecd11(_0x2e9b1c._0x40e135),{'activeIdx':this['activeIdx']});return _0x1e1520;}[_0x1b3f7d(0x151)](){const _0x4f4b13=_0x1b3f7d;return this[_0x4f4b13(0x132)][_0x4f4b13(0x151)]??[];}[_0x1b3f7d(0x15e)](){const _0x574f7f=_0x1b3f7d;return this[_0x574f7f(0x132)]['networkEntries']??[];}async[_0x1b3f7d(0x126)](_0x3a926d){const _0x2c739a={_0x12f1f3:0x175,_0x24eaf3:0x10b,_0x38b161:0x10c,_0x595cf3:0x14b},_0x421a3e=_0x1b3f7d;this[_0x421a3e(0x167)]('setActivePage',[_0x3a926d]);if(_0x3a926d<0x0||_0x3a926d>=this[_0x421a3e(0x175)][_0x421a3e(0x10b)])throw new DriverError('page\x20index\x20out\x20of\x20range',{'index':_0x3a926d,'available':this[_0x421a3e(_0x2c739a._0x12f1f3)][_0x421a3e(_0x2c739a._0x24eaf3)]});this[_0x421a3e(_0x2c739a._0x38b161)]=_0x3a926d,this[_0x421a3e(_0x2c739a._0x595cf3)]['length']=0x0;}[_0x1b3f7d(0x169)](_0x4b9a7f){const _0x47ca64={_0x179909:0x173},_0x532916=_0x1b3f7d;return subscribe(this[_0x532916(_0x47ca64._0x179909)],_0x4b9a7f);}['emitFakePopup'](_0x4935a4){const _0x3dfb9b={_0x4372a8:0x140,_0x29960f:0x106,_0x3b3926:0x10b,_0x50e9cf:0x161,_0x516597:0x132,_0x2d7ac2:0x173},_0x3fd955=_0x1b3f7d,_0x5d1f7a=this[_0x3fd955(_0x3dfb9b._0x4372a8)]+_0x3fd955(_0x3dfb9b._0x29960f)+this[_0x3fd955(0x175)][_0x3fd955(_0x3dfb9b._0x3b3926)],_0x4a8818=new FakePage(this[_0x3fd955(_0x3dfb9b._0x50e9cf)],this[_0x3fd955(_0x3dfb9b._0x516597)],_0x5d1f7a,_0x4935a4);this['pageList'][_0x3fd955(0x120)](_0x4a8818);const _0x3cd7e=this['pageList'][_0x3fd955(_0x3dfb9b._0x3b3926)]-0x1;for(const _0x4f787a of this[_0x3fd955(_0x3dfb9b._0x2d7ac2)]){try{_0x4f787a({'index':_0x3cd7e,'url':_0x4935a4});}catch{}}return _0x3cd7e;}['closeFakePage'](_0x5171cf){const _0x470923={_0x4b2d21:0x175},_0x2ce678=_0x1b3f7d;if(_0x5171cf<0x0||_0x5171cf>=this['pageList'][_0x2ce678(0x10b)])throw new DriverError('page\x20index\x20out\x20of\x20range',{'index':_0x5171cf,'available':this[_0x2ce678(_0x470923._0x4b2d21)][_0x2ce678(0x10b)]});this[_0x2ce678(0x175)]['splice'](_0x5171cf,0x1);}async[_0x1b3f7d(0x124)](_0x477810){const _0x4b34a7={_0x3f8751:0x167,_0x5071e3:0x124,_0x5b5542:0x119,_0x2de7e4:0x10b,_0x1ee02a:0x163,_0x5a2448:0x120},_0x3af548=_0x1b3f7d;this[_0x3af548(_0x4b34a7._0x3f8751)](_0x3af548(_0x4b34a7._0x5071e3),[_0x477810]);if(!_0x477810[_0x3af548(_0x4b34a7._0x5b5542)][_0x3af548(_0x4b34a7._0x2de7e4)])throw new LocatorError(_0x3af548(_0x4b34a7._0x1ee02a),{'locator':_0x477810});this[_0x3af548(0x14b)][_0x3af548(_0x4b34a7._0x5a2448)](_0x477810);}async[_0x1b3f7d(0x14e)](){const _0x48d625={_0x47c453:0x167,_0x3f570f:0x12e},_0x157a42=_0x1b3f7d;this[_0x157a42(_0x48d625._0x47c453)](_0x157a42(0x14e),[]);if(this['frameStack']['length']===0x0)throw new DriverError(_0x157a42(_0x48d625._0x3f570f),{});this['frameStack'][_0x157a42(0x103)]();}async[_0x1b3f7d(0x139)](_0x2a6907,_0x12a710){const _0xf1e229={_0x388bd6:0x167,_0x2993e:0x139,_0x36f305:0x147},_0x3d3ed6=_0x1b3f7d;this[_0x3d3ed6(_0xf1e229._0x388bd6)](_0x3d3ed6(_0xf1e229._0x2993e),[_0x2a6907,_0x12a710]),this[_0x3d3ed6(_0xf1e229._0x36f305)][_0x2a6907]=_0x12a710;}async['getLocalStorage'](_0x15afe0){const _0x51070e={_0x532734:0x114},_0x346251=_0x1b3f7d;return this[_0x346251(0x167)](_0x346251(_0x51070e._0x532734),[_0x15afe0]),this['localStorageState'][_0x15afe0]??null;}async['setCookie'](_0x5d7234,_0x821fad,_0x32c501){const _0x56978b={_0x1407f5:0x167},_0x5ba1e0=_0x1b3f7d;this[_0x5ba1e0(_0x56978b._0x1407f5)]('setCookie',[_0x5d7234,_0x821fad,_0x32c501]),this[_0x5ba1e0(0x13d)][_0x5d7234]=_0x821fad;}async[_0x1b3f7d(0x116)](_0x589144){const _0x3f8af1={_0x3a415a:0x116},_0x296032=_0x1b3f7d;return this[_0x296032(0x167)](_0x296032(_0x3f8af1._0x3a415a),[_0x589144]),this['cookieState'][_0x589144]??null;}async[_0x1b3f7d(0x164)](_0x38f93b){const _0x453f81=_0x1b3f7d;this[_0x453f81(0x167)](_0x453f81(0x164),[_0x38f93b]);}async[_0x1b3f7d(0x113)](_0x18a1af){const _0x52ea21={_0x4d5baf:0x113},_0x829abd=_0x1b3f7d;return this['record'](_0x829abd(_0x52ea21._0x4d5baf),[_0x18a1af]),void 0x0;}async[_0x1b3f7d(0x172)](){const _0x4379b9={_0x5cc4b6:0x167},_0x1bb5d3=_0x1b3f7d;this[_0x1bb5d3(_0x4379b9._0x5cc4b6)]('close',[]);}[_0x1b3f7d(0x13f)](){const _0x373e6a={_0x472a94:0x14b},_0x236441=_0x1b3f7d;return this[_0x236441(_0x373e6a._0x472a94)][_0x236441(0x10b)];}},FakeWebDriver=class{constructor(_0x1703db={}){this['behavior']=_0x1703db,this['recorder']=createRecorder();}[_0x1b3f7d(0x132)];static{__name(this,_0x1b3f7d(0x121));}[_0x1b3f7d(0x10d)]=![];['recorder'];['contexts']=[];async[_0x1b3f7d(0x108)](_0x1109d8){const _0x335dd7={_0x5b30d0:0x120,_0xcfc371:0x110,_0x185fae:0x10d},_0x3909fb=_0x1b3f7d;this['recorder'][_0x3909fb(_0x335dd7._0x5b30d0)]({'scope':_0x3909fb(_0x335dd7._0xcfc371),'method':_0x3909fb(0x108),'args':[_0x1109d8]}),this[_0x3909fb(_0x335dd7._0x185fae)]=!![];}async[_0x1b3f7d(0x105)](_0x53c2bc){const _0x1a42d5={_0x4142a5:0x110,_0xdecd05:0x105,_0x566af8:0x10d,_0x627ef6:0x161,_0x388b88:0x132,_0x52c417:0x111,_0x387844:0x15c,_0x174bd5:0x120},_0x26cdcf=_0x1b3f7d;this['recorder'][_0x26cdcf(0x120)]({'scope':_0x26cdcf(_0x1a42d5._0x4142a5),'method':_0x26cdcf(_0x1a42d5._0xdecd05),'args':[_0x53c2bc]});if(!this[_0x26cdcf(_0x1a42d5._0x566af8)])throw new DriverError(_0x26cdcf(0x168),{});const _0x1541f5=new FakeContext(this[_0x26cdcf(_0x1a42d5._0x627ef6)],this[_0x26cdcf(_0x1a42d5._0x388b88)],_0x26cdcf(_0x1a42d5._0x52c417)+this[_0x26cdcf(_0x1a42d5._0x387844)]['length']);return this[_0x26cdcf(0x15c)][_0x26cdcf(_0x1a42d5._0x174bd5)](_0x1541f5),_0x1541f5;}async[_0x1b3f7d(0x172)](){const _0x18d675={_0x110c56:0x161,_0x2bd052:0x120,_0x4d5835:0x110},_0x51705b=_0x1b3f7d;this[_0x51705b(_0x18d675._0x110c56)][_0x51705b(_0x18d675._0x2bd052)]({'scope':_0x51705b(_0x18d675._0x4d5835),'method':'close','args':[]}),this[_0x51705b(0x10d)]=![];}[_0x1b3f7d(0x15d)](){return void 0x0;}async[_0x1b3f7d(0x134)](){const _0x372a21=_0x1b3f7d;throw new DriverError(_0x372a21(0x135),{});}[_0x1b3f7d(0x10f)](){throw new DriverError('attachExisting\x20not\x20supported\x20by\x20FakeWebDriver',{});}[_0x1b3f7d(0x150)](){const _0x2e2d93={_0x52af54:0x150},_0x457ca1=_0x1b3f7d;return this[_0x457ca1(0x161)][_0x457ca1(_0x2e2d93._0x52af54)]();}[_0x1b3f7d(0x160)](_0x280cc2){const _0x332514={_0x3ffee3:0x150,_0x48c573:0x10e},_0x1fbbb9=_0x1b3f7d;return this[_0x1fbbb9(0x161)][_0x1fbbb9(_0x332514._0x3ffee3)]()[_0x1fbbb9(_0x332514._0x48c573)](_0x56a850=>_0x56a850[_0x1fbbb9(0x12c)]===_0x280cc2);}};export{FakeWebDriver};
@@ -1,5 +1,5 @@
1
- import { i as LocatorValue, W as WebDriver, D as DriverContext, d as DriverPage } from '../interfaces-BaVF0jV-.js';
2
- export { j as LocatorStep, k as appendStep, l as describeLocator, m as isLocatorValue, r as rootedAt } from '../interfaces-BaVF0jV-.js';
1
+ import { i as LocatorValue, W as WebDriver, D as DriverContext, d as DriverPage } from '../interfaces-elRn0llQ.js';
2
+ export { j as LocatorStep, k as appendStep, l as describeLocator, m as isLocatorValue, r as rootedAt } from '../interfaces-elRn0llQ.js';
3
3
  import { Matcher, RegexLiteral } from '@unotest/protocol';
4
4
  import { ExecutionWalker, ExecutionEvent, RunResult, RunOptions } from '@unotest/dsl/executor';
5
5
  export { ExecutionError, ExecutionEvent, RunOptions, RunResult } from '@unotest/dsl/executor';