@univerjs-pro/mcp-ui 0.15.0-insiders.20251227-dafc157 → 0.15.0-insiders.20251227-c108ce3
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
|
-
const
|
|
1
|
+
const _0x1c2df9=_0x3881;(function(_0x5a4d56,_0x29f435){const _0x5db8b1=_0x3881,_0x6da74d=_0x5a4d56();while(!![]){try{const _0x2bdf4e=parseInt(_0x5db8b1(0xff))/0x1*(-parseInt(_0x5db8b1(0xe9))/0x2)+-parseInt(_0x5db8b1(0xea))/0x3*(parseInt(_0x5db8b1(0xf8))/0x4)+-parseInt(_0x5db8b1(0x112))/0x5*(parseInt(_0x5db8b1(0xfc))/0x6)+parseInt(_0x5db8b1(0x10d))/0x7*(parseInt(_0x5db8b1(0xfd))/0x8)+parseInt(_0x5db8b1(0x10f))/0x9*(parseInt(_0x5db8b1(0xf1))/0xa)+parseInt(_0x5db8b1(0x10b))/0xb*(parseInt(_0x5db8b1(0xfa))/0xc)+parseInt(_0x5db8b1(0xf5))/0xd*(parseInt(_0x5db8b1(0xf6))/0xe);if(_0x2bdf4e===_0x29f435)break;else _0x6da74d['push'](_0x6da74d['shift']());}catch(_0x28abad){_0x6da74d['push'](_0x6da74d['shift']());}}}(_0x58d9,0x22ee9));function _0x58d9(){const _0x4070a0=['아래\x20JSON\x20설정\x20복사','연결\x20끊김','MCP\x20연결됨','MCP\x20연결\x20실패','설정\x20변경\x20사항은\x20즉시\x20적용됩니다','MCP:\x20세션\x20ID\x20사용\x20중','몇\x20초\x20만에\x20API\x20키\x20발급받기','설정\x20저장\x20실패','보안\x20연결을\x20위해\x20인증\x20활성화','클릭하여\x20MCP\x20설정','네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','2442lyZLGe','3TVIDgv','API\x20키는\x20필수입니다','MCP:\x20최대\x20재시도\x20횟수\x20초과','고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','설정이\x20성공적으로\x20저장되었습니다','MCP\x20클라이언트\x20설정','MCP:\x20인증되지\x20않음','20qtwGhS','MCP:\x20네트워크\x20오류','AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','연결됨','1170OBMNLT','1442ICcOOP','API\x20키를\x20입력하세요','641256vqOGNn','설정\x20매개변수:','12fXWLSI','API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','104316RBtPSB','193944NVJNry','MCP\x20설정','127XCaecz','MCP\x20연결\x20중...','인증\x20실패.\x20API\x20키를\x20확인하세요','최대\x20재시도\x20횟수','유효하지\x20않은\x20설정','유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요','API\x20키란\x20무엇인가요?','MCP\x20알\x20수\x20없는\x20상태','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','Bearer\x20접두사가\x20있는\x20API\x20키.','MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','API\x20키는\x2010자\x20이상이어야\x20합니다','881815NcYGRT','MCP\x20재시도\x20중...','35EuSKvh','API\x20키','1271628VRewIN','저장\x20중...','세션\x20ID','10AdGckg','Univer\x20AI\x20콘솔','API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다'];_0x58d9=function(){return _0x4070a0;};return _0x58d9();}const e={'mcpStatus':{'disconnected':'MCP\x20연결\x20끊김','connecting':_0x1c2df9(0x100),'connected':_0x1c2df9(0xe0),'failed':_0x1c2df9(0xe1),'retrying':_0x1c2df9(0x10c),'unknown':_0x1c2df9(0x106),'unauthorized':_0x1c2df9(0xf0),'sessionOccupied':_0x1c2df9(0xe3),'networkError':_0x1c2df9(0xf2),'maxRetriesExceeded':_0x1c2df9(0xec),'clickToConnect':'클릭하여\x20MCP\x20연결','clickToConfigure':_0x1c2df9(0xe7)},'mcpConfig':{'title':_0x1c2df9(0xfe),'description':_0x1c2df9(0xf3),'apiKey':_0x1c2df9(0x10e),'apiKeyPlaceholder':_0x1c2df9(0xf7),'apiKeyHint':_0x1c2df9(0xfb),'enableAuth':'인증\x20활성화','enableAuthHint':_0x1c2df9(0xe6),'connectionInfo':'MCP\x20클라이언트\x20설정','mcpClientConfig':_0x1c2df9(0xef),'configInstructions':'MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','configStepTitle':'설정\x20단계:','configStep1':_0x1c2df9(0x115),'configStep2':_0x1c2df9(0x107),'configStep3':_0x1c2df9(0x109),'sessionId':_0x1c2df9(0x111),'sessionIdDescription':_0x1c2df9(0xed),'authorizationDescription':_0x1c2df9(0x108),'configParameters':_0x1c2df9(0xf9),'maxRetries':_0x1c2df9(0x102),'save':'설정\x20저장','saving':_0x1c2df9(0x110),'note1':_0x1c2df9(0xe2),'note2':_0x1c2df9(0x114),'configSaved':_0x1c2df9(0xee),'configError':_0x1c2df9(0xe5),'apiApplyInfo':{'title':_0x1c2df9(0x105),'description':'API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','univerAiLabel':_0x1c2df9(0x113),'getStarted':_0x1c2df9(0xe4)},'validation':{'apiKeyRequired':_0x1c2df9(0xeb),'apiKeyTooShort':_0x1c2df9(0x10a),'invalidConfig':_0x1c2df9(0x103),'invalidApiKey':_0x1c2df9(0x104)},'connectionStatus':{'disconnected':_0x1c2df9(0xdf),'connecting':'연결\x20중...','connected':_0x1c2df9(0xf4),'failed':'연결\x20실패','retrying':'재시도\x20중...'},'connectionError':{'unauthorized':_0x1c2df9(0x101),'sessionOccupied':'세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','networkError':_0x1c2df9(0xe8),'maxRetriesExceeded':'최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요'}}};function _0x3881(_0x328ed9,_0xd93af8){_0x328ed9=_0x328ed9-0xdf;const _0x58d9a7=_0x58d9();let _0x38810e=_0x58d9a7[_0x328ed9];return _0x38810e;}export{e as default};
|
package/lib/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x25d00b=_0x399a;(function(_0x3d4d81,_0x3766f1){const _0x474dd3=_0x399a,_0x2922ef=_0x3d4d81();while(!![]){try{const _0x1eb392=parseInt(_0x474dd3(0x128))/0x1*(-parseInt(_0x474dd3(0x14c))/0x2)+-parseInt(_0x474dd3(0x153))/0x3+-parseInt(_0x474dd3(0x127))/0x4*(parseInt(_0x474dd3(0x12f))/0x5)+parseInt(_0x474dd3(0x14a))/0x6+-parseInt(_0x474dd3(0x133))/0x7*(-parseInt(_0x474dd3(0x143))/0x8)+-parseInt(_0x474dd3(0x14b))/0x9+parseInt(_0x474dd3(0x136))/0xa;if(_0x1eb392===_0x3766f1)break;else _0x2922ef['push'](_0x2922ef['shift']());}catch(_0xbe614d){_0x2922ef['push'](_0x2922ef['shift']());}}}(_0xf969,0x738e5));function _0x399a(_0x20bfcf,_0x57617d){_0x20bfcf=_0x20bfcf-0x125;const _0xf9696b=_0xf969();let _0x399a80=_0xf9696b[_0x20bfcf];return _0x399a80;}const e={'mcpStatus':{'disconnected':_0x25d00b(0x125),'connecting':_0x25d00b(0x12e),'connected':_0x25d00b(0x155),'failed':_0x25d00b(0x140),'retrying':'MCP\x20Retrying...','unknown':_0x25d00b(0x126),'unauthorized':_0x25d00b(0x13e),'sessionOccupied':_0x25d00b(0x149),'networkError':_0x25d00b(0x145),'maxRetriesExceeded':_0x25d00b(0x146),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x25d00b(0x12c),'description':_0x25d00b(0x151),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x25d00b(0x132),'apiKeyHint':_0x25d00b(0x148),'enableAuth':_0x25d00b(0x154),'enableAuthHint':_0x25d00b(0x13d),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x25d00b(0x156),'configInstructions':_0x25d00b(0x13b),'configStepTitle':_0x25d00b(0x139),'configStep1':_0x25d00b(0x130),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x25d00b(0x135),'sessionId':_0x25d00b(0x12b),'sessionIdDescription':_0x25d00b(0x152),'authorizationDescription':_0x25d00b(0x14f),'configParameters':_0x25d00b(0x129),'maxRetries':_0x25d00b(0x12d),'save':_0x25d00b(0x14e),'saving':'Saving...','note1':_0x25d00b(0x131),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x25d00b(0x138),'description':_0x25d00b(0x13f),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x25d00b(0x137),'apiKeyTooShort':_0x25d00b(0x150),'invalidConfig':_0x25d00b(0x14d),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x25d00b(0x141),'connecting':_0x25d00b(0x134),'connected':_0x25d00b(0x12a),'failed':_0x25d00b(0x13a),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x25d00b(0x13c),'sessionOccupied':_0x25d00b(0x142),'networkError':_0x25d00b(0x144),'maxRetriesExceeded':_0x25d00b(0x147)}}},n=e;function _0xf969(){const _0x4867e8=['MCP\x20Client\x20Configuration','MCP\x20Disconnected','MCP\x20Unknown\x20Status','12MeUgAc','2PvMFIz','Configuration\x20Parameters:','Connected','Session\x20ID','MCP\x20Configuration','Max\x20Retries','MCP\x20Connecting...','1153855yoWcVC','Copy\x20the\x20JSON\x20configuration\x20below','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Enter\x20your\x20API\x20key','217TBoYIg','Connecting...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','9151510OYrlZP','API\x20key\x20is\x20required','What\x20is\x20API\x20Key?','Configuration\x20Steps:','Connection\x20Failed','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Unauthorized','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Connection\x20Failed','Disconnected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','146416MopLEy','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Network\x20Error','MCP:\x20Max\x20Retries\x20Exceeded','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Session\x20ID\x20Occupied','5519496lPRwdG','2751183yiGQYy','439088ojzOum','Invalid\x20configuration','Save\x20Configuration','API\x20key\x20with\x20Bearer\x20prefix.','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','1476072otrZWW','Enable\x20Authentication','MCP\x20Connected'];_0xf969=function(){return _0x4867e8;};return _0xf969();}export{n as default};
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0xadbd(){const _0x43ac80=['MCP\x20Đã\x20ngắt\x20kết\x20nối','MCP\x20Trạng\x20thái\x20không\x20xác\x20định','Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính','Đang\x20kết\x20nối...','Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','Bật\x20xác\x20thực','Yêu\x20cầu\x20khóa\x20API','837755bmRozw','MCP\x20Đã\x20kết\x20nối','Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','Kết\x20nối\x20thất\x20bại','Đã\x20kết\x20nối','Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','MCP:\x20Lỗi\x20mạng','Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn','12axsglF','Lưu\x20cấu\x20hình\x20thất\x20bại','MCP\x20Kết\x20nối\x20thất\x20bại','Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này','2hNYkLy','Lưu\x20cấu\x20hình','Đang\x20thử\x20lại...','Tham\x20số\x20cấu\x20hình:','Cấu\x20hình\x20không\x20hợp\x20lệ','Cấu\x20hình\x20máy\x20khách\x20MCP','Nhấp\x20để\x20kết\x20nối\x20MCP','Đã\x20ngắt\x20kết\x20nối','Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa.\x20Vui\x20lòng\x20thử\x20lại\x20sau','MCP\x20Đang\x20thử\x20lại...','Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20tự','10397080CyqdbW','Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','6473848zUPUXI','5666500snfUnM','MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng','MCP:\x20Không\x20được\x20phép','Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','Khởi\x20động\x20lại\x20máy\x20khách\x20MCP\x20của\x20bạn\x20để\x20áp\x20dụng\x20cấu\x20hình','9ONyeHf','103491QgOowT','Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','26897YRcdqd','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.','Các\x20bước\x20cấu\x20hình:','Khóa\x20API\x20là\x20gì?','Nhận\x20khóa\x20API\x20của\x20bạn\x20trong\x20vài\x20giây','Đị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.','3211860phgOhe','Cấu\x20hình\x20MCP','Đang\x20lưu...','Khóa\x20API\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không','MCP\x20Đang\x20kết\x20nối...','Thêm\x20cấu\x20hình\x20sau\x20vào\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn:','Nhập\x20khóa\x20API\x20của\x20bạn','Khóa\x20API','Lỗi\x20kết\x20nối\x20mạng.\x20Vui\x20lòng\x20kiểm\x20tra\x20kết\x20nối\x20internet\x20của\x20bạn'];_0xadbd=function(){return _0x43ac80;};return _0xadbd();}const _0x259cbf=_0x28d9;(function(_0x4a341d,_0x29414d){const _0x4a2088=_0x28d9,_0x1627a0=_0x4a341d();while(!![]){try{const _0x2014b2=parseInt(_0x4a2088(0x10b))/0x1+-parseInt(_0x4a2088(0x12d))/0x2*(-parseInt(_0x4a2088(0x141))/0x3)+parseInt(_0x4a2088(0x111))/0x4+-parseInt(_0x4a2088(0x121))/0x5*(-parseInt(_0x4a2088(0x129))/0x6)+-parseInt(_0x4a2088(0x13b))/0x7+-parseInt(_0x4a2088(0x13a))/0x8*(parseInt(_0x4a2088(0x140))/0x9)+parseInt(_0x4a2088(0x138))/0xa;if(_0x2014b2===_0x29414d)break;else _0x1627a0['push'](_0x1627a0['shift']());}catch(_0x25dbed){_0x1627a0['push'](_0x1627a0['shift']());}}}(_0xadbd,0x97796));function _0x28d9(_0x3463ff,_0x21ffaf){_0x3463ff=_0x3463ff-0x10b;const _0xadbd70=_0xadbd();let _0x28d9a6=_0xadbd70[_0x3463ff];return _0x28d9a6;}const n={'mcpStatus':{'disconnected':_0x259cbf(0x11a),'connecting':_0x259cbf(0x115),'connected':_0x259cbf(0x122),'failed':_0x259cbf(0x12b),'retrying':_0x259cbf(0x136),'unknown':_0x259cbf(0x11b),'unauthorized':_0x259cbf(0x13d),'sessionOccupied':_0x259cbf(0x13c),'networkError':_0x259cbf(0x127),'maxRetriesExceeded':'MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','clickToConnect':_0x259cbf(0x133),'clickToConfigure':'Nhấp\x20để\x20cấu\x20hình\x20MCP'},'mcpConfig':{'title':_0x259cbf(0x112),'description':_0x259cbf(0x11c),'apiKey':_0x259cbf(0x118),'apiKeyPlaceholder':_0x259cbf(0x117),'apiKeyHint':_0x259cbf(0x12c),'enableAuth':_0x259cbf(0x11f),'enableAuthHint':_0x259cbf(0x11e),'connectionInfo':_0x259cbf(0x132),'mcpClientConfig':_0x259cbf(0x132),'configInstructions':_0x259cbf(0x116),'configStepTitle':_0x259cbf(0x10d),'configStep1':'Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','configStep2':'Thêm\x20cấu\x20hình\x20vào\x20tệp\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn','configStep3':_0x259cbf(0x13f),'sessionId':'ID\x20phiên','sessionIdDescription':_0x259cbf(0x110),'authorizationDescription':_0x259cbf(0x126),'configParameters':_0x259cbf(0x130),'maxRetries':'Số\x20lần\x20thử\x20lại\x20tối\x20đa','save':_0x259cbf(0x12e),'saving':_0x259cbf(0x113),'note1':_0x259cbf(0x139),'note2':_0x259cbf(0x123),'configSaved':_0x259cbf(0x142),'configError':_0x259cbf(0x12a),'apiApplyInfo':{'title':_0x259cbf(0x10e),'description':_0x259cbf(0x10c),'univerAiLabel':'Bảng\x20điều\x20khiển\x20Univer\x20AI','getStarted':_0x259cbf(0x10f)},'validation':{'apiKeyRequired':_0x259cbf(0x120),'apiKeyTooShort':_0x259cbf(0x137),'invalidConfig':_0x259cbf(0x131),'invalidApiKey':_0x259cbf(0x114)},'connectionStatus':{'disconnected':_0x259cbf(0x134),'connecting':_0x259cbf(0x11d),'connected':_0x259cbf(0x125),'failed':_0x259cbf(0x124),'retrying':_0x259cbf(0x12f)},'connectionError':{'unauthorized':_0x259cbf(0x128),'sessionOccupied':_0x259cbf(0x13e),'networkError':_0x259cbf(0x119),'maxRetriesExceeded':_0x259cbf(0x135)}}};export{n as default};
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5cdc8e=_0x6d18;function _0x6d18(_0x3f1831,_0x32f7fc){_0x3f1831=_0x3f1831-0x11a;const _0x28c0be=_0x28c0();let _0x6d18fc=_0x28c0be[_0x3f1831];return _0x6d18fc;}(function(_0x1e93e9,_0x155d5a){const _0x23e375=_0x6d18,_0x328159=_0x1e93e9();while(!![]){try{const _0x498ad3=parseInt(_0x23e375(0x122))/0x1*(-parseInt(_0x23e375(0x13a))/0x2)+parseInt(_0x23e375(0x130))/0x3+-parseInt(_0x23e375(0x135))/0x4+-parseInt(_0x23e375(0x134))/0x5+-parseInt(_0x23e375(0x137))/0x6+parseInt(_0x23e375(0x11b))/0x7*(parseInt(_0x23e375(0x12b))/0x8)+parseInt(_0x23e375(0x12e))/0x9*(parseInt(_0x23e375(0x147))/0xa);if(_0x498ad3===_0x155d5a)break;else _0x328159['push'](_0x328159['shift']());}catch(_0x1ac23c){_0x328159['push'](_0x328159['shift']());}}}(_0x28c0,0x92b74));const e={'mcpStatus':{'disconnected':_0x5cdc8e(0x136),'connecting':_0x5cdc8e(0x132),'connected':_0x5cdc8e(0x11c),'failed':'MCP\x20连接失败','retrying':_0x5cdc8e(0x144),'unknown':_0x5cdc8e(0x12d),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x5cdc8e(0x139),'networkError':_0x5cdc8e(0x12a),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x5cdc8e(0x121),'clickToConfigure':_0x5cdc8e(0x145)},'mcpConfig':{'title':_0x5cdc8e(0x120),'description':_0x5cdc8e(0x13c),'apiKey':_0x5cdc8e(0x131),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x5cdc8e(0x11a),'enableAuth':'启用身份验证','enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x5cdc8e(0x12f),'mcpClientConfig':_0x5cdc8e(0x12f),'configInstructions':_0x5cdc8e(0x146),'configStepTitle':'配置步骤:','configStep1':_0x5cdc8e(0x13b),'configStep2':_0x5cdc8e(0x11d),'configStep3':_0x5cdc8e(0x13e),'sessionId':_0x5cdc8e(0x143),'sessionIdDescription':_0x5cdc8e(0x127),'authorizationDescription':_0x5cdc8e(0x12c),'configParameters':_0x5cdc8e(0x133),'maxRetries':_0x5cdc8e(0x13f),'save':_0x5cdc8e(0x148),'saving':_0x5cdc8e(0x140),'note1':_0x5cdc8e(0x125),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x5cdc8e(0x11e),'configError':'配置保存失败','apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x5cdc8e(0x149)},'validation':{'apiKeyRequired':_0x5cdc8e(0x126),'apiKeyTooShort':_0x5cdc8e(0x138),'invalidConfig':_0x5cdc8e(0x124),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x5cdc8e(0x129),'connecting':_0x5cdc8e(0x142),'connected':'已连接','failed':'连接失败','retrying':_0x5cdc8e(0x128)},'connectionError':{'unauthorized':_0x5cdc8e(0x141),'sessionOccupied':_0x5cdc8e(0x11f),'networkError':_0x5cdc8e(0x13d),'maxRetriesExceeded':_0x5cdc8e(0x123)}}};function _0x28c0(){const _0xdff7ec=['超出最大重试次数,请稍后再试','配置无效','配置更改将立即生效','API\x20密钥不能为空','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','重连中...','未连接','MCP:\x20网络错误','270032yNpDMY','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCP\x20状态未知','9BEcrEf','MCP\x20客户端配置','434316IOtojv','API\x20密钥','MCP\x20连接中...','配置参数:','5621490FyVLXK','2000588IWLEgT','MCP\x20已断开','2753208GUBHmv','API\x20密钥长度至少需要\x2010\x20位','MCP:\x20会话\x20ID\x20已被占用','6644FLXzzS','复制以下\x20JSON\x20配置','配置\x20MCP\x20使用\x20AI\x20操作电子表格','网络连接错误,请检查您的网络连接','重启您的\x20MCP\x20客户端以使配置生效','最大重试次数','保存中...','权限验证失败,请检查您的\x20API\x20密钥','连接中...','会话ID','MCP\x20重连中...','点击配置\x20MCP','将以下配置添加到您的\x20MCP\x20客户端设置中:','23882170pbuebE','保存配置','几秒钟内获取您的\x20API\x20密钥','您的\x20API\x20密钥将在此浏览器中本地存储','154oGPOQw','MCP\x20已连接','将配置添加到您的\x20MCP\x20客户端设置文件中','配置保存成功','会话\x20ID\x20已被占用,请稍后再试','MCP\x20配置','点击连接\x20MCP','178cVihXQ'];_0x28c0=function(){return _0xdff7ec;};return _0x28c0();}export{e as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x486079=_0xefb6;(function(_0x88724f,_0xc73c33){const _0x5d7269=_0xefb6,_0x326917=_0x88724f();while(!![]){try{const _0x442f4e=-parseInt(_0x5d7269(0xfd))/0x1+-parseInt(_0x5d7269(0xe1))/0x2+-parseInt(_0x5d7269(0xf7))/0x3*(-parseInt(_0x5d7269(0x100))/0x4)+parseInt(_0x5d7269(0xf9))/0x5*(parseInt(_0x5d7269(0xdc))/0x6)+parseInt(_0x5d7269(0xe4))/0x7+parseInt(_0x5d7269(0x105))/0x8*(parseInt(_0x5d7269(0xfc))/0x9)+-parseInt(_0x5d7269(0x108))/0xa;if(_0x442f4e===_0xc73c33)break;else _0x326917['push'](_0x326917['shift']());}catch(_0x5d5e2a){_0x326917['push'](_0x326917['shift']());}}}(_0x30b1,0xb9b61));const e={'mcpStatus':{'disconnected':_0x486079(0xe0),'connecting':_0x486079(0xfb),'connected':_0x486079(0xe7),'failed':_0x486079(0xee),'retrying':_0x486079(0xf0),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x486079(0xde),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x486079(0x10d),'clickToConfigure':_0x486079(0xf1)},'mcpConfig':{'title':_0x486079(0xed),'description':_0x486079(0xfe),'apiKey':_0x486079(0xf2),'apiKeyPlaceholder':_0x486079(0xe9),'apiKeyHint':_0x486079(0xeb),'enableAuth':_0x486079(0xf8),'enableAuthHint':_0x486079(0xf4),'connectionInfo':_0x486079(0xe8),'mcpClientConfig':_0x486079(0xe8),'configInstructions':_0x486079(0xff),'configStepTitle':_0x486079(0xdd),'configStep1':_0x486079(0x102),'configStep2':_0x486079(0xe3),'configStep3':_0x486079(0xf6),'sessionId':_0x486079(0x107),'sessionIdDescription':_0x486079(0x10b),'authorizationDescription':_0x486079(0x104),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x486079(0x101),'note1':_0x486079(0xdf),'note2':_0x486079(0xef),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x486079(0xf5),'apiApplyInfo':{'title':_0x486079(0xf3),'description':_0x486079(0x10c),'univerAiLabel':_0x486079(0x110),'getStarted':_0x486079(0x109)},'validation':{'apiKeyRequired':_0x486079(0xe2),'apiKeyTooShort':_0x486079(0x106),'invalidConfig':_0x486079(0xe6),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x486079(0xfa),'connected':_0x486079(0x10f),'failed':_0x486079(0x103),'retrying':_0x486079(0x10a)},'connectionError':{'unauthorized':_0x486079(0x10e),'sessionOccupied':_0x486079(0xec),'networkError':_0x486079(0xe5),'maxRetriesExceeded':_0x486079(0xea)}}},n=e;function _0xefb6(_0x5f2217,_0x239458){_0x5f2217=_0x5f2217-0xdc;const _0x30b152=_0x30b1();let _0xefb68c=_0x30b152[_0x5f2217];return _0xefb68c;}export{n as default};function _0x30b1(){const _0x192ed1=['API\x20key\x20with\x20Bearer\x20prefix.','26672pxdbLG','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Session\x20ID','3577720yvNWiG','Get\x20your\x20API\x20key\x20in\x20seconds','Retrying...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Click\x20to\x20connect\x20MCP','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Connected','Univer\x20AI\x20Console','6GOhMAk','Configuration\x20Steps:','MCP:\x20Session\x20ID\x20Occupied','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Disconnected','2696148qtZyiZ','API\x20key\x20is\x20required','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','3140389lyporn','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Invalid\x20configuration','MCP\x20Connected','MCP\x20Client\x20Configuration','Enter\x20your\x20API\x20key','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Configuration','MCP\x20Connection\x20Failed','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Retrying...','Click\x20to\x20configure\x20MCP','API\x20Key','What\x20is\x20API\x20Key?','Enable\x20authentication\x20for\x20secure\x20connections','Failed\x20to\x20save\x20configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','73911bfrGbA','Enable\x20Authentication','3439945PbQpTC','Connecting...','MCP\x20Connecting...','54PUWhJL','119047KblNwX','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','232ZjOSku','Saving...','Copy\x20the\x20JSON\x20configuration\x20below','Connection\x20Failed'];_0x30b1=function(){return _0x192ed1;};return _0x30b1();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x2c3e(_0x4b82f3,_0xcb6ab8){_0x4b82f3=_0x4b82f3-0x120;const _0x3749a3=_0x3749();let _0x2c3e24=_0x3749a3[_0x4b82f3];return _0x2c3e24;}(function(_0x3e8349,_0x556fd9){const _0x534e70=_0x2c3e,_0x536823=_0x3e8349();while(!![]){try{const _0x58a1ce=-parseInt(_0x534e70(0x156))/0x1+-parseInt(_0x534e70(0x179))/0x2+-parseInt(_0x534e70(0x142))/0x3+parseInt(_0x534e70(0x1fb))/0x4*(parseInt(_0x534e70(0x29e))/0x5)+-parseInt(_0x534e70(0x27a))/0x6+-parseInt(_0x534e70(0x28d))/0x7*(parseInt(_0x534e70(0x1ff))/0x8)+-parseInt(_0x534e70(0x18d))/0x9*(-parseInt(_0x534e70(0x296))/0xa);if(_0x58a1ce===_0x556fd9)break;else _0x536823['push'](_0x536823['shift']());}catch(_0x5f4e9c){_0x536823['push'](_0x536823['shift']());}}}(_0x3749,0x19246),function(_0x3ad33e,_0x4e15e5){const _0x183dfa=_0x2c3e;typeof exports==_0x183dfa(0x27f)&&typeof module<'u'?_0x4e15e5(exports,require('@univerjs/core'),require('react/jsx-runtime'),require('@univerjs-pro/mcp'),require('@univerjs/design'),require('@univerjs/ui'),require('rxjs'),require('react'),require('@univerjs/network')):typeof define=='function'&&define[_0x183dfa(0x1dd)]?define([_0x183dfa(0x26c),_0x183dfa(0x269),_0x183dfa(0x121),_0x183dfa(0x1b3),'@univerjs/design',_0x183dfa(0x181),_0x183dfa(0x138),_0x183dfa(0x240),'@univerjs/network'],_0x4e15e5):(_0x3ad33e=typeof globalThis<'u'?globalThis:_0x3ad33e||self,_0x4e15e5(_0x3ad33e[_0x183dfa(0x208)]={},_0x3ad33e[_0x183dfa(0x29b)],_0x3ad33e[_0x183dfa(0x1f5)],_0x3ad33e[_0x183dfa(0x12d)],_0x3ad33e[_0x183dfa(0x150)],_0x3ad33e[_0x183dfa(0x1e6)],_0x3ad33e[_0x183dfa(0x138)],_0x3ad33e[_0x183dfa(0x1f5)],_0x3ad33e[_0x183dfa(0x162)]));}(this,function(_0x4c9298,_0x2b20d3,_0x262b48,_0x575e6c,_0x47fe66,_0x18c4b7,_0x29d232,_0x4400e4,_0x121883){'use strict';const _0x1a91c3=_0x2c3e;var _0x35193a=Object[_0x1a91c3(0x152)],_0x3a0a93=(_0x7f12c3,_0xf968a,_0x18b903)=>_0xf968a in _0x7f12c3?_0x35193a(_0x7f12c3,_0xf968a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18b903}):_0x7f12c3[_0xf968a]=_0x18b903,_0x2a2485=(_0x2afc0c,_0x28931e,_0x381963)=>_0x3a0a93(_0x2afc0c,typeof _0x28931e!=_0x1a91c3(0x1dc)?_0x28931e+'':_0x28931e,_0x381963);function _0x4df5a7({ref:_0x148d99,..._0x22a397}){const _0x1551d2=_0x1a91c3,{icon:_0x1cbfa3,id:_0x10679d,className:_0x24b7b7,extend:_0x417e04,..._0xced70d}=_0x22a397,_0x3ad874=(_0x1551d2(0x1c8)+_0x10679d+'\x20'+(_0x24b7b7||''))[_0x1551d2(0x29a)](),_0x32ebed=_0x4400e4[_0x1551d2(0x13b)]('_'+_0x41bdac());return _0x127ffc(_0x1cbfa3,''+_0x10679d,{'defIds':_0x1cbfa3[_0x1551d2(0x26b)],'idSuffix':_0x32ebed[_0x1551d2(0x23e)]},{'ref':_0x148d99,'className':_0x3ad874,..._0xced70d},_0x417e04);}function _0x127ffc(_0xfed103,_0x600fa5,_0x17b4ec,_0x3d4705,_0x1b5631){const _0x20ec04=_0x1a91c3;return _0x4400e4[_0x20ec04(0x29c)](_0xfed103[_0x20ec04(0x1f4)],{'key':_0x600fa5,..._0xf166c2(_0xfed103,_0x17b4ec,_0x1b5631),..._0x3d4705},(_0x16e0a8(_0xfed103,_0x17b4ec)[_0x20ec04(0x1b5)]||[])[_0x20ec04(0x15c)]((_0x186120,_0x1ceb68)=>_0x127ffc(_0x186120,_0x600fa5+'-'+_0xfed103[_0x20ec04(0x1f4)]+'-'+_0x1ceb68,_0x17b4ec,void 0x0,_0x1b5631)));}function _0xf166c2(_0xc6e894,_0x1fd113,_0x43c065){const _0x594efb=_0x1a91c3,_0x3b189b={..._0xc6e894[_0x594efb(0x1d0)]};_0x43c065!=null&&_0x43c065[_0x594efb(0x17d)]&&_0x3b189b[_0x594efb(0x200)]===_0x594efb(0x17d)&&(_0x3b189b[_0x594efb(0x200)]=_0x43c065[_0x594efb(0x17d)]),_0xc6e894[_0x594efb(0x1f4)]===_0x594efb(0x201)&&_0x3b189b['id']&&(_0x3b189b['id']=_0x3b189b['id']+_0x1fd113['idSuffix']),Object[_0x594efb(0x2b6)](_0x3b189b)[_0x594efb(0x191)](([_0x23ad66,_0x11f70f])=>{const _0x4a7057=_0x594efb;_0x23ad66==='mask'&&typeof _0x11f70f==_0x4a7057(0x17c)&&(_0x3b189b[_0x23ad66]=_0x11f70f[_0x4a7057(0x227)](/url\(#(.*)\)/,_0x4a7057(0x14f)+_0x1fd113['idSuffix']+')'));});const {defIds:_0x3fda09}=_0x1fd113;return!_0x3fda09||_0x3fda09[_0x594efb(0x1ae)]===0x0||(_0xc6e894['tag']===_0x594efb(0x1c7)&&_0x3b189b[_0x594efb(0x2ab)]&&(_0x3b189b[_0x594efb(0x2ab)]=_0x3b189b[_0x594efb(0x2ab)]+_0x1fd113[_0x594efb(0x14c)]),Object[_0x594efb(0x2b6)](_0x3b189b)[_0x594efb(0x191)](([_0x1ed97f,_0x4ce0c5])=>{const _0xe0cfee=_0x594efb;typeof _0x4ce0c5=='string'&&(_0x3b189b[_0x1ed97f]=_0x4ce0c5[_0xe0cfee(0x227)](/url\(#(.*)\)/,_0xe0cfee(0x14f)+_0x1fd113[_0xe0cfee(0x14c)]+')'));})),_0x3b189b;}function _0x16e0a8(_0x12651b,_0x403d41){const _0x43d5de=_0x1a91c3;var _0x2f1e74;const {defIds:_0x587bbd}=_0x403d41;return!_0x587bbd||_0x587bbd[_0x43d5de(0x1ae)]===0x0?_0x12651b:_0x12651b[_0x43d5de(0x1f4)]==='defs'&&((_0x2f1e74=_0x12651b['children'])!=null&&_0x2f1e74['length'])?{..._0x12651b,'children':_0x12651b[_0x43d5de(0x1b5)][_0x43d5de(0x15c)](_0x4d427b=>typeof _0x4d427b['attrs']['id']==_0x43d5de(0x17c)&&_0x587bbd&&_0x587bbd['includes'](_0x4d427b[_0x43d5de(0x1d0)]['id'])?{..._0x4d427b,'attrs':{..._0x4d427b['attrs'],'id':_0x4d427b[_0x43d5de(0x1d0)]['id']+_0x403d41[_0x43d5de(0x14c)]}}:_0x4d427b)}:_0x12651b;}function _0x41bdac(){const _0x5ae672=_0x1a91c3;return Math[_0x5ae672(0x24d)]()['toString'](0x24)[_0x5ae672(0x27d)](0x2,0x8);}_0x4df5a7['displayName']=_0x1a91c3(0x15b);const _0x29f747={'tag':_0x1a91c3(0x1e9),'attrs':{'xmlns':_0x1a91c3(0x21c),'fill':_0x1a91c3(0x1ab),'viewBox':_0x1a91c3(0x230),'width':'1em','height':_0x1a91c3(0x26e)},'children':[{'tag':_0x1a91c3(0x14b),'attrs':{'fill':_0x1a91c3(0x1c0),'d':_0x1a91c3(0x26d),'fillRule':_0x1a91c3(0x1d1),'clipRule':_0x1a91c3(0x1d1)}}]},_0xa17919=_0x4400e4[_0x1a91c3(0x25c)](function(_0x18ec30,_0x467a5b){const _0x568d3e=_0x1a91c3;return _0x4400e4[_0x568d3e(0x29c)](_0x4df5a7,Object[_0x568d3e(0x274)]({},_0x18ec30,{'id':_0x568d3e(0x190),'ref':_0x467a5b,'icon':_0x29f747}));});_0xa17919['displayName']='CheckMarkIcon';const _0x49dd48={'tag':'svg','attrs':{'xmlns':_0x1a91c3(0x21c),'fill':_0x1a91c3(0x1ab),'viewBox':'0\x200\x2016\x2016','width':_0x1a91c3(0x26e),'height':'1em'},'children':[{'tag':_0x1a91c3(0x14b),'attrs':{'fill':_0x1a91c3(0x1c0),'d':'M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z'}}]},_0x314ed1=_0x4400e4[_0x1a91c3(0x25c)](function(_0x557a05,_0x1504d3){const _0x262b8d=_0x1a91c3;return _0x4400e4[_0x262b8d(0x29c)](_0x4df5a7,Object[_0x262b8d(0x274)]({},_0x557a05,{'id':'close-icon','ref':_0x1504d3,'icon':_0x49dd48}));});_0x314ed1[_0x1a91c3(0x1ce)]=_0x1a91c3(0x222);const _0x562012={'tag':_0x1a91c3(0x1e9),'attrs':{'xmlns':_0x1a91c3(0x21c),'fill':_0x1a91c3(0x1ab),'viewBox':'0\x200\x2016\x2016','width':_0x1a91c3(0x26e),'height':_0x1a91c3(0x26e)},'children':[{'tag':_0x1a91c3(0x14b),'attrs':{'fill':'currentColor','d':_0x1a91c3(0x2a0)}},{'tag':_0x1a91c3(0x14b),'attrs':{'fill':'currentColor','d':_0x1a91c3(0x254)}},{'tag':_0x1a91c3(0x14b),'attrs':{'fill':_0x1a91c3(0x1c0),'d':_0x1a91c3(0x1ec),'fillRule':_0x1a91c3(0x1d1),'clipRule':'evenodd'}}]},_0x599c9e=_0x4400e4[_0x1a91c3(0x25c)](function(_0xc58e49,_0x4a6ac0){const _0x5bcdf9=_0x1a91c3;return _0x4400e4[_0x5bcdf9(0x29c)](_0x4df5a7,Object[_0x5bcdf9(0x274)]({},_0xc58e49,{'id':'help-icon','ref':_0x4a6ac0,'icon':_0x562012}));});_0x599c9e['displayName']=_0x1a91c3(0x187);const _0x3cbea1={'tag':_0x1a91c3(0x1e9),'attrs':{'xmlns':_0x1a91c3(0x21c),'fill':_0x1a91c3(0x1ab),'viewBox':'0\x200\x2016\x2016','width':_0x1a91c3(0x26e),'height':_0x1a91c3(0x26e)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x1a91c3(0x14b),'attrs':{'stroke':_0x1a91c3(0x1c0),'d':_0x1a91c3(0x22a),'strokeLinecap':_0x1a91c3(0x29f),'strokeLinejoin':_0x1a91c3(0x29f),'strokeWidth':1.2}}]},{'tag':_0x1a91c3(0x188),'attrs':{},'children':[{'tag':_0x1a91c3(0x20c),'attrs':{'id':_0x1a91c3(0x1ed)},'children':[{'tag':_0x1a91c3(0x14b),'attrs':{'fill':_0x1a91c3(0x267),'d':_0x1a91c3(0x1a4)}}]}]}],'defIds':[_0x1a91c3(0x1ed)]},_0x6b3ea5=_0x4400e4[_0x1a91c3(0x25c)](function(_0x4c5333,_0x24af68){const _0x14fb04=_0x1a91c3;return _0x4400e4[_0x14fb04(0x29c)](_0x4df5a7,Object[_0x14fb04(0x274)]({},_0x4c5333,{'id':_0x14fb04(0x1be),'ref':_0x24af68,'icon':_0x3cbea1}));});_0x6b3ea5[_0x1a91c3(0x1ce)]=_0x1a91c3(0x1da);const _0x343a16={'tag':_0x1a91c3(0x1e9),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2017\x2016','width':_0x1a91c3(0x26e),'height':_0x1a91c3(0x26e)},'children':[{'tag':'g','attrs':{'clipPath':_0x1a91c3(0x20e)},'children':[{'tag':'path','attrs':{'stroke':_0x1a91c3(0x1c0),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x1a91c3(0x29f),'strokeLinejoin':_0x1a91c3(0x29f),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x1a91c3(0x20c),'attrs':{'id':_0x1a91c3(0x174)},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x1a91c3(0x1a4),'transform':_0x1a91c3(0x25b)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},_0x196304=_0x4400e4[_0x1a91c3(0x25c)](function(_0x73c4da,_0x54648a){const _0x8a3813=_0x1a91c3;return _0x4400e4[_0x8a3813(0x29c)](_0x4df5a7,Object['assign']({},_0x73c4da,{'id':_0x8a3813(0x1f8),'ref':_0x54648a,'icon':_0x343a16}));});_0x196304[_0x1a91c3(0x1ce)]='OnLineIcon';function _0x31ca05(_0x54d44e){const _0x59fbec=_0x1a91c3;var _0x50a6a3,_0x2cdb4b;const {mcpCoreConfig:_0x348d88,onSave:_0x3188a7,loading:_0x1b86b3=!0x1,config:_0x351a4c,connectionStatus$:_0x1d8a6d,connectionError$:_0x1b1cb8,currentApiKey$:_0x27c3d0,currentSessionId$:_0x5c2e2e}=_0x54d44e,_0x2168e0=_0x18c4b7[_0x59fbec(0x134)](_0x2b20d3[_0x59fbec(0x1c4)]),_0x51ab56=_0x18c4b7[_0x59fbec(0x297)](_0x1d8a6d,_0x575e6c[_0x59fbec(0x265)][_0x59fbec(0x1c5)]),_0x149a2e=_0x18c4b7['useObservable'](_0x1b1cb8,_0x575e6c[_0x59fbec(0x18c)][_0x59fbec(0x27c)]),_0x4945ca=_0x18c4b7[_0x59fbec(0x297)](_0x5c2e2e,''),_0x23edbf=_0x18c4b7['useObservable'](_0x27c3d0,''),[_0x4f2eb9,_0x226022]=_0x4400e4['useState'](_0x23edbf||''),_0xf2211b=!0x0,_0x3fe8a6=_0x351a4c[_0x59fbec(0x1b4)]&&_0x348d88[_0x59fbec(0x1cb)]&&(_0x348d88[_0x59fbec(0x1cb)][_0x59fbec(0x1aa)](_0x59fbec(0x286))||_0x348d88['mcpServerUrl'][_0x59fbec(0x1aa)](_0x59fbec(0x139))),_0xb8f52b=(_0x50a6a3=_0x348d88[_0x59fbec(0x1cb)])==null?void 0x0:_0x50a6a3[_0x59fbec(0x1aa)](_0x59fbec(0x286)),_0x567121=(_0x2cdb4b=_0x348d88[_0x59fbec(0x1cb)])==null?void 0x0:_0x2cdb4b[_0x59fbec(0x1aa)](_0x59fbec(0x139)),_0x1376ae=_0xb8f52b?'https://console.univer.plus':_0x59fbec(0x1e4),_0x1a30df=_0x351a4c['showDeveloperTools']&&(_0xb8f52b||_0x567121),[_0x47fac3,_0xbe9199]=_0x4400e4[_0x59fbec(0x1eb)](!_0x4f2eb9['trim']()),_0x475c82=(_0x10964d,_0x3de9b7)=>{const _0x2ea5c0=_0x59fbec;if(_0x3de9b7===_0x575e6c[_0x2ea5c0(0x18c)][_0x2ea5c0(0x14d)])return _0x2ea5c0(0x219);switch(_0x10964d){case _0x575e6c[_0x2ea5c0(0x265)][_0x2ea5c0(0x146)]:return _0x2ea5c0(0x235);case _0x575e6c[_0x2ea5c0(0x265)][_0x2ea5c0(0x19f)]:case _0x575e6c[_0x2ea5c0(0x265)][_0x2ea5c0(0x1a9)]:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case _0x575e6c[_0x2ea5c0(0x265)]['FAILED']:return _0x2ea5c0(0x219);default:return _0x2ea5c0(0x1c1);}},_0x57c60b=(_0x1b5f23,_0x41e385)=>{const _0x31a015=_0x59fbec;if(_0x41e385===_0x575e6c[_0x31a015(0x18c)]['UNAUTHORIZED'])return'univer-bg-red-500';switch(_0x1b5f23){case _0x575e6c['MCPConnectionStatus']['CONNECTED']:return _0x31a015(0x15a);case _0x575e6c[_0x31a015(0x265)][_0x31a015(0x19f)]:case _0x575e6c['MCPConnectionStatus'][_0x31a015(0x1a9)]:return _0x31a015(0x1d3);case _0x575e6c[_0x31a015(0x265)][_0x31a015(0x270)]:return _0x31a015(0x1f0);default:return _0x31a015(0x197);}},_0x1bb9e1=_0x395fba=>{const _0x59687e=_0x59fbec;switch(_0x395fba){case _0x575e6c[_0x59687e(0x265)][_0x59687e(0x146)]:return _0x2168e0['t'](_0x59687e(0x19d));case _0x575e6c[_0x59687e(0x265)]['CONNECTING']:return _0x2168e0['t']('mcpConfig.connectionStatus.connecting');case _0x575e6c[_0x59687e(0x265)][_0x59687e(0x270)]:return _0x2168e0['t'](_0x59687e(0x1bc));case _0x575e6c[_0x59687e(0x265)][_0x59687e(0x1a9)]:return _0x2168e0['t'](_0x59687e(0x238));default:return _0x2168e0['t'](_0x59687e(0x155));}},_0x293499=_0x4ad4da=>{const _0x3e03dc=_0x59fbec;switch(_0x4ad4da){case _0x575e6c['MCPConnectionError'][_0x3e03dc(0x14d)]:return _0x2168e0['t']('mcpConfig.connectionError.unauthorized');case _0x575e6c[_0x3e03dc(0x18c)][_0x3e03dc(0x1f6)]:return _0x2168e0['t'](_0x3e03dc(0x17f));case _0x575e6c[_0x3e03dc(0x18c)][_0x3e03dc(0x27e)]:return _0x2168e0['t']('mcpConfig.connectionError.networkError');case _0x575e6c[_0x3e03dc(0x18c)][_0x3e03dc(0x25d)]:return _0x2168e0['t'](_0x3e03dc(0x2a6));default:return'';}},_0x219f05=_0x4400e4['useCallback'](()=>{const _0xc265f0=_0x59fbec,_0x6d385f={..._0x348d88,'apiKey':_0x4f2eb9[_0xc265f0(0x29a)](),'enableAuth':_0xf2211b};_0x3188a7(_0x6d385f);},[_0x348d88,_0x4f2eb9,_0xf2211b,_0x3188a7]),_0x4b08dc=_0x4f2eb9['trim']()[_0x59fbec(0x1ae)]>0x0;return _0x262b48[_0x59fbec(0x25a)](_0x59fbec(0x144),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x144),{'className':_0x59fbec(0x133),'children':_0x262b48[_0x59fbec(0x25a)]('div',{'className':_0x59fbec(0x170),'children':[_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x144),{'className':_0x59fbec(0x1af),'children':_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x1b7),{'className':_0x59fbec(0x2ac),'children':'⚙'})}),_0x262b48['jsx'](_0x59fbec(0x144),{'children':_0x262b48[_0x59fbec(0x1f3)]('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x2168e0['t'](_0x59fbec(0x291))})})]})}),_0x262b48[_0x59fbec(0x25a)]('div',{'className':_0x59fbec(0x18f),'children':[_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x144),{'className':_0x47fe66['clsx'](_0x59fbec(0x19e),_0x475c82(_0x51ab56,_0x149a2e)),'children':_0x262b48[_0x59fbec(0x25a)](_0x59fbec(0x144),{'className':_0x59fbec(0x186),'children':[_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x144),{'className':_0x47fe66[_0x59fbec(0x12e)]('univer-size-2\x20univer-rounded-full',_0x57c60b(_0x51ab56,_0x149a2e))}),_0x262b48[_0x59fbec(0x1f3)]('span',{'className':_0x59fbec(0x2ad),'children':_0x1bb9e1(_0x51ab56)})]})}),_0x149a2e!==_0x575e6c[_0x59fbec(0x18c)]['NONE']&&(_0x51ab56===_0x575e6c['MCPConnectionStatus']['FAILED']||_0x149a2e===_0x575e6c['MCPConnectionError'][_0x59fbec(0x14d)])&&_0x262b48['jsx'](_0x59fbec(0x144),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x262b48[_0x59fbec(0x25a)]('div',{'className':_0x59fbec(0x1a3),'children':[_0x262b48['jsx']('span',{'className':_0x59fbec(0x23a),'children':'⚠️'}),_0x262b48[_0x59fbec(0x1f3)]('p',{'className':_0x59fbec(0x13f),'children':_0x293499(_0x149a2e)})]})})]}),_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x144),{'className':_0x59fbec(0x131),'children':_0x262b48[_0x59fbec(0x25a)](_0x59fbec(0x144),{'className':_0x59fbec(0x1fc),'children':[_0x262b48['jsxs'](_0x59fbec(0x144),{'className':_0x59fbec(0x237),'children':[_0x262b48[_0x59fbec(0x25a)]('label',{'className':_0x59fbec(0x1a1),'children':[_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x1b7),{'children':'🔑'}),'\x20',_0x2168e0['t'](_0x59fbec(0x135)),_0x262b48['jsx']('span',{'className':_0x59fbec(0x151),'children':'*'}),_0x3fe8a6&&_0x262b48[_0x59fbec(0x1f3)]('a',{'className':_0x59fbec(0x159),'title':_0x2168e0['t']('mcpConfig.apiApplyInfo.title'),'role':_0x59fbec(0x1ee),'onClick':()=>_0xbe9199(!0x0),'children':_0x262b48[_0x59fbec(0x1f3)](_0x599c9e,{})})]}),_0x262b48[_0x59fbec(0x1f3)](_0x47fe66[_0x59fbec(0x20b)],{'type':'text','placeholder':_0x2168e0['t'](_0x59fbec(0x214)),'value':_0x4f2eb9,'disabled':_0x1b86b3,'autoComplete':'off','onChange':_0x226022}),_0x262b48['jsx']('p',{'className':_0x59fbec(0x1c6),'children':_0x2168e0['t']('mcpConfig.apiKeyHint')})]}),_0x3fe8a6&&_0x47fac3&&_0x262b48[_0x59fbec(0x25a)](_0x59fbec(0x144),{'className':_0x59fbec(0x298),'children':[_0x262b48[_0x59fbec(0x1f3)]('a',{'className':_0x59fbec(0x2a4),'role':_0x59fbec(0x1ee),'onClick':()=>_0xbe9199(!0x1),'children':_0x262b48['jsx'](_0x314ed1,{'className':_0x59fbec(0x1a0)})}),_0x262b48[_0x59fbec(0x25a)](_0x59fbec(0x144),{'className':_0x59fbec(0x189),'children':[_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x144),{'className':_0x59fbec(0x2a2),'children':_0x262b48[_0x59fbec(0x1f3)]('span',{'className':_0x59fbec(0x1c3),'children':'🚀'})}),_0x262b48['jsxs'](_0x59fbec(0x144),{'className':'univer-flex-1','children':[_0x262b48['jsx']('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x2168e0['t'](_0x59fbec(0x250))}),_0x262b48['jsx']('p',{'className':_0x59fbec(0x125),'children':_0x2168e0['t'](_0x59fbec(0x169))}),_0x262b48['jsx'](_0x59fbec(0x144),{'className':_0x59fbec(0x2b0),'children':_0x1a30df&&_0x262b48[_0x59fbec(0x25a)]('a',{'className':_0x59fbec(0x258),'href':_0x1376ae,'target':_0x59fbec(0x165),'rel':_0x59fbec(0x14a),'children':[_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x1b7),{'children':'🤖'}),_0x2168e0['t'](_0x59fbec(0x28c)),_0x262b48['jsx'](_0x59fbec(0x1b7),{'className':_0x59fbec(0x1c2),'children':'↗'})]})}),_0x262b48[_0x59fbec(0x25a)](_0x59fbec(0x144),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x2168e0['t'](_0x59fbec(0x122))]})]})]})]}),_0x351a4c['showDeveloperTools']&&_0x262b48['jsxs']('div',{'className':_0x59fbec(0x1df),'children':[_0x262b48[_0x59fbec(0x25a)]('h4',{'className':_0x59fbec(0x154),'children':[_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x1b7),{'children':'🔗'}),'\x20',_0x2168e0['t'](_0x59fbec(0x280))]}),_0x262b48[_0x59fbec(0x25a)](_0x59fbec(0x144),{'className':'univer-space-y-4','children':[_0x262b48[_0x59fbec(0x25a)](_0x59fbec(0x144),{'className':_0x59fbec(0x1b2),'children':[_0x262b48[_0x59fbec(0x1f3)]('p',{'className':_0x59fbec(0x282),'children':_0x2168e0['t']('mcpConfig.configInstructions')}),_0x262b48['jsxs'](_0x59fbec(0x144),{'className':_0x59fbec(0x237),'children':[_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x144),{'className':_0x59fbec(0x287),'children':_0x2168e0['t'](_0x59fbec(0x1d9))}),_0x262b48['jsxs'](_0x59fbec(0x144),{'className':_0x59fbec(0x217),'children':[_0x262b48['jsxs'](_0x59fbec(0x144),{'className':_0x59fbec(0x186),'children':[_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x1b7),{'className':_0x59fbec(0x262),'children':'1'}),_0x2168e0['t']('mcpConfig.configStep1')]}),_0x262b48[_0x59fbec(0x25a)](_0x59fbec(0x144),{'className':_0x59fbec(0x186),'children':[_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x1b7),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x2168e0['t']('mcpConfig.configStep2')]}),_0x262b48['jsxs']('div',{'className':_0x59fbec(0x186),'children':[_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x1b7),{'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'}),_0x2168e0['t'](_0x59fbec(0x1e3))]})]})]})]}),_0x262b48['jsxs'](_0x59fbec(0x144),{'className':'univer-space-y-2','children':[_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x144),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x59fbec(0x1bf)}),_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x144),{'className':_0x59fbec(0x221),'children':_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x263),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON[_0x59fbec(0x128)]({'mcpServers':{'univer':{'url':_0x59fbec(0x257)+(_0x4945ca||_0x59fbec(0x212)),'type':_0x59fbec(0x28b),'headers':{'Authorization':_0x59fbec(0x1b9)+(_0x4f2eb9||_0x59fbec(0x12a))}}}},null,0x2)})})]}),_0x262b48['jsxs'](_0x59fbec(0x144),{'className':_0x59fbec(0x1b2),'children':[_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x144),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x2168e0['t']('mcpConfig.configParameters')}),_0x262b48[_0x59fbec(0x25a)]('div',{'className':_0x59fbec(0x237),'children':[_0x262b48[_0x59fbec(0x25a)]('div',{'className':_0x59fbec(0x244),'children':[_0x262b48['jsx']('div',{'className':_0x59fbec(0x1fd)}),_0x262b48['jsxs'](_0x59fbec(0x144),{'className':_0x59fbec(0x137),'children':[_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x144),{'className':_0x59fbec(0x288),'children':'univer_session_id:'}),_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x144),{'className':_0x59fbec(0x1c6),'children':_0x2168e0['t'](_0x59fbec(0x299))})]})]}),_0x262b48[_0x59fbec(0x25a)](_0x59fbec(0x144),{'className':_0x59fbec(0x244),'children':[_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x144),{'className':_0x59fbec(0x1fd)}),_0x262b48[_0x59fbec(0x25a)](_0x59fbec(0x144),{'className':_0x59fbec(0x137),'children':[_0x262b48[_0x59fbec(0x1f3)]('div',{'className':_0x59fbec(0x288),'children':_0x59fbec(0x22b)}),_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x144),{'className':_0x59fbec(0x1c6),'children':_0x2168e0['t'](_0x59fbec(0x268))})]})]})]})]})]})]}),_0x262b48['jsx'](_0x47fe66[_0x59fbec(0x176)],{'onClick':_0x219f05,'disabled':!_0x4b08dc||_0x1b86b3,'className':_0x59fbec(0x1d5),'children':_0x1b86b3?_0x262b48[_0x59fbec(0x25a)](_0x59fbec(0x1b7),{'className':_0x59fbec(0x186),'children':[_0x262b48['jsx'](_0x59fbec(0x1b7),{'children':'⟲'}),_0x2168e0['t'](_0x59fbec(0x255))]}):_0x262b48[_0x59fbec(0x25a)]('span',{'className':_0x59fbec(0x186),'children':[_0x262b48[_0x59fbec(0x1f3)](_0xa17919,{}),_0x2168e0['t'](_0x59fbec(0x27b))]})}),_0x262b48['jsx']('div',{'className':_0x59fbec(0x178),'children':_0x262b48['jsxs'](_0x59fbec(0x144),{'className':_0x59fbec(0x185),'children':[_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x1b7),{'className':_0x59fbec(0x223),'children':'💡'}),_0x262b48[_0x59fbec(0x25a)](_0x59fbec(0x144),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x144),{'className':_0x59fbec(0x229),'children':_0x59fbec(0x14e)}),_0x262b48['jsxs']('div',{'children':['•',_0x2168e0['t'](_0x59fbec(0x13e))]}),_0x262b48[_0x59fbec(0x25a)](_0x59fbec(0x144),{'children':['•',_0x2168e0['t'](_0x59fbec(0x17e))]})]})]})})]})})]});}const _0x249622='mcp-ui.config',_0x5d86d9={'showDeveloperTools':!0x1,'showStatus':!0x0};var _0x56eb3c=Object['getOwnPropertyDescriptor'],_0x39c4f7=(_0x2ff056,_0x143beb,_0x39ac7f,_0x5acae0)=>{for(var _0x53a4bf=_0x5acae0>0x1?void 0x0:_0x5acae0?_0x56eb3c(_0x143beb,_0x39ac7f):_0x143beb,_0x38a153=_0x2ff056['length']-0x1,_0x2156be;_0x38a153>=0x0;_0x38a153--)(_0x2156be=_0x2ff056[_0x38a153])&&(_0x53a4bf=_0x2156be(_0x53a4bf)||_0x53a4bf);return _0x53a4bf;},_0x577745=(_0xd72f82,_0x30f6f9)=>(_0x258a28,_0x14e92c)=>_0x30f6f9(_0x258a28,_0x14e92c,_0xd72f82);const _0x16fb22='mcp.apiKey',_0xdd14a8=_0x1a91c3(0x2b8);_0x4c9298[_0x1a91c3(0x2a1)]=class extends _0x2b20d3['Disposable']{constructor(_0x503842,_0x51110d,_0x4fb0b3,_0x578890,_0x409bfe,_0x3e9e16,_0x181f64,_0x18d20c,_0x1a63ba,_0x2f6b07){const _0x3f179a=_0x1a91c3;super(),_0x2a2485(this,_0x3f179a(0x26f),new _0x29d232[(_0x3f179a(0x209))](!0x1)),_0x2a2485(this,_0x3f179a(0x158),new _0x29d232[(_0x3f179a(0x209))]({})),_0x2a2485(this,_0x3f179a(0x193),new _0x29d232[(_0x3f179a(0x209))]({})),_0x2a2485(this,_0x3f179a(0x166),new _0x29d232[(_0x3f179a(0x209))]('')),_0x2a2485(this,_0x3f179a(0x164),async _0x3505f8=>{const _0x2d6ec2=_0x3f179a;var _0x2ca36c,_0x3a3efe;this[_0x2d6ec2(0x26f)][_0x2d6ec2(0x1e2)](!0x0);try{const _0x5e6de0=await this[_0x2d6ec2(0x1e8)](_0x3505f8);if(!_0x5e6de0['isValid']){this['_messageService'][_0x2d6ec2(0x175)]({'type':_0x47fe66[_0x2d6ec2(0x276)]['Error'],'content':_0x5e6de0[_0x2d6ec2(0x284)]||this[_0x2d6ec2(0x241)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x3505f8[_0x2d6ec2(0x1c9)]?await this['_localStorageService'][_0x2d6ec2(0x207)](_0x16fb22,_0x3505f8[_0x2d6ec2(0x1c9)][_0x2d6ec2(0x29a)]()):await this[_0x2d6ec2(0x2b4)][_0x2d6ec2(0x182)](_0x16fb22),this[_0x2d6ec2(0x166)][_0x2d6ec2(0x1e2)](((_0x2ca36c=_0x3505f8[_0x2d6ec2(0x1c9)])==null?void 0x0:_0x2ca36c['trim']())||''),this[_0x2d6ec2(0x213)]['__setCustomHeaders']({'Authorization':_0x2d6ec2(0x1b9)+((_0x3a3efe=_0x3505f8[_0x2d6ec2(0x1c9)])==null?void 0x0:_0x3a3efe[_0x2d6ec2(0x29a)]())}),this[_0x2d6ec2(0x281)][_0x2d6ec2(0x175)]({'type':_0x47fe66['MessageType'][_0x2d6ec2(0x226)],'content':this[_0x2d6ec2(0x241)]['t'](_0x2d6ec2(0x16e))}),setTimeout(()=>{const _0x15e461=_0x2d6ec2;this[_0x15e461(0x2a8)][_0x15e461(0x285)](_0xdd14a8);},0x320);}catch(_0x42e750){this[_0x2d6ec2(0x28e)][_0x2d6ec2(0x195)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x42e750),this['_messageService'][_0x2d6ec2(0x175)]({'type':_0x47fe66[_0x2d6ec2(0x276)][_0x2d6ec2(0x1de)],'content':this[_0x2d6ec2(0x241)]['t'](_0x2d6ec2(0x1ad))});}finally{this[_0x2d6ec2(0x26f)]['next'](!0x1);}}),(this[_0x3f179a(0x247)]=_0x503842,this[_0x3f179a(0x2ae)]=_0x51110d,this[_0x3f179a(0x216)]=_0x4fb0b3,this['_localStorageService']=_0x578890,this[_0x3f179a(0x2a8)]=_0x409bfe,this['_messageService']=_0x3e9e16,this[_0x3f179a(0x19b)]=_0x181f64,this[_0x3f179a(0x241)]=_0x18d20c,this[_0x3f179a(0x28e)]=_0x1a63ba,this[_0x3f179a(0x213)]=_0x2f6b07,this[_0x3f179a(0x147)](),this[_0x3f179a(0x256)](),this[_0x3f179a(0x24f)]());}[_0x1a91c3(0x17a)](){const _0x2afb2b=_0x1a91c3,_0x241f74=this[_0x2afb2b(0x216)][_0x2afb2b(0x261)](_0x249622);_0x241f74!=null&&_0x241f74['showDeveloperTools']&&this[_0x2afb2b(0x2a8)][_0x2afb2b(0x239)]({'id':_0xdd14a8,'title':{'title':this[_0x2afb2b(0x241)]['t']('mcpConfig.title')},'children':{'label':_0x2afb2b(0x23d)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x47ce18=_0x2afb2b;this[_0x47ce18(0x2a8)]['close'](_0xdd14a8);}});}[_0x1a91c3(0x1e0)](){const _0x296966=_0x1a91c3;return this['_mcpCoreConfig$'][_0x296966(0x225)];}['_registerComponent'](){const _0x44b317=_0x1a91c3;this[_0x44b317(0x1ef)](this[_0x44b317(0x19b)][_0x44b317(0x1fe)](_0x44b317(0x23d),this['_createConfigPanelComponent']()));}[_0x1a91c3(0x205)](){const _0x33b711=_0x1a91c3;return _0x18c4b7[_0x33b711(0x172)](()=>{const _0x575a4f=_0x33b711;var _0x452e60,_0x13a066,_0x38f1dc;return _0x262b48[_0x575a4f(0x1f3)](_0x31ca05,{'config':this[_0x575a4f(0x193)][_0x575a4f(0x225)],'mcpCoreConfig':this[_0x575a4f(0x158)]['value'],'currentApiKey$':this[_0x575a4f(0x166)],'onSave':this[_0x575a4f(0x164)],'loading':this[_0x575a4f(0x26f)][_0x575a4f(0x225)],'connectionStatus$':(_0x452e60=this[_0x575a4f(0x213)])==null?void 0x0:_0x452e60[_0x575a4f(0x2a9)],'connectionError$':(_0x13a066=this[_0x575a4f(0x213)])==null?void 0x0:_0x13a066['connectionError$'],'currentSessionId$':(_0x38f1dc=this[_0x575a4f(0x213)])==null?void 0x0:_0x38f1dc[_0x575a4f(0x26a)]});},this[_0x33b711(0x247)]);}[_0x1a91c3(0x147)](){const _0xffd0dd=_0x1a91c3;this[_0xffd0dd(0x1ef)](this['_configService'][_0xffd0dd(0x1ac)](_0x575e6c[_0xffd0dd(0x1b6)])[_0xffd0dd(0x16f)](_0x4a301b=>{const _0x3ee65a=_0xffd0dd;this[_0x3ee65a(0x158)]['next'](_0x4a301b||{});}));const _0x11a53c=this[_0xffd0dd(0x216)]['getConfig'](_0x575e6c['MCP_PLUGIN_CONFIG_KEY']);this['_mcpCoreConfig$'][_0xffd0dd(0x1e2)](_0x11a53c||{}),this[_0xffd0dd(0x1ef)](this[_0xffd0dd(0x216)][_0xffd0dd(0x1ac)](_0x249622)[_0xffd0dd(0x16f)](_0x105f59=>{const _0x1fbd21=_0xffd0dd;this[_0x1fbd21(0x193)][_0x1fbd21(0x1e2)](_0x105f59||{});}));const _0x411d60=this[_0xffd0dd(0x216)][_0xffd0dd(0x261)](_0x249622);this[_0xffd0dd(0x193)][_0xffd0dd(0x1e2)](_0x411d60||{});}async[_0x1a91c3(0x256)](){const _0x30beed=_0x1a91c3,_0x2c7303=this[_0x30beed(0x216)]['getConfig'](_0x249622);if(!(_0x2c7303!=null&&_0x2c7303['showDeveloperTools']))return;const _0x2189cb=await this[_0x30beed(0x2b4)][_0x30beed(0x1d8)](_0x16fb22);_0x2189cb&&(this[_0x30beed(0x213)][_0x30beed(0x198)]({'Authorization':_0x30beed(0x1b9)+_0x2189cb}),this[_0x30beed(0x166)]['next'](_0x2189cb));}async['_validateConfig'](_0xa9f3b5){const _0x1c8195=_0x1a91c3;if(!_0xa9f3b5[_0x1c8195(0x1c9)]||_0xa9f3b5[_0x1c8195(0x1c9)][_0x1c8195(0x29a)]()[_0x1c8195(0x1ae)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x1c8195(0x12c))};if(_0xa9f3b5[_0x1c8195(0x1c9)][_0x1c8195(0x29a)]()[_0x1c8195(0x1ae)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x1c8195(0x241)]['t'](_0x1c8195(0x293))};try{const _0x116c22=await this[_0x1c8195(0x247)][_0x1c8195(0x24e)](_0x575e6c[_0x1c8195(0x24c)])[_0x1c8195(0x1a5)](_0xa9f3b5[_0x1c8195(0x1c9)][_0x1c8195(0x29a)]());return _0x116c22[_0x1c8195(0x1d2)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x116c22[_0x1c8195(0x195)]||this[_0x1c8195(0x241)]['t'](_0x1c8195(0x1e7))};}catch(_0x1bae86){return console['warn'](_0x1c8195(0x220),_0x1bae86),{'isValid':!0x0};}}},_0x4c9298[_0x1a91c3(0x2a1)]=_0x39c4f7([_0x577745(0x0,_0x2b20d3[_0x1a91c3(0x2b2)](_0x2b20d3[_0x1a91c3(0x283)])),_0x577745(0x1,_0x18c4b7[_0x1a91c3(0x141)]),_0x577745(0x2,_0x2b20d3[_0x1a91c3(0x192)]),_0x577745(0x3,_0x2b20d3[_0x1a91c3(0x17b)]),_0x577745(0x4,_0x18c4b7[_0x1a91c3(0x1d4)]),_0x577745(0x5,_0x18c4b7['IMessageService']),_0x577745(0x6,_0x2b20d3[_0x1a91c3(0x2b2)](_0x18c4b7[_0x1a91c3(0x2af)])),_0x577745(0x7,_0x2b20d3['Inject'](_0x2b20d3[_0x1a91c3(0x1c4)])),_0x577745(0x8,_0x2b20d3[_0x1a91c3(0x252)]),_0x577745(0x9,_0x2b20d3[_0x1a91c3(0x2b2)](_0x575e6c[_0x1a91c3(0x24c)]))],_0x4c9298['MCPConfigUIController']);const _0x407eb0={'id':'mcp-ui.command.openConfigPanel','type':_0x2b20d3[_0x1a91c3(0x231)][_0x1a91c3(0x215)],'handler':async(_0x33fe87,_0x18c21b)=>(_0x33fe87['get'](_0x4c9298[_0x1a91c3(0x2a1)])[_0x1a91c3(0x17a)](),!0x0)};function _0x2a67e8(_0x4da8f0,_0xce159e){const _0x104613=_0x1a91c3;switch(_0x4da8f0){case _0x575e6c[_0x104613(0x265)]['DISCONNECTED']:return _0x104613(0x183);case _0x575e6c[_0x104613(0x265)][_0x104613(0x19f)]:return _0x104613(0x245);case _0x575e6c[_0x104613(0x265)][_0x104613(0x146)]:return _0x104613(0x16b);case _0x575e6c[_0x104613(0x265)][_0x104613(0x270)]:switch(_0xce159e){case _0x575e6c['MCPConnectionError'][_0x104613(0x14d)]:return'mcpStatus.unauthorized';case _0x575e6c['MCPConnectionError']['SESSION_ID_OCCUPIED']:return _0x104613(0x25f);case _0x575e6c[_0x104613(0x18c)][_0x104613(0x27e)]:return'mcpStatus.networkError';case _0x575e6c[_0x104613(0x18c)][_0x104613(0x25d)]:return'mcpStatus.maxRetriesExceeded';default:return _0x104613(0x289);}case _0x575e6c[_0x104613(0x265)][_0x104613(0x1a9)]:return _0x104613(0x295);default:return _0x104613(0x28a);}}function _0x3a9a11(_0x272f42,_0x36437a,_0x51bfe1,_0x13408f=!0x0){const _0x322080=_0x1a91c3,_0xcc76c2=_0x2a67e8(_0x272f42,_0x36437a),_0x508ea6=_0x51bfe1['t'](_0xcc76c2);return _0x13408f?_0x272f42===_0x575e6c[_0x322080(0x265)][_0x322080(0x1c5)]&&_0x36437a===_0x575e6c[_0x322080(0x18c)][_0x322080(0x14d)]?_0x508ea6+_0x322080(0x196)+_0x51bfe1['t']('mcpStatus.clickToConfigure'):_0x272f42===_0x575e6c[_0x322080(0x265)][_0x322080(0x146)]?''+_0x508ea6:_0x272f42===_0x575e6c['MCPConnectionStatus'][_0x322080(0x1c5)]||_0x272f42===_0x575e6c[_0x322080(0x265)][_0x322080(0x270)]?_0x508ea6+_0x322080(0x196)+_0x51bfe1['t'](_0x322080(0x124)):_0x508ea6:_0x508ea6;}function _0x287ca1(_0x555e67){const _0xa0ddd0=_0x1a91c3;switch(_0x555e67){case _0x575e6c['MCPConnectionStatus'][_0xa0ddd0(0x146)]:return _0xa0ddd0(0x21d);case _0x575e6c[_0xa0ddd0(0x265)]['CONNECTING']:case _0x575e6c['MCPConnectionStatus']['RETRYING']:return _0xa0ddd0(0x249);case _0x575e6c['MCPConnectionStatus'][_0xa0ddd0(0x270)]:case _0x575e6c[_0xa0ddd0(0x265)]['DISCONNECTED']:return _0xa0ddd0(0x151);default:return _0xa0ddd0(0x1fa);}}function _0x350634(_0x384525){const _0x16bd39=_0x1a91c3,{status$:_0x14cd27,error$:_0x80adee,onConfigure:_0x3aa228,showClickable:_0x52b8cf=!0x0}=_0x384525,_0x447211=_0x18c4b7[_0x16bd39(0x297)](_0x14cd27,_0x575e6c[_0x16bd39(0x265)][_0x16bd39(0x1c5)]),_0x534e73=_0x18c4b7[_0x16bd39(0x297)](_0x80adee,_0x575e6c[_0x16bd39(0x18c)][_0x16bd39(0x27c)]),_0x34d704=_0x18c4b7[_0x16bd39(0x134)](_0x2b20d3[_0x16bd39(0x1c4)]),_0x571618=_0x447211===_0x575e6c['MCPConnectionStatus'][_0x16bd39(0x146)];_0x447211===_0x575e6c['MCPConnectionStatus'][_0x16bd39(0x19f)]||_0x575e6c[_0x16bd39(0x265)]['RETRYING'];const _0x452b76=_0x34d704['t'](_0x2a67e8(_0x447211,_0x534e73)),_0x287ee6=_0x3a9a11(_0x447211,_0x534e73,_0x34d704,_0x52b8cf),_0x25f359=_0x287ca1(_0x447211),_0x351b35=_0x571618?_0x262b48[_0x16bd39(0x1f3)](_0x196304,{}):_0x262b48[_0x16bd39(0x1f3)](_0x6b3ea5,{}),_0x15080e=_0x4400e4[_0x16bd39(0x18a)](()=>{_0x52b8cf&&_0x3aa228&&_0x3aa228();},[_0x52b8cf,_0x3aa228]);function _0x51247f(){const _0x2f5ae3=_0x16bd39;return _0x262b48[_0x2f5ae3(0x25a)](_0x2f5ae3(0x144),{'className':_0x47fe66[_0x2f5ae3(0x12e)](_0x2f5ae3(0x130),_0x52b8cf&&_0x3aa228&&_0x2f5ae3(0x273)),'role':'button','onClick':_0x52b8cf&&_0x3aa228?_0x15080e:void 0x0,'children':[_0x262b48[_0x2f5ae3(0x1f3)]('div',{'className':_0x47fe66['clsx'](_0x2f5ae3(0x277),_0x25f359),'children':_0x351b35}),_0x262b48[_0x2f5ae3(0x1f3)](_0x2f5ae3(0x144),{'className':_0x2f5ae3(0x211),'children':_0x452b76})]});}return _0x262b48[_0x16bd39(0x1f3)](_0x47fe66[_0x16bd39(0x1a8)],{'title':_0x287ee6,'placement':_0x16bd39(0x2a3),'children':_0x51247f()});}var _0x6e1de7=Object[_0x1a91c3(0x24a)],_0x16137d=(_0x82c197,_0x34badc,_0x2c81df,_0x1f9571)=>{const _0xbdae2a=_0x1a91c3;for(var _0x4e317f=_0x1f9571>0x1?void 0x0:_0x1f9571?_0x6e1de7(_0x34badc,_0x2c81df):_0x34badc,_0x201e6e=_0x82c197[_0xbdae2a(0x1ae)]-0x1,_0x2b998a;_0x201e6e>=0x0;_0x201e6e--)(_0x2b998a=_0x82c197[_0x201e6e])&&(_0x4e317f=_0x2b998a(_0x4e317f)||_0x4e317f);return _0x4e317f;},_0x30654c=(_0x1fd77d,_0x1da053)=>(_0x2c369b,_0x1ee217)=>_0x1da053(_0x2c369b,_0x1ee217,_0x1fd77d);_0x4c9298['MCPConnectionUIController']=class extends _0x2b20d3['Disposable']{constructor(_0x27493b,_0x322b09,_0x5408ed,_0xee987e){const _0x56ec2e=_0x1a91c3;super(),this[_0x56ec2e(0x247)]=_0x27493b,this['_connectionController']=_0x322b09,this[_0x56ec2e(0x2ae)]=_0x5408ed,this[_0x56ec2e(0x216)]=_0xee987e,this[_0x56ec2e(0x140)](),this[_0x56ec2e(0x1b1)]();}[_0x1a91c3(0x140)](){const _0x31f3cc=_0x1a91c3,_0x5cf73c=this[_0x31f3cc(0x216)][_0x31f3cc(0x261)](_0x249622);_0x5cf73c!=null&&_0x5cf73c[_0x31f3cc(0x1b4)]&&(this['_connectionController']['enableAutoConnect']=!0x1);}[_0x1a91c3(0x1b1)](){const _0x1f27a2=_0x1a91c3,_0x587bf9=this[_0x1f27a2(0x216)][_0x1f27a2(0x261)](_0x249622);(_0x587bf9==null?void 0x0:_0x587bf9[_0x1f27a2(0x168)])!==!0x1&&this[_0x1f27a2(0x1ef)](this['_uiPartsService'][_0x1f27a2(0x20d)](_0x18c4b7[_0x1f27a2(0x292)][_0x1f27a2(0x1f9)],()=>{const _0x10174=_0x1f27a2;var _0x22ebcd;return _0x18c4b7[_0x10174(0x172)](_0x117ca2({'status$':this['_connectionController']['connectionStatus$'],'error$':this['_connectionController'][_0x10174(0x1f7)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x22ebcd=_0x587bf9==null?void 0x0:_0x587bf9[_0x10174(0x1b4)])!=null?_0x22ebcd:!0x1}),this[_0x10174(0x247)]);}));}[_0x1a91c3(0x29d)](){const _0x4f550d=_0x1a91c3;this[_0x4f550d(0x247)][_0x4f550d(0x24e)](_0x4c9298[_0x4f550d(0x2a1)])[_0x4f550d(0x17a)]();}},_0x4c9298[_0x1a91c3(0x120)]=_0x16137d([_0x30654c(0x0,_0x2b20d3[_0x1a91c3(0x2b2)](_0x2b20d3[_0x1a91c3(0x283)])),_0x30654c(0x1,_0x2b20d3[_0x1a91c3(0x2b2)](_0x575e6c[_0x1a91c3(0x24c)])),_0x30654c(0x2,_0x18c4b7['IUIPartsService']),_0x30654c(0x3,_0x2b20d3[_0x1a91c3(0x192)])],_0x4c9298[_0x1a91c3(0x120)]);function _0x117ca2(_0x34eebc){const {status$:_0x3d5451,error$:_0xd3eb1b,onConfigure:_0x1de548,showClickable:_0x411871}=_0x34eebc;return function(){const _0x2b7457=_0x2c3e;return _0x262b48[_0x2b7457(0x1f3)](_0x350634,{'status$':_0x3d5451,'error$':_0xd3eb1b,'onConfigure':_0x1de548,'showClickable':_0x411871});};}function _0x780f40(_0x3828fa){const _0x4316bf=_0x1a91c3;return{'id':_0x407eb0['id'],'type':_0x18c4b7[_0x4316bf(0x23b)]['BUTTON'],'icon':_0x4316bf(0x271),'title':_0x4316bf(0x15d),'tooltip':'mcpConfig.title'};}const _0x4d809e={[_0x18c4b7['RibbonStartGroup'][_0x1a91c3(0x1e1)]]:{[_0x407eb0['id']]:{'order':0xa,'menuItemFactory':_0x780f40}}};var _0x3c8054=Object[_0x1a91c3(0x24a)],_0x2a3a89=(_0x9f6b94,_0x456cb3,_0x458b8f,_0x4901ed)=>{const _0x564d63=_0x1a91c3;for(var _0x5c1050=_0x4901ed>0x1?void 0x0:_0x4901ed?_0x3c8054(_0x456cb3,_0x458b8f):_0x456cb3,_0x3d8733=_0x9f6b94[_0x564d63(0x1ae)]-0x1,_0xeecf6e;_0x3d8733>=0x0;_0x3d8733--)(_0xeecf6e=_0x9f6b94[_0x3d8733])&&(_0x5c1050=_0xeecf6e(_0x5c1050)||_0x5c1050);return _0x5c1050;},_0x2e3a3a=(_0x3f682e,_0x267300)=>(_0x57e875,_0x454a3f)=>_0x267300(_0x57e875,_0x454a3f,_0x3f682e);_0x4c9298['MCPUIMenuController']=class extends _0x2b20d3[_0x1a91c3(0x13a)]{constructor(_0x481f6a,_0x10abfc){const _0x5deef0=_0x1a91c3;super(),this[_0x5deef0(0x20f)]=_0x481f6a,this[_0x5deef0(0x153)]=_0x10abfc,this[_0x5deef0(0x1b8)](),this['_initializeMenus']();}[_0x1a91c3(0x1b8)](){const _0x5be486=_0x1a91c3;[_0x407eb0][_0x5be486(0x191)](_0x21d8f5=>{const _0x5618a4=_0x5be486;this['disposeWithMe'](this[_0x5618a4(0x20f)]['registerCommand'](_0x21d8f5));});}[_0x1a91c3(0x194)](){const _0x505a33=_0x1a91c3;this[_0x505a33(0x153)]['mergeMenu'](_0x4d809e);}},_0x4c9298[_0x1a91c3(0x1cf)]=_0x2a3a89([_0x2e3a3a(0x0,_0x2b20d3[_0x1a91c3(0x1a7)]),_0x2e3a3a(0x1,_0x18c4b7[_0x1a91c3(0x232)])],_0x4c9298[_0x1a91c3(0x1cf)]);const _0x25ee66={'mcpStatus':{'disconnected':_0x1a91c3(0x15f),'connecting':_0x1a91c3(0x278),'connected':_0x1a91c3(0x272),'failed':_0x1a91c3(0x2b5),'retrying':_0x1a91c3(0x19c),'unknown':_0x1a91c3(0x1e5),'unauthorized':_0x1a91c3(0x233),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x1a91c3(0x248),'maxRetriesExceeded':_0x1a91c3(0x1bb),'clickToConnect':_0x1a91c3(0x132),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x1a91c3(0x1bf),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x1a91c3(0x167),'apiKeyPlaceholder':_0x1a91c3(0x1f1),'apiKeyHint':_0x1a91c3(0x184),'enableAuth':_0x1a91c3(0x12b),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x1a91c3(0x23c),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x1a91c3(0x20a),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x1a91c3(0x1f2),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x1a91c3(0x290),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x1a91c3(0x21f),'configParameters':_0x1a91c3(0x13d),'maxRetries':_0x1a91c3(0x228),'save':_0x1a91c3(0x2b3),'saving':'Saving...','note1':_0x1a91c3(0x127),'note2':_0x1a91c3(0x266),'configSaved':_0x1a91c3(0x171),'configError':_0x1a91c3(0x28f),'apiApplyInfo':{'title':_0x1a91c3(0x13c),'description':_0x1a91c3(0x16c),'univerAiLabel':_0x1a91c3(0x1cd),'getStarted':_0x1a91c3(0x224)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x1a91c3(0x2a7),'invalidConfig':_0x1a91c3(0x2aa),'invalidApiKey':_0x1a91c3(0x202)},'connectionStatus':{'disconnected':_0x1a91c3(0x1bd),'connecting':_0x1a91c3(0x199),'connected':_0x1a91c3(0x22f),'failed':'Connection\x20Failed','retrying':_0x1a91c3(0x149)},'connectionError':{'unauthorized':_0x1a91c3(0x204),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},_0x1a0622={'mcpStatus':{'disconnected':_0x1a91c3(0x157),'connecting':_0x1a91c3(0x1b0),'connected':'MCP\x20已连接','failed':'MCP\x20连接失败','retrying':_0x1a91c3(0x22d),'unknown':_0x1a91c3(0x210),'unauthorized':_0x1a91c3(0x21b),'sessionOccupied':_0x1a91c3(0x24b),'networkError':_0x1a91c3(0x15e),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x1a91c3(0x136),'clickToConfigure':_0x1a91c3(0x145)},'mcpConfig':{'title':'MCP\x20配置','description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x1a91c3(0x2a5),'apiKeyPlaceholder':_0x1a91c3(0x275),'apiKeyHint':_0x1a91c3(0x16d),'enableAuth':_0x1a91c3(0x264),'enableAuthHint':_0x1a91c3(0x161),'connectionInfo':_0x1a91c3(0x12f),'mcpClientConfig':_0x1a91c3(0x12f),'configInstructions':_0x1a91c3(0x279),'configStepTitle':'配置步骤:','configStep1':_0x1a91c3(0x206),'configStep2':_0x1a91c3(0x1d6),'configStep3':_0x1a91c3(0x18e),'sessionId':_0x1a91c3(0x1db),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x1a91c3(0x251),'configParameters':_0x1a91c3(0x23f),'maxRetries':_0x1a91c3(0x22c),'save':_0x1a91c3(0x21a),'saving':_0x1a91c3(0x246),'note1':_0x1a91c3(0x25e),'note2':_0x1a91c3(0x22e),'configSaved':_0x1a91c3(0x2b7),'configError':_0x1a91c3(0x1ca),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x1a91c3(0x18b),'univerAiLabel':_0x1a91c3(0x242),'getStarted':_0x1a91c3(0x163)},'validation':{'apiKeyRequired':_0x1a91c3(0x177),'apiKeyTooShort':_0x1a91c3(0x203),'invalidConfig':_0x1a91c3(0x259),'invalidApiKey':_0x1a91c3(0x218)},'connectionStatus':{'disconnected':_0x1a91c3(0x2b1),'connecting':'连接中...','connected':_0x1a91c3(0x173),'failed':_0x1a91c3(0x16a),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x1a91c3(0x1ea),'sessionOccupied':_0x1a91c3(0x294),'networkError':_0x1a91c3(0x126),'maxRetriesExceeded':_0x1a91c3(0x1ba)}}};var _0x1301e3=Object[_0x1a91c3(0x152)],_0xd6b100=Object[_0x1a91c3(0x24a)],_0x4bc02f=(_0x4596f4,_0x52afed,_0x3d75a0)=>_0x52afed in _0x4596f4?_0x1301e3(_0x4596f4,_0x52afed,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3d75a0}):_0x4596f4[_0x52afed]=_0x3d75a0,_0x5d0c16=(_0x14f903,_0x3bf6c9,_0x320775,_0x73cb57)=>{const _0xf9a9a5=_0x1a91c3;for(var _0xaa561a=_0x73cb57>0x1?void 0x0:_0x73cb57?_0xd6b100(_0x3bf6c9,_0x320775):_0x3bf6c9,_0x31c9c1=_0x14f903[_0xf9a9a5(0x1ae)]-0x1,_0x1625bf;_0x31c9c1>=0x0;_0x31c9c1--)(_0x1625bf=_0x14f903[_0x31c9c1])&&(_0xaa561a=_0x1625bf(_0xaa561a)||_0xaa561a);return _0xaa561a;},_0xbfb791=(_0x3aef3c,_0xa995a)=>(_0x4d0d74,_0x7f723e)=>_0xa995a(_0x4d0d74,_0x7f723e,_0x3aef3c),_0x4bbdf9=(_0x37864a,_0x40c33d,_0x3dc402)=>_0x4bc02f(_0x37864a,_0x40c33d+'',_0x3dc402);_0x4c9298[_0x1a91c3(0x236)]=class extends _0x2b20d3[_0x1a91c3(0x123)]{constructor(_0x1a4a51=_0x5d86d9,_0x117bb0,_0x133b78,_0x5d82b5,_0x2fdf9e,_0x3f94b2){const _0x47b9e4=_0x1a91c3;super(),this[_0x47b9e4(0x243)]=_0x1a4a51,this[_0x47b9e4(0x247)]=_0x117bb0,this[_0x47b9e4(0x216)]=_0x133b78,this['_uiPartsService']=_0x5d82b5,this[_0x47b9e4(0x2b4)]=_0x2fdf9e,this[_0x47b9e4(0x241)]=_0x3f94b2;const {..._0x2bbbca}=_0x2b20d3[_0x47b9e4(0x160)]({},_0x5d86d9,this[_0x47b9e4(0x243)]);this[_0x47b9e4(0x216)][_0x47b9e4(0x253)](_0x249622,_0x2bbbca);}async[_0x1a91c3(0x143)](){const _0x2aac95=_0x1a91c3,_0x3e17f5=[[_0x4c9298[_0x2aac95(0x120)]],[_0x4c9298['MCPConfigUIController']],[_0x4c9298[_0x2aac95(0x1cf)]]];this[_0x2aac95(0x247)]['has'](_0x121883['ISocketService'])||_0x3e17f5[_0x2aac95(0x129)]([_0x121883[_0x2aac95(0x1d7)],{'useClass':_0x121883[_0x2aac95(0x1a6)]}]),_0x3e17f5[_0x2aac95(0x191)](_0x108581=>this['_injector'][_0x2aac95(0x234)](_0x108581)),this['_injector'][_0x2aac95(0x24e)](_0x4c9298[_0x2aac95(0x120)]),this[_0x2aac95(0x247)][_0x2aac95(0x24e)](_0x4c9298[_0x2aac95(0x2a1)]),this[_0x2aac95(0x247)]['get'](_0x4c9298['MCPUIMenuController']);}},_0x4bbdf9(_0x4c9298['UniverMCPUIPlugin'],'pluginName','MCP_UI_PLUGIN'),_0x4c9298[_0x1a91c3(0x236)]=_0x5d0c16([_0x2b20d3[_0x1a91c3(0x180)](_0x575e6c[_0x1a91c3(0x1cc)]),_0xbfb791(0x1,_0x2b20d3[_0x1a91c3(0x2b2)](_0x2b20d3[_0x1a91c3(0x283)])),_0xbfb791(0x2,_0x2b20d3[_0x1a91c3(0x192)]),_0xbfb791(0x3,_0x18c4b7[_0x1a91c3(0x141)]),_0xbfb791(0x4,_0x2b20d3['ILocalStorageService']),_0xbfb791(0x5,_0x2b20d3[_0x1a91c3(0x2b2)](_0x2b20d3[_0x1a91c3(0x1c4)]))],_0x4c9298[_0x1a91c3(0x236)]),_0x4c9298['MCPConfigPanel']=_0x31ca05,_0x4c9298[_0x1a91c3(0x21e)]=_0x350634,_0x4c9298[_0x1a91c3(0x260)]=_0x407eb0,_0x4c9298[_0x1a91c3(0x1a2)]=_0x25ee66,_0x4c9298['zhCN']=_0x1a0622,Object[_0x1a91c3(0x152)](_0x4c9298,Symbol[_0x1a91c3(0x148)],{'value':_0x1a91c3(0x19a)});}));function _0x3749(){const _0x252e7=['univer-text-yellow-500','getOwnPropertyDescriptor','MCP:\x20会话\x20ID\x20已被占用','MCPConnectionController','random','get','_registerComponent','mcpConfig.apiApplyInfo.title','带有\x20Bearer\x20前缀的\x20API\x20密钥。','ILogService','setConfig','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','mcpConfig.saving','_loadStoredApiKey','https://mcp.univer.ai/mcp/?univer_session_id=','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','配置无效','jsxs','translate(.97)','forwardRef','MAX_RETRIES_EXCEEDED','配置更改将立即生效','mcpStatus.sessionOccupied','OpenMCPConfigPanelCommand','getConfig','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','pre','启用身份验证','MCPConnectionStatus','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','white','mcpConfig.authorizationDescription','@univerjs/core','sessionId$','defIds','exports','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','1em','_loading$','FAILED','MenuIcon','MCP\x20Connected','\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','assign','请输入您的\x20API\x20密钥','MessageType','univer-mr-2\x20univer-flex\x20univer-text-xl','MCP\x20Connecting...','将以下配置添加到您的\x20MCP\x20客户端设置中:','1036452OfIKnr','mcpConfig.save','NONE','substring','NETWORK_ERROR','object','mcpConfig.connectionInfo','_messageService','univer-text-xs\x20univer-text-gray-600','Injector','errorMessage','close','univer.plus','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcpStatus.failed','mcpStatus.unknown','http','mcpConfig.apiApplyInfo.univerAiLabel','14xgWGPn','_logService','Failed\x20to\x20save\x20configuration','Session\x20ID','mcpConfig.description','BuiltInUIPart','mcpConfig.validation.apiKeyTooShort','会话\x20ID\x20已被占用,请稍后再试','mcpStatus.retrying','230wfDhrm','useObservable','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','mcpConfig.sessionIdDescription','trim','UniverCore','createElement','_handleConfigure','2615dmnIFx','round','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','MCPConfigUIController','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','bottom','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','API\x20密钥','mcpConfig.connectionError.maxRetriesExceeded','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','_dialogService','connectionStatus$','Invalid\x20configuration','xlink:href','univer-text-white','univer-text-sm\x20univer-font-medium','_uiPartsService','ComponentManager','univer-flex\x20univer-flex-wrap\x20univer-gap-2','未连接','Inject','Save\x20Configuration','_localStorageService','MCP\x20Connection\x20Failed','entries','配置保存成功','mcp-config-dialog','MCPConnectionUIController','react/jsx-runtime','mcpConfig.apiApplyInfo.getStarted','Plugin','mcpStatus.clickToConnect','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','网络连接错误,请检查您的网络连接','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','stringify','push','<API_KEY>','Enable\x20Authentication','mcpConfig.validation.apiKeyRequired','UniverProMcp','clsx','MCP\x20客户端配置','univer-flex\x20univer-items-center','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','Click\x20to\x20connect\x20MCP','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','useDependency','mcpConfig.apiKey','点击连接\x20MCP','univer-min-w-0\x20univer-flex-1','rxjs','univer.ai','Disposable','useRef','What\x20is\x20API\x20Key?','Configuration\x20Parameters:','mcpConfig.note1','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','_initAutoConnect','IUIPartsService','587814WMHKtX','onStarting','div','点击配置\x20MCP','CONNECTED','_initConfigSync','toStringTag','Retrying...','noopener\x20noreferrer','path','idSuffix','UNAUTHORIZED','Configuration\x20Notes:','url(#$1','UniverDesign','univer-text-red-500','defineProperty','_menuManagerService','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.connectionStatus.disconnected','149179RsyBNA','MCP\x20已断开','_mcpCoreConfig$','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','univer-bg-green-500','UniverIcon','map','mcpConfig.title','MCP:\x20网络错误','MCP\x20Disconnected','merge','启用身份验证以获得安全连接','UniverNetwork','几秒钟内获取您的\x20API\x20密钥','_handleConfigSave','_blank','_apiKey$','API\x20Key','showStatus','mcpConfig.apiApplyInfo.description','连接失败','mcpStatus.connected','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','您的\x20API\x20密钥将在此浏览器中本地存储','mcpConfig.configSaved','subscribe','univer-flex\x20univer-items-center\x20univer-gap-3','Configuration\x20saved\x20successfully','connectInjector','已连接','on-line-icon_clip0_910_349','show','Button','API\x20密钥不能为空','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','395776VYLBWe','showConfigPanel','ILocalStorageService','string','colorChannel1','mcpConfig.note2','mcpConfig.connectionError.sessionOccupied','DependentOn','@univerjs/ui','removeItem','mcpStatus.disconnected','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','univer-flex\x20univer-gap-3','univer-flex\x20univer-items-center\x20univer-gap-2','HelpIcon','defs','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','useCallback','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','MCPConnectionError','393453QqKYeT','重启您的\x20MCP\x20客户端以使配置生效','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','check-mark-icon','forEach','IConfigService','_config$','_initializeMenus','error','\x20-\x20','univer-bg-gray-500','__setCustomHeaders','Connecting...','Module','_componentManager','MCP\x20Retrying...','mcpConfig.connectionStatus.connected','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','CONNECTING','univer-size-4','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','enUS','univer-flex\x20univer-items-start\x20univer-gap-2','M0\x200H16V16H0z','validateApiKey','WebSocketService','ICommandService','Tooltip','RETRYING','includes','none','subscribeConfigValue$','mcpConfig.configError','length','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','MCP\x20连接中...','_initStatusComponent','univer-space-y-3','@univerjs-pro/mcp','showDeveloperTools','children','MCP_PLUGIN_CONFIG_KEY','span','_initializeCommands','Bearer\x20','超出最大重试次数,请稍后再试','MCP:\x20Max\x20Retries\x20Exceeded','mcpConfig.connectionStatus.failed','Disconnected','off-line-icon','MCP\x20Configuration','currentColor','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','univer-text-gray-400','univer-text-blue-600','LocaleService','DISCONNECTED','univer-text-xs\x20univer-text-gray-500','use','univerjs-icon\x20univerjs-icon-','apiKey','配置保存失败','mcpServerUrl','UniverMCPPlugin','Univer\x20AI\x20Console','displayName','MCPUIMenuController','attrs','evenodd','isValid','univer-bg-blue-500','IDialogService','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','将配置添加到您的\x20MCP\x20客户端设置文件中','ISocketService','getItem','mcpConfig.configStepTitle','OffLineIcon','会话ID','symbol','amd','Error','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','getCurrentConfig','OTHERS','next','mcpConfig.configStep3','https://console.univer.ai','MCP\x20Unknown\x20Status','UniverUi','mcpConfig.validation.invalidApiKey','_validateConfig','svg','权限验证失败,请检查您的\x20API\x20密钥','useState','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','off-line-icon_clip0_910_343','button','disposeWithMe','univer-bg-red-500','Enter\x20your\x20API\x20key','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','jsx','tag','React','SESSION_ID_OCCUPIED','connectionError$','on-line-icon','HEADER_MENU','univer-text-gray-500','104cyXyte','univer-space-y-5','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','register','801440tTyiJF','fill','mask','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20密钥长度至少需要\x2010\x20位','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','_createConfigPanelComponent','复制以下\x20JSON\x20配置','setItem','UniverProMcpUi','BehaviorSubject','Configuration\x20Steps:','Input','clipPath','registerComponent','url(#on-line-icon_clip0_910_349)','_commandService','MCP\x20状态未知','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','<SESSION_ID>','_mcpConnectionController','mcpConfig.apiKeyPlaceholder','COMMAND','_configService','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','API\x20密钥无效,请检查密钥是否正确','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','保存配置','MCP:\x20未授权','http://www.w3.org/2000/svg','univer-text-green-500','MCPStatusDisplay','API\x20key\x20with\x20Bearer\x20prefix.','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','CloseIcon','univer-shrink-0\x20univer-text-blue-500','Get\x20your\x20API\x20key\x20in\x20seconds','value','Success','replace','Max\x20Retries','univer-font-medium','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','Authorization:','最大重试次数','MCP\x20重连中...','您的\x20API\x20密钥安全存储在本地存储中','Connected','0\x200\x2016\x2016','CommandType','IMenuManagerService','MCP:\x20Unauthorized','add','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','UniverMCPUIPlugin','univer-space-y-2','mcpConfig.connectionStatus.retrying','open','univer-shrink-0\x20univer-text-red-500','MenuItemType','MCP\x20Client\x20Configuration','MCPConfigPanel','current','配置参数:','react','_localeService','Univer\x20AI\x20控制台','_config','univer-flex\x20univer-items-start\x20univer-gap-3','mcpStatus.connecting','保存中...','_injector','MCP:\x20Network\x20Error'];_0x3749=function(){return _0x252e7;};return _0x3749();}
|
|
1
|
+
function _0xde69(_0x2cdafc,_0xae29d1){_0x2cdafc=_0x2cdafc-0x129;const _0x4e81d5=_0x4e81();let _0xde691a=_0x4e81d5[_0x2cdafc];return _0xde691a;}(function(_0x58e586,_0x54e6d4){const _0xfcd1ea=_0xde69,_0x5bcdf4=_0x58e586();while(!![]){try{const _0x160a49=-parseInt(_0xfcd1ea(0x258))/0x1+-parseInt(_0xfcd1ea(0x18a))/0x2*(-parseInt(_0xfcd1ea(0x12b))/0x3)+-parseInt(_0xfcd1ea(0x22d))/0x4+parseInt(_0xfcd1ea(0x176))/0x5+-parseInt(_0xfcd1ea(0x135))/0x6+-parseInt(_0xfcd1ea(0x217))/0x7*(-parseInt(_0xfcd1ea(0x152))/0x8)+parseInt(_0xfcd1ea(0x13e))/0x9;if(_0x160a49===_0x54e6d4)break;else _0x5bcdf4['push'](_0x5bcdf4['shift']());}catch(_0x676a){_0x5bcdf4['push'](_0x5bcdf4['shift']());}}}(_0x4e81,0xaf811),function(_0x52ea13,_0x39572e){const _0x216251=_0xde69;typeof exports=='object'&&typeof module<'u'?_0x39572e(exports,require('@univerjs/core'),require('react/jsx-runtime'),require('@univerjs-pro/mcp'),require('@univerjs/design'),require('@univerjs/ui'),require('rxjs'),require('react'),require('@univerjs/network')):typeof define=='function'&&define['amd']?define([_0x216251(0x134),'@univerjs/core',_0x216251(0x173),_0x216251(0x1b5),_0x216251(0x240),_0x216251(0x163),_0x216251(0x154),'react',_0x216251(0x14c)],_0x39572e):(_0x52ea13=typeof globalThis<'u'?globalThis:_0x52ea13||self,_0x39572e(_0x52ea13['UniverProMcpUi']={},_0x52ea13['UniverCore'],_0x52ea13[_0x216251(0x1d1)],_0x52ea13[_0x216251(0x2ae)],_0x52ea13[_0x216251(0x29c)],_0x52ea13[_0x216251(0x1e2)],_0x52ea13[_0x216251(0x154)],_0x52ea13[_0x216251(0x1d1)],_0x52ea13[_0x216251(0x265)]));}(this,function(_0x13fb0e,_0x377bb8,_0x45f3a9,_0x42e91f,_0x35afee,_0x5d7431,_0x1f9086,_0x28a6e5,_0x5d2366){'use strict';const _0x53a509=_0xde69;var _0x1129c3=Object[_0x53a509(0x150)],_0x34a112=(_0x29ff48,_0x2811d9,_0x3122e6)=>_0x2811d9 in _0x29ff48?_0x1129c3(_0x29ff48,_0x2811d9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3122e6}):_0x29ff48[_0x2811d9]=_0x3122e6,_0x58d213=(_0x227dff,_0xd82000,_0x489a8e)=>_0x34a112(_0x227dff,typeof _0xd82000!='symbol'?_0xd82000+'':_0xd82000,_0x489a8e);function _0x3a3bde({ref:_0x57e834,..._0x3cac4d}){const _0x11e0c1=_0x53a509,{icon:_0x7d3c53,id:_0x394572,className:_0x15c810,extend:_0x578445,..._0x2a49fb}=_0x3cac4d,_0x277496=(_0x11e0c1(0x205)+_0x394572+'\x20'+(_0x15c810||''))[_0x11e0c1(0x1d6)](),_0x1709d0=_0x28a6e5[_0x11e0c1(0x12d)]('_'+_0x566532());return _0x28a3c6(_0x7d3c53,''+_0x394572,{'defIds':_0x7d3c53[_0x11e0c1(0x1f4)],'idSuffix':_0x1709d0[_0x11e0c1(0x1ba)]},{'ref':_0x57e834,'className':_0x277496,..._0x2a49fb},_0x578445);}function _0x28a3c6(_0x47f31b,_0x4f2ad7,_0x7e5ec0,_0x3e54ac,_0xd9c10c){const _0x3cc99a=_0x53a509;return _0x28a6e5[_0x3cc99a(0x14e)](_0x47f31b[_0x3cc99a(0x238)],{'key':_0x4f2ad7,..._0x7cdf64(_0x47f31b,_0x7e5ec0,_0xd9c10c),..._0x3e54ac},(_0x2ed0f8(_0x47f31b,_0x7e5ec0)[_0x3cc99a(0x279)]||[])['map']((_0x50343d,_0x35b479)=>_0x28a3c6(_0x50343d,_0x4f2ad7+'-'+_0x47f31b['tag']+'-'+_0x35b479,_0x7e5ec0,void 0x0,_0xd9c10c)));}function _0x7cdf64(_0x4ccaf4,_0x14450a,_0x2a36bb){const _0x53c2f0=_0x53a509,_0xe1eaba={..._0x4ccaf4['attrs']};_0x2a36bb!=null&&_0x2a36bb[_0x53c2f0(0x29b)]&&_0xe1eaba['fill']===_0x53c2f0(0x29b)&&(_0xe1eaba[_0x53c2f0(0x19f)]=_0x2a36bb[_0x53c2f0(0x29b)]),_0x4ccaf4[_0x53c2f0(0x238)]==='mask'&&_0xe1eaba['id']&&(_0xe1eaba['id']=_0xe1eaba['id']+_0x14450a[_0x53c2f0(0x12e)]),Object[_0x53c2f0(0x2ab)](_0xe1eaba)[_0x53c2f0(0x231)](([_0x4e2cf9,_0x16a1ad])=>{const _0x6cf0c1=_0x53c2f0;_0x4e2cf9===_0x6cf0c1(0x15a)&&typeof _0x16a1ad==_0x6cf0c1(0x1c7)&&(_0xe1eaba[_0x4e2cf9]=_0x16a1ad['replace'](/url\(#(.*)\)/,_0x6cf0c1(0x1be)+_0x14450a[_0x6cf0c1(0x12e)]+')'));});const {defIds:_0x39de71}=_0x14450a;return!_0x39de71||_0x39de71[_0x53c2f0(0x1c6)]===0x0||(_0x4ccaf4['tag']===_0x53c2f0(0x1d7)&&_0xe1eaba[_0x53c2f0(0x286)]&&(_0xe1eaba['xlink:href']=_0xe1eaba[_0x53c2f0(0x286)]+_0x14450a[_0x53c2f0(0x12e)]),Object['entries'](_0xe1eaba)['forEach'](([_0x4c155d,_0x24046e])=>{const _0xbaf7b4=_0x53c2f0;typeof _0x24046e==_0xbaf7b4(0x1c7)&&(_0xe1eaba[_0x4c155d]=_0x24046e[_0xbaf7b4(0x132)](/url\(#(.*)\)/,_0xbaf7b4(0x1be)+_0x14450a[_0xbaf7b4(0x12e)]+')'));})),_0xe1eaba;}function _0x2ed0f8(_0x1121a2,_0x3565f4){const _0xe9bcf5=_0x53a509;var _0x3318df;const {defIds:_0x461b83}=_0x3565f4;return!_0x461b83||_0x461b83[_0xe9bcf5(0x1c6)]===0x0?_0x1121a2:_0x1121a2[_0xe9bcf5(0x238)]===_0xe9bcf5(0x1cc)&&((_0x3318df=_0x1121a2[_0xe9bcf5(0x279)])!=null&&_0x3318df['length'])?{..._0x1121a2,'children':_0x1121a2['children'][_0xe9bcf5(0x142)](_0x466097=>typeof _0x466097[_0xe9bcf5(0x2c0)]['id']=='string'&&_0x461b83&&_0x461b83[_0xe9bcf5(0x1d5)](_0x466097[_0xe9bcf5(0x2c0)]['id'])?{..._0x466097,'attrs':{..._0x466097['attrs'],'id':_0x466097['attrs']['id']+_0x3565f4['idSuffix']}}:_0x466097)}:_0x1121a2;}function _0x566532(){const _0xfa44f6=_0x53a509;return Math[_0xfa44f6(0x186)]()[_0xfa44f6(0x282)](0x24)['substring'](0x2,0x8);}_0x3a3bde[_0x53a509(0x1a8)]='UniverIcon';const _0x2efa5c={'tag':_0x53a509(0x159),'attrs':{'xmlns':_0x53a509(0x13d),'fill':_0x53a509(0x239),'viewBox':'0\x200\x2016\x2016','width':_0x53a509(0x136),'height':'1em'},'children':[{'tag':_0x53a509(0x172),'attrs':{'fill':'currentColor','d':_0x53a509(0x2a0),'fillRule':'evenodd','clipRule':_0x53a509(0x2b3)}}]},_0x2ff4cd=_0x28a6e5[_0x53a509(0x1c4)](function(_0x3a9162,_0x5359af){const _0x5f170a=_0x53a509;return _0x28a6e5[_0x5f170a(0x14e)](_0x3a3bde,Object[_0x5f170a(0x201)]({},_0x3a9162,{'id':_0x5f170a(0x1c0),'ref':_0x5359af,'icon':_0x2efa5c}));});_0x2ff4cd[_0x53a509(0x1a8)]='CheckMarkIcon';const _0x1a9952={'tag':_0x53a509(0x159),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x53a509(0x239),'viewBox':_0x53a509(0x164),'width':_0x53a509(0x136),'height':_0x53a509(0x136)},'children':[{'tag':_0x53a509(0x172),'attrs':{'fill':_0x53a509(0x1b2),'d':'M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z'}}]},_0x1005b7=_0x28a6e5['forwardRef'](function(_0x3d7e26,_0x48a7fe){const _0x22d3cf=_0x53a509;return _0x28a6e5[_0x22d3cf(0x14e)](_0x3a3bde,Object['assign']({},_0x3d7e26,{'id':_0x22d3cf(0x247),'ref':_0x48a7fe,'icon':_0x1a9952}));});_0x1005b7[_0x53a509(0x1a8)]=_0x53a509(0x184);const _0x4a2c1f={'tag':_0x53a509(0x159),'attrs':{'xmlns':_0x53a509(0x13d),'fill':_0x53a509(0x239),'viewBox':_0x53a509(0x164),'width':'1em','height':_0x53a509(0x136)},'children':[{'tag':_0x53a509(0x172),'attrs':{'fill':_0x53a509(0x1b2),'d':'M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z'}},{'tag':_0x53a509(0x172),'attrs':{'fill':_0x53a509(0x1b2),'d':_0x53a509(0x1d4)}},{'tag':_0x53a509(0x172),'attrs':{'fill':'currentColor','d':_0x53a509(0x1ed),'fillRule':'evenodd','clipRule':_0x53a509(0x2b3)}}]},_0x222ace=_0x28a6e5['forwardRef'](function(_0x56a757,_0x4a4375){const _0x3f49b1=_0x53a509;return _0x28a6e5[_0x3f49b1(0x14e)](_0x3a3bde,Object[_0x3f49b1(0x201)]({},_0x56a757,{'id':_0x3f49b1(0x225),'ref':_0x4a4375,'icon':_0x4a2c1f}));});_0x222ace[_0x53a509(0x1a8)]=_0x53a509(0x2bb);const _0x5ce91b={'tag':_0x53a509(0x159),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x53a509(0x136),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x53a509(0x197)},'children':[{'tag':_0x53a509(0x172),'attrs':{'stroke':_0x53a509(0x1b2),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x53a509(0x1b7),'strokeLinejoin':_0x53a509(0x1b7),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x53a509(0x1ad)},'children':[{'tag':_0x53a509(0x172),'attrs':{'fill':_0x53a509(0x175),'d':_0x53a509(0x267)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},_0x9cee0d=_0x28a6e5[_0x53a509(0x1c4)](function(_0x412250,_0x4442fd){return _0x28a6e5['createElement'](_0x3a3bde,Object['assign']({},_0x412250,{'id':'off-line-icon','ref':_0x4442fd,'icon':_0x5ce91b}));});_0x9cee0d['displayName']='OffLineIcon';const _0x4a8d76={'tag':_0x53a509(0x159),'attrs':{'xmlns':_0x53a509(0x13d),'fill':_0x53a509(0x239),'viewBox':_0x53a509(0x228),'width':_0x53a509(0x136),'height':_0x53a509(0x136)},'children':[{'tag':'g','attrs':{'clipPath':_0x53a509(0x23f)},'children':[{'tag':_0x53a509(0x172),'attrs':{'stroke':_0x53a509(0x1b2),'d':_0x53a509(0x16f),'strokeLinecap':_0x53a509(0x1b7),'strokeLinejoin':_0x53a509(0x1b7),'strokeWidth':1.2}}]},{'tag':_0x53a509(0x1cc),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x53a509(0x17e)},'children':[{'tag':_0x53a509(0x172),'attrs':{'fill':_0x53a509(0x175),'d':_0x53a509(0x267),'transform':_0x53a509(0x148)}}]}]}],'defIds':[_0x53a509(0x17e)]},_0x58da7d=_0x28a6e5[_0x53a509(0x1c4)](function(_0x1cb46b,_0x5a84ab){const _0x1c7f95=_0x53a509;return _0x28a6e5[_0x1c7f95(0x14e)](_0x3a3bde,Object['assign']({},_0x1cb46b,{'id':_0x1c7f95(0x13b),'ref':_0x5a84ab,'icon':_0x4a8d76}));});_0x58da7d['displayName']=_0x53a509(0x16a);function _0x2c828c(_0x5d9330){const _0x12f5a6=_0x53a509;var _0x9afc74,_0x7afa8b;const {mcpCoreConfig:_0x45c7b1,onSave:_0x5eced8,loading:_0x2dbcfc=!0x1,config:_0x5a9c28,connectionStatus$:_0x228d9c,connectionError$:_0x1e22bd,currentApiKey$:_0x102561,currentSessionId$:_0x5d66bd}=_0x5d9330,_0x31bf47=_0x5d7431[_0x12f5a6(0x21b)](_0x377bb8[_0x12f5a6(0x2ad)]),_0x570dde=_0x5d7431['useObservable'](_0x228d9c,_0x42e91f[_0x12f5a6(0x246)][_0x12f5a6(0x143)]),_0x4648a4=_0x5d7431[_0x12f5a6(0x15f)](_0x1e22bd,_0x42e91f['MCPConnectionError'][_0x12f5a6(0x1ac)]),_0x73a5b7=_0x5d7431[_0x12f5a6(0x15f)](_0x5d66bd,''),_0x1adf3b=_0x5d7431[_0x12f5a6(0x15f)](_0x102561,''),[_0x513b9a,_0x228d98]=_0x28a6e5['useState'](_0x1adf3b||''),_0x19a858=!0x0,_0x4965dd=_0x5a9c28['showDeveloperTools']&&_0x45c7b1[_0x12f5a6(0x1fc)]&&(_0x45c7b1[_0x12f5a6(0x1fc)][_0x12f5a6(0x1d5)](_0x12f5a6(0x1ff))||_0x45c7b1['mcpServerUrl']['includes'](_0x12f5a6(0x12a))),_0x3ae1f0=(_0x9afc74=_0x45c7b1[_0x12f5a6(0x1fc)])==null?void 0x0:_0x9afc74[_0x12f5a6(0x1d5)]('univer.plus'),_0x46a7fd=(_0x7afa8b=_0x45c7b1['mcpServerUrl'])==null?void 0x0:_0x7afa8b[_0x12f5a6(0x1d5)]('univer.ai'),_0x1d5c78=_0x3ae1f0?_0x12f5a6(0x21c):'https://console.univer.ai',_0xf38b08=_0x5a9c28[_0x12f5a6(0x18e)]&&(_0x3ae1f0||_0x46a7fd),[_0x5ed652,_0x222636]=_0x28a6e5['useState'](!_0x513b9a['trim']()),_0x1e2cd3=(_0x58b70d,_0x30baf4)=>{const _0x4f279e=_0x12f5a6;if(_0x30baf4===_0x42e91f[_0x4f279e(0x19e)][_0x4f279e(0x1af)])return _0x4f279e(0x1df);switch(_0x58b70d){case _0x42e91f[_0x4f279e(0x246)][_0x4f279e(0x2a6)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x42e91f[_0x4f279e(0x246)][_0x4f279e(0x208)]:case _0x42e91f[_0x4f279e(0x246)][_0x4f279e(0x1b8)]:return _0x4f279e(0x2a2);case _0x42e91f['MCPConnectionStatus']['FAILED']:return _0x4f279e(0x1df);default:return _0x4f279e(0x207);}},_0x392333=(_0x3c8b30,_0x561acb)=>{const _0x290d0a=_0x12f5a6;if(_0x561acb===_0x42e91f[_0x290d0a(0x19e)][_0x290d0a(0x1af)])return _0x290d0a(0x294);switch(_0x3c8b30){case _0x42e91f['MCPConnectionStatus'][_0x290d0a(0x2a6)]:return _0x290d0a(0x2b8);case _0x42e91f[_0x290d0a(0x246)][_0x290d0a(0x208)]:case _0x42e91f[_0x290d0a(0x246)][_0x290d0a(0x1b8)]:return _0x290d0a(0x29a);case _0x42e91f[_0x290d0a(0x246)]['FAILED']:return _0x290d0a(0x294);default:return'univer-bg-gray-500';}},_0x4e8a92=_0x137471=>{const _0x3c2b79=_0x12f5a6;switch(_0x137471){case _0x42e91f[_0x3c2b79(0x246)]['CONNECTED']:return _0x31bf47['t'](_0x3c2b79(0x263));case _0x42e91f[_0x3c2b79(0x246)][_0x3c2b79(0x208)]:return _0x31bf47['t'](_0x3c2b79(0x13c));case _0x42e91f['MCPConnectionStatus'][_0x3c2b79(0x1ce)]:return _0x31bf47['t'](_0x3c2b79(0x2b5));case _0x42e91f['MCPConnectionStatus'][_0x3c2b79(0x1b8)]:return _0x31bf47['t'](_0x3c2b79(0x1a9));default:return _0x31bf47['t'](_0x3c2b79(0x21f));}},_0xbc12e9=_0x2e2ffe=>{const _0x37ea57=_0x12f5a6;switch(_0x2e2ffe){case _0x42e91f[_0x37ea57(0x19e)][_0x37ea57(0x1af)]:return _0x31bf47['t'](_0x37ea57(0x212));case _0x42e91f[_0x37ea57(0x19e)][_0x37ea57(0x215)]:return _0x31bf47['t'](_0x37ea57(0x19a));case _0x42e91f[_0x37ea57(0x19e)][_0x37ea57(0x26a)]:return _0x31bf47['t'](_0x37ea57(0x219));case _0x42e91f['MCPConnectionError'][_0x37ea57(0x224)]:return _0x31bf47['t'](_0x37ea57(0x227));default:return'';}},_0x35ec23=_0x28a6e5['useCallback'](()=>{const _0x260eb9=_0x12f5a6,_0x2588b8={..._0x45c7b1,'apiKey':_0x513b9a[_0x260eb9(0x1d6)](),'enableAuth':_0x19a858};_0x5eced8(_0x2588b8);},[_0x45c7b1,_0x513b9a,_0x19a858,_0x5eced8]),_0x1e8db9=_0x513b9a[_0x12f5a6(0x1d6)]()['length']>0x0;return _0x45f3a9[_0x12f5a6(0x1b1)]('div',{'className':_0x12f5a6(0x1e3),'children':[_0x45f3a9['jsx'](_0x12f5a6(0x29d),{'className':_0x12f5a6(0x1f9),'children':_0x45f3a9['jsxs'](_0x12f5a6(0x29d),{'className':_0x12f5a6(0x1ae),'children':[_0x45f3a9[_0x12f5a6(0x155)](_0x12f5a6(0x29d),{'className':'univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':_0x45f3a9[_0x12f5a6(0x155)](_0x12f5a6(0x1fb),{'className':_0x12f5a6(0x149),'children':'⚙'})}),_0x45f3a9[_0x12f5a6(0x155)]('div',{'children':_0x45f3a9[_0x12f5a6(0x155)]('p',{'className':_0x12f5a6(0x297),'children':_0x31bf47['t'](_0x12f5a6(0x296))})})]})}),_0x45f3a9[_0x12f5a6(0x1b1)]('div',{'className':_0x12f5a6(0x1e5),'children':[_0x45f3a9[_0x12f5a6(0x155)]('div',{'className':_0x35afee['clsx'](_0x12f5a6(0x23e),_0x1e2cd3(_0x570dde,_0x4648a4)),'children':_0x45f3a9[_0x12f5a6(0x1b1)](_0x12f5a6(0x29d),{'className':_0x12f5a6(0x210),'children':[_0x45f3a9[_0x12f5a6(0x155)](_0x12f5a6(0x29d),{'className':_0x35afee['clsx']('univer-size-2\x20univer-rounded-full',_0x392333(_0x570dde,_0x4648a4))}),_0x45f3a9[_0x12f5a6(0x155)](_0x12f5a6(0x1fb),{'className':_0x12f5a6(0x2b6),'children':_0x4e8a92(_0x570dde)})]})}),_0x4648a4!==_0x42e91f['MCPConnectionError'][_0x12f5a6(0x1ac)]&&(_0x570dde===_0x42e91f[_0x12f5a6(0x246)][_0x12f5a6(0x1ce)]||_0x4648a4===_0x42e91f[_0x12f5a6(0x19e)][_0x12f5a6(0x1af)])&&_0x45f3a9[_0x12f5a6(0x155)]('div',{'className':_0x12f5a6(0x25a),'children':_0x45f3a9[_0x12f5a6(0x1b1)](_0x12f5a6(0x29d),{'className':_0x12f5a6(0x252),'children':[_0x45f3a9['jsx'](_0x12f5a6(0x1fb),{'className':_0x12f5a6(0x278),'children':'⚠️'}),_0x45f3a9[_0x12f5a6(0x155)]('p',{'className':_0x12f5a6(0x166),'children':_0xbc12e9(_0x4648a4)})]})})]}),_0x45f3a9[_0x12f5a6(0x155)](_0x12f5a6(0x29d),{'className':_0x12f5a6(0x2c2),'children':_0x45f3a9[_0x12f5a6(0x1b1)]('div',{'className':_0x12f5a6(0x22c),'children':[_0x45f3a9[_0x12f5a6(0x1b1)](_0x12f5a6(0x29d),{'className':_0x12f5a6(0x268),'children':[_0x45f3a9[_0x12f5a6(0x1b1)](_0x12f5a6(0x133),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x45f3a9[_0x12f5a6(0x155)]('span',{'children':'🔑'}),'\x20',_0x31bf47['t'](_0x12f5a6(0x285)),_0x45f3a9[_0x12f5a6(0x155)](_0x12f5a6(0x1fb),{'className':_0x12f5a6(0x16b),'children':'*'}),_0x4965dd&&_0x45f3a9[_0x12f5a6(0x155)]('a',{'className':_0x12f5a6(0x20c),'title':_0x31bf47['t'](_0x12f5a6(0x298)),'role':_0x12f5a6(0x262),'onClick':()=>_0x222636(!0x0),'children':_0x45f3a9[_0x12f5a6(0x155)](_0x222ace,{})})]}),_0x45f3a9[_0x12f5a6(0x155)](_0x35afee['Input'],{'type':_0x12f5a6(0x1f8),'placeholder':_0x31bf47['t'](_0x12f5a6(0x174)),'value':_0x513b9a,'disabled':_0x2dbcfc,'autoComplete':'off','onChange':_0x228d98}),_0x45f3a9['jsx']('p',{'className':_0x12f5a6(0x1f1),'children':_0x31bf47['t'](_0x12f5a6(0x260))})]}),_0x4965dd&&_0x5ed652&&_0x45f3a9['jsxs'](_0x12f5a6(0x29d),{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[_0x45f3a9[_0x12f5a6(0x155)]('a',{'className':_0x12f5a6(0x18d),'role':_0x12f5a6(0x262),'onClick':()=>_0x222636(!0x1),'children':_0x45f3a9[_0x12f5a6(0x155)](_0x1005b7,{'className':'univer-size-4'})}),_0x45f3a9[_0x12f5a6(0x1b1)](_0x12f5a6(0x29d),{'className':_0x12f5a6(0x1a0),'children':[_0x45f3a9['jsx'](_0x12f5a6(0x29d),{'className':_0x12f5a6(0x14f),'children':_0x45f3a9[_0x12f5a6(0x155)](_0x12f5a6(0x1fb),{'className':_0x12f5a6(0x28e),'children':'🚀'})}),_0x45f3a9[_0x12f5a6(0x1b1)]('div',{'className':_0x12f5a6(0x213),'children':[_0x45f3a9[_0x12f5a6(0x155)]('h4',{'className':_0x12f5a6(0x2b2),'children':_0x31bf47['t'](_0x12f5a6(0x298))}),_0x45f3a9[_0x12f5a6(0x155)]('p',{'className':_0x12f5a6(0x229),'children':_0x31bf47['t'](_0x12f5a6(0x17f))}),_0x45f3a9[_0x12f5a6(0x155)](_0x12f5a6(0x29d),{'className':_0x12f5a6(0x191),'children':_0xf38b08&&_0x45f3a9[_0x12f5a6(0x1b1)]('a',{'className':_0x12f5a6(0x1a5),'href':_0x1d5c78,'target':_0x12f5a6(0x250),'rel':'noopener\x20noreferrer','children':[_0x45f3a9[_0x12f5a6(0x155)](_0x12f5a6(0x1fb),{'children':'🤖'}),_0x31bf47['t'](_0x12f5a6(0x287)),_0x45f3a9[_0x12f5a6(0x155)](_0x12f5a6(0x1fb),{'className':_0x12f5a6(0x138),'children':'↗'})]})}),_0x45f3a9[_0x12f5a6(0x1b1)](_0x12f5a6(0x29d),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x31bf47['t'](_0x12f5a6(0x1f0))]})]})]})]}),_0x5a9c28[_0x12f5a6(0x18e)]&&_0x45f3a9['jsxs']('div',{'className':_0x12f5a6(0x27a),'children':[_0x45f3a9[_0x12f5a6(0x1b1)]('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x45f3a9['jsx'](_0x12f5a6(0x1fb),{'children':'🔗'}),'\x20',_0x31bf47['t'](_0x12f5a6(0x189))]}),_0x45f3a9[_0x12f5a6(0x1b1)]('div',{'className':'univer-space-y-4','children':[_0x45f3a9[_0x12f5a6(0x1b1)](_0x12f5a6(0x29d),{'className':_0x12f5a6(0x1b9),'children':[_0x45f3a9['jsx']('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x31bf47['t']('mcpConfig.configInstructions')}),_0x45f3a9[_0x12f5a6(0x1b1)](_0x12f5a6(0x29d),{'className':_0x12f5a6(0x268),'children':[_0x45f3a9['jsx'](_0x12f5a6(0x29d),{'className':_0x12f5a6(0x1fa),'children':_0x31bf47['t'](_0x12f5a6(0x178))}),_0x45f3a9[_0x12f5a6(0x1b1)](_0x12f5a6(0x29d),{'className':_0x12f5a6(0x198),'children':[_0x45f3a9[_0x12f5a6(0x1b1)]('div',{'className':_0x12f5a6(0x210),'children':[_0x45f3a9['jsx'](_0x12f5a6(0x1fb),{'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'}),_0x31bf47['t'](_0x12f5a6(0x182))]}),_0x45f3a9[_0x12f5a6(0x1b1)](_0x12f5a6(0x29d),{'className':_0x12f5a6(0x210),'children':[_0x45f3a9[_0x12f5a6(0x155)](_0x12f5a6(0x1fb),{'className':_0x12f5a6(0x277),'children':'2'}),_0x31bf47['t'](_0x12f5a6(0x14a))]}),_0x45f3a9[_0x12f5a6(0x1b1)](_0x12f5a6(0x29d),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x45f3a9[_0x12f5a6(0x155)]('span',{'className':_0x12f5a6(0x277),'children':'3'}),_0x31bf47['t']('mcpConfig.configStep3')]})]})]})]}),_0x45f3a9['jsxs'](_0x12f5a6(0x29d),{'className':'univer-space-y-2','children':[_0x45f3a9[_0x12f5a6(0x155)](_0x12f5a6(0x29d),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x12f5a6(0x12f)}),_0x45f3a9[_0x12f5a6(0x155)]('div',{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0x45f3a9['jsx']('pre',{'className':_0x12f5a6(0x293),'children':JSON[_0x12f5a6(0x1f3)]({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0x73a5b7||_0x12f5a6(0x270)),'type':_0x12f5a6(0x28d),'headers':{'Authorization':_0x12f5a6(0x200)+(_0x513b9a||'<API_KEY>')}}}},null,0x2)})})]}),_0x45f3a9['jsxs'](_0x12f5a6(0x29d),{'className':_0x12f5a6(0x1b9),'children':[_0x45f3a9[_0x12f5a6(0x155)]('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x31bf47['t'](_0x12f5a6(0x26e))}),_0x45f3a9[_0x12f5a6(0x1b1)](_0x12f5a6(0x29d),{'className':_0x12f5a6(0x268),'children':[_0x45f3a9['jsxs']('div',{'className':_0x12f5a6(0x1ca),'children':[_0x45f3a9['jsx'](_0x12f5a6(0x29d),{'className':_0x12f5a6(0x290)}),_0x45f3a9[_0x12f5a6(0x1b1)]('div',{'className':_0x12f5a6(0x254),'children':[_0x45f3a9[_0x12f5a6(0x155)](_0x12f5a6(0x29d),{'className':_0x12f5a6(0x20b),'children':_0x12f5a6(0x18f)}),_0x45f3a9['jsx'](_0x12f5a6(0x29d),{'className':_0x12f5a6(0x1f1),'children':_0x31bf47['t'](_0x12f5a6(0x280))})]})]}),_0x45f3a9[_0x12f5a6(0x1b1)](_0x12f5a6(0x29d),{'className':_0x12f5a6(0x1ca),'children':[_0x45f3a9[_0x12f5a6(0x155)](_0x12f5a6(0x29d),{'className':_0x12f5a6(0x290)}),_0x45f3a9[_0x12f5a6(0x1b1)](_0x12f5a6(0x29d),{'className':_0x12f5a6(0x254),'children':[_0x45f3a9[_0x12f5a6(0x155)](_0x12f5a6(0x29d),{'className':_0x12f5a6(0x20b),'children':'Authorization:'}),_0x45f3a9['jsx'](_0x12f5a6(0x29d),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x31bf47['t'](_0x12f5a6(0x15e))})]})]})]})]})]})]}),_0x45f3a9[_0x12f5a6(0x155)](_0x35afee[_0x12f5a6(0x1a4)],{'onClick':_0x35ec23,'disabled':!_0x1e8db9||_0x2dbcfc,'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':_0x2dbcfc?_0x45f3a9[_0x12f5a6(0x1b1)](_0x12f5a6(0x1fb),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x45f3a9[_0x12f5a6(0x155)]('span',{'children':'⟲'}),_0x31bf47['t'](_0x12f5a6(0x1e9))]}):_0x45f3a9[_0x12f5a6(0x1b1)]('span',{'className':_0x12f5a6(0x210),'children':[_0x45f3a9[_0x12f5a6(0x155)](_0x2ff4cd,{}),_0x31bf47['t']('mcpConfig.save')]})}),_0x45f3a9[_0x12f5a6(0x155)]('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':_0x45f3a9['jsxs'](_0x12f5a6(0x29d),{'className':_0x12f5a6(0x283),'children':[_0x45f3a9[_0x12f5a6(0x155)]('span',{'className':_0x12f5a6(0x137),'children':'💡'}),_0x45f3a9[_0x12f5a6(0x1b1)]('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x45f3a9[_0x12f5a6(0x155)](_0x12f5a6(0x29d),{'className':'univer-font-medium','children':_0x12f5a6(0x24a)}),_0x45f3a9[_0x12f5a6(0x1b1)]('div',{'children':['•',_0x31bf47['t'](_0x12f5a6(0x218))]}),_0x45f3a9[_0x12f5a6(0x1b1)](_0x12f5a6(0x29d),{'children':['•',_0x31bf47['t'](_0x12f5a6(0x14d))]})]})]})})]})})]});}const _0x164a84=_0x53a509(0x26d),_0x4c208d={'showDeveloperTools':!0x1,'showStatus':!0x0};var _0x24694f=Object['getOwnPropertyDescriptor'],_0x4b25e3=(_0x3c09ed,_0x35e346,_0x38744d,_0x406815)=>{const _0x56bcaa=_0x53a509;for(var _0x2a67e6=_0x406815>0x1?void 0x0:_0x406815?_0x24694f(_0x35e346,_0x38744d):_0x35e346,_0x5f3bdc=_0x3c09ed[_0x56bcaa(0x1c6)]-0x1,_0x219ca1;_0x5f3bdc>=0x0;_0x5f3bdc--)(_0x219ca1=_0x3c09ed[_0x5f3bdc])&&(_0x2a67e6=_0x219ca1(_0x2a67e6)||_0x2a67e6);return _0x2a67e6;},_0x1a5673=(_0x436370,_0x1de4ee)=>(_0xbf9ce3,_0x5cfe72)=>_0x1de4ee(_0xbf9ce3,_0x5cfe72,_0x436370);const _0x596d7b=_0x53a509(0x1de),_0x45f0b2=_0x53a509(0x236);_0x13fb0e[_0x53a509(0x161)]=class extends _0x377bb8['Disposable']{constructor(_0x947369,_0x1e369c,_0x3a1a5c,_0xebfade,_0x202857,_0x5d1848,_0x4fa7e8,_0x289b8e,_0x1a3647,_0x175734){const _0x214019=_0x53a509;super(),_0x58d213(this,_0x214019(0x1b0),new _0x1f9086[(_0x214019(0x23a))](!0x1)),_0x58d213(this,'_mcpCoreConfig$',new _0x1f9086['BehaviorSubject']({})),_0x58d213(this,'_config$',new _0x1f9086[(_0x214019(0x23a))]({})),_0x58d213(this,'_apiKey$',new _0x1f9086[(_0x214019(0x23a))]('')),_0x58d213(this,_0x214019(0x1bd),async _0x12b3bc=>{const _0x35b080=_0x214019;var _0x266d9b,_0x5bd6c7;this[_0x35b080(0x1b0)][_0x35b080(0x12c)](!0x0);try{const _0xbf5d6e=await this[_0x35b080(0x26b)](_0x12b3bc);if(!_0xbf5d6e[_0x35b080(0x1bf)]){this[_0x35b080(0x17a)][_0x35b080(0x24f)]({'type':_0x35afee[_0x35b080(0x1d2)][_0x35b080(0x2aa)],'content':_0xbf5d6e[_0x35b080(0x209)]||this['_localeService']['t'](_0x35b080(0x284))});return;}_0x12b3bc['apiKey']?await this[_0x35b080(0x23b)][_0x35b080(0x15b)](_0x596d7b,_0x12b3bc[_0x35b080(0x1ea)]['trim']()):await this[_0x35b080(0x23b)][_0x35b080(0x167)](_0x596d7b),this['_apiKey$'][_0x35b080(0x12c)](((_0x266d9b=_0x12b3bc[_0x35b080(0x1ea)])==null?void 0x0:_0x266d9b[_0x35b080(0x1d6)]())||''),this[_0x35b080(0x146)][_0x35b080(0x211)]({'Authorization':_0x35b080(0x200)+((_0x5bd6c7=_0x12b3bc[_0x35b080(0x1ea)])==null?void 0x0:_0x5bd6c7[_0x35b080(0x1d6)]())}),this['_messageService'][_0x35b080(0x24f)]({'type':_0x35afee['MessageType'][_0x35b080(0x181)],'content':this[_0x35b080(0x226)]['t'](_0x35b080(0x259))}),setTimeout(()=>{const _0x2419c3=_0x35b080;this[_0x2419c3(0x15d)][_0x2419c3(0x2a7)](_0x45f0b2);},0x320);}catch(_0x36706b){this[_0x35b080(0x269)][_0x35b080(0x15c)](_0x35b080(0x179),_0x36706b),this[_0x35b080(0x17a)][_0x35b080(0x24f)]({'type':_0x35afee['MessageType'][_0x35b080(0x2aa)],'content':this[_0x35b080(0x226)]['t'](_0x35b080(0x2b1))});}finally{this[_0x35b080(0x1b0)]['next'](!0x1);}}),(this[_0x214019(0x1e6)]=_0x947369,this[_0x214019(0x204)]=_0x1e369c,this[_0x214019(0x153)]=_0x3a1a5c,this[_0x214019(0x23b)]=_0xebfade,this[_0x214019(0x15d)]=_0x202857,this[_0x214019(0x17a)]=_0x5d1848,this[_0x214019(0x1c9)]=_0x4fa7e8,this[_0x214019(0x226)]=_0x289b8e,this[_0x214019(0x269)]=_0x1a3647,this['_mcpConnectionController']=_0x175734,this[_0x214019(0x22e)](),this[_0x214019(0x28b)](),this[_0x214019(0x156)]());}[_0x53a509(0x158)](){const _0x238d58=_0x53a509,_0x444f3a=this[_0x238d58(0x153)]['getConfig'](_0x164a84);_0x444f3a!=null&&_0x444f3a[_0x238d58(0x18e)]&&this[_0x238d58(0x15d)][_0x238d58(0x1ef)]({'id':_0x45f0b2,'title':{'title':this[_0x238d58(0x226)]['t'](_0x238d58(0x1fd))},'children':{'label':_0x238d58(0x25f)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x98b060=_0x238d58;this[_0x98b060(0x15d)][_0x98b060(0x2a7)](_0x45f0b2);}});}['getCurrentConfig'](){const _0x2d02c5=_0x53a509;return this[_0x2d02c5(0x27f)]['value'];}['_registerComponent'](){const _0x352098=_0x53a509;this['disposeWithMe'](this[_0x352098(0x1c9)][_0x352098(0x1f5)](_0x352098(0x25f),this[_0x352098(0x257)]()));}[_0x53a509(0x257)](){const _0x406ce1=_0x53a509;return _0x5d7431[_0x406ce1(0x177)](()=>{const _0x406fde=_0x406ce1;var _0x26d4d9,_0x2177e7,_0x4a5e12;return _0x45f3a9[_0x406fde(0x155)](_0x2c828c,{'config':this[_0x406fde(0x29e)][_0x406fde(0x1c1)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x406fde(0x1c1)],'currentApiKey$':this[_0x406fde(0x16d)],'onSave':this['_handleConfigSave'],'loading':this['_loading$']['value'],'connectionStatus$':(_0x26d4d9=this['_mcpConnectionController'])==null?void 0x0:_0x26d4d9[_0x406fde(0x2a5)],'connectionError$':(_0x2177e7=this[_0x406fde(0x146)])==null?void 0x0:_0x2177e7[_0x406fde(0x1a7)],'currentSessionId$':(_0x4a5e12=this[_0x406fde(0x146)])==null?void 0x0:_0x4a5e12[_0x406fde(0x232)]});},this[_0x406ce1(0x1e6)]);}['_initConfigSync'](){const _0x377814=_0x53a509;this[_0x377814(0x295)](this[_0x377814(0x153)][_0x377814(0x2a8)](_0x42e91f[_0x377814(0x203)])[_0x377814(0x29f)](_0x15b58c=>{const _0x31abc5=_0x377814;this[_0x31abc5(0x27f)]['next'](_0x15b58c||{});}));const _0x3036b8=this['_configService']['getConfig'](_0x42e91f[_0x377814(0x203)]);this['_mcpCoreConfig$'][_0x377814(0x12c)](_0x3036b8||{}),this[_0x377814(0x295)](this[_0x377814(0x153)][_0x377814(0x2a8)](_0x164a84)[_0x377814(0x29f)](_0x4d01fe=>{const _0x3e5853=_0x377814;this[_0x3e5853(0x29e)][_0x3e5853(0x12c)](_0x4d01fe||{});}));const _0x502c49=this[_0x377814(0x153)]['getConfig'](_0x164a84);this[_0x377814(0x29e)][_0x377814(0x12c)](_0x502c49||{});}async[_0x53a509(0x28b)](){const _0x1a5791=_0x53a509,_0x6a6976=this[_0x1a5791(0x153)]['getConfig'](_0x164a84);if(!(_0x6a6976!=null&&_0x6a6976[_0x1a5791(0x18e)]))return;const _0x5da0f6=await this['_localStorageService'][_0x1a5791(0x193)](_0x596d7b);_0x5da0f6&&(this[_0x1a5791(0x146)][_0x1a5791(0x211)]({'Authorization':'Bearer\x20'+_0x5da0f6}),this[_0x1a5791(0x16d)][_0x1a5791(0x12c)](_0x5da0f6));}async[_0x53a509(0x26b)](_0x67e707){const _0xb8a0db=_0x53a509;if(!_0x67e707[_0xb8a0db(0x1ea)]||_0x67e707[_0xb8a0db(0x1ea)][_0xb8a0db(0x1d6)]()[_0xb8a0db(0x1c6)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0xb8a0db(0x226)]['t'](_0xb8a0db(0x145))};if(_0x67e707['apiKey'][_0xb8a0db(0x1d6)]()[_0xb8a0db(0x1c6)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0xb8a0db(0x226)]['t'](_0xb8a0db(0x2a1))};try{const _0x5e7ad9=await this[_0xb8a0db(0x1e6)][_0xb8a0db(0x289)](_0x42e91f[_0xb8a0db(0x23d)])['validateApiKey'](_0x67e707[_0xb8a0db(0x1ea)]['trim']());return _0x5e7ad9[_0xb8a0db(0x1bf)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x5e7ad9[_0xb8a0db(0x15c)]||this[_0xb8a0db(0x226)]['t'](_0xb8a0db(0x230))};}catch(_0x5d4629){return console[_0xb8a0db(0x1cf)](_0xb8a0db(0x139),_0x5d4629),{'isValid':!0x0};}}},_0x13fb0e[_0x53a509(0x161)]=_0x4b25e3([_0x1a5673(0x0,_0x377bb8[_0x53a509(0x1f7)](_0x377bb8['Injector'])),_0x1a5673(0x1,_0x5d7431['IUIPartsService']),_0x1a5673(0x2,_0x377bb8[_0x53a509(0x192)]),_0x1a5673(0x3,_0x377bb8['ILocalStorageService']),_0x1a5673(0x4,_0x5d7431[_0x53a509(0x1f6)]),_0x1a5673(0x5,_0x5d7431[_0x53a509(0x216)]),_0x1a5673(0x6,_0x377bb8[_0x53a509(0x1f7)](_0x5d7431[_0x53a509(0x25d)])),_0x1a5673(0x7,_0x377bb8['Inject'](_0x377bb8[_0x53a509(0x2ad)])),_0x1a5673(0x8,_0x377bb8[_0x53a509(0x1ec)]),_0x1a5673(0x9,_0x377bb8[_0x53a509(0x1f7)](_0x42e91f[_0x53a509(0x23d)]))],_0x13fb0e[_0x53a509(0x161)]);const _0x5e2bf9={'id':_0x53a509(0x165),'type':_0x377bb8[_0x53a509(0x129)]['COMMAND'],'handler':async(_0x1c096a,_0x5dfa3f)=>(_0x1c096a[_0x53a509(0x289)](_0x13fb0e[_0x53a509(0x161)])[_0x53a509(0x158)](),!0x0)};function _0x3f42d(_0x2e9579,_0x3bebca){const _0xbd1775=_0x53a509;switch(_0x2e9579){case _0x42e91f[_0xbd1775(0x246)][_0xbd1775(0x143)]:return _0xbd1775(0x1c3);case _0x42e91f[_0xbd1775(0x246)]['CONNECTING']:return _0xbd1775(0x187);case _0x42e91f['MCPConnectionStatus']['CONNECTED']:return _0xbd1775(0x16e);case _0x42e91f['MCPConnectionStatus'][_0xbd1775(0x1ce)]:switch(_0x3bebca){case _0x42e91f[_0xbd1775(0x19e)]['UNAUTHORIZED']:return _0xbd1775(0x13a);case _0x42e91f[_0xbd1775(0x19e)][_0xbd1775(0x215)]:return _0xbd1775(0x2c1);case _0x42e91f[_0xbd1775(0x19e)]['NETWORK_ERROR']:return _0xbd1775(0x292);case _0x42e91f[_0xbd1775(0x19e)]['MAX_RETRIES_EXCEEDED']:return _0xbd1775(0x2b7);default:return _0xbd1775(0x14b);}case _0x42e91f['MCPConnectionStatus'][_0xbd1775(0x1b8)]:return _0xbd1775(0x234);default:return _0xbd1775(0x1d8);}}function _0x25eb62(_0xd70a30,_0x40f41f,_0x51a52b,_0x1eb730=!0x0){const _0x5d141a=_0x53a509,_0x4b6ce8=_0x3f42d(_0xd70a30,_0x40f41f),_0x48ff6d=_0x51a52b['t'](_0x4b6ce8);return _0x1eb730?_0xd70a30===_0x42e91f[_0x5d141a(0x246)]['DISCONNECTED']&&_0x40f41f===_0x42e91f[_0x5d141a(0x19e)]['UNAUTHORIZED']?_0x48ff6d+'\x20-\x20'+_0x51a52b['t'](_0x5d141a(0x151)):_0xd70a30===_0x42e91f[_0x5d141a(0x246)][_0x5d141a(0x2a6)]?''+_0x48ff6d:_0xd70a30===_0x42e91f[_0x5d141a(0x246)][_0x5d141a(0x143)]||_0xd70a30===_0x42e91f[_0x5d141a(0x246)][_0x5d141a(0x1ce)]?_0x48ff6d+'\x20-\x20'+_0x51a52b['t'](_0x5d141a(0x199)):_0x48ff6d:_0x48ff6d;}function _0x29ee94(_0xee7403){const _0x4a3a88=_0x53a509;switch(_0xee7403){case _0x42e91f[_0x4a3a88(0x246)][_0x4a3a88(0x2a6)]:return _0x4a3a88(0x171);case _0x42e91f[_0x4a3a88(0x246)]['CONNECTING']:case _0x42e91f[_0x4a3a88(0x246)][_0x4a3a88(0x1b8)]:return'univer-text-yellow-500';case _0x42e91f[_0x4a3a88(0x246)][_0x4a3a88(0x1ce)]:case _0x42e91f[_0x4a3a88(0x246)][_0x4a3a88(0x143)]:return'univer-text-red-500';default:return _0x4a3a88(0x16c);}}function _0x33ad06(_0x501ed7){const _0x266e1c=_0x53a509,{status$:_0x4319a4,error$:_0x5c2876,onConfigure:_0x38eb15,showClickable:_0x5a671c=!0x0}=_0x501ed7,_0x4dcb9e=_0x5d7431[_0x266e1c(0x15f)](_0x4319a4,_0x42e91f[_0x266e1c(0x246)][_0x266e1c(0x143)]),_0x546dff=_0x5d7431['useObservable'](_0x5c2876,_0x42e91f[_0x266e1c(0x19e)]['NONE']),_0x392b7a=_0x5d7431['useDependency'](_0x377bb8[_0x266e1c(0x2ad)]),_0x15700b=_0x4dcb9e===_0x42e91f[_0x266e1c(0x246)][_0x266e1c(0x2a6)];_0x4dcb9e===_0x42e91f[_0x266e1c(0x246)][_0x266e1c(0x208)]||_0x42e91f[_0x266e1c(0x246)]['RETRYING'];const _0x4a821b=_0x392b7a['t'](_0x3f42d(_0x4dcb9e,_0x546dff)),_0x3425a3=_0x25eb62(_0x4dcb9e,_0x546dff,_0x392b7a,_0x5a671c),_0x171fdf=_0x29ee94(_0x4dcb9e),_0x5c4780=_0x15700b?_0x45f3a9['jsx'](_0x58da7d,{}):_0x45f3a9[_0x266e1c(0x155)](_0x9cee0d,{}),_0x27b705=_0x28a6e5['useCallback'](()=>{_0x5a671c&&_0x38eb15&&_0x38eb15();},[_0x5a671c,_0x38eb15]);function _0xa54243(){const _0x231b66=_0x266e1c;return _0x45f3a9['jsxs'](_0x231b66(0x29d),{'className':_0x35afee['clsx'](_0x231b66(0x1d0),_0x5a671c&&_0x38eb15&&_0x231b66(0x180)),'role':'button','onClick':_0x5a671c&&_0x38eb15?_0x27b705:void 0x0,'children':[_0x45f3a9['jsx'](_0x231b66(0x29d),{'className':_0x35afee[_0x231b66(0x168)](_0x231b66(0x1c2),_0x171fdf),'children':_0x5c4780}),_0x45f3a9[_0x231b66(0x155)](_0x231b66(0x29d),{'className':_0x231b66(0x245),'children':_0x4a821b})]});}return _0x45f3a9[_0x266e1c(0x155)](_0x35afee[_0x266e1c(0x27b)],{'title':_0x3425a3,'placement':_0x266e1c(0x1e7),'children':_0xa54243()});}var _0x546b48=Object[_0x53a509(0x27c)],_0xa75b80=(_0x2b08dd,_0x25cd7e,_0x3dd5ef,_0x4a99e4)=>{const _0x402626=_0x53a509;for(var _0xdaf82c=_0x4a99e4>0x1?void 0x0:_0x4a99e4?_0x546b48(_0x25cd7e,_0x3dd5ef):_0x25cd7e,_0x5b24c0=_0x2b08dd[_0x402626(0x1c6)]-0x1,_0x1f72e6;_0x5b24c0>=0x0;_0x5b24c0--)(_0x1f72e6=_0x2b08dd[_0x5b24c0])&&(_0xdaf82c=_0x1f72e6(_0xdaf82c)||_0xdaf82c);return _0xdaf82c;},_0x333dd9=(_0x266091,_0x131f4a)=>(_0x1f5186,_0x3ba69c)=>_0x131f4a(_0x1f5186,_0x3ba69c,_0x266091);_0x13fb0e[_0x53a509(0x23c)]=class extends _0x377bb8[_0x53a509(0x1da)]{constructor(_0x3d3983,_0x38ef36,_0x3e42e8,_0x100af1){const _0x186d3c=_0x53a509;super(),this['_injector']=_0x3d3983,this[_0x186d3c(0x256)]=_0x38ef36,this[_0x186d3c(0x204)]=_0x3e42e8,this[_0x186d3c(0x153)]=_0x100af1,this[_0x186d3c(0x1c5)](),this[_0x186d3c(0x271)]();}[_0x53a509(0x1c5)](){const _0x3125a5=_0x53a509,_0x240649=this[_0x3125a5(0x153)][_0x3125a5(0x202)](_0x164a84);_0x240649!=null&&_0x240649['showDeveloperTools']&&(this['_connectionController']['enableAutoConnect']=!0x1);}[_0x53a509(0x271)](){const _0x436bb0=_0x53a509,_0xc0965a=this['_configService'][_0x436bb0(0x202)](_0x164a84);(_0xc0965a==null?void 0x0:_0xc0965a[_0x436bb0(0x1e4)])!==!0x1&&this[_0x436bb0(0x295)](this['_uiPartsService'][_0x436bb0(0x299)](_0x5d7431['BuiltInUIPart'][_0x436bb0(0x248)],()=>{const _0x173c7f=_0x436bb0;var _0x4d02c3;return _0x5d7431[_0x173c7f(0x177)](_0x230919({'status$':this[_0x173c7f(0x256)][_0x173c7f(0x2a5)],'error$':this[_0x173c7f(0x256)][_0x173c7f(0x1a7)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x4d02c3=_0xc0965a==null?void 0x0:_0xc0965a[_0x173c7f(0x18e)])!=null?_0x4d02c3:!0x1}),this['_injector']);}));}[_0x53a509(0x1c8)](){const _0x562eac=_0x53a509;this['_injector']['get'](_0x13fb0e[_0x562eac(0x161)])[_0x562eac(0x158)]();}},_0x13fb0e[_0x53a509(0x23c)]=_0xa75b80([_0x333dd9(0x0,_0x377bb8['Inject'](_0x377bb8['Injector'])),_0x333dd9(0x1,_0x377bb8[_0x53a509(0x1f7)](_0x42e91f[_0x53a509(0x23d)])),_0x333dd9(0x2,_0x5d7431[_0x53a509(0x1d9)]),_0x333dd9(0x3,_0x377bb8[_0x53a509(0x192)])],_0x13fb0e['MCPConnectionUIController']);function _0x230919(_0x3874a2){const {status$:_0xc21eb3,error$:_0x280547,onConfigure:_0x5e9630,showClickable:_0x60aeec}=_0x3874a2;return function(){const _0x4911c0=_0xde69;return _0x45f3a9[_0x4911c0(0x155)](_0x33ad06,{'status$':_0xc21eb3,'error$':_0x280547,'onConfigure':_0x5e9630,'showClickable':_0x60aeec});};}function _0x36f9c3(_0x484a5f){const _0x54defc=_0x53a509;return{'id':_0x5e2bf9['id'],'type':_0x5d7431['MenuItemType'][_0x54defc(0x20d)],'icon':_0x54defc(0x2ba),'title':'mcpConfig.title','tooltip':_0x54defc(0x1fd)};}const _0x2e777f={[_0x5d7431[_0x53a509(0x251)]['OTHERS']]:{[_0x5e2bf9['id']]:{'order':0xa,'menuItemFactory':_0x36f9c3}}};var _0x41cc49=Object[_0x53a509(0x27c)],_0xec2656=(_0x30689,_0x31d4f3,_0x521e17,_0x57902e)=>{for(var _0x33bc7f=_0x57902e>0x1?void 0x0:_0x57902e?_0x41cc49(_0x31d4f3,_0x521e17):_0x31d4f3,_0x198a50=_0x30689['length']-0x1,_0xf04c98;_0x198a50>=0x0;_0x198a50--)(_0xf04c98=_0x30689[_0x198a50])&&(_0x33bc7f=_0xf04c98(_0x33bc7f)||_0x33bc7f);return _0x33bc7f;},_0x31c593=(_0x389582,_0x139c25)=>(_0x46a39a,_0x2accc9)=>_0x139c25(_0x46a39a,_0x2accc9,_0x389582);_0x13fb0e[_0x53a509(0x196)]=class extends _0x377bb8[_0x53a509(0x1da)]{constructor(_0x3e9187,_0x2f4e1a){const _0x431a27=_0x53a509;super(),this[_0x431a27(0x2a4)]=_0x3e9187,this['_menuManagerService']=_0x2f4e1a,this[_0x431a27(0x1ee)](),this[_0x431a27(0x249)]();}['_initializeCommands'](){[_0x5e2bf9]['forEach'](_0x245e8d=>{const _0x4dbb89=_0xde69;this[_0x4dbb89(0x295)](this['_commandService'][_0x4dbb89(0x18c)](_0x245e8d));});}[_0x53a509(0x249)](){const _0xcb10ae=_0x53a509;this[_0xcb10ae(0x241)][_0xcb10ae(0x1b6)](_0x2e777f);}},_0x13fb0e[_0x53a509(0x196)]=_0xec2656([_0x31c593(0x0,_0x377bb8[_0x53a509(0x194)]),_0x31c593(0x1,_0x5d7431[_0x53a509(0x291)])],_0x13fb0e['MCPUIMenuController']);const _0x52aa93={'mcpStatus':{'disconnected':_0x53a509(0x2ac),'connecting':_0x53a509(0x130),'connected':'MCP\x20Connected','failed':_0x53a509(0x24b),'retrying':_0x53a509(0x185),'unknown':_0x53a509(0x27e),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x53a509(0x2af),'networkError':_0x53a509(0x1fe),'maxRetriesExceeded':_0x53a509(0x24d),'clickToConnect':_0x53a509(0x22a),'clickToConfigure':_0x53a509(0x24e)},'mcpConfig':{'title':_0x53a509(0x12f),'description':_0x53a509(0x18b),'apiKey':_0x53a509(0x1e0),'apiKeyPlaceholder':_0x53a509(0x144),'apiKeyHint':_0x53a509(0x24c),'enableAuth':_0x53a509(0x131),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x53a509(0x17d),'mcpClientConfig':_0x53a509(0x17d),'configInstructions':_0x53a509(0x220),'configStepTitle':_0x53a509(0x1e1),'configStep1':_0x53a509(0x1e8),'configStep2':_0x53a509(0x170),'configStep3':_0x53a509(0x190),'sessionId':_0x53a509(0x1bc),'sessionIdDescription':_0x53a509(0x2be),'authorizationDescription':_0x53a509(0x1cb),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x53a509(0x264),'save':_0x53a509(0x243),'saving':'Saving...','note1':_0x53a509(0x1a6),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x53a509(0x235),'apiApplyInfo':{'title':_0x53a509(0x140),'description':_0x53a509(0x20e),'univerAiLabel':_0x53a509(0x253),'getStarted':_0x53a509(0x28c)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x53a509(0x21a),'invalidConfig':_0x53a509(0x28a),'invalidApiKey':_0x53a509(0x2bc)},'connectionStatus':{'disconnected':_0x53a509(0x1eb),'connecting':_0x53a509(0x188),'connected':'Connected','failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0x53a509(0x223),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x53a509(0x1dd),'maxRetriesExceeded':_0x53a509(0x242)}}},_0x3205df={'mcpStatus':{'disconnected':_0x53a509(0x13f),'connecting':_0x53a509(0x2a9),'connected':_0x53a509(0x22b),'failed':'MCP\x20连接失败','retrying':'MCP\x20重连中...','unknown':_0x53a509(0x26c),'unauthorized':_0x53a509(0x21d),'sessionOccupied':_0x53a509(0x1aa),'networkError':_0x53a509(0x233),'maxRetriesExceeded':_0x53a509(0x275),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x53a509(0x2b4)},'mcpConfig':{'title':_0x53a509(0x1cd),'description':_0x53a509(0x147),'apiKey':_0x53a509(0x2bd),'apiKeyPlaceholder':_0x53a509(0x2a3),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x53a509(0x22f),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x53a509(0x183),'configInstructions':_0x53a509(0x25e),'configStepTitle':_0x53a509(0x237),'configStep1':_0x53a509(0x281),'configStep2':_0x53a509(0x27d),'configStep3':_0x53a509(0x244),'sessionId':_0x53a509(0x1db),'sessionIdDescription':_0x53a509(0x169),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x53a509(0x1b3),'maxRetries':_0x53a509(0x255),'save':'保存配置','saving':_0x53a509(0x19c),'note1':_0x53a509(0x19b),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x53a509(0x26f),'configError':_0x53a509(0x222),'apiApplyInfo':{'title':_0x53a509(0x1dc),'description':_0x53a509(0x2bf),'univerAiLabel':_0x53a509(0x1a1),'getStarted':_0x53a509(0x1ab)},'validation':{'apiKeyRequired':_0x53a509(0x25b),'apiKeyTooShort':_0x53a509(0x1b4),'invalidConfig':_0x53a509(0x20a),'invalidApiKey':_0x53a509(0x195)},'connectionStatus':{'disconnected':_0x53a509(0x1a3),'connecting':_0x53a509(0x272),'connected':_0x53a509(0x273),'failed':_0x53a509(0x1a2),'retrying':_0x53a509(0x141)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x53a509(0x261),'networkError':_0x53a509(0x25c),'maxRetriesExceeded':_0x53a509(0x221)}}};var _0x4b168f=Object[_0x53a509(0x150)],_0x546380=Object[_0x53a509(0x27c)],_0x243b7a=(_0x333743,_0x4faf8f,_0x14e37e)=>_0x4faf8f in _0x333743?_0x4b168f(_0x333743,_0x4faf8f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x14e37e}):_0x333743[_0x4faf8f]=_0x14e37e,_0x2f83e6=(_0x4a93d6,_0x2dd846,_0x19b066,_0x3ccfe4)=>{const _0x42eddd=_0x53a509;for(var _0x5a2049=_0x3ccfe4>0x1?void 0x0:_0x3ccfe4?_0x546380(_0x2dd846,_0x19b066):_0x2dd846,_0x4fb840=_0x4a93d6[_0x42eddd(0x1c6)]-0x1,_0x137332;_0x4fb840>=0x0;_0x4fb840--)(_0x137332=_0x4a93d6[_0x4fb840])&&(_0x5a2049=_0x137332(_0x5a2049)||_0x5a2049);return _0x5a2049;},_0x2ed4d5=(_0x21c027,_0x1a1986)=>(_0x41914a,_0x5d5892)=>_0x1a1986(_0x41914a,_0x5d5892,_0x21c027),_0x3d979a=(_0x4d3ee0,_0x552045,_0x12ae3f)=>_0x243b7a(_0x4d3ee0,_0x552045+'',_0x12ae3f);_0x13fb0e[_0x53a509(0x21e)]=class extends _0x377bb8[_0x53a509(0x1f2)]{constructor(_0x547fd8=_0x4c208d,_0x3d82f1,_0x57c932,_0xd0a186,_0xb5e817,_0x3c334a){const _0x2ad87f=_0x53a509;super(),this[_0x2ad87f(0x28f)]=_0x547fd8,this[_0x2ad87f(0x1e6)]=_0x3d82f1,this[_0x2ad87f(0x153)]=_0x57c932,this[_0x2ad87f(0x204)]=_0xd0a186,this[_0x2ad87f(0x23b)]=_0xb5e817,this[_0x2ad87f(0x226)]=_0x3c334a;const {..._0x40eab3}=_0x377bb8['merge']({},_0x4c208d,this[_0x2ad87f(0x28f)]);this['_configService'][_0x2ad87f(0x1bb)](_0x164a84,_0x40eab3);}async[_0x53a509(0x17b)](){const _0x274b21=_0x53a509,_0x40bea6=[[_0x13fb0e['MCPConnectionUIController']],[_0x13fb0e[_0x274b21(0x161)]],[_0x13fb0e[_0x274b21(0x196)]]];this[_0x274b21(0x1e6)][_0x274b21(0x288)](_0x5d2366[_0x274b21(0x206)])||_0x40bea6[_0x274b21(0x160)]([_0x5d2366[_0x274b21(0x206)],{'useClass':_0x5d2366[_0x274b21(0x19d)]}]),_0x40bea6['forEach'](_0x17c20d=>this[_0x274b21(0x1e6)][_0x274b21(0x266)](_0x17c20d)),this[_0x274b21(0x1e6)][_0x274b21(0x289)](_0x13fb0e[_0x274b21(0x23c)]),this[_0x274b21(0x1e6)][_0x274b21(0x289)](_0x13fb0e[_0x274b21(0x161)]),this['_injector'][_0x274b21(0x289)](_0x13fb0e[_0x274b21(0x196)]);}},_0x3d979a(_0x13fb0e[_0x53a509(0x21e)],_0x53a509(0x1d3),_0x53a509(0x162)),_0x13fb0e['UniverMCPUIPlugin']=_0x2f83e6([_0x377bb8[_0x53a509(0x214)](_0x42e91f[_0x53a509(0x2b0)]),_0x2ed4d5(0x1,_0x377bb8[_0x53a509(0x1f7)](_0x377bb8[_0x53a509(0x276)])),_0x2ed4d5(0x2,_0x377bb8[_0x53a509(0x192)]),_0x2ed4d5(0x3,_0x5d7431[_0x53a509(0x1d9)]),_0x2ed4d5(0x4,_0x377bb8[_0x53a509(0x274)]),_0x2ed4d5(0x5,_0x377bb8['Inject'](_0x377bb8[_0x53a509(0x2ad)]))],_0x13fb0e[_0x53a509(0x21e)]),_0x13fb0e[_0x53a509(0x25f)]=_0x2c828c,_0x13fb0e['MCPStatusDisplay']=_0x33ad06,_0x13fb0e[_0x53a509(0x2b9)]=_0x5e2bf9,_0x13fb0e[_0x53a509(0x157)]=_0x52aa93,_0x13fb0e[_0x53a509(0x17c)]=_0x3205df,Object['defineProperty'](_0x13fb0e,Symbol[_0x53a509(0x20f)],{'value':'Module'});}));function _0x4e81(){const _0x33c1fa=['useDependency','https://console.univer.plus','MCP:\x20未授权','UniverMCPUIPlugin','mcpConfig.connectionStatus.disconnected','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','超出最大重试次数,请稍后再试','配置保存失败','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MAX_RETRIES_EXCEEDED','help-icon','_localeService','mcpConfig.connectionError.maxRetriesExceeded','0\x200\x2017\x2016','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','Click\x20to\x20connect\x20MCP','MCP\x20已连接','univer-space-y-5','3003412jlsWGW','_initConfigSync','启用身份验证','mcpConfig.validation.invalidApiKey','forEach','sessionId$','MCP:\x20网络错误','mcpStatus.retrying','Failed\x20to\x20save\x20configuration','mcp-config-dialog','配置步骤:','tag','none','BehaviorSubject','_localStorageService','MCPConnectionUIController','MCPConnectionController','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','url(#on-line-icon_clip0_910_349)','@univerjs/design','_menuManagerService','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Save\x20Configuration','重启您的\x20MCP\x20客户端以使配置生效','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','MCPConnectionStatus','close-icon','HEADER_MENU','_initializeMenus','Configuration\x20Notes:','MCP\x20Connection\x20Failed','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Max\x20Retries\x20Exceeded','Click\x20to\x20configure\x20MCP','show','_blank','RibbonStartGroup','univer-flex\x20univer-items-start\x20univer-gap-2','Univer\x20AI\x20Console','univer-min-w-0\x20univer-flex-1','最大重试次数','_connectionController','_createConfigPanelComponent','1355460BglkuF','mcpConfig.configSaved','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','API\x20密钥不能为空','网络连接错误,请检查您的网络连接','ComponentManager','将以下配置添加到您的\x20MCP\x20客户端设置中:','MCPConfigPanel','mcpConfig.apiKeyHint','会话\x20ID\x20已被占用,请稍后再试','button','mcpConfig.connectionStatus.connected','Max\x20Retries','UniverNetwork','add','M0\x200H16V16H0z','univer-space-y-2','_logService','NETWORK_ERROR','_validateConfig','MCP\x20状态未知','mcp-ui.config','mcpConfig.configParameters','配置保存成功','<SESSION_ID>','_initStatusComponent','连接中...','已连接','ILocalStorageService','MCP:\x20超出最大重试次数','Injector','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','univer-shrink-0\x20univer-text-red-500','children','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','Tooltip','getOwnPropertyDescriptor','将配置添加到您的\x20MCP\x20客户端设置文件中','MCP\x20Unknown\x20Status','_mcpCoreConfig$','mcpConfig.sessionIdDescription','复制以下\x20JSON\x20配置','toString','univer-flex\x20univer-gap-3','mcpConfig.validation.invalidConfig','mcpConfig.apiKey','xlink:href','mcpConfig.apiApplyInfo.univerAiLabel','has','get','Invalid\x20configuration','_loadStoredApiKey','Get\x20your\x20API\x20key\x20in\x20seconds','http','univer-text-blue-600','_config','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','IMenuManagerService','mcpStatus.networkError','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','univer-bg-red-500','disposeWithMe','mcpConfig.description','univer-text-sm\x20univer-text-gray-500','mcpConfig.apiApplyInfo.title','registerComponent','univer-bg-blue-500','colorChannel1','UniverDesign','div','_config$','subscribe','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.apiKeyTooShort','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','请输入您的\x20API\x20密钥','_commandService','connectionStatus$','CONNECTED','close','subscribeConfigValue$','MCP\x20连接中...','Error','entries','MCP\x20Disconnected','LocaleService','UniverProMcp','MCP:\x20Session\x20ID\x20Occupied','UniverMCPPlugin','mcpConfig.configError','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','evenodd','点击配置\x20MCP','mcpConfig.connectionStatus.failed','univer-text-sm\x20univer-font-medium','mcpStatus.maxRetriesExceeded','univer-bg-green-500','OpenMCPConfigPanelCommand','MenuIcon','HelpIcon','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20密钥','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','attrs','mcpStatus.sessionOccupied','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','CommandType','univer.ai','6REXZLQ','next','useRef','idSuffix','MCP\x20Configuration','MCP\x20Connecting...','Enable\x20Authentication','replace','label','exports','8604000AbpPqM','1em','univer-shrink-0\x20univer-text-blue-500','univer-text-gray-400','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','mcpStatus.unauthorized','on-line-icon','mcpConfig.connectionStatus.connecting','http://www.w3.org/2000/svg','28406691qmEuVz','MCP\x20已断开','What\x20is\x20API\x20Key?','重连中...','map','DISCONNECTED','Enter\x20your\x20API\x20key','mcpConfig.validation.apiKeyRequired','_mcpConnectionController','配置\x20MCP\x20使用\x20AI\x20操作电子表格','translate(.97)','univer-text-white','mcpConfig.configStep2','mcpStatus.failed','@univerjs/network','mcpConfig.note2','createElement','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','defineProperty','mcpStatus.clickToConfigure','8UPdZLR','_configService','rxjs','jsx','_registerComponent','enUS','showConfigPanel','svg','mask','setItem','error','_dialogService','mcpConfig.authorizationDescription','useObservable','push','MCPConfigUIController','MCP_UI_PLUGIN','@univerjs/ui','0\x200\x2016\x2016','mcp-ui.command.openConfigPanel','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','removeItem','clsx','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','OnLineIcon','univer-text-red-500','univer-text-gray-500','_apiKey$','mcpStatus.connected','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','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','univer-text-green-500','path','react/jsx-runtime','mcpConfig.apiKeyPlaceholder','white','2348125TCQlVc','connectInjector','mcpConfig.configStepTitle','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','_messageService','onStarting','zhCN','MCP\x20Client\x20Configuration','on-line-icon_clip0_910_349','mcpConfig.apiApplyInfo.description','\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','Success','mcpConfig.configStep1','MCP\x20客户端配置','CloseIcon','MCP\x20Retrying...','random','mcpStatus.connecting','Connecting...','mcpConfig.connectionInfo','503668FctvKw','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','registerCommand','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','showDeveloperTools','univer_session_id:','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','univer-flex\x20univer-flex-wrap\x20univer-gap-2','IConfigService','getItem','ICommandService','API\x20密钥无效,请检查密钥是否正确','MCPUIMenuController','url(#off-line-icon_clip0_910_343)','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','mcpStatus.clickToConnect','mcpConfig.connectionError.sessionOccupied','配置更改将立即生效','保存中...','WebSocketService','MCPConnectionError','fill','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','Univer\x20AI\x20控制台','连接失败','未连接','Button','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','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','connectionError$','displayName','mcpConfig.connectionStatus.retrying','MCP:\x20会话\x20ID\x20已被占用','几秒钟内获取您的\x20API\x20密钥','NONE','off-line-icon_clip0_910_343','univer-flex\x20univer-items-center\x20univer-gap-3','UNAUTHORIZED','_loading$','jsxs','currentColor','配置参数:','API\x20密钥长度至少需要\x2010\x20位','@univerjs-pro/mcp','mergeMenu','round','RETRYING','univer-space-y-3','current','setConfig','Session\x20ID','_handleConfigSave','url(#$1','isValid','check-mark-icon','value','univer-mr-2\x20univer-flex\x20univer-text-xl','mcpStatus.disconnected','forwardRef','_initAutoConnect','length','string','_handleConfigure','_componentManager','univer-flex\x20univer-items-start\x20univer-gap-3','API\x20key\x20with\x20Bearer\x20prefix.','defs','MCP\x20配置','FAILED','warn','univer-flex\x20univer-items-center','React','MessageType','pluginName','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','includes','trim','use','mcpStatus.unknown','IUIPartsService','Disposable','会话ID','什么是\x20API\x20密钥?','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','mcp.apiKey','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','API\x20Key','Configuration\x20Steps:','UniverUi','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','showStatus','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','_injector','bottom','Copy\x20the\x20JSON\x20configuration\x20below','mcpConfig.saving','apiKey','Disconnected','ILogService','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','_initializeCommands','open','mcpConfig.apiApplyInfo.getStarted','univer-text-xs\x20univer-text-gray-500','Plugin','stringify','defIds','register','IDialogService','Inject','text','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','span','mcpServerUrl','mcpConfig.title','MCP:\x20Network\x20Error','univer.plus','Bearer\x20','assign','getConfig','MCP_PLUGIN_CONFIG_KEY','_uiPartsService','univerjs-icon\x20univerjs-icon-','ISocketService','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','CONNECTING','errorMessage','配置无效','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','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','BUTTON','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','toStringTag','univer-flex\x20univer-items-center\x20univer-gap-2','__setCustomHeaders','mcpConfig.connectionError.unauthorized','univer-flex-1','DependentOn','SESSION_ID_OCCUPIED','IMessageService','907102btvjJs','mcpConfig.note1','mcpConfig.connectionError.networkError','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long'];_0x4e81=function(){return _0x33c1fa;};return _0x4e81();}
|