@unotest/web 0.16.0 → 0.17.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/.claude/skills/write-e2e-test/SKILL.md +1 -1
- package/.claude/skills/write-e2e-test-ground/SKILL.md +1 -1
- package/CHANGELOG.md +28 -75
- package/dist/config/schema.d.ts +9 -9
- package/dist/config/schema.js +1 -1
- package/dist/driver/index.js +1 -1
- package/dist/dsl/index.js +1 -1
- package/dist/dsl/web-dsl-language-service.js +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/runner/cli.js +1 -1
- package/dist/runner/init/chrome-probe.js +1 -1
- package/dist/runner/init.js +1 -1
- package/dist/runner/install-chromium.js +1 -1
- package/dist/runner/prepare-fix.js +1 -1
- package/dist/runner/scaffold-workspace.js +1 -1
- package/dist/runner/serve-fixture.js +1 -1
- package/dist/runner/web-runner-adapter.js +1 -1
- package/guides/dsl-reference.md +20 -1
- package/package.json +7 -7
- package/src/mcp/prompts/agent-test-author.md +3 -1
|
@@ -431,7 +431,7 @@ Escape hatch:
|
|
|
431
431
|
- `evaluate(\`js body\`, …args)` — raw backticks, no `${}`. Linter
|
|
432
432
|
warns `lint:evaluate-discouraged`. Use only when nothing above fits.
|
|
433
433
|
|
|
434
|
-
Time helpers: `nowMs()`, `today()`, `daysFromNow(n)`. Marker helper: `randomWord(len)` — random lowercase letters, digit-free.
|
|
434
|
+
Time helpers: `nowMs()`, `today()`, `daysFromNow(n)`. Marker helper: `randomWord(len)` — random lowercase letters, digit-free. Debug helper: `json(value)` — serialize any value for an assert message: `assertTrue(res.status == 202, json(res.body))`.
|
|
435
435
|
|
|
436
436
|
## Helpers convention
|
|
437
437
|
|
|
@@ -562,7 +562,7 @@ Escape hatch:
|
|
|
562
562
|
- `evaluate(\`js body\`, …args)` — raw backticks, no `${}`. Linter
|
|
563
563
|
warns `lint:evaluate-discouraged`. Use only when nothing above fits.
|
|
564
564
|
|
|
565
|
-
Time helpers: `nowMs()`, `today()`, `daysFromNow(n)`. Marker helper: `randomWord(len)` — random lowercase letters, digit-free.
|
|
565
|
+
Time helpers: `nowMs()`, `today()`, `daysFromNow(n)`. Marker helper: `randomWord(len)` — random lowercase letters, digit-free. Debug helper: `json(value)` — serialize any value for an assert message: `assertTrue(res.status == 202, json(res.body))`.
|
|
566
566
|
|
|
567
567
|
## Helpers convention
|
|
568
568
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.17.0] - 2026-08-20
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 0306eb1: Upload/API-step DX, driven by 0.16.0 consumer feedback (a multipart
|
|
8
|
+
upload authored as `apiCall(m, p, {file: …})` failed only as a remote
|
|
9
|
+
400, with nothing local pointing at `upload()`):
|
|
10
|
+
|
|
11
|
+
- New DSL function `json(value)` — serialize any value to a JSON string
|
|
12
|
+
for readable assert messages:
|
|
13
|
+
`assertTrue(res.status == 202, json(res.body))`. Objects concatenated
|
|
14
|
+
with `+` collapse into `[object Object]`; this is the readable form.
|
|
15
|
+
- New linter rule `lint:api-call-file-body` (warning) — an `apiCall`
|
|
16
|
+
body object with a `file` key is sent as plain JSON, no file
|
|
17
|
+
attached; the diagnostic shows the `upload(...)` shape to use.
|
|
18
|
+
Deliberate JSON fields named `file` are kept with
|
|
19
|
+
`// lint-ok: <reason>`.
|
|
20
|
+
- The CLI `e2e` command now runs the same pre-run lint as the MCP
|
|
21
|
+
`run_test` tool and prints diagnostics before the run (advisory —
|
|
22
|
+
the run still proceeds). Previously authoring mistakes the linter
|
|
23
|
+
knows about surfaced only through `unotest-web lint`.
|
|
24
|
+
- Reaching for a JS global in a scenario (`JSON.stringify`, `Date`)
|
|
25
|
+
now answers with the DSL alternative (`json(value)`, `nowMs()`)
|
|
26
|
+
instead of the misleading `add it to unotest/.env` error.
|
|
27
|
+
- The generated `unotest.config.mjs` template documents the `sandbox`
|
|
28
|
+
section (`apiBaseUrl`, `uploadDir`, `database`) — `uploadDir` was
|
|
29
|
+
referenced by the guides but absent from the template.
|
|
30
|
+
|
|
3
31
|
## [0.16.0] - 2026-08-19
|
|
4
32
|
|
|
5
33
|
### Minor Changes
|
|
@@ -78,15 +106,6 @@
|
|
|
78
106
|
hook — or a name that is genuinely just misspelled — keeps the old message
|
|
79
107
|
unchanged.
|
|
80
108
|
|
|
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
|
-
|
|
90
109
|
## [0.15.0] - 2026-08-17
|
|
91
110
|
|
|
92
111
|
### Minor Changes
|
|
@@ -120,14 +139,6 @@
|
|
|
120
139
|
`external variable "CATALOG_SEED" not found`. The workaround was to delete
|
|
121
140
|
`unotest/.env` by hand — on the runner, and for anyone who forked the examples.
|
|
122
141
|
|
|
123
|
-
- Updated dependencies [d2161a9]
|
|
124
|
-
- Updated dependencies [32692b4]
|
|
125
|
-
- @unotest/viewer@0.15.0
|
|
126
|
-
- @unotest/core@0.15.0
|
|
127
|
-
- @unotest/dsl@0.15.0
|
|
128
|
-
- @unotest/grounder-client@0.15.0
|
|
129
|
-
- @unotest/protocol@0.15.0
|
|
130
|
-
|
|
131
142
|
## [0.14.0] - 2026-08-16
|
|
132
143
|
|
|
133
144
|
### Minor Changes
|
|
@@ -192,15 +203,6 @@
|
|
|
192
203
|
one step that runs AFTER obfuscation — now exercises all four against a
|
|
193
204
|
real page.
|
|
194
205
|
|
|
195
|
-
- Updated dependencies [0255f2d]
|
|
196
|
-
- Updated dependencies [da5badd]
|
|
197
|
-
- Updated dependencies [da5badd]
|
|
198
|
-
- @unotest/dsl@0.14.0
|
|
199
|
-
- @unotest/viewer@0.14.0
|
|
200
|
-
- @unotest/core@0.14.0
|
|
201
|
-
- @unotest/grounder-client@0.14.0
|
|
202
|
-
- @unotest/protocol@0.14.0
|
|
203
|
-
|
|
204
206
|
## [0.13.1] - 2026-08-15
|
|
205
207
|
|
|
206
208
|
### Patch Changes
|
|
@@ -247,14 +249,6 @@
|
|
|
247
249
|
build its locator from the top document, so inside a frame it waited on
|
|
248
250
|
text the frame content could never satisfy. Found by the dogfood suite
|
|
249
251
|
(nested-iframes scenario).
|
|
250
|
-
- Updated dependencies [39ca34f]
|
|
251
|
-
- Updated dependencies [a4f0a62]
|
|
252
|
-
- Updated dependencies [8d70df6]
|
|
253
|
-
- @unotest/dsl@0.13.0
|
|
254
|
-
- @unotest/core@0.13.0
|
|
255
|
-
- @unotest/viewer@0.13.0
|
|
256
|
-
- @unotest/grounder-client@0.13.0
|
|
257
|
-
- @unotest/protocol@0.13.0
|
|
258
252
|
|
|
259
253
|
All notable changes to `@unotest/web` are documented in this file.
|
|
260
254
|
|
|
@@ -325,18 +319,6 @@ unotest/.env.dev (no such file)`). Tool descriptions for `run_test` /
|
|
|
325
319
|
instead of silently cascading into "Unknown function" at every call
|
|
326
320
|
site. The viewer logs the same condition (patch).
|
|
327
321
|
|
|
328
|
-
### Patch Changes
|
|
329
|
-
|
|
330
|
-
- Updated dependencies [40300d3]
|
|
331
|
-
- Updated dependencies [479aa25]
|
|
332
|
-
- Updated dependencies [5dd59af]
|
|
333
|
-
- Updated dependencies [7069d24]
|
|
334
|
-
- @unotest/dsl@0.12.0
|
|
335
|
-
- @unotest/viewer@0.12.0
|
|
336
|
-
- @unotest/core@0.12.0
|
|
337
|
-
- @unotest/grounder-client@0.12.0
|
|
338
|
-
- @unotest/protocol@0.12.0
|
|
339
|
-
|
|
340
322
|
## [0.11.0] - 2026-08-13
|
|
341
323
|
|
|
342
324
|
### Minor Changes
|
|
@@ -445,20 +427,6 @@ unotest/.env.dev (no such file)`). Tool descriptions for `run_test` /
|
|
|
445
427
|
"the network went quiet" instead of on visible app state is the flaky
|
|
446
428
|
pattern the linter rejects.
|
|
447
429
|
|
|
448
|
-
- Updated dependencies [eb568a6]
|
|
449
|
-
- Updated dependencies [a195713]
|
|
450
|
-
- Updated dependencies [ce25926]
|
|
451
|
-
- Updated dependencies [5a8e92b]
|
|
452
|
-
- Updated dependencies [d0ae620]
|
|
453
|
-
- Updated dependencies [2a68997]
|
|
454
|
-
- Updated dependencies [c01b72f]
|
|
455
|
-
- Updated dependencies [dea90e9]
|
|
456
|
-
- @unotest/core@0.11.0
|
|
457
|
-
- @unotest/protocol@0.11.0
|
|
458
|
-
- @unotest/viewer@0.11.0
|
|
459
|
-
- @unotest/dsl@0.11.0
|
|
460
|
-
- @unotest/grounder-client@0.11.0
|
|
461
|
-
|
|
462
430
|
## [0.10.0] - 2026-08-06
|
|
463
431
|
|
|
464
432
|
### Minor Changes
|
|
@@ -598,21 +566,6 @@ unotest/.env.dev (no such file)`). Tool descriptions for `run_test` /
|
|
|
598
566
|
recipe: a single `{kind:"intent"}` step, the `ref` from `find_element`,
|
|
599
567
|
or the ready-made `locator` object from `ground_element` — hand-assembled
|
|
600
568
|
`getByRole`/`css` locators are rejected in recording mode.
|
|
601
|
-
- Updated dependencies [7324966]
|
|
602
|
-
- Updated dependencies [7ed750c]
|
|
603
|
-
- Updated dependencies [b5b9710]
|
|
604
|
-
- Updated dependencies [574841f]
|
|
605
|
-
- Updated dependencies [65eb77c]
|
|
606
|
-
- Updated dependencies [f106cf8]
|
|
607
|
-
- Updated dependencies [856f087]
|
|
608
|
-
- Updated dependencies [78f850f]
|
|
609
|
-
- Updated dependencies [1bd55ba]
|
|
610
|
-
- Updated dependencies [337a31c]
|
|
611
|
-
- @unotest/grounder-client@0.10.0
|
|
612
|
-
- @unotest/dsl@0.10.0
|
|
613
|
-
- @unotest/protocol@0.10.0
|
|
614
|
-
- @unotest/core@0.10.0
|
|
615
|
-
- @unotest/viewer@0.10.0
|
|
616
569
|
|
|
617
570
|
## [0.9.2] - 2026-06-16
|
|
618
571
|
|
package/dist/config/schema.d.ts
CHANGED
|
@@ -90,19 +90,19 @@ declare const FailureBundleConfigSchema: z.ZodObject<{
|
|
|
90
90
|
type FailureBundleConfig = z.infer<typeof FailureBundleConfigSchema>;
|
|
91
91
|
declare const DialogPolicySchema: z.ZodEnum<["accept", "dismiss", "manual"]>;
|
|
92
92
|
type DialogPolicy = z.infer<typeof DialogPolicySchema>;
|
|
93
|
-
declare const LinterRuleIdSchema: z.ZodEnum<["lint:deep-css", "lint:xpath", "lint:obfuscated-class", "lint:pause-explicit", "lint:disambig-by-index", "lint:evaluate-discouraged", "lint:scenario-in-root", "lint:mustache-in-dsl", "lint:goto-concat", "lint:regex-invalid", "lint:echo-assert", "lint:lint-ok-missing-reason", "validator:unknown-function", "validator:arity", "validator:arg-kind", "validator:step-coverage", "validator:step-shape", "validator:meta-shape", "validator:function-shape", "validator:for-shape", "validator:if-shape", "validator:var-shape", "validator:unsupported-statement", "validator:unsupported-expression", "validator:string-concat", "validator:semantic-loss", "validator:list-arg", "validator:wrapped-format"]>;
|
|
93
|
+
declare const LinterRuleIdSchema: z.ZodEnum<["lint:deep-css", "lint:xpath", "lint:obfuscated-class", "lint:pause-explicit", "lint:disambig-by-index", "lint:evaluate-discouraged", "lint:scenario-in-root", "lint:mustache-in-dsl", "lint:goto-concat", "lint:regex-invalid", "lint:echo-assert", "lint:api-call-file-body", "lint:lint-ok-missing-reason", "validator:unknown-function", "validator:arity", "validator:arg-kind", "validator:step-coverage", "validator:step-shape", "validator:meta-shape", "validator:function-shape", "validator:for-shape", "validator:if-shape", "validator:var-shape", "validator:unsupported-statement", "validator:unsupported-expression", "validator:string-concat", "validator:semantic-loss", "validator:list-arg", "validator:wrapped-format"]>;
|
|
94
94
|
type LinterRuleId = z.infer<typeof LinterRuleIdSchema>;
|
|
95
95
|
declare const LinterSeveritySchema: z.ZodEnum<["off", "warn", "error"]>;
|
|
96
96
|
type LinterSeverity = z.infer<typeof LinterSeveritySchema>;
|
|
97
97
|
declare const LinterConfigSchema: z.ZodObject<{
|
|
98
98
|
enabled: z.ZodBoolean;
|
|
99
|
-
rules: z.ZodRecord<z.ZodEnum<["lint:deep-css", "lint:xpath", "lint:obfuscated-class", "lint:pause-explicit", "lint:disambig-by-index", "lint:evaluate-discouraged", "lint:scenario-in-root", "lint:mustache-in-dsl", "lint:goto-concat", "lint:regex-invalid", "lint:echo-assert", "lint:lint-ok-missing-reason", "validator:unknown-function", "validator:arity", "validator:arg-kind", "validator:step-coverage", "validator:step-shape", "validator:meta-shape", "validator:function-shape", "validator:for-shape", "validator:if-shape", "validator:var-shape", "validator:unsupported-statement", "validator:unsupported-expression", "validator:string-concat", "validator:semantic-loss", "validator:list-arg", "validator:wrapped-format"]>, z.ZodEnum<["off", "warn", "error"]>>;
|
|
99
|
+
rules: z.ZodRecord<z.ZodEnum<["lint:deep-css", "lint:xpath", "lint:obfuscated-class", "lint:pause-explicit", "lint:disambig-by-index", "lint:evaluate-discouraged", "lint:scenario-in-root", "lint:mustache-in-dsl", "lint:goto-concat", "lint:regex-invalid", "lint:echo-assert", "lint:api-call-file-body", "lint:lint-ok-missing-reason", "validator:unknown-function", "validator:arity", "validator:arg-kind", "validator:step-coverage", "validator:step-shape", "validator:meta-shape", "validator:function-shape", "validator:for-shape", "validator:if-shape", "validator:var-shape", "validator:unsupported-statement", "validator:unsupported-expression", "validator:string-concat", "validator:semantic-loss", "validator:list-arg", "validator:wrapped-format"]>, z.ZodEnum<["off", "warn", "error"]>>;
|
|
100
100
|
}, "strip", z.ZodTypeAny, {
|
|
101
101
|
enabled: boolean;
|
|
102
|
-
rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:lint-ok-missing-reason" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:unsupported-statement" | "validator:unsupported-expression" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format", "off" | "warn" | "error">>;
|
|
102
|
+
rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:unsupported-statement" | "validator:unsupported-expression" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format", "off" | "warn" | "error">>;
|
|
103
103
|
}, {
|
|
104
104
|
enabled: boolean;
|
|
105
|
-
rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:lint-ok-missing-reason" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:unsupported-statement" | "validator:unsupported-expression" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format", "off" | "warn" | "error">>;
|
|
105
|
+
rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:unsupported-statement" | "validator:unsupported-expression" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format", "off" | "warn" | "error">>;
|
|
106
106
|
}>;
|
|
107
107
|
type LinterConfig = z.infer<typeof LinterConfigSchema>;
|
|
108
108
|
declare const McpConfigSchema: z.ZodObject<{
|
|
@@ -312,13 +312,13 @@ declare const UnotestConfigSchema: z.ZodObject<{
|
|
|
312
312
|
defaultNavigationTimeoutMs: z.ZodNumber;
|
|
313
313
|
linter: z.ZodObject<{
|
|
314
314
|
enabled: z.ZodBoolean;
|
|
315
|
-
rules: z.ZodRecord<z.ZodEnum<["lint:deep-css", "lint:xpath", "lint:obfuscated-class", "lint:pause-explicit", "lint:disambig-by-index", "lint:evaluate-discouraged", "lint:scenario-in-root", "lint:mustache-in-dsl", "lint:goto-concat", "lint:regex-invalid", "lint:echo-assert", "lint:lint-ok-missing-reason", "validator:unknown-function", "validator:arity", "validator:arg-kind", "validator:step-coverage", "validator:step-shape", "validator:meta-shape", "validator:function-shape", "validator:for-shape", "validator:if-shape", "validator:var-shape", "validator:unsupported-statement", "validator:unsupported-expression", "validator:string-concat", "validator:semantic-loss", "validator:list-arg", "validator:wrapped-format"]>, z.ZodEnum<["off", "warn", "error"]>>;
|
|
315
|
+
rules: z.ZodRecord<z.ZodEnum<["lint:deep-css", "lint:xpath", "lint:obfuscated-class", "lint:pause-explicit", "lint:disambig-by-index", "lint:evaluate-discouraged", "lint:scenario-in-root", "lint:mustache-in-dsl", "lint:goto-concat", "lint:regex-invalid", "lint:echo-assert", "lint:api-call-file-body", "lint:lint-ok-missing-reason", "validator:unknown-function", "validator:arity", "validator:arg-kind", "validator:step-coverage", "validator:step-shape", "validator:meta-shape", "validator:function-shape", "validator:for-shape", "validator:if-shape", "validator:var-shape", "validator:unsupported-statement", "validator:unsupported-expression", "validator:string-concat", "validator:semantic-loss", "validator:list-arg", "validator:wrapped-format"]>, z.ZodEnum<["off", "warn", "error"]>>;
|
|
316
316
|
}, "strip", z.ZodTypeAny, {
|
|
317
317
|
enabled: boolean;
|
|
318
|
-
rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:lint-ok-missing-reason" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:unsupported-statement" | "validator:unsupported-expression" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format", "off" | "warn" | "error">>;
|
|
318
|
+
rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:unsupported-statement" | "validator:unsupported-expression" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format", "off" | "warn" | "error">>;
|
|
319
319
|
}, {
|
|
320
320
|
enabled: boolean;
|
|
321
|
-
rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:lint-ok-missing-reason" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:unsupported-statement" | "validator:unsupported-expression" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format", "off" | "warn" | "error">>;
|
|
321
|
+
rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:unsupported-statement" | "validator:unsupported-expression" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format", "off" | "warn" | "error">>;
|
|
322
322
|
}>;
|
|
323
323
|
mcp: z.ZodObject<{
|
|
324
324
|
transport: z.ZodLiteral<"stdio">;
|
|
@@ -398,7 +398,7 @@ declare const UnotestConfigSchema: z.ZodObject<{
|
|
|
398
398
|
defaultNavigationTimeoutMs: number;
|
|
399
399
|
linter: {
|
|
400
400
|
enabled: boolean;
|
|
401
|
-
rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:lint-ok-missing-reason" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:unsupported-statement" | "validator:unsupported-expression" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format", "off" | "warn" | "error">>;
|
|
401
|
+
rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:unsupported-statement" | "validator:unsupported-expression" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format", "off" | "warn" | "error">>;
|
|
402
402
|
};
|
|
403
403
|
mcp: {
|
|
404
404
|
transport: "stdio";
|
|
@@ -450,7 +450,7 @@ declare const UnotestConfigSchema: z.ZodObject<{
|
|
|
450
450
|
defaultNavigationTimeoutMs: number;
|
|
451
451
|
linter: {
|
|
452
452
|
enabled: boolean;
|
|
453
|
-
rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:lint-ok-missing-reason" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:unsupported-statement" | "validator:unsupported-expression" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format", "off" | "warn" | "error">>;
|
|
453
|
+
rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:unsupported-statement" | "validator:unsupported-expression" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format", "off" | "warn" | "error">>;
|
|
454
454
|
};
|
|
455
455
|
mcp: {
|
|
456
456
|
transport: "stdio";
|
package/dist/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var _0x2052e0=_0x1715;(function(_0x1b4eb8,_0x39d252){var _0x46022c={_0x3f8f66:0x204,_0x478011:0x1fa,_0x444cea:0x1f4,_0x2b0078:0x1fd},_0x206d9f=_0x1715,_0x1ff9af=_0x1b4eb8();while(!![]){try{var _0x33e783=-parseInt(_0x206d9f(0x1cc))/0x1+parseInt(_0x206d9f(_0x46022c._0x3f8f66))/0x2*(-parseInt(_0x206d9f(0x1ce))/0x3)+-parseInt(_0x206d9f(0x1eb))/0x4+-parseInt(_0x206d9f(_0x46022c._0x478011))/0x5+parseInt(_0x206d9f(0x1d1))/0x6*(parseInt(_0x206d9f(0x1dd))/0x7)+parseInt(_0x206d9f(_0x46022c._0x444cea))/0x8+parseInt(_0x206d9f(_0x46022c._0x2b0078))/0x9;if(_0x33e783===_0x39d252)break;else _0x1ff9af['push'](_0x1ff9af['shift']());}catch(_0x3a65ea){_0x1ff9af['push'](_0x1ff9af['shift']());}}}(_0x262b,0xd8442));import{z}from'zod';var BrowserSchema=z['enum']([_0x2052e0(0x1d9),_0x2052e0(0x1ca),_0x2052e0(0x1d6)]),BrowserChannelSchema=z['union']([z['literal']('chrome'),z['literal'](_0x2052e0(0x205)),z[_0x2052e0(0x1f6)](_0x2052e0(0x1f0)),z['null']()])['optional'](),ViewportSchema=z['object']({'width':z[_0x2052e0(0x1e9)]()[_0x2052e0(0x1e8)]()[_0x2052e0(0x1d2)](),'height':z[_0x2052e0(0x1e9)]()['int']()['positive']()}),RetryReasonSchema=z['enum']([_0x2052e0(0x1ed),_0x2052e0(0x1f1),_0x2052e0(0x1e2)]),RetryConfigSchema=z['object']({'count':z[_0x2052e0(0x1e9)]()[_0x2052e0(0x1e8)]()[_0x2052e0(0x1e7)](0x0)[_0x2052e0(0x200)](0xa),'on':z['array'](RetryReasonSchema)}),FailureBundleConfigSchema=z[_0x2052e0(0x1c8)]({'tier1':z['literal'](!![])[_0x2052e0(0x1fe)](!![]),'tier2':z['boolean'](),'tier3':z[_0x2052e0(0x1c8)]({'network':z[_0x2052e0(0x1d4)](),'video':z['boolean']()}),'retention':z[_0x2052e0(0x1c8)]({'runs':z[_0x2052e0(0x1e9)]()[_0x2052e0(0x1e8)]()[_0x2052e0(0x1d2)](),'days':z[_0x2052e0(0x1e9)]()[_0x2052e0(0x1e8)]()[_0x2052e0(0x1d2)]()}),'storageDir':z[_0x2052e0(0x1ec)]()[_0x2052e0(0x1e7)](0x1)}),DialogPolicySchema=z[_0x2052e0(0x1da)]([_0x2052e0(0x1fc),_0x2052e0(0x1fb),'manual']),LinterRuleIdSchema=z[_0x2052e0(0x1da)]([_0x2052e0(0x1d3),_0x2052e0(0x1ea),_0x2052e0(0x1f5),_0x2052e0(0x1de),'lint:disambig-by-index',_0x2052e0(0x202),_0x2052e0(0x1dc),_0x2052e0(0x1ff),'lint:goto-concat',_0x2052e0(0x1ef),_0x2052e0(0x1e6),'lint:api-call-file-body','lint:lint-ok-missing-reason',_0x2052e0(0x203),_0x2052e0(0x1cd),_0x2052e0(0x1e0),_0x2052e0(0x1e1),_0x2052e0(0x1e3),_0x2052e0(0x1e5),_0x2052e0(0x1f3),_0x2052e0(0x1f8),_0x2052e0(0x1c6),_0x2052e0(0x1cf),_0x2052e0(0x1f9),_0x2052e0(0x1df),_0x2052e0(0x1e4),_0x2052e0(0x1d5),_0x2052e0(0x1db),_0x2052e0(0x1c9)]),LinterSeveritySchema=z['enum']([_0x2052e0(0x1d7),'warn',_0x2052e0(0x1d0)]),LinterConfigSchema=z['object']({'enabled':z[_0x2052e0(0x1d4)](),'rules':z['record'](LinterRuleIdSchema,LinterSeveritySchema)}),McpConfigSchema=z['object']({'transport':z[_0x2052e0(0x1f6)](_0x2052e0(0x1f7))}),SandboxConfigSchema=z[_0x2052e0(0x1c8)]({'shellCwd':z['string']()[_0x2052e0(0x1c7)](),'shellTimeoutMs':z[_0x2052e0(0x1e9)]()[_0x2052e0(0x1e8)]()[_0x2052e0(0x1d2)]()[_0x2052e0(0x1c7)](),'exportSecrets':z['array'](z[_0x2052e0(0x1ec)]())[_0x2052e0(0x1c7)](),'database':z['string']()[_0x2052e0(0x1c7)](),'apiBaseUrl':z['string']()[_0x2052e0(0x1d8)]()[_0x2052e0(0x1c7)](),'uploadDir':z[_0x2052e0(0x1ec)]()['optional']()}),WebServerConfigSchema=z[_0x2052e0(0x1c8)]({'command':z[_0x2052e0(0x1ec)]()[_0x2052e0(0x1e7)](0x1),'url':z['string']()[_0x2052e0(0x1d8)](),'reuseExistingServer':z['boolean']()[_0x2052e0(0x1fe)](!![]),'timeoutMs':z[_0x2052e0(0x1e9)]()[_0x2052e0(0x1e8)]()[_0x2052e0(0x1d2)]()[_0x2052e0(0x1fe)](0xea60)}),UnotestConfigSchema=z[_0x2052e0(0x1c8)]({'baseUrl':z[_0x2052e0(0x1ec)]()['url']()[_0x2052e0(0x1c7)](),'webServer':WebServerConfigSchema['optional'](),'browsers':z[_0x2052e0(0x201)](BrowserSchema)['min'](0x1),'channel':BrowserChannelSchema,'viewport':ViewportSchema,'retry':RetryConfigSchema,'failureBundle':FailureBundleConfigSchema,'dialogPolicy':DialogPolicySchema,'storageState':z[_0x2052e0(0x1ec)]()[_0x2052e0(0x1c7)](),'testDir':z['string']()[_0x2052e0(0x1e7)](0x1),'helpersDir':z['string']()[_0x2052e0(0x1e7)](0x1),'defaultTimeoutMs':z[_0x2052e0(0x1e9)]()['int']()[_0x2052e0(0x1d2)](),'defaultNavigationTimeoutMs':z[_0x2052e0(0x1e9)]()['int']()[_0x2052e0(0x1d2)](),'linter':LinterConfigSchema,'mcp':McpConfigSchema,'sandbox':SandboxConfigSchema}),DEFAULT_CONFIG={'browsers':[_0x2052e0(0x1d9)],'viewport':{'width':0x500,'height':0x2d0},'retry':{'count':0x0,'on':['transient']},'failureBundle':{'tier1':!![],'tier2':!![],'tier3':{'network':![],'video':![]},'retention':{'runs':0x14,'days':0x7},'storageDir':_0x2052e0(0x1f2)},'dialogPolicy':_0x2052e0(0x1fc),'testDir':_0x2052e0(0x1cb),'helpersDir':_0x2052e0(0x1c5),'defaultTimeoutMs':0xbb8,'defaultNavigationTimeoutMs':0x7530,'linter':{'enabled':!![],'rules':{'lint:deep-css':_0x2052e0(0x1ee),'lint:xpath':'warn','lint:obfuscated-class':_0x2052e0(0x1ee),'lint:pause-explicit':_0x2052e0(0x1ee),'lint:disambig-by-index':_0x2052e0(0x1d7),'lint:evaluate-discouraged':_0x2052e0(0x1ee),'lint:scenario-in-root':_0x2052e0(0x1d0),'lint:mustache-in-dsl':_0x2052e0(0x1d0),'lint:goto-concat':_0x2052e0(0x1ee),'lint:regex-invalid':'error','lint:echo-assert':_0x2052e0(0x1ee),'lint:lint-ok-missing-reason':_0x2052e0(0x1ee),'validator:unknown-function':_0x2052e0(0x1d0)}},'mcp':{'transport':_0x2052e0(0x1f7)},'sandbox':{}};function _0x1715(_0x593def,_0x37b950){_0x593def=_0x593def-0x1c5;var _0x262b96=_0x262b();var _0x1715af=_0x262b96[_0x593def];if(_0x1715['lLVLre']===undefined){var _0x30a692=function(_0x5354b5){var _0x323d53='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x534531='',_0x284bb5='';for(var _0x2a8b8e=0x0,_0x1149f0,_0x66e7a,_0x44c211=0x0;_0x66e7a=_0x5354b5['charAt'](_0x44c211++);~_0x66e7a&&(_0x1149f0=_0x2a8b8e%0x4?_0x1149f0*0x40+_0x66e7a:_0x66e7a,_0x2a8b8e++%0x4)?_0x534531+=String['fromCharCode'](0xff&_0x1149f0>>(-0x2*_0x2a8b8e&0x6)):0x0){_0x66e7a=_0x323d53['indexOf'](_0x66e7a);}for(var _0x4d2463=0x0,_0x91063c=_0x534531['length'];_0x4d2463<_0x91063c;_0x4d2463++){_0x284bb5+='%'+('00'+_0x534531['charCodeAt'](_0x4d2463)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x284bb5);};_0x1715['jZfduB']=_0x30a692,_0x1715['nLaBVY']={},_0x1715['lLVLre']=!![];}var _0x57b3de=_0x262b96[0x0],_0x1b3020=_0x593def+_0x57b3de,_0x494e7f=_0x1715['nLaBVY'][_0x1b3020];return!_0x494e7f?(_0x1715af=_0x1715['jZfduB'](_0x1715af),_0x1715['nLaBVY'][_0x1b3020]=_0x1715af):_0x1715af=_0x494e7f,_0x1715af;}export{BrowserChannelSchema,BrowserSchema,DEFAULT_CONFIG,DialogPolicySchema,FailureBundleConfigSchema,LinterConfigSchema,LinterRuleIdSchema,LinterSeveritySchema,McpConfigSchema,RetryConfigSchema,RetryReasonSchema,SandboxConfigSchema,UnotestConfigSchema,ViewportSchema,WebServerConfigSchema};function _0x262b(){var _0x134d3a=['BNvTyMvY','BgLUDdP4Cgf0Aa','nduXodm1nNfkA3jMra','C3rYAw5N','DhjHBNnPzw50','D2fYBG','BgLUDdPYzwDLEc1PBNzHBgLK','y2HYB21LlwjLDge','BMv0D29YAW','lNvUB3rLC3qVzMfPBhvYzxm','DMfSAwrHDg9YoMz1BMn0Aw9UlxnOyxbL','odC1ntuWnejZt0j3zG','BgLUDdPVyMz1C2nHDgvKlwnSyxnZ','BgL0zxjHBa','C3rKAw8','DMfSAwrHDg9YoMzVCI1ZAgfWzq','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlxn0yxrLBwvUDa','odC4ntm1mhLiweHwyG','zgLZBwLZCW','ywnJzxb0','mJeYndG2ndbSDvvvugq','zgvMyxvSDa','BgLUDdPTDxn0ywnOzs1PBI1KC2W','Bwf4','yxjYyxK','BgLUDdPLDMfSDwf0zs1KAxnJB3vYywDLza','DMfSAwrHDg9YoNvUA25VD24TzNvUy3rPB24','mtKXmte2BezbAunJ','BxnLzgDL','Dw5VDgvZDc9LmMuVx2HLBhbLCNm','DMfSAwrHDg9YoMLMlxnOyxbL','B3b0Aw9UywW','B2jQzwn0','DMfSAwrHDg9YoNDYyxbWzwqTzM9YBwf0','zMLYzwzVEa','Dw5VDgvZDc9LmMu','mJC0nZaWuLbOsK5Z','DMfSAwrHDg9YoMfYAxr5','nM1YuwXPCq','DMfSAwrHDg9YoNzHCI1ZAgfWzq','zxjYB3i','nJC5oev1z0LOva','Cg9ZAxrPDMu','BgLUDdPKzwvWlwnZCW','yM9VBgvHBG','DMfSAwrHDg9YoNnLBwfUDgLJlwXVC3m','D2vIA2L0','B2zM','DxjS','y2HYB21PDw0','zw51Bq','DMfSAwrHDg9YoMXPC3qTyxjN','BgLUDdPZy2vUyxjPBY1PBI1YB290','ndGZn051ugT6Ca','BgLUDdPWyxvZzs1LEhbSAwnPDa','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlwv4ChjLC3nPB24','DMfSAwrHDg9YoMfYzY1RAw5K','DMfSAwrHDg9YoNn0zxaTy292zxjHz2u','y3jHC2G','DMfSAwrHDg9YoNn0zxaTC2HHCgu','DMfSAwrHDg9YoNn0CMLUzY1JB25Jyxq','DMfSAwrHDg9YoM1LDgeTC2HHCgu','BgLUDdPLy2HVlwfZC2vYDa','BwLU','Aw50'];_0x262b=function(){return _0x134d3a;};return _0x262b();}
|
package/dist/driver/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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
|
+
const _0x2744d9=_0x2fd3;(function(_0x4f30cd,_0x57fa0e){const _0x35341a={_0x162357:0x143,_0x1260df:0x128,_0x2ce412:0x160,_0x1753b0:0x14c,_0x507c20:0x10d},_0x157ce7=_0x2fd3,_0x22ed87=_0x4f30cd();while(!![]){try{const _0x55603d=parseInt(_0x157ce7(_0x35341a._0x162357))/0x1*(-parseInt(_0x157ce7(0x165))/0x2)+-parseInt(_0x157ce7(_0x35341a._0x1260df))/0x3*(parseInt(_0x157ce7(_0x35341a._0x2ce412))/0x4)+-parseInt(_0x157ce7(_0x35341a._0x1753b0))/0x5*(-parseInt(_0x157ce7(0x115))/0x6)+-parseInt(_0x157ce7(_0x35341a._0x507c20))/0x7+-parseInt(_0x157ce7(0x118))/0x8+parseInt(_0x157ce7(0x109))/0x9+parseInt(_0x157ce7(0x125))/0xa;if(_0x55603d===_0x57fa0e)break;else _0x22ed87['push'](_0x22ed87['shift']());}catch(_0x1ad6e5){_0x22ed87['push'](_0x22ed87['shift']());}}}(_0x32ef,0x5da95));var __defProp=Object[_0x2744d9(0x107)],__name=(_0x22bfc2,_0x236a12)=>__defProp(_0x22bfc2,_0x2744d9(0x134),{'value':_0x236a12,'configurable':!![]});function subscribe(_0xa0461c,_0x3b47dc){return _0xa0461c['add'](_0x3b47dc),()=>{_0xa0461c['delete'](_0x3b47dc);};}__name(subscribe,_0x2744d9(0x106));import{UnotestError}from'@unotest/core';var DriverError=class extends UnotestError{static{__name(this,_0x2744d9(0xfc));}},LocatorError=class extends UnotestError{static{__name(this,'LocatorError');}};function _0x2fd3(_0x3b88e9,_0x551163){_0x3b88e9=_0x3b88e9-0xf5;const _0x32ef4c=_0x32ef();let _0x2fd313=_0x32ef4c[_0x3b88e9];if(_0x2fd3['Hmavpk']===undefined){var _0x30098e=function(_0x31b4c8){const _0x5daf38='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x22bfc2='',_0x236a12='';for(let _0xa0461c=0x0,_0x3b47dc,_0x4ea2de,_0x50df5f=0x0;_0x4ea2de=_0x31b4c8['charAt'](_0x50df5f++);~_0x4ea2de&&(_0x3b47dc=_0xa0461c%0x4?_0x3b47dc*0x40+_0x4ea2de:_0x4ea2de,_0xa0461c++%0x4)?_0x22bfc2+=String['fromCharCode'](0xff&_0x3b47dc>>(-0x2*_0xa0461c&0x6)):0x0){_0x4ea2de=_0x5daf38['indexOf'](_0x4ea2de);}for(let _0x245578=0x0,_0x406471=_0x22bfc2['length'];_0x245578<_0x406471;_0x245578++){_0x236a12+='%'+('00'+_0x22bfc2['charCodeAt'](_0x245578)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x236a12);};_0x2fd3['WGwyZP']=_0x30098e,_0x2fd3['UgNFac']={},_0x2fd3['Hmavpk']=!![];}const _0x56420=_0x32ef4c[0x0],_0x211c26=_0x3b88e9+_0x56420,_0x32399f=_0x2fd3['UgNFac'][_0x211c26];return!_0x32399f?(_0x2fd313=_0x2fd3['WGwyZP'](_0x2fd313),_0x2fd3['UgNFac'][_0x211c26]=_0x2fd313):_0x2fd313=_0x32399f,_0x2fd313;}function createRecorder(){const _0x5dd118=_0x2744d9,_0x4ea2de=[];let _0x50df5f=0x0;return{'push':__name(_0x245578=>_0x4ea2de['push']({..._0x245578,'seq':_0x50df5f++}),'push'),'calls':__name(()=>_0x4ea2de,_0x5dd118(0x159))};}__name(createRecorder,'createRecorder');var FakePage=class{constructor(_0x406471,_0xa97cc2,_0x549614,_0x5e605b){const _0xbcfaa6={_0x493182:0x121},_0x40f148=_0x2744d9;this[_0x40f148(0x123)]=_0x406471,this[_0x40f148(_0xbcfaa6._0x493182)]=_0xa97cc2,this['scope']=_0x549614,this[_0x40f148(0x10f)]=_0x5e605b;}['recorder'];[_0x2744d9(0x121)];[_0x2744d9(0x16f)];static{__name(this,_0x2744d9(0xf6));}['currentUrl'];[_0x2744d9(0x137)];[_0x2744d9(0x12c)](_0x25cf5a,_0x3572a6){const _0x2417e0={_0x1f0d9e:0xf7},_0x539e65=_0x2744d9;this['recorder'][_0x539e65(_0x2417e0._0x1f0d9e)]({'scope':this[_0x539e65(0x16f)],'method':_0x25cf5a,'args':_0x3572a6});}[_0x2744d9(0x140)](){const _0x2c3556={_0x4303c2:0x117,_0x52ec0a:0x117},_0x92e4bd=_0x2744d9;if(this[_0x92e4bd(0x121)][_0x92e4bd(0x117)]){const _0x29dd18=this[_0x92e4bd(0x121)][_0x92e4bd(_0x2c3556._0x4303c2)];this[_0x92e4bd(0x121)][_0x92e4bd(_0x2c3556._0x52ec0a)]=void 0x0;throw _0x29dd18;}}[_0x2744d9(0x10b)](){const _0xe0c41a=_0x2744d9;return this[_0xe0c41a(0x10f)];}async['title'](){const _0x405251={_0x303a7a:0x119},_0x29023d=_0x2744d9;return this['record']('title',[]),_0x29023d(_0x405251._0x303a7a);}async['click'](_0x10808b,_0x601c72){const _0x44ca71={_0x5e3025:0x12c,_0x5b5f86:0xfd,_0x58757a:0x137},_0x58180a=_0x2744d9;this[_0x58180a(_0x44ca71._0x5e3025)](_0x58180a(_0x44ca71._0x5b5f86),[_0x10808b,_0x601c72]),this[_0x58180a(0x140)](),this[_0x58180a(_0x44ca71._0x58757a)]?.();}async[_0x2744d9(0x108)](_0x1c6715,_0x3549e0){const _0x1f2ef2={_0x377bed:0x12c,_0x1bfb3a:0x108},_0x40c14f=_0x2744d9;this[_0x40c14f(_0x1f2ef2._0x377bed)](_0x40c14f(_0x1f2ef2._0x1bfb3a),[_0x1c6715,_0x3549e0]),this[_0x40c14f(0x140)]();}async['fill'](_0x5690dc,_0x68d980,_0x273caa){const _0x4e2bf5={_0x4b1a8d:0x12c,_0x278037:0x136},_0x295102=_0x2744d9;this[_0x295102(_0x4e2bf5._0x4b1a8d)](_0x295102(_0x4e2bf5._0x278037),[_0x5690dc,_0x68d980,_0x273caa]),this[_0x295102(0x140)]();}async['press'](_0x5ca742,_0x1044e0,_0x458270){const _0x44d179=_0x2744d9;this['record'](_0x44d179(0x12b),[_0x5ca742,_0x1044e0,_0x458270]),this[_0x44d179(0x140)]();}async[_0x2744d9(0x13f)](_0x3c0055,_0x2f9508){const _0x35d8d5={_0x2b552b:0x13f,_0x4b70ab:0x140},_0x4ee69a=_0x2744d9;this[_0x4ee69a(0x12c)](_0x4ee69a(_0x35d8d5._0x2b552b),[_0x3c0055,_0x2f9508]),this[_0x4ee69a(_0x35d8d5._0x4b70ab)]();}async[_0x2744d9(0x133)](_0xf2f7d1,_0x4e8248){const _0x32c81e={_0x3bc508:0x12c,_0x38b4aa:0x133},_0x5dd047=_0x2744d9;this[_0x5dd047(_0x32c81e._0x3bc508)](_0x5dd047(_0x32c81e._0x38b4aa),[_0xf2f7d1,_0x4e8248]),this[_0x5dd047(0x140)]();}async[_0x2744d9(0xfa)](_0x2062a4,_0x377342,_0x3a699f){const _0x45e84b={_0x20518a:0x12c},_0x566e68=_0x2744d9;this[_0x566e68(_0x45e84b._0x20518a)]('selectOption',[_0x2062a4,_0x377342,_0x3a699f]),this[_0x566e68(0x140)]();}async['hover'](_0x7d5f30,_0x3d7b2b){const _0x6e690a=_0x2744d9;this['record']('hover',[_0x7d5f30,_0x3d7b2b]),this[_0x6e690a(0x140)]();}async[_0x2744d9(0x151)](_0x26cd0c){const _0x4e83a7=_0x2744d9;this[_0x4e83a7(0x12c)]('scrollIntoView',[_0x26cd0c]),this['maybeThrow']();}async[_0x2744d9(0x148)](_0x1313b4,_0x59d359,_0x438e76){const _0xed5c71={_0x185b11:0x148},_0x2f9f14=_0x2744d9;this[_0x2f9f14(0x12c)](_0x2f9f14(_0xed5c71._0x185b11),[_0x1313b4,_0x59d359,_0x438e76]),this['maybeThrow']();}async['uploadFile'](_0x26856d,_0xca32c1){const _0xe78ab4={_0x32590b:0x12c,_0x2139c6:0x12f},_0x3a05e1=_0x2744d9;this[_0x3a05e1(_0xe78ab4._0x32590b)](_0x3a05e1(_0xe78ab4._0x2139c6),[_0x26856d,_0xca32c1]),this['maybeThrow']();}async[_0x2744d9(0x141)](_0x16cb80,_0x2e5cd2){const _0x26e76e={_0x52a1f0:0x12c},_0x36fa14=_0x2744d9;this[_0x36fa14(_0x26e76e._0x52a1f0)]('clipboardPaste',[_0x16cb80,_0x2e5cd2]),this[_0x36fa14(0x140)]();}async[_0x2744d9(0x11c)](_0x22915e){const _0x50a661={_0xf3c61f:0x121,_0x1dcd41:0x166},_0x2ea1bd=_0x2744d9;return this['record'](_0x2ea1bd(0x11c),[_0x22915e]),this[_0x2ea1bd(_0x50a661._0xf3c61f)][_0x2ea1bd(_0x50a661._0x1dcd41)]??0x1;}async['textContent'](_0x4ea5dd){const _0x26efa9={_0x5dfbdb:0x135},_0x4e43ee=_0x2744d9;return this[_0x4e43ee(0x12c)](_0x4e43ee(0x100),[_0x4ea5dd]),this['behavior'][_0x4e43ee(_0x26efa9._0x5dfbdb)]??'';}async['inputValue'](_0x50cc56){const _0x15d9ee={_0x3f74c0:0x167},_0x1d4aed=_0x2744d9;return this['record'](_0x1d4aed(_0x15d9ee._0x3f74c0),[_0x50cc56]),this[_0x1d4aed(0x121)][_0x1d4aed(0x130)]??'';}async[_0x2744d9(0x142)](_0x58ffc8){const _0x33cc9f={_0x37b926:0x142},_0x36de92=_0x2744d9;return this['record'](_0x36de92(_0x33cc9f._0x37b926),[_0x58ffc8]),this['behavior'][_0x36de92(0x139)]??null;}async[_0x2744d9(0x105)](_0x1b5bed){const _0x719927={_0x3d43ca:0x105,_0x10b377:0x121},_0xbdeb82=_0x2744d9;return this['record'](_0xbdeb82(_0x719927._0x3d43ca),[_0x1b5bed]),this[_0xbdeb82(_0x719927._0x10b377)][_0xbdeb82(0xf5)]??!![];}async[_0x2744d9(0x131)](_0x350b40){const _0x12779c={_0x21fff9:0x12c,_0x4fca11:0x11f},_0x2957d8=_0x2744d9;return this[_0x2957d8(_0x12779c._0x21fff9)](_0x2957d8(0x131),[_0x350b40]),this[_0x2957d8(0x121)][_0x2957d8(_0x12779c._0x4fca11)]??![];}async[_0x2744d9(0x155)](_0x2d80aa,_0xe489bd){const _0x4aa72b={_0x4a3f75:0x138},_0x586afd=_0x2744d9;return this['record']('getAttribute',[_0x2d80aa,_0xe489bd]),this['behavior'][_0x586afd(_0x4aa72b._0x4a3f75)]?.[_0xe489bd]??null;}async['waitFor'](_0x36447d,_0x35cb37){const _0x5d9120=_0x2744d9;this[_0x5d9120(0x12c)]('waitFor',[_0x36447d,_0x35cb37]);}async[_0x2744d9(0x103)](_0x231691,_0x17b83c){const _0x1f596e={_0x1d897a:0x103},_0x4ccc90=_0x2744d9;this[_0x4ccc90(0x12c)](_0x4ccc90(_0x1f596e._0x1d897a),[_0x231691,_0x17b83c]);}async[_0x2744d9(0x12d)](_0x2ca592,_0x2fcbb0){const _0xc8b07d={_0x31f8b4:0x12c,_0x3d8f98:0x12d},_0x43cd71=_0x2744d9;this[_0x43cd71(_0xc8b07d._0x31f8b4)](_0x43cd71(_0xc8b07d._0x3d8f98),[_0x2ca592,_0x2fcbb0]);}async[_0x2744d9(0xff)](_0x3bc807){const _0x1a9447=_0x2744d9;this[_0x1a9447(0x12c)](_0x1a9447(0xff),[_0x3bc807]);}async[_0x2744d9(0x101)](_0x3a6416,_0x13a39a){const _0x3c47b6=_0x2744d9;this[_0x3c47b6(0x12c)](_0x3c47b6(0x101),[_0x3a6416,_0x13a39a]);}async[_0x2744d9(0x150)](_0x419d89,_0x44d519){const _0x1f5e72={_0x1aa88e:0x150},_0x39ee47=_0x2744d9;this[_0x39ee47(0x12c)](_0x39ee47(_0x1f5e72._0x1aa88e),[_0x419d89,_0x44d519]),this['currentUrl']=_0x419d89;}async['reload'](_0x4f3f4b){const _0x14f936=_0x2744d9;this[_0x14f936(0x12c)](_0x14f936(0x113),[_0x4f3f4b]);}async['goBack'](_0x1b02cb){const _0x4c187c={_0x4a908e:0x10a},_0x1e28ca=_0x2744d9;this[_0x1e28ca(0x12c)](_0x1e28ca(_0x4c187c._0x4a908e),[_0x1b02cb]);}async[_0x2744d9(0x146)](_0x537aa8){const _0x2c5560=_0x2744d9;this[_0x2c5560(0x12c)]('goForward',[_0x537aa8]);}async[_0x2744d9(0x124)](_0x4ae6dd){const _0x82051b={_0x3dc10a:0x12c},_0x1573fe=_0x2744d9;return this[_0x1573fe(_0x82051b._0x3dc10a)](_0x1573fe(0x124),[_0x4ae6dd]),void 0x0;}async[_0x2744d9(0x147)](_0x160d35,_0x28f83b){const _0x5d6c66=_0x2744d9;return this[_0x5d6c66(0x12c)](_0x5d6c66(0x147),[_0x160d35,_0x28f83b]),void 0x0;}async['inspectElement'](_0x4c8f38){const _0x30d94b={_0x23dcfc:0xfe,_0x2b2148:0xf9,_0x29554f:0x121,_0x8c7867:0x13b},_0x3db668=_0x2744d9;this[_0x3db668(0x12c)](_0x3db668(0xf8),[_0x4c8f38]);if(_0x4c8f38[_0x3db668(_0x30d94b._0x23dcfc)]['length']!==0x1||_0x4c8f38[_0x3db668(0xfe)][0x0]['kind']!==_0x3db668(0xf9))return null;const _0x4c4626=_0x4c8f38['steps'][0x0][_0x3db668(_0x30d94b._0x2b2148)],_0x1c9d9f=this[_0x3db668(_0x30d94b._0x29554f)][_0x3db668(_0x30d94b._0x8c7867)]?.[_0x4c4626];return _0x1c9d9f??null;}async['screenshot'](_0x18a5e0){const _0x511be0={_0x2ce0fd:0x12c},_0xb6a034=_0x2744d9;return this[_0xb6a034(_0x511be0._0x2ce0fd)]('screenshot',[_0x18a5e0]),Buffer[_0xb6a034(0x162)](_0xb6a034(0x112));}async[_0x2744d9(0x169)](_0x157ddb){const _0xdb3b53={_0x57b55a:0x114,_0x41f39d:0xfe,_0xe49c7:0x15d,_0x3894be:0x126,_0x2df2da:0x15b},_0x160bc5=_0x2744d9;this['record']('outerHTML',[_0x157ddb]);if(_0x157ddb[_0x160bc5(0xfe)][_0x160bc5(0x163)]===0x1&&_0x157ddb[_0x160bc5(0xfe)][0x0][_0x160bc5(_0xdb3b53._0x57b55a)]===_0x160bc5(0xf9)){const _0x130628=_0x157ddb[_0x160bc5(_0xdb3b53._0x41f39d)][0x0][_0x160bc5(0xf9)];return this[_0x160bc5(0x121)][_0x160bc5(_0xdb3b53._0xe49c7)]?.[_0x130628]??_0x160bc5(0x16d)+_0x130628+_0x160bc5(_0xdb3b53._0x3894be);}return _0x160bc5(_0xdb3b53._0x2df2da);}},FakeContext=class{constructor(_0x188664,_0x3b39f5,_0x159076){const _0x224515={_0x30a986:0x16b},_0x6f811e={_0x23b8e4:0xfb},_0x17575a=_0x2744d9;this['recorder']=_0x188664,this[_0x17575a(0x121)]=_0x3b39f5,this['scope']=_0x159076;const _0x5cd04b=new FakePage(_0x188664,_0x3b39f5,_0x159076+'.page0',_0x3b39f5[_0x17575a(_0x224515._0x30a986)]??_0x17575a(0x122));_0x3b39f5['popupOnClick']&&(_0x5cd04b['onAfterClick']=()=>{const _0x2201fe=_0x17575a;this[_0x2201fe(0x127)](_0x3b39f5[_0x2201fe(_0x6f811e._0x23b8e4)]);}),this[_0x17575a(0x15c)]=[_0x5cd04b],this[_0x17575a(0x158)]={..._0x3b39f5[_0x17575a(0x12e)]??{}},this[_0x17575a(0x11b)]={..._0x3b39f5[_0x17575a(0x164)]??{}};}[_0x2744d9(0x123)];[_0x2744d9(0x121)];[_0x2744d9(0x16f)];static{__name(this,_0x2744d9(0x161));}[_0x2744d9(0x15c)];[_0x2744d9(0x110)]=0x0;[_0x2744d9(0x13c)]=[];[_0x2744d9(0x158)];[_0x2744d9(0x11b)];['newPageListeners']=new Set();['record'](_0x398101,_0x54bdff){const _0x151061={_0x294384:0xf7},_0x2bd661=_0x2744d9;this[_0x2bd661(0x123)][_0x2bd661(_0x151061._0x294384)]({'scope':this['scope'],'method':_0x398101,'args':_0x54bdff});}[_0x2744d9(0x129)](){const _0x2f2346=_0x2744d9;return this[_0x2f2346(0x15c)];}[_0x2744d9(0x145)](){const _0x1ae790={_0x59df2e:0x10e},_0x1240df=_0x2744d9,_0x1a5044=this['pageList'][this[_0x1240df(0x110)]];if(!_0x1a5044)throw new DriverError(_0x1240df(_0x1ae790._0x59df2e),{'activeIdx':this['activeIdx']});return _0x1a5044;}[_0x2744d9(0x11a)](){const _0x413117={_0x4c1c0e:0x11a},_0x2a0f2a=_0x2744d9;return this['behavior'][_0x2a0f2a(_0x413117._0x4c1c0e)]??[];}[_0x2744d9(0x116)](){const _0x197c8f={_0x375f17:0x116},_0x199bc3=_0x2744d9;return this['behavior'][_0x199bc3(_0x197c8f._0x375f17)]??[];}async['setActivePage'](_0x5585b4){const _0x156dc8={_0x4d8575:0x163},_0x105643=_0x2744d9;this[_0x105643(0x12c)]('setActivePage',[_0x5585b4]);if(_0x5585b4<0x0||_0x5585b4>=this[_0x105643(0x15c)][_0x105643(0x163)])throw new DriverError('page\x20index\x20out\x20of\x20range',{'index':_0x5585b4,'available':this['pageList'][_0x105643(_0x156dc8._0x4d8575)]});this[_0x105643(0x110)]=_0x5585b4,this[_0x105643(0x13c)]['length']=0x0;}[_0x2744d9(0x14e)](_0x536378){const _0x3ef4ab={_0x3549ad:0x156},_0x136cc9=_0x2744d9;return subscribe(this[_0x136cc9(_0x3ef4ab._0x3549ad)],_0x536378);}[_0x2744d9(0x127)](_0x3f5946){const _0x53f61b={_0x1cb35b:0x16f,_0x3e2e73:0x15c,_0x23eb57:0x121,_0x5c12b9:0x156},_0x1bfc9d=_0x2744d9,_0x1b8212=this[_0x1bfc9d(_0x53f61b._0x1cb35b)]+_0x1bfc9d(0x132)+this[_0x1bfc9d(_0x53f61b._0x3e2e73)][_0x1bfc9d(0x163)],_0xf77111=new FakePage(this[_0x1bfc9d(0x123)],this[_0x1bfc9d(_0x53f61b._0x23eb57)],_0x1b8212,_0x3f5946);this[_0x1bfc9d(0x15c)][_0x1bfc9d(0xf7)](_0xf77111);const _0x21edf9=this['pageList']['length']-0x1;for(const _0x4db783 of this[_0x1bfc9d(_0x53f61b._0x5c12b9)]){try{_0x4db783({'index':_0x21edf9,'url':_0x3f5946});}catch{}}return _0x21edf9;}[_0x2744d9(0x13d)](_0x45bd76){const _0x3e8ba6={_0x53c357:0x163,_0x52aeee:0x15c,_0x3e60ee:0x14d},_0x4f3e19=_0x2744d9;if(_0x45bd76<0x0||_0x45bd76>=this[_0x4f3e19(0x15c)][_0x4f3e19(_0x3e8ba6._0x53c357)])throw new DriverError('page\x20index\x20out\x20of\x20range',{'index':_0x45bd76,'available':this['pageList']['length']});this[_0x4f3e19(_0x3e8ba6._0x52aeee)][_0x4f3e19(_0x3e8ba6._0x3e60ee)](_0x45bd76,0x1);}async[_0x2744d9(0x11e)](_0x39758c){const _0x5bcaa5={_0x24de1c:0xfe,_0x380cb1:0x163},_0xc26018=_0x2744d9;this['record'](_0xc26018(0x11e),[_0x39758c]);if(!_0x39758c[_0xc26018(_0x5bcaa5._0x24de1c)][_0xc26018(_0x5bcaa5._0x380cb1)])throw new LocatorError(_0xc26018(0x120),{'locator':_0x39758c});this[_0xc26018(0x13c)][_0xc26018(0xf7)](_0x39758c);}async[_0x2744d9(0x154)](){const _0x3b518b={_0x5628a1:0x12c,_0x3e7197:0x13c,_0x566d69:0x163},_0x59c2cf=_0x2744d9;this[_0x59c2cf(_0x3b518b._0x5628a1)]('exitFrame',[]);if(this[_0x59c2cf(_0x3b518b._0x3e7197)][_0x59c2cf(_0x3b518b._0x566d69)]===0x0)throw new DriverError(_0x59c2cf(0x149),{});this[_0x59c2cf(0x13c)]['pop']();}async['setLocalStorage'](_0x6916b1,_0x402c2a){const _0x2d1acf={_0x3e19f0:0x12c,_0x95ab15:0x158},_0x43b6ca=_0x2744d9;this[_0x43b6ca(_0x2d1acf._0x3e19f0)]('setLocalStorage',[_0x6916b1,_0x402c2a]),this[_0x43b6ca(_0x2d1acf._0x95ab15)][_0x6916b1]=_0x402c2a;}async[_0x2744d9(0x10c)](_0x36eb97){const _0xc2a0da={_0x5a0b6a:0x12c},_0x23a3c9=_0x2744d9;return this[_0x23a3c9(_0xc2a0da._0x5a0b6a)](_0x23a3c9(0x10c),[_0x36eb97]),this[_0x23a3c9(0x158)][_0x36eb97]??null;}async[_0x2744d9(0x102)](_0xf84c33,_0x42b4d1,_0xf5a4fa){this['record']('setCookie',[_0xf84c33,_0x42b4d1,_0xf5a4fa]),this['cookieState'][_0xf84c33]=_0x42b4d1;}async[_0x2744d9(0x144)](_0x26b696){const _0x431f69={_0x2ca6ad:0x11b},_0xe6d61c=_0x2744d9;return this['record']('getCookie',[_0x26b696]),this[_0xe6d61c(_0x431f69._0x2ca6ad)][_0x26b696]??null;}async['saveStorageState'](_0x4dabb8){const _0x30d2f0={_0x15b1c9:0x157},_0x40438c=_0x2744d9;this['record'](_0x40438c(_0x30d2f0._0x15b1c9),[_0x4dabb8]);}async[_0x2744d9(0x124)](_0x3fc5ec){const _0x1cb4ee={_0x209f41:0x12c},_0xd3b58d=_0x2744d9;return this[_0xd3b58d(_0x1cb4ee._0x209f41)]('evaluate',[_0x3fc5ec]),void 0x0;}async['close'](){const _0x4fe5bc={_0x499098:0x12c,_0x121da2:0x16a},_0xa50dff=_0x2744d9;this[_0xa50dff(_0x4fe5bc._0x499098)](_0xa50dff(_0x4fe5bc._0x121da2),[]);}[_0x2744d9(0x14b)](){const _0x10ce59=_0x2744d9;return this[_0x10ce59(0x13c)]['length'];}},FakeWebDriver=class{constructor(_0x1940fc={}){const _0x430d10={_0x198b2c:0x121,_0x46805e:0x123},_0x43a9da=_0x2744d9;this[_0x43a9da(_0x430d10._0x198b2c)]=_0x1940fc,this[_0x43a9da(_0x430d10._0x46805e)]=createRecorder();}[_0x2744d9(0x121)];static{__name(this,_0x2744d9(0x16e));}[_0x2744d9(0x11d)]=![];[_0x2744d9(0x123)];[_0x2744d9(0x14f)]=[];async[_0x2744d9(0x15e)](_0x360794){const _0x16f928={_0x2daba5:0x15e,_0x2791ad:0x11d},_0x551ff2=_0x2744d9;this[_0x551ff2(0x123)]['push']({'scope':_0x551ff2(0x15f),'method':_0x551ff2(_0x16f928._0x2daba5),'args':[_0x360794]}),this[_0x551ff2(_0x16f928._0x2791ad)]=!![];}async[_0x2744d9(0x168)](_0x367b53){const _0x21b55d={_0x454f5c:0x123,_0x46d6c2:0xf7,_0x23ae84:0x123,_0xbb3741:0x14f},_0xf3c93c=_0x2744d9;this[_0xf3c93c(_0x21b55d._0x454f5c)][_0xf3c93c(_0x21b55d._0x46d6c2)]({'scope':_0xf3c93c(0x15f),'method':_0xf3c93c(0x168),'args':[_0x367b53]});if(!this[_0xf3c93c(0x11d)])throw new DriverError(_0xf3c93c(0x14a),{});const _0x33aa78=new FakeContext(this[_0xf3c93c(_0x21b55d._0x23ae84)],this['behavior'],_0xf3c93c(0x153)+this[_0xf3c93c(0x14f)][_0xf3c93c(0x163)]);return this[_0xf3c93c(_0x21b55d._0xbb3741)][_0xf3c93c(_0x21b55d._0x46d6c2)](_0x33aa78),_0x33aa78;}async['close'](){const _0x856c46={_0x1bf2ef:0x16a,_0x29b5dc:0x11d},_0x2a9264=_0x2744d9;this['recorder']['push']({'scope':_0x2a9264(0x15f),'method':_0x2a9264(_0x856c46._0x1bf2ef),'args':[]}),this[_0x2a9264(_0x856c46._0x29b5dc)]=![];}[_0x2744d9(0x15a)](){return void 0x0;}async[_0x2744d9(0x152)](){const _0xb45271={_0x12b557:0x111},_0x449f72=_0x2744d9;throw new DriverError(_0x449f72(_0xb45271._0x12b557),{});}[_0x2744d9(0x12a)](){const _0x324596={_0x3f674b:0x16c},_0x5a2d97=_0x2744d9;throw new DriverError(_0x5a2d97(_0x324596._0x3f674b),{});}[_0x2744d9(0x159)](){const _0x130a54={_0x10dbfa:0x123},_0x4e5cac=_0x2744d9;return this[_0x4e5cac(_0x130a54._0x10dbfa)]['calls']();}[_0x2744d9(0x13e)](_0x25f68){const _0x1c02ec=_0x2744d9;return this['recorder'][_0x1c02ec(0x159)]()[_0x1c02ec(0x13a)](_0x3e28e3=>_0x3e28e3[_0x1c02ec(0x104)]===_0x25f68);}};function _0x32ef(){const _0x16e0bc=['BMv3q29UDgv4Da','B3v0zxjive1m','y2XVC2u','Aw5PDgLHBfvYBa','yxr0ywnOrxHPC3rPBMCGBM90ihn1ChbVCNrLzcbIEsbgywTLv2vIrhjPDMvY','pgrPDIbKyxrHlxvUB3rLC3qTCMvMpsi','rMfRzvDLyKrYAxzLCG','C2nVCgu','AxnwAxnPyMXLqNLezwzHDwX0','rMfRzvbHz2u','ChvZAa','Aw5ZCgvJDevSzw1LBNq','CMvM','C2vSzwn0t3b0Aw9U','Cg9WDxbpBKnSAwnR','rhjPDMvYrxjYB3i','y2XPy2S','C3rLChm','D2fPDezVCK5HDMLNyxrPB24','Dgv4DenVBNrLBNq','D2fPDezVCKXVywrtDgf0zq','C2v0q29VA2LL','D2fPDezVCLvYBa','Bwv0Ag9K','AxnwAxnPyMXL','C3vIC2nYAwjL','zgvMAw5LuhjVCgvYDhK','zg91yMXLq2XPy2S','nta0nJK2nMfIzeL5DG','z29cywnR','DxjS','z2v0tg9JywXtDg9YywDL','mte2ndq5mMDpqvzHrq','BM8Gywn0AxzLihbHz2uGAw4Gy29UDgv4Da','y3vYCMvUDfvYBa','ywn0AxzLswr4','y29UBMvJDfnOyxjLzcbUB3qGC3vWCg9YDgvKigj5iezHA2vxzwjeCML2zxi','zMfRzs1WBMC','CMvSB2fK','A2LUza','nta2mdr4zNDoEhO','BMv0D29YA0vUDhjPzxm','zxjYB3jpBK5LEhrby3rPB24','nJa4ndbZELvZt2u','zMfRzsb0AxrSzq','y29UC29SzuvUDhjPzxm','y29VA2LLu3rHDgu','y291BNq','Bgf1BMnOzwq','zw50zxjgCMfTzq','AxneAxnHyMXLzej5rgvMyxvSDa','zw50zxjgCMfTzsbJywXSzwqGD2L0AcbLBxb0EsbSB2nHDg9Y','yMvOyxzPB3i','ywjVDxq6yMXHBMS','CMvJB3jKzxi','zxzHBhvHDgu','odCWnJGWmfvArNfvsq','iJ48l2rPDJ4','zw1PDezHA2vqB3b1Ca','odf4wLfws0i','CgfNzxm','yxr0ywnOrxHPC3rPBMC','ChjLC3m','CMvJB3jK','D2fPDezVCLrLEhq','Bg9JywXtDg9YywDL','DxbSB2fKrMLSzq','Aw5WDxrwywX1zuj5rgvMyxvSDa','AxneAxnHyMXLza','lNbHz2u','Dw5JAgvJAW','BMfTzq','Dgv4DenVBNrLBNrcEurLzMf1Bhq','zMLSBa','B25bzNrLCKnSAwnR','yxr0CMLIDxrLC0j5rgvMyxvSDa','y2HLy2TLzfn0yxrLqNLezwzHDwX0','zMLSDgvY','zwXLBwvUDeHPBNrcEvjLzG','zNjHBwvtDgfJAW','y2XVC2vgywTLugfNzq','y2fSBhngB3i','y2HLy2S','Bwf5yMvuAhjVDW','y2XPCgjVyxjKugfZDgu','y2HLy2TLzfn0yxrL','nJC4EvLlB3fe','z2v0q29VA2LL','ywn0AxzLugfNzq','z29gB3j3yxjK','zxzHBhvHDgvpBKXVy2f0B3i','zhjHz0fUzerYB3a','zxHPDezYyw1LignHBgXLzcb3AxrOig5VigzYyw1Lig9UihrOzsbZDgfJAW','BMv3q29UDgv4DcbJywXSzwqGyMvMB3jLigXHDw5JAcGP','zNjHBwvezxb0Aa','mte1Afjbyvjy','C3bSAwnL','B25ozxDqywDL','y29UDgv4Dhm','z290BW','C2nYB2XSsw50B1zPzxC','y29UBMvJDfnOyxjLza','y3r4','zxHPDezYyw1L','z2v0qxr0CMLIDxrL','BMv3ugfNzuXPC3rLBMvYCW','C2f2zvn0B3jHz2vtDgf0zq','Bg9JywXtDg9YywDLu3rHDgu','y2fSBhm','D3nfBMrWB2LUDa','pgrPDJ48l2rPDJ4','CgfNzuXPC3q','B3v0zxjiDg1SqNLszwy','Bgf1BMnO','zhjPDMvY','nJe4nZjzu2HcAxO','rMfRzunVBNrLEhq','zNjVBq','BgvUz3rO','y29VA2LLCW','mtKXoeXQzvzfqG','y291BNrcEurLzMf1Bhq','Aw5WDxrwywX1zq'];_0x32ef=function(){return _0x16e0bc;};return _0x32ef();}export{FakeWebDriver};
|