@univerjs-pro/mcp-ui 0.15.2-insiders.20260119-edc718c → 0.15.2-insiders.20260122-b1556b1
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 +6 -6
package/lib/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5d4c(){const _0xd5e0ef=['연결\x20실패','저장\x20중...','MCP\x20설정','MCP\x20알\x20수\x20없는\x20상태','MCP\x20연결\x20끊김','MCP\x20연결됨','고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','Bearer\x20접두사가\x20있는\x20API\x20키.','1514343joFwZG','설정이\x20성공적으로\x20저장되었습니다','보안\x20연결을\x20위해\x20인증\x20활성화','설정\x20저장','API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','4901334MwjBVK','재시도\x20중...','클릭하여\x20MCP\x20연결','설정\x20변경\x20사항은\x20즉시\x20적용됩니다','MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','몇\x20초\x20만에\x20API\x20키\x20발급받기','4JIhmAd','인증\x20활성화','연결\x20끊김','API\x20키를\x20입력하세요','MCP:\x20네트워크\x20오류','설정\x20매개변수:','MCP\x20연결\x20실패','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','연결\x20중...','MCP:\x20인증되지\x20않음','MCP\x20연결\x20중...','인증\x20실패.\x20API\x20키를\x20확인하세요','MCP\x20클라이언트\x20설정','설정\x20저장\x20실패','920883ZaNrlS','API\x20키는\x2010자\x20이상이어야\x20합니다','MCP:\x20세션\x20ID\x20사용\x20중','11814733rtWISs','유효하지\x20않은\x20설정','최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요','17476088UZIXdJ','클릭하여\x20MCP\x20설정','API\x20키는\x20필수입니다','최대\x20재시도\x20횟수','세션\x20ID','아래\x20JSON\x20설정\x20복사','6935185LbsKmo','MCP\x20재시도\x20중...','API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요','설정\x20단계:','1008242pfeoLs','API\x20키란\x20무엇인가요?'];_0x5d4c=function(){return _0xd5e0ef;};return _0x5d4c();}const _0x4395e1=_0x2b5b;(function(_0x1ab494,_0x5dcba6){const _0x32004e=_0x2b5b,_0x282807=_0x1ab494();while(!![]){try{const _0x4bfa82=parseInt(_0x32004e(0xce))/0x1+parseInt(_0x32004e(0xaa))/0x2+-parseInt(_0x32004e(0xb4))/0x3*(-parseInt(_0x32004e(0xbf))/0x4)+-parseInt(_0x32004e(0xa4))/0x5+parseInt(_0x32004e(0xb9))/0x6+parseInt(_0x32004e(0xd1))/0x7+-parseInt(_0x32004e(0xd4))/0x8;if(_0x4bfa82===_0x5dcba6)break;else _0x282807['push'](_0x282807['shift']());}catch(_0x1554fb){_0x282807['push'](_0x282807['shift']());}}}(_0x5d4c,0xd2ae1));const e={'mcpStatus':{'disconnected':_0x4395e1(0xb0),'connecting':_0x4395e1(0xca),'connected':_0x4395e1(0xb1),'failed':_0x4395e1(0xc5),'retrying':_0x4395e1(0xa5),'unknown':_0x4395e1(0xaf),'unauthorized':_0x4395e1(0xc9),'sessionOccupied':_0x4395e1(0xd0),'networkError':_0x4395e1(0xc3),'maxRetriesExceeded':'MCP:\x20최대\x20재시도\x20횟수\x20초과','clickToConnect':_0x4395e1(0xbb),'clickToConfigure':_0x4395e1(0xd5)},'mcpConfig':{'title':_0x4395e1(0xae),'description':_0x4395e1(0xa7),'apiKey':'API\x20키','apiKeyPlaceholder':_0x4395e1(0xc2),'apiKeyHint':_0x4395e1(0xb8),'enableAuth':_0x4395e1(0xc0),'enableAuthHint':_0x4395e1(0xb6),'connectionInfo':_0x4395e1(0xcc),'mcpClientConfig':_0x4395e1(0xcc),'configInstructions':_0x4395e1(0xc7),'configStepTitle':_0x4395e1(0xa9),'configStep1':_0x4395e1(0xa3),'configStep2':_0x4395e1(0xc6),'configStep3':_0x4395e1(0xbd),'sessionId':_0x4395e1(0xa2),'sessionIdDescription':_0x4395e1(0xb2),'authorizationDescription':_0x4395e1(0xb3),'configParameters':_0x4395e1(0xc4),'maxRetries':_0x4395e1(0xa1),'save':_0x4395e1(0xb7),'saving':_0x4395e1(0xad),'note1':_0x4395e1(0xbc),'note2':_0x4395e1(0xa6),'configSaved':_0x4395e1(0xb5),'configError':_0x4395e1(0xcd),'apiApplyInfo':{'title':_0x4395e1(0xab),'description':'API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','univerAiLabel':'Univer\x20AI\x20콘솔','getStarted':_0x4395e1(0xbe)},'validation':{'apiKeyRequired':_0x4395e1(0xd6),'apiKeyTooShort':_0x4395e1(0xcf),'invalidConfig':_0x4395e1(0xd2),'invalidApiKey':_0x4395e1(0xa8)},'connectionStatus':{'disconnected':_0x4395e1(0xc1),'connecting':_0x4395e1(0xc8),'connected':'연결됨','failed':_0x4395e1(0xac),'retrying':_0x4395e1(0xba)},'connectionError':{'unauthorized':_0x4395e1(0xcb),'sessionOccupied':'세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','networkError':'네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','maxRetriesExceeded':_0x4395e1(0xd3)}}};function _0x2b5b(_0x5d5097,_0x14248d){_0x5d5097=_0x5d5097-0xa1;const _0x5d4c33=_0x5d4c();let _0x2b5bdf=_0x5d4c33[_0x5d5097];return _0x2b5bdf;}export{e as default};
|
package/lib/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x553c4b=_0x3340;function _0x3340(_0x27abd7,_0xf2d0f){_0x27abd7=_0x27abd7-0x87;const _0x1ad15a=_0x1ad1();let _0x334082=_0x1ad15a[_0x27abd7];return _0x334082;}(function(_0x124fec,_0x454c02){const _0x31c09f=_0x3340,_0x4f9630=_0x124fec();while(!![]){try{const _0x3fe61e=parseInt(_0x31c09f(0x8e))/0x1*(parseInt(_0x31c09f(0x9f))/0x2)+-parseInt(_0x31c09f(0x8d))/0x3+parseInt(_0x31c09f(0xa6))/0x4*(parseInt(_0x31c09f(0x98))/0x5)+parseInt(_0x31c09f(0x94))/0x6*(parseInt(_0x31c09f(0xa5))/0x7)+parseInt(_0x31c09f(0xad))/0x8*(-parseInt(_0x31c09f(0x9b))/0x9)+-parseInt(_0x31c09f(0x93))/0xa*(-parseInt(_0x31c09f(0xba))/0xb)+parseInt(_0x31c09f(0x8b))/0xc*(parseInt(_0x31c09f(0xa1))/0xd);if(_0x3fe61e===_0x454c02)break;else _0x4f9630['push'](_0x4f9630['shift']());}catch(_0x1772db){_0x4f9630['push'](_0x4f9630['shift']());}}}(_0x1ad1,0x4897c));function _0x1ad1(){const _0x5e9b87=['Save\x20Configuration','Max\x20Retries','Invalid\x20configuration','MCP:\x20Unauthorized','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','4792FrKpRR','MCP\x20Disconnected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Unknown\x20Status','MCP\x20Connected','Enter\x20your\x20API\x20key','Configuration\x20saved\x20successfully','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Connection\x20Failed','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configuration\x20Steps:','11ltkaoX','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configuration\x20Parameters:','Retrying...','MCP\x20Client\x20Configuration','83388LXqYLf','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','415740XVSorq','19147wtTXEz','Click\x20to\x20configure\x20MCP','Connecting...','MCP:\x20Session\x20ID\x20Occupied','Click\x20to\x20connect\x20MCP','1438550laOhOf','1826376vUjisz','MCP:\x20Max\x20Retries\x20Exceeded','What\x20is\x20API\x20Key?','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','5uPClUp','MCP\x20Configuration','Connected','8577yEgFQt','Copy\x20the\x20JSON\x20configuration\x20below','API\x20Key','Get\x20your\x20API\x20key\x20in\x20seconds','6cpgpBe','Univer\x20AI\x20Console','832MwKAIj','MCP:\x20Network\x20Error','Enable\x20Authentication','Session\x20ID','7FVGzEU','225356RhtwyS','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.'];_0x1ad1=function(){return _0x5e9b87;};return _0x1ad1();}const e={'mcpStatus':{'disconnected':_0x553c4b(0xae),'connecting':'MCP\x20Connecting...','connected':_0x553c4b(0xb3),'failed':_0x553c4b(0xb7),'retrying':'MCP\x20Retrying...','unknown':_0x553c4b(0xb2),'unauthorized':_0x553c4b(0xab),'sessionOccupied':_0x553c4b(0x91),'networkError':_0x553c4b(0xa2),'maxRetriesExceeded':_0x553c4b(0x95),'clickToConnect':_0x553c4b(0x92),'clickToConfigure':_0x553c4b(0x8f)},'mcpConfig':{'title':_0x553c4b(0x99),'description':_0x553c4b(0x97),'apiKey':_0x553c4b(0x9d),'apiKeyPlaceholder':_0x553c4b(0xb4),'apiKeyHint':_0x553c4b(0xb0),'enableAuth':_0x553c4b(0xa3),'enableAuthHint':_0x553c4b(0xb1),'connectionInfo':_0x553c4b(0x8a),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x553c4b(0xb9),'configStep1':_0x553c4b(0x9c),'configStep2':_0x553c4b(0xac),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x553c4b(0xa4),'sessionIdDescription':_0x553c4b(0xb6),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x553c4b(0x88),'maxRetries':_0x553c4b(0xa9),'save':_0x553c4b(0xa8),'saving':'Saving...','note1':_0x553c4b(0x87),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x553c4b(0xb5),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x553c4b(0x96),'description':_0x553c4b(0xa7),'univerAiLabel':_0x553c4b(0xa0),'getStarted':_0x553c4b(0x9e)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x553c4b(0xb8),'invalidConfig':_0x553c4b(0xaa),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x553c4b(0x90),'connected':_0x553c4b(0x9a),'failed':'Connection\x20Failed','retrying':_0x553c4b(0x89)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x553c4b(0xaf),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x553c4b(0x8c)}}},n=e;export{n as default};
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x2331(_0x6e0e4b,_0x46ad34){_0x6e0e4b=_0x6e0e4b-0xaf;const _0x58f2f9=_0x58f2();let _0x2331c6=_0x58f2f9[_0x6e0e4b];return _0x2331c6;}const _0x2cfdc5=_0x2331;(function(_0x570b65,_0x32548e){const _0x50a2a3=_0x2331,_0xd36708=_0x570b65();while(!![]){try{const _0x303943=parseInt(_0x50a2a3(0xc3))/0x1*(-parseInt(_0x50a2a3(0xb6))/0x2)+-parseInt(_0x50a2a3(0xb0))/0x3+-parseInt(_0x50a2a3(0xd6))/0x4*(parseInt(_0x50a2a3(0xb2))/0x5)+-parseInt(_0x50a2a3(0xdd))/0x6*(parseInt(_0x50a2a3(0xdf))/0x7)+-parseInt(_0x50a2a3(0xd4))/0x8+-parseInt(_0x50a2a3(0xc4))/0x9*(parseInt(_0x50a2a3(0xda))/0xa)+-parseInt(_0x50a2a3(0xc9))/0xb*(-parseInt(_0x50a2a3(0xaf))/0xc);if(_0x303943===_0x32548e)break;else _0xd36708['push'](_0xd36708['shift']());}catch(_0x36da86){_0xd36708['push'](_0xd36708['shift']());}}}(_0x58f2,0xdfe10));function _0x58f2(){const _0x5047a2=['MCP:\x20Không\x20được\x20phép','MCP\x20Đã\x20kết\x20nối','Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','2237056yRNCJL','Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','12fScEss','MCP\x20Đang\x20thử\x20lại...','Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa.\x20Vui\x20lòng\x20thử\x20lại\x20sau','Nhận\x20khóa\x20API\x20của\x20bạn\x20trong\x20vài\x20giây','70710WXSNFI','Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','Cấu\x20hình\x20không\x20hợp\x20lệ','3348VzUZeK','Cấu\x20hình\x20MCP','20461nnNCYB','ID\x20phiên','2868972sEdgei','3297084ACloSx','Đang\x20lưu...','1815835aUnokv','Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20tự','Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','82bUDaVm','Nhấp\x20để\x20cấu\x20hình\x20MCP','Định\x20danh\x20phiên\x20duy\x20nhất.\x20Nếu\x20bạn\x20mở\x20nhiều\x20phiên\x20bản\x20Univer,\x20mỗi\x20phiên\x20bản\x20phải\x20sử\x20dụng\x20một\x20session_id\x20khác\x20nhau\x20để\x20tránh\x20xung\x20đột\x20kết\x20nối.','Khóa\x20API\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không','Nhấp\x20để\x20kết\x20nối\x20MCP','MCP\x20Trạng\x20thái\x20không\x20xác\x20định','Tham\x20số\x20cấu\x20hình:','Khóa\x20API\x20là\x20gì?','Thêm\x20cấu\x20hình\x20vào\x20tệp\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn','Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính','Các\x20bước\x20cấu\x20hình:','MCP:\x20Lỗi\x20mạng','MCP\x20Đang\x20kết\x20nối...','42793JUFgyQ','207yBUgCh','MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng','Đã\x20kết\x20nối','Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','Lỗi\x20kết\x20nối\x20mạng.\x20Vui\x20lòng\x20kiểm\x20tra\x20kết\x20nối\x20internet\x20của\x20bạn','319AztvKM','Bật\x20xác\x20thực','Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này','Bảng\x20điều\x20khiển\x20Univer\x20AI','Cấu\x20hình\x20máy\x20khách\x20MCP','Nhập\x20khóa\x20API\x20của\x20bạn','Đang\x20thử\x20lại...','Yêu\x20cầu\x20khóa\x20API'];_0x58f2=function(){return _0x5047a2;};return _0x58f2();}const n={'mcpStatus':{'disconnected':'MCP\x20Đã\x20ngắt\x20kết\x20nối','connecting':_0x2cfdc5(0xc2),'connected':_0x2cfdc5(0xd2),'failed':'MCP\x20Kết\x20nối\x20thất\x20bại','retrying':_0x2cfdc5(0xd7),'unknown':_0x2cfdc5(0xbb),'unauthorized':_0x2cfdc5(0xd1),'sessionOccupied':_0x2cfdc5(0xc5),'networkError':_0x2cfdc5(0xc1),'maxRetriesExceeded':_0x2cfdc5(0xb5),'clickToConnect':_0x2cfdc5(0xba),'clickToConfigure':_0x2cfdc5(0xb7)},'mcpConfig':{'title':_0x2cfdc5(0xde),'description':_0x2cfdc5(0xbf),'apiKey':'Khóa\x20API','apiKeyPlaceholder':_0x2cfdc5(0xce),'apiKeyHint':_0x2cfdc5(0xcb),'enableAuth':_0x2cfdc5(0xca),'enableAuthHint':_0x2cfdc5(0xd3),'connectionInfo':_0x2cfdc5(0xcd),'mcpClientConfig':'Cấu\x20hình\x20máy\x20khách\x20MCP','configInstructions':'Thêm\x20cấu\x20hình\x20sau\x20vào\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn:','configStepTitle':_0x2cfdc5(0xc0),'configStep1':'Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','configStep2':_0x2cfdc5(0xbe),'configStep3':'Khởi\x20động\x20lại\x20máy\x20khách\x20MCP\x20của\x20bạn\x20để\x20áp\x20dụng\x20cấu\x20hình','sessionId':_0x2cfdc5(0xe0),'sessionIdDescription':_0x2cfdc5(0xb8),'authorizationDescription':_0x2cfdc5(0xdb),'configParameters':_0x2cfdc5(0xbc),'maxRetries':'Số\x20lần\x20thử\x20lại\x20tối\x20đa','save':'Lưu\x20cấu\x20hình','saving':_0x2cfdc5(0xb1),'note1':_0x2cfdc5(0xb4),'note2':'Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','configSaved':_0x2cfdc5(0xd5),'configError':'Lưu\x20cấu\x20hình\x20thất\x20bại','apiApplyInfo':{'title':_0x2cfdc5(0xbd),'description':'Khóa\x20API\x20kết\x20nối\x20bạn\x20với\x20Máy\x20chủ\x20Univer\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính.\x20Nhận\x20khóa\x20API\x20của\x20bạn\x20từ\x20bảng\x20điều\x20khiển\x20của\x20chúng\x20tôi\x20để\x20bắt\x20đầu.','univerAiLabel':_0x2cfdc5(0xcc),'getStarted':_0x2cfdc5(0xd9)},'validation':{'apiKeyRequired':_0x2cfdc5(0xd0),'apiKeyTooShort':_0x2cfdc5(0xb3),'invalidConfig':_0x2cfdc5(0xdc),'invalidApiKey':_0x2cfdc5(0xb9)},'connectionStatus':{'disconnected':'Đã\x20ngắt\x20kết\x20nối','connecting':'Đang\x20kết\x20nối...','connected':_0x2cfdc5(0xc6),'failed':'Kết\x20nối\x20thất\x20bại','retrying':_0x2cfdc5(0xcf)},'connectionError':{'unauthorized':'Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn','sessionOccupied':_0x2cfdc5(0xc7),'networkError':_0x2cfdc5(0xc8),'maxRetriesExceeded':_0x2cfdc5(0xd8)}}};export{n as default};
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x266990=_0x145e;(function(_0x5c5453,_0xf84ed1){const _0x5a54f0=_0x145e,_0xdbea4b=_0x5c5453();while(!![]){try{const _0x4a7bb0=parseInt(_0x5a54f0(0x9b))/0x1+-parseInt(_0x5a54f0(0xa6))/0x2*(-parseInt(_0x5a54f0(0xa8))/0x3)+parseInt(_0x5a54f0(0x80))/0x4*(parseInt(_0x5a54f0(0x91))/0x5)+-parseInt(_0x5a54f0(0xab))/0x6*(-parseInt(_0x5a54f0(0x85))/0x7)+-parseInt(_0x5a54f0(0x96))/0x8+-parseInt(_0x5a54f0(0xac))/0x9+-parseInt(_0x5a54f0(0x78))/0xa*(parseInt(_0x5a54f0(0x9d))/0xb);if(_0x4a7bb0===_0xf84ed1)break;else _0xdbea4b['push'](_0xdbea4b['shift']());}catch(_0x334406){_0xdbea4b['push'](_0xdbea4b['shift']());}}}(_0x59d1,0x6caf5));const e={'mcpStatus':{'disconnected':_0x266990(0x87),'connecting':_0x266990(0xa9),'connected':_0x266990(0x83),'failed':_0x266990(0x99),'retrying':_0x266990(0x81),'unknown':_0x266990(0x86),'unauthorized':_0x266990(0x8a),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x266990(0x8f),'clickToConnect':_0x266990(0x90),'clickToConfigure':_0x266990(0x92)},'mcpConfig':{'title':_0x266990(0xa0),'description':_0x266990(0x7f),'apiKey':'API\x20密钥','apiKeyPlaceholder':_0x266990(0x7b),'apiKeyHint':_0x266990(0x8c),'enableAuth':_0x266990(0x7e),'enableAuthHint':_0x266990(0x84),'connectionInfo':_0x266990(0x93),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x266990(0xa3),'configStep1':_0x266990(0x97),'configStep2':_0x266990(0x77),'configStep3':_0x266990(0x88),'sessionId':_0x266990(0x7a),'sessionIdDescription':_0x266990(0x8e),'authorizationDescription':_0x266990(0xa2),'configParameters':_0x266990(0x76),'maxRetries':_0x266990(0xaa),'save':_0x266990(0x8d),'saving':'保存中...','note1':_0x266990(0xa5),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x266990(0x95),'configError':_0x266990(0x94),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x266990(0x8b),'univerAiLabel':_0x266990(0xa7),'getStarted':_0x266990(0x98)},'validation':{'apiKeyRequired':_0x266990(0xa4),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x266990(0x9a),'invalidApiKey':_0x266990(0x89)},'connectionStatus':{'disconnected':_0x266990(0xa1),'connecting':_0x266990(0x82),'connected':_0x266990(0x79),'failed':_0x266990(0x7d),'retrying':_0x266990(0x7c)},'connectionError':{'unauthorized':_0x266990(0x9c),'sessionOccupied':_0x266990(0x9e),'networkError':_0x266990(0x9f),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};export{e as default};function _0x145e(_0x5b0287,_0x55cbcf){_0x5b0287=_0x5b0287-0x76;const _0x59d188=_0x59d1();let _0x145eb8=_0x59d188[_0x5b0287];return _0x145eb8;}function _0x59d1(){const _0x4f1987=['连接中...','MCP\x20已连接','启用身份验证以获得安全连接','65296VLdPWh','MCP\x20状态未知','MCP\x20已断开','重启您的\x20MCP\x20客户端以使配置生效','API\x20密钥无效,请检查密钥是否正确','MCP:\x20未授权','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','您的\x20API\x20密钥将在此浏览器中本地存储','保存配置','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','MCP:\x20超出最大重试次数','点击连接\x20MCP','24425HwHFaF','点击配置\x20MCP','MCP\x20客户端配置','配置保存失败','配置保存成功','2930344fZPjMN','复制以下\x20JSON\x20配置','几秒钟内获取您的\x20API\x20密钥','MCP\x20连接失败','配置无效','428924PGFidF','权限验证失败,请检查您的\x20API\x20密钥','2629NUiUXN','会话\x20ID\x20已被占用,请稍后再试','网络连接错误,请检查您的网络连接','MCP\x20配置','未连接','带有\x20Bearer\x20前缀的\x20API\x20密钥。','配置步骤:','API\x20密钥不能为空','配置更改将立即生效','20fxUXfR','Univer\x20AI\x20控制台','54975uEaCGV','MCP\x20连接中...','最大重试次数','276RcSnwh','1708965LMtSXw','配置参数:','将配置添加到您的\x20MCP\x20客户端设置文件中','23540WrdFWy','已连接','会话ID','请输入您的\x20API\x20密钥','重连中...','连接失败','启用身份验证','配置\x20MCP\x20使用\x20AI\x20操作电子表格','428DlQfIc','MCP\x20重连中...'];_0x59d1=function(){return _0x4f1987;};return _0x59d1();}
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x40a4(_0x4c75c3,_0x47f746){_0x4c75c3=_0x4c75c3-0xf4;const _0x18832c=_0x1883();let _0x40a4ef=_0x18832c[_0x4c75c3];return _0x40a4ef;}const _0x532545=_0x40a4;function _0x1883(){const _0x4c07ea=['Invalid\x20configuration','MCP\x20Unknown\x20Status','87ftfwjr','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','2111445ZXpkjZ','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Connecting...','API\x20Key','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Connection\x20Failed','Save\x20Configuration','MCP:\x20Session\x20ID\x20Occupied','Configuration\x20Parameters:','4160XyyYBQ','Connection\x20Failed','3332216DMjUYs','5573160ulCwbW','69835cUyXsL','API\x20key\x20is\x20required','MCP\x20Client\x20Configuration','MCP\x20Retrying...','MCP\x20Configuration','Configuration\x20Steps:','MCP:\x20Network\x20Error','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Disconnected','Connected','Session\x20ID','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Connected','Enable\x20Authentication','52228ZHguCy','Enter\x20your\x20API\x20key','Copy\x20the\x20JSON\x20configuration\x20below','Retrying...','20025HleQJU','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','8372VwtIdA','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Univer\x20AI\x20Console','270suRRMj','MCP:\x20Unauthorized','MCP\x20Connecting...','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configuration\x20saved\x20successfully','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection'];_0x1883=function(){return _0x4c07ea;};return _0x1883();}(function(_0x1d41bc,_0x450872){const _0x275cf3=_0x40a4,_0x5752fb=_0x1d41bc();while(!![]){try{const _0xca5d29=parseInt(_0x275cf3(0x10c))/0x1+parseInt(_0x275cf3(0x106))/0x2*(parseInt(_0x275cf3(0x117))/0x3)+-parseInt(_0x275cf3(0xf6))/0x4+parseInt(_0x275cf3(0xf8))/0x5*(parseInt(_0x275cf3(0x10f))/0x6)+-parseInt(_0x275cf3(0x119))/0x7+-parseInt(_0x275cf3(0xf7))/0x8+-parseInt(_0x275cf3(0x10a))/0x9*(-parseInt(_0x275cf3(0xf4))/0xa);if(_0xca5d29===_0x450872)break;else _0x5752fb['push'](_0x5752fb['shift']());}catch(_0x3d67ae){_0x5752fb['push'](_0x5752fb['shift']());}}}(_0x1883,0x7740b));const e={'mcpStatus':{'disconnected':_0x532545(0x100),'connecting':_0x532545(0x111),'connected':_0x532545(0x104),'failed':_0x532545(0x11f),'retrying':_0x532545(0xfb),'unknown':_0x532545(0x116),'unauthorized':_0x532545(0x110),'sessionOccupied':_0x532545(0x121),'networkError':_0x532545(0xfe),'maxRetriesExceeded':_0x532545(0x11e),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x532545(0xfc),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x532545(0x11c),'apiKeyPlaceholder':_0x532545(0x107),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x532545(0x105),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x532545(0xfa),'configInstructions':_0x532545(0x10d),'configStepTitle':_0x532545(0xfd),'configStep1':_0x532545(0x108),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x532545(0x102),'sessionIdDescription':_0x532545(0x118),'authorizationDescription':_0x532545(0x103),'configParameters':_0x532545(0x122),'maxRetries':'Max\x20Retries','save':_0x532545(0x120),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x532545(0xff),'configSaved':_0x532545(0x113),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x532545(0x10e),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x532545(0xf9),'apiKeyTooShort':_0x532545(0x10b),'invalidConfig':_0x532545(0x115),'invalidApiKey':_0x532545(0x11d)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x532545(0x11b),'connected':_0x532545(0x101),'failed':_0x532545(0xf5),'retrying':_0x532545(0x109)},'connectionError':{'unauthorized':_0x532545(0x11a),'sessionOccupied':_0x532545(0x112),'networkError':_0x532545(0x114),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x19b6(){const _0x44344d=['Copy\x20the\x20JSON\x20configuration\x20below','MCPConnectionStatus','univer-text-sm\x20univer-font-medium','Saving...','MCP\x20Unknown\x20Status','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','connectionError$','children','几秒钟内获取您的\x20API\x20密钥','entries','带有\x20Bearer\x20前缀的\x20API\x20密钥。','react','配置步骤:','API\x20密钥不能为空','@univerjs/network','UniverUi','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','tag','UNAUTHORIZED','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','mcpConfig.authorizationDescription','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','__setCustomHeaders','text','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','show','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Configuration','mcpConfig.apiKeyPlaceholder','_validateConfig','includes','_injector','setConfig','Authorization:','univer-flex\x20univer-items-start\x20univer-gap-2','\x20-\x20','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','getItem','zhCN','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Univer\x20AI\x20Console','16sNyojA','on-line-icon','mcpConfig.apiApplyInfo.univerAiLabel','univer-text-red-500','DISCONNECTED','Disconnected','register','univer.plus','What\x20is\x20API\x20Key?','toStringTag','HEADER_MENU','xlink:href','get','object','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','mcpConfig.saving','MCP\x20Connection\x20Failed','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','mcpStatus.maxRetriesExceeded','保存配置','fill','_componentManager','jsx','您的\x20API\x20密钥安全存储在本地存储中','<API_KEY>','span','mcpConfig.validation.apiKeyRequired','_initStatusComponent','univer-bg-gray-500','MCP:\x20网络错误','mcp.apiKey','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','CONNECTING','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','off-line-icon_clip0_910_343','svg','@univerjs/ui','enUS','useState','amd','MessageType','mcpConfig.note2','BuiltInUIPart','请输入您的\x20API\x20密钥','重启您的\x20MCP\x20客户端以使配置生效','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','univer-text-blue-600','MCPConnectionController','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','subscribeConfigValue$','univer-space-y-2','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','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','<SESSION_ID>','mcpStatus.clickToConfigure','univer-text-sm\x20univer-text-gray-500','getConfig','Connecting...','div','OpenMCPConfigPanelCommand','_initAutoConnect','mcpConfig.configParameters','_commandService','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','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-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','MCPConfigUIController','round','_config$','mcpStatus.connecting','0\x200\x2016\x2016','validateApiKey','React','univer-flex\x20univer-gap-3','getCurrentConfig','_menuManagerService','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','MCP_UI_PLUGIN','MCP:\x20Session\x20ID\x20Occupied','NETWORK_ERROR','MCP\x20Disconnected','_registerComponent','Retrying...','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','MCP\x20Connected','UniverMCPPlugin','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','mcpConfig.connectionError.networkError','ISocketService','配置参数:','none','Success','idSuffix','会话ID','on-line-icon_clip0_910_349','mcpConfig.configStep2','MCP\x20Connecting...','univer_session_id:','BUTTON','univer-min-w-0\x20univer-flex-1','ILogService','_localeService','mcpConfig.configStep1','将以下配置添加到您的\x20MCP\x20客户端设置中:','172HvRbDl','mcpConfig.validation.invalidApiKey','button','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','mcpConfig.connectionError.unauthorized','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','_configService','配置更改将立即生效','mcp-ui.command.openConfigPanel','https://console.univer.plus','next','http://www.w3.org/2000/svg','UniverDesign','url(#on-line-icon_clip0_910_349)','M0\x200H16V16H0z','univer-bg-red-500','mcpConfig.connectionStatus.connected','连接失败','NONE','random','http','subscribe','UniverMCPUIPlugin','IConfigService','Click\x20to\x20configure\x20MCP','function','univerjs-icon\x20univerjs-icon-','Univer\x20AI\x20控制台','1489ZhutqB','univer-flex\x20univer-items-center','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','点击配置\x20MCP','mcpConfig.validation.apiKeyTooShort','_handleConfigure','close','Connected','mcpConfig.connectionStatus.failed','ICommandService','MCP:\x20Network\x20Error','API\x20密钥无效,请检查密钥是否正确','https://console.univer.ai','mcpConfig.configSaved','MCP\x20Client\x20Configuration','Configuration\x20Notes:','univer-flex\x20univer-items-start\x20univer-gap-3','mcpConfig.connectionError.maxRetriesExceeded','_mcpConnectionController','LocaleService','配置无效','MCPConnectionUIController','univer-text-gray-500','error','Max\x20Retries','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univer-mr-2\x20univer-flex\x20univer-text-xl','univer-size-2\x20univer-rounded-full','已连接','1162134jsKeCK','jsxs','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','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','_loadStoredApiKey','current','showDeveloperTools','push','forwardRef','isValid','MAX_RETRIES_EXCEEDED','univer-text-xs\x20univer-text-gray-600','845190yJTCrk','_mcpCoreConfig$','MCPConfigPanel','univer-bg-blue-500','forEach','mcpConfig.save','univer-text-green-500','API\x20密钥','UniverProMcpUi','OnLineIcon','defs','重连中...','IMessageService','length','API\x20密钥长度至少需要\x2010\x20位','UniverIcon','_initializeMenus','path','WebSocketService','HelpIcon','_apiKey$','Bearer\x20','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','IDialogService','UniverProMcp','off','RibbonStartGroup','useObservable','MCP\x20状态未知','1em','_initConfigSync','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','Error','API\x20Key','将配置添加到您的\x20MCP\x20客户端设置文件中','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP_PLUGIN_CONFIG_KEY','_connectionController','useCallback','univer.ai','COMMAND','MCP\x20重连中...','Injector','@univerjs/design','Enable\x20Authentication','API\x20key\x20is\x20required','mcpStatus.retrying','点击连接\x20MCP','map','Module','disposeWithMe','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','check-mark-icon','url(#$1','11977pzYDIa','getOwnPropertyDescriptor','MenuItemType','Configuration\x20saved\x20successfully','defineProperty','配置\x20MCP\x20使用\x20AI\x20操作电子表格','mcpConfig.connectionStatus.retrying','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','showConfigPanel','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','url(#off-line-icon_clip0_910_343)','clipPath','Get\x20your\x20API\x20key\x20in\x20seconds','univer-flex\x20univer-flex-wrap\x20univer-gap-2','MCP\x20配置','univer-bg-green-500','mcpConfig.apiApplyInfo.title','Enable\x20authentication\x20for\x20secure\x20connections','mcpStatus.unauthorized','univer-text-xs\x20univer-text-gray-500','mcpConfig.configStepTitle','@univerjs/core','_messageService','mcpStatus.disconnected','4DxPMXx','_handleConfigSave','MCP:\x20未授权','1574379IESSSR','apiKey','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','权限验证失败,请检查您的\x20API\x20密钥','MenuIcon','https://mcp.univer.ai/mcp/?univer_session_id=','mcpConfig.description','createElement','mcpConfig.configInstructions','CONNECTED','ILocalStorageService','toString','MCP:\x20超出最大重试次数','clsx','Invalid\x20configuration','连接中...','pre','网络连接错误,请检查您的网络连接','启用身份验证以获得安全连接','white','add','mcpStatus.sessionOccupied','errorMessage','MCPUIMenuController','_uiPartsService','IUIPartsService','trim','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','mcpConfig.apiApplyInfo.description','_loading$','MCP\x20连接中...','defIds','mask','mcpServerUrl','connectInjector','mcpConfig.configError','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','string','复制以下\x20JSON\x20配置','_logService','mcpStatus.networkError','MCP:\x20会话\x20ID\x20已被占用','Disposable','_config','warn','Inject','保存中...','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','OTHERS','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','CheckMarkIcon','Failed\x20to\x20save\x20configuration','merge','useDependency','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','univer-space-y-5','mcp-ui.config','Enter\x20your\x20API\x20key','CommandType','mcpConfig.connectionStatus.connecting','Plugin','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','rxjs','displayName','RETRYING','_localStorageService','univer-space-y-3','MCP\x20客户端配置','配置保存成功','setItem','univer-space-y-4','Connection\x20Failed','close-icon','MCPConnectionError','registerCommand','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','univer-size-4','BehaviorSubject','_dialogService','replace','currentColor','mcpConfig.connectionInfo','mcpConfig.connectionStatus.disconnected','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','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','mcpConfig.validation.invalidConfig','FAILED','509885HuNSUS','symbol','213036FvvJCM','off-line-icon','0\x200\x2017\x2016','OffLineIcon','univer-text-white','assign','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','translate(.97)','CloseIcon','UniverCore','IMenuManagerService','univer-flex\x20univer-items-center\x20univer-gap-2','attrs','mcp-config-dialog','MCPStatusDisplay','colorChannel1','value','evenodd','_initializeCommands','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','DependentOn','connectionStatus$','mcpConfig.title'];_0x19b6=function(){return _0x44344d;};return _0x19b6();}function _0x4225(_0x257bb9,_0x3a52db){_0x257bb9=_0x257bb9-0x1f3;const _0x19b6e9=_0x19b6();let _0x4225e9=_0x19b6e9[_0x257bb9];return _0x4225e9;}(function(_0x3cc414,_0x107a6f){const _0x5b2dff=_0x4225,_0x1ade5b=_0x3cc414();while(!![]){try{const _0x4d6f6a=parseInt(_0x5b2dff(0x2bd))/0x1*(-parseInt(_0x5b2dff(0x2a1))/0x2)+-parseInt(_0x5b2dff(0x1f6))/0x3+-parseInt(_0x5b2dff(0x334))/0x4*(parseInt(_0x5b2dff(0x1f4))/0x5)+parseInt(_0x5b2dff(0x2da))/0x6+parseInt(_0x5b2dff(0x31c))/0x7*(-parseInt(_0x5b2dff(0x237))/0x8)+parseInt(_0x5b2dff(0x337))/0x9+parseInt(_0x5b2dff(0x2e6))/0xa;if(_0x4d6f6a===_0x107a6f)break;else _0x1ade5b['push'](_0x1ade5b['shift']());}catch(_0x35cd14){_0x1ade5b['push'](_0x1ade5b['shift']());}}}(_0x19b6,0x244c2),function(_0x534a00,_0x151afb){const _0x2a942a=_0x4225;typeof exports==_0x2a942a(0x244)&&typeof module<'u'?_0x151afb(exports,require('@univerjs/core'),require('react/jsx-runtime'),require('@univerjs-pro/mcp'),require('@univerjs/design'),require('@univerjs/ui'),require('rxjs'),require('react'),require('@univerjs/network')):typeof define==_0x2a942a(0x2ba)&&define[_0x2a942a(0x25f)]?define(['exports',_0x2a942a(0x331),'react/jsx-runtime','@univerjs-pro/mcp',_0x2a942a(0x311),_0x2a942a(0x25c),'rxjs',_0x2a942a(0x219),_0x2a942a(0x21c)],_0x151afb):(_0x534a00=typeof globalThis<'u'?globalThis:_0x534a00||self,_0x151afb(_0x534a00[_0x2a942a(0x2ee)]={},_0x534a00[_0x2a942a(0x1ff)],_0x534a00[_0x2a942a(0x281)],_0x534a00[_0x2a942a(0x2fe)],_0x534a00[_0x2a942a(0x2ad)],_0x534a00[_0x2a942a(0x21d)],_0x534a00[_0x2a942a(0x375)],_0x534a00[_0x2a942a(0x281)],_0x534a00['UniverNetwork']));}(this,function(_0x67ef9d,_0xbe6e84,_0x2b10e3,_0x35da5b,_0x4d3ef2,_0x591869,_0x4fbf24,_0x41e175,_0x5b409e){'use strict';const _0x53cc29=_0x4225;var _0x2cb5e5=Object[_0x53cc29(0x320)],_0x5c66e2=(_0xce0a1b,_0x1e23f8,_0x11e28e)=>_0x1e23f8 in _0xce0a1b?_0x2cb5e5(_0xce0a1b,_0x1e23f8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x11e28e}):_0xce0a1b[_0x1e23f8]=_0x11e28e,_0x1b621a=(_0x2646fb,_0x14b408,_0x4fb727)=>_0x5c66e2(_0x2646fb,typeof _0x14b408!=_0x53cc29(0x1f5)?_0x14b408+'':_0x14b408,_0x4fb727);function _0x43097f({ref:_0x1a349a,..._0x4a4801}){const _0x53efca=_0x53cc29,{icon:_0x573a95,id:_0x127c35,className:_0x49e902,extend:_0x4c8100,..._0x3b2e30}=_0x4a4801,_0x534166=(_0x53efca(0x2bb)+_0x127c35+'\x20'+(_0x49e902||''))['trim'](),_0x7070fd=_0x41e175['useRef']('_'+_0x250b38());return _0x4d0594(_0x573a95,''+_0x127c35,{'defIds':_0x573a95[_0x53efca(0x356)],'idSuffix':_0x7070fd[_0x53efca(0x2df)]},{'ref':_0x1a349a,'className':_0x534166,..._0x3b2e30},_0x4c8100);}function _0x4d0594(_0x209f6a,_0x412749,_0x44d809,_0x11550d,_0xa51a4a){const _0x36572d=_0x53cc29;return _0x41e175[_0x36572d(0x33e)](_0x209f6a[_0x36572d(0x21f)],{'key':_0x412749,..._0x2ba666(_0x209f6a,_0x44d809,_0xa51a4a),..._0x11550d},(_0x1a13e6(_0x209f6a,_0x44d809)[_0x36572d(0x215)]||[])[_0x36572d(0x316)]((_0x2bbe17,_0x1f4e7e)=>_0x4d0594(_0x2bbe17,_0x412749+'-'+_0x209f6a[_0x36572d(0x21f)]+'-'+_0x1f4e7e,_0x44d809,void 0x0,_0xa51a4a)));}function _0x2ba666(_0x217efc,_0x135383,_0x1085ea){const _0x613247=_0x53cc29,_0x3ba711={..._0x217efc['attrs']};_0x1085ea!=null&&_0x1085ea[_0x613247(0x205)]&&_0x3ba711[_0x613247(0x24b)]===_0x613247(0x205)&&(_0x3ba711[_0x613247(0x24b)]=_0x1085ea[_0x613247(0x205)]),_0x217efc['tag']===_0x613247(0x357)&&_0x3ba711['id']&&(_0x3ba711['id']=_0x3ba711['id']+_0x135383[_0x613247(0x295)]),Object['entries'](_0x3ba711)['forEach'](([_0x3f658a,_0x20de72])=>{const _0x2106bb=_0x613247;_0x3f658a===_0x2106bb(0x357)&&typeof _0x20de72==_0x2106bb(0x35c)&&(_0x3ba711[_0x3f658a]=_0x20de72[_0x2106bb(0x386)](/url\(#(.*)\)/,_0x2106bb(0x31b)+_0x135383[_0x2106bb(0x295)]+')'));});const {defIds:_0x2e126c}=_0x135383;return!_0x2e126c||_0x2e126c[_0x613247(0x2f3)]===0x0||(_0x217efc['tag']==='use'&&_0x3ba711[_0x613247(0x242)]&&(_0x3ba711[_0x613247(0x242)]=_0x3ba711['xlink:href']+_0x135383[_0x613247(0x295)]),Object[_0x613247(0x217)](_0x3ba711)['forEach'](([_0x42c261,_0x2ac930])=>{const _0x26a8f1=_0x613247;typeof _0x2ac930==_0x26a8f1(0x35c)&&(_0x3ba711[_0x42c261]=_0x2ac930['replace'](/url\(#(.*)\)/,_0x26a8f1(0x31b)+_0x135383['idSuffix']+')'));})),_0x3ba711;}function _0x1a13e6(_0x4a12a0,_0x410f21){const _0x3e2812=_0x53cc29;var _0x3d7566;const {defIds:_0xb03fa8}=_0x410f21;return!_0xb03fa8||_0xb03fa8['length']===0x0?_0x4a12a0:_0x4a12a0[_0x3e2812(0x21f)]===_0x3e2812(0x2f0)&&((_0x3d7566=_0x4a12a0[_0x3e2812(0x215)])!=null&&_0x3d7566[_0x3e2812(0x2f3)])?{..._0x4a12a0,'children':_0x4a12a0[_0x3e2812(0x215)][_0x3e2812(0x316)](_0x2971dc=>typeof _0x2971dc[_0x3e2812(0x202)]['id']=='string'&&_0xb03fa8&&_0xb03fa8[_0x3e2812(0x22c)](_0x2971dc[_0x3e2812(0x202)]['id'])?{..._0x2971dc,'attrs':{..._0x2971dc['attrs'],'id':_0x2971dc[_0x3e2812(0x202)]['id']+_0x410f21[_0x3e2812(0x295)]}}:_0x2971dc)}:_0x4a12a0;}function _0x250b38(){const _0x222ab8=_0x53cc29;return Math[_0x222ab8(0x2b4)]()[_0x222ab8(0x342)](0x24)['substring'](0x2,0x8);}_0x43097f[_0x53cc29(0x376)]=_0x53cc29(0x2f5);const _0x2ff2b5={'tag':_0x53cc29(0x25b),'attrs':{'xmlns':_0x53cc29(0x2ac),'fill':_0x53cc29(0x293),'viewBox':'0\x200\x2016\x2016','width':_0x53cc29(0x303),'height':_0x53cc29(0x303)},'children':[{'tag':_0x53cc29(0x2f7),'attrs':{'fill':'currentColor','d':_0x53cc29(0x2a6),'fillRule':_0x53cc29(0x207),'clipRule':_0x53cc29(0x207)}}]},_0x44cd99=_0x41e175['forwardRef'](function(_0xb30e7d,_0x88da44){const _0x2088db=_0x53cc29;return _0x41e175[_0x2088db(0x33e)](_0x43097f,Object[_0x2088db(0x1fb)]({},_0xb30e7d,{'id':_0x2088db(0x31a),'ref':_0x88da44,'icon':_0x2ff2b5}));});_0x44cd99['displayName']=_0x53cc29(0x369);const _0x3dd4f1={'tag':'svg','attrs':{'xmlns':_0x53cc29(0x2ac),'fill':_0x53cc29(0x293),'viewBox':_0x53cc29(0x27f),'width':_0x53cc29(0x303),'height':_0x53cc29(0x303)},'children':[{'tag':_0x53cc29(0x2f7),'attrs':{'fill':_0x53cc29(0x387),'d':_0x53cc29(0x285)}}]},_0x268c45=_0x41e175[_0x53cc29(0x2e2)](function(_0x285119,_0x5f4f64){const _0x90ef3d=_0x53cc29;return _0x41e175['createElement'](_0x43097f,Object[_0x90ef3d(0x1fb)]({},_0x285119,{'id':_0x90ef3d(0x37f),'ref':_0x5f4f64,'icon':_0x3dd4f1}));});_0x268c45[_0x53cc29(0x376)]=_0x53cc29(0x1fe);const _0x19a098={'tag':_0x53cc29(0x25b),'attrs':{'xmlns':_0x53cc29(0x2ac),'fill':_0x53cc29(0x293),'viewBox':'0\x200\x2016\x2016','width':_0x53cc29(0x303),'height':_0x53cc29(0x303)},'children':[{'tag':'path','attrs':{'fill':_0x53cc29(0x387),'d':_0x53cc29(0x2bf)}},{'tag':_0x53cc29(0x2f7),'attrs':{'fill':'currentColor','d':_0x53cc29(0x268)}},{'tag':_0x53cc29(0x2f7),'attrs':{'fill':_0x53cc29(0x387),'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':_0x53cc29(0x207),'clipRule':_0x53cc29(0x207)}}]},_0x489b6f=_0x41e175['forwardRef'](function(_0x1bd24f,_0x34cc35){const _0x21eeb6=_0x53cc29;return _0x41e175[_0x21eeb6(0x33e)](_0x43097f,Object[_0x21eeb6(0x1fb)]({},_0x1bd24f,{'id':'help-icon','ref':_0x34cc35,'icon':_0x19a098}));});_0x489b6f[_0x53cc29(0x376)]=_0x53cc29(0x2f9);const _0x2142c6={'tag':_0x53cc29(0x25b),'attrs':{'xmlns':_0x53cc29(0x2ac),'fill':_0x53cc29(0x293),'viewBox':_0x53cc29(0x27f),'width':_0x53cc29(0x303),'height':_0x53cc29(0x303)},'children':[{'tag':'g','attrs':{'clipPath':_0x53cc29(0x326)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x53cc29(0x2dd),'strokeLinecap':_0x53cc29(0x27c),'strokeLinejoin':_0x53cc29(0x27c),'strokeWidth':1.2}}]},{'tag':_0x53cc29(0x2f0),'attrs':{},'children':[{'tag':_0x53cc29(0x327),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x53cc29(0x34a),'d':_0x53cc29(0x2af)}}]}]}],'defIds':[_0x53cc29(0x25a)]},_0x38d035=_0x41e175['forwardRef'](function(_0x3bd82c,_0x326a5a){const _0x16a648=_0x53cc29;return _0x41e175[_0x16a648(0x33e)](_0x43097f,Object['assign']({},_0x3bd82c,{'id':_0x16a648(0x1f7),'ref':_0x326a5a,'icon':_0x2142c6}));});_0x38d035[_0x53cc29(0x376)]=_0x53cc29(0x1f9);const _0x53545f={'tag':_0x53cc29(0x25b),'attrs':{'xmlns':_0x53cc29(0x2ac),'fill':_0x53cc29(0x293),'viewBox':_0x53cc29(0x1f8),'width':_0x53cc29(0x303),'height':_0x53cc29(0x303)},'children':[{'tag':'g','attrs':{'clipPath':_0x53cc29(0x2ae)},'children':[{'tag':_0x53cc29(0x2f7),'attrs':{'stroke':_0x53cc29(0x387),'d':_0x53cc29(0x248),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x53cc29(0x2f0),'attrs':{},'children':[{'tag':_0x53cc29(0x327),'attrs':{'id':_0x53cc29(0x297)},'children':[{'tag':_0x53cc29(0x2f7),'attrs':{'fill':'white','d':'M0\x200H16V16H0z','transform':_0x53cc29(0x1fd)}}]}]}],'defIds':[_0x53cc29(0x297)]},_0x23f009=_0x41e175[_0x53cc29(0x2e2)](function(_0x1c54ca,_0x2fe474){const _0x4d9096=_0x53cc29;return _0x41e175[_0x4d9096(0x33e)](_0x43097f,Object['assign']({},_0x1c54ca,{'id':_0x4d9096(0x238),'ref':_0x2fe474,'icon':_0x53545f}));});_0x23f009[_0x53cc29(0x376)]=_0x53cc29(0x2ef);function _0x402b85(_0x589969){const _0x1e5b9f=_0x53cc29;var _0xcc17ec,_0x22a769;const {mcpCoreConfig:_0x2ab3ec,onSave:_0x2eec6e,loading:_0x5a2ec5=!0x1,config:_0x2c26d3,connectionStatus$:_0xef2ead,connectionError$:_0x1d23db,currentApiKey$:_0xf56d4d,currentSessionId$:_0x38cae2}=_0x589969,_0x420cde=_0x591869[_0x1e5b9f(0x36c)](_0xbe6e84['LocaleService']),_0x23ea5a=_0x591869[_0x1e5b9f(0x301)](_0xef2ead,_0x35da5b[_0x1e5b9f(0x20f)][_0x1e5b9f(0x23b)]),_0x5bd104=_0x591869[_0x1e5b9f(0x301)](_0x1d23db,_0x35da5b[_0x1e5b9f(0x380)][_0x1e5b9f(0x2b3)]),_0x3e60ae=_0x591869['useObservable'](_0x38cae2,''),_0xf1cb72=_0x591869['useObservable'](_0xf56d4d,''),[_0x30d5c6,_0x5a0d47]=_0x41e175[_0x1e5b9f(0x25e)](_0xf1cb72||''),_0x5b84fe=!0x0,_0x17ee2e=_0x2c26d3[_0x1e5b9f(0x2e0)]&&_0x2ab3ec['mcpServerUrl']&&(_0x2ab3ec['mcpServerUrl'][_0x1e5b9f(0x22c)](_0x1e5b9f(0x23e))||_0x2ab3ec[_0x1e5b9f(0x358)][_0x1e5b9f(0x22c)]('univer.ai')),_0x8bfff6=(_0xcc17ec=_0x2ab3ec['mcpServerUrl'])==null?void 0x0:_0xcc17ec['includes'](_0x1e5b9f(0x23e)),_0xb2f312=(_0x22a769=_0x2ab3ec[_0x1e5b9f(0x358)])==null?void 0x0:_0x22a769['includes'](_0x1e5b9f(0x30d)),_0x43671d=_0x8bfff6?_0x1e5b9f(0x2aa):_0x1e5b9f(0x2c9),_0x53539b=_0x2c26d3[_0x1e5b9f(0x2e0)]&&(_0x8bfff6||_0xb2f312),[_0x47cf81,_0x1cdcc7]=_0x41e175[_0x1e5b9f(0x25e)](!_0x30d5c6['trim']()),_0x290f6e=(_0x4bcb07,_0x35e1aa)=>{const _0x17880f=_0x1e5b9f;if(_0x35e1aa===_0x35da5b[_0x17880f(0x380)][_0x17880f(0x220)])return _0x17880f(0x221);switch(_0x4bcb07){case _0x35da5b['MCPConnectionStatus']['CONNECTED']:return _0x17880f(0x213);case _0x35da5b[_0x17880f(0x20f)][_0x17880f(0x257)]:case _0x35da5b[_0x17880f(0x20f)][_0x17880f(0x377)]:return _0x17880f(0x319);case _0x35da5b[_0x17880f(0x20f)][_0x17880f(0x1f3)]:return _0x17880f(0x221);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x3dc3d4=(_0x4416e1,_0x274f61)=>{const _0x30ac09=_0x1e5b9f;if(_0x274f61===_0x35da5b[_0x30ac09(0x380)][_0x30ac09(0x220)])return'univer-bg-red-500';switch(_0x4416e1){case _0x35da5b[_0x30ac09(0x20f)][_0x30ac09(0x340)]:return _0x30ac09(0x32b);case _0x35da5b[_0x30ac09(0x20f)][_0x30ac09(0x257)]:case _0x35da5b['MCPConnectionStatus']['RETRYING']:return _0x30ac09(0x2e9);case _0x35da5b['MCPConnectionStatus'][_0x30ac09(0x1f3)]:return _0x30ac09(0x2b0);default:return _0x30ac09(0x253);}},_0x5279a3=_0x426831=>{const _0x466f05=_0x1e5b9f;switch(_0x426831){case _0x35da5b[_0x466f05(0x20f)][_0x466f05(0x340)]:return _0x420cde['t'](_0x466f05(0x2b1));case _0x35da5b[_0x466f05(0x20f)][_0x466f05(0x257)]:return _0x420cde['t'](_0x466f05(0x372));case _0x35da5b[_0x466f05(0x20f)][_0x466f05(0x1f3)]:return _0x420cde['t'](_0x466f05(0x2c5));case _0x35da5b[_0x466f05(0x20f)][_0x466f05(0x377)]:return _0x420cde['t'](_0x466f05(0x322));default:return _0x420cde['t'](_0x466f05(0x389));}},_0x15072a=_0x50f856=>{const _0x2cedd4=_0x1e5b9f;switch(_0x50f856){case _0x35da5b['MCPConnectionError']['UNAUTHORIZED']:return _0x420cde['t'](_0x2cedd4(0x2a5));case _0x35da5b['MCPConnectionError']['SESSION_ID_OCCUPIED']:return _0x420cde['t']('mcpConfig.connectionError.sessionOccupied');case _0x35da5b['MCPConnectionError'][_0x2cedd4(0x288)]:return _0x420cde['t'](_0x2cedd4(0x290));case _0x35da5b[_0x2cedd4(0x380)][_0x2cedd4(0x2e4)]:return _0x420cde['t'](_0x2cedd4(0x2ce));default:return'';}},_0x1384fa=_0x41e175[_0x1e5b9f(0x30c)](()=>{const _0x27a6d5={..._0x2ab3ec,'apiKey':_0x30d5c6['trim'](),'enableAuth':_0x5b84fe};_0x2eec6e(_0x27a6d5);},[_0x2ab3ec,_0x30d5c6,_0x5b84fe,_0x2eec6e]),_0x42d804=_0x30d5c6['trim']()['length']>0x0;return _0x2b10e3[_0x1e5b9f(0x2db)](_0x1e5b9f(0x272),{'className':_0x1e5b9f(0x245),'children':[_0x2b10e3[_0x1e5b9f(0x24d)](_0x1e5b9f(0x272),{'className':_0x1e5b9f(0x2dc),'children':_0x2b10e3[_0x1e5b9f(0x2db)](_0x1e5b9f(0x272),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0x2b10e3[_0x1e5b9f(0x24d)](_0x1e5b9f(0x272),{'className':_0x1e5b9f(0x256),'children':_0x2b10e3[_0x1e5b9f(0x24d)](_0x1e5b9f(0x250),{'className':_0x1e5b9f(0x1fa),'children':'⚙'})}),_0x2b10e3[_0x1e5b9f(0x24d)](_0x1e5b9f(0x272),{'children':_0x2b10e3[_0x1e5b9f(0x24d)]('p',{'className':_0x1e5b9f(0x26f),'children':_0x420cde['t'](_0x1e5b9f(0x33d))})})]})}),_0x2b10e3[_0x1e5b9f(0x2db)](_0x1e5b9f(0x272),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x2b10e3['jsx'](_0x1e5b9f(0x272),{'className':_0x4d3ef2[_0x1e5b9f(0x344)](_0x1e5b9f(0x27a),_0x290f6e(_0x23ea5a,_0x5bd104)),'children':_0x2b10e3[_0x1e5b9f(0x2db)](_0x1e5b9f(0x272),{'className':_0x1e5b9f(0x201),'children':[_0x2b10e3[_0x1e5b9f(0x24d)]('div',{'className':_0x4d3ef2[_0x1e5b9f(0x344)](_0x1e5b9f(0x2d8),_0x3dc3d4(_0x23ea5a,_0x5bd104))}),_0x2b10e3[_0x1e5b9f(0x24d)](_0x1e5b9f(0x250),{'className':_0x1e5b9f(0x210),'children':_0x5279a3(_0x23ea5a)})]})}),_0x5bd104!==_0x35da5b['MCPConnectionError'][_0x1e5b9f(0x2b3)]&&(_0x23ea5a===_0x35da5b['MCPConnectionStatus'][_0x1e5b9f(0x1f3)]||_0x5bd104===_0x35da5b['MCPConnectionError'][_0x1e5b9f(0x220)])&&_0x2b10e3[_0x1e5b9f(0x24d)](_0x1e5b9f(0x272),{'className':_0x1e5b9f(0x1fc),'children':_0x2b10e3[_0x1e5b9f(0x2db)]('div',{'className':_0x1e5b9f(0x230),'children':[_0x2b10e3[_0x1e5b9f(0x24d)]('span',{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0x2b10e3[_0x1e5b9f(0x24d)]('p',{'className':_0x1e5b9f(0x28f),'children':_0x15072a(_0x5bd104)})]})})]}),_0x2b10e3['jsx'](_0x1e5b9f(0x272),{'className':_0x1e5b9f(0x258),'children':_0x2b10e3[_0x1e5b9f(0x2db)](_0x1e5b9f(0x272),{'className':_0x1e5b9f(0x36e),'children':[_0x2b10e3[_0x1e5b9f(0x2db)](_0x1e5b9f(0x272),{'className':_0x1e5b9f(0x26a),'children':[_0x2b10e3[_0x1e5b9f(0x2db)]('label',{'className':_0x1e5b9f(0x305),'children':[_0x2b10e3['jsx']('span',{'children':'🔑'}),'\x20',_0x420cde['t']('mcpConfig.apiKey'),_0x2b10e3[_0x1e5b9f(0x24d)]('span',{'className':_0x1e5b9f(0x23a),'children':'*'}),_0x17ee2e&&_0x2b10e3[_0x1e5b9f(0x24d)]('a',{'className':'univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x420cde['t'](_0x1e5b9f(0x32c)),'role':_0x1e5b9f(0x2a3),'onClick':()=>_0x1cdcc7(!0x0),'children':_0x2b10e3[_0x1e5b9f(0x24d)](_0x489b6f,{})})]}),_0x2b10e3['jsx'](_0x4d3ef2['Input'],{'type':_0x1e5b9f(0x225),'placeholder':_0x420cde['t'](_0x1e5b9f(0x22a)),'value':_0x30d5c6,'disabled':_0x5a2ec5,'autoComplete':_0x1e5b9f(0x2ff),'onChange':_0x5a0d47}),_0x2b10e3[_0x1e5b9f(0x24d)]('p',{'className':_0x1e5b9f(0x32f),'children':_0x420cde['t']('mcpConfig.apiKeyHint')})]}),_0x17ee2e&&_0x47cf81&&_0x2b10e3[_0x1e5b9f(0x2db)](_0x1e5b9f(0x272),{'className':_0x1e5b9f(0x26c),'children':[_0x2b10e3[_0x1e5b9f(0x24d)]('a',{'className':_0x1e5b9f(0x277),'role':_0x1e5b9f(0x2a3),'onClick':()=>_0x1cdcc7(!0x1),'children':_0x2b10e3[_0x1e5b9f(0x24d)](_0x268c45,{'className':_0x1e5b9f(0x383)})}),_0x2b10e3[_0x1e5b9f(0x2db)](_0x1e5b9f(0x272),{'className':_0x1e5b9f(0x35b),'children':[_0x2b10e3[_0x1e5b9f(0x24d)](_0x1e5b9f(0x272),{'className':_0x1e5b9f(0x226),'children':_0x2b10e3[_0x1e5b9f(0x24d)](_0x1e5b9f(0x250),{'className':_0x1e5b9f(0x266),'children':'🚀'})}),_0x2b10e3[_0x1e5b9f(0x2db)](_0x1e5b9f(0x272),{'className':'univer-flex-1','children':[_0x2b10e3[_0x1e5b9f(0x24d)]('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x420cde['t'](_0x1e5b9f(0x32c))}),_0x2b10e3[_0x1e5b9f(0x24d)]('p',{'className':_0x1e5b9f(0x368),'children':_0x420cde['t'](_0x1e5b9f(0x353))}),_0x2b10e3[_0x1e5b9f(0x24d)](_0x1e5b9f(0x272),{'className':_0x1e5b9f(0x329),'children':_0x53539b&&_0x2b10e3[_0x1e5b9f(0x2db)]('a',{'className':_0x1e5b9f(0x38b),'href':_0x43671d,'target':'_blank','rel':'noopener\x20noreferrer','children':[_0x2b10e3[_0x1e5b9f(0x24d)](_0x1e5b9f(0x250),{'children':'🤖'}),_0x420cde['t'](_0x1e5b9f(0x239)),_0x2b10e3['jsx']('span',{'className':'univer-text-gray-400','children':'↗'})]})}),_0x2b10e3[_0x1e5b9f(0x2db)]('div',{'className':_0x1e5b9f(0x323),'children':['✨','\x20',_0x420cde['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x2c26d3[_0x1e5b9f(0x2e0)]&&_0x2b10e3[_0x1e5b9f(0x2db)](_0x1e5b9f(0x272),{'className':_0x1e5b9f(0x2fc),'children':[_0x2b10e3[_0x1e5b9f(0x2db)]('h4',{'className':_0x1e5b9f(0x20a),'children':[_0x2b10e3[_0x1e5b9f(0x24d)]('span',{'children':'🔗'}),'\x20',_0x420cde['t'](_0x1e5b9f(0x388))]}),_0x2b10e3[_0x1e5b9f(0x2db)]('div',{'className':_0x1e5b9f(0x37d),'children':[_0x2b10e3[_0x1e5b9f(0x2db)](_0x1e5b9f(0x272),{'className':'univer-space-y-3','children':[_0x2b10e3[_0x1e5b9f(0x24d)]('p',{'className':_0x1e5b9f(0x2e5),'children':_0x420cde['t'](_0x1e5b9f(0x33f))}),_0x2b10e3[_0x1e5b9f(0x2db)](_0x1e5b9f(0x272),{'className':_0x1e5b9f(0x26a),'children':[_0x2b10e3[_0x1e5b9f(0x24d)]('div',{'className':_0x1e5b9f(0x339),'children':_0x420cde['t'](_0x1e5b9f(0x330))}),_0x2b10e3[_0x1e5b9f(0x2db)](_0x1e5b9f(0x272),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x2b10e3[_0x1e5b9f(0x2db)]('div',{'className':_0x1e5b9f(0x201),'children':[_0x2b10e3['jsx'](_0x1e5b9f(0x250),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x420cde['t'](_0x1e5b9f(0x29f))]}),_0x2b10e3[_0x1e5b9f(0x2db)]('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x2b10e3['jsx'](_0x1e5b9f(0x250),{'className':_0x1e5b9f(0x366),'children':'2'}),_0x420cde['t'](_0x1e5b9f(0x298))]}),_0x2b10e3['jsxs'](_0x1e5b9f(0x272),{'className':_0x1e5b9f(0x201),'children':[_0x2b10e3[_0x1e5b9f(0x24d)](_0x1e5b9f(0x250),{'className':_0x1e5b9f(0x366),'children':'3'}),_0x420cde['t']('mcpConfig.configStep3')]})]})]})]}),_0x2b10e3['jsxs'](_0x1e5b9f(0x272),{'className':_0x1e5b9f(0x26a),'children':[_0x2b10e3[_0x1e5b9f(0x24d)](_0x1e5b9f(0x272),{'className':_0x1e5b9f(0x339),'children':_0x1e5b9f(0x229)}),_0x2b10e3['jsx'](_0x1e5b9f(0x272),{'className':_0x1e5b9f(0x28c),'children':_0x2b10e3['jsx'](_0x1e5b9f(0x347),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON['stringify']({'mcpServers':{'univer':{'url':_0x1e5b9f(0x33c)+(_0x3e60ae||_0x1e5b9f(0x26d)),'type':_0x1e5b9f(0x2b5),'headers':{'Authorization':_0x1e5b9f(0x2fb)+(_0x30d5c6||_0x1e5b9f(0x24f))}}}},null,0x2)})})]}),_0x2b10e3[_0x1e5b9f(0x2db)](_0x1e5b9f(0x272),{'className':_0x1e5b9f(0x379),'children':[_0x2b10e3[_0x1e5b9f(0x24d)](_0x1e5b9f(0x272),{'className':_0x1e5b9f(0x339),'children':_0x420cde['t'](_0x1e5b9f(0x275))}),_0x2b10e3[_0x1e5b9f(0x2db)](_0x1e5b9f(0x272),{'className':_0x1e5b9f(0x26a),'children':[_0x2b10e3['jsxs'](_0x1e5b9f(0x272),{'className':_0x1e5b9f(0x2cd),'children':[_0x2b10e3[_0x1e5b9f(0x24d)]('div',{'className':_0x1e5b9f(0x232)}),_0x2b10e3[_0x1e5b9f(0x2db)](_0x1e5b9f(0x272),{'className':_0x1e5b9f(0x29c),'children':[_0x2b10e3[_0x1e5b9f(0x24d)]('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x1e5b9f(0x29a)}),_0x2b10e3[_0x1e5b9f(0x24d)]('div',{'className':_0x1e5b9f(0x32f),'children':_0x420cde['t']('mcpConfig.sessionIdDescription')})]})]}),_0x2b10e3[_0x1e5b9f(0x2db)]('div',{'className':_0x1e5b9f(0x2cd),'children':[_0x2b10e3[_0x1e5b9f(0x24d)](_0x1e5b9f(0x272),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x2b10e3[_0x1e5b9f(0x2db)](_0x1e5b9f(0x272),{'className':_0x1e5b9f(0x29c),'children':[_0x2b10e3[_0x1e5b9f(0x24d)](_0x1e5b9f(0x272),{'className':_0x1e5b9f(0x38a),'children':_0x1e5b9f(0x22f)}),_0x2b10e3[_0x1e5b9f(0x24d)](_0x1e5b9f(0x272),{'className':_0x1e5b9f(0x32f),'children':_0x420cde['t'](_0x1e5b9f(0x222))})]})]})]})]})]})]}),_0x2b10e3[_0x1e5b9f(0x24d)](_0x4d3ef2['Button'],{'onClick':_0x1384fa,'disabled':!_0x42d804||_0x5a2ec5,'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':_0x5a2ec5?_0x2b10e3[_0x1e5b9f(0x2db)](_0x1e5b9f(0x250),{'className':_0x1e5b9f(0x201),'children':[_0x2b10e3[_0x1e5b9f(0x24d)]('span',{'children':'⟲'}),_0x420cde['t'](_0x1e5b9f(0x246))]}):_0x2b10e3[_0x1e5b9f(0x2db)](_0x1e5b9f(0x250),{'className':_0x1e5b9f(0x201),'children':[_0x2b10e3[_0x1e5b9f(0x24d)](_0x44cd99,{}),_0x420cde['t'](_0x1e5b9f(0x2eb))]})}),_0x2b10e3['jsx'](_0x1e5b9f(0x272),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':_0x2b10e3[_0x1e5b9f(0x2db)](_0x1e5b9f(0x272),{'className':_0x1e5b9f(0x282),'children':[_0x2b10e3[_0x1e5b9f(0x24d)](_0x1e5b9f(0x250),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x2b10e3[_0x1e5b9f(0x2db)]('div',{'className':_0x1e5b9f(0x209),'children':[_0x2b10e3[_0x1e5b9f(0x24d)](_0x1e5b9f(0x272),{'className':'univer-font-medium','children':_0x1e5b9f(0x2cc)}),_0x2b10e3[_0x1e5b9f(0x2db)](_0x1e5b9f(0x272),{'children':['•',_0x420cde['t']('mcpConfig.note1')]}),_0x2b10e3[_0x1e5b9f(0x2db)]('div',{'children':['•',_0x420cde['t'](_0x1e5b9f(0x261))]})]})]})})]})})]});}const _0x328837=_0x53cc29(0x36f),_0x13ed34={'showDeveloperTools':!0x1,'showStatus':!0x0};var _0x377241=Object[_0x53cc29(0x31d)],_0x293865=(_0x45620b,_0x1f802c,_0x4d1fc7,_0x22dadf)=>{const _0x33e2a0=_0x53cc29;for(var _0x337d74=_0x22dadf>0x1?void 0x0:_0x22dadf?_0x377241(_0x1f802c,_0x4d1fc7):_0x1f802c,_0x2cdf19=_0x45620b[_0x33e2a0(0x2f3)]-0x1,_0x5253a0;_0x2cdf19>=0x0;_0x2cdf19--)(_0x5253a0=_0x45620b[_0x2cdf19])&&(_0x337d74=_0x5253a0(_0x337d74)||_0x337d74);return _0x337d74;},_0x37f766=(_0x27e2bc,_0x431d9e)=>(_0x5d799b,_0x5a07c8)=>_0x431d9e(_0x5d799b,_0x5a07c8,_0x27e2bc);const _0x4d85db=_0x53cc29(0x255),_0x255f54=_0x53cc29(0x203);_0x67ef9d[_0x53cc29(0x27b)]=class extends _0xbe6e84[_0x53cc29(0x361)]{constructor(_0x5ed863,_0x230dfc,_0x1ae719,_0x4b42a2,_0x336b29,_0x32fa66,_0x2cb707,_0x4f16e9,_0x39a1ac,_0x57ed8c){const _0x4b6b98=_0x53cc29;super(),_0x1b621a(this,_0x4b6b98(0x354),new _0x4fbf24[(_0x4b6b98(0x384))](!0x1)),_0x1b621a(this,_0x4b6b98(0x2e7),new _0x4fbf24[(_0x4b6b98(0x384))]({})),_0x1b621a(this,_0x4b6b98(0x27d),new _0x4fbf24[(_0x4b6b98(0x384))]({})),_0x1b621a(this,_0x4b6b98(0x2fa),new _0x4fbf24[(_0x4b6b98(0x384))]('')),_0x1b621a(this,_0x4b6b98(0x335),async _0x4b4807=>{const _0x4cff24=_0x4b6b98;var _0x2a07df,_0x4c7db9;this[_0x4cff24(0x354)][_0x4cff24(0x2ab)](!0x0);try{const _0x2958c8=await this[_0x4cff24(0x22b)](_0x4b4807);if(!_0x2958c8['isValid']){this[_0x4cff24(0x332)]['show']({'type':_0x4d3ef2[_0x4cff24(0x260)][_0x4cff24(0x306)],'content':_0x2958c8[_0x4cff24(0x34d)]||this[_0x4cff24(0x29e)]['t'](_0x4cff24(0x38c))});return;}_0x4b4807['apiKey']?await this[_0x4cff24(0x378)][_0x4cff24(0x37c)](_0x4d85db,_0x4b4807[_0x4cff24(0x338)][_0x4cff24(0x351)]()):await this[_0x4cff24(0x378)]['removeItem'](_0x4d85db),this[_0x4cff24(0x2fa)][_0x4cff24(0x2ab)](((_0x2a07df=_0x4b4807[_0x4cff24(0x338)])==null?void 0x0:_0x2a07df['trim']())||''),this[_0x4cff24(0x2cf)][_0x4cff24(0x224)]({'Authorization':'Bearer\x20'+((_0x4c7db9=_0x4b4807['apiKey'])==null?void 0x0:_0x4c7db9[_0x4cff24(0x351)]())}),this[_0x4cff24(0x332)][_0x4cff24(0x227)]({'type':_0x4d3ef2[_0x4cff24(0x260)][_0x4cff24(0x294)],'content':this[_0x4cff24(0x29e)]['t'](_0x4cff24(0x2ca))}),setTimeout(()=>{const _0x270a96=_0x4cff24;this['_dialogService'][_0x270a96(0x2c3)](_0x255f54);},0x320);}catch(_0x4cdc89){this[_0x4cff24(0x35e)][_0x4cff24(0x2d4)](_0x4cff24(0x223),_0x4cdc89),this[_0x4cff24(0x332)][_0x4cff24(0x227)]({'type':_0x4d3ef2[_0x4cff24(0x260)][_0x4cff24(0x306)],'content':this[_0x4cff24(0x29e)]['t'](_0x4cff24(0x35a))});}finally{this['_loading$'][_0x4cff24(0x2ab)](!0x1);}}),(this[_0x4b6b98(0x22d)]=_0x5ed863,this['_uiPartsService']=_0x230dfc,this[_0x4b6b98(0x2a7)]=_0x1ae719,this['_localStorageService']=_0x4b42a2,this[_0x4b6b98(0x385)]=_0x336b29,this['_messageService']=_0x32fa66,this[_0x4b6b98(0x24c)]=_0x2cb707,this[_0x4b6b98(0x29e)]=_0x4f16e9,this[_0x4b6b98(0x35e)]=_0x39a1ac,this[_0x4b6b98(0x2cf)]=_0x57ed8c,this[_0x4b6b98(0x304)](),this[_0x4b6b98(0x2de)](),this[_0x4b6b98(0x28a)]());}[_0x53cc29(0x324)](){const _0x391e2e=_0x53cc29,_0x5c58e1=this[_0x391e2e(0x2a7)][_0x391e2e(0x270)](_0x328837);_0x5c58e1!=null&&_0x5c58e1[_0x391e2e(0x2e0)]&&this[_0x391e2e(0x385)]['open']({'id':_0x255f54,'title':{'title':this[_0x391e2e(0x29e)]['t']('mcpConfig.title')},'children':{'label':_0x391e2e(0x2e8)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x24d3e2=_0x391e2e;this[_0x24d3e2(0x385)]['close'](_0x255f54);}});}[_0x53cc29(0x283)](){const _0x2d729f=_0x53cc29;return this[_0x2d729f(0x2e7)][_0x2d729f(0x206)];}[_0x53cc29(0x28a)](){const _0x598aae=_0x53cc29;this[_0x598aae(0x318)](this['_componentManager'][_0x598aae(0x23d)](_0x598aae(0x2e8),this['_createConfigPanelComponent']()));}['_createConfigPanelComponent'](){const _0x49e66f=_0x53cc29;return _0x591869[_0x49e66f(0x359)](()=>{const _0x1e54d7=_0x49e66f;var _0x3996f9,_0x4fbe43,_0x5cfcdd;return _0x2b10e3['jsx'](_0x402b85,{'config':this[_0x1e54d7(0x27d)]['value'],'mcpCoreConfig':this[_0x1e54d7(0x2e7)]['value'],'currentApiKey$':this[_0x1e54d7(0x2fa)],'onSave':this[_0x1e54d7(0x335)],'loading':this[_0x1e54d7(0x354)][_0x1e54d7(0x206)],'connectionStatus$':(_0x3996f9=this['_mcpConnectionController'])==null?void 0x0:_0x3996f9['connectionStatus$'],'connectionError$':(_0x4fbe43=this[_0x1e54d7(0x2cf)])==null?void 0x0:_0x4fbe43[_0x1e54d7(0x214)],'currentSessionId$':(_0x5cfcdd=this[_0x1e54d7(0x2cf)])==null?void 0x0:_0x5cfcdd['sessionId$']});},this['_injector']);}['_initConfigSync'](){const _0x41e518=_0x53cc29;this['disposeWithMe'](this['_configService'][_0x41e518(0x269)](_0x35da5b['MCP_PLUGIN_CONFIG_KEY'])[_0x41e518(0x2b6)](_0xd6a5c=>{const _0x4ce167=_0x41e518;this[_0x4ce167(0x2e7)][_0x4ce167(0x2ab)](_0xd6a5c||{});}));const _0x5a9758=this[_0x41e518(0x2a7)][_0x41e518(0x270)](_0x35da5b[_0x41e518(0x30a)]);this[_0x41e518(0x2e7)]['next'](_0x5a9758||{}),this[_0x41e518(0x318)](this[_0x41e518(0x2a7)][_0x41e518(0x269)](_0x328837)[_0x41e518(0x2b6)](_0x41d1d8=>{const _0x42a916=_0x41e518;this[_0x42a916(0x27d)]['next'](_0x41d1d8||{});}));const _0x50153d=this[_0x41e518(0x2a7)]['getConfig'](_0x328837);this[_0x41e518(0x27d)][_0x41e518(0x2ab)](_0x50153d||{});}async['_loadStoredApiKey'](){const _0x30ef0e=_0x53cc29,_0xce9917=this['_configService'][_0x30ef0e(0x270)](_0x328837);if(!(_0xce9917!=null&&_0xce9917['showDeveloperTools']))return;const _0x1fc8b9=await this[_0x30ef0e(0x378)][_0x30ef0e(0x233)](_0x4d85db);_0x1fc8b9&&(this['_mcpConnectionController'][_0x30ef0e(0x224)]({'Authorization':_0x30ef0e(0x2fb)+_0x1fc8b9}),this['_apiKey$'][_0x30ef0e(0x2ab)](_0x1fc8b9));}async[_0x53cc29(0x22b)](_0xd62eee){const _0x939bdb=_0x53cc29;if(!_0xd62eee[_0x939bdb(0x338)]||_0xd62eee[_0x939bdb(0x338)][_0x939bdb(0x351)]()[_0x939bdb(0x2f3)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x939bdb(0x29e)]['t'](_0x939bdb(0x251))};if(_0xd62eee[_0x939bdb(0x338)]['trim']()[_0x939bdb(0x2f3)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x939bdb(0x29e)]['t'](_0x939bdb(0x2c1))};try{const _0x5a2606=await this[_0x939bdb(0x22d)][_0x939bdb(0x243)](_0x35da5b[_0x939bdb(0x267)])[_0x939bdb(0x280)](_0xd62eee[_0x939bdb(0x338)]['trim']());return _0x5a2606[_0x939bdb(0x2e3)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x5a2606[_0x939bdb(0x2d4)]||this[_0x939bdb(0x29e)]['t'](_0x939bdb(0x2a2))};}catch(_0x1b8c3d){return console[_0x939bdb(0x363)](_0x939bdb(0x352),_0x1b8c3d),{'isValid':!0x0};}}},_0x67ef9d[_0x53cc29(0x27b)]=_0x293865([_0x37f766(0x0,_0xbe6e84[_0x53cc29(0x364)](_0xbe6e84[_0x53cc29(0x310)])),_0x37f766(0x1,_0x591869['IUIPartsService']),_0x37f766(0x2,_0xbe6e84[_0x53cc29(0x2b8)]),_0x37f766(0x3,_0xbe6e84[_0x53cc29(0x341)]),_0x37f766(0x4,_0x591869[_0x53cc29(0x2fd)]),_0x37f766(0x5,_0x591869[_0x53cc29(0x2f2)]),_0x37f766(0x6,_0xbe6e84[_0x53cc29(0x364)](_0x591869['ComponentManager'])),_0x37f766(0x7,_0xbe6e84[_0x53cc29(0x364)](_0xbe6e84[_0x53cc29(0x2d0)])),_0x37f766(0x8,_0xbe6e84[_0x53cc29(0x29d)]),_0x37f766(0x9,_0xbe6e84['Inject'](_0x35da5b[_0x53cc29(0x267)]))],_0x67ef9d[_0x53cc29(0x27b)]);const _0x6f52da={'id':_0x53cc29(0x2a9),'type':_0xbe6e84[_0x53cc29(0x371)][_0x53cc29(0x30e)],'handler':async(_0x35c61b,_0xa8998c)=>(_0x35c61b[_0x53cc29(0x243)](_0x67ef9d[_0x53cc29(0x27b)])[_0x53cc29(0x324)](),!0x0)};function _0x135605(_0x54f0a1,_0x5e190b){const _0x456db3=_0x53cc29;switch(_0x54f0a1){case _0x35da5b[_0x456db3(0x20f)]['DISCONNECTED']:return _0x456db3(0x333);case _0x35da5b['MCPConnectionStatus']['CONNECTING']:return _0x456db3(0x27e);case _0x35da5b[_0x456db3(0x20f)][_0x456db3(0x340)]:return'mcpStatus.connected';case _0x35da5b[_0x456db3(0x20f)][_0x456db3(0x1f3)]:switch(_0x5e190b){case _0x35da5b[_0x456db3(0x380)][_0x456db3(0x220)]:return _0x456db3(0x32e);case _0x35da5b['MCPConnectionError']['SESSION_ID_OCCUPIED']:return _0x456db3(0x34c);case _0x35da5b[_0x456db3(0x380)]['NETWORK_ERROR']:return _0x456db3(0x35f);case _0x35da5b[_0x456db3(0x380)][_0x456db3(0x2e4)]:return _0x456db3(0x249);default:return'mcpStatus.failed';}case _0x35da5b[_0x456db3(0x20f)][_0x456db3(0x377)]:return _0x456db3(0x314);default:return'mcpStatus.unknown';}}function _0x3fa546(_0x143707,_0x4c61d2,_0x4e34c5,_0x9692b2=!0x0){const _0x57b84b=_0x53cc29,_0x3112d0=_0x135605(_0x143707,_0x4c61d2),_0x1091b4=_0x4e34c5['t'](_0x3112d0);return _0x9692b2?_0x143707===_0x35da5b[_0x57b84b(0x20f)]['DISCONNECTED']&&_0x4c61d2===_0x35da5b[_0x57b84b(0x380)]['UNAUTHORIZED']?_0x1091b4+_0x57b84b(0x231)+_0x4e34c5['t'](_0x57b84b(0x26e)):_0x143707===_0x35da5b[_0x57b84b(0x20f)]['CONNECTED']?''+_0x1091b4:_0x143707===_0x35da5b['MCPConnectionStatus'][_0x57b84b(0x23b)]||_0x143707===_0x35da5b[_0x57b84b(0x20f)][_0x57b84b(0x1f3)]?_0x1091b4+_0x57b84b(0x231)+_0x4e34c5['t']('mcpStatus.clickToConnect'):_0x1091b4:_0x1091b4;}function _0x55cf98(_0x3ec510){const _0x144963=_0x53cc29;switch(_0x3ec510){case _0x35da5b[_0x144963(0x20f)][_0x144963(0x340)]:return _0x144963(0x2ec);case _0x35da5b[_0x144963(0x20f)]['CONNECTING']:case _0x35da5b[_0x144963(0x20f)][_0x144963(0x377)]:return'univer-text-yellow-500';case _0x35da5b['MCPConnectionStatus'][_0x144963(0x1f3)]:case _0x35da5b['MCPConnectionStatus']['DISCONNECTED']:return'univer-text-red-500';default:return _0x144963(0x2d3);}}function _0x4b120f(_0x291ab8){const _0x4ba4c5=_0x53cc29,{status$:_0x7438b7,error$:_0x4e044d,onConfigure:_0x5eb03d,showClickable:_0x2402de=!0x0}=_0x291ab8,_0x5ab9cf=_0x591869[_0x4ba4c5(0x301)](_0x7438b7,_0x35da5b[_0x4ba4c5(0x20f)][_0x4ba4c5(0x23b)]),_0x10543e=_0x591869[_0x4ba4c5(0x301)](_0x4e044d,_0x35da5b[_0x4ba4c5(0x380)][_0x4ba4c5(0x2b3)]),_0x1ab41a=_0x591869[_0x4ba4c5(0x36c)](_0xbe6e84[_0x4ba4c5(0x2d0)]),_0x3a0669=_0x5ab9cf===_0x35da5b[_0x4ba4c5(0x20f)][_0x4ba4c5(0x340)];_0x5ab9cf===_0x35da5b[_0x4ba4c5(0x20f)][_0x4ba4c5(0x257)]||_0x35da5b['MCPConnectionStatus'][_0x4ba4c5(0x377)];const _0x46bcad=_0x1ab41a['t'](_0x135605(_0x5ab9cf,_0x10543e)),_0x14b1f4=_0x3fa546(_0x5ab9cf,_0x10543e,_0x1ab41a,_0x2402de),_0x4b6cca=_0x55cf98(_0x5ab9cf),_0x2659de=_0x3a0669?_0x2b10e3[_0x4ba4c5(0x24d)](_0x23f009,{}):_0x2b10e3[_0x4ba4c5(0x24d)](_0x38d035,{}),_0x342b8a=_0x41e175[_0x4ba4c5(0x30c)](()=>{_0x2402de&&_0x5eb03d&&_0x5eb03d();},[_0x2402de,_0x5eb03d]);function _0x2d67fe(){const _0x22ddaa=_0x4ba4c5;return _0x2b10e3[_0x22ddaa(0x2db)](_0x22ddaa(0x272),{'className':_0x4d3ef2[_0x22ddaa(0x344)](_0x22ddaa(0x2be),_0x2402de&&_0x5eb03d&&'\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':_0x22ddaa(0x2a3),'onClick':_0x2402de&&_0x5eb03d?_0x342b8a:void 0x0,'children':[_0x2b10e3['jsx']('div',{'className':_0x4d3ef2['clsx'](_0x22ddaa(0x2d7),_0x4b6cca),'children':_0x2659de}),_0x2b10e3[_0x22ddaa(0x24d)](_0x22ddaa(0x272),{'className':_0x22ddaa(0x21e),'children':_0x46bcad})]});}return _0x2b10e3[_0x4ba4c5(0x24d)](_0x4d3ef2['Tooltip'],{'title':_0x14b1f4,'placement':'bottom','children':_0x2d67fe()});}var _0x2a8894=Object[_0x53cc29(0x31d)],_0x525724=(_0x4004e3,_0x3da3d6,_0x4ec3d6,_0x14bea6)=>{for(var _0x12b2f8=_0x14bea6>0x1?void 0x0:_0x14bea6?_0x2a8894(_0x3da3d6,_0x4ec3d6):_0x3da3d6,_0x4bbaae=_0x4004e3['length']-0x1,_0x1daf81;_0x4bbaae>=0x0;_0x4bbaae--)(_0x1daf81=_0x4004e3[_0x4bbaae])&&(_0x12b2f8=_0x1daf81(_0x12b2f8)||_0x12b2f8);return _0x12b2f8;},_0x3e4055=(_0x34f385,_0x1dc20d)=>(_0x2baf24,_0x33ecc7)=>_0x1dc20d(_0x2baf24,_0x33ecc7,_0x34f385);_0x67ef9d[_0x53cc29(0x2d2)]=class extends _0xbe6e84[_0x53cc29(0x361)]{constructor(_0x229e15,_0x436c50,_0x3b6a8b,_0x2ccf15){const _0x27b848=_0x53cc29;super(),this[_0x27b848(0x22d)]=_0x229e15,this[_0x27b848(0x30b)]=_0x436c50,this[_0x27b848(0x34f)]=_0x3b6a8b,this[_0x27b848(0x2a7)]=_0x2ccf15,this[_0x27b848(0x274)](),this[_0x27b848(0x252)]();}[_0x53cc29(0x274)](){const _0x2d858c=_0x53cc29,_0xb0d15d=this[_0x2d858c(0x2a7)][_0x2d858c(0x270)](_0x328837);_0xb0d15d!=null&&_0xb0d15d[_0x2d858c(0x2e0)]&&(this[_0x2d858c(0x30b)]['enableAutoConnect']=!0x1);}[_0x53cc29(0x252)](){const _0x324dd7=_0x53cc29,_0x1af20e=this[_0x324dd7(0x2a7)][_0x324dd7(0x270)](_0x328837);(_0x1af20e==null?void 0x0:_0x1af20e['showStatus'])!==!0x1&&this[_0x324dd7(0x318)](this[_0x324dd7(0x34f)]['registerComponent'](_0x591869[_0x324dd7(0x262)][_0x324dd7(0x241)],()=>{const _0xef42a9=_0x324dd7;var _0x10c34c;return _0x591869[_0xef42a9(0x359)](_0x234630({'status$':this[_0xef42a9(0x30b)][_0xef42a9(0x20c)],'error$':this[_0xef42a9(0x30b)]['connectionError$'],'onConfigure':()=>this[_0xef42a9(0x2c2)](),'showClickable':(_0x10c34c=_0x1af20e==null?void 0x0:_0x1af20e[_0xef42a9(0x2e0)])!=null?_0x10c34c:!0x1}),this[_0xef42a9(0x22d)]);}));}[_0x53cc29(0x2c2)](){const _0x364021=_0x53cc29;this[_0x364021(0x22d)]['get'](_0x67ef9d[_0x364021(0x27b)])[_0x364021(0x324)]();}},_0x67ef9d[_0x53cc29(0x2d2)]=_0x525724([_0x3e4055(0x0,_0xbe6e84[_0x53cc29(0x364)](_0xbe6e84[_0x53cc29(0x310)])),_0x3e4055(0x1,_0xbe6e84[_0x53cc29(0x364)](_0x35da5b[_0x53cc29(0x267)])),_0x3e4055(0x2,_0x591869[_0x53cc29(0x350)]),_0x3e4055(0x3,_0xbe6e84[_0x53cc29(0x2b8)])],_0x67ef9d[_0x53cc29(0x2d2)]);function _0x234630(_0x5e1e29){const {status$:_0x20c712,error$:_0x2ca9e5,onConfigure:_0x21b76b,showClickable:_0x3c51ef}=_0x5e1e29;return function(){const _0x5338df=_0x4225;return _0x2b10e3[_0x5338df(0x24d)](_0x4b120f,{'status$':_0x20c712,'error$':_0x2ca9e5,'onConfigure':_0x21b76b,'showClickable':_0x3c51ef});};}function _0x40c5b7(_0x46cb10){const _0x1b29ff=_0x53cc29;return{'id':_0x6f52da['id'],'type':_0x591869[_0x1b29ff(0x31e)][_0x1b29ff(0x29b)],'icon':_0x1b29ff(0x33b),'title':_0x1b29ff(0x20d),'tooltip':_0x1b29ff(0x20d)};}const _0x4b9d27={[_0x591869[_0x53cc29(0x300)][_0x53cc29(0x367)]]:{[_0x6f52da['id']]:{'order':0xa,'menuItemFactory':_0x40c5b7}}};var _0xb19a7b=Object[_0x53cc29(0x31d)],_0x5e8f24=(_0x346c55,_0x15cdc0,_0x21292a,_0x48da97)=>{const _0x53140c=_0x53cc29;for(var _0x12d90c=_0x48da97>0x1?void 0x0:_0x48da97?_0xb19a7b(_0x15cdc0,_0x21292a):_0x15cdc0,_0x4546be=_0x346c55[_0x53140c(0x2f3)]-0x1,_0x2aa6a7;_0x4546be>=0x0;_0x4546be--)(_0x2aa6a7=_0x346c55[_0x4546be])&&(_0x12d90c=_0x2aa6a7(_0x12d90c)||_0x12d90c);return _0x12d90c;},_0x2c625b=(_0x1ae124,_0x712202)=>(_0x4af391,_0x3a2ea4)=>_0x712202(_0x4af391,_0x3a2ea4,_0x1ae124);_0x67ef9d[_0x53cc29(0x34e)]=class extends _0xbe6e84[_0x53cc29(0x361)]{constructor(_0x3e606a,_0x3143b6){const _0xb952ed=_0x53cc29;super(),this[_0xb952ed(0x276)]=_0x3e606a,this[_0xb952ed(0x284)]=_0x3143b6,this[_0xb952ed(0x208)](),this[_0xb952ed(0x2f6)]();}[_0x53cc29(0x208)](){const _0x1a862a=_0x53cc29;[_0x6f52da][_0x1a862a(0x2ea)](_0x19901d=>{const _0x532855=_0x1a862a;this[_0x532855(0x318)](this[_0x532855(0x276)][_0x532855(0x381)](_0x19901d));});}[_0x53cc29(0x2f6)](){const _0x182f8c=_0x53cc29;this[_0x182f8c(0x284)]['mergeMenu'](_0x4b9d27);}},_0x67ef9d['MCPUIMenuController']=_0x5e8f24([_0x2c625b(0x0,_0xbe6e84[_0x53cc29(0x2c6)]),_0x2c625b(0x1,_0x591869[_0x53cc29(0x200)])],_0x67ef9d[_0x53cc29(0x34e)]);const _0x100b2a={'mcpStatus':{'disconnected':_0x53cc29(0x289),'connecting':_0x53cc29(0x299),'connected':_0x53cc29(0x28d),'failed':_0x53cc29(0x247),'retrying':'MCP\x20Retrying...','unknown':_0x53cc29(0x212),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x53cc29(0x287),'networkError':_0x53cc29(0x2c7),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x53cc29(0x2b9)},'mcpConfig':{'title':_0x53cc29(0x229),'description':_0x53cc29(0x374),'apiKey':_0x53cc29(0x307),'apiKeyPlaceholder':_0x53cc29(0x370),'apiKeyHint':_0x53cc29(0x235),'enableAuth':_0x53cc29(0x312),'enableAuthHint':_0x53cc29(0x32d),'connectionInfo':_0x53cc29(0x2cb),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x53cc29(0x36d),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x53cc29(0x20e),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x53cc29(0x228),'sessionId':'Session\x20ID','sessionIdDescription':_0x53cc29(0x278),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x53cc29(0x2d5),'save':'Save\x20Configuration','saving':_0x53cc29(0x211),'note1':_0x53cc29(0x309),'note2':_0x53cc29(0x259),'configSaved':_0x53cc29(0x31f),'configError':_0x53cc29(0x36a),'apiApplyInfo':{'title':_0x53cc29(0x23f),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x53cc29(0x236),'getStarted':_0x53cc29(0x328)},'validation':{'apiKeyRequired':_0x53cc29(0x313),'apiKeyTooShort':_0x53cc29(0x382),'invalidConfig':_0x53cc29(0x345),'invalidApiKey':_0x53cc29(0x2a4)},'connectionStatus':{'disconnected':_0x53cc29(0x23c),'connecting':_0x53cc29(0x271),'connected':_0x53cc29(0x2c4),'failed':_0x53cc29(0x37e),'retrying':_0x53cc29(0x28b)},'connectionError':{'unauthorized':_0x53cc29(0x26b),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x53cc29(0x325)}}},_0x5e02bc={'mcpStatus':{'disconnected':_0x53cc29(0x279),'connecting':_0x53cc29(0x355),'connected':'MCP\x20已连接','failed':'MCP\x20连接失败','retrying':_0x53cc29(0x30f),'unknown':_0x53cc29(0x302),'unauthorized':_0x53cc29(0x336),'sessionOccupied':_0x53cc29(0x360),'networkError':_0x53cc29(0x254),'maxRetriesExceeded':_0x53cc29(0x343),'clickToConnect':_0x53cc29(0x315),'clickToConfigure':_0x53cc29(0x2c0)},'mcpConfig':{'title':_0x53cc29(0x32a),'description':_0x53cc29(0x321),'apiKey':_0x53cc29(0x2ed),'apiKeyPlaceholder':_0x53cc29(0x263),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':'启用身份验证','enableAuthHint':_0x53cc29(0x349),'connectionInfo':_0x53cc29(0x37a),'mcpClientConfig':_0x53cc29(0x37a),'configInstructions':_0x53cc29(0x2a0),'configStepTitle':_0x53cc29(0x21a),'configStep1':_0x53cc29(0x35d),'configStep2':_0x53cc29(0x308),'configStep3':_0x53cc29(0x264),'sessionId':_0x53cc29(0x296),'sessionIdDescription':_0x53cc29(0x265),'authorizationDescription':_0x53cc29(0x218),'configParameters':_0x53cc29(0x292),'maxRetries':'最大重试次数','save':_0x53cc29(0x24a),'saving':_0x53cc29(0x365),'note1':_0x53cc29(0x2a8),'note2':_0x53cc29(0x24e),'configSaved':_0x53cc29(0x37b),'configError':'配置保存失败','apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x53cc29(0x2d6),'univerAiLabel':_0x53cc29(0x2bc),'getStarted':_0x53cc29(0x216)},'validation':{'apiKeyRequired':_0x53cc29(0x21b),'apiKeyTooShort':_0x53cc29(0x2f4),'invalidConfig':_0x53cc29(0x2d1),'invalidApiKey':_0x53cc29(0x2c8)},'connectionStatus':{'disconnected':'未连接','connecting':_0x53cc29(0x346),'connected':_0x53cc29(0x2d9),'failed':_0x53cc29(0x2b2),'retrying':_0x53cc29(0x2f1)},'connectionError':{'unauthorized':_0x53cc29(0x33a),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x53cc29(0x348),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var _0x4b4351=Object[_0x53cc29(0x320)],_0x67590=Object[_0x53cc29(0x31d)],_0x2f68bd=(_0x9f6c39,_0x50540b,_0x5bd993)=>_0x50540b in _0x9f6c39?_0x4b4351(_0x9f6c39,_0x50540b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5bd993}):_0x9f6c39[_0x50540b]=_0x5bd993,_0x56c803=(_0x3956b0,_0xe69a6d,_0x1aa911,_0x194b6b)=>{const _0x294144=_0x53cc29;for(var _0x37873d=_0x194b6b>0x1?void 0x0:_0x194b6b?_0x67590(_0xe69a6d,_0x1aa911):_0xe69a6d,_0x1589ed=_0x3956b0[_0x294144(0x2f3)]-0x1,_0x38eb36;_0x1589ed>=0x0;_0x1589ed--)(_0x38eb36=_0x3956b0[_0x1589ed])&&(_0x37873d=_0x38eb36(_0x37873d)||_0x37873d);return _0x37873d;},_0x270d8d=(_0x248b7d,_0x53a9a4)=>(_0x142554,_0x55fcd2)=>_0x53a9a4(_0x142554,_0x55fcd2,_0x248b7d),_0x48d033=(_0x31e62b,_0x50b626,_0x444d1c)=>_0x2f68bd(_0x31e62b,_0x50b626+'',_0x444d1c);_0x67ef9d[_0x53cc29(0x2b7)]=class extends _0xbe6e84[_0x53cc29(0x373)]{constructor(_0x38e27c=_0x13ed34,_0x364500,_0x482806,_0x3d7130,_0x5b16b2,_0x502476){const _0x35ff4b=_0x53cc29;super(),this[_0x35ff4b(0x362)]=_0x38e27c,this[_0x35ff4b(0x22d)]=_0x364500,this[_0x35ff4b(0x2a7)]=_0x482806,this[_0x35ff4b(0x34f)]=_0x3d7130,this[_0x35ff4b(0x378)]=_0x5b16b2,this['_localeService']=_0x502476;const {..._0x3a6b5e}=_0xbe6e84[_0x35ff4b(0x36b)]({},_0x13ed34,this['_config']);this[_0x35ff4b(0x2a7)][_0x35ff4b(0x22e)](_0x328837,_0x3a6b5e);}async['onStarting'](){const _0x564639=_0x53cc29,_0x1291ae=[[_0x67ef9d[_0x564639(0x2d2)]],[_0x67ef9d['MCPConfigUIController']],[_0x67ef9d[_0x564639(0x34e)]]];this['_injector']['has'](_0x5b409e['ISocketService'])||_0x1291ae[_0x564639(0x2e1)]([_0x5b409e[_0x564639(0x291)],{'useClass':_0x5b409e[_0x564639(0x2f8)]}]),_0x1291ae[_0x564639(0x2ea)](_0x5e7e1d=>this[_0x564639(0x22d)][_0x564639(0x34b)](_0x5e7e1d)),this[_0x564639(0x22d)][_0x564639(0x243)](_0x67ef9d[_0x564639(0x2d2)]),this[_0x564639(0x22d)]['get'](_0x67ef9d['MCPConfigUIController']),this[_0x564639(0x22d)][_0x564639(0x243)](_0x67ef9d['MCPUIMenuController']);}},_0x48d033(_0x67ef9d['UniverMCPUIPlugin'],'pluginName',_0x53cc29(0x286)),_0x67ef9d['UniverMCPUIPlugin']=_0x56c803([_0xbe6e84[_0x53cc29(0x20b)](_0x35da5b[_0x53cc29(0x28e)]),_0x270d8d(0x1,_0xbe6e84[_0x53cc29(0x364)](_0xbe6e84[_0x53cc29(0x310)])),_0x270d8d(0x2,_0xbe6e84[_0x53cc29(0x2b8)]),_0x270d8d(0x3,_0x591869[_0x53cc29(0x350)]),_0x270d8d(0x4,_0xbe6e84[_0x53cc29(0x341)]),_0x270d8d(0x5,_0xbe6e84[_0x53cc29(0x364)](_0xbe6e84[_0x53cc29(0x2d0)]))],_0x67ef9d[_0x53cc29(0x2b7)]),_0x67ef9d['MCPConfigPanel']=_0x402b85,_0x67ef9d[_0x53cc29(0x204)]=_0x4b120f,_0x67ef9d[_0x53cc29(0x273)]=_0x6f52da,_0x67ef9d[_0x53cc29(0x25d)]=_0x100b2a,_0x67ef9d[_0x53cc29(0x234)]=_0x5e02bc,Object['defineProperty'](_0x67ef9d,Symbol[_0x53cc29(0x240)],{'value':_0x53cc29(0x317)});}));
|
|
1
|
+
function _0x59fa(){const _0x3c6f22=['Max\x20Retries','MCP:\x20会话\x20ID\x20已被占用','CheckMarkIcon','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','univer-text-gray-500','displayName','_injector','MenuIcon','getOwnPropertyDescriptor','subscribeConfigValue$','univer.ai','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','_initializeMenus','Connection\x20Failed','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','disposeWithMe','UNAUTHORIZED','_registerComponent','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','_createConfigPanelComponent','API\x20Key','配置保存失败','warn','xlink:href','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','includes','配置参数:','_config','_initConfigSync','_componentManager','Disconnected','_mcpConnectionController','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','CONNECTING','Connecting...','启用身份验证','Plugin','merge','Save\x20Configuration','Univer\x20AI\x20控制台','API\x20key\x20with\x20Bearer\x20prefix.','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','_apiKey$','mcpStatus.disconnected','connectionError$','univer-text-sm\x20univer-font-medium','univer-bg-green-500','UniverProMcpUi','NONE','jsx','useCallback','div','showDeveloperTools','mcpConfig.connectionStatus.failed','UniverNetwork','univer-text-white','univer-flex\x20univer-items-start\x20univer-gap-3','MCP\x20客户端配置','mcpConfig.configStep2','_configService','保存配置','errorMessage','HelpIcon','@univerjs/ui','univer-flex\x20univer-items-center\x20univer-gap-2','univer-text-gray-400','push','showConfigPanel','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','将配置添加到您的\x20MCP\x20客户端设置文件中','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','权限验证失败,请检查您的\x20API\x20密钥','mcpConfig.configSaved','white','__setCustomHeaders','mcpStatus.failed','amd','_validateConfig','defineProperty','0\x200\x2016\x2016','MAX_RETRIES_EXCEEDED','配置更改将立即生效','1em','noopener\x20noreferrer','将以下配置添加到您的\x20MCP\x20客户端设置中:','mcp-config-dialog','sessionId$','MCPStatusDisplay','entries','MCP:\x20Network\x20Error','Click\x20to\x20configure\x20MCP','MCP\x20连接失败','BehaviorSubject','mcpStatus.connected','univer-text-sm\x20univer-text-gray-500','React','none','MCP\x20Connected','ComponentManager','mcpConfig.note2','UniverDesign','univer-space-y-4','trim','mergeMenu','validateApiKey','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','mcpConfig.connectionError.unauthorized','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','mcpConfig.connectionStatus.connecting','react','_menuManagerService','什么是\x20API\x20密钥?','UniverCore','MCPUIMenuController','RETRYING','190qhdpya','_handleConfigure','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','_localStorageService','Get\x20your\x20API\x20key\x20in\x20seconds','on-line-icon_clip0_910_349','https://console.univer.plus','配置保存成功','useRef','LocaleService','pre','url(#on-line-icon_clip0_910_349)','322056QgDzLW','https://console.univer.ai','连接中...','univer-bg-gray-500','register','univer-text-red-500','MCP\x20Configuration','apiKey','stringify','Connected','MCPConnectionError','8575699fewWhv','children','mcpConfig.configStep3','7527yIJocr','mcpConfig.saving','_loading$','UniverMCPPlugin','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','API\x20密钥长度至少需要\x2010\x20位','label','@univerjs-pro/mcp','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','current','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','最大重试次数','string','check-mark-icon','clsx','mcp.apiKey','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','_messageService','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20is\x20required','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP_UI_PLUGIN','createElement','univer-text-xs\x20univer-text-gray-500','Copy\x20the\x20JSON\x20configuration\x20below','MCPConnectionController','CommandType','Button','evenodd','MCP\x20配置','enUS','Configuration\x20Parameters:','function','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MessageType','Failed\x20to\x20save\x20configuration','MCP\x20Disconnected','未连接','mcp-ui.command.openConfigPanel','univer-text-green-500','univer-mr-2\x20univer-flex\x20univer-text-xl','您的\x20API\x20密钥安全存储在本地存储中','univer-space-y-5','connectInjector','M0\x200H16V16H0z','tag','mcpStatus.unauthorized','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','UniverUi','mcpConfig.apiApplyInfo.description','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','OTHERS','mcpConfig.configParameters','_commandService','MenuItemType','已连接','useState','Inject','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','forEach','API\x20密钥无效,请检查密钥是否正确','toString','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','mcpStatus.clickToConfigure','_dialogService','mcpServerUrl','rxjs','mcpConfig.apiApplyInfo.title','next','url(#$1','showStatus','add','ISocketService','off','enableAutoConnect','univer.plus','MCPConfigUIController','getCurrentConfig','replace','on-line-icon','idSuffix','clipPath','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','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','mcpConfig.configInstructions','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','mcpConfig.connectionStatus.retrying','span','mcpConfig.connectionInfo','API\x20密钥','mcpConfig.apiKeyPlaceholder','CONNECTED','DependentOn','mcpConfig.apiKeyHint','univer-bg-red-500','_initAutoConnect','MCP:\x20网络错误','ILocalStorageService','配置无效','IMessageService','univer-flex\x20univer-items-center','univer-text-blue-600','DISCONNECTED','Session\x20ID','UniverProMcp','会话\x20ID\x20已被占用,请稍后再试','Saving...','_loadStoredApiKey','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','MCP\x20Client\x20Configuration','jsxs','超出最大重试次数,请稍后再试','Click\x20to\x20connect\x20MCP','ICommandService','mcpConfig.connectionStatus.connected','use','currentColor','Enable\x20authentication\x20for\x20secure\x20connections','removeItem','useObservable','\x20-\x20','help-icon','react/jsx-runtime','几秒钟内获取您的\x20API\x20密钥','Configuration\x20saved\x20successfully','useDependency','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','http://www.w3.org/2000/svg','10tLagrA','setItem','点击连接\x20MCP','保存中...','random','MCP\x20状态未知','univer-min-w-0\x20univer-flex-1','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','univer_session_id:','http','defIds','fill','assign','url(#off-line-icon_clip0_910_343)','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','配置\x20MCP\x20使用\x20AI\x20操作电子表格','_config$','_handleConfigSave','179190hMJVoM','off-line-icon_clip0_910_343','3904mPyICS','univer-size-4','close-icon','Configuration\x20Notes:','2088ZQCHFg','mcpConfig.validation.apiKeyTooShort','svg','_logService','SESSION_ID_OCCUPIED','mcpConfig.validation.apiKeyRequired','onStarting','mcpConfig.connectionError.networkError','path','univer-flex\x20univer-flex-wrap\x20univer-gap-2','重启您的\x20MCP\x20客户端以使配置生效','299786tAfsrq','mcpStatus.sessionOccupied','MCP_PLUGIN_CONFIG_KEY','网络连接错误,请检查您的网络连接','connectionStatus$','univer-flex\x20univer-items-center\x20univer-gap-3','toStringTag','mcp-ui.config','OpenMCPConfigPanelCommand','@univerjs/network','mcpConfig.connectionError.maxRetriesExceeded','round','_mcpCoreConfig$','COMMAND','length','MCPConfigPanel','OnLineIcon','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','getItem','show','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','mcpConfig.configStep1','univer-font-medium','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','mcpConfig.validation.invalidConfig','Retrying...','mask','colorChannel1','value','Enter\x20your\x20API\x20key','<API_KEY>','mcpStatus.networkError','Invalid\x20configuration','MCPConnectionStatus','Injector','mcpConfig.title','_initializeCommands','28685BpDNpk','启用身份验证以获得安全连接','zhCN','univerjs-icon\x20univerjs-icon-','close','FAILED','mcpConfig.sessionIdDescription','IDialogService','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','带有\x20Bearer\x20前缀的\x20API\x20密钥。','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','univer-shrink-0\x20univer-text-blue-500','subscribe','mcpConfig.description','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','IConfigService','mcpStatus.maxRetriesExceeded','registerComponent','Success','MCP\x20Connection\x20Failed','IUIPartsService','UniverIcon','20VofmIJ','substring','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','Disposable','mcpConfig.save','mcpConfig.configStepTitle','复制以下\x20JSON\x20配置','连接失败','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','map','getConfig','_connectionController','get','forwardRef','mcpConfig.apiApplyInfo.getStarted','defs','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','重连中...','mcpConfig.note1','NETWORK_ERROR','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','univer-flex\x20univer-gap-3','MCPConnectionUIController','mcpStatus.clickToConnect','_localeService','univer-text-yellow-500','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','UniverMCPUIPlugin','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','text','_initStatusComponent','mcpStatus.connecting','Bearer\x20','open','Enable\x20Authentication','Error','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','object','attrs','univer-space-y-2','MCP\x20已连接','_uiPartsService','button','mcpStatus.retrying','mcpConfig.apiKey'];_0x59fa=function(){return _0x3c6f22;};return _0x59fa();}function _0x4a32(_0x137bc9,_0x342944){_0x137bc9=_0x137bc9-0x1a3;const _0x59fa28=_0x59fa();let _0x4a32b8=_0x59fa28[_0x137bc9];return _0x4a32b8;}(function(_0x12cb2e,_0xd8b77){const _0x4db1e2=_0x4a32,_0x3e9ee0=_0x12cb2e();while(!![]){try{const _0x472c63=-parseInt(_0x4db1e2(0x31b))/0x1+parseInt(_0x4db1e2(0x25c))/0x2*(-parseInt(_0x4db1e2(0x276))/0x3)+-parseInt(_0x4db1e2(0x1bc))/0x4*(-parseInt(_0x4db1e2(0x1a4))/0x5)+-parseInt(_0x4db1e2(0x30a))/0x6+parseInt(_0x4db1e2(0x268))/0x7+-parseInt(_0x4db1e2(0x30c))/0x8*(parseInt(_0x4db1e2(0x310))/0x9)+-parseInt(_0x4db1e2(0x2f8))/0xa*(-parseInt(_0x4db1e2(0x273))/0xb);if(_0x472c63===_0xd8b77)break;else _0x3e9ee0['push'](_0x3e9ee0['shift']());}catch(_0x19ec96){_0x3e9ee0['push'](_0x3e9ee0['shift']());}}}(_0x59fa,0x2a418),function(_0x2e78fa,_0x4bded3){const _0x101879=_0x4a32;typeof exports==_0x101879(0x1e1)&&typeof module<'u'?_0x4bded3(exports,require('@univerjs/core'),require('react/jsx-runtime'),require('@univerjs-pro/mcp'),require('@univerjs/design'),require('@univerjs/ui'),require('rxjs'),require('react'),require('@univerjs/network')):typeof define==_0x101879(0x297)&&define[_0x101879(0x235)]?define(['exports','@univerjs/core',_0x101879(0x2f2),_0x101879(0x27d),'@univerjs/design',_0x101879(0x228),_0x101879(0x2b9),_0x101879(0x256),_0x101879(0x324)],_0x4bded3):(_0x2e78fa=typeof globalThis<'u'?globalThis:_0x2e78fa||self,_0x4bded3(_0x2e78fa[_0x101879(0x218)]={},_0x2e78fa[_0x101879(0x259)],_0x2e78fa[_0x101879(0x248)],_0x2e78fa[_0x101879(0x2df)],_0x2e78fa[_0x101879(0x24d)],_0x2e78fa[_0x101879(0x2a7)],_0x2e78fa[_0x101879(0x2b9)],_0x2e78fa[_0x101879(0x248)],_0x2e78fa[_0x101879(0x21f)]));}(this,function(_0x4b7168,_0x293f76,_0x31203f,_0x3c8e4d,_0x41ce79,_0x3f6d85,_0x2a6035,_0x46e89f,_0x4e486b){'use strict';const _0x2ad8e8=_0x4a32;var _0x3fe3e2=Object[_0x2ad8e8(0x237)],_0x4cb309=(_0x2cb565,_0x582400,_0x213929)=>_0x582400 in _0x2cb565?_0x3fe3e2(_0x2cb565,_0x582400,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x213929}):_0x2cb565[_0x582400]=_0x213929,_0x31ffaa=(_0x154057,_0x19cefc,_0x585b4c)=>_0x4cb309(_0x154057,typeof _0x19cefc!='symbol'?_0x19cefc+'':_0x19cefc,_0x585b4c);function _0x221adf({ref:_0x5a3d35,..._0x263966}){const _0x455507=_0x2ad8e8,{icon:_0x5098ac,id:_0x127f68,className:_0x5040bd,extend:_0x1a47fe,..._0x406c60}=_0x263966,_0x460467=(_0x455507(0x1a7)+_0x127f68+'\x20'+(_0x5040bd||''))[_0x455507(0x24f)](),_0x24c576=_0x46e89f[_0x455507(0x264)]('_'+_0x5ac288());return _0x2db7d8(_0x5098ac,''+_0x127f68,{'defIds':_0x5098ac[_0x455507(0x302)],'idSuffix':_0x24c576[_0x455507(0x27f)]},{'ref':_0x5a3d35,'className':_0x460467,..._0x406c60},_0x1a47fe);}function _0x2db7d8(_0x116b69,_0x16bcb1,_0x190b3f,_0x1eaad0,_0x19b6ea){const _0xcc8b2d=_0x2ad8e8;return _0x46e89f['createElement'](_0x116b69['tag'],{'key':_0x16bcb1,..._0xda531d(_0x116b69,_0x190b3f,_0x19b6ea),..._0x1eaad0},(_0x629e0f(_0x116b69,_0x190b3f)[_0xcc8b2d(0x274)]||[])[_0xcc8b2d(0x1c5)]((_0x4af48e,_0x188e3e)=>_0x2db7d8(_0x4af48e,_0x16bcb1+'-'+_0x116b69['tag']+'-'+_0x188e3e,_0x190b3f,void 0x0,_0x19b6ea)));}function _0xda531d(_0x487f5a,_0x1acd02,_0xef8c1b){const _0x39a234=_0x2ad8e8,_0x3c0310={..._0x487f5a['attrs']};_0xef8c1b!=null&&_0xef8c1b['colorChannel1']&&_0x3c0310[_0x39a234(0x303)]===_0x39a234(0x336)&&(_0x3c0310['fill']=_0xef8c1b[_0x39a234(0x336)]),_0x487f5a[_0x39a234(0x2a4)]==='mask'&&_0x3c0310['id']&&(_0x3c0310['id']=_0x3c0310['id']+_0x1acd02['idSuffix']),Object[_0x39a234(0x241)](_0x3c0310)[_0x39a234(0x2b2)](([_0x3b4659,_0x411ef7])=>{const _0x4ef455=_0x39a234;_0x3b4659===_0x4ef455(0x335)&&typeof _0x411ef7==_0x4ef455(0x282)&&(_0x3c0310[_0x3b4659]=_0x411ef7['replace'](/url\(#(.*)\)/,_0x4ef455(0x2bc)+_0x1acd02[_0x4ef455(0x2c7)]+')'));});const {defIds:_0x7108ec}=_0x1acd02;return!_0x7108ec||_0x7108ec[_0x39a234(0x329)]===0x0||(_0x487f5a[_0x39a234(0x2a4)]===_0x39a234(0x2eb)&&_0x3c0310['xlink:href']&&(_0x3c0310[_0x39a234(0x200)]=_0x3c0310['xlink:href']+_0x1acd02['idSuffix']),Object[_0x39a234(0x241)](_0x3c0310)[_0x39a234(0x2b2)](([_0x236d08,_0x1b2982])=>{const _0x49e948=_0x39a234;typeof _0x1b2982=='string'&&(_0x3c0310[_0x236d08]=_0x1b2982[_0x49e948(0x2c5)](/url\(#(.*)\)/,_0x49e948(0x2bc)+_0x1acd02[_0x49e948(0x2c7)]+')'));})),_0x3c0310;}function _0x629e0f(_0x5c921d,_0x46e98b){const _0x38e85f=_0x2ad8e8;var _0x41ef5a;const {defIds:_0x1cd80d}=_0x46e98b;return!_0x1cd80d||_0x1cd80d['length']===0x0?_0x5c921d:_0x5c921d[_0x38e85f(0x2a4)]===_0x38e85f(0x1cb)&&((_0x41ef5a=_0x5c921d[_0x38e85f(0x274)])!=null&&_0x41ef5a[_0x38e85f(0x329)])?{..._0x5c921d,'children':_0x5c921d[_0x38e85f(0x274)]['map'](_0x2e1ae2=>typeof _0x2e1ae2[_0x38e85f(0x1e2)]['id']=='string'&&_0x1cd80d&&_0x1cd80d[_0x38e85f(0x202)](_0x2e1ae2['attrs']['id'])?{..._0x2e1ae2,'attrs':{..._0x2e1ae2['attrs'],'id':_0x2e1ae2[_0x38e85f(0x1e2)]['id']+_0x46e98b[_0x38e85f(0x2c7)]}}:_0x2e1ae2)}:_0x5c921d;}function _0x5ac288(){const _0x4d050d=_0x2ad8e8;return Math[_0x4d050d(0x2fc)]()[_0x4d050d(0x2b4)](0x24)[_0x4d050d(0x1bd)](0x2,0x8);}_0x221adf[_0x2ad8e8(0x1ee)]=_0x2ad8e8(0x1bb);const _0x53c9b6={'tag':_0x2ad8e8(0x312),'attrs':{'xmlns':_0x2ad8e8(0x2f7),'fill':_0x2ad8e8(0x249),'viewBox':_0x2ad8e8(0x238),'width':'1em','height':_0x2ad8e8(0x23b)},'children':[{'tag':_0x2ad8e8(0x318),'attrs':{'fill':_0x2ad8e8(0x2ec),'d':_0x2ad8e8(0x332),'fillRule':_0x2ad8e8(0x293),'clipRule':'evenodd'}}]},_0x5df9ae=_0x46e89f['forwardRef'](function(_0x516923,_0x78f1e){const _0xb6143b=_0x2ad8e8;return _0x46e89f['createElement'](_0x221adf,Object[_0xb6143b(0x304)]({},_0x516923,{'id':_0xb6143b(0x283),'ref':_0x78f1e,'icon':_0x53c9b6}));});_0x5df9ae[_0x2ad8e8(0x1ee)]=_0x2ad8e8(0x1eb);const _0x3a54df={'tag':_0x2ad8e8(0x312),'attrs':{'xmlns':_0x2ad8e8(0x2f7),'fill':_0x2ad8e8(0x249),'viewBox':_0x2ad8e8(0x238),'width':_0x2ad8e8(0x23b),'height':_0x2ad8e8(0x23b)},'children':[{'tag':_0x2ad8e8(0x318),'attrs':{'fill':_0x2ad8e8(0x2ec),'d':_0x2ad8e8(0x22d)}}]},_0x14de93=_0x46e89f['forwardRef'](function(_0x25e2d9,_0x3a780c){const _0x4d984b=_0x2ad8e8;return _0x46e89f[_0x4d984b(0x28d)](_0x221adf,Object[_0x4d984b(0x304)]({},_0x25e2d9,{'id':_0x4d984b(0x30e),'ref':_0x3a780c,'icon':_0x3a54df}));});_0x14de93['displayName']='CloseIcon';const _0x1f7dc6={'tag':_0x2ad8e8(0x312),'attrs':{'xmlns':_0x2ad8e8(0x2f7),'fill':_0x2ad8e8(0x249),'viewBox':_0x2ad8e8(0x238),'width':'1em','height':_0x2ad8e8(0x23b)},'children':[{'tag':'path','attrs':{'fill':_0x2ad8e8(0x2ec),'d':_0x2ad8e8(0x254)}},{'tag':'path','attrs':{'fill':_0x2ad8e8(0x2ec),'d':'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'}},{'tag':_0x2ad8e8(0x318),'attrs':{'fill':'currentColor','d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':_0x2ad8e8(0x293),'clipRule':'evenodd'}}]},_0x3763b9=_0x46e89f[_0x2ad8e8(0x1c9)](function(_0x4a5d39,_0x159c19){const _0x34d811=_0x2ad8e8;return _0x46e89f[_0x34d811(0x28d)](_0x221adf,Object['assign']({},_0x4a5d39,{'id':_0x34d811(0x2f1),'ref':_0x159c19,'icon':_0x1f7dc6}));});_0x3763b9[_0x2ad8e8(0x1ee)]=_0x2ad8e8(0x227);const _0x43bd00={'tag':'svg','attrs':{'xmlns':_0x2ad8e8(0x2f7),'fill':_0x2ad8e8(0x249),'viewBox':_0x2ad8e8(0x238),'width':_0x2ad8e8(0x23b),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x2ad8e8(0x305)},'children':[{'tag':_0x2ad8e8(0x318),'attrs':{'stroke':_0x2ad8e8(0x2ec),'d':_0x2ad8e8(0x2c9),'strokeLinecap':_0x2ad8e8(0x326),'strokeLinejoin':_0x2ad8e8(0x326),'strokeWidth':1.2}}]},{'tag':_0x2ad8e8(0x1cb),'attrs':{},'children':[{'tag':_0x2ad8e8(0x2c8),'attrs':{'id':_0x2ad8e8(0x30b)},'children':[{'tag':_0x2ad8e8(0x318),'attrs':{'fill':_0x2ad8e8(0x232),'d':_0x2ad8e8(0x2a3)}}]}]}],'defIds':[_0x2ad8e8(0x30b)]},_0x15c763=_0x46e89f[_0x2ad8e8(0x1c9)](function(_0x2804d9,_0x28adee){const _0x4a30f7=_0x2ad8e8;return _0x46e89f['createElement'](_0x221adf,Object[_0x4a30f7(0x304)]({},_0x2804d9,{'id':'off-line-icon','ref':_0x28adee,'icon':_0x43bd00}));});_0x15c763[_0x2ad8e8(0x1ee)]='OffLineIcon';const _0x3ddb5c={'tag':_0x2ad8e8(0x312),'attrs':{'xmlns':_0x2ad8e8(0x2f7),'fill':_0x2ad8e8(0x249),'viewBox':'0\x200\x2017\x2016','width':_0x2ad8e8(0x23b),'height':_0x2ad8e8(0x23b)},'children':[{'tag':'g','attrs':{'clipPath':_0x2ad8e8(0x267)},'children':[{'tag':_0x2ad8e8(0x318),'attrs':{'stroke':_0x2ad8e8(0x2ec),'d':_0x2ad8e8(0x1ec),'strokeLinecap':_0x2ad8e8(0x326),'strokeLinejoin':_0x2ad8e8(0x326),'strokeWidth':1.2}}]},{'tag':_0x2ad8e8(0x1cb),'attrs':{},'children':[{'tag':_0x2ad8e8(0x2c8),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x2ad8e8(0x318),'attrs':{'fill':_0x2ad8e8(0x232),'d':_0x2ad8e8(0x2a3),'transform':'translate(.97)'}}]}]}],'defIds':[_0x2ad8e8(0x261)]},_0x57cdb7=_0x46e89f[_0x2ad8e8(0x1c9)](function(_0x5f14f3,_0x5dbfed){const _0xa285ed=_0x2ad8e8;return _0x46e89f[_0xa285ed(0x28d)](_0x221adf,Object[_0xa285ed(0x304)]({},_0x5f14f3,{'id':_0xa285ed(0x2c6),'ref':_0x5dbfed,'icon':_0x3ddb5c}));});_0x57cdb7['displayName']=_0x2ad8e8(0x32b);function _0x4ec90(_0x56705e){const _0x334cd6=_0x2ad8e8;var _0x44c4c1,_0x10ab5e;const {mcpCoreConfig:_0x1ea975,onSave:_0x5ef2b5,loading:_0x35d3e5=!0x1,config:_0x541f08,connectionStatus$:_0x3390b0,connectionError$:_0x2b4187,currentApiKey$:_0xed98a0,currentSessionId$:_0x191461}=_0x56705e,_0x2fc1bc=_0x3f6d85[_0x334cd6(0x2f5)](_0x293f76[_0x334cd6(0x265)]),_0x179f75=_0x3f6d85['useObservable'](_0x3390b0,_0x3c8e4d[_0x334cd6(0x33c)]['DISCONNECTED']),_0x501b66=_0x3f6d85[_0x334cd6(0x2ef)](_0x2b4187,_0x3c8e4d['MCPConnectionError'][_0x334cd6(0x219)]),_0x20887e=_0x3f6d85[_0x334cd6(0x2ef)](_0x191461,''),_0x29a8a0=_0x3f6d85[_0x334cd6(0x2ef)](_0xed98a0,''),[_0x482395,_0x37e3bc]=_0x46e89f[_0x334cd6(0x2af)](_0x29a8a0||''),_0x1fef89=!0x0,_0x2b69b4=_0x541f08[_0x334cd6(0x21d)]&&_0x1ea975[_0x334cd6(0x2b8)]&&(_0x1ea975[_0x334cd6(0x2b8)][_0x334cd6(0x202)](_0x334cd6(0x2c2))||_0x1ea975[_0x334cd6(0x2b8)][_0x334cd6(0x202)]('univer.ai')),_0x5b7a2a=(_0x44c4c1=_0x1ea975[_0x334cd6(0x2b8)])==null?void 0x0:_0x44c4c1[_0x334cd6(0x202)](_0x334cd6(0x2c2)),_0x1de9b4=(_0x10ab5e=_0x1ea975[_0x334cd6(0x2b8)])==null?void 0x0:_0x10ab5e[_0x334cd6(0x202)](_0x334cd6(0x1f3)),_0x1db7be=_0x5b7a2a?_0x334cd6(0x262):_0x334cd6(0x269),_0xb2a7fb=_0x541f08['showDeveloperTools']&&(_0x5b7a2a||_0x1de9b4),[_0x2416c5,_0x32513a]=_0x46e89f[_0x334cd6(0x2af)](!_0x482395['trim']()),_0x4e1a3a=(_0x48acf2,_0x389e01)=>{const _0x45a2d7=_0x334cd6;if(_0x389e01===_0x3c8e4d[_0x45a2d7(0x272)]['UNAUTHORIZED'])return _0x45a2d7(0x1f4);switch(_0x48acf2){case _0x3c8e4d[_0x45a2d7(0x33c)][_0x45a2d7(0x2d2)]:return _0x45a2d7(0x2cc);case _0x3c8e4d[_0x45a2d7(0x33c)][_0x45a2d7(0x20a)]:case _0x3c8e4d['MCPConnectionStatus'][_0x45a2d7(0x25b)]:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case _0x3c8e4d['MCPConnectionStatus'][_0x45a2d7(0x1a9)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x45a2d7(0x27e);}},_0x409b9d=(_0x2f4d9,_0x5085b5)=>{const _0x544262=_0x334cd6;if(_0x5085b5===_0x3c8e4d[_0x544262(0x272)][_0x544262(0x1f9)])return _0x544262(0x2d5);switch(_0x2f4d9){case _0x3c8e4d[_0x544262(0x33c)][_0x544262(0x2d2)]:return _0x544262(0x217);case _0x3c8e4d['MCPConnectionStatus'][_0x544262(0x20a)]:case _0x3c8e4d[_0x544262(0x33c)][_0x544262(0x25b)]:return'univer-bg-blue-500';case _0x3c8e4d[_0x544262(0x33c)][_0x544262(0x1a9)]:return _0x544262(0x2d5);default:return _0x544262(0x26b);}},_0x5e1a21=_0x278731=>{const _0x1ef93f=_0x334cd6;switch(_0x278731){case _0x3c8e4d[_0x1ef93f(0x33c)]['CONNECTED']:return _0x2fc1bc['t'](_0x1ef93f(0x2ea));case _0x3c8e4d[_0x1ef93f(0x33c)]['CONNECTING']:return _0x2fc1bc['t'](_0x1ef93f(0x255));case _0x3c8e4d[_0x1ef93f(0x33c)][_0x1ef93f(0x1a9)]:return _0x2fc1bc['t'](_0x1ef93f(0x21e));case _0x3c8e4d['MCPConnectionStatus'][_0x1ef93f(0x25b)]:return _0x2fc1bc['t'](_0x1ef93f(0x2cd));default:return _0x2fc1bc['t']('mcpConfig.connectionStatus.disconnected');}},_0x5817fb=_0xaedac=>{const _0x35d01d=_0x334cd6;switch(_0xaedac){case _0x3c8e4d[_0x35d01d(0x272)]['UNAUTHORIZED']:return _0x2fc1bc['t'](_0x35d01d(0x253));case _0x3c8e4d[_0x35d01d(0x272)][_0x35d01d(0x314)]:return _0x2fc1bc['t']('mcpConfig.connectionError.sessionOccupied');case _0x3c8e4d[_0x35d01d(0x272)][_0x35d01d(0x1cf)]:return _0x2fc1bc['t'](_0x35d01d(0x317));case _0x3c8e4d[_0x35d01d(0x272)][_0x35d01d(0x239)]:return _0x2fc1bc['t'](_0x35d01d(0x325));default:return'';}},_0x44b5cd=_0x46e89f['useCallback'](()=>{const _0x118113=_0x334cd6,_0x57a310={..._0x1ea975,'apiKey':_0x482395[_0x118113(0x24f)](),'enableAuth':_0x1fef89};_0x5ef2b5(_0x57a310);},[_0x1ea975,_0x482395,_0x1fef89,_0x5ef2b5]),_0x5b6234=_0x482395[_0x334cd6(0x24f)]()['length']>0x0;return _0x31203f['jsxs']('div',{'className':_0x334cd6(0x2e4),'children':[_0x31203f[_0x334cd6(0x21a)](_0x334cd6(0x21c),{'className':_0x334cd6(0x1c4),'children':_0x31203f['jsxs']('div',{'className':_0x334cd6(0x320),'children':[_0x31203f[_0x334cd6(0x21a)](_0x334cd6(0x21c),{'className':_0x334cd6(0x201),'children':_0x31203f[_0x334cd6(0x21a)](_0x334cd6(0x2ce),{'className':_0x334cd6(0x220),'children':'⚙'})}),_0x31203f[_0x334cd6(0x21a)](_0x334cd6(0x21c),{'children':_0x31203f[_0x334cd6(0x21a)]('p',{'className':_0x334cd6(0x247),'children':_0x2fc1bc['t'](_0x334cd6(0x1b2))})})]})}),_0x31203f[_0x334cd6(0x2e6)](_0x334cd6(0x21c),{'className':_0x334cd6(0x1d6),'children':[_0x31203f[_0x334cd6(0x21a)]('div',{'className':_0x41ce79[_0x334cd6(0x284)](_0x334cd6(0x2e3),_0x4e1a3a(_0x179f75,_0x501b66)),'children':_0x31203f[_0x334cd6(0x2e6)](_0x334cd6(0x21c),{'className':_0x334cd6(0x229),'children':[_0x31203f[_0x334cd6(0x21a)](_0x334cd6(0x21c),{'className':_0x41ce79[_0x334cd6(0x284)]('univer-size-2\x20univer-rounded-full',_0x409b9d(_0x179f75,_0x501b66))}),_0x31203f['jsx'](_0x334cd6(0x2ce),{'className':_0x334cd6(0x216),'children':_0x5e1a21(_0x179f75)})]})}),_0x501b66!==_0x3c8e4d[_0x334cd6(0x272)][_0x334cd6(0x219)]&&(_0x179f75===_0x3c8e4d[_0x334cd6(0x33c)]['FAILED']||_0x501b66===_0x3c8e4d[_0x334cd6(0x272)][_0x334cd6(0x1f9)])&&_0x31203f[_0x334cd6(0x21a)](_0x334cd6(0x21c),{'className':_0x334cd6(0x2b1),'children':_0x31203f['jsxs'](_0x334cd6(0x21c),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0x31203f[_0x334cd6(0x21a)](_0x334cd6(0x2ce),{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0x31203f[_0x334cd6(0x21a)]('p',{'className':_0x334cd6(0x2ff),'children':_0x5817fb(_0x501b66)})]})})]}),_0x31203f[_0x334cd6(0x21a)](_0x334cd6(0x21c),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0x31203f[_0x334cd6(0x2e6)]('div',{'className':_0x334cd6(0x2a1),'children':[_0x31203f[_0x334cd6(0x2e6)](_0x334cd6(0x21c),{'className':'univer-space-y-2','children':[_0x31203f['jsxs'](_0x334cd6(0x27c),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x31203f[_0x334cd6(0x21a)]('span',{'children':'🔑'}),'\x20',_0x2fc1bc['t'](_0x334cd6(0x1e8)),_0x31203f['jsx'](_0x334cd6(0x2ce),{'className':_0x334cd6(0x26d),'children':'*'}),_0x2b69b4&&_0x31203f[_0x334cd6(0x21a)]('a',{'className':'univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x2fc1bc['t'](_0x334cd6(0x2ba)),'role':_0x334cd6(0x1e6),'onClick':()=>_0x32513a(!0x0),'children':_0x31203f[_0x334cd6(0x21a)](_0x3763b9,{})})]}),_0x31203f[_0x334cd6(0x21a)](_0x41ce79['Input'],{'type':_0x334cd6(0x1d9),'placeholder':_0x2fc1bc['t'](_0x334cd6(0x2d1)),'value':_0x482395,'disabled':_0x35d3e5,'autoComplete':_0x334cd6(0x2c0),'onChange':_0x37e3bc}),_0x31203f[_0x334cd6(0x21a)]('p',{'className':_0x334cd6(0x28e),'children':_0x2fc1bc['t'](_0x334cd6(0x2d4))})]}),_0x2b69b4&&_0x2416c5&&_0x31203f[_0x334cd6(0x2e6)](_0x334cd6(0x21c),{'className':_0x334cd6(0x32c),'children':[_0x31203f['jsx']('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':'button','onClick':()=>_0x32513a(!0x1),'children':_0x31203f['jsx'](_0x14de93,{'className':_0x334cd6(0x30d)})}),_0x31203f['jsxs']('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x31203f['jsx'](_0x334cd6(0x21c),{'className':_0x334cd6(0x1b4),'children':_0x31203f['jsx'](_0x334cd6(0x2ce),{'className':_0x334cd6(0x2dc),'children':'🚀'})}),_0x31203f[_0x334cd6(0x2e6)]('div',{'className':'univer-flex-1','children':[_0x31203f[_0x334cd6(0x21a)]('h4',{'className':_0x334cd6(0x2a9),'children':_0x2fc1bc['t'](_0x334cd6(0x2ba))}),_0x31203f[_0x334cd6(0x21a)]('p',{'className':_0x334cd6(0x1e0),'children':_0x2fc1bc['t'](_0x334cd6(0x2a8))}),_0x31203f['jsx']('div',{'className':_0x334cd6(0x319),'children':_0xb2a7fb&&_0x31203f[_0x334cd6(0x2e6)]('a',{'className':_0x334cd6(0x280),'href':_0x1db7be,'target':'_blank','rel':_0x334cd6(0x23c),'children':[_0x31203f['jsx'](_0x334cd6(0x2ce),{'children':'🤖'}),_0x2fc1bc['t']('mcpConfig.apiApplyInfo.univerAiLabel'),_0x31203f[_0x334cd6(0x21a)](_0x334cd6(0x2ce),{'className':_0x334cd6(0x22a),'children':'↗'})]})}),_0x31203f['jsxs'](_0x334cd6(0x21c),{'className':_0x334cd6(0x2a6),'children':['✨','\x20',_0x2fc1bc['t'](_0x334cd6(0x1ca))]})]})]})]}),_0x541f08['showDeveloperTools']&&_0x31203f[_0x334cd6(0x2e6)](_0x334cd6(0x21c),{'className':_0x334cd6(0x1cc),'children':[_0x31203f[_0x334cd6(0x2e6)]('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x31203f[_0x334cd6(0x21a)]('span',{'children':'🔗'}),'\x20',_0x2fc1bc['t'](_0x334cd6(0x2cf))]}),_0x31203f[_0x334cd6(0x2e6)](_0x334cd6(0x21c),{'className':_0x334cd6(0x24e),'children':[_0x31203f[_0x334cd6(0x2e6)](_0x334cd6(0x21c),{'className':'univer-space-y-3','children':[_0x31203f[_0x334cd6(0x21a)]('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x2fc1bc['t'](_0x334cd6(0x2cb))}),_0x31203f[_0x334cd6(0x2e6)](_0x334cd6(0x21c),{'className':_0x334cd6(0x1e3),'children':[_0x31203f[_0x334cd6(0x21a)](_0x334cd6(0x21c),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x2fc1bc['t'](_0x334cd6(0x1c1))}),_0x31203f['jsxs'](_0x334cd6(0x21c),{'className':_0x334cd6(0x252),'children':[_0x31203f[_0x334cd6(0x2e6)](_0x334cd6(0x21c),{'className':_0x334cd6(0x229),'children':[_0x31203f['jsx'](_0x334cd6(0x2ce),{'className':_0x334cd6(0x32f),'children':'1'}),_0x2fc1bc['t'](_0x334cd6(0x330))]}),_0x31203f[_0x334cd6(0x2e6)](_0x334cd6(0x21c),{'className':_0x334cd6(0x229),'children':[_0x31203f['jsx'](_0x334cd6(0x2ce),{'className':_0x334cd6(0x32f),'children':'2'}),_0x2fc1bc['t'](_0x334cd6(0x223))]}),_0x31203f['jsxs'](_0x334cd6(0x21c),{'className':_0x334cd6(0x229),'children':[_0x31203f[_0x334cd6(0x21a)](_0x334cd6(0x2ce),{'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'}),_0x2fc1bc['t'](_0x334cd6(0x275))]})]})]})]}),_0x31203f[_0x334cd6(0x2e6)](_0x334cd6(0x21c),{'className':'univer-space-y-2','children':[_0x31203f[_0x334cd6(0x21a)]('div',{'className':_0x334cd6(0x25e),'children':_0x334cd6(0x26e)}),_0x31203f[_0x334cd6(0x21a)](_0x334cd6(0x21c),{'className':_0x334cd6(0x1af),'children':_0x31203f[_0x334cd6(0x21a)](_0x334cd6(0x266),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON[_0x334cd6(0x270)]({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0x20887e||'<SESSION_ID>'),'type':_0x334cd6(0x301),'headers':{'Authorization':_0x334cd6(0x1dc)+(_0x482395||_0x334cd6(0x339))}}}},null,0x2)})})]}),_0x31203f['jsxs'](_0x334cd6(0x21c),{'className':'univer-space-y-3','children':[_0x31203f[_0x334cd6(0x21a)](_0x334cd6(0x21c),{'className':_0x334cd6(0x25e),'children':_0x2fc1bc['t'](_0x334cd6(0x2ab))}),_0x31203f[_0x334cd6(0x2e6)](_0x334cd6(0x21c),{'className':_0x334cd6(0x1e3),'children':[_0x31203f[_0x334cd6(0x2e6)](_0x334cd6(0x21c),{'className':_0x334cd6(0x221),'children':[_0x31203f[_0x334cd6(0x21a)](_0x334cd6(0x21c),{'className':_0x334cd6(0x306)}),_0x31203f['jsxs'](_0x334cd6(0x21c),{'className':_0x334cd6(0x2fe),'children':[_0x31203f['jsx'](_0x334cd6(0x21c),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x334cd6(0x300)}),_0x31203f[_0x334cd6(0x21a)](_0x334cd6(0x21c),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x2fc1bc['t'](_0x334cd6(0x1aa))})]})]}),_0x31203f[_0x334cd6(0x2e6)](_0x334cd6(0x21c),{'className':_0x334cd6(0x221),'children':[_0x31203f[_0x334cd6(0x21a)](_0x334cd6(0x21c),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x31203f['jsxs']('div',{'className':_0x334cd6(0x2fe),'children':[_0x31203f[_0x334cd6(0x21a)]('div',{'className':_0x334cd6(0x1be),'children':'Authorization:'}),_0x31203f['jsx']('div',{'className':_0x334cd6(0x28e),'children':_0x2fc1bc['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x31203f[_0x334cd6(0x21a)](_0x41ce79[_0x334cd6(0x292)],{'onClick':_0x44b5cd,'disabled':!_0x5b6234||_0x35d3e5,'className':_0x334cd6(0x1d8),'children':_0x35d3e5?_0x31203f[_0x334cd6(0x2e6)](_0x334cd6(0x2ce),{'className':_0x334cd6(0x229),'children':[_0x31203f[_0x334cd6(0x21a)]('span',{'children':'⟲'}),_0x2fc1bc['t'](_0x334cd6(0x277))]}):_0x31203f[_0x334cd6(0x2e6)]('span',{'className':_0x334cd6(0x229),'children':[_0x31203f[_0x334cd6(0x21a)](_0x5df9ae,{}),_0x2fc1bc['t'](_0x334cd6(0x1c0))]})}),_0x31203f[_0x334cd6(0x21a)](_0x334cd6(0x21c),{'className':_0x334cd6(0x1ac),'children':_0x31203f[_0x334cd6(0x2e6)](_0x334cd6(0x21c),{'className':_0x334cd6(0x1d1),'children':[_0x31203f[_0x334cd6(0x21a)](_0x334cd6(0x2ce),{'className':_0x334cd6(0x1b0),'children':'💡'}),_0x31203f['jsxs']('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x31203f['jsx']('div',{'className':_0x334cd6(0x331),'children':_0x334cd6(0x30f)}),_0x31203f[_0x334cd6(0x2e6)]('div',{'children':['•',_0x2fc1bc['t'](_0x334cd6(0x1ce))]}),_0x31203f[_0x334cd6(0x2e6)](_0x334cd6(0x21c),{'children':['•',_0x2fc1bc['t'](_0x334cd6(0x24c))]})]})]})})]})})]});}const _0x617ceb=_0x2ad8e8(0x322),_0xbe0f11={'showDeveloperTools':!0x1,'showStatus':!0x0};var _0xb69986=Object[_0x2ad8e8(0x1f1)],_0x58ed4e=(_0x3964e0,_0x58420e,_0x2f505f,_0x73e620)=>{const _0x1f74d5=_0x2ad8e8;for(var _0x1e8235=_0x73e620>0x1?void 0x0:_0x73e620?_0xb69986(_0x58420e,_0x2f505f):_0x58420e,_0x508fa4=_0x3964e0[_0x1f74d5(0x329)]-0x1,_0x26ead4;_0x508fa4>=0x0;_0x508fa4--)(_0x26ead4=_0x3964e0[_0x508fa4])&&(_0x1e8235=_0x26ead4(_0x1e8235)||_0x1e8235);return _0x1e8235;},_0x5b6aa8=(_0x318119,_0x54e436)=>(_0x19dd50,_0x3a7bf0)=>_0x54e436(_0x19dd50,_0x3a7bf0,_0x318119);const _0x3af11a=_0x2ad8e8(0x285),_0x367a71=_0x2ad8e8(0x23e);_0x4b7168[_0x2ad8e8(0x2c3)]=class extends _0x293f76['Disposable']{constructor(_0x3f6aa1,_0x2b9d57,_0x16148a,_0x218558,_0x4b2378,_0x55fc10,_0x13ee03,_0x80b6b,_0x2cca2d,_0x56c7aa){const _0x424f55=_0x2ad8e8;super(),_0x31ffaa(this,_0x424f55(0x278),new _0x2a6035[(_0x424f55(0x245))](!0x1)),_0x31ffaa(this,_0x424f55(0x327),new _0x2a6035['BehaviorSubject']({})),_0x31ffaa(this,'_config$',new _0x2a6035[(_0x424f55(0x245))]({})),_0x31ffaa(this,_0x424f55(0x213),new _0x2a6035[(_0x424f55(0x245))]('')),_0x31ffaa(this,_0x424f55(0x309),async _0x4962c6=>{const _0x20b219=_0x424f55;var _0x3093c9,_0x317b8a;this[_0x20b219(0x278)][_0x20b219(0x2bb)](!0x0);try{const _0x15282a=await this[_0x20b219(0x236)](_0x4962c6);if(!_0x15282a['isValid']){this[_0x20b219(0x287)][_0x20b219(0x32e)]({'type':_0x41ce79['MessageType'][_0x20b219(0x1df)],'content':_0x15282a[_0x20b219(0x226)]||this[_0x20b219(0x1d4)]['t'](_0x20b219(0x333))});return;}_0x4962c6[_0x20b219(0x26f)]?await this[_0x20b219(0x25f)][_0x20b219(0x2f9)](_0x3af11a,_0x4962c6['apiKey'][_0x20b219(0x24f)]()):await this[_0x20b219(0x25f)][_0x20b219(0x2ee)](_0x3af11a),this[_0x20b219(0x213)][_0x20b219(0x2bb)](((_0x3093c9=_0x4962c6['apiKey'])==null?void 0x0:_0x3093c9[_0x20b219(0x24f)]())||''),this['_mcpConnectionController'][_0x20b219(0x233)]({'Authorization':'Bearer\x20'+((_0x317b8a=_0x4962c6[_0x20b219(0x26f)])==null?void 0x0:_0x317b8a[_0x20b219(0x24f)]())}),this['_messageService'][_0x20b219(0x32e)]({'type':_0x41ce79[_0x20b219(0x299)][_0x20b219(0x1b8)],'content':this[_0x20b219(0x1d4)]['t'](_0x20b219(0x231))}),setTimeout(()=>{const _0x5978b4=_0x20b219;this[_0x5978b4(0x2b7)][_0x5978b4(0x1a8)](_0x367a71);},0x320);}catch(_0x440a8d){this[_0x20b219(0x313)]['error'](_0x20b219(0x1f7),_0x440a8d),this[_0x20b219(0x287)][_0x20b219(0x32e)]({'type':_0x41ce79[_0x20b219(0x299)][_0x20b219(0x1df)],'content':this['_localeService']['t']('mcpConfig.configError')});}finally{this[_0x20b219(0x278)]['next'](!0x1);}}),(this['_injector']=_0x3f6aa1,this[_0x424f55(0x1e5)]=_0x2b9d57,this[_0x424f55(0x224)]=_0x16148a,this['_localStorageService']=_0x218558,this[_0x424f55(0x2b7)]=_0x4b2378,this[_0x424f55(0x287)]=_0x55fc10,this[_0x424f55(0x206)]=_0x13ee03,this['_localeService']=_0x80b6b,this['_logService']=_0x2cca2d,this[_0x424f55(0x208)]=_0x56c7aa,this[_0x424f55(0x205)](),this[_0x424f55(0x2e2)](),this['_registerComponent']());}[_0x2ad8e8(0x22c)](){const _0xd175b7=_0x2ad8e8,_0x46b1bf=this[_0xd175b7(0x224)]['getConfig'](_0x617ceb);_0x46b1bf!=null&&_0x46b1bf['showDeveloperTools']&&this[_0xd175b7(0x2b7)][_0xd175b7(0x1dd)]({'id':_0x367a71,'title':{'title':this[_0xd175b7(0x1d4)]['t']('mcpConfig.title')},'children':{'label':_0xd175b7(0x32a)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x30a738=_0xd175b7;this['_dialogService'][_0x30a738(0x1a8)](_0x367a71);}});}[_0x2ad8e8(0x2c4)](){const _0x5c9828=_0x2ad8e8;return this[_0x5c9828(0x327)][_0x5c9828(0x337)];}[_0x2ad8e8(0x1fa)](){const _0x35348b=_0x2ad8e8;this[_0x35348b(0x1f8)](this[_0x35348b(0x206)][_0x35348b(0x26c)](_0x35348b(0x32a),this[_0x35348b(0x1fc)]()));}[_0x2ad8e8(0x1fc)](){const _0x1be5a8=_0x2ad8e8;return _0x3f6d85['connectInjector'](()=>{const _0x527986=_0x4a32;var _0x5c86bf,_0x1bda0d,_0x11aa0b;return _0x31203f[_0x527986(0x21a)](_0x4ec90,{'config':this[_0x527986(0x308)][_0x527986(0x337)],'mcpCoreConfig':this[_0x527986(0x327)][_0x527986(0x337)],'currentApiKey$':this[_0x527986(0x213)],'onSave':this[_0x527986(0x309)],'loading':this[_0x527986(0x278)][_0x527986(0x337)],'connectionStatus$':(_0x5c86bf=this[_0x527986(0x208)])==null?void 0x0:_0x5c86bf[_0x527986(0x31f)],'connectionError$':(_0x1bda0d=this[_0x527986(0x208)])==null?void 0x0:_0x1bda0d[_0x527986(0x215)],'currentSessionId$':(_0x11aa0b=this[_0x527986(0x208)])==null?void 0x0:_0x11aa0b[_0x527986(0x23f)]});},this[_0x1be5a8(0x1ef)]);}[_0x2ad8e8(0x205)](){const _0x40999b=_0x2ad8e8;this[_0x40999b(0x1f8)](this[_0x40999b(0x224)][_0x40999b(0x1f2)](_0x3c8e4d['MCP_PLUGIN_CONFIG_KEY'])[_0x40999b(0x1b1)](_0x5096f6=>{const _0x3a08dd=_0x40999b;this[_0x3a08dd(0x327)][_0x3a08dd(0x2bb)](_0x5096f6||{});}));const _0x48910f=this[_0x40999b(0x224)][_0x40999b(0x1c6)](_0x3c8e4d[_0x40999b(0x31d)]);this['_mcpCoreConfig$'][_0x40999b(0x2bb)](_0x48910f||{}),this[_0x40999b(0x1f8)](this[_0x40999b(0x224)][_0x40999b(0x1f2)](_0x617ceb)['subscribe'](_0x353eae=>{const _0x14ef5d=_0x40999b;this[_0x14ef5d(0x308)]['next'](_0x353eae||{});}));const _0x43d654=this[_0x40999b(0x224)][_0x40999b(0x1c6)](_0x617ceb);this[_0x40999b(0x308)]['next'](_0x43d654||{});}async[_0x2ad8e8(0x2e2)](){const _0xb3341d=_0x2ad8e8,_0x3ff43d=this[_0xb3341d(0x224)][_0xb3341d(0x1c6)](_0x617ceb);if(!(_0x3ff43d!=null&&_0x3ff43d[_0xb3341d(0x21d)]))return;const _0x2265dd=await this['_localStorageService'][_0xb3341d(0x32d)](_0x3af11a);_0x2265dd&&(this['_mcpConnectionController'][_0xb3341d(0x233)]({'Authorization':_0xb3341d(0x1dc)+_0x2265dd}),this[_0xb3341d(0x213)][_0xb3341d(0x2bb)](_0x2265dd));}async[_0x2ad8e8(0x236)](_0x28b20d){const _0x540423=_0x2ad8e8;if(!_0x28b20d[_0x540423(0x26f)]||_0x28b20d['apiKey'][_0x540423(0x24f)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x540423(0x315))};if(_0x28b20d['apiKey'][_0x540423(0x24f)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x540423(0x311))};try{const _0x4f46a4=await this[_0x540423(0x1ef)][_0x540423(0x1c8)](_0x3c8e4d[_0x540423(0x290)])[_0x540423(0x251)](_0x28b20d[_0x540423(0x26f)][_0x540423(0x24f)]());return _0x4f46a4['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x4f46a4['error']||this[_0x540423(0x1d4)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x204a28){return console[_0x540423(0x1ff)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x204a28),{'isValid':!0x0};}}},_0x4b7168[_0x2ad8e8(0x2c3)]=_0x58ed4e([_0x5b6aa8(0x0,_0x293f76['Inject'](_0x293f76['Injector'])),_0x5b6aa8(0x1,_0x3f6d85[_0x2ad8e8(0x1ba)]),_0x5b6aa8(0x2,_0x293f76[_0x2ad8e8(0x1b5)]),_0x5b6aa8(0x3,_0x293f76[_0x2ad8e8(0x2d8)]),_0x5b6aa8(0x4,_0x3f6d85[_0x2ad8e8(0x1ab)]),_0x5b6aa8(0x5,_0x3f6d85[_0x2ad8e8(0x2da)]),_0x5b6aa8(0x6,_0x293f76[_0x2ad8e8(0x2b0)](_0x3f6d85[_0x2ad8e8(0x24b)])),_0x5b6aa8(0x7,_0x293f76[_0x2ad8e8(0x2b0)](_0x293f76['LocaleService'])),_0x5b6aa8(0x8,_0x293f76['ILogService']),_0x5b6aa8(0x9,_0x293f76[_0x2ad8e8(0x2b0)](_0x3c8e4d['MCPConnectionController']))],_0x4b7168[_0x2ad8e8(0x2c3)]);const _0x1a17b1={'id':_0x2ad8e8(0x29d),'type':_0x293f76[_0x2ad8e8(0x291)][_0x2ad8e8(0x328)],'handler':async(_0x2df38e,_0x58cc5e)=>(_0x2df38e[_0x2ad8e8(0x1c8)](_0x4b7168[_0x2ad8e8(0x2c3)])[_0x2ad8e8(0x22c)](),!0x0)};function _0x289b4a(_0x25fc95,_0x405b1e){const _0x136744=_0x2ad8e8;switch(_0x25fc95){case _0x3c8e4d[_0x136744(0x33c)][_0x136744(0x2dd)]:return _0x136744(0x214);case _0x3c8e4d[_0x136744(0x33c)][_0x136744(0x20a)]:return _0x136744(0x1db);case _0x3c8e4d['MCPConnectionStatus']['CONNECTED']:return _0x136744(0x246);case _0x3c8e4d[_0x136744(0x33c)][_0x136744(0x1a9)]:switch(_0x405b1e){case _0x3c8e4d[_0x136744(0x272)][_0x136744(0x1f9)]:return _0x136744(0x2a5);case _0x3c8e4d['MCPConnectionError']['SESSION_ID_OCCUPIED']:return _0x136744(0x31c);case _0x3c8e4d[_0x136744(0x272)][_0x136744(0x1cf)]:return _0x136744(0x33a);case _0x3c8e4d[_0x136744(0x272)]['MAX_RETRIES_EXCEEDED']:return _0x136744(0x1b6);default:return _0x136744(0x234);}case _0x3c8e4d['MCPConnectionStatus']['RETRYING']:return _0x136744(0x1e7);default:return'mcpStatus.unknown';}}function _0x40570d(_0x211e04,_0x485626,_0x316ad3,_0x23c215=!0x0){const _0x52f7f7=_0x2ad8e8,_0x4a8d5f=_0x289b4a(_0x211e04,_0x485626),_0x1ddf01=_0x316ad3['t'](_0x4a8d5f);return _0x23c215?_0x211e04===_0x3c8e4d[_0x52f7f7(0x33c)]['DISCONNECTED']&&_0x485626===_0x3c8e4d['MCPConnectionError'][_0x52f7f7(0x1f9)]?_0x1ddf01+_0x52f7f7(0x2f0)+_0x316ad3['t'](_0x52f7f7(0x2b6)):_0x211e04===_0x3c8e4d[_0x52f7f7(0x33c)][_0x52f7f7(0x2d2)]?''+_0x1ddf01:_0x211e04===_0x3c8e4d[_0x52f7f7(0x33c)]['DISCONNECTED']||_0x211e04===_0x3c8e4d[_0x52f7f7(0x33c)][_0x52f7f7(0x1a9)]?_0x1ddf01+_0x52f7f7(0x2f0)+_0x316ad3['t'](_0x52f7f7(0x1d3)):_0x1ddf01:_0x1ddf01;}function _0x4e8915(_0x17d42a){const _0x1757fa=_0x2ad8e8;switch(_0x17d42a){case _0x3c8e4d[_0x1757fa(0x33c)][_0x1757fa(0x2d2)]:return _0x1757fa(0x29e);case _0x3c8e4d['MCPConnectionStatus'][_0x1757fa(0x20a)]:case _0x3c8e4d[_0x1757fa(0x33c)][_0x1757fa(0x25b)]:return _0x1757fa(0x1d5);case _0x3c8e4d[_0x1757fa(0x33c)][_0x1757fa(0x1a9)]:case _0x3c8e4d['MCPConnectionStatus'][_0x1757fa(0x2dd)]:return _0x1757fa(0x26d);default:return _0x1757fa(0x1ed);}}function _0x44a315(_0x5967ae){const _0x2ce7b7=_0x2ad8e8,{status$:_0x2c0267,error$:_0x445acd,onConfigure:_0x5e5ef6,showClickable:_0x345973=!0x0}=_0x5967ae,_0x5029f6=_0x3f6d85[_0x2ce7b7(0x2ef)](_0x2c0267,_0x3c8e4d[_0x2ce7b7(0x33c)][_0x2ce7b7(0x2dd)]),_0x572bd6=_0x3f6d85['useObservable'](_0x445acd,_0x3c8e4d[_0x2ce7b7(0x272)]['NONE']),_0x404809=_0x3f6d85['useDependency'](_0x293f76['LocaleService']),_0x39f40f=_0x5029f6===_0x3c8e4d[_0x2ce7b7(0x33c)][_0x2ce7b7(0x2d2)];_0x5029f6===_0x3c8e4d[_0x2ce7b7(0x33c)]['CONNECTING']||_0x3c8e4d['MCPConnectionStatus'][_0x2ce7b7(0x25b)];const _0x4d7522=_0x404809['t'](_0x289b4a(_0x5029f6,_0x572bd6)),_0x2ee3d9=_0x40570d(_0x5029f6,_0x572bd6,_0x404809,_0x345973),_0x27a6a0=_0x4e8915(_0x5029f6),_0x260c65=_0x39f40f?_0x31203f[_0x2ce7b7(0x21a)](_0x57cdb7,{}):_0x31203f[_0x2ce7b7(0x21a)](_0x15c763,{}),_0x4da88d=_0x46e89f[_0x2ce7b7(0x21b)](()=>{_0x345973&&_0x5e5ef6&&_0x5e5ef6();},[_0x345973,_0x5e5ef6]);function _0x1295d3(){const _0x3384f9=_0x2ce7b7;return _0x31203f[_0x3384f9(0x2e6)](_0x3384f9(0x21c),{'className':_0x41ce79[_0x3384f9(0x284)](_0x3384f9(0x2db),_0x345973&&_0x5e5ef6&&'\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':_0x3384f9(0x1e6),'onClick':_0x345973&&_0x5e5ef6?_0x4da88d:void 0x0,'children':[_0x31203f[_0x3384f9(0x21a)]('div',{'className':_0x41ce79[_0x3384f9(0x284)](_0x3384f9(0x29f),_0x27a6a0),'children':_0x260c65}),_0x31203f[_0x3384f9(0x21a)]('div',{'className':_0x3384f9(0x27a),'children':_0x4d7522})]});}return _0x31203f['jsx'](_0x41ce79['Tooltip'],{'title':_0x2ee3d9,'placement':'bottom','children':_0x1295d3()});}var _0x19875e=Object[_0x2ad8e8(0x1f1)],_0x44d21f=(_0x39c975,_0x25c0b2,_0x4806a5,_0x58a9ef)=>{const _0xaaa817=_0x2ad8e8;for(var _0x3f8f9e=_0x58a9ef>0x1?void 0x0:_0x58a9ef?_0x19875e(_0x25c0b2,_0x4806a5):_0x25c0b2,_0x5488b1=_0x39c975[_0xaaa817(0x329)]-0x1,_0xabf0b6;_0x5488b1>=0x0;_0x5488b1--)(_0xabf0b6=_0x39c975[_0x5488b1])&&(_0x3f8f9e=_0xabf0b6(_0x3f8f9e)||_0x3f8f9e);return _0x3f8f9e;},_0x29e337=(_0x59c1ec,_0x3d290e)=>(_0x1c5d24,_0x524863)=>_0x3d290e(_0x1c5d24,_0x524863,_0x59c1ec);_0x4b7168[_0x2ad8e8(0x1d2)]=class extends _0x293f76[_0x2ad8e8(0x1bf)]{constructor(_0x100efd,_0x4c5aa6,_0x5f133a,_0x39170c){const _0x45e4ab=_0x2ad8e8;super(),this[_0x45e4ab(0x1ef)]=_0x100efd,this[_0x45e4ab(0x1c7)]=_0x4c5aa6,this[_0x45e4ab(0x1e5)]=_0x5f133a,this[_0x45e4ab(0x224)]=_0x39170c,this[_0x45e4ab(0x2d6)](),this['_initStatusComponent']();}[_0x2ad8e8(0x2d6)](){const _0x52cd75=_0x2ad8e8,_0x251fb3=this['_configService'][_0x52cd75(0x1c6)](_0x617ceb);_0x251fb3!=null&&_0x251fb3[_0x52cd75(0x21d)]&&(this[_0x52cd75(0x1c7)][_0x52cd75(0x2c1)]=!0x1);}[_0x2ad8e8(0x1da)](){const _0x206ad4=_0x2ad8e8,_0x41c2db=this[_0x206ad4(0x224)][_0x206ad4(0x1c6)](_0x617ceb);(_0x41c2db==null?void 0x0:_0x41c2db[_0x206ad4(0x2bd)])!==!0x1&&this[_0x206ad4(0x1f8)](this['_uiPartsService'][_0x206ad4(0x1b7)](_0x3f6d85['BuiltInUIPart']['HEADER_MENU'],()=>{const _0x4fd92b=_0x206ad4;var _0x5bf9f1;return _0x3f6d85[_0x4fd92b(0x2a2)](_0x403e49({'status$':this[_0x4fd92b(0x1c7)][_0x4fd92b(0x31f)],'error$':this[_0x4fd92b(0x1c7)][_0x4fd92b(0x215)],'onConfigure':()=>this[_0x4fd92b(0x25d)](),'showClickable':(_0x5bf9f1=_0x41c2db==null?void 0x0:_0x41c2db['showDeveloperTools'])!=null?_0x5bf9f1:!0x1}),this[_0x4fd92b(0x1ef)]);}));}[_0x2ad8e8(0x25d)](){const _0x26d34f=_0x2ad8e8;this[_0x26d34f(0x1ef)][_0x26d34f(0x1c8)](_0x4b7168[_0x26d34f(0x2c3)])[_0x26d34f(0x22c)]();}},_0x4b7168[_0x2ad8e8(0x1d2)]=_0x44d21f([_0x29e337(0x0,_0x293f76['Inject'](_0x293f76[_0x2ad8e8(0x33d)])),_0x29e337(0x1,_0x293f76[_0x2ad8e8(0x2b0)](_0x3c8e4d[_0x2ad8e8(0x290)])),_0x29e337(0x2,_0x3f6d85[_0x2ad8e8(0x1ba)]),_0x29e337(0x3,_0x293f76[_0x2ad8e8(0x1b5)])],_0x4b7168[_0x2ad8e8(0x1d2)]);function _0x403e49(_0x7a5476){const {status$:_0x401274,error$:_0x388148,onConfigure:_0x14ae2f,showClickable:_0x3b5cc5}=_0x7a5476;return function(){const _0x1de880=_0x4a32;return _0x31203f[_0x1de880(0x21a)](_0x44a315,{'status$':_0x401274,'error$':_0x388148,'onConfigure':_0x14ae2f,'showClickable':_0x3b5cc5});};}function _0x4a8669(_0x516618){const _0x4a41bf=_0x2ad8e8;return{'id':_0x1a17b1['id'],'type':_0x3f6d85[_0x4a41bf(0x2ad)]['BUTTON'],'icon':_0x4a41bf(0x1f0),'title':_0x4a41bf(0x33e),'tooltip':_0x4a41bf(0x33e)};}const _0xbb4647={[_0x3f6d85['RibbonStartGroup'][_0x2ad8e8(0x2aa)]]:{[_0x1a17b1['id']]:{'order':0xa,'menuItemFactory':_0x4a8669}}};var _0x7675d7=Object['getOwnPropertyDescriptor'],_0x5b884d=(_0x369383,_0x5b87e7,_0x1c9402,_0x5f43be)=>{for(var _0x317b4b=_0x5f43be>0x1?void 0x0:_0x5f43be?_0x7675d7(_0x5b87e7,_0x1c9402):_0x5b87e7,_0x12edf3=_0x369383['length']-0x1,_0x3fd5ac;_0x12edf3>=0x0;_0x12edf3--)(_0x3fd5ac=_0x369383[_0x12edf3])&&(_0x317b4b=_0x3fd5ac(_0x317b4b)||_0x317b4b);return _0x317b4b;},_0x5d6cec=(_0x23367e,_0x2d6e66)=>(_0x41bc5e,_0x37218e)=>_0x2d6e66(_0x41bc5e,_0x37218e,_0x23367e);_0x4b7168['MCPUIMenuController']=class extends _0x293f76[_0x2ad8e8(0x1bf)]{constructor(_0x1de457,_0x349a06){const _0x3483af=_0x2ad8e8;super(),this[_0x3483af(0x2ac)]=_0x1de457,this[_0x3483af(0x257)]=_0x349a06,this[_0x3483af(0x1a3)](),this[_0x3483af(0x1f5)]();}[_0x2ad8e8(0x1a3)](){const _0x5ac810=_0x2ad8e8;[_0x1a17b1][_0x5ac810(0x2b2)](_0x42d07f=>{const _0x562eae=_0x5ac810;this['disposeWithMe'](this[_0x562eae(0x2ac)]['registerCommand'](_0x42d07f));});}[_0x2ad8e8(0x1f5)](){const _0x35c881=_0x2ad8e8;this['_menuManagerService'][_0x35c881(0x250)](_0xbb4647);}},_0x4b7168['MCPUIMenuController']=_0x5b884d([_0x5d6cec(0x0,_0x293f76[_0x2ad8e8(0x2e9)]),_0x5d6cec(0x1,_0x3f6d85['IMenuManagerService'])],_0x4b7168[_0x2ad8e8(0x25a)]);const _0x39adce={'mcpStatus':{'disconnected':_0x2ad8e8(0x29b),'connecting':'MCP\x20Connecting...','connected':_0x2ad8e8(0x24a),'failed':_0x2ad8e8(0x1b9),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x2ad8e8(0x242),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x2ad8e8(0x2e8),'clickToConfigure':_0x2ad8e8(0x243)},'mcpConfig':{'title':_0x2ad8e8(0x26e),'description':_0x2ad8e8(0x209),'apiKey':_0x2ad8e8(0x1fd),'apiKeyPlaceholder':_0x2ad8e8(0x338),'apiKeyHint':_0x2ad8e8(0x288),'enableAuth':_0x2ad8e8(0x1de),'enableAuthHint':_0x2ad8e8(0x2ed),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x2ad8e8(0x2e5),'configInstructions':_0x2ad8e8(0x2ca),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x2ad8e8(0x28f),'configStep2':_0x2ad8e8(0x212),'configStep3':_0x2ad8e8(0x298),'sessionId':_0x2ad8e8(0x2de),'sessionIdDescription':_0x2ad8e8(0x2b5),'authorizationDescription':_0x2ad8e8(0x211),'configParameters':_0x2ad8e8(0x296),'maxRetries':_0x2ad8e8(0x1e9),'save':_0x2ad8e8(0x20f),'saving':_0x2ad8e8(0x2e1),'note1':_0x2ad8e8(0x28a),'note2':_0x2ad8e8(0x1b3),'configSaved':_0x2ad8e8(0x2f4),'configError':_0x2ad8e8(0x29a),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x2ad8e8(0x2f6),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x2ad8e8(0x260)},'validation':{'apiKeyRequired':_0x2ad8e8(0x289),'apiKeyTooShort':_0x2ad8e8(0x286),'invalidConfig':_0x2ad8e8(0x33b),'invalidApiKey':_0x2ad8e8(0x1fb)},'connectionStatus':{'disconnected':_0x2ad8e8(0x207),'connecting':_0x2ad8e8(0x20b),'connected':_0x2ad8e8(0x271),'failed':_0x2ad8e8(0x1f6),'retrying':_0x2ad8e8(0x334)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x2ad8e8(0x22f),'networkError':_0x2ad8e8(0x1d0),'maxRetriesExceeded':_0x2ad8e8(0x28b)}}},_0x3abcff={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':'MCP\x20连接中...','connected':_0x2ad8e8(0x1e4),'failed':_0x2ad8e8(0x244),'retrying':'MCP\x20重连中...','unknown':_0x2ad8e8(0x2fd),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x2ad8e8(0x1ea),'networkError':_0x2ad8e8(0x2d7),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x2ad8e8(0x2fa),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x2ad8e8(0x294),'description':_0x2ad8e8(0x307),'apiKey':_0x2ad8e8(0x2d0),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x2ad8e8(0x20c),'enableAuthHint':_0x2ad8e8(0x1a5),'connectionInfo':_0x2ad8e8(0x222),'mcpClientConfig':_0x2ad8e8(0x222),'configInstructions':_0x2ad8e8(0x23d),'configStepTitle':'配置步骤:','configStep1':_0x2ad8e8(0x1c2),'configStep2':_0x2ad8e8(0x22e),'configStep3':_0x2ad8e8(0x31a),'sessionId':'会话ID','sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x2ad8e8(0x1ad),'configParameters':_0x2ad8e8(0x203),'maxRetries':_0x2ad8e8(0x281),'save':_0x2ad8e8(0x225),'saving':_0x2ad8e8(0x2fb),'note1':_0x2ad8e8(0x23a),'note2':_0x2ad8e8(0x2a0),'configSaved':_0x2ad8e8(0x263),'configError':_0x2ad8e8(0x1fe),'apiApplyInfo':{'title':_0x2ad8e8(0x258),'description':_0x2ad8e8(0x1ae),'univerAiLabel':_0x2ad8e8(0x210),'getStarted':_0x2ad8e8(0x2f3)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x2ad8e8(0x27b),'invalidConfig':_0x2ad8e8(0x2d9),'invalidApiKey':_0x2ad8e8(0x2b3)},'connectionStatus':{'disconnected':_0x2ad8e8(0x29c),'connecting':_0x2ad8e8(0x26a),'connected':_0x2ad8e8(0x2ae),'failed':_0x2ad8e8(0x1c3),'retrying':_0x2ad8e8(0x1cd)},'connectionError':{'unauthorized':_0x2ad8e8(0x230),'sessionOccupied':_0x2ad8e8(0x2e0),'networkError':_0x2ad8e8(0x31e),'maxRetriesExceeded':_0x2ad8e8(0x2e7)}}};var _0x2f17c7=Object['defineProperty'],_0x49a65d=Object['getOwnPropertyDescriptor'],_0x5b6514=(_0x23ecf6,_0x464ae4,_0x44c12e)=>_0x464ae4 in _0x23ecf6?_0x2f17c7(_0x23ecf6,_0x464ae4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x44c12e}):_0x23ecf6[_0x464ae4]=_0x44c12e,_0x339553=(_0x49f21a,_0x13cc70,_0x1187c5,_0x649860)=>{const _0xd9eeb2=_0x2ad8e8;for(var _0x2ddd5a=_0x649860>0x1?void 0x0:_0x649860?_0x49a65d(_0x13cc70,_0x1187c5):_0x13cc70,_0x31b8fa=_0x49f21a[_0xd9eeb2(0x329)]-0x1,_0x161792;_0x31b8fa>=0x0;_0x31b8fa--)(_0x161792=_0x49f21a[_0x31b8fa])&&(_0x2ddd5a=_0x161792(_0x2ddd5a)||_0x2ddd5a);return _0x2ddd5a;},_0x117d27=(_0x1d0775,_0x428324)=>(_0x2a22b1,_0x49fe9b)=>_0x428324(_0x2a22b1,_0x49fe9b,_0x1d0775),_0x46be0b=(_0x4232e0,_0x27e6c2,_0x1e037e)=>_0x5b6514(_0x4232e0,_0x27e6c2+'',_0x1e037e);_0x4b7168[_0x2ad8e8(0x1d7)]=class extends _0x293f76[_0x2ad8e8(0x20d)]{constructor(_0x21c23d=_0xbe0f11,_0xfe292f,_0x4e4770,_0x33c812,_0x7878a6,_0x54a092){const _0xd27e39=_0x2ad8e8;super(),this[_0xd27e39(0x204)]=_0x21c23d,this['_injector']=_0xfe292f,this[_0xd27e39(0x224)]=_0x4e4770,this[_0xd27e39(0x1e5)]=_0x33c812,this[_0xd27e39(0x25f)]=_0x7878a6,this[_0xd27e39(0x1d4)]=_0x54a092;const {..._0x2639e4}=_0x293f76[_0xd27e39(0x20e)]({},_0xbe0f11,this[_0xd27e39(0x204)]);this['_configService']['setConfig'](_0x617ceb,_0x2639e4);}async[_0x2ad8e8(0x316)](){const _0x471f4d=_0x2ad8e8,_0x10e15e=[[_0x4b7168['MCPConnectionUIController']],[_0x4b7168['MCPConfigUIController']],[_0x4b7168['MCPUIMenuController']]];this[_0x471f4d(0x1ef)]['has'](_0x4e486b[_0x471f4d(0x2bf)])||_0x10e15e[_0x471f4d(0x22b)]([_0x4e486b[_0x471f4d(0x2bf)],{'useClass':_0x4e486b['WebSocketService']}]),_0x10e15e[_0x471f4d(0x2b2)](_0x27611e=>this['_injector'][_0x471f4d(0x2be)](_0x27611e)),this[_0x471f4d(0x1ef)][_0x471f4d(0x1c8)](_0x4b7168['MCPConnectionUIController']),this['_injector']['get'](_0x4b7168[_0x471f4d(0x2c3)]),this[_0x471f4d(0x1ef)]['get'](_0x4b7168[_0x471f4d(0x25a)]);}},_0x46be0b(_0x4b7168['UniverMCPUIPlugin'],'pluginName',_0x2ad8e8(0x28c)),_0x4b7168[_0x2ad8e8(0x1d7)]=_0x339553([_0x293f76[_0x2ad8e8(0x2d3)](_0x3c8e4d[_0x2ad8e8(0x279)]),_0x117d27(0x1,_0x293f76['Inject'](_0x293f76[_0x2ad8e8(0x33d)])),_0x117d27(0x2,_0x293f76[_0x2ad8e8(0x1b5)]),_0x117d27(0x3,_0x3f6d85[_0x2ad8e8(0x1ba)]),_0x117d27(0x4,_0x293f76['ILocalStorageService']),_0x117d27(0x5,_0x293f76[_0x2ad8e8(0x2b0)](_0x293f76[_0x2ad8e8(0x265)]))],_0x4b7168[_0x2ad8e8(0x1d7)]),_0x4b7168[_0x2ad8e8(0x32a)]=_0x4ec90,_0x4b7168[_0x2ad8e8(0x240)]=_0x44a315,_0x4b7168[_0x2ad8e8(0x323)]=_0x1a17b1,_0x4b7168[_0x2ad8e8(0x295)]=_0x39adce,_0x4b7168[_0x2ad8e8(0x1a6)]=_0x3abcff,Object[_0x2ad8e8(0x237)](_0x4b7168,Symbol[_0x2ad8e8(0x321)],{'value':'Module'});}));
|