@univerjs-pro/mcp-ui 0.10.7-nightly.202509080357 → 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
|
-
|
|
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
|
-
const
|
|
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
|
-
function
|
|
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(_0x3aa616,_0x1fb6ae){var _0x2c9079=_0x59b3,_0x3263ae=_0x3aa616();while(!![]){try{var _0x15dff9=-parseInt(_0x2c9079(0x128))/0x1*(-parseInt(_0x2c9079(0x1e1))/0x2)+parseInt(_0x2c9079(0x247))/0x3*(-parseInt(_0x2c9079(0x11e))/0x4)+-parseInt(_0x2c9079(0x141))/0x5+-parseInt(_0x2c9079(0x157))/0x6*(parseInt(_0x2c9079(0x12b))/0x7)+-parseInt(_0x2c9079(0x15d))/0x8+parseInt(_0x2c9079(0xfb))/0x9+-parseInt(_0x2c9079(0x116))/0xa*(-parseInt(_0x2c9079(0x15c))/0xb);if(_0x15dff9===_0x1fb6ae)break;else _0x3263ae['push'](_0x3263ae['shift']());}catch(_0x48a19c){_0x3263ae['push'](_0x3263ae['shift']());}}}(_0x4723,0xaad74),function(_0x3e753b,_0x206f26){var _0x58718f=_0x59b3;typeof exports==_0x58718f(0x253)&&typeof module<'u'?_0x206f26(exports,require('@univerjs/core'),require('react/jsx-runtime'),require('@univerjs-pro/mcp'),require('@univerjs/design'),require('@univerjs/ui'),require('rxjs'),require('react')):typeof define=='function'&&define[_0x58718f(0x1cb)]?define([_0x58718f(0xed),_0x58718f(0x17b),_0x58718f(0x174),'@univerjs-pro/mcp',_0x58718f(0xf0),_0x58718f(0xfe),_0x58718f(0x197),_0x58718f(0x25d)],_0x206f26):(_0x3e753b=typeof globalThis<'u'?globalThis:_0x3e753b||self,_0x206f26(_0x3e753b[_0x58718f(0x22d)]={},_0x3e753b[_0x58718f(0x10f)],_0x3e753b[_0x58718f(0xf4)],_0x3e753b[_0x58718f(0x148)],_0x3e753b['UniverDesign'],_0x3e753b['UniverUi'],_0x3e753b[_0x58718f(0x197)],_0x3e753b[_0x58718f(0xf4)]));}(this,function(_0x3268fb,_0x2891a4,_0x2aa594,_0xf5456e,_0x5d7edd,_0x2c04f0,_0x9ebfb8,_0x11275e){'use strict';var _0xba39c4=_0x59b3;var _0x31c54f=Object['defineProperty'],_0x52c97b=(_0x5f5897,_0x1b26ff,_0x3e02fd)=>_0x1b26ff in _0x5f5897?_0x31c54f(_0x5f5897,_0x1b26ff,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3e02fd}):_0x5f5897[_0x1b26ff]=_0x3e02fd,_0x41c3ff=(_0x390df6,_0x1c8d3d,_0x24e051)=>_0x52c97b(_0x390df6,typeof _0x1c8d3d!=_0xba39c4(0x232)?_0x1c8d3d+'':_0x1c8d3d,_0x24e051),_0x1fcc1a=function(){var _0x50d023=_0xba39c4;return _0x1fcc1a=Object[_0x50d023(0x11b)]||function(_0x2a4d55){var _0x214d2e=_0x50d023;for(var _0x5bdc25,_0x40be50=0x1,_0x352045=arguments[_0x214d2e(0x110)];_0x40be50<_0x352045;_0x40be50++){_0x5bdc25=arguments[_0x40be50];for(var _0x22b118 in _0x5bdc25)Object['prototype'][_0x214d2e(0xeb)][_0x214d2e(0x21a)](_0x5bdc25,_0x22b118)&&(_0x2a4d55[_0x22b118]=_0x5bdc25[_0x22b118]);}return _0x2a4d55;},_0x1fcc1a['apply'](this,arguments);},_0x306d4b=function(_0x3f1809,_0x22a20f){var _0x2d80bc=_0xba39c4,_0xf429ea={};for(var _0x2144c1 in _0x3f1809)Object[_0x2d80bc(0x246)][_0x2d80bc(0xeb)][_0x2d80bc(0x21a)](_0x3f1809,_0x2144c1)&&_0x22a20f[_0x2d80bc(0x17c)](_0x2144c1)<0x0&&(_0xf429ea[_0x2144c1]=_0x3f1809[_0x2144c1]);if(_0x3f1809!=null&&typeof Object[_0x2d80bc(0x120)]==_0x2d80bc(0x13e)){for(var _0x4c3ec4=0x0,_0x2144c1=Object[_0x2d80bc(0x120)](_0x3f1809);_0x4c3ec4<_0x2144c1['length'];_0x4c3ec4++)_0x22a20f[_0x2d80bc(0x17c)](_0x2144c1[_0x4c3ec4])<0x0&&Object['prototype'][_0x2d80bc(0x1c7)][_0x2d80bc(0x21a)](_0x3f1809,_0x2144c1[_0x4c3ec4])&&(_0xf429ea[_0x2144c1[_0x4c3ec4]]=_0x3f1809[_0x2144c1[_0x4c3ec4]]);}return _0xf429ea;},_0x361a83=_0x11275e[_0xba39c4(0x267)](function(_0x300aee,_0x379748){var _0x2967b3=_0xba39c4,_0x81658b=_0x300aee[_0x2967b3(0x190)],_0x17e742=_0x300aee['id'],_0x254887=_0x300aee['className'],_0x5e8316=_0x300aee['extend'],_0x3473cd=_0x306d4b(_0x300aee,['icon','id',_0x2967b3(0x264),_0x2967b3(0x22e)]),_0x506431=_0x2967b3(0x1f8)[_0x2967b3(0x228)](_0x17e742,'\x20')['concat'](_0x254887||'')[_0x2967b3(0x165)](),_0xc24b27=_0x11275e[_0x2967b3(0x1d7)]('_'[_0x2967b3(0x228)](_0xa4bf4f()));return _0x2d41b8(_0x81658b,''['concat'](_0x17e742),{'defIds':_0x81658b[_0x2967b3(0xf9)],'idSuffix':_0xc24b27[_0x2967b3(0x1c5)]},_0x1fcc1a({'ref':_0x379748,'className':_0x506431},_0x3473cd),_0x5e8316);});function _0x2d41b8(_0x105db5,_0x5019d2,_0x521851,_0x47b2f1,_0x340832){var _0x26f0d6=_0xba39c4;return _0x11275e[_0x26f0d6(0x195)](_0x105db5[_0x26f0d6(0x1ff)],_0x1fcc1a(_0x1fcc1a({'key':_0x5019d2},_0x10a6cb(_0x105db5,_0x521851,_0x340832)),_0x47b2f1),(_0x1a68cf(_0x105db5,_0x521851)[_0x26f0d6(0x156)]||[])[_0x26f0d6(0x1ae)](function(_0x161fc4,_0x1fcb34){var _0x5840e7=_0x26f0d6;return _0x2d41b8(_0x161fc4,''[_0x5840e7(0x228)](_0x5019d2,'-')['concat'](_0x105db5[_0x5840e7(0x1ff)],'-')[_0x5840e7(0x228)](_0x1fcb34),_0x521851,void 0x0,_0x340832);}));}function _0x10a6cb(_0x5e7798,_0x5b69df,_0x53b94b){var _0x5b25ad=_0xba39c4,_0x572109=_0x1fcc1a({},_0x5e7798[_0x5b25ad(0x252)]);_0x53b94b!=null&&_0x53b94b[_0x5b25ad(0x1e3)]&&_0x572109[_0x5b25ad(0x1e2)]===_0x5b25ad(0x1e3)&&(_0x572109[_0x5b25ad(0x1e2)]=_0x53b94b[_0x5b25ad(0x1e3)]),_0x5e7798[_0x5b25ad(0x1ff)]===_0x5b25ad(0x12f)&&_0x572109['id']&&(_0x572109['id']=_0x572109['id']+_0x5b69df['idSuffix']),Object[_0x5b25ad(0x167)](_0x572109)[_0x5b25ad(0x234)](function(_0x25df49){var _0x1aa1ca=_0x5b25ad,_0xbad3bf=_0x25df49[0x0],_0xf41dd=_0x25df49[0x1];_0xbad3bf==='mask'&&typeof _0xf41dd==_0x1aa1ca(0x241)&&(_0x572109[_0xbad3bf]=_0xf41dd['replace'](/url\(#(.*)\)/,_0x1aa1ca(0x22b)[_0x1aa1ca(0x228)](_0x5b69df[_0x1aa1ca(0x229)],')')));});var _0x1a7779=_0x5b69df[_0x5b25ad(0xf9)];return!_0x1a7779||_0x1a7779['length']===0x0||(_0x5e7798[_0x5b25ad(0x1ff)]===_0x5b25ad(0x18e)&&_0x572109['xlink:href']&&(_0x572109[_0x5b25ad(0x262)]=_0x572109[_0x5b25ad(0x262)]+_0x5b69df['idSuffix']),Object[_0x5b25ad(0x167)](_0x572109)['forEach'](function(_0x57f712){var _0x2000fa=_0x5b25ad,_0x1e8f41=_0x57f712[0x0],_0x37ef41=_0x57f712[0x1];typeof _0x37ef41==_0x2000fa(0x241)&&(_0x572109[_0x1e8f41]=_0x37ef41[_0x2000fa(0x10a)](/url\(#(.*)\)/,'url(#$1'[_0x2000fa(0x228)](_0x5b69df[_0x2000fa(0x229)],')')));})),_0x572109;}function _0x1a68cf(_0x5ae3e6,_0x447668){var _0x551eb1=_0xba39c4,_0x23fb60,_0xc33936=_0x447668['defIds'];return!_0xc33936||_0xc33936[_0x551eb1(0x110)]===0x0?_0x5ae3e6:_0x5ae3e6[_0x551eb1(0x1ff)]===_0x551eb1(0x14a)&&(!((_0x23fb60=_0x5ae3e6[_0x551eb1(0x156)])===null||_0x23fb60===void 0x0)&&_0x23fb60[_0x551eb1(0x110)])?_0x1fcc1a(_0x1fcc1a({},_0x5ae3e6),{'children':_0x5ae3e6[_0x551eb1(0x156)][_0x551eb1(0x1ae)](function(_0x513495){var _0x377521=_0x551eb1;return typeof _0x513495[_0x377521(0x252)]['id']==_0x377521(0x241)&&_0xc33936&&_0xc33936['includes'](_0x513495['attrs']['id'])?_0x1fcc1a(_0x1fcc1a({},_0x513495),{'attrs':_0x1fcc1a(_0x1fcc1a({},_0x513495[_0x377521(0x252)]),{'id':_0x513495[_0x377521(0x252)]['id']+_0x447668['idSuffix']})}):_0x513495;})}):_0x5ae3e6;}function _0xa4bf4f(){var _0x4d9dab=_0xba39c4;return Math[_0x4d9dab(0x13b)]()['toString'](0x24)[_0x4d9dab(0x121)](0x2,0x8);}_0x361a83[_0xba39c4(0x169)]=_0xba39c4(0x1ea);var _0xead6e2={'tag':_0xba39c4(0xf3),'attrs':{'xmlns':_0xba39c4(0x153),'fill':_0xba39c4(0x1e4),'viewBox':_0xba39c4(0x1b1),'width':_0xba39c4(0x185),'height':'1em'},'children':[{'tag':_0xba39c4(0x155),'attrs':{'fill':_0xba39c4(0x16b),'d':_0xba39c4(0x130),'fillRule':_0xba39c4(0x163),'clipRule':_0xba39c4(0x163)}}]},_0x5d96a9=_0x11275e[_0xba39c4(0x267)](function(_0xbc346a,_0xa9c2a5){var _0x4621f8=_0xba39c4;return _0x11275e[_0x4621f8(0x195)](_0x361a83,Object[_0x4621f8(0x11b)]({},_0xbc346a,{'id':_0x4621f8(0x18d),'ref':_0xa9c2a5,'icon':_0xead6e2}));});_0x5d96a9[_0xba39c4(0x169)]=_0xba39c4(0x20a);var _0x3baab6={'tag':_0xba39c4(0xf3),'attrs':{'xmlns':_0xba39c4(0x153),'fill':_0xba39c4(0x1e4),'viewBox':_0xba39c4(0xef),'width':_0xba39c4(0x185),'height':_0xba39c4(0x185)},'children':[{'tag':_0xba39c4(0x155),'attrs':{'stroke':'currentColor','d':_0xba39c4(0x12c),'strokeLinecap':_0xba39c4(0x101),'strokeLinejoin':_0xba39c4(0x101),'strokeWidth':1.33}},{'tag':_0xba39c4(0x155),'attrs':{'stroke':_0xba39c4(0x16b),'d':_0xba39c4(0xf5),'strokeLinecap':_0xba39c4(0x101),'strokeLinejoin':_0xba39c4(0x101),'strokeWidth':1.33}}]},_0x474378=_0x11275e[_0xba39c4(0x267)](function(_0x3ed6d6,_0x2fd424){var _0x502091=_0xba39c4;return _0x11275e[_0x502091(0x195)](_0x361a83,Object[_0x502091(0x11b)]({},_0x3ed6d6,{'id':_0x502091(0x24a),'ref':_0x2fd424,'icon':_0x3baab6}));});_0x474378[_0xba39c4(0x169)]='CloseSmallSingle';var _0x1da5f2={'tag':'svg','attrs':{'xmlns':_0xba39c4(0x153),'fill':_0xba39c4(0x1e4),'viewBox':_0xba39c4(0x1b1),'width':_0xba39c4(0x185),'height':'1em'},'children':[{'tag':_0xba39c4(0x155),'attrs':{'fill':'currentColor','d':_0xba39c4(0x210)}},{'tag':'path','attrs':{'fill':_0xba39c4(0x16b),'d':_0xba39c4(0x103)}},{'tag':_0xba39c4(0x155),'attrs':{'fill':_0xba39c4(0x16b),'d':_0xba39c4(0x100),'fillRule':_0xba39c4(0x163),'clipRule':_0xba39c4(0x163)}}]},_0x42619f=_0x11275e[_0xba39c4(0x267)](function(_0xe321fc,_0x406cb3){var _0x10de10=_0xba39c4;return _0x11275e[_0x10de10(0x195)](_0x361a83,Object['assign']({},_0xe321fc,{'id':_0x10de10(0x249),'ref':_0x406cb3,'icon':_0x1da5f2}));});_0x42619f[_0xba39c4(0x169)]=_0xba39c4(0x1f3);var _0x632ef4={'tag':'svg','attrs':{'xmlns':_0xba39c4(0x153),'fill':_0xba39c4(0x1e4),'viewBox':_0xba39c4(0x1b1),'width':_0xba39c4(0x185),'height':_0xba39c4(0x185)},'children':[{'tag':'g','attrs':{'clipPath':_0xba39c4(0x161)},'children':[{'tag':'path','attrs':{'stroke':_0xba39c4(0x16b),'d':_0xba39c4(0x23a),'strokeLinecap':_0xba39c4(0x101),'strokeLinejoin':_0xba39c4(0x101),'strokeWidth':1.2}}]},{'tag':_0xba39c4(0x14a),'attrs':{},'children':[{'tag':_0xba39c4(0x1d6),'attrs':{'id':_0xba39c4(0x107)},'children':[{'tag':_0xba39c4(0x155),'attrs':{'fill':'white','d':_0xba39c4(0x188)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},_0x2dd78c=_0x11275e[_0xba39c4(0x267)](function(_0x49bbf8,_0x45e57e){var _0xd82c0f=_0xba39c4;return _0x11275e[_0xd82c0f(0x195)](_0x361a83,Object[_0xd82c0f(0x11b)]({},_0x49bbf8,{'id':_0xd82c0f(0x26f),'ref':_0x45e57e,'icon':_0x632ef4}));});_0x2dd78c[_0xba39c4(0x169)]=_0xba39c4(0x25a);var _0x2a0598={'tag':_0xba39c4(0xf3),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2017\x2016','width':_0xba39c4(0x185),'height':_0xba39c4(0x185)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0xba39c4(0x155),'attrs':{'stroke':_0xba39c4(0x16b),'d':_0xba39c4(0x1f7),'strokeLinecap':'round','strokeLinejoin':_0xba39c4(0x101),'strokeWidth':1.2}}]},{'tag':_0xba39c4(0x14a),'attrs':{},'children':[{'tag':_0xba39c4(0x1d6),'attrs':{'id':_0xba39c4(0x1cc)},'children':[{'tag':_0xba39c4(0x155),'attrs':{'fill':'white','d':_0xba39c4(0x188),'transform':_0xba39c4(0x1d5)}}]}]}],'defIds':[_0xba39c4(0x1cc)]},_0x644978=_0x11275e['forwardRef'](function(_0x158100,_0x466762){var _0x1f9009=_0xba39c4;return _0x11275e[_0x1f9009(0x195)](_0x361a83,Object[_0x1f9009(0x11b)]({},_0x158100,{'id':_0x1f9009(0x10e),'ref':_0x466762,'icon':_0x2a0598}));});_0x644978['displayName']=_0xba39c4(0x1e6);function _0x47d1cc(_0xb51e8d){var _0x3a80cf=_0xba39c4,_0x10e722,_0x4a5d05;const {mcpCoreConfig:_0x1b954d,onSave:_0x5622d3,loading:_0x187777=!0x1,config:_0x12ac51,connectionStatus$:_0xe9aa6c,connectionError$:_0x453756}=_0xb51e8d,_0xc1551d=_0x2c04f0[_0x3a80cf(0x258)](_0x2891a4[_0x3a80cf(0x235)]),_0x555ebe=_0x2c04f0[_0x3a80cf(0x217)](_0xe9aa6c,_0xf5456e[_0x3a80cf(0x1b6)][_0x3a80cf(0x1f4)]),_0x10e442=_0x2c04f0[_0x3a80cf(0x217)](_0x453756,_0xf5456e['MCPConnectionError'][_0x3a80cf(0x19f)]),[_0x23a53b,_0x4dd62e]=_0x11275e[_0x3a80cf(0x129)](_0x1b954d['apiKey']||''),_0x37d038=!0x0,_0x4649e3=_0x12ac51[_0x3a80cf(0x142)]&&_0x1b954d[_0x3a80cf(0x18c)]&&(_0x1b954d[_0x3a80cf(0x18c)][_0x3a80cf(0x132)](_0x3a80cf(0x17a))||_0x1b954d[_0x3a80cf(0x18c)][_0x3a80cf(0x132)]('univer.ai')),_0x5dc56c=(_0x10e722=_0x1b954d[_0x3a80cf(0x18c)])==null?void 0x0:_0x10e722[_0x3a80cf(0x132)](_0x3a80cf(0x17a)),_0x3c5583=(_0x4a5d05=_0x1b954d['mcpServerUrl'])==null?void 0x0:_0x4a5d05['includes'](_0x3a80cf(0x20e)),_0x119cea=_0x5dc56c?_0x3a80cf(0x1e0):_0x3a80cf(0x1b8),_0xaa5cf3=_0x12ac51[_0x3a80cf(0x142)]&&(_0x5dc56c||_0x3c5583),[_0x5b2b0d,_0x1c95fa]=_0x11275e[_0x3a80cf(0x129)](!_0x23a53b[_0x3a80cf(0x165)]()),_0x4ade84=(_0x1e6363,_0x333b9a)=>{var _0x1203a4=_0x3a80cf;if(_0x333b9a===_0xf5456e[_0x1203a4(0x182)]['MISSING_API_KEY']||_0x333b9a===_0xf5456e[_0x1203a4(0x182)]['INVALID_API_KEY'])return _0x1203a4(0x26a);switch(_0x1e6363){case _0xf5456e[_0x1203a4(0x1b6)][_0x1203a4(0x1a0)]:return _0x1203a4(0x127);case _0xf5456e[_0x1203a4(0x1b6)][_0x1203a4(0x1a5)]:case _0xf5456e[_0x1203a4(0x1b6)][_0x1203a4(0x134)]:return _0x1203a4(0x21d);case _0xf5456e[_0x1203a4(0x1b6)][_0x1203a4(0x1a4)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x1203a4(0x1ab);}},_0x522b56=(_0x1406a6,_0x153be8)=>{var _0xe43f44=_0x3a80cf;if(_0x153be8===_0xf5456e[_0xe43f44(0x182)][_0xe43f44(0xe6)]||_0x153be8===_0xf5456e[_0xe43f44(0x182)]['INVALID_API_KEY'])return _0xe43f44(0x11f);switch(_0x1406a6){case _0xf5456e[_0xe43f44(0x1b6)][_0xe43f44(0x1a0)]:return'univer-bg-green-500';case _0xf5456e[_0xe43f44(0x1b6)]['CONNECTING']:case _0xf5456e['MCPConnectionStatus'][_0xe43f44(0x134)]:return _0xe43f44(0x154);case _0xf5456e[_0xe43f44(0x1b6)][_0xe43f44(0x1a4)]:return _0xe43f44(0x11f);default:return _0xe43f44(0x15b);}},_0x2d1de4=_0x5acddf=>{var _0x25c2ba=_0x3a80cf;switch(_0x5acddf){case _0xf5456e[_0x25c2ba(0x1b6)]['CONNECTED']:return _0xc1551d['t'](_0x25c2ba(0x1bb));case _0xf5456e[_0x25c2ba(0x1b6)][_0x25c2ba(0x1a5)]:return _0xc1551d['t'](_0x25c2ba(0x22a));case _0xf5456e[_0x25c2ba(0x1b6)][_0x25c2ba(0x1a4)]:return _0xc1551d['t'](_0x25c2ba(0x16d));case _0xf5456e[_0x25c2ba(0x1b6)][_0x25c2ba(0x134)]:return _0xc1551d['t'](_0x25c2ba(0x239));default:return _0xc1551d['t'](_0x25c2ba(0x233));}},_0x290894=_0x45c208=>{var _0x14427c=_0x3a80cf;switch(_0x45c208){case _0xf5456e[_0x14427c(0x182)]['MISSING_API_KEY']:return _0xc1551d['t'](_0x14427c(0x1f2));case _0xf5456e[_0x14427c(0x182)][_0x14427c(0x20c)]:return _0xc1551d['t']('mcpConfig.connectionError.invalidApiKey');case _0xf5456e['MCPConnectionError'][_0x14427c(0x171)]:return _0xc1551d['t'](_0x14427c(0xfd));case _0xf5456e[_0x14427c(0x182)][_0x14427c(0x15a)]:return _0xc1551d['t'](_0x14427c(0x21c));case _0xf5456e['MCPConnectionError'][_0x14427c(0x227)]:return _0xc1551d['t'](_0x14427c(0x222));default:return'';}},_0x40e2b7=_0x11275e['useCallback'](()=>{var _0x2595bd=_0x3a80cf;const _0x4bc292={..._0x1b954d,'apiKey':_0x23a53b[_0x2595bd(0x165)](),'enableAuth':_0x37d038};_0x5622d3(_0x4bc292);},[_0x1b954d,_0x23a53b,_0x37d038,_0x5622d3]),_0x51a5aa=_0x23a53b[_0x3a80cf(0x165)]()['length']>0x0;return _0x2aa594['jsxs'](_0x3a80cf(0x207),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x2aa594[_0x3a80cf(0x21b)](_0x3a80cf(0x207),{'className':_0x3a80cf(0x10b),'children':_0x2aa594['jsxs'](_0x3a80cf(0x207),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0x2aa594[_0x3a80cf(0x21b)]('div',{'className':'univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':_0x2aa594[_0x3a80cf(0x21b)](_0x3a80cf(0x1cd),{'className':_0x3a80cf(0x1df),'children':'⚙'})}),_0x2aa594[_0x3a80cf(0x21b)](_0x3a80cf(0x207),{'children':_0x2aa594[_0x3a80cf(0x21b)]('p',{'className':_0x3a80cf(0x191),'children':_0xc1551d['t']('mcpConfig.description')})})]})}),_0x2aa594[_0x3a80cf(0x19b)](_0x3a80cf(0x207),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x2aa594[_0x3a80cf(0x21b)](_0x3a80cf(0x207),{'className':_0x3a80cf(0x111)+_0x4ade84(_0x555ebe,_0x10e442)+_0x3a80cf(0x223),'children':_0x2aa594[_0x3a80cf(0x19b)](_0x3a80cf(0x207),{'className':_0x3a80cf(0x226),'children':[_0x2aa594[_0x3a80cf(0x21b)]('div',{'className':_0x3a80cf(0x16f)+_0x522b56(_0x555ebe,_0x10e442)+_0x3a80cf(0x1ed)}),_0x2aa594[_0x3a80cf(0x21b)](_0x3a80cf(0x1cd),{'className':_0x3a80cf(0x265),'children':_0x2d1de4(_0x555ebe)})]})}),_0x10e442!==_0xf5456e[_0x3a80cf(0x182)][_0x3a80cf(0x19f)]&&(_0x555ebe===_0xf5456e[_0x3a80cf(0x1b6)]['FAILED']||_0x10e442===_0xf5456e[_0x3a80cf(0x182)][_0x3a80cf(0xe6)]||_0x10e442===_0xf5456e[_0x3a80cf(0x182)][_0x3a80cf(0x20c)])&&_0x2aa594[_0x3a80cf(0x21b)]('div',{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x2aa594[_0x3a80cf(0x19b)](_0x3a80cf(0x207),{'className':_0x3a80cf(0x24d),'children':[_0x2aa594[_0x3a80cf(0x21b)](_0x3a80cf(0x1cd),{'className':_0x3a80cf(0x17d),'children':'⚠️'}),_0x2aa594[_0x3a80cf(0x21b)]('p',{'className':_0x3a80cf(0x13a),'children':_0x290894(_0x10e442)})]})})]}),_0x2aa594['jsx']('div',{'className':_0x3a80cf(0x140),'children':_0x2aa594[_0x3a80cf(0x19b)](_0x3a80cf(0x207),{'className':_0x3a80cf(0x126),'children':[_0x2aa594[_0x3a80cf(0x19b)](_0x3a80cf(0x207),{'className':'univer-space-y-2','children':[_0x2aa594['jsxs'](_0x3a80cf(0x10c),{'className':_0x3a80cf(0x269),'children':[_0x2aa594[_0x3a80cf(0x21b)](_0x3a80cf(0x1cd),{'children':'🔑'}),'\x20',_0xc1551d['t'](_0x3a80cf(0x1a8)),_0x2aa594['jsx'](_0x3a80cf(0x1cd),{'className':'univer-text-red-500','children':'*'}),_0x4649e3&&_0x2aa594[_0x3a80cf(0x21b)]('a',{'href':'javascript:void(0)','onClick':()=>_0x1c95fa(!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':_0xc1551d['t']('mcpConfig.apiApplyInfo.title'),'children':_0x2aa594[_0x3a80cf(0x21b)](_0x42619f,{})})]}),_0x2aa594[_0x3a80cf(0x21b)](_0x5d7edd[_0x3a80cf(0x198)],{'type':_0x3a80cf(0x16a),'placeholder':_0xc1551d['t'](_0x3a80cf(0x14d)),'value':_0x23a53b,'onChange':_0x4dd62e,'disabled':_0x187777,'autoComplete':_0x3a80cf(0x205)}),_0x2aa594['jsx']('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0xc1551d['t'](_0x3a80cf(0x221))})]}),_0x4649e3&&_0x5b2b0d&&_0x2aa594[_0x3a80cf(0x19b)](_0x3a80cf(0x207),{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[_0x2aa594[_0x3a80cf(0x21b)]('a',{'href':_0x3a80cf(0x1d9),'onClick':()=>_0x1c95fa(!0x1),'className':_0x3a80cf(0x21f),'title':_0x3a80cf(0x23c),'children':_0x2aa594[_0x3a80cf(0x21b)](_0x474378,{})}),_0x2aa594[_0x3a80cf(0x19b)](_0x3a80cf(0x207),{'className':_0x3a80cf(0x26c),'children':[_0x2aa594[_0x3a80cf(0x21b)](_0x3a80cf(0x207),{'className':_0x3a80cf(0x1c9),'children':_0x2aa594[_0x3a80cf(0x21b)](_0x3a80cf(0x1cd),{'className':'univer-text-blue-600','children':'🚀'})}),_0x2aa594[_0x3a80cf(0x19b)]('div',{'className':_0x3a80cf(0x17e),'children':[_0x2aa594[_0x3a80cf(0x21b)]('h4',{'className':_0x3a80cf(0x1b0),'children':_0xc1551d['t'](_0x3a80cf(0x1f1))}),_0x2aa594[_0x3a80cf(0x21b)]('p',{'className':_0x3a80cf(0xe8),'children':_0xc1551d['t'](_0x3a80cf(0x12d))}),_0x2aa594[_0x3a80cf(0x21b)]('div',{'className':_0x3a80cf(0x123),'children':_0xaa5cf3&&_0x2aa594[_0x3a80cf(0x19b)]('a',{'href':_0x119cea,'target':_0x3a80cf(0x243),'rel':_0x3a80cf(0x143),'className':_0x3a80cf(0x16e),'children':[_0x2aa594[_0x3a80cf(0x21b)](_0x3a80cf(0x1cd),{'children':'🤖'}),_0xc1551d['t']('mcpConfig.apiApplyInfo.univerAiLabel'),_0x2aa594[_0x3a80cf(0x21b)](_0x3a80cf(0x1cd),{'className':_0x3a80cf(0x180),'children':'↗'})]})}),_0x2aa594[_0x3a80cf(0x19b)]('div',{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0xc1551d['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x12ac51[_0x3a80cf(0x142)]&&_0x2aa594[_0x3a80cf(0x19b)](_0x3a80cf(0x207),{'className':_0x3a80cf(0x20f),'children':[_0x2aa594[_0x3a80cf(0x19b)]('h4',{'className':_0x3a80cf(0x1c0),'children':[_0x2aa594[_0x3a80cf(0x21b)]('span',{'children':'🔗'}),'\x20',_0xc1551d['t'](_0x3a80cf(0x203))]}),_0x2aa594[_0x3a80cf(0x19b)](_0x3a80cf(0x207),{'className':_0x3a80cf(0x192),'children':[_0x2aa594['jsxs'](_0x3a80cf(0x207),{'className':_0x3a80cf(0x1ca),'children':[_0x2aa594[_0x3a80cf(0x21b)](_0x3a80cf(0x207),{'className':_0x3a80cf(0x201)}),_0x2aa594['jsxs']('div',{'className':_0x3a80cf(0x200),'children':[_0x2aa594[_0x3a80cf(0x21b)](_0x3a80cf(0x207),{'className':_0x3a80cf(0x237),'children':_0xc1551d['t']('mcpConfig.serverEndpoint')}),_0x2aa594[_0x3a80cf(0x21b)](_0x3a80cf(0x133),{'className':'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','children':_0x1b954d['mcpServerUrl']})]})]}),_0x2aa594['jsxs']('div',{'className':_0x3a80cf(0x1ca),'children':[_0x2aa594[_0x3a80cf(0x21b)](_0x3a80cf(0x207),{'className':_0x3a80cf(0x201)}),_0x2aa594['jsxs'](_0x3a80cf(0x207),{'className':_0x3a80cf(0x200),'children':[_0x2aa594['jsx'](_0x3a80cf(0x207),{'className':_0x3a80cf(0x237),'children':_0xc1551d['t'](_0x3a80cf(0x162))}),_0x2aa594[_0x3a80cf(0x21b)]('code',{'className':_0x3a80cf(0x1ee),'children':_0x1b954d['sessionId']||_0x3a80cf(0xf6)})]})]})]})]}),_0x2aa594[_0x3a80cf(0x21b)](_0x5d7edd[_0x3a80cf(0x135)],{'onClick':_0x40e2b7,'disabled':!_0x51a5aa||_0x187777,'className':_0x3a80cf(0x1de),'children':_0x187777?_0x2aa594[_0x3a80cf(0x19b)](_0x3a80cf(0x1cd),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x2aa594[_0x3a80cf(0x21b)](_0x3a80cf(0x1cd),{'children':'⟲'}),_0xc1551d['t'](_0x3a80cf(0x19d))]}):_0x2aa594[_0x3a80cf(0x19b)](_0x3a80cf(0x1cd),{'className':_0x3a80cf(0x226),'children':[_0x2aa594[_0x3a80cf(0x21b)](_0x5d96a9,{}),_0xc1551d['t'](_0x3a80cf(0x1fb))]})}),_0x2aa594['jsx'](_0x3a80cf(0x207),{'className':_0x3a80cf(0x224),'children':_0x2aa594[_0x3a80cf(0x19b)](_0x3a80cf(0x207),{'className':_0x3a80cf(0x20d),'children':[_0x2aa594[_0x3a80cf(0x21b)]('span',{'className':_0x3a80cf(0x14c),'children':'💡'}),_0x2aa594[_0x3a80cf(0x19b)](_0x3a80cf(0x207),{'className':_0x3a80cf(0x1da),'children':[_0x2aa594[_0x3a80cf(0x21b)](_0x3a80cf(0x207),{'className':_0x3a80cf(0x21e),'children':_0x3a80cf(0x1a1)}),_0x2aa594[_0x3a80cf(0x19b)](_0x3a80cf(0x207),{'children':['•',_0xc1551d['t'](_0x3a80cf(0x1be))]}),_0x2aa594[_0x3a80cf(0x19b)]('div',{'children':['•',_0xc1551d['t'](_0x3a80cf(0x151))]})]})]})})]})})]});}const _0x5b53b2='mcp-ui.config',_0x1c45fc={'showDeveloperTools':!0x1};var _0x27e38c=Object['getOwnPropertyDescriptor'],_0xac44cb=(_0x528d11,_0x30c9f8,_0x2c0cff,_0x5e92b9)=>{var _0x4786e0=_0xba39c4;for(var _0x42158a=_0x5e92b9>0x1?void 0x0:_0x5e92b9?_0x27e38c(_0x30c9f8,_0x2c0cff):_0x30c9f8,_0x449a2a=_0x528d11[_0x4786e0(0x110)]-0x1,_0x2bea6b;_0x449a2a>=0x0;_0x449a2a--)(_0x2bea6b=_0x528d11[_0x449a2a])&&(_0x42158a=_0x2bea6b(_0x42158a)||_0x42158a);return _0x42158a;},_0x1a0682=(_0x42ca12,_0x2f0eda)=>(_0x2af9ec,_0x127e96)=>_0x2f0eda(_0x2af9ec,_0x127e96,_0x42ca12);const _0x240de8=_0xba39c4(0x199),_0x3096d1=_0xba39c4(0x251);_0x3268fb[_0xba39c4(0x25c)]=class extends _0x2891a4[_0xba39c4(0x254)]{constructor(_0x467dce,_0x51b6c4,_0x3cf287,_0x1961af,_0x268052,_0x250c47,_0x18e2ff,_0xe35bf7,_0x311422,_0x2c5764){var _0x3a1564=_0xba39c4;super(),_0x41c3ff(this,_0x3a1564(0x268),new _0x9ebfb8['BehaviorSubject'](!0x1)),_0x41c3ff(this,_0x3a1564(0x184),new _0x9ebfb8[(_0x3a1564(0x1b3))]({})),_0x41c3ff(this,_0x3a1564(0x1bd),new _0x9ebfb8[(_0x3a1564(0x1b3))]({})),_0x41c3ff(this,'_handleConfigSave',async _0x547982=>{var _0x30167d=_0x3a1564;this[_0x30167d(0x268)][_0x30167d(0x138)](!0x0);try{const _0x214733=await this[_0x30167d(0x26b)](_0x547982);if(!_0x214733[_0x30167d(0x259)]){this['_messageService'][_0x30167d(0x1c4)]({'type':_0x5d7edd['MessageType']['Error'],'content':_0x214733[_0x30167d(0x1ec)]||this[_0x30167d(0xea)]['t'](_0x30167d(0x19a))});return;}_0x547982[_0x30167d(0x1fd)]?await this['_localStorageService']['setItem'](_0x240de8,_0x547982[_0x30167d(0x1fd)][_0x30167d(0x165)]()):await this[_0x30167d(0x219)][_0x30167d(0x1a7)](_0x240de8),this[_0x30167d(0x172)][_0x30167d(0xee)](_0xf5456e[_0x30167d(0x146)],{..._0x547982,'apiKey':_0x547982['apiKey'][_0x30167d(0x165)]()}),this[_0x30167d(0x184)][_0x30167d(0x138)]({..._0x547982,'apiKey':_0x547982['apiKey'][_0x30167d(0x165)]()}),this[_0x30167d(0x1ce)]['show']({'type':_0x5d7edd[_0x30167d(0x1ef)][_0x30167d(0x159)],'content':this[_0x30167d(0xea)]['t'](_0x30167d(0x24b))}),setTimeout(()=>{this['_dialogService']['close'](_0x3096d1);},0x320);}catch(_0x2bb484){this[_0x30167d(0x1bf)][_0x30167d(0x1d2)](_0x30167d(0x23d),_0x2bb484),this[_0x30167d(0x1ce)][_0x30167d(0x1c4)]({'type':_0x5d7edd[_0x30167d(0x1ef)][_0x30167d(0x14e)],'content':this['_localeService']['t']('mcpConfig.configError')});}finally{this[_0x30167d(0x268)][_0x30167d(0x138)](!0x1);}}),(this[_0x3a1564(0x1a2)]=_0x467dce,this[_0x3a1564(0x215)]=_0x51b6c4,this['_configService']=_0x3cf287,this['_localStorageService']=_0x1961af,this[_0x3a1564(0x166)]=_0x268052,this['_messageService']=_0x250c47,this[_0x3a1564(0x147)]=_0x18e2ff,this[_0x3a1564(0xea)]=_0xe35bf7,this[_0x3a1564(0x1bf)]=_0x311422,this['_mcpConnectionController']=_0x2c5764,this['_initConfigSync'](),this[_0x3a1564(0xe7)](),this[_0x3a1564(0x1d3)]());}['showConfigPanel'](){var _0x4694ca=_0xba39c4;this[_0x4694ca(0x166)]['open']({'id':_0x3096d1,'title':{'title':this[_0x4694ca(0xea)]['t']('mcpConfig.title')},'children':{'label':'MCPConfigPanel'},'width':0x1e0,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x45dda8=_0x4694ca;this[_0x45dda8(0x166)]['close'](_0x3096d1);}});}[_0xba39c4(0x137)](){var _0x4bdf41=_0xba39c4;return this[_0x4bdf41(0x184)][_0x4bdf41(0x1ad)];}['_registerComponent'](){var _0x160d2b=_0xba39c4;this[_0x160d2b(0x218)](this[_0x160d2b(0x147)][_0x160d2b(0xf2)](_0x160d2b(0x238),this[_0x160d2b(0x211)]()));}[_0xba39c4(0x211)](){var _0x432b4f=_0xba39c4;return _0x2c04f0[_0x432b4f(0x242)](()=>{var _0x44c25b=_0x432b4f,_0x4d860c,_0x53b393;return _0x2aa594[_0x44c25b(0x21b)](_0x47d1cc,{'config':this['_config$'][_0x44c25b(0x1ad)],'mcpCoreConfig':this[_0x44c25b(0x184)][_0x44c25b(0x1ad)],'onSave':this[_0x44c25b(0x196)],'loading':this[_0x44c25b(0x268)]['value'],'connectionStatus$':(_0x4d860c=this[_0x44c25b(0x257)])==null?void 0x0:_0x4d860c[_0x44c25b(0x1c1)],'connectionError$':(_0x53b393=this[_0x44c25b(0x257)])==null?void 0x0:_0x53b393[_0x44c25b(0x11d)]});},this['_injector']);}[_0xba39c4(0x187)](){var _0x3b6739=_0xba39c4;this[_0x3b6739(0x218)](this['_configService']['subscribeConfigValue$'](_0xf5456e[_0x3b6739(0x146)])[_0x3b6739(0x1a6)](_0x5a89e1=>{var _0x54b1d7=_0x3b6739;this[_0x54b1d7(0x184)][_0x54b1d7(0x138)](_0x5a89e1||{});}));const _0x5d90dd=this[_0x3b6739(0x172)][_0x3b6739(0x144)](_0xf5456e['MCP_PLUGIN_CONFIG_KEY']);this[_0x3b6739(0x184)]['next'](_0x5d90dd||{}),this[_0x3b6739(0x218)](this[_0x3b6739(0x172)][_0x3b6739(0x12a)](_0x5b53b2)[_0x3b6739(0x1a6)](_0x4f3d95=>{var _0x4a5d60=_0x3b6739;this[_0x4a5d60(0x1bd)][_0x4a5d60(0x138)](_0x4f3d95||{});}));const _0xca4f50=this[_0x3b6739(0x172)][_0x3b6739(0x144)](_0x5b53b2);this[_0x3b6739(0x1bd)]['next'](_0xca4f50||{});}async[_0xba39c4(0xe7)](){var _0x8d954=_0xba39c4;const _0x14a892=await this['_localStorageService'][_0x8d954(0x1bc)](_0x240de8);if(_0x14a892){const _0x6abe9d={...this[_0x8d954(0x184)]['value'],'apiKey':_0x14a892};this[_0x8d954(0x172)][_0x8d954(0xee)](_0xf5456e['MCP_PLUGIN_CONFIG_KEY'],_0x6abe9d),this['_mcpCoreConfig$'][_0x8d954(0x138)](_0x6abe9d);}}async[_0xba39c4(0x26b)](_0x51b4ea){var _0x10c34f=_0xba39c4;if(!_0x51b4ea[_0x10c34f(0x1fd)]||_0x51b4ea['apiKey'][_0x10c34f(0x165)]()[_0x10c34f(0x110)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x10c34f(0xea)]['t'](_0x10c34f(0x170))};if(_0x51b4ea[_0x10c34f(0x1fd)][_0x10c34f(0x165)]()[_0x10c34f(0x110)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x10c34f(0xea)]['t'](_0x10c34f(0x266))};try{const _0x336ce1=await this['_injector'][_0x10c34f(0xff)](_0xf5456e[_0x10c34f(0x24f)])[_0x10c34f(0x24c)](_0x51b4ea[_0x10c34f(0x1fd)][_0x10c34f(0x165)]());return _0x336ce1[_0x10c34f(0x259)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x336ce1['error']||this[_0x10c34f(0xea)]['t'](_0x10c34f(0xec))};}catch(_0x4e7d40){return console[_0x10c34f(0x18b)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x4e7d40),{'isValid':!0x0};}}},_0x3268fb['MCPConfigUIController']=_0xac44cb([_0x1a0682(0x0,_0x2891a4[_0xba39c4(0x1e7)](_0x2891a4[_0xba39c4(0x17f)])),_0x1a0682(0x1,_0x2c04f0[_0xba39c4(0x158)]),_0x1a0682(0x2,_0x2891a4[_0xba39c4(0x122)]),_0x1a0682(0x3,_0x2891a4[_0xba39c4(0x270)]),_0x1a0682(0x4,_0x2c04f0[_0xba39c4(0x152)]),_0x1a0682(0x5,_0x2c04f0[_0xba39c4(0x1c3)]),_0x1a0682(0x6,_0x2891a4['Inject'](_0x2c04f0[_0xba39c4(0x109)])),_0x1a0682(0x7,_0x2891a4[_0xba39c4(0x1e7)](_0x2891a4[_0xba39c4(0x235)])),_0x1a0682(0x8,_0x2891a4['ILogService']),_0x1a0682(0x9,_0x2891a4[_0xba39c4(0x1e7)](_0xf5456e[_0xba39c4(0x24f)]))],_0x3268fb[_0xba39c4(0x25c)]);const _0x340499={'id':_0xba39c4(0x178),'type':_0x2891a4[_0xba39c4(0x19e)][_0xba39c4(0x1b5)],'handler':async(_0x12ad75,_0x26c2ca)=>(_0x12ad75[_0xba39c4(0xff)](_0x3268fb[_0xba39c4(0x25c)])['showConfigPanel'](),!0x0)};function _0x5ae1f6(_0x348e51,_0x32f860){var _0x2544eb=_0xba39c4;switch(_0x348e51){case _0xf5456e[_0x2544eb(0x1b6)][_0x2544eb(0x1f4)]:return _0x32f860===_0xf5456e['MCPConnectionError'][_0x2544eb(0xe6)]?_0x2544eb(0x173):_0x2544eb(0x240);case _0xf5456e[_0x2544eb(0x1b6)][_0x2544eb(0x1a5)]:return _0x2544eb(0x1e9);case _0xf5456e[_0x2544eb(0x1b6)]['CONNECTED']:return'mcpStatus.connected';case _0xf5456e[_0x2544eb(0x1b6)]['FAILED']:switch(_0x32f860){case _0xf5456e[_0x2544eb(0x182)][_0x2544eb(0x20c)]:return'mcpStatus.invalidApiKey';case _0xf5456e[_0x2544eb(0x182)]['SESSION_ID_OCCUPIED']:return'mcpStatus.sessionOccupied';case _0xf5456e[_0x2544eb(0x182)][_0x2544eb(0x15a)]:return'mcpStatus.networkError';case _0xf5456e[_0x2544eb(0x182)]['MAX_RETRIES_EXCEEDED']:return'mcpStatus.maxRetriesExceeded';default:return'mcpStatus.failed';}case _0xf5456e[_0x2544eb(0x1b6)][_0x2544eb(0x134)]:return'mcpStatus.retrying';default:return _0x2544eb(0x244);}}function _0x2609b0(_0x322abd,_0x57530a,_0x581fbc){var _0x5633f9=_0xba39c4;const _0x142df5=_0x5ae1f6(_0x322abd,_0x57530a),_0x2d0c0d=_0x581fbc['t'](_0x142df5);return _0x322abd===_0xf5456e[_0x5633f9(0x1b6)][_0x5633f9(0x1f4)]&&_0x57530a===_0xf5456e[_0x5633f9(0x182)][_0x5633f9(0xe6)]?_0x2d0c0d+_0x5633f9(0x181)+_0x581fbc['t']('mcpStatus.clickToConfigure'):_0x322abd===_0xf5456e[_0x5633f9(0x1b6)][_0x5633f9(0x1a0)]?''+_0x2d0c0d:_0x322abd===_0xf5456e['MCPConnectionStatus'][_0x5633f9(0x1f4)]||_0x322abd===_0xf5456e[_0x5633f9(0x1b6)]['FAILED']?_0x2d0c0d+'\x20-\x20'+_0x581fbc['t'](_0x5633f9(0x1c6)):_0x2d0c0d;}function _0x1d6632(_0x1b8a37){var _0x166850=_0xba39c4;switch(_0x1b8a37){case _0xf5456e[_0x166850(0x1b6)][_0x166850(0x1a0)]:return _0x166850(0x1e8);case _0xf5456e[_0x166850(0x1b6)][_0x166850(0x1a5)]:case _0xf5456e[_0x166850(0x1b6)]['RETRYING']:return'univer-text-yellow-500';case _0xf5456e[_0x166850(0x1b6)]['FAILED']:case _0xf5456e[_0x166850(0x1b6)][_0x166850(0x1f4)]:return _0x166850(0x23b);default:return'univer-text-gray-500';}}function _0x565e51(_0xa87d6f){var _0x8ca329=_0xba39c4;const {status$:_0x4e4985,error$:_0x341863,onConfigure:_0x3f5d5b}=_0xa87d6f,_0x43a55f=_0x2c04f0[_0x8ca329(0x217)](_0x4e4985,_0xf5456e[_0x8ca329(0x1b6)][_0x8ca329(0x1f4)]),_0x8fbfa2=_0x2c04f0['useObservable'](_0x341863,_0xf5456e['MCPConnectionError'][_0x8ca329(0x19f)]),_0x50353a=_0x2c04f0[_0x8ca329(0x258)](_0x2891a4['LocaleService']),_0x463642=_0x43a55f===_0xf5456e[_0x8ca329(0x1b6)][_0x8ca329(0x1a0)],_0x4ebcef=_0x43a55f===_0xf5456e[_0x8ca329(0x1b6)]['CONNECTING']||_0x43a55f===_0xf5456e[_0x8ca329(0x1b6)][_0x8ca329(0x134)],_0x3af6e1=_0x50353a['t'](_0x5ae1f6(_0x43a55f,_0x8fbfa2)),_0x3a92b0=_0x2609b0(_0x43a55f,_0x8fbfa2,_0x50353a),_0x1c71d7=_0x1d6632(_0x43a55f),_0x1266de=_0x463642?_0x2aa594['jsx'](_0x644978,{}):_0x2aa594[_0x8ca329(0x21b)](_0x2dd78c,{}),_0x3de407=_0x11275e[_0x8ca329(0x183)](()=>{_0x3f5d5b&&_0x3f5d5b();},[_0x463642,_0x4ebcef,_0x3f5d5b]);function _0x506293(){var _0x3aa3d0=_0x8ca329;return _0x2aa594[_0x3aa3d0(0x19b)]('div',{'className':_0x5d7edd[_0x3aa3d0(0x231)](_0x3aa3d0(0x186),_0x3f5d5b&&'hover:univer-opacity-80'),'onClick':_0x3f5d5b?_0x3de407:void 0x0,'children':[_0x2aa594[_0x3aa3d0(0x21b)]('div',{'className':_0x5d7edd[_0x3aa3d0(0x231)](_0x3aa3d0(0x168),_0x1c71d7),'children':_0x1266de}),_0x2aa594[_0x3aa3d0(0x21b)](_0x3aa3d0(0x207),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x3af6e1})]});}return _0x2aa594[_0x8ca329(0x21b)](_0x5d7edd['Tooltip'],{'title':_0x3a92b0,'placement':'bottom','children':_0x506293()});}var _0x1f3656=Object['getOwnPropertyDescriptor'],_0x2b09f3=(_0x513027,_0x19f1d8,_0x1fd7ed,_0x1bdc84)=>{for(var _0xddc3d4=_0x1bdc84>0x1?void 0x0:_0x1bdc84?_0x1f3656(_0x19f1d8,_0x1fd7ed):_0x19f1d8,_0x4f2596=_0x513027['length']-0x1,_0xb4a4c0;_0x4f2596>=0x0;_0x4f2596--)(_0xb4a4c0=_0x513027[_0x4f2596])&&(_0xddc3d4=_0xb4a4c0(_0xddc3d4)||_0xddc3d4);return _0xddc3d4;},_0x13118d=(_0x3701fd,_0x26ddc7)=>(_0x57ebe4,_0x3d1969)=>_0x26ddc7(_0x57ebe4,_0x3d1969,_0x3701fd);_0x3268fb[_0xba39c4(0x25b)]=class extends _0x2891a4['Disposable']{constructor(_0x5076a9,_0x22d473,_0x1ce9b0){var _0xd917e=_0xba39c4;super(),this[_0xd917e(0x1a2)]=_0x5076a9,this[_0xd917e(0x1fa)]=_0x22d473,this['_uiPartsService']=_0x1ce9b0,this['_initStatusComponent']();}[_0xba39c4(0x255)](){var _0x17f974=_0xba39c4;this[_0x17f974(0x218)](this['_uiPartsService'][_0x17f974(0x1af)](_0x2c04f0[_0x17f974(0x214)][_0x17f974(0x125)],()=>_0x2c04f0['connectInjector'](_0x4e1041({'status$':this['_connectionController'][_0x17f974(0x1c1)],'error$':this[_0x17f974(0x1fa)][_0x17f974(0x11d)],'onConfigure':()=>this[_0x17f974(0x160)]()}),this[_0x17f974(0x1a2)])));}[_0xba39c4(0x160)](){var _0x5306d8=_0xba39c4;this['_injector'][_0x5306d8(0xff)](_0x3268fb[_0x5306d8(0x25c)])[_0x5306d8(0x230)]();}},_0x3268fb[_0xba39c4(0x25b)]=_0x2b09f3([_0x13118d(0x0,_0x2891a4[_0xba39c4(0x1e7)](_0x2891a4[_0xba39c4(0x17f)])),_0x13118d(0x1,_0x2891a4['Inject'](_0xf5456e['MCPConnectionController'])),_0x13118d(0x2,_0x2c04f0[_0xba39c4(0x158)])],_0x3268fb['MCPConnectionUIController']);function _0x4e1041(_0x22b537){const {status$:_0x4bd21a,error$:_0x5f522a,onConfigure:_0x113071}=_0x22b537;return function(){return _0x2aa594['jsx'](_0x565e51,{'status$':_0x4bd21a,'error$':_0x5f522a,'onConfigure':_0x113071});};}function _0x9ba92f(_0x5f4840){var _0x5d76a0=_0xba39c4;return{'id':_0x340499['id'],'type':_0x2c04f0[_0x5d76a0(0x13c)][_0x5d76a0(0xe9)],'icon':_0x5d76a0(0x105),'title':'mcpConfig.title','tooltip':_0x5d76a0(0x245)};}const _0x3c17cb={[_0x2c04f0[_0xba39c4(0x102)][_0xba39c4(0x117)]]:{[_0x340499['id']]:{'order':0xa,'menuItemFactory':_0x9ba92f}}};var _0x19eae1=Object['getOwnPropertyDescriptor'],_0x2ee712=(_0x500fd5,_0x104941,_0x56fc4a,_0x19ba10)=>{var _0x2bc484=_0xba39c4;for(var _0x2f665a=_0x19ba10>0x1?void 0x0:_0x19ba10?_0x19eae1(_0x104941,_0x56fc4a):_0x104941,_0xf3925=_0x500fd5[_0x2bc484(0x110)]-0x1,_0x349887;_0xf3925>=0x0;_0xf3925--)(_0x349887=_0x500fd5[_0xf3925])&&(_0x2f665a=_0x349887(_0x2f665a)||_0x2f665a);return _0x2f665a;},_0x37e00b=(_0x325fbe,_0x4968dc)=>(_0x3f51f0,_0x559fc4)=>_0x4968dc(_0x3f51f0,_0x559fc4,_0x325fbe);_0x3268fb['MCPUIMenuController']=class extends _0x2891a4['Disposable']{constructor(_0x2f9a1e,_0x40caad){var _0x5499b9=_0xba39c4;super(),this['_commandService']=_0x2f9a1e,this[_0x5499b9(0x220)]=_0x40caad,this[_0x5499b9(0x164)](),this[_0x5499b9(0x10d)]();}[_0xba39c4(0x164)](){var _0x2222e2=_0xba39c4;[_0x340499][_0x2222e2(0x234)](_0x14acdf=>{var _0x2859fd=_0x2222e2;this['disposeWithMe'](this[_0x2859fd(0x1b7)][_0x2859fd(0x1aa)](_0x14acdf));});}['_initializeMenus'](){var _0x1d3c5a=_0xba39c4;this[_0x1d3c5a(0x220)]['mergeMenu'](_0x3c17cb);}},_0x3268fb['MCPUIMenuController']=_0x2ee712([_0x37e00b(0x0,_0x2891a4['ICommandService']),_0x37e00b(0x1,_0x2c04f0[_0xba39c4(0x22f)])],_0x3268fb[_0xba39c4(0x1fc)]);const _0x5cff62={'mcpStatus':{'disconnected':_0xba39c4(0x1e5),'connecting':_0xba39c4(0x1c2),'connected':_0xba39c4(0x209),'failed':_0xba39c4(0x149),'retrying':_0xba39c4(0x15e),'unknown':_0xba39c4(0x208),'missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':_0xba39c4(0x1eb),'sessionOccupied':_0xba39c4(0x1d0),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0xba39c4(0x12e),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0xba39c4(0x136)},'mcpConfig':{'title':_0xba39c4(0x16c),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0xba39c4(0x131),'apiKeyPlaceholder':_0xba39c4(0x15f),'apiKeyHint':_0xba39c4(0x189),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0xba39c4(0x19c),'connectionInfo':'Connection\x20Information','serverEndpoint':_0xba39c4(0x212),'sessionId':_0xba39c4(0x26e),'maxRetries':_0xba39c4(0x177),'save':_0xba39c4(0x14f),'saving':_0xba39c4(0x194),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0xba39c4(0x202),'configSaved':_0xba39c4(0x112),'configError':_0xba39c4(0x150),'apiApplyInfo':{'title':_0xba39c4(0x193),'description':_0xba39c4(0x176),'univerAiLabel':_0xba39c4(0x213),'getStarted':_0xba39c4(0x18a)},'validation':{'apiKeyRequired':_0xba39c4(0x1f5),'apiKeyTooShort':_0xba39c4(0x1dd),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0xba39c4(0x1a3)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0xba39c4(0x114),'connected':_0xba39c4(0x1fe),'failed':'Connection\x20Failed','retrying':_0xba39c4(0x1dc)},'connectionError':{'missingApiKey':_0xba39c4(0x1ac),'invalidApiKey':_0xba39c4(0xfc),'sessionOccupied':_0xba39c4(0x23f),'networkError':_0xba39c4(0x145),'maxRetriesExceeded':_0xba39c4(0x104)}}},_0x562c13={'mcpStatus':{'disconnected':_0xba39c4(0x113),'connecting':_0xba39c4(0x11c),'connected':_0xba39c4(0x119),'failed':_0xba39c4(0x261),'retrying':_0xba39c4(0x1b2),'unknown':'MCP\x20状态未知','missingApiKey':_0xba39c4(0xf8),'invalidApiKey':_0xba39c4(0x1d8),'sessionOccupied':_0xba39c4(0x179),'networkError':_0xba39c4(0x23e),'maxRetriesExceeded':_0xba39c4(0x1ba),'clickToConnect':_0xba39c4(0x1f0),'clickToConfigure':_0xba39c4(0x1b9)},'mcpConfig':{'title':_0xba39c4(0x1db),'description':_0xba39c4(0x20b),'apiKey':_0xba39c4(0x118),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0xba39c4(0x13f),'enableAuth':_0xba39c4(0x13d),'enableAuthHint':_0xba39c4(0x115),'connectionInfo':'连接信息','serverEndpoint':_0xba39c4(0x26d),'sessionId':_0xba39c4(0x14b),'maxRetries':_0xba39c4(0x11a),'save':_0xba39c4(0x225),'saving':_0xba39c4(0x1f9),'note1':_0xba39c4(0xfa),'note2':_0xba39c4(0x216),'configSaved':_0xba39c4(0x1d1),'configError':'配置保存失败','apiApplyInfo':{'title':_0xba39c4(0x256),'description':_0xba39c4(0x24e),'univerAiLabel':_0xba39c4(0x263),'getStarted':_0xba39c4(0x1b4)},'validation':{'apiKeyRequired':_0xba39c4(0x1f6),'apiKeyTooShort':_0xba39c4(0x204),'invalidConfig':'配置无效','invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0xba39c4(0x206),'connecting':_0xba39c4(0x175),'connected':'已连接','failed':_0xba39c4(0x25f),'retrying':'重连中...'},'connectionError':{'missingApiKey':'需要\x20API\x20密钥才能连接','invalidApiKey':'API\x20密钥无效,请检查您的密钥后重试','sessionOccupied':'会话当前被占用,请稍后再试','networkError':_0xba39c4(0x1cf),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var _0x5b421f=Object['defineProperty'],_0x34e86c=Object[_0xba39c4(0x250)],_0x91d815=(_0x24cba8,_0x397c6a,_0xcef36)=>_0x397c6a in _0x24cba8?_0x5b421f(_0x24cba8,_0x397c6a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xcef36}):_0x24cba8[_0x397c6a]=_0xcef36,_0x207797=(_0x52ce47,_0x5293ca,_0x57974e,_0x9247eb)=>{var _0x338cc9=_0xba39c4;for(var _0x14eac4=_0x9247eb>0x1?void 0x0:_0x9247eb?_0x34e86c(_0x5293ca,_0x57974e):_0x5293ca,_0x3784f7=_0x52ce47[_0x338cc9(0x110)]-0x1,_0x3edfe1;_0x3784f7>=0x0;_0x3784f7--)(_0x3edfe1=_0x52ce47[_0x3784f7])&&(_0x14eac4=_0x3edfe1(_0x14eac4)||_0x14eac4);return _0x14eac4;},_0x4e0e43=(_0x42b49f,_0x41cde9)=>(_0x82c064,_0x4ca12e)=>_0x41cde9(_0x82c064,_0x4ca12e,_0x42b49f),_0x1debdc=(_0x21cac4,_0x458fa4,_0x23f5ee)=>_0x91d815(_0x21cac4,_0x458fa4+'',_0x23f5ee);_0x3268fb[_0xba39c4(0x25e)]=class extends _0x2891a4[_0xba39c4(0x1a9)]{constructor(_0x1db57d=_0x1c45fc,_0x371f87,_0x38400c,_0x15a374,_0x55e3ac,_0x13272b){var _0x13ad6e=_0xba39c4;super(),this[_0x13ad6e(0x236)]=_0x1db57d,this[_0x13ad6e(0x1a2)]=_0x371f87,this[_0x13ad6e(0x172)]=_0x38400c,this[_0x13ad6e(0x215)]=_0x15a374,this['_localStorageService']=_0x55e3ac,this[_0x13ad6e(0xea)]=_0x13272b;const {..._0x1fd1c7}=_0x2891a4[_0x13ad6e(0x124)]({},_0x1c45fc,this[_0x13ad6e(0x236)]);this['_configService'][_0x13ad6e(0xee)](_0x5b53b2,_0x1fd1c7);}async[_0xba39c4(0x22c)](){var _0x307e86=_0xba39c4;[[_0x3268fb[_0x307e86(0x25b)]],[_0x3268fb[_0x307e86(0x25c)]],[_0x3268fb[_0x307e86(0x1fc)]]][_0x307e86(0x234)](_0x2d3a4b=>this[_0x307e86(0x1a2)][_0x307e86(0xf1)](_0x2d3a4b)),this[_0x307e86(0x1a2)][_0x307e86(0xff)](_0x3268fb[_0x307e86(0x25b)]),this[_0x307e86(0x1a2)][_0x307e86(0xff)](_0x3268fb[_0x307e86(0x25c)]),this[_0x307e86(0x1a2)][_0x307e86(0xff)](_0x3268fb[_0x307e86(0x1fc)]);}},_0x1debdc(_0x3268fb[_0xba39c4(0x25e)],_0xba39c4(0xf7),_0xba39c4(0x1d4)),_0x3268fb[_0xba39c4(0x25e)]=_0x207797([_0x2891a4[_0xba39c4(0x260)](_0xf5456e[_0xba39c4(0x108)]),_0x4e0e43(0x1,_0x2891a4[_0xba39c4(0x1e7)](_0x2891a4[_0xba39c4(0x17f)])),_0x4e0e43(0x2,_0x2891a4[_0xba39c4(0x122)]),_0x4e0e43(0x3,_0x2c04f0[_0xba39c4(0x158)]),_0x4e0e43(0x4,_0x2891a4[_0xba39c4(0x270)]),_0x4e0e43(0x5,_0x2891a4['Inject'](_0x2891a4['LocaleService']))],_0x3268fb['UniverMCPUIPlugin']),_0x3268fb[_0xba39c4(0x238)]=_0x47d1cc,_0x3268fb['MCPStatusDisplay']=_0x565e51,_0x3268fb[_0xba39c4(0x1c8)]=_0x340499,_0x3268fb['enUS']=_0x5cff62,_0x3268fb[_0xba39c4(0x18f)]=_0x562c13,Object[_0xba39c4(0x139)](_0x3268fb,Symbol[_0xba39c4(0x106)],{'value':_0xba39c4(0x248)});}));function _0x59b3(_0x409aa2,_0x380751){var _0x47231f=_0x4723();return _0x59b3=function(_0x59b3d4,_0xd1f343){_0x59b3d4=_0x59b3d4-0xe6;var _0x3f8a50=_0x47231f[_0x59b3d4];return _0x3f8a50;},_0x59b3(_0x409aa2,_0x380751);}function _0x4723(){var _0x3c5973=['mcpConfig.validation.invalidConfig','jsxs','Enable\x20authentication\x20for\x20secure\x20connections','mcpConfig.saving','CommandType','NONE','CONNECTED','Configuration\x20Notes:','_injector','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','FAILED','CONNECTING','subscribe','removeItem','mcpConfig.apiKey','Plugin','registerCommand','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','API\x20key\x20is\x20required\x20to\x20connect','value','map','registerComponent','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','0\x200\x2016\x2016','MCP\x20重连中...','BehaviorSubject','几秒钟内获取您的\x20API\x20密钥','COMMAND','MCPConnectionStatus','_commandService','https://console.univer.ai','点击配置\x20MCP','MCP:\x20超出最大重试次数','mcpConfig.connectionStatus.connected','getItem','_config$','mcpConfig.note1','_logService','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','connectionStatus$','MCP\x20Connecting...','IMessageService','show','current','mcpStatus.clickToConnect','propertyIsEnumerable','OpenMCPConfigPanelCommand','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','univer-flex\x20univer-items-start\x20univer-gap-3','amd','on-line-icon_clip0_910_349','span','_messageService','网络连接错误,请检查您的网络连接','MCP:\x20Session\x20Occupied','配置保存成功','error','_registerComponent','MCP_UI_PLUGIN','translate(.97)','clipPath','useRef','MCP:\x20无效的\x20API\x20密钥','javascript:void(0)','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','MCP\x20配置','Retrying...','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','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','univer-text-white','https://console.univer.plus','594744zZEzEH','fill','colorChannel1','none','MCP\x20Disconnected','OnLineIcon','Inject','univer-text-green-500','mcpStatus.connecting','UniverIcon','MCP:\x20Invalid\x20API\x20Key','errorMessage','\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','univer-rounded\x20univer-border\x20univer-bg-white\x20univer-px-2\x20univer-py-1\x20univer-font-mono\x20univer-text-xs\x20univer-text-gray-700','MessageType','点击连接\x20MCP','mcpConfig.apiApplyInfo.title','mcpConfig.connectionError.missingApiKey','HelpSingle','DISCONNECTED','API\x20key\x20is\x20required','API\x20密钥不能为空','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','univerjs-icon\x20univerjs-icon-','保存中...','_connectionController','mcpConfig.save','MCPUIMenuController','apiKey','Connected','tag','univer-min-w-0\x20univer-flex-1','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','mcpConfig.connectionInfo','API\x20密钥长度至少需要\x2010\x20位','off','未连接','div','MCP\x20Unknown\x20Status','MCP\x20Connected','CheckMarkIcon','配置\x20MCP\x20使用\x20AI\x20操作电子表格','INVALID_API_KEY','univer-flex\x20univer-gap-3','univer.ai','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','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','_createConfigPanelComponent','Server\x20Endpoint','Univer\x20AI\x20Console','BuiltInUIPart','_uiPartsService','您的\x20API\x20密钥安全存储在本地存储中','useObservable','disposeWithMe','_localStorageService','call','jsx','mcpConfig.connectionError.networkError','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer-font-medium','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','_menuManagerService','mcpConfig.apiKeyHint','mcpConfig.connectionError.maxRetriesExceeded','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','保存配置','univer-flex\x20univer-items-center\x20univer-gap-2','MAX_RETRIES_EXCEEDED','concat','idSuffix','mcpConfig.connectionStatus.connecting','url(#$1','onStarting','UniverProMcpUi','extend','IMenuManagerService','showConfigPanel','clsx','symbol','mcpConfig.connectionStatus.disconnected','forEach','LocaleService','_config','univer-mb-1\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','MCPConfigPanel','mcpConfig.connectionStatus.retrying','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','univer-text-red-500','Close','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','MCP:\x20网络错误','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','mcpStatus.disconnected','string','connectInjector','_blank','mcpStatus.unknown','mcpConfig.title','prototype','359412xhtPwh','Module','help-single','close-small-single','mcpConfig.configSaved','validateApiKey','univer-flex\x20univer-items-start\x20univer-gap-2','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','MCPConnectionController','getOwnPropertyDescriptor','mcp-config-dialog','attrs','object','Disposable','_initStatusComponent','什么是\x20API\x20密钥?','_mcpConnectionController','useDependency','isValid','OffLineIcon','MCPConnectionUIController','MCPConfigUIController','react','UniverMCPUIPlugin','连接失败','DependentOn','MCP\x20连接失败','xlink:href','Univer\x20AI\x20控制台','className','univer-text-sm\x20univer-font-medium','mcpConfig.validation.apiKeyTooShort','forwardRef','_loading$','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','_validateConfig','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','服务器端点','Session\x20ID','off-line-icon','ILocalStorageService','MISSING_API_KEY','_loadStoredApiKey','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','BUTTON','_localeService','hasOwnProperty','mcpConfig.validation.invalidApiKey','exports','setConfig','0\x200\x2017\x2017','@univerjs/design','add','register','svg','React','M5.21243\x2012.287L11.8791\x205.62036','default','pluginName','MCP:\x20缺少\x20API\x20密钥','defIds','配置更改将立即生效','3821859sBTxBN','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','mcpConfig.connectionError.sessionOccupied','@univerjs/ui','get','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','round','RibbonStartGroup','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','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MenuIcon','toStringTag','off-line-icon_clip0_910_343','UniverMCPPlugin','ComponentManager','replace','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','label','_initializeMenus','on-line-icon','UniverCore','length','\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','Configuration\x20saved\x20successfully','MCP\x20已断开','Connecting...','启用身份验证以获得安全连接','19610860bWqWby','OTHERS','API\x20密钥','MCP\x20已连接','最大重试次数','assign','MCP\x20连接中...','connectionError$','24oXrJbh','univer-bg-red-500','getOwnPropertySymbols','substring','IConfigService','univer-flex\x20univer-flex-wrap\x20univer-gap-2','merge','HEADER_MENU','univer-space-y-5','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','3WmvqRR','useState','subscribeConfigValue$','723821SRNXgv','M5.21243\x205.62036L11.8791\x2012.287','mcpConfig.apiApplyInfo.description','MCP:\x20Max\x20Retries\x20Exceeded','mask','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','API\x20Key','includes','code','RETRYING','Button','Click\x20to\x20configure\x20MCP','getCurrentConfig','next','defineProperty','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','random','MenuItemType','启用身份验证','function','您的\x20API\x20密钥将在此浏览器中本地存储','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','4339240CMBvAF','showDeveloperTools','noopener\x20noreferrer','getConfig','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP_PLUGIN_CONFIG_KEY','_componentManager','UniverProMcp','MCP\x20Connection\x20Failed','defs','会话ID','univer-flex-shrink-0\x20univer-text-blue-500','mcpConfig.apiKeyPlaceholder','Error','Save\x20Configuration','Failed\x20to\x20save\x20configuration','mcpConfig.note2','IDialogService','http://www.w3.org/2000/svg','univer-bg-blue-500','path','children','12iDzxDI','IUIPartsService','Success','NETWORK_ERROR','univer-bg-gray-500','11upoyTX','6276888RgweeI','MCP\x20Retrying...','Enter\x20your\x20API\x20key','_handleConfigure','url(#off-line-icon_clip0_910_343)','mcpConfig.sessionId','evenodd','_initializeCommands','trim','_dialogService','entries','univer-mr-2\x20univer-flex\x20univer-text-xl','displayName','text','currentColor','MCP\x20Configuration','mcpConfig.connectionStatus.failed','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','\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','mcpConfig.validation.apiKeyRequired','SESSION_ID_OCCUPIED','_configService','mcpStatus.missingApiKey','react/jsx-runtime','连接中...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Max\x20Retries','mcp-ui.command.openConfigPanel','MCP:\x20会话被占用','univer.plus','@univerjs/core','indexOf','univer-flex-shrink-0\x20univer-text-red-500','univer-flex-1','Injector','univer-text-gray-400','\x20-\x20','MCPConnectionError','useCallback','_mcpCoreConfig$','1em','univer-flex\x20univer-cursor-pointer\x20univer-items-center','_initConfigSync','M0\x200H16V16H0z','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Get\x20your\x20API\x20key\x20in\x20seconds','warn','mcpServerUrl','check-mark-icon','use','zhCN','icon','univer-text-sm\x20univer-text-gray-500','univer-space-y-3','What\x20is\x20API\x20Key?','Saving...','createElement','_handleConfigSave','rxjs','Input','mcp.apiKey'];_0x4723=function(){return _0x3c5973;};return _0x4723();}
|
|
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();}
|