@evomap/evolver-proxy 2.0.49 → 2.0.50
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/dist/daemon/backgroundCuration.d.ts +2 -1
- package/dist/daemon/backgroundCuration.js +4 -1
- package/dist/daemon/distillMeasures.d.ts +59 -0
- package/dist/daemon/distillMeasures.js +139 -0
- package/dist/daemon/localRecall.d.ts +6 -1
- package/dist/daemon/localRecall.js +23 -5
- package/dist/daemon/proxyDaemon.d.ts +5 -0
- package/dist/daemon/proxyDaemon.js +52 -8
- package/dist/lifecycle/claimNudge.js +1 -1
- package/dist/lifecycle/deployGuard.js +1 -1
- package/dist/lifecycle/legacyNodeId.js +1 -1
- package/dist/lifecycle/manager.js +1 -1
- package/dist/llm/index.js +1 -1
- package/dist/llm/server.js +1 -1
- package/dist/llm/traceBackfill.js +1 -1
- package/dist/llm/traceConfig.js +1 -1
- package/dist/llm/traceControl.js +1 -1
- package/dist/llm/traceEnvelope.js +1 -1
- package/dist/llm/traceSink.js +1 -1
- package/dist/llm/traceUploadPayload.js +1 -1
- package/dist/llm/upstream.js +1 -1
- package/dist/router/cachePassthrough.js +1 -1
- package/dist/router/features.js +1 -1
- package/dist/router/index.js +1 -1
- package/dist/router/messagesRoute.js +1 -1
- package/dist/router/modelRouter.js +1 -1
- package/dist/router/providerRoutes.js +1 -1
- package/dist/router/sseScan.js +1 -1
- package/dist/selfUpdate/bootstrap.js +40 -46
- package/dist/selfUpdate/bootstrapReadiness.js +15 -3
- package/dist/selfUpdate/migration.js +37 -22
- package/dist/selfUpdate/transaction.js +158 -59
- package/dist/selfUpdate/windowsUpdater.js +70 -10
- package/dist/sync/engine.js +1 -1
- package/package.json +3 -3
|
@@ -2,6 +2,7 @@ import { assetstore, type hub as hubNs, type verify } from '@evomap/evolver-core
|
|
|
2
2
|
import { type VerificationContextStore } from './observedEvidence.js';
|
|
3
3
|
export declare const CURATION_INTERVAL_MS: number;
|
|
4
4
|
export declare const CURATION_IDLE_MS: number;
|
|
5
|
+
export declare const CURATION_POLL_MS = 30000;
|
|
5
6
|
export type ExecutionVerifier = (input: hubNs.ConversationDistillInput, signal: AbortSignal) => Promise<hubNs.ConversationDistillVerifiedExecution | null>;
|
|
6
7
|
export interface CuratedPublication {
|
|
7
8
|
queued: boolean;
|
|
@@ -22,7 +23,7 @@ export interface CurationDeps {
|
|
|
22
23
|
/** Absent where read-only isolation is unavailable: genes then wait, never published unverified. */
|
|
23
24
|
verifierForRoot: ((root: string, plan?: VerificationPlan) => ExecutionVerifier) | undefined;
|
|
24
25
|
verify: (body: hubNs.ConversationDistillInput, verifier: ExecutionVerifier, planDigest: string) => Promise<hubNs.ConversationDistillVerifiedExecution | undefined>;
|
|
25
|
-
enqueue: (body: hubNs.ConversationDistillInput, verified: hubNs.ConversationDistillVerifiedExecution, planDigest: string, commit: CuratedMailboxCommit) => Promise<CuratedPublication>;
|
|
26
|
+
enqueue: (body: hubNs.ConversationDistillInput, verified: hubNs.ConversationDistillVerifiedExecution, planDigest: string, commit: CuratedMailboxCommit, expectedGeneAssetId: string) => Promise<CuratedPublication>;
|
|
26
27
|
now: () => Date;
|
|
27
28
|
scratchDir?: string;
|
|
28
29
|
}
|
|
@@ -6,6 +6,9 @@ import { createRecordedCheckout, RecordedTreeMismatch } from './curationGit.js';
|
|
|
6
6
|
import { hasVerificationPlan } from './observedEvidence.js';
|
|
7
7
|
export const CURATION_INTERVAL_MS = 10 * 60_000;
|
|
8
8
|
export const CURATION_IDLE_MS = 2 * 60_000;
|
|
9
|
+
// Host relays reach the Proxy every minute or two; checking only at each interval boundary would almost always land
|
|
10
|
+
// inside their activity, so the quiet window is polled for and a run still starts at most once per interval.
|
|
11
|
+
export const CURATION_POLL_MS = 30_000;
|
|
9
12
|
function geneDigest(gene) {
|
|
10
13
|
return wire.canonicalize(gene);
|
|
11
14
|
}
|
|
@@ -88,7 +91,7 @@ async function enqueueCurrentVerification(deps, context, body, verified, geneBef
|
|
|
88
91
|
saveCurrentObservation(deps.contexts, context, { published: { at, envelopeId: '', assetIds: [] } });
|
|
89
92
|
return 'stored';
|
|
90
93
|
}) ?? 'review_not_approved';
|
|
91
|
-
const publication = await deps.enqueue(body, verified, context.planDigest, commit);
|
|
94
|
+
const publication = await deps.enqueue(body, verified, context.planDigest, commit, context.geneAssetId);
|
|
92
95
|
if (!publication.queued)
|
|
93
96
|
return publication.reason ?? 'publish_blocked';
|
|
94
97
|
const latest = deps.contexts.get(context.geneAssetId);
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { assetstore, hub as hubNs } from '@evomap/evolver-core';
|
|
2
|
+
type DistillOutcomeStatus = 'stored' | 'draft' | 'rejected' | 'skipped';
|
|
3
|
+
export interface DistillOutcome {
|
|
4
|
+
at: string;
|
|
5
|
+
status: DistillOutcomeStatus;
|
|
6
|
+
reason?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface DistillationStatus {
|
|
9
|
+
window_hours: number;
|
|
10
|
+
stored: number;
|
|
11
|
+
drafts: number;
|
|
12
|
+
/** Drafts the quality gate refused, by reason. */
|
|
13
|
+
rejected: Record<string, number>;
|
|
14
|
+
/** Requests that never became a draft (IR structure, references, contracts, repairs, too little to go on), by reason. */
|
|
15
|
+
skipped: Record<string, number>;
|
|
16
|
+
}
|
|
17
|
+
export interface TrialControl {
|
|
18
|
+
asset_id: string;
|
|
19
|
+
withheld_id: string;
|
|
20
|
+
task_id: string;
|
|
21
|
+
passed: boolean;
|
|
22
|
+
platform?: string;
|
|
23
|
+
at: string;
|
|
24
|
+
}
|
|
25
|
+
interface TrialArm {
|
|
26
|
+
runs: number;
|
|
27
|
+
passed: number;
|
|
28
|
+
}
|
|
29
|
+
export interface TrialEffect {
|
|
30
|
+
gene_asset_id: string;
|
|
31
|
+
title: string;
|
|
32
|
+
treated: TrialArm;
|
|
33
|
+
control: TrialArm;
|
|
34
|
+
}
|
|
35
|
+
export declare function distillOutcomeOf(result: hubNs.ConversationDistillResult, at: Date): DistillOutcome;
|
|
36
|
+
export declare class DistillOutcomeLog {
|
|
37
|
+
private readonly log;
|
|
38
|
+
constructor(assetStoreDir: string);
|
|
39
|
+
record(outcome: DistillOutcome): void;
|
|
40
|
+
summary(now: Date): DistillationStatus;
|
|
41
|
+
}
|
|
42
|
+
export declare class TrialControlLog {
|
|
43
|
+
private readonly log;
|
|
44
|
+
private readonly withholdings;
|
|
45
|
+
constructor(assetStoreDir: string);
|
|
46
|
+
/** Records one withholding and names it; the turn that went without the draft reports its control under this id. */
|
|
47
|
+
withheld(assetId: string, at: Date): string;
|
|
48
|
+
/** A control counts only against the withholding it names: of that draft, in the last day, and only once. */
|
|
49
|
+
record(entry: TrialControl): 'recorded' | 'duplicate' | 'not_withheld';
|
|
50
|
+
list(): TrialControl[];
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Keyed by the Gene's own id, not its asset id: the asset id also hashes runtime metadata (model, `env_class`), so the
|
|
54
|
+
* same draft would land in another arm on another machine.
|
|
55
|
+
*/
|
|
56
|
+
export declare function isTrialHoldout(geneId: string, recallText: string): boolean;
|
|
57
|
+
/** Each trial draft with a control arm: how often checks passed with it recalled, and without. */
|
|
58
|
+
export declare function trialEffect(store: assetstore.AssetStoreProvider, controls: TrialControlLog): Promise<TrialEffect[]>;
|
|
59
|
+
export {};
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { createHash, randomUUID } from 'node:crypto';
|
|
2
|
+
import { appendFileSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from 'node:fs';
|
|
3
|
+
import { dirname, join } from 'node:path';
|
|
4
|
+
const MAX_OUTCOMES = 1_000;
|
|
5
|
+
const MAX_CONTROLS = 5_000;
|
|
6
|
+
const WINDOW_HOURS = 24;
|
|
7
|
+
const WITHHOLDING_TTL_MS = 24 * 3_600_000;
|
|
8
|
+
// One trial recall in five is withheld, so a draft's pass rate can be compared with sessions that did without it.
|
|
9
|
+
const HOLDOUT_BUCKETS = 5;
|
|
10
|
+
const MAX_EFFECT_ROWS = 10;
|
|
11
|
+
const MAX_LISTED_CAPSULES = 20_000;
|
|
12
|
+
/** An append-only JSON-lines file that keeps its newest `max` entries. */
|
|
13
|
+
class BoundedJsonl {
|
|
14
|
+
path;
|
|
15
|
+
max;
|
|
16
|
+
constructor(path, max) {
|
|
17
|
+
this.path = path;
|
|
18
|
+
this.max = max;
|
|
19
|
+
}
|
|
20
|
+
read() {
|
|
21
|
+
if (!existsSync(this.path))
|
|
22
|
+
return [];
|
|
23
|
+
return readFileSync(this.path, 'utf8').split('\n').flatMap((line) => {
|
|
24
|
+
if (!line.trim())
|
|
25
|
+
return [];
|
|
26
|
+
try {
|
|
27
|
+
return [JSON.parse(line)];
|
|
28
|
+
}
|
|
29
|
+
catch {
|
|
30
|
+
return [];
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
append(entry) {
|
|
35
|
+
mkdirSync(dirname(this.path), { recursive: true });
|
|
36
|
+
appendFileSync(this.path, `${JSON.stringify(entry)}\n`, { mode: 0o600 });
|
|
37
|
+
const entries = this.read();
|
|
38
|
+
if (entries.length <= this.max)
|
|
39
|
+
return;
|
|
40
|
+
const temporary = `${this.path}.${process.pid}.tmp`;
|
|
41
|
+
writeFileSync(temporary, entries.slice(-this.max).map((item) => JSON.stringify(item)).join('\n') + '\n', { mode: 0o600 });
|
|
42
|
+
renameSync(temporary, this.path);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
export function distillOutcomeOf(result, at) {
|
|
46
|
+
const stamp = at.toISOString();
|
|
47
|
+
if (!result.ok)
|
|
48
|
+
return { at: stamp, status: 'skipped', reason: result.quality?.reason ?? result.reason };
|
|
49
|
+
if (result.status === 'stored')
|
|
50
|
+
return { at: stamp, status: 'stored' };
|
|
51
|
+
return result.quality.ok ? { at: stamp, status: 'draft' } : { at: stamp, status: 'rejected', reason: result.quality.reason ?? 'quality_gate' };
|
|
52
|
+
}
|
|
53
|
+
export class DistillOutcomeLog {
|
|
54
|
+
log;
|
|
55
|
+
constructor(assetStoreDir) {
|
|
56
|
+
this.log = new BoundedJsonl(join(assetStoreDir, 'distill-outcomes.jsonl'), MAX_OUTCOMES);
|
|
57
|
+
}
|
|
58
|
+
record(outcome) {
|
|
59
|
+
this.log.append(outcome);
|
|
60
|
+
}
|
|
61
|
+
summary(now) {
|
|
62
|
+
const since = now.getTime() - WINDOW_HOURS * 3_600_000;
|
|
63
|
+
const status = { window_hours: WINDOW_HOURS, stored: 0, drafts: 0, rejected: {}, skipped: {} };
|
|
64
|
+
const count = (byReason, reason = 'unknown') => { byReason[reason] = (byReason[reason] ?? 0) + 1; };
|
|
65
|
+
for (const outcome of this.log.read()) {
|
|
66
|
+
if (Date.parse(outcome.at) < since)
|
|
67
|
+
continue;
|
|
68
|
+
if (outcome.status === 'stored')
|
|
69
|
+
status.stored += 1;
|
|
70
|
+
else if (outcome.status === 'draft')
|
|
71
|
+
status.drafts += 1;
|
|
72
|
+
else
|
|
73
|
+
count(outcome.status === 'skipped' ? status.skipped : status.rejected, outcome.reason);
|
|
74
|
+
}
|
|
75
|
+
return status;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
export class TrialControlLog {
|
|
79
|
+
log;
|
|
80
|
+
withholdings;
|
|
81
|
+
constructor(assetStoreDir) {
|
|
82
|
+
this.log = new BoundedJsonl(join(assetStoreDir, 'trial-control.jsonl'), MAX_CONTROLS);
|
|
83
|
+
this.withholdings = new BoundedJsonl(join(assetStoreDir, 'trial-withheld.jsonl'), MAX_CONTROLS);
|
|
84
|
+
}
|
|
85
|
+
/** Records one withholding and names it; the turn that went without the draft reports its control under this id. */
|
|
86
|
+
withheld(assetId, at) {
|
|
87
|
+
const id = randomUUID();
|
|
88
|
+
this.withholdings.append({ id, asset_id: assetId, at: at.toISOString() });
|
|
89
|
+
return id;
|
|
90
|
+
}
|
|
91
|
+
/** A control counts only against the withholding it names: of that draft, in the last day, and only once. */
|
|
92
|
+
record(entry) {
|
|
93
|
+
const withholding = this.withholdings.read().find((known) => known.id === entry.withheld_id);
|
|
94
|
+
if (!withholding || withholding.asset_id !== entry.asset_id
|
|
95
|
+
|| Date.parse(withholding.at) < Date.parse(entry.at) - WITHHOLDING_TTL_MS)
|
|
96
|
+
return 'not_withheld';
|
|
97
|
+
if (this.log.read().some((known) => known.withheld_id === entry.withheld_id))
|
|
98
|
+
return 'duplicate';
|
|
99
|
+
this.log.append(entry);
|
|
100
|
+
return 'recorded';
|
|
101
|
+
}
|
|
102
|
+
list() {
|
|
103
|
+
return this.log.read();
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Keyed by the Gene's own id, not its asset id: the asset id also hashes runtime metadata (model, `env_class`), so the
|
|
108
|
+
* same draft would land in another arm on another machine.
|
|
109
|
+
*/
|
|
110
|
+
export function isTrialHoldout(geneId, recallText) {
|
|
111
|
+
return createHash('sha256').update(`${geneId}\n${recallText}`).digest()[0] % HOLDOUT_BUCKETS === 0;
|
|
112
|
+
}
|
|
113
|
+
const arm = () => ({ runs: 0, passed: 0 });
|
|
114
|
+
/** Each trial draft with a control arm: how often checks passed with it recalled, and without. */
|
|
115
|
+
export async function trialEffect(store, controls) {
|
|
116
|
+
const rows = new Map();
|
|
117
|
+
for (const entry of controls.list()) {
|
|
118
|
+
const row = rows.get(entry.asset_id) ?? { treated: arm(), control: arm() };
|
|
119
|
+
row.control.runs += 1;
|
|
120
|
+
if (entry.passed)
|
|
121
|
+
row.control.passed += 1;
|
|
122
|
+
rows.set(entry.asset_id, row);
|
|
123
|
+
}
|
|
124
|
+
if (rows.size === 0)
|
|
125
|
+
return [];
|
|
126
|
+
for (const capsule of await store.list('Capsule', MAX_LISTED_CAPSULES)) {
|
|
127
|
+
const row = capsule['source_type'] === 'reused' ? rows.get(String(capsule['reused_asset_id'] ?? '')) : undefined;
|
|
128
|
+
if (!row)
|
|
129
|
+
continue;
|
|
130
|
+
row.treated.runs += 1;
|
|
131
|
+
if (capsule['outcome']?.status === 'success')
|
|
132
|
+
row.treated.passed += 1;
|
|
133
|
+
}
|
|
134
|
+
const ranked = [...rows].sort(([, a], [, b]) => (b.treated.runs + b.control.runs) - (a.treated.runs + a.control.runs)).slice(0, MAX_EFFECT_ROWS);
|
|
135
|
+
return Promise.all(ranked.map(async ([assetId, row]) => {
|
|
136
|
+
const gene = await store.get(assetId);
|
|
137
|
+
return { gene_asset_id: assetId, title: String(gene?.['summary'] ?? '').slice(0, 80), ...row };
|
|
138
|
+
}));
|
|
139
|
+
}
|
|
@@ -19,6 +19,11 @@ export interface LocalRecallDiagnostics {
|
|
|
19
19
|
error?: string;
|
|
20
20
|
/** The store held more records of a kind than one recall reads; the rest were not considered. */
|
|
21
21
|
truncated?: boolean;
|
|
22
|
+
/** A trial draft this recall would have returned, held back so the turn can serve as its control. */
|
|
23
|
+
trial_withheld?: {
|
|
24
|
+
asset_id: string;
|
|
25
|
+
withheld_id?: string;
|
|
26
|
+
};
|
|
22
27
|
}
|
|
23
28
|
export interface LocalRecallOutcome {
|
|
24
29
|
assets: assetstore.AssetRecord[];
|
|
@@ -33,5 +38,5 @@ interface LocalRecallRead {
|
|
|
33
38
|
* when that history changed. */
|
|
34
39
|
export declare function rootEventReuseTallies(path?: string): ReuseTallies;
|
|
35
40
|
/** The local Gene, with its project's notes, that this prompt should get from the local store, or none. */
|
|
36
|
-
export declare function recallFromLocalStore(store: assetstore.AssetStoreProvider, text: string, projectDir: unknown): Promise<LocalRecallRead>;
|
|
41
|
+
export declare function recallFromLocalStore(store: assetstore.AssetStoreProvider, text: string, projectDir: unknown, onWithheld?: (assetId: string) => string | undefined): Promise<LocalRecallRead>;
|
|
37
42
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { assetstore, events, ops } from '@evomap/evolver-core';
|
|
1
|
+
import { assetstore, events, hub, ops } from '@evomap/evolver-core';
|
|
2
|
+
import { isTrialHoldout } from './distillMeasures.js';
|
|
2
3
|
const MAX_LOCAL_RECALL_RECORDS = 20_000;
|
|
3
4
|
// Passing the local strength gate is already the evidence; the floor keeps a local hit above the host's own
|
|
4
5
|
// similarity cut (0.3) and comparable with the Hub's scores, which the host ranks the merged candidates by.
|
|
@@ -71,6 +72,14 @@ function recalledAsset(hit, trial) {
|
|
|
71
72
|
},
|
|
72
73
|
};
|
|
73
74
|
}
|
|
75
|
+
/** A project-bound Gene is recalled only in the project one of its Capsules was distilled in. */
|
|
76
|
+
function isBoundHere(gene, capsules, fingerprint) {
|
|
77
|
+
if (!fingerprint)
|
|
78
|
+
return false;
|
|
79
|
+
const geneId = String(gene['id'] ?? gene.asset_id);
|
|
80
|
+
return capsules.some((capsule) => capsule['gene'] === geneId
|
|
81
|
+
&& capsule['content']?.project_fingerprint === fingerprint);
|
|
82
|
+
}
|
|
74
83
|
/** Quarantined drafts that may be tried once: every other gate still applies, and two failures end the trial. */
|
|
75
84
|
function trialPool(genes, capsules, eligibility) {
|
|
76
85
|
const onTrial = genes.filter((gene) => eligibility.review.get(gene.asset_id)?.state === 'quarantined');
|
|
@@ -103,7 +112,7 @@ function diagnosticsOf(result) {
|
|
|
103
112
|
};
|
|
104
113
|
}
|
|
105
114
|
/** The local Gene, with its project's notes, that this prompt should get from the local store, or none. */
|
|
106
|
-
export async function recallFromLocalStore(store, text, projectDir) {
|
|
115
|
+
export async function recallFromLocalStore(store, text, projectDir, onWithheld = () => undefined) {
|
|
107
116
|
const [geneRead, capsuleRead] = await Promise.allSettled([
|
|
108
117
|
Promise.resolve().then(() => store.list('Gene', MAX_LOCAL_RECALL_RECORDS + 1)),
|
|
109
118
|
Promise.resolve().then(() => store.list('Capsule', MAX_LOCAL_RECALL_RECORDS + 1)),
|
|
@@ -133,15 +142,24 @@ export async function recallFromLocalStore(store, text, projectDir) {
|
|
|
133
142
|
const rawAssets = new Map(result.hits.map((hit) => [recalledAsset(hit, trial), hit.gene]));
|
|
134
143
|
return { assets: [...rawAssets.keys()], rawAssets, diagnostics: { ...diagnosticsOf(result), ...(truncated ? { truncated } : {}) } };
|
|
135
144
|
};
|
|
145
|
+
const inScope = genes.filter((gene) => !hub.isProjectBoundGene(gene) || isBoundHere(gene, capsules, query.projectFingerprint));
|
|
136
146
|
return { finish: (eligibility, reuse) => {
|
|
137
|
-
const qualified = [...
|
|
147
|
+
const qualified = [...inScope, ...capsules].filter((asset) => assetstore.assetContextEligibilityReason(asset, eligibility) === undefined);
|
|
138
148
|
const result = assetstore.recallLocalAssets(qualified, query, reuse, contexts);
|
|
139
149
|
if (result.hits.length > 0)
|
|
140
150
|
return outcomeOf(result, false);
|
|
141
|
-
const trial = trialPool(
|
|
151
|
+
const trial = trialPool(inScope, capsules, eligibility);
|
|
142
152
|
if (trial.length === 0)
|
|
143
153
|
return outcomeOf(result, false);
|
|
144
154
|
const trialResult = assetstore.recallLocalAssets(trial, { ...query, limit: 1 }, reuse, contexts);
|
|
145
|
-
|
|
155
|
+
const drafted = trialResult.hits[0]?.gene;
|
|
156
|
+
if (!drafted)
|
|
157
|
+
return outcomeOf(result, false);
|
|
158
|
+
if (!isTrialHoldout(String(drafted['id'] ?? drafted.asset_id), text))
|
|
159
|
+
return outcomeOf(trialResult, true);
|
|
160
|
+
const withheldId = onWithheld(drafted.asset_id);
|
|
161
|
+
const withheld = outcomeOf(result, false);
|
|
162
|
+
const named = { asset_id: drafted.asset_id, ...(withheldId ? { withheld_id: withheldId } : {}) };
|
|
163
|
+
return { ...withheld, diagnostics: { ...withheld.diagnostics, trial_withheld: named } };
|
|
146
164
|
} };
|
|
147
165
|
}
|
|
@@ -214,8 +214,11 @@ export declare class ProxyDaemon {
|
|
|
214
214
|
private wakeRunnerPending;
|
|
215
215
|
private started;
|
|
216
216
|
private readonly verificationContexts;
|
|
217
|
+
private readonly distillOutcomes;
|
|
218
|
+
private readonly trialControls;
|
|
217
219
|
private lastRouteAt;
|
|
218
220
|
private curationTimer;
|
|
221
|
+
private lastCurationAt;
|
|
219
222
|
private curationRunning;
|
|
220
223
|
private feedbackRecovery;
|
|
221
224
|
private lifecycleArmed;
|
|
@@ -248,6 +251,8 @@ export declare class ProxyDaemon {
|
|
|
248
251
|
private curateWhenIdle;
|
|
249
252
|
private enqueueVerifiedDistillation;
|
|
250
253
|
private trackStoredDraft;
|
|
254
|
+
/** The control arm of a trial draft: a turn that ran its checks with the draft withheld. */
|
|
255
|
+
private recordTrialControl;
|
|
251
256
|
private enqueueDistillPublication;
|
|
252
257
|
private registerDistillPublication;
|
|
253
258
|
private distillPublicationEnvelope;
|
|
@@ -14,8 +14,9 @@ import { classifyDiscoveryUpstreamError } from './discoveryErrors.js';
|
|
|
14
14
|
import { LOCAL_RECALL_STALE_MS, LOCAL_RECALL_TIMEOUT_MS, MAX_OUTSTANDING_LOCAL_READS, recallFromLocalStore, rootEventReuseTallies } from './localRecall.js';
|
|
15
15
|
import { PublishBindingLedger } from './publishBindingLedger.js';
|
|
16
16
|
import { recallContextOf } from './recallContext.js';
|
|
17
|
-
import { CURATION_IDLE_MS, CURATION_INTERVAL_MS, curationStatus, runCurationTick } from './backgroundCuration.js';
|
|
17
|
+
import { CURATION_IDLE_MS, CURATION_INTERVAL_MS, CURATION_POLL_MS, curationStatus, runCurationTick } from './backgroundCuration.js';
|
|
18
18
|
import { VerificationContextStore, isObservedCheckEvidence, recordObservedReuse, verificationContextOf } from './observedEvidence.js';
|
|
19
|
+
import { DistillOutcomeLog, TrialControlLog, distillOutcomeOf, trialEffect } from './distillMeasures.js';
|
|
19
20
|
import { PublishRecallVerifier, resolvePublishRecallConfig, } from './publishRecallVerifier.js';
|
|
20
21
|
const DEFAULT_PUBLISH_EXECUTION_VERIFY_TIMEOUT_MS = 30_000;
|
|
21
22
|
// A host-observed distillation carries the turn's diff (≤256 KiB) beside the conversation itself.
|
|
@@ -142,8 +143,11 @@ export class ProxyDaemon {
|
|
|
142
143
|
wakeRunnerPending = false;
|
|
143
144
|
started = false;
|
|
144
145
|
verificationContexts;
|
|
146
|
+
distillOutcomes;
|
|
147
|
+
trialControls;
|
|
145
148
|
lastRouteAt = 0;
|
|
146
149
|
curationTimer;
|
|
150
|
+
lastCurationAt = 0;
|
|
147
151
|
curationRunning = false;
|
|
148
152
|
feedbackRecovery;
|
|
149
153
|
lifecycleArmed = false;
|
|
@@ -202,6 +206,10 @@ export class ProxyDaemon {
|
|
|
202
206
|
? new assetstore.ReviewLedger(this.assetStore.baseDir) : undefined);
|
|
203
207
|
this.verificationContexts = this.assetStore instanceof assetstore.LocalJsonlProvider
|
|
204
208
|
? new VerificationContextStore(this.assetStore.baseDir) : undefined;
|
|
209
|
+
this.distillOutcomes = this.assetStore instanceof assetstore.LocalJsonlProvider
|
|
210
|
+
? new DistillOutcomeLog(this.assetStore.baseDir) : undefined;
|
|
211
|
+
this.trialControls = this.assetStore instanceof assetstore.LocalJsonlProvider
|
|
212
|
+
? new TrialControlLog(this.assetStore.baseDir) : undefined;
|
|
205
213
|
const referenceBase = assetStoreDir ?? deps.assetStore?.baseDir;
|
|
206
214
|
this.referenceStore = referenceBase ? new reference.ReferenceStore(join(referenceBase, 'references')) : undefined;
|
|
207
215
|
this.referenceStore?.search({ max_assets: 1 });
|
|
@@ -420,15 +428,18 @@ export class ProxyDaemon {
|
|
|
420
428
|
scheduleCuration() {
|
|
421
429
|
if (!this.assetStore || !this.sourceReview || !this.verificationContexts)
|
|
422
430
|
return;
|
|
423
|
-
this.
|
|
431
|
+
this.lastCurationAt = this.now();
|
|
432
|
+
this.curationTimer = setInterval(() => { void this.curateWhenIdle(); }, CURATION_POLL_MS);
|
|
424
433
|
this.curationTimer.unref?.();
|
|
425
434
|
}
|
|
426
435
|
async curateWhenIdle() {
|
|
427
|
-
|
|
436
|
+
const now = this.now();
|
|
437
|
+
if (!this.started || this.curationRunning || now - this.lastRouteAt < CURATION_IDLE_MS || now - this.lastCurationAt < CURATION_INTERVAL_MS)
|
|
428
438
|
return;
|
|
429
439
|
if (!this.assetStore || !this.sourceReview || !this.verificationContexts)
|
|
430
440
|
return;
|
|
431
441
|
this.curationRunning = true;
|
|
442
|
+
this.lastCurationAt = now;
|
|
432
443
|
try {
|
|
433
444
|
const verifierForRoot = this.deps.publishVerifierForRoot;
|
|
434
445
|
await runCurationTick({
|
|
@@ -437,7 +448,7 @@ export class ProxyDaemon {
|
|
|
437
448
|
contexts: this.verificationContexts,
|
|
438
449
|
verifierForRoot,
|
|
439
450
|
verify: (body, verifier, planDigest) => resolveVerifiedExecutionAfterPreflight(verifier, body, this.deps.publishExecutionVerifierTimeoutMs, [this.publishAbortController.signal], this.publishBindingLedger.runtimeDomain, undefined, planDigest),
|
|
440
|
-
enqueue: (body, verified, planDigest, commit) => this.enqueueVerifiedDistillation(body, verified, planDigest, commit),
|
|
451
|
+
enqueue: (body, verified, planDigest, commit, expectedGeneAssetId) => this.enqueueVerifiedDistillation(body, verified, planDigest, commit, expectedGeneAssetId),
|
|
441
452
|
now: () => new Date(this.now()),
|
|
442
453
|
});
|
|
443
454
|
}
|
|
@@ -448,7 +459,7 @@ export class ProxyDaemon {
|
|
|
448
459
|
this.curationRunning = false;
|
|
449
460
|
}
|
|
450
461
|
}
|
|
451
|
-
async enqueueVerifiedDistillation(body, verifiedExecution, validationPlanDigest, commit) {
|
|
462
|
+
async enqueueVerifiedDistillation(body, verifiedExecution, validationPlanDigest, commit, expectedGeneAssetId) {
|
|
452
463
|
if (this.hubAuthFailed())
|
|
453
464
|
return { queued: false, reason: 'hub_auth_failed' };
|
|
454
465
|
const signal = this.publishAbortController.signal;
|
|
@@ -457,6 +468,7 @@ export class ProxyDaemon {
|
|
|
457
468
|
store: this.assetStore,
|
|
458
469
|
verifiedExecution,
|
|
459
470
|
validationPlanDigest,
|
|
471
|
+
expectedGeneAssetId,
|
|
460
472
|
// Distillation verifies the receipt before persistence; only the final review fence may register it.
|
|
461
473
|
registerPublishReceipt: (receipt, bundle) => hubNs.assertPublishBindingReceipt(bundle, receipt, this.publishBindingLedger.runtimeDigest),
|
|
462
474
|
publishSignal: signal,
|
|
@@ -480,12 +492,36 @@ export class ProxyDaemon {
|
|
|
480
492
|
}
|
|
481
493
|
trackStoredDraft(body, gene, capsule, checks) {
|
|
482
494
|
this.sourceReview?.quarantineIfAbsent(gene.asset_id, 'host-observed distillation — on trial until promoted');
|
|
495
|
+
// A Gene its distiller bound to this project is never published, so it never needs a verification copy.
|
|
496
|
+
if (hubNs.isProjectBoundGene(gene))
|
|
497
|
+
return;
|
|
483
498
|
if (capsule['outcome']?.status !== 'success')
|
|
484
499
|
return;
|
|
485
500
|
const context = verificationContextOf(body, gene, new Date(this.now()), checks);
|
|
486
501
|
if (context)
|
|
487
502
|
this.verificationContexts?.put(context);
|
|
488
503
|
}
|
|
504
|
+
/** The control arm of a trial draft: a turn that ran its checks with the draft withheld. */
|
|
505
|
+
async recordTrialControl(body) {
|
|
506
|
+
const input = asRecord(body);
|
|
507
|
+
const assetId = input['asset_id'];
|
|
508
|
+
const withheldId = input['withheld_id'];
|
|
509
|
+
const taskId = input['task_id'];
|
|
510
|
+
const passed = input['passed'];
|
|
511
|
+
const platform = input['platform'];
|
|
512
|
+
const isId = (value) => typeof value === 'string' && value.trim().length > 0 && value.length <= 200;
|
|
513
|
+
if (!isId(assetId) || !isId(withheldId) || !isId(taskId) || typeof passed !== 'boolean' || (platform !== undefined && !isId(platform))) {
|
|
514
|
+
return [400, { recorded: false, error: 'invalid_trial_control' }];
|
|
515
|
+
}
|
|
516
|
+
if (!this.trialControls || !this.assetStore)
|
|
517
|
+
return [200, { recorded: false, reason: 'trial_control_unavailable' }];
|
|
518
|
+
if ((await this.assetStore.get(assetId))?.type !== 'Gene')
|
|
519
|
+
return [200, { recorded: false, reason: 'not_local' }];
|
|
520
|
+
const result = this.trialControls.record({
|
|
521
|
+
asset_id: assetId, withheld_id: withheldId, task_id: taskId, passed, ...(platform ? { platform } : {}), at: new Date(this.now()).toISOString(),
|
|
522
|
+
});
|
|
523
|
+
return [200, result === 'recorded' ? { recorded: true } : { recorded: false, reason: result }];
|
|
524
|
+
}
|
|
489
525
|
enqueueDistillPublication(body, distill, now) {
|
|
490
526
|
const env = this.distillPublicationEnvelope(body, distill, now);
|
|
491
527
|
this.registerDistillPublication(env, distill.publish_receipt);
|
|
@@ -1085,7 +1121,7 @@ export class ProxyDaemon {
|
|
|
1085
1121
|
const expire = () => controller.abort(new Error('local_recall_timeout'));
|
|
1086
1122
|
timer = setTimeout(expire, this.localRecallTimeoutMs);
|
|
1087
1123
|
const recall = (async () => {
|
|
1088
|
-
const read = await recallFromLocalStore(store, text, projectDir);
|
|
1124
|
+
const read = await recallFromLocalStore(store, text, projectDir, (id) => this.trialControls?.withheld(id, new Date(this.now())));
|
|
1089
1125
|
clearTimeout(timer);
|
|
1090
1126
|
const remaining = this.localRecallTimeoutMs - (performance.now() - preparationStarted);
|
|
1091
1127
|
controller.signal.throwIfAborted();
|
|
@@ -1219,6 +1255,8 @@ export class ProxyDaemon {
|
|
|
1219
1255
|
...(this.verificationContexts && this.sourceReview ? {
|
|
1220
1256
|
background_curation: curationStatus(this.verificationContexts, this.sourceReview, this.deps.publishVerifierForRoot !== undefined),
|
|
1221
1257
|
} : {}),
|
|
1258
|
+
...(this.distillOutcomes ? { distillation: this.distillOutcomes.summary(new Date(this.now())) } : {}),
|
|
1259
|
+
...(this.trialControls && this.assetStore ? { trial_effect: await trialEffect(this.assetStore, this.trialControls) } : {}),
|
|
1222
1260
|
outbound_pending: this.store.countPending('proxy', this.deps.runtimeNamespace),
|
|
1223
1261
|
inbound_pending: this.store.countPending('agent', this.deps.runtimeNamespace) + this.store.countPending('core', this.deps.runtimeNamespace),
|
|
1224
1262
|
last_sync_at: this.store.getState('sync:last_sync_at') ?? null,
|
|
@@ -1693,6 +1731,10 @@ export class ProxyDaemon {
|
|
|
1693
1731
|
}
|
|
1694
1732
|
return true;
|
|
1695
1733
|
}
|
|
1734
|
+
if (ctx.route === 'POST /asset/trial-control') {
|
|
1735
|
+
ctx.json(...(await this.recordTrialControl(await ctx.readJson())));
|
|
1736
|
+
return true;
|
|
1737
|
+
}
|
|
1696
1738
|
if (ctx.route === 'POST /asset/reuse-result') {
|
|
1697
1739
|
const body = await ctx.readJson();
|
|
1698
1740
|
const input = asRecord(body);
|
|
@@ -1900,6 +1942,7 @@ export class ProxyDaemon {
|
|
|
1900
1942
|
});
|
|
1901
1943
|
if (publishRequested && abortPublish())
|
|
1902
1944
|
return true;
|
|
1945
|
+
this.distillOutcomes?.record(distillOutcomeOf(distill, new Date(this.now())));
|
|
1903
1946
|
if (!distill.ok) {
|
|
1904
1947
|
ctx.json(200, {
|
|
1905
1948
|
...distill,
|
|
@@ -2625,9 +2668,10 @@ function withinLimit(assets, limit) {
|
|
|
2625
2668
|
return typeof limit === 'number' && Number.isFinite(limit) && limit >= 1 ? assets.slice(0, Math.floor(limit)) : [...assets];
|
|
2626
2669
|
}
|
|
2627
2670
|
function localRecallReport(local) {
|
|
2628
|
-
|
|
2671
|
+
const withheld = local?.diagnostics.trial_withheld;
|
|
2672
|
+
if (!local || (local.diagnostics.considered === 0 && !local.diagnostics.error && !withheld))
|
|
2629
2673
|
return {};
|
|
2630
|
-
return { local_recall: local.diagnostics };
|
|
2674
|
+
return { local_recall: local.diagnostics, ...(withheld ? { trial_withheld: withheld } : {}) };
|
|
2631
2675
|
}
|
|
2632
2676
|
function isAssetByIdFetcher(value) {
|
|
2633
2677
|
return Boolean(value && typeof value === 'object' && typeof value.fetchAssetById === 'function');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x7d6d24=_0x5704;(function(_0x290ff9,_0x3c476c){const _0x811f7e=_0x5704,_0x4752e7=_0x290ff9();while(!![]){try{const _0x21ee2b=parseInt(_0x811f7e(0x1a5,'\x52\x38\x30\x56'))/(0x756+0x1191*-0x1+-0x83*-0x14)*(-parseInt(_0x811f7e(0x17e,'\x23\x5a\x71\x79'))/(0x1cc7*-0x1+-0x1aec*-0x1+0x1dd))+parseInt(_0x811f7e(0x1ab,'\x76\x63\x58\x38'))/(-0x1ecf+-0x2*0xad8+-0x4c6*-0xb)*(parseInt(_0x811f7e(0x185,'\x67\x59\x43\x4d'))/(0x1dc6+-0x156f+0x1*-0x853))+parseInt(_0x811f7e(0x1d0,'\x21\x37\x76\x66'))/(0x1b67+0x23b8+-0x1*0x3f1a)*(parseInt(_0x811f7e(0x1e9,'\x64\x29\x6d\x5e'))/(0x576+-0xa7*0x19+0xb*0xfd))+parseInt(_0x811f7e(0x180,'\x63\x42\x30\x71'))/(0x5ec*-0x5+-0xc*0x1c+0x3*0xa51)*(parseInt(_0x811f7e(0x187,'\x74\x26\x65\x6f'))/(0x1cf+-0x75*0x5+0x82))+parseInt(_0x811f7e(0x1ee,'\x67\x59\x43\x4d'))/(-0x8*-0x25+-0x1145+-0x9f*-0x1a)*(parseInt(_0x811f7e(0x1d7,'\x55\x28\x6e\x68'))/(0xd1d+-0x1fb1+0x129e))+parseInt(_0x811f7e(0x189,'\x74\x26\x65\x6f'))/(-0x1b9b+-0x5*0xc1+-0x1f6b*-0x1)+-parseInt(_0x811f7e(0x1ef,'\x74\x26\x65\x6f'))/(-0x1ac7+-0x212c+0x3bff);if(_0x21ee2b===_0x3c476c)break;else _0x4752e7['push'](_0x4752e7['shift']());}catch(_0x1c2682){_0x4752e7['push'](_0x4752e7['shift']());}}}(_0x20bc,0x137ebe+-0x144e*0x124+0xfb666));const DEFAULT_COOLDOWN_MS=(0x5ba*-0x2+-0x1881+0x23fb*0x1)*(0x4c8*0x6+0x59e*-0x1+-0x16d6)*(-0x4*0x3325+-0x1c8d2+-0x1*-0x37fc6),MIN_COOLDOWN_MS=-0x97a9+0x1*-0x1573a+0x2d943,MAX_COOLDOWN_MS=(0x99d+-0x66*-0x43+-0x2431)*(0xa9*-0xa+0x671*0x4+-0x1312)*(-0x1f10+-0x12eb+0x3237)*(-0x2*0x8975+-0x2972*0xb+0x10*0x3c53),MAX_STATE_ENTRIES=0x245d+-0x3*-0x6a5+-0x382c,STATE_KEY=_0x7d6d24(0x18f,'\x76\x46\x78\x49')+_0x7d6d24(0x1b7,'\x32\x6c\x5a\x21')+_0x7d6d24(0x17a,'\x2a\x30\x25\x21'),CLAIM_CODE_RE=/^[A-Za-z0-9][A-Za-z0-9_-]{1,127}$/;export function createClaimNudge(_0x721401){const _0x17649c=_0x7d6d24,_0x34148b=_0x721401[_0x17649c(0x1a6,'\x63\x42\x30\x71')]??process.env,_0x3ffba4=_0x721401[_0x17649c(0x1e6,'\x23\x5a\x71\x79')]??(()=>Date[_0x17649c(0x1e3,'\x32\x6c\x5a\x21')]()),_0x13d185=_0x721401['\x77\x72\x69\x74\x65']??(_0x5950c2=>{const _0x35128f=_0x17649c;_0x35128f(0x1b6,'\x72\x54\x67\x24')===_0x35128f(0x1be,'\x25\x55\x42\x50')?process[_0x35128f(0x1ca,'\x56\x4a\x66\x4e')][_0x35128f(0x1ad,'\x49\x6f\x57\x46')](_0x5950c2):_0x10d254(_0x520eb9);});let _0x590662={'\x76\x65\x72\x73\x69\x6f\x6e':0x1,'\x65\x6e\x74\x72\x69\x65\x73':{}};return _0x45f70d=>{const _0x307d08=_0x17649c;if(!_0x45f70d['\x6f\x6b']||_0x34148b[_0x307d08(0x195,'\x40\x46\x25\x2a')+'\x44\x49\x53\x41\x42\x4c\x45\x5f'+_0x307d08(0x1e5,'\x45\x36\x41\x6d')+_0x307d08(0x1ae,'\x56\x4a\x66\x4e')]==='\x31')return![];const _0x238697=normalizeClaimCode(_0x45f70d[_0x307d08(0x1f1,'\x21\x37\x76\x66')+'\x65']),_0x1f5817=_0x238697?trustedClaimUrl(_0x45f70d[_0x307d08(0x1eb,'\x69\x47\x64\x5e')],_0x721401[_0x307d08(0x1bb,'\x76\x46\x78\x49')]):undefined;if(!_0x238697||!_0x1f5817)return![];const _0x2c6a4e=_0x3ffba4(),_0x2c447b=claimNudgeCooldownMs(_0x34148b[_0x307d08(0x1de,'\x2a\x30\x25\x21')+_0x307d08(0x1a8,'\x35\x4d\x30\x65')+_0x307d08(0x1da,'\x48\x38\x40\x54')+'\x44\x4f\x57\x4e\x5f\x4d\x53']),_0x49c74a=mergeState(readState(_0x721401[_0x307d08(0x1cf,'\x24\x79\x4f\x75')]),_0x590662),_0x1b3a5b=_0x49c74a[_0x307d08(0x1ea,'\x24\x26\x31\x71')][_0x238697]??0x1cfa+0x1561+-0x325b;if(_0x1b3a5b>0x1b35+0x716*-0x1+0x12f*-0x11&&_0x2c6a4e-_0x1b3a5b<_0x2c447b)return![];const _0x1ba78b=['',_0x307d08(0x1f0,'\x56\x4a\x66\x4e')+_0x307d08(0x1a0,'\x23\x5a\x71\x79')+_0x307d08(0x1c6,'\x36\x23\x46\x79')+_0x307d08(0x182,'\x7a\x77\x74\x34')+_0x307d08(0x18a,'\x7a\x42\x40\x77')+_0x307d08(0x199,'\x48\x38\x40\x54')+_0x307d08(0x1d9,'\x24\x68\x6d\x48')+_0x307d08(0x1ed,'\x67\x59\x43\x4d')+'\x2e',_0x307d08(0x1b1,'\x40\x46\x25\x2a')+_0x307d08(0x18b,'\x57\x57\x65\x25')+_0x1f5817,_0x307d08(0x1a9,'\x45\x36\x41\x6d')+_0x307d08(0x1b2,'\x4f\x5d\x25\x56')+_0x238697,_0x307d08(0x1e1,'\x25\x55\x42\x50')+_0x307d08(0x19d,'\x40\x46\x25\x2a')+_0x307d08(0x1c7,'\x74\x35\x48\x4a')+_0x307d08(0x1c5,'\x67\x59\x43\x4d')+'\x63\x6f\x6e\x74\x69\x6e\x75\x65'+_0x307d08(0x193,'\x76\x63\x58\x38')+'\x20\x77\x69\x74\x68\x6f\x75\x74'+_0x307d08(0x19f,'\x41\x5a\x24\x58'),''][_0x307d08(0x198,'\x65\x76\x47\x49')]('\x0a');try{if(_0x307d08(0x1b4,'\x4d\x38\x33\x21')!==_0x307d08(0x1e4,'\x56\x4a\x66\x4e'))_0x13d185(_0x1ba78b);else{const _0xfb8498=_0x448a31(_0x44a542);if(!_0x522562[_0x307d08(0x1b3,'\x4d\x38\x33\x21')](_0xfb8498)||_0xfb8498<=0x57*0xe+-0x267b+0x21b9*0x1)return _0x239303;return _0x1680b8['\x6d\x61\x78'](_0x1b6a60,_0x243e5b[_0x307d08(0x1d2,'\x4f\x5d\x25\x56')](_0x4fe103[_0x307d08(0x1aa,'\x64\x4b\x69\x5a')](_0xfb8498),_0xca6d84));}}catch{return![];}_0x590662=pruneState({..._0x49c74a[_0x307d08(0x17f,'\x69\x47\x64\x5e')],[_0x238697]:_0x2c6a4e});try{_0x721401[_0x307d08(0x190,'\x72\x54\x67\x24')]['\x73\x65\x74\x53\x74\x61\x74\x65'](STATE_KEY,JSON[_0x307d08(0x1c0,'\x51\x6a\x28\x4d')+'\x79'](_0x590662));}catch{}return!![];};}export function wrapHelloWithClaimNudge(_0x3891af,_0xbb0800){return async _0x4b60d7=>{const _0x2c7224=_0x5704,_0x56f89d=await _0x3891af(_0x4b60d7);try{_0x2c7224(0x1bc,'\x21\x37\x76\x66')===_0x2c7224(0x186,'\x62\x21\x75\x44')?_0xbb0800(_0x56f89d):_0x187611(_0xd1c390);}catch{}return _0x56f89d;};}function _0x5704(_0x14cb41,_0x502659){_0x14cb41=_0x14cb41-(-0xda1+-0x1*-0xd20+-0x1*-0x1fb);const _0x1ab841=_0x20bc();let _0x466945=_0x1ab841[_0x14cb41];if(_0x5704['\x78\x74\x61\x50\x68\x6b']===undefined){var _0x3bd19a=function(_0x52eebe){const _0x22d2c9='\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';let _0x19d403='',_0x155417='';for(let _0xadb090=-0xacb+-0x1949+0x2414,_0x552ce8,_0x2194e5,_0x4594e6=-0x1192+-0x11*-0x151+-0x4cf;_0x2194e5=_0x52eebe['\x63\x68\x61\x72\x41\x74'](_0x4594e6++);~_0x2194e5&&(_0x552ce8=_0xadb090%(0x61f*-0x2+-0xd*0x13f+0x1c75)?_0x552ce8*(0x1c01+0x2457+-0xe*0x494)+_0x2194e5:_0x2194e5,_0xadb090++%(0x1*0x3fd+0x1147+0x2a8*-0x8))?_0x19d403+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0xa1*-0x13+0x1115+-0x423&_0x552ce8>>(-(-0x84e*0x2+0x961*-0x1+0x19ff*0x1)*_0xadb090&-0x82c*-0x2+-0x2638+0x15e6)):0x2b3+-0x192e+-0x167b*-0x1){_0x2194e5=_0x22d2c9['\x69\x6e\x64\x65\x78\x4f\x66'](_0x2194e5);}for(let _0x3ab1b5=-0x1*-0xccb+0x3*-0xcf+-0xa5e,_0x54b0c2=_0x19d403['\x6c\x65\x6e\x67\x74\x68'];_0x3ab1b5<_0x54b0c2;_0x3ab1b5++){_0x155417+='\x25'+('\x30\x30'+_0x19d403['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x3ab1b5)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](-0x107b*0x1+-0x22ed+0x3378))['\x73\x6c\x69\x63\x65'](-(-0x2*-0x626+0x1*0x122e+-0x1e78));}return decodeURIComponent(_0x155417);};const _0x2c4d72=function(_0x51cae2,_0x1c1220){let _0x7a78d4=[],_0x2ab111=0x4b0+0xc61*0x1+-0x1111,_0x4ac19a,_0x2c2146='';_0x51cae2=_0x3bd19a(_0x51cae2);let _0x4c2fd3;for(_0x4c2fd3=0x4f*0xc+0x123b+-0x15ef*0x1;_0x4c2fd3<0x1ff1+-0x1*0x10bf+-0xe32;_0x4c2fd3++){_0x7a78d4[_0x4c2fd3]=_0x4c2fd3;}for(_0x4c2fd3=0x103d+-0x3b0+-0xc8d;_0x4c2fd3<-0x1ddf+0x1a27+0x4b8;_0x4c2fd3++){_0x2ab111=(_0x2ab111+_0x7a78d4[_0x4c2fd3]+_0x1c1220['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x4c2fd3%_0x1c1220['\x6c\x65\x6e\x67\x74\x68']))%(-0x245b+0x20e0+0x47b),_0x4ac19a=_0x7a78d4[_0x4c2fd3],_0x7a78d4[_0x4c2fd3]=_0x7a78d4[_0x2ab111],_0x7a78d4[_0x2ab111]=_0x4ac19a;}_0x4c2fd3=-0x21d4+-0x175a+-0xd*-0x466,_0x2ab111=-0xff7*0x1+0x5*0x115+-0x547*-0x2;for(let _0x51b7ab=0xc4c+0x5a*0x2a+-0x1b10;_0x51b7ab<_0x51cae2['\x6c\x65\x6e\x67\x74\x68'];_0x51b7ab++){_0x4c2fd3=(_0x4c2fd3+(0x4c3+0x1348+-0x180a*0x1))%(0x22bf+0x1c2f+-0x3dee),_0x2ab111=(_0x2ab111+_0x7a78d4[_0x4c2fd3])%(0x2*0x98+0x1*-0x17fa+0x17ca),_0x4ac19a=_0x7a78d4[_0x4c2fd3],_0x7a78d4[_0x4c2fd3]=_0x7a78d4[_0x2ab111],_0x7a78d4[_0x2ab111]=_0x4ac19a,_0x2c2146+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](_0x51cae2['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x51b7ab)^_0x7a78d4[(_0x7a78d4[_0x4c2fd3]+_0x7a78d4[_0x2ab111])%(0x10a7+0x2*-0x821+0x9b)]);}return _0x2c2146;};_0x5704['\x46\x61\x6a\x44\x4d\x69']=_0x2c4d72,_0x5704['\x44\x44\x6f\x63\x4f\x44']={},_0x5704['\x78\x74\x61\x50\x68\x6b']=!![];}const _0x317d34=_0x1ab841[0x12dd+0x154*-0x1+-0x1189*0x1],_0x120722=_0x14cb41+_0x317d34,_0x5544de=_0x5704['\x44\x44\x6f\x63\x4f\x44'][_0x120722];return!_0x5544de?(_0x5704['\x6c\x6f\x42\x49\x69\x65']===undefined&&(_0x5704['\x6c\x6f\x42\x49\x69\x65']=!![]),_0x466945=_0x5704['\x46\x61\x6a\x44\x4d\x69'](_0x466945,_0x502659),_0x5704['\x44\x44\x6f\x63\x4f\x44'][_0x120722]=_0x466945):_0x466945=_0x5544de,_0x466945;}export function claimNudgeCooldownMs(_0x4c1e15){const _0x2ecc2b=_0x7d6d24,_0x163ff1=Number(_0x4c1e15);if(!Number[_0x2ecc2b(0x196,'\x77\x73\x76\x74')](_0x163ff1)||_0x163ff1<=-0xfbc+0x4d7*0x1+0xae5)return DEFAULT_COOLDOWN_MS;return Math[_0x2ecc2b(0x1f4,'\x62\x21\x75\x44')](MIN_COOLDOWN_MS,Math[_0x2ecc2b(0x1f3,'\x24\x68\x6d\x48')](Math[_0x2ecc2b(0x1a2,'\x74\x26\x65\x6f')](_0x163ff1),MAX_COOLDOWN_MS));}function normalizeClaimCode(_0x259430){const _0x1a7719=_0x7d6d24,_0x470671=_0x259430?.[_0x1a7719(0x17b,'\x25\x4d\x6e\x52')]();return _0x470671&&CLAIM_CODE_RE[_0x1a7719(0x1cc,'\x48\x38\x40\x54')](_0x470671)?_0x470671:undefined;}function trustedClaimUrl(_0x254a68,_0x466df4){const _0x9aeaca=_0x7d6d24,_0x3c888e=_0x254a68?.[_0x9aeaca(0x1a1,'\x32\x6c\x5a\x21')]();if(!_0x3c888e||_0x3c888e[_0x9aeaca(0x1f2,'\x7a\x23\x76\x4f')]>0x2f*-0x86+-0xf75+0x300f)return undefined;try{if(_0x9aeaca(0x1b8,'\x4f\x5d\x25\x56')!==_0x9aeaca(0x18c,'\x4d\x38\x33\x21')){const _0x269dcc=new URL(_0x3c888e),_0x3bf09f=new URL(_0x466df4);if(_0x269dcc['\x75\x73\x65\x72\x6e\x61\x6d\x65']||_0x269dcc[_0x9aeaca(0x1ce,'\x35\x4d\x30\x65')])return undefined;const _0x46a680=_0x269dcc[_0x9aeaca(0x1bd,'\x24\x79\x4f\x75')]===_0x3bf09f[_0x9aeaca(0x197,'\x48\x38\x40\x54')],_0x75de07=_0x269dcc[_0x9aeaca(0x1bf,'\x32\x6c\x5a\x21')]==='\x65\x76\x6f\x6d\x61\x70\x2e\x61'+'\x69'||_0x269dcc['\x68\x6f\x73\x74\x6e\x61\x6d\x65'][_0x9aeaca(0x181,'\x4d\x38\x33\x21')](_0x9aeaca(0x1ec,'\x24\x26\x31\x71')+'\x61\x69');if(_0x269dcc[_0x9aeaca(0x1d3,'\x25\x4d\x6e\x52')]===_0x9aeaca(0x19a,'\x4d\x38\x33\x21')&&(_0x46a680||_0x75de07))return _0x269dcc[_0x9aeaca(0x1c2,'\x62\x21\x75\x44')]();if(_0x269dcc[_0x9aeaca(0x18d,'\x52\x38\x30\x56')]===_0x9aeaca(0x1e7,'\x56\x4a\x66\x4e')&&_0x46a680&&isLoopback(_0x269dcc[_0x9aeaca(0x1b5,'\x7a\x23\x76\x4f')]))return _0x269dcc[_0x9aeaca(0x1c9,'\x55\x28\x6e\x68')]();}else return{'\x76\x65\x72\x73\x69\x6f\x6e':0x1,'\x65\x6e\x74\x72\x69\x65\x73':{}};}catch{}return undefined;}function isLoopback(_0x16cc30){const _0x4036f2=_0x7d6d24;return _0x16cc30==='\x6c\x6f\x63\x61\x6c\x68\x6f\x73'+'\x74'||_0x16cc30===_0x4036f2(0x19b,'\x2a\x30\x25\x21')+'\x31'||_0x16cc30==='\x5b\x3a\x3a\x31\x5d';}function readState(_0xb98cd7){const _0x17c415=_0x7d6d24;try{const _0xf17eb2=_0xb98cd7[_0x17c415(0x1c4,'\x57\x57\x65\x25')](STATE_KEY);if(!_0xf17eb2)return{'\x76\x65\x72\x73\x69\x6f\x6e':0x1,'\x65\x6e\x74\x72\x69\x65\x73':{}};const _0x1b8250=JSON[_0x17c415(0x1d5,'\x51\x72\x46\x4c')](_0xf17eb2);if(_0x1b8250['\x76\x65\x72\x73\x69\x6f\x6e']!==-0x195e*-0x1+0x24d8+-0x4c9*0xd||!_0x1b8250[_0x17c415(0x1cb,'\x64\x4b\x69\x5a')]||typeof _0x1b8250[_0x17c415(0x1c3,'\x25\x4d\x6e\x52')]!==_0x17c415(0x1a3,'\x51\x72\x46\x4c')||Array['\x69\x73\x41\x72\x72\x61\x79'](_0x1b8250[_0x17c415(0x1ac,'\x41\x5a\x24\x58')])){if(_0x17c415(0x1e2,'\x24\x79\x4f\x75')==='\x51\x72\x49\x6e\x6a')return{'\x76\x65\x72\x73\x69\x6f\x6e':0x1,'\x65\x6e\x74\x72\x69\x65\x73':{}};else{if(_0x12baf5[_0x17c415(0x1d6,'\x4d\x38\x33\x21')](_0x358041)&&typeof _0x4738b8===_0x17c415(0x17c,'\x23\x5a\x71\x79')&&_0x2831c1[_0x17c415(0x1af,'\x24\x26\x31\x71')](_0xcf4475)&&_0x527c1f>-0x1cc3+0x1*0xf5a+0xd69)_0x40ce04[_0x5a18b5]=_0x5215e4;}}const _0xe84a61={};for(const [_0x35257a,_0x20355b]of Object[_0x17c415(0x1d8,'\x56\x4a\x66\x4e')](_0x1b8250[_0x17c415(0x1c1,'\x6c\x67\x75\x57')])){if(_0x17c415(0x1dc,'\x64\x29\x6d\x5e')===_0x17c415(0x1dd,'\x26\x79\x67\x2a')){const _0x52138f={..._0x126c9f['\x65\x6e\x74\x72\x69\x65\x73']};for(const [_0x58a310,_0x4f45b1]of _0x309630[_0x17c415(0x1cb,'\x64\x4b\x69\x5a')](_0x187832[_0x17c415(0x191,'\x24\x68\x6d\x48')]))_0x52138f[_0x58a310]=_0x440329['\x6d\x61\x78'](_0x52138f[_0x58a310]??0x1*-0x19cd+0x108f+0x93e,_0x4f45b1);return{'\x76\x65\x72\x73\x69\x6f\x6e':0x1,'\x65\x6e\x74\x72\x69\x65\x73':_0x52138f};}else{if(CLAIM_CODE_RE[_0x17c415(0x1db,'\x41\x5a\x24\x58')](_0x35257a)&&typeof _0x20355b===_0x17c415(0x192,'\x41\x5a\x24\x58')&&Number[_0x17c415(0x18e,'\x48\x38\x40\x54')](_0x20355b)&&_0x20355b>0x1*-0x1eb5+-0x231*-0x1+0x1c84)_0xe84a61[_0x35257a]=_0x20355b;}}return{'\x76\x65\x72\x73\x69\x6f\x6e':0x1,'\x65\x6e\x74\x72\x69\x65\x73':_0xe84a61};}catch{return{'\x76\x65\x72\x73\x69\x6f\x6e':0x1,'\x65\x6e\x74\x72\x69\x65\x73':{}};}}function _0x20bc(){const _0x34dcf6=['\x57\x50\x35\x76\x57\x37\x38','\x62\x38\x6b\x61\x67\x38\x6b\x78','\x41\x49\x5a\x64\x52\x53\x6f\x2f\x67\x72\x78\x64\x54\x43\x6b\x72','\x63\x68\x46\x64\x4e\x6d\x6f\x6c','\x57\x4f\x2f\x63\x51\x67\x48\x42\x63\x74\x79','\x57\x4f\x38\x50\x57\x34\x70\x64\x4d\x6d\x6f\x5a\x57\x52\x74\x64\x56\x43\x6f\x4c\x57\x36\x48\x30\x73\x76\x6c\x63\x4f\x61','\x57\x35\x78\x64\x50\x74\x43\x6c\x6e\x71\x6c\x64\x4f\x4a\x6e\x63\x66\x61','\x6e\x67\x65\x47\x61\x43\x6b\x52\x6f\x74\x47','\x57\x52\x64\x64\x49\x33\x72\x78\x57\x37\x42\x64\x53\x32\x75','\x57\x52\x6e\x2b\x57\x50\x6c\x64\x48\x38\x6b\x6c\x57\x52\x66\x74\x45\x71','\x57\x52\x78\x64\x55\x6d\x6f\x4e\x70\x53\x6f\x37\x76\x57\x2f\x63\x4d\x61','\x57\x50\x69\x6d\x57\x34\x47\x59\x57\x52\x46\x64\x51\x43\x6b\x59','\x57\x50\x4c\x6d\x57\x50\x62\x71\x69\x4e\x47\x67','\x64\x73\x37\x64\x48\x47\x78\x63\x54\x53\x6f\x42\x77\x71','\x57\x52\x44\x72\x57\x35\x71\x66\x57\x51\x30','\x72\x32\x74\x63\x4b\x58\x70\x63\x4e\x53\x6f\x79\x57\x37\x70\x63\x4f\x6d\x6f\x38\x70\x53\x6f\x41\x57\x35\x35\x35','\x74\x4a\x6c\x63\x4a\x6d\x6b\x71\x73\x77\x65\x49\x78\x47\x74\x64\x56\x77\x53\x47\x41\x6d\x6f\x50','\x72\x32\x42\x63\x4b\x62\x68\x63\x4e\x53\x6f\x76\x57\x37\x46\x63\x55\x53\x6f\x32\x62\x6d\x6f\x32\x57\x37\x7a\x66','\x46\x43\x6f\x6c\x44\x53\x6f\x58\x57\x35\x30\x68\x6a\x33\x53','\x72\x53\x6b\x76\x57\x50\x61','\x57\x4f\x6e\x33\x57\x50\x78\x64\x4c\x53\x6b\x7a','\x57\x51\x6c\x63\x55\x53\x6f\x47\x57\x52\x56\x63\x56\x43\x6f\x78\x57\x34\x56\x63\x49\x47','\x57\x37\x61\x6f\x57\x51\x56\x64\x50\x53\x6f\x41\x63\x31\x70\x64\x4c\x57','\x57\x51\x66\x73\x71\x4e\x68\x64\x54\x6d\x6f\x65\x57\x36\x70\x63\x47\x61','\x6f\x43\x6f\x79\x46\x6d\x6f\x61\x62\x71','\x57\x36\x6c\x63\x50\x68\x30\x6c\x6e\x38\x6b\x67\x43\x61','\x73\x43\x6b\x58\x76\x6d\x6b\x6d\x57\x34\x66\x58','\x6a\x67\x52\x63\x56\x30\x42\x63\x4d\x53\x6f\x70\x45\x31\x38','\x57\x34\x33\x64\x52\x4d\x53','\x57\x34\x42\x64\x47\x78\x66\x39\x42\x75\x4b\x44\x57\x36\x30','\x57\x4f\x68\x64\x4d\x6d\x6b\x68\x57\x36\x6e\x79\x6a\x6d\x6f\x75\x57\x37\x71','\x57\x37\x79\x70\x57\x4f\x74\x64\x51\x6d\x6f\x44\x64\x61','\x57\x34\x44\x6e\x57\x4f\x4c\x4f','\x57\x36\x30\x73\x57\x34\x33\x64\x52\x53\x6f\x41\x71\x4d\x6c\x64\x48\x61','\x57\x52\x35\x4b\x57\x4f\x6c\x64\x48\x6d\x6b\x56\x57\x36\x69','\x6e\x77\x56\x63\x56\x43\x6b\x32\x74\x61\x68\x63\x53\x38\x6b\x6f','\x57\x36\x78\x64\x50\x76\x66\x43\x46\x4d\x69\x37\x57\x34\x61','\x57\x51\x70\x64\x56\x4b\x30\x72\x76\x68\x57\x37\x57\x35\x53','\x57\x4f\x33\x63\x4b\x4b\x33\x63\x52\x53\x6b\x34\x62\x67\x39\x49\x63\x59\x69','\x62\x38\x6b\x54\x74\x43\x6f\x61','\x57\x34\x5a\x63\x52\x78\x44\x77\x66\x64\x33\x64\x51\x76\x57','\x57\x52\x4c\x2b\x6d\x65\x4b','\x67\x64\x56\x64\x49\x4b\x56\x64\x4c\x61','\x6b\x6d\x6b\x63\x57\x36\x6c\x64\x4f\x30\x76\x6b','\x57\x35\x4c\x31\x57\x4f\x70\x63\x4d\x43\x6b\x49\x57\x36\x46\x63\x56\x47','\x57\x36\x46\x64\x56\x6d\x6b\x32\x57\x51\x70\x63\x55\x38\x6f\x2f\x57\x36\x52\x63\x53\x71\x30','\x57\x36\x6c\x64\x51\x66\x65','\x57\x52\x52\x63\x50\x47\x53\x65\x61\x5a\x76\x37\x57\x37\x61\x57\x57\x37\x57\x4e\x6d\x53\x6f\x68','\x57\x36\x70\x64\x47\x31\x6c\x64\x48\x53\x6f\x52\x57\x51\x4f\x4f\x57\x50\x43','\x7a\x38\x6f\x50\x75\x43\x6b\x43\x75\x38\x6f\x74\x57\x52\x66\x72','\x57\x34\x37\x64\x53\x64\x70\x64\x56\x65\x34','\x79\x33\x4e\x64\x55\x62\x56\x63\x4a\x43\x6b\x6c\x6f\x30\x68\x64\x54\x43\x6f\x31\x57\x34\x69\x32\x57\x37\x4f','\x71\x53\x6b\x51\x74\x43\x6b\x43\x57\x34\x31\x4d\x77\x57','\x61\x38\x6b\x44\x61\x6d\x6b\x78\x57\x37\x57','\x57\x36\x38\x59\x57\x36\x71','\x44\x6d\x6f\x70\x66\x74\x68\x64\x47\x53\x6f\x62\x46\x6d\x6b\x48','\x57\x52\x37\x64\x4d\x38\x6f\x39\x57\x50\x76\x4d\x57\x36\x42\x64\x4f\x61','\x57\x34\x64\x64\x55\x31\x39\x79\x76\x49\x57\x41\x57\x36\x61','\x79\x6d\x6b\x77\x63\x65\x61','\x57\x52\x39\x4a\x57\x52\x64\x64\x4e\x43\x6b\x59\x57\x52\x66\x74\x44\x61','\x57\x4f\x6e\x4a\x57\x52\x52\x64\x53\x38\x6b\x6a','\x57\x34\x53\x56\x44\x53\x6b\x67\x6d\x32\x50\x4d\x6f\x71','\x63\x38\x6f\x67\x72\x53\x6f\x6c\x6e\x61','\x57\x51\x47\x32\x6f\x4b\x47\x4c\x77\x6d\x6f\x49\x7a\x71','\x76\x6d\x6b\x34\x79\x58\x48\x38','\x57\x37\x47\x34\x79\x65\x47\x54\x45\x53\x6f\x62\x42\x76\x61','\x76\x53\x6f\x30\x57\x4f\x37\x64\x56\x33\x56\x64\x4c\x31\x74\x64\x49\x53\x6f\x55\x67\x38\x6f\x73\x79\x58\x47','\x57\x51\x76\x6f\x72\x4b\x68\x64\x50\x43\x6f\x72','\x43\x43\x6b\x6c\x57\x37\x62\x71\x6d\x71','\x74\x38\x6f\x76\x67\x33\x62\x54\x6a\x47','\x70\x6d\x6f\x36\x73\x38\x6b\x45\x57\x36\x57','\x57\x51\x76\x4a\x6b\x4c\x61\x51\x75\x6d\x6f\x49\x78\x57','\x77\x38\x6b\x61\x57\x35\x5a\x63\x4a\x38\x6b\x61\x57\x51\x79\x30\x57\x52\x38','\x72\x53\x6f\x6b\x57\x37\x54\x58\x57\x50\x33\x63\x51\x43\x6f\x37','\x57\x4f\x44\x42\x57\x35\x71\x50\x57\x4f\x53\x2f\x6a\x4e\x65','\x67\x77\x56\x64\x47\x43\x6f\x75\x67\x74\x76\x50','\x42\x43\x6f\x6b\x57\x34\x71\x53\x57\x34\x76\x68\x7a\x77\x4b','\x78\x67\x64\x64\x48\x49\x68\x63\x56\x53\x6f\x57\x74\x58\x75','\x57\x4f\x6a\x78\x57\x36\x78\x64\x4a\x71\x35\x77\x6c\x43\x6b\x6c','\x57\x35\x6e\x31\x57\x50\x42\x63\x48\x38\x6f\x57\x57\x51\x6c\x63\x55\x43\x6f\x69','\x57\x52\x70\x63\x54\x72\x71\x59\x57\x50\x78\x63\x49\x5a\x68\x63\x56\x33\x52\x64\x4c\x4b\x42\x64\x4f\x53\x6f\x46','\x71\x43\x6f\x78\x57\x52\x37\x64\x4d\x6d\x6b\x4f\x41\x43\x6b\x6f\x61\x61','\x57\x35\x47\x62\x57\x34\x75\x2b\x57\x51\x74\x64\x52\x61','\x57\x34\x33\x64\x53\x49\x4a\x64\x4f\x76\x75\x53\x57\x51\x69','\x57\x36\x30\x79\x57\x50\x37\x64\x55\x57','\x45\x38\x6b\x4a\x57\x51\x4c\x67\x7a\x53\x6b\x4b\x63\x6d\x6f\x50\x78\x43\x6f\x5a\x42\x61\x69\x39','\x57\x35\x64\x64\x52\x4d\x64\x64\x56\x6d\x6f\x72\x57\x50\x4f\x75\x57\x51\x79','\x75\x38\x6f\x74\x68\x77\x76\x48','\x62\x53\x6f\x44\x57\x50\x79\x58\x78\x43\x6f\x4d\x45\x43\x6b\x59\x6f\x57\x2f\x63\x48\x4d\x70\x63\x50\x47','\x57\x51\x48\x76\x75\x67\x42\x64\x56\x53\x6f\x79\x57\x37\x6d','\x41\x43\x6b\x41\x78\x61','\x64\x68\x46\x64\x4d\x53\x6f\x73\x68\x5a\x6e\x31\x61\x47','\x57\x35\x64\x64\x4a\x57\x57','\x6e\x38\x6b\x62\x57\x37\x52\x64\x54\x75\x6d','\x57\x51\x6a\x31\x57\x4f\x78\x64\x47\x61','\x62\x53\x6b\x6b\x57\x35\x4e\x63\x4e\x38\x6f\x49\x6e\x53\x6f\x71\x69\x4b\x5a\x64\x53\x58\x4c\x34\x57\x35\x65','\x57\x34\x34\x42\x57\x35\x75\x50\x57\x52\x2f\x64\x55\x38\x6b\x55','\x57\x36\x4a\x63\x48\x32\x47\x6a\x46\x53\x6b\x75\x7a\x48\x69','\x57\x35\x30\x36\x57\x51\x4a\x64\x4b\x6d\x6f\x33\x6c\x77\x4a\x64\x56\x47','\x75\x38\x6b\x48\x73\x53\x6b\x41','\x62\x43\x6b\x56\x57\x51\x5a\x63\x48\x63\x6d','\x57\x4f\x52\x64\x4e\x43\x6f\x70\x57\x4f\x6a\x2b','\x71\x71\x2f\x64\x48\x43\x6f\x75\x6b\x4d\x52\x64\x4b\x43\x6f\x2f','\x57\x50\x50\x56\x57\x52\x6e\x72\x65\x77\x75\x69','\x57\x52\x35\x78\x74\x78\x46\x64\x53\x47','\x70\x53\x6f\x38\x46\x38\x6b\x6f\x57\x35\x75\x62\x57\x35\x78\x63\x4d\x61','\x43\x43\x6f\x76\x6f\x33\x4c\x55','\x57\x51\x6e\x4a\x6c\x47','\x57\x37\x47\x66\x57\x34\x71\x4a\x57\x50\x4b','\x7a\x38\x6f\x6a\x43\x43\x6b\x38\x43\x38\x6b\x53\x57\x50\x58\x52','\x57\x4f\x2f\x63\x53\x4e\x69','\x57\x34\x6d\x62\x57\x35\x75\x52\x57\x36\x57','\x43\x78\x70\x63\x52\x38\x6b\x44\x57\x34\x68\x63\x55\x61\x65','\x79\x53\x6b\x38\x57\x52\x42\x63\x4c\x4a\x74\x63\x4d\x62\x53','\x45\x6d\x6f\x73\x6a\x59\x52\x64\x48\x43\x6f\x6e\x45\x57','\x6d\x4d\x6d\x31\x67\x53\x6b\x56\x63\x74\x4c\x56','\x6d\x38\x6f\x7a\x6a\x74\x46\x64\x47\x43\x6f\x6a\x45\x6d\x6f\x51','\x67\x73\x68\x64\x4c\x74\x64\x63\x56\x53\x6f\x39\x77\x65\x65','\x61\x64\x4e\x64\x4e\x5a\x52\x63\x53\x6d\x6f\x2f\x77\x71','\x74\x67\x64\x63\x4e\x62\x6c\x63\x4e\x38\x6f\x44\x57\x37\x56\x64\x49\x6d\x6f\x43\x66\x38\x6f\x6f\x57\x35\x58\x39\x65\x47','\x57\x37\x61\x71\x57\x35\x43\x30\x57\x52\x52\x64\x51\x6d\x6b\x34\x57\x37\x57','\x76\x53\x6b\x63\x57\x34\x6a\x48\x63\x6d\x6b\x44\x69\x38\x6b\x64','\x57\x34\x38\x4c\x41\x38\x6b\x76\x6b\x77\x6d','\x57\x36\x52\x63\x4f\x32\x43'];_0x20bc=function(){return _0x34dcf6;};return _0x20bc();}function mergeState(_0x13e6be,_0x446754){const _0x234ca1=_0x7d6d24,_0x58e759={..._0x13e6be[_0x234ca1(0x1e8,'\x7a\x70\x37\x5a')]};for(const [_0x52f1d3,_0x3d2962]of Object[_0x234ca1(0x1d1,'\x76\x46\x78\x49')](_0x446754[_0x234ca1(0x1a4,'\x74\x35\x48\x4a')]))_0x58e759[_0x52f1d3]=Math[_0x234ca1(0x194,'\x35\x4d\x30\x65')](_0x58e759[_0x52f1d3]??-0xe*0x5e+-0x3f2*0x3+0x10fa,_0x3d2962);return{'\x76\x65\x72\x73\x69\x6f\x6e':0x1,'\x65\x6e\x74\x72\x69\x65\x73':_0x58e759};}function pruneState(_0x17a211){const _0x4b6fed=_0x7d6d24;return{'\x76\x65\x72\x73\x69\x6f\x6e':0x1,'\x65\x6e\x74\x72\x69\x65\x73':Object[_0x4b6fed(0x19c,'\x40\x46\x25\x2a')+_0x4b6fed(0x1d4,'\x77\x25\x38\x5e')](Object[_0x4b6fed(0x1b0,'\x26\x79\x67\x2a')](_0x17a211)[_0x4b6fed(0x1f5,'\x49\x6f\x57\x46')]((_0x3fec9a,_0x2da868)=>_0x2da868[-0x1*0x317+-0x11d*-0x6+-0x396]-_0x3fec9a[-0x11f*-0x2+-0xb*0x133+-0xaf4*-0x1])[_0x4b6fed(0x1e0,'\x76\x46\x78\x49')](0x4*-0x3+0x2407+-0x23fb,MAX_STATE_ENTRIES))};}
|
|
1
|
+
const _0x121f55=_0x21ca;(function(_0x3af72d,_0x6d8d83){const _0x5e097b=_0x21ca,_0x562f03=_0x3af72d();while(!![]){try{const _0x4304c1=-parseInt(_0x5e097b(0x239,'\x74\x74\x37\x63'))/(0x129a+-0x289+-0x1010)*(-parseInt(_0x5e097b(0x229,'\x4d\x52\x59\x4b'))/(-0x17ac+0x2*0x6e1+0xa*0xfe))+-parseInt(_0x5e097b(0x217,'\x25\x34\x65\x33'))/(0x1*0x1b25+-0x1e4f+0x1*0x32d)*(parseInt(_0x5e097b(0x1d9,'\x73\x74\x6e\x4d'))/(-0x2*0xdfa+-0x1549+0x3141))+-parseInt(_0x5e097b(0x1ff,'\x38\x67\x58\x30'))/(-0x76a+-0x1fe*0x6+0x1363)*(-parseInt(_0x5e097b(0x1f9,'\x26\x4d\x32\x42'))/(0x27c*-0xb+0x1*-0x119f+0x2cf9))+-parseInt(_0x5e097b(0x23e,'\x43\x36\x5a\x5d'))/(-0x3*0x942+0x7*0x56+0x1973)*(-parseInt(_0x5e097b(0x1e6,'\x74\x51\x50\x40'))/(-0x19b1+0x16*-0x6e+0x232d))+parseInt(_0x5e097b(0x20e,'\x26\x4d\x32\x42'))/(-0x188*0xf+0x1cff*-0x1+0x2*0x1a00)+-parseInt(_0x5e097b(0x22c,'\x70\x5d\x6b\x71'))/(-0x3*-0x868+-0x35*-0x4d+0x291f*-0x1)*(-parseInt(_0x5e097b(0x255,'\x74\x74\x37\x63'))/(0x7a*-0x4d+-0x5*-0x17b+0x1d56))+parseInt(_0x5e097b(0x1fd,'\x67\x6b\x41\x6b'))/(-0x2510+-0xe*-0x11+-0x1*-0x242e)*(-parseInt(_0x5e097b(0x222,'\x6c\x79\x48\x39'))/(-0x24fb+0x1dfb+0x70d));if(_0x4304c1===_0x6d8d83)break;else _0x562f03['push'](_0x562f03['shift']());}catch(_0x234c07){_0x562f03['push'](_0x562f03['shift']());}}}(_0x7e62,-0x30fe9+0x1998c+-0x2*-0x189e1));const DEFAULT_COOLDOWN_MS=(0x1054+-0x1304+0x15b*0x2)*(0x24e9+-0xd5e+-0x174f)*(-0x3cb1+-0x1*0x5b78+0x18289),MIN_COOLDOWN_MS=0x731f*-0x2+0x2*-0xb92e+0x342fa,MAX_COOLDOWN_MS=(-0x19a6+0x1dad+-0x3e9)*(-0x13ef+0x2700+0x653*-0x3)*(0x1*0x22ab+-0x39*-0x54+-0x3523)*(0x25e7+-0x12991+0x1ee0a),MAX_STATE_ENTRIES=0xa67*0x1+-0x1f99*-0x1+-0x2*0x14f0,STATE_KEY=_0x121f55(0x248,'\x66\x55\x51\x5b')+_0x121f55(0x232,'\x43\x4f\x68\x26')+_0x121f55(0x1fb,'\x6c\x79\x48\x39'),CLAIM_CODE_RE=/^[A-Za-z0-9][A-Za-z0-9_-]{1,127}$/;export function createClaimNudge(_0x41d518){const _0x5a051a=_0x121f55,_0x4ea33f=_0x41d518[_0x5a051a(0x1f1,'\x46\x43\x34\x54')]??process.env,_0x3f0d5e=_0x41d518[_0x5a051a(0x21b,'\x65\x52\x4a\x62')]??(()=>Date['\x6e\x6f\x77']()),_0x1a8d56=_0x41d518['\x77\x72\x69\x74\x65']??(_0x4744d9=>{const _0x5dff0a=_0x5a051a;process[_0x5dff0a(0x1e4,'\x37\x6c\x5d\x6f')][_0x5dff0a(0x1da,'\x40\x4c\x40\x49')](_0x4744d9);});let _0x4d8d3e={'\x76\x65\x72\x73\x69\x6f\x6e':0x1,'\x65\x6e\x74\x72\x69\x65\x73':{}};return _0x30e4a1=>{const _0xadfa97=_0x5a051a;if('\x52\x71\x6e\x6d\x6b'!==_0xadfa97(0x23d,'\x25\x34\x65\x33')){const _0x450843=_0x2ec326?.[_0xadfa97(0x20d,'\x46\x67\x77\x41')]();if(!_0x450843||_0x450843['\x6c\x65\x6e\x67\x74\x68']>-0x302+0x5ab*-0x6+0x2d04)return _0x33633e;try{const _0x5682c3=new _0x4703a5(_0x450843),_0x1d57ff=new _0x4ca2e1(_0x150799);if(_0x5682c3[_0xadfa97(0x233,'\x51\x59\x7a\x36')]||_0x5682c3[_0xadfa97(0x1ed,'\x30\x70\x51\x6d')])return _0x97f910;const _0x26bce2=_0x5682c3[_0xadfa97(0x24a,'\x6d\x5a\x2a\x23')]===_0x1d57ff[_0xadfa97(0x1f6,'\x2a\x7a\x5d\x31')],_0x2b6d1f=_0x5682c3[_0xadfa97(0x246,'\x59\x7a\x4c\x46')]===_0xadfa97(0x1fc,'\x28\x74\x47\x59')+'\x69'||_0x5682c3['\x68\x6f\x73\x74\x6e\x61\x6d\x65'][_0xadfa97(0x24e,'\x6c\x79\x48\x39')](_0xadfa97(0x1e2,'\x5b\x33\x38\x71')+'\x61\x69');if(_0x5682c3[_0xadfa97(0x202,'\x4c\x6e\x6a\x6c')]==='\x68\x74\x74\x70\x73\x3a'&&(_0x26bce2||_0x2b6d1f))return _0x5682c3[_0xadfa97(0x213,'\x4a\x63\x21\x4d')]();if(_0x5682c3['\x70\x72\x6f\x74\x6f\x63\x6f\x6c']===_0xadfa97(0x23b,'\x57\x47\x39\x39')&&_0x26bce2&&_0x2a8e2e(_0x5682c3[_0xadfa97(0x20c,'\x71\x46\x76\x48')]))return _0x5682c3[_0xadfa97(0x20a,'\x67\x6b\x41\x6b')]();}catch{}return _0x5b7b49;}else{if(!_0x30e4a1['\x6f\x6b']||_0x4ea33f[_0xadfa97(0x1d7,'\x65\x52\x4a\x62')+_0xadfa97(0x1f2,'\x40\x4f\x68\x52')+_0xadfa97(0x1dc,'\x65\x52\x4a\x62')+_0xadfa97(0x249,'\x4a\x63\x21\x4d')]==='\x31')return![];const _0x47f42c=normalizeClaimCode(_0x30e4a1['\x63\x6c\x61\x69\x6d\x43\x6f\x64'+'\x65']),_0x56c9ff=_0x47f42c?trustedClaimUrl(_0x30e4a1[_0xadfa97(0x24b,'\x6c\x79\x48\x39')],_0x41d518['\x68\x75\x62\x55\x72\x6c']):undefined;if(!_0x47f42c||!_0x56c9ff)return![];const _0x5d89ea=_0x3f0d5e(),_0x3b99a7=claimNudgeCooldownMs(_0x4ea33f[_0xadfa97(0x236,'\x4d\x52\x59\x4b')+_0xadfa97(0x1dd,'\x6d\x66\x29\x79')+_0xadfa97(0x201,'\x23\x37\x34\x39')+_0xadfa97(0x226,'\x25\x34\x65\x33')]),_0x279328=mergeState(readState(_0x41d518['\x73\x74\x6f\x72\x65']),_0x4d8d3e),_0x5bc524=_0x279328[_0xadfa97(0x1d8,'\x73\x74\x6e\x4d')][_0x47f42c]??-0x119e+0x8d+-0x11*-0x101;if(_0x5bc524>-0x9*-0x412+0x11ab+-0x364d&&_0x5d89ea-_0x5bc524<_0x3b99a7)return![];const _0x301c8a=['',_0xadfa97(0x1ee,'\x63\x39\x64\x33')+_0xadfa97(0x243,'\x38\x67\x58\x30')+_0xadfa97(0x1fa,'\x51\x59\x7a\x36')+_0xadfa97(0x1e5,'\x21\x43\x54\x30')+_0xadfa97(0x1f4,'\x4d\x52\x59\x4b')+_0xadfa97(0x22a,'\x6d\x66\x29\x79')+'\x6f\x4d\x61\x70\x20\x77\x65\x62'+_0xadfa97(0x234,'\x30\x70\x51\x6d')+'\x2e',_0xadfa97(0x224,'\x6c\x79\x48\x39')+_0xadfa97(0x200,'\x40\x4f\x68\x52')+_0x56c9ff,_0xadfa97(0x244,'\x63\x39\x64\x33')+_0xadfa97(0x223,'\x23\x37\x34\x39')+_0x47f42c,_0xadfa97(0x1e7,'\x43\x4f\x68\x26')+_0xadfa97(0x218,'\x65\x52\x4a\x62')+_0xadfa97(0x20b,'\x37\x6c\x5d\x6f')+_0xadfa97(0x251,'\x25\x57\x71\x65')+_0xadfa97(0x23a,'\x51\x75\x28\x66')+'\x73\x20\x74\x6f\x20\x72\x75\x6e'+_0xadfa97(0x242,'\x6c\x69\x66\x37')+_0xadfa97(0x1f8,'\x40\x38\x33\x57'),''][_0xadfa97(0x240,'\x23\x4b\x52\x63')]('\x0a');try{if(_0xadfa97(0x22b,'\x4d\x77\x50\x5d')!==_0xadfa97(0x1e3,'\x4d\x52\x59\x4b'))_0x1a8d56(_0x301c8a);else return{'\x76\x65\x72\x73\x69\x6f\x6e':0x1,'\x65\x6e\x74\x72\x69\x65\x73':{}};}catch{return![];}_0x4d8d3e=pruneState({..._0x279328[_0xadfa97(0x256,'\x40\x38\x33\x57')],[_0x47f42c]:_0x5d89ea});try{if('\x55\x79\x6b\x63\x52'===_0xadfa97(0x1de,'\x64\x45\x4c\x37'))return![];else _0x41d518[_0xadfa97(0x211,'\x4a\x63\x21\x4d')][_0xadfa97(0x216,'\x23\x37\x34\x39')](STATE_KEY,JSON[_0xadfa97(0x221,'\x24\x26\x23\x71')+'\x79'](_0x4d8d3e));}catch{}return!![];}};}export function wrapHelloWithClaimNudge(_0x51ec9f,_0x1621d8){return async _0xb66263=>{const _0x11ae24=await _0x51ec9f(_0xb66263);try{_0x1621d8(_0x11ae24);}catch{}return _0x11ae24;};}export function claimNudgeCooldownMs(_0x4db788){const _0x30eba4=_0x121f55,_0x3bd2cc=Number(_0x4db788);if(!Number[_0x30eba4(0x254,'\x37\x6c\x5d\x6f')](_0x3bd2cc)||_0x3bd2cc<=-0x1f*-0xb+-0x104b+-0xa*-0x17f)return DEFAULT_COOLDOWN_MS;return Math[_0x30eba4(0x21f,'\x64\x45\x4c\x37')](MIN_COOLDOWN_MS,Math[_0x30eba4(0x227,'\x46\x67\x77\x41')](Math[_0x30eba4(0x237,'\x6c\x69\x66\x37')](_0x3bd2cc),MAX_COOLDOWN_MS));}function normalizeClaimCode(_0x86866a){const _0x2d032d=_0x121f55,_0x30dfb5=_0x86866a?.[_0x2d032d(0x24d,'\x4d\x77\x50\x5d')]();return _0x30dfb5&&CLAIM_CODE_RE[_0x2d032d(0x22d,'\x25\x34\x65\x33')](_0x30dfb5)?_0x30dfb5:undefined;}function _0x7e62(){const _0x19eff0=['\x57\x36\x50\x33\x57\x51\x75\x79\x57\x50\x37\x63\x50\x6d\x6b\x7a\x57\x4f\x65','\x66\x38\x6b\x54\x73\x77\x4a\x63\x4a\x71','\x57\x50\x72\x76\x65\x4a\x4b\x70\x57\x37\x79\x41\x57\x35\x34','\x61\x65\x39\x6e\x57\x35\x53','\x71\x6d\x6f\x59\x57\x4f\x76\x45\x65\x63\x52\x63\x56\x53\x6b\x34','\x57\x50\x42\x63\x52\x73\x42\x63\x50\x78\x69','\x7a\x67\x42\x64\x52\x6d\x6b\x41\x57\x4f\x2f\x64\x50\x6d\x6f\x34','\x57\x50\x6d\x7a\x73\x38\x6b\x77\x67\x32\x4e\x63\x4c\x31\x4a\x64\x51\x61','\x57\x51\x6d\x45\x57\x51\x64\x63\x55\x72\x70\x64\x4e\x49\x4e\x64\x54\x47','\x57\x37\x37\x64\x4c\x6d\x6f\x49\x57\x36\x66\x51\x57\x4f\x70\x64\x49\x64\x4b','\x41\x38\x6f\x38\x57\x52\x70\x63\x4f\x61\x43\x31\x6f\x6d\x6b\x61','\x57\x51\x44\x31\x57\x36\x46\x63\x4c\x53\x6f\x73','\x6b\x43\x6f\x72\x74\x48\x75\x6c\x63\x53\x6b\x51\x57\x50\x79','\x43\x38\x6f\x6c\x6e\x6d\x6f\x67\x57\x35\x4b','\x57\x34\x68\x64\x48\x43\x6b\x42\x62\x53\x6f\x34\x57\x51\x61\x5a\x57\x37\x47','\x57\x36\x76\x4e\x57\x36\x37\x63\x48\x43\x6f\x56\x57\x50\x61\x53','\x57\x34\x35\x4d\x57\x36\x50\x38\x57\x50\x56\x64\x53\x30\x74\x64\x51\x47','\x46\x53\x6b\x55\x57\x52\x57\x32\x57\x52\x69','\x6d\x31\x69\x6b\x43\x30\x4a\x63\x53\x43\x6f\x64','\x6a\x4c\x54\x71\x57\x34\x6c\x63\x4f\x61','\x57\x51\x46\x64\x49\x53\x6b\x30\x57\x51\x46\x63\x50\x6d\x6f\x47\x6d\x53\x6f\x58','\x61\x65\x33\x64\x47\x49\x75\x52\x67\x62\x4a\x63\x50\x47','\x6d\x4b\x47\x50\x57\x51\x61','\x57\x34\x6e\x38\x57\x36\x4c\x51\x57\x50\x46\x64\x52\x57','\x6e\x43\x6f\x71\x6d\x53\x6f\x44\x57\x34\x6e\x49\x57\x50\x34\x75','\x72\x4b\x4c\x6c\x57\x36\x4a\x64\x4a\x53\x6f\x42\x57\x52\x42\x63\x53\x57','\x57\x52\x52\x63\x4b\x32\x74\x64\x4b\x76\x6c\x64\x54\x53\x6b\x37\x57\x35\x79','\x57\x37\x72\x6d\x57\x52\x43\x56\x57\x35\x52\x64\x53\x71','\x57\x50\x52\x63\x4d\x53\x6b\x67\x61\x43\x6f\x6d\x57\x52\x75\x6e\x57\x37\x61','\x6d\x38\x6f\x2b\x78\x74\x58\x34\x45\x49\x47','\x76\x75\x6c\x64\x4a\x4c\x64\x63\x54\x43\x6f\x77\x43\x38\x6f\x45','\x70\x66\x66\x59','\x6f\x75\x34\x78\x7a\x4b\x4a\x63\x55\x47','\x61\x5a\x75\x56\x57\x51\x4b\x6c\x7a\x4e\x6c\x64\x4e\x57','\x65\x38\x6f\x48\x57\x35\x46\x63\x47\x77\x69\x35\x73\x6d\x6f\x6e','\x66\x6d\x6b\x76\x73\x65\x57','\x62\x74\x43\x51\x57\x52\x6d\x58\x77\x4e\x74\x64\x4d\x57','\x57\x52\x4a\x64\x54\x6d\x6b\x5a\x57\x36\x47\x42\x6a\x38\x6b\x54\x57\x37\x75','\x6d\x65\x47\x5a\x57\x52\x4f\x4e\x45\x38\x6b\x74\x68\x57','\x65\x6d\x6b\x5a\x57\x34\x4a\x63\x4e\x4b\x47\x56\x72\x43\x6b\x46','\x68\x30\x68\x64\x4c\x74\x43\x58','\x71\x30\x74\x64\x52\x43\x6f\x34\x57\x37\x57\x31\x57\x37\x75\x38','\x79\x4a\x75\x4c\x57\x35\x4a\x64\x4b\x74\x6d\x55\x57\x50\x47','\x57\x36\x71\x6c\x57\x4f\x56\x64\x55\x53\x6b\x55\x57\x4f\x53\x4c\x57\x37\x62\x71\x57\x51\x37\x64\x4c\x71','\x7a\x4b\x30\x4e\x6c\x53\x6f\x78\x41\x57\x4f','\x57\x50\x6c\x64\x4b\x32\x72\x61\x68\x33\x46\x63\x4a\x65\x53','\x57\x34\x76\x66\x63\x6d\x6b\x69\x6a\x4d\x78\x63\x56\x71','\x57\x50\x71\x43\x73\x53\x6f\x6f\x62\x68\x64\x63\x55\x31\x2f\x64\x4a\x53\x6f\x53','\x44\x4e\x52\x64\x53\x43\x6b\x43\x57\x4f\x6d','\x64\x6d\x6b\x69\x71\x4b\x64\x63\x53\x43\x6b\x76\x74\x43\x6f\x58','\x57\x50\x74\x64\x49\x77\x50\x66\x62\x67\x33\x63\x4b\x65\x65','\x57\x35\x31\x75\x57\x34\x71\x57\x57\x52\x33\x64\x4d\x38\x6b\x73\x57\x51\x69','\x57\x4f\x5a\x64\x51\x57\x4f\x67\x6b\x71','\x6b\x65\x79\x59\x57\x52\x30\x53','\x71\x62\x6a\x50\x57\x35\x37\x63\x55\x4d\x50\x78\x57\x50\x61','\x76\x6d\x6f\x78\x66\x58\x78\x63\x4b\x43\x6b\x56\x74\x43\x6f\x42\x57\x51\x76\x4a','\x57\x36\x64\x64\x50\x38\x6b\x30\x45\x6d\x6f\x51\x65\x6d\x6b\x7a\x44\x71','\x6a\x6d\x6f\x5a\x42\x71\x47\x4f','\x45\x64\x69\x68\x57\x35\x74\x64\x4a\x73\x47','\x57\x37\x30\x6a\x57\x52\x61\x37\x57\x4f\x37\x64\x54\x38\x6f\x4d\x69\x61','\x57\x36\x37\x64\x4e\x64\x70\x63\x47\x53\x6f\x74\x57\x52\x2f\x63\x48\x43\x6f\x35\x57\x36\x4f\x74','\x57\x4f\x76\x69\x57\x51\x6c\x63\x56\x62\x2f\x64\x4e\x49\x52\x64\x4a\x47','\x6e\x4c\x4a\x64\x52\x6d\x6f\x54\x68\x43\x6b\x46\x57\x36\x34','\x43\x78\x52\x64\x54\x38\x6b\x43\x57\x4f\x4e\x64\x4f\x53\x6f\x4b\x63\x61','\x67\x31\x48\x6b\x57\x37\x74\x64\x47\x43\x6f\x6e\x57\x50\x4e\x64\x54\x57','\x45\x66\x4b\x69\x42\x4b\x5a\x63\x54\x43\x6f\x61\x76\x47','\x75\x43\x6f\x78\x66\x48\x6c\x64\x52\x43\x6b\x42\x45\x6d\x6f\x74\x57\x50\x72\x42\x57\x36\x79','\x6f\x38\x6f\x38\x57\x51\x70\x63\x53\x62\x38\x56\x6a\x6d\x6b\x71','\x57\x51\x6c\x63\x4d\x4e\x70\x64\x4c\x31\x70\x63\x4f\x6d\x6b\x39\x57\x34\x53','\x57\x34\x42\x64\x52\x32\x44\x39\x46\x6d\x6f\x68\x6b\x48\x6d','\x57\x50\x6c\x63\x56\x61\x56\x63\x50\x68\x6d\x70','\x75\x31\x2f\x63\x4e\x47','\x79\x67\x4a\x64\x49\x53\x6f\x51\x57\x34\x4f\x79\x57\x34\x71\x67','\x63\x43\x6f\x50\x44\x73\x53\x30\x6b\x53\x6b\x6c','\x74\x6d\x6f\x52\x41\x64\x43\x32\x6b\x53\x6b\x43\x57\x36\x4b','\x57\x36\x6d\x67\x57\x4f\x42\x63\x56\x43\x6f\x73\x57\x52\x53\x56\x57\x37\x66\x77','\x75\x38\x6f\x7a\x73\x64\x66\x57\x6a\x61','\x76\x67\x35\x34\x57\x37\x71\x54\x71\x33\x78\x64\x4d\x53\x6b\x50\x67\x61','\x69\x30\x4f\x4e\x43\x47','\x6c\x38\x6b\x6e\x57\x52\x2f\x63\x54\x53\x6f\x69\x45\x6d\x6f\x6d\x6b\x43\x6b\x44','\x57\x35\x2f\x64\x4a\x38\x6f\x55\x57\x36\x61\x4b\x57\x4f\x5a\x64\x49\x4a\x47','\x64\x49\x57\x51\x57\x51\x43\x64\x63\x78\x42\x63\x47\x47','\x57\x36\x56\x64\x47\x64\x4a\x64\x53\x38\x6b\x38\x44\x74\x78\x63\x4b\x57','\x57\x52\x65\x34\x67\x53\x6b\x59\x6e\x49\x52\x64\x51\x43\x6b\x69','\x57\x36\x4c\x46\x57\x35\x57\x47\x57\x52\x4b','\x77\x47\x4b\x6f\x57\x52\x74\x63\x48\x53\x6f\x65\x57\x52\x68\x64\x47\x4a\x44\x46\x75\x61','\x41\x62\x56\x63\x55\x71','\x57\x4f\x4a\x64\x4e\x6d\x6b\x4c\x57\x34\x6d\x51\x61\x43\x6b\x6d\x57\x35\x34','\x6b\x53\x6f\x2f\x43\x5a\x50\x4c\x45\x64\x37\x63\x4f\x61','\x6f\x31\x30\x67','\x57\x36\x70\x64\x4b\x38\x6f\x5a\x57\x36\x6e\x33\x57\x35\x47','\x57\x51\x4f\x48\x57\x52\x62\x6d\x57\x34\x78\x64\x50\x38\x6b\x58\x57\x4f\x79\x74\x66\x58\x79','\x57\x35\x54\x53\x57\x37\x7a\x37\x57\x50\x56\x64\x53\x4c\x38','\x6d\x53\x6f\x49\x42\x5a\x50\x4b\x45\x4a\x5a\x63\x51\x71','\x57\x36\x68\x63\x54\x72\x69\x34\x45\x33\x4e\x63\x55\x66\x42\x63\x4f\x6d\x6b\x76\x73\x57','\x57\x37\x6d\x53\x65\x76\x52\x64\x51\x77\x4a\x63\x4f\x32\x79','\x57\x37\x66\x56\x68\x53\x6b\x33\x6e\x71\x52\x64\x52\x43\x6b\x6e','\x7a\x63\x47\x63\x57\x35\x33\x63\x48\x68\x4f\x55\x57\x50\x75','\x74\x48\x6d\x6a\x57\x37\x5a\x64\x56\x38\x6f\x68\x57\x4f\x2f\x64\x4f\x57','\x57\x37\x4e\x63\x4e\x4b\x6c\x63\x51\x61','\x6c\x43\x6b\x6b\x57\x52\x42\x64\x54\x38\x6b\x31\x68\x6d\x6b\x74\x6e\x38\x6b\x61\x57\x50\x2f\x64\x4f\x30\x47\x62','\x57\x36\x79\x65\x57\x4f\x56\x64\x56\x43\x6b\x54\x57\x35\x4f\x39\x57\x34\x6a\x4c\x57\x50\x2f\x64\x50\x6d\x6b\x33','\x57\x36\x46\x63\x4a\x38\x6b\x57\x57\x52\x4a\x63\x4f\x43\x6f\x71\x65\x38\x6f\x61','\x63\x32\x6a\x79\x57\x35\x56\x64\x48\x61','\x57\x35\x6e\x65\x64\x53\x6b\x6f','\x64\x68\x4c\x4b\x57\x35\x33\x64\x4b\x57\x56\x63\x4c\x72\x43','\x57\x35\x72\x6f\x64\x38\x6b\x6f','\x57\x50\x65\x7a\x73\x38\x6f\x75\x46\x59\x37\x64\x56\x48\x47','\x57\x52\x2f\x64\x56\x53\x6b\x75\x57\x34\x38\x44\x6c\x38\x6b\x33\x57\x37\x43','\x72\x58\x47\x6a\x57\x34\x70\x63\x4e\x30\x50\x4b\x57\x50\x5a\x63\x4a\x71','\x57\x37\x46\x64\x52\x66\x47\x53\x6a\x4b\x6c\x63\x51\x4e\x30','\x67\x53\x6f\x48\x57\x35\x68\x63\x49\x30\x34\x35','\x57\x50\x78\x63\x55\x6d\x6f\x34\x6a\x53\x6f\x41','\x57\x52\x4e\x64\x51\x4c\x57','\x57\x34\x76\x44\x65\x38\x6b\x78\x6c\x4e\x64\x64\x4f\x66\x43','\x65\x75\x5a\x64\x50\x73\x6d\x57\x66\x61\x75','\x42\x6d\x6f\x6c\x57\x36\x4a\x63\x53\x6d\x6f\x55\x73\x6d\x6f\x65\x6e\x71','\x57\x4f\x33\x64\x4e\x4a\x34','\x57\x36\x58\x42\x57\x52\x61\x4c','\x57\x4f\x5a\x64\x4e\x53\x6f\x64\x57\x36\x31\x34\x57\x4f\x37\x63\x4c\x58\x65','\x76\x4d\x39\x37\x57\x37\x6a\x71\x61\x78\x78\x64\x53\x6d\x6b\x66\x65\x43\x6b\x6f\x61\x61','\x57\x51\x4a\x64\x56\x53\x6f\x41\x57\x52\x57','\x69\x5a\x75\x56\x57\x51\x4b\x6c\x65\x31\x78\x64\x4f\x71','\x57\x52\x4a\x64\x50\x30\x66\x50\x6b\x4b\x79','\x6d\x67\x76\x50\x57\x36\x68\x63\x4c\x67\x35\x55','\x57\x36\x64\x63\x48\x75\x75','\x64\x4c\x44\x6e\x57\x37\x78\x64\x4e\x38\x6f\x68\x57\x50\x47','\x77\x53\x6b\x33\x6f\x67\x31\x56\x62\x6d\x6b\x45\x57\x4f\x56\x64\x56\x53\x6b\x52\x57\x34\x61'];_0x7e62=function(){return _0x19eff0;};return _0x7e62();}function trustedClaimUrl(_0x2682ab,_0x12bd92){const _0x1af956=_0x121f55,_0x3d8ea1=_0x2682ab?.[_0x1af956(0x220,'\x21\x43\x54\x30')]();if(!_0x3d8ea1||_0x3d8ea1[_0x1af956(0x245,'\x21\x43\x54\x30')]>-0xcb6*0x1+-0x158a*0x1+0x2a40)return undefined;try{const _0x3cbea0=new URL(_0x3d8ea1),_0x31d807=new URL(_0x12bd92);if(_0x3cbea0[_0x1af956(0x210,'\x43\x36\x5a\x5d')]||_0x3cbea0[_0x1af956(0x1ea,'\x38\x67\x58\x30')])return undefined;const _0x13cb66=_0x3cbea0[_0x1af956(0x1f0,'\x7a\x6d\x21\x7a')]===_0x31d807[_0x1af956(0x219,'\x25\x57\x71\x65')],_0x1eb610=_0x3cbea0[_0x1af956(0x250,'\x23\x4b\x52\x63')]===_0x1af956(0x21c,'\x73\x74\x6e\x4d')+'\x69'||_0x3cbea0[_0x1af956(0x207,'\x4c\x6e\x6a\x6c')]['\x65\x6e\x64\x73\x57\x69\x74\x68'](_0x1af956(0x1eb,'\x6d\x5a\x2a\x23')+'\x61\x69');if(_0x3cbea0[_0x1af956(0x1e9,'\x40\x4c\x40\x49')]===_0x1af956(0x204,'\x51\x59\x7a\x36')&&(_0x13cb66||_0x1eb610))return _0x3cbea0[_0x1af956(0x23f,'\x28\x46\x56\x55')]();if(_0x3cbea0[_0x1af956(0x21e,'\x26\x4d\x32\x42')]==='\x68\x74\x74\x70\x3a'&&_0x13cb66&&isLoopback(_0x3cbea0[_0x1af956(0x1ef,'\x59\x5e\x38\x36')]))return _0x3cbea0[_0x1af956(0x24f,'\x23\x37\x34\x39')]();}catch{}return undefined;}function isLoopback(_0x249bc5){const _0x57ac99=_0x121f55;return _0x249bc5===_0x57ac99(0x1db,'\x4d\x77\x50\x5d')+'\x74'||_0x249bc5===_0x57ac99(0x215,'\x73\x74\x6e\x4d')+'\x31'||_0x249bc5===_0x57ac99(0x21a,'\x5b\x33\x38\x71');}function _0x21ca(_0x29b090,_0x406874){_0x29b090=_0x29b090-(0x25d+-0x1ff5+-0xd*-0x26b);const _0xdd3497=_0x7e62();let _0x3eb3ac=_0xdd3497[_0x29b090];if(_0x21ca['\x65\x59\x79\x6d\x46\x79']===undefined){var _0x4b8d90=function(_0x25fbd6){const _0x4ff6a1='\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';let _0x2073ec='',_0x101833='';for(let _0x37e5da=-0x2511+-0x17*-0x11b+0xba4,_0x2d2ee7,_0x54ddc3,_0x2c8274=0x11b0+-0x1995+0x7e5;_0x54ddc3=_0x25fbd6['\x63\x68\x61\x72\x41\x74'](_0x2c8274++);~_0x54ddc3&&(_0x2d2ee7=_0x37e5da%(-0x14a5+-0x25e5+0x3a8e)?_0x2d2ee7*(0x4f9+-0xf2b+0x2*0x539)+_0x54ddc3:_0x54ddc3,_0x37e5da++%(0x1*-0x471+0x16d8+0x9*-0x20b))?_0x2073ec+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0x44c+-0x23df*0x1+0x1*0x2092&_0x2d2ee7>>(-(-0x14f8+-0x14b9*-0x1+-0x5*-0xd)*_0x37e5da&-0x1c+-0x7e1*0x1+-0x803*-0x1)):-0x1cc1*0x1+-0x1bc9+0x2*0x1c45){_0x54ddc3=_0x4ff6a1['\x69\x6e\x64\x65\x78\x4f\x66'](_0x54ddc3);}for(let _0x131d47=-0x52*-0x3f+-0x2*0x61+-0x136c,_0x40d74f=_0x2073ec['\x6c\x65\x6e\x67\x74\x68'];_0x131d47<_0x40d74f;_0x131d47++){_0x101833+='\x25'+('\x30\x30'+_0x2073ec['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x131d47)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x53*0x41+0x23e1+-0x38e4))['\x73\x6c\x69\x63\x65'](-(-0x435*0x1+0xbcb*-0x1+0x1002));}return decodeURIComponent(_0x101833);};const _0x4d44a3=function(_0x504c9d,_0x153a76){let _0x52dde2=[],_0x4561ea=0xa5a+0x3a*0x32+0x6*-0x39d,_0x325fb8,_0x1951da='';_0x504c9d=_0x4b8d90(_0x504c9d);let _0x5a6292;for(_0x5a6292=-0x7e7*-0x1+-0x12cc+0xae5;_0x5a6292<0xa3c+0x4f*0x3a+-0x1b22;_0x5a6292++){_0x52dde2[_0x5a6292]=_0x5a6292;}for(_0x5a6292=0xc1*-0x9+-0x19*0x11+0x872;_0x5a6292<-0x16f9*-0x1+0x1719+-0x2d12;_0x5a6292++){_0x4561ea=(_0x4561ea+_0x52dde2[_0x5a6292]+_0x153a76['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x5a6292%_0x153a76['\x6c\x65\x6e\x67\x74\x68']))%(-0x23c9+0x2a7*-0xb+0x41f6),_0x325fb8=_0x52dde2[_0x5a6292],_0x52dde2[_0x5a6292]=_0x52dde2[_0x4561ea],_0x52dde2[_0x4561ea]=_0x325fb8;}_0x5a6292=0xec2+0x732+0x1*-0x15f4,_0x4561ea=-0x25b2+-0x19e9+-0x1*-0x3f9b;for(let _0x156911=0x1*0x62b+-0x3c*0x4f+0xc59;_0x156911<_0x504c9d['\x6c\x65\x6e\x67\x74\x68'];_0x156911++){_0x5a6292=(_0x5a6292+(-0x1c30*-0x1+0x1*0x1231+0x6a0*-0x7))%(0x1*0x6bf+0x658*-0x1+0x99*0x1),_0x4561ea=(_0x4561ea+_0x52dde2[_0x5a6292])%(-0x1086+0x1*0x1504+-0x37e),_0x325fb8=_0x52dde2[_0x5a6292],_0x52dde2[_0x5a6292]=_0x52dde2[_0x4561ea],_0x52dde2[_0x4561ea]=_0x325fb8,_0x1951da+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](_0x504c9d['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x156911)^_0x52dde2[(_0x52dde2[_0x5a6292]+_0x52dde2[_0x4561ea])%(-0x23ca+-0x26*0x2c+0x5*0x8aa)]);}return _0x1951da;};_0x21ca['\x70\x66\x65\x44\x77\x55']=_0x4d44a3,_0x21ca['\x67\x74\x76\x49\x4d\x6b']={},_0x21ca['\x65\x59\x79\x6d\x46\x79']=!![];}const _0x3c8d2d=_0xdd3497[0x1d8a+-0xd72*-0x1+-0x2afc],_0x240ed7=_0x29b090+_0x3c8d2d,_0x154f28=_0x21ca['\x67\x74\x76\x49\x4d\x6b'][_0x240ed7];return!_0x154f28?(_0x21ca['\x6e\x67\x49\x6b\x76\x53']===undefined&&(_0x21ca['\x6e\x67\x49\x6b\x76\x53']=!![]),_0x3eb3ac=_0x21ca['\x70\x66\x65\x44\x77\x55'](_0x3eb3ac,_0x406874),_0x21ca['\x67\x74\x76\x49\x4d\x6b'][_0x240ed7]=_0x3eb3ac):_0x3eb3ac=_0x154f28,_0x3eb3ac;}function readState(_0x17f97e){const _0x5544df=_0x121f55;try{const _0x5d86f2=_0x17f97e[_0x5544df(0x253,'\x40\x4f\x68\x52')](STATE_KEY);if(!_0x5d86f2)return{'\x76\x65\x72\x73\x69\x6f\x6e':0x1,'\x65\x6e\x74\x72\x69\x65\x73':{}};const _0x5e8dbd=JSON[_0x5544df(0x1df,'\x23\x4b\x52\x63')](_0x5d86f2);if(_0x5e8dbd[_0x5544df(0x206,'\x51\x75\x28\x66')]!==-0x1d2*-0x13+-0x1*0x93+-0x2202||!_0x5e8dbd[_0x5544df(0x23c,'\x6d\x5a\x2a\x23')]||typeof _0x5e8dbd[_0x5544df(0x1f3,'\x4d\x52\x59\x4b')]!==_0x5544df(0x225,'\x65\x52\x4a\x62')||Array[_0x5544df(0x247,'\x4c\x6e\x6a\x6c')](_0x5e8dbd['\x65\x6e\x74\x72\x69\x65\x73'])){if(_0x5544df(0x22f,'\x7a\x6d\x21\x7a')!==_0x5544df(0x252,'\x28\x46\x56\x55'))_0x299b85(_0x167dd7);else return{'\x76\x65\x72\x73\x69\x6f\x6e':0x1,'\x65\x6e\x74\x72\x69\x65\x73':{}};}const _0x5f4d0c={};for(const [_0x268ff4,_0xdaaaaf]of Object[_0x5544df(0x230,'\x40\x4c\x40\x49')](_0x5e8dbd[_0x5544df(0x228,'\x38\x67\x58\x30')])){if(_0x5544df(0x1fe,'\x6d\x66\x29\x79')!==_0x5544df(0x235,'\x74\x74\x37\x63'))return{'\x76\x65\x72\x73\x69\x6f\x6e':0x1,'\x65\x6e\x74\x72\x69\x65\x73':{}};else{if(CLAIM_CODE_RE[_0x5544df(0x214,'\x73\x74\x6e\x4d')](_0x268ff4)&&typeof _0xdaaaaf===_0x5544df(0x241,'\x51\x75\x28\x66')&&Number[_0x5544df(0x209,'\x35\x64\x54\x76')](_0xdaaaaf)&&_0xdaaaaf>-0x190d+0xfba+-0x4d*-0x1f)_0x5f4d0c[_0x268ff4]=_0xdaaaaf;}}return{'\x76\x65\x72\x73\x69\x6f\x6e':0x1,'\x65\x6e\x74\x72\x69\x65\x73':_0x5f4d0c};}catch{return{'\x76\x65\x72\x73\x69\x6f\x6e':0x1,'\x65\x6e\x74\x72\x69\x65\x73':{}};}}function mergeState(_0x14a477,_0x23d686){const _0x2251ef=_0x121f55,_0x2020ba={..._0x14a477[_0x2251ef(0x1e8,'\x5d\x66\x50\x58')]};for(const [_0x4d96f8,_0x53ccaf]of Object[_0x2251ef(0x21d,'\x28\x46\x56\x55')](_0x23d686[_0x2251ef(0x228,'\x38\x67\x58\x30')]))_0x2020ba[_0x4d96f8]=Math[_0x2251ef(0x203,'\x6d\x5a\x2a\x23')](_0x2020ba[_0x4d96f8]??0x24e5+-0x1115+0x13d0*-0x1,_0x53ccaf);return{'\x76\x65\x72\x73\x69\x6f\x6e':0x1,'\x65\x6e\x74\x72\x69\x65\x73':_0x2020ba};}function pruneState(_0xf438eb){const _0x561262=_0x121f55;return{'\x76\x65\x72\x73\x69\x6f\x6e':0x1,'\x65\x6e\x74\x72\x69\x65\x73':Object[_0x561262(0x24c,'\x25\x57\x71\x65')+'\x69\x65\x73'](Object[_0x561262(0x1e8,'\x5d\x66\x50\x58')](_0xf438eb)[_0x561262(0x212,'\x73\x74\x6e\x4d')]((_0x57cec5,_0x2cc5bf)=>_0x2cc5bf[0xbb+0x2526+0xc*-0x328]-_0x57cec5[-0x968+0x579*0x3+0xd*-0x8a])['\x73\x6c\x69\x63\x65'](-0x1d51*0x1+-0xcae+0x1*0x29ff,MAX_STATE_ENTRIES))};}
|