@univerjs-pro/mcp-ui 0.10.14-nightly.202511070640 → 0.10.14-nightly.202511080715
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/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +6 -6
package/lib/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x20e3(_0xeaf258,_0x47fbc1){const _0x32882f=_0x3288();return _0x20e3=function(_0x20e3af,_0xafdd64){_0x20e3af=_0x20e3af-0x193;let _0x5c05f1=_0x32882f[_0x20e3af];return _0x5c05f1;},_0x20e3(_0xeaf258,_0x47fbc1);}const _0x22d051=_0x20e3;(function(_0x3f792f,_0x47ee38){const _0x2f2b60=_0x20e3,_0x2e8946=_0x3f792f();while(!![]){try{const _0x37804e=-parseInt(_0x2f2b60(0x1a2))/0x1+-parseInt(_0x2f2b60(0x1a1))/0x2*(parseInt(_0x2f2b60(0x1c1))/0x3)+-parseInt(_0x2f2b60(0x19e))/0x4*(parseInt(_0x2f2b60(0x1c3))/0x5)+parseInt(_0x2f2b60(0x19a))/0x6+-parseInt(_0x2f2b60(0x1a6))/0x7+-parseInt(_0x2f2b60(0x1b1))/0x8*(-parseInt(_0x2f2b60(0x19d))/0x9)+parseInt(_0x2f2b60(0x1ad))/0xa;if(_0x37804e===_0x47ee38)break;else _0x2e8946['push'](_0x2e8946['shift']());}catch(_0x22fd09){_0x2e8946['push'](_0x2e8946['shift']());}}}(_0x3288,0x66b7e));const e={'mcpStatus':{'disconnected':_0x22d051(0x1a9),'connecting':'MCP\x20Connecting...','connected':_0x22d051(0x1b9),'failed':_0x22d051(0x1b6),'retrying':_0x22d051(0x1a8),'unknown':_0x22d051(0x1c6),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x22d051(0x19f),'networkError':_0x22d051(0x1a7),'maxRetriesExceeded':_0x22d051(0x1bc),'clickToConnect':_0x22d051(0x1ba),'clickToConfigure':_0x22d051(0x193)},'mcpConfig':{'title':_0x22d051(0x1a4),'description':_0x22d051(0x1bb),'apiKey':_0x22d051(0x1af),'apiKeyPlaceholder':_0x22d051(0x1b8),'apiKeyHint':_0x22d051(0x1b5),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x22d051(0x1a3),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x22d051(0x197),'configInstructions':_0x22d051(0x199),'configStepTitle':_0x22d051(0x1b4),'configStep1':_0x22d051(0x196),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x22d051(0x1bd),'sessionId':_0x22d051(0x1be),'sessionIdDescription':_0x22d051(0x19b),'authorizationDescription':_0x22d051(0x1b3),'configParameters':_0x22d051(0x1b7),'maxRetries':_0x22d051(0x1ab),'save':_0x22d051(0x1b2),'saving':_0x22d051(0x1c4),'note1':_0x22d051(0x1c0),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x22d051(0x19c),'configError':_0x22d051(0x1b0),'apiApplyInfo':{'title':_0x22d051(0x1aa),'description':_0x22d051(0x198),'univerAiLabel':_0x22d051(0x1ac),'getStarted':_0x22d051(0x1a5)},'validation':{'apiKeyRequired':_0x22d051(0x1ae),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x22d051(0x1a0),'connecting':_0x22d051(0x195),'connected':_0x22d051(0x194),'failed':'Connection\x20Failed','retrying':_0x22d051(0x1bf)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x22d051(0x1c2),'maxRetriesExceeded':_0x22d051(0x1c5)}}},n=e;export{n as default};function _0x3288(){const _0x1fe24b=['Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','100JFqTib','Saving...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Unknown\x20Status','Click\x20to\x20configure\x20MCP','Connected','Connecting...','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Client\x20Configuration','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','4146342QTskli','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20saved\x20successfully','968958VaZjzq','127220ZxEaWO','MCP:\x20Session\x20ID\x20Occupied','Disconnected','989132nwPrBa','355036zqmSVM','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Configuration','Get\x20your\x20API\x20key\x20in\x20seconds','5418644kOghQG','MCP:\x20Network\x20Error','MCP\x20Retrying...','MCP\x20Disconnected','What\x20is\x20API\x20Key?','Max\x20Retries','Univer\x20AI\x20Console','15588230hAkTuz','API\x20key\x20is\x20required','API\x20Key','Failed\x20to\x20save\x20configuration','32eyLNRX','Save\x20Configuration','API\x20key\x20with\x20Bearer\x20prefix.','Configuration\x20Steps:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Connection\x20Failed','Configuration\x20Parameters:','Enter\x20your\x20API\x20key','MCP\x20Connected','Click\x20to\x20connect\x20MCP','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Max\x20Retries\x20Exceeded','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Session\x20ID','Retrying...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','3ukTzgc'];_0x3288=function(){return _0x1fe24b;};return _0x3288();}
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x22c8(){const _0x343201=['Max\x20Retries','API\x20Key','130WfLsqr','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Client\x20Configuration','18725Phswdv','API\x20key\x20with\x20Bearer\x20prefix.','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Connection\x20Failed','MCP\x20Unknown\x20Status','3347712JVQWTn','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','3279221hLMMRL','API\x20key\x20is\x20required','Click\x20to\x20configure\x20MCP','MCP\x20Connecting...','MCP:\x20Network\x20Error','MCP\x20Configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Retrying...','2810992mvArWz','1803730vpjAxw','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Click\x20to\x20connect\x20MCP','Session\x20ID','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Connection\x20Failed','Save\x20Configuration','1ZzUgBS','Connected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20Parameters:','Connecting...','Failed\x20to\x20save\x20configuration','Enter\x20your\x20API\x20key','Retrying...','2334LNzHgn','MCP:\x20Unauthorized','3518019uhuLVo','MCP:\x20Session\x20ID\x20Occupied','What\x20is\x20API\x20Key?','Get\x20your\x20API\x20key\x20in\x20seconds','Disconnected','Univer\x20AI\x20Console','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','18WgrrOW','Invalid\x20configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','1340650PBBITU'];_0x22c8=function(){return _0x343201;};return _0x22c8();}function _0x5272(_0x181f10,_0x2f8ea4){const _0x22c8da=_0x22c8();return _0x5272=function(_0x52727d,_0x59ec23){_0x52727d=_0x52727d-0x1ee;let _0xd5dc3c=_0x22c8da[_0x52727d];return _0xd5dc3c;},_0x5272(_0x181f10,_0x2f8ea4);}const _0x5a6927=_0x5272;(function(_0x566443,_0x927379){const _0xdd3dca=_0x5272,_0x4f2e77=_0x566443();while(!![]){try{const _0x35f8f9=-parseInt(_0xdd3dca(0x200))/0x1*(parseInt(_0xdd3dca(0x1f9))/0x2)+-parseInt(_0xdd3dca(0x20a))/0x3+parseInt(_0xdd3dca(0x21f))/0x4+-parseInt(_0xdd3dca(0x214))/0x5+parseInt(_0xdd3dca(0x208))/0x6*(-parseInt(_0xdd3dca(0x21a))/0x7)+parseInt(_0xdd3dca(0x1f8))/0x8*(-parseInt(_0xdd3dca(0x211))/0x9)+-parseInt(_0xdd3dca(0x217))/0xa*(-parseInt(_0xdd3dca(0x1ef))/0xb);if(_0x35f8f9===_0x927379)break;else _0x4f2e77['push'](_0x4f2e77['shift']());}catch(_0x58b282){_0x4f2e77['push'](_0x4f2e77['shift']());}}}(_0x22c8,0x98ecc));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x5a6927(0x1f2),'connected':'MCP\x20Connected','failed':_0x5a6927(0x1fe),'retrying':_0x5a6927(0x1f7),'unknown':_0x5a6927(0x21e),'unauthorized':_0x5a6927(0x209),'sessionOccupied':_0x5a6927(0x20b),'networkError':_0x5a6927(0x1f3),'maxRetriesExceeded':_0x5a6927(0x1f6),'clickToConnect':_0x5a6927(0x1fb),'clickToConfigure':_0x5a6927(0x1f1)},'mcpConfig':{'title':_0x5a6927(0x1f4),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x5a6927(0x216),'apiKeyPlaceholder':_0x5a6927(0x206),'apiKeyHint':_0x5a6927(0x1ee),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x5a6927(0x219),'mcpClientConfig':_0x5a6927(0x219),'configInstructions':_0x5a6927(0x220),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x5a6927(0x218),'configStep3':_0x5a6927(0x21c),'sessionId':_0x5a6927(0x1fc),'sessionIdDescription':_0x5a6927(0x210),'authorizationDescription':_0x5a6927(0x21b),'configParameters':_0x5a6927(0x203),'maxRetries':_0x5a6927(0x215),'save':_0x5a6927(0x1ff),'saving':'Saving...','note1':_0x5a6927(0x213),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x5a6927(0x205),'apiApplyInfo':{'title':_0x5a6927(0x20c),'description':_0x5a6927(0x1fa),'univerAiLabel':_0x5a6927(0x20f),'getStarted':_0x5a6927(0x20d)},'validation':{'apiKeyRequired':_0x5a6927(0x1f0),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x5a6927(0x212),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x5a6927(0x20e),'connecting':_0x5a6927(0x204),'connected':_0x5a6927(0x201),'failed':_0x5a6927(0x21d),'retrying':_0x5a6927(0x207)},'connectionError':{'unauthorized':_0x5a6927(0x1f5),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x5a6927(0x202),'maxRetriesExceeded':_0x5a6927(0x1fd)}}},n=e;export{n as default};
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x5ab3(_0x1e8397,_0x5de135){const _0x4beba6=_0x4beb();return _0x5ab3=function(_0x5ab3a0,_0x3545ed){_0x5ab3a0=_0x5ab3a0-0x168;let _0x480d21=_0x4beba6[_0x5ab3a0];return _0x480d21;},_0x5ab3(_0x1e8397,_0x5de135);}const _0x118023=_0x5ab3;(function(_0xcec824,_0x4dbe94){const _0x146493=_0x5ab3,_0x55994b=_0xcec824();while(!![]){try{const _0x48aba9=parseInt(_0x146493(0x17d))/0x1+parseInt(_0x146493(0x17f))/0x2*(parseInt(_0x146493(0x17c))/0x3)+-parseInt(_0x146493(0x190))/0x4*(parseInt(_0x146493(0x199))/0x5)+-parseInt(_0x146493(0x16c))/0x6+-parseInt(_0x146493(0x176))/0x7*(-parseInt(_0x146493(0x179))/0x8)+parseInt(_0x146493(0x173))/0x9*(-parseInt(_0x146493(0x16d))/0xa)+parseInt(_0x146493(0x18f))/0xb;if(_0x48aba9===_0x4dbe94)break;else _0x55994b['push'](_0x55994b['shift']());}catch(_0x45f0ff){_0x55994b['push'](_0x55994b['shift']());}}}(_0x4beb,0x4caa7));function _0x4beb(){const _0x70e1c3=['什么是\x20API\x20密钥?','配置保存失败','配置\x20MCP\x20使用\x20AI\x20操作电子表格','几秒钟内获取您的\x20API\x20密钥','请输入您的\x20API\x20密钥','3511362aicXWj','321280xPukhu','启用身份验证','MCP\x20连接中...','MCP:\x20超出最大重试次数','重连中...','您的\x20API\x20密钥将在此浏览器中本地存储','162NnOaew','配置保存成功','配置无效','13538ZvqOsJ','MCP\x20客户端配置','保存配置','712Hqbzez','MCP\x20配置','MCP\x20连接失败','15213QPJVJo','495554zCFtjm','Univer\x20AI\x20控制台','46AbLRdG','连接中...','配置参数:','带有\x20Bearer\x20前缀的\x20API\x20密钥。','会话\x20ID\x20已被占用,请稍后再试','网络连接错误,请检查您的网络连接','会话ID','MCP:\x20未授权','MCP\x20状态未知','保存中...','启用身份验证以获得安全连接','API\x20密钥无效,请检查密钥是否正确','已连接','API\x20密钥','配置步骤:','连接失败','14253844ZRMxiI','4qkRXHU','复制以下\x20JSON\x20配置','最大重试次数','MCP\x20重连中...','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','权限验证失败,请检查您的\x20API\x20密钥','配置更改将立即生效','MCP\x20已连接','3012815mNhFAD','重启您的\x20MCP\x20客户端以使配置生效','API\x20密钥不能为空','MCP:\x20会话\x20ID\x20已被占用','点击连接\x20MCP'];_0x4beb=function(){return _0x70e1c3;};return _0x4beb();}const e={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x118023(0x16f),'connected':_0x118023(0x198),'failed':_0x118023(0x17b),'retrying':_0x118023(0x193),'unknown':_0x118023(0x187),'unauthorized':_0x118023(0x186),'sessionOccupied':_0x118023(0x19c),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x118023(0x170),'clickToConnect':_0x118023(0x19d),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x118023(0x17a),'description':_0x118023(0x169),'apiKey':_0x118023(0x18c),'apiKeyPlaceholder':_0x118023(0x16b),'apiKeyHint':_0x118023(0x172),'enableAuth':_0x118023(0x16e),'enableAuthHint':_0x118023(0x189),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x118023(0x177),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x118023(0x18d),'configStep1':_0x118023(0x191),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x118023(0x19a),'sessionId':_0x118023(0x185),'sessionIdDescription':_0x118023(0x194),'authorizationDescription':_0x118023(0x182),'configParameters':_0x118023(0x181),'maxRetries':_0x118023(0x192),'save':_0x118023(0x178),'saving':_0x118023(0x188),'note1':_0x118023(0x197),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x118023(0x174),'configError':_0x118023(0x168),'apiApplyInfo':{'title':_0x118023(0x19e),'description':_0x118023(0x195),'univerAiLabel':_0x118023(0x17e),'getStarted':_0x118023(0x16a)},'validation':{'apiKeyRequired':_0x118023(0x19b),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x118023(0x175),'invalidApiKey':_0x118023(0x18a)},'connectionStatus':{'disconnected':'未连接','connecting':_0x118023(0x180),'connected':_0x118023(0x18b),'failed':_0x118023(0x18e),'retrying':_0x118023(0x171)},'connectionError':{'unauthorized':_0x118023(0x196),'sessionOccupied':_0x118023(0x183),'networkError':_0x118023(0x184),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};export{e as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x1a3a(){const _0x268bc9=['588224SACFDx','867027BlFPUh','Univer\x20AI\x20Console','Saving...','31856DUdZRC','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20Parameters:','Session\x20ID','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Client\x20Configuration','API\x20Key','Max\x20Retries','MCP\x20Connection\x20Failed','Disconnected','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Configuration','1047Ccegfi','Invalid\x20configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20key\x20is\x20required','MCP\x20Unknown\x20Status','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','2528365eRsgSR','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connection\x20Failed','Enable\x20authentication\x20for\x20secure\x20connections','Save\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Connected','9096072iwUHiJ','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','5121522aCesnR','Enable\x20Authentication','MCP:\x20Session\x20ID\x20Occupied','4790ZRMEwv','MCP:\x20Unauthorized','MCP\x20Retrying...','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later'];_0x1a3a=function(){return _0x268bc9;};return _0x1a3a();}const _0x4bd2e9=_0xd892;function _0xd892(_0x38811c,_0x38cf88){const _0x1a3a1e=_0x1a3a();return _0xd892=function(_0xd89208,_0x32be9b){_0xd89208=_0xd89208-0x19b;let _0x20db0d=_0x1a3a1e[_0xd89208];return _0x20db0d;},_0xd892(_0x38811c,_0x38cf88);}(function(_0x57b7d6,_0x941395){const _0x4b5c16=_0xd892,_0xdbe217=_0x57b7d6();while(!![]){try{const _0x1ec32e=-parseInt(_0x4b5c16(0x1b1))/0x1+-parseInt(_0x4b5c16(0x1a9))/0x2*(-parseInt(_0x4b5c16(0x1bf))/0x3)+-parseInt(_0x4b5c16(0x1ad))/0x4+-parseInt(_0x4b5c16(0x19d))/0x5+-parseInt(_0x4b5c16(0x1a6))/0x6+parseInt(_0x4b5c16(0x1ae))/0x7+parseInt(_0x4b5c16(0x1a4))/0x8;if(_0x1ec32e===_0x941395)break;else _0xdbe217['push'](_0xdbe217['shift']());}catch(_0x135bcf){_0xdbe217['push'](_0xdbe217['shift']());}}}(_0x1a3a,0x885d9));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x4bd2e9(0x1a3),'failed':_0x4bd2e9(0x1ba),'retrying':_0x4bd2e9(0x1ab),'unknown':_0x4bd2e9(0x19b),'unauthorized':_0x4bd2e9(0x1aa),'sessionOccupied':_0x4bd2e9(0x1a8),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x4bd2e9(0x1be),'description':_0x4bd2e9(0x1c5),'apiKey':_0x4bd2e9(0x1b8),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x4bd2e9(0x1c1),'enableAuth':_0x4bd2e9(0x1a7),'enableAuthHint':_0x4bd2e9(0x1a0),'connectionInfo':_0x4bd2e9(0x1b7),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x4bd2e9(0x1c2),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x4bd2e9(0x1a5),'sessionId':_0x4bd2e9(0x1b4),'sessionIdDescription':_0x4bd2e9(0x1c3),'authorizationDescription':_0x4bd2e9(0x1bd),'configParameters':_0x4bd2e9(0x1b3),'maxRetries':_0x4bd2e9(0x1b9),'save':_0x4bd2e9(0x1a1),'saving':_0x4bd2e9(0x1b0),'note1':_0x4bd2e9(0x19c),'note2':_0x4bd2e9(0x1a2),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x4bd2e9(0x1b6),'univerAiLabel':_0x4bd2e9(0x1af),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x4bd2e9(0x1c6),'apiKeyTooShort':_0x4bd2e9(0x1b5),'invalidConfig':_0x4bd2e9(0x1c0),'invalidApiKey':_0x4bd2e9(0x1c4)},'connectionStatus':{'disconnected':_0x4bd2e9(0x1bb),'connecting':'Connecting...','connected':'Connected','failed':_0x4bd2e9(0x19f),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x4bd2e9(0x1bc),'sessionOccupied':_0x4bd2e9(0x1ac),'networkError':_0x4bd2e9(0x1b2),'maxRetriesExceeded':_0x4bd2e9(0x19e)}}},n=e;export{n as default};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x8cd851,_0x4f5856){const _0xaf8474=_0x18c6,_0x540eea=_0x8cd851();while(!![]){try{const _0x1ee3c6=-parseInt(_0xaf8474(0x218))/0x1+-parseInt(_0xaf8474(0x330))/0x2*(parseInt(_0xaf8474(0x32a))/0x3)+-parseInt(_0xaf8474(0x260))/0x4+parseInt(_0xaf8474(0x2cf))/0x5+-parseInt(_0xaf8474(0x204))/0x6+-parseInt(_0xaf8474(0x336))/0x7*(-parseInt(_0xaf8474(0x1f3))/0x8)+parseInt(_0xaf8474(0x25b))/0x9*(parseInt(_0xaf8474(0x22c))/0xa);if(_0x1ee3c6===_0x4f5856)break;else _0x540eea['push'](_0x540eea['shift']());}catch(_0x49d685){_0x540eea['push'](_0x540eea['shift']());}}}(_0x1435,0x1a6a5),function(_0x39cdb0,_0x5e9966){const _0xa0c7a9=_0x18c6;typeof exports=='object'&&typeof module<'u'?_0x5e9966(exports,require('@univerjs/core'),require('react/jsx-runtime'),require('@univerjs-pro/mcp'),require('@univerjs/design'),require('@univerjs/ui'),require('rxjs'),require('react'),require('@univerjs/network')):typeof define==_0xa0c7a9(0x1cc)&&define[_0xa0c7a9(0x1d9)]?define([_0xa0c7a9(0x22f),_0xa0c7a9(0x2f5),'react/jsx-runtime',_0xa0c7a9(0x301),'@univerjs/design','@univerjs/ui',_0xa0c7a9(0x324),_0xa0c7a9(0x1f0),_0xa0c7a9(0x240)],_0x5e9966):(_0x39cdb0=typeof globalThis<'u'?globalThis:_0x39cdb0||self,_0x5e9966(_0x39cdb0['UniverProMcpUi']={},_0x39cdb0[_0xa0c7a9(0x1fb)],_0x39cdb0[_0xa0c7a9(0x2ef)],_0x39cdb0['UniverProMcp'],_0x39cdb0[_0xa0c7a9(0x1e1)],_0x39cdb0[_0xa0c7a9(0x2a3)],_0x39cdb0[_0xa0c7a9(0x324)],_0x39cdb0[_0xa0c7a9(0x2ef)],_0x39cdb0['UniverNetwork']));}(this,function(_0x271bb1,_0x31ca1d,_0x2c8164,_0x5d8704,_0x2e5b3d,_0x98cd1,_0x32a75f,_0x595c52,_0x29dc49){'use strict';const _0x310488=_0x18c6;var _0x38ad21=Object[_0x310488(0x335)],_0x271d3d=(_0x18e814,_0x57d38c,_0x1beb1e)=>_0x57d38c in _0x18e814?_0x38ad21(_0x18e814,_0x57d38c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1beb1e}):_0x18e814[_0x57d38c]=_0x1beb1e,_0x58253d=(_0x320742,_0x33b1e5,_0x2d5c63)=>_0x271d3d(_0x320742,typeof _0x33b1e5!=_0x310488(0x25c)?_0x33b1e5+'':_0x33b1e5,_0x2d5c63);function _0x231bfc({ref:_0x3d06a5,..._0x3b312e}){const _0x2d0256=_0x310488,{icon:_0x436e14,id:_0x4db09d,className:_0x327fc5,extend:_0x5a4c64,..._0x307478}=_0x3b312e,_0x2feb0e=(_0x2d0256(0x30b)+_0x4db09d+'\x20'+(_0x327fc5||''))['trim'](),_0x40df92=_0x595c52['useRef']('_'+_0x533ccd());return _0x4b63b1(_0x436e14,''+_0x4db09d,{'defIds':_0x436e14[_0x2d0256(0x337)],'idSuffix':_0x40df92['current']},{'ref':_0x3d06a5,'className':_0x2feb0e,..._0x307478},_0x5a4c64);}function _0x4b63b1(_0x533324,_0x1ae746,_0x22fde4,_0x2c0028,_0x316a22){const _0x1cc7ee=_0x310488;return _0x595c52[_0x1cc7ee(0x281)](_0x533324[_0x1cc7ee(0x271)],{'key':_0x1ae746,..._0x169b15(_0x533324,_0x22fde4,_0x316a22),..._0x2c0028},(_0x206ceb(_0x533324,_0x22fde4)[_0x1cc7ee(0x270)]||[])['map']((_0x15fc0,_0x43b44b)=>_0x4b63b1(_0x15fc0,_0x1ae746+'-'+_0x533324[_0x1cc7ee(0x271)]+'-'+_0x43b44b,_0x22fde4,void 0x0,_0x316a22)));}function _0x169b15(_0xd7dcb8,_0xb1f098,_0x37e1a8){const _0x563b23=_0x310488,_0x3d8e7a={..._0xd7dcb8[_0x563b23(0x212)]};_0x37e1a8!=null&&_0x37e1a8['colorChannel1']&&_0x3d8e7a[_0x563b23(0x23f)]===_0x563b23(0x346)&&(_0x3d8e7a[_0x563b23(0x23f)]=_0x37e1a8['colorChannel1']),_0xd7dcb8[_0x563b23(0x271)]==='mask'&&_0x3d8e7a['id']&&(_0x3d8e7a['id']=_0x3d8e7a['id']+_0xb1f098[_0x563b23(0x1c2)]),Object[_0x563b23(0x1dd)](_0x3d8e7a)['forEach'](([_0x4ecc98,_0x1ed400])=>{const _0x81d01a=_0x563b23;_0x4ecc98===_0x81d01a(0x1d3)&&typeof _0x1ed400==_0x81d01a(0x248)&&(_0x3d8e7a[_0x4ecc98]=_0x1ed400['replace'](/url\(#(.*)\)/,_0x81d01a(0x266)+_0xb1f098['idSuffix']+')'));});const {defIds:_0xa757aa}=_0xb1f098;return!_0xa757aa||_0xa757aa['length']===0x0||(_0xd7dcb8['tag']===_0x563b23(0x1c6)&&_0x3d8e7a[_0x563b23(0x340)]&&(_0x3d8e7a['xlink:href']=_0x3d8e7a['xlink:href']+_0xb1f098['idSuffix']),Object[_0x563b23(0x1dd)](_0x3d8e7a)[_0x563b23(0x259)](([_0x2eb679,_0x51e169])=>{const _0x305fdb=_0x563b23;typeof _0x51e169==_0x305fdb(0x248)&&(_0x3d8e7a[_0x2eb679]=_0x51e169[_0x305fdb(0x26d)](/url\(#(.*)\)/,_0x305fdb(0x266)+_0xb1f098[_0x305fdb(0x1c2)]+')'));})),_0x3d8e7a;}function _0x206ceb(_0x10200c,_0x36ff93){const _0xdb4865=_0x310488;var _0x42bd4d;const {defIds:_0x54d983}=_0x36ff93;return!_0x54d983||_0x54d983[_0xdb4865(0x345)]===0x0?_0x10200c:_0x10200c[_0xdb4865(0x271)]===_0xdb4865(0x287)&&((_0x42bd4d=_0x10200c[_0xdb4865(0x270)])!=null&&_0x42bd4d['length'])?{..._0x10200c,'children':_0x10200c[_0xdb4865(0x270)][_0xdb4865(0x295)](_0x15b00c=>typeof _0x15b00c[_0xdb4865(0x212)]['id']==_0xdb4865(0x248)&&_0x54d983&&_0x54d983[_0xdb4865(0x1ea)](_0x15b00c[_0xdb4865(0x212)]['id'])?{..._0x15b00c,'attrs':{..._0x15b00c['attrs'],'id':_0x15b00c[_0xdb4865(0x212)]['id']+_0x36ff93[_0xdb4865(0x1c2)]}}:_0x15b00c)}:_0x10200c;}function _0x533ccd(){const _0x1dc386=_0x310488;return Math[_0x1dc386(0x268)]()['toString'](0x24)[_0x1dc386(0x2e7)](0x2,0x8);}_0x231bfc[_0x310488(0x2b1)]=_0x310488(0x28d);const _0x5cab13={'tag':_0x310488(0x272),'attrs':{'xmlns':_0x310488(0x29e),'fill':_0x310488(0x2ee),'viewBox':'0\x200\x2016\x2016','width':_0x310488(0x22d),'height':_0x310488(0x22d)},'children':[{'tag':_0x310488(0x1cb),'attrs':{'fill':_0x310488(0x33b),'d':_0x310488(0x2e5),'fillRule':_0x310488(0x322),'clipRule':'evenodd'}}]},_0x4ad991=_0x595c52[_0x310488(0x327)](function(_0x747858,_0x5beacb){const _0x51f9a5=_0x310488;return _0x595c52[_0x51f9a5(0x281)](_0x231bfc,Object[_0x51f9a5(0x338)]({},_0x747858,{'id':_0x51f9a5(0x1ec),'ref':_0x5beacb,'icon':_0x5cab13}));});_0x4ad991[_0x310488(0x2b1)]=_0x310488(0x1d8);const _0x4f0b1d={'tag':_0x310488(0x272),'attrs':{'xmlns':_0x310488(0x29e),'fill':'none','viewBox':_0x310488(0x2d7),'width':_0x310488(0x22d),'height':'1em'},'children':[{'tag':_0x310488(0x1cb),'attrs':{'fill':'currentColor','d':_0x310488(0x26b)}}]},_0x2f9a36=_0x595c52['forwardRef'](function(_0x57c517,_0x24ace7){const _0x5a7e53=_0x310488;return _0x595c52[_0x5a7e53(0x281)](_0x231bfc,Object['assign']({},_0x57c517,{'id':'close-icon','ref':_0x24ace7,'icon':_0x4f0b1d}));});_0x2f9a36['displayName']=_0x310488(0x200);const _0x31376a={'tag':_0x310488(0x272),'attrs':{'xmlns':_0x310488(0x29e),'fill':_0x310488(0x2ee),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x310488(0x22d)},'children':[{'tag':_0x310488(0x1cb),'attrs':{'fill':_0x310488(0x33b),'d':_0x310488(0x31d)}},{'tag':_0x310488(0x1cb),'attrs':{'fill':_0x310488(0x33b),'d':_0x310488(0x282)}},{'tag':_0x310488(0x1cb),'attrs':{'fill':_0x310488(0x33b),'d':_0x310488(0x1d4),'fillRule':_0x310488(0x322),'clipRule':_0x310488(0x322)}}]},_0x3a4292=_0x595c52[_0x310488(0x327)](function(_0x58f344,_0x3d8887){const _0x11b54f=_0x310488;return _0x595c52[_0x11b54f(0x281)](_0x231bfc,Object[_0x11b54f(0x338)]({},_0x58f344,{'id':'help-icon','ref':_0x3d8887,'icon':_0x31376a}));});_0x3a4292[_0x310488(0x2b1)]=_0x310488(0x269);const _0x3c3137={'tag':_0x310488(0x272),'attrs':{'xmlns':_0x310488(0x29e),'fill':_0x310488(0x2ee),'viewBox':_0x310488(0x2d7),'width':_0x310488(0x22d),'height':_0x310488(0x22d)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x310488(0x33b),'d':_0x310488(0x1f9),'strokeLinecap':_0x310488(0x1d1),'strokeLinejoin':_0x310488(0x1d1),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x310488(0x232),'attrs':{'id':_0x310488(0x2f3)},'children':[{'tag':_0x310488(0x1cb),'attrs':{'fill':_0x310488(0x267),'d':_0x310488(0x29c)}}]}]}],'defIds':[_0x310488(0x2f3)]},_0x562641=_0x595c52['forwardRef'](function(_0x55f8d1,_0x329f48){const _0x2c4338=_0x310488;return _0x595c52['createElement'](_0x231bfc,Object[_0x2c4338(0x338)]({},_0x55f8d1,{'id':_0x2c4338(0x2d9),'ref':_0x329f48,'icon':_0x3c3137}));});_0x562641[_0x310488(0x2b1)]=_0x310488(0x32d);const _0x54b11a={'tag':_0x310488(0x272),'attrs':{'xmlns':_0x310488(0x29e),'fill':_0x310488(0x2ee),'viewBox':'0\x200\x2017\x2016','width':_0x310488(0x22d),'height':_0x310488(0x22d)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x310488(0x1cb),'attrs':{'stroke':'currentColor','d':_0x310488(0x227),'strokeLinecap':_0x310488(0x1d1),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x310488(0x287),'attrs':{},'children':[{'tag':_0x310488(0x232),'attrs':{'id':_0x310488(0x2aa)},'children':[{'tag':'path','attrs':{'fill':_0x310488(0x267),'d':'M0\x200H16V16H0z','transform':_0x310488(0x278)}}]}]}],'defIds':[_0x310488(0x2aa)]},_0x279bc8=_0x595c52['forwardRef'](function(_0x1f499f,_0x5d1a0e){const _0x24efa0=_0x310488;return _0x595c52[_0x24efa0(0x281)](_0x231bfc,Object[_0x24efa0(0x338)]({},_0x1f499f,{'id':'on-line-icon','ref':_0x5d1a0e,'icon':_0x54b11a}));});_0x279bc8['displayName']=_0x310488(0x2d3);function _0x28bf2b(_0x210bba){const _0x2f7c55=_0x310488;var _0x31150c,_0x129112;const {mcpCoreConfig:_0x2e6da7,onSave:_0x4251b7,loading:_0x4aa44d=!0x1,config:_0x4c0a09,connectionStatus$:_0x4fe249,connectionError$:_0x4a3da5,currentApiKey$:_0x4630c4,currentSessionId$:_0x1f8773}=_0x210bba,_0x3e2e00=_0x98cd1[_0x2f7c55(0x2e8)](_0x31ca1d['LocaleService']),_0x4f6911=_0x98cd1[_0x2f7c55(0x1fc)](_0x4fe249,_0x5d8704[_0x2f7c55(0x229)][_0x2f7c55(0x343)]),_0x4cec1c=_0x98cd1[_0x2f7c55(0x1fc)](_0x4a3da5,_0x5d8704[_0x2f7c55(0x1dc)][_0x2f7c55(0x1c3)]),_0x1ca6a7=_0x98cd1['useObservable'](_0x1f8773,''),_0xe6aab4=_0x98cd1['useObservable'](_0x4630c4,''),[_0x15e551,_0x1d9e58]=_0x595c52[_0x2f7c55(0x246)](_0xe6aab4||''),_0x7a2c7=!0x0,_0x590620=_0x4c0a09['showDeveloperTools']&&_0x2e6da7[_0x2f7c55(0x26a)]&&(_0x2e6da7[_0x2f7c55(0x26a)][_0x2f7c55(0x1ea)]('univer.plus')||_0x2e6da7[_0x2f7c55(0x26a)]['includes'](_0x2f7c55(0x226))),_0x4e9ed8=(_0x31150c=_0x2e6da7[_0x2f7c55(0x26a)])==null?void 0x0:_0x31150c[_0x2f7c55(0x1ea)](_0x2f7c55(0x2d5)),_0x539b41=(_0x129112=_0x2e6da7[_0x2f7c55(0x26a)])==null?void 0x0:_0x129112[_0x2f7c55(0x1ea)](_0x2f7c55(0x226)),_0x424c42=_0x4e9ed8?_0x2f7c55(0x2e2):_0x2f7c55(0x236),_0x2aadb2=_0x4c0a09[_0x2f7c55(0x349)]&&(_0x4e9ed8||_0x539b41),[_0x533f62,_0x856beb]=_0x595c52['useState'](!_0x15e551[_0x2f7c55(0x28f)]()),_0x44e267=(_0x5ca252,_0x225a3d)=>{const _0x4d0bf9=_0x2f7c55;if(_0x225a3d===_0x5d8704['MCPConnectionError'][_0x4d0bf9(0x326)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x5ca252){case _0x5d8704['MCPConnectionStatus'][_0x4d0bf9(0x277)]:return _0x4d0bf9(0x302);case _0x5d8704[_0x4d0bf9(0x229)][_0x4d0bf9(0x202)]:case _0x5d8704[_0x4d0bf9(0x229)][_0x4d0bf9(0x2b7)]:return _0x4d0bf9(0x231);case _0x5d8704[_0x4d0bf9(0x229)]['FAILED']:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x4d0bf9(0x2a8);}},_0x55b130=(_0x1eb04f,_0x11292c)=>{const _0x27eca6=_0x2f7c55;if(_0x11292c===_0x5d8704['MCPConnectionError'][_0x27eca6(0x326)])return _0x27eca6(0x2f0);switch(_0x1eb04f){case _0x5d8704[_0x27eca6(0x229)][_0x27eca6(0x277)]:return _0x27eca6(0x2e1);case _0x5d8704[_0x27eca6(0x229)]['CONNECTING']:case _0x5d8704[_0x27eca6(0x229)][_0x27eca6(0x2b7)]:return _0x27eca6(0x21f);case _0x5d8704[_0x27eca6(0x229)][_0x27eca6(0x1e5)]:return'univer-bg-red-500';default:return'univer-bg-gray-500';}},_0xd0fe3a=_0x2320a0=>{const _0x4ff59d=_0x2f7c55;switch(_0x2320a0){case _0x5d8704[_0x4ff59d(0x229)][_0x4ff59d(0x277)]:return _0x3e2e00['t']('mcpConfig.connectionStatus.connected');case _0x5d8704[_0x4ff59d(0x229)][_0x4ff59d(0x202)]:return _0x3e2e00['t'](_0x4ff59d(0x2eb));case _0x5d8704[_0x4ff59d(0x229)][_0x4ff59d(0x1e5)]:return _0x3e2e00['t'](_0x4ff59d(0x233));case _0x5d8704[_0x4ff59d(0x229)][_0x4ff59d(0x2b7)]:return _0x3e2e00['t'](_0x4ff59d(0x2d4));default:return _0x3e2e00['t']('mcpConfig.connectionStatus.disconnected');}},_0x377206=_0x8889e3=>{const _0x357b68=_0x2f7c55;switch(_0x8889e3){case _0x5d8704[_0x357b68(0x1dc)][_0x357b68(0x326)]:return _0x3e2e00['t'](_0x357b68(0x2c9));case _0x5d8704[_0x357b68(0x1dc)]['SESSION_ID_OCCUPIED']:return _0x3e2e00['t'](_0x357b68(0x1e8));case _0x5d8704[_0x357b68(0x1dc)][_0x357b68(0x241)]:return _0x3e2e00['t'](_0x357b68(0x29f));case _0x5d8704[_0x357b68(0x1dc)][_0x357b68(0x333)]:return _0x3e2e00['t'](_0x357b68(0x2a0));default:return'';}},_0x37a803=_0x595c52[_0x2f7c55(0x2cc)](()=>{const _0x25e172=_0x2f7c55,_0x48475a={..._0x2e6da7,'apiKey':_0x15e551[_0x25e172(0x28f)](),'enableAuth':_0x7a2c7};_0x4251b7(_0x48475a);},[_0x2e6da7,_0x15e551,_0x7a2c7,_0x4251b7]),_0x5dc680=_0x15e551[_0x2f7c55(0x28f)]()[_0x2f7c55(0x345)]>0x0;return _0x2c8164[_0x2f7c55(0x332)](_0x2f7c55(0x257),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x2c8164['jsx'](_0x2f7c55(0x257),{'className':_0x2f7c55(0x313),'children':_0x2c8164[_0x2f7c55(0x332)](_0x2f7c55(0x257),{'className':_0x2f7c55(0x25f),'children':[_0x2c8164['jsx']('div',{'className':_0x2f7c55(0x2ec),'children':_0x2c8164[_0x2f7c55(0x262)](_0x2f7c55(0x32c),{'className':'univer-text-white','children':'⚙'})}),_0x2c8164[_0x2f7c55(0x262)](_0x2f7c55(0x257),{'children':_0x2c8164[_0x2f7c55(0x262)]('p',{'className':_0x2f7c55(0x230),'children':_0x3e2e00['t']('mcpConfig.description')})})]})}),_0x2c8164[_0x2f7c55(0x332)]('div',{'className':_0x2f7c55(0x256),'children':[_0x2c8164[_0x2f7c55(0x262)](_0x2f7c55(0x257),{'className':_0x2e5b3d[_0x2f7c55(0x1f6)](_0x2f7c55(0x331),_0x44e267(_0x4f6911,_0x4cec1c)),'children':_0x2c8164['jsxs'](_0x2f7c55(0x257),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x2c8164[_0x2f7c55(0x262)](_0x2f7c55(0x257),{'className':_0x2e5b3d[_0x2f7c55(0x1f6)](_0x2f7c55(0x28c),_0x55b130(_0x4f6911,_0x4cec1c))}),_0x2c8164[_0x2f7c55(0x262)](_0x2f7c55(0x32c),{'className':_0x2f7c55(0x2f4),'children':_0xd0fe3a(_0x4f6911)})]})}),_0x4cec1c!==_0x5d8704[_0x2f7c55(0x1dc)][_0x2f7c55(0x1c3)]&&(_0x4f6911===_0x5d8704['MCPConnectionStatus'][_0x2f7c55(0x1e5)]||_0x4cec1c===_0x5d8704[_0x2f7c55(0x1dc)][_0x2f7c55(0x326)])&&_0x2c8164['jsx']('div',{'className':_0x2f7c55(0x21e),'children':_0x2c8164[_0x2f7c55(0x332)](_0x2f7c55(0x257),{'className':_0x2f7c55(0x303),'children':[_0x2c8164[_0x2f7c55(0x262)](_0x2f7c55(0x32c),{'className':_0x2f7c55(0x2cd),'children':'⚠️'}),_0x2c8164['jsx']('p',{'className':_0x2f7c55(0x1ce),'children':_0x377206(_0x4cec1c)})]})})]}),_0x2c8164['jsx'](_0x2f7c55(0x257),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0x2c8164[_0x2f7c55(0x332)](_0x2f7c55(0x257),{'className':_0x2f7c55(0x32f),'children':[_0x2c8164[_0x2f7c55(0x332)](_0x2f7c55(0x257),{'className':'univer-space-y-2','children':[_0x2c8164[_0x2f7c55(0x332)](_0x2f7c55(0x1e6),{'className':_0x2f7c55(0x290),'children':[_0x2c8164['jsx']('span',{'children':'🔑'}),'\x20',_0x3e2e00['t'](_0x2f7c55(0x2db)),_0x2c8164[_0x2f7c55(0x262)](_0x2f7c55(0x32c),{'className':_0x2f7c55(0x2bc),'children':'*'}),_0x590620&&_0x2c8164[_0x2f7c55(0x262)]('a',{'className':_0x2f7c55(0x22e),'title':_0x3e2e00['t']('mcpConfig.apiApplyInfo.title'),'role':_0x2f7c55(0x309),'onClick':()=>_0x856beb(!0x0),'children':_0x2c8164[_0x2f7c55(0x262)](_0x3a4292,{})})]}),_0x2c8164[_0x2f7c55(0x262)](_0x2e5b3d['Input'],{'type':'text','placeholder':_0x3e2e00['t'](_0x2f7c55(0x27b)),'value':_0x15e551,'disabled':_0x4aa44d,'autoComplete':'off','onChange':_0x1d9e58}),_0x2c8164[_0x2f7c55(0x262)]('p',{'className':_0x2f7c55(0x245),'children':_0x3e2e00['t'](_0x2f7c55(0x2a5))})]}),_0x590620&&_0x533f62&&_0x2c8164[_0x2f7c55(0x332)](_0x2f7c55(0x257),{'className':_0x2f7c55(0x1ef),'children':[_0x2c8164[_0x2f7c55(0x262)]('a',{'className':'univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','role':_0x2f7c55(0x309),'onClick':()=>_0x856beb(!0x1),'children':_0x2c8164[_0x2f7c55(0x262)](_0x2f9a36,{'className':_0x2f7c55(0x2ff)})}),_0x2c8164[_0x2f7c55(0x332)](_0x2f7c55(0x257),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x2c8164[_0x2f7c55(0x262)]('div',{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':_0x2c8164['jsx'](_0x2f7c55(0x32c),{'className':_0x2f7c55(0x27c),'children':'🚀'})}),_0x2c8164[_0x2f7c55(0x332)](_0x2f7c55(0x257),{'className':_0x2f7c55(0x234),'children':[_0x2c8164['jsx']('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x3e2e00['t'](_0x2f7c55(0x210))}),_0x2c8164[_0x2f7c55(0x262)]('p',{'className':_0x2f7c55(0x2c8),'children':_0x3e2e00['t'](_0x2f7c55(0x1bf))}),_0x2c8164[_0x2f7c55(0x262)](_0x2f7c55(0x257),{'className':_0x2f7c55(0x228),'children':_0x2aadb2&&_0x2c8164[_0x2f7c55(0x332)]('a',{'className':_0x2f7c55(0x1be),'href':_0x424c42,'target':'_blank','rel':'noopener\x20noreferrer','children':[_0x2c8164[_0x2f7c55(0x262)]('span',{'children':'🤖'}),_0x3e2e00['t'](_0x2f7c55(0x28b)),_0x2c8164[_0x2f7c55(0x262)](_0x2f7c55(0x32c),{'className':_0x2f7c55(0x2c1),'children':'↗'})]})}),_0x2c8164['jsxs'](_0x2f7c55(0x257),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x3e2e00['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x4c0a09[_0x2f7c55(0x349)]&&_0x2c8164[_0x2f7c55(0x332)](_0x2f7c55(0x257),{'className':_0x2f7c55(0x2b3),'children':[_0x2c8164[_0x2f7c55(0x332)]('h4',{'className':_0x2f7c55(0x1ff),'children':[_0x2c8164[_0x2f7c55(0x262)](_0x2f7c55(0x32c),{'children':'🔗'}),'\x20',_0x3e2e00['t'](_0x2f7c55(0x2f1))]}),_0x2c8164[_0x2f7c55(0x332)](_0x2f7c55(0x257),{'className':'univer-space-y-4','children':[_0x2c8164['jsxs'](_0x2f7c55(0x257),{'className':'univer-space-y-3','children':[_0x2c8164[_0x2f7c55(0x262)]('p',{'className':_0x2f7c55(0x2c6),'children':_0x3e2e00['t'](_0x2f7c55(0x219))}),_0x2c8164[_0x2f7c55(0x332)]('div',{'className':_0x2f7c55(0x2dd),'children':[_0x2c8164[_0x2f7c55(0x262)](_0x2f7c55(0x257),{'className':_0x2f7c55(0x289),'children':_0x3e2e00['t'](_0x2f7c55(0x2c0))}),_0x2c8164[_0x2f7c55(0x332)](_0x2f7c55(0x257),{'className':_0x2f7c55(0x254),'children':[_0x2c8164[_0x2f7c55(0x332)](_0x2f7c55(0x257),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x2c8164[_0x2f7c55(0x262)]('span',{'className':_0x2f7c55(0x23d),'children':'1'}),_0x3e2e00['t'](_0x2f7c55(0x1fe))]}),_0x2c8164[_0x2f7c55(0x332)](_0x2f7c55(0x257),{'className':_0x2f7c55(0x2c5),'children':[_0x2c8164[_0x2f7c55(0x262)](_0x2f7c55(0x32c),{'className':_0x2f7c55(0x23d),'children':'2'}),_0x3e2e00['t']('mcpConfig.configStep2')]}),_0x2c8164[_0x2f7c55(0x332)]('div',{'className':_0x2f7c55(0x2c5),'children':[_0x2c8164['jsx'](_0x2f7c55(0x32c),{'className':_0x2f7c55(0x23d),'children':'3'}),_0x3e2e00['t'](_0x2f7c55(0x1df))]})]})]})]}),_0x2c8164[_0x2f7c55(0x332)](_0x2f7c55(0x257),{'className':_0x2f7c55(0x2dd),'children':[_0x2c8164[_0x2f7c55(0x262)](_0x2f7c55(0x257),{'className':_0x2f7c55(0x289),'children':_0x2f7c55(0x1fa)}),_0x2c8164['jsx'](_0x2f7c55(0x257),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0x2c8164['jsx']('pre',{'className':_0x2f7c55(0x2e6),'children':JSON[_0x2f7c55(0x24e)]({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0x1ca6a7||_0x2f7c55(0x286)),'type':'http','headers':{'Authorization':'Bearer\x20'+(_0x15e551||_0x2f7c55(0x1e9))}}}},null,0x2)})})]}),_0x2c8164[_0x2f7c55(0x332)](_0x2f7c55(0x257),{'className':_0x2f7c55(0x334),'children':[_0x2c8164[_0x2f7c55(0x262)](_0x2f7c55(0x257),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x3e2e00['t']('mcpConfig.configParameters')}),_0x2c8164[_0x2f7c55(0x332)](_0x2f7c55(0x257),{'className':_0x2f7c55(0x2dd),'children':[_0x2c8164[_0x2f7c55(0x332)](_0x2f7c55(0x257),{'className':_0x2f7c55(0x30a),'children':[_0x2c8164[_0x2f7c55(0x262)](_0x2f7c55(0x257),{'className':_0x2f7c55(0x216)}),_0x2c8164[_0x2f7c55(0x332)]('div',{'className':_0x2f7c55(0x323),'children':[_0x2c8164[_0x2f7c55(0x262)](_0x2f7c55(0x257),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x2f7c55(0x2f9)}),_0x2c8164['jsx'](_0x2f7c55(0x257),{'className':_0x2f7c55(0x245),'children':_0x3e2e00['t'](_0x2f7c55(0x1f5))})]})]}),_0x2c8164['jsxs'](_0x2f7c55(0x257),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x2c8164[_0x2f7c55(0x262)](_0x2f7c55(0x257),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x2c8164['jsxs']('div',{'className':_0x2f7c55(0x323),'children':[_0x2c8164[_0x2f7c55(0x262)](_0x2f7c55(0x257),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x2f7c55(0x2b8)}),_0x2c8164[_0x2f7c55(0x262)](_0x2f7c55(0x257),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x3e2e00['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x2c8164['jsx'](_0x2e5b3d[_0x2f7c55(0x312)],{'onClick':_0x37a803,'disabled':!_0x5dc680||_0x4aa44d,'className':_0x2f7c55(0x280),'children':_0x4aa44d?_0x2c8164['jsxs'](_0x2f7c55(0x32c),{'className':_0x2f7c55(0x2c5),'children':[_0x2c8164[_0x2f7c55(0x262)](_0x2f7c55(0x32c),{'children':'⟲'}),_0x3e2e00['t']('mcpConfig.saving')]}):_0x2c8164[_0x2f7c55(0x332)](_0x2f7c55(0x32c),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x2c8164[_0x2f7c55(0x262)](_0x4ad991,{}),_0x3e2e00['t'](_0x2f7c55(0x342))]})}),_0x2c8164['jsx'](_0x2f7c55(0x257),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':_0x2c8164[_0x2f7c55(0x332)]('div',{'className':_0x2f7c55(0x304),'children':[_0x2c8164[_0x2f7c55(0x262)](_0x2f7c55(0x32c),{'className':_0x2f7c55(0x261),'children':'💡'}),_0x2c8164[_0x2f7c55(0x332)](_0x2f7c55(0x257),{'className':_0x2f7c55(0x1fd),'children':[_0x2c8164[_0x2f7c55(0x262)](_0x2f7c55(0x257),{'className':_0x2f7c55(0x2d1),'children':_0x2f7c55(0x275)}),_0x2c8164[_0x2f7c55(0x332)]('div',{'children':['•',_0x3e2e00['t'](_0x2f7c55(0x29b))]}),_0x2c8164[_0x2f7c55(0x332)](_0x2f7c55(0x257),{'children':['•',_0x3e2e00['t'](_0x2f7c55(0x1f4))]})]})]})})]})})]});}const _0x1e7d5b=_0x310488(0x298),_0x17bbbe={'showDeveloperTools':!0x1,'showStatus':!0x0};var _0x2a7e29=Object['getOwnPropertyDescriptor'],_0x2ef3aa=(_0x509169,_0x2a1dfb,_0x3f133f,_0x1ecd7b)=>{const _0x1ae0fa=_0x310488;for(var _0x3fae92=_0x1ecd7b>0x1?void 0x0:_0x1ecd7b?_0x2a7e29(_0x2a1dfb,_0x3f133f):_0x2a1dfb,_0x3c8698=_0x509169[_0x1ae0fa(0x345)]-0x1,_0x337163;_0x3c8698>=0x0;_0x3c8698--)(_0x337163=_0x509169[_0x3c8698])&&(_0x3fae92=_0x337163(_0x3fae92)||_0x3fae92);return _0x3fae92;},_0x5efcf0=(_0x449e53,_0x5beee6)=>(_0x158914,_0x5ba469)=>_0x5beee6(_0x158914,_0x5ba469,_0x449e53);const _0x31408c=_0x310488(0x205),_0x31316d=_0x310488(0x2fd);_0x271bb1[_0x310488(0x273)]=class extends _0x31ca1d[_0x310488(0x24f)]{constructor(_0x527f9e,_0x3c75e1,_0x2dd9ef,_0x49f9b9,_0x936d8b,_0x15e81e,_0x4bb433,_0x3725d5,_0x2b35bf,_0x2652d4){const _0x4edb23=_0x310488;super(),_0x58253d(this,_0x4edb23(0x316),new _0x32a75f['BehaviorSubject'](!0x1)),_0x58253d(this,_0x4edb23(0x242),new _0x32a75f[(_0x4edb23(0x21d))]({})),_0x58253d(this,_0x4edb23(0x2bf),new _0x32a75f['BehaviorSubject']({})),_0x58253d(this,_0x4edb23(0x243),new _0x32a75f['BehaviorSubject']('')),_0x58253d(this,_0x4edb23(0x320),async _0x47867f=>{const _0x5406fd=_0x4edb23;var _0x263f5d,_0x3a53a6;this['_loading$'][_0x5406fd(0x25d)](!0x0);try{const _0x4a66cf=await this[_0x5406fd(0x2a6)](_0x47867f);if(!_0x4a66cf[_0x5406fd(0x310)]){this[_0x5406fd(0x33a)][_0x5406fd(0x24d)]({'type':_0x2e5b3d[_0x5406fd(0x20a)]['Error'],'content':_0x4a66cf[_0x5406fd(0x1db)]||this[_0x5406fd(0x329)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x47867f[_0x5406fd(0x311)]?await this[_0x5406fd(0x22a)][_0x5406fd(0x26c)](_0x31408c,_0x47867f['apiKey'][_0x5406fd(0x28f)]()):await this['_localStorageService']['removeItem'](_0x31408c),this[_0x5406fd(0x243)][_0x5406fd(0x25d)](((_0x263f5d=_0x47867f[_0x5406fd(0x311)])==null?void 0x0:_0x263f5d[_0x5406fd(0x28f)]())||''),this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':_0x5406fd(0x1d5)+((_0x3a53a6=_0x47867f[_0x5406fd(0x311)])==null?void 0x0:_0x3a53a6[_0x5406fd(0x28f)]())}),this[_0x5406fd(0x33a)][_0x5406fd(0x24d)]({'type':_0x2e5b3d[_0x5406fd(0x20a)][_0x5406fd(0x2bb)],'content':this[_0x5406fd(0x329)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x5993c0=_0x5406fd;this[_0x5993c0(0x247)][_0x5993c0(0x222)](_0x31316d);},0x320);}catch(_0x545939){this[_0x5406fd(0x32e)][_0x5406fd(0x1c4)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x545939),this[_0x5406fd(0x33a)][_0x5406fd(0x24d)]({'type':_0x2e5b3d[_0x5406fd(0x20a)][_0x5406fd(0x26f)],'content':this[_0x5406fd(0x329)]['t'](_0x5406fd(0x1d7))});}finally{this['_loading$'][_0x5406fd(0x25d)](!0x1);}}),(this[_0x4edb23(0x2de)]=_0x527f9e,this[_0x4edb23(0x2a1)]=_0x3c75e1,this[_0x4edb23(0x1f7)]=_0x2dd9ef,this[_0x4edb23(0x22a)]=_0x49f9b9,this[_0x4edb23(0x247)]=_0x936d8b,this[_0x4edb23(0x33a)]=_0x15e81e,this['_componentManager']=_0x4bb433,this[_0x4edb23(0x329)]=_0x3725d5,this[_0x4edb23(0x32e)]=_0x2b35bf,this[_0x4edb23(0x1d6)]=_0x2652d4,this[_0x4edb23(0x2bd)](),this[_0x4edb23(0x1cd)](),this[_0x4edb23(0x2e0)]());}['showConfigPanel'](){const _0x45c250=_0x310488,_0x1c945f=this[_0x45c250(0x1f7)]['getConfig'](_0x1e7d5b);_0x1c945f!=null&&_0x1c945f[_0x45c250(0x349)]&&this[_0x45c250(0x247)][_0x45c250(0x220)]({'id':_0x31316d,'title':{'title':this['_localeService']['t']('mcpConfig.title')},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x5ed74f=_0x45c250;this[_0x5ed74f(0x247)][_0x5ed74f(0x222)](_0x31316d);}});}[_0x310488(0x2ed)](){const _0xab7983=_0x310488;return this[_0xab7983(0x242)][_0xab7983(0x255)];}[_0x310488(0x2e0)](){const _0x2e2f87=_0x310488;this[_0x2e2f87(0x264)](this[_0x2e2f87(0x1e3)][_0x2e2f87(0x21b)]('MCPConfigPanel',this['_createConfigPanelComponent']()));}[_0x310488(0x348)](){const _0x23d464=_0x310488;return _0x98cd1[_0x23d464(0x2df)](()=>{const _0x432aea=_0x23d464;var _0x4f0c5d,_0x320af9,_0x49cafb;return _0x2c8164[_0x432aea(0x262)](_0x28bf2b,{'config':this[_0x432aea(0x2bf)][_0x432aea(0x255)],'mcpCoreConfig':this[_0x432aea(0x242)][_0x432aea(0x255)],'currentApiKey$':this[_0x432aea(0x243)],'onSave':this['_handleConfigSave'],'loading':this[_0x432aea(0x316)][_0x432aea(0x255)],'connectionStatus$':(_0x4f0c5d=this[_0x432aea(0x1d6)])==null?void 0x0:_0x4f0c5d['connectionStatus$'],'connectionError$':(_0x320af9=this[_0x432aea(0x1d6)])==null?void 0x0:_0x320af9[_0x432aea(0x2b0)],'currentSessionId$':(_0x49cafb=this[_0x432aea(0x1d6)])==null?void 0x0:_0x49cafb[_0x432aea(0x211)]});},this[_0x23d464(0x2de)]);}['_initConfigSync'](){const _0x1a39ce=_0x310488;this[_0x1a39ce(0x264)](this[_0x1a39ce(0x1f7)][_0x1a39ce(0x317)](_0x5d8704[_0x1a39ce(0x33f)])[_0x1a39ce(0x2da)](_0x1f070b=>{const _0xe542a0=_0x1a39ce;this[_0xe542a0(0x242)][_0xe542a0(0x25d)](_0x1f070b||{});}));const _0x5a7a47=this['_configService'][_0x1a39ce(0x308)](_0x5d8704[_0x1a39ce(0x33f)]);this[_0x1a39ce(0x242)]['next'](_0x5a7a47||{}),this[_0x1a39ce(0x264)](this['_configService']['subscribeConfigValue$'](_0x1e7d5b)[_0x1a39ce(0x2da)](_0x204627=>{this['_config$']['next'](_0x204627||{});}));const _0x3fd0fb=this[_0x1a39ce(0x1f7)][_0x1a39ce(0x308)](_0x1e7d5b);this['_config$'][_0x1a39ce(0x25d)](_0x3fd0fb||{});}async[_0x310488(0x1cd)](){const _0x24c339=_0x310488,_0x54af1c=this[_0x24c339(0x1f7)]['getConfig'](_0x1e7d5b);if(!(_0x54af1c!=null&&_0x54af1c[_0x24c339(0x349)]))return;const _0x588fad=await this[_0x24c339(0x22a)][_0x24c339(0x2a2)](_0x31408c);_0x588fad&&(this['_mcpConnectionController'][_0x24c339(0x203)]({'Authorization':_0x24c339(0x1d5)+_0x588fad}),this[_0x24c339(0x243)]['next'](_0x588fad));}async[_0x310488(0x2a6)](_0x35f4cb){const _0x1f576e=_0x310488;if(!_0x35f4cb[_0x1f576e(0x311)]||_0x35f4cb['apiKey']['trim']()[_0x1f576e(0x345)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x1f576e(0x329)]['t'](_0x1f576e(0x325))};if(_0x35f4cb[_0x1f576e(0x311)][_0x1f576e(0x28f)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x1f576e(0x2b5))};try{const _0x483872=await this[_0x1f576e(0x2de)]['get'](_0x5d8704[_0x1f576e(0x209)])[_0x1f576e(0x201)](_0x35f4cb[_0x1f576e(0x311)]['trim']());return _0x483872[_0x1f576e(0x310)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x483872[_0x1f576e(0x1c4)]||this[_0x1f576e(0x329)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x364b51){return console[_0x1f576e(0x305)](_0x1f576e(0x31b),_0x364b51),{'isValid':!0x0};}}},_0x271bb1[_0x310488(0x273)]=_0x2ef3aa([_0x5efcf0(0x0,_0x31ca1d[_0x310488(0x314)](_0x31ca1d[_0x310488(0x2fc)])),_0x5efcf0(0x1,_0x98cd1['IUIPartsService']),_0x5efcf0(0x2,_0x31ca1d[_0x310488(0x293)]),_0x5efcf0(0x3,_0x31ca1d['ILocalStorageService']),_0x5efcf0(0x4,_0x98cd1[_0x310488(0x288)]),_0x5efcf0(0x5,_0x98cd1[_0x310488(0x33c)]),_0x5efcf0(0x6,_0x31ca1d[_0x310488(0x314)](_0x98cd1['ComponentManager'])),_0x5efcf0(0x7,_0x31ca1d[_0x310488(0x314)](_0x31ca1d[_0x310488(0x2fa)])),_0x5efcf0(0x8,_0x31ca1d[_0x310488(0x31c)]),_0x5efcf0(0x9,_0x31ca1d[_0x310488(0x314)](_0x5d8704[_0x310488(0x209)]))],_0x271bb1['MCPConfigUIController']);const _0xcd9850={'id':_0x310488(0x347),'type':_0x31ca1d[_0x310488(0x1e2)][_0x310488(0x339)],'handler':async(_0x35764f,_0x4b8b4f)=>(_0x35764f['get'](_0x271bb1[_0x310488(0x273)])[_0x310488(0x1f8)](),!0x0)};function _0x11014d(_0x563a18,_0x36d9f1){const _0x5be676=_0x310488;switch(_0x563a18){case _0x5d8704[_0x5be676(0x229)][_0x5be676(0x343)]:return _0x5be676(0x1eb);case _0x5d8704['MCPConnectionStatus'][_0x5be676(0x202)]:return _0x5be676(0x23a);case _0x5d8704[_0x5be676(0x229)][_0x5be676(0x277)]:return _0x5be676(0x285);case _0x5d8704[_0x5be676(0x229)][_0x5be676(0x1e5)]:switch(_0x36d9f1){case _0x5d8704['MCPConnectionError'][_0x5be676(0x326)]:return'mcpStatus.unauthorized';case _0x5d8704[_0x5be676(0x1dc)][_0x5be676(0x2e4)]:return'mcpStatus.sessionOccupied';case _0x5d8704[_0x5be676(0x1dc)]['NETWORK_ERROR']:return _0x5be676(0x27e);case _0x5d8704[_0x5be676(0x1dc)][_0x5be676(0x333)]:return _0x5be676(0x1ed);default:return _0x5be676(0x294);}case _0x5d8704['MCPConnectionStatus'][_0x5be676(0x2b7)]:return _0x5be676(0x1da);default:return'mcpStatus.unknown';}}function _0x504cfc(_0x2aed5e,_0xb0a95d,_0x637c65,_0x15b156=!0x0){const _0x27525e=_0x310488,_0x5649c4=_0x11014d(_0x2aed5e,_0xb0a95d),_0x30926f=_0x637c65['t'](_0x5649c4);return _0x15b156?_0x2aed5e===_0x5d8704[_0x27525e(0x229)][_0x27525e(0x343)]&&_0xb0a95d===_0x5d8704[_0x27525e(0x1dc)][_0x27525e(0x326)]?_0x30926f+_0x27525e(0x1f2)+_0x637c65['t'](_0x27525e(0x263)):_0x2aed5e===_0x5d8704[_0x27525e(0x229)][_0x27525e(0x277)]?''+_0x30926f:_0x2aed5e===_0x5d8704[_0x27525e(0x229)][_0x27525e(0x343)]||_0x2aed5e===_0x5d8704['MCPConnectionStatus'][_0x27525e(0x1e5)]?_0x30926f+_0x27525e(0x1f2)+_0x637c65['t'](_0x27525e(0x1ee)):_0x30926f:_0x30926f;}function _0x239102(_0x9ef61d){const _0x54d3d6=_0x310488;switch(_0x9ef61d){case _0x5d8704[_0x54d3d6(0x229)]['CONNECTED']:return _0x54d3d6(0x276);case _0x5d8704[_0x54d3d6(0x229)][_0x54d3d6(0x202)]:case _0x5d8704[_0x54d3d6(0x229)][_0x54d3d6(0x2b7)]:return _0x54d3d6(0x2c3);case _0x5d8704['MCPConnectionStatus'][_0x54d3d6(0x1e5)]:case _0x5d8704[_0x54d3d6(0x229)][_0x54d3d6(0x343)]:return _0x54d3d6(0x2bc);default:return _0x54d3d6(0x20b);}}function _0x23a389(_0x5a29a4){const _0x3ad3eb=_0x310488,{status$:_0x381edb,error$:_0x4920be,onConfigure:_0x892ca9,showClickable:_0x20c2cd=!0x0}=_0x5a29a4,_0x25f364=_0x98cd1['useObservable'](_0x381edb,_0x5d8704[_0x3ad3eb(0x229)][_0x3ad3eb(0x343)]),_0x4398f4=_0x98cd1[_0x3ad3eb(0x1fc)](_0x4920be,_0x5d8704[_0x3ad3eb(0x1dc)]['NONE']),_0x199520=_0x98cd1[_0x3ad3eb(0x2e8)](_0x31ca1d['LocaleService']),_0x5bb2ea=_0x25f364===_0x5d8704['MCPConnectionStatus']['CONNECTED'];_0x25f364===_0x5d8704['MCPConnectionStatus'][_0x3ad3eb(0x202)]||_0x5d8704[_0x3ad3eb(0x229)][_0x3ad3eb(0x2b7)];const _0x15e3bc=_0x199520['t'](_0x11014d(_0x25f364,_0x4398f4)),_0x2201a0=_0x504cfc(_0x25f364,_0x4398f4,_0x199520,_0x20c2cd),_0x3b8d26=_0x239102(_0x25f364),_0x3949fd=_0x5bb2ea?_0x2c8164['jsx'](_0x279bc8,{}):_0x2c8164['jsx'](_0x562641,{}),_0x274b29=_0x595c52[_0x3ad3eb(0x2cc)](()=>{_0x20c2cd&&_0x892ca9&&_0x892ca9();},[_0x20c2cd,_0x892ca9]);function _0x301fab(){const _0x6be26d=_0x3ad3eb;return _0x2c8164['jsxs'](_0x6be26d(0x257),{'className':_0x2e5b3d['clsx'](_0x6be26d(0x2fb),_0x20c2cd&&_0x892ca9&&_0x6be26d(0x1c5)),'role':_0x6be26d(0x309),'onClick':_0x20c2cd&&_0x892ca9?_0x274b29:void 0x0,'children':[_0x2c8164[_0x6be26d(0x262)](_0x6be26d(0x257),{'className':_0x2e5b3d[_0x6be26d(0x1f6)]('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x3b8d26),'children':_0x3949fd}),_0x2c8164['jsx'](_0x6be26d(0x257),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x15e3bc})]});}return _0x2c8164[_0x3ad3eb(0x262)](_0x2e5b3d[_0x3ad3eb(0x33e)],{'title':_0x2201a0,'placement':'bottom','children':_0x301fab()});}var _0x2b256a=Object[_0x310488(0x2f2)],_0x4acdcb=(_0xdf7595,_0xe54791,_0x502398,_0x28d048)=>{for(var _0x569c6e=_0x28d048>0x1?void 0x0:_0x28d048?_0x2b256a(_0xe54791,_0x502398):_0xe54791,_0x4fa94b=_0xdf7595['length']-0x1,_0x185151;_0x4fa94b>=0x0;_0x4fa94b--)(_0x185151=_0xdf7595[_0x4fa94b])&&(_0x569c6e=_0x185151(_0x569c6e)||_0x569c6e);return _0x569c6e;},_0x466523=(_0x58123d,_0x414c8c)=>(_0x58ebc0,_0x5d1985)=>_0x414c8c(_0x58ebc0,_0x5d1985,_0x58123d);_0x271bb1['MCPConnectionUIController']=class extends _0x31ca1d['Disposable']{constructor(_0x37118f,_0x7b3cfd,_0x11fbde,_0x5db277){const _0x167bd1=_0x310488;super(),this[_0x167bd1(0x2de)]=_0x37118f,this[_0x167bd1(0x249)]=_0x7b3cfd,this[_0x167bd1(0x2a1)]=_0x11fbde,this['_configService']=_0x5db277,this[_0x167bd1(0x24c)](),this[_0x167bd1(0x2cb)]();}[_0x310488(0x24c)](){const _0x37c470=_0x310488,_0x4e214b=this[_0x37c470(0x1f7)][_0x37c470(0x308)](_0x1e7d5b);_0x4e214b!=null&&_0x4e214b[_0x37c470(0x349)]&&(this['_connectionController'][_0x37c470(0x1bd)]=!0x1);}[_0x310488(0x2cb)](){const _0x248c51=_0x310488,_0x5d9a32=this[_0x248c51(0x1f7)][_0x248c51(0x308)](_0x1e7d5b);(_0x5d9a32==null?void 0x0:_0x5d9a32[_0x248c51(0x284)])!==!0x1&&this[_0x248c51(0x264)](this['_uiPartsService'][_0x248c51(0x2e9)](_0x98cd1['BuiltInUIPart'][_0x248c51(0x23c)],()=>{const _0x3b8200=_0x248c51;var _0x2d37c1;return _0x98cd1[_0x3b8200(0x2df)](_0x105416({'status$':this[_0x3b8200(0x249)][_0x3b8200(0x2ad)],'error$':this[_0x3b8200(0x249)][_0x3b8200(0x2b0)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x2d37c1=_0x5d9a32==null?void 0x0:_0x5d9a32['showDeveloperTools'])!=null?_0x2d37c1:!0x1}),this[_0x3b8200(0x2de)]);}));}[_0x310488(0x291)](){const _0x4f284b=_0x310488;this[_0x4f284b(0x2de)][_0x4f284b(0x258)](_0x271bb1[_0x4f284b(0x273)])[_0x4f284b(0x1f8)]();}},_0x271bb1['MCPConnectionUIController']=_0x4acdcb([_0x466523(0x0,_0x31ca1d[_0x310488(0x314)](_0x31ca1d[_0x310488(0x2fc)])),_0x466523(0x1,_0x31ca1d[_0x310488(0x314)](_0x5d8704[_0x310488(0x209)])),_0x466523(0x2,_0x98cd1[_0x310488(0x319)]),_0x466523(0x3,_0x31ca1d[_0x310488(0x293)])],_0x271bb1[_0x310488(0x32b)]);function _0x105416(_0x277f75){const {status$:_0x439938,error$:_0x48e062,onConfigure:_0xb7db44,showClickable:_0x46979b}=_0x277f75;return function(){const _0x487a6=_0x18c6;return _0x2c8164[_0x487a6(0x262)](_0x23a389,{'status$':_0x439938,'error$':_0x48e062,'onConfigure':_0xb7db44,'showClickable':_0x46979b});};}function _0x503326(_0x4e7cb2){const _0x5b8e9f=_0x310488;return{'id':_0xcd9850['id'],'type':_0x98cd1[_0x5b8e9f(0x2b2)][_0x5b8e9f(0x23e)],'icon':'MenuIcon','title':_0x5b8e9f(0x1cf),'tooltip':_0x5b8e9f(0x1cf)};}const _0x10f977={[_0x98cd1[_0x310488(0x1ca)][_0x310488(0x20d)]]:{[_0xcd9850['id']]:{'order':0xa,'menuItemFactory':_0x503326}}};var _0x1786c7=Object[_0x310488(0x2f2)],_0x391725=(_0x248e33,_0x181a85,_0x538be7,_0x1fe594)=>{for(var _0xc9be60=_0x1fe594>0x1?void 0x0:_0x1fe594?_0x1786c7(_0x181a85,_0x538be7):_0x181a85,_0x1b750f=_0x248e33['length']-0x1,_0x2d69f6;_0x1b750f>=0x0;_0x1b750f--)(_0x2d69f6=_0x248e33[_0x1b750f])&&(_0xc9be60=_0x2d69f6(_0xc9be60)||_0xc9be60);return _0xc9be60;},_0x46b18f=(_0x7bbff,_0xa476e6)=>(_0x108604,_0x2ce033)=>_0xa476e6(_0x108604,_0x2ce033,_0x7bbff);_0x271bb1[_0x310488(0x29d)]=class extends _0x31ca1d['Disposable']{constructor(_0x20171b,_0x512fd8){const _0x2d00a3=_0x310488;super(),this[_0x2d00a3(0x1e7)]=_0x20171b,this['_menuManagerService']=_0x512fd8,this[_0x2d00a3(0x30f)](),this[_0x2d00a3(0x265)]();}[_0x310488(0x30f)](){const _0x89d79e=_0x310488;[_0xcd9850][_0x89d79e(0x259)](_0x441dd7=>{const _0xd3c019=_0x89d79e;this[_0xd3c019(0x264)](this[_0xd3c019(0x1e7)]['registerCommand'](_0x441dd7));});}['_initializeMenus'](){const _0x17c61e=_0x310488;this[_0x17c61e(0x2ba)][_0x17c61e(0x306)](_0x10f977);}},_0x271bb1[_0x310488(0x29d)]=_0x391725([_0x46b18f(0x0,_0x31ca1d[_0x310488(0x238)]),_0x46b18f(0x1,_0x98cd1[_0x310488(0x2ce)])],_0x271bb1[_0x310488(0x29d)]);const _0xc475d5={'mcpStatus':{'disconnected':_0x310488(0x20e),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x310488(0x253),'unknown':_0x310488(0x214),'unauthorized':_0x310488(0x279),'sessionOccupied':_0x310488(0x283),'networkError':_0x310488(0x292),'maxRetriesExceeded':_0x310488(0x2b9),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x310488(0x1fa),'description':_0x310488(0x221),'apiKey':_0x310488(0x2d2),'apiKeyPlaceholder':_0x310488(0x2ae),'apiKeyHint':_0x310488(0x225),'enableAuth':_0x310488(0x2ea),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x310488(0x2ab),'mcpClientConfig':_0x310488(0x2ab),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x310488(0x2fe),'configStep2':_0x310488(0x1e4),'configStep3':_0x310488(0x30d),'sessionId':_0x310488(0x307),'sessionIdDescription':_0x310488(0x28a),'authorizationDescription':_0x310488(0x31f),'configParameters':_0x310488(0x2f8),'maxRetries':_0x310488(0x1c9),'save':'Save\x20Configuration','saving':_0x310488(0x33d),'note1':_0x310488(0x1c7),'note2':_0x310488(0x328),'configSaved':_0x310488(0x1c8),'configError':_0x310488(0x2d8),'apiApplyInfo':{'title':_0x310488(0x27f),'description':_0x310488(0x274),'univerAiLabel':_0x310488(0x250),'getStarted':_0x310488(0x2a4)},'validation':{'apiKeyRequired':_0x310488(0x223),'apiKeyTooShort':_0x310488(0x297),'invalidConfig':_0x310488(0x2d0),'invalidApiKey':_0x310488(0x25a)},'connectionStatus':{'disconnected':_0x310488(0x23b),'connecting':_0x310488(0x27d),'connected':'Connected','failed':_0x310488(0x2a9),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x310488(0x2f7),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x310488(0x2f6),'maxRetriesExceeded':_0x310488(0x300)}}},_0x5936d8={'mcpStatus':{'disconnected':_0x310488(0x24a),'connecting':_0x310488(0x29a),'connected':'MCP\x20已连接','failed':_0x310488(0x217),'retrying':_0x310488(0x26e),'unknown':'MCP\x20状态未知','unauthorized':_0x310488(0x2ac),'sessionOccupied':_0x310488(0x239),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x310488(0x206),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x310488(0x207)},'mcpConfig':{'title':_0x310488(0x24b),'description':_0x310488(0x321),'apiKey':_0x310488(0x344),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x310488(0x31a),'enableAuth':_0x310488(0x22b),'enableAuthHint':_0x310488(0x1d2),'connectionInfo':_0x310488(0x1c1),'mcpClientConfig':_0x310488(0x1c1),'configInstructions':_0x310488(0x215),'configStepTitle':_0x310488(0x34b),'configStep1':_0x310488(0x315),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x310488(0x28e),'sessionId':_0x310488(0x341),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x310488(0x2dc),'configParameters':_0x310488(0x318),'maxRetries':_0x310488(0x25e),'save':_0x310488(0x21c),'saving':_0x310488(0x299),'note1':_0x310488(0x2af),'note2':_0x310488(0x27a),'configSaved':_0x310488(0x20c),'configError':_0x310488(0x34a),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':'Univer\x20AI\x20控制台','getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x310488(0x251),'invalidConfig':_0x310488(0x1de),'invalidApiKey':_0x310488(0x213)},'connectionStatus':{'disconnected':_0x310488(0x237),'connecting':_0x310488(0x235),'connected':_0x310488(0x2e3),'failed':_0x310488(0x2c4),'retrying':_0x310488(0x1c0)},'connectionError':{'unauthorized':_0x310488(0x244),'sessionOccupied':_0x310488(0x252),'networkError':_0x310488(0x296),'maxRetriesExceeded':_0x310488(0x2c7)}}};var _0x2ecc8b=Object[_0x310488(0x335)],_0x5da13b=Object[_0x310488(0x2f2)],_0x15da7a=(_0x199c18,_0x57a0db,_0xce099a)=>_0x57a0db in _0x199c18?_0x2ecc8b(_0x199c18,_0x57a0db,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xce099a}):_0x199c18[_0x57a0db]=_0xce099a,_0x32e385=(_0x2e81b3,_0x5eac2f,_0x4f6187,_0x4e79b2)=>{const _0x1ffa0c=_0x310488;for(var _0x3d86c6=_0x4e79b2>0x1?void 0x0:_0x4e79b2?_0x5da13b(_0x5eac2f,_0x4f6187):_0x5eac2f,_0x225d5b=_0x2e81b3[_0x1ffa0c(0x345)]-0x1,_0x4a940c;_0x225d5b>=0x0;_0x225d5b--)(_0x4a940c=_0x2e81b3[_0x225d5b])&&(_0x3d86c6=_0x4a940c(_0x3d86c6)||_0x3d86c6);return _0x3d86c6;},_0x4cf9e5=(_0x692389,_0x21e0c3)=>(_0x34ba8c,_0x51b250)=>_0x21e0c3(_0x34ba8c,_0x51b250,_0x692389),_0xf2f58b=(_0x49f0b7,_0x1cc6f5,_0x1337cc)=>_0x15da7a(_0x49f0b7,_0x1cc6f5+'',_0x1337cc);_0x271bb1['UniverMCPUIPlugin']=class extends _0x31ca1d[_0x310488(0x2b4)]{constructor(_0x5db890=_0x17bbbe,_0x415d98,_0x11ca0a,_0x49043a,_0x543142,_0x273695){const _0x1df22c=_0x310488;super(),this[_0x1df22c(0x20f)]=_0x5db890,this['_injector']=_0x415d98,this[_0x1df22c(0x1f7)]=_0x11ca0a,this[_0x1df22c(0x2a1)]=_0x49043a,this[_0x1df22c(0x22a)]=_0x543142,this[_0x1df22c(0x329)]=_0x273695;const {..._0x408899}=_0x31ca1d[_0x1df22c(0x1d0)]({},_0x17bbbe,this['_config']);this[_0x1df22c(0x1f7)][_0x1df22c(0x31e)](_0x1e7d5b,_0x408899);}async[_0x310488(0x2be)](){const _0x50b657=_0x310488,_0x4cc23b=[[_0x271bb1[_0x50b657(0x32b)]],[_0x271bb1['MCPConfigUIController']],[_0x271bb1[_0x50b657(0x29d)]]];this[_0x50b657(0x2de)]['has'](_0x29dc49['ISocketService'])||_0x4cc23b[_0x50b657(0x1f1)]([_0x29dc49[_0x50b657(0x30c)],{'useClass':_0x29dc49['WebSocketService']}]),_0x4cc23b[_0x50b657(0x259)](_0xb50573=>this['_injector'][_0x50b657(0x21a)](_0xb50573)),this[_0x50b657(0x2de)][_0x50b657(0x258)](_0x271bb1[_0x50b657(0x32b)]),this['_injector']['get'](_0x271bb1[_0x50b657(0x273)]),this[_0x50b657(0x2de)]['get'](_0x271bb1[_0x50b657(0x29d)]);}},_0xf2f58b(_0x271bb1[_0x310488(0x224)],_0x310488(0x208),_0x310488(0x2ca)),_0x271bb1[_0x310488(0x224)]=_0x32e385([_0x31ca1d[_0x310488(0x2a7)](_0x5d8704[_0x310488(0x2d6)]),_0x4cf9e5(0x1,_0x31ca1d[_0x310488(0x314)](_0x31ca1d[_0x310488(0x2fc)])),_0x4cf9e5(0x2,_0x31ca1d[_0x310488(0x293)]),_0x4cf9e5(0x3,_0x98cd1[_0x310488(0x319)]),_0x4cf9e5(0x4,_0x31ca1d[_0x310488(0x1e0)]),_0x4cf9e5(0x5,_0x31ca1d['Inject'](_0x31ca1d[_0x310488(0x2fa)]))],_0x271bb1['UniverMCPUIPlugin']),_0x271bb1['MCPConfigPanel']=_0x28bf2b,_0x271bb1['MCPStatusDisplay']=_0x23a389,_0x271bb1[_0x310488(0x2b6)]=_0xcd9850,_0x271bb1['enUS']=_0xc475d5,_0x271bb1[_0x310488(0x2c2)]=_0x5936d8,Object['defineProperty'](_0x271bb1,Symbol[_0x310488(0x30e)],{'value':'Module'});}));function _0x18c6(_0x501423,_0x5d0057){const _0x14351a=_0x1435();return _0x18c6=function(_0x18c67f,_0x4ccceb){_0x18c67f=_0x18c67f-0x1bd;let _0x19066c=_0x14351a[_0x18c67f];return _0x19066c;},_0x18c6(_0x501423,_0x5d0057);}function _0x1435(){const _0x2f9ceb=['配置\x20MCP\x20使用\x20AI\x20操作电子表格','evenodd','univer-min-w-0\x20univer-flex-1','rxjs','mcpConfig.validation.apiKeyRequired','UNAUTHORIZED','forwardRef','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','_localeService','417RJHMXQ','MCPConnectionUIController','span','OffLineIcon','_logService','univer-space-y-5','518TclOIv','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','jsxs','MAX_RETRIES_EXCEEDED','univer-space-y-3','defineProperty','126JZyQOS','defIds','assign','COMMAND','_messageService','currentColor','IMessageService','Saving...','Tooltip','MCP_PLUGIN_CONFIG_KEY','xlink:href','会话ID','mcpConfig.save','DISCONNECTED','API\x20密钥','length','colorChannel1','mcp-ui.command.openConfigPanel','_createConfigPanelComponent','showDeveloperTools','配置保存失败','配置步骤:','enableAutoConnect','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','mcpConfig.apiApplyInfo.description','重连中...','MCP\x20客户端配置','idSuffix','NONE','error','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','use','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configuration\x20saved\x20successfully','Max\x20Retries','RibbonStartGroup','path','function','_loadStoredApiKey','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','mcpConfig.title','merge','round','启用身份验证以获得安全连接','mask','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','Bearer\x20','_mcpConnectionController','mcpConfig.configError','CheckMarkIcon','amd','mcpStatus.retrying','errorMessage','MCPConnectionError','entries','配置无效','mcpConfig.configStep3','ILocalStorageService','UniverDesign','CommandType','_componentManager','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','FAILED','label','_commandService','mcpConfig.connectionError.sessionOccupied','<API_KEY>','includes','mcpStatus.disconnected','check-mark-icon','mcpStatus.maxRetriesExceeded','mcpStatus.clickToConnect','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','react','push','\x20-\x20','84104SirOUR','mcpConfig.note2','mcpConfig.sessionIdDescription','clsx','_configService','showConfigPanel','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','MCP\x20Configuration','UniverCore','useObservable','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','mcpConfig.configStep1','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','CloseIcon','validateApiKey','CONNECTING','__setCustomHeaders','327954BtObVd','mcp.apiKey','MCP:\x20超出最大重试次数','点击配置\x20MCP','pluginName','MCPConnectionController','MessageType','univer-text-gray-500','配置保存成功','OTHERS','MCP\x20Disconnected','_config','mcpConfig.apiApplyInfo.title','sessionId$','attrs','API\x20密钥无效,请检查密钥是否正确','MCP\x20Unknown\x20Status','将以下配置添加到您的\x20MCP\x20客户端设置中:','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','MCP\x20连接失败','190548OhEvzM','mcpConfig.configInstructions','add','register','保存配置','BehaviorSubject','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','univer-bg-blue-500','open','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','close','API\x20key\x20is\x20required','UniverMCPUIPlugin','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','univer.ai','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','univer-flex\x20univer-flex-wrap\x20univer-gap-2','MCPConnectionStatus','_localStorageService','启用身份验证','20fKyyeC','1em','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','exports','univer-text-sm\x20univer-text-gray-500','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','clipPath','mcpConfig.connectionStatus.failed','univer-flex-1','连接中...','https://console.univer.ai','未连接','ICommandService','MCP:\x20会话\x20ID\x20已被占用','mcpStatus.connecting','Disconnected','HEADER_MENU','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','BUTTON','fill','@univerjs/network','NETWORK_ERROR','_mcpCoreConfig$','_apiKey$','权限验证失败,请检查您的\x20API\x20密钥','univer-text-xs\x20univer-text-gray-500','useState','_dialogService','string','_connectionController','MCP\x20已断开','MCP\x20配置','_initAutoConnect','show','stringify','Disposable','Univer\x20AI\x20Console','API\x20密钥长度至少需要\x2010\x20位','会话\x20ID\x20已被占用,请稍后再试','MCP\x20Retrying...','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','value','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','div','get','forEach','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','1521774IuwnIH','symbol','next','最大重试次数','univer-flex\x20univer-items-center\x20univer-gap-3','830924iwxglc','univer-shrink-0\x20univer-text-blue-500','jsx','mcpStatus.clickToConfigure','disposeWithMe','_initializeMenus','url(#$1','white','random','HelpIcon','mcpServerUrl','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','setItem','replace','MCP\x20重连中...','Error','children','tag','svg','MCPConfigUIController','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configuration\x20Notes:','univer-text-green-500','CONNECTED','translate(.97)','MCP:\x20Unauthorized','您的\x20API\x20密钥安全存储在本地存储中','mcpConfig.apiKeyPlaceholder','univer-text-blue-600','Connecting...','mcpStatus.networkError','What\x20is\x20API\x20Key?','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','createElement','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','MCP:\x20Session\x20ID\x20Occupied','showStatus','mcpStatus.connected','<SESSION_ID>','defs','IDialogService','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','mcpConfig.apiApplyInfo.univerAiLabel','univer-size-2\x20univer-rounded-full','UniverIcon','重启您的\x20MCP\x20客户端以使配置生效','trim','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','_handleConfigure','MCP:\x20Network\x20Error','IConfigService','mcpStatus.failed','map','网络连接错误,请检查您的网络连接','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','mcp-ui.config','保存中...','MCP\x20连接中...','mcpConfig.note1','M0\x200H16V16H0z','MCPUIMenuController','http://www.w3.org/2000/svg','mcpConfig.connectionError.networkError','mcpConfig.connectionError.maxRetriesExceeded','_uiPartsService','getItem','UniverUi','Get\x20your\x20API\x20key\x20in\x20seconds','mcpConfig.apiKeyHint','_validateConfig','DependentOn','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','Connection\x20Failed','on-line-icon_clip0_910_349','MCP\x20Client\x20Configuration','MCP:\x20未授权','connectionStatus$','Enter\x20your\x20API\x20key','配置更改将立即生效','connectionError$','displayName','MenuItemType','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','Plugin','mcpConfig.validation.apiKeyTooShort','OpenMCPConfigPanelCommand','RETRYING','Authorization:','MCP:\x20Max\x20Retries\x20Exceeded','_menuManagerService','Success','univer-text-red-500','_initConfigSync','onStarting','_config$','mcpConfig.configStepTitle','univer-text-gray-400','zhCN','univer-text-yellow-500','连接失败','univer-flex\x20univer-items-center\x20univer-gap-2','univer-text-xs\x20univer-text-gray-600','超出最大重试次数,请稍后再试','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','mcpConfig.connectionError.unauthorized','MCP_UI_PLUGIN','_initStatusComponent','useCallback','univer-shrink-0\x20univer-text-red-500','IMenuManagerService','348650oSAHlV','Invalid\x20configuration','univer-font-medium','API\x20Key','OnLineIcon','mcpConfig.connectionStatus.retrying','univer.plus','UniverMCPPlugin','0\x200\x2016\x2016','Failed\x20to\x20save\x20configuration','off-line-icon','subscribe','mcpConfig.apiKey','带有\x20Bearer\x20前缀的\x20API\x20密钥。','univer-space-y-2','_injector','connectInjector','_registerComponent','univer-bg-green-500','https://console.univer.plus','已连接','SESSION_ID_OCCUPIED','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','substring','useDependency','registerComponent','Enable\x20Authentication','mcpConfig.connectionStatus.connecting','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','getCurrentConfig','none','React','univer-bg-red-500','mcpConfig.connectionInfo','getOwnPropertyDescriptor','off-line-icon_clip0_910_343','univer-text-sm\x20univer-font-medium','@univerjs/core','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20Parameters:','univer_session_id:','LocaleService','univer-flex\x20univer-items-center','Injector','mcp-config-dialog','Copy\x20the\x20JSON\x20configuration\x20below','univer-size-4','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','@univerjs-pro/mcp','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','univer-flex\x20univer-items-start\x20univer-gap-2','univer-flex\x20univer-gap-3','warn','mergeMenu','Session\x20ID','getConfig','button','univer-flex\x20univer-items-start\x20univer-gap-3','univerjs-icon\x20univerjs-icon-','ISocketService','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','toStringTag','_initializeCommands','isValid','apiKey','Button','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','Inject','复制以下\x20JSON\x20配置','_loading$','subscribeConfigValue$','配置参数:','IUIPartsService','您的\x20API\x20密钥将在此浏览器中本地存储','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','ILogService','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','setConfig','API\x20key\x20with\x20Bearer\x20prefix.','_handleConfigSave'];_0x1435=function(){return _0x2f9ceb;};return _0x1435();}
|
|
1
|
+
function _0xfaa3(){const _0x532b40=['merge','showStatus','mcpConfig.configStep1','ComponentManager','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','has','univer-space-y-3','请输入您的\x20API\x20密钥','Univer\x20AI\x20Console','将以下配置添加到您的\x20MCP\x20客户端设置中:','CommandType','colorChannel1','univer-text-gray-500','mcpConfig.configParameters','mcpConfig.configError','attrs','on-line-icon','button','FAILED','clipPath','createElement','connectionStatus$','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','MCPConfigPanel','getCurrentConfig','_handleConfigure','getItem','univer-text-sm\x20univer-font-medium','open','_connectionController','UniverUi','启用身份验证以获得安全连接','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','_mcpCoreConfig$','_apiKey$','4393314dHRaqD','MCP\x20已连接','Error','univer-flex\x20univer-items-center\x20univer-gap-2','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','MCPConnectionUIController','https://console.univer.ai','MCP\x20连接失败','mcp-config-dialog','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','mcp-ui.command.openConfigPanel','mcpStatus.disconnected','symbol','mcpConfig.connectionStatus.failed','off-line-icon_clip0_910_343','8yqqMGp','on-line-icon_clip0_910_349','MAX_RETRIES_EXCEEDED','2688160hFnCMr','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','What\x20is\x20API\x20Key?','API\x20密钥不能为空','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','showConfigPanel','BehaviorSubject','LocaleService','重连中...','1em','univer-shrink-0\x20univer-text-red-500','pre','MCP\x20Configuration','path','univer-flex\x20univer-flex-wrap\x20univer-gap-2','_localeService','启用身份验证','会话ID','_validateConfig','UniverMCPPlugin','Connecting...','CheckMarkIcon','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','forEach','_localStorageService','univer.plus','getOwnPropertyDescriptor','API\x20Key','univer-bg-gray-500','useDependency','mcpConfig.connectionError.maxRetriesExceeded','Get\x20your\x20API\x20key\x20in\x20seconds','COMMAND','mcpConfig.configSaved','10eGVIGc','MCP_UI_PLUGIN','get','未连接','<SESSION_ID>','_initStatusComponent','univer-text-sm\x20univer-text-gray-500','1zCGKVq','univer-space-y-2','bottom','mcpConfig.note1','mcpConfig.connectionStatus.connecting','Injector','mcpStatus.clickToConfigure','带有\x20Bearer\x20前缀的\x20API\x20密钥。','http://www.w3.org/2000/svg','Max\x20Retries','mcpConfig.validation.apiKeyTooShort','xlink:href','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','UNAUTHORIZED','保存配置','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','mcpConfig.connectionStatus.retrying','currentColor','DependentOn','MenuIcon','0\x200\x2016\x2016','<API_KEY>','amd','mcpConfig.title','会话\x20ID\x20已被占用,请稍后再试','OffLineIcon','_commandService','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','配置步骤:','Failed\x20to\x20save\x20configuration','MCP\x20状态未知','warn','univer-bg-red-500','subscribe','url(#on-line-icon_clip0_910_349)','univer-flex-1','univer-text-blue-600','mcpStatus.maxRetriesExceeded','点击配置\x20MCP','UniverNetwork','Input','您的\x20API\x20密钥安全存储在本地存储中','https://mcp.univer.ai/mcp/?univer_session_id=','MCP\x20重连中...','MCPUIMenuController','MCPConnectionStatus','_handleConfigSave','defIds','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','exports','8599401JtvhTB','toStringTag','defs','substring','UniverIcon','univer-text-green-500','_logService','length','mcpConfig.saving','add','ICommandService','0\x200\x2017\x2016','mcpConfig.configStep3','_initializeCommands','配置无效','univer-text-xs\x20univer-text-gray-500','mcpConfig.configInstructions','round','MCP:\x20超出最大重试次数','univer-flex\x20univer-gap-3','defineProperty','@univerjs/core','errorMessage','_dialogService','MCP:\x20未授权','removeItem','clsx','BuiltInUIPart','random','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','mcpStatus.connected','复制以下\x20JSON\x20配置','univer-flex\x20univer-items-center\x20univer-gap-3','MCP\x20Connecting...','ILogService','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','mcpConfig.apiKeyPlaceholder','重启您的\x20MCP\x20客户端以使配置生效','span','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Enable\x20Authentication','svg','MCP\x20Unknown\x20Status','配置保存成功','您的\x20API\x20密钥将在此浏览器中本地存储','object','univer-min-w-0\x20univer-flex-1','mcpConfig.connectionError.networkError','SESSION_ID_OCCUPIED','MCP\x20Retrying...','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','univer.ai','idSuffix','NONE','1551102DsRvtY','map','useRef','MCPConfigUIController','@univerjs/ui','_config$','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_loadStoredApiKey','UniverProMcp','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','IDialogService','ISocketService','Plugin','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','text','react/jsx-runtime','validateApiKey','配置保存失败','value','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','univer-text-white','current','MCP:\x20Unauthorized','_loading$','网络连接错误,请检查您的网络连接','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','assign','ILocalStorageService','label','div','114132ZSvxXm','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','权限验证失败,请检查您的\x20API\x20密钥','Connection\x20Failed','RETRYING','CloseIcon','连接失败','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','BUTTON','getConfig','Inject','children','isValid','API\x20密钥无效,请检查密钥是否正确','API\x20密钥','mcpStatus.sessionOccupied','useObservable','univer-text-red-500','MessageType','IMessageService','fill','几秒钟内获取您的\x20API\x20密钥','Authorization:','Button','MenuItemType','next','10wiFUDP','mergeMenu','mcpStatus.connecting','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','_initializeMenus','registerCommand','toString','Module','UniverMCPUIPlugin','register','mcp-ui.config','jsxs','translate(.97)','_registerComponent','_blank','_uiPartsService','IConfigService','Disconnected','close','MCP:\x20会话\x20ID\x20已被占用','@univerjs/network','__setCustomHeaders','setItem','mcpConfig.connectionInfo','mcpConfig.connectionStatus.disconnected','univer-size-2\x20univer-rounded-full','IMenuManagerService','MCPConnectionController','showDeveloperTools','mcpConfig.configStep2','error','MCP\x20Client\x20Configuration','mcpConfig.apiKey','MCP:\x20Network\x20Error','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','20519609zDOQEO','useCallback','apiKey','mcpServerUrl','univer-bg-blue-500','Saving...','Success','_injector','CONNECTED','entries','MCP\x20客户端配置','useState','check-mark-icon','close-icon','UniverDesign','_configService','@univerjs/design','mcpConfig.note2','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','_initConfigSync','mcpStatus.unknown','includes','none','_messageService','_menuManagerService','1343601EThoUV','mcpStatus.clickToConnect','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','MCP\x20配置','mcpConfig.connectionError.unauthorized','zhCN','\x20-\x20','M0\x200H16V16H0z','HEADER_MENU','CONNECTING','UniverProMcpUi','univer-space-y-4','mcpStatus.failed','_initAutoConnect','OpenMCPConfigPanelCommand','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','Tooltip','Click\x20to\x20connect\x20MCP','mcpConfig.save','tag','API\x20key\x20with\x20Bearer\x20prefix.','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Disposable','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','show','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','mcpConfig.validation.invalidConfig','onStarting','_mcpConnectionController','mcpConfig.apiApplyInfo.univerAiLabel','univer-flex\x20univer-items-start\x20univer-gap-3','jsx','Invalid\x20configuration','Univer\x20AI\x20控制台','univer_session_id:','react','MCPConnectionError','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20Parameters:','string','push','DISCONNECTED','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','univer-text-gray-400','@univerjs-pro/mcp','Connected','超出最大重试次数,请稍后再试','white','displayName','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','subscribeConfigValue$','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','sessionId$','univer-text-yellow-500','mcpStatus.unauthorized','连接中...','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','_config','univer-flex\x20univer-items-start\x20univer-gap-2','配置更改将立即生效','trim','NETWORK_ERROR','mcpConfig.apiKeyHint','mcpConfig.authorizationDescription','_componentManager','Bearer\x20','noopener\x20noreferrer','univer-flex\x20univer-items-center','Session\x20ID','mcpConfig.validation.invalidApiKey','MCP:\x20Max\x20Retries\x20Exceeded','Retrying...','_createConfigPanelComponent','forwardRef','disposeWithMe','mcpStatus.networkError','MCP_PLUGIN_CONFIG_KEY','connectInjector','WebSocketService','OnLineIcon','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','connectionError$','UniverCore','mcp.apiKey','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','HelpIcon','rxjs','MCP:\x20网络错误','off','React','RibbonStartGroup','mask','pluginName','use','什么是\x20API\x20密钥?','http','https://console.univer.plus','evenodd'];_0xfaa3=function(){return _0x532b40;};return _0xfaa3();}function _0x41a7(_0x541504,_0x38e3aa){const _0xfaa386=_0xfaa3();return _0x41a7=function(_0x41a75f,_0x32b381){_0x41a75f=_0x41a75f-0x199;let _0x1b6e1a=_0xfaa386[_0x41a75f];return _0x1b6e1a;},_0x41a7(_0x541504,_0x38e3aa);}(function(_0x477252,_0x3f9340){const _0x11c401=_0x41a7,_0x5266bf=_0x477252();while(!![]){try{const _0x3e2bc6=-parseInt(_0x11c401(0x25e))/0x1*(-parseInt(_0x11c401(0x2c6))/0x2)+-parseInt(_0x11c401(0x220))/0x3+parseInt(_0x11c401(0x232))/0x4+parseInt(_0x11c401(0x2ff))/0x5*(parseInt(_0x11c401(0x2e5))/0x6)+-parseInt(_0x11c401(0x19a))/0x7*(parseInt(_0x11c401(0x22f))/0x8)+-parseInt(_0x11c401(0x290))/0x9+-parseInt(_0x11c401(0x257))/0xa*(-parseInt(_0x11c401(0x322))/0xb);if(_0x3e2bc6===_0x3f9340)break;else _0x5266bf['push'](_0x5266bf['shift']());}catch(_0x2d8911){_0x5266bf['push'](_0x5266bf['shift']());}}}(_0xfaa3,0xb4770),function(_0x5875bd,_0x1bca27){const _0x2493b2=_0x41a7;typeof exports==_0x2493b2(0x2bd)&&typeof module<'u'?_0x1bca27(exports,require('@univerjs/core'),require('react/jsx-runtime'),require('@univerjs-pro/mcp'),require('@univerjs/design'),require('@univerjs/ui'),require('rxjs'),require('react'),require('@univerjs/network')):typeof define=='function'&&define[_0x2493b2(0x274)]?define([_0x2493b2(0x28f),_0x2493b2(0x2a5),_0x2493b2(0x2d5),_0x2493b2(0x1c6),_0x2493b2(0x332),_0x2493b2(0x2ca),_0x2493b2(0x1f1),_0x2493b2(0x1bd),_0x2493b2(0x313)],_0x1bca27):(_0x5875bd=typeof globalThis<'u'?globalThis:_0x5875bd||self,_0x1bca27(_0x5875bd[_0x2493b2(0x1a4)]={},_0x5875bd[_0x2493b2(0x1ed)],_0x5875bd['React'],_0x5875bd[_0x2493b2(0x2ce)],_0x5875bd[_0x2493b2(0x330)],_0x5875bd[_0x2493b2(0x21b)],_0x5875bd[_0x2493b2(0x1f1)],_0x5875bd[_0x2493b2(0x1f4)],_0x5875bd[_0x2493b2(0x285)]));}(this,function(_0x1764fb,_0x59774c,_0x3caf40,_0x526990,_0x19ed03,_0x193043,_0x3a8d92,_0x3bb5c1,_0x44f18e){'use strict';const _0x30c379=_0x41a7;var _0x420ea0=Object[_0x30c379(0x2a4)],_0x38572c=(_0x59fcb6,_0x5f1a18,_0x34f0dc)=>_0x5f1a18 in _0x59fcb6?_0x420ea0(_0x59fcb6,_0x5f1a18,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x34f0dc}):_0x59fcb6[_0x5f1a18]=_0x34f0dc,_0x1c3207=(_0xb278d7,_0x2fcf74,_0xa61dc2)=>_0x38572c(_0xb278d7,typeof _0x2fcf74!=_0x30c379(0x22c)?_0x2fcf74+'':_0x2fcf74,_0xa61dc2);function _0x3decbc({ref:_0xd2edb5,..._0x9b601d}){const _0x229005=_0x30c379,{icon:_0x840515,id:_0x27beb9,className:_0x22fffa,extend:_0x2a5109,..._0x5010a7}=_0x9b601d,_0x223b88=('univerjs-icon\x20univerjs-icon-'+_0x27beb9+'\x20'+(_0x22fffa||''))[_0x229005(0x1d7)](),_0x4673fd=_0x3bb5c1[_0x229005(0x2c8)]('_'+_0x1abd08());return _0xae067a(_0x840515,''+_0x27beb9,{'defIds':_0x840515[_0x229005(0x28d)],'idSuffix':_0x4673fd[_0x229005(0x2dc)]},{'ref':_0xd2edb5,'className':_0x223b88,..._0x5010a7},_0x2a5109);}function _0xae067a(_0x5c945c,_0xe691a6,_0x27e317,_0x1b9e13,_0x553e35){const _0x4b489f=_0x30c379;return _0x3bb5c1[_0x4b489f(0x211)](_0x5c945c['tag'],{'key':_0xe691a6,..._0x16cc8c(_0x5c945c,_0x27e317,_0x553e35),..._0x1b9e13},(_0x4e359e(_0x5c945c,_0x27e317)[_0x4b489f(0x2f0)]||[])[_0x4b489f(0x2c7)]((_0x491dfe,_0x344185)=>_0xae067a(_0x491dfe,_0xe691a6+'-'+_0x5c945c[_0x4b489f(0x1ad)]+'-'+_0x344185,_0x27e317,void 0x0,_0x553e35)));}function _0x16cc8c(_0x3714a4,_0x365852,_0x2d48ce){const _0xfdcac2=_0x30c379,_0x11cae0={..._0x3714a4[_0xfdcac2(0x20c)]};_0x2d48ce!=null&&_0x2d48ce[_0xfdcac2(0x208)]&&_0x11cae0['fill']==='colorChannel1'&&(_0x11cae0[_0xfdcac2(0x2f9)]=_0x2d48ce[_0xfdcac2(0x208)]),_0x3714a4[_0xfdcac2(0x1ad)]===_0xfdcac2(0x1f6)&&_0x11cae0['id']&&(_0x11cae0['id']=_0x11cae0['id']+_0x365852[_0xfdcac2(0x2c4)]),Object[_0xfdcac2(0x32b)](_0x11cae0)[_0xfdcac2(0x24c)](([_0x4c6924,_0x4c4c77])=>{_0x4c6924==='mask'&&typeof _0x4c4c77=='string'&&(_0x11cae0[_0x4c6924]=_0x4c4c77['replace'](/url\(#(.*)\)/,'url(#$1'+_0x365852['idSuffix']+')'));});const {defIds:_0x77407b}=_0x365852;return!_0x77407b||_0x77407b[_0xfdcac2(0x297)]===0x0||(_0x3714a4[_0xfdcac2(0x1ad)]===_0xfdcac2(0x1f8)&&_0x11cae0[_0xfdcac2(0x269)]&&(_0x11cae0[_0xfdcac2(0x269)]=_0x11cae0[_0xfdcac2(0x269)]+_0x365852[_0xfdcac2(0x2c4)]),Object['entries'](_0x11cae0)[_0xfdcac2(0x24c)](([_0x567fbb,_0x2f68ab])=>{const _0x303040=_0xfdcac2;typeof _0x2f68ab==_0x303040(0x1c1)&&(_0x11cae0[_0x567fbb]=_0x2f68ab['replace'](/url\(#(.*)\)/,'url(#$1'+_0x365852[_0x303040(0x2c4)]+')'));})),_0x11cae0;}function _0x4e359e(_0x1d414c,_0x4c9f2c){const _0x4eea6b=_0x30c379;var _0x4e30e0;const {defIds:_0x3669a8}=_0x4c9f2c;return!_0x3669a8||_0x3669a8['length']===0x0?_0x1d414c:_0x1d414c[_0x4eea6b(0x1ad)]===_0x4eea6b(0x292)&&((_0x4e30e0=_0x1d414c[_0x4eea6b(0x2f0)])!=null&&_0x4e30e0[_0x4eea6b(0x297)])?{..._0x1d414c,'children':_0x1d414c[_0x4eea6b(0x2f0)]['map'](_0x15f7bf=>typeof _0x15f7bf[_0x4eea6b(0x20c)]['id']==_0x4eea6b(0x1c1)&&_0x3669a8&&_0x3669a8[_0x4eea6b(0x337)](_0x15f7bf[_0x4eea6b(0x20c)]['id'])?{..._0x15f7bf,'attrs':{..._0x15f7bf['attrs'],'id':_0x15f7bf[_0x4eea6b(0x20c)]['id']+_0x4c9f2c[_0x4eea6b(0x2c4)]}}:_0x15f7bf)}:_0x1d414c;}function _0x1abd08(){const _0x2cd2ca=_0x30c379;return Math[_0x2cd2ca(0x2ac)]()[_0x2cd2ca(0x305)](0x24)[_0x2cd2ca(0x293)](0x2,0x8);}_0x3decbc[_0x30c379(0x1ca)]=_0x30c379(0x294);const _0x24ee46={'tag':_0x30c379(0x2b9),'attrs':{'xmlns':_0x30c379(0x266),'fill':'none','viewBox':_0x30c379(0x272),'width':'1em','height':_0x30c379(0x23c)},'children':[{'tag':'path','attrs':{'fill':_0x30c379(0x26f),'d':_0x30c379(0x334),'fillRule':'evenodd','clipRule':_0x30c379(0x1fc)}}]},_0xbc09fe=_0x3bb5c1[_0x30c379(0x1e4)](function(_0x5f13c4,_0x412e19){const _0x2d6b2b=_0x30c379;return _0x3bb5c1[_0x2d6b2b(0x211)](_0x3decbc,Object[_0x2d6b2b(0x2e1)]({},_0x5f13c4,{'id':_0x2d6b2b(0x32e),'ref':_0x412e19,'icon':_0x24ee46}));});_0xbc09fe['displayName']=_0x30c379(0x248);const _0x3a0635={'tag':'svg','attrs':{'xmlns':_0x30c379(0x266),'fill':_0x30c379(0x338),'viewBox':_0x30c379(0x272),'width':_0x30c379(0x23c),'height':_0x30c379(0x23c)},'children':[{'tag':_0x30c379(0x240),'attrs':{'fill':_0x30c379(0x26f),'d':_0x30c379(0x233)}}]},_0x34e770=_0x3bb5c1['forwardRef'](function(_0x15add7,_0x285bd8){const _0x34ce5c=_0x30c379;return _0x3bb5c1[_0x34ce5c(0x211)](_0x3decbc,Object['assign']({},_0x15add7,{'id':_0x34ce5c(0x32f),'ref':_0x285bd8,'icon':_0x3a0635}));});_0x34e770[_0x30c379(0x1ca)]=_0x30c379(0x2ea);const _0x5bda68={'tag':_0x30c379(0x2b9),'attrs':{'xmlns':_0x30c379(0x266),'fill':_0x30c379(0x338),'viewBox':_0x30c379(0x272),'width':_0x30c379(0x23c),'height':_0x30c379(0x23c)},'children':[{'tag':_0x30c379(0x240),'attrs':{'fill':_0x30c379(0x26f),'d':_0x30c379(0x1b1)}},{'tag':_0x30c379(0x240),'attrs':{'fill':_0x30c379(0x26f),'d':'M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z'}},{'tag':_0x30c379(0x240),'attrs':{'fill':_0x30c379(0x26f),'d':_0x30c379(0x201),'fillRule':_0x30c379(0x1fc),'clipRule':'evenodd'}}]},_0x4968b8=_0x3bb5c1[_0x30c379(0x1e4)](function(_0x32f09d,_0x1ce71a){const _0xa2eb1c=_0x30c379;return _0x3bb5c1[_0xa2eb1c(0x211)](_0x3decbc,Object[_0xa2eb1c(0x2e1)]({},_0x32f09d,{'id':'help-icon','ref':_0x1ce71a,'icon':_0x5bda68}));});_0x4968b8['displayName']=_0x30c379(0x1f0);const _0x5d0703={'tag':_0x30c379(0x2b9),'attrs':{'xmlns':_0x30c379(0x266),'fill':'none','viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x30c379(0x23c)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x30c379(0x240),'attrs':{'stroke':'currentColor','d':_0x30c379(0x26a),'strokeLinecap':_0x30c379(0x2a1),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x30c379(0x210),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x30c379(0x1a1)}}]}]}],'defIds':[_0x30c379(0x22e)]},_0x331947=_0x3bb5c1[_0x30c379(0x1e4)](function(_0x1578df,_0x2a12ef){const _0x356c58=_0x30c379;return _0x3bb5c1[_0x356c58(0x211)](_0x3decbc,Object[_0x356c58(0x2e1)]({},_0x1578df,{'id':'off-line-icon','ref':_0x2a12ef,'icon':_0x5d0703}));});_0x331947[_0x30c379(0x1ca)]=_0x30c379(0x277);const _0x414dd5={'tag':_0x30c379(0x2b9),'attrs':{'xmlns':_0x30c379(0x266),'fill':_0x30c379(0x338),'viewBox':_0x30c379(0x29b),'width':_0x30c379(0x23c),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x30c379(0x280)},'children':[{'tag':_0x30c379(0x240),'attrs':{'stroke':'currentColor','d':_0x30c379(0x1d3),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x30c379(0x292),'attrs':{},'children':[{'tag':_0x30c379(0x210),'attrs':{'id':_0x30c379(0x230)},'children':[{'tag':_0x30c379(0x240),'attrs':{'fill':_0x30c379(0x1c9),'d':_0x30c379(0x1a1),'transform':_0x30c379(0x30b)}}]}]}],'defIds':[_0x30c379(0x230)]},_0x126149=_0x3bb5c1[_0x30c379(0x1e4)](function(_0x229058,_0x4488e9){const _0x89d937=_0x30c379;return _0x3bb5c1[_0x89d937(0x211)](_0x3decbc,Object[_0x89d937(0x2e1)]({},_0x229058,{'id':_0x89d937(0x20d),'ref':_0x4488e9,'icon':_0x414dd5}));});_0x126149[_0x30c379(0x1ca)]=_0x30c379(0x1ea);function _0x863e4f(_0x528396){const _0xcc9dc=_0x30c379;var _0x28a0c1,_0x28ebc5;const {mcpCoreConfig:_0x5750cd,onSave:_0x3dee85,loading:_0x316ac6=!0x1,config:_0x2b4156,connectionStatus$:_0x3eeee6,connectionError$:_0x4bc463,currentApiKey$:_0x4dc38b,currentSessionId$:_0x4f7c8a}=_0x528396,_0x4ebeda=_0x193043['useDependency'](_0x59774c[_0xcc9dc(0x23a)]),_0x46141=_0x193043[_0xcc9dc(0x2f5)](_0x3eeee6,_0x526990['MCPConnectionStatus'][_0xcc9dc(0x1c3)]),_0x18ee03=_0x193043['useObservable'](_0x4bc463,_0x526990[_0xcc9dc(0x1be)]['NONE']),_0x5c62fc=_0x193043[_0xcc9dc(0x2f5)](_0x4f7c8a,''),_0x2da515=_0x193043[_0xcc9dc(0x2f5)](_0x4dc38b,''),[_0x94055e,_0xfa2737]=_0x3bb5c1[_0xcc9dc(0x32d)](_0x2da515||''),_0x2ad1fb=!0x0,_0x4fd13b=_0x2b4156[_0xcc9dc(0x31b)]&&_0x5750cd['mcpServerUrl']&&(_0x5750cd[_0xcc9dc(0x325)]['includes'](_0xcc9dc(0x24e))||_0x5750cd[_0xcc9dc(0x325)][_0xcc9dc(0x337)]('univer.ai')),_0x39c080=(_0x28a0c1=_0x5750cd[_0xcc9dc(0x325)])==null?void 0x0:_0x28a0c1[_0xcc9dc(0x337)](_0xcc9dc(0x24e)),_0xd95988=(_0x28ebc5=_0x5750cd[_0xcc9dc(0x325)])==null?void 0x0:_0x28ebc5[_0xcc9dc(0x337)](_0xcc9dc(0x2c3)),_0x3dc11c=_0x39c080?_0xcc9dc(0x1fb):_0xcc9dc(0x226),_0x48b975=_0x2b4156[_0xcc9dc(0x31b)]&&(_0x39c080||_0xd95988),[_0x1f4d4d,_0x59448d]=_0x3bb5c1['useState'](!_0x94055e[_0xcc9dc(0x1d7)]()),_0x2549d0=(_0x152894,_0x253cb9)=>{const _0x55db84=_0xcc9dc;if(_0x253cb9===_0x526990[_0x55db84(0x1be)][_0x55db84(0x26b)])return _0x55db84(0x229);switch(_0x152894){case _0x526990[_0x55db84(0x28b)][_0x55db84(0x32a)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x526990[_0x55db84(0x28b)][_0x55db84(0x1a3)]:case _0x526990[_0x55db84(0x28b)][_0x55db84(0x2e9)]:return _0x55db84(0x21d);case _0x526990[_0x55db84(0x28b)][_0x55db84(0x20f)]:return _0x55db84(0x229);default:return _0x55db84(0x1eb);}},_0x23748=(_0x330f1e,_0x84f7f3)=>{const _0x50d718=_0xcc9dc;if(_0x84f7f3===_0x526990[_0x50d718(0x1be)][_0x50d718(0x26b)])return _0x50d718(0x27e);switch(_0x330f1e){case _0x526990['MCPConnectionStatus']['CONNECTED']:return'univer-bg-green-500';case _0x526990[_0x50d718(0x28b)][_0x50d718(0x1a3)]:case _0x526990[_0x50d718(0x28b)][_0x50d718(0x2e9)]:return _0x50d718(0x326);case _0x526990[_0x50d718(0x28b)]['FAILED']:return _0x50d718(0x27e);default:return _0x50d718(0x251);}},_0x4b410f=_0x1fd530=>{const _0x38d8a2=_0xcc9dc;switch(_0x1fd530){case _0x526990['MCPConnectionStatus'][_0x38d8a2(0x32a)]:return _0x4ebeda['t']('mcpConfig.connectionStatus.connected');case _0x526990['MCPConnectionStatus']['CONNECTING']:return _0x4ebeda['t'](_0x38d8a2(0x262));case _0x526990[_0x38d8a2(0x28b)][_0x38d8a2(0x20f)]:return _0x4ebeda['t'](_0x38d8a2(0x22d));case _0x526990[_0x38d8a2(0x28b)]['RETRYING']:return _0x4ebeda['t'](_0x38d8a2(0x26e));default:return _0x4ebeda['t'](_0x38d8a2(0x317));}},_0x47b48a=_0x5c4475=>{const _0x289a15=_0xcc9dc;switch(_0x5c4475){case _0x526990['MCPConnectionError'][_0x289a15(0x26b)]:return _0x4ebeda['t'](_0x289a15(0x19e));case _0x526990[_0x289a15(0x1be)][_0x289a15(0x2c0)]:return _0x4ebeda['t']('mcpConfig.connectionError.sessionOccupied');case _0x526990['MCPConnectionError']['NETWORK_ERROR']:return _0x4ebeda['t'](_0x289a15(0x2bf));case _0x526990[_0x289a15(0x1be)][_0x289a15(0x231)]:return _0x4ebeda['t'](_0x289a15(0x253));default:return'';}},_0x2cfdd3=_0x3bb5c1[_0xcc9dc(0x323)](()=>{const _0x28bfda={..._0x5750cd,'apiKey':_0x94055e['trim'](),'enableAuth':_0x2ad1fb};_0x3dee85(_0x28bfda);},[_0x5750cd,_0x94055e,_0x2ad1fb,_0x3dee85]),_0x472de6=_0x94055e['trim']()[_0xcc9dc(0x297)]>0x0;return _0x3caf40[_0xcc9dc(0x30a)](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x2cf),'children':[_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x1ef),'children':_0x3caf40['jsxs'](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x2b0),'children':[_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x2d3),'children':_0x3caf40['jsx'](_0xcc9dc(0x2b6),{'className':_0xcc9dc(0x2db),'children':'⚙'})}),_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2e4),{'children':_0x3caf40[_0xcc9dc(0x1b9)]('p',{'className':_0xcc9dc(0x25d),'children':_0x4ebeda['t']('mcpConfig.description')})})]})}),_0x3caf40[_0xcc9dc(0x30a)](_0xcc9dc(0x2e4),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2e4),{'className':_0x19ed03[_0xcc9dc(0x2aa)]('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x2549d0(_0x46141,_0x18ee03)),'children':_0x3caf40[_0xcc9dc(0x30a)](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x223),'children':[_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2e4),{'className':_0x19ed03['clsx'](_0xcc9dc(0x318),_0x23748(_0x46141,_0x18ee03))}),_0x3caf40['jsx'](_0xcc9dc(0x2b6),{'className':_0xcc9dc(0x218),'children':_0x4b410f(_0x46141)})]})}),_0x18ee03!==_0x526990[_0xcc9dc(0x1be)][_0xcc9dc(0x2c5)]&&(_0x46141===_0x526990[_0xcc9dc(0x28b)][_0xcc9dc(0x20f)]||_0x18ee03===_0x526990['MCPConnectionError'][_0xcc9dc(0x26b)])&&_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2e4),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x3caf40[_0xcc9dc(0x30a)]('div',{'className':_0xcc9dc(0x1d5),'children':[_0x3caf40['jsx'](_0xcc9dc(0x2b6),{'className':_0xcc9dc(0x23d),'children':'⚠️'}),_0x3caf40[_0xcc9dc(0x1b9)]('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x47b48a(_0x18ee03)})]})})]}),_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x2e6),'children':_0x3caf40[_0xcc9dc(0x30a)](_0xcc9dc(0x2e4),{'className':'univer-space-y-5','children':[_0x3caf40['jsxs']('div',{'className':_0xcc9dc(0x25f),'children':[_0x3caf40[_0xcc9dc(0x30a)](_0xcc9dc(0x2e3),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2b6),{'children':'🔑'}),'\x20',_0x4ebeda['t'](_0xcc9dc(0x31f)),_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2b6),{'className':_0xcc9dc(0x2f6),'children':'*'}),_0x4fd13b&&_0x3caf40[_0xcc9dc(0x1b9)]('a',{'className':'univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x4ebeda['t']('mcpConfig.apiApplyInfo.title'),'role':_0xcc9dc(0x20e),'onClick':()=>_0x59448d(!0x0),'children':_0x3caf40[_0xcc9dc(0x1b9)](_0x4968b8,{})})]}),_0x3caf40['jsx'](_0x19ed03[_0xcc9dc(0x286)],{'type':_0xcc9dc(0x2d4),'placeholder':_0x4ebeda['t'](_0xcc9dc(0x2b4)),'value':_0x94055e,'disabled':_0x316ac6,'autoComplete':_0xcc9dc(0x1f3),'onChange':_0xfa2737}),_0x3caf40[_0xcc9dc(0x1b9)]('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x4ebeda['t'](_0xcc9dc(0x1d9))})]}),_0x4fd13b&&_0x1f4d4d&&_0x3caf40[_0xcc9dc(0x30a)](_0xcc9dc(0x2e4),{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[_0x3caf40[_0xcc9dc(0x1b9)]('a',{'className':'univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','role':_0xcc9dc(0x20e),'onClick':()=>_0x59448d(!0x1),'children':_0x3caf40['jsx'](_0x34e770,{'className':'univer-size-4'})}),_0x3caf40[_0xcc9dc(0x30a)](_0xcc9dc(0x2e4),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2e4),{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':_0x3caf40['jsx']('span',{'className':_0xcc9dc(0x282),'children':'🚀'})}),_0x3caf40[_0xcc9dc(0x30a)](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x281),'children':[_0x3caf40['jsx']('h4',{'className':_0xcc9dc(0x2cc),'children':_0x4ebeda['t']('mcpConfig.apiApplyInfo.title')}),_0x3caf40['jsx']('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x4ebeda['t']('mcpConfig.apiApplyInfo.description')}),_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x241),'children':_0x48b975&&_0x3caf40[_0xcc9dc(0x30a)]('a',{'className':_0xcc9dc(0x2da),'href':_0x3dc11c,'target':_0xcc9dc(0x30d),'rel':_0xcc9dc(0x1dd),'children':[_0x3caf40[_0xcc9dc(0x1b9)]('span',{'children':'🤖'}),_0x4ebeda['t'](_0xcc9dc(0x1b7)),_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2b6),{'className':_0xcc9dc(0x1c5),'children':'↗'})]})}),_0x3caf40[_0xcc9dc(0x30a)](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x2ec),'children':['✨','\x20',_0x4ebeda['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x2b4156[_0xcc9dc(0x31b)]&&_0x3caf40['jsxs'](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x2c2),'children':[_0x3caf40[_0xcc9dc(0x30a)]('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x3caf40['jsx'](_0xcc9dc(0x2b6),{'children':'🔗'}),'\x20',_0x4ebeda['t'](_0xcc9dc(0x316))]}),_0x3caf40[_0xcc9dc(0x30a)](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x1a5),'children':[_0x3caf40[_0xcc9dc(0x30a)](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x203),'children':[_0x3caf40['jsx']('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x4ebeda['t'](_0xcc9dc(0x2a0))}),_0x3caf40[_0xcc9dc(0x30a)]('div',{'className':_0xcc9dc(0x25f),'children':[_0x3caf40[_0xcc9dc(0x1b9)]('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x4ebeda['t']('mcpConfig.configStepTitle')}),_0x3caf40[_0xcc9dc(0x30a)](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x2b3),'children':[_0x3caf40[_0xcc9dc(0x30a)](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x223),'children':[_0x3caf40[_0xcc9dc(0x1b9)]('span',{'className':_0xcc9dc(0x1c4),'children':'1'}),_0x4ebeda['t'](_0xcc9dc(0x1ff))]}),_0x3caf40[_0xcc9dc(0x30a)](_0xcc9dc(0x2e4),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2b6),{'className':_0xcc9dc(0x1c4),'children':'2'}),_0x4ebeda['t'](_0xcc9dc(0x31c))]}),_0x3caf40[_0xcc9dc(0x30a)](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x223),'children':[_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2b6),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x4ebeda['t'](_0xcc9dc(0x29c))]})]})]})]}),_0x3caf40[_0xcc9dc(0x30a)]('div',{'className':_0xcc9dc(0x25f),'children':[_0x3caf40['jsx'](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x26d),'children':_0xcc9dc(0x23f)}),_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x321),'children':_0x3caf40['jsx'](_0xcc9dc(0x23e),{'className':_0xcc9dc(0x2e0),'children':JSON['stringify']({'mcpServers':{'univer':{'url':_0xcc9dc(0x288)+(_0x5c62fc||_0xcc9dc(0x25b)),'type':_0xcc9dc(0x1fa),'headers':{'Authorization':_0xcc9dc(0x1dc)+(_0x94055e||_0xcc9dc(0x273))}}}},null,0x2)})})]}),_0x3caf40[_0xcc9dc(0x30a)](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x203),'children':[_0x3caf40[_0xcc9dc(0x1b9)]('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x4ebeda['t'](_0xcc9dc(0x20a))}),_0x3caf40[_0xcc9dc(0x30a)](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x25f),'children':[_0x3caf40['jsxs'](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x1b8),'children':[_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2e4),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x3caf40['jsxs'](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x2be),'children':[_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2e4),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0xcc9dc(0x1bc)}),_0x3caf40[_0xcc9dc(0x1b9)]('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x4ebeda['t']('mcpConfig.sessionIdDescription')})]})]}),_0x3caf40[_0xcc9dc(0x30a)]('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x279)}),_0x3caf40['jsxs']('div',{'className':_0xcc9dc(0x2be),'children':[_0x3caf40['jsx'](_0xcc9dc(0x2e4),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0xcc9dc(0x2fb)}),_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x29f),'children':_0x4ebeda['t'](_0xcc9dc(0x1da))})]})]})]})]})]})]}),_0x3caf40[_0xcc9dc(0x1b9)](_0x19ed03[_0xcc9dc(0x2fc)],{'onClick':_0x2cfdd3,'disabled':!_0x472de6||_0x316ac6,'className':_0xcc9dc(0x1a9),'children':_0x316ac6?_0x3caf40[_0xcc9dc(0x30a)](_0xcc9dc(0x2b6),{'className':_0xcc9dc(0x223),'children':[_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2b6),{'children':'⟲'}),_0x4ebeda['t'](_0xcc9dc(0x298))]}):_0x3caf40['jsxs'](_0xcc9dc(0x2b6),{'className':_0xcc9dc(0x223),'children':[_0x3caf40['jsx'](_0xbc09fe,{}),_0x4ebeda['t'](_0xcc9dc(0x1ac))]})}),_0x3caf40['jsx'](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x28e),'children':_0x3caf40[_0xcc9dc(0x30a)](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x2a3),'children':[_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2b6),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x3caf40['jsxs'](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x1d2),'children':[_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2e4),{'className':'univer-font-medium','children':'Configuration\x20Notes:'}),_0x3caf40['jsxs'](_0xcc9dc(0x2e4),{'children':['•',_0x4ebeda['t'](_0xcc9dc(0x261))]}),_0x3caf40['jsxs'](_0xcc9dc(0x2e4),{'children':['•',_0x4ebeda['t'](_0xcc9dc(0x333))]})]})]})})]})})]});}const _0x4f5e71=_0x30c379(0x309),_0x5f500c={'showDeveloperTools':!0x1,'showStatus':!0x0};var _0x267a69=Object[_0x30c379(0x24f)],_0x2fb0cb=(_0x16b616,_0x1f6abf,_0x28751e,_0x1fafd4)=>{for(var _0x2dee00=_0x1fafd4>0x1?void 0x0:_0x1fafd4?_0x267a69(_0x1f6abf,_0x28751e):_0x1f6abf,_0x4e85b1=_0x16b616['length']-0x1,_0x4416d2;_0x4e85b1>=0x0;_0x4e85b1--)(_0x4416d2=_0x16b616[_0x4e85b1])&&(_0x2dee00=_0x4416d2(_0x2dee00)||_0x2dee00);return _0x2dee00;},_0x5d600f=(_0x50bbe1,_0x3f4c04)=>(_0x51a013,_0x117075)=>_0x3f4c04(_0x51a013,_0x117075,_0x50bbe1);const _0x2c54f9=_0x30c379(0x1ee),_0x36681f=_0x30c379(0x228);_0x1764fb[_0x30c379(0x2c9)]=class extends _0x59774c[_0x30c379(0x1b0)]{constructor(_0x47721d,_0x3599c2,_0x1d38f3,_0x1df3bb,_0x52029a,_0x3180d6,_0x3205dc,_0x39a1b2,_0x24af68,_0x188f76){const _0x18b98b=_0x30c379;super(),_0x1c3207(this,'_loading$',new _0x3a8d92[(_0x18b98b(0x239))](!0x1)),_0x1c3207(this,_0x18b98b(0x21e),new _0x3a8d92[(_0x18b98b(0x239))]({})),_0x1c3207(this,_0x18b98b(0x2cb),new _0x3a8d92[(_0x18b98b(0x239))]({})),_0x1c3207(this,_0x18b98b(0x21f),new _0x3a8d92['BehaviorSubject']('')),_0x1c3207(this,'_handleConfigSave',async _0x35494a=>{const _0x3103cd=_0x18b98b;var _0x1a1684,_0xff236b;this[_0x3103cd(0x2de)][_0x3103cd(0x2fe)](!0x0);try{const _0x57bdce=await this[_0x3103cd(0x245)](_0x35494a);if(!_0x57bdce[_0x3103cd(0x2f1)]){this[_0x3103cd(0x339)][_0x3103cd(0x1b2)]({'type':_0x19ed03[_0x3103cd(0x2f7)][_0x3103cd(0x222)],'content':_0x57bdce[_0x3103cd(0x2a6)]||this[_0x3103cd(0x242)]['t'](_0x3103cd(0x1b4))});return;}_0x35494a[_0x3103cd(0x324)]?await this[_0x3103cd(0x24d)][_0x3103cd(0x315)](_0x2c54f9,_0x35494a[_0x3103cd(0x324)]['trim']()):await this[_0x3103cd(0x24d)][_0x3103cd(0x2a9)](_0x2c54f9),this['_apiKey$'][_0x3103cd(0x2fe)](((_0x1a1684=_0x35494a[_0x3103cd(0x324)])==null?void 0x0:_0x1a1684[_0x3103cd(0x1d7)]())||''),this[_0x3103cd(0x1b6)][_0x3103cd(0x314)]({'Authorization':_0x3103cd(0x1dc)+((_0xff236b=_0x35494a[_0x3103cd(0x324)])==null?void 0x0:_0xff236b[_0x3103cd(0x1d7)]())}),this[_0x3103cd(0x339)][_0x3103cd(0x1b2)]({'type':_0x19ed03['MessageType'][_0x3103cd(0x328)],'content':this[_0x3103cd(0x242)]['t'](_0x3103cd(0x256))}),setTimeout(()=>{const _0x381c0f=_0x3103cd;this[_0x381c0f(0x2a7)][_0x381c0f(0x311)](_0x36681f);},0x320);}catch(_0x1c3442){this[_0x3103cd(0x296)][_0x3103cd(0x31d)](_0x3103cd(0x224),_0x1c3442),this['_messageService'][_0x3103cd(0x1b2)]({'type':_0x19ed03[_0x3103cd(0x2f7)][_0x3103cd(0x222)],'content':this[_0x3103cd(0x242)]['t'](_0x3103cd(0x20b))});}finally{this[_0x3103cd(0x2de)][_0x3103cd(0x2fe)](!0x1);}}),(this[_0x18b98b(0x329)]=_0x47721d,this[_0x18b98b(0x30e)]=_0x3599c2,this[_0x18b98b(0x331)]=_0x1d38f3,this[_0x18b98b(0x24d)]=_0x1df3bb,this[_0x18b98b(0x2a7)]=_0x52029a,this[_0x18b98b(0x339)]=_0x3180d6,this['_componentManager']=_0x3205dc,this[_0x18b98b(0x242)]=_0x39a1b2,this[_0x18b98b(0x296)]=_0x24af68,this[_0x18b98b(0x1b6)]=_0x188f76,this[_0x18b98b(0x335)](),this[_0x18b98b(0x2cd)](),this[_0x18b98b(0x30c)]());}[_0x30c379(0x238)](){const _0x24b03c=_0x30c379,_0x1bc371=this[_0x24b03c(0x331)][_0x24b03c(0x2ee)](_0x4f5e71);_0x1bc371!=null&&_0x1bc371[_0x24b03c(0x31b)]&&this['_dialogService'][_0x24b03c(0x219)]({'id':_0x36681f,'title':{'title':this[_0x24b03c(0x242)]['t'](_0x24b03c(0x275))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x27d2c9=_0x24b03c;this[_0x27d2c9(0x2a7)]['close'](_0x36681f);}});}[_0x30c379(0x215)](){return this['_mcpCoreConfig$']['value'];}[_0x30c379(0x30c)](){const _0x1cf5f4=_0x30c379;this['disposeWithMe'](this[_0x1cf5f4(0x1db)][_0x1cf5f4(0x308)](_0x1cf5f4(0x214),this['_createConfigPanelComponent']()));}[_0x30c379(0x1e3)](){const _0x21d8ac=_0x30c379;return _0x193043[_0x21d8ac(0x1e8)](()=>{const _0x5df8be=_0x21d8ac;var _0x1a363c,_0x26b0eb,_0x1f937c;return _0x3caf40[_0x5df8be(0x1b9)](_0x863e4f,{'config':this[_0x5df8be(0x2cb)]['value'],'mcpCoreConfig':this[_0x5df8be(0x21e)][_0x5df8be(0x2d8)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x5df8be(0x28c)],'loading':this[_0x5df8be(0x2de)][_0x5df8be(0x2d8)],'connectionStatus$':(_0x1a363c=this[_0x5df8be(0x1b6)])==null?void 0x0:_0x1a363c[_0x5df8be(0x212)],'connectionError$':(_0x26b0eb=this[_0x5df8be(0x1b6)])==null?void 0x0:_0x26b0eb[_0x5df8be(0x1ec)],'currentSessionId$':(_0x1f937c=this[_0x5df8be(0x1b6)])==null?void 0x0:_0x1f937c[_0x5df8be(0x1ce)]});},this[_0x21d8ac(0x329)]);}[_0x30c379(0x335)](){const _0x5a605a=_0x30c379;this['disposeWithMe'](this['_configService'][_0x5a605a(0x1cc)](_0x526990[_0x5a605a(0x1e7)])[_0x5a605a(0x27f)](_0x465b12=>{const _0x154b5a=_0x5a605a;this[_0x154b5a(0x21e)][_0x154b5a(0x2fe)](_0x465b12||{});}));const _0x5353c6=this[_0x5a605a(0x331)][_0x5a605a(0x2ee)](_0x526990[_0x5a605a(0x1e7)]);this['_mcpCoreConfig$'][_0x5a605a(0x2fe)](_0x5353c6||{}),this[_0x5a605a(0x1e5)](this[_0x5a605a(0x331)][_0x5a605a(0x1cc)](_0x4f5e71)[_0x5a605a(0x27f)](_0x4779a5=>{this['_config$']['next'](_0x4779a5||{});}));const _0x4c17c9=this[_0x5a605a(0x331)]['getConfig'](_0x4f5e71);this[_0x5a605a(0x2cb)]['next'](_0x4c17c9||{});}async[_0x30c379(0x2cd)](){const _0x4f750d=_0x30c379,_0x5455b7=this[_0x4f750d(0x331)][_0x4f750d(0x2ee)](_0x4f5e71);if(!(_0x5455b7!=null&&_0x5455b7[_0x4f750d(0x31b)]))return;const _0x11e6d3=await this['_localStorageService'][_0x4f750d(0x217)](_0x2c54f9);_0x11e6d3&&(this[_0x4f750d(0x1b6)][_0x4f750d(0x314)]({'Authorization':_0x4f750d(0x1dc)+_0x11e6d3}),this['_apiKey$']['next'](_0x11e6d3));}async[_0x30c379(0x245)](_0x35707c){const _0x380443=_0x30c379;if(!_0x35707c[_0x380443(0x324)]||_0x35707c[_0x380443(0x324)][_0x380443(0x1d7)]()[_0x380443(0x297)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t']('mcpConfig.validation.apiKeyRequired')};if(_0x35707c['apiKey'][_0x380443(0x1d7)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x380443(0x242)]['t'](_0x380443(0x268))};try{const _0x5259ac=await this[_0x380443(0x329)][_0x380443(0x259)](_0x526990['MCPConnectionController'])[_0x380443(0x2d6)](_0x35707c['apiKey'][_0x380443(0x1d7)]());return _0x5259ac['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x5259ac[_0x380443(0x31d)]||this[_0x380443(0x242)]['t'](_0x380443(0x1e0))};}catch(_0x6e86dc){return console[_0x380443(0x27d)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x6e86dc),{'isValid':!0x0};}}},_0x1764fb[_0x30c379(0x2c9)]=_0x2fb0cb([_0x5d600f(0x0,_0x59774c[_0x30c379(0x2ef)](_0x59774c[_0x30c379(0x263)])),_0x5d600f(0x1,_0x193043['IUIPartsService']),_0x5d600f(0x2,_0x59774c[_0x30c379(0x30f)]),_0x5d600f(0x3,_0x59774c['ILocalStorageService']),_0x5d600f(0x4,_0x193043[_0x30c379(0x2d0)]),_0x5d600f(0x5,_0x193043[_0x30c379(0x2f8)]),_0x5d600f(0x6,_0x59774c[_0x30c379(0x2ef)](_0x193043[_0x30c379(0x200)])),_0x5d600f(0x7,_0x59774c[_0x30c379(0x2ef)](_0x59774c[_0x30c379(0x23a)])),_0x5d600f(0x8,_0x59774c[_0x30c379(0x2b2)]),_0x5d600f(0x9,_0x59774c[_0x30c379(0x2ef)](_0x526990[_0x30c379(0x31a)]))],_0x1764fb[_0x30c379(0x2c9)]);const _0x25084e={'id':_0x30c379(0x22a),'type':_0x59774c[_0x30c379(0x207)][_0x30c379(0x255)],'handler':async(_0x235285,_0x57327b)=>(_0x235285['get'](_0x1764fb['MCPConfigUIController'])[_0x30c379(0x238)](),!0x0)};function _0x562c11(_0x3c40ec,_0x4a5919){const _0x3ac224=_0x30c379;switch(_0x3c40ec){case _0x526990['MCPConnectionStatus'][_0x3ac224(0x1c3)]:return _0x3ac224(0x22b);case _0x526990[_0x3ac224(0x28b)]['CONNECTING']:return _0x3ac224(0x301);case _0x526990[_0x3ac224(0x28b)][_0x3ac224(0x32a)]:return _0x3ac224(0x2ae);case _0x526990[_0x3ac224(0x28b)][_0x3ac224(0x20f)]:switch(_0x4a5919){case _0x526990[_0x3ac224(0x1be)]['UNAUTHORIZED']:return _0x3ac224(0x1d0);case _0x526990['MCPConnectionError'][_0x3ac224(0x2c0)]:return _0x3ac224(0x2f4);case _0x526990[_0x3ac224(0x1be)][_0x3ac224(0x1d8)]:return _0x3ac224(0x1e6);case _0x526990['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return _0x3ac224(0x283);default:return _0x3ac224(0x1a6);}case _0x526990[_0x3ac224(0x28b)][_0x3ac224(0x2e9)]:return'mcpStatus.retrying';default:return _0x3ac224(0x336);}}function _0x2ccf39(_0x10160a,_0x1c9281,_0x58feb8,_0x15a08d=!0x0){const _0x3f2235=_0x30c379,_0x57bc6b=_0x562c11(_0x10160a,_0x1c9281),_0x509646=_0x58feb8['t'](_0x57bc6b);return _0x15a08d?_0x10160a===_0x526990['MCPConnectionStatus'][_0x3f2235(0x1c3)]&&_0x1c9281===_0x526990[_0x3f2235(0x1be)]['UNAUTHORIZED']?_0x509646+_0x3f2235(0x1a0)+_0x58feb8['t'](_0x3f2235(0x264)):_0x10160a===_0x526990[_0x3f2235(0x28b)][_0x3f2235(0x32a)]?''+_0x509646:_0x10160a===_0x526990[_0x3f2235(0x28b)][_0x3f2235(0x1c3)]||_0x10160a===_0x526990[_0x3f2235(0x28b)][_0x3f2235(0x20f)]?_0x509646+'\x20-\x20'+_0x58feb8['t'](_0x3f2235(0x19b)):_0x509646:_0x509646;}function _0x155048(_0x558535){const _0x918744=_0x30c379;switch(_0x558535){case _0x526990[_0x918744(0x28b)]['CONNECTED']:return _0x918744(0x295);case _0x526990[_0x918744(0x28b)][_0x918744(0x1a3)]:case _0x526990[_0x918744(0x28b)]['RETRYING']:return _0x918744(0x1cf);case _0x526990['MCPConnectionStatus'][_0x918744(0x20f)]:case _0x526990[_0x918744(0x28b)][_0x918744(0x1c3)]:return _0x918744(0x2f6);default:return _0x918744(0x209);}}function _0x10cc74(_0x10fbe3){const _0x45a3e0=_0x30c379,{status$:_0x280159,error$:_0x3eba38,onConfigure:_0x5ac3cf,showClickable:_0x571b1d=!0x0}=_0x10fbe3,_0x49376b=_0x193043[_0x45a3e0(0x2f5)](_0x280159,_0x526990['MCPConnectionStatus']['DISCONNECTED']),_0xe4b9fc=_0x193043[_0x45a3e0(0x2f5)](_0x3eba38,_0x526990[_0x45a3e0(0x1be)]['NONE']),_0x276256=_0x193043[_0x45a3e0(0x252)](_0x59774c[_0x45a3e0(0x23a)]),_0x4b6676=_0x49376b===_0x526990[_0x45a3e0(0x28b)][_0x45a3e0(0x32a)];_0x49376b===_0x526990[_0x45a3e0(0x28b)][_0x45a3e0(0x1a3)]||_0x526990[_0x45a3e0(0x28b)][_0x45a3e0(0x2e9)];const _0x269279=_0x276256['t'](_0x562c11(_0x49376b,_0xe4b9fc)),_0x1385ad=_0x2ccf39(_0x49376b,_0xe4b9fc,_0x276256,_0x571b1d),_0x53231c=_0x155048(_0x49376b),_0x4bc1ee=_0x4b6676?_0x3caf40['jsx'](_0x126149,{}):_0x3caf40[_0x45a3e0(0x1b9)](_0x331947,{}),_0x156367=_0x3bb5c1['useCallback'](()=>{_0x571b1d&&_0x5ac3cf&&_0x5ac3cf();},[_0x571b1d,_0x5ac3cf]);function _0x3f58bb(){const _0x3be1f2=_0x45a3e0;return _0x3caf40['jsxs'](_0x3be1f2(0x2e4),{'className':_0x19ed03[_0x3be1f2(0x2aa)](_0x3be1f2(0x1de),_0x571b1d&&_0x5ac3cf&&_0x3be1f2(0x237)),'role':_0x3be1f2(0x20e),'onClick':_0x571b1d&&_0x5ac3cf?_0x156367:void 0x0,'children':[_0x3caf40['jsx'](_0x3be1f2(0x2e4),{'className':_0x19ed03['clsx']('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x53231c),'children':_0x4bc1ee}),_0x3caf40[_0x3be1f2(0x1b9)](_0x3be1f2(0x2e4),{'className':_0x3be1f2(0x19c),'children':_0x269279})]});}return _0x3caf40[_0x45a3e0(0x1b9)](_0x19ed03[_0x45a3e0(0x1aa)],{'title':_0x1385ad,'placement':_0x45a3e0(0x260),'children':_0x3f58bb()});}var _0x66525c=Object[_0x30c379(0x24f)],_0x2a1e49=(_0x27b088,_0x46ffca,_0x55b95d,_0x4fddd8)=>{for(var _0x4051db=_0x4fddd8>0x1?void 0x0:_0x4fddd8?_0x66525c(_0x46ffca,_0x55b95d):_0x46ffca,_0x471b71=_0x27b088['length']-0x1,_0x623b79;_0x471b71>=0x0;_0x471b71--)(_0x623b79=_0x27b088[_0x471b71])&&(_0x4051db=_0x623b79(_0x4051db)||_0x4051db);return _0x4051db;},_0x5a596e=(_0x590555,_0x32d0bb)=>(_0x3dea2e,_0x2fa3e4)=>_0x32d0bb(_0x3dea2e,_0x2fa3e4,_0x590555);_0x1764fb[_0x30c379(0x225)]=class extends _0x59774c['Disposable']{constructor(_0x595c9f,_0x24cc5e,_0x24c323,_0x53dc0b){const _0x40c86c=_0x30c379;super(),this['_injector']=_0x595c9f,this[_0x40c86c(0x21a)]=_0x24cc5e,this['_uiPartsService']=_0x24c323,this[_0x40c86c(0x331)]=_0x53dc0b,this['_initAutoConnect'](),this[_0x40c86c(0x25c)]();}[_0x30c379(0x1a7)](){const _0x254453=_0x30c379,_0x163c27=this[_0x254453(0x331)][_0x254453(0x2ee)](_0x4f5e71);_0x163c27!=null&&_0x163c27[_0x254453(0x31b)]&&(this[_0x254453(0x21a)]['enableAutoConnect']=!0x1);}[_0x30c379(0x25c)](){const _0x3822a5=_0x30c379,_0x1205ca=this[_0x3822a5(0x331)][_0x3822a5(0x2ee)](_0x4f5e71);(_0x1205ca==null?void 0x0:_0x1205ca[_0x3822a5(0x1fe)])!==!0x1&&this[_0x3822a5(0x1e5)](this[_0x3822a5(0x30e)]['registerComponent'](_0x193043[_0x3822a5(0x2ab)][_0x3822a5(0x1a2)],()=>{const _0x448bf2=_0x3822a5;var _0x21fc92;return _0x193043[_0x448bf2(0x1e8)](_0x129028({'status$':this[_0x448bf2(0x21a)]['connectionStatus$'],'error$':this['_connectionController'][_0x448bf2(0x1ec)],'onConfigure':()=>this[_0x448bf2(0x216)](),'showClickable':(_0x21fc92=_0x1205ca==null?void 0x0:_0x1205ca['showDeveloperTools'])!=null?_0x21fc92:!0x1}),this[_0x448bf2(0x329)]);}));}[_0x30c379(0x216)](){const _0x12709f=_0x30c379;this[_0x12709f(0x329)][_0x12709f(0x259)](_0x1764fb[_0x12709f(0x2c9)])['showConfigPanel']();}},_0x1764fb[_0x30c379(0x225)]=_0x2a1e49([_0x5a596e(0x0,_0x59774c[_0x30c379(0x2ef)](_0x59774c['Injector'])),_0x5a596e(0x1,_0x59774c[_0x30c379(0x2ef)](_0x526990[_0x30c379(0x31a)])),_0x5a596e(0x2,_0x193043['IUIPartsService']),_0x5a596e(0x3,_0x59774c['IConfigService'])],_0x1764fb[_0x30c379(0x225)]);function _0x129028(_0x20edf5){const {status$:_0x2f2839,error$:_0x99d141,onConfigure:_0xeb5010,showClickable:_0x53e8cb}=_0x20edf5;return function(){const _0x64dabb=_0x41a7;return _0x3caf40[_0x64dabb(0x1b9)](_0x10cc74,{'status$':_0x2f2839,'error$':_0x99d141,'onConfigure':_0xeb5010,'showClickable':_0x53e8cb});};}function _0x262afc(_0x6b951c){const _0x151592=_0x30c379;return{'id':_0x25084e['id'],'type':_0x193043[_0x151592(0x2fd)][_0x151592(0x2ed)],'icon':_0x151592(0x271),'title':_0x151592(0x275),'tooltip':_0x151592(0x275)};}const _0x53c060={[_0x193043[_0x30c379(0x1f5)]['OTHERS']]:{[_0x25084e['id']]:{'order':0xa,'menuItemFactory':_0x262afc}}};var _0x165863=Object['getOwnPropertyDescriptor'],_0x439259=(_0x45b03d,_0x1c869c,_0x58925c,_0x4c8bb1)=>{for(var _0x374fa4=_0x4c8bb1>0x1?void 0x0:_0x4c8bb1?_0x165863(_0x1c869c,_0x58925c):_0x1c869c,_0x53f6e6=_0x45b03d['length']-0x1,_0x2c44b5;_0x53f6e6>=0x0;_0x53f6e6--)(_0x2c44b5=_0x45b03d[_0x53f6e6])&&(_0x374fa4=_0x2c44b5(_0x374fa4)||_0x374fa4);return _0x374fa4;},_0x54736a=(_0x5b3b19,_0x2cae23)=>(_0xd8ca67,_0x3f33f1)=>_0x2cae23(_0xd8ca67,_0x3f33f1,_0x5b3b19);_0x1764fb[_0x30c379(0x28a)]=class extends _0x59774c[_0x30c379(0x1b0)]{constructor(_0x5ce68f,_0x213654){const _0x5528e2=_0x30c379;super(),this[_0x5528e2(0x278)]=_0x5ce68f,this[_0x5528e2(0x199)]=_0x213654,this[_0x5528e2(0x29d)](),this[_0x5528e2(0x303)]();}['_initializeCommands'](){[_0x25084e]['forEach'](_0x2d9479=>{const _0x2c04d1=_0x41a7;this[_0x2c04d1(0x1e5)](this[_0x2c04d1(0x278)][_0x2c04d1(0x304)](_0x2d9479));});}[_0x30c379(0x303)](){const _0x4da804=_0x30c379;this[_0x4da804(0x199)][_0x4da804(0x300)](_0x53c060);}},_0x1764fb[_0x30c379(0x28a)]=_0x439259([_0x54736a(0x0,_0x59774c[_0x30c379(0x29a)]),_0x54736a(0x1,_0x193043[_0x30c379(0x319)])],_0x1764fb['MCPUIMenuController']);const _0x4465fc={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x30c379(0x2b1),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x30c379(0x2c1),'unknown':_0x30c379(0x2ba),'unauthorized':_0x30c379(0x2dd),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x30c379(0x320),'maxRetriesExceeded':_0x30c379(0x1e1),'clickToConnect':_0x30c379(0x1ab),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x30c379(0x23f),'description':_0x30c379(0x236),'apiKey':_0x30c379(0x250),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x30c379(0x249),'enableAuth':_0x30c379(0x2b8),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x30c379(0x31e),'mcpClientConfig':_0x30c379(0x31e),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x30c379(0x302),'configStep3':_0x30c379(0x24b),'sessionId':_0x30c379(0x1df),'sessionIdDescription':_0x30c379(0x1bf),'authorizationDescription':_0x30c379(0x1ae),'configParameters':_0x30c379(0x1c0),'maxRetries':_0x30c379(0x267),'save':'Save\x20Configuration','saving':_0x30c379(0x327),'note1':_0x30c379(0x1af),'note2':_0x30c379(0x24a),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x30c379(0x27b),'apiApplyInfo':{'title':_0x30c379(0x234),'description':_0x30c379(0x2ad),'univerAiLabel':_0x30c379(0x205),'getStarted':_0x30c379(0x254)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x30c379(0x1ba),'invalidApiKey':_0x30c379(0x2d9)},'connectionStatus':{'disconnected':_0x30c379(0x310),'connecting':_0x30c379(0x247),'connected':_0x30c379(0x1c7),'failed':_0x30c379(0x2e8),'retrying':_0x30c379(0x1e2)},'connectionError':{'unauthorized':_0x30c379(0x1b3),'sessionOccupied':_0x30c379(0x1cb),'networkError':_0x30c379(0x2b7),'maxRetriesExceeded':_0x30c379(0x1cd)}}},_0x5c54b3={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':'MCP\x20连接中...','connected':_0x30c379(0x221),'failed':_0x30c379(0x227),'retrying':_0x30c379(0x289),'unknown':_0x30c379(0x27c),'unauthorized':_0x30c379(0x2a8),'sessionOccupied':_0x30c379(0x312),'networkError':_0x30c379(0x1f2),'maxRetriesExceeded':_0x30c379(0x2a2),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x30c379(0x284)},'mcpConfig':{'title':_0x30c379(0x19d),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x30c379(0x2f3),'apiKeyPlaceholder':_0x30c379(0x204),'apiKeyHint':_0x30c379(0x2bc),'enableAuth':_0x30c379(0x243),'enableAuthHint':_0x30c379(0x21c),'connectionInfo':_0x30c379(0x32c),'mcpClientConfig':_0x30c379(0x32c),'configInstructions':_0x30c379(0x206),'configStepTitle':_0x30c379(0x27a),'configStep1':_0x30c379(0x2af),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x30c379(0x2b5),'sessionId':_0x30c379(0x244),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x30c379(0x265),'configParameters':'配置参数:','maxRetries':'最大重试次数','save':_0x30c379(0x26c),'saving':'保存中...','note1':_0x30c379(0x1d6),'note2':_0x30c379(0x287),'configSaved':_0x30c379(0x2bb),'configError':_0x30c379(0x2d7),'apiApplyInfo':{'title':_0x30c379(0x1f9),'description':_0x30c379(0x213),'univerAiLabel':_0x30c379(0x1bb),'getStarted':_0x30c379(0x2fa)},'validation':{'apiKeyRequired':_0x30c379(0x235),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x30c379(0x29e),'invalidApiKey':_0x30c379(0x2f2)},'connectionStatus':{'disconnected':_0x30c379(0x25a),'connecting':_0x30c379(0x1d1),'connected':'已连接','failed':_0x30c379(0x2eb),'retrying':_0x30c379(0x23b)},'connectionError':{'unauthorized':_0x30c379(0x2e7),'sessionOccupied':_0x30c379(0x276),'networkError':_0x30c379(0x2df),'maxRetriesExceeded':_0x30c379(0x1c8)}}};var _0x3cb06c=Object[_0x30c379(0x2a4)],_0x184d46=Object['getOwnPropertyDescriptor'],_0x11b9d5=(_0x5cd947,_0x59a698,_0x2bf5d0)=>_0x59a698 in _0x5cd947?_0x3cb06c(_0x5cd947,_0x59a698,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2bf5d0}):_0x5cd947[_0x59a698]=_0x2bf5d0,_0x3fa9a2=(_0x4048e6,_0x264549,_0x32ea96,_0x146bed)=>{const _0x26a647=_0x30c379;for(var _0x3aee5d=_0x146bed>0x1?void 0x0:_0x146bed?_0x184d46(_0x264549,_0x32ea96):_0x264549,_0x187aa4=_0x4048e6[_0x26a647(0x297)]-0x1,_0x5e612a;_0x187aa4>=0x0;_0x187aa4--)(_0x5e612a=_0x4048e6[_0x187aa4])&&(_0x3aee5d=_0x5e612a(_0x3aee5d)||_0x3aee5d);return _0x3aee5d;},_0x17f5b7=(_0x2d875d,_0x51a577)=>(_0x40106d,_0x5abfb0)=>_0x51a577(_0x40106d,_0x5abfb0,_0x2d875d),_0x2ad66a=(_0x38b0db,_0x2a5f93,_0x5b6497)=>_0x11b9d5(_0x38b0db,_0x2a5f93+'',_0x5b6497);_0x1764fb[_0x30c379(0x307)]=class extends _0x59774c[_0x30c379(0x2d2)]{constructor(_0x226839=_0x5f500c,_0x1193a5,_0x5c2db4,_0x5258f6,_0x3727e7,_0x527032){const _0x463adf=_0x30c379;super(),this[_0x463adf(0x1d4)]=_0x226839,this[_0x463adf(0x329)]=_0x1193a5,this[_0x463adf(0x331)]=_0x5c2db4,this[_0x463adf(0x30e)]=_0x5258f6,this['_localStorageService']=_0x3727e7,this[_0x463adf(0x242)]=_0x527032;const {..._0x36978c}=_0x59774c[_0x463adf(0x1fd)]({},_0x5f500c,this[_0x463adf(0x1d4)]);this[_0x463adf(0x331)]['setConfig'](_0x4f5e71,_0x36978c);}async[_0x30c379(0x1b5)](){const _0x404353=_0x30c379,_0x39c2f4=[[_0x1764fb[_0x404353(0x225)]],[_0x1764fb[_0x404353(0x2c9)]],[_0x1764fb['MCPUIMenuController']]];this[_0x404353(0x329)][_0x404353(0x202)](_0x44f18e[_0x404353(0x2d1)])||_0x39c2f4[_0x404353(0x1c2)]([_0x44f18e[_0x404353(0x2d1)],{'useClass':_0x44f18e[_0x404353(0x1e9)]}]),_0x39c2f4[_0x404353(0x24c)](_0xa2fb4e=>this[_0x404353(0x329)][_0x404353(0x299)](_0xa2fb4e)),this[_0x404353(0x329)][_0x404353(0x259)](_0x1764fb[_0x404353(0x225)]),this[_0x404353(0x329)]['get'](_0x1764fb[_0x404353(0x2c9)]),this[_0x404353(0x329)]['get'](_0x1764fb[_0x404353(0x28a)]);}},_0x2ad66a(_0x1764fb[_0x30c379(0x307)],_0x30c379(0x1f7),_0x30c379(0x258)),_0x1764fb[_0x30c379(0x307)]=_0x3fa9a2([_0x59774c[_0x30c379(0x270)](_0x526990[_0x30c379(0x246)]),_0x17f5b7(0x1,_0x59774c['Inject'](_0x59774c[_0x30c379(0x263)])),_0x17f5b7(0x2,_0x59774c['IConfigService']),_0x17f5b7(0x3,_0x193043['IUIPartsService']),_0x17f5b7(0x4,_0x59774c[_0x30c379(0x2e2)]),_0x17f5b7(0x5,_0x59774c[_0x30c379(0x2ef)](_0x59774c[_0x30c379(0x23a)]))],_0x1764fb[_0x30c379(0x307)]),_0x1764fb[_0x30c379(0x214)]=_0x863e4f,_0x1764fb['MCPStatusDisplay']=_0x10cc74,_0x1764fb[_0x30c379(0x1a8)]=_0x25084e,_0x1764fb['enUS']=_0x4465fc,_0x1764fb[_0x30c379(0x19f)]=_0x5c54b3,Object['defineProperty'](_0x1764fb,Symbol[_0x30c379(0x291)],{'value':_0x30c379(0x306)});}));
|
package/lib/umd/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x6246(){var _0x20ae47=['Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Configuration','MCP:\x20Max\x20Retries\x20Exceeded','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configuration\x20saved\x20successfully','1374412UwFexR','exports','Max\x20Retries','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','2226JeOOJd','Saving...','3131997qoecNn','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Connection\x20Failed','Invalid\x20configuration','MCP:\x20Unauthorized','API\x20Key','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','12BvcSML','MCP\x20Client\x20Configuration','What\x20is\x20API\x20Key?','MCP\x20Retrying...','6140UdtJJP','Click\x20to\x20configure\x20MCP','Get\x20your\x20API\x20key\x20in\x20seconds','Connection\x20Failed','UniverProMcpUiCaES','Enable\x20authentication\x20for\x20secure\x20connections','Disconnected','MCP:\x20Network\x20Error','Retrying...','Failed\x20to\x20save\x20configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20Session\x20ID\x20Occupied','amd','176505mFsMzr','Enter\x20your\x20API\x20key','330GRwAAl','Click\x20to\x20connect\x20MCP','4144qPdGHt','1368XpXTBT','MCP\x20Disconnected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Unknown\x20Status','Univer\x20AI\x20Console','Connected','object','Configuration\x20Parameters:','2GjYwbd','685sOSALh','199790DeBhCK'];_0x6246=function(){return _0x20ae47;};return _0x6246();}function _0xc501(_0x1e9947,_0xff2358){var _0x6246c4=_0x6246();return _0xc501=function(_0xc501b6,_0xd209f6){_0xc501b6=_0xc501b6-0x136;var _0x566377=_0x6246c4[_0xc501b6];return _0x566377;},_0xc501(_0x1e9947,_0xff2358);}(function(_0x5dd379,_0x477edb){var _0x14e24d=_0xc501,_0xd881a3=_0x5dd379();while(!![]){try{var _0x54d502=-parseInt(_0x14e24d(0x14e))/0x1*(-parseInt(_0x14e24d(0x14c))/0x2)+parseInt(_0x14e24d(0x13f))/0x3+parseInt(_0x14e24d(0x155))/0x4+-parseInt(_0x14e24d(0x14d))/0x5*(parseInt(_0x14e24d(0x141))/0x6)+-parseInt(_0x14e24d(0x159))/0x7*(parseInt(_0x14e24d(0x143))/0x8)+parseInt(_0x14e24d(0x144))/0x9*(parseInt(_0x14e24d(0x166))/0xa)+-parseInt(_0x14e24d(0x15b))/0xb*(parseInt(_0x14e24d(0x162))/0xc);if(_0x54d502===_0x477edb)break;else _0xd881a3['push'](_0xd881a3['shift']());}catch(_0x51a49b){_0xd881a3['push'](_0xd881a3['shift']());}}}(_0x6246,0x3a3ea),function(_0x3c5d8e,_0x18f19){var _0x445b31=_0xc501;typeof exports==_0x445b31(0x14a)&&typeof module<'u'?module[_0x445b31(0x156)]=_0x18f19():typeof define=='function'&&define[_0x445b31(0x13e)]?define(_0x18f19):(_0x3c5d8e=typeof globalThis<'u'?globalThis:_0x3c5d8e||self,_0x3c5d8e[_0x445b31(0x136)]=_0x18f19());}(this,function(){'use strict';var _0x35cbe6=_0xc501;return{'mcpStatus':{'disconnected':_0x35cbe6(0x145),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x35cbe6(0x15d),'retrying':_0x35cbe6(0x165),'unknown':_0x35cbe6(0x147),'unauthorized':_0x35cbe6(0x15f),'sessionOccupied':_0x35cbe6(0x13d),'networkError':_0x35cbe6(0x139),'maxRetriesExceeded':_0x35cbe6(0x151),'clickToConnect':_0x35cbe6(0x142),'clickToConfigure':_0x35cbe6(0x167)},'mcpConfig':{'title':_0x35cbe6(0x150),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x35cbe6(0x160),'apiKeyPlaceholder':_0x35cbe6(0x140),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x35cbe6(0x137),'connectionInfo':_0x35cbe6(0x163),'mcpClientConfig':_0x35cbe6(0x163),'configInstructions':_0x35cbe6(0x13c),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x35cbe6(0x161),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x35cbe6(0x14b),'maxRetries':_0x35cbe6(0x157),'save':'Save\x20Configuration','saving':_0x35cbe6(0x15a),'note1':_0x35cbe6(0x14f),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x35cbe6(0x154),'configError':_0x35cbe6(0x13b),'apiApplyInfo':{'title':_0x35cbe6(0x164),'description':_0x35cbe6(0x153),'univerAiLabel':_0x35cbe6(0x148),'getStarted':_0x35cbe6(0x168)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x35cbe6(0x15e),'invalidApiKey':_0x35cbe6(0x15c)},'connectionStatus':{'disconnected':_0x35cbe6(0x138),'connecting':'Connecting...','connected':_0x35cbe6(0x149),'failed':_0x35cbe6(0x169),'retrying':_0x35cbe6(0x13a)},'connectionError':{'unauthorized':_0x35cbe6(0x152),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x35cbe6(0x158),'maxRetriesExceeded':_0x35cbe6(0x146)}}};}));
|