@univerjs-pro/mcp-ui 0.12.1-nightly.202511221011 → 0.12.2-experimental.20251129-0fa20cd
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/ja-JP.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/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.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/ja-JP.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 +9 -9
package/lib/cjs/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3246bd=_0x456b;function _0x456b(_0x7e6f21,_0x313e19){const _0x441ab9=_0x441a();return _0x456b=function(_0x456b3e,_0x4478f5){_0x456b3e=_0x456b3e-0x110;let _0x29605a=_0x441ab9[_0x456b3e];return _0x29605a;},_0x456b(_0x7e6f21,_0x313e19);}(function(_0x2664b4,_0x43c99b){const _0x160bd8=_0x456b,_0x7de4f8=_0x2664b4();while(!![]){try{const _0x591514=-parseInt(_0x160bd8(0x12a))/0x1*(parseInt(_0x160bd8(0x128))/0x2)+-parseInt(_0x160bd8(0x13d))/0x3+-parseInt(_0x160bd8(0x132))/0x4+parseInt(_0x160bd8(0x135))/0x5*(-parseInt(_0x160bd8(0x144))/0x6)+-parseInt(_0x160bd8(0x13b))/0x7*(parseInt(_0x160bd8(0x113))/0x8)+-parseInt(_0x160bd8(0x110))/0x9*(parseInt(_0x160bd8(0x13f))/0xa)+parseInt(_0x160bd8(0x143))/0xb;if(_0x591514===_0x43c99b)break;else _0x7de4f8['push'](_0x7de4f8['shift']());}catch(_0x4fa378){_0x7de4f8['push'](_0x7de4f8['shift']());}}}(_0x441a,0x47b97));function _0x441a(){const _0x27a64c=['AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','559216kXortM','API\x20키','1450458dNtyEZ','설정\x20변경\x20사항은\x20즉시\x20적용됩니다','5825780wPIASn','API\x20키란\x20무엇인가요?','인증\x20활성화','보안\x20연결을\x20위해\x20인증\x20활성화','32846869rzBUzG','6JihOUo','9jXGgcK','Bearer\x20접두사가\x20있는\x20API\x20키.','MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','48hHdSZa','최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요','유효하지\x20않은\x20설정','네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','연결\x20중...','세션\x20ID','설정\x20단계:','MCP:\x20최대\x20재시도\x20횟수\x20초과','인증\x20실패.\x20API\x20키를\x20확인하세요','API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','연결됨','exports','재시도\x20중...','최대\x20재시도\x20횟수','세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','MCP:\x20세션\x20ID\x20사용\x20중','MCP\x20연결됨','클릭하여\x20MCP\x20연결','MCP\x20설정','API\x20키는\x20필수입니다','146LwaWTa','MCP\x20연결\x20중...','2905jDWuOy','설정\x20저장','몇\x20초\x20만에\x20API\x20키\x20발급받기','MCP:\x20네트워크\x20오류','저장\x20중...','설정\x20저장\x20실패','연결\x20실패','MCP\x20클라이언트\x20설정','1668808NHazdT','MCP\x20알\x20수\x20없는\x20상태','연결\x20끊김','2588185wnxEvR','API\x20키는\x2010자\x20이상이어야\x20합니다','MCP\x20연결\x20실패','MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.'];_0x441a=function(){return _0x27a64c;};return _0x441a();}const e={'mcpStatus':{'disconnected':'MCP\x20연결\x20끊김','connecting':_0x3246bd(0x129),'connected':_0x3246bd(0x124),'failed':_0x3246bd(0x137),'retrying':'MCP\x20재시도\x20중...','unknown':_0x3246bd(0x133),'unauthorized':'MCP:\x20인증되지\x20않음','sessionOccupied':_0x3246bd(0x123),'networkError':_0x3246bd(0x12d),'maxRetriesExceeded':_0x3246bd(0x11b),'clickToConnect':_0x3246bd(0x125),'clickToConfigure':'클릭하여\x20MCP\x20설정'},'mcpConfig':{'title':_0x3246bd(0x126),'description':_0x3246bd(0x13a),'apiKey':_0x3246bd(0x13c),'apiKeyPlaceholder':'API\x20키를\x20입력하세요','apiKeyHint':'API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','enableAuth':_0x3246bd(0x141),'enableAuthHint':_0x3246bd(0x142),'connectionInfo':_0x3246bd(0x131),'mcpClientConfig':'MCP\x20클라이언트\x20설정','configInstructions':_0x3246bd(0x112),'configStepTitle':_0x3246bd(0x11a),'configStep1':'아래\x20JSON\x20설정\x20복사','configStep2':_0x3246bd(0x117),'configStep3':_0x3246bd(0x138),'sessionId':_0x3246bd(0x119),'sessionIdDescription':_0x3246bd(0x139),'authorizationDescription':_0x3246bd(0x111),'configParameters':'설정\x20매개변수:','maxRetries':_0x3246bd(0x121),'save':_0x3246bd(0x12b),'saving':_0x3246bd(0x12e),'note1':_0x3246bd(0x13e),'note2':'API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','configSaved':'설정이\x20성공적으로\x20저장되었습니다','configError':_0x3246bd(0x12f),'apiApplyInfo':{'title':_0x3246bd(0x140),'description':_0x3246bd(0x11d),'univerAiLabel':'Univer\x20AI\x20콘솔','getStarted':_0x3246bd(0x12c)},'validation':{'apiKeyRequired':_0x3246bd(0x127),'apiKeyTooShort':_0x3246bd(0x136),'invalidConfig':_0x3246bd(0x115),'invalidApiKey':'유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요'},'connectionStatus':{'disconnected':_0x3246bd(0x134),'connecting':_0x3246bd(0x118),'connected':_0x3246bd(0x11e),'failed':_0x3246bd(0x130),'retrying':_0x3246bd(0x120)},'connectionError':{'unauthorized':_0x3246bd(0x11c),'sessionOccupied':_0x3246bd(0x122),'networkError':_0x3246bd(0x116),'maxRetriesExceeded':_0x3246bd(0x114)}}};module[_0x3246bd(0x11f)]=e;
|
package/lib/cjs/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x32a9(){const _0x3098b8=['Click\x20to\x20connect\x20MCP','MCP:\x20Session\x20ID\x20Occupied','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Connected','Connection\x20Failed','Failed\x20to\x20save\x20configuration','1074353PwlNxd','Copy\x20the\x20JSON\x20configuration\x20below','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','12463bGRYOI','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Enable\x20authentication\x20for\x20secure\x20connections','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20Steps:','MCP:\x20Max\x20Retries\x20Exceeded','1054370VjXcNp','1EdBShN','270jDvYdR','MCP:\x20Unauthorized','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Connecting...','Enter\x20your\x20API\x20key','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Client\x20Configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20saved\x20successfully','2169208CsBIRG','1053297zIXIYd','Saving...','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','Invalid\x20configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Connection\x20Failed','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Save\x20Configuration','Retrying...','Session\x20ID','What\x20is\x20API\x20Key?','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20Key','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Disconnected','81207BKYFoa','6MOjGBm','755122JSvExV','Disconnected','6792TWhRcd','4TawQwX','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','API\x20key\x20is\x20required','Click\x20to\x20configure\x20MCP','Connecting...'];_0x32a9=function(){return _0x3098b8;};return _0x32a9();}const _0x43f39c=_0x353b;(function(_0x51b561,_0x27dc82){const _0x2aa2c4=_0x353b,_0xf52c3=_0x51b561();while(!![]){try{const _0x8eba79=-parseInt(_0x2aa2c4(0x13b))/0x1*(-parseInt(_0x2aa2c4(0x159))/0x2)+parseInt(_0x2aa2c4(0x147))/0x3*(-parseInt(_0x2aa2c4(0x15c))/0x4)+parseInt(_0x2aa2c4(0x13a))/0x5*(parseInt(_0x2aa2c4(0x158))/0x6)+-parseInt(_0x2aa2c4(0x130))/0x7+-parseInt(_0x2aa2c4(0x146))/0x8+-parseInt(_0x2aa2c4(0x157))/0x9*(parseInt(_0x2aa2c4(0x13c))/0xa)+-parseInt(_0x2aa2c4(0x134))/0xb*(-parseInt(_0x2aa2c4(0x15b))/0xc);if(_0x8eba79===_0x27dc82)break;else _0xf52c3['push'](_0xf52c3['shift']());}catch(_0x87127e){_0xf52c3['push'](_0xf52c3['shift']());}}}(_0x32a9,0x335bb));function _0x353b(_0x3ba9e9,_0x28a7c3){const _0x32a99c=_0x32a9();return _0x353b=function(_0x353bbe,_0x1f6c89){_0x353bbe=_0x353bbe-0x12f;let _0x5bad2b=_0x32a99c[_0x353bbe];return _0x5bad2b;},_0x353b(_0x3ba9e9,_0x28a7c3);}const e={'mcpStatus':{'disconnected':_0x43f39c(0x156),'connecting':_0x43f39c(0x13f),'connected':_0x43f39c(0x164),'failed':_0x43f39c(0x14d),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x43f39c(0x13d),'sessionOccupied':_0x43f39c(0x162),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x43f39c(0x139),'clickToConnect':_0x43f39c(0x161),'clickToConfigure':_0x43f39c(0x15f)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x43f39c(0x153),'apiKey':_0x43f39c(0x154),'apiKeyPlaceholder':_0x43f39c(0x140),'apiKeyHint':_0x43f39c(0x13e),'enableAuth':_0x43f39c(0x14a),'enableAuthHint':_0x43f39c(0x136),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x43f39c(0x143),'configInstructions':_0x43f39c(0x141),'configStepTitle':_0x43f39c(0x138),'configStep1':_0x43f39c(0x131),'configStep2':_0x43f39c(0x14e),'configStep3':_0x43f39c(0x132),'sessionId':_0x43f39c(0x151),'sessionIdDescription':_0x43f39c(0x15d),'authorizationDescription':_0x43f39c(0x155),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x43f39c(0x14f),'saving':_0x43f39c(0x148),'note1':_0x43f39c(0x142),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x43f39c(0x145),'configError':_0x43f39c(0x12f),'apiApplyInfo':{'title':_0x43f39c(0x152),'description':_0x43f39c(0x149),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x43f39c(0x15e),'apiKeyTooShort':_0x43f39c(0x163),'invalidConfig':_0x43f39c(0x14b),'invalidApiKey':_0x43f39c(0x144)},'connectionStatus':{'disconnected':_0x43f39c(0x15a),'connecting':_0x43f39c(0x160),'connected':'Connected','failed':_0x43f39c(0x165),'retrying':_0x43f39c(0x150)},'connectionError':{'unauthorized':_0x43f39c(0x137),'sessionOccupied':_0x43f39c(0x133),'networkError':_0x43f39c(0x135),'maxRetriesExceeded':_0x43f39c(0x14c)}}},n=e;module['exports']=n;
|
package/lib/cjs/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0xfe7e(_0x2b9572,_0xa67735){const _0x56d58c=_0x56d5();return _0xfe7e=function(_0xfe7e94,_0x3f7bfa){_0xfe7e94=_0xfe7e94-0x122;let _0x2aae16=_0x56d58c[_0xfe7e94];return _0x2aae16;},_0xfe7e(_0x2b9572,_0xa67735);}function _0x56d5(){const _0x3f7e51=['MCP:\x20Unauthorized','Univer\x20AI\x20Console','Connected','MCP\x20Retrying...','Click\x20to\x20connect\x20MCP','MCP\x20Connection\x20Failed','4PDAwOO','Get\x20your\x20API\x20key\x20in\x20seconds','Saving...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Unknown\x20Status','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.','What\x20is\x20API\x20Key?','129981PaHGFx','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Client\x20Configuration','API\x20key\x20is\x20required','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configuration\x20Steps:','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Connected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Invalid\x20configuration','9545iRfBDH','Click\x20to\x20configure\x20MCP','118146CyBxfV','Disconnected','Save\x20Configuration','674757uVlnKa','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Session\x20ID','Enter\x20your\x20API\x20key','MCP\x20Connecting...','MCP:\x20Session\x20ID\x20Occupied','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP:\x20Max\x20Retries\x20Exceeded','4nZOIcT','2404896jaGPNc','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','API\x20Key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Configuration','1617696pmrLpO','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Max\x20Retries','MCP:\x20Network\x20Error','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','2016665mfULNu'];_0x56d5=function(){return _0x3f7e51;};return _0x56d5();}const _0x12c276=_0xfe7e;(function(_0x525ca0,_0x2e7d77){const _0x4bdb7e=_0xfe7e,_0x1e90d9=_0x525ca0();while(!![]){try{const _0x1bb5a2=-parseInt(_0x4bdb7e(0x137))/0x1*(parseInt(_0x4bdb7e(0x123))/0x2)+-parseInt(_0x4bdb7e(0x12b))/0x3*(-parseInt(_0x4bdb7e(0x142))/0x4)+parseInt(_0x4bdb7e(0x135))/0x5+parseInt(_0x4bdb7e(0x148))/0x6+-parseInt(_0x4bdb7e(0x14d))/0x7+parseInt(_0x4bdb7e(0x143))/0x8+parseInt(_0x4bdb7e(0x13a))/0x9;if(_0x1bb5a2===_0x2e7d77)break;else _0x1e90d9['push'](_0x1e90d9['shift']());}catch(_0x52d136){_0x1e90d9['push'](_0x1e90d9['shift']());}}}(_0x56d5,0x288a2));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x12c276(0x13e),'connected':_0x12c276(0x132),'failed':_0x12c276(0x122),'retrying':_0x12c276(0x151),'unknown':_0x12c276(0x127),'unauthorized':_0x12c276(0x14e),'sessionOccupied':_0x12c276(0x13f),'networkError':_0x12c276(0x14b),'maxRetriesExceeded':_0x12c276(0x141),'clickToConnect':_0x12c276(0x152),'clickToConfigure':_0x12c276(0x136)},'mcpConfig':{'title':_0x12c276(0x147),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x12c276(0x145),'apiKeyPlaceholder':_0x12c276(0x13d),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x12c276(0x12c),'connectionInfo':_0x12c276(0x12d),'mcpClientConfig':_0x12c276(0x12d),'configInstructions':_0x12c276(0x13b),'configStepTitle':_0x12c276(0x130),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x12c276(0x149),'configStep3':_0x12c276(0x133),'sessionId':_0x12c276(0x13c),'sessionIdDescription':_0x12c276(0x140),'authorizationDescription':_0x12c276(0x129),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x12c276(0x14a),'save':_0x12c276(0x139),'saving':_0x12c276(0x125),'note1':_0x12c276(0x126),'note2':_0x12c276(0x14c),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x12c276(0x12a),'description':_0x12c276(0x128),'univerAiLabel':_0x12c276(0x14f),'getStarted':_0x12c276(0x124)},'validation':{'apiKeyRequired':_0x12c276(0x12e),'apiKeyTooShort':_0x12c276(0x146),'invalidConfig':_0x12c276(0x134),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x12c276(0x138),'connecting':'Connecting...','connected':_0x12c276(0x150),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x12c276(0x144),'networkError':_0x12c276(0x131),'maxRetriesExceeded':_0x12c276(0x12f)}}},n=e;module['exports']=n;
|
package/lib/cjs/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x47e3(){const _0x17e159=['最大重试次数','MCP\x20连接中...','MCP\x20状态未知','3090DwehGv','20780qzEBzI','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','511772DCqwoY','权限验证失败,请检查您的\x20API\x20密钥','配置更改将立即生效','34390XoChWK','请输入您的\x20API\x20密钥','点击配置\x20MCP','MCP:\x20未授权','3447uClbtq','API\x20密钥不能为空','会话\x20ID\x20已被占用,请稍后再试','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCP\x20配置','MCP\x20客户端配置','5024592PpEHpz','4319IoLUHd','重启您的\x20MCP\x20客户端以使配置生效','480kToOcl','将配置添加到您的\x20MCP\x20客户端设置文件中','配置步骤:','连接中...','您的\x20API\x20密钥安全存储在本地存储中','MCP\x20重连中...','6iAGjCO','配置保存失败','MCP\x20连接失败','MCP\x20已断开','已连接','复制以下\x20JSON\x20配置','连接失败','配置无效','API\x20密钥长度至少需要\x2010\x20位','62214XQqHPu','网络连接错误,请检查您的网络连接','exports','配置保存成功','Univer\x20AI\x20控制台','未连接','将以下配置添加到您的\x20MCP\x20客户端设置中:','配置\x20MCP\x20使用\x20AI\x20操作电子表格','14707319PDbRjb','API\x20密钥','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','API\x20密钥无效,请检查密钥是否正确','MCP\x20已连接','启用身份验证','超出最大重试次数,请稍后再试'];_0x47e3=function(){return _0x17e159;};return _0x47e3();}const _0x530e85=_0x15f9;(function(_0x427812,_0x166814){const _0x50f254=_0x15f9,_0x2da5bf=_0x427812();while(!![]){try{const _0x56ad03=parseInt(_0x50f254(0xfe))/0x1+parseInt(_0x50f254(0x113))/0x2*(-parseInt(_0x50f254(0x129))/0x3)+parseInt(_0x50f254(0x111))/0x4*(-parseInt(_0x50f254(0x123))/0x5)+-parseInt(_0x50f254(0x110))/0x6*(parseInt(_0x50f254(0x121))/0x7)+-parseInt(_0x50f254(0x120))/0x8+parseInt(_0x50f254(0x11a))/0x9*(parseInt(_0x50f254(0x116))/0xa)+parseInt(_0x50f254(0x106))/0xb;if(_0x56ad03===_0x166814)break;else _0x2da5bf['push'](_0x2da5bf['shift']());}catch(_0x2c17f0){_0x2da5bf['push'](_0x2da5bf['shift']());}}}(_0x47e3,0xb98fb));const e={'mcpStatus':{'disconnected':_0x530e85(0xf8),'connecting':_0x530e85(0x10e),'connected':_0x530e85(0x10a),'failed':_0x530e85(0x12b),'retrying':_0x530e85(0x128),'unknown':_0x530e85(0x10f),'unauthorized':_0x530e85(0x119),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':'MCP:\x20网络错误','maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x530e85(0x118)},'mcpConfig':{'title':_0x530e85(0x11e),'description':_0x530e85(0x105),'apiKey':_0x530e85(0x107),'apiKeyPlaceholder':_0x530e85(0x117),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x530e85(0x10b),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x530e85(0x11f),'mcpClientConfig':_0x530e85(0x11f),'configInstructions':_0x530e85(0x104),'configStepTitle':_0x530e85(0x125),'configStep1':_0x530e85(0xfa),'configStep2':_0x530e85(0x124),'configStep3':_0x530e85(0x122),'sessionId':'会话ID','sessionIdDescription':_0x530e85(0x108),'authorizationDescription':_0x530e85(0x11d),'configParameters':'配置参数:','maxRetries':_0x530e85(0x10d),'save':'保存配置','saving':'保存中...','note1':_0x530e85(0x115),'note2':_0x530e85(0x127),'configSaved':_0x530e85(0x101),'configError':_0x530e85(0x12a),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x530e85(0x112),'univerAiLabel':_0x530e85(0x102),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x530e85(0x11b),'apiKeyTooShort':_0x530e85(0xfd),'invalidConfig':_0x530e85(0xfc),'invalidApiKey':_0x530e85(0x109)},'connectionStatus':{'disconnected':_0x530e85(0x103),'connecting':_0x530e85(0x126),'connected':_0x530e85(0xf9),'failed':_0x530e85(0xfb),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x530e85(0x114),'sessionOccupied':_0x530e85(0x11c),'networkError':_0x530e85(0xff),'maxRetriesExceeded':_0x530e85(0x10c)}}};function _0x15f9(_0xb7ae19,_0x4b4442){const _0x47e3f1=_0x47e3();return _0x15f9=function(_0x15f945,_0xc0ca82){_0x15f945=_0x15f945-0xf8;let _0x5a80f6=_0x47e3f1[_0x15f945];return _0x5a80f6;},_0x15f9(_0xb7ae19,_0x4b4442);}module[_0x530e85(0x100)]=e;
|
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4d9fb2=_0x54d9;(function(_0x288ffc,_0x4ddb0e){const _0x12e8e8=_0x54d9,_0x340707=_0x288ffc();while(!![]){try{const _0x1b3c0b=-parseInt(_0x12e8e8(0x8f))/0x1+-parseInt(_0x12e8e8(0x6a))/0x2*(parseInt(_0x12e8e8(0x73))/0x3)+parseInt(_0x12e8e8(0x76))/0x4+-parseInt(_0x12e8e8(0x7b))/0x5+-parseInt(_0x12e8e8(0x68))/0x6+parseInt(_0x12e8e8(0x65))/0x7*(parseInt(_0x12e8e8(0x7d))/0x8)+parseInt(_0x12e8e8(0x8c))/0x9*(parseInt(_0x12e8e8(0x6d))/0xa);if(_0x1b3c0b===_0x4ddb0e)break;else _0x340707['push'](_0x340707['shift']());}catch(_0x3d184f){_0x340707['push'](_0x340707['shift']());}}}(_0xdefa,0x9b08a));function _0x54d9(_0x21e783,_0xf96845){const _0xdefa4b=_0xdefa();return _0x54d9=function(_0x54d981,_0x584c5b){_0x54d981=_0x54d981-0x64;let _0x4fbef6=_0xdefa4b[_0x54d981];return _0x4fbef6;},_0x54d9(_0x21e783,_0xf96845);}function _0xdefa(){const _0x19698e=['Failed\x20to\x20save\x20configuration','3134315pmtRIP','MCP\x20Unknown\x20Status','2081248CHVIhD','MCP\x20Disconnected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Configuration\x20Parameters:','MCP\x20Connected','Click\x20to\x20configure\x20MCP','API\x20key\x20is\x20required','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Session\x20ID','Enable\x20Authentication','Configuration\x20Steps:','MCP:\x20Unauthorized','MCP\x20Client\x20Configuration','MCP\x20Connection\x20Failed','Univer\x20AI\x20Console','6296679GsAdwz','MCP\x20Retrying...','Copy\x20the\x20JSON\x20configuration\x20below','649496QBLUHg','Connecting...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Connecting...','7BEEbhw','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Max\x20Retries','1053612MaefDs','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','27476kkkOrh','Disconnected','API\x20Key','10THRCJW','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Retrying...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP:\x20Max\x20Retries\x20Exceeded','15kqYpgR','What\x20is\x20API\x20Key?','MCP:\x20Network\x20Error','4783528gHaNyO','Invalid\x20configuration','Saving...','Enable\x20authentication\x20for\x20secure\x20connections'];_0xdefa=function(){return _0x19698e;};return _0xdefa();}const e={'mcpStatus':{'disconnected':_0x4d9fb2(0x7e),'connecting':_0x4d9fb2(0x64),'connected':_0x4d9fb2(0x81),'failed':_0x4d9fb2(0x8a),'retrying':_0x4d9fb2(0x8d),'unknown':_0x4d9fb2(0x7c),'unauthorized':_0x4d9fb2(0x88),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x4d9fb2(0x75),'maxRetriesExceeded':_0x4d9fb2(0x72),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x4d9fb2(0x82)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x4d9fb2(0x7f),'apiKey':_0x4d9fb2(0x6c),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x4d9fb2(0x66),'enableAuth':_0x4d9fb2(0x86),'enableAuthHint':_0x4d9fb2(0x79),'connectionInfo':_0x4d9fb2(0x89),'mcpClientConfig':_0x4d9fb2(0x89),'configInstructions':_0x4d9fb2(0x69),'configStepTitle':_0x4d9fb2(0x87),'configStep1':_0x4d9fb2(0x8e),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x4d9fb2(0x6e),'sessionId':_0x4d9fb2(0x85),'sessionIdDescription':_0x4d9fb2(0x84),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x4d9fb2(0x80),'maxRetries':_0x4d9fb2(0x67),'save':'Save\x20Configuration','saving':_0x4d9fb2(0x78),'note1':_0x4d9fb2(0x93),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x4d9fb2(0x7a),'apiApplyInfo':{'title':_0x4d9fb2(0x74),'description':_0x4d9fb2(0x70),'univerAiLabel':_0x4d9fb2(0x8b),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x4d9fb2(0x83),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x4d9fb2(0x77),'invalidApiKey':_0x4d9fb2(0x92)},'connectionStatus':{'disconnected':_0x4d9fb2(0x6b),'connecting':_0x4d9fb2(0x90),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x4d9fb2(0x6f)},'connectionError':{'unauthorized':_0x4d9fb2(0x91),'sessionOccupied':_0x4d9fb2(0x71),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module['exports']=n;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x35bdbd=_0x311c;(function(_0x1d2120,_0x3e2eae){const _0x459a71=_0x311c,_0x112a88=_0x1d2120();while(!![]){try{const _0x1e660d=parseInt(_0x459a71(0x2d3))/0x1*(parseInt(_0x459a71(0x1c8))/0x2)+-parseInt(_0x459a71(0x1cf))/0x3*(parseInt(_0x459a71(0x2a6))/0x4)+-parseInt(_0x459a71(0x261))/0x5+parseInt(_0x459a71(0x229))/0x6*(-parseInt(_0x459a71(0x26a))/0x7)+parseInt(_0x459a71(0x2b4))/0x8*(-parseInt(_0x459a71(0x27b))/0x9)+parseInt(_0x459a71(0x2c0))/0xa+parseInt(_0x459a71(0x2aa))/0xb*(parseInt(_0x459a71(0x24e))/0xc);if(_0x1e660d===_0x3e2eae)break;else _0x112a88['push'](_0x112a88['shift']());}catch(_0x40e0d5){_0x112a88['push'](_0x112a88['shift']());}}}(_0x3be4,0x8447d));var Pe=Object['defineProperty'],Ee=(_0xf9aa8,_0x35b9da,_0x20e49c)=>_0x35b9da in _0xf9aa8?Pe(_0xf9aa8,_0x35b9da,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x20e49c}):_0xf9aa8[_0x35b9da]=_0x20e49c,x=(_0x4ef5f3,_0x36c37d,_0x5653be)=>Ee(_0x4ef5f3,typeof _0x36c37d!=_0x35bdbd(0x2d9)?_0x36c37d+'':_0x36c37d,_0x5653be);import{LocaleService as _0x522dbf,Inject as _0x2a417b,Injector as _0x3fab85,IConfigService as _0x158da6,ILocalStorageService as _0x4cec7f,ILogService as _0x34397d,Disposable as _0x4934f8,CommandType as _0xb593d1,ICommandService as _0x53f9c1,DependentOn as _0x5a0919,Plugin as _0x5ad39c,merge as _0x46ab72}from'@univerjs/core';import{jsxs as _0xe8a40f,jsx as _0x32bc59}from'react/jsx-runtime';import{MCPConnectionStatus as _0x543487,MCPConnectionError as _0x398800,MCPConnectionController as _0x35a68b,MCP_PLUGIN_CONFIG_KEY as _0x426bc3,UniverMCPPlugin as _0x2287c3}from'@univerjs-pro/mcp';import{clsx as _0x1bb656,Input as _0x26ef1d,Button as _0x5dfd7b,MessageType as _0x21403d,Tooltip as _0x4214c1}from'@univerjs/design';import{useDependency as _0x288f3a,useObservable as _0x144b54,IUIPartsService as _0x3a586a,IDialogService as _0x43ed87,IMessageService as _0x1440f5,ComponentManager as _0x36ef34,connectInjector as _0xdb939c,BuiltInUIPart as _0x280acb,MenuItemType as _0x1949c7,RibbonStartGroup as _0x5ce64b,IMenuManagerService as _0x485631}from'@univerjs/ui';import{BehaviorSubject as _0x594311}from'rxjs';import{useRef as _0x6cfb33,createElement as _0xea7a08,forwardRef as _0x49ed0b,useState as _0x135a07,useCallback as _0x5b94d7}from'react';import{ISocketService as _0x2339fb,WebSocketService as _0x5d7f8e}from'@univerjs/network';function b({ref:_0x4abd3b,..._0x3948cc}){const _0x3b0e0f=_0x35bdbd,{icon:_0x566dce,id:_0x4044fd,className:_0x26a191,extend:_0x14f695,..._0x4b2367}=_0x3948cc,_0x29572f=(_0x3b0e0f(0x1f9)+_0x4044fd+'\x20'+(_0x26a191||''))[_0x3b0e0f(0x2cd)](),_0x2ca092=_0x6cfb33('_'+We());return ae(_0x566dce,''+_0x4044fd,{'defIds':_0x566dce[_0x3b0e0f(0x21d)],'idSuffix':_0x2ca092['current']},{'ref':_0x4abd3b,'className':_0x29572f,..._0x4b2367},_0x14f695);}function ae(_0x3ab194,_0x35727d,_0x51197e,_0x45c736,_0x130eb4){const _0x14b879=_0x35bdbd;return _0xea7a08(_0x3ab194[_0x14b879(0x2dd)],{'key':_0x35727d,...Ye(_0x3ab194,_0x51197e,_0x130eb4),..._0x45c736},(Ze(_0x3ab194,_0x51197e)['children']||[])[_0x14b879(0x1db)]((_0xe0881,_0x3ed179)=>ae(_0xe0881,_0x35727d+'-'+_0x3ab194['tag']+'-'+_0x3ed179,_0x51197e,void 0x0,_0x130eb4)));}function Ye(_0x3c96dc,_0x3a87b9,_0x12ef69){const _0x4213de=_0x35bdbd,_0x1c5d79={..._0x3c96dc[_0x4213de(0x2bf)]};_0x12ef69!=null&&_0x12ef69[_0x4213de(0x282)]&&_0x1c5d79[_0x4213de(0x29e)]===_0x4213de(0x282)&&(_0x1c5d79[_0x4213de(0x29e)]=_0x12ef69['colorChannel1']),_0x3c96dc[_0x4213de(0x2dd)]===_0x4213de(0x1c7)&&_0x1c5d79['id']&&(_0x1c5d79['id']=_0x1c5d79['id']+_0x3a87b9['idSuffix']),Object[_0x4213de(0x2d4)](_0x1c5d79)[_0x4213de(0x2c4)](([_0x406de3,_0x3f678d])=>{const _0x40fc7c=_0x4213de;_0x406de3==='mask'&&typeof _0x3f678d=='string'&&(_0x1c5d79[_0x406de3]=_0x3f678d[_0x40fc7c(0x1bf)](/url\(#(.*)\)/,'url(#$1'+_0x3a87b9[_0x40fc7c(0x307)]+')'));});const {defIds:_0x127fa6}=_0x3a87b9;return!_0x127fa6||_0x127fa6[_0x4213de(0x1e7)]===0x0||(_0x3c96dc[_0x4213de(0x2dd)]===_0x4213de(0x2c5)&&_0x1c5d79[_0x4213de(0x21c)]&&(_0x1c5d79[_0x4213de(0x21c)]=_0x1c5d79[_0x4213de(0x21c)]+_0x3a87b9['idSuffix']),Object['entries'](_0x1c5d79)['forEach'](([_0x1f8676,_0xe28f4c])=>{const _0x422578=_0x4213de;typeof _0xe28f4c=='string'&&(_0x1c5d79[_0x1f8676]=_0xe28f4c[_0x422578(0x1bf)](/url\(#(.*)\)/,'url(#$1'+_0x3a87b9[_0x422578(0x307)]+')'));})),_0x1c5d79;}function Ze(_0x71a05e,_0x43b661){const _0x5018f3=_0x35bdbd;var _0x57300e;const {defIds:_0x3c99f4}=_0x43b661;return!_0x3c99f4||_0x3c99f4[_0x5018f3(0x1e7)]===0x0?_0x71a05e:_0x71a05e[_0x5018f3(0x2dd)]===_0x5018f3(0x2e2)&&((_0x57300e=_0x71a05e[_0x5018f3(0x293)])!=null&&_0x57300e[_0x5018f3(0x1e7)])?{..._0x71a05e,'children':_0x71a05e[_0x5018f3(0x293)][_0x5018f3(0x1db)](_0x245f3c=>typeof _0x245f3c['attrs']['id']==_0x5018f3(0x239)&&_0x3c99f4&&_0x3c99f4[_0x5018f3(0x247)](_0x245f3c[_0x5018f3(0x2bf)]['id'])?{..._0x245f3c,'attrs':{..._0x245f3c[_0x5018f3(0x2bf)],'id':_0x245f3c[_0x5018f3(0x2bf)]['id']+_0x43b661['idSuffix']}}:_0x245f3c)}:_0x71a05e;}function We(){const _0x106325=_0x35bdbd;return Math[_0x106325(0x2e8)]()[_0x106325(0x2e5)](0x24)[_0x106325(0x2e4)](0x2,0x8);}b[_0x35bdbd(0x22b)]=_0x35bdbd(0x291);const qe={'tag':_0x35bdbd(0x2c2),'attrs':{'xmlns':_0x35bdbd(0x1e8),'fill':'none','viewBox':_0x35bdbd(0x23f),'width':_0x35bdbd(0x264),'height':_0x35bdbd(0x264)},'children':[{'tag':_0x35bdbd(0x206),'attrs':{'fill':_0x35bdbd(0x1cd),'d':_0x35bdbd(0x1fb),'fillRule':_0x35bdbd(0x231),'clipRule':_0x35bdbd(0x231)}}]},le=_0x49ed0b(function(_0x2d85c2,_0x56f7c5){const _0x40f99e=_0x35bdbd;return _0xea7a08(b,Object[_0x40f99e(0x2ab)]({},_0x2d85c2,{'id':_0x40f99e(0x246),'ref':_0x56f7c5,'icon':qe}));});le['displayName']=_0x35bdbd(0x21b);const Xe={'tag':_0x35bdbd(0x2c2),'attrs':{'xmlns':_0x35bdbd(0x1e8),'fill':'none','viewBox':_0x35bdbd(0x23f),'width':'1em','height':'1em'},'children':[{'tag':_0x35bdbd(0x206),'attrs':{'fill':_0x35bdbd(0x1cd),'d':_0x35bdbd(0x26e)}}]},ue=_0x49ed0b(function(_0x2ac340,_0xf7d820){const _0x22c55d=_0x35bdbd;return _0xea7a08(b,Object[_0x22c55d(0x2ab)]({},_0x2ac340,{'id':_0x22c55d(0x2cc),'ref':_0xf7d820,'icon':Xe}));});ue[_0x35bdbd(0x22b)]='CloseIcon';const Je={'tag':_0x35bdbd(0x2c2),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x35bdbd(0x264),'height':'1em'},'children':[{'tag':_0x35bdbd(0x206),'attrs':{'fill':_0x35bdbd(0x1cd),'d':_0x35bdbd(0x218)}},{'tag':_0x35bdbd(0x206),'attrs':{'fill':_0x35bdbd(0x1cd),'d':_0x35bdbd(0x259)}},{'tag':_0x35bdbd(0x206),'attrs':{'fill':_0x35bdbd(0x1cd),'d':_0x35bdbd(0x20d),'fillRule':_0x35bdbd(0x231),'clipRule':_0x35bdbd(0x231)}}]},ve=_0x49ed0b(function(_0x24fd4f,_0xcb9624){const _0x449d9e=_0x35bdbd;return _0xea7a08(b,Object['assign']({},_0x24fd4f,{'id':_0x449d9e(0x1d7),'ref':_0xcb9624,'icon':Je}));});ve[_0x35bdbd(0x22b)]='HelpIcon';function _0x311c(_0x4b3cdb,_0x2a8602){const _0x3be4f7=_0x3be4();return _0x311c=function(_0x311cf7,_0x14fcb5){_0x311cf7=_0x311cf7-0x1ac;let _0x5a5480=_0x3be4f7[_0x311cf7];return _0x5a5480;},_0x311c(_0x4b3cdb,_0x2a8602);}const Qe={'tag':_0x35bdbd(0x2c2),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x35bdbd(0x265),'viewBox':_0x35bdbd(0x23f),'width':_0x35bdbd(0x264),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x35bdbd(0x288)},'children':[{'tag':_0x35bdbd(0x206),'attrs':{'stroke':_0x35bdbd(0x1cd),'d':_0x35bdbd(0x250),'strokeLinecap':_0x35bdbd(0x287),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x35bdbd(0x227)}}]}]}],'defIds':[_0x35bdbd(0x2ac)]},de=_0x49ed0b(function(_0x372e22,_0x58025b){const _0x2c3572=_0x35bdbd;return _0xea7a08(b,Object[_0x2c3572(0x2ab)]({},_0x372e22,{'id':_0x2c3572(0x2f4),'ref':_0x58025b,'icon':Qe}));});de[_0x35bdbd(0x22b)]=_0x35bdbd(0x2f2);const en={'tag':'svg','attrs':{'xmlns':_0x35bdbd(0x1e8),'fill':_0x35bdbd(0x265),'viewBox':'0\x200\x2017\x2016','width':_0x35bdbd(0x264),'height':_0x35bdbd(0x264)},'children':[{'tag':'g','attrs':{'clipPath':_0x35bdbd(0x1d2)},'children':[{'tag':_0x35bdbd(0x206),'attrs':{'stroke':_0x35bdbd(0x1cd),'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':_0x35bdbd(0x287),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x35bdbd(0x2e2),'attrs':{},'children':[{'tag':_0x35bdbd(0x234),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':_0x35bdbd(0x257),'d':_0x35bdbd(0x227),'transform':_0x35bdbd(0x302)}}]}]}],'defIds':[_0x35bdbd(0x233)]},ge=_0x49ed0b(function(_0x23f7f4,_0x4bc47e){const _0x586e8d=_0x35bdbd;return _0xea7a08(b,Object[_0x586e8d(0x2ab)]({},_0x23f7f4,{'id':_0x586e8d(0x2de),'ref':_0x4bc47e,'icon':en}));});ge[_0x35bdbd(0x22b)]=_0x35bdbd(0x211);function nn(_0x4a22ee){const _0x35957a=_0x35bdbd;var _0x219ada,_0x365037;const {mcpCoreConfig:_0x190ad4,onSave:_0x4434c1,loading:_0x5a5c01=!0x1,config:_0x42341a,connectionStatus$:_0x36b342,connectionError$:_0x1ca948,currentApiKey$:_0x5c25c3,currentSessionId$:_0x5d36e5}=_0x4a22ee,_0x4958fa=_0x288f3a(_0x522dbf),_0x410925=_0x144b54(_0x36b342,_0x543487[_0x35957a(0x286)]),_0x3e204a=_0x144b54(_0x1ca948,_0x398800[_0x35957a(0x292)]),_0x2687cc=_0x144b54(_0x5d36e5,''),_0x51208b=_0x144b54(_0x5c25c3,''),[_0x45ce14,_0x108e60]=_0x135a07(_0x51208b||''),_0x10e5ea=!0x0,_0x1caaeb=_0x42341a[_0x35957a(0x2f5)]&&_0x190ad4[_0x35957a(0x2a0)]&&(_0x190ad4[_0x35957a(0x2a0)][_0x35957a(0x247)](_0x35957a(0x2da))||_0x190ad4['mcpServerUrl'][_0x35957a(0x247)](_0x35957a(0x20c))),_0x4b62d1=(_0x219ada=_0x190ad4[_0x35957a(0x2a0)])==null?void 0x0:_0x219ada['includes'](_0x35957a(0x2da)),_0x54cf7d=(_0x365037=_0x190ad4[_0x35957a(0x2a0)])==null?void 0x0:_0x365037[_0x35957a(0x247)](_0x35957a(0x20c)),_0x3ddf8b=_0x4b62d1?_0x35957a(0x2b6):'https://console.univer.ai',_0x4ef1ea=_0x42341a['showDeveloperTools']&&(_0x4b62d1||_0x54cf7d),[_0x196548,_0x2cc75d]=_0x135a07(!_0x45ce14[_0x35957a(0x2cd)]()),_0x58ad47=(_0xe6aff4,_0x4c1e8f)=>{const _0x38eba0=_0x35957a;if(_0x4c1e8f===_0x398800[_0x38eba0(0x2f8)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0xe6aff4){case _0x543487['CONNECTED']:return _0x38eba0(0x22f);case _0x543487[_0x38eba0(0x26f)]:case _0x543487[_0x38eba0(0x1d4)]:return _0x38eba0(0x1ec);case _0x543487[_0x38eba0(0x283)]:return _0x38eba0(0x309);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x3b13b5=(_0x521966,_0x401a79)=>{const _0x26ca9e=_0x35957a;if(_0x401a79===_0x398800[_0x26ca9e(0x2f8)])return _0x26ca9e(0x1fc);switch(_0x521966){case _0x543487[_0x26ca9e(0x267)]:return _0x26ca9e(0x1d3);case _0x543487[_0x26ca9e(0x26f)]:case _0x543487[_0x26ca9e(0x1d4)]:return _0x26ca9e(0x22a);case _0x543487[_0x26ca9e(0x283)]:return _0x26ca9e(0x1fc);default:return _0x26ca9e(0x1de);}},_0x27147c=_0x52ef17=>{const _0x36117f=_0x35957a;switch(_0x52ef17){case _0x543487['CONNECTED']:return _0x4958fa['t']('mcpConfig.connectionStatus.connected');case _0x543487[_0x36117f(0x26f)]:return _0x4958fa['t']('mcpConfig.connectionStatus.connecting');case _0x543487[_0x36117f(0x283)]:return _0x4958fa['t'](_0x36117f(0x2ba));case _0x543487['RETRYING']:return _0x4958fa['t'](_0x36117f(0x27a));default:return _0x4958fa['t'](_0x36117f(0x236));}},_0x4e4c47=_0x53c165=>{const _0x117bf0=_0x35957a;switch(_0x53c165){case _0x398800[_0x117bf0(0x2f8)]:return _0x4958fa['t'](_0x117bf0(0x209));case _0x398800['SESSION_ID_OCCUPIED']:return _0x4958fa['t'](_0x117bf0(0x237));case _0x398800[_0x117bf0(0x1b9)]:return _0x4958fa['t'](_0x117bf0(0x2b8));case _0x398800[_0x117bf0(0x2f9)]:return _0x4958fa['t'](_0x117bf0(0x213));default:return'';}},_0x23e031=_0x5b94d7(()=>{const _0x56ac61=_0x35957a,_0xff1ec={..._0x190ad4,'apiKey':_0x45ce14[_0x56ac61(0x2cd)](),'enableAuth':_0x10e5ea};_0x4434c1(_0xff1ec);},[_0x190ad4,_0x45ce14,_0x10e5ea,_0x4434c1]),_0x434ae4=_0x45ce14['trim']()[_0x35957a(0x1e7)]>0x0;return _0xe8a40f(_0x35957a(0x28e),{'className':_0x35957a(0x2d0),'children':[_0x32bc59(_0x35957a(0x28e),{'className':_0x35957a(0x2d1),'children':_0xe8a40f(_0x35957a(0x28e),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0x32bc59(_0x35957a(0x28e),{'className':_0x35957a(0x2a7),'children':_0x32bc59(_0x35957a(0x2fc),{'className':_0x35957a(0x21f),'children':'⚙'})}),_0x32bc59(_0x35957a(0x28e),{'children':_0x32bc59('p',{'className':_0x35957a(0x1b0),'children':_0x4958fa['t']('mcpConfig.description')})})]})}),_0xe8a40f(_0x35957a(0x28e),{'className':_0x35957a(0x201),'children':[_0x32bc59(_0x35957a(0x28e),{'className':_0x1bb656(_0x35957a(0x303),_0x58ad47(_0x410925,_0x3e204a)),'children':_0xe8a40f(_0x35957a(0x28e),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x32bc59(_0x35957a(0x28e),{'className':_0x1bb656('univer-size-2\x20univer-rounded-full',_0x3b13b5(_0x410925,_0x3e204a))}),_0x32bc59(_0x35957a(0x2fc),{'className':_0x35957a(0x1b4),'children':_0x27147c(_0x410925)})]})}),_0x3e204a!==_0x398800[_0x35957a(0x292)]&&(_0x410925===_0x543487[_0x35957a(0x283)]||_0x3e204a===_0x398800[_0x35957a(0x2f8)])&&_0x32bc59(_0x35957a(0x28e),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0xe8a40f(_0x35957a(0x28e),{'className':_0x35957a(0x2ef),'children':[_0x32bc59(_0x35957a(0x2fc),{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0x32bc59('p',{'className':_0x35957a(0x301),'children':_0x4e4c47(_0x3e204a)})]})})]}),_0x32bc59(_0x35957a(0x28e),{'className':_0x35957a(0x2a3),'children':_0xe8a40f(_0x35957a(0x28e),{'className':_0x35957a(0x1b7),'children':[_0xe8a40f(_0x35957a(0x28e),{'className':_0x35957a(0x260),'children':[_0xe8a40f('label',{'className':_0x35957a(0x28d),'children':[_0x32bc59(_0x35957a(0x2fc),{'children':'🔑'}),'\x20',_0x4958fa['t'](_0x35957a(0x243)),_0x32bc59(_0x35957a(0x2fc),{'className':_0x35957a(0x1ce),'children':'*'}),_0x1caaeb&&_0x32bc59('a',{'className':_0x35957a(0x28b),'title':_0x4958fa['t'](_0x35957a(0x1ee)),'role':_0x35957a(0x1e1),'onClick':()=>_0x2cc75d(!0x0),'children':_0x32bc59(ve,{})})]}),_0x32bc59(_0x26ef1d,{'type':_0x35957a(0x2ed),'placeholder':_0x4958fa['t'](_0x35957a(0x2b3)),'value':_0x45ce14,'disabled':_0x5a5c01,'autoComplete':_0x35957a(0x300),'onChange':_0x108e60}),_0x32bc59('p',{'className':_0x35957a(0x2ff),'children':_0x4958fa['t'](_0x35957a(0x2ee))})]}),_0x1caaeb&&_0x196548&&_0xe8a40f(_0x35957a(0x28e),{'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':[_0x32bc59('a',{'className':'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','role':_0x35957a(0x1e1),'onClick':()=>_0x2cc75d(!0x1),'children':_0x32bc59(ue,{'className':_0x35957a(0x2fd)})}),_0xe8a40f(_0x35957a(0x28e),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x32bc59(_0x35957a(0x28e),{'className':_0x35957a(0x27f),'children':_0x32bc59(_0x35957a(0x2fc),{'className':_0x35957a(0x1bb),'children':'🚀'})}),_0xe8a40f(_0x35957a(0x28e),{'className':'univer-flex-1','children':[_0x32bc59('h4',{'className':_0x35957a(0x2c8),'children':_0x4958fa['t'](_0x35957a(0x1ee))}),_0x32bc59('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x4958fa['t']('mcpConfig.apiApplyInfo.description')}),_0x32bc59(_0x35957a(0x28e),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x4ef1ea&&_0xe8a40f('a',{'className':_0x35957a(0x276),'href':_0x3ddf8b,'target':_0x35957a(0x200),'rel':_0x35957a(0x2c3),'children':[_0x32bc59(_0x35957a(0x2fc),{'children':'🤖'}),_0x4958fa['t']('mcpConfig.apiApplyInfo.univerAiLabel'),_0x32bc59(_0x35957a(0x2fc),{'className':_0x35957a(0x1e0),'children':'↗'})]})}),_0xe8a40f(_0x35957a(0x28e),{'className':_0x35957a(0x25a),'children':['✨','\x20',_0x4958fa['t'](_0x35957a(0x1b1))]})]})]})]}),_0x42341a[_0x35957a(0x2f5)]&&_0xe8a40f(_0x35957a(0x28e),{'className':_0x35957a(0x23d),'children':[_0xe8a40f('h4',{'className':_0x35957a(0x220),'children':[_0x32bc59(_0x35957a(0x2fc),{'children':'🔗'}),'\x20',_0x4958fa['t'](_0x35957a(0x2d6))]}),_0xe8a40f(_0x35957a(0x28e),{'className':_0x35957a(0x2c6),'children':[_0xe8a40f('div',{'className':_0x35957a(0x1ed),'children':[_0x32bc59('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x4958fa['t'](_0x35957a(0x27c))}),_0xe8a40f(_0x35957a(0x28e),{'className':'univer-space-y-2','children':[_0x32bc59('div',{'className':_0x35957a(0x1b2),'children':_0x4958fa['t'](_0x35957a(0x268))}),_0xe8a40f(_0x35957a(0x28e),{'className':_0x35957a(0x270),'children':[_0xe8a40f(_0x35957a(0x28e),{'className':_0x35957a(0x297),'children':[_0x32bc59(_0x35957a(0x2fc),{'className':_0x35957a(0x2be),'children':'1'}),_0x4958fa['t'](_0x35957a(0x2d7))]}),_0xe8a40f(_0x35957a(0x28e),{'className':_0x35957a(0x297),'children':[_0x32bc59(_0x35957a(0x2fc),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x4958fa['t'](_0x35957a(0x24f))]}),_0xe8a40f(_0x35957a(0x28e),{'className':_0x35957a(0x297),'children':[_0x32bc59(_0x35957a(0x2fc),{'className':_0x35957a(0x2be),'children':'3'}),_0x4958fa['t'](_0x35957a(0x2b1))]})]})]})]}),_0xe8a40f('div',{'className':'univer-space-y-2','children':[_0x32bc59(_0x35957a(0x28e),{'className':_0x35957a(0x1b2),'children':_0x35957a(0x295)}),_0x32bc59(_0x35957a(0x28e),{'className':_0x35957a(0x22d),'children':_0x32bc59(_0x35957a(0x2e0),{'className':_0x35957a(0x2bb),'children':JSON['stringify']({'mcpServers':{'univer':{'url':_0x35957a(0x1b3)+(_0x2687cc||'<SESSION_ID>'),'type':_0x35957a(0x1e2),'headers':{'Authorization':_0x35957a(0x1d1)+(_0x45ce14||_0x35957a(0x248))}}}},null,0x2)})})]}),_0xe8a40f(_0x35957a(0x28e),{'className':_0x35957a(0x1ed),'children':[_0x32bc59(_0x35957a(0x28e),{'className':_0x35957a(0x1b2),'children':_0x4958fa['t'](_0x35957a(0x289))}),_0xe8a40f('div',{'className':'univer-space-y-2','children':[_0xe8a40f('div',{'className':_0x35957a(0x217),'children':[_0x32bc59('div',{'className':_0x35957a(0x1cc)}),_0xe8a40f(_0x35957a(0x28e),{'className':_0x35957a(0x238),'children':[_0x32bc59(_0x35957a(0x28e),{'className':_0x35957a(0x21e),'children':_0x35957a(0x2a5)}),_0x32bc59('div',{'className':_0x35957a(0x2ff),'children':_0x4958fa['t'](_0x35957a(0x2c1))})]})]}),_0xe8a40f(_0x35957a(0x28e),{'className':_0x35957a(0x217),'children':[_0x32bc59(_0x35957a(0x28e),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0xe8a40f('div',{'className':_0x35957a(0x238),'children':[_0x32bc59('div',{'className':_0x35957a(0x21e),'children':'Authorization:'}),_0x32bc59(_0x35957a(0x28e),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x4958fa['t'](_0x35957a(0x1f7))})]})]})]})]})]})]}),_0x32bc59(_0x5dfd7b,{'onClick':_0x23e031,'disabled':!_0x434ae4||_0x5a5c01,'className':_0x35957a(0x232),'children':_0x5a5c01?_0xe8a40f('span',{'className':_0x35957a(0x297),'children':[_0x32bc59(_0x35957a(0x2fc),{'children':'⟲'}),_0x4958fa['t'](_0x35957a(0x1fe))]}):_0xe8a40f(_0x35957a(0x2fc),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x32bc59(le,{}),_0x4958fa['t']('mcpConfig.save')]})}),_0x32bc59(_0x35957a(0x28e),{'className':_0x35957a(0x1c5),'children':_0xe8a40f('div',{'className':_0x35957a(0x22c),'children':[_0x32bc59(_0x35957a(0x2fc),{'className':_0x35957a(0x30a),'children':'💡'}),_0xe8a40f(_0x35957a(0x28e),{'className':_0x35957a(0x222),'children':[_0x32bc59('div',{'className':_0x35957a(0x1e9),'children':_0x35957a(0x304)}),_0xe8a40f('div',{'children':['•',_0x4958fa['t']('mcpConfig.note1')]}),_0xe8a40f('div',{'children':['•',_0x4958fa['t'](_0x35957a(0x2a2))]})]})]})})]})})]});}const y=_0x35bdbd(0x1f1),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x35bdbd(0x2af)],tn=(_0x42c798,_0x4cd3ed,_0x18ef65,_0x3965da)=>{const _0x16d536=_0x35bdbd;for(var _0x29c37b=_0x3965da>0x1?void 0x0:_0x3965da?rn(_0x4cd3ed,_0x18ef65):_0x4cd3ed,_0x2da25c=_0x42c798[_0x16d536(0x1e7)]-0x1,_0x36f8c3;_0x2da25c>=0x0;_0x2da25c--)(_0x36f8c3=_0x42c798[_0x2da25c])&&(_0x29c37b=_0x36f8c3(_0x29c37b)||_0x29c37b);return _0x29c37b;},d=(_0x473212,_0x52e12c)=>(_0x3ca652,_0x983927)=>_0x52e12c(_0x3ca652,_0x983927,_0x473212);const U='mcp.apiKey',L=_0x35bdbd(0x1ef);let I=class extends _0x4934f8{constructor(_0x250021,_0xb726b9,_0x15305a,_0x3ef44f,_0xe5482d,_0x379293,_0x114ade,_0x9b26e0,_0x3d519c,_0x1c5658){const _0x259db2=_0x35bdbd;super(),x(this,_0x259db2(0x2cf),new _0x594311(!0x1)),x(this,'_mcpCoreConfig$',new _0x594311({})),x(this,'_config$',new _0x594311({})),x(this,_0x259db2(0x1ff),new _0x594311('')),x(this,'_handleConfigSave',async _0x32c1c9=>{const _0x2571c6=_0x259db2;var _0x297275,_0x44a5b2;this[_0x2571c6(0x2cf)]['next'](!0x0);try{const _0x10d2e1=await this[_0x2571c6(0x208)](_0x32c1c9);if(!_0x10d2e1[_0x2571c6(0x2b9)]){this[_0x2571c6(0x2f0)]['show']({'type':_0x21403d[_0x2571c6(0x273)],'content':_0x10d2e1['errorMessage']||this[_0x2571c6(0x253)]['t'](_0x2571c6(0x26d))});return;}_0x32c1c9[_0x2571c6(0x1b5)]?await this[_0x2571c6(0x29d)]['setItem'](U,_0x32c1c9[_0x2571c6(0x1b5)][_0x2571c6(0x2cd)]()):await this[_0x2571c6(0x29d)]['removeItem'](U),this['_apiKey$'][_0x2571c6(0x1be)](((_0x297275=_0x32c1c9[_0x2571c6(0x1b5)])==null?void 0x0:_0x297275['trim']())||''),this['_mcpConnectionController'][_0x2571c6(0x27d)]({'Authorization':_0x2571c6(0x1d1)+((_0x44a5b2=_0x32c1c9[_0x2571c6(0x1b5)])==null?void 0x0:_0x44a5b2['trim']())}),this[_0x2571c6(0x2f0)][_0x2571c6(0x299)]({'type':_0x21403d[_0x2571c6(0x28c)],'content':this[_0x2571c6(0x253)]['t'](_0x2571c6(0x25c))}),setTimeout(()=>{this['_dialogService']['close'](L);},0x320);}catch(_0x5e3342){this['_logService']['error'](_0x2571c6(0x2c9),_0x5e3342),this[_0x2571c6(0x2f0)][_0x2571c6(0x299)]({'type':_0x21403d[_0x2571c6(0x273)],'content':this[_0x2571c6(0x253)]['t'](_0x2571c6(0x2cb))});}finally{this[_0x2571c6(0x2cf)][_0x2571c6(0x1be)](!0x1);}}),(this[_0x259db2(0x1f2)]=_0x250021,this[_0x259db2(0x224)]=_0xb726b9,this[_0x259db2(0x2ae)]=_0x15305a,this[_0x259db2(0x29d)]=_0x3ef44f,this[_0x259db2(0x2bc)]=_0xe5482d,this[_0x259db2(0x2f0)]=_0x379293,this[_0x259db2(0x1ae)]=_0x114ade,this[_0x259db2(0x253)]=_0x9b26e0,this[_0x259db2(0x1dd)]=_0x3d519c,this[_0x259db2(0x1fd)]=_0x1c5658,this[_0x259db2(0x275)](),this[_0x259db2(0x204)](),this[_0x259db2(0x1f3)]());}[_0x35bdbd(0x245)](){const _0x13486b=_0x35bdbd,_0x1a0a00=this[_0x13486b(0x2ae)][_0x13486b(0x1c4)](y);_0x1a0a00!=null&&_0x1a0a00[_0x13486b(0x2f5)]&&this[_0x13486b(0x2bc)][_0x13486b(0x20b)]({'id':L,'title':{'title':this['_localeService']['t'](_0x13486b(0x254))},'children':{'label':_0x13486b(0x2d2)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x90dff4=_0x13486b;this[_0x90dff4(0x2bc)][_0x90dff4(0x25d)](L);}});}['getCurrentConfig'](){return this['_mcpCoreConfig$']['value'];}[_0x35bdbd(0x1f3)](){const _0x517ad8=_0x35bdbd;this[_0x517ad8(0x28f)](this[_0x517ad8(0x1ae)][_0x517ad8(0x1c1)](_0x517ad8(0x2d2),this[_0x517ad8(0x2df)]()));}[_0x35bdbd(0x2df)](){return _0xdb939c(()=>{const _0x1f847e=_0x311c;var _0x1b8c69,_0x59bf3a,_0x1740e0;return _0x32bc59(nn,{'config':this['_config$'][_0x1f847e(0x256)],'mcpCoreConfig':this[_0x1f847e(0x1bd)][_0x1f847e(0x256)],'currentApiKey$':this[_0x1f847e(0x1ff)],'onSave':this[_0x1f847e(0x23e)],'loading':this[_0x1f847e(0x2cf)][_0x1f847e(0x256)],'connectionStatus$':(_0x1b8c69=this['_mcpConnectionController'])==null?void 0x0:_0x1b8c69[_0x1f847e(0x2eb)],'connectionError$':(_0x59bf3a=this[_0x1f847e(0x1fd)])==null?void 0x0:_0x59bf3a['connectionError$'],'currentSessionId$':(_0x1740e0=this[_0x1f847e(0x1fd)])==null?void 0x0:_0x1740e0[_0x1f847e(0x1f6)]});},this['_injector']);}[_0x35bdbd(0x275)](){const _0x268f95=_0x35bdbd;this['disposeWithMe'](this[_0x268f95(0x2ae)][_0x268f95(0x225)](_0x426bc3)[_0x268f95(0x242)](_0x2a258c=>{const _0x280ffa=_0x268f95;this[_0x280ffa(0x1bd)][_0x280ffa(0x1be)](_0x2a258c||{});}));const _0x2058d0=this[_0x268f95(0x2ae)]['getConfig'](_0x426bc3);this[_0x268f95(0x1bd)][_0x268f95(0x1be)](_0x2058d0||{}),this[_0x268f95(0x28f)](this[_0x268f95(0x2ae)][_0x268f95(0x225)](y)[_0x268f95(0x242)](_0x3a2ac9=>{const _0x565682=_0x268f95;this[_0x565682(0x23a)][_0x565682(0x1be)](_0x3a2ac9||{});}));const _0xb7203c=this[_0x268f95(0x2ae)][_0x268f95(0x1c4)](y);this[_0x268f95(0x23a)][_0x268f95(0x1be)](_0xb7203c||{});}async['_loadStoredApiKey'](){const _0x17266c=_0x35bdbd,_0x5ab7d4=this[_0x17266c(0x2ae)][_0x17266c(0x1c4)](y);if(!(_0x5ab7d4!=null&&_0x5ab7d4[_0x17266c(0x2f5)]))return;const _0x5b64ec=await this['_localStorageService'][_0x17266c(0x308)](U);_0x5b64ec&&(this[_0x17266c(0x1fd)][_0x17266c(0x27d)]({'Authorization':_0x17266c(0x1d1)+_0x5b64ec}),this[_0x17266c(0x1ff)]['next'](_0x5b64ec));}async[_0x35bdbd(0x208)](_0x26dadc){const _0x1ad09d=_0x35bdbd;if(!_0x26dadc[_0x1ad09d(0x1b5)]||_0x26dadc[_0x1ad09d(0x1b5)][_0x1ad09d(0x2cd)]()[_0x1ad09d(0x1e7)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x1ad09d(0x253)]['t'](_0x1ad09d(0x241))};if(_0x26dadc[_0x1ad09d(0x1b5)][_0x1ad09d(0x2cd)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x1ad09d(0x253)]['t'](_0x1ad09d(0x210))};try{const _0xb97c7f=await this[_0x1ad09d(0x1f2)][_0x1ad09d(0x20e)](_0x35a68b)[_0x1ad09d(0x280)](_0x26dadc[_0x1ad09d(0x1b5)][_0x1ad09d(0x2cd)]());return _0xb97c7f[_0x1ad09d(0x2b9)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0xb97c7f[_0x1ad09d(0x2ea)]||this[_0x1ad09d(0x253)]['t'](_0x1ad09d(0x29b))};}catch(_0x5654b3){return console[_0x1ad09d(0x226)](_0x1ad09d(0x2a8),_0x5654b3),{'isValid':!0x0};}}};I=tn([d(0x0,_0x2a417b(_0x3fab85)),d(0x1,_0x3a586a),d(0x2,_0x158da6),d(0x3,_0x4cec7f),d(0x4,_0x43ed87),d(0x5,_0x1440f5),d(0x6,_0x2a417b(_0x36ef34)),d(0x7,_0x2a417b(_0x522dbf)),d(0x8,_0x34397d),d(0x9,_0x2a417b(_0x35a68b))],I);const V={'id':'mcp-ui.command.openConfigPanel','type':_0xb593d1[_0x35bdbd(0x1bc)],'handler':async(_0x2b996e,_0x34f524)=>(_0x2b996e[_0x35bdbd(0x20e)](I)['showConfigPanel'](),!0x0)};function pe(_0x5a365f,_0x447490){const _0x1f9a9c=_0x35bdbd;switch(_0x5a365f){case _0x543487[_0x1f9a9c(0x286)]:return _0x1f9a9c(0x251);case _0x543487[_0x1f9a9c(0x26f)]:return _0x1f9a9c(0x1ba);case _0x543487[_0x1f9a9c(0x267)]:return _0x1f9a9c(0x277);case _0x543487[_0x1f9a9c(0x283)]:switch(_0x447490){case _0x398800[_0x1f9a9c(0x2f8)]:return _0x1f9a9c(0x29f);case _0x398800[_0x1f9a9c(0x1da)]:return'mcpStatus.sessionOccupied';case _0x398800[_0x1f9a9c(0x1b9)]:return'mcpStatus.networkError';case _0x398800[_0x1f9a9c(0x2f9)]:return _0x1f9a9c(0x1eb);default:return _0x1f9a9c(0x1e3);}case _0x543487['RETRYING']:return _0x1f9a9c(0x255);default:return _0x1f9a9c(0x1e5);}}function on(_0x5a49da,_0x480605,_0x35061,_0x5e3bed=!0x0){const _0x5d3822=_0x35bdbd,_0x16cf41=pe(_0x5a49da,_0x480605),_0x1c2d95=_0x35061['t'](_0x16cf41);return _0x5e3bed?_0x5a49da===_0x543487['DISCONNECTED']&&_0x480605===_0x398800['UNAUTHORIZED']?_0x1c2d95+_0x5d3822(0x271)+_0x35061['t'](_0x5d3822(0x228)):_0x5a49da===_0x543487[_0x5d3822(0x267)]?''+_0x1c2d95:_0x5a49da===_0x543487[_0x5d3822(0x286)]||_0x5a49da===_0x543487[_0x5d3822(0x283)]?_0x1c2d95+_0x5d3822(0x271)+_0x35061['t'](_0x5d3822(0x1e6)):_0x1c2d95:_0x1c2d95;}function sn(_0xf4d246){const _0x10c43e=_0x35bdbd;switch(_0xf4d246){case _0x543487['CONNECTED']:return'univer-text-green-500';case _0x543487[_0x10c43e(0x26f)]:case _0x543487[_0x10c43e(0x1d4)]:return _0x10c43e(0x207);case _0x543487['FAILED']:case _0x543487[_0x10c43e(0x286)]:return _0x10c43e(0x1ce);default:return _0x10c43e(0x2f6);}}function cn(_0x112c21){const _0x10c689=_0x35bdbd,{status$:_0x167e51,error$:_0x2bdbbe,onConfigure:_0xa8925a,showClickable:_0x121d11=!0x0}=_0x112c21,_0x506bb6=_0x144b54(_0x167e51,_0x543487[_0x10c689(0x286)]),_0x2005e7=_0x144b54(_0x2bdbbe,_0x398800[_0x10c689(0x292)]),_0x47cd2a=_0x288f3a(_0x522dbf),_0x21fcd3=_0x506bb6===_0x543487[_0x10c689(0x267)];_0x506bb6===_0x543487['CONNECTING']||_0x543487[_0x10c689(0x1d4)];const _0x3ce650=_0x47cd2a['t'](pe(_0x506bb6,_0x2005e7)),_0x302d85=on(_0x506bb6,_0x2005e7,_0x47cd2a,_0x121d11),_0xb24616=sn(_0x506bb6),_0x29c527=_0x21fcd3?_0x32bc59(ge,{}):_0x32bc59(de,{}),_0x423630=_0x5b94d7(()=>{_0x121d11&&_0xa8925a&&_0xa8925a();},[_0x121d11,_0xa8925a]);function _0x2cabec(){const _0x1c056f=_0x10c689;return _0xe8a40f(_0x1c056f(0x28e),{'className':_0x1bb656('univer-flex\x20univer-items-center',_0x121d11&&_0xa8925a&&'\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'),'role':_0x1c056f(0x1e1),'onClick':_0x121d11&&_0xa8925a?_0x423630:void 0x0,'children':[_0x32bc59(_0x1c056f(0x28e),{'className':_0x1bb656(_0x1c056f(0x28a),_0xb24616),'children':_0x29c527}),_0x32bc59('div',{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x3ce650})]});}return _0x32bc59(_0x4214c1,{'title':_0x302d85,'placement':_0x10c689(0x249),'children':_0x2cabec()});}var an=Object[_0x35bdbd(0x2af)],ln=(_0x368267,_0x3bdf1e,_0x15e631,_0x117e6b)=>{const _0x3d8fc5=_0x35bdbd;for(var _0x167c88=_0x117e6b>0x1?void 0x0:_0x117e6b?an(_0x3bdf1e,_0x15e631):_0x3bdf1e,_0x25cbb5=_0x368267[_0x3d8fc5(0x1e7)]-0x1,_0x81734d;_0x25cbb5>=0x0;_0x25cbb5--)(_0x81734d=_0x368267[_0x25cbb5])&&(_0x167c88=_0x81734d(_0x167c88)||_0x167c88);return _0x167c88;},M=(_0x2bf511,_0x201e12)=>(_0xd8aba0,_0xde0ea7)=>_0x201e12(_0xd8aba0,_0xde0ea7,_0x2bf511);let O=class extends _0x4934f8{constructor(_0x841d36,_0x3b93e6,_0x36f531,_0x207a5a){const _0xbf045c=_0x35bdbd;super(),this[_0xbf045c(0x1f2)]=_0x841d36,this[_0xbf045c(0x2f1)]=_0x3b93e6,this[_0xbf045c(0x224)]=_0x36f531,this[_0xbf045c(0x2ae)]=_0x207a5a,this[_0xbf045c(0x20f)](),this[_0xbf045c(0x1ca)]();}[_0x35bdbd(0x20f)](){const _0x2c4cdb=_0x35bdbd,_0x380733=this[_0x2c4cdb(0x2ae)]['getConfig'](y);_0x380733!=null&&_0x380733['showDeveloperTools']&&(this[_0x2c4cdb(0x2f1)][_0x2c4cdb(0x2bd)]=!0x1);}[_0x35bdbd(0x1ca)](){const _0xaa94e4=_0x35bdbd,_0x1299f3=this['_configService'][_0xaa94e4(0x1c4)](y);(_0x1299f3==null?void 0x0:_0x1299f3[_0xaa94e4(0x25e)])!==!0x1&&this[_0xaa94e4(0x28f)](this[_0xaa94e4(0x224)][_0xaa94e4(0x2a9)](_0x280acb[_0xaa94e4(0x21a)],()=>{const _0x424ea8=_0xaa94e4;var _0xd09145;return _0xdb939c(un({'status$':this[_0x424ea8(0x2f1)][_0x424ea8(0x2eb)],'error$':this[_0x424ea8(0x2f1)][_0x424ea8(0x223)],'onConfigure':()=>this[_0x424ea8(0x1f4)](),'showClickable':(_0xd09145=_0x1299f3==null?void 0x0:_0x1299f3[_0x424ea8(0x2f5)])!=null?_0xd09145:!0x1}),this[_0x424ea8(0x1f2)]);}));}[_0x35bdbd(0x1f4)](){const _0x378c34=_0x35bdbd;this[_0x378c34(0x1f2)][_0x378c34(0x20e)](I)[_0x378c34(0x245)]();}};O=ln([M(0x0,_0x2a417b(_0x3fab85)),M(0x1,_0x2a417b(_0x35a68b)),M(0x2,_0x3a586a),M(0x3,_0x158da6)],O);function un(_0x18117a){const {status$:_0x2a6835,error$:_0x353193,onConfigure:_0x1638ea,showClickable:_0x28398a}=_0x18117a;return function(){return _0x32bc59(cn,{'status$':_0x2a6835,'error$':_0x353193,'onConfigure':_0x1638ea,'showClickable':_0x28398a});};}function vn(_0x2b91b8){const _0x4c3477=_0x35bdbd;return{'id':V['id'],'type':_0x1949c7['BUTTON'],'icon':_0x4c3477(0x2ad),'title':_0x4c3477(0x254),'tooltip':_0x4c3477(0x254)};}const dn={[_0x5ce64b[_0x35bdbd(0x2db)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x35bdbd(0x2af)],pn=(_0x406932,_0x534853,_0x4ce443,_0x1739b1)=>{for(var _0x5ac0aa=_0x1739b1>0x1?void 0x0:_0x1739b1?gn(_0x534853,_0x4ce443):_0x534853,_0x12e7b3=_0x406932['length']-0x1,_0x52df76;_0x12e7b3>=0x0;_0x12e7b3--)(_0x52df76=_0x406932[_0x12e7b3])&&(_0x5ac0aa=_0x52df76(_0x5ac0aa)||_0x5ac0aa);return _0x5ac0aa;},re=(_0x483eca,_0x4f171f)=>(_0x17a0f1,_0x1fbcd4)=>_0x4f171f(_0x17a0f1,_0x1fbcd4,_0x483eca);let D=class extends _0x4934f8{constructor(_0x447b14,_0x3329a3){const _0x267b28=_0x35bdbd;super(),this['_commandService']=_0x447b14,this[_0x267b28(0x272)]=_0x3329a3,this[_0x267b28(0x202)](),this[_0x267b28(0x2fa)]();}[_0x35bdbd(0x202)](){const _0x13d813=_0x35bdbd;[V][_0x13d813(0x2c4)](_0x56a2c1=>{const _0x59d801=_0x13d813;this[_0x59d801(0x28f)](this['_commandService'][_0x59d801(0x219)](_0x56a2c1));});}[_0x35bdbd(0x2fa)](){const _0x58bb14=_0x35bdbd;this[_0x58bb14(0x272)][_0x58bb14(0x1d0)](dn);}};D=pn([re(0x0,_0x53f9c1),re(0x1,_0x485631)],D);const Mn={'mcpStatus':{'disconnected':_0x35bdbd(0x281),'connecting':_0x35bdbd(0x298),'connected':_0x35bdbd(0x1dc),'failed':'MCP\x20Connection\x20Failed','retrying':_0x35bdbd(0x263),'unknown':_0x35bdbd(0x22e),'unauthorized':_0x35bdbd(0x262),'sessionOccupied':_0x35bdbd(0x294),'networkError':_0x35bdbd(0x26b),'maxRetriesExceeded':_0x35bdbd(0x1d5),'clickToConnect':_0x35bdbd(0x212),'clickToConfigure':_0x35bdbd(0x235)},'mcpConfig':{'title':_0x35bdbd(0x295),'description':_0x35bdbd(0x2e3),'apiKey':_0x35bdbd(0x1df),'apiKeyPlaceholder':_0x35bdbd(0x284),'apiKeyHint':_0x35bdbd(0x1f0),'enableAuth':_0x35bdbd(0x2a1),'enableAuthHint':_0x35bdbd(0x26c),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x35bdbd(0x2e7),'configStepTitle':_0x35bdbd(0x24c),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x35bdbd(0x24a),'configStep3':_0x35bdbd(0x1ea),'sessionId':'Session\x20ID','sessionIdDescription':_0x35bdbd(0x23b),'authorizationDescription':_0x35bdbd(0x296),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x35bdbd(0x27e),'note1':_0x35bdbd(0x1d9),'note2':_0x35bdbd(0x269),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x35bdbd(0x1e4),'apiApplyInfo':{'title':_0x35bdbd(0x1fa),'description':_0x35bdbd(0x24b),'univerAiLabel':_0x35bdbd(0x1ac),'getStarted':_0x35bdbd(0x25f)},'validation':{'apiKeyRequired':_0x35bdbd(0x29a),'apiKeyTooShort':_0x35bdbd(0x2c7),'invalidConfig':_0x35bdbd(0x2e6),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x35bdbd(0x2d8),'connecting':_0x35bdbd(0x2f7),'connected':_0x35bdbd(0x1ad),'failed':_0x35bdbd(0x278),'retrying':_0x35bdbd(0x2b5)},'connectionError':{'unauthorized':_0x35bdbd(0x2e9),'sessionOccupied':_0x35bdbd(0x266),'networkError':_0x35bdbd(0x285),'maxRetriesExceeded':_0x35bdbd(0x1c6)}}},An={'mcpStatus':{'disconnected':_0x35bdbd(0x258),'connecting':'MCP\x20连接中...','connected':_0x35bdbd(0x23c),'failed':_0x35bdbd(0x203),'retrying':_0x35bdbd(0x2e1),'unknown':'MCP\x20状态未知','unauthorized':'MCP:\x20未授权','sessionOccupied':_0x35bdbd(0x2fb),'networkError':_0x35bdbd(0x1cb),'maxRetriesExceeded':_0x35bdbd(0x2dc),'clickToConnect':_0x35bdbd(0x1f8),'clickToConfigure':_0x35bdbd(0x305)},'mcpConfig':{'title':_0x35bdbd(0x216),'description':_0x35bdbd(0x2b7),'apiKey':_0x35bdbd(0x214),'apiKeyPlaceholder':_0x35bdbd(0x1b6),'apiKeyHint':_0x35bdbd(0x221),'enableAuth':_0x35bdbd(0x24d),'enableAuthHint':_0x35bdbd(0x2a4),'connectionInfo':_0x35bdbd(0x1c2),'mcpClientConfig':_0x35bdbd(0x1c2),'configInstructions':_0x35bdbd(0x2ca),'configStepTitle':_0x35bdbd(0x1c0),'configStep1':_0x35bdbd(0x2ce),'configStep2':_0x35bdbd(0x1d8),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x35bdbd(0x215),'sessionIdDescription':_0x35bdbd(0x1b8),'authorizationDescription':_0x35bdbd(0x2b0),'configParameters':_0x35bdbd(0x1f5),'maxRetries':_0x35bdbd(0x2f3),'save':_0x35bdbd(0x2ec),'saving':'保存中...','note1':_0x35bdbd(0x25b),'note2':_0x35bdbd(0x279),'configSaved':_0x35bdbd(0x240),'configError':_0x35bdbd(0x30b),'apiApplyInfo':{'title':_0x35bdbd(0x1c3),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x35bdbd(0x1d6),'getStarted':_0x35bdbd(0x274)},'validation':{'apiKeyRequired':_0x35bdbd(0x205),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x35bdbd(0x230),'invalidApiKey':_0x35bdbd(0x1c9)},'connectionStatus':{'disconnected':'未连接','connecting':_0x35bdbd(0x306),'connected':'已连接','failed':_0x35bdbd(0x2d5),'retrying':_0x35bdbd(0x2fe)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x35bdbd(0x252),'networkError':_0x35bdbd(0x29c),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};function _0x3be4(){const _0x81bacf=['univer-flex\x20univer-gap-3','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','MCP\x20Unknown\x20Status','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','配置无效','evenodd','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','on-line-icon_clip0_910_349','clipPath','Click\x20to\x20configure\x20MCP','mcpConfig.connectionStatus.disconnected','mcpConfig.connectionError.sessionOccupied','univer-min-w-0\x20univer-flex-1','string','_config$','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20已连接','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','_handleConfigSave','0\x200\x2016\x2016','配置保存成功','mcpConfig.validation.apiKeyRequired','subscribe','mcpConfig.apiKey','add','showConfigPanel','check-mark-icon','includes','<API_KEY>','bottom','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configuration\x20Steps:','启用身份验证','156cSmYLN','mcpConfig.configStep2','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','mcpStatus.disconnected','会话\x20ID\x20已被占用,请稍后再试','_localeService','mcpConfig.title','mcpStatus.retrying','value','white','MCP\x20已断开','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','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','配置更改将立即生效','mcpConfig.configSaved','close','showStatus','Get\x20your\x20API\x20key\x20in\x20seconds','univer-space-y-2','5314835eCdJjB','MCP:\x20Unauthorized','MCP\x20Retrying...','1em','none','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','CONNECTED','mcpConfig.configStepTitle','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','671699nezFKw','MCP:\x20Network\x20Error','Enable\x20authentication\x20for\x20secure\x20connections','mcpConfig.validation.invalidConfig','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','CONNECTING','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','\x20-\x20','_menuManagerService','Error','几秒钟内获取您的\x20API\x20密钥','_initConfigSync','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','mcpStatus.connected','Connection\x20Failed','您的\x20API\x20密钥安全存储在本地存储中','mcpConfig.connectionStatus.retrying','211707ItAUjY','mcpConfig.configInstructions','__setCustomHeaders','Saving...','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','validateApiKey','MCP\x20Disconnected','colorChannel1','FAILED','Enter\x20your\x20API\x20key','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','DISCONNECTED','round','url(#off-line-icon_clip0_910_343)','mcpConfig.configParameters','univer-mr-2\x20univer-flex\x20univer-text-xl','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','Success','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','div','disposeWithMe','has','UniverIcon','NONE','children','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Configuration','API\x20key\x20with\x20Bearer\x20prefix.','univer-flex\x20univer-items-center\x20univer-gap-2','MCP\x20Connecting...','show','API\x20key\x20is\x20required','mcpConfig.validation.invalidApiKey','网络连接错误,请检查您的网络连接','_localStorageService','fill','mcpStatus.unauthorized','mcpServerUrl','Enable\x20Authentication','mcpConfig.note2','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','启用身份验证以获得安全连接','univer_session_id:','32nMHPKU','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','registerComponent','1150204OELKay','assign','off-line-icon_clip0_910_343','MenuIcon','_configService','getOwnPropertyDescriptor','带有\x20Bearer\x20前缀的\x20API\x20密钥。','mcpConfig.configStep3','_config','mcpConfig.apiKeyPlaceholder','16AACswM','Retrying...','https://console.univer.plus','配置\x20MCP\x20使用\x20AI\x20操作电子表格','mcpConfig.connectionError.networkError','isValid','mcpConfig.connectionStatus.failed','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','_dialogService','enableAutoConnect','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','attrs','8448330CJoUTl','mcpConfig.sessionIdDescription','svg','noopener\x20noreferrer','forEach','use','univer-space-y-4','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','将以下配置添加到您的\x20MCP\x20客户端设置中:','mcpConfig.configError','close-icon','trim','复制以下\x20JSON\x20配置','_loading$','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','MCPConfigPanel','1666WavYza','entries','连接失败','mcpConfig.connectionInfo','mcpConfig.configStep1','Disconnected','symbol','univer.plus','OTHERS','MCP:\x20超出最大重试次数','tag','on-line-icon','_createConfigPanelComponent','pre','MCP\x20重连中...','defs','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','substring','toString','Invalid\x20configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','random','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','error','connectionStatus$','保存配置','text','mcpConfig.apiKeyHint','univer-flex\x20univer-items-start\x20univer-gap-2','_messageService','_connectionController','OffLineIcon','最大重试次数','off-line-icon','showDeveloperTools','univer-text-gray-500','Connecting...','UNAUTHORIZED','MAX_RETRIES_EXCEEDED','_initializeMenus','MCP:\x20会话\x20ID\x20已被占用','span','univer-size-4','重连中...','univer-text-xs\x20univer-text-gray-500','off','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','translate(.97)','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','Configuration\x20Notes:','点击配置\x20MCP','连接中...','idSuffix','getItem','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','univer-shrink-0\x20univer-text-blue-500','配置保存失败','Univer\x20AI\x20Console','Connected','_componentManager','defineProperty','univer-text-sm\x20univer-text-gray-500','mcpConfig.apiApplyInfo.getStarted','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','https://mcp.univer.ai/mcp/?univer_session_id=','univer-text-sm\x20univer-font-medium','apiKey','请输入您的\x20API\x20密钥','univer-space-y-5','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','NETWORK_ERROR','mcpStatus.connecting','univer-text-blue-600','COMMAND','_mcpCoreConfig$','next','replace','配置步骤:','register','MCP\x20客户端配置','什么是\x20API\x20密钥?','getConfig','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','mask','1284KTWmFU','API\x20密钥无效,请检查密钥是否正确','_initStatusComponent','MCP:\x20网络错误','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','currentColor','univer-text-red-500','212391OAudia','mergeMenu','Bearer\x20','url(#on-line-icon_clip0_910_349)','univer-bg-green-500','RETRYING','MCP:\x20Max\x20Retries\x20Exceeded','Univer\x20AI\x20控制台','help-icon','将配置添加到您的\x20MCP\x20客户端设置文件中','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','SESSION_ID_OCCUPIED','map','MCP\x20Connected','_logService','univer-bg-gray-500','API\x20Key','univer-text-gray-400','button','http','mcpStatus.failed','Failed\x20to\x20save\x20configuration','mcpStatus.unknown','mcpStatus.clickToConnect','length','http://www.w3.org/2000/svg','univer-font-medium','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','mcpStatus.maxRetriesExceeded','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer-space-y-3','mcpConfig.apiApplyInfo.title','mcp-config-dialog','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','mcp-ui.config','_injector','_registerComponent','_handleConfigure','配置参数:','sessionId$','mcpConfig.authorizationDescription','点击连接\x20MCP','univerjs-icon\x20univerjs-icon-','What\x20is\x20API\x20Key?','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','univer-bg-red-500','_mcpConnectionController','mcpConfig.saving','_apiKey$','_blank','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','_initializeCommands','MCP\x20连接失败','_loadStoredApiKey','API\x20密钥不能为空','path','univer-text-yellow-500','_validateConfig','mcpConfig.connectionError.unauthorized','push','open','univer.ai','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','get','_initAutoConnect','mcpConfig.validation.apiKeyTooShort','OnLineIcon','Click\x20to\x20connect\x20MCP','mcpConfig.connectionError.maxRetriesExceeded','API\x20密钥','会话ID','MCP\x20配置','univer-flex\x20univer-items-start\x20univer-gap-3','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','registerCommand','HEADER_MENU','CheckMarkIcon','xlink:href','defIds','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','univer-text-white','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','您的\x20API\x20密钥将在此浏览器中本地存储','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','connectionError$','_uiPartsService','subscribeConfigValue$','warn','M0\x200H16V16H0z','mcpStatus.clickToConfigure','66GrNzgc','univer-bg-blue-500','displayName'];_0x3be4=function(){return _0x81bacf;};return _0x3be4();}var fn=Object[_0x35bdbd(0x1af)],hn=Object[_0x35bdbd(0x2af)],Cn=(_0x348230,_0x44522e,_0x3e7549)=>_0x44522e in _0x348230?fn(_0x348230,_0x44522e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3e7549}):_0x348230[_0x44522e]=_0x3e7549,mn=(_0x4e7183,_0xedaf4b,_0x1fa688,_0x45ab1c)=>{const _0x46237b=_0x35bdbd;for(var _0x2d82d8=_0x45ab1c>0x1?void 0x0:_0x45ab1c?hn(_0xedaf4b,_0x1fa688):_0xedaf4b,_0x45be56=_0x4e7183[_0x46237b(0x1e7)]-0x1,_0x119f3e;_0x45be56>=0x0;_0x45be56--)(_0x119f3e=_0x4e7183[_0x45be56])&&(_0x2d82d8=_0x119f3e(_0x2d82d8)||_0x2d82d8);return _0x2d82d8;},P=(_0x258cb2,_0x413fba)=>(_0x44204b,_0x4d147b)=>_0x413fba(_0x44204b,_0x4d147b,_0x258cb2),_n=(_0x336bb1,_0x25b5c7,_0x5b97bf)=>Cn(_0x336bb1,_0x25b5c7+'',_0x5b97bf);let j=class extends _0x5ad39c{constructor(_0x1b4d5a=ie,_0x148644,_0x500b37,_0x6da0f7,_0x4a2a9a,_0x5de42f){const _0x4c1d30=_0x35bdbd;super(),this[_0x4c1d30(0x2b2)]=_0x1b4d5a,this[_0x4c1d30(0x1f2)]=_0x148644,this[_0x4c1d30(0x2ae)]=_0x500b37,this[_0x4c1d30(0x224)]=_0x6da0f7,this[_0x4c1d30(0x29d)]=_0x4a2a9a,this['_localeService']=_0x5de42f;const {..._0x56fbe9}=_0x46ab72({},ie,this['_config']);this[_0x4c1d30(0x2ae)]['setConfig'](y,_0x56fbe9);}async['onStarting'](){const _0x34919d=_0x35bdbd,_0x15e140=[[O],[I],[D]];this[_0x34919d(0x1f2)][_0x34919d(0x290)](_0x2339fb)||_0x15e140[_0x34919d(0x20a)]([_0x2339fb,{'useClass':_0x5d7f8e}]),_0x15e140[_0x34919d(0x2c4)](_0x3234d1=>this['_injector'][_0x34919d(0x244)](_0x3234d1)),this['_injector'][_0x34919d(0x20e)](O),this[_0x34919d(0x1f2)][_0x34919d(0x20e)](I),this[_0x34919d(0x1f2)][_0x34919d(0x20e)](D);}};_n(j,'pluginName','MCP_UI_PLUGIN'),j=mn([_0x5a0919(_0x2287c3),P(0x1,_0x2a417b(_0x3fab85)),P(0x2,_0x158da6),P(0x3,_0x3a586a),P(0x4,_0x4cec7f),P(0x5,_0x2a417b(_0x522dbf))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
|
|
1
|
+
const _0x69509c=_0x31b6;(function(_0x5e4f2a,_0x1ffd3c){const _0xd6fd11=_0x31b6,_0x2f3253=_0x5e4f2a();while(!![]){try{const _0x5cc186=-parseInt(_0xd6fd11(0x244))/0x1+-parseInt(_0xd6fd11(0x217))/0x2+parseInt(_0xd6fd11(0x14e))/0x3*(-parseInt(_0xd6fd11(0x134))/0x4)+-parseInt(_0xd6fd11(0x237))/0x5+-parseInt(_0xd6fd11(0x22e))/0x6+-parseInt(_0xd6fd11(0x10b))/0x7*(-parseInt(_0xd6fd11(0x111))/0x8)+parseInt(_0xd6fd11(0x204))/0x9;if(_0x5cc186===_0x1ffd3c)break;else _0x2f3253['push'](_0x2f3253['shift']());}catch(_0x12a7c4){_0x2f3253['push'](_0x2f3253['shift']());}}}(_0x1819,0x853da));var Pe=Object[_0x69509c(0x1ae)],Ee=(_0x18080a,_0x387401,_0x413bb6)=>_0x387401 in _0x18080a?Pe(_0x18080a,_0x387401,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x413bb6}):_0x18080a[_0x387401]=_0x413bb6,x=(_0x27ffc3,_0x11e26e,_0x96d161)=>Ee(_0x27ffc3,typeof _0x11e26e!=_0x69509c(0xed)?_0x11e26e+'':_0x11e26e,_0x96d161);function _0x1819(){const _0x25835c=['univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','0\x200\x2016\x2016','_loadStoredApiKey','_connectionController','Configuration\x20Steps:','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','map','mcpConfig.apiKeyPlaceholder','push','MCP\x20已连接','MCP:\x20未授权','mcpConfig.apiKey','univer-space-y-2','evenodd','mcpStatus.failed','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','_validateConfig','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','API\x20密钥长度至少需要\x2010\x20位','xlink:href','mcpConfig.apiApplyInfo.getStarted','univerjs-icon\x20univerjs-icon-','会话\x20ID\x20已被占用,请稍后再试','MCP:\x20Max\x20Retries\x20Exceeded','_configService','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','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','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','univer-space-y-3','_mcpConnectionController','保存中...','会话ID','showDeveloperTools','DISCONNECTED','M0\x200H16V16H0z','Connecting...','Click\x20to\x20configure\x20MCP','_uiPartsService','mcpConfig.title','register','https://mcp.univer.ai/mcp/?univer_session_id=','subscribeConfigValue$','COMMAND','mcpConfig.connectionError.networkError','_createConfigPanelComponent','API\x20key\x20with\x20Bearer\x20prefix.','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','CONNECTING','pluginName','path','defineProperty','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','https://console.univer.ai','displayName','Configuration\x20Parameters:','mcpServerUrl','CONNECTED','pre','error','Saving...','MCP\x20Unknown\x20Status','_localStorageService','substring','MCP\x20Retrying...','current','HEADER_MENU','OTHERS','Enable\x20authentication\x20for\x20secure\x20connections','univer-bg-red-500','mcpConfig.validation.apiKeyRequired','MCP:\x20Unauthorized','mcpStatus.maxRetriesExceeded','您的\x20API\x20密钥将在此浏览器中本地存储','apiKey','assign','univer-bg-green-500','__setCustomHeaders','CloseIcon','univer-text-xs\x20univer-text-gray-600','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','重启您的\x20MCP\x20客户端以使配置生效','_mcpCoreConfig$','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20Network\x20Error','univer-bg-gray-500','未连接','value','mcpConfig.validation.invalidConfig','_initializeMenus','SESSION_ID_OCCUPIED','close','_initStatusComponent','div','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','defs','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','univer-text-white','mcp.apiKey','What\x20is\x20API\x20Key?','Univer\x20AI\x20Console','on-line-icon','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','0\x200\x2017\x2016','mcp-ui.command.openConfigPanel','将以下配置添加到您的\x20MCP\x20客户端设置中:','_messageService','MCP\x20客户端配置','配置\x20MCP\x20使用\x20AI\x20操作电子表格','_logService','univer-text-red-500','Max\x20Retries','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','length','API\x20key\x20is\x20required','MCP\x20Client\x20Configuration','mcpConfig.connectionError.sessionOccupied','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','white','BUTTON','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','NONE','MCP:\x20超出最大重试次数','attrs','Invalid\x20configuration','use','已连接','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','fill','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','MCP\x20连接失败','univer-size-4','超出最大重试次数,请稍后再试','mcpConfig.saving','entries','univer-text-sm\x20univer-text-gray-500','41234499ifCaOi','mcpStatus.unknown','univer.ai','启用身份验证以获得安全连接','Connection\x20Failed','FAILED','MCP:\x20网络错误','mcpConfig.configStepTitle','onStarting','API\x20密钥','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mcpStatus.clickToConfigure','MCP\x20连接中...','Configuration\x20saved\x20successfully','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','_handleConfigSave','API\x20密钥不能为空','UNAUTHORIZED','1885464uDTTKc','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-flex\x20univer-items-center\x20univer-gap-2','next','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','off','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','MCP:\x20Session\x20ID\x20Occupied','setConfig','_apiKey$','_initAutoConnect','mcpConfig.connectionError.maxRetriesExceeded','MAX_RETRIES_EXCEEDED','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','show','_commandService','复制以下\x20JSON\x20配置','mcpConfig.connectionInfo','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','has','text','add','_componentManager','6500088ODFteo','noopener\x20noreferrer','_config','includes','点击配置\x20MCP','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','Session\x20ID','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','univer-space-y-4','5193555SENcUL','http://www.w3.org/2000/svg','none','mcpConfig.configSaved','mcpConfig.apiApplyInfo.univerAiLabel','showStatus','_registerComponent','_initializeCommands','mcpConfig.apiKeyHint','mcpConfig.sessionIdDescription','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','mcpConfig.note1','Success','694559BgpqHD','errorMessage','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','span','mcpConfig.save','svg','mcpConfig.apiApplyInfo.title','stringify','API\x20密钥无效,请检查密钥是否正确','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20配置','getOwnPropertyDescriptor','Authorization:','mcpStatus.connecting','RETRYING','mcpConfig.validation.apiKeyTooShort','symbol','Save\x20Configuration','MCP\x20已断开','url(#$1','重连中...','round','univer-min-w-0\x20univer-flex-1','网络连接错误,请检查您的网络连接','univer-font-medium','translate(.97)','配置保存成功','API\x20Key','button','connectionStatus$','isValid','univer-text-gray-400','mcpConfig.configStep2','mcpStatus.sessionOccupied','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','disposeWithMe','mcpConfig.apiApplyInfo.description','univer-shrink-0\x20univer-text-red-500','validateApiKey','_localeService','_blank','tag','getItem','MCP\x20Configuration','Bearer\x20','328489GrjJfB','连接失败','mcpStatus.retrying','univer-size-2\x20univer-rounded-full','mcpConfig.configStep3','Click\x20to\x20connect\x20MCP','64BArXEu','连接中...','<SESSION_ID>','mcpConfig.connectionStatus.connecting','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','random','get','mcpConfig.configError','配置保存失败','mcpConfig.connectionStatus.disconnected','univer-flex\x20univer-items-start\x20univer-gap-3','toString','string','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','sessionId$','MCP:\x20会话\x20ID\x20已被占用','NETWORK_ERROR','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','mcpConfig.connectionStatus.retrying','univer-mr-2\x20univer-flex\x20univer-text-xl','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP_UI_PLUGIN','close-icon','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','enableAutoConnect','MCPConfigPanel','\x20-\x20','mcpConfig.description','getConfig','help-icon','mcpStatus.unauthorized','1em','clipPath','forEach','subscribe','172PKRGqV','colorChannel1','OffLineIcon','setItem','mcpStatus.disconnected','_dialogService','Enable\x20Authentication','univer-flex\x20univer-flex-wrap\x20univer-gap-2','Failed\x20to\x20save\x20configuration','Univer\x20AI\x20控制台','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','Enter\x20your\x20API\x20key','mcpConfig.configParameters','univer-text-gray-500','univer-text-sm\x20univer-font-medium','off-line-icon_clip0_910_343','registerComponent','mask','trim','idSuffix','\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','univer-space-y-5','univer-text-xs\x20univer-text-gray-500','MCP\x20Connected','OnLineIcon','univer-shrink-0\x20univer-text-blue-500','45483HgOCYY','_loading$','defIds','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','mcpConfig.configStep1','_initConfigSync','univer_session_id:','mcpStatus.networkError','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','_config$','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-flex\x20univer-gap-3','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','UniverIcon','bottom','Disconnected','univer-flex\x20univer-items-start\x20univer-gap-2','replace','_handleConfigure','univer-text-blue-600','Copy\x20the\x20JSON\x20configuration\x20below','getCurrentConfig','保存配置','children','mcpConfig.configInstructions','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','_injector','mergeMenu','univer.plus','权限验证失败,请检查您的\x20API\x20密钥','showConfigPanel','mcpConfig.connectionStatus.failed','配置更改将立即生效','warn','currentColor','on-line-icon_clip0_910_349','mcpConfig.note2','univer-bg-blue-500','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','什么是\x20API\x20密钥?','connectionError$','Error','MCP\x20Connection\x20Failed','Get\x20your\x20API\x20key\x20in\x20seconds'];_0x1819=function(){return _0x25835c;};return _0x1819();}import{LocaleService as _0x74fd5c,Inject as _0x498260,Injector as _0x2824b0,IConfigService as _0x2115ff,ILocalStorageService as _0x1d32ad,ILogService as _0x312a1b,Disposable as _0x129f6f,CommandType as _0x28d3dc,ICommandService as _0x2f567e,DependentOn as _0x1bb110,Plugin as _0x1da912,merge as _0x5c7826}from'@univerjs/core';import{jsxs as _0xcbf5f2,jsx as _0x55d31f}from'react/jsx-runtime';import{MCPConnectionStatus as _0x145f07,MCPConnectionError as _0x4b334c,MCPConnectionController as _0x25fab3,MCP_PLUGIN_CONFIG_KEY as _0x48df26,UniverMCPPlugin as _0x97faec}from'@univerjs-pro/mcp';import{clsx as _0x1a08e9,Input as _0x28996b,Button as _0x177137,MessageType as _0x48dc0b,Tooltip as _0x19b6e8}from'@univerjs/design';import{useDependency as _0x45df94,useObservable as _0x346ffb,IUIPartsService as _0x4922e4,IDialogService as _0x20a5e1,IMessageService as _0x859540,ComponentManager as _0x98ea68,connectInjector as _0x3557b0,BuiltInUIPart as _0x3b5cdc,MenuItemType as _0xb75b57,RibbonStartGroup as _0x157488,IMenuManagerService as _0x58faa0}from'@univerjs/ui';import{BehaviorSubject as _0x2567e3}from'rxjs';import{useRef as _0x56c435,createElement as _0x5008bd,forwardRef as _0x1d7f67,useState as _0x1aa844,useCallback as _0x34973c}from'react';import{ISocketService as _0x519a30,WebSocketService as _0x2a611e}from'@univerjs/network';function b({ref:_0x1f3bf2,..._0x52d5ac}){const _0x1cd7a6=_0x69509c,{icon:_0x3d1812,id:_0xf59ff,className:_0x54701f,extend:_0x378b18,..._0x1aeda3}=_0x52d5ac,_0x3013c7=(_0x1cd7a6(0x191)+_0xf59ff+'\x20'+(_0x54701f||''))[_0x1cd7a6(0x146)](),_0x10a83a=_0x56c435('_'+We());return ae(_0x3d1812,''+_0xf59ff,{'defIds':_0x3d1812[_0x1cd7a6(0x150)],'idSuffix':_0x10a83a[_0x1cd7a6(0x1bc)]},{'ref':_0x1f3bf2,'className':_0x3013c7,..._0x1aeda3},_0x378b18);}function ae(_0x43d705,_0x3afbe0,_0x22c8a5,_0x121ff8,_0x17d663){const _0x3d9613=_0x69509c;return _0x5008bd(_0x43d705[_0x3d9613(0x107)],{'key':_0x3afbe0,...Ye(_0x43d705,_0x22c8a5,_0x17d663),..._0x121ff8},(Ze(_0x43d705,_0x22c8a5)[_0x3d9613(0x167)]||[])[_0x3d9613(0x182)]((_0x5af5dd,_0x28303e)=>ae(_0x5af5dd,_0x3afbe0+'-'+_0x43d705[_0x3d9613(0x107)]+'-'+_0x28303e,_0x22c8a5,void 0x0,_0x17d663)));}function Ye(_0x5bce3e,_0x44578c,_0x565822){const _0x1c4d1f=_0x69509c,_0x34c3e0={..._0x5bce3e[_0x1c4d1f(0x1f6)]};_0x565822!=null&&_0x565822['colorChannel1']&&_0x34c3e0[_0x1c4d1f(0x1fb)]==='colorChannel1'&&(_0x34c3e0['fill']=_0x565822[_0x1c4d1f(0x135)]),_0x5bce3e['tag']===_0x1c4d1f(0x145)&&_0x34c3e0['id']&&(_0x34c3e0['id']=_0x34c3e0['id']+_0x44578c['idSuffix']),Object[_0x1c4d1f(0x202)](_0x34c3e0)[_0x1c4d1f(0x132)](([_0x1891aa,_0x683a4a])=>{const _0x20f40f=_0x1c4d1f;_0x1891aa===_0x20f40f(0x145)&&typeof _0x683a4a==_0x20f40f(0x11d)&&(_0x34c3e0[_0x1891aa]=_0x683a4a[_0x20f40f(0x161)](/url\(#(.*)\)/,_0x20f40f(0xf0)+_0x44578c[_0x20f40f(0x147)]+')'));});const {defIds:_0x190804}=_0x44578c;return!_0x190804||_0x190804['length']===0x0||(_0x5bce3e[_0x1c4d1f(0x107)]===_0x1c4d1f(0x1f8)&&_0x34c3e0[_0x1c4d1f(0x18f)]&&(_0x34c3e0['xlink:href']=_0x34c3e0[_0x1c4d1f(0x18f)]+_0x44578c[_0x1c4d1f(0x147)]),Object[_0x1c4d1f(0x202)](_0x34c3e0)[_0x1c4d1f(0x132)](([_0x117af5,_0x42def3])=>{const _0x4dc97b=_0x1c4d1f;typeof _0x42def3==_0x4dc97b(0x11d)&&(_0x34c3e0[_0x117af5]=_0x42def3['replace'](/url\(#(.*)\)/,_0x4dc97b(0xf0)+_0x44578c[_0x4dc97b(0x147)]+')'));})),_0x34c3e0;}function Ze(_0x261b95,_0x223fb7){const _0x301faa=_0x69509c;var _0x4bdc39;const {defIds:_0x313954}=_0x223fb7;return!_0x313954||_0x313954[_0x301faa(0x1ec)]===0x0?_0x261b95:_0x261b95['tag']===_0x301faa(0x1da)&&((_0x4bdc39=_0x261b95[_0x301faa(0x167)])!=null&&_0x4bdc39[_0x301faa(0x1ec)])?{..._0x261b95,'children':_0x261b95['children'][_0x301faa(0x182)](_0x108458=>typeof _0x108458[_0x301faa(0x1f6)]['id']==_0x301faa(0x11d)&&_0x313954&&_0x313954['includes'](_0x108458['attrs']['id'])?{..._0x108458,'attrs':{..._0x108458['attrs'],'id':_0x108458[_0x301faa(0x1f6)]['id']+_0x223fb7['idSuffix']}}:_0x108458)}:_0x261b95;}function We(){const _0x2a05a2=_0x69509c;return Math[_0x2a05a2(0x116)]()[_0x2a05a2(0x11c)](0x24)[_0x2a05a2(0x1ba)](0x2,0x8);}b[_0x69509c(0x1b1)]=_0x69509c(0x15d);const qe={'tag':_0x69509c(0x249),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x69509c(0x239),'viewBox':_0x69509c(0x17d),'width':_0x69509c(0x130),'height':'1em'},'children':[{'tag':_0x69509c(0x1ad),'attrs':{'fill':_0x69509c(0x172),'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':'evenodd','clipRule':'evenodd'}}]},le=_0x1d7f67(function(_0x463d7a,_0x9a08fe){const _0x95dce6=_0x69509c;return _0x5008bd(b,Object[_0x95dce6(0x1c6)]({},_0x463d7a,{'id':'check-mark-icon','ref':_0x9a08fe,'icon':qe}));});le['displayName']='CheckMarkIcon';const Xe={'tag':_0x69509c(0x249),'attrs':{'xmlns':_0x69509c(0x238),'fill':_0x69509c(0x239),'viewBox':'0\x200\x2016\x2016','width':_0x69509c(0x130),'height':_0x69509c(0x130)},'children':[{'tag':_0x69509c(0x1ad),'attrs':{'fill':'currentColor','d':_0x69509c(0x18b)}}]},ue=_0x1d7f67(function(_0x264ec8,_0x3a022e){const _0x415e34=_0x69509c;return _0x5008bd(b,Object['assign']({},_0x264ec8,{'id':_0x415e34(0x127),'ref':_0x3a022e,'icon':Xe}));});ue['displayName']=_0x69509c(0x1c9);const Je={'tag':_0x69509c(0x249),'attrs':{'xmlns':_0x69509c(0x238),'fill':_0x69509c(0x239),'viewBox':'0\x200\x2016\x2016','width':_0x69509c(0x130),'height':_0x69509c(0x130)},'children':[{'tag':_0x69509c(0x1ad),'attrs':{'fill':'currentColor','d':_0x69509c(0x224)}},{'tag':_0x69509c(0x1ad),'attrs':{'fill':_0x69509c(0x172),'d':_0x69509c(0x1eb)}},{'tag':_0x69509c(0x1ad),'attrs':{'fill':_0x69509c(0x172),'d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':_0x69509c(0x189),'clipRule':_0x69509c(0x189)}}]},ve=_0x1d7f67(function(_0x100ba9,_0x41a123){const _0x2d3ecc=_0x69509c;return _0x5008bd(b,Object[_0x2d3ecc(0x1c6)]({},_0x100ba9,{'id':_0x2d3ecc(0x12e),'ref':_0x41a123,'icon':Je}));});ve[_0x69509c(0x1b1)]='HelpIcon';const Qe={'tag':_0x69509c(0x249),'attrs':{'xmlns':_0x69509c(0x238),'fill':'none','viewBox':_0x69509c(0x17d),'width':_0x69509c(0x130),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x69509c(0x1ad),'attrs':{'stroke':_0x69509c(0x172),'d':_0x69509c(0x157),'strokeLinecap':_0x69509c(0xf2),'strokeLinejoin':_0x69509c(0xf2),'strokeWidth':1.2}}]},{'tag':_0x69509c(0x1da),'attrs':{},'children':[{'tag':_0x69509c(0x131),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x69509c(0x1ad),'attrs':{'fill':_0x69509c(0x1f1),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x69509c(0x143)]},de=_0x1d7f67(function(_0x12caec,_0x4bd4b4){const _0x36621f=_0x69509c;return _0x5008bd(b,Object[_0x36621f(0x1c6)]({},_0x12caec,{'id':'off-line-icon','ref':_0x4bd4b4,'icon':Qe}));});de[_0x69509c(0x1b1)]=_0x69509c(0x136);const en={'tag':_0x69509c(0x249),'attrs':{'xmlns':_0x69509c(0x238),'fill':_0x69509c(0x239),'viewBox':_0x69509c(0x1e2),'width':_0x69509c(0x130),'height':_0x69509c(0x130)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':_0x69509c(0x172),'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':_0x69509c(0xf2),'strokeLinejoin':_0x69509c(0xf2),'strokeWidth':1.2}}]},{'tag':_0x69509c(0x1da),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x69509c(0x173)},'children':[{'tag':_0x69509c(0x1ad),'attrs':{'fill':_0x69509c(0x1f1),'d':_0x69509c(0x19e),'transform':_0x69509c(0xf6)}}]}]}],'defIds':[_0x69509c(0x173)]},ge=_0x1d7f67(function(_0x5236da,_0x537638){const _0x32651a=_0x69509c;return _0x5008bd(b,Object[_0x32651a(0x1c6)]({},_0x5236da,{'id':_0x32651a(0x1e0),'ref':_0x537638,'icon':en}));});ge[_0x69509c(0x1b1)]=_0x69509c(0x14c);function nn(_0x28ed0b){const _0x42e760=_0x69509c;var _0x3754b9,_0x4f3b19;const {mcpCoreConfig:_0x25afca,onSave:_0x5cf7ad,loading:_0x514827=!0x1,config:_0x40a088,connectionStatus$:_0x511ae6,connectionError$:_0xdd76b3,currentApiKey$:_0x2f76d3,currentSessionId$:_0x4721ab}=_0x28ed0b,_0x1a23f3=_0x45df94(_0x74fd5c),_0x306123=_0x346ffb(_0x511ae6,_0x145f07['DISCONNECTED']),_0x38b4dd=_0x346ffb(_0xdd76b3,_0x4b334c[_0x42e760(0x1f4)]),_0x23079a=_0x346ffb(_0x4721ab,''),_0x1a81f5=_0x346ffb(_0x2f76d3,''),[_0x433c4e,_0x4ff14e]=_0x1aa844(_0x1a81f5||''),_0x34daec=!0x0,_0x5a5a07=_0x40a088['showDeveloperTools']&&_0x25afca['mcpServerUrl']&&(_0x25afca[_0x42e760(0x1b3)][_0x42e760(0x231)]('univer.plus')||_0x25afca[_0x42e760(0x1b3)]['includes'](_0x42e760(0x206))),_0x1b1f62=(_0x3754b9=_0x25afca[_0x42e760(0x1b3)])==null?void 0x0:_0x3754b9['includes'](_0x42e760(0x16c)),_0x5720fa=(_0x4f3b19=_0x25afca[_0x42e760(0x1b3)])==null?void 0x0:_0x4f3b19[_0x42e760(0x231)]('univer.ai'),_0x113c76=_0x1b1f62?'https://console.univer.plus':_0x42e760(0x1b0),_0x258543=_0x40a088[_0x42e760(0x19c)]&&(_0x1b1f62||_0x5720fa),[_0x3807fe,_0x2a81d9]=_0x1aa844(!_0x433c4e[_0x42e760(0x146)]()),_0x2d66d1=(_0x277d83,_0x36baba)=>{const _0xfb4083=_0x42e760;if(_0x36baba===_0x4b334c['UNAUTHORIZED'])return _0xfb4083(0x18d);switch(_0x277d83){case _0x145f07[_0xfb4083(0x1b4)]:return _0xfb4083(0x169);case _0x145f07[_0xfb4083(0x1ab)]:case _0x145f07[_0xfb4083(0xeb)]:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case _0x145f07[_0xfb4083(0x209)]:return _0xfb4083(0x18d);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x1a661e=(_0x40f9fd,_0x441fae)=>{const _0x2c4edf=_0x42e760;if(_0x441fae===_0x4b334c[_0x2c4edf(0x216)])return _0x2c4edf(0x1c0);switch(_0x40f9fd){case _0x145f07[_0x2c4edf(0x1b4)]:return _0x2c4edf(0x1c7);case _0x145f07[_0x2c4edf(0x1ab)]:case _0x145f07[_0x2c4edf(0xeb)]:return _0x2c4edf(0x175);case _0x145f07[_0x2c4edf(0x209)]:return'univer-bg-red-500';default:return _0x2c4edf(0x1d0);}},_0x2c6476=_0x2cf942=>{const _0x5ac30e=_0x42e760;switch(_0x2cf942){case _0x145f07[_0x5ac30e(0x1b4)]:return _0x1a23f3['t']('mcpConfig.connectionStatus.connected');case _0x145f07['CONNECTING']:return _0x1a23f3['t'](_0x5ac30e(0x114));case _0x145f07[_0x5ac30e(0x209)]:return _0x1a23f3['t'](_0x5ac30e(0x16f));case _0x145f07['RETRYING']:return _0x1a23f3['t'](_0x5ac30e(0x123));default:return _0x1a23f3['t'](_0x5ac30e(0x11a));}},_0xa0750=_0x45410b=>{const _0x5f090a=_0x42e760;switch(_0x45410b){case _0x4b334c[_0x5f090a(0x216)]:return _0x1a23f3['t']('mcpConfig.connectionError.unauthorized');case _0x4b334c[_0x5f090a(0x1d5)]:return _0x1a23f3['t'](_0x5f090a(0x1ef));case _0x4b334c[_0x5f090a(0x121)]:return _0x1a23f3['t'](_0x5f090a(0x1a7));case _0x4b334c[_0x5f090a(0x223)]:return _0x1a23f3['t'](_0x5f090a(0x222));default:return'';}},_0x389c5e=_0x34973c(()=>{const _0x4e89b5=_0x42e760,_0x32e082={..._0x25afca,'apiKey':_0x433c4e[_0x4e89b5(0x146)](),'enableAuth':_0x34daec};_0x5cf7ad(_0x32e082);},[_0x25afca,_0x433c4e,_0x34daec,_0x5cf7ad]),_0x334d8e=_0x433c4e[_0x42e760(0x146)]()[_0x42e760(0x1ec)]>0x0;return _0xcbf5f2('div',{'className':_0x42e760(0x1f0),'children':[_0x55d31f(_0x42e760(0x1d8),{'className':_0x42e760(0x1e1),'children':_0xcbf5f2(_0x42e760(0x1d8),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0x55d31f(_0x42e760(0x1d8),{'className':_0x42e760(0x246),'children':_0x55d31f(_0x42e760(0x247),{'className':_0x42e760(0x1dc),'children':'⚙'})}),_0x55d31f(_0x42e760(0x1d8),{'children':_0x55d31f('p',{'className':_0x42e760(0x203),'children':_0x1a23f3['t'](_0x42e760(0x12c))})})]})}),_0xcbf5f2(_0x42e760(0x1d8),{'className':_0x42e760(0x15a),'children':[_0x55d31f(_0x42e760(0x1d8),{'className':_0x1a08e9('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x2d66d1(_0x306123,_0x38b4dd)),'children':_0xcbf5f2('div',{'className':_0x42e760(0x219),'children':[_0x55d31f(_0x42e760(0x1d8),{'className':_0x1a08e9(_0x42e760(0x10e),_0x1a661e(_0x306123,_0x38b4dd))}),_0x55d31f(_0x42e760(0x247),{'className':_0x42e760(0x142),'children':_0x2c6476(_0x306123)})]})}),_0x38b4dd!==_0x4b334c[_0x42e760(0x1f4)]&&(_0x306123===_0x145f07[_0x42e760(0x209)]||_0x38b4dd===_0x4b334c[_0x42e760(0x216)])&&_0x55d31f(_0x42e760(0x1d8),{'className':_0x42e760(0x212),'children':_0xcbf5f2(_0x42e760(0x1d8),{'className':_0x42e760(0x160),'children':[_0x55d31f('span',{'className':_0x42e760(0x103),'children':'⚠️'}),_0x55d31f('p',{'className':_0x42e760(0x156),'children':_0xa0750(_0x38b4dd)})]})})]}),_0x55d31f(_0x42e760(0x1d8),{'className':_0x42e760(0x233),'children':_0xcbf5f2(_0x42e760(0x1d8),{'className':_0x42e760(0x149),'children':[_0xcbf5f2('div',{'className':'univer-space-y-2','children':[_0xcbf5f2('label',{'className':_0x42e760(0x1cb),'children':[_0x55d31f('span',{'children':'🔑'}),'\x20',_0x1a23f3['t'](_0x42e760(0x187)),_0x55d31f('span',{'className':_0x42e760(0x1e9),'children':'*'}),_0x5a5a07&&_0x55d31f('a',{'className':_0x42e760(0x1db),'title':_0x1a23f3['t'](_0x42e760(0x24a)),'role':_0x42e760(0xf9),'onClick':()=>_0x2a81d9(!0x0),'children':_0x55d31f(ve,{})})]}),_0x55d31f(_0x28996b,{'type':_0x42e760(0x22b),'placeholder':_0x1a23f3['t'](_0x42e760(0x183)),'value':_0x433c4e,'disabled':_0x514827,'autoComplete':_0x42e760(0x21c),'onChange':_0x4ff14e}),_0x55d31f('p',{'className':_0x42e760(0x14a),'children':_0x1a23f3['t'](_0x42e760(0x23f))})]}),_0x5a5a07&&_0x3807fe&&_0xcbf5f2(_0x42e760(0x1d8),{'className':_0x42e760(0x181),'children':[_0x55d31f('a',{'className':_0x42e760(0x196),'role':_0x42e760(0xf9),'onClick':()=>_0x2a81d9(!0x1),'children':_0x55d31f(ue,{'className':_0x42e760(0x1ff)})}),_0xcbf5f2(_0x42e760(0x1d8),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x55d31f(_0x42e760(0x1d8),{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':_0x55d31f('span',{'className':_0x42e760(0x163),'children':'🚀'})}),_0xcbf5f2('div',{'className':'univer-flex-1','children':[_0x55d31f('h4',{'className':_0x42e760(0x176),'children':_0x1a23f3['t'](_0x42e760(0x24a))}),_0x55d31f('p',{'className':_0x42e760(0x17c),'children':_0x1a23f3['t'](_0x42e760(0x102))}),_0x55d31f(_0x42e760(0x1d8),{'className':_0x42e760(0x13b),'children':_0x258543&&_0xcbf5f2('a',{'className':_0x42e760(0x100),'href':_0x113c76,'target':_0x42e760(0x106),'rel':_0x42e760(0x22f),'children':[_0x55d31f(_0x42e760(0x247),{'children':'🤖'}),_0x1a23f3['t'](_0x42e760(0x23b)),_0x55d31f(_0x42e760(0x247),{'className':_0x42e760(0xfc),'children':'↗'})]})}),_0xcbf5f2(_0x42e760(0x1d8),{'className':_0x42e760(0x20e),'children':['✨','\x20',_0x1a23f3['t'](_0x42e760(0x190))]})]})]})]}),_0x40a088[_0x42e760(0x19c)]&&_0xcbf5f2(_0x42e760(0x1d8),{'className':_0x42e760(0x11e),'children':[_0xcbf5f2('h4',{'className':_0x42e760(0x218),'children':[_0x55d31f(_0x42e760(0x247),{'children':'🔗'}),'\x20',_0x1a23f3['t'](_0x42e760(0x228))]}),_0xcbf5f2(_0x42e760(0x1d8),{'className':_0x42e760(0x236),'children':[_0xcbf5f2(_0x42e760(0x1d8),{'className':_0x42e760(0x198),'children':[_0x55d31f('p',{'className':_0x42e760(0x1ca),'children':_0x1a23f3['t'](_0x42e760(0x168))}),_0xcbf5f2(_0x42e760(0x1d8),{'className':'univer-space-y-2','children':[_0x55d31f(_0x42e760(0x1d8),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x1a23f3['t'](_0x42e760(0x20b))}),_0xcbf5f2(_0x42e760(0x1d8),{'className':_0x42e760(0x229),'children':[_0xcbf5f2(_0x42e760(0x1d8),{'className':_0x42e760(0x219),'children':[_0x55d31f('span',{'className':_0x42e760(0x21b),'children':'1'}),_0x1a23f3['t'](_0x42e760(0x152))]}),_0xcbf5f2(_0x42e760(0x1d8),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x55d31f(_0x42e760(0x247),{'className':_0x42e760(0x21b),'children':'2'}),_0x1a23f3['t'](_0x42e760(0xfd))]}),_0xcbf5f2('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x55d31f(_0x42e760(0x247),{'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':'3'}),_0x1a23f3['t'](_0x42e760(0x10f))]})]})]})]}),_0xcbf5f2(_0x42e760(0x1d8),{'className':_0x42e760(0x188),'children':[_0x55d31f(_0x42e760(0x1d8),{'className':_0x42e760(0x15c),'children':_0x42e760(0x109)}),_0x55d31f(_0x42e760(0x1d8),{'className':_0x42e760(0x1fd),'children':_0x55d31f(_0x42e760(0x1b5),{'className':_0x42e760(0x235),'children':JSON[_0x42e760(0x24b)]({'mcpServers':{'univer':{'url':_0x42e760(0x1a4)+(_0x23079a||_0x42e760(0x113)),'type':'http','headers':{'Authorization':_0x42e760(0x10a)+(_0x433c4e||'<API_KEY>')}}}},null,0x2)})})]}),_0xcbf5f2(_0x42e760(0x1d8),{'className':_0x42e760(0x198),'children':[_0x55d31f(_0x42e760(0x1d8),{'className':_0x42e760(0x15c),'children':_0x1a23f3['t'](_0x42e760(0x140))}),_0xcbf5f2('div',{'className':_0x42e760(0x188),'children':[_0xcbf5f2(_0x42e760(0x1d8),{'className':_0x42e760(0x11b),'children':[_0x55d31f(_0x42e760(0x1d8),{'className':_0x42e760(0x21d)}),_0xcbf5f2(_0x42e760(0x1d8),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x55d31f(_0x42e760(0x1d8),{'className':_0x42e760(0x195),'children':_0x42e760(0x154)}),_0x55d31f(_0x42e760(0x1d8),{'className':_0x42e760(0x14a),'children':_0x1a23f3['t'](_0x42e760(0x240))})]})]}),_0xcbf5f2(_0x42e760(0x1d8),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x55d31f(_0x42e760(0x1d8),{'className':_0x42e760(0x21d)}),_0xcbf5f2(_0x42e760(0x1d8),{'className':_0x42e760(0xf3),'children':[_0x55d31f(_0x42e760(0x1d8),{'className':_0x42e760(0x195),'children':_0x42e760(0xe9)}),_0x55d31f(_0x42e760(0x1d8),{'className':_0x42e760(0x14a),'children':_0x1a23f3['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x55d31f(_0x177137,{'onClick':_0x389c5e,'disabled':!_0x334d8e||_0x514827,'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':_0x514827?_0xcbf5f2(_0x42e760(0x247),{'className':_0x42e760(0x219),'children':[_0x55d31f(_0x42e760(0x247),{'children':'⟲'}),_0x1a23f3['t'](_0x42e760(0x201))]}):_0xcbf5f2('span',{'className':_0x42e760(0x219),'children':[_0x55d31f(le,{}),_0x1a23f3['t'](_0x42e760(0x248))]})}),_0x55d31f(_0x42e760(0x1d8),{'className':_0x42e760(0x158),'children':_0xcbf5f2(_0x42e760(0x1d8),{'className':_0x42e760(0x15b),'children':[_0x55d31f(_0x42e760(0x247),{'className':_0x42e760(0x14d),'children':'💡'}),_0xcbf5f2(_0x42e760(0x1d8),{'className':_0x42e760(0x128),'children':[_0x55d31f('div',{'className':_0x42e760(0xf5),'children':'Configuration\x20Notes:'}),_0xcbf5f2('div',{'children':['•',_0x1a23f3['t'](_0x42e760(0x242))]}),_0xcbf5f2('div',{'children':['•',_0x1a23f3['t'](_0x42e760(0x174))]})]})]})})]})})]});}const y='mcp-ui.config',ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object['getOwnPropertyDescriptor'],tn=(_0x389304,_0x5e58cc,_0x294c19,_0x314006)=>{const _0x4318c8=_0x69509c;for(var _0x5576d9=_0x314006>0x1?void 0x0:_0x314006?rn(_0x5e58cc,_0x294c19):_0x5e58cc,_0x36a060=_0x389304[_0x4318c8(0x1ec)]-0x1,_0x46df0a;_0x36a060>=0x0;_0x36a060--)(_0x46df0a=_0x389304[_0x36a060])&&(_0x5576d9=_0x46df0a(_0x5576d9)||_0x5576d9);return _0x5576d9;},d=(_0x406617,_0x44196d)=>(_0x309a09,_0x8ac17c)=>_0x44196d(_0x309a09,_0x8ac17c,_0x406617);const U=_0x69509c(0x1dd),L='mcp-config-dialog';let I=class extends _0x129f6f{constructor(_0x49de5a,_0x1d89ba,_0x1545e3,_0x183d61,_0x266180,_0x100c18,_0x43b5dd,_0x35851a,_0x3db628,_0xb8c1a9){const _0x166539=_0x69509c;super(),x(this,_0x166539(0x14f),new _0x2567e3(!0x1)),x(this,'_mcpCoreConfig$',new _0x2567e3({})),x(this,'_config$',new _0x2567e3({})),x(this,_0x166539(0x220),new _0x2567e3('')),x(this,_0x166539(0x214),async _0x4e99a9=>{const _0x454880=_0x166539;var _0x32e730,_0x4311bd;this['_loading$']['next'](!0x0);try{const _0x13bcd6=await this[_0x454880(0x18c)](_0x4e99a9);if(!_0x13bcd6[_0x454880(0xfb)]){this[_0x454880(0x1e5)][_0x454880(0x225)]({'type':_0x48dc0b[_0x454880(0x179)],'content':_0x13bcd6[_0x454880(0x245)]||this[_0x454880(0x105)]['t'](_0x454880(0x1d3))});return;}_0x4e99a9['apiKey']?await this[_0x454880(0x1b9)][_0x454880(0x137)](U,_0x4e99a9[_0x454880(0x1c5)]['trim']()):await this[_0x454880(0x1b9)]['removeItem'](U),this[_0x454880(0x220)]['next'](((_0x32e730=_0x4e99a9[_0x454880(0x1c5)])==null?void 0x0:_0x32e730[_0x454880(0x146)]())||''),this['_mcpConnectionController'][_0x454880(0x1c8)]({'Authorization':_0x454880(0x10a)+((_0x4311bd=_0x4e99a9[_0x454880(0x1c5)])==null?void 0x0:_0x4311bd['trim']())}),this[_0x454880(0x1e5)][_0x454880(0x225)]({'type':_0x48dc0b[_0x454880(0x243)],'content':this[_0x454880(0x105)]['t'](_0x454880(0x23a))}),setTimeout(()=>{const _0x33ea8c=_0x454880;this['_dialogService'][_0x33ea8c(0x1d6)](L);},0x320);}catch(_0x196844){this[_0x454880(0x1e8)][_0x454880(0x1b6)](_0x454880(0x1f3),_0x196844),this[_0x454880(0x1e5)][_0x454880(0x225)]({'type':_0x48dc0b[_0x454880(0x179)],'content':this[_0x454880(0x105)]['t'](_0x454880(0x118))});}finally{this[_0x454880(0x14f)][_0x454880(0x21a)](!0x1);}}),(this[_0x166539(0x16a)]=_0x49de5a,this[_0x166539(0x1a1)]=_0x1d89ba,this[_0x166539(0x194)]=_0x1545e3,this[_0x166539(0x1b9)]=_0x183d61,this[_0x166539(0x139)]=_0x266180,this['_messageService']=_0x100c18,this[_0x166539(0x22d)]=_0x43b5dd,this[_0x166539(0x105)]=_0x35851a,this[_0x166539(0x1e8)]=_0x3db628,this['_mcpConnectionController']=_0xb8c1a9,this['_initConfigSync'](),this[_0x166539(0x17e)](),this[_0x166539(0x23d)]());}[_0x69509c(0x16e)](){const _0x78da22=_0x69509c,_0xb4b8a=this['_configService']['getConfig'](y);_0xb4b8a!=null&&_0xb4b8a[_0x78da22(0x19c)]&&this[_0x78da22(0x139)]['open']({'id':L,'title':{'title':this[_0x78da22(0x105)]['t']('mcpConfig.title')},'children':{'label':_0x78da22(0x12a)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x5a8897=_0x78da22;this[_0x5a8897(0x139)][_0x5a8897(0x1d6)](L);}});}[_0x69509c(0x165)](){const _0x235f82=_0x69509c;return this[_0x235f82(0x1cd)]['value'];}[_0x69509c(0x23d)](){const _0x673e0f=_0x69509c;this[_0x673e0f(0x101)](this['_componentManager'][_0x673e0f(0x1a3)](_0x673e0f(0x12a),this[_0x673e0f(0x1a8)]()));}[_0x69509c(0x1a8)](){const _0xf80210=_0x69509c;return _0x3557b0(()=>{const _0x46422e=_0x31b6;var _0x168e0c,_0x103e21,_0x317f89;return _0x55d31f(nn,{'config':this[_0x46422e(0x159)][_0x46422e(0x1d2)],'mcpCoreConfig':this[_0x46422e(0x1cd)][_0x46422e(0x1d2)],'currentApiKey$':this[_0x46422e(0x220)],'onSave':this['_handleConfigSave'],'loading':this[_0x46422e(0x14f)][_0x46422e(0x1d2)],'connectionStatus$':(_0x168e0c=this[_0x46422e(0x199)])==null?void 0x0:_0x168e0c['connectionStatus$'],'connectionError$':(_0x103e21=this[_0x46422e(0x199)])==null?void 0x0:_0x103e21[_0x46422e(0x178)],'currentSessionId$':(_0x317f89=this[_0x46422e(0x199)])==null?void 0x0:_0x317f89[_0x46422e(0x11f)]});},this[_0xf80210(0x16a)]);}[_0x69509c(0x153)](){const _0x208723=_0x69509c;this[_0x208723(0x101)](this['_configService'][_0x208723(0x1a5)](_0x48df26)[_0x208723(0x133)](_0x134b26=>{const _0x1c912c=_0x208723;this[_0x1c912c(0x1cd)][_0x1c912c(0x21a)](_0x134b26||{});}));const _0x150dab=this['_configService'][_0x208723(0x12d)](_0x48df26);this[_0x208723(0x1cd)][_0x208723(0x21a)](_0x150dab||{}),this[_0x208723(0x101)](this[_0x208723(0x194)][_0x208723(0x1a5)](y)[_0x208723(0x133)](_0x2b1bc5=>{const _0x2d8b4b=_0x208723;this[_0x2d8b4b(0x159)][_0x2d8b4b(0x21a)](_0x2b1bc5||{});}));const _0x183e2f=this['_configService'][_0x208723(0x12d)](y);this[_0x208723(0x159)]['next'](_0x183e2f||{});}async[_0x69509c(0x17e)](){const _0x3ca0d8=_0x69509c,_0x25b1e4=this['_configService'][_0x3ca0d8(0x12d)](y);if(!(_0x25b1e4!=null&&_0x25b1e4[_0x3ca0d8(0x19c)]))return;const _0x3ffc99=await this[_0x3ca0d8(0x1b9)][_0x3ca0d8(0x108)](U);_0x3ffc99&&(this[_0x3ca0d8(0x199)][_0x3ca0d8(0x1c8)]({'Authorization':'Bearer\x20'+_0x3ffc99}),this[_0x3ca0d8(0x220)]['next'](_0x3ffc99));}async['_validateConfig'](_0x4517b5){const _0x3dd74f=_0x69509c;if(!_0x4517b5[_0x3dd74f(0x1c5)]||_0x4517b5['apiKey']['trim']()[_0x3dd74f(0x1ec)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x3dd74f(0x105)]['t'](_0x3dd74f(0x1c1))};if(_0x4517b5[_0x3dd74f(0x1c5)][_0x3dd74f(0x146)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x3dd74f(0x105)]['t'](_0x3dd74f(0xec))};try{const _0x1f5551=await this[_0x3dd74f(0x16a)][_0x3dd74f(0x117)](_0x25fab3)[_0x3dd74f(0x104)](_0x4517b5[_0x3dd74f(0x1c5)][_0x3dd74f(0x146)]());return _0x1f5551[_0x3dd74f(0xfb)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x1f5551['error']||this[_0x3dd74f(0x105)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x65e29c){return console[_0x3dd74f(0x171)](_0x3dd74f(0x13e),_0x65e29c),{'isValid':!0x0};}}};I=tn([d(0x0,_0x498260(_0x2824b0)),d(0x1,_0x4922e4),d(0x2,_0x2115ff),d(0x3,_0x1d32ad),d(0x4,_0x20a5e1),d(0x5,_0x859540),d(0x6,_0x498260(_0x98ea68)),d(0x7,_0x498260(_0x74fd5c)),d(0x8,_0x312a1b),d(0x9,_0x498260(_0x25fab3))],I);const V={'id':_0x69509c(0x1e3),'type':_0x28d3dc[_0x69509c(0x1a6)],'handler':async(_0x9a1dff,_0x34deac)=>(_0x9a1dff[_0x69509c(0x117)](I)[_0x69509c(0x16e)](),!0x0)};function pe(_0x3681f3,_0x267889){const _0x2976b3=_0x69509c;switch(_0x3681f3){case _0x145f07[_0x2976b3(0x19d)]:return _0x2976b3(0x138);case _0x145f07[_0x2976b3(0x1ab)]:return _0x2976b3(0xea);case _0x145f07[_0x2976b3(0x1b4)]:return'mcpStatus.connected';case _0x145f07[_0x2976b3(0x209)]:switch(_0x267889){case _0x4b334c[_0x2976b3(0x216)]:return _0x2976b3(0x12f);case _0x4b334c['SESSION_ID_OCCUPIED']:return _0x2976b3(0xfe);case _0x4b334c[_0x2976b3(0x121)]:return _0x2976b3(0x155);case _0x4b334c[_0x2976b3(0x223)]:return _0x2976b3(0x1c3);default:return _0x2976b3(0x18a);}case _0x145f07[_0x2976b3(0xeb)]:return _0x2976b3(0x10d);default:return _0x2976b3(0x205);}}function on(_0x512683,_0xf03f52,_0x333838,_0x4fe3b2=!0x0){const _0x13702f=_0x69509c,_0x1106e9=pe(_0x512683,_0xf03f52),_0x27037b=_0x333838['t'](_0x1106e9);return _0x4fe3b2?_0x512683===_0x145f07[_0x13702f(0x19d)]&&_0xf03f52===_0x4b334c[_0x13702f(0x216)]?_0x27037b+_0x13702f(0x12b)+_0x333838['t'](_0x13702f(0x20f)):_0x512683===_0x145f07[_0x13702f(0x1b4)]?''+_0x27037b:_0x512683===_0x145f07[_0x13702f(0x19d)]||_0x512683===_0x145f07[_0x13702f(0x209)]?_0x27037b+'\x20-\x20'+_0x333838['t']('mcpStatus.clickToConnect'):_0x27037b:_0x27037b;}function sn(_0x235480){const _0x45b157=_0x69509c;switch(_0x235480){case _0x145f07[_0x45b157(0x1b4)]:return'univer-text-green-500';case _0x145f07['CONNECTING']:case _0x145f07[_0x45b157(0xeb)]:return'univer-text-yellow-500';case _0x145f07[_0x45b157(0x209)]:case _0x145f07['DISCONNECTED']:return _0x45b157(0x1e9);default:return _0x45b157(0x141);}}function cn(_0x4c4eae){const _0x101ecc=_0x69509c,{status$:_0xdb4032,error$:_0x1e9d01,onConfigure:_0x2cf96a,showClickable:_0x26dd5f=!0x0}=_0x4c4eae,_0x49eda5=_0x346ffb(_0xdb4032,_0x145f07[_0x101ecc(0x19d)]),_0x3a1fdb=_0x346ffb(_0x1e9d01,_0x4b334c[_0x101ecc(0x1f4)]),_0x220e4f=_0x45df94(_0x74fd5c),_0x4849ef=_0x49eda5===_0x145f07[_0x101ecc(0x1b4)];_0x49eda5===_0x145f07[_0x101ecc(0x1ab)]||_0x145f07[_0x101ecc(0xeb)];const _0x30d1f6=_0x220e4f['t'](pe(_0x49eda5,_0x3a1fdb)),_0x1f201d=on(_0x49eda5,_0x3a1fdb,_0x220e4f,_0x26dd5f),_0xd57cc1=sn(_0x49eda5),_0x3279a8=_0x4849ef?_0x55d31f(ge,{}):_0x55d31f(de,{}),_0x15e6c5=_0x34973c(()=>{_0x26dd5f&&_0x2cf96a&&_0x2cf96a();},[_0x26dd5f,_0x2cf96a]);function _0x419142(){const _0x4f01aa=_0x101ecc;return _0xcbf5f2(_0x4f01aa(0x1d8),{'className':_0x1a08e9('univer-flex\x20univer-items-center',_0x26dd5f&&_0x2cf96a&&_0x4f01aa(0x148)),'role':_0x4f01aa(0xf9),'onClick':_0x26dd5f&&_0x2cf96a?_0x15e6c5:void 0x0,'children':[_0x55d31f(_0x4f01aa(0x1d8),{'className':_0x1a08e9(_0x4f01aa(0x124),_0xd57cc1),'children':_0x3279a8}),_0x55d31f(_0x4f01aa(0x1d8),{'className':_0x4f01aa(0x1fc),'children':_0x30d1f6})]});}return _0x55d31f(_0x19b6e8,{'title':_0x1f201d,'placement':_0x101ecc(0x15e),'children':_0x419142()});}var an=Object[_0x69509c(0xe8)],ln=(_0x4c8cde,_0x2e3b98,_0x27c948,_0xcdce54)=>{for(var _0x4e2ff8=_0xcdce54>0x1?void 0x0:_0xcdce54?an(_0x2e3b98,_0x27c948):_0x2e3b98,_0x255722=_0x4c8cde['length']-0x1,_0xce870a;_0x255722>=0x0;_0x255722--)(_0xce870a=_0x4c8cde[_0x255722])&&(_0x4e2ff8=_0xce870a(_0x4e2ff8)||_0x4e2ff8);return _0x4e2ff8;},M=(_0x27b011,_0x4d3c2b)=>(_0x3159ac,_0x5e0938)=>_0x4d3c2b(_0x3159ac,_0x5e0938,_0x27b011);let O=class extends _0x129f6f{constructor(_0x110664,_0x572186,_0x128585,_0x5e33be){const _0x596b9b=_0x69509c;super(),this[_0x596b9b(0x16a)]=_0x110664,this['_connectionController']=_0x572186,this['_uiPartsService']=_0x128585,this[_0x596b9b(0x194)]=_0x5e33be,this[_0x596b9b(0x221)](),this['_initStatusComponent']();}[_0x69509c(0x221)](){const _0x39b79e=_0x69509c,_0x2d1eb4=this['_configService'][_0x39b79e(0x12d)](y);_0x2d1eb4!=null&&_0x2d1eb4[_0x39b79e(0x19c)]&&(this['_connectionController'][_0x39b79e(0x129)]=!0x1);}[_0x69509c(0x1d7)](){const _0xe57275=_0x69509c,_0x57dc5c=this[_0xe57275(0x194)][_0xe57275(0x12d)](y);(_0x57dc5c==null?void 0x0:_0x57dc5c[_0xe57275(0x23c)])!==!0x1&&this['disposeWithMe'](this[_0xe57275(0x1a1)][_0xe57275(0x144)](_0x3b5cdc[_0xe57275(0x1bd)],()=>{const _0x43b3d5=_0xe57275;var _0x2b2f14;return _0x3557b0(un({'status$':this[_0x43b3d5(0x17f)][_0x43b3d5(0xfa)],'error$':this['_connectionController'][_0x43b3d5(0x178)],'onConfigure':()=>this[_0x43b3d5(0x162)](),'showClickable':(_0x2b2f14=_0x57dc5c==null?void 0x0:_0x57dc5c['showDeveloperTools'])!=null?_0x2b2f14:!0x1}),this[_0x43b3d5(0x16a)]);}));}[_0x69509c(0x162)](){const _0xb37504=_0x69509c;this['_injector'][_0xb37504(0x117)](I)['showConfigPanel']();}};O=ln([M(0x0,_0x498260(_0x2824b0)),M(0x1,_0x498260(_0x25fab3)),M(0x2,_0x4922e4),M(0x3,_0x2115ff)],O);function un(_0x37c401){const {status$:_0x54d8d3,error$:_0x10c86d,onConfigure:_0x17015c,showClickable:_0x2e6216}=_0x37c401;return function(){return _0x55d31f(cn,{'status$':_0x54d8d3,'error$':_0x10c86d,'onConfigure':_0x17015c,'showClickable':_0x2e6216});};}function vn(_0x18dddc){const _0x5e981b=_0x69509c;return{'id':V['id'],'type':_0xb75b57[_0x5e981b(0x1f2)],'icon':'MenuIcon','title':_0x5e981b(0x1a2),'tooltip':_0x5e981b(0x1a2)};}const dn={[_0x157488[_0x69509c(0x1be)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x69509c(0xe8)],pn=(_0x38f8e2,_0x11f2de,_0x2f7ecb,_0x40e2cd)=>{for(var _0x2e1928=_0x40e2cd>0x1?void 0x0:_0x40e2cd?gn(_0x11f2de,_0x2f7ecb):_0x11f2de,_0x14d0fb=_0x38f8e2['length']-0x1,_0x3c1a93;_0x14d0fb>=0x0;_0x14d0fb--)(_0x3c1a93=_0x38f8e2[_0x14d0fb])&&(_0x2e1928=_0x3c1a93(_0x2e1928)||_0x2e1928);return _0x2e1928;},re=(_0x321c1b,_0x243247)=>(_0x1e59a6,_0x53ca0d)=>_0x243247(_0x1e59a6,_0x53ca0d,_0x321c1b);let D=class extends _0x129f6f{constructor(_0x22642c,_0x34e7ad){const _0x52a166=_0x69509c;super(),this['_commandService']=_0x22642c,this['_menuManagerService']=_0x34e7ad,this[_0x52a166(0x23e)](),this[_0x52a166(0x1d4)]();}[_0x69509c(0x23e)](){[V]['forEach'](_0xd4e0d1=>{const _0x5339b1=_0x31b6;this[_0x5339b1(0x101)](this[_0x5339b1(0x226)]['registerCommand'](_0xd4e0d1));});}[_0x69509c(0x1d4)](){const _0x4404a3=_0x69509c;this['_menuManagerService'][_0x4404a3(0x16b)](dn);}};D=pn([re(0x0,_0x2f567e),re(0x1,_0x58faa0)],D);function _0x31b6(_0x17189b,_0x58417e){const _0x1819d6=_0x1819();return _0x31b6=function(_0x31b610,_0x1bdfff){_0x31b610=_0x31b610-0xe6;let _0x3346de=_0x1819d6[_0x31b610];return _0x3346de;},_0x31b6(_0x17189b,_0x58417e);}const Mn={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x69509c(0x14b),'failed':_0x69509c(0x17a),'retrying':_0x69509c(0x1bb),'unknown':_0x69509c(0x1b8),'unauthorized':_0x69509c(0x1c2),'sessionOccupied':_0x69509c(0x21e),'networkError':_0x69509c(0x1cf),'maxRetriesExceeded':_0x69509c(0x193),'clickToConnect':_0x69509c(0x110),'clickToConfigure':_0x69509c(0x1a0)},'mcpConfig':{'title':_0x69509c(0x109),'description':_0x69509c(0x1d9),'apiKey':_0x69509c(0xf8),'apiKeyPlaceholder':_0x69509c(0x13f),'apiKeyHint':_0x69509c(0x241),'enableAuth':_0x69509c(0x13a),'enableAuthHint':_0x69509c(0x1bf),'connectionInfo':_0x69509c(0x1ee),'mcpClientConfig':_0x69509c(0x1ee),'configInstructions':_0x69509c(0x122),'configStepTitle':_0x69509c(0x180),'configStep1':_0x69509c(0x164),'configStep2':_0x69509c(0x125),'configStep3':_0x69509c(0x1af),'sessionId':_0x69509c(0x234),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x69509c(0x1a9),'configParameters':_0x69509c(0x1b2),'maxRetries':_0x69509c(0x1ea),'save':_0x69509c(0xee),'saving':_0x69509c(0x1b7),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x69509c(0x1aa),'configSaved':_0x69509c(0x211),'configError':_0x69509c(0x13c),'apiApplyInfo':{'title':_0x69509c(0x1de),'description':_0x69509c(0x1fa),'univerAiLabel':_0x69509c(0x1df),'getStarted':_0x69509c(0x17b)},'validation':{'apiKeyRequired':_0x69509c(0x1ed),'apiKeyTooShort':_0x69509c(0x197),'invalidConfig':_0x69509c(0x1f7),'invalidApiKey':_0x69509c(0x1ce)},'connectionStatus':{'disconnected':_0x69509c(0x15f),'connecting':_0x69509c(0x19f),'connected':'Connected','failed':_0x69509c(0x208),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x69509c(0x115),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x69509c(0x151),'maxRetriesExceeded':_0x69509c(0xe6)}}},An={'mcpStatus':{'disconnected':_0x69509c(0xef),'connecting':_0x69509c(0x210),'connected':_0x69509c(0x185),'failed':_0x69509c(0x1fe),'retrying':'MCP\x20重连中...','unknown':'MCP\x20状态未知','unauthorized':_0x69509c(0x186),'sessionOccupied':_0x69509c(0x120),'networkError':_0x69509c(0x20a),'maxRetriesExceeded':_0x69509c(0x1f5),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x69509c(0x232)},'mcpConfig':{'title':_0x69509c(0xe7),'description':_0x69509c(0x1e7),'apiKey':_0x69509c(0x20d),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x69509c(0x1c4),'enableAuth':'启用身份验证','enableAuthHint':_0x69509c(0x207),'connectionInfo':_0x69509c(0x1e6),'mcpClientConfig':_0x69509c(0x1e6),'configInstructions':_0x69509c(0x1e4),'configStepTitle':'配置步骤:','configStep1':_0x69509c(0x227),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x69509c(0x1cc),'sessionId':_0x69509c(0x19b),'sessionIdDescription':_0x69509c(0xff),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':'配置参数:','maxRetries':'最大重试次数','save':_0x69509c(0x166),'saving':_0x69509c(0x19a),'note1':_0x69509c(0x170),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x69509c(0xf7),'configError':_0x69509c(0x119),'apiApplyInfo':{'title':_0x69509c(0x177),'description':_0x69509c(0x213),'univerAiLabel':_0x69509c(0x13d),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x69509c(0x215),'apiKeyTooShort':_0x69509c(0x18e),'invalidConfig':'配置无效','invalidApiKey':_0x69509c(0x24c)},'connectionStatus':{'disconnected':_0x69509c(0x1d1),'connecting':_0x69509c(0x112),'connected':_0x69509c(0x1f9),'failed':_0x69509c(0x10c),'retrying':_0x69509c(0xf1)},'connectionError':{'unauthorized':_0x69509c(0x16d),'sessionOccupied':_0x69509c(0x192),'networkError':_0x69509c(0xf4),'maxRetriesExceeded':_0x69509c(0x200)}}};var fn=Object[_0x69509c(0x1ae)],hn=Object[_0x69509c(0xe8)],Cn=(_0x54d11b,_0x33c172,_0x2ea874)=>_0x33c172 in _0x54d11b?fn(_0x54d11b,_0x33c172,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2ea874}):_0x54d11b[_0x33c172]=_0x2ea874,mn=(_0x55cef8,_0x31bd2b,_0x187fd7,_0x4fe62c)=>{const _0x214468=_0x69509c;for(var _0x500690=_0x4fe62c>0x1?void 0x0:_0x4fe62c?hn(_0x31bd2b,_0x187fd7):_0x31bd2b,_0x1766f6=_0x55cef8[_0x214468(0x1ec)]-0x1,_0x181873;_0x1766f6>=0x0;_0x1766f6--)(_0x181873=_0x55cef8[_0x1766f6])&&(_0x500690=_0x181873(_0x500690)||_0x500690);return _0x500690;},P=(_0x1d8857,_0x2c7f21)=>(_0x114aa6,_0x5163ca)=>_0x2c7f21(_0x114aa6,_0x5163ca,_0x1d8857),_n=(_0x546613,_0x5c32d3,_0x518f4f)=>Cn(_0x546613,_0x5c32d3+'',_0x518f4f);let j=class extends _0x1da912{constructor(_0x3a6cc7=ie,_0x5caf93,_0x470c8d,_0x1ba3b7,_0x1e216f,_0x66f5d6){const _0x2dc933=_0x69509c;super(),this[_0x2dc933(0x230)]=_0x3a6cc7,this[_0x2dc933(0x16a)]=_0x5caf93,this[_0x2dc933(0x194)]=_0x470c8d,this[_0x2dc933(0x1a1)]=_0x1ba3b7,this['_localStorageService']=_0x1e216f,this[_0x2dc933(0x105)]=_0x66f5d6;const {..._0xa3aa49}=_0x5c7826({},ie,this['_config']);this[_0x2dc933(0x194)][_0x2dc933(0x21f)](y,_0xa3aa49);}async[_0x69509c(0x20c)](){const _0x3c9b09=_0x69509c,_0x576233=[[O],[I],[D]];this['_injector'][_0x3c9b09(0x22a)](_0x519a30)||_0x576233[_0x3c9b09(0x184)]([_0x519a30,{'useClass':_0x2a611e}]),_0x576233[_0x3c9b09(0x132)](_0x4bc37b=>this[_0x3c9b09(0x16a)][_0x3c9b09(0x22c)](_0x4bc37b)),this[_0x3c9b09(0x16a)][_0x3c9b09(0x117)](O),this[_0x3c9b09(0x16a)][_0x3c9b09(0x117)](I),this[_0x3c9b09(0x16a)]['get'](D);}};_n(j,_0x69509c(0x1ac),_0x69509c(0x126)),j=mn([_0x1bb110(_0x97faec),P(0x1,_0x498260(_0x2824b0)),P(0x2,_0x2115ff),P(0x3,_0x4922e4),P(0x4,_0x1d32ad),P(0x5,_0x498260(_0x74fd5c))],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
|
-
const
|
|
1
|
+
function _0x35ab(_0x4806da,_0x10ac01){const _0x25df67=_0x25df();return _0x35ab=function(_0x35ab2b,_0x412623){_0x35ab2b=_0x35ab2b-0xf1;let _0x4e933d=_0x25df67[_0x35ab2b];return _0x4e933d;},_0x35ab(_0x4806da,_0x10ac01);}const _0x43e8d6=_0x35ab;(function(_0x210056,_0x8721d4){const _0x150721=_0x35ab,_0x1bd2c0=_0x210056();while(!![]){try{const _0x179528=-parseInt(_0x150721(0x11a))/0x1*(parseInt(_0x150721(0xfb))/0x2)+-parseInt(_0x150721(0xf4))/0x3+-parseInt(_0x150721(0x10f))/0x4+-parseInt(_0x150721(0xf2))/0x5+parseInt(_0x150721(0x10a))/0x6+-parseInt(_0x150721(0x11c))/0x7*(-parseInt(_0x150721(0x109))/0x8)+parseInt(_0x150721(0xfa))/0x9;if(_0x179528===_0x8721d4)break;else _0x1bd2c0['push'](_0x1bd2c0['shift']());}catch(_0x41e4b6){_0x1bd2c0['push'](_0x1bd2c0['shift']());}}}(_0x25df,0x33f3c));const e={'mcpStatus':{'disconnected':_0x43e8d6(0x100),'connecting':_0x43e8d6(0x115),'connected':_0x43e8d6(0xf3),'failed':'MCP\x20Connection\x20Failed','retrying':_0x43e8d6(0xf1),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x43e8d6(0x106),'sessionOccupied':_0x43e8d6(0x10e),'networkError':_0x43e8d6(0x101),'maxRetriesExceeded':_0x43e8d6(0x10c),'clickToConnect':_0x43e8d6(0xf6),'clickToConfigure':_0x43e8d6(0x108)},'mcpConfig':{'title':_0x43e8d6(0xf8),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x43e8d6(0x10b),'apiKeyPlaceholder':_0x43e8d6(0x104),'apiKeyHint':_0x43e8d6(0x103),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x43e8d6(0x119),'configInstructions':_0x43e8d6(0x114),'configStepTitle':_0x43e8d6(0xf9),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x43e8d6(0x116),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x43e8d6(0x11b),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x43e8d6(0xfc),'configParameters':_0x43e8d6(0x111),'maxRetries':_0x43e8d6(0x112),'save':'Save\x20Configuration','saving':_0x43e8d6(0xff),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x43e8d6(0x107),'apiApplyInfo':{'title':_0x43e8d6(0xf7),'description':_0x43e8d6(0xfe),'univerAiLabel':_0x43e8d6(0x10d),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x43e8d6(0x102),'apiKeyTooShort':_0x43e8d6(0x11d),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x43e8d6(0x118)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x43e8d6(0x105),'connected':_0x43e8d6(0x110),'failed':_0x43e8d6(0x117),'retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x43e8d6(0x113),'networkError':_0x43e8d6(0xfd),'maxRetriesExceeded':_0x43e8d6(0xf5)}}},n=e;export{n as default};function _0x25df(){const _0x492029=['Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Connection\x20Failed','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Client\x20Configuration','10ghhBMH','Session\x20ID','17619SvBGuA','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Retrying...','608935rQsTOv','MCP\x20Connected','674523WAlsOQ','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Click\x20to\x20connect\x20MCP','What\x20is\x20API\x20Key?','MCP\x20Configuration','Configuration\x20Steps:','2422215huBWxm','21572BpshmE','API\x20key\x20with\x20Bearer\x20prefix.','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Saving...','MCP\x20Disconnected','MCP:\x20Network\x20Error','API\x20key\x20is\x20required','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Enter\x20your\x20API\x20key','Connecting...','MCP:\x20Unauthorized','Failed\x20to\x20save\x20configuration','Click\x20to\x20configure\x20MCP','696toAjbw','2468676aPyiVa','API\x20Key','MCP:\x20Max\x20Retries\x20Exceeded','Univer\x20AI\x20Console','MCP:\x20Session\x20ID\x20Occupied','929104adujRO','Connected','Configuration\x20Parameters:','Max\x20Retries','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Connecting...'];_0x25df=function(){return _0x492029;};return _0x25df();}
|