@univerjs-pro/mcp-ui 0.10.12-nightly.202510221114 → 0.10.12-nightly.202510251119
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.css +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/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 +7 -7
package/lib/cjs/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x39294f=_0xbb8f;function _0x4354(){const _0x308809=['7656mBmKPB','1736758wftXkW','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configuration\x20Steps:','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Enable\x20authentication\x20for\x20secure\x20connections','Enable\x20Authentication','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20key\x20with\x20Bearer\x20prefix.','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20key\x20is\x20required','Configuration\x20saved\x20successfully','Session\x20ID','MCP\x20Unknown\x20Status','MCP\x20Connecting...','564uRpmEr','971157oljWUg','368952MCpcmG','1835qLObge','Configuration\x20Parameters:','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Save\x20Configuration','Click\x20to\x20connect\x20MCP','539BxVTno','Disconnected','Invalid\x20configuration','1114002kIxmZH','155270tJFCRv','MCP:\x20Max\x20Retries\x20Exceeded','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Saving...','MCP\x20Connection\x20Failed','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP:\x20Session\x20ID\x20Occupied','69349IklrZL','1cHvKrz','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Enter\x20your\x20API\x20key','MCP\x20Connected','Connection\x20Failed','Failed\x20to\x20save\x20configuration','Click\x20to\x20configure\x20MCP'];_0x4354=function(){return _0x308809;};return _0x4354();}(function(_0x44b96e,_0x4aac4c){const _0x34fa46=_0xbb8f,_0x2ec0dd=_0x44b96e();while(!![]){try{const _0x496f16=-parseInt(_0x34fa46(0x1e7))/0x1*(-parseInt(_0x34fa46(0x1ef))/0x2)+parseInt(_0x34fa46(0x201))/0x3+-parseInt(_0x34fa46(0x1ee))/0x4*(parseInt(_0x34fa46(0x203))/0x5)+-parseInt(_0x34fa46(0x200))/0x6*(parseInt(_0x34fa46(0x1e6))/0x7)+parseInt(_0x34fa46(0x202))/0x8+parseInt(_0x34fa46(0x1dd))/0x9+parseInt(_0x34fa46(0x1de))/0xa*(parseInt(_0x34fa46(0x208))/0xb);if(_0x496f16===_0x4aac4c)break;else _0x2ec0dd['push'](_0x2ec0dd['shift']());}catch(_0x3237a5){_0x2ec0dd['push'](_0x2ec0dd['shift']());}}}(_0x4354,0x776a2));function _0xbb8f(_0x4e0d91,_0x21e41b){const _0x4354e5=_0x4354();return _0xbb8f=function(_0xbb8f19,_0x1a3f76){_0xbb8f19=_0xbb8f19-0x1dc;let _0x38a0a4=_0x4354e5[_0xbb8f19];return _0x38a0a4;},_0xbb8f(_0x4e0d91,_0x21e41b);}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x39294f(0x1ff),'connected':_0x39294f(0x1ea),'failed':_0x39294f(0x1e2),'retrying':'MCP\x20Retrying...','unknown':_0x39294f(0x1fe),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x39294f(0x1e5),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x39294f(0x1df),'clickToConnect':_0x39294f(0x207),'clickToConfigure':_0x39294f(0x1ed)},'mcpConfig':{'title':_0x39294f(0x1f3),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x39294f(0x1e9),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x39294f(0x1f7),'enableAuthHint':_0x39294f(0x1f6),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x39294f(0x1f2),'configStepTitle':_0x39294f(0x1f1),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x39294f(0x1e3),'configStep3':_0x39294f(0x1f5),'sessionId':_0x39294f(0x1fd),'sessionIdDescription':_0x39294f(0x1f4),'authorizationDescription':_0x39294f(0x1f9),'configParameters':_0x39294f(0x204),'maxRetries':'Max\x20Retries','save':_0x39294f(0x206),'saving':_0x39294f(0x1e1),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x39294f(0x1fc),'configError':_0x39294f(0x1ec),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x39294f(0x205),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x39294f(0x1fa)},'validation':{'apiKeyRequired':_0x39294f(0x1fb),'apiKeyTooShort':_0x39294f(0x1f0),'invalidConfig':_0x39294f(0x1dc),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x39294f(0x209),'connecting':'Connecting...','connected':'Connected','failed':_0x39294f(0x1eb),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x39294f(0x1e0),'sessionOccupied':_0x39294f(0x1e4),'networkError':_0x39294f(0x1e8),'maxRetriesExceeded':_0x39294f(0x1f8)}}},n=e;module['exports']=n;
|
package/lib/cjs/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x321bf8=_0x3680;function _0x4cd2(){const _0x4c7211=['MCP\x20Client\x20Configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','784483cpKUWU','1146990WrdFgS','16fWtCLa','MCP\x20Unknown\x20Status','Session\x20ID','176228KxNTaP','25jcVVNJ','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Click\x20to\x20configure\x20MCP','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Get\x20your\x20API\x20key\x20in\x20seconds','exports','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Univer\x20AI\x20Console','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20Parameters:','Connecting...','618639AyPJhl','Invalid\x20configuration','Enter\x20your\x20API\x20key','MCP:\x20Max\x20Retries\x20Exceeded','API\x20Key','Copy\x20the\x20JSON\x20configuration\x20below','Disconnected','60689HFwlPz','Retrying...','Enable\x20Authentication','1877139ikLIZO','Save\x20Configuration','MCP\x20Connection\x20Failed','Connection\x20Failed','MCP:\x20Unauthorized','9kfNyCN','Saving...','Configuration\x20saved\x20successfully','1473816yKZOEy','MCP\x20Connected','Click\x20to\x20connect\x20MCP','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','API\x20key\x20with\x20Bearer\x20prefix.','Failed\x20to\x20save\x20configuration','API\x20key\x20is\x20required','2nhztSz','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Network\x20Error','Configuration\x20Steps:','Connected'];_0x4cd2=function(){return _0x4c7211;};return _0x4cd2();}function _0x3680(_0x9bc03,_0x3ceaf9){const _0x4cd28f=_0x4cd2();return _0x3680=function(_0x368066,_0x4c7b72){_0x368066=_0x368066-0xb5;let _0x494da1=_0x4cd28f[_0x368066];return _0x494da1;},_0x3680(_0x9bc03,_0x3ceaf9);}(function(_0x5538df,_0xe9b2f9){const _0x5da068=_0x3680,_0x7c4788=_0x5538df();while(!![]){try{const _0x4fe41a=parseInt(_0x5da068(0xc8))/0x1*(parseInt(_0x5da068(0xda))/0x2)+parseInt(_0x5da068(0xc1))/0x3+parseInt(_0x5da068(0xe6))/0x4*(-parseInt(_0x5da068(0xe7))/0x5)+parseInt(_0x5da068(0xd3))/0x6+-parseInt(_0x5da068(0xe1))/0x7*(parseInt(_0x5da068(0xe3))/0x8)+-parseInt(_0x5da068(0xd0))/0x9*(parseInt(_0x5da068(0xe2))/0xa)+parseInt(_0x5da068(0xcb))/0xb;if(_0x4fe41a===_0xe9b2f9)break;else _0x7c4788['push'](_0x7c4788['shift']());}catch(_0xace8e8){_0x7c4788['push'](_0x7c4788['shift']());}}}(_0x4cd2,0x1e4a1));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x321bf8(0xd4),'failed':_0x321bf8(0xcd),'retrying':'MCP\x20Retrying...','unknown':_0x321bf8(0xe4),'unauthorized':_0x321bf8(0xcf),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x321bf8(0xdc),'maxRetriesExceeded':_0x321bf8(0xc4),'clickToConnect':_0x321bf8(0xd5),'clickToConfigure':_0x321bf8(0xb8)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x321bf8(0xdb),'apiKey':_0x321bf8(0xc5),'apiKeyPlaceholder':_0x321bf8(0xc3),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x321bf8(0xca),'enableAuthHint':_0x321bf8(0xbe),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x321bf8(0xdf),'configInstructions':_0x321bf8(0xb7),'configStepTitle':_0x321bf8(0xdd),'configStep1':_0x321bf8(0xc6),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x321bf8(0xe5),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x321bf8(0xd7),'configParameters':_0x321bf8(0xbf),'maxRetries':'Max\x20Retries','save':_0x321bf8(0xcc),'saving':_0x321bf8(0xd1),'note1':_0x321bf8(0xb6),'note2':_0x321bf8(0xbc),'configSaved':_0x321bf8(0xd2),'configError':_0x321bf8(0xd8),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x321bf8(0xd6),'univerAiLabel':_0x321bf8(0xbd),'getStarted':_0x321bf8(0xba)},'validation':{'apiKeyRequired':_0x321bf8(0xd9),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x321bf8(0xc2),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x321bf8(0xc7),'connecting':_0x321bf8(0xc0),'connected':_0x321bf8(0xde),'failed':_0x321bf8(0xce),'retrying':_0x321bf8(0xc9)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x321bf8(0xb5),'networkError':_0x321bf8(0xb9),'maxRetriesExceeded':_0x321bf8(0xe0)}}},n=e;module[_0x321bf8(0xbb)]=n;
|
package/lib/cjs/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1cc0dd=_0x33b5;(function(_0x314f3d,_0x406e64){const _0x392fe5=_0x33b5,_0x44bdd8=_0x314f3d();while(!![]){try{const _0x55e0af=parseInt(_0x392fe5(0x119))/0x1*(-parseInt(_0x392fe5(0x127))/0x2)+-parseInt(_0x392fe5(0x13b))/0x3*(-parseInt(_0x392fe5(0x141))/0x4)+parseInt(_0x392fe5(0x143))/0x5*(-parseInt(_0x392fe5(0x145))/0x6)+parseInt(_0x392fe5(0x132))/0x7+-parseInt(_0x392fe5(0x126))/0x8+parseInt(_0x392fe5(0x139))/0x9*(-parseInt(_0x392fe5(0x140))/0xa)+parseInt(_0x392fe5(0x147))/0xb*(parseInt(_0x392fe5(0x11b))/0xc);if(_0x55e0af===_0x406e64)break;else _0x44bdd8['push'](_0x44bdd8['shift']());}catch(_0x54aa17){_0x44bdd8['push'](_0x44bdd8['shift']());}}}(_0x54cc,0x6de83));function _0x33b5(_0x140931,_0x213640){const _0x54cc2c=_0x54cc();return _0x33b5=function(_0x33b5b9,_0x1e9013){_0x33b5b9=_0x33b5b9-0x117;let _0x2f78cd=_0x54cc2c[_0x33b5b9];return _0x2f78cd;},_0x33b5(_0x140931,_0x213640);}function _0x54cc(){const _0xd70e47=['144108FlBSUr','Max\x20Retries','Session\x20ID','Retrying...','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','API\x20key\x20is\x20required','Click\x20to\x20configure\x20MCP','Failed\x20to\x20save\x20configuration','MCP:\x20Max\x20Retries\x20Exceeded','Connected','Get\x20your\x20API\x20key\x20in\x20seconds','3510368KknOTh','2976KTgupc','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20Steps:','Enter\x20your\x20API\x20key','MCP\x20Configuration','Configuration\x20saved\x20successfully','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Connection\x20Failed','API\x20key\x20with\x20Bearer\x20prefix.','MCP:\x20Network\x20Error','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','1640212lUqNyR','MCP\x20Connected','MCP\x20Connecting...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Disconnected','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Saving...','405KDprnD','MCP:\x20Session\x20ID\x20Occupied','3UGMHWf','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Connecting...','MCP\x20Client\x20Configuration','Connection\x20Failed','176690onSzkV','1771484PLdVcc','Disconnected','5HBviwb','Enable\x20Authentication','372600CQJwvu','What\x20is\x20API\x20Key?','1155SvAFRR','MCP\x20Unknown\x20Status','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Enable\x20authentication\x20for\x20secure\x20connections','129omdqMi','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file'];_0x54cc=function(){return _0xd70e47;};return _0x54cc();}const e={'mcpStatus':{'disconnected':_0x1cc0dd(0x136),'connecting':_0x1cc0dd(0x134),'connected':_0x1cc0dd(0x133),'failed':_0x1cc0dd(0x12e),'retrying':'MCP\x20Retrying...','unknown':_0x1cc0dd(0x148),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x1cc0dd(0x13a),'networkError':_0x1cc0dd(0x130),'maxRetriesExceeded':_0x1cc0dd(0x123),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x1cc0dd(0x121)},'mcpConfig':{'title':_0x1cc0dd(0x12b),'description':_0x1cc0dd(0x117),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x1cc0dd(0x12a),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x1cc0dd(0x144),'enableAuthHint':_0x1cc0dd(0x118),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x1cc0dd(0x13e),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x1cc0dd(0x129),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x1cc0dd(0x11a),'configStep3':_0x1cc0dd(0x12d),'sessionId':_0x1cc0dd(0x11d),'sessionIdDescription':_0x1cc0dd(0x128),'authorizationDescription':_0x1cc0dd(0x12f),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x1cc0dd(0x11c),'save':'Save\x20Configuration','saving':_0x1cc0dd(0x138),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x1cc0dd(0x131),'configSaved':_0x1cc0dd(0x12c),'configError':_0x1cc0dd(0x122),'apiApplyInfo':{'title':_0x1cc0dd(0x146),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x1cc0dd(0x125)},'validation':{'apiKeyRequired':_0x1cc0dd(0x120),'apiKeyTooShort':_0x1cc0dd(0x137),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x1cc0dd(0x142),'connecting':_0x1cc0dd(0x13d),'connected':_0x1cc0dd(0x124),'failed':_0x1cc0dd(0x13f),'retrying':_0x1cc0dd(0x11e)},'connectionError':{'unauthorized':_0x1cc0dd(0x13c),'sessionOccupied':_0x1cc0dd(0x11f),'networkError':_0x1cc0dd(0x135),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module['exports']=n;
|
package/lib/cjs/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x34d372=_0xf987;(function(_0x1df404,_0x54f0c9){const _0x1d6bb3=_0xf987,_0x4a69b3=_0x1df404();while(!![]){try{const _0xd6a140=-parseInt(_0x1d6bb3(0x210))/0x1+parseInt(_0x1d6bb3(0x217))/0x2*(-parseInt(_0x1d6bb3(0x1ea))/0x3)+parseInt(_0x1d6bb3(0x1fe))/0x4*(-parseInt(_0x1d6bb3(0x1e6))/0x5)+-parseInt(_0x1d6bb3(0x215))/0x6+-parseInt(_0x1d6bb3(0x1f9))/0x7*(-parseInt(_0x1d6bb3(0x204))/0x8)+-parseInt(_0x1d6bb3(0x1fa))/0x9+parseInt(_0x1d6bb3(0x1ed))/0xa*(parseInt(_0x1d6bb3(0x20d))/0xb);if(_0xd6a140===_0x54f0c9)break;else _0x4a69b3['push'](_0x4a69b3['shift']());}catch(_0x36f631){_0x4a69b3['push'](_0x4a69b3['shift']());}}}(_0x5f17,0xbf378));const e={'mcpStatus':{'disconnected':_0x34d372(0x203),'connecting':_0x34d372(0x200),'connected':_0x34d372(0x20b),'failed':_0x34d372(0x20c),'retrying':_0x34d372(0x20f),'unknown':_0x34d372(0x1fb),'unauthorized':_0x34d372(0x205),'sessionOccupied':_0x34d372(0x1ef),'networkError':_0x34d372(0x1ec),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x34d372(0x214)},'mcpConfig':{'title':'MCP\x20配置','description':_0x34d372(0x1f1),'apiKey':_0x34d372(0x202),'apiKeyPlaceholder':_0x34d372(0x1e9),'apiKeyHint':_0x34d372(0x1f4),'enableAuth':_0x34d372(0x209),'enableAuthHint':_0x34d372(0x206),'connectionInfo':_0x34d372(0x208),'mcpClientConfig':_0x34d372(0x208),'configInstructions':_0x34d372(0x211),'configStepTitle':'配置步骤:','configStep1':_0x34d372(0x1ee),'configStep2':_0x34d372(0x1fd),'configStep3':_0x34d372(0x1f6),'sessionId':_0x34d372(0x1f0),'sessionIdDescription':_0x34d372(0x1f7),'authorizationDescription':_0x34d372(0x1f2),'configParameters':'配置参数:','maxRetries':_0x34d372(0x1e7),'save':'保存配置','saving':_0x34d372(0x201),'note1':_0x34d372(0x207),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x34d372(0x1f8),'configError':_0x34d372(0x1fc),'apiApplyInfo':{'title':_0x34d372(0x20e),'description':_0x34d372(0x1f5),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x34d372(0x216),'apiKeyTooShort':_0x34d372(0x1e8),'invalidConfig':_0x34d372(0x1eb),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':'未连接','connecting':'连接中...','connected':_0x34d372(0x1ff),'failed':_0x34d372(0x212),'retrying':'重连中...'},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x34d372(0x20a),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x34d372(0x1f3)}}};module[_0x34d372(0x213)]=e;function _0xf987(_0x50cfc0,_0x5a1088){const _0x5f17fc=_0x5f17();return _0xf987=function(_0xf98760,_0x53585f){_0xf98760=_0xf98760-0x1e6;let _0x3f1c2d=_0x5f17fc[_0xf98760];return _0x3f1c2d;},_0xf987(_0x50cfc0,_0x5a1088);}function _0x5f17(){const _0x35e569=['MCP\x20客户端配置','启用身份验证','会话\x20ID\x20已被占用,请稍后再试','MCP\x20已连接','MCP\x20连接失败','12045wmNLZR','什么是\x20API\x20密钥?','MCP\x20重连中...','866741DULfOi','将以下配置添加到您的\x20MCP\x20客户端设置中:','连接失败','exports','点击配置\x20MCP','1941516CuVRNd','API\x20密钥不能为空','8PadUEx','1795135vfKUtq','最大重试次数','API\x20密钥长度至少需要\x2010\x20位','请输入您的\x20API\x20密钥','756393JlCrMh','配置无效','MCP:\x20网络错误','27010gzTxul','复制以下\x20JSON\x20配置','MCP:\x20会话\x20ID\x20已被占用','会话ID','配置\x20MCP\x20使用\x20AI\x20操作电子表格','带有\x20Bearer\x20前缀的\x20API\x20密钥。','超出最大重试次数,请稍后再试','您的\x20API\x20密钥将在此浏览器中本地存储','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','重启您的\x20MCP\x20客户端以使配置生效','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','配置保存成功','49lkIYOW','1612431tHYpQT','MCP\x20状态未知','配置保存失败','将配置添加到您的\x20MCP\x20客户端设置文件中','12hWnKOU','已连接','MCP\x20连接中...','保存中...','API\x20密钥','MCP\x20已断开','1463680UpIapo','MCP:\x20未授权','启用身份验证以获得安全连接','配置更改将立即生效'];_0x5f17=function(){return _0x35e569;};return _0x5f17();}
|
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4d8531=_0x5e59;(function(_0x24d224,_0x555ad5){const _0x42b831=_0x5e59,_0x34dde2=_0x24d224();while(!![]){try{const _0x4b0302=parseInt(_0x42b831(0x1b9))/0x1*(parseInt(_0x42b831(0x1d7))/0x2)+parseInt(_0x42b831(0x1bf))/0x3+parseInt(_0x42b831(0x1c4))/0x4+parseInt(_0x42b831(0x1bc))/0x5+-parseInt(_0x42b831(0x1dd))/0x6*(-parseInt(_0x42b831(0x1d4))/0x7)+parseInt(_0x42b831(0x1db))/0x8+-parseInt(_0x42b831(0x1bd))/0x9;if(_0x4b0302===_0x555ad5)break;else _0x34dde2['push'](_0x34dde2['shift']());}catch(_0x54527a){_0x34dde2['push'](_0x34dde2['shift']());}}}(_0x10cd,0x602d5));function _0x5e59(_0x2e28e0,_0x4b2ab6){const _0x10cde8=_0x10cd();return _0x5e59=function(_0x5e59c7,_0x38b0d7){_0x5e59c7=_0x5e59c7-0x1ae;let _0x2dfbc7=_0x10cde8[_0x5e59c7];return _0x2dfbc7;},_0x5e59(_0x2e28e0,_0x4b2ab6);}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x4d8531(0x1c5),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x4d8531(0x1ba),'maxRetriesExceeded':_0x4d8531(0x1b1),'clickToConnect':_0x4d8531(0x1dc),'clickToConfigure':_0x4d8531(0x1d6)},'mcpConfig':{'title':_0x4d8531(0x1b3),'description':_0x4d8531(0x1d5),'apiKey':_0x4d8531(0x1b8),'apiKeyPlaceholder':_0x4d8531(0x1cb),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x4d8531(0x1c9),'enableAuthHint':_0x4d8531(0x1d9),'connectionInfo':_0x4d8531(0x1c0),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x4d8531(0x1af),'configStepTitle':_0x4d8531(0x1b2),'configStep1':_0x4d8531(0x1be),'configStep2':_0x4d8531(0x1c3),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x4d8531(0x1bb),'sessionIdDescription':_0x4d8531(0x1cd),'authorizationDescription':_0x4d8531(0x1d2),'configParameters':_0x4d8531(0x1c1),'maxRetries':_0x4d8531(0x1e0),'save':_0x4d8531(0x1d3),'saving':_0x4d8531(0x1b4),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x4d8531(0x1ce),'configSaved':_0x4d8531(0x1da),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x4d8531(0x1df),'description':_0x4d8531(0x1d8),'univerAiLabel':_0x4d8531(0x1b6),'getStarted':_0x4d8531(0x1c2)},'validation':{'apiKeyRequired':_0x4d8531(0x1b5),'apiKeyTooShort':_0x4d8531(0x1c7),'invalidConfig':_0x4d8531(0x1d0),'invalidApiKey':_0x4d8531(0x1c8)},'connectionStatus':{'disconnected':_0x4d8531(0x1b7),'connecting':_0x4d8531(0x1cc),'connected':_0x4d8531(0x1d1),'failed':'Connection\x20Failed','retrying':_0x4d8531(0x1de)},'connectionError':{'unauthorized':_0x4d8531(0x1ae),'sessionOccupied':_0x4d8531(0x1ca),'networkError':_0x4d8531(0x1c6),'maxRetriesExceeded':_0x4d8531(0x1cf)}}},n=e;function _0x10cd(){const _0x330579=['MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20Steps:','MCP\x20Configuration','Saving...','API\x20key\x20is\x20required','Univer\x20AI\x20Console','Disconnected','API\x20Key','6ZQnqbR','MCP:\x20Network\x20Error','Session\x20ID','1722675pQIdmE','6178815WoTBvt','Copy\x20the\x20JSON\x20configuration\x20below','5289HdDBNY','MCP\x20Client\x20Configuration','Configuration\x20Parameters:','Get\x20your\x20API\x20key\x20in\x20seconds','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','167772HAqLYb','MCP\x20Connected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enable\x20Authentication','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Enter\x20your\x20API\x20key','Connecting...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Invalid\x20configuration','Connected','API\x20key\x20with\x20Bearer\x20prefix.','Save\x20Configuration','159509KJCPiy','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Click\x20to\x20configure\x20MCP','171718wUyQlx','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20saved\x20successfully','869760edusGa','Click\x20to\x20connect\x20MCP','18dTdzKN','Retrying...','What\x20is\x20API\x20Key?','Max\x20Retries','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','exports'];_0x10cd=function(){return _0x330579;};return _0x10cd();}module[_0x4d8531(0x1b0)]=n;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x1b7882=_0x2d1b;(function(_0x4eec4,_0x28ea45){var _0x59f535=_0x2d1b,_0x4ba071=_0x4eec4();while(!![]){try{var _0x327d7b=-parseInt(_0x59f535(0x100))/0x1+-parseInt(_0x59f535(0xc4))/0x2+-parseInt(_0x59f535(0xf9))/0x3+-parseInt(_0x59f535(0x176))/0x4*(parseInt(_0x59f535(0x1a0))/0x5)+parseInt(_0x59f535(0x107))/0x6+-parseInt(_0x59f535(0x168))/0x7+parseInt(_0x59f535(0x1b0))/0x8;if(_0x327d7b===_0x28ea45)break;else _0x4ba071['push'](_0x4ba071['shift']());}catch(_0x400402){_0x4ba071['push'](_0x4ba071['shift']());}}}(_0x2d6f,0x7d922));var we=Object[_0x1b7882(0x123)],Ee=(_0x5481c6,_0x38f65f,_0x1323d9)=>_0x38f65f in _0x5481c6?we(_0x5481c6,_0x38f65f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1323d9}):_0x5481c6[_0x38f65f]=_0x1323d9,S=(_0x2f05f9,_0x6b1df2,_0x24b9a6)=>Ee(_0x2f05f9,typeof _0x6b1df2!=_0x1b7882(0x190)?_0x6b1df2+'':_0x6b1df2,_0x24b9a6);import{LocaleService as _0x47d7cf,Inject as _0x3e9de,Injector as _0x3ba8fc,IConfigService as _0x5ec846,ILocalStorageService as _0x52355c,ILogService as _0x26b5b8,Disposable as _0x36c120,CommandType as _0x5f3bb6,ICommandService as _0x18674d,DependentOn as _0x1a19ca,Plugin as _0x207904,merge as _0x38057c}from'@univerjs/core';import{jsxs as _0x54e033,jsx as _0x38426f}from'react/jsx-runtime';import{MCPConnectionStatus as _0xb12d13,MCPConnectionError as _0x491ff3,MCPConnectionController as _0x258b21,MCP_PLUGIN_CONFIG_KEY as _0x1ea1c4,UniverMCPPlugin as _0x1aba55}from'@univerjs-pro/mcp';import{Input as _0x3df6ee,Button as _0x20394a,MessageType as _0x255bba,Tooltip as _0x42a3a0,clsx as _0x5259eb}from'@univerjs/design';import{useDependency as _0x523459,useObservable as _0x5c9509,IUIPartsService as _0x5e4f85,IDialogService as _0x347417,IMessageService as _0x5894f9,ComponentManager as _0x55d9e6,connectInjector as _0x5e7271,BuiltInUIPart as _0x69721d,MenuItemType as _0x4e279c,RibbonStartGroup as _0x2ebc2e,IMenuManagerService as _0x113245}from'@univerjs/ui';import{BehaviorSubject as _0x14ba98}from'rxjs';import{forwardRef as _0x37ec7e,useRef as _0x13d8f1,createElement as _0x5f483c,useState as _0x33f78c,useCallback as _0xfe48b4}from'react';function _0x2d6f(){var _0x2600a6=['Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','univer-min-w-0\x20univer-flex-1','children','concat','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','_initStatusComponent','已连接','NONE','univer-space-y-5','univer-flex-shrink-0\x20univer-text-blue-500','toString','_loading$','_config$','MCP:\x20会话\x20ID\x20已被占用','currentColor','onStarting','mcpConfig.note2','Configuration\x20Notes:','mcpConfig.configStep3','CloseSmallSingle','_initializeCommands','Error','subscribe','_configService','CONNECTING','mcpConfig.connectionError.networkError','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','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCP_UI_PLUGIN','off-line-icon_clip0_910_343','_mcpCoreConfig$','error','univer-text-white','includes','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','您的\x20API\x20密钥将在此浏览器中本地存储','mcpConfig.connectionStatus.retrying','univer-text-yellow-500','subscribeConfigValue$','mcpConfig.connectionError.maxRetriesExceeded','translate(.97)','current','propertyIsEnumerable','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','warn','会话ID','getConfig','906280kKcVVH','mcpConfig.validation.invalidApiKey','validateApiKey','close','value','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','\x20-\x20','保存中...','next','hasOwnProperty','label','_createConfigPanelComponent','registerCommand','_menuManagerService','MCP\x20重连中...','errorMessage','univer-flex\x20univer-items-center','MCP:\x20Unauthorized','mcpConfig.validation.apiKeyRequired','_registerComponent','_initConfigSync','mask','univer-flex\x20univer-gap-3','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','MCP:\x20网络错误','CONNECTED','mcpConfig.validation.apiKeyTooShort','MCPConfigPanel','_initAutoConnect','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20密钥无效,请检查密钥是否正确','Invalid\x20configuration','MCP\x20状态未知','mcpStatus.connecting','M5.21243\x205.62036L11.8791\x2012.287','Max\x20Retries','svg','点击连接\x20MCP','call','mcpStatus.clickToConfigure','配置参数:','univer-text-gray-500','您的\x20API\x20密钥安全存储在本地存储中','getItem','_dialogService','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','{\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=','RETRYING','Configuration\x20Parameters:','https://console.univer.plus','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','Authorization:','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','646947Alimpd','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','_logService','_connectionController','Univer\x20AI\x20Console','colorChannel1','_handleConfigure','1001916aTZGXn','bottom','pre','showConfigPanel','univer_session_id:','defIds','mcpStatus.unknown','5945238OtgNaq','最大重试次数','clipPath','保存配置','url(#off-line-icon_clip0_910_343)','HEADER_MENU','univer.plus','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','function','univer-space-y-4','univer-flex\x20univer-items-center\x20univer-gap-3','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','Disconnected','has','_config','univer-text-sm\x20univer-font-medium','MCP\x20连接失败','connectionError$','length','span','Save\x20Configuration','http://www.w3.org/2000/svg','\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-flex\x20univer-items-start\x20univer-gap-3','mcpConfig.authorizationDescription','div','connectionStatus$','将配置添加到您的\x20MCP\x20客户端设置文件中','defineProperty','MCP\x20Unknown\x20Status','重连中...','COMMAND','0\x200\x2016\x2016','univer-text-red-500','showStatus','mcpConfig.save','Failed\x20to\x20save\x20configuration','将以下配置添加到您的\x20MCP\x20客户端设置中:','mcpConfig.apiApplyInfo.getStarted','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','Enable\x20authentication\x20for\x20secure\x20connections','mcpStatus.networkError','mcpServerUrl','Enter\x20your\x20API\x20key','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','OTHERS','MCP:\x20未授权','show','extend','mcpStatus.clickToConnect','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','0\x200\x2017\x2016','_loadStoredApiKey','disposeWithMe','Get\x20your\x20API\x20key\x20in\x20seconds','_initializeMenus','Configuration\x20saved\x20successfully','univerjs-icon\x20univerjs-icon-','_localeService','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','Retrying...','重启您的\x20MCP\x20客户端以使配置生效','string','_uiPartsService','mcpConfig.configStepTitle','off-line-icon','attrs','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','MAX_RETRIES_EXCEEDED','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','DISCONNECTED','univer-text-xs\x20univer-text-gray-600','mcpStatus.sessionOccupied','getOwnPropertyDescriptor','on-line-icon_clip0_910_349','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','tag','univer-space-y-2','MenuIcon','M5.21243\x2012.287L11.8791\x205.62036','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_injector','_messageService','none','xlink:href','isValid','white','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','__setCustomHeaders','map','API\x20密钥','MCP\x20Configuration','univer-flex\x20univer-items-start\x20univer-gap-2','mcpStatus.unauthorized','API\x20key\x20is\x20required','help-single','99267cjrDnY','1em','univer-flex\x20univer-items-center\x20univer-gap-2','_commandService','https://console.univer.ai','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','assign','mcpConfig.title','replace','点击配置\x20MCP','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','univer-text-green-500','javascript:void(0)','4psjjkp','MCP\x20Connection\x20Failed','Saving...','mcp-ui.command.openConfigPanel','mcpConfig.connectionInfo','enableAutoConnect','get','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','配置\x20MCP\x20使用\x20AI\x20操作电子表格','icon','random','univer-text-sm\x20univer-text-gray-500','MCP\x20连接中...','open','sessionId$','mcpConfig.validation.invalidConfig','univer-mr-2\x20univer-flex\x20univer-text-xl','What\x20is\x20API\x20Key?','MCP\x20Connected','Connection\x20Failed','MCP\x20已断开','indexOf','mcpConfig.apiKeyPlaceholder','BUTTON','请输入您的\x20API\x20密钥','univer-flex-1','symbol','连接中...','M0\x200H16V16H0z','超出最大重试次数,请稍后再试','entries','会话\x20ID\x20已被占用,请稍后再试','mcpConfig.apiApplyInfo.univerAiLabel','MCP:\x20超出最大重试次数','idSuffix','API\x20密钥长度至少需要\x2010\x20位','UniverIcon','showDeveloperTools','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','_validateConfig','配置保存成功','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','568835Vpiveu','_componentManager','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','univer-text-xs\x20univer-text-gray-500','evenodd','MCP\x20客户端配置','MCP\x20Client\x20Configuration','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','OnLineIcon','_localStorageService','未连接','_mcpConnectionController','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','mcpConfig.connectionStatus.disconnected','mcpConfig.connectionStatus.connected','prototype','10576944TRXFmw','Univer\x20AI\x20控制台','MCP:\x20Network\x20Error','getOwnPropertySymbols','MCP\x20Connecting...','Connected','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','apiKey','univer-bg-green-500','univer-bg-red-500','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','apply','_blank','mergeMenu','Copy\x20the\x20JSON\x20configuration\x20below','path','API\x20密钥不能为空','Click\x20to\x20configure\x20MCP','mcpConfig.configError','use','univer-text-blue-600','什么是\x20API\x20密钥?','displayName','round','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','setConfig','setItem','forEach','mcpConfig.connectionError.sessionOccupied','FAILED','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','mcpConfig.configSaved','mcpConfig.apiApplyInfo.title','register','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','mcpConfig.connectionStatus.failed','复制以下\x20JSON\x20配置','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','mcpStatus.disconnected','网络连接错误,请检查您的网络连接','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','几秒钟内获取您的\x20API\x20密钥','NETWORK_ERROR','配置更改将立即生效','removeItem','className','SESSION_ID_OCCUPIED','\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','MCP:\x20Max\x20Retries\x20Exceeded','fill','Session\x20ID','univer-bg-blue-500','MCP\x20已连接','trim','_apiKey$','启用身份验证','UNAUTHORIZED','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','mcpConfig.connectionStatus.connecting','defs','Bearer\x20','配置保存失败','\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','url(#$1'];_0x2d6f=function(){return _0x2600a6;};return _0x2d6f();}import{ISocketService as _0x1f8a9e,WebSocketService as _0x52805f}from'@univerjs/network';var f=function(){var _0x534ae3=_0x1b7882;return f=Object[_0x534ae3(0x16e)]||function(_0xd4a4dd){var _0x50ba1c=_0x534ae3;for(var _0x35bf79,_0x187a53=0x1,_0x394206=arguments[_0x50ba1c(0x119)];_0x187a53<_0x394206;_0x187a53++){_0x35bf79=arguments[_0x187a53];for(var _0x47baf4 in _0x35bf79)Object[_0x50ba1c(0x1af)]['hasOwnProperty'][_0x50ba1c(0xea)](_0x35bf79,_0x47baf4)&&(_0xd4a4dd[_0x47baf4]=_0x35bf79[_0x47baf4]);}return _0xd4a4dd;},f[_0x534ae3(0x1bb)](this,arguments);},Ye=function(_0x224924,_0x55894a){var _0x348736=_0x1b7882,_0x69b39={};for(var _0x5f4669 in _0x224924)Object[_0x348736(0x1af)][_0x348736(0xcd)]['call'](_0x224924,_0x5f4669)&&_0x55894a['indexOf'](_0x5f4669)<0x0&&(_0x69b39[_0x5f4669]=_0x224924[_0x5f4669]);if(_0x224924!=null&&typeof Object[_0x348736(0x1b3)]==_0x348736(0x10f)){for(var _0x2f1abd=0x0,_0x5f4669=Object[_0x348736(0x1b3)](_0x224924);_0x2f1abd<_0x5f4669[_0x348736(0x119)];_0x2f1abd++)_0x55894a[_0x348736(0x18b)](_0x5f4669[_0x2f1abd])<0x0&&Object['prototype'][_0x348736(0xbf)][_0x348736(0xea)](_0x224924,_0x5f4669[_0x2f1abd])&&(_0x69b39[_0x5f4669[_0x2f1abd]]=_0x224924[_0x5f4669[_0x2f1abd]]);}return _0x69b39;},w=_0x37ec7e(function(_0x30c7ab,_0xfe2089){var _0x3be02f=_0x1b7882,_0x189e2f=_0x30c7ab['icon'],_0x3a565d=_0x30c7ab['id'],_0xf5a19e=_0x30c7ab[_0x3be02f(0x7f)],_0x4bc6d1=_0x30c7ab[_0x3be02f(0x137)],_0x1b2980=Ye(_0x30c7ab,[_0x3be02f(0x17f),'id',_0x3be02f(0x7f),_0x3be02f(0x137)]),_0x45a37d=_0x3be02f(0x140)[_0x3be02f(0x96)](_0x3a565d,'\x20')[_0x3be02f(0x96)](_0xf5a19e||'')[_0x3be02f(0x87)](),_0x3a031d=_0x13d8f1('_'[_0x3be02f(0x96)](Xe()));return ue(_0x189e2f,''['concat'](_0x3a565d),{'defIds':_0x189e2f[_0x3be02f(0x105)],'idSuffix':_0x3a031d[_0x3be02f(0xbe)]},f({'ref':_0xfe2089,'className':_0x45a37d},_0x1b2980),_0x4bc6d1);});function ue(_0x65df94,_0x5dbc22,_0x2b01e2,_0x39001e,_0x5ca33b){var _0x43a7da=_0x1b7882;return _0x5f483c(_0x65df94[_0x43a7da(0x153)],f(f({'key':_0x5dbc22},Ze(_0x65df94,_0x2b01e2,_0x5ca33b)),_0x39001e),(qe(_0x65df94,_0x2b01e2)[_0x43a7da(0x95)]||[])[_0x43a7da(0x161)](function(_0x384b97,_0x1627aa){var _0x2a12b2=_0x43a7da;return ue(_0x384b97,''['concat'](_0x5dbc22,'-')[_0x2a12b2(0x96)](_0x65df94['tag'],'-')[_0x2a12b2(0x96)](_0x1627aa),_0x2b01e2,void 0x0,_0x5ca33b);}));}function Ze(_0x40977b,_0x419254,_0x4b7c6c){var _0x11c953=_0x1b7882,_0x19e535=f({},_0x40977b[_0x11c953(0x149)]);_0x4b7c6c!=null&&_0x4b7c6c[_0x11c953(0xfe)]&&_0x19e535[_0x11c953(0x83)]===_0x11c953(0xfe)&&(_0x19e535[_0x11c953(0x83)]=_0x4b7c6c[_0x11c953(0xfe)]),_0x40977b[_0x11c953(0x153)]===_0x11c953(0xd9)&&_0x19e535['id']&&(_0x19e535['id']=_0x19e535['id']+_0x419254['idSuffix']),Object[_0x11c953(0x194)](_0x19e535)[_0x11c953(0x1cb)](function(_0x50b124){var _0x26ee22=_0x11c953,_0x25864c=_0x50b124[0x0],_0x58801d=_0x50b124[0x1];_0x25864c===_0x26ee22(0xd9)&&typeof _0x58801d==_0x26ee22(0x145)&&(_0x19e535[_0x25864c]=_0x58801d[_0x26ee22(0x170)](/url\(#(.*)\)/,'url(#$1'[_0x26ee22(0x96)](_0x419254['idSuffix'],')')));});var _0x291c85=_0x419254['defIds'];return!_0x291c85||_0x291c85[_0x11c953(0x119)]===0x0||(_0x40977b[_0x11c953(0x153)]===_0x11c953(0x1c3)&&_0x19e535[_0x11c953(0x15b)]&&(_0x19e535[_0x11c953(0x15b)]=_0x19e535['xlink:href']+_0x419254[_0x11c953(0x198)]),Object[_0x11c953(0x194)](_0x19e535)[_0x11c953(0x1cb)](function(_0x69eced){var _0x4ace6e=_0x11c953,_0x4503db=_0x69eced[0x0],_0x146e74=_0x69eced[0x1];typeof _0x146e74==_0x4ace6e(0x145)&&(_0x19e535[_0x4503db]=_0x146e74['replace'](/url\(#(.*)\)/,_0x4ace6e(0x91)['concat'](_0x419254[_0x4ace6e(0x198)],')')));})),_0x19e535;}function qe(_0xee825f,_0x284ebc){var _0x2602d0=_0x1b7882,_0x339f43,_0x3dffe2=_0x284ebc[_0x2602d0(0x105)];return!_0x3dffe2||_0x3dffe2[_0x2602d0(0x119)]===0x0?_0xee825f:_0xee825f[_0x2602d0(0x153)]==='defs'&&(!((_0x339f43=_0xee825f[_0x2602d0(0x95)])===null||_0x339f43===void 0x0)&&_0x339f43[_0x2602d0(0x119)])?f(f({},_0xee825f),{'children':_0xee825f[_0x2602d0(0x95)][_0x2602d0(0x161)](function(_0x2f7a55){var _0x3aab92=_0x2602d0;return typeof _0x2f7a55['attrs']['id']=='string'&&_0x3dffe2&&_0x3dffe2['includes'](_0x2f7a55[_0x3aab92(0x149)]['id'])?f(f({},_0x2f7a55),{'attrs':f(f({},_0x2f7a55[_0x3aab92(0x149)]),{'id':_0x2f7a55[_0x3aab92(0x149)]['id']+_0x284ebc[_0x3aab92(0x198)]})}):_0x2f7a55;})}):_0xee825f;}function Xe(){var _0x1c5c47=_0x1b7882;return Math[_0x1c5c47(0x180)]()[_0x1c5c47(0x9f)](0x24)['substring'](0x2,0x8);}w['displayName']=_0x1b7882(0x19a);var Je={'tag':_0x1b7882(0xe8),'attrs':{'xmlns':_0x1b7882(0x11c),'fill':_0x1b7882(0x15a),'viewBox':'0\x200\x2016\x2016','width':_0x1b7882(0x169),'height':_0x1b7882(0x169)},'children':[{'tag':_0x1b7882(0x1bf),'attrs':{'fill':_0x1b7882(0xa3),'d':'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','fillRule':_0x1b7882(0x1a4),'clipRule':'evenodd'}}]},le=_0x37ec7e(function(_0x105303,_0x202d00){var _0x2fec8b=_0x1b7882;return _0x5f483c(w,Object[_0x2fec8b(0x16e)]({},_0x105303,{'id':'check-mark-icon','ref':_0x202d00,'icon':Je}));});le[_0x1b7882(0x1c6)]='CheckMarkIcon';var Qe={'tag':'svg','attrs':{'xmlns':_0x1b7882(0x11c),'fill':_0x1b7882(0x15a),'viewBox':'0\x200\x2017\x2017','width':_0x1b7882(0x169),'height':_0x1b7882(0x169)},'children':[{'tag':_0x1b7882(0x1bf),'attrs':{'stroke':_0x1b7882(0xa3),'d':_0x1b7882(0xe6),'strokeLinecap':_0x1b7882(0x1c7),'strokeLinejoin':_0x1b7882(0x1c7),'strokeWidth':1.33}},{'tag':_0x1b7882(0x1bf),'attrs':{'stroke':_0x1b7882(0xa3),'d':_0x1b7882(0x156),'strokeLinecap':_0x1b7882(0x1c7),'strokeLinejoin':_0x1b7882(0x1c7),'strokeWidth':1.33}}]},ve=_0x37ec7e(function(_0x1c8a2f,_0x273c4e){var _0x261813=_0x1b7882;return _0x5f483c(w,Object[_0x261813(0x16e)]({},_0x1c8a2f,{'id':'close-small-single','ref':_0x273c4e,'icon':Qe}));});ve[_0x1b7882(0x1c6)]=_0x1b7882(0xa8);var en={'tag':'svg','attrs':{'xmlns':_0x1b7882(0x11c),'fill':_0x1b7882(0x15a),'viewBox':_0x1b7882(0x127),'width':'1em','height':_0x1b7882(0x169)},'children':[{'tag':_0x1b7882(0x1bf),'attrs':{'fill':'currentColor','d':_0x1b7882(0xf8)}},{'tag':_0x1b7882(0x1bf),'attrs':{'fill':_0x1b7882(0xa3),'d':_0x1b7882(0x1ac)}},{'tag':'path','attrs':{'fill':_0x1b7882(0xa3),'d':_0x1b7882(0x173),'fillRule':_0x1b7882(0x1a4),'clipRule':'evenodd'}}]},de=_0x37ec7e(function(_0x525694,_0x2060c2){var _0x44610c=_0x1b7882;return _0x5f483c(w,Object[_0x44610c(0x16e)]({},_0x525694,{'id':_0x44610c(0x167),'ref':_0x2060c2,'icon':en}));});de['displayName']='HelpSingle';var nn={'tag':_0x1b7882(0xe8),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x1b7882(0x15a),'viewBox':_0x1b7882(0x127),'width':_0x1b7882(0x169),'height':_0x1b7882(0x169)},'children':[{'tag':'g','attrs':{'clipPath':_0x1b7882(0x10b)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x1b7882(0x16d),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x1b7882(0x8d),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x1b7882(0xb2)},'children':[{'tag':_0x1b7882(0x1bf),'attrs':{'fill':_0x1b7882(0x15d),'d':_0x1b7882(0x192)}}]}]}],'defIds':[_0x1b7882(0xb2)]},fe=_0x37ec7e(function(_0x247844,_0x2d594c){var _0x4c9227=_0x1b7882;return _0x5f483c(w,Object[_0x4c9227(0x16e)]({},_0x247844,{'id':_0x4c9227(0x148),'ref':_0x2d594c,'icon':nn}));});fe[_0x1b7882(0x1c6)]='OffLineIcon';var rn={'tag':_0x1b7882(0xe8),'attrs':{'xmlns':_0x1b7882(0x11c),'fill':_0x1b7882(0x15a),'viewBox':_0x1b7882(0x13a),'width':_0x1b7882(0x169),'height':_0x1b7882(0x169)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x1b7882(0x1bf),'attrs':{'stroke':_0x1b7882(0xa3),'d':_0x1b7882(0x133),'strokeLinecap':_0x1b7882(0x1c7),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x1b7882(0x109),'attrs':{'id':_0x1b7882(0x151)},'children':[{'tag':_0x1b7882(0x1bf),'attrs':{'fill':'white','d':_0x1b7882(0x192),'transform':_0x1b7882(0xbd)}}]}]}],'defIds':[_0x1b7882(0x151)]},ge=_0x37ec7e(function(_0x3ff79a,_0xde2b76){var _0x5dabd3=_0x1b7882;return _0x5f483c(w,Object[_0x5dabd3(0x16e)]({},_0x3ff79a,{'id':'on-line-icon','ref':_0xde2b76,'icon':rn}));});ge[_0x1b7882(0x1c6)]=_0x1b7882(0x1a8);function tn(_0x3daebe){var _0x26fcd8=_0x1b7882,_0x3bb113,_0x58c1b8;const {mcpCoreConfig:_0x4db3c5,onSave:_0x2372cd,loading:_0x54e03d=!0x1,config:_0x25d448,connectionStatus$:_0x59adcb,connectionError$:_0x15d922,currentApiKey$:_0x5536fc,currentSessionId$:_0x341988}=_0x3daebe,_0x457a64=_0x523459(_0x47d7cf),_0x20259c=_0x5c9509(_0x59adcb,_0xb12d13[_0x26fcd8(0x14d)]),_0x4d0096=_0x5c9509(_0x15d922,_0x491ff3[_0x26fcd8(0x9c)]),_0x4895c3=_0x5c9509(_0x341988,''),_0x10b1ef=_0x5c9509(_0x5536fc,''),[_0x3ff6ea,_0x2c6a22]=_0x33f78c(_0x10b1ef||''),_0xc301b4=!0x0,_0x4af47a=_0x25d448[_0x26fcd8(0x19b)]&&_0x4db3c5[_0x26fcd8(0x131)]&&(_0x4db3c5['mcpServerUrl'][_0x26fcd8(0xb6)](_0x26fcd8(0x10d))||_0x4db3c5['mcpServerUrl'][_0x26fcd8(0xb6)]('univer.ai')),_0x3bc003=(_0x3bb113=_0x4db3c5['mcpServerUrl'])==null?void 0x0:_0x3bb113[_0x26fcd8(0xb6)](_0x26fcd8(0x10d)),_0x569765=(_0x58c1b8=_0x4db3c5[_0x26fcd8(0x131)])==null?void 0x0:_0x58c1b8[_0x26fcd8(0xb6)]('univer.ai'),_0x46b65e=_0x3bc003?_0x26fcd8(0xf5):_0x26fcd8(0x16c),_0x49b7cc=_0x25d448[_0x26fcd8(0x19b)]&&(_0x3bc003||_0x569765),[_0x1e93ac,_0x364466]=_0x33f78c(!_0x3ff6ea[_0x26fcd8(0x87)]()),_0x202c5e=(_0x5b37e4,_0x542e5f)=>{var _0xb550b2=_0x26fcd8;if(_0x542e5f===_0x491ff3['UNAUTHORIZED'])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x5b37e4){case _0xb12d13[_0xb550b2(0xdd)]:return _0xb550b2(0x14a);case _0xb12d13[_0xb550b2(0xad)]:case _0xb12d13[_0xb550b2(0xf3)]:return _0xb550b2(0xc0);case _0xb12d13['FAILED']:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0xb550b2(0x1b6);}},_0x13a4b6=(_0x1b30af,_0x1b3808)=>{var _0x591374=_0x26fcd8;if(_0x1b3808===_0x491ff3[_0x591374(0x8a)])return _0x591374(0x1b9);switch(_0x1b30af){case _0xb12d13[_0x591374(0xdd)]:return _0x591374(0x1b8);case _0xb12d13[_0x591374(0xad)]:case _0xb12d13[_0x591374(0xf3)]:return _0x591374(0x85);case _0xb12d13[_0x591374(0x1cd)]:return'univer-bg-red-500';default:return'univer-bg-gray-500';}},_0x15c9e3=_0x12ea43=>{var _0x525631=_0x26fcd8;switch(_0x12ea43){case _0xb12d13['CONNECTED']:return _0x457a64['t'](_0x525631(0x1ae));case _0xb12d13[_0x525631(0xad)]:return _0x457a64['t'](_0x525631(0x8c));case _0xb12d13[_0x525631(0x1cd)]:return _0x457a64['t'](_0x525631(0x1d3));case _0xb12d13[_0x525631(0xf3)]:return _0x457a64['t'](_0x525631(0xb9));default:return _0x457a64['t'](_0x525631(0x1ad));}},_0x54871e=_0x32d643=>{var _0x3aa285=_0x26fcd8;switch(_0x32d643){case _0x491ff3[_0x3aa285(0x8a)]:return _0x457a64['t']('mcpConfig.connectionError.unauthorized');case _0x491ff3[_0x3aa285(0x80)]:return _0x457a64['t'](_0x3aa285(0x1cc));case _0x491ff3['NETWORK_ERROR']:return _0x457a64['t'](_0x3aa285(0xae));case _0x491ff3[_0x3aa285(0x14b)]:return _0x457a64['t'](_0x3aa285(0xbc));default:return'';}},_0x52a046=_0xfe48b4(()=>{var _0x5e2147=_0x26fcd8;const _0xbb73c3={..._0x4db3c5,'apiKey':_0x3ff6ea[_0x5e2147(0x87)](),'enableAuth':_0xc301b4};_0x2372cd(_0xbb73c3);},[_0x4db3c5,_0x3ff6ea,_0xc301b4,_0x2372cd]),_0x38ca4a=_0x3ff6ea['trim']()[_0x26fcd8(0x119)]>0x0;return _0x54e033(_0x26fcd8(0x120),{'className':_0x26fcd8(0x142),'children':[_0x38426f(_0x26fcd8(0x120),{'className':_0x26fcd8(0xc9),'children':_0x54e033(_0x26fcd8(0x120),{'className':_0x26fcd8(0x111),'children':[_0x38426f('div',{'className':'univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':_0x38426f(_0x26fcd8(0x11a),{'className':_0x26fcd8(0xb5),'children':'⚙'})}),_0x38426f(_0x26fcd8(0x120),{'children':_0x38426f('p',{'className':_0x26fcd8(0x181),'children':_0x457a64['t']('mcpConfig.description')})})]})}),_0x54e033('div',{'className':_0x26fcd8(0x1d5),'children':[_0x38426f(_0x26fcd8(0x120),{'className':_0x26fcd8(0x11d)+_0x202c5e(_0x20259c,_0x4d0096)+_0x26fcd8(0x157),'children':_0x54e033(_0x26fcd8(0x120),{'className':_0x26fcd8(0x16a),'children':[_0x38426f(_0x26fcd8(0x120),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x13a4b6(_0x20259c,_0x4d0096)+_0x26fcd8(0x90)}),_0x38426f(_0x26fcd8(0x11a),{'className':_0x26fcd8(0x116),'children':_0x15c9e3(_0x20259c)})]})}),_0x4d0096!==_0x491ff3[_0x26fcd8(0x9c)]&&(_0x20259c===_0xb12d13[_0x26fcd8(0x1cd)]||_0x4d0096===_0x491ff3['UNAUTHORIZED'])&&_0x38426f(_0x26fcd8(0x120),{'className':_0x26fcd8(0x112),'children':_0x54e033(_0x26fcd8(0x120),{'className':_0x26fcd8(0x164),'children':[_0x38426f(_0x26fcd8(0x11a),{'className':'univer-flex-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0x38426f('p',{'className':_0x26fcd8(0x1d8),'children':_0x54871e(_0x4d0096)})]})})]}),_0x38426f(_0x26fcd8(0x120),{'className':_0x26fcd8(0xf6),'children':_0x54e033(_0x26fcd8(0x120),{'className':_0x26fcd8(0x9d),'children':[_0x54e033(_0x26fcd8(0x120),{'className':_0x26fcd8(0x154),'children':[_0x54e033(_0x26fcd8(0xce),{'className':_0x26fcd8(0x1a7),'children':[_0x38426f('span',{'children':'🔑'}),'\x20',_0x457a64['t']('mcpConfig.apiKey'),_0x38426f(_0x26fcd8(0x11a),{'className':_0x26fcd8(0x128),'children':'*'}),_0x4af47a&&_0x38426f('a',{'href':'javascript:void(0)','onClick':()=>_0x364466(!0x0),'className':'univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x457a64['t'](_0x26fcd8(0x1d0)),'children':_0x38426f(de,{})})]}),_0x38426f(_0x3df6ee,{'type':'text','placeholder':_0x457a64['t'](_0x26fcd8(0x18c)),'value':_0x3ff6ea,'onChange':_0x2c6a22,'disabled':_0x54e03d,'autoComplete':'off'}),_0x38426f('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x457a64['t']('mcpConfig.apiKeyHint')})]}),_0x4af47a&&_0x1e93ac&&_0x54e033(_0x26fcd8(0x120),{'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':[_0x38426f('a',{'href':_0x26fcd8(0x175),'onClick':()=>_0x364466(!0x1),'className':'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','title':'Close','children':_0x38426f(ve,{})}),_0x54e033(_0x26fcd8(0x120),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x38426f(_0x26fcd8(0x120),{'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':_0x38426f(_0x26fcd8(0x11a),{'className':_0x26fcd8(0x1c4),'children':'🚀'})}),_0x54e033(_0x26fcd8(0x120),{'className':_0x26fcd8(0x18f),'children':[_0x38426f('h4',{'className':_0x26fcd8(0x12e),'children':_0x457a64['t'](_0x26fcd8(0x1d0))}),_0x38426f('p',{'className':_0x26fcd8(0x1a2),'children':_0x457a64['t']('mcpConfig.apiApplyInfo.description')}),_0x38426f(_0x26fcd8(0x120),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x49b7cc&&_0x54e033('a',{'href':_0x46b65e,'target':_0x26fcd8(0x1bc),'rel':'noopener\x20noreferrer','className':_0x26fcd8(0x10e),'children':[_0x38426f(_0x26fcd8(0x11a),{'children':'🤖'}),_0x457a64['t'](_0x26fcd8(0x196)),_0x38426f(_0x26fcd8(0x11a),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x54e033(_0x26fcd8(0x120),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x457a64['t'](_0x26fcd8(0x12d))]})]})]})]}),_0x25d448['showDeveloperTools']&&_0x54e033('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x54e033('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x38426f(_0x26fcd8(0x11a),{'children':'🔗'}),'\x20',_0x457a64['t'](_0x26fcd8(0x17a))]}),_0x54e033(_0x26fcd8(0x120),{'className':_0x26fcd8(0x110),'children':[_0x54e033('div',{'className':'univer-space-y-3','children':[_0x38426f('p',{'className':_0x26fcd8(0x14e),'children':_0x457a64['t']('mcpConfig.configInstructions')}),_0x54e033(_0x26fcd8(0x120),{'className':_0x26fcd8(0x154),'children':[_0x38426f(_0x26fcd8(0x120),{'className':_0x26fcd8(0xdb),'children':_0x457a64['t'](_0x26fcd8(0x147))}),_0x54e033(_0x26fcd8(0x120),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x54e033(_0x26fcd8(0x120),{'className':_0x26fcd8(0x16a),'children':[_0x38426f(_0x26fcd8(0x11a),{'className':_0x26fcd8(0x1c8),'children':'1'}),_0x457a64['t']('mcpConfig.configStep1')]}),_0x54e033(_0x26fcd8(0x120),{'className':_0x26fcd8(0x16a),'children':[_0x38426f('span',{'className':_0x26fcd8(0x1c8),'children':'2'}),_0x457a64['t']('mcpConfig.configStep2')]}),_0x54e033(_0x26fcd8(0x120),{'className':_0x26fcd8(0x16a),'children':[_0x38426f('span',{'className':_0x26fcd8(0x1c8),'children':'3'}),_0x457a64['t'](_0x26fcd8(0xa7))]})]})]})]}),_0x54e033('div',{'className':_0x26fcd8(0x154),'children':[_0x38426f(_0x26fcd8(0x120),{'className':_0x26fcd8(0xdb),'children':_0x26fcd8(0x163)}),_0x38426f(_0x26fcd8(0x120),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0x38426f(_0x26fcd8(0x102),{'className':_0x26fcd8(0xb7),'children':_0x26fcd8(0xf2)+_0x4895c3+_0x26fcd8(0x81)+(_0x3ff6ea||'<API_KEY>')+'\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}'})})]}),_0x54e033('div',{'className':'univer-space-y-3','children':[_0x38426f(_0x26fcd8(0x120),{'className':_0x26fcd8(0xdb),'children':_0x457a64['t']('mcpConfig.configParameters')}),_0x54e033('div',{'className':_0x26fcd8(0x154),'children':[_0x54e033('div',{'className':_0x26fcd8(0x11e),'children':[_0x38426f(_0x26fcd8(0x120),{'className':_0x26fcd8(0x98)}),_0x54e033('div',{'className':_0x26fcd8(0x94),'children':[_0x38426f(_0x26fcd8(0x120),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x26fcd8(0x104)}),_0x38426f(_0x26fcd8(0x120),{'className':_0x26fcd8(0x1a3),'children':_0x457a64['t']('mcpConfig.sessionIdDescription')})]})]}),_0x54e033(_0x26fcd8(0x120),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x38426f('div',{'className':_0x26fcd8(0x98)}),_0x54e033('div',{'className':_0x26fcd8(0x94),'children':[_0x38426f(_0x26fcd8(0x120),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x26fcd8(0xf7)}),_0x38426f(_0x26fcd8(0x120),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x457a64['t'](_0x26fcd8(0x11f))})]})]})]})]})]})]}),_0x38426f(_0x20394a,{'onClick':_0x52a046,'disabled':!_0x38ca4a||_0x54e03d,'className':_0x26fcd8(0xaf),'children':_0x54e03d?_0x54e033(_0x26fcd8(0x11a),{'className':_0x26fcd8(0x16a),'children':[_0x38426f(_0x26fcd8(0x11a),{'children':'⟲'}),_0x457a64['t']('mcpConfig.saving')]}):_0x54e033('span',{'className':_0x26fcd8(0x16a),'children':[_0x38426f(le,{}),_0x457a64['t'](_0x26fcd8(0x12a))]})}),_0x38426f(_0x26fcd8(0x120),{'className':_0x26fcd8(0x139),'children':_0x54e033(_0x26fcd8(0x120),{'className':_0x26fcd8(0xda),'children':[_0x38426f(_0x26fcd8(0x11a),{'className':_0x26fcd8(0x9e),'children':'💡'}),_0x54e033('div',{'className':_0x26fcd8(0x172),'children':[_0x38426f(_0x26fcd8(0x120),{'className':'univer-font-medium','children':_0x26fcd8(0xa6)}),_0x54e033(_0x26fcd8(0x120),{'children':['•',_0x457a64['t']('mcpConfig.note1')]}),_0x54e033(_0x26fcd8(0x120),{'children':['•',_0x457a64['t'](_0x26fcd8(0xa5))]})]})]})})]})})]});}const x='mcp-ui.config',re={'showDeveloperTools':!0x1,'showStatus':!0x0};var on=Object[_0x1b7882(0x150)],sn=(_0x35779f,_0x216440,_0xc42989,_0x1bab01)=>{var _0x29eda0=_0x1b7882;for(var _0x17ff1a=_0x1bab01>0x1?void 0x0:_0x1bab01?on(_0x216440,_0xc42989):_0x216440,_0x4e61bd=_0x35779f[_0x29eda0(0x119)]-0x1,_0x4d675d;_0x4e61bd>=0x0;_0x4e61bd--)(_0x4d675d=_0x35779f[_0x4e61bd])&&(_0x17ff1a=_0x4d675d(_0x17ff1a)||_0x17ff1a);return _0x17ff1a;},g=(_0x1334bc,_0x4150e5)=>(_0x529e33,_0x13714f)=>_0x4150e5(_0x529e33,_0x13714f,_0x1334bc);const j='mcp.apiKey',U='mcp-config-dialog';let I=class extends _0x36c120{constructor(_0x587a8b,_0x152cc7,_0x461955,_0x4496b9,_0x4ff0e2,_0x262fa0,_0x291aa1,_0x45d3cd,_0x2ebda3,_0xf92210){var _0xbed83e=_0x1b7882;super(),S(this,_0xbed83e(0xa0),new _0x14ba98(!0x1)),S(this,_0xbed83e(0xb3),new _0x14ba98({})),S(this,'_config$',new _0x14ba98({})),S(this,_0xbed83e(0x88),new _0x14ba98('')),S(this,'_handleConfigSave',async _0x1d5a47=>{var _0x5f1981=_0xbed83e,_0x169ffe,_0x30776f;this[_0x5f1981(0xa0)]['next'](!0x0);try{const _0x17d8b5=await this[_0x5f1981(0x19d)](_0x1d5a47);if(!_0x17d8b5[_0x5f1981(0x15c)]){this[_0x5f1981(0x159)][_0x5f1981(0x136)]({'type':_0x255bba[_0x5f1981(0xaa)],'content':_0x17d8b5[_0x5f1981(0xd3)]||this['_localeService']['t'](_0x5f1981(0x185))});return;}_0x1d5a47[_0x5f1981(0x1b7)]?await this[_0x5f1981(0x1a9)][_0x5f1981(0x1ca)](j,_0x1d5a47['apiKey'][_0x5f1981(0x87)]()):await this['_localStorageService'][_0x5f1981(0x1dc)](j),this['_apiKey$'][_0x5f1981(0xcc)](((_0x169ffe=_0x1d5a47[_0x5f1981(0x1b7)])==null?void 0x0:_0x169ffe['trim']())||''),this[_0x5f1981(0x1ab)][_0x5f1981(0x160)]({'Authorization':_0x5f1981(0x8e)+((_0x30776f=_0x1d5a47[_0x5f1981(0x1b7)])==null?void 0x0:_0x30776f[_0x5f1981(0x87)]())}),this[_0x5f1981(0x159)][_0x5f1981(0x136)]({'type':_0x255bba['Success'],'content':this[_0x5f1981(0x141)]['t'](_0x5f1981(0x1cf))}),setTimeout(()=>{var _0x40833e=_0x5f1981;this['_dialogService'][_0x40833e(0xc7)](U);},0x320);}catch(_0x16cef6){this[_0x5f1981(0xfb)][_0x5f1981(0xb4)](_0x5f1981(0x15f),_0x16cef6),this['_messageService'][_0x5f1981(0x136)]({'type':_0x255bba['Error'],'content':this[_0x5f1981(0x141)]['t'](_0x5f1981(0x1c2))});}finally{this[_0x5f1981(0xa0)][_0x5f1981(0xcc)](!0x1);}}),(this[_0xbed83e(0x158)]=_0x587a8b,this[_0xbed83e(0x146)]=_0x152cc7,this['_configService']=_0x461955,this['_localStorageService']=_0x4496b9,this[_0xbed83e(0xf0)]=_0x4ff0e2,this[_0xbed83e(0x159)]=_0x262fa0,this[_0xbed83e(0x1a1)]=_0x291aa1,this['_localeService']=_0x45d3cd,this[_0xbed83e(0xfb)]=_0x2ebda3,this[_0xbed83e(0x1ab)]=_0xf92210,this[_0xbed83e(0xd8)](),this[_0xbed83e(0x13b)](),this[_0xbed83e(0xd7)]());}['showConfigPanel'](){var _0xb6d8d2=_0x1b7882;const _0x18b5ba=this[_0xb6d8d2(0xac)][_0xb6d8d2(0xc3)](x);_0x18b5ba!=null&&_0x18b5ba[_0xb6d8d2(0x19b)]&&this[_0xb6d8d2(0xf0)][_0xb6d8d2(0x183)]({'id':U,'title':{'title':this[_0xb6d8d2(0x141)]['t'](_0xb6d8d2(0x16f))},'children':{'label':_0xb6d8d2(0xdf)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x3105fe=_0xb6d8d2;this[_0x3105fe(0xf0)][_0x3105fe(0xc7)](U);}});}['getCurrentConfig'](){var _0x3ba46f=_0x1b7882;return this[_0x3ba46f(0xb3)]['value'];}[_0x1b7882(0xd7)](){var _0xf9a7c6=_0x1b7882;this['disposeWithMe'](this[_0xf9a7c6(0x1a1)][_0xf9a7c6(0x1d1)](_0xf9a7c6(0xdf),this['_createConfigPanelComponent']()));}[_0x1b7882(0xcf)](){var _0x5ccbdc=_0x1b7882;return _0x5e7271(()=>{var _0xecd88f=_0x2d1b,_0x51ae08,_0x4ac79c,_0x3d3ab7;return _0x38426f(tn,{'config':this[_0xecd88f(0xa1)][_0xecd88f(0xc8)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0xecd88f(0xc8)],'currentApiKey$':this[_0xecd88f(0x88)],'onSave':this['_handleConfigSave'],'loading':this[_0xecd88f(0xa0)]['value'],'connectionStatus$':(_0x51ae08=this[_0xecd88f(0x1ab)])==null?void 0x0:_0x51ae08[_0xecd88f(0x121)],'connectionError$':(_0x4ac79c=this[_0xecd88f(0x1ab)])==null?void 0x0:_0x4ac79c[_0xecd88f(0x118)],'currentSessionId$':(_0x3d3ab7=this['_mcpConnectionController'])==null?void 0x0:_0x3d3ab7[_0xecd88f(0x184)]});},this[_0x5ccbdc(0x158)]);}[_0x1b7882(0xd8)](){var _0x2d66f8=_0x1b7882;this[_0x2d66f8(0x13c)](this[_0x2d66f8(0xac)]['subscribeConfigValue$'](_0x1ea1c4)[_0x2d66f8(0xab)](_0x2841be=>{var _0x98c97b=_0x2d66f8;this['_mcpCoreConfig$'][_0x98c97b(0xcc)](_0x2841be||{});}));const _0x4550b5=this[_0x2d66f8(0xac)]['getConfig'](_0x1ea1c4);this[_0x2d66f8(0xb3)][_0x2d66f8(0xcc)](_0x4550b5||{}),this['disposeWithMe'](this['_configService'][_0x2d66f8(0xbb)](x)[_0x2d66f8(0xab)](_0xd3bde8=>{var _0x462fd3=_0x2d66f8;this[_0x462fd3(0xa1)][_0x462fd3(0xcc)](_0xd3bde8||{});}));const _0x649bb0=this['_configService'][_0x2d66f8(0xc3)](x);this[_0x2d66f8(0xa1)][_0x2d66f8(0xcc)](_0x649bb0||{});}async[_0x1b7882(0x13b)](){var _0x56b96c=_0x1b7882;const _0x552dae=this['_configService'][_0x56b96c(0xc3)](x);if(!(_0x552dae!=null&&_0x552dae[_0x56b96c(0x19b)]))return;const _0x34e315=await this[_0x56b96c(0x1a9)][_0x56b96c(0xef)](j);_0x34e315&&(this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':_0x56b96c(0x8e)+_0x34e315}),this[_0x56b96c(0x88)][_0x56b96c(0xcc)](_0x34e315));}async[_0x1b7882(0x19d)](_0x246b28){var _0x57cdf2=_0x1b7882;if(!_0x246b28['apiKey']||_0x246b28[_0x57cdf2(0x1b7)][_0x57cdf2(0x87)]()[_0x57cdf2(0x119)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x57cdf2(0xd6))};if(_0x246b28['apiKey']['trim']()[_0x57cdf2(0x119)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x57cdf2(0x141)]['t'](_0x57cdf2(0xde))};try{const _0x350106=await this[_0x57cdf2(0x158)][_0x57cdf2(0x17c)](_0x258b21)[_0x57cdf2(0xc6)](_0x246b28[_0x57cdf2(0x1b7)]['trim']());return _0x350106[_0x57cdf2(0x15c)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x350106[_0x57cdf2(0xb4)]||this[_0x57cdf2(0x141)]['t'](_0x57cdf2(0xc5))};}catch(_0x4ced64){return console[_0x57cdf2(0xc1)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x4ced64),{'isValid':!0x0};}}};I=sn([g(0x0,_0x3e9de(_0x3ba8fc)),g(0x1,_0x5e4f85),g(0x2,_0x5ec846),g(0x3,_0x52355c),g(0x4,_0x347417),g(0x5,_0x5894f9),g(0x6,_0x3e9de(_0x55d9e6)),g(0x7,_0x3e9de(_0x47d7cf)),g(0x8,_0x26b5b8),g(0x9,_0x3e9de(_0x258b21))],I);const V={'id':_0x1b7882(0x179),'type':_0x5f3bb6[_0x1b7882(0x126)],'handler':async(_0x41d58f,_0x41156f)=>(_0x41d58f[_0x1b7882(0x17c)](I)[_0x1b7882(0x103)](),!0x0)};function pe(_0x3bef5a,_0x208cef){var _0x53d59c=_0x1b7882;switch(_0x3bef5a){case _0xb12d13['DISCONNECTED']:return _0x53d59c(0x1d6);case _0xb12d13[_0x53d59c(0xad)]:return _0x53d59c(0xe5);case _0xb12d13[_0x53d59c(0xdd)]:return'mcpStatus.connected';case _0xb12d13[_0x53d59c(0x1cd)]:switch(_0x208cef){case _0x491ff3[_0x53d59c(0x8a)]:return _0x53d59c(0x165);case _0x491ff3[_0x53d59c(0x80)]:return _0x53d59c(0x14f);case _0x491ff3[_0x53d59c(0x1da)]:return _0x53d59c(0x130);case _0x491ff3[_0x53d59c(0x14b)]:return'mcpStatus.maxRetriesExceeded';default:return'mcpStatus.failed';}case _0xb12d13[_0x53d59c(0xf3)]:return'mcpStatus.retrying';default:return _0x53d59c(0x106);}}function cn(_0x16eeeb,_0x11bb1b,_0xc16d5,_0x32503e=!0x0){var _0x1f6572=_0x1b7882;const _0xd25c62=pe(_0x16eeeb,_0x11bb1b),_0x1be4bf=_0xc16d5['t'](_0xd25c62);return _0x32503e?_0x16eeeb===_0xb12d13[_0x1f6572(0x14d)]&&_0x11bb1b===_0x491ff3[_0x1f6572(0x8a)]?_0x1be4bf+_0x1f6572(0xca)+_0xc16d5['t'](_0x1f6572(0xeb)):_0x16eeeb===_0xb12d13[_0x1f6572(0xdd)]?''+_0x1be4bf:_0x16eeeb===_0xb12d13[_0x1f6572(0x14d)]||_0x16eeeb===_0xb12d13[_0x1f6572(0x1cd)]?_0x1be4bf+_0x1f6572(0xca)+_0xc16d5['t'](_0x1f6572(0x138)):_0x1be4bf:_0x1be4bf;}function an(_0x103f37){var _0x4e822d=_0x1b7882;switch(_0x103f37){case _0xb12d13[_0x4e822d(0xdd)]:return _0x4e822d(0x174);case _0xb12d13[_0x4e822d(0xad)]:case _0xb12d13[_0x4e822d(0xf3)]:return _0x4e822d(0xba);case _0xb12d13['FAILED']:case _0xb12d13['DISCONNECTED']:return'univer-text-red-500';default:return _0x4e822d(0xed);}}function un(_0xacabfc){var _0x4ea206=_0x1b7882;const {status$:_0x1e1424,error$:_0x401ea8,onConfigure:_0x23a8dc,showClickable:_0x16ce82=!0x0}=_0xacabfc,_0x3c0a36=_0x5c9509(_0x1e1424,_0xb12d13[_0x4ea206(0x14d)]),_0x3259ab=_0x5c9509(_0x401ea8,_0x491ff3[_0x4ea206(0x9c)]),_0x41fda3=_0x523459(_0x47d7cf),_0x362259=_0x3c0a36===_0xb12d13[_0x4ea206(0xdd)];_0x3c0a36===_0xb12d13[_0x4ea206(0xad)]||_0xb12d13[_0x4ea206(0xf3)];const _0x18b3f2=_0x41fda3['t'](pe(_0x3c0a36,_0x3259ab)),_0x975fa3=cn(_0x3c0a36,_0x3259ab,_0x41fda3,_0x16ce82),_0x569c20=an(_0x3c0a36),_0xe77076=_0x362259?_0x38426f(ge,{}):_0x38426f(fe,{}),_0x506cf3=_0xfe48b4(()=>{_0x16ce82&&_0x23a8dc&&_0x23a8dc();},[_0x16ce82,_0x23a8dc]);function _0x439e93(){var _0x5af74a=_0x4ea206;return _0x54e033(_0x5af74a(0x120),{'className':_0x5259eb(_0x5af74a(0xd4),_0x16ce82&&_0x23a8dc&&_0x5af74a(0xf1)),'onClick':_0x16ce82&&_0x23a8dc?_0x506cf3:void 0x0,'children':[_0x38426f('div',{'className':_0x5259eb(_0x5af74a(0x186),_0x569c20),'children':_0xe77076}),_0x38426f(_0x5af74a(0x120),{'className':_0x5af74a(0x19f),'children':_0x18b3f2})]});}return _0x38426f(_0x42a3a0,{'title':_0x975fa3,'placement':_0x4ea206(0x101),'children':_0x439e93()});}var ln=Object[_0x1b7882(0x150)],vn=(_0x3d2f10,_0x25a506,_0x176426,_0x5e683b)=>{var _0x359a86=_0x1b7882;for(var _0x18bd37=_0x5e683b>0x1?void 0x0:_0x5e683b?ln(_0x25a506,_0x176426):_0x25a506,_0x4b9d6b=_0x3d2f10[_0x359a86(0x119)]-0x1,_0x27ad1a;_0x4b9d6b>=0x0;_0x4b9d6b--)(_0x27ad1a=_0x3d2f10[_0x4b9d6b])&&(_0x18bd37=_0x27ad1a(_0x18bd37)||_0x18bd37);return _0x18bd37;},A=(_0x59d311,_0x2dc7fb)=>(_0x55ae7c,_0x4a9807)=>_0x2dc7fb(_0x55ae7c,_0x4a9807,_0x59d311);let O=class extends _0x36c120{constructor(_0x37de55,_0x24c2f3,_0x224373,_0x964eda){var _0x4903a3=_0x1b7882;super(),this[_0x4903a3(0x158)]=_0x37de55,this[_0x4903a3(0xfc)]=_0x24c2f3,this[_0x4903a3(0x146)]=_0x224373,this[_0x4903a3(0xac)]=_0x964eda,this[_0x4903a3(0xe0)](),this[_0x4903a3(0x9a)]();}[_0x1b7882(0xe0)](){var _0x785ab1=_0x1b7882;const _0xdb0962=this[_0x785ab1(0xac)][_0x785ab1(0xc3)](x);_0xdb0962!=null&&_0xdb0962['showDeveloperTools']&&(this[_0x785ab1(0xfc)][_0x785ab1(0x17b)]=!0x1);}[_0x1b7882(0x9a)](){var _0x4054ee=_0x1b7882;const _0xb03b7c=this[_0x4054ee(0xac)][_0x4054ee(0xc3)](x);(_0xb03b7c==null?void 0x0:_0xb03b7c[_0x4054ee(0x129)])!==!0x1&&this['disposeWithMe'](this[_0x4054ee(0x146)]['registerComponent'](_0x69721d[_0x4054ee(0x10c)],()=>{var _0x1ce598=_0x4054ee,_0x95d6af;return _0x5e7271(dn({'status$':this[_0x1ce598(0xfc)][_0x1ce598(0x121)],'error$':this[_0x1ce598(0xfc)]['connectionError$'],'onConfigure':()=>this[_0x1ce598(0xff)](),'showClickable':(_0x95d6af=_0xb03b7c==null?void 0x0:_0xb03b7c['showDeveloperTools'])!=null?_0x95d6af:!0x1}),this['_injector']);}));}[_0x1b7882(0xff)](){var _0x2719d9=_0x1b7882;this['_injector']['get'](I)[_0x2719d9(0x103)]();}};O=vn([A(0x0,_0x3e9de(_0x3ba8fc)),A(0x1,_0x3e9de(_0x258b21)),A(0x2,_0x5e4f85),A(0x3,_0x5ec846)],O);function dn(_0x395522){const {status$:_0x3c3873,error$:_0xf3d7c5,onConfigure:_0x3b3024,showClickable:_0x9d475}=_0x395522;return function(){return _0x38426f(un,{'status$':_0x3c3873,'error$':_0xf3d7c5,'onConfigure':_0x3b3024,'showClickable':_0x9d475});};}function fn(_0xfddd10){var _0x15a1e2=_0x1b7882;return{'id':V['id'],'type':_0x4e279c[_0x15a1e2(0x18d)],'icon':_0x15a1e2(0x155),'title':'mcpConfig.title','tooltip':_0x15a1e2(0x16f)};}const gn={[_0x2ebc2e[_0x1b7882(0x134)]]:{[V['id']]:{'order':0xa,'menuItemFactory':fn}}};var pn=Object[_0x1b7882(0x150)],hn=(_0x5ad837,_0x3c0427,_0x56891d,_0x634a24)=>{for(var _0x3f0d40=_0x634a24>0x1?void 0x0:_0x634a24?pn(_0x3c0427,_0x56891d):_0x3c0427,_0x23e8a2=_0x5ad837['length']-0x1,_0x1f496d;_0x23e8a2>=0x0;_0x23e8a2--)(_0x1f496d=_0x5ad837[_0x23e8a2])&&(_0x3f0d40=_0x1f496d(_0x3f0d40)||_0x3f0d40);return _0x3f0d40;},te=(_0x2619f7,_0x1ce454)=>(_0x546585,_0x543f4a)=>_0x1ce454(_0x546585,_0x543f4a,_0x2619f7);let k=class extends _0x36c120{constructor(_0x12a71b,_0x2fe46e){var _0x52fa43=_0x1b7882;super(),this['_commandService']=_0x12a71b,this[_0x52fa43(0xd1)]=_0x2fe46e,this[_0x52fa43(0xa9)](),this[_0x52fa43(0x13e)]();}[_0x1b7882(0xa9)](){var _0x145acb=_0x1b7882;[V][_0x145acb(0x1cb)](_0x3781d5=>{var _0x41d08c=_0x145acb;this[_0x41d08c(0x13c)](this[_0x41d08c(0x16b)][_0x41d08c(0xd0)](_0x3781d5));});}[_0x1b7882(0x13e)](){var _0x61ca59=_0x1b7882;this[_0x61ca59(0xd1)][_0x61ca59(0x1bd)](gn);}};k=hn([te(0x0,_0x18674d),te(0x1,_0x113245)],k);const On={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x1b7882(0x1b4),'connected':_0x1b7882(0x188),'failed':_0x1b7882(0x177),'retrying':'MCP\x20Retrying...','unknown':_0x1b7882(0x124),'unauthorized':_0x1b7882(0xd5),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x1b7882(0x1b2),'maxRetriesExceeded':_0x1b7882(0x82),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x1b7882(0x1c1)},'mcpConfig':{'title':_0x1b7882(0x163),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x1b7882(0x132),'apiKeyHint':_0x1b7882(0x93),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x1b7882(0x12f),'connectionInfo':_0x1b7882(0x1a6),'mcpClientConfig':_0x1b7882(0x1a6),'configInstructions':_0x1b7882(0x99),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x1b7882(0x1be),'configStep2':_0x1b7882(0x1ba),'configStep3':_0x1b7882(0x1ce),'sessionId':_0x1b7882(0x84),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x1b7882(0xf4),'maxRetries':_0x1b7882(0xe7),'save':_0x1b7882(0x11b),'saving':_0x1b7882(0x178),'note1':_0x1b7882(0x19c),'note2':_0x1b7882(0xe1),'configSaved':_0x1b7882(0x13f),'configError':_0x1b7882(0x12b),'apiApplyInfo':{'title':_0x1b7882(0x187),'description':_0x1b7882(0x17d),'univerAiLabel':_0x1b7882(0xfd),'getStarted':_0x1b7882(0x13d)},'validation':{'apiKeyRequired':_0x1b7882(0x166),'apiKeyTooShort':_0x1b7882(0x8b),'invalidConfig':_0x1b7882(0xe3),'invalidApiKey':_0x1b7882(0x1d2)},'connectionStatus':{'disconnected':_0x1b7882(0x113),'connecting':'Connecting...','connected':_0x1b7882(0x1b5),'failed':_0x1b7882(0x189),'retrying':_0x1b7882(0x143)},'connectionError':{'unauthorized':_0x1b7882(0x92),'sessionOccupied':_0x1b7882(0xfa),'networkError':_0x1b7882(0x14c),'maxRetriesExceeded':_0x1b7882(0x97)}}},kn={'mcpStatus':{'disconnected':_0x1b7882(0x18a),'connecting':_0x1b7882(0x182),'connected':_0x1b7882(0x86),'failed':_0x1b7882(0x117),'retrying':_0x1b7882(0xd2),'unknown':_0x1b7882(0xe4),'unauthorized':_0x1b7882(0x135),'sessionOccupied':_0x1b7882(0xa2),'networkError':_0x1b7882(0xdc),'maxRetriesExceeded':_0x1b7882(0x197),'clickToConnect':_0x1b7882(0xe9),'clickToConfigure':_0x1b7882(0x171)},'mcpConfig':{'title':'MCP\x20配置','description':_0x1b7882(0x17e),'apiKey':_0x1b7882(0x162),'apiKeyPlaceholder':_0x1b7882(0x18e),'apiKeyHint':_0x1b7882(0xb8),'enableAuth':_0x1b7882(0x89),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x1b7882(0x1a5),'mcpClientConfig':_0x1b7882(0x1a5),'configInstructions':_0x1b7882(0x12c),'configStepTitle':'配置步骤:','configStep1':_0x1b7882(0x1d4),'configStep2':_0x1b7882(0x122),'configStep3':_0x1b7882(0x144),'sessionId':_0x1b7882(0xc2),'sessionIdDescription':_0x1b7882(0x152),'authorizationDescription':_0x1b7882(0xb0),'configParameters':_0x1b7882(0xec),'maxRetries':_0x1b7882(0x108),'save':_0x1b7882(0x10a),'saving':_0x1b7882(0xcb),'note1':_0x1b7882(0x1db),'note2':_0x1b7882(0xee),'configSaved':_0x1b7882(0x19e),'configError':_0x1b7882(0x8f),'apiApplyInfo':{'title':_0x1b7882(0x1c5),'description':_0x1b7882(0x15e),'univerAiLabel':_0x1b7882(0x1b1),'getStarted':_0x1b7882(0x1d9)},'validation':{'apiKeyRequired':_0x1b7882(0x1c0),'apiKeyTooShort':_0x1b7882(0x199),'invalidConfig':'配置无效','invalidApiKey':_0x1b7882(0xe2)},'connectionStatus':{'disconnected':_0x1b7882(0x1aa),'connecting':_0x1b7882(0x191),'connected':_0x1b7882(0x9b),'failed':'连接失败','retrying':_0x1b7882(0x125)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x1b7882(0x195),'networkError':_0x1b7882(0x1d7),'maxRetriesExceeded':_0x1b7882(0x193)}}};var mn=Object[_0x1b7882(0x123)],Cn=Object['getOwnPropertyDescriptor'],yn=(_0x5d26a6,_0x4894bd,_0x1d7c1e)=>_0x4894bd in _0x5d26a6?mn(_0x5d26a6,_0x4894bd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d7c1e}):_0x5d26a6[_0x4894bd]=_0x1d7c1e,_n=(_0x52b104,_0x5911fe,_0x3d823e,_0x5dcc75)=>{var _0x5d15e6=_0x1b7882;for(var _0x115bbf=_0x5dcc75>0x1?void 0x0:_0x5dcc75?Cn(_0x5911fe,_0x3d823e):_0x5911fe,_0x1f57f2=_0x52b104[_0x5d15e6(0x119)]-0x1,_0x1cd234;_0x1f57f2>=0x0;_0x1f57f2--)(_0x1cd234=_0x52b104[_0x1f57f2])&&(_0x115bbf=_0x1cd234(_0x115bbf)||_0x115bbf);return _0x115bbf;},E=(_0x51aebf,_0x2531b5)=>(_0x20efa5,_0x5ee30e)=>_0x2531b5(_0x20efa5,_0x5ee30e,_0x51aebf),xn=(_0x12193b,_0x7cf860,_0x4da3fd)=>yn(_0x12193b,_0x7cf860+'',_0x4da3fd);let L=class extends _0x207904{constructor(_0x16160a=re,_0x230c46,_0x4fd509,_0x1dcc9e,_0x79ea2a,_0x109e6c){var _0x2a8c1e=_0x1b7882;super(),this['_config']=_0x16160a,this['_injector']=_0x230c46,this[_0x2a8c1e(0xac)]=_0x4fd509,this[_0x2a8c1e(0x146)]=_0x1dcc9e,this['_localStorageService']=_0x79ea2a,this[_0x2a8c1e(0x141)]=_0x109e6c;const {..._0x347bbd}=_0x38057c({},re,this[_0x2a8c1e(0x115)]);this['_configService'][_0x2a8c1e(0x1c9)](x,_0x347bbd);}async[_0x1b7882(0xa4)](){var _0x5dbb5b=_0x1b7882;const _0x20c063=[[O],[I],[k]];this[_0x5dbb5b(0x158)][_0x5dbb5b(0x114)](_0x1f8a9e)||_0x20c063['push']([_0x1f8a9e,{'useClass':_0x52805f}]),_0x20c063[_0x5dbb5b(0x1cb)](_0x6e2ea7=>this[_0x5dbb5b(0x158)]['add'](_0x6e2ea7)),this[_0x5dbb5b(0x158)][_0x5dbb5b(0x17c)](O),this['_injector']['get'](I),this[_0x5dbb5b(0x158)]['get'](k);}};function _0x2d1b(_0x35a85b,_0xe22933){var _0x2d6faa=_0x2d6f();return _0x2d1b=function(_0x2d1b14,_0x5cb37a){_0x2d1b14=_0x2d1b14-0x7f;var _0x4d6f9c=_0x2d6faa[_0x2d1b14];return _0x4d6f9c;},_0x2d1b(_0x35a85b,_0xe22933);}xn(L,'pluginName',_0x1b7882(0xb1)),L=_n([_0x1a19ca(_0x1aba55),E(0x1,_0x3e9de(_0x3ba8fc)),E(0x2,_0x5ec846),E(0x3,_0x5e4f85),E(0x4,_0x52355c),E(0x5,_0x3e9de(_0x47d7cf))],L);export{tn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,un as MCPStatusDisplay,k as MCPUIMenuController,V as OpenMCPConfigPanelCommand,L as UniverMCPUIPlugin,On as enUS,kn as zhCN};
|
|
1
|
+
const _0x4721d=_0x226a;(function(_0x2d4d8d,_0x192329){const _0x2a1d77=_0x226a,_0x5680bd=_0x2d4d8d();while(!![]){try{const _0x12fbeb=parseInt(_0x2a1d77(0x2b9))/0x1*(-parseInt(_0x2a1d77(0x30b))/0x2)+-parseInt(_0x2a1d77(0x281))/0x3*(-parseInt(_0x2a1d77(0x1e7))/0x4)+parseInt(_0x2a1d77(0x26d))/0x5*(-parseInt(_0x2a1d77(0x24e))/0x6)+parseInt(_0x2a1d77(0x200))/0x7+parseInt(_0x2a1d77(0x243))/0x8*(parseInt(_0x2a1d77(0x2ff))/0x9)+parseInt(_0x2a1d77(0x2fc))/0xa*(-parseInt(_0x2a1d77(0x286))/0xb)+parseInt(_0x2a1d77(0x1da))/0xc;if(_0x12fbeb===_0x192329)break;else _0x5680bd['push'](_0x5680bd['shift']());}catch(_0x2d0193){_0x5680bd['push'](_0x5680bd['shift']());}}}(_0x4b37,0x3da33));var Pe=Object[_0x4721d(0x221)],Ee=(_0x2f1c98,_0x18a7cb,_0xe12123)=>_0x18a7cb in _0x2f1c98?Pe(_0x2f1c98,_0x18a7cb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe12123}):_0x2f1c98[_0x18a7cb]=_0xe12123,x=(_0x2c71d8,_0x2ad183,_0x319ccd)=>Ee(_0x2c71d8,typeof _0x2ad183!='symbol'?_0x2ad183+'':_0x2ad183,_0x319ccd);import{LocaleService as _0x449b31,Inject as _0xa6816e,Injector as _0x541a5c,IConfigService as _0x322e87,ILocalStorageService as _0x51e914,ILogService as _0x466f9d,Disposable as _0x1dd7fd,CommandType as _0x82f273,ICommandService as _0x4372fc,DependentOn as _0x2960b3,Plugin as _0x1b86ad,merge as _0x4710af}from'@univerjs/core';import{jsxs as _0x1bd020,jsx as _0x71d551}from'react/jsx-runtime';import{MCPConnectionStatus as _0x26985a,MCPConnectionError as _0x4f6500,MCPConnectionController as _0xf9b0c1,MCP_PLUGIN_CONFIG_KEY as _0x11f737,UniverMCPPlugin as _0xa3b208}from'@univerjs-pro/mcp';import{clsx as _0x4f2249,Input as _0x1c1bd9,Button as _0x56bcc2,MessageType as _0x2e8040,Tooltip as _0xaee0b3}from'@univerjs/design';import{useDependency as _0x357040,useObservable as _0x3580f4,IUIPartsService as _0x1e1885,IDialogService as _0x6baade,IMessageService as _0x671585,ComponentManager as _0x38f699,connectInjector as _0x16d407,BuiltInUIPart as _0x442c44,MenuItemType as _0x1fb06e,RibbonStartGroup as _0xe3f608,IMenuManagerService as _0x23bcea}from'@univerjs/ui';import{BehaviorSubject as _0x37c39b}from'rxjs';import{useRef as _0x5e523d,createElement as _0x56d3b5,forwardRef as _0x2399dd,useState as _0x69cec1,useCallback as _0x23973d}from'react';import{ISocketService as _0x494737,WebSocketService as _0x321007}from'@univerjs/network';function b({ref:_0x5be806,..._0x436b33}){const _0x5bafda=_0x4721d,{icon:_0x320466,id:_0x3244f5,className:_0x1ca1b4,extend:_0x2fa13b,..._0x179c24}=_0x436b33,_0x3ea295=(_0x5bafda(0x202)+_0x3244f5+'\x20'+(_0x1ca1b4||''))[_0x5bafda(0x233)](),_0x25ad42=_0x5e523d('_'+We());return ae(_0x320466,''+_0x3244f5,{'defIds':_0x320466['defIds'],'idSuffix':_0x25ad42['current']},{'ref':_0x5be806,'className':_0x3ea295,..._0x179c24},_0x2fa13b);}function ae(_0x2baa90,_0x4f7f07,_0x26078c,_0x16bcc0,_0x1d0556){const _0x3e6610=_0x4721d;return _0x56d3b5(_0x2baa90[_0x3e6610(0x234)],{'key':_0x4f7f07,...Ye(_0x2baa90,_0x26078c,_0x1d0556),..._0x16bcc0},(Ze(_0x2baa90,_0x26078c)[_0x3e6610(0x236)]||[])[_0x3e6610(0x32a)]((_0x264629,_0x373dac)=>ae(_0x264629,_0x4f7f07+'-'+_0x2baa90[_0x3e6610(0x234)]+'-'+_0x373dac,_0x26078c,void 0x0,_0x1d0556)));}function Ye(_0x555613,_0x365dc2,_0x335db7){const _0x46c65a=_0x4721d,_0x349b04={..._0x555613[_0x46c65a(0x283)]};_0x335db7!=null&&_0x335db7[_0x46c65a(0x237)]&&_0x349b04[_0x46c65a(0x22a)]===_0x46c65a(0x237)&&(_0x349b04['fill']=_0x335db7[_0x46c65a(0x237)]),_0x555613[_0x46c65a(0x234)]===_0x46c65a(0x2ad)&&_0x349b04['id']&&(_0x349b04['id']=_0x349b04['id']+_0x365dc2[_0x46c65a(0x311)]),Object['entries'](_0x349b04)[_0x46c65a(0x296)](([_0x381ddd,_0x50f20f])=>{const _0x3dbba2=_0x46c65a;_0x381ddd===_0x3dbba2(0x2ad)&&typeof _0x50f20f==_0x3dbba2(0x2e7)&&(_0x349b04[_0x381ddd]=_0x50f20f[_0x3dbba2(0x2f7)](/url\(#(.*)\)/,'url(#$1'+_0x365dc2[_0x3dbba2(0x311)]+')'));});const {defIds:_0x466ea7}=_0x365dc2;return!_0x466ea7||_0x466ea7['length']===0x0||(_0x555613[_0x46c65a(0x234)]===_0x46c65a(0x255)&&_0x349b04[_0x46c65a(0x2bb)]&&(_0x349b04[_0x46c65a(0x2bb)]=_0x349b04[_0x46c65a(0x2bb)]+_0x365dc2[_0x46c65a(0x311)]),Object[_0x46c65a(0x250)](_0x349b04)[_0x46c65a(0x296)](([_0x140630,_0x472b9d])=>{const _0x3e9683=_0x46c65a;typeof _0x472b9d==_0x3e9683(0x2e7)&&(_0x349b04[_0x140630]=_0x472b9d['replace'](/url\(#(.*)\)/,_0x3e9683(0x228)+_0x365dc2[_0x3e9683(0x311)]+')'));})),_0x349b04;}function _0x4b37(){const _0x5eb5df=['mcpConfig.title','_createConfigPanelComponent','mcp-ui.config','univer-flex-1','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','您的\x20API\x20密钥安全存储在本地存储中','保存中...','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','evenodd','defineProperty','substring','translate(.97)','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','subscribeConfigValue$','MCP\x20Unknown\x20Status','url(#$1','open','fill','Authorization:','mcpConfig.apiApplyInfo.title','MCP\x20Connected','配置参数:','Saving...','Connection\x20Failed','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','close-icon','trim','tag','HEADER_MENU','children','colorChannel1','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','0\x200\x2016\x2016','mcpConfig.connectionStatus.failed','将以下配置添加到您的\x20MCP\x20客户端设置中:','Configuration\x20Notes:','COMMAND','univer-flex\x20univer-gap-3','url(#off-line-icon_clip0_910_343)','getOwnPropertyDescriptor','HelpIcon','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','13496uLVUMR','univer-text-green-500','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','mcpStatus.unauthorized','NONE','未连接','registerComponent','includes','on-line-icon_clip0_910_349','MCP:\x20Unauthorized','sessionId$','12846NxbltT','showConfigPanel','entries','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','mcpConfig.validation.invalidApiKey','univer-flex\x20univer-items-center\x20univer-gap-2','CheckMarkIcon','use','_commandService','Success','univer-space-y-3','assign','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','univer-bg-blue-500','mcpConfig.saving','div','网络连接错误,请检查您的网络连接','univer-shrink-0\x20univer-text-red-500','mcpConfig.sessionIdDescription','mcpConfig.connectionError.unauthorized','mcpConfig.connectionStatus.retrying','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','enableAutoConnect','mcpConfig.apiApplyInfo.univerAiLabel','currentColor','MCP\x20Disconnected','warn','mcpConfig.connectionStatus.connected','1020NtJKFd','_handleConfigSave','add','您的\x20API\x20密钥将在此浏览器中本地存储','重启您的\x20MCP\x20客户端以使配置生效','Invalid\x20configuration','_initConfigSync','_loadStoredApiKey','mcpConfig.configStep1','validateApiKey','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','CloseIcon','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','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','showDeveloperTools','off-line-icon_clip0_910_343','什么是\x20API\x20密钥?','disposeWithMe','最大重试次数','mcpConfig.configStep3','3gWUOtK','univer-flex\x20univer-items-start\x20univer-gap-2','attrs','MCP\x20Connection\x20Failed','on-line-icon','2123EAngrS','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Connected','showStatus','mcp.apiKey','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','\x20-\x20','_registerComponent','univer.plus','mcpConfig.note2','univer-min-w-0\x20univer-flex-1','univer-text-xs\x20univer-text-gray-500','mcpConfig.description','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','mcpConfig.note1','MCP\x20客户端配置','forEach','MenuIcon','show','_mcpCoreConfig$','MCP\x20连接中...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','removeItem','会话\x20ID\x20已被占用,请稍后再试','Connecting...','univer-flex\x20univer-flex-wrap\x20univer-gap-2','Enable\x20authentication\x20for\x20secure\x20connections','mcpConfig.validation.apiKeyRequired','权限验证失败,请检查您的\x20API\x20密钥','_localeService','MCPConfigPanel','white','span','univer-bg-red-500','mcpStatus.unknown','https://console.univer.plus','mcpStatus.clickToConfigure','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','MCP:\x20超出最大重试次数','mask','univer.ai','API\x20Key','push','connectionError$','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-bg-green-500','CONNECTED','SESSION_ID_OCCUPIED','配置步骤:','noopener\x20noreferrer','UNAUTHORIZED','5AZQiaC','_apiKey$','xlink:href','mcpStatus.maxRetriesExceeded','MCP:\x20Network\x20Error','close','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','mcpConfig.save','请输入您的\x20API\x20密钥','url(#on-line-icon_clip0_910_349)','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','_validateConfig','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-text-yellow-500','univer-font-medium','Failed\x20to\x20save\x20configuration','next','M0\x200H16V16H0z','setItem','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','mcpStatus.sessionOccupied','Retrying...','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcpConfig.validation.apiKeyTooShort','mcpConfig.configStepTitle','button','mcpStatus.connecting','_config','0\x200\x2017\x2016','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','univer-text-gray-400','univer-text-gray-500','registerCommand','mcpConfig.connectionStatus.connecting','1em','defs','https://mcp.univer.ai/mcp/?univer_session_id=','BUTTON','_localStorageService','has','Enter\x20your\x20API\x20key','_dialogService','_initStatusComponent','Configuration\x20saved\x20successfully','MCP\x20Client\x20Configuration','string','_componentManager','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','将配置添加到您的\x20MCP\x20客户端设置文件中','API\x20密钥','none','MCP\x20状态未知','_blank','Bearer\x20','univer-size-4','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','clipPath','path','DISCONNECTED','_initAutoConnect','mcpStatus.disconnected','replace','univer-flex\x20univer-items-center','univer-text-sm\x20univer-font-medium','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','Univer\x20AI\x20控制台','23410rDyfxy','isValid','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','2502xLxngK','MCP\x20配置','保存配置','off-line-icon','mcpConfig.apiApplyInfo.getStarted','API\x20密钥不能为空','univer-space-y-2','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','_logService','connectionStatus$','length','_connectionController','152002tGoKxQ','_menuManagerService','univer-bg-gray-500','What\x20is\x20API\x20Key?','displayName','http://www.w3.org/2000/svg','idSuffix','Configuration\x20Parameters:','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','API\x20key\x20with\x20Bearer\x20prefix.','带有\x20Bearer\x20前缀的\x20API\x20密钥。','http','mcpStatus.failed','mcpConfig.connectionInfo','mcpConfig.validation.invalidConfig','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','_loading$','配置保存成功','MCP:\x20会话\x20ID\x20已被占用','Click\x20to\x20connect\x20MCP','已连接','UniverIcon','round','Disconnected','get','启用身份验证','NETWORK_ERROR','_config$','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','univer-text-white','mcpConfig.apiApplyInfo.description','map','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Save\x20Configuration','univer-flex\x20univer-items-start\x20univer-gap-3','8671056wVOnlc','mcpConfig.apiKeyPlaceholder','Univer\x20AI\x20Console','OnLineIcon','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','mcpServerUrl','_initializeMenus','MCP\x20Connecting...','mcpStatus.clickToConnect','MCP\x20Configuration','mcpStatus.connected','MCP\x20重连中...','subscribe','116264hjtPIw','mcpStatus.retrying','连接中...','getConfig','error','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','配置\x20MCP\x20使用\x20AI\x20操作电子表格','errorMessage','univer-text-red-500','value','复制以下\x20JSON\x20配置','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20密钥长度至少需要\x2010\x20位','_handleConfigure','svg','MCP:\x20Max\x20Retries\x20Exceeded','MCP_UI_PLUGIN','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','_uiPartsService','会话ID','bottom','RETRYING','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Error','超出最大重试次数,请稍后再试','2102863nEtZjv','getCurrentConfig','univerjs-icon\x20univerjs-icon-','MCP:\x20网络错误','mcpConfig.configError','MCP\x20连接失败','FAILED','MAX_RETRIES_EXCEEDED','_configService','mcpConfig.apiKeyHint','Copy\x20the\x20JSON\x20configuration\x20below','<API_KEY>','__setCustomHeaders','_injector','CONNECTING','点击配置\x20MCP','apiKey','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','onStarting','univer-size-2\x20univer-rounded-full','_messageService','Get\x20your\x20API\x20key\x20in\x20seconds','mergeMenu','_mcpConnectionController'];_0x4b37=function(){return _0x5eb5df;};return _0x4b37();}function Ze(_0x19bb9e,_0x504924){const _0x4ac9c4=_0x4721d;var _0x4f07b0;const {defIds:_0x2779ff}=_0x504924;return!_0x2779ff||_0x2779ff[_0x4ac9c4(0x309)]===0x0?_0x19bb9e:_0x19bb9e['tag']===_0x4ac9c4(0x2dd)&&((_0x4f07b0=_0x19bb9e[_0x4ac9c4(0x236)])!=null&&_0x4f07b0[_0x4ac9c4(0x309)])?{..._0x19bb9e,'children':_0x19bb9e[_0x4ac9c4(0x236)][_0x4ac9c4(0x32a)](_0x1a35a8=>typeof _0x1a35a8[_0x4ac9c4(0x283)]['id']=='string'&&_0x2779ff&&_0x2779ff[_0x4ac9c4(0x24a)](_0x1a35a8[_0x4ac9c4(0x283)]['id'])?{..._0x1a35a8,'attrs':{..._0x1a35a8['attrs'],'id':_0x1a35a8[_0x4ac9c4(0x283)]['id']+_0x504924[_0x4ac9c4(0x311)]}}:_0x1a35a8)}:_0x19bb9e;}function We(){const _0x2cd63b=_0x4721d;return Math['random']()['toString'](0x24)[_0x2cd63b(0x222)](0x2,0x8);}function _0x226a(_0xbb43bb,_0x427b4c){const _0x4b3704=_0x4b37();return _0x226a=function(_0x226ab8,_0x494262){_0x226ab8=_0x226ab8-0x1d8;let _0x2f0cf1=_0x4b3704[_0x226ab8];return _0x2f0cf1;},_0x226a(_0xbb43bb,_0x427b4c);}b['displayName']=_0x4721d(0x320);const qe={'tag':_0x4721d(0x1f5),'attrs':{'xmlns':_0x4721d(0x310),'fill':_0x4721d(0x2ec),'viewBox':'0\x200\x2016\x2016','width':_0x4721d(0x2dc),'height':_0x4721d(0x2dc)},'children':[{'tag':_0x4721d(0x2f3),'attrs':{'fill':_0x4721d(0x269),'d':_0x4721d(0x279),'fillRule':'evenodd','clipRule':_0x4721d(0x220)}}]},le=_0x2399dd(function(_0x42a9ef,_0x2b0c2d){const _0x5543b9=_0x4721d;return _0x56d3b5(b,Object[_0x5543b9(0x259)]({},_0x42a9ef,{'id':'check-mark-icon','ref':_0x2b0c2d,'icon':qe}));});le[_0x4721d(0x30f)]=_0x4721d(0x254);const Xe={'tag':_0x4721d(0x1f5),'attrs':{'xmlns':_0x4721d(0x310),'fill':_0x4721d(0x2ec),'viewBox':'0\x200\x2016\x2016','width':_0x4721d(0x2dc),'height':_0x4721d(0x2dc)},'children':[{'tag':_0x4721d(0x2f3),'attrs':{'fill':'currentColor','d':'M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z'}}]},ue=_0x2399dd(function(_0x4c30c4,_0x2f752c){const _0x3cad94=_0x4721d;return _0x56d3b5(b,Object[_0x3cad94(0x259)]({},_0x4c30c4,{'id':_0x3cad94(0x232),'ref':_0x2f752c,'icon':Xe}));});ue['displayName']=_0x4721d(0x278);const Je={'tag':_0x4721d(0x1f5),'attrs':{'xmlns':_0x4721d(0x310),'fill':_0x4721d(0x2ec),'viewBox':_0x4721d(0x239),'width':_0x4721d(0x2dc),'height':_0x4721d(0x2dc)},'children':[{'tag':_0x4721d(0x2f3),'attrs':{'fill':_0x4721d(0x269),'d':_0x4721d(0x2f1)}},{'tag':'path','attrs':{'fill':_0x4721d(0x269),'d':_0x4721d(0x27a)}},{'tag':_0x4721d(0x2f3),'attrs':{'fill':'currentColor','d':_0x4721d(0x21c),'fillRule':_0x4721d(0x220),'clipRule':'evenodd'}}]},ve=_0x2399dd(function(_0x58cb01,_0x2ec15c){const _0x48fdb4=_0x4721d;return _0x56d3b5(b,Object[_0x48fdb4(0x259)]({},_0x58cb01,{'id':'help-icon','ref':_0x2ec15c,'icon':Je}));});ve[_0x4721d(0x30f)]=_0x4721d(0x241);const Qe={'tag':'svg','attrs':{'xmlns':_0x4721d(0x310),'fill':_0x4721d(0x2ec),'viewBox':_0x4721d(0x239),'width':'1em','height':_0x4721d(0x2dc)},'children':[{'tag':'g','attrs':{'clipPath':_0x4721d(0x23f)},'children':[{'tag':_0x4721d(0x2f3),'attrs':{'stroke':_0x4721d(0x269),'d':'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','strokeLinecap':_0x4721d(0x321),'strokeLinejoin':_0x4721d(0x321),'strokeWidth':1.2}}]},{'tag':_0x4721d(0x2dd),'attrs':{},'children':[{'tag':_0x4721d(0x2f2),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x4721d(0x2a5),'d':_0x4721d(0x2ca)}}]}]}],'defIds':[_0x4721d(0x27c)]},de=_0x2399dd(function(_0x5b1d6a,_0xe4750b){const _0x1944db=_0x4721d;return _0x56d3b5(b,Object[_0x1944db(0x259)]({},_0x5b1d6a,{'id':_0x1944db(0x302),'ref':_0xe4750b,'icon':Qe}));});de[_0x4721d(0x30f)]='OffLineIcon';const en={'tag':_0x4721d(0x1f5),'attrs':{'xmlns':_0x4721d(0x310),'fill':_0x4721d(0x2ec),'viewBox':_0x4721d(0x2d5),'width':'1em','height':_0x4721d(0x2dc)},'children':[{'tag':'g','attrs':{'clipPath':_0x4721d(0x2c2)},'children':[{'tag':_0x4721d(0x2f3),'attrs':{'stroke':'currentColor','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':_0x4721d(0x321),'strokeLinejoin':_0x4721d(0x321),'strokeWidth':1.2}}]},{'tag':_0x4721d(0x2dd),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x4721d(0x2f3),'attrs':{'fill':_0x4721d(0x2a5),'d':_0x4721d(0x2ca),'transform':_0x4721d(0x223)}}]}]}],'defIds':[_0x4721d(0x24b)]},ge=_0x2399dd(function(_0x344dfe,_0x1810ce){const _0x2f3ec4=_0x4721d;return _0x56d3b5(b,Object[_0x2f3ec4(0x259)]({},_0x344dfe,{'id':_0x2f3ec4(0x285),'ref':_0x1810ce,'icon':en}));});ge[_0x4721d(0x30f)]=_0x4721d(0x1dd);function nn(_0xf81769){const _0x21587f=_0x4721d;var _0x1d6849,_0x11dbb9;const {mcpCoreConfig:_0x44e111,onSave:_0x4b94e0,loading:_0x201804=!0x1,config:_0x1b68e6,connectionStatus$:_0x3978b9,connectionError$:_0x3ef7b0,currentApiKey$:_0x59df57,currentSessionId$:_0x3cebfe}=_0xf81769,_0x129a37=_0x357040(_0x449b31),_0x4653e0=_0x3580f4(_0x3978b9,_0x26985a[_0x21587f(0x2f4)]),_0x4ea5db=_0x3580f4(_0x3ef7b0,_0x4f6500[_0x21587f(0x247)]),_0x48678d=_0x3580f4(_0x3cebfe,''),_0xfdfb1f=_0x3580f4(_0x59df57,''),[_0x32ebcd,_0x57d456]=_0x69cec1(_0xfdfb1f||''),_0x2e4d2e=!0x0,_0x4fb7f7=_0x1b68e6[_0x21587f(0x27b)]&&_0x44e111[_0x21587f(0x1df)]&&(_0x44e111[_0x21587f(0x1df)][_0x21587f(0x24a)]('univer.plus')||_0x44e111[_0x21587f(0x1df)]['includes'](_0x21587f(0x2ae))),_0x31da56=(_0x1d6849=_0x44e111['mcpServerUrl'])==null?void 0x0:_0x1d6849[_0x21587f(0x24a)](_0x21587f(0x28e)),_0x2d3c99=(_0x11dbb9=_0x44e111[_0x21587f(0x1df)])==null?void 0x0:_0x11dbb9[_0x21587f(0x24a)](_0x21587f(0x2ae)),_0x3b0cfa=_0x31da56?_0x21587f(0x2a9):'https://console.univer.ai',_0x482255=_0x1b68e6[_0x21587f(0x27b)]&&(_0x31da56||_0x2d3c99),[_0x588224,_0x10d97d]=_0x69cec1(!_0x32ebcd[_0x21587f(0x233)]()),_0x5ed70c=(_0x1543f1,_0x36ee8f)=>{const _0x17df80=_0x21587f;if(_0x36ee8f===_0x4f6500['UNAUTHORIZED'])return _0x17df80(0x224);switch(_0x1543f1){case _0x26985a[_0x17df80(0x2b4)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x26985a[_0x17df80(0x20e)]:case _0x26985a['RETRYING']:return _0x17df80(0x2fe);case _0x26985a['FAILED']:return _0x17df80(0x224);default:return _0x17df80(0x2cc);}},_0x1e64ce=(_0x57159d,_0x1ec520)=>{const _0x3e8516=_0x21587f;if(_0x1ec520===_0x4f6500[_0x3e8516(0x2b8)])return _0x3e8516(0x2a7);switch(_0x57159d){case _0x26985a['CONNECTED']:return _0x3e8516(0x2b3);case _0x26985a[_0x3e8516(0x20e)]:case _0x26985a[_0x3e8516(0x1fc)]:return _0x3e8516(0x25d);case _0x26985a[_0x3e8516(0x206)]:return _0x3e8516(0x2a7);default:return _0x3e8516(0x30d);}},_0x445ffe=_0x18eb4e=>{const _0x203afb=_0x21587f;switch(_0x18eb4e){case _0x26985a[_0x203afb(0x2b4)]:return _0x129a37['t'](_0x203afb(0x26c));case _0x26985a[_0x203afb(0x20e)]:return _0x129a37['t'](_0x203afb(0x2db));case _0x26985a[_0x203afb(0x206)]:return _0x129a37['t'](_0x203afb(0x23a));case _0x26985a[_0x203afb(0x1fc)]:return _0x129a37['t'](_0x203afb(0x264));default:return _0x129a37['t']('mcpConfig.connectionStatus.disconnected');}},_0x1b7212=_0xf6815b=>{const _0xf137a2=_0x21587f;switch(_0xf6815b){case _0x4f6500[_0xf137a2(0x2b8)]:return _0x129a37['t'](_0xf137a2(0x263));case _0x4f6500[_0xf137a2(0x2b5)]:return _0x129a37['t']('mcpConfig.connectionError.sessionOccupied');case _0x4f6500[_0xf137a2(0x325)]:return _0x129a37['t']('mcpConfig.connectionError.networkError');case _0x4f6500[_0xf137a2(0x207)]:return _0x129a37['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x4815fc=_0x23973d(()=>{const _0x45a86d=_0x21587f,_0x1c8aaf={..._0x44e111,'apiKey':_0x32ebcd[_0x45a86d(0x233)](),'enableAuth':_0x2e4d2e};_0x4b94e0(_0x1c8aaf);},[_0x44e111,_0x32ebcd,_0x2e4d2e,_0x4b94e0]),_0x456c61=_0x32ebcd[_0x21587f(0x233)]()[_0x21587f(0x309)]>0x0;return _0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x251),'children':[_0x71d551('div',{'className':_0x21587f(0x1f8),'children':_0x1bd020(_0x21587f(0x25f),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0x71d551(_0x21587f(0x25f),{'className':_0x21587f(0x28b),'children':_0x71d551('span',{'className':_0x21587f(0x328),'children':'⚙'})}),_0x71d551('div',{'children':_0x71d551('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x129a37['t'](_0x21587f(0x292))})})]})}),_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x2c5),'children':[_0x71d551('div',{'className':_0x4f2249(_0x21587f(0x327),_0x5ed70c(_0x4653e0,_0x4ea5db)),'children':_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x253),'children':[_0x71d551(_0x21587f(0x25f),{'className':_0x4f2249(_0x21587f(0x213),_0x1e64ce(_0x4653e0,_0x4ea5db))}),_0x71d551('span',{'className':_0x21587f(0x2f9),'children':_0x445ffe(_0x4653e0)})]})}),_0x4ea5db!==_0x4f6500[_0x21587f(0x247)]&&(_0x4653e0===_0x26985a[_0x21587f(0x206)]||_0x4ea5db===_0x4f6500['UNAUTHORIZED'])&&_0x71d551(_0x21587f(0x25f),{'className':_0x21587f(0x2ab),'children':_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x282),'children':[_0x71d551(_0x21587f(0x2a6),{'className':_0x21587f(0x261),'children':'⚠️'}),_0x71d551('p',{'className':_0x21587f(0x231),'children':_0x1b7212(_0x4ea5db)})]})})]}),_0x71d551(_0x21587f(0x25f),{'className':_0x21587f(0x1ec),'children':_0x1bd020(_0x21587f(0x25f),{'className':'univer-space-y-5','children':[_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x305),'children':[_0x1bd020('label',{'className':_0x21587f(0x245),'children':[_0x71d551(_0x21587f(0x2a6),{'children':'🔑'}),'\x20',_0x129a37['t']('mcpConfig.apiKey'),_0x71d551(_0x21587f(0x2a6),{'className':_0x21587f(0x1ef),'children':'*'}),_0x4fb7f7&&_0x71d551('a',{'className':'univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x129a37['t'](_0x21587f(0x22c)),'role':_0x21587f(0x2d2),'onClick':()=>_0x10d97d(!0x0),'children':_0x71d551(ve,{})})]}),_0x71d551(_0x1c1bd9,{'type':'text','placeholder':_0x129a37['t'](_0x21587f(0x1db)),'value':_0x32ebcd,'disabled':_0x201804,'autoComplete':'off','onChange':_0x57d456}),_0x71d551('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x129a37['t'](_0x21587f(0x209))})]}),_0x4fb7f7&&_0x588224&&_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x21f),'children':[_0x71d551('a',{'className':_0x21587f(0x2e9),'role':_0x21587f(0x2d2),'onClick':()=>_0x10d97d(!0x1),'children':_0x71d551(ue,{'className':_0x21587f(0x2f0)})}),_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x31a),'children':[_0x71d551('div',{'className':_0x21587f(0x225),'children':_0x71d551('span',{'className':'univer-text-blue-600','children':'🚀'})}),_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x21b),'children':[_0x71d551('h4',{'className':_0x21587f(0x2b2),'children':_0x129a37['t'](_0x21587f(0x22c))}),_0x71d551('p',{'className':_0x21587f(0x265),'children':_0x129a37['t'](_0x21587f(0x329))}),_0x71d551('div',{'className':_0x21587f(0x29f),'children':_0x482255&&_0x1bd020('a',{'className':'univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','href':_0x3b0cfa,'target':_0x21587f(0x2ee),'rel':_0x21587f(0x2b7),'children':[_0x71d551(_0x21587f(0x2a6),{'children':'🤖'}),_0x129a37['t'](_0x21587f(0x268)),_0x71d551('span',{'className':_0x21587f(0x2d8),'children':'↗'})]})}),_0x1bd020(_0x21587f(0x25f),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x129a37['t'](_0x21587f(0x303))]})]})]})]}),_0x1b68e6['showDeveloperTools']&&_0x1bd020(_0x21587f(0x25f),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x1bd020('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x71d551(_0x21587f(0x2a6),{'children':'🔗'}),'\x20',_0x129a37['t'](_0x21587f(0x318))]}),_0x1bd020(_0x21587f(0x25f),{'className':'univer-space-y-4','children':[_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x258),'children':[_0x71d551('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x129a37['t']('mcpConfig.configInstructions')}),_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x305),'children':[_0x71d551(_0x21587f(0x25f),{'className':_0x21587f(0x2fa),'children':_0x129a37['t'](_0x21587f(0x2d1))}),_0x1bd020('div',{'className':_0x21587f(0x266),'children':[_0x1bd020('div',{'className':_0x21587f(0x253),'children':[_0x71d551(_0x21587f(0x2a6),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x129a37['t'](_0x21587f(0x275))]}),_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x253),'children':[_0x71d551(_0x21587f(0x2a6),{'className':_0x21587f(0x238),'children':'2'}),_0x129a37['t']('mcpConfig.configStep2')]}),_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x253),'children':[_0x71d551(_0x21587f(0x2a6),{'className':_0x21587f(0x238),'children':'3'}),_0x129a37['t'](_0x21587f(0x280))]})]})]})]}),_0x1bd020('div',{'className':_0x21587f(0x305),'children':[_0x71d551(_0x21587f(0x25f),{'className':_0x21587f(0x2fa),'children':_0x21587f(0x1e3)}),_0x71d551(_0x21587f(0x25f),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0x71d551('pre',{'className':_0x21587f(0x1de),'children':JSON['stringify']({'mcpServers':{'univer':{'url':_0x21587f(0x2de)+(_0x48678d||'<SESSION_ID>'),'type':_0x21587f(0x316),'headers':{'Authorization':_0x21587f(0x2ef)+(_0x32ebcd||_0x21587f(0x20b))}}}},null,0x2)})})]}),_0x1bd020(_0x21587f(0x25f),{'className':'univer-space-y-3','children':[_0x71d551(_0x21587f(0x25f),{'className':_0x21587f(0x2fa),'children':_0x129a37['t']('mcpConfig.configParameters')}),_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x305),'children':[_0x1bd020(_0x21587f(0x25f),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x71d551(_0x21587f(0x25f),{'className':_0x21587f(0x2cf)}),_0x1bd020('div',{'className':_0x21587f(0x290),'children':[_0x71d551('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':'univer_session_id:'}),_0x71d551(_0x21587f(0x25f),{'className':_0x21587f(0x291),'children':_0x129a37['t'](_0x21587f(0x262))})]})]}),_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x1d9),'children':[_0x71d551('div',{'className':_0x21587f(0x2cf)}),_0x1bd020('div',{'className':_0x21587f(0x290),'children':[_0x71d551('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x21587f(0x22b)}),_0x71d551(_0x21587f(0x25f),{'className':_0x21587f(0x291),'children':_0x129a37['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x71d551(_0x56bcc2,{'onClick':_0x4815fc,'disabled':!_0x456c61||_0x201804,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0x201804?_0x1bd020(_0x21587f(0x2a6),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x71d551(_0x21587f(0x2a6),{'children':'⟲'}),_0x129a37['t'](_0x21587f(0x25e))]}):_0x1bd020(_0x21587f(0x2a6),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x71d551(le,{}),_0x129a37['t'](_0x21587f(0x2c0))]})}),_0x71d551(_0x21587f(0x25f),{'className':_0x21587f(0x313),'children':_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x23e),'children':[_0x71d551(_0x21587f(0x2a6),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x2d6),'children':[_0x71d551('div',{'className':_0x21587f(0x2c7),'children':_0x21587f(0x23c)}),_0x1bd020(_0x21587f(0x25f),{'children':['•',_0x129a37['t'](_0x21587f(0x294))]}),_0x1bd020(_0x21587f(0x25f),{'children':['•',_0x129a37['t'](_0x21587f(0x28f))]})]})]})})]})})]});}const y=_0x4721d(0x21a),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x4721d(0x240)],tn=(_0x595c29,_0x48b406,_0x11caf2,_0x12e215)=>{const _0x2b5980=_0x4721d;for(var _0x55e337=_0x12e215>0x1?void 0x0:_0x12e215?rn(_0x48b406,_0x11caf2):_0x48b406,_0x2eda07=_0x595c29[_0x2b5980(0x309)]-0x1,_0x5dd52b;_0x2eda07>=0x0;_0x2eda07--)(_0x5dd52b=_0x595c29[_0x2eda07])&&(_0x55e337=_0x5dd52b(_0x55e337)||_0x55e337);return _0x55e337;},d=(_0x1e1de3,_0x4364e0)=>(_0x2cfabe,_0x321f2b)=>_0x4364e0(_0x2cfabe,_0x321f2b,_0x1e1de3);const U=_0x4721d(0x28a),L='mcp-config-dialog';let I=class extends _0x1dd7fd{constructor(_0x16d903,_0x3e1c64,_0x2d8424,_0x1d8d8d,_0x1cc57,_0x479fb8,_0x1aa09f,_0x1408e3,_0x44c49e,_0x1eb98a){const _0x125b9a=_0x4721d;super(),x(this,'_loading$',new _0x37c39b(!0x1)),x(this,'_mcpCoreConfig$',new _0x37c39b({})),x(this,_0x125b9a(0x326),new _0x37c39b({})),x(this,_0x125b9a(0x2ba),new _0x37c39b('')),x(this,_0x125b9a(0x26e),async _0x4667c9=>{const _0x1b5dcb=_0x125b9a;var _0x2579ca,_0x271d17;this['_loading$'][_0x1b5dcb(0x2c9)](!0x0);try{const _0x4941d8=await this[_0x1b5dcb(0x2c4)](_0x4667c9);if(!_0x4941d8[_0x1b5dcb(0x2fd)]){this[_0x1b5dcb(0x214)][_0x1b5dcb(0x298)]({'type':_0x2e8040[_0x1b5dcb(0x1fe)],'content':_0x4941d8[_0x1b5dcb(0x1ee)]||this[_0x1b5dcb(0x2a3)]['t'](_0x1b5dcb(0x319))});return;}_0x4667c9[_0x1b5dcb(0x210)]?await this[_0x1b5dcb(0x2e0)][_0x1b5dcb(0x2cb)](U,_0x4667c9[_0x1b5dcb(0x210)][_0x1b5dcb(0x233)]()):await this[_0x1b5dcb(0x2e0)][_0x1b5dcb(0x29c)](U),this['_apiKey$'][_0x1b5dcb(0x2c9)](((_0x2579ca=_0x4667c9[_0x1b5dcb(0x210)])==null?void 0x0:_0x2579ca[_0x1b5dcb(0x233)]())||''),this[_0x1b5dcb(0x217)][_0x1b5dcb(0x20c)]({'Authorization':_0x1b5dcb(0x2ef)+((_0x271d17=_0x4667c9[_0x1b5dcb(0x210)])==null?void 0x0:_0x271d17['trim']())}),this[_0x1b5dcb(0x214)][_0x1b5dcb(0x298)]({'type':_0x2e8040[_0x1b5dcb(0x257)],'content':this[_0x1b5dcb(0x2a3)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x302464=_0x1b5dcb;this[_0x302464(0x2e3)][_0x302464(0x2be)](L);},0x320);}catch(_0x10b989){this[_0x1b5dcb(0x307)][_0x1b5dcb(0x1eb)](_0x1b5dcb(0x306),_0x10b989),this[_0x1b5dcb(0x214)][_0x1b5dcb(0x298)]({'type':_0x2e8040[_0x1b5dcb(0x1fe)],'content':this['_localeService']['t'](_0x1b5dcb(0x204))});}finally{this['_loading$'][_0x1b5dcb(0x2c9)](!0x1);}}),(this[_0x125b9a(0x20d)]=_0x16d903,this['_uiPartsService']=_0x3e1c64,this['_configService']=_0x2d8424,this[_0x125b9a(0x2e0)]=_0x1d8d8d,this[_0x125b9a(0x2e3)]=_0x1cc57,this[_0x125b9a(0x214)]=_0x479fb8,this[_0x125b9a(0x2e8)]=_0x1aa09f,this[_0x125b9a(0x2a3)]=_0x1408e3,this['_logService']=_0x44c49e,this[_0x125b9a(0x217)]=_0x1eb98a,this[_0x125b9a(0x273)](),this[_0x125b9a(0x274)](),this['_registerComponent']());}['showConfigPanel'](){const _0x465a18=_0x4721d,_0x28b3f3=this['_configService']['getConfig'](y);_0x28b3f3!=null&&_0x28b3f3[_0x465a18(0x27b)]&&this['_dialogService'][_0x465a18(0x229)]({'id':L,'title':{'title':this[_0x465a18(0x2a3)]['t'](_0x465a18(0x218))},'children':{'label':_0x465a18(0x2a4)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x5867d7=_0x465a18;this[_0x5867d7(0x2e3)][_0x5867d7(0x2be)](L);}});}[_0x4721d(0x201)](){const _0x224960=_0x4721d;return this[_0x224960(0x299)]['value'];}[_0x4721d(0x28d)](){const _0x4b9048=_0x4721d;this[_0x4b9048(0x27e)](this[_0x4b9048(0x2e8)]['register'](_0x4b9048(0x2a4),this[_0x4b9048(0x219)]()));}[_0x4721d(0x219)](){const _0x39fdf1=_0x4721d;return _0x16d407(()=>{const _0x2e320d=_0x226a;var _0x1741ca,_0x5b2c2a,_0x20a57a;return _0x71d551(nn,{'config':this[_0x2e320d(0x326)][_0x2e320d(0x1f0)],'mcpCoreConfig':this['_mcpCoreConfig$']['value'],'currentApiKey$':this[_0x2e320d(0x2ba)],'onSave':this[_0x2e320d(0x26e)],'loading':this[_0x2e320d(0x31b)][_0x2e320d(0x1f0)],'connectionStatus$':(_0x1741ca=this[_0x2e320d(0x217)])==null?void 0x0:_0x1741ca['connectionStatus$'],'connectionError$':(_0x5b2c2a=this[_0x2e320d(0x217)])==null?void 0x0:_0x5b2c2a[_0x2e320d(0x2b1)],'currentSessionId$':(_0x20a57a=this[_0x2e320d(0x217)])==null?void 0x0:_0x20a57a[_0x2e320d(0x24d)]});},this[_0x39fdf1(0x20d)]);}['_initConfigSync'](){const _0x3c65a0=_0x4721d;this['disposeWithMe'](this['_configService'][_0x3c65a0(0x226)](_0x11f737)[_0x3c65a0(0x1e6)](_0x4d5855=>{const _0x3dac05=_0x3c65a0;this['_mcpCoreConfig$'][_0x3dac05(0x2c9)](_0x4d5855||{});}));const _0x3e7b48=this[_0x3c65a0(0x208)]['getConfig'](_0x11f737);this[_0x3c65a0(0x299)][_0x3c65a0(0x2c9)](_0x3e7b48||{}),this['disposeWithMe'](this[_0x3c65a0(0x208)][_0x3c65a0(0x226)](y)['subscribe'](_0x2d9760=>{const _0x574149=_0x3c65a0;this[_0x574149(0x326)]['next'](_0x2d9760||{});}));const _0x2e1ce9=this[_0x3c65a0(0x208)]['getConfig'](y);this[_0x3c65a0(0x326)][_0x3c65a0(0x2c9)](_0x2e1ce9||{});}async['_loadStoredApiKey'](){const _0x4788a6=_0x4721d,_0x19644f=this['_configService'][_0x4788a6(0x1ea)](y);if(!(_0x19644f!=null&&_0x19644f[_0x4788a6(0x27b)]))return;const _0x7fa114=await this[_0x4788a6(0x2e0)]['getItem'](U);_0x7fa114&&(this[_0x4788a6(0x217)][_0x4788a6(0x20c)]({'Authorization':'Bearer\x20'+_0x7fa114}),this[_0x4788a6(0x2ba)][_0x4788a6(0x2c9)](_0x7fa114));}async[_0x4721d(0x2c4)](_0xe50baa){const _0x12a275=_0x4721d;if(!_0xe50baa[_0x12a275(0x210)]||_0xe50baa['apiKey'][_0x12a275(0x233)]()[_0x12a275(0x309)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x12a275(0x2a3)]['t'](_0x12a275(0x2a1))};if(_0xe50baa[_0x12a275(0x210)]['trim']()[_0x12a275(0x309)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x12a275(0x2a3)]['t'](_0x12a275(0x2d0))};try{const _0x3bde53=await this[_0x12a275(0x20d)][_0x12a275(0x323)](_0xf9b0c1)[_0x12a275(0x276)](_0xe50baa[_0x12a275(0x210)][_0x12a275(0x233)]());return _0x3bde53['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x3bde53[_0x12a275(0x1eb)]||this[_0x12a275(0x2a3)]['t'](_0x12a275(0x252))};}catch(_0x108648){return console[_0x12a275(0x26b)](_0x12a275(0x277),_0x108648),{'isValid':!0x0};}}};I=tn([d(0x0,_0xa6816e(_0x541a5c)),d(0x1,_0x1e1885),d(0x2,_0x322e87),d(0x3,_0x51e914),d(0x4,_0x6baade),d(0x5,_0x671585),d(0x6,_0xa6816e(_0x38f699)),d(0x7,_0xa6816e(_0x449b31)),d(0x8,_0x466f9d),d(0x9,_0xa6816e(_0xf9b0c1))],I);const V={'id':'mcp-ui.command.openConfigPanel','type':_0x82f273[_0x4721d(0x23d)],'handler':async(_0x37133a,_0x10fb80)=>(_0x37133a['get'](I)[_0x4721d(0x24f)](),!0x0)};function pe(_0x1d190c,_0x211fac){const _0x3f5c5b=_0x4721d;switch(_0x1d190c){case _0x26985a[_0x3f5c5b(0x2f4)]:return _0x3f5c5b(0x2f6);case _0x26985a[_0x3f5c5b(0x20e)]:return _0x3f5c5b(0x2d3);case _0x26985a['CONNECTED']:return _0x3f5c5b(0x1e4);case _0x26985a[_0x3f5c5b(0x206)]:switch(_0x211fac){case _0x4f6500[_0x3f5c5b(0x2b8)]:return _0x3f5c5b(0x246);case _0x4f6500[_0x3f5c5b(0x2b5)]:return _0x3f5c5b(0x2cd);case _0x4f6500[_0x3f5c5b(0x325)]:return'mcpStatus.networkError';case _0x4f6500['MAX_RETRIES_EXCEEDED']:return _0x3f5c5b(0x2bc);default:return _0x3f5c5b(0x317);}case _0x26985a[_0x3f5c5b(0x1fc)]:return _0x3f5c5b(0x1e8);default:return _0x3f5c5b(0x2a8);}}function on(_0x3c680c,_0x43af9a,_0xa4f91b,_0x2fff05=!0x0){const _0x1e9725=_0x4721d,_0x4a5bda=pe(_0x3c680c,_0x43af9a),_0x433dee=_0xa4f91b['t'](_0x4a5bda);return _0x2fff05?_0x3c680c===_0x26985a[_0x1e9725(0x2f4)]&&_0x43af9a===_0x4f6500['UNAUTHORIZED']?_0x433dee+_0x1e9725(0x28c)+_0xa4f91b['t'](_0x1e9725(0x2aa)):_0x3c680c===_0x26985a[_0x1e9725(0x2b4)]?''+_0x433dee:_0x3c680c===_0x26985a[_0x1e9725(0x2f4)]||_0x3c680c===_0x26985a['FAILED']?_0x433dee+'\x20-\x20'+_0xa4f91b['t'](_0x1e9725(0x1e2)):_0x433dee:_0x433dee;}function sn(_0x3fb69a){const _0x2e2323=_0x4721d;switch(_0x3fb69a){case _0x26985a[_0x2e2323(0x2b4)]:return _0x2e2323(0x244);case _0x26985a[_0x2e2323(0x20e)]:case _0x26985a[_0x2e2323(0x1fc)]:return _0x2e2323(0x2c6);case _0x26985a[_0x2e2323(0x206)]:case _0x26985a[_0x2e2323(0x2f4)]:return _0x2e2323(0x1ef);default:return _0x2e2323(0x2d9);}}function cn(_0xa8d883){const _0x332273=_0x4721d,{status$:_0x4f279e,error$:_0x55911e,onConfigure:_0x154414,showClickable:_0x270ed9=!0x0}=_0xa8d883,_0x11455c=_0x3580f4(_0x4f279e,_0x26985a[_0x332273(0x2f4)]),_0x3340e5=_0x3580f4(_0x55911e,_0x4f6500['NONE']),_0x5f427d=_0x357040(_0x449b31),_0x1388ba=_0x11455c===_0x26985a[_0x332273(0x2b4)];_0x11455c===_0x26985a[_0x332273(0x20e)]||_0x26985a[_0x332273(0x1fc)];const _0x2d85a7=_0x5f427d['t'](pe(_0x11455c,_0x3340e5)),_0x21cf5b=on(_0x11455c,_0x3340e5,_0x5f427d,_0x270ed9),_0x184c37=sn(_0x11455c),_0x47c03e=_0x1388ba?_0x71d551(ge,{}):_0x71d551(de,{}),_0x439398=_0x23973d(()=>{_0x270ed9&&_0x154414&&_0x154414();},[_0x270ed9,_0x154414]);function _0xbd4c02(){const _0x47453b=_0x332273;return _0x1bd020(_0x47453b(0x25f),{'className':_0x4f2249(_0x47453b(0x2f8),_0x270ed9&&_0x154414&&_0x47453b(0x1fd)),'role':_0x47453b(0x2d2),'onClick':_0x270ed9&&_0x154414?_0x439398:void 0x0,'children':[_0x71d551(_0x47453b(0x25f),{'className':_0x4f2249('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x184c37),'children':_0x47c03e}),_0x71d551(_0x47453b(0x25f),{'className':_0x47453b(0x293),'children':_0x2d85a7})]});}return _0x71d551(_0xaee0b3,{'title':_0x21cf5b,'placement':_0x332273(0x1fb),'children':_0xbd4c02()});}var an=Object[_0x4721d(0x240)],ln=(_0x4248e4,_0x22ec22,_0x59e402,_0x3d041f)=>{for(var _0xf31110=_0x3d041f>0x1?void 0x0:_0x3d041f?an(_0x22ec22,_0x59e402):_0x22ec22,_0x207e68=_0x4248e4['length']-0x1,_0x243011;_0x207e68>=0x0;_0x207e68--)(_0x243011=_0x4248e4[_0x207e68])&&(_0xf31110=_0x243011(_0xf31110)||_0xf31110);return _0xf31110;},M=(_0x92dec7,_0x4a3409)=>(_0x2dd1d8,_0x40d28d)=>_0x4a3409(_0x2dd1d8,_0x40d28d,_0x92dec7);let O=class extends _0x1dd7fd{constructor(_0x244ad3,_0x36175d,_0x16ffe4,_0x1ce00f){const _0x5c5833=_0x4721d;super(),this[_0x5c5833(0x20d)]=_0x244ad3,this[_0x5c5833(0x30a)]=_0x36175d,this[_0x5c5833(0x1f9)]=_0x16ffe4,this[_0x5c5833(0x208)]=_0x1ce00f,this[_0x5c5833(0x2f5)](),this[_0x5c5833(0x2e4)]();}[_0x4721d(0x2f5)](){const _0x12b0af=_0x4721d,_0x5bbc18=this['_configService'][_0x12b0af(0x1ea)](y);_0x5bbc18!=null&&_0x5bbc18[_0x12b0af(0x27b)]&&(this[_0x12b0af(0x30a)][_0x12b0af(0x267)]=!0x1);}[_0x4721d(0x2e4)](){const _0x3db15f=_0x4721d,_0x3111dd=this['_configService']['getConfig'](y);(_0x3111dd==null?void 0x0:_0x3111dd[_0x3db15f(0x289)])!==!0x1&&this[_0x3db15f(0x27e)](this['_uiPartsService'][_0x3db15f(0x249)](_0x442c44[_0x3db15f(0x235)],()=>{const _0x15950f=_0x3db15f;var _0xb18613;return _0x16d407(un({'status$':this[_0x15950f(0x30a)][_0x15950f(0x308)],'error$':this[_0x15950f(0x30a)][_0x15950f(0x2b1)],'onConfigure':()=>this[_0x15950f(0x1f4)](),'showClickable':(_0xb18613=_0x3111dd==null?void 0x0:_0x3111dd['showDeveloperTools'])!=null?_0xb18613:!0x1}),this[_0x15950f(0x20d)]);}));}[_0x4721d(0x1f4)](){const _0x456f89=_0x4721d;this['_injector'][_0x456f89(0x323)](I)[_0x456f89(0x24f)]();}};O=ln([M(0x0,_0xa6816e(_0x541a5c)),M(0x1,_0xa6816e(_0xf9b0c1)),M(0x2,_0x1e1885),M(0x3,_0x322e87)],O);function un(_0x289b0c){const {status$:_0x1289b8,error$:_0x383a5a,onConfigure:_0x38440c,showClickable:_0x102656}=_0x289b0c;return function(){return _0x71d551(cn,{'status$':_0x1289b8,'error$':_0x383a5a,'onConfigure':_0x38440c,'showClickable':_0x102656});};}function vn(_0xac9985){const _0x4f72bd=_0x4721d;return{'id':V['id'],'type':_0x1fb06e[_0x4f72bd(0x2df)],'icon':_0x4f72bd(0x297),'title':_0x4f72bd(0x218),'tooltip':_0x4f72bd(0x218)};}const dn={[_0xe3f608['OTHERS']]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x4721d(0x240)],pn=(_0x11567d,_0x55aa07,_0x36d55b,_0x477947)=>{for(var _0x1b2fc3=_0x477947>0x1?void 0x0:_0x477947?gn(_0x55aa07,_0x36d55b):_0x55aa07,_0x4b9bd1=_0x11567d['length']-0x1,_0xd4a987;_0x4b9bd1>=0x0;_0x4b9bd1--)(_0xd4a987=_0x11567d[_0x4b9bd1])&&(_0x1b2fc3=_0xd4a987(_0x1b2fc3)||_0x1b2fc3);return _0x1b2fc3;},re=(_0x4fe74a,_0x182d98)=>(_0x48a573,_0xea88a6)=>_0x182d98(_0x48a573,_0xea88a6,_0x4fe74a);let D=class extends _0x1dd7fd{constructor(_0xf714ce,_0x444e02){const _0x4e2f71=_0x4721d;super(),this[_0x4e2f71(0x256)]=_0xf714ce,this['_menuManagerService']=_0x444e02,this['_initializeCommands'](),this['_initializeMenus']();}['_initializeCommands'](){const _0x53b77f=_0x4721d;[V][_0x53b77f(0x296)](_0x38abb3=>{const _0x4a7845=_0x53b77f;this['disposeWithMe'](this[_0x4a7845(0x256)][_0x4a7845(0x2da)](_0x38abb3));});}[_0x4721d(0x1e0)](){const _0x2f7edf=_0x4721d;this[_0x2f7edf(0x30c)][_0x2f7edf(0x216)](dn);}};D=pn([re(0x0,_0x4372fc),re(0x1,_0x23bcea)],D);const Mn={'mcpStatus':{'disconnected':_0x4721d(0x26a),'connecting':_0x4721d(0x1e1),'connected':_0x4721d(0x22d),'failed':_0x4721d(0x284),'retrying':'MCP\x20Retrying...','unknown':_0x4721d(0x227),'unauthorized':_0x4721d(0x24c),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x4721d(0x2bd),'maxRetriesExceeded':_0x4721d(0x1f6),'clickToConnect':_0x4721d(0x31e),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x4721d(0x1e3),'description':_0x4721d(0x287),'apiKey':_0x4721d(0x2af),'apiKeyPlaceholder':_0x4721d(0x2e2),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x4721d(0x2a0),'connectionInfo':_0x4721d(0x2e6),'mcpClientConfig':_0x4721d(0x2e6),'configInstructions':_0x4721d(0x2d7),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x4721d(0x20a),'configStep2':_0x4721d(0x242),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x4721d(0x25c),'authorizationDescription':_0x4721d(0x314),'configParameters':_0x4721d(0x312),'maxRetries':'Max\x20Retries','save':_0x4721d(0x1d8),'saving':_0x4721d(0x22f),'note1':_0x4721d(0x1f2),'note2':_0x4721d(0x25a),'configSaved':_0x4721d(0x2e5),'configError':_0x4721d(0x2c8),'apiApplyInfo':{'title':_0x4721d(0x30e),'description':_0x4721d(0x29b),'univerAiLabel':_0x4721d(0x1dc),'getStarted':_0x4721d(0x215)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x4721d(0x211),'invalidConfig':_0x4721d(0x272),'invalidApiKey':_0x4721d(0x2bf)},'connectionStatus':{'disconnected':_0x4721d(0x322),'connecting':_0x4721d(0x29e),'connected':_0x4721d(0x288),'failed':_0x4721d(0x230),'retrying':_0x4721d(0x2ce)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x4721d(0x32b),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x4721d(0x2c3)}}},An={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x4721d(0x29a),'connected':'MCP\x20已连接','failed':_0x4721d(0x205),'retrying':_0x4721d(0x1e5),'unknown':_0x4721d(0x2ed),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x4721d(0x31d),'networkError':_0x4721d(0x203),'maxRetriesExceeded':_0x4721d(0x2ac),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x4721d(0x20f)},'mcpConfig':{'title':_0x4721d(0x300),'description':_0x4721d(0x1ed),'apiKey':_0x4721d(0x2eb),'apiKeyPlaceholder':_0x4721d(0x2c1),'apiKeyHint':_0x4721d(0x270),'enableAuth':_0x4721d(0x324),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x4721d(0x295),'mcpClientConfig':_0x4721d(0x295),'configInstructions':_0x4721d(0x23b),'configStepTitle':_0x4721d(0x2b6),'configStep1':_0x4721d(0x1f1),'configStep2':_0x4721d(0x2ea),'configStep3':_0x4721d(0x271),'sessionId':_0x4721d(0x1fa),'sessionIdDescription':_0x4721d(0x25b),'authorizationDescription':_0x4721d(0x315),'configParameters':_0x4721d(0x22e),'maxRetries':_0x4721d(0x27f),'save':_0x4721d(0x301),'saving':_0x4721d(0x21e),'note1':'配置更改将立即生效','note2':_0x4721d(0x21d),'configSaved':_0x4721d(0x31c),'configError':'配置保存失败','apiApplyInfo':{'title':_0x4721d(0x27d),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x4721d(0x2fb),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x4721d(0x304),'apiKeyTooShort':_0x4721d(0x1f3),'invalidConfig':'配置无效','invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x4721d(0x248),'connecting':_0x4721d(0x1e9),'connected':_0x4721d(0x31f),'failed':'连接失败','retrying':'重连中...'},'connectionError':{'unauthorized':_0x4721d(0x2a2),'sessionOccupied':_0x4721d(0x29d),'networkError':_0x4721d(0x260),'maxRetriesExceeded':_0x4721d(0x1ff)}}};var fn=Object[_0x4721d(0x221)],hn=Object[_0x4721d(0x240)],Cn=(_0x4b75bf,_0x17bf8a,_0xba7c34)=>_0x17bf8a in _0x4b75bf?fn(_0x4b75bf,_0x17bf8a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xba7c34}):_0x4b75bf[_0x17bf8a]=_0xba7c34,mn=(_0x299d05,_0x5c3cfa,_0xed7b1,_0x4f9056)=>{const _0x79a637=_0x4721d;for(var _0x32484e=_0x4f9056>0x1?void 0x0:_0x4f9056?hn(_0x5c3cfa,_0xed7b1):_0x5c3cfa,_0x40602c=_0x299d05[_0x79a637(0x309)]-0x1,_0x16e8cc;_0x40602c>=0x0;_0x40602c--)(_0x16e8cc=_0x299d05[_0x40602c])&&(_0x32484e=_0x16e8cc(_0x32484e)||_0x32484e);return _0x32484e;},P=(_0x7868c,_0x49ce84)=>(_0x496d62,_0x5cdeb4)=>_0x49ce84(_0x496d62,_0x5cdeb4,_0x7868c),_n=(_0x272f1d,_0x8ddee0,_0x4c22c0)=>Cn(_0x272f1d,_0x8ddee0+'',_0x4c22c0);let j=class extends _0x1b86ad{constructor(_0x272f39=ie,_0x4f08a8,_0x135bcd,_0x1b76c4,_0x1fc1e5,_0x1800aa){const _0x5a054a=_0x4721d;super(),this[_0x5a054a(0x2d4)]=_0x272f39,this[_0x5a054a(0x20d)]=_0x4f08a8,this[_0x5a054a(0x208)]=_0x135bcd,this[_0x5a054a(0x1f9)]=_0x1b76c4,this[_0x5a054a(0x2e0)]=_0x1fc1e5,this[_0x5a054a(0x2a3)]=_0x1800aa;const {..._0x119ed0}=_0x4710af({},ie,this['_config']);this['_configService']['setConfig'](y,_0x119ed0);}async[_0x4721d(0x212)](){const _0x706e23=_0x4721d,_0xf35f54=[[O],[I],[D]];this['_injector'][_0x706e23(0x2e1)](_0x494737)||_0xf35f54[_0x706e23(0x2b0)]([_0x494737,{'useClass':_0x321007}]),_0xf35f54[_0x706e23(0x296)](_0xd38f72=>this[_0x706e23(0x20d)][_0x706e23(0x26f)](_0xd38f72)),this[_0x706e23(0x20d)]['get'](O),this['_injector'][_0x706e23(0x323)](I),this[_0x706e23(0x20d)][_0x706e23(0x323)](D);}};_n(j,'pluginName',_0x4721d(0x1f7)),j=mn([_0x2960b3(_0xa3b208),P(0x1,_0xa6816e(_0x541a5c)),P(0x2,_0x322e87),P(0x3,_0x1e1885),P(0x4,_0x51e914),P(0x5,_0xa6816e(_0x449b31))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
|
package/lib/es/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x5e8644=_0x55eb;function _0xb04a(){const _0x21c1af=['MCP\x20Connected','MCP\x20Client\x20Configuration','MCP:\x20Network\x20Error','MCP\x20Unknown\x20Status','Configuration\x20Parameters:','Configuration\x20saved\x20successfully','1493764fXRbtS','5206728bDdiEb','Enable\x20Authentication','Max\x20Retries','8919810xIWpRQ','44tXdtQU','What\x20is\x20API\x20Key?','Copy\x20the\x20JSON\x20configuration\x20below','Save\x20Configuration','Configuration\x20Steps:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','9345285kmZEmM','48tWFTpI','Click\x20to\x20configure\x20MCP','Connected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Retrying...','5wcSFhc','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Session\x20ID','6uuaVuU','Enter\x20your\x20API\x20key','API\x20Key','Failed\x20to\x20save\x20configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Max\x20Retries\x20Exceeded','618548vtoLfk','MCP:\x20Session\x20ID\x20Occupied','4947552yjHlKb','Invalid\x20configuration','Connecting...','Retrying...','MCP\x20Disconnected','MCP\x20Connecting...','544848yfFFea','MCP\x20Configuration','API\x20key\x20with\x20Bearer\x20prefix.','MCP:\x20Unauthorized','Disconnected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20key\x20is\x20required','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Univer\x20AI\x20Console'];_0xb04a=function(){return _0x21c1af;};return _0xb04a();}function _0x55eb(_0xd4a071,_0x3eb9d9){const _0xb04ae1=_0xb04a();return _0x55eb=function(_0x55eb64,_0x1733f4){_0x55eb64=_0x55eb64-0xaa;let _0x269d55=_0xb04ae1[_0x55eb64];return _0x269d55;},_0x55eb(_0xd4a071,_0x3eb9d9);}(function(_0x3c9f16,_0x45dd07){const _0x128aea=_0x55eb,_0x1d8396=_0x3c9f16();while(!![]){try{const _0x5626e4=-parseInt(_0x128aea(0xba))/0x1*(parseInt(_0x128aea(0xac))/0x2)+-parseInt(_0x128aea(0xcb))/0x3+-parseInt(_0x128aea(0xca))/0x4*(parseInt(_0x128aea(0xdb))/0x5)+-parseInt(_0x128aea(0xd6))/0x6*(-parseInt(_0x128aea(0xb2))/0x7)+-parseInt(_0x128aea(0xb4))/0x8+parseInt(_0x128aea(0xd5))/0x9+parseInt(_0x128aea(0xce))/0xa*(parseInt(_0x128aea(0xcf))/0xb);if(_0x5626e4===_0x45dd07)break;else _0x1d8396['push'](_0x1d8396['shift']());}catch(_0x3133c6){_0x1d8396['push'](_0x1d8396['shift']());}}}(_0xb04a,0xe839c));const e={'mcpStatus':{'disconnected':_0x5e8644(0xb8),'connecting':_0x5e8644(0xb9),'connected':_0x5e8644(0xc4),'failed':'MCP\x20Connection\x20Failed','retrying':_0x5e8644(0xda),'unknown':_0x5e8644(0xc7),'unauthorized':_0x5e8644(0xbd),'sessionOccupied':_0x5e8644(0xb3),'networkError':_0x5e8644(0xc6),'maxRetriesExceeded':_0x5e8644(0xb1),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x5e8644(0xd7)},'mcpConfig':{'title':_0x5e8644(0xbb),'description':_0x5e8644(0xc0),'apiKey':_0x5e8644(0xae),'apiKeyPlaceholder':_0x5e8644(0xad),'apiKeyHint':_0x5e8644(0xd4),'enableAuth':_0x5e8644(0xcc),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x5e8644(0xc5),'mcpClientConfig':_0x5e8644(0xc5),'configInstructions':_0x5e8644(0xdc),'configStepTitle':_0x5e8644(0xd3),'configStep1':_0x5e8644(0xd1),'configStep2':_0x5e8644(0xc2),'configStep3':_0x5e8644(0xd9),'sessionId':_0x5e8644(0xab),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x5e8644(0xbc),'configParameters':_0x5e8644(0xc8),'maxRetries':_0x5e8644(0xcd),'save':_0x5e8644(0xd2),'saving':'Saving...','note1':_0x5e8644(0xaa),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x5e8644(0xc9),'configError':_0x5e8644(0xaf),'apiApplyInfo':{'title':_0x5e8644(0xd0),'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':_0x5e8644(0xc3),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x5e8644(0xc1),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x5e8644(0xb5),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x5e8644(0xbe),'connecting':_0x5e8644(0xb6),'connected':_0x5e8644(0xd8),'failed':'Connection\x20Failed','retrying':_0x5e8644(0xb7)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x5e8644(0xdd),'networkError':_0x5e8644(0xb0),'maxRetriesExceeded':_0x5e8644(0xbf)}}},n=e;export{n as default};
|