@univerjs-pro/mcp-ui 0.10.7-nightly.202509090319 → 0.10.7-nightly.202509130618
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.css +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/types/controllers/mcp-config-ui.controller.d.ts +1 -0
- package/lib/types/locale/en-US.d.ts +9 -1
- package/lib/types/locale/zh-CN.d.ts +9 -1
- package/lib/types/views/components/mcp-config.d.ts +7 -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 -5
package/lib/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5184(){const _0xd8c2dc=['Click\x20to\x20configure\x20MCP','MCP\x20Disconnected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connected','20369140ERXrFx','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Click\x20to\x20connect\x20MCP','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Enable\x20authentication\x20for\x20secure\x20connections','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20key\x20is\x20required\x20to\x20connect','92OZKDkW','4405528ABwOYD','Connection\x20Failed','MCP\x20Retrying...','Enable\x20Authentication','1429089mzjewz','Save\x20Configuration','10557673adyjID','API\x20key\x20is\x20required','Invalid\x20configuration','Univer\x20AI\x20Console','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','570jmXpUB','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Unknown\x20Status','Retrying...','Configuration\x20Steps:','24093rDOfxT','9vOkTXu','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Network\x20Error','MCP\x20Connecting...','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Client\x20Configuration','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Configuration\x20Parameters:','MCP:\x20Max\x20Retries\x20Exceeded','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20Key','1886330nSeeWc','2nndOSX','Connecting...','Saving...','API\x20key\x20with\x20Bearer\x20prefix.','MCP:\x20API\x20Key\x20Missing','2530cAZWJQ','Enter\x20your\x20API\x20key','MCP:\x20Invalid\x20API\x20Key','Failed\x20to\x20save\x20configuration','MCP:\x20Session\x20Occupied'];_0x5184=function(){return _0xd8c2dc;};return _0x5184();}function _0x4586(_0x3bec46,_0x3b178b){const _0x518401=_0x5184();return _0x4586=function(_0x458677,_0x463c5a){_0x458677=_0x458677-0xce;let _0x122096=_0x518401[_0x458677];return _0x122096;},_0x4586(_0x3bec46,_0x3b178b);}const _0x12ab0b=_0x4586;(function(_0x1bdca6,_0x3af677){const _0x580b9f=_0x4586,_0x347f41=_0x1bdca6();while(!![]){try{const _0x129f7a=parseInt(_0x580b9f(0xdb))/0x1*(parseInt(_0x580b9f(0xf6))/0x2)+-parseInt(_0x580b9f(0xe8))/0x3*(parseInt(_0x580b9f(0xd6))/0x4)+parseInt(_0x580b9f(0xfb))/0x5*(-parseInt(_0x580b9f(0xe2))/0x6)+-parseInt(_0x580b9f(0xdd))/0x7+parseInt(_0x580b9f(0xd7))/0x8*(-parseInt(_0x580b9f(0xe9))/0x9)+-parseInt(_0x580b9f(0xf5))/0xa+parseInt(_0x580b9f(0xcf))/0xb;if(_0x129f7a===_0x3af677)break;else _0x347f41['push'](_0x347f41['shift']());}catch(_0x8de24a){_0x347f41['push'](_0x347f41['shift']());}}}(_0x5184,0xc36e3));const e={'mcpStatus':{'disconnected':_0x12ab0b(0x101),'connecting':_0x12ab0b(0xed),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x12ab0b(0xd9),'unknown':_0x12ab0b(0xe5),'missingApiKey':_0x12ab0b(0xfa),'invalidApiKey':_0x12ab0b(0xfd),'sessionOccupied':_0x12ab0b(0xff),'networkError':_0x12ab0b(0xec),'maxRetriesExceeded':_0x12ab0b(0xf2),'clickToConnect':_0x12ab0b(0xd1),'clickToConfigure':_0x12ab0b(0x100)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x12ab0b(0xf3),'apiKey':_0x12ab0b(0xf4),'apiKeyPlaceholder':_0x12ab0b(0xfc),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x12ab0b(0xda),'enableAuthHint':_0x12ab0b(0xd3),'connectionInfo':_0x12ab0b(0xef),'mcpClientConfig':_0x12ab0b(0xef),'configInstructions':_0x12ab0b(0xe4),'configStepTitle':_0x12ab0b(0xe7),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x12ab0b(0xeb),'configStep3':_0x12ab0b(0xd2),'sessionId':'Session\x20ID','sessionIdDescription':_0x12ab0b(0xea),'authorizationDescription':_0x12ab0b(0xf9),'configParameters':_0x12ab0b(0xf1),'maxRetries':'Max\x20Retries','save':_0x12ab0b(0xdc),'saving':_0x12ab0b(0xf8),'note1':_0x12ab0b(0xe1),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x12ab0b(0xfe),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x12ab0b(0xe3),'univerAiLabel':_0x12ab0b(0xe0),'getStarted':_0x12ab0b(0xee)},'validation':{'apiKeyRequired':_0x12ab0b(0xde),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x12ab0b(0xdf),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x12ab0b(0xf7),'connected':_0x12ab0b(0xce),'failed':_0x12ab0b(0xd8),'retrying':_0x12ab0b(0xe6)},'connectionError':{'missingApiKey':_0x12ab0b(0xd5),'invalidApiKey':_0x12ab0b(0xd0),'sessionOccupied':_0x12ab0b(0xf0),'networkError':_0x12ab0b(0xd4),'maxRetriesExceeded':_0x12ab0b(0x102)}}},n=e;export{n as default};
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x4667db=_0x5327;function _0x2cb3(){const _0x2b4257=['Enable\x20authentication\x20for\x20secure\x20connections','9513878kdTSyp','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','What\x20is\x20API\x20Key?','API\x20key\x20with\x20Bearer\x20prefix.','599584tzYCMF','3063033uYnjKG','Copy\x20the\x20JSON\x20configuration\x20below','Connecting...','MCP\x20Connected','Max\x20Retries','Configuration\x20Parameters:','MCP\x20Connection\x20Failed','Invalid\x20configuration','API\x20key\x20is\x20required','MCP:\x20Invalid\x20API\x20Key','63QHEOOt','MCP\x20Client\x20Configuration','MCP:\x20API\x20Key\x20Missing','MCP\x20Retrying...','20vAIdPj','Univer\x20AI\x20Console','Failed\x20to\x20save\x20configuration','Configuration\x20Steps:','3BArAhI','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Saving...','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Click\x20to\x20connect\x20MCP','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Connecting...','Disconnected','1197022qBddAo','MCP:\x20Session\x20Occupied','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','MCP:\x20Max\x20Retries\x20Exceeded','495950CIjUKD','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','10isAfUR','3446898uiUKlH','494200MHRTyc','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configuration\x20saved\x20successfully','API\x20Key','Session\x20ID','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Click\x20to\x20configure\x20MCP','MCP\x20Configuration'];_0x2cb3=function(){return _0x2b4257;};return _0x2cb3();}(function(_0x55779c,_0x3065f2){const _0x3e7b4e=_0x5327,_0x5f0a88=_0x55779c();while(!![]){try{const _0x3f70af=-parseInt(_0x3e7b4e(0x104))/0x1+-parseInt(_0x3e7b4e(0xee))/0x2*(-parseInt(_0x3e7b4e(0x117))/0x3)+-parseInt(_0x3e7b4e(0x113))/0x4*(-parseInt(_0x3e7b4e(0xf3))/0x5)+parseInt(_0x3e7b4e(0xf6))/0x6+-parseInt(_0x3e7b4e(0x10f))/0x7*(-parseInt(_0x3e7b4e(0xf7))/0x8)+-parseInt(_0x3e7b4e(0x105))/0x9+-parseInt(_0x3e7b4e(0xf5))/0xa*(parseInt(_0x3e7b4e(0x100))/0xb);if(_0x3f70af===_0x3065f2)break;else _0x5f0a88['push'](_0x5f0a88['shift']());}catch(_0x1e0686){_0x5f0a88['push'](_0x5f0a88['shift']());}}}(_0x2cb3,0x66904));function _0x5327(_0x2c2039,_0x27514d){const _0x2cb34d=_0x2cb3();return _0x5327=function(_0x532798,_0xb02738){_0x532798=_0x532798-0xe9;let _0x5af8a8=_0x2cb34d[_0x532798];return _0x5af8a8;},_0x5327(_0x2c2039,_0x27514d);}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x4667db(0xec),'connected':_0x4667db(0x108),'failed':_0x4667db(0x10b),'retrying':_0x4667db(0x112),'unknown':'MCP\x20Unknown\x20Status','missingApiKey':_0x4667db(0x111),'invalidApiKey':_0x4667db(0x10e),'sessionOccupied':_0x4667db(0xef),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x4667db(0xf2),'clickToConnect':_0x4667db(0xea),'clickToConfigure':_0x4667db(0xfd)},'mcpConfig':{'title':_0x4667db(0xfe),'description':_0x4667db(0xf4),'apiKey':_0x4667db(0xfa),'apiKeyPlaceholder':_0x4667db(0xf1),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x4667db(0xff),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x4667db(0x110),'configInstructions':_0x4667db(0xe9),'configStepTitle':_0x4667db(0x116),'configStep1':_0x4667db(0x106),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x4667db(0xfb),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x4667db(0x103),'configParameters':_0x4667db(0x10a),'maxRetries':_0x4667db(0x109),'save':'Save\x20Configuration','saving':_0x4667db(0x119),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x4667db(0x101),'configSaved':_0x4667db(0xf9),'configError':_0x4667db(0x115),'apiApplyInfo':{'title':_0x4667db(0x102),'description':_0x4667db(0xf0),'univerAiLabel':_0x4667db(0x114),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x4667db(0x10d),'apiKeyTooShort':_0x4667db(0xf8),'invalidConfig':_0x4667db(0x10c),'invalidApiKey':_0x4667db(0xeb)},'connectionStatus':{'disconnected':_0x4667db(0xed),'connecting':_0x4667db(0x107),'connected':'Connected','failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'missingApiKey':'API\x20key\x20is\x20required\x20to\x20connect','invalidApiKey':_0x4667db(0x118),'sessionOccupied':'Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x4667db(0xfc)}}},n=e;export{n as default};
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x40244f=_0x1384;function _0x465c(){const _0x473201=['配置\x20MCP\x20使用\x20AI\x20操作电子表格','MCP:\x20无效的\x20API\x20密钥','MCP\x20配置','启用身份验证','几秒钟内获取您的\x20API\x20密钥','配置保存失败','配置步骤:','341nAATXm','带有\x20Bearer\x20前缀的\x20API\x20密钥。','您的\x20API\x20密钥将在此浏览器中本地存储','您的\x20API\x20密钥安全存储在本地存储中','MCP\x20连接中...','会话ID','点击连接\x20MCP','857068ldtsNg','474692HcjQZu','请输入您的\x20API\x20密钥','配置参数:','3592nOyaXW','连接失败','点击配置\x20MCP','MCP\x20重连中...','3936yKLRgu','API\x20密钥无效,请检查您的密钥后重试','3308UZlwGH','175790dKfhEE','重启您的\x20MCP\x20客户端以使配置生效','Univer\x20AI\x20控制台','会话当前被占用,请稍后再试','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','MCP:\x20超出最大重试次数','已连接','复制以下\x20JSON\x20配置','MCP:\x20缺少\x20API\x20密钥','3235lmxocE','API\x20密钥不能为空','需要\x20API\x20密钥才能连接','5166dfvQQl','超出最大重试次数,请稍后再试','66qJSJse','重连中...','2384263HMTiKT','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','配置保存成功','启用身份验证以获得安全连接','MCP:\x20会话被占用','将配置添加到您的\x20MCP\x20客户端设置文件中','MCP\x20已断开','MCP\x20连接失败','MCP\x20客户端配置','未连接'];_0x465c=function(){return _0x473201;};return _0x465c();}function _0x1384(_0xdad069,_0x76d69d){const _0x465ccb=_0x465c();return _0x1384=function(_0x138416,_0x456f45){_0x138416=_0x138416-0x1bc;let _0x2c90cb=_0x465ccb[_0x138416];return _0x2c90cb;},_0x1384(_0xdad069,_0x76d69d);}(function(_0xd0acd6,_0x3d1184){const _0x16ef88=_0x1384,_0x45a1bd=_0xd0acd6();while(!![]){try{const _0x4aea78=parseInt(_0x16ef88(0x1d5))/0x1+parseInt(_0x16ef88(0x1de))/0x2*(parseInt(_0x16ef88(0x1ed))/0x3)+-parseInt(_0x16ef88(0x1d4))/0x4+parseInt(_0x16ef88(0x1e8))/0x5*(parseInt(_0x16ef88(0x1dc))/0x6)+parseInt(_0x16ef88(0x1bc))/0x7+parseInt(_0x16ef88(0x1d8))/0x8*(-parseInt(_0x16ef88(0x1eb))/0x9)+-parseInt(_0x16ef88(0x1df))/0xa*(parseInt(_0x16ef88(0x1cd))/0xb);if(_0x4aea78===_0x3d1184)break;else _0x45a1bd['push'](_0x45a1bd['shift']());}catch(_0x531839){_0x45a1bd['push'](_0x45a1bd['shift']());}}}(_0x465c,0x3f46b));const e={'mcpStatus':{'disconnected':_0x40244f(0x1c2),'connecting':_0x40244f(0x1d1),'connected':'MCP\x20已连接','failed':_0x40244f(0x1c3),'retrying':_0x40244f(0x1db),'unknown':'MCP\x20状态未知','missingApiKey':_0x40244f(0x1e7),'invalidApiKey':_0x40244f(0x1c7),'sessionOccupied':_0x40244f(0x1c0),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x40244f(0x1e4),'clickToConnect':_0x40244f(0x1d3),'clickToConfigure':_0x40244f(0x1da)},'mcpConfig':{'title':_0x40244f(0x1c8),'description':_0x40244f(0x1c6),'apiKey':'API\x20密钥','apiKeyPlaceholder':_0x40244f(0x1d6),'apiKeyHint':_0x40244f(0x1cf),'enableAuth':_0x40244f(0x1c9),'enableAuthHint':_0x40244f(0x1bf),'connectionInfo':_0x40244f(0x1c4),'mcpClientConfig':_0x40244f(0x1c4),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x40244f(0x1cc),'configStep1':_0x40244f(0x1e6),'configStep2':_0x40244f(0x1c1),'configStep3':_0x40244f(0x1e0),'sessionId':_0x40244f(0x1d2),'sessionIdDescription':_0x40244f(0x1bd),'authorizationDescription':_0x40244f(0x1ce),'configParameters':_0x40244f(0x1d7),'maxRetries':'最大重试次数','save':'保存配置','saving':'保存中...','note1':'配置更改将立即生效','note2':_0x40244f(0x1d0),'configSaved':_0x40244f(0x1be),'configError':_0x40244f(0x1cb),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x40244f(0x1e3),'univerAiLabel':_0x40244f(0x1e1),'getStarted':_0x40244f(0x1ca)},'validation':{'apiKeyRequired':_0x40244f(0x1e9),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':'配置无效','invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x40244f(0x1c5),'connecting':'连接中...','connected':_0x40244f(0x1e5),'failed':_0x40244f(0x1d9),'retrying':_0x40244f(0x1ee)},'connectionError':{'missingApiKey':_0x40244f(0x1ea),'invalidApiKey':_0x40244f(0x1dd),'sessionOccupied':_0x40244f(0x1e2),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x40244f(0x1ec)}}};export{e as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x2b170a=_0x1e52;function _0x4652(){const _0x1cebe5=['MCP\x20Configuration','API\x20key\x20is\x20required','Enable\x20Authentication','Click\x20to\x20configure\x20MCP','3241635BPnGUJ','MCP\x20Connecting...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Unknown\x20Status','Save\x20Configuration','23040gaaQLJ','What\x20is\x20API\x20Key?','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Connecting...','Connection\x20Failed','Get\x20your\x20API\x20key\x20in\x20seconds','Click\x20to\x20connect\x20MCP','Invalid\x20configuration','Configuration\x20Parameters:','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','1911699bIwtxN','MCP\x20Connection\x20Failed','Univer\x20AI\x20Console','MCP:\x20Session\x20Occupied','Failed\x20to\x20save\x20configuration','4yCYmHz','Session\x20ID','Disconnected','769348zuuwUn','MCP\x20Retrying...','118806KnYWFz','MCP\x20Connected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20Key','API\x20key\x20is\x20required\x20to\x20connect','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Enable\x20authentication\x20for\x20secure\x20connections','104209fZZlVC','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','MCP:\x20Invalid\x20API\x20Key','39hkNiPF','7123896KtpnTr','API\x20key\x20with\x20Bearer\x20prefix.','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Client\x20Configuration','Configuration\x20saved\x20successfully','Configuration\x20Steps:','MCP:\x20API\x20Key\x20Missing','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','10TYskXC','MCP:\x20Max\x20Retries\x20Exceeded','Enter\x20your\x20API\x20key'];_0x4652=function(){return _0x1cebe5;};return _0x4652();}(function(_0x36ed56,_0x248b91){const _0x3fb5ff=_0x1e52,_0x2dcd63=_0x36ed56();while(!![]){try{const _0x37e1db=-parseInt(_0x3fb5ff(0x138))/0x1+-parseInt(_0x3fb5ff(0x13a))/0x2*(-parseInt(_0x3fb5ff(0x110))/0x3)+-parseInt(_0x3fb5ff(0x135))/0x4*(parseInt(_0x3fb5ff(0x121))/0x5)+-parseInt(_0x3fb5ff(0x126))/0x6+parseInt(_0x3fb5ff(0x10c))/0x7+parseInt(_0x3fb5ff(0x111))/0x8+-parseInt(_0x3fb5ff(0x130))/0x9*(-parseInt(_0x3fb5ff(0x11a))/0xa);if(_0x37e1db===_0x248b91)break;else _0x2dcd63['push'](_0x2dcd63['shift']());}catch(_0x148f02){_0x2dcd63['push'](_0x2dcd63['shift']());}}}(_0x4652,0x7261d));function _0x1e52(_0x1bbc14,_0x15a6f3){const _0x4652f7=_0x4652();return _0x1e52=function(_0x1e527a,_0x4e64d8){_0x1e527a=_0x1e527a-0x10a;let _0x411446=_0x4652f7[_0x1e527a];return _0x411446;},_0x1e52(_0x1bbc14,_0x15a6f3);}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x2b170a(0x122),'connected':_0x2b170a(0x13b),'failed':_0x2b170a(0x131),'retrying':_0x2b170a(0x139),'unknown':_0x2b170a(0x124),'missingApiKey':_0x2b170a(0x118),'invalidApiKey':_0x2b170a(0x10f),'sessionOccupied':_0x2b170a(0x133),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x2b170a(0x11b),'clickToConnect':_0x2b170a(0x12c),'clickToConfigure':_0x2b170a(0x120)},'mcpConfig':{'title':_0x2b170a(0x11d),'description':_0x2b170a(0x13c),'apiKey':_0x2b170a(0x13d),'apiKeyPlaceholder':_0x2b170a(0x11c),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x2b170a(0x11f),'enableAuthHint':_0x2b170a(0x10b),'connectionInfo':_0x2b170a(0x115),'mcpClientConfig':_0x2b170a(0x115),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x2b170a(0x117),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x2b170a(0x136),'sessionIdDescription':_0x2b170a(0x114),'authorizationDescription':_0x2b170a(0x112),'configParameters':_0x2b170a(0x12e),'maxRetries':'Max\x20Retries','save':_0x2b170a(0x125),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x2b170a(0x113),'configSaved':_0x2b170a(0x116),'configError':_0x2b170a(0x134),'apiApplyInfo':{'title':_0x2b170a(0x127),'description':_0x2b170a(0x123),'univerAiLabel':_0x2b170a(0x132),'getStarted':_0x2b170a(0x12b)},'validation':{'apiKeyRequired':_0x2b170a(0x11e),'apiKeyTooShort':_0x2b170a(0x119),'invalidConfig':_0x2b170a(0x12d),'invalidApiKey':_0x2b170a(0x128)},'connectionStatus':{'disconnected':_0x2b170a(0x137),'connecting':_0x2b170a(0x129),'connected':'Connected','failed':_0x2b170a(0x12a),'retrying':'Retrying...'},'connectionError':{'missingApiKey':_0x2b170a(0x13e),'invalidApiKey':_0x2b170a(0x10d),'sessionOccupied':_0x2b170a(0x10e),'networkError':_0x2b170a(0x12f),'maxRetriesExceeded':_0x2b170a(0x10a)}}},n=e;export{n as default};
|
|
@@ -23,6 +23,7 @@ export declare class MCPConfigUIController extends Disposable {
|
|
|
23
23
|
private readonly _loading$;
|
|
24
24
|
private readonly _mcpCoreConfig$;
|
|
25
25
|
private readonly _config$;
|
|
26
|
+
private readonly _apiKey$;
|
|
26
27
|
constructor(_injector: Injector, _uiPartsService: IUIPartsService, _configService: IConfigService, _localStorageService: ILocalStorageService, _dialogService: IDialogService, _messageService: IMessageService, _componentManager: ComponentManager, _localeService: LocaleService, _logService: ILogService, _mcpConnectionController: MCPConnectionController);
|
|
27
28
|
/**
|
|
28
29
|
* Show configuration panel
|
|
@@ -23,8 +23,16 @@ declare const locale: {
|
|
|
23
23
|
enableAuth: string;
|
|
24
24
|
enableAuthHint: string;
|
|
25
25
|
connectionInfo: string;
|
|
26
|
-
|
|
26
|
+
mcpClientConfig: string;
|
|
27
|
+
configInstructions: string;
|
|
28
|
+
configStepTitle: string;
|
|
29
|
+
configStep1: string;
|
|
30
|
+
configStep2: string;
|
|
31
|
+
configStep3: string;
|
|
27
32
|
sessionId: string;
|
|
33
|
+
sessionIdDescription: string;
|
|
34
|
+
authorizationDescription: string;
|
|
35
|
+
configParameters: string;
|
|
28
36
|
maxRetries: string;
|
|
29
37
|
save: string;
|
|
30
38
|
saving: string;
|
|
@@ -23,8 +23,16 @@ declare const locale: {
|
|
|
23
23
|
enableAuth: string;
|
|
24
24
|
enableAuthHint: string;
|
|
25
25
|
connectionInfo: string;
|
|
26
|
-
|
|
26
|
+
mcpClientConfig: string;
|
|
27
|
+
configInstructions: string;
|
|
28
|
+
configStepTitle: string;
|
|
29
|
+
configStep1: string;
|
|
30
|
+
configStep2: string;
|
|
31
|
+
configStep3: string;
|
|
27
32
|
sessionId: string;
|
|
33
|
+
sessionIdDescription: string;
|
|
34
|
+
authorizationDescription: string;
|
|
35
|
+
configParameters: string;
|
|
28
36
|
maxRetries: string;
|
|
29
37
|
save: string;
|
|
30
38
|
saving: string;
|
|
@@ -7,13 +7,19 @@ export interface IMCPConfigProps {
|
|
|
7
7
|
/** config */
|
|
8
8
|
config: IUniverMCPUIConfig;
|
|
9
9
|
/** Callback when configuration is saved */
|
|
10
|
-
onSave: (config:
|
|
10
|
+
onSave: (config: {
|
|
11
|
+
apiKey: string;
|
|
12
|
+
}) => void;
|
|
11
13
|
/** Whether the config form is loading */
|
|
12
14
|
loading?: boolean;
|
|
13
15
|
/** The MCP connection status stream */
|
|
14
16
|
connectionStatus$?: Observable<MCPConnectionStatus>;
|
|
15
17
|
/** The MCP connection error stream */
|
|
16
18
|
connectionError$?: Observable<MCPConnectionError>;
|
|
19
|
+
/** The current API key */
|
|
20
|
+
currentApiKey$?: Observable<string>;
|
|
21
|
+
/** The current session ID */
|
|
22
|
+
currentSessionId$?: Observable<string>;
|
|
17
23
|
}
|
|
18
24
|
/**
|
|
19
25
|
* MCP Configuration Panel Component
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0xaf6e(_0x36e885,_0x437c6d){var _0x2e94ad=_0x2e94();return _0xaf6e=function(_0xaf6ed,_0x30b908){_0xaf6ed=_0xaf6ed-0x134;var _0x3aceca=_0x2e94ad[_0xaf6ed];return _0x3aceca;},_0xaf6e(_0x36e885,_0x437c6d);}function _0x2e94(){var _0x1efaa2=['_initializeCommands','MCP:\x20超出最大重试次数','_commandService','MCP\x20配置','univer-bg-blue-500','RibbonStartGroup','_uiPartsService','_handleConfigSave','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','Connecting...','连接中...','MCPConfigPanel','46488VtTCIZ','react','mcpStatus.failed','MCP:\x20Network\x20Error','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','Enable\x20authentication\x20for\x20secure\x20connections','React','_blank','您的\x20API\x20密钥将在此浏览器中本地存储','useObservable','close','_handleConfigure','MenuIcon','univer-flex\x20univer-items-center\x20univer-gap-3','BuiltInUIPart','univer-min-w-0\x20univer-flex-1','mcpConfig.connectionError.missingApiKey','showConfigPanel','univer-font-medium','connectionStatus$','_injector','MCPConnectionError','@univerjs/core','toString','defineProperty','0\x200\x2016\x2016','concat','univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','_initializeMenus','126xCskdg','CONNECTING','517696OBFKPP','_config','text','最大重试次数','MCP:\x20缺少\x20API\x20密钥','white','https://console.univer.ai','您的\x20API\x20密钥安全存储在本地存储中','indexOf','mcpConfig.apiApplyInfo.description','mcpConfig.connectionError.networkError','registerCommand','_validateConfig','univer-flex\x20univer-gap-3','code','assign','mcpStatus.networkError','univer-text-gray-400','help-single','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','103326hxwOcX','univer-bg-red-500','Configuration\x20saved\x20successfully','add','useDependency','MCP_UI_PLUGIN','NONE','OnLineIcon','connectionError$','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','会话ID','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','univer-flex-shrink-0\x20univer-text-red-500','_initStatusComponent','UniverProMcpUi','mcp-ui.command.openConfigPanel','CONNECTED','_mcpCoreConfig$','配置保存失败','Click\x20to\x20configure\x20MCP','mcpConfig.validation.apiKeyRequired','map','div','MCP:\x20Invalid\x20API\x20Key','API\x20key\x20is\x20required\x20to\x20connect','univer-flex\x20univer-items-center\x20univer-gap-2','OpenMCPConfigPanelCommand','isValid','Disposable','subscribeConfigValue$','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','ICommandService','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcp-config-dialog','useState','mcpConfig.connectionError.maxRetriesExceeded','none','colorChannel1','label','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','@univerjs/ui','1em','translate(.97)','mcpConfig.validation.invalidApiKey','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','mcpConfig.configError','Univer\x20AI\x20Console','univer.ai','univer-flex\x20univer-items-start\x20univer-gap-3','MCP\x20Unknown\x20Status','MCP:\x20API\x20Key\x20Missing','几秒钟内获取您的\x20API\x20密钥','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-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.title','useRef','toStringTag','mcpStatus.retrying','Get\x20your\x20API\x20key\x20in\x20seconds','_localeService','M5.21243\x2012.287L11.8791\x205.62036','symbol','9WLmEtm','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','保存配置','0\x200\x2017\x2016','forwardRef','MCP\x20Configuration','mcpConfig.sessionId','round','register','36730pwCkil','off-line-icon','重连中...','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','需要\x20API\x20密钥才能连接','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','clsx','BUTTON','DISCONNECTED','MCPUIMenuController','showDeveloperTools','univer-space-y-2','merge','Disconnected','_localStorageService','className','mcpConfig.connectionInfo','MCP_PLUGIN_CONFIG_KEY','COMMAND','disposeWithMe','mcpStatus.connecting','mcpStatus.invalidApiKey','\x20-\x20','close-small-single','OffLineIcon','removeItem','RETRYING','MCP\x20重连中...','_mcpConnectionController','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','1808560Jchqsz','INVALID_API_KEY','univer-text-sm\x20univer-text-gray-500','mcpConfig.connectionStatus.retrying','网络连接错误,请检查您的网络连接','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','getCurrentConfig','BehaviorSubject','univerjs-icon\x20univerjs-icon-','@univerjs-pro/mcp','error','MCPConnectionUIController','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','IConfigService','点击配置\x20MCP','NETWORK_ERROR','服务器端点','fill','mask','url(#$1','FAILED','HelpSingle','API\x20密钥无效,请检查您的密钥后重试','function','Server\x20Endpoint','icon','propertyIsEnumerable','MCP\x20状态未知','mcp-ui.config','univer-text-red-500','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','配置\x20MCP\x20使用\x20AI\x20操作电子表格','univer-break-all\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-px-2\x20univer-py-1\x20univer-font-mono\x20univer-text-xs\x20univer-text-blue-600','MCP\x20连接失败','0\x200\x2017\x2017','getOwnPropertySymbols','API\x20Key','Button','_configService','bottom','string','univer-text-xs\x20univer-text-gray-500','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','DependentOn','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','MCP\x20Connecting...','What\x20is\x20API\x20Key?','show','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','mcpConfig.validation.apiKeyTooShort','ComponentManager','univer-space-y-3','value','mcpStatus.clickToConnect','prototype','_loadStoredApiKey','Retrying...','Module','什么是\x20API\x20密钥?','rxjs','Enter\x20your\x20API\x20key','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','连接信息','sessionId','已连接','HEADER_MENU','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','SESSION_ID_OCCUPIED','_loading$','trim','connectInjector','url(#off-line-icon_clip0_910_343)','MCPConnectionStatus','11xlfmvm','MCP:\x20会话被占用','Saving...','entries','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','defIds','MCP:\x20网络错误','mcpStatus.unknown','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','getItem','_componentManager','mcpConfig.save','createElement','includes','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','Configuration\x20Notes:','zhCN','pluginName','mcpStatus.clickToConfigure','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','enUS','Success','MCP\x20Connection\x20Failed','react/jsx-runtime','attrs','mcpConfig.connectionStatus.failed','replace','mcpStatus.maxRetriesExceeded','连接失败','off','mcpConfig.saving','univer-flex-shrink-0\x20univer-text-blue-500','UniverMCPUIPlugin','exports','validateApiKey','未连接','MCPConnectionController','Close','default','M0\x200H16V16H0z','hover:univer-opacity-80','mcpConfig.connectionError.invalidApiKey','保存中...','5190288blBQmT','_createConfigPanelComponent','univer-flex\x20univer-cursor-pointer\x20univer-items-center','UniverProMcp','univer-text-yellow-500','warn','off-line-icon_clip0_910_343','Univer\x20AI\x20控制台','mcpConfig.apiApplyInfo.title','jsxs','forEach','MCP\x20连接中...','API\x20密钥长度至少需要\x2010\x20位','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','_dialogService','mcpConfig.description','setConfig','配置更改将立即生效','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','mcpConfig.apiKeyHint','onStarting','Failed\x20to\x20save\x20configuration','mcpStatus.connected','univer-text-green-500','on-line-icon_clip0_910_349','_menuManagerService','MCP:\x20无效的\x20API\x20密钥','useCallback','span','mcp.apiKey','IMenuManagerService','mcpConfig.connectionStatus.connecting','univer-mb-1\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','hasOwnProperty','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','path','univer-bg-gray-500','46276Picmnx','univer-text-white','UniverIcon','call','random','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','MCPConfigUIController','idSuffix','UniverDesign','mcpConfig.connectionStatus.connected','会话当前被占用,请稍后再试','mcpConfig.validation.invalidConfig','3dTwBVz','配置保存成功','on-line-icon','15MBNHoI','MAX_RETRIES_EXCEEDED','clipPath','mcpConfig.apiKeyPlaceholder','apiKey','mcpConfig.configSaved','get','jsx','MessageType','mcpConfig.apiKey','univer-mr-2\x20univer-flex\x20univer-text-xl','displayName','mcpConfig.apiApplyInfo.univerAiLabel','getOwnPropertyDescriptor','Error','MCP\x20已连接','mergeMenu','_registerComponent','Save\x20Configuration','univer.plus','tag','subscribe','LocaleService','defs','getConfig','next','univer-text-blue-600','svg','univer-rounded\x20univer-border\x20univer-bg-white\x20univer-px-2\x20univer-py-1\x20univer-font-mono\x20univer-text-xs\x20univer-text-gray-700','Injector','IDialogService','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','API\x20密钥不能为空','children','mcpConfig.apiApplyInfo.getStarted','mcpStatus.sessionOccupied','extend','http://www.w3.org/2000/svg','univer-text-gray-500','mcpStatus.disconnected','mcpStatus.missingApiKey','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','mcpServerUrl','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','IUIPartsService','evenodd','length','Inject','API\x20密钥','MISSING_API_KEY','_config$','currentColor','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','_logService','_messageService','xlink:href','univer-text-sm\x20univer-font-medium','univer-space-y-5','_connectionController','univer-bg-green-500','启用身份验证','mcpConfig.connectionError.sessionOccupied','CloseSmallSingle'];_0x2e94=function(){return _0x1efaa2;};return _0x2e94();}(function(_0x16f1db,_0x36fe8f){var _0x152b2f=_0xaf6e,_0x1cac40=_0x16f1db();while(!![]){try{var _0x49c598=-parseInt(_0x152b2f(0x290))/0x1*(-parseInt(_0x152b2f(0x1cc))/0x2)+parseInt(_0x152b2f(0x186))/0x3+-parseInt(_0x152b2f(0x284))/0x4*(parseInt(_0x152b2f(0x293))/0x5)+-parseInt(_0x152b2f(0x153))/0x6*(parseInt(_0x152b2f(0x170))/0x7)+parseInt(_0x152b2f(0x172))/0x8*(-parseInt(_0x152b2f(0x1c3))/0x9)+parseInt(_0x152b2f(0x1eb))/0xa*(-parseInt(_0x152b2f(0x234))/0xb)+parseInt(_0x152b2f(0x25f))/0xc;if(_0x49c598===_0x36fe8f)break;else _0x1cac40['push'](_0x1cac40['shift']());}catch(_0x1c1a41){_0x1cac40['push'](_0x1cac40['shift']());}}}(_0x2e94,0x18fb2),function(_0x21fc9b,_0x21d8aa){var _0x383439=_0xaf6e;typeof exports=='object'&&typeof module<'u'?_0x21d8aa(exports,require('@univerjs/core'),require('react/jsx-runtime'),require('@univerjs-pro/mcp'),require('@univerjs/design'),require('@univerjs/ui'),require('rxjs'),require('react')):typeof define==_0x383439(0x202)&&define['amd']?define([_0x383439(0x255),_0x383439(0x169),_0x383439(0x24b),_0x383439(0x1f4),'@univerjs/design',_0x383439(0x1ae),_0x383439(0x226),_0x383439(0x154)],_0x21d8aa):(_0x21fc9b=typeof globalThis<'u'?globalThis:_0x21fc9b||self,_0x21d8aa(_0x21fc9b[_0x383439(0x194)]={},_0x21fc9b['UniverCore'],_0x21fc9b[_0x383439(0x159)],_0x21fc9b[_0x383439(0x262)],_0x21fc9b[_0x383439(0x28c)],_0x21fc9b['UniverUi'],_0x21fc9b[_0x383439(0x226)],_0x21fc9b[_0x383439(0x159)]));}(this,function(_0x2781c8,_0x36a8d0,_0x1d754b,_0x3d5e8c,_0xa6997b,_0xaf74bf,_0x2accb4,_0x4bc8f1){'use strict';var _0x32b952=_0xaf6e;var _0x231574=Object[_0x32b952(0x16b)],_0x14a907=(_0x10208a,_0x228f18,_0x436466)=>_0x228f18 in _0x10208a?_0x231574(_0x10208a,_0x228f18,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x436466}):_0x10208a[_0x228f18]=_0x436466,_0x49f581=(_0x358a7c,_0x146034,_0x1ee92)=>_0x14a907(_0x358a7c,typeof _0x146034!=_0x32b952(0x1c2)?_0x146034+'':_0x146034,_0x1ee92),_0x2f52b9=function(){var _0x73a541=_0x32b952;return _0x2f52b9=Object[_0x73a541(0x181)]||function(_0x1090fc){var _0x29823c=_0x73a541;for(var _0x4c4377,_0x371c9e=0x1,_0x16187b=arguments[_0x29823c(0x136)];_0x371c9e<_0x16187b;_0x371c9e++){_0x4c4377=arguments[_0x371c9e];for(var _0x33cd03 in _0x4c4377)Object[_0x29823c(0x221)][_0x29823c(0x280)][_0x29823c(0x287)](_0x4c4377,_0x33cd03)&&(_0x1090fc[_0x33cd03]=_0x4c4377[_0x33cd03]);}return _0x1090fc;},_0x2f52b9['apply'](this,arguments);},_0x95b6d=function(_0x4fd29a,_0x4b84f5){var _0x5cf363=_0x32b952,_0x417de7={};for(var _0x3b5709 in _0x4fd29a)Object[_0x5cf363(0x221)]['hasOwnProperty'][_0x5cf363(0x287)](_0x4fd29a,_0x3b5709)&&_0x4b84f5[_0x5cf363(0x17a)](_0x3b5709)<0x0&&(_0x417de7[_0x3b5709]=_0x4fd29a[_0x3b5709]);if(_0x4fd29a!=null&&typeof Object['getOwnPropertySymbols']==_0x5cf363(0x202)){for(var _0x390299=0x0,_0x3b5709=Object[_0x5cf363(0x20e)](_0x4fd29a);_0x390299<_0x3b5709[_0x5cf363(0x136)];_0x390299++)_0x4b84f5[_0x5cf363(0x17a)](_0x3b5709[_0x390299])<0x0&&Object[_0x5cf363(0x221)][_0x5cf363(0x205)]['call'](_0x4fd29a,_0x3b5709[_0x390299])&&(_0x417de7[_0x3b5709[_0x390299]]=_0x4fd29a[_0x3b5709[_0x390299]]);}return _0x417de7;},_0x75f517=_0x4bc8f1[_0x32b952(0x1c7)](function(_0xcb179e,_0x431966){var _0x39e793=_0x32b952,_0x238abd=_0xcb179e[_0x39e793(0x204)],_0x583417=_0xcb179e['id'],_0x4c3891=_0xcb179e[_0x39e793(0x1db)],_0x131d0d=_0xcb179e[_0x39e793(0x2b7)],_0x5dd3c2=_0x95b6d(_0xcb179e,[_0x39e793(0x204),'id',_0x39e793(0x1db),_0x39e793(0x2b7)]),_0x23e281=_0x39e793(0x1f3)[_0x39e793(0x16d)](_0x583417,'\x20')[_0x39e793(0x16d)](_0x4c3891||'')[_0x39e793(0x230)](),_0x43b1e1=_0x4bc8f1[_0x39e793(0x1bc)]('_'['concat'](_0x220baf()));return _0x3d4285(_0x238abd,''[_0x39e793(0x16d)](_0x583417),{'defIds':_0x238abd[_0x39e793(0x239)],'idSuffix':_0x43b1e1['current']},_0x2f52b9({'ref':_0x431966,'className':_0x23e281},_0x5dd3c2),_0x131d0d);});function _0x3d4285(_0x6acb37,_0x44f1a7,_0x12d27f,_0x578fa1,_0x2c8c7a){var _0x1c0be6=_0x32b952;return _0x4bc8f1[_0x1c0be6(0x240)](_0x6acb37[_0x1c0be6(0x2a7)],_0x2f52b9(_0x2f52b9({'key':_0x44f1a7},_0x164e89(_0x6acb37,_0x12d27f,_0x2c8c7a)),_0x578fa1),(_0x567920(_0x6acb37,_0x12d27f)[_0x1c0be6(0x2b4)]||[])[_0x1c0be6(0x19b)](function(_0x337659,_0x2ec8be){var _0x4c7ffe=_0x1c0be6;return _0x3d4285(_0x337659,''[_0x4c7ffe(0x16d)](_0x44f1a7,'-')[_0x4c7ffe(0x16d)](_0x6acb37['tag'],'-')[_0x4c7ffe(0x16d)](_0x2ec8be),_0x12d27f,void 0x0,_0x2c8c7a);}));}function _0x164e89(_0x509324,_0x57f08f,_0x3659ea){var _0x62c71e=_0x32b952,_0x489082=_0x2f52b9({},_0x509324[_0x62c71e(0x24c)]);_0x3659ea!=null&&_0x3659ea['colorChannel1']&&_0x489082[_0x62c71e(0x1fc)]===_0x62c71e(0x1ab)&&(_0x489082[_0x62c71e(0x1fc)]=_0x3659ea[_0x62c71e(0x1ab)]),_0x509324[_0x62c71e(0x2a7)]===_0x62c71e(0x1fd)&&_0x489082['id']&&(_0x489082['id']=_0x489082['id']+_0x57f08f[_0x62c71e(0x28b)]),Object[_0x62c71e(0x237)](_0x489082)[_0x62c71e(0x269)](function(_0x22fee8){var _0x5b7710=_0x62c71e,_0x408104=_0x22fee8[0x0],_0x3957bf=_0x22fee8[0x1];_0x408104===_0x5b7710(0x1fd)&&typeof _0x3957bf==_0x5b7710(0x213)&&(_0x489082[_0x408104]=_0x3957bf[_0x5b7710(0x24e)](/url\(#(.*)\)/,_0x5b7710(0x1fe)[_0x5b7710(0x16d)](_0x57f08f['idSuffix'],')')));});var _0x256802=_0x57f08f[_0x62c71e(0x239)];return!_0x256802||_0x256802['length']===0x0||(_0x509324['tag']==='use'&&_0x489082[_0x62c71e(0x13f)]&&(_0x489082['xlink:href']=_0x489082['xlink:href']+_0x57f08f[_0x62c71e(0x28b)]),Object[_0x62c71e(0x237)](_0x489082)[_0x62c71e(0x269)](function(_0x3b4cc9){var _0x3ccd98=_0x62c71e,_0x4ed07e=_0x3b4cc9[0x0],_0x2ec2b5=_0x3b4cc9[0x1];typeof _0x2ec2b5==_0x3ccd98(0x213)&&(_0x489082[_0x4ed07e]=_0x2ec2b5['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0x57f08f['idSuffix'],')')));})),_0x489082;}function _0x567920(_0x5cf755,_0xfed77f){var _0x119376=_0x32b952,_0x89f737,_0x1c762c=_0xfed77f[_0x119376(0x239)];return!_0x1c762c||_0x1c762c[_0x119376(0x136)]===0x0?_0x5cf755:_0x5cf755[_0x119376(0x2a7)]===_0x119376(0x2aa)&&(!((_0x89f737=_0x5cf755[_0x119376(0x2b4)])===null||_0x89f737===void 0x0)&&_0x89f737[_0x119376(0x136)])?_0x2f52b9(_0x2f52b9({},_0x5cf755),{'children':_0x5cf755[_0x119376(0x2b4)][_0x119376(0x19b)](function(_0x99067e){var _0x4b7e83=_0x119376;return typeof _0x99067e[_0x4b7e83(0x24c)]['id']==_0x4b7e83(0x213)&&_0x1c762c&&_0x1c762c['includes'](_0x99067e[_0x4b7e83(0x24c)]['id'])?_0x2f52b9(_0x2f52b9({},_0x99067e),{'attrs':_0x2f52b9(_0x2f52b9({},_0x99067e[_0x4b7e83(0x24c)]),{'id':_0x99067e['attrs']['id']+_0xfed77f[_0x4b7e83(0x28b)]})}):_0x99067e;})}):_0x5cf755;}function _0x220baf(){var _0x33e1de=_0x32b952;return Math[_0x33e1de(0x288)]()[_0x33e1de(0x16a)](0x24)['substring'](0x2,0x8);}_0x75f517[_0x32b952(0x29e)]=_0x32b952(0x286);var _0x2ce873={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x32b952(0x16c),'width':_0x32b952(0x1af),'height':_0x32b952(0x1af)},'children':[{'tag':'path','attrs':{'fill':_0x32b952(0x13b),'d':_0x32b952(0x289),'fillRule':_0x32b952(0x135),'clipRule':_0x32b952(0x135)}}]},_0x63e0f=_0x4bc8f1['forwardRef'](function(_0x455862,_0x29b734){var _0x21933d=_0x32b952;return _0x4bc8f1[_0x21933d(0x240)](_0x75f517,Object[_0x21933d(0x181)]({},_0x455862,{'id':'check-mark-icon','ref':_0x29b734,'icon':_0x2ce873}));});_0x63e0f['displayName']='CheckMarkIcon';var _0x127564={'tag':_0x32b952(0x2ae),'attrs':{'xmlns':_0x32b952(0x2b8),'fill':_0x32b952(0x1aa),'viewBox':_0x32b952(0x20d),'width':'1em','height':_0x32b952(0x1af)},'children':[{'tag':_0x32b952(0x282),'attrs':{'stroke':_0x32b952(0x13b),'d':'M5.21243\x205.62036L11.8791\x2012.287','strokeLinecap':_0x32b952(0x1ca),'strokeLinejoin':_0x32b952(0x1ca),'strokeWidth':1.33}},{'tag':_0x32b952(0x282),'attrs':{'stroke':_0x32b952(0x13b),'d':_0x32b952(0x1c1),'strokeLinecap':_0x32b952(0x1ca),'strokeLinejoin':'round','strokeWidth':1.33}}]},_0xc4d1d3=_0x4bc8f1[_0x32b952(0x1c7)](function(_0xaef33,_0x5d672a){var _0xd8c3aa=_0x32b952;return _0x4bc8f1[_0xd8c3aa(0x240)](_0x75f517,Object[_0xd8c3aa(0x181)]({},_0xaef33,{'id':_0xd8c3aa(0x1e3),'ref':_0x5d672a,'icon':_0x127564}));});_0xc4d1d3[_0x32b952(0x29e)]=_0x32b952(0x146);var _0x12ee30={'tag':_0x32b952(0x2ae),'attrs':{'xmlns':_0x32b952(0x2b8),'fill':_0x32b952(0x1aa),'viewBox':_0x32b952(0x16c),'width':_0x32b952(0x1af),'height':_0x32b952(0x1af)},'children':[{'tag':'path','attrs':{'fill':_0x32b952(0x13b),'d':_0x32b952(0x1ad)}},{'tag':_0x32b952(0x282),'attrs':{'fill':_0x32b952(0x13b),'d':_0x32b952(0x271)}},{'tag':_0x32b952(0x282),'attrs':{'fill':'currentColor','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':_0x32b952(0x135),'clipRule':_0x32b952(0x135)}}]},_0x11c0f7=_0x4bc8f1[_0x32b952(0x1c7)](function(_0x58469a,_0x17ce11){var _0x1856bf=_0x32b952;return _0x4bc8f1[_0x1856bf(0x240)](_0x75f517,Object['assign']({},_0x58469a,{'id':_0x1856bf(0x184),'ref':_0x17ce11,'icon':_0x12ee30}));});_0x11c0f7['displayName']=_0x32b952(0x200);var _0x6e4a69={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x32b952(0x1aa),'viewBox':_0x32b952(0x16c),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x32b952(0x232)},'children':[{'tag':_0x32b952(0x282),'attrs':{'stroke':_0x32b952(0x13b),'d':_0x32b952(0x21b),'strokeLinecap':'round','strokeLinejoin':_0x32b952(0x1ca),'strokeWidth':1.2}}]},{'tag':_0x32b952(0x2aa),'attrs':{},'children':[{'tag':_0x32b952(0x295),'attrs':{'id':_0x32b952(0x265)},'children':[{'tag':_0x32b952(0x282),'attrs':{'fill':_0x32b952(0x177),'d':_0x32b952(0x25b)}}]}]}],'defIds':[_0x32b952(0x265)]},_0x3ea4c2=_0x4bc8f1[_0x32b952(0x1c7)](function(_0x28b0a0,_0x37d9a9){var _0xba1649=_0x32b952;return _0x4bc8f1['createElement'](_0x75f517,Object[_0xba1649(0x181)]({},_0x28b0a0,{'id':_0xba1649(0x1cd),'ref':_0x37d9a9,'icon':_0x6e4a69}));});_0x3ea4c2[_0x32b952(0x29e)]=_0x32b952(0x1e4);var _0x7d576b={'tag':_0x32b952(0x2ae),'attrs':{'xmlns':_0x32b952(0x2b8),'fill':_0x32b952(0x1aa),'viewBox':_0x32b952(0x1c6),'width':_0x32b952(0x1af),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x32b952(0x282),'attrs':{'stroke':_0x32b952(0x13b),'d':'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','strokeLinecap':_0x32b952(0x1ca),'strokeLinejoin':_0x32b952(0x1ca),'strokeWidth':1.2}}]},{'tag':_0x32b952(0x2aa),'attrs':{},'children':[{'tag':_0x32b952(0x295),'attrs':{'id':_0x32b952(0x277)},'children':[{'tag':_0x32b952(0x282),'attrs':{'fill':_0x32b952(0x177),'d':_0x32b952(0x25b),'transform':_0x32b952(0x1b0)}}]}]}],'defIds':[_0x32b952(0x277)]},_0x319e66=_0x4bc8f1[_0x32b952(0x1c7)](function(_0x27a6fe,_0x42acad){var _0x2aa3b8=_0x32b952;return _0x4bc8f1[_0x2aa3b8(0x240)](_0x75f517,Object[_0x2aa3b8(0x181)]({},_0x27a6fe,{'id':_0x2aa3b8(0x292),'ref':_0x42acad,'icon':_0x7d576b}));});_0x319e66[_0x32b952(0x29e)]=_0x32b952(0x18d);function _0x36fbab(_0x2c06e2){var _0x34b911=_0x32b952,_0x2b907d,_0x570bb4;const {mcpCoreConfig:_0x2accc7,onSave:_0x2dabe1,loading:_0x121b60=!0x1,config:_0x531692,connectionStatus$:_0x45fb32,connectionError$:_0x1d2c39}=_0x2c06e2,_0x468bff=_0xaf74bf['useDependency'](_0x36a8d0[_0x34b911(0x2a9)]),_0x59acc6=_0xaf74bf[_0x34b911(0x15c)](_0x45fb32,_0x3d5e8c[_0x34b911(0x233)][_0x34b911(0x1d4)]),_0x40dbbe=_0xaf74bf[_0x34b911(0x15c)](_0x1d2c39,_0x3d5e8c[_0x34b911(0x168)][_0x34b911(0x18c)]),[_0x1de685,_0x5f5c2b]=_0x4bc8f1['useState'](_0x2accc7['apiKey']||''),_0x462ddd=!0x0,_0x144b7a=_0x531692[_0x34b911(0x1d6)]&&_0x2accc7[_0x34b911(0x2bd)]&&(_0x2accc7['mcpServerUrl'][_0x34b911(0x241)](_0x34b911(0x2a6))||_0x2accc7[_0x34b911(0x2bd)][_0x34b911(0x241)](_0x34b911(0x1b5))),_0x4fe2a0=(_0x2b907d=_0x2accc7['mcpServerUrl'])==null?void 0x0:_0x2b907d[_0x34b911(0x241)](_0x34b911(0x2a6)),_0x214fe6=(_0x570bb4=_0x2accc7[_0x34b911(0x2bd)])==null?void 0x0:_0x570bb4[_0x34b911(0x241)](_0x34b911(0x1b5)),_0x533510=_0x4fe2a0?'https://console.univer.plus':_0x34b911(0x178),_0x5759d6=_0x531692[_0x34b911(0x1d6)]&&(_0x4fe2a0||_0x214fe6),[_0x571e9e,_0x5b6430]=_0x4bc8f1[_0x34b911(0x1a8)](!_0x1de685[_0x34b911(0x230)]()),_0x53ef57=(_0xb5de,_0xa20de2)=>{var _0x5ca99e=_0x34b911;if(_0xa20de2===_0x3d5e8c[_0x5ca99e(0x168)][_0x5ca99e(0x139)]||_0xa20de2===_0x3d5e8c['MCPConnectionError'][_0x5ca99e(0x1ec)])return _0x5ca99e(0x209);switch(_0xb5de){case _0x3d5e8c[_0x5ca99e(0x233)][_0x5ca99e(0x196)]:return _0x5ca99e(0x14f);case _0x3d5e8c[_0x5ca99e(0x233)][_0x5ca99e(0x171)]:case _0x3d5e8c[_0x5ca99e(0x233)][_0x5ca99e(0x1e6)]:return _0x5ca99e(0x2be);case _0x3d5e8c[_0x5ca99e(0x233)][_0x5ca99e(0x1ff)]:return _0x5ca99e(0x209);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x706aa=(_0x22ed9b,_0x31f2c0)=>{var _0x1472d2=_0x34b911;if(_0x31f2c0===_0x3d5e8c[_0x1472d2(0x168)][_0x1472d2(0x139)]||_0x31f2c0===_0x3d5e8c[_0x1472d2(0x168)][_0x1472d2(0x1ec)])return _0x1472d2(0x187);switch(_0x22ed9b){case _0x3d5e8c[_0x1472d2(0x233)]['CONNECTED']:return _0x1472d2(0x143);case _0x3d5e8c[_0x1472d2(0x233)][_0x1472d2(0x171)]:case _0x3d5e8c[_0x1472d2(0x233)][_0x1472d2(0x1e6)]:return _0x1472d2(0x14b);case _0x3d5e8c[_0x1472d2(0x233)]['FAILED']:return'univer-bg-red-500';default:return _0x1472d2(0x283);}},_0x45b318=_0x1fdb62=>{var _0x4780ca=_0x34b911;switch(_0x1fdb62){case _0x3d5e8c[_0x4780ca(0x233)][_0x4780ca(0x196)]:return _0x468bff['t'](_0x4780ca(0x28d));case _0x3d5e8c['MCPConnectionStatus'][_0x4780ca(0x171)]:return _0x468bff['t'](_0x4780ca(0x27e));case _0x3d5e8c['MCPConnectionStatus']['FAILED']:return _0x468bff['t'](_0x4780ca(0x24d));case _0x3d5e8c[_0x4780ca(0x233)][_0x4780ca(0x1e6)]:return _0x468bff['t'](_0x4780ca(0x1ee));default:return _0x468bff['t']('mcpConfig.connectionStatus.disconnected');}},_0x115db4=_0x281a88=>{var _0x319da8=_0x34b911;switch(_0x281a88){case _0x3d5e8c[_0x319da8(0x168)][_0x319da8(0x139)]:return _0x468bff['t'](_0x319da8(0x163));case _0x3d5e8c[_0x319da8(0x168)]['INVALID_API_KEY']:return _0x468bff['t'](_0x319da8(0x25d));case _0x3d5e8c[_0x319da8(0x168)][_0x319da8(0x22e)]:return _0x468bff['t'](_0x319da8(0x145));case _0x3d5e8c[_0x319da8(0x168)]['NETWORK_ERROR']:return _0x468bff['t'](_0x319da8(0x17c));case _0x3d5e8c['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return _0x468bff['t'](_0x319da8(0x1a9));default:return'';}},_0xad0f3f=_0x4bc8f1[_0x34b911(0x27a)](()=>{var _0x47fa34=_0x34b911;const _0x348c78={..._0x2accc7,'apiKey':_0x1de685[_0x47fa34(0x230)](),'enableAuth':_0x462ddd};_0x2dabe1(_0x348c78);},[_0x2accc7,_0x1de685,_0x462ddd,_0x2dabe1]),_0x57a26b=_0x1de685[_0x34b911(0x230)]()['length']>0x0;return _0x1d754b[_0x34b911(0x268)]('div',{'className':_0x34b911(0x26c),'children':[_0x1d754b[_0x34b911(0x29a)]('div',{'className':_0x34b911(0x1c4),'children':_0x1d754b[_0x34b911(0x268)](_0x34b911(0x19c),{'className':_0x34b911(0x160),'children':[_0x1d754b[_0x34b911(0x29a)](_0x34b911(0x19c),{'className':_0x34b911(0x157),'children':_0x1d754b[_0x34b911(0x29a)](_0x34b911(0x27b),{'className':_0x34b911(0x285),'children':'⚙'})}),_0x1d754b[_0x34b911(0x29a)]('div',{'children':_0x1d754b[_0x34b911(0x29a)]('p',{'className':_0x34b911(0x1ed),'children':_0x468bff['t'](_0x34b911(0x26e))})})]})}),_0x1d754b[_0x34b911(0x268)](_0x34b911(0x19c),{'className':_0x34b911(0x18f),'children':[_0x1d754b[_0x34b911(0x29a)](_0x34b911(0x19c),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x53ef57(_0x59acc6,_0x40dbbe)+_0x34b911(0x1d1),'children':_0x1d754b[_0x34b911(0x268)]('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x1d754b[_0x34b911(0x29a)](_0x34b911(0x19c),{'className':_0x34b911(0x1ea)+_0x706aa(_0x59acc6,_0x40dbbe)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'}),_0x1d754b[_0x34b911(0x29a)](_0x34b911(0x27b),{'className':_0x34b911(0x140),'children':_0x45b318(_0x59acc6)})]})}),_0x40dbbe!==_0x3d5e8c['MCPConnectionError'][_0x34b911(0x18c)]&&(_0x59acc6===_0x3d5e8c[_0x34b911(0x233)][_0x34b911(0x1ff)]||_0x40dbbe===_0x3d5e8c[_0x34b911(0x168)][_0x34b911(0x139)]||_0x40dbbe===_0x3d5e8c[_0x34b911(0x168)][_0x34b911(0x1ec)])&&_0x1d754b[_0x34b911(0x29a)](_0x34b911(0x19c),{'className':_0x34b911(0x1b2),'children':_0x1d754b[_0x34b911(0x268)]('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0x1d754b[_0x34b911(0x29a)](_0x34b911(0x27b),{'className':_0x34b911(0x192),'children':'⚠️'}),_0x1d754b[_0x34b911(0x29a)]('p',{'className':_0x34b911(0x185),'children':_0x115db4(_0x40dbbe)})]})})]}),_0x1d754b[_0x34b911(0x29a)](_0x34b911(0x19c),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0x1d754b[_0x34b911(0x268)]('div',{'className':_0x34b911(0x141),'children':[_0x1d754b[_0x34b911(0x268)](_0x34b911(0x19c),{'className':_0x34b911(0x1d7),'children':[_0x1d754b[_0x34b911(0x268)](_0x34b911(0x1ac),{'className':_0x34b911(0x191),'children':[_0x1d754b[_0x34b911(0x29a)](_0x34b911(0x27b),{'children':'🔑'}),'\x20',_0x468bff['t'](_0x34b911(0x29c)),_0x1d754b[_0x34b911(0x29a)](_0x34b911(0x27b),{'className':_0x34b911(0x208),'children':'*'}),_0x144b7a&&_0x1d754b[_0x34b911(0x29a)]('a',{'href':'javascript:void(0)','onClick':()=>_0x5b6430(!0x0),'className':'univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x468bff['t'](_0x34b911(0x267)),'children':_0x1d754b['jsx'](_0x11c0f7,{})})]}),_0x1d754b[_0x34b911(0x29a)](_0xa6997b['Input'],{'type':_0x34b911(0x174),'placeholder':_0x468bff['t'](_0x34b911(0x296)),'value':_0x1de685,'onChange':_0x5f5c2b,'disabled':_0x121b60,'autoComplete':_0x34b911(0x251)}),_0x1d754b[_0x34b911(0x29a)]('p',{'className':_0x34b911(0x214),'children':_0x468bff['t'](_0x34b911(0x272))})]}),_0x144b7a&&_0x571e9e&&_0x1d754b[_0x34b911(0x268)](_0x34b911(0x19c),{'className':_0x34b911(0x217),'children':[_0x1d754b[_0x34b911(0x29a)]('a',{'href':'javascript:void(0)','onClick':()=>_0x5b6430(!0x1),'className':_0x34b911(0x1ba),'title':_0x34b911(0x259),'children':_0x1d754b[_0x34b911(0x29a)](_0xc4d1d3,{})}),_0x1d754b[_0x34b911(0x268)](_0x34b911(0x19c),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x1d754b[_0x34b911(0x29a)](_0x34b911(0x19c),{'className':_0x34b911(0x16e),'children':_0x1d754b[_0x34b911(0x29a)](_0x34b911(0x27b),{'className':_0x34b911(0x2ad),'children':'🚀'})}),_0x1d754b[_0x34b911(0x268)](_0x34b911(0x19c),{'className':'univer-flex-1','children':[_0x1d754b[_0x34b911(0x29a)]('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x468bff['t'](_0x34b911(0x267))}),_0x1d754b[_0x34b911(0x29a)]('p',{'className':_0x34b911(0x2bc),'children':_0x468bff['t'](_0x34b911(0x17b))}),_0x1d754b['jsx'](_0x34b911(0x19c),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x5759d6&&_0x1d754b[_0x34b911(0x268)]('a',{'href':_0x533510,'target':_0x34b911(0x15a),'rel':'noopener\x20noreferrer','className':_0x34b911(0x242),'children':[_0x1d754b[_0x34b911(0x29a)](_0x34b911(0x27b),{'children':'🤖'}),_0x468bff['t'](_0x34b911(0x29f)),_0x1d754b[_0x34b911(0x29a)]('span',{'className':_0x34b911(0x183),'children':'↗'})]})}),_0x1d754b[_0x34b911(0x268)](_0x34b911(0x19c),{'className':_0x34b911(0x215),'children':['✨','\x20',_0x468bff['t'](_0x34b911(0x2b5))]})]})]})]}),_0x531692['showDeveloperTools']&&_0x1d754b[_0x34b911(0x268)](_0x34b911(0x19c),{'className':_0x34b911(0x1f7),'children':[_0x1d754b[_0x34b911(0x268)]('h4',{'className':_0x34b911(0x1a6),'children':[_0x1d754b[_0x34b911(0x29a)](_0x34b911(0x27b),{'children':'🔗'}),'\x20',_0x468bff['t'](_0x34b911(0x1dc))]}),_0x1d754b[_0x34b911(0x268)](_0x34b911(0x19c),{'className':_0x34b911(0x21e),'children':[_0x1d754b['jsxs']('div',{'className':_0x34b911(0x1b6),'children':[_0x1d754b[_0x34b911(0x29a)]('div',{'className':'univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x1d754b[_0x34b911(0x268)](_0x34b911(0x19c),{'className':_0x34b911(0x162),'children':[_0x1d754b['jsx']('div',{'className':_0x34b911(0x27f),'children':_0x468bff['t']('mcpConfig.serverEndpoint')}),_0x1d754b[_0x34b911(0x29a)]('code',{'className':_0x34b911(0x20b),'children':_0x2accc7['mcpServerUrl']})]})]}),_0x1d754b[_0x34b911(0x268)](_0x34b911(0x19c),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x1d754b[_0x34b911(0x29a)](_0x34b911(0x19c),{'className':'univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x1d754b[_0x34b911(0x268)]('div',{'className':_0x34b911(0x162),'children':[_0x1d754b[_0x34b911(0x29a)](_0x34b911(0x19c),{'className':_0x34b911(0x27f),'children':_0x468bff['t'](_0x34b911(0x1c9))}),_0x1d754b[_0x34b911(0x29a)](_0x34b911(0x180),{'className':_0x34b911(0x2af),'children':_0x2accc7[_0x34b911(0x22a)]||_0x34b911(0x25a)})]})]})]})]}),_0x1d754b[_0x34b911(0x29a)](_0xa6997b[_0x34b911(0x210)],{'onClick':_0xad0f3f,'disabled':!_0x57a26b||_0x121b60,'className':_0x34b911(0x2b2),'children':_0x121b60?_0x1d754b['jsxs']('span',{'className':_0x34b911(0x19f),'children':[_0x1d754b[_0x34b911(0x29a)](_0x34b911(0x27b),{'children':'⟲'}),_0x468bff['t'](_0x34b911(0x252))]}):_0x1d754b[_0x34b911(0x268)]('span',{'className':_0x34b911(0x19f),'children':[_0x1d754b[_0x34b911(0x29a)](_0x63e0f,{}),_0x468bff['t'](_0x34b911(0x23f))]})}),_0x1d754b[_0x34b911(0x29a)](_0x34b911(0x19c),{'className':_0x34b911(0x1f0),'children':_0x1d754b[_0x34b911(0x268)](_0x34b911(0x19c),{'className':_0x34b911(0x17f),'children':[_0x1d754b[_0x34b911(0x29a)]('span',{'className':_0x34b911(0x253),'children':'💡'}),_0x1d754b[_0x34b911(0x268)](_0x34b911(0x19c),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x1d754b[_0x34b911(0x29a)](_0x34b911(0x19c),{'className':_0x34b911(0x165),'children':_0x34b911(0x243)}),_0x1d754b[_0x34b911(0x268)](_0x34b911(0x19c),{'children':['•',_0x468bff['t']('mcpConfig.note1')]}),_0x1d754b[_0x34b911(0x268)](_0x34b911(0x19c),{'children':['•',_0x468bff['t']('mcpConfig.note2')]})]})]})})]})})]});}const _0x4f92f9=_0x32b952(0x207),_0x96ab60={'showDeveloperTools':!0x1};var _0x8f5c=Object[_0x32b952(0x2a0)],_0x17290d=(_0x490a03,_0x13c4f2,_0x31205e,_0x3bc573)=>{var _0x2b88b0=_0x32b952;for(var _0x2d29ea=_0x3bc573>0x1?void 0x0:_0x3bc573?_0x8f5c(_0x13c4f2,_0x31205e):_0x13c4f2,_0x1c274a=_0x490a03[_0x2b88b0(0x136)]-0x1,_0x2131f3;_0x1c274a>=0x0;_0x1c274a--)(_0x2131f3=_0x490a03[_0x1c274a])&&(_0x2d29ea=_0x2131f3(_0x2d29ea)||_0x2d29ea);return _0x2d29ea;},_0x388514=(_0x417a38,_0x485328)=>(_0x398000,_0x3bef0d)=>_0x485328(_0x398000,_0x3bef0d,_0x417a38);const _0x44467c=_0x32b952(0x27c),_0x3f2da3=_0x32b952(0x1a7);_0x2781c8[_0x32b952(0x28a)]=class extends _0x36a8d0[_0x32b952(0x1a2)]{constructor(_0x31a23b,_0x6c96b6,_0x27b98e,_0x17cfef,_0x53d31b,_0x1fa21a,_0x3f0f4e,_0x162bb4,_0x2337ce,_0x3e465d){var _0x731fe6=_0x32b952;super(),_0x49f581(this,_0x731fe6(0x22f),new _0x2accb4['BehaviorSubject'](!0x1)),_0x49f581(this,_0x731fe6(0x197),new _0x2accb4[(_0x731fe6(0x1f2))]({})),_0x49f581(this,_0x731fe6(0x13a),new _0x2accb4[(_0x731fe6(0x1f2))]({})),_0x49f581(this,'_handleConfigSave',async _0x5b60af=>{var _0x2a6370=_0x731fe6;this[_0x2a6370(0x22f)][_0x2a6370(0x2ac)](!0x0);try{const _0xb33c39=await this[_0x2a6370(0x17e)](_0x5b60af);if(!_0xb33c39[_0x2a6370(0x1a1)]){this[_0x2a6370(0x13e)][_0x2a6370(0x21a)]({'type':_0xa6997b[_0x2a6370(0x29b)][_0x2a6370(0x2a1)],'content':_0xb33c39['errorMessage']||this[_0x2a6370(0x1c0)]['t'](_0x2a6370(0x28f))});return;}_0x5b60af['apiKey']?await this[_0x2a6370(0x1da)]['setItem'](_0x44467c,_0x5b60af[_0x2a6370(0x297)][_0x2a6370(0x230)]()):await this[_0x2a6370(0x1da)][_0x2a6370(0x1e5)](_0x44467c),this['_configService'][_0x2a6370(0x26f)](_0x3d5e8c[_0x2a6370(0x1dd)],{..._0x5b60af,'apiKey':_0x5b60af[_0x2a6370(0x297)][_0x2a6370(0x230)]()}),this[_0x2a6370(0x197)][_0x2a6370(0x2ac)]({..._0x5b60af,'apiKey':_0x5b60af[_0x2a6370(0x297)][_0x2a6370(0x230)]()}),this[_0x2a6370(0x13e)]['show']({'type':_0xa6997b['MessageType'][_0x2a6370(0x249)],'content':this[_0x2a6370(0x1c0)]['t'](_0x2a6370(0x298))}),setTimeout(()=>{var _0x396129=_0x2a6370;this[_0x396129(0x26d)][_0x396129(0x15d)](_0x3f2da3);},0x320);}catch(_0x11043d){this[_0x2a6370(0x13d)]['error'](_0x2a6370(0x22d),_0x11043d),this[_0x2a6370(0x13e)][_0x2a6370(0x21a)]({'type':_0xa6997b['MessageType'][_0x2a6370(0x2a1)],'content':this[_0x2a6370(0x1c0)]['t'](_0x2a6370(0x1b3))});}finally{this['_loading$'][_0x2a6370(0x2ac)](!0x1);}}),(this[_0x731fe6(0x167)]=_0x31a23b,this[_0x731fe6(0x14d)]=_0x6c96b6,this[_0x731fe6(0x211)]=_0x27b98e,this['_localStorageService']=_0x17cfef,this['_dialogService']=_0x53d31b,this['_messageService']=_0x1fa21a,this[_0x731fe6(0x23e)]=_0x3f0f4e,this[_0x731fe6(0x1c0)]=_0x162bb4,this['_logService']=_0x2337ce,this[_0x731fe6(0x1e8)]=_0x3e465d,this['_initConfigSync'](),this[_0x731fe6(0x222)](),this[_0x731fe6(0x2a4)]());}['showConfigPanel'](){var _0x5b50d2=_0x32b952;this['_dialogService']['open']({'id':_0x3f2da3,'title':{'title':this['_localeService']['t'](_0x5b50d2(0x1bb))},'children':{'label':_0x5b50d2(0x152)},'width':0x1e0,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x414c8c=_0x5b50d2;this['_dialogService'][_0x414c8c(0x15d)](_0x3f2da3);}});}[_0x32b952(0x1f1)](){return this['_mcpCoreConfig$']['value'];}[_0x32b952(0x2a4)](){var _0x5cdfd9=_0x32b952;this[_0x5cdfd9(0x1df)](this['_componentManager'][_0x5cdfd9(0x1cb)]('MCPConfigPanel',this[_0x5cdfd9(0x260)]()));}[_0x32b952(0x260)](){var _0x5bbdd3=_0x32b952;return _0xaf74bf[_0x5bbdd3(0x231)](()=>{var _0x11d6e6=_0x5bbdd3,_0x51c533,_0x5d9fe9;return _0x1d754b[_0x11d6e6(0x29a)](_0x36fbab,{'config':this['_config$'][_0x11d6e6(0x21f)],'mcpCoreConfig':this['_mcpCoreConfig$']['value'],'onSave':this[_0x11d6e6(0x14e)],'loading':this['_loading$'][_0x11d6e6(0x21f)],'connectionStatus$':(_0x51c533=this[_0x11d6e6(0x1e8)])==null?void 0x0:_0x51c533[_0x11d6e6(0x166)],'connectionError$':(_0x5d9fe9=this[_0x11d6e6(0x1e8)])==null?void 0x0:_0x5d9fe9[_0x11d6e6(0x18e)]});},this[_0x5bbdd3(0x167)]);}['_initConfigSync'](){var _0x2ccf71=_0x32b952;this[_0x2ccf71(0x1df)](this[_0x2ccf71(0x211)][_0x2ccf71(0x1a3)](_0x3d5e8c[_0x2ccf71(0x1dd)])[_0x2ccf71(0x2a8)](_0x1cffce=>{var _0xd68fc1=_0x2ccf71;this[_0xd68fc1(0x197)][_0xd68fc1(0x2ac)](_0x1cffce||{});}));const _0x2ddfb5=this[_0x2ccf71(0x211)]['getConfig'](_0x3d5e8c[_0x2ccf71(0x1dd)]);this['_mcpCoreConfig$'][_0x2ccf71(0x2ac)](_0x2ddfb5||{}),this[_0x2ccf71(0x1df)](this[_0x2ccf71(0x211)][_0x2ccf71(0x1a3)](_0x4f92f9)[_0x2ccf71(0x2a8)](_0x562ec4=>{var _0x28de48=_0x2ccf71;this[_0x28de48(0x13a)][_0x28de48(0x2ac)](_0x562ec4||{});}));const _0x200588=this['_configService'][_0x2ccf71(0x2ab)](_0x4f92f9);this[_0x2ccf71(0x13a)][_0x2ccf71(0x2ac)](_0x200588||{});}async['_loadStoredApiKey'](){var _0x1db952=_0x32b952;const _0x36741a=await this[_0x1db952(0x1da)][_0x1db952(0x23d)](_0x44467c);if(_0x36741a){const _0x11bb82={...this[_0x1db952(0x197)][_0x1db952(0x21f)],'apiKey':_0x36741a};this[_0x1db952(0x211)][_0x1db952(0x26f)](_0x3d5e8c[_0x1db952(0x1dd)],_0x11bb82),this[_0x1db952(0x197)][_0x1db952(0x2ac)](_0x11bb82);}}async[_0x32b952(0x17e)](_0x4dce1b){var _0x45bc45=_0x32b952;if(!_0x4dce1b['apiKey']||_0x4dce1b[_0x45bc45(0x297)]['trim']()[_0x45bc45(0x136)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x45bc45(0x1c0)]['t'](_0x45bc45(0x19a))};if(_0x4dce1b[_0x45bc45(0x297)][_0x45bc45(0x230)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x45bc45(0x1c0)]['t'](_0x45bc45(0x21c))};try{const _0x2b03b9=await this['_injector'][_0x45bc45(0x299)](_0x3d5e8c[_0x45bc45(0x258)])[_0x45bc45(0x256)](_0x4dce1b['apiKey'][_0x45bc45(0x230)]());return _0x2b03b9[_0x45bc45(0x1a1)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x2b03b9[_0x45bc45(0x1f5)]||this[_0x45bc45(0x1c0)]['t'](_0x45bc45(0x1b1))};}catch(_0x5dc00a){return console[_0x45bc45(0x264)](_0x45bc45(0x247),_0x5dc00a),{'isValid':!0x0};}}},_0x2781c8['MCPConfigUIController']=_0x17290d([_0x388514(0x0,_0x36a8d0[_0x32b952(0x137)](_0x36a8d0['Injector'])),_0x388514(0x1,_0xaf74bf['IUIPartsService']),_0x388514(0x2,_0x36a8d0[_0x32b952(0x1f8)]),_0x388514(0x3,_0x36a8d0['ILocalStorageService']),_0x388514(0x4,_0xaf74bf[_0x32b952(0x2b1)]),_0x388514(0x5,_0xaf74bf['IMessageService']),_0x388514(0x6,_0x36a8d0['Inject'](_0xaf74bf[_0x32b952(0x21d)])),_0x388514(0x7,_0x36a8d0['Inject'](_0x36a8d0['LocaleService'])),_0x388514(0x8,_0x36a8d0['ILogService']),_0x388514(0x9,_0x36a8d0[_0x32b952(0x137)](_0x3d5e8c[_0x32b952(0x258)]))],_0x2781c8[_0x32b952(0x28a)]);const _0x830ca7={'id':_0x32b952(0x195),'type':_0x36a8d0['CommandType'][_0x32b952(0x1de)],'handler':async(_0x5374e8,_0x318261)=>(_0x5374e8[_0x32b952(0x299)](_0x2781c8['MCPConfigUIController'])[_0x32b952(0x164)](),!0x0)};function _0x2bf2c2(_0x282f5e,_0x59b7c8){var _0x3887f8=_0x32b952;switch(_0x282f5e){case _0x3d5e8c['MCPConnectionStatus'][_0x3887f8(0x1d4)]:return _0x59b7c8===_0x3d5e8c[_0x3887f8(0x168)][_0x3887f8(0x139)]?_0x3887f8(0x2bb):_0x3887f8(0x2ba);case _0x3d5e8c[_0x3887f8(0x233)]['CONNECTING']:return _0x3887f8(0x1e0);case _0x3d5e8c[_0x3887f8(0x233)][_0x3887f8(0x196)]:return _0x3887f8(0x275);case _0x3d5e8c[_0x3887f8(0x233)][_0x3887f8(0x1ff)]:switch(_0x59b7c8){case _0x3d5e8c[_0x3887f8(0x168)][_0x3887f8(0x1ec)]:return _0x3887f8(0x1e1);case _0x3d5e8c[_0x3887f8(0x168)][_0x3887f8(0x22e)]:return _0x3887f8(0x2b6);case _0x3d5e8c['MCPConnectionError'][_0x3887f8(0x1fa)]:return _0x3887f8(0x182);case _0x3d5e8c[_0x3887f8(0x168)][_0x3887f8(0x294)]:return _0x3887f8(0x24f);default:return _0x3887f8(0x155);}case _0x3d5e8c[_0x3887f8(0x233)][_0x3887f8(0x1e6)]:return _0x3887f8(0x1be);default:return _0x3887f8(0x23b);}}function _0x2255dd(_0x4fb3af,_0x50e592,_0x19fe97){var _0xc35009=_0x32b952;const _0x5cbf82=_0x2bf2c2(_0x4fb3af,_0x50e592),_0xeeeed6=_0x19fe97['t'](_0x5cbf82);return _0x4fb3af===_0x3d5e8c[_0xc35009(0x233)]['DISCONNECTED']&&_0x50e592===_0x3d5e8c[_0xc35009(0x168)]['MISSING_API_KEY']?_0xeeeed6+'\x20-\x20'+_0x19fe97['t'](_0xc35009(0x246)):_0x4fb3af===_0x3d5e8c[_0xc35009(0x233)][_0xc35009(0x196)]?''+_0xeeeed6:_0x4fb3af===_0x3d5e8c[_0xc35009(0x233)][_0xc35009(0x1d4)]||_0x4fb3af===_0x3d5e8c[_0xc35009(0x233)][_0xc35009(0x1ff)]?_0xeeeed6+_0xc35009(0x1e2)+_0x19fe97['t'](_0xc35009(0x220)):_0xeeeed6;}function _0x286cfc(_0x3795e6){var _0x404ed8=_0x32b952;switch(_0x3795e6){case _0x3d5e8c[_0x404ed8(0x233)][_0x404ed8(0x196)]:return _0x404ed8(0x276);case _0x3d5e8c[_0x404ed8(0x233)][_0x404ed8(0x171)]:case _0x3d5e8c[_0x404ed8(0x233)][_0x404ed8(0x1e6)]:return _0x404ed8(0x263);case _0x3d5e8c[_0x404ed8(0x233)]['FAILED']:case _0x3d5e8c[_0x404ed8(0x233)][_0x404ed8(0x1d4)]:return _0x404ed8(0x208);default:return _0x404ed8(0x2b9);}}function _0x2fcc2f(_0x3916bc){var _0x35b468=_0x32b952;const {status$:_0x367dfe,error$:_0x2d1c6f,onConfigure:_0x1de18b}=_0x3916bc,_0x188bcb=_0xaf74bf[_0x35b468(0x15c)](_0x367dfe,_0x3d5e8c[_0x35b468(0x233)][_0x35b468(0x1d4)]),_0x3d6fa2=_0xaf74bf[_0x35b468(0x15c)](_0x2d1c6f,_0x3d5e8c['MCPConnectionError'][_0x35b468(0x18c)]),_0x3529cb=_0xaf74bf[_0x35b468(0x18a)](_0x36a8d0[_0x35b468(0x2a9)]),_0x2ac7bb=_0x188bcb===_0x3d5e8c[_0x35b468(0x233)][_0x35b468(0x196)],_0x3a8369=_0x188bcb===_0x3d5e8c['MCPConnectionStatus'][_0x35b468(0x171)]||_0x188bcb===_0x3d5e8c['MCPConnectionStatus'][_0x35b468(0x1e6)],_0x136bed=_0x3529cb['t'](_0x2bf2c2(_0x188bcb,_0x3d6fa2)),_0x112856=_0x2255dd(_0x188bcb,_0x3d6fa2,_0x3529cb),_0x1e5cee=_0x286cfc(_0x188bcb),_0x2a685a=_0x2ac7bb?_0x1d754b['jsx'](_0x319e66,{}):_0x1d754b[_0x35b468(0x29a)](_0x3ea4c2,{}),_0x758b9c=_0x4bc8f1[_0x35b468(0x27a)](()=>{_0x1de18b&&_0x1de18b();},[_0x2ac7bb,_0x3a8369,_0x1de18b]);function _0x51d3c9(){var _0x2c351a=_0x35b468;return _0x1d754b[_0x2c351a(0x268)]('div',{'className':_0xa6997b[_0x2c351a(0x1d2)](_0x2c351a(0x261),_0x1de18b&&_0x2c351a(0x25c)),'onClick':_0x1de18b?_0x758b9c:void 0x0,'children':[_0x1d754b['jsx'](_0x2c351a(0x19c),{'className':_0xa6997b[_0x2c351a(0x1d2)](_0x2c351a(0x29d),_0x1e5cee),'children':_0x2a685a}),_0x1d754b[_0x2c351a(0x29a)]('div',{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x136bed})]});}return _0x1d754b[_0x35b468(0x29a)](_0xa6997b['Tooltip'],{'title':_0x112856,'placement':_0x35b468(0x212),'children':_0x51d3c9()});}var _0xb2f12e=Object[_0x32b952(0x2a0)],_0x2bc900=(_0x3b7333,_0x1b3047,_0x1483c6,_0x39aafe)=>{var _0x3c3f34=_0x32b952;for(var _0x34d904=_0x39aafe>0x1?void 0x0:_0x39aafe?_0xb2f12e(_0x1b3047,_0x1483c6):_0x1b3047,_0x490387=_0x3b7333[_0x3c3f34(0x136)]-0x1,_0x32fcd8;_0x490387>=0x0;_0x490387--)(_0x32fcd8=_0x3b7333[_0x490387])&&(_0x34d904=_0x32fcd8(_0x34d904)||_0x34d904);return _0x34d904;},_0x59f4e7=(_0x5470de,_0x4e4d8f)=>(_0x252d2f,_0x12b751)=>_0x4e4d8f(_0x252d2f,_0x12b751,_0x5470de);_0x2781c8[_0x32b952(0x1f6)]=class extends _0x36a8d0[_0x32b952(0x1a2)]{constructor(_0x31de7b,_0x291f46,_0x416c0f){var _0x2d73fa=_0x32b952;super(),this[_0x2d73fa(0x167)]=_0x31de7b,this['_connectionController']=_0x291f46,this[_0x2d73fa(0x14d)]=_0x416c0f,this[_0x2d73fa(0x193)]();}[_0x32b952(0x193)](){var _0x5716ab=_0x32b952;this[_0x5716ab(0x1df)](this[_0x5716ab(0x14d)]['registerComponent'](_0xaf74bf[_0x5716ab(0x161)][_0x5716ab(0x22c)],()=>_0xaf74bf[_0x5716ab(0x231)](_0x2fbabe({'status$':this[_0x5716ab(0x142)][_0x5716ab(0x166)],'error$':this[_0x5716ab(0x142)][_0x5716ab(0x18e)],'onConfigure':()=>this[_0x5716ab(0x15e)]()}),this[_0x5716ab(0x167)])));}[_0x32b952(0x15e)](){var _0x250efc=_0x32b952;this[_0x250efc(0x167)][_0x250efc(0x299)](_0x2781c8['MCPConfigUIController'])[_0x250efc(0x164)]();}},_0x2781c8['MCPConnectionUIController']=_0x2bc900([_0x59f4e7(0x0,_0x36a8d0[_0x32b952(0x137)](_0x36a8d0[_0x32b952(0x2b0)])),_0x59f4e7(0x1,_0x36a8d0[_0x32b952(0x137)](_0x3d5e8c['MCPConnectionController'])),_0x59f4e7(0x2,_0xaf74bf[_0x32b952(0x134)])],_0x2781c8[_0x32b952(0x1f6)]);function _0x2fbabe(_0x103e36){const {status$:_0x260737,error$:_0x89c7de,onConfigure:_0x1cc0e5}=_0x103e36;return function(){var _0x4b5f65=_0xaf6e;return _0x1d754b[_0x4b5f65(0x29a)](_0x2fcc2f,{'status$':_0x260737,'error$':_0x89c7de,'onConfigure':_0x1cc0e5});};}function _0x5d8207(_0x469310){var _0x20712b=_0x32b952;return{'id':_0x830ca7['id'],'type':_0xaf74bf['MenuItemType'][_0x20712b(0x1d3)],'icon':_0x20712b(0x15f),'title':'mcpConfig.title','tooltip':_0x20712b(0x1bb)};}const _0x2a6fdc={[_0xaf74bf[_0x32b952(0x14c)]['OTHERS']]:{[_0x830ca7['id']]:{'order':0xa,'menuItemFactory':_0x5d8207}}};var _0xcb0409=Object[_0x32b952(0x2a0)],_0x36a9b6=(_0x3f57f0,_0x1af205,_0x38524d,_0x2bee2b)=>{var _0x318886=_0x32b952;for(var _0x21fe7e=_0x2bee2b>0x1?void 0x0:_0x2bee2b?_0xcb0409(_0x1af205,_0x38524d):_0x1af205,_0x361fdc=_0x3f57f0[_0x318886(0x136)]-0x1,_0xdbf1f7;_0x361fdc>=0x0;_0x361fdc--)(_0xdbf1f7=_0x3f57f0[_0x361fdc])&&(_0x21fe7e=_0xdbf1f7(_0x21fe7e)||_0x21fe7e);return _0x21fe7e;},_0x57b165=(_0x554c26,_0x3402fb)=>(_0x17ca12,_0x139527)=>_0x3402fb(_0x17ca12,_0x139527,_0x554c26);_0x2781c8[_0x32b952(0x1d5)]=class extends _0x36a8d0[_0x32b952(0x1a2)]{constructor(_0x5f5986,_0x202500){var _0x477fba=_0x32b952;super(),this[_0x477fba(0x149)]=_0x5f5986,this[_0x477fba(0x278)]=_0x202500,this[_0x477fba(0x147)](),this[_0x477fba(0x16f)]();}[_0x32b952(0x147)](){var _0x3d4af7=_0x32b952;[_0x830ca7][_0x3d4af7(0x269)](_0x2e8527=>{var _0x3abc9a=_0x3d4af7;this[_0x3abc9a(0x1df)](this['_commandService'][_0x3abc9a(0x17d)](_0x2e8527));});}[_0x32b952(0x16f)](){var _0x4304cc=_0x32b952;this['_menuManagerService'][_0x4304cc(0x2a3)](_0x2a6fdc);}},_0x2781c8[_0x32b952(0x1d5)]=_0x36a9b6([_0x57b165(0x0,_0x36a8d0[_0x32b952(0x1a5)]),_0x57b165(0x1,_0xaf74bf[_0x32b952(0x27d)])],_0x2781c8[_0x32b952(0x1d5)]);const _0x3a5507={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x32b952(0x218),'connected':'MCP\x20Connected','failed':_0x32b952(0x24a),'retrying':'MCP\x20Retrying...','unknown':_0x32b952(0x1b7),'missingApiKey':_0x32b952(0x1b8),'invalidApiKey':_0x32b952(0x19d),'sessionOccupied':'MCP:\x20Session\x20Occupied','networkError':_0x32b952(0x156),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x32b952(0x199)},'mcpConfig':{'title':_0x32b952(0x1c8),'description':_0x32b952(0x281),'apiKey':_0x32b952(0x20f),'apiKeyPlaceholder':_0x32b952(0x227),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x32b952(0x158),'connectionInfo':'Connection\x20Information','serverEndpoint':_0x32b952(0x203),'sessionId':'Session\x20ID','maxRetries':'Max\x20Retries','save':_0x32b952(0x2a5),'saving':_0x32b952(0x236),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x32b952(0x238),'configSaved':_0x32b952(0x188),'configError':_0x32b952(0x274),'apiApplyInfo':{'title':_0x32b952(0x219),'description':_0x32b952(0x23c),'univerAiLabel':_0x32b952(0x1b4),'getStarted':_0x32b952(0x1bf)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x32b952(0x1e9),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x32b952(0x1a4)},'connectionStatus':{'disconnected':_0x32b952(0x1d9),'connecting':_0x32b952(0x150),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x32b952(0x223)},'connectionError':{'missingApiKey':_0x32b952(0x19e),'invalidApiKey':_0x32b952(0x1cf),'sessionOccupied':'Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x32b952(0x228)}}},_0x5216bf={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x32b952(0x26a),'connected':_0x32b952(0x2a2),'failed':_0x32b952(0x20c),'retrying':_0x32b952(0x1e7),'unknown':_0x32b952(0x206),'missingApiKey':_0x32b952(0x176),'invalidApiKey':_0x32b952(0x279),'sessionOccupied':_0x32b952(0x235),'networkError':_0x32b952(0x23a),'maxRetriesExceeded':_0x32b952(0x148),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x32b952(0x1f9)},'mcpConfig':{'title':_0x32b952(0x14a),'description':_0x32b952(0x20a),'apiKey':_0x32b952(0x138),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x32b952(0x15b),'enableAuth':_0x32b952(0x144),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x32b952(0x229),'serverEndpoint':_0x32b952(0x1fb),'sessionId':_0x32b952(0x190),'maxRetries':_0x32b952(0x175),'save':_0x32b952(0x1c5),'saving':_0x32b952(0x25e),'note1':_0x32b952(0x270),'note2':_0x32b952(0x179),'configSaved':_0x32b952(0x291),'configError':_0x32b952(0x198),'apiApplyInfo':{'title':_0x32b952(0x225),'description':_0x32b952(0x13c),'univerAiLabel':_0x32b952(0x266),'getStarted':_0x32b952(0x1b9)},'validation':{'apiKeyRequired':_0x32b952(0x2b3),'apiKeyTooShort':_0x32b952(0x26b),'invalidConfig':'配置无效','invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x32b952(0x257),'connecting':_0x32b952(0x151),'connected':_0x32b952(0x22b),'failed':_0x32b952(0x250),'retrying':_0x32b952(0x1ce)},'connectionError':{'missingApiKey':_0x32b952(0x1d0),'invalidApiKey':_0x32b952(0x201),'sessionOccupied':_0x32b952(0x28e),'networkError':_0x32b952(0x1ef),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var _0x3d2829=Object['defineProperty'],_0x424647=Object['getOwnPropertyDescriptor'],_0x25173f=(_0x236eda,_0x2d1ece,_0x3fb9e2)=>_0x2d1ece in _0x236eda?_0x3d2829(_0x236eda,_0x2d1ece,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3fb9e2}):_0x236eda[_0x2d1ece]=_0x3fb9e2,_0x594340=(_0x5cce33,_0x3e836a,_0x33de76,_0x229912)=>{for(var _0x2983ad=_0x229912>0x1?void 0x0:_0x229912?_0x424647(_0x3e836a,_0x33de76):_0x3e836a,_0x43598d=_0x5cce33['length']-0x1,_0x2102b4;_0x43598d>=0x0;_0x43598d--)(_0x2102b4=_0x5cce33[_0x43598d])&&(_0x2983ad=_0x2102b4(_0x2983ad)||_0x2983ad);return _0x2983ad;},_0x3e66d0=(_0x3d4538,_0x1df26f)=>(_0x49a77e,_0x49af39)=>_0x1df26f(_0x49a77e,_0x49af39,_0x3d4538),_0x29f294=(_0xdcb4f2,_0x2e89b9,_0x7003ea)=>_0x25173f(_0xdcb4f2,_0x2e89b9+'',_0x7003ea);_0x2781c8[_0x32b952(0x254)]=class extends _0x36a8d0['Plugin']{constructor(_0x52d05b=_0x96ab60,_0x7bf740,_0x354c52,_0x2b6cd6,_0x515b08,_0x490400){var _0x55d001=_0x32b952;super(),this[_0x55d001(0x173)]=_0x52d05b,this[_0x55d001(0x167)]=_0x7bf740,this[_0x55d001(0x211)]=_0x354c52,this['_uiPartsService']=_0x2b6cd6,this[_0x55d001(0x1da)]=_0x515b08,this[_0x55d001(0x1c0)]=_0x490400;const {..._0x1895df}=_0x36a8d0[_0x55d001(0x1d8)]({},_0x96ab60,this[_0x55d001(0x173)]);this[_0x55d001(0x211)]['setConfig'](_0x4f92f9,_0x1895df);}async[_0x32b952(0x273)](){var _0x5db011=_0x32b952;[[_0x2781c8[_0x5db011(0x1f6)]],[_0x2781c8[_0x5db011(0x28a)]],[_0x2781c8[_0x5db011(0x1d5)]]][_0x5db011(0x269)](_0x3945de=>this[_0x5db011(0x167)][_0x5db011(0x189)](_0x3945de)),this['_injector'][_0x5db011(0x299)](_0x2781c8[_0x5db011(0x1f6)]),this[_0x5db011(0x167)][_0x5db011(0x299)](_0x2781c8['MCPConfigUIController']),this[_0x5db011(0x167)][_0x5db011(0x299)](_0x2781c8[_0x5db011(0x1d5)]);}},_0x29f294(_0x2781c8['UniverMCPUIPlugin'],_0x32b952(0x245),_0x32b952(0x18b)),_0x2781c8[_0x32b952(0x254)]=_0x594340([_0x36a8d0[_0x32b952(0x216)](_0x3d5e8c['UniverMCPPlugin']),_0x3e66d0(0x1,_0x36a8d0[_0x32b952(0x137)](_0x36a8d0[_0x32b952(0x2b0)])),_0x3e66d0(0x2,_0x36a8d0[_0x32b952(0x1f8)]),_0x3e66d0(0x3,_0xaf74bf[_0x32b952(0x134)]),_0x3e66d0(0x4,_0x36a8d0['ILocalStorageService']),_0x3e66d0(0x5,_0x36a8d0[_0x32b952(0x137)](_0x36a8d0[_0x32b952(0x2a9)]))],_0x2781c8['UniverMCPUIPlugin']),_0x2781c8[_0x32b952(0x152)]=_0x36fbab,_0x2781c8['MCPStatusDisplay']=_0x2fcc2f,_0x2781c8[_0x32b952(0x1a0)]=_0x830ca7,_0x2781c8[_0x32b952(0x248)]=_0x3a5507,_0x2781c8[_0x32b952(0x244)]=_0x5216bf,Object[_0x32b952(0x16b)](_0x2781c8,Symbol[_0x32b952(0x1bd)],{'value':_0x32b952(0x224)});}));
|
|
1
|
+
(function(_0x56cf8e,_0x40be34){var _0x246fa1=_0x5ed1,_0x181e43=_0x56cf8e();while(!![]){try{var _0x1e36ce=-parseInt(_0x246fa1(0x33b))/0x1*(parseInt(_0x246fa1(0x31b))/0x2)+-parseInt(_0x246fa1(0x2da))/0x3*(parseInt(_0x246fa1(0x1d8))/0x4)+-parseInt(_0x246fa1(0x259))/0x5+parseInt(_0x246fa1(0x31c))/0x6*(parseInt(_0x246fa1(0x263))/0x7)+-parseInt(_0x246fa1(0x2eb))/0x8*(parseInt(_0x246fa1(0x2f5))/0x9)+parseInt(_0x246fa1(0x20e))/0xa*(parseInt(_0x246fa1(0x355))/0xb)+parseInt(_0x246fa1(0x1ce))/0xc;if(_0x1e36ce===_0x40be34)break;else _0x181e43['push'](_0x181e43['shift']());}catch(_0x45756b){_0x181e43['push'](_0x181e43['shift']());}}}(_0x5c9d,0x7b891),function(_0x37444b,_0x33f1f5){var _0x236763=_0x5ed1;typeof exports==_0x236763(0x317)&&typeof module<'u'?_0x33f1f5(exports,require('@univerjs/core'),require('react/jsx-runtime'),require('@univerjs-pro/mcp'),require('@univerjs/design'),require('@univerjs/ui'),require('rxjs'),require('react'),require('@univerjs/network')):typeof define=='function'&&define[_0x236763(0x213)]?define(['exports',_0x236763(0x232),_0x236763(0x2f3),_0x236763(0x2ee),_0x236763(0x30b),_0x236763(0x210),_0x236763(0x2f7),_0x236763(0x22c),'@univerjs/network'],_0x33f1f5):(_0x37444b=typeof globalThis<'u'?globalThis:_0x37444b||self,_0x33f1f5(_0x37444b[_0x236763(0x271)]={},_0x37444b['UniverCore'],_0x37444b[_0x236763(0x217)],_0x37444b[_0x236763(0x286)],_0x37444b['UniverDesign'],_0x37444b[_0x236763(0x218)],_0x37444b[_0x236763(0x2f7)],_0x37444b[_0x236763(0x217)],_0x37444b['UniverNetwork']));}(this,function(_0x4300b4,_0x4d4771,_0x2c66a9,_0x33a4b2,_0x15fc13,_0x839c43,_0x1932a1,_0x53c926,_0x51d722){'use strict';var _0x58a3da=_0x5ed1;var _0x4ee9c0=Object['defineProperty'],_0x5b912f=(_0x2d2f13,_0x172629,_0xe07255)=>_0x172629 in _0x2d2f13?_0x4ee9c0(_0x2d2f13,_0x172629,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe07255}):_0x2d2f13[_0x172629]=_0xe07255,_0x5b90b1=(_0xd96784,_0x17cdcd,_0x965d44)=>_0x5b912f(_0xd96784,typeof _0x17cdcd!=_0x58a3da(0x32f)?_0x17cdcd+'':_0x17cdcd,_0x965d44),_0x4c8a80=function(){var _0x2161f5=_0x58a3da;return _0x4c8a80=Object['assign']||function(_0x12d1d6){var _0x446ace=_0x5ed1;for(var _0x3a80e0,_0x23d1a3=0x1,_0x3994f7=arguments['length'];_0x23d1a3<_0x3994f7;_0x23d1a3++){_0x3a80e0=arguments[_0x23d1a3];for(var _0xe5b34f in _0x3a80e0)Object[_0x446ace(0x1f5)]['hasOwnProperty'][_0x446ace(0x1e1)](_0x3a80e0,_0xe5b34f)&&(_0x12d1d6[_0xe5b34f]=_0x3a80e0[_0xe5b34f]);}return _0x12d1d6;},_0x4c8a80[_0x2161f5(0x28d)](this,arguments);},_0x10df0e=function(_0x39272d,_0x2db3f6){var _0x1cf335=_0x58a3da,_0x39db2e={};for(var _0x40066b in _0x39272d)Object[_0x1cf335(0x1f5)]['hasOwnProperty'][_0x1cf335(0x1e1)](_0x39272d,_0x40066b)&&_0x2db3f6[_0x1cf335(0x34d)](_0x40066b)<0x0&&(_0x39db2e[_0x40066b]=_0x39272d[_0x40066b]);if(_0x39272d!=null&&typeof Object[_0x1cf335(0x336)]=='function'){for(var _0x514d7b=0x0,_0x40066b=Object[_0x1cf335(0x336)](_0x39272d);_0x514d7b<_0x40066b[_0x1cf335(0x1eb)];_0x514d7b++)_0x2db3f6[_0x1cf335(0x34d)](_0x40066b[_0x514d7b])<0x0&&Object[_0x1cf335(0x1f5)][_0x1cf335(0x2e7)][_0x1cf335(0x1e1)](_0x39272d,_0x40066b[_0x514d7b])&&(_0x39db2e[_0x40066b[_0x514d7b]]=_0x39272d[_0x40066b[_0x514d7b]]);}return _0x39db2e;},_0x16b3f6=_0x53c926['forwardRef'](function(_0x3e1304,_0x5da9c2){var _0xd09d2a=_0x58a3da,_0x36bbf0=_0x3e1304['icon'],_0x3b4806=_0x3e1304['id'],_0x1adf93=_0x3e1304['className'],_0x2db0ea=_0x3e1304['extend'],_0x3b5da2=_0x10df0e(_0x3e1304,['icon','id',_0xd09d2a(0x2d7),_0xd09d2a(0x2ce)]),_0x36233f='univerjs-icon\x20univerjs-icon-'['concat'](_0x3b4806,'\x20')[_0xd09d2a(0x242)](_0x1adf93||'')['trim'](),_0x2a2296=_0x53c926[_0xd09d2a(0x349)]('_'[_0xd09d2a(0x242)](_0x429915()));return _0x2ce811(_0x36bbf0,''[_0xd09d2a(0x242)](_0x3b4806),{'defIds':_0x36bbf0[_0xd09d2a(0x343)],'idSuffix':_0x2a2296['current']},_0x4c8a80({'ref':_0x5da9c2,'className':_0x36233f},_0x3b5da2),_0x2db0ea);});function _0x2ce811(_0xcc49b0,_0x425f40,_0x5822f3,_0xa3693b,_0x456402){var _0x1e90ae=_0x58a3da;return _0x53c926[_0x1e90ae(0x257)](_0xcc49b0['tag'],_0x4c8a80(_0x4c8a80({'key':_0x425f40},_0x146b88(_0xcc49b0,_0x5822f3,_0x456402)),_0xa3693b),(_0x3cb194(_0xcc49b0,_0x5822f3)[_0x1e90ae(0x24b)]||[])[_0x1e90ae(0x2df)](function(_0x3bed06,_0x139b9f){var _0x3c19d1=_0x1e90ae;return _0x2ce811(_0x3bed06,''[_0x3c19d1(0x242)](_0x425f40,'-')[_0x3c19d1(0x242)](_0xcc49b0[_0x3c19d1(0x23b)],'-')[_0x3c19d1(0x242)](_0x139b9f),_0x5822f3,void 0x0,_0x456402);}));}function _0x146b88(_0x3b5eb8,_0xb43d23,_0x17039e){var _0x1519b8=_0x58a3da,_0x1bb3ca=_0x4c8a80({},_0x3b5eb8[_0x1519b8(0x1f9)]);_0x17039e!=null&&_0x17039e['colorChannel1']&&_0x1bb3ca[_0x1519b8(0x224)]===_0x1519b8(0x249)&&(_0x1bb3ca['fill']=_0x17039e[_0x1519b8(0x249)]),_0x3b5eb8[_0x1519b8(0x23b)]==='mask'&&_0x1bb3ca['id']&&(_0x1bb3ca['id']=_0x1bb3ca['id']+_0xb43d23[_0x1519b8(0x326)]),Object[_0x1519b8(0x214)](_0x1bb3ca)[_0x1519b8(0x28b)](function(_0x5b20a5){var _0x20e149=_0x1519b8,_0x2020fb=_0x5b20a5[0x0],_0x2eeafb=_0x5b20a5[0x1];_0x2020fb===_0x20e149(0x2ac)&&typeof _0x2eeafb=='string'&&(_0x1bb3ca[_0x2020fb]=_0x2eeafb[_0x20e149(0x32a)](/url\(#(.*)\)/,_0x20e149(0x21c)[_0x20e149(0x242)](_0xb43d23[_0x20e149(0x326)],')')));});var _0x24b768=_0xb43d23[_0x1519b8(0x343)];return!_0x24b768||_0x24b768['length']===0x0||(_0x3b5eb8[_0x1519b8(0x23b)]===_0x1519b8(0x28a)&&_0x1bb3ca[_0x1519b8(0x2c6)]&&(_0x1bb3ca[_0x1519b8(0x2c6)]=_0x1bb3ca[_0x1519b8(0x2c6)]+_0xb43d23['idSuffix']),Object[_0x1519b8(0x214)](_0x1bb3ca)[_0x1519b8(0x28b)](function(_0x238fd2){var _0x30a94e=_0x1519b8,_0x4d1779=_0x238fd2[0x0],_0x2bb497=_0x238fd2[0x1];typeof _0x2bb497==_0x30a94e(0x2c2)&&(_0x1bb3ca[_0x4d1779]=_0x2bb497[_0x30a94e(0x32a)](/url\(#(.*)\)/,'url(#$1'['concat'](_0xb43d23['idSuffix'],')')));})),_0x1bb3ca;}function _0x3cb194(_0x18467a,_0x5096b9){var _0x4f3bfa=_0x58a3da,_0x1f719d,_0x1da1dc=_0x5096b9[_0x4f3bfa(0x343)];return!_0x1da1dc||_0x1da1dc[_0x4f3bfa(0x1eb)]===0x0?_0x18467a:_0x18467a[_0x4f3bfa(0x23b)]==='defs'&&(!((_0x1f719d=_0x18467a['children'])===null||_0x1f719d===void 0x0)&&_0x1f719d[_0x4f3bfa(0x1eb)])?_0x4c8a80(_0x4c8a80({},_0x18467a),{'children':_0x18467a[_0x4f3bfa(0x24b)][_0x4f3bfa(0x2df)](function(_0xc24c39){var _0x4cb3ae=_0x4f3bfa;return typeof _0xc24c39[_0x4cb3ae(0x1f9)]['id']=='string'&&_0x1da1dc&&_0x1da1dc[_0x4cb3ae(0x25f)](_0xc24c39[_0x4cb3ae(0x1f9)]['id'])?_0x4c8a80(_0x4c8a80({},_0xc24c39),{'attrs':_0x4c8a80(_0x4c8a80({},_0xc24c39[_0x4cb3ae(0x1f9)]),{'id':_0xc24c39[_0x4cb3ae(0x1f9)]['id']+_0x5096b9[_0x4cb3ae(0x326)]})}):_0xc24c39;})}):_0x18467a;}function _0x429915(){var _0x26a2c1=_0x58a3da;return Math[_0x26a2c1(0x305)]()[_0x26a2c1(0x2cf)](0x24)[_0x26a2c1(0x1d9)](0x2,0x8);}_0x16b3f6[_0x58a3da(0x2db)]=_0x58a3da(0x2c8);var _0x29b11a={'tag':_0x58a3da(0x226),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x58a3da(0x2b0),'viewBox':_0x58a3da(0x1de),'width':_0x58a3da(0x1f8),'height':_0x58a3da(0x1f8)},'children':[{'tag':_0x58a3da(0x346),'attrs':{'fill':'currentColor','d':_0x58a3da(0x1d4),'fillRule':_0x58a3da(0x2b6),'clipRule':'evenodd'}}]},_0x51e176=_0x53c926[_0x58a3da(0x227)](function(_0x985b48,_0x4cc542){var _0xcc4e6d=_0x58a3da;return _0x53c926[_0xcc4e6d(0x257)](_0x16b3f6,Object[_0xcc4e6d(0x322)]({},_0x985b48,{'id':_0xcc4e6d(0x273),'ref':_0x4cc542,'icon':_0x29b11a}));});_0x51e176['displayName']=_0x58a3da(0x229);var _0x461c80={'tag':_0x58a3da(0x226),'attrs':{'xmlns':_0x58a3da(0x292),'fill':_0x58a3da(0x2b0),'viewBox':'0\x200\x2017\x2017','width':_0x58a3da(0x1f8),'height':_0x58a3da(0x1f8)},'children':[{'tag':_0x58a3da(0x346),'attrs':{'stroke':_0x58a3da(0x2f4),'d':'M5.21243\x205.62036L11.8791\x2012.287','strokeLinecap':_0x58a3da(0x313),'strokeLinejoin':_0x58a3da(0x313),'strokeWidth':1.33}},{'tag':_0x58a3da(0x346),'attrs':{'stroke':'currentColor','d':_0x58a3da(0x30a),'strokeLinecap':_0x58a3da(0x313),'strokeLinejoin':_0x58a3da(0x313),'strokeWidth':1.33}}]},_0x30f1fb=_0x53c926['forwardRef'](function(_0x177b9e,_0x24c59e){var _0x106965=_0x58a3da;return _0x53c926[_0x106965(0x257)](_0x16b3f6,Object[_0x106965(0x322)]({},_0x177b9e,{'id':_0x106965(0x237),'ref':_0x24c59e,'icon':_0x461c80}));});_0x30f1fb[_0x58a3da(0x2db)]=_0x58a3da(0x22f);var _0x20e58c={'tag':_0x58a3da(0x226),'attrs':{'xmlns':_0x58a3da(0x292),'fill':'none','viewBox':_0x58a3da(0x1de),'width':'1em','height':_0x58a3da(0x1f8)},'children':[{'tag':_0x58a3da(0x346),'attrs':{'fill':_0x58a3da(0x2f4),'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':_0x58a3da(0x346),'attrs':{'fill':_0x58a3da(0x2f4),'d':_0x58a3da(0x1e3)}},{'tag':_0x58a3da(0x346),'attrs':{'fill':_0x58a3da(0x2f4),'d':_0x58a3da(0x2bb),'fillRule':'evenodd','clipRule':_0x58a3da(0x2b6)}}]},_0x4135f8=_0x53c926[_0x58a3da(0x227)](function(_0x2eebc1,_0x556d15){var _0x30851d=_0x58a3da;return _0x53c926[_0x30851d(0x257)](_0x16b3f6,Object[_0x30851d(0x322)]({},_0x2eebc1,{'id':'help-single','ref':_0x556d15,'icon':_0x20e58c}));});_0x4135f8[_0x58a3da(0x2db)]=_0x58a3da(0x366);var _0x3db02={'tag':'svg','attrs':{'xmlns':_0x58a3da(0x292),'fill':_0x58a3da(0x2b0),'viewBox':_0x58a3da(0x1de),'width':_0x58a3da(0x1f8),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x58a3da(0x1d5)},'children':[{'tag':_0x58a3da(0x346),'attrs':{'stroke':_0x58a3da(0x2f4),'d':_0x58a3da(0x2ba),'strokeLinecap':'round','strokeLinejoin':_0x58a3da(0x313),'strokeWidth':1.2}}]},{'tag':_0x58a3da(0x28c),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x58a3da(0x29f)},'children':[{'tag':'path','attrs':{'fill':_0x58a3da(0x335),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x58a3da(0x29f)]},_0x9f4cee=_0x53c926['forwardRef'](function(_0x11679b,_0x3cb4e2){var _0xfabdd7=_0x58a3da;return _0x53c926[_0xfabdd7(0x257)](_0x16b3f6,Object[_0xfabdd7(0x322)]({},_0x11679b,{'id':'off-line-icon','ref':_0x3cb4e2,'icon':_0x3db02}));});_0x9f4cee[_0x58a3da(0x2db)]=_0x58a3da(0x2ea);var _0x2c044a={'tag':_0x58a3da(0x226),'attrs':{'xmlns':_0x58a3da(0x292),'fill':_0x58a3da(0x2b0),'viewBox':_0x58a3da(0x1d2),'width':_0x58a3da(0x1f8),'height':_0x58a3da(0x1f8)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x58a3da(0x346),'attrs':{'stroke':_0x58a3da(0x2f4),'d':'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','strokeLinecap':_0x58a3da(0x313),'strokeLinejoin':_0x58a3da(0x313),'strokeWidth':1.2}}]},{'tag':_0x58a3da(0x28c),'attrs':{},'children':[{'tag':_0x58a3da(0x27e),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x58a3da(0x346),'attrs':{'fill':_0x58a3da(0x335),'d':_0x58a3da(0x327),'transform':'translate(.97)'}}]}]}],'defIds':['on-line-icon_clip0_910_349']},_0x5ad28b=_0x53c926[_0x58a3da(0x227)](function(_0x2e7e9b,_0x47d9dc){var _0x2669da=_0x58a3da;return _0x53c926[_0x2669da(0x257)](_0x16b3f6,Object[_0x2669da(0x322)]({},_0x2e7e9b,{'id':_0x2669da(0x2e4),'ref':_0x47d9dc,'icon':_0x2c044a}));});_0x5ad28b[_0x58a3da(0x2db)]=_0x58a3da(0x211);function _0x21aca9(_0x883151){var _0x35f697=_0x58a3da,_0x5d7e56,_0x5840d6;const {mcpCoreConfig:_0x2cb9a2,onSave:_0x19fb3c,loading:_0x35f2be=!0x1,config:_0xe69071,connectionStatus$:_0x2a1477,connectionError$:_0x344383,currentApiKey$:_0x56987c,currentSessionId$:_0x15fc80}=_0x883151,_0xf81b6=_0x839c43[_0x35f697(0x202)](_0x4d4771[_0x35f697(0x1ef)]),_0x5711e8=_0x839c43[_0x35f697(0x2ad)](_0x2a1477,_0x33a4b2[_0x35f697(0x215)][_0x35f697(0x294)]),_0x190476=_0x839c43[_0x35f697(0x2ad)](_0x344383,_0x33a4b2[_0x35f697(0x20a)][_0x35f697(0x25c)]),_0x146d42=_0x839c43['useObservable'](_0x15fc80,''),_0x24fa43=_0x839c43[_0x35f697(0x2ad)](_0x56987c,''),[_0x686a55,_0x8c878b]=_0x53c926[_0x35f697(0x2fb)](_0x24fa43||''),_0x1d6ba1=!0x0,_0x410fbb=_0xe69071[_0x35f697(0x2bf)]&&_0x2cb9a2['mcpServerUrl']&&(_0x2cb9a2[_0x35f697(0x260)][_0x35f697(0x25f)]('univer.plus')||_0x2cb9a2[_0x35f697(0x260)][_0x35f697(0x25f)](_0x35f697(0x29c))),_0x1fbf96=(_0x5d7e56=_0x2cb9a2[_0x35f697(0x260)])==null?void 0x0:_0x5d7e56[_0x35f697(0x25f)](_0x35f697(0x351)),_0x245d29=(_0x5840d6=_0x2cb9a2[_0x35f697(0x260)])==null?void 0x0:_0x5840d6[_0x35f697(0x25f)]('univer.ai'),_0xca5133=_0x1fbf96?_0x35f697(0x34b):_0x35f697(0x23f),_0x17bee3=_0xe69071[_0x35f697(0x2bf)]&&(_0x1fbf96||_0x245d29),[_0x53516a,_0x2eda39]=_0x53c926[_0x35f697(0x2fb)](!_0x686a55['trim']()),_0xbea806=(_0x5271a5,_0x364246)=>{var _0x2b894d=_0x35f697;if(_0x364246===_0x33a4b2[_0x2b894d(0x20a)][_0x2b894d(0x207)])return _0x2b894d(0x33d);switch(_0x5271a5){case _0x33a4b2[_0x2b894d(0x215)][_0x2b894d(0x1ee)]:return _0x2b894d(0x338);case _0x33a4b2[_0x2b894d(0x215)][_0x2b894d(0x23c)]:case _0x33a4b2[_0x2b894d(0x215)]['RETRYING']:return _0x2b894d(0x2e6);case _0x33a4b2[_0x2b894d(0x215)][_0x2b894d(0x362)]:return _0x2b894d(0x33d);default:return _0x2b894d(0x236);}},_0x1b59d5=(_0x52bc7a,_0x45c4b8)=>{var _0x5b2682=_0x35f697;if(_0x45c4b8===_0x33a4b2[_0x5b2682(0x20a)][_0x5b2682(0x207)])return _0x5b2682(0x32e);switch(_0x52bc7a){case _0x33a4b2[_0x5b2682(0x215)][_0x5b2682(0x1ee)]:return'univer-bg-green-500';case _0x33a4b2[_0x5b2682(0x215)][_0x5b2682(0x23c)]:case _0x33a4b2['MCPConnectionStatus'][_0x5b2682(0x2d4)]:return _0x5b2682(0x321);case _0x33a4b2[_0x5b2682(0x215)][_0x5b2682(0x362)]:return _0x5b2682(0x32e);default:return _0x5b2682(0x2b3);}},_0x169df8=_0x55eebb=>{var _0x38f6db=_0x35f697;switch(_0x55eebb){case _0x33a4b2[_0x38f6db(0x215)]['CONNECTED']:return _0xf81b6['t']('mcpConfig.connectionStatus.connected');case _0x33a4b2[_0x38f6db(0x215)][_0x38f6db(0x23c)]:return _0xf81b6['t'](_0x38f6db(0x234));case _0x33a4b2['MCPConnectionStatus'][_0x38f6db(0x362)]:return _0xf81b6['t'](_0x38f6db(0x280));case _0x33a4b2[_0x38f6db(0x215)]['RETRYING']:return _0xf81b6['t'](_0x38f6db(0x22b));default:return _0xf81b6['t'](_0x38f6db(0x34a));}},_0x37cabc=_0xf2a88=>{var _0x2506d2=_0x35f697;switch(_0xf2a88){case _0x33a4b2[_0x2506d2(0x20a)][_0x2506d2(0x207)]:return _0xf81b6['t']('mcpConfig.connectionError.invalidApiKey');case _0x33a4b2[_0x2506d2(0x20a)]['SESSION_ID_OCCUPIED']:return _0xf81b6['t']('mcpConfig.connectionError.sessionOccupied');case _0x33a4b2[_0x2506d2(0x20a)][_0x2506d2(0x33e)]:return _0xf81b6['t'](_0x2506d2(0x32b));case _0x33a4b2[_0x2506d2(0x20a)][_0x2506d2(0x2c0)]:return _0xf81b6['t'](_0x2506d2(0x29d));default:return'';}},_0x287e01=_0x53c926[_0x35f697(0x342)](()=>{var _0x4a1bda=_0x35f697;const _0x454767={..._0x2cb9a2,'apiKey':_0x686a55[_0x4a1bda(0x1f1)](),'enableAuth':_0x1d6ba1};_0x19fb3c(_0x454767);},[_0x2cb9a2,_0x686a55,_0x1d6ba1,_0x19fb3c]),_0x47e063=_0x686a55[_0x35f697(0x1f1)]()[_0x35f697(0x1eb)]>0x0;return _0x2c66a9['jsxs'](_0x35f697(0x2ab),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x2c66a9[_0x35f697(0x267)](_0x35f697(0x2ab),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0x2c66a9[_0x35f697(0x21b)](_0x35f697(0x2ab),{'className':_0x35f697(0x301),'children':[_0x2c66a9['jsx'](_0x35f697(0x2ab),{'className':_0x35f697(0x25b),'children':_0x2c66a9[_0x35f697(0x267)](_0x35f697(0x1ed),{'className':_0x35f697(0x2f9),'children':'⚙'})}),_0x2c66a9[_0x35f697(0x267)](_0x35f697(0x2ab),{'children':_0x2c66a9[_0x35f697(0x267)]('p',{'className':_0x35f697(0x363),'children':_0xf81b6['t']('mcpConfig.description')})})]})}),_0x2c66a9['jsxs'](_0x35f697(0x2ab),{'className':_0x35f697(0x314),'children':[_0x2c66a9[_0x35f697(0x267)]('div',{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0xbea806(_0x5711e8,_0x190476)+_0x35f697(0x26e),'children':_0x2c66a9[_0x35f697(0x21b)](_0x35f697(0x2ab),{'className':_0x35f697(0x2a3),'children':[_0x2c66a9['jsx'](_0x35f697(0x2ab),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1b59d5(_0x5711e8,_0x190476)+_0x35f697(0x23d)}),_0x2c66a9['jsx'](_0x35f697(0x1ed),{'className':_0x35f697(0x290),'children':_0x169df8(_0x5711e8)})]})}),_0x190476!==_0x33a4b2['MCPConnectionError'][_0x35f697(0x25c)]&&(_0x5711e8===_0x33a4b2[_0x35f697(0x215)][_0x35f697(0x362)]||_0x190476===_0x33a4b2[_0x35f697(0x20a)][_0x35f697(0x207)])&&_0x2c66a9[_0x35f697(0x267)](_0x35f697(0x2ab),{'className':_0x35f697(0x1e7),'children':_0x2c66a9[_0x35f697(0x21b)]('div',{'className':_0x35f697(0x27d),'children':[_0x2c66a9[_0x35f697(0x267)](_0x35f697(0x1ed),{'className':_0x35f697(0x319),'children':'⚠️'}),_0x2c66a9[_0x35f697(0x267)]('p',{'className':_0x35f697(0x1f4),'children':_0x37cabc(_0x190476)})]})})]}),_0x2c66a9[_0x35f697(0x267)](_0x35f697(0x2ab),{'className':_0x35f697(0x320),'children':_0x2c66a9[_0x35f697(0x21b)](_0x35f697(0x2ab),{'className':_0x35f697(0x2b1),'children':[_0x2c66a9[_0x35f697(0x21b)]('div',{'className':_0x35f697(0x258),'children':[_0x2c66a9[_0x35f697(0x21b)]('label',{'className':_0x35f697(0x2e8),'children':[_0x2c66a9['jsx']('span',{'children':'🔑'}),'\x20',_0xf81b6['t'](_0x35f697(0x21a)),_0x2c66a9[_0x35f697(0x267)]('span',{'className':_0x35f697(0x28e),'children':'*'}),_0x410fbb&&_0x2c66a9[_0x35f697(0x267)]('a',{'href':_0x35f697(0x325),'onClick':()=>_0x2eda39(!0x0),'className':_0x35f697(0x1f2),'title':_0xf81b6['t'](_0x35f697(0x33f)),'children':_0x2c66a9[_0x35f697(0x267)](_0x4135f8,{})})]}),_0x2c66a9[_0x35f697(0x267)](_0x15fc13['Input'],{'type':_0x35f697(0x1d3),'placeholder':_0xf81b6['t'](_0x35f697(0x2e0)),'value':_0x686a55,'onChange':_0x8c878b,'disabled':_0x35f2be,'autoComplete':_0x35f697(0x29a)}),_0x2c66a9[_0x35f697(0x267)]('p',{'className':_0x35f697(0x333),'children':_0xf81b6['t'](_0x35f697(0x358))})]}),_0x410fbb&&_0x53516a&&_0x2c66a9[_0x35f697(0x21b)](_0x35f697(0x2ab),{'className':_0x35f697(0x1fc),'children':[_0x2c66a9[_0x35f697(0x267)]('a',{'href':_0x35f697(0x325),'onClick':()=>_0x2eda39(!0x1),'className':_0x35f697(0x339),'title':'Close','children':_0x2c66a9[_0x35f697(0x267)](_0x30f1fb,{})}),_0x2c66a9[_0x35f697(0x21b)](_0x35f697(0x2ab),{'className':_0x35f697(0x240),'children':[_0x2c66a9[_0x35f697(0x267)]('div',{'className':_0x35f697(0x329),'children':_0x2c66a9[_0x35f697(0x267)](_0x35f697(0x1ed),{'className':_0x35f697(0x2bc),'children':'🚀'})}),_0x2c66a9['jsxs'](_0x35f697(0x2ab),{'className':_0x35f697(0x21e),'children':[_0x2c66a9[_0x35f697(0x267)]('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0xf81b6['t'](_0x35f697(0x33f))}),_0x2c66a9[_0x35f697(0x267)]('p',{'className':_0x35f697(0x2dd),'children':_0xf81b6['t'](_0x35f697(0x26d))}),_0x2c66a9[_0x35f697(0x267)](_0x35f697(0x2ab),{'className':_0x35f697(0x21f),'children':_0x17bee3&&_0x2c66a9[_0x35f697(0x21b)]('a',{'href':_0xca5133,'target':_0x35f697(0x2e2),'rel':_0x35f697(0x25a),'className':_0x35f697(0x223),'children':[_0x2c66a9[_0x35f697(0x267)]('span',{'children':'🤖'}),_0xf81b6['t'](_0x35f697(0x2f6)),_0x2c66a9[_0x35f697(0x267)](_0x35f697(0x1ed),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x2c66a9[_0x35f697(0x21b)](_0x35f697(0x2ab),{'className':_0x35f697(0x2fc),'children':['✨','\x20',_0xf81b6['t'](_0x35f697(0x35b))]})]})]})]}),_0xe69071[_0x35f697(0x2bf)]&&_0x2c66a9['jsxs'](_0x35f697(0x2ab),{'className':_0x35f697(0x269),'children':[_0x2c66a9[_0x35f697(0x21b)]('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x2c66a9[_0x35f697(0x267)](_0x35f697(0x1ed),{'children':'🔗'}),'\x20',_0xf81b6['t'](_0x35f697(0x2a4))]}),_0x2c66a9[_0x35f697(0x21b)](_0x35f697(0x2ab),{'className':_0x35f697(0x2ca),'children':[_0x2c66a9[_0x35f697(0x21b)](_0x35f697(0x2ab),{'className':_0x35f697(0x2fe),'children':[_0x2c66a9['jsx']('p',{'className':_0x35f697(0x20d),'children':_0xf81b6['t']('mcpConfig.configInstructions')}),_0x2c66a9[_0x35f697(0x21b)]('div',{'className':_0x35f697(0x258),'children':[_0x2c66a9[_0x35f697(0x267)](_0x35f697(0x2ab),{'className':_0x35f697(0x34c),'children':_0xf81b6['t'](_0x35f697(0x309))}),_0x2c66a9[_0x35f697(0x21b)](_0x35f697(0x2ab),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x2c66a9[_0x35f697(0x21b)]('div',{'className':_0x35f697(0x2a3),'children':[_0x2c66a9[_0x35f697(0x267)](_0x35f697(0x1ed),{'className':'univer-flex\x20univer-h-4\x20univer-w-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'}),_0xf81b6['t']('mcpConfig.configStep1')]}),_0x2c66a9[_0x35f697(0x21b)](_0x35f697(0x2ab),{'className':_0x35f697(0x2a3),'children':[_0x2c66a9[_0x35f697(0x267)](_0x35f697(0x1ed),{'className':'univer-flex\x20univer-h-4\x20univer-w-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'}),_0xf81b6['t'](_0x35f697(0x2a9))]}),_0x2c66a9['jsxs'](_0x35f697(0x2ab),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x2c66a9[_0x35f697(0x267)](_0x35f697(0x1ed),{'className':_0x35f697(0x1e8),'children':'3'}),_0xf81b6['t'](_0x35f697(0x205))]})]})]})]}),_0x2c66a9['jsxs'](_0x35f697(0x2ab),{'className':_0x35f697(0x258),'children':[_0x2c66a9[_0x35f697(0x267)](_0x35f697(0x2ab),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x35f697(0x26a)}),_0x2c66a9[_0x35f697(0x267)](_0x35f697(0x2ab),{'className':_0x35f697(0x2d9),'children':_0x2c66a9[_0x35f697(0x267)]('pre',{'className':_0x35f697(0x219),'children':_0x35f697(0x1cd)+_0x146d42+'\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20'+(_0x686a55||'<API_KEY>')+_0x35f697(0x24e)})})]}),_0x2c66a9[_0x35f697(0x21b)](_0x35f697(0x2ab),{'className':_0x35f697(0x2fe),'children':[_0x2c66a9[_0x35f697(0x267)](_0x35f697(0x2ab),{'className':_0x35f697(0x34c),'children':_0xf81b6['t'](_0x35f697(0x284))}),_0x2c66a9[_0x35f697(0x21b)](_0x35f697(0x2ab),{'className':_0x35f697(0x258),'children':[_0x2c66a9['jsxs']('div',{'className':_0x35f697(0x2fd),'children':[_0x2c66a9['jsx']('div',{'className':_0x35f697(0x340)}),_0x2c66a9[_0x35f697(0x21b)](_0x35f697(0x2ab),{'className':_0x35f697(0x2d6),'children':[_0x2c66a9[_0x35f697(0x267)]('div',{'className':_0x35f697(0x2ec),'children':'univer_session_id:'}),_0x2c66a9[_0x35f697(0x267)](_0x35f697(0x2ab),{'className':_0x35f697(0x333),'children':_0xf81b6['t'](_0x35f697(0x2e1))})]})]}),_0x2c66a9[_0x35f697(0x21b)](_0x35f697(0x2ab),{'className':_0x35f697(0x2fd),'children':[_0x2c66a9[_0x35f697(0x267)](_0x35f697(0x2ab),{'className':_0x35f697(0x340)}),_0x2c66a9[_0x35f697(0x21b)]('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x2c66a9[_0x35f697(0x267)](_0x35f697(0x2ab),{'className':_0x35f697(0x2ec),'children':_0x35f697(0x354)}),_0x2c66a9[_0x35f697(0x267)](_0x35f697(0x2ab),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0xf81b6['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x2c66a9[_0x35f697(0x267)](_0x15fc13[_0x35f697(0x2c4)],{'onClick':_0x287e01,'disabled':!_0x47e063||_0x35f2be,'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':_0x35f2be?_0x2c66a9['jsxs'](_0x35f697(0x1ed),{'className':_0x35f697(0x2a3),'children':[_0x2c66a9['jsx'](_0x35f697(0x1ed),{'children':'⟲'}),_0xf81b6['t'](_0x35f697(0x31a))]}):_0x2c66a9['jsxs']('span',{'className':_0x35f697(0x2a3),'children':[_0x2c66a9['jsx'](_0x51e176,{}),_0xf81b6['t'](_0x35f697(0x35e))]})}),_0x2c66a9[_0x35f697(0x267)]('div',{'className':_0x35f697(0x2cd),'children':_0x2c66a9[_0x35f697(0x21b)](_0x35f697(0x2ab),{'className':_0x35f697(0x2aa),'children':[_0x2c66a9[_0x35f697(0x267)]('span',{'className':_0x35f697(0x27b),'children':'💡'}),_0x2c66a9['jsxs'](_0x35f697(0x2ab),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x2c66a9['jsx'](_0x35f697(0x2ab),{'className':_0x35f697(0x1fa),'children':'Configuration\x20Notes:'}),_0x2c66a9['jsxs'](_0x35f697(0x2ab),{'children':['•',_0xf81b6['t'](_0x35f697(0x230))]}),_0x2c66a9[_0x35f697(0x21b)]('div',{'children':['•',_0xf81b6['t']('mcpConfig.note2')]})]})]})})]})})]});}const _0x245960=_0x58a3da(0x332),_0x59830d={'showDeveloperTools':!0x1};var _0x569a9b=Object[_0x58a3da(0x26c)],_0x5d83b8=(_0xef46df,_0x4273ee,_0x56b287,_0x42f9e4)=>{var _0xf22047=_0x58a3da;for(var _0xa69cbe=_0x42f9e4>0x1?void 0x0:_0x42f9e4?_0x569a9b(_0x4273ee,_0x56b287):_0x4273ee,_0x5196b0=_0xef46df[_0xf22047(0x1eb)]-0x1,_0x1b9ab9;_0x5196b0>=0x0;_0x5196b0--)(_0x1b9ab9=_0xef46df[_0x5196b0])&&(_0xa69cbe=_0x1b9ab9(_0xa69cbe)||_0xa69cbe);return _0xa69cbe;},_0x383dcd=(_0x29b8b2,_0x1f5a4a)=>(_0x260145,_0x2c3d4f)=>_0x1f5a4a(_0x260145,_0x2c3d4f,_0x29b8b2);const _0x4be5cf=_0x58a3da(0x24f),_0x5e4315=_0x58a3da(0x337);_0x4300b4['MCPConfigUIController']=class extends _0x4d4771[_0x58a3da(0x282)]{constructor(_0x111720,_0x30d308,_0x165172,_0xe9f890,_0x39b32c,_0x458cf6,_0x2b11e7,_0x28ff0d,_0x353439,_0x54f86a){var _0x402919=_0x58a3da;super(),_0x5b90b1(this,_0x402919(0x1cf),new _0x1932a1[(_0x402919(0x1d6))](!0x1)),_0x5b90b1(this,_0x402919(0x25d),new _0x1932a1[(_0x402919(0x1d6))]({})),_0x5b90b1(this,_0x402919(0x318),new _0x1932a1['BehaviorSubject']({})),_0x5b90b1(this,_0x402919(0x2d2),new _0x1932a1[(_0x402919(0x1d6))]('')),_0x5b90b1(this,_0x402919(0x341),async _0x486f87=>{var _0x10add8=_0x402919,_0x5c944a,_0x33628b;this['_loading$']['next'](!0x0);try{const _0xbc65a1=await this[_0x10add8(0x2c7)](_0x486f87);if(!_0xbc65a1['isValid']){this[_0x10add8(0x250)]['show']({'type':_0x15fc13[_0x10add8(0x1ea)][_0x10add8(0x20f)],'content':_0xbc65a1[_0x10add8(0x23e)]||this[_0x10add8(0x2f0)]['t'](_0x10add8(0x254))});return;}_0x486f87[_0x10add8(0x1dd)]?await this[_0x10add8(0x2cc)][_0x10add8(0x1e4)](_0x4be5cf,_0x486f87['apiKey'][_0x10add8(0x1f1)]()):await this['_localStorageService'][_0x10add8(0x31d)](_0x4be5cf),this['_apiKey$'][_0x10add8(0x35d)](((_0x5c944a=_0x486f87[_0x10add8(0x1dd)])==null?void 0x0:_0x5c944a['trim']())||''),this[_0x10add8(0x1d7)]['__setCustomHeaders']({'Authorization':_0x10add8(0x1f0)+((_0x33628b=_0x486f87[_0x10add8(0x1dd)])==null?void 0x0:_0x33628b[_0x10add8(0x1f1)]())}),this['_messageService'][_0x10add8(0x307)]({'type':_0x15fc13[_0x10add8(0x1ea)][_0x10add8(0x353)],'content':this[_0x10add8(0x2f0)]['t'](_0x10add8(0x246))}),setTimeout(()=>{var _0x518bdd=_0x10add8;this[_0x518bdd(0x208)]['close'](_0x5e4315);},0x320);}catch(_0x37d0c1){this[_0x10add8(0x2ed)][_0x10add8(0x2ef)](_0x10add8(0x347),_0x37d0c1),this['_messageService'][_0x10add8(0x307)]({'type':_0x15fc13[_0x10add8(0x1ea)][_0x10add8(0x20f)],'content':this['_localeService']['t'](_0x10add8(0x2d8))});}finally{this[_0x10add8(0x1cf)][_0x10add8(0x35d)](!0x1);}}),(this[_0x402919(0x2fa)]=_0x111720,this[_0x402919(0x289)]=_0x30d308,this[_0x402919(0x2a5)]=_0x165172,this[_0x402919(0x2cc)]=_0xe9f890,this[_0x402919(0x208)]=_0x39b32c,this[_0x402919(0x250)]=_0x458cf6,this[_0x402919(0x2d1)]=_0x2b11e7,this['_localeService']=_0x28ff0d,this[_0x402919(0x2ed)]=_0x353439,this['_mcpConnectionController']=_0x54f86a,this['_initConfigSync'](),this[_0x402919(0x344)](),this['_registerComponent']());}['showConfigPanel'](){var _0x186982=_0x58a3da;this[_0x186982(0x208)][_0x186982(0x2f2)]({'id':_0x5e4315,'title':{'title':this[_0x186982(0x2f0)]['t'](_0x186982(0x21d))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x4752ff=_0x186982;this[_0x4752ff(0x208)][_0x4752ff(0x34f)](_0x5e4315);}});}['getCurrentConfig'](){var _0x2da6d7=_0x58a3da;return this[_0x2da6d7(0x25d)][_0x2da6d7(0x2be)];}[_0x58a3da(0x1dc)](){var _0x55335a=_0x58a3da;this['disposeWithMe'](this[_0x55335a(0x2d1)]['register'](_0x55335a(0x233),this[_0x55335a(0x304)]()));}['_createConfigPanelComponent'](){var _0x2b3ec5=_0x58a3da;return _0x839c43[_0x2b3ec5(0x2a7)](()=>{var _0x15c264=_0x2b3ec5,_0xd74b0c,_0x3dc5db,_0xcb8ede;return _0x2c66a9['jsx'](_0x21aca9,{'config':this[_0x15c264(0x318)][_0x15c264(0x2be)],'mcpCoreConfig':this[_0x15c264(0x25d)][_0x15c264(0x2be)],'currentApiKey$':this[_0x15c264(0x2d2)],'onSave':this['_handleConfigSave'],'loading':this[_0x15c264(0x1cf)][_0x15c264(0x2be)],'connectionStatus$':(_0xd74b0c=this[_0x15c264(0x1d7)])==null?void 0x0:_0xd74b0c[_0x15c264(0x30d)],'connectionError$':(_0x3dc5db=this['_mcpConnectionController'])==null?void 0x0:_0x3dc5db['connectionError$'],'currentSessionId$':(_0xcb8ede=this['_mcpConnectionController'])==null?void 0x0:_0xcb8ede[_0x15c264(0x23a)]});},this['_injector']);}[_0x58a3da(0x2a1)](){var _0x2b0896=_0x58a3da;this[_0x2b0896(0x25e)](this[_0x2b0896(0x2a5)][_0x2b0896(0x35a)](_0x33a4b2[_0x2b0896(0x348)])['subscribe'](_0x5d2469=>{var _0x33addd=_0x2b0896;this[_0x33addd(0x25d)][_0x33addd(0x35d)](_0x5d2469||{});}));const _0x4afb9b=this[_0x2b0896(0x2a5)][_0x2b0896(0x2c9)](_0x33a4b2[_0x2b0896(0x348)]);this['_mcpCoreConfig$'][_0x2b0896(0x35d)](_0x4afb9b||{}),this[_0x2b0896(0x25e)](this[_0x2b0896(0x2a5)]['subscribeConfigValue$'](_0x245960)[_0x2b0896(0x1fb)](_0x4c93c6=>{this['_config$']['next'](_0x4c93c6||{});}));const _0x419d4b=this[_0x2b0896(0x2a5)][_0x2b0896(0x2c9)](_0x245960);this['_config$'][_0x2b0896(0x35d)](_0x419d4b||{});}async['_loadStoredApiKey'](){var _0x902fe6=_0x58a3da;const _0x3bea37=await this[_0x902fe6(0x2cc)]['getItem'](_0x4be5cf);_0x3bea37&&(this['_mcpConnectionController'][_0x902fe6(0x299)]({'Authorization':_0x902fe6(0x1f0)+_0x3bea37}),this[_0x902fe6(0x2d2)][_0x902fe6(0x35d)](_0x3bea37));}async['_validateConfig'](_0x23e596){var _0x24ff81=_0x58a3da;if(!_0x23e596[_0x24ff81(0x1dd)]||_0x23e596[_0x24ff81(0x1dd)][_0x24ff81(0x1f1)]()[_0x24ff81(0x1eb)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x24ff81(0x2f0)]['t'](_0x24ff81(0x2bd))};if(_0x23e596[_0x24ff81(0x1dd)][_0x24ff81(0x1f1)]()[_0x24ff81(0x1eb)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x24ff81(0x2f0)]['t']('mcpConfig.validation.apiKeyTooShort')};try{const _0x5c739c=await this[_0x24ff81(0x2fa)][_0x24ff81(0x2dc)](_0x33a4b2[_0x24ff81(0x2c1)])[_0x24ff81(0x2d0)](_0x23e596[_0x24ff81(0x1dd)][_0x24ff81(0x1f1)]());return _0x5c739c[_0x24ff81(0x364)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x5c739c[_0x24ff81(0x2ef)]||this['_localeService']['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x2502b1){return console['warn'](_0x24ff81(0x26f),_0x2502b1),{'isValid':!0x0};}}},_0x4300b4[_0x58a3da(0x29e)]=_0x5d83b8([_0x383dcd(0x0,_0x4d4771[_0x58a3da(0x24c)](_0x4d4771['Injector'])),_0x383dcd(0x1,_0x839c43[_0x58a3da(0x323)]),_0x383dcd(0x2,_0x4d4771[_0x58a3da(0x30c)]),_0x383dcd(0x3,_0x4d4771['ILocalStorageService']),_0x383dcd(0x4,_0x839c43[_0x58a3da(0x24a)]),_0x383dcd(0x5,_0x839c43['IMessageService']),_0x383dcd(0x6,_0x4d4771[_0x58a3da(0x24c)](_0x839c43[_0x58a3da(0x1e6)])),_0x383dcd(0x7,_0x4d4771[_0x58a3da(0x24c)](_0x4d4771[_0x58a3da(0x1ef)])),_0x383dcd(0x8,_0x4d4771[_0x58a3da(0x34e)]),_0x383dcd(0x9,_0x4d4771[_0x58a3da(0x24c)](_0x33a4b2[_0x58a3da(0x2c1)]))],_0x4300b4['MCPConfigUIController']);const _0x2a6189={'id':'mcp-ui.command.openConfigPanel','type':_0x4d4771[_0x58a3da(0x1f6)][_0x58a3da(0x243)],'handler':async(_0x1866f0,_0x1ddaf0)=>(_0x1866f0[_0x58a3da(0x2dc)](_0x4300b4[_0x58a3da(0x29e)])[_0x58a3da(0x330)](),!0x0)};function _0x591681(_0x3addce,_0x2582fc){var _0xc6d60a=_0x58a3da;switch(_0x3addce){case _0x33a4b2[_0xc6d60a(0x215)][_0xc6d60a(0x294)]:return'mcpStatus.disconnected';case _0x33a4b2['MCPConnectionStatus'][_0xc6d60a(0x23c)]:return _0xc6d60a(0x262);case _0x33a4b2[_0xc6d60a(0x215)]['CONNECTED']:return _0xc6d60a(0x2b8);case _0x33a4b2[_0xc6d60a(0x215)][_0xc6d60a(0x362)]:switch(_0x2582fc){case _0x33a4b2['MCPConnectionError'][_0xc6d60a(0x207)]:return _0xc6d60a(0x2d5);case _0x33a4b2['MCPConnectionError'][_0xc6d60a(0x245)]:return _0xc6d60a(0x2ff);case _0x33a4b2['MCPConnectionError']['NETWORK_ERROR']:return _0xc6d60a(0x1fe);case _0x33a4b2[_0xc6d60a(0x20a)][_0xc6d60a(0x2c0)]:return _0xc6d60a(0x2b2);default:return'mcpStatus.failed';}case _0x33a4b2[_0xc6d60a(0x215)][_0xc6d60a(0x2d4)]:return'mcpStatus.retrying';default:return _0xc6d60a(0x30e);}}function _0x5a5b70(_0x370a7b,_0x10fd92,_0x19ed39){var _0x2e6f29=_0x58a3da;const _0xb2b0cd=_0x591681(_0x370a7b,_0x10fd92),_0x325d3e=_0x19ed39['t'](_0xb2b0cd);return _0x370a7b===_0x33a4b2['MCPConnectionStatus'][_0x2e6f29(0x294)]&&_0x10fd92===_0x33a4b2[_0x2e6f29(0x20a)][_0x2e6f29(0x207)]?_0x325d3e+_0x2e6f29(0x367)+_0x19ed39['t'](_0x2e6f29(0x312)):_0x370a7b===_0x33a4b2[_0x2e6f29(0x215)][_0x2e6f29(0x1ee)]?''+_0x325d3e:_0x370a7b===_0x33a4b2[_0x2e6f29(0x215)]['DISCONNECTED']||_0x370a7b===_0x33a4b2['MCPConnectionStatus']['FAILED']?_0x325d3e+_0x2e6f29(0x367)+_0x19ed39['t'](_0x2e6f29(0x247)):_0x325d3e;}function _0x2a14c1(_0x1ae105){var _0x10ce57=_0x58a3da;switch(_0x1ae105){case _0x33a4b2[_0x10ce57(0x215)][_0x10ce57(0x1ee)]:return'univer-text-green-500';case _0x33a4b2[_0x10ce57(0x215)][_0x10ce57(0x23c)]:case _0x33a4b2[_0x10ce57(0x215)][_0x10ce57(0x2d4)]:return _0x10ce57(0x295);case _0x33a4b2[_0x10ce57(0x215)]['FAILED']:case _0x33a4b2['MCPConnectionStatus'][_0x10ce57(0x294)]:return _0x10ce57(0x28e);default:return _0x10ce57(0x1f7);}}function _0x5103fe(_0x2bfc14){var _0x4a20aa=_0x58a3da;const {status$:_0x39f439,error$:_0x20d678,onConfigure:_0xab6d8f}=_0x2bfc14,_0x4dcdba=_0x839c43[_0x4a20aa(0x2ad)](_0x39f439,_0x33a4b2['MCPConnectionStatus'][_0x4a20aa(0x294)]),_0x38d9cc=_0x839c43[_0x4a20aa(0x2ad)](_0x20d678,_0x33a4b2['MCPConnectionError'][_0x4a20aa(0x25c)]),_0x446d95=_0x839c43[_0x4a20aa(0x202)](_0x4d4771['LocaleService']),_0x5d47c5=_0x4dcdba===_0x33a4b2[_0x4a20aa(0x215)][_0x4a20aa(0x1ee)],_0x2339e0=_0x4dcdba===_0x33a4b2[_0x4a20aa(0x215)][_0x4a20aa(0x23c)]||_0x4dcdba===_0x33a4b2['MCPConnectionStatus']['RETRYING'],_0x22632d=_0x446d95['t'](_0x591681(_0x4dcdba,_0x38d9cc)),_0x9eba90=_0x5a5b70(_0x4dcdba,_0x38d9cc,_0x446d95),_0x34a62f=_0x2a14c1(_0x4dcdba),_0x15a3d8=_0x5d47c5?_0x2c66a9['jsx'](_0x5ad28b,{}):_0x2c66a9['jsx'](_0x9f4cee,{}),_0x32aa39=_0x53c926[_0x4a20aa(0x342)](()=>{_0xab6d8f&&_0xab6d8f();},[_0x5d47c5,_0x2339e0,_0xab6d8f]);function _0x268e22(){var _0x22b65c=_0x4a20aa;return _0x2c66a9[_0x22b65c(0x21b)](_0x22b65c(0x2ab),{'className':_0x15fc13['clsx'](_0x22b65c(0x253),_0xab6d8f&&_0x22b65c(0x368)),'onClick':_0xab6d8f?_0x32aa39:void 0x0,'children':[_0x2c66a9[_0x22b65c(0x267)]('div',{'className':_0x15fc13[_0x22b65c(0x308)](_0x22b65c(0x298),_0x34a62f),'children':_0x15a3d8}),_0x2c66a9[_0x22b65c(0x267)]('div',{'className':_0x22b65c(0x255),'children':_0x22632d})]});}return _0x2c66a9['jsx'](_0x15fc13[_0x4a20aa(0x22e)],{'title':_0x9eba90,'placement':_0x4a20aa(0x278),'children':_0x268e22()});}var _0x130af9=Object[_0x58a3da(0x26c)],_0x153c5b=(_0x1a22e1,_0x2928a5,_0x39e892,_0x37b0b9)=>{var _0x26960f=_0x58a3da;for(var _0x392150=_0x37b0b9>0x1?void 0x0:_0x37b0b9?_0x130af9(_0x2928a5,_0x39e892):_0x2928a5,_0x25f398=_0x1a22e1[_0x26960f(0x1eb)]-0x1,_0x4d9fd3;_0x25f398>=0x0;_0x25f398--)(_0x4d9fd3=_0x1a22e1[_0x25f398])&&(_0x392150=_0x4d9fd3(_0x392150)||_0x392150);return _0x392150;},_0x37e393=(_0x5eb621,_0x27bc7d)=>(_0x3d3828,_0x6b7b5d)=>_0x27bc7d(_0x3d3828,_0x6b7b5d,_0x5eb621);_0x4300b4[_0x58a3da(0x279)]=class extends _0x4d4771[_0x58a3da(0x282)]{constructor(_0x5b2659,_0x190e00,_0x2b86f9){var _0x2d6f28=_0x58a3da;super(),this[_0x2d6f28(0x2fa)]=_0x5b2659,this[_0x2d6f28(0x261)]=_0x190e00,this[_0x2d6f28(0x289)]=_0x2b86f9,this[_0x2d6f28(0x261)][_0x2d6f28(0x2e5)]=!0x1,this[_0x2d6f28(0x31f)]();}['_initStatusComponent'](){var _0x6190e1=_0x58a3da;this[_0x6190e1(0x25e)](this[_0x6190e1(0x289)][_0x6190e1(0x350)](_0x839c43[_0x6190e1(0x2b4)][_0x6190e1(0x2c3)],()=>_0x839c43[_0x6190e1(0x2a7)](_0x582181({'status$':this[_0x6190e1(0x261)]['connectionStatus$'],'error$':this[_0x6190e1(0x261)][_0x6190e1(0x287)],'onConfigure':()=>this[_0x6190e1(0x276)]()}),this[_0x6190e1(0x2fa)])));}[_0x58a3da(0x276)](){var _0x4a826a=_0x58a3da;this[_0x4a826a(0x2fa)][_0x4a826a(0x2dc)](_0x4300b4['MCPConfigUIController'])[_0x4a826a(0x330)]();}},_0x4300b4[_0x58a3da(0x279)]=_0x153c5b([_0x37e393(0x0,_0x4d4771[_0x58a3da(0x24c)](_0x4d4771['Injector'])),_0x37e393(0x1,_0x4d4771['Inject'](_0x33a4b2[_0x58a3da(0x2c1)])),_0x37e393(0x2,_0x839c43[_0x58a3da(0x323)])],_0x4300b4[_0x58a3da(0x279)]);function _0x582181(_0x5583e8){const {status$:_0x19d827,error$:_0x5ce67f,onConfigure:_0x2cc8f7}=_0x5583e8;return function(){var _0x1ddf5d=_0x5ed1;return _0x2c66a9[_0x1ddf5d(0x267)](_0x5103fe,{'status$':_0x19d827,'error$':_0x5ce67f,'onConfigure':_0x2cc8f7});};}function _0x3bb303(_0x4856c6){var _0x247e65=_0x58a3da;return{'id':_0x2a6189['id'],'type':_0x839c43['MenuItemType'][_0x247e65(0x1d0)],'icon':_0x247e65(0x1d1),'title':_0x247e65(0x21d),'tooltip':_0x247e65(0x21d)};}const _0x446359={[_0x839c43['RibbonStartGroup'][_0x58a3da(0x20b)]]:{[_0x2a6189['id']]:{'order':0xa,'menuItemFactory':_0x3bb303}}};var _0x2e21f0=Object[_0x58a3da(0x26c)],_0x48e6a3=(_0x4db536,_0xd182f3,_0x3e66a5,_0x1f55bb)=>{var _0x5a3f28=_0x58a3da;for(var _0x2985eb=_0x1f55bb>0x1?void 0x0:_0x1f55bb?_0x2e21f0(_0xd182f3,_0x3e66a5):_0xd182f3,_0x452bea=_0x4db536[_0x5a3f28(0x1eb)]-0x1,_0x3a9d1c;_0x452bea>=0x0;_0x452bea--)(_0x3a9d1c=_0x4db536[_0x452bea])&&(_0x2985eb=_0x3a9d1c(_0x2985eb)||_0x2985eb);return _0x2985eb;},_0x604bf5=(_0x35870b,_0x443ece)=>(_0x4d317a,_0x48087f)=>_0x443ece(_0x4d317a,_0x48087f,_0x35870b);_0x4300b4[_0x58a3da(0x275)]=class extends _0x4d4771['Disposable']{constructor(_0x584b30,_0x4088bc){var _0x4a552c=_0x58a3da;super(),this[_0x4a552c(0x231)]=_0x584b30,this[_0x4a552c(0x359)]=_0x4088bc,this[_0x4a552c(0x1df)](),this['_initializeMenus']();}[_0x58a3da(0x1df)](){[_0x2a6189]['forEach'](_0x6e22f7=>{var _0x4ee18d=_0x5ed1;this[_0x4ee18d(0x25e)](this['_commandService'][_0x4ee18d(0x31e)](_0x6e22f7));});}['_initializeMenus'](){var _0x32e8af=_0x58a3da;this['_menuManagerService'][_0x32e8af(0x265)](_0x446359);}},_0x4300b4[_0x58a3da(0x275)]=_0x48e6a3([_0x604bf5(0x0,_0x4d4771[_0x58a3da(0x1f3)]),_0x604bf5(0x1,_0x839c43[_0x58a3da(0x293)])],_0x4300b4['MCPUIMenuController']);const _0x29bca3={'mcpStatus':{'disconnected':_0x58a3da(0x238),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x58a3da(0x251),'retrying':_0x58a3da(0x2f1),'unknown':_0x58a3da(0x29b),'missingApiKey':_0x58a3da(0x2b7),'invalidApiKey':_0x58a3da(0x22d),'sessionOccupied':_0x58a3da(0x310),'networkError':_0x58a3da(0x27f),'maxRetriesExceeded':_0x58a3da(0x1e5),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x58a3da(0x1e0)},'mcpConfig':{'title':_0x58a3da(0x26a),'description':_0x58a3da(0x283),'apiKey':_0x58a3da(0x268),'apiKeyPlaceholder':_0x58a3da(0x300),'apiKeyHint':_0x58a3da(0x1da),'enableAuth':_0x58a3da(0x256),'enableAuthHint':_0x58a3da(0x239),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x58a3da(0x228),'configInstructions':_0x58a3da(0x352),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x58a3da(0x27c),'configStep2':_0x58a3da(0x222),'configStep3':_0x58a3da(0x365),'sessionId':_0x58a3da(0x1cc),'sessionIdDescription':_0x58a3da(0x26b),'authorizationDescription':_0x58a3da(0x297),'configParameters':_0x58a3da(0x235),'maxRetries':_0x58a3da(0x32c),'save':'Save\x20Configuration','saving':'Saving...','note1':_0x58a3da(0x220),'note2':_0x58a3da(0x274),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x58a3da(0x1e9),'apiApplyInfo':{'title':_0x58a3da(0x200),'description':_0x58a3da(0x296),'univerAiLabel':_0x58a3da(0x356),'getStarted':_0x58a3da(0x277)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x58a3da(0x291),'invalidConfig':_0x58a3da(0x241),'invalidApiKey':_0x58a3da(0x27a)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x58a3da(0x1ff),'connected':_0x58a3da(0x328),'failed':_0x58a3da(0x2a2),'retrying':_0x58a3da(0x2a0)},'connectionError':{'missingApiKey':_0x58a3da(0x35f),'invalidApiKey':_0x58a3da(0x345),'sessionOccupied':_0x58a3da(0x206),'networkError':_0x58a3da(0x2af),'maxRetriesExceeded':_0x58a3da(0x316)}}},_0x4dc98a={'mcpStatus':{'disconnected':_0x58a3da(0x35c),'connecting':_0x58a3da(0x331),'connected':_0x58a3da(0x272),'failed':_0x58a3da(0x225),'retrying':_0x58a3da(0x2ae),'unknown':'MCP\x20状态未知','missingApiKey':'MCP:\x20缺少\x20API\x20密钥','invalidApiKey':'MCP:\x20无效的\x20API\x20密钥','sessionOccupied':_0x58a3da(0x270),'networkError':_0x58a3da(0x2e3),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x58a3da(0x32d),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x58a3da(0x315),'description':_0x58a3da(0x285),'apiKey':_0x58a3da(0x2b9),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x58a3da(0x361),'enableAuth':_0x58a3da(0x33c),'enableAuthHint':_0x58a3da(0x252),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x58a3da(0x28f),'configStepTitle':_0x58a3da(0x244),'configStep1':_0x58a3da(0x357),'configStep2':_0x58a3da(0x264),'configStep3':_0x58a3da(0x1ec),'sessionId':_0x58a3da(0x204),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':'配置参数:','maxRetries':'最大重试次数','save':_0x58a3da(0x2c5),'saving':_0x58a3da(0x2a8),'note1':_0x58a3da(0x201),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':'配置保存成功','configError':_0x58a3da(0x2b5),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x58a3da(0x2a6),'getStarted':_0x58a3da(0x324)},'validation':{'apiKeyRequired':_0x58a3da(0x360),'apiKeyTooShort':_0x58a3da(0x281),'invalidConfig':_0x58a3da(0x334),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x58a3da(0x248),'connecting':_0x58a3da(0x2d3),'connected':_0x58a3da(0x212),'failed':_0x58a3da(0x2f8),'retrying':'重连中...'},'connectionError':{'missingApiKey':'需要\x20API\x20密钥才能连接','invalidApiKey':_0x58a3da(0x216),'sessionOccupied':'会话当前被占用,请稍后再试','networkError':_0x58a3da(0x209),'maxRetriesExceeded':_0x58a3da(0x203)}}};var _0x487105=Object['defineProperty'],_0x3451d8=Object[_0x58a3da(0x26c)],_0x55c565=(_0x1fb74f,_0x119c24,_0x4e0761)=>_0x119c24 in _0x1fb74f?_0x487105(_0x1fb74f,_0x119c24,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4e0761}):_0x1fb74f[_0x119c24]=_0x4e0761,_0x436025=(_0x545747,_0x596d9d,_0x4af6ca,_0x19450e)=>{var _0x5c75d9=_0x58a3da;for(var _0x454370=_0x19450e>0x1?void 0x0:_0x19450e?_0x3451d8(_0x596d9d,_0x4af6ca):_0x596d9d,_0x5092a1=_0x545747[_0x5c75d9(0x1eb)]-0x1,_0x5ece92;_0x5092a1>=0x0;_0x5092a1--)(_0x5ece92=_0x545747[_0x5092a1])&&(_0x454370=_0x5ece92(_0x454370)||_0x454370);return _0x454370;},_0x512909=(_0x2105db,_0x393587)=>(_0x35c748,_0x3d8e63)=>_0x393587(_0x35c748,_0x3d8e63,_0x2105db),_0x3cf98a=(_0x2d4257,_0x1a23f2,_0x314e7c)=>_0x55c565(_0x2d4257,_0x1a23f2+'',_0x314e7c);_0x4300b4[_0x58a3da(0x2e9)]=class extends _0x4d4771[_0x58a3da(0x221)]{constructor(_0xb0610c=_0x59830d,_0x3ce923,_0x559c79,_0xc4d0b,_0x39d70f,_0x5144fc){var _0x3d2be2=_0x58a3da;super(),this[_0x3d2be2(0x302)]=_0xb0610c,this[_0x3d2be2(0x2fa)]=_0x3ce923,this[_0x3d2be2(0x2a5)]=_0x559c79,this[_0x3d2be2(0x289)]=_0xc4d0b,this[_0x3d2be2(0x2cc)]=_0x39d70f,this[_0x3d2be2(0x2f0)]=_0x5144fc;const {..._0x5a6242}=_0x4d4771['merge']({},_0x59830d,this[_0x3d2be2(0x302)]);this['_configService'][_0x3d2be2(0x288)](_0x245960,_0x5a6242);}async['onStarting'](){var _0x498644=_0x58a3da;const _0x10dfe7=[[_0x4300b4[_0x498644(0x279)]],[_0x4300b4[_0x498644(0x29e)]],[_0x4300b4[_0x498644(0x275)]]];this[_0x498644(0x2fa)]['has'](_0x51d722[_0x498644(0x306)])||_0x10dfe7[_0x498644(0x2de)]([_0x51d722[_0x498644(0x306)],{'useClass':_0x51d722[_0x498644(0x311)]}]),_0x10dfe7[_0x498644(0x28b)](_0x26df96=>this[_0x498644(0x2fa)][_0x498644(0x266)](_0x26df96)),this[_0x498644(0x2fa)][_0x498644(0x2dc)](_0x4300b4['MCPConnectionUIController']),this[_0x498644(0x2fa)][_0x498644(0x2dc)](_0x4300b4[_0x498644(0x29e)]),this[_0x498644(0x2fa)][_0x498644(0x2dc)](_0x4300b4['MCPUIMenuController']);}},_0x3cf98a(_0x4300b4['UniverMCPUIPlugin'],_0x58a3da(0x2cb),_0x58a3da(0x20c)),_0x4300b4[_0x58a3da(0x2e9)]=_0x436025([_0x4d4771['DependentOn'](_0x33a4b2[_0x58a3da(0x303)]),_0x512909(0x1,_0x4d4771[_0x58a3da(0x24c)](_0x4d4771[_0x58a3da(0x1db)])),_0x512909(0x2,_0x4d4771[_0x58a3da(0x30c)]),_0x512909(0x3,_0x839c43[_0x58a3da(0x323)]),_0x512909(0x4,_0x4d4771[_0x58a3da(0x24d)]),_0x512909(0x5,_0x4d4771[_0x58a3da(0x24c)](_0x4d4771[_0x58a3da(0x1ef)]))],_0x4300b4[_0x58a3da(0x2e9)]),_0x4300b4[_0x58a3da(0x233)]=_0x21aca9,_0x4300b4['MCPStatusDisplay']=_0x5103fe,_0x4300b4['OpenMCPConfigPanelCommand']=_0x2a6189,_0x4300b4[_0x58a3da(0x33a)]=_0x29bca3,_0x4300b4[_0x58a3da(0x1fd)]=_0x4dc98a,Object[_0x58a3da(0x30f)](_0x4300b4,Symbol[_0x58a3da(0x1e2)],{'value':_0x58a3da(0x22a)});}));function _0x5ed1(_0x50e347,_0x2a45ed){var _0x5c9d49=_0x5c9d();return _0x5ed1=function(_0x5ed15f,_0x1d4d1a){_0x5ed15f=_0x5ed15f-0x1cc;var _0x3a0f22=_0x5c9d49[_0x5ed15f];return _0x3a0f22;},_0x5ed1(_0x50e347,_0x2a45ed);}function _0x5c9d(){var _0x7fcaf9=['div','mask','useObservable','MCP\x20重连中...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','none','univer-space-y-5','mcpStatus.maxRetriesExceeded','univer-bg-gray-500','BuiltInUIPart','配置保存失败','evenodd','MCP:\x20API\x20Key\x20Missing','mcpStatus.connected','API\x20密钥','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','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','univer-text-blue-600','mcpConfig.validation.apiKeyRequired','value','showDeveloperTools','MAX_RETRIES_EXCEEDED','MCPConnectionController','string','HEADER_MENU','Button','保存配置','xlink:href','_validateConfig','UniverIcon','getConfig','univer-space-y-4','pluginName','_localStorageService','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','extend','toString','validateApiKey','_componentManager','_apiKey$','连接中...','RETRYING','mcpStatus.invalidApiKey','univer-min-w-0\x20univer-flex-1','className','mcpConfig.configError','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','489inOURC','displayName','get','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','push','map','mcpConfig.apiKeyPlaceholder','mcpConfig.sessionIdDescription','_blank','MCP:\x20网络错误','on-line-icon','enableAutoConnect','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','propertyIsEnumerable','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','UniverMCPUIPlugin','OffLineIcon','4834656MUWvXj','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','_logService','@univerjs-pro/mcp','error','_localeService','MCP\x20Retrying...','open','react/jsx-runtime','currentColor','9WUxOFT','mcpConfig.apiApplyInfo.univerAiLabel','rxjs','连接失败','univer-text-white','_injector','useState','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','univer-flex\x20univer-items-start\x20univer-gap-3','univer-space-y-3','mcpStatus.sessionOccupied','Enter\x20your\x20API\x20key','univer-flex\x20univer-items-center\x20univer-gap-3','_config','UniverMCPPlugin','_createConfigPanelComponent','random','ISocketService','show','clsx','mcpConfig.configStepTitle','M5.21243\x2012.287L11.8791\x205.62036','@univerjs/design','IConfigService','connectionStatus$','mcpStatus.unknown','defineProperty','MCP:\x20Session\x20Occupied','WebSocketService','mcpStatus.clickToConfigure','round','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','MCP\x20配置','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','object','_config$','univer-flex-shrink-0\x20univer-text-red-500','mcpConfig.saving','1134898VBskrI','30yIffsh','removeItem','registerCommand','_initStatusComponent','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','univer-bg-blue-500','assign','IUIPartsService','几秒钟内获取您的\x20API\x20密钥','javascript:void(0)','idSuffix','M0\x200H16V16H0z','Connected','univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','replace','mcpConfig.connectionError.networkError','Max\x20Retries','点击连接\x20MCP','univer-bg-red-500','symbol','showConfigPanel','MCP\x20连接中...','mcp-ui.config','univer-text-xs\x20univer-text-gray-500','配置无效','white','getOwnPropertySymbols','mcp-config-dialog','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-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','enUS','1YMBcce','启用身份验证','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','NETWORK_ERROR','mcpConfig.apiApplyInfo.title','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','_handleConfigSave','useCallback','defIds','_loadStoredApiKey','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','path','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','MCP_PLUGIN_CONFIG_KEY','useRef','mcpConfig.connectionStatus.disconnected','https://console.univer.plus','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','indexOf','ILogService','close','registerComponent','univer.plus','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Success','Authorization:','632137AcYwPq','Univer\x20AI\x20Console','复制以下\x20JSON\x20配置','mcpConfig.apiKeyHint','_menuManagerService','subscribeConfigValue$','mcpConfig.apiApplyInfo.getStarted','MCP\x20已断开','next','mcpConfig.save','API\x20key\x20is\x20required\x20to\x20connect','API\x20密钥不能为空','您的\x20API\x20密钥将在此浏览器中本地存储','FAILED','univer-text-sm\x20univer-text-gray-500','isValid','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','HelpSingle','\x20-\x20','hover:univer-opacity-80','Session\x20ID','{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id=','13505040PYMfnb','_loading$','BUTTON','MenuIcon','0\x200\x2017\x2016','text','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','url(#off-line-icon_clip0_910_343)','BehaviorSubject','_mcpConnectionController','1964wgEKlh','substring','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Injector','_registerComponent','apiKey','0\x200\x2016\x2016','_initializeCommands','Click\x20to\x20configure\x20MCP','call','toStringTag','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','setItem','MCP:\x20Max\x20Retries\x20Exceeded','ComponentManager','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','Failed\x20to\x20save\x20configuration','MessageType','length','重启您的\x20MCP\x20客户端以使配置生效','span','CONNECTED','LocaleService','Bearer\x20','trim','univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-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','ICommandService','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','prototype','CommandType','univer-text-gray-500','1em','attrs','univer-font-medium','subscribe','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','zhCN','mcpStatus.networkError','Connecting...','What\x20is\x20API\x20Key?','配置更改将立即生效','useDependency','超出最大重试次数,请稍后再试','会话ID','mcpConfig.configStep3','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','INVALID_API_KEY','_dialogService','网络连接错误,请检查您的网络连接','MCPConnectionError','OTHERS','MCP_UI_PLUGIN','univer-text-xs\x20univer-text-gray-600','50lDyNRm','Error','@univerjs/ui','OnLineIcon','已连接','amd','entries','MCPConnectionStatus','API\x20密钥无效,请检查您的密钥后重试','React','UniverUi','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','mcpConfig.apiKey','jsxs','url(#$1','mcpConfig.title','univer-flex-1','univer-flex\x20univer-flex-wrap\x20univer-gap-2','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Plugin','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','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','fill','MCP\x20连接失败','svg','forwardRef','MCP\x20Client\x20Configuration','CheckMarkIcon','Module','mcpConfig.connectionStatus.retrying','react','MCP:\x20Invalid\x20API\x20Key','Tooltip','CloseSmallSingle','mcpConfig.note1','_commandService','@univerjs/core','MCPConfigPanel','mcpConfig.connectionStatus.connecting','Configuration\x20Parameters:','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','close-small-single','MCP\x20Disconnected','Enable\x20authentication\x20for\x20secure\x20connections','sessionId$','tag','CONNECTING','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','errorMessage','https://console.univer.ai','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','Invalid\x20configuration','concat','COMMAND','配置步骤:','SESSION_ID_OCCUPIED','mcpConfig.configSaved','mcpStatus.clickToConnect','未连接','colorChannel1','IDialogService','children','Inject','ILocalStorageService','\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}','mcp.apiKey','_messageService','MCP\x20Connection\x20Failed','启用身份验证以获得安全连接','univer-flex\x20univer-cursor-pointer\x20univer-items-center','mcpConfig.validation.invalidConfig','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','Enable\x20Authentication','createElement','univer-space-y-2','2102525nFUnlB','noopener\x20noreferrer','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','NONE','_mcpCoreConfig$','disposeWithMe','includes','mcpServerUrl','_connectionController','mcpStatus.connecting','1071791iNhsxD','将配置添加到您的\x20MCP\x20客户端设置文件中','mergeMenu','add','jsx','API\x20Key','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','MCP\x20Configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','getOwnPropertyDescriptor','mcpConfig.apiApplyInfo.description','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','MCP:\x20会话被占用','UniverProMcpUi','MCP\x20已连接','check-mark-icon','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCPUIMenuController','_handleConfigure','Get\x20your\x20API\x20key\x20in\x20seconds','bottom','MCPConnectionUIController','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer-flex-shrink-0\x20univer-text-blue-500','Copy\x20the\x20JSON\x20configuration\x20below','univer-flex\x20univer-items-start\x20univer-gap-2','clipPath','MCP:\x20Network\x20Error','mcpConfig.connectionStatus.failed','API\x20密钥长度至少需要\x2010\x20位','Disposable','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','mcpConfig.configParameters','配置\x20MCP\x20使用\x20AI\x20操作电子表格','UniverProMcp','connectionError$','setConfig','_uiPartsService','use','forEach','defs','apply','univer-text-red-500','将以下配置添加到您的\x20MCP\x20客户端设置中:','univer-text-sm\x20univer-font-medium','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','http://www.w3.org/2000/svg','IMenuManagerService','DISCONNECTED','univer-text-yellow-500','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','API\x20key\x20with\x20Bearer\x20prefix.','univer-mr-2\x20univer-flex\x20univer-text-xl','__setCustomHeaders','off','MCP\x20Unknown\x20Status','univer.ai','mcpConfig.connectionError.maxRetriesExceeded','MCPConfigUIController','off-line-icon_clip0_910_343','Retrying...','_initConfigSync','Connection\x20Failed','univer-flex\x20univer-items-center\x20univer-gap-2','mcpConfig.connectionInfo','_configService','Univer\x20AI\x20控制台','connectInjector','保存中...','mcpConfig.configStep2','univer-flex\x20univer-gap-3'];_0x5c9d=function(){return _0x7fcaf9;};return _0x5c9d();}
|