@univerjs-pro/mcp-ui 0.10.8 → 0.10.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +8 -8
package/lib/cjs/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2eb76c=_0x1e14;(function(_0xbd7b26,_0x250c23){const _0x17d848=_0x1e14,_0x38bb7e=_0xbd7b26();while(!![]){try{const _0x34429c=-parseInt(_0x17d848(0x14e))/0x1+-parseInt(_0x17d848(0x136))/0x2*(parseInt(_0x17d848(0x168))/0x3)+-parseInt(_0x17d848(0x162))/0x4*(parseInt(_0x17d848(0x161))/0x5)+parseInt(_0x17d848(0x14d))/0x6+-parseInt(_0x17d848(0x143))/0x7+-parseInt(_0x17d848(0x142))/0x8+parseInt(_0x17d848(0x145))/0x9;if(_0x34429c===_0x250c23)break;else _0x38bb7e['push'](_0x38bb7e['shift']());}catch(_0x2dc0e4){_0x38bb7e['push'](_0x38bb7e['shift']());}}}(_0x43c5,0x98e7d));function _0x43c5(){const _0x47f93f=['Failed\x20to\x20save\x20configuration','MCP\x20Client\x20Configuration','Enable\x20authentication\x20for\x20secure\x20connections','Connected','Enter\x20your\x20API\x20key','Enable\x20Authentication','MCP:\x20Session\x20Occupied','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Retrying...','Disconnected','4118664VkqsNO','4534019hhDqIV','Max\x20Retries','30743424OfuitV','Save\x20Configuration','Click\x20to\x20configure\x20MCP','MCP\x20Connected','MCP\x20Unknown\x20Status','Configuration\x20Steps:','exports','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','2975526sarBph','879377AKsEdT','Configuration\x20Parameters:','Univer\x20AI\x20Console','MCP\x20Disconnected','API\x20key\x20is\x20required\x20to\x20connect','Connecting...','Get\x20your\x20API\x20key\x20in\x20seconds','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20Key','Session\x20ID','Copy\x20the\x20JSON\x20configuration\x20below','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','What\x20is\x20API\x20Key?','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Configuration\x20saved\x20successfully','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Invalid\x20API\x20Key','5617835SjKilC','4JKrKtm','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','API\x20key\x20is\x20required','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Connection\x20Failed','3WXnRbv','MCP\x20Connecting...','Invalid\x20configuration','MCP\x20Retrying...','240124gfNcbH'];_0x43c5=function(){return _0x47f93f;};return _0x43c5();}function _0x1e14(_0x1a108d,_0x2bc00a){const _0x43c594=_0x43c5();return _0x1e14=function(_0x1e1454,_0x57e947){_0x1e1454=_0x1e1454-0x135;let _0x9a4c9e=_0x43c594[_0x1e1454];return _0x9a4c9e;},_0x1e14(_0x1a108d,_0x2bc00a);}const e={'mcpStatus':{'disconnected':_0x2eb76c(0x151),'connecting':_0x2eb76c(0x169),'connected':_0x2eb76c(0x148),'failed':_0x2eb76c(0x167),'retrying':_0x2eb76c(0x135),'unknown':_0x2eb76c(0x149),'missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':_0x2eb76c(0x160),'sessionOccupied':_0x2eb76c(0x13d),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x2eb76c(0x147)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x2eb76c(0x14c),'apiKey':_0x2eb76c(0x157),'apiKeyPlaceholder':_0x2eb76c(0x13b),'apiKeyHint':_0x2eb76c(0x15f),'enableAuth':_0x2eb76c(0x13c),'enableAuthHint':_0x2eb76c(0x139),'connectionInfo':_0x2eb76c(0x138),'mcpClientConfig':_0x2eb76c(0x138),'configInstructions':_0x2eb76c(0x15d),'configStepTitle':_0x2eb76c(0x14a),'configStep1':_0x2eb76c(0x159),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x2eb76c(0x15b),'sessionId':_0x2eb76c(0x158),'sessionIdDescription':_0x2eb76c(0x165),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x2eb76c(0x14f),'maxRetries':_0x2eb76c(0x144),'save':_0x2eb76c(0x146),'saving':'Saving...','note1':_0x2eb76c(0x156),'note2':_0x2eb76c(0x155),'configSaved':_0x2eb76c(0x15e),'configError':_0x2eb76c(0x137),'apiApplyInfo':{'title':_0x2eb76c(0x15c),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x2eb76c(0x150),'getStarted':_0x2eb76c(0x154)},'validation':{'apiKeyRequired':_0x2eb76c(0x164),'apiKeyTooShort':_0x2eb76c(0x166),'invalidConfig':_0x2eb76c(0x16a),'invalidApiKey':_0x2eb76c(0x13e)},'connectionStatus':{'disconnected':_0x2eb76c(0x141),'connecting':_0x2eb76c(0x153),'connected':_0x2eb76c(0x13a),'failed':'Connection\x20Failed','retrying':_0x2eb76c(0x140)},'connectionError':{'missingApiKey':_0x2eb76c(0x152),'invalidApiKey':_0x2eb76c(0x163),'sessionOccupied':'Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','networkError':_0x2eb76c(0x15a),'maxRetriesExceeded':_0x2eb76c(0x13f)}}},n=e;module[_0x2eb76c(0x14b)]=n;
|
package/lib/cjs/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x4733(_0x39aaa6,_0x2e46d7){const _0xd0dc96=_0xd0dc();return _0x4733=function(_0x47335c,_0x2940cb){_0x47335c=_0x47335c-0x123;let _0x39b8b7=_0xd0dc96[_0x47335c];return _0x39b8b7;},_0x4733(_0x39aaa6,_0x2e46d7);}const _0x51f759=_0x4733;(function(_0x26f32c,_0x293e4e){const _0x1a1dbf=_0x4733,_0x27a39a=_0x26f32c();while(!![]){try{const _0x807357=-parseInt(_0x1a1dbf(0x148))/0x1*(-parseInt(_0x1a1dbf(0x130))/0x2)+parseInt(_0x1a1dbf(0x132))/0x3*(parseInt(_0x1a1dbf(0x150))/0x4)+-parseInt(_0x1a1dbf(0x139))/0x5+-parseInt(_0x1a1dbf(0x14a))/0x6*(-parseInt(_0x1a1dbf(0x13d))/0x7)+-parseInt(_0x1a1dbf(0x14c))/0x8+parseInt(_0x1a1dbf(0x136))/0x9+-parseInt(_0x1a1dbf(0x142))/0xa;if(_0x807357===_0x293e4e)break;else _0x27a39a['push'](_0x27a39a['shift']());}catch(_0x276c34){_0x27a39a['push'](_0x27a39a['shift']());}}}(_0xd0dc,0xbf4e0));function _0xd0dc(){const _0x4ddcf3=['Saving...','Click\x20to\x20connect\x20MCP','What\x20is\x20API\x20Key?','31651340DWKOJO','API\x20key\x20is\x20required','MCP\x20Unknown\x20Status','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Connection\x20Failed','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','1tvHuvK','Enable\x20Authentication','85164lAQrVT','exports','79208hyetHI','Save\x20Configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Client\x20Configuration','28mioqZY','MCP\x20Connection\x20Failed','Failed\x20to\x20save\x20configuration','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Connected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Copy\x20the\x20JSON\x20configuration\x20below','Session\x20ID','Univer\x20AI\x20Console','MCP:\x20API\x20Key\x20Missing','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Network\x20Error','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Enter\x20your\x20API\x20key','MCP:\x20Invalid\x20API\x20Key','Max\x20Retries','Disconnected','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Click\x20to\x20configure\x20MCP','2850818xJUzJR','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','407457TagJlP','Invalid\x20configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Retrying...','8090109hobLUy','MCP\x20Configuration','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','769350mRFRhY','Configuration\x20Steps:','MCP\x20Disconnected','Connecting...','413SirvIi','API\x20Key'];_0xd0dc=function(){return _0x4ddcf3;};return _0xd0dc();}const e={'mcpStatus':{'disconnected':_0x51f759(0x13b),'connecting':'MCP\x20Connecting...','connected':_0x51f759(0x154),'failed':_0x51f759(0x151),'retrying':_0x51f759(0x135),'unknown':_0x51f759(0x144),'missingApiKey':_0x51f759(0x124),'invalidApiKey':_0x51f759(0x12b),'sessionOccupied':'MCP:\x20Session\x20Occupied','networkError':_0x51f759(0x127),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x51f759(0x140),'clickToConfigure':_0x51f759(0x12f)},'mcpConfig':{'title':_0x51f759(0x137),'description':_0x51f759(0x134),'apiKey':_0x51f759(0x13e),'apiKeyPlaceholder':_0x51f759(0x12a),'apiKeyHint':_0x51f759(0x131),'enableAuth':_0x51f759(0x149),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x51f759(0x14f),'mcpClientConfig':_0x51f759(0x14f),'configInstructions':_0x51f759(0x147),'configStepTitle':_0x51f759(0x13a),'configStep1':_0x51f759(0x157),'configStep2':_0x51f759(0x155),'configStep3':_0x51f759(0x14e),'sessionId':_0x51f759(0x158),'sessionIdDescription':_0x51f759(0x12e),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x51f759(0x12c),'save':_0x51f759(0x14d),'saving':_0x51f759(0x13f),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x51f759(0x152),'apiApplyInfo':{'title':_0x51f759(0x141),'description':_0x51f759(0x125),'univerAiLabel':_0x51f759(0x123),'getStarted':_0x51f759(0x153)},'validation':{'apiKeyRequired':_0x51f759(0x143),'apiKeyTooShort':_0x51f759(0x145),'invalidConfig':_0x51f759(0x133),'invalidApiKey':_0x51f759(0x128)},'connectionStatus':{'disconnected':_0x51f759(0x12d),'connecting':_0x51f759(0x13c),'connected':'Connected','failed':_0x51f759(0x146),'retrying':'Retrying...'},'connectionError':{'missingApiKey':'API\x20key\x20is\x20required\x20to\x20connect','invalidApiKey':_0x51f759(0x138),'sessionOccupied':_0x51f759(0x129),'networkError':_0x51f759(0x126),'maxRetriesExceeded':_0x51f759(0x156)}}},n=e;module[_0x51f759(0x14b)]=n;
|
package/lib/cjs/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x360d00=_0x26a0;(function(_0x5d78ac,_0x1d7406){const _0x234fb2=_0x26a0,_0x52076a=_0x5d78ac();while(!![]){try{const _0x116f24=parseInt(_0x234fb2(0x18d))/0x1*(-parseInt(_0x234fb2(0x191))/0x2)+parseInt(_0x234fb2(0x171))/0x3*(-parseInt(_0x234fb2(0x189))/0x4)+parseInt(_0x234fb2(0x19b))/0x5*(parseInt(_0x234fb2(0x192))/0x6)+-parseInt(_0x234fb2(0x18a))/0x7+-parseInt(_0x234fb2(0x167))/0x8+-parseInt(_0x234fb2(0x194))/0x9*(-parseInt(_0x234fb2(0x172))/0xa)+parseInt(_0x234fb2(0x16b))/0xb;if(_0x116f24===_0x1d7406)break;else _0x52076a['push'](_0x52076a['shift']());}catch(_0x3df683){_0x52076a['push'](_0x52076a['shift']());}}}(_0x1775,0xe53a7));const e={'mcpStatus':{'disconnected':_0x360d00(0x19d),'connecting':'MCP\x20Connecting...','connected':_0x360d00(0x184),'failed':_0x360d00(0x18e),'retrying':'MCP\x20Retrying...','unknown':_0x360d00(0x178),'missingApiKey':_0x360d00(0x198),'invalidApiKey':_0x360d00(0x176),'sessionOccupied':_0x360d00(0x17b),'networkError':_0x360d00(0x195),'maxRetriesExceeded':_0x360d00(0x16e),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x360d00(0x174)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x360d00(0x173),'apiKey':_0x360d00(0x196),'apiKeyPlaceholder':_0x360d00(0x188),'apiKeyHint':_0x360d00(0x183),'enableAuth':_0x360d00(0x19a),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x360d00(0x199),'mcpClientConfig':_0x360d00(0x199),'configInstructions':_0x360d00(0x197),'configStepTitle':_0x360d00(0x18c),'configStep1':_0x360d00(0x17a),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x360d00(0x175),'sessionId':_0x360d00(0x19e),'sessionIdDescription':_0x360d00(0x17f),'authorizationDescription':_0x360d00(0x17e),'configParameters':_0x360d00(0x182),'maxRetries':_0x360d00(0x177),'save':_0x360d00(0x193),'saving':_0x360d00(0x19c),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x360d00(0x185),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x360d00(0x168),'description':_0x360d00(0x181),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x360d00(0x16d)},'validation':{'apiKeyRequired':_0x360d00(0x169),'apiKeyTooShort':_0x360d00(0x16c),'invalidConfig':_0x360d00(0x18b),'invalidApiKey':_0x360d00(0x190)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x360d00(0x180),'connected':_0x360d00(0x16f),'failed':_0x360d00(0x18f),'retrying':_0x360d00(0x187)},'connectionError':{'missingApiKey':_0x360d00(0x17c),'invalidApiKey':_0x360d00(0x186),'sessionOccupied':_0x360d00(0x17d),'networkError':_0x360d00(0x170),'maxRetriesExceeded':_0x360d00(0x179)}}},n=e;function _0x26a0(_0x130362,_0x190ad5){const _0x1775b8=_0x1775();return _0x26a0=function(_0x26a04d,_0x5a7ebd){_0x26a04d=_0x26a04d-0x167;let _0x5b940d=_0x1775b8[_0x26a04d];return _0x5b940d;},_0x26a0(_0x130362,_0x190ad5);}module[_0x360d00(0x16a)]=n;function _0x1775(){const _0x988e2f=['Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20API\x20Key\x20Missing','MCP\x20Client\x20Configuration','Enable\x20Authentication','5eHXKAN','Saving...','MCP\x20Disconnected','Session\x20ID','14850112GFbHYS','What\x20is\x20API\x20Key?','API\x20key\x20is\x20required','exports','37084553ggZjTh','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Get\x20your\x20API\x20key\x20in\x20seconds','MCP:\x20Max\x20Retries\x20Exceeded','Connected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','3lJMlXF','890AwStOr','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Click\x20to\x20configure\x20MCP','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Invalid\x20API\x20Key','Max\x20Retries','MCP\x20Unknown\x20Status','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Copy\x20the\x20JSON\x20configuration\x20below','MCP:\x20Session\x20Occupied','API\x20key\x20is\x20required\x20to\x20connect','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','API\x20key\x20with\x20Bearer\x20prefix.','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Connecting...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configuration\x20Parameters:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Connected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Retrying...','Enter\x20your\x20API\x20key','1126952wUWzVf','1883889bVynRH','Invalid\x20configuration','Configuration\x20Steps:','1279jNPojx','MCP\x20Connection\x20Failed','Connection\x20Failed','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','792oFhMkJ','2642682BhQMue','Save\x20Configuration','4122NEqoBz','MCP:\x20Network\x20Error','API\x20Key'];_0x1775=function(){return _0x988e2f;};return _0x1775();}
|
package/lib/cjs/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x1ec1(_0x55b513,_0x2826ba){const _0x2a9342=_0x2a93();return _0x1ec1=function(_0x1ec1e3,_0x575022){_0x1ec1e3=_0x1ec1e3-0x1f1;let _0x2b4179=_0x2a9342[_0x1ec1e3];return _0x2b4179;},_0x1ec1(_0x55b513,_0x2826ba);}const _0x421073=_0x1ec1;(function(_0x3bf15e,_0x421c41){const _0x53b9b1=_0x1ec1,_0x510882=_0x3bf15e();while(!![]){try{const _0x18aa13=parseInt(_0x53b9b1(0x204))/0x1+parseInt(_0x53b9b1(0x1f1))/0x2*(parseInt(_0x53b9b1(0x1f3))/0x3)+parseInt(_0x53b9b1(0x1fc))/0x4*(parseInt(_0x53b9b1(0x200))/0x5)+parseInt(_0x53b9b1(0x20e))/0x6*(-parseInt(_0x53b9b1(0x216))/0x7)+parseInt(_0x53b9b1(0x1f4))/0x8+parseInt(_0x53b9b1(0x221))/0x9+parseInt(_0x53b9b1(0x21e))/0xa*(-parseInt(_0x53b9b1(0x1f7))/0xb);if(_0x18aa13===_0x421c41)break;else _0x510882['push'](_0x510882['shift']());}catch(_0x4637b9){_0x510882['push'](_0x510882['shift']());}}}(_0x2a93,0x1f45e));function _0x2a93(){const _0x265de0=['API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','416297qmFWIv','MCP\x20配置','MCP\x20重连中...','配置无效','点击配置\x20MCP','您的\x20API\x20密钥安全存储在本地存储中','带有\x20Bearer\x20前缀的\x20API\x20密钥。','连接中...','10NjHKbN','几秒钟内获取您的\x20API\x20密钥','MCP\x20连接中...','435132KYjwml','API\x20密钥无效,请检查您的密钥后重试','启用身份验证','请输入您的\x20API\x20密钥','最大重试次数','会话当前被占用,请稍后再试','4328NKPhoF','点击连接\x20MCP','3cRySPA','1346712vFGMLv','连接失败','MCP:\x20网络错误','3695989dPaNwk','exports','配置保存失败','网络连接错误,请检查您的网络连接','API\x20密钥无效,请检查密钥是否正确','5596vHjYrl','复制以下\x20JSON\x20配置','需要\x20API\x20密钥才能连接','启用身份验证以获得安全连接','830GAbwUg','MCP:\x20会话被占用','超出最大重试次数,请稍后再试','Univer\x20AI\x20控制台','72479dcxeJB','MCP\x20已连接','API\x20密钥不能为空','保存中...','配置参数:','API\x20密钥','配置更改将立即生效','MCP\x20已断开','已连接','会话ID','6JxKNkC','配置保存成功','MCP\x20客户端配置','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','重启您的\x20MCP\x20客户端以使配置生效','配置\x20MCP\x20使用\x20AI\x20操作电子表格','MCP:\x20缺少\x20API\x20密钥'];_0x2a93=function(){return _0x265de0;};return _0x2a93();}const e={'mcpStatus':{'disconnected':_0x421073(0x20b),'connecting':_0x421073(0x220),'connected':_0x421073(0x205),'failed':'MCP\x20连接失败','retrying':_0x421073(0x218),'unknown':'MCP\x20状态未知','missingApiKey':_0x421073(0x214),'invalidApiKey':'MCP:\x20无效的\x20API\x20密钥','sessionOccupied':_0x421073(0x201),'networkError':_0x421073(0x1f6),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x421073(0x1f2),'clickToConfigure':_0x421073(0x21a)},'mcpConfig':{'title':_0x421073(0x217),'description':_0x421073(0x213),'apiKey':_0x421073(0x209),'apiKeyPlaceholder':_0x421073(0x224),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x421073(0x223),'enableAuthHint':_0x421073(0x1ff),'connectionInfo':_0x421073(0x210),'mcpClientConfig':_0x421073(0x210),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':'配置步骤:','configStep1':_0x421073(0x1fd),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x421073(0x212),'sessionId':_0x421073(0x20d),'sessionIdDescription':_0x421073(0x211),'authorizationDescription':_0x421073(0x21c),'configParameters':_0x421073(0x208),'maxRetries':_0x421073(0x225),'save':'保存配置','saving':_0x421073(0x207),'note1':_0x421073(0x20a),'note2':_0x421073(0x21b),'configSaved':_0x421073(0x20f),'configError':_0x421073(0x1f9),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x421073(0x215),'univerAiLabel':_0x421073(0x203),'getStarted':_0x421073(0x21f)},'validation':{'apiKeyRequired':_0x421073(0x206),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x421073(0x219),'invalidApiKey':_0x421073(0x1fb)},'connectionStatus':{'disconnected':'未连接','connecting':_0x421073(0x21d),'connected':_0x421073(0x20c),'failed':_0x421073(0x1f5),'retrying':'重连中...'},'connectionError':{'missingApiKey':_0x421073(0x1fe),'invalidApiKey':_0x421073(0x222),'sessionOccupied':_0x421073(0x226),'networkError':_0x421073(0x1fa),'maxRetriesExceeded':_0x421073(0x202)}}};module[_0x421073(0x1f8)]=e;
|
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x27f1(_0x5f10f3,_0x562f5f){const _0x8121ea=_0x8121();return _0x27f1=function(_0x27f168,_0x38ea3f){_0x27f168=_0x27f168-0x87;let _0x1fe36d=_0x8121ea[_0x27f168];return _0x1fe36d;},_0x27f1(_0x5f10f3,_0x562f5f);}const _0x2f2dd4=_0x27f1;(function(_0x2e2a72,_0x22f21e){const _0x4a8f72=_0x27f1,_0x1d2197=_0x2e2a72();while(!![]){try{const _0x9e7ca5=-parseInt(_0x4a8f72(0xa4))/0x1+-parseInt(_0x4a8f72(0xb1))/0x2+parseInt(_0x4a8f72(0xad))/0x3+parseInt(_0x4a8f72(0xb2))/0x4*(-parseInt(_0x4a8f72(0x89))/0x5)+-parseInt(_0x4a8f72(0xa7))/0x6*(-parseInt(_0x4a8f72(0xb3))/0x7)+-parseInt(_0x4a8f72(0x91))/0x8+parseInt(_0x4a8f72(0x94))/0x9;if(_0x9e7ca5===_0x22f21e)break;else _0x1d2197['push'](_0x1d2197['shift']());}catch(_0x35f323){_0x1d2197['push'](_0x1d2197['shift']());}}}(_0x8121,0x64734));function _0x8121(){const _0xeaa0b2=['API\x20key\x20is\x20required\x20to\x20connect','Saving...','18485946yOJLim','MCP\x20Unknown\x20Status','MCP\x20Client\x20Configuration','Invalid\x20configuration','Disconnected','Copy\x20the\x20JSON\x20configuration\x20below','Enable\x20Authentication','API\x20key\x20with\x20Bearer\x20prefix.','MCP:\x20Invalid\x20API\x20Key','Configuration\x20Parameters:','exports','MCP\x20Connected','MCP:\x20Session\x20Occupied','Univer\x20AI\x20Console','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\x20Connecting...','405343JOkjBq','Retrying...','Get\x20your\x20API\x20key\x20in\x20seconds','397206uMvkDV','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','What\x20is\x20API\x20Key?','MCP\x20Disconnected','MCP:\x20Network\x20Error','135477SWedcA','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20API\x20Key\x20Missing','MCP\x20Connection\x20Failed','1079576hERviy','435104yzDdIB','21YPqlfi','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Enter\x20your\x20API\x20key','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20Key','35zXeWyE','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Click\x20to\x20configure\x20MCP','Save\x20Configuration','Connection\x20Failed','Max\x20Retries','1437992vassqR'];_0x8121=function(){return _0xeaa0b2;};return _0x8121();}const e={'mcpStatus':{'disconnected':_0x2f2dd4(0xab),'connecting':_0x2f2dd4(0xa3),'connected':_0x2f2dd4(0x9f),'failed':_0x2f2dd4(0xb0),'retrying':'MCP\x20Retrying...','unknown':_0x2f2dd4(0x95),'missingApiKey':_0x2f2dd4(0xaf),'invalidApiKey':_0x2f2dd4(0x9c),'sessionOccupied':_0x2f2dd4(0xa0),'networkError':_0x2f2dd4(0xac),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x2f2dd4(0x8d)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x2f2dd4(0xa8),'apiKey':_0x2f2dd4(0x88),'apiKeyPlaceholder':_0x2f2dd4(0xb5),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x2f2dd4(0x9a),'enableAuthHint':_0x2f2dd4(0xae),'connectionInfo':_0x2f2dd4(0x96),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x2f2dd4(0x87),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x2f2dd4(0x99),'configStep2':_0x2f2dd4(0xb4),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x2f2dd4(0x8c),'authorizationDescription':_0x2f2dd4(0x9b),'configParameters':_0x2f2dd4(0x9d),'maxRetries':_0x2f2dd4(0x90),'save':_0x2f2dd4(0x8e),'saving':_0x2f2dd4(0x93),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x2f2dd4(0xaa),'description':_0x2f2dd4(0xa2),'univerAiLabel':_0x2f2dd4(0xa1),'getStarted':_0x2f2dd4(0xa6)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x2f2dd4(0x8a),'invalidConfig':_0x2f2dd4(0x97),'invalidApiKey':_0x2f2dd4(0x8b)},'connectionStatus':{'disconnected':_0x2f2dd4(0x98),'connecting':'Connecting...','connected':'Connected','failed':_0x2f2dd4(0x8f),'retrying':_0x2f2dd4(0xa5)},'connectionError':{'missingApiKey':_0x2f2dd4(0x92),'invalidApiKey':_0x2f2dd4(0xa9),'sessionOccupied':'Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x2f2dd4(0x9e)]=n;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x22d713=_0x4df3;(function(_0x3245d5,_0x2332ac){var _0x50ed07=_0x4df3,_0x4c5688=_0x3245d5();while(!![]){try{var _0x220600=parseInt(_0x50ed07(0x1f1))/0x1+parseInt(_0x50ed07(0x1a0))/0x2+-parseInt(_0x50ed07(0x11b))/0x3*(-parseInt(_0x50ed07(0x1d4))/0x4)+parseInt(_0x50ed07(0x23e))/0x5*(-parseInt(_0x50ed07(0x116))/0x6)+-parseInt(_0x50ed07(0x185))/0x7*(parseInt(_0x50ed07(0x13a))/0x8)+parseInt(_0x50ed07(0x167))/0x9*(-parseInt(_0x50ed07(0x218))/0xa)+-parseInt(_0x50ed07(0x1ac))/0xb*(-parseInt(_0x50ed07(0x231))/0xc);if(_0x220600===_0x2332ac)break;else _0x4c5688['push'](_0x4c5688['shift']());}catch(_0x200ebd){_0x4c5688['push'](_0x4c5688['shift']());}}}(_0x5382,0xad607));var Ee=Object[_0x22d713(0x102)],we=(_0x405915,_0x402560,_0x5b3ebf)=>_0x402560 in _0x405915?Ee(_0x405915,_0x402560,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5b3ebf}):_0x405915[_0x402560]=_0x5b3ebf,x=(_0x352cd1,_0x58258f,_0x6f86fd)=>we(_0x352cd1,typeof _0x58258f!='symbol'?_0x58258f+'':_0x58258f,_0x6f86fd);import{LocaleService as _0x309e63,Inject as _0x5486a6,Injector as _0x5d75c5,IConfigService as _0x16026c,ILocalStorageService as _0x258048,ILogService as _0xce7fb5,Disposable as _0x17e4fc,CommandType as _0xdb8b8d,ICommandService as _0xf27dd3,DependentOn as _0x390f57,Plugin as _0x108c6d,merge as _0x283cca}from'@univerjs/core';import{jsxs as _0x2f1d56,jsx as _0x332e26}from'react/jsx-runtime';import{MCPConnectionStatus as _0x16277f,MCPConnectionError as _0x440842,MCPConnectionController as _0x2ef2f2,MCP_PLUGIN_CONFIG_KEY as _0x1b4990,UniverMCPPlugin as _0x980bdf}from'@univerjs-pro/mcp';import{Input as _0x224388,Button as _0x30e2ec,MessageType as _0x56cfda,Tooltip as _0x635f0f,clsx as _0x488d88}from'@univerjs/design';import{useDependency as _0x1f62a6,useObservable as _0x2d20be,IUIPartsService as _0x54649f,IDialogService as _0x15efba,IMessageService as _0x88141c,ComponentManager as _0x5a35e1,connectInjector as _0x3bce22,BuiltInUIPart as _0x4a1c81,MenuItemType as _0x552e1b,RibbonStartGroup as _0x107585,IMenuManagerService as _0x2d5339}from'@univerjs/ui';import{BehaviorSubject as _0x563fed}from'rxjs';import{forwardRef as _0x58156b,useRef as _0x22370a,createElement as _0x2cf232,useState as _0x524203,useCallback as _0x5f29f0}from'react';import{ISocketService as _0x36dc6d,WebSocketService as _0x3278f7}from'@univerjs/network';var g=function(){var _0x1d463e=_0x22d713;return g=Object[_0x1d463e(0x153)]||function(_0x42a601){var _0x25dd6f=_0x1d463e;for(var _0x1881e1,_0x524530=0x1,_0x402842=arguments[_0x25dd6f(0x149)];_0x524530<_0x402842;_0x524530++){_0x1881e1=arguments[_0x524530];for(var _0x2d9b02 in _0x1881e1)Object[_0x25dd6f(0x1b1)][_0x25dd6f(0x11d)][_0x25dd6f(0x186)](_0x1881e1,_0x2d9b02)&&(_0x42a601[_0x2d9b02]=_0x1881e1[_0x2d9b02]);}return _0x42a601;},g[_0x1d463e(0x20a)](this,arguments);},We=function(_0x189567,_0x2a6332){var _0x3f08a6=_0x22d713,_0x21750a={};for(var _0x355b4c in _0x189567)Object[_0x3f08a6(0x1b1)][_0x3f08a6(0x11d)][_0x3f08a6(0x186)](_0x189567,_0x355b4c)&&_0x2a6332[_0x3f08a6(0x1a4)](_0x355b4c)<0x0&&(_0x21750a[_0x355b4c]=_0x189567[_0x355b4c]);if(_0x189567!=null&&typeof Object[_0x3f08a6(0x20b)]==_0x3f08a6(0x20e)){for(var _0x264f0e=0x0,_0x355b4c=Object[_0x3f08a6(0x20b)](_0x189567);_0x264f0e<_0x355b4c[_0x3f08a6(0x149)];_0x264f0e++)_0x2a6332[_0x3f08a6(0x1a4)](_0x355b4c[_0x264f0e])<0x0&&Object[_0x3f08a6(0x1b1)]['propertyIsEnumerable']['call'](_0x189567,_0x355b4c[_0x264f0e])&&(_0x21750a[_0x355b4c[_0x264f0e]]=_0x189567[_0x355b4c[_0x264f0e]]);}return _0x21750a;},b=_0x58156b(function(_0xa1ac29,_0x512c09){var _0x46652f=_0x22d713,_0xbe043d=_0xa1ac29[_0x46652f(0x141)],_0x3aeb1b=_0xa1ac29['id'],_0x3a1c8a=_0xa1ac29[_0x46652f(0x19c)],_0x3f8950=_0xa1ac29['extend'],_0x3871df=We(_0xa1ac29,[_0x46652f(0x141),'id','className',_0x46652f(0x16c)]),_0x8672ea='univerjs-icon\x20univerjs-icon-'[_0x46652f(0x166)](_0x3aeb1b,'\x20')[_0x46652f(0x166)](_0x3a1c8a||'')[_0x46652f(0x1c7)](),_0x1e1352=_0x22370a('_'[_0x46652f(0x166)](Xe()));return le(_0xbe043d,''[_0x46652f(0x166)](_0x3aeb1b),{'defIds':_0xbe043d['defIds'],'idSuffix':_0x1e1352[_0x46652f(0x1b7)]},g({'ref':_0x512c09,'className':_0x8672ea},_0x3871df),_0x3f8950);});function le(_0x23908a,_0x4cc0c3,_0x133965,_0x37a1b0,_0x8133ad){var _0x1b9f0c=_0x22d713;return _0x2cf232(_0x23908a[_0x1b9f0c(0x1ec)],g(g({'key':_0x4cc0c3},qe(_0x23908a,_0x133965,_0x8133ad)),_0x37a1b0),(Ze(_0x23908a,_0x133965)[_0x1b9f0c(0x188)]||[])[_0x1b9f0c(0xfc)](function(_0x5e8a05,_0x39a2c3){var _0x42f551=_0x1b9f0c;return le(_0x5e8a05,''[_0x42f551(0x166)](_0x4cc0c3,'-')['concat'](_0x23908a['tag'],'-')['concat'](_0x39a2c3),_0x133965,void 0x0,_0x8133ad);}));}function qe(_0x8800bf,_0x481c54,_0x5cd0ea){var _0x238d76=_0x22d713,_0x2f0053=g({},_0x8800bf[_0x238d76(0x1c6)]);_0x5cd0ea!=null&&_0x5cd0ea[_0x238d76(0x1d3)]&&_0x2f0053[_0x238d76(0x244)]===_0x238d76(0x1d3)&&(_0x2f0053[_0x238d76(0x244)]=_0x5cd0ea['colorChannel1']),_0x8800bf[_0x238d76(0x1ec)]===_0x238d76(0xeb)&&_0x2f0053['id']&&(_0x2f0053['id']=_0x2f0053['id']+_0x481c54[_0x238d76(0x12a)]),Object[_0x238d76(0x1df)](_0x2f0053)[_0x238d76(0x1bf)](function(_0x279452){var _0x3b54bb=_0x238d76,_0x89ae66=_0x279452[0x0],_0x50aeea=_0x279452[0x1];_0x89ae66===_0x3b54bb(0xeb)&&typeof _0x50aeea=='string'&&(_0x2f0053[_0x89ae66]=_0x50aeea[_0x3b54bb(0x22c)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x481c54[_0x3b54bb(0x12a)],')')));});var _0x3b546a=_0x481c54[_0x238d76(0x1f9)];return!_0x3b546a||_0x3b546a[_0x238d76(0x149)]===0x0||(_0x8800bf[_0x238d76(0x1ec)]==='use'&&_0x2f0053[_0x238d76(0x139)]&&(_0x2f0053[_0x238d76(0x139)]=_0x2f0053[_0x238d76(0x139)]+_0x481c54[_0x238d76(0x12a)]),Object[_0x238d76(0x1df)](_0x2f0053)[_0x238d76(0x1bf)](function(_0x1df039){var _0x243aa3=_0x238d76,_0x5e2904=_0x1df039[0x0],_0x5698f6=_0x1df039[0x1];typeof _0x5698f6==_0x243aa3(0x1a5)&&(_0x2f0053[_0x5e2904]=_0x5698f6[_0x243aa3(0x22c)](/url\(#(.*)\)/,_0x243aa3(0x23c)[_0x243aa3(0x166)](_0x481c54[_0x243aa3(0x12a)],')')));})),_0x2f0053;}function Ze(_0x419e51,_0x302359){var _0x2049b2=_0x22d713,_0x38fe0a,_0x307a10=_0x302359[_0x2049b2(0x1f9)];return!_0x307a10||_0x307a10[_0x2049b2(0x149)]===0x0?_0x419e51:_0x419e51[_0x2049b2(0x1ec)]===_0x2049b2(0xf9)&&(!((_0x38fe0a=_0x419e51[_0x2049b2(0x188)])===null||_0x38fe0a===void 0x0)&&_0x38fe0a[_0x2049b2(0x149)])?g(g({},_0x419e51),{'children':_0x419e51['children'][_0x2049b2(0xfc)](function(_0x4199a6){var _0x21dd4d=_0x2049b2;return typeof _0x4199a6['attrs']['id']=='string'&&_0x307a10&&_0x307a10['includes'](_0x4199a6[_0x21dd4d(0x1c6)]['id'])?g(g({},_0x4199a6),{'attrs':g(g({},_0x4199a6[_0x21dd4d(0x1c6)]),{'id':_0x4199a6['attrs']['id']+_0x302359['idSuffix']})}):_0x4199a6;})}):_0x419e51;}function Xe(){var _0x2c7cc7=_0x22d713;return Math[_0x2c7cc7(0x1f6)]()[_0x2c7cc7(0x14a)](0x24)[_0x2c7cc7(0x1ba)](0x2,0x8);}b[_0x22d713(0x108)]=_0x22d713(0x10f);var Je={'tag':_0x22d713(0x158),'attrs':{'xmlns':_0x22d713(0x21a),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x22d713(0x229),'height':_0x22d713(0x229)},'children':[{'tag':_0x22d713(0x1fa),'attrs':{'fill':_0x22d713(0xe8),'d':_0x22d713(0x1fb),'fillRule':_0x22d713(0xed),'clipRule':'evenodd'}}]},ue=_0x58156b(function(_0x2b2eef,_0x4dc8a7){var _0x467b2c=_0x22d713;return _0x2cf232(b,Object[_0x467b2c(0x153)]({},_0x2b2eef,{'id':'check-mark-icon','ref':_0x4dc8a7,'icon':Je}));});ue[_0x22d713(0x108)]=_0x22d713(0x1d8);var Qe={'tag':_0x22d713(0x158),'attrs':{'xmlns':_0x22d713(0x21a),'fill':_0x22d713(0x1a7),'viewBox':'0\x200\x2017\x2017','width':_0x22d713(0x229),'height':_0x22d713(0x229)},'children':[{'tag':_0x22d713(0x1fa),'attrs':{'stroke':'currentColor','d':'M5.21243\x205.62036L11.8791\x2012.287','strokeLinecap':_0x22d713(0x1fe),'strokeLinejoin':_0x22d713(0x1fe),'strokeWidth':1.33}},{'tag':_0x22d713(0x1fa),'attrs':{'stroke':_0x22d713(0xe8),'d':_0x22d713(0x1a9),'strokeLinecap':_0x22d713(0x1fe),'strokeLinejoin':_0x22d713(0x1fe),'strokeWidth':1.33}}]},ve=_0x58156b(function(_0x1470d7,_0x44ad26){var _0x35c06e=_0x22d713;return _0x2cf232(b,Object['assign']({},_0x1470d7,{'id':_0x35c06e(0x1c9),'ref':_0x44ad26,'icon':Qe}));});ve[_0x22d713(0x108)]=_0x22d713(0x115);var en={'tag':_0x22d713(0x158),'attrs':{'xmlns':_0x22d713(0x21a),'fill':_0x22d713(0x1a7),'viewBox':'0\x200\x2016\x2016','width':'1em','height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x22d713(0xe8),'d':_0x22d713(0x243)}},{'tag':'path','attrs':{'fill':_0x22d713(0xe8),'d':_0x22d713(0x1be)}},{'tag':'path','attrs':{'fill':_0x22d713(0xe8),'d':_0x22d713(0x10d),'fillRule':_0x22d713(0xed),'clipRule':'evenodd'}}]},de=_0x58156b(function(_0xe2a75c,_0x22b5de){var _0x53032b=_0x22d713;return _0x2cf232(b,Object[_0x53032b(0x153)]({},_0xe2a75c,{'id':'help-single','ref':_0x22b5de,'icon':en}));});de['displayName']=_0x22d713(0x225);var nn={'tag':_0x22d713(0x158),'attrs':{'xmlns':_0x22d713(0x21a),'fill':'none','viewBox':_0x22d713(0xfa),'width':_0x22d713(0x229),'height':_0x22d713(0x229)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x22d713(0x1fa),'attrs':{'stroke':_0x22d713(0xe8),'d':_0x22d713(0x17a),'strokeLinecap':_0x22d713(0x1fe),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x22d713(0x1e5),'attrs':{'id':_0x22d713(0x170)},'children':[{'tag':_0x22d713(0x1fa),'attrs':{'fill':_0x22d713(0x172),'d':_0x22d713(0x200)}}]}]}],'defIds':[_0x22d713(0x170)]},ge=_0x58156b(function(_0x34aef9,_0x283c8c){var _0x15d0fa=_0x22d713;return _0x2cf232(b,Object[_0x15d0fa(0x153)]({},_0x34aef9,{'id':_0x15d0fa(0x18e),'ref':_0x283c8c,'icon':nn}));});ge[_0x22d713(0x108)]=_0x22d713(0x183);var rn={'tag':_0x22d713(0x158),'attrs':{'xmlns':_0x22d713(0x21a),'fill':'none','viewBox':_0x22d713(0x1b2),'width':_0x22d713(0x229),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x22d713(0x18f)},'children':[{'tag':'path','attrs':{'stroke':_0x22d713(0xe8),'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':_0x22d713(0x1fe),'strokeLinejoin':_0x22d713(0x1fe),'strokeWidth':1.2}}]},{'tag':_0x22d713(0xf9),'attrs':{},'children':[{'tag':_0x22d713(0x1e5),'attrs':{'id':_0x22d713(0x1f7)},'children':[{'tag':'path','attrs':{'fill':_0x22d713(0x172),'d':_0x22d713(0x200),'transform':'translate(.97)'}}]}]}],'defIds':[_0x22d713(0x1f7)]},fe=_0x58156b(function(_0x227222,_0x273b1f){var _0x350817=_0x22d713;return _0x2cf232(b,Object[_0x350817(0x153)]({},_0x227222,{'id':_0x350817(0x1db),'ref':_0x273b1f,'icon':rn}));});fe[_0x22d713(0x108)]=_0x22d713(0x22f);function tn(_0x20b2e3){var _0x17e552=_0x22d713,_0x45fa22,_0x51d8e0;const {mcpCoreConfig:_0x4d3756,onSave:_0x5f05bb,loading:_0x15ddec=!0x1,config:_0x12dfd5,connectionStatus$:_0x42f94,connectionError$:_0x3d0540,currentApiKey$:_0x29972b,currentSessionId$:_0x393b0a}=_0x20b2e3,_0x4d8272=_0x1f62a6(_0x309e63),_0x6df636=_0x2d20be(_0x42f94,_0x16277f[_0x17e552(0x187)]),_0x4addeb=_0x2d20be(_0x3d0540,_0x440842[_0x17e552(0x165)]),_0x2bc93f=_0x2d20be(_0x393b0a,''),_0x1eb878=_0x2d20be(_0x29972b,''),[_0x39ec65,_0x339237]=_0x524203(_0x1eb878||''),_0x3a4a28=!0x0,_0x1b65dd=_0x12dfd5['showDeveloperTools']&&_0x4d3756[_0x17e552(0xf8)]&&(_0x4d3756[_0x17e552(0xf8)][_0x17e552(0x1bb)](_0x17e552(0x1d2))||_0x4d3756[_0x17e552(0xf8)]['includes'](_0x17e552(0x1b0))),_0x18fe80=(_0x45fa22=_0x4d3756[_0x17e552(0xf8)])==null?void 0x0:_0x45fa22[_0x17e552(0x1bb)](_0x17e552(0x1d2)),_0x19edde=(_0x51d8e0=_0x4d3756[_0x17e552(0xf8)])==null?void 0x0:_0x51d8e0[_0x17e552(0x1bb)](_0x17e552(0x1b0)),_0x23a544=_0x18fe80?_0x17e552(0x1af):_0x17e552(0x100),_0x389166=_0x12dfd5[_0x17e552(0x195)]&&(_0x18fe80||_0x19edde),[_0x1871fe,_0x3a255d]=_0x524203(!_0x39ec65[_0x17e552(0x1c7)]()),_0x28f88a=(_0x24c682,_0x13bbf0)=>{var _0x15c90b=_0x17e552;if(_0x13bbf0===_0x440842[_0x15c90b(0x21b)])return _0x15c90b(0x101);switch(_0x24c682){case _0x16277f['CONNECTED']:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x16277f['CONNECTING']:case _0x16277f[_0x15c90b(0x146)]:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case _0x16277f[_0x15c90b(0xff)]:return _0x15c90b(0x101);default:return _0x15c90b(0x105);}},_0x193fef=(_0x42ff3f,_0x1aac06)=>{var _0x1d94e2=_0x17e552;if(_0x1aac06===_0x440842[_0x1d94e2(0x21b)])return _0x1d94e2(0x1e8);switch(_0x42ff3f){case _0x16277f[_0x1d94e2(0x10a)]:return'univer-bg-green-500';case _0x16277f['CONNECTING']:case _0x16277f[_0x1d94e2(0x146)]:return'univer-bg-blue-500';case _0x16277f[_0x1d94e2(0xff)]:return _0x1d94e2(0x1e8);default:return'univer-bg-gray-500';}},_0x184f62=_0x2c7ed5=>{var _0x318870=_0x17e552;switch(_0x2c7ed5){case _0x16277f['CONNECTED']:return _0x4d8272['t'](_0x318870(0x21c));case _0x16277f[_0x318870(0x104)]:return _0x4d8272['t']('mcpConfig.connectionStatus.connecting');case _0x16277f[_0x318870(0xff)]:return _0x4d8272['t']('mcpConfig.connectionStatus.failed');case _0x16277f[_0x318870(0x146)]:return _0x4d8272['t'](_0x318870(0x107));default:return _0x4d8272['t'](_0x318870(0x199));}},_0x30fd3d=_0x10f5c4=>{var _0x169214=_0x17e552;switch(_0x10f5c4){case _0x440842[_0x169214(0x21b)]:return _0x4d8272['t']('mcpConfig.connectionError.invalidApiKey');case _0x440842['SESSION_ID_OCCUPIED']:return _0x4d8272['t'](_0x169214(0x19e));case _0x440842[_0x169214(0xfb)]:return _0x4d8272['t'](_0x169214(0x1b9));case _0x440842[_0x169214(0xe3)]:return _0x4d8272['t'](_0x169214(0x137));default:return'';}},_0x2faea4=_0x5f29f0(()=>{const _0x4d5f87={..._0x4d3756,'apiKey':_0x39ec65['trim'](),'enableAuth':_0x3a4a28};_0x5f05bb(_0x4d5f87);},[_0x4d3756,_0x39ec65,_0x3a4a28,_0x5f05bb]),_0x31623a=_0x39ec65[_0x17e552(0x1c7)]()['length']>0x0;return _0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x131),'children':[_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x20f),'children':_0x2f1d56('div',{'className':_0x17e552(0x1fc),'children':[_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x143),'children':_0x332e26(_0x17e552(0x232),{'className':_0x17e552(0xe7),'children':'⚙'})}),_0x332e26(_0x17e552(0x18d),{'children':_0x332e26('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x4d8272['t'](_0x17e552(0x1c1))})})]})}),_0x2f1d56('div',{'className':_0x17e552(0x1eb),'children':[_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x234)+_0x28f88a(_0x6df636,_0x4addeb)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x214),'children':[_0x332e26('div',{'className':_0x17e552(0x1b5)+_0x193fef(_0x6df636,_0x4addeb)+'\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'}),_0x332e26(_0x17e552(0x232),{'className':'univer-text-sm\x20univer-font-medium','children':_0x184f62(_0x6df636)})]})}),_0x4addeb!==_0x440842['NONE']&&(_0x6df636===_0x16277f[_0x17e552(0xff)]||_0x4addeb===_0x440842[_0x17e552(0x21b)])&&_0x332e26(_0x17e552(0x18d),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x224),'children':[_0x332e26(_0x17e552(0x232),{'className':'univer-flex-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0x332e26('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x30fd3d(_0x4addeb)})]})})]}),_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x230),'children':_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x22d),'children':[_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x18b),'children':[_0x2f1d56(_0x17e552(0x174),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x332e26(_0x17e552(0x232),{'children':'🔑'}),'\x20',_0x4d8272['t'](_0x17e552(0x12e)),_0x332e26('span',{'className':_0x17e552(0x1c3),'children':'*'}),_0x1b65dd&&_0x332e26('a',{'href':_0x17e552(0x228),'onClick':()=>_0x3a255d(!0x0),'className':_0x17e552(0x1a8),'title':_0x4d8272['t'](_0x17e552(0xe4)),'children':_0x332e26(de,{})})]}),_0x332e26(_0x224388,{'type':_0x17e552(0x15b),'placeholder':_0x4d8272['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x39ec65,'onChange':_0x339237,'disabled':_0x15ddec,'autoComplete':_0x17e552(0x156)}),_0x332e26('p',{'className':_0x17e552(0x164),'children':_0x4d8272['t'](_0x17e552(0x10c))})]}),_0x1b65dd&&_0x1871fe&&_0x2f1d56('div',{'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':[_0x332e26('a',{'href':_0x17e552(0x228),'onClick':()=>_0x3a255d(!0x1),'className':_0x17e552(0x1e1),'title':'Close','children':_0x332e26(ve,{})}),_0x2f1d56('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x15f),'children':_0x332e26(_0x17e552(0x232),{'className':'univer-text-blue-600','children':'🚀'})}),_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x1c2),'children':[_0x332e26('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x4d8272['t']('mcpConfig.apiApplyInfo.title')}),_0x332e26('p',{'className':_0x17e552(0x1e6),'children':_0x4d8272['t'](_0x17e552(0x127))}),_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x12d),'children':_0x389166&&_0x2f1d56('a',{'href':_0x23a544,'target':_0x17e552(0x222),'rel':_0x17e552(0x1cf),'className':_0x17e552(0x238),'children':[_0x332e26(_0x17e552(0x232),{'children':'🤖'}),_0x4d8272['t'](_0x17e552(0x1ad)),_0x332e26(_0x17e552(0x232),{'className':_0x17e552(0x226),'children':'↗'})]})}),_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x1f2),'children':['✨','\x20',_0x4d8272['t'](_0x17e552(0x211))]})]})]})]}),_0x12dfd5[_0x17e552(0x195)]&&_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x189),'children':[_0x2f1d56('h4',{'className':_0x17e552(0xe9),'children':[_0x332e26(_0x17e552(0x232),{'children':'🔗'}),'\x20',_0x4d8272['t']('mcpConfig.connectionInfo')]}),_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x1cd),'children':[_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x1d1),'children':[_0x332e26('p',{'className':_0x17e552(0x20c),'children':_0x4d8272['t'](_0x17e552(0x124))}),_0x2f1d56(_0x17e552(0x18d),{'className':'univer-space-y-2','children':[_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x217),'children':_0x4d8272['t'](_0x17e552(0x147))}),_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x240),'children':[_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x214),'children':[_0x332e26(_0x17e552(0x232),{'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'}),_0x4d8272['t'](_0x17e552(0x155))]}),_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x214),'children':[_0x332e26(_0x17e552(0x232),{'className':_0x17e552(0x114),'children':'2'}),_0x4d8272['t'](_0x17e552(0xf2))]}),_0x2f1d56(_0x17e552(0x18d),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x332e26(_0x17e552(0x232),{'className':_0x17e552(0x114),'children':'3'}),_0x4d8272['t'](_0x17e552(0x210))]})]})]})]}),_0x2f1d56('div',{'className':'univer-space-y-2','children':[_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x217),'children':'MCP\x20Configuration'}),_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x19d),'children':_0x332e26(_0x17e552(0x209),{'className':_0x17e552(0x1d7),'children':'{\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='+_0x2bc93f+_0x17e552(0x11e)+(_0x39ec65||'<API_KEY>')+_0x17e552(0x184)})})]}),_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x1d1),'children':[_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x217),'children':_0x4d8272['t'](_0x17e552(0x23b))}),_0x2f1d56(_0x17e552(0x18d),{'className':'univer-space-y-2','children':[_0x2f1d56(_0x17e552(0x18d),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x332e26('div',{'className':_0x17e552(0x21d)}),_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x13b),'children':[_0x332e26('div',{'className':_0x17e552(0x1c5),'children':_0x17e552(0x110)}),_0x332e26(_0x17e552(0x18d),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x4d8272['t'](_0x17e552(0x198))})]})]}),_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x1f8),'children':[_0x332e26('div',{'className':'univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x13b),'children':[_0x332e26(_0x17e552(0x18d),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':'Authorization:'}),_0x332e26(_0x17e552(0x18d),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x4d8272['t'](_0x17e552(0x1e9))})]})]})]})]})]})]}),_0x332e26(_0x30e2ec,{'onClick':_0x2faea4,'disabled':!_0x31623a||_0x15ddec,'className':_0x17e552(0x241),'children':_0x15ddec?_0x2f1d56(_0x17e552(0x232),{'className':_0x17e552(0x214),'children':[_0x332e26('span',{'children':'⟲'}),_0x4d8272['t'](_0x17e552(0x190))]}):_0x2f1d56('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x332e26(ue,{}),_0x4d8272['t'](_0x17e552(0x13e))]})}),_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x106),'children':_0x2f1d56(_0x17e552(0x18d),{'className':'univer-flex\x20univer-gap-3','children':[_0x332e26(_0x17e552(0x232),{'className':_0x17e552(0x160),'children':'💡'}),_0x2f1d56(_0x17e552(0x18d),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x332e26('div',{'className':_0x17e552(0x1f0),'children':_0x17e552(0x18a)}),_0x2f1d56(_0x17e552(0x18d),{'children':['•',_0x4d8272['t'](_0x17e552(0x180))]}),_0x2f1d56(_0x17e552(0x18d),{'children':['•',_0x4d8272['t'](_0x17e552(0x237))]})]})]})})]})})]});}const L=_0x22d713(0xf3),ie={'showDeveloperTools':!0x1};var on=Object[_0x22d713(0x15c)],sn=(_0x466788,_0x346e98,_0x2d39fb,_0x1f9b09)=>{for(var _0x32e9b6=_0x1f9b09>0x1?void 0x0:_0x1f9b09?on(_0x346e98,_0x2d39fb):_0x346e98,_0x5e0ee1=_0x466788['length']-0x1,_0x36293f;_0x5e0ee1>=0x0;_0x5e0ee1--)(_0x36293f=_0x466788[_0x5e0ee1])&&(_0x32e9b6=_0x36293f(_0x32e9b6)||_0x32e9b6);return _0x32e9b6;},f=(_0x4e5c07,_0x97789c)=>(_0x278dbd,_0x391df4)=>_0x97789c(_0x278dbd,_0x391df4,_0x4e5c07);const T=_0x22d713(0xe5),R=_0x22d713(0x1b4);let I=class extends _0x17e4fc{constructor(_0x445c3a,_0x4d3dba,_0x59d59b,_0x1e7d25,_0x36968f,_0x33c462,_0x403ccc,_0x4f6a2f,_0x6da05,_0x1faf22){var _0x1eb58a=_0x22d713;super(),x(this,_0x1eb58a(0x1ff),new _0x563fed(!0x1)),x(this,_0x1eb58a(0x20d),new _0x563fed({})),x(this,_0x1eb58a(0x123),new _0x563fed({})),x(this,'_apiKey$',new _0x563fed('')),x(this,'_handleConfigSave',async _0x237cf2=>{var _0x1760e2=_0x1eb58a,_0xa5febd,_0x354fb6;this[_0x1760e2(0x1ff)][_0x1760e2(0x239)](!0x0);try{const _0x5e0362=await this[_0x1760e2(0x1e7)](_0x237cf2);if(!_0x5e0362[_0x1760e2(0x122)]){this[_0x1760e2(0x17d)][_0x1760e2(0x142)]({'type':_0x56cfda[_0x1760e2(0x1f3)],'content':_0x5e0362[_0x1760e2(0x11c)]||this['_localeService']['t'](_0x1760e2(0x204))});return;}_0x237cf2[_0x1760e2(0x193)]?await this[_0x1760e2(0x235)]['setItem'](T,_0x237cf2['apiKey'][_0x1760e2(0x1c7)]()):await this[_0x1760e2(0x235)][_0x1760e2(0x12f)](T),this[_0x1760e2(0x14f)][_0x1760e2(0x239)](((_0xa5febd=_0x237cf2[_0x1760e2(0x193)])==null?void 0x0:_0xa5febd['trim']())||''),this['_mcpConnectionController'][_0x1760e2(0x1d6)]({'Authorization':_0x1760e2(0x14d)+((_0x354fb6=_0x237cf2['apiKey'])==null?void 0x0:_0x354fb6[_0x1760e2(0x1c7)]())}),this[_0x1760e2(0x17d)][_0x1760e2(0x142)]({'type':_0x56cfda[_0x1760e2(0x1a6)],'content':this[_0x1760e2(0x227)]['t'](_0x1760e2(0x1f5))}),setTimeout(()=>{var _0x111272=_0x1760e2;this[_0x111272(0x15e)][_0x111272(0x15a)](R);},0x320);}catch(_0x747cab){this[_0x1760e2(0x144)]['error'](_0x1760e2(0x16b),_0x747cab),this[_0x1760e2(0x17d)][_0x1760e2(0x142)]({'type':_0x56cfda[_0x1760e2(0x1f3)],'content':this[_0x1760e2(0x227)]['t']('mcpConfig.configError')});}finally{this[_0x1760e2(0x1ff)]['next'](!0x1);}}),(this[_0x1eb58a(0x1ef)]=_0x445c3a,this['_uiPartsService']=_0x4d3dba,this['_configService']=_0x59d59b,this[_0x1eb58a(0x235)]=_0x1e7d25,this['_dialogService']=_0x36968f,this[_0x1eb58a(0x17d)]=_0x33c462,this[_0x1eb58a(0x221)]=_0x403ccc,this['_localeService']=_0x4f6a2f,this[_0x1eb58a(0x144)]=_0x6da05,this[_0x1eb58a(0xfe)]=_0x1faf22,this['_initConfigSync'](),this[_0x1eb58a(0x135)](),this[_0x1eb58a(0x1ed)]());}['showConfigPanel'](){var _0x12459d=_0x22d713;this[_0x12459d(0x15e)][_0x12459d(0x148)]({'id':R,'title':{'title':this[_0x12459d(0x227)]['t'](_0x12459d(0x23f))},'children':{'label':_0x12459d(0x14e)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x3a1b61=_0x12459d;this[_0x3a1b61(0x15e)][_0x3a1b61(0x15a)](R);}});}['getCurrentConfig'](){var _0x2cbeaa=_0x22d713;return this[_0x2cbeaa(0x20d)][_0x2cbeaa(0x130)];}[_0x22d713(0x1ed)](){var _0x4e1fae=_0x22d713;this[_0x4e1fae(0x12b)](this[_0x4e1fae(0x221)]['register'](_0x4e1fae(0x14e),this[_0x4e1fae(0x1aa)]()));}['_createConfigPanelComponent'](){var _0x5eb771=_0x22d713;return _0x3bce22(()=>{var _0x35a205=_0x4df3,_0x2e9520,_0x5e090f,_0x263a4b;return _0x332e26(tn,{'config':this['_config$'][_0x35a205(0x130)],'mcpCoreConfig':this[_0x35a205(0x20d)][_0x35a205(0x130)],'currentApiKey$':this[_0x35a205(0x14f)],'onSave':this[_0x35a205(0x216)],'loading':this[_0x35a205(0x1ff)][_0x35a205(0x130)],'connectionStatus$':(_0x2e9520=this['_mcpConnectionController'])==null?void 0x0:_0x2e9520[_0x35a205(0x19b)],'connectionError$':(_0x5e090f=this['_mcpConnectionController'])==null?void 0x0:_0x5e090f['connectionError$'],'currentSessionId$':(_0x263a4b=this[_0x35a205(0xfe)])==null?void 0x0:_0x263a4b[_0x35a205(0x1b6)]});},this[_0x5eb771(0x1ef)]);}['_initConfigSync'](){var _0x24699a=_0x22d713;this[_0x24699a(0x12b)](this[_0x24699a(0x10b)]['subscribeConfigValue$'](_0x1b4990)['subscribe'](_0x578cde=>{var _0x40f0a9=_0x24699a;this['_mcpCoreConfig$'][_0x40f0a9(0x239)](_0x578cde||{});}));const _0x4b2f96=this[_0x24699a(0x10b)]['getConfig'](_0x1b4990);this['_mcpCoreConfig$'][_0x24699a(0x239)](_0x4b2f96||{}),this[_0x24699a(0x12b)](this[_0x24699a(0x10b)][_0x24699a(0x205)](L)['subscribe'](_0x49315c=>{var _0x2c6a4c=_0x24699a;this[_0x2c6a4c(0x123)][_0x2c6a4c(0x239)](_0x49315c||{});}));const _0x5ecd29=this['_configService']['getConfig'](L);this[_0x24699a(0x123)]['next'](_0x5ecd29||{});}async[_0x22d713(0x135)](){var _0x849283=_0x22d713;const _0x533eb6=await this[_0x849283(0x235)][_0x849283(0x173)](T);_0x533eb6&&(this[_0x849283(0xfe)][_0x849283(0x1d6)]({'Authorization':_0x849283(0x14d)+_0x533eb6}),this['_apiKey$'][_0x849283(0x239)](_0x533eb6));}async['_validateConfig'](_0x3fb86a){var _0x51ab7d=_0x22d713;if(!_0x3fb86a[_0x51ab7d(0x193)]||_0x3fb86a[_0x51ab7d(0x193)]['trim']()[_0x51ab7d(0x149)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x51ab7d(0x227)]['t'](_0x51ab7d(0x1de))};if(_0x3fb86a[_0x51ab7d(0x193)][_0x51ab7d(0x1c7)]()[_0x51ab7d(0x149)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x51ab7d(0x227)]['t'](_0x51ab7d(0x17f))};try{const _0x426b18=await this[_0x51ab7d(0x1ef)][_0x51ab7d(0x1f4)](_0x2ef2f2)['validateApiKey'](_0x3fb86a['apiKey'][_0x51ab7d(0x1c7)]());return _0x426b18[_0x51ab7d(0x122)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x426b18[_0x51ab7d(0x168)]||this[_0x51ab7d(0x227)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x1c92b1){return console[_0x51ab7d(0x132)](_0x51ab7d(0x133),_0x1c92b1),{'isValid':!0x0};}}};I=sn([f(0x0,_0x5486a6(_0x5d75c5)),f(0x1,_0x54649f),f(0x2,_0x16026c),f(0x3,_0x258048),f(0x4,_0x15efba),f(0x5,_0x88141c),f(0x6,_0x5486a6(_0x5a35e1)),f(0x7,_0x5486a6(_0x309e63)),f(0x8,_0xce7fb5),f(0x9,_0x5486a6(_0x2ef2f2))],I);const B={'id':_0x22d713(0x13c),'type':_0xdb8b8d[_0x22d713(0x138)],'handler':async(_0x2da2ba,_0x8a0e7e)=>(_0x2da2ba[_0x22d713(0x1f4)](I)[_0x22d713(0x118)](),!0x0)};function pe(_0x6496a1,_0x9e76e3){var _0x56a48a=_0x22d713;switch(_0x6496a1){case _0x16277f[_0x56a48a(0x187)]:return _0x56a48a(0x201);case _0x16277f[_0x56a48a(0x104)]:return'mcpStatus.connecting';case _0x16277f[_0x56a48a(0x10a)]:return'mcpStatus.connected';case _0x16277f[_0x56a48a(0xff)]:switch(_0x9e76e3){case _0x440842[_0x56a48a(0x21b)]:return _0x56a48a(0x162);case _0x440842[_0x56a48a(0x1b3)]:return _0x56a48a(0x12c);case _0x440842[_0x56a48a(0xfb)]:return _0x56a48a(0xe6);case _0x440842[_0x56a48a(0xe3)]:return _0x56a48a(0x219);default:return _0x56a48a(0x1da);}case _0x16277f[_0x56a48a(0x146)]:return _0x56a48a(0x16f);default:return _0x56a48a(0x22e);}}function cn(_0x15c599,_0x49e3de,_0x39a6f5){var _0x62e1d2=_0x22d713;const _0x3a327c=pe(_0x15c599,_0x49e3de),_0x5644d3=_0x39a6f5['t'](_0x3a327c);return _0x15c599===_0x16277f[_0x62e1d2(0x187)]&&_0x49e3de===_0x440842[_0x62e1d2(0x21b)]?_0x5644d3+_0x62e1d2(0x1e0)+_0x39a6f5['t'](_0x62e1d2(0x1c8)):_0x15c599===_0x16277f[_0x62e1d2(0x10a)]?''+_0x5644d3:_0x15c599===_0x16277f[_0x62e1d2(0x187)]||_0x15c599===_0x16277f[_0x62e1d2(0xff)]?_0x5644d3+_0x62e1d2(0x1e0)+_0x39a6f5['t'](_0x62e1d2(0x202)):_0x5644d3;}function an(_0x17a50c){var _0x32480a=_0x22d713;switch(_0x17a50c){case _0x16277f['CONNECTED']:return _0x32480a(0xec);case _0x16277f[_0x32480a(0x104)]:case _0x16277f[_0x32480a(0x146)]:return'univer-text-yellow-500';case _0x16277f[_0x32480a(0xff)]:case _0x16277f[_0x32480a(0x187)]:return _0x32480a(0x1c3);default:return _0x32480a(0xf7);}}function ln(_0x49b12a){var _0x455299=_0x22d713;const {status$:_0x67d4d5,error$:_0x173bed,onConfigure:_0x14d638}=_0x49b12a,_0x67294a=_0x2d20be(_0x67d4d5,_0x16277f['DISCONNECTED']),_0x145d80=_0x2d20be(_0x173bed,_0x440842['NONE']),_0x47527d=_0x1f62a6(_0x309e63),_0xc0a0b3=_0x67294a===_0x16277f[_0x455299(0x10a)],_0x2777bf=_0x67294a===_0x16277f[_0x455299(0x104)]||_0x67294a===_0x16277f[_0x455299(0x146)],_0x2341ac=_0x47527d['t'](pe(_0x67294a,_0x145d80)),_0x35cc16=cn(_0x67294a,_0x145d80,_0x47527d),_0x5684fb=an(_0x67294a),_0x1b68c6=_0xc0a0b3?_0x332e26(fe,{}):_0x332e26(ge,{}),_0x514bb0=_0x5f29f0(()=>{_0x14d638&&_0x14d638();},[_0xc0a0b3,_0x2777bf,_0x14d638]);function _0x4c772a(){var _0x5cd743=_0x455299;return _0x2f1d56('div',{'className':_0x488d88(_0x5cd743(0x150),_0x14d638&&_0x5cd743(0x154)),'onClick':_0x14d638?_0x514bb0:void 0x0,'children':[_0x332e26(_0x5cd743(0x18d),{'className':_0x488d88(_0x5cd743(0xef),_0x5684fb),'children':_0x1b68c6}),_0x332e26('div',{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x2341ac})]});}return _0x332e26(_0x635f0f,{'title':_0x35cc16,'placement':_0x455299(0x19a),'children':_0x4c772a()});}var un=Object[_0x22d713(0x15c)],vn=(_0x22fd26,_0x5bb04e,_0xd6753a,_0x2f7629)=>{var _0x1b5023=_0x22d713;for(var _0x48974a=_0x2f7629>0x1?void 0x0:_0x2f7629?un(_0x5bb04e,_0xd6753a):_0x5bb04e,_0x3f9001=_0x22fd26[_0x1b5023(0x149)]-0x1,_0x4485a0;_0x3f9001>=0x0;_0x3f9001--)(_0x4485a0=_0x22fd26[_0x3f9001])&&(_0x48974a=_0x4485a0(_0x48974a)||_0x48974a);return _0x48974a;},j=(_0x4ffacf,_0x3523aa)=>(_0x3c322f,_0x4afe74)=>_0x3523aa(_0x3c322f,_0x4afe74,_0x4ffacf);let A=class extends _0x17e4fc{constructor(_0x140485,_0x141d6d,_0x575020){var _0x4432b6=_0x22d713;super(),this[_0x4432b6(0x1ef)]=_0x140485,this[_0x4432b6(0x1ee)]=_0x141d6d,this[_0x4432b6(0x157)]=_0x575020,this[_0x4432b6(0x1ee)]['enableAutoConnect']=!0x1,this[_0x4432b6(0x175)]();}[_0x22d713(0x175)](){var _0x21dedc=_0x22d713;this['disposeWithMe'](this[_0x21dedc(0x157)]['registerComponent'](_0x4a1c81[_0x21dedc(0x16a)],()=>_0x3bce22(dn({'status$':this[_0x21dedc(0x1ee)]['connectionStatus$'],'error$':this[_0x21dedc(0x1ee)]['connectionError$'],'onConfigure':()=>this[_0x21dedc(0x1b8)]()}),this[_0x21dedc(0x1ef)])));}[_0x22d713(0x1b8)](){var _0x1a8485=_0x22d713;this['_injector'][_0x1a8485(0x1f4)](I)[_0x1a8485(0x118)]();}};A=vn([j(0x0,_0x5486a6(_0x5d75c5)),j(0x1,_0x5486a6(_0x2ef2f2)),j(0x2,_0x54649f)],A);function dn(_0x3a8f2c){const {status$:_0x5241ac,error$:_0x5d9999,onConfigure:_0x5f03cd}=_0x3a8f2c;return function(){return _0x332e26(ln,{'status$':_0x5241ac,'error$':_0x5d9999,'onConfigure':_0x5f03cd});};}function gn(_0x230136){var _0x172fc6=_0x22d713;return{'id':B['id'],'type':_0x552e1b[_0x172fc6(0x1ea)],'icon':_0x172fc6(0x121),'title':'mcpConfig.title','tooltip':_0x172fc6(0x23f)};}const fn={[_0x107585[_0x22d713(0xf0)]]:{[B['id']]:{'order':0xa,'menuItemFactory':gn}}};var pn=Object[_0x22d713(0x15c)],mn=(_0x253fd6,_0x4268c5,_0x4e9227,_0x54f4e2)=>{var _0x1a781b=_0x22d713;for(var _0x13871f=_0x54f4e2>0x1?void 0x0:_0x54f4e2?pn(_0x4268c5,_0x4e9227):_0x4268c5,_0x22d216=_0x253fd6[_0x1a781b(0x149)]-0x1,_0x3ddf3f;_0x22d216>=0x0;_0x22d216--)(_0x3ddf3f=_0x253fd6[_0x22d216])&&(_0x13871f=_0x3ddf3f(_0x13871f)||_0x13871f);return _0x13871f;},re=(_0x2a7fef,_0x20586a)=>(_0x204ced,_0x5bd5b1)=>_0x20586a(_0x204ced,_0x5bd5b1,_0x2a7fef);let M=class extends _0x17e4fc{constructor(_0x29e3d3,_0x445ec8){var _0x29a40a=_0x22d713;super(),this[_0x29a40a(0x212)]=_0x29e3d3,this['_menuManagerService']=_0x445ec8,this[_0x29a40a(0x159)](),this[_0x29a40a(0x16e)]();}[_0x22d713(0x159)](){var _0x10bfb1=_0x22d713;[B][_0x10bfb1(0x1bf)](_0x311375=>{var _0x4975b8=_0x10bfb1;this[_0x4975b8(0x12b)](this[_0x4975b8(0x212)][_0x4975b8(0x1fd)](_0x311375));});}['_initializeMenus'](){var _0x56aa3f=_0x22d713;this[_0x56aa3f(0x15d)][_0x56aa3f(0x21f)](fn);}};function _0x4df3(_0x43acb0,_0x157c3d){var _0x538290=_0x5382();return _0x4df3=function(_0x4df3cc,_0x26cc37){_0x4df3cc=_0x4df3cc-0xe2;var _0x464b9b=_0x538290[_0x4df3cc];return _0x464b9b;},_0x4df3(_0x43acb0,_0x157c3d);}M=mn([re(0x0,_0xf27dd3),re(0x1,_0x2d5339)],M);const On={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x22d713(0x10e),'connected':_0x22d713(0x215),'failed':_0x22d713(0x208),'retrying':_0x22d713(0x1cc),'unknown':_0x22d713(0x22b),'missingApiKey':_0x22d713(0x1e3),'invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':_0x22d713(0x163),'networkError':_0x22d713(0x1bc),'maxRetriesExceeded':_0x22d713(0x1d5),'clickToConnect':_0x22d713(0x213),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x22d713(0x181),'description':_0x22d713(0x1dd),'apiKey':_0x22d713(0x17e),'apiKeyPlaceholder':_0x22d713(0x145),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x22d713(0x169),'connectionInfo':_0x22d713(0x128),'mcpClientConfig':_0x22d713(0x128),'configInstructions':_0x22d713(0x17c),'configStepTitle':_0x22d713(0x22a),'configStep1':_0x22d713(0x178),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x22d713(0x126),'sessionId':_0x22d713(0x197),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x22d713(0x191),'configParameters':_0x22d713(0x206),'maxRetries':_0x22d713(0x194),'save':_0x22d713(0x176),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x22d713(0x11a),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x22d713(0x207),'apiApplyInfo':{'title':_0x22d713(0x18c),'description':_0x22d713(0x220),'univerAiLabel':_0x22d713(0xf4),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x22d713(0xf6),'apiKeyTooShort':_0x22d713(0x1a2),'invalidConfig':_0x22d713(0x161),'invalidApiKey':_0x22d713(0x23d)},'connectionStatus':{'disconnected':_0x22d713(0x112),'connecting':_0x22d713(0xe2),'connected':_0x22d713(0x177),'failed':_0x22d713(0x1a1),'retrying':_0x22d713(0x242)},'connectionError':{'missingApiKey':_0x22d713(0x223),'invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':_0x22d713(0xea),'networkError':_0x22d713(0x136),'maxRetriesExceeded':_0x22d713(0x152)}}},kn={'mcpStatus':{'disconnected':_0x22d713(0x179),'connecting':'MCP\x20连接中...','connected':_0x22d713(0x1a3),'failed':_0x22d713(0x1ce),'retrying':'MCP\x20重连中...','unknown':'MCP\x20状态未知','missingApiKey':_0x22d713(0x134),'invalidApiKey':_0x22d713(0xf1),'sessionOccupied':'MCP:\x20会话被占用','networkError':_0x22d713(0x13d),'maxRetriesExceeded':_0x22d713(0x203),'clickToConnect':_0x22d713(0x1d0),'clickToConfigure':_0x22d713(0x171)},'mcpConfig':{'title':_0x22d713(0x17b),'description':_0x22d713(0x1ca),'apiKey':'API\x20密钥','apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x22d713(0xfd),'enableAuth':_0x22d713(0x113),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x22d713(0x119),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x22d713(0x196),'configStepTitle':_0x22d713(0x109),'configStep1':_0x22d713(0x1d9),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x22d713(0x16d),'sessionId':_0x22d713(0x19f),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x22d713(0x236),'configParameters':_0x22d713(0x125),'maxRetries':_0x22d713(0x140),'save':_0x22d713(0x14b),'saving':'保存中...','note1':'配置更改将立即生效','note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x22d713(0x151),'configError':_0x22d713(0x1e2),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x22d713(0xf5),'univerAiLabel':_0x22d713(0x1ab),'getStarted':_0x22d713(0x111)},'validation':{'apiKeyRequired':_0x22d713(0x129),'apiKeyTooShort':_0x22d713(0x182),'invalidConfig':'配置无效','invalidApiKey':_0x22d713(0x1c4)},'connectionStatus':{'disconnected':_0x22d713(0x233),'connecting':_0x22d713(0x1e4),'connected':_0x22d713(0x1c0),'failed':_0x22d713(0x192),'retrying':_0x22d713(0x1cb)},'connectionError':{'missingApiKey':_0x22d713(0x23a),'invalidApiKey':'API\x20密钥无效,请检查您的密钥后重试','sessionOccupied':_0x22d713(0x14c),'networkError':_0x22d713(0x103),'maxRetriesExceeded':_0x22d713(0x120)}}};function _0x5382(){var _0x4a6909=['_configService','mcpConfig.apiKeyHint','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','MCP\x20Connecting...','UniverIcon','univer_session_id:','几秒钟内获取您的\x20API\x20密钥','Disconnected','启用身份验证','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','CloseSmallSingle','12UvdIBn','has','showConfigPanel','MCP\x20客户端配置','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','6tXrWhe','errorMessage','hasOwnProperty','\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','pluginName','超出最大重试次数,请稍后再试','MenuIcon','isValid','_config$','mcpConfig.configInstructions','配置参数:','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','mcpConfig.apiApplyInfo.description','MCP\x20Client\x20Configuration','API\x20密钥不能为空','idSuffix','disposeWithMe','mcpStatus.sessionOccupied','univer-flex\x20univer-flex-wrap\x20univer-gap-2','mcpConfig.apiKey','removeItem','value','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','warn','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','MCP:\x20缺少\x20API\x20密钥','_loadStoredApiKey','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','mcpConfig.connectionError.maxRetriesExceeded','COMMAND','xlink:href','8JbXTKk','univer-min-w-0\x20univer-flex-1','mcp-ui.command.openConfigPanel','MCP:\x20网络错误','mcpConfig.save','onStarting','最大重试次数','icon','show','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','_logService','Enter\x20your\x20API\x20key','RETRYING','mcpConfig.configStepTitle','open','length','toString','保存配置','会话当前被占用,请稍后再试','Bearer\x20','MCPConfigPanel','_apiKey$','univer-flex\x20univer-cursor-pointer\x20univer-items-center','配置保存成功','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','assign','hover:univer-opacity-80','mcpConfig.configStep1','off','_uiPartsService','svg','_initializeCommands','close','text','getOwnPropertyDescriptor','_menuManagerService','_dialogService','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-shrink-0\x20univer-text-blue-500','Invalid\x20configuration','mcpStatus.invalidApiKey','MCP:\x20Session\x20Occupied','univer-text-xs\x20univer-text-gray-500','NONE','concat','18puXCEW','error','Enable\x20authentication\x20for\x20secure\x20connections','HEADER_MENU','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','extend','重启您的\x20MCP\x20客户端以使配置生效','_initializeMenus','mcpStatus.retrying','off-line-icon_clip0_910_343','点击配置\x20MCP','white','getItem','label','_initStatusComponent','Save\x20Configuration','Connected','Copy\x20the\x20JSON\x20configuration\x20below','MCP\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','MCP\x20配置','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','_messageService','API\x20Key','mcpConfig.validation.apiKeyTooShort','mcpConfig.note1','MCP\x20Configuration','API\x20密钥长度至少需要\x2010\x20位','OffLineIcon','\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}','2281013FUtAFJ','call','DISCONNECTED','children','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','Configuration\x20Notes:','univer-space-y-2','What\x20is\x20API\x20Key?','div','off-line-icon','url(#on-line-icon_clip0_910_349)','mcpConfig.saving','API\x20key\x20with\x20Bearer\x20prefix.','连接失败','apiKey','Max\x20Retries','showDeveloperTools','将以下配置添加到您的\x20MCP\x20客户端设置中:','Session\x20ID','mcpConfig.sessionIdDescription','mcpConfig.connectionStatus.disconnected','bottom','connectionStatus$','className','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','mcpConfig.connectionError.sessionOccupied','会话ID','668200rELFFs','Connection\x20Failed','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20已连接','indexOf','string','Success','none','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','M5.21243\x2012.287L11.8791\x205.62036','_createConfigPanelComponent','Univer\x20AI\x20控制台','11lmeUPi','mcpConfig.apiApplyInfo.univerAiLabel','_config','https://console.univer.plus','univer.ai','prototype','0\x200\x2017\x2016','SESSION_ID_OCCUPIED','mcp-config-dialog','\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','sessionId$','current','_handleConfigure','mcpConfig.connectionError.networkError','substring','includes','MCP:\x20Network\x20Error','push','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','forEach','已连接','mcpConfig.description','univer-flex-1','univer-text-red-500','API\x20密钥无效,请检查密钥是否正确','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','attrs','trim','mcpStatus.clickToConfigure','close-small-single','配置\x20MCP\x20使用\x20AI\x20操作电子表格','重连中...','MCP\x20Retrying...','univer-space-y-4','MCP\x20连接失败','noopener\x20noreferrer','点击连接\x20MCP','univer-space-y-3','univer.plus','colorChannel1','478012tHZqDS','MCP:\x20Max\x20Retries\x20Exceeded','__setCustomHeaders','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','CheckMarkIcon','复制以下\x20JSON\x20配置','mcpStatus.failed','on-line-icon','add','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','mcpConfig.validation.apiKeyRequired','entries','\x20-\x20','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','配置保存失败','MCP:\x20API\x20Key\x20Missing','连接中...','clipPath','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','_validateConfig','univer-bg-red-500','mcpConfig.authorizationDescription','BUTTON','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','tag','_registerComponent','_connectionController','_injector','univer-font-medium','323766cFrVeZ','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','Error','get','mcpConfig.configSaved','random','on-line-icon_clip0_910_349','univer-flex\x20univer-items-start\x20univer-gap-3','defIds','path','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','univer-flex\x20univer-items-center\x20univer-gap-3','registerCommand','round','_loading$','M0\x200H16V16H0z','mcpStatus.disconnected','mcpStatus.clickToConnect','MCP:\x20超出最大重试次数','mcpConfig.validation.invalidConfig','subscribeConfigValue$','Configuration\x20Parameters:','Failed\x20to\x20save\x20configuration','MCP\x20Connection\x20Failed','pre','apply','getOwnPropertySymbols','univer-text-xs\x20univer-text-gray-600','_mcpCoreConfig$','function','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','mcpConfig.configStep3','mcpConfig.apiApplyInfo.getStarted','_commandService','Click\x20to\x20connect\x20MCP','univer-flex\x20univer-items-center\x20univer-gap-2','MCP\x20Connected','_handleConfigSave','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','723610SihMyY','mcpStatus.maxRetriesExceeded','http://www.w3.org/2000/svg','INVALID_API_KEY','mcpConfig.connectionStatus.connected','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','MCP_UI_PLUGIN','mergeMenu','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','_componentManager','_blank','API\x20key\x20is\x20required\x20to\x20connect','univer-flex\x20univer-items-start\x20univer-gap-2','HelpSingle','univer-text-gray-400','_localeService','javascript:void(0)','1em','Configuration\x20Steps:','MCP\x20Unknown\x20Status','replace','univer-space-y-5','mcpStatus.unknown','OnLineIcon','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','15728856vJjeuZ','span','未连接','\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','_localStorageService','带有\x20Bearer\x20前缀的\x20API\x20密钥。','mcpConfig.note2','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','next','需要\x20API\x20密钥才能连接','mcpConfig.configParameters','url(#$1','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','2567195YGJNAe','mcpConfig.title','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','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','Retrying...','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','fill','Connecting...','MAX_RETRIES_EXCEEDED','mcpConfig.apiApplyInfo.title','mcp.apiKey','mcpStatus.networkError','univer-text-white','currentColor','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','mask','univer-text-green-500','evenodd','setConfig','univer-mr-2\x20univer-flex\x20univer-text-xl','OTHERS','MCP:\x20无效的\x20API\x20密钥','mcpConfig.configStep2','mcp-ui.config','Univer\x20AI\x20Console','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','API\x20key\x20is\x20required','univer-text-gray-500','mcpServerUrl','defs','0\x200\x2016\x2016','NETWORK_ERROR','map','您的\x20API\x20密钥将在此浏览器中本地存储','_mcpConnectionController','FAILED','https://console.univer.ai','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','defineProperty','网络连接错误,请检查您的网络连接','CONNECTING','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','mcpConfig.connectionStatus.retrying','displayName','配置步骤:','CONNECTED'];_0x5382=function(){return _0x4a6909;};return _0x5382();}var hn=Object[_0x22d713(0x102)],Cn=Object[_0x22d713(0x15c)],yn=(_0x8f05dd,_0x308ada,_0x294263)=>_0x308ada in _0x8f05dd?hn(_0x8f05dd,_0x308ada,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x294263}):_0x8f05dd[_0x308ada]=_0x294263,_n=(_0xe96f78,_0x3a9aa3,_0x3f8b3c,_0x4eb6ad)=>{for(var _0x7fe21f=_0x4eb6ad>0x1?void 0x0:_0x4eb6ad?Cn(_0x3a9aa3,_0x3f8b3c):_0x3a9aa3,_0x4070f7=_0xe96f78['length']-0x1,_0x36912a;_0x4070f7>=0x0;_0x4070f7--)(_0x36912a=_0xe96f78[_0x4070f7])&&(_0x7fe21f=_0x36912a(_0x7fe21f)||_0x7fe21f);return _0x7fe21f;},E=(_0x3e786f,_0x28b3c7)=>(_0x4f4191,_0x1145a7)=>_0x28b3c7(_0x4f4191,_0x1145a7,_0x3e786f),xn=(_0xc71a0b,_0x3fc73c,_0x25656d)=>yn(_0xc71a0b,_0x3fc73c+'',_0x25656d);let U=class extends _0x108c6d{constructor(_0x1da913=ie,_0x567774,_0x1ac645,_0xae5cbd,_0x43ed19,_0xef53c0){var _0x17284b=_0x22d713;super(),this[_0x17284b(0x1ae)]=_0x1da913,this[_0x17284b(0x1ef)]=_0x567774,this[_0x17284b(0x10b)]=_0x1ac645,this[_0x17284b(0x157)]=_0xae5cbd,this[_0x17284b(0x235)]=_0x43ed19,this[_0x17284b(0x227)]=_0xef53c0;const {..._0x13a141}=_0x283cca({},ie,this[_0x17284b(0x1ae)]);this[_0x17284b(0x10b)][_0x17284b(0xee)](L,_0x13a141);}async[_0x22d713(0x13f)](){var _0x14c3e1=_0x22d713;const _0x593bca=[[A],[I],[M]];this[_0x14c3e1(0x1ef)][_0x14c3e1(0x117)](_0x36dc6d)||_0x593bca[_0x14c3e1(0x1bd)]([_0x36dc6d,{'useClass':_0x3278f7}]),_0x593bca['forEach'](_0x47d18e=>this[_0x14c3e1(0x1ef)][_0x14c3e1(0x1dc)](_0x47d18e)),this[_0x14c3e1(0x1ef)][_0x14c3e1(0x1f4)](A),this[_0x14c3e1(0x1ef)][_0x14c3e1(0x1f4)](I),this[_0x14c3e1(0x1ef)]['get'](M);}};xn(U,_0x22d713(0x11f),_0x22d713(0x21e)),U=_n([_0x390f57(_0x980bdf),E(0x1,_0x5486a6(_0x5d75c5)),E(0x2,_0x16026c),E(0x3,_0x54649f),E(0x4,_0x258048),E(0x5,_0x5486a6(_0x309e63))],U);export{tn as MCPConfigPanel,I as MCPConfigUIController,A as MCPConnectionUIController,ln as MCPStatusDisplay,M as MCPUIMenuController,B as OpenMCPConfigPanelCommand,U as UniverMCPUIPlugin,On as enUS,kn as zhCN};
|
|
1
|
+
var _0x59fe35=_0x595e;(function(_0x1525d9,_0x426053){var _0x31bbba=_0x595e,_0x5ef77a=_0x1525d9();while(!![]){try{var _0x39da0f=parseInt(_0x31bbba(0x251))/0x1+-parseInt(_0x31bbba(0x2df))/0x2*(-parseInt(_0x31bbba(0x19a))/0x3)+parseInt(_0x31bbba(0x1d3))/0x4*(-parseInt(_0x31bbba(0x1ed))/0x5)+-parseInt(_0x31bbba(0x2af))/0x6+-parseInt(_0x31bbba(0x269))/0x7*(-parseInt(_0x31bbba(0x2a9))/0x8)+-parseInt(_0x31bbba(0x1f3))/0x9+-parseInt(_0x31bbba(0x26d))/0xa;if(_0x39da0f===_0x426053)break;else _0x5ef77a['push'](_0x5ef77a['shift']());}catch(_0xc64343){_0x5ef77a['push'](_0x5ef77a['shift']());}}}(_0x4eca,0x19900));var Ee=Object[_0x59fe35(0x1df)],we=(_0x1e6b67,_0x4d813d,_0x2ee2da)=>_0x4d813d in _0x1e6b67?Ee(_0x1e6b67,_0x4d813d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2ee2da}):_0x1e6b67[_0x4d813d]=_0x2ee2da,x=(_0x2a5722,_0x3bf107,_0x353129)=>we(_0x2a5722,typeof _0x3bf107!=_0x59fe35(0x2d0)?_0x3bf107+'':_0x3bf107,_0x353129);import{LocaleService as _0x48ba7d,Inject as _0x50a4eb,Injector as _0x5c7687,IConfigService as _0x3974e0,ILocalStorageService as _0x3eb33c,ILogService as _0x4e3682,Disposable as _0x27ab76,CommandType as _0x1b90db,ICommandService as _0x379a79,DependentOn as _0xd7b32,Plugin as _0x434fef,merge as _0x2a78d2}from'@univerjs/core';import{jsxs as _0xb81ebb,jsx as _0x15d662}from'react/jsx-runtime';import{MCPConnectionStatus as _0x17885d,MCPConnectionError as _0x35e78f,MCPConnectionController as _0x258827,MCP_PLUGIN_CONFIG_KEY as _0x44805b,UniverMCPPlugin as _0x3301bd}from'@univerjs-pro/mcp';import{Input as _0x12981b,Button as _0x44bd29,MessageType as _0x37eb6d,Tooltip as _0x407cb9,clsx as _0x82591e}from'@univerjs/design';import{useDependency as _0x43319f,useObservable as _0x25801a,IUIPartsService as _0x3ec93b,IDialogService as _0x31eff8,IMessageService as _0x420807,ComponentManager as _0xfeb019,connectInjector as _0x166d9e,BuiltInUIPart as _0x5f0ac2,MenuItemType as _0x23e6c4,RibbonStartGroup as _0x1ebdfc,IMenuManagerService as _0x2a1ce3}from'@univerjs/ui';import{BehaviorSubject as _0x134c99}from'rxjs';import{forwardRef as _0x112614,useRef as _0x37fd82,createElement as _0x39fe0f,useState as _0x2874a3,useCallback as _0x359711}from'react';import{ISocketService as _0x25cbe5,WebSocketService as _0x4c9c0e}from'@univerjs/network';var g=function(){var _0x58aefb=_0x59fe35;return g=Object[_0x58aefb(0x264)]||function(_0x243ac2){var _0x158899=_0x58aefb;for(var _0x21bfbc,_0x37ee0b=0x1,_0x5bd049=arguments['length'];_0x37ee0b<_0x5bd049;_0x37ee0b++){_0x21bfbc=arguments[_0x37ee0b];for(var _0x4b419f in _0x21bfbc)Object[_0x158899(0x276)]['hasOwnProperty'][_0x158899(0x2d1)](_0x21bfbc,_0x4b419f)&&(_0x243ac2[_0x4b419f]=_0x21bfbc[_0x4b419f]);}return _0x243ac2;},g[_0x58aefb(0x23b)](this,arguments);},We=function(_0x496c3e,_0x34d928){var _0x442e7a=_0x59fe35,_0x2832e7={};for(var _0x240f82 in _0x496c3e)Object[_0x442e7a(0x276)][_0x442e7a(0x2d3)][_0x442e7a(0x2d1)](_0x496c3e,_0x240f82)&&_0x34d928[_0x442e7a(0x22c)](_0x240f82)<0x0&&(_0x2832e7[_0x240f82]=_0x496c3e[_0x240f82]);if(_0x496c3e!=null&&typeof Object[_0x442e7a(0x250)]==_0x442e7a(0x1ce)){for(var _0x5b92a6=0x0,_0x240f82=Object[_0x442e7a(0x250)](_0x496c3e);_0x5b92a6<_0x240f82[_0x442e7a(0x259)];_0x5b92a6++)_0x34d928['indexOf'](_0x240f82[_0x5b92a6])<0x0&&Object[_0x442e7a(0x276)][_0x442e7a(0x239)]['call'](_0x496c3e,_0x240f82[_0x5b92a6])&&(_0x2832e7[_0x240f82[_0x5b92a6]]=_0x496c3e[_0x240f82[_0x5b92a6]]);}return _0x2832e7;},b=_0x112614(function(_0x33bb41,_0x244ad0){var _0x227d3e=_0x59fe35,_0x47f0fa=_0x33bb41[_0x227d3e(0x20e)],_0x48e199=_0x33bb41['id'],_0x52b6b7=_0x33bb41['className'],_0x4c67a2=_0x33bb41['extend'],_0x488417=We(_0x33bb41,[_0x227d3e(0x20e),'id',_0x227d3e(0x2e2),_0x227d3e(0x1a8)]),_0x567cf7=_0x227d3e(0x1a7)[_0x227d3e(0x1bc)](_0x48e199,'\x20')[_0x227d3e(0x1bc)](_0x52b6b7||'')[_0x227d3e(0x1e8)](),_0x428868=_0x37fd82('_'[_0x227d3e(0x1bc)](Xe()));return le(_0x47f0fa,''[_0x227d3e(0x1bc)](_0x48e199),{'defIds':_0x47f0fa[_0x227d3e(0x24d)],'idSuffix':_0x428868[_0x227d3e(0x190)]},g({'ref':_0x244ad0,'className':_0x567cf7},_0x488417),_0x4c67a2);});function le(_0x47462c,_0x37841d,_0x5e1aa8,_0x220adc,_0x42f36e){var _0x4033b8=_0x59fe35;return _0x39fe0f(_0x47462c[_0x4033b8(0x26c)],g(g({'key':_0x37841d},qe(_0x47462c,_0x5e1aa8,_0x42f36e)),_0x220adc),(Ze(_0x47462c,_0x5e1aa8)['children']||[])[_0x4033b8(0x2ef)](function(_0x3ac96c,_0x5258fd){var _0x1ba2fc=_0x4033b8;return le(_0x3ac96c,''[_0x1ba2fc(0x1bc)](_0x37841d,'-')[_0x1ba2fc(0x1bc)](_0x47462c[_0x1ba2fc(0x26c)],'-')[_0x1ba2fc(0x1bc)](_0x5258fd),_0x5e1aa8,void 0x0,_0x42f36e);}));}function qe(_0x2a4806,_0x4ca139,_0x433f68){var _0xc59507=_0x59fe35,_0x2b4ada=g({},_0x2a4806[_0xc59507(0x1e3)]);_0x433f68!=null&&_0x433f68[_0xc59507(0x21a)]&&_0x2b4ada['fill']===_0xc59507(0x21a)&&(_0x2b4ada[_0xc59507(0x1d0)]=_0x433f68[_0xc59507(0x21a)]),_0x2a4806['tag']===_0xc59507(0x1db)&&_0x2b4ada['id']&&(_0x2b4ada['id']=_0x2b4ada['id']+_0x4ca139[_0xc59507(0x271)]),Object[_0xc59507(0x2a7)](_0x2b4ada)[_0xc59507(0x2a4)](function(_0x431ef2){var _0x5bcf74=_0xc59507,_0x568221=_0x431ef2[0x0],_0x4815e8=_0x431ef2[0x1];_0x568221===_0x5bcf74(0x1db)&&typeof _0x4815e8==_0x5bcf74(0x267)&&(_0x2b4ada[_0x568221]=_0x4815e8['replace'](/url\(#(.*)\)/,'url(#$1'[_0x5bcf74(0x1bc)](_0x4ca139[_0x5bcf74(0x271)],')')));});var _0x3f87eb=_0x4ca139[_0xc59507(0x24d)];return!_0x3f87eb||_0x3f87eb[_0xc59507(0x259)]===0x0||(_0x2a4806[_0xc59507(0x26c)]===_0xc59507(0x1ff)&&_0x2b4ada[_0xc59507(0x1f8)]&&(_0x2b4ada[_0xc59507(0x1f8)]=_0x2b4ada[_0xc59507(0x1f8)]+_0x4ca139[_0xc59507(0x271)]),Object[_0xc59507(0x2a7)](_0x2b4ada)[_0xc59507(0x2a4)](function(_0x129c47){var _0x5f1a36=_0xc59507,_0x2a1423=_0x129c47[0x0],_0x404f02=_0x129c47[0x1];typeof _0x404f02==_0x5f1a36(0x267)&&(_0x2b4ada[_0x2a1423]=_0x404f02[_0x5f1a36(0x23f)](/url\(#(.*)\)/,_0x5f1a36(0x1c5)[_0x5f1a36(0x1bc)](_0x4ca139['idSuffix'],')')));})),_0x2b4ada;}function Ze(_0x316582,_0x53d583){var _0x23c0ee=_0x59fe35,_0x480fbb,_0x46ca46=_0x53d583[_0x23c0ee(0x24d)];return!_0x46ca46||_0x46ca46['length']===0x0?_0x316582:_0x316582[_0x23c0ee(0x26c)]===_0x23c0ee(0x2de)&&(!((_0x480fbb=_0x316582[_0x23c0ee(0x1ab)])===null||_0x480fbb===void 0x0)&&_0x480fbb['length'])?g(g({},_0x316582),{'children':_0x316582[_0x23c0ee(0x1ab)][_0x23c0ee(0x2ef)](function(_0x5fbcfb){var _0x3db069=_0x23c0ee;return typeof _0x5fbcfb[_0x3db069(0x1e3)]['id']=='string'&&_0x46ca46&&_0x46ca46['includes'](_0x5fbcfb[_0x3db069(0x1e3)]['id'])?g(g({},_0x5fbcfb),{'attrs':g(g({},_0x5fbcfb[_0x3db069(0x1e3)]),{'id':_0x5fbcfb[_0x3db069(0x1e3)]['id']+_0x53d583[_0x3db069(0x271)]})}):_0x5fbcfb;})}):_0x316582;}function Xe(){var _0x1cf28a=_0x59fe35;return Math[_0x1cf28a(0x1f5)]()['toString'](0x24)[_0x1cf28a(0x232)](0x2,0x8);}b[_0x59fe35(0x22d)]=_0x59fe35(0x211);function _0x595e(_0x2a012b,_0x1c7e2a){var _0x4ecac9=_0x4eca();return _0x595e=function(_0x595e75,_0x5e1dac){_0x595e75=_0x595e75-0x18c;var _0x5cbf08=_0x4ecac9[_0x595e75];return _0x5cbf08;},_0x595e(_0x2a012b,_0x1c7e2a);}var Je={'tag':_0x59fe35(0x1a2),'attrs':{'xmlns':_0x59fe35(0x2a2),'fill':_0x59fe35(0x21e),'viewBox':_0x59fe35(0x18c),'width':_0x59fe35(0x227),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x59fe35(0x2ce),'fillRule':_0x59fe35(0x288),'clipRule':_0x59fe35(0x288)}}]},ue=_0x112614(function(_0x48d9e6,_0x5edfb0){var _0x5c5428=_0x59fe35;return _0x39fe0f(b,Object['assign']({},_0x48d9e6,{'id':_0x5c5428(0x248),'ref':_0x5edfb0,'icon':Je}));});ue[_0x59fe35(0x22d)]=_0x59fe35(0x1ad);var Qe={'tag':_0x59fe35(0x1a2),'attrs':{'xmlns':_0x59fe35(0x2a2),'fill':_0x59fe35(0x21e),'viewBox':_0x59fe35(0x226),'width':'1em','height':_0x59fe35(0x227)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x59fe35(0x284),'strokeLinecap':_0x59fe35(0x233),'strokeLinejoin':_0x59fe35(0x233),'strokeWidth':1.33}},{'tag':'path','attrs':{'stroke':'currentColor','d':_0x59fe35(0x2d2),'strokeLinecap':_0x59fe35(0x233),'strokeLinejoin':'round','strokeWidth':1.33}}]},ve=_0x112614(function(_0x2dd4ff,_0x2673b6){var _0xc7bf97=_0x59fe35;return _0x39fe0f(b,Object[_0xc7bf97(0x264)]({},_0x2dd4ff,{'id':_0xc7bf97(0x1b8),'ref':_0x2673b6,'icon':Qe}));});ve[_0x59fe35(0x22d)]='CloseSmallSingle';var en={'tag':_0x59fe35(0x1a2),'attrs':{'xmlns':_0x59fe35(0x2a2),'fill':'none','viewBox':_0x59fe35(0x18c),'width':_0x59fe35(0x227),'height':_0x59fe35(0x227)},'children':[{'tag':_0x59fe35(0x1bb),'attrs':{'fill':_0x59fe35(0x1e9),'d':_0x59fe35(0x206)}},{'tag':_0x59fe35(0x1bb),'attrs':{'fill':'currentColor','d':_0x59fe35(0x294)}},{'tag':'path','attrs':{'fill':_0x59fe35(0x1e9),'d':_0x59fe35(0x1d1),'fillRule':_0x59fe35(0x288),'clipRule':_0x59fe35(0x288)}}]},de=_0x112614(function(_0x97adc,_0x52a87b){var _0x7a7398=_0x59fe35;return _0x39fe0f(b,Object[_0x7a7398(0x264)]({},_0x97adc,{'id':_0x7a7398(0x2cd),'ref':_0x52a87b,'icon':en}));});de[_0x59fe35(0x22d)]='HelpSingle';var nn={'tag':_0x59fe35(0x1a2),'attrs':{'xmlns':_0x59fe35(0x2a2),'fill':_0x59fe35(0x21e),'viewBox':_0x59fe35(0x18c),'width':'1em','height':_0x59fe35(0x227)},'children':[{'tag':'g','attrs':{'clipPath':_0x59fe35(0x193)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x59fe35(0x2a6),'strokeLinecap':_0x59fe35(0x233),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x59fe35(0x223),'attrs':{'id':_0x59fe35(0x281)},'children':[{'tag':_0x59fe35(0x1bb),'attrs':{'fill':_0x59fe35(0x2e1),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x59fe35(0x281)]},ge=_0x112614(function(_0x3eaa86,_0x329974){var _0x480188=_0x59fe35;return _0x39fe0f(b,Object[_0x480188(0x264)]({},_0x3eaa86,{'id':'off-line-icon','ref':_0x329974,'icon':nn}));});ge['displayName']=_0x59fe35(0x234);var rn={'tag':'svg','attrs':{'xmlns':_0x59fe35(0x2a2),'fill':'none','viewBox':_0x59fe35(0x2ea),'width':_0x59fe35(0x227),'height':_0x59fe35(0x227)},'children':[{'tag':'g','attrs':{'clipPath':_0x59fe35(0x1f4)},'children':[{'tag':_0x59fe35(0x1bb),'attrs':{'stroke':_0x59fe35(0x1e9),'d':_0x59fe35(0x2ae),'strokeLinecap':_0x59fe35(0x233),'strokeLinejoin':_0x59fe35(0x233),'strokeWidth':1.2}}]},{'tag':_0x59fe35(0x2de),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x59fe35(0x1e7)},'children':[{'tag':_0x59fe35(0x1bb),'attrs':{'fill':_0x59fe35(0x2e1),'d':_0x59fe35(0x268),'transform':'translate(.97)'}}]}]}],'defIds':['on-line-icon_clip0_910_349']},fe=_0x112614(function(_0x8807c0,_0xd269e9){return _0x39fe0f(b,Object['assign']({},_0x8807c0,{'id':'on-line-icon','ref':_0xd269e9,'icon':rn}));});fe['displayName']=_0x59fe35(0x265);function tn(_0x544eeb){var _0x47fc2b=_0x59fe35,_0x369340,_0x515ed8;const {mcpCoreConfig:_0x34e988,onSave:_0x593454,loading:_0x26c495=!0x1,config:_0x8e43c6,connectionStatus$:_0x2e031e,connectionError$:_0x38792b,currentApiKey$:_0x2e6c30,currentSessionId$:_0x555651}=_0x544eeb,_0x208387=_0x43319f(_0x48ba7d),_0x5a044a=_0x25801a(_0x2e031e,_0x17885d[_0x47fc2b(0x1f7)]),_0x2c372a=_0x25801a(_0x38792b,_0x35e78f[_0x47fc2b(0x2c1)]),_0x21b494=_0x25801a(_0x555651,''),_0x1b5c69=_0x25801a(_0x2e6c30,''),[_0x4fb6f5,_0x28737e]=_0x2874a3(_0x1b5c69||''),_0x137da7=!0x0,_0x5f3aa8=_0x8e43c6[_0x47fc2b(0x292)]&&_0x34e988['mcpServerUrl']&&(_0x34e988[_0x47fc2b(0x1de)]['includes']('univer.plus')||_0x34e988['mcpServerUrl']['includes'](_0x47fc2b(0x1b2))),_0x661404=(_0x369340=_0x34e988[_0x47fc2b(0x1de)])==null?void 0x0:_0x369340[_0x47fc2b(0x195)](_0x47fc2b(0x2ec)),_0x2298cc=(_0x515ed8=_0x34e988[_0x47fc2b(0x1de)])==null?void 0x0:_0x515ed8['includes'](_0x47fc2b(0x1b2)),_0x1e1a2e=_0x661404?_0x47fc2b(0x1dd):_0x47fc2b(0x29a),_0x3faea5=_0x8e43c6[_0x47fc2b(0x292)]&&(_0x661404||_0x2298cc),[_0x29d7c1,_0x46dd74]=_0x2874a3(!_0x4fb6f5[_0x47fc2b(0x1e8)]()),_0x300a07=(_0x1d8c53,_0x1a1d05)=>{var _0x1ca398=_0x47fc2b;if(_0x1a1d05===_0x35e78f[_0x1ca398(0x1d2)])return _0x1ca398(0x296);switch(_0x1d8c53){case _0x17885d[_0x1ca398(0x2d9)]:return _0x1ca398(0x27d);case _0x17885d[_0x1ca398(0x2cc)]:case _0x17885d[_0x1ca398(0x1e1)]:return _0x1ca398(0x298);case _0x17885d['FAILED']:return _0x1ca398(0x296);default:return _0x1ca398(0x1ec);}},_0xd019d3=(_0x10ac0d,_0x46bfcb)=>{var _0x209669=_0x47fc2b;if(_0x46bfcb===_0x35e78f[_0x209669(0x1d2)])return'univer-bg-red-500';switch(_0x10ac0d){case _0x17885d[_0x209669(0x2d9)]:return _0x209669(0x212);case _0x17885d[_0x209669(0x2cc)]:case _0x17885d['RETRYING']:return _0x209669(0x19b);case _0x17885d['FAILED']:return _0x209669(0x1c2);default:return _0x209669(0x26b);}},_0x5e9014=_0x46ed97=>{var _0x372cd9=_0x47fc2b;switch(_0x46ed97){case _0x17885d[_0x372cd9(0x2d9)]:return _0x208387['t'](_0x372cd9(0x24b));case _0x17885d['CONNECTING']:return _0x208387['t']('mcpConfig.connectionStatus.connecting');case _0x17885d['FAILED']:return _0x208387['t']('mcpConfig.connectionStatus.failed');case _0x17885d[_0x372cd9(0x1e1)]:return _0x208387['t'](_0x372cd9(0x1e6));default:return _0x208387['t']('mcpConfig.connectionStatus.disconnected');}},_0x2174fd=_0x468059=>{var _0x34ee11=_0x47fc2b;switch(_0x468059){case _0x35e78f['INVALID_API_KEY']:return _0x208387['t'](_0x34ee11(0x217));case _0x35e78f[_0x34ee11(0x1be)]:return _0x208387['t']('mcpConfig.connectionError.sessionOccupied');case _0x35e78f['NETWORK_ERROR']:return _0x208387['t']('mcpConfig.connectionError.networkError');case _0x35e78f[_0x34ee11(0x224)]:return _0x208387['t'](_0x34ee11(0x287));default:return'';}},_0x1c419f=_0x359711(()=>{var _0x1ad818=_0x47fc2b;const _0x4bf7ea={..._0x34e988,'apiKey':_0x4fb6f5[_0x1ad818(0x1e8)](),'enableAuth':_0x137da7};_0x593454(_0x4bf7ea);},[_0x34e988,_0x4fb6f5,_0x137da7,_0x593454]),_0x5b8f18=_0x4fb6f5[_0x47fc2b(0x1e8)]()[_0x47fc2b(0x259)]>0x0;return _0xb81ebb('div',{'className':_0x47fc2b(0x26f),'children':[_0x15d662(_0x47fc2b(0x201),{'className':_0x47fc2b(0x2ed),'children':_0xb81ebb(_0x47fc2b(0x201),{'className':_0x47fc2b(0x209),'children':[_0x15d662(_0x47fc2b(0x201),{'className':_0x47fc2b(0x1b0),'children':_0x15d662(_0x47fc2b(0x1c4),{'className':_0x47fc2b(0x291),'children':'⚙'})}),_0x15d662(_0x47fc2b(0x201),{'children':_0x15d662('p',{'className':_0x47fc2b(0x21b),'children':_0x208387['t'](_0x47fc2b(0x22f))})})]})}),_0xb81ebb(_0x47fc2b(0x201),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x15d662(_0x47fc2b(0x201),{'className':_0x47fc2b(0x221)+_0x300a07(_0x5a044a,_0x2c372a)+_0x47fc2b(0x29c),'children':_0xb81ebb(_0x47fc2b(0x201),{'className':_0x47fc2b(0x299),'children':[_0x15d662('div',{'className':_0x47fc2b(0x1a0)+_0xd019d3(_0x5a044a,_0x2c372a)+'\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'}),_0x15d662(_0x47fc2b(0x1c4),{'className':_0x47fc2b(0x214),'children':_0x5e9014(_0x5a044a)})]})}),_0x2c372a!==_0x35e78f['NONE']&&(_0x5a044a===_0x17885d[_0x47fc2b(0x1a9)]||_0x2c372a===_0x35e78f['INVALID_API_KEY'])&&_0x15d662(_0x47fc2b(0x201),{'className':_0x47fc2b(0x24c),'children':_0xb81ebb(_0x47fc2b(0x201),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0x15d662('span',{'className':'univer-flex-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0x15d662('p',{'className':_0x47fc2b(0x28f),'children':_0x2174fd(_0x2c372a)})]})})]}),_0x15d662('div',{'className':_0x47fc2b(0x26e),'children':_0xb81ebb(_0x47fc2b(0x201),{'className':_0x47fc2b(0x283),'children':[_0xb81ebb(_0x47fc2b(0x201),{'className':_0x47fc2b(0x191),'children':[_0xb81ebb(_0x47fc2b(0x1dc),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x15d662('span',{'children':'🔑'}),'\x20',_0x208387['t'](_0x47fc2b(0x1c1)),_0x15d662(_0x47fc2b(0x1c4),{'className':_0x47fc2b(0x202),'children':'*'}),_0x5f3aa8&&_0x15d662('a',{'href':_0x47fc2b(0x29b),'onClick':()=>_0x46dd74(!0x0),'className':_0x47fc2b(0x1cf),'title':_0x208387['t'](_0x47fc2b(0x2b6)),'children':_0x15d662(de,{})})]}),_0x15d662(_0x12981b,{'type':_0x47fc2b(0x2c7),'placeholder':_0x208387['t'](_0x47fc2b(0x1e0)),'value':_0x4fb6f5,'onChange':_0x28737e,'disabled':_0x26c495,'autoComplete':'off'}),_0x15d662('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x208387['t']('mcpConfig.apiKeyHint')})]}),_0x5f3aa8&&_0x29d7c1&&_0xb81ebb(_0x47fc2b(0x201),{'className':_0x47fc2b(0x246),'children':[_0x15d662('a',{'href':'javascript:void(0)','onClick':()=>_0x46dd74(!0x1),'className':_0x47fc2b(0x273),'title':_0x47fc2b(0x2db),'children':_0x15d662(ve,{})}),_0xb81ebb(_0x47fc2b(0x201),{'className':_0x47fc2b(0x210),'children':[_0x15d662(_0x47fc2b(0x201),{'className':'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','children':_0x15d662('span',{'className':_0x47fc2b(0x2be),'children':'🚀'})}),_0xb81ebb(_0x47fc2b(0x201),{'className':_0x47fc2b(0x1b7),'children':[_0x15d662('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x208387['t'](_0x47fc2b(0x2b6))}),_0x15d662('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x208387['t'](_0x47fc2b(0x2d8))}),_0x15d662(_0x47fc2b(0x201),{'className':_0x47fc2b(0x219),'children':_0x3faea5&&_0xb81ebb('a',{'href':_0x1e1a2e,'target':_0x47fc2b(0x199),'rel':_0x47fc2b(0x2ee),'className':_0x47fc2b(0x24f),'children':[_0x15d662('span',{'children':'🤖'}),_0x208387['t'](_0x47fc2b(0x2b8)),_0x15d662(_0x47fc2b(0x1c4),{'className':_0x47fc2b(0x249),'children':'↗'})]})}),_0xb81ebb('div',{'className':_0x47fc2b(0x2a1),'children':['✨','\x20',_0x208387['t'](_0x47fc2b(0x29f))]})]})]})]}),_0x8e43c6['showDeveloperTools']&&_0xb81ebb(_0x47fc2b(0x201),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0xb81ebb('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x15d662(_0x47fc2b(0x1c4),{'children':'🔗'}),'\x20',_0x208387['t'](_0x47fc2b(0x2e7))]}),_0xb81ebb(_0x47fc2b(0x201),{'className':_0x47fc2b(0x20d),'children':[_0xb81ebb(_0x47fc2b(0x201),{'className':'univer-space-y-3','children':[_0x15d662('p',{'className':_0x47fc2b(0x2a3),'children':_0x208387['t'](_0x47fc2b(0x2d4))}),_0xb81ebb(_0x47fc2b(0x201),{'className':_0x47fc2b(0x191),'children':[_0x15d662(_0x47fc2b(0x201),{'className':_0x47fc2b(0x1b4),'children':_0x208387['t'](_0x47fc2b(0x1cb))}),_0xb81ebb(_0x47fc2b(0x201),{'className':_0x47fc2b(0x275),'children':[_0xb81ebb('div',{'className':_0x47fc2b(0x299),'children':[_0x15d662(_0x47fc2b(0x1c4),{'className':_0x47fc2b(0x1a5),'children':'1'}),_0x208387['t'](_0x47fc2b(0x2cf))]}),_0xb81ebb(_0x47fc2b(0x201),{'className':_0x47fc2b(0x299),'children':[_0x15d662('span',{'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'}),_0x208387['t'](_0x47fc2b(0x230))]}),_0xb81ebb(_0x47fc2b(0x201),{'className':_0x47fc2b(0x299),'children':[_0x15d662('span',{'className':_0x47fc2b(0x1a5),'children':'3'}),_0x208387['t']('mcpConfig.configStep3')]})]})]})]}),_0xb81ebb(_0x47fc2b(0x201),{'className':_0x47fc2b(0x191),'children':[_0x15d662('div',{'className':_0x47fc2b(0x1b4),'children':_0x47fc2b(0x19f)}),_0x15d662(_0x47fc2b(0x201),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0x15d662(_0x47fc2b(0x18e),{'className':_0x47fc2b(0x192),'children':_0x47fc2b(0x1a1)+_0x21b494+_0x47fc2b(0x238)+(_0x4fb6f5||'<API_KEY>')+_0x47fc2b(0x277)})})]}),_0xb81ebb(_0x47fc2b(0x201),{'className':_0x47fc2b(0x1bf),'children':[_0x15d662(_0x47fc2b(0x201),{'className':_0x47fc2b(0x1b4),'children':_0x208387['t'](_0x47fc2b(0x2ab))}),_0xb81ebb('div',{'className':_0x47fc2b(0x191),'children':[_0xb81ebb(_0x47fc2b(0x201),{'className':_0x47fc2b(0x1c9),'children':[_0x15d662(_0x47fc2b(0x201),{'className':_0x47fc2b(0x25a)}),_0xb81ebb(_0x47fc2b(0x201),{'className':_0x47fc2b(0x18d),'children':[_0x15d662(_0x47fc2b(0x201),{'className':_0x47fc2b(0x1c6),'children':_0x47fc2b(0x1e5)}),_0x15d662(_0x47fc2b(0x201),{'className':_0x47fc2b(0x1d5),'children':_0x208387['t'](_0x47fc2b(0x2e5))})]})]}),_0xb81ebb(_0x47fc2b(0x201),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x15d662(_0x47fc2b(0x201),{'className':'univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0xb81ebb(_0x47fc2b(0x201),{'className':_0x47fc2b(0x18d),'children':[_0x15d662(_0x47fc2b(0x201),{'className':_0x47fc2b(0x1c6),'children':'Authorization:'}),_0x15d662('div',{'className':_0x47fc2b(0x1d5),'children':_0x208387['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x15d662(_0x44bd29,{'onClick':_0x1c419f,'disabled':!_0x5b8f18||_0x26c495,'className':_0x47fc2b(0x21f),'children':_0x26c495?_0xb81ebb(_0x47fc2b(0x1c4),{'className':_0x47fc2b(0x299),'children':[_0x15d662(_0x47fc2b(0x1c4),{'children':'⟲'}),_0x208387['t'](_0x47fc2b(0x2a8))]}):_0xb81ebb('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x15d662(ue,{}),_0x208387['t'](_0x47fc2b(0x19c))]})}),_0x15d662(_0x47fc2b(0x201),{'className':_0x47fc2b(0x2d6),'children':_0xb81ebb('div',{'className':_0x47fc2b(0x1f1),'children':[_0x15d662(_0x47fc2b(0x1c4),{'className':'univer-flex-shrink-0\x20univer-text-blue-500','children':'💡'}),_0xb81ebb(_0x47fc2b(0x201),{'className':_0x47fc2b(0x247),'children':[_0x15d662(_0x47fc2b(0x201),{'className':'univer-font-medium','children':_0x47fc2b(0x236)}),_0xb81ebb(_0x47fc2b(0x201),{'children':['•',_0x208387['t'](_0x47fc2b(0x1f0))]}),_0xb81ebb(_0x47fc2b(0x201),{'children':['•',_0x208387['t'](_0x47fc2b(0x293))]})]})]})})]})})]});}const L=_0x59fe35(0x295),ie={'showDeveloperTools':!0x1};var on=Object[_0x59fe35(0x2ac)],sn=(_0x35b81f,_0x4c8558,_0x1da569,_0xded8b6)=>{var _0x3e5f57=_0x59fe35;for(var _0x3db150=_0xded8b6>0x1?void 0x0:_0xded8b6?on(_0x4c8558,_0x1da569):_0x4c8558,_0xcb90d0=_0x35b81f[_0x3e5f57(0x259)]-0x1,_0x4475c5;_0xcb90d0>=0x0;_0xcb90d0--)(_0x4475c5=_0x35b81f[_0xcb90d0])&&(_0x3db150=_0x4475c5(_0x3db150)||_0x3db150);return _0x3db150;},f=(_0x21572f,_0x2b4c01)=>(_0x5cde59,_0x56cd40)=>_0x2b4c01(_0x5cde59,_0x56cd40,_0x21572f);function _0x4eca(){var _0x48fc09=['mcpStatus.connecting','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','mcpStatus.connected','univer-text-white','showDeveloperTools','mcpConfig.note2','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','mcp-ui.config','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','COMMAND','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer-flex\x20univer-items-center\x20univer-gap-2','https://console.univer.ai','javascript:void(0)','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','get','点击配置\x20MCP','mcpConfig.apiApplyInfo.getStarted','Bearer\x20','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','http://www.w3.org/2000/svg','univer-text-xs\x20univer-text-gray-600','forEach','mcp-ui.command.openConfigPanel','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','entries','mcpConfig.saving','42584mGGGmv','subscribe','mcpConfig.configParameters','getOwnPropertyDescriptor','sessionId$','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','541092ReZYAi','mcpStatus.disconnected','MCP\x20连接中...','hover:univer-opacity-80','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','mcpConfig.validation.apiKeyTooShort','_apiKey$','mcpConfig.apiApplyInfo.title','isValid','mcpConfig.apiApplyInfo.univerAiLabel','Failed\x20to\x20save\x20configuration','_initializeCommands','mcpStatus.failed','_mcpCoreConfig$','_handleConfigure','univer-text-blue-600','配置\x20MCP\x20使用\x20AI\x20操作电子表格','enableAutoConnect','NONE','MCP\x20重连中...','_validateConfig','_loadStoredApiKey','_dialogService','请输入您的\x20API\x20密钥','text','API\x20key\x20is\x20required\x20to\x20connect','mcpStatus.retrying','warn','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','CONNECTING','help-single','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','mcpConfig.configStep1','symbol','call','M5.21243\x2012.287L11.8791\x205.62036','hasOwnProperty','mcpConfig.configInstructions','Save\x20Configuration','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','mcpStatus.clickToConfigure','mcpConfig.apiApplyInfo.description','CONNECTED','open','Close','重启您的\x20MCP\x20客户端以使配置生效','_uiPartsService','defs','2NmeRNR','API\x20密钥无效,请检查您的密钥后重试','white','className','mcpConfig.configError','API\x20Key','mcpConfig.sessionIdDescription','Connection\x20Failed','mcpConfig.connectionInfo','_localStorageService','Success','0\x200\x2017\x2016','配置无效','univer.plus','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','noopener\x20noreferrer','map','univer-text-yellow-500','MCP\x20已连接','_config','0\x200\x2016\x2016','univer-min-w-0\x20univer-flex-1','pre','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','current','univer-space-y-2','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','url(#off-line-icon_clip0_910_343)','_createConfigPanelComponent','includes','mcpStatus.clickToConnect','配置保存成功','MenuIcon','_blank','307569DqcoCn','univer-bg-blue-500','mcpConfig.save','网络连接错误,请检查您的网络连接','value','MCP\x20Configuration','\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','{\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=','svg','subscribeConfigValue$','Configuration\x20Parameters:','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','_initializeMenus','univerjs-icon\x20univerjs-icon-','extend','FAILED','setConfig','children','_logService','CheckMarkIcon','mcpConfig.validation.apiKeyRequired','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','几秒钟内获取您的\x20API\x20密钥','univer.ai','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','bottom','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','univer-flex-1','close-small-single','univer-flex\x20univer-cursor-pointer\x20univer-items-center','API\x20密钥无效,请检查密钥是否正确','path','concat','Univer\x20AI\x20Console','SESSION_ID_OCCUPIED','univer-space-y-3','error','mcpConfig.apiKey','univer-bg-red-500','带有\x20Bearer\x20前缀的\x20API\x20密钥。','span','url(#$1','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','启用身份验证以获得安全连接','univer-flex\x20univer-items-start\x20univer-gap-3','连接失败','mcpConfig.configStepTitle','_config$','univer-text-green-500','function','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','fill','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','INVALID_API_KEY','100IqxPBs','_handleConfigSave','univer-text-xs\x20univer-text-gray-500','errorMessage','apiKey','_injector','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','mcpStatus.networkError','mask','label','https://console.univer.plus','mcpServerUrl','defineProperty','mcpConfig.apiKeyPlaceholder','RETRYING','_initStatusComponent','attrs','Enable\x20Authentication','univer_session_id:','mcpConfig.connectionStatus.retrying','on-line-icon_clip0_910_349','trim','currentColor','onStarting','超出最大重试次数,请稍后再试','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','550csdemG','setItem','What\x20is\x20API\x20Key?','mcpConfig.note1','univer-flex\x20univer-gap-3','BUTTON','256104lJYPxn','url(#on-line-icon_clip0_910_349)','random','MCP\x20配置','DISCONNECTED','xlink:href','Error','MCPConfigPanel','API\x20密钥','getCurrentConfig','已连接','close','use','Retrying...','div','univer-text-red-500','MCP\x20客户端配置','next','连接中...','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','push','重连中...','univer-flex\x20univer-items-center\x20univer-gap-3','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Max\x20Retries\x20Exceeded','API\x20key\x20with\x20Bearer\x20prefix.','univer-space-y-4','icon','Get\x20your\x20API\x20key\x20in\x20seconds','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','UniverIcon','univer-bg-green-500','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','univer-text-sm\x20univer-font-medium','API\x20密钥不能为空','配置步骤:','mcpConfig.connectionError.invalidApiKey','MCP\x20Connection\x20Failed','univer-flex\x20univer-flex-wrap\x20univer-gap-2','colorChannel1','univer-text-sm\x20univer-text-gray-500','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP:\x20会话被占用','none','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','Connecting...','\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','univer-text-gray-500','clipPath','MAX_RETRIES_EXCEEDED','会话当前被占用,请稍后再试','0\x200\x2017\x2017','1em','最大重试次数','registerComponent','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Connected','indexOf','displayName','univer-mr-2\x20univer-flex\x20univer-text-xl','mcpConfig.description','mcpConfig.configStep2','MCP:\x20无效的\x20API\x20密钥','substring','round','OffLineIcon','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','Configuration\x20Notes:','register','\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','propertyIsEnumerable','getItem','apply','保存中...','配置参数:','OTHERS','replace','_configService','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','复制以下\x20JSON\x20配置','getConfig','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','mergeMenu','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','check-mark-icon','univer-text-gray-400','MCP:\x20超出最大重试次数','mcpConfig.connectionStatus.connected','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','defIds','Univer\x20AI\x20控制台','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','getOwnPropertySymbols','192662OrscIv','NETWORK_ERROR','Click\x20to\x20connect\x20MCP','MCP\x20Retrying...','MCP\x20Client\x20Configuration','MCP_UI_PLUGIN','MCP\x20Disconnected','配置保存失败','length','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','_mcpConnectionController','mcpStatus.sessionOccupied','mcpConfig.title','\x20-\x20','registerCommand','配置更改将立即生效','__setCustomHeaders','has','Saving...','assign','OnLineIcon','MCP:\x20网络错误','string','M0\x200H16V16H0z','231uuWpPp','_menuManagerService','univer-bg-gray-500','tag','2447520GIlbiL','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','show','idSuffix','_messageService','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','mcpStatus.maxRetriesExceeded','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','prototype','\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}','_loading$','MCP\x20状态未知','_componentManager','add','showConfigPanel','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','未连接','_localeService','API\x20密钥长度至少需要\x2010\x20位','off-line-icon_clip0_910_343','_commandService','univer-space-y-5','M5.21243\x205.62036L11.8791\x2012.287','_initConfigSync','启用身份验证','mcpConfig.connectionError.maxRetriesExceeded','evenodd','disposeWithMe','_registerComponent','MCP\x20Unknown\x20Status','_connectionController','mcp-config-dialog'];_0x4eca=function(){return _0x48fc09;};return _0x4eca();}const T='mcp.apiKey',R=_0x59fe35(0x28d);let I=class extends _0x27ab76{constructor(_0x4a531a,_0x27b48d,_0x34e0ff,_0x5d39aa,_0x2aba9e,_0x934de9,_0x5d667e,_0x2445eb,_0x2012ae,_0xc2b995){var _0x5edfa2=_0x59fe35;super(),x(this,_0x5edfa2(0x278),new _0x134c99(!0x1)),x(this,'_mcpCoreConfig$',new _0x134c99({})),x(this,'_config$',new _0x134c99({})),x(this,_0x5edfa2(0x2b5),new _0x134c99('')),x(this,_0x5edfa2(0x1d4),async _0x56396f=>{var _0xa16f56=_0x5edfa2,_0x558f6a,_0x4a0450;this['_loading$']['next'](!0x0);try{const _0x13d8f1=await this[_0xa16f56(0x2c3)](_0x56396f);if(!_0x13d8f1[_0xa16f56(0x2b7)]){this[_0xa16f56(0x272)][_0xa16f56(0x270)]({'type':_0x37eb6d[_0xa16f56(0x1f9)],'content':_0x13d8f1[_0xa16f56(0x1d6)]||this['_localeService']['t']('mcpConfig.validation.invalidConfig')});return;}_0x56396f[_0xa16f56(0x1d7)]?await this[_0xa16f56(0x2e8)][_0xa16f56(0x1ee)](T,_0x56396f[_0xa16f56(0x1d7)][_0xa16f56(0x1e8)]()):await this[_0xa16f56(0x2e8)]['removeItem'](T),this[_0xa16f56(0x2b5)][_0xa16f56(0x204)](((_0x558f6a=_0x56396f[_0xa16f56(0x1d7)])==null?void 0x0:_0x558f6a['trim']())||''),this['_mcpConnectionController'][_0xa16f56(0x261)]({'Authorization':_0xa16f56(0x2a0)+((_0x4a0450=_0x56396f[_0xa16f56(0x1d7)])==null?void 0x0:_0x4a0450['trim']())}),this[_0xa16f56(0x272)]['show']({'type':_0x37eb6d[_0xa16f56(0x2e9)],'content':this[_0xa16f56(0x27f)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{var _0x4474b1=_0xa16f56;this[_0x4474b1(0x2c5)][_0x4474b1(0x1fe)](R);},0x320);}catch(_0x3ce431){this[_0xa16f56(0x1ac)][_0xa16f56(0x1c0)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x3ce431),this['_messageService'][_0xa16f56(0x270)]({'type':_0x37eb6d[_0xa16f56(0x1f9)],'content':this[_0xa16f56(0x27f)]['t'](_0xa16f56(0x2e3))});}finally{this[_0xa16f56(0x278)]['next'](!0x1);}}),(this[_0x5edfa2(0x1d8)]=_0x4a531a,this[_0x5edfa2(0x2dd)]=_0x27b48d,this['_configService']=_0x34e0ff,this[_0x5edfa2(0x2e8)]=_0x5d39aa,this[_0x5edfa2(0x2c5)]=_0x2aba9e,this[_0x5edfa2(0x272)]=_0x934de9,this[_0x5edfa2(0x27a)]=_0x5d667e,this[_0x5edfa2(0x27f)]=_0x2445eb,this[_0x5edfa2(0x1ac)]=_0x2012ae,this[_0x5edfa2(0x25b)]=_0xc2b995,this[_0x5edfa2(0x285)](),this[_0x5edfa2(0x2c4)](),this['_registerComponent']());}[_0x59fe35(0x27c)](){var _0x24d589=_0x59fe35;this[_0x24d589(0x2c5)][_0x24d589(0x2da)]({'id':R,'title':{'title':this[_0x24d589(0x27f)]['t'](_0x24d589(0x25d))},'children':{'label':_0x24d589(0x1fa)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x555c37=_0x24d589;this[_0x555c37(0x2c5)][_0x555c37(0x1fe)](R);}});}[_0x59fe35(0x1fc)](){var _0x4847d8=_0x59fe35;return this[_0x4847d8(0x2bc)][_0x4847d8(0x19e)];}[_0x59fe35(0x28a)](){var _0x3a8176=_0x59fe35;this[_0x3a8176(0x289)](this[_0x3a8176(0x27a)][_0x3a8176(0x237)](_0x3a8176(0x1fa),this['_createConfigPanelComponent']()));}[_0x59fe35(0x194)](){var _0x4cb4ec=_0x59fe35;return _0x166d9e(()=>{var _0x14285c=_0x595e,_0x2932a1,_0x24efa3,_0x240d52;return _0x15d662(tn,{'config':this[_0x14285c(0x1cc)][_0x14285c(0x19e)],'mcpCoreConfig':this[_0x14285c(0x2bc)][_0x14285c(0x19e)],'currentApiKey$':this[_0x14285c(0x2b5)],'onSave':this[_0x14285c(0x1d4)],'loading':this['_loading$'][_0x14285c(0x19e)],'connectionStatus$':(_0x2932a1=this[_0x14285c(0x25b)])==null?void 0x0:_0x2932a1['connectionStatus$'],'connectionError$':(_0x24efa3=this[_0x14285c(0x25b)])==null?void 0x0:_0x24efa3['connectionError$'],'currentSessionId$':(_0x240d52=this['_mcpConnectionController'])==null?void 0x0:_0x240d52[_0x14285c(0x2ad)]});},this[_0x4cb4ec(0x1d8)]);}['_initConfigSync'](){var _0x1de37c=_0x59fe35;this[_0x1de37c(0x289)](this[_0x1de37c(0x240)][_0x1de37c(0x1a3)](_0x44805b)[_0x1de37c(0x2aa)](_0x1a651c=>{this['_mcpCoreConfig$']['next'](_0x1a651c||{});}));const _0x5a260c=this['_configService'][_0x1de37c(0x243)](_0x44805b);this[_0x1de37c(0x2bc)][_0x1de37c(0x204)](_0x5a260c||{}),this[_0x1de37c(0x289)](this['_configService'][_0x1de37c(0x1a3)](L)[_0x1de37c(0x2aa)](_0x4c6baa=>{var _0x1c3f26=_0x1de37c;this['_config$'][_0x1c3f26(0x204)](_0x4c6baa||{});}));const _0x34dd0b=this['_configService'][_0x1de37c(0x243)](L);this[_0x1de37c(0x1cc)][_0x1de37c(0x204)](_0x34dd0b||{});}async[_0x59fe35(0x2c4)](){var _0x4f1f47=_0x59fe35;const _0x20dc89=await this['_localStorageService'][_0x4f1f47(0x23a)](T);_0x20dc89&&(this['_mcpConnectionController'][_0x4f1f47(0x261)]({'Authorization':_0x4f1f47(0x2a0)+_0x20dc89}),this[_0x4f1f47(0x2b5)][_0x4f1f47(0x204)](_0x20dc89));}async[_0x59fe35(0x2c3)](_0x53c750){var _0x526e66=_0x59fe35;if(!_0x53c750[_0x526e66(0x1d7)]||_0x53c750[_0x526e66(0x1d7)][_0x526e66(0x1e8)]()[_0x526e66(0x259)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x526e66(0x1ae))};if(_0x53c750[_0x526e66(0x1d7)][_0x526e66(0x1e8)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x526e66(0x27f)]['t'](_0x526e66(0x2b4))};try{const _0x5edcba=await this[_0x526e66(0x1d8)]['get'](_0x258827)['validateApiKey'](_0x53c750[_0x526e66(0x1d7)]['trim']());return _0x5edcba[_0x526e66(0x2b7)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x5edcba[_0x526e66(0x1c0)]||this[_0x526e66(0x27f)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x3794e9){return console[_0x526e66(0x2ca)](_0x526e66(0x235),_0x3794e9),{'isValid':!0x0};}}};I=sn([f(0x0,_0x50a4eb(_0x5c7687)),f(0x1,_0x3ec93b),f(0x2,_0x3974e0),f(0x3,_0x3eb33c),f(0x4,_0x31eff8),f(0x5,_0x420807),f(0x6,_0x50a4eb(_0xfeb019)),f(0x7,_0x50a4eb(_0x48ba7d)),f(0x8,_0x4e3682),f(0x9,_0x50a4eb(_0x258827))],I);const B={'id':_0x59fe35(0x2a5),'type':_0x1b90db[_0x59fe35(0x297)],'handler':async(_0x59a7c0,_0x3e5296)=>(_0x59a7c0[_0x59fe35(0x29d)](I)[_0x59fe35(0x27c)](),!0x0)};function pe(_0x4ec8b2,_0x478b98){var _0x102b7c=_0x59fe35;switch(_0x4ec8b2){case _0x17885d[_0x102b7c(0x1f7)]:return _0x102b7c(0x2b0);case _0x17885d['CONNECTING']:return _0x102b7c(0x28e);case _0x17885d[_0x102b7c(0x2d9)]:return _0x102b7c(0x290);case _0x17885d[_0x102b7c(0x1a9)]:switch(_0x478b98){case _0x35e78f[_0x102b7c(0x1d2)]:return'mcpStatus.invalidApiKey';case _0x35e78f[_0x102b7c(0x1be)]:return _0x102b7c(0x25c);case _0x35e78f[_0x102b7c(0x252)]:return _0x102b7c(0x1da);case _0x35e78f[_0x102b7c(0x224)]:return _0x102b7c(0x274);default:return _0x102b7c(0x2bb);}case _0x17885d[_0x102b7c(0x1e1)]:return _0x102b7c(0x2c9);default:return'mcpStatus.unknown';}}function cn(_0x21d33a,_0x5a8861,_0x570d81){var _0x45dd89=_0x59fe35;const _0x2b01cc=pe(_0x21d33a,_0x5a8861),_0x1c97f7=_0x570d81['t'](_0x2b01cc);return _0x21d33a===_0x17885d[_0x45dd89(0x1f7)]&&_0x5a8861===_0x35e78f[_0x45dd89(0x1d2)]?_0x1c97f7+_0x45dd89(0x25e)+_0x570d81['t'](_0x45dd89(0x2d7)):_0x21d33a===_0x17885d[_0x45dd89(0x2d9)]?''+_0x1c97f7:_0x21d33a===_0x17885d[_0x45dd89(0x1f7)]||_0x21d33a===_0x17885d[_0x45dd89(0x1a9)]?_0x1c97f7+_0x45dd89(0x25e)+_0x570d81['t'](_0x45dd89(0x196)):_0x1c97f7;}function an(_0x111b20){var _0x23af27=_0x59fe35;switch(_0x111b20){case _0x17885d[_0x23af27(0x2d9)]:return _0x23af27(0x1cd);case _0x17885d[_0x23af27(0x2cc)]:case _0x17885d[_0x23af27(0x1e1)]:return _0x23af27(0x2f0);case _0x17885d[_0x23af27(0x1a9)]:case _0x17885d['DISCONNECTED']:return _0x23af27(0x202);default:return _0x23af27(0x222);}}function ln(_0x3f2824){var _0x451157=_0x59fe35;const {status$:_0x80f0e9,error$:_0x48ac0b,onConfigure:_0x2aeb1f}=_0x3f2824,_0x51ac34=_0x25801a(_0x80f0e9,_0x17885d[_0x451157(0x1f7)]),_0x2480da=_0x25801a(_0x48ac0b,_0x35e78f[_0x451157(0x2c1)]),_0x4e735a=_0x43319f(_0x48ba7d),_0x42c782=_0x51ac34===_0x17885d[_0x451157(0x2d9)],_0x5d84e0=_0x51ac34===_0x17885d[_0x451157(0x2cc)]||_0x51ac34===_0x17885d[_0x451157(0x1e1)],_0x7daa60=_0x4e735a['t'](pe(_0x51ac34,_0x2480da)),_0x5b9076=cn(_0x51ac34,_0x2480da,_0x4e735a),_0x572a81=an(_0x51ac34),_0x4f3e28=_0x42c782?_0x15d662(fe,{}):_0x15d662(ge,{}),_0x53510e=_0x359711(()=>{_0x2aeb1f&&_0x2aeb1f();},[_0x42c782,_0x5d84e0,_0x2aeb1f]);function _0x1759c3(){var _0x2a9374=_0x451157;return _0xb81ebb(_0x2a9374(0x201),{'className':_0x82591e(_0x2a9374(0x1b9),_0x2aeb1f&&_0x2a9374(0x2b2)),'onClick':_0x2aeb1f?_0x53510e:void 0x0,'children':[_0x15d662('div',{'className':_0x82591e(_0x2a9374(0x22e),_0x572a81),'children':_0x4f3e28}),_0x15d662(_0x2a9374(0x201),{'className':_0x2a9374(0x1b6),'children':_0x7daa60})]});}return _0x15d662(_0x407cb9,{'title':_0x5b9076,'placement':_0x451157(0x1b5),'children':_0x1759c3()});}var un=Object['getOwnPropertyDescriptor'],vn=(_0x6c50a7,_0x3e12d2,_0x489e97,_0x5b9d60)=>{var _0x3391a9=_0x59fe35;for(var _0x550dc1=_0x5b9d60>0x1?void 0x0:_0x5b9d60?un(_0x3e12d2,_0x489e97):_0x3e12d2,_0x41bef9=_0x6c50a7[_0x3391a9(0x259)]-0x1,_0x5a7570;_0x41bef9>=0x0;_0x41bef9--)(_0x5a7570=_0x6c50a7[_0x41bef9])&&(_0x550dc1=_0x5a7570(_0x550dc1)||_0x550dc1);return _0x550dc1;},j=(_0x49d335,_0x541c30)=>(_0x5413d8,_0x2bfe84)=>_0x541c30(_0x5413d8,_0x2bfe84,_0x49d335);let A=class extends _0x27ab76{constructor(_0x1be38b,_0x2062a6,_0x409750){var _0x76c23f=_0x59fe35;super(),this[_0x76c23f(0x1d8)]=_0x1be38b,this['_connectionController']=_0x2062a6,this['_uiPartsService']=_0x409750,this['_connectionController'][_0x76c23f(0x2c0)]=!0x1,this[_0x76c23f(0x1e2)]();}[_0x59fe35(0x1e2)](){var _0x35ea6a=_0x59fe35;this[_0x35ea6a(0x289)](this[_0x35ea6a(0x2dd)][_0x35ea6a(0x229)](_0x5f0ac2['HEADER_MENU'],()=>_0x166d9e(dn({'status$':this[_0x35ea6a(0x28c)]['connectionStatus$'],'error$':this[_0x35ea6a(0x28c)]['connectionError$'],'onConfigure':()=>this[_0x35ea6a(0x2bd)]()}),this[_0x35ea6a(0x1d8)])));}[_0x59fe35(0x2bd)](){var _0x23c7ee=_0x59fe35;this[_0x23c7ee(0x1d8)]['get'](I)['showConfigPanel']();}};A=vn([j(0x0,_0x50a4eb(_0x5c7687)),j(0x1,_0x50a4eb(_0x258827)),j(0x2,_0x3ec93b)],A);function dn(_0x4d3096){const {status$:_0x123ede,error$:_0x35d086,onConfigure:_0x6fe486}=_0x4d3096;return function(){return _0x15d662(ln,{'status$':_0x123ede,'error$':_0x35d086,'onConfigure':_0x6fe486});};}function gn(_0x2ee0c2){var _0xe02393=_0x59fe35;return{'id':B['id'],'type':_0x23e6c4[_0xe02393(0x1f2)],'icon':_0xe02393(0x198),'title':_0xe02393(0x25d),'tooltip':_0xe02393(0x25d)};}const fn={[_0x1ebdfc[_0x59fe35(0x23e)]]:{[B['id']]:{'order':0xa,'menuItemFactory':gn}}};var pn=Object[_0x59fe35(0x2ac)],mn=(_0x135b59,_0x2cc4cc,_0x4bd2d7,_0x3bc69a)=>{for(var _0x5172fe=_0x3bc69a>0x1?void 0x0:_0x3bc69a?pn(_0x2cc4cc,_0x4bd2d7):_0x2cc4cc,_0x56517b=_0x135b59['length']-0x1,_0x2b1c96;_0x56517b>=0x0;_0x56517b--)(_0x2b1c96=_0x135b59[_0x56517b])&&(_0x5172fe=_0x2b1c96(_0x5172fe)||_0x5172fe);return _0x5172fe;},re=(_0xcf9184,_0x47797c)=>(_0x2c82ff,_0x24976e)=>_0x47797c(_0x2c82ff,_0x24976e,_0xcf9184);let M=class extends _0x27ab76{constructor(_0x5bcac3,_0x133ad){var _0x49c071=_0x59fe35;super(),this[_0x49c071(0x282)]=_0x5bcac3,this[_0x49c071(0x26a)]=_0x133ad,this[_0x49c071(0x2ba)](),this[_0x49c071(0x1a6)]();}[_0x59fe35(0x2ba)](){var _0xa92589=_0x59fe35;[B][_0xa92589(0x2a4)](_0x49bf2a=>{var _0x2e704d=_0xa92589;this[_0x2e704d(0x289)](this[_0x2e704d(0x282)][_0x2e704d(0x25f)](_0x49bf2a));});}[_0x59fe35(0x1a6)](){var _0x3e347c=_0x59fe35;this[_0x3e347c(0x26a)][_0x3e347c(0x245)](fn);}};M=mn([re(0x0,_0x379a79),re(0x1,_0x2a1ce3)],M);const On={'mcpStatus':{'disconnected':_0x59fe35(0x257),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x59fe35(0x218),'retrying':_0x59fe35(0x254),'unknown':_0x59fe35(0x28b),'missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':'MCP:\x20Session\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x59fe35(0x20b),'clickToConnect':_0x59fe35(0x253),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x59fe35(0x19f),'description':_0x59fe35(0x20a),'apiKey':_0x59fe35(0x2e4),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x59fe35(0x1e4),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x59fe35(0x255),'mcpClientConfig':_0x59fe35(0x255),'configInstructions':_0x59fe35(0x1c7),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x59fe35(0x1d9),'authorizationDescription':_0x59fe35(0x20c),'configParameters':_0x59fe35(0x1a4),'maxRetries':'Max\x20Retries','save':_0x59fe35(0x2d5),'saving':_0x59fe35(0x263),'note1':_0x59fe35(0x22a),'note2':_0x59fe35(0x1b3),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x59fe35(0x2b9),'apiApplyInfo':{'title':_0x59fe35(0x1ef),'description':_0x59fe35(0x2cb),'univerAiLabel':_0x59fe35(0x1bd),'getStarted':_0x59fe35(0x20f)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x59fe35(0x21c),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x59fe35(0x244)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x59fe35(0x220),'connected':_0x59fe35(0x22b),'failed':_0x59fe35(0x2e6),'retrying':_0x59fe35(0x200)},'connectionError':{'missingApiKey':_0x59fe35(0x2c8),'invalidApiKey':_0x59fe35(0x2b3),'sessionOccupied':'Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','networkError':_0x59fe35(0x1af),'maxRetriesExceeded':_0x59fe35(0x213)}}},kn={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x59fe35(0x2b1),'connected':_0x59fe35(0x2f1),'failed':'MCP\x20连接失败','retrying':_0x59fe35(0x2c2),'unknown':_0x59fe35(0x279),'missingApiKey':'MCP:\x20缺少\x20API\x20密钥','invalidApiKey':_0x59fe35(0x231),'sessionOccupied':_0x59fe35(0x21d),'networkError':_0x59fe35(0x266),'maxRetriesExceeded':_0x59fe35(0x24a),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x59fe35(0x29e)},'mcpConfig':{'title':_0x59fe35(0x1f6),'description':_0x59fe35(0x2bf),'apiKey':_0x59fe35(0x1fb),'apiKeyPlaceholder':_0x59fe35(0x2c6),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x59fe35(0x286),'enableAuthHint':_0x59fe35(0x1c8),'connectionInfo':_0x59fe35(0x203),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x59fe35(0x216),'configStep1':_0x59fe35(0x242),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x59fe35(0x2dc),'sessionId':'会话ID','sessionIdDescription':_0x59fe35(0x18f),'authorizationDescription':_0x59fe35(0x1c3),'configParameters':_0x59fe35(0x23d),'maxRetries':_0x59fe35(0x228),'save':'保存配置','saving':_0x59fe35(0x23c),'note1':_0x59fe35(0x260),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x59fe35(0x197),'configError':_0x59fe35(0x258),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x59fe35(0x241),'univerAiLabel':_0x59fe35(0x24e),'getStarted':_0x59fe35(0x1b1)},'validation':{'apiKeyRequired':_0x59fe35(0x215),'apiKeyTooShort':_0x59fe35(0x280),'invalidConfig':_0x59fe35(0x2eb),'invalidApiKey':_0x59fe35(0x1ba)},'connectionStatus':{'disconnected':_0x59fe35(0x27e),'connecting':_0x59fe35(0x205),'connected':_0x59fe35(0x1fd),'failed':_0x59fe35(0x1ca),'retrying':_0x59fe35(0x208)},'connectionError':{'missingApiKey':'需要\x20API\x20密钥才能连接','invalidApiKey':_0x59fe35(0x2e0),'sessionOccupied':_0x59fe35(0x225),'networkError':_0x59fe35(0x19d),'maxRetriesExceeded':_0x59fe35(0x1eb)}}};var hn=Object[_0x59fe35(0x1df)],Cn=Object[_0x59fe35(0x2ac)],yn=(_0x5d2df1,_0x3018c7,_0x3ad86f)=>_0x3018c7 in _0x5d2df1?hn(_0x5d2df1,_0x3018c7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ad86f}):_0x5d2df1[_0x3018c7]=_0x3ad86f,_n=(_0x127e6c,_0xfd2019,_0x5596a6,_0xbe1f07)=>{var _0x5c693f=_0x59fe35;for(var _0x54361c=_0xbe1f07>0x1?void 0x0:_0xbe1f07?Cn(_0xfd2019,_0x5596a6):_0xfd2019,_0x1fa385=_0x127e6c[_0x5c693f(0x259)]-0x1,_0x4de59c;_0x1fa385>=0x0;_0x1fa385--)(_0x4de59c=_0x127e6c[_0x1fa385])&&(_0x54361c=_0x4de59c(_0x54361c)||_0x54361c);return _0x54361c;},E=(_0x52e021,_0x381f1c)=>(_0x5e4f4b,_0x29c285)=>_0x381f1c(_0x5e4f4b,_0x29c285,_0x52e021),xn=(_0x466e36,_0x673cee,_0x1c006e)=>yn(_0x466e36,_0x673cee+'',_0x1c006e);let U=class extends _0x434fef{constructor(_0x43ea32=ie,_0x22a1df,_0x352107,_0x444695,_0x40347d,_0x31c736){var _0x1c37c9=_0x59fe35;super(),this[_0x1c37c9(0x2f2)]=_0x43ea32,this[_0x1c37c9(0x1d8)]=_0x22a1df,this[_0x1c37c9(0x240)]=_0x352107,this[_0x1c37c9(0x2dd)]=_0x444695,this['_localStorageService']=_0x40347d,this[_0x1c37c9(0x27f)]=_0x31c736;const {..._0x4e865a}=_0x2a78d2({},ie,this[_0x1c37c9(0x2f2)]);this[_0x1c37c9(0x240)][_0x1c37c9(0x1aa)](L,_0x4e865a);}async[_0x59fe35(0x1ea)](){var _0x26eec6=_0x59fe35;const _0x2f0a2b=[[A],[I],[M]];this['_injector'][_0x26eec6(0x262)](_0x25cbe5)||_0x2f0a2b[_0x26eec6(0x207)]([_0x25cbe5,{'useClass':_0x4c9c0e}]),_0x2f0a2b[_0x26eec6(0x2a4)](_0x19c161=>this[_0x26eec6(0x1d8)][_0x26eec6(0x27b)](_0x19c161)),this['_injector']['get'](A),this[_0x26eec6(0x1d8)][_0x26eec6(0x29d)](I),this['_injector'][_0x26eec6(0x29d)](M);}};xn(U,'pluginName',_0x59fe35(0x256)),U=_n([_0xd7b32(_0x3301bd),E(0x1,_0x50a4eb(_0x5c7687)),E(0x2,_0x3974e0),E(0x3,_0x3ec93b),E(0x4,_0x3eb33c),E(0x5,_0x50a4eb(_0x48ba7d))],U);export{tn as MCPConfigPanel,I as MCPConfigUIController,A as MCPConnectionUIController,ln as MCPStatusDisplay,M as MCPUIMenuController,B as OpenMCPConfigPanelCommand,U as UniverMCPUIPlugin,On as enUS,kn as zhCN};
|
package/lib/es/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x3e0e3e=_0x51c8;function _0x51c8(_0x35f83c,_0x1e8d14){const _0x38eaec=_0x38ea();return _0x51c8=function(_0x51c8e1,_0x1ae3f3){_0x51c8e1=_0x51c8e1-0x1d7;let _0x7cc45b=_0x38eaec[_0x51c8e1];return _0x7cc45b;},_0x51c8(_0x35f83c,_0x1e8d14);}function _0x38ea(){const _0xdedafd=['7635300yvwhYx','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Retrying...','4536993QpWjwt','Enter\x20your\x20API\x20key','Save\x20Configuration','Copy\x20the\x20JSON\x20configuration\x20below','930412ebVjjA','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Connected','Click\x20to\x20configure\x20MCP','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','160YIXwph','MCP\x20Disconnected','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','1797894wdyLYd','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Enable\x20authentication\x20for\x20secure\x20connections','118392KzWHHG','MCP\x20Client\x20Configuration','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','MCP:\x20Max\x20Retries\x20Exceeded','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Session\x20ID','Configuration\x20saved\x20successfully','3362010sRSULU','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Connecting...','MCP\x20Configuration','MCP:\x20Invalid\x20API\x20Key','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Saving...','Click\x20to\x20connect\x20MCP','API\x20Key','Configuration\x20Steps:','MCP:\x20Session\x20Occupied','Configuration\x20Parameters:','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Univer\x20AI\x20Console','584507QtbnMk','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Enable\x20Authentication','Connection\x20Failed','Failed\x20to\x20save\x20configuration','MCP\x20Connected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file'];_0x38ea=function(){return _0xdedafd;};return _0x38ea();}(function(_0x2cb345,_0x40a201){const _0x153e81=_0x51c8,_0x397340=_0x2cb345();while(!![]){try{const _0x18de5e=-parseInt(_0x153e81(0x1ed))/0x1+parseInt(_0x153e81(0x1f6))/0x2+parseInt(_0x153e81(0x1e9))/0x3+parseInt(_0x153e81(0x1fa))/0x4+parseInt(_0x153e81(0x1e6))/0x5+-parseInt(_0x153e81(0x201))/0x6+-parseInt(_0x153e81(0x1df))/0x7*(parseInt(_0x153e81(0x1f2))/0x8);if(_0x18de5e===_0x40a201)break;else _0x397340['push'](_0x397340['shift']());}catch(_0x3e15b2){_0x397340['push'](_0x397340['shift']());}}}(_0x38ea,0xc5101));const e={'mcpStatus':{'disconnected':_0x3e0e3e(0x1f3),'connecting':'MCP\x20Connecting...','connected':_0x3e0e3e(0x1e4),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':_0x3e0e3e(0x205),'sessionOccupied':_0x3e0e3e(0x1db),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x3e0e3e(0x1fd),'clickToConnect':_0x3e0e3e(0x1d8),'clickToConfigure':_0x3e0e3e(0x1f0)},'mcpConfig':{'title':_0x3e0e3e(0x204),'description':_0x3e0e3e(0x1ee),'apiKey':_0x3e0e3e(0x1d9),'apiKeyPlaceholder':_0x3e0e3e(0x1ea),'apiKeyHint':_0x3e0e3e(0x1e7),'enableAuth':_0x3e0e3e(0x1e1),'enableAuthHint':_0x3e0e3e(0x1f9),'connectionInfo':_0x3e0e3e(0x1fb),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x3e0e3e(0x1f7),'configStepTitle':_0x3e0e3e(0x1da),'configStep1':_0x3e0e3e(0x1ec),'configStep2':_0x3e0e3e(0x1e5),'configStep3':_0x3e0e3e(0x1fe),'sessionId':_0x3e0e3e(0x1ff),'sessionIdDescription':_0x3e0e3e(0x1f8),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x3e0e3e(0x1dc),'maxRetries':'Max\x20Retries','save':_0x3e0e3e(0x1eb),'saving':_0x3e0e3e(0x1d7),'note1':_0x3e0e3e(0x202),'note2':_0x3e0e3e(0x1dd),'configSaved':_0x3e0e3e(0x200),'configError':_0x3e0e3e(0x1e3),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x3e0e3e(0x1f4),'univerAiLabel':_0x3e0e3e(0x1de),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x3e0e3e(0x1f1),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x3e0e3e(0x206)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x3e0e3e(0x203),'connected':_0x3e0e3e(0x1ef),'failed':_0x3e0e3e(0x1e2),'retrying':_0x3e0e3e(0x1e8)},'connectionError':{'missingApiKey':'API\x20key\x20is\x20required\x20to\x20connect','invalidApiKey':_0x3e0e3e(0x1fc),'sessionOccupied':_0x3e0e3e(0x1e0),'networkError':_0x3e0e3e(0x1f5),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};
|