@univerjs-pro/mcp-ui 0.10.14-nightly.202511070640 → 0.10.14-nightly.202511070939
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/cjs/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x2eb4(){const _0x5f0f6e=['Save\x20Configuration','4SPbPuE','Enable\x20Authentication','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Client\x20Configuration','153473glaHFu','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Max\x20Retries\x20Exceeded','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','94934uKjVZh','Get\x20your\x20API\x20key\x20in\x20seconds','Click\x20to\x20connect\x20MCP','What\x20is\x20API\x20Key?','MCP\x20Configuration','Retrying...','Enable\x20authentication\x20for\x20secure\x20connections','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Disconnected','Copy\x20the\x20JSON\x20configuration\x20below','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Click\x20to\x20configure\x20MCP','5189492JvzSqF','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Retrying...','253104pyBYtX','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Enter\x20your\x20API\x20key','API\x20Key','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Saving...','MCP:\x20Session\x20ID\x20Occupied','Connection\x20Failed','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','229176jniIzW','Univer\x20AI\x20Console','Disconnected','Connecting...','Configuration\x20Steps:','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','8040xVQmfU','Configuration\x20saved\x20successfully','MCP\x20Connected','Invalid\x20configuration','API\x20key\x20is\x20required','6KvVsaW','9lDxlrz','MCP\x20Unknown\x20Status','Configuration\x20Parameters:','Connected','3321gAOyJt','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','1963175eyWGpL','exports','Failed\x20to\x20save\x20configuration'];_0x2eb4=function(){return _0x5f0f6e;};return _0x2eb4();}const _0x4c6542=_0x3ac4;(function(_0x1f4db6,_0x418ca9){const _0x227aa5=_0x3ac4,_0x15f695=_0x1f4db6();while(!![]){try{const _0x59c588=-parseInt(_0x227aa5(0xf8))/0x1*(parseInt(_0x227aa5(0xf4))/0x2)+-parseInt(_0x227aa5(0xea))/0x3*(-parseInt(_0x227aa5(0xde))/0x4)+-parseInt(_0x227aa5(0xf0))/0x5*(parseInt(_0x227aa5(0xe9))/0x6)+-parseInt(_0x227aa5(0xfd))/0x7+parseInt(_0x227aa5(0x10c))/0x8+parseInt(_0x227aa5(0xee))/0x9*(parseInt(_0x227aa5(0xe4))/0xa)+parseInt(_0x227aa5(0x109))/0xb;if(_0x59c588===_0x418ca9)break;else _0x15f695['push'](_0x15f695['shift']());}catch(_0x459229){_0x15f695['push'](_0x15f695['shift']());}}}(_0x2eb4,0x3f309));function _0x3ac4(_0x1f11fc,_0x1e7532){const _0x2eb4ed=_0x2eb4();return _0x3ac4=function(_0x3ac4f9,_0x384682){_0x3ac4f9=_0x3ac4f9-0xdd;let _0x775d3c=_0x2eb4ed[_0x3ac4f9];return _0x775d3c;},_0x3ac4(_0x1f11fc,_0x1e7532);}const e={'mcpStatus':{'disconnected':_0x4c6542(0x105),'connecting':'MCP\x20Connecting...','connected':_0x4c6542(0xe6),'failed':'MCP\x20Connection\x20Failed','retrying':_0x4c6542(0x10b),'unknown':_0x4c6542(0xeb),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x4c6542(0x112),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x4c6542(0xfb),'clickToConnect':_0x4c6542(0xff),'clickToConfigure':_0x4c6542(0x108)},'mcpConfig':{'title':_0x4c6542(0x101),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x4c6542(0x10f),'apiKeyPlaceholder':_0x4c6542(0x10e),'apiKeyHint':_0x4c6542(0xfa),'enableAuth':_0x4c6542(0xf5),'enableAuthHint':_0x4c6542(0x103),'connectionInfo':_0x4c6542(0xf7),'mcpClientConfig':_0x4c6542(0xf7),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x4c6542(0xe2),'configStep1':_0x4c6542(0x106),'configStep2':_0x4c6542(0xfc),'configStep3':_0x4c6542(0x110),'sessionId':'Session\x20ID','sessionIdDescription':_0x4c6542(0xf9),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x4c6542(0xec),'maxRetries':'Max\x20Retries','save':_0x4c6542(0xf3),'saving':_0x4c6542(0x111),'note1':_0x4c6542(0x10d),'note2':_0x4c6542(0xef),'configSaved':_0x4c6542(0xe5),'configError':_0x4c6542(0xf2),'apiApplyInfo':{'title':_0x4c6542(0x100),'description':_0x4c6542(0xe3),'univerAiLabel':_0x4c6542(0xdf),'getStarted':_0x4c6542(0xfe)},'validation':{'apiKeyRequired':_0x4c6542(0xe8),'apiKeyTooShort':_0x4c6542(0x10a),'invalidConfig':_0x4c6542(0xe7),'invalidApiKey':_0x4c6542(0xf6)},'connectionStatus':{'disconnected':_0x4c6542(0xe0),'connecting':_0x4c6542(0xe1),'connected':_0x4c6542(0xed),'failed':_0x4c6542(0x113),'retrying':_0x4c6542(0x102)},'connectionError':{'unauthorized':_0x4c6542(0x107),'sessionOccupied':_0x4c6542(0x104),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x4c6542(0xdd)}}},n=e;module[_0x4c6542(0xf1)]=n;
|
package/lib/cjs/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x4dd709=_0x31a4;(function(_0x3ce851,_0x1b40b4){const _0x312dd8=_0x31a4,_0x2a526c=_0x3ce851();while(!![]){try{const _0x13ffcb=-parseInt(_0x312dd8(0x9d))/0x1+parseInt(_0x312dd8(0x8f))/0x2+-parseInt(_0x312dd8(0xbe))/0x3*(parseInt(_0x312dd8(0xb6))/0x4)+-parseInt(_0x312dd8(0x9f))/0x5+-parseInt(_0x312dd8(0xaf))/0x6+-parseInt(_0x312dd8(0xb8))/0x7*(-parseInt(_0x312dd8(0xbc))/0x8)+parseInt(_0x312dd8(0x9b))/0x9*(parseInt(_0x312dd8(0x96))/0xa);if(_0x13ffcb===_0x1b40b4)break;else _0x2a526c['push'](_0x2a526c['shift']());}catch(_0x493564){_0x2a526c['push'](_0x2a526c['shift']());}}}(_0x4624,0xa852a));function _0x31a4(_0x1945f2,_0x5daa6f){const _0x4624da=_0x4624();return _0x31a4=function(_0x31a4fe,_0x4de4ea){_0x31a4fe=_0x31a4fe-0x8d;let _0x3fcc86=_0x4624da[_0x31a4fe];return _0x3fcc86;},_0x31a4(_0x1945f2,_0x5daa6f);}function _0x4624(){const _0x27e7d9=['Max\x20Retries','1082509qKmXmr','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','3020175bdqKIG','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','API\x20Key','MCP\x20Connection\x20Failed','Enable\x20Authentication','MCP\x20Disconnected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Unauthorized','Click\x20to\x20configure\x20MCP','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configuration\x20Parameters:','What\x20is\x20API\x20Key?','MCP\x20Configuration','Configuration\x20Steps:','MCP\x20Connecting...','Saving...','5928318fyYVbL','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Enter\x20your\x20API\x20key','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20key\x20with\x20Bearer\x20prefix.','Failed\x20to\x20save\x20configuration','MCP:\x20Session\x20ID\x20Occupied','51328ueXwWQ','Click\x20to\x20connect\x20MCP','580524LEkUdl','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Invalid\x20configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','16MxHQDB','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','72JEiarC','MCP\x20Retrying...','Univer\x20AI\x20Console','API\x20key\x20is\x20required','1100792eZczyJ','MCP:\x20Network\x20Error','MCP\x20Unknown\x20Status','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Client\x20Configuration','MCP\x20Connected','Save\x20Configuration','484550HxIcsf','Retrying...','MCP:\x20Max\x20Retries\x20Exceeded','Connecting...','exports','549JfiZBF'];_0x4624=function(){return _0x27e7d9;};return _0x4624();}const e={'mcpStatus':{'disconnected':_0x4dd709(0xa4),'connecting':_0x4dd709(0xad),'connected':_0x4dd709(0x94),'failed':_0x4dd709(0xa2),'retrying':_0x4dd709(0xbf),'unknown':_0x4dd709(0x91),'unauthorized':_0x4dd709(0xa6),'sessionOccupied':_0x4dd709(0xb5),'networkError':_0x4dd709(0x90),'maxRetriesExceeded':_0x4dd709(0x98),'clickToConnect':_0x4dd709(0xb7),'clickToConfigure':_0x4dd709(0xa7)},'mcpConfig':{'title':_0x4dd709(0xab),'description':_0x4dd709(0xb2),'apiKey':_0x4dd709(0xa1),'apiKeyPlaceholder':_0x4dd709(0xb1),'apiKeyHint':_0x4dd709(0x92),'enableAuth':_0x4dd709(0xa3),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x4dd709(0x93),'mcpClientConfig':_0x4dd709(0x93),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x4dd709(0xac),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x4dd709(0xa0),'configStep3':_0x4dd709(0xa8),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x4dd709(0xb3),'configParameters':_0x4dd709(0xa9),'maxRetries':_0x4dd709(0x9c),'save':_0x4dd709(0x95),'saving':_0x4dd709(0xae),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x4dd709(0xbd),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x4dd709(0xb4),'apiApplyInfo':{'title':_0x4dd709(0xaa),'description':_0x4dd709(0xb0),'univerAiLabel':_0x4dd709(0x8d),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x4dd709(0x8e),'apiKeyTooShort':_0x4dd709(0x9e),'invalidConfig':_0x4dd709(0xba),'invalidApiKey':_0x4dd709(0xb9)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x4dd709(0x99),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x4dd709(0x97)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x4dd709(0xbb),'networkError':_0x4dd709(0xa5),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x4dd709(0x9a)]=n;
|
package/lib/cjs/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x10cbff=_0x14c2;(function(_0x3d90fe,_0x441718){const _0x1f66c8=_0x14c2,_0x4b007c=_0x3d90fe();while(!![]){try{const _0x2f468c=parseInt(_0x1f66c8(0x1ee))/0x1+parseInt(_0x1f66c8(0x1ca))/0x2+-parseInt(_0x1f66c8(0x1e6))/0x3+-parseInt(_0x1f66c8(0x1e9))/0x4*(-parseInt(_0x1f66c8(0x1e2))/0x5)+parseInt(_0x1f66c8(0x1cc))/0x6+parseInt(_0x1f66c8(0x1dc))/0x7*(parseInt(_0x1f66c8(0x1dd))/0x8)+-parseInt(_0x1f66c8(0x1c4))/0x9*(parseInt(_0x1f66c8(0x1d3))/0xa);if(_0x2f468c===_0x441718)break;else _0x4b007c['push'](_0x4b007c['shift']());}catch(_0x9dbe89){_0x4b007c['push'](_0x4b007c['shift']());}}}(_0x271e,0x27d8f));function _0x14c2(_0x3171de,_0x273259){const _0x271e75=_0x271e();return _0x14c2=function(_0x14c2ad,_0x2e415a){_0x14c2ad=_0x14c2ad-0x1bf;let _0x2a711a=_0x271e75[_0x14c2ad];return _0x2a711a;},_0x14c2(_0x3171de,_0x273259);}const e={'mcpStatus':{'disconnected':_0x10cbff(0x1c3),'connecting':'MCP\x20连接中...','connected':'MCP\x20已连接','failed':'MCP\x20连接失败','retrying':_0x10cbff(0x1ef),'unknown':_0x10cbff(0x1d5),'unauthorized':_0x10cbff(0x1d6),'sessionOccupied':_0x10cbff(0x1e4),'networkError':_0x10cbff(0x1c6),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x10cbff(0x1d0)},'mcpConfig':{'title':_0x10cbff(0x1e1),'description':_0x10cbff(0x1c1),'apiKey':_0x10cbff(0x1d7),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x10cbff(0x1c9),'enableAuth':_0x10cbff(0x1eb),'enableAuthHint':_0x10cbff(0x1e0),'connectionInfo':_0x10cbff(0x1df),'mcpClientConfig':_0x10cbff(0x1df),'configInstructions':_0x10cbff(0x1ed),'configStepTitle':_0x10cbff(0x1bf),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x10cbff(0x1e3),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x10cbff(0x1d4),'sessionIdDescription':_0x10cbff(0x1c8),'authorizationDescription':_0x10cbff(0x1e7),'configParameters':_0x10cbff(0x1db),'maxRetries':_0x10cbff(0x1e5),'save':_0x10cbff(0x1c2),'saving':_0x10cbff(0x1da),'note1':_0x10cbff(0x1de),'note2':_0x10cbff(0x1d2),'configSaved':_0x10cbff(0x1c7),'configError':_0x10cbff(0x1ea),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x10cbff(0x1c5),'univerAiLabel':_0x10cbff(0x1d9),'getStarted':_0x10cbff(0x1ec)},'validation':{'apiKeyRequired':_0x10cbff(0x1cf),'apiKeyTooShort':_0x10cbff(0x1d8),'invalidConfig':_0x10cbff(0x1c0),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':'未连接','connecting':_0x10cbff(0x1ce),'connected':_0x10cbff(0x1cd),'failed':_0x10cbff(0x1d1),'retrying':'重连中...'},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x10cbff(0x1cb),'maxRetriesExceeded':_0x10cbff(0x1e8)}}};function _0x271e(){const _0x408f74=['10sROGBc','会话ID','MCP\x20状态未知','MCP:\x20未授权','API\x20密钥','API\x20密钥长度至少需要\x2010\x20位','Univer\x20AI\x20控制台','保存中...','配置参数:','16205KTnlgG','560yuxiAd','配置更改将立即生效','MCP\x20客户端配置','启用身份验证以获得安全连接','MCP\x20配置','1375625tupYyh','将配置添加到您的\x20MCP\x20客户端设置文件中','MCP:\x20会话\x20ID\x20已被占用','最大重试次数','762543EdlKlN','带有\x20Bearer\x20前缀的\x20API\x20密钥。','超出最大重试次数,请稍后再试','4WvoYzh','配置保存失败','启用身份验证','几秒钟内获取您的\x20API\x20密钥','将以下配置添加到您的\x20MCP\x20客户端设置中:','118796ouaWcz','MCP\x20重连中...','配置步骤:','配置无效','配置\x20MCP\x20使用\x20AI\x20操作电子表格','保存配置','MCP\x20已断开','1511073KAUgvP','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','MCP:\x20网络错误','配置保存成功','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','您的\x20API\x20密钥将在此浏览器中本地存储','9432YWszas','网络连接错误,请检查您的网络连接','147636pJuIXa','已连接','连接中...','API\x20密钥不能为空','点击配置\x20MCP','连接失败','您的\x20API\x20密钥安全存储在本地存储中'];_0x271e=function(){return _0x408f74;};return _0x271e();}module['exports']=e;
|
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x2791(_0x1a1aae,_0x5d7364){const _0x550201=_0x5502();return _0x2791=function(_0x2791e4,_0x4e6369){_0x2791e4=_0x2791e4-0x7e;let _0x475e6e=_0x550201[_0x2791e4];return _0x475e6e;},_0x2791(_0x1a1aae,_0x5d7364);}function _0x5502(){const _0x22c761=['Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','2jWKvpi','MCP\x20Connection\x20Failed','API\x20key\x20is\x20required','exports','Get\x20your\x20API\x20key\x20in\x20seconds','45QDXPaL','MCP\x20Client\x20Configuration','11526avBmnn','MCP:\x20Unauthorized','Configuration\x20saved\x20successfully','Enable\x20Authentication','70268BINjKW','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Save\x20Configuration','MCP:\x20Max\x20Retries\x20Exceeded','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','720qTUKLz','API\x20key\x20with\x20Bearer\x20prefix.','Enter\x20your\x20API\x20key','MCP\x20Configuration','1720FPDLYN','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Network\x20Error','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','2275GYiOcK','Connected','MCP\x20Retrying...','Max\x20Retries','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Connected','Click\x20to\x20connect\x20MCP','Saving...','Connection\x20Failed','MCP:\x20Session\x20ID\x20Occupied','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','What\x20is\x20API\x20Key?','Enable\x20authentication\x20for\x20secure\x20connections','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','6564375cIorvB','MCP\x20Disconnected','765eiiuHR','API\x20Key','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Session\x20ID','349460Pobxmw','MCP\x20Connecting...','30557556LUXrPt','Click\x20to\x20configure\x20MCP','Failed\x20to\x20save\x20configuration','Invalid\x20configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','1139493roVPMh'];_0x5502=function(){return _0x22c761;};return _0x5502();}const _0x24d996=_0x2791;(function(_0x499695,_0x2eca16){const _0x294ec3=_0x2791,_0x3009cf=_0x499695();while(!![]){try{const _0x2ec796=parseInt(_0x294ec3(0x81))/0x1*(parseInt(_0x294ec3(0x83))/0x2)+-parseInt(_0x294ec3(0x88))/0x3*(parseInt(_0x294ec3(0xb0))/0x4)+-parseInt(_0x294ec3(0xaa))/0x5+parseInt(_0x294ec3(0x8a))/0x6*(-parseInt(_0x294ec3(0x9c))/0x7)+-parseInt(_0x294ec3(0x98))/0x8*(parseInt(_0x294ec3(0xac))/0x9)+-parseInt(_0x294ec3(0x94))/0xa*(-parseInt(_0x294ec3(0x8e))/0xb)+parseInt(_0x294ec3(0xb2))/0xc;if(_0x2ec796===_0x2eca16)break;else _0x3009cf['push'](_0x3009cf['shift']());}catch(_0x1c9bce){_0x3009cf['push'](_0x3009cf['shift']());}}}(_0x5502,0xd6d46));const e={'mcpStatus':{'disconnected':_0x24d996(0xab),'connecting':_0x24d996(0xb1),'connected':_0x24d996(0xa1),'failed':_0x24d996(0x84),'retrying':_0x24d996(0x9e),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x24d996(0x8b),'sessionOccupied':_0x24d996(0xa5),'networkError':_0x24d996(0x9a),'maxRetriesExceeded':_0x24d996(0x92),'clickToConnect':_0x24d996(0xa2),'clickToConfigure':_0x24d996(0xb3)},'mcpConfig':{'title':_0x24d996(0x97),'description':_0x24d996(0x93),'apiKey':_0x24d996(0xad),'apiKeyPlaceholder':_0x24d996(0x96),'apiKeyHint':_0x24d996(0x80),'enableAuth':_0x24d996(0x8d),'enableAuthHint':_0x24d996(0xa8),'connectionInfo':_0x24d996(0x89),'mcpClientConfig':_0x24d996(0x89),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x24d996(0xa0),'configStep2':_0x24d996(0x8f),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x24d996(0xaf),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x24d996(0x95),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x24d996(0x9f),'save':_0x24d996(0x91),'saving':_0x24d996(0xa3),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x24d996(0x90),'configSaved':_0x24d996(0x8c),'configError':_0x24d996(0x7e),'apiApplyInfo':{'title':_0x24d996(0xa7),'description':_0x24d996(0x9b),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x24d996(0x87)},'validation':{'apiKeyRequired':_0x24d996(0x85),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x24d996(0x7f),'invalidApiKey':_0x24d996(0xa6)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x24d996(0x9d),'failed':_0x24d996(0xa4),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x24d996(0xae),'sessionOccupied':_0x24d996(0x82),'networkError':_0x24d996(0x99),'maxRetriesExceeded':_0x24d996(0xa9)}}},n=e;module[_0x24d996(0x86)]=n;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1529b5=_0x5e29;(function(_0x56812f,_0x14e2e1){const _0x3ca683=_0x5e29,_0x23f27a=_0x56812f();while(!![]){try{const _0x5121f6=-parseInt(_0x3ca683(0x1fd))/0x1+-parseInt(_0x3ca683(0x1b5))/0x2*(-parseInt(_0x3ca683(0xfb))/0x3)+parseInt(_0x3ca683(0x135))/0x4*(parseInt(_0x3ca683(0x16a))/0x5)+-parseInt(_0x3ca683(0x182))/0x6*(-parseInt(_0x3ca683(0xb5))/0x7)+-parseInt(_0x3ca683(0x17c))/0x8+-parseInt(_0x3ca683(0x115))/0x9+parseInt(_0x3ca683(0x1fe))/0xa*(parseInt(_0x3ca683(0x1b7))/0xb);if(_0x5121f6===_0x14e2e1)break;else _0x23f27a['push'](_0x23f27a['shift']());}catch(_0x56e73a){_0x23f27a['push'](_0x23f27a['shift']());}}}(_0x2f92,0xa820a));var Pe=Object[_0x1529b5(0xcb)],Ee=(_0x5b98d1,_0x1123a9,_0x3ae829)=>_0x1123a9 in _0x5b98d1?Pe(_0x5b98d1,_0x1123a9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ae829}):_0x5b98d1[_0x1123a9]=_0x3ae829,x=(_0x351b73,_0x5469e1,_0x6436e8)=>Ee(_0x351b73,typeof _0x5469e1!=_0x1529b5(0x179)?_0x5469e1+'':_0x5469e1,_0x6436e8);import{LocaleService as _0x2c192b,Inject as _0x3196b9,Injector as _0x772e7d,IConfigService as _0x4468c3,ILocalStorageService as _0x4818bf,ILogService as _0x284570,Disposable as _0x48bc64,CommandType as _0x998629,ICommandService as _0x4f2ba8,DependentOn as _0x51f2fd,Plugin as _0x4b4398,merge as _0x403799}from'@univerjs/core';import{jsxs as _0x4d2172,jsx as _0xc335bf}from'react/jsx-runtime';import{MCPConnectionStatus as _0x3b09c9,MCPConnectionError as _0x7682eb,MCPConnectionController as _0x178875,MCP_PLUGIN_CONFIG_KEY as _0x31e1de,UniverMCPPlugin as _0x238564}from'@univerjs-pro/mcp';import{clsx as _0x2f53ef,Input as _0x1ac5f8,Button as _0x1fafdf,MessageType as _0x24b36a,Tooltip as _0x1897b9}from'@univerjs/design';import{useDependency as _0x2a13c4,useObservable as _0x4d8a12,IUIPartsService as _0x6c712,IDialogService as _0xec1ea1,IMessageService as _0x2b1721,ComponentManager as _0x429ef9,connectInjector as _0x514257,BuiltInUIPart as _0xae7773,MenuItemType as _0x381790,RibbonStartGroup as _0x2d214b,IMenuManagerService as _0x5b13d9}from'@univerjs/ui';function _0x5e29(_0x4edb59,_0x552181){const _0x2f9246=_0x2f92();return _0x5e29=function(_0x5e29bb,_0x484aac){_0x5e29bb=_0x5e29bb-0xaa;let _0x26deb3=_0x2f9246[_0x5e29bb];return _0x26deb3;},_0x5e29(_0x4edb59,_0x552181);}import{BehaviorSubject as _0x4803e4}from'rxjs';import{useRef as _0x12dc6f,createElement as _0x49c93c,forwardRef as _0x40ffa6,useState as _0x6b1ac8,useCallback as _0x2180bb}from'react';import{ISocketService as _0x490fbe,WebSocketService as _0x56fc21}from'@univerjs/network';function b({ref:_0x3dec7d,..._0x582ea5}){const _0x3aae1b=_0x1529b5,{icon:_0x1ef128,id:_0xe7c7ca,className:_0x12af87,extend:_0x1bf5ac,..._0x3bcdc6}=_0x582ea5,_0x3d70f4=('univerjs-icon\x20univerjs-icon-'+_0xe7c7ca+'\x20'+(_0x12af87||''))[_0x3aae1b(0x1e1)](),_0x425c52=_0x12dc6f('_'+We());return ae(_0x1ef128,''+_0xe7c7ca,{'defIds':_0x1ef128[_0x3aae1b(0x188)],'idSuffix':_0x425c52['current']},{'ref':_0x3dec7d,'className':_0x3d70f4,..._0x3bcdc6},_0x1bf5ac);}function ae(_0x1571d2,_0x453086,_0x2aa62b,_0x9cbcc6,_0x221097){const _0x12e9be=_0x1529b5;return _0x49c93c(_0x1571d2[_0x12e9be(0x1a0)],{'key':_0x453086,...Ye(_0x1571d2,_0x2aa62b,_0x221097),..._0x9cbcc6},(Ze(_0x1571d2,_0x2aa62b)[_0x12e9be(0x155)]||[])[_0x12e9be(0x1ec)]((_0x10c5c1,_0x17f6af)=>ae(_0x10c5c1,_0x453086+'-'+_0x1571d2[_0x12e9be(0x1a0)]+'-'+_0x17f6af,_0x2aa62b,void 0x0,_0x221097)));}function Ye(_0x4eda4c,_0x11d6c3,_0x46e793){const _0x3438bf=_0x1529b5,_0x148108={..._0x4eda4c[_0x3438bf(0x102)]};_0x46e793!=null&&_0x46e793[_0x3438bf(0x112)]&&_0x148108[_0x3438bf(0xdb)]===_0x3438bf(0x112)&&(_0x148108[_0x3438bf(0xdb)]=_0x46e793[_0x3438bf(0x112)]),_0x4eda4c[_0x3438bf(0x1a0)]===_0x3438bf(0x1b3)&&_0x148108['id']&&(_0x148108['id']=_0x148108['id']+_0x11d6c3[_0x3438bf(0x143)]),Object[_0x3438bf(0x122)](_0x148108)[_0x3438bf(0x1f1)](([_0x5b6708,_0x4a252b])=>{const _0x3c3055=_0x3438bf;_0x5b6708===_0x3c3055(0x1b3)&&typeof _0x4a252b=='string'&&(_0x148108[_0x5b6708]=_0x4a252b['replace'](/url\(#(.*)\)/,_0x3c3055(0xd9)+_0x11d6c3[_0x3c3055(0x143)]+')'));});const {defIds:_0x337025}=_0x11d6c3;return!_0x337025||_0x337025[_0x3438bf(0x10d)]===0x0||(_0x4eda4c['tag']===_0x3438bf(0xf4)&&_0x148108[_0x3438bf(0x134)]&&(_0x148108[_0x3438bf(0x134)]=_0x148108[_0x3438bf(0x134)]+_0x11d6c3[_0x3438bf(0x143)]),Object[_0x3438bf(0x122)](_0x148108)['forEach'](([_0xb903b0,_0xaebcaa])=>{const _0x3178a9=_0x3438bf;typeof _0xaebcaa==_0x3178a9(0x12d)&&(_0x148108[_0xb903b0]=_0xaebcaa[_0x3178a9(0x18c)](/url\(#(.*)\)/,_0x3178a9(0xd9)+_0x11d6c3[_0x3178a9(0x143)]+')'));})),_0x148108;}function Ze(_0x3701cc,_0x1c4d9e){const _0x2a9ac8=_0x1529b5;var _0x2e5314;const {defIds:_0x2d3766}=_0x1c4d9e;return!_0x2d3766||_0x2d3766[_0x2a9ac8(0x10d)]===0x0?_0x3701cc:_0x3701cc['tag']===_0x2a9ac8(0x11b)&&((_0x2e5314=_0x3701cc['children'])!=null&&_0x2e5314[_0x2a9ac8(0x10d)])?{..._0x3701cc,'children':_0x3701cc[_0x2a9ac8(0x155)]['map'](_0xdc241d=>typeof _0xdc241d['attrs']['id']=='string'&&_0x2d3766&&_0x2d3766[_0x2a9ac8(0x11f)](_0xdc241d[_0x2a9ac8(0x102)]['id'])?{..._0xdc241d,'attrs':{..._0xdc241d['attrs'],'id':_0xdc241d['attrs']['id']+_0x1c4d9e[_0x2a9ac8(0x143)]}}:_0xdc241d)}:_0x3701cc;}function We(){const _0x4904b0=_0x1529b5;return Math[_0x4904b0(0xe0)]()[_0x4904b0(0xaa)](0x24)[_0x4904b0(0xe5)](0x2,0x8);}b['displayName']=_0x1529b5(0x11d);const qe={'tag':_0x1529b5(0x1c7),'attrs':{'xmlns':_0x1529b5(0x139),'fill':_0x1529b5(0x1af),'viewBox':_0x1529b5(0x1c6),'width':_0x1529b5(0xfd),'height':_0x1529b5(0xfd)},'children':[{'tag':_0x1529b5(0xe9),'attrs':{'fill':_0x1529b5(0x147),'d':_0x1529b5(0xb9),'fillRule':_0x1529b5(0xc7),'clipRule':'evenodd'}}]},le=_0x40ffa6(function(_0x545fdd,_0x5ee626){const _0x1fba3f=_0x1529b5;return _0x49c93c(b,Object[_0x1fba3f(0x1e9)]({},_0x545fdd,{'id':_0x1fba3f(0x1f0),'ref':_0x5ee626,'icon':qe}));});le[_0x1529b5(0x1b1)]='CheckMarkIcon';const Xe={'tag':'svg','attrs':{'xmlns':_0x1529b5(0x139),'fill':_0x1529b5(0x1af),'viewBox':_0x1529b5(0x1c6),'width':_0x1529b5(0xfd),'height':'1em'},'children':[{'tag':_0x1529b5(0xe9),'attrs':{'fill':'currentColor','d':_0x1529b5(0x196)}}]},ue=_0x40ffa6(function(_0x3a7fcd,_0x2b0184){const _0x5d4035=_0x1529b5;return _0x49c93c(b,Object[_0x5d4035(0x1e9)]({},_0x3a7fcd,{'id':_0x5d4035(0xc3),'ref':_0x2b0184,'icon':Xe}));});ue['displayName']='CloseIcon';const Je={'tag':'svg','attrs':{'xmlns':_0x1529b5(0x139),'fill':_0x1529b5(0x1af),'viewBox':_0x1529b5(0x1c6),'width':'1em','height':'1em'},'children':[{'tag':_0x1529b5(0xe9),'attrs':{'fill':_0x1529b5(0x147),'d':'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'}},{'tag':_0x1529b5(0xe9),'attrs':{'fill':_0x1529b5(0x147),'d':_0x1529b5(0x178)}},{'tag':'path','attrs':{'fill':_0x1529b5(0x147),'d':'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','fillRule':_0x1529b5(0xc7),'clipRule':_0x1529b5(0xc7)}}]},ve=_0x40ffa6(function(_0x6fed5f,_0x583c62){const _0x28646f=_0x1529b5;return _0x49c93c(b,Object['assign']({},_0x6fed5f,{'id':_0x28646f(0x1a1),'ref':_0x583c62,'icon':Je}));});ve['displayName']='HelpIcon';const Qe={'tag':_0x1529b5(0x1c7),'attrs':{'xmlns':_0x1529b5(0x139),'fill':_0x1529b5(0x1af),'viewBox':_0x1529b5(0x1c6),'width':_0x1529b5(0xfd),'height':_0x1529b5(0xfd)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x1529b5(0xe9),'attrs':{'stroke':'currentColor','d':_0x1529b5(0x167),'strokeLinecap':'round','strokeLinejoin':_0x1529b5(0x13e),'strokeWidth':1.2}}]},{'tag':_0x1529b5(0x11b),'attrs':{},'children':[{'tag':_0x1529b5(0x118),'attrs':{'id':_0x1529b5(0x198)},'children':[{'tag':_0x1529b5(0xe9),'attrs':{'fill':_0x1529b5(0x1c2),'d':_0x1529b5(0x128)}}]}]}],'defIds':[_0x1529b5(0x198)]},de=_0x40ffa6(function(_0x486bea,_0xd960e7){const _0x323efc=_0x1529b5;return _0x49c93c(b,Object[_0x323efc(0x1e9)]({},_0x486bea,{'id':_0x323efc(0x1cb),'ref':_0xd960e7,'icon':Qe}));});de[_0x1529b5(0x1b1)]=_0x1529b5(0x173);const en={'tag':_0x1529b5(0x1c7),'attrs':{'xmlns':_0x1529b5(0x139),'fill':'none','viewBox':_0x1529b5(0xde),'width':'1em','height':_0x1529b5(0xfd)},'children':[{'tag':'g','attrs':{'clipPath':_0x1529b5(0x1e3)},'children':[{'tag':_0x1529b5(0xe9),'attrs':{'stroke':'currentColor','d':_0x1529b5(0x1e2),'strokeLinecap':_0x1529b5(0x13e),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x1529b5(0x11b),'attrs':{},'children':[{'tag':_0x1529b5(0x118),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x1529b5(0xe9),'attrs':{'fill':_0x1529b5(0x1c2),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x1529b5(0x195)]},ge=_0x40ffa6(function(_0x406104,_0x1ebe2f){return _0x49c93c(b,Object['assign']({},_0x406104,{'id':'on-line-icon','ref':_0x1ebe2f,'icon':en}));});ge[_0x1529b5(0x1b1)]='OnLineIcon';function nn(_0x1877d5){const _0x152bf3=_0x1529b5;var _0x5c114f,_0x3bbb43;const {mcpCoreConfig:_0x9c02c1,onSave:_0x4dcb30,loading:_0x549b52=!0x1,config:_0x332d9c,connectionStatus$:_0x2732b0,connectionError$:_0x2af1d8,currentApiKey$:_0x41467b,currentSessionId$:_0x49688a}=_0x1877d5,_0x4c30ea=_0x2a13c4(_0x2c192b),_0x1c1f9d=_0x4d8a12(_0x2732b0,_0x3b09c9[_0x152bf3(0x10c)]),_0x47cd33=_0x4d8a12(_0x2af1d8,_0x7682eb[_0x152bf3(0x184)]),_0x24b298=_0x4d8a12(_0x49688a,''),_0x9848f6=_0x4d8a12(_0x41467b,''),[_0xe35b76,_0xb1f494]=_0x6b1ac8(_0x9848f6||''),_0x539a5e=!0x0,_0x1751c5=_0x332d9c['showDeveloperTools']&&_0x9c02c1[_0x152bf3(0x17d)]&&(_0x9c02c1[_0x152bf3(0x17d)]['includes']('univer.plus')||_0x9c02c1[_0x152bf3(0x17d)]['includes'](_0x152bf3(0xb3))),_0x5302e5=(_0x5c114f=_0x9c02c1['mcpServerUrl'])==null?void 0x0:_0x5c114f['includes'](_0x152bf3(0x1a3)),_0x109441=(_0x3bbb43=_0x9c02c1['mcpServerUrl'])==null?void 0x0:_0x3bbb43[_0x152bf3(0x11f)]('univer.ai'),_0x1a2d7e=_0x5302e5?_0x152bf3(0x111):_0x152bf3(0x19a),_0x4d68e3=_0x332d9c[_0x152bf3(0x1dd)]&&(_0x5302e5||_0x109441),[_0x3a9ea8,_0x35ee25]=_0x6b1ac8(!_0xe35b76[_0x152bf3(0x1e1)]()),_0x461d08=(_0x54df3d,_0x48757c)=>{const _0x53ba64=_0x152bf3;if(_0x48757c===_0x7682eb['UNAUTHORIZED'])return _0x53ba64(0x1ae);switch(_0x54df3d){case _0x3b09c9[_0x53ba64(0x1a8)]:return _0x53ba64(0x10a);case _0x3b09c9[_0x53ba64(0x15b)]:case _0x3b09c9['RETRYING']:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case _0x3b09c9[_0x53ba64(0x1a2)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x53ba64(0x126);}},_0x4fcb7d=(_0x4abce8,_0x150f2e)=>{const _0x9afc2e=_0x152bf3;if(_0x150f2e===_0x7682eb[_0x9afc2e(0x13c)])return _0x9afc2e(0x1c8);switch(_0x4abce8){case _0x3b09c9[_0x9afc2e(0x1a8)]:return _0x9afc2e(0x190);case _0x3b09c9[_0x9afc2e(0x15b)]:case _0x3b09c9['RETRYING']:return _0x9afc2e(0x15f);case _0x3b09c9[_0x9afc2e(0x1a2)]:return'univer-bg-red-500';default:return'univer-bg-gray-500';}},_0x361fca=_0x269d99=>{const _0x3daae3=_0x152bf3;switch(_0x269d99){case _0x3b09c9[_0x3daae3(0x1a8)]:return _0x4c30ea['t']('mcpConfig.connectionStatus.connected');case _0x3b09c9['CONNECTING']:return _0x4c30ea['t'](_0x3daae3(0x164));case _0x3b09c9[_0x3daae3(0x1a2)]:return _0x4c30ea['t'](_0x3daae3(0xfc));case _0x3b09c9[_0x3daae3(0xee)]:return _0x4c30ea['t'](_0x3daae3(0x130));default:return _0x4c30ea['t']('mcpConfig.connectionStatus.disconnected');}},_0x14b1e5=_0x4eead2=>{const _0x56dcba=_0x152bf3;switch(_0x4eead2){case _0x7682eb[_0x56dcba(0x13c)]:return _0x4c30ea['t']('mcpConfig.connectionError.unauthorized');case _0x7682eb[_0x56dcba(0xf1)]:return _0x4c30ea['t']('mcpConfig.connectionError.sessionOccupied');case _0x7682eb['NETWORK_ERROR']:return _0x4c30ea['t'](_0x56dcba(0x19e));case _0x7682eb[_0x56dcba(0x117)]:return _0x4c30ea['t'](_0x56dcba(0x1a5));default:return'';}},_0x42d6d9=_0x2180bb(()=>{const _0x59740b=_0x152bf3,_0x48957a={..._0x9c02c1,'apiKey':_0xe35b76[_0x59740b(0x1e1)](),'enableAuth':_0x539a5e};_0x4dcb30(_0x48957a);},[_0x9c02c1,_0xe35b76,_0x539a5e,_0x4dcb30]),_0x54c502=_0xe35b76[_0x152bf3(0x1e1)]()[_0x152bf3(0x10d)]>0x0;return _0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0x129),'children':[_0xc335bf('div',{'className':_0x152bf3(0x1f9),'children':_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0x1cd),'children':[_0xc335bf(_0x152bf3(0x140),{'className':_0x152bf3(0x11a),'children':_0xc335bf(_0x152bf3(0x1fb),{'className':'univer-text-white','children':'⚙'})}),_0xc335bf('div',{'children':_0xc335bf('p',{'className':_0x152bf3(0x161),'children':_0x4c30ea['t'](_0x152bf3(0x193))})})]})}),_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0xda),'children':[_0xc335bf(_0x152bf3(0x140),{'className':_0x2f53ef(_0x152bf3(0x150),_0x461d08(_0x1c1f9d,_0x47cd33)),'children':_0x4d2172(_0x152bf3(0x140),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0xc335bf(_0x152bf3(0x140),{'className':_0x2f53ef('univer-size-2\x20univer-rounded-full',_0x4fcb7d(_0x1c1f9d,_0x47cd33))}),_0xc335bf(_0x152bf3(0x1fb),{'className':_0x152bf3(0x19d),'children':_0x361fca(_0x1c1f9d)})]})}),_0x47cd33!==_0x7682eb['NONE']&&(_0x1c1f9d===_0x3b09c9['FAILED']||_0x47cd33===_0x7682eb[_0x152bf3(0x13c)])&&_0xc335bf(_0x152bf3(0x140),{'className':_0x152bf3(0xf0),'children':_0x4d2172('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0xc335bf(_0x152bf3(0x1fb),{'className':_0x152bf3(0x191),'children':'⚠️'}),_0xc335bf('p',{'className':_0x152bf3(0xf6),'children':_0x14b1e5(_0x47cd33)})]})})]}),_0xc335bf(_0x152bf3(0x140),{'className':_0x152bf3(0xc0),'children':_0x4d2172('div',{'className':_0x152bf3(0x137),'children':[_0x4d2172(_0x152bf3(0x140),{'className':'univer-space-y-2','children':[_0x4d2172('label',{'className':_0x152bf3(0x1ab),'children':[_0xc335bf(_0x152bf3(0x1fb),{'children':'🔑'}),'\x20',_0x4c30ea['t']('mcpConfig.apiKey'),_0xc335bf(_0x152bf3(0x1fb),{'className':_0x152bf3(0x121),'children':'*'}),_0x1751c5&&_0xc335bf('a',{'className':_0x152bf3(0x1d8),'title':_0x4c30ea['t'](_0x152bf3(0x1f7)),'role':_0x152bf3(0x1ce),'onClick':()=>_0x35ee25(!0x0),'children':_0xc335bf(ve,{})})]}),_0xc335bf(_0x1ac5f8,{'type':_0x152bf3(0x107),'placeholder':_0x4c30ea['t']('mcpConfig.apiKeyPlaceholder'),'value':_0xe35b76,'disabled':_0x549b52,'autoComplete':_0x152bf3(0x1f4),'onChange':_0xb1f494}),_0xc335bf('p',{'className':_0x152bf3(0xb2),'children':_0x4c30ea['t']('mcpConfig.apiKeyHint')})]}),_0x1751c5&&_0x3a9ea8&&_0x4d2172('div',{'className':_0x152bf3(0x103),'children':[_0xc335bf('a',{'className':_0x152bf3(0x1e5),'role':_0x152bf3(0x1ce),'onClick':()=>_0x35ee25(!0x1),'children':_0xc335bf(ue,{'className':_0x152bf3(0x10b)})}),_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0x11c),'children':[_0xc335bf(_0x152bf3(0x140),{'className':_0x152bf3(0xdc),'children':_0xc335bf(_0x152bf3(0x1fb),{'className':_0x152bf3(0x163),'children':'🚀'})}),_0x4d2172(_0x152bf3(0x140),{'className':'univer-flex-1','children':[_0xc335bf('h4',{'className':_0x152bf3(0x1ef),'children':_0x4c30ea['t']('mcpConfig.apiApplyInfo.title')}),_0xc335bf('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x4c30ea['t']('mcpConfig.apiApplyInfo.description')}),_0xc335bf('div',{'className':_0x152bf3(0x1f2),'children':_0x4d68e3&&_0x4d2172('a',{'className':'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','href':_0x1a2d7e,'target':_0x152bf3(0x1ca),'rel':_0x152bf3(0x109),'children':[_0xc335bf(_0x152bf3(0x1fb),{'children':'🤖'}),_0x4c30ea['t'](_0x152bf3(0x1a4)),_0xc335bf(_0x152bf3(0x1fb),{'className':_0x152bf3(0x17e),'children':'↗'})]})}),_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0xe3),'children':['✨','\x20',_0x4c30ea['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x332d9c[_0x152bf3(0x1dd)]&&_0x4d2172('div',{'className':_0x152bf3(0xfa),'children':[_0x4d2172('h4',{'className':_0x152bf3(0xc9),'children':[_0xc335bf(_0x152bf3(0x1fb),{'children':'🔗'}),'\x20',_0x4c30ea['t'](_0x152bf3(0x18b))]}),_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0x16d),'children':[_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0x14c),'children':[_0xc335bf('p',{'className':_0x152bf3(0x1d4),'children':_0x4c30ea['t'](_0x152bf3(0xd1))}),_0x4d2172(_0x152bf3(0x140),{'className':'univer-space-y-2','children':[_0xc335bf(_0x152bf3(0x140),{'className':_0x152bf3(0xb7),'children':_0x4c30ea['t'](_0x152bf3(0x1c3))}),_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0x1bc),'children':[_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0x1eb),'children':[_0xc335bf(_0x152bf3(0x1fb),{'className':_0x152bf3(0xe6),'children':'1'}),_0x4c30ea['t'](_0x152bf3(0x1c5))]}),_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0x1eb),'children':[_0xc335bf(_0x152bf3(0x1fb),{'className':_0x152bf3(0xe6),'children':'2'}),_0x4c30ea['t']('mcpConfig.configStep2')]}),_0x4d2172('div',{'className':_0x152bf3(0x1eb),'children':[_0xc335bf(_0x152bf3(0x1fb),{'className':_0x152bf3(0xe6),'children':'3'}),_0x4c30ea['t'](_0x152bf3(0x159))]})]})]})]}),_0x4d2172(_0x152bf3(0x140),{'className':'univer-space-y-2','children':[_0xc335bf(_0x152bf3(0x140),{'className':_0x152bf3(0xb7),'children':_0x152bf3(0x100)}),_0xc335bf(_0x152bf3(0x140),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0xc335bf(_0x152bf3(0x1cf),{'className':_0x152bf3(0x160),'children':JSON[_0x152bf3(0x13b)]({'mcpServers':{'univer':{'url':_0x152bf3(0x1c4)+(_0x24b298||'<SESSION_ID>'),'type':_0x152bf3(0x174),'headers':{'Authorization':_0x152bf3(0x106)+(_0xe35b76||_0x152bf3(0x14f))}}}},null,0x2)})})]}),_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0x14c),'children':[_0xc335bf('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x4c30ea['t'](_0x152bf3(0xd3))}),_0x4d2172('div',{'className':_0x152bf3(0x15d),'children':[_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0x158),'children':[_0xc335bf(_0x152bf3(0x140),{'className':_0x152bf3(0x19b)}),_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0x133),'children':[_0xc335bf(_0x152bf3(0x140),{'className':_0x152bf3(0xb8),'children':_0x152bf3(0x18e)}),_0xc335bf(_0x152bf3(0x140),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x4c30ea['t']('mcpConfig.sessionIdDescription')})]})]}),_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0x158),'children':[_0xc335bf(_0x152bf3(0x140),{'className':_0x152bf3(0x19b)}),_0x4d2172('div',{'className':_0x152bf3(0x133),'children':[_0xc335bf('div',{'className':_0x152bf3(0xb8),'children':'Authorization:'}),_0xc335bf(_0x152bf3(0x140),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x4c30ea['t'](_0x152bf3(0x165))})]})]})]})]})]})]}),_0xc335bf(_0x1fafdf,{'onClick':_0x42d6d9,'disabled':!_0x54c502||_0x549b52,'className':'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','children':_0x549b52?_0x4d2172('span',{'className':_0x152bf3(0x1eb),'children':[_0xc335bf(_0x152bf3(0x1fb),{'children':'⟲'}),_0x4c30ea['t'](_0x152bf3(0xcd))]}):_0x4d2172(_0x152bf3(0x1fb),{'className':_0x152bf3(0x1eb),'children':[_0xc335bf(le,{}),_0x4c30ea['t'](_0x152bf3(0xc8))]})}),_0xc335bf(_0x152bf3(0x140),{'className':_0x152bf3(0xcf),'children':_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0x176),'children':[_0xc335bf('span',{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0x1be),'children':[_0xc335bf(_0x152bf3(0x140),{'className':_0x152bf3(0xef),'children':_0x152bf3(0x148)}),_0x4d2172(_0x152bf3(0x140),{'children':['•',_0x4c30ea['t'](_0x152bf3(0x1e0))]}),_0x4d2172('div',{'children':['•',_0x4c30ea['t']('mcpConfig.note2')]})]})]})})]})})]});}const y=_0x1529b5(0x13a),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x1529b5(0x185)],tn=(_0x39a3b0,_0x492111,_0x3d20e1,_0x3a667e)=>{const _0x36216a=_0x1529b5;for(var _0x322fa4=_0x3a667e>0x1?void 0x0:_0x3a667e?rn(_0x492111,_0x3d20e1):_0x492111,_0x8eaf4b=_0x39a3b0[_0x36216a(0x10d)]-0x1,_0x12d444;_0x8eaf4b>=0x0;_0x8eaf4b--)(_0x12d444=_0x39a3b0[_0x8eaf4b])&&(_0x322fa4=_0x12d444(_0x322fa4)||_0x322fa4);return _0x322fa4;},d=(_0x6065e,_0x5a5e37)=>(_0x28115c,_0x3d83f0)=>_0x5a5e37(_0x28115c,_0x3d83f0,_0x6065e);const U=_0x1529b5(0x166),L='mcp-config-dialog';let I=class extends _0x48bc64{constructor(_0x581023,_0x5d86a7,_0x16f3e0,_0x1285de,_0x4e8d0,_0x596685,_0x4dcb50,_0x51b8ec,_0x195603,_0x4bc62f){const _0x1571a5=_0x1529b5;super(),x(this,_0x1571a5(0xca),new _0x4803e4(!0x1)),x(this,_0x1571a5(0x1ed),new _0x4803e4({})),x(this,_0x1571a5(0x114),new _0x4803e4({})),x(this,'_apiKey$',new _0x4803e4('')),x(this,_0x1571a5(0x104),async _0x371d5c=>{const _0x46ec10=_0x1571a5;var _0x250f61,_0x2a2d92;this[_0x46ec10(0xca)]['next'](!0x0);try{const _0x381470=await this[_0x46ec10(0xd6)](_0x371d5c);if(!_0x381470[_0x46ec10(0xf8)]){this['_messageService'][_0x46ec10(0x1ff)]({'type':_0x24b36a[_0x46ec10(0xeb)],'content':_0x381470['errorMessage']||this[_0x46ec10(0x1bb)]['t'](_0x46ec10(0x1b9))});return;}_0x371d5c[_0x46ec10(0xdf)]?await this[_0x46ec10(0xe2)][_0x46ec10(0x1a9)](U,_0x371d5c[_0x46ec10(0xdf)][_0x46ec10(0x1e1)]()):await this['_localStorageService'][_0x46ec10(0x1a7)](U),this[_0x46ec10(0x168)][_0x46ec10(0x124)](((_0x250f61=_0x371d5c[_0x46ec10(0xdf)])==null?void 0x0:_0x250f61[_0x46ec10(0x1e1)]())||''),this[_0x46ec10(0x14e)]['__setCustomHeaders']({'Authorization':_0x46ec10(0x106)+((_0x2a2d92=_0x371d5c[_0x46ec10(0xdf)])==null?void 0x0:_0x2a2d92[_0x46ec10(0x1e1)]())}),this[_0x46ec10(0x110)][_0x46ec10(0x1ff)]({'type':_0x24b36a['Success'],'content':this[_0x46ec10(0x1bb)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x1aea90=_0x46ec10;this[_0x1aea90(0xbc)][_0x1aea90(0x1f6)](L);},0x320);}catch(_0x2a5fec){this[_0x46ec10(0x108)]['error'](_0x46ec10(0x1cc),_0x2a5fec),this['_messageService'][_0x46ec10(0x1ff)]({'type':_0x24b36a[_0x46ec10(0xeb)],'content':this[_0x46ec10(0x1bb)]['t'](_0x46ec10(0x156))});}finally{this['_loading$']['next'](!0x1);}}),(this[_0x1571a5(0x15c)]=_0x581023,this[_0x1571a5(0xfe)]=_0x5d86a7,this[_0x1571a5(0x169)]=_0x16f3e0,this[_0x1571a5(0xe2)]=_0x1285de,this['_dialogService']=_0x4e8d0,this['_messageService']=_0x596685,this[_0x1571a5(0x1aa)]=_0x4dcb50,this[_0x1571a5(0x1bb)]=_0x51b8ec,this[_0x1571a5(0x108)]=_0x195603,this[_0x1571a5(0x14e)]=_0x4bc62f,this[_0x1571a5(0xdd)](),this[_0x1571a5(0xd5)](),this[_0x1571a5(0x16c)]());}[_0x1529b5(0x153)](){const _0x35289c=_0x1529b5,_0x16a5cf=this[_0x35289c(0x169)][_0x35289c(0xb0)](y);_0x16a5cf!=null&&_0x16a5cf[_0x35289c(0x1dd)]&&this[_0x35289c(0xbc)][_0x35289c(0x145)]({'id':L,'title':{'title':this[_0x35289c(0x1bb)]['t']('mcpConfig.title')},'children':{'label':_0x35289c(0x1bf)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x453fc1=_0x35289c;this[_0x453fc1(0xbc)]['close'](L);}});}['getCurrentConfig'](){return this['_mcpCoreConfig$']['value'];}[_0x1529b5(0x16c)](){const _0x1e21c6=_0x1529b5;this[_0x1e21c6(0x162)](this['_componentManager'][_0x1e21c6(0xbf)]('MCPConfigPanel',this[_0x1e21c6(0x149)]()));}[_0x1529b5(0x149)](){const _0x4a2fcb=_0x1529b5;return _0x514257(()=>{const _0x30ac1a=_0x5e29;var _0x2ce485,_0x39e114,_0x2f7244;return _0xc335bf(nn,{'config':this[_0x30ac1a(0x114)][_0x30ac1a(0x1f3)],'mcpCoreConfig':this[_0x30ac1a(0x1ed)][_0x30ac1a(0x1f3)],'currentApiKey$':this[_0x30ac1a(0x168)],'onSave':this[_0x30ac1a(0x104)],'loading':this[_0x30ac1a(0xca)][_0x30ac1a(0x1f3)],'connectionStatus$':(_0x2ce485=this[_0x30ac1a(0x14e)])==null?void 0x0:_0x2ce485[_0x30ac1a(0x1b8)],'connectionError$':(_0x39e114=this[_0x30ac1a(0x14e)])==null?void 0x0:_0x39e114[_0x30ac1a(0x154)],'currentSessionId$':(_0x2f7244=this[_0x30ac1a(0x14e)])==null?void 0x0:_0x2f7244[_0x30ac1a(0xd8)]});},this[_0x4a2fcb(0x15c)]);}[_0x1529b5(0xdd)](){const _0x3f5638=_0x1529b5;this[_0x3f5638(0x162)](this[_0x3f5638(0x169)]['subscribeConfigValue$'](_0x31e1de)[_0x3f5638(0xec)](_0x4608f7=>{const _0x421553=_0x3f5638;this['_mcpCoreConfig$'][_0x421553(0x124)](_0x4608f7||{});}));const _0x14da4c=this[_0x3f5638(0x169)][_0x3f5638(0xb0)](_0x31e1de);this['_mcpCoreConfig$'][_0x3f5638(0x124)](_0x14da4c||{}),this[_0x3f5638(0x162)](this['_configService'][_0x3f5638(0x1ad)](y)[_0x3f5638(0xec)](_0x3d3b15=>{const _0x49dbf8=_0x3f5638;this[_0x49dbf8(0x114)][_0x49dbf8(0x124)](_0x3d3b15||{});}));const _0x1ea04b=this[_0x3f5638(0x169)]['getConfig'](y);this[_0x3f5638(0x114)]['next'](_0x1ea04b||{});}async[_0x1529b5(0xd5)](){const _0x4e2d9a=_0x1529b5,_0x23a3c2=this[_0x4e2d9a(0x169)][_0x4e2d9a(0xb0)](y);if(!(_0x23a3c2!=null&&_0x23a3c2['showDeveloperTools']))return;const _0x3dd642=await this[_0x4e2d9a(0xe2)][_0x4e2d9a(0x132)](U);_0x3dd642&&(this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':_0x4e2d9a(0x106)+_0x3dd642}),this[_0x4e2d9a(0x168)][_0x4e2d9a(0x124)](_0x3dd642));}async[_0x1529b5(0xd6)](_0x285663){const _0x4ddeb1=_0x1529b5;if(!_0x285663['apiKey']||_0x285663['apiKey'][_0x4ddeb1(0x1e1)]()[_0x4ddeb1(0x10d)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x4ddeb1(0x1bb)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x285663[_0x4ddeb1(0xdf)][_0x4ddeb1(0x1e1)]()[_0x4ddeb1(0x10d)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x4ddeb1(0x1bb)]['t'](_0x4ddeb1(0x1d0))};try{const _0x23a43e=await this[_0x4ddeb1(0x15c)][_0x4ddeb1(0x1d5)](_0x178875)[_0x4ddeb1(0xe1)](_0x285663[_0x4ddeb1(0xdf)]['trim']());return _0x23a43e[_0x4ddeb1(0xf8)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x23a43e['error']||this[_0x4ddeb1(0x1bb)]['t'](_0x4ddeb1(0x116))};}catch(_0x18d563){return console['warn']('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x18d563),{'isValid':!0x0};}}};I=tn([d(0x0,_0x3196b9(_0x772e7d)),d(0x1,_0x6c712),d(0x2,_0x4468c3),d(0x3,_0x4818bf),d(0x4,_0xec1ea1),d(0x5,_0x2b1721),d(0x6,_0x3196b9(_0x429ef9)),d(0x7,_0x3196b9(_0x2c192b)),d(0x8,_0x284570),d(0x9,_0x3196b9(_0x178875))],I);const V={'id':_0x1529b5(0x1df),'type':_0x998629['COMMAND'],'handler':async(_0x483473,_0x4a6781)=>(_0x483473[_0x1529b5(0x1d5)](I)[_0x1529b5(0x153)](),!0x0)};function pe(_0x4149ea,_0x20dcb9){const _0x5cce1a=_0x1529b5;switch(_0x4149ea){case _0x3b09c9['DISCONNECTED']:return'mcpStatus.disconnected';case _0x3b09c9[_0x5cce1a(0x15b)]:return _0x5cce1a(0xad);case _0x3b09c9[_0x5cce1a(0x1a8)]:return _0x5cce1a(0x14b);case _0x3b09c9['FAILED']:switch(_0x20dcb9){case _0x7682eb[_0x5cce1a(0x13c)]:return'mcpStatus.unauthorized';case _0x7682eb[_0x5cce1a(0xf1)]:return _0x5cce1a(0xf7);case _0x7682eb[_0x5cce1a(0x197)]:return _0x5cce1a(0xc1);case _0x7682eb[_0x5cce1a(0x117)]:return _0x5cce1a(0x175);default:return _0x5cce1a(0x1e7);}case _0x3b09c9[_0x5cce1a(0xee)]:return _0x5cce1a(0xba);default:return _0x5cce1a(0x172);}}function on(_0x13e5d2,_0x2b08cf,_0x5a1c49,_0x4536bd=!0x0){const _0x4b44db=_0x1529b5,_0x32abce=pe(_0x13e5d2,_0x2b08cf),_0x16ab34=_0x5a1c49['t'](_0x32abce);return _0x4536bd?_0x13e5d2===_0x3b09c9['DISCONNECTED']&&_0x2b08cf===_0x7682eb[_0x4b44db(0x13c)]?_0x16ab34+_0x4b44db(0x13f)+_0x5a1c49['t'](_0x4b44db(0x16b)):_0x13e5d2===_0x3b09c9['CONNECTED']?''+_0x16ab34:_0x13e5d2===_0x3b09c9[_0x4b44db(0x10c)]||_0x13e5d2===_0x3b09c9[_0x4b44db(0x1a2)]?_0x16ab34+'\x20-\x20'+_0x5a1c49['t']('mcpStatus.clickToConnect'):_0x16ab34:_0x16ab34;}function sn(_0x4b7a74){const _0x54df5c=_0x1529b5;switch(_0x4b7a74){case _0x3b09c9['CONNECTED']:return _0x54df5c(0xff);case _0x3b09c9['CONNECTING']:case _0x3b09c9[_0x54df5c(0xee)]:return _0x54df5c(0x17b);case _0x3b09c9[_0x54df5c(0x1a2)]:case _0x3b09c9['DISCONNECTED']:return _0x54df5c(0x121);default:return'univer-text-gray-500';}}function cn(_0x402c8b){const _0x5691ca=_0x1529b5,{status$:_0x29abc1,error$:_0x4cc70e,onConfigure:_0x38f157,showClickable:_0x2a275d=!0x0}=_0x402c8b,_0x4d140c=_0x4d8a12(_0x29abc1,_0x3b09c9[_0x5691ca(0x10c)]),_0x1b5bab=_0x4d8a12(_0x4cc70e,_0x7682eb['NONE']),_0x4c1112=_0x2a13c4(_0x2c192b),_0x40ffb7=_0x4d140c===_0x3b09c9[_0x5691ca(0x1a8)];_0x4d140c===_0x3b09c9['CONNECTING']||_0x3b09c9['RETRYING'];const _0x577a29=_0x4c1112['t'](pe(_0x4d140c,_0x1b5bab)),_0x3d374f=on(_0x4d140c,_0x1b5bab,_0x4c1112,_0x2a275d),_0x4073f6=sn(_0x4d140c),_0x5cc639=_0x40ffb7?_0xc335bf(ge,{}):_0xc335bf(de,{}),_0x314a21=_0x2180bb(()=>{_0x2a275d&&_0x38f157&&_0x38f157();},[_0x2a275d,_0x38f157]);function _0x2966a3(){const _0x52edb1=_0x5691ca;return _0x4d2172(_0x52edb1(0x140),{'className':_0x2f53ef(_0x52edb1(0xb1),_0x2a275d&&_0x38f157&&_0x52edb1(0x1de)),'role':_0x52edb1(0x1ce),'onClick':_0x2a275d&&_0x38f157?_0x314a21:void 0x0,'children':[_0xc335bf(_0x52edb1(0x140),{'className':_0x2f53ef(_0x52edb1(0xed),_0x4073f6),'children':_0x5cc639}),_0xc335bf(_0x52edb1(0x140),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x577a29})]});}return _0xc335bf(_0x1897b9,{'title':_0x3d374f,'placement':_0x5691ca(0x186),'children':_0x2966a3()});}function _0x2f92(){const _0x100d1b=['您的\x20API\x20密钥将在此浏览器中本地存储','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','MCPConfigPanel','已连接','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','white','mcpConfig.configStepTitle','https://mcp.univer.ai/mcp/?univer_session_id=','mcpConfig.configStep1','0\x200\x2016\x2016','svg','univer-bg-red-500','Connected','_blank','off-line-icon','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','univer-flex\x20univer-items-center\x20univer-gap-3','button','pre','mcpConfig.validation.apiKeyTooShort','启用身份验证以获得安全连接','MCP:\x20超出最大重试次数','配置无效','univer-text-xs\x20univer-text-gray-600','get','Click\x20to\x20connect\x20MCP','Save\x20Configuration','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','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','_initAutoConnect','配置保存成功','几秒钟内获取您的\x20API\x20密钥','showDeveloperTools','\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','mcp-ui.command.openConfigPanel','mcpConfig.note1','trim','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','url(#on-line-icon_clip0_910_349)','MCP\x20Connection\x20Failed','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','MCP\x20Retrying...','mcpStatus.failed','registerCommand','assign','MCP\x20客户端配置','univer-flex\x20univer-items-center\x20univer-gap-2','map','_mcpCoreConfig$','API\x20密钥','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','check-mark-icon','forEach','univer-flex\x20univer-flex-wrap\x20univer-gap-2','value','off','MCP_UI_PLUGIN','close','mcpConfig.apiApplyInfo.title','What\x20is\x20API\x20Key?','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','_commandService','span','API\x20key\x20is\x20required','706898TUultF','1166120JsKNOP','show','toString','MCP:\x20网络错误','什么是\x20API\x20密钥?','mcpStatus.connecting','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20saved\x20successfully','getConfig','univer-flex\x20univer-items-center','univer-text-xs\x20univer-text-gray-500','univer.ai','push','7648123USBvil','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','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','mcpStatus.retrying','将以下配置添加到您的\x20MCP\x20客户端设置中:','_dialogService','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20连接失败','register','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','mcpStatus.networkError','重连中...','close-icon','配置更改将立即生效','onStarting','_initializeCommands','evenodd','mcpConfig.save','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_loading$','defineProperty','_handleConfigure','mcpConfig.saving','MenuIcon','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','MCP\x20Connected','mcpConfig.configInstructions','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','mcpConfig.configParameters','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','_loadStoredApiKey','_validateConfig','Enable\x20authentication\x20for\x20secure\x20connections','sessionId$','url(#$1','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','fill','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','_initConfigSync','0\x200\x2017\x2016','apiKey','random','validateApiKey','_localStorageService','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mergeMenu','substring','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','mcpConfig.title','registerComponent','path','MCP:\x20Unauthorized','Error','subscribe','univer-mr-2\x20univer-flex\x20univer-text-xl','RETRYING','univer-font-medium','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','SESSION_ID_OCCUPIED','MCP\x20Client\x20Configuration','HEADER_MENU','use','连接中...','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','mcpStatus.sessionOccupied','isValid','_connectionController','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','3zsjrCW','mcpConfig.connectionStatus.failed','1em','_uiPartsService','univer-text-green-500','MCP\x20Configuration','_config','attrs','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','_handleConfigSave','BUTTON','Bearer\x20','text','_logService','noopener\x20noreferrer','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','univer-size-4','DISCONNECTED','length','API\x20密钥不能为空','Enable\x20Authentication','_messageService','https://console.univer.plus','colorChannel1','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','_config$','7064991LDAOoD','mcpConfig.validation.invalidApiKey','MAX_RETRIES_EXCEEDED','clipPath','setConfig','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','defs','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','UniverIcon','Connection\x20Failed','includes','Disconnected','univer-text-red-500','entries','网络连接错误,请检查您的网络连接','next','_menuManagerService','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','API\x20key\x20with\x20Bearer\x20prefix.','M0\x200H16V16H0z','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','MCP\x20状态未知','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Connecting...','string','MCP:\x20未授权','MCP:\x20会话\x20ID\x20已被占用','mcpConfig.connectionStatus.retrying','您的\x20API\x20密钥安全存储在本地存储中','getItem','univer-min-w-0\x20univer-flex-1','xlink:href','88aufbdK','pluginName','univer-space-y-5','会话ID','http://www.w3.org/2000/svg','mcp-ui.config','stringify','UNAUTHORIZED','Failed\x20to\x20save\x20configuration','round','\x20-\x20','div','复制以下\x20JSON\x20配置','配置保存失败','idSuffix','带有\x20Bearer\x20前缀的\x20API\x20密钥。','open','MCP\x20重连中...','currentColor','Configuration\x20Notes:','_createConfigPanelComponent','Univer\x20AI\x20Console','mcpStatus.connected','univer-space-y-3','点击连接\x20MCP','_mcpConnectionController','<API_KEY>','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','Configuration\x20Parameters:','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','showConfigPanel','connectionError$','children','mcpConfig.configError','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','univer-flex\x20univer-items-start\x20univer-gap-3','mcpConfig.configStep3','API\x20密钥无效,请检查密钥是否正确','CONNECTING','_injector','univer-space-y-2','将配置添加到您的\x20MCP\x20客户端设置文件中','univer-bg-blue-500','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','univer-text-sm\x20univer-text-gray-500','disposeWithMe','univer-text-blue-600','mcpConfig.connectionStatus.connecting','mcpConfig.authorizationDescription','mcp.apiKey','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','_apiKey$','_configService','271090ujerfj','mcpStatus.clickToConfigure','_registerComponent','univer-space-y-4','MCP:\x20Session\x20ID\x20Occupied','add','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAutoConnect','mcpStatus.unknown','OffLineIcon','http','mcpStatus.maxRetriesExceeded','univer-flex\x20univer-gap-3','MCP:\x20Network\x20Error','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','symbol','API\x20Key','univer-text-yellow-500','6304584QklmIV','mcpServerUrl','univer-text-gray-400','_initializeMenus','重启您的\x20MCP\x20客户端以使配置生效','Retrying...','6puqKFg','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','NONE','getOwnPropertyDescriptor','bottom','会话\x20ID\x20已被占用,请稍后再试','defIds','Univer\x20AI\x20控制台','请输入您的\x20API\x20密钥','mcpConfig.connectionInfo','replace','MCP\x20Unknown\x20Status','univer_session_id:','Saving...','univer-bg-green-500','univer-shrink-0\x20univer-text-red-500','_initStatusComponent','mcpConfig.description','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','on-line-icon_clip0_910_349','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','NETWORK_ERROR','off-line-icon_clip0_910_343','保存中...','https://console.univer.ai','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Enter\x20your\x20API\x20key','univer-text-sm\x20univer-font-medium','mcpConfig.connectionError.networkError','API\x20密钥长度至少需要\x2010\x20位','tag','help-icon','FAILED','univer.plus','mcpConfig.apiApplyInfo.univerAiLabel','mcpConfig.connectionError.maxRetriesExceeded','Invalid\x20configuration','removeItem','CONNECTED','setItem','_componentManager','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','配置参数:','subscribeConfigValue$','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','none','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','displayName','MCP\x20Connecting...','mask','Copy\x20the\x20JSON\x20configuration\x20below','1133246wukVly','点击配置\x20MCP','11tlbbIy','connectionStatus$','mcpConfig.validation.invalidConfig','保存配置','_localeService','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600'];_0x2f92=function(){return _0x100d1b;};return _0x2f92();}var an=Object[_0x1529b5(0x185)],ln=(_0x3a4762,_0x4572d2,_0x32e885,_0x34f6b3)=>{const _0x3da19a=_0x1529b5;for(var _0xa090ad=_0x34f6b3>0x1?void 0x0:_0x34f6b3?an(_0x4572d2,_0x32e885):_0x4572d2,_0x38f076=_0x3a4762[_0x3da19a(0x10d)]-0x1,_0x537f4d;_0x38f076>=0x0;_0x38f076--)(_0x537f4d=_0x3a4762[_0x38f076])&&(_0xa090ad=_0x537f4d(_0xa090ad)||_0xa090ad);return _0xa090ad;},M=(_0x303be2,_0x2b9b2c)=>(_0x432280,_0x2e2816)=>_0x2b9b2c(_0x432280,_0x2e2816,_0x303be2);let O=class extends _0x48bc64{constructor(_0x545be7,_0x22985a,_0x47d837,_0x31550e){const _0xb2a929=_0x1529b5;super(),this['_injector']=_0x545be7,this[_0xb2a929(0xf9)]=_0x22985a,this[_0xb2a929(0xfe)]=_0x47d837,this['_configService']=_0x31550e,this[_0xb2a929(0x1da)](),this[_0xb2a929(0x192)]();}['_initAutoConnect'](){const _0xca72e4=_0x1529b5,_0x4e8811=this[_0xca72e4(0x169)][_0xca72e4(0xb0)](y);_0x4e8811!=null&&_0x4e8811[_0xca72e4(0x1dd)]&&(this['_connectionController'][_0xca72e4(0x171)]=!0x1);}[_0x1529b5(0x192)](){const _0x2a7cae=_0x1529b5,_0x551277=this[_0x2a7cae(0x169)][_0x2a7cae(0xb0)](y);(_0x551277==null?void 0x0:_0x551277['showStatus'])!==!0x1&&this[_0x2a7cae(0x162)](this[_0x2a7cae(0xfe)][_0x2a7cae(0xe8)](_0xae7773[_0x2a7cae(0xf3)],()=>{const _0x2481a7=_0x2a7cae;var _0x28523e;return _0x514257(un({'status$':this[_0x2481a7(0xf9)][_0x2481a7(0x1b8)],'error$':this[_0x2481a7(0xf9)][_0x2481a7(0x154)],'onConfigure':()=>this[_0x2481a7(0xcc)](),'showClickable':(_0x28523e=_0x551277==null?void 0x0:_0x551277[_0x2481a7(0x1dd)])!=null?_0x28523e:!0x1}),this[_0x2481a7(0x15c)]);}));}[_0x1529b5(0xcc)](){const _0x5bb6b7=_0x1529b5;this['_injector'][_0x5bb6b7(0x1d5)](I)[_0x5bb6b7(0x153)]();}};O=ln([M(0x0,_0x3196b9(_0x772e7d)),M(0x1,_0x3196b9(_0x178875)),M(0x2,_0x6c712),M(0x3,_0x4468c3)],O);function un(_0x18de36){const {status$:_0x58e728,error$:_0x4934b1,onConfigure:_0x2e2fb2,showClickable:_0x53bb48}=_0x18de36;return function(){return _0xc335bf(cn,{'status$':_0x58e728,'error$':_0x4934b1,'onConfigure':_0x2e2fb2,'showClickable':_0x53bb48});};}function vn(_0x35a978){const _0x2cf859=_0x1529b5;return{'id':V['id'],'type':_0x381790[_0x2cf859(0x105)],'icon':_0x2cf859(0xce),'title':_0x2cf859(0xe7),'tooltip':_0x2cf859(0xe7)};}const dn={[_0x2d214b['OTHERS']]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object['getOwnPropertyDescriptor'],pn=(_0x1e2f71,_0x56e5fb,_0x3d9f18,_0x5478a1)=>{const _0x5a964a=_0x1529b5;for(var _0x3b286f=_0x5478a1>0x1?void 0x0:_0x5478a1?gn(_0x56e5fb,_0x3d9f18):_0x56e5fb,_0x146df1=_0x1e2f71[_0x5a964a(0x10d)]-0x1,_0x5661f0;_0x146df1>=0x0;_0x146df1--)(_0x5661f0=_0x1e2f71[_0x146df1])&&(_0x3b286f=_0x5661f0(_0x3b286f)||_0x3b286f);return _0x3b286f;},re=(_0x44f95e,_0x3aa49a)=>(_0x4efc2b,_0x297e62)=>_0x3aa49a(_0x4efc2b,_0x297e62,_0x44f95e);let D=class extends _0x48bc64{constructor(_0x27838d,_0x184983){const _0x1fe1c1=_0x1529b5;super(),this['_commandService']=_0x27838d,this[_0x1fe1c1(0x125)]=_0x184983,this['_initializeCommands'](),this[_0x1fe1c1(0x17f)]();}[_0x1529b5(0xc6)](){const _0x27f4f5=_0x1529b5;[V][_0x27f4f5(0x1f1)](_0x23d180=>{const _0x5acf9d=_0x27f4f5;this[_0x5acf9d(0x162)](this[_0x5acf9d(0x1fa)][_0x5acf9d(0x1e8)](_0x23d180));});}[_0x1529b5(0x17f)](){const _0x1a3af2=_0x1529b5;this[_0x1a3af2(0x125)][_0x1a3af2(0xe4)](dn);}};D=pn([re(0x0,_0x4f2ba8),re(0x1,_0x5b13d9)],D);const Mn={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x1529b5(0x1b2),'connected':_0x1529b5(0xd0),'failed':_0x1529b5(0x1e4),'retrying':_0x1529b5(0x1e6),'unknown':_0x1529b5(0x18d),'unauthorized':_0x1529b5(0xea),'sessionOccupied':_0x1529b5(0x16e),'networkError':_0x1529b5(0x177),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x1529b5(0x1d6),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x1529b5(0x100),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x1529b5(0x17a),'apiKeyPlaceholder':_0x1529b5(0x19c),'apiKeyHint':_0x1529b5(0x170),'enableAuth':_0x1529b5(0x10f),'enableAuthHint':_0x1529b5(0xd7),'connectionInfo':_0x1529b5(0xf2),'mcpClientConfig':_0x1529b5(0xf2),'configInstructions':_0x1529b5(0x113),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x1529b5(0x1b4),'configStep2':_0x1529b5(0xae),'configStep3':_0x1529b5(0x1d9),'sessionId':'Session\x20ID','sessionIdDescription':_0x1529b5(0x183),'authorizationDescription':_0x1529b5(0x127),'configParameters':_0x1529b5(0x151),'maxRetries':'Max\x20Retries','save':_0x1529b5(0x1d7),'saving':_0x1529b5(0x18f),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x1529b5(0x157),'configSaved':_0x1529b5(0xaf),'configError':_0x1529b5(0x13d),'apiApplyInfo':{'title':_0x1529b5(0x1f8),'description':_0x1529b5(0x152),'univerAiLabel':_0x1529b5(0x14a),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x1529b5(0x1fc),'apiKeyTooShort':_0x1529b5(0x194),'invalidConfig':_0x1529b5(0x1a6),'invalidApiKey':_0x1529b5(0xd4)},'connectionStatus':{'disconnected':_0x1529b5(0x120),'connecting':_0x1529b5(0x12c),'connected':_0x1529b5(0x1c9),'failed':_0x1529b5(0x11e),'retrying':_0x1529b5(0x181)},'connectionError':{'unauthorized':_0x1529b5(0xb6),'sessionOccupied':_0x1529b5(0xbd),'networkError':_0x1529b5(0x12b),'maxRetriesExceeded':_0x1529b5(0x1c1)}}},An={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':'MCP\x20连接中...','connected':'MCP\x20已连接','failed':_0x1529b5(0xbe),'retrying':_0x1529b5(0x146),'unknown':_0x1529b5(0x12a),'unauthorized':_0x1529b5(0x12e),'sessionOccupied':_0x1529b5(0x12f),'networkError':_0x1529b5(0xab),'maxRetriesExceeded':_0x1529b5(0x1d2),'clickToConnect':_0x1529b5(0x14d),'clickToConfigure':_0x1529b5(0x1b6)},'mcpConfig':{'title':'MCP\x20配置','description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x1529b5(0x1ee),'apiKeyPlaceholder':_0x1529b5(0x18a),'apiKeyHint':_0x1529b5(0x1bd),'enableAuth':'启用身份验证','enableAuthHint':_0x1529b5(0x1d1),'connectionInfo':_0x1529b5(0x1ea),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x1529b5(0xbb),'configStepTitle':'配置步骤:','configStep1':_0x1529b5(0x141),'configStep2':_0x1529b5(0x15e),'configStep3':_0x1529b5(0x180),'sessionId':_0x1529b5(0x138),'sessionIdDescription':_0x1529b5(0x1b0),'authorizationDescription':_0x1529b5(0x144),'configParameters':_0x1529b5(0x1ac),'maxRetries':'最大重试次数','save':_0x1529b5(0x1ba),'saving':_0x1529b5(0x199),'note1':_0x1529b5(0xc4),'note2':_0x1529b5(0x131),'configSaved':_0x1529b5(0x1db),'configError':_0x1529b5(0x142),'apiApplyInfo':{'title':_0x1529b5(0xac),'description':_0x1529b5(0xd2),'univerAiLabel':_0x1529b5(0x189),'getStarted':_0x1529b5(0x1dc)},'validation':{'apiKeyRequired':_0x1529b5(0x10e),'apiKeyTooShort':_0x1529b5(0x19f),'invalidConfig':_0x1529b5(0x1d3),'invalidApiKey':_0x1529b5(0x15a)},'connectionStatus':{'disconnected':'未连接','connecting':_0x1529b5(0xf5),'connected':_0x1529b5(0x1c0),'failed':'连接失败','retrying':_0x1529b5(0xc2)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x1529b5(0x187),'networkError':_0x1529b5(0x123),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var fn=Object[_0x1529b5(0xcb)],hn=Object['getOwnPropertyDescriptor'],Cn=(_0xe64e11,_0x1a2c9c,_0x472817)=>_0x1a2c9c in _0xe64e11?fn(_0xe64e11,_0x1a2c9c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x472817}):_0xe64e11[_0x1a2c9c]=_0x472817,mn=(_0x1837ea,_0x3d5db4,_0x11727f,_0x5064ec)=>{for(var _0x1dd328=_0x5064ec>0x1?void 0x0:_0x5064ec?hn(_0x3d5db4,_0x11727f):_0x3d5db4,_0x44d5a2=_0x1837ea['length']-0x1,_0x23c8d5;_0x44d5a2>=0x0;_0x44d5a2--)(_0x23c8d5=_0x1837ea[_0x44d5a2])&&(_0x1dd328=_0x23c8d5(_0x1dd328)||_0x1dd328);return _0x1dd328;},P=(_0x44af86,_0x5b0c11)=>(_0x3da71e,_0x34cf77)=>_0x5b0c11(_0x3da71e,_0x34cf77,_0x44af86),_n=(_0x165d73,_0x2b7970,_0x56a1f5)=>Cn(_0x165d73,_0x2b7970+'',_0x56a1f5);let j=class extends _0x4b4398{constructor(_0x4da6aa=ie,_0x4ac114,_0x5cacd9,_0x1104dc,_0x57d601,_0x5a23fe){const _0x2b0c25=_0x1529b5;super(),this[_0x2b0c25(0x101)]=_0x4da6aa,this[_0x2b0c25(0x15c)]=_0x4ac114,this[_0x2b0c25(0x169)]=_0x5cacd9,this[_0x2b0c25(0xfe)]=_0x1104dc,this[_0x2b0c25(0xe2)]=_0x57d601,this[_0x2b0c25(0x1bb)]=_0x5a23fe;const {..._0x52019f}=_0x403799({},ie,this[_0x2b0c25(0x101)]);this['_configService'][_0x2b0c25(0x119)](y,_0x52019f);}async[_0x1529b5(0xc5)](){const _0x3e7306=_0x1529b5,_0x3f3ca9=[[O],[I],[D]];this[_0x3e7306(0x15c)]['has'](_0x490fbe)||_0x3f3ca9[_0x3e7306(0xb4)]([_0x490fbe,{'useClass':_0x56fc21}]),_0x3f3ca9['forEach'](_0x2fb8d3=>this[_0x3e7306(0x15c)][_0x3e7306(0x16f)](_0x2fb8d3)),this[_0x3e7306(0x15c)][_0x3e7306(0x1d5)](O),this[_0x3e7306(0x15c)][_0x3e7306(0x1d5)](I),this[_0x3e7306(0x15c)][_0x3e7306(0x1d5)](D);}};_n(j,_0x1529b5(0x136),_0x1529b5(0x1f5)),j=mn([_0x51f2fd(_0x238564),P(0x1,_0x3196b9(_0x772e7d)),P(0x2,_0x4468c3),P(0x3,_0x6c712),P(0x4,_0x4818bf),P(0x5,_0x3196b9(_0x2c192b))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
|
|
1
|
+
const _0xacf1da=_0x4b27;(function(_0x2d9c69,_0x3f0747){const _0x3f1b90=_0x4b27,_0x25e1d7=_0x2d9c69();while(!![]){try{const _0x476839=parseInt(_0x3f1b90(0x2c3))/0x1*(parseInt(_0x3f1b90(0x2c9))/0x2)+parseInt(_0x3f1b90(0x283))/0x3+parseInt(_0x3f1b90(0x271))/0x4+parseInt(_0x3f1b90(0x223))/0x5*(parseInt(_0x3f1b90(0x19c))/0x6)+parseInt(_0x3f1b90(0x237))/0x7+parseInt(_0x3f1b90(0x241))/0x8+-parseInt(_0x3f1b90(0x1fa))/0x9;if(_0x476839===_0x3f0747)break;else _0x25e1d7['push'](_0x25e1d7['shift']());}catch(_0x5011f3){_0x25e1d7['push'](_0x25e1d7['shift']());}}}(_0x39e1,0xd744b));var Pe=Object['defineProperty'],Ee=(_0x1bd578,_0x4d1616,_0x90d72e)=>_0x4d1616 in _0x1bd578?Pe(_0x1bd578,_0x4d1616,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x90d72e}):_0x1bd578[_0x4d1616]=_0x90d72e,x=(_0x26efec,_0x4aa7ee,_0x10979f)=>Ee(_0x26efec,typeof _0x4aa7ee!=_0xacf1da(0x2d2)?_0x4aa7ee+'':_0x4aa7ee,_0x10979f);import{LocaleService as _0x15338f,Inject as _0x442f63,Injector as _0x2013e4,IConfigService as _0x296c1f,ILocalStorageService as _0x576474,ILogService as _0x295049,Disposable as _0x77b137,CommandType as _0x129d84,ICommandService as _0x4fe8e9,DependentOn as _0x481c34,Plugin as _0x1d583f,merge as _0x4a327f}from'@univerjs/core';import{jsxs as _0x34533d,jsx as _0x51e6b5}from'react/jsx-runtime';import{MCPConnectionStatus as _0x31c74b,MCPConnectionError as _0x24861d,MCPConnectionController as _0x1c7fd8,MCP_PLUGIN_CONFIG_KEY as _0x47dbd1,UniverMCPPlugin as _0x2d2749}from'@univerjs-pro/mcp';import{clsx as _0x369adb,Input as _0x4d9b91,Button as _0x49bfc6,MessageType as _0x3c6b08,Tooltip as _0x3623f0}from'@univerjs/design';import{useDependency as _0x588836,useObservable as _0x42f442,IUIPartsService as _0x2dc6d7,IDialogService as _0x3c6215,IMessageService as _0x5e496c,ComponentManager as _0x492589,connectInjector as _0x59c41c,BuiltInUIPart as _0x5447a5,MenuItemType as _0x260bc8,RibbonStartGroup as _0x592d1f,IMenuManagerService as _0x5de9d9}from'@univerjs/ui';function _0x39e1(){const _0x192a06=['UNAUTHORIZED','mcpStatus.connecting','show','MCPConfigPanel','MCP\x20Connection\x20Failed','showConfigPanel','MCP_UI_PLUGIN','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MenuIcon','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','mcpConfig.configInstructions','配置步骤:','2828652QnmFFv','Click\x20to\x20connect\x20MCP','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','mcpStatus.clickToConfigure','idSuffix','mergeMenu','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','Enable\x20Authentication','_uiPartsService','API\x20密钥不能为空','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','连接失败','mcpConfig.apiKeyHint','Univer\x20AI\x20Console','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','_initializeMenus','权限验证失败,请检查您的\x20API\x20密钥','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','424269lTFBEc','univer-size-4','MCP:\x20未授权','MCP:\x20Unauthorized','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','Univer\x20AI\x20控制台','push','MCP\x20客户端配置','round','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','univerjs-icon\x20univerjs-icon-','https://mcp.univer.ai/mcp/?univer_session_id=','配置无效','DISCONNECTED','currentColor','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','univer-flex\x20univer-items-center\x20univer-gap-2','_commandService','univer-text-blue-600','registerCommand','attrs','_validateConfig','重启您的\x20MCP\x20客户端以使配置生效','http://www.w3.org/2000/svg','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','value','MCP\x20重连中...','univer_session_id:','mcpConfig.apiApplyInfo.getStarted','mcpServerUrl','text','mcpStatus.disconnected','_dialogService','启用身份验证','复制以下\x20JSON\x20配置','NONE','next','univer-text-red-500','保存中...','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','mcpStatus.sessionOccupied','tag','path','getOwnPropertyDescriptor','off-line-icon','mcpStatus.maxRetriesExceeded','close','_initConfigSync','RETRYING','MCP:\x20超出最大重试次数','mcpConfig.connectionError.sessionOccupied','0\x200\x2016\x2016','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','svg','MCP\x20Retrying...','mcpConfig.note1','span','univer-space-y-2','url(#on-line-icon_clip0_910_349)','defs','CONNECTED','MCP:\x20网络错误','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','67GUicwu','evenodd','connectionError$','mcpConfig.connectionStatus.failed','SESSION_ID_OCCUPIED','mcpConfig.apiKeyPlaceholder','5706qpltpz','displayName','MAX_RETRIES_EXCEEDED','Configuration\x20Steps:','on-line-icon_clip0_910_349','MCP:\x20会话\x20ID\x20已被占用','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','pre','API\x20key\x20with\x20Bearer\x20prefix.','symbol','Authorization:','colorChannel1','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','open','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','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcpStatus.clickToConnect','_mcpConnectionController','mcpStatus.unknown','fill','univer-flex\x20univer-gap-3','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','连接中...','univer-flex-1','_configService','OnLineIcon','1em','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','Connected','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','_connectionController','univer-flex\x20univer-items-center\x20univer-gap-3','mcpConfig.configStepTitle','univer-flex\x20univer-items-start\x20univer-gap-2','mcpConfig.connectionError.unauthorized','MCP\x20连接失败','API\x20密钥长度至少需要\x2010\x20位','COMMAND','请输入您的\x20API\x20密钥','23508jQRWqB','div','register','error','_menuManagerService','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','mcpConfig.configStep3','mcpConfig.apiApplyInfo.description','_loading$','Configuration\x20saved\x20successfully','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20Notes:','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','_initAutoConnect','超出最大重试次数,请稍后再试','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','mcpConfig.connectionStatus.connecting','univer-bg-red-500','univer-min-w-0\x20univer-flex-1','bottom','off','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','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','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','Configuration\x20Parameters:','connectionStatus$','Bearer\x20','已连接','<SESSION_ID>','mcpConfig.connectionStatus.disconnected','启用身份验证以获得安全连接','MCP\x20Disconnected','mcpConfig.validation.invalidApiKey','MCP\x20状态未知','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mcpConfig.apiApplyInfo.univerAiLabel','getConfig','mask','M0\x200H16V16H0z','mcpConfig.saving','API\x20密钥','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','univer-flex\x20univer-flex-wrap\x20univer-gap-2','MCP\x20Connected','mcp-ui.command.openConfigPanel','0\x200\x2017\x2016','onStarting','showDeveloperTools','Connection\x20Failed','defineProperty','white','Copy\x20the\x20JSON\x20configuration\x20below','Save\x20Configuration','配置参数:','Disconnected','univer-flex\x20univer-items-start\x20univer-gap-3','string','_apiKey$','What\x20is\x20API\x20Key?','toString','mcpConfig.note2','API\x20密钥无效,请检查密钥是否正确','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','random','会话ID','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','_config$','mcpConfig.connectionError.networkError','univer-space-y-5','MCP\x20连接中...','mcpStatus.connected','\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','什么是\x20API\x20密钥?','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-space-y-4','enableAutoConnect','mcpConfig.description','NETWORK_ERROR','pluginName','xlink:href','univer-text-sm\x20univer-font-medium','MCP\x20Configuration','errorMessage','API\x20key\x20is\x20required','_messageService','warn','Max\x20Retries','help-icon','mcpStatus.failed','未连接','配置\x20MCP\x20使用\x20AI\x20操作电子表格','_mcpCoreConfig$','Get\x20your\x20API\x20key\x20in\x20seconds','mcpConfig.connectionInfo','23544270VFeMEE','MCP\x20已断开','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','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','CheckMarkIcon','univer.ai','map','MCP:\x20Session\x20ID\x20Occupied','https://console.univer.plus','API\x20Key','_initStatusComponent','_localeService','translate(.97)','mcpConfig.configParameters','MCP\x20Unknown\x20Status','_localStorageService','_loadStoredApiKey','none','apiKey','label','defIds','_injector','Session\x20ID','_initializeCommands','univer-text-xs\x20univer-text-gray-600','几秒钟内获取您的\x20API\x20密钥','mcpConfig.connectionStatus.retrying','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','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','_handleConfigure','univer-mr-2\x20univer-flex\x20univer-text-xl','最大重试次数','univer-space-y-3','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','univer-text-white','mcpConfig.apiApplyInfo.title','stringify','_createConfigPanelComponent','subscribe','FAILED','1935LJNGtc','univer-bg-green-500','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','assign','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','includes','getCurrentConfig','button','trim','__setCustomHeaders','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Failed\x20to\x20save\x20configuration','substring','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','noopener\x20noreferrer','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','getItem','mcpConfig.save','mcpStatus.retrying','mcpConfig.connectionError.maxRetriesExceeded','2074254jkFZnC','_config','OTHERS','Connecting...','OffLineIcon','validateApiKey','has','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','disposeWithMe','CONNECTING','5163552LEvCZq','Error','_registerComponent','add','_blank','off-line-icon_clip0_910_343','children','clipPath','将配置添加到您的\x20MCP\x20客户端设置文件中','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','UniverIcon','mcpConfig.title','Enter\x20your\x20API\x20key','Retrying...','mcp-config-dialog','univer-text-xs\x20univer-text-gray-500','univer.plus','点击配置\x20MCP','forEach','entries','url(#$1','mcpConfig.connectionStatus.connected','on-line-icon','MCP:\x20Network\x20Error','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','您的\x20API\x20密钥安全存储在本地存储中','将以下配置添加到您的\x20MCP\x20客户端设置中:','mcpStatus.unauthorized','mcp.apiKey','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','setItem','配置保存成功','MCP\x20Client\x20Configuration','length','get','univer-shrink-0\x20univer-text-blue-500'];_0x39e1=function(){return _0x192a06;};return _0x39e1();}import{BehaviorSubject as _0x39a510}from'rxjs';import{useRef as _0x4e9948,createElement as _0x9ffa84,forwardRef as _0x799798,useState as _0x49f51b,useCallback as _0x35fc90}from'react';import{ISocketService as _0x52938c,WebSocketService as _0x34bb74}from'@univerjs/network';function b({ref:_0x7c9b6e,..._0x142a06}){const _0x5f1b59=_0xacf1da,{icon:_0x57ec3d,id:_0x57cddb,className:_0x5b24ad,extend:_0x2317e8,..._0x38e11d}=_0x142a06,_0x152740=(_0x5f1b59(0x28e)+_0x57cddb+'\x20'+(_0x5b24ad||''))['trim'](),_0x1832eb=_0x4e9948('_'+We());return ae(_0x57ec3d,''+_0x57cddb,{'defIds':_0x57ec3d[_0x5f1b59(0x20f)],'idSuffix':_0x1832eb['current']},{'ref':_0x7c9b6e,'className':_0x152740,..._0x38e11d},_0x2317e8);}function ae(_0x585b8f,_0x35daa8,_0x12ee20,_0x3bc82d,_0x14c7b0){const _0x575731=_0xacf1da;return _0x9ffa84(_0x585b8f['tag'],{'key':_0x35daa8,...Ye(_0x585b8f,_0x12ee20,_0x14c7b0),..._0x3bc82d},(Ze(_0x585b8f,_0x12ee20)[_0x575731(0x247)]||[])[_0x575731(0x201)]((_0x18281f,_0x28473e)=>ae(_0x18281f,_0x35daa8+'-'+_0x585b8f[_0x575731(0x2ad)]+'-'+_0x28473e,_0x12ee20,void 0x0,_0x14c7b0)));}function Ye(_0x2a52a0,_0x3423a6,_0x528e2e){const _0x3c5d7e=_0xacf1da,_0x4a2e2d={..._0x2a52a0[_0x3c5d7e(0x298)]};_0x528e2e!=null&&_0x528e2e[_0x3c5d7e(0x2d4)]&&_0x4a2e2d[_0x3c5d7e(0x2dc)]===_0x3c5d7e(0x2d4)&&(_0x4a2e2d[_0x3c5d7e(0x2dc)]=_0x528e2e[_0x3c5d7e(0x2d4)]),_0x2a52a0[_0x3c5d7e(0x2ad)]===_0x3c5d7e(0x1c1)&&_0x4a2e2d['id']&&(_0x4a2e2d['id']=_0x4a2e2d['id']+_0x3423a6['idSuffix']),Object[_0x3c5d7e(0x254)](_0x4a2e2d)[_0x3c5d7e(0x253)](([_0x42e1d1,_0x594032])=>{const _0x28fbf9=_0x3c5d7e;_0x42e1d1===_0x28fbf9(0x1c1)&&typeof _0x594032==_0x28fbf9(0x1d4)&&(_0x4a2e2d[_0x42e1d1]=_0x594032['replace'](/url\(#(.*)\)/,_0x28fbf9(0x255)+_0x3423a6[_0x28fbf9(0x275)]+')'));});const {defIds:_0x4232ed}=_0x3423a6;return!_0x4232ed||_0x4232ed['length']===0x0||(_0x2a52a0[_0x3c5d7e(0x2ad)]==='use'&&_0x4a2e2d['xlink:href']&&(_0x4a2e2d[_0x3c5d7e(0x1eb)]=_0x4a2e2d[_0x3c5d7e(0x1eb)]+_0x3423a6[_0x3c5d7e(0x275)]),Object[_0x3c5d7e(0x254)](_0x4a2e2d)[_0x3c5d7e(0x253)](([_0x1cd42c,_0x1d5eac])=>{const _0x66bd2d=_0x3c5d7e;typeof _0x1d5eac==_0x66bd2d(0x1d4)&&(_0x4a2e2d[_0x1cd42c]=_0x1d5eac['replace'](/url\(#(.*)\)/,_0x66bd2d(0x255)+_0x3423a6[_0x66bd2d(0x275)]+')'));})),_0x4a2e2d;}function Ze(_0x533107,_0x3b7559){const _0x270ec7=_0xacf1da;var _0xbe8e4f;const {defIds:_0x1cb6e1}=_0x3b7559;return!_0x1cb6e1||_0x1cb6e1['length']===0x0?_0x533107:_0x533107[_0x270ec7(0x2ad)]==='defs'&&((_0xbe8e4f=_0x533107[_0x270ec7(0x247)])!=null&&_0xbe8e4f[_0x270ec7(0x262)])?{..._0x533107,'children':_0x533107[_0x270ec7(0x247)][_0x270ec7(0x201)](_0x1b6e7a=>typeof _0x1b6e7a[_0x270ec7(0x298)]['id']==_0x270ec7(0x1d4)&&_0x1cb6e1&&_0x1cb6e1[_0x270ec7(0x228)](_0x1b6e7a['attrs']['id'])?{..._0x1b6e7a,'attrs':{..._0x1b6e7a[_0x270ec7(0x298)],'id':_0x1b6e7a[_0x270ec7(0x298)]['id']+_0x3b7559[_0x270ec7(0x275)]}}:_0x1b6e7a)}:_0x533107;}function We(){const _0x1455dc=_0xacf1da;return Math[_0x1455dc(0x1db)]()[_0x1455dc(0x1d7)](0x24)[_0x1455dc(0x22f)](0x2,0x8);}b[_0xacf1da(0x2ca)]=_0xacf1da(0x24b);const qe={'tag':'svg','attrs':{'xmlns':_0xacf1da(0x29b),'fill':_0xacf1da(0x20c),'viewBox':_0xacf1da(0x2b7),'width':_0xacf1da(0x18f),'height':_0xacf1da(0x18f)},'children':[{'tag':_0xacf1da(0x2ae),'attrs':{'fill':'currentColor','d':_0xacf1da(0x1a1),'fillRule':_0xacf1da(0x2c4),'clipRule':_0xacf1da(0x2c4)}}]},le=_0x799798(function(_0x30d3ad,_0x1fddaa){const _0x4c2ef9=_0xacf1da;return _0x9ffa84(b,Object[_0x4c2ef9(0x226)]({},_0x30d3ad,{'id':'check-mark-icon','ref':_0x1fddaa,'icon':qe}));});le[_0xacf1da(0x2ca)]=_0xacf1da(0x1ff);const Xe={'tag':_0xacf1da(0x2b9),'attrs':{'xmlns':_0xacf1da(0x29b),'fill':_0xacf1da(0x20c),'viewBox':_0xacf1da(0x2b7),'width':'1em','height':_0xacf1da(0x18f)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':'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'}}]},ue=_0x799798(function(_0x2c9038,_0x12f48b){const _0x3fda40=_0xacf1da;return _0x9ffa84(b,Object[_0x3fda40(0x226)]({},_0x2c9038,{'id':'close-icon','ref':_0x12f48b,'icon':Xe}));});ue[_0xacf1da(0x2ca)]='CloseIcon';const Je={'tag':_0xacf1da(0x2b9),'attrs':{'xmlns':_0xacf1da(0x29b),'fill':_0xacf1da(0x20c),'viewBox':_0xacf1da(0x2b7),'width':'1em','height':_0xacf1da(0x18f)},'children':[{'tag':_0xacf1da(0x2ae),'attrs':{'fill':_0xacf1da(0x292),'d':_0xacf1da(0x26e)}},{'tag':_0xacf1da(0x2ae),'attrs':{'fill':_0xacf1da(0x292),'d':_0xacf1da(0x259)}},{'tag':'path','attrs':{'fill':_0xacf1da(0x292),'d':_0xacf1da(0x1b3),'fillRule':_0xacf1da(0x2c4),'clipRule':'evenodd'}}]},ve=_0x799798(function(_0x1e3567,_0x12c796){const _0x22a0be=_0xacf1da;return _0x9ffa84(b,Object['assign']({},_0x1e3567,{'id':_0x22a0be(0x1f3),'ref':_0x12c796,'icon':Je}));});function _0x4b27(_0x17b94c,_0xc16f50){const _0x39e150=_0x39e1();return _0x4b27=function(_0x4b27d0,_0x1b9b46){_0x4b27d0=_0x4b27d0-0x18d;let _0x159ab3=_0x39e150[_0x4b27d0];return _0x159ab3;},_0x4b27(_0x17b94c,_0xc16f50);}ve[_0xacf1da(0x2ca)]='HelpIcon';const Qe={'tag':_0xacf1da(0x2b9),'attrs':{'xmlns':_0xacf1da(0x29b),'fill':_0xacf1da(0x20c),'viewBox':_0xacf1da(0x2b7),'width':_0xacf1da(0x18f),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0xacf1da(0x2ae),'attrs':{'stroke':'currentColor','d':_0xacf1da(0x1b1),'strokeLinecap':'round','strokeLinejoin':_0xacf1da(0x28c),'strokeWidth':1.2}}]},{'tag':_0xacf1da(0x2bf),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0xacf1da(0x246)},'children':[{'tag':_0xacf1da(0x2ae),'attrs':{'fill':_0xacf1da(0x1ce),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-icon_clip0_910_343']},de=_0x799798(function(_0x242884,_0x527c92){const _0x3e24d3=_0xacf1da;return _0x9ffa84(b,Object[_0x3e24d3(0x226)]({},_0x242884,{'id':_0x3e24d3(0x2b0),'ref':_0x527c92,'icon':Qe}));});de[_0xacf1da(0x2ca)]=_0xacf1da(0x23b);const en={'tag':_0xacf1da(0x2b9),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xacf1da(0x20c),'viewBox':_0xacf1da(0x1c9),'width':'1em','height':_0xacf1da(0x18f)},'children':[{'tag':'g','attrs':{'clipPath':_0xacf1da(0x2be)},'children':[{'tag':'path','attrs':{'stroke':_0xacf1da(0x292),'d':_0xacf1da(0x1e5),'strokeLinecap':_0xacf1da(0x28c),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0xacf1da(0x2bf),'attrs':{},'children':[{'tag':_0xacf1da(0x248),'attrs':{'id':_0xacf1da(0x2cd)},'children':[{'tag':_0xacf1da(0x2ae),'attrs':{'fill':_0xacf1da(0x1ce),'d':_0xacf1da(0x1c2),'transform':_0xacf1da(0x207)}}]}]}],'defIds':[_0xacf1da(0x2cd)]},ge=_0x799798(function(_0x24bb19,_0x580586){const _0x26d179=_0xacf1da;return _0x9ffa84(b,Object[_0x26d179(0x226)]({},_0x24bb19,{'id':_0x26d179(0x257),'ref':_0x580586,'icon':en}));});ge[_0xacf1da(0x2ca)]=_0xacf1da(0x18e);function nn(_0x282240){const _0x51a998=_0xacf1da;var _0x16bd8a,_0x3e410f;const {mcpCoreConfig:_0x59c40a,onSave:_0x4bdc15,loading:_0xc44cc2=!0x1,config:_0xd2fb4d,connectionStatus$:_0x11ecae,connectionError$:_0x10cac1,currentApiKey$:_0x1c5110,currentSessionId$:_0x19a0c9}=_0x282240,_0x27e99d=_0x588836(_0x15338f),_0x45576e=_0x42f442(_0x11ecae,_0x31c74b[_0x51a998(0x291)]),_0x5a0fa7=_0x42f442(_0x10cac1,_0x24861d[_0x51a998(0x2a7)]),_0x2a22ec=_0x42f442(_0x19a0c9,''),_0x3a6383=_0x42f442(_0x1c5110,''),[_0x35e640,_0x307237]=_0x49f51b(_0x3a6383||''),_0x5bc6c1=!0x0,_0x5f435d=_0xd2fb4d[_0x51a998(0x1cb)]&&_0x59c40a[_0x51a998(0x2a1)]&&(_0x59c40a['mcpServerUrl'][_0x51a998(0x228)](_0x51a998(0x251))||_0x59c40a[_0x51a998(0x2a1)]['includes'](_0x51a998(0x200))),_0x3cf631=(_0x16bd8a=_0x59c40a[_0x51a998(0x2a1)])==null?void 0x0:_0x16bd8a[_0x51a998(0x228)](_0x51a998(0x251)),_0x5300cc=(_0x3e410f=_0x59c40a[_0x51a998(0x2a1)])==null?void 0x0:_0x3e410f['includes'](_0x51a998(0x200)),_0x4d434d=_0x3cf631?_0x51a998(0x203):'https://console.univer.ai',_0x4f39ec=_0xd2fb4d['showDeveloperTools']&&(_0x3cf631||_0x5300cc),[_0x379bdc,_0x4d12d4]=_0x49f51b(!_0x35e640[_0x51a998(0x22b)]()),_0x555917=(_0x4e6332,_0x286b77)=>{const _0xcbfbe1=_0x51a998;if(_0x286b77===_0x24861d[_0xcbfbe1(0x265)])return _0xcbfbe1(0x23e);switch(_0x4e6332){case _0x31c74b[_0xcbfbe1(0x2c0)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x31c74b['CONNECTING']:case _0x31c74b['RETRYING']:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case _0x31c74b[_0xcbfbe1(0x222)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x2d940e=(_0x25bcca,_0x2fa272)=>{const _0x47bc92=_0x51a998;if(_0x2fa272===_0x24861d[_0x47bc92(0x265)])return _0x47bc92(0x1ad);switch(_0x25bcca){case _0x31c74b[_0x47bc92(0x2c0)]:return _0x47bc92(0x224);case _0x31c74b[_0x47bc92(0x240)]:case _0x31c74b[_0x47bc92(0x2b4)]:return'univer-bg-blue-500';case _0x31c74b[_0x47bc92(0x222)]:return _0x47bc92(0x1ad);default:return'univer-bg-gray-500';}},_0x26f0d6=_0x114357=>{const _0x2dd87d=_0x51a998;switch(_0x114357){case _0x31c74b[_0x2dd87d(0x2c0)]:return _0x27e99d['t'](_0x2dd87d(0x256));case _0x31c74b[_0x2dd87d(0x240)]:return _0x27e99d['t'](_0x2dd87d(0x1ac));case _0x31c74b[_0x2dd87d(0x222)]:return _0x27e99d['t'](_0x2dd87d(0x2c6));case _0x31c74b[_0x2dd87d(0x2b4)]:return _0x27e99d['t'](_0x2dd87d(0x215));default:return _0x27e99d['t'](_0x2dd87d(0x1b9));}},_0x51e4c1=_0x312591=>{const _0x36719b=_0x51a998;switch(_0x312591){case _0x24861d[_0x36719b(0x265)]:return _0x27e99d['t'](_0x36719b(0x197));case _0x24861d[_0x36719b(0x2c7)]:return _0x27e99d['t'](_0x36719b(0x2b6));case _0x24861d[_0x36719b(0x1e9)]:return _0x27e99d['t'](_0x36719b(0x1df));case _0x24861d[_0x36719b(0x2cb)]:return _0x27e99d['t'](_0x36719b(0x236));default:return'';}},_0x45836d=_0x35fc90(()=>{const _0x42c930=_0x51a998,_0x5bb403={..._0x59c40a,'apiKey':_0x35e640[_0x42c930(0x22b)](),'enableAuth':_0x5bc6c1};_0x4bdc15(_0x5bb403);},[_0x59c40a,_0x35e640,_0x5bc6c1,_0x4bdc15]),_0x2b077b=_0x35e640[_0x51a998(0x22b)]()[_0x51a998(0x262)]>0x0;return _0x34533d(_0x51a998(0x19d),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x51e6b5(_0x51a998(0x19d),{'className':_0x51a998(0x29c),'children':_0x34533d('div',{'className':_0x51a998(0x194),'children':[_0x51e6b5(_0x51a998(0x19d),{'className':'univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':_0x51e6b5('span',{'className':_0x51a998(0x21d),'children':'⚙'})}),_0x51e6b5('div',{'children':_0x51e6b5('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x27e99d['t'](_0x51a998(0x1e8))})})]})}),_0x34533d(_0x51a998(0x19d),{'className':_0x51a998(0x2ab),'children':[_0x51e6b5(_0x51a998(0x19d),{'className':_0x369adb(_0x51a998(0x1da),_0x555917(_0x45576e,_0x5a0fa7)),'children':_0x34533d('div',{'className':_0x51a998(0x294),'children':[_0x51e6b5(_0x51a998(0x19d),{'className':_0x369adb('univer-size-2\x20univer-rounded-full',_0x2d940e(_0x45576e,_0x5a0fa7))}),_0x51e6b5(_0x51a998(0x2bc),{'className':_0x51a998(0x1ec),'children':_0x26f0d6(_0x45576e)})]})}),_0x5a0fa7!==_0x24861d['NONE']&&(_0x45576e===_0x31c74b[_0x51a998(0x222)]||_0x5a0fa7===_0x24861d[_0x51a998(0x265)])&&_0x51e6b5('div',{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x34533d(_0x51a998(0x19d),{'className':_0x51a998(0x196),'children':[_0x51e6b5(_0x51a998(0x2bc),{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0x51e6b5('p',{'className':_0x51a998(0x28d),'children':_0x51e4c1(_0x5a0fa7)})]})})]}),_0x51e6b5(_0x51a998(0x19d),{'className':_0x51a998(0x230),'children':_0x34533d(_0x51a998(0x19d),{'className':_0x51a998(0x1e0),'children':[_0x34533d(_0x51a998(0x19d),{'className':_0x51a998(0x2bd),'children':[_0x34533d(_0x51a998(0x20e),{'className':_0x51a998(0x21c),'children':[_0x51e6b5(_0x51a998(0x2bc),{'children':'🔑'}),'\x20',_0x27e99d['t']('mcpConfig.apiKey'),_0x51e6b5(_0x51a998(0x2bc),{'className':'univer-text-red-500','children':'*'}),_0x5f435d&&_0x51e6b5('a',{'className':_0x51a998(0x2d7),'title':_0x27e99d['t'](_0x51a998(0x21e)),'role':_0x51a998(0x22a),'onClick':()=>_0x4d12d4(!0x0),'children':_0x51e6b5(ve,{})})]}),_0x51e6b5(_0x4d9b91,{'type':_0x51a998(0x2a2),'placeholder':_0x27e99d['t'](_0x51a998(0x2c8)),'value':_0x35e640,'disabled':_0xc44cc2,'autoComplete':_0x51a998(0x1b0),'onChange':_0x307237}),_0x51e6b5('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x27e99d['t'](_0x51a998(0x27d))})]}),_0x5f435d&&_0x379bdc&&_0x34533d(_0x51a998(0x19d),{'className':_0x51a998(0x216),'children':[_0x51e6b5('a',{'className':_0x51a998(0x27b),'role':_0x51a998(0x22a),'onClick':()=>_0x4d12d4(!0x1),'children':_0x51e6b5(ue,{'className':_0x51a998(0x284)})}),_0x34533d(_0x51a998(0x19d),{'className':_0x51a998(0x277),'children':[_0x51e6b5(_0x51a998(0x19d),{'className':_0x51a998(0x288),'children':_0x51e6b5(_0x51a998(0x2bc),{'className':_0x51a998(0x296),'children':'🚀'})}),_0x34533d('div',{'className':_0x51a998(0x2e1),'children':[_0x51e6b5('h4',{'className':_0x51a998(0x1fc),'children':_0x27e99d['t'](_0x51a998(0x21e))}),_0x51e6b5('p',{'className':_0x51a998(0x190),'children':_0x27e99d['t'](_0x51a998(0x1a3))}),_0x51e6b5(_0x51a998(0x19d),{'className':_0x51a998(0x1c6),'children':_0x4f39ec&&_0x34533d('a',{'className':_0x51a998(0x227),'href':_0x4d434d,'target':_0x51a998(0x245),'rel':_0x51a998(0x231),'children':[_0x51e6b5(_0x51a998(0x2bc),{'children':'🤖'}),_0x27e99d['t'](_0x51a998(0x1bf)),_0x51e6b5(_0x51a998(0x2bc),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x34533d(_0x51a998(0x19d),{'className':_0x51a998(0x1be),'children':['✨','\x20',_0x27e99d['t'](_0x51a998(0x2a0))]})]})]})]}),_0xd2fb4d['showDeveloperTools']&&_0x34533d(_0x51a998(0x19d),{'className':_0x51a998(0x25e),'children':[_0x34533d('h4',{'className':_0x51a998(0x2df),'children':[_0x51e6b5('span',{'children':'🔗'}),'\x20',_0x27e99d['t'](_0x51a998(0x1f9))]}),_0x34533d(_0x51a998(0x19d),{'className':_0x51a998(0x1e6),'children':[_0x34533d(_0x51a998(0x19d),{'className':_0x51a998(0x21b),'children':[_0x51e6b5('p',{'className':_0x51a998(0x213),'children':_0x27e99d['t'](_0x51a998(0x26f))}),_0x34533d(_0x51a998(0x19d),{'className':_0x51a998(0x2bd),'children':[_0x51e6b5(_0x51a998(0x19d),{'className':_0x51a998(0x2d5),'children':_0x27e99d['t'](_0x51a998(0x195))}),_0x34533d('div',{'className':_0x51a998(0x225),'children':[_0x34533d(_0x51a998(0x19d),{'className':_0x51a998(0x294),'children':[_0x51e6b5('span',{'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':'1'}),_0x27e99d['t']('mcpConfig.configStep1')]}),_0x34533d('div',{'className':_0x51a998(0x294),'children':[_0x51e6b5(_0x51a998(0x2bc),{'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':'2'}),_0x27e99d['t']('mcpConfig.configStep2')]}),_0x34533d('div',{'className':_0x51a998(0x294),'children':[_0x51e6b5(_0x51a998(0x2bc),{'className':_0x51a998(0x1fe),'children':'3'}),_0x27e99d['t'](_0x51a998(0x1a2))]})]})]})]}),_0x34533d(_0x51a998(0x19d),{'className':_0x51a998(0x2bd),'children':[_0x51e6b5('div',{'className':_0x51a998(0x2d5),'children':'MCP\x20Configuration'}),_0x51e6b5(_0x51a998(0x19d),{'className':_0x51a998(0x282),'children':_0x51e6b5(_0x51a998(0x2d0),{'className':_0x51a998(0x217),'children':JSON[_0x51a998(0x21f)]({'mcpServers':{'univer':{'url':_0x51a998(0x28f)+(_0x2a22ec||_0x51a998(0x1b8)),'type':'http','headers':{'Authorization':_0x51a998(0x1b6)+(_0x35e640||'<API_KEY>')}}}},null,0x2)})})]}),_0x34533d(_0x51a998(0x19d),{'className':'univer-space-y-3','children':[_0x51e6b5(_0x51a998(0x19d),{'className':_0x51a998(0x2d5),'children':_0x27e99d['t'](_0x51a998(0x208))}),_0x34533d(_0x51a998(0x19d),{'className':_0x51a998(0x2bd),'children':[_0x34533d('div',{'className':_0x51a998(0x1d3),'children':[_0x51e6b5('div',{'className':_0x51a998(0x2de)}),_0x34533d('div',{'className':_0x51a998(0x1ae),'children':[_0x51e6b5(_0x51a998(0x19d),{'className':_0x51a998(0x2d8),'children':_0x51a998(0x29f)}),_0x51e6b5(_0x51a998(0x19d),{'className':_0x51a998(0x250),'children':_0x27e99d['t']('mcpConfig.sessionIdDescription')})]})]}),_0x34533d(_0x51a998(0x19d),{'className':_0x51a998(0x1d3),'children':[_0x51e6b5(_0x51a998(0x19d),{'className':_0x51a998(0x2de)}),_0x34533d(_0x51a998(0x19d),{'className':_0x51a998(0x1ae),'children':[_0x51e6b5(_0x51a998(0x19d),{'className':_0x51a998(0x2d8),'children':_0x51a998(0x2d3)}),_0x51e6b5(_0x51a998(0x19d),{'className':_0x51a998(0x250),'children':_0x27e99d['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x51e6b5(_0x49bfc6,{'onClick':_0x45836d,'disabled':!_0x2b077b||_0xc44cc2,'className':_0x51a998(0x1b2),'children':_0xc44cc2?_0x34533d(_0x51a998(0x2bc),{'className':_0x51a998(0x294),'children':[_0x51e6b5(_0x51a998(0x2bc),{'children':'⟲'}),_0x27e99d['t'](_0x51a998(0x1c3))]}):_0x34533d(_0x51a998(0x2bc),{'className':_0x51a998(0x294),'children':[_0x51e6b5(le,{}),_0x27e99d['t'](_0x51a998(0x234))]})}),_0x51e6b5(_0x51a998(0x19d),{'className':_0x51a998(0x192),'children':_0x34533d(_0x51a998(0x19d),{'className':_0x51a998(0x2dd),'children':[_0x51e6b5(_0x51a998(0x2bc),{'className':_0x51a998(0x264),'children':'💡'}),_0x34533d(_0x51a998(0x19d),{'className':_0x51a998(0x24a),'children':[_0x51e6b5(_0x51a998(0x19d),{'className':'univer-font-medium','children':_0x51a998(0x1a7)}),_0x34533d(_0x51a998(0x19d),{'children':['•',_0x27e99d['t'](_0x51a998(0x2bb))]}),_0x34533d(_0x51a998(0x19d),{'children':['•',_0x27e99d['t'](_0x51a998(0x1d8))]})]})]})})]})})]});}const y='mcp-ui.config',ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0xacf1da(0x2af)],tn=(_0xd0f1ea,_0x2e0cdb,_0x27e009,_0x3919bb)=>{const _0x2a010c=_0xacf1da;for(var _0x22e574=_0x3919bb>0x1?void 0x0:_0x3919bb?rn(_0x2e0cdb,_0x27e009):_0x2e0cdb,_0x335929=_0xd0f1ea[_0x2a010c(0x262)]-0x1,_0x591b93;_0x335929>=0x0;_0x335929--)(_0x591b93=_0xd0f1ea[_0x335929])&&(_0x22e574=_0x591b93(_0x22e574)||_0x22e574);return _0x22e574;},d=(_0x158dbd,_0x35b573)=>(_0x31af80,_0x32a96e)=>_0x35b573(_0x31af80,_0x32a96e,_0x158dbd);const U=_0xacf1da(0x25d),L=_0xacf1da(0x24f);let I=class extends _0x77b137{constructor(_0x418469,_0x508633,_0x3e593a,_0xaa65d0,_0x289ea8,_0x2dee30,_0x2275be,_0x3544f5,_0x9f7ff7,_0x51964c){const _0x2af5a5=_0xacf1da;super(),x(this,_0x2af5a5(0x1a4),new _0x39a510(!0x1)),x(this,'_mcpCoreConfig$',new _0x39a510({})),x(this,_0x2af5a5(0x1de),new _0x39a510({})),x(this,_0x2af5a5(0x1d5),new _0x39a510('')),x(this,'_handleConfigSave',async _0x5b76eb=>{const _0x51067b=_0x2af5a5;var _0xba6748,_0x44e627;this[_0x51067b(0x1a4)][_0x51067b(0x2a8)](!0x0);try{const _0x4919b7=await this[_0x51067b(0x299)](_0x5b76eb);if(!_0x4919b7['isValid']){this[_0x51067b(0x1f0)]['show']({'type':_0x3c6b08[_0x51067b(0x242)],'content':_0x4919b7[_0x51067b(0x1ee)]||this[_0x51067b(0x206)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x5b76eb[_0x51067b(0x20d)]?await this[_0x51067b(0x20a)][_0x51067b(0x25f)](U,_0x5b76eb[_0x51067b(0x20d)][_0x51067b(0x22b)]()):await this[_0x51067b(0x20a)]['removeItem'](U),this[_0x51067b(0x1d5)][_0x51067b(0x2a8)](((_0xba6748=_0x5b76eb[_0x51067b(0x20d)])==null?void 0x0:_0xba6748['trim']())||''),this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':_0x51067b(0x1b6)+((_0x44e627=_0x5b76eb[_0x51067b(0x20d)])==null?void 0x0:_0x44e627[_0x51067b(0x22b)]())}),this[_0x51067b(0x1f0)][_0x51067b(0x267)]({'type':_0x3c6b08['Success'],'content':this[_0x51067b(0x206)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0xf50492=_0x51067b;this[_0xf50492(0x2a4)][_0xf50492(0x2b2)](L);},0x320);}catch(_0x3c6edc){this['_logService'][_0x51067b(0x19f)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x3c6edc),this['_messageService']['show']({'type':_0x3c6b08[_0x51067b(0x242)],'content':this[_0x51067b(0x206)]['t']('mcpConfig.configError')});}finally{this[_0x51067b(0x1a4)][_0x51067b(0x2a8)](!0x1);}}),(this['_injector']=_0x418469,this[_0x2af5a5(0x279)]=_0x508633,this[_0x2af5a5(0x18d)]=_0x3e593a,this[_0x2af5a5(0x20a)]=_0xaa65d0,this[_0x2af5a5(0x2a4)]=_0x289ea8,this[_0x2af5a5(0x1f0)]=_0x2dee30,this['_componentManager']=_0x2275be,this['_localeService']=_0x3544f5,this['_logService']=_0x9f7ff7,this['_mcpConnectionController']=_0x51964c,this[_0x2af5a5(0x2b3)](),this[_0x2af5a5(0x20b)](),this['_registerComponent']());}[_0xacf1da(0x26a)](){const _0x375bba=_0xacf1da,_0x342273=this['_configService'][_0x375bba(0x1c0)](y);_0x342273!=null&&_0x342273[_0x375bba(0x1cb)]&&this[_0x375bba(0x2a4)][_0x375bba(0x2d6)]({'id':L,'title':{'title':this['_localeService']['t']('mcpConfig.title')},'children':{'label':_0x375bba(0x268)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x1543f0=_0x375bba;this[_0x1543f0(0x2a4)]['close'](L);}});}[_0xacf1da(0x229)](){const _0xc634d5=_0xacf1da;return this[_0xc634d5(0x1f7)]['value'];}[_0xacf1da(0x243)](){const _0x1433be=_0xacf1da;this['disposeWithMe'](this['_componentManager'][_0x1433be(0x19e)](_0x1433be(0x268),this[_0x1433be(0x220)]()));}[_0xacf1da(0x220)](){return _0x59c41c(()=>{const _0x45d251=_0x4b27;var _0x2b1b33,_0x149f67,_0x9927b4;return _0x51e6b5(nn,{'config':this['_config$']['value'],'mcpCoreConfig':this[_0x45d251(0x1f7)]['value'],'currentApiKey$':this[_0x45d251(0x1d5)],'onSave':this['_handleConfigSave'],'loading':this[_0x45d251(0x1a4)][_0x45d251(0x29d)],'connectionStatus$':(_0x2b1b33=this[_0x45d251(0x2da)])==null?void 0x0:_0x2b1b33[_0x45d251(0x1b5)],'connectionError$':(_0x149f67=this[_0x45d251(0x2da)])==null?void 0x0:_0x149f67[_0x45d251(0x2c5)],'currentSessionId$':(_0x9927b4=this[_0x45d251(0x2da)])==null?void 0x0:_0x9927b4['sessionId$']});},this['_injector']);}['_initConfigSync'](){const _0x4d9d82=_0xacf1da;this['disposeWithMe'](this[_0x4d9d82(0x18d)]['subscribeConfigValue$'](_0x47dbd1)[_0x4d9d82(0x221)](_0x42db70=>{const _0xac2573=_0x4d9d82;this[_0xac2573(0x1f7)]['next'](_0x42db70||{});}));const _0x4a622b=this[_0x4d9d82(0x18d)][_0x4d9d82(0x1c0)](_0x47dbd1);this[_0x4d9d82(0x1f7)][_0x4d9d82(0x2a8)](_0x4a622b||{}),this['disposeWithMe'](this[_0x4d9d82(0x18d)]['subscribeConfigValue$'](y)[_0x4d9d82(0x221)](_0x31758b=>{const _0x2d41ba=_0x4d9d82;this[_0x2d41ba(0x1de)][_0x2d41ba(0x2a8)](_0x31758b||{});}));const _0x59c47d=this[_0x4d9d82(0x18d)]['getConfig'](y);this['_config$'][_0x4d9d82(0x2a8)](_0x59c47d||{});}async['_loadStoredApiKey'](){const _0x4bf437=_0xacf1da,_0x31187e=this['_configService'][_0x4bf437(0x1c0)](y);if(!(_0x31187e!=null&&_0x31187e[_0x4bf437(0x1cb)]))return;const _0x2a56b=await this[_0x4bf437(0x20a)][_0x4bf437(0x233)](U);_0x2a56b&&(this[_0x4bf437(0x2da)][_0x4bf437(0x22c)]({'Authorization':_0x4bf437(0x1b6)+_0x2a56b}),this[_0x4bf437(0x1d5)]['next'](_0x2a56b));}async[_0xacf1da(0x299)](_0x12fffd){const _0x3826b4=_0xacf1da;if(!_0x12fffd[_0x3826b4(0x20d)]||_0x12fffd['apiKey'][_0x3826b4(0x22b)]()[_0x3826b4(0x262)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t']('mcpConfig.validation.apiKeyRequired')};if(_0x12fffd[_0x3826b4(0x20d)]['trim']()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x3826b4(0x206)]['t']('mcpConfig.validation.apiKeyTooShort')};try{const _0x51120c=await this[_0x3826b4(0x210)][_0x3826b4(0x263)](_0x1c7fd8)[_0x3826b4(0x23c)](_0x12fffd['apiKey'][_0x3826b4(0x22b)]());return _0x51120c['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x51120c[_0x3826b4(0x19f)]||this[_0x3826b4(0x206)]['t'](_0x3826b4(0x1bc))};}catch(_0x1470a8){return console[_0x3826b4(0x1f1)](_0x3826b4(0x2b8),_0x1470a8),{'isValid':!0x0};}}};I=tn([d(0x0,_0x442f63(_0x2013e4)),d(0x1,_0x2dc6d7),d(0x2,_0x296c1f),d(0x3,_0x576474),d(0x4,_0x3c6215),d(0x5,_0x5e496c),d(0x6,_0x442f63(_0x492589)),d(0x7,_0x442f63(_0x15338f)),d(0x8,_0x295049),d(0x9,_0x442f63(_0x1c7fd8))],I);const V={'id':_0xacf1da(0x1c8),'type':_0x129d84[_0xacf1da(0x19a)],'handler':async(_0x5eb3b4,_0x403039)=>(_0x5eb3b4[_0xacf1da(0x263)](I)[_0xacf1da(0x26a)](),!0x0)};function pe(_0x5222ae,_0x32fef3){const _0x2c2020=_0xacf1da;switch(_0x5222ae){case _0x31c74b[_0x2c2020(0x291)]:return _0x2c2020(0x2a3);case _0x31c74b[_0x2c2020(0x240)]:return _0x2c2020(0x266);case _0x31c74b[_0x2c2020(0x2c0)]:return _0x2c2020(0x1e2);case _0x31c74b['FAILED']:switch(_0x32fef3){case _0x24861d[_0x2c2020(0x265)]:return _0x2c2020(0x25c);case _0x24861d[_0x2c2020(0x2c7)]:return _0x2c2020(0x2ac);case _0x24861d[_0x2c2020(0x1e9)]:return'mcpStatus.networkError';case _0x24861d[_0x2c2020(0x2cb)]:return _0x2c2020(0x2b1);default:return _0x2c2020(0x1f4);}case _0x31c74b['RETRYING']:return _0x2c2020(0x235);default:return _0x2c2020(0x2db);}}function on(_0x504272,_0x17bd68,_0x4ab1a0,_0x1794c3=!0x0){const _0x27343c=_0xacf1da,_0x1bfada=pe(_0x504272,_0x17bd68),_0x1e5789=_0x4ab1a0['t'](_0x1bfada);return _0x1794c3?_0x504272===_0x31c74b[_0x27343c(0x291)]&&_0x17bd68===_0x24861d[_0x27343c(0x265)]?_0x1e5789+'\x20-\x20'+_0x4ab1a0['t'](_0x27343c(0x274)):_0x504272===_0x31c74b['CONNECTED']?''+_0x1e5789:_0x504272===_0x31c74b['DISCONNECTED']||_0x504272===_0x31c74b['FAILED']?_0x1e5789+'\x20-\x20'+_0x4ab1a0['t'](_0x27343c(0x2d9)):_0x1e5789:_0x1e5789;}function sn(_0x15b849){const _0x24dfba=_0xacf1da;switch(_0x15b849){case _0x31c74b[_0x24dfba(0x2c0)]:return'univer-text-green-500';case _0x31c74b['CONNECTING']:case _0x31c74b[_0x24dfba(0x2b4)]:return'univer-text-yellow-500';case _0x31c74b[_0x24dfba(0x222)]:case _0x31c74b['DISCONNECTED']:return _0x24dfba(0x2a9);default:return'univer-text-gray-500';}}function cn(_0x34aa17){const _0x500f6f=_0xacf1da,{status$:_0x44c973,error$:_0x25ebfb,onConfigure:_0x5355d5,showClickable:_0x21dbe7=!0x0}=_0x34aa17,_0x421c6d=_0x42f442(_0x44c973,_0x31c74b[_0x500f6f(0x291)]),_0x42f64f=_0x42f442(_0x25ebfb,_0x24861d[_0x500f6f(0x2a7)]),_0x54529f=_0x588836(_0x15338f),_0x3db81a=_0x421c6d===_0x31c74b[_0x500f6f(0x2c0)];_0x421c6d===_0x31c74b[_0x500f6f(0x240)]||_0x31c74b[_0x500f6f(0x2b4)];const _0xe8f250=_0x54529f['t'](pe(_0x421c6d,_0x42f64f)),_0x4d5ee3=on(_0x421c6d,_0x42f64f,_0x54529f,_0x21dbe7),_0x245482=sn(_0x421c6d),_0x5c32cd=_0x3db81a?_0x51e6b5(ge,{}):_0x51e6b5(de,{}),_0x247886=_0x35fc90(()=>{_0x21dbe7&&_0x5355d5&&_0x5355d5();},[_0x21dbe7,_0x5355d5]);function _0x19756e(){const _0x58feb5=_0x500f6f;return _0x34533d(_0x58feb5(0x19d),{'className':_0x369adb('univer-flex\x20univer-items-center',_0x21dbe7&&_0x5355d5&&_0x58feb5(0x1e3)),'role':'button','onClick':_0x21dbe7&&_0x5355d5?_0x247886:void 0x0,'children':[_0x51e6b5(_0x58feb5(0x19d),{'className':_0x369adb(_0x58feb5(0x219),_0x245482),'children':_0x5c32cd}),_0x51e6b5('div',{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0xe8f250})]});}return _0x51e6b5(_0x3623f0,{'title':_0x4d5ee3,'placement':_0x500f6f(0x1af),'children':_0x19756e()});}var an=Object['getOwnPropertyDescriptor'],ln=(_0x20f61b,_0x36ecb5,_0x46ee9e,_0x120230)=>{const _0x25ec98=_0xacf1da;for(var _0x142d5b=_0x120230>0x1?void 0x0:_0x120230?an(_0x36ecb5,_0x46ee9e):_0x36ecb5,_0x8c904f=_0x20f61b[_0x25ec98(0x262)]-0x1,_0x22923c;_0x8c904f>=0x0;_0x8c904f--)(_0x22923c=_0x20f61b[_0x8c904f])&&(_0x142d5b=_0x22923c(_0x142d5b)||_0x142d5b);return _0x142d5b;},M=(_0x501f16,_0xb837fd)=>(_0x2f5472,_0x43b997)=>_0xb837fd(_0x2f5472,_0x43b997,_0x501f16);let O=class extends _0x77b137{constructor(_0x5d2c9d,_0x13ce25,_0x240b84,_0x53399c){const _0x105709=_0xacf1da;super(),this[_0x105709(0x210)]=_0x5d2c9d,this[_0x105709(0x193)]=_0x13ce25,this['_uiPartsService']=_0x240b84,this[_0x105709(0x18d)]=_0x53399c,this['_initAutoConnect'](),this[_0x105709(0x205)]();}[_0xacf1da(0x1a9)](){const _0x405b73=_0xacf1da,_0x10047a=this[_0x405b73(0x18d)][_0x405b73(0x1c0)](y);_0x10047a!=null&&_0x10047a[_0x405b73(0x1cb)]&&(this[_0x405b73(0x193)][_0x405b73(0x1e7)]=!0x1);}['_initStatusComponent'](){const _0x5a5dd7=_0xacf1da,_0x3d4d5f=this[_0x5a5dd7(0x18d)][_0x5a5dd7(0x1c0)](y);(_0x3d4d5f==null?void 0x0:_0x3d4d5f['showStatus'])!==!0x1&&this[_0x5a5dd7(0x23f)](this[_0x5a5dd7(0x279)]['registerComponent'](_0x5447a5[_0x5a5dd7(0x1fd)],()=>{const _0x4fa25a=_0x5a5dd7;var _0x522871;return _0x59c41c(un({'status$':this[_0x4fa25a(0x193)][_0x4fa25a(0x1b5)],'error$':this[_0x4fa25a(0x193)][_0x4fa25a(0x2c5)],'onConfigure':()=>this[_0x4fa25a(0x218)](),'showClickable':(_0x522871=_0x3d4d5f==null?void 0x0:_0x3d4d5f[_0x4fa25a(0x1cb)])!=null?_0x522871:!0x1}),this['_injector']);}));}[_0xacf1da(0x218)](){const _0x187f4d=_0xacf1da;this['_injector'][_0x187f4d(0x263)](I)['showConfigPanel']();}};O=ln([M(0x0,_0x442f63(_0x2013e4)),M(0x1,_0x442f63(_0x1c7fd8)),M(0x2,_0x2dc6d7),M(0x3,_0x296c1f)],O);function un(_0x188fb5){const {status$:_0x33cd00,error$:_0x5d9192,onConfigure:_0x20f411,showClickable:_0x23bc0c}=_0x188fb5;return function(){return _0x51e6b5(cn,{'status$':_0x33cd00,'error$':_0x5d9192,'onConfigure':_0x20f411,'showClickable':_0x23bc0c});};}function vn(_0xd599bc){const _0x49ad4e=_0xacf1da;return{'id':V['id'],'type':_0x260bc8['BUTTON'],'icon':_0x49ad4e(0x26d),'title':'mcpConfig.title','tooltip':_0x49ad4e(0x24c)};}const dn={[_0x592d1f[_0xacf1da(0x239)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0xacf1da(0x2af)],pn=(_0x58ea8c,_0x5eb707,_0x4674e5,_0x4e4d77)=>{const _0x41b484=_0xacf1da;for(var _0x21c195=_0x4e4d77>0x1?void 0x0:_0x4e4d77?gn(_0x5eb707,_0x4674e5):_0x5eb707,_0x24c425=_0x58ea8c[_0x41b484(0x262)]-0x1,_0x89fffe;_0x24c425>=0x0;_0x24c425--)(_0x89fffe=_0x58ea8c[_0x24c425])&&(_0x21c195=_0x89fffe(_0x21c195)||_0x21c195);return _0x21c195;},re=(_0x6bf7ff,_0x69b804)=>(_0x5dcb83,_0x1ea2e0)=>_0x69b804(_0x5dcb83,_0x1ea2e0,_0x6bf7ff);let D=class extends _0x77b137{constructor(_0x427df7,_0x302ebd){const _0x389ce8=_0xacf1da;super(),this[_0x389ce8(0x295)]=_0x427df7,this[_0x389ce8(0x1a0)]=_0x302ebd,this['_initializeCommands'](),this['_initializeMenus']();}[_0xacf1da(0x212)](){const _0x49cafc=_0xacf1da;[V][_0x49cafc(0x253)](_0x4d0410=>{const _0x5b368b=_0x49cafc;this[_0x5b368b(0x23f)](this['_commandService'][_0x5b368b(0x297)](_0x4d0410));});}[_0xacf1da(0x280)](){const _0x4c200a=_0xacf1da;this['_menuManagerService'][_0x4c200a(0x276)](dn);}};D=pn([re(0x0,_0x4fe8e9),re(0x1,_0x5de9d9)],D);const Mn={'mcpStatus':{'disconnected':_0xacf1da(0x1bb),'connecting':'MCP\x20Connecting...','connected':_0xacf1da(0x1c7),'failed':_0xacf1da(0x269),'retrying':_0xacf1da(0x2ba),'unknown':_0xacf1da(0x209),'unauthorized':_0xacf1da(0x286),'sessionOccupied':_0xacf1da(0x202),'networkError':_0xacf1da(0x258),'maxRetriesExceeded':_0xacf1da(0x1a6),'clickToConnect':_0xacf1da(0x272),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0xacf1da(0x1ed),'description':_0xacf1da(0x2cf),'apiKey':_0xacf1da(0x204),'apiKeyPlaceholder':_0xacf1da(0x24d),'apiKeyHint':_0xacf1da(0x1ab),'enableAuth':_0xacf1da(0x278),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0xacf1da(0x261),'mcpClientConfig':_0xacf1da(0x261),'configInstructions':_0xacf1da(0x2c2),'configStepTitle':_0xacf1da(0x2cc),'configStep1':_0xacf1da(0x1cf),'configStep2':_0xacf1da(0x1a8),'configStep3':_0xacf1da(0x1dd),'sessionId':_0xacf1da(0x211),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0xacf1da(0x2d1),'configParameters':_0xacf1da(0x1b4),'maxRetries':_0xacf1da(0x1f2),'save':_0xacf1da(0x1d0),'saving':'Saving...','note1':_0xacf1da(0x27f),'note2':_0xacf1da(0x26c),'configSaved':_0xacf1da(0x1a5),'configError':_0xacf1da(0x22e),'apiApplyInfo':{'title':_0xacf1da(0x1d6),'description':_0xacf1da(0x287),'univerAiLabel':_0xacf1da(0x27e),'getStarted':_0xacf1da(0x1f8)},'validation':{'apiKeyRequired':_0xacf1da(0x1ef),'apiKeyTooShort':_0xacf1da(0x232),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0xacf1da(0x22d)},'connectionStatus':{'disconnected':_0xacf1da(0x1d2),'connecting':_0xacf1da(0x23a),'connected':_0xacf1da(0x191),'failed':_0xacf1da(0x1cc),'retrying':_0xacf1da(0x24e)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0xacf1da(0x1c5),'networkError':_0xacf1da(0x293),'maxRetriesExceeded':_0xacf1da(0x273)}}},An={'mcpStatus':{'disconnected':_0xacf1da(0x1fb),'connecting':_0xacf1da(0x1e1),'connected':'MCP\x20已连接','failed':_0xacf1da(0x198),'retrying':_0xacf1da(0x29e),'unknown':_0xacf1da(0x1bd),'unauthorized':_0xacf1da(0x285),'sessionOccupied':_0xacf1da(0x2ce),'networkError':_0xacf1da(0x2c1),'maxRetriesExceeded':_0xacf1da(0x2b5),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0xacf1da(0x252)},'mcpConfig':{'title':'MCP\x20配置','description':_0xacf1da(0x1f6),'apiKey':_0xacf1da(0x1c4),'apiKeyPlaceholder':_0xacf1da(0x19b),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0xacf1da(0x2a5),'enableAuthHint':_0xacf1da(0x1ba),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0xacf1da(0x28b),'configInstructions':_0xacf1da(0x25b),'configStepTitle':_0xacf1da(0x270),'configStep1':_0xacf1da(0x2a6),'configStep2':_0xacf1da(0x249),'configStep3':_0xacf1da(0x29a),'sessionId':_0xacf1da(0x1dc),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0xacf1da(0x1d1),'maxRetries':_0xacf1da(0x21a),'save':'保存配置','saving':_0xacf1da(0x2aa),'note1':'配置更改将立即生效','note2':_0xacf1da(0x25a),'configSaved':_0xacf1da(0x260),'configError':'配置保存失败','apiApplyInfo':{'title':_0xacf1da(0x1e4),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0xacf1da(0x289),'getStarted':_0xacf1da(0x214)},'validation':{'apiKeyRequired':_0xacf1da(0x27a),'apiKeyTooShort':_0xacf1da(0x199),'invalidConfig':_0xacf1da(0x290),'invalidApiKey':_0xacf1da(0x1d9)},'connectionStatus':{'disconnected':_0xacf1da(0x1f5),'connecting':_0xacf1da(0x2e0),'connected':_0xacf1da(0x1b7),'failed':_0xacf1da(0x27c),'retrying':'重连中...'},'connectionError':{'unauthorized':_0xacf1da(0x281),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0xacf1da(0x1aa)}}};var fn=Object[_0xacf1da(0x1cd)],hn=Object[_0xacf1da(0x2af)],Cn=(_0x5164a8,_0x44d977,_0x5caa1b)=>_0x44d977 in _0x5164a8?fn(_0x5164a8,_0x44d977,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5caa1b}):_0x5164a8[_0x44d977]=_0x5caa1b,mn=(_0xe857a7,_0x2e728d,_0x1ed085,_0x252ccc)=>{for(var _0x4897fc=_0x252ccc>0x1?void 0x0:_0x252ccc?hn(_0x2e728d,_0x1ed085):_0x2e728d,_0x34fcf4=_0xe857a7['length']-0x1,_0x73f8c8;_0x34fcf4>=0x0;_0x34fcf4--)(_0x73f8c8=_0xe857a7[_0x34fcf4])&&(_0x4897fc=_0x73f8c8(_0x4897fc)||_0x4897fc);return _0x4897fc;},P=(_0x551df7,_0xd1f4d2)=>(_0x50ed4f,_0xf9a81c)=>_0xd1f4d2(_0x50ed4f,_0xf9a81c,_0x551df7),_n=(_0xacf272,_0x4edb83,_0x429221)=>Cn(_0xacf272,_0x4edb83+'',_0x429221);let j=class extends _0x1d583f{constructor(_0x5b1bed=ie,_0x2d3dda,_0x4b7ede,_0x5d3d0b,_0xe6b0bc,_0x3e68d5){const _0x2f78de=_0xacf1da;super(),this[_0x2f78de(0x238)]=_0x5b1bed,this['_injector']=_0x2d3dda,this[_0x2f78de(0x18d)]=_0x4b7ede,this[_0x2f78de(0x279)]=_0x5d3d0b,this[_0x2f78de(0x20a)]=_0xe6b0bc,this['_localeService']=_0x3e68d5;const {..._0x592ef4}=_0x4a327f({},ie,this[_0x2f78de(0x238)]);this[_0x2f78de(0x18d)]['setConfig'](y,_0x592ef4);}async[_0xacf1da(0x1ca)](){const _0x3a9d86=_0xacf1da,_0x4193d6=[[O],[I],[D]];this[_0x3a9d86(0x210)][_0x3a9d86(0x23d)](_0x52938c)||_0x4193d6[_0x3a9d86(0x28a)]([_0x52938c,{'useClass':_0x34bb74}]),_0x4193d6[_0x3a9d86(0x253)](_0x496e51=>this[_0x3a9d86(0x210)][_0x3a9d86(0x244)](_0x496e51)),this[_0x3a9d86(0x210)]['get'](O),this[_0x3a9d86(0x210)][_0x3a9d86(0x263)](I),this[_0x3a9d86(0x210)]['get'](D);}};_n(j,_0xacf1da(0x1ea),_0xacf1da(0x26b)),j=mn([_0x481c34(_0x2d2749),P(0x1,_0x442f63(_0x2013e4)),P(0x2,_0x296c1f),P(0x3,_0x2dc6d7),P(0x4,_0x576474),P(0x5,_0x442f63(_0x15338f))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
|
package/lib/es/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x9dd7(){const _0x216e99=['Saving...','Copy\x20the\x20JSON\x20configuration\x20below','Get\x20your\x20API\x20key\x20in\x20seconds','579954FZhOKK','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Univer\x20AI\x20Console','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','2097dUKFTw','MCP\x20Retrying...','Click\x20to\x20connect\x20MCP','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Client\x20Configuration','Enter\x20your\x20API\x20key','Connection\x20Failed','1538174VfizEf','MCP:\x20Session\x20ID\x20Occupied','MCP:\x20Max\x20Retries\x20Exceeded','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Save\x20Configuration','10242sWJOGD','Disconnected','3355674RCbknH','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Retrying...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20Key','209565eoLkBL','Session\x20ID','Enable\x20Authentication','MCP\x20Connecting...','Connecting...','MCP\x20Connected','API\x20key\x20with\x20Bearer\x20prefix.','Failed\x20to\x20save\x20configuration','Invalid\x20configuration','API\x20key\x20is\x20required','MCP\x20Connection\x20Failed','80pMcXmJ','Configuration\x20saved\x20successfully','726336BvTKLl','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Network\x20Error','2595MwZqJC','Connected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configuration\x20Parameters:','MCP\x20Configuration','MCP\x20Unknown\x20Status','Max\x20Retries','Click\x20to\x20configure\x20MCP','2220GrHoOf','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20changes\x20will\x20take\x20effect\x20immediately'];_0x9dd7=function(){return _0x216e99;};return _0x9dd7();}function _0x1238(_0x125532,_0x4015fa){const _0x9dd76=_0x9dd7();return _0x1238=function(_0x123817,_0x1a588e){_0x123817=_0x123817-0x1d6;let _0x52caf6=_0x9dd76[_0x123817];return _0x52caf6;},_0x1238(_0x125532,_0x4015fa);}const _0x18f51e=_0x1238;(function(_0x95e52d,_0x12ddf0){const _0x2dc05d=_0x1238,_0x387026=_0x95e52d();while(!![]){try{const _0x34d8c0=parseInt(_0x2dc05d(0x1e3))/0x1+-parseInt(_0x2dc05d(0x1f0))/0x2+-parseInt(_0x2dc05d(0x1e9))/0x3*(parseInt(_0x2dc05d(0x1dd))/0x4)+parseInt(_0x2dc05d(0x20c))/0x5*(parseInt(_0x2dc05d(0x1f5))/0x6)+parseInt(_0x2dc05d(0x1f7))/0x7+-parseInt(_0x2dc05d(0x209))/0x8+-parseInt(_0x2dc05d(0x1fc))/0x9*(parseInt(_0x2dc05d(0x207))/0xa);if(_0x34d8c0===_0x12ddf0)break;else _0x387026['push'](_0x387026['shift']());}catch(_0x3277a0){_0x387026['push'](_0x387026['shift']());}}}(_0x9dd7,0x7ccbd));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x18f51e(0x1ff),'connected':_0x18f51e(0x201),'failed':_0x18f51e(0x206),'retrying':_0x18f51e(0x1ea),'unknown':_0x18f51e(0x1da),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x18f51e(0x1f1),'networkError':_0x18f51e(0x20b),'maxRetriesExceeded':_0x18f51e(0x1f2),'clickToConnect':_0x18f51e(0x1eb),'clickToConfigure':_0x18f51e(0x1dc)},'mcpConfig':{'title':_0x18f51e(0x1d9),'description':_0x18f51e(0x1f3),'apiKey':_0x18f51e(0x1fb),'apiKeyPlaceholder':_0x18f51e(0x1ee),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x18f51e(0x1fe),'enableAuthHint':_0x18f51e(0x1ec),'connectionInfo':_0x18f51e(0x1ed),'mcpClientConfig':_0x18f51e(0x1ed),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x18f51e(0x1e1),'configStep2':_0x18f51e(0x1e6),'configStep3':_0x18f51e(0x1e4),'sessionId':_0x18f51e(0x1fd),'sessionIdDescription':_0x18f51e(0x1e8),'authorizationDescription':_0x18f51e(0x202),'configParameters':_0x18f51e(0x1d8),'maxRetries':_0x18f51e(0x1db),'save':_0x18f51e(0x1f4),'saving':_0x18f51e(0x1e0),'note1':_0x18f51e(0x1df),'note2':_0x18f51e(0x1d7),'configSaved':_0x18f51e(0x208),'configError':_0x18f51e(0x203),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x18f51e(0x1e5),'getStarted':_0x18f51e(0x1e2)},'validation':{'apiKeyRequired':_0x18f51e(0x205),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x18f51e(0x204),'invalidApiKey':_0x18f51e(0x1f8)},'connectionStatus':{'disconnected':_0x18f51e(0x1f6),'connecting':_0x18f51e(0x200),'connected':_0x18f51e(0x1d6),'failed':_0x18f51e(0x1ef),'retrying':_0x18f51e(0x1f9)},'connectionError':{'unauthorized':_0x18f51e(0x20a),'sessionOccupied':_0x18f51e(0x1e7),'networkError':_0x18f51e(0x1de),'maxRetriesExceeded':_0x18f51e(0x1fa)}}},n=e;export{n as default};
|
package/lib/es/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x4701(){const _0x55ed89=['Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Configuration','177369JuRwKr','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Retrying...','2062790ZWlatF','Connected','123496zoPiqo','14334durkYG','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Get\x20your\x20API\x20key\x20in\x20seconds','Retrying...','MCP\x20Unknown\x20Status','Click\x20to\x20connect\x20MCP','Enter\x20your\x20API\x20key','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','143672QlLcLn','MCP:\x20Max\x20Retries\x20Exceeded','Invalid\x20configuration','11rQyUYl','767fdIOct','MCP\x20Connection\x20Failed','API\x20key\x20with\x20Bearer\x20prefix.','25SzRIPc','Session\x20ID','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Saving...','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Client\x20Configuration','What\x20is\x20API\x20Key?','Configuration\x20Parameters:','Max\x20Retries','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','7272YNuIGM','567wvtjFA','Configuration\x20saved\x20successfully','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Enable\x20Authentication','MCP:\x20Session\x20ID\x20Occupied','301620nbXcPu','MCP:\x20Unauthorized','2njTGtW','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','9dvYqyr','API\x20Key','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP:\x20Network\x20Error'];_0x4701=function(){return _0x55ed89;};return _0x4701();}function _0x2e7c(_0xe22b5d,_0x2ac3b7){const _0x470159=_0x4701();return _0x2e7c=function(_0x2e7c49,_0x21433a){_0x2e7c49=_0x2e7c49-0xd6;let _0x36c2b4=_0x470159[_0x2e7c49];return _0x36c2b4;},_0x2e7c(_0xe22b5d,_0x2ac3b7);}const _0x3f5aef=_0x2e7c;(function(_0xdbdfa0,_0x503af9){const _0x29f22e=_0x2e7c,_0x253ed1=_0xdbdfa0();while(!![]){try{const _0x538eae=parseInt(_0x29f22e(0xf6))/0x1*(parseInt(_0x29f22e(0xee))/0x2)+parseInt(_0x29f22e(0xec))/0x3+parseInt(_0x29f22e(0x105))/0x4*(-parseInt(_0x29f22e(0xda))/0x5)+-parseInt(_0x29f22e(0xfc))/0x6*(parseInt(_0x29f22e(0xe7))/0x7)+-parseInt(_0x29f22e(0xfb))/0x8*(-parseInt(_0x29f22e(0xf0))/0x9)+parseInt(_0x29f22e(0xf9))/0xa*(parseInt(_0x29f22e(0xd6))/0xb)+parseInt(_0x29f22e(0xe6))/0xc*(parseInt(_0x29f22e(0xd7))/0xd);if(_0x538eae===_0x503af9)break;else _0x253ed1['push'](_0x253ed1['shift']());}catch(_0x3839a8){_0x253ed1['push'](_0x253ed1['shift']());}}}(_0x4701,0x279e8));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x3f5aef(0xd8),'retrying':_0x3f5aef(0xf8),'unknown':_0x3f5aef(0x101),'unauthorized':_0x3f5aef(0xed),'sessionOccupied':_0x3f5aef(0xeb),'networkError':_0x3f5aef(0xf3),'maxRetriesExceeded':_0x3f5aef(0x106),'clickToConnect':_0x3f5aef(0x102),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x3f5aef(0xf5),'description':_0x3f5aef(0x104),'apiKey':_0x3f5aef(0xf1),'apiKeyPlaceholder':_0x3f5aef(0x103),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x3f5aef(0xea),'enableAuthHint':_0x3f5aef(0xde),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x3f5aef(0xdf),'configInstructions':_0x3f5aef(0xe9),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x3f5aef(0xfe),'configStep3':_0x3f5aef(0xdc),'sessionId':_0x3f5aef(0xdb),'sessionIdDescription':_0x3f5aef(0xf2),'authorizationDescription':_0x3f5aef(0xd9),'configParameters':_0x3f5aef(0xe1),'maxRetries':_0x3f5aef(0xe2),'save':'Save\x20Configuration','saving':_0x3f5aef(0xdd),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x3f5aef(0xf4),'configSaved':_0x3f5aef(0xe8),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x3f5aef(0xe0),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x3f5aef(0xff)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x3f5aef(0xf7),'invalidConfig':_0x3f5aef(0x107),'invalidApiKey':_0x3f5aef(0xfd)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x3f5aef(0xfa),'failed':'Connection\x20Failed','retrying':_0x3f5aef(0x100)},'connectionError':{'unauthorized':_0x3f5aef(0xe4),'sessionOccupied':_0x3f5aef(0xef),'networkError':_0x3f5aef(0xe5),'maxRetriesExceeded':_0x3f5aef(0xe3)}}};export{e as default};
|