@bangdao-ai/acw-tools 1.13.41 → 1.13.43

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.
@@ -0,0 +1,153 @@
1
+ import path from 'path';
2
+
3
+ export const ASSET_INSTALL_AGENT_AUTO = 'auto';
4
+ export const ASSET_INSTALL_AGENT_CURSOR = 'cursor';
5
+ export const ASSET_INSTALL_AGENT_CODEX = 'codex';
6
+ export const ASSET_INSTALL_AGENTS = [ASSET_INSTALL_AGENT_CURSOR, ASSET_INSTALL_AGENT_CODEX];
7
+
8
+ export const ASSET_TYPE_SKILL = 'skill';
9
+ export const ASSET_TYPE_RULE = 'rule';
10
+ export const ASSET_TYPE_KNOWLEDGE = 'knowledge';
11
+ export const ASSET_TYPE_DEV_BASE = 'devBase';
12
+
13
+ const ASSET_DIR_NAMES = {
14
+ [ASSET_TYPE_SKILL]: 'skills',
15
+ [ASSET_TYPE_RULE]: 'rules',
16
+ [ASSET_TYPE_KNOWLEDGE]: 'knowledge',
17
+ [ASSET_TYPE_DEV_BASE]: 'dev-bases',
18
+ };
19
+
20
+ export function detectAssetInstallAgent(env = process.env, options = {}) {
21
+ const configuredAgent = String(env.ACW_INSTALL_AGENT || '').trim().toLowerCase();
22
+ if (configuredAgent === ASSET_INSTALL_AGENT_CURSOR) {
23
+ return ASSET_INSTALL_AGENT_CURSOR;
24
+ }
25
+ return ASSET_INSTALL_AGENT_CODEX;
26
+ }
27
+
28
+ export function normalizeAssetInstallAgent(agent = ASSET_INSTALL_AGENT_AUTO, env = process.env, options = {}) {
29
+ const value = String(agent || ASSET_INSTALL_AGENT_AUTO).trim().toLowerCase();
30
+ if (value === ASSET_INSTALL_AGENT_AUTO) {
31
+ return detectAssetInstallAgent(env, options);
32
+ }
33
+ if (ASSET_INSTALL_AGENTS.includes(value)) {
34
+ return value;
35
+ }
36
+ throw new Error(`不支持的资产安装目标: ${agent}`);
37
+ }
38
+
39
+ export function getCodexHome(homeDir, env = process.env) {
40
+ const configured = String(env.CODEX_HOME || '').trim();
41
+ return configured || path.join(homeDir, '.codex');
42
+ }
43
+
44
+ function normalizeAssetType(assetType) {
45
+ const value = String(assetType || '').trim();
46
+ if (ASSET_DIR_NAMES[value]) {
47
+ return value;
48
+ }
49
+ throw new Error(`不支持的资产类型: ${assetType}`);
50
+ }
51
+
52
+ export function resolveAssetInstallTarget({
53
+ assetType,
54
+ agent = ASSET_INSTALL_AGENT_AUTO,
55
+ scope = 'project',
56
+ targetDirectory,
57
+ assetDirectory,
58
+ workspaceDir,
59
+ homeDir,
60
+ env = process.env,
61
+ }) {
62
+ const normalizedAssetType = normalizeAssetType(assetType);
63
+ const assetDirName = ASSET_DIR_NAMES[normalizedAssetType];
64
+ const normalizedScope = scope === 'user' ? 'user' : 'project';
65
+ const projectRoot = targetDirectory || workspaceDir || process.cwd();
66
+ const resolvedAgent = normalizeAssetInstallAgent(agent, env, {
67
+ workspaceDir: projectRoot,
68
+ targetDirectory: projectRoot,
69
+ });
70
+
71
+ if (assetDirectory) {
72
+ if (!path.isAbsolute(assetDirectory)) {
73
+ throw new Error(`资产安装目录必须是绝对路径: ${assetDirectory}`);
74
+ }
75
+ return {
76
+ agent: resolvedAgent,
77
+ scope: normalizedScope,
78
+ assetType: normalizedAssetType,
79
+ assetDir: path.resolve(assetDirectory),
80
+ customAssetDir: true,
81
+ };
82
+ }
83
+
84
+ if (resolvedAgent === ASSET_INSTALL_AGENT_CODEX) {
85
+ const assetDir = normalizedScope === 'user'
86
+ ? path.join(getCodexHome(homeDir, env), assetDirName)
87
+ : path.join(projectRoot, '.agents', assetDirName);
88
+ return {
89
+ agent: resolvedAgent,
90
+ scope: normalizedScope,
91
+ assetType: normalizedAssetType,
92
+ assetDir,
93
+ };
94
+ }
95
+
96
+ const assetDir = normalizedScope === 'user'
97
+ ? path.join(homeDir, '.cursor', assetDirName)
98
+ : path.join(projectRoot, '.cursor', assetDirName);
99
+ return {
100
+ agent: resolvedAgent,
101
+ scope: normalizedScope,
102
+ assetType: normalizedAssetType,
103
+ assetDir,
104
+ };
105
+ }
106
+
107
+ export function buildAssetSearchRoots({
108
+ assetType,
109
+ agent = ASSET_INSTALL_AGENT_AUTO,
110
+ scope = 'all',
111
+ workspaceDir,
112
+ homeDir,
113
+ env = process.env,
114
+ }) {
115
+ const normalizedAssetType = normalizeAssetType(assetType);
116
+ const assetDirName = ASSET_DIR_NAMES[normalizedAssetType];
117
+ const resolvedFirst = normalizeAssetInstallAgent(agent, env);
118
+ const agents = agent && String(agent).toLowerCase() !== ASSET_INSTALL_AGENT_AUTO
119
+ ? [resolvedFirst]
120
+ : [resolvedFirst, ...ASSET_INSTALL_AGENTS.filter(item => item !== resolvedFirst)];
121
+ const scopes = scope === 'user'
122
+ ? ['user']
123
+ : scope === 'workspace' || scope === 'project'
124
+ ? ['project']
125
+ : ['project', 'user'];
126
+ const roots = [];
127
+ const seen = new Set();
128
+
129
+ const addRoot = (rootAgent, rootScope, dir) => {
130
+ if (!dir || seen.has(dir)) return;
131
+ seen.add(dir);
132
+ roots.push({ agent: rootAgent, scope: rootScope, assetType: normalizedAssetType, path: dir, source: `${rootAgent}:${rootScope}` });
133
+ };
134
+
135
+ for (const rootAgent of agents) {
136
+ for (const rootScope of scopes) {
137
+ const target = resolveAssetInstallTarget({
138
+ assetType: normalizedAssetType,
139
+ agent: rootAgent,
140
+ scope: rootScope,
141
+ workspaceDir,
142
+ homeDir,
143
+ env,
144
+ });
145
+ addRoot(rootAgent, rootScope, target.assetDir);
146
+ if (rootAgent === ASSET_INSTALL_AGENT_CODEX && rootScope === 'user') {
147
+ addRoot(rootAgent, 'user', path.join(homeDir, '.agents', assetDirName));
148
+ }
149
+ }
150
+ }
151
+
152
+ return roots;
153
+ }
package/chatGrabState.js CHANGED
@@ -1,3 +1,129 @@
1
- #!/usr/bin/env node
1
+ import fs from 'node:fs';
2
+ import path from 'node:path';
3
+ import { ensureCodexRepairState } from './codexRepair.js';
2
4
 
3
- (function(_0x344ec1,_0x577be0){const _0x28f058={_0x32401c:0x40e,_0x29a03b:0x43f,_0x105434:0x43c,_0x1886f8:0x4ca,_0x417fa5:0x4b3,_0x37d56e:0x4a5,_0x1da530:0x4f8,_0x17c296:0x42c,_0x22e1df:0x4dd,_0x13add4:0x4f7,_0xbdb4f2:0x4c4,_0x563423:0x422,_0x26090a:0x4c9,_0x395952:0x523,_0x56c44a:0x3f7,_0x4e5ca1:0x453,_0x509d4a:0x42d,_0x5d8b8f:0x437,_0x8d4e8d:0x502,_0x1b3f76:0x4ed,_0x3a28b7:0x500,_0x3ab10f:0x4da,_0xda921d:0x4be,_0x1e0aa6:0x4ad,_0x3c9b49:0x4ff,_0x5e4644:0x536,_0x563c6b:0x50c,_0x51f46d:0x509},_0x2400da=_0x344ec1();function _0x4a66d3(_0x3f6607,_0x5ecca1,_0x833c26,_0x538f31){return _0x3036(_0x3f6607-0x30c,_0x833c26);}function _0x4cd000(_0x4f18fc,_0x3ca2a5,_0x1ff779,_0x3a5bdc){return _0x3036(_0x1ff779-0x261,_0x4f18fc);}while(!![]){try{const _0x1bd105=-parseInt(_0x4cd000(_0x28f058._0x32401c,_0x28f058._0x29a03b,_0x28f058._0x105434,0x420))/0x1*(parseInt(_0x4a66d3(_0x28f058._0x1886f8,_0x28f058._0x417fa5,_0x28f058._0x37d56e,_0x28f058._0x1da530))/0x2)+-parseInt(_0x4cd000(0x40a,0x429,0x435,_0x28f058._0x17c296))/0x3*(-parseInt(_0x4a66d3(_0x28f058._0x22e1df,_0x28f058._0x13add4,0x4b0,_0x28f058._0xbdb4f2))/0x4)+-parseInt(_0x4cd000(0x44c,0x436,_0x28f058._0x563423,0x411))/0x5*(-parseInt(_0x4a66d3(0x4f4,_0x28f058._0x26090a,_0x28f058._0x395952,0x4c3))/0x6)+parseInt(_0x4cd000(_0x28f058._0x56c44a,_0x28f058._0x4e5ca1,0x41d,0x43c))/0x7*(-parseInt(_0x4cd000(0x41a,_0x28f058._0x509d4a,_0x28f058._0x5d8b8f,0x42a))/0x8)+parseInt(_0x4a66d3(_0x28f058._0x8d4e8d,_0x28f058._0x1b3f76,_0x28f058._0x3a28b7,_0x28f058._0x3ab10f))/0x9+parseInt(_0x4a66d3(_0x28f058._0xda921d,_0x28f058._0x1e0aa6,0x4e2,0x4e2))/0xa+-parseInt(_0x4a66d3(_0x28f058._0x3c9b49,0x525,0x507,_0x28f058._0x5e4644))/0xb*(parseInt(_0x4a66d3(0x4d6,_0x28f058._0x563c6b,0x4c3,_0x28f058._0x51f46d))/0xc);if(_0x1bd105===_0x577be0)break;else _0x2400da['push'](_0x2400da['shift']());}catch(_0x1ab631){_0x2400da['push'](_0x2400da['shift']());}}}(_0x637c,0x3b26a));import _0x334bb7 from'node:fs';import _0x39dda2 from'node:path';function C(){const _0xe9fb27={_0xcd8c6b:0x144,_0x4a64c0:0x12a,_0x4e4b75:0xc3,_0xf91645:0x106,_0x4098f4:0x17c,_0x38aead:0x15d,_0x456b34:0x153,_0x476bf4:0x187,_0x152a36:0xdd,_0x9fd23d:0xdb,_0x52abde:0x10e,_0x6ed21c:0x104,_0x213d85:0x13c,_0x1a42f1:0x121,_0x2ce76a:0xeb,_0x9f2eca:0x130,_0x5483b1:0x134,_0x1104a9:0x14a,_0x4243bf:0x137,_0x118a8c:0x150,_0xed28b5:0x12e,_0x6f68e2:0x16f,_0x5cf436:0x13b,_0x2620bc:0x109},_0x4bf457={_0x5553d6:0x2c1},_0x14fb7d={};_0x14fb7d[_0x24e9d0(-0x143,-0x151,-_0xe9fb27._0xcd8c6b,-_0xe9fb27._0x4a64c0)+_0x52ffea(-_0xe9fb27._0x4e4b75,-_0xe9fb27._0xf91645,-0xf6,-0xe6)]=0x0,_0x14fb7d[_0x24e9d0(-_0xe9fb27._0x4098f4,-0x196,-0x1bc,-_0xe9fb27._0x38aead)+'d']=0x0;function _0x24e9d0(_0x1ceeb4,_0x54d690,_0x43413d,_0x5b07a0){return _0x3036(_0x54d690- -0x33f,_0x1ceeb4);}const _0x363aca={};_0x363aca[_0x24e9d0(-0x11a,-_0xe9fb27._0x456b34,-_0xe9fb27._0x476bf4,-0x14f)+_0x52ffea(-0x115,-0x10d,-0x108,-0xdc)]=null,_0x363aca['lastCheckA'+'t']=null,_0x363aca['lastComple'+_0x52ffea(-0xf0,-_0xe9fb27._0x152a36,-0xe4,-_0xe9fb27._0x9fd23d)]=null,_0x363aca['skippedRea'+_0x52ffea(-_0xe9fb27._0x52abde,-0x131,-_0xe9fb27._0x6ed21c,-_0xe9fb27._0x213d85)]=null,_0x363aca['noNeedStre'+'ak']=0x0,_0x363aca[_0x52ffea(-_0xe9fb27._0x1a42f1,-_0xe9fb27._0x2ce76a,-0x10d,-0xe2)+_0x24e9d0(-0x147,-_0xe9fb27._0x9f2eca,-_0xe9fb27._0x5483b1,-_0xe9fb27._0x1104a9)]=null;function _0x52ffea(_0x5d3517,_0x1e62c6,_0x12a2eb,_0x4ddf86){return _0x3036(_0x12a2eb- -_0x4bf457._0x5553d6,_0x1e62c6);}return _0x363aca[_0x24e9d0(-_0xe9fb27._0x4243bf,-0x15e,-_0xe9fb27._0x118a8c,-_0xe9fb27._0xed28b5)+'stamp']=null,_0x363aca['cursorVers'+'ion']=null,_0x363aca['cursorSess'+_0x52ffea(-_0xe9fb27._0x4a64c0,-_0xe9fb27._0x152a36,-0x101,-0xd5)]=[],_0x363aca[_0x24e9d0(-0x191,-0x166,-_0xe9fb27._0x38aead,-_0xe9fb27._0x6f68e2)+'e']=[],_0x363aca[_0x24e9d0(-0x15b,-_0xe9fb27._0x5cf436,-_0xe9fb27._0x2620bc,-_0xe9fb27._0xed28b5)]=_0x14fb7d,_0x363aca;}function S(_0x4962fd){const _0xcfc1f4={_0x3539f6:0x2e4,_0x29df0a:0x2d9,_0x3ce53d:0x28c,_0x133f4e:0x2c2,_0x144ea8:0x2a7,_0x459e53:0x2d6,_0x136efa:0x320,_0x3bc805:0x2f3,_0x557249:0x2f7,_0x344f13:0xda,_0x23275c:0xfc,_0x2d344a:0xe6,_0xef2cdf:0xd0,_0x26b925:0x29d,_0x96b3c3:0x2d0,_0x2ba109:0x2a7,_0xef22d8:0x2b6,_0x27133f:0x322,_0x59631b:0x2ef,_0xef1397:0x2bf,_0xb028fb:0x2db,_0x15dc36:0x2f8,_0x59841d:0x2d1,_0x43ade6:0x2aa,_0x5bba22:0xe0,_0x18c23f:0xe4,_0x186199:0x116,_0x316f1d:0x30d,_0x368457:0x2ed,_0x39cb0b:0x2e1,_0x9d2aea:0x2ed,_0x222884:0x28d,_0x504052:0x29e,_0x1b3563:0x2ba,_0x20d7d7:0x2a6,_0x40bded:0xe3,_0xa8e1:0x2e7,_0x4d7307:0x315,_0x3329a5:0xd7,_0x350379:0xef,_0x3fb55e:0x2ef,_0xba5c90:0x315,_0x216542:0x340,_0x160750:0x319,_0x12f229:0x124,_0x234da2:0x121,_0x11ab7e:0xed,_0x53a441:0x124,_0x1863ce:0xd4,_0x1c27e7:0x107,_0xcdc105:0x12e,_0x456e22:0xdb,_0x4f1b5f:0x2c0,_0x3eef1d:0x2b9,_0x21254d:0x2ac,_0x48a802:0x2de,_0x338061:0xeb,_0x3d62c7:0x105,_0x36c81b:0x13c,_0x19efd5:0x10d,_0xbbfd36:0x10c,_0x521b93:0x29b,_0x13a236:0x2e1,_0x31d741:0x12a,_0x56cb59:0x2a2,_0x1d6908:0x2b2,_0x59d908:0x10e,_0x4e03ba:0x15c,_0x340df7:0x106,_0x86457e:0x122,_0x569e0b:0x2c2,_0xdac9cb:0x319,_0xf4277b:0x2fe,_0x421204:0x2bc,_0x33b1b0:0xd6,_0x591828:0xc0,_0x4c21df:0xe2,_0x26ef8f:0x12c,_0x11edda:0x10f,_0x1c2d44:0x141,_0x1d9034:0x11a,_0x27b1b5:0xf0,_0x2e0447:0x101,_0x858b50:0xb8,_0x2dc252:0xe2,_0x150baa:0x284,_0x54ed89:0x2eb,_0x40568a:0x332,_0x504378:0x329,_0x4e62ab:0x310,_0x1dc073:0x178,_0x35a01f:0x142,_0xab49fc:0xf9,_0x51cfb4:0x10c,_0x92e5e4:0x114,_0xd21f16:0xde,_0xeddf02:0x323,_0x2052a5:0x30b,_0x2f7433:0x339,_0x3acc0b:0x2ae,_0x1fdff5:0x2e2,_0x1f1bba:0xf5,_0x17bdc3:0x313,_0x5b9030:0x2ee,_0x2feb9f:0x10f,_0x92fb8a:0x123,_0x5871f1:0xf4,_0x1e1213:0xfe,_0x3d2547:0x109,_0x4bfa99:0x157,_0x19ac37:0x11e,_0x419dc9:0x137,_0x5017e3:0x102,_0x451ecf:0x123,_0xd2e350:0xe6,_0x49bb2c:0x131,_0x154a64:0xcc,_0x1401f9:0x2e3,_0x114769:0x2ac,_0x387c04:0x133,_0x28f52b:0x2c1,_0x2e6470:0x2ff,_0x123b1b:0x316,_0x218c44:0x116,_0xda0162:0x2c7,_0x25f46b:0x11d,_0x54e14e:0x10e,_0x1615b8:0x113,_0x3f08f6:0x2b1,_0x14047e:0x156,_0x9665ed:0x102,_0x4f8410:0xc3,_0x492426:0x106,_0x35fb3f:0x127,_0x1d1c44:0x12e,_0x33fb90:0x330,_0x430c3a:0x117,_0x3b2c05:0x109,_0x3dabdc:0x2e4,_0x276b2a:0x30c,_0x307f56:0x2fc,_0xb97b06:0x31b,_0x5777b8:0xea,_0x1031d8:0x305,_0x58a221:0x30d,_0x18c117:0x300,_0x139f18:0x2a0,_0x2ed5bb:0x2cc,_0x30f441:0xfa},_0x432f9d={_0x21f200:0xd6},_0x270c17={'tJwsM':_0x258b1b(0x2cb,0x2dd,_0xcfc1f4._0x3539f6,_0xcfc1f4._0x3539f6),'dLIyC':function(_0x278742,_0xcb83cb){return _0x278742!=_0xcb83cb;},'LDSyz':function(_0x52a2ae,_0x282166){return _0x52a2ae==_0x282166;},'rUuli':function(_0x26116d,_0x12622f){return _0x26116d!=_0x12622f;},'TGgdk':function(_0x3e9581,_0x504f83){return _0x3e9581==_0x504f83;},'kAKHj':function(_0x20341e,_0x12d329){return _0x20341e==_0x12d329;},'eyzjB':function(_0x10f61f,_0x5226e5){return _0x10f61f(_0x5226e5);},'wNDeT':function(_0x1157b5,_0x50f141){return _0x1157b5==_0x50f141;},'UOCLo':function(_0x1dee7c,_0x256cd9){return _0x1dee7c!=_0x256cd9;}};if(!_0x4962fd||typeof _0x4962fd!=_0x270c17['tJwsM'])throw new Error(_0x258b1b(0x337,_0xcfc1f4._0x29df0a,0x308,0x2e9)+'_required');let _0x598bd2=!!_0x4962fd[_0x258b1b(_0xcfc1f4._0x3ce53d,_0xcfc1f4._0x133f4e,_0xcfc1f4._0x144ea8,0x2d0)]&&typeof _0x4962fd[_0x258b1b(_0xcfc1f4._0x459e53,0x2df,0x2a7,0x2b0)]==_0x270c17[_0x258b1b(_0xcfc1f4._0x29df0a,_0xcfc1f4._0x136efa,_0xcfc1f4._0x3bc805,_0xcfc1f4._0x557249)];(!_0x4962fd[_0x12abf6(0xa7,_0xcfc1f4._0x344f13,0xa2,0xd0)]||typeof _0x4962fd[_0x12abf6(_0xcfc1f4._0x23275c,0xbf,_0xcfc1f4._0x2d344a,_0xcfc1f4._0xef2cdf)]!='object')&&(_0x4962fd[_0x258b1b(_0xcfc1f4._0x26b925,_0xcfc1f4._0x96b3c3,_0xcfc1f4._0x2ba109,0x2ac)]=C());let _0xd934bf=_0x4962fd[_0x258b1b(_0xcfc1f4._0xef22d8,0x27f,0x2a7,_0xcfc1f4._0x2ba109)];const _0xcb503f={};_0xcb503f[_0x258b1b(0x2dd,_0xcfc1f4._0x27133f,_0xcfc1f4._0x59631b,_0xcfc1f4._0xef1397)+_0x258b1b(_0xcfc1f4._0xb028fb,_0xcfc1f4._0x15dc36,0x2cc,0x2f8)]=0x0;function _0x258b1b(_0x53ab65,_0x365983,_0x4f1517,_0x44c244){return _0x3036(_0x4f1517-0x101,_0x44c244);}function _0x12abf6(_0x46e6fa,_0x406d69,_0x4c7da7,_0x11b326){return _0x3036(_0x11b326- -_0x432f9d._0x21f200,_0x4c7da7);}return _0xcb503f[_0x258b1b(0x2a7,_0xcfc1f4._0x59841d,_0xcfc1f4._0x43ade6,0x2d5)+'d']=0x0,(_0xd934bf[_0x12abf6(0xef,_0xcfc1f4._0x5bba22,_0xcfc1f4._0x18c23f,_0xcfc1f4._0x186199)+_0x12abf6(0xe9,0x106,0xbd,0xe3)]==null&&_0x270c17[_0x258b1b(_0xcfc1f4._0x316f1d,_0xcfc1f4._0x368457,_0xcfc1f4._0x39cb0b,0x2f4)](_0x4962fd[_0x258b1b(0x2c7,0x2ef,_0xcfc1f4._0x9d2aea,0x30d)+_0x258b1b(_0xcfc1f4._0x222884,_0xcfc1f4._0x504052,_0xcfc1f4._0x1b3563,_0xcfc1f4._0x20d7d7)],null)&&(_0xd934bf[_0x12abf6(0x12f,0x13f,0x112,0x116)+_0x12abf6(0xf9,0xe4,0x117,_0xcfc1f4._0x40bded)]=_0x4962fd[_0x258b1b(_0xcfc1f4._0xa8e1,0x317,0x2ed,_0xcfc1f4._0x4d7307)+'ion']),_0x270c17[_0x12abf6(0xbe,_0xcfc1f4._0x3329a5,0xf3,_0xcfc1f4._0x350379)](_0xd934bf[_0x258b1b(0x304,_0xcfc1f4._0x3fb55e,0x2fc,_0xcfc1f4._0xba5c90)+'t'],null)&&_0x270c17[_0x258b1b(_0xcfc1f4._0x4d7307,_0xcfc1f4._0x216542,_0xcfc1f4._0x160750,0x325)](_0x4962fd[_0x12abf6(0x135,0x152,0xfd,_0xcfc1f4._0x12f229)+'CheckAt'],null)&&(_0xd934bf[_0x12abf6(0x12b,0xf1,_0xcfc1f4._0x234da2,0x125)+'t']=_0x4962fd[_0x12abf6(_0xcfc1f4._0x11ab7e,0x11b,0xed,_0xcfc1f4._0x53a441)+'CheckAt']),_0xd934bf['lastComple'+_0x12abf6(_0xcfc1f4._0x1863ce,0x117,0x13f,_0xcfc1f4._0x1c27e7)]==null&&_0x4962fd['lastRepair'+_0x12abf6(_0xcfc1f4._0xcdc105,0x118,_0xcfc1f4._0x456e22,0xf8)+'t']!=null&&(_0xd934bf[_0x258b1b(_0xcfc1f4._0x4f1b5f,_0xcfc1f4._0x3eef1d,0x2b8,_0xcfc1f4._0x21254d)+_0x258b1b(0x2b8,0x2a7,_0xcfc1f4._0x48a802,0x30d)]=_0x4962fd[_0x12abf6(_0xcfc1f4._0x338061,_0xcfc1f4._0x3d62c7,_0xcfc1f4._0x36c81b,0x124)+_0x12abf6(0xd9,_0xcfc1f4._0x19efd5,_0xcfc1f4._0xbbfd36,0xf8)+'t']),_0x270c17[_0x258b1b(0x2d1,0x2b0,_0xcfc1f4._0xef22d8,_0xcfc1f4._0x521b93)](_0xd934bf[_0x258b1b(_0xcfc1f4._0x13a236,_0xcfc1f4._0x3bc805,0x2f9,0x2d7)+'son'],null)&&_0x4962fd[_0x12abf6(0xef,0xf2,_0xcfc1f4._0x31d741,_0xcfc1f4._0x234da2)+_0x258b1b(_0xcfc1f4._0x144ea8,_0xcfc1f4._0x56cb59,0x2ad,_0xcfc1f4._0x1d6908)]!=null&&(_0xd934bf[_0x12abf6(_0xcfc1f4._0x59d908,_0xcfc1f4._0x4e03ba,_0xcfc1f4._0x340df7,_0xcfc1f4._0x86457e)+'son']=_0x4962fd[_0x258b1b(_0xcfc1f4._0x569e0b,_0xcfc1f4._0xdac9cb,_0xcfc1f4._0x15dc36,_0xcfc1f4._0xf4277b)+'pedReason']),(_0x270c17['kAKHj'](_0xd934bf[_0x258b1b(0x28e,0x2a2,_0xcfc1f4._0x421204,0x29c)+'ak'],null)||!_0x598bd2&&_0x4962fd[_0x12abf6(_0xcfc1f4._0x33b1b0,0xf1,_0xcfc1f4._0x591828,_0xcfc1f4._0x4c21df)+_0x258b1b(0x304,0x2fe,0x2d9,_0xcfc1f4._0x56cb59)]!=null)&&(_0xd934bf[_0x258b1b(0x2eb,0x299,_0xcfc1f4._0x421204,0x298)+'ak']=_0x270c17[_0x12abf6(_0xcfc1f4._0x26ef8f,_0xcfc1f4._0x11edda,0x156,_0xcfc1f4._0x1c2d44)](Number,_0x4962fd[_0x12abf6(_0xcfc1f4._0x1d9034,0xf2,_0xcfc1f4._0x27b1b5,0xe2)+_0x12abf6(0x115,0xfe,_0xcfc1f4._0x2e0447,0x102)]||0x0)),_0x270c17[_0x12abf6(_0xcfc1f4._0x858b50,_0xcfc1f4._0x2dc252,_0xcfc1f4._0x858b50,_0xcfc1f4._0x11ab7e)](_0xd934bf[_0x258b1b(_0xcfc1f4._0x150baa,_0xcfc1f4._0x54ed89,0x2b5,0x298)+_0x258b1b(_0xcfc1f4._0x40568a,_0xcfc1f4._0x504378,_0xcfc1f4._0x4e62ab,0x31c)],null)&&_0x270c17[_0x12abf6(0x129,0x139,_0xcfc1f4._0x1dc073,_0xcfc1f4._0x35a01f)](_0x4962fd[_0x12abf6(_0xcfc1f4._0xab49fc,_0xcfc1f4._0x51cfb4,0xdc,0xf9)+_0x12abf6(0x15b,0x146,0x160,0x138)+_0x258b1b(0x2eb,0x318,0x30e,_0xcfc1f4._0x459e53)],null)&&(_0xd934bf[_0x12abf6(0x10e,_0xcfc1f4._0x92e5e4,0xf6,_0xcfc1f4._0xd21f16)+'ySkippedAt']=_0x4962fd[_0x258b1b(0x2ad,0x2d0,_0xcfc1f4._0x96b3c3,0x2e7)+_0x258b1b(0x33e,_0xcfc1f4._0xeddf02,0x30f,_0xcfc1f4._0x2052a5)+_0x258b1b(_0xcfc1f4._0x2f7433,0x2e1,0x30e,0x30f)]),_0xd934bf[_0x258b1b(_0xcfc1f4._0x3acc0b,0x2df,_0xcfc1f4._0x1fdff5,0x2f8)+_0x12abf6(_0xcfc1f4._0x1f1bba,0x10e,0x140,0x109)]==null&&_0x270c17['dLIyC'](_0x4962fd[_0x258b1b(_0xcfc1f4._0x17bdc3,0x2fe,0x2f5,_0xcfc1f4._0x5b9030)+_0x12abf6(0xf3,_0xcfc1f4._0x2feb9f,0x102,_0xcfc1f4._0x92fb8a)+'p'],null)&&(_0xd934bf[_0x12abf6(_0xcfc1f4._0x5871f1,0x12d,0x130,0x10b)+_0x12abf6(0xfe,0x139,_0xcfc1f4._0x1e1213,_0xcfc1f4._0x3d2547)]=_0x4962fd[_0x12abf6(_0xcfc1f4._0x4bfa99,0x158,0x150,_0xcfc1f4._0x19ac37)+_0x12abf6(_0xcfc1f4._0x419dc9,0x137,_0xcfc1f4._0x5017e3,_0xcfc1f4._0x451ecf)+'p']),_0xd934bf[_0x12abf6(_0xcfc1f4._0xef2cdf,0xf1,0xf4,0x108)+'ion']==null&&_0x4962fd[_0x12abf6(_0xcfc1f4._0xd2e350,0x14d,_0xcfc1f4._0x49bb2c,0x11e)+_0x258b1b(0x2b2,0x28e,0x2b7,0x2d2)]!=null&&(_0xd934bf['cursorVers'+_0x12abf6(0xb2,0xe2,_0xcfc1f4._0x154a64,0xe3)]=_0x4962fd['repairCurs'+_0x258b1b(0x296,0x29e,0x2b7,0x2bb)]),Array[_0x258b1b(_0xcfc1f4._0x1401f9,_0xcfc1f4._0xb028fb,_0xcfc1f4._0x114769,0x281)](_0xd934bf[_0x12abf6(0x106,_0xcfc1f4._0x387c04,0xf5,0x106)+_0x258b1b(0x2df,0x297,_0xcfc1f4._0x28f52b,0x298)])||(_0xd934bf[_0x258b1b(_0xcfc1f4._0x2e6470,0x2dd,0x2dd,_0xcfc1f4._0x123b1b)+_0x12abf6(0xc5,0xef,_0xcfc1f4._0x218c44,0xea)]=Array[_0x258b1b(0x2c6,0x2e3,_0xcfc1f4._0x21254d,_0xcfc1f4._0xda0162)](_0x4962fd[_0x12abf6(_0xcfc1f4._0x25f46b,_0xcfc1f4._0x54e14e,_0xcfc1f4._0x1615b8,_0xcfc1f4._0x19ac37)+_0x258b1b(0x28c,_0xcfc1f4._0x3f08f6,0x2a9,0x2be)+'ds'])?_0x4962fd[_0x12abf6(0x132,_0xcfc1f4._0x14047e,_0xcfc1f4._0x9665ed,_0xcfc1f4._0x19ac37)+_0x12abf6(0xf3,0xaf,_0xcfc1f4._0x4f8410,0xd2)+'ds']:[]),Array['isArray'](_0xd934bf[_0x12abf6(_0xcfc1f4._0x492426,0xef,0x128,0x103)+'e'])||(_0xd934bf['failedQueu'+'e']=[]),(!_0xd934bf[_0x12abf6(0x145,_0xcfc1f4._0x35fb3f,_0xcfc1f4._0x1e1213,_0xcfc1f4._0x1d1c44)]||_0x270c17[_0x258b1b(0x2d5,_0xcfc1f4._0x33fb90,0x30c,0x30f)](typeof _0xd934bf[_0x12abf6(_0xcfc1f4._0x430c3a,_0xcfc1f4._0x3b2c05,0x149,0x12e)],_0x258b1b(0x304,0x2fd,_0xcfc1f4._0x3dabdc,0x319)))&&(_0xd934bf['statistics']=_0xcb503f),_0xd934bf[_0x258b1b(0x321,_0xcfc1f4._0x276b2a,0x305,0x2d7)][_0x258b1b(_0xcfc1f4._0x307f56,0x2fd,0x2ef,_0xcfc1f4._0xb97b06)+_0x12abf6(0xff,_0xcfc1f4._0x5777b8,0x110,0xf5)]==null&&(_0xd934bf[_0x258b1b(0x30e,0x30a,_0xcfc1f4._0x1031d8,0x2dd)][_0x258b1b(0x2ba,_0xcfc1f4._0x58a221,0x2ef,_0xcfc1f4._0x18c117)+_0x258b1b(_0xcfc1f4._0x139f18,_0xcfc1f4._0x21254d,_0xcfc1f4._0x2ed5bb,_0xcfc1f4._0x1fdff5)]=0x0),_0xd934bf[_0x12abf6(_0xcfc1f4._0x30f441,0x114,0x141,0x12e)][_0x258b1b(0x2bc,0x279,_0xcfc1f4._0x43ade6,0x2bb)+'d']==null&&(_0xd934bf['statistics']['totalFaile'+'d']=0x0),_0xd934bf);}function m(_0x5ce2ef){const _0x1b03ff={_0x3dae37:0x213,_0x13d2b1:0x1ee,_0x3fbc62:0x54d,_0x1ab959:0x518,_0x302049:0x52f,_0x4e0e58:0x577,_0x4f943a:0x563,_0x1505ae:0x1be,_0x3fd74e:0x56b,_0x51a735:0x5a5,_0x234bca:0x55d,_0x12275e:0x565,_0x46ca7d:0x55d,_0x1f4e0b:0x204,_0xfed984:0x206,_0x1c1808:0x1ce,_0x52e3df:0x219,_0x514ca1:0x585,_0x12077f:0x56f,_0x4262bd:0x5a3,_0x12e01d:0x1ed,_0x2960b1:0x1bc,_0x16a665:0x1ef,_0x2b2813:0x1cd,_0x14ffeb:0x1e6,_0x1f4a60:0x1ba,_0x2f9002:0x1ee,_0x5ee291:0x1cb,_0x25ea57:0x582,_0x53a9ea:0x569,_0x4e3916:0x537,_0x3969c8:0x523,_0x528b01:0x551,_0x1d451e:0x545,_0x11c9b5:0x53a,_0x583786:0x534,_0x4e633a:0x21c,_0x105501:0x210,_0x3c5375:0x1f7,_0x46afb8:0x1e7,_0x5441fd:0x55a,_0x2c0105:0x539,_0x24da82:0x592,_0x258d7b:0x538,_0x599219:0x533,_0xe4df55:0x563,_0x1de034:0x259,_0x121503:0x22c,_0x276603:0x241,_0x10aae8:0x5a8,_0x53fd6c:0x1f2,_0x158a57:0x218,_0x25677a:0x1f6,_0x5ad4c7:0x593,_0x3b24e8:0x55b,_0x1392e8:0x576,_0x5d0e73:0x55f,_0x394074:0x565,_0x4cd14b:0x555,_0x32818b:0x57f,_0x24f874:0x56d,_0x1952b4:0x541,_0x4a5eaf:0x527,_0x489700:0x55c,_0x476025:0x53e,_0xaa9ba8:0x552,_0x769bb9:0x5b3,_0x477f42:0x562,_0x1e075d:0x533},_0x513e52={_0x42442f:0x1f},_0x20f9dc={};_0x20f9dc[_0x501c89(0x54d,0x584,0x51e,0x572)]=function(_0x405567,_0x286646){return _0x405567==_0x286646;};function _0x8d454b(_0x27e07d,_0x2f503a,_0x288564,_0x43d203){return _0x3036(_0x288564-_0x513e52._0x42442f,_0x43d203);}_0x20f9dc['mSgue']=function(_0x5e241b,_0xd6bfab){return _0x5e241b==_0xd6bfab;},_0x20f9dc[_0x8d454b(0x1cc,_0x1b03ff._0x3dae37,0x1ef,_0x1b03ff._0x13d2b1)]=function(_0x1c0b6f,_0x1c267b){return _0x1c0b6f==_0x1c267b;};function _0x501c89(_0x5e32b9,_0x3ee5e4,_0x1d171e,_0xe96759){return _0x3036(_0x5e32b9-0x38b,_0x3ee5e4);}const _0x44d8dc=_0x20f9dc;S(_0x5ce2ef),_0x44d8dc[_0x501c89(_0x1b03ff._0x3fbc62,_0x1b03ff._0x1ab959,_0x1b03ff._0x302049,0x550)](_0x5ce2ef[_0x501c89(_0x1b03ff._0x4e0e58,0x55e,_0x1b03ff._0x4f943a,0x568)+_0x8d454b(0x1db,0x1c3,0x1d8,_0x1b03ff._0x1505ae)],null)&&(_0x5ce2ef[_0x501c89(_0x1b03ff._0x4e0e58,_0x1b03ff._0x3fd74e,0x559,_0x1b03ff._0x51a735)+'ion']=null),_0x5ce2ef['lastRepair'+_0x501c89(0x572,0x53c,_0x1b03ff._0x234bca,0x59d)]==null&&(_0x5ce2ef[_0x501c89(0x585,_0x1b03ff._0x12275e,_0x1b03ff._0x46ca7d,0x55d)+_0x8d454b(0x1d3,_0x1b03ff._0x1f4e0b,_0x1b03ff._0xfed984,_0x1b03ff._0x1c1808)]=null),_0x5ce2ef[_0x8d454b(0x207,_0x1b03ff._0x3dae37,0x219,_0x1b03ff._0x52e3df)+'CompletedA'+'t']==null&&(_0x5ce2ef[_0x501c89(_0x1b03ff._0x514ca1,_0x1b03ff._0x12077f,0x5ba,_0x1b03ff._0x4262bd)+_0x8d454b(0x1d1,0x1f6,_0x1b03ff._0x12e01d,_0x1b03ff._0x2960b1)+'t']=null),_0x44d8dc[_0x8d454b(_0x1b03ff._0x16a665,_0x1b03ff._0x2b2813,_0x1b03ff._0x14ffeb,0x1d4)](_0x5ce2ef[_0x501c89(0x582,0x584,0x549,0x5b6)+_0x8d454b(_0x1b03ff._0x1f4a60,_0x1b03ff._0x2f9002,_0x1b03ff._0x5ee291,0x1ee)],null)&&(_0x5ce2ef[_0x501c89(_0x1b03ff._0x25ea57,0x58a,0x5ba,_0x1b03ff._0x53a9ea)+_0x501c89(_0x1b03ff._0x4e3916,_0x1b03ff._0x3969c8,_0x1b03ff._0x528b01,_0x1b03ff._0x1d451e)]=null),_0x44d8dc['ilixR'](_0x5ce2ef[_0x501c89(0x543,0x562,_0x1b03ff._0x11c9b5,0x563)+'edStreak'],null)&&(_0x5ce2ef[_0x501c89(0x543,_0x1b03ff._0x583786,0x571,0x571)+_0x8d454b(_0x1b03ff._0x4e633a,_0x1b03ff._0x105501,_0x1b03ff._0x3c5375,_0x1b03ff._0x46afb8)]=0x0),_0x5ce2ef[_0x501c89(_0x1b03ff._0x5441fd,_0x1b03ff._0x2c0105,0x579,0x590)+'anentlySki'+_0x501c89(0x598,0x5cf,0x5c3,_0x1b03ff._0x24da82)]==null&&(_0x5ce2ef[_0x501c89(0x55a,_0x1b03ff._0x258d7b,_0x1b03ff._0x599219,_0x1b03ff._0xe4df55)+'anentlySki'+_0x8d454b(_0x1b03ff._0x1de034,0x1fc,_0x1b03ff._0x121503,_0x1b03ff._0x276603)]=null),_0x44d8dc['mSgue'](_0x5ce2ef[_0x501c89(0x57f,_0x1b03ff._0x10aae8,0x558,0x55a)+_0x8d454b(0x205,_0x1b03ff._0x53fd6c,_0x1b03ff._0x158a57,0x23b)+'p'],null)&&(_0x5ce2ef[_0x8d454b(_0x1b03ff._0x25677a,0x243,0x213,0x1df)+_0x501c89(0x584,0x5b1,0x596,_0x1b03ff._0x5ad4c7)+'p']=null),_0x44d8dc[_0x501c89(_0x1b03ff._0x3b24e8,_0x1b03ff._0x1392e8,_0x1b03ff._0x5d0e73,0x53f)](_0x5ce2ef['repairCurs'+_0x501c89(0x541,_0x1b03ff._0x394074,0x564,_0x1b03ff._0x4cd14b)],null)&&(_0x5ce2ef[_0x501c89(_0x1b03ff._0x32818b,0x5b6,_0x1b03ff._0x24f874,_0x1b03ff._0x3fd74e)+_0x501c89(_0x1b03ff._0x1952b4,_0x1b03ff._0x4a5eaf,_0x1b03ff._0x489700,_0x1b03ff._0x476025)]=null),Array['isArray'](_0x5ce2ef[_0x8d454b(0x237,0x231,0x213,0x23d)+'orSessionI'+'ds'])||(_0x5ce2ef[_0x501c89(_0x1b03ff._0x32818b,_0x1b03ff._0xaa9ba8,_0x1b03ff._0x769bb9,_0x1b03ff._0x477f42)+_0x501c89(_0x1b03ff._0x1e075d,0x55d,0x513,0x52c)+'ds']=[]);}var d=0x1;function _0x3036(_0x1a2691,_0x394f1c){_0x1a2691=_0x1a2691-0x1a6;const _0x637c18=_0x637c();let _0x30361b=_0x637c18[_0x1a2691];if(_0x3036['QWJhmC']===undefined){var _0x24407f=function(_0x577e02){const _0x10674e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x22dbf8='',_0x34fc72='';for(let _0x2b65fa=0x0,_0x296f31,_0x2e332d,_0x19e3b2=0x0;_0x2e332d=_0x577e02['charAt'](_0x19e3b2++);~_0x2e332d&&(_0x296f31=_0x2b65fa%0x4?_0x296f31*0x40+_0x2e332d:_0x2e332d,_0x2b65fa++%0x4)?_0x22dbf8+=String['fromCharCode'](0xff&_0x296f31>>(-0x2*_0x2b65fa&0x6)):0x0){_0x2e332d=_0x10674e['indexOf'](_0x2e332d);}for(let _0x5195f8=0x0,_0x387b0d=_0x22dbf8['length'];_0x5195f8<_0x387b0d;_0x5195f8++){_0x34fc72+='%'+('00'+_0x22dbf8['charCodeAt'](_0x5195f8)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x34fc72);};_0x3036['zTeXxO']=_0x24407f,_0x3036['NEruQR']={},_0x3036['QWJhmC']=!![];}const _0x3f8c94=_0x637c18[0x0],_0x5a57c9=_0x1a2691+_0x3f8c94,_0x21fd9d=_0x3036['NEruQR'][_0x5a57c9];return!_0x21fd9d?(_0x30361b=_0x3036['zTeXxO'](_0x30361b),_0x3036['NEruQR'][_0x5a57c9]=_0x30361b):_0x30361b=_0x21fd9d,_0x30361b;}function p(){const _0x546344={_0x5e2ace:0xa2,_0x4262b7:0xa4,_0x2c7ad6:0xb5,_0x270c9f:0xc7,_0x594858:0xc8,_0x46ed52:0x7d,_0x5538ad:0x390,_0x350fc6:0x374,_0x463f1e:0xbf,_0x44cc1c:0x97,_0x938d4:0x50},_0x1c3a26={_0x4634d5:0x270},_0xec9367={_0x3baab4:0x161},_0x524e6f={};function _0x4904c(_0xe44a59,_0x511689,_0x50e05,_0x54ad66){return _0x3036(_0x511689-_0xec9367._0x3baab4,_0xe44a59);}_0x524e6f['totalUploa'+'ded']=0x0,_0x524e6f[_0x42df06(-_0x546344._0x5e2ace,-_0x546344._0x4262b7,-_0x546344._0x2c7ad6,-_0x546344._0x270c9f)+'d']=0x0;const _0x2be416={};_0x2be416[_0x42df06(-0xc5,-_0x546344._0x594858,-_0x546344._0x46ed52,-0xa8)+_0x4904c(_0x546344._0x5538ad,_0x546344._0x350fc6,0x3ae,0x33f)]={};function _0x42df06(_0x122e3b,_0x4673db,_0x6f3dcc,_0x1d3eaf){return _0x3036(_0x1d3eaf- -_0x1c3a26._0x4634d5,_0x4673db);}return _0x2be416[_0x42df06(-_0x546344._0x463f1e,-0xce,-0x67,-_0x546344._0x44cc1c)+'e']=[],_0x2be416[_0x42df06(-_0x546344._0x938d4,-0xa0,-0x70,-0x6c)]=_0x524e6f,_0x2be416;}function f(_0x24229f,_0x4dedc4=d){const _0x4166ac={_0x400d0c:0x1f6,_0x274fdc:0x1e5,_0x584d30:0x1d1,_0x19b914:0x21a,_0x206522:0x1e0,_0x291dc9:0x8e,_0x34ed91:0x22b,_0x31fb9e:0x1c4,_0x5717e1:0xb6,_0x2aea2e:0xbb,_0x23b4f5:0xd6,_0x417acd:0xc9,_0x2f87e8:0xb5,_0x4567db:0x178},_0x5b7ba9={'GNmTA':function(_0x11d9a5){return _0x11d9a5();},'LjqSa':function(_0x443197){return _0x443197();}},_0x36f0a0={};_0x36f0a0[_0x252410(-_0x4166ac._0x400d0c,-_0x4166ac._0x274fdc,-0x1ed,-_0x4166ac._0x584d30)+_0x252410(-0x1e5,-_0x4166ac._0x19b914,-_0x4166ac._0x206522,-0x1f4)]=0x0,_0x36f0a0['totalFaile'+'d']=0x0,_0x36f0a0[_0x4203ba(-0xbf,-0xa0,-0xab,-_0x4166ac._0x291dc9)+_0x252410(-0x206,-0x1bf,-0x20f,-_0x4166ac._0x400d0c)]=null,_0x36f0a0[_0x252410(-_0x4166ac._0x34ed91,-0x1f5,-_0x4166ac._0x31fb9e,-0x1fb)+'me']=null;function _0x252410(_0x4b4efb,_0x258cef,_0x3112f3,_0x5020b3){return _0x3036(_0x5020b3- -0x3bf,_0x3112f3);}_0x36f0a0[_0x4203ba(-0xa9,-0x81,-_0x4166ac._0x5717e1,-_0x4166ac._0x2aea2e)]=null;const _0x18ecc3={};_0x18ecc3['lastConfig'+'FetchTime']=null,_0x18ecc3[_0x4203ba(-0x104,-0x11b,-0xf3,-0x11a)+'FetchSucce'+'ss']=!0x1;function _0x4203ba(_0x814b52,_0xa45752,_0x315f07,_0x5c7d35){return _0x3036(_0x315f07- -0x2a0,_0x814b52);}return{'mcpVersion':_0x24229f,'stateSchemaVersion':_0x4dedc4,'conversations':{},'failedQueue':[],'statistics':_0x36f0a0,'config':_0x18ecc3,'claudeCode':_0x5b7ba9[_0x4203ba(-_0x4166ac._0x23b4f5,-0xac,-_0x4166ac._0x417acd,-_0x4166ac._0x2f87e8)](p),'cursorCli':_0x5b7ba9[_0x252410(-0x197,-_0x4166ac._0x4567db,-0x1c7,-0x1aa)](p),'codex':p()};}function _0x637c(){const _0x574f60=['CNnPB24','CgLK','CNj1ChqT','C3rHDgLZDgLJCW','ioINO+AEKowKSEI0PE+8Jow3SUwKH+s7VEw5TG','zuLPshm','y29KzxHtDgf0zq','CMvUyw1Lu3LUyW','DhjPBq','CMvHzezPBgvtEq','vu9dtg8','wKHSD3e','ChbLzef0','yw5LBNrSEvnRAq','EvnRAxbWzwrbDa','C3rYAw5NAwz5','rMv0y2HuAw1L','y29KzxG','B25Z','tfv2qNm','tgPXu2e','zgLYBMfTzq','zxL6AKi','CLv1BgK','yMfJA2zPBgW','AwX3zxm','B3jtzxnZAw9Usq','Dg90ywXgywLSzq','BenyqMy','AxnbCNjHEq','CgvKuMvHC29U','BgfZDenVBMzPzW','BgPvq2u','y29WEuzPBgvtEq','ChP5svu','y2XHDwrLq29Kzq','mJq5mdi2mhHVrg9yDq','zxHPC3rZu3LUyW','CgvYBwfUzw50Ba','veDNzgS','B3jwzxjZAw9U','BgfZDenVBxbSzq','CMvWywLYtM9ozq','Aw9U','ChLQwMK','BM9ozwvKu3rYzq','mteZmJK0m0L2Au5mzW','C29U','mtG5ody2rfHgrgDL','BK1tEhi','Aw9UswrZ','mZvzBu9vwxO','zMXvCwe','D05ezvq','BgfZDezHAwXuAq','tertExO','y29UzMLN','BvnNDwu','y29UDMvYC2f0Aq','vgLTzq','mtjwAxnTs0y','zgvK','D1HYBMO','y3vYCMvUDe1JCa','q29TCgXLDgvKqq','CMvWywLYugvYBq','AwXPEfi','mJC0nJbVv2LcD1O','BwnWvMvYC2LVBG','C3rHDguUANnVBG','nZvxt2XAz2C','DxrMoa','ofH2EwDsra','r05Tvee','zwrtDhjLywS','zMfPBgvKuxvLDq','v2nMywe','ngHjrfbbDG','y3vYC29Yu2vZCW','DgvKqxq','y3vYC29YvMvYCW','C3rHBxa','zeXjEum','y3vYC29YvgLTzq','D3jPDgvgAwXLuW','B2jQzwn0','rMv0y2HtDwnJzq','C3rHDgvty2HLBq','BM93','q2HLy2TbDa','mJK0nti4z2jiBu9d','uxv5uwy','BgfZDevYCM9Y','Dwvjrxa','CMvWywLYvMvYCW','D2fYBG','Dg90ywXvCgXVyq','Ew5J','Aw5MBW','yuPYu3G','DeP3C00','mJm2otq2nKHqwfHPvG','CMvWywLYq3vYCW','BgfZDfvWBg9Hza','mJeXntaXohnABuX2zW','CMvWywLYu2TPCa','C2TPChbLzfjLyq','B3juAw1LC3rHBq','BgfZDfjLCgfPCG','BgfZDenOzwnRqq','ENzkz2q','vMvYC2LVBG','Dgvty2HLBwfwzq','yvzLCNnPB24','y3vYC29Yq2XP'];_0x637c=function(){return _0x574f60;};return _0x637c();}function u(_0xcd269c,_0x5703be){const _0x3fdf8d={_0x4345b8:0x6b,_0x45f02d:0x42e,_0x421c05:0x417,_0x52de7d:0x40c,_0x4c9a32:0x53,_0x342641:0x8a,_0x1ea34c:0x58,_0x2c06e1:0x87,_0x1fe1ea:0x64,_0x24f323:0x57,_0x4d1517:0x62,_0xa25209:0x3f,_0x1c1c76:0x42a,_0x4e0045:0x51,_0x38d5f3:0x3fe,_0x192506:0x408,_0x5d6b59:0x42c,_0x4136d2:0x65,_0xcbe6d0:0x3eb,_0x11bfa4:0x3ec,_0x893bd7:0x44c,_0x395bf5:0x438,_0x4fef85:0x450,_0x5ad158:0x41a,_0x2effae:0x453,_0x5efc53:0x478,_0x2a8ca2:0x47b,_0x32d930:0x445,_0x20a7d9:0xcd,_0x4ff735:0xec,_0x21ee34:0xc5,_0x563b36:0x462,_0x4910fd:0x40f,_0xec9109:0x445,_0x26522e:0x41b,_0x1c4fe7:0x428,_0x575f57:0x61,_0x27d00c:0xa4,_0x42378b:0x4e,_0x3fca46:0x3d7,_0x6d14d2:0x414,_0x19786b:0x404,_0x1099a9:0x71,_0x474e2d:0x3fe,_0xddc426:0x3f6,_0x2b517a:0x5c,_0x87ef19:0x8c,_0x5609d9:0xb7,_0x23f350:0x414,_0x1dddde:0x3ea,_0x4888c0:0x434,_0x30bfeb:0x41e,_0x1ebdb3:0x47d,_0x5bcd7e:0x7d};function _0x4bb413(_0x2474e2,_0x121f67,_0x2c54b3,_0x2bdbf3){return _0x3036(_0x2c54b3- -0x275,_0x121f67);}const _0x6b5bfd={'ueIEp':_0x4bb413(-0x8f,-_0x3fdf8d._0x4345b8,-0x92,-0xc1),'VcjbB':function(_0x203904){return _0x203904();},'pzyIU':function(_0x5e8b93,_0xe08322){return _0x5e8b93!=_0xe08322;},'QuyQf':function(_0xfd4c58,_0x56583d){return _0xfd4c58==_0x56583d;},'sBZor':function(_0x2f04b0,_0x8545d7){return _0x2f04b0===_0x8545d7;},'zvJgd':'codex'};function _0x2fbf2b(_0x494a6a,_0x463e16,_0x2e7ee5,_0x46fff3){return _0x3036(_0x46fff3-0x241,_0x494a6a);}const _0x130cbb={};_0x130cbb['totalUploa'+_0x2fbf2b(_0x3fdf8d._0x45f02d,_0x3fdf8d._0x421c05,0x3e3,_0x3fdf8d._0x52de7d)]=0x0,_0x130cbb['totalFaile'+'d']=0x0,((!_0xcd269c[_0x5703be]||typeof _0xcd269c[_0x5703be]!=_0x6b5bfd[_0x4bb413(-_0x3fdf8d._0x4c9a32,-0xc0,-_0x3fdf8d._0x342641,-_0x3fdf8d._0x1ea34c)])&&(_0xcd269c[_0x5703be]=_0x6b5bfd['VcjbB'](p)),(!_0xcd269c[_0x5703be][_0x4bb413(-0xd1,-_0x3fdf8d._0x2c06e1,-0xad,-0xd6)+_0x4bb413(-_0x3fdf8d._0x1fe1ea,-_0x3fdf8d._0x24f323,-_0x3fdf8d._0x4d1517,-_0x3fdf8d._0xa25209)]||typeof _0xcd269c[_0x5703be][_0x2fbf2b(_0x3fdf8d._0x1c1c76,0x414,0x40c,0x409)+_0x4bb413(-_0x3fdf8d._0x4e0045,-0x55,-0x62,-0x46)]!=_0x6b5bfd[_0x2fbf2b(0x3f6,_0x3fdf8d._0x38d5f3,_0x3fdf8d._0x192506,_0x3fdf8d._0x5d6b59)])&&(_0xcd269c[_0x5703be]['conversati'+_0x4bb413(-0x74,-0x4d,-0x62,-_0x3fdf8d._0x4136d2)]={}),Array[_0x2fbf2b(0x3e5,0x3f4,_0x3fdf8d._0xcbe6d0,_0x3fdf8d._0x11bfa4)](_0xcd269c[_0x5703be][_0x2fbf2b(0x3f6,_0x3fdf8d._0x893bd7,0x3fb,0x41a)+'e'])||(_0xcd269c[_0x5703be][_0x2fbf2b(_0x3fdf8d._0x395bf5,0x440,_0x3fdf8d._0x4fef85,_0x3fdf8d._0x5ad158)+'e']=[]),(!_0xcd269c[_0x5703be][_0x2fbf2b(_0x3fdf8d._0x2effae,_0x3fdf8d._0x5efc53,_0x3fdf8d._0x2a8ca2,_0x3fdf8d._0x32d930)]||_0x6b5bfd[_0x4bb413(-_0x3fdf8d._0x20a7d9,-_0x3fdf8d._0x4ff735,-_0x3fdf8d._0x21ee34,-0x8e)](typeof _0xcd269c[_0x5703be][_0x2fbf2b(_0x3fdf8d._0x563b36,0x46d,_0x3fdf8d._0x4910fd,_0x3fdf8d._0xec9109)],_0x4bb413(-0xb1,-0x9e,-0x92,-0x61)))&&(_0xcd269c[_0x5703be][_0x2fbf2b(0x43d,_0x3fdf8d._0x26522e,_0x3fdf8d._0x1c4fe7,_0x3fdf8d._0xec9109)]=_0x130cbb),_0xcd269c[_0x5703be][_0x4bb413(-_0x3fdf8d._0x575f57,-_0x3fdf8d._0x27d00c,-0x71,-_0x3fdf8d._0x42378b)]['totalUploa'+_0x2fbf2b(_0x3fdf8d._0x3fca46,_0x3fdf8d._0x6d14d2,_0x3fdf8d._0x19786b,0x40c)]==null&&(_0xcd269c[_0x5703be][_0x4bb413(-0x4f,-0x70,-_0x3fdf8d._0x1099a9,-0x89)][_0x4bb413(-_0x3fdf8d._0x42378b,-0xc1,-_0x3fdf8d._0x2c06e1,-0x8c)+_0x2fbf2b(_0x3fdf8d._0x474e2d,_0x3fdf8d._0xddc426,0x3f0,0x40c)]=0x0),_0x6b5bfd[_0x4bb413(-0x90,-_0x3fdf8d._0x2b517a,-_0x3fdf8d._0x87ef19,-_0x3fdf8d._0x5609d9)](_0xcd269c[_0x5703be]['statistics'][_0x2fbf2b(_0x3fdf8d._0x23f350,0x3b4,0x418,_0x3fdf8d._0x1dddde)+'d'],null)&&(_0xcd269c[_0x5703be][_0x2fbf2b(_0x3fdf8d._0x4888c0,_0x3fdf8d._0x30bfeb,_0x3fdf8d._0x1ebdb3,0x445)]['totalFaile'+'d']=0x0),_0x6b5bfd['sBZor'](_0x5703be,_0x6b5bfd[_0x4bb413(-0x7c,-0xac,-0x79,-_0x3fdf8d._0x5bcd7e)])&&m(_0xcd269c[_0x5703be]));}function k(_0x5adfab,_0x5887e8){const _0x1dfd59={_0x42a07d:0x5c5,_0x197536:0x264,_0x346d5d:0x5a2,_0x120b20:0x572,_0x38d0dc:0x59f,_0x5a40b7:0x589,_0x5735d9:0x5ae,_0x4cccdc:0x56b,_0x37d9ee:0x59f,_0x79edce:0x588,_0x96763b:0x583,_0x564250:0x5a8,_0x4d8e19:0x55b,_0x406a73:0x560,_0x40956b:0x596,_0x39a8a3:0x5aa,_0x52a301:0x592,_0x17648a:0x595,_0x3d97c8:0x25e,_0x247032:0x263,_0x1c5c33:0x5f0,_0x2e1bb9:0x5b0,_0x24b60e:0x52c,_0x486e55:0x585,_0x443e35:0x54a,_0x129c54:0x210,_0x3f533f:0x274,_0x194696:0x23e,_0x3d92ca:0x270,_0x159c9c:0x259,_0x872427:0x597,_0x1dd981:0x5e7,_0x124edc:0x22f,_0x56151d:0x269,_0x1bf29e:0x23b,_0x811bc7:0x56f,_0x53c73f:0x230,_0x314ddd:0x203,_0x1e0cfd:0x250,_0x5f5745:0x5b5,_0x19e722:0x582,_0x1c3e93:0x585,_0x4c521a:0x261,_0x3cb286:0x25b,_0x56bcb6:0x57c,_0x479fdc:0x546,_0x2b988f:0x58d,_0x30604b:0x5c3,_0x35fc35:0x269,_0x4fa218:0x272,_0x27964a:0x289,_0x152528:0x25a,_0x200748:0x252,_0x4c4b58:0x22f,_0x168fac:0x21d,_0x5e68f5:0x238,_0x110979:0x252,_0x1485c1:0x226,_0x28fa2b:0x22e,_0x38f820:0x265,_0x425a34:0x25e,_0xccdeb4:0x575,_0x1df4ff:0x54a,_0x202432:0x590,_0x50bc15:0x269,_0x4e1e24:0x25c,_0x5a6e52:0x5b5,_0x167a1e:0x5eb,_0x37cb8a:0x58a,_0x20ab7e:0x262,_0x31c2ee:0x24f,_0x4f6404:0x281,_0xafc150:0x23c,_0x337b71:0x234,_0x23ba2a:0x22b,_0x573221:0x237,_0xc1735b:0x255,_0x3b015b:0x25e,_0x1c0976:0x248,_0x53ffcd:0x225,_0x83157c:0x575,_0x5c693e:0x545,_0xcb269a:0x24b,_0x28b34d:0x55a,_0x45a026:0x551,_0x487f4b:0x536,_0x117cfe:0x1fe,_0xaaed7b:0x20e,_0x44db86:0x55e,_0x428c79:0x591,_0x12d284:0x276,_0x35dce7:0x288,_0x535ebd:0x2ac,_0x30b054:0x537,_0x423bd2:0x576,_0x3847b3:0x57d,_0x1ece97:0x577,_0x278585:0x245,_0x30cb95:0x26e,_0x88f20e:0x249,_0x1e923c:0x259,_0x3d4122:0x236,_0x1bc582:0x212,_0x500639:0x5bd,_0x44cd99:0x5ad,_0x512e53:0x562,_0x225888:0x561,_0x572080:0x535,_0x257d86:0x588,_0x3158d9:0x20f,_0x5b3639:0x1f1,_0x151957:0x246,_0x3fc504:0x243,_0x3b4e9d:0x265,_0x25cee9:0x240,_0x195beb:0x23d,_0x5093f6:0x20c,_0x4d766a:0x222,_0x3163c4:0x277,_0x2c09f0:0x26d},_0x1f6d62={_0x5057d0:0x3b1},_0x4d2ca7={'Wcfaa':function(_0x3afc82,_0x20722b){return _0x3afc82==_0x20722b;},'ljUCe':_0x5d6381(0x594,0x5a0,_0x1dfd59._0x42a07d,0x56d),'aJrSx':function(_0x36cbc3,_0x30fdcb,_0x5f4d39){return _0x36cbc3(_0x30fdcb,_0x5f4d39);},'pyjZi':function(_0x40875a,_0x238756){return _0x40875a==_0x238756;},'lCXBf':function(_0x216e34,_0x294f4c,_0x35758c){return _0x216e34(_0x294f4c,_0x35758c);},'ilwes':function(_0x26a5e9,_0x457b9d,_0x53031d){return _0x26a5e9(_0x457b9d,_0x53031d);}};function _0x454636(_0x1316c3,_0xe98901,_0x407aec,_0x34a9b9){return _0x3036(_0xe98901-0x65,_0x34a9b9);}let {currentMcpVersion:_0x34358f,currentStateSchemaVersion:_0x31281c=d}=_0x5887e8,_0x2dd7d4=_0x5adfab&&_0x4d2ca7[_0x454636(_0x1dfd59._0x197536,0x23f,0x272,0x23c)](typeof _0x5adfab,_0x4d2ca7['ljUCe'])?_0x5adfab:_0x4d2ca7[_0x5d6381(_0x1dfd59._0x346d5d,0x5db,_0x1dfd59._0x120b20,0x5a3)](f,_0x34358f,_0x31281c);function _0x5d6381(_0x305333,_0x2932b1,_0x2d7f2a,_0x56572e){return _0x3036(_0x305333-_0x1f6d62._0x5057d0,_0x2932b1);}const _0x58cec0={};return _0x58cec0[_0x5d6381(_0x1dfd59._0x38d0dc,0x598,_0x1dfd59._0x5a40b7,_0x1dfd59._0x5735d9)+_0x5d6381(0x57c,_0x1dfd59._0x4cccdc,_0x1dfd59._0x37d9ee,_0x1dfd59._0x79edce)]=0x0,_0x58cec0['totalFaile'+'d']=0x0,(_0x2dd7d4[_0x5d6381(_0x1dfd59._0x96763b,_0x1dfd59._0x564250,_0x1dfd59._0x4d8e19,_0x1dfd59._0x406a73)]=_0x34358f,_0x2dd7d4[_0x5d6381(_0x1dfd59._0x40956b,0x56c,_0x1dfd59._0x39a8a3,_0x1dfd59._0x52a301)+_0x5d6381(0x5b0,0x5a1,_0x1dfd59._0x17648a,0x5bc)]=_0x31281c,(!_0x2dd7d4[_0x454636(_0x1dfd59._0x3d97c8,0x22d,0x247,0x1fe)+_0x454636(0x29d,0x278,0x247,_0x1dfd59._0x247032)]||typeof _0x2dd7d4['conversati'+_0x5d6381(0x5c4,0x590,_0x1dfd59._0x1c5c33,_0x1dfd59._0x2e1bb9)]!=_0x4d2ca7[_0x5d6381(0x55f,_0x1dfd59._0x24b60e,0x588,0x53e)])&&(_0x2dd7d4[_0x5d6381(0x579,_0x1dfd59._0x486e55,_0x1dfd59._0x443e35,0x57e)+'ons']={}),Array[_0x454636(0x206,_0x1dfd59._0x129c54,0x23d,0x22e)](_0x2dd7d4[_0x454636(_0x1dfd59._0x3f533f,_0x1dfd59._0x194696,0x270,0x25e)+'e'])||(_0x2dd7d4[_0x454636(_0x1dfd59._0x3d92ca,0x23e,_0x1dfd59._0x159c9c,_0x1dfd59._0x197536)+'e']=[]),(!_0x2dd7d4[_0x5d6381(0x5b5,0x590,_0x1dfd59._0x872427,_0x1dfd59._0x1dd981)]||typeof _0x2dd7d4[_0x454636(_0x1dfd59._0x124edc,_0x1dfd59._0x56151d,_0x1dfd59._0x1bf29e,0x241)]!=_0x4d2ca7['ljUCe'])&&(_0x2dd7d4[_0x454636(0x237,0x269,0x274,0x29a)]=_0x58cec0),_0x2dd7d4['statistics'][_0x5d6381(_0x1dfd59._0x38d0dc,_0x1dfd59._0x811bc7,0x5a1,0x58e)+_0x454636(0x224,_0x1dfd59._0x53c73f,_0x1dfd59._0x314ddd,_0x1dfd59._0x1e0cfd)]==null&&(_0x2dd7d4[_0x5d6381(_0x1dfd59._0x5f5745,_0x1dfd59._0x19e722,_0x1dfd59._0x1c3e93,0x5e1)][_0x454636(_0x1dfd59._0x4c521a,0x253,_0x1dfd59._0x3cb286,0x28b)+_0x5d6381(_0x1dfd59._0x56bcb6,0x597,_0x1dfd59._0x479fdc,0x571)]=0x0),_0x2dd7d4['statistics']['totalFaile'+'d']==null&&(_0x2dd7d4[_0x5d6381(0x5b5,0x5e0,_0x1dfd59._0x2b988f,_0x1dfd59._0x30604b)]['totalFaile'+'d']=0x0),_0x2dd7d4[_0x454636(0x26f,_0x1dfd59._0x35fc35,0x251,_0x1dfd59._0x4fa218)][_0x454636(_0x1dfd59._0x27964a,_0x1dfd59._0x152528,_0x1dfd59._0x200748,0x228)+_0x454636(_0x1dfd59._0x4c4b58,0x22e,_0x1dfd59._0x168fac,0x250)]==null&&(_0x2dd7d4['statistics'][_0x454636(_0x1dfd59._0x197536,_0x1dfd59._0x152528,_0x1dfd59._0x5e68f5,_0x1dfd59._0x110979)+_0x454636(_0x1dfd59._0x1485c1,_0x1dfd59._0x28fa2b,0x245,_0x1dfd59._0x38f820)]=null),_0x2dd7d4['statistics']['lastFailTi'+'me']==null&&(_0x2dd7d4[_0x454636(0x248,_0x1dfd59._0x35fc35,_0x1dfd59._0x425a34,0x26a)][_0x5d6381(_0x1dfd59._0xccdeb4,0x5ac,0x5ab,0x59f)+'me']=null),_0x4d2ca7[_0x5d6381(_0x1dfd59._0x4cccdc,0x56f,_0x1dfd59._0x1df4ff,_0x1dfd59._0x202432)](_0x2dd7d4[_0x454636(_0x1dfd59._0x38f820,_0x1dfd59._0x50bc15,0x26f,_0x1dfd59._0x4e1e24)][_0x5d6381(0x59b,0x57d,_0x1dfd59._0x19e722,0x5ac)],null)&&(_0x2dd7d4[_0x5d6381(_0x1dfd59._0x5a6e52,_0x1dfd59._0x167a1e,_0x1dfd59._0x42a07d,_0x1dfd59._0x37cb8a)][_0x454636(_0x1dfd59._0x20ab7e,_0x1dfd59._0x31c2ee,_0x1dfd59._0x4f6404,_0x1dfd59._0xafc150)]=null),(!_0x2dd7d4[_0x454636(_0x1dfd59._0x337b71,_0x1dfd59._0x23ba2a,_0x1dfd59._0x573221,_0x1dfd59._0xc1735b)]||typeof _0x2dd7d4[_0x454636(0x256,0x22b,0x1f1,_0x1dfd59._0x3b015b)]!=_0x454636(0x24e,_0x1dfd59._0x1c0976,_0x1dfd59._0x53ffcd,0x27f))&&(_0x2dd7d4[_0x5d6381(0x577,_0x1dfd59._0x83157c,_0x1dfd59._0x5c693e,0x59f)]={}),_0x2dd7d4[_0x454636(_0x1dfd59._0x152528,0x22b,0x259,_0x1dfd59._0xcb269a)][_0x5d6381(0x55e,_0x1dfd59._0x28b34d,_0x1dfd59._0x45a026,_0x1dfd59._0x487f4b)+_0x5d6381(0x5c2,0x5ed,0x5e5,0x5c5)]==null&&(_0x2dd7d4[_0x454636(_0x1dfd59._0x197536,_0x1dfd59._0x23ba2a,_0x1dfd59._0x117cfe,_0x1dfd59._0xaaed7b)][_0x5d6381(_0x1dfd59._0x44db86,0x574,_0x1dfd59._0x428c79,0x57f)+_0x454636(0x293,_0x1dfd59._0x12d284,_0x1dfd59._0x35dce7,_0x1dfd59._0x535ebd)]=null),_0x4d2ca7[_0x5d6381(0x56b,_0x1dfd59._0x30b054,_0x1dfd59._0x423bd2,_0x1dfd59._0x3847b3)](_0x2dd7d4[_0x5d6381(_0x1dfd59._0x1ece97,0x590,0x569,0x57f)][_0x454636(_0x1dfd59._0x278585,0x212,0x228,0x205)+_0x454636(_0x1dfd59._0x30cb95,_0x1dfd59._0x88f20e,0x219,_0x1dfd59._0x1e923c)+'ss'],null)&&(_0x2dd7d4['config'][_0x454636(_0x1dfd59._0x3d4122,_0x1dfd59._0x1bc582,0x235,0x207)+'FetchSucce'+'ss']=!0x1),_0x4d2ca7[_0x5d6381(0x5a2,_0x1dfd59._0x500639,0x5b6,_0x1dfd59._0x44cd99)](u,_0x2dd7d4,_0x5d6381(_0x1dfd59._0x512e53,_0x1dfd59._0x225888,_0x1dfd59._0x572080,_0x1dfd59._0x257d86)),_0x4d2ca7[_0x454636(0x234,_0x1dfd59._0x3158d9,_0x1dfd59._0x5b3639,_0x1dfd59._0x151957)](u,_0x2dd7d4,_0x454636(_0x1dfd59._0x3fc504,_0x1dfd59._0x3b4e9d,_0x1dfd59._0x25cee9,0x285)),_0x4d2ca7[_0x454636(_0x1dfd59._0x195beb,_0x1dfd59._0x5093f6,_0x1dfd59._0x4d766a,0x220)](u,_0x2dd7d4,_0x454636(0x264,_0x1dfd59._0x3163c4,_0x1dfd59._0x2c09f0,_0x1dfd59._0x247032)),_0x2dd7d4);}function b(_0x391494,_0x521026={}){const _0x2d992f={_0x3d96f7:0x426,_0x3027b5:0x44e,_0x399a1e:0x45a,_0x43f093:0x489,_0x121fb1:0x4b0,_0x5def70:0x42e,_0x1152b7:0x403,_0x5ca961:0x51,_0x33dcdb:0x465,_0x112738:0x9,_0x4dde40:0x3f,_0x298142:0x5b,_0x635238:0x22,_0x3b085b:0x455,_0x33b981:0x485,_0xc01168:0x44c,_0x2f1353:0x418,_0xe8535d:0xa,_0x7573d8:0x47,_0x2588de:0x11,_0x5e64f9:0x492,_0x14ec94:0x460,_0x1ba695:0x42f,_0x52ffb0:0x447,_0x3c7f5b:0x57,_0x3584aa:0x7d,_0xb9c398:0x4b3,_0xb29846:0x484,_0x17d959:0x44d,_0x428346:0x48c,_0x276763:0x484,_0x572318:0x24,_0x35a4cc:0x481,_0x22d6b6:0x47d,_0x4d3d6d:0x47e,_0x316917:0x49c,_0x289f73:0x439,_0x33be7b:0x461,_0xd0be7d:0x74,_0x36093a:0xae,_0x5dd0ed:0x93,_0xba66ae:0x7f,_0x28caec:0x498,_0x7d78e2:0x487,_0x32a301:0x477,_0xbfeade:0x1c,_0x4c21da:0x8},_0x41a618={_0x382f5d:0x27b};function _0x42ca52(_0x2b2b22,_0x3886d7,_0x38c9b8,_0x42c061){return _0x3036(_0x38c9b8-_0x41a618._0x382f5d,_0x2b2b22);}const _0x4c8ef3={'nMSxr':function(_0x69cfa8,_0xd44a8a,_0x188255){return _0x69cfa8(_0xd44a8a,_0x188255);},'LUvBs':_0x42ca52(_0x2d992f._0x3d96f7,0x470,_0x2d992f._0x3027b5,_0x2d992f._0x399a1e)+'\x20已完成兼容迁移','ZHlwq':'state.json'+_0x42ca52(_0x2d992f._0x43f093,0x4a7,0x480,_0x2d992f._0x121fb1)+'重建默认状态','eIiHs':function(_0x4bbe65,_0x522aeb,_0x495a62){return _0x4bbe65(_0x522aeb,_0x495a62);}};let {currentMcpVersion:_0x22ff02,currentStateSchemaVersion:_0x9532fd=d,logger:_0x500167}=_0x521026;if(!_0x334bb7[_0x42ca52(_0x2d992f._0x5def70,_0x2d992f._0x1152b7,0x42e,0x435)](_0x391494)){let _0x951a28=_0x4c8ef3[_0x5c049e(-0x64,-0x6a,-0x57,-_0x2d992f._0x5ca961)](f,_0x22ff02,_0x9532fd);return c(_0x391494,_0x951a28),_0x951a28;}function _0x5c049e(_0x8a0a34,_0x3a6c66,_0x484bbe,_0x559fe7){return _0x3036(_0x8a0a34- -0x223,_0x559fe7);}try{const _0x4b37fb={};_0x4b37fb[_0x5c049e(-0x56,-0x79,-0x6d,-0x40)+_0x42ca52(0x497,_0x2d992f._0x33dcdb,0x478,0x476)]=_0x22ff02,_0x4b37fb['currentSta'+_0x5c049e(-0x25,-0x58,_0x2d992f._0x112738,-0x11)+_0x5c049e(-0x22,-_0x2d992f._0x4dde40,-_0x2d992f._0x298142,-_0x2d992f._0x635238)]=_0x9532fd;let _0x1a20c6=_0x334bb7[_0x42ca52(0x48b,_0x2d992f._0x3b085b,_0x2d992f._0x33b981,0x463)+'nc'](_0x391494,_0x42ca52(_0x2d992f._0xc01168,0x44f,0x450,_0x2d992f._0x2f1353)),_0x348058=JSON['parse'](_0x1a20c6),_0x68aaf7=k(_0x348058,_0x4b37fb),_0x21ca3c=JSON[_0x5c049e(-0x13,_0x2d992f._0xe8535d,-_0x2d992f._0x7573d8,_0x2d992f._0x2588de)](_0x68aaf7,null,0x2);const _0x5877d6={};return _0x5877d6[_0x42ca52(_0x2d992f._0x5e64f9,0x48f,_0x2d992f._0x14ec94,_0x2d992f._0x1ba695)+_0x42ca52(0x4a7,_0x2d992f._0x52ffb0,0x47a,0x4a1)]=_0x9532fd,_0x5877d6[_0x5c049e(-0x51,-0x3d,-_0x2d992f._0x3c7f5b,-_0x2d992f._0x3584aa)]=_0x22ff02,(_0x1a20c6[_0x42ca52(_0x2d992f._0xb9c398,0x497,_0x2d992f._0xb29846,0x465)]()!==_0x21ca3c['trim']()&&(_0x4c8ef3['nMSxr'](c,_0x391494,_0x68aaf7),_0x500167?.[_0x42ca52(_0x2d992f._0x17d959,0x453,0x46b,_0x2d992f._0x428346)]?.(_0x4c8ef3[_0x42ca52(0x459,_0x2d992f._0x276763,0x48f,0x47b)],_0x5877d6)),_0x68aaf7);}catch(_0x309ab1){let _0x216d25=_0x39dda2['join'](_0x39dda2[_0x5c049e(-0xd,0x0,0x1d,-_0x2d992f._0x572318)](_0x391494),_0x42ca52(_0x2d992f._0x35a4cc,0x461,_0x2d992f._0x3027b5,_0x2d992f._0x22d6b6)+'.backup-co'+_0x42ca52(0x4a3,0x4af,_0x2d992f._0x4d3d6d,_0x2d992f._0x316917)+Date[_0x42ca52(_0x2d992f._0x289f73,0x437,_0x2d992f._0x33be7b,0x498)]());_0x334bb7[_0x5c049e(-_0x2d992f._0xd0be7d,-_0x2d992f._0x36093a,-_0x2d992f._0x5dd0ed,-_0x2d992f._0xba66ae)+'nc'](_0x391494,_0x216d25),_0x500167?.[_0x42ca52(_0x2d992f._0x289f73,0x479,0x468,0x434)]?.(_0x4c8ef3[_0x42ca52(_0x2d992f._0x28caec,0x471,_0x2d992f._0x7d78e2,_0x2d992f._0x32a301)],{'backupFile':_0x216d25,'error':_0x309ab1['message']});let _0x848b05=_0x4c8ef3[_0x5c049e(-0x1d,_0x2d992f._0xbfeade,0x4,-_0x2d992f._0x4c21da)](f,_0x22ff02,_0x9532fd);return c(_0x391494,_0x848b05),_0x848b05;}}function c(_0x54459e,_0x9ffa5a){const _0x1e2175={_0x4bcb30:0x2c6,_0x5a1c35:0x2d6,_0x3db50f:0x316,_0x435a22:0x2c9,_0x26b399:0x2e7,_0xc05717:0x311,_0x4829ac:0x4a2,_0x438dc1:0x491,_0x29b459:0x48f,_0x5f1e94:0x468,_0x27cb17:0x322,_0x4797f6:0x33d,_0x59d29e:0x30e,_0xe7f4f8:0x4a8},_0x3c2fef={_0x3f1314:0x112},_0x5b29d3={_0x1a803c:0x2a0};function _0x2aead0(_0x2fdcbc,_0x34f0f9,_0x52852d,_0x38bc68){return _0x3036(_0x2fdcbc-_0x5b29d3._0x1a803c,_0x34f0f9);}const _0x271bbf={};_0x271bbf[_0x42cc49(_0x1e2175._0x4bcb30,0x2de,_0x1e2175._0x5a1c35,_0x1e2175._0x3db50f)]=_0x42cc49(_0x1e2175._0x435a22,_0x1e2175._0x26b399,_0x1e2175._0xc05717,0x2d8);const _0x13a8ac=_0x271bbf;function _0x42cc49(_0x325914,_0x301b0c,_0x79bf2c,_0x55d453){return _0x3036(_0x301b0c-_0x3c2fef._0x3f1314,_0x55d453);}let _0x1ca144=_0x54459e+'.tmp.'+process[_0x2aead0(_0x1e2175._0x4829ac,0x47c,0x495,_0x1e2175._0x438dc1)];_0x334bb7[_0x42cc49(0x30d,0x2f4,0x30a,0x2e4)+_0x2aead0(_0x1e2175._0x29b459,0x4bb,_0x1e2175._0x5f1e94,0x4c2)](_0x1ca144,JSON[_0x42cc49(0x34c,_0x1e2175._0x27cb17,_0x1e2175._0x4797f6,_0x1e2175._0x59d29e)](_0x9ffa5a,null,0x2),_0x13a8ac['wXrnj']),_0x334bb7[_0x2aead0(_0x1e2175._0xe7f4f8,0x4c5,0x4de,0x4ba)](_0x1ca144,_0x54459e);}export{d as DEFAULT_STATE_SCHEMA_VERSION,p as createConversationSourceState,f as createDefaultChatGrabState,u as ensureConversationSourceState,b as loadOrCreateChatGrabState,k as migrateChatGrabState,c as saveChatGrabStateFile};
5
+ export const DEFAULT_STATE_SCHEMA_VERSION = 1;
6
+
7
+ export function createConversationSourceState() {
8
+ return { conversations: {}, failedQueue: [], statistics: { totalUploaded: 0, totalFailed: 0 } };
9
+ }
10
+
11
+ export function createDefaultChatGrabState(currentMcpVersion, currentStateSchemaVersion = DEFAULT_STATE_SCHEMA_VERSION) {
12
+ return {
13
+ mcpVersion: currentMcpVersion,
14
+ stateSchemaVersion: currentStateSchemaVersion,
15
+ conversations: {},
16
+ failedQueue: [],
17
+ statistics: {
18
+ totalUploaded: 0,
19
+ totalFailed: 0,
20
+ lastUploadTime: null,
21
+ lastFailTime: null,
22
+ lastError: null
23
+ },
24
+ config: {
25
+ lastConfigFetchTime: null,
26
+ lastConfigFetchSuccess: false
27
+ },
28
+ claudeCode: createConversationSourceState(),
29
+ cursorCli: createConversationSourceState(),
30
+ codex: createConversationSourceState()
31
+ };
32
+ }
33
+
34
+ export function ensureConversationSourceState(state, key) {
35
+ if (!state[key] || typeof state[key] !== 'object') {
36
+ state[key] = createConversationSourceState();
37
+ }
38
+ if (!state[key].conversations || typeof state[key].conversations !== 'object') {
39
+ state[key].conversations = {};
40
+ }
41
+ if (!Array.isArray(state[key].failedQueue)) {
42
+ state[key].failedQueue = [];
43
+ }
44
+ if (!state[key].statistics || typeof state[key].statistics !== 'object') {
45
+ state[key].statistics = { totalUploaded: 0, totalFailed: 0 };
46
+ }
47
+ if (state[key].statistics.totalUploaded == null) state[key].statistics.totalUploaded = 0;
48
+ if (state[key].statistics.totalFailed == null) state[key].statistics.totalFailed = 0;
49
+ if (key === 'codex') {
50
+ ensureCodexRepairState(state[key]);
51
+ }
52
+ }
53
+
54
+ export function migrateChatGrabState(rawState, options) {
55
+ const {
56
+ currentMcpVersion,
57
+ currentStateSchemaVersion = DEFAULT_STATE_SCHEMA_VERSION,
58
+ } = options;
59
+ const state = rawState && typeof rawState === 'object'
60
+ ? rawState
61
+ : createDefaultChatGrabState(currentMcpVersion, currentStateSchemaVersion);
62
+
63
+ state.mcpVersion = currentMcpVersion;
64
+ state.stateSchemaVersion = currentStateSchemaVersion;
65
+
66
+ if (!state.conversations || typeof state.conversations !== 'object') state.conversations = {};
67
+ if (!Array.isArray(state.failedQueue)) state.failedQueue = [];
68
+ if (!state.statistics || typeof state.statistics !== 'object') {
69
+ state.statistics = { totalUploaded: 0, totalFailed: 0 };
70
+ }
71
+ if (state.statistics.totalUploaded == null) state.statistics.totalUploaded = 0;
72
+ if (state.statistics.totalFailed == null) state.statistics.totalFailed = 0;
73
+ if (state.statistics.lastUploadTime == null) state.statistics.lastUploadTime = null;
74
+ if (state.statistics.lastFailTime == null) state.statistics.lastFailTime = null;
75
+ if (state.statistics.lastError == null) state.statistics.lastError = null;
76
+ if (!state.config || typeof state.config !== 'object') state.config = {};
77
+ if (state.config.lastConfigFetchTime == null) state.config.lastConfigFetchTime = null;
78
+ if (state.config.lastConfigFetchSuccess == null) state.config.lastConfigFetchSuccess = false;
79
+
80
+ ensureConversationSourceState(state, 'claudeCode');
81
+ ensureConversationSourceState(state, 'cursorCli');
82
+ ensureConversationSourceState(state, 'codex');
83
+ return state;
84
+ }
85
+
86
+ export function loadOrCreateChatGrabState(stateFile, options = {}) {
87
+ const {
88
+ currentMcpVersion,
89
+ currentStateSchemaVersion = DEFAULT_STATE_SCHEMA_VERSION,
90
+ logger,
91
+ } = options;
92
+
93
+ if (!fs.existsSync(stateFile)) {
94
+ const state = createDefaultChatGrabState(currentMcpVersion, currentStateSchemaVersion);
95
+ saveChatGrabStateFile(stateFile, state);
96
+ return state;
97
+ }
98
+
99
+ try {
100
+ const content = fs.readFileSync(stateFile, 'utf8');
101
+ const previousState = JSON.parse(content);
102
+ const migratedState = migrateChatGrabState(previousState, {
103
+ currentMcpVersion,
104
+ currentStateSchemaVersion,
105
+ });
106
+ const normalized = JSON.stringify(migratedState, null, 2);
107
+ if (content.trim() !== normalized.trim()) {
108
+ saveChatGrabStateFile(stateFile, migratedState);
109
+ logger?.info?.('state.json 已完成兼容迁移', {
110
+ stateSchemaVersion: currentStateSchemaVersion,
111
+ mcpVersion: currentMcpVersion,
112
+ });
113
+ }
114
+ return migratedState;
115
+ } catch (error) {
116
+ const backupFile = path.join(path.dirname(stateFile), `state.json.backup-corrupt-${Date.now()}`);
117
+ fs.copyFileSync(stateFile, backupFile);
118
+ logger?.warn?.('state.json 解析失败,已备份并重建默认状态', { backupFile, error: error.message });
119
+ const state = createDefaultChatGrabState(currentMcpVersion, currentStateSchemaVersion);
120
+ saveChatGrabStateFile(stateFile, state);
121
+ return state;
122
+ }
123
+ }
124
+
125
+ export function saveChatGrabStateFile(stateFile, state) {
126
+ const tmpFile = `${stateFile}.tmp.${process.pid}`;
127
+ fs.writeFileSync(tmpFile, JSON.stringify(state, null, 2), 'utf8');
128
+ fs.renameSync(tmpFile, stateFile);
129
+ }